@univerjs-pro/collaboration-client-ui 0.10.11 → 0.10.12-nightly.202510221114

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 +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x6c52c3=_0xc584;(function(_0x327732,_0x2f751f){const _0xcb2f1b=_0xc584,_0x2d1689=_0x327732();while(!![]){try{const _0x2e74d2=parseInt(_0xcb2f1b(0x3e0))/0x1+-parseInt(_0xcb2f1b(0x38e))/0x2+-parseInt(_0xcb2f1b(0x290))/0x3+parseInt(_0xcb2f1b(0x396))/0x4+-parseInt(_0xcb2f1b(0x3d1))/0x5+parseInt(_0xcb2f1b(0x229))/0x6+-parseInt(_0xcb2f1b(0x253))/0x7*(parseInt(_0xcb2f1b(0x1f9))/0x8);if(_0x2e74d2===_0x2f751f)break;else _0x2d1689['push'](_0x2d1689['shift']());}catch(_0x270373){_0x2d1689['push'](_0x2d1689['shift']());}}}(_0x4304,0xc31cd));var Ge=Object['defineProperty'],Xe=(_0x2b62d7,_0xfd420a,_0x28aa7d)=>_0xfd420a in _0x2b62d7?Ge(_0x2b62d7,_0xfd420a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28aa7d}):_0x2b62d7[_0xfd420a]=_0x28aa7d,_=(_0x205676,_0x3a0135,_0x40dc51)=>Xe(_0x205676,typeof _0x3a0135!=_0x6c52c3(0x3b3)?_0x3a0135+'':_0x3a0135,_0x40dc51);Object[_0x6c52c3(0x3d2)](exports,Symbol[_0x6c52c3(0x1d5)],{'value':_0x6c52c3(0x419)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0xa68dd1=_0x6c52c3;return O=Object[_0xa68dd1(0x376)]||function(_0x938469){const _0x5dcc5d=_0xa68dd1;for(var _0x720c70,_0x514965=0x1,_0x28b781=arguments[_0x5dcc5d(0x1f0)];_0x514965<_0x28b781;_0x514965++){_0x720c70=arguments[_0x514965];for(var _0x5ef009 in _0x720c70)Object[_0x5dcc5d(0x418)][_0x5dcc5d(0x28f)][_0x5dcc5d(0x3c4)](_0x720c70,_0x5ef009)&&(_0x938469[_0x5ef009]=_0x720c70[_0x5ef009]);}return _0x938469;},O[_0xa68dd1(0x435)](this,arguments);},ze=function(_0x502f12,_0x5bb590){const _0x273215=_0x6c52c3;var _0x13ead3={};for(var _0x15db27 in _0x502f12)Object[_0x273215(0x418)][_0x273215(0x28f)]['call'](_0x502f12,_0x15db27)&&_0x5bb590[_0x273215(0x433)](_0x15db27)<0x0&&(_0x13ead3[_0x15db27]=_0x502f12[_0x15db27]);if(_0x502f12!=null&&typeof Object[_0x273215(0x3e2)]==_0x273215(0x3b2)){for(var _0x313c84=0x0,_0x15db27=Object[_0x273215(0x3e2)](_0x502f12);_0x313c84<_0x15db27[_0x273215(0x1f0)];_0x313c84++)_0x5bb590['indexOf'](_0x15db27[_0x313c84])<0x0&&Object[_0x273215(0x418)]['propertyIsEnumerable'][_0x273215(0x3c4)](_0x502f12,_0x15db27[_0x313c84])&&(_0x13ead3[_0x15db27[_0x313c84]]=_0x502f12[_0x15db27[_0x313c84]]);}return _0x13ead3;},pe=L[_0x6c52c3(0x232)](function(_0x31697e,_0x460e1a){const _0x80f5d7=_0x6c52c3;var _0x205fd3=_0x31697e[_0x80f5d7(0x2ee)],_0x22c656=_0x31697e['id'],_0x5b938b=_0x31697e['className'],_0x5a4861=_0x31697e[_0x80f5d7(0x37e)],_0x520907=ze(_0x31697e,[_0x80f5d7(0x2ee),'id',_0x80f5d7(0x383),_0x80f5d7(0x37e)]),_0x5cb134=_0x80f5d7(0x292)[_0x80f5d7(0x316)](_0x22c656,'\x20')[_0x80f5d7(0x316)](_0x5b938b||'')[_0x80f5d7(0x408)](),_0x43c74d=L[_0x80f5d7(0x2c2)]('_'['concat'](Qe()));return ye(_0x205fd3,''['concat'](_0x22c656),{'defIds':_0x205fd3[_0x80f5d7(0x320)],'idSuffix':_0x43c74d['current']},O({'ref':_0x460e1a,'className':_0x5cb134},_0x520907),_0x5a4861);});function ye(_0x59d600,_0x4164f4,_0x55895a,_0x37ecf3,_0x2ad7ae){const _0x383789=_0x6c52c3;return L[_0x383789(0x3ab)](_0x59d600[_0x383789(0x1c4)],O(O({'key':_0x4164f4},Je(_0x59d600,_0x55895a,_0x2ad7ae)),_0x37ecf3),(Ze(_0x59d600,_0x55895a)[_0x383789(0x269)]||[])[_0x383789(0x32a)](function(_0x5c0f94,_0x1da221){const _0x2d7f55=_0x383789;return ye(_0x5c0f94,''[_0x2d7f55(0x316)](_0x4164f4,'-')['concat'](_0x59d600[_0x2d7f55(0x1c4)],'-')[_0x2d7f55(0x316)](_0x1da221),_0x55895a,void 0x0,_0x2ad7ae);}));}function Je(_0x4061f9,_0x26ddd8,_0x308a8c){const _0x5464c6=_0x6c52c3;var _0x50d9e5=O({},_0x4061f9[_0x5464c6(0x3fc)]);_0x308a8c!=null&&_0x308a8c[_0x5464c6(0x261)]&&_0x50d9e5[_0x5464c6(0x2fb)]===_0x5464c6(0x261)&&(_0x50d9e5[_0x5464c6(0x2fb)]=_0x308a8c[_0x5464c6(0x261)]),_0x4061f9['tag']===_0x5464c6(0x31f)&&_0x50d9e5['id']&&(_0x50d9e5['id']=_0x50d9e5['id']+_0x26ddd8[_0x5464c6(0x1f2)]),Object['entries'](_0x50d9e5)[_0x5464c6(0x1b1)](function(_0x469ffa){const _0x5ea94a=_0x5464c6;var _0x29628c=_0x469ffa[0x0],_0x2e72ec=_0x469ffa[0x1];_0x29628c==='mask'&&typeof _0x2e72ec==_0x5ea94a(0x2a8)&&(_0x50d9e5[_0x29628c]=_0x2e72ec[_0x5ea94a(0x37a)](/url\(#(.*)\)/,_0x5ea94a(0x38f)['concat'](_0x26ddd8[_0x5ea94a(0x1f2)],')')));});var _0x550ac0=_0x26ddd8['defIds'];return!_0x550ac0||_0x550ac0[_0x5464c6(0x1f0)]===0x0||(_0x4061f9['tag']===_0x5464c6(0x30f)&&_0x50d9e5[_0x5464c6(0x283)]&&(_0x50d9e5[_0x5464c6(0x283)]=_0x50d9e5[_0x5464c6(0x283)]+_0x26ddd8[_0x5464c6(0x1f2)]),Object[_0x5464c6(0x2ff)](_0x50d9e5)[_0x5464c6(0x1b1)](function(_0x43634c){const _0x59960a=_0x5464c6;var _0x24cbe6=_0x43634c[0x0],_0xba7cf4=_0x43634c[0x1];typeof _0xba7cf4==_0x59960a(0x2a8)&&(_0x50d9e5[_0x24cbe6]=_0xba7cf4[_0x59960a(0x37a)](/url\(#(.*)\)/,_0x59960a(0x38f)['concat'](_0x26ddd8[_0x59960a(0x1f2)],')')));})),_0x50d9e5;}function Ze(_0x2f961f,_0x4074f1){const _0x5a56e6=_0x6c52c3;var _0x34ef36,_0x34a49f=_0x4074f1[_0x5a56e6(0x320)];return!_0x34a49f||_0x34a49f[_0x5a56e6(0x1f0)]===0x0?_0x2f961f:_0x2f961f[_0x5a56e6(0x1c4)]===_0x5a56e6(0x21e)&&(!((_0x34ef36=_0x2f961f['children'])===null||_0x34ef36===void 0x0)&&_0x34ef36[_0x5a56e6(0x1f0)])?O(O({},_0x2f961f),{'children':_0x2f961f[_0x5a56e6(0x269)][_0x5a56e6(0x32a)](function(_0x3cc663){const _0x4a6ec6=_0x5a56e6;return typeof _0x3cc663[_0x4a6ec6(0x3fc)]['id']==_0x4a6ec6(0x2a8)&&_0x34a49f&&_0x34a49f[_0x4a6ec6(0x238)](_0x3cc663[_0x4a6ec6(0x3fc)]['id'])?O(O({},_0x3cc663),{'attrs':O(O({},_0x3cc663[_0x4a6ec6(0x3fc)]),{'id':_0x3cc663[_0x4a6ec6(0x3fc)]['id']+_0x4074f1[_0x4a6ec6(0x1f2)]})}):_0x3cc663;})}):_0x2f961f;}function Qe(){const _0x28f411=_0x6c52c3;return Math[_0x28f411(0x3fb)]()['toString'](0x24)[_0x28f411(0x3ac)](0x2,0x8);}pe[_0x6c52c3(0x322)]=_0x6c52c3(0x2a7);var et={'tag':_0x6c52c3(0x432),'attrs':{'xmlns':_0x6c52c3(0x2b2),'fill':_0x6c52c3(0x3f3),'viewBox':'0\x200\x2016\x2016','width':_0x6c52c3(0x28b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x6c52c3(0x1ae)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'stroke':_0x6c52c3(0x414),'d':_0x6c52c3(0x2b3),'strokeLinecap':_0x6c52c3(0x22e),'strokeLinejoin':_0x6c52c3(0x22e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x6c52c3(0x3b6),'attrs':{'id':_0x6c52c3(0x405)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'fill':_0x6c52c3(0x3d5),'d':_0x6c52c3(0x426)}}]}]}],'defIds':[_0x6c52c3(0x405)]},xe=L[_0x6c52c3(0x232)](function(_0xb6f038,_0x35f5a2){const _0x5134f6=_0x6c52c3;return L[_0x5134f6(0x3ab)](pe,Object[_0x5134f6(0x376)]({},_0xb6f038,{'id':'off-line-icon','ref':_0x35f5a2,'icon':et}));});xe[_0x6c52c3(0x322)]=_0x6c52c3(0x30a);var tt={'tag':'svg','attrs':{'xmlns':_0x6c52c3(0x2b2),'fill':_0x6c52c3(0x3f3),'viewBox':_0x6c52c3(0x43b),'width':_0x6c52c3(0x28b),'height':_0x6c52c3(0x28b)},'children':[{'tag':'g','attrs':{'clipPath':_0x6c52c3(0x36e)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'stroke':_0x6c52c3(0x414),'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':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x6c52c3(0x3a4)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'fill':_0x6c52c3(0x3d5),'d':_0x6c52c3(0x426),'transform':'translate(.97)'}}]}]}],'defIds':[_0x6c52c3(0x3a4)]},$e=L[_0x6c52c3(0x232)](function(_0xbd6205,_0x5f495f){const _0x1fdc16=_0x6c52c3;return L[_0x1fdc16(0x3ab)](pe,Object[_0x1fdc16(0x376)]({},_0xbd6205,{'id':'on-line-icon','ref':_0x5f495f,'icon':tt}));});$e[_0x6c52c3(0x322)]=_0x6c52c3(0x34e);function st(_0x419256){const _0x37f113=_0x6c52c3;switch(_0x419256){case u[_0x37f113(0x1e6)]['OFFLINE']:return _0x37f113(0x3a6);case u[_0x37f113(0x1e6)][_0x37f113(0x1f3)]:return _0x37f113(0x369);case u[_0x37f113(0x1e6)][_0x37f113(0x2e1)]:return _0x37f113(0x24c);case u[_0x37f113(0x1e6)][_0x37f113(0x340)]:return'collabStatus.notCollab';case u[_0x37f113(0x1e6)][_0x37f113(0x1a4)]:case u[_0x37f113(0x1e6)][_0x37f113(0x273)]:return _0x37f113(0x35a);case u[_0x37f113(0x1e6)][_0x37f113(0x3c2)]:case u[_0x37f113(0x1e6)][_0x37f113(0x3f5)]:return _0x37f113(0x3d7);}}function it(_0x1f4803){const _0x1bd012=_0x6c52c3,{status$:_0x36a747}=_0x1f4803,_0x4498db=R['useObservable'](_0x36a747,u[_0x1bd012(0x1e6)][_0x1bd012(0x340)]),_0x3baf40=R['useDependency'](a[_0x1bd012(0x225)]),_0x52232d=R[_0x1bd012(0x2e0)](u[_0x1bd012(0x417)]),_0x598292=_0x4498db!==u[_0x1bd012(0x1e6)][_0x1bd012(0x415)],_0x243e70=_0x3baf40['t'](st(_0x4498db)),_0x20105e=_0x598292?P['jsx']($e,{}):P[_0x1bd012(0x1e7)](xe,{}),_0x497c3f=L['useCallback'](()=>{const _0x56bd8e=_0x1bd012;_0x598292||_0x52232d[_0x56bd8e(0x2a6)]();},[_0x598292,_0x52232d]);function _0x450772(){const _0x3996ea=_0x1bd012;return P[_0x3996ea(0x22b)](_0x3996ea(0x3e3),{'className':_0x3996ea(0x27a),'onClick':_0x497c3f,'children':[P['jsx'](_0x3996ea(0x3e3),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x598292,'univer-text-red-500':!_0x598292}),'children':_0x20105e}),P[_0x3996ea(0x1e7)]('div',{'className':_0x3996ea(0x2d3),'children':_0x243e70})]});}return _0x598292?_0x450772():P['jsx'](T[_0x1bd012(0x39a)],{'title':_0x3baf40['t'](_0x1bd012(0x1d1)),'children':_0x450772()});}var nt=Object[_0x6c52c3(0x2ac)],rt=(_0x36e97b,_0x537fe4,_0x1443dd,_0x24c34e)=>{const _0x34d184=_0x6c52c3;for(var _0x4b414a=_0x24c34e>0x1?void 0x0:_0x24c34e?nt(_0x537fe4,_0x1443dd):_0x537fe4,_0x132522=_0x36e97b[_0x34d184(0x1f0)]-0x1,_0x2ac1a1;_0x132522>=0x0;_0x132522--)(_0x2ac1a1=_0x36e97b[_0x132522])&&(_0x4b414a=_0x2ac1a1(_0x4b414a)||_0x4b414a);return _0x4b414a;},q=(_0x2927e1,_0x321451)=>(_0x49024a,_0x29b6ef)=>_0x321451(_0x49024a,_0x29b6ef,_0x2927e1);exports[_0x6c52c3(0x2e9)]=class extends a['Disposable']{constructor(_0x5d0e62,_0x297ccd,_0x242b48,_0x3a01fe){const _0x283dec=_0x6c52c3;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x283dec(0x1e6)][_0x283dec(0x340)])),(this['_univerInstanceService']=_0x5d0e62,this[_0x283dec(0x3a1)]=_0x297ccd,this[_0x283dec(0x1de)]=_0x242b48,this[_0x283dec(0x3a9)]=_0x3a01fe,this[_0x283dec(0x3a0)](),this[_0x283dec(0x2b8)]());}['_initStatusListener'](){const _0x47b2e2=_0x6c52c3;this[_0x47b2e2(0x392)](this[_0x47b2e2(0x3dd)][_0x47b2e2(0x1d2)][_0x47b2e2(0x1b7)](I[_0x47b2e2(0x41c)](()=>{const _0x4f0630=_0x47b2e2,_0x2203f9=this[_0x4f0630(0x3dd)][_0x4f0630(0x279)]();return _0x2203f9?this[_0x4f0630(0x1de)][_0x4f0630(0x367)](_0x2203f9['getUnitId']()):I['of'](null);}),I[_0x47b2e2(0x41c)](_0x38a9ba=>_0x38a9ba?_0x38a9ba['status$']:I['of'](u['CollaborationStatus'][_0x47b2e2(0x340)])))[_0x47b2e2(0x403)](_0x53c2ad=>{const _0xc84374=_0x47b2e2;this[_0xc84374(0x3f8)][_0xc84374(0x2c9)](_0x53c2ad);}));}[_0x6c52c3(0x3a0)](){const _0x32a85e=_0x6c52c3;this[_0x32a85e(0x392)](this['_uiPartsService']['registerComponent'](R[_0x32a85e(0x3fa)][_0x32a85e(0x1c9)],()=>R[_0x32a85e(0x1ff)](ot({'status$':this[_0x32a85e(0x3f8)]['asObservable']()}),this[_0x32a85e(0x3a1)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([q(0x0,a['IUniverInstanceService']),q(0x1,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),q(0x2,a['Inject'](u[_0x6c52c3(0x3a5)])),q(0x3,R[_0x6c52c3(0x393)])],exports[_0x6c52c3(0x2e9)]);function ot(_0x392a1b){const {status$:_0x5571a1}=_0x392a1b;return function(){return P['jsx'](it,{'status$':_0x5571a1});};}const Te=a[_0x6c52c3(0x40a)](_0x6c52c3(0x318));var at=Object[_0x6c52c3(0x2ac)],ct=(_0x468c46,_0x5027e2,_0x14e9d9,_0x5dabd3)=>{const _0x3b724d=_0x6c52c3;for(var _0x54ca7d=_0x5dabd3>0x1?void 0x0:_0x5dabd3?at(_0x5027e2,_0x14e9d9):_0x5027e2,_0x212875=_0x468c46[_0x3b724d(0x1f0)]-0x1,_0x3d52d2;_0x212875>=0x0;_0x212875--)(_0x3d52d2=_0x468c46[_0x212875])&&(_0x54ca7d=_0x3d52d2(_0x54ca7d)||_0x54ca7d);return _0x54ca7d;},Y=(_0x410c1b,_0x1e052e)=>(_0x49db1f,_0x4d33bc)=>_0x1e052e(_0x49db1f,_0x4d33bc,_0x410c1b);exports[_0x6c52c3(0x3f2)]=class extends a[_0x6c52c3(0x358)]{constructor(_0xeee457,_0x3785a8,_0x4dddbf,_0x465e1a,_0x3c0a1){const _0x386b65=_0x6c52c3;super(),this['_urlService']=_0xeee457,this[_0x386b65(0x1db)]=_0x3785a8,this['_commandService']=_0x4dddbf,this[_0x386b65(0x2a4)]=_0x465e1a,_0x3c0a1?_0x3c0a1==null||_0x3c0a1[_0x386b65(0x360)]()[_0x386b65(0x1f1)](()=>this[_0x386b65(0x39e)]()):(this['_logService'][_0x386b65(0x21a)](_0x386b65(0x180),_0x386b65(0x3f6)),this['_init']());}async[_0x6c52c3(0x39e)](){const _0x19bd14=_0x6c52c3,_0x2f9695=this['_urlService'][_0x19bd14(0x23e)]('unit'),_0x313ba1=this[_0x19bd14(0x2e3)][_0x19bd14(0x23e)](_0x19bd14(0x333)),_0x350dd2=this['_urlService']['getParam'](_0x19bd14(0x3bf));if(!_0x2f9695||!_0x313ba1){this[_0x19bd14(0x1db)]['debug'](_0x19bd14(0x180),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x24442e=await this[_0x19bd14(0x2a4)][_0x19bd14(0x35d)](_0x2f9695,Number(_0x313ba1),_0x350dd2);_0x24442e&&_0x24442e instanceof a[_0x19bd14(0x23d)]&&this[_0x19bd14(0x33e)](_0x24442e);}async[_0x6c52c3(0x33e)](_0x2d4708){const _0xe5efe2=_0x6c52c3;await this[_0xe5efe2(0x388)](_0x2d4708),_0x2d4708[_0xe5efe2(0x270)]['pipe'](I[_0xe5efe2(0x3c3)](this[_0xe5efe2(0x359)]))['subscribe'](_0x387d1d=>{_0x387d1d&&this['_updateURLWithCurrentState'](_0x387d1d);}),this[_0xe5efe2(0x2e3)]['urlChange$'][_0xe5efe2(0x1b7)](I[_0xe5efe2(0x3c3)](this['dispose$']))[_0xe5efe2(0x403)](()=>this[_0xe5efe2(0x388)](_0x2d4708));}[_0x6c52c3(0x2be)](_0x402033,_0x472f2b=!0x1){const _0x41bfcc=_0x6c52c3,_0xc272b1=this['_urlService'][_0x41bfcc(0x23e)](_0x41bfcc(0x3bf));_0x402033[_0x41bfcc(0x2c6)]()!==_0xc272b1&&this[_0x41bfcc(0x2e3)][_0x41bfcc(0x329)](_0x41bfcc(0x3bf),_0x402033['getSheetId'](),_0x472f2b);}async[_0x6c52c3(0x388)](_0x116a03){const _0x37c10b=_0x6c52c3;var _0x4781a2;const _0x2c0f9d=this['_urlService'][_0x37c10b(0x23e)](_0x37c10b(0x3bf));if(!_0x2c0f9d||!_0x116a03[_0x37c10b(0x375)](_0x2c0f9d)){const _0x5829e8=_0x116a03['getUnhiddenWorksheets']()[0x0],_0x4ae30d=_0x116a03[_0x37c10b(0x375)](_0x5829e8);if(!_0x4ae30d)return;this[_0x37c10b(0x2be)](_0x4ae30d,!0x0),await this[_0x37c10b(0x25f)][_0x37c10b(0x319)](v[_0x37c10b(0x342)]['id'],{'unitId':_0x116a03['getUnitId'](),'subUnitId':_0x5829e8});return;}((_0x4781a2=_0x116a03['getActiveSheet']())==null?void 0x0:_0x4781a2[_0x37c10b(0x2c6)]())!==_0x2c0f9d&&await this[_0x37c10b(0x25f)][_0x37c10b(0x319)](v[_0x37c10b(0x342)]['id'],{'unitId':_0x116a03[_0x37c10b(0x411)](),'subUnitId':_0x2c0f9d});}},exports[_0x6c52c3(0x3f2)]=ct([Y(0x0,Te),Y(0x1,a[_0x6c52c3(0x2ca)]),Y(0x2,a[_0x6c52c3(0x391)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a[_0x6c52c3(0x1b6)](Ke[_0x6c52c3(0x1e5)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x6c52c3(0x2ac)],_t=(_0x427223,_0x5c32d5,_0x4a0b88,_0x1dc2e1)=>{const _0x30f383=_0x6c52c3;for(var _0x4dde01=_0x1dc2e1>0x1?void 0x0:_0x1dc2e1?lt(_0x5c32d5,_0x4a0b88):_0x5c32d5,_0x4050ec=_0x427223[_0x30f383(0x1f0)]-0x1,_0xbfa1f4;_0x4050ec>=0x0;_0x4050ec--)(_0xbfa1f4=_0x427223[_0x4050ec])&&(_0x4dde01=_0xbfa1f4(_0x4dde01)||_0x4dde01);return _0x4dde01;},be=(_0x3bca9f,_0x404bfe)=>(_0x113f2b,_0x1ef57c)=>_0x404bfe(_0x113f2b,_0x1ef57c,_0x3bca9f);let fe=class extends a['RxDisposable']{constructor(_0x901f71,_0x2233b1){const _0x190624=_0x6c52c3;super(),this[_0x190624(0x2f2)]=_0x901f71,this[_0x190624(0x25d)]=_0x2233b1,this['_init']();}[_0x6c52c3(0x39e)](){const _0x2d67e5=_0x6c52c3,_0x13be75=this;this[_0x2d67e5(0x392)](this[_0x2d67e5(0x2f2)][_0x2d67e5(0x348)]({'onBeforePasteImage':async _0x2cf500=>{const _0xfe82bc=_0x2d67e5,_0x33ae02=await _0x13be75[_0xfe82bc(0x25d)]['saveImage'](_0x2cf500);return _0x33ae02?{'source':_0x33ae02[_0xfe82bc(0x1ad)],'imageSourceType':_0x33ae02[_0xfe82bc(0x255)]}:null;}}));}};fe=_t([be(0x0,p[_0x6c52c3(0x188)]),be(0x1,qe[_0x6c52c3(0x30d)])],fe);const De=[_0x6c52c3(0x399),_0x6c52c3(0x1bf),_0x6c52c3(0x42d),_0x6c52c3(0x307),_0x6c52c3(0x3a8),'yellow.400'];class Oe extends a[_0x6c52c3(0x413)]{constructor(){const _0x127670=_0x6c52c3;super(...arguments),_(this,_0x127670(0x345),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x7a6688){const _0x17fba7=_0x6c52c3;if(this['_assignedColors'][_0x17fba7(0x27c)](_0x7a6688))return this[_0x17fba7(0x345)][_0x17fba7(0x285)](_0x7a6688);const _0x57d2c7=De[this['_colorIndex']];return this[_0x17fba7(0x309)]=(this[_0x17fba7(0x309)]+0x1)%De[_0x17fba7(0x1f0)],this['_assignedColors'][_0x17fba7(0x33f)](_0x7a6688,_0x57d2c7),_0x57d2c7;}}function Be(_0x592639){const _0x1f32a1=_0x6c52c3;let _0x4903d1='';for(const _0x14b420 of _0x592639){const {startOffset:_0x1626d1,endOffset:_0xe17052,isActive:_0x4b4c62,rangeType:_0x4f6df7,segmentId:_0x5623b7,segmentPage:_0x5a15dd}=_0x14b420;_0x4903d1[_0x1f32a1(0x1f0)]&&(_0x4903d1+=','),_0x4903d1+=_0x1626d1+':'+_0xe17052+':'+(_0x4b4c62?'1':'0')+':'+_0x4f6df7+':'+_0x5623b7+':'+_0x5a15dd;}return _0x4903d1;}function ht(_0x265472){const _0x3dbd5b=_0x6c52c3,_0x473a65=_0x265472[_0x3dbd5b(0x382)](','),_0x2fffbb=[];for(const _0x3d18f6 of _0x473a65){const [_0x285f45,_0x4a2e35,_0x39c56f,_0x17cf9e,_0x25a077,_0x1537c4]=_0x3d18f6[_0x3dbd5b(0x382)](':');_0x2fffbb[_0x3dbd5b(0x221)]({'startOffset':Number(_0x285f45),'endOffset':Number(_0x4a2e35),'collapsed':_0x285f45===_0x4a2e35,'isActive':_0x39c56f==='1','rangeType':_0x17cf9e===a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x206)]?a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x206)]:a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x3c9)],'segmentId':typeof _0x25a077==_0x3dbd5b(0x2a8)?String(_0x25a077):'','segmentPage':Number(_0x1537c4!=null?_0x1537c4:-0x1)});}return _0x2fffbb['some'](_0x3b6797=>_0x3b6797[_0x3dbd5b(0x310)])||(_0x2fffbb[0x0][_0x3dbd5b(0x310)]=!0x0),_0x2fffbb;}class Re extends a[_0x6c52c3(0x358)]{constructor(){const _0x5236da=_0x6c52c3;super(...arguments),_(this,_0x5236da(0x2cd),new I[(_0x5236da(0x22c))](null)),_(this,_0x5236da(0x1ea),this[_0x5236da(0x2cd)][_0x5236da(0x2f3)]());}[_0x6c52c3(0x420)](_0x4bd439){const _0x1a7971=_0x6c52c3,{unitID:_0x19e8f4,memberID:_0x2fd13c,textRanges:_0x211954}=_0x4bd439,_0x27a956=Be(_0x211954);if(_0x27a956==='')return;const _0x22d1e9={'unitID':_0x19e8f4,'memberID':_0x2fd13c,'selection':_0x27a956};this[_0x1a7971(0x2cd)][_0x1a7971(0x2c9)](_0x22d1e9);}}var ut=Object[_0x6c52c3(0x2ac)],It=(_0x5abe5c,_0x837874,_0xc7ec87,_0x12deb2)=>{const _0x5945e8=_0x6c52c3;for(var _0xc26621=_0x12deb2>0x1?void 0x0:_0x12deb2?ut(_0x837874,_0xc7ec87):_0x837874,_0xb4e469=_0x5abe5c[_0x5945e8(0x1f0)]-0x1,_0x31a6a0;_0xb4e469>=0x0;_0xb4e469--)(_0x31a6a0=_0x5abe5c[_0xb4e469])&&(_0xc26621=_0x31a6a0(_0xc26621)||_0xc26621);return _0xc26621;},M=(_0x144c45,_0x5ce4cf)=>(_0x4b2138,_0x4d4b76)=>_0x5ce4cf(_0x4b2138,_0x4d4b76,_0x144c45);const dt=0x12c,St=0x64;let me=class extends a[_0x6c52c3(0x358)]{constructor(_0x5cd5cd,_0x16c39e,_0x3531d4,_0x54c7c1,_0x7ceef2,_0x51e857,_0x2e4824,_0x2174d7,_0x221c1d){const _0x5d236f=_0x6c52c3;super(),_(this,_0x5d236f(0x3cc),!0x1),_(this,_0x5d236f(0x39e),!0x1),_(this,_0x5d236f(0x428),new I[(_0x5d236f(0x22c))](new Map())),_(this,_0x5d236f(0x1cc),this['_cursorInfo$'][_0x5d236f(0x2f3)]()),_(this,_0x5d236f(0x1a2),new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x5d236f(0x1a2)][_0x5d236f(0x1b7)](I['debounceTime'](dt))),_(this,_0x5d236f(0x3e6),a[_0x5d236f(0x3d3)](_0x2f2e63=>{const _0x3b4018=_0x5d236f,_0x4f6dbd={'eventID':g[_0x3b4018(0x3e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x3b4018(0x2ec)],'memberID':this[_0x3b4018(0x354)][_0x3b4018(0x18a)](),'selection':Be(_0x2f2e63)}};this[_0x3b4018(0x354)][_0x3b4018(0x346)](_0x4f6dbd,this['unitID']);},St)),(this[_0x5d236f(0x2ec)]=_0x5cd5cd,this['_session']=_0x16c39e,this[_0x5d236f(0x3a1)]=_0x3531d4,this[_0x5d236f(0x2d9)]=_0x54c7c1,this['_memberService']=_0x7ceef2,this[_0x5d236f(0x3c5)]=_0x51e857,this[_0x5d236f(0x3ce)]=_0x2e4824,this[_0x5d236f(0x3dd)]=_0x2174d7,this[_0x5d236f(0x25f)]=_0x221c1d);}get[_0x6c52c3(0x2fa)](){const _0x8ce41b=_0x6c52c3;return this[_0x8ce41b(0x428)][_0x8ce41b(0x2fc)]();}get[_0x6c52c3(0x32e)](){const _0x47a61d=_0x6c52c3;return this[_0x47a61d(0x1a2)][_0x47a61d(0x2fc)]();}[_0x6c52c3(0x18d)](){const _0x4a2fdc=_0x6c52c3;super[_0x4a2fdc(0x18d)](),this[_0x4a2fdc(0x428)][_0x4a2fdc(0x2c9)](new Map()),this['_cursorInfo$'][_0x4a2fdc(0x401)](),this[_0x4a2fdc(0x1a2)][_0x4a2fdc(0x2c9)]([]),this[_0x4a2fdc(0x1a2)]['complete']();}[_0x6c52c3(0x1a3)](){const _0xeda5b=_0x6c52c3;this[_0xeda5b(0x39e)]||(this[_0xeda5b(0x39e)]=!0x0,this[_0xeda5b(0x354)]['sessionStatus$'][_0xeda5b(0x1b7)](I['takeUntil'](this[_0xeda5b(0x359)]))[_0xeda5b(0x403)](_0x16f4d3=>{const _0x23876d=_0xeda5b;_0x16f4d3===u[_0x23876d(0x3b5)]['ONLINE']?this[_0x23876d(0x3f4)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](I['takeUntil'](this['dispose$']))[_0xeda5b(0x403)](_0x544980=>{const _0x32d9c4=_0xeda5b,_0x4e093f=_0x544980[_0x32d9c4(0x21d)];_0x4e093f===g[_0x32d9c4(0x3e1)][_0x32d9c4(0x2b5)]&&this[_0x32d9c4(0x361)](_0x544980),_0x4e093f===g[_0x32d9c4(0x3e1)][_0x32d9c4(0x3ef)]&&this[_0x32d9c4(0x1a8)](_0x544980);}),this['disposeWithMe'](this['_commandService'][_0xeda5b(0x22f)](_0x4b6b22=>{const _0x19ec50=_0xeda5b,_0x1fa898=_0x4b6b22[_0x19ec50(0x2f4)];_0x1fa898!=null&&this[_0x19ec50(0x3cc)]&&_0x4b6b22['id']===V[_0x19ec50(0x3d0)]['id']&&_0x1fa898['unitId']===this[_0x19ec50(0x2ec)]&&_0x1fa898['isEditing']===!0x1&&_0x1fa898[_0x19ec50(0x1c2)][_0x19ec50(0x1f0)]>0x0&&this[_0x19ec50(0x3e6)](_0x1fa898['ranges']);})),this[_0xeda5b(0x3c5)]['collabCursorState$'][_0xeda5b(0x1b7)](I[_0xeda5b(0x3c3)](this['dispose$']))['subscribe'](_0x53273a=>{const _0x3df368=_0xeda5b;if((_0x53273a==null?void 0x0:_0x53273a[_0x3df368(0x2ec)])!==this[_0x3df368(0x2ec)])return;const _0x42d742={'eventID':g[_0x3df368(0x3e1)][_0x3df368(0x2b5)],'data':_0x53273a};this[_0x3df368(0x361)](_0x42d742);}),this[_0xeda5b(0x392)](this['_commandService'][_0xeda5b(0x22f)](_0x148664=>{const _0x248469=_0xeda5b;if(_0x148664[_0x248469(0x2f4)]==null)return;const _0x15a219=_0x148664[_0x248469(0x2f4)];if(_0x148664['id']!==V[_0x248469(0x381)]['id']||_0x15a219[_0x248469(0x2b7)]!==this[_0x248469(0x2ec)])return;const _0x4b5b35={'id':_0x248469(0x339),'params':_0x15a219},_0x1606fd=this[_0x248469(0x2fa)];for(const [_0x203237,_0x1964fd]of _0x1606fd){const _0x31c64b={'id':_0x248469(0x339),'params':{'unitId':this[_0x248469(0x2ec)],'actions':null,'textRanges':_0x1964fd[_0x248469(0x1c2)]}},_0x3f3b3f=this[_0x248469(0x3ce)][_0x248469(0x1a1)](_0x4b5b35,_0x31c64b,!0x1);if(g[_0x248469(0x294)](_0x3f3b3f))throw _0x3f3b3f[_0x248469(0x384)];_0x1606fd['set'](_0x203237,{..._0x1964fd,'ranges':_0x3f3b3f['m2Prime'][_0x248469(0x2f4)][_0x248469(0x350)]});}queueMicrotask(()=>{const _0x36468f=_0x248469;this[_0x36468f(0x428)][_0x36468f(0x2c9)](_0x1606fd);});})));}[_0x6c52c3(0x361)](_0x5d24f6){const _0x403953=_0x6c52c3;var _0x293275,_0x20bda0;const {memberID:_0x23b3ec,selection:_0xa0a730}=_0x5d24f6['data'],_0x343aed=ht(_0xa0a730),_0xe57414=(_0x20bda0=(_0x293275=this[_0x403953(0x18b)][_0x403953(0x335)](this[_0x403953(0x2ec)],_0x23b3ec))==null?void 0x0:_0x293275[_0x403953(0x402)])!=null?_0x20bda0:'Unknown\x20user',_0x29a2f5={'color':this[_0x403953(0x2d9)][_0x403953(0x230)](_0x23b3ec),'name':_0xe57414,'ranges':_0x343aed},_0x6658ec=this[_0x403953(0x2fa)];_0x6658ec[_0x403953(0x33f)](_0x23b3ec,_0x29a2f5),this[_0x403953(0x428)][_0x403953(0x2c9)](_0x6658ec);}['_onCursorDelete'](_0x58965b){const _0x1e3a12=_0x6c52c3,{memberID:_0x69e272}=_0x58965b[_0x1e3a12(0x219)],_0x1be2b6=this['cursorInfo'];_0x1be2b6[_0x1e3a12(0x41a)](_0x69e272),this[_0x1e3a12(0x428)][_0x1e3a12(0x2c9)](_0x1be2b6);}[_0x6c52c3(0x3f4)](){const _0x4a681e=_0x6c52c3;var _0x1113b6;if(this[_0x4a681e(0x3cc)]=!0x0,((_0x1113b6=this[_0x4a681e(0x3dd)][_0x4a681e(0x279)]())==null?void 0x0:_0x1113b6[_0x4a681e(0x411)]())!==this[_0x4a681e(0x2ec)])return;const _0x40fb70=this[_0x4a681e(0x3a1)][_0x4a681e(0x285)](V[_0x4a681e(0x343)])['getDocRanges']();Array[_0x4a681e(0x24b)](_0x40fb70)&&_0x40fb70['length']>0x0&&this[_0x4a681e(0x3e6)](_0x40fb70);}[_0x6c52c3(0x202)](){const _0x3376d9=_0x6c52c3;this[_0x3376d9(0x3cc)]=!0x1;}};me=It([M(0x2,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),M(0x3,a['Inject'](Oe)),M(0x4,a['Inject'](u['MemberService'])),M(0x5,a['Inject'](Re)),M(0x6,g[_0x6c52c3(0x24a)]),M(0x7,a[_0x6c52c3(0x40e)]),M(0x8,a[_0x6c52c3(0x391)])],me);var ft=Object[_0x6c52c3(0x2ac)],mt=(_0x34be9d,_0x118148,_0xb9271f,_0x1c68df)=>{for(var _0x72094e=_0x1c68df>0x1?void 0x0:_0x1c68df?ft(_0x118148,_0xb9271f):_0x118148,_0x3b4bfb=_0x34be9d['length']-0x1,_0x57864d;_0x3b4bfb>=0x0;_0x3b4bfb--)(_0x57864d=_0x34be9d[_0x3b4bfb])&&(_0x72094e=_0x57864d(_0x72094e)||_0x72094e);return _0x72094e;},y=(_0x47aa3e,_0x21fe08)=>(_0x268766,_0xfd0f9b)=>_0x21fe08(_0x268766,_0xfd0f9b,_0x47aa3e);const vt=0x12c,gt=0x64,Et=()=>{let _0x4d8378=[],_0x454b91=!0x1;return _0x4ed4b2=>{const _0x348d06=_0xc584;_0x4d8378[_0x348d06(0x221)](_0x4ed4b2),_0x454b91||(_0x454b91=!0x0,setTimeout(()=>{_0x4d8378['forEach'](_0x5d53fb=>_0x5d53fb()),_0x4d8378=[],_0x454b91=!0x1;}));};};let ve=class extends a[_0x6c52c3(0x358)]{constructor(_0x49cb13,_0x5489e7,_0x16c8c3,_0x517e82,_0x1e29af,_0x229f0a,_0x6d07fd,_0x3a15ea){const _0x402884=_0x6c52c3;super(),_(this,_0x402884(0x3cc),!0x1),_(this,_0x402884(0x39e),!0x1),_(this,_0x402884(0x428),new I[(_0x402884(0x22c))](new Map())),_(this,_0x402884(0x1cc),this['_cursorInfo$']['asObservable']()),_(this,_0x402884(0x1a2),new I[(_0x402884(0x22c))]([])),_(this,_0x402884(0x262),this[_0x402884(0x1a2)][_0x402884(0x1b7)](I['debounceTime'](vt))),_(this,_0x402884(0x3e6),a[_0x402884(0x3d3)]((_0x56e162,_0x1b06ef)=>{const _0x518812=_0x402884,_0x3f3b75={'eventID':g[_0x518812(0x3e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x518812(0x2ec)],'memberID':this['_session'][_0x518812(0x18a)](),'selection':B[_0x518812(0x372)](_0x56e162,_0x1b06ef[_0x518812(0x404)])}};this['_session']['send'](_0x3f3b75,this[_0x518812(0x2ec)]);},gt)),(this[_0x402884(0x2ec)]=_0x49cb13,this[_0x402884(0x354)]=_0x5489e7,this[_0x402884(0x3a1)]=_0x16c8c3,this[_0x402884(0x2d9)]=_0x517e82,this[_0x402884(0x18b)]=_0x1e29af,this['_univerInstanceService']=_0x229f0a,this[_0x402884(0x25f)]=_0x6d07fd,this[_0x402884(0x228)]=_0x3a15ea);}get[_0x6c52c3(0x2fa)](){const _0x10bf4e=_0x6c52c3;return this[_0x10bf4e(0x428)][_0x10bf4e(0x2fc)]();}get['roomMembers'](){const _0x5ea693=_0x6c52c3;return this[_0x5ea693(0x1a2)][_0x5ea693(0x2fc)]();}[_0x6c52c3(0x18d)](){const _0x48a590=_0x6c52c3;super[_0x48a590(0x18d)](),this[_0x48a590(0x428)][_0x48a590(0x2c9)](new Map()),this['_cursorInfo$'][_0x48a590(0x401)](),this[_0x48a590(0x1a2)][_0x48a590(0x2c9)]([]),this[_0x48a590(0x1a2)][_0x48a590(0x401)]();}[_0x6c52c3(0x1a3)](){const _0x591134=_0x6c52c3;this[_0x591134(0x39e)]||(this['_init']=!0x0,this[_0x591134(0x354)][_0x591134(0x1cf)][_0x591134(0x1b7)](I['takeUntil'](this[_0x591134(0x359)]))[_0x591134(0x403)](_0x556eab=>{const _0x2df48f=_0x591134;_0x556eab===u[_0x2df48f(0x3b5)][_0x2df48f(0x406)]?this[_0x2df48f(0x3f4)]():this[_0x2df48f(0x202)]();}),this['_session']['event$']['pipe'](I[_0x591134(0x3c3)](this[_0x591134(0x359)]))[_0x591134(0x403)](_0xad9bbb=>{const _0x4ff613=_0x591134,_0x2bc03a=_0xad9bbb[_0x4ff613(0x21d)];_0x2bc03a===g['CollaborationEvent'][_0x4ff613(0x2b5)]&&this[_0x4ff613(0x361)](_0xad9bbb),_0x2bc03a===g[_0x4ff613(0x3e1)][_0x4ff613(0x3ef)]&&this[_0x4ff613(0x1a8)](_0xad9bbb);}),this[_0x591134(0x3d9)](),this[_0x591134(0x392)](this[_0x591134(0x25f)][_0x591134(0x22f)](_0x5653af=>{const _0x259224=_0x591134;if(this[_0x259224(0x3cc)]&&_0x5653af['id']===v[_0x259224(0x357)]['id']&&_0x5653af[_0x259224(0x2f4)]['unitId']===this[_0x259224(0x2ec)]){const _0x5b8d39=_0x5653af['params'];this[_0x259224(0x3e6)](_0x5b8d39[_0x259224(0x3ed)],_0x5b8d39[_0x259224(0x242)][0x0]);}})));}[_0x6c52c3(0x361)](_0x1f096b){const _0x58c3ea=_0x6c52c3;var _0xe18c4d,_0x11fb00;const {memberID:_0x526692,selection:_0x5a2769}=_0x1f096b['data'],{sheetName:_0x5145cd,range:_0x2eeac1}=B[_0x58c3ea(0x27d)](_0x5a2769),_0x24981a={'name':(_0x11fb00=(_0xe18c4d=this['_memberService'][_0x58c3ea(0x335)](this['unitID'],_0x526692))==null?void 0x0:_0xe18c4d['name'])!=null?_0x11fb00:'Unknown\x20user','range':this[_0x58c3ea(0x3da)](_0x5145cd,_0x2eeac1),'sheetID':_0x5145cd,'color':this[_0x58c3ea(0x2d9)]['assignAColorForMemberID'](_0x526692),'selection':_0x5a2769},_0x4bfc2e=this[_0x58c3ea(0x2fa)];_0x4bfc2e[_0x58c3ea(0x33f)](_0x526692,_0x24981a),this[_0x58c3ea(0x428)][_0x58c3ea(0x2c9)](_0x4bfc2e);}['_onCursorDelete'](_0x49435a){const _0x3399c1=_0x6c52c3,{memberID:_0x1254a5}=_0x49435a['data'],_0x4c7055=this[_0x3399c1(0x2fa)];_0x4c7055[_0x3399c1(0x41a)](_0x1254a5),this[_0x3399c1(0x428)]['next'](_0x4c7055);}[_0x6c52c3(0x3da)](_0x625402,_0x37e7cf){const _0x559775=_0x6c52c3;var _0x2ab6cd,_0xdb53c9;const _0x3cc341=(_0xdb53c9=(_0x2ab6cd=this[_0x559775(0x3dd)]['getUniverSheetInstance'](this[_0x559775(0x2ec)]))==null?void 0x0:_0x2ab6cd[_0x559775(0x375)](_0x625402))==null?void 0x0:_0xdb53c9[_0x559775(0x30b)]();return(_0x3cc341==null?void 0x0:_0x3cc341[_0x559775(0x2db)](_0x441b34=>a[_0x559775(0x3bc)][_0x559775(0x3cd)](_0x441b34,_0x37e7cf)))||_0x37e7cf;}[_0x6c52c3(0x3d9)](){const _0x291a33=_0x6c52c3,_0x33c7b7=new a[(_0x291a33(0x437))](),_0x227837=Et(),_0x22e3c2=()=>{const _0x53f63f=_0x291a33;_0x33c7b7[_0x53f63f(0x18d)]();const _0x204144=(_0xb916a7,_0x1d9dd5,_0x5e2fe2,_0x454956)=>{const _0x3ec64d=_0x53f63f;let _0x8d5ab9=[];switch(_0xb916a7['id']){case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x434)]:{_0x8d5ab9=v[_0x3ec64d(0x40c)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x3c8)]:{_0x8d5ab9=v[_0x3ec64d(0x1ca)](_0xb916a7,_0x454956);break;}case v['EffectRefRangId'][_0x3ec64d(0x3f1)]:{_0x8d5ab9=v[_0x3ec64d(0x3f0)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)]['InsertRangeMoveDownCommandId']:{_0x8d5ab9=v['handleInsertRangeMoveDown'](_0xb916a7,_0x454956);break;}case v['EffectRefRangId'][_0x3ec64d(0x3ba)]:{_0x8d5ab9=v[_0x3ec64d(0x1f4)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x36a)]:{_0x8d5ab9=v[_0x3ec64d(0x421)](_0xb916a7,_0x454956);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x8d5ab9=v[_0x3ec64d(0x3e8)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x1a6)]:{_0x8d5ab9=v[_0x3ec64d(0x311)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)]['RemoveRowCommandId']:{_0x8d5ab9=v['handleIRemoveRow'](_0xb916a7,_0x454956);break;}}const _0x16c3c4=v[_0x3ec64d(0x355)](_0x8d5ab9,_0x454956),_0x323bde=this['cursorInfo']['get'](_0x1d9dd5);if(_0x323bde&&_0x16c3c4){const _0x32cd87={..._0x323bde,'range':_0x16c3c4};this[_0x3ec64d(0x2fa)]['set'](_0x1d9dd5,_0x32cd87),_0x227837(()=>{const _0x19f8ad=_0x3ec64d,_0x4c249f=this['_refRangeService']['registerRefRange'](_0x16c3c4,_0x40e187=>(_0x4c249f[_0x19f8ad(0x18d)](),_0x204144(_0x40e187,_0x1d9dd5,_0x5e2fe2,_0x16c3c4)));_0x33c7b7['add'](_0x4c249f);});}return{'redos':[],'undos':[]};};this[_0x53f63f(0x2fa)][_0x53f63f(0x1b1)]((_0x40d1dd,_0x24f563)=>{const _0x42ed30=_0x53f63f,{range:_0x217951,sheetID:_0x47d2cd}=_0x40d1dd,_0x131d45=this[_0x42ed30(0x228)][_0x42ed30(0x239)](_0x217951,_0x1800de=>(_0x131d45['dispose'](),_0x204144(_0x1800de,_0x24f563,_0x47d2cd,_0x217951)));_0x33c7b7[_0x42ed30(0x194)](_0x131d45);});};this[_0x291a33(0x392)](a[_0x291a33(0x1aa)](this[_0x291a33(0x428)][_0x291a33(0x403)](()=>{_0x22e3c2();})));}[_0x6c52c3(0x3f4)](){const _0x34e094=_0x6c52c3;var _0x8885f1,_0x5efc13;if(this[_0x34e094(0x3cc)]=!0x0,((_0x8885f1=this['_univerInstanceService'][_0x34e094(0x279)]())==null?void 0x0:_0x8885f1[_0x34e094(0x411)]())!==this[_0x34e094(0x2ec)])return;const _0x31c659=(_0x5efc13=this[_0x34e094(0x3a1)][_0x34e094(0x285)](v[_0x34e094(0x1dd)])[_0x34e094(0x2da)]())==null?void 0x0:_0x5efc13[0x0],_0x5328d0=this[_0x34e094(0x3dd)][_0x34e094(0x363)](a[_0x34e094(0x3ec)][_0x34e094(0x24e)])['getActiveSheet']();_0x31c659&&_0x5328d0&&this[_0x34e094(0x3e6)](_0x5328d0[_0x34e094(0x2c6)](),_0x31c659);}[_0x6c52c3(0x202)](){this['_online']=!0x1;}};ve=mt([y(0x2,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),y(0x3,a[_0x6c52c3(0x1ee)](Oe)),y(0x4,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x248)])),y(0x5,a['IUniverInstanceService']),y(0x6,a[_0x6c52c3(0x391)]),y(0x7,a[_0x6c52c3(0x1ee)](v[_0x6c52c3(0x258)]))],ve);var Ct=Object[_0x6c52c3(0x2ac)],pt=(_0x37f076,_0x576f2e,_0xff3e2,_0x36de38)=>{const _0x760a10=_0x6c52c3;for(var _0x3f32fc=_0x36de38>0x1?void 0x0:_0x36de38?Ct(_0x576f2e,_0xff3e2):_0x576f2e,_0x470c24=_0x37f076[_0x760a10(0x1f0)]-0x1,_0xa0f315;_0x470c24>=0x0;_0x470c24--)(_0xa0f315=_0x37f076[_0x470c24])&&(_0x3f32fc=_0xa0f315(_0x3f32fc)||_0x3f32fc);return _0x3f32fc;},ae=(_0x56b3e6,_0x5df91c)=>(_0x54c8ab,_0x1140ff)=>_0x5df91c(_0x54c8ab,_0x1140ff,_0x56b3e6);let F=class extends a[_0x6c52c3(0x358)]{constructor(_0x39c5bb,_0x2cb034,_0x374684){const _0x5f0c48=_0x6c52c3;super(),_(this,_0x5f0c48(0x247),new Map()),_(this,_0x5f0c48(0x2b4),new I[(_0x5f0c48(0x1c1))]()),(this[_0x5f0c48(0x3dd)]=_0x39c5bb,this[_0x5f0c48(0x3a1)]=_0x2cb034,this[_0x5f0c48(0x324)]=_0x374684,this[_0x5f0c48(0x39e)]());}[_0x6c52c3(0x18d)](){const _0x50c0ec=_0x6c52c3;super[_0x50c0ec(0x18d)](),this[_0x50c0ec(0x2b4)][_0x50c0ec(0x401)](),this[_0x50c0ec(0x247)][_0x50c0ec(0x1b1)](_0x216851=>_0x216851[_0x50c0ec(0x18d)]());}[_0x6c52c3(0x430)](_0x35d48d){const _0x3bf615=_0x6c52c3;return this['_entities'][_0x3bf615(0x27c)](_0x35d48d)?this['_entities'][_0x3bf615(0x285)](_0x35d48d)[_0x3bf615(0x1cc)]:this[_0x3bf615(0x2b4)][_0x3bf615(0x1b7)](I['filter'](_0x49ceda=>_0x49ceda['unitID']===_0x35d48d),I['switchMap'](_0x3aa61e=>_0x3aa61e[_0x3bf615(0x1cc)]));}[_0x6c52c3(0x39e)](){const _0x5ae4ca=_0x6c52c3;this[_0x5ae4ca(0x3dd)]['getTypeOfUnitAdded$'](a[_0x5ae4ca(0x3ec)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x5ae4ca(0x359)]))['subscribe'](async _0x18e5fd=>{const _0x12ab15=_0x5ae4ca,_0x531278=_0x18e5fd[_0x12ab15(0x411)](),_0x55fe23=await this[_0x12ab15(0x1c5)](_0x531278);this[_0x12ab15(0x2b4)][_0x12ab15(0x2c9)](_0x55fe23),this[_0x12ab15(0x247)]['set'](_0x531278,_0x55fe23);}),this[_0x5ae4ca(0x3dd)][_0x5ae4ca(0x2f7)](a[_0x5ae4ca(0x3ec)]['UNIVER_DOC'])[_0x5ae4ca(0x1b7)](I[_0x5ae4ca(0x3c3)](this[_0x5ae4ca(0x359)]))[_0x5ae4ca(0x1b7)](I['filter'](_0x42c535=>!_0x42c535['getUnitId']()[_0x5ae4ca(0x326)]('__')))[_0x5ae4ca(0x403)](async _0x158084=>{const _0x5b1d6b=_0x5ae4ca,_0x167e7c=_0x158084[_0x5b1d6b(0x411)](),_0x4c79da=await this[_0x5b1d6b(0x379)](_0x167e7c);this['_entityInit$'][_0x5b1d6b(0x2c9)](_0x4c79da),this['_entities'][_0x5b1d6b(0x33f)](_0x167e7c,_0x4c79da);}),I[_0x5ae4ca(0x3ff)](this[_0x5ae4ca(0x3dd)][_0x5ae4ca(0x28c)](a[_0x5ae4ca(0x3ec)][_0x5ae4ca(0x231)]),this['_univerInstanceService'][_0x5ae4ca(0x28c)](a[_0x5ae4ca(0x3ec)][_0x5ae4ca(0x24e)]))[_0x5ae4ca(0x1b7)](I[_0x5ae4ca(0x3c3)](this['dispose$']))[_0x5ae4ca(0x403)](_0x151d26=>{const _0x3a937b=_0x5ae4ca,_0x50004d=_0x151d26[_0x3a937b(0x411)](),_0x1a1ded=this['_entities'][_0x3a937b(0x285)](_0x50004d);_0x1a1ded&&(_0x1a1ded[_0x3a937b(0x18d)](),this[_0x3a937b(0x247)]['delete'](_0x50004d));});}async['_startSheetCollabCursor'](_0xce4da5){const _0x459788=_0x6c52c3,_0x3fa18b=await this['_collabSessionService'][_0x459788(0x43e)](_0xce4da5),_0x537c4e=this[_0x459788(0x3a1)][_0x459788(0x20b)](ve,_0xce4da5,_0x3fa18b);return _0x537c4e[_0x459788(0x1a3)](),_0x537c4e;}async[_0x6c52c3(0x379)](_0x406e95){const _0x5c1e5b=_0x6c52c3,_0x54a6c1=await this[_0x5c1e5b(0x324)][_0x5c1e5b(0x43e)](_0x406e95),_0x23eccb=this[_0x5c1e5b(0x3a1)]['createInstance'](me,_0x406e95,_0x54a6c1);return _0x23eccb[_0x5c1e5b(0x1a3)](),_0x23eccb;}};F=pt([ae(0x0,a[_0x6c52c3(0x40e)]),ae(0x1,a['Inject'](a[_0x6c52c3(0x1f7)])),ae(0x2,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x417)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x1b5d9f,_0x2ecf56){const _0x45ecf3=_0x6c52c3;let {radius:_0x3708a5,width:_0x82dfe0,height:_0xcff00f}=_0x2ecf56;_0x3708a5=_0x3708a5!=null?_0x3708a5:0x0,_0x82dfe0=_0x82dfe0!=null?_0x82dfe0:0x1e,_0xcff00f=_0xcff00f!=null?_0xcff00f:0x1e;let _0x3ac00b=0x0,_0x4d6b4c=0x0,_0x224f98=0x0;_0x3ac00b=_0x4d6b4c=_0x224f98=Math['min'](_0x3708a5,_0x82dfe0/0x2,_0xcff00f/0x2),_0x1b5d9f[_0x45ecf3(0x192)](),_0x1b5d9f[_0x45ecf3(0x257)](_0x3ac00b,0x0),_0x1b5d9f[_0x45ecf3(0x3e5)](_0x82dfe0-_0x4d6b4c,0x0),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x82dfe0-_0x4d6b4c,_0x4d6b4c,_0x4d6b4c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b5d9f['lineTo'](_0x82dfe0,_0xcff00f-_0x224f98),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x82dfe0-_0x224f98,_0xcff00f-_0x224f98,_0x224f98,0x0,Math['PI']/0x2,!0x1),_0x1b5d9f[_0x45ecf3(0x3e5)](0x0,_0xcff00f),_0x1b5d9f['lineTo'](0x0,_0x3ac00b),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x3ac00b,_0x3ac00b,_0x3ac00b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b5d9f[_0x45ecf3(0x422)](),_0x2ecf56[_0x45ecf3(0x2fb)]&&(_0x1b5d9f['save'](),_0x1b5d9f[_0x45ecf3(0x2f6)]=_0x2ecf56[_0x45ecf3(0x2fb)],_0x2ecf56[_0x45ecf3(0x2b6)]===_0x45ecf3(0x3b9)?_0x1b5d9f['fill'](_0x45ecf3(0x3b9)):_0x1b5d9f['fill'](),_0x1b5d9f[_0x45ecf3(0x39f)]());}class ne extends C[_0x6c52c3(0x265)]{constructor(_0x191a32,_0x57e2d6){const _0x17fe73=_0x6c52c3;super(_0x191a32,_0x57e2d6),_(this,_0x17fe73(0x2fe)),_(this,'text'),(this['color']=_0x57e2d6==null?void 0x0:_0x57e2d6[_0x17fe73(0x2fe)],this['text']=_0x57e2d6==null?void 0x0:_0x57e2d6[_0x17fe73(0x2d7)]);}static[_0x6c52c3(0x2c5)](_0x1842f,_0x34e02c){const _0x11f356=_0x6c52c3,{text:_0x528e5d,color:_0x1afc97}=_0x34e02c;_0x1842f[_0x11f356(0x314)](),_0x1842f['font']=_0x11f356(0x2b1);const _0x356e73=_0x1842f[_0x11f356(0x344)](_0x528e5d)[_0x11f356(0x37f)],_0x3fe5c4=Math['min'](_0x356e73+0x2*ce,Ne);Ot(_0x1842f,{'height':K,'radius':0x4,'width':_0x3fe5c4,'fill':_0x1afc97}),_0x1842f[_0x11f356(0x2f6)]=_0x11f356(0x226);const _0x4ee401=ce,_0xba8498=K-Tt,_0x38a3d6=Ne-0x2*ce;if(_0x356e73>_0x38a3d6){let _0x273222='',_0x26884d=0x0;for(const _0x22024e of _0x528e5d){const _0x3352c3=_0x1842f['measureText'](_0x22024e)['width'];if(_0x26884d+_0x3352c3<=_0x38a3d6-_0x1842f[_0x11f356(0x344)](_0x11f356(0x182))['width'])_0x273222+=_0x22024e,_0x26884d+=_0x3352c3;else{_0x273222+='...';break;}}_0x1842f[_0x11f356(0x18c)](_0x273222,_0x4ee401,_0xba8498);}else _0x1842f[_0x11f356(0x18c)](_0x528e5d,_0x4ee401,_0xba8498);_0x1842f[_0x11f356(0x39f)]();}[_0x6c52c3(0x2dc)](_0x363174){const _0x30f66e=_0x6c52c3;ne[_0x30f66e(0x2c5)](_0x363174,this);}}const le=_0x6c52c3(0x185),Rt=_0x6c52c3(0x1d9),bt=_0x6c52c3(0x334),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x6c52c3(0x33d);class Ue{constructor(_0x4ee993,_0x444c1b,_0x3bca80,_0x484656){const _0x2904c4=_0x6c52c3;_(this,_0x2904c4(0x268),[]),_(this,_0x2904c4(0x1ce),null),_(this,'_textBubble',null),_(this,_0x2904c4(0x20c),null),_(this,'_hideTimer',null),_(this,_0x2904c4(0x2d2),null),(this['_cursor']=_0x4ee993,this['_scene']=_0x444c1b,this['_docSkeleton']=_0x3bca80,this['_document']=_0x484656,this[_0x2904c4(0x3e7)]());}set[_0x6c52c3(0x38d)](_0x166e53){const _0x30e090=_0x6c52c3;_0x166e53?(this[_0x30e090(0x20c)]&&this[_0x30e090(0x20c)][_0x30e090(0x1ab)](),this['_textBubble']&&this[_0x30e090(0x2ae)][_0x30e090(0x1d3)]()):(this[_0x30e090(0x20c)]&&this[_0x30e090(0x20c)][_0x30e090(0x1d3)](),this[_0x30e090(0x2ae)]&&this['_textBubble'][_0x30e090(0x1ab)]());}[_0x6c52c3(0x18d)](){const _0x5c6699=_0x6c52c3;for(const _0x528d29 of this['_shapes'])_0x528d29[_0x5c6699(0x18d)]();this[_0x5c6699(0x2ae)]&&this['_textBubble'][_0x5c6699(0x18d)](),this[_0x5c6699(0x20c)]&&this[_0x5c6699(0x20c)]['dispose'](),this[_0x5c6699(0x1ce)]&&this[_0x5c6699(0x1ce)]['dispose'](),this[_0x5c6699(0x2d2)]&&this[_0x5c6699(0x2d2)]();}[_0x6c52c3(0x3e7)](){const _0xb04406=_0x6c52c3;var _0x1b501c;const {_docSkeleton:_0x4fe517,_document:_0x398696}=this,{color:_0x568f20,name:_0x11c0ad,ranges:_0x5c9f7f}=this['_cursor'],_0x30ba48=_0x398696[_0xb04406(0x35c)](),{docsLeft:_0x217f4e,docsTop:_0x368be5}=_0x30ba48,_0x4a0918=new p['NodePositionConvertToCursor'](_0x30ba48,_0x4fe517);for(const {startOffset:_0x296020,endOffset:_0x2ce6fd,rangeType:_0x57d7ae,segmentId:_0x245ad3,segmentPage:_0x4e2a81,collapsed:_0x242350,isActive:_0x441827}of _0x5c9f7f){const _0x590768=_0x4fe517[_0xb04406(0x2d5)](_0x296020,!0x0,_0x245ad3,_0x4e2a81);let _0x389c07=_0x4fe517[_0xb04406(0x2d5)](_0x2ce6fd,!0x0,_0x245ad3,_0x4e2a81);if(_0x389c07==null&&(_0x389c07=_0x4fe517[_0xb04406(0x2d5)](_0x2ce6fd-0x1,!0x1,_0x245ad3,_0x4e2a81)),_0x441827){const {contentBoxPointGroup:_0x2c7401}=_0x4a0918['getRangePointData'](_0x389c07,_0x389c07);if(_0x2c7401['length']===0x0)continue;this[_0xb04406(0x2f9)](_0x568f20,_0x2c7401,_0x217f4e,_0x368be5,_0x11c0ad),this[_0xb04406(0x2d2)]=this['_handleHover']();}if(_0x590768&&_0x389c07){if(_0x57d7ae===a[_0xb04406(0x3f9)][_0xb04406(0x3c9)]){const _0x1b05ec=new p[(_0xb04406(0x3f7))](_0x30ba48,_0x4fe517),{pointGroup:_0x32ffae}=(_0x1b501c=_0x1b05ec[_0xb04406(0x289)](_0x590768,_0x389c07))!=null?_0x1b501c:{};if(_0x32ffae==null||_0x32ffae[_0xb04406(0x1f0)]===0x0)continue;this[_0xb04406(0x184)](_0x568f20,_0x32ffae,_0x217f4e,_0x368be5);}else{if(!_0x242350){const {borderBoxPointGroup:_0x49ba19}=_0x4a0918[_0xb04406(0x289)](_0x590768,_0x389c07);if(_0x49ba19[_0xb04406(0x1f0)]===0x0)continue;this[_0xb04406(0x276)](_0x568f20,_0x49ba19,_0x217f4e,_0x368be5);}}}}}[_0x6c52c3(0x2f9)](_0x1f94c3,_0x1d105c,_0x41ec89,_0x36df61,_0x56727c){const _0x12d09e=_0x6c52c3,_0xf84657=this[_0x12d09e(0x286)](_0x1d105c),{left:_0xd07d05,top:_0x4fd14a,height:_0x353c80}=_0xf84657,_0x22a0fb=this[_0x12d09e(0x352)](),_0x53e490=Nt/_0x22a0fb,_0x329f02=new C['Rect'](le+a[_0x12d09e(0x254)](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61,'height':_0x353c80,'width':Dt,'fill':_0x1f94c3||C['getColor'](a[_0x12d09e(0x267)]['black'],0x0),'strokeWidth':_0x53e490,'stroke':Ut,'evented':!0x0});this[_0x12d09e(0x1ce)]=_0x329f02,this[_0x12d09e(0x2d4)][_0x12d09e(0x2fd)](_0x329f02,p[_0x12d09e(0x19a)]);const _0x3dbdb4=new C['Rect'](le+a[_0x12d09e(0x254)](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61-_e/0x2,'height':_e,'width':_e,'fill':_0x1f94c3||C[_0x12d09e(0x1ef)](a[_0x12d09e(0x267)][_0x12d09e(0x2ba)],0x0),'strokeWidth':0x0,'stroke':_0x1f94c3||C['getColor'](a['COLORS'][_0x12d09e(0x2ba)],0x0),'evented':!0x1});this[_0x12d09e(0x20c)]=_0x3dbdb4,this[_0x12d09e(0x2d4)][_0x12d09e(0x2fd)](_0x3dbdb4,p['TEXT_RANGE_LAYER_INDEX']);const _0x288260=new ne(le+a['generateRandomId'](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61-K,'text':_0x56727c,'color':_0x1f94c3});this['_textBubble']=_0x288260,this[_0x12d09e(0x2d4)]['addObject'](_0x288260,p['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x6c52c3(0x227)](){const _0x3f9ec5=_0x6c52c3,_0x15496a=this[_0x3f9ec5(0x1ce)][_0x3f9ec5(0x2d8)]['subscribeEvent'](()=>{const _0x33cd5c=_0x3f9ec5;this[_0x33cd5c(0x38d)]=!0x0;}),_0x50c9e7=this[_0x3f9ec5(0x1ce)][_0x3f9ec5(0x24d)][_0x3f9ec5(0x34d)](()=>{const _0x4ff4cb=_0x3f9ec5;this[_0x4ff4cb(0x33a)]&&clearTimeout(this[_0x4ff4cb(0x33a)]),this['_hideTimer']=setTimeout(()=>{const _0x1c6dd9=_0x4ff4cb;this[_0x1c6dd9(0x38d)]=!0x1;},0x7d0);});return()=>{const _0x276cec=_0x3f9ec5;_0x15496a[_0x276cec(0x3a2)](),_0x50c9e7['unsubscribe']();};}[_0x6c52c3(0x276)](_0x3719f9,_0x5ea9b4,_0x4c1555,_0x5a773b){const _0x1d7fbe=_0x6c52c3,_0x1eb119=new a[(_0x1d7fbe(0x207))](_0x3719f9)[_0x1d7fbe(0x323)](0.2)[_0x1d7fbe(0x29f)](),_0x1eaa66=new C[(_0x1d7fbe(0x1a7))](Rt+a[_0x1d7fbe(0x254)](H),{'pointsGroup':_0x5ea9b4,'fill':_0x1eb119||C[_0x1d7fbe(0x1ef)](a['COLORS'][_0x1d7fbe(0x2ba)],0.2),'left':_0x4c1555,'top':_0x5a773b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d7fbe(0x268)][_0x1d7fbe(0x221)](_0x1eaa66),this[_0x1d7fbe(0x2d4)]['addObject'](_0x1eaa66,p[_0x1d7fbe(0x19a)]);}[_0x6c52c3(0x184)](_0x289ee0,_0x2199da,_0x23eac3,_0x48fa78){const _0x485925=_0x6c52c3,_0x327529=new a[(_0x485925(0x207))](_0x289ee0)['setAlpha'](0.2)[_0x485925(0x29f)](),_0xe503fb=new C[(_0x485925(0x1a7))](bt+a[_0x485925(0x254)](H),{'pointsGroup':_0x2199da,'fill':_0x327529||C[_0x485925(0x1ef)](a['COLORS'][_0x485925(0x2ba)],0.2),'left':_0x23eac3,'top':_0x48fa78,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x485925(0x221)](_0xe503fb),this[_0x485925(0x2d4)]['addObject'](_0xe503fb,p[_0x485925(0x19a)]);}[_0x6c52c3(0x286)](_0x1832d3){const _0x39f17b=_0x1832d3[0x0],_0x1acbb5=_0x39f17b[0x0],_0x2864f7=_0x39f17b[0x2],{x:_0x13ba6f,y:_0x3f19de}=_0x1acbb5,{x:_0x160ef9,y:_0x23c226}=_0x2864f7;return{'left':_0x13ba6f,'top':_0x3f19de,'width':_0x160ef9-_0x13ba6f,'height':_0x23c226-_0x3f19de};}[_0x6c52c3(0x352)](){const _0x4e9a38=_0x6c52c3,{scaleX:_0x2b9e2d,scaleY:_0x78aae6}=this['_scene'][_0x4e9a38(0x1a5)]();return Math['max'](_0x2b9e2d,_0x78aae6);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x1ad104,_0x1587a1,_0x31d010,_0x4f660a)=>{const _0x35e775=_0x6c52c3;for(var _0x4db0af=_0x4f660a>0x1?void 0x0:_0x4f660a?Lt(_0x1587a1,_0x31d010):_0x1587a1,_0x584114=_0x1ad104[_0x35e775(0x1f0)]-0x1,_0x5aff27;_0x584114>=0x0;_0x584114--)(_0x5aff27=_0x1ad104[_0x584114])&&(_0x4db0af=_0x5aff27(_0x4db0af)||_0x4db0af);return _0x4db0af;},z=(_0xe0e6b4,_0x5acdf1)=>(_0x253eec,_0x457aa7)=>_0x5acdf1(_0x253eec,_0x457aa7,_0xe0e6b4);let ge=class extends a[_0x6c52c3(0x358)]{constructor(_0x3d440e,_0x898720,_0xc3bf3c,_0x54a6d8,_0x13f1b8){const _0xe8d4a4=_0x6c52c3;super(),_(this,'_cursorShapes',[]),_(this,_0xe8d4a4(0x43c),[]),(this['_context']=_0x3d440e,this[_0xe8d4a4(0x3b4)]=_0x898720,this[_0xe8d4a4(0x1d8)]=_0xc3bf3c,this[_0xe8d4a4(0x25f)]=_0x54a6d8,this[_0xe8d4a4(0x278)]=_0x13f1b8,this['_init']());}[_0x6c52c3(0x39e)](){const _0x380ab7=_0x6c52c3,_0xe6dde5=this[_0x380ab7(0x33c)][_0x380ab7(0x2b7)],_0x586bf9=this[_0x380ab7(0x3b4)];this['disposeWithMe'](I['combineLatest']([this[_0x380ab7(0x1d8)][_0x380ab7(0x430)](_0xe6dde5),this[_0x380ab7(0x278)][_0x380ab7(0x1f6)]])[_0x380ab7(0x1b7)]($[_0x380ab7(0x32a)](([_0x40d4b0,_0x23539e])=>({'skeleton':_0x586bf9[_0x380ab7(0x205)](),'cursors':[..._0x40d4b0['values']()]['flatMap'](_0x48ad69=>({..._0x48ad69,'color':this['_themeService'][_0x380ab7(0x25c)](_0x48ad69[_0x380ab7(0x2fe)])}))})))['subscribe'](_0x3f9245=>{const _0x5f62af=_0x380ab7;if(this['_removeCollabCursors'](),_0x3f9245){const {skeleton:_0x58a725,cursors:_0x3398b7}=_0x3f9245;this[_0x5f62af(0x2cf)](_0x58a725,_0x3398b7);}})),this[_0x380ab7(0x181)](),this[_0x380ab7(0x394)]();}[_0x6c52c3(0x2cf)](_0x366208,_0x52da26){const _0x2c0e2c=_0x6c52c3,{scene:_0x2a1c40,mainComponent:_0x5e719e}=this['_context'],_0x250c9c=_0x52da26[_0x2c0e2c(0x32a)](_0xa7f80d=>new Ue(_0xa7f80d,_0x2a1c40,_0x366208,_0x5e719e));this[_0x2c0e2c(0x385)]=_0x250c9c,this['_cursors']=_0x52da26;}[_0x6c52c3(0x241)](){const _0x21be4f=_0x6c52c3;this['_removeCollabCursors']();const {scene:_0x155cc7,mainComponent:_0x144752}=this['_context'],_0x30a2c9=this[_0x21be4f(0x3b4)][_0x21be4f(0x205)](),_0xd749f5=this[_0x21be4f(0x43c)][_0x21be4f(0x32a)](_0x5e6f87=>new Ue(_0x5e6f87,_0x155cc7,_0x30a2c9,_0x144752));this[_0x21be4f(0x385)]=_0xd749f5;}[_0x6c52c3(0x3bd)](){const _0x1004fc=_0x6c52c3;this[_0x1004fc(0x385)][_0x1004fc(0x1b1)](_0x28eca3=>_0x28eca3[_0x1004fc(0x18d)]()),this[_0x1004fc(0x385)]=[];}[_0x6c52c3(0x394)](){const _0x4244a6=_0x6c52c3,_0x5a42d7=[p[_0x4244a6(0x19c)]['id']];this['disposeWithMe'](this[_0x4244a6(0x25f)][_0x4244a6(0x22f)](_0x1dcb16=>{const _0x59b6a2=_0x4244a6;_0x5a42d7[_0x59b6a2(0x238)](_0x1dcb16['id'])&&_0x1dcb16[_0x59b6a2(0x2f4)][_0x59b6a2(0x2b7)]===this[_0x59b6a2(0x33c)][_0x59b6a2(0x2b7)]&&this['_refreshCollabCursors']();}));}[_0x6c52c3(0x181)](){const _0x57df4c=_0x6c52c3;this['disposeWithMe'](a[_0x57df4c(0x1e3)](this[_0x57df4c(0x33c)][_0x57df4c(0x3c6)][_0x57df4c(0x1a0)])[_0x57df4c(0x1b7)]($[_0x57df4c(0x280)](_0x478d0e=>_0x478d0e[_0x57df4c(0x333)]===C[_0x57df4c(0x1e9)][_0x57df4c(0x325)]),$[_0x57df4c(0x31c)](0x10))[_0x57df4c(0x403)](()=>{this['_refreshCollabCursors']();}));}};function _0x4304(){const _0x75122e=['_uiPartsService','INVALID_ARGUMENT','createElement','substring','_beforeCloseService','searchParams','stageInfo','actions','popstate','function','symbol','_docSkeletonManagerService','SessionStatus','clipPath','_clearPolling','REDEMPTION_INVALID_CODE','evenodd','InsertRangeMoveRightCommandId','LOCAL_CACHE_INTERVAL_KEY','Rectangle','_removeCollabCursors','hovered','subunit','endColumn','shareReplay','SYNCED','takeUntil','call','_syncEditingCollabCursorService','engine','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DeleteRangeMoveUpCommandId','RECT','releaseFormulaLimitUrl','arc','_online','contains','_transformService','_checkCalculationAvailable','SetTextSelectionsOperation','967200tvSkcj','defineProperty','debounce','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','white','_saveCache','collabStatus.synced','USER_NOT_INVITED_CODE','_onRefRangeChange','_getMergeRange','clearTimeout','ALREADY_EXISTS','_univerInstanceService','_removeClearOtherTimer','collaboration.single-unit.warning','1338237EaElzD','CollaborationEvent','getOwnPropertySymbols','div','INVITE_CODE_REQUIRED','lineTo','_updateLocalCursor','_render','handleMoveRange','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ILocalCacheService','sessionTicket','UniverInstanceType','subUnitId','SOCKET_FAILED_RETRY','USERS_LEAVE','handleInsertCol','InsertColCommandId','CollaborationDataLoaderController','none','_toggleOnline','PENDING','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','NodePositionConvertToRectRange','_status$','DOC_RANGE_TYPE','BuiltInUIPart','random','attrs','WECHAT_HAS_BEEN_BOUND','setTimeout','merge','totalFormulasToCalculate','complete','name','subscribe','range','off-line-icon_clip0_910_343','ONLINE','enableLocalCache','trim','saveTaskMap','createIdentifier','_heartbeatTimer','handleDeleteRangeMoveLeft','_disabled','IUniverInstanceService','_doCreateSocket','setItem','getUnitId','LICENSE_DISTRO_REJECTED','Disposable','currentColor','OFFLINE','now','CollaborationSessionService','prototype','Module','delete','removeParam','switchMap','YUUMI_RATE_OVER_LIMIT','UNAUTHENTICATED','OTHER_CLIENTS_EDITING','syncEditingCollabCursor','handleInsertRow','closePath','YUUMI_ASYNCIO_CANCELLED','replaceState','_currentUsage','M0\x200H16V16H0z','_localStorageService','_cursorInfo$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_docSyncEditingCollabCursorService','_docTransformSelectionsService','href','green.600','_name','Success','getCollabCursors$','registerRenderModule','svg','indexOf','DeleteRangeMoveLeftCommandId','apply','urlChange$','DisposableCollection','pushState','limitInfo','combineLatest','0\x200\x2017\x2016','_cursors','saveOfflineData','requireSession','[CollaborationDataLoaderController]','_initResize','...','body','_drawRectRange','collab-text-anchor-','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','START_CALCULATION','IDocClipboardService','getUndoRedoMutationParamsCache','getMemberID','_memberService','fillText','dispose','fromEvent','getActiveRange','_sheetSkeletonManagerService','addEventListener','beginPath','getConfig','add','REDEMPTION_USER_NOT_ELIGIBLE','_config','_scheduleHeartbeat','DocIMEInputManagerService','_labelPosition','TEXT_RANGE_LAYER_INDEX','FormulaExecutedStateType','SetDocZoomRatioOperation','getLocalCacheKey','APPLY_NON_SEQUENTIAL_REVISION','UnitStatus','onTransformChange$','transformMutation','_roomMembers$','init','AWAITING','getAncestorScale','RemoveColCommandId','RegularPolygon','_onCursorDelete','_getFormulaLimitStatus','toDisposable','hide','WebURLService','source','url(#off-line-icon_clip0_910_343)','YUUMI_NO_CUBOID_FOR_QUESTION','runOnServer','forEach','backgroundColor','_lastPointer','mapTo','path','Optional','pipe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_id','_backgroundColor','setInterval','top','getViewport','session.connection-failed','jiqing.500','_maxFormulaLimit','Subject','ranges','getCoordByCell','tag','_startSheetCollabCursor','AUTHORIZE_CODE_ILLEGAL','CURRENT_STATUS_CANNOT_OPERATE','IMessageService','HEADER_MENU','handleDeleteRangeMoveUp','_saveTaskMap','cursorInfo$','createSocket','_anchor','sessionStatus$','values','collab-client.tooltip.reconnect','focused$','show','getUnitStatus$','toStringTag','onMouseMove','_checkAndWaitForCalculationPermission','_collabCursorController','collab-text-range-','transformIMECache','_logService','USER_IS_ANONYMOUS','SheetsSelectionsService','_collaborationController','[RemoteUniscriptService]:\x20no\x20focused\x20unit','parse','YUUMI_ALL_TABLES_IS_INVALID','getStateCache','fromEventSubject','session.will-retry','IRemoteInstanceService','CollaborationStatus','jsx','_transformUndoRedoStack','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabCursorState$','_scheduleClearOtherTimer','_initDependencies','_configService','Inject','getColor','length','then','idSuffix','CONFLICT','handleInsertRangeMoveRight','MOBILE_HAS_BEEN_BOUND','currentTheme$','Injector','PERMISSION_DENIED','2874376UWJokw','VIEW_MAIN','ENTITLE_NEED_BILLING_ADDRESS','event$','setActiveRange','EMAIL_HAS_BEEN_BOUND','connectInjector','_taskIds','parseInt','_toggleOffline','_docTransformIMECacheService','REDEMPTION_CODE_HAS_BEEN_CREATED','getSkeleton','TEXT','ColorKit','_range','SHEET_VIEWPORT_KEY','LICENSE_IMPORT_SIZE_EXCEEDED','createInstance','_anchorDot','onStarting','_docTransformStateCacheService','m1Prime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','all','DocStateChangeManagerService','currentSkeleton$','unload','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_notificationService','mergeOverrideWithDependencies','endRow','data','debug','TOO_MANY_REQUESTS','history','eventID','defs','YUUMI_CONNECTOR_URL_NOT_FOUND','m2Prime','push','Vector2','LOGIN_TOKEN_PROCESSING_FAILED','SOCKET_FAILED','LocaleService','#FFF','_handleHover','_refRangeService','4455450CcHQkE','Rect','jsxs','BehaviorSubject','search','round','onCommandExecuted','assignAColorForMemberID','UNIVER_DOC','forwardRef','CommandType','_instanceService','from','CollaborationSocketService','_clearOtherTimers','includes','registerRefRange','_renderManagerService','LOGIN_FAILED','APPLY_REJECT','Workbook','getParam','deepClone','registerDependencies','_refreshCollabCursors','selections','CHANGESET_REVISION_CONFILICT','_send','_setupBeforeClosingHandler','getCurrent','_entities','MemberService','/universer-api/license/formula/limit/status','ITransformService','isArray','collabStatus.fetchMiss','onPointerLeave$','UNIVER_SHEET','_cachedData','updateOfflineData','DocCollaborationEntity','_ensureSubject','7mJgkND','generateRandomId','imageSourceType','transformRemoteChangeset','moveTo','RefRangeService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getformulaLimitStatusUrl','invokeId','getColorFromTheme','_imageIoService','transformStateCache','_commandService','SetFormulaCalculationStartMutation','colorChannel1','roomMembers$','RemoteUniscriptService','stage','Shape','YUUMI_AI_RUN_FAILED','COLORS','_shapes','children','/universer-api/license/formula/limit/start','clearInterval','code','_httpService','IURLService','post','activeSheet$','application/json','Plugin','AWAITING_WITH_PENDING','_hovered','_lastResponseTimestamp','_drawTextRange','_startCalculationLimit','_themeService','getFocusedUnit','univer-flex\x20univer-items-center','PAYMENT_CHANNEL_NOT_SUPPORT','has','deserializeRangeWithSheet','SheetCollabCursorShape','key','filter','INVALID_INVITE_CODE','UNDEFINED','xlink:href','row','get','_getAnchorBounding','getSheetObject','_showGuardMessage','getRangePointData','mutations','1em','getTypeOfUnitDisposed$','redoState','_pollingInterval','hasOwnProperty','1372278wsDGLg','onRendered','univerjs-icon\x20univerjs-icon-','override','isTransformMutationFailure','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_color','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_localeService','WebSocketService','SNAPSHOT_INVALID_SNAPSHOT','getCurrentRevOfUnit','formula.calculation.unable','CONNECTOR_DATA_TOO_LARGE','getUnit','toRgbString','_revisionService','with','IRenderManagerService','startFormulaLimitUrl','_dataLoaderService','INTERNAL_ERROR','reconnect','UniverIcon','string','location','_initEvent','registerBeforeClose','getOwnPropertyDescriptor','ISnapshotServerService','_textBubble','storage','selection','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','http://www.w3.org/2000/svg','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','_entityInit$','UPDATE_CURSOR','fillRule','unitId','_initStatusListener','_hasFormulaInDirtyRanges','black','labelPosition','_handleEvent','MessageType','_updateURLWithCurrentState','SNAPSHOT_HAS_BEEN_REMOVED','beforeCommandExecuted','REDEMPTION_CODE_NOT_STARTED','useRef','undoState','_initCommandInterceptor','drawWith','getSheetId','HTTPService','transformSelections','next','ILogService','_getSaveTimeout','_releaseCalculationLimit','_collabCursorState$','_collaborationUIEventService','_updateCollabCursors','collaboration-client.offline-data-not-saved','session.collaboration-timeout','_eventUnsubscribe','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_scene','findNodePositionByCharIndex','ERROR_AGAIN','text','onPointerEnter$','_colorAssignService','getCurrentSelections','find','_draw','isFormulaString','LICENSE_EXPORT_SIZE_EXCEEDED','CLOSE_ROOM','useDependency','FETCH_MISS','replaceDocRanges','_urlService','bottom','UNRECOGNIZED','ENTITLE_DUP_SUBSCRIPTION','_docStateChangeManagerService','_messageService','DesktopCollaborationStatusDisplayController','MOBILE_VERIFY_CODE_MISMATCH','getCellPositionByOffset','unitID','startRow','icon','getItem','_applyCommand','_initEntityListener','_docClipboardService','asObservable','params','JOIN_ROOM_FAILED','fillStyle','getTypeOfUnitAdded$','collaboration.closeRoom','_drawAnchor','cursorInfo','fill','getValue','addObject','color','entries','permission.content','_transformHistoryAndStateStack','stringify','runId','ISocketService','USER_NOT_FOUND','CollaborationUIEventId','red.300','transform','_colorIndex','OffLineIcon','getMergeData','FormulaExecuteStageType','IImageIoService','_registerDependencies','use','isActive','handleIRemoveCol','toString','SUBMIT_CHANGESET_TIMEOUT','save','COMPLETION_FINISHED','concat','_scheduleSaving','uni.network.url-service','executeCommand','ENTITLE_CAN_NOT_BUY_LOWER_OTP','setShapeProps','throttleTime','INVITE_CODE_ALREADY_BOUND','Warning','mask','defIds','sheetId','displayName','setAlpha','_collabSessionService','resize','startsWith','YUUMI_SUBSCRIPTION_NOT_FOUND','PY_RUNTIME_SCRIPT_ERROR','setParam','map','DEFAULT_WS_SESSION_TICKET_URL','CollaborationUIEventService','setConfig','roomMembers','_setFormulaLimitStatus','touchDependencies','disableLocalCache','_getSheetObject','type','collab-rect-range-','getMember','DependentOn','onPointerMove$','NO_OTHER_CLIENTS_EDITING','doc.mutation.rich-text-editing','_hideTimer','IConfigService','_context','rgba(255,\x20255,\x20255,\x200.01)','_setupSubUnitSync','set','NOT_COLLAB','YUUMI_UNABLE_LOAD_URL','SetWorksheetActivateCommand','DocSelectionManagerService','measureText','_assignedColors','send','addObjects','addClipboardHook','LICENSE_MAX_UNITS_EXCEEDED','setStateCache','origin','/universer-api/license/formula/limit/done','subscribeEvent','OnLineIcon','ENTITLE_REPORT_LIMIT_EXCEED','textRanges','_selfUnitIDs','_getScale','Error','_session','runRefRangeMutations','REDEMPTION_CODE_FULLY_REDEEMED','SetSelectionsOperation','RxDisposable','dispose$','collabStatus.syncing','_createSocketURL','getOffsetConfig','loadUnit','Tools','skeleton','whenReady','_onCursorUpdate','UniverCollaborationClientUIPlugin','getCurrentUnitForType','size','APPLY_REVISION_CONFILICT','_transformPreviousActiveRange','getCollabEntity$','NOT_FOUND','collabStatus.conflict','InsertRowCommandId','_unitStatus','ThemeService','unshift','url(#on-line-icon_clip0_910_349)','APPLY_DUPLICATED','IBeforeCloseService','_getSessionTicket','serializeRangeWithSheet','_handleLeaveEvent','startColumn','getSheetBySheetId','assign','docStateChange$','column','_startDocCollabCursor','replace','formula.calculation.waiting','editingUnit','isTransformMutationsWithChangesetSuccess','extend','width','WebBrowserSingleActiveUnitService','RichTextEditingMutation','split','className','error','_cursorShapes','_handleHeartbeatEvent','exhaustSavingTask','_updateSubUnitFromURLParams','ENTITLE_CHAT_LIMIT_EXCEED','ENSURE_SNAPSHOT_EXECUTION','ticket','getRenderById','_hover','2034826JNhrxl','url(#$1','?taskId=','ICommandService','disposeWithMe','IUIPartsService','_initCommandExecutedListener','Failed','2983780quJyYR','newValue','getCellMatrix','purple.300','Tooltip','transformMutationsWithChangeset','_unitOnClients','wsSessionTicketUrl','_init','restore','_initStatusComponent','_injector','unsubscribe','_localCacheService','on-line-icon_clip0_910_349','CollaborationController','collabStatus.offline','EffectRefRangId','blue.400'];_0x4304=function(){return _0x75122e;};return _0x4304();}ge=Mt([z(0x1,a[_0x6c52c3(0x1ee)](V['DocSkeletonManagerService'])),z(0x2,a['Inject'](F)),z(0x3,a[_0x6c52c3(0x391)]),z(0x4,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x36c)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x6c52c3(0x265)]{constructor(_0x402888,_0x8f2a9d){const _0x4a77a5=_0x6c52c3;super(_0x402888,_0x8f2a9d),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x4a77a5(0x208)),_(this,_0x4a77a5(0x42e),''),_(this,_0x4a77a5(0x199),_0x4a77a5(0x1bc)),_(this,_0x4a77a5(0x1ba)),(_0x8f2a9d&&this[_0x4a77a5(0x31b)](_0x8f2a9d),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x4a77a5(0x31b)]({'hovered':!0x0})),this[_0x4a77a5(0x24d)][_0x4a77a5(0x34d)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x6c52c3(0x31b)](_0x5c24bc){const _0x6368d5=_0x6c52c3;var _0x7dde4,_0x41f7cf,_0x973e3f,_0x473b65,_0x48d70d,_0x2bc745;this['_color']=(_0x7dde4=_0x5c24bc[_0x6368d5(0x2fe)])!=null?_0x7dde4:this[_0x6368d5(0x296)],this[_0x6368d5(0x274)]=(_0x41f7cf=_0x5c24bc[_0x6368d5(0x3be)])!=null?_0x41f7cf:this['_hovered'],this[_0x6368d5(0x208)]=(_0x973e3f=_0x5c24bc[_0x6368d5(0x404)])!=null?_0x973e3f:this[_0x6368d5(0x208)],this['_name']=(_0x473b65=_0x5c24bc[_0x6368d5(0x402)])!=null?_0x473b65:this[_0x6368d5(0x42e)],this[_0x6368d5(0x199)]=(_0x48d70d=_0x5c24bc[_0x6368d5(0x2bb)])!=null?_0x48d70d:this['_labelPosition'],this[_0x6368d5(0x1ba)]=(_0x2bc745=_0x5c24bc[_0x6368d5(0x1b2)])!=null?_0x2bc745:this['_backgroundColor'],this['transformByState']({'width':_0x5c24bc[_0x6368d5(0x37f)],'height':_0x5c24bc['height']});}[_0x6c52c3(0x1d6)](_0x551f5a){const _0x19e1bf=_0x6c52c3,{row:_0x4c2f2c,column:_0x2f3cc4}=_0x551f5a;if(_0x4c2f2c>=this[_0x19e1bf(0x208)][_0x19e1bf(0x2ed)]&&_0x4c2f2c<=this[_0x19e1bf(0x208)][_0x19e1bf(0x218)]&&_0x2f3cc4>=this[_0x19e1bf(0x208)][_0x19e1bf(0x374)]&&_0x2f3cc4<=this[_0x19e1bf(0x208)][_0x19e1bf(0x3c0)]){this[_0x19e1bf(0x31b)]({'hovered':!0x0});return;}this[_0x19e1bf(0x31b)]({'hovered':!0x1});}['triggerDblclick'](_0x2e2105){return!0x1;}[_0x6c52c3(0x2dc)](_0x2fab22){const _0x5cc1e7=_0x6c52c3;C[_0x5cc1e7(0x22a)][_0x5cc1e7(0x2c5)](_0x2fab22,{'width':this[_0x5cc1e7(0x37f)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x5cc1e7(0x296)],'evented':!0x1,'fill':this[_0x5cc1e7(0x1ba)]}),this['_hovered']&&(_0x2fab22['save'](),_0x2fab22[_0x5cc1e7(0x308)](0x1,0x0,0x0,0x1,this[_0x5cc1e7(0x37f)],this[_0x5cc1e7(0x199)]===_0x5cc1e7(0x2e4)?0x0:-K),ne[_0x5cc1e7(0x2c5)](_0x2fab22,{'text':this[_0x5cc1e7(0x42e)],'color':this[_0x5cc1e7(0x296)]}),_0x2fab22[_0x5cc1e7(0x39f)]());}}var wt=Object[_0x6c52c3(0x2ac)],yt=(_0x31ae63,_0xef868d,_0xf3514,_0x3689cf)=>{for(var _0x317299=_0x3689cf>0x1?void 0x0:_0x3689cf?wt(_0xef868d,_0xf3514):_0xef868d,_0x780f48=_0x31ae63['length']-0x1,_0x5d57e6;_0x780f48>=0x0;_0x780f48--)(_0x5d57e6=_0x31ae63[_0x780f48])&&(_0x317299=_0x5d57e6(_0x317299)||_0x317299);return _0x317299;},he=(_0x2f7326,_0x4d0a64)=>(_0x26092d,_0x58869c)=>_0x4d0a64(_0x26092d,_0x58869c,_0x2f7326);const xt=0x1389;let Ee=class extends a[_0x6c52c3(0x358)]{constructor(_0x40fa7a,_0x1ab5e4,_0x387ebe,_0x53e38f){const _0x15636c=_0x6c52c3;super(),_(this,_0x15636c(0x43c),new Set()),_(this,_0x15636c(0x1b3),null),(this[_0x15636c(0x33c)]=_0x40fa7a,this['_sheetSkeletonManagerService']=_0x1ab5e4,this[_0x15636c(0x1d8)]=_0x387ebe,this[_0x15636c(0x278)]=_0x53e38f,this[_0x15636c(0x39e)]());}[_0x6c52c3(0x39e)](){const _0x3390ff=_0x6c52c3;this[_0x3390ff(0x190)][_0x3390ff(0x213)]['pipe']($['takeUntil'](this['dispose$']),$[_0x3390ff(0x41c)](_0x2c8e5c=>{const _0x114ddb=_0x3390ff;if(_0x2c8e5c){const _0xf64156=_0x2c8e5c[_0x114ddb(0x321)];return I[_0x114ddb(0x43a)](this[_0x114ddb(0x1d8)]['getCollabCursors$'](this[_0x114ddb(0x33c)][_0x114ddb(0x2b7)]),this[_0x114ddb(0x278)][_0x114ddb(0x1f6)])['pipe']($[_0x114ddb(0x32a)](([_0x4c8e5f,_0x46e619])=>{const _0x2a939e=new Map();return _0x4c8e5f['forEach']((_0x217489,_0x445851)=>{const _0x589f10=_0xc584;if(_0x217489['sheetID']===_0xf64156){const _0x5eb81e={..._0x217489};_0x5eb81e[_0x589f10(0x2fe)]=this['_themeService'][_0x589f10(0x25c)](_0x217489[_0x589f10(0x2fe)]),_0x2a939e[_0x589f10(0x33f)](_0x445851,_0x5eb81e);}}),{'skeleton':_0x2c8e5c,'cursors':_0x2a939e};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3390ff(0x403)](({skeleton:_0x1275b1,cursors:_0x3fe3ec})=>{const _0x368230=_0x3390ff;this[_0x368230(0x3bd)](),_0x1275b1&&this[_0x368230(0x2cf)](_0x1275b1,_0x3fe3ec);}),this[_0x3390ff(0x190)][_0x3390ff(0x213)]['subscribe'](_0x2ae340=>{const _0x3b4348=_0x3390ff;if(_0x2ae340==null)return;const {skeleton:_0x293f69}=_0x2ae340,{scene:_0x47b6b2}=this[_0x3b4348(0x33c)];_0x47b6b2[_0x3b4348(0x337)][_0x3b4348(0x34d)](a['debounce'](_0x585ed1=>{const _0x191dd4=_0x3b4348;var _0x5165bd,_0xdad584;const {offsetX:_0x386c94,offsetY:_0x3fac48}=_0x585ed1,{x:_0x2f13ff,y:_0x47625d}=_0x47b6b2['getRelativeToViewportCoord'](C[_0x191dd4(0x222)]['FromArray']([_0x386c94,_0x3fac48])),{scaleX:_0x986ddc,scaleY:_0xfc2971}=_0x47b6b2['getAncestorScale'](),_0x22f6c4=_0x47b6b2[_0x191dd4(0x1bd)](C[_0x191dd4(0x209)][_0x191dd4(0x1fa)]),_0x303238=_0x47b6b2['getVpScrollXYInfoByPosToVp'](C[_0x191dd4(0x222)]['FromArray']([_0x2f13ff,_0x47625d]),_0x22f6c4),_0x3c4bc3=_0x293f69[_0x191dd4(0x2eb)](_0x386c94,_0x3fac48,_0x986ddc,_0xfc2971,_0x303238);((_0x5165bd=this['_lastPointer'])==null?void 0x0:_0x5165bd['column'])===_0x3c4bc3[_0x191dd4(0x378)]&&((_0xdad584=this[_0x191dd4(0x1b3)])==null?void 0x0:_0xdad584[_0x191dd4(0x284)])===_0x3c4bc3['row']||this[_0x191dd4(0x43c)][_0x191dd4(0x1b1)](_0x321602=>{const _0x5c65d3=_0x191dd4;_0x321602[_0x5c65d3(0x1d6)](_0x3c4bc3);});},0x64));});}[_0x6c52c3(0x2cf)](_0x64e955,_0xcd0472){const _0x511ef9=_0x6c52c3;var _0x30965c;const _0xb9e2c0=(_0x30965c=this[_0x511ef9(0x190)][_0x511ef9(0x246)]())==null?void 0x0:_0x30965c[_0x511ef9(0x35f)];if(!_0xb9e2c0)return;const _0x253278=this['_getSheetObject']();if(!_0x253278)return;this['_cursors'][_0x511ef9(0x1b1)](_0x15a5dc=>{_0x15a5dc['makeDirty']();});const {scene:_0x5bad62}=_0x253278,_0x250e21=$t(Array['from'](_0xcd0472[_0x511ef9(0x1d0)]()))[_0x511ef9(0x32a)](_0x2260a8=>{const _0x4bf2c5=_0x511ef9,{color:_0x235599,range:_0x37d1c9,name:_0x204c20,selection:_0x550bac,sheetID:_0x568ea5}=_0x2260a8,{startColumn:_0x52aaa9,startRow:_0x15ab1b,endColumn:_0x4a5aad,endRow:_0x4d02d0}=_0x37d1c9,_0x178e71=J['getCoordByCell'](_0x15ab1b,_0x52aaa9,_0x5bad62,_0xb9e2c0),_0x338552=J[_0x4bf2c5(0x1c3)](_0x4d02d0,_0x4a5aad,_0x5bad62,_0xb9e2c0),{columnHeaderHeightAndMarginTop:_0x60817}=_0xb9e2c0,{startX:_0x3fc959,startY:_0x454576}=_0x178e71,{endX:_0x22fe15,endY:_0x588f13}=_0x338552,_0x51061a=_0x22fe15-_0x3fc959,_0x22b099=_0x588f13-_0x454576,_0x5e8098={'labelPosition':_0x454576-_0x60817>=K?_0x4bf2c5(0x1bc):_0x4bf2c5(0x2e4),'sheetID':_0x568ea5,'range':_0x37d1c9,'color':_0x235599,'name':_0x204c20,'selection':_0x550bac,'left':_0x3fc959,'top':_0x454576,'width':_0x51061a,'height':_0x22b099,'evented':!0x1,'zIndex':xt};return new Fe(_0x204c20,_0x5e8098);});_0x5bad62[_0x511ef9(0x347)](_0x250e21,At),this['_cursors']=new Set(_0x250e21);}[_0x6c52c3(0x3bd)](){const _0x9736d4=_0x6c52c3;var _0x1a84fb;(_0x1a84fb=this[_0x9736d4(0x43c)])==null||_0x1a84fb['forEach'](_0x1828c1=>_0x1828c1[_0x9736d4(0x18d)]());}[_0x6c52c3(0x332)](){const _0x3f11fc=_0x6c52c3;return J[_0x3f11fc(0x287)](this['_context']['unit'],this['_context']);}};Ee=yt([he(0x1,a[_0x6c52c3(0x1ee)](J['SheetSkeletonManagerService'])),he(0x2,a[_0x6c52c3(0x1ee)](F)),he(0x3,a['Inject'](a['ThemeService']))],Ee);function $t(_0x18fb12){const _0x1310e4=_0x6c52c3,_0x52e7a5=new Map();return _0x18fb12[_0x1310e4(0x1b1)](_0xa11682=>{const _0x256e6e=_0x1310e4;if(_0x52e7a5[_0x256e6e(0x27c)](_0xa11682[_0x256e6e(0x2b0)])){const _0x11f0b7=_0x52e7a5[_0x256e6e(0x285)](_0xa11682[_0x256e6e(0x2b0)]);_0x11f0b7[_0x256e6e(0x402)]+=',\x20'+_0xa11682[_0x256e6e(0x402)];}else _0x52e7a5[_0x256e6e(0x33f)](_0xa11682[_0x256e6e(0x2b0)],_0xa11682);}),Array[_0x1310e4(0x235)](_0x52e7a5[_0x1310e4(0x1d0)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x3fd02c,_0x4a94a0,_0x4db46e,_0x2588f8)=>{for(var _0x12ddef=_0x2588f8>0x1?void 0x0:_0x2588f8?Bt(_0x4a94a0,_0x4db46e):_0x4a94a0,_0x479bf7=_0x3fd02c['length']-0x1,_0x1f09f5;_0x479bf7>=0x0;_0x479bf7--)(_0x1f09f5=_0x3fd02c[_0x479bf7])&&(_0x12ddef=_0x1f09f5(_0x12ddef)||_0x12ddef);return _0x12ddef;},x=(_0x5a45dd,_0x404577)=>(_0x48f2aa,_0xe77bb)=>_0x404577(_0x48f2aa,_0xe77bb,_0x5a45dd);let Z=class extends a[_0x6c52c3(0x413)]{constructor(_0x164a8b,_0x752c3f,_0x43f678,_0x56b882,_0x492352,_0x27f12f){const _0x3b56e2=_0x6c52c3;super(),this[_0x3b56e2(0x3ad)]=_0x164a8b,this[_0x3b56e2(0x3a3)]=_0x752c3f,this['_collaborationUIEventService']=_0x43f678,this[_0x3b56e2(0x2e8)]=_0x56b882,this['_notificationService']=_0x492352,this[_0x3b56e2(0x298)]=_0x27f12f,this[_0x3b56e2(0x245)](),this['_initEvent']();}[_0x6c52c3(0x245)](){const _0x4ca441=_0x6c52c3;this[_0x4ca441(0x392)](this[_0x4ca441(0x3ad)][_0x4ca441(0x2ab)](()=>{const _0x2e51eb=_0x4ca441;if(this[_0x2e51eb(0x3a3)][_0x2e51eb(0x409)][_0x2e51eb(0x364)])return this[_0x2e51eb(0x298)]['t'](_0x2e51eb(0x2d0));}));}[_0x6c52c3(0x2aa)](){const _0x55663a=_0x6c52c3;this[_0x55663a(0x392)](this[_0x55663a(0x2ce)][_0x55663a(0x1fc)][_0x55663a(0x403)](_0x1bb921=>{const _0x3426de=_0x55663a;_0x1bb921['id']===u[_0x3426de(0x306)]['OTHER_CLIENT_EDITING']&&this[_0x3426de(0x2e8)]['show']({'type':T['MessageType'][_0x3426de(0x31e)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x3df))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x2df)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)][_0x3426de(0x31e)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x2f8))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x1f8)]&&this[_0x3426de(0x216)][_0x3426de(0x1d3)]({'title':this[_0x3426de(0x298)]['t']('permission.title'),'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x300)),'type':_0x3426de(0x384),'duration':0x0}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x1f3)]&&this[_0x3426de(0x2e8)]['show']({'type':T[_0x3426de(0x2bd)][_0x3426de(0x353)],'content':this[_0x3426de(0x298)]['t']('collaboration.closeRoom')+'('+_0x1bb921[_0x3426de(0x219)]+')'}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x2f5)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)]['Warning'],'content':this[_0x3426de(0x298)]['t'](_0x1bb921[_0x3426de(0x219)]||'')}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x3ee)]&&this['_messageService'][_0x3426de(0x1d3)]({'type':T['MessageType']['Warning'],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x1e4))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x224)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)][_0x3426de(0x353)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x1be))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x313)]&&this['_messageService'][_0x3426de(0x1d3)]({'type':T['MessageType']['Error'],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x2d1))});}));}};Z=Ft([x(0x0,R[_0x6c52c3(0x370)]),x(0x1,u[_0x6c52c3(0x3ea)]),x(0x2,a['Inject'](u[_0x6c52c3(0x32c)])),x(0x3,R['IMessageService']),x(0x4,R['INotificationService']),x(0x5,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x225)]))],Z);const kt='collaboration-client-ui.config',Le={};var jt=Object[_0x6c52c3(0x2ac)],Yt=(_0x158eb0,_0x5a5b14,_0x58b839,_0x567468)=>{const _0x4ea4d3=_0x6c52c3;for(var _0x2d4e8c=_0x567468>0x1?void 0x0:_0x567468?jt(_0x5a5b14,_0x58b839):_0x5a5b14,_0x279930=_0x158eb0[_0x4ea4d3(0x1f0)]-0x1,_0x1e7ef9;_0x279930>=0x0;_0x279930--)(_0x1e7ef9=_0x158eb0[_0x279930])&&(_0x2d4e8c=_0x1e7ef9(_0x2d4e8c)||_0x2d4e8c);return _0x2d4e8c;},Me=(_0x2caad0,_0x19138b)=>(_0x33457d,_0x4b2e5b)=>_0x19138b(_0x33457d,_0x4b2e5b,_0x2caad0);let Q=class{constructor(_0x1a6af6,_0xcbde58){this['_transformService']=_0x1a6af6,this['_renderManagerService']=_0xcbde58;}[_0x6c52c3(0x1da)](_0x1693bd){const _0x222f67=_0x6c52c3;this[_0x222f67(0x1e8)](_0x1693bd),this['_transformPreviousActiveRange'](_0x1693bd);}['transformRemoteChangeset'](_0x45e24b){const _0x1f7ba2=_0x6c52c3,{unitID:_0x29a99b}=_0x45e24b,_0x5b80c0=this[_0x1f7ba2(0x23a)][_0x1f7ba2(0x38c)](_0x29a99b)['with'](p[_0x1f7ba2(0x198)]),{redoCache:_0x2b4731}=_0x5b80c0[_0x1f7ba2(0x189)]();if(_0x2b4731['length']===0x0)return _0x45e24b;let _0x486abd=a[_0x1f7ba2(0x35e)]['deepClone'](_0x45e24b['mutations'][0x0]);for(let _0x5b3181=0x0;_0x5b3181<_0x2b4731[_0x1f7ba2(0x1f0)];_0x5b3181++){const _0x4e4691={'id':_0x1f7ba2(0x339),'params':{..._0x2b4731[_0x5b3181]}},_0x418d05=this['_transformService']['transformMutation'](_0x486abd,_0x4e4691,!0x1);if(g[_0x1f7ba2(0x294)](_0x418d05))throw _0x418d05[_0x1f7ba2(0x384)];_0x486abd=_0x418d05[_0x1f7ba2(0x20f)];}return{...a[_0x1f7ba2(0x35e)][_0x1f7ba2(0x23f)](_0x45e24b),'mutations':[_0x486abd]};}['_transformUndoRedoStack'](_0x34b1e1){const _0x2b028f=_0x6c52c3,{unitID:_0x3d8b1d}=_0x34b1e1,_0x107dc0=this[_0x2b028f(0x23a)][_0x2b028f(0x38c)](_0x3d8b1d)[_0x2b028f(0x2a1)](p['DocIMEInputManagerService']),{undoCache:_0x329535,redoCache:_0x48f1cc}=_0x107dc0[_0x2b028f(0x189)]();if(_0x329535[_0x2b028f(0x1f0)]===0x0||_0x48f1cc[_0x2b028f(0x1f0)]===0x0)return;const _0x3cbbf2=[],_0x4d1165=[];let _0x64df99=a['Tools'][_0x2b028f(0x23f)](_0x34b1e1['mutations'][0x0]),_0x234328=a[_0x2b028f(0x35e)][_0x2b028f(0x23f)](_0x34b1e1[_0x2b028f(0x28a)][0x0]);for(let _0xfb5a40=_0x329535[_0x2b028f(0x1f0)]-0x1;_0xfb5a40>=0x0;_0xfb5a40--){const _0x1b24a1={'id':_0x2b028f(0x339),'params':{..._0x329535[_0xfb5a40]}},_0x1a22f8={'id':'doc.mutation.rich-text-editing','params':{..._0x48f1cc[_0xfb5a40]}},_0xc1a750=this['_transformService'][_0x2b028f(0x1a1)](_0x64df99,_0x1b24a1,!0x1),_0x2b840d=this[_0x2b028f(0x3ce)][_0x2b028f(0x1a1)](_0x234328,_0x1a22f8,!0x1);if(g[_0x2b028f(0x294)](_0xc1a750))throw _0xc1a750[_0x2b028f(0x384)];if(g[_0x2b028f(0x294)](_0x2b840d))throw _0x2b840d[_0x2b028f(0x384)];_0x3cbbf2[_0x2b028f(0x36d)](_0xc1a750[_0x2b028f(0x220)][_0x2b028f(0x2f4)]),_0x4d1165[_0x2b028f(0x36d)](_0x2b840d[_0x2b028f(0x220)][_0x2b028f(0x2f4)]),_0x64df99=_0xc1a750[_0x2b028f(0x20f)],_0x234328=_0x2b840d[_0x2b028f(0x20f)];}_0x107dc0['setUndoRedoMutationParamsCache']({'undoCache':_0x3cbbf2,'redoCache':_0x4d1165});}[_0x6c52c3(0x366)](_0xb00573){const _0x334c97=_0x6c52c3,{unitID:_0x52c28c}=_0xb00573,_0x251aaf=this[_0x334c97(0x23a)][_0x334c97(0x38c)](_0x52c28c)[_0x334c97(0x2a1)](p['DocIMEInputManagerService']),_0x2a6834=_0x251aaf[_0x334c97(0x18f)]();if(_0x2a6834==null)return;const _0x54aa49=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb00573[_0x334c97(0x2ec)],'actions':null,'textRanges':[_0x2a6834]}}],_0x5dbf8c=this[_0x334c97(0x3ce)][_0x334c97(0x39b)](_0xb00573,_0x54aa49);if(!g[_0x334c97(0x37d)](_0x5dbf8c))throw _0x5dbf8c[_0x334c97(0x384)];const _0x11caf0=_0x5dbf8c[_0x334c97(0x220)][0x0][_0x334c97(0x2f4)][_0x334c97(0x350)];Array[_0x334c97(0x24b)](_0x11caf0)&&_0x11caf0[_0x334c97(0x1f0)]&&_0x251aaf[_0x334c97(0x1fd)](_0x11caf0[0x0]);}};Q=Yt([Me(0x0,g['ITransformService']),Me(0x1,C[_0x6c52c3(0x2a2)])],Q);var Ht=Object[_0x6c52c3(0x2ac)],Wt=(_0xf57b72,_0x4915c4,_0x4c8f91,_0x30eeb7)=>{const _0xe459d4=_0x6c52c3;for(var _0x4793a4=_0x30eeb7>0x1?void 0x0:_0x30eeb7?Ht(_0x4915c4,_0x4c8f91):_0x4915c4,_0x15d731=_0xf57b72[_0xe459d4(0x1f0)]-0x1,_0x42556f;_0x15d731>=0x0;_0x15d731--)(_0x42556f=_0xf57b72[_0x15d731])&&(_0x4793a4=_0x42556f(_0x4793a4)||_0x4793a4);return _0x4793a4;},ue=(_0x535e6f,_0x57e872)=>(_0x56d570,_0x3d2e4b)=>_0x57e872(_0x56d570,_0x3d2e4b,_0x535e6f);let ee=class{constructor(_0x375c6f,_0x3ff286,_0x19fe80){const _0x5206d5=_0x6c52c3;this[_0x5206d5(0x3a1)]=_0x375c6f,this[_0x5206d5(0x3ce)]=_0x3ff286,this[_0x5206d5(0x2e7)]=_0x19fe80;}[_0x6c52c3(0x25e)](_0x4fb539){const _0x2b9c58=_0x6c52c3;this[_0x2b9c58(0x301)](_0x4fb539);}[_0x6c52c3(0x256)](_0xabecff){const _0x37906f=_0x6c52c3,{unitID:_0x38a5f1}=_0xabecff,{collaboration:_0x4b5d9d}=this[_0x37906f(0x2e7)][_0x37906f(0x1e2)](_0x38a5f1);if(_0x4b5d9d[_0x37906f(0x1f0)]===0x0)return _0xabecff;let _0x18cef4=a[_0x37906f(0x35e)][_0x37906f(0x23f)](_0xabecff[_0x37906f(0x28a)][0x0]);for(let _0x4b720b=0x0;_0x4b720b<_0x4b5d9d['length'];_0x4b720b++){const _0x48e91c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b5d9d[_0x4b720b]['unitId'],..._0x4b5d9d[_0x4b720b][_0x37906f(0x28d)]}},_0xb95ec=this[_0x37906f(0x3ce)][_0x37906f(0x1a1)](_0x18cef4,_0x48e91c,!0x1);if(g[_0x37906f(0x294)](_0xb95ec))throw _0xb95ec[_0x37906f(0x384)];_0x18cef4=_0xb95ec[_0x37906f(0x20f)];}return{...a[_0x37906f(0x35e)]['deepClone'](_0xabecff),'mutations':[_0x18cef4]};}[_0x6c52c3(0x301)](_0x10d3ce){const _0x1f25ca=_0x6c52c3,{unitID:_0x2fa7e5}=_0x10d3ce,{history:_0x327579,collaboration:_0x26f9a1}=this[_0x1f25ca(0x2e7)][_0x1f25ca(0x1e2)](_0x2fa7e5);if(_0x327579[_0x1f25ca(0x1f0)]===0x0&&_0x26f9a1[_0x1f25ca(0x1f0)]===0x0)return;const _0x4e5992=[],_0x57f248=[];let _0x5ba08e=a[_0x1f25ca(0x35e)]['deepClone'](_0x10d3ce[_0x1f25ca(0x28a)][0x0]),_0x31ca5a=a[_0x1f25ca(0x35e)]['deepClone'](_0x10d3ce['mutations'][0x0]);for(let _0x65c946=_0x327579[_0x1f25ca(0x1f0)]-0x1;_0x65c946>=0x0;_0x65c946--){const _0x44088e={'id':_0x1f25ca(0x339),'params':{'unitId':_0x327579[_0x65c946]['unitId'],..._0x327579[_0x65c946][_0x1f25ca(0x2c3)]}},_0x181dd5={'id':_0x1f25ca(0x339),'params':{'unitId':_0x327579[_0x65c946]['unitId'],..._0x327579[_0x65c946]['redoState']}},_0x33100a=this['_transformService']['transformMutation'](_0x5ba08e,_0x44088e,!0x1),_0x3dbad6=this[_0x1f25ca(0x3ce)][_0x1f25ca(0x1a1)](_0x31ca5a,_0x181dd5,!0x1);if(g[_0x1f25ca(0x294)](_0x33100a))throw _0x33100a[_0x1f25ca(0x384)];if(g[_0x1f25ca(0x294)](_0x3dbad6))throw _0x3dbad6[_0x1f25ca(0x384)];_0x4e5992['unshift']({..._0x327579[_0x65c946],'undoState':_0x33100a[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)],'redoState':_0x3dbad6[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)]}),_0x5ba08e=_0x33100a[_0x1f25ca(0x20f)],_0x31ca5a=_0x3dbad6['m1Prime'];}_0x5ba08e=a[_0x1f25ca(0x35e)][_0x1f25ca(0x23f)](_0x10d3ce[_0x1f25ca(0x28a)][0x0]),_0x31ca5a=a['Tools'][_0x1f25ca(0x23f)](_0x10d3ce[_0x1f25ca(0x28a)][0x0]);for(let _0x31c86f=_0x26f9a1[_0x1f25ca(0x1f0)]-0x1;_0x31c86f>=0x0;_0x31c86f--){const _0x54f651={'id':_0x1f25ca(0x339),'params':{'unitId':_0x26f9a1[_0x31c86f][_0x1f25ca(0x2b7)],..._0x26f9a1[_0x31c86f][_0x1f25ca(0x2c3)]}},_0x370181={'id':_0x1f25ca(0x339),'params':{'unitId':_0x26f9a1[_0x31c86f][_0x1f25ca(0x2b7)],..._0x26f9a1[_0x31c86f]['redoState']}},_0x3740a4=this[_0x1f25ca(0x3ce)][_0x1f25ca(0x1a1)](_0x5ba08e,_0x54f651,!0x1),_0x598031=this['_transformService']['transformMutation'](_0x31ca5a,_0x370181,!0x1);if(g['isTransformMutationFailure'](_0x3740a4))throw _0x3740a4['error'];if(g[_0x1f25ca(0x294)](_0x598031))throw _0x598031[_0x1f25ca(0x384)];_0x57f248[_0x1f25ca(0x36d)]({..._0x26f9a1[_0x31c86f],'undoState':_0x3740a4[_0x1f25ca(0x220)]['params'],'redoState':_0x598031[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)]}),_0x5ba08e=_0x3740a4['m1Prime'],_0x31ca5a=_0x598031[_0x1f25ca(0x20f)];}this[_0x1f25ca(0x2e7)][_0x1f25ca(0x34a)](_0x2fa7e5,{'history':_0x4e5992,'collaboration':_0x57f248});}};ee=Wt([ue(0x0,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),ue(0x1,g[_0x6c52c3(0x24a)]),ue(0x2,a[_0x6c52c3(0x1ee)](p[_0x6c52c3(0x212)]))],ee);var Vt=Object[_0x6c52c3(0x2ac)],Gt=(_0x2698f9,_0x37731b,_0x6c2220,_0x3d6349)=>{const _0x17319d=_0x6c52c3;for(var _0x1574ec=_0x3d6349>0x1?void 0x0:_0x3d6349?Vt(_0x37731b,_0x6c2220):_0x37731b,_0x5b7cd8=_0x2698f9[_0x17319d(0x1f0)]-0x1,_0x258b0c;_0x5b7cd8>=0x0;_0x5b7cd8--)(_0x258b0c=_0x2698f9[_0x5b7cd8])&&(_0x1574ec=_0x258b0c(_0x1574ec)||_0x1574ec);return _0x1574ec;},Ae=(_0x41952e,_0x32a648)=>(_0x12862c,_0x1672bb)=>_0x32a648(_0x12862c,_0x1672bb,_0x41952e);let te=class{constructor(_0x43cca1,_0x1c5713){const _0x5d8662=_0x6c52c3;this[_0x5d8662(0x3a1)]=_0x43cca1,this[_0x5d8662(0x3ce)]=_0x1c5713;}[_0x6c52c3(0x2c8)](_0x522a3f){const _0x213a76=_0x6c52c3;var _0x5e9cae;const _0x1a69b0=this[_0x213a76(0x3a1)][_0x213a76(0x285)](V[_0x213a76(0x343)]),_0x5d0a97=(_0x5e9cae=_0x1a69b0['getDocRanges']())!=null?_0x5e9cae:[];if(_0x5d0a97[_0x213a76(0x1f0)]===0x0)return;const _0x2587cd=_0x522a3f[_0x213a76(0x2ec)],_0x2371e7=[{'id':_0x213a76(0x339),'params':{'unitId':_0x2587cd,'actions':null,'textRanges':_0x5d0a97}}],_0x2fe3b5=this[_0x213a76(0x3ce)][_0x213a76(0x39b)](_0x522a3f,_0x2371e7);if(!g['isTransformMutationsWithChangesetSuccess'](_0x2fe3b5))throw _0x2fe3b5[_0x213a76(0x384)];const _0x1c145f=_0x2fe3b5['m2Prime'][0x0][_0x213a76(0x2f4)][_0x213a76(0x350)];Array[_0x213a76(0x24b)](_0x1c145f)&&_0x1c145f[_0x213a76(0x1f0)]&&_0x1a69b0[_0x213a76(0x2e2)](_0x1c145f,{'unitId':_0x2587cd,'subUnitId':_0x2587cd},!0x1);}};te=Gt([Ae(0x0,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),Ae(0x1,g[_0x6c52c3(0x24a)])],te);var Xt=Object[_0x6c52c3(0x2ac)],Kt=(_0x746e77,_0x356a4c,_0x416377,_0x5488d7)=>{for(var _0x42539b=_0x5488d7>0x1?void 0x0:_0x5488d7?Xt(_0x356a4c,_0x416377):_0x356a4c,_0x5dad7f=_0x746e77['length']-0x1,_0xcbb9f9;_0x5dad7f>=0x0;_0x5dad7f--)(_0xcbb9f9=_0x746e77[_0x5dad7f])&&(_0x42539b=_0xcbb9f9(_0x42539b)||_0x42539b);return _0x42539b;},U=(_0x5c7569,_0x4c2d1b)=>(_0x456cf3,_0x473f95)=>_0x4c2d1b(_0x456cf3,_0x473f95,_0x5c7569);let se=class extends a[_0x6c52c3(0x413)]{constructor(_0xfe1109,_0xa5f89a,_0x4051db,_0x15c749,_0x401dee,_0x23f4fb,_0x1fbbf1,_0x461759){const _0x249248=_0x6c52c3;super(),_(this,_0x249248(0x3f8),new I['BehaviorSubject'](u['CollaborationStatus'][_0x249248(0x340)])),(this[_0x249248(0x2e7)]=_0xfe1109,this[_0x249248(0x1de)]=_0xa5f89a,this[_0x249248(0x203)]=_0x4051db,this['_docTransformStateCacheService']=_0x15c749,this[_0x249248(0x42b)]=_0x401dee,this[_0x249248(0x42a)]=_0x23f4fb,this[_0x249248(0x2e8)]=_0x1fbbf1,this[_0x249248(0x298)]=_0x461759,this[_0x249248(0x2f1)]());}['_initEntityListener'](){const _0x10d337=_0x6c52c3;this[_0x10d337(0x392)](this['_collaborationController']['entityInit$'][_0x10d337(0x403)](_0x4a73fc=>{const _0x537d15=_0x10d337,_0x3999bb=this[_0x537d15(0x2e7)][_0x537d15(0x377)][_0x537d15(0x403)](_0x127274=>{const _0x532c17=_0x537d15;if(_0x127274==null)return;const {unitId:_0xcc9189,redoState:_0x53bb7f,commandId:_0x3b2691}=_0x127274;if(_0xcc9189!==_0x4a73fc['unitID'])return;const _0x366a45={'id':_0x3b2691,'type':a[_0x532c17(0x233)]['MUTATION'],'params':{'unitId':_0xcc9189,'actions':_0x53bb7f[_0x532c17(0x3b0)],'textRanges':null}};_0x4a73fc['onLocalMutation'](_0x366a45);});if(_0x4a73fc[_0x537d15(0x392)](_0x3999bb),_0x4a73fc instanceof u[_0x537d15(0x251)]){const _0x3fa583={'onTransformIME':_0x3794d9=>this[_0x537d15(0x203)][_0x537d15(0x1da)](_0x3794d9),'onTransformState':_0x7512f=>this[_0x537d15(0x20e)]['transformStateCache'](_0x7512f),'onTransformSelections':_0x569fc8=>this['_docTransformSelectionsService']['transformSelections'](_0x569fc8),'onSyncEditingCollabCursor':_0x5062aa=>this[_0x537d15(0x42a)][_0x537d15(0x420)](_0x5062aa),'onTransformRemoteChangesetByIMECache':_0x391589=>this[_0x537d15(0x203)][_0x537d15(0x256)](_0x391589),'onTransformRemoteChangesetByStateCache':_0x475ebe=>this[_0x537d15(0x20e)][_0x537d15(0x256)](_0x475ebe)};_0x4a73fc['addHandlerCallback'](_0x3fa583);}}));}};se=Kt([U(0x0,a[_0x6c52c3(0x1ee)](p[_0x6c52c3(0x212)])),U(0x1,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x3a5)])),U(0x2,a[_0x6c52c3(0x1ee)](Q)),U(0x3,a[_0x6c52c3(0x1ee)](ee)),U(0x4,a['Inject'](te)),U(0x5,a[_0x6c52c3(0x1ee)](Re)),U(0x6,R[_0x6c52c3(0x1c8)]),U(0x7,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x225)]))],se);var G=(_0x274d12=>(_0x274d12[_0x274d12['UNDEFINED']=0x0]=_0x6c52c3(0x282),_0x274d12[_0x274d12['OK']=0x1]='OK',_0x274d12[_0x274d12['INTERNAL_ERROR']=0x2]=_0x6c52c3(0x2a5),_0x274d12[_0x274d12[_0x6c52c3(0x1f8)]=0x3]='PERMISSION_DENIED',_0x274d12[_0x274d12[_0x6c52c3(0x368)]=0x4]=_0x6c52c3(0x368),_0x274d12[_0x274d12[_0x6c52c3(0x41e)]=0x5]=_0x6c52c3(0x41e),_0x274d12[_0x274d12[_0x6c52c3(0x3dc)]=0x6]=_0x6c52c3(0x3dc),_0x274d12[_0x274d12[_0x6c52c3(0x3aa)]=0x7]=_0x6c52c3(0x3aa),_0x274d12[_0x274d12['TOO_MANY_REQUESTS']=0x8]=_0x6c52c3(0x21b),_0x274d12[_0x274d12[_0x6c52c3(0x315)]=0x9]=_0x6c52c3(0x315),_0x274d12[_0x274d12[_0x6c52c3(0x23b)]=0xa]=_0x6c52c3(0x23b),_0x274d12[_0x274d12[_0x6c52c3(0x2ea)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x274d12[_0x274d12[_0x6c52c3(0x3d4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x274d12[_0x274d12['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x274d12[_0x274d12[_0x6c52c3(0x429)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x274d12[_0x274d12[_0x6c52c3(0x1c6)]=0xf]=_0x6c52c3(0x1c6),_0x274d12[_0x274d12[_0x6c52c3(0x223)]=0x10]=_0x6c52c3(0x223),_0x274d12[_0x274d12[_0x6c52c3(0x1c7)]=0x64]=_0x6c52c3(0x1c7),_0x274d12[_0x274d12[_0x6c52c3(0x2d6)]=0x65]=_0x6c52c3(0x2d6),_0x274d12[_0x274d12[_0x6c52c3(0x305)]=0xc9]=_0x6c52c3(0x305),_0x274d12[_0x274d12[_0x6c52c3(0x1dc)]=0xca]=_0x6c52c3(0x1dc),_0x274d12[_0x274d12[_0x6c52c3(0x243)]=0x1389]=_0x6c52c3(0x243),_0x274d12[_0x274d12['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x6c52c3(0x29a),_0x274d12[_0x274d12[_0x6c52c3(0x2bf)]=0x1772]=_0x6c52c3(0x2bf),_0x274d12[_0x274d12['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x6c52c3(0x38a),_0x274d12[_0x274d12[_0x6c52c3(0x23c)]=0x1b59]=_0x6c52c3(0x23c),_0x274d12[_0x274d12[_0x6c52c3(0x19e)]=0x1b5a]=_0x6c52c3(0x19e),_0x274d12[_0x274d12[_0x6c52c3(0x365)]=0x1b5b]=_0x6c52c3(0x365),_0x274d12[_0x274d12['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x274d12[_0x274d12[_0x6c52c3(0x36f)]=0x1b5d]=_0x6c52c3(0x36f),_0x274d12[_0x274d12[_0x6c52c3(0x29d)]=0x1f41]=_0x6c52c3(0x29d),_0x274d12[_0x274d12[_0x6c52c3(0x349)]=0x2329]=_0x6c52c3(0x349),_0x274d12[_0x274d12[_0x6c52c3(0x1b8)]=0x232a]=_0x6c52c3(0x1b8),_0x274d12[_0x274d12['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x6c52c3(0x20a),_0x274d12[_0x274d12['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x6c52c3(0x2de),_0x274d12[_0x274d12[_0x6c52c3(0x412)]=0x232d]=_0x6c52c3(0x412),_0x274d12[_0x274d12[_0x6c52c3(0x341)]=0x2711]=_0x6c52c3(0x341),_0x274d12[_0x274d12['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x274d12[_0x274d12[_0x6c52c3(0x41d)]=0x2713]=_0x6c52c3(0x41d),_0x274d12[_0x274d12[_0x6c52c3(0x327)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x274d12[_0x274d12[_0x6c52c3(0x1af)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x274d12[_0x274d12[_0x6c52c3(0x423)]=0x271b]=_0x6c52c3(0x423),_0x274d12[_0x274d12[_0x6c52c3(0x210)]=0x271c]=_0x6c52c3(0x210),_0x274d12[_0x274d12[_0x6c52c3(0x1e1)]=0x271d]=_0x6c52c3(0x1e1),_0x274d12[_0x274d12[_0x6c52c3(0x3e9)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x274d12[_0x274d12[_0x6c52c3(0x266)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x274d12[_0x274d12[_0x6c52c3(0x21f)]=0x2720]=_0x6c52c3(0x21f),_0x274d12[_0x274d12[_0x6c52c3(0x328)]=0x2af9]=_0x6c52c3(0x328),_0x274d12[_0x274d12['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x274d12[_0x274d12[_0x6c52c3(0x281)]=0x2ee2]=_0x6c52c3(0x281),_0x274d12[_0x274d12[_0x6c52c3(0x3e4)]=0x2ee3]=_0x6c52c3(0x3e4),_0x274d12[_0x274d12['USER_NOT_INVITED_CODE']=0x2ee4]=_0x6c52c3(0x3d8),_0x274d12[_0x274d12[_0x6c52c3(0x31d)]=0x2ee5]=_0x6c52c3(0x31d),_0x274d12[_0x274d12['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x6c52c3(0x3fd),_0x274d12[_0x274d12[_0x6c52c3(0x1f5)]=0x32ca]=_0x6c52c3(0x1f5),_0x274d12[_0x274d12['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x6c52c3(0x1fe),_0x274d12[_0x274d12[_0x6c52c3(0x31a)]=0x36b1]=_0x6c52c3(0x31a),_0x274d12[_0x274d12[_0x6c52c3(0x186)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x274d12[_0x274d12['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x6c52c3(0x2e6),_0x274d12[_0x274d12[_0x6c52c3(0x27b)]=0x36b4]=_0x6c52c3(0x27b),_0x274d12[_0x274d12['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x6c52c3(0x389),_0x274d12[_0x274d12[_0x6c52c3(0x34f)]=0x3716]=_0x6c52c3(0x34f),_0x274d12[_0x274d12['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x6c52c3(0x1fb),_0x274d12[_0x274d12[_0x6c52c3(0x3b8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x274d12[_0x274d12['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x274d12[_0x274d12[_0x6c52c3(0x356)]=0x3a9b]=_0x6c52c3(0x356),_0x274d12[_0x274d12['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x6c52c3(0x2c1),_0x274d12[_0x274d12[_0x6c52c3(0x195)]=0x3a9d]=_0x6c52c3(0x195),_0x274d12[_0x274d12[_0x6c52c3(0x297)]=0x3a9e]=_0x6c52c3(0x297),_0x274d12[_0x274d12['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x6c52c3(0x204),_0x274d12[_0x274d12[_0x6c52c3(0x2e5)]=-0x1]=_0x6c52c3(0x2e5),_0x274d12))(G||{});function qt(_0x22a654){const _0x317beb=_0x6c52c3;var _0x51ad34,_0x520e74;const _0x144924=(_0x51ad34=_0x22a654[_0x317beb(0x3af)])==null?void 0x0:_0x51ad34[_0x317beb(0x264)],_0x38f361=((_0x520e74=_0x22a654['stageInfo'])==null?void 0x0:_0x520e74[_0x317beb(0x400)])||0x0;return _0x144924===B[_0x317beb(0x30c)][_0x317beb(0x187)]&&_0x38f361>0x0;}function zt(_0x518fd0){const _0x19bac6=_0x6c52c3;return _0x518fd0['functionsExecutedState']===B[_0x19bac6(0x19b)]['SUCCESS'];}var Jt=Object[_0x6c52c3(0x2ac)],Zt=(_0x22f5c1,_0x2bd6e0,_0xd87b0a,_0x59437b)=>{const _0x4225e4=_0x6c52c3;for(var _0x33c53e=_0x59437b>0x1?void 0x0:_0x59437b?Jt(_0x2bd6e0,_0xd87b0a):_0x2bd6e0,_0x11598a=_0x22f5c1[_0x4225e4(0x1f0)]-0x1,_0x4d676e;_0x11598a>=0x0;_0x11598a--)(_0x4d676e=_0x22f5c1[_0x11598a])&&(_0x33c53e=_0x4d676e(_0x33c53e)||_0x33c53e);return _0x33c53e;},A=(_0x580f33,_0x5e7cb2)=>(_0x1bd8c7,_0x37b5c3)=>_0x5e7cb2(_0x1bd8c7,_0x37b5c3,_0x580f33);const Qt=_0x6c52c3(0x249),es=_0x6c52c3(0x26a),ts=_0x6c52c3(0x34c);let ie=class extends a[_0x6c52c3(0x413)]{constructor(_0x1f4079,_0x5a16a1,_0x4e8f18,_0xccb8f2,_0x16509a,_0x5b7917,_0x2af860){const _0xf8b725=_0x6c52c3;super(),_(this,_0xf8b725(0x28e),null),_(this,_0xf8b725(0x1c0),0x0),_(this,_0xf8b725(0x425),0x0),_(this,_0xf8b725(0x200),[]),_(this,_0xf8b725(0x275),0x0),(this[_0xf8b725(0x2e8)]=_0x1f4079,this['_commandService']=_0x5a16a1,this[_0xf8b725(0x1ed)]=_0x4e8f18,this['_httpService']=_0xccb8f2,this[_0xf8b725(0x3dd)]=_0x16509a,this[_0xf8b725(0x1db)]=_0x5b7917,this['_localeService']=_0x2af860,this[_0xf8b725(0x2c4)]());}['_initCommandInterceptor'](){const _0x1e026c=_0x6c52c3;this[_0x1e026c(0x392)](this['_commandService'][_0x1e026c(0x2c0)]((_0x318094,_0x3d539e)=>{const _0x17d70a=_0x1e026c;if(_0x318094['id']!==B[_0x17d70a(0x260)]['id'])return;const _0x2a7b79=_0x318094[_0x17d70a(0x2f4)];if(!this[_0x17d70a(0x2b9)](_0x2a7b79['dirtyRanges']))return;if(!this[_0x17d70a(0x3cf)]())throw this[_0x17d70a(0x1d7)](_0x318094,_0x3d539e),this[_0x17d70a(0x288)](),new a['CanceledError']();})),this[_0x1e026c(0x392)](this['_commandService'][_0x1e026c(0x22f)]((_0x3e1528,_0x2b882b)=>{const _0x1e7c88=_0x1e026c;if(_0x3e1528['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0xd29848=_0x3e1528[_0x1e7c88(0x2f4)];if(qt(_0xd29848)){const _0x159618=a[_0x1e7c88(0x254)]();this[_0x1e7c88(0x200)]['push'](_0x159618),this[_0x1e7c88(0x277)](_0x159618);}else{if(zt(_0xd29848)&&this['_taskIds'][_0x1e7c88(0x1f0)]>0x0){const _0x13704e=this['_taskIds']['shift']();this[_0x1e7c88(0x2cc)](_0x13704e);}}}));}['dispose'](){const _0x457c7d=_0x6c52c3;super['dispose'](),this[_0x457c7d(0x3b7)](),this['_taskIds']=[],this[_0x457c7d(0x425)]=0x0,this[_0x457c7d(0x1c0)]=0x0,this[_0x457c7d(0x275)]=0x0;}async[_0x6c52c3(0x1d7)](_0x230a55,_0x2c979e){const _0x5160e0=_0x6c52c3;for(let _0x58cc38=0x0;_0x58cc38<0x1e;_0x58cc38++)try{if(await this[_0x5160e0(0x1a9)](),this[_0x5160e0(0x3cf)]()){this[_0x5160e0(0x2f0)](_0x230a55,_0x2c979e),this['_messageService']['show']({'content':this[_0x5160e0(0x298)]['t']('formula.calculation.started'),'type':T[_0x5160e0(0x2bd)][_0x5160e0(0x42f)]});return;}await new Promise(_0x4c7a1a=>{this['_pollingInterval']=window['setTimeout'](_0x4c7a1a,0x3e8);});}catch(_0x4e068d){this[_0x5160e0(0x1db)][_0x5160e0(0x384)](_0x4e068d);}this[_0x5160e0(0x2e8)][_0x5160e0(0x1d3)]({'content':this[_0x5160e0(0x298)]['t'](_0x5160e0(0x29c)),'type':T[_0x5160e0(0x2bd)]['Error']});}[_0x6c52c3(0x2f0)](_0x56dbab,_0x4bd98d){const _0x3a7842=_0x6c52c3;try{this['_commandService'][_0x3a7842(0x319)](_0x56dbab['id'],_0x56dbab[_0x3a7842(0x2f4)],_0x4bd98d);}catch(_0x4640c7){this[_0x3a7842(0x1db)][_0x3a7842(0x384)](_0x4640c7);}}['_setFormulaLimitStatus'](_0x33ef35,_0x7d7641){const _0x3227cf=_0x6c52c3;_0x7d7641<this[_0x3227cf(0x275)]||(this[_0x3227cf(0x275)]=_0x7d7641,this[_0x3227cf(0x1c0)]=Number[_0x3227cf(0x201)](_0x33ef35['maxFormulaLimit']),this[_0x3227cf(0x425)]=Number[_0x3227cf(0x201)](_0x33ef35['currentUsage']));}async[_0x6c52c3(0x277)](_0x208a16){const _0x16d2a0=_0x6c52c3;var _0x458a69,_0x24843d;const _0x3ebddd=Date['now']();try{const _0x3ad42a=((_0x458a69=this[_0x16d2a0(0x1ed)][_0x16d2a0(0x193)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x458a69[_0x16d2a0(0x2a3)])||es,_0x440c9b=(await this['_httpService'][_0x16d2a0(0x26f)](_0x3ad42a,{'body':JSON[_0x16d2a0(0x302)]({'taskId':_0x208a16})}))['body'];if(((_0x24843d=_0x440c9b[_0x16d2a0(0x384)])==null?void 0x0:_0x24843d[_0x16d2a0(0x26c)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x440c9b[_0x16d2a0(0x439)],_0x3ebddd);}catch(_0x2e9dc5){this[_0x16d2a0(0x1db)][_0x16d2a0(0x384)](_0x2e9dc5);}}async['_getFormulaLimitStatus'](_0x4ca71c){const _0xf05b57=_0x6c52c3;var _0x4559bd,_0x5b744d;const _0x19e11a=Date[_0xf05b57(0x416)]();try{const _0x505253=((_0x4559bd=this[_0xf05b57(0x1ed)]['getConfig'](u[_0xf05b57(0x295)]))==null?void 0x0:_0x4559bd[_0xf05b57(0x25a)])||Qt,_0x4c362e=_0x4ca71c?_0x505253+_0xf05b57(0x390)+encodeURIComponent(_0x4ca71c):_0x505253,_0x57b856=(await this[_0xf05b57(0x26d)][_0xf05b57(0x285)](_0x4c362e))['body'];if(((_0x5b744d=_0x57b856[_0xf05b57(0x384)])==null?void 0x0:_0x5b744d[_0xf05b57(0x26c)])!==G['OK'])return;this[_0xf05b57(0x32f)](_0x57b856[_0xf05b57(0x439)],_0x19e11a);}catch(_0x2a3cec){this[_0xf05b57(0x1db)][_0xf05b57(0x384)](_0x2a3cec);}}async[_0x6c52c3(0x2cc)](_0x301184){const _0xa13cd9=_0x6c52c3;var _0x586711,_0x154503;const _0x438a1a=Date[_0xa13cd9(0x416)]();try{const _0x51b420=((_0x586711=this[_0xa13cd9(0x1ed)][_0xa13cd9(0x193)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x586711[_0xa13cd9(0x3ca)])||ts,_0x214660=(await this[_0xa13cd9(0x26d)][_0xa13cd9(0x26f)](_0x51b420,{'body':JSON[_0xa13cd9(0x302)]({'taskId':_0x301184})}))[_0xa13cd9(0x183)];if(((_0x154503=_0x214660[_0xa13cd9(0x384)])==null?void 0x0:_0x154503[_0xa13cd9(0x26c)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x214660[_0xa13cd9(0x439)],_0x438a1a);}catch(_0xc05c02){this[_0xa13cd9(0x1db)]['error'](_0xc05c02);}}[_0x6c52c3(0x3cf)](){const _0x14759b=_0x6c52c3;return this[_0x14759b(0x1c0)]===0x0?!0x0:this[_0x14759b(0x1c0)]-this[_0x14759b(0x425)]>0x0;}[_0x6c52c3(0x3b7)](){const _0x5f27b0=_0x6c52c3;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x5f27b0(0x28e)]=null);}[_0x6c52c3(0x288)](){const _0x3a3d08=_0x6c52c3;this[_0x3a3d08(0x2e8)][_0x3a3d08(0x1d3)]({'content':this[_0x3a3d08(0x298)]['t'](_0x3a3d08(0x37b)),'type':T['MessageType']['Loading']});}[_0x6c52c3(0x2b9)](_0x3034b5){const _0x137ff8=_0x6c52c3;for(const _0x58652c of _0x3034b5){const {unitId:_0x3c47f2,sheetId:_0x292143,range:_0x2f2222}=_0x58652c,_0x4b12c4=this[_0x137ff8(0x3dd)][_0x137ff8(0x29e)](_0x3c47f2);if(!_0x4b12c4)continue;const _0x63cf04=_0x4b12c4[_0x137ff8(0x375)](_0x292143);if(!_0x63cf04)continue;const _0x2a2854=_0x63cf04[_0x137ff8(0x398)]();for(let _0x142895=_0x2f2222['startRow'];_0x142895<=_0x2f2222['endRow'];_0x142895++)for(let _0x238627=_0x2f2222['startColumn'];_0x238627<=_0x2f2222['endColumn'];_0x238627++){const _0x26a5da=_0x2a2854['getValue'](_0x142895,_0x238627);if(_0x26a5da&&(a[_0x137ff8(0x2dd)](_0x26a5da['f'])||a['isFormulaId'](_0x26a5da['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0x6c52c3(0x1ee)](R[_0x6c52c3(0x1c8)])),A(0x1,a[_0x6c52c3(0x391)]),A(0x2,a[_0x6c52c3(0x33b)]),A(0x3,a[_0x6c52c3(0x1ee)](X[_0x6c52c3(0x2c7)])),A(0x4,a[_0x6c52c3(0x40e)]),A(0x5,a[_0x6c52c3(0x2ca)]),A(0x6,a['Inject'](a[_0x6c52c3(0x225)]))],ie);var ss=Object[_0x6c52c3(0x2ac)],is=(_0x19e12b,_0x2c5dfd,_0x398084,_0x55ad91)=>{const _0xef012e=_0x6c52c3;for(var _0x51ed51=_0x55ad91>0x1?void 0x0:_0x55ad91?ss(_0x2c5dfd,_0x398084):_0x2c5dfd,_0x263241=_0x19e12b[_0xef012e(0x1f0)]-0x1,_0x565082;_0x263241>=0x0;_0x263241--)(_0x565082=_0x19e12b[_0x263241])&&(_0x51ed51=_0x565082(_0x51ed51)||_0x51ed51);return _0x51ed51;},Ie=(_0x27eb5d,_0x14b326)=>(_0xc1071,_0x54b837)=>_0x14b326(_0xc1071,_0x54b837,_0x27eb5d);let Ce=class extends a[_0x6c52c3(0x413)]{constructor(_0x34fcc9,_0x13d329,_0x38714b){const _0x37d900=_0x6c52c3;super(),_(this,_0x37d900(0x24f),new Map()),_(this,_0x37d900(0x1cb),new Map()),_(this,_0x37d900(0x40d),!0x1),(this[_0x37d900(0x1ed)]=_0x34fcc9,this['_localStorageService']=_0x13d329,this[_0x37d900(0x2a0)]=_0x38714b);}[_0x6c52c3(0x331)](){const _0xec89e2=_0x6c52c3;this[_0xec89e2(0x40d)]=!0x0;}[_0x6c52c3(0x407)](){const _0x2d0f1a=_0x6c52c3;this[_0x2d0f1a(0x40d)]=!0x1;}get['saveTaskMap'](){const _0x38d4e3=_0x6c52c3;return this[_0x38d4e3(0x1cb)];}['dispose'](){const _0x11bafc=_0x6c52c3;this[_0x11bafc(0x387)]()[_0x11bafc(0x1f1)](()=>super[_0x11bafc(0x18d)]());}async['loadOfflineData'](_0x4c6182){const _0x307475=_0x6c52c3;return this[_0x307475(0x40d)]?null:this[_0x307475(0x427)][_0x307475(0x2ef)](u[_0x307475(0x19d)](_0x4c6182));}async[_0x6c52c3(0x43d)](_0x2abc47,_0x3eeab3){const _0x1dd9b0=_0x6c52c3;return!!this[_0x1dd9b0(0x427)][_0x1dd9b0(0x410)](_0x2abc47,_0x3eeab3);}[_0x6c52c3(0x250)](_0x1cb6ac,_0x572560,_0x601769,_0x23b067){const _0x52409e=_0x6c52c3,_0x3835f3=this[_0x52409e(0x2a0)][_0x52409e(0x29b)](_0x1cb6ac);this[_0x52409e(0x24f)][_0x52409e(0x33f)](_0x1cb6ac,{'unitID':_0x1cb6ac,'type':_0x572560,'awaitingChangeset':_0x601769,'mutations':_0x23b067,'rev':_0x3835f3}),this[_0x52409e(0x1cb)][_0x52409e(0x27c)](_0x1cb6ac)||this[_0x52409e(0x317)](_0x1cb6ac);}[_0x6c52c3(0x317)](_0x12897a){const _0x2aa92c=_0x6c52c3,_0x59fc0d=this[_0x2aa92c(0x2cb)]();_0x59fc0d===0x0?this['_saveCache'](_0x12897a):this[_0x2aa92c(0x1cb)][_0x2aa92c(0x33f)](_0x12897a,setTimeout(()=>this['_saveCache'](_0x12897a),_0x59fc0d));}[_0x6c52c3(0x2cb)](){const _0xc76d2b=_0x6c52c3;var _0x53483d;return(_0x53483d=this[_0xc76d2b(0x1ed)][_0xc76d2b(0x193)](u[_0xc76d2b(0x3bb)]))!=null?_0x53483d:u['LOCAL_CACHE_INTERVAL'];}[_0x6c52c3(0x3d6)](_0x970f92){const _0x4012d8=_0x6c52c3,_0x4a1253=this['_saveTaskMap'][_0x4012d8(0x285)](_0x970f92);return _0x4a1253!==void 0x0&&window[_0x4012d8(0x3db)](_0x4a1253),this[_0x4012d8(0x427)]['setItem'](u['getLocalCacheKey'](_0x970f92),this[_0x4012d8(0x24f)][_0x4012d8(0x285)](_0x970f92))[_0x4012d8(0x1f1)](()=>this[_0x4012d8(0x1cb)]['delete'](_0x970f92));}async[_0x6c52c3(0x387)](){const _0x23ad03=_0x6c52c3,_0x45cea4=[];this[_0x23ad03(0x1cb)][_0x23ad03(0x1b1)]((_0x173e95,_0x54ff7d)=>{const _0x30093e=_0x23ad03;window[_0x30093e(0x3db)](_0x173e95),_0x45cea4['push'](this[_0x30093e(0x3d6)](_0x54ff7d)[_0x30093e(0x1f1)](()=>{const _0xdba788=_0x30093e;this[_0xdba788(0x1cb)][_0xdba788(0x41a)](_0x54ff7d);}));}),await Promise[_0x23ad03(0x211)](_0x45cea4);}};Ce=is([Ie(0x0,a[_0x6c52c3(0x33b)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a['Inject'](g['RevisionService']))],Ce);class ke extends a['RxDisposable']{constructor(){const _0x1a5c75=_0x6c52c3;super(),_(this,'urlChange$'),this[_0x1a5c75(0x436)]=I[_0x1a5c75(0x18e)](window,_0x1a5c75(0x3b1))[_0x1a5c75(0x1b7)](I[_0x1a5c75(0x3c3)](this[_0x1a5c75(0x359)]),I[_0x1a5c75(0x3c1)](0x1),I[_0x1a5c75(0x1b4)](void 0x0));}[_0x6c52c3(0x329)](_0x2aca2c,_0x1a0b24,_0x4f4af9=!0x1){const _0x40f5b8=_0x6c52c3,_0x3ff9b6=new URL(window[_0x40f5b8(0x2a9)][_0x40f5b8(0x42c)]);_0x3ff9b6[_0x40f5b8(0x3ae)][_0x40f5b8(0x33f)](_0x2aca2c,_0x1a0b24),_0x4f4af9?window['history'][_0x40f5b8(0x424)]('','',_0x3ff9b6[_0x40f5b8(0x312)]()):window[_0x40f5b8(0x21c)][_0x40f5b8(0x438)]('','',_0x3ff9b6[_0x40f5b8(0x312)]());}[_0x6c52c3(0x41b)](_0x1f4fd0,_0x4992b8=!0x1){const _0x409e29=_0x6c52c3,_0x377385=new URL(window[_0x409e29(0x2a9)][_0x409e29(0x42c)]);_0x377385[_0x409e29(0x3ae)][_0x409e29(0x41a)](_0x1f4fd0),_0x4992b8?window[_0x409e29(0x21c)][_0x409e29(0x424)]('','',_0x377385[_0x409e29(0x312)]()):window[_0x409e29(0x21c)]['pushState']('','',_0x377385['toString']());}['getParam'](_0x43e65d){const _0x5a6200=_0x6c52c3;var _0x438d65;return(_0x438d65=new URL(window[_0x5a6200(0x2a9)][_0x5a6200(0x42c)])[_0x5a6200(0x3ae)]['get'](_0x43e65d))!=null?_0x438d65:void 0x0;}}var ns=Object[_0x6c52c3(0x3d2)],rs=Object[_0x6c52c3(0x2ac)],os=(_0x59500c,_0x8566ec,_0x25b64a)=>_0x8566ec in _0x59500c?ns(_0x59500c,_0x8566ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25b64a}):_0x59500c[_0x8566ec]=_0x25b64a,as=(_0x190525,_0x142309,_0x8f1ec8,_0x405a19)=>{const _0x589303=_0x6c52c3;for(var _0x1fdf8b=_0x405a19>0x1?void 0x0:_0x405a19?rs(_0x142309,_0x8f1ec8):_0x142309,_0x345696=_0x190525[_0x589303(0x1f0)]-0x1,_0x4e1672;_0x345696>=0x0;_0x345696--)(_0x4e1672=_0x190525[_0x345696])&&(_0x1fdf8b=_0x4e1672(_0x1fdf8b)||_0x1fdf8b);return _0x1fdf8b;},de=(_0x23d7cf,_0xd00997)=>(_0x154797,_0x32cd1f)=>_0xd00997(_0x154797,_0x32cd1f,_0x23d7cf),cs=(_0x52144e,_0x209ee3,_0x5846f2)=>os(_0x52144e,_0x209ee3+'',_0x5846f2);const ls=_0x6c52c3(0x215);function _0xc584(_0x139c97,_0x5bd1c2){const _0x430406=_0x4304();return _0xc584=function(_0xc584eb,_0x503176){_0xc584eb=_0xc584eb-0x180;let _0x5bfc2a=_0x430406[_0xc584eb];return _0x5bfc2a;},_0xc584(_0x139c97,_0x5bd1c2);}exports[_0x6c52c3(0x362)]=class extends a[_0x6c52c3(0x272)]{constructor(_0x101b85=Le,_0x543b1d,_0x3a39bd,_0x300ba7){const _0x2a24ff=_0x6c52c3;super(),this['_config']=_0x101b85,this[_0x2a24ff(0x23a)]=_0x543b1d,this[_0x2a24ff(0x3a1)]=_0x3a39bd,this[_0x2a24ff(0x1ed)]=_0x300ba7;const {..._0x1bb267}=a[_0x2a24ff(0x3ff)]({},Le,this[_0x2a24ff(0x196)]);this['_configService'][_0x2a24ff(0x32d)](kt,_0x1bb267);}[_0x6c52c3(0x20d)](){const _0x1b1461=_0x6c52c3;this[_0x1b1461(0x30e)](),this[_0x1b1461(0x1ec)]();}[_0x6c52c3(0x291)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x448bf2=_0x6c52c3;var _0x409019;const _0x1d7677=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x448bf2(0x304)],{'useClass':X[_0x448bf2(0x299)]}],[u[_0x448bf2(0x3ea)],{'useClass':Ce}],[exports[_0x448bf2(0x2e9)]],[se],[Z],[F],[fe],[exports[_0x448bf2(0x3f2)]]];a[_0x448bf2(0x240)](this[_0x448bf2(0x3a1)],a[_0x448bf2(0x217)](_0x1d7677,(_0x409019=this[_0x448bf2(0x196)])==null?void 0x0:_0x409019[_0x448bf2(0x293)]));}['_registerRenderDependencies'](){const _0x262ed7=_0x6c52c3;this[_0x262ed7(0x392)](this[_0x262ed7(0x23a)][_0x262ed7(0x431)](a[_0x262ed7(0x3ec)]['UNIVER_DOC'],[ge])),this[_0x262ed7(0x392)](this[_0x262ed7(0x23a)][_0x262ed7(0x431)](a[_0x262ed7(0x3ec)][_0x262ed7(0x24e)],[Ee]));}[_0x6c52c3(0x1ec)](){const _0x2f0087=_0x6c52c3;a[_0x2f0087(0x330)](this[_0x2f0087(0x3a1)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[exports[_0x2f0087(0x3f2)]],[ie]]);}},cs(exports[_0x6c52c3(0x362)],'pluginName',ls),exports[_0x6c52c3(0x362)]=as([a[_0x6c52c3(0x336)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x6c52c3(0x2a2)]),de(0x2,a[_0x6c52c3(0x1ee)](a['Injector'])),de(0x3,a[_0x6c52c3(0x33b)])],exports[_0x6c52c3(0x362)]);var _s=Object[_0x6c52c3(0x2ac)],hs=(_0x7076b9,_0x394f9e,_0x2d080e,_0x550aa1)=>{const _0x2a095b=_0x6c52c3;for(var _0x17c61a=_0x550aa1>0x1?void 0x0:_0x550aa1?_s(_0x394f9e,_0x2d080e):_0x394f9e,_0x208a75=_0x7076b9[_0x2a095b(0x1f0)]-0x1,_0x2838fc;_0x208a75>=0x0;_0x208a75--)(_0x2838fc=_0x7076b9[_0x208a75])&&(_0x17c61a=_0x2838fc(_0x17c61a)||_0x17c61a);return _0x17c61a;},W=(_0x205240,_0x382a42)=>(_0x335316,_0x412eef)=>_0x382a42(_0x335316,_0x412eef,_0x205240);exports['BrowserCollaborationSocketService']=class extends u[_0x6c52c3(0x236)]{constructor(_0x4a6a27,_0x479aa5,_0xa5ec3c,_0x5d86a6,_0x264518){super(_0x4a6a27,_0x479aa5,_0xa5ec3c,_0x5d86a6,_0x264518);}async[_0x6c52c3(0x1cd)](_0x396109){const _0x37a6eb=_0x6c52c3,_0x44a237=await this[_0x37a6eb(0x371)](),_0x54a7ad=this[_0x37a6eb(0x35b)](_0x396109,_0x44a237);return this[_0x37a6eb(0x40f)](_0x54a7ad);}[_0x6c52c3(0x35b)](_0x784f6b,_0xc84d3d){const _0xbcf0=_0x6c52c3,_0x190664=typeof window>'u'?new URL(_0x784f6b):new URL(_0x784f6b,window['location'][_0xbcf0(0x34b)]);_0x190664['searchParams'][_0xbcf0(0x33f)](_0xbcf0(0x3eb),_0xc84d3d);const _0x2e9be7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xbcf0(0x2a9)][_0xbcf0(0x22d)]);return _0x2e9be7[_0xbcf0(0x285)]('runId')&&_0x190664[_0xbcf0(0x3ae)][_0xbcf0(0x33f)]('runId',_0x2e9be7['get'](_0xbcf0(0x303))),_0x190664['toString']();}async[_0x6c52c3(0x371)](){const _0x3eaabf=_0x6c52c3;var _0x21b908,_0x3fe932,_0x2ca14f;const _0xebda9d=this[_0x3eaabf(0x1ed)][_0x3eaabf(0x193)](u[_0x3eaabf(0x295)]),_0x5ed642=(_0x21b908=_0xebda9d==null?void 0x0:_0xebda9d[_0x3eaabf(0x39d)])!=null?_0x21b908:u[_0x3eaabf(0x32b)];return(_0x2ca14f=(_0x3fe932=(await this[_0x3eaabf(0x26d)][_0x3eaabf(0x285)](_0x5ed642,{'headers':{'Content-Type':_0x3eaabf(0x271)}}))[_0x3eaabf(0x183)])==null?void 0x0:_0x3fe932[_0x3eaabf(0x38b)])!=null?_0x2ca14f:'';}},exports['BrowserCollaborationSocketService']=hs([W(0x0,a['Inject'](a['Injector'])),W(0x1,a['Inject'](X['HTTPService'])),W(0x2,a[_0x6c52c3(0x33b)]),W(0x3,a[_0x6c52c3(0x2ca)]),W(0x4,g[_0x6c52c3(0x2ad)])],exports['BrowserCollaborationSocketService']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x1fd32a,_0x7a813,_0x3c2ac3,_0x7d0ae3)=>{for(var _0x57a96d=_0x7d0ae3>0x1?void 0x0:_0x7d0ae3?us(_0x7a813,_0x3c2ac3):_0x7a813,_0xabea0b=_0x1fd32a['length']-0x1,_0x4dbb73;_0xabea0b>=0x0;_0xabea0b--)(_0x4dbb73=_0x1fd32a[_0xabea0b])&&(_0x57a96d=_0x4dbb73(_0x57a96d)||_0x57a96d);return _0x57a96d;},Se=(_0x3a893c,_0x1fc87d)=>(_0x50e189,_0x37a40a)=>_0x1fc87d(_0x50e189,_0x37a40a,_0x3a893c);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3b17e5,_0x47d96a,_0x559678){const _0x32260e=_0x6c52c3;super(),this[_0x32260e(0x234)]=_0x3b17e5,this[_0x32260e(0x26d)]=_0x47d96a,this['_configService']=_0x559678;}async[_0x6c52c3(0x1b0)](_0x23ce8f,_0x137205,_0x3e1c89,..._0x2d942c){const _0x3cd00a=_0x6c52c3;var _0x641608,_0x323353,_0x3467ef,_0x1cf9e7;const _0x137bcc=this[_0x3cd00a(0x234)]['getFocusedUnit']();if(!_0x137bcc)throw new Error(_0x3cd00a(0x1df));const _0x381677=((_0x641608=this[_0x3cd00a(0x1ed)][_0x3cd00a(0x193)](u[_0x3cd00a(0x259)]))!=null?_0x641608:u[_0x3cd00a(0x3c7)])+'/'+_0x23ce8f+'/run/'+_0x137205,_0x49cc56=new URL(window[_0x3cd00a(0x2a9)][_0x3cd00a(0x42c)]),_0x3d7dfa={'scriptId':_0x23ce8f,'runId':(_0x323353=_0x49cc56[_0x3cd00a(0x3ae)]['get']('runId'))!=null?_0x323353:'','function':_0x137205,'unitId':_0x137bcc[_0x3cd00a(0x411)](),'argsOfFunction':JSON[_0x3cd00a(0x302)](_0x2d942c),'invokeId':(_0x3467ef=_0x3e1c89[_0x3cd00a(0x25b)])!=null?_0x3467ef:'','executionId':(_0x1cf9e7=_0x3e1c89['executionId'])!=null?_0x1cf9e7:''};try{const _0x31ada7=await this[_0x3cd00a(0x26d)][_0x3cd00a(0x26f)](_0x381677,{'body':_0x3d7dfa});return _0x31ada7[_0x3cd00a(0x183)]['error']&&_0x31ada7[_0x3cd00a(0x183)]['error'][_0x3cd00a(0x26c)]!==G['OK']?_0x3cd00a(0x395):_0x31ada7[_0x3cd00a(0x183)]['result'];}catch{return'Failed';}}},exports[_0x6c52c3(0x263)]=Is([Se(0x0,a[_0x6c52c3(0x40e)]),Se(0x1,a[_0x6c52c3(0x1ee)](X[_0x6c52c3(0x2c7)])),Se(0x2,a['IConfigService'])],exports[_0x6c52c3(0x263)]);const Pe=0x7530,we='ACTIVE_UNIT_EVENT_CHANNEL';class ds extends a[_0x6c52c3(0x413)]{constructor(){const _0xfdaea5=_0x6c52c3;super(),_(this,_0xfdaea5(0x1b9),a[_0xfdaea5(0x254)]()),_(this,_0xfdaea5(0x351),new Set()),_(this,_0xfdaea5(0x39c),new Map()),_(this,_0xfdaea5(0x40b),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xfdaea5(0x36b),new Map()),this['_init']();}[_0x6c52c3(0x18d)](){const _0x471097=_0x6c52c3;super[_0x471097(0x18d)](),this[_0x471097(0x237)][_0x471097(0x1b1)]((_0xf2d503,_0x5f8ebd)=>this[_0x471097(0x3de)](_0x5f8ebd)),this['_heartbeatTimer']&&window[_0x471097(0x26b)](this[_0x471097(0x40b)]);}[_0x6c52c3(0x1d4)](_0x44ce42){const _0x3b91e2=_0x6c52c3;return this[_0x3b91e2(0x252)](_0x44ce42)[_0x3b91e2(0x1b7)](I['distinctUntilChanged']());}[_0x6c52c3(0x37c)](_0x409eb7){const _0xaa5f69=_0x6c52c3;this['_selfUnitIDs']['size']===0x0&&this[_0xaa5f69(0x197)](),this[_0xaa5f69(0x351)][_0xaa5f69(0x194)](_0x409eb7),this[_0xaa5f69(0x244)]({'type':0x0,'memberID':this[_0xaa5f69(0x1b9)],'unitIDs':[_0x409eb7],'isForwarded':!0x1});}['disposeUnit'](_0x18cf4b){const _0x189727=_0x6c52c3;this[_0x189727(0x351)][_0x189727(0x41a)](_0x18cf4b),this[_0x189727(0x351)][_0x189727(0x364)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x189727(0x40b)]);}[_0x6c52c3(0x39e)](){const _0x5e731b=_0x6c52c3;this[_0x5e731b(0x392)](a[_0x5e731b(0x1aa)](I[_0x5e731b(0x18e)](window,_0x5e731b(0x2af))['subscribe'](_0x103c8f=>{const _0x3d57a7=_0x5e731b;if(_0x103c8f[_0x3d57a7(0x27f)]!==we||!_0x103c8f[_0x3d57a7(0x397)])return;const _0x3d9be8=JSON[_0x3d57a7(0x1e0)](_0x103c8f[_0x3d57a7(0x397)]);this[_0x3d57a7(0x2bc)](_0x3d9be8);}))),window[_0x5e731b(0x191)](_0x5e731b(0x214),()=>this[_0x5e731b(0x244)]({'type':0x1,'memberID':this[_0x5e731b(0x1b9)],'unitIDs':Array[_0x5e731b(0x235)](this[_0x5e731b(0x351)])}));}['_handleEvent'](_0x4230d3){const _0x56d578=_0x6c52c3;switch(_0x4230d3[_0x56d578(0x333)]){case 0x0:this['_handleJoinEvent'](_0x4230d3);break;case 0x1:this['_handleLeaveEvent'](_0x4230d3);break;case 0x2:this[_0x56d578(0x386)](_0x4230d3);break;}}['_handleJoinEvent'](_0x175477){const _0x32690b=_0x6c52c3,{unitIDs:_0x4bf95c,memberID:_0x1561d0,isForwarded:_0xe0b738}=_0x175477;_0x4bf95c[_0x32690b(0x1b1)](_0x2bf343=>{const _0x4fbbeb=_0x32690b;if(!_0xe0b738&&this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x27c)](_0x2bf343)&&this[_0x4fbbeb(0x252)](_0x2bf343)[_0x4fbbeb(0x2c9)](u[_0x4fbbeb(0x19f)][_0x4fbbeb(0x41f)]),!this[_0x4fbbeb(0x39c)]['has'](_0x2bf343)||!this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x285)](_0x2bf343)[_0x4fbbeb(0x27c)](_0x1561d0)){const _0x1f7fae=this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x285)](_0x2bf343)||new Set();_0x1f7fae['add'](_0x1561d0),this['_unitOnClients'][_0x4fbbeb(0x33f)](_0x2bf343,_0x1f7fae),this[_0x4fbbeb(0x1eb)](_0x1561d0);}}),_0xe0b738||this[_0x32690b(0x244)]({'type':0x0,'memberID':this[_0x32690b(0x1b9)],'unitIDs':[...this[_0x32690b(0x351)]],'isForwarded':!0x0});}[_0x6c52c3(0x1eb)](_0x2e4c03){const _0x2bbfea=_0x6c52c3;this[_0x2bbfea(0x3de)](_0x2e4c03);const _0xf125c9=window[_0x2bbfea(0x3fe)](()=>{const _0x702b6=_0x2bbfea;this[_0x702b6(0x39c)][_0x702b6(0x1b1)](_0x1f1b19=>{const _0x4059a3=_0x702b6;_0x1f1b19[_0x4059a3(0x41a)](_0x2e4c03);});},Pe*0x2);this[_0x2bbfea(0x237)][_0x2bbfea(0x33f)](_0x2e4c03,_0xf125c9);}[_0x6c52c3(0x3de)](_0x26d22a){const _0x3d5ba8=_0x6c52c3;if(this['_clearOtherTimers'][_0x3d5ba8(0x27c)](_0x26d22a)){const _0x472059=this[_0x3d5ba8(0x237)]['get'](_0x26d22a);_0x472059&&window[_0x3d5ba8(0x3db)](_0x472059),this[_0x3d5ba8(0x237)][_0x3d5ba8(0x33f)](_0x26d22a,null);}}[_0x6c52c3(0x373)](_0x1695c9){const _0x3ffae4=_0x6c52c3,{memberID:_0x39661e,unitIDs:_0x263d77}=_0x1695c9;_0x263d77[_0x3ffae4(0x1b1)](_0x34a4f9=>{const _0x485632=_0x3ffae4;var _0xd3ebf6;const _0x224bd7=this[_0x485632(0x39c)][_0x485632(0x285)](_0x34a4f9);_0x224bd7&&(_0x224bd7[_0x485632(0x41a)](_0x39661e),(_0xd3ebf6=this['_ensureSubject'](_0x34a4f9))==null||_0xd3ebf6[_0x485632(0x2c9)](_0x224bd7[_0x485632(0x364)]===0x0?u[_0x485632(0x19f)][_0x485632(0x338)]:u[_0x485632(0x19f)][_0x485632(0x41f)]));}),this[_0x3ffae4(0x3de)](_0x39661e);}[_0x6c52c3(0x386)](_0xbd81e1){const _0x58165c=_0x6c52c3;this[_0x58165c(0x1eb)](_0xbd81e1['memberID']);}[_0x6c52c3(0x244)](_0x2372fd){const _0x57af9a=_0x6c52c3;localStorage[_0x57af9a(0x410)](we,JSON[_0x57af9a(0x302)](_0x2372fd));}[_0x6c52c3(0x197)](){const _0x5bb264=_0x6c52c3;this['_heartbeatTimer']=window[_0x5bb264(0x1bb)](()=>{const _0x22f840=_0x5bb264;this[_0x22f840(0x244)]({'type':0x2,'memberID':this[_0x22f840(0x1b9)]});},Pe);}[_0x6c52c3(0x252)](_0x4c398e){const _0xf95efe=_0x6c52c3;return this['_unitStatus'][_0xf95efe(0x27c)](_0x4c398e)||this[_0xf95efe(0x36b)][_0xf95efe(0x33f)](_0x4c398e,new I['BehaviorSubject'](u['UnitStatus'][_0xf95efe(0x338)])),this[_0xf95efe(0x36b)][_0xf95efe(0x285)](_0x4c398e);}}exports[_0x6c52c3(0x26e)]=Te,exports[_0x6c52c3(0x27e)]=Fe,exports[_0x6c52c3(0x380)]=ds,exports[_0x6c52c3(0x1ac)]=ke;
1
+ 'use strict';const _0xa5554e=_0x3f8c;(function(_0x1a6ec6,_0x116471){const _0x51d590=_0x3f8c,_0x297049=_0x1a6ec6();while(!![]){try{const _0x2f6666=-parseInt(_0x51d590(0x28e))/0x1*(parseInt(_0x51d590(0x2c6))/0x2)+parseInt(_0x51d590(0x32e))/0x3*(-parseInt(_0x51d590(0x27a))/0x4)+-parseInt(_0x51d590(0x1d6))/0x5+-parseInt(_0x51d590(0x1e5))/0x6+-parseInt(_0x51d590(0x3c2))/0x7+-parseInt(_0x51d590(0x2ed))/0x8*(-parseInt(_0x51d590(0x302))/0x9)+-parseInt(_0x51d590(0x22e))/0xa*(-parseInt(_0x51d590(0x363))/0xb);if(_0x2f6666===_0x116471)break;else _0x297049['push'](_0x297049['shift']());}catch(_0x3d8f23){_0x297049['push'](_0x297049['shift']());}}}(_0x3a82,0x1a466));var Ge=Object[_0xa5554e(0x384)],Xe=(_0x157e81,_0x37f519,_0x2aa362)=>_0x37f519 in _0x157e81?Ge(_0x157e81,_0x37f519,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aa362}):_0x157e81[_0x37f519]=_0x2aa362,_=(_0x3d821c,_0x4a0cbd,_0x1a0d4d)=>Xe(_0x3d821c,typeof _0x4a0cbd!='symbol'?_0x4a0cbd+'':_0x4a0cbd,_0x1a0d4d);Object[_0xa5554e(0x384)](exports,Symbol[_0xa5554e(0x300)],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){return O=Object['assign']||function(_0x443674){const _0x54a184=_0x3f8c;for(var _0xbf03e1,_0x50c91c=0x1,_0x2491bb=arguments[_0x54a184(0x322)];_0x50c91c<_0x2491bb;_0x50c91c++){_0xbf03e1=arguments[_0x50c91c];for(var _0x3b47d7 in _0xbf03e1)Object['prototype']['hasOwnProperty']['call'](_0xbf03e1,_0x3b47d7)&&(_0x443674[_0x3b47d7]=_0xbf03e1[_0x3b47d7]);}return _0x443674;},O['apply'](this,arguments);},ze=function(_0x5bffc6,_0x4b7942){const _0x125c02=_0xa5554e;var _0x3de050={};for(var _0x227fe2 in _0x5bffc6)Object[_0x125c02(0x25c)]['hasOwnProperty'][_0x125c02(0x1d5)](_0x5bffc6,_0x227fe2)&&_0x4b7942[_0x125c02(0x2b8)](_0x227fe2)<0x0&&(_0x3de050[_0x227fe2]=_0x5bffc6[_0x227fe2]);if(_0x5bffc6!=null&&typeof Object['getOwnPropertySymbols']==_0x125c02(0x37c)){for(var _0x41cb1a=0x0,_0x227fe2=Object[_0x125c02(0x232)](_0x5bffc6);_0x41cb1a<_0x227fe2[_0x125c02(0x322)];_0x41cb1a++)_0x4b7942[_0x125c02(0x2b8)](_0x227fe2[_0x41cb1a])<0x0&&Object[_0x125c02(0x25c)][_0x125c02(0x270)][_0x125c02(0x1d5)](_0x5bffc6,_0x227fe2[_0x41cb1a])&&(_0x3de050[_0x227fe2[_0x41cb1a]]=_0x5bffc6[_0x227fe2[_0x41cb1a]]);}return _0x3de050;},pe=L['forwardRef'](function(_0x48acab,_0x3a4bf7){const _0x18329e=_0xa5554e;var _0x507cc3=_0x48acab['icon'],_0xeb19c8=_0x48acab['id'],_0x62499b=_0x48acab[_0x18329e(0x35b)],_0x53f16e=_0x48acab[_0x18329e(0x195)],_0x205dfa=ze(_0x48acab,[_0x18329e(0x2ea),'id',_0x18329e(0x35b),_0x18329e(0x195)]),_0x318ea5='univerjs-icon\x20univerjs-icon-'[_0x18329e(0x3b6)](_0xeb19c8,'\x20')[_0x18329e(0x3b6)](_0x62499b||'')['trim'](),_0x29283e=L[_0x18329e(0x396)]('_'[_0x18329e(0x3b6)](Qe()));return ye(_0x507cc3,''[_0x18329e(0x3b6)](_0xeb19c8),{'defIds':_0x507cc3[_0x18329e(0x1fb)],'idSuffix':_0x29283e[_0x18329e(0x339)]},O({'ref':_0x3a4bf7,'className':_0x318ea5},_0x205dfa),_0x53f16e);});function ye(_0x5696cc,_0x32c963,_0x4d3869,_0x359277,_0x31fde1){const _0x40b841=_0xa5554e;return L[_0x40b841(0x1cd)](_0x5696cc[_0x40b841(0x250)],O(O({'key':_0x32c963},Je(_0x5696cc,_0x4d3869,_0x31fde1)),_0x359277),(Ze(_0x5696cc,_0x4d3869)['children']||[])[_0x40b841(0x324)](function(_0x25029a,_0x8907eb){const _0x5baddc=_0x40b841;return ye(_0x25029a,''[_0x5baddc(0x3b6)](_0x32c963,'-')[_0x5baddc(0x3b6)](_0x5696cc[_0x5baddc(0x250)],'-')[_0x5baddc(0x3b6)](_0x8907eb),_0x4d3869,void 0x0,_0x31fde1);}));}function Je(_0x11182f,_0x6b9e4f,_0x2c023a){const _0x10147e=_0xa5554e;var _0x3d9ed9=O({},_0x11182f[_0x10147e(0x18c)]);_0x2c023a!=null&&_0x2c023a[_0x10147e(0x23a)]&&_0x3d9ed9[_0x10147e(0x2bf)]==='colorChannel1'&&(_0x3d9ed9[_0x10147e(0x2bf)]=_0x2c023a['colorChannel1']),_0x11182f['tag']==='mask'&&_0x3d9ed9['id']&&(_0x3d9ed9['id']=_0x3d9ed9['id']+_0x6b9e4f[_0x10147e(0x2d1)]),Object[_0x10147e(0x355)](_0x3d9ed9)[_0x10147e(0x338)](function(_0x2db190){const _0x51983f=_0x10147e;var _0x4dbee5=_0x2db190[0x0],_0x14b261=_0x2db190[0x1];_0x4dbee5===_0x51983f(0x2e2)&&typeof _0x14b261=='string'&&(_0x3d9ed9[_0x4dbee5]=_0x14b261['replace'](/url\(#(.*)\)/,'url(#$1'[_0x51983f(0x3b6)](_0x6b9e4f[_0x51983f(0x2d1)],')')));});var _0x2927e6=_0x6b9e4f[_0x10147e(0x1fb)];return!_0x2927e6||_0x2927e6[_0x10147e(0x322)]===0x0||(_0x11182f[_0x10147e(0x250)]===_0x10147e(0x378)&&_0x3d9ed9[_0x10147e(0x266)]&&(_0x3d9ed9[_0x10147e(0x266)]=_0x3d9ed9[_0x10147e(0x266)]+_0x6b9e4f[_0x10147e(0x2d1)]),Object[_0x10147e(0x355)](_0x3d9ed9)['forEach'](function(_0x3bc64e){const _0x3f0099=_0x10147e;var _0x15c6ff=_0x3bc64e[0x0],_0x5d31eb=_0x3bc64e[0x1];typeof _0x5d31eb==_0x3f0099(0x293)&&(_0x3d9ed9[_0x15c6ff]=_0x5d31eb[_0x3f0099(0x2d7)](/url\(#(.*)\)/,_0x3f0099(0x1bd)[_0x3f0099(0x3b6)](_0x6b9e4f['idSuffix'],')')));})),_0x3d9ed9;}function Ze(_0x3afd94,_0x309c92){const _0x3f5da4=_0xa5554e;var _0x2c9ae0,_0x3e5404=_0x309c92[_0x3f5da4(0x1fb)];return!_0x3e5404||_0x3e5404['length']===0x0?_0x3afd94:_0x3afd94[_0x3f5da4(0x250)]===_0x3f5da4(0x17e)&&(!((_0x2c9ae0=_0x3afd94[_0x3f5da4(0x1f9)])===null||_0x2c9ae0===void 0x0)&&_0x2c9ae0[_0x3f5da4(0x322)])?O(O({},_0x3afd94),{'children':_0x3afd94[_0x3f5da4(0x1f9)][_0x3f5da4(0x324)](function(_0x3e9532){const _0x97e8f5=_0x3f5da4;return typeof _0x3e9532[_0x97e8f5(0x18c)]['id']==_0x97e8f5(0x293)&&_0x3e5404&&_0x3e5404['includes'](_0x3e9532[_0x97e8f5(0x18c)]['id'])?O(O({},_0x3e9532),{'attrs':O(O({},_0x3e9532['attrs']),{'id':_0x3e9532['attrs']['id']+_0x309c92['idSuffix']})}):_0x3e9532;})}):_0x3afd94;}function Qe(){const _0x3f3937=_0xa5554e;return Math[_0x3f3937(0x2b4)]()['toString'](0x24)[_0x3f3937(0x236)](0x2,0x8);}pe['displayName']=_0xa5554e(0x36b);var et={'tag':'svg','attrs':{'xmlns':_0xa5554e(0x3d3),'fill':_0xa5554e(0x1ca),'viewBox':_0xa5554e(0x194),'width':'1em','height':_0xa5554e(0x1a5)},'children':[{'tag':'g','attrs':{'clipPath':_0xa5554e(0x317)},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'stroke':_0xa5554e(0x244),'d':_0xa5554e(0x3f9),'strokeLinecap':'round','strokeLinejoin':_0xa5554e(0x15a),'strokeWidth':1.2}}]},{'tag':_0xa5554e(0x17e),'attrs':{},'children':[{'tag':_0xa5554e(0x37e),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'fill':_0xa5554e(0x20a),'d':_0xa5554e(0x2d3)}}]}]}],'defIds':[_0xa5554e(0x281)]},xe=L[_0xa5554e(0x29c)](function(_0x22fc1c,_0x273e11){const _0x3ed12c=_0xa5554e;return L[_0x3ed12c(0x1cd)](pe,Object[_0x3ed12c(0x277)]({},_0x22fc1c,{'id':_0x3ed12c(0x2c3),'ref':_0x273e11,'icon':et}));});xe[_0xa5554e(0x25e)]=_0xa5554e(0x231);var tt={'tag':_0xa5554e(0x188),'attrs':{'xmlns':_0xa5554e(0x3d3),'fill':'none','viewBox':_0xa5554e(0x267),'width':_0xa5554e(0x1a5),'height':_0xa5554e(0x1a5)},'children':[{'tag':'g','attrs':{'clipPath':_0xa5554e(0x1b1)},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'stroke':_0xa5554e(0x244),'d':_0xa5554e(0x154),'strokeLinecap':'round','strokeLinejoin':_0xa5554e(0x15a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xa5554e(0x37e),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'fill':'white','d':_0xa5554e(0x2d3),'transform':_0xa5554e(0x1ad)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=L[_0xa5554e(0x29c)](function(_0x383ef6,_0x3828de){const _0x430fd3=_0xa5554e;return L[_0x430fd3(0x1cd)](pe,Object[_0x430fd3(0x277)]({},_0x383ef6,{'id':_0x430fd3(0x19a),'ref':_0x3828de,'icon':tt}));});$e['displayName']='OnLineIcon';function st(_0x2c256a){const _0x14462c=_0xa5554e;switch(_0x2c256a){case u[_0x14462c(0x2b1)][_0x14462c(0x2e6)]:return'collabStatus.offline';case u[_0x14462c(0x2b1)][_0x14462c(0x2e7)]:return'collabStatus.conflict';case u[_0x14462c(0x2b1)]['FETCH_MISS']:return _0x14462c(0x3a9);case u[_0x14462c(0x2b1)]['NOT_COLLAB']:return _0x14462c(0x1c8);case u[_0x14462c(0x2b1)][_0x14462c(0x160)]:case u[_0x14462c(0x2b1)][_0x14462c(0x3bd)]:return'collabStatus.syncing';case u[_0x14462c(0x2b1)][_0x14462c(0x298)]:case u[_0x14462c(0x2b1)]['PENDING']:return'collabStatus.synced';}}function it(_0x181d97){const _0x50610e=_0xa5554e,{status$:_0x26b94f}=_0x181d97,_0x51cd18=R['useObservable'](_0x26b94f,u['CollaborationStatus'][_0x50610e(0x2cf)]),_0x22987e=R[_0x50610e(0x1bb)](a[_0x50610e(0x326)]),_0x7f2c54=R[_0x50610e(0x1bb)](u[_0x50610e(0x39a)]),_0x3c5f0b=_0x51cd18!==u[_0x50610e(0x2b1)][_0x50610e(0x2e6)],_0xeb24d9=_0x22987e['t'](st(_0x51cd18)),_0x2c9b05=_0x3c5f0b?P['jsx']($e,{}):P['jsx'](xe,{}),_0x3fe8cc=L[_0x50610e(0x1a7)](()=>{const _0x5ef067=_0x50610e;_0x3c5f0b||_0x7f2c54[_0x5ef067(0x360)]();},[_0x3c5f0b,_0x7f2c54]);function _0x405df4(){const _0xc64c5c=_0x50610e;return P[_0xc64c5c(0x17c)](_0xc64c5c(0x2f5),{'className':'univer-flex\x20univer-items-center','onClick':_0x3fe8cc,'children':[P[_0xc64c5c(0x3c9)](_0xc64c5c(0x2f5),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3c5f0b,'univer-text-red-500':!_0x3c5f0b}),'children':_0x2c9b05}),P[_0xc64c5c(0x3c9)](_0xc64c5c(0x2f5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xeb24d9})]});}return _0x3c5f0b?_0x405df4():P['jsx'](T['Tooltip'],{'title':_0x22987e['t']('collab-client.tooltip.reconnect'),'children':_0x405df4()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x5a82c1,_0x1a9406,_0x3f209b,_0x19c492)=>{for(var _0x2f106b=_0x19c492>0x1?void 0x0:_0x19c492?nt(_0x1a9406,_0x3f209b):_0x1a9406,_0x291f91=_0x5a82c1['length']-0x1,_0x34e83e;_0x291f91>=0x0;_0x291f91--)(_0x34e83e=_0x5a82c1[_0x291f91])&&(_0x2f106b=_0x34e83e(_0x2f106b)||_0x2f106b);return _0x2f106b;},q=(_0x2c5a46,_0x439555)=>(_0x1f4888,_0x1ff5e7)=>_0x439555(_0x1f4888,_0x1ff5e7,_0x2c5a46);exports[_0xa5554e(0x372)]=class extends a[_0xa5554e(0x249)]{constructor(_0x63052b,_0x4d27df,_0x58dcbc,_0x28362d){const _0x37881d=_0xa5554e;super(),_(this,_0x37881d(0x27e),new I[(_0x37881d(0x189))](u[_0x37881d(0x2b1)][_0x37881d(0x2cf)])),(this[_0x37881d(0x2b3)]=_0x63052b,this['_injector']=_0x4d27df,this[_0x37881d(0x329)]=_0x58dcbc,this[_0x37881d(0x1f2)]=_0x28362d,this['_initStatusComponent'](),this[_0x37881d(0x24f)]());}[_0xa5554e(0x24f)](){const _0x19b42c=_0xa5554e;this[_0x19b42c(0x1c2)](this[_0x19b42c(0x2b3)][_0x19b42c(0x20b)]['pipe'](I[_0x19b42c(0x2e1)](()=>{const _0xdec596=_0x19b42c,_0x1cdda9=this[_0xdec596(0x2b3)]['getFocusedUnit']();return _0x1cdda9?this['_collaborationController'][_0xdec596(0x162)](_0x1cdda9[_0xdec596(0x2bb)]()):I['of'](null);}),I[_0x19b42c(0x2e1)](_0x106e50=>_0x106e50?_0x106e50[_0x19b42c(0x327)]:I['of'](u[_0x19b42c(0x2b1)][_0x19b42c(0x2cf)])))['subscribe'](_0x54c316=>{const _0x3003e6=_0x19b42c;this[_0x3003e6(0x27e)]['next'](_0x54c316);}));}[_0xa5554e(0x15b)](){const _0xd3aea2=_0xa5554e;this[_0xd3aea2(0x1c2)](this[_0xd3aea2(0x1f2)]['registerComponent'](R[_0xd3aea2(0x24d)][_0xd3aea2(0x374)],()=>R['connectInjector'](ot({'status$':this[_0xd3aea2(0x27e)][_0xd3aea2(0x3b2)]()}),this['_injector'])));}},exports[_0xa5554e(0x372)]=rt([q(0x0,a[_0xa5554e(0x204)]),q(0x1,a['Inject'](a[_0xa5554e(0x36a)])),q(0x2,a[_0xa5554e(0x212)](u['CollaborationController'])),q(0x3,R[_0xa5554e(0x332)])],exports[_0xa5554e(0x372)]);function ot(_0x4ce91e){const {status$:_0x3b6da4}=_0x4ce91e;return function(){const _0xc0fafc=_0x3f8c;return P[_0xc0fafc(0x3c9)](it,{'status$':_0x3b6da4});};}const Te=a[_0xa5554e(0x30b)]('uni.network.url-service');var at=Object['getOwnPropertyDescriptor'],ct=(_0x192ce5,_0x11a363,_0x2bcd31,_0x59bbfa)=>{const _0x5d5ca0=_0xa5554e;for(var _0x1f54e7=_0x59bbfa>0x1?void 0x0:_0x59bbfa?at(_0x11a363,_0x2bcd31):_0x11a363,_0x364be6=_0x192ce5[_0x5d5ca0(0x322)]-0x1,_0x4cb6d5;_0x364be6>=0x0;_0x364be6--)(_0x4cb6d5=_0x192ce5[_0x364be6])&&(_0x1f54e7=_0x4cb6d5(_0x1f54e7)||_0x1f54e7);return _0x1f54e7;},Y=(_0x32d3e2,_0x381f56)=>(_0x553514,_0x55f00e)=>_0x381f56(_0x553514,_0x55f00e,_0x32d3e2);exports[_0xa5554e(0x403)]=class extends a[_0xa5554e(0x264)]{constructor(_0x1ce297,_0x554a07,_0x3b5c20,_0x191e93,_0x2d75e0){const _0xda6008=_0xa5554e;super(),this[_0xda6008(0x2c7)]=_0x1ce297,this[_0xda6008(0x318)]=_0x554a07,this['_commandService']=_0x3b5c20,this[_0xda6008(0x3fe)]=_0x191e93,_0x2d75e0?_0x2d75e0==null||_0x2d75e0[_0xda6008(0x1e9)]()[_0xda6008(0x28f)](()=>this[_0xda6008(0x269)]()):(this[_0xda6008(0x318)][_0xda6008(0x3b8)]('[CollaborationDataLoaderController]',_0xda6008(0x228)),this['_init']());}async['_init'](){const _0x50a9f5=_0xa5554e,_0x3a421d=this[_0x50a9f5(0x2c7)][_0x50a9f5(0x163)](_0x50a9f5(0x2a1)),_0x2ff8ce=this['_urlService']['getParam'](_0x50a9f5(0x2d9)),_0x3d9feb=this[_0x50a9f5(0x2c7)][_0x50a9f5(0x163)](_0x50a9f5(0x243));if(!_0x3a421d||!_0x2ff8ce){this[_0x50a9f5(0x318)]['debug'](_0x50a9f5(0x349),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x305dc8=await this[_0x50a9f5(0x3fe)][_0x50a9f5(0x23d)](_0x3a421d,Number(_0x2ff8ce),_0x3d9feb);_0x305dc8&&_0x305dc8 instanceof a[_0x50a9f5(0x29e)]&&this[_0x50a9f5(0x263)](_0x305dc8);}async['_setupSubUnitSync'](_0x533da9){const _0x141c00=_0xa5554e;await this[_0x141c00(0x3b4)](_0x533da9),_0x533da9[_0x141c00(0x1f8)][_0x141c00(0x2be)](I[_0x141c00(0x2a6)](this['dispose$']))['subscribe'](_0x4e7f69=>{const _0x3b1d93=_0x141c00;_0x4e7f69&&this[_0x3b1d93(0x1cf)](_0x4e7f69);}),this[_0x141c00(0x2c7)][_0x141c00(0x261)][_0x141c00(0x2be)](I['takeUntil'](this[_0x141c00(0x197)]))[_0x141c00(0x3cb)](()=>this[_0x141c00(0x3b4)](_0x533da9));}[_0xa5554e(0x1cf)](_0x3d2251,_0x5c798c=!0x1){const _0x190ae4=_0xa5554e,_0x320221=this[_0x190ae4(0x2c7)][_0x190ae4(0x163)]('subunit');_0x3d2251['getSheetId']()!==_0x320221&&this[_0x190ae4(0x2c7)][_0x190ae4(0x301)](_0x190ae4(0x243),_0x3d2251[_0x190ae4(0x1b2)](),_0x5c798c);}async[_0xa5554e(0x3b4)](_0x433c5c){const _0x3c5e72=_0xa5554e;var _0x792c65;const _0x50867b=this['_urlService'][_0x3c5e72(0x163)](_0x3c5e72(0x243));if(!_0x50867b||!_0x433c5c[_0x3c5e72(0x404)](_0x50867b)){const _0x5ebf4e=_0x433c5c[_0x3c5e72(0x33f)]()[0x0],_0x4943ed=_0x433c5c['getSheetBySheetId'](_0x5ebf4e);if(!_0x4943ed)return;this['_updateURLWithCurrentState'](_0x4943ed,!0x0),await this[_0x3c5e72(0x2a7)][_0x3c5e72(0x3d1)](v[_0x3c5e72(0x257)]['id'],{'unitId':_0x433c5c[_0x3c5e72(0x2bb)](),'subUnitId':_0x5ebf4e});return;}((_0x792c65=_0x433c5c[_0x3c5e72(0x36c)]())==null?void 0x0:_0x792c65[_0x3c5e72(0x1b2)]())!==_0x50867b&&await this['_commandService'][_0x3c5e72(0x3d1)](v[_0x3c5e72(0x257)]['id'],{'unitId':_0x433c5c[_0x3c5e72(0x2bb)](),'subUnitId':_0x50867b});}},exports[_0xa5554e(0x403)]=ct([Y(0x0,Te),Y(0x1,a['ILogService']),Y(0x2,a[_0xa5554e(0x38d)]),Y(0x3,a[_0xa5554e(0x212)](u['DataLoaderService'])),Y(0x4,a[_0xa5554e(0x19c)](Ke['IRemoteInstanceService']))],exports[_0xa5554e(0x403)]);var lt=Object[_0xa5554e(0x1fa)],_t=(_0x5ae22d,_0x49b5ff,_0x4d7950,_0x504a62)=>{for(var _0x3138a3=_0x504a62>0x1?void 0x0:_0x504a62?lt(_0x49b5ff,_0x4d7950):_0x49b5ff,_0x4677d7=_0x5ae22d['length']-0x1,_0x50383c;_0x4677d7>=0x0;_0x4677d7--)(_0x50383c=_0x5ae22d[_0x4677d7])&&(_0x3138a3=_0x50383c(_0x3138a3)||_0x3138a3);return _0x3138a3;},be=(_0x55c97e,_0x2ee151)=>(_0x4c3136,_0x3b4cab)=>_0x2ee151(_0x4c3136,_0x3b4cab,_0x55c97e);let fe=class extends a[_0xa5554e(0x264)]{constructor(_0x6d38b5,_0x47dbbd){const _0x5cd541=_0xa5554e;super(),this[_0x5cd541(0x193)]=_0x6d38b5,this[_0x5cd541(0x3f5)]=_0x47dbbd,this[_0x5cd541(0x269)]();}['_init'](){const _0x5246bf=_0xa5554e,_0x1f874e=this;this[_0x5246bf(0x1c2)](this[_0x5246bf(0x193)]['addClipboardHook']({'onBeforePasteImage':async _0x259fe5=>{const _0x2c010b=_0x5246bf,_0x247fd9=await _0x1f874e['_imageIoService'][_0x2c010b(0x305)](_0x259fe5);return _0x247fd9?{'source':_0x247fd9[_0x2c010b(0x402)],'imageSourceType':_0x247fd9[_0x2c010b(0x280)]}:null;}}));}};fe=_t([be(0x0,p[_0xa5554e(0x173)]),be(0x1,qe['IImageIoService'])],fe);const De=[_0xa5554e(0x295),_0xa5554e(0x39d),_0xa5554e(0x389),'red.300','blue.400',_0xa5554e(0x31d)];class Oe extends a[_0xa5554e(0x249)]{constructor(){const _0x9607a8=_0xa5554e;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x9607a8(0x226),0x0);}['assignAColorForMemberID'](_0x3dba6d){const _0xa19a58=_0xa5554e;if(this['_assignedColors']['has'](_0x3dba6d))return this['_assignedColors'][_0xa19a58(0x23e)](_0x3dba6d);const _0x102a19=De[this[_0xa19a58(0x226)]];return this[_0xa19a58(0x226)]=(this['_colorIndex']+0x1)%De[_0xa19a58(0x322)],this[_0xa19a58(0x38b)]['set'](_0x3dba6d,_0x102a19),_0x102a19;}}function Be(_0x43e3a2){const _0x3c10b7=_0xa5554e;let _0xbddc74='';for(const _0x51bcd4 of _0x43e3a2){const {startOffset:_0x563c51,endOffset:_0x3a782b,isActive:_0x2cb371,rangeType:_0x2c73bb,segmentId:_0x5975c6,segmentPage:_0x235171}=_0x51bcd4;_0xbddc74[_0x3c10b7(0x322)]&&(_0xbddc74+=','),_0xbddc74+=_0x563c51+':'+_0x3a782b+':'+(_0x2cb371?'1':'0')+':'+_0x2c73bb+':'+_0x5975c6+':'+_0x235171;}return _0xbddc74;}function ht(_0x18147d){const _0x1f0c50=_0xa5554e,_0x50c177=_0x18147d['split'](','),_0x597724=[];for(const _0x19ac10 of _0x50c177){const [_0x513534,_0x1a1668,_0x15c689,_0x321e9d,_0x1a944c,_0x12d843]=_0x19ac10['split'](':');_0x597724[_0x1f0c50(0x3a6)]({'startOffset':Number(_0x513534),'endOffset':Number(_0x1a1668),'collapsed':_0x513534===_0x1a1668,'isActive':_0x15c689==='1','rangeType':_0x321e9d===a['DOC_RANGE_TYPE'][_0x1f0c50(0x37b)]?a[_0x1f0c50(0x34b)][_0x1f0c50(0x37b)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x1a944c==_0x1f0c50(0x293)?String(_0x1a944c):'','segmentPage':Number(_0x12d843!=null?_0x12d843:-0x1)});}return _0x597724['some'](_0x1c1601=>_0x1c1601[_0x1f0c50(0x205)])||(_0x597724[0x0][_0x1f0c50(0x205)]=!0x0),_0x597724;}class Re extends a[_0xa5554e(0x264)]{constructor(){const _0x803d0d=_0xa5554e;super(...arguments),_(this,_0x803d0d(0x2da),new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x803d0d(0x2da)][_0x803d0d(0x3b2)]());}['syncEditingCollabCursor'](_0x4b5f82){const _0x427b93=_0xa5554e,{unitID:_0x492b8e,memberID:_0x5135c4,textRanges:_0x489fe5}=_0x4b5f82,_0x14254b=Be(_0x489fe5);if(_0x14254b==='')return;const _0x27c044={'unitID':_0x492b8e,'memberID':_0x5135c4,'selection':_0x14254b};this[_0x427b93(0x2da)][_0x427b93(0x3d5)](_0x27c044);}}var ut=Object[_0xa5554e(0x1fa)],It=(_0x2bd3f4,_0x42ca8a,_0xf109a4,_0x576fe4)=>{const _0x1ce26e=_0xa5554e;for(var _0x10890b=_0x576fe4>0x1?void 0x0:_0x576fe4?ut(_0x42ca8a,_0xf109a4):_0x42ca8a,_0x511ba3=_0x2bd3f4[_0x1ce26e(0x322)]-0x1,_0x3a47fb;_0x511ba3>=0x0;_0x511ba3--)(_0x3a47fb=_0x2bd3f4[_0x511ba3])&&(_0x10890b=_0x3a47fb(_0x10890b)||_0x10890b);return _0x10890b;},M=(_0x2589e3,_0x84690e)=>(_0x55cc5b,_0x1294d1)=>_0x84690e(_0x55cc5b,_0x1294d1,_0x2589e3);const dt=0x12c,St=0x64;let me=class extends a['RxDisposable']{constructor(_0x3463aa,_0x4e8770,_0x450343,_0x57a2f9,_0x25eed3,_0x512fa8,_0x1330c1,_0xf557a3,_0x251944){const _0x3d756c=_0xa5554e;super(),_(this,_0x3d756c(0x215),!0x1),_(this,_0x3d756c(0x269),!0x1),_(this,_0x3d756c(0x299),new I['BehaviorSubject'](new Map())),_(this,_0x3d756c(0x30f),this['_cursorInfo$'][_0x3d756c(0x3b2)]()),_(this,_0x3d756c(0x39f),new I[(_0x3d756c(0x189))]([])),_(this,_0x3d756c(0x1a3),this[_0x3d756c(0x39f)][_0x3d756c(0x2be)](I[_0x3d756c(0x1f3)](dt))),_(this,_0x3d756c(0x3b7),a[_0x3d756c(0x341)](_0x58d21b=>{const _0x111591=_0x3d756c,_0x5b9036={'eventID':g[_0x111591(0x15e)][_0x111591(0x37d)],'data':{'unitID':this[_0x111591(0x3bf)],'memberID':this[_0x111591(0x3c8)][_0x111591(0x1ab)](),'selection':Be(_0x58d21b)}};this[_0x111591(0x3c8)]['send'](_0x5b9036,this[_0x111591(0x3bf)]);},St)),(this[_0x3d756c(0x3bf)]=_0x3463aa,this[_0x3d756c(0x3c8)]=_0x4e8770,this[_0x3d756c(0x2c1)]=_0x450343,this[_0x3d756c(0x353)]=_0x57a2f9,this[_0x3d756c(0x348)]=_0x25eed3,this[_0x3d756c(0x3e2)]=_0x512fa8,this[_0x3d756c(0x33b)]=_0x1330c1,this[_0x3d756c(0x2b3)]=_0xf557a3,this[_0x3d756c(0x2a7)]=_0x251944);}get[_0xa5554e(0x21f)](){const _0x4f6a2e=_0xa5554e;return this[_0x4f6a2e(0x299)][_0x4f6a2e(0x32b)]();}get[_0xa5554e(0x16d)](){const _0x4b8c84=_0xa5554e;return this[_0x4b8c84(0x39f)][_0x4b8c84(0x32b)]();}[_0xa5554e(0x336)](){const _0x19ea55=_0xa5554e;super[_0x19ea55(0x336)](),this[_0x19ea55(0x299)]['next'](new Map()),this[_0x19ea55(0x299)][_0x19ea55(0x278)](),this['_roomMembers$'][_0x19ea55(0x3d5)]([]),this[_0x19ea55(0x39f)]['complete']();}[_0xa5554e(0x1aa)](){const _0x40f50b=_0xa5554e;this[_0x40f50b(0x269)]||(this[_0x40f50b(0x269)]=!0x0,this[_0x40f50b(0x3c8)][_0x40f50b(0x3fd)][_0x40f50b(0x2be)](I[_0x40f50b(0x2a6)](this[_0x40f50b(0x197)]))[_0x40f50b(0x3cb)](_0x3d4f62=>{const _0x538503=_0x40f50b;_0x3d4f62===u[_0x538503(0x2f7)][_0x538503(0x3d6)]?this[_0x538503(0x380)]():this['_toggleOffline']();}),this[_0x40f50b(0x3c8)][_0x40f50b(0x1a0)][_0x40f50b(0x2be)](I['takeUntil'](this[_0x40f50b(0x197)]))[_0x40f50b(0x3cb)](_0x59d39e=>{const _0x31cea0=_0x40f50b,_0x1e2172=_0x59d39e[_0x31cea0(0x34d)];_0x1e2172===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x31cea0(0x297)](_0x59d39e),_0x1e2172===g[_0x31cea0(0x15e)][_0x31cea0(0x199)]&&this[_0x31cea0(0x229)](_0x59d39e);}),this['disposeWithMe'](this[_0x40f50b(0x2a7)][_0x40f50b(0x180)](_0x4bf51a=>{const _0x1c35be=_0x40f50b,_0x3991f5=_0x4bf51a[_0x1c35be(0x161)];_0x3991f5!=null&&this['_online']&&_0x4bf51a['id']===V['SetTextSelectionsOperation']['id']&&_0x3991f5['unitId']===this[_0x1c35be(0x3bf)]&&_0x3991f5['isEditing']===!0x1&&_0x3991f5[_0x1c35be(0x3d0)][_0x1c35be(0x322)]>0x0&&this[_0x1c35be(0x3b7)](_0x3991f5[_0x1c35be(0x3d0)]);})),this['_syncEditingCollabCursorService'][_0x40f50b(0x2f8)][_0x40f50b(0x2be)](I[_0x40f50b(0x2a6)](this[_0x40f50b(0x197)]))['subscribe'](_0x3708de=>{const _0x288ee2=_0x40f50b;if((_0x3708de==null?void 0x0:_0x3708de[_0x288ee2(0x3bf)])!==this['unitID'])return;const _0x28ad0c={'eventID':g['CollaborationEvent'][_0x288ee2(0x37d)],'data':_0x3708de};this['_onCursorUpdate'](_0x28ad0c);}),this[_0x40f50b(0x1c2)](this[_0x40f50b(0x2a7)][_0x40f50b(0x180)](_0x5ee6b8=>{const _0x42cdb2=_0x40f50b;if(_0x5ee6b8[_0x42cdb2(0x161)]==null)return;const _0x4086d1=_0x5ee6b8[_0x42cdb2(0x161)];if(_0x5ee6b8['id']!==V[_0x42cdb2(0x1d4)]['id']||_0x4086d1[_0x42cdb2(0x401)]!==this[_0x42cdb2(0x3bf)])return;const _0x8182f9={'id':'doc.mutation.rich-text-editing','params':_0x4086d1},_0x540db3=this['cursorInfo'];for(const [_0x431036,_0x2ac6af]of _0x540db3){const _0x14eb61={'id':_0x42cdb2(0x224),'params':{'unitId':this[_0x42cdb2(0x3bf)],'actions':null,'textRanges':_0x2ac6af[_0x42cdb2(0x3d0)]}},_0x411199=this[_0x42cdb2(0x33b)]['transformMutation'](_0x8182f9,_0x14eb61,!0x1);if(g[_0x42cdb2(0x28a)](_0x411199))throw _0x411199[_0x42cdb2(0x21a)];_0x540db3[_0x42cdb2(0x2eb)](_0x431036,{..._0x2ac6af,'ranges':_0x411199[_0x42cdb2(0x258)][_0x42cdb2(0x161)][_0x42cdb2(0x185)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x540db3);});})));}[_0xa5554e(0x297)](_0x3c6192){const _0x1cc445=_0xa5554e;var _0x1023c9,_0xcc4411;const {memberID:_0x19ec72,selection:_0x155ef5}=_0x3c6192[_0x1cc445(0x3ad)],_0x81ff1=ht(_0x155ef5),_0x3c93fc=(_0xcc4411=(_0x1023c9=this[_0x1cc445(0x348)][_0x1cc445(0x347)](this[_0x1cc445(0x3bf)],_0x19ec72))==null?void 0x0:_0x1023c9[_0x1cc445(0x388)])!=null?_0xcc4411:_0x1cc445(0x1d1),_0x21d7ea={'color':this['_colorAssignService'][_0x1cc445(0x2db)](_0x19ec72),'name':_0x3c93fc,'ranges':_0x81ff1},_0x5155f0=this[_0x1cc445(0x21f)];_0x5155f0['set'](_0x19ec72,_0x21d7ea),this[_0x1cc445(0x299)]['next'](_0x5155f0);}[_0xa5554e(0x229)](_0x3166c1){const _0x5f5c39=_0xa5554e,{memberID:_0x11c5d0}=_0x3166c1[_0x5f5c39(0x3ad)],_0x17622d=this[_0x5f5c39(0x21f)];_0x17622d['delete'](_0x11c5d0),this['_cursorInfo$'][_0x5f5c39(0x3d5)](_0x17622d);}[_0xa5554e(0x380)](){const _0x3b973c=_0xa5554e;var _0xf46d7e;if(this[_0x3b973c(0x215)]=!0x0,((_0xf46d7e=this['_univerInstanceService'][_0x3b973c(0x2ec)]())==null?void 0x0:_0xf46d7e['getUnitId']())!==this[_0x3b973c(0x3bf)])return;const _0x1bec0a=this[_0x3b973c(0x2c1)][_0x3b973c(0x23e)](V[_0x3b973c(0x3f6)])[_0x3b973c(0x214)]();Array[_0x3b973c(0x3ba)](_0x1bec0a)&&_0x1bec0a[_0x3b973c(0x322)]>0x0&&this[_0x3b973c(0x3b7)](_0x1bec0a);}[_0xa5554e(0x1ef)](){this['_online']=!0x1;}};me=It([M(0x2,a[_0xa5554e(0x212)](a['Injector'])),M(0x3,a[_0xa5554e(0x212)](Oe)),M(0x4,a[_0xa5554e(0x212)](u[_0xa5554e(0x285)])),M(0x5,a['Inject'](Re)),M(0x6,g[_0xa5554e(0x26f)]),M(0x7,a[_0xa5554e(0x204)]),M(0x8,a[_0xa5554e(0x38d)])],me);var ft=Object[_0xa5554e(0x1fa)],mt=(_0x2c459e,_0x4e49d5,_0x397e95,_0x430895)=>{const _0x1ac5e4=_0xa5554e;for(var _0x1d8960=_0x430895>0x1?void 0x0:_0x430895?ft(_0x4e49d5,_0x397e95):_0x4e49d5,_0x2b132a=_0x2c459e[_0x1ac5e4(0x322)]-0x1,_0xba1316;_0x2b132a>=0x0;_0x2b132a--)(_0xba1316=_0x2c459e[_0x2b132a])&&(_0x1d8960=_0xba1316(_0x1d8960)||_0x1d8960);return _0x1d8960;},y=(_0x37cd4,_0x4f31d8)=>(_0x1e0d92,_0x4ac9e4)=>_0x4f31d8(_0x1e0d92,_0x4ac9e4,_0x37cd4);const vt=0x12c,gt=0x64,Et=()=>{let _0x150f1d=[],_0x18fac6=!0x1;return _0x1d2d3e=>{const _0x4198f6=_0x3f8c;_0x150f1d[_0x4198f6(0x3a6)](_0x1d2d3e),_0x18fac6||(_0x18fac6=!0x0,setTimeout(()=>{const _0x1dfd80=_0x4198f6;_0x150f1d[_0x1dfd80(0x338)](_0xb50aac=>_0xb50aac()),_0x150f1d=[],_0x18fac6=!0x1;}));};};let ve=class extends a[_0xa5554e(0x264)]{constructor(_0x11600d,_0x2540f2,_0x1e3ca0,_0x2c9da0,_0x3220c3,_0x788eb5,_0x4b0009,_0xa04a2e){const _0x412495=_0xa5554e;super(),_(this,_0x412495(0x215),!0x1),_(this,_0x412495(0x269),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x412495(0x30f),this[_0x412495(0x299)][_0x412495(0x3b2)]()),_(this,_0x412495(0x39f),new I['BehaviorSubject']([])),_(this,_0x412495(0x1a3),this[_0x412495(0x39f)]['pipe'](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a[_0x412495(0x341)]((_0x39d3ee,_0x4c0489)=>{const _0x500783=_0x412495,_0x29b979={'eventID':g[_0x500783(0x15e)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x500783(0x3bf)],'memberID':this[_0x500783(0x3c8)][_0x500783(0x1ab)](),'selection':B[_0x500783(0x376)](_0x39d3ee,_0x4c0489[_0x500783(0x3bb)])}};this[_0x500783(0x3c8)][_0x500783(0x33a)](_0x29b979,this['unitID']);},gt)),(this[_0x412495(0x3bf)]=_0x11600d,this[_0x412495(0x3c8)]=_0x2540f2,this[_0x412495(0x2c1)]=_0x1e3ca0,this[_0x412495(0x353)]=_0x2c9da0,this[_0x412495(0x348)]=_0x3220c3,this[_0x412495(0x2b3)]=_0x788eb5,this['_commandService']=_0x4b0009,this[_0x412495(0x2b2)]=_0xa04a2e);}get[_0xa5554e(0x21f)](){const _0x39e378=_0xa5554e;return this[_0x39e378(0x299)]['getValue']();}get[_0xa5554e(0x16d)](){const _0x33e4be=_0xa5554e;return this[_0x33e4be(0x39f)][_0x33e4be(0x32b)]();}[_0xa5554e(0x336)](){const _0x47771d=_0xa5554e;super['dispose'](),this[_0x47771d(0x299)][_0x47771d(0x3d5)](new Map()),this[_0x47771d(0x299)][_0x47771d(0x278)](),this['_roomMembers$']['next']([]),this[_0x47771d(0x39f)][_0x47771d(0x278)]();}[_0xa5554e(0x1aa)](){const _0x32ff9b=_0xa5554e;this[_0x32ff9b(0x269)]||(this[_0x32ff9b(0x269)]=!0x0,this[_0x32ff9b(0x3c8)][_0x32ff9b(0x3fd)][_0x32ff9b(0x2be)](I[_0x32ff9b(0x2a6)](this[_0x32ff9b(0x197)]))[_0x32ff9b(0x3cb)](_0x593198=>{const _0x4ff166=_0x32ff9b;_0x593198===u[_0x4ff166(0x2f7)][_0x4ff166(0x3d6)]?this[_0x4ff166(0x380)]():this[_0x4ff166(0x1ef)]();}),this[_0x32ff9b(0x3c8)][_0x32ff9b(0x1a0)][_0x32ff9b(0x2be)](I[_0x32ff9b(0x2a6)](this[_0x32ff9b(0x197)]))['subscribe'](_0x52a4d5=>{const _0x190bc5=_0x32ff9b,_0xe37360=_0x52a4d5[_0x190bc5(0x34d)];_0xe37360===g[_0x190bc5(0x15e)]['UPDATE_CURSOR']&&this[_0x190bc5(0x297)](_0x52a4d5),_0xe37360===g[_0x190bc5(0x15e)][_0x190bc5(0x199)]&&this[_0x190bc5(0x229)](_0x52a4d5);}),this['_onRefRangeChange'](),this[_0x32ff9b(0x1c2)](this[_0x32ff9b(0x2a7)][_0x32ff9b(0x180)](_0x3677e1=>{const _0x10a74b=_0x32ff9b;if(this[_0x10a74b(0x215)]&&_0x3677e1['id']===v[_0x10a74b(0x393)]['id']&&_0x3677e1['params'][_0x10a74b(0x401)]===this[_0x10a74b(0x3bf)]){const _0x3e6e43=_0x3677e1[_0x10a74b(0x161)];this[_0x10a74b(0x3b7)](_0x3e6e43[_0x10a74b(0x382)],_0x3e6e43[_0x10a74b(0x2ff)][0x0]);}})));}[_0xa5554e(0x297)](_0x56ac8a){const _0x101fd8=_0xa5554e;var _0x58a47d,_0x58516d;const {memberID:_0x18b708,selection:_0x11eec6}=_0x56ac8a['data'],{sheetName:_0x2085fb,range:_0x1e5afd}=B['deserializeRangeWithSheet'](_0x11eec6),_0x212eb1={'name':(_0x58516d=(_0x58a47d=this['_memberService']['getMember'](this[_0x101fd8(0x3bf)],_0x18b708))==null?void 0x0:_0x58a47d['name'])!=null?_0x58516d:_0x101fd8(0x1d1),'range':this['_getMergeRange'](_0x2085fb,_0x1e5afd),'sheetID':_0x2085fb,'color':this[_0x101fd8(0x353)]['assignAColorForMemberID'](_0x18b708),'selection':_0x11eec6},_0x311a43=this[_0x101fd8(0x21f)];_0x311a43[_0x101fd8(0x2eb)](_0x18b708,_0x212eb1),this['_cursorInfo$']['next'](_0x311a43);}[_0xa5554e(0x229)](_0x4107c0){const _0x553060=_0xa5554e,{memberID:_0x1cf041}=_0x4107c0[_0x553060(0x3ad)],_0x4f5cc7=this[_0x553060(0x21f)];_0x4f5cc7[_0x553060(0x18a)](_0x1cf041),this[_0x553060(0x299)][_0x553060(0x3d5)](_0x4f5cc7);}[_0xa5554e(0x220)](_0x1e34b0,_0x48bc6f){const _0x3c53db=_0xa5554e;var _0x54ff58,_0xf5af62;const _0x32badc=(_0xf5af62=(_0x54ff58=this[_0x3c53db(0x2b3)][_0x3c53db(0x311)](this[_0x3c53db(0x3bf)]))==null?void 0x0:_0x54ff58[_0x3c53db(0x404)](_0x1e34b0))==null?void 0x0:_0xf5af62[_0x3c53db(0x331)]();return(_0x32badc==null?void 0x0:_0x32badc[_0x3c53db(0x276)](_0x182f1a=>a[_0x3c53db(0x3c4)][_0x3c53db(0x203)](_0x182f1a,_0x48bc6f)))||_0x48bc6f;}['_onRefRangeChange'](){const _0x1f2093=_0xa5554e,_0x29d4de=new a[(_0x1f2093(0x2d6))](),_0xcee823=Et(),_0x38502d=()=>{const _0x59f7cf=_0x1f2093;_0x29d4de['dispose']();const _0x18db76=(_0x240ef3,_0xa3434b,_0x384a66,_0x4379f1)=>{const _0x3ffbfc=_0x3f8c;let _0x3e2ee4=[];switch(_0x240ef3['id']){case v['EffectRefRangId'][_0x3ffbfc(0x268)]:{_0x3e2ee4=v['handleDeleteRangeMoveLeft'](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x1f0)]:{_0x3e2ee4=v[_0x3ffbfc(0x175)](_0x240ef3,_0x4379f1);break;}case v['EffectRefRangId'][_0x3ffbfc(0x2d8)]:{_0x3e2ee4=v[_0x3ffbfc(0x241)](_0x240ef3,_0x4379f1);break;}case v['EffectRefRangId'][_0x3ffbfc(0x222)]:{_0x3e2ee4=v[_0x3ffbfc(0x2cd)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)]['InsertRangeMoveRightCommandId']:{_0x3e2ee4=v[_0x3ffbfc(0x275)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x3f8)]:{_0x3e2ee4=v[_0x3ffbfc(0x22c)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)]['MoveRangeCommandId']:{_0x3e2ee4=v[_0x3ffbfc(0x2df)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x3ce)]:{_0x3e2ee4=v[_0x3ffbfc(0x371)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x1f7)]:{_0x3e2ee4=v['handleIRemoveRow'](_0x240ef3,_0x4379f1);break;}}const _0xa22c4e=v[_0x3ffbfc(0x2aa)](_0x3e2ee4,_0x4379f1),_0x173911=this[_0x3ffbfc(0x21f)][_0x3ffbfc(0x23e)](_0xa3434b);if(_0x173911&&_0xa22c4e){const _0x17b6f3={..._0x173911,'range':_0xa22c4e};this[_0x3ffbfc(0x21f)][_0x3ffbfc(0x2eb)](_0xa3434b,_0x17b6f3),_0xcee823(()=>{const _0x2cc8c6=_0x3ffbfc,_0x3165ac=this[_0x2cc8c6(0x2b2)][_0x2cc8c6(0x1dc)](_0xa22c4e,_0x5ae9ff=>(_0x3165ac[_0x2cc8c6(0x336)](),_0x18db76(_0x5ae9ff,_0xa3434b,_0x384a66,_0xa22c4e)));_0x29d4de[_0x2cc8c6(0x235)](_0x3165ac);});}return{'redos':[],'undos':[]};};this[_0x59f7cf(0x21f)][_0x59f7cf(0x338)]((_0x314def,_0x34b1c3)=>{const _0x41255a=_0x59f7cf,{range:_0x581adc,sheetID:_0x397c0b}=_0x314def,_0x1e5824=this[_0x41255a(0x2b2)][_0x41255a(0x1dc)](_0x581adc,_0x34d0a3=>(_0x1e5824['dispose'](),_0x18db76(_0x34d0a3,_0x34b1c3,_0x397c0b,_0x581adc)));_0x29d4de[_0x41255a(0x235)](_0x1e5824);});};this[_0x1f2093(0x1c2)](a[_0x1f2093(0x2f4)](this[_0x1f2093(0x299)][_0x1f2093(0x3cb)](()=>{_0x38502d();})));}['_toggleOnline'](){const _0xc873e5=_0xa5554e;var _0x2e9f9c,_0x1fcf8b;if(this[_0xc873e5(0x215)]=!0x0,((_0x2e9f9c=this[_0xc873e5(0x2b3)][_0xc873e5(0x2ec)]())==null?void 0x0:_0x2e9f9c['getUnitId']())!==this[_0xc873e5(0x3bf)])return;const _0x50fef9=(_0x1fcf8b=this['_injector'][_0xc873e5(0x23e)](v[_0xc873e5(0x16a)])[_0xc873e5(0x1b7)]())==null?void 0x0:_0x1fcf8b[0x0],_0x4fba4a=this[_0xc873e5(0x2b3)][_0xc873e5(0x2e9)](a['UniverInstanceType'][_0xc873e5(0x2c9)])[_0xc873e5(0x36c)]();_0x50fef9&&_0x4fba4a&&this[_0xc873e5(0x3b7)](_0x4fba4a[_0xc873e5(0x1b2)](),_0x50fef9);}[_0xa5554e(0x1ef)](){const _0x50f745=_0xa5554e;this[_0x50f745(0x215)]=!0x1;}};ve=mt([y(0x2,a[_0xa5554e(0x212)](a[_0xa5554e(0x36a)])),y(0x3,a[_0xa5554e(0x212)](Oe)),y(0x4,a[_0xa5554e(0x212)](u['MemberService'])),y(0x5,a['IUniverInstanceService']),y(0x6,a[_0xa5554e(0x38d)]),y(0x7,a[_0xa5554e(0x212)](v[_0xa5554e(0x217)]))],ve);var Ct=Object[_0xa5554e(0x1fa)],pt=(_0x4be9fc,_0x60a94c,_0x59caad,_0x428f98)=>{const _0x3639be=_0xa5554e;for(var _0x2ea83a=_0x428f98>0x1?void 0x0:_0x428f98?Ct(_0x60a94c,_0x59caad):_0x60a94c,_0xf0c36a=_0x4be9fc[_0x3639be(0x322)]-0x1,_0x442b58;_0xf0c36a>=0x0;_0xf0c36a--)(_0x442b58=_0x4be9fc[_0xf0c36a])&&(_0x2ea83a=_0x442b58(_0x2ea83a)||_0x2ea83a);return _0x2ea83a;},ae=(_0x1f76fa,_0x5c984a)=>(_0x4e4fd0,_0x5d589)=>_0x5c984a(_0x4e4fd0,_0x5d589,_0x1f76fa);let F=class extends a[_0xa5554e(0x264)]{constructor(_0x33c6b2,_0x5835b4,_0x597f5f){const _0x28aa65=_0xa5554e;super(),_(this,'_entities',new Map()),_(this,_0x28aa65(0x219),new I['Subject']()),(this[_0x28aa65(0x2b3)]=_0x33c6b2,this[_0x28aa65(0x2c1)]=_0x5835b4,this['_collabSessionService']=_0x597f5f,this[_0x28aa65(0x269)]());}[_0xa5554e(0x336)](){const _0x568b07=_0xa5554e;super[_0x568b07(0x336)](),this[_0x568b07(0x219)]['complete'](),this[_0x568b07(0x370)][_0x568b07(0x338)](_0x28098a=>_0x28098a[_0x568b07(0x336)]());}[_0xa5554e(0x2fb)](_0x47c532){const _0x305282=_0xa5554e;return this[_0x305282(0x370)][_0x305282(0x2c8)](_0x47c532)?this['_entities'][_0x305282(0x23e)](_0x47c532)[_0x305282(0x30f)]:this[_0x305282(0x219)]['pipe'](I[_0x305282(0x2e8)](_0x25bc6b=>_0x25bc6b[_0x305282(0x3bf)]===_0x47c532),I[_0x305282(0x2e1)](_0x2270c1=>_0x2270c1[_0x305282(0x30f)]));}[_0xa5554e(0x269)](){const _0x8ec5e9=_0xa5554e;this[_0x8ec5e9(0x2b3)][_0x8ec5e9(0x2c4)](a[_0x8ec5e9(0x1a1)][_0x8ec5e9(0x2c9)])[_0x8ec5e9(0x2be)](I[_0x8ec5e9(0x2a6)](this[_0x8ec5e9(0x197)]))[_0x8ec5e9(0x3cb)](async _0x47549c=>{const _0x4523ff=_0x8ec5e9,_0x1e714a=_0x47549c['getUnitId'](),_0x16e82f=await this[_0x4523ff(0x3b9)](_0x1e714a);this[_0x4523ff(0x219)]['next'](_0x16e82f),this[_0x4523ff(0x370)][_0x4523ff(0x2eb)](_0x1e714a,_0x16e82f);}),this[_0x8ec5e9(0x2b3)][_0x8ec5e9(0x2c4)](a[_0x8ec5e9(0x1a1)]['UNIVER_DOC'])[_0x8ec5e9(0x2be)](I[_0x8ec5e9(0x2a6)](this['dispose$']))['pipe'](I[_0x8ec5e9(0x2e8)](_0x26d43c=>!_0x26d43c[_0x8ec5e9(0x2bb)]()[_0x8ec5e9(0x3a2)]('__')))[_0x8ec5e9(0x3cb)](async _0x19a59a=>{const _0x5e78f2=_0x8ec5e9,_0x3f5023=_0x19a59a[_0x5e78f2(0x2bb)](),_0x3bcbb9=await this[_0x5e78f2(0x206)](_0x3f5023);this[_0x5e78f2(0x219)]['next'](_0x3bcbb9),this[_0x5e78f2(0x370)][_0x5e78f2(0x2eb)](_0x3f5023,_0x3bcbb9);}),I[_0x8ec5e9(0x25b)](this[_0x8ec5e9(0x2b3)][_0x8ec5e9(0x2a2)](a[_0x8ec5e9(0x1a1)][_0x8ec5e9(0x3fb)]),this['_univerInstanceService'][_0x8ec5e9(0x2a2)](a[_0x8ec5e9(0x1a1)][_0x8ec5e9(0x2c9)]))[_0x8ec5e9(0x2be)](I['takeUntil'](this['dispose$']))[_0x8ec5e9(0x3cb)](_0x79602=>{const _0x15ccee=_0x8ec5e9,_0x46d399=_0x79602[_0x15ccee(0x2bb)](),_0x5d0920=this[_0x15ccee(0x370)][_0x15ccee(0x23e)](_0x46d399);_0x5d0920&&(_0x5d0920[_0x15ccee(0x336)](),this[_0x15ccee(0x370)][_0x15ccee(0x18a)](_0x46d399));});}async[_0xa5554e(0x3b9)](_0x17aa6b){const _0xccff93=_0xa5554e,_0x301cd6=await this[_0xccff93(0x1fd)][_0xccff93(0x20e)](_0x17aa6b),_0x2fbc21=this[_0xccff93(0x2c1)][_0xccff93(0x3c0)](ve,_0x17aa6b,_0x301cd6);return _0x2fbc21['init'](),_0x2fbc21;}async[_0xa5554e(0x206)](_0x524c67){const _0x421623=_0xa5554e,_0x357dff=await this[_0x421623(0x1fd)][_0x421623(0x20e)](_0x524c67),_0x4e1c9d=this[_0x421623(0x2c1)]['createInstance'](me,_0x524c67,_0x357dff);return _0x4e1c9d['init'](),_0x4e1c9d;}};function _0x3f8c(_0x6a7c06,_0x20a590){const _0x3a8200=_0x3a82();return _0x3f8c=function(_0x3f8c81,_0x502256){_0x3f8c81=_0x3f8c81-0x154;let _0xddb32c=_0x3a8200[_0x3f8c81];return _0xddb32c;},_0x3f8c(_0x6a7c06,_0x20a590);}F=pt([ae(0x0,a[_0xa5554e(0x204)]),ae(0x1,a['Inject'](a['Injector'])),ae(0x2,a[_0xa5554e(0x212)](u[_0xa5554e(0x39a)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x4795c7,_0x2a998e){const _0x416398=_0xa5554e;let {radius:_0x5b1619,width:_0x3b9eaf,height:_0x42376a}=_0x2a998e;_0x5b1619=_0x5b1619!=null?_0x5b1619:0x0,_0x3b9eaf=_0x3b9eaf!=null?_0x3b9eaf:0x1e,_0x42376a=_0x42376a!=null?_0x42376a:0x1e;let _0x40be84=0x0,_0x445f52=0x0,_0x1446d6=0x0;_0x40be84=_0x445f52=_0x1446d6=Math['min'](_0x5b1619,_0x3b9eaf/0x2,_0x42376a/0x2),_0x4795c7[_0x416398(0x362)](),_0x4795c7[_0x416398(0x385)](_0x40be84,0x0),_0x4795c7[_0x416398(0x38a)](_0x3b9eaf-_0x445f52,0x0),_0x4795c7[_0x416398(0x20d)](_0x3b9eaf-_0x445f52,_0x445f52,_0x445f52,Math['PI']*0x3/0x2,0x0,!0x1),_0x4795c7[_0x416398(0x38a)](_0x3b9eaf,_0x42376a-_0x1446d6),_0x4795c7[_0x416398(0x20d)](_0x3b9eaf-_0x1446d6,_0x42376a-_0x1446d6,_0x1446d6,0x0,Math['PI']/0x2,!0x1),_0x4795c7[_0x416398(0x38a)](0x0,_0x42376a),_0x4795c7[_0x416398(0x38a)](0x0,_0x40be84),_0x4795c7[_0x416398(0x20d)](_0x40be84,_0x40be84,_0x40be84,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4795c7['closePath'](),_0x2a998e[_0x416398(0x2bf)]&&(_0x4795c7[_0x416398(0x394)](),_0x4795c7[_0x416398(0x3a8)]=_0x2a998e[_0x416398(0x2bf)],_0x2a998e['fillRule']===_0x416398(0x1c4)?_0x4795c7[_0x416398(0x2bf)](_0x416398(0x1c4)):_0x4795c7[_0x416398(0x2bf)](),_0x4795c7[_0x416398(0x37a)]());}class ne extends C[_0xa5554e(0x3c7)]{constructor(_0x555dc5,_0x545b4d){const _0x83bc17=_0xa5554e;super(_0x555dc5,_0x545b4d),_(this,_0x83bc17(0x3df)),_(this,_0x83bc17(0x319)),(this['color']=_0x545b4d==null?void 0x0:_0x545b4d[_0x83bc17(0x3df)],this[_0x83bc17(0x319)]=_0x545b4d==null?void 0x0:_0x545b4d[_0x83bc17(0x319)]);}static['drawWith'](_0x4fc2fc,_0x5e629d){const _0x4ba300=_0xa5554e,{text:_0x3f0aaf,color:_0x221619}=_0x5e629d;_0x4fc2fc[_0x4ba300(0x394)](),_0x4fc2fc[_0x4ba300(0x1ea)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x9f192e=_0x4fc2fc['measureText'](_0x3f0aaf)[_0x4ba300(0x1cc)],_0xf71ebd=Math['min'](_0x9f192e+0x2*ce,Ne);Ot(_0x4fc2fc,{'height':K,'radius':0x4,'width':_0xf71ebd,'fill':_0x221619}),_0x4fc2fc[_0x4ba300(0x3a8)]=_0x4ba300(0x242);const _0x3af96b=ce,_0x74af89=K-Tt,_0x34c0ef=Ne-0x2*ce;if(_0x9f192e>_0x34c0ef){let _0x57a35e='',_0x269600=0x0;for(const _0x2e9603 of _0x3f0aaf){const _0x551974=_0x4fc2fc[_0x4ba300(0x27c)](_0x2e9603)[_0x4ba300(0x1cc)];if(_0x269600+_0x551974<=_0x34c0ef-_0x4fc2fc['measureText'](_0x4ba300(0x29b))[_0x4ba300(0x1cc)])_0x57a35e+=_0x2e9603,_0x269600+=_0x551974;else{_0x57a35e+='...';break;}}_0x4fc2fc[_0x4ba300(0x3c6)](_0x57a35e,_0x3af96b,_0x74af89);}else _0x4fc2fc[_0x4ba300(0x3c6)](_0x3f0aaf,_0x3af96b,_0x74af89);_0x4fc2fc[_0x4ba300(0x37a)]();}[_0xa5554e(0x23b)](_0x1ed9f0){const _0x260a30=_0xa5554e;ne[_0x260a30(0x3e5)](_0x1ed9f0,this);}}const le=_0xa5554e(0x230),Rt=_0xa5554e(0x3a3),bt='collab-rect-range-',H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0xa5554e(0x1fc);class Ue{constructor(_0x2fb6b8,_0x485a63,_0x59c7cf,_0x1c20e3){const _0x40c2a2=_0xa5554e;_(this,_0x40c2a2(0x26c),[]),_(this,_0x40c2a2(0x273),null),_(this,'_textBubble',null),_(this,_0x40c2a2(0x369),null),_(this,_0x40c2a2(0x3c5),null),_(this,_0x40c2a2(0x290),null),(this[_0x40c2a2(0x3a0)]=_0x2fb6b8,this['_scene']=_0x485a63,this[_0x40c2a2(0x1ed)]=_0x59c7cf,this[_0x40c2a2(0x1c7)]=_0x1c20e3,this[_0x40c2a2(0x2e0)]());}set[_0xa5554e(0x398)](_0x3ddd76){const _0x1ed7f5=_0xa5554e;_0x3ddd76?(this[_0x1ed7f5(0x369)]&&this['_anchorDot'][_0x1ed7f5(0x3ae)](),this[_0x1ed7f5(0x315)]&&this['_textBubble'][_0x1ed7f5(0x383)]()):(this[_0x1ed7f5(0x369)]&&this['_anchorDot'][_0x1ed7f5(0x383)](),this['_textBubble']&&this['_textBubble'][_0x1ed7f5(0x3ae)]());}['dispose'](){const _0x45b346=_0xa5554e;for(const _0x442db9 of this[_0x45b346(0x26c)])_0x442db9['dispose']();this['_textBubble']&&this[_0x45b346(0x315)][_0x45b346(0x336)](),this['_anchorDot']&&this[_0x45b346(0x369)][_0x45b346(0x336)](),this[_0x45b346(0x273)]&&this[_0x45b346(0x273)][_0x45b346(0x336)](),this[_0x45b346(0x290)]&&this[_0x45b346(0x290)]();}[_0xa5554e(0x2e0)](){const _0x1a4da9=_0xa5554e;var _0x3841c8;const {_docSkeleton:_0x1e4d59,_document:_0x108712}=this,{color:_0x3e15ec,name:_0x2134bd,ranges:_0xc666f2}=this[_0x1a4da9(0x3a0)],_0x4638d5=_0x108712[_0x1a4da9(0x365)](),{docsLeft:_0x46571e,docsTop:_0x2f35df}=_0x4638d5,_0x5d46ed=new p['NodePositionConvertToCursor'](_0x4638d5,_0x1e4d59);for(const {startOffset:_0x3489b7,endOffset:_0x59073d,rangeType:_0x498fb6,segmentId:_0x12be91,segmentPage:_0x4675e1,collapsed:_0x2ef8c5,isActive:_0x84cf90}of _0xc666f2){const _0x2c8d44=_0x1e4d59[_0x1a4da9(0x1c0)](_0x3489b7,!0x0,_0x12be91,_0x4675e1);let _0x211e90=_0x1e4d59[_0x1a4da9(0x1c0)](_0x59073d,!0x0,_0x12be91,_0x4675e1);if(_0x211e90==null&&(_0x211e90=_0x1e4d59[_0x1a4da9(0x1c0)](_0x59073d-0x1,!0x1,_0x12be91,_0x4675e1)),_0x84cf90){const {contentBoxPointGroup:_0x17deec}=_0x5d46ed[_0x1a4da9(0x2fd)](_0x211e90,_0x211e90);if(_0x17deec[_0x1a4da9(0x322)]===0x0)continue;this[_0x1a4da9(0x21e)](_0x3e15ec,_0x17deec,_0x46571e,_0x2f35df,_0x2134bd),this[_0x1a4da9(0x290)]=this['_handleHover']();}if(_0x2c8d44&&_0x211e90){if(_0x498fb6===a[_0x1a4da9(0x34b)][_0x1a4da9(0x213)]){const _0x2dfce6=new p['NodePositionConvertToRectRange'](_0x4638d5,_0x1e4d59),{pointGroup:_0x1b87e2}=(_0x3841c8=_0x2dfce6[_0x1a4da9(0x2fd)](_0x2c8d44,_0x211e90))!=null?_0x3841c8:{};if(_0x1b87e2==null||_0x1b87e2['length']===0x0)continue;this['_drawRectRange'](_0x3e15ec,_0x1b87e2,_0x46571e,_0x2f35df);}else{if(!_0x2ef8c5){const {borderBoxPointGroup:_0x2c6d8e}=_0x5d46ed[_0x1a4da9(0x2fd)](_0x2c8d44,_0x211e90);if(_0x2c6d8e[_0x1a4da9(0x322)]===0x0)continue;this['_drawTextRange'](_0x3e15ec,_0x2c6d8e,_0x46571e,_0x2f35df);}}}}}[_0xa5554e(0x21e)](_0x17961d,_0x30538f,_0xc7c4ac,_0x10230e,_0x2944a5){const _0x215a4c=_0xa5554e,_0xcc28f=this[_0x215a4c(0x320)](_0x30538f),{left:_0x1b2f6f,top:_0x271f49,height:_0x3e30ef}=_0xcc28f,_0x3a2474=this['_getScale'](),_0x2c8e35=Nt/_0x3a2474,_0x3ab39e=new C['Rect'](le+a['generateRandomId'](H),{'left':_0x1b2f6f+_0xc7c4ac-_0x2c8e35,'top':_0x271f49+_0x10230e,'height':_0x3e30ef,'width':Dt,'fill':_0x17961d||C[_0x215a4c(0x21b)](a[_0x215a4c(0x3db)][_0x215a4c(0x1d7)],0x0),'strokeWidth':_0x2c8e35,'stroke':Ut,'evented':!0x0});this[_0x215a4c(0x273)]=_0x3ab39e,this[_0x215a4c(0x34f)][_0x215a4c(0x3ef)](_0x3ab39e,p[_0x215a4c(0x38e)]);const _0x11ab26=new C['Rect'](le+a[_0x215a4c(0x174)](H),{'left':_0x1b2f6f+_0xc7c4ac-_0x2c8e35,'top':_0x271f49+_0x10230e-_e/0x2,'height':_e,'width':_e,'fill':_0x17961d||C['getColor'](a['COLORS'][_0x215a4c(0x1d7)],0x0),'strokeWidth':0x0,'stroke':_0x17961d||C[_0x215a4c(0x21b)](a[_0x215a4c(0x3db)]['black'],0x0),'evented':!0x1});this[_0x215a4c(0x369)]=_0x11ab26,this[_0x215a4c(0x34f)][_0x215a4c(0x3ef)](_0x11ab26,p[_0x215a4c(0x38e)]);const _0x724555=new ne(le+a[_0x215a4c(0x174)](H),{'left':_0x1b2f6f+_0xc7c4ac-_0x2c8e35,'top':_0x271f49+_0x10230e-K,'text':_0x2944a5,'color':_0x17961d});this[_0x215a4c(0x315)]=_0x724555,this[_0x215a4c(0x34f)][_0x215a4c(0x3ef)](_0x724555,p['TEXT_RANGE_LAYER_INDEX']),this[_0x215a4c(0x398)]=!0x1;}[_0xa5554e(0x248)](){const _0x8337f6=_0xa5554e,_0x4a883c=this[_0x8337f6(0x273)][_0x8337f6(0x1f5)]['subscribeEvent'](()=>{const _0x566028=_0x8337f6;this[_0x566028(0x398)]=!0x0;}),_0x13619e=this[_0x8337f6(0x273)][_0x8337f6(0x334)][_0x8337f6(0x3ff)](()=>{const _0x36f245=_0x8337f6;this[_0x36f245(0x3c5)]&&clearTimeout(this['_hideTimer']),this[_0x36f245(0x3c5)]=setTimeout(()=>{const _0x11eb60=_0x36f245;this[_0x11eb60(0x398)]=!0x1;},0x7d0);});return()=>{const _0x50fcc5=_0x8337f6;_0x4a883c['unsubscribe'](),_0x13619e[_0x50fcc5(0x251)]();};}[_0xa5554e(0x342)](_0x174115,_0x4a1038,_0x28bc4b,_0x31b95c){const _0x304b5e=_0xa5554e,_0x1a8e67=new a[(_0x304b5e(0x233))](_0x174115)[_0x304b5e(0x2fa)](0.2)['toRgbString'](),_0x1c7eab=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x4a1038,'fill':_0x1a8e67||C[_0x304b5e(0x21b)](a[_0x304b5e(0x3db)][_0x304b5e(0x1d7)],0.2),'left':_0x28bc4b,'top':_0x31b95c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x304b5e(0x26c)][_0x304b5e(0x3a6)](_0x1c7eab),this[_0x304b5e(0x34f)]['addObject'](_0x1c7eab,p[_0x304b5e(0x38e)]);}[_0xa5554e(0x255)](_0x2041e7,_0x2d830f,_0x1738e2,_0x4edd69){const _0x63fa63=_0xa5554e,_0x365a6c=new a[(_0x63fa63(0x233))](_0x2041e7)[_0x63fa63(0x2fa)](0.2)[_0x63fa63(0x2a8)](),_0x50799d=new C[(_0x63fa63(0x15d))](bt+a[_0x63fa63(0x174)](H),{'pointsGroup':_0x2d830f,'fill':_0x365a6c||C[_0x63fa63(0x21b)](a['COLORS']['black'],0.2),'left':_0x1738e2,'top':_0x4edd69,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x63fa63(0x3a6)](_0x50799d),this[_0x63fa63(0x34f)][_0x63fa63(0x3ef)](_0x50799d,p[_0x63fa63(0x38e)]);}[_0xa5554e(0x320)](_0x5f1ae0){const _0x159421=_0x5f1ae0[0x0],_0x373528=_0x159421[0x0],_0x4ad1a1=_0x159421[0x2],{x:_0x43d047,y:_0x54f561}=_0x373528,{x:_0x1c57a6,y:_0x2fa1f6}=_0x4ad1a1;return{'left':_0x43d047,'top':_0x54f561,'width':_0x1c57a6-_0x43d047,'height':_0x2fa1f6-_0x54f561};}[_0xa5554e(0x1ac)](){const _0x169c0f=_0xa5554e,{scaleX:_0x479455,scaleY:_0x543af5}=this[_0x169c0f(0x34f)][_0x169c0f(0x2d0)]();return Math['max'](_0x479455,_0x543af5);}}var Lt=Object[_0xa5554e(0x1fa)],Mt=(_0x52e7df,_0x57e7ac,_0x14f5ae,_0xd433d8)=>{const _0x529360=_0xa5554e;for(var _0x25c09f=_0xd433d8>0x1?void 0x0:_0xd433d8?Lt(_0x57e7ac,_0x14f5ae):_0x57e7ac,_0x1ecbd7=_0x52e7df[_0x529360(0x322)]-0x1,_0x252c45;_0x1ecbd7>=0x0;_0x1ecbd7--)(_0x252c45=_0x52e7df[_0x1ecbd7])&&(_0x25c09f=_0x252c45(_0x25c09f)||_0x25c09f);return _0x25c09f;},z=(_0x4fe266,_0x428887)=>(_0x5e77a9,_0x2093d5)=>_0x428887(_0x5e77a9,_0x2093d5,_0x4fe266);let ge=class extends a[_0xa5554e(0x264)]{constructor(_0x180c36,_0x461211,_0x57b70d,_0x4b09ac,_0x14e3a9){const _0x5a97f3=_0xa5554e;super(),_(this,'_cursorShapes',[]),_(this,_0x5a97f3(0x238),[]),(this[_0x5a97f3(0x358)]=_0x180c36,this['_docSkeletonManagerService']=_0x461211,this[_0x5a97f3(0x2b9)]=_0x57b70d,this[_0x5a97f3(0x2a7)]=_0x4b09ac,this[_0x5a97f3(0x406)]=_0x14e3a9,this['_init']());}[_0xa5554e(0x269)](){const _0x487ad9=_0xa5554e,_0x1af5af=this['_context'][_0x487ad9(0x401)],_0x1e874d=this[_0x487ad9(0x307)];this['disposeWithMe'](I[_0x487ad9(0x1ff)]([this[_0x487ad9(0x2b9)]['getCollabCursors$'](_0x1af5af),this[_0x487ad9(0x406)][_0x487ad9(0x177)]])[_0x487ad9(0x2be)]($[_0x487ad9(0x324)](([_0x2bceb4,_0x266594])=>({'skeleton':_0x1e874d[_0x487ad9(0x39e)](),'cursors':[..._0x2bceb4[_0x487ad9(0x344)]()][_0x487ad9(0x400)](_0x427d0e=>({..._0x427d0e,'color':this[_0x487ad9(0x406)][_0x487ad9(0x1c1)](_0x427d0e[_0x487ad9(0x3df)])}))})))[_0x487ad9(0x3cb)](_0x20388b=>{const _0x5b02f6=_0x487ad9;if(this['_removeCollabCursors'](),_0x20388b){const {skeleton:_0x4db7cf,cursors:_0x28fa1a}=_0x20388b;this[_0x5b02f6(0x1b4)](_0x4db7cf,_0x28fa1a);}})),this[_0x487ad9(0x3f2)](),this['_initCommandExecutedListener']();}[_0xa5554e(0x1b4)](_0x4b6bd4,_0x49ccea){const _0x53b476=_0xa5554e,{scene:_0x4da12f,mainComponent:_0x178c1c}=this['_context'],_0xdf44f8=_0x49ccea['map'](_0x189cfa=>new Ue(_0x189cfa,_0x4da12f,_0x4b6bd4,_0x178c1c));this['_cursorShapes']=_0xdf44f8,this[_0x53b476(0x238)]=_0x49ccea;}['_refreshCollabCursors'](){const _0x549d3c=_0xa5554e;this[_0x549d3c(0x1c3)]();const {scene:_0x4108cc,mainComponent:_0x99fa47}=this[_0x549d3c(0x358)],_0x5ccb28=this['_docSkeletonManagerService'][_0x549d3c(0x39e)](),_0x2adac9=this['_cursors']['map'](_0x4cdf4a=>new Ue(_0x4cdf4a,_0x4108cc,_0x5ccb28,_0x99fa47));this[_0x549d3c(0x2d2)]=_0x2adac9;}[_0xa5554e(0x1c3)](){const _0x5e2f85=_0xa5554e;this['_cursorShapes'][_0x5e2f85(0x338)](_0x5c830f=>_0x5c830f[_0x5e2f85(0x336)]()),this[_0x5e2f85(0x2d2)]=[];}['_initCommandExecutedListener'](){const _0x360476=_0xa5554e,_0x369fe3=[p[_0x360476(0x2e5)]['id']];this[_0x360476(0x1c2)](this['_commandService']['onCommandExecuted'](_0x2b00fe=>{const _0x48d564=_0x360476;_0x369fe3[_0x48d564(0x198)](_0x2b00fe['id'])&&_0x2b00fe[_0x48d564(0x161)][_0x48d564(0x401)]===this[_0x48d564(0x358)][_0x48d564(0x401)]&&this['_refreshCollabCursors']();}));}[_0xa5554e(0x3f2)](){const _0x47fe94=_0xa5554e;this[_0x47fe94(0x1c2)](a[_0x47fe94(0x1f4)](this[_0x47fe94(0x358)][_0x47fe94(0x2b5)][_0x47fe94(0x287)])['pipe']($[_0x47fe94(0x2e8)](_0x5698b6=>_0x5698b6['type']===C[_0x47fe94(0x3cc)]['resize']),$['throttleTime'](0x10))[_0x47fe94(0x3cb)](()=>{const _0x5c9f90=_0x47fe94;this[_0x5c9f90(0x36d)]();}));}};ge=Mt([z(0x1,a[_0xa5554e(0x212)](V[_0xa5554e(0x16f)])),z(0x2,a[_0xa5554e(0x212)](F)),z(0x3,a['ICommandService']),z(0x4,a[_0xa5554e(0x212)](a[_0xa5554e(0x22a)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0xa5554e(0x3c7)]{constructor(_0x1f3d5b,_0x3b2f35){const _0x2f0ba7=_0xa5554e;super(_0x1f3d5b,_0x3b2f35),_(this,_0x2f0ba7(0x3ed)),_(this,'_hovered',!0x1),_(this,_0x2f0ba7(0x167)),_(this,'_name',''),_(this,'_labelPosition',_0x2f0ba7(0x1d0)),_(this,_0x2f0ba7(0x3f4)),(_0x3b2f35&&this['setShapeProps'](_0x3b2f35),this[_0x2f0ba7(0x1f5)][_0x2f0ba7(0x3ff)](()=>this[_0x2f0ba7(0x183)]({'hovered':!0x0})),this[_0x2f0ba7(0x334)][_0x2f0ba7(0x3ff)](()=>this[_0x2f0ba7(0x183)]({'hovered':!0x1})));}[_0xa5554e(0x183)](_0x1866fb){const _0x28df01=_0xa5554e;var _0x467ca9,_0x4ceaa7,_0x35a566,_0x598f9a,_0x57949f,_0x12d345;this['_color']=(_0x467ca9=_0x1866fb[_0x28df01(0x3df)])!=null?_0x467ca9:this['_color'],this[_0x28df01(0x38f)]=(_0x4ceaa7=_0x1866fb[_0x28df01(0x2c0)])!=null?_0x4ceaa7:this[_0x28df01(0x38f)],this[_0x28df01(0x167)]=(_0x35a566=_0x1866fb[_0x28df01(0x3bb)])!=null?_0x35a566:this['_range'],this[_0x28df01(0x1e2)]=(_0x598f9a=_0x1866fb[_0x28df01(0x388)])!=null?_0x598f9a:this[_0x28df01(0x1e2)],this['_labelPosition']=(_0x57949f=_0x1866fb['labelPosition'])!=null?_0x57949f:this[_0x28df01(0x1ee)],this[_0x28df01(0x3f4)]=(_0x12d345=_0x1866fb[_0x28df01(0x208)])!=null?_0x12d345:this[_0x28df01(0x3f4)],this[_0x28df01(0x2ae)]({'width':_0x1866fb['width'],'height':_0x1866fb[_0x28df01(0x1b6)]});}['onMouseMove'](_0x13ba36){const _0x5e5408=_0xa5554e,{row:_0x543b4a,column:_0x15e782}=_0x13ba36;if(_0x543b4a>=this[_0x5e5408(0x167)][_0x5e5408(0x19d)]&&_0x543b4a<=this['_range'][_0x5e5408(0x186)]&&_0x15e782>=this[_0x5e5408(0x167)][_0x5e5408(0x3a7)]&&_0x15e782<=this[_0x5e5408(0x167)][_0x5e5408(0x240)]){this[_0x5e5408(0x183)]({'hovered':!0x0});return;}this[_0x5e5408(0x183)]({'hovered':!0x1});}['triggerDblclick'](_0x20238a){return!0x1;}['_draw'](_0x1d5039){const _0x30416c=_0xa5554e;C[_0x30416c(0x2ab)][_0x30416c(0x3e5)](_0x1d5039,{'width':this[_0x30416c(0x1cc)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x30416c(0x3ed)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x30416c(0x38f)]&&(_0x1d5039['save'](),_0x1d5039[_0x30416c(0x1d3)](0x1,0x0,0x0,0x1,this['width'],this[_0x30416c(0x1ee)]===_0x30416c(0x323)?0x0:-K),ne[_0x30416c(0x3e5)](_0x1d5039,{'text':this['_name'],'color':this[_0x30416c(0x3ed)]}),_0x1d5039['restore']());}}var wt=Object[_0xa5554e(0x1fa)],yt=(_0x507366,_0x1c3a7c,_0x2f9c5b,_0x3b10f1)=>{const _0x28c00f=_0xa5554e;for(var _0x2438b3=_0x3b10f1>0x1?void 0x0:_0x3b10f1?wt(_0x1c3a7c,_0x2f9c5b):_0x1c3a7c,_0x5da9ca=_0x507366[_0x28c00f(0x322)]-0x1,_0x29c594;_0x5da9ca>=0x0;_0x5da9ca--)(_0x29c594=_0x507366[_0x5da9ca])&&(_0x2438b3=_0x29c594(_0x2438b3)||_0x2438b3);return _0x2438b3;},he=(_0x66b85e,_0x478b74)=>(_0x257432,_0x3d8c98)=>_0x478b74(_0x257432,_0x3d8c98,_0x66b85e);const xt=0x1389;let Ee=class extends a[_0xa5554e(0x264)]{constructor(_0x3e0f6b,_0x24ff76,_0x1c7888,_0x5a93d2){const _0x4922e1=_0xa5554e;super(),_(this,_0x4922e1(0x238),new Set()),_(this,_0x4922e1(0x2af),null),(this[_0x4922e1(0x358)]=_0x3e0f6b,this[_0x4922e1(0x26a)]=_0x24ff76,this[_0x4922e1(0x2b9)]=_0x1c7888,this[_0x4922e1(0x406)]=_0x5a93d2,this[_0x4922e1(0x269)]());}[_0xa5554e(0x269)](){const _0x39a05f=_0xa5554e;this[_0x39a05f(0x26a)][_0x39a05f(0x2ba)][_0x39a05f(0x2be)]($[_0x39a05f(0x2a6)](this[_0x39a05f(0x197)]),$[_0x39a05f(0x2e1)](_0x450017=>{const _0x4c18e1=_0x39a05f;if(_0x450017){const _0x14f783=_0x450017['sheetId'];return I[_0x4c18e1(0x1ff)](this[_0x4c18e1(0x2b9)]['getCollabCursors$'](this[_0x4c18e1(0x358)]['unitId']),this[_0x4c18e1(0x406)][_0x4c18e1(0x177)])['pipe']($[_0x4c18e1(0x324)](([_0x311b4d,_0x2b3b4c])=>{const _0x470691=new Map();return _0x311b4d['forEach']((_0x38da1c,_0x5afe32)=>{const _0x119cc7=_0x3f8c;if(_0x38da1c['sheetID']===_0x14f783){const _0x14d56d={..._0x38da1c};_0x14d56d['color']=this[_0x119cc7(0x406)][_0x119cc7(0x1c1)](_0x38da1c[_0x119cc7(0x3df)]),_0x470691['set'](_0x5afe32,_0x14d56d);}}),{'skeleton':_0x450017,'cursors':_0x470691};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x39a05f(0x3cb)](({skeleton:_0x30f518,cursors:_0x4b9d85})=>{const _0x4c15a6=_0x39a05f;this[_0x4c15a6(0x1c3)](),_0x30f518&&this[_0x4c15a6(0x1b4)](_0x30f518,_0x4b9d85);}),this[_0x39a05f(0x26a)][_0x39a05f(0x2ba)][_0x39a05f(0x3cb)](_0x411c19=>{const _0xbe30ad=_0x39a05f;if(_0x411c19==null)return;const {skeleton:_0x28c8df}=_0x411c19,{scene:_0x325273}=this[_0xbe30ad(0x358)];_0x325273[_0xbe30ad(0x2ef)][_0xbe30ad(0x3ff)](a[_0xbe30ad(0x341)](_0x2dafee=>{const _0x14372f=_0xbe30ad;var _0x329e59,_0x555e22;const {offsetX:_0x3dbc71,offsetY:_0x2a2935}=_0x2dafee,{x:_0x540f49,y:_0x347864}=_0x325273[_0x14372f(0x27b)](C[_0x14372f(0x2f6)][_0x14372f(0x3fa)]([_0x3dbc71,_0x2a2935])),{scaleX:_0x22dea7,scaleY:_0x4a73d6}=_0x325273[_0x14372f(0x2d0)](),_0x58a960=_0x325273['getViewport'](C[_0x14372f(0x246)]['VIEW_MAIN']),_0x2b2c41=_0x325273[_0x14372f(0x2b7)](C[_0x14372f(0x2f6)][_0x14372f(0x3fa)]([_0x540f49,_0x347864]),_0x58a960),_0x3f34a3=_0x28c8df[_0x14372f(0x22d)](_0x3dbc71,_0x2a2935,_0x22dea7,_0x4a73d6,_0x2b2c41);((_0x329e59=this[_0x14372f(0x2af)])==null?void 0x0:_0x329e59['column'])===_0x3f34a3['column']&&((_0x555e22=this[_0x14372f(0x2af)])==null?void 0x0:_0x555e22[_0x14372f(0x24a)])===_0x3f34a3[_0x14372f(0x24a)]||this[_0x14372f(0x238)][_0x14372f(0x338)](_0x1b972d=>{const _0x4336d9=_0x14372f;_0x1b972d[_0x4336d9(0x26d)](_0x3f34a3);});},0x64));});}['_updateCollabCursors'](_0x16d87e,_0x4df555){const _0x4298c1=_0xa5554e;var _0xeb9d1e;const _0x59c030=(_0xeb9d1e=this[_0x4298c1(0x26a)]['getCurrent']())==null?void 0x0:_0xeb9d1e['skeleton'];if(!_0x59c030)return;const _0x466674=this[_0x4298c1(0x1ba)]();if(!_0x466674)return;this[_0x4298c1(0x238)][_0x4298c1(0x338)](_0x409a83=>{const _0x510dce=_0x4298c1;_0x409a83[_0x510dce(0x1e1)]();});const {scene:_0x1f61eb}=_0x466674,_0x108a6a=$t(Array[_0x4298c1(0x26b)](_0x4df555[_0x4298c1(0x344)]()))[_0x4298c1(0x324)](_0x5acde2=>{const _0x493555=_0x4298c1,{color:_0x786c87,range:_0x3bf5bf,name:_0x5f2b9d,selection:_0x1aad93,sheetID:_0x29ef85}=_0x5acde2,{startColumn:_0x3a1b9c,startRow:_0x5b2e02,endColumn:_0x25707d,endRow:_0x4521b4}=_0x3bf5bf,_0x3c2588=J[_0x493555(0x2d5)](_0x5b2e02,_0x3a1b9c,_0x1f61eb,_0x59c030),_0x494b1c=J[_0x493555(0x2d5)](_0x4521b4,_0x25707d,_0x1f61eb,_0x59c030),{columnHeaderHeightAndMarginTop:_0x487c5b}=_0x59c030,{startX:_0x42a9ba,startY:_0xa5d51a}=_0x3c2588,{endX:_0x3374b2,endY:_0x231b76}=_0x494b1c,_0x3a0db6=_0x3374b2-_0x42a9ba,_0x186087=_0x231b76-_0xa5d51a,_0x107da4={'labelPosition':_0xa5d51a-_0x487c5b>=K?_0x493555(0x1d0):_0x493555(0x323),'sheetID':_0x29ef85,'range':_0x3bf5bf,'color':_0x786c87,'name':_0x5f2b9d,'selection':_0x1aad93,'left':_0x42a9ba,'top':_0xa5d51a,'width':_0x3a0db6,'height':_0x186087,'evented':!0x1,'zIndex':xt};return new Fe(_0x5f2b9d,_0x107da4);});_0x1f61eb[_0x4298c1(0x1f1)](_0x108a6a,At),this['_cursors']=new Set(_0x108a6a);}[_0xa5554e(0x1c3)](){const _0x133d4b=_0xa5554e;var _0x548a70;(_0x548a70=this[_0x133d4b(0x238)])==null||_0x548a70[_0x133d4b(0x338)](_0x3bc12c=>_0x3bc12c[_0x133d4b(0x336)]());}['_getSheetObject'](){const _0x1dfbbe=_0xa5554e;return J['getSheetObject'](this[_0x1dfbbe(0x358)]['unit'],this[_0x1dfbbe(0x358)]);}};Ee=yt([he(0x1,a['Inject'](J[_0xa5554e(0x3ea)])),he(0x2,a[_0xa5554e(0x212)](F)),he(0x3,a['Inject'](a[_0xa5554e(0x22a)]))],Ee);function $t(_0x165ca1){const _0x6244df=_0xa5554e,_0x48cb33=new Map();return _0x165ca1['forEach'](_0x1610eb=>{const _0x1f2feb=_0x3f8c;if(_0x48cb33['has'](_0x1610eb[_0x1f2feb(0x3ec)])){const _0x5bbc6a=_0x48cb33[_0x1f2feb(0x23e)](_0x1610eb[_0x1f2feb(0x3ec)]);_0x5bbc6a[_0x1f2feb(0x388)]+=',\x20'+_0x1610eb[_0x1f2feb(0x388)];}else _0x48cb33['set'](_0x1610eb[_0x1f2feb(0x3ec)],_0x1610eb);}),Array[_0x6244df(0x26b)](_0x48cb33[_0x6244df(0x344)]());}var Bt=Object[_0xa5554e(0x1fa)],Ft=(_0x25e543,_0x54f419,_0x1f5639,_0x5505a1)=>{for(var _0x50a56b=_0x5505a1>0x1?void 0x0:_0x5505a1?Bt(_0x54f419,_0x1f5639):_0x54f419,_0x1671d8=_0x25e543['length']-0x1,_0x2de9b8;_0x1671d8>=0x0;_0x1671d8--)(_0x2de9b8=_0x25e543[_0x1671d8])&&(_0x50a56b=_0x2de9b8(_0x50a56b)||_0x50a56b);return _0x50a56b;},x=(_0x22a9b9,_0x159462)=>(_0x3a5754,_0x1732c6)=>_0x159462(_0x3a5754,_0x1732c6,_0x22a9b9);function _0x3a82(){const _0x2a0fc6=['_scene','UNAUTHENTICATED','YUUMI_ALL_TABLES_IS_INVALID','ticket','_colorAssignService','_showGuardMessage','entries','IBeforeCloseService','_saveCache','_context','formula.calculation.waiting','history','className','START_CALCULATION','loadOfflineData','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_localCacheService','reconnect','onRendered','beginPath','1199rsAnnp','_getSessionTicket','getOffsetConfig','TOO_MANY_REQUESTS','permission.content','FormulaExecutedStateType','_anchorDot','Injector','UniverIcon','getActiveSheet','_refreshCollabCursors','deepClone','_send','_entities','handleIRemoveCol','DesktopCollaborationStatusDisplayController','_hasFormulaInDirtyRanges','HEADER_MENU','WebSocketService','serializeRangeWithSheet','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','use','APPLY_REVISION_CONFILICT','restore','TEXT','function','UPDATE_CURSOR','clipPath','setItem','_toggleOnline','YUUMI_CONNECTOR_URL_NOT_FOUND','subUnitId','show','defineProperty','moveTo','LOGIN_FAILED','NOT_FOUND','name','green.600','lineTo','_assignedColors','stage','ICommandService','TEXT_RANGE_LAYER_INDEX','_hovered','ALREADY_EXISTS','_localStorageService','pushState','SetSelectionsOperation','save','SOCKET_FAILED_RETRY','useRef','IRenderManagerService','_hover','_cachedData','CollaborationSessionService','_checkCalculationAvailable','_saveTaskMap','jiqing.500','getSkeleton','_roomMembers$','_cursor','Plugin','startsWith','collab-text-range-','setActiveRange','removeParam','push','startColumn','fillStyle','collabStatus.fetchMiss','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INTERNAL_ERROR','isFormulaString','data','hide','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LICENSE_IMPORT_SIZE_EXCEEDED','clearInterval','asObservable','/universer-api/license/formula/limit/status','_updateSubUnitFromURLParams','m1Prime','concat','_updateLocalCursor','debug','_startSheetCollabCursor','isArray','range','_transformHistoryAndStateStack','AWAITING_WITH_PENDING','OTHER_CLIENTS_EDITING','unitID','createInstance','RevisionService','1473178HKNWYe','REDEMPTION_CODE_FULLY_REDEEMED','Rectangle','_hideTimer','fillText','Shape','_session','jsx','getConfig','subscribe','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_maxFormulaLimit','RemoveColCommandId','_localeService','ranges','executeCommand','YUUMI_AI_RUN_FAILED','http://www.w3.org/2000/svg','onLocalMutation','next','ONLINE','_doCreateSocket','CollaborationController','Failed','fromEvent','COLORS','totalFormulasToCalculate','DocIMEInputManagerService','UNRECOGNIZED','color','SNAPSHOT_INVALID_SNAPSHOT','_ensureSubject','_syncEditingCollabCursorService','_httpService','INVALID_ARGUMENT','drawWith','shareReplay','INVITE_CODE_REQUIRED','BrowserCollaborationSocketService','override','SheetSkeletonManagerService','collaboration.single-unit.warning','selection','_color','_selfUnitIDs','addObject','ILogService','REDEMPTION_CODE_INACTIVE','_initResize','INVITE_CODE_HAS_BEEN_UES','_backgroundColor','_imageIoService','DocSelectionManagerService','popstate','InsertRowCommandId','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','FromArray','UNIVER_DOC','docStateChange$','sessionStatus$','_dataLoaderService','subscribeEvent','flatMap','unitId','source','CollaborationDataLoaderController','getSheetBySheetId','touchDependencies','_themeService','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','CHANGESET_REVISION_CONFILICT','ENTITLE_DUP_SUBSCRIPTION','origin','_beforeCloseService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','round','_initStatusComponent','transformStateCache','RegularPolygon','CollaborationEvent','_registerDependencies','AWAITING','params','getCollabEntity$','getParam','_initCommandInterceptor','_currentUsage','newValue','_range','parse','DocStateChangeManagerService','SheetsSelectionsService','collaboration-client-ui.config','disposeUnit','roomMembers','_checkAndWaitForCalculationPermission','DocSkeletonManagerService','transformRemoteChangeset','CONNECTOR_DATA_TOO_LARGE','onStarting','IDocClipboardService','generateRandomId','handleDeleteRangeMoveUp','stageInfo','currentTheme$','REDEMPTION_CODE_HAS_BEEN_CREATED','executionId','now','_heartbeatTimer','jsxs','result','defs','isFormulaId','onCommandExecuted','SUCCESS','UniverCollaborationClientUIPlugin','setShapeProps','_instanceService','textRanges','endRow','_scheduleClearOtherTimer','svg','BehaviorSubject','delete','unshift','attrs','SUBMIT_CHANGESET_TIMEOUT','mutations','CollaborationUIEventService','JOIN_ROOM_FAILED','IMessageService','_clearOtherTimers','_docClipboardService','0\x200\x2016\x2016','extend','ISocketService','dispose$','includes','USERS_LEAVE','on-line-icon','PAYMENT_CHANNEL_NOT_SUPPORT','Optional','startRow','Success','IConfigService','event$','UniverInstanceType','_notificationService','roomMembers$','_getFormulaLimitStatus','1em','ENTITLE_NEED_BILLING_ADDRESS','useCallback','_unitStatus','USER_IS_ANONYMOUS','init','getMemberID','_getScale','translate(.97)','CanceledError','registerDependencies','session.collaboration-timeout','url(#on-line-icon_clip0_910_349)','getSheetId','with','_updateCollabCursors','PERMISSION_DENIED','height','getCurrentSelections','_handleJoinEvent','invokeId','_getSheetObject','useDependency','AUTHORIZE_CODE_ILLEGAL','url(#$1','_setFormulaLimitStatus','size','findNodePositionByCharIndex','getColorFromTheme','disposeWithMe','_removeCollabCursors','evenodd','SOCKET_FAILED','?taskId=','_document','collabStatus.notCollab','_id','none','_lastResponseTimestamp','width','createElement','storage','_updateURLWithCurrentState','top','Unknown\x20user','SheetCollabCursorShape','transform','RichTextEditingMutation','call','762010gPZTbS','black','INVALID_INVITE_CODE','UniverCollaborationClientPlugin','getLocalCacheKey','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','registerRefRange','_pollingInterval','enableLocalCache','setInterval','_config','makeDirty','_name','WECHAT_HAS_BEEN_BOUND','COMPLETION_FINISHED','1251756OzWvTg','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_DISTRO_REJECTED','all','whenReady','font','stringify','_docSyncEditingCollabCursorService','_docSkeleton','_labelPosition','_toggleOffline','DeleteRangeMoveUpCommandId','addObjects','_uiPartsService','debounceTime','fromEventSubject','onPointerEnter$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RemoveRowCommandId','activeSheet$','children','getOwnPropertyDescriptor','defIds','rgba(255,\x20255,\x20255,\x200.01)','_collabSessionService','location','combineLatest','_unitOnClients','NO_OTHER_CLIENTS_EDITING','CommandType','contains','IUniverInstanceService','isActive','_startDocCollabCursor','LOGIN_TOKEN_PROCESSING_FAILED','backgroundColor','_collaborationUIEventService','white','focused$','body','arc','requireSession','CollaborationUIEventId','getUnit','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','Inject','RECT','getDocRanges','_online','MOBILE_HAS_BEEN_BOUND','RefRangeService','getActiveRange','_entityInit$','error','getColor','YUUMI_ASYNCIO_CANCELLED','PY_RUNTIME_SCRIPT_ERROR','_drawAnchor','cursorInfo','_getMergeRange','_getSaveTimeout','InsertRangeMoveDownCommandId','_removeClearOtherTimer','doc.mutation.rich-text-editing','_revisionService','_colorIndex','APPLY_DUPLICATED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onCursorDelete','ThemeService','/universer-api/license/formula/limit/start','handleInsertRow','getCellPositionByOffset','61630OZDJye','addEventListener','collab-text-anchor-','OffLineIcon','getOwnPropertySymbols','ColorKit','MUTATION','add','substring','Tools','_cursors','EMAIL_VERIFY_CODE_MISMATCH','colorChannel1','_draw','_startCalculationLimit','loadUnit','get','isTransformMutationsWithChangesetSuccess','endColumn','handleInsertCol','#FFF','subunit','currentColor','_initEntityListener','SHEET_VIEWPORT_KEY','HTTPService','_handleHover','Disposable','row','ISnapshotServerService','saveTaskMap','BuiltInUIPart','registerRenderModule','_initStatusListener','tag','unsubscribe','Error','YUUMI_NO_CUBOID_FOR_QUESTION','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_drawRectRange','disableLocalCache','SetWorksheetActivateCommand','m2Prime','clearTimeout','/run/','merge','prototype','EffectRefRangId','displayName','YUUMI_UNABLE_LOAD_URL','_initDependencies','urlChange$','SetFormulaCalculationStartMutation','_setupSubUnitSync','RxDisposable','session.connection-failed','xlink:href','0\x200\x2017\x2016','DeleteRangeMoveLeftCommandId','_init','_sheetSkeletonManagerService','from','_shapes','onMouseMove','updateOfflineData','ITransformService','propertyIsEnumerable','getRenderById','releaseFormulaLimitUrl','_anchor','_handleLeaveEvent','handleInsertRangeMoveRight','find','assign','complete','ERROR_AGAIN','116CvrcTG','getRelativeToViewportCoord','measureText','transformMutation','_status$','ENTITLE_REPORT_LIMIT_EXCEED','imageSourceType','off-line-icon_clip0_910_343','getCurrentRevOfUnit','LICENSE_EXPORT_SIZE_EXCEEDED','_docStateChangeManagerService','MemberService','_handleEvent','onTransformChange$','transformMutationsWithChangeset','ENTITLE_CHAT_LIMIT_EXCEED','isTransformMutationFailure','_docTransformStateCacheService','transformSelections','startFormulaLimitUrl','6132usnccU','then','_eventUnsubscribe','_renderManagerService','OTHER_CLIENT_EDITING','string','_transformPreviousActiveRange','purple.300','REDEMPTION_INVALID_CODE','_onCursorUpdate','SYNCED','_cursorInfo$','_applyCommand','...','forwardRef','getUnitStatus$','Workbook','_docTransformIMECacheService','DependentOn','unit','getTypeOfUnitDisposed$','distinctUntilChanged','path','CLOSE_ROOM','takeUntil','_commandService','toRgbString','exhaustSavingTask','runRefRangeMutations','Rect','_releaseCalculationLimit','beforeCommandExecuted','transformByState','_lastPointer','_messageService','CollaborationStatus','_refRangeService','_univerInstanceService','random','engine','_transformUndoRedoStack','getVpScrollXYInfoByPosToVp','indexOf','_collabCursorController','currentSkeleton$','getUnitId','collaboration.closeRoom','registerBeforeClose','pipe','fill','hovered','_injector','formula.calculation.unable','off-line-icon','getTypeOfUnitAdded$','LOCAL_CACHE_INTERVAL','26HAdYaE','_urlService','has','UNIVER_SHEET','searchParams','pluginName','undoState','handleInsertRangeMoveDown','UnitStatus','NOT_COLLAB','getAncestorScale','idSuffix','_cursorShapes','M0\x200H16V16H0z','_docTransformSelectionsService','getCoordByCell','DisposableCollection','replace','InsertColCommandId','type','_collabCursorState$','assignAColorForMemberID','redoState','CollaborationSocketService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','handleMoveRange','_render','switchMap','mask','YUUMI_URL_COL_OUT_OF_RANGE','_registerRenderDependencies','SetDocZoomRatioOperation','OFFLINE','CONFLICT','filter','getCurrentUnitForType','icon','set','getFocusedUnit','199448ZoKFqK','_scheduleHeartbeat','onPointerMove$','toString','_initEvent','MessageType','href','toDisposable','div','Vector2','SessionStatus','collabCursorState$','_scheduleSaving','setAlpha','getCollabCursors$','runOnServer','getRangePointData','_createSocketURL','selections','toStringTag','setParam','63AmwFJK','_clearPolling','UNDEFINED','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','_docSkeletonManagerService','_handleHeartbeatEvent','REDEMPTION_USER_NOT_ELIGIBLE','SetFormulaCalculationNotificationMutation','createIdentifier','code','dirtyRanges','maxFormulaLimit','cursorInfo$','_setupBeforeClosingHandler','getUniverSheetInstance','runId','Warning','_disabled','_textBubble','FormulaExecuteStageType','url(#off-line-icon_clip0_910_343)','_logService','text','setUndoRedoMutationParamsCache','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','RemoteUniscriptService','yellow.400','post','replaceState','_getAnchorBounding','ILocalCacheService','length','bottom','map','YUUMI_RATE_OVER_LIMIT','LocaleService','status$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_collaborationController','getCellMatrix','getValue','USER_NOT_INVITED_CODE','DocCollaborationEntity','9048kVcdNW','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_taskIds','getMergeData','IUIPartsService','_configService','onPointerLeave$','getStateCache','dispose','APPLY_PERMISSION_DENIED','forEach','current','send','_transformService','INVITE_CODE_ALREADY_BOUND','EMAIL_HAS_BEEN_BOUND','REDEMPTION_CODE_NOT_STARTED','getUnhiddenWorksheets','parseInt','debounce','_drawTextRange','setStateCache','values','permission.title','YUUMI_SUBSCRIPTION_NOT_FOUND','getMember','_memberService','[CollaborationDataLoaderController]','wsSessionTicketUrl','DOC_RANGE_TYPE','setConfig','eventID','currentUsage'];_0x3a82=function(){return _0x2a0fc6;};return _0x3a82();}let Z=class extends a[_0xa5554e(0x249)]{constructor(_0x287e29,_0x4b870c,_0x264a34,_0x155b7d,_0x2ef474,_0x4a0766){const _0x123a44=_0xa5554e;super(),this[_0x123a44(0x158)]=_0x287e29,this[_0x123a44(0x35f)]=_0x4b870c,this[_0x123a44(0x209)]=_0x264a34,this['_messageService']=_0x155b7d,this[_0x123a44(0x1a2)]=_0x2ef474,this['_localeService']=_0x4a0766,this[_0x123a44(0x310)](),this[_0x123a44(0x2f1)]();}[_0xa5554e(0x310)](){const _0x270b3f=_0xa5554e;this[_0x270b3f(0x1c2)](this[_0x270b3f(0x158)][_0x270b3f(0x2bd)](()=>{const _0x4cede0=_0x270b3f;if(this[_0x4cede0(0x35f)][_0x4cede0(0x24c)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xa5554e(0x2f1)](){const _0x68b379=_0xa5554e;this[_0x68b379(0x1c2)](this[_0x68b379(0x209)][_0x68b379(0x1a0)][_0x68b379(0x3cb)](_0x1b1214=>{const _0xe7a3b4=_0x68b379;_0x1b1214['id']===u['CollaborationUIEventId'][_0xe7a3b4(0x292)]&&this[_0xe7a3b4(0x2b0)][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x3eb))}),_0x1b1214['id']===u['CollaborationUIEventId'][_0xe7a3b4(0x2a5)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this['_localeService']['t'](_0xe7a3b4(0x2bc))}),_0x1b1214['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0xe7a3b4(0x1a2)][_0xe7a3b4(0x383)]({'title':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x345)),'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x367)),'type':'error','duration':0x0}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x2e7)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x252)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x2bc))+'('+_0x1b1214[_0xe7a3b4(0x3ad)]+')'}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x190)]&&this[_0xe7a3b4(0x2b0)][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0x1b1214[_0xe7a3b4(0x3ad)]||'')}),_0x1b1214['id']===u['CollaborationUIEventId'][_0xe7a3b4(0x395)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this[_0xe7a3b4(0x3cf)]['t']('session.will-retry')}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x1c5)]&&this[_0xe7a3b4(0x2b0)][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x252)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x265))}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x18d)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x252)],'content':this['_localeService']['t'](_0xe7a3b4(0x1b0))});}));}};Z=Ft([x(0x0,R[_0xa5554e(0x356)]),x(0x1,u[_0xa5554e(0x321)]),x(0x2,a[_0xa5554e(0x212)](u[_0xa5554e(0x18f)])),x(0x3,R[_0xa5554e(0x191)]),x(0x4,R['INotificationService']),x(0x5,a[_0xa5554e(0x212)](a[_0xa5554e(0x326)]))],Z);const kt=_0xa5554e(0x16b),Le={};var jt=Object[_0xa5554e(0x1fa)],Yt=(_0x4b3767,_0x4b1325,_0x34c158,_0x570871)=>{for(var _0x2565c1=_0x570871>0x1?void 0x0:_0x570871?jt(_0x4b1325,_0x34c158):_0x4b1325,_0x49c3c0=_0x4b3767['length']-0x1,_0x2edd4a;_0x49c3c0>=0x0;_0x49c3c0--)(_0x2edd4a=_0x4b3767[_0x49c3c0])&&(_0x2565c1=_0x2edd4a(_0x2565c1)||_0x2565c1);return _0x2565c1;},Me=(_0x47422e,_0x1c4e30)=>(_0x28adfa,_0x5125fa)=>_0x1c4e30(_0x28adfa,_0x5125fa,_0x47422e);let Q=class{constructor(_0x594587,_0x2158bc){const _0x46d445=_0xa5554e;this['_transformService']=_0x594587,this[_0x46d445(0x291)]=_0x2158bc;}['transformIMECache'](_0x499ae0){const _0x2491f8=_0xa5554e;this[_0x2491f8(0x2b6)](_0x499ae0),this[_0x2491f8(0x294)](_0x499ae0);}[_0xa5554e(0x170)](_0x203d95){const _0xe04b31=_0xa5554e,{unitID:_0x346d28}=_0x203d95,_0x1e8554=this[_0xe04b31(0x291)][_0xe04b31(0x271)](_0x346d28)[_0xe04b31(0x1b3)](p['DocIMEInputManagerService']),{redoCache:_0x230b71}=_0x1e8554['getUndoRedoMutationParamsCache']();if(_0x230b71[_0xe04b31(0x322)]===0x0)return _0x203d95;let _0x50d311=a[_0xe04b31(0x237)]['deepClone'](_0x203d95[_0xe04b31(0x18e)][0x0]);for(let _0x125eaf=0x0;_0x125eaf<_0x230b71[_0xe04b31(0x322)];_0x125eaf++){const _0x59e91d={'id':_0xe04b31(0x224),'params':{..._0x230b71[_0x125eaf]}},_0x121bfd=this[_0xe04b31(0x33b)]['transformMutation'](_0x50d311,_0x59e91d,!0x1);if(g[_0xe04b31(0x28a)](_0x121bfd))throw _0x121bfd[_0xe04b31(0x21a)];_0x50d311=_0x121bfd[_0xe04b31(0x3b5)];}return{...a[_0xe04b31(0x237)][_0xe04b31(0x36e)](_0x203d95),'mutations':[_0x50d311]};}[_0xa5554e(0x2b6)](_0x25a76e){const _0x4b97fc=_0xa5554e,{unitID:_0x38b3f7}=_0x25a76e,_0x5f360f=this[_0x4b97fc(0x291)]['getRenderById'](_0x38b3f7)[_0x4b97fc(0x1b3)](p[_0x4b97fc(0x3dd)]),{undoCache:_0x287de1,redoCache:_0x17269f}=_0x5f360f['getUndoRedoMutationParamsCache']();if(_0x287de1[_0x4b97fc(0x322)]===0x0||_0x17269f[_0x4b97fc(0x322)]===0x0)return;const _0x123959=[],_0x27de8e=[];let _0x4f354d=a[_0x4b97fc(0x237)][_0x4b97fc(0x36e)](_0x25a76e['mutations'][0x0]),_0x3aec41=a['Tools']['deepClone'](_0x25a76e[_0x4b97fc(0x18e)][0x0]);for(let _0x5637db=_0x287de1[_0x4b97fc(0x322)]-0x1;_0x5637db>=0x0;_0x5637db--){const _0x2eb849={'id':_0x4b97fc(0x224),'params':{..._0x287de1[_0x5637db]}},_0x27af3a={'id':_0x4b97fc(0x224),'params':{..._0x17269f[_0x5637db]}},_0x44884a=this['_transformService']['transformMutation'](_0x4f354d,_0x2eb849,!0x1),_0x271c7c=this['_transformService'][_0x4b97fc(0x27d)](_0x3aec41,_0x27af3a,!0x1);if(g[_0x4b97fc(0x28a)](_0x44884a))throw _0x44884a[_0x4b97fc(0x21a)];if(g[_0x4b97fc(0x28a)](_0x271c7c))throw _0x271c7c[_0x4b97fc(0x21a)];_0x123959[_0x4b97fc(0x18b)](_0x44884a[_0x4b97fc(0x258)][_0x4b97fc(0x161)]),_0x27de8e[_0x4b97fc(0x18b)](_0x271c7c[_0x4b97fc(0x258)]['params']),_0x4f354d=_0x44884a[_0x4b97fc(0x3b5)],_0x3aec41=_0x271c7c[_0x4b97fc(0x3b5)];}_0x5f360f[_0x4b97fc(0x31a)]({'undoCache':_0x123959,'redoCache':_0x27de8e});}[_0xa5554e(0x294)](_0x266184){const _0x262743=_0xa5554e,{unitID:_0x1ffa4e}=_0x266184,_0x1041da=this[_0x262743(0x291)][_0x262743(0x271)](_0x1ffa4e)['with'](p[_0x262743(0x3dd)]),_0x328941=_0x1041da[_0x262743(0x218)]();if(_0x328941==null)return;const _0x23be1e=[{'id':_0x262743(0x224),'params':{'unitId':_0x266184[_0x262743(0x3bf)],'actions':null,'textRanges':[_0x328941]}}],_0x31fc7f=this['_transformService'][_0x262743(0x288)](_0x266184,_0x23be1e);if(!g[_0x262743(0x23f)](_0x31fc7f))throw _0x31fc7f[_0x262743(0x21a)];const _0x430426=_0x31fc7f['m2Prime'][0x0]['params']['textRanges'];Array[_0x262743(0x3ba)](_0x430426)&&_0x430426[_0x262743(0x322)]&&_0x1041da[_0x262743(0x3a4)](_0x430426[0x0]);}};Q=Yt([Me(0x0,g[_0xa5554e(0x26f)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x1b9c71,_0x3b82aa,_0x4823bc,_0x1b4482)=>{const _0x2382e3=_0xa5554e;for(var _0x2d631f=_0x1b4482>0x1?void 0x0:_0x1b4482?Ht(_0x3b82aa,_0x4823bc):_0x3b82aa,_0x2c77fd=_0x1b9c71[_0x2382e3(0x322)]-0x1,_0x63f20;_0x2c77fd>=0x0;_0x2c77fd--)(_0x63f20=_0x1b9c71[_0x2c77fd])&&(_0x2d631f=_0x63f20(_0x2d631f)||_0x2d631f);return _0x2d631f;},ue=(_0x584a6e,_0x5d73c2)=>(_0x561596,_0x433da4)=>_0x5d73c2(_0x561596,_0x433da4,_0x584a6e);let ee=class{constructor(_0x1a689a,_0x5a6b0a,_0xf36d1f){const _0x549733=_0xa5554e;this[_0x549733(0x2c1)]=_0x1a689a,this[_0x549733(0x33b)]=_0x5a6b0a,this[_0x549733(0x284)]=_0xf36d1f;}[_0xa5554e(0x15c)](_0x1f14dd){const _0x5acff0=_0xa5554e;this[_0x5acff0(0x3bc)](_0x1f14dd);}[_0xa5554e(0x170)](_0x5b6369){const _0x2a74d6=_0xa5554e,{unitID:_0x14095c}=_0x5b6369,{collaboration:_0xf180d5}=this['_docStateChangeManagerService'][_0x2a74d6(0x335)](_0x14095c);if(_0xf180d5['length']===0x0)return _0x5b6369;let _0x3ca08b=a[_0x2a74d6(0x237)][_0x2a74d6(0x36e)](_0x5b6369['mutations'][0x0]);for(let _0x36ab73=0x0;_0x36ab73<_0xf180d5[_0x2a74d6(0x322)];_0x36ab73++){const _0x5565f5={'id':_0x2a74d6(0x224),'params':{'unitId':_0xf180d5[_0x36ab73][_0x2a74d6(0x401)],..._0xf180d5[_0x36ab73][_0x2a74d6(0x2dc)]}},_0x10192b=this[_0x2a74d6(0x33b)]['transformMutation'](_0x3ca08b,_0x5565f5,!0x1);if(g['isTransformMutationFailure'](_0x10192b))throw _0x10192b[_0x2a74d6(0x21a)];_0x3ca08b=_0x10192b[_0x2a74d6(0x3b5)];}return{...a[_0x2a74d6(0x237)][_0x2a74d6(0x36e)](_0x5b6369),'mutations':[_0x3ca08b]};}[_0xa5554e(0x3bc)](_0x388324){const _0x5e733c=_0xa5554e,{unitID:_0x2c13ae}=_0x388324,{history:_0x4b5792,collaboration:_0x23452f}=this[_0x5e733c(0x284)]['getStateCache'](_0x2c13ae);if(_0x4b5792[_0x5e733c(0x322)]===0x0&&_0x23452f[_0x5e733c(0x322)]===0x0)return;const _0x34a665=[],_0x23195a=[];let _0x5e06f8=a[_0x5e733c(0x237)][_0x5e733c(0x36e)](_0x388324['mutations'][0x0]),_0x28c813=a['Tools'][_0x5e733c(0x36e)](_0x388324[_0x5e733c(0x18e)][0x0]);for(let _0x22e8d6=_0x4b5792[_0x5e733c(0x322)]-0x1;_0x22e8d6>=0x0;_0x22e8d6--){const _0xf738a9={'id':_0x5e733c(0x224),'params':{'unitId':_0x4b5792[_0x22e8d6][_0x5e733c(0x401)],..._0x4b5792[_0x22e8d6][_0x5e733c(0x2cc)]}},_0x522822={'id':_0x5e733c(0x224),'params':{'unitId':_0x4b5792[_0x22e8d6]['unitId'],..._0x4b5792[_0x22e8d6][_0x5e733c(0x2dc)]}},_0x392062=this[_0x5e733c(0x33b)][_0x5e733c(0x27d)](_0x5e06f8,_0xf738a9,!0x1),_0x182584=this[_0x5e733c(0x33b)]['transformMutation'](_0x28c813,_0x522822,!0x1);if(g['isTransformMutationFailure'](_0x392062))throw _0x392062[_0x5e733c(0x21a)];if(g[_0x5e733c(0x28a)](_0x182584))throw _0x182584[_0x5e733c(0x21a)];_0x34a665[_0x5e733c(0x18b)]({..._0x4b5792[_0x22e8d6],'undoState':_0x392062['m2Prime'][_0x5e733c(0x161)],'redoState':_0x182584[_0x5e733c(0x258)]['params']}),_0x5e06f8=_0x392062[_0x5e733c(0x3b5)],_0x28c813=_0x182584[_0x5e733c(0x3b5)];}_0x5e06f8=a[_0x5e733c(0x237)]['deepClone'](_0x388324['mutations'][0x0]),_0x28c813=a[_0x5e733c(0x237)]['deepClone'](_0x388324[_0x5e733c(0x18e)][0x0]);for(let _0x21aa6f=_0x23452f[_0x5e733c(0x322)]-0x1;_0x21aa6f>=0x0;_0x21aa6f--){const _0x32455a={'id':_0x5e733c(0x224),'params':{'unitId':_0x23452f[_0x21aa6f]['unitId'],..._0x23452f[_0x21aa6f][_0x5e733c(0x2cc)]}},_0x5412fa={'id':_0x5e733c(0x224),'params':{'unitId':_0x23452f[_0x21aa6f][_0x5e733c(0x401)],..._0x23452f[_0x21aa6f][_0x5e733c(0x2dc)]}},_0x5cc2a0=this[_0x5e733c(0x33b)][_0x5e733c(0x27d)](_0x5e06f8,_0x32455a,!0x1),_0x3a4275=this[_0x5e733c(0x33b)][_0x5e733c(0x27d)](_0x28c813,_0x5412fa,!0x1);if(g[_0x5e733c(0x28a)](_0x5cc2a0))throw _0x5cc2a0[_0x5e733c(0x21a)];if(g[_0x5e733c(0x28a)](_0x3a4275))throw _0x3a4275[_0x5e733c(0x21a)];_0x23195a[_0x5e733c(0x18b)]({..._0x23452f[_0x21aa6f],'undoState':_0x5cc2a0['m2Prime'][_0x5e733c(0x161)],'redoState':_0x3a4275[_0x5e733c(0x258)][_0x5e733c(0x161)]}),_0x5e06f8=_0x5cc2a0[_0x5e733c(0x3b5)],_0x28c813=_0x3a4275[_0x5e733c(0x3b5)];}this[_0x5e733c(0x284)][_0x5e733c(0x343)](_0x2c13ae,{'history':_0x34a665,'collaboration':_0x23195a});}};ee=Wt([ue(0x0,a[_0xa5554e(0x212)](a['Injector'])),ue(0x1,g[_0xa5554e(0x26f)]),ue(0x2,a[_0xa5554e(0x212)](p[_0xa5554e(0x169)]))],ee);var Vt=Object[_0xa5554e(0x1fa)],Gt=(_0x5b367f,_0x562af3,_0x2db37f,_0xdb844d)=>{const _0x3c0037=_0xa5554e;for(var _0x5a74ec=_0xdb844d>0x1?void 0x0:_0xdb844d?Vt(_0x562af3,_0x2db37f):_0x562af3,_0x384c0f=_0x5b367f[_0x3c0037(0x322)]-0x1,_0x119629;_0x384c0f>=0x0;_0x384c0f--)(_0x119629=_0x5b367f[_0x384c0f])&&(_0x5a74ec=_0x119629(_0x5a74ec)||_0x5a74ec);return _0x5a74ec;},Ae=(_0x1764d8,_0xca3bf9)=>(_0x3bbd0c,_0x196f80)=>_0xca3bf9(_0x3bbd0c,_0x196f80,_0x1764d8);let te=class{constructor(_0x3d76de,_0x4acb4c){const _0x50309e=_0xa5554e;this[_0x50309e(0x2c1)]=_0x3d76de,this[_0x50309e(0x33b)]=_0x4acb4c;}['transformSelections'](_0x3847fb){const _0x52643e=_0xa5554e;var _0x5ed4a1;const _0x44adce=this['_injector'][_0x52643e(0x23e)](V[_0x52643e(0x3f6)]),_0x3a344c=(_0x5ed4a1=_0x44adce[_0x52643e(0x214)]())!=null?_0x5ed4a1:[];if(_0x3a344c[_0x52643e(0x322)]===0x0)return;const _0x36eafb=_0x3847fb[_0x52643e(0x3bf)],_0x9845f8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36eafb,'actions':null,'textRanges':_0x3a344c}}],_0x196067=this['_transformService']['transformMutationsWithChangeset'](_0x3847fb,_0x9845f8);if(!g[_0x52643e(0x23f)](_0x196067))throw _0x196067[_0x52643e(0x21a)];const _0x3d80ab=_0x196067[_0x52643e(0x258)][0x0][_0x52643e(0x161)][_0x52643e(0x185)];Array[_0x52643e(0x3ba)](_0x3d80ab)&&_0x3d80ab[_0x52643e(0x322)]&&_0x44adce['replaceDocRanges'](_0x3d80ab,{'unitId':_0x36eafb,'subUnitId':_0x36eafb},!0x1);}};te=Gt([Ae(0x0,a[_0xa5554e(0x212)](a['Injector'])),Ae(0x1,g[_0xa5554e(0x26f)])],te);var Xt=Object[_0xa5554e(0x1fa)],Kt=(_0x2106d4,_0x27e30e,_0x8130e8,_0x50f009)=>{for(var _0x39e756=_0x50f009>0x1?void 0x0:_0x50f009?Xt(_0x27e30e,_0x8130e8):_0x27e30e,_0x1f5c1f=_0x2106d4['length']-0x1,_0x2013a2;_0x1f5c1f>=0x0;_0x1f5c1f--)(_0x2013a2=_0x2106d4[_0x1f5c1f])&&(_0x39e756=_0x2013a2(_0x39e756)||_0x39e756);return _0x39e756;},U=(_0x14c7ca,_0xea5590)=>(_0x50dbab,_0x2dcd6e)=>_0xea5590(_0x50dbab,_0x2dcd6e,_0x14c7ca);let se=class extends a['Disposable']{constructor(_0x5225f7,_0x4cc28f,_0x3b5e90,_0x12a17c,_0x2ae3be,_0x9776c0,_0x48849b,_0x4de042){const _0x377656=_0xa5554e;super(),_(this,_0x377656(0x27e),new I[(_0x377656(0x189))](u[_0x377656(0x2b1)][_0x377656(0x2cf)])),(this[_0x377656(0x284)]=_0x5225f7,this[_0x377656(0x329)]=_0x4cc28f,this[_0x377656(0x29f)]=_0x3b5e90,this['_docTransformStateCacheService']=_0x12a17c,this['_docTransformSelectionsService']=_0x2ae3be,this[_0x377656(0x1ec)]=_0x9776c0,this['_messageService']=_0x48849b,this[_0x377656(0x3cf)]=_0x4de042,this[_0x377656(0x245)]());}[_0xa5554e(0x245)](){const _0x53f911=_0xa5554e;this[_0x53f911(0x1c2)](this[_0x53f911(0x329)]['entityInit$'][_0x53f911(0x3cb)](_0x514eed=>{const _0x333d43=_0x53f911,_0x4a053a=this[_0x333d43(0x284)][_0x333d43(0x3fc)][_0x333d43(0x3cb)](_0x1fbffe=>{const _0x8c78b5=_0x333d43;if(_0x1fbffe==null)return;const {unitId:_0x592acd,redoState:_0xa76a41,commandId:_0x389261}=_0x1fbffe;if(_0x592acd!==_0x514eed[_0x8c78b5(0x3bf)])return;const _0x40279c={'id':_0x389261,'type':a[_0x8c78b5(0x202)][_0x8c78b5(0x234)],'params':{'unitId':_0x592acd,'actions':_0xa76a41['actions'],'textRanges':null}};_0x514eed[_0x8c78b5(0x3d4)](_0x40279c);});if(_0x514eed[_0x333d43(0x1c2)](_0x4a053a),_0x514eed instanceof u[_0x333d43(0x32d)]){const _0x36b2b1={'onTransformIME':_0x3e1d06=>this['_docTransformIMECacheService']['transformIMECache'](_0x3e1d06),'onTransformState':_0x261f6a=>this[_0x333d43(0x28b)][_0x333d43(0x15c)](_0x261f6a),'onTransformSelections':_0x5d4df7=>this[_0x333d43(0x2d4)][_0x333d43(0x28c)](_0x5d4df7),'onSyncEditingCollabCursor':_0x128aaf=>this[_0x333d43(0x1ec)]['syncEditingCollabCursor'](_0x128aaf),'onTransformRemoteChangesetByIMECache':_0xdde3c1=>this['_docTransformIMECacheService'][_0x333d43(0x170)](_0xdde3c1),'onTransformRemoteChangesetByStateCache':_0x3061cb=>this[_0x333d43(0x28b)][_0x333d43(0x170)](_0x3061cb)};_0x514eed['addHandlerCallback'](_0x36b2b1);}}));}};se=Kt([U(0x0,a[_0xa5554e(0x212)](p[_0xa5554e(0x169)])),U(0x1,a[_0xa5554e(0x212)](u[_0xa5554e(0x3d8)])),U(0x2,a['Inject'](Q)),U(0x3,a[_0xa5554e(0x212)](ee)),U(0x4,a[_0xa5554e(0x212)](te)),U(0x5,a[_0xa5554e(0x212)](Re)),U(0x6,R[_0xa5554e(0x191)]),U(0x7,a[_0xa5554e(0x212)](a[_0xa5554e(0x326)]))],se);var G=(_0xe0b053=>(_0xe0b053[_0xe0b053[_0xa5554e(0x304)]=0x0]=_0xa5554e(0x304),_0xe0b053[_0xe0b053['OK']=0x1]='OK',_0xe0b053[_0xe0b053[_0xa5554e(0x3ab)]=0x2]=_0xa5554e(0x3ab),_0xe0b053[_0xe0b053[_0xa5554e(0x1b5)]=0x3]='PERMISSION_DENIED',_0xe0b053[_0xe0b053[_0xa5554e(0x387)]=0x4]=_0xa5554e(0x387),_0xe0b053[_0xe0b053[_0xa5554e(0x350)]=0x5]=_0xa5554e(0x350),_0xe0b053[_0xe0b053[_0xa5554e(0x390)]=0x6]=_0xa5554e(0x390),_0xe0b053[_0xe0b053[_0xa5554e(0x3e4)]=0x7]=_0xa5554e(0x3e4),_0xe0b053[_0xe0b053[_0xa5554e(0x366)]=0x8]=_0xa5554e(0x366),_0xe0b053[_0xe0b053[_0xa5554e(0x1e4)]=0x9]=_0xa5554e(0x1e4),_0xe0b053[_0xe0b053['LOGIN_FAILED']=0xa]=_0xa5554e(0x386),_0xe0b053[_0xe0b053['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0xe0b053[_0xe0b053[_0xa5554e(0x35e)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xe0b053[_0xe0b053[_0xa5554e(0x239)]=0xd]=_0xa5554e(0x239),_0xe0b053[_0xe0b053[_0xa5554e(0x159)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xe0b053[_0xe0b053[_0xa5554e(0x1bc)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0xe0b053[_0xe0b053[_0xa5554e(0x207)]=0x10]=_0xa5554e(0x207),_0xe0b053[_0xe0b053['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xe0b053[_0xe0b053[_0xa5554e(0x279)]=0x65]='ERROR_AGAIN',_0xe0b053[_0xe0b053['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0xe0b053[_0xe0b053[_0xa5554e(0x1a9)]=0xca]=_0xa5554e(0x1a9),_0xe0b053[_0xe0b053['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa5554e(0x155),_0xe0b053[_0xe0b053['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xa5554e(0x3e0),_0xe0b053[_0xe0b053[_0xa5554e(0x1e6)]=0x1772]=_0xa5554e(0x1e6),_0xe0b053[_0xe0b053['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xe0b053[_0xe0b053['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0xe0b053[_0xe0b053['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xe0b053[_0xe0b053[_0xa5554e(0x379)]=0x1b5b]=_0xa5554e(0x379),_0xe0b053[_0xe0b053[_0xa5554e(0x337)]=0x1b5c]=_0xa5554e(0x337),_0xe0b053[_0xe0b053[_0xa5554e(0x227)]=0x1b5d]=_0xa5554e(0x227),_0xe0b053[_0xe0b053[_0xa5554e(0x171)]=0x1f41]=_0xa5554e(0x171),_0xe0b053[_0xe0b053['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xe0b053[_0xe0b053['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xa5554e(0x377),_0xe0b053[_0xe0b053[_0xa5554e(0x3b0)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xe0b053[_0xe0b053[_0xa5554e(0x283)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xe0b053[_0xe0b053[_0xa5554e(0x1e7)]=0x232d]=_0xa5554e(0x1e7),_0xe0b053[_0xe0b053[_0xa5554e(0x25f)]=0x2711]=_0xa5554e(0x25f),_0xe0b053[_0xe0b053[_0xa5554e(0x2e3)]=0x2712]=_0xa5554e(0x2e3),_0xe0b053[_0xe0b053[_0xa5554e(0x325)]=0x2713]=_0xa5554e(0x325),_0xe0b053[_0xe0b053['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0xa5554e(0x346),_0xe0b053[_0xe0b053[_0xa5554e(0x253)]=0x271a]=_0xa5554e(0x253),_0xe0b053[_0xe0b053[_0xa5554e(0x21c)]=0x271b]=_0xa5554e(0x21c),_0xe0b053[_0xe0b053[_0xa5554e(0x3af)]=0x271c]=_0xa5554e(0x3af),_0xe0b053[_0xe0b053[_0xa5554e(0x351)]=0x271d]=_0xa5554e(0x351),_0xe0b053[_0xe0b053[_0xa5554e(0x1db)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xe0b053[_0xe0b053[_0xa5554e(0x3d2)]=0x271f]=_0xa5554e(0x3d2),_0xe0b053[_0xe0b053[_0xa5554e(0x381)]=0x2720]=_0xa5554e(0x381),_0xe0b053[_0xe0b053['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0xa5554e(0x21d),_0xe0b053[_0xe0b053['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xa5554e(0x3f3),_0xe0b053[_0xe0b053['INVALID_INVITE_CODE']=0x2ee2]=_0xa5554e(0x1d8),_0xe0b053[_0xe0b053[_0xa5554e(0x3e7)]=0x2ee3]=_0xa5554e(0x3e7),_0xe0b053[_0xe0b053[_0xa5554e(0x32c)]=0x2ee4]=_0xa5554e(0x32c),_0xe0b053[_0xe0b053[_0xa5554e(0x33c)]=0x2ee5]=_0xa5554e(0x33c),_0xe0b053[_0xe0b053[_0xa5554e(0x1e3)]=0x32c9]=_0xa5554e(0x1e3),_0xe0b053[_0xe0b053[_0xa5554e(0x216)]=0x32ca]=_0xa5554e(0x216),_0xe0b053[_0xe0b053[_0xa5554e(0x33d)]=0x32cb]=_0xa5554e(0x33d),_0xe0b053[_0xe0b053[_0xa5554e(0x328)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0xe0b053[_0xe0b053[_0xa5554e(0x211)]=0x36b2]=_0xa5554e(0x211),_0xe0b053[_0xe0b053[_0xa5554e(0x156)]=0x36b3]=_0xa5554e(0x156),_0xe0b053[_0xe0b053['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0xa5554e(0x19b),_0xe0b053[_0xe0b053[_0xa5554e(0x289)]=0x3715]=_0xa5554e(0x289),_0xe0b053[_0xe0b053['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0xa5554e(0x27f),_0xe0b053[_0xe0b053[_0xa5554e(0x1a6)]=0x37dd]=_0xa5554e(0x1a6),_0xe0b053[_0xe0b053[_0xa5554e(0x296)]=0x3a99]=_0xa5554e(0x296),_0xe0b053[_0xe0b053[_0xa5554e(0x3f1)]=0x3a9a]=_0xa5554e(0x3f1),_0xe0b053[_0xe0b053[_0xa5554e(0x3c3)]=0x3a9b]=_0xa5554e(0x3c3),_0xe0b053[_0xe0b053[_0xa5554e(0x33e)]=0x3a9c]=_0xa5554e(0x33e),_0xe0b053[_0xe0b053['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0xa5554e(0x309),_0xe0b053[_0xe0b053[_0xa5554e(0x254)]=0x3a9e]=_0xa5554e(0x254),_0xe0b053[_0xe0b053[_0xa5554e(0x178)]=0x3a9f]=_0xa5554e(0x178),_0xe0b053[_0xe0b053['UNRECOGNIZED']=-0x1]=_0xa5554e(0x3de),_0xe0b053))(G||{});function qt(_0x4358db){const _0x5a7ea3=_0xa5554e;var _0x30e8ea,_0x3dc829;const _0x40554b=(_0x30e8ea=_0x4358db[_0x5a7ea3(0x176)])==null?void 0x0:_0x30e8ea[_0x5a7ea3(0x38c)],_0x5d5a8d=((_0x3dc829=_0x4358db[_0x5a7ea3(0x176)])==null?void 0x0:_0x3dc829[_0x5a7ea3(0x3dc)])||0x0;return _0x40554b===B[_0x5a7ea3(0x316)][_0x5a7ea3(0x35c)]&&_0x5d5a8d>0x0;}function zt(_0x5f3f26){const _0x1b5176=_0xa5554e;return _0x5f3f26['functionsExecutedState']===B[_0x1b5176(0x368)][_0x1b5176(0x181)];}var Jt=Object[_0xa5554e(0x1fa)],Zt=(_0x419d6b,_0x5b24ee,_0x2e4fa9,_0x467d02)=>{for(var _0x56ed75=_0x467d02>0x1?void 0x0:_0x467d02?Jt(_0x5b24ee,_0x2e4fa9):_0x5b24ee,_0x1f903d=_0x419d6b['length']-0x1,_0x4646e7;_0x1f903d>=0x0;_0x1f903d--)(_0x4646e7=_0x419d6b[_0x1f903d])&&(_0x56ed75=_0x4646e7(_0x56ed75)||_0x56ed75);return _0x56ed75;},A=(_0x3ce085,_0x3fc5c4)=>(_0x249de1,_0x475c5b)=>_0x3fc5c4(_0x249de1,_0x475c5b,_0x3ce085);const Qt=_0xa5554e(0x3b3),es=_0xa5554e(0x22b),ts='/universer-api/license/formula/limit/done';let ie=class extends a[_0xa5554e(0x249)]{constructor(_0xca47d,_0x5597eb,_0xe1d1a9,_0x463c32,_0x41914f,_0x207b8d,_0x1cea19){const _0x347e9c=_0xa5554e;super(),_(this,_0x347e9c(0x1dd),null),_(this,_0x347e9c(0x3cd),0x0),_(this,_0x347e9c(0x165),0x0),_(this,_0x347e9c(0x330),[]),_(this,_0x347e9c(0x1cb),0x0),(this[_0x347e9c(0x2b0)]=_0xca47d,this['_commandService']=_0x5597eb,this[_0x347e9c(0x333)]=_0xe1d1a9,this[_0x347e9c(0x3e3)]=_0x463c32,this[_0x347e9c(0x2b3)]=_0x41914f,this['_logService']=_0x207b8d,this['_localeService']=_0x1cea19,this[_0x347e9c(0x164)]());}[_0xa5554e(0x164)](){const _0x13e257=_0xa5554e;this[_0x13e257(0x1c2)](this[_0x13e257(0x2a7)][_0x13e257(0x2ad)]((_0x21f312,_0x354f4a)=>{const _0x1a6a35=_0x13e257;if(_0x21f312['id']!==B[_0x1a6a35(0x262)]['id'])return;const _0x2b0b68=_0x21f312[_0x1a6a35(0x161)];if(!this[_0x1a6a35(0x373)](_0x2b0b68[_0x1a6a35(0x30d)]))return;if(!this[_0x1a6a35(0x39b)]())throw this[_0x1a6a35(0x16e)](_0x21f312,_0x354f4a),this[_0x1a6a35(0x354)](),new a[(_0x1a6a35(0x1ae))]();})),this[_0x13e257(0x1c2)](this[_0x13e257(0x2a7)]['onCommandExecuted']((_0x51a45a,_0x414b7c)=>{const _0x23ea70=_0x13e257;if(_0x51a45a['id']!==B[_0x23ea70(0x30a)]['id'])return;const _0x378df2=_0x51a45a[_0x23ea70(0x161)];if(qt(_0x378df2)){const _0x5b36fe=a['generateRandomId']();this[_0x23ea70(0x330)][_0x23ea70(0x3a6)](_0x5b36fe),this[_0x23ea70(0x23c)](_0x5b36fe);}else{if(zt(_0x378df2)&&this['_taskIds'][_0x23ea70(0x322)]>0x0){const _0x4e0d6c=this[_0x23ea70(0x330)]['shift']();this[_0x23ea70(0x2ac)](_0x4e0d6c);}}}));}[_0xa5554e(0x336)](){const _0x319bfd=_0xa5554e;super[_0x319bfd(0x336)](),this['_clearPolling'](),this[_0x319bfd(0x330)]=[],this[_0x319bfd(0x165)]=0x0,this[_0x319bfd(0x3cd)]=0x0,this[_0x319bfd(0x1cb)]=0x0;}async[_0xa5554e(0x16e)](_0x3110ac,_0x2d476f){const _0x4516f1=_0xa5554e;for(let _0x4e6796=0x0;_0x4e6796<0x1e;_0x4e6796++)try{if(await this[_0x4516f1(0x1a4)](),this[_0x4516f1(0x39b)]()){this['_applyCommand'](_0x3110ac,_0x2d476f),this[_0x4516f1(0x2b0)][_0x4516f1(0x383)]({'content':this[_0x4516f1(0x3cf)]['t']('formula.calculation.started'),'type':T[_0x4516f1(0x2f2)][_0x4516f1(0x19e)]});return;}await new Promise(_0x25d4c2=>{const _0x483a8b=_0x4516f1;this[_0x483a8b(0x1dd)]=window['setTimeout'](_0x25d4c2,0x3e8);});}catch(_0x5a8892){this[_0x4516f1(0x318)][_0x4516f1(0x21a)](_0x5a8892);}this[_0x4516f1(0x2b0)][_0x4516f1(0x383)]({'content':this['_localeService']['t'](_0x4516f1(0x2c2)),'type':T[_0x4516f1(0x2f2)][_0x4516f1(0x252)]});}[_0xa5554e(0x29a)](_0x179b2e,_0x1f8c1e){const _0x5966c9=_0xa5554e;try{this[_0x5966c9(0x2a7)][_0x5966c9(0x3d1)](_0x179b2e['id'],_0x179b2e['params'],_0x1f8c1e);}catch(_0x4530b8){this[_0x5966c9(0x318)][_0x5966c9(0x21a)](_0x4530b8);}}[_0xa5554e(0x1be)](_0x1cc327,_0x4bedfc){const _0x3a3486=_0xa5554e;_0x4bedfc<this[_0x3a3486(0x1cb)]||(this['_lastResponseTimestamp']=_0x4bedfc,this['_maxFormulaLimit']=Number[_0x3a3486(0x340)](_0x1cc327[_0x3a3486(0x30e)]),this[_0x3a3486(0x165)]=Number[_0x3a3486(0x340)](_0x1cc327[_0x3a3486(0x34e)]));}async[_0xa5554e(0x23c)](_0x30eff8){const _0x39373d=_0xa5554e;var _0x4f69f4,_0x5c4fa2;const _0x2633d4=Date[_0x39373d(0x17a)]();try{const _0x5029e1=((_0x4f69f4=this[_0x39373d(0x333)][_0x39373d(0x3ca)](u[_0x39373d(0x32f)]))==null?void 0x0:_0x4f69f4[_0x39373d(0x28d)])||es,_0x5c5ab1=(await this['_httpService'][_0x39373d(0x31e)](_0x5029e1,{'body':JSON[_0x39373d(0x1eb)]({'taskId':_0x30eff8})}))[_0x39373d(0x20c)];if(((_0x5c4fa2=_0x5c5ab1[_0x39373d(0x21a)])==null?void 0x0:_0x5c4fa2['code'])!==G['OK'])return;this[_0x39373d(0x1be)](_0x5c5ab1['limitInfo'],_0x2633d4);}catch(_0x9feef9){this[_0x39373d(0x318)][_0x39373d(0x21a)](_0x9feef9);}}async[_0xa5554e(0x1a4)](_0x2c7ea5){const _0x43734e=_0xa5554e;var _0x43a178,_0x5f3eb9;const _0x578b85=Date['now']();try{const _0x59fadf=((_0x43a178=this[_0x43734e(0x333)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x43a178['getformulaLimitStatusUrl'])||Qt,_0x14e952=_0x2c7ea5?_0x59fadf+_0x43734e(0x1c6)+encodeURIComponent(_0x2c7ea5):_0x59fadf,_0x3a007d=(await this[_0x43734e(0x3e3)][_0x43734e(0x23e)](_0x14e952))[_0x43734e(0x20c)];if(((_0x5f3eb9=_0x3a007d[_0x43734e(0x21a)])==null?void 0x0:_0x5f3eb9[_0x43734e(0x30c)])!==G['OK'])return;this[_0x43734e(0x1be)](_0x3a007d['limitInfo'],_0x578b85);}catch(_0x2393da){this[_0x43734e(0x318)]['error'](_0x2393da);}}async[_0xa5554e(0x2ac)](_0x12133f){const _0x5667d7=_0xa5554e;var _0xad8785,_0x4d34f3;const _0x3da921=Date[_0x5667d7(0x17a)]();try{const _0x2d8ae4=((_0xad8785=this['_configService'][_0x5667d7(0x3ca)](u[_0x5667d7(0x32f)]))==null?void 0x0:_0xad8785[_0x5667d7(0x272)])||ts,_0x1c5709=(await this[_0x5667d7(0x3e3)][_0x5667d7(0x31e)](_0x2d8ae4,{'body':JSON[_0x5667d7(0x1eb)]({'taskId':_0x12133f})}))[_0x5667d7(0x20c)];if(((_0x4d34f3=_0x1c5709[_0x5667d7(0x21a)])==null?void 0x0:_0x4d34f3[_0x5667d7(0x30c)])!==G['OK'])return;this[_0x5667d7(0x1be)](_0x1c5709['limitInfo'],_0x3da921);}catch(_0x50b7f7){this[_0x5667d7(0x318)][_0x5667d7(0x21a)](_0x50b7f7);}}['_checkCalculationAvailable'](){const _0x525563=_0xa5554e;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x525563(0x3cd)]-this['_currentUsage']>0x0;}[_0xa5554e(0x303)](){const _0x1d44aa=_0xa5554e;this[_0x1d44aa(0x1dd)]&&(clearTimeout(this[_0x1d44aa(0x1dd)]),this[_0x1d44aa(0x1dd)]=null);}['_showGuardMessage'](){const _0x61b928=_0xa5554e;this[_0x61b928(0x2b0)][_0x61b928(0x383)]({'content':this['_localeService']['t'](_0x61b928(0x359)),'type':T[_0x61b928(0x2f2)]['Loading']});}[_0xa5554e(0x373)](_0x5708b7){const _0x313a6d=_0xa5554e;for(const _0x29f2a2 of _0x5708b7){const {unitId:_0x37010a,sheetId:_0x57f276,range:_0x69f8b8}=_0x29f2a2,_0x436b1a=this[_0x313a6d(0x2b3)][_0x313a6d(0x210)](_0x37010a);if(!_0x436b1a)continue;const _0x12c6a5=_0x436b1a['getSheetBySheetId'](_0x57f276);if(!_0x12c6a5)continue;const _0x45f55d=_0x12c6a5[_0x313a6d(0x32a)]();for(let _0x2d7f65=_0x69f8b8[_0x313a6d(0x19d)];_0x2d7f65<=_0x69f8b8[_0x313a6d(0x186)];_0x2d7f65++)for(let _0x46cdef=_0x69f8b8[_0x313a6d(0x3a7)];_0x46cdef<=_0x69f8b8['endColumn'];_0x46cdef++){const _0x5470da=_0x45f55d[_0x313a6d(0x32b)](_0x2d7f65,_0x46cdef);if(_0x5470da&&(a[_0x313a6d(0x3ac)](_0x5470da['f'])||a[_0x313a6d(0x17f)](_0x5470da['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0xa5554e(0x212)](R['IMessageService'])),A(0x1,a[_0xa5554e(0x38d)]),A(0x2,a[_0xa5554e(0x19f)]),A(0x3,a['Inject'](X['HTTPService'])),A(0x4,a[_0xa5554e(0x204)]),A(0x5,a[_0xa5554e(0x3f0)]),A(0x6,a[_0xa5554e(0x212)](a[_0xa5554e(0x326)]))],ie);var ss=Object[_0xa5554e(0x1fa)],is=(_0x2f1726,_0x295b56,_0x3eeaf8,_0x3f9090)=>{const _0x9177eb=_0xa5554e;for(var _0x60b509=_0x3f9090>0x1?void 0x0:_0x3f9090?ss(_0x295b56,_0x3eeaf8):_0x295b56,_0xf4d019=_0x2f1726[_0x9177eb(0x322)]-0x1,_0x5c3386;_0xf4d019>=0x0;_0xf4d019--)(_0x5c3386=_0x2f1726[_0xf4d019])&&(_0x60b509=_0x5c3386(_0x60b509)||_0x60b509);return _0x60b509;},Ie=(_0x47c634,_0x125638)=>(_0x4c59e9,_0x38961b)=>_0x125638(_0x4c59e9,_0x38961b,_0x47c634);let Ce=class extends a[_0xa5554e(0x249)]{constructor(_0x196197,_0x297565,_0x5a2318){const _0x3d53e4=_0xa5554e;super(),_(this,_0x3d53e4(0x399),new Map()),_(this,_0x3d53e4(0x39c),new Map()),_(this,_0x3d53e4(0x314),!0x1),(this[_0x3d53e4(0x333)]=_0x196197,this[_0x3d53e4(0x391)]=_0x297565,this[_0x3d53e4(0x225)]=_0x5a2318);}[_0xa5554e(0x256)](){const _0x3e5b84=_0xa5554e;this[_0x3e5b84(0x314)]=!0x0;}[_0xa5554e(0x1de)](){const _0x4d5e0f=_0xa5554e;this[_0x4d5e0f(0x314)]=!0x1;}get['saveTaskMap'](){const _0x5a4596=_0xa5554e;return this[_0x5a4596(0x39c)];}[_0xa5554e(0x336)](){const _0x26721f=_0xa5554e;this[_0x26721f(0x2a9)]()['then'](()=>super[_0x26721f(0x336)]());}async[_0xa5554e(0x35d)](_0xa48668){const _0xc99e6a=_0xa5554e;return this[_0xc99e6a(0x314)]?null:this[_0xc99e6a(0x391)]['getItem'](u[_0xc99e6a(0x1da)](_0xa48668));}async['saveOfflineData'](_0x4f2c08,_0xa2a329){const _0xddb104=_0xa5554e;return!!this[_0xddb104(0x391)][_0xddb104(0x37f)](_0x4f2c08,_0xa2a329);}[_0xa5554e(0x26e)](_0x41c802,_0x377388,_0x6ca7be,_0x33fbab){const _0x15dc91=_0xa5554e,_0x4b148c=this[_0x15dc91(0x225)][_0x15dc91(0x282)](_0x41c802);this[_0x15dc91(0x399)][_0x15dc91(0x2eb)](_0x41c802,{'unitID':_0x41c802,'type':_0x377388,'awaitingChangeset':_0x6ca7be,'mutations':_0x33fbab,'rev':_0x4b148c}),this[_0x15dc91(0x39c)][_0x15dc91(0x2c8)](_0x41c802)||this[_0x15dc91(0x2f9)](_0x41c802);}[_0xa5554e(0x2f9)](_0x33e1de){const _0x685c51=_0xa5554e,_0x5d33f1=this[_0x685c51(0x221)]();_0x5d33f1===0x0?this[_0x685c51(0x357)](_0x33e1de):this[_0x685c51(0x39c)]['set'](_0x33e1de,setTimeout(()=>this[_0x685c51(0x357)](_0x33e1de),_0x5d33f1));}[_0xa5554e(0x221)](){const _0x26830f=_0xa5554e;var _0x43bc8b;return(_0x43bc8b=this[_0x26830f(0x333)][_0x26830f(0x3ca)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x43bc8b:u[_0x26830f(0x2c5)];}[_0xa5554e(0x357)](_0x1c8dfc){const _0x5f0f66=_0xa5554e,_0x4eb0b1=this['_saveTaskMap'][_0x5f0f66(0x23e)](_0x1c8dfc);return _0x4eb0b1!==void 0x0&&window[_0x5f0f66(0x259)](_0x4eb0b1),this[_0x5f0f66(0x391)][_0x5f0f66(0x37f)](u[_0x5f0f66(0x1da)](_0x1c8dfc),this[_0x5f0f66(0x399)][_0x5f0f66(0x23e)](_0x1c8dfc))[_0x5f0f66(0x28f)](()=>this[_0x5f0f66(0x39c)][_0x5f0f66(0x18a)](_0x1c8dfc));}async['exhaustSavingTask'](){const _0x4e4b0f=_0xa5554e,_0x2edcdb=[];this[_0x4e4b0f(0x39c)][_0x4e4b0f(0x338)]((_0x36c056,_0x4db51d)=>{const _0x631a2b=_0x4e4b0f;window[_0x631a2b(0x259)](_0x36c056),_0x2edcdb[_0x631a2b(0x3a6)](this[_0x631a2b(0x357)](_0x4db51d)['then'](()=>{const _0x3d9f2f=_0x631a2b;this[_0x3d9f2f(0x39c)][_0x3d9f2f(0x18a)](_0x4db51d);}));}),await Promise[_0x4e4b0f(0x1e8)](_0x2edcdb);}};Ce=is([Ie(0x0,a[_0xa5554e(0x19f)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a['Inject'](g[_0xa5554e(0x3c1)]))],Ce);class ke extends a[_0xa5554e(0x264)]{constructor(){const _0x18c0d6=_0xa5554e;super(),_(this,'urlChange$'),this[_0x18c0d6(0x261)]=I[_0x18c0d6(0x3da)](window,_0x18c0d6(0x3f7))[_0x18c0d6(0x2be)](I['takeUntil'](this[_0x18c0d6(0x197)]),I[_0x18c0d6(0x3e6)](0x1),I['mapTo'](void 0x0));}[_0xa5554e(0x301)](_0x3601b6,_0x52250e,_0x18ba16=!0x1){const _0x4256f2=_0xa5554e,_0x209767=new URL(window['location'][_0x4256f2(0x2f3)]);_0x209767[_0x4256f2(0x2ca)][_0x4256f2(0x2eb)](_0x3601b6,_0x52250e),_0x18ba16?window[_0x4256f2(0x35a)][_0x4256f2(0x31f)]('','',_0x209767[_0x4256f2(0x2f0)]()):window[_0x4256f2(0x35a)][_0x4256f2(0x392)]('','',_0x209767['toString']());}[_0xa5554e(0x3a5)](_0x3e10e7,_0xf83855=!0x1){const _0x17d097=_0xa5554e,_0x413b28=new URL(window[_0x17d097(0x1fe)][_0x17d097(0x2f3)]);_0x413b28[_0x17d097(0x2ca)][_0x17d097(0x18a)](_0x3e10e7),_0xf83855?window[_0x17d097(0x35a)][_0x17d097(0x31f)]('','',_0x413b28[_0x17d097(0x2f0)]()):window[_0x17d097(0x35a)][_0x17d097(0x392)]('','',_0x413b28[_0x17d097(0x2f0)]());}[_0xa5554e(0x163)](_0x2c30e5){const _0x4190f0=_0xa5554e;var _0xf02d0a;return(_0xf02d0a=new URL(window[_0x4190f0(0x1fe)][_0x4190f0(0x2f3)])['searchParams'][_0x4190f0(0x23e)](_0x2c30e5))!=null?_0xf02d0a:void 0x0;}}var ns=Object[_0xa5554e(0x384)],rs=Object['getOwnPropertyDescriptor'],os=(_0x343e19,_0x283e3f,_0x33196c)=>_0x283e3f in _0x343e19?ns(_0x343e19,_0x283e3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33196c}):_0x343e19[_0x283e3f]=_0x33196c,as=(_0x409e0f,_0x385cfc,_0x133847,_0x553af2)=>{const _0xdea4d9=_0xa5554e;for(var _0x88bfed=_0x553af2>0x1?void 0x0:_0x553af2?rs(_0x385cfc,_0x133847):_0x385cfc,_0x597f67=_0x409e0f[_0xdea4d9(0x322)]-0x1,_0x9f003f;_0x597f67>=0x0;_0x597f67--)(_0x9f003f=_0x409e0f[_0x597f67])&&(_0x88bfed=_0x9f003f(_0x88bfed)||_0x88bfed);return _0x88bfed;},de=(_0x4146b9,_0xad75e5)=>(_0x3d8c60,_0x50126c)=>_0xad75e5(_0x3d8c60,_0x50126c,_0x4146b9),cs=(_0x9b609c,_0x37936b,_0x149764)=>os(_0x9b609c,_0x37936b+'',_0x149764);const ls=_0xa5554e(0x31b);exports[_0xa5554e(0x182)]=class extends a[_0xa5554e(0x3a1)]{constructor(_0x4d0217=Le,_0x4f05fe,_0x5d6cc0,_0x3d6be8){const _0x4725fc=_0xa5554e;super(),this[_0x4725fc(0x1e0)]=_0x4d0217,this['_renderManagerService']=_0x4f05fe,this[_0x4725fc(0x2c1)]=_0x5d6cc0,this[_0x4725fc(0x333)]=_0x3d6be8;const {..._0x2ae317}=a[_0x4725fc(0x25b)]({},Le,this['_config']);this['_configService'][_0x4725fc(0x34c)](kt,_0x2ae317);}[_0xa5554e(0x172)](){const _0x4a46ff=_0xa5554e;this[_0x4a46ff(0x15f)](),this[_0x4a46ff(0x260)]();}[_0xa5554e(0x361)](){const _0x55cb9f=_0xa5554e;this[_0x55cb9f(0x2e4)]();}['_registerDependencies'](){const _0x5a57bc=_0xa5554e;var _0x34579a;const _0x168791=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x5a57bc(0x196)],{'useClass':X[_0x5a57bc(0x375)]}],[u[_0x5a57bc(0x321)],{'useClass':Ce}],[exports[_0x5a57bc(0x372)]],[se],[Z],[F],[fe],[exports[_0x5a57bc(0x403)]]];a[_0x5a57bc(0x1af)](this[_0x5a57bc(0x2c1)],a['mergeOverrideWithDependencies'](_0x168791,(_0x34579a=this[_0x5a57bc(0x1e0)])==null?void 0x0:_0x34579a[_0x5a57bc(0x3e9)]));}['_registerRenderDependencies'](){const _0x130dfe=_0xa5554e;this[_0x130dfe(0x1c2)](this[_0x130dfe(0x291)][_0x130dfe(0x24e)](a['UniverInstanceType'][_0x130dfe(0x3fb)],[ge])),this[_0x130dfe(0x1c2)](this[_0x130dfe(0x291)]['registerRenderModule'](a['UniverInstanceType'][_0x130dfe(0x2c9)],[Ee]));}[_0xa5554e(0x260)](){const _0x1f5730=_0xa5554e;a[_0x1f5730(0x405)](this[_0x1f5730(0x2c1)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[exports[_0x1f5730(0x403)]],[ie]]);}},cs(exports['UniverCollaborationClientUIPlugin'],_0xa5554e(0x2cb),ls),exports[_0xa5554e(0x182)]=as([a[_0xa5554e(0x2a0)](u[_0xa5554e(0x1d9)]),de(0x1,C[_0xa5554e(0x397)]),de(0x2,a[_0xa5554e(0x212)](a[_0xa5554e(0x36a)])),de(0x3,a['IConfigService'])],exports[_0xa5554e(0x182)]);var _s=Object[_0xa5554e(0x1fa)],hs=(_0x5cb366,_0x493f06,_0x4fe047,_0x1d93b1)=>{const _0x2c509f=_0xa5554e;for(var _0x4f0b64=_0x1d93b1>0x1?void 0x0:_0x1d93b1?_s(_0x493f06,_0x4fe047):_0x493f06,_0x2d457b=_0x5cb366[_0x2c509f(0x322)]-0x1,_0x31e75a;_0x2d457b>=0x0;_0x2d457b--)(_0x31e75a=_0x5cb366[_0x2d457b])&&(_0x4f0b64=_0x31e75a(_0x4f0b64)||_0x4f0b64);return _0x4f0b64;},W=(_0x77e32c,_0xd8d91f)=>(_0x14bd48,_0x252061)=>_0xd8d91f(_0x14bd48,_0x252061,_0x77e32c);exports[_0xa5554e(0x3e8)]=class extends u[_0xa5554e(0x2dd)]{constructor(_0x232215,_0x346bfd,_0x48ad4f,_0x2f8f57,_0x3128a0){super(_0x232215,_0x346bfd,_0x48ad4f,_0x2f8f57,_0x3128a0);}async['createSocket'](_0x4f55c7){const _0x4128ea=_0xa5554e,_0x2818d0=await this[_0x4128ea(0x364)](),_0x3e33e8=this[_0x4128ea(0x2fe)](_0x4f55c7,_0x2818d0);return this[_0x4128ea(0x3d7)](_0x3e33e8);}[_0xa5554e(0x2fe)](_0x538408,_0x530552){const _0x4eb4e3=_0xa5554e,_0x51f31c=typeof window>'u'?new URL(_0x538408):new URL(_0x538408,window['location'][_0x4eb4e3(0x157)]);_0x51f31c[_0x4eb4e3(0x2ca)]['set']('sessionTicket',_0x530552);const _0x303a61=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4eb4e3(0x1fe)]['search']);return _0x303a61[_0x4eb4e3(0x23e)](_0x4eb4e3(0x312))&&_0x51f31c[_0x4eb4e3(0x2ca)]['set'](_0x4eb4e3(0x312),_0x303a61[_0x4eb4e3(0x23e)]('runId')),_0x51f31c['toString']();}async[_0xa5554e(0x364)](){const _0xda4ae9=_0xa5554e;var _0x2e42a1,_0x871d6a,_0x4e3eb1;const _0x54a037=this[_0xda4ae9(0x333)][_0xda4ae9(0x3ca)](u[_0xda4ae9(0x32f)]),_0x294a03=(_0x2e42a1=_0x54a037==null?void 0x0:_0x54a037[_0xda4ae9(0x34a)])!=null?_0x2e42a1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4e3eb1=(_0x871d6a=(await this[_0xda4ae9(0x3e3)]['get'](_0x294a03,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x871d6a[_0xda4ae9(0x352)])!=null?_0x4e3eb1:'';}},exports[_0xa5554e(0x3e8)]=hs([W(0x0,a[_0xa5554e(0x212)](a['Injector'])),W(0x1,a[_0xa5554e(0x212)](X[_0xa5554e(0x247)])),W(0x2,a[_0xa5554e(0x19f)]),W(0x3,a[_0xa5554e(0x3f0)]),W(0x4,g[_0xa5554e(0x24b)])],exports[_0xa5554e(0x3e8)]);var us=Object[_0xa5554e(0x1fa)],Is=(_0x2100c1,_0xd65553,_0x6d10e1,_0x5a7e77)=>{const _0x20bb5d=_0xa5554e;for(var _0xdc7721=_0x5a7e77>0x1?void 0x0:_0x5a7e77?us(_0xd65553,_0x6d10e1):_0xd65553,_0x5592d4=_0x2100c1[_0x20bb5d(0x322)]-0x1,_0x27b92f;_0x5592d4>=0x0;_0x5592d4--)(_0x27b92f=_0x2100c1[_0x5592d4])&&(_0xdc7721=_0x27b92f(_0xdc7721)||_0xdc7721);return _0xdc7721;},Se=(_0x2085ae,_0x56af8a)=>(_0x2f18f9,_0x5d2ff2)=>_0x56af8a(_0x2f18f9,_0x5d2ff2,_0x2085ae);exports['RemoteUniscriptService']=class extends a[_0xa5554e(0x249)]{constructor(_0x5185f9,_0xa9bb3e,_0x2aed44){const _0x52daea=_0xa5554e;super(),this['_instanceService']=_0x5185f9,this['_httpService']=_0xa9bb3e,this[_0x52daea(0x333)]=_0x2aed44;}async[_0xa5554e(0x2fc)](_0xd34a73,_0x4cacce,_0x2ab5a3,..._0x298991){const _0x4e3b0a=_0xa5554e;var _0x307a42,_0x35d525,_0x208125,_0x280baa;const _0x356f81=this[_0x4e3b0a(0x184)][_0x4e3b0a(0x2ec)]();if(!_0x356f81)throw new Error(_0x4e3b0a(0x1f6));const _0x1cc5f0=((_0x307a42=this[_0x4e3b0a(0x333)]['getConfig'](u[_0x4e3b0a(0x2de)]))!=null?_0x307a42:u[_0x4e3b0a(0x3aa)])+'/'+_0xd34a73+_0x4e3b0a(0x25a)+_0x4cacce,_0x2e8761=new URL(window['location']['href']),_0x4b106e={'scriptId':_0xd34a73,'runId':(_0x35d525=_0x2e8761[_0x4e3b0a(0x2ca)][_0x4e3b0a(0x23e)](_0x4e3b0a(0x312)))!=null?_0x35d525:'','function':_0x4cacce,'unitId':_0x356f81[_0x4e3b0a(0x2bb)](),'argsOfFunction':JSON['stringify'](_0x298991),'invokeId':(_0x208125=_0x2ab5a3[_0x4e3b0a(0x1b9)])!=null?_0x208125:'','executionId':(_0x280baa=_0x2ab5a3[_0x4e3b0a(0x179)])!=null?_0x280baa:''};try{const _0xc4ac89=await this[_0x4e3b0a(0x3e3)][_0x4e3b0a(0x31e)](_0x1cc5f0,{'body':_0x4b106e});return _0xc4ac89['body'][_0x4e3b0a(0x21a)]&&_0xc4ac89[_0x4e3b0a(0x20c)]['error']['code']!==G['OK']?'Failed':_0xc4ac89[_0x4e3b0a(0x20c)][_0x4e3b0a(0x17d)];}catch{return _0x4e3b0a(0x3d9);}}},exports[_0xa5554e(0x31c)]=Is([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0xa5554e(0x212)](X[_0xa5554e(0x247)])),Se(0x2,a['IConfigService'])],exports[_0xa5554e(0x31c)]);const Pe=0x7530,we=_0xa5554e(0x306);class ds extends a[_0xa5554e(0x249)]{constructor(){const _0x22a813=_0xa5554e;super(),_(this,_0x22a813(0x1c9),a['generateRandomId']()),_(this,_0x22a813(0x3ee),new Set()),_(this,_0x22a813(0x200),new Map()),_(this,_0x22a813(0x17b),null),_(this,_0x22a813(0x192),new Map()),_(this,_0x22a813(0x1a8),new Map()),this[_0x22a813(0x269)]();}['dispose'](){const _0x470aa8=_0xa5554e;super[_0x470aa8(0x336)](),this[_0x470aa8(0x192)][_0x470aa8(0x338)]((_0xa8b256,_0xe824f9)=>this[_0x470aa8(0x223)](_0xe824f9)),this['_heartbeatTimer']&&window[_0x470aa8(0x3b1)](this[_0x470aa8(0x17b)]);}[_0xa5554e(0x29d)](_0x155942){const _0xb09641=_0xa5554e;return this[_0xb09641(0x3e1)](_0x155942)[_0xb09641(0x2be)](I[_0xb09641(0x2a3)]());}['editingUnit'](_0xe57f70){const _0x14f315=_0xa5554e;this[_0x14f315(0x3ee)]['size']===0x0&&this[_0x14f315(0x2ee)](),this[_0x14f315(0x3ee)][_0x14f315(0x235)](_0xe57f70),this[_0x14f315(0x36f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xe57f70],'isForwarded':!0x1});}[_0xa5554e(0x16c)](_0x4e70c9){const _0xfac20d=_0xa5554e;this[_0xfac20d(0x3ee)][_0xfac20d(0x18a)](_0x4e70c9),this[_0xfac20d(0x3ee)][_0xfac20d(0x1bf)]===0x0&&this['_heartbeatTimer']&&window[_0xfac20d(0x3b1)](this[_0xfac20d(0x17b)]);}[_0xa5554e(0x269)](){const _0x2ec7d4=_0xa5554e;this['disposeWithMe'](a[_0x2ec7d4(0x2f4)](I[_0x2ec7d4(0x3da)](window,_0x2ec7d4(0x1ce))[_0x2ec7d4(0x3cb)](_0x4ebac0=>{const _0x380513=_0x2ec7d4;if(_0x4ebac0['key']!==we||!_0x4ebac0[_0x380513(0x166)])return;const _0x3f2f7a=JSON[_0x380513(0x168)](_0x4ebac0[_0x380513(0x166)]);this[_0x380513(0x286)](_0x3f2f7a);}))),window[_0x2ec7d4(0x22f)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2ec7d4(0x1c9)],'unitIDs':Array[_0x2ec7d4(0x26b)](this[_0x2ec7d4(0x3ee)])}));}[_0xa5554e(0x286)](_0x4c4676){const _0x4f0faf=_0xa5554e;switch(_0x4c4676['type']){case 0x0:this[_0x4f0faf(0x1b8)](_0x4c4676);break;case 0x1:this[_0x4f0faf(0x274)](_0x4c4676);break;case 0x2:this['_handleHeartbeatEvent'](_0x4c4676);break;}}['_handleJoinEvent'](_0x1cd32e){const _0x2dc598=_0xa5554e,{unitIDs:_0x23321d,memberID:_0x5f06c0,isForwarded:_0x38c542}=_0x1cd32e;_0x23321d[_0x2dc598(0x338)](_0x294fa2=>{const _0x284eb4=_0x2dc598;if(!_0x38c542&&this[_0x284eb4(0x200)][_0x284eb4(0x2c8)](_0x294fa2)&&this[_0x284eb4(0x3e1)](_0x294fa2)[_0x284eb4(0x3d5)](u[_0x284eb4(0x2ce)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x294fa2)||!this[_0x284eb4(0x200)]['get'](_0x294fa2)[_0x284eb4(0x2c8)](_0x5f06c0)){const _0x319275=this[_0x284eb4(0x200)][_0x284eb4(0x23e)](_0x294fa2)||new Set();_0x319275[_0x284eb4(0x235)](_0x5f06c0),this[_0x284eb4(0x200)][_0x284eb4(0x2eb)](_0x294fa2,_0x319275),this[_0x284eb4(0x187)](_0x5f06c0);}}),_0x38c542||this[_0x2dc598(0x36f)]({'type':0x0,'memberID':this[_0x2dc598(0x1c9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58e12e){const _0x7709a0=_0xa5554e;this[_0x7709a0(0x223)](_0x58e12e);const _0x1ab939=window['setTimeout'](()=>{const _0x33c9c5=_0x7709a0;this['_unitOnClients'][_0x33c9c5(0x338)](_0x203647=>{const _0x2c0954=_0x33c9c5;_0x203647[_0x2c0954(0x18a)](_0x58e12e);});},Pe*0x2);this[_0x7709a0(0x192)][_0x7709a0(0x2eb)](_0x58e12e,_0x1ab939);}[_0xa5554e(0x223)](_0x5a54f5){const _0x5b7b96=_0xa5554e;if(this['_clearOtherTimers'][_0x5b7b96(0x2c8)](_0x5a54f5)){const _0x115d14=this[_0x5b7b96(0x192)][_0x5b7b96(0x23e)](_0x5a54f5);_0x115d14&&window[_0x5b7b96(0x259)](_0x115d14),this[_0x5b7b96(0x192)][_0x5b7b96(0x2eb)](_0x5a54f5,null);}}['_handleLeaveEvent'](_0x3397f9){const _0x3510bb=_0xa5554e,{memberID:_0x5a836b,unitIDs:_0x4d31d5}=_0x3397f9;_0x4d31d5[_0x3510bb(0x338)](_0x29784b=>{const _0xa79722=_0x3510bb;var _0x53370e;const _0xe7a647=this[_0xa79722(0x200)]['get'](_0x29784b);_0xe7a647&&(_0xe7a647[_0xa79722(0x18a)](_0x5a836b),(_0x53370e=this['_ensureSubject'](_0x29784b))==null||_0x53370e['next'](_0xe7a647[_0xa79722(0x1bf)]===0x0?u['UnitStatus'][_0xa79722(0x201)]:u[_0xa79722(0x2ce)][_0xa79722(0x3be)]));}),this[_0x3510bb(0x223)](_0x5a836b);}[_0xa5554e(0x308)](_0x235d6c){const _0x3cff13=_0xa5554e;this[_0x3cff13(0x187)](_0x235d6c['memberID']);}[_0xa5554e(0x36f)](_0x1d03ba){const _0x2c3576=_0xa5554e;localStorage[_0x2c3576(0x37f)](we,JSON[_0x2c3576(0x1eb)](_0x1d03ba));}[_0xa5554e(0x2ee)](){const _0x3d21bf=_0xa5554e;this[_0x3d21bf(0x17b)]=window[_0x3d21bf(0x1df)](()=>{const _0x33b28d=_0x3d21bf;this[_0x33b28d(0x36f)]({'type':0x2,'memberID':this[_0x33b28d(0x1c9)]});},Pe);}['_ensureSubject'](_0x2d9057){const _0x38998e=_0xa5554e;return this[_0x38998e(0x1a8)][_0x38998e(0x2c8)](_0x2d9057)||this['_unitStatus'][_0x38998e(0x2eb)](_0x2d9057,new I[(_0x38998e(0x189))](u[_0x38998e(0x2ce)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x38998e(0x23e)](_0x2d9057);}}exports['IURLService']=Te,exports[_0xa5554e(0x1d2)]=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports['WebURLService']=ke;