@univerjs-pro/collaboration-client-ui 0.12.2-nightly.202511290732 → 0.12.2-nightly.202511290905

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x351cc3=_0xf8a9;(function(_0x15b72a,_0xb8f6e){const _0x51ba3f=_0xf8a9,_0x3d8f03=_0x15b72a();while(!![]){try{const _0x4e6f8a=-parseInt(_0x51ba3f(0x2fc))/0x1+parseInt(_0x51ba3f(0x309))/0x2*(parseInt(_0x51ba3f(0x285))/0x3)+-parseInt(_0x51ba3f(0x49a))/0x4+-parseInt(_0x51ba3f(0x327))/0x5+parseInt(_0x51ba3f(0x44e))/0x6+parseInt(_0x51ba3f(0x2ee))/0x7*(-parseInt(_0x51ba3f(0x353))/0x8)+parseInt(_0x51ba3f(0x3e5))/0x9;if(_0x4e6f8a===_0xb8f6e)break;else _0x3d8f03['push'](_0x3d8f03['shift']());}catch(_0x5b249b){_0x3d8f03['push'](_0x3d8f03['shift']());}}}(_0x3013,0x23b83));var Xe=Object[_0x351cc3(0x344)],Ke=(_0x393984,_0x5be483,_0x131aa5)=>_0x5be483 in _0x393984?Xe(_0x393984,_0x5be483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131aa5}):_0x393984[_0x5be483]=_0x131aa5,_=(_0x3ab7b5,_0x1a20b4,_0x41fecc)=>Ke(_0x3ab7b5,typeof _0x1a20b4!='symbol'?_0x1a20b4+'':_0x1a20b4,_0x41fecc);Object[_0x351cc3(0x344)](exports,Symbol[_0x351cc3(0x2e9)],{'value':_0x351cc3(0x1f2)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0xb9fd16,..._0x3ba0af}){const _0x21b6bc=_0x351cc3,{icon:_0x3d5b90,id:_0x5951d6,className:_0x22f591,extend:_0x51c5b0,..._0x396cd6}=_0x3ba0af,_0x28517b=(_0x21b6bc(0x3c9)+_0x5951d6+'\x20'+(_0x22f591||''))[_0x21b6bc(0x45b)](),_0x37f103=A['useRef']('_'+Qe());return $e(_0x3d5b90,''+_0x5951d6,{'defIds':_0x3d5b90[_0x21b6bc(0x27e)],'idSuffix':_0x37f103[_0x21b6bc(0x239)]},{'ref':_0xb9fd16,'className':_0x28517b,..._0x396cd6},_0x51c5b0);}function $e(_0x2498f8,_0x2b4410,_0x432656,_0x2bca81,_0x1b6f07){const _0x2b3980=_0x351cc3;return A[_0x2b3980(0x278)](_0x2498f8[_0x2b3980(0x2fa)],{'key':_0x2b4410,...Je(_0x2498f8,_0x432656,_0x1b6f07),..._0x2bca81},(Ze(_0x2498f8,_0x432656)[_0x2b3980(0x39e)]||[])[_0x2b3980(0x246)]((_0x5b28bb,_0x2edffc)=>$e(_0x5b28bb,_0x2b4410+'-'+_0x2498f8[_0x2b3980(0x2fa)]+'-'+_0x2edffc,_0x432656,void 0x0,_0x1b6f07)));}function Je(_0x16aad5,_0x3c832e,_0x2f744f){const _0x5dec67=_0x351cc3,_0x53c748={..._0x16aad5[_0x5dec67(0x3f0)]};_0x2f744f!=null&&_0x2f744f['colorChannel1']&&_0x53c748['fill']===_0x5dec67(0x214)&&(_0x53c748['fill']=_0x2f744f['colorChannel1']),_0x16aad5[_0x5dec67(0x2fa)]===_0x5dec67(0x406)&&_0x53c748['id']&&(_0x53c748['id']=_0x53c748['id']+_0x3c832e[_0x5dec67(0x3db)]),Object[_0x5dec67(0x3fc)](_0x53c748)['forEach'](([_0x23a901,_0x1bffbe])=>{const _0x4e768d=_0x5dec67;_0x23a901===_0x4e768d(0x406)&&typeof _0x1bffbe==_0x4e768d(0x3e9)&&(_0x53c748[_0x23a901]=_0x1bffbe[_0x4e768d(0x41c)](/url\(#(.*)\)/,_0x4e768d(0x295)+_0x3c832e[_0x4e768d(0x3db)]+')'));});const {defIds:_0x4b3725}=_0x3c832e;return!_0x4b3725||_0x4b3725['length']===0x0||(_0x16aad5[_0x5dec67(0x2fa)]===_0x5dec67(0x2b5)&&_0x53c748[_0x5dec67(0x4b5)]&&(_0x53c748[_0x5dec67(0x4b5)]=_0x53c748[_0x5dec67(0x4b5)]+_0x3c832e[_0x5dec67(0x3db)]),Object[_0x5dec67(0x3fc)](_0x53c748)[_0x5dec67(0x264)](([_0x56fb6e,_0x29741e])=>{const _0x3911de=_0x5dec67;typeof _0x29741e==_0x3911de(0x3e9)&&(_0x53c748[_0x56fb6e]=_0x29741e[_0x3911de(0x41c)](/url\(#(.*)\)/,_0x3911de(0x295)+_0x3c832e[_0x3911de(0x3db)]+')'));})),_0x53c748;}function Ze(_0x19511d,_0x1d14e3){const _0x3aa473=_0x351cc3;var _0x7f60be;const {defIds:_0x5cb77b}=_0x1d14e3;return!_0x5cb77b||_0x5cb77b[_0x3aa473(0x241)]===0x0?_0x19511d:_0x19511d['tag']===_0x3aa473(0x1f1)&&((_0x7f60be=_0x19511d[_0x3aa473(0x39e)])!=null&&_0x7f60be[_0x3aa473(0x241)])?{..._0x19511d,'children':_0x19511d['children']['map'](_0x3728d2=>typeof _0x3728d2['attrs']['id']==_0x3aa473(0x3e9)&&_0x5cb77b&&_0x5cb77b[_0x3aa473(0x400)](_0x3728d2[_0x3aa473(0x3f0)]['id'])?{..._0x3728d2,'attrs':{..._0x3728d2['attrs'],'id':_0x3728d2[_0x3aa473(0x3f0)]['id']+_0x1d14e3['idSuffix']}}:_0x3728d2)}:_0x19511d;}function Qe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Te['displayName']=_0x351cc3(0x2af);const et={'tag':_0x351cc3(0x422),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x351cc3(0x3e7),'width':_0x351cc3(0x3b5),'height':_0x351cc3(0x3b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x351cc3(0x3e1)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'stroke':'currentColor','d':_0x351cc3(0x224),'strokeLinecap':_0x351cc3(0x24e),'strokeLinejoin':_0x351cc3(0x24e),'strokeWidth':1.2}}]},{'tag':_0x351cc3(0x1f1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x351cc3(0x3c5)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'fill':'white','d':_0x351cc3(0x205)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x351cc3(0x289)](function(_0x1c1daa,_0x560511){const _0x5208e8=_0x351cc3;return A[_0x5208e8(0x278)](Te,Object[_0x5208e8(0x2b0)]({},_0x1c1daa,{'id':_0x5208e8(0x2d8),'ref':_0x560511,'icon':et}));});xe[_0x351cc3(0x3e6)]=_0x351cc3(0x41e);const tt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x351cc3(0x28d),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x351cc3(0x3b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x351cc3(0x480)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'stroke':_0x351cc3(0x2a4),'d':_0x351cc3(0x3af),'strokeLinecap':'round','strokeLinejoin':_0x351cc3(0x24e),'strokeWidth':1.2}}]},{'tag':_0x351cc3(0x1f1),'attrs':{},'children':[{'tag':_0x351cc3(0x34c),'attrs':{'id':_0x351cc3(0x3ab)},'children':[{'tag':'path','attrs':{'fill':_0x351cc3(0x31c),'d':'M0\x200H16V16H0z','transform':_0x351cc3(0x24a)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x351cc3(0x289)](function(_0x5786db,_0x14e4e5){const _0x8dd73a=_0x351cc3;return A[_0x8dd73a(0x278)](Te,Object[_0x8dd73a(0x2b0)]({},_0x5786db,{'id':_0x8dd73a(0x402),'ref':_0x14e4e5,'icon':tt}));});Be[_0x351cc3(0x3e6)]=_0x351cc3(0x221);function st(_0x2ee364){const _0x35c2d9=_0x351cc3;switch(_0x2ee364){case u['CollaborationStatus']['OFFLINE']:return _0x35c2d9(0x376);case u['CollaborationStatus']['CONFLICT']:return _0x35c2d9(0x312);case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x249)]:return'collabStatus.fetchMiss';case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x434)]:return _0x35c2d9(0x3ff);case u[_0x35c2d9(0x3d9)]['AWAITING']:case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x21c)]:return _0x35c2d9(0x303);case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x41b)]:case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x395)]:return _0x35c2d9(0x359);}}function it(_0x1c7f5f){const _0x33c1ac=_0x351cc3,{status$:_0x63d289}=_0x1c7f5f,_0x224654=O[_0x33c1ac(0x33e)](_0x63d289,u[_0x33c1ac(0x3d9)]['NOT_COLLAB']),_0xe07b38=O[_0x33c1ac(0x298)](a[_0x33c1ac(0x2bb)]),_0x285a3d=O[_0x33c1ac(0x298)](u[_0x33c1ac(0x3e0)]),_0x5446a1=_0x224654!==u[_0x33c1ac(0x3d9)][_0x33c1ac(0x40b)],_0x4cb866=_0xe07b38['t'](st(_0x224654)),_0x39d2e9=_0x5446a1?M['jsx'](Be,{}):M[_0x33c1ac(0x26d)](xe,{}),_0x1c02d3=A[_0x33c1ac(0x351)](()=>{const _0x1d288b=_0x33c1ac;_0x5446a1||_0x285a3d[_0x1d288b(0x36f)]();},[_0x5446a1,_0x285a3d]);function _0x41b72c(){const _0x3b364c=_0x33c1ac;return M[_0x3b364c(0x233)](_0x3b364c(0x3d5),{'className':'univer-flex\x20univer-items-center','onClick':_0x1c02d3,'children':[M[_0x3b364c(0x26d)]('div',{'className':T[_0x3b364c(0x3d7)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x5446a1,'univer-text-red-500':!_0x5446a1}),'children':_0x39d2e9}),M[_0x3b364c(0x26d)](_0x3b364c(0x3d5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4cb866})]});}return _0x5446a1?_0x41b72c():M['jsx'](T[_0x33c1ac(0x36e)],{'title':_0xe07b38['t'](_0x33c1ac(0x20d)),'children':_0x41b72c()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0xf31aed,_0x9dcef5,_0x31aa7f,_0x1f1b94)=>{for(var _0x1f320f=_0x1f1b94>0x1?void 0x0:_0x1f1b94?nt(_0x9dcef5,_0x31aa7f):_0x9dcef5,_0x37d728=_0xf31aed['length']-0x1,_0xcd0943;_0x37d728>=0x0;_0x37d728--)(_0xcd0943=_0xf31aed[_0x37d728])&&(_0x1f320f=_0xcd0943(_0x1f320f)||_0x1f320f);return _0x1f320f;},K=(_0x262fc4,_0x5dfb63)=>(_0x35da50,_0x249337)=>_0x5dfb63(_0x35da50,_0x249337,_0x262fc4);exports[_0x351cc3(0x475)]=class extends a[_0x351cc3(0x37b)]{constructor(_0x35c52d,_0x3272e0,_0x9a42f,_0x2cbf5e){const _0xe8de88=_0x351cc3;super(),_(this,_0xe8de88(0x293),new I['BehaviorSubject'](u['CollaborationStatus'][_0xe8de88(0x434)])),(this['_univerInstanceService']=_0x35c52d,this[_0xe8de88(0x37f)]=_0x3272e0,this[_0xe8de88(0x31f)]=_0x9a42f,this[_0xe8de88(0x2d6)]=_0x2cbf5e,this[_0xe8de88(0x41f)](),this['_initStatusListener']());}[_0x351cc3(0x237)](){const _0x65ef85=_0x351cc3;this[_0x65ef85(0x248)](this[_0x65ef85(0x2bf)][_0x65ef85(0x2db)][_0x65ef85(0x38b)](I[_0x65ef85(0x424)](()=>{const _0x53cb8d=_0x65ef85,_0x3793e9=this[_0x53cb8d(0x2bf)][_0x53cb8d(0x22e)]();return _0x3793e9?this[_0x53cb8d(0x31f)][_0x53cb8d(0x21e)](_0x3793e9[_0x53cb8d(0x3b1)]()):I['of'](null);}),I[_0x65ef85(0x424)](_0x59805e=>_0x59805e?_0x59805e['status$']:I['of'](u[_0x65ef85(0x3d9)][_0x65ef85(0x434)])))['subscribe'](_0x49b26a=>{const _0x1b5883=_0x65ef85;this[_0x1b5883(0x293)]['next'](_0x49b26a);}));}[_0x351cc3(0x41f)](){const _0x12bf72=_0x351cc3;this[_0x12bf72(0x248)](this['_uiPartsService']['registerComponent'](O[_0x12bf72(0x336)][_0x12bf72(0x372)],()=>O[_0x12bf72(0x401)](ot({'status$':this['_status$']['asObservable']()}),this[_0x12bf72(0x37f)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x351cc3(0x314)]),K(0x1,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),K(0x2,a[_0x351cc3(0x257)](u[_0x351cc3(0x397)])),K(0x3,O[_0x351cc3(0x2e8)])],exports[_0x351cc3(0x475)]);function ot(_0x3556e0){const {status$:_0x37e290}=_0x3556e0;return function(){const _0x3904f0=_0xf8a9;return M[_0x3904f0(0x26d)](it,{'status$':_0x37e290});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x351cc3(0x343)],ct=(_0x2258df,_0x2d4ed8,_0xb714b9,_0x16ea34)=>{const _0x118d29=_0x351cc3;for(var _0x5b4876=_0x16ea34>0x1?void 0x0:_0x16ea34?at(_0x2d4ed8,_0xb714b9):_0x2d4ed8,_0x37fd70=_0x2258df[_0x118d29(0x241)]-0x1,_0x4868d7;_0x37fd70>=0x0;_0x37fd70--)(_0x4868d7=_0x2258df[_0x37fd70])&&(_0x5b4876=_0x4868d7(_0x5b4876)||_0x5b4876);return _0x5b4876;},Y=(_0x41df15,_0x1c087d)=>(_0x3e4faa,_0x2498e8)=>_0x1c087d(_0x3e4faa,_0x2498e8,_0x41df15);exports[_0x351cc3(0x29d)]=class extends a[_0x351cc3(0x487)]{constructor(_0x20af14,_0x3efc37,_0x1e664b,_0x379474,_0x1d1ebf){const _0x252b2c=_0x351cc3;super(),this['_urlService']=_0x20af14,this['_logService']=_0x3efc37,this[_0x252b2c(0x3f2)]=_0x1e664b,this[_0x252b2c(0x3c8)]=_0x379474,_0x1d1ebf?_0x1d1ebf==null||_0x1d1ebf['whenReady']()['then'](()=>this[_0x252b2c(0x331)]()):(this['_logService'][_0x252b2c(0x276)]('[CollaborationDataLoaderController]',_0x252b2c(0x3b6)),this['_init']());}async[_0x351cc3(0x331)](){const _0x242dcc=_0x351cc3,_0x214ed4=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x268)),_0x417ebd=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x3d4)),_0x1edf7d=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x3c0));if(!_0x214ed4||!_0x417ebd){this['_logService'][_0x242dcc(0x276)](_0x242dcc(0x461),_0x242dcc(0x2cd));return;}const _0x23f31c=await this[_0x242dcc(0x3c8)][_0x242dcc(0x45e)](_0x214ed4,Number(_0x417ebd),_0x1edf7d);_0x23f31c&&_0x23f31c instanceof a[_0x242dcc(0x419)]&&this[_0x242dcc(0x3f9)](_0x23f31c);}async[_0x351cc3(0x3f9)](_0x57bcc1){const _0x49366d=_0x351cc3;await this[_0x49366d(0x44b)](_0x57bcc1),_0x57bcc1['activeSheet$'][_0x49366d(0x38b)](I[_0x49366d(0x3f1)](this[_0x49366d(0x40d)]))[_0x49366d(0x3b4)](_0x327c8e=>{_0x327c8e&&this['_updateURLWithCurrentState'](_0x327c8e);}),this[_0x49366d(0x202)][_0x49366d(0x2f9)][_0x49366d(0x38b)](I[_0x49366d(0x3f1)](this[_0x49366d(0x40d)]))[_0x49366d(0x3b4)](()=>this[_0x49366d(0x44b)](_0x57bcc1));}[_0x351cc3(0x291)](_0x5a65c8,_0x2956e4=!0x1){const _0x5b68e1=_0x351cc3,_0x10162b=this['_urlService'][_0x5b68e1(0x2d2)](_0x5b68e1(0x3c0));_0x5a65c8[_0x5b68e1(0x45d)]()!==_0x10162b&&this[_0x5b68e1(0x202)][_0x5b68e1(0x1f8)]('subunit',_0x5a65c8[_0x5b68e1(0x45d)](),_0x2956e4);}async[_0x351cc3(0x44b)](_0x22b8c5){const _0x32ad69=_0x351cc3;var _0x6a8f23;const _0x453fff=this[_0x32ad69(0x202)][_0x32ad69(0x2d2)](_0x32ad69(0x3c0));if(!_0x453fff||!_0x22b8c5[_0x32ad69(0x42b)](_0x453fff)){const _0x3bf9fc=_0x22b8c5[_0x32ad69(0x4a8)]()[0x0],_0x5d44f3=_0x22b8c5[_0x32ad69(0x42b)](_0x3bf9fc);if(!_0x5d44f3)return;this[_0x32ad69(0x291)](_0x5d44f3,!0x0),await this[_0x32ad69(0x3f2)][_0x32ad69(0x222)](v[_0x32ad69(0x3cf)]['id'],{'unitId':_0x22b8c5[_0x32ad69(0x3b1)](),'subUnitId':_0x3bf9fc});return;}((_0x6a8f23=_0x22b8c5[_0x32ad69(0x207)]())==null?void 0x0:_0x6a8f23[_0x32ad69(0x45d)]())!==_0x453fff&&await this[_0x32ad69(0x3f2)][_0x32ad69(0x222)](v[_0x32ad69(0x3cf)]['id'],{'unitId':_0x22b8c5['getUnitId'](),'subUnitId':_0x453fff});}},exports[_0x351cc3(0x29d)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x351cc3(0x43d)])),Y(0x4,a[_0x351cc3(0x35f)](qe[_0x351cc3(0x2c8)]))],exports[_0x351cc3(0x29d)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x1a87df,_0x332d3f,_0x59c7e6,_0x1ba9c4)=>{const _0x120f8e=_0x351cc3;for(var _0x3c9683=_0x1ba9c4>0x1?void 0x0:_0x1ba9c4?lt(_0x332d3f,_0x59c7e6):_0x332d3f,_0x1386d4=_0x1a87df[_0x120f8e(0x241)]-0x1,_0x5f443c;_0x1386d4>=0x0;_0x1386d4--)(_0x5f443c=_0x1a87df[_0x1386d4])&&(_0x3c9683=_0x5f443c(_0x3c9683)||_0x3c9683);return _0x3c9683;},De=(_0x5da143,_0x3419e0)=>(_0x2b4eb1,_0x1c4237)=>_0x3419e0(_0x2b4eb1,_0x1c4237,_0x5da143);let me=class extends a['RxDisposable']{constructor(_0xa9bda6,_0x57d2a4){const _0xf9e9b6=_0x351cc3;super(),this[_0xf9e9b6(0x4bb)]=_0xa9bda6,this[_0xf9e9b6(0x2e4)]=_0x57d2a4,this[_0xf9e9b6(0x331)]();}[_0x351cc3(0x331)](){const _0x43a272=_0x351cc3,_0x472ce7=this;this[_0x43a272(0x248)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0xe6f916=>{const _0x45724b=_0x43a272,_0x219c42=await _0x472ce7[_0x45724b(0x2e4)][_0x45724b(0x35b)](_0xe6f916);return _0x219c42?{'source':_0x219c42['source'],'imageSourceType':_0x219c42[_0x45724b(0x43c)]}:null;}}));}};me=_t([De(0x0,p[_0x351cc3(0x2e1)]),De(0x1,ze[_0x351cc3(0x2a7)])],me);const Ne=[_0x351cc3(0x2a6),_0x351cc3(0x21b),'green.600','red.300','blue.400',_0x351cc3(0x267)];class Re extends a[_0x351cc3(0x37b)]{constructor(){const _0x110352=_0x351cc3;super(...arguments),_(this,_0x110352(0x2e6),new Map()),_(this,_0x110352(0x3d3),0x0);}[_0x351cc3(0x33a)](_0x13febe){const _0x55d495=_0x351cc3;if(this[_0x55d495(0x2e6)][_0x55d495(0x370)](_0x13febe))return this[_0x55d495(0x2e6)][_0x55d495(0x3d0)](_0x13febe);const _0x187a7d=Ne[this[_0x55d495(0x3d3)]];return this[_0x55d495(0x3d3)]=(this[_0x55d495(0x3d3)]+0x1)%Ne['length'],this[_0x55d495(0x2e6)][_0x55d495(0x305)](_0x13febe,_0x187a7d),_0x187a7d;}}function Fe(_0x5700ac){const _0x149c4b=_0x351cc3;let _0x1864d4='';for(const _0x15cb8e of _0x5700ac){const {startOffset:_0x25ae31,endOffset:_0x1d43df,isActive:_0x3dec26,rangeType:_0x1ece5b,segmentId:_0x3ba621,segmentPage:_0x45dc37}=_0x15cb8e;_0x1864d4[_0x149c4b(0x241)]&&(_0x1864d4+=','),_0x1864d4+=_0x25ae31+':'+_0x1d43df+':'+(_0x3dec26?'1':'0')+':'+_0x1ece5b+':'+_0x3ba621+':'+_0x45dc37;}return _0x1864d4;}function ht(_0x29a5e5){const _0x40521b=_0x351cc3,_0x2401c2=_0x29a5e5['split'](','),_0x3fb343=[];for(const _0x2f39bf of _0x2401c2){const [_0x3d22ca,_0xaa2876,_0x38aa31,_0x25b88,_0x2f9b6a,_0x515e99]=_0x2f39bf['split'](':');_0x3fb343['push']({'startOffset':Number(_0x3d22ca),'endOffset':Number(_0xaa2876),'collapsed':_0x3d22ca===_0xaa2876,'isActive':_0x38aa31==='1','rangeType':_0x25b88===a[_0x40521b(0x375)][_0x40521b(0x476)]?a[_0x40521b(0x375)][_0x40521b(0x476)]:a[_0x40521b(0x375)][_0x40521b(0x3dd)],'segmentId':typeof _0x2f9b6a==_0x40521b(0x3e9)?String(_0x2f9b6a):'','segmentPage':Number(_0x515e99!=null?_0x515e99:-0x1)});}return _0x3fb343[_0x40521b(0x459)](_0x480ef9=>_0x480ef9[_0x40521b(0x36a)])||(_0x3fb343[0x0]['isActive']=!0x0),_0x3fb343;}class be extends a[_0x351cc3(0x487)]{constructor(){const _0x67520c=_0x351cc3;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x67520c(0x324),this[_0x67520c(0x300)]['asObservable']());}[_0x351cc3(0x1f0)](_0x10b762){const _0x44fb1c=_0x351cc3,{unitID:_0x58d356,memberID:_0x313b9c,textRanges:_0x2f54fa}=_0x10b762,_0x56569e=Fe(_0x2f54fa);if(_0x56569e==='')return;const _0x5e838a={'unitID':_0x58d356,'memberID':_0x313b9c,'selection':_0x56569e};this['_collabCursorState$'][_0x44fb1c(0x380)](_0x5e838a);}}var ut=Object[_0x351cc3(0x343)],It=(_0x10623e,_0x4a22df,_0x1ea19d,_0x5a96a7)=>{const _0x3e59de=_0x351cc3;for(var _0xc852ff=_0x5a96a7>0x1?void 0x0:_0x5a96a7?ut(_0x4a22df,_0x1ea19d):_0x4a22df,_0x23a5d9=_0x10623e[_0x3e59de(0x241)]-0x1,_0x4c1fad;_0x23a5d9>=0x0;_0x23a5d9--)(_0x4c1fad=_0x10623e[_0x23a5d9])&&(_0xc852ff=_0x4c1fad(_0xc852ff)||_0xc852ff);return _0xc852ff;},U=(_0x5e44f9,_0x215b50)=>(_0x186006,_0x14282c)=>_0x215b50(_0x186006,_0x14282c,_0x5e44f9);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x4bb219,_0x3c5fc5,_0x1dbd7d,_0x39ceb3,_0x42d3a6,_0x4237bb,_0x55dec3,_0x1a7d1c,_0x2c9d8e){const _0x5767af=_0x351cc3;super(),_(this,_0x5767af(0x1f6),!0x1),_(this,'_init',!0x1),_(this,_0x5767af(0x26b),new I[(_0x5767af(0x263))](new Map())),_(this,_0x5767af(0x35d),this[_0x5767af(0x26b)]['asObservable']()),_(this,_0x5767af(0x499),new I[(_0x5767af(0x263))]([])),_(this,'roomMembers$',this[_0x5767af(0x499)][_0x5767af(0x38b)](I[_0x5767af(0x46e)](dt))),_(this,_0x5767af(0x32e),a[_0x5767af(0x2aa)](_0x1973bd=>{const _0x1069b7=_0x5767af,_0x8f7e89={'eventID':g[_0x1069b7(0x234)][_0x1069b7(0x292)],'data':{'unitID':this[_0x1069b7(0x437)],'memberID':this[_0x1069b7(0x4a2)][_0x1069b7(0x355)](),'selection':Fe(_0x1973bd)}};this[_0x1069b7(0x4a2)][_0x1069b7(0x40f)](_0x8f7e89,this['unitID']);},St)),(this['unitID']=_0x4bb219,this[_0x5767af(0x4a2)]=_0x3c5fc5,this['_injector']=_0x1dbd7d,this[_0x5767af(0x296)]=_0x39ceb3,this['_memberService']=_0x42d3a6,this['_syncEditingCollabCursorService']=_0x4237bb,this['_transformService']=_0x55dec3,this[_0x5767af(0x2bf)]=_0x1a7d1c,this[_0x5767af(0x3f2)]=_0x2c9d8e);}get[_0x351cc3(0x470)](){const _0x313a9f=_0x351cc3;return this[_0x313a9f(0x26b)]['getValue']();}get[_0x351cc3(0x3fb)](){return this['_roomMembers$']['getValue']();}[_0x351cc3(0x469)](){const _0x5ce304=_0x351cc3;super[_0x5ce304(0x469)](),this[_0x5ce304(0x26b)][_0x5ce304(0x380)](new Map()),this[_0x5ce304(0x26b)][_0x5ce304(0x279)](),this[_0x5ce304(0x499)][_0x5ce304(0x380)]([]),this[_0x5ce304(0x499)][_0x5ce304(0x279)]();}['init'](){const _0x39fd93=_0x351cc3;this[_0x39fd93(0x331)]||(this[_0x39fd93(0x331)]=!0x0,this['_session'][_0x39fd93(0x45a)][_0x39fd93(0x38b)](I[_0x39fd93(0x3f1)](this['dispose$']))[_0x39fd93(0x3b4)](_0x5ae1fc=>{const _0x3b03d0=_0x39fd93;_0x5ae1fc===u['SessionStatus']['ONLINE']?this[_0x3b03d0(0x47b)]():this[_0x3b03d0(0x447)]();}),this[_0x39fd93(0x4a2)][_0x39fd93(0x363)][_0x39fd93(0x38b)](I['takeUntil'](this['dispose$']))['subscribe'](_0x21ebb5=>{const _0x41054c=_0x39fd93,_0x4ab286=_0x21ebb5[_0x41054c(0x3ec)];_0x4ab286===g[_0x41054c(0x234)][_0x41054c(0x292)]&&this[_0x41054c(0x460)](_0x21ebb5),_0x4ab286===g[_0x41054c(0x234)][_0x41054c(0x48c)]&&this[_0x41054c(0x30a)](_0x21ebb5);}),this[_0x39fd93(0x248)](this[_0x39fd93(0x3f2)]['onCommandExecuted'](_0x4c5ebd=>{const _0x243823=_0x39fd93,_0x3f28dd=_0x4c5ebd[_0x243823(0x3d6)];_0x3f28dd!=null&&this['_online']&&_0x4c5ebd['id']===V[_0x243823(0x40e)]['id']&&_0x3f28dd[_0x243823(0x338)]===this[_0x243823(0x437)]&&_0x3f28dd['isEditing']===!0x1&&_0x3f28dd[_0x243823(0x2cc)][_0x243823(0x241)]>0x0&&this[_0x243823(0x32e)](_0x3f28dd[_0x243823(0x2cc)]);})),this[_0x39fd93(0x334)][_0x39fd93(0x324)]['pipe'](I[_0x39fd93(0x3f1)](this[_0x39fd93(0x40d)]))[_0x39fd93(0x3b4)](_0x4e4d7f=>{const _0x55e84e=_0x39fd93;if((_0x4e4d7f==null?void 0x0:_0x4e4d7f['unitID'])!==this[_0x55e84e(0x437)])return;const _0x11f5b0={'eventID':g[_0x55e84e(0x234)]['UPDATE_CURSOR'],'data':_0x4e4d7f};this[_0x55e84e(0x460)](_0x11f5b0);}),this['disposeWithMe'](this[_0x39fd93(0x3f2)][_0x39fd93(0x29a)](_0x354bc2=>{const _0x1caee9=_0x39fd93;if(_0x354bc2[_0x1caee9(0x3d6)]==null)return;const _0x5d96ca=_0x354bc2[_0x1caee9(0x3d6)];if(_0x354bc2['id']!==V[_0x1caee9(0x3bd)]['id']||_0x5d96ca[_0x1caee9(0x338)]!==this[_0x1caee9(0x437)])return;const _0x45efc9={'id':_0x1caee9(0x483),'params':_0x5d96ca},_0x413321=this[_0x1caee9(0x470)];for(const [_0x450271,_0x2ab762]of _0x413321){const _0x18ef10={'id':_0x1caee9(0x483),'params':{'unitId':this[_0x1caee9(0x437)],'actions':null,'textRanges':_0x2ab762['ranges']}},_0x37f8db=this['_transformService'][_0x1caee9(0x2dd)](_0x45efc9,_0x18ef10,!0x1);if(g['isTransformMutationFailure'](_0x37f8db))throw _0x37f8db[_0x1caee9(0x423)];_0x413321['set'](_0x450271,{..._0x2ab762,'ranges':_0x37f8db[_0x1caee9(0x274)][_0x1caee9(0x3d6)][_0x1caee9(0x48f)]});}queueMicrotask(()=>{const _0x24bd6d=_0x1caee9;this[_0x24bd6d(0x26b)][_0x24bd6d(0x380)](_0x413321);});})));}[_0x351cc3(0x460)](_0x1efd2f){const _0x1622e9=_0x351cc3;var _0x42bf3b,_0x38b4a0;const {memberID:_0x5374e5,selection:_0x51b3c6}=_0x1efd2f[_0x1622e9(0x49d)],_0x39fa98=ht(_0x51b3c6),_0x3aca5a=(_0x38b4a0=(_0x42bf3b=this[_0x1622e9(0x3cb)][_0x1622e9(0x3f4)](this[_0x1622e9(0x437)],_0x5374e5))==null?void 0x0:_0x42bf3b[_0x1622e9(0x3a6)])!=null?_0x38b4a0:_0x1622e9(0x253),_0x4799d3={'color':this[_0x1622e9(0x296)][_0x1622e9(0x33a)](_0x5374e5),'name':_0x3aca5a,'ranges':_0x39fa98},_0x5c4b48=this[_0x1622e9(0x470)];_0x5c4b48[_0x1622e9(0x305)](_0x5374e5,_0x4799d3),this[_0x1622e9(0x26b)][_0x1622e9(0x380)](_0x5c4b48);}[_0x351cc3(0x30a)](_0x20505c){const _0xf529ab=_0x351cc3,{memberID:_0x4743bb}=_0x20505c[_0xf529ab(0x49d)],_0x3fd514=this[_0xf529ab(0x470)];_0x3fd514['delete'](_0x4743bb),this[_0xf529ab(0x26b)][_0xf529ab(0x380)](_0x3fd514);}['_toggleOnline'](){const _0xfa6b77=_0x351cc3;var _0x4d040c;if(this[_0xfa6b77(0x1f6)]=!0x0,((_0x4d040c=this[_0xfa6b77(0x2bf)][_0xfa6b77(0x22e)]())==null?void 0x0:_0x4d040c['getUnitId']())!==this['unitID'])return;const _0x33b65f=this['_injector']['get'](V[_0xfa6b77(0x3a9)])[_0xfa6b77(0x381)]();Array[_0xfa6b77(0x330)](_0x33b65f)&&_0x33b65f[_0xfa6b77(0x241)]>0x0&&this['_updateLocalCursor'](_0x33b65f);}[_0x351cc3(0x447)](){this['_online']=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x351cc3(0x2d1)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x351cc3(0x257)](u[_0x351cc3(0x427)])),U(0x5,a[_0x351cc3(0x257)](be)),U(0x6,g[_0x351cc3(0x362)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x351cc3(0x30d)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x39a8f6,_0x6a7652,_0x611ea3,_0x5f59f7)=>{for(var _0x2e624e=_0x5f59f7>0x1?void 0x0:_0x5f59f7?ft(_0x6a7652,_0x611ea3):_0x6a7652,_0x4494cc=_0x39a8f6['length']-0x1,_0x349361;_0x4494cc>=0x0;_0x4494cc--)(_0x349361=_0x39a8f6[_0x4494cc])&&(_0x2e624e=_0x349361(_0x2e624e)||_0x2e624e);return _0x2e624e;},w=(_0x4f2e79,_0x4eebd5)=>(_0x535b46,_0xe312cf)=>_0x4eebd5(_0x535b46,_0xe312cf,_0x4f2e79);const vt=0x12c,gt=0x64,Et=()=>{let _0x1829c8=[],_0x4b60ae=!0x1;return _0xfd2a36=>{const _0x5efced=_0xf8a9;_0x1829c8[_0x5efced(0x455)](_0xfd2a36),_0x4b60ae||(_0x4b60ae=!0x0,setTimeout(()=>{_0x1829c8['forEach'](_0x327f80=>_0x327f80()),_0x1829c8=[],_0x4b60ae=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x2c709f,_0x5a429d,_0x3d545b,_0x2eaf1e,_0x4d8ee9,_0x24a3c1,_0x1ff152,_0x2d85b6){const _0x3b8012=_0x351cc3;super(),_(this,_0x3b8012(0x1f6),!0x1),_(this,_0x3b8012(0x331),!0x1),_(this,_0x3b8012(0x26b),new I[(_0x3b8012(0x263))](new Map())),_(this,_0x3b8012(0x35d),this[_0x3b8012(0x26b)]['asObservable']()),_(this,_0x3b8012(0x499),new I['BehaviorSubject']([])),_(this,_0x3b8012(0x2d7),this[_0x3b8012(0x499)][_0x3b8012(0x38b)](I[_0x3b8012(0x46e)](vt))),_(this,_0x3b8012(0x32e),a['debounce']((_0x1ab825,_0x40e4e3)=>{const _0x357c08=_0x3b8012,_0x102351={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x357c08(0x4a2)]['getMemberID'](),'selection':B['serializeRangeWithSheet'](_0x1ab825,_0x40e4e3[_0x357c08(0x31b)])}};this[_0x357c08(0x4a2)][_0x357c08(0x40f)](_0x102351,this[_0x357c08(0x437)]);},gt)),(this[_0x3b8012(0x437)]=_0x2c709f,this[_0x3b8012(0x4a2)]=_0x5a429d,this[_0x3b8012(0x37f)]=_0x3d545b,this['_colorAssignService']=_0x2eaf1e,this[_0x3b8012(0x3cb)]=_0x4d8ee9,this[_0x3b8012(0x2bf)]=_0x24a3c1,this[_0x3b8012(0x3f2)]=_0x1ff152,this[_0x3b8012(0x218)]=_0x2d85b6);}get[_0x351cc3(0x470)](){const _0x1c8916=_0x351cc3;return this[_0x1c8916(0x26b)][_0x1c8916(0x24d)]();}get['roomMembers'](){const _0x2c5220=_0x351cc3;return this[_0x2c5220(0x499)][_0x2c5220(0x24d)]();}[_0x351cc3(0x469)](){const _0x3452d1=_0x351cc3;super['dispose'](),this[_0x3452d1(0x26b)][_0x3452d1(0x380)](new Map()),this[_0x3452d1(0x26b)]['complete'](),this[_0x3452d1(0x499)]['next']([]),this[_0x3452d1(0x499)][_0x3452d1(0x279)]();}[_0x351cc3(0x211)](){const _0x2799be=_0x351cc3;this[_0x2799be(0x331)]||(this[_0x2799be(0x331)]=!0x0,this['_session']['sessionStatus$'][_0x2799be(0x38b)](I[_0x2799be(0x3f1)](this[_0x2799be(0x40d)]))['subscribe'](_0x17f933=>{const _0x59e05c=_0x2799be;_0x17f933===u['SessionStatus'][_0x59e05c(0x22c)]?this['_toggleOnline']():this[_0x59e05c(0x447)]();}),this['_session'][_0x2799be(0x363)]['pipe'](I[_0x2799be(0x3f1)](this[_0x2799be(0x40d)]))[_0x2799be(0x3b4)](_0x32d82a=>{const _0x12f90c=_0x2799be,_0x58f3e8=_0x32d82a[_0x12f90c(0x3ec)];_0x58f3e8===g['CollaborationEvent'][_0x12f90c(0x292)]&&this['_onCursorUpdate'](_0x32d82a),_0x58f3e8===g['CollaborationEvent'][_0x12f90c(0x48c)]&&this[_0x12f90c(0x30a)](_0x32d82a);}),this[_0x2799be(0x223)](),this[_0x2799be(0x248)](this[_0x2799be(0x3f2)]['onCommandExecuted'](_0x187347=>{const _0x62c0c1=_0x2799be;if(this['_online']&&_0x187347['id']===v['SetSelectionsOperation']['id']&&_0x187347[_0x62c0c1(0x3d6)][_0x62c0c1(0x338)]===this['unitID']){const _0x265c74=_0x187347['params'];this[_0x62c0c1(0x32e)](_0x265c74[_0x62c0c1(0x3b2)],_0x265c74[_0x62c0c1(0x38f)][0x0]);}})));}[_0x351cc3(0x460)](_0x205902){const _0x21b853=_0x351cc3;var _0x228336,_0x52a77d;const {memberID:_0x354f2f,selection:_0x28e002}=_0x205902['data'],{sheetName:_0x293602,range:_0x5cac9d}=B[_0x21b853(0x4b8)](_0x28e002),_0x431fd7={'name':(_0x52a77d=(_0x228336=this[_0x21b853(0x3cb)][_0x21b853(0x3f4)](this['unitID'],_0x354f2f))==null?void 0x0:_0x228336['name'])!=null?_0x52a77d:_0x21b853(0x253),'range':this[_0x21b853(0x3a2)](_0x293602,_0x5cac9d),'sheetID':_0x293602,'color':this[_0x21b853(0x296)]['assignAColorForMemberID'](_0x354f2f),'selection':_0x28e002},_0xed964b=this['cursorInfo'];_0xed964b[_0x21b853(0x305)](_0x354f2f,_0x431fd7),this['_cursorInfo$'][_0x21b853(0x380)](_0xed964b);}[_0x351cc3(0x30a)](_0x1b06c1){const _0x9fa8ca=_0x351cc3,{memberID:_0x206af1}=_0x1b06c1['data'],_0x2d28bf=this[_0x9fa8ca(0x470)];_0x2d28bf[_0x9fa8ca(0x4a9)](_0x206af1),this[_0x9fa8ca(0x26b)][_0x9fa8ca(0x380)](_0x2d28bf);}[_0x351cc3(0x3a2)](_0x58f1c4,_0x3b3a55){const _0x3d277f=_0x351cc3;var _0x445e81,_0x81896a;const _0x3f7406=(_0x81896a=(_0x445e81=this[_0x3d277f(0x2bf)][_0x3d277f(0x230)](this[_0x3d277f(0x437)]))==null?void 0x0:_0x445e81['getSheetBySheetId'](_0x58f1c4))==null?void 0x0:_0x81896a[_0x3d277f(0x403)]();return(_0x3f7406==null?void 0x0:_0x3f7406[_0x3d277f(0x2de)](_0x1b5572=>a[_0x3d277f(0x33c)][_0x3d277f(0x22d)](_0x1b5572,_0x3b3a55)))||_0x3b3a55;}[_0x351cc3(0x223)](){const _0x1f47fd=_0x351cc3,_0x624901=new a[(_0x1f47fd(0x260))](),_0xa4dc0d=Et(),_0x39d9e2=()=>{const _0x4da55a=_0x1f47fd;_0x624901[_0x4da55a(0x469)]();const _0x57b5a9=(_0x520331,_0x317c83,_0x1d2bea,_0x239944)=>{const _0x5113fd=_0x4da55a;let _0x409633=[];switch(_0x520331['id']){case v['EffectRefRangId'][_0x5113fd(0x43a)]:{_0x409633=v[_0x5113fd(0x2f1)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x413)]:{_0x409633=v[_0x5113fd(0x325)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x416)]:{_0x409633=v['handleInsertCol'](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x250)]:{_0x409633=v[_0x5113fd(0x485)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x3b3)]:{_0x409633=v['handleInsertRangeMoveRight'](_0x520331,_0x239944);break;}case v['EffectRefRangId'][_0x5113fd(0x41a)]:{_0x409633=v[_0x5113fd(0x420)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x3c1)]:{_0x409633=v[_0x5113fd(0x4ad)](_0x520331,_0x239944);break;}case v['EffectRefRangId'][_0x5113fd(0x26a)]:{_0x409633=v[_0x5113fd(0x3ea)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)]['RemoveRowCommandId']:{_0x409633=v['handleIRemoveRow'](_0x520331,_0x239944);break;}}const _0x446628=v[_0x5113fd(0x277)](_0x409633,_0x239944),_0x489755=this[_0x5113fd(0x470)]['get'](_0x317c83);if(_0x489755&&_0x446628){const _0x1c6491={..._0x489755,'range':_0x446628};this['cursorInfo'][_0x5113fd(0x305)](_0x317c83,_0x1c6491),_0xa4dc0d(()=>{const _0x2db161=_0x5113fd,_0x48efb8=this['_refRangeService']['registerRefRange'](_0x446628,_0x5376e3=>(_0x48efb8[_0x2db161(0x469)](),_0x57b5a9(_0x5376e3,_0x317c83,_0x1d2bea,_0x446628)));_0x624901[_0x2db161(0x251)](_0x48efb8);});}return{'redos':[],'undos':[]};};this[_0x4da55a(0x470)][_0x4da55a(0x264)]((_0x1f5cbd,_0x55622d)=>{const _0x2ee6a7=_0x4da55a,{range:_0x53c58f,sheetID:_0x356af9}=_0x1f5cbd,_0x40324a=this[_0x2ee6a7(0x218)]['registerRefRange'](_0x53c58f,_0x23eac2=>(_0x40324a[_0x2ee6a7(0x469)](),_0x57b5a9(_0x23eac2,_0x55622d,_0x356af9,_0x53c58f)));_0x624901[_0x2ee6a7(0x251)](_0x40324a);});};this[_0x1f47fd(0x248)](a[_0x1f47fd(0x30f)](this[_0x1f47fd(0x26b)][_0x1f47fd(0x3b4)](()=>{_0x39d9e2();})));}['_toggleOnline'](){const _0x4bc513=_0x351cc3;var _0x2e423c,_0x4859a3;if(this[_0x4bc513(0x1f6)]=!0x0,((_0x2e423c=this[_0x4bc513(0x2bf)]['getFocusedUnit']())==null?void 0x0:_0x2e423c['getUnitId']())!==this['unitID'])return;const _0x36dfbc=(_0x4859a3=this[_0x4bc513(0x37f)][_0x4bc513(0x3d0)](v[_0x4bc513(0x444)])[_0x4bc513(0x392)]())==null?void 0x0:_0x4859a3[0x0],_0x11bb35=this[_0x4bc513(0x2bf)]['getCurrentUnitForType'](a[_0x4bc513(0x2ab)]['UNIVER_SHEET'])[_0x4bc513(0x207)]();_0x36dfbc&&_0x11bb35&&this[_0x4bc513(0x32e)](_0x11bb35[_0x4bc513(0x45d)](),_0x36dfbc);}[_0x351cc3(0x447)](){const _0x1f6421=_0x351cc3;this[_0x1f6421(0x1f6)]=!0x1;}};ge=mt([w(0x2,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),w(0x3,a[_0x351cc3(0x257)](Re)),w(0x4,a['Inject'](u[_0x351cc3(0x427)])),w(0x5,a[_0x351cc3(0x314)]),w(0x6,a['ICommandService']),w(0x7,a[_0x351cc3(0x257)](v[_0x351cc3(0x2a0)]))],ge);var Ct=Object[_0x351cc3(0x343)],pt=(_0x226259,_0x389b8,_0x23e166,_0x28ffab)=>{const _0x467013=_0x351cc3;for(var _0x5cec53=_0x28ffab>0x1?void 0x0:_0x28ffab?Ct(_0x389b8,_0x23e166):_0x389b8,_0x1b2a9e=_0x226259[_0x467013(0x241)]-0x1,_0x305742;_0x1b2a9e>=0x0;_0x1b2a9e--)(_0x305742=_0x226259[_0x1b2a9e])&&(_0x5cec53=_0x305742(_0x5cec53)||_0x5cec53);return _0x5cec53;},ce=(_0x23e60f,_0x984e40)=>(_0x57ddb0,_0x247cb8)=>_0x984e40(_0x57ddb0,_0x247cb8,_0x23e60f);let F=class extends a['RxDisposable']{constructor(_0x361db3,_0x5e2946,_0x598c73){const _0x3754d6=_0x351cc3;super(),_(this,_0x3754d6(0x29e),new Map()),_(this,_0x3754d6(0x3a8),new I[(_0x3754d6(0x458))]()),(this[_0x3754d6(0x2bf)]=_0x361db3,this[_0x3754d6(0x37f)]=_0x5e2946,this[_0x3754d6(0x4ba)]=_0x598c73,this[_0x3754d6(0x331)]());}[_0x351cc3(0x469)](){const _0x9fbefc=_0x351cc3;super[_0x9fbefc(0x469)](),this[_0x9fbefc(0x3a8)]['complete'](),this[_0x9fbefc(0x29e)][_0x9fbefc(0x264)](_0x5f5b32=>_0x5f5b32['dispose']());}[_0x351cc3(0x23b)](_0x1bf904){const _0x59d275=_0x351cc3;return this[_0x59d275(0x29e)][_0x59d275(0x370)](_0x1bf904)?this[_0x59d275(0x29e)][_0x59d275(0x3d0)](_0x1bf904)['cursorInfo$']:this[_0x59d275(0x3a8)][_0x59d275(0x38b)](I['filter'](_0x478c25=>_0x478c25['unitID']===_0x1bf904),I[_0x59d275(0x424)](_0x4a32a3=>_0x4a32a3[_0x59d275(0x35d)]));}['_init'](){const _0x51383f=_0x351cc3;this[_0x51383f(0x2bf)][_0x51383f(0x429)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x51383f(0x40d)]))['subscribe'](async _0x5bc519=>{const _0x3f9797=_0x51383f,_0x45ea9b=_0x5bc519[_0x3f9797(0x3b1)](),_0x270450=await this[_0x3f9797(0x3cd)](_0x45ea9b);this[_0x3f9797(0x3a8)][_0x3f9797(0x380)](_0x270450),this[_0x3f9797(0x29e)]['set'](_0x45ea9b,_0x270450);}),this['_univerInstanceService'][_0x51383f(0x429)](a[_0x51383f(0x2ab)][_0x51383f(0x345)])['pipe'](I[_0x51383f(0x3f1)](this[_0x51383f(0x40d)]))[_0x51383f(0x38b)](I[_0x51383f(0x354)](_0x408cc4=>!_0x408cc4[_0x51383f(0x3b1)]()[_0x51383f(0x328)]('__')))[_0x51383f(0x3b4)](async _0x3710e7=>{const _0x45eba0=_0x51383f,_0x270080=_0x3710e7[_0x45eba0(0x3b1)](),_0x4650fc=await this[_0x45eba0(0x20c)](_0x270080);this['_entityInit$'][_0x45eba0(0x380)](_0x4650fc),this[_0x45eba0(0x29e)]['set'](_0x270080,_0x4650fc);}),I[_0x51383f(0x216)](this[_0x51383f(0x2bf)][_0x51383f(0x4b3)](a[_0x51383f(0x2ab)][_0x51383f(0x345)]),this[_0x51383f(0x2bf)]['getTypeOfUnitDisposed$'](a[_0x51383f(0x2ab)][_0x51383f(0x34b)]))[_0x51383f(0x38b)](I[_0x51383f(0x3f1)](this[_0x51383f(0x40d)]))[_0x51383f(0x3b4)](_0x4a6568=>{const _0xb5e74d=_0x51383f,_0x2170ab=_0x4a6568[_0xb5e74d(0x3b1)](),_0x1ceaac=this[_0xb5e74d(0x29e)][_0xb5e74d(0x3d0)](_0x2170ab);_0x1ceaac&&(_0x1ceaac[_0xb5e74d(0x469)](),this[_0xb5e74d(0x29e)][_0xb5e74d(0x4a9)](_0x2170ab));});}async[_0x351cc3(0x3cd)](_0x5904cf){const _0x330c0d=_0x351cc3,_0xc401cb=await this['_collabSessionService'][_0x330c0d(0x25f)](_0x5904cf),_0x48914b=this['_injector']['createInstance'](ge,_0x5904cf,_0xc401cb);return _0x48914b[_0x330c0d(0x211)](),_0x48914b;}async['_startDocCollabCursor'](_0x53c128){const _0x5d4913=_0x351cc3,_0x735c87=await this[_0x5d4913(0x4ba)][_0x5d4913(0x25f)](_0x53c128),_0x253bc6=this[_0x5d4913(0x37f)][_0x5d4913(0x20a)](ve,_0x53c128,_0x735c87);return _0x253bc6[_0x5d4913(0x211)](),_0x253bc6;}};F=pt([ce(0x0,a[_0x351cc3(0x314)]),ce(0x1,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),ce(0x2,a[_0x351cc3(0x257)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x22dc10,_0x5385b2){const _0x3b13ac=_0x351cc3;let {radius:_0x593c09,width:_0x12e077,height:_0x3d71cd}=_0x5385b2;_0x593c09=_0x593c09!=null?_0x593c09:0x0,_0x12e077=_0x12e077!=null?_0x12e077:0x1e,_0x3d71cd=_0x3d71cd!=null?_0x3d71cd:0x1e;let _0x2f2b79=0x0,_0x49d353=0x0,_0x2726ee=0x0;_0x2f2b79=_0x49d353=_0x2726ee=Math[_0x3b13ac(0x2e0)](_0x593c09,_0x12e077/0x2,_0x3d71cd/0x2),_0x22dc10[_0x3b13ac(0x46a)](),_0x22dc10[_0x3b13ac(0x2ff)](_0x2f2b79,0x0),_0x22dc10[_0x3b13ac(0x322)](_0x12e077-_0x49d353,0x0),_0x22dc10[_0x3b13ac(0x3ae)](_0x12e077-_0x49d353,_0x49d353,_0x49d353,Math['PI']*0x3/0x2,0x0,!0x1),_0x22dc10[_0x3b13ac(0x322)](_0x12e077,_0x3d71cd-_0x2726ee),_0x22dc10[_0x3b13ac(0x3ae)](_0x12e077-_0x2726ee,_0x3d71cd-_0x2726ee,_0x2726ee,0x0,Math['PI']/0x2,!0x1),_0x22dc10['lineTo'](0x0,_0x3d71cd),_0x22dc10['lineTo'](0x0,_0x2f2b79),_0x22dc10['arc'](_0x2f2b79,_0x2f2b79,_0x2f2b79,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22dc10[_0x3b13ac(0x32b)](),_0x5385b2[_0x3b13ac(0x265)]&&(_0x22dc10[_0x3b13ac(0x1fd)](),_0x22dc10[_0x3b13ac(0x2a9)]=_0x5385b2[_0x3b13ac(0x265)],_0x5385b2[_0x3b13ac(0x3b9)]===_0x3b13ac(0x451)?_0x22dc10[_0x3b13ac(0x265)]('evenodd'):_0x22dc10['fill'](),_0x22dc10['restore']());}class re extends C['Shape']{constructor(_0x31114b,_0x2975e3){const _0x1ad703=_0x351cc3;super(_0x31114b,_0x2975e3),_(this,'color'),_(this,'text'),(this[_0x1ad703(0x37c)]=_0x2975e3==null?void 0x0:_0x2975e3[_0x1ad703(0x37c)],this[_0x1ad703(0x418)]=_0x2975e3==null?void 0x0:_0x2975e3[_0x1ad703(0x418)]);}static[_0x351cc3(0x2f8)](_0x44842d,_0x547803){const _0x10a19d=_0x351cc3,{text:_0xf15a41,color:_0x496279}=_0x547803;_0x44842d[_0x10a19d(0x1fd)](),_0x44842d['font']=_0x10a19d(0x210);const _0x2721fc=_0x44842d['measureText'](_0xf15a41)[_0x10a19d(0x220)],_0x52d3a1=Math[_0x10a19d(0x2e0)](_0x2721fc+0x2*le,Ue);Ot(_0x44842d,{'height':X,'radius':0x4,'width':_0x52d3a1,'fill':_0x496279}),_0x44842d['fillStyle']=_0x10a19d(0x2ba);const _0xdf97b=le,_0x5048b4=X-Tt,_0xbf7b29=Ue-0x2*le;if(_0x2721fc>_0xbf7b29){let _0x8bfef3='',_0xc47fcd=0x0;for(const _0x5422a0 of _0xf15a41){const _0x23ec3e=_0x44842d[_0x10a19d(0x269)](_0x5422a0)[_0x10a19d(0x220)];if(_0xc47fcd+_0x23ec3e<=_0xbf7b29-_0x44842d['measureText'](_0x10a19d(0x262))[_0x10a19d(0x220)])_0x8bfef3+=_0x5422a0,_0xc47fcd+=_0x23ec3e;else{_0x8bfef3+=_0x10a19d(0x262);break;}}_0x44842d[_0x10a19d(0x25d)](_0x8bfef3,_0xdf97b,_0x5048b4);}else _0x44842d['fillText'](_0xf15a41,_0xdf97b,_0x5048b4);_0x44842d['restore']();}[_0x351cc3(0x21f)](_0x5cf84e){const _0xe4aa02=_0x351cc3;re[_0xe4aa02(0x2f8)](_0x5cf84e,this);}}const _e=_0x351cc3(0x349),Rt=_0x351cc3(0x384),bt=_0x351cc3(0x1f5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x351cc3(0x477);class Le{constructor(_0x31e37b,_0x1efa67,_0x3de2c1,_0x54a16f){const _0x1e0bb3=_0x351cc3;_(this,'_shapes',[]),_(this,_0x1e0bb3(0x232),null),_(this,_0x1e0bb3(0x3aa),null),_(this,'_anchorDot',null),_(this,_0x1e0bb3(0x39b),null),_(this,'_eventUnsubscribe',null),(this[_0x1e0bb3(0x347)]=_0x31e37b,this[_0x1e0bb3(0x350)]=_0x1efa67,this[_0x1e0bb3(0x315)]=_0x3de2c1,this['_document']=_0x54a16f,this[_0x1e0bb3(0x367)]());}set[_0x351cc3(0x341)](_0xe6a19d){const _0x575028=_0x351cc3;_0xe6a19d?(this[_0x575028(0x2ae)]&&this['_anchorDot'][_0x575028(0x38e)](),this[_0x575028(0x3aa)]&&this['_textBubble']['show']()):(this[_0x575028(0x2ae)]&&this[_0x575028(0x2ae)][_0x575028(0x431)](),this['_textBubble']&&this[_0x575028(0x3aa)][_0x575028(0x38e)]());}[_0x351cc3(0x469)](){const _0xaa289=_0x351cc3;for(const _0x44e04c of this[_0xaa289(0x1fb)])_0x44e04c[_0xaa289(0x469)]();this[_0xaa289(0x3aa)]&&this[_0xaa289(0x3aa)][_0xaa289(0x469)](),this[_0xaa289(0x2ae)]&&this[_0xaa289(0x2ae)][_0xaa289(0x469)](),this['_anchor']&&this['_anchor'][_0xaa289(0x469)](),this[_0xaa289(0x49e)]&&this[_0xaa289(0x49e)]();}[_0x351cc3(0x367)](){const _0x190e17=_0x351cc3;var _0x4edf2;const {_docSkeleton:_0x40eadc,_document:_0x447a57}=this,{color:_0x8a75ba,name:_0x3a791b,ranges:_0x47ca93}=this[_0x190e17(0x347)],_0x160896=_0x447a57[_0x190e17(0x34a)](),{docsLeft:_0x4dbb87,docsTop:_0x2689c7}=_0x160896,_0x1b16b6=new p[(_0x190e17(0x435))](_0x160896,_0x40eadc);for(const {startOffset:_0x52255b,endOffset:_0x9207cc,rangeType:_0xef133f,segmentId:_0x3e0c46,segmentPage:_0x139f1d,collapsed:_0x115605,isActive:_0x3cade1}of _0x47ca93){const _0x3ff7f=_0x40eadc['findNodePositionByCharIndex'](_0x52255b,!0x0,_0x3e0c46,_0x139f1d);let _0x6eea3b=_0x40eadc[_0x190e17(0x2a5)](_0x9207cc,!0x0,_0x3e0c46,_0x139f1d);if(_0x6eea3b==null&&(_0x6eea3b=_0x40eadc['findNodePositionByCharIndex'](_0x9207cc-0x1,!0x1,_0x3e0c46,_0x139f1d)),_0x3cade1){const {contentBoxPointGroup:_0x36cf91}=_0x1b16b6['getRangePointData'](_0x6eea3b,_0x6eea3b);if(_0x36cf91[_0x190e17(0x241)]===0x0)continue;this['_drawAnchor'](_0x8a75ba,_0x36cf91,_0x4dbb87,_0x2689c7,_0x3a791b),this[_0x190e17(0x49e)]=this[_0x190e17(0x2fd)]();}if(_0x3ff7f&&_0x6eea3b){if(_0xef133f===a[_0x190e17(0x375)][_0x190e17(0x3dd)]){const _0x32c978=new p[(_0x190e17(0x215))](_0x160896,_0x40eadc),{pointGroup:_0x29a972}=(_0x4edf2=_0x32c978[_0x190e17(0x411)](_0x3ff7f,_0x6eea3b))!=null?_0x4edf2:{};if(_0x29a972==null||_0x29a972[_0x190e17(0x241)]===0x0)continue;this[_0x190e17(0x22f)](_0x8a75ba,_0x29a972,_0x4dbb87,_0x2689c7);}else{if(!_0x115605){const {borderBoxPointGroup:_0x45cb7c}=_0x1b16b6[_0x190e17(0x411)](_0x3ff7f,_0x6eea3b);if(_0x45cb7c[_0x190e17(0x241)]===0x0)continue;this[_0x190e17(0x280)](_0x8a75ba,_0x45cb7c,_0x4dbb87,_0x2689c7);}}}}}[_0x351cc3(0x388)](_0x5bed43,_0x5c1ad3,_0x167d78,_0x5f0079,_0x10e08b){const _0x30736a=_0x351cc3,_0x2641c1=this[_0x30736a(0x45f)](_0x5c1ad3),{left:_0x515658,top:_0x49d8fd,height:_0x203adc}=_0x2641c1,_0x251701=this['_getScale'](),_0x69122c=Nt/_0x251701,_0x439ae0=new C['Rect'](_e+a[_0x30736a(0x204)](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079,'height':_0x203adc,'width':Dt,'fill':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)][_0x30736a(0x379)],0x0),'strokeWidth':_0x69122c,'stroke':Ut,'evented':!0x0});this[_0x30736a(0x232)]=_0x439ae0,this[_0x30736a(0x350)][_0x30736a(0x49f)](_0x439ae0,p[_0x30736a(0x360)]);const _0x2a8ff1=new C['Rect'](_e+a[_0x30736a(0x204)](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079-he/0x2,'height':he,'width':he,'fill':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)][_0x30736a(0x379)],0x0),'evented':!0x1});this[_0x30736a(0x2ae)]=_0x2a8ff1,this[_0x30736a(0x350)][_0x30736a(0x49f)](_0x2a8ff1,p[_0x30736a(0x360)]);const _0x4e8253=new re(_e+a['generateRandomId'](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079-X,'text':_0x10e08b,'color':_0x5bed43});this['_textBubble']=_0x4e8253,this['_scene'][_0x30736a(0x49f)](_0x4e8253,p[_0x30736a(0x360)]),this[_0x30736a(0x341)]=!0x1;}['_handleHover'](){const _0x3afea3=_0x351cc3,_0x27569f=this[_0x3afea3(0x232)][_0x3afea3(0x465)][_0x3afea3(0x32c)](()=>{const _0x40b5d0=_0x3afea3;this[_0x40b5d0(0x341)]=!0x0;}),_0x987a79=this['_anchor'][_0x3afea3(0x4a4)][_0x3afea3(0x32c)](()=>{const _0x34403e=_0x3afea3;this[_0x34403e(0x39b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2a8752=_0x34403e;this[_0x2a8752(0x341)]=!0x1;},0x7d0);});return()=>{_0x27569f['unsubscribe'](),_0x987a79['unsubscribe']();};}['_drawTextRange'](_0x4ffe53,_0x4b7ab2,_0x5d790,_0x4c5f6a){const _0x4803d9=_0x351cc3,_0x1e55ae=new a[(_0x4803d9(0x203))](_0x4ffe53)[_0x4803d9(0x421)](0.2)[_0x4803d9(0x28e)](),_0x918f5f=new C['RegularPolygon'](Rt+a[_0x4803d9(0x204)](H),{'pointsGroup':_0x4b7ab2,'fill':_0x1e55ae||C[_0x4803d9(0x361)](a['COLORS'][_0x4803d9(0x379)],0.2),'left':_0x5d790,'top':_0x4c5f6a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4803d9(0x1fb)]['push'](_0x918f5f),this[_0x4803d9(0x350)][_0x4803d9(0x49f)](_0x918f5f,p[_0x4803d9(0x360)]);}[_0x351cc3(0x22f)](_0x2729be,_0x3ed662,_0x3d0662,_0x4dbea3){const _0x39f5c8=_0x351cc3,_0x18414e=new a['ColorKit'](_0x2729be)[_0x39f5c8(0x421)](0.2)['toRgbString'](),_0x59c7f7=new C[(_0x39f5c8(0x3cc))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3ed662,'fill':_0x18414e||C[_0x39f5c8(0x361)](a[_0x39f5c8(0x2c1)]['black'],0.2),'left':_0x3d0662,'top':_0x4dbea3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39f5c8(0x1fb)]['push'](_0x59c7f7),this[_0x39f5c8(0x350)][_0x39f5c8(0x49f)](_0x59c7f7,p[_0x39f5c8(0x360)]);}[_0x351cc3(0x45f)](_0x33bc31){const _0x33535f=_0x33bc31[0x0],_0x2865f8=_0x33535f[0x0],_0x25e3f7=_0x33535f[0x2],{x:_0x41984a,y:_0x289037}=_0x2865f8,{x:_0x105e1c,y:_0x2a581c}=_0x25e3f7;return{'left':_0x41984a,'top':_0x289037,'width':_0x105e1c-_0x41984a,'height':_0x2a581c-_0x289037};}[_0x351cc3(0x3dc)](){const _0x392942=_0x351cc3,{scaleX:_0x42e80d,scaleY:_0x59f6aa}=this[_0x392942(0x350)]['getAncestorScale']();return Math[_0x392942(0x3bf)](_0x42e80d,_0x59f6aa);}}var Lt=Object[_0x351cc3(0x343)],Mt=(_0x2524f0,_0x77975,_0x36c854,_0x2929dd)=>{const _0x46e5fa=_0x351cc3;for(var _0x364c8c=_0x2929dd>0x1?void 0x0:_0x2929dd?Lt(_0x77975,_0x36c854):_0x77975,_0x457908=_0x2524f0[_0x46e5fa(0x241)]-0x1,_0x2a9f26;_0x457908>=0x0;_0x457908--)(_0x2a9f26=_0x2524f0[_0x457908])&&(_0x364c8c=_0x2a9f26(_0x364c8c)||_0x364c8c);return _0x364c8c;},q=(_0x38e4dc,_0x593bd4)=>(_0x4c1200,_0x5a7b51)=>_0x593bd4(_0x4c1200,_0x5a7b51,_0x38e4dc);let Ee=class extends a['RxDisposable']{constructor(_0x47296f,_0x3ebce1,_0xe47060,_0x3838cf,_0x14c15d){const _0x4bd138=_0x351cc3;super(),_(this,_0x4bd138(0x481),[]),_(this,_0x4bd138(0x3a5),[]),(this[_0x4bd138(0x404)]=_0x47296f,this[_0x4bd138(0x474)]=_0x3ebce1,this['_collabCursorController']=_0xe47060,this[_0x4bd138(0x3f2)]=_0x3838cf,this['_themeService']=_0x14c15d,this[_0x4bd138(0x331)]());}[_0x351cc3(0x331)](){const _0x51b28b=_0x351cc3,_0x271124=this[_0x51b28b(0x404)][_0x51b28b(0x338)],_0x339cb0=this['_docSkeletonManagerService'];this[_0x51b28b(0x248)](I[_0x51b28b(0x4b7)]([this[_0x51b28b(0x494)]['getCollabCursors$'](_0x271124),this[_0x51b28b(0x24f)][_0x51b28b(0x41d)]])[_0x51b28b(0x38b)]($[_0x51b28b(0x246)](([_0x430091,_0x16165d])=>({'skeleton':_0x339cb0[_0x51b28b(0x3ad)](),'cursors':[..._0x430091[_0x51b28b(0x319)]()][_0x51b28b(0x39d)](_0xc1b692=>({..._0xc1b692,'color':this[_0x51b28b(0x24f)]['getColorFromTheme'](_0xc1b692['color'])}))})))['subscribe'](_0x304143=>{const _0x37b540=_0x51b28b;if(this[_0x37b540(0x4b9)](),_0x304143){const {skeleton:_0x306434,cursors:_0x34413d}=_0x304143;this[_0x37b540(0x491)](_0x306434,_0x34413d);}})),this['_initResize'](),this[_0x51b28b(0x23e)]();}['_updateCollabCursors'](_0x268ef0,_0x3289f1){const _0x363d93=_0x351cc3,{scene:_0x21dea0,mainComponent:_0x10933e}=this[_0x363d93(0x404)],_0x17b999=_0x3289f1['map'](_0x15d7de=>new Le(_0x15d7de,_0x21dea0,_0x268ef0,_0x10933e));this[_0x363d93(0x481)]=_0x17b999,this[_0x363d93(0x3a5)]=_0x3289f1;}[_0x351cc3(0x414)](){const _0x1be779=_0x351cc3;this[_0x1be779(0x4b9)]();const {scene:_0xa518c,mainComponent:_0x69f6dd}=this[_0x1be779(0x404)],_0x39117f=this[_0x1be779(0x474)][_0x1be779(0x3ad)](),_0x52eec8=this[_0x1be779(0x3a5)][_0x1be779(0x246)](_0x1f7cf2=>new Le(_0x1f7cf2,_0xa518c,_0x39117f,_0x69f6dd));this['_cursorShapes']=_0x52eec8;}[_0x351cc3(0x4b9)](){const _0x134cc1=_0x351cc3;this[_0x134cc1(0x481)][_0x134cc1(0x264)](_0x35a6bb=>_0x35a6bb['dispose']()),this['_cursorShapes']=[];}[_0x351cc3(0x23e)](){const _0xd2df5d=_0x351cc3,_0x42b956=[p[_0xd2df5d(0x484)]['id']];this[_0xd2df5d(0x248)](this['_commandService'][_0xd2df5d(0x29a)](_0x142c5c=>{const _0x3060fa=_0xd2df5d;_0x42b956[_0x3060fa(0x400)](_0x142c5c['id'])&&_0x142c5c['params']['unitId']===this['_context'][_0x3060fa(0x338)]&&this[_0x3060fa(0x414)]();}));}['_initResize'](){const _0x7164f1=_0x351cc3;this[_0x7164f1(0x248)](a['fromEventSubject'](this[_0x7164f1(0x404)][_0x7164f1(0x3bc)][_0x7164f1(0x38a)])[_0x7164f1(0x38b)]($[_0x7164f1(0x354)](_0x220bae=>_0x220bae['type']===C[_0x7164f1(0x446)][_0x7164f1(0x45c)]),$[_0x7164f1(0x27c)](0x10))[_0x7164f1(0x3b4)](()=>{const _0x1bac4e=_0x7164f1;this[_0x1bac4e(0x414)]();}));}};Ee=Mt([q(0x1,a[_0x351cc3(0x257)](V['DocSkeletonManagerService'])),q(0x2,a['Inject'](F)),q(0x3,a[_0x351cc3(0x30d)]),q(0x4,a[_0x351cc3(0x257)](a[_0x351cc3(0x282)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x351cc3(0x3fe)]{constructor(_0x58f4fe,_0xd85ea5){const _0x4a3ed2=_0x351cc3;super(_0x58f4fe,_0xd85ea5),_(this,_0x4a3ed2(0x490)),_(this,_0x4a3ed2(0x4b6),!0x1),_(this,_0x4a3ed2(0x297)),_(this,_0x4a3ed2(0x323),''),_(this,'_labelPosition',_0x4a3ed2(0x428)),_(this,_0x4a3ed2(0x47a)),(_0xd85ea5&&this['setShapeProps'](_0xd85ea5),this[_0x4a3ed2(0x465)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4a3ed2(0x4a4)][_0x4a3ed2(0x32c)](()=>this[_0x4a3ed2(0x378)]({'hovered':!0x1})));}[_0x351cc3(0x378)](_0x14b3c8){const _0xf73288=_0x351cc3;var _0x5dd860,_0x29d94d,_0x34a59c,_0x1c2f3a,_0x2d1940,_0x5c55a8;this['_color']=(_0x5dd860=_0x14b3c8[_0xf73288(0x37c)])!=null?_0x5dd860:this[_0xf73288(0x490)],this['_hovered']=(_0x29d94d=_0x14b3c8[_0xf73288(0x236)])!=null?_0x29d94d:this[_0xf73288(0x4b6)],this['_range']=(_0x34a59c=_0x14b3c8[_0xf73288(0x31b)])!=null?_0x34a59c:this['_range'],this[_0xf73288(0x323)]=(_0x1c2f3a=_0x14b3c8[_0xf73288(0x3a6)])!=null?_0x1c2f3a:this[_0xf73288(0x323)],this[_0xf73288(0x387)]=(_0x2d1940=_0x14b3c8[_0xf73288(0x36d)])!=null?_0x2d1940:this[_0xf73288(0x387)],this[_0xf73288(0x47a)]=(_0x5c55a8=_0x14b3c8[_0xf73288(0x47d)])!=null?_0x5c55a8:this['_backgroundColor'],this[_0xf73288(0x329)]({'width':_0x14b3c8[_0xf73288(0x220)],'height':_0x14b3c8[_0xf73288(0x3ac)]});}[_0x351cc3(0x2f7)](_0x1100b2){const _0x58908d=_0x351cc3,{row:_0x3fcf9d,column:_0x443bf9}=_0x1100b2;if(_0x3fcf9d>=this[_0x58908d(0x297)][_0x58908d(0x333)]&&_0x3fcf9d<=this[_0x58908d(0x297)]['endRow']&&_0x443bf9>=this[_0x58908d(0x297)][_0x58908d(0x49b)]&&_0x443bf9<=this[_0x58908d(0x297)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x58908d(0x378)]({'hovered':!0x1});}[_0x351cc3(0x226)](_0x8b50be){return!0x1;}[_0x351cc3(0x21f)](_0x15fd0b){const _0xc42ca=_0x351cc3;C['Rect']['drawWith'](_0x15fd0b,{'width':this[_0xc42ca(0x220)],'height':this[_0xc42ca(0x3ac)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc42ca(0x47a)]}),this['_hovered']&&(_0x15fd0b[_0xc42ca(0x1fd)](),_0x15fd0b[_0xc42ca(0x42a)](0x1,0x0,0x0,0x1,this[_0xc42ca(0x220)],this[_0xc42ca(0x387)]===_0xc42ca(0x394)?0x0:-X),re[_0xc42ca(0x2f8)](_0x15fd0b,{'text':this[_0xc42ca(0x323)],'color':this[_0xc42ca(0x490)]}),_0x15fd0b['restore']());}}var wt=Object[_0x351cc3(0x343)],yt=(_0x5d3a0a,_0x47d5b8,_0x286fc9,_0x378b11)=>{const _0x57f428=_0x351cc3;for(var _0x3b6716=_0x378b11>0x1?void 0x0:_0x378b11?wt(_0x47d5b8,_0x286fc9):_0x47d5b8,_0x3c97e2=_0x5d3a0a[_0x57f428(0x241)]-0x1,_0x11c17e;_0x3c97e2>=0x0;_0x3c97e2--)(_0x11c17e=_0x5d3a0a[_0x3c97e2])&&(_0x3b6716=_0x11c17e(_0x3b6716)||_0x3b6716);return _0x3b6716;},ue=(_0xe3d64a,_0x410781)=>(_0x2b3f43,_0x2bff57)=>_0x410781(_0x2b3f43,_0x2bff57,_0xe3d64a);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x1c18be,_0x181b6e,_0x11a4a0,_0x26ef27){const _0x2c8947=_0x351cc3;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x1c18be,this['_sheetSkeletonManagerService']=_0x181b6e,this[_0x2c8947(0x494)]=_0x11a4a0,this['_themeService']=_0x26ef27,this[_0x2c8947(0x331)]());}[_0x351cc3(0x331)](){const _0x276acf=_0x351cc3;this[_0x276acf(0x468)][_0x276acf(0x229)][_0x276acf(0x38b)]($[_0x276acf(0x3f1)](this[_0x276acf(0x40d)]),$[_0x276acf(0x424)](_0x38f7ad=>{const _0x5659fe=_0x276acf;if(_0x38f7ad){const _0x596222=_0x38f7ad[_0x5659fe(0x2ed)];return I[_0x5659fe(0x4b7)](this[_0x5659fe(0x494)][_0x5659fe(0x23b)](this[_0x5659fe(0x404)][_0x5659fe(0x338)]),this[_0x5659fe(0x24f)]['currentTheme$'])[_0x5659fe(0x38b)]($[_0x5659fe(0x246)](([_0x4dffaa,_0x45abf8])=>{const _0x77d509=new Map();return _0x4dffaa['forEach']((_0x2ca2aa,_0x51004a)=>{const _0x3f7bc4=_0xf8a9;if(_0x2ca2aa[_0x3f7bc4(0x33b)]===_0x596222){const _0x8583bf={..._0x2ca2aa};_0x8583bf['color']=this[_0x3f7bc4(0x24f)]['getColorFromTheme'](_0x2ca2aa['color']),_0x77d509[_0x3f7bc4(0x305)](_0x51004a,_0x8583bf);}}),{'skeleton':_0x38f7ad,'cursors':_0x77d509};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x276acf(0x3b4)](({skeleton:_0x22b143,cursors:_0x40c841})=>{const _0x3fb5d3=_0x276acf;this['_removeCollabCursors'](),_0x22b143&&this[_0x3fb5d3(0x491)](_0x22b143,_0x40c841);}),this[_0x276acf(0x468)][_0x276acf(0x229)][_0x276acf(0x3b4)](_0x50cb73=>{const _0x19c9cf=_0x276acf;if(_0x50cb73==null)return;const {skeleton:_0x2e0623}=_0x50cb73,{scene:_0x3522cb}=this[_0x19c9cf(0x404)];_0x3522cb[_0x19c9cf(0x48b)][_0x19c9cf(0x32c)](a[_0x19c9cf(0x2aa)](_0x44cbe9=>{const _0x435f8b=_0x19c9cf;var _0x1a14b5,_0x41196f;const {offsetX:_0x11b97e,offsetY:_0x12f789}=_0x44cbe9,{x:_0x5394b5,y:_0x74aa1c}=_0x3522cb[_0x435f8b(0x2f3)](C[_0x435f8b(0x284)][_0x435f8b(0x2ec)]([_0x11b97e,_0x12f789])),{scaleX:_0x258ef7,scaleY:_0x59a24f}=_0x3522cb['getAncestorScale'](),_0x1c4669=_0x3522cb['getViewport'](C['SHEET_VIEWPORT_KEY'][_0x435f8b(0x3ce)]),_0x34c220=_0x3522cb['getVpScrollXYInfoByPosToVp'](C[_0x435f8b(0x284)][_0x435f8b(0x2ec)]([_0x5394b5,_0x74aa1c]),_0x1c4669),_0x2d6ff8=_0x2e0623[_0x435f8b(0x32a)](_0x11b97e,_0x12f789,_0x258ef7,_0x59a24f,_0x34c220);((_0x1a14b5=this['_lastPointer'])==null?void 0x0:_0x1a14b5['column'])===_0x2d6ff8['column']&&((_0x41196f=this[_0x435f8b(0x299)])==null?void 0x0:_0x41196f[_0x435f8b(0x318)])===_0x2d6ff8[_0x435f8b(0x318)]||this[_0x435f8b(0x3a5)][_0x435f8b(0x264)](_0x2c2589=>{const _0x438956=_0x435f8b;_0x2c2589[_0x438956(0x2f7)](_0x2d6ff8);});},0x64));});}[_0x351cc3(0x491)](_0x4f18f5,_0x20b85f){const _0x200c55=_0x351cc3;var _0xa8fb67;const _0xdb5d18=(_0xa8fb67=this[_0x200c55(0x468)][_0x200c55(0x3f6)]())==null?void 0x0:_0xa8fb67[_0x200c55(0x482)];if(!_0xdb5d18)return;const _0x467ba7=this[_0x200c55(0x2b8)]();if(!_0x467ba7)return;this[_0x200c55(0x3a5)][_0x200c55(0x264)](_0x3dca6b=>{_0x3dca6b['makeDirty']();});const {scene:_0x10b1d6}=_0x467ba7,_0x2942b9=xt(Array[_0x200c55(0x301)](_0x20b85f[_0x200c55(0x319)]()))[_0x200c55(0x246)](_0x40d243=>{const _0x203393=_0x200c55,{color:_0x3019a3,range:_0x15842c,name:_0x4a5383,selection:_0x483ed0,sheetID:_0x265dfe}=_0x40d243,{startColumn:_0x37cf18,startRow:_0x259367,endColumn:_0x48bb6a,endRow:_0x2f94a1}=_0x15842c,_0x51e869=J['getCoordByCell'](_0x259367,_0x37cf18,_0x10b1d6,_0xdb5d18),_0x1f97fc=J[_0x203393(0x25a)](_0x2f94a1,_0x48bb6a,_0x10b1d6,_0xdb5d18),{columnHeaderHeightAndMarginTop:_0x1ebe36}=_0xdb5d18,{startX:_0x3cfa6a,startY:_0x1981d7}=_0x51e869,{endX:_0x49046a,endY:_0x2fc4a8}=_0x1f97fc,_0x568291=_0x49046a-_0x3cfa6a,_0x53d6c9=_0x2fc4a8-_0x1981d7,_0x24ec94={'labelPosition':_0x1981d7-_0x1ebe36>=X?'top':'bottom','sheetID':_0x265dfe,'range':_0x15842c,'color':_0x3019a3,'name':_0x4a5383,'selection':_0x483ed0,'left':_0x3cfa6a,'top':_0x1981d7,'width':_0x568291,'height':_0x53d6c9,'evented':!0x1,'zIndex':$t};return new je(_0x4a5383,_0x24ec94);});_0x10b1d6[_0x200c55(0x245)](_0x2942b9,At),this['_cursors']=new Set(_0x2942b9);}[_0x351cc3(0x4b9)](){const _0x6dd84c=_0x351cc3;var _0x4f9fb8;(_0x4f9fb8=this[_0x6dd84c(0x3a5)])==null||_0x4f9fb8['forEach'](_0x35f823=>_0x35f823[_0x6dd84c(0x469)]());}[_0x351cc3(0x2b8)](){const _0x100a11=_0x351cc3;return J[_0x100a11(0x489)](this[_0x100a11(0x404)][_0x100a11(0x268)],this[_0x100a11(0x404)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x351cc3(0x3a4)])),ue(0x2,a[_0x351cc3(0x257)](F)),ue(0x3,a[_0x351cc3(0x257)](a['ThemeService']))],Ce);function xt(_0x3cb5d5){const _0x4c8dba=_0x351cc3,_0xb4b7fb=new Map();return _0x3cb5d5['forEach'](_0xd0a5d9=>{const _0x2d0f2c=_0xf8a9;if(_0xb4b7fb['has'](_0xd0a5d9[_0x2d0f2c(0x3d2)])){const _0x1a79ea=_0xb4b7fb[_0x2d0f2c(0x3d0)](_0xd0a5d9[_0x2d0f2c(0x3d2)]);_0x1a79ea['name']+=',\x20'+_0xd0a5d9[_0x2d0f2c(0x3a6)];}else _0xb4b7fb['set'](_0xd0a5d9[_0x2d0f2c(0x3d2)],_0xd0a5d9);}),Array[_0x4c8dba(0x301)](_0xb4b7fb[_0x4c8dba(0x319)]());}var Bt=Object[_0x351cc3(0x343)],Ft=(_0x968ad3,_0x1be33c,_0x54c967,_0x109000)=>{const _0x3eada1=_0x351cc3;for(var _0x5b666a=_0x109000>0x1?void 0x0:_0x109000?Bt(_0x1be33c,_0x54c967):_0x1be33c,_0x170c0b=_0x968ad3[_0x3eada1(0x241)]-0x1,_0x347222;_0x170c0b>=0x0;_0x170c0b--)(_0x347222=_0x968ad3[_0x170c0b])&&(_0x5b666a=_0x347222(_0x5b666a)||_0x5b666a);return _0x5b666a;},y=(_0x37793e,_0xa1595b)=>(_0x273fe3,_0x1dce99)=>_0xa1595b(_0x273fe3,_0x1dce99,_0x37793e);let Z=class extends a[_0x351cc3(0x37b)]{constructor(_0x5038c3,_0x20d1e1,_0x2ec710,_0x44fc6d,_0x2e07e6,_0x45598e){const _0x32d3b7=_0x351cc3;super(),this[_0x32d3b7(0x4a3)]=_0x5038c3,this['_localCacheService']=_0x20d1e1,this[_0x32d3b7(0x2b1)]=_0x2ec710,this[_0x32d3b7(0x2ac)]=_0x44fc6d,this[_0x32d3b7(0x316)]=_0x2e07e6,this[_0x32d3b7(0x3e8)]=_0x45598e,this[_0x32d3b7(0x3ca)](),this[_0x32d3b7(0x231)]();}[_0x351cc3(0x3ca)](){const _0x3b926e=_0x351cc3;this[_0x3b926e(0x248)](this[_0x3b926e(0x4a3)][_0x3b926e(0x2c3)](()=>{const _0x83e37d=_0x3b926e;if(this['_localCacheService'][_0x83e37d(0x42e)]['size'])return this[_0x83e37d(0x3e8)]['t'](_0x83e37d(0x4b2));}));}[_0x351cc3(0x231)](){const _0x1dd78d=_0x351cc3;this[_0x1dd78d(0x248)](this[_0x1dd78d(0x2b1)][_0x1dd78d(0x363)][_0x1dd78d(0x3b4)](_0x4f8169=>{const _0xbe2a24=_0x1dd78d;_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x48a)]&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this['_localeService']['t'](_0xbe2a24(0x2a3))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x478)]&&this['_messageService'][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x479))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x2c0)]&&this[_0xbe2a24(0x316)][_0xbe2a24(0x431)]({'title':this['_localeService']['t'](_0xbe2a24(0x2b3)),'content':this['_localeService']['t'](_0xbe2a24(0x2cf)),'type':'error','duration':0x0}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x46c)]&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x479))+'('+_0x4f8169['data']+')'}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x386)]&&this[_0xbe2a24(0x2ac)]['show']({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0x4f8169[_0xbe2a24(0x49d)]||'')}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)]['SOCKET_FAILED_RETRY']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x440))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)]['SOCKET_FAILED']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x432))}),_0x4f8169['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T['MessageType'][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x317))});}));}};Z=Ft([y(0x0,O[_0x351cc3(0x366)]),y(0x1,u[_0x351cc3(0x453)]),y(0x2,a['Inject'](u[_0x351cc3(0x2c6)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x351cc3(0x257)](a[_0x351cc3(0x2bb)]))],Z);var jt=Object[_0x351cc3(0x343)],kt=(_0x26658e,_0x4a3532,_0x5784d1,_0x162fd4)=>{const _0x49c2c2=_0x351cc3;for(var _0x249623=_0x162fd4>0x1?void 0x0:_0x162fd4?jt(_0x4a3532,_0x5784d1):_0x4a3532,_0x143b98=_0x26658e[_0x49c2c2(0x241)]-0x1,_0x140ed9;_0x143b98>=0x0;_0x143b98--)(_0x140ed9=_0x26658e[_0x143b98])&&(_0x249623=_0x140ed9(_0x249623)||_0x249623);return _0x249623;},z=(_0x134b75,_0x4f77d8)=>(_0xa8cc6,_0x1b7506)=>_0x4f77d8(_0xa8cc6,_0x1b7506,_0x134b75);let Q=class extends a[_0x351cc3(0x37b)]{constructor(_0xf50770,_0x4764f5,_0x3608de,_0x39b967){const _0x5532d3=_0x351cc3;super(),_(this,'_memberID'),(this['_injector']=_0xf50770,this['_httpService']=_0x4764f5,this[_0x5532d3(0x3de)]=_0x3608de,this['_collaborationSessionService']=_0x39b967,this[_0x5532d3(0x331)]());}[_0x351cc3(0x331)](){const _0x2fd67a=_0x351cc3;this[_0x2fd67a(0x244)](),this['_initUnhandledRejectionListener'](),this[_0x2fd67a(0x340)](),this[_0x2fd67a(0x3c6)]();}[_0x351cc3(0x3c6)](){const _0x290484=_0x351cc3;this[_0x290484(0x248)](this[_0x290484(0x495)][_0x290484(0x4ab)][_0x290484(0x3b4)](_0xb50870=>{const _0x159262=_0x290484;this[_0x159262(0x498)]=_0xb50870==null?void 0x0:_0xb50870[_0x159262(0x306)];}));}[_0x351cc3(0x244)](){const _0x4fe4b1=_0x351cc3,_0xeb317b=_0x299888=>{const _0x147641=_0xf8a9;var _0x58b9fd;this[_0x147641(0x34d)]('error',_0x147641(0x473)+_0x299888[_0x147641(0x30c)]+'\x20at\x20'+_0x299888[_0x147641(0x35c)]+':'+_0x299888[_0x147641(0x28b)]+':'+_0x299888[_0x147641(0x2b2)]+'\x0a'+(((_0x58b9fd=_0x299888[_0x147641(0x423)])==null?void 0x0:_0x58b9fd[_0x147641(0x450)])||''));};window[_0x4fe4b1(0x472)](_0x4fe4b1(0x423),_0xeb317b),this[_0x4fe4b1(0x248)](()=>{const _0xe5ba16=_0x4fe4b1;window[_0xe5ba16(0x4b4)](_0xe5ba16(0x423),_0xeb317b);});}[_0x351cc3(0x3e4)](){const _0x206e5a=_0x351cc3,_0x48450f=_0x328c54=>{const _0x48e79f=_0xf8a9;this[_0x48e79f(0x34d)]('error',_0x48e79f(0x2b4)+_0x328c54[_0x48e79f(0x38d)]);};window[_0x206e5a(0x472)](_0x206e5a(0x310),_0x48450f),this[_0x206e5a(0x248)](()=>{const _0x422ed7=_0x206e5a;window[_0x422ed7(0x4b4)](_0x422ed7(0x310),_0x48450f);});}[_0x351cc3(0x340)](){const _0x1b8184=_0x351cc3,_0x4e60ce=this['_logService'][_0x1b8184(0x423)]['bind'](this['_logService']);this[_0x1b8184(0x3de)][_0x1b8184(0x423)]=(..._0x42b576)=>{const _0x27cf93=_0x1b8184,_0x3b5ce6=_0x42b576['map'](_0x441dd4=>_0x441dd4 instanceof Error?_0x441dd4[_0x27cf93(0x30c)]+'\x0a'+_0x441dd4['stack']:String(_0x441dd4))[_0x27cf93(0x243)]('\x20');this[_0x27cf93(0x34d)](_0x27cf93(0x423),_0x27cf93(0x2ea)+_0x3b5ce6),_0x4e60ce(..._0x42b576);},this[_0x1b8184(0x248)](()=>{const _0x31b5ad=_0x1b8184;this['_logService'][_0x31b5ad(0x423)]=_0x4e60ce;});}['_uploadLog'](_0xa4ab92,_0x1b9b59){const _0x3cd8c7=_0x351cc3;try{const _0x91fea4={'userId':this[_0x3cd8c7(0x498)],'logLabel':_0xa4ab92,'content':_0x1b9b59};this['_httpService'][_0x3cd8c7(0x261)](_0x3cd8c7(0x3ee),{'body':_0x91fea4})[_0x3cd8c7(0x2dc)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),z(0x1,a[_0x351cc3(0x257)](x[_0x351cc3(0x242)])),z(0x2,a[_0x351cc3(0x31d)]),z(0x3,a[_0x351cc3(0x257)](u[_0x351cc3(0x3e0)]))],Q);function _0x3013(){const _0x21015b=['clipPath','_uploadLog','INVALID_ARGUMENT','SNAPSHOT_INVALID_SNAPSHOT','_scene','useCallback','CHANGESET_REVISION_CONFILICT','5544wbiihA','filter','getMemberID','disableLocalCache','actions','UnitStatus','collabStatus.synced','getUnitStatus$','saveImage','filename','cursorInfo$','size','Optional','TEXT_RANGE_LAYER_INDEX','getColor','ITransformService','event$','REDEMPTION_CODE_HAS_BEEN_CREATED','entityInit$','IBeforeCloseService','_render','runOnServer','LICENSE_IMPORT_SIZE_EXCEEDED','isActive','isTransformMutationFailure','getCurrentRevOfUnit','labelPosition','Tooltip','reconnect','has','APPLY_REVISION_CONFILICT','HEADER_MENU','getStateCache','_localStorageService','DOC_RANGE_TYPE','collabStatus.offline','/universer-api/license/formula/limit/done','setShapeProps','black','DocStateChangeManagerService','Disposable','color','EffectRefRangId','ACTIVE_UNIT_EVENT_CHANNEL','_injector','next','getDocRanges','IRenderManagerService','RevisionService','collab-text-range-','YUUMI_AI_RUN_FAILED','JOIN_ROOM_FAILED','_labelPosition','_drawAnchor','setTimeout','onTransformChange$','pipe','onStarting','reason','hide','selections','setItem','ILocalStorageService','getCurrentSelections','_releaseCalculationLimit','bottom','PENDING','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationController','_renderManagerService','MessageType','now','_hideTimer','unload','flatMap','children','REDEMPTION_CODE_NOT_STARTED','ENSURE_SNAPSHOT_EXECUTION','LICENSE_DISTRO_REJECTED','_getMergeRange','href','SheetSkeletonManagerService','_cursors','name','INVITE_CODE_HAS_BEEN_UES','_entityInit$','DocSelectionManagerService','_textBubble','on-line-icon_clip0_910_349','height','getSkeleton','arc','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','_instanceService','getUnitId','subUnitId','InsertRangeMoveRightCommandId','subscribe','1em','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','redoState','_pollingInterval','fillRule','LOCAL_CACHE_INTERVAL','SetFormulaCalculationStartMutation','engine','RichTextEditingMutation','LOGIN_FAILED','max','subunit','MoveRangeCommandId','releaseFormulaLimitUrl','_ensureSubject','wsSessionTicketUrl','off-line-icon_clip0_910_343','_initUserListener','docStateChange$','_dataLoaderService','univerjs-icon\x20univerjs-icon-','_setupBeforeClosingHandler','_memberService','RegularPolygon','_startSheetCollabCursor','VIEW_MAIN','SetWorksheetActivateCommand','get','_disabled','selection','_colorIndex','type','div','params','clsx','saveOfflineData','CollaborationStatus','_unitOnClients','idSuffix','_getScale','RECT','_logService','_revisionService','CollaborationSessionService','url(#off-line-icon_clip0_910_343)','PY_RUNTIME_SCRIPT_ERROR','DEFAULT_WS_SESSION_TICKET_URL','_initUnhandledRejectionListener','7667235TXSnaD','displayName','0\x200\x2016\x2016','_localeService','string','handleIRemoveCol','_saveTaskMap','eventID','REDEMPTION_USER_REDEEM_TIMES_EXCEED','/universer-api/frontend/logs','SetFormulaCalculationNotificationMutation','attrs','takeUntil','_commandService','beforeCommandExecuted','getMember','_docStateChangeManagerService','getCurrent','formula.calculation.waiting','clearInterval','_setupSubUnitSync','ISocketService','roomMembers','entries','LOGIN_TOKEN_PROCESSING_FAILED','Shape','collabStatus.notCollab','includes','connectInjector','on-line-icon','getMergeData','_context','endRow','mask','_handleHeartbeatEvent','registerRenderModule','Failed','_scheduleSaving','OFFLINE','parse','dispose$','SetTextSelectionsOperation','send','_docTransformIMECacheService','getRangePointData','disposeUnit','DeleteRangeMoveUpCommandId','_refreshCollabCursors','MUTATION','InsertColCommandId','mutations','text','Workbook','InsertRowCommandId','SYNCED','replace','currentTheme$','OffLineIcon','_initStatusComponent','handleInsertRow','setAlpha','svg','error','switchMap','OTHER_CLIENTS_EDITING','FormulaExecutedStateType','MemberService','top','getTypeOfUnitAdded$','transform','getSheetBySheetId','functionsExecutedState','SheetCollabCursorShape','saveTaskMap','isTransformMutationsWithChangesetSuccess','Warning','show','session.connection-failed','EMAIL_VERIFY_CODE_MISMATCH','NOT_COLLAB','NodePositionConvertToCursor','_currentUsage','unitID','_maxFormulaLimit','CanceledError','DeleteRangeMoveLeftCommandId','_docSyncEditingCollabCursorService','imageSourceType','DataLoaderService','transformIMECache','YUUMI_RATE_OVER_LIMIT','session.will-retry','parseInt','setUndoRedoMutationParamsCache','_saveCache','SheetsSelectionsService','YUUMI_UNABLE_LOAD_URL','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_toggleOffline','_scheduleHeartbeat','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getFormulaLimitStatus','_updateSubUnitFromURLParams','UNAUTHENTICATED','IURLService','491004CQUTgV','CURRENT_STATUS_CANNOT_OPERATE','stack','evenodd','EMAIL_HAS_BEEN_BOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','push','IConfigService','Success','Subject','some','sessionStatus$','trim','resize','getSheetId','loadUnit','_getAnchorBounding','_onCursorUpdate','[CollaborationDataLoaderController]','mergeOverrideWithDependencies','getLocalCacheKey','DependentOn','onPointerEnter$','ALREADY_EXISTS','pushState','_sheetSkeletonManagerService','dispose','beginPath','_initDependencies','CONFLICT','_showGuardMessage','debounceTime','CollaborationSocketService','cursorInfo','RemoteUniscriptService','addEventListener','[Window\x20Error]:\x20','_docSkeletonManagerService','DesktopCollaborationStatusDisplayController','TEXT','rgba(255,\x20255,\x20255,\x200.01)','CLOSE_ROOM','collaboration.closeRoom','_backgroundColor','_toggleOnline','shift','backgroundColor','UniverCollaborationClientUIPlugin','_cachedData','url(#on-line-icon_clip0_910_349)','_cursorShapes','skeleton','doc.mutation.rich-text-editing','SetDocZoomRatioOperation','handleInsertRangeMoveDown','Plugin','RxDisposable','_removeClearOtherTimer','getSheetObject','OTHER_CLIENT_EDITING','onPointerMove$','USERS_LEAVE','YUUMI_TABLE_NOT_FOUND_IN_UNIT','stageInfo','textRanges','_color','_updateCollabCursors','USER_NOT_FOUND','BrowserCollaborationSocketService','_collabCursorController','_collaborationSessionService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','mapTo','_memberID','_roomMembers$','410460SpxbKk','startColumn','getRenderById','data','_eventUnsubscribe','addObject','then','body','_session','_beforeCloseService','onPointerLeave$','_handleJoinEvent','Tools','touchDependencies','getUnhiddenWorksheets','delete','USER_NOT_INVITED_CODE','socket$','_transformUndoRedoStack','handleMoveRange','IMessageService','_registerDependencies','SNAPSHOT_HAS_BEEN_REMOVED','Error','collaboration-client.offline-data-not-saved','getTypeOfUnitDisposed$','removeEventListener','xlink:href','_hovered','combineLatest','deserializeRangeWithSheet','_removeCollabCursors','_collabSessionService','_docClipboardService','_id','/universer-api/license/formula/limit/status','syncEditingCollabCursor','defs','Module','invokeId','getActiveRange','collab-rect-range-','_online','transformMutationsWithChangeset','setParam','_setFormulaLimitStatus','AUTHORIZE_CODE_ILLEGAL','_shapes','YUUMI_NO_CUBOID_FOR_QUESTION','save','transformSelections','_taskIds','WebBrowserSingleActiveUnitService','REDEMPTION_INVALID_CODE','_urlService','ColorKit','generateRandomId','M0\x200H16V16H0z','INVITE_CODE_REQUIRED','getActiveSheet','CONNECTOR_DATA_TOO_LARGE','m1Prime','createInstance','_startCalculationLimit','_startDocCollabCursor','collab-client.tooltip.reconnect','history','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','init','deepClone','pluginName','colorChannel1','NodePositionConvertToRectRange','merge','COMPLETION_FINISHED','_refRangeService','onRendered','with','jiqing.500','AWAITING_WITH_PENDING','_docTransformStateCacheService','getCollabEntity$','_draw','width','OnLineIcon','executeCommand','_onRefRangeChange','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','ISnapshotServerService','triggerDblclick','endColumn','_applyCommand','currentSkeleton$','_doCreateSocket','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ONLINE','contains','getFocusedUnit','_drawRectRange','getUniverSheetInstance','_initEvent','_anchor','jsxs','CollaborationEvent','_transformPreviousActiveRange','hovered','_initStatusListener','collaboration-client-ui.config','current','undoState','getCollabCursors$','replaceState','setInterval','_initCommandExecutedListener','enableFrontendLog','WECHAT_HAS_BEEN_BOUND','length','HTTPService','join','_initWindowErrorListener','addObjects','map','formula.calculation.unable','disposeWithMe','FETCH_MISS','translate(.97)','INVITE_CODE_ALREADY_BOUND','_handleEvent','getValue','round','_themeService','InsertRangeMoveDownCommandId','add','_initCommandInterceptor','Unknown\x20user','_initEntityListener','_send','getformulaLimitStatusUrl','Inject','ERROR_AGAIN','INTERNAL_ERROR','getCoordByCell','_unitStatus','CommandType','fillText','override','requireSession','DisposableCollection','post','...','BehaviorSubject','forEach','fill','enableLocalCache','yellow.400','unit','measureText','RemoveColCommandId','_cursorInfo$','YUUMI_SUBSCRIPTION_NOT_FOUND','jsx','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_clearOtherTimers','exhaustSavingTask','createSocket','_config','loadOfflineData','m2Prime','onLocalMutation','debug','runRefRangeMutations','createElement','complete','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','throttleTime','_transformService','defIds','getUndoRedoMutationParamsCache','_drawTextRange','_checkAndWaitForCalculationPermission','ThemeService','setStateCache','Vector2','3XcosaT','sessionTicket','NO_OTHER_CLIENTS_EDITING','_heartbeatTimer','forwardRef','_transformHistoryAndStateStack','lineno','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','none','toRgbString','registerDependencies','APPLY_PERMISSION_DENIED','_updateURLWithCurrentState','UPDATE_CURSOR','_status$','_docTransformSelectionsService','url(#$1','_colorAssignService','_range','useDependency','_lastPointer','onCommandExecuted','YUUMI_ASYNCIO_CANCELLED','addHandlerCallback','CollaborationDataLoaderController','_entities','USER_IS_ANONYMOUS','RefRangeService','SUCCESS','currentUsage','collaboration.single-unit.warning','currentColor','findNodePositionByCharIndex','purple.300','IImageIoService','?taskId=','fillStyle','debounce','UniverInstanceType','_messageService','shareReplay','_anchorDot','UniverIcon','assign','_collaborationUIEventService','colno','permission.title','[Unhandled\x20Rejection]:\x20','use','YUUMI_CONNECTOR_URL_NOT_FOUND','popstate','_getSheetObject','PAYMENT_CHANNEL_NOT_SUPPORT','#FFF','LocaleService','_getSessionTicket','TOO_MANY_REQUESTS','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_univerInstanceService','PERMISSION_DENIED','COLORS','limitInfo','registerBeforeClose','REDEMPTION_CODE_FULLY_REDEEMED','UNRECOGNIZED','CollaborationUIEventService','isFormulaId','IRemoteInstanceService','location','_registerRenderDependencies','APPLY_REJECT','ranges','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_configService','permission.content','/universer-api/license/formula/limit/start','Injector','getParam','_getSaveTimeout','runId','LICENSE_EXPORT_SIZE_EXCEEDED','_uiPartsService','roomMembers$','off-line-icon','_lastResponseTimestamp','/run/','focused$','catch','transformMutation','find','MOBILE_HAS_BEEN_BOUND','min','IDocClipboardService','_scheduleClearOtherTimer','_httpService','_imageIoService','searchParams','_assignedColors','toString','IUIPartsService','toStringTag','[LogService\x20Error]:\x20','getConfig','FromArray','sheetId','2667eznTDZ','stringify','_createSocketURL','handleDeleteRangeMoveLeft','path','getRelativeToViewportCoord','ENTITLE_REPORT_LIMIT_EXCEED','CollaborationUIEventId','unshift','onMouseMove','drawWith','urlChange$','tag','_hasFormulaInDirtyRanges','289691ZEcJEo','_handleHover','_checkCalculationAvailable','moveTo','_collabCursorState$','from','result','collabStatus.syncing','_selfUnitIDs','set','memberID','UNDEFINED','APPLY_NON_SEQUENTIAL_REVISION','217010SqBRih','_onCursorDelete','search','message','ICommandService','formula.calculation.started','toDisposable','unhandledrejection','maxFormulaLimit','collabStatus.conflict','INVALID_INVITE_CODE','IUniverInstanceService','_docSkeleton','_notificationService','session.collaboration-timeout','row','values','START_CALCULATION','range','white','ILogService','NOT_FOUND','_collaborationController','ticket','REDEMPTION_CODE_INACTIVE','lineTo','_name','collabCursorState$','handleDeleteRangeMoveUp','clearTimeout','1198040XUEQQc','startsWith','transformByState','getCellPositionByOffset','closePath','subscribeEvent','setActiveRange','_updateLocalCursor','DocIMEInputManagerService','isArray','_init','getUnit','startRow','_syncEditingCollabCursorService','WebURLService','BuiltInUIPart','code','unitId','fromEvent','assignAColorForMemberID','sheetID','Rectangle','transformRemoteChangeset','useObservable','key','_monkeyPatchLogService','_hover','executionId','getOwnPropertyDescriptor','defineProperty','UNIVER_DOC','stage','_cursor','replaceDocRanges','collab-text-anchor-','getOffsetConfig','UNIVER_SHEET'];_0x3013=function(){return _0x21015b;};return _0x3013();}const Yt=_0x351cc3(0x238),Me={};var Ht=Object[_0x351cc3(0x343)],Wt=(_0x58fed6,_0x4c2cff,_0x1fc362,_0x2e480f)=>{const _0x368ad4=_0x351cc3;for(var _0x1d6fb9=_0x2e480f>0x1?void 0x0:_0x2e480f?Ht(_0x4c2cff,_0x1fc362):_0x4c2cff,_0x399ccf=_0x58fed6[_0x368ad4(0x241)]-0x1,_0x38cc11;_0x399ccf>=0x0;_0x399ccf--)(_0x38cc11=_0x58fed6[_0x399ccf])&&(_0x1d6fb9=_0x38cc11(_0x1d6fb9)||_0x1d6fb9);return _0x1d6fb9;},Ae=(_0x52df51,_0xb24721)=>(_0x5bcff2,_0x7c946b)=>_0xb24721(_0x5bcff2,_0x7c946b,_0x52df51);let ee=class{constructor(_0x3051d7,_0x18e511){const _0x284a93=_0x351cc3;this['_transformService']=_0x3051d7,this[_0x284a93(0x398)]=_0x18e511;}[_0x351cc3(0x43e)](_0x5bbf68){const _0x179151=_0x351cc3;this[_0x179151(0x4ac)](_0x5bbf68),this[_0x179151(0x235)](_0x5bbf68);}[_0x351cc3(0x33d)](_0x29183a){const _0x43238c=_0x351cc3,{unitID:_0x5d828c}=_0x29183a,_0x3db9e3=this[_0x43238c(0x398)][_0x43238c(0x49c)](_0x5d828c)[_0x43238c(0x21a)](p[_0x43238c(0x32f)]),{redoCache:_0x490504}=_0x3db9e3[_0x43238c(0x27f)]();if(_0x490504[_0x43238c(0x241)]===0x0)return _0x29183a;let _0x58564f=a[_0x43238c(0x4a6)][_0x43238c(0x212)](_0x29183a[_0x43238c(0x417)][0x0]);for(let _0x23b290=0x0;_0x23b290<_0x490504[_0x43238c(0x241)];_0x23b290++){const _0x4a566e={'id':_0x43238c(0x483),'params':{..._0x490504[_0x23b290]}},_0x3821de=this['_transformService'][_0x43238c(0x2dd)](_0x58564f,_0x4a566e,!0x1);if(g['isTransformMutationFailure'](_0x3821de))throw _0x3821de[_0x43238c(0x423)];_0x58564f=_0x3821de[_0x43238c(0x209)];}return{...a[_0x43238c(0x4a6)][_0x43238c(0x212)](_0x29183a),'mutations':[_0x58564f]};}[_0x351cc3(0x4ac)](_0x3437a9){const _0x42ec51=_0x351cc3,{unitID:_0x2ced3a}=_0x3437a9,_0x1b1a1a=this['_renderManagerService'][_0x42ec51(0x49c)](_0x2ced3a)[_0x42ec51(0x21a)](p[_0x42ec51(0x32f)]),{undoCache:_0x410953,redoCache:_0x212951}=_0x1b1a1a[_0x42ec51(0x27f)]();if(_0x410953[_0x42ec51(0x241)]===0x0||_0x212951[_0x42ec51(0x241)]===0x0)return;const _0x4418e2=[],_0x3915b2=[];let _0x3084bf=a[_0x42ec51(0x4a6)][_0x42ec51(0x212)](_0x3437a9[_0x42ec51(0x417)][0x0]),_0x33258f=a[_0x42ec51(0x4a6)]['deepClone'](_0x3437a9[_0x42ec51(0x417)][0x0]);for(let _0x5d9c6f=_0x410953[_0x42ec51(0x241)]-0x1;_0x5d9c6f>=0x0;_0x5d9c6f--){const _0x5e0d22={'id':_0x42ec51(0x483),'params':{..._0x410953[_0x5d9c6f]}},_0x1d43f1={'id':'doc.mutation.rich-text-editing','params':{..._0x212951[_0x5d9c6f]}},_0x2da0d6=this['_transformService'][_0x42ec51(0x2dd)](_0x3084bf,_0x5e0d22,!0x1),_0x55f303=this['_transformService'][_0x42ec51(0x2dd)](_0x33258f,_0x1d43f1,!0x1);if(g[_0x42ec51(0x36b)](_0x2da0d6))throw _0x2da0d6['error'];if(g[_0x42ec51(0x36b)](_0x55f303))throw _0x55f303[_0x42ec51(0x423)];_0x4418e2[_0x42ec51(0x2f6)](_0x2da0d6[_0x42ec51(0x274)][_0x42ec51(0x3d6)]),_0x3915b2['unshift'](_0x55f303[_0x42ec51(0x274)][_0x42ec51(0x3d6)]),_0x3084bf=_0x2da0d6[_0x42ec51(0x209)],_0x33258f=_0x55f303['m1Prime'];}_0x1b1a1a[_0x42ec51(0x442)]({'undoCache':_0x4418e2,'redoCache':_0x3915b2});}[_0x351cc3(0x235)](_0x20b8b3){const _0x140639=_0x351cc3,{unitID:_0x24c938}=_0x20b8b3,_0x382550=this[_0x140639(0x398)][_0x140639(0x49c)](_0x24c938)[_0x140639(0x21a)](p[_0x140639(0x32f)]),_0x14db53=_0x382550[_0x140639(0x1f4)]();if(_0x14db53==null)return;const _0xefde8d=[{'id':_0x140639(0x483),'params':{'unitId':_0x20b8b3[_0x140639(0x437)],'actions':null,'textRanges':[_0x14db53]}}],_0x229028=this[_0x140639(0x27d)]['transformMutationsWithChangeset'](_0x20b8b3,_0xefde8d);if(!g[_0x140639(0x42f)](_0x229028))throw _0x229028[_0x140639(0x423)];const _0x407895=_0x229028[_0x140639(0x274)][0x0][_0x140639(0x3d6)]['textRanges'];Array[_0x140639(0x330)](_0x407895)&&_0x407895['length']&&_0x382550[_0x140639(0x32d)](_0x407895[0x0]);}};ee=Wt([Ae(0x0,g[_0x351cc3(0x362)]),Ae(0x1,C['IRenderManagerService'])],ee);function _0xf8a9(_0x5d4a7e,_0x34232f){const _0x30138a=_0x3013();return _0xf8a9=function(_0xf8a9f5,_0x5dcb0c){_0xf8a9f5=_0xf8a9f5-0x1ef;let _0x29cbea=_0x30138a[_0xf8a9f5];return _0x29cbea;},_0xf8a9(_0x5d4a7e,_0x34232f);}var Vt=Object[_0x351cc3(0x343)],Gt=(_0x431837,_0x31cc47,_0x201c4d,_0x113ef7)=>{const _0x2a84c6=_0x351cc3;for(var _0x179f54=_0x113ef7>0x1?void 0x0:_0x113ef7?Vt(_0x31cc47,_0x201c4d):_0x31cc47,_0x1d20f0=_0x431837[_0x2a84c6(0x241)]-0x1,_0x328303;_0x1d20f0>=0x0;_0x1d20f0--)(_0x328303=_0x431837[_0x1d20f0])&&(_0x179f54=_0x328303(_0x179f54)||_0x179f54);return _0x179f54;},Ie=(_0x1b995a,_0x3fb9fb)=>(_0x92d6ca,_0x3e4260)=>_0x3fb9fb(_0x92d6ca,_0x3e4260,_0x1b995a);let te=class{constructor(_0x6c17f2,_0x2bc18a,_0x5c2161){const _0x4e6bef=_0x351cc3;this['_injector']=_0x6c17f2,this['_transformService']=_0x2bc18a,this[_0x4e6bef(0x3f5)]=_0x5c2161;}['transformStateCache'](_0x34eefe){const _0x374899=_0x351cc3;this[_0x374899(0x28a)](_0x34eefe);}['transformRemoteChangeset'](_0x56689c){const _0x2c019b=_0x351cc3,{unitID:_0x3d525b}=_0x56689c,{collaboration:_0x4dada3}=this[_0x2c019b(0x3f5)][_0x2c019b(0x373)](_0x3d525b);if(_0x4dada3[_0x2c019b(0x241)]===0x0)return _0x56689c;let _0x265555=a[_0x2c019b(0x4a6)][_0x2c019b(0x212)](_0x56689c[_0x2c019b(0x417)][0x0]);for(let _0x672113=0x0;_0x672113<_0x4dada3[_0x2c019b(0x241)];_0x672113++){const _0x2d5b06={'id':_0x2c019b(0x483),'params':{'unitId':_0x4dada3[_0x672113][_0x2c019b(0x338)],..._0x4dada3[_0x672113][_0x2c019b(0x3b7)]}},_0x1bd5d3=this[_0x2c019b(0x27d)][_0x2c019b(0x2dd)](_0x265555,_0x2d5b06,!0x1);if(g[_0x2c019b(0x36b)](_0x1bd5d3))throw _0x1bd5d3[_0x2c019b(0x423)];_0x265555=_0x1bd5d3[_0x2c019b(0x209)];}return{...a[_0x2c019b(0x4a6)]['deepClone'](_0x56689c),'mutations':[_0x265555]};}[_0x351cc3(0x28a)](_0x1b4ff6){const _0x5e8f37=_0x351cc3,{unitID:_0x517e42}=_0x1b4ff6,{history:_0x3480d8,collaboration:_0x221c3e}=this[_0x5e8f37(0x3f5)][_0x5e8f37(0x373)](_0x517e42);if(_0x3480d8['length']===0x0&&_0x221c3e[_0x5e8f37(0x241)]===0x0)return;const _0x5d5041=[],_0x19d763=[];let _0x2e54d7=a[_0x5e8f37(0x4a6)]['deepClone'](_0x1b4ff6[_0x5e8f37(0x417)][0x0]),_0x296cc6=a[_0x5e8f37(0x4a6)][_0x5e8f37(0x212)](_0x1b4ff6[_0x5e8f37(0x417)][0x0]);for(let _0x277381=_0x3480d8[_0x5e8f37(0x241)]-0x1;_0x277381>=0x0;_0x277381--){const _0x1ea1c1={'id':_0x5e8f37(0x483),'params':{'unitId':_0x3480d8[_0x277381][_0x5e8f37(0x338)],..._0x3480d8[_0x277381][_0x5e8f37(0x23a)]}},_0x2e18eb={'id':_0x5e8f37(0x483),'params':{'unitId':_0x3480d8[_0x277381][_0x5e8f37(0x338)],..._0x3480d8[_0x277381]['redoState']}},_0x3e19d4=this[_0x5e8f37(0x27d)][_0x5e8f37(0x2dd)](_0x2e54d7,_0x1ea1c1,!0x1),_0xda32d8=this[_0x5e8f37(0x27d)][_0x5e8f37(0x2dd)](_0x296cc6,_0x2e18eb,!0x1);if(g['isTransformMutationFailure'](_0x3e19d4))throw _0x3e19d4[_0x5e8f37(0x423)];if(g['isTransformMutationFailure'](_0xda32d8))throw _0xda32d8['error'];_0x5d5041[_0x5e8f37(0x2f6)]({..._0x3480d8[_0x277381],'undoState':_0x3e19d4[_0x5e8f37(0x274)]['params'],'redoState':_0xda32d8[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)]}),_0x2e54d7=_0x3e19d4[_0x5e8f37(0x209)],_0x296cc6=_0xda32d8[_0x5e8f37(0x209)];}_0x2e54d7=a['Tools'][_0x5e8f37(0x212)](_0x1b4ff6['mutations'][0x0]),_0x296cc6=a['Tools']['deepClone'](_0x1b4ff6[_0x5e8f37(0x417)][0x0]);for(let _0x49c1f9=_0x221c3e['length']-0x1;_0x49c1f9>=0x0;_0x49c1f9--){const _0xaf6cb3={'id':_0x5e8f37(0x483),'params':{'unitId':_0x221c3e[_0x49c1f9][_0x5e8f37(0x338)],..._0x221c3e[_0x49c1f9][_0x5e8f37(0x23a)]}},_0x4f27b5={'id':_0x5e8f37(0x483),'params':{'unitId':_0x221c3e[_0x49c1f9][_0x5e8f37(0x338)],..._0x221c3e[_0x49c1f9][_0x5e8f37(0x3b7)]}},_0x2d40c6=this[_0x5e8f37(0x27d)]['transformMutation'](_0x2e54d7,_0xaf6cb3,!0x1),_0x54517f=this[_0x5e8f37(0x27d)]['transformMutation'](_0x296cc6,_0x4f27b5,!0x1);if(g[_0x5e8f37(0x36b)](_0x2d40c6))throw _0x2d40c6['error'];if(g[_0x5e8f37(0x36b)](_0x54517f))throw _0x54517f[_0x5e8f37(0x423)];_0x19d763[_0x5e8f37(0x2f6)]({..._0x221c3e[_0x49c1f9],'undoState':_0x2d40c6[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)],'redoState':_0x54517f[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)]}),_0x2e54d7=_0x2d40c6['m1Prime'],_0x296cc6=_0x54517f[_0x5e8f37(0x209)];}this[_0x5e8f37(0x3f5)][_0x5e8f37(0x283)](_0x517e42,{'history':_0x5d5041,'collaboration':_0x19d763});}};te=Gt([Ie(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Ie(0x1,g[_0x351cc3(0x362)]),Ie(0x2,a['Inject'](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x351cc3(0x343)],Kt=(_0x39b32b,_0x5bb2d9,_0x3e88d6,_0x4c14c5)=>{const _0x1c2bce=_0x351cc3;for(var _0x4d9e21=_0x4c14c5>0x1?void 0x0:_0x4c14c5?Xt(_0x5bb2d9,_0x3e88d6):_0x5bb2d9,_0x4ee7ce=_0x39b32b[_0x1c2bce(0x241)]-0x1,_0x119003;_0x4ee7ce>=0x0;_0x4ee7ce--)(_0x119003=_0x39b32b[_0x4ee7ce])&&(_0x4d9e21=_0x119003(_0x4d9e21)||_0x4d9e21);return _0x4d9e21;},Pe=(_0x5c2a9f,_0x14835f)=>(_0x254139,_0x23638b)=>_0x14835f(_0x254139,_0x23638b,_0x5c2a9f);let se=class{constructor(_0x1bcb69,_0x13f997){this['_injector']=_0x1bcb69,this['_transformService']=_0x13f997;}[_0x351cc3(0x1fe)](_0x588858){const _0x41da7f=_0x351cc3;var _0x369120;const _0x4191d2=this[_0x41da7f(0x37f)][_0x41da7f(0x3d0)](V['DocSelectionManagerService']),_0x489d18=(_0x369120=_0x4191d2[_0x41da7f(0x381)]())!=null?_0x369120:[];if(_0x489d18['length']===0x0)return;const _0x39570e=_0x588858['unitID'],_0x4ed232=[{'id':_0x41da7f(0x483),'params':{'unitId':_0x39570e,'actions':null,'textRanges':_0x489d18}}],_0x31a747=this[_0x41da7f(0x27d)][_0x41da7f(0x1f7)](_0x588858,_0x4ed232);if(!g[_0x41da7f(0x42f)](_0x31a747))throw _0x31a747[_0x41da7f(0x423)];const _0x53eafb=_0x31a747['m2Prime'][0x0][_0x41da7f(0x3d6)][_0x41da7f(0x48f)];Array['isArray'](_0x53eafb)&&_0x53eafb[_0x41da7f(0x241)]&&_0x4191d2[_0x41da7f(0x348)](_0x53eafb,{'unitId':_0x39570e,'subUnitId':_0x39570e},!0x1);}};se=Kt([Pe(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Pe(0x1,g[_0x351cc3(0x362)])],se);var qt=Object[_0x351cc3(0x343)],zt=(_0x3376fb,_0x3e4668,_0x1c89a0,_0x56ea0b)=>{for(var _0x3001c6=_0x56ea0b>0x1?void 0x0:_0x56ea0b?qt(_0x3e4668,_0x1c89a0):_0x3e4668,_0x2d6c5e=_0x3376fb['length']-0x1,_0x2a138e;_0x2d6c5e>=0x0;_0x2d6c5e--)(_0x2a138e=_0x3376fb[_0x2d6c5e])&&(_0x3001c6=_0x2a138e(_0x3001c6)||_0x3001c6);return _0x3001c6;},N=(_0x87b291,_0x1b9990)=>(_0x4f5f43,_0x15a339)=>_0x1b9990(_0x4f5f43,_0x15a339,_0x87b291);let ie=class extends a[_0x351cc3(0x37b)]{constructor(_0x2f42e7,_0x2cd485,_0x37cea4,_0x545e44,_0x107cf8,_0x311b7e,_0x27ab44,_0x307a54){const _0x11ed0f=_0x351cc3;super(),_(this,_0x11ed0f(0x293),new I[(_0x11ed0f(0x263))](u['CollaborationStatus'][_0x11ed0f(0x434)])),(this['_docStateChangeManagerService']=_0x2f42e7,this[_0x11ed0f(0x31f)]=_0x2cd485,this['_docTransformIMECacheService']=_0x37cea4,this[_0x11ed0f(0x21d)]=_0x545e44,this[_0x11ed0f(0x294)]=_0x107cf8,this[_0x11ed0f(0x43b)]=_0x311b7e,this[_0x11ed0f(0x2ac)]=_0x27ab44,this[_0x11ed0f(0x3e8)]=_0x307a54,this[_0x11ed0f(0x254)]());}[_0x351cc3(0x254)](){const _0x22fe2e=_0x351cc3;this[_0x22fe2e(0x248)](this[_0x22fe2e(0x31f)][_0x22fe2e(0x365)]['subscribe'](_0x5ed670=>{const _0xd22507=_0x22fe2e,_0x582d48=this[_0xd22507(0x3f5)][_0xd22507(0x3c7)][_0xd22507(0x3b4)](_0x4fefee=>{const _0x2636b5=_0xd22507;if(_0x4fefee==null)return;const {unitId:_0x198f20,redoState:_0x1f1034,commandId:_0x349ad4}=_0x4fefee;if(_0x198f20!==_0x5ed670[_0x2636b5(0x437)])return;const _0x571fb7={'id':_0x349ad4,'type':a[_0x2636b5(0x25c)][_0x2636b5(0x415)],'params':{'unitId':_0x198f20,'actions':_0x1f1034[_0x2636b5(0x357)],'textRanges':null}};_0x5ed670[_0x2636b5(0x275)](_0x571fb7);});if(_0x5ed670[_0xd22507(0x248)](_0x582d48),_0x5ed670 instanceof u['DocCollaborationEntity']){const _0xf5cb7b={'onTransformIME':_0xdc3572=>this[_0xd22507(0x410)]['transformIMECache'](_0xdc3572),'onTransformState':_0x1aee0d=>this['_docTransformStateCacheService']['transformStateCache'](_0x1aee0d),'onTransformSelections':_0x2cd514=>this[_0xd22507(0x294)][_0xd22507(0x1fe)](_0x2cd514),'onSyncEditingCollabCursor':_0x29b099=>this[_0xd22507(0x43b)][_0xd22507(0x1f0)](_0x29b099),'onTransformRemoteChangesetByIMECache':_0x3c25aa=>this[_0xd22507(0x410)][_0xd22507(0x33d)](_0x3c25aa),'onTransformRemoteChangesetByStateCache':_0x358a35=>this[_0xd22507(0x21d)][_0xd22507(0x33d)](_0x358a35)};_0x5ed670[_0xd22507(0x29c)](_0xf5cb7b);}}));}};ie=zt([N(0x0,a[_0x351cc3(0x257)](p[_0x351cc3(0x37a)])),N(0x1,a[_0x351cc3(0x257)](u[_0x351cc3(0x397)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x351cc3(0x257)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x351cc3(0x257)](be)),N(0x6,O[_0x351cc3(0x4ae)]),N(0x7,a[_0x351cc3(0x257)](a['LocaleService']))],ie);var G=(_0x2fc01a=>(_0x2fc01a[_0x2fc01a[_0x351cc3(0x307)]=0x0]=_0x351cc3(0x307),_0x2fc01a[_0x2fc01a['OK']=0x1]='OK',_0x2fc01a[_0x2fc01a[_0x351cc3(0x259)]=0x2]=_0x351cc3(0x259),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c0)]=0x3]='PERMISSION_DENIED',_0x2fc01a[_0x2fc01a['NOT_FOUND']=0x4]=_0x351cc3(0x31e),_0x2fc01a[_0x2fc01a[_0x351cc3(0x44c)]=0x5]='UNAUTHENTICATED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x466)]=0x6]=_0x351cc3(0x466),_0x2fc01a[_0x2fc01a[_0x351cc3(0x34e)]=0x7]=_0x351cc3(0x34e),_0x2fc01a[_0x2fc01a['TOO_MANY_REQUESTS']=0x8]=_0x351cc3(0x2bd),_0x2fc01a[_0x2fc01a[_0x351cc3(0x217)]=0x9]='COMPLETION_FINISHED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x3be)]=0xa]=_0x351cc3(0x3be),_0x2fc01a[_0x2fc01a['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2fc01a[_0x2fc01a[_0x351cc3(0x396)]=0xc]=_0x351cc3(0x396),_0x2fc01a[_0x2fc01a[_0x351cc3(0x433)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2fc01a[_0x2fc01a[_0x351cc3(0x449)]=0xe]=_0x351cc3(0x449),_0x2fc01a[_0x2fc01a['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x351cc3(0x1fa),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3fd)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2fc01a[_0x2fc01a['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x351cc3(0x44f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x258)]=0x65]=_0x351cc3(0x258),_0x2fc01a[_0x2fc01a[_0x351cc3(0x492)]=0xc9]='USER_NOT_FOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x29f)]=0xca]=_0x351cc3(0x29f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x352)]=0x1389]=_0x351cc3(0x352),_0x2fc01a[_0x2fc01a[_0x351cc3(0x34f)]=0x1771]=_0x351cc3(0x34f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x4b0)]=0x1772]=_0x351cc3(0x4b0),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3a0)]=0x1773]=_0x351cc3(0x3a0),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2cb)]=0x1b59]=_0x351cc3(0x2cb),_0x2fc01a[_0x2fc01a[_0x351cc3(0x308)]=0x1b5a]=_0x351cc3(0x308),_0x2fc01a[_0x2fc01a[_0x351cc3(0x371)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2fc01a[_0x2fc01a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x351cc3(0x290),_0x2fc01a[_0x2fc01a['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x208)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2fc01a[_0x2fc01a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x27a)]=0x232a]=_0x351cc3(0x27a),_0x2fc01a[_0x2fc01a[_0x351cc3(0x369)]=0x232b]=_0x351cc3(0x369),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2d5)]=0x232c]=_0x351cc3(0x2d5),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3a1)]=0x232d]=_0x351cc3(0x3a1),_0x2fc01a[_0x2fc01a[_0x351cc3(0x445)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2fc01a[_0x2fc01a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x43f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2fc01a[_0x2fc01a[_0x351cc3(0x26c)]=0x2714]=_0x351cc3(0x26c),_0x2fc01a[_0x2fc01a[_0x351cc3(0x1fc)]=0x271a]=_0x351cc3(0x1fc),_0x2fc01a[_0x2fc01a[_0x351cc3(0x29b)]=0x271b]=_0x351cc3(0x29b),_0x2fc01a[_0x2fc01a['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x351cc3(0x48d),_0x2fc01a[_0x2fc01a[_0x351cc3(0x454)]=0x271d]=_0x351cc3(0x454),_0x2fc01a[_0x2fc01a[_0x351cc3(0x22b)]=0x271e]=_0x351cc3(0x22b),_0x2fc01a[_0x2fc01a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x351cc3(0x385),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2b6)]=0x2720]=_0x351cc3(0x2b6),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3e2)]=0x2af9]=_0x351cc3(0x3e2),_0x2fc01a[_0x2fc01a['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x351cc3(0x3a7),_0x2fc01a[_0x2fc01a[_0x351cc3(0x313)]=0x2ee2]='INVALID_INVITE_CODE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x206)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2fc01a[_0x2fc01a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x351cc3(0x4aa),_0x2fc01a[_0x2fc01a[_0x351cc3(0x24b)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x240)]=0x32c9]=_0x351cc3(0x240),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2df)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x452)]=0x32cb]=_0x351cc3(0x452),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2be)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2fc01a[_0x2fc01a[_0x351cc3(0x27b)]=0x36b2]=_0x351cc3(0x27b),_0x2fc01a[_0x2fc01a['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2b9)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2fc01a[_0x2fc01a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2f4)]=0x3716]=_0x351cc3(0x2f4),_0x2fc01a[_0x2fc01a['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2fc01a[_0x2fc01a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x2fc01a[_0x2fc01a[_0x351cc3(0x201)]=0x3a99]=_0x351cc3(0x201),_0x2fc01a[_0x2fc01a[_0x351cc3(0x321)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c4)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x39f)]=0x3a9c]=_0x351cc3(0x39f),_0x2fc01a[_0x2fc01a['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x3ed)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x364)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2fc01a[_0x2fc01a['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c5)]=-0x1]=_0x351cc3(0x2c5),_0x2fc01a))(G||{});function Jt(_0x367f5c){const _0x2ceadd=_0x351cc3;var _0x10937d,_0xc26af9;const _0x912cb7=(_0x10937d=_0x367f5c[_0x2ceadd(0x48e)])==null?void 0x0:_0x10937d[_0x2ceadd(0x346)],_0x1700e=((_0xc26af9=_0x367f5c[_0x2ceadd(0x48e)])==null?void 0x0:_0xc26af9['totalFormulasToCalculate'])||0x0;return _0x912cb7===B['FormulaExecuteStageType'][_0x2ceadd(0x31a)]&&_0x1700e>0x0;}function Zt(_0x201ea6){const _0x9487c4=_0x351cc3;return _0x201ea6[_0x9487c4(0x42c)]===B[_0x9487c4(0x426)][_0x9487c4(0x2a1)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x13a376,_0x400412,_0x234199,_0x4f9d12)=>{const _0x552fd9=_0x351cc3;for(var _0x26dc83=_0x4f9d12>0x1?void 0x0:_0x4f9d12?Qt(_0x400412,_0x234199):_0x400412,_0x355511=_0x13a376[_0x552fd9(0x241)]-0x1,_0x303e92;_0x355511>=0x0;_0x355511--)(_0x303e92=_0x13a376[_0x355511])&&(_0x26dc83=_0x303e92(_0x26dc83)||_0x26dc83);return _0x26dc83;},L=(_0x3bbec2,_0x273f01)=>(_0x2234d5,_0x3aab52)=>_0x273f01(_0x2234d5,_0x3aab52,_0x3bbec2);const ts=_0x351cc3(0x1ef),ss=_0x351cc3(0x2d0),is=_0x351cc3(0x377);let ne=class extends a['Disposable']{constructor(_0x47b0d0,_0x1be6b4,_0xf7bd5c,_0x7c1d38,_0x8892f7,_0x1391f7,_0x4eee2d){const _0x454fdc=_0x351cc3;super(),_(this,'_pollingInterval',null),_(this,_0x454fdc(0x438),0x0),_(this,_0x454fdc(0x436),0x0),_(this,'_taskIds',[]),_(this,_0x454fdc(0x2d9),0x0),(this[_0x454fdc(0x2ac)]=_0x47b0d0,this[_0x454fdc(0x3f2)]=_0x1be6b4,this[_0x454fdc(0x2ce)]=_0xf7bd5c,this['_httpService']=_0x7c1d38,this[_0x454fdc(0x2bf)]=_0x8892f7,this[_0x454fdc(0x3de)]=_0x1391f7,this['_localeService']=_0x4eee2d,this['_initCommandInterceptor']());}[_0x351cc3(0x252)](){const _0x1ffb0a=_0x351cc3;this[_0x1ffb0a(0x248)](this[_0x1ffb0a(0x3f2)][_0x1ffb0a(0x3f3)]((_0x23d374,_0x4744cc)=>{const _0x26f0f3=_0x1ffb0a;var _0xa0ea84;if(_0x23d374['id']!==B[_0x26f0f3(0x3bb)]['id'])return;const _0x54c42a=_0x23d374['params'];if(!this[_0x26f0f3(0x2fb)]((_0xa0ea84=_0x54c42a['dirtyRanges'])!=null?_0xa0ea84:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x26f0f3(0x281)](_0x23d374,_0x4744cc),this['_showGuardMessage'](),new a[(_0x26f0f3(0x439))]();})),this[_0x1ffb0a(0x248)](this[_0x1ffb0a(0x3f2)][_0x1ffb0a(0x29a)]((_0x1367ee,_0x57bcf9)=>{const _0x4731d3=_0x1ffb0a;if(_0x1367ee['id']!==B[_0x4731d3(0x3ef)]['id'])return;const _0x480dc3=_0x1367ee['params'];if(Jt(_0x480dc3)){const _0x29155d=a[_0x4731d3(0x204)]();this[_0x4731d3(0x1ff)][_0x4731d3(0x455)](_0x29155d),this[_0x4731d3(0x20b)](_0x29155d);}else{if(Zt(_0x480dc3)&&this['_taskIds']['length']>0x0){const _0x4af3fc=this[_0x4731d3(0x1ff)][_0x4731d3(0x47c)]();this[_0x4731d3(0x393)](_0x4af3fc);}}}));}['dispose'](){const _0x958699=_0x351cc3;super[_0x958699(0x469)](),this['_clearPolling'](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x958699(0x438)]=0x0,this[_0x958699(0x2d9)]=0x0;}async[_0x351cc3(0x281)](_0x39d938,_0x2f3350){const _0x1e4375=_0x351cc3;for(let _0x54aa92=0x0;_0x54aa92<0x1e;_0x54aa92++)try{if(await this[_0x1e4375(0x44a)](),this['_checkCalculationAvailable']()){this[_0x1e4375(0x228)](_0x39d938,_0x2f3350),this[_0x1e4375(0x2ac)][_0x1e4375(0x431)]({'content':this[_0x1e4375(0x3e8)]['t'](_0x1e4375(0x30e)),'type':T['MessageType'][_0x1e4375(0x457)]});return;}await new Promise(_0x596f67=>{const _0x264ae9=_0x1e4375;this[_0x264ae9(0x3b8)]=window[_0x264ae9(0x389)](_0x596f67,0x3e8);});}catch(_0x2656ae){this[_0x1e4375(0x3de)][_0x1e4375(0x423)](_0x2656ae);}this[_0x1e4375(0x2ac)]['show']({'content':this[_0x1e4375(0x3e8)]['t'](_0x1e4375(0x247)),'type':T[_0x1e4375(0x399)]['Error']});}[_0x351cc3(0x228)](_0x4ec019,_0xa36330){const _0x5602de=_0x351cc3;try{this[_0x5602de(0x3f2)][_0x5602de(0x222)](_0x4ec019['id'],_0x4ec019[_0x5602de(0x3d6)],_0xa36330);}catch(_0x402376){this[_0x5602de(0x3de)][_0x5602de(0x423)](_0x402376);}}[_0x351cc3(0x1f9)](_0x15390e,_0x18348d){const _0x4622c1=_0x351cc3;_0x18348d<this['_lastResponseTimestamp']||(this[_0x4622c1(0x2d9)]=_0x18348d,this[_0x4622c1(0x438)]=Number[_0x4622c1(0x441)](_0x15390e[_0x4622c1(0x311)]),this[_0x4622c1(0x436)]=Number[_0x4622c1(0x441)](_0x15390e[_0x4622c1(0x2a2)]));}async['_startCalculationLimit'](_0x29b27a){const _0x57997f=_0x351cc3;var _0xd5b2cb,_0x2076e0;const _0x2e3dd5=Date[_0x57997f(0x39a)]();try{const _0x5cef47=((_0xd5b2cb=this[_0x57997f(0x2ce)][_0x57997f(0x2eb)](u[_0x57997f(0x28c)]))==null?void 0x0:_0xd5b2cb['startFormulaLimitUrl'])||ss,_0x255530=(await this[_0x57997f(0x2e3)][_0x57997f(0x261)](_0x5cef47,{'body':JSON[_0x57997f(0x2ef)]({'taskId':_0x29b27a})}))[_0x57997f(0x4a1)];if(((_0x2076e0=_0x255530['error'])==null?void 0x0:_0x2076e0[_0x57997f(0x337)])!==G['OK'])return;this[_0x57997f(0x1f9)](_0x255530[_0x57997f(0x2c2)],_0x2e3dd5);}catch(_0x326d97){this[_0x57997f(0x3de)]['error'](_0x326d97);}}async['_getFormulaLimitStatus'](_0x22710d){const _0xb28820=_0x351cc3;var _0x54c9d8,_0x13341b;const _0xbd69c8=Date['now']();try{const _0x30e673=((_0x54c9d8=this[_0xb28820(0x2ce)][_0xb28820(0x2eb)](u[_0xb28820(0x28c)]))==null?void 0x0:_0x54c9d8[_0xb28820(0x256)])||ts,_0x301ff2=_0x22710d?_0x30e673+_0xb28820(0x2a8)+encodeURIComponent(_0x22710d):_0x30e673,_0x464e76=(await this[_0xb28820(0x2e3)]['get'](_0x301ff2))['body'];if(((_0x13341b=_0x464e76[_0xb28820(0x423)])==null?void 0x0:_0x13341b[_0xb28820(0x337)])!==G['OK'])return;this[_0xb28820(0x1f9)](_0x464e76[_0xb28820(0x2c2)],_0xbd69c8);}catch(_0x26203f){this[_0xb28820(0x3de)][_0xb28820(0x423)](_0x26203f);}}async[_0x351cc3(0x393)](_0x48b1cc){const _0x4075ec=_0x351cc3;var _0x243382,_0x2fde63;const _0x345729=Date[_0x4075ec(0x39a)]();try{const _0x1c4701=((_0x243382=this[_0x4075ec(0x2ce)][_0x4075ec(0x2eb)](u[_0x4075ec(0x28c)]))==null?void 0x0:_0x243382[_0x4075ec(0x3c2)])||is,_0x578375=(await this[_0x4075ec(0x2e3)][_0x4075ec(0x261)](_0x1c4701,{'body':JSON[_0x4075ec(0x2ef)]({'taskId':_0x48b1cc})}))['body'];if(((_0x2fde63=_0x578375[_0x4075ec(0x423)])==null?void 0x0:_0x2fde63[_0x4075ec(0x337)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x578375[_0x4075ec(0x2c2)],_0x345729);}catch(_0x373043){this['_logService'][_0x4075ec(0x423)](_0x373043);}}[_0x351cc3(0x2fe)](){const _0x55ce33=_0x351cc3;return this[_0x55ce33(0x438)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x55ce33(0x436)]>0x0;}['_clearPolling'](){const _0x350625=_0x351cc3;this[_0x350625(0x3b8)]&&(clearTimeout(this[_0x350625(0x3b8)]),this[_0x350625(0x3b8)]=null);}[_0x351cc3(0x46d)](){const _0x4abc75=_0x351cc3;this[_0x4abc75(0x2ac)][_0x4abc75(0x431)]({'content':this['_localeService']['t'](_0x4abc75(0x3f7)),'type':T[_0x4abc75(0x399)]['Loading']});}[_0x351cc3(0x2fb)](_0x2568cf){const _0x28464f=_0x351cc3;for(const _0x4dca24 of _0x2568cf){const {unitId:_0x5fc2e9,sheetId:_0x4b86b8,range:_0xf52339}=_0x4dca24,_0x2f721a=this[_0x28464f(0x2bf)][_0x28464f(0x332)](_0x5fc2e9);if(!_0x2f721a)continue;const _0x23973e=_0x2f721a['getSheetBySheetId'](_0x4b86b8);if(!_0x23973e)continue;const _0x1e6ae6=_0x23973e['getCellMatrix']();for(let _0x3cc74a=_0xf52339[_0x28464f(0x333)];_0x3cc74a<=_0xf52339[_0x28464f(0x405)];_0x3cc74a++)for(let _0x5e557d=_0xf52339[_0x28464f(0x49b)];_0x5e557d<=_0xf52339[_0x28464f(0x227)];_0x5e557d++){const _0x4b41dd=_0x1e6ae6[_0x28464f(0x24d)](_0x3cc74a,_0x5e557d);if(_0x4b41dd&&(a['isFormulaString'](_0x4b41dd['f'])||a[_0x28464f(0x2c7)](_0x4b41dd['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x351cc3(0x4ae)])),L(0x1,a[_0x351cc3(0x30d)]),L(0x2,a[_0x351cc3(0x456)]),L(0x3,a[_0x351cc3(0x257)](x['HTTPService'])),L(0x4,a[_0x351cc3(0x314)]),L(0x5,a['ILogService']),L(0x6,a[_0x351cc3(0x257)](a[_0x351cc3(0x2bb)]))],ne);var ns=Object[_0x351cc3(0x343)],rs=(_0x3f0f3c,_0x12a48f,_0x19c37b,_0x57e2d9)=>{const _0x1f4e7e=_0x351cc3;for(var _0x1973ec=_0x57e2d9>0x1?void 0x0:_0x57e2d9?ns(_0x12a48f,_0x19c37b):_0x12a48f,_0x21f818=_0x3f0f3c[_0x1f4e7e(0x241)]-0x1,_0x562cc0;_0x21f818>=0x0;_0x21f818--)(_0x562cc0=_0x3f0f3c[_0x21f818])&&(_0x1973ec=_0x562cc0(_0x1973ec)||_0x1973ec);return _0x1973ec;},de=(_0x4c36d4,_0x2eea48)=>(_0x1c456a,_0x225f83)=>_0x2eea48(_0x1c456a,_0x225f83,_0x4c36d4);let pe=class extends a[_0x351cc3(0x37b)]{constructor(_0x11b884,_0x1cf35d,_0x502648){const _0x5cabeb=_0x351cc3;super(),_(this,'_cachedData',new Map()),_(this,_0x5cabeb(0x3eb),new Map()),_(this,_0x5cabeb(0x3d1),!0x1),(this['_configService']=_0x11b884,this[_0x5cabeb(0x374)]=_0x1cf35d,this[_0x5cabeb(0x3df)]=_0x502648);}[_0x351cc3(0x356)](){this['_disabled']=!0x0;}[_0x351cc3(0x266)](){const _0x14e3b3=_0x351cc3;this[_0x14e3b3(0x3d1)]=!0x1;}get[_0x351cc3(0x42e)](){return this['_saveTaskMap'];}[_0x351cc3(0x469)](){const _0x422c36=_0x351cc3;this[_0x422c36(0x270)]()['then'](()=>super[_0x422c36(0x469)]());}async[_0x351cc3(0x273)](_0x45b552){const _0x1fd603=_0x351cc3;return this[_0x1fd603(0x3d1)]?null:this['_localStorageService']['getItem'](u[_0x1fd603(0x463)](_0x45b552));}async[_0x351cc3(0x3d8)](_0x36c4fe,_0x502647){const _0x28cd27=_0x351cc3;return!!this[_0x28cd27(0x374)][_0x28cd27(0x390)](_0x36c4fe,_0x502647);}['updateOfflineData'](_0x4ee7ef,_0x28fe00,_0x128d6f,_0x584378){const _0x46690b=_0x351cc3,_0x597935=this[_0x46690b(0x3df)][_0x46690b(0x36c)](_0x4ee7ef);this[_0x46690b(0x47f)][_0x46690b(0x305)](_0x4ee7ef,{'unitID':_0x4ee7ef,'type':_0x28fe00,'awaitingChangeset':_0x128d6f,'mutations':_0x584378,'rev':_0x597935}),this[_0x46690b(0x3eb)][_0x46690b(0x370)](_0x4ee7ef)||this[_0x46690b(0x40a)](_0x4ee7ef);}[_0x351cc3(0x40a)](_0x15ab60){const _0x2b02f3=_0x351cc3,_0x266106=this[_0x2b02f3(0x2d3)]();_0x266106===0x0?this['_saveCache'](_0x15ab60):this[_0x2b02f3(0x3eb)][_0x2b02f3(0x305)](_0x15ab60,setTimeout(()=>this['_saveCache'](_0x15ab60),_0x266106));}['_getSaveTimeout'](){const _0x55a78f=_0x351cc3;var _0x36677a;return(_0x36677a=this[_0x55a78f(0x2ce)][_0x55a78f(0x2eb)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x36677a:u[_0x55a78f(0x3ba)];}[_0x351cc3(0x443)](_0x5ac349){const _0x2d4a5e=_0x351cc3,_0x2949b3=this[_0x2d4a5e(0x3eb)][_0x2d4a5e(0x3d0)](_0x5ac349);return _0x2949b3!==void 0x0&&window[_0x2d4a5e(0x326)](_0x2949b3),this[_0x2d4a5e(0x374)][_0x2d4a5e(0x390)](u[_0x2d4a5e(0x463)](_0x5ac349),this[_0x2d4a5e(0x47f)][_0x2d4a5e(0x3d0)](_0x5ac349))[_0x2d4a5e(0x4a0)](()=>this[_0x2d4a5e(0x3eb)]['delete'](_0x5ac349));}async[_0x351cc3(0x270)](){const _0x2fefe2=_0x351cc3,_0x51a9e9=[];this[_0x2fefe2(0x3eb)][_0x2fefe2(0x264)]((_0x501a45,_0x2a8366)=>{const _0x1a4962=_0x2fefe2;window['clearTimeout'](_0x501a45),_0x51a9e9[_0x1a4962(0x455)](this[_0x1a4962(0x443)](_0x2a8366)['then'](()=>{const _0xc63f94=_0x1a4962;this[_0xc63f94(0x3eb)][_0xc63f94(0x4a9)](_0x2a8366);}));}),await Promise['all'](_0x51a9e9);}};pe=rs([de(0x0,a[_0x351cc3(0x456)]),de(0x1,a[_0x351cc3(0x391)]),de(0x2,a[_0x351cc3(0x257)](g[_0x351cc3(0x383)]))],pe);class ke extends a[_0x351cc3(0x487)]{constructor(){const _0x162fd8=_0x351cc3;super(),_(this,_0x162fd8(0x2f9)),this[_0x162fd8(0x2f9)]=I[_0x162fd8(0x339)](window,_0x162fd8(0x2b7))[_0x162fd8(0x38b)](I['takeUntil'](this['dispose$']),I[_0x162fd8(0x2ad)](0x1),I[_0x162fd8(0x497)](void 0x0));}[_0x351cc3(0x1f8)](_0xdf204e,_0x375498,_0x1d404f=!0x1){const _0x4c32e1=_0x351cc3,_0x3d57b5=new URL(window['location'][_0x4c32e1(0x3a3)]);_0x3d57b5['searchParams'][_0x4c32e1(0x305)](_0xdf204e,_0x375498),_0x1d404f?window[_0x4c32e1(0x20e)][_0x4c32e1(0x23c)]('','',_0x3d57b5['toString']()):window[_0x4c32e1(0x20e)][_0x4c32e1(0x467)]('','',_0x3d57b5[_0x4c32e1(0x2e7)]());}['removeParam'](_0x2ca017,_0x39594d=!0x1){const _0x193679=_0x351cc3,_0x535c6a=new URL(window['location'][_0x193679(0x3a3)]);_0x535c6a[_0x193679(0x2e5)][_0x193679(0x4a9)](_0x2ca017),_0x39594d?window['history'][_0x193679(0x23c)]('','',_0x535c6a[_0x193679(0x2e7)]()):window['history'][_0x193679(0x467)]('','',_0x535c6a['toString']());}[_0x351cc3(0x2d2)](_0x5af2b9){const _0x31542e=_0x351cc3;var _0x346896;return(_0x346896=new URL(window[_0x31542e(0x2c9)][_0x31542e(0x3a3)])[_0x31542e(0x2e5)][_0x31542e(0x3d0)](_0x5af2b9))!=null?_0x346896:void 0x0;}}var os=Object[_0x351cc3(0x344)],as=Object['getOwnPropertyDescriptor'],cs=(_0x55bce9,_0x18a23f,_0x377824)=>_0x18a23f in _0x55bce9?os(_0x55bce9,_0x18a23f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377824}):_0x55bce9[_0x18a23f]=_0x377824,ls=(_0x2c1832,_0x596206,_0x56db3e,_0x44f237)=>{const _0x119b9a=_0x351cc3;for(var _0x24d1ea=_0x44f237>0x1?void 0x0:_0x44f237?as(_0x596206,_0x56db3e):_0x596206,_0x128e7b=_0x2c1832[_0x119b9a(0x241)]-0x1,_0x5a6b41;_0x128e7b>=0x0;_0x128e7b--)(_0x5a6b41=_0x2c1832[_0x128e7b])&&(_0x24d1ea=_0x5a6b41(_0x24d1ea)||_0x24d1ea);return _0x24d1ea;},Se=(_0x49e4bb,_0x40d0f7)=>(_0x2364b6,_0x593e61)=>_0x40d0f7(_0x2364b6,_0x593e61,_0x49e4bb),_s=(_0x13b179,_0xe47eff,_0x2c4b1c)=>cs(_0x13b179,_0xe47eff+'',_0x2c4b1c);const hs=_0x351cc3(0x26e);exports[_0x351cc3(0x47e)]=class extends a[_0x351cc3(0x486)]{constructor(_0x23578a=Me,_0x4da0a2,_0x50dff1,_0x4ce95b){const _0x5ee71f=_0x351cc3;super(),this['_config']=_0x23578a,this[_0x5ee71f(0x398)]=_0x4da0a2,this[_0x5ee71f(0x37f)]=_0x50dff1,this[_0x5ee71f(0x2ce)]=_0x4ce95b;const {..._0x246321}=a['merge']({},Me,this[_0x5ee71f(0x272)]);this[_0x5ee71f(0x2ce)]['setConfig'](Yt,_0x246321);}[_0x351cc3(0x38c)](){const _0x32d2c8=_0x351cc3;this['_registerDependencies'](),this[_0x32d2c8(0x46b)]();}[_0x351cc3(0x219)](){const _0x3ffc32=_0x351cc3;this[_0x3ffc32(0x2ca)]();}[_0x351cc3(0x4af)](){const _0x9e79d0=_0x351cc3;var _0x4129f6;const _0x22f481=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x9e79d0(0x3fa)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x9e79d0(0x29d)]]];this[_0x9e79d0(0x272)][_0x9e79d0(0x23f)]&&_0x22f481[_0x9e79d0(0x455)]([Q]),a[_0x9e79d0(0x28f)](this['_injector'],a[_0x9e79d0(0x462)](_0x22f481,(_0x4129f6=this[_0x9e79d0(0x272)])==null?void 0x0:_0x4129f6[_0x9e79d0(0x25e)]));}[_0x351cc3(0x2ca)](){const _0x44a3c3=_0x351cc3;this['disposeWithMe'](this['_renderManagerService'][_0x44a3c3(0x408)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this['disposeWithMe'](this[_0x44a3c3(0x398)][_0x44a3c3(0x408)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x351cc3(0x46b)](){const _0x4cf176=_0x351cc3;a[_0x4cf176(0x4a7)](this[_0x4cf176(0x37f)],[[F],[exports[_0x4cf176(0x475)]],[ie],[Z],[exports[_0x4cf176(0x29d)]],[ne]]),this[_0x4cf176(0x272)][_0x4cf176(0x23f)]&&a[_0x4cf176(0x4a7)](this[_0x4cf176(0x37f)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x351cc3(0x213),hs),exports[_0x351cc3(0x47e)]=ls([a[_0x351cc3(0x464)](u['UniverCollaborationClientPlugin']),Se(0x1,C[_0x351cc3(0x382)]),Se(0x2,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Se(0x3,a[_0x351cc3(0x456)])],exports[_0x351cc3(0x47e)]);var us=Object[_0x351cc3(0x343)],Is=(_0x2308a8,_0x178d12,_0x16fea6,_0x12f932)=>{const _0x376f5f=_0x351cc3;for(var _0x5dddad=_0x12f932>0x1?void 0x0:_0x12f932?us(_0x178d12,_0x16fea6):_0x178d12,_0x37951b=_0x2308a8[_0x376f5f(0x241)]-0x1,_0x33e454;_0x37951b>=0x0;_0x37951b--)(_0x33e454=_0x2308a8[_0x37951b])&&(_0x5dddad=_0x33e454(_0x5dddad)||_0x5dddad);return _0x5dddad;},W=(_0x4ccfa6,_0x363c0f)=>(_0x45826d,_0x48ee7c)=>_0x363c0f(_0x45826d,_0x48ee7c,_0x4ccfa6);exports['BrowserCollaborationSocketService']=class extends u[_0x351cc3(0x46f)]{constructor(_0x568368,_0x1c79c1,_0x2be100,_0x4d77e4,_0x2e70e2){super(_0x568368,_0x1c79c1,_0x2be100,_0x4d77e4,_0x2e70e2);}async[_0x351cc3(0x271)](_0x1d342e){const _0x446bd0=_0x351cc3,_0x284d8d=await this['_getSessionTicket'](),_0x559199=this[_0x446bd0(0x2f0)](_0x1d342e,_0x284d8d);return this[_0x446bd0(0x22a)](_0x559199);}[_0x351cc3(0x2f0)](_0x5bcc1e,_0x3790b2){const _0x3a3149=_0x351cc3,_0x32abd3=typeof window>'u'?new URL(_0x5bcc1e):new URL(_0x5bcc1e,window[_0x3a3149(0x2c9)]['origin']);_0x32abd3['searchParams'][_0x3a3149(0x305)](_0x3a3149(0x286),_0x3790b2);const _0x2e8818=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a3149(0x2c9)][_0x3a3149(0x30b)]);return _0x2e8818[_0x3a3149(0x3d0)](_0x3a3149(0x2d4))&&_0x32abd3[_0x3a3149(0x2e5)][_0x3a3149(0x305)](_0x3a3149(0x2d4),_0x2e8818[_0x3a3149(0x3d0)](_0x3a3149(0x2d4))),_0x32abd3[_0x3a3149(0x2e7)]();}async[_0x351cc3(0x2bc)](){const _0x23ccd1=_0x351cc3;var _0xaefde8,_0x242aba,_0x3a6199;const _0x187c8b=this[_0x23ccd1(0x2ce)]['getConfig'](u[_0x23ccd1(0x28c)]),_0x1690fd=(_0xaefde8=_0x187c8b==null?void 0x0:_0x187c8b[_0x23ccd1(0x3c4)])!=null?_0xaefde8:u[_0x23ccd1(0x3e3)];return(_0x3a6199=(_0x242aba=(await this[_0x23ccd1(0x2e3)]['get'](_0x1690fd,{'headers':{'Content-Type':'application/json'}}))[_0x23ccd1(0x4a1)])==null?void 0x0:_0x242aba[_0x23ccd1(0x320)])!=null?_0x3a6199:'';}},exports[_0x351cc3(0x493)]=Is([W(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),W(0x1,a[_0x351cc3(0x257)](x[_0x351cc3(0x242)])),W(0x2,a['IConfigService']),W(0x3,a[_0x351cc3(0x31d)]),W(0x4,g[_0x351cc3(0x225)])],exports['BrowserCollaborationSocketService']);var ds=Object['getOwnPropertyDescriptor'],Ss=(_0x2c2795,_0x369c0d,_0x2d64c6,_0x3b91e7)=>{const _0x354578=_0x351cc3;for(var _0x498e32=_0x3b91e7>0x1?void 0x0:_0x3b91e7?ds(_0x369c0d,_0x2d64c6):_0x369c0d,_0x5c9f00=_0x2c2795[_0x354578(0x241)]-0x1,_0x5ea678;_0x5c9f00>=0x0;_0x5c9f00--)(_0x5ea678=_0x2c2795[_0x5c9f00])&&(_0x498e32=_0x5ea678(_0x498e32)||_0x498e32);return _0x498e32;},fe=(_0x5a7fef,_0x2542fa)=>(_0x28403e,_0x2f9e22)=>_0x2542fa(_0x28403e,_0x2f9e22,_0x5a7fef);exports[_0x351cc3(0x471)]=class extends a[_0x351cc3(0x37b)]{constructor(_0x2993a3,_0xb58ef7,_0x3685b5){const _0x38ab84=_0x351cc3;super(),this[_0x38ab84(0x3b0)]=_0x2993a3,this[_0x38ab84(0x2e3)]=_0xb58ef7,this[_0x38ab84(0x2ce)]=_0x3685b5;}async[_0x351cc3(0x368)](_0x23f75e,_0x3e6089,_0x33a065,..._0x38fa96){const _0x1d1a3b=_0x351cc3;var _0x16f58c,_0xce99c,_0xd6dcc9,_0x19062e;const _0x5410b6=this[_0x1d1a3b(0x3b0)][_0x1d1a3b(0x22e)]();if(!_0x5410b6)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x44b445=((_0x16f58c=this[_0x1d1a3b(0x2ce)][_0x1d1a3b(0x2eb)](u[_0x1d1a3b(0x496)]))!=null?_0x16f58c:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x23f75e+_0x1d1a3b(0x2da)+_0x3e6089,_0x5b49a7=new URL(window['location'][_0x1d1a3b(0x3a3)]),_0x3b131c={'scriptId':_0x23f75e,'runId':(_0xce99c=_0x5b49a7[_0x1d1a3b(0x2e5)]['get'](_0x1d1a3b(0x2d4)))!=null?_0xce99c:'','function':_0x3e6089,'unitId':_0x5410b6[_0x1d1a3b(0x3b1)](),'argsOfFunction':JSON['stringify'](_0x38fa96),'invokeId':(_0xd6dcc9=_0x33a065[_0x1d1a3b(0x1f3)])!=null?_0xd6dcc9:'','executionId':(_0x19062e=_0x33a065[_0x1d1a3b(0x342)])!=null?_0x19062e:''};try{const _0x596c5c=await this['_httpService'][_0x1d1a3b(0x261)](_0x44b445,{'body':_0x3b131c});return _0x596c5c[_0x1d1a3b(0x4a1)][_0x1d1a3b(0x423)]&&_0x596c5c[_0x1d1a3b(0x4a1)]['error'][_0x1d1a3b(0x337)]!==G['OK']?'Failed':_0x596c5c['body'][_0x1d1a3b(0x302)];}catch{return _0x1d1a3b(0x409);}}},exports[_0x351cc3(0x471)]=Ss([fe(0x0,a[_0x351cc3(0x314)]),fe(0x1,a['Inject'](x[_0x351cc3(0x242)])),fe(0x2,a['IConfigService'])],exports[_0x351cc3(0x471)]);const we=0x7530,ye=_0x351cc3(0x37e);class fs extends a['Disposable']{constructor(){const _0x3a9d4f=_0x351cc3;super(),_(this,'_id',a[_0x3a9d4f(0x204)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x3a9d4f(0x288),null),_(this,_0x3a9d4f(0x26f),new Map()),_(this,_0x3a9d4f(0x25b),new Map()),this[_0x3a9d4f(0x331)]();}[_0x351cc3(0x469)](){const _0x1363a2=_0x351cc3;super['dispose'](),this[_0x1363a2(0x26f)][_0x1363a2(0x264)]((_0x5374db,_0x204434)=>this[_0x1363a2(0x488)](_0x204434)),this['_heartbeatTimer']&&window[_0x1363a2(0x3f8)](this[_0x1363a2(0x288)]);}[_0x351cc3(0x35a)](_0x57ee06){const _0x23e9f1=_0x351cc3;return this[_0x23e9f1(0x3c3)](_0x57ee06)[_0x23e9f1(0x38b)](I['distinctUntilChanged']());}['editingUnit'](_0x47f478){const _0x38e6ac=_0x351cc3;this[_0x38e6ac(0x304)][_0x38e6ac(0x35e)]===0x0&&this[_0x38e6ac(0x448)](),this[_0x38e6ac(0x304)]['add'](_0x47f478),this[_0x38e6ac(0x255)]({'type':0x0,'memberID':this[_0x38e6ac(0x4bc)],'unitIDs':[_0x47f478],'isForwarded':!0x1});}[_0x351cc3(0x412)](_0x44e0a4){const _0x3d9153=_0x351cc3;this[_0x3d9153(0x304)][_0x3d9153(0x4a9)](_0x44e0a4),this[_0x3d9153(0x304)][_0x3d9153(0x35e)]===0x0&&this[_0x3d9153(0x288)]&&window['clearInterval'](this[_0x3d9153(0x288)]);}[_0x351cc3(0x331)](){const _0x3b53b3=_0x351cc3;this['disposeWithMe'](a[_0x3b53b3(0x30f)](I[_0x3b53b3(0x339)](window,'storage')[_0x3b53b3(0x3b4)](_0x52dc18=>{const _0x1bfcd7=_0x3b53b3;if(_0x52dc18[_0x1bfcd7(0x33f)]!==ye||!_0x52dc18['newValue'])return;const _0x36f709=JSON[_0x1bfcd7(0x40c)](_0x52dc18['newValue']);this[_0x1bfcd7(0x24c)](_0x36f709);}))),window[_0x3b53b3(0x472)](_0x3b53b3(0x39c),()=>this['_send']({'type':0x1,'memberID':this[_0x3b53b3(0x4bc)],'unitIDs':Array[_0x3b53b3(0x301)](this[_0x3b53b3(0x304)])}));}[_0x351cc3(0x24c)](_0x1626f3){const _0x5969d8=_0x351cc3;switch(_0x1626f3['type']){case 0x0:this['_handleJoinEvent'](_0x1626f3);break;case 0x1:this[_0x5969d8(0x20f)](_0x1626f3);break;case 0x2:this[_0x5969d8(0x407)](_0x1626f3);break;}}[_0x351cc3(0x4a5)](_0x13d5da){const _0x26b034=_0x351cc3,{unitIDs:_0x2a791c,memberID:_0x2d16e8,isForwarded:_0xa39850}=_0x13d5da;_0x2a791c[_0x26b034(0x264)](_0x55a3c8=>{const _0x9ccab6=_0x26b034;if(!_0xa39850&&this[_0x9ccab6(0x3da)][_0x9ccab6(0x370)](_0x55a3c8)&&this[_0x9ccab6(0x3c3)](_0x55a3c8)[_0x9ccab6(0x380)](u[_0x9ccab6(0x358)][_0x9ccab6(0x425)]),!this[_0x9ccab6(0x3da)][_0x9ccab6(0x370)](_0x55a3c8)||!this['_unitOnClients']['get'](_0x55a3c8)['has'](_0x2d16e8)){const _0x3b7bf3=this[_0x9ccab6(0x3da)][_0x9ccab6(0x3d0)](_0x55a3c8)||new Set();_0x3b7bf3[_0x9ccab6(0x251)](_0x2d16e8),this[_0x9ccab6(0x3da)][_0x9ccab6(0x305)](_0x55a3c8,_0x3b7bf3),this[_0x9ccab6(0x2e2)](_0x2d16e8);}}),_0xa39850||this[_0x26b034(0x255)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x26b034(0x304)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5cd82c){const _0x3a84c8=_0x351cc3;this[_0x3a84c8(0x488)](_0x5cd82c);const _0x500eb3=window[_0x3a84c8(0x389)](()=>{const _0x1aac11=_0x3a84c8;this[_0x1aac11(0x3da)][_0x1aac11(0x264)](_0x4db836=>{_0x4db836['delete'](_0x5cd82c);});},we*0x2);this['_clearOtherTimers'][_0x3a84c8(0x305)](_0x5cd82c,_0x500eb3);}[_0x351cc3(0x488)](_0x374d07){const _0x5efc92=_0x351cc3;if(this[_0x5efc92(0x26f)]['has'](_0x374d07)){const _0x202ab8=this[_0x5efc92(0x26f)][_0x5efc92(0x3d0)](_0x374d07);_0x202ab8&&window[_0x5efc92(0x326)](_0x202ab8),this['_clearOtherTimers'][_0x5efc92(0x305)](_0x374d07,null);}}['_handleLeaveEvent'](_0x22b2f3){const {memberID:_0x73f488,unitIDs:_0x1713b6}=_0x22b2f3;_0x1713b6['forEach'](_0x5e388f=>{const _0x2f2f81=_0xf8a9;var _0x9f460a;const _0x44112e=this['_unitOnClients'][_0x2f2f81(0x3d0)](_0x5e388f);_0x44112e&&(_0x44112e[_0x2f2f81(0x4a9)](_0x73f488),(_0x9f460a=this[_0x2f2f81(0x3c3)](_0x5e388f))==null||_0x9f460a['next'](_0x44112e[_0x2f2f81(0x35e)]===0x0?u[_0x2f2f81(0x358)][_0x2f2f81(0x287)]:u[_0x2f2f81(0x358)][_0x2f2f81(0x425)]));}),this['_removeClearOtherTimer'](_0x73f488);}[_0x351cc3(0x407)](_0x436cb5){const _0xf2de5b=_0x351cc3;this[_0xf2de5b(0x2e2)](_0x436cb5['memberID']);}[_0x351cc3(0x255)](_0x2542aa){const _0x2239dd=_0x351cc3;localStorage[_0x2239dd(0x390)](ye,JSON[_0x2239dd(0x2ef)](_0x2542aa));}[_0x351cc3(0x448)](){const _0x1dd135=_0x351cc3;this[_0x1dd135(0x288)]=window[_0x1dd135(0x23d)](()=>{const _0x204e5d=_0x1dd135;this[_0x204e5d(0x255)]({'type':0x2,'memberID':this[_0x204e5d(0x4bc)]});},we);}[_0x351cc3(0x3c3)](_0xe42f3){const _0x4703f5=_0x351cc3;return this[_0x4703f5(0x25b)][_0x4703f5(0x370)](_0xe42f3)||this[_0x4703f5(0x25b)][_0x4703f5(0x305)](_0xe42f3,new I[(_0x4703f5(0x263))](u['UnitStatus'][_0x4703f5(0x287)])),this[_0x4703f5(0x25b)][_0x4703f5(0x3d0)](_0xe42f3);}}exports[_0x351cc3(0x44d)]=Oe,exports[_0x351cc3(0x42d)]=je,exports[_0x351cc3(0x200)]=fs,exports[_0x351cc3(0x335)]=ke;
1
+ 'use strict';const _0x5e7409=_0x4e0e;(function(_0x140af3,_0x2d2162){const _0x35ceed=_0x4e0e,_0x48e960=_0x140af3();while(!![]){try{const _0x530885=-parseInt(_0x35ceed(0x3ce))/0x1*(parseInt(_0x35ceed(0x185))/0x2)+parseInt(_0x35ceed(0x27b))/0x3+-parseInt(_0x35ceed(0x36c))/0x4+-parseInt(_0x35ceed(0x398))/0x5*(-parseInt(_0x35ceed(0x10d))/0x6)+-parseInt(_0x35ceed(0x2c2))/0x7*(parseInt(_0x35ceed(0x30b))/0x8)+parseInt(_0x35ceed(0x2a3))/0x9*(parseInt(_0x35ceed(0x211))/0xa)+-parseInt(_0x35ceed(0x2c7))/0xb;if(_0x530885===_0x2d2162)break;else _0x48e960['push'](_0x48e960['shift']());}catch(_0x228e6d){_0x48e960['push'](_0x48e960['shift']());}}}(_0x5a7d,0xb477f));var Xe=Object[_0x5e7409(0x3cd)],Ke=(_0x2a2861,_0x235f0e,_0x43b986)=>_0x235f0e in _0x2a2861?Xe(_0x2a2861,_0x235f0e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43b986}):_0x2a2861[_0x235f0e]=_0x43b986,_=(_0x5414d9,_0x13c32f,_0xd049b3)=>Ke(_0x5414d9,typeof _0x13c32f!=_0x5e7409(0x3c6)?_0x13c32f+'':_0x13c32f,_0xd049b3);Object[_0x5e7409(0x3cd)](exports,Symbol[_0x5e7409(0x1b1)],{'value':_0x5e7409(0x238)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x2b61b6,..._0x1a749e}){const _0x2f5836=_0x5e7409,{icon:_0xc00e2d,id:_0x343e2d,className:_0x5aa3ec,extend:_0x3cbded,..._0x2f82b7}=_0x1a749e,_0xa7fa63=(_0x2f5836(0x13f)+_0x343e2d+'\x20'+(_0x5aa3ec||''))[_0x2f5836(0x122)](),_0x565c37=A[_0x2f5836(0x236)]('_'+Qe());return $e(_0xc00e2d,''+_0x343e2d,{'defIds':_0xc00e2d['defIds'],'idSuffix':_0x565c37[_0x2f5836(0x1d8)]},{'ref':_0x2b61b6,'className':_0xa7fa63,..._0x2f82b7},_0x3cbded);}function $e(_0x13e470,_0x3728f2,_0x66b48f,_0x498289,_0x38066c){const _0x16c416=_0x5e7409;return A[_0x16c416(0x1b4)](_0x13e470['tag'],{'key':_0x3728f2,...Je(_0x13e470,_0x66b48f,_0x38066c),..._0x498289},(Ze(_0x13e470,_0x66b48f)[_0x16c416(0x326)]||[])[_0x16c416(0x173)]((_0x2e8b7c,_0x25fb45)=>$e(_0x2e8b7c,_0x3728f2+'-'+_0x13e470[_0x16c416(0x354)]+'-'+_0x25fb45,_0x66b48f,void 0x0,_0x38066c)));}function Je(_0x17843c,_0x5b4cf6,_0x568fff){const _0x30f465=_0x5e7409,_0x57d598={..._0x17843c[_0x30f465(0x2ae)]};_0x568fff!=null&&_0x568fff[_0x30f465(0x3be)]&&_0x57d598['fill']==='colorChannel1'&&(_0x57d598[_0x30f465(0x2cb)]=_0x568fff[_0x30f465(0x3be)]),_0x17843c[_0x30f465(0x354)]==='mask'&&_0x57d598['id']&&(_0x57d598['id']=_0x57d598['id']+_0x5b4cf6['idSuffix']),Object[_0x30f465(0x216)](_0x57d598)[_0x30f465(0x2f8)](([_0x54a40c,_0x5a424a])=>{const _0x54c97a=_0x30f465;_0x54a40c===_0x54c97a(0x2d9)&&typeof _0x5a424a=='string'&&(_0x57d598[_0x54a40c]=_0x5a424a[_0x54c97a(0x1ce)](/url\(#(.*)\)/,_0x54c97a(0x169)+_0x5b4cf6[_0x54c97a(0x32a)]+')'));});const {defIds:_0xcb8135}=_0x5b4cf6;return!_0xcb8135||_0xcb8135[_0x30f465(0x23d)]===0x0||(_0x17843c['tag']===_0x30f465(0x13b)&&_0x57d598[_0x30f465(0x250)]&&(_0x57d598[_0x30f465(0x250)]=_0x57d598[_0x30f465(0x250)]+_0x5b4cf6[_0x30f465(0x32a)]),Object[_0x30f465(0x216)](_0x57d598)[_0x30f465(0x2f8)](([_0x4766f1,_0x140558])=>{const _0xbfa3b8=_0x30f465;typeof _0x140558=='string'&&(_0x57d598[_0x4766f1]=_0x140558[_0xbfa3b8(0x1ce)](/url\(#(.*)\)/,_0xbfa3b8(0x169)+_0x5b4cf6['idSuffix']+')'));})),_0x57d598;}function Ze(_0x2b7518,_0x1468e7){const _0xb767f0=_0x5e7409;var _0x242b97;const {defIds:_0x3eb112}=_0x1468e7;return!_0x3eb112||_0x3eb112[_0xb767f0(0x23d)]===0x0?_0x2b7518:_0x2b7518['tag']===_0xb767f0(0x1c9)&&((_0x242b97=_0x2b7518[_0xb767f0(0x326)])!=null&&_0x242b97['length'])?{..._0x2b7518,'children':_0x2b7518['children'][_0xb767f0(0x173)](_0x541dde=>typeof _0x541dde[_0xb767f0(0x2ae)]['id']=='string'&&_0x3eb112&&_0x3eb112[_0xb767f0(0x28a)](_0x541dde[_0xb767f0(0x2ae)]['id'])?{..._0x541dde,'attrs':{..._0x541dde[_0xb767f0(0x2ae)],'id':_0x541dde[_0xb767f0(0x2ae)]['id']+_0x1468e7[_0xb767f0(0x32a)]}}:_0x541dde)}:_0x2b7518;}function Qe(){const _0x185101=_0x5e7409;return Math[_0x185101(0x17e)]()[_0x185101(0x245)](0x24)[_0x185101(0x375)](0x2,0x8);}Te['displayName']=_0x5e7409(0x271);const et={'tag':'svg','attrs':{'xmlns':_0x5e7409(0x20b),'fill':_0x5e7409(0x280),'viewBox':_0x5e7409(0x156),'width':_0x5e7409(0x116),'height':_0x5e7409(0x116)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e7409(0x2b0)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'stroke':_0x5e7409(0x310),'d':_0x5e7409(0x34b),'strokeLinecap':'round','strokeLinejoin':_0x5e7409(0x170),'strokeWidth':1.2}}]},{'tag':_0x5e7409(0x1c9),'attrs':{},'children':[{'tag':_0x5e7409(0x1a4),'attrs':{'id':_0x5e7409(0x199)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'fill':_0x5e7409(0x35d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x5e7409(0x141)](function(_0x9880cc,_0x63dd54){const _0x3b30e4=_0x5e7409;return A[_0x3b30e4(0x1b4)](Te,Object['assign']({},_0x9880cc,{'id':'off-line-icon','ref':_0x63dd54,'icon':et}));});xe[_0x5e7409(0x106)]=_0x5e7409(0x151);const tt={'tag':_0x5e7409(0x322),'attrs':{'xmlns':_0x5e7409(0x20b),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x5e7409(0x116),'height':_0x5e7409(0x116)},'children':[{'tag':'g','attrs':{'clipPath':_0x5e7409(0x2ff)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'stroke':'currentColor','d':_0x5e7409(0x30d),'strokeLinecap':_0x5e7409(0x170),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5e7409(0x1c9),'attrs':{},'children':[{'tag':_0x5e7409(0x1a4),'attrs':{'id':_0x5e7409(0x33a)},'children':[{'tag':_0x5e7409(0x3a3),'attrs':{'fill':_0x5e7409(0x35d),'d':_0x5e7409(0x244),'transform':_0x5e7409(0x3bd)}}]}]}],'defIds':[_0x5e7409(0x33a)]},Be=A['forwardRef'](function(_0xc21f65,_0x222942){const _0x415ec7=_0x5e7409;return A['createElement'](Te,Object['assign']({},_0xc21f65,{'id':_0x415ec7(0x21c),'ref':_0x222942,'icon':tt}));});Be[_0x5e7409(0x106)]=_0x5e7409(0x1d4);function st(_0x124855){const _0x281d5f=_0x5e7409;switch(_0x124855){case u['CollaborationStatus'][_0x281d5f(0x1a7)]:return _0x281d5f(0x1d6);case u[_0x281d5f(0x3d1)][_0x281d5f(0x14b)]:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x281d5f(0x3d1)][_0x281d5f(0x257)]:return _0x281d5f(0x276);case u[_0x281d5f(0x3d1)][_0x281d5f(0x383)]:case u[_0x281d5f(0x3d1)][_0x281d5f(0x1e1)]:return _0x281d5f(0x2c6);case u[_0x281d5f(0x3d1)][_0x281d5f(0x1ea)]:case u['CollaborationStatus'][_0x281d5f(0x18d)]:return _0x281d5f(0x324);}}function it(_0x2a9b7e){const _0x133b2f=_0x5e7409,{status$:_0xfc5bcf}=_0x2a9b7e,_0x253f2d=O[_0x133b2f(0x1c8)](_0xfc5bcf,u[_0x133b2f(0x3d1)][_0x133b2f(0x257)]),_0x1692dd=O[_0x133b2f(0x39a)](a['LocaleService']),_0x29feeb=O[_0x133b2f(0x39a)](u['CollaborationSessionService']),_0x3afd9b=_0x253f2d!==u[_0x133b2f(0x3d1)]['OFFLINE'],_0x8381e5=_0x1692dd['t'](st(_0x253f2d)),_0x909607=_0x3afd9b?M[_0x133b2f(0x364)](Be,{}):M[_0x133b2f(0x364)](xe,{}),_0xe140de=A[_0x133b2f(0x284)](()=>{const _0x5c2e59=_0x133b2f;_0x3afd9b||_0x29feeb[_0x5c2e59(0x2aa)]();},[_0x3afd9b,_0x29feeb]);function _0x57ba4f(){const _0x228616=_0x133b2f;return M[_0x228616(0x275)](_0x228616(0x196),{'className':'univer-flex\x20univer-items-center','onClick':_0xe140de,'children':[M[_0x228616(0x364)]('div',{'className':T[_0x228616(0x2e0)](_0x228616(0x13c),{'univer-text-green-500':_0x3afd9b,'univer-text-red-500':!_0x3afd9b}),'children':_0x909607}),M[_0x228616(0x364)](_0x228616(0x196),{'className':_0x228616(0x226),'children':_0x8381e5})]});}return _0x3afd9b?_0x57ba4f():M[_0x133b2f(0x364)](T[_0x133b2f(0x342)],{'title':_0x1692dd['t'](_0x133b2f(0x11d)),'children':_0x57ba4f()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x57706b,_0x16d980,_0xa7e5e9,_0x2c8c17)=>{const _0x23d25e=_0x5e7409;for(var _0xa341a4=_0x2c8c17>0x1?void 0x0:_0x2c8c17?nt(_0x16d980,_0xa7e5e9):_0x16d980,_0x553090=_0x57706b[_0x23d25e(0x23d)]-0x1,_0x3820ae;_0x553090>=0x0;_0x553090--)(_0x3820ae=_0x57706b[_0x553090])&&(_0xa341a4=_0x3820ae(_0xa341a4)||_0xa341a4);return _0xa341a4;},K=(_0x20f814,_0x163b76)=>(_0x4adfe7,_0x2317a6)=>_0x163b76(_0x4adfe7,_0x2317a6,_0x20f814);exports[_0x5e7409(0x1ba)]=class extends a[_0x5e7409(0x3c4)]{constructor(_0x1962ca,_0x1ea9ab,_0x538d93,_0x32cc87){const _0x5199b7=_0x5e7409;super(),_(this,_0x5199b7(0x1fa),new I['BehaviorSubject'](u[_0x5199b7(0x3d1)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x1962ca,this['_injector']=_0x1ea9ab,this['_collaborationController']=_0x538d93,this['_uiPartsService']=_0x32cc87,this[_0x5199b7(0x34d)](),this[_0x5199b7(0x3cb)]());}[_0x5e7409(0x3cb)](){const _0xfc3e20=_0x5e7409;this['disposeWithMe'](this[_0xfc3e20(0x336)]['focused$']['pipe'](I['switchMap'](()=>{const _0x567071=_0xfc3e20,_0x3d3a3f=this[_0x567071(0x336)]['getFocusedUnit']();return _0x3d3a3f?this[_0x567071(0x3b0)]['getCollabEntity$'](_0x3d3a3f[_0x567071(0x3b5)]()):I['of'](null);}),I['switchMap'](_0x706d7c=>_0x706d7c?_0x706d7c[_0xfc3e20(0x237)]:I['of'](u[_0xfc3e20(0x3d1)][_0xfc3e20(0x257)])))[_0xfc3e20(0x24c)](_0xfac9d2=>{const _0x348ec4=_0xfc3e20;this[_0x348ec4(0x1fa)]['next'](_0xfac9d2);}));}[_0x5e7409(0x34d)](){const _0x5d061c=_0x5e7409;this['disposeWithMe'](this[_0x5d061c(0x3cc)]['registerComponent'](O[_0x5d061c(0x357)][_0x5d061c(0x1af)],()=>O['connectInjector'](ot({'status$':this[_0x5d061c(0x1fa)][_0x5d061c(0x181)]()}),this[_0x5d061c(0x232)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5e7409(0x119)]),K(0x1,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),K(0x2,a[_0x5e7409(0x10a)](u[_0x5e7409(0x1df)])),K(0x3,O['IUIPartsService'])],exports[_0x5e7409(0x1ba)]);function ot(_0x504b7d){const {status$:_0x423aaa}=_0x504b7d;return function(){const _0x56e49b=_0x4e0e;return M[_0x56e49b(0x364)](it,{'status$':_0x423aaa});};}const Oe=a['createIdentifier'](_0x5e7409(0x1cd));var at=Object[_0x5e7409(0x3ca)],ct=(_0x5e8dba,_0x16934a,_0x460466,_0x5ddcb7)=>{const _0x47c758=_0x5e7409;for(var _0x59d7d=_0x5ddcb7>0x1?void 0x0:_0x5ddcb7?at(_0x16934a,_0x460466):_0x16934a,_0x29c8ea=_0x5e8dba[_0x47c758(0x23d)]-0x1,_0x247594;_0x29c8ea>=0x0;_0x29c8ea--)(_0x247594=_0x5e8dba[_0x29c8ea])&&(_0x59d7d=_0x247594(_0x59d7d)||_0x59d7d);return _0x59d7d;},Y=(_0x1aab94,_0x37445b)=>(_0xded860,_0x1e5d5e)=>_0x37445b(_0xded860,_0x1e5d5e,_0x1aab94);exports[_0x5e7409(0x2bc)]=class extends a[_0x5e7409(0x2fe)]{constructor(_0x4d9955,_0xb54c20,_0x123602,_0x368665,_0x22fbe5){const _0x4ff91d=_0x5e7409;super(),this['_urlService']=_0x4d9955,this['_logService']=_0xb54c20,this[_0x4ff91d(0x2e9)]=_0x123602,this[_0x4ff91d(0x152)]=_0x368665,_0x22fbe5?_0x22fbe5==null||_0x22fbe5['whenReady']()[_0x4ff91d(0x147)](()=>this[_0x4ff91d(0x303)]()):(this['_logService'][_0x4ff91d(0x14e)](_0x4ff91d(0x1db),_0x4ff91d(0x369)),this['_init']());}async[_0x5e7409(0x303)](){const _0x470243=_0x5e7409,_0x37a86d=this[_0x470243(0x1a3)]['getParam']('unit'),_0x151796=this[_0x470243(0x1a3)][_0x470243(0x145)]('type'),_0x26caa5=this[_0x470243(0x1a3)][_0x470243(0x145)](_0x470243(0x19e));if(!_0x37a86d||!_0x151796){this[_0x470243(0x28b)][_0x470243(0x14e)](_0x470243(0x1db),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x11c8c3=await this['_dataLoaderService']['loadUnit'](_0x37a86d,Number(_0x151796),_0x26caa5);_0x11c8c3&&_0x11c8c3 instanceof a[_0x470243(0x186)]&&this[_0x470243(0x15e)](_0x11c8c3);}async['_setupSubUnitSync'](_0xba3910){const _0x35fd35=_0x5e7409;await this[_0x35fd35(0x16f)](_0xba3910),_0xba3910[_0x35fd35(0x309)][_0x35fd35(0x168)](I['takeUntil'](this[_0x35fd35(0x33d)]))[_0x35fd35(0x24c)](_0x4da041=>{const _0x2d9161=_0x35fd35;_0x4da041&&this[_0x2d9161(0x144)](_0x4da041);}),this[_0x35fd35(0x1a3)][_0x35fd35(0x1bb)][_0x35fd35(0x168)](I[_0x35fd35(0x2a0)](this['dispose$']))['subscribe'](()=>this[_0x35fd35(0x16f)](_0xba3910));}[_0x5e7409(0x144)](_0x38f46c,_0x352e16=!0x1){const _0x433122=_0x5e7409,_0x57f6ed=this[_0x433122(0x1a3)][_0x433122(0x145)](_0x433122(0x19e));_0x38f46c[_0x433122(0x351)]()!==_0x57f6ed&&this[_0x433122(0x1a3)][_0x433122(0x14f)](_0x433122(0x19e),_0x38f46c[_0x433122(0x351)](),_0x352e16);}async[_0x5e7409(0x16f)](_0xa49af4){const _0x3a0fc7=_0x5e7409;var _0x2e6145;const _0x28bebc=this[_0x3a0fc7(0x1a3)][_0x3a0fc7(0x145)](_0x3a0fc7(0x19e));if(!_0x28bebc||!_0xa49af4[_0x3a0fc7(0x2a4)](_0x28bebc)){const _0x183c41=_0xa49af4[_0x3a0fc7(0x135)]()[0x0],_0x5cdcef=_0xa49af4['getSheetBySheetId'](_0x183c41);if(!_0x5cdcef)return;this[_0x3a0fc7(0x144)](_0x5cdcef,!0x0),await this[_0x3a0fc7(0x2e9)][_0x3a0fc7(0x3c7)](v[_0x3a0fc7(0x195)]['id'],{'unitId':_0xa49af4[_0x3a0fc7(0x3b5)](),'subUnitId':_0x183c41});return;}((_0x2e6145=_0xa49af4[_0x3a0fc7(0x183)]())==null?void 0x0:_0x2e6145['getSheetId']())!==_0x28bebc&&await this['_commandService'][_0x3a0fc7(0x3c7)](v[_0x3a0fc7(0x195)]['id'],{'unitId':_0xa49af4[_0x3a0fc7(0x3b5)](),'subUnitId':_0x28bebc});}},exports[_0x5e7409(0x2bc)]=ct([Y(0x0,Oe),Y(0x1,a[_0x5e7409(0x314)]),Y(0x2,a[_0x5e7409(0x366)]),Y(0x3,a['Inject'](u[_0x5e7409(0x28c)])),Y(0x4,a[_0x5e7409(0x110)](qe[_0x5e7409(0x285)]))],exports[_0x5e7409(0x2bc)]);var lt=Object[_0x5e7409(0x3ca)],_t=(_0x3afa80,_0x28d637,_0x440f30,_0x2a5d09)=>{const _0x4fa245=_0x5e7409;for(var _0x37332a=_0x2a5d09>0x1?void 0x0:_0x2a5d09?lt(_0x28d637,_0x440f30):_0x28d637,_0x128831=_0x3afa80[_0x4fa245(0x23d)]-0x1,_0x4d0db0;_0x128831>=0x0;_0x128831--)(_0x4d0db0=_0x3afa80[_0x128831])&&(_0x37332a=_0x4d0db0(_0x37332a)||_0x37332a);return _0x37332a;},De=(_0x9132ce,_0x349de9)=>(_0x112965,_0x4c3952)=>_0x349de9(_0x112965,_0x4c3952,_0x9132ce);let me=class extends a[_0x5e7409(0x2fe)]{constructor(_0x4a995b,_0x329b9a){const _0x595daa=_0x5e7409;super(),this[_0x595daa(0x12a)]=_0x4a995b,this[_0x595daa(0x164)]=_0x329b9a,this[_0x595daa(0x303)]();}[_0x5e7409(0x303)](){const _0x5011dc=_0x5e7409,_0x5ccf7b=this;this['disposeWithMe'](this[_0x5011dc(0x12a)]['addClipboardHook']({'onBeforePasteImage':async _0x515ba7=>{const _0xcfed2d=_0x5011dc,_0x32b32e=await _0x5ccf7b[_0xcfed2d(0x164)][_0xcfed2d(0x1f6)](_0x515ba7);return _0x32b32e?{'source':_0x32b32e[_0xcfed2d(0x12f)],'imageSourceType':_0x32b32e[_0xcfed2d(0x2c9)]}:null;}}));}};me=_t([De(0x0,p[_0x5e7409(0x11e)]),De(0x1,ze[_0x5e7409(0x32e)])],me);const Ne=['purple.300',_0x5e7409(0x344),_0x5e7409(0x27e),_0x5e7409(0x24d),'blue.400',_0x5e7409(0x39b)];class Re extends a[_0x5e7409(0x3c4)]{constructor(){const _0x27bf3c=_0x5e7409;super(...arguments),_(this,_0x27bf3c(0x234),new Map()),_(this,_0x27bf3c(0x352),0x0);}[_0x5e7409(0x1da)](_0x3649c6){const _0x17f49c=_0x5e7409;if(this[_0x17f49c(0x234)]['has'](_0x3649c6))return this[_0x17f49c(0x234)][_0x17f49c(0x22b)](_0x3649c6);const _0x347cab=Ne[this[_0x17f49c(0x352)]];return this['_colorIndex']=(this[_0x17f49c(0x352)]+0x1)%Ne[_0x17f49c(0x23d)],this[_0x17f49c(0x234)][_0x17f49c(0x15c)](_0x3649c6,_0x347cab),_0x347cab;}}function _0x5a7d(){const _0x1944f7=['reconnect','clearInterval','has','switchMap','attrs','_themeService','url(#off-line-icon_clip0_910_343)','width','_scheduleSaving','FromArray','_maxFormulaLimit','_docSyncEditingCollabCursorService','throttleTime','_transformPreviousActiveRange','subscribeEvent','collaboration.single-unit.warning','height','origin','CollaborationDataLoaderController','stringify','selection','ALREADY_EXISTS','RegularPolygon','FormulaExecuteStageType','7lpklmw','releaseFormulaLimitUrl','unitId','runOnServer','collabStatus.syncing','11853853Koyvvg','registerRenderModule','imageSourceType','BrowserCollaborationSocketService','fill','START_CALCULATION','OTHER_CLIENT_EDITING','resize','_registerDependencies','WECHAT_HAS_BEEN_BOUND','_showGuardMessage','_initDependencies','transformByState','shareReplay','_colorAssignService','handleMoveRange','getformulaLimitStatusUrl','getUnit','mask','AUTHORIZE_CODE_ILLEGAL','fillRule','_initEvent','cursorInfo','makeDirty','Loading','clsx','RevisionService','push','_beforeCloseService','_send','functionsExecutedState','LICENSE_IMPORT_SIZE_EXCEEDED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getConfig','_commandService','_registerRenderDependencies','JOIN_ROOM_FAILED','IURLService','saveTaskMap','RemoveRowCommandId','UnitStatus','size','DEFAULT_WS_SESSION_TICKET_URL','ONLINE','_sheetSkeletonManagerService','session.connection-failed','REDEMPTION_INVALID_CODE','createSocket','startsWith','forEach','_httpService','_cursors','ILocalStorageService','formula.calculation.waiting','HTTPService','RxDisposable','url(#on-line-icon_clip0_910_349)','SessionStatus','getColorFromTheme','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_init','SOCKET_FAILED','now','Shape','color','debounce','activeSheet$','popstate','621560ckzeZq','roomMembers$','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','INTERNAL_ERROR','actions','currentColor','ENTITLE_CHAT_LIMIT_EXCEED','_handleLeaveEvent','getMemberID','ILogService','_collaborationSessionService','_config','InsertRangeMoveRightCommandId','DocSelectionManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','#FFF','merge','beginPath','getColor','getSheetObject','_name','textRanges','_checkCalculationAvailable','svg','clearTimeout','collabStatus.synced','ACTIVE_UNIT_EVENT_CHANNEL','children','RECT','ERROR_AGAIN','skeleton','idSuffix','_lastPointer','Tools','next','IImageIoService','rgba(255,\x20255,\x20255,\x200.01)','_unitOnClients','findNodePositionByCharIndex','addObject','lineno','handleDeleteRangeMoveUp','MoveRangeCommandId','_univerInstanceService','_toggleOnline','_anchorDot','_docTransformStateCacheService','on-line-icon_clip0_910_349','_messageService','NOT_FOUND','dispose$','exhaustSavingTask','_localeService','filename','APPLY_REVISION_CONFILICT','Tooltip','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','jiqing.500','onMouseMove','handleIRemoveRow','transformMutation','addHandlerCallback','InsertRowCommandId','limitInfo','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','SetSelectionsOperation','_initStatusComponent','getMember','UNIVER_SHEET','executionId','getSheetId','_colorIndex','show','tag','post','getRangePointData','BuiltInUIPart','code','LocaleService','_applyCommand','delete','colno','white','ThemeService','startRow','_onCursorUpdate','disposeWithMe','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getDocRanges','jsx','MessageType','ICommandService','all','transformIMECache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','WebURLService','APPLY_DUPLICATED','4173324ZMiQZL','init','[Unhandled\x20Rejection]:\x20','YUUMI_ALL_TABLES_IS_INVALID','_revisionService','application/json','redoState','UNRECOGNIZED','_range','substring','_uploadLog','UPDATE_CURSOR','TEXT','_transformUndoRedoStack','Warning','_scheduleClearOtherTimer','LOGIN_FAILED','setAlpha','Plugin','save','_collabCursorState$','_setFormulaLimitStatus','_checkAndWaitForCalculationPermission','AWAITING','handleInsertRangeMoveRight','onStarting','touchDependencies','black','TOO_MANY_REQUESTS','filter','Success','_startCalculationLimit','APPLY_NON_SEQUENTIAL_REVISION','_setupBeforeClosingHandler','_syncEditingCollabCursorService','INVALID_INVITE_CODE','LOGIN_TOKEN_PROCESSING_FAILED','override','getCoordByCell','Error','MOBILE_HAS_BEEN_BOUND','getMergeData','getLocalCacheKey','USER_IS_ANONYMOUS','127405LKycEs','search','useDependency','yellow.400','_cachedData','PAYMENT_CHANNEL_NOT_SUPPORT','Rect','_notificationService','_onRefRangeChange','dispose','UNDEFINED','path','CURRENT_STATUS_CANNOT_OPERATE','selections','LOCAL_CACHE_INTERVAL_KEY','onCommandExecuted','ticket','unit','getCellPositionByOffset','isTransformMutationsWithChangesetSuccess','syncEditingCollabCursor','type','ITransformService','_labelPosition','_collaborationController','dirtyRanges','loadOfflineData','Subject','getFocusedUnit','getUnitId','_roomMembers$','_initEntityListener','event$','combineLatest','COLORS','_docSkeleton','NodePositionConvertToRectRange','translate(.97)','colorChannel1','from','/universer-api/license/formula/limit/status','parse','_entities','add','Disposable','_docSkeletonManagerService','symbol','executeCommand','handleInsertRangeMoveDown','setActiveRange','getOwnPropertyDescriptor','_initStatusListener','_uiPartsService','defineProperty','122ZoFACQ','_releaseCalculationLimit','mapTo','CollaborationStatus','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_scene','transformRemoteChangeset','_getScale','setShapeProps','isArray','displayName','subUnitId','onRendered','unload','Inject','APPLY_PERMISSION_DENIED','runRefRangeMutations','282WvONar','replaceState','EffectRefRangId','Optional','_eventUnsubscribe','YUUMI_URL_COL_OUT_OF_RANGE','name','formula.calculation.started','body','1em','Failed','ENTITLE_CAN_NOT_BUY_LOWER_OTP','IUniverInstanceService','debounceTime','closePath','_clearOtherTimers','collab-client.tooltip.reconnect','IDocClipboardService','_renderManagerService','REDEMPTION_CODE_NOT_STARTED','_pollingInterval','trim','/universer-api/license/formula/limit/done','join','YUUMI_UNABLE_LOAD_URL','isTransformMutationFailure','DocStateChangeManagerService','_backgroundColor','triggerDblclick','_docClipboardService','contains','_toggleOffline','enableLocalCache','_transformHistoryAndStateStack','source','INVITE_CODE_ALREADY_BOUND','location','stageInfo','_hover','_getSaveTimeout','getUnhiddenWorksheets','USER_NOT_FOUND','ILocalCacheService','send','registerRefRange','_initWindowErrorListener','use','univer-mr-2\x20univer-flex\x20univer-text-xl','SOCKET_FAILED_RETRY','SNAPSHOT_HAS_BEEN_REMOVED','univerjs-icon\x20univerjs-icon-','Rectangle','forwardRef','unsubscribe','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_updateURLWithCurrentState','getParam','_online','then','MemberService','_ensureSubject','handleInsertCol','CONFLICT','setUndoRedoMutationParamsCache','InsertColCommandId','debug','setParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','OffLineIcon','_dataLoaderService','_cursorInfo$','YUUMI_AI_RUN_FAILED','_clearPolling','0\x200\x2016\x2016','currentSkeleton$','measureText','searchParams','storage','getCurrent','set','_collabSessionService','_setupSubUnitSync','sessionTicket','_draw','_drawTextRange','_getFormulaLimitStatus','_handleHover','_imageIoService','MOBILE_VERIFY_CODE_MISMATCH','bottom','DocCollaborationEntity','pipe','url(#$1','PERMISSION_DENIED','SetTextSelectionsOperation','_memberID','APPLY_REJECT','TEXT_RANGE_LAYER_INDEX','_updateSubUnitFromURLParams','round','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','requireSession','map','_getSheetObject','SUCCESS','COMPLETION_FINISHED','SheetCollabCursorShape','parseInt','YUUMI_NO_CUBOID_FOR_QUESTION','RichTextEditingMutation','_currentUsage','collaboration.closeRoom','generateRandomId','random','/universer-api/frontend/logs','result','asObservable','session.collaboration-timeout','getActiveSheet','...','6718UkQJkA','Workbook','_handleHeartbeatEvent','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','stage','Injector','_refreshCollabCursors','IMessageService','PENDING','DocIMEInputManagerService','invokeId','_docStateChangeManagerService','BehaviorSubject','catch','ranges','serializeRangeWithSheet','SetWorksheetActivateCommand','div','UniverCollaborationClientPlugin','_transformService','off-line-icon_clip0_910_343','onTransformChange$','_document','_drawAnchor','arc','subunit','_initUnhandledRejectionListener','_instanceService','with','find','_urlService','clipPath','CollaborationSocketService','collaboration-client-ui.config','OFFLINE','_startDocCollabCursor','removeEventListener','key','_updateCollabCursors','_lastResponseTimestamp','backgroundColor','_initCommandExecutedListener','HEADER_MENU','YUUMI_CONNECTOR_URL_NOT_FOUND','toStringTag','LICENSE_EXPORT_SIZE_EXCEEDED','params','createElement','deepClone','_cursor','_updateLocalCursor','setTimeout','bind','DesktopCollaborationStatusDisplayController','urlChange$','getRelativeToViewportCoord','pushState','labelPosition','CollaborationEvent','EMAIL_HAS_BEEN_BOUND','endColumn','YUUMI_SUBSCRIPTION_NOT_FOUND','cursorInfo$','CHANGESET_REVISION_CONFILICT','transformStateCache','removeParam','REDEMPTION_CODE_INACTIVE','useObservable','defs','runId','shift','_getSessionTicket','uni.network.url-service','replace','_initUserListener','ISocketService','DependentOn','IBeforeCloseService','roomMembers','OnLineIcon','getCollabCursors$','collabStatus.offline','unhandledrejection','current','_taskIds','assignAColorForMemberID','[CollaborationDataLoaderController]','data','DATA_SOURCE_TOO_LARGE','permission.title','CollaborationController','_hasFormulaInDirtyRanges','AWAITING_WITH_PENDING','RefRangeService','isActive','RemoteUniscriptService','_render','currentTheme$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','complete','_configService','SYNCED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_TABLE_NOT_FOUND_IN_UNIT','RemoveColCommandId','sessionStatus$','collab-text-range-','IRenderManagerService','registerDependencies','OTHER_CLIENTS_EDITING','mutations','_getAnchorBounding','evenodd','saveImage','_startSheetCollabCursor','_memberService','ENTITLE_INSUFFICIENT_QUOTA','_status$','_shapes','UniverInstanceType','_hovered','INVALID_ARGUMENT','_selfUnitIDs','onLocalMutation','getValue','_textBubble','LICENSE_MAX_UNITS_EXCEEDED','CollaborationUIEventId','onPointerEnter$','collab-text-anchor-','enableFrontendLog','?taskId=','SetFormulaCalculationNotificationMutation','SNAPSHOT_INVALID_SNAPSHOT','http://www.w3.org/2000/svg','_doCreateSocket','_handleJoinEvent','_saveTaskMap','ENTITLE_DUP_SUBSCRIPTION','getAncestorScale','10yFbpwG','m2Prime','DOC_RANGE_TYPE','MUTATION','engine','entries','_color','history','_initResize','getUndoRedoMutationParamsCache','href','on-line-icon','USER_NOT_INVITED_CODE','YUUMI_ASYNCIO_CANCELLED','toRgbString','ENTITLE_REPORT_LIMIT_EXCEED','doc.mutation.rich-text-editing','getStateCache','getActiveRange','drawWith','saveOfflineData','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','error','CONNECTOR_DATA_TOO_LARGE','LOCAL_CACHE_INTERVAL','_onCursorDelete','get','_localCacheService','onPointerLeave$','collab-rect-range-','_collabCursorController','session.will-retry','createInstance','_injector','_saveCache','_assignedColors','_docTransformSelectionsService','useRef','status$','Module','_drawRectRange','IConfigService','getSkeleton','UNAUTHENTICATED','length','EMAIL_VERIFY_CODE_MISMATCH','moveTo','_session','_removeCollabCursors','ENTITLE_NEED_BILLING_ADDRESS','transformSelections','M0\x200H16V16H0z','toString','addEventListener','startColumn','_unitStatus','text','YUUMI_RATE_OVER_LIMIT','_context','subscribe','red.300','_docTransformIMECacheService','_entityInit$','xlink:href','isEditing','unitID','_handleEvent','sheetId','unshift','InsertRangeMoveDownCommandId','NOT_COLLAB','getCellMatrix','memberID','fillText','newValue','DeleteRangeMoveUpCommandId','collabCursorState$','_refRangeService','_scheduleHeartbeat','_getMergeRange','getRenderById','collaboration-client.offline-data-not-saved','UniverCollaborationClientUIPlugin','stack','isFormulaId','DocSkeletonManagerService','min','_anchor','lineTo','_removeClearOtherTimer','setInterval','SHEET_VIEWPORT_KEY','endRow','formula.calculation.unable','values','hovered','UniverIcon','ENSURE_SNAPSHOT_EXECUTION','UNIVER_DOC','editingUnit','jsxs','collabStatus.notCollab','_collaborationUIEventService','DeleteRangeMoveLeftCommandId','getTypeOfUnitDisposed$','DisposableCollection','2817474RhyccJ','_heartbeatTimer','_hideTimer','green.600','undoState','none','some','maxFormulaLimit','Vector2','useCallback','IRemoteInstanceService','Unknown\x20user','string','eventID','_disabled','includes','_logService','DataLoaderService','fillStyle','_cursorShapes','WebBrowserSingleActiveUnitService','_createSocketURL','INVITE_CODE_REQUIRED','getCurrentSelections','SheetsSelectionsService','_localStorageService','setConfig','socket$','\x20at\x20','message','column','NO_OTHER_CLIENTS_EDITING','m1Prime','toDisposable','_id','fromEvent','LICENSE_DISTRO_REJECTED','takeUntil','[LogService\x20Error]:\x20','[Window\x20Error]:\x20','10897929QSgSJJ','getSheetBySheetId','PY_RUNTIME_SCRIPT_ERROR','REDEMPTION_CODE_FULLY_REDEEMED','setItem','restore','REDEMPTION_USER_NOT_ELIGIBLE'];_0x5a7d=function(){return _0x1944f7;};return _0x5a7d();}function Fe(_0x407c32){const _0x6699cd=_0x5e7409;let _0x24fd5a='';for(const _0x49b7dc of _0x407c32){const {startOffset:_0x4dc166,endOffset:_0x1e3d06,isActive:_0x69b6b,rangeType:_0x23e137,segmentId:_0xf8b717,segmentPage:_0x5b01e2}=_0x49b7dc;_0x24fd5a[_0x6699cd(0x23d)]&&(_0x24fd5a+=','),_0x24fd5a+=_0x4dc166+':'+_0x1e3d06+':'+(_0x69b6b?'1':'0')+':'+_0x23e137+':'+_0xf8b717+':'+_0x5b01e2;}return _0x24fd5a;}function ht(_0x58a904){const _0x27c8d1=_0x5e7409,_0x3d3897=_0x58a904['split'](','),_0x245aba=[];for(const _0x1164cd of _0x3d3897){const [_0x1cc780,_0x280e71,_0x4e926d,_0x256967,_0x5c12e9,_0x351d6e]=_0x1164cd['split'](':');_0x245aba['push']({'startOffset':Number(_0x1cc780),'endOffset':Number(_0x280e71),'collapsed':_0x1cc780===_0x280e71,'isActive':_0x4e926d==='1','rangeType':_0x256967===a[_0x27c8d1(0x213)][_0x27c8d1(0x378)]?a[_0x27c8d1(0x213)][_0x27c8d1(0x378)]:a[_0x27c8d1(0x213)][_0x27c8d1(0x327)],'segmentId':typeof _0x5c12e9==_0x27c8d1(0x287)?String(_0x5c12e9):'','segmentPage':Number(_0x351d6e!=null?_0x351d6e:-0x1)});}return _0x245aba[_0x27c8d1(0x281)](_0x2ba06c=>_0x2ba06c['isActive'])||(_0x245aba[0x0][_0x27c8d1(0x1e3)]=!0x0),_0x245aba;}class be extends a[_0x5e7409(0x2fe)]{constructor(){const _0x273293=_0x5e7409;super(...arguments),_(this,_0x273293(0x380),new I[(_0x273293(0x191))](null)),_(this,_0x273293(0x25d),this[_0x273293(0x380)][_0x273293(0x181)]());}[_0x5e7409(0x3ac)](_0x4f0e39){const _0x55d5d0=_0x5e7409,{unitID:_0x181c66,memberID:_0x5cd6c8,textRanges:_0x4dd7d4}=_0x4f0e39,_0x1ffca3=Fe(_0x4dd7d4);if(_0x1ffca3==='')return;const _0x59361b={'unitID':_0x181c66,'memberID':_0x5cd6c8,'selection':_0x1ffca3};this[_0x55d5d0(0x380)][_0x55d5d0(0x32d)](_0x59361b);}}var ut=Object[_0x5e7409(0x3ca)],It=(_0x30a00b,_0x11824b,_0x2596ff,_0x150424)=>{const _0x1882a1=_0x5e7409;for(var _0x2cbef2=_0x150424>0x1?void 0x0:_0x150424?ut(_0x11824b,_0x2596ff):_0x11824b,_0x36cc54=_0x30a00b[_0x1882a1(0x23d)]-0x1,_0x5087f1;_0x36cc54>=0x0;_0x36cc54--)(_0x5087f1=_0x30a00b[_0x36cc54])&&(_0x2cbef2=_0x5087f1(_0x2cbef2)||_0x2cbef2);return _0x2cbef2;},U=(_0x705a38,_0x565fe1)=>(_0x5174c6,_0x50ad45)=>_0x565fe1(_0x5174c6,_0x50ad45,_0x705a38);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x2eba19,_0x39f767,_0xa3032c,_0x58e8c3,_0x2c57d7,_0x26b8e5,_0x3f9ead,_0x8949d4,_0x5e42be){const _0x2b9fa7=_0x5e7409;super(),_(this,_0x2b9fa7(0x146),!0x1),_(this,'_init',!0x1),_(this,_0x2b9fa7(0x153),new I[(_0x2b9fa7(0x191))](new Map())),_(this,'cursorInfo$',this[_0x2b9fa7(0x153)]['asObservable']()),_(this,_0x2b9fa7(0x3b6),new I[(_0x2b9fa7(0x191))]([])),_(this,_0x2b9fa7(0x30c),this['_roomMembers$'][_0x2b9fa7(0x168)](I[_0x2b9fa7(0x11a)](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x3f693a=>{const _0x10005c=_0x2b9fa7,_0x385666={'eventID':g[_0x10005c(0x1bf)][_0x10005c(0x377)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x3f693a)}};this['_session'][_0x10005c(0x138)](_0x385666,this['unitID']);},St)),(this[_0x2b9fa7(0x252)]=_0x2eba19,this['_session']=_0x39f767,this[_0x2b9fa7(0x232)]=_0xa3032c,this[_0x2b9fa7(0x2d5)]=_0x58e8c3,this['_memberService']=_0x2c57d7,this[_0x2b9fa7(0x38e)]=_0x26b8e5,this[_0x2b9fa7(0x198)]=_0x3f9ead,this[_0x2b9fa7(0x336)]=_0x8949d4,this['_commandService']=_0x5e42be);}get['cursorInfo'](){const _0x4d61a8=_0x5e7409;return this[_0x4d61a8(0x153)]['getValue']();}get['roomMembers'](){const _0x1515d0=_0x5e7409;return this[_0x1515d0(0x3b6)][_0x1515d0(0x201)]();}[_0x5e7409(0x3a1)](){const _0x332d3a=_0x5e7409;super[_0x332d3a(0x3a1)](),this[_0x332d3a(0x153)][_0x332d3a(0x32d)](new Map()),this[_0x332d3a(0x153)]['complete'](),this[_0x332d3a(0x3b6)][_0x332d3a(0x32d)]([]),this[_0x332d3a(0x3b6)][_0x332d3a(0x1e8)]();}[_0x5e7409(0x36d)](){const _0x7ec1df=_0x5e7409;this['_init']||(this['_init']=!0x0,this[_0x7ec1df(0x240)][_0x7ec1df(0x1ee)][_0x7ec1df(0x168)](I[_0x7ec1df(0x2a0)](this[_0x7ec1df(0x33d)]))[_0x7ec1df(0x24c)](_0x113564=>{const _0x3c91c4=_0x7ec1df;_0x113564===u[_0x3c91c4(0x300)][_0x3c91c4(0x2f2)]?this[_0x3c91c4(0x337)]():this[_0x3c91c4(0x12c)]();}),this[_0x7ec1df(0x240)][_0x7ec1df(0x3b8)][_0x7ec1df(0x168)](I['takeUntil'](this[_0x7ec1df(0x33d)]))[_0x7ec1df(0x24c)](_0x48574e=>{const _0x58a7d1=_0x7ec1df,_0x772eff=_0x48574e[_0x58a7d1(0x288)];_0x772eff===g[_0x58a7d1(0x1bf)][_0x58a7d1(0x377)]&&this['_onCursorUpdate'](_0x48574e),_0x772eff===g[_0x58a7d1(0x1bf)]['USERS_LEAVE']&&this[_0x58a7d1(0x22a)](_0x48574e);}),this['disposeWithMe'](this[_0x7ec1df(0x2e9)][_0x7ec1df(0x3a7)](_0x457e9e=>{const _0x696eae=_0x7ec1df,_0x5f1f62=_0x457e9e['params'];_0x5f1f62!=null&&this[_0x696eae(0x146)]&&_0x457e9e['id']===V[_0x696eae(0x16b)]['id']&&_0x5f1f62['unitId']===this[_0x696eae(0x252)]&&_0x5f1f62[_0x696eae(0x251)]===!0x1&&_0x5f1f62[_0x696eae(0x193)][_0x696eae(0x23d)]>0x0&&this[_0x696eae(0x1b7)](_0x5f1f62[_0x696eae(0x193)]);})),this[_0x7ec1df(0x38e)]['collabCursorState$'][_0x7ec1df(0x168)](I[_0x7ec1df(0x2a0)](this[_0x7ec1df(0x33d)]))[_0x7ec1df(0x24c)](_0x512947=>{const _0x1ffbd2=_0x7ec1df;if((_0x512947==null?void 0x0:_0x512947[_0x1ffbd2(0x252)])!==this[_0x1ffbd2(0x252)])return;const _0x507a23={'eventID':g[_0x1ffbd2(0x1bf)]['UPDATE_CURSOR'],'data':_0x512947};this[_0x1ffbd2(0x360)](_0x507a23);}),this['disposeWithMe'](this[_0x7ec1df(0x2e9)][_0x7ec1df(0x3a7)](_0x9283af=>{const _0x80f42c=_0x7ec1df;if(_0x9283af['params']==null)return;const _0x28b1db=_0x9283af[_0x80f42c(0x1b3)];if(_0x9283af['id']!==V[_0x80f42c(0x17a)]['id']||_0x28b1db['unitId']!==this[_0x80f42c(0x252)])return;const _0x3ac329={'id':_0x80f42c(0x221),'params':_0x28b1db},_0x5835bd=this['cursorInfo'];for(const [_0x34b4dd,_0x4f924e]of _0x5835bd){const _0xc934e7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4f924e[_0x80f42c(0x193)]}},_0x5b7642=this['_transformService'][_0x80f42c(0x347)](_0x3ac329,_0xc934e7,!0x1);if(g[_0x80f42c(0x126)](_0x5b7642))throw _0x5b7642[_0x80f42c(0x227)];_0x5835bd[_0x80f42c(0x15c)](_0x34b4dd,{..._0x4f924e,'ranges':_0x5b7642[_0x80f42c(0x212)][_0x80f42c(0x1b3)][_0x80f42c(0x320)]});}queueMicrotask(()=>{const _0x11f15d=_0x80f42c;this[_0x11f15d(0x153)][_0x11f15d(0x32d)](_0x5835bd);});})));}[_0x5e7409(0x360)](_0x52320b){const _0xfc4cae=_0x5e7409;var _0x18fde0,_0x40ef58;const {memberID:_0x40be95,selection:_0x14552a}=_0x52320b[_0xfc4cae(0x1dc)],_0x7e5abc=ht(_0x14552a),_0x6e7161=(_0x40ef58=(_0x18fde0=this[_0xfc4cae(0x1f8)]['getMember'](this[_0xfc4cae(0x252)],_0x40be95))==null?void 0x0:_0x18fde0['name'])!=null?_0x40ef58:'Unknown\x20user',_0x4c588c={'color':this[_0xfc4cae(0x2d5)][_0xfc4cae(0x1da)](_0x40be95),'name':_0x6e7161,'ranges':_0x7e5abc},_0x460793=this['cursorInfo'];_0x460793[_0xfc4cae(0x15c)](_0x40be95,_0x4c588c),this[_0xfc4cae(0x153)]['next'](_0x460793);}['_onCursorDelete'](_0x128539){const _0x47ef3e=_0x5e7409,{memberID:_0x298fdc}=_0x128539['data'],_0x594928=this[_0x47ef3e(0x2dd)];_0x594928[_0x47ef3e(0x35b)](_0x298fdc),this[_0x47ef3e(0x153)][_0x47ef3e(0x32d)](_0x594928);}[_0x5e7409(0x337)](){const _0xa284e3=_0x5e7409;var _0x586450;if(this['_online']=!0x0,((_0x586450=this[_0xa284e3(0x336)][_0xa284e3(0x3b4)]())==null?void 0x0:_0x586450[_0xa284e3(0x3b5)]())!==this['unitID'])return;const _0x477185=this[_0xa284e3(0x232)][_0xa284e3(0x22b)](V[_0xa284e3(0x318)])['getDocRanges']();Array[_0xa284e3(0x105)](_0x477185)&&_0x477185[_0xa284e3(0x23d)]>0x0&&this[_0xa284e3(0x1b7)](_0x477185);}[_0x5e7409(0x12c)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x5e7409(0x10a)](a['Injector'])),U(0x3,a[_0x5e7409(0x10a)](Re)),U(0x4,a[_0x5e7409(0x10a)](u[_0x5e7409(0x148)])),U(0x5,a[_0x5e7409(0x10a)](be)),U(0x6,g[_0x5e7409(0x3ae)]),U(0x7,a[_0x5e7409(0x119)]),U(0x8,a[_0x5e7409(0x366)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x5a6ea3,_0x1d7f62,_0x201651,_0x6f572f)=>{const _0x54c6e4=_0x5e7409;for(var _0x544fc4=_0x6f572f>0x1?void 0x0:_0x6f572f?ft(_0x1d7f62,_0x201651):_0x1d7f62,_0x25ab78=_0x5a6ea3[_0x54c6e4(0x23d)]-0x1,_0xf9fc01;_0x25ab78>=0x0;_0x25ab78--)(_0xf9fc01=_0x5a6ea3[_0x25ab78])&&(_0x544fc4=_0xf9fc01(_0x544fc4)||_0x544fc4);return _0x544fc4;},w=(_0x9542d5,_0xaf9eda)=>(_0x594b00,_0x5ee070)=>_0xaf9eda(_0x594b00,_0x5ee070,_0x9542d5);const vt=0x12c,gt=0x64,Et=()=>{let _0x8d8f94=[],_0x2f8bb8=!0x1;return _0x4537f6=>{const _0x11b617=_0x4e0e;_0x8d8f94[_0x11b617(0x2e2)](_0x4537f6),_0x2f8bb8||(_0x2f8bb8=!0x0,setTimeout(()=>{const _0x59577a=_0x11b617;_0x8d8f94[_0x59577a(0x2f8)](_0x3f1fe1=>_0x3f1fe1()),_0x8d8f94=[],_0x2f8bb8=!0x1;}));};};let ge=class extends a[_0x5e7409(0x2fe)]{constructor(_0x25405e,_0x13b508,_0x592568,_0x35ef57,_0x261838,_0x4d5665,_0x5b3f0a,_0x45c75f){const _0x4626b8=_0x5e7409;super(),_(this,_0x4626b8(0x146),!0x1),_(this,_0x4626b8(0x303),!0x1),_(this,_0x4626b8(0x153),new I['BehaviorSubject'](new Map())),_(this,_0x4626b8(0x1c3),this[_0x4626b8(0x153)][_0x4626b8(0x181)]()),_(this,'_roomMembers$',new I[(_0x4626b8(0x191))]([])),_(this,'roomMembers$',this[_0x4626b8(0x3b6)][_0x4626b8(0x168)](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a[_0x4626b8(0x308)]((_0x656ef5,_0x5bdc4c)=>{const _0x4456e3=_0x4626b8,_0x858062={'eventID':g['CollaborationEvent'][_0x4456e3(0x377)],'data':{'unitID':this[_0x4456e3(0x252)],'memberID':this[_0x4456e3(0x240)][_0x4456e3(0x313)](),'selection':B[_0x4456e3(0x194)](_0x656ef5,_0x5bdc4c['range'])}};this[_0x4456e3(0x240)][_0x4456e3(0x138)](_0x858062,this[_0x4456e3(0x252)]);},gt)),(this['unitID']=_0x25405e,this[_0x4626b8(0x240)]=_0x13b508,this[_0x4626b8(0x232)]=_0x592568,this[_0x4626b8(0x2d5)]=_0x35ef57,this['_memberService']=_0x261838,this[_0x4626b8(0x336)]=_0x4d5665,this[_0x4626b8(0x2e9)]=_0x5b3f0a,this[_0x4626b8(0x25e)]=_0x45c75f);}get[_0x5e7409(0x2dd)](){const _0x3610e3=_0x5e7409;return this[_0x3610e3(0x153)][_0x3610e3(0x201)]();}get[_0x5e7409(0x1d3)](){const _0x2d0e10=_0x5e7409;return this[_0x2d0e10(0x3b6)][_0x2d0e10(0x201)]();}[_0x5e7409(0x3a1)](){const _0x4e3389=_0x5e7409;super[_0x4e3389(0x3a1)](),this['_cursorInfo$']['next'](new Map()),this[_0x4e3389(0x153)][_0x4e3389(0x1e8)](),this['_roomMembers$'][_0x4e3389(0x32d)]([]),this[_0x4e3389(0x3b6)]['complete']();}[_0x5e7409(0x36d)](){const _0x1c8115=_0x5e7409;this[_0x1c8115(0x303)]||(this[_0x1c8115(0x303)]=!0x0,this[_0x1c8115(0x240)][_0x1c8115(0x1ee)][_0x1c8115(0x168)](I[_0x1c8115(0x2a0)](this[_0x1c8115(0x33d)]))[_0x1c8115(0x24c)](_0x229b11=>{const _0x5d1253=_0x1c8115;_0x229b11===u[_0x5d1253(0x300)][_0x5d1253(0x2f2)]?this[_0x5d1253(0x337)]():this[_0x5d1253(0x12c)]();}),this[_0x1c8115(0x240)][_0x1c8115(0x3b8)][_0x1c8115(0x168)](I[_0x1c8115(0x2a0)](this[_0x1c8115(0x33d)]))[_0x1c8115(0x24c)](_0x4fbfd4=>{const _0x3cc5ed=_0x1c8115,_0x5a2a4c=_0x4fbfd4[_0x3cc5ed(0x288)];_0x5a2a4c===g[_0x3cc5ed(0x1bf)][_0x3cc5ed(0x377)]&&this[_0x3cc5ed(0x360)](_0x4fbfd4),_0x5a2a4c===g[_0x3cc5ed(0x1bf)]['USERS_LEAVE']&&this[_0x3cc5ed(0x22a)](_0x4fbfd4);}),this[_0x1c8115(0x3a0)](),this[_0x1c8115(0x361)](this[_0x1c8115(0x2e9)][_0x1c8115(0x3a7)](_0x5f06ab=>{const _0x530a06=_0x1c8115;if(this['_online']&&_0x5f06ab['id']===v[_0x530a06(0x34c)]['id']&&_0x5f06ab['params']['unitId']===this[_0x530a06(0x252)]){const _0x358be0=_0x5f06ab[_0x530a06(0x1b3)];this['_updateLocalCursor'](_0x358be0[_0x530a06(0x107)],_0x358be0[_0x530a06(0x3a5)][0x0]);}})));}[_0x5e7409(0x360)](_0x17a68e){const _0xaf2f3c=_0x5e7409;var _0x283b24,_0x2fa129;const {memberID:_0x42971d,selection:_0xb6b6ef}=_0x17a68e[_0xaf2f3c(0x1dc)],{sheetName:_0x25f7d5,range:_0x2a8a4b}=B['deserializeRangeWithSheet'](_0xb6b6ef),_0x334de3={'name':(_0x2fa129=(_0x283b24=this['_memberService'][_0xaf2f3c(0x34e)](this[_0xaf2f3c(0x252)],_0x42971d))==null?void 0x0:_0x283b24[_0xaf2f3c(0x113)])!=null?_0x2fa129:_0xaf2f3c(0x286),'range':this[_0xaf2f3c(0x260)](_0x25f7d5,_0x2a8a4b),'sheetID':_0x25f7d5,'color':this['_colorAssignService'][_0xaf2f3c(0x1da)](_0x42971d),'selection':_0xb6b6ef},_0x1089f2=this['cursorInfo'];_0x1089f2[_0xaf2f3c(0x15c)](_0x42971d,_0x334de3),this[_0xaf2f3c(0x153)][_0xaf2f3c(0x32d)](_0x1089f2);}[_0x5e7409(0x22a)](_0x550795){const _0x2e40b8=_0x5e7409,{memberID:_0x2a3117}=_0x550795['data'],_0x8e579f=this['cursorInfo'];_0x8e579f['delete'](_0x2a3117),this[_0x2e40b8(0x153)][_0x2e40b8(0x32d)](_0x8e579f);}[_0x5e7409(0x260)](_0x583078,_0x1852b5){const _0xcc733a=_0x5e7409;var _0x594563,_0xc8faa;const _0x11946a=(_0xc8faa=(_0x594563=this[_0xcc733a(0x336)]['getUniverSheetInstance'](this[_0xcc733a(0x252)]))==null?void 0x0:_0x594563[_0xcc733a(0x2a4)](_0x583078))==null?void 0x0:_0xc8faa[_0xcc733a(0x395)]();return(_0x11946a==null?void 0x0:_0x11946a[_0xcc733a(0x1a2)](_0x341e18=>a[_0xcc733a(0x140)][_0xcc733a(0x12b)](_0x341e18,_0x1852b5)))||_0x1852b5;}[_0x5e7409(0x3a0)](){const _0x48fdb6=_0x5e7409,_0x2d5748=new a[(_0x48fdb6(0x27a))](),_0x489cbf=Et(),_0x3a22c4=()=>{const _0x15e76e=_0x48fdb6;_0x2d5748[_0x15e76e(0x3a1)]();const _0x46bd00=(_0x38c956,_0x2bc9fb,_0x3f2a90,_0x897e65)=>{const _0x21dfce=_0x15e76e;let _0x4985da=[];switch(_0x38c956['id']){case v['EffectRefRangId'][_0x21dfce(0x278)]:{_0x4985da=v['handleDeleteRangeMoveLeft'](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x25c)]:{_0x4985da=v[_0x21dfce(0x334)](_0x38c956,_0x897e65);break;}case v['EffectRefRangId'][_0x21dfce(0x14d)]:{_0x4985da=v[_0x21dfce(0x14a)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x256)]:{_0x4985da=v[_0x21dfce(0x3c8)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x317)]:{_0x4985da=v[_0x21dfce(0x384)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x349)]:{_0x4985da=v['handleInsertRow'](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x335)]:{_0x4985da=v[_0x21dfce(0x2d6)](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x1ed)]:{_0x4985da=v['handleIRemoveCol'](_0x38c956,_0x897e65);break;}case v[_0x21dfce(0x10f)][_0x21dfce(0x2ee)]:{_0x4985da=v[_0x21dfce(0x346)](_0x38c956,_0x897e65);break;}}const _0x45ca22=v[_0x21dfce(0x10c)](_0x4985da,_0x897e65),_0x5c2399=this[_0x21dfce(0x2dd)]['get'](_0x2bc9fb);if(_0x5c2399&&_0x45ca22){const _0x301eed={..._0x5c2399,'range':_0x45ca22};this[_0x21dfce(0x2dd)][_0x21dfce(0x15c)](_0x2bc9fb,_0x301eed),_0x489cbf(()=>{const _0x2fe30f=_0x21dfce,_0x353d9f=this[_0x2fe30f(0x25e)][_0x2fe30f(0x139)](_0x45ca22,_0x56e56f=>(_0x353d9f[_0x2fe30f(0x3a1)](),_0x46bd00(_0x56e56f,_0x2bc9fb,_0x3f2a90,_0x45ca22)));_0x2d5748['add'](_0x353d9f);});}return{'redos':[],'undos':[]};};this[_0x15e76e(0x2dd)][_0x15e76e(0x2f8)]((_0x697f4c,_0x1df836)=>{const _0x5e05f0=_0x15e76e,{range:_0xf9393f,sheetID:_0x5704b4}=_0x697f4c,_0x1acf75=this[_0x5e05f0(0x25e)][_0x5e05f0(0x139)](_0xf9393f,_0x596701=>(_0x1acf75[_0x5e05f0(0x3a1)](),_0x46bd00(_0x596701,_0x1df836,_0x5704b4,_0xf9393f)));_0x2d5748['add'](_0x1acf75);});};this[_0x48fdb6(0x361)](a['toDisposable'](this[_0x48fdb6(0x153)]['subscribe'](()=>{_0x3a22c4();})));}[_0x5e7409(0x337)](){const _0xb15eb6=_0x5e7409;var _0xfb9897,_0x1790df;if(this[_0xb15eb6(0x146)]=!0x0,((_0xfb9897=this[_0xb15eb6(0x336)]['getFocusedUnit']())==null?void 0x0:_0xfb9897[_0xb15eb6(0x3b5)]())!==this[_0xb15eb6(0x252)])return;const _0x364a0d=(_0x1790df=this['_injector'][_0xb15eb6(0x22b)](v[_0xb15eb6(0x293)])[_0xb15eb6(0x292)]())==null?void 0x0:_0x1790df[0x0],_0x324a9b=this[_0xb15eb6(0x336)]['getCurrentUnitForType'](a[_0xb15eb6(0x1fc)][_0xb15eb6(0x34f)])[_0xb15eb6(0x183)]();_0x364a0d&&_0x324a9b&&this[_0xb15eb6(0x1b7)](_0x324a9b[_0xb15eb6(0x351)](),_0x364a0d);}[_0x5e7409(0x12c)](){const _0x278ffc=_0x5e7409;this[_0x278ffc(0x146)]=!0x1;}};ge=mt([w(0x2,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),w(0x3,a[_0x5e7409(0x10a)](Re)),w(0x4,a[_0x5e7409(0x10a)](u[_0x5e7409(0x148)])),w(0x5,a[_0x5e7409(0x119)]),w(0x6,a[_0x5e7409(0x366)]),w(0x7,a[_0x5e7409(0x10a)](v[_0x5e7409(0x1e2)]))],ge);var Ct=Object[_0x5e7409(0x3ca)],pt=(_0x28795f,_0x48d077,_0x37f80f,_0x25918c)=>{const _0x1f5229=_0x5e7409;for(var _0x501e8c=_0x25918c>0x1?void 0x0:_0x25918c?Ct(_0x48d077,_0x37f80f):_0x48d077,_0x43bd7a=_0x28795f[_0x1f5229(0x23d)]-0x1,_0x414066;_0x43bd7a>=0x0;_0x43bd7a--)(_0x414066=_0x28795f[_0x43bd7a])&&(_0x501e8c=_0x414066(_0x501e8c)||_0x501e8c);return _0x501e8c;},ce=(_0x1dbba7,_0x2b1844)=>(_0x8943e9,_0x458ae1)=>_0x2b1844(_0x8943e9,_0x458ae1,_0x1dbba7);let F=class extends a[_0x5e7409(0x2fe)]{constructor(_0x20e375,_0x9b4368,_0x12e5fe){const _0x3223a3=_0x5e7409;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x3223a3(0x3b3))]()),(this[_0x3223a3(0x336)]=_0x20e375,this[_0x3223a3(0x232)]=_0x9b4368,this[_0x3223a3(0x15d)]=_0x12e5fe,this[_0x3223a3(0x303)]());}[_0x5e7409(0x3a1)](){const _0x5d5128=_0x5e7409;super[_0x5d5128(0x3a1)](),this[_0x5d5128(0x24f)][_0x5d5128(0x1e8)](),this[_0x5d5128(0x3c2)]['forEach'](_0x5dab11=>_0x5dab11[_0x5d5128(0x3a1)]());}[_0x5e7409(0x1d5)](_0x2dec44){const _0x41a63f=_0x5e7409;return this[_0x41a63f(0x3c2)][_0x41a63f(0x2ac)](_0x2dec44)?this[_0x41a63f(0x3c2)][_0x41a63f(0x22b)](_0x2dec44)[_0x41a63f(0x1c3)]:this[_0x41a63f(0x24f)]['pipe'](I[_0x41a63f(0x389)](_0x3d8fc7=>_0x3d8fc7['unitID']===_0x2dec44),I['switchMap'](_0x129fd9=>_0x129fd9[_0x41a63f(0x1c3)]));}['_init'](){const _0x10a537=_0x5e7409;this[_0x10a537(0x336)]['getTypeOfUnitAdded$'](a[_0x10a537(0x1fc)][_0x10a537(0x34f)])['pipe'](I[_0x10a537(0x2a0)](this['dispose$']))[_0x10a537(0x24c)](async _0x1b11a5=>{const _0x594827=_0x10a537,_0x115df7=_0x1b11a5['getUnitId'](),_0x3f8921=await this['_startSheetCollabCursor'](_0x115df7);this['_entityInit$']['next'](_0x3f8921),this[_0x594827(0x3c2)][_0x594827(0x15c)](_0x115df7,_0x3f8921);}),this[_0x10a537(0x336)]['getTypeOfUnitAdded$'](a[_0x10a537(0x1fc)][_0x10a537(0x273)])[_0x10a537(0x168)](I[_0x10a537(0x2a0)](this[_0x10a537(0x33d)]))['pipe'](I['filter'](_0x41ed78=>!_0x41ed78['getUnitId']()[_0x10a537(0x2f7)]('__')))[_0x10a537(0x24c)](async _0x93b713=>{const _0x1f8639=_0x10a537,_0x5220f1=_0x93b713['getUnitId'](),_0x31a920=await this[_0x1f8639(0x1a8)](_0x5220f1);this['_entityInit$']['next'](_0x31a920),this[_0x1f8639(0x3c2)][_0x1f8639(0x15c)](_0x5220f1,_0x31a920);}),I[_0x10a537(0x31b)](this[_0x10a537(0x336)][_0x10a537(0x279)](a[_0x10a537(0x1fc)]['UNIVER_DOC']),this[_0x10a537(0x336)][_0x10a537(0x279)](a['UniverInstanceType'][_0x10a537(0x34f)]))[_0x10a537(0x168)](I[_0x10a537(0x2a0)](this[_0x10a537(0x33d)]))[_0x10a537(0x24c)](_0x4e2384=>{const _0x3eadf5=_0x10a537,_0x1c756d=_0x4e2384['getUnitId'](),_0x5d1e17=this['_entities'][_0x3eadf5(0x22b)](_0x1c756d);_0x5d1e17&&(_0x5d1e17['dispose'](),this[_0x3eadf5(0x3c2)][_0x3eadf5(0x35b)](_0x1c756d));});}async[_0x5e7409(0x1f7)](_0x190296){const _0x1ee20c=_0x5e7409,_0x150709=await this[_0x1ee20c(0x15d)][_0x1ee20c(0x172)](_0x190296),_0x257dd9=this[_0x1ee20c(0x232)][_0x1ee20c(0x231)](ge,_0x190296,_0x150709);return _0x257dd9[_0x1ee20c(0x36d)](),_0x257dd9;}async[_0x5e7409(0x1a8)](_0x4a1a15){const _0x142bfc=_0x5e7409,_0x3c819a=await this[_0x142bfc(0x15d)][_0x142bfc(0x172)](_0x4a1a15),_0x13adbe=this[_0x142bfc(0x232)][_0x142bfc(0x231)](ve,_0x4a1a15,_0x3c819a);return _0x13adbe[_0x142bfc(0x36d)](),_0x13adbe;}};F=pt([ce(0x0,a[_0x5e7409(0x119)]),ce(0x1,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),ce(0x2,a[_0x5e7409(0x10a)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x4fc8a1,_0x2ff81d){const _0x5c36b0=_0x5e7409;let {radius:_0x1fa652,width:_0x206052,height:_0x5eb76b}=_0x2ff81d;_0x1fa652=_0x1fa652!=null?_0x1fa652:0x0,_0x206052=_0x206052!=null?_0x206052:0x1e,_0x5eb76b=_0x5eb76b!=null?_0x5eb76b:0x1e;let _0x53c6f7=0x0,_0x409189=0x0,_0x32cc65=0x0;_0x53c6f7=_0x409189=_0x32cc65=Math[_0x5c36b0(0x267)](_0x1fa652,_0x206052/0x2,_0x5eb76b/0x2),_0x4fc8a1[_0x5c36b0(0x31c)](),_0x4fc8a1[_0x5c36b0(0x23f)](_0x53c6f7,0x0),_0x4fc8a1[_0x5c36b0(0x269)](_0x206052-_0x409189,0x0),_0x4fc8a1[_0x5c36b0(0x19d)](_0x206052-_0x409189,_0x409189,_0x409189,Math['PI']*0x3/0x2,0x0,!0x1),_0x4fc8a1[_0x5c36b0(0x269)](_0x206052,_0x5eb76b-_0x32cc65),_0x4fc8a1['arc'](_0x206052-_0x32cc65,_0x5eb76b-_0x32cc65,_0x32cc65,0x0,Math['PI']/0x2,!0x1),_0x4fc8a1[_0x5c36b0(0x269)](0x0,_0x5eb76b),_0x4fc8a1['lineTo'](0x0,_0x53c6f7),_0x4fc8a1[_0x5c36b0(0x19d)](_0x53c6f7,_0x53c6f7,_0x53c6f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4fc8a1[_0x5c36b0(0x11b)](),_0x2ff81d[_0x5c36b0(0x2cb)]&&(_0x4fc8a1[_0x5c36b0(0x37f)](),_0x4fc8a1[_0x5c36b0(0x28d)]=_0x2ff81d[_0x5c36b0(0x2cb)],_0x2ff81d[_0x5c36b0(0x2db)]==='evenodd'?_0x4fc8a1['fill'](_0x5c36b0(0x1f5)):_0x4fc8a1[_0x5c36b0(0x2cb)](),_0x4fc8a1['restore']());}class re extends C[_0x5e7409(0x306)]{constructor(_0x5f349b,_0xcb026e){const _0x1d10d0=_0x5e7409;super(_0x5f349b,_0xcb026e),_(this,'color'),_(this,_0x1d10d0(0x249)),(this['color']=_0xcb026e==null?void 0x0:_0xcb026e[_0x1d10d0(0x307)],this[_0x1d10d0(0x249)]=_0xcb026e==null?void 0x0:_0xcb026e['text']);}static['drawWith'](_0x35d632,_0x587582){const _0x4b6115=_0x5e7409,{text:_0x194310,color:_0x56938e}=_0x587582;_0x35d632[_0x4b6115(0x37f)](),_0x35d632['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x105f01=_0x35d632[_0x4b6115(0x158)](_0x194310)[_0x4b6115(0x2b1)],_0x3faf89=Math[_0x4b6115(0x267)](_0x105f01+0x2*le,Ue);Ot(_0x35d632,{'height':X,'radius':0x4,'width':_0x3faf89,'fill':_0x56938e}),_0x35d632[_0x4b6115(0x28d)]=_0x4b6115(0x31a);const _0x564831=le,_0x2f351d=X-Tt,_0x2c319f=Ue-0x2*le;if(_0x105f01>_0x2c319f){let _0xb505e4='',_0x4778eb=0x0;for(const _0xb0d963 of _0x194310){const _0x2e7cfc=_0x35d632[_0x4b6115(0x158)](_0xb0d963)[_0x4b6115(0x2b1)];if(_0x4778eb+_0x2e7cfc<=_0x2c319f-_0x35d632[_0x4b6115(0x158)](_0x4b6115(0x184))[_0x4b6115(0x2b1)])_0xb505e4+=_0xb0d963,_0x4778eb+=_0x2e7cfc;else{_0xb505e4+=_0x4b6115(0x184);break;}}_0x35d632[_0x4b6115(0x25a)](_0xb505e4,_0x564831,_0x2f351d);}else _0x35d632[_0x4b6115(0x25a)](_0x194310,_0x564831,_0x2f351d);_0x35d632[_0x4b6115(0x2a8)]();}[_0x5e7409(0x160)](_0x18ff4c){const _0x48689b=_0x5e7409;re[_0x48689b(0x224)](_0x18ff4c,this);}}const _e=_0x5e7409(0x206),Rt=_0x5e7409(0x1ef),bt=_0x5e7409(0x22e),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5e7409(0x32f);class Le{constructor(_0x4f9a35,_0x9bcce1,_0x18d2e4,_0x5bc2cd){const _0x3a3bb5=_0x5e7409;_(this,'_shapes',[]),_(this,_0x3a3bb5(0x268),null),_(this,_0x3a3bb5(0x202),null),_(this,_0x3a3bb5(0x338),null),_(this,_0x3a3bb5(0x27d),null),_(this,_0x3a3bb5(0x111),null),(this[_0x3a3bb5(0x1b6)]=_0x4f9a35,this[_0x3a3bb5(0x101)]=_0x9bcce1,this[_0x3a3bb5(0x3bb)]=_0x18d2e4,this[_0x3a3bb5(0x19b)]=_0x5bc2cd,this[_0x3a3bb5(0x1e5)]());}set[_0x5e7409(0x133)](_0x3fca81){const _0x288ce4=_0x5e7409;_0x3fca81?(this[_0x288ce4(0x338)]&&this['_anchorDot']['hide'](),this[_0x288ce4(0x202)]&&this[_0x288ce4(0x202)]['show']()):(this[_0x288ce4(0x338)]&&this[_0x288ce4(0x338)][_0x288ce4(0x353)](),this[_0x288ce4(0x202)]&&this[_0x288ce4(0x202)]['hide']());}['dispose'](){const _0x5eeea0=_0x5e7409;for(const _0x41ef96 of this['_shapes'])_0x41ef96[_0x5eeea0(0x3a1)]();this[_0x5eeea0(0x202)]&&this[_0x5eeea0(0x202)][_0x5eeea0(0x3a1)](),this[_0x5eeea0(0x338)]&&this['_anchorDot'][_0x5eeea0(0x3a1)](),this[_0x5eeea0(0x268)]&&this[_0x5eeea0(0x268)][_0x5eeea0(0x3a1)](),this[_0x5eeea0(0x111)]&&this['_eventUnsubscribe']();}[_0x5e7409(0x1e5)](){const _0x130c2c=_0x5e7409;var _0x21377d;const {_docSkeleton:_0x554d9e,_document:_0x4772fa}=this,{color:_0x319936,name:_0x5d01f1,ranges:_0x2c2150}=this[_0x130c2c(0x1b6)],_0x1fe0b1=_0x4772fa['getOffsetConfig'](),{docsLeft:_0x4f3048,docsTop:_0x5a00fc}=_0x1fe0b1,_0x30be17=new p['NodePositionConvertToCursor'](_0x1fe0b1,_0x554d9e);for(const {startOffset:_0x3518fd,endOffset:_0x3d0fa8,rangeType:_0x4fdd2d,segmentId:_0x3909ba,segmentPage:_0x77da3e,collapsed:_0x189524,isActive:_0x267124}of _0x2c2150){const _0x582d5a=_0x554d9e[_0x130c2c(0x331)](_0x3518fd,!0x0,_0x3909ba,_0x77da3e);let _0x4b196f=_0x554d9e['findNodePositionByCharIndex'](_0x3d0fa8,!0x0,_0x3909ba,_0x77da3e);if(_0x4b196f==null&&(_0x4b196f=_0x554d9e[_0x130c2c(0x331)](_0x3d0fa8-0x1,!0x1,_0x3909ba,_0x77da3e)),_0x267124){const {contentBoxPointGroup:_0x53c3ae}=_0x30be17['getRangePointData'](_0x4b196f,_0x4b196f);if(_0x53c3ae[_0x130c2c(0x23d)]===0x0)continue;this[_0x130c2c(0x19c)](_0x319936,_0x53c3ae,_0x4f3048,_0x5a00fc,_0x5d01f1),this[_0x130c2c(0x111)]=this[_0x130c2c(0x163)]();}if(_0x582d5a&&_0x4b196f){if(_0x4fdd2d===a['DOC_RANGE_TYPE'][_0x130c2c(0x327)]){const _0x4184a6=new p[(_0x130c2c(0x3bc))](_0x1fe0b1,_0x554d9e),{pointGroup:_0x155a25}=(_0x21377d=_0x4184a6[_0x130c2c(0x356)](_0x582d5a,_0x4b196f))!=null?_0x21377d:{};if(_0x155a25==null||_0x155a25['length']===0x0)continue;this[_0x130c2c(0x239)](_0x319936,_0x155a25,_0x4f3048,_0x5a00fc);}else{if(!_0x189524){const {borderBoxPointGroup:_0x5a5499}=_0x30be17[_0x130c2c(0x356)](_0x582d5a,_0x4b196f);if(_0x5a5499['length']===0x0)continue;this['_drawTextRange'](_0x319936,_0x5a5499,_0x4f3048,_0x5a00fc);}}}}}[_0x5e7409(0x19c)](_0x228d03,_0x343445,_0x384f72,_0x193c72,_0x397eab){const _0x337616=_0x5e7409,_0x39e47c=this[_0x337616(0x1f4)](_0x343445),{left:_0x35b6fa,top:_0x5e4364,height:_0x15ed40}=_0x39e47c,_0x415a5f=this[_0x337616(0x103)](),_0x24094d=Nt/_0x415a5f,_0x88d274=new C['Rect'](_e+a[_0x337616(0x17d)](H),{'left':_0x35b6fa+_0x384f72-_0x24094d,'top':_0x5e4364+_0x193c72,'height':_0x15ed40,'width':Dt,'fill':_0x228d03||C[_0x337616(0x31d)](a[_0x337616(0x3ba)]['black'],0x0),'strokeWidth':_0x24094d,'stroke':Ut,'evented':!0x0});this[_0x337616(0x268)]=_0x88d274,this[_0x337616(0x101)]['addObject'](_0x88d274,p['TEXT_RANGE_LAYER_INDEX']);const _0x32f05a=new C['Rect'](_e+a[_0x337616(0x17d)](H),{'left':_0x35b6fa+_0x384f72-_0x24094d,'top':_0x5e4364+_0x193c72-he/0x2,'height':he,'width':he,'fill':_0x228d03||C[_0x337616(0x31d)](a[_0x337616(0x3ba)][_0x337616(0x387)],0x0),'strokeWidth':0x0,'stroke':_0x228d03||C[_0x337616(0x31d)](a[_0x337616(0x3ba)][_0x337616(0x387)],0x0),'evented':!0x1});this[_0x337616(0x338)]=_0x32f05a,this[_0x337616(0x101)][_0x337616(0x332)](_0x32f05a,p[_0x337616(0x16e)]);const _0x219647=new re(_e+a[_0x337616(0x17d)](H),{'left':_0x35b6fa+_0x384f72-_0x24094d,'top':_0x5e4364+_0x193c72-X,'text':_0x397eab,'color':_0x228d03});this[_0x337616(0x202)]=_0x219647,this[_0x337616(0x101)][_0x337616(0x332)](_0x219647,p[_0x337616(0x16e)]),this['_hover']=!0x1;}[_0x5e7409(0x163)](){const _0x4aef9d=_0x5e7409,_0x4cf1c6=this['_anchor'][_0x4aef9d(0x205)][_0x4aef9d(0x2b8)](()=>{const _0x5c5818=_0x4aef9d;this[_0x5c5818(0x133)]=!0x0;}),_0x2dba54=this[_0x4aef9d(0x268)][_0x4aef9d(0x22d)]['subscribeEvent'](()=>{const _0x5b4f1c=_0x4aef9d;this['_hideTimer']&&clearTimeout(this[_0x5b4f1c(0x27d)]),this[_0x5b4f1c(0x27d)]=setTimeout(()=>{const _0x30395f=_0x5b4f1c;this[_0x30395f(0x133)]=!0x1;},0x7d0);});return()=>{const _0x59823a=_0x4aef9d;_0x4cf1c6[_0x59823a(0x142)](),_0x2dba54[_0x59823a(0x142)]();};}[_0x5e7409(0x161)](_0x26b7ea,_0x1fb5f7,_0x5b57c2,_0x80e193){const _0x20c3c9=_0x5e7409,_0x12e1aa=new a['ColorKit'](_0x26b7ea)['setAlpha'](0.2)['toRgbString'](),_0xf6047a=new C[(_0x20c3c9(0x2c0))](Rt+a[_0x20c3c9(0x17d)](H),{'pointsGroup':_0x1fb5f7,'fill':_0x12e1aa||C[_0x20c3c9(0x31d)](a['COLORS']['black'],0.2),'left':_0x5b57c2,'top':_0x80e193,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20c3c9(0x1fb)][_0x20c3c9(0x2e2)](_0xf6047a),this[_0x20c3c9(0x101)][_0x20c3c9(0x332)](_0xf6047a,p[_0x20c3c9(0x16e)]);}[_0x5e7409(0x239)](_0x16e484,_0x297366,_0x4783e9,_0x1c4333){const _0x18b464=_0x5e7409,_0x262922=new a['ColorKit'](_0x16e484)[_0x18b464(0x37d)](0.2)[_0x18b464(0x21f)](),_0x229f89=new C['RegularPolygon'](bt+a[_0x18b464(0x17d)](H),{'pointsGroup':_0x297366,'fill':_0x262922||C[_0x18b464(0x31d)](a[_0x18b464(0x3ba)][_0x18b464(0x387)],0.2),'left':_0x4783e9,'top':_0x1c4333,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18b464(0x1fb)]['push'](_0x229f89),this[_0x18b464(0x101)][_0x18b464(0x332)](_0x229f89,p[_0x18b464(0x16e)]);}[_0x5e7409(0x1f4)](_0x225542){const _0xaf0d4b=_0x225542[0x0],_0x142f25=_0xaf0d4b[0x0],_0x4fd08d=_0xaf0d4b[0x2],{x:_0x314828,y:_0x2b3c63}=_0x142f25,{x:_0x18a651,y:_0x394d65}=_0x4fd08d;return{'left':_0x314828,'top':_0x2b3c63,'width':_0x18a651-_0x314828,'height':_0x394d65-_0x2b3c63};}[_0x5e7409(0x103)](){const _0x25f904=_0x5e7409,{scaleX:_0x3e62ac,scaleY:_0x279ee5}=this[_0x25f904(0x101)][_0x25f904(0x210)]();return Math['max'](_0x3e62ac,_0x279ee5);}}var Lt=Object[_0x5e7409(0x3ca)],Mt=(_0x144c09,_0x5caa76,_0x38c06b,_0x8f84ed)=>{const _0x11089e=_0x5e7409;for(var _0x4de365=_0x8f84ed>0x1?void 0x0:_0x8f84ed?Lt(_0x5caa76,_0x38c06b):_0x5caa76,_0x162980=_0x144c09[_0x11089e(0x23d)]-0x1,_0x557994;_0x162980>=0x0;_0x162980--)(_0x557994=_0x144c09[_0x162980])&&(_0x4de365=_0x557994(_0x4de365)||_0x4de365);return _0x4de365;},q=(_0x40a416,_0x1401f0)=>(_0x488ba9,_0x10dfa1)=>_0x1401f0(_0x488ba9,_0x10dfa1,_0x40a416);let Ee=class extends a[_0x5e7409(0x2fe)]{constructor(_0x234831,_0x900286,_0x4cb2df,_0x58f23e,_0xc4afa5){const _0x344c20=_0x5e7409;super(),_(this,_0x344c20(0x28e),[]),_(this,_0x344c20(0x2fa),[]),(this[_0x344c20(0x24b)]=_0x234831,this[_0x344c20(0x3c5)]=_0x900286,this['_collabCursorController']=_0x4cb2df,this['_commandService']=_0x58f23e,this['_themeService']=_0xc4afa5,this[_0x344c20(0x303)]());}[_0x5e7409(0x303)](){const _0x284a4f=_0x5e7409,_0xc284d0=this[_0x284a4f(0x24b)][_0x284a4f(0x2c4)],_0x265c9f=this[_0x284a4f(0x3c5)];this[_0x284a4f(0x361)](I[_0x284a4f(0x3b9)]([this[_0x284a4f(0x22f)]['getCollabCursors$'](_0xc284d0),this[_0x284a4f(0x2af)]['currentTheme$']])[_0x284a4f(0x168)]($[_0x284a4f(0x173)](([_0x595cb9,_0x37b4f6])=>({'skeleton':_0x265c9f[_0x284a4f(0x23b)](),'cursors':[..._0x595cb9['values']()]['flatMap'](_0x5cbe3a=>({..._0x5cbe3a,'color':this['_themeService'][_0x284a4f(0x301)](_0x5cbe3a[_0x284a4f(0x307)])}))})))['subscribe'](_0xcbfc26=>{const _0x2a71bf=_0x284a4f;if(this['_removeCollabCursors'](),_0xcbfc26){const {skeleton:_0x27fec9,cursors:_0x3eeee0}=_0xcbfc26;this[_0x2a71bf(0x1ab)](_0x27fec9,_0x3eeee0);}})),this[_0x284a4f(0x219)](),this[_0x284a4f(0x1ae)]();}[_0x5e7409(0x1ab)](_0x53913d,_0x24db26){const _0x3b8de7=_0x5e7409,{scene:_0x2963f7,mainComponent:_0xa54f96}=this[_0x3b8de7(0x24b)],_0x3e0658=_0x24db26[_0x3b8de7(0x173)](_0x58e629=>new Le(_0x58e629,_0x2963f7,_0x53913d,_0xa54f96));this['_cursorShapes']=_0x3e0658,this[_0x3b8de7(0x2fa)]=_0x24db26;}[_0x5e7409(0x18b)](){const _0x479621=_0x5e7409;this[_0x479621(0x241)]();const {scene:_0x1c2be6,mainComponent:_0x2805a1}=this['_context'],_0x39ac07=this[_0x479621(0x3c5)][_0x479621(0x23b)](),_0x1f3006=this['_cursors'][_0x479621(0x173)](_0x57f288=>new Le(_0x57f288,_0x1c2be6,_0x39ac07,_0x2805a1));this['_cursorShapes']=_0x1f3006;}['_removeCollabCursors'](){const _0x5e1807=_0x5e7409;this[_0x5e1807(0x28e)][_0x5e1807(0x2f8)](_0x5e0046=>_0x5e0046[_0x5e1807(0x3a1)]()),this['_cursorShapes']=[];}[_0x5e7409(0x1ae)](){const _0x4dcd21=_0x5e7409,_0x3ccabb=[p['SetDocZoomRatioOperation']['id']];this[_0x4dcd21(0x361)](this[_0x4dcd21(0x2e9)][_0x4dcd21(0x3a7)](_0x1f23cb=>{const _0xbb1f57=_0x4dcd21;_0x3ccabb[_0xbb1f57(0x28a)](_0x1f23cb['id'])&&_0x1f23cb[_0xbb1f57(0x1b3)]['unitId']===this['_context'][_0xbb1f57(0x2c4)]&&this[_0xbb1f57(0x18b)]();}));}['_initResize'](){const _0x39271e=_0x5e7409;this[_0x39271e(0x361)](a['fromEventSubject'](this[_0x39271e(0x24b)][_0x39271e(0x215)][_0x39271e(0x19a)])[_0x39271e(0x168)]($['filter'](_0x5eb032=>_0x5eb032[_0x39271e(0x3ad)]===C[_0x39271e(0x302)][_0x39271e(0x2ce)]),$[_0x39271e(0x2b6)](0x10))['subscribe'](()=>{const _0xcca6c9=_0x39271e;this[_0xcca6c9(0x18b)]();}));}};Ee=Mt([q(0x1,a[_0x5e7409(0x10a)](V[_0x5e7409(0x266)])),q(0x2,a['Inject'](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x5e7409(0x10a)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x151cdb,_0x4d532b){const _0x373371=_0x5e7409;super(_0x151cdb,_0x4d532b),_(this,_0x373371(0x217)),_(this,_0x373371(0x1fd),!0x1),_(this,'_range'),_(this,_0x373371(0x31f),''),_(this,_0x373371(0x3af),'top'),_(this,_0x373371(0x128)),(_0x4d532b&&this[_0x373371(0x104)](_0x4d532b),this[_0x373371(0x205)]['subscribeEvent'](()=>this[_0x373371(0x104)]({'hovered':!0x0})),this[_0x373371(0x22d)][_0x373371(0x2b8)](()=>this[_0x373371(0x104)]({'hovered':!0x1})));}['setShapeProps'](_0x16f9a0){const _0x5b374f=_0x5e7409;var _0x2752e5,_0x5ee610,_0x2f06ad,_0x2cb20a,_0x1fbedd,_0x238eb4;this['_color']=(_0x2752e5=_0x16f9a0['color'])!=null?_0x2752e5:this[_0x5b374f(0x217)],this[_0x5b374f(0x1fd)]=(_0x5ee610=_0x16f9a0[_0x5b374f(0x270)])!=null?_0x5ee610:this[_0x5b374f(0x1fd)],this[_0x5b374f(0x374)]=(_0x2f06ad=_0x16f9a0['range'])!=null?_0x2f06ad:this['_range'],this[_0x5b374f(0x31f)]=(_0x2cb20a=_0x16f9a0['name'])!=null?_0x2cb20a:this[_0x5b374f(0x31f)],this[_0x5b374f(0x3af)]=(_0x1fbedd=_0x16f9a0[_0x5b374f(0x1be)])!=null?_0x1fbedd:this[_0x5b374f(0x3af)],this['_backgroundColor']=(_0x238eb4=_0x16f9a0[_0x5b374f(0x1ad)])!=null?_0x238eb4:this[_0x5b374f(0x128)],this[_0x5b374f(0x2d3)]({'width':_0x16f9a0[_0x5b374f(0x2b1)],'height':_0x16f9a0[_0x5b374f(0x2ba)]});}[_0x5e7409(0x345)](_0x3a91ae){const _0x50fe2f=_0x5e7409,{row:_0x8f3999,column:_0x37d833}=_0x3a91ae;if(_0x8f3999>=this[_0x50fe2f(0x374)][_0x50fe2f(0x35f)]&&_0x8f3999<=this[_0x50fe2f(0x374)][_0x50fe2f(0x26d)]&&_0x37d833>=this[_0x50fe2f(0x374)][_0x50fe2f(0x247)]&&_0x37d833<=this['_range']['endColumn']){this[_0x50fe2f(0x104)]({'hovered':!0x0});return;}this[_0x50fe2f(0x104)]({'hovered':!0x1});}[_0x5e7409(0x129)](_0x259c3a){return!0x1;}[_0x5e7409(0x160)](_0x54cdba){const _0x32f174=_0x5e7409;C[_0x32f174(0x39e)][_0x32f174(0x224)](_0x54cdba,{'width':this[_0x32f174(0x2b1)],'height':this[_0x32f174(0x2ba)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x32f174(0x128)]}),this[_0x32f174(0x1fd)]&&(_0x54cdba[_0x32f174(0x37f)](),_0x54cdba['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x32f174(0x3af)]===_0x32f174(0x166)?0x0:-X),re['drawWith'](_0x54cdba,{'text':this[_0x32f174(0x31f)],'color':this[_0x32f174(0x217)]}),_0x54cdba['restore']());}}function _0x4e0e(_0x39a72d,_0x5a0938){const _0x5a7d1f=_0x5a7d();return _0x4e0e=function(_0x4e0e82,_0x4daa6d){_0x4e0e82=_0x4e0e82-0x100;let _0x680604=_0x5a7d1f[_0x4e0e82];return _0x680604;},_0x4e0e(_0x39a72d,_0x5a0938);}var wt=Object[_0x5e7409(0x3ca)],yt=(_0x129a0d,_0x3f2d65,_0x1e3ca0,_0x18d01e)=>{const _0x1b4f99=_0x5e7409;for(var _0x1b393f=_0x18d01e>0x1?void 0x0:_0x18d01e?wt(_0x3f2d65,_0x1e3ca0):_0x3f2d65,_0x3ec8bf=_0x129a0d[_0x1b4f99(0x23d)]-0x1,_0x1c01b5;_0x3ec8bf>=0x0;_0x3ec8bf--)(_0x1c01b5=_0x129a0d[_0x3ec8bf])&&(_0x1b393f=_0x1c01b5(_0x1b393f)||_0x1b393f);return _0x1b393f;},ue=(_0x49465a,_0xb08fe0)=>(_0x55b66b,_0x3c4c22)=>_0xb08fe0(_0x55b66b,_0x3c4c22,_0x49465a);const $t=0x1389;let Ce=class extends a[_0x5e7409(0x2fe)]{constructor(_0x1c4974,_0x47fad3,_0xb72ad6,_0x361000){const _0x33773a=_0x5e7409;super(),_(this,_0x33773a(0x2fa),new Set()),_(this,_0x33773a(0x32b),null),(this[_0x33773a(0x24b)]=_0x1c4974,this['_sheetSkeletonManagerService']=_0x47fad3,this['_collabCursorController']=_0xb72ad6,this[_0x33773a(0x2af)]=_0x361000,this[_0x33773a(0x303)]());}['_init'](){const _0x46151b=_0x5e7409;this[_0x46151b(0x2f3)]['currentSkeleton$'][_0x46151b(0x168)]($[_0x46151b(0x2a0)](this[_0x46151b(0x33d)]),$[_0x46151b(0x2ad)](_0x745ac1=>{const _0x22e48e=_0x46151b;if(_0x745ac1){const _0x1315f8=_0x745ac1[_0x22e48e(0x254)];return I[_0x22e48e(0x3b9)](this[_0x22e48e(0x22f)][_0x22e48e(0x1d5)](this[_0x22e48e(0x24b)][_0x22e48e(0x2c4)]),this[_0x22e48e(0x2af)][_0x22e48e(0x1e6)])[_0x22e48e(0x168)]($[_0x22e48e(0x173)](([_0x4ba4ed,_0xdd33f6])=>{const _0x25042e=_0x22e48e,_0x36dded=new Map();return _0x4ba4ed[_0x25042e(0x2f8)]((_0x216926,_0xfc7abc)=>{const _0xca8037=_0x25042e;if(_0x216926['sheetID']===_0x1315f8){const _0x1befa0={..._0x216926};_0x1befa0[_0xca8037(0x307)]=this[_0xca8037(0x2af)][_0xca8037(0x301)](_0x216926[_0xca8037(0x307)]),_0x36dded[_0xca8037(0x15c)](_0xfc7abc,_0x1befa0);}}),{'skeleton':_0x745ac1,'cursors':_0x36dded};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x46151b(0x24c)](({skeleton:_0x738312,cursors:_0x42ef85})=>{const _0x387d52=_0x46151b;this['_removeCollabCursors'](),_0x738312&&this[_0x387d52(0x1ab)](_0x738312,_0x42ef85);}),this[_0x46151b(0x2f3)][_0x46151b(0x157)][_0x46151b(0x24c)](_0x3e9b46=>{const _0x2501d0=_0x46151b;if(_0x3e9b46==null)return;const {skeleton:_0x162f48}=_0x3e9b46,{scene:_0x44553b}=this[_0x2501d0(0x24b)];_0x44553b['onPointerMove$']['subscribeEvent'](a[_0x2501d0(0x308)](_0x99fe42=>{const _0x54ad68=_0x2501d0;var _0x5e8557,_0x10def5;const {offsetX:_0x31fc4f,offsetY:_0x592881}=_0x99fe42,{x:_0x3ae43e,y:_0x3908cb}=_0x44553b[_0x54ad68(0x1bc)](C[_0x54ad68(0x283)][_0x54ad68(0x2b3)]([_0x31fc4f,_0x592881])),{scaleX:_0x50f377,scaleY:_0x1f30d8}=_0x44553b[_0x54ad68(0x210)](),_0x319a86=_0x44553b['getViewport'](C[_0x54ad68(0x26c)]['VIEW_MAIN']),_0x2f883f=_0x44553b['getVpScrollXYInfoByPosToVp'](C['Vector2'][_0x54ad68(0x2b3)]([_0x3ae43e,_0x3908cb]),_0x319a86),_0x4afbba=_0x162f48[_0x54ad68(0x3aa)](_0x31fc4f,_0x592881,_0x50f377,_0x1f30d8,_0x2f883f);((_0x5e8557=this[_0x54ad68(0x32b)])==null?void 0x0:_0x5e8557[_0x54ad68(0x299)])===_0x4afbba[_0x54ad68(0x299)]&&((_0x10def5=this[_0x54ad68(0x32b)])==null?void 0x0:_0x10def5['row'])===_0x4afbba['row']||this[_0x54ad68(0x2fa)][_0x54ad68(0x2f8)](_0x286577=>{const _0x52f8b4=_0x54ad68;_0x286577[_0x52f8b4(0x345)](_0x4afbba);});},0x64));});}['_updateCollabCursors'](_0x5c13fc,_0x65c22a){const _0x4b253a=_0x5e7409;var _0x45e748;const _0x27a95f=(_0x45e748=this['_sheetSkeletonManagerService'][_0x4b253a(0x15b)]())==null?void 0x0:_0x45e748[_0x4b253a(0x329)];if(!_0x27a95f)return;const _0x2510aa=this[_0x4b253a(0x174)]();if(!_0x2510aa)return;this['_cursors'][_0x4b253a(0x2f8)](_0x428a96=>{const _0x1299e3=_0x4b253a;_0x428a96[_0x1299e3(0x2de)]();});const {scene:_0x53a7ac}=_0x2510aa,_0x13a452=xt(Array[_0x4b253a(0x3bf)](_0x65c22a[_0x4b253a(0x26f)]()))[_0x4b253a(0x173)](_0x58beb0=>{const _0x4aae87=_0x4b253a,{color:_0x42e9c1,range:_0x50611e,name:_0x2ad4db,selection:_0x2a7e77,sheetID:_0x2ee4fa}=_0x58beb0,{startColumn:_0x5a40af,startRow:_0x53e319,endColumn:_0x45e49d,endRow:_0x331e3e}=_0x50611e,_0x465c8b=J[_0x4aae87(0x392)](_0x53e319,_0x5a40af,_0x53a7ac,_0x27a95f),_0x19df4d=J[_0x4aae87(0x392)](_0x331e3e,_0x45e49d,_0x53a7ac,_0x27a95f),{columnHeaderHeightAndMarginTop:_0xd57fa2}=_0x27a95f,{startX:_0x3a7f64,startY:_0x2cefe3}=_0x465c8b,{endX:_0x110c5b,endY:_0x46d094}=_0x19df4d,_0x407797=_0x110c5b-_0x3a7f64,_0x2aa6fe=_0x46d094-_0x2cefe3,_0x190b9b={'labelPosition':_0x2cefe3-_0xd57fa2>=X?'top':_0x4aae87(0x166),'sheetID':_0x2ee4fa,'range':_0x50611e,'color':_0x42e9c1,'name':_0x2ad4db,'selection':_0x2a7e77,'left':_0x3a7f64,'top':_0x2cefe3,'width':_0x407797,'height':_0x2aa6fe,'evented':!0x1,'zIndex':$t};return new je(_0x2ad4db,_0x190b9b);});_0x53a7ac['addObjects'](_0x13a452,At),this[_0x4b253a(0x2fa)]=new Set(_0x13a452);}[_0x5e7409(0x241)](){const _0x3493e7=_0x5e7409;var _0x5238f9;(_0x5238f9=this['_cursors'])==null||_0x5238f9[_0x3493e7(0x2f8)](_0x2f80fc=>_0x2f80fc[_0x3493e7(0x3a1)]());}[_0x5e7409(0x174)](){const _0x64fca8=_0x5e7409;return J[_0x64fca8(0x31e)](this[_0x64fca8(0x24b)][_0x64fca8(0x3a9)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J['SheetSkeletonManagerService'])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x5e7409(0x10a)](a[_0x5e7409(0x35e)]))],Ce);function xt(_0x52c44b){const _0x71209f=_0x5e7409,_0x38d662=new Map();return _0x52c44b['forEach'](_0x3eeb3c=>{const _0x2d2985=_0x4e0e;if(_0x38d662[_0x2d2985(0x2ac)](_0x3eeb3c[_0x2d2985(0x2be)])){const _0x5dae76=_0x38d662['get'](_0x3eeb3c[_0x2d2985(0x2be)]);_0x5dae76[_0x2d2985(0x113)]+=',\x20'+_0x3eeb3c[_0x2d2985(0x113)];}else _0x38d662[_0x2d2985(0x15c)](_0x3eeb3c[_0x2d2985(0x2be)],_0x3eeb3c);}),Array[_0x71209f(0x3bf)](_0x38d662[_0x71209f(0x26f)]());}var Bt=Object[_0x5e7409(0x3ca)],Ft=(_0x3024d8,_0x34e47e,_0x739ce5,_0x1dc346)=>{for(var _0x243738=_0x1dc346>0x1?void 0x0:_0x1dc346?Bt(_0x34e47e,_0x739ce5):_0x34e47e,_0x38f166=_0x3024d8['length']-0x1,_0x5d82d7;_0x38f166>=0x0;_0x38f166--)(_0x5d82d7=_0x3024d8[_0x38f166])&&(_0x243738=_0x5d82d7(_0x243738)||_0x243738);return _0x243738;},y=(_0x4d80b8,_0x35f478)=>(_0x56e274,_0x1e51f8)=>_0x35f478(_0x56e274,_0x1e51f8,_0x4d80b8);let Z=class extends a[_0x5e7409(0x3c4)]{constructor(_0x3ef1bf,_0x5893f4,_0x57a7c7,_0x2d55e,_0x267292,_0x520454){const _0x53c52a=_0x5e7409;super(),this[_0x53c52a(0x2e3)]=_0x3ef1bf,this[_0x53c52a(0x22c)]=_0x5893f4,this[_0x53c52a(0x277)]=_0x57a7c7,this['_messageService']=_0x2d55e,this[_0x53c52a(0x39f)]=_0x267292,this[_0x53c52a(0x33f)]=_0x520454,this['_setupBeforeClosingHandler'](),this[_0x53c52a(0x2dc)]();}[_0x5e7409(0x38d)](){const _0x39aaa9=_0x5e7409;this[_0x39aaa9(0x361)](this[_0x39aaa9(0x2e3)]['registerBeforeClose'](()=>{const _0x7535a1=_0x39aaa9;if(this[_0x7535a1(0x22c)][_0x7535a1(0x2ed)][_0x7535a1(0x2f0)])return this[_0x7535a1(0x33f)]['t'](_0x7535a1(0x262));}));}[_0x5e7409(0x2dc)](){const _0x4c2a3d=_0x5e7409;this[_0x4c2a3d(0x361)](this[_0x4c2a3d(0x277)][_0x4c2a3d(0x3b8)][_0x4c2a3d(0x24c)](_0x1e5ae8=>{const _0x382b7f=_0x4c2a3d;_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x2cd)]&&this[_0x382b7f(0x33b)][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)]['Warning'],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x2b9))}),_0x1e5ae8['id']===u[_0x382b7f(0x204)]['CLOSE_ROOM']&&this['_messageService'][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)][_0x382b7f(0x37a)],'content':this['_localeService']['t'](_0x382b7f(0x17c))}),_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x16a)]&&this['_notificationService'][_0x382b7f(0x353)]({'title':this['_localeService']['t'](_0x382b7f(0x1de)),'content':this['_localeService']['t']('permission.content'),'type':_0x382b7f(0x227),'duration':0x0}),_0x1e5ae8['id']===u['CollaborationUIEventId'][_0x382b7f(0x14b)]&&this['_messageService'][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)]['Error'],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x1e5ae8[_0x382b7f(0x1dc)]+')'}),_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x2eb)]&&this[_0x382b7f(0x33b)]['show']({'type':T['MessageType'][_0x382b7f(0x37a)],'content':this['_localeService']['t'](_0x1e5ae8['data']||'')}),_0x1e5ae8['id']===u[_0x382b7f(0x204)][_0x382b7f(0x13d)]&&this[_0x382b7f(0x33b)][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)][_0x382b7f(0x37a)],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x230))}),_0x1e5ae8['id']===u['CollaborationUIEventId'][_0x382b7f(0x304)]&&this[_0x382b7f(0x33b)]['show']({'type':T[_0x382b7f(0x365)][_0x382b7f(0x393)],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x2f4))}),_0x1e5ae8['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x382b7f(0x33b)][_0x382b7f(0x353)]({'type':T[_0x382b7f(0x365)][_0x382b7f(0x393)],'content':this[_0x382b7f(0x33f)]['t'](_0x382b7f(0x182))});}));}};Z=Ft([y(0x0,O[_0x5e7409(0x1d2)]),y(0x1,u[_0x5e7409(0x137)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x5e7409(0x18c)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x5e7409(0x359)]))],Z);var jt=Object[_0x5e7409(0x3ca)],kt=(_0x39c175,_0x27b384,_0x492501,_0x483262)=>{const _0x44d4ab=_0x5e7409;for(var _0x402d05=_0x483262>0x1?void 0x0:_0x483262?jt(_0x27b384,_0x492501):_0x27b384,_0x45fbd0=_0x39c175[_0x44d4ab(0x23d)]-0x1,_0x38aa7d;_0x45fbd0>=0x0;_0x45fbd0--)(_0x38aa7d=_0x39c175[_0x45fbd0])&&(_0x402d05=_0x38aa7d(_0x402d05)||_0x402d05);return _0x402d05;},z=(_0x32acf4,_0x3ba361)=>(_0x4e4bd6,_0xbe8375)=>_0x3ba361(_0x4e4bd6,_0xbe8375,_0x32acf4);let Q=class extends a['Disposable']{constructor(_0x5c9f4e,_0x3999fa,_0x1b3d51,_0x2d4799){const _0x493b05=_0x5e7409;super(),_(this,_0x493b05(0x16c)),(this[_0x493b05(0x232)]=_0x5c9f4e,this[_0x493b05(0x2f9)]=_0x3999fa,this[_0x493b05(0x28b)]=_0x1b3d51,this[_0x493b05(0x315)]=_0x2d4799,this[_0x493b05(0x303)]());}['_init'](){const _0x56b2f0=_0x5e7409;this[_0x56b2f0(0x13a)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x56b2f0(0x1cf)]();}[_0x5e7409(0x1cf)](){const _0x2c1d4e=_0x5e7409;this[_0x2c1d4e(0x361)](this[_0x2c1d4e(0x315)][_0x2c1d4e(0x296)][_0x2c1d4e(0x24c)](_0x38696a=>{const _0x4b91a7=_0x2c1d4e;this['_memberID']=_0x38696a==null?void 0x0:_0x38696a[_0x4b91a7(0x259)];}));}[_0x5e7409(0x13a)](){const _0x24858c=_0x5e7409,_0x4c26cb=_0x23ba30=>{const _0x5e1d12=_0x4e0e;var _0x3a7688;this['_uploadLog'](_0x5e1d12(0x227),_0x5e1d12(0x2a2)+_0x23ba30[_0x5e1d12(0x298)]+_0x5e1d12(0x297)+_0x23ba30[_0x5e1d12(0x340)]+':'+_0x23ba30[_0x5e1d12(0x333)]+':'+_0x23ba30[_0x5e1d12(0x35c)]+'\x0a'+(((_0x3a7688=_0x23ba30[_0x5e1d12(0x227)])==null?void 0x0:_0x3a7688[_0x5e1d12(0x264)])||''));};window[_0x24858c(0x246)](_0x24858c(0x227),_0x4c26cb),this[_0x24858c(0x361)](()=>{const _0x1e0ff8=_0x24858c;window[_0x1e0ff8(0x1a9)]('error',_0x4c26cb);});}[_0x5e7409(0x19f)](){const _0x1cb035=_0x5e7409,_0x386881=_0x553952=>{const _0x3745e8=_0x4e0e;this[_0x3745e8(0x376)](_0x3745e8(0x227),_0x3745e8(0x36e)+_0x553952['reason']);};window['addEventListener'](_0x1cb035(0x1d7),_0x386881),this[_0x1cb035(0x361)](()=>{const _0x53806d=_0x1cb035;window[_0x53806d(0x1a9)](_0x53806d(0x1d7),_0x386881);});}['_monkeyPatchLogService'](){const _0x5f2a16=_0x5e7409,_0x1194af=this[_0x5f2a16(0x28b)][_0x5f2a16(0x227)][_0x5f2a16(0x1b9)](this['_logService']);this[_0x5f2a16(0x28b)][_0x5f2a16(0x227)]=(..._0x4a942c)=>{const _0x43beec=_0x5f2a16,_0x19bd95=_0x4a942c[_0x43beec(0x173)](_0x29f84d=>_0x29f84d instanceof Error?_0x29f84d[_0x43beec(0x298)]+'\x0a'+_0x29f84d['stack']:String(_0x29f84d))[_0x43beec(0x124)]('\x20');this[_0x43beec(0x376)](_0x43beec(0x227),_0x43beec(0x2a1)+_0x19bd95),_0x1194af(..._0x4a942c);},this[_0x5f2a16(0x361)](()=>{const _0x183400=_0x5f2a16;this['_logService'][_0x183400(0x227)]=_0x1194af;});}[_0x5e7409(0x376)](_0x150ab9,_0x50b963){const _0x1ba1a9=_0x5e7409;try{const _0x2b5a2f={'userId':this['_memberID'],'logLabel':_0x150ab9,'content':_0x50b963};this['_httpService'][_0x1ba1a9(0x355)](_0x1ba1a9(0x17f),{'body':_0x2b5a2f})[_0x1ba1a9(0x192)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x5e7409(0x10a)](a['Injector'])),z(0x1,a[_0x5e7409(0x10a)](x['HTTPService'])),z(0x2,a[_0x5e7409(0x314)]),z(0x3,a[_0x5e7409(0x10a)](u['CollaborationSessionService']))],Q);const Yt=_0x5e7409(0x1a6),Me={};var Ht=Object[_0x5e7409(0x3ca)],Wt=(_0x17c843,_0x5130fb,_0x55f4a0,_0x5617f4)=>{const _0x498367=_0x5e7409;for(var _0x545b60=_0x5617f4>0x1?void 0x0:_0x5617f4?Ht(_0x5130fb,_0x55f4a0):_0x5130fb,_0x49d79d=_0x17c843[_0x498367(0x23d)]-0x1,_0x25aa83;_0x49d79d>=0x0;_0x49d79d--)(_0x25aa83=_0x17c843[_0x49d79d])&&(_0x545b60=_0x25aa83(_0x545b60)||_0x545b60);return _0x545b60;},Ae=(_0x444d38,_0x561404)=>(_0x56b8b7,_0x59756e)=>_0x561404(_0x56b8b7,_0x59756e,_0x444d38);let ee=class{constructor(_0x4578cc,_0x1f3d34){const _0x44dd4c=_0x5e7409;this[_0x44dd4c(0x198)]=_0x4578cc,this[_0x44dd4c(0x11f)]=_0x1f3d34;}[_0x5e7409(0x368)](_0x84be15){const _0x1b4f29=_0x5e7409;this[_0x1b4f29(0x379)](_0x84be15),this[_0x1b4f29(0x2b7)](_0x84be15);}[_0x5e7409(0x102)](_0x4ee8fe){const _0x32f941=_0x5e7409,{unitID:_0x3b049f}=_0x4ee8fe,_0xd11412=this['_renderManagerService']['getRenderById'](_0x3b049f)[_0x32f941(0x1a1)](p['DocIMEInputManagerService']),{redoCache:_0xff173}=_0xd11412[_0x32f941(0x21a)]();if(_0xff173[_0x32f941(0x23d)]===0x0)return _0x4ee8fe;let _0x3c612f=a[_0x32f941(0x32c)]['deepClone'](_0x4ee8fe[_0x32f941(0x1f3)][0x0]);for(let _0xdd2bf4=0x0;_0xdd2bf4<_0xff173['length'];_0xdd2bf4++){const _0x5f30ef={'id':_0x32f941(0x221),'params':{..._0xff173[_0xdd2bf4]}},_0x17a5d3=this['_transformService'][_0x32f941(0x347)](_0x3c612f,_0x5f30ef,!0x1);if(g[_0x32f941(0x126)](_0x17a5d3))throw _0x17a5d3[_0x32f941(0x227)];_0x3c612f=_0x17a5d3[_0x32f941(0x29b)];}return{...a[_0x32f941(0x32c)][_0x32f941(0x1b5)](_0x4ee8fe),'mutations':[_0x3c612f]};}[_0x5e7409(0x379)](_0x128dfc){const _0x16d7e3=_0x5e7409,{unitID:_0x48146e}=_0x128dfc,_0x46ac30=this[_0x16d7e3(0x11f)]['getRenderById'](_0x48146e)[_0x16d7e3(0x1a1)](p[_0x16d7e3(0x18e)]),{undoCache:_0x333ad8,redoCache:_0x242242}=_0x46ac30[_0x16d7e3(0x21a)]();if(_0x333ad8[_0x16d7e3(0x23d)]===0x0||_0x242242[_0x16d7e3(0x23d)]===0x0)return;const _0xbe3e13=[],_0x3fc462=[];let _0x2e6bc2=a['Tools'][_0x16d7e3(0x1b5)](_0x128dfc[_0x16d7e3(0x1f3)][0x0]),_0x263058=a[_0x16d7e3(0x32c)]['deepClone'](_0x128dfc[_0x16d7e3(0x1f3)][0x0]);for(let _0x2217b8=_0x333ad8[_0x16d7e3(0x23d)]-0x1;_0x2217b8>=0x0;_0x2217b8--){const _0x4c9757={'id':_0x16d7e3(0x221),'params':{..._0x333ad8[_0x2217b8]}},_0x119474={'id':'doc.mutation.rich-text-editing','params':{..._0x242242[_0x2217b8]}},_0x23ae6f=this['_transformService'][_0x16d7e3(0x347)](_0x2e6bc2,_0x4c9757,!0x1),_0x482cc9=this[_0x16d7e3(0x198)]['transformMutation'](_0x263058,_0x119474,!0x1);if(g['isTransformMutationFailure'](_0x23ae6f))throw _0x23ae6f[_0x16d7e3(0x227)];if(g[_0x16d7e3(0x126)](_0x482cc9))throw _0x482cc9[_0x16d7e3(0x227)];_0xbe3e13[_0x16d7e3(0x255)](_0x23ae6f[_0x16d7e3(0x212)][_0x16d7e3(0x1b3)]),_0x3fc462[_0x16d7e3(0x255)](_0x482cc9[_0x16d7e3(0x212)][_0x16d7e3(0x1b3)]),_0x2e6bc2=_0x23ae6f[_0x16d7e3(0x29b)],_0x263058=_0x482cc9[_0x16d7e3(0x29b)];}_0x46ac30[_0x16d7e3(0x14c)]({'undoCache':_0xbe3e13,'redoCache':_0x3fc462});}[_0x5e7409(0x2b7)](_0x4b34de){const _0x190ab7=_0x5e7409,{unitID:_0x250c6e}=_0x4b34de,_0x40cd37=this[_0x190ab7(0x11f)][_0x190ab7(0x261)](_0x250c6e)['with'](p[_0x190ab7(0x18e)]),_0x3f75c5=_0x40cd37[_0x190ab7(0x223)]();if(_0x3f75c5==null)return;const _0x54c693=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b34de['unitID'],'actions':null,'textRanges':[_0x3f75c5]}}],_0x54b9cc=this[_0x190ab7(0x198)]['transformMutationsWithChangeset'](_0x4b34de,_0x54c693);if(!g[_0x190ab7(0x3ab)](_0x54b9cc))throw _0x54b9cc[_0x190ab7(0x227)];const _0x5288c8=_0x54b9cc[_0x190ab7(0x212)][0x0]['params'][_0x190ab7(0x320)];Array[_0x190ab7(0x105)](_0x5288c8)&&_0x5288c8[_0x190ab7(0x23d)]&&_0x40cd37[_0x190ab7(0x3c9)](_0x5288c8[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x5e7409(0x3ca)],Gt=(_0x544d4d,_0x186dd5,_0x2cd561,_0x511122)=>{const _0x1fea9f=_0x5e7409;for(var _0x291272=_0x511122>0x1?void 0x0:_0x511122?Vt(_0x186dd5,_0x2cd561):_0x186dd5,_0x546840=_0x544d4d[_0x1fea9f(0x23d)]-0x1,_0x254df8;_0x546840>=0x0;_0x546840--)(_0x254df8=_0x544d4d[_0x546840])&&(_0x291272=_0x254df8(_0x291272)||_0x291272);return _0x291272;},Ie=(_0x11e83c,_0x323f8e)=>(_0x2acf06,_0x106d8f)=>_0x323f8e(_0x2acf06,_0x106d8f,_0x11e83c);let te=class{constructor(_0x484480,_0x5a37be,_0x290016){const _0x1018d3=_0x5e7409;this['_injector']=_0x484480,this[_0x1018d3(0x198)]=_0x5a37be,this[_0x1018d3(0x190)]=_0x290016;}['transformStateCache'](_0x138541){const _0x245797=_0x5e7409;this[_0x245797(0x12e)](_0x138541);}['transformRemoteChangeset'](_0x114f32){const _0x4687f0=_0x5e7409,{unitID:_0x594665}=_0x114f32,{collaboration:_0x3006aa}=this[_0x4687f0(0x190)][_0x4687f0(0x222)](_0x594665);if(_0x3006aa[_0x4687f0(0x23d)]===0x0)return _0x114f32;let _0x50c899=a[_0x4687f0(0x32c)][_0x4687f0(0x1b5)](_0x114f32[_0x4687f0(0x1f3)][0x0]);for(let _0x32c331=0x0;_0x32c331<_0x3006aa['length'];_0x32c331++){const _0x1ff7c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3006aa[_0x32c331][_0x4687f0(0x2c4)],..._0x3006aa[_0x32c331][_0x4687f0(0x372)]}},_0x38fcf2=this[_0x4687f0(0x198)][_0x4687f0(0x347)](_0x50c899,_0x1ff7c7,!0x1);if(g['isTransformMutationFailure'](_0x38fcf2))throw _0x38fcf2[_0x4687f0(0x227)];_0x50c899=_0x38fcf2[_0x4687f0(0x29b)];}return{...a['Tools']['deepClone'](_0x114f32),'mutations':[_0x50c899]};}[_0x5e7409(0x12e)](_0xab3387){const _0x6603e0=_0x5e7409,{unitID:_0x1e827f}=_0xab3387,{history:_0x436111,collaboration:_0x225831}=this[_0x6603e0(0x190)]['getStateCache'](_0x1e827f);if(_0x436111['length']===0x0&&_0x225831[_0x6603e0(0x23d)]===0x0)return;const _0x1adc68=[],_0x49adde=[];let _0x296959=a[_0x6603e0(0x32c)][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]),_0x31200d=a[_0x6603e0(0x32c)][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]);for(let _0x33dc36=_0x436111['length']-0x1;_0x33dc36>=0x0;_0x33dc36--){const _0x214015={'id':_0x6603e0(0x221),'params':{'unitId':_0x436111[_0x33dc36][_0x6603e0(0x2c4)],..._0x436111[_0x33dc36][_0x6603e0(0x27f)]}},_0xf18f41={'id':_0x6603e0(0x221),'params':{'unitId':_0x436111[_0x33dc36]['unitId'],..._0x436111[_0x33dc36][_0x6603e0(0x372)]}},_0x3635d8=this['_transformService'][_0x6603e0(0x347)](_0x296959,_0x214015,!0x1),_0x36166f=this[_0x6603e0(0x198)][_0x6603e0(0x347)](_0x31200d,_0xf18f41,!0x1);if(g['isTransformMutationFailure'](_0x3635d8))throw _0x3635d8[_0x6603e0(0x227)];if(g[_0x6603e0(0x126)](_0x36166f))throw _0x36166f[_0x6603e0(0x227)];_0x1adc68[_0x6603e0(0x255)]({..._0x436111[_0x33dc36],'undoState':_0x3635d8[_0x6603e0(0x212)][_0x6603e0(0x1b3)],'redoState':_0x36166f[_0x6603e0(0x212)]['params']}),_0x296959=_0x3635d8[_0x6603e0(0x29b)],_0x31200d=_0x36166f['m1Prime'];}_0x296959=a['Tools'][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]),_0x31200d=a[_0x6603e0(0x32c)][_0x6603e0(0x1b5)](_0xab3387[_0x6603e0(0x1f3)][0x0]);for(let _0x17c976=_0x225831['length']-0x1;_0x17c976>=0x0;_0x17c976--){const _0x1dfe9c={'id':_0x6603e0(0x221),'params':{'unitId':_0x225831[_0x17c976][_0x6603e0(0x2c4)],..._0x225831[_0x17c976][_0x6603e0(0x27f)]}},_0x41e93a={'id':_0x6603e0(0x221),'params':{'unitId':_0x225831[_0x17c976][_0x6603e0(0x2c4)],..._0x225831[_0x17c976]['redoState']}},_0x898da4=this[_0x6603e0(0x198)]['transformMutation'](_0x296959,_0x1dfe9c,!0x1),_0x44b4b5=this[_0x6603e0(0x198)][_0x6603e0(0x347)](_0x31200d,_0x41e93a,!0x1);if(g[_0x6603e0(0x126)](_0x898da4))throw _0x898da4[_0x6603e0(0x227)];if(g['isTransformMutationFailure'](_0x44b4b5))throw _0x44b4b5['error'];_0x49adde['unshift']({..._0x225831[_0x17c976],'undoState':_0x898da4['m2Prime'][_0x6603e0(0x1b3)],'redoState':_0x44b4b5[_0x6603e0(0x212)][_0x6603e0(0x1b3)]}),_0x296959=_0x898da4[_0x6603e0(0x29b)],_0x31200d=_0x44b4b5['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x1e827f,{'history':_0x1adc68,'collaboration':_0x49adde});}};te=Gt([Ie(0x0,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),Ie(0x1,g[_0x5e7409(0x3ae)]),Ie(0x2,a[_0x5e7409(0x10a)](p[_0x5e7409(0x127)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x16a8a0,_0x2c284d,_0x4131e9,_0x246970)=>{const _0x57fc2d=_0x5e7409;for(var _0x7423aa=_0x246970>0x1?void 0x0:_0x246970?Xt(_0x2c284d,_0x4131e9):_0x2c284d,_0x310331=_0x16a8a0[_0x57fc2d(0x23d)]-0x1,_0x216662;_0x310331>=0x0;_0x310331--)(_0x216662=_0x16a8a0[_0x310331])&&(_0x7423aa=_0x216662(_0x7423aa)||_0x7423aa);return _0x7423aa;},Pe=(_0x1ee996,_0x3248dc)=>(_0x5479a0,_0x3d286d)=>_0x3248dc(_0x5479a0,_0x3d286d,_0x1ee996);let se=class{constructor(_0x77a54f,_0x25fd30){const _0x58ce74=_0x5e7409;this[_0x58ce74(0x232)]=_0x77a54f,this[_0x58ce74(0x198)]=_0x25fd30;}[_0x5e7409(0x243)](_0x5d9283){const _0x4d38b6=_0x5e7409;var _0x1511b5;const _0x1cd5fb=this[_0x4d38b6(0x232)][_0x4d38b6(0x22b)](V['DocSelectionManagerService']),_0xd7214=(_0x1511b5=_0x1cd5fb[_0x4d38b6(0x363)]())!=null?_0x1511b5:[];if(_0xd7214[_0x4d38b6(0x23d)]===0x0)return;const _0x44b0b8=_0x5d9283[_0x4d38b6(0x252)],_0x273c3b=[{'id':_0x4d38b6(0x221),'params':{'unitId':_0x44b0b8,'actions':null,'textRanges':_0xd7214}}],_0x5c1726=this[_0x4d38b6(0x198)]['transformMutationsWithChangeset'](_0x5d9283,_0x273c3b);if(!g['isTransformMutationsWithChangesetSuccess'](_0x5c1726))throw _0x5c1726['error'];const _0x340ac7=_0x5c1726[_0x4d38b6(0x212)][0x0][_0x4d38b6(0x1b3)]['textRanges'];Array[_0x4d38b6(0x105)](_0x340ac7)&&_0x340ac7['length']&&_0x1cd5fb['replaceDocRanges'](_0x340ac7,{'unitId':_0x44b0b8,'subUnitId':_0x44b0b8},!0x1);}};se=Kt([Pe(0x0,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),Pe(0x1,g['ITransformService'])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x5de539,_0x3462f7,_0x1eead0,_0x36c79f)=>{for(var _0x5d2a48=_0x36c79f>0x1?void 0x0:_0x36c79f?qt(_0x3462f7,_0x1eead0):_0x3462f7,_0x1cfa39=_0x5de539['length']-0x1,_0x1f20a1;_0x1cfa39>=0x0;_0x1cfa39--)(_0x1f20a1=_0x5de539[_0x1cfa39])&&(_0x5d2a48=_0x1f20a1(_0x5d2a48)||_0x5d2a48);return _0x5d2a48;},N=(_0x176e77,_0x1dbca7)=>(_0x3ba096,_0x528800)=>_0x1dbca7(_0x3ba096,_0x528800,_0x176e77);let ie=class extends a[_0x5e7409(0x3c4)]{constructor(_0x3d5f29,_0x538e71,_0x2479c7,_0x1f692e,_0x4f21e3,_0x4c2341,_0x415376,_0x181289){const _0x20d579=_0x5e7409;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x20d579(0x3d1)][_0x20d579(0x257)])),(this[_0x20d579(0x190)]=_0x3d5f29,this[_0x20d579(0x3b0)]=_0x538e71,this[_0x20d579(0x24e)]=_0x2479c7,this[_0x20d579(0x339)]=_0x1f692e,this['_docTransformSelectionsService']=_0x4f21e3,this[_0x20d579(0x2b5)]=_0x4c2341,this[_0x20d579(0x33b)]=_0x415376,this[_0x20d579(0x33f)]=_0x181289,this[_0x20d579(0x3b7)]());}[_0x5e7409(0x3b7)](){const _0x4af648=_0x5e7409;this[_0x4af648(0x361)](this[_0x4af648(0x3b0)]['entityInit$']['subscribe'](_0x247573=>{const _0x443526=_0x4af648,_0x4ab0ad=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x2ac68d=>{const _0x3d118f=_0x4e0e;if(_0x2ac68d==null)return;const {unitId:_0x34a74d,redoState:_0x5ca3ec,commandId:_0x243fb9}=_0x2ac68d;if(_0x34a74d!==_0x247573[_0x3d118f(0x252)])return;const _0x204bd2={'id':_0x243fb9,'type':a['CommandType'][_0x3d118f(0x214)],'params':{'unitId':_0x34a74d,'actions':_0x5ca3ec[_0x3d118f(0x30f)],'textRanges':null}};_0x247573[_0x3d118f(0x200)](_0x204bd2);});if(_0x247573[_0x443526(0x361)](_0x4ab0ad),_0x247573 instanceof u[_0x443526(0x167)]){const _0x3f155a={'onTransformIME':_0x2b214d=>this[_0x443526(0x24e)]['transformIMECache'](_0x2b214d),'onTransformState':_0x1d70ed=>this[_0x443526(0x339)][_0x443526(0x1c5)](_0x1d70ed),'onTransformSelections':_0x1eaf8e=>this[_0x443526(0x235)]['transformSelections'](_0x1eaf8e),'onSyncEditingCollabCursor':_0xa20a0c=>this[_0x443526(0x2b5)][_0x443526(0x3ac)](_0xa20a0c),'onTransformRemoteChangesetByIMECache':_0x4f2471=>this[_0x443526(0x24e)]['transformRemoteChangeset'](_0x4f2471),'onTransformRemoteChangesetByStateCache':_0x4b5ac9=>this['_docTransformStateCacheService'][_0x443526(0x102)](_0x4b5ac9)};_0x247573[_0x443526(0x348)](_0x3f155a);}}));}};ie=zt([N(0x0,a[_0x5e7409(0x10a)](p[_0x5e7409(0x127)])),N(0x1,a[_0x5e7409(0x10a)](u[_0x5e7409(0x1df)])),N(0x2,a[_0x5e7409(0x10a)](ee)),N(0x3,a[_0x5e7409(0x10a)](te)),N(0x4,a[_0x5e7409(0x10a)](se)),N(0x5,a[_0x5e7409(0x10a)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x5e7409(0x10a)](a['LocaleService']))],ie);var G=(_0x2cda95=>(_0x2cda95[_0x2cda95[_0x5e7409(0x3a2)]=0x0]=_0x5e7409(0x3a2),_0x2cda95[_0x2cda95['OK']=0x1]='OK',_0x2cda95[_0x2cda95[_0x5e7409(0x30e)]=0x2]=_0x5e7409(0x30e),_0x2cda95[_0x2cda95[_0x5e7409(0x16a)]=0x3]=_0x5e7409(0x16a),_0x2cda95[_0x2cda95[_0x5e7409(0x33c)]=0x4]=_0x5e7409(0x33c),_0x2cda95[_0x2cda95[_0x5e7409(0x23c)]=0x5]='UNAUTHENTICATED',_0x2cda95[_0x2cda95[_0x5e7409(0x2bf)]=0x6]=_0x5e7409(0x2bf),_0x2cda95[_0x2cda95[_0x5e7409(0x1fe)]=0x7]=_0x5e7409(0x1fe),_0x2cda95[_0x2cda95[_0x5e7409(0x388)]=0x8]=_0x5e7409(0x388),_0x2cda95[_0x2cda95['COMPLETION_FINISHED']=0x9]=_0x5e7409(0x176),_0x2cda95[_0x2cda95[_0x5e7409(0x37c)]=0xa]='LOGIN_FAILED',_0x2cda95[_0x2cda95[_0x5e7409(0x165)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2cda95[_0x2cda95[_0x5e7409(0x100)]=0xc]=_0x5e7409(0x100),_0x2cda95[_0x2cda95['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x5e7409(0x23e),_0x2cda95[_0x2cda95['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x5e7409(0x143),_0x2cda95[_0x2cda95[_0x5e7409(0x2da)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x2cda95[_0x2cda95[_0x5e7409(0x390)]=0x10]=_0x5e7409(0x390),_0x2cda95[_0x2cda95['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x5e7409(0x3a4),_0x2cda95[_0x2cda95[_0x5e7409(0x328)]=0x65]=_0x5e7409(0x328),_0x2cda95[_0x2cda95[_0x5e7409(0x136)]=0xc9]='USER_NOT_FOUND',_0x2cda95[_0x2cda95['USER_IS_ANONYMOUS']=0xca]=_0x5e7409(0x397),_0x2cda95[_0x2cda95['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5e7409(0x1c4),_0x2cda95[_0x2cda95['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5e7409(0x20a),_0x2cda95[_0x2cda95[_0x5e7409(0x13e)]=0x1772]=_0x5e7409(0x13e),_0x2cda95[_0x2cda95[_0x5e7409(0x272)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2cda95[_0x2cda95['APPLY_REJECT']=0x1b59]=_0x5e7409(0x16d),_0x2cda95[_0x2cda95[_0x5e7409(0x38c)]=0x1b5a]=_0x5e7409(0x38c),_0x2cda95[_0x2cda95[_0x5e7409(0x341)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2cda95[_0x2cda95['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5e7409(0x10b),_0x2cda95[_0x2cda95[_0x5e7409(0x36b)]=0x1b5d]=_0x5e7409(0x36b),_0x2cda95[_0x2cda95[_0x5e7409(0x228)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2cda95[_0x2cda95['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5e7409(0x203),_0x2cda95[_0x2cda95[_0x5e7409(0x150)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2cda95[_0x2cda95[_0x5e7409(0x2e6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2cda95[_0x2cda95['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5e7409(0x1b2),_0x2cda95[_0x2cda95[_0x5e7409(0x29f)]=0x232d]=_0x5e7409(0x29f),_0x2cda95[_0x2cda95['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5e7409(0x125),_0x2cda95[_0x2cda95[_0x5e7409(0x112)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2cda95[_0x2cda95['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5e7409(0x24a),_0x2cda95[_0x2cda95['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5e7409(0x1c2),_0x2cda95[_0x2cda95[_0x5e7409(0x179)]=0x271a]=_0x5e7409(0x179),_0x2cda95[_0x2cda95['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x5e7409(0x21e),_0x2cda95[_0x2cda95['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5e7409(0x1ec),_0x2cda95[_0x2cda95[_0x5e7409(0x36f)]=0x271d]=_0x5e7409(0x36f),_0x2cda95[_0x2cda95['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x5e7409(0x188),_0x2cda95[_0x2cda95[_0x5e7409(0x154)]=0x271f]=_0x5e7409(0x154),_0x2cda95[_0x2cda95['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5e7409(0x1b0),_0x2cda95[_0x2cda95[_0x5e7409(0x2a5)]=0x2af9]=_0x5e7409(0x2a5),_0x2cda95[_0x2cda95['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2cda95[_0x2cda95[_0x5e7409(0x38f)]=0x2ee2]=_0x5e7409(0x38f),_0x2cda95[_0x2cda95[_0x5e7409(0x291)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2cda95[_0x2cda95[_0x5e7409(0x21d)]=0x2ee4]=_0x5e7409(0x21d),_0x2cda95[_0x2cda95['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5e7409(0x130),_0x2cda95[_0x2cda95['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x5e7409(0x2d0),_0x2cda95[_0x2cda95[_0x5e7409(0x394)]=0x32ca]=_0x5e7409(0x394),_0x2cda95[_0x2cda95[_0x5e7409(0x1c0)]=0x32cb]=_0x5e7409(0x1c0),_0x2cda95[_0x2cda95[_0x5e7409(0x118)]=0x36b1]=_0x5e7409(0x118),_0x2cda95[_0x2cda95[_0x5e7409(0x171)]=0x36b2]=_0x5e7409(0x171),_0x2cda95[_0x2cda95[_0x5e7409(0x20f)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x2cda95[_0x2cda95[_0x5e7409(0x39d)]=0x36b4]=_0x5e7409(0x39d),_0x2cda95[_0x2cda95[_0x5e7409(0x311)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2cda95[_0x2cda95[_0x5e7409(0x220)]=0x3716]=_0x5e7409(0x220),_0x2cda95[_0x2cda95[_0x5e7409(0x1f9)]=0x3717]=_0x5e7409(0x1f9),_0x2cda95[_0x2cda95[_0x5e7409(0x242)]=0x37dd]=_0x5e7409(0x242),_0x2cda95[_0x2cda95[_0x5e7409(0x2f5)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x2cda95[_0x2cda95[_0x5e7409(0x1c7)]=0x3a9a]=_0x5e7409(0x1c7),_0x2cda95[_0x2cda95['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x5e7409(0x2a6),_0x2cda95[_0x2cda95[_0x5e7409(0x120)]=0x3a9c]=_0x5e7409(0x120),_0x2cda95[_0x2cda95[_0x5e7409(0x2a9)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x2cda95[_0x2cda95[_0x5e7409(0x2e7)]=0x3a9e]=_0x5e7409(0x2e7),_0x2cda95[_0x2cda95['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2cda95[_0x2cda95['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x5e7409(0x1dd),_0x2cda95[_0x2cda95[_0x5e7409(0x373)]=-0x1]=_0x5e7409(0x373),_0x2cda95))(G||{});function Jt(_0x3233cf){const _0x36d062=_0x5e7409;var _0x25edae,_0x5c0726;const _0x29efb3=(_0x25edae=_0x3233cf[_0x36d062(0x132)])==null?void 0x0:_0x25edae[_0x36d062(0x189)],_0x48714e=((_0x5c0726=_0x3233cf['stageInfo'])==null?void 0x0:_0x5c0726['totalFormulasToCalculate'])||0x0;return _0x29efb3===B[_0x36d062(0x2c1)][_0x36d062(0x2cc)]&&_0x48714e>0x0;}function Zt(_0x27bc63){const _0x3c2e80=_0x5e7409;return _0x27bc63[_0x3c2e80(0x2e5)]===B['FormulaExecutedStateType'][_0x3c2e80(0x175)];}var Qt=Object[_0x5e7409(0x3ca)],es=(_0x3e6d13,_0xf9497a,_0x18a963,_0x21da89)=>{const _0x2626dd=_0x5e7409;for(var _0x35698c=_0x21da89>0x1?void 0x0:_0x21da89?Qt(_0xf9497a,_0x18a963):_0xf9497a,_0x94786f=_0x3e6d13[_0x2626dd(0x23d)]-0x1,_0x3bc21a;_0x94786f>=0x0;_0x94786f--)(_0x3bc21a=_0x3e6d13[_0x94786f])&&(_0x35698c=_0x3bc21a(_0x35698c)||_0x35698c);return _0x35698c;},L=(_0x46675d,_0x200c36)=>(_0x44bdd3,_0x100707)=>_0x200c36(_0x44bdd3,_0x100707,_0x46675d);const ts=_0x5e7409(0x3c0),ss='/universer-api/license/formula/limit/start',is=_0x5e7409(0x123);let ne=class extends a[_0x5e7409(0x3c4)]{constructor(_0x54cba6,_0x4271cb,_0x2788fd,_0x381350,_0x4a5f35,_0x9bc789,_0x55c030){const _0x12a492=_0x5e7409;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x12a492(0x17b),0x0),_(this,_0x12a492(0x1d9),[]),_(this,_0x12a492(0x1ac),0x0),(this[_0x12a492(0x33b)]=_0x54cba6,this[_0x12a492(0x2e9)]=_0x4271cb,this[_0x12a492(0x1e9)]=_0x2788fd,this[_0x12a492(0x2f9)]=_0x381350,this[_0x12a492(0x336)]=_0x4a5f35,this['_logService']=_0x9bc789,this['_localeService']=_0x55c030,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x329d03=_0x5e7409;this[_0x329d03(0x361)](this[_0x329d03(0x2e9)]['beforeCommandExecuted']((_0x256d2b,_0x2d9c61)=>{const _0x4a7ae8=_0x329d03;var _0x60dd3f;if(_0x256d2b['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x485e3a=_0x256d2b[_0x4a7ae8(0x1b3)];if(!this['_hasFormulaInDirtyRanges']((_0x60dd3f=_0x485e3a[_0x4a7ae8(0x3b1)])!=null?_0x60dd3f:[]))return;if(!this[_0x4a7ae8(0x321)]())throw this['_checkAndWaitForCalculationPermission'](_0x256d2b,_0x2d9c61),this[_0x4a7ae8(0x2d1)](),new a['CanceledError']();})),this[_0x329d03(0x361)](this[_0x329d03(0x2e9)][_0x329d03(0x3a7)]((_0x38e71b,_0x52cb55)=>{const _0x37d289=_0x329d03;if(_0x38e71b['id']!==B[_0x37d289(0x209)]['id'])return;const _0xc73f80=_0x38e71b[_0x37d289(0x1b3)];if(Jt(_0xc73f80)){const _0x604111=a[_0x37d289(0x17d)]();this['_taskIds']['push'](_0x604111),this[_0x37d289(0x38b)](_0x604111);}else{if(Zt(_0xc73f80)&&this[_0x37d289(0x1d9)][_0x37d289(0x23d)]>0x0){const _0x47f92e=this[_0x37d289(0x1d9)][_0x37d289(0x1cb)]();this[_0x37d289(0x3cf)](_0x47f92e);}}}));}[_0x5e7409(0x3a1)](){const _0x47e1e3=_0x5e7409;super[_0x47e1e3(0x3a1)](),this[_0x47e1e3(0x155)](),this[_0x47e1e3(0x1d9)]=[],this[_0x47e1e3(0x17b)]=0x0,this[_0x47e1e3(0x2b4)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x5e7409(0x382)](_0x2a0dd4,_0x401c6b){const _0x156491=_0x5e7409;for(let _0x4e0509=0x0;_0x4e0509<0x1e;_0x4e0509++)try{if(await this['_getFormulaLimitStatus'](),this[_0x156491(0x321)]()){this['_applyCommand'](_0x2a0dd4,_0x401c6b),this['_messageService']['show']({'content':this[_0x156491(0x33f)]['t'](_0x156491(0x114)),'type':T[_0x156491(0x365)][_0x156491(0x38a)]});return;}await new Promise(_0x367ea5=>{const _0x22872f=_0x156491;this[_0x22872f(0x121)]=window[_0x22872f(0x1b8)](_0x367ea5,0x3e8);});}catch(_0x1db757){this['_logService'][_0x156491(0x227)](_0x1db757);}this['_messageService'][_0x156491(0x353)]({'content':this[_0x156491(0x33f)]['t'](_0x156491(0x26e)),'type':T[_0x156491(0x365)]['Error']});}[_0x5e7409(0x35a)](_0x567c33,_0x32049a){const _0x5e1da3=_0x5e7409;try{this[_0x5e1da3(0x2e9)]['executeCommand'](_0x567c33['id'],_0x567c33[_0x5e1da3(0x1b3)],_0x32049a);}catch(_0x4b3f00){this[_0x5e1da3(0x28b)][_0x5e1da3(0x227)](_0x4b3f00);}}['_setFormulaLimitStatus'](_0x3bd932,_0x41c6a2){const _0x285afb=_0x5e7409;_0x41c6a2<this[_0x285afb(0x1ac)]||(this[_0x285afb(0x1ac)]=_0x41c6a2,this[_0x285afb(0x2b4)]=Number['parseInt'](_0x3bd932[_0x285afb(0x282)]),this[_0x285afb(0x17b)]=Number[_0x285afb(0x178)](_0x3bd932['currentUsage']));}async[_0x5e7409(0x38b)](_0x2bcf11){const _0x557261=_0x5e7409;var _0x53cc44,_0x4b0a87;const _0x2e4464=Date['now']();try{const _0x42843e=((_0x53cc44=this[_0x557261(0x1e9)][_0x557261(0x2e8)](u[_0x557261(0x1e7)]))==null?void 0x0:_0x53cc44['startFormulaLimitUrl'])||ss,_0x4a3a81=(await this['_httpService'][_0x557261(0x355)](_0x42843e,{'body':JSON[_0x557261(0x2bd)]({'taskId':_0x2bcf11})}))[_0x557261(0x115)];if(((_0x4b0a87=_0x4a3a81['error'])==null?void 0x0:_0x4b0a87[_0x557261(0x358)])!==G['OK'])return;this[_0x557261(0x381)](_0x4a3a81['limitInfo'],_0x2e4464);}catch(_0x39b957){this[_0x557261(0x28b)][_0x557261(0x227)](_0x39b957);}}async[_0x5e7409(0x162)](_0x4d8785){const _0x1e4ac7=_0x5e7409;var _0x51dcb7,_0x596161;const _0x1029b4=Date['now']();try{const _0x28ca85=((_0x51dcb7=this[_0x1e4ac7(0x1e9)][_0x1e4ac7(0x2e8)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x51dcb7[_0x1e4ac7(0x2d7)])||ts,_0x34ddbf=_0x4d8785?_0x28ca85+_0x1e4ac7(0x208)+encodeURIComponent(_0x4d8785):_0x28ca85,_0x60ed86=(await this[_0x1e4ac7(0x2f9)][_0x1e4ac7(0x22b)](_0x34ddbf))['body'];if(((_0x596161=_0x60ed86[_0x1e4ac7(0x227)])==null?void 0x0:_0x596161[_0x1e4ac7(0x358)])!==G['OK'])return;this[_0x1e4ac7(0x381)](_0x60ed86[_0x1e4ac7(0x34a)],_0x1029b4);}catch(_0x22a23b){this[_0x1e4ac7(0x28b)][_0x1e4ac7(0x227)](_0x22a23b);}}async['_releaseCalculationLimit'](_0x4cca84){const _0x2147ba=_0x5e7409;var _0x268ba0,_0x283662;const _0x16ba46=Date[_0x2147ba(0x305)]();try{const _0x3b8562=((_0x268ba0=this[_0x2147ba(0x1e9)][_0x2147ba(0x2e8)](u[_0x2147ba(0x1e7)]))==null?void 0x0:_0x268ba0[_0x2147ba(0x2c3)])||is,_0x180c3f=(await this[_0x2147ba(0x2f9)][_0x2147ba(0x355)](_0x3b8562,{'body':JSON[_0x2147ba(0x2bd)]({'taskId':_0x4cca84})}))[_0x2147ba(0x115)];if(((_0x283662=_0x180c3f[_0x2147ba(0x227)])==null?void 0x0:_0x283662[_0x2147ba(0x358)])!==G['OK'])return;this[_0x2147ba(0x381)](_0x180c3f[_0x2147ba(0x34a)],_0x16ba46);}catch(_0x45da2d){this['_logService']['error'](_0x45da2d);}}['_checkCalculationAvailable'](){const _0x2e1eec=_0x5e7409;return this[_0x2e1eec(0x2b4)]===0x0?!0x0:this[_0x2e1eec(0x2b4)]-this[_0x2e1eec(0x17b)]>0x0;}[_0x5e7409(0x155)](){const _0x1510ff=_0x5e7409;this[_0x1510ff(0x121)]&&(clearTimeout(this[_0x1510ff(0x121)]),this['_pollingInterval']=null);}[_0x5e7409(0x2d1)](){const _0x1deb9f=_0x5e7409;this[_0x1deb9f(0x33b)][_0x1deb9f(0x353)]({'content':this['_localeService']['t'](_0x1deb9f(0x2fc)),'type':T[_0x1deb9f(0x365)][_0x1deb9f(0x2df)]});}[_0x5e7409(0x1e0)](_0x38c8af){const _0x90603d=_0x5e7409;for(const _0x4904c3 of _0x38c8af){const {unitId:_0x41ac8d,sheetId:_0x35d4e2,range:_0x34f16e}=_0x4904c3,_0x21fd30=this[_0x90603d(0x336)][_0x90603d(0x2d8)](_0x41ac8d);if(!_0x21fd30)continue;const _0x40a261=_0x21fd30['getSheetBySheetId'](_0x35d4e2);if(!_0x40a261)continue;const _0x117dd0=_0x40a261[_0x90603d(0x258)]();for(let _0xba8ed4=_0x34f16e[_0x90603d(0x35f)];_0xba8ed4<=_0x34f16e['endRow'];_0xba8ed4++)for(let _0x539893=_0x34f16e['startColumn'];_0x539893<=_0x34f16e[_0x90603d(0x1c1)];_0x539893++){const _0x49c880=_0x117dd0[_0x90603d(0x201)](_0xba8ed4,_0x539893);if(_0x49c880&&(a['isFormulaString'](_0x49c880['f'])||a[_0x90603d(0x265)](_0x49c880['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x5e7409(0x18c)])),L(0x1,a[_0x5e7409(0x366)]),L(0x2,a['IConfigService']),L(0x3,a['Inject'](x['HTTPService'])),L(0x4,a[_0x5e7409(0x119)]),L(0x5,a[_0x5e7409(0x314)]),L(0x6,a[_0x5e7409(0x10a)](a['LocaleService']))],ne);var ns=Object[_0x5e7409(0x3ca)],rs=(_0x35bbd2,_0x894b0f,_0x406f65,_0x4cfedf)=>{const _0x50e067=_0x5e7409;for(var _0x19b22b=_0x4cfedf>0x1?void 0x0:_0x4cfedf?ns(_0x894b0f,_0x406f65):_0x894b0f,_0x5704dc=_0x35bbd2[_0x50e067(0x23d)]-0x1,_0x101ee0;_0x5704dc>=0x0;_0x5704dc--)(_0x101ee0=_0x35bbd2[_0x5704dc])&&(_0x19b22b=_0x101ee0(_0x19b22b)||_0x19b22b);return _0x19b22b;},de=(_0x52f3a0,_0x5447f6)=>(_0x3eb257,_0x10d95d)=>_0x5447f6(_0x3eb257,_0x10d95d,_0x52f3a0);let pe=class extends a[_0x5e7409(0x3c4)]{constructor(_0x155a52,_0x3c24ee,_0x52c689){const _0x54125c=_0x5e7409;super(),_(this,_0x54125c(0x39c),new Map()),_(this,_0x54125c(0x20e),new Map()),_(this,'_disabled',!0x1),(this[_0x54125c(0x1e9)]=_0x155a52,this[_0x54125c(0x294)]=_0x3c24ee,this[_0x54125c(0x370)]=_0x52c689);}['disableLocalCache'](){const _0x554f60=_0x5e7409;this[_0x554f60(0x289)]=!0x0;}[_0x5e7409(0x12d)](){const _0x4a74ce=_0x5e7409;this[_0x4a74ce(0x289)]=!0x1;}get[_0x5e7409(0x2ed)](){const _0x19dc06=_0x5e7409;return this[_0x19dc06(0x20e)];}[_0x5e7409(0x3a1)](){const _0x1cc16a=_0x5e7409;this[_0x1cc16a(0x33e)]()[_0x1cc16a(0x147)](()=>super[_0x1cc16a(0x3a1)]());}async[_0x5e7409(0x3b2)](_0x2f9a9f){const _0x380808=_0x5e7409;return this[_0x380808(0x289)]?null:this['_localStorageService']['getItem'](u[_0x380808(0x396)](_0x2f9a9f));}async[_0x5e7409(0x225)](_0x50da1a,_0xf12902){const _0x299c37=_0x5e7409;return!!this[_0x299c37(0x294)][_0x299c37(0x2a7)](_0x50da1a,_0xf12902);}['updateOfflineData'](_0xe42ff7,_0x205c1e,_0x19e916,_0x2770da){const _0x4ade20=_0x5e7409,_0x206f1b=this[_0x4ade20(0x370)]['getCurrentRevOfUnit'](_0xe42ff7);this[_0x4ade20(0x39c)][_0x4ade20(0x15c)](_0xe42ff7,{'unitID':_0xe42ff7,'type':_0x205c1e,'awaitingChangeset':_0x19e916,'mutations':_0x2770da,'rev':_0x206f1b}),this['_saveTaskMap'][_0x4ade20(0x2ac)](_0xe42ff7)||this[_0x4ade20(0x2b2)](_0xe42ff7);}[_0x5e7409(0x2b2)](_0x4fba07){const _0x222b4e=_0x5e7409,_0x296142=this[_0x222b4e(0x134)]();_0x296142===0x0?this['_saveCache'](_0x4fba07):this['_saveTaskMap']['set'](_0x4fba07,setTimeout(()=>this[_0x222b4e(0x233)](_0x4fba07),_0x296142));}['_getSaveTimeout'](){const _0x3848d1=_0x5e7409;var _0x585fc5;return(_0x585fc5=this[_0x3848d1(0x1e9)][_0x3848d1(0x2e8)](u[_0x3848d1(0x3a6)]))!=null?_0x585fc5:u[_0x3848d1(0x229)];}['_saveCache'](_0x9c2248){const _0x5d61d9=_0x5e7409,_0x198038=this['_saveTaskMap']['get'](_0x9c2248);return _0x198038!==void 0x0&&window[_0x5d61d9(0x323)](_0x198038),this[_0x5d61d9(0x294)][_0x5d61d9(0x2a7)](u[_0x5d61d9(0x396)](_0x9c2248),this[_0x5d61d9(0x39c)][_0x5d61d9(0x22b)](_0x9c2248))[_0x5d61d9(0x147)](()=>this[_0x5d61d9(0x20e)]['delete'](_0x9c2248));}async[_0x5e7409(0x33e)](){const _0x44891f=_0x5e7409,_0x4626a0=[];this[_0x44891f(0x20e)][_0x44891f(0x2f8)]((_0x21a2a7,_0x1e0c5c)=>{const _0x383757=_0x44891f;window[_0x383757(0x323)](_0x21a2a7),_0x4626a0[_0x383757(0x2e2)](this[_0x383757(0x233)](_0x1e0c5c)[_0x383757(0x147)](()=>{const _0x31a215=_0x383757;this[_0x31a215(0x20e)][_0x31a215(0x35b)](_0x1e0c5c);}));}),await Promise[_0x44891f(0x367)](_0x4626a0);}};pe=rs([de(0x0,a[_0x5e7409(0x23a)]),de(0x1,a[_0x5e7409(0x2fb)]),de(0x2,a[_0x5e7409(0x10a)](g[_0x5e7409(0x2e1)]))],pe);class ke extends a[_0x5e7409(0x2fe)]{constructor(){const _0x3bff64=_0x5e7409;super(),_(this,_0x3bff64(0x1bb)),this[_0x3bff64(0x1bb)]=I['fromEvent'](window,_0x3bff64(0x30a))['pipe'](I[_0x3bff64(0x2a0)](this[_0x3bff64(0x33d)]),I[_0x3bff64(0x2d4)](0x1),I[_0x3bff64(0x3d0)](void 0x0));}[_0x5e7409(0x14f)](_0x3d3f04,_0x193e72,_0x419878=!0x1){const _0x34b6a0=_0x5e7409,_0x180ec0=new URL(window[_0x34b6a0(0x131)][_0x34b6a0(0x21b)]);_0x180ec0[_0x34b6a0(0x159)][_0x34b6a0(0x15c)](_0x3d3f04,_0x193e72),_0x419878?window['history'][_0x34b6a0(0x10e)]('','',_0x180ec0[_0x34b6a0(0x245)]()):window[_0x34b6a0(0x218)][_0x34b6a0(0x1bd)]('','',_0x180ec0[_0x34b6a0(0x245)]());}[_0x5e7409(0x1c6)](_0xced10c,_0x16e5da=!0x1){const _0x269786=_0x5e7409,_0x2d4199=new URL(window[_0x269786(0x131)][_0x269786(0x21b)]);_0x2d4199['searchParams']['delete'](_0xced10c),_0x16e5da?window[_0x269786(0x218)][_0x269786(0x10e)]('','',_0x2d4199[_0x269786(0x245)]()):window[_0x269786(0x218)]['pushState']('','',_0x2d4199[_0x269786(0x245)]());}['getParam'](_0x58b876){const _0x21cce7=_0x5e7409;var _0x36deda;return(_0x36deda=new URL(window[_0x21cce7(0x131)][_0x21cce7(0x21b)])[_0x21cce7(0x159)][_0x21cce7(0x22b)](_0x58b876))!=null?_0x36deda:void 0x0;}}var os=Object['defineProperty'],as=Object['getOwnPropertyDescriptor'],cs=(_0x11311a,_0x3336de,_0x339cb9)=>_0x3336de in _0x11311a?os(_0x11311a,_0x3336de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x339cb9}):_0x11311a[_0x3336de]=_0x339cb9,ls=(_0x1d16ea,_0x417770,_0x436cd5,_0x4df835)=>{const _0x53045e=_0x5e7409;for(var _0xbacea4=_0x4df835>0x1?void 0x0:_0x4df835?as(_0x417770,_0x436cd5):_0x417770,_0x64058e=_0x1d16ea[_0x53045e(0x23d)]-0x1,_0x125148;_0x64058e>=0x0;_0x64058e--)(_0x125148=_0x1d16ea[_0x64058e])&&(_0xbacea4=_0x125148(_0xbacea4)||_0xbacea4);return _0xbacea4;},Se=(_0xc9c085,_0x42645b)=>(_0x38a55b,_0x44c794)=>_0x42645b(_0x38a55b,_0x44c794,_0xc9c085),_s=(_0x31276d,_0x555ce4,_0x1e2446)=>cs(_0x31276d,_0x555ce4+'',_0x1e2446);const hs=_0x5e7409(0x1eb);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5e7409(0x37e)]{constructor(_0x2d4a65=Me,_0x3b00d6,_0x523af4,_0x22dfe5){const _0x58a7e6=_0x5e7409;super(),this[_0x58a7e6(0x316)]=_0x2d4a65,this[_0x58a7e6(0x11f)]=_0x3b00d6,this['_injector']=_0x523af4,this[_0x58a7e6(0x1e9)]=_0x22dfe5;const {..._0x447b77}=a[_0x58a7e6(0x31b)]({},Me,this[_0x58a7e6(0x316)]);this[_0x58a7e6(0x1e9)][_0x58a7e6(0x295)](Yt,_0x447b77);}[_0x5e7409(0x385)](){const _0x2229cc=_0x5e7409;this[_0x2229cc(0x2cf)](),this[_0x2229cc(0x2d2)]();}[_0x5e7409(0x108)](){const _0x58d35e=_0x5e7409;this[_0x58d35e(0x2ea)]();}[_0x5e7409(0x2cf)](){const _0x47dd28=_0x5e7409;var _0x4c9a97;const _0x530ef0=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x47dd28(0x1d0)],{'useClass':x['WebSocketService']}],[u[_0x47dd28(0x137)],{'useClass':pe}],[exports[_0x47dd28(0x1ba)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x47dd28(0x316)]['enableFrontendLog']&&_0x530ef0[_0x47dd28(0x2e2)]([Q]),a[_0x47dd28(0x1f1)](this['_injector'],a['mergeOverrideWithDependencies'](_0x530ef0,(_0x4c9a97=this['_config'])==null?void 0x0:_0x4c9a97[_0x47dd28(0x391)]));}[_0x5e7409(0x2ea)](){const _0x3ebe4e=_0x5e7409;this[_0x3ebe4e(0x361)](this[_0x3ebe4e(0x11f)][_0x3ebe4e(0x2c8)](a[_0x3ebe4e(0x1fc)][_0x3ebe4e(0x273)],[Ee])),this[_0x3ebe4e(0x361)](this['_renderManagerService'][_0x3ebe4e(0x2c8)](a[_0x3ebe4e(0x1fc)][_0x3ebe4e(0x34f)],[Ce]));}[_0x5e7409(0x2d2)](){const _0x393a79=_0x5e7409;a['touchDependencies'](this[_0x393a79(0x232)],[[F],[exports[_0x393a79(0x1ba)]],[ie],[Z],[exports[_0x393a79(0x2bc)]],[ne]]),this[_0x393a79(0x316)][_0x393a79(0x207)]&&a[_0x393a79(0x386)](this['_injector'],[[Q]]);}},_s(exports[_0x5e7409(0x263)],'pluginName',hs),exports[_0x5e7409(0x263)]=ls([a[_0x5e7409(0x1d1)](u[_0x5e7409(0x197)]),Se(0x1,C[_0x5e7409(0x1f0)]),Se(0x2,a[_0x5e7409(0x10a)](a[_0x5e7409(0x18a)])),Se(0x3,a[_0x5e7409(0x23a)])],exports[_0x5e7409(0x263)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x3e4d68,_0x26f625,_0x11f04a,_0x131aed)=>{const _0x3b4f37=_0x5e7409;for(var _0x107ee1=_0x131aed>0x1?void 0x0:_0x131aed?us(_0x26f625,_0x11f04a):_0x26f625,_0x27a4a9=_0x3e4d68[_0x3b4f37(0x23d)]-0x1,_0xa21d97;_0x27a4a9>=0x0;_0x27a4a9--)(_0xa21d97=_0x3e4d68[_0x27a4a9])&&(_0x107ee1=_0xa21d97(_0x107ee1)||_0x107ee1);return _0x107ee1;},W=(_0x3ec9c5,_0x21cffc)=>(_0x1df7e8,_0x2ef99b)=>_0x21cffc(_0x1df7e8,_0x2ef99b,_0x3ec9c5);exports[_0x5e7409(0x2ca)]=class extends u[_0x5e7409(0x1a5)]{constructor(_0x1a4935,_0x9767c5,_0x41b612,_0x377d3f,_0x4f8924){super(_0x1a4935,_0x9767c5,_0x41b612,_0x377d3f,_0x4f8924);}async[_0x5e7409(0x2f6)](_0x251bff){const _0x3aff75=_0x5e7409,_0x29ba96=await this[_0x3aff75(0x1cc)](),_0x449249=this[_0x3aff75(0x290)](_0x251bff,_0x29ba96);return this[_0x3aff75(0x20c)](_0x449249);}[_0x5e7409(0x290)](_0x4c36ef,_0xbd91ba){const _0x38a74e=_0x5e7409,_0x4f9e3a=typeof window>'u'?new URL(_0x4c36ef):new URL(_0x4c36ef,window[_0x38a74e(0x131)][_0x38a74e(0x2bb)]);_0x4f9e3a['searchParams'][_0x38a74e(0x15c)](_0x38a74e(0x15f),_0xbd91ba);const _0x5764d8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x38a74e(0x131)][_0x38a74e(0x399)]);return _0x5764d8[_0x38a74e(0x22b)](_0x38a74e(0x1ca))&&_0x4f9e3a[_0x38a74e(0x159)][_0x38a74e(0x15c)](_0x38a74e(0x1ca),_0x5764d8[_0x38a74e(0x22b)](_0x38a74e(0x1ca))),_0x4f9e3a['toString']();}async[_0x5e7409(0x1cc)](){const _0x21d533=_0x5e7409;var _0x1c1042,_0x334fa1,_0x36329a;const _0x333251=this[_0x21d533(0x1e9)][_0x21d533(0x2e8)](u[_0x21d533(0x1e7)]),_0x1183db=(_0x1c1042=_0x333251==null?void 0x0:_0x333251['wsSessionTicketUrl'])!=null?_0x1c1042:u[_0x21d533(0x2f1)];return(_0x36329a=(_0x334fa1=(await this[_0x21d533(0x2f9)][_0x21d533(0x22b)](_0x1183db,{'headers':{'Content-Type':_0x21d533(0x371)}}))[_0x21d533(0x115)])==null?void 0x0:_0x334fa1[_0x21d533(0x3a8)])!=null?_0x36329a:'';}},exports[_0x5e7409(0x2ca)]=Is([W(0x0,a['Inject'](a[_0x5e7409(0x18a)])),W(0x1,a[_0x5e7409(0x10a)](x['HTTPService'])),W(0x2,a[_0x5e7409(0x23a)]),W(0x3,a['ILogService']),W(0x4,g['ISnapshotServerService'])],exports[_0x5e7409(0x2ca)]);var ds=Object[_0x5e7409(0x3ca)],Ss=(_0x33a4b8,_0x1feec8,_0x3c4c67,_0x54f1c4)=>{const _0x64bfdb=_0x5e7409;for(var _0x854f90=_0x54f1c4>0x1?void 0x0:_0x54f1c4?ds(_0x1feec8,_0x3c4c67):_0x1feec8,_0x18cafd=_0x33a4b8[_0x64bfdb(0x23d)]-0x1,_0x1dbd92;_0x18cafd>=0x0;_0x18cafd--)(_0x1dbd92=_0x33a4b8[_0x18cafd])&&(_0x854f90=_0x1dbd92(_0x854f90)||_0x854f90);return _0x854f90;},fe=(_0x4e33ac,_0x545a20)=>(_0x57d439,_0x40e33b)=>_0x545a20(_0x57d439,_0x40e33b,_0x4e33ac);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0xcfd8be,_0x1bd45c,_0x22bfd0){const _0x3cd970=_0x5e7409;super(),this[_0x3cd970(0x1a0)]=_0xcfd8be,this[_0x3cd970(0x2f9)]=_0x1bd45c,this[_0x3cd970(0x1e9)]=_0x22bfd0;}async[_0x5e7409(0x2c5)](_0xdfb7ae,_0x94255e,_0x37c9bd,..._0x4ab709){const _0x35c761=_0x5e7409;var _0x1e9461,_0x25d2df,_0x38ea9d,_0x3192a1;const _0x496ec7=this['_instanceService'][_0x35c761(0x3b4)]();if(!_0x496ec7)throw new Error(_0x35c761(0x362));const _0x248653=((_0x1e9461=this[_0x35c761(0x1e9)]['getConfig'](u[_0x35c761(0x343)]))!=null?_0x1e9461:u[_0x35c761(0x319)])+'/'+_0xdfb7ae+'/run/'+_0x94255e,_0x15ce7e=new URL(window[_0x35c761(0x131)]['href']),_0x19b007={'scriptId':_0xdfb7ae,'runId':(_0x25d2df=_0x15ce7e['searchParams'][_0x35c761(0x22b)](_0x35c761(0x1ca)))!=null?_0x25d2df:'','function':_0x94255e,'unitId':_0x496ec7[_0x35c761(0x3b5)](),'argsOfFunction':JSON['stringify'](_0x4ab709),'invokeId':(_0x38ea9d=_0x37c9bd[_0x35c761(0x18f)])!=null?_0x38ea9d:'','executionId':(_0x3192a1=_0x37c9bd[_0x35c761(0x350)])!=null?_0x3192a1:''};try{const _0x506141=await this[_0x35c761(0x2f9)][_0x35c761(0x355)](_0x248653,{'body':_0x19b007});return _0x506141[_0x35c761(0x115)][_0x35c761(0x227)]&&_0x506141['body'][_0x35c761(0x227)][_0x35c761(0x358)]!==G['OK']?_0x35c761(0x117):_0x506141['body'][_0x35c761(0x180)];}catch{return'Failed';}}},exports[_0x5e7409(0x1e4)]=Ss([fe(0x0,a[_0x5e7409(0x119)]),fe(0x1,a[_0x5e7409(0x10a)](x[_0x5e7409(0x2fd)])),fe(0x2,a[_0x5e7409(0x23a)])],exports[_0x5e7409(0x1e4)]);const we=0x7530,ye=_0x5e7409(0x325);class fs extends a['Disposable']{constructor(){const _0x13ee1d=_0x5e7409;super(),_(this,_0x13ee1d(0x29d),a[_0x13ee1d(0x17d)]()),_(this,_0x13ee1d(0x1ff),new Set()),_(this,_0x13ee1d(0x330),new Map()),_(this,_0x13ee1d(0x27c),null),_(this,_0x13ee1d(0x11c),new Map()),_(this,_0x13ee1d(0x248),new Map()),this[_0x13ee1d(0x303)]();}[_0x5e7409(0x3a1)](){const _0x376a9d=_0x5e7409;super[_0x376a9d(0x3a1)](),this[_0x376a9d(0x11c)][_0x376a9d(0x2f8)]((_0x1e6c24,_0x437e5f)=>this[_0x376a9d(0x26a)](_0x437e5f)),this[_0x376a9d(0x27c)]&&window[_0x376a9d(0x2ab)](this[_0x376a9d(0x27c)]);}['getUnitStatus$'](_0x3a3304){const _0x27e9aa=_0x5e7409;return this[_0x27e9aa(0x149)](_0x3a3304)[_0x27e9aa(0x168)](I['distinctUntilChanged']());}[_0x5e7409(0x274)](_0x5f1a26){const _0x56fa21=_0x5e7409;this['_selfUnitIDs'][_0x56fa21(0x2f0)]===0x0&&this[_0x56fa21(0x25f)](),this[_0x56fa21(0x1ff)][_0x56fa21(0x3c3)](_0x5f1a26),this[_0x56fa21(0x2e4)]({'type':0x0,'memberID':this[_0x56fa21(0x29d)],'unitIDs':[_0x5f1a26],'isForwarded':!0x1});}['disposeUnit'](_0x4c1149){const _0x5e3afc=_0x5e7409;this[_0x5e3afc(0x1ff)][_0x5e3afc(0x35b)](_0x4c1149),this[_0x5e3afc(0x1ff)][_0x5e3afc(0x2f0)]===0x0&&this[_0x5e3afc(0x27c)]&&window[_0x5e3afc(0x2ab)](this[_0x5e3afc(0x27c)]);}[_0x5e7409(0x303)](){const _0x3cff81=_0x5e7409;this[_0x3cff81(0x361)](a[_0x3cff81(0x29c)](I[_0x3cff81(0x29e)](window,_0x3cff81(0x15a))[_0x3cff81(0x24c)](_0x4cbdc6=>{const _0x2ec371=_0x3cff81;if(_0x4cbdc6[_0x2ec371(0x1aa)]!==ye||!_0x4cbdc6[_0x2ec371(0x25b)])return;const _0x5313f2=JSON[_0x2ec371(0x3c1)](_0x4cbdc6['newValue']);this[_0x2ec371(0x253)](_0x5313f2);}))),window[_0x3cff81(0x246)](_0x3cff81(0x109),()=>this[_0x3cff81(0x2e4)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x298d55){const _0xfd0abe=_0x5e7409;switch(_0x298d55[_0xfd0abe(0x3ad)]){case 0x0:this['_handleJoinEvent'](_0x298d55);break;case 0x1:this[_0xfd0abe(0x312)](_0x298d55);break;case 0x2:this[_0xfd0abe(0x187)](_0x298d55);break;}}[_0x5e7409(0x20d)](_0x53c59e){const _0x4780ed=_0x5e7409,{unitIDs:_0x53caa6,memberID:_0x4ccb19,isForwarded:_0x36b71c}=_0x53c59e;_0x53caa6[_0x4780ed(0x2f8)](_0x18f2d1=>{const _0x59e1a0=_0x4780ed;if(!_0x36b71c&&this[_0x59e1a0(0x330)][_0x59e1a0(0x2ac)](_0x18f2d1)&&this[_0x59e1a0(0x149)](_0x18f2d1)[_0x59e1a0(0x32d)](u[_0x59e1a0(0x2ef)][_0x59e1a0(0x1f2)]),!this[_0x59e1a0(0x330)][_0x59e1a0(0x2ac)](_0x18f2d1)||!this[_0x59e1a0(0x330)][_0x59e1a0(0x22b)](_0x18f2d1)[_0x59e1a0(0x2ac)](_0x4ccb19)){const _0x3a81df=this[_0x59e1a0(0x330)][_0x59e1a0(0x22b)](_0x18f2d1)||new Set();_0x3a81df[_0x59e1a0(0x3c3)](_0x4ccb19),this[_0x59e1a0(0x330)][_0x59e1a0(0x15c)](_0x18f2d1,_0x3a81df),this[_0x59e1a0(0x37b)](_0x4ccb19);}}),_0x36b71c||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4780ed(0x1ff)]],'isForwarded':!0x0});}[_0x5e7409(0x37b)](_0x3c9525){const _0x299ec5=_0x5e7409;this['_removeClearOtherTimer'](_0x3c9525);const _0x1c5368=window[_0x299ec5(0x1b8)](()=>{const _0x231f9e=_0x299ec5;this[_0x231f9e(0x330)][_0x231f9e(0x2f8)](_0x5cc7c4=>{_0x5cc7c4['delete'](_0x3c9525);});},we*0x2);this[_0x299ec5(0x11c)][_0x299ec5(0x15c)](_0x3c9525,_0x1c5368);}[_0x5e7409(0x26a)](_0x23fc8a){const _0x4b5945=_0x5e7409;if(this[_0x4b5945(0x11c)][_0x4b5945(0x2ac)](_0x23fc8a)){const _0x55ceab=this[_0x4b5945(0x11c)]['get'](_0x23fc8a);_0x55ceab&&window[_0x4b5945(0x323)](_0x55ceab),this['_clearOtherTimers'][_0x4b5945(0x15c)](_0x23fc8a,null);}}['_handleLeaveEvent'](_0x50662b){const _0x56a420=_0x5e7409,{memberID:_0x179913,unitIDs:_0x35331d}=_0x50662b;_0x35331d[_0x56a420(0x2f8)](_0x4d6901=>{const _0x434dac=_0x56a420;var _0x149d86;const _0x909143=this[_0x434dac(0x330)]['get'](_0x4d6901);_0x909143&&(_0x909143['delete'](_0x179913),(_0x149d86=this[_0x434dac(0x149)](_0x4d6901))==null||_0x149d86['next'](_0x909143[_0x434dac(0x2f0)]===0x0?u[_0x434dac(0x2ef)][_0x434dac(0x29a)]:u[_0x434dac(0x2ef)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x179913);}[_0x5e7409(0x187)](_0x2f88d9){const _0x58db82=_0x5e7409;this['_scheduleClearOtherTimer'](_0x2f88d9[_0x58db82(0x259)]);}[_0x5e7409(0x2e4)](_0x144f0f){const _0x4211da=_0x5e7409;localStorage[_0x4211da(0x2a7)](ye,JSON[_0x4211da(0x2bd)](_0x144f0f));}['_scheduleHeartbeat'](){const _0x1f84e6=_0x5e7409;this['_heartbeatTimer']=window[_0x1f84e6(0x26b)](()=>{const _0x284e2e=_0x1f84e6;this[_0x284e2e(0x2e4)]({'type':0x2,'memberID':this[_0x284e2e(0x29d)]});},we);}[_0x5e7409(0x149)](_0x3eed83){const _0x5c2a6f=_0x5e7409;return this[_0x5c2a6f(0x248)][_0x5c2a6f(0x2ac)](_0x3eed83)||this[_0x5c2a6f(0x248)]['set'](_0x3eed83,new I[(_0x5c2a6f(0x191))](u[_0x5c2a6f(0x2ef)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x5c2a6f(0x248)][_0x5c2a6f(0x22b)](_0x3eed83);}}exports[_0x5e7409(0x2ec)]=Oe,exports[_0x5e7409(0x177)]=je,exports[_0x5e7409(0x28f)]=fs,exports[_0x5e7409(0x36a)]=ke;