@univerjs-pro/collaboration-client-ui 0.12.1-nightly.202511221011 → 0.12.2

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 +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x366146=_0x23c7;(function(_0x5d58e6,_0x76c7fc){const _0xdf0a7=_0x23c7,_0x383231=_0x5d58e6();while(!![]){try{const _0x1f65de=-parseInt(_0xdf0a7(0x3b4))/0x1+-parseInt(_0xdf0a7(0x1f0))/0x2*(-parseInt(_0xdf0a7(0x3d0))/0x3)+-parseInt(_0xdf0a7(0x1aa))/0x4*(-parseInt(_0xdf0a7(0x33e))/0x5)+-parseInt(_0xdf0a7(0x2b3))/0x6+parseInt(_0xdf0a7(0x40b))/0x7+-parseInt(_0xdf0a7(0x34e))/0x8*(-parseInt(_0xdf0a7(0x1bb))/0x9)+parseInt(_0xdf0a7(0x22c))/0xa*(-parseInt(_0xdf0a7(0x22d))/0xb);if(_0x1f65de===_0x76c7fc)break;else _0x383231['push'](_0x383231['shift']());}catch(_0x482ad1){_0x383231['push'](_0x383231['shift']());}}}(_0x51ff,0xa621e));var Xe=Object[_0x366146(0x24e)],Ke=(_0x46f5be,_0xa83745,_0x47c667)=>_0xa83745 in _0x46f5be?Xe(_0x46f5be,_0xa83745,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47c667}):_0x46f5be[_0xa83745]=_0x47c667,_=(_0x5e09ef,_0x5b55b3,_0x15631e)=>Ke(_0x5e09ef,typeof _0x5b55b3!='symbol'?_0x5b55b3+'':_0x5b55b3,_0x15631e);Object[_0x366146(0x24e)](exports,Symbol[_0x366146(0x259)],{'value':_0x366146(0x207)});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:_0x16870c,..._0x55c457}){const _0x8c9008=_0x366146,{icon:_0x147507,id:_0x579132,className:_0x50eee9,extend:_0x3d9b93,..._0x1d7559}=_0x55c457,_0xb37871=('univerjs-icon\x20univerjs-icon-'+_0x579132+'\x20'+(_0x50eee9||''))[_0x8c9008(0x1d1)](),_0x10f279=A[_0x8c9008(0x2b0)]('_'+Qe());return $e(_0x147507,''+_0x579132,{'defIds':_0x147507['defIds'],'idSuffix':_0x10f279[_0x8c9008(0x3b9)]},{'ref':_0x16870c,'className':_0xb37871,..._0x1d7559},_0x3d9b93);}function $e(_0x24d557,_0x27f9f7,_0x24a817,_0x31ee8c,_0x3809d3){const _0x2581cb=_0x366146;return A['createElement'](_0x24d557['tag'],{'key':_0x27f9f7,...Je(_0x24d557,_0x24a817,_0x3809d3),..._0x31ee8c},(Ze(_0x24d557,_0x24a817)['children']||[])[_0x2581cb(0x3e9)]((_0x509100,_0x5724c2)=>$e(_0x509100,_0x27f9f7+'-'+_0x24d557[_0x2581cb(0x2c8)]+'-'+_0x5724c2,_0x24a817,void 0x0,_0x3809d3)));}function Je(_0x53c105,_0xa9719a,_0x2a5dab){const _0x176514=_0x366146,_0x404f34={..._0x53c105[_0x176514(0x261)]};_0x2a5dab!=null&&_0x2a5dab['colorChannel1']&&_0x404f34[_0x176514(0x167)]===_0x176514(0x366)&&(_0x404f34[_0x176514(0x167)]=_0x2a5dab[_0x176514(0x366)]),_0x53c105[_0x176514(0x2c8)]===_0x176514(0x22a)&&_0x404f34['id']&&(_0x404f34['id']=_0x404f34['id']+_0xa9719a[_0x176514(0x2e0)]),Object[_0x176514(0x357)](_0x404f34)[_0x176514(0x3eb)](([_0x540045,_0x5c9797])=>{const _0xbeb22f=_0x176514;_0x540045==='mask'&&typeof _0x5c9797=='string'&&(_0x404f34[_0x540045]=_0x5c9797['replace'](/url\(#(.*)\)/,_0xbeb22f(0x3af)+_0xa9719a[_0xbeb22f(0x2e0)]+')'));});const {defIds:_0x3e540c}=_0xa9719a;return!_0x3e540c||_0x3e540c[_0x176514(0x18d)]===0x0||(_0x53c105[_0x176514(0x2c8)]==='use'&&_0x404f34[_0x176514(0x376)]&&(_0x404f34[_0x176514(0x376)]=_0x404f34[_0x176514(0x376)]+_0xa9719a[_0x176514(0x2e0)]),Object[_0x176514(0x357)](_0x404f34)['forEach'](([_0x32f6a0,_0x20af7e])=>{const _0x3e5bcc=_0x176514;typeof _0x20af7e=='string'&&(_0x404f34[_0x32f6a0]=_0x20af7e[_0x3e5bcc(0x2ff)](/url\(#(.*)\)/,_0x3e5bcc(0x3af)+_0xa9719a[_0x3e5bcc(0x2e0)]+')'));})),_0x404f34;}function _0x23c7(_0x4f7ac5,_0x513534){const _0x51ff0d=_0x51ff();return _0x23c7=function(_0x23c7f3,_0x20f718){_0x23c7f3=_0x23c7f3-0x148;let _0x5e6d64=_0x51ff0d[_0x23c7f3];return _0x5e6d64;},_0x23c7(_0x4f7ac5,_0x513534);}function Ze(_0x4cb6bf,_0x7dbc6a){const _0x38e400=_0x366146;var _0x5a50a9;const {defIds:_0x5e2067}=_0x7dbc6a;return!_0x5e2067||_0x5e2067[_0x38e400(0x18d)]===0x0?_0x4cb6bf:_0x4cb6bf[_0x38e400(0x2c8)]===_0x38e400(0x182)&&((_0x5a50a9=_0x4cb6bf[_0x38e400(0x15e)])!=null&&_0x5a50a9['length'])?{..._0x4cb6bf,'children':_0x4cb6bf[_0x38e400(0x15e)]['map'](_0x4bab8f=>typeof _0x4bab8f[_0x38e400(0x261)]['id']=='string'&&_0x5e2067&&_0x5e2067[_0x38e400(0x2a6)](_0x4bab8f[_0x38e400(0x261)]['id'])?{..._0x4bab8f,'attrs':{..._0x4bab8f[_0x38e400(0x261)],'id':_0x4bab8f[_0x38e400(0x261)]['id']+_0x7dbc6a[_0x38e400(0x2e0)]}}:_0x4bab8f)}:_0x4cb6bf;}function Qe(){const _0x2e829b=_0x366146;return Math[_0x2e829b(0x1ce)]()[_0x2e829b(0x177)](0x24)['substring'](0x2,0x8);}Te[_0x366146(0x331)]=_0x366146(0x325);const et={'tag':_0x366146(0x32e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x366146(0x37b),'viewBox':'0\x200\x2016\x2016','width':_0x366146(0x381),'height':_0x366146(0x381)},'children':[{'tag':'g','attrs':{'clipPath':_0x366146(0x323)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x366146(0x36b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x366146(0x3b6),'attrs':{'fill':_0x366146(0x3a7),'d':_0x366146(0x178)}}]}]}],'defIds':[_0x366146(0x2aa)]},xe=A[_0x366146(0x344)](function(_0x5dab64,_0x463460){const _0x2f8b5b=_0x366146;return A[_0x2f8b5b(0x180)](Te,Object[_0x2f8b5b(0x205)]({},_0x5dab64,{'id':_0x2f8b5b(0x361),'ref':_0x463460,'icon':et}));});xe[_0x366146(0x331)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':_0x366146(0x3b3),'fill':_0x366146(0x37b),'viewBox':_0x366146(0x34d),'width':_0x366146(0x381),'height':_0x366146(0x381)},'children':[{'tag':'g','attrs':{'clipPath':_0x366146(0x14e)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'stroke':_0x366146(0x18a),'d':_0x366146(0x3e2),'strokeLinecap':'round','strokeLinejoin':_0x366146(0x36b),'strokeWidth':1.2}}]},{'tag':_0x366146(0x182),'attrs':{},'children':[{'tag':_0x366146(0x275),'attrs':{'id':_0x366146(0x351)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'fill':'white','d':_0x366146(0x178),'transform':_0x366146(0x342)}}]}]}],'defIds':[_0x366146(0x351)]},Be=A[_0x366146(0x344)](function(_0x55291a,_0x5245cf){const _0x165950=_0x366146;return A[_0x165950(0x180)](Te,Object['assign']({},_0x55291a,{'id':'on-line-icon','ref':_0x5245cf,'icon':tt}));});Be['displayName']=_0x366146(0x3ae);function st(_0x2f5ac4){const _0x2ed5ce=_0x366146;switch(_0x2f5ac4){case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x3cf)]:return _0x2ed5ce(0x319);case u['CollaborationStatus']['CONFLICT']:return _0x2ed5ce(0x293);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x154)]:return _0x2ed5ce(0x156);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x2ad)]:return _0x2ed5ce(0x27e);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x264)]:case u[_0x2ed5ce(0x380)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x233)]:case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x14b)]:return'collabStatus.synced';}}function it(_0x241bba){const _0x1b3158=_0x366146,{status$:_0x17392d}=_0x241bba,_0x5d45bb=O['useObservable'](_0x17392d,u[_0x1b3158(0x380)][_0x1b3158(0x2ad)]),_0x4bc89f=O['useDependency'](a[_0x1b3158(0x267)]),_0x1b5b72=O[_0x1b3158(0x3c9)](u[_0x1b3158(0x31a)]),_0x2d93b3=_0x5d45bb!==u[_0x1b3158(0x380)][_0x1b3158(0x3cf)],_0x575fd5=_0x4bc89f['t'](st(_0x5d45bb)),_0x54116d=_0x2d93b3?M[_0x1b3158(0x213)](Be,{}):M[_0x1b3158(0x213)](xe,{}),_0x4c44e1=A[_0x1b3158(0x21b)](()=>{_0x2d93b3||_0x1b5b72['reconnect']();},[_0x2d93b3,_0x1b5b72]);function _0xda36ff(){const _0x9c6e5b=_0x1b3158;return M['jsxs'](_0x9c6e5b(0x303),{'className':'univer-flex\x20univer-items-center','onClick':_0x4c44e1,'children':[M[_0x9c6e5b(0x213)](_0x9c6e5b(0x303),{'className':T[_0x9c6e5b(0x347)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2d93b3,'univer-text-red-500':!_0x2d93b3}),'children':_0x54116d}),M['jsx'](_0x9c6e5b(0x303),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x575fd5})]});}return _0x2d93b3?_0xda36ff():M['jsx'](T[_0x1b3158(0x1fe)],{'title':_0x4bc89f['t'](_0x1b3158(0x3a9)),'children':_0xda36ff()});}var nt=Object[_0x366146(0x3ee)],rt=(_0x182f17,_0x577640,_0x3b3b4e,_0x5903c7)=>{const _0x30bfe0=_0x366146;for(var _0x5d4e77=_0x5903c7>0x1?void 0x0:_0x5903c7?nt(_0x577640,_0x3b3b4e):_0x577640,_0xd79003=_0x182f17[_0x30bfe0(0x18d)]-0x1,_0x193d15;_0xd79003>=0x0;_0xd79003--)(_0x193d15=_0x182f17[_0xd79003])&&(_0x5d4e77=_0x193d15(_0x5d4e77)||_0x5d4e77);return _0x5d4e77;},K=(_0x1cae6d,_0x3bac0c)=>(_0x13bc48,_0x2cdd4c)=>_0x3bac0c(_0x13bc48,_0x2cdd4c,_0x1cae6d);exports[_0x366146(0x1ee)]=class extends a['Disposable']{constructor(_0x49fb84,_0x5d175e,_0x403b56,_0x386ccc){const _0x15e1a8=_0x366146;super(),_(this,'_status$',new I['BehaviorSubject'](u['CollaborationStatus'][_0x15e1a8(0x2ad)])),(this['_univerInstanceService']=_0x49fb84,this[_0x15e1a8(0x354)]=_0x5d175e,this[_0x15e1a8(0x240)]=_0x403b56,this[_0x15e1a8(0x2e5)]=_0x386ccc,this[_0x15e1a8(0x28e)](),this['_initStatusListener']());}[_0x366146(0x164)](){const _0x1b7469=_0x366146;this[_0x1b7469(0x39d)](this['_univerInstanceService']['focused$'][_0x1b7469(0x1c2)](I[_0x1b7469(0x1fd)](()=>{const _0x2b529b=_0x1b7469,_0x3974ee=this[_0x2b529b(0x2fe)][_0x2b529b(0x1f2)]();return _0x3974ee?this[_0x2b529b(0x240)][_0x2b529b(0x2bc)](_0x3974ee[_0x2b529b(0x349)]()):I['of'](null);}),I[_0x1b7469(0x1fd)](_0x389b79=>_0x389b79?_0x389b79[_0x1b7469(0x2fa)]:I['of'](u['CollaborationStatus'][_0x1b7469(0x2ad)])))['subscribe'](_0x5ca63f=>{const _0x34cd53=_0x1b7469;this['_status$'][_0x34cd53(0x161)](_0x5ca63f);}));}[_0x366146(0x28e)](){const _0x423c04=_0x366146;this[_0x423c04(0x39d)](this['_uiPartsService'][_0x423c04(0x402)](O[_0x423c04(0x3a5)][_0x423c04(0x222)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x366146(0x375)]),K(0x1,a[_0x366146(0x34a)](a['Injector'])),K(0x2,a[_0x366146(0x34a)](u['CollaborationController'])),K(0x3,O[_0x366146(0x3e8)])],exports[_0x366146(0x1ee)]);function ot(_0x538d32){const {status$:_0x102b91}=_0x538d32;return function(){return M['jsx'](it,{'status$':_0x102b91});};}const Oe=a[_0x366146(0x368)](_0x366146(0x3c4));var at=Object[_0x366146(0x3ee)],ct=(_0x49fbcc,_0x2adf1d,_0x4cd451,_0x2f8813)=>{for(var _0x3c777a=_0x2f8813>0x1?void 0x0:_0x2f8813?at(_0x2adf1d,_0x4cd451):_0x2adf1d,_0x5351ed=_0x49fbcc['length']-0x1,_0x3bcb8d;_0x5351ed>=0x0;_0x5351ed--)(_0x3bcb8d=_0x49fbcc[_0x5351ed])&&(_0x3c777a=_0x3bcb8d(_0x3c777a)||_0x3c777a);return _0x3c777a;},Y=(_0x158bd2,_0x1716c7)=>(_0x158db0,_0x34de6b)=>_0x1716c7(_0x158db0,_0x34de6b,_0x158bd2);exports[_0x366146(0x1ad)]=class extends a[_0x366146(0x25a)]{constructor(_0x313361,_0x97ecfc,_0x3d9810,_0x2a4ba2,_0x11d558){const _0x3a9e8f=_0x366146;super(),this['_urlService']=_0x313361,this[_0x3a9e8f(0x204)]=_0x97ecfc,this[_0x3a9e8f(0x16f)]=_0x3d9810,this[_0x3a9e8f(0x2d6)]=_0x2a4ba2,_0x11d558?_0x11d558==null||_0x11d558['whenReady']()[_0x3a9e8f(0x3c5)](()=>this[_0x3a9e8f(0x3d7)]()):(this[_0x3a9e8f(0x204)][_0x3a9e8f(0x346)]('[CollaborationDataLoaderController]',_0x3a9e8f(0x2b5)),this['_init']());}async[_0x366146(0x3d7)](){const _0x5c34fd=_0x366146,_0x56af2c=this[_0x5c34fd(0x1b1)][_0x5c34fd(0x1d4)](_0x5c34fd(0x186)),_0x4f5dfc=this[_0x5c34fd(0x1b1)][_0x5c34fd(0x1d4)]('type'),_0x523869=this['_urlService'][_0x5c34fd(0x1d4)](_0x5c34fd(0x1df));if(!_0x56af2c||!_0x4f5dfc){this['_logService'][_0x5c34fd(0x346)](_0x5c34fd(0x188),_0x5c34fd(0x17b));return;}const _0x363b09=await this[_0x5c34fd(0x2d6)][_0x5c34fd(0x31c)](_0x56af2c,Number(_0x4f5dfc),_0x523869);_0x363b09&&_0x363b09 instanceof a[_0x5c34fd(0x2bf)]&&this[_0x5c34fd(0x166)](_0x363b09);}async[_0x366146(0x166)](_0x11e02f){const _0x177709=_0x366146;await this[_0x177709(0x3cd)](_0x11e02f),_0x11e02f[_0x177709(0x2e1)][_0x177709(0x1c2)](I['takeUntil'](this[_0x177709(0x1a0)]))[_0x177709(0x390)](_0x2024a9=>{const _0x316a50=_0x177709;_0x2024a9&&this[_0x316a50(0x248)](_0x2024a9);}),this[_0x177709(0x1b1)]['urlChange$'][_0x177709(0x1c2)](I[_0x177709(0x225)](this[_0x177709(0x1a0)]))[_0x177709(0x390)](()=>this['_updateSubUnitFromURLParams'](_0x11e02f));}[_0x366146(0x248)](_0x104c64,_0x378bb3=!0x1){const _0x4a73a8=_0x366146,_0x48098d=this[_0x4a73a8(0x1b1)][_0x4a73a8(0x1d4)](_0x4a73a8(0x1df));_0x104c64[_0x4a73a8(0x1a3)]()!==_0x48098d&&this['_urlService'][_0x4a73a8(0x20d)]('subunit',_0x104c64[_0x4a73a8(0x1a3)](),_0x378bb3);}async[_0x366146(0x3cd)](_0x12434d){const _0x252118=_0x366146;var _0x3585f7;const _0x574fa5=this['_urlService']['getParam'](_0x252118(0x1df));if(!_0x574fa5||!_0x12434d[_0x252118(0x239)](_0x574fa5)){const _0x324dc3=_0x12434d['getUnhiddenWorksheets']()[0x0],_0x5eea79=_0x12434d[_0x252118(0x239)](_0x324dc3);if(!_0x5eea79)return;this[_0x252118(0x248)](_0x5eea79,!0x0),await this[_0x252118(0x16f)][_0x252118(0x1be)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x12434d[_0x252118(0x349)](),'subUnitId':_0x324dc3});return;}((_0x3585f7=_0x12434d[_0x252118(0x40a)]())==null?void 0x0:_0x3585f7[_0x252118(0x1a3)]())!==_0x574fa5&&await this[_0x252118(0x16f)]['executeCommand'](v[_0x252118(0x228)]['id'],{'unitId':_0x12434d['getUnitId'](),'subUnitId':_0x574fa5});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x366146(0x2e8)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x366146(0x34a)](u[_0x366146(0x1bc)])),Y(0x4,a[_0x366146(0x3f1)](qe['IRemoteInstanceService']))],exports[_0x366146(0x1ad)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x146b71,_0x52e1f1,_0x4c2247,_0x880c6)=>{for(var _0x396066=_0x880c6>0x1?void 0x0:_0x880c6?lt(_0x52e1f1,_0x4c2247):_0x52e1f1,_0x154d00=_0x146b71['length']-0x1,_0x425b39;_0x154d00>=0x0;_0x154d00--)(_0x425b39=_0x146b71[_0x154d00])&&(_0x396066=_0x425b39(_0x396066)||_0x396066);return _0x396066;},De=(_0x4fe666,_0x2d2d57)=>(_0x1321b9,_0x259281)=>_0x2d2d57(_0x1321b9,_0x259281,_0x4fe666);let me=class extends a['RxDisposable']{constructor(_0x1aed1b,_0x9bc629){const _0x1eea78=_0x366146;super(),this[_0x1eea78(0x1f7)]=_0x1aed1b,this[_0x1eea78(0x3dd)]=_0x9bc629,this['_init']();}[_0x366146(0x3d7)](){const _0x35199c=_0x366146,_0x3a7e27=this;this[_0x35199c(0x39d)](this[_0x35199c(0x1f7)][_0x35199c(0x258)]({'onBeforePasteImage':async _0x55c183=>{const _0x101b3c=_0x35199c,_0x50434f=await _0x3a7e27[_0x101b3c(0x3dd)][_0x101b3c(0x2a7)](_0x55c183);return _0x50434f?{'source':_0x50434f['source'],'imageSourceType':_0x50434f[_0x101b3c(0x3a0)]}:null;}}));}};me=_t([De(0x0,p[_0x366146(0x160)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x366146(0x3e5),'jiqing.500','green.600',_0x366146(0x355),_0x366146(0x3c1),_0x366146(0x202)];class Re extends a[_0x366146(0x176)]{constructor(){const _0x43f2bd=_0x366146;super(...arguments),_(this,_0x43f2bd(0x185),new Map()),_(this,_0x43f2bd(0x338),0x0);}[_0x366146(0x3ca)](_0x2da55e){const _0x227991=_0x366146;if(this[_0x227991(0x185)][_0x227991(0x3fe)](_0x2da55e))return this[_0x227991(0x185)]['get'](_0x2da55e);const _0x5624e4=Ne[this[_0x227991(0x338)]];return this['_colorIndex']=(this[_0x227991(0x338)]+0x1)%Ne[_0x227991(0x18d)],this[_0x227991(0x185)]['set'](_0x2da55e,_0x5624e4),_0x5624e4;}}function Fe(_0x4326bf){const _0x147326=_0x366146;let _0x27f3a2='';for(const _0x428773 of _0x4326bf){const {startOffset:_0x43a187,endOffset:_0x26bb97,isActive:_0xc0da2,rangeType:_0x288f5a,segmentId:_0x3a6e6e,segmentPage:_0x482cc9}=_0x428773;_0x27f3a2[_0x147326(0x18d)]&&(_0x27f3a2+=','),_0x27f3a2+=_0x43a187+':'+_0x26bb97+':'+(_0xc0da2?'1':'0')+':'+_0x288f5a+':'+_0x3a6e6e+':'+_0x482cc9;}return _0x27f3a2;}function ht(_0x40c2fc){const _0x12830a=_0x366146,_0x37f3d5=_0x40c2fc['split'](','),_0x4d3cfa=[];for(const _0x11c5b3 of _0x37f3d5){const [_0x4c0c72,_0x1ac75b,_0x24522e,_0x30468b,_0x15b67f,_0x87d733]=_0x11c5b3[_0x12830a(0x16d)](':');_0x4d3cfa[_0x12830a(0x192)]({'startOffset':Number(_0x4c0c72),'endOffset':Number(_0x1ac75b),'collapsed':_0x4c0c72===_0x1ac75b,'isActive':_0x24522e==='1','rangeType':_0x30468b===a[_0x12830a(0x392)][_0x12830a(0x1b6)]?a[_0x12830a(0x392)][_0x12830a(0x1b6)]:a[_0x12830a(0x392)][_0x12830a(0x19b)],'segmentId':typeof _0x15b67f==_0x12830a(0x36f)?String(_0x15b67f):'','segmentPage':Number(_0x87d733!=null?_0x87d733:-0x1)});}return _0x4d3cfa[_0x12830a(0x217)](_0x2ea1b8=>_0x2ea1b8['isActive'])||(_0x4d3cfa[0x0][_0x12830a(0x2f5)]=!0x0),_0x4d3cfa;}class be extends a[_0x366146(0x25a)]{constructor(){const _0x2a9a27=_0x366146;super(...arguments),_(this,_0x2a9a27(0x148),new I[(_0x2a9a27(0x3a8))](null)),_(this,_0x2a9a27(0x1e4),this['_collabCursorState$'][_0x2a9a27(0x334)]());}[_0x366146(0x1c3)](_0x5bf1d9){const _0x3dfee7=_0x366146,{unitID:_0x48cfce,memberID:_0x20d0be,textRanges:_0x4ccc93}=_0x5bf1d9,_0x13914c=Fe(_0x4ccc93);if(_0x13914c==='')return;const _0x5bdaa7={'unitID':_0x48cfce,'memberID':_0x20d0be,'selection':_0x13914c};this['_collabCursorState$'][_0x3dfee7(0x161)](_0x5bdaa7);}}var ut=Object[_0x366146(0x3ee)],It=(_0x23951b,_0xccdf91,_0x4a441d,_0x5318b2)=>{const _0x381aff=_0x366146;for(var _0x22013b=_0x5318b2>0x1?void 0x0:_0x5318b2?ut(_0xccdf91,_0x4a441d):_0xccdf91,_0x41c080=_0x23951b[_0x381aff(0x18d)]-0x1,_0x508a2a;_0x41c080>=0x0;_0x41c080--)(_0x508a2a=_0x23951b[_0x41c080])&&(_0x22013b=_0x508a2a(_0x22013b)||_0x22013b);return _0x22013b;},U=(_0x21cd6d,_0x406a08)=>(_0x118a9b,_0x34bb53)=>_0x406a08(_0x118a9b,_0x34bb53,_0x21cd6d);const dt=0x12c,St=0x64;let ve=class extends a[_0x366146(0x25a)]{constructor(_0x209dfb,_0x343937,_0x4eaab8,_0x1ec4ce,_0x4155f5,_0x32a58e,_0x3a7a06,_0xe0d651,_0x304f61){const _0x1c940e=_0x366146;super(),_(this,_0x1c940e(0x1b2),!0x1),_(this,_0x1c940e(0x3d7),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x1c940e(0x1ea),this[_0x1c940e(0x20b)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x1c940e(0x3a8))]([])),_(this,'roomMembers$',this[_0x1c940e(0x1e2)][_0x1c940e(0x1c2)](I[_0x1c940e(0x17d)](dt))),_(this,'_updateLocalCursor',a[_0x1c940e(0x278)](_0xfc7b0b=>{const _0x400d58=_0x1c940e,_0xccb0d6={'eventID':g['CollaborationEvent'][_0x400d58(0x195)],'data':{'unitID':this['unitID'],'memberID':this[_0x400d58(0x2cf)][_0x400d58(0x26a)](),'selection':Fe(_0xfc7b0b)}};this['_session'][_0x400d58(0x2a4)](_0xccb0d6,this[_0x400d58(0x1c5)]);},St)),(this[_0x1c940e(0x1c5)]=_0x209dfb,this[_0x1c940e(0x2cf)]=_0x343937,this[_0x1c940e(0x354)]=_0x4eaab8,this[_0x1c940e(0x1d3)]=_0x1ec4ce,this[_0x1c940e(0x22e)]=_0x4155f5,this['_syncEditingCollabCursorService']=_0x32a58e,this[_0x1c940e(0x1e8)]=_0x3a7a06,this[_0x1c940e(0x2fe)]=_0xe0d651,this[_0x1c940e(0x16f)]=_0x304f61);}get[_0x366146(0x191)](){const _0x56221e=_0x366146;return this[_0x56221e(0x20b)]['getValue']();}get[_0x366146(0x312)](){const _0x60ba52=_0x366146;return this[_0x60ba52(0x1e2)][_0x60ba52(0x1bf)]();}[_0x366146(0x286)](){const _0x5ae0f7=_0x366146;super[_0x5ae0f7(0x286)](),this[_0x5ae0f7(0x20b)]['next'](new Map()),this[_0x5ae0f7(0x20b)][_0x5ae0f7(0x328)](),this[_0x5ae0f7(0x1e2)]['next']([]),this[_0x5ae0f7(0x1e2)][_0x5ae0f7(0x328)]();}[_0x366146(0x292)](){const _0x2dafd8=_0x366146;this[_0x2dafd8(0x3d7)]||(this[_0x2dafd8(0x3d7)]=!0x0,this[_0x2dafd8(0x2cf)]['sessionStatus$'][_0x2dafd8(0x1c2)](I['takeUntil'](this[_0x2dafd8(0x1a0)]))[_0x2dafd8(0x390)](_0xd9d7bf=>{const _0x511e6c=_0x2dafd8;_0xd9d7bf===u[_0x511e6c(0x1c4)][_0x511e6c(0x237)]?this[_0x511e6c(0x2c3)]():this[_0x511e6c(0x34c)]();}),this['_session'][_0x2dafd8(0x18c)]['pipe'](I[_0x2dafd8(0x225)](this['dispose$']))[_0x2dafd8(0x390)](_0x543d60=>{const _0x368317=_0x2dafd8,_0x4e1f49=_0x543d60[_0x368317(0x246)];_0x4e1f49===g[_0x368317(0x238)][_0x368317(0x195)]&&this[_0x368317(0x401)](_0x543d60),_0x4e1f49===g['CollaborationEvent'][_0x368317(0x26b)]&&this[_0x368317(0x14c)](_0x543d60);}),this[_0x2dafd8(0x39d)](this[_0x2dafd8(0x16f)][_0x2dafd8(0x3e7)](_0x5a3d39=>{const _0x4ec1fa=_0x2dafd8,_0x320fb0=_0x5a3d39[_0x4ec1fa(0x35d)];_0x320fb0!=null&&this[_0x4ec1fa(0x1b2)]&&_0x5a3d39['id']===V[_0x4ec1fa(0x301)]['id']&&_0x320fb0[_0x4ec1fa(0x232)]===this[_0x4ec1fa(0x1c5)]&&_0x320fb0[_0x4ec1fa(0x3e4)]===!0x1&&_0x320fb0['ranges'][_0x4ec1fa(0x18d)]>0x0&&this[_0x4ec1fa(0x23e)](_0x320fb0[_0x4ec1fa(0x1d9)]);})),this[_0x2dafd8(0x198)][_0x2dafd8(0x1e4)][_0x2dafd8(0x1c2)](I[_0x2dafd8(0x225)](this[_0x2dafd8(0x1a0)]))[_0x2dafd8(0x390)](_0x5065ec=>{const _0x47ef3f=_0x2dafd8;if((_0x5065ec==null?void 0x0:_0x5065ec[_0x47ef3f(0x1c5)])!==this['unitID'])return;const _0x4b18ef={'eventID':g[_0x47ef3f(0x238)][_0x47ef3f(0x195)],'data':_0x5065ec};this[_0x47ef3f(0x401)](_0x4b18ef);}),this[_0x2dafd8(0x39d)](this['_commandService'][_0x2dafd8(0x3e7)](_0x314db2=>{const _0x376aa2=_0x2dafd8;if(_0x314db2[_0x376aa2(0x35d)]==null)return;const _0x1a6f46=_0x314db2[_0x376aa2(0x35d)];if(_0x314db2['id']!==V['RichTextEditingMutation']['id']||_0x1a6f46[_0x376aa2(0x232)]!==this['unitID'])return;const _0x120333={'id':'doc.mutation.rich-text-editing','params':_0x1a6f46},_0x4b587a=this[_0x376aa2(0x191)];for(const [_0x2c475c,_0xd567a2]of _0x4b587a){const _0x29f2dc={'id':_0x376aa2(0x155),'params':{'unitId':this[_0x376aa2(0x1c5)],'actions':null,'textRanges':_0xd567a2[_0x376aa2(0x1d9)]}},_0x15ee0a=this[_0x376aa2(0x1e8)]['transformMutation'](_0x120333,_0x29f2dc,!0x1);if(g[_0x376aa2(0x339)](_0x15ee0a))throw _0x15ee0a[_0x376aa2(0x329)];_0x4b587a[_0x376aa2(0x17a)](_0x2c475c,{..._0xd567a2,'ranges':_0x15ee0a[_0x376aa2(0x340)][_0x376aa2(0x35d)][_0x376aa2(0x24b)]});}queueMicrotask(()=>{const _0xc3e3a0=_0x376aa2;this[_0xc3e3a0(0x20b)][_0xc3e3a0(0x161)](_0x4b587a);});})));}['_onCursorUpdate'](_0x376b0c){const _0x506a6d=_0x366146;var _0x300eed,_0x1382ef;const {memberID:_0x59d5f2,selection:_0xb06985}=_0x376b0c[_0x506a6d(0x2e9)],_0x49dbaa=ht(_0xb06985),_0x14718b=(_0x1382ef=(_0x300eed=this['_memberService']['getMember'](this['unitID'],_0x59d5f2))==null?void 0x0:_0x300eed[_0x506a6d(0x2a0)])!=null?_0x1382ef:_0x506a6d(0x3f0),_0x134c45={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x59d5f2),'name':_0x14718b,'ranges':_0x49dbaa},_0x43d859=this[_0x506a6d(0x191)];_0x43d859[_0x506a6d(0x17a)](_0x59d5f2,_0x134c45),this[_0x506a6d(0x20b)]['next'](_0x43d859);}['_onCursorDelete'](_0x5b5dcc){const _0x5d77bf=_0x366146,{memberID:_0x4fe269}=_0x5b5dcc[_0x5d77bf(0x2e9)],_0x23eb30=this[_0x5d77bf(0x191)];_0x23eb30[_0x5d77bf(0x382)](_0x4fe269),this[_0x5d77bf(0x20b)][_0x5d77bf(0x161)](_0x23eb30);}[_0x366146(0x2c3)](){const _0xeb4576=_0x366146;var _0x23b404;if(this[_0xeb4576(0x1b2)]=!0x0,((_0x23b404=this[_0xeb4576(0x2fe)][_0xeb4576(0x1f2)]())==null?void 0x0:_0x23b404[_0xeb4576(0x349)]())!==this[_0xeb4576(0x1c5)])return;const _0x2f849d=this[_0xeb4576(0x354)][_0xeb4576(0x268)](V[_0xeb4576(0x38d)])[_0xeb4576(0x341)]();Array[_0xeb4576(0x15d)](_0x2f849d)&&_0x2f849d[_0xeb4576(0x18d)]>0x0&&this['_updateLocalCursor'](_0x2f849d);}[_0x366146(0x34c)](){const _0x511265=_0x366146;this[_0x511265(0x1b2)]=!0x1;}};ve=It([U(0x2,a[_0x366146(0x34a)](a[_0x366146(0x364)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x366146(0x34a)](u['MemberService'])),U(0x5,a['Inject'](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x366146(0x375)]),U(0x8,a[_0x366146(0x2d4)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x226970,_0x2d972e,_0x5effe7,_0x53a1b0)=>{const _0x3dc73b=_0x366146;for(var _0xad0bdd=_0x53a1b0>0x1?void 0x0:_0x53a1b0?ft(_0x2d972e,_0x5effe7):_0x2d972e,_0x3d9afe=_0x226970[_0x3dc73b(0x18d)]-0x1,_0x15cd4b;_0x3d9afe>=0x0;_0x3d9afe--)(_0x15cd4b=_0x226970[_0x3d9afe])&&(_0xad0bdd=_0x15cd4b(_0xad0bdd)||_0xad0bdd);return _0xad0bdd;},w=(_0x273f79,_0xe07360)=>(_0x1bf27a,_0x209428)=>_0xe07360(_0x1bf27a,_0x209428,_0x273f79);const vt=0x12c,gt=0x64,Et=()=>{let _0x322853=[],_0x3f4b76=!0x1;return _0x5b9e41=>{const _0x5e3875=_0x23c7;_0x322853[_0x5e3875(0x192)](_0x5b9e41),_0x3f4b76||(_0x3f4b76=!0x0,setTimeout(()=>{_0x322853['forEach'](_0x2ef28c=>_0x2ef28c()),_0x322853=[],_0x3f4b76=!0x1;}));};};let ge=class extends a[_0x366146(0x25a)]{constructor(_0xc9435f,_0x1d052c,_0xbc4527,_0x121c1f,_0x48ddec,_0x38c20c,_0x38674b,_0x4fceb7){const _0x3661cf=_0x366146;super(),_(this,'_online',!0x1),_(this,_0x3661cf(0x3d7),!0x1),_(this,_0x3661cf(0x20b),new I[(_0x3661cf(0x3a8))](new Map())),_(this,'cursorInfo$',this[_0x3661cf(0x20b)][_0x3661cf(0x334)]()),_(this,_0x3661cf(0x1e2),new I['BehaviorSubject']([])),_(this,_0x3661cf(0x1d0),this[_0x3661cf(0x1e2)][_0x3661cf(0x1c2)](I[_0x3661cf(0x17d)](vt))),_(this,'_updateLocalCursor',a[_0x3661cf(0x278)]((_0xf35fb2,_0x282c1b)=>{const _0x1885c7=_0x3661cf,_0xda72d1={'eventID':g[_0x1885c7(0x238)][_0x1885c7(0x195)],'data':{'unitID':this[_0x1885c7(0x1c5)],'memberID':this[_0x1885c7(0x2cf)][_0x1885c7(0x26a)](),'selection':B[_0x1885c7(0x35b)](_0xf35fb2,_0x282c1b[_0x1885c7(0x332)])}};this[_0x1885c7(0x2cf)]['send'](_0xda72d1,this['unitID']);},gt)),(this[_0x3661cf(0x1c5)]=_0xc9435f,this[_0x3661cf(0x2cf)]=_0x1d052c,this[_0x3661cf(0x354)]=_0xbc4527,this['_colorAssignService']=_0x121c1f,this[_0x3661cf(0x22e)]=_0x48ddec,this[_0x3661cf(0x2fe)]=_0x38c20c,this[_0x3661cf(0x16f)]=_0x38674b,this[_0x3661cf(0x2c1)]=_0x4fceb7);}get['cursorInfo'](){const _0x77a895=_0x366146;return this[_0x77a895(0x20b)]['getValue']();}get[_0x366146(0x312)](){const _0xb53c56=_0x366146;return this[_0xb53c56(0x1e2)][_0xb53c56(0x1bf)]();}[_0x366146(0x286)](){const _0x4d5802=_0x366146;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x4d5802(0x20b)]['complete'](),this[_0x4d5802(0x1e2)][_0x4d5802(0x161)]([]),this[_0x4d5802(0x1e2)][_0x4d5802(0x328)]();}[_0x366146(0x292)](){const _0x3be2c3=_0x366146;this['_init']||(this['_init']=!0x0,this[_0x3be2c3(0x2cf)]['sessionStatus$'][_0x3be2c3(0x1c2)](I[_0x3be2c3(0x225)](this[_0x3be2c3(0x1a0)]))[_0x3be2c3(0x390)](_0x31292e=>{const _0x165b14=_0x3be2c3;_0x31292e===u[_0x165b14(0x1c4)][_0x165b14(0x237)]?this['_toggleOnline']():this[_0x165b14(0x34c)]();}),this['_session']['event$'][_0x3be2c3(0x1c2)](I[_0x3be2c3(0x225)](this[_0x3be2c3(0x1a0)]))['subscribe'](_0x241a12=>{const _0x5b15ba=_0x3be2c3,_0x258cfc=_0x241a12['eventID'];_0x258cfc===g['CollaborationEvent'][_0x5b15ba(0x195)]&&this['_onCursorUpdate'](_0x241a12),_0x258cfc===g[_0x5b15ba(0x238)][_0x5b15ba(0x26b)]&&this[_0x5b15ba(0x14c)](_0x241a12);}),this['_onRefRangeChange'](),this[_0x3be2c3(0x39d)](this[_0x3be2c3(0x16f)]['onCommandExecuted'](_0x457951=>{const _0x41a946=_0x3be2c3;if(this['_online']&&_0x457951['id']===v['SetSelectionsOperation']['id']&&_0x457951['params'][_0x41a946(0x232)]===this[_0x41a946(0x1c5)]){const _0x2ced6a=_0x457951['params'];this[_0x41a946(0x23e)](_0x2ced6a[_0x41a946(0x288)],_0x2ced6a[_0x41a946(0x153)][0x0]);}})));}['_onCursorUpdate'](_0xa1b469){const _0x4e6e8a=_0x366146;var _0x5e7522,_0x58302;const {memberID:_0x48c744,selection:_0x3ec372}=_0xa1b469[_0x4e6e8a(0x2e9)],{sheetName:_0x2dd31a,range:_0x3b6f29}=B[_0x4e6e8a(0x263)](_0x3ec372),_0x41105a={'name':(_0x58302=(_0x5e7522=this[_0x4e6e8a(0x22e)][_0x4e6e8a(0x3db)](this[_0x4e6e8a(0x1c5)],_0x48c744))==null?void 0x0:_0x5e7522[_0x4e6e8a(0x2a0)])!=null?_0x58302:_0x4e6e8a(0x3f0),'range':this[_0x4e6e8a(0x23b)](_0x2dd31a,_0x3b6f29),'sheetID':_0x2dd31a,'color':this[_0x4e6e8a(0x1d3)][_0x4e6e8a(0x3ca)](_0x48c744),'selection':_0x3ec372},_0x336788=this[_0x4e6e8a(0x191)];_0x336788[_0x4e6e8a(0x17a)](_0x48c744,_0x41105a),this['_cursorInfo$'][_0x4e6e8a(0x161)](_0x336788);}['_onCursorDelete'](_0x5486e2){const _0x358dc3=_0x366146,{memberID:_0x4abf1d}=_0x5486e2[_0x358dc3(0x2e9)],_0x235df5=this[_0x358dc3(0x191)];_0x235df5[_0x358dc3(0x382)](_0x4abf1d),this[_0x358dc3(0x20b)][_0x358dc3(0x161)](_0x235df5);}[_0x366146(0x23b)](_0x4f7740,_0x2b5db3){const _0x4654b4=_0x366146;var _0x4f6092,_0x3adae3;const _0x4cdab5=(_0x3adae3=(_0x4f6092=this[_0x4654b4(0x2fe)]['getUniverSheetInstance'](this[_0x4654b4(0x1c5)]))==null?void 0x0:_0x4f6092['getSheetBySheetId'](_0x4f7740))==null?void 0x0:_0x3adae3[_0x4654b4(0x211)]();return(_0x4cdab5==null?void 0x0:_0x4cdab5[_0x4654b4(0x214)](_0x5121b7=>a[_0x4654b4(0x333)]['contains'](_0x5121b7,_0x2b5db3)))||_0x2b5db3;}['_onRefRangeChange'](){const _0x18439c=_0x366146,_0x55425d=new a[(_0x18439c(0x273))](),_0x30e94d=Et(),_0x33e0c8=()=>{const _0xb63749=_0x18439c;_0x55425d['dispose']();const _0x4fccd1=(_0x3e2105,_0x5eb30c,_0x53288e,_0x4c07bc)=>{const _0x154496=_0x23c7;let _0x4cd2b=[];switch(_0x3e2105['id']){case v[_0x154496(0x386)][_0x154496(0x296)]:{_0x4cd2b=v['handleDeleteRangeMoveLeft'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x26f)]:{_0x4cd2b=v[_0x154496(0x3f5)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x162)]:{_0x4cd2b=v[_0x154496(0x2ce)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)]['InsertRangeMoveDownCommandId']:{_0x4cd2b=v[_0x154496(0x2e2)](_0x3e2105,_0x4c07bc);break;}case v['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x4cd2b=v['handleInsertRangeMoveRight'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x19a)]:{_0x4cd2b=v[_0x154496(0x172)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x26e)]:{_0x4cd2b=v['handleMoveRange'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x32c)]:{_0x4cd2b=v['handleIRemoveCol'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x23f)]:{_0x4cd2b=v[_0x154496(0x2df)](_0x3e2105,_0x4c07bc);break;}}const _0x14830a=v[_0x154496(0x40c)](_0x4cd2b,_0x4c07bc),_0x1d3fe3=this['cursorInfo']['get'](_0x5eb30c);if(_0x1d3fe3&&_0x14830a){const _0x739e15={..._0x1d3fe3,'range':_0x14830a};this[_0x154496(0x191)]['set'](_0x5eb30c,_0x739e15),_0x30e94d(()=>{const _0x5c0545=_0x154496,_0x3937a3=this[_0x5c0545(0x2c1)][_0x5c0545(0x2ea)](_0x14830a,_0x233cd9=>(_0x3937a3[_0x5c0545(0x286)](),_0x4fccd1(_0x233cd9,_0x5eb30c,_0x53288e,_0x14830a)));_0x55425d[_0x5c0545(0x2bb)](_0x3937a3);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xb63749(0x3eb)]((_0x3d273c,_0x497a84)=>{const _0x1aa2b0=_0xb63749,{range:_0x573b46,sheetID:_0x488899}=_0x3d273c,_0x26d2e4=this[_0x1aa2b0(0x2c1)][_0x1aa2b0(0x2ea)](_0x573b46,_0x2caf81=>(_0x26d2e4[_0x1aa2b0(0x286)](),_0x4fccd1(_0x2caf81,_0x497a84,_0x488899,_0x573b46)));_0x55425d[_0x1aa2b0(0x2bb)](_0x26d2e4);});};this[_0x18439c(0x39d)](a[_0x18439c(0x30b)](this[_0x18439c(0x20b)][_0x18439c(0x390)](()=>{_0x33e0c8();})));}['_toggleOnline'](){const _0x561694=_0x366146;var _0x4221ea,_0x3e46cf;if(this[_0x561694(0x1b2)]=!0x0,((_0x4221ea=this[_0x561694(0x2fe)]['getFocusedUnit']())==null?void 0x0:_0x4221ea['getUnitId']())!==this[_0x561694(0x1c5)])return;const _0x546bf6=(_0x3e46cf=this['_injector'][_0x561694(0x268)](v[_0x561694(0x1a6)])[_0x561694(0x243)]())==null?void 0x0:_0x3e46cf[0x0],_0x41d24a=this[_0x561694(0x2fe)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x561694(0x25b)])[_0x561694(0x40a)]();_0x546bf6&&_0x41d24a&&this[_0x561694(0x23e)](_0x41d24a[_0x561694(0x1a3)](),_0x546bf6);}[_0x366146(0x34c)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x366146(0x34a)](a['Injector'])),w(0x3,a[_0x366146(0x34a)](Re)),w(0x4,a[_0x366146(0x34a)](u[_0x366146(0x391)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x366146(0x2d4)]),w(0x7,a['Inject'](v['RefRangeService']))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x264ca9,_0x28d573,_0x3419a4,_0x25e526)=>{const _0x154772=_0x366146;for(var _0x5c8137=_0x25e526>0x1?void 0x0:_0x25e526?Ct(_0x28d573,_0x3419a4):_0x28d573,_0x3c7750=_0x264ca9[_0x154772(0x18d)]-0x1,_0x1588a1;_0x3c7750>=0x0;_0x3c7750--)(_0x1588a1=_0x264ca9[_0x3c7750])&&(_0x5c8137=_0x1588a1(_0x5c8137)||_0x5c8137);return _0x5c8137;},ce=(_0x18f517,_0x58d233)=>(_0x4c1c6b,_0x48efbd)=>_0x58d233(_0x4c1c6b,_0x48efbd,_0x18f517);let F=class extends a[_0x366146(0x25a)]{constructor(_0x1dc9b8,_0x3e716c,_0x25725f){const _0x718645=_0x366146;super(),_(this,_0x718645(0x373),new Map()),_(this,'_entityInit$',new I[(_0x718645(0x1e1))]()),(this[_0x718645(0x2fe)]=_0x1dc9b8,this[_0x718645(0x354)]=_0x3e716c,this[_0x718645(0x298)]=_0x25725f,this[_0x718645(0x3d7)]());}[_0x366146(0x286)](){const _0x368b7e=_0x366146;super[_0x368b7e(0x286)](),this[_0x368b7e(0x1ef)][_0x368b7e(0x328)](),this[_0x368b7e(0x373)]['forEach'](_0x4c947a=>_0x4c947a[_0x368b7e(0x286)]());}['getCollabCursors$'](_0x5041ea){const _0x4903b0=_0x366146;return this['_entities']['has'](_0x5041ea)?this[_0x4903b0(0x373)]['get'](_0x5041ea)['cursorInfo$']:this[_0x4903b0(0x1ef)][_0x4903b0(0x1c2)](I['filter'](_0x4a4cf8=>_0x4a4cf8[_0x4903b0(0x1c5)]===_0x5041ea),I[_0x4903b0(0x1fd)](_0x250de0=>_0x250de0[_0x4903b0(0x1ea)]));}[_0x366146(0x3d7)](){const _0x325a3b=_0x366146;this[_0x325a3b(0x2fe)]['getTypeOfUnitAdded$'](a[_0x325a3b(0x315)][_0x325a3b(0x25b)])[_0x325a3b(0x1c2)](I[_0x325a3b(0x225)](this['dispose$']))['subscribe'](async _0x276e90=>{const _0x66017a=_0x325a3b,_0x15cc09=_0x276e90[_0x66017a(0x349)](),_0x517eaa=await this[_0x66017a(0x1c6)](_0x15cc09);this[_0x66017a(0x1ef)][_0x66017a(0x161)](_0x517eaa),this[_0x66017a(0x373)][_0x66017a(0x17a)](_0x15cc09,_0x517eaa);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x325a3b(0x315)]['UNIVER_DOC'])[_0x325a3b(0x1c2)](I[_0x325a3b(0x225)](this[_0x325a3b(0x1a0)]))['pipe'](I[_0x325a3b(0x221)](_0x4cc08b=>!_0x4cc08b[_0x325a3b(0x349)]()[_0x325a3b(0x20e)]('__')))[_0x325a3b(0x390)](async _0xf981c3=>{const _0x457630=_0x325a3b,_0x25d597=_0xf981c3['getUnitId'](),_0x1c4c44=await this[_0x457630(0x151)](_0x25d597);this[_0x457630(0x1ef)][_0x457630(0x161)](_0x1c4c44),this[_0x457630(0x373)]['set'](_0x25d597,_0x1c4c44);}),I['merge'](this[_0x325a3b(0x2fe)][_0x325a3b(0x2c6)](a[_0x325a3b(0x315)]['UNIVER_DOC']),this[_0x325a3b(0x2fe)][_0x325a3b(0x2c6)](a[_0x325a3b(0x315)]['UNIVER_SHEET']))['pipe'](I[_0x325a3b(0x225)](this[_0x325a3b(0x1a0)]))[_0x325a3b(0x390)](_0x54dbd8=>{const _0x2529d2=_0x325a3b,_0x321cfe=_0x54dbd8[_0x2529d2(0x349)](),_0x1728aa=this[_0x2529d2(0x373)][_0x2529d2(0x268)](_0x321cfe);_0x1728aa&&(_0x1728aa[_0x2529d2(0x286)](),this[_0x2529d2(0x373)]['delete'](_0x321cfe));});}async[_0x366146(0x1c6)](_0x96f4e1){const _0x4eade9=_0x366146,_0x4e3114=await this[_0x4eade9(0x298)][_0x4eade9(0x157)](_0x96f4e1),_0x38c8e7=this['_injector'][_0x4eade9(0x3f3)](ge,_0x96f4e1,_0x4e3114);return _0x38c8e7[_0x4eade9(0x292)](),_0x38c8e7;}async[_0x366146(0x151)](_0x5f49a5){const _0x6739a7=_0x366146,_0x44168d=await this[_0x6739a7(0x298)][_0x6739a7(0x157)](_0x5f49a5),_0x374b05=this[_0x6739a7(0x354)][_0x6739a7(0x3f3)](ve,_0x5f49a5,_0x44168d);return _0x374b05[_0x6739a7(0x292)](),_0x374b05;}};F=pt([ce(0x0,a[_0x366146(0x375)]),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a[_0x366146(0x34a)](u[_0x366146(0x31a)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x2950ce,_0x4e6a24){const _0x589528=_0x366146;let {radius:_0x30b527,width:_0x3bf2c5,height:_0x349fc6}=_0x4e6a24;_0x30b527=_0x30b527!=null?_0x30b527:0x0,_0x3bf2c5=_0x3bf2c5!=null?_0x3bf2c5:0x1e,_0x349fc6=_0x349fc6!=null?_0x349fc6:0x1e;let _0x50e921=0x0,_0x100bc3=0x0,_0x2f1ff5=0x0;_0x50e921=_0x100bc3=_0x2f1ff5=Math['min'](_0x30b527,_0x3bf2c5/0x2,_0x349fc6/0x2),_0x2950ce[_0x589528(0x38f)](),_0x2950ce[_0x589528(0x184)](_0x50e921,0x0),_0x2950ce[_0x589528(0x21c)](_0x3bf2c5-_0x100bc3,0x0),_0x2950ce['arc'](_0x3bf2c5-_0x100bc3,_0x100bc3,_0x100bc3,Math['PI']*0x3/0x2,0x0,!0x1),_0x2950ce[_0x589528(0x21c)](_0x3bf2c5,_0x349fc6-_0x2f1ff5),_0x2950ce[_0x589528(0x2ae)](_0x3bf2c5-_0x2f1ff5,_0x349fc6-_0x2f1ff5,_0x2f1ff5,0x0,Math['PI']/0x2,!0x1),_0x2950ce[_0x589528(0x21c)](0x0,_0x349fc6),_0x2950ce[_0x589528(0x21c)](0x0,_0x50e921),_0x2950ce['arc'](_0x50e921,_0x50e921,_0x50e921,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2950ce[_0x589528(0x2f3)](),_0x4e6a24[_0x589528(0x167)]&&(_0x2950ce[_0x589528(0x3c6)](),_0x2950ce[_0x589528(0x245)]=_0x4e6a24[_0x589528(0x167)],_0x4e6a24['fillRule']==='evenodd'?_0x2950ce[_0x589528(0x167)](_0x589528(0x3c8)):_0x2950ce['fill'](),_0x2950ce[_0x589528(0x2b6)]());}class re extends C[_0x366146(0x29d)]{constructor(_0x1ea195,_0x509e01){const _0xf85327=_0x366146;super(_0x1ea195,_0x509e01),_(this,_0xf85327(0x1a2)),_(this,_0xf85327(0x327)),(this[_0xf85327(0x1a2)]=_0x509e01==null?void 0x0:_0x509e01[_0xf85327(0x1a2)],this[_0xf85327(0x327)]=_0x509e01==null?void 0x0:_0x509e01[_0xf85327(0x327)]);}static['drawWith'](_0x4f3e07,_0xb5d4c2){const _0x4e4914=_0x366146,{text:_0x255b81,color:_0x28dab5}=_0xb5d4c2;_0x4f3e07[_0x4e4914(0x3c6)](),_0x4f3e07[_0x4e4914(0x3a6)]=_0x4e4914(0x276);const _0x11bcb1=_0x4f3e07[_0x4e4914(0x31b)](_0x255b81)[_0x4e4914(0x3a1)],_0x32652a=Math[_0x4e4914(0x2d5)](_0x11bcb1+0x2*le,Ue);Ot(_0x4f3e07,{'height':X,'radius':0x4,'width':_0x32652a,'fill':_0x28dab5}),_0x4f3e07[_0x4e4914(0x245)]=_0x4e4914(0x3ce);const _0x152173=le,_0x2ae177=X-Tt,_0x254792=Ue-0x2*le;if(_0x11bcb1>_0x254792){let _0x1356bc='',_0x449df1=0x0;for(const _0x40210e of _0x255b81){const _0x13f5f9=_0x4f3e07[_0x4e4914(0x31b)](_0x40210e)[_0x4e4914(0x3a1)];if(_0x449df1+_0x13f5f9<=_0x254792-_0x4f3e07[_0x4e4914(0x31b)](_0x4e4914(0x2e3))[_0x4e4914(0x3a1)])_0x1356bc+=_0x40210e,_0x449df1+=_0x13f5f9;else{_0x1356bc+=_0x4e4914(0x2e3);break;}}_0x4f3e07[_0x4e4914(0x3d1)](_0x1356bc,_0x152173,_0x2ae177);}else _0x4f3e07['fillText'](_0x255b81,_0x152173,_0x2ae177);_0x4f3e07[_0x4e4914(0x2b6)]();}[_0x366146(0x1c9)](_0x5534e6){re['drawWith'](_0x5534e6,this);}}const _e=_0x366146(0x3fb),Rt=_0x366146(0x29e),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x1e63a1,_0x5e5b2f,_0x54558d,_0x53f805){const _0x579187=_0x366146;_(this,_0x579187(0x397),[]),_(this,_0x579187(0x2e7),null),_(this,'_textBubble',null),_(this,_0x579187(0x250),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x579187(0x2f1)]=_0x1e63a1,this['_scene']=_0x5e5b2f,this['_docSkeleton']=_0x54558d,this[_0x579187(0x28a)]=_0x53f805,this[_0x579187(0x36d)]());}set[_0x366146(0x197)](_0x473f38){const _0x9543fa=_0x366146;_0x473f38?(this[_0x9543fa(0x250)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x9543fa(0x365)]['show']()):(this[_0x9543fa(0x250)]&&this['_anchorDot'][_0x9543fa(0x2f6)](),this[_0x9543fa(0x365)]&&this[_0x9543fa(0x365)][_0x9543fa(0x32b)]());}[_0x366146(0x286)](){const _0x4a640c=_0x366146;for(const _0x53d666 of this[_0x4a640c(0x397)])_0x53d666[_0x4a640c(0x286)]();this[_0x4a640c(0x365)]&&this['_textBubble']['dispose'](),this[_0x4a640c(0x250)]&&this['_anchorDot'][_0x4a640c(0x286)](),this[_0x4a640c(0x2e7)]&&this[_0x4a640c(0x2e7)][_0x4a640c(0x286)](),this[_0x4a640c(0x23d)]&&this[_0x4a640c(0x23d)]();}['_render'](){const _0x39ab3f=_0x366146;var _0x4ae532;const {_docSkeleton:_0x4dfba1,_document:_0x87d8e8}=this,{color:_0x11de78,name:_0x18c923,ranges:_0x4acb0f}=this[_0x39ab3f(0x2f1)],_0xb6dbac=_0x87d8e8[_0x39ab3f(0x14a)](),{docsLeft:_0x422877,docsTop:_0x919c8}=_0xb6dbac,_0x5f4bf1=new p['NodePositionConvertToCursor'](_0xb6dbac,_0x4dfba1);for(const {startOffset:_0x4e6dbc,endOffset:_0x3d71d7,rangeType:_0x5114c1,segmentId:_0x404287,segmentPage:_0x4b6643,collapsed:_0x1b4a71,isActive:_0x4d86cd}of _0x4acb0f){const _0x466ca6=_0x4dfba1[_0x39ab3f(0x3f2)](_0x4e6dbc,!0x0,_0x404287,_0x4b6643);let _0x4811d1=_0x4dfba1[_0x39ab3f(0x3f2)](_0x3d71d7,!0x0,_0x404287,_0x4b6643);if(_0x4811d1==null&&(_0x4811d1=_0x4dfba1[_0x39ab3f(0x3f2)](_0x3d71d7-0x1,!0x1,_0x404287,_0x4b6643)),_0x4d86cd){const {contentBoxPointGroup:_0x5874fa}=_0x5f4bf1[_0x39ab3f(0x407)](_0x4811d1,_0x4811d1);if(_0x5874fa[_0x39ab3f(0x18d)]===0x0)continue;this['_drawAnchor'](_0x11de78,_0x5874fa,_0x422877,_0x919c8,_0x18c923),this[_0x39ab3f(0x23d)]=this[_0x39ab3f(0x316)]();}if(_0x466ca6&&_0x4811d1){if(_0x5114c1===a['DOC_RANGE_TYPE'][_0x39ab3f(0x19b)]){const _0x51a372=new p[(_0x39ab3f(0x299))](_0xb6dbac,_0x4dfba1),{pointGroup:_0x57eea9}=(_0x4ae532=_0x51a372[_0x39ab3f(0x407)](_0x466ca6,_0x4811d1))!=null?_0x4ae532:{};if(_0x57eea9==null||_0x57eea9[_0x39ab3f(0x18d)]===0x0)continue;this[_0x39ab3f(0x2ca)](_0x11de78,_0x57eea9,_0x422877,_0x919c8);}else{if(!_0x1b4a71){const {borderBoxPointGroup:_0xa33821}=_0x5f4bf1[_0x39ab3f(0x407)](_0x466ca6,_0x4811d1);if(_0xa33821[_0x39ab3f(0x18d)]===0x0)continue;this['_drawTextRange'](_0x11de78,_0xa33821,_0x422877,_0x919c8);}}}}}['_drawAnchor'](_0x44a90c,_0x5c8888,_0x66c70b,_0x2a475a,_0x46a8e1){const _0x97e43f=_0x366146,_0x55f33a=this[_0x97e43f(0x3d8)](_0x5c8888),{left:_0x2d95bc,top:_0x3a37a9,height:_0x37040d}=_0x55f33a,_0x352bbe=this['_getScale'](),_0x5ac16e=Nt/_0x352bbe,_0x226b2c=new C[(_0x97e43f(0x1bd))](_e+a['generateRandomId'](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a,'height':_0x37040d,'width':Dt,'fill':_0x44a90c||C[_0x97e43f(0x399)](a['COLORS'][_0x97e43f(0x309)],0x0),'strokeWidth':_0x5ac16e,'stroke':Ut,'evented':!0x0});this[_0x97e43f(0x2e7)]=_0x226b2c,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x226b2c,p['TEXT_RANGE_LAYER_INDEX']);const _0x4599e5=new C[(_0x97e43f(0x1bd))](_e+a[_0x97e43f(0x28f)](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a-he/0x2,'height':he,'width':he,'fill':_0x44a90c||C[_0x97e43f(0x399)](a[_0x97e43f(0x208)][_0x97e43f(0x309)],0x0),'strokeWidth':0x0,'stroke':_0x44a90c||C[_0x97e43f(0x399)](a[_0x97e43f(0x208)][_0x97e43f(0x309)],0x0),'evented':!0x1});this[_0x97e43f(0x250)]=_0x4599e5,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x4599e5,p[_0x97e43f(0x318)]);const _0x466ba2=new re(_e+a[_0x97e43f(0x28f)](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a-X,'text':_0x46a8e1,'color':_0x44a90c});this[_0x97e43f(0x365)]=_0x466ba2,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x466ba2,p[_0x97e43f(0x318)]),this[_0x97e43f(0x197)]=!0x1;}[_0x366146(0x316)](){const _0x14d033=_0x366146,_0x9bd3e4=this[_0x14d033(0x2e7)]['onPointerEnter$'][_0x14d033(0x227)](()=>{const _0x3be5a4=_0x14d033;this[_0x3be5a4(0x197)]=!0x0;}),_0x4a745b=this['_anchor'][_0x14d033(0x302)]['subscribeEvent'](()=>{const _0x4fa14b=_0x14d033;this['_hideTimer']&&clearTimeout(this[_0x4fa14b(0x370)]),this[_0x4fa14b(0x370)]=setTimeout(()=>{const _0xb6d390=_0x4fa14b;this[_0xb6d390(0x197)]=!0x1;},0x7d0);});return()=>{const _0x3f4865=_0x14d033;_0x9bd3e4[_0x3f4865(0x3e0)](),_0x4a745b[_0x3f4865(0x3e0)]();};}[_0x366146(0x37a)](_0xaa1c23,_0x3ea245,_0x21540f,_0x26f3ea){const _0xab55b9=_0x366146,_0x46520f=new a[(_0xab55b9(0x25e))](_0xaa1c23)['setAlpha'](0.2)[_0xab55b9(0x236)](),_0x1fd83d=new C[(_0xab55b9(0x409))](Rt+a[_0xab55b9(0x28f)](H),{'pointsGroup':_0x3ea245,'fill':_0x46520f||C[_0xab55b9(0x399)](a[_0xab55b9(0x208)]['black'],0.2),'left':_0x21540f,'top':_0x26f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xab55b9(0x397)][_0xab55b9(0x192)](_0x1fd83d),this[_0xab55b9(0x3b0)][_0xab55b9(0x201)](_0x1fd83d,p['TEXT_RANGE_LAYER_INDEX']);}[_0x366146(0x2ca)](_0x36f12f,_0x3e0da4,_0x47c554,_0x119d82){const _0x3412cb=_0x366146,_0x45abf1=new a['ColorKit'](_0x36f12f)[_0x3412cb(0x2dd)](0.2)[_0x3412cb(0x236)](),_0x589f4b=new C[(_0x3412cb(0x409))](bt+a[_0x3412cb(0x28f)](H),{'pointsGroup':_0x3e0da4,'fill':_0x45abf1||C[_0x3412cb(0x399)](a[_0x3412cb(0x208)][_0x3412cb(0x309)],0.2),'left':_0x47c554,'top':_0x119d82,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3412cb(0x397)]['push'](_0x589f4b),this[_0x3412cb(0x3b0)]['addObject'](_0x589f4b,p[_0x3412cb(0x318)]);}[_0x366146(0x3d8)](_0x1e418b){const _0x1b7b2c=_0x1e418b[0x0],_0x348d6a=_0x1b7b2c[0x0],_0x29f580=_0x1b7b2c[0x2],{x:_0x17f6f3,y:_0xc80b3}=_0x348d6a,{x:_0x3c8c2f,y:_0x129ec8}=_0x29f580;return{'left':_0x17f6f3,'top':_0xc80b3,'width':_0x3c8c2f-_0x17f6f3,'height':_0x129ec8-_0xc80b3};}['_getScale'](){const _0x612794=_0x366146,{scaleX:_0x244c30,scaleY:_0x24e717}=this[_0x612794(0x3b0)][_0x612794(0x374)]();return Math[_0x612794(0x262)](_0x244c30,_0x24e717);}}var Lt=Object[_0x366146(0x3ee)],Mt=(_0x1d48a5,_0x29d6d2,_0x55f7d0,_0x2696ff)=>{const _0x40ad2d=_0x366146;for(var _0x15246c=_0x2696ff>0x1?void 0x0:_0x2696ff?Lt(_0x29d6d2,_0x55f7d0):_0x29d6d2,_0x4ae959=_0x1d48a5[_0x40ad2d(0x18d)]-0x1,_0x237665;_0x4ae959>=0x0;_0x4ae959--)(_0x237665=_0x1d48a5[_0x4ae959])&&(_0x15246c=_0x237665(_0x15246c)||_0x15246c);return _0x15246c;},q=(_0x3e2c31,_0x5cf403)=>(_0x49b4f4,_0x51b0ea)=>_0x5cf403(_0x49b4f4,_0x51b0ea,_0x3e2c31);let Ee=class extends a[_0x366146(0x25a)]{constructor(_0x328e0d,_0xaa94ee,_0x45dcfe,_0x57e7d4,_0x22474e){const _0x200dae=_0x366146;super(),_(this,_0x200dae(0x257),[]),_(this,_0x200dae(0x3be),[]),(this[_0x200dae(0x387)]=_0x328e0d,this[_0x200dae(0x3ff)]=_0xaa94ee,this[_0x200dae(0x1fc)]=_0x45dcfe,this['_commandService']=_0x57e7d4,this[_0x200dae(0x29a)]=_0x22474e,this[_0x200dae(0x3d7)]());}[_0x366146(0x3d7)](){const _0x1c5068=_0x366146,_0x4f0a72=this[_0x1c5068(0x387)]['unitId'],_0x3a47b5=this[_0x1c5068(0x3ff)];this[_0x1c5068(0x39d)](I[_0x1c5068(0x3cb)]([this[_0x1c5068(0x1fc)]['getCollabCursors$'](_0x4f0a72),this[_0x1c5068(0x29a)]['currentTheme$']])['pipe']($[_0x1c5068(0x3e9)](([_0x796c3a,_0xbd2c07])=>({'skeleton':_0x3a47b5['getSkeleton'](),'cursors':[..._0x796c3a[_0x1c5068(0x1cf)]()][_0x1c5068(0x220)](_0x4eeaef=>({..._0x4eeaef,'color':this[_0x1c5068(0x29a)][_0x1c5068(0x2d1)](_0x4eeaef[_0x1c5068(0x1a2)])}))})))[_0x1c5068(0x390)](_0x510f47=>{const _0x4cde93=_0x1c5068;if(this[_0x4cde93(0x37f)](),_0x510f47){const {skeleton:_0x64203b,cursors:_0x61e37}=_0x510f47;this['_updateCollabCursors'](_0x64203b,_0x61e37);}})),this[_0x1c5068(0x285)](),this[_0x1c5068(0x360)]();}[_0x366146(0x284)](_0x5265d4,_0x1a31e7){const _0x5c1059=_0x366146,{scene:_0x1d8cc2,mainComponent:_0x296483}=this[_0x5c1059(0x387)],_0x58badd=_0x1a31e7[_0x5c1059(0x3e9)](_0x2f32d2=>new Le(_0x2f32d2,_0x1d8cc2,_0x5265d4,_0x296483));this[_0x5c1059(0x257)]=_0x58badd,this[_0x5c1059(0x3be)]=_0x1a31e7;}[_0x366146(0x2ba)](){const _0x1f629a=_0x366146;this['_removeCollabCursors']();const {scene:_0x8c29d1,mainComponent:_0x1a2527}=this[_0x1f629a(0x387)],_0x59a05a=this[_0x1f629a(0x3ff)][_0x1f629a(0x170)](),_0x2187b5=this[_0x1f629a(0x3be)][_0x1f629a(0x3e9)](_0x545f1c=>new Le(_0x545f1c,_0x8c29d1,_0x59a05a,_0x1a2527));this[_0x1f629a(0x257)]=_0x2187b5;}[_0x366146(0x37f)](){const _0x45e64f=_0x366146;this[_0x45e64f(0x257)][_0x45e64f(0x3eb)](_0x3fd00f=>_0x3fd00f['dispose']()),this[_0x45e64f(0x257)]=[];}[_0x366146(0x360)](){const _0x4082e2=_0x366146,_0x252d7d=[p['SetDocZoomRatioOperation']['id']];this[_0x4082e2(0x39d)](this['_commandService'][_0x4082e2(0x3e7)](_0x3d488f=>{const _0x3956a2=_0x4082e2;_0x252d7d[_0x3956a2(0x2a6)](_0x3d488f['id'])&&_0x3d488f[_0x3956a2(0x35d)]['unitId']===this[_0x3956a2(0x387)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x366146(0x285)](){const _0x1bc5cb=_0x366146;this[_0x1bc5cb(0x39d)](a[_0x1bc5cb(0x281)](this[_0x1bc5cb(0x387)]['engine'][_0x1bc5cb(0x3ef)])[_0x1bc5cb(0x1c2)]($[_0x1bc5cb(0x221)](_0x4953f5=>_0x4953f5['type']===C[_0x1bc5cb(0x2fd)]['resize']),$[_0x1bc5cb(0x18f)](0x10))['subscribe'](()=>{const _0x349365=_0x1bc5cb;this[_0x349365(0x2ba)]();}));}};Ee=Mt([q(0x1,a[_0x366146(0x34a)](V[_0x366146(0x34f)])),q(0x2,a[_0x366146(0x34a)](F)),q(0x3,a[_0x366146(0x2d4)]),q(0x4,a[_0x366146(0x34a)](a[_0x366146(0x1f8)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x366146(0x29d)]{constructor(_0x1038a1,_0x412d03){const _0x42fd97=_0x366146;super(_0x1038a1,_0x412d03),_(this,_0x42fd97(0x1ae)),_(this,_0x42fd97(0x2f8),!0x1),_(this,_0x42fd97(0x3c7)),_(this,_0x42fd97(0x39e),''),_(this,_0x42fd97(0x3f8),_0x42fd97(0x1e9)),_(this,_0x42fd97(0x1e5)),(_0x412d03&&this[_0x42fd97(0x226)](_0x412d03),this[_0x42fd97(0x16c)]['subscribeEvent'](()=>this[_0x42fd97(0x226)]({'hovered':!0x0})),this[_0x42fd97(0x302)][_0x42fd97(0x227)](()=>this[_0x42fd97(0x226)]({'hovered':!0x1})));}[_0x366146(0x226)](_0x39bb99){const _0xa73723=_0x366146;var _0x55f44f,_0xeed4e5,_0x4adb1f,_0x4db402,_0x1dfd36,_0x5741e9;this[_0xa73723(0x1ae)]=(_0x55f44f=_0x39bb99[_0xa73723(0x1a2)])!=null?_0x55f44f:this[_0xa73723(0x1ae)],this[_0xa73723(0x2f8)]=(_0xeed4e5=_0x39bb99[_0xa73723(0x234)])!=null?_0xeed4e5:this[_0xa73723(0x2f8)],this[_0xa73723(0x3c7)]=(_0x4adb1f=_0x39bb99[_0xa73723(0x332)])!=null?_0x4adb1f:this[_0xa73723(0x3c7)],this[_0xa73723(0x39e)]=(_0x4db402=_0x39bb99[_0xa73723(0x2a0)])!=null?_0x4db402:this[_0xa73723(0x39e)],this[_0xa73723(0x3f8)]=(_0x1dfd36=_0x39bb99['labelPosition'])!=null?_0x1dfd36:this[_0xa73723(0x3f8)],this[_0xa73723(0x1e5)]=(_0x5741e9=_0x39bb99[_0xa73723(0x1a1)])!=null?_0x5741e9:this['_backgroundColor'],this['transformByState']({'width':_0x39bb99[_0xa73723(0x3a1)],'height':_0x39bb99[_0xa73723(0x3a3)]});}[_0x366146(0x14f)](_0x1fe21b){const _0x3f8d00=_0x366146,{row:_0x34aad5,column:_0x3e85ca}=_0x1fe21b;if(_0x34aad5>=this[_0x3f8d00(0x3c7)][_0x3f8d00(0x30d)]&&_0x34aad5<=this['_range'][_0x3f8d00(0x2b4)]&&_0x3e85ca>=this[_0x3f8d00(0x3c7)]['startColumn']&&_0x3e85ca<=this[_0x3f8d00(0x3c7)][_0x3f8d00(0x2c7)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3f8d00(0x226)]({'hovered':!0x1});}[_0x366146(0x27c)](_0x33f839){return!0x1;}['_draw'](_0x2e9dc6){const _0x10b029=_0x366146;C[_0x10b029(0x1bd)]['drawWith'](_0x2e9dc6,{'width':this[_0x10b029(0x3a1)],'height':this[_0x10b029(0x3a3)],'strokeWidth':Pt,'stroke':this[_0x10b029(0x1ae)],'evented':!0x1,'fill':this[_0x10b029(0x1e5)]}),this[_0x10b029(0x2f8)]&&(_0x2e9dc6[_0x10b029(0x3c6)](),_0x2e9dc6[_0x10b029(0x300)](0x1,0x0,0x0,0x1,this['width'],this[_0x10b029(0x3f8)]===_0x10b029(0x398)?0x0:-X),re[_0x10b029(0x3bd)](_0x2e9dc6,{'text':this[_0x10b029(0x39e)],'color':this[_0x10b029(0x1ae)]}),_0x2e9dc6['restore']());}}var wt=Object[_0x366146(0x3ee)],yt=(_0x313a42,_0x2353d7,_0x535407,_0x1db730)=>{const _0x57ead8=_0x366146;for(var _0x51522b=_0x1db730>0x1?void 0x0:_0x1db730?wt(_0x2353d7,_0x535407):_0x2353d7,_0x569f23=_0x313a42[_0x57ead8(0x18d)]-0x1,_0xf90775;_0x569f23>=0x0;_0x569f23--)(_0xf90775=_0x313a42[_0x569f23])&&(_0x51522b=_0xf90775(_0x51522b)||_0x51522b);return _0x51522b;},ue=(_0x1a4a26,_0x5210d5)=>(_0x11ff3b,_0x4a9563)=>_0x5210d5(_0x11ff3b,_0x4a9563,_0x1a4a26);const $t=0x1389;let Ce=class extends a[_0x366146(0x25a)]{constructor(_0x2e8a9d,_0x8d073a,_0xe4d4eb,_0x3168cb){const _0x145fc8=_0x366146;super(),_(this,'_cursors',new Set()),_(this,_0x145fc8(0x3de),null),(this[_0x145fc8(0x387)]=_0x2e8a9d,this['_sheetSkeletonManagerService']=_0x8d073a,this[_0x145fc8(0x1fc)]=_0xe4d4eb,this[_0x145fc8(0x29a)]=_0x3168cb,this[_0x145fc8(0x3d7)]());}[_0x366146(0x3d7)](){const _0xd686a9=_0x366146;this[_0xd686a9(0x269)]['currentSkeleton$'][_0xd686a9(0x1c2)]($[_0xd686a9(0x225)](this[_0xd686a9(0x1a0)]),$[_0xd686a9(0x1fd)](_0x4c0aff=>{const _0x376e81=_0xd686a9;if(_0x4c0aff){const _0x5e4b77=_0x4c0aff[_0x376e81(0x33a)];return I['combineLatest'](this[_0x376e81(0x1fc)][_0x376e81(0x2af)](this[_0x376e81(0x387)][_0x376e81(0x232)]),this['_themeService'][_0x376e81(0x1c0)])[_0x376e81(0x1c2)]($[_0x376e81(0x3e9)](([_0x4da1bb,_0x331af2])=>{const _0x272714=new Map();return _0x4da1bb['forEach']((_0x1df641,_0x17729a)=>{const _0x33b0df=_0x23c7;if(_0x1df641[_0x33b0df(0x1b5)]===_0x5e4b77){const _0x3eb949={..._0x1df641};_0x3eb949['color']=this[_0x33b0df(0x29a)][_0x33b0df(0x2d1)](_0x1df641[_0x33b0df(0x1a2)]),_0x272714[_0x33b0df(0x17a)](_0x17729a,_0x3eb949);}}),{'skeleton':_0x4c0aff,'cursors':_0x272714};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4a3b92,cursors:_0x408c1d})=>{const _0xc61205=_0xd686a9;this[_0xc61205(0x37f)](),_0x4a3b92&&this[_0xc61205(0x284)](_0x4a3b92,_0x408c1d);}),this[_0xd686a9(0x269)]['currentSkeleton$']['subscribe'](_0x3ca6af=>{const _0x442827=_0xd686a9;if(_0x3ca6af==null)return;const {skeleton:_0x2b9e06}=_0x3ca6af,{scene:_0x87e01f}=this[_0x442827(0x387)];_0x87e01f[_0x442827(0x3c2)]['subscribeEvent'](a[_0x442827(0x278)](_0x3929bc=>{const _0x5b7b74=_0x442827;var _0x4f3f67,_0xc5ea3;const {offsetX:_0x291c6f,offsetY:_0x30c06d}=_0x3929bc,{x:_0x587d24,y:_0x5f1708}=_0x87e01f[_0x5b7b74(0x16b)](C[_0x5b7b74(0x247)][_0x5b7b74(0x260)]([_0x291c6f,_0x30c06d])),{scaleX:_0x480af8,scaleY:_0x4a0d84}=_0x87e01f[_0x5b7b74(0x374)](),_0x915eb5=_0x87e01f['getViewport'](C[_0x5b7b74(0x35e)][_0x5b7b74(0x38e)]),_0x4c80a7=_0x87e01f[_0x5b7b74(0x1b7)](C[_0x5b7b74(0x247)][_0x5b7b74(0x260)]([_0x587d24,_0x5f1708]),_0x915eb5),_0x4bb918=_0x2b9e06['getCellPositionByOffset'](_0x291c6f,_0x30c06d,_0x480af8,_0x4a0d84,_0x4c80a7);((_0x4f3f67=this[_0x5b7b74(0x3de)])==null?void 0x0:_0x4f3f67['column'])===_0x4bb918['column']&&((_0xc5ea3=this[_0x5b7b74(0x3de)])==null?void 0x0:_0xc5ea3['row'])===_0x4bb918[_0x5b7b74(0x314)]||this['_cursors']['forEach'](_0x44bf3d=>{const _0x2f6851=_0x5b7b74;_0x44bf3d[_0x2f6851(0x14f)](_0x4bb918);});},0x64));});}[_0x366146(0x284)](_0x436bf4,_0x53848a){const _0x5137b=_0x366146;var _0x580b0f;const _0x4f647c=(_0x580b0f=this[_0x5137b(0x269)]['getCurrent']())==null?void 0x0:_0x580b0f[_0x5137b(0x1c1)];if(!_0x4f647c)return;const _0x81f87e=this[_0x5137b(0x2b9)]();if(!_0x81f87e)return;this[_0x5137b(0x3be)][_0x5137b(0x3eb)](_0x140d63=>{const _0x419965=_0x5137b;_0x140d63[_0x419965(0x16e)]();});const {scene:_0x1cfe9c}=_0x81f87e,_0x397e05=xt(Array[_0x5137b(0x2b2)](_0x53848a[_0x5137b(0x1cf)]()))['map'](_0x2b19b9=>{const _0x304489=_0x5137b,{color:_0x16bd7d,range:_0x344a26,name:_0x574ad1,selection:_0x34f311,sheetID:_0x3b4ae7}=_0x2b19b9,{startColumn:_0x217580,startRow:_0x2b958c,endColumn:_0x4b47bf,endRow:_0x5a7c83}=_0x344a26,_0x25af47=J['getCoordByCell'](_0x2b958c,_0x217580,_0x1cfe9c,_0x4f647c),_0x56a6bb=J['getCoordByCell'](_0x5a7c83,_0x4b47bf,_0x1cfe9c,_0x4f647c),{columnHeaderHeightAndMarginTop:_0x199a22}=_0x4f647c,{startX:_0x2dffb9,startY:_0x468cd2}=_0x25af47,{endX:_0xebc19b,endY:_0x1f351d}=_0x56a6bb,_0x2f918f=_0xebc19b-_0x2dffb9,_0x911cc3=_0x1f351d-_0x468cd2,_0x379855={'labelPosition':_0x468cd2-_0x199a22>=X?_0x304489(0x1e9):_0x304489(0x398),'sheetID':_0x3b4ae7,'range':_0x344a26,'color':_0x16bd7d,'name':_0x574ad1,'selection':_0x34f311,'left':_0x2dffb9,'top':_0x468cd2,'width':_0x2f918f,'height':_0x911cc3,'evented':!0x1,'zIndex':$t};return new je(_0x574ad1,_0x379855);});_0x1cfe9c['addObjects'](_0x397e05,At),this[_0x5137b(0x3be)]=new Set(_0x397e05);}[_0x366146(0x37f)](){const _0x696e8c=_0x366146;var _0x5d274b;(_0x5d274b=this[_0x696e8c(0x3be)])==null||_0x5d274b[_0x696e8c(0x3eb)](_0xfff85c=>_0xfff85c[_0x696e8c(0x286)]());}[_0x366146(0x2b9)](){const _0xd80395=_0x366146;return J[_0xd80395(0x1f9)](this[_0xd80395(0x387)][_0xd80395(0x186)],this[_0xd80395(0x387)]);}};Ce=yt([ue(0x1,a[_0x366146(0x34a)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x366146(0x34a)](F)),ue(0x3,a['Inject'](a[_0x366146(0x1f8)]))],Ce);function xt(_0x298ef0){const _0x30935f=_0x366146,_0x79e285=new Map();return _0x298ef0[_0x30935f(0x3eb)](_0x1e424e=>{const _0x5d48d7=_0x30935f;if(_0x79e285[_0x5d48d7(0x3fe)](_0x1e424e[_0x5d48d7(0x21f)])){const _0x52a909=_0x79e285[_0x5d48d7(0x268)](_0x1e424e[_0x5d48d7(0x21f)]);_0x52a909[_0x5d48d7(0x2a0)]+=',\x20'+_0x1e424e[_0x5d48d7(0x2a0)];}else _0x79e285[_0x5d48d7(0x17a)](_0x1e424e[_0x5d48d7(0x21f)],_0x1e424e);}),Array[_0x30935f(0x2b2)](_0x79e285['values']());}var Bt=Object[_0x366146(0x3ee)],Ft=(_0x240f0b,_0x566051,_0xb310b,_0x224288)=>{const _0x280790=_0x366146;for(var _0x4cc1a8=_0x224288>0x1?void 0x0:_0x224288?Bt(_0x566051,_0xb310b):_0x566051,_0x2e8f25=_0x240f0b[_0x280790(0x18d)]-0x1,_0x418456;_0x2e8f25>=0x0;_0x2e8f25--)(_0x418456=_0x240f0b[_0x2e8f25])&&(_0x4cc1a8=_0x418456(_0x4cc1a8)||_0x4cc1a8);return _0x4cc1a8;},y=(_0x38791c,_0x1442e1)=>(_0x5e3733,_0xfe02da)=>_0x1442e1(_0x5e3733,_0xfe02da,_0x38791c);let Z=class extends a[_0x366146(0x176)]{constructor(_0x82bd03,_0x2a1b5a,_0x26ed3e,_0x4f46fb,_0x471b16,_0x1ec859){const _0xb1be8d=_0x366146;super(),this[_0xb1be8d(0x23a)]=_0x82bd03,this[_0xb1be8d(0x1ed)]=_0x2a1b5a,this[_0xb1be8d(0x1e7)]=_0x26ed3e,this[_0xb1be8d(0x24d)]=_0x4f46fb,this[_0xb1be8d(0x3a2)]=_0x471b16,this[_0xb1be8d(0x2ac)]=_0x1ec859,this[_0xb1be8d(0x3ec)](),this['_initEvent']();}[_0x366146(0x3ec)](){const _0x26d49a=_0x366146;this[_0x26d49a(0x39d)](this['_beforeCloseService'][_0x26d49a(0x350)](()=>{const _0x13250d=_0x26d49a;if(this[_0x13250d(0x1ed)][_0x13250d(0x189)][_0x13250d(0x224)])return this[_0x13250d(0x2ac)]['t'](_0x13250d(0x279));}));}[_0x366146(0x297)](){const _0x1916cd=_0x366146;this[_0x1916cd(0x39d)](this[_0x1916cd(0x1e7)][_0x1916cd(0x18c)][_0x1916cd(0x390)](_0x1dca58=>{const _0xc2f720=_0x1916cd;_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x3d5)]&&this[_0xc2f720(0x24d)][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this['_localeService']['t'](_0xc2f720(0x2b7))}),_0x1dca58['id']===u['CollaborationUIEventId'][_0xc2f720(0x3d4)]&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this[_0xc2f720(0x2ac)]['t']('collaboration.closeRoom')}),_0x1dca58['id']===u[_0xc2f720(0x28d)]['PERMISSION_DENIED']&&this['_notificationService'][_0xc2f720(0x2f6)]({'title':this['_localeService']['t'](_0xc2f720(0x169)),'content':this[_0xc2f720(0x2ac)]['t'](_0xc2f720(0x38c)),'type':_0xc2f720(0x329),'duration':0x0}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x34b)]&&this['_messageService'][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x1e3)],'content':this['_localeService']['t'](_0xc2f720(0x3ea))+'('+_0x1dca58[_0xc2f720(0x2e9)]+')'}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x2cd)]&&this[_0xc2f720(0x24d)][_0xc2f720(0x2f6)]({'type':T['MessageType'][_0xc2f720(0x362)],'content':this['_localeService']['t'](_0x1dca58[_0xc2f720(0x2e9)]||'')}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x152)]&&this['_messageService'][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this[_0xc2f720(0x2ac)]['t'](_0xc2f720(0x1f6))}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x3ba)]&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)]['Error'],'content':this[_0xc2f720(0x2ac)]['t']('session.connection-failed')}),_0x1dca58['id']===u[_0xc2f720(0x28d)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)]['Error'],'content':this[_0xc2f720(0x2ac)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x366146(0x270)]),y(0x1,u[_0x366146(0x32d)]),y(0x2,a[_0x366146(0x34a)](u['CollaborationUIEventService'])),y(0x3,O[_0x366146(0x3a4)]),y(0x4,O[_0x366146(0x27d)]),y(0x5,a[_0x366146(0x34a)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x196081,_0x41a72b,_0x25a1e3,_0x25db07)=>{const _0x2e8a8d=_0x366146;for(var _0x2e973a=_0x25db07>0x1?void 0x0:_0x25db07?jt(_0x41a72b,_0x25a1e3):_0x41a72b,_0x1d80ec=_0x196081[_0x2e8a8d(0x18d)]-0x1,_0x494ad5;_0x1d80ec>=0x0;_0x1d80ec--)(_0x494ad5=_0x196081[_0x1d80ec])&&(_0x2e973a=_0x494ad5(_0x2e973a)||_0x2e973a);return _0x2e973a;},z=(_0x544899,_0x463e78)=>(_0x4396f2,_0x3c9ad0)=>_0x463e78(_0x4396f2,_0x3c9ad0,_0x544899);let Q=class extends a['Disposable']{constructor(_0x2ecb28,_0x407713,_0x47b174,_0x39a7a9){const _0x4173cc=_0x366146;super(),_(this,'_memberID'),(this[_0x4173cc(0x354)]=_0x2ecb28,this[_0x4173cc(0x2a2)]=_0x407713,this[_0x4173cc(0x204)]=_0x47b174,this[_0x4173cc(0x2ef)]=_0x39a7a9,this['_init']());}[_0x366146(0x3d7)](){const _0x2501be=_0x366146;this[_0x2501be(0x348)](),this[_0x2501be(0x3b7)](),this['_monkeyPatchLogService'](),this[_0x2501be(0x367)]();}[_0x366146(0x367)](){const _0x3c14b3=_0x366146;this[_0x3c14b3(0x39d)](this[_0x3c14b3(0x2ef)][_0x3c14b3(0x389)]['subscribe'](_0xe4c856=>{const _0x3907a2=_0x3c14b3;this[_0x3907a2(0x249)]=_0xe4c856==null?void 0x0:_0xe4c856[_0x3907a2(0x200)];}));}[_0x366146(0x348)](){const _0x1f387a=_0x366146,_0x16f050=_0x3b24d7=>{const _0x3a3a5c=_0x23c7;var _0x2b6906;this[_0x3a3a5c(0x3bc)](_0x3a3a5c(0x329),_0x3a3a5c(0x2c2)+_0x3b24d7['message']+_0x3a3a5c(0x3cc)+_0x3b24d7['filename']+':'+_0x3b24d7[_0x3a3a5c(0x2a3)]+':'+_0x3b24d7[_0x3a3a5c(0x320)]+'\x0a'+(((_0x2b6906=_0x3b24d7[_0x3a3a5c(0x329)])==null?void 0x0:_0x2b6906[_0x3a3a5c(0x1a7)])||''));};window[_0x1f387a(0x15f)]('error',_0x16f050),this[_0x1f387a(0x39d)](()=>{const _0x2396a8=_0x1f387a;window[_0x2396a8(0x395)](_0x2396a8(0x329),_0x16f050);});}[_0x366146(0x3b7)](){const _0x25e391=_0x366146,_0x2099aa=_0x4ab82d=>{const _0x546e08=_0x23c7;this[_0x546e08(0x3bc)](_0x546e08(0x329),_0x546e08(0x235)+_0x4ab82d[_0x546e08(0x3d2)]);};window[_0x25e391(0x15f)](_0x25e391(0x2cc),_0x2099aa),this['disposeWithMe'](()=>{const _0x3d2b10=_0x25e391;window[_0x3d2b10(0x395)](_0x3d2b10(0x2cc),_0x2099aa);});}[_0x366146(0x2eb)](){const _0x93db32=_0x366146,_0x3256a7=this[_0x93db32(0x204)][_0x93db32(0x329)]['bind'](this['_logService']);this[_0x93db32(0x204)][_0x93db32(0x329)]=(..._0x514338)=>{const _0x299657=_0x93db32,_0xca01b=_0x514338[_0x299657(0x3e9)](_0x38937a=>_0x38937a instanceof Error?_0x38937a[_0x299657(0x20a)]+'\x0a'+_0x38937a[_0x299657(0x1a7)]:String(_0x38937a))[_0x299657(0x295)]('\x20');this['_uploadLog']('error',_0x299657(0x36e)+_0xca01b),_0x3256a7(..._0x514338);},this[_0x93db32(0x39d)](()=>{const _0x19558b=_0x93db32;this[_0x19558b(0x204)]['error']=_0x3256a7;});}[_0x366146(0x3bc)](_0x2b9861,_0xbf4df0){const _0x168994=_0x366146;try{const _0x36d152={'userId':this['_memberID'],'logLabel':_0x2b9861,'content':_0xbf4df0};this[_0x168994(0x2a2)][_0x168994(0x1b3)](_0x168994(0x1db),{'body':_0x36d152})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x366146(0x364)])),z(0x1,a['Inject'](x[_0x366146(0x388)])),z(0x2,a[_0x366146(0x2e8)]),z(0x3,a[_0x366146(0x34a)](u[_0x366146(0x31a)]))],Q);const Yt=_0x366146(0x1ca),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x4f7341,_0x152d4e,_0xd7dbcb,_0x4d85a2)=>{for(var _0x56f30c=_0x4d85a2>0x1?void 0x0:_0x4d85a2?Ht(_0x152d4e,_0xd7dbcb):_0x152d4e,_0x456f96=_0x4f7341['length']-0x1,_0x37d7a6;_0x456f96>=0x0;_0x456f96--)(_0x37d7a6=_0x4f7341[_0x456f96])&&(_0x56f30c=_0x37d7a6(_0x56f30c)||_0x56f30c);return _0x56f30c;},Ae=(_0x541fd3,_0xf76c67)=>(_0x1dee17,_0x146473)=>_0xf76c67(_0x1dee17,_0x146473,_0x541fd3);let ee=class{constructor(_0x22d8c6,_0x1371d1){const _0x450854=_0x366146;this[_0x450854(0x1e8)]=_0x22d8c6,this['_renderManagerService']=_0x1371d1;}[_0x366146(0x3ac)](_0x342b3b){const _0x58e430=_0x366146;this[_0x58e430(0x305)](_0x342b3b),this['_transformPreviousActiveRange'](_0x342b3b);}['transformRemoteChangeset'](_0x13e790){const _0x3a1c11=_0x366146,{unitID:_0x55cc4e}=_0x13e790,_0x2fd31d=this[_0x3a1c11(0x3fd)][_0x3a1c11(0x216)](_0x55cc4e)['with'](p[_0x3a1c11(0x2c4)]),{redoCache:_0x511bb7}=_0x2fd31d[_0x3a1c11(0x3aa)]();if(_0x511bb7[_0x3a1c11(0x18d)]===0x0)return _0x13e790;let _0x578356=a['Tools'][_0x3a1c11(0x363)](_0x13e790['mutations'][0x0]);for(let _0x4759d5=0x0;_0x4759d5<_0x511bb7[_0x3a1c11(0x18d)];_0x4759d5++){const _0x4b6945={'id':_0x3a1c11(0x155),'params':{..._0x511bb7[_0x4759d5]}},_0x28fba5=this['_transformService'][_0x3a1c11(0x206)](_0x578356,_0x4b6945,!0x1);if(g['isTransformMutationFailure'](_0x28fba5))throw _0x28fba5[_0x3a1c11(0x329)];_0x578356=_0x28fba5['m1Prime'];}return{...a[_0x3a1c11(0x1d5)][_0x3a1c11(0x363)](_0x13e790),'mutations':[_0x578356]};}[_0x366146(0x305)](_0x2aa4cc){const _0x218918=_0x366146,{unitID:_0x4aaaa0}=_0x2aa4cc,_0x571018=this[_0x218918(0x3fd)][_0x218918(0x216)](_0x4aaaa0)[_0x218918(0x1eb)](p[_0x218918(0x2c4)]),{undoCache:_0x583026,redoCache:_0x4a230a}=_0x571018[_0x218918(0x3aa)]();if(_0x583026[_0x218918(0x18d)]===0x0||_0x4a230a[_0x218918(0x18d)]===0x0)return;const _0x4e89ec=[],_0x3dbf95=[];let _0x3b5a53=a[_0x218918(0x1d5)]['deepClone'](_0x2aa4cc[_0x218918(0x32f)][0x0]),_0x38bb94=a['Tools'][_0x218918(0x363)](_0x2aa4cc[_0x218918(0x32f)][0x0]);for(let _0x2de221=_0x583026[_0x218918(0x18d)]-0x1;_0x2de221>=0x0;_0x2de221--){const _0x36c70d={'id':_0x218918(0x155),'params':{..._0x583026[_0x2de221]}},_0x3a21e0={'id':_0x218918(0x155),'params':{..._0x4a230a[_0x2de221]}},_0x4be2de=this[_0x218918(0x1e8)][_0x218918(0x206)](_0x3b5a53,_0x36c70d,!0x1),_0x1f8250=this[_0x218918(0x1e8)][_0x218918(0x206)](_0x38bb94,_0x3a21e0,!0x1);if(g[_0x218918(0x339)](_0x4be2de))throw _0x4be2de['error'];if(g['isTransformMutationFailure'](_0x1f8250))throw _0x1f8250[_0x218918(0x329)];_0x4e89ec['unshift'](_0x4be2de[_0x218918(0x340)][_0x218918(0x35d)]),_0x3dbf95[_0x218918(0x266)](_0x1f8250['m2Prime'][_0x218918(0x35d)]),_0x3b5a53=_0x4be2de[_0x218918(0x28b)],_0x38bb94=_0x1f8250['m1Prime'];}_0x571018[_0x218918(0x3b5)]({'undoCache':_0x4e89ec,'redoCache':_0x3dbf95});}[_0x366146(0x17f)](_0x427436){const _0x419577=_0x366146,{unitID:_0x11c962}=_0x427436,_0x2b8b1f=this[_0x419577(0x3fd)][_0x419577(0x216)](_0x11c962)[_0x419577(0x1eb)](p[_0x419577(0x2c4)]),_0x386001=_0x2b8b1f[_0x419577(0x3fc)]();if(_0x386001==null)return;const _0x5001af=[{'id':_0x419577(0x155),'params':{'unitId':_0x427436[_0x419577(0x1c5)],'actions':null,'textRanges':[_0x386001]}}],_0xade527=this[_0x419577(0x1e8)][_0x419577(0x2f7)](_0x427436,_0x5001af);if(!g[_0x419577(0x283)](_0xade527))throw _0xade527[_0x419577(0x329)];const _0x5bb34c=_0xade527[_0x419577(0x340)][0x0][_0x419577(0x35d)][_0x419577(0x24b)];Array[_0x419577(0x15d)](_0x5bb34c)&&_0x5bb34c[_0x419577(0x18d)]&&_0x2b8b1f['setActiveRange'](_0x5bb34c[0x0]);}};ee=Wt([Ae(0x0,g[_0x366146(0x1de)]),Ae(0x1,C[_0x366146(0x1da)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x169581,_0x3fc159,_0x321a4f,_0x558d26)=>{for(var _0x599c1e=_0x558d26>0x1?void 0x0:_0x558d26?Vt(_0x3fc159,_0x321a4f):_0x3fc159,_0x45157a=_0x169581['length']-0x1,_0x528651;_0x45157a>=0x0;_0x45157a--)(_0x528651=_0x169581[_0x45157a])&&(_0x599c1e=_0x528651(_0x599c1e)||_0x599c1e);return _0x599c1e;},Ie=(_0x2db9e9,_0x19a54b)=>(_0x48c04f,_0x3e94bc)=>_0x19a54b(_0x48c04f,_0x3e94bc,_0x2db9e9);let te=class{constructor(_0x20980b,_0x39c01f,_0x43e1){const _0x1edc39=_0x366146;this[_0x1edc39(0x354)]=_0x20980b,this['_transformService']=_0x39c01f,this[_0x1edc39(0x2d7)]=_0x43e1;}[_0x366146(0x30e)](_0x3bce88){const _0x23f1b3=_0x366146;this[_0x23f1b3(0x3ed)](_0x3bce88);}['transformRemoteChangeset'](_0x34ab43){const _0x37f48b=_0x366146,{unitID:_0x3a1767}=_0x34ab43,{collaboration:_0x5e1b6d}=this[_0x37f48b(0x2d7)][_0x37f48b(0x406)](_0x3a1767);if(_0x5e1b6d['length']===0x0)return _0x34ab43;let _0x69014f=a[_0x37f48b(0x1d5)][_0x37f48b(0x363)](_0x34ab43[_0x37f48b(0x32f)][0x0]);for(let _0x37ccdc=0x0;_0x37ccdc<_0x5e1b6d[_0x37f48b(0x18d)];_0x37ccdc++){const _0x48a8e5={'id':_0x37f48b(0x155),'params':{'unitId':_0x5e1b6d[_0x37ccdc]['unitId'],..._0x5e1b6d[_0x37ccdc][_0x37f48b(0x2e6)]}},_0x531b4b=this[_0x37f48b(0x1e8)]['transformMutation'](_0x69014f,_0x48a8e5,!0x1);if(g['isTransformMutationFailure'](_0x531b4b))throw _0x531b4b[_0x37f48b(0x329)];_0x69014f=_0x531b4b[_0x37f48b(0x28b)];}return{...a['Tools'][_0x37f48b(0x363)](_0x34ab43),'mutations':[_0x69014f]};}[_0x366146(0x3ed)](_0x1c6c58){const _0x2b09aa=_0x366146,{unitID:_0x2b695c}=_0x1c6c58,{history:_0x5d923e,collaboration:_0x43d784}=this[_0x2b09aa(0x2d7)][_0x2b09aa(0x406)](_0x2b695c);if(_0x5d923e['length']===0x0&&_0x43d784[_0x2b09aa(0x18d)]===0x0)return;const _0x1ae243=[],_0x45331b=[];let _0x5364d6=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]),_0x4971d5=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58['mutations'][0x0]);for(let _0x2de529=_0x5d923e[_0x2b09aa(0x18d)]-0x1;_0x2de529>=0x0;_0x2de529--){const _0x2ce4a3={'id':_0x2b09aa(0x155),'params':{'unitId':_0x5d923e[_0x2de529][_0x2b09aa(0x232)],..._0x5d923e[_0x2de529][_0x2b09aa(0x37c)]}},_0x3cf09f={'id':_0x2b09aa(0x155),'params':{'unitId':_0x5d923e[_0x2de529]['unitId'],..._0x5d923e[_0x2de529][_0x2b09aa(0x2e6)]}},_0x14a389=this['_transformService']['transformMutation'](_0x5364d6,_0x2ce4a3,!0x1),_0x3e470b=this[_0x2b09aa(0x1e8)][_0x2b09aa(0x206)](_0x4971d5,_0x3cf09f,!0x1);if(g['isTransformMutationFailure'](_0x14a389))throw _0x14a389[_0x2b09aa(0x329)];if(g[_0x2b09aa(0x339)](_0x3e470b))throw _0x3e470b[_0x2b09aa(0x329)];_0x1ae243[_0x2b09aa(0x266)]({..._0x5d923e[_0x2de529],'undoState':_0x14a389[_0x2b09aa(0x340)]['params'],'redoState':_0x3e470b[_0x2b09aa(0x340)][_0x2b09aa(0x35d)]}),_0x5364d6=_0x14a389[_0x2b09aa(0x28b)],_0x4971d5=_0x3e470b[_0x2b09aa(0x28b)];}_0x5364d6=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]),_0x4971d5=a['Tools'][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]);for(let _0x4702e8=_0x43d784[_0x2b09aa(0x18d)]-0x1;_0x4702e8>=0x0;_0x4702e8--){const _0x1371b1={'id':_0x2b09aa(0x155),'params':{'unitId':_0x43d784[_0x4702e8][_0x2b09aa(0x232)],..._0x43d784[_0x4702e8][_0x2b09aa(0x37c)]}},_0x297ee7={'id':_0x2b09aa(0x155),'params':{'unitId':_0x43d784[_0x4702e8][_0x2b09aa(0x232)],..._0x43d784[_0x4702e8]['redoState']}},_0x7c2335=this[_0x2b09aa(0x1e8)][_0x2b09aa(0x206)](_0x5364d6,_0x1371b1,!0x1),_0x5db77d=this['_transformService']['transformMutation'](_0x4971d5,_0x297ee7,!0x1);if(g[_0x2b09aa(0x339)](_0x7c2335))throw _0x7c2335[_0x2b09aa(0x329)];if(g['isTransformMutationFailure'](_0x5db77d))throw _0x5db77d['error'];_0x45331b[_0x2b09aa(0x266)]({..._0x43d784[_0x4702e8],'undoState':_0x7c2335[_0x2b09aa(0x340)][_0x2b09aa(0x35d)],'redoState':_0x5db77d['m2Prime'][_0x2b09aa(0x35d)]}),_0x5364d6=_0x7c2335[_0x2b09aa(0x28b)],_0x4971d5=_0x5db77d['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x2b695c,{'history':_0x1ae243,'collaboration':_0x45331b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x366146(0x364)])),Ie(0x1,g[_0x366146(0x1de)]),Ie(0x2,a['Inject'](p[_0x366146(0x1b4)]))],te);var Xt=Object[_0x366146(0x3ee)],Kt=(_0xa481d1,_0x55975a,_0x4d2f00,_0x3bf65b)=>{const _0x1418e8=_0x366146;for(var _0x39d40c=_0x3bf65b>0x1?void 0x0:_0x3bf65b?Xt(_0x55975a,_0x4d2f00):_0x55975a,_0x51d900=_0xa481d1[_0x1418e8(0x18d)]-0x1,_0x50792f;_0x51d900>=0x0;_0x51d900--)(_0x50792f=_0xa481d1[_0x51d900])&&(_0x39d40c=_0x50792f(_0x39d40c)||_0x39d40c);return _0x39d40c;},Pe=(_0x3f0559,_0x19fce5)=>(_0x3faf31,_0x5813f5)=>_0x19fce5(_0x3faf31,_0x5813f5,_0x3f0559);let se=class{constructor(_0x44f3d5,_0x5e06b2){const _0x1d8904=_0x366146;this['_injector']=_0x44f3d5,this[_0x1d8904(0x1e8)]=_0x5e06b2;}[_0x366146(0x15a)](_0xc10dda){const _0x2d7f64=_0x366146;var _0x5d0ff3;const _0x22272b=this[_0x2d7f64(0x354)][_0x2d7f64(0x268)](V[_0x2d7f64(0x38d)]),_0x186468=(_0x5d0ff3=_0x22272b['getDocRanges']())!=null?_0x5d0ff3:[];if(_0x186468[_0x2d7f64(0x18d)]===0x0)return;const _0x103fe1=_0xc10dda[_0x2d7f64(0x1c5)],_0x17b7c3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x103fe1,'actions':null,'textRanges':_0x186468}}],_0x2a3640=this[_0x2d7f64(0x1e8)][_0x2d7f64(0x2f7)](_0xc10dda,_0x17b7c3);if(!g[_0x2d7f64(0x283)](_0x2a3640))throw _0x2a3640[_0x2d7f64(0x329)];const _0x10b91e=_0x2a3640[_0x2d7f64(0x340)][0x0]['params']['textRanges'];Array[_0x2d7f64(0x15d)](_0x10b91e)&&_0x10b91e['length']&&_0x22272b['replaceDocRanges'](_0x10b91e,{'unitId':_0x103fe1,'subUnitId':_0x103fe1},!0x1);}};se=Kt([Pe(0x0,a[_0x366146(0x34a)](a[_0x366146(0x364)])),Pe(0x1,g[_0x366146(0x1de)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x48a085,_0x4cc156,_0x40d62f,_0x5062b1)=>{const _0x36d16b=_0x366146;for(var _0x9345c7=_0x5062b1>0x1?void 0x0:_0x5062b1?qt(_0x4cc156,_0x40d62f):_0x4cc156,_0x59111b=_0x48a085[_0x36d16b(0x18d)]-0x1,_0x427d52;_0x59111b>=0x0;_0x59111b--)(_0x427d52=_0x48a085[_0x59111b])&&(_0x9345c7=_0x427d52(_0x9345c7)||_0x9345c7);return _0x9345c7;},N=(_0x24b457,_0x3da734)=>(_0x292a88,_0x5191b6)=>_0x3da734(_0x292a88,_0x5191b6,_0x24b457);let ie=class extends a[_0x366146(0x176)]{constructor(_0x2e815d,_0x46cb7b,_0x31935b,_0x47257b,_0x5e0e97,_0x42357d,_0x274cc5,_0x1c1dd8){const _0x2a3747=_0x366146;super(),_(this,'_status$',new I[(_0x2a3747(0x3a8))](u['CollaborationStatus'][_0x2a3747(0x2ad)])),(this[_0x2a3747(0x2d7)]=_0x2e815d,this['_collaborationController']=_0x46cb7b,this[_0x2a3747(0x1af)]=_0x31935b,this[_0x2a3747(0x31f)]=_0x47257b,this[_0x2a3747(0x19e)]=_0x5e0e97,this['_docSyncEditingCollabCursorService']=_0x42357d,this['_messageService']=_0x274cc5,this[_0x2a3747(0x2ac)]=_0x1c1dd8,this['_initEntityListener']());}['_initEntityListener'](){const _0x24fdbf=_0x366146;this[_0x24fdbf(0x39d)](this[_0x24fdbf(0x240)][_0x24fdbf(0x26d)][_0x24fdbf(0x390)](_0x16df9d=>{const _0x5e9fc6=_0x24fdbf,_0x5f4f5b=this[_0x5e9fc6(0x2d7)][_0x5e9fc6(0x2d8)]['subscribe'](_0x20f732=>{const _0x339548=_0x5e9fc6;if(_0x20f732==null)return;const {unitId:_0x31d6af,redoState:_0x3e5558,commandId:_0x44448c}=_0x20f732;if(_0x31d6af!==_0x16df9d['unitID'])return;const _0x9eccc8={'id':_0x44448c,'type':a['CommandType'][_0x339548(0x385)],'params':{'unitId':_0x31d6af,'actions':_0x3e5558[_0x339548(0x24f)],'textRanges':null}};_0x16df9d[_0x339548(0x3d3)](_0x9eccc8);});if(_0x16df9d[_0x5e9fc6(0x39d)](_0x5f4f5b),_0x16df9d instanceof u['DocCollaborationEntity']){const _0x16eecf={'onTransformIME':_0x4fb0eb=>this[_0x5e9fc6(0x1af)][_0x5e9fc6(0x3ac)](_0x4fb0eb),'onTransformState':_0x602b7b=>this['_docTransformStateCacheService'][_0x5e9fc6(0x30e)](_0x602b7b),'onTransformSelections':_0x28ab5f=>this['_docTransformSelectionsService'][_0x5e9fc6(0x15a)](_0x28ab5f),'onSyncEditingCollabCursor':_0x1b63b7=>this[_0x5e9fc6(0x32a)][_0x5e9fc6(0x1c3)](_0x1b63b7),'onTransformRemoteChangesetByIMECache':_0x1b627b=>this[_0x5e9fc6(0x1af)][_0x5e9fc6(0x3d9)](_0x1b627b),'onTransformRemoteChangesetByStateCache':_0x1a372f=>this[_0x5e9fc6(0x31f)][_0x5e9fc6(0x3d9)](_0x1a372f)};_0x16df9d[_0x5e9fc6(0x223)](_0x16eecf);}}));}};ie=zt([N(0x0,a[_0x366146(0x34a)](p[_0x366146(0x1b4)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x366146(0x34a)](ee)),N(0x3,a[_0x366146(0x34a)](te)),N(0x4,a[_0x366146(0x34a)](se)),N(0x5,a[_0x366146(0x34a)](be)),N(0x6,O[_0x366146(0x3a4)]),N(0x7,a[_0x366146(0x34a)](a[_0x366146(0x267)]))],ie);var G=(_0x16102c=>(_0x16102c[_0x16102c[_0x366146(0x3fa)]=0x0]='UNDEFINED',_0x16102c[_0x16102c['OK']=0x1]='OK',_0x16102c[_0x16102c[_0x366146(0x1ab)]=0x2]=_0x366146(0x1ab),_0x16102c[_0x16102c[_0x366146(0x1e0)]=0x3]=_0x366146(0x1e0),_0x16102c[_0x16102c['NOT_FOUND']=0x4]=_0x366146(0x3b8),_0x16102c[_0x16102c[_0x366146(0x1cb)]=0x5]=_0x366146(0x1cb),_0x16102c[_0x16102c[_0x366146(0x280)]=0x6]=_0x366146(0x280),_0x16102c[_0x16102c[_0x366146(0x372)]=0x7]=_0x366146(0x372),_0x16102c[_0x16102c[_0x366146(0x3f9)]=0x8]=_0x366146(0x3f9),_0x16102c[_0x16102c['COMPLETION_FINISHED']=0x9]=_0x366146(0x183),_0x16102c[_0x16102c[_0x366146(0x353)]=0xa]=_0x366146(0x353),_0x16102c[_0x16102c[_0x366146(0x19f)]=0xb]=_0x366146(0x19f),_0x16102c[_0x16102c[_0x366146(0x3ad)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x16102c[_0x16102c['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x366146(0x359),_0x16102c[_0x16102c[_0x366146(0x218)]=0xe]=_0x366146(0x218),_0x16102c[_0x16102c[_0x366146(0x229)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x16102c[_0x16102c[_0x366146(0x277)]=0x10]=_0x366146(0x277),_0x16102c[_0x16102c[_0x366146(0x187)]=0x64]=_0x366146(0x187),_0x16102c[_0x16102c[_0x366146(0x3c0)]=0x65]=_0x366146(0x3c0),_0x16102c[_0x16102c[_0x366146(0x1ec)]=0xc9]=_0x366146(0x1ec),_0x16102c[_0x16102c['USER_IS_ANONYMOUS']=0xca]=_0x366146(0x27f),_0x16102c[_0x16102c[_0x366146(0x30a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x16102c[_0x16102c[_0x366146(0x2de)]=0x1771]=_0x366146(0x2de),_0x16102c[_0x16102c[_0x366146(0x190)]=0x1772]=_0x366146(0x190),_0x16102c[_0x16102c[_0x366146(0x378)]=0x1773]=_0x366146(0x378),_0x16102c[_0x16102c[_0x366146(0x31e)]=0x1b59]=_0x366146(0x31e),_0x16102c[_0x16102c[_0x366146(0x3bb)]=0x1b5a]=_0x366146(0x3bb),_0x16102c[_0x16102c[_0x366146(0x254)]=0x1b5b]=_0x366146(0x254),_0x16102c[_0x16102c[_0x366146(0x39a)]=0x1b5c]=_0x366146(0x39a),_0x16102c[_0x16102c[_0x366146(0x1f4)]=0x1b5d]='APPLY_DUPLICATED',_0x16102c[_0x16102c[_0x366146(0x29b)]=0x1f41]=_0x366146(0x29b),_0x16102c[_0x16102c[_0x366146(0x24a)]=0x2329]=_0x366146(0x24a),_0x16102c[_0x16102c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x366146(0x158),_0x16102c[_0x16102c[_0x366146(0x1ff)]=0x232b]=_0x366146(0x1ff),_0x16102c[_0x16102c[_0x366146(0x394)]=0x232c]=_0x366146(0x394),_0x16102c[_0x16102c[_0x366146(0x16a)]=0x232d]=_0x366146(0x16a),_0x16102c[_0x16102c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x366146(0x194),_0x16102c[_0x16102c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x366146(0x2b8),_0x16102c[_0x16102c[_0x366146(0x174)]=0x2713]=_0x366146(0x174),_0x16102c[_0x16102c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x366146(0x1c8),_0x16102c[_0x16102c[_0x366146(0x1d2)]=0x271a]=_0x366146(0x1d2),_0x16102c[_0x16102c[_0x366146(0x18b)]=0x271b]=_0x366146(0x18b),_0x16102c[_0x16102c[_0x366146(0x310)]=0x271c]=_0x366146(0x310),_0x16102c[_0x16102c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x366146(0x1a5),_0x16102c[_0x16102c[_0x366146(0x1a4)]=0x271e]=_0x366146(0x1a4),_0x16102c[_0x16102c[_0x366146(0x384)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x16102c[_0x16102c['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x366146(0x20c),_0x16102c[_0x16102c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x366146(0x1f1),_0x16102c[_0x16102c[_0x366146(0x379)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x16102c[_0x16102c[_0x366146(0x1a9)]=0x2ee2]='INVALID_INVITE_CODE',_0x16102c[_0x16102c['INVITE_CODE_REQUIRED']=0x2ee3]=_0x366146(0x1d6),_0x16102c[_0x16102c[_0x366146(0x1b0)]=0x2ee4]=_0x366146(0x1b0),_0x16102c[_0x16102c[_0x366146(0x1f5)]=0x2ee5]=_0x366146(0x1f5),_0x16102c[_0x16102c[_0x366146(0x2a8)]=0x32c9]=_0x366146(0x2a8),_0x16102c[_0x16102c[_0x366146(0x14d)]=0x32ca]=_0x366146(0x14d),_0x16102c[_0x16102c[_0x366146(0x175)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x16102c[_0x16102c[_0x366146(0x30f)]=0x36b1]=_0x366146(0x30f),_0x16102c[_0x16102c[_0x366146(0x2fb)]=0x36b2]=_0x366146(0x2fb),_0x16102c[_0x16102c[_0x366146(0x193)]=0x36b3]=_0x366146(0x193),_0x16102c[_0x16102c[_0x366146(0x313)]=0x36b4]=_0x366146(0x313),_0x16102c[_0x16102c[_0x366146(0x358)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x16102c[_0x16102c[_0x366146(0x38b)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x16102c[_0x16102c[_0x366146(0x22b)]=0x3717]=_0x366146(0x22b),_0x16102c[_0x16102c['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x366146(0x171),_0x16102c[_0x16102c[_0x366146(0x210)]=0x3a99]=_0x366146(0x210),_0x16102c[_0x16102c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x366146(0x2a1),_0x16102c[_0x16102c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x366146(0x17c),_0x16102c[_0x16102c[_0x366146(0x2ec)]=0x3a9c]=_0x366146(0x2ec),_0x16102c[_0x16102c[_0x366146(0x2f4)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x16102c[_0x16102c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x366146(0x29c),_0x16102c[_0x16102c[_0x366146(0x2c9)]=0x3a9f]=_0x366146(0x2c9),_0x16102c[_0x16102c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x366146(0x1ba),_0x16102c[_0x16102c[_0x366146(0x2ed)]=-0x1]=_0x366146(0x2ed),_0x16102c))(G||{});function Jt(_0x1625e1){const _0x4e333a=_0x366146;var _0x4d43f8,_0x27bf8d;const _0x537b7c=(_0x4d43f8=_0x1625e1[_0x4e333a(0x335)])==null?void 0x0:_0x4d43f8['stage'],_0x5b2946=((_0x27bf8d=_0x1625e1[_0x4e333a(0x335)])==null?void 0x0:_0x27bf8d['totalFormulasToCalculate'])||0x0;return _0x537b7c===B[_0x4e333a(0x3f7)][_0x4e333a(0x219)]&&_0x5b2946>0x0;}function Zt(_0x4d7967){const _0x4cc32e=_0x366146;return _0x4d7967[_0x4cc32e(0x1d8)]===B[_0x4cc32e(0x2fc)]['SUCCESS'];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x5c5878,_0x5a6bc3,_0x2615cf,_0x4b7f9e)=>{for(var _0x235c50=_0x4b7f9e>0x1?void 0x0:_0x4b7f9e?Qt(_0x5a6bc3,_0x2615cf):_0x5a6bc3,_0x5a5692=_0x5c5878['length']-0x1,_0x915d23;_0x5a5692>=0x0;_0x5a5692--)(_0x915d23=_0x5c5878[_0x5a5692])&&(_0x235c50=_0x915d23(_0x235c50)||_0x235c50);return _0x235c50;},L=(_0x46b963,_0x3e0876)=>(_0x1cc5b5,_0x2d3ed6)=>_0x3e0876(_0x1cc5b5,_0x2d3ed6,_0x46b963);const ts=_0x366146(0x15c),ss=_0x366146(0x3b2),is=_0x366146(0x35f);let ne=class extends a[_0x366146(0x176)]{constructor(_0x517285,_0x1b6e15,_0x43f8f4,_0x22e25b,_0x2eafcb,_0x365522,_0x3f7a04){const _0x4c7b07=_0x366146;super(),_(this,'_pollingInterval',null),_(this,_0x4c7b07(0x39b),0x0),_(this,'_currentUsage',0x0),_(this,_0x4c7b07(0x256),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x4c7b07(0x24d)]=_0x517285,this[_0x4c7b07(0x16f)]=_0x1b6e15,this[_0x4c7b07(0x244)]=_0x43f8f4,this[_0x4c7b07(0x2a2)]=_0x22e25b,this[_0x4c7b07(0x2fe)]=_0x2eafcb,this[_0x4c7b07(0x204)]=_0x365522,this['_localeService']=_0x3f7a04,this[_0x4c7b07(0x403)]());}[_0x366146(0x403)](){const _0x399671=_0x366146;this['disposeWithMe'](this[_0x399671(0x16f)][_0x399671(0x241)]((_0x107d5f,_0x1ffdcc)=>{const _0x4e1531=_0x399671;var _0x56e838;if(_0x107d5f['id']!==B[_0x4e1531(0x3e1)]['id'])return;const _0x157c14=_0x107d5f[_0x4e1531(0x35d)];if(!this['_hasFormulaInDirtyRanges']((_0x56e838=_0x157c14[_0x4e1531(0x19c)])!=null?_0x56e838:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x4e1531(0x24c)](_0x107d5f,_0x1ffdcc),this[_0x4e1531(0x3e6)](),new a[(_0x4e1531(0x181))]();})),this['disposeWithMe'](this[_0x399671(0x16f)][_0x399671(0x3e7)]((_0x5575c3,_0x53fd72)=>{const _0x2131a7=_0x399671;if(_0x5575c3['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x1d1db9=_0x5575c3[_0x2131a7(0x35d)];if(Jt(_0x1d1db9)){const _0x2509e7=a[_0x2131a7(0x28f)]();this[_0x2131a7(0x256)][_0x2131a7(0x192)](_0x2509e7),this[_0x2131a7(0x2e4)](_0x2509e7);}else{if(Zt(_0x1d1db9)&&this['_taskIds']['length']>0x0){const _0x4bb973=this['_taskIds'][_0x2131a7(0x2da)]();this[_0x2131a7(0x271)](_0x4bb973);}}}));}['dispose'](){const _0x4e01f2=_0x366146;super['dispose'](),this['_clearPolling'](),this[_0x4e01f2(0x256)]=[],this[_0x4e01f2(0x3da)]=0x0,this[_0x4e01f2(0x39b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x366146(0x24c)](_0x346b23,_0x1358c5){const _0x127767=_0x366146;for(let _0x45665f=0x0;_0x45665f<0x1e;_0x45665f++)try{if(await this['_getFormulaLimitStatus'](),this[_0x127767(0x2c0)]()){this[_0x127767(0x173)](_0x346b23,_0x1358c5),this[_0x127767(0x24d)]['show']({'content':this['_localeService']['t'](_0x127767(0x289)),'type':T['MessageType'][_0x127767(0x1cd)]});return;}await new Promise(_0x28b75a=>{const _0x572c8d=_0x127767;this[_0x572c8d(0x3d6)]=window[_0x572c8d(0x3f6)](_0x28b75a,0x3e8);});}catch(_0x925e34){this['_logService'][_0x127767(0x329)](_0x925e34);}this[_0x127767(0x24d)]['show']({'content':this[_0x127767(0x2ac)]['t'](_0x127767(0x2d2)),'type':T[_0x127767(0x326)][_0x127767(0x1e3)]});}[_0x366146(0x173)](_0x3328df,_0x530d0b){const _0x511284=_0x366146;try{this[_0x511284(0x16f)][_0x511284(0x1be)](_0x3328df['id'],_0x3328df['params'],_0x530d0b);}catch(_0x28bd23){this['_logService'][_0x511284(0x329)](_0x28bd23);}}[_0x366146(0x33d)](_0x1aef50,_0x13ea36){const _0x195a2d=_0x366146;_0x13ea36<this[_0x195a2d(0x1cc)]||(this[_0x195a2d(0x1cc)]=_0x13ea36,this['_maxFormulaLimit']=Number[_0x195a2d(0x17e)](_0x1aef50[_0x195a2d(0x38a)]),this[_0x195a2d(0x3da)]=Number['parseInt'](_0x1aef50[_0x195a2d(0x306)]));}async[_0x366146(0x2e4)](_0x4cde0e){const _0x1c17cf=_0x366146;var _0x13b48c,_0x1039f1;const _0x415fb5=Date[_0x1c17cf(0x3ab)]();try{const _0x789f98=((_0x13b48c=this[_0x1c17cf(0x244)][_0x1c17cf(0x251)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x13b48c['startFormulaLimitUrl'])||ss,_0x45a2fa=(await this['_httpService']['post'](_0x789f98,{'body':JSON[_0x1c17cf(0x1b9)]({'taskId':_0x4cde0e})}))[_0x1c17cf(0x1b8)];if(((_0x1039f1=_0x45a2fa[_0x1c17cf(0x329)])==null?void 0x0:_0x1039f1['code'])!==G['OK'])return;this[_0x1c17cf(0x33d)](_0x45a2fa[_0x1c17cf(0x231)],_0x415fb5);}catch(_0x1d52b7){this['_logService']['error'](_0x1d52b7);}}async['_getFormulaLimitStatus'](_0x53afb8){const _0x51d6b8=_0x366146;var _0x4d34d3,_0x91a380;const _0x3a061f=Date[_0x51d6b8(0x3ab)]();try{const _0x41feec=((_0x4d34d3=this[_0x51d6b8(0x244)][_0x51d6b8(0x251)](u[_0x51d6b8(0x3c3)]))==null?void 0x0:_0x4d34d3[_0x51d6b8(0x337)])||ts,_0x42a358=_0x53afb8?_0x41feec+_0x51d6b8(0x20f)+encodeURIComponent(_0x53afb8):_0x41feec,_0x520771=(await this[_0x51d6b8(0x2a2)][_0x51d6b8(0x268)](_0x42a358))[_0x51d6b8(0x1b8)];if(((_0x91a380=_0x520771[_0x51d6b8(0x329)])==null?void 0x0:_0x91a380[_0x51d6b8(0x21d)])!==G['OK'])return;this[_0x51d6b8(0x33d)](_0x520771[_0x51d6b8(0x231)],_0x3a061f);}catch(_0x4bc491){this[_0x51d6b8(0x204)][_0x51d6b8(0x329)](_0x4bc491);}}async[_0x366146(0x271)](_0x5f2613){const _0x234c60=_0x366146;var _0x1c7150,_0xf612ad;const _0x4eac61=Date[_0x234c60(0x3ab)]();try{const _0x40cb11=((_0x1c7150=this[_0x234c60(0x244)][_0x234c60(0x251)](u[_0x234c60(0x3c3)]))==null?void 0x0:_0x1c7150[_0x234c60(0x1ac)])||is,_0xb9ea96=(await this[_0x234c60(0x2a2)][_0x234c60(0x1b3)](_0x40cb11,{'body':JSON[_0x234c60(0x1b9)]({'taskId':_0x5f2613})}))['body'];if(((_0xf612ad=_0xb9ea96[_0x234c60(0x329)])==null?void 0x0:_0xf612ad[_0x234c60(0x21d)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0xb9ea96['limitInfo'],_0x4eac61);}catch(_0x12710b){this[_0x234c60(0x204)][_0x234c60(0x329)](_0x12710b);}}[_0x366146(0x2c0)](){const _0x11e81f=_0x366146;return this[_0x11e81f(0x39b)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x366146(0x3b1)](){const _0x47fd89=_0x366146;this[_0x47fd89(0x3d6)]&&(clearTimeout(this[_0x47fd89(0x3d6)]),this[_0x47fd89(0x3d6)]=null);}[_0x366146(0x3e6)](){const _0x140761=_0x366146;this['_messageService'][_0x140761(0x2f6)]({'content':this[_0x140761(0x2ac)]['t'](_0x140761(0x324)),'type':T[_0x140761(0x326)][_0x140761(0x37e)]});}[_0x366146(0x1f3)](_0x358c70){const _0x80a85c=_0x366146;for(const _0x47b1d5 of _0x358c70){const {unitId:_0x5cb9c9,sheetId:_0x3c9f07,range:_0x2cc0fa}=_0x47b1d5,_0xfe4f1f=this['_univerInstanceService'][_0x80a85c(0x2dc)](_0x5cb9c9);if(!_0xfe4f1f)continue;const _0x60416c=_0xfe4f1f['getSheetBySheetId'](_0x3c9f07);if(!_0x60416c)continue;const _0x128e87=_0x60416c['getCellMatrix']();for(let _0x5cb78c=_0x2cc0fa[_0x80a85c(0x30d)];_0x5cb78c<=_0x2cc0fa[_0x80a85c(0x2b4)];_0x5cb78c++)for(let _0x4e5f4f=_0x2cc0fa['startColumn'];_0x4e5f4f<=_0x2cc0fa[_0x80a85c(0x2c7)];_0x4e5f4f++){const _0x4a32c7=_0x128e87[_0x80a85c(0x1bf)](_0x5cb78c,_0x4e5f4f);if(_0x4a32c7&&(a[_0x80a85c(0x2db)](_0x4a32c7['f'])||a[_0x80a85c(0x209)](_0x4a32c7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x366146(0x34a)](O[_0x366146(0x3a4)])),L(0x1,a[_0x366146(0x2d4)]),L(0x2,a[_0x366146(0x199)]),L(0x3,a['Inject'](x[_0x366146(0x388)])),L(0x4,a[_0x366146(0x375)]),L(0x5,a[_0x366146(0x2e8)]),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x366146(0x3ee)],rs=(_0x49bf00,_0x22ca30,_0x3b1b27,_0x58b02f)=>{const _0x51eb26=_0x366146;for(var _0x5232d1=_0x58b02f>0x1?void 0x0:_0x58b02f?ns(_0x22ca30,_0x3b1b27):_0x22ca30,_0x2b3aa2=_0x49bf00[_0x51eb26(0x18d)]-0x1,_0x442818;_0x2b3aa2>=0x0;_0x2b3aa2--)(_0x442818=_0x49bf00[_0x2b3aa2])&&(_0x5232d1=_0x442818(_0x5232d1)||_0x5232d1);return _0x5232d1;},de=(_0x2f1c4b,_0x2eedbd)=>(_0x330805,_0x4547f0)=>_0x2eedbd(_0x330805,_0x4547f0,_0x2f1c4b);let pe=class extends a[_0x366146(0x176)]{constructor(_0x7f730a,_0x919e2a,_0x3a66e8){const _0x20a3a4=_0x366146;super(),_(this,_0x20a3a4(0x2c5),new Map()),_(this,_0x20a3a4(0x3df),new Map()),_(this,'_disabled',!0x1),(this[_0x20a3a4(0x244)]=_0x7f730a,this[_0x20a3a4(0x25c)]=_0x919e2a,this[_0x20a3a4(0x345)]=_0x3a66e8);}[_0x366146(0x2ab)](){const _0x186329=_0x366146;this[_0x186329(0x27b)]=!0x0;}[_0x366146(0x393)](){const _0x31cd7f=_0x366146;this[_0x31cd7f(0x27b)]=!0x1;}get[_0x366146(0x189)](){const _0x55caf5=_0x366146;return this[_0x55caf5(0x3df)];}[_0x366146(0x286)](){const _0x350172=_0x366146;this[_0x350172(0x1dc)]()[_0x350172(0x3c5)](()=>super[_0x350172(0x286)]());}async[_0x366146(0x290)](_0x1f1134){const _0xf6663c=_0x366146;return this[_0xf6663c(0x27b)]?null:this[_0xf6663c(0x25c)][_0xf6663c(0x371)](u['getLocalCacheKey'](_0x1f1134));}async['saveOfflineData'](_0x26afab,_0x391cc4){const _0x19e068=_0x366146;return!!this[_0x19e068(0x25c)][_0x19e068(0x405)](_0x26afab,_0x391cc4);}[_0x366146(0x203)](_0x17de12,_0xc4da51,_0x52972a,_0x436d61){const _0x4b68d8=_0x366146,_0x1d1bc4=this[_0x4b68d8(0x345)][_0x4b68d8(0x1c7)](_0x17de12);this[_0x4b68d8(0x2c5)]['set'](_0x17de12,{'unitID':_0x17de12,'type':_0xc4da51,'awaitingChangeset':_0x52972a,'mutations':_0x436d61,'rev':_0x1d1bc4}),this['_saveTaskMap'][_0x4b68d8(0x3fe)](_0x17de12)||this[_0x4b68d8(0x39f)](_0x17de12);}[_0x366146(0x39f)](_0x3f3a1f){const _0x197b5=_0x366146,_0x74f501=this['_getSaveTimeout']();_0x74f501===0x0?this[_0x197b5(0x304)](_0x3f3a1f):this['_saveTaskMap'][_0x197b5(0x17a)](_0x3f3a1f,setTimeout(()=>this[_0x197b5(0x304)](_0x3f3a1f),_0x74f501));}['_getSaveTimeout'](){const _0x13418c=_0x366146;var _0x349f86;return(_0x349f86=this[_0x13418c(0x244)][_0x13418c(0x251)](u[_0x13418c(0x3dc)]))!=null?_0x349f86:u['LOCAL_CACHE_INTERVAL'];}[_0x366146(0x304)](_0x7898dc){const _0x2fcbd8=_0x366146,_0x33b8ac=this[_0x2fcbd8(0x3df)]['get'](_0x7898dc);return _0x33b8ac!==void 0x0&&window[_0x2fcbd8(0x2f2)](_0x33b8ac),this[_0x2fcbd8(0x25c)][_0x2fcbd8(0x405)](u[_0x2fcbd8(0x39c)](_0x7898dc),this[_0x2fcbd8(0x2c5)][_0x2fcbd8(0x268)](_0x7898dc))[_0x2fcbd8(0x3c5)](()=>this[_0x2fcbd8(0x3df)][_0x2fcbd8(0x382)](_0x7898dc));}async[_0x366146(0x1dc)](){const _0x427432=_0x366146,_0x44de55=[];this[_0x427432(0x3df)][_0x427432(0x3eb)]((_0x815234,_0x5ba74e)=>{const _0x412083=_0x427432;window[_0x412083(0x2f2)](_0x815234),_0x44de55[_0x412083(0x192)](this['_saveCache'](_0x5ba74e)['then'](()=>{const _0x1c2578=_0x412083;this[_0x1c2578(0x3df)][_0x1c2578(0x382)](_0x5ba74e);}));}),await Promise[_0x427432(0x3e3)](_0x44de55);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x366146(0x34a)](g[_0x366146(0x196)]))],pe);class ke extends a[_0x366146(0x25a)]{constructor(){const _0x46f841=_0x366146;super(),_(this,_0x46f841(0x21a)),this[_0x46f841(0x21a)]=I[_0x46f841(0x282)](window,'popstate')['pipe'](I['takeUntil'](this['dispose$']),I['shareReplay'](0x1),I[_0x46f841(0x2d0)](void 0x0));}[_0x366146(0x20d)](_0x1722f6,_0x3e26a5,_0x14af90=!0x1){const _0x2712cf=_0x366146,_0x5d0e52=new URL(window[_0x2712cf(0x330)][_0x2712cf(0x163)]);_0x5d0e52[_0x2712cf(0x31d)][_0x2712cf(0x17a)](_0x1722f6,_0x3e26a5),_0x14af90?window[_0x2712cf(0x168)][_0x2712cf(0x37d)]('','',_0x5d0e52[_0x2712cf(0x177)]()):window[_0x2712cf(0x168)]['pushState']('','',_0x5d0e52[_0x2712cf(0x177)]());}[_0x366146(0x2bd)](_0x3dfa98,_0x3f9c96=!0x1){const _0x13b430=_0x366146,_0x193e6f=new URL(window[_0x13b430(0x330)][_0x13b430(0x163)]);_0x193e6f[_0x13b430(0x31d)]['delete'](_0x3dfa98),_0x3f9c96?window[_0x13b430(0x168)][_0x13b430(0x37d)]('','',_0x193e6f[_0x13b430(0x177)]()):window['history'][_0x13b430(0x36c)]('','',_0x193e6f[_0x13b430(0x177)]());}[_0x366146(0x1d4)](_0x19797e){const _0x36f126=_0x366146;var _0x12d682;return(_0x12d682=new URL(window[_0x36f126(0x330)][_0x36f126(0x163)])[_0x36f126(0x31d)][_0x36f126(0x268)](_0x19797e))!=null?_0x12d682:void 0x0;}}var os=Object[_0x366146(0x24e)],as=Object['getOwnPropertyDescriptor'],cs=(_0x35be7a,_0x3daff2,_0x2fdf9f)=>_0x3daff2 in _0x35be7a?os(_0x35be7a,_0x3daff2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fdf9f}):_0x35be7a[_0x3daff2]=_0x2fdf9f,ls=(_0x310c8b,_0x300409,_0x190316,_0x2ffd8c)=>{const _0x2e0037=_0x366146;for(var _0x2982d4=_0x2ffd8c>0x1?void 0x0:_0x2ffd8c?as(_0x300409,_0x190316):_0x300409,_0x10b20d=_0x310c8b[_0x2e0037(0x18d)]-0x1,_0x49cbba;_0x10b20d>=0x0;_0x10b20d--)(_0x49cbba=_0x310c8b[_0x10b20d])&&(_0x2982d4=_0x49cbba(_0x2982d4)||_0x2982d4);return _0x2982d4;},Se=(_0x5681da,_0x23c10d)=>(_0x296bb5,_0x53fe22)=>_0x23c10d(_0x296bb5,_0x53fe22,_0x5681da),_s=(_0x4928f8,_0x369ce9,_0x5ec054)=>cs(_0x4928f8,_0x369ce9+'',_0x5ec054);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x366146(0x265)]=class extends a[_0x366146(0x1dd)]{constructor(_0x342a34=Me,_0x10dd38,_0x5b2113,_0x56a568){const _0x53a8d6=_0x366146;super(),this[_0x53a8d6(0x352)]=_0x342a34,this['_renderManagerService']=_0x10dd38,this[_0x53a8d6(0x354)]=_0x5b2113,this['_configService']=_0x56a568;const {..._0x3202ba}=a[_0x53a8d6(0x1e6)]({},Me,this['_config']);this[_0x53a8d6(0x244)]['setConfig'](Yt,_0x3202ba);}[_0x366146(0x383)](){const _0x11dbd4=_0x366146;this['_registerDependencies'](),this[_0x11dbd4(0x18e)]();}[_0x366146(0x2cb)](){const _0x3c9044=_0x366146;this[_0x3c9044(0x253)]();}['_registerDependencies'](){const _0x5ea07f=_0x366146;var _0x583e91;const _0x3644c3=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5ea07f(0x26c)],{'useClass':x['WebSocketService']}],[u[_0x5ea07f(0x32d)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x5ea07f(0x1ad)]]];this[_0x5ea07f(0x352)][_0x5ea07f(0x33f)]&&_0x3644c3[_0x5ea07f(0x192)]([Q]),a[_0x5ea07f(0x2b1)](this['_injector'],a[_0x5ea07f(0x356)](_0x3644c3,(_0x583e91=this['_config'])==null?void 0x0:_0x583e91[_0x5ea07f(0x1d7)]));}['_registerRenderDependencies'](){const _0x2c2957=_0x366146;this[_0x2c2957(0x39d)](this[_0x2c2957(0x3fd)]['registerRenderModule'](a[_0x2c2957(0x315)]['UNIVER_DOC'],[Ee])),this[_0x2c2957(0x39d)](this[_0x2c2957(0x3fd)][_0x2c2957(0x336)](a[_0x2c2957(0x315)][_0x2c2957(0x25b)],[Ce]));}[_0x366146(0x18e)](){const _0x12a6bd=_0x366146;a[_0x12a6bd(0x377)](this[_0x12a6bd(0x354)],[[F],[exports[_0x12a6bd(0x1ee)]],[ie],[Z],[exports[_0x12a6bd(0x1ad)]],[ne]]),this['_config'][_0x12a6bd(0x33f)]&&a[_0x12a6bd(0x377)](this[_0x12a6bd(0x354)],[[Q]]);}},_s(exports[_0x366146(0x265)],_0x366146(0x27a),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x366146(0x1fb)](u[_0x366146(0x291)]),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x366146(0x34a)](a[_0x366146(0x364)])),Se(0x3,a[_0x366146(0x199)])],exports['UniverCollaborationClientUIPlugin']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x2a9959,_0x439440,_0x16ca1b,_0x473a43)=>{for(var _0x2b7404=_0x473a43>0x1?void 0x0:_0x473a43?us(_0x439440,_0x16ca1b):_0x439440,_0x38affb=_0x2a9959['length']-0x1,_0x3e2ea6;_0x38affb>=0x0;_0x38affb--)(_0x3e2ea6=_0x2a9959[_0x38affb])&&(_0x2b7404=_0x3e2ea6(_0x2b7404)||_0x2b7404);return _0x2b7404;},W=(_0x3f1197,_0x269161)=>(_0x58be47,_0xf6b2ae)=>_0x269161(_0x58be47,_0xf6b2ae,_0x3f1197);exports['BrowserCollaborationSocketService']=class extends u[_0x366146(0x33b)]{constructor(_0x1f7b63,_0x168222,_0x286836,_0x5ba614,_0x1434e5){super(_0x1f7b63,_0x168222,_0x286836,_0x5ba614,_0x1434e5);}async[_0x366146(0x322)](_0x365aeb){const _0x31e96c=_0x366146,_0x313f38=await this[_0x31e96c(0x369)](),_0x1c7f89=this[_0x31e96c(0x396)](_0x365aeb,_0x313f38);return this[_0x31e96c(0x287)](_0x1c7f89);}[_0x366146(0x396)](_0x3a9ff3,_0x12a455){const _0x44b2c8=_0x366146,_0x35e61c=typeof window>'u'?new URL(_0x3a9ff3):new URL(_0x3a9ff3,window[_0x44b2c8(0x330)]['origin']);_0x35e61c['searchParams'][_0x44b2c8(0x17a)]('sessionTicket',_0x12a455);const _0x3463db=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x44b2c8(0x330)][_0x44b2c8(0x36a)]);return _0x3463db[_0x44b2c8(0x268)](_0x44b2c8(0x242))&&_0x35e61c[_0x44b2c8(0x31d)][_0x44b2c8(0x17a)](_0x44b2c8(0x242),_0x3463db[_0x44b2c8(0x268)]('runId')),_0x35e61c[_0x44b2c8(0x177)]();}async['_getSessionTicket'](){const _0x59f198=_0x366146;var _0x212d64,_0x26c978,_0x5e22e0;const _0x1baac8=this[_0x59f198(0x244)]['getConfig'](u[_0x59f198(0x3c3)]),_0x165e0c=(_0x212d64=_0x1baac8==null?void 0x0:_0x1baac8[_0x59f198(0x21e)])!=null?_0x212d64:u[_0x59f198(0x35c)];return(_0x5e22e0=(_0x26c978=(await this['_httpService'][_0x59f198(0x268)](_0x165e0c,{'headers':{'Content-Type':'application/json'}}))[_0x59f198(0x1b8)])==null?void 0x0:_0x26c978[_0x59f198(0x2d3)])!=null?_0x5e22e0:'';}},exports[_0x366146(0x307)]=Is([W(0x0,a['Inject'](a[_0x366146(0x364)])),W(0x1,a['Inject'](x[_0x366146(0x388)])),W(0x2,a[_0x366146(0x199)]),W(0x3,a[_0x366146(0x2e8)]),W(0x4,g[_0x366146(0x28c)])],exports[_0x366146(0x307)]);var ds=Object['getOwnPropertyDescriptor'],Ss=(_0x43e9a3,_0x3ced81,_0x3a203e,_0x5bc8a9)=>{const _0x107775=_0x366146;for(var _0x526319=_0x5bc8a9>0x1?void 0x0:_0x5bc8a9?ds(_0x3ced81,_0x3a203e):_0x3ced81,_0x24fe97=_0x43e9a3[_0x107775(0x18d)]-0x1,_0x3480bb;_0x24fe97>=0x0;_0x24fe97--)(_0x3480bb=_0x43e9a3[_0x24fe97])&&(_0x526319=_0x3480bb(_0x526319)||_0x526319);return _0x526319;},fe=(_0x1a1f90,_0x4e38cc)=>(_0x3b5dfd,_0x3cabd5)=>_0x4e38cc(_0x3b5dfd,_0x3cabd5,_0x1a1f90);exports[_0x366146(0x404)]=class extends a[_0x366146(0x176)]{constructor(_0x31b5a1,_0x116a00,_0x72e3cc){const _0x4317f5=_0x366146;super(),this[_0x4317f5(0x150)]=_0x31b5a1,this[_0x4317f5(0x2a2)]=_0x116a00,this[_0x4317f5(0x244)]=_0x72e3cc;}async[_0x366146(0x215)](_0x558fb1,_0x4da441,_0x888f6d,..._0x51a9c7){const _0x41e7d6=_0x366146;var _0x471a99,_0xa1a89f,_0x5f5bb7,_0xac9848;const _0x5633bc=this['_instanceService'][_0x41e7d6(0x1f2)]();if(!_0x5633bc)throw new Error(_0x41e7d6(0x23c));const _0x2bfa2b=((_0x471a99=this['_configService'][_0x41e7d6(0x251)](u[_0x41e7d6(0x15b)]))!=null?_0x471a99:u[_0x41e7d6(0x1fa)])+'/'+_0x558fb1+_0x41e7d6(0x25d)+_0x4da441,_0x1ea7bc=new URL(window[_0x41e7d6(0x330)][_0x41e7d6(0x163)]),_0x37c8dc={'scriptId':_0x558fb1,'runId':(_0xa1a89f=_0x1ea7bc[_0x41e7d6(0x31d)]['get'](_0x41e7d6(0x242)))!=null?_0xa1a89f:'','function':_0x4da441,'unitId':_0x5633bc[_0x41e7d6(0x349)](),'argsOfFunction':JSON['stringify'](_0x51a9c7),'invokeId':(_0x5f5bb7=_0x888f6d[_0x41e7d6(0x2f9)])!=null?_0x5f5bb7:'','executionId':(_0xac9848=_0x888f6d[_0x41e7d6(0x149)])!=null?_0xac9848:''};try{const _0x373274=await this['_httpService'][_0x41e7d6(0x1b3)](_0x2bfa2b,{'body':_0x37c8dc});return _0x373274[_0x41e7d6(0x1b8)]['error']&&_0x373274['body'][_0x41e7d6(0x329)][_0x41e7d6(0x21d)]!==G['OK']?_0x41e7d6(0x252):_0x373274['body'][_0x41e7d6(0x321)];}catch{return _0x41e7d6(0x252);}}},exports[_0x366146(0x404)]=Ss([fe(0x0,a[_0x366146(0x375)]),fe(0x1,a[_0x366146(0x34a)](x['HTTPService'])),fe(0x2,a[_0x366146(0x199)])],exports[_0x366146(0x404)]);const we=0x7530,ye=_0x366146(0x230);class fs extends a[_0x366146(0x176)]{constructor(){const _0x280c75=_0x366146;super(),_(this,_0x280c75(0x2a5),a['generateRandomId']()),_(this,'_selfUnitIDs',new Set()),_(this,_0x280c75(0x33c),new Map()),_(this,_0x280c75(0x2f0),null),_(this,_0x280c75(0x159),new Map()),_(this,_0x280c75(0x22f),new Map()),this[_0x280c75(0x3d7)]();}[_0x366146(0x286)](){const _0x45e6de=_0x366146;super[_0x45e6de(0x286)](),this['_clearOtherTimers']['forEach']((_0x229e94,_0x168125)=>this['_removeClearOtherTimer'](_0x168125)),this['_heartbeatTimer']&&window[_0x45e6de(0x2a9)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x367043){const _0x5281e7=_0x366146;return this[_0x5281e7(0x2ee)](_0x367043)[_0x5281e7(0x1c2)](I[_0x5281e7(0x1a8)]());}[_0x366146(0x3f4)](_0x1ce3d3){const _0x9073a4=_0x366146;this['_selfUnitIDs'][_0x9073a4(0x224)]===0x0&&this['_scheduleHeartbeat'](),this[_0x9073a4(0x165)][_0x9073a4(0x2bb)](_0x1ce3d3),this[_0x9073a4(0x255)]({'type':0x0,'memberID':this[_0x9073a4(0x2a5)],'unitIDs':[_0x1ce3d3],'isForwarded':!0x1});}[_0x366146(0x30c)](_0x2b97d8){const _0x4b0544=_0x366146;this[_0x4b0544(0x165)]['delete'](_0x2b97d8),this['_selfUnitIDs'][_0x4b0544(0x224)]===0x0&&this[_0x4b0544(0x2f0)]&&window[_0x4b0544(0x2a9)](this['_heartbeatTimer']);}[_0x366146(0x3d7)](){const _0x34f2b1=_0x366146;this[_0x34f2b1(0x39d)](a[_0x34f2b1(0x30b)](I[_0x34f2b1(0x282)](window,'storage')[_0x34f2b1(0x390)](_0x3fe012=>{const _0x134a9e=_0x34f2b1;if(_0x3fe012[_0x134a9e(0x317)]!==ye||!_0x3fe012[_0x134a9e(0x343)])return;const _0xb56afd=JSON[_0x134a9e(0x2be)](_0x3fe012[_0x134a9e(0x343)]);this['_handleEvent'](_0xb56afd);}))),window[_0x34f2b1(0x15f)](_0x34f2b1(0x408),()=>this[_0x34f2b1(0x255)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x34f2b1(0x165)])}));}[_0x366146(0x3bf)](_0x54b1a9){const _0x5a1544=_0x366146;switch(_0x54b1a9[_0x5a1544(0x35a)]){case 0x0:this[_0x5a1544(0x212)](_0x54b1a9);break;case 0x1:this[_0x5a1544(0x311)](_0x54b1a9);break;case 0x2:this['_handleHeartbeatEvent'](_0x54b1a9);break;}}['_handleJoinEvent'](_0x1f6e7e){const _0x6f7b18=_0x366146,{unitIDs:_0x23f04d,memberID:_0x22fb1f,isForwarded:_0x119444}=_0x1f6e7e;_0x23f04d[_0x6f7b18(0x3eb)](_0x3313f5=>{const _0x445a50=_0x6f7b18;if(!_0x119444&&this[_0x445a50(0x33c)]['has'](_0x3313f5)&&this[_0x445a50(0x2ee)](_0x3313f5)['next'](u[_0x445a50(0x25f)][_0x445a50(0x274)]),!this[_0x445a50(0x33c)][_0x445a50(0x3fe)](_0x3313f5)||!this[_0x445a50(0x33c)][_0x445a50(0x268)](_0x3313f5)[_0x445a50(0x3fe)](_0x22fb1f)){const _0x17139d=this[_0x445a50(0x33c)][_0x445a50(0x268)](_0x3313f5)||new Set();_0x17139d[_0x445a50(0x2bb)](_0x22fb1f),this['_unitOnClients'][_0x445a50(0x17a)](_0x3313f5,_0x17139d),this[_0x445a50(0x19d)](_0x22fb1f);}}),_0x119444||this[_0x6f7b18(0x255)]({'type':0x0,'memberID':this[_0x6f7b18(0x2a5)],'unitIDs':[...this[_0x6f7b18(0x165)]],'isForwarded':!0x0});}[_0x366146(0x19d)](_0x26ab06){const _0x19f843=_0x366146;this[_0x19f843(0x179)](_0x26ab06);const _0x27b74c=window[_0x19f843(0x3f6)](()=>{const _0xc075a0=_0x19f843;this['_unitOnClients'][_0xc075a0(0x3eb)](_0x404b2c=>{const _0x419a5c=_0xc075a0;_0x404b2c[_0x419a5c(0x382)](_0x26ab06);});},we*0x2);this['_clearOtherTimers']['set'](_0x26ab06,_0x27b74c);}[_0x366146(0x179)](_0x55e8e2){const _0x5a7692=_0x366146;if(this[_0x5a7692(0x159)][_0x5a7692(0x3fe)](_0x55e8e2)){const _0x5188b3=this['_clearOtherTimers'][_0x5a7692(0x268)](_0x55e8e2);_0x5188b3&&window[_0x5a7692(0x2f2)](_0x5188b3),this[_0x5a7692(0x159)][_0x5a7692(0x17a)](_0x55e8e2,null);}}[_0x366146(0x311)](_0x140a57){const _0x36f29e=_0x366146,{memberID:_0xda7c04,unitIDs:_0x2270f8}=_0x140a57;_0x2270f8[_0x36f29e(0x3eb)](_0x80cc26=>{const _0x4f7afc=_0x36f29e;var _0x5dd25c;const _0x59dac7=this['_unitOnClients']['get'](_0x80cc26);_0x59dac7&&(_0x59dac7[_0x4f7afc(0x382)](_0xda7c04),(_0x5dd25c=this[_0x4f7afc(0x2ee)](_0x80cc26))==null||_0x5dd25c[_0x4f7afc(0x161)](_0x59dac7[_0x4f7afc(0x224)]===0x0?u['UnitStatus'][_0x4f7afc(0x2d9)]:u[_0x4f7afc(0x25f)][_0x4f7afc(0x274)]));}),this['_removeClearOtherTimer'](_0xda7c04);}[_0x366146(0x308)](_0x13ab7e){const _0x4200f4=_0x366146;this[_0x4200f4(0x19d)](_0x13ab7e[_0x4200f4(0x200)]);}[_0x366146(0x255)](_0x2c1773){const _0x6a4a0b=_0x366146;localStorage[_0x6a4a0b(0x405)](ye,JSON[_0x6a4a0b(0x1b9)](_0x2c1773));}[_0x366146(0x272)](){const _0x2ef9cc=_0x366146;this[_0x2ef9cc(0x2f0)]=window['setInterval'](()=>{const _0x181ad1=_0x2ef9cc;this[_0x181ad1(0x255)]({'type':0x2,'memberID':this['_id']});},we);}[_0x366146(0x2ee)](_0x3d8a0f){const _0x43a980=_0x366146;return this[_0x43a980(0x22f)][_0x43a980(0x3fe)](_0x3d8a0f)||this[_0x43a980(0x22f)][_0x43a980(0x17a)](_0x3d8a0f,new I[(_0x43a980(0x3a8))](u[_0x43a980(0x25f)][_0x43a980(0x2d9)])),this['_unitStatus']['get'](_0x3d8a0f);}}function _0x51ff(){const _0x567c29=['min','_dataLoaderService','_docStateChangeManagerService','docStateChange$','NO_OTHER_CLIENTS_EDITING','shift','isFormulaString','getUnit','setAlpha','SNAPSHOT_INVALID_SNAPSHOT','handleIRemoveRow','idSuffix','activeSheet$','handleInsertRangeMoveDown','...','_startCalculationLimit','_uiPartsService','redoState','_anchor','ILogService','data','registerRefRange','_monkeyPatchLogService','REDEMPTION_CODE_NOT_STARTED','UNRECOGNIZED','_ensureSubject','_collaborationSessionService','_heartbeatTimer','_cursor','clearTimeout','closePath','REDEMPTION_USER_NOT_ELIGIBLE','isActive','show','transformMutationsWithChangeset','_hovered','invokeId','status$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','FormulaExecutedStateType','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_univerInstanceService','replace','transform','SetTextSelectionsOperation','onPointerLeave$','div','_saveCache','_transformUndoRedoStack','currentUsage','BrowserCollaborationSocketService','_handleHeartbeatEvent','black','CHANGESET_REVISION_CONFILICT','toDisposable','disposeUnit','startRow','transformStateCache','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_handleLeaveEvent','roomMembers','PAYMENT_CHANNEL_NOT_SUPPORT','row','UniverInstanceType','_handleHover','key','TEXT_RANGE_LAYER_INDEX','collabStatus.offline','CollaborationSessionService','measureText','loadUnit','searchParams','APPLY_REJECT','_docTransformStateCacheService','colno','result','createSocket','url(#off-line-icon_clip0_910_343)','formula.calculation.waiting','UniverIcon','MessageType','text','complete','error','_docSyncEditingCollabCursorService','hide','RemoveColCommandId','ILocalCacheService','svg','mutations','location','displayName','range','Rectangle','asObservable','stageInfo','registerRenderModule','getformulaLimitStatusUrl','_colorIndex','isTransformMutationFailure','sheetId','CollaborationSocketService','_unitOnClients','_setFormulaLimitStatus','295985MlxUls','enableFrontendLog','m2Prime','getDocRanges','translate(.97)','newValue','forwardRef','_revisionService','debug','clsx','_initWindowErrorListener','getUnitId','Inject','CONFLICT','_toggleOffline','0\x200\x2017\x2016','568XEJWKL','DocSkeletonManagerService','registerBeforeClose','on-line-icon_clip0_910_349','_config','LOGIN_FAILED','_injector','red.300','mergeOverrideWithDependencies','entries','ENTITLE_CHAT_LIMIT_EXCEED','EMAIL_VERIFY_CODE_MISMATCH','type','serializeRangeWithSheet','DEFAULT_WS_SESSION_TICKET_URL','params','SHEET_VIEWPORT_KEY','/universer-api/license/formula/limit/done','_initCommandExecutedListener','off-line-icon','Warning','deepClone','Injector','_textBubble','colorChannel1','_initUserListener','createIdentifier','_getSessionTicket','search','round','pushState','_render','[LogService\x20Error]:\x20','string','_hideTimer','getItem','INVALID_ARGUMENT','_entities','getAncestorScale','IUniverInstanceService','xlink:href','touchDependencies','ENSURE_SNAPSHOT_EXECUTION','INVITE_CODE_HAS_BEEN_UES','_drawTextRange','none','undoState','replaceState','Loading','_removeCollabCursors','CollaborationStatus','1em','delete','onStarting','YUUMI_AI_RUN_FAILED','MUTATION','EffectRefRangId','_context','HTTPService','socket$','maxFormulaLimit','ENTITLE_REPORT_LIMIT_EXCEED','permission.content','DocSelectionManagerService','VIEW_MAIN','beginPath','subscribe','MemberService','DOC_RANGE_TYPE','enableLocalCache','LICENSE_EXPORT_SIZE_EXCEEDED','removeEventListener','_createSocketURL','_shapes','bottom','getColor','APPLY_PERMISSION_DENIED','_maxFormulaLimit','getLocalCacheKey','disposeWithMe','_name','_scheduleSaving','imageSourceType','width','_notificationService','height','IMessageService','BuiltInUIPart','font','white','BehaviorSubject','collab-client.tooltip.reconnect','getUndoRedoMutationParamsCache','now','transformIMECache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OnLineIcon','url(#$1','_scene','_clearPolling','/universer-api/license/formula/limit/start','http://www.w3.org/2000/svg','1064049HtqSqt','setUndoRedoMutationParamsCache','path','_initUnhandledRejectionListener','NOT_FOUND','current','SOCKET_FAILED','APPLY_NON_SEQUENTIAL_REVISION','_uploadLog','drawWith','_cursors','_handleEvent','ERROR_AGAIN','blue.400','onPointerMove$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','uni.network.url-service','then','save','_range','evenodd','useDependency','assignAColorForMemberID','combineLatest','\x20at\x20','_updateSubUnitFromURLParams','#FFF','OFFLINE','4377arzwDO','fillText','reason','onLocalMutation','CLOSE_ROOM','OTHER_CLIENT_EDITING','_pollingInterval','_init','_getAnchorBounding','transformRemoteChangeset','_currentUsage','getMember','LOCAL_CACHE_INTERVAL_KEY','_imageIoService','_lastPointer','_saveTaskMap','unsubscribe','SetFormulaCalculationStartMutation','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','all','isEditing','purple.300','_showGuardMessage','onCommandExecuted','IUIPartsService','map','collaboration.closeRoom','forEach','_setupBeforeClosingHandler','_transformHistoryAndStateStack','getOwnPropertyDescriptor','onTransformChange$','Unknown\x20user','Optional','findNodePositionByCharIndex','createInstance','editingUnit','handleDeleteRangeMoveUp','setTimeout','FormulaExecuteStageType','_labelPosition','TOO_MANY_REQUESTS','UNDEFINED','collab-text-anchor-','getActiveRange','_renderManagerService','has','_docSkeletonManagerService','WebBrowserSingleActiveUnitService','_onCursorUpdate','registerComponent','_initCommandInterceptor','RemoteUniscriptService','setItem','getStateCache','getRangePointData','unload','RegularPolygon','getActiveSheet','4596830MHEhQD','runRefRangeMutations','_collabCursorState$','executionId','getOffsetConfig','PENDING','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','url(#on-line-icon_clip0_910_349)','onMouseMove','_instanceService','_startDocCollabCursor','SOCKET_FAILED_RETRY','selections','FETCH_MISS','doc.mutation.rich-text-editing','collabStatus.fetchMiss','requireSession','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_clearOtherTimers','transformSelections','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','/universer-api/license/formula/limit/status','isArray','children','addEventListener','IDocClipboardService','next','InsertColCommandId','href','_initStatusListener','_selfUnitIDs','_setupSubUnitSync','fill','history','permission.title','LICENSE_DISTRO_REJECTED','getRelativeToViewportCoord','onPointerEnter$','split','makeDirty','_commandService','getSkeleton','ENTITLE_NEED_BILLING_ADDRESS','handleInsertRow','_applyCommand','YUUMI_RATE_OVER_LIMIT','EMAIL_HAS_BEEN_BOUND','Disposable','toString','M0\x200H16V16H0z','_removeClearOtherTimer','set','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','REDEMPTION_CODE_FULLY_REDEEMED','debounceTime','parseInt','_transformPreviousActiveRange','createElement','CanceledError','defs','COMPLETION_FINISHED','moveTo','_assignedColors','unit','CURRENT_STATUS_CANNOT_OPERATE','[CollaborationDataLoaderController]','saveTaskMap','currentColor','YUUMI_ASYNCIO_CANCELLED','event$','length','_initDependencies','throttleTime','SNAPSHOT_HAS_BEEN_REMOVED','cursorInfo','push','ENTITLE_DUP_SUBSCRIPTION','YUUMI_UNABLE_LOAD_URL','UPDATE_CURSOR','RevisionService','_hover','_syncEditingCollabCursorService','IConfigService','InsertRowCommandId','RECT','dirtyRanges','_scheduleClearOtherTimer','_docTransformSelectionsService','MOBILE_VERIFY_CODE_MISMATCH','dispose$','backgroundColor','color','getSheetId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','YUUMI_ALL_TABLES_IS_INVALID','SheetsSelectionsService','stack','distinctUntilChanged','INVALID_INVITE_CODE','24KXFvkf','INTERNAL_ERROR','releaseFormulaLimitUrl','CollaborationDataLoaderController','_color','_docTransformIMECacheService','USER_NOT_INVITED_CODE','_urlService','_online','post','DocStateChangeManagerService','sheetID','TEXT','getVpScrollXYInfoByPosToVp','body','stringify','DATA_SOURCE_TOO_LARGE','142173WSnNVH','DataLoaderService','Rect','executeCommand','getValue','currentTheme$','skeleton','pipe','syncEditingCollabCursor','SessionStatus','unitID','_startSheetCollabCursor','getCurrentRevOfUnit','YUUMI_SUBSCRIPTION_NOT_FOUND','_draw','collaboration-client-ui.config','UNAUTHENTICATED','_lastResponseTimestamp','Success','random','values','roomMembers$','trim','YUUMI_NO_CUBOID_FOR_QUESTION','_colorAssignService','getParam','Tools','INVITE_CODE_REQUIRED','override','functionsExecutedState','ranges','IRenderManagerService','/universer-api/frontend/logs','exhaustSavingTask','Plugin','ITransformService','subunit','PERMISSION_DENIED','Subject','_roomMembers$','Error','collabCursorState$','_backgroundColor','merge','_collaborationUIEventService','_transformService','top','cursorInfo$','with','USER_NOT_FOUND','_localCacheService','DesktopCollaborationStatusDisplayController','_entityInit$','1462HMvcoe','PY_RUNTIME_SCRIPT_ERROR','getFocusedUnit','_hasFormulaInDirtyRanges','APPLY_DUPLICATED','INVITE_CODE_ALREADY_BOUND','session.will-retry','_docClipboardService','ThemeService','getSheetObject','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DependentOn','_collabCursorController','switchMap','Tooltip','LICENSE_IMPORT_SIZE_EXCEEDED','memberID','addObject','yellow.400','updateOfflineData','_logService','assign','transformMutation','Module','COLORS','isFormulaId','message','_cursorInfo$','YUUMI_CONNECTOR_URL_NOT_FOUND','setParam','startsWith','?taskId=','REDEMPTION_INVALID_CODE','getMergeData','_handleJoinEvent','jsx','find','runOnServer','getRenderById','some','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','START_CALCULATION','urlChange$','useCallback','lineTo','code','wsSessionTicketUrl','selection','flatMap','filter','HEADER_MENU','addHandlerCallback','size','takeUntil','setShapeProps','subscribeEvent','SetWorksheetActivateCommand','AUTHORIZE_CODE_ILLEGAL','mask','ENTITLE_INSUFFICIENT_QUOTA','11360770girWxd','11tGBHnY','_memberService','_unitStatus','ACTIVE_UNIT_EVENT_CHANNEL','limitInfo','unitId','SYNCED','hovered','[Unhandled\x20Rejection]:\x20','toRgbString','ONLINE','CollaborationEvent','getSheetBySheetId','_beforeCloseService','_getMergeRange','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_eventUnsubscribe','_updateLocalCursor','RemoveRowCommandId','_collaborationController','beforeCommandExecuted','runId','getCurrentSelections','_configService','fillStyle','eventID','Vector2','_updateURLWithCurrentState','_memberID','LICENSE_MAX_UNITS_EXCEEDED','textRanges','_checkAndWaitForCalculationPermission','_messageService','defineProperty','actions','_anchorDot','getConfig','Failed','_registerRenderDependencies','APPLY_REVISION_CONFILICT','_send','_taskIds','_cursorShapes','addClipboardHook','toStringTag','RxDisposable','UNIVER_SHEET','_localStorageService','/run/','ColorKit','UnitStatus','FromArray','attrs','max','deserializeRangeWithSheet','AWAITING','UniverCollaborationClientUIPlugin','unshift','LocaleService','get','_sheetSkeletonManagerService','getMemberID','USERS_LEAVE','ISocketService','entityInit$','MoveRangeCommandId','DeleteRangeMoveUpCommandId','IBeforeCloseService','_releaseCalculationLimit','_scheduleHeartbeat','DisposableCollection','OTHER_CLIENTS_EDITING','clipPath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOGIN_TOKEN_PROCESSING_FAILED','debounce','collaboration-client.offline-data-not-saved','pluginName','_disabled','triggerDblclick','INotificationService','collabStatus.notCollab','USER_IS_ANONYMOUS','ALREADY_EXISTS','fromEventSubject','fromEvent','isTransformMutationsWithChangesetSuccess','_updateCollabCursors','_initResize','dispose','_doCreateSocket','subUnitId','formula.calculation.started','_document','m1Prime','ISnapshotServerService','CollaborationUIEventId','_initStatusComponent','generateRandomId','loadOfflineData','UniverCollaborationClientPlugin','init','collabStatus.conflict','WebURLService','join','DeleteRangeMoveLeftCommandId','_initEvent','_collabSessionService','NodePositionConvertToRectRange','_themeService','CONNECTOR_DATA_TOO_LARGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','Shape','collab-text-range-','SheetCollabCursorShape','name','REDEMPTION_CODE_INACTIVE','_httpService','lineno','send','_id','includes','saveImage','WECHAT_HAS_BEEN_BOUND','clearInterval','off-line-icon_clip0_910_343','disableLocalCache','_localeService','NOT_COLLAB','arc','getCollabCursors$','useRef','registerDependencies','from','1916304cncRNx','endRow','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','restore','collaboration.single-unit.warning','YUUMI_URL_COL_OUT_OF_RANGE','_getSheetObject','_refreshCollabCursors','add','getCollabEntity$','removeParam','parse','Workbook','_checkCalculationAvailable','_refRangeService','[Window\x20Error]:\x20','_toggleOnline','DocIMEInputManagerService','_cachedData','getTypeOfUnitDisposed$','endColumn','tag','REDEMPTION_CODE_HAS_BEEN_CREATED','_drawRectRange','onRendered','unhandledrejection','JOIN_ROOM_FAILED','handleInsertCol','_session','mapTo','getColorFromTheme','formula.calculation.unable','ticket','ICommandService'];_0x51ff=function(){return _0x567c29;};return _0x51ff();}exports['IURLService']=Oe,exports[_0x366146(0x29f)]=je,exports[_0x366146(0x400)]=fs,exports[_0x366146(0x294)]=ke;
1
+ 'use strict';const _0x2a0d4e=_0x463e;(function(_0xc29e64,_0x1bda40){const _0x215239=_0x463e,_0x25a7db=_0xc29e64();while(!![]){try{const _0x2303e7=parseInt(_0x215239(0x2dd))/0x1*(parseInt(_0x215239(0x229))/0x2)+-parseInt(_0x215239(0x235))/0x3+-parseInt(_0x215239(0x1e0))/0x4+parseInt(_0x215239(0x333))/0x5*(parseInt(_0x215239(0x176))/0x6)+parseInt(_0x215239(0x2bc))/0x7*(parseInt(_0x215239(0x3ef))/0x8)+parseInt(_0x215239(0x352))/0x9+-parseInt(_0x215239(0x319))/0xa*(parseInt(_0x215239(0x2c0))/0xb);if(_0x2303e7===_0x1bda40)break;else _0x25a7db['push'](_0x25a7db['shift']());}catch(_0x1b1073){_0x25a7db['push'](_0x25a7db['shift']());}}}(_0x18b8,0x46976));var Xe=Object['defineProperty'],Ke=(_0x5ba45d,_0x3e6a50,_0x3c5bf5)=>_0x3e6a50 in _0x5ba45d?Xe(_0x5ba45d,_0x3e6a50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5bf5}):_0x5ba45d[_0x3e6a50]=_0x3c5bf5,_=(_0x10a09b,_0x377526,_0x52e9e3)=>Ke(_0x10a09b,typeof _0x377526!=_0x2a0d4e(0x384)?_0x377526+'':_0x377526,_0x52e9e3);Object['defineProperty'](exports,Symbol[_0x2a0d4e(0x1d1)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x2b5fe5,..._0xe52e21}){const _0x4e468a=_0x2a0d4e,{icon:_0x2b2bdf,id:_0x3d10a6,className:_0xab6207,extend:_0x30f025,..._0x3668e4}=_0xe52e21,_0x17dbcb=('univerjs-icon\x20univerjs-icon-'+_0x3d10a6+'\x20'+(_0xab6207||''))[_0x4e468a(0x3ca)](),_0x39b8ac=A[_0x4e468a(0x1c2)]('_'+Qe());return $e(_0x2b2bdf,''+_0x3d10a6,{'defIds':_0x2b2bdf[_0x4e468a(0x35a)],'idSuffix':_0x39b8ac[_0x4e468a(0x195)]},{'ref':_0x2b5fe5,'className':_0x17dbcb,..._0x3668e4},_0x30f025);}function $e(_0x14e1c7,_0x4ed6f8,_0x3b0879,_0x51198d,_0x851d85){const _0x32c83e=_0x2a0d4e;return A[_0x32c83e(0x3e3)](_0x14e1c7[_0x32c83e(0x35d)],{'key':_0x4ed6f8,...Je(_0x14e1c7,_0x3b0879,_0x851d85),..._0x51198d},(Ze(_0x14e1c7,_0x3b0879)[_0x32c83e(0x28d)]||[])[_0x32c83e(0x13d)]((_0x270fcc,_0x6f77e1)=>$e(_0x270fcc,_0x4ed6f8+'-'+_0x14e1c7['tag']+'-'+_0x6f77e1,_0x3b0879,void 0x0,_0x851d85)));}function Je(_0x35d408,_0x41c967,_0x3b4398){const _0x4c5343=_0x2a0d4e,_0x458741={..._0x35d408['attrs']};_0x3b4398!=null&&_0x3b4398[_0x4c5343(0x37f)]&&_0x458741[_0x4c5343(0x251)]===_0x4c5343(0x37f)&&(_0x458741[_0x4c5343(0x251)]=_0x3b4398[_0x4c5343(0x37f)]),_0x35d408[_0x4c5343(0x35d)]===_0x4c5343(0x3dd)&&_0x458741['id']&&(_0x458741['id']=_0x458741['id']+_0x41c967[_0x4c5343(0x213)]),Object[_0x4c5343(0x1a7)](_0x458741)[_0x4c5343(0x38a)](([_0x37ab7a,_0x24193a])=>{const _0x23b91b=_0x4c5343;_0x37ab7a===_0x23b91b(0x3dd)&&typeof _0x24193a==_0x23b91b(0x209)&&(_0x458741[_0x37ab7a]=_0x24193a[_0x23b91b(0x385)](/url\(#(.*)\)/,_0x23b91b(0x3e9)+_0x41c967[_0x23b91b(0x213)]+')'));});const {defIds:_0x491722}=_0x41c967;return!_0x491722||_0x491722['length']===0x0||(_0x35d408['tag']===_0x4c5343(0x36f)&&_0x458741[_0x4c5343(0x13e)]&&(_0x458741[_0x4c5343(0x13e)]=_0x458741['xlink:href']+_0x41c967[_0x4c5343(0x213)]),Object['entries'](_0x458741)['forEach'](([_0x32bcc8,_0x17573a])=>{const _0x423cfc=_0x4c5343;typeof _0x17573a==_0x423cfc(0x209)&&(_0x458741[_0x32bcc8]=_0x17573a['replace'](/url\(#(.*)\)/,_0x423cfc(0x3e9)+_0x41c967[_0x423cfc(0x213)]+')'));})),_0x458741;}function Ze(_0x18b1f3,_0x5db13f){const _0x11d596=_0x2a0d4e;var _0x20b696;const {defIds:_0x253449}=_0x5db13f;return!_0x253449||_0x253449['length']===0x0?_0x18b1f3:_0x18b1f3['tag']==='defs'&&((_0x20b696=_0x18b1f3[_0x11d596(0x28d)])!=null&&_0x20b696[_0x11d596(0x2c8)])?{..._0x18b1f3,'children':_0x18b1f3['children'][_0x11d596(0x13d)](_0x4727a7=>typeof _0x4727a7[_0x11d596(0x23f)]['id']==_0x11d596(0x209)&&_0x253449&&_0x253449[_0x11d596(0x260)](_0x4727a7[_0x11d596(0x23f)]['id'])?{..._0x4727a7,'attrs':{..._0x4727a7['attrs'],'id':_0x4727a7[_0x11d596(0x23f)]['id']+_0x5db13f[_0x11d596(0x213)]}}:_0x4727a7)}:_0x18b1f3;}function Qe(){const _0x17d76c=_0x2a0d4e;return Math[_0x17d76c(0x1f3)]()[_0x17d76c(0x2be)](0x24)['substring'](0x2,0x8);}Te['displayName']=_0x2a0d4e(0x2b2);const et={'tag':'svg','attrs':{'xmlns':_0x2a0d4e(0x170),'fill':_0x2a0d4e(0x247),'viewBox':_0x2a0d4e(0x263),'width':_0x2a0d4e(0x2c7),'height':_0x2a0d4e(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'stroke':_0x2a0d4e(0x2b1),'d':_0x2a0d4e(0x328),'strokeLinecap':_0x2a0d4e(0x2ed),'strokeLinejoin':_0x2a0d4e(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x2a0d4e(0x3c6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2a0d4e(0x32f)},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'fill':'white','d':_0x2a0d4e(0x1a5)}}]}]}],'defIds':[_0x2a0d4e(0x32f)]},xe=A['forwardRef'](function(_0x1dba5f,_0x33c080){const _0x178af0=_0x2a0d4e;return A[_0x178af0(0x3e3)](Te,Object['assign']({},_0x1dba5f,{'id':_0x178af0(0x22f),'ref':_0x33c080,'icon':et}));});xe[_0x2a0d4e(0x3e7)]=_0x2a0d4e(0x17a);const tt={'tag':'svg','attrs':{'xmlns':_0x2a0d4e(0x170),'fill':_0x2a0d4e(0x247),'viewBox':_0x2a0d4e(0x283),'width':_0x2a0d4e(0x2c7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2a0d4e(0x151)},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x2a0d4e(0x2ed),'strokeLinejoin':_0x2a0d4e(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x2a0d4e(0x3c6),'attrs':{},'children':[{'tag':_0x2a0d4e(0x20e),'attrs':{'id':_0x2a0d4e(0x1db)},'children':[{'tag':_0x2a0d4e(0x16b),'attrs':{'fill':_0x2a0d4e(0x14c),'d':_0x2a0d4e(0x1a5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2a0d4e(0x1db)]},Be=A[_0x2a0d4e(0x382)](function(_0x4fc08e,_0x15fbe2){const _0x1a7b94=_0x2a0d4e;return A['createElement'](Te,Object['assign']({},_0x4fc08e,{'id':_0x1a7b94(0x360),'ref':_0x15fbe2,'icon':tt}));});Be['displayName']=_0x2a0d4e(0x162);function st(_0x5b678e){const _0x36ded4=_0x2a0d4e;switch(_0x5b678e){case u[_0x36ded4(0x2af)][_0x36ded4(0x327)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x36ded4(0x23b)]:return _0x36ded4(0x146);case u[_0x36ded4(0x2af)][_0x36ded4(0x219)]:return _0x36ded4(0x1bf);case u[_0x36ded4(0x2af)][_0x36ded4(0x34d)]:return _0x36ded4(0x374);case u[_0x36ded4(0x2af)][_0x36ded4(0x2fc)]:case u[_0x36ded4(0x2af)][_0x36ded4(0x18e)]:return _0x36ded4(0x3cd);case u[_0x36ded4(0x2af)][_0x36ded4(0x12a)]:case u['CollaborationStatus'][_0x36ded4(0x305)]:return'collabStatus.synced';}}function it(_0xd5467f){const _0x4675f2=_0x2a0d4e,{status$:_0x581e80}=_0xd5467f,_0x284696=O[_0x4675f2(0x2ac)](_0x581e80,u[_0x4675f2(0x2af)]['NOT_COLLAB']),_0x48ac02=O[_0x4675f2(0x224)](a[_0x4675f2(0x1be)]),_0xa375ea=O['useDependency'](u[_0x4675f2(0x26b)]),_0x9f11dc=_0x284696!==u[_0x4675f2(0x2af)][_0x4675f2(0x327)],_0x1a2f0d=_0x48ac02['t'](st(_0x284696)),_0x142874=_0x9f11dc?M[_0x4675f2(0x2a3)](Be,{}):M['jsx'](xe,{}),_0x56cae6=A[_0x4675f2(0x29e)](()=>{const _0x4aee64=_0x4675f2;_0x9f11dc||_0xa375ea[_0x4aee64(0x2c2)]();},[_0x9f11dc,_0xa375ea]);function _0x9f5446(){const _0x1e44dd=_0x4675f2;return M[_0x1e44dd(0x332)](_0x1e44dd(0x3a1),{'className':_0x1e44dd(0x306),'onClick':_0x56cae6,'children':[M[_0x1e44dd(0x2a3)]('div',{'className':T[_0x1e44dd(0x335)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x9f11dc,'univer-text-red-500':!_0x9f11dc}),'children':_0x142874}),M[_0x1e44dd(0x2a3)](_0x1e44dd(0x3a1),{'className':_0x1e44dd(0x359),'children':_0x1a2f0d})]});}return _0x9f11dc?_0x9f5446():M[_0x4675f2(0x2a3)](T[_0x4675f2(0x345)],{'title':_0x48ac02['t'](_0x4675f2(0x3ab)),'children':_0x9f5446()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x3dac2a,_0x326dfa,_0x6bc075,_0x4f2122)=>{const _0x151c3f=_0x2a0d4e;for(var _0xd2d6fb=_0x4f2122>0x1?void 0x0:_0x4f2122?nt(_0x326dfa,_0x6bc075):_0x326dfa,_0xbb8cd8=_0x3dac2a[_0x151c3f(0x2c8)]-0x1,_0x114868;_0xbb8cd8>=0x0;_0xbb8cd8--)(_0x114868=_0x3dac2a[_0xbb8cd8])&&(_0xd2d6fb=_0x114868(_0xd2d6fb)||_0xd2d6fb);return _0xd2d6fb;},K=(_0x5c801e,_0x182335)=>(_0x5de632,_0xd0e317)=>_0x182335(_0x5de632,_0xd0e317,_0x5c801e);exports[_0x2a0d4e(0x290)]=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x4540da,_0x564c67,_0x161f12,_0x154e54){const _0x82d31=_0x2a0d4e;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x82d31(0x2af)][_0x82d31(0x34d)])),(this[_0x82d31(0x2e1)]=_0x4540da,this['_injector']=_0x564c67,this['_collaborationController']=_0x161f12,this['_uiPartsService']=_0x154e54,this[_0x82d31(0x2e0)](),this[_0x82d31(0x194)]());}[_0x2a0d4e(0x194)](){const _0x24e4d6=_0x2a0d4e;this[_0x24e4d6(0x1b0)](this['_univerInstanceService'][_0x24e4d6(0x236)]['pipe'](I[_0x24e4d6(0x358)](()=>{const _0x209dcc=_0x24e4d6,_0x40f3ac=this[_0x209dcc(0x2e1)]['getFocusedUnit']();return _0x40f3ac?this[_0x209dcc(0x395)]['getCollabEntity$'](_0x40f3ac[_0x209dcc(0x13b)]()):I['of'](null);}),I[_0x24e4d6(0x358)](_0x4617a4=>_0x4617a4?_0x4617a4[_0x24e4d6(0x33d)]:I['of'](u[_0x24e4d6(0x2af)][_0x24e4d6(0x34d)])))['subscribe'](_0xe5d362=>{const _0x3ea486=_0x24e4d6;this['_status$'][_0x3ea486(0x28b)](_0xe5d362);}));}[_0x2a0d4e(0x2e0)](){const _0x21d8a6=_0x2a0d4e;this[_0x21d8a6(0x1b0)](this['_uiPartsService']['registerComponent'](O[_0x21d8a6(0x1b1)][_0x21d8a6(0x12f)],()=>O[_0x21d8a6(0x3bf)](ot({'status$':this['_status$'][_0x21d8a6(0x1a8)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),K(0x2,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x278)])),K(0x3,O[_0x2a0d4e(0x20a)])],exports[_0x2a0d4e(0x290)]);function ot(_0x236756){const {status$:_0x4230b7}=_0x236756;return function(){const _0x4d5375=_0x463e;return M[_0x4d5375(0x2a3)](it,{'status$':_0x4230b7});};}const Oe=a[_0x2a0d4e(0x1c3)]('uni.network.url-service');var at=Object[_0x2a0d4e(0x399)],ct=(_0x4ae4e3,_0x5b9832,_0x1ba412,_0x41d21d)=>{const _0x103804=_0x2a0d4e;for(var _0x494a6f=_0x41d21d>0x1?void 0x0:_0x41d21d?at(_0x5b9832,_0x1ba412):_0x5b9832,_0x31d0c8=_0x4ae4e3[_0x103804(0x2c8)]-0x1,_0x14a2e5;_0x31d0c8>=0x0;_0x31d0c8--)(_0x14a2e5=_0x4ae4e3[_0x31d0c8])&&(_0x494a6f=_0x14a2e5(_0x494a6f)||_0x494a6f);return _0x494a6f;},Y=(_0x42d8b7,_0x322526)=>(_0x18e7b3,_0xa77358)=>_0x322526(_0x18e7b3,_0xa77358,_0x42d8b7);exports[_0x2a0d4e(0x394)]=class extends a['RxDisposable']{constructor(_0x36e3a7,_0x4856cc,_0x4a6049,_0x2aca9e,_0x1860d7){const _0x120083=_0x2a0d4e;super(),this['_urlService']=_0x36e3a7,this[_0x120083(0x1ac)]=_0x4856cc,this[_0x120083(0x3db)]=_0x4a6049,this['_dataLoaderService']=_0x2aca9e,_0x1860d7?_0x1860d7==null||_0x1860d7['whenReady']()[_0x120083(0x341)](()=>this[_0x120083(0x3cb)]()):(this[_0x120083(0x1ac)][_0x120083(0x1c6)](_0x120083(0x120),_0x120083(0x3e6)),this[_0x120083(0x3cb)]());}async[_0x2a0d4e(0x3cb)](){const _0x571db4=_0x2a0d4e,_0x3c3638=this[_0x571db4(0x139)][_0x571db4(0x25f)](_0x571db4(0x14d)),_0x2ed018=this['_urlService'][_0x571db4(0x25f)](_0x571db4(0x123)),_0x497f2e=this[_0x571db4(0x139)][_0x571db4(0x25f)](_0x571db4(0x147));if(!_0x3c3638||!_0x2ed018){this[_0x571db4(0x1ac)][_0x571db4(0x1c6)](_0x571db4(0x120),_0x571db4(0x334));return;}const _0x89f6f4=await this[_0x571db4(0x1c7)]['loadUnit'](_0x3c3638,Number(_0x2ed018),_0x497f2e);_0x89f6f4&&_0x89f6f4 instanceof a[_0x571db4(0x2dc)]&&this[_0x571db4(0x141)](_0x89f6f4);}async[_0x2a0d4e(0x141)](_0x33c381){const _0x4d0fee=_0x2a0d4e;await this[_0x4d0fee(0x169)](_0x33c381),_0x33c381[_0x4d0fee(0x203)][_0x4d0fee(0x1df)](I[_0x4d0fee(0x3a9)](this['dispose$']))[_0x4d0fee(0x2f9)](_0x5a3794=>{const _0x26d81e=_0x4d0fee;_0x5a3794&&this[_0x26d81e(0x183)](_0x5a3794);}),this['_urlService'][_0x4d0fee(0x3c7)][_0x4d0fee(0x1df)](I[_0x4d0fee(0x3a9)](this[_0x4d0fee(0x30b)]))['subscribe'](()=>this[_0x4d0fee(0x169)](_0x33c381));}[_0x2a0d4e(0x183)](_0x3b2b49,_0xe31fe6=!0x1){const _0x49fc1e=_0x2a0d4e,_0x4d9e26=this[_0x49fc1e(0x139)]['getParam'](_0x49fc1e(0x147));_0x3b2b49[_0x49fc1e(0x2b0)]()!==_0x4d9e26&&this[_0x49fc1e(0x139)][_0x49fc1e(0x336)](_0x49fc1e(0x147),_0x3b2b49[_0x49fc1e(0x2b0)](),_0xe31fe6);}async['_updateSubUnitFromURLParams'](_0x309c5b){const _0x3dd231=_0x2a0d4e;var _0x58eab9;const _0x249086=this[_0x3dd231(0x139)]['getParam'](_0x3dd231(0x147));if(!_0x249086||!_0x309c5b[_0x3dd231(0x29b)](_0x249086)){const _0x5663df=_0x309c5b[_0x3dd231(0x2d4)]()[0x0],_0x2d7c9c=_0x309c5b[_0x3dd231(0x29b)](_0x5663df);if(!_0x2d7c9c)return;this['_updateURLWithCurrentState'](_0x2d7c9c,!0x0),await this[_0x3dd231(0x3db)][_0x3dd231(0x3c2)](v[_0x3dd231(0x238)]['id'],{'unitId':_0x309c5b[_0x3dd231(0x13b)](),'subUnitId':_0x5663df});return;}((_0x58eab9=_0x309c5b['getActiveSheet']())==null?void 0x0:_0x58eab9[_0x3dd231(0x2b0)]())!==_0x249086&&await this['_commandService'][_0x3dd231(0x3c2)](v[_0x3dd231(0x238)]['id'],{'unitId':_0x309c5b[_0x3dd231(0x13b)](),'subUnitId':_0x249086});}},exports[_0x2a0d4e(0x394)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a['ICommandService']),Y(0x3,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x378)])),Y(0x4,a['Optional'](qe[_0x2a0d4e(0x1fd)]))],exports[_0x2a0d4e(0x394)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x241356,_0x174556,_0x46cf45,_0x2d5940)=>{const _0x5b1cb7=_0x2a0d4e;for(var _0x125d73=_0x2d5940>0x1?void 0x0:_0x2d5940?lt(_0x174556,_0x46cf45):_0x174556,_0x17f595=_0x241356[_0x5b1cb7(0x2c8)]-0x1,_0x476205;_0x17f595>=0x0;_0x17f595--)(_0x476205=_0x241356[_0x17f595])&&(_0x125d73=_0x476205(_0x125d73)||_0x125d73);return _0x125d73;},De=(_0x5b1799,_0x537978)=>(_0x23e85f,_0x36cc66)=>_0x537978(_0x23e85f,_0x36cc66,_0x5b1799);let me=class extends a[_0x2a0d4e(0x122)]{constructor(_0x5a1a00,_0x5b402c){const _0x343902=_0x2a0d4e;super(),this[_0x343902(0x246)]=_0x5a1a00,this['_imageIoService']=_0x5b402c,this[_0x343902(0x3cb)]();}[_0x2a0d4e(0x3cb)](){const _0x5c7517=_0x2a0d4e,_0x25653f=this;this['disposeWithMe'](this[_0x5c7517(0x246)][_0x5c7517(0x299)]({'onBeforePasteImage':async _0x1785a2=>{const _0x505ad7=_0x5c7517,_0xe2c636=await _0x25653f[_0x505ad7(0x3ac)][_0x505ad7(0x1f0)](_0x1785a2);return _0xe2c636?{'source':_0xe2c636[_0x505ad7(0x2b6)],'imageSourceType':_0xe2c636[_0x505ad7(0x13f)]}:null;}}));}};me=_t([De(0x0,p[_0x2a0d4e(0x36e)]),De(0x1,ze[_0x2a0d4e(0x281)])],me);const Ne=[_0x2a0d4e(0x321),_0x2a0d4e(0x1bb),_0x2a0d4e(0x1ca),'red.300',_0x2a0d4e(0x3ea),_0x2a0d4e(0x2ee)];class Re extends a[_0x2a0d4e(0x1e1)]{constructor(){const _0x23cdc9=_0x2a0d4e;super(...arguments),_(this,_0x23cdc9(0x3e5),new Map()),_(this,_0x23cdc9(0x232),0x0);}[_0x2a0d4e(0x2f8)](_0x4ab609){const _0x152f98=_0x2a0d4e;if(this[_0x152f98(0x3e5)][_0x152f98(0x3d9)](_0x4ab609))return this['_assignedColors'][_0x152f98(0x276)](_0x4ab609);const _0x4dfa73=Ne[this['_colorIndex']];return this['_colorIndex']=(this[_0x152f98(0x232)]+0x1)%Ne[_0x152f98(0x2c8)],this[_0x152f98(0x3e5)][_0x152f98(0x1f9)](_0x4ab609,_0x4dfa73),_0x4dfa73;}}function Fe(_0x45acaf){const _0x18cc0d=_0x2a0d4e;let _0x6c2181='';for(const _0x926b37 of _0x45acaf){const {startOffset:_0x26469f,endOffset:_0x3849a5,isActive:_0x572d5c,rangeType:_0x4a9e00,segmentId:_0x443fd1,segmentPage:_0x5d476c}=_0x926b37;_0x6c2181[_0x18cc0d(0x2c8)]&&(_0x6c2181+=','),_0x6c2181+=_0x26469f+':'+_0x3849a5+':'+(_0x572d5c?'1':'0')+':'+_0x4a9e00+':'+_0x443fd1+':'+_0x5d476c;}return _0x6c2181;}function ht(_0x492aa2){const _0x21f083=_0x2a0d4e,_0xbdce75=_0x492aa2[_0x21f083(0x3ed)](','),_0x118d56=[];for(const _0x220771 of _0xbdce75){const [_0x5783c2,_0x1d8ed2,_0x1ba386,_0xd251ad,_0x49de31,_0x59c7af]=_0x220771[_0x21f083(0x3ed)](':');_0x118d56['push']({'startOffset':Number(_0x5783c2),'endOffset':Number(_0x1d8ed2),'collapsed':_0x5783c2===_0x1d8ed2,'isActive':_0x1ba386==='1','rangeType':_0xd251ad===a[_0x21f083(0x2d1)]['TEXT']?a[_0x21f083(0x2d1)][_0x21f083(0x250)]:a['DOC_RANGE_TYPE'][_0x21f083(0x318)],'segmentId':typeof _0x49de31==_0x21f083(0x209)?String(_0x49de31):'','segmentPage':Number(_0x59c7af!=null?_0x59c7af:-0x1)});}return _0x118d56[_0x21f083(0x185)](_0x1d1f62=>_0x1d1f62[_0x21f083(0x2b9)])||(_0x118d56[0x0][_0x21f083(0x2b9)]=!0x0),_0x118d56;}class be extends a[_0x2a0d4e(0x122)]{constructor(){const _0x24f079=_0x2a0d4e;super(...arguments),_(this,_0x24f079(0x1b7),new I['BehaviorSubject'](null)),_(this,_0x24f079(0x2d7),this[_0x24f079(0x1b7)]['asObservable']());}[_0x2a0d4e(0x27e)](_0x5377f5){const _0x53f452=_0x2a0d4e,{unitID:_0xe39e5b,memberID:_0x53217e,textRanges:_0x5bf2ee}=_0x5377f5,_0x2ab5a9=Fe(_0x5bf2ee);if(_0x2ab5a9==='')return;const _0x1960a6={'unitID':_0xe39e5b,'memberID':_0x53217e,'selection':_0x2ab5a9};this[_0x53f452(0x1b7)]['next'](_0x1960a6);}}var ut=Object[_0x2a0d4e(0x399)],It=(_0x174a22,_0x2b6727,_0x10555b,_0x130d0e)=>{const _0xfc6648=_0x2a0d4e;for(var _0x3c302a=_0x130d0e>0x1?void 0x0:_0x130d0e?ut(_0x2b6727,_0x10555b):_0x2b6727,_0x800fc0=_0x174a22[_0xfc6648(0x2c8)]-0x1,_0x15691a;_0x800fc0>=0x0;_0x800fc0--)(_0x15691a=_0x174a22[_0x800fc0])&&(_0x3c302a=_0x15691a(_0x3c302a)||_0x3c302a);return _0x3c302a;},U=(_0x10a050,_0x554061)=>(_0x25643a,_0x147bb5)=>_0x554061(_0x25643a,_0x147bb5,_0x10a050);const dt=0x12c,St=0x64;let ve=class extends a[_0x2a0d4e(0x122)]{constructor(_0x30a15f,_0x9d537c,_0x1abb20,_0x8fe0da,_0x58b3c4,_0x12fcc0,_0x17f88b,_0x59a1f0,_0x3708c5){const _0x139cc7=_0x2a0d4e;super(),_(this,_0x139cc7(0x310),!0x1),_(this,_0x139cc7(0x3cb),!0x1),_(this,_0x139cc7(0x1ed),new I['BehaviorSubject'](new Map())),_(this,_0x139cc7(0x35c),this[_0x139cc7(0x1ed)]['asObservable']()),_(this,_0x139cc7(0x228),new I[(_0x139cc7(0x14b))]([])),_(this,_0x139cc7(0x126),this[_0x139cc7(0x228)][_0x139cc7(0x1df)](I[_0x139cc7(0x27a)](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x269e21=>{const _0x3d555e=_0x139cc7,_0x745269={'eventID':g[_0x3d555e(0x265)][_0x3d555e(0x22b)],'data':{'unitID':this[_0x3d555e(0x2d9)],'memberID':this[_0x3d555e(0x164)][_0x3d555e(0x26f)](),'selection':Fe(_0x269e21)}};this['_session'][_0x3d555e(0x159)](_0x745269,this[_0x3d555e(0x2d9)]);},St)),(this[_0x139cc7(0x2d9)]=_0x30a15f,this[_0x139cc7(0x164)]=_0x9d537c,this['_injector']=_0x1abb20,this[_0x139cc7(0x1e6)]=_0x8fe0da,this['_memberService']=_0x58b3c4,this[_0x139cc7(0x286)]=_0x12fcc0,this[_0x139cc7(0x370)]=_0x17f88b,this[_0x139cc7(0x2e1)]=_0x59a1f0,this[_0x139cc7(0x3db)]=_0x3708c5);}get[_0x2a0d4e(0x347)](){const _0x25f4a5=_0x2a0d4e;return this[_0x25f4a5(0x1ed)][_0x25f4a5(0x2ec)]();}get[_0x2a0d4e(0x1c4)](){const _0x1219bf=_0x2a0d4e;return this[_0x1219bf(0x228)]['getValue']();}['dispose'](){const _0x26179e=_0x2a0d4e;super[_0x26179e(0x17c)](),this['_cursorInfo$'][_0x26179e(0x28b)](new Map()),this[_0x26179e(0x1ed)][_0x26179e(0x2a9)](),this[_0x26179e(0x228)][_0x26179e(0x28b)]([]),this[_0x26179e(0x228)][_0x26179e(0x2a9)]();}[_0x2a0d4e(0x132)](){const _0x262933=_0x2a0d4e;this[_0x262933(0x3cb)]||(this[_0x262933(0x3cb)]=!0x0,this[_0x262933(0x164)][_0x262933(0x3b1)]['pipe'](I[_0x262933(0x3a9)](this[_0x262933(0x30b)]))[_0x262933(0x2f9)](_0xd65e11=>{const _0x3171f4=_0x262933;_0xd65e11===u[_0x3171f4(0x2fa)][_0x3171f4(0x1fb)]?this['_toggleOnline']():this[_0x3171f4(0x215)]();}),this[_0x262933(0x164)][_0x262933(0x22e)]['pipe'](I[_0x262933(0x3a9)](this[_0x262933(0x30b)]))[_0x262933(0x2f9)](_0x4e6fa8=>{const _0x4430ec=_0x262933,_0x256ebb=_0x4e6fa8['eventID'];_0x256ebb===g[_0x4430ec(0x265)][_0x4430ec(0x22b)]&&this[_0x4430ec(0x150)](_0x4e6fa8),_0x256ebb===g[_0x4430ec(0x265)][_0x4430ec(0x31c)]&&this[_0x4430ec(0x3df)](_0x4e6fa8);}),this['disposeWithMe'](this[_0x262933(0x3db)][_0x262933(0x377)](_0x30a628=>{const _0x224ddd=_0x262933,_0x4e756c=_0x30a628[_0x224ddd(0x364)];_0x4e756c!=null&&this['_online']&&_0x30a628['id']===V[_0x224ddd(0x38b)]['id']&&_0x4e756c[_0x224ddd(0x1f4)]===this[_0x224ddd(0x2d9)]&&_0x4e756c[_0x224ddd(0x379)]===!0x1&&_0x4e756c[_0x224ddd(0x12c)][_0x224ddd(0x2c8)]>0x0&&this[_0x224ddd(0x136)](_0x4e756c[_0x224ddd(0x12c)]);})),this[_0x262933(0x286)][_0x262933(0x2d7)][_0x262933(0x1df)](I[_0x262933(0x3a9)](this[_0x262933(0x30b)]))[_0x262933(0x2f9)](_0x28269b=>{const _0x2305fb=_0x262933;if((_0x28269b==null?void 0x0:_0x28269b[_0x2305fb(0x2d9)])!==this[_0x2305fb(0x2d9)])return;const _0x226885={'eventID':g[_0x2305fb(0x265)][_0x2305fb(0x22b)],'data':_0x28269b};this[_0x2305fb(0x150)](_0x226885);}),this['disposeWithMe'](this['_commandService'][_0x262933(0x377)](_0x3e21a5=>{const _0x4ab73f=_0x262933;if(_0x3e21a5['params']==null)return;const _0x288df9=_0x3e21a5[_0x4ab73f(0x364)];if(_0x3e21a5['id']!==V['RichTextEditingMutation']['id']||_0x288df9['unitId']!==this[_0x4ab73f(0x2d9)])return;const _0x5af4a1={'id':_0x4ab73f(0x167),'params':_0x288df9},_0x2d1679=this[_0x4ab73f(0x347)];for(const [_0x43e0c7,_0x3a96ea]of _0x2d1679){const _0x52483d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4ab73f(0x2d9)],'actions':null,'textRanges':_0x3a96ea[_0x4ab73f(0x12c)]}},_0x4cffde=this[_0x4ab73f(0x370)][_0x4ab73f(0x127)](_0x5af4a1,_0x52483d,!0x1);if(g[_0x4ab73f(0x314)](_0x4cffde))throw _0x4cffde[_0x4ab73f(0x2e9)];_0x2d1679[_0x4ab73f(0x1f9)](_0x43e0c7,{..._0x3a96ea,'ranges':_0x4cffde[_0x4ab73f(0x1b8)][_0x4ab73f(0x364)][_0x4ab73f(0x192)]});}queueMicrotask(()=>{const _0x3f7b2e=_0x4ab73f;this[_0x3f7b2e(0x1ed)][_0x3f7b2e(0x28b)](_0x2d1679);});})));}['_onCursorUpdate'](_0x3ad1b1){const _0x4b229a=_0x2a0d4e;var _0x582839,_0x344cf2;const {memberID:_0xd0015c,selection:_0x3db2ba}=_0x3ad1b1[_0x4b229a(0x3a0)],_0x5b0c14=ht(_0x3db2ba),_0x1586f7=(_0x344cf2=(_0x582839=this[_0x4b229a(0x308)][_0x4b229a(0x270)](this[_0x4b229a(0x2d9)],_0xd0015c))==null?void 0x0:_0x582839[_0x4b229a(0x18f)])!=null?_0x344cf2:_0x4b229a(0x1b3),_0x37d512={'color':this['_colorAssignService']['assignAColorForMemberID'](_0xd0015c),'name':_0x1586f7,'ranges':_0x5b0c14},_0x77171c=this[_0x4b229a(0x347)];_0x77171c[_0x4b229a(0x1f9)](_0xd0015c,_0x37d512),this[_0x4b229a(0x1ed)][_0x4b229a(0x28b)](_0x77171c);}[_0x2a0d4e(0x3df)](_0x4bf77d){const _0x58ffe0=_0x2a0d4e,{memberID:_0xb96f5c}=_0x4bf77d[_0x58ffe0(0x3a0)],_0x6de70b=this['cursorInfo'];_0x6de70b[_0x58ffe0(0x233)](_0xb96f5c),this['_cursorInfo$']['next'](_0x6de70b);}[_0x2a0d4e(0x28e)](){const _0x170f64=_0x2a0d4e;var _0x2d5c64;if(this[_0x170f64(0x310)]=!0x0,((_0x2d5c64=this[_0x170f64(0x2e1)][_0x170f64(0x27b)]())==null?void 0x0:_0x2d5c64[_0x170f64(0x13b)]())!==this[_0x170f64(0x2d9)])return;const _0x57beaa=this[_0x170f64(0x240)][_0x170f64(0x276)](V[_0x170f64(0x337)])['getDocRanges']();Array[_0x170f64(0x222)](_0x57beaa)&&_0x57beaa['length']>0x0&&this[_0x170f64(0x136)](_0x57beaa);}[_0x2a0d4e(0x215)](){const _0x2294a2=_0x2a0d4e;this[_0x2294a2(0x310)]=!0x1;}};ve=It([U(0x2,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),U(0x3,a[_0x2a0d4e(0x390)](Re)),U(0x4,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x21f)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x2a0d4e(0x125)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x2a0d4e(0x393)])],ve);var ft=Object[_0x2a0d4e(0x399)],mt=(_0x3638fe,_0x37bc5a,_0x32b51f,_0x3ffa4d)=>{const _0x3e9b30=_0x2a0d4e;for(var _0x14511a=_0x3ffa4d>0x1?void 0x0:_0x3ffa4d?ft(_0x37bc5a,_0x32b51f):_0x37bc5a,_0x136e39=_0x3638fe[_0x3e9b30(0x2c8)]-0x1,_0xb7ed4d;_0x136e39>=0x0;_0x136e39--)(_0xb7ed4d=_0x3638fe[_0x136e39])&&(_0x14511a=_0xb7ed4d(_0x14511a)||_0x14511a);return _0x14511a;},w=(_0x2bf0bd,_0x42ee7e)=>(_0x237321,_0xbd54f7)=>_0x42ee7e(_0x237321,_0xbd54f7,_0x2bf0bd);const vt=0x12c,gt=0x64,Et=()=>{let _0x577d5c=[],_0x45926d=!0x1;return _0x43d332=>{const _0x52157a=_0x463e;_0x577d5c[_0x52157a(0x3b4)](_0x43d332),_0x45926d||(_0x45926d=!0x0,setTimeout(()=>{_0x577d5c['forEach'](_0x25d2dd=>_0x25d2dd()),_0x577d5c=[],_0x45926d=!0x1;}));};};let ge=class extends a[_0x2a0d4e(0x122)]{constructor(_0x24d2a6,_0x2210e0,_0x3b94a4,_0x2a897c,_0x2058f0,_0x2389a1,_0x11a4e3,_0x26a14c){const _0x3d0d90=_0x2a0d4e;super(),_(this,_0x3d0d90(0x310),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x3d0d90(0x14b))](new Map())),_(this,'cursorInfo$',this[_0x3d0d90(0x1ed)][_0x3d0d90(0x1a8)]()),_(this,_0x3d0d90(0x228),new I[(_0x3d0d90(0x14b))]([])),_(this,'roomMembers$',this[_0x3d0d90(0x228)]['pipe'](I[_0x3d0d90(0x27a)](vt))),_(this,_0x3d0d90(0x136),a[_0x3d0d90(0x2ef)]((_0x111872,_0x55e737)=>{const _0x4bfd6f=_0x3d0d90,_0x241278={'eventID':g[_0x4bfd6f(0x265)][_0x4bfd6f(0x22b)],'data':{'unitID':this[_0x4bfd6f(0x2d9)],'memberID':this[_0x4bfd6f(0x164)][_0x4bfd6f(0x26f)](),'selection':B[_0x4bfd6f(0x1f5)](_0x111872,_0x55e737[_0x4bfd6f(0x33e)])}};this[_0x4bfd6f(0x164)][_0x4bfd6f(0x159)](_0x241278,this[_0x4bfd6f(0x2d9)]);},gt)),(this[_0x3d0d90(0x2d9)]=_0x24d2a6,this[_0x3d0d90(0x164)]=_0x2210e0,this[_0x3d0d90(0x240)]=_0x3b94a4,this[_0x3d0d90(0x1e6)]=_0x2a897c,this[_0x3d0d90(0x308)]=_0x2058f0,this['_univerInstanceService']=_0x2389a1,this[_0x3d0d90(0x3db)]=_0x11a4e3,this[_0x3d0d90(0x2e4)]=_0x26a14c);}get[_0x2a0d4e(0x347)](){const _0x15f4d4=_0x2a0d4e;return this[_0x15f4d4(0x1ed)][_0x15f4d4(0x2ec)]();}get['roomMembers'](){const _0x57fc5f=_0x2a0d4e;return this[_0x57fc5f(0x228)][_0x57fc5f(0x2ec)]();}[_0x2a0d4e(0x17c)](){const _0x4a1f25=_0x2a0d4e;super[_0x4a1f25(0x17c)](),this[_0x4a1f25(0x1ed)][_0x4a1f25(0x28b)](new Map()),this[_0x4a1f25(0x1ed)][_0x4a1f25(0x2a9)](),this[_0x4a1f25(0x228)][_0x4a1f25(0x28b)]([]),this[_0x4a1f25(0x228)][_0x4a1f25(0x2a9)]();}[_0x2a0d4e(0x132)](){const _0x472f17=_0x2a0d4e;this[_0x472f17(0x3cb)]||(this[_0x472f17(0x3cb)]=!0x0,this[_0x472f17(0x164)][_0x472f17(0x3b1)][_0x472f17(0x1df)](I[_0x472f17(0x3a9)](this[_0x472f17(0x30b)]))[_0x472f17(0x2f9)](_0x549556=>{const _0x54f761=_0x472f17;_0x549556===u[_0x54f761(0x2fa)][_0x54f761(0x1fb)]?this[_0x54f761(0x28e)]():this[_0x54f761(0x215)]();}),this[_0x472f17(0x164)][_0x472f17(0x22e)][_0x472f17(0x1df)](I[_0x472f17(0x3a9)](this[_0x472f17(0x30b)]))['subscribe'](_0x275ff6=>{const _0x160baa=_0x472f17,_0x56c397=_0x275ff6['eventID'];_0x56c397===g['CollaborationEvent'][_0x160baa(0x22b)]&&this[_0x160baa(0x150)](_0x275ff6),_0x56c397===g[_0x160baa(0x265)]['USERS_LEAVE']&&this[_0x160baa(0x3df)](_0x275ff6);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x472f17(0x377)](_0x1a3475=>{const _0x392bc9=_0x472f17;if(this[_0x392bc9(0x310)]&&_0x1a3475['id']===v[_0x392bc9(0x2f0)]['id']&&_0x1a3475[_0x392bc9(0x364)]['unitId']===this['unitID']){const _0x289a55=_0x1a3475[_0x392bc9(0x364)];this[_0x392bc9(0x136)](_0x289a55[_0x392bc9(0x2b4)],_0x289a55[_0x392bc9(0x3ec)][0x0]);}})));}[_0x2a0d4e(0x150)](_0x478cdf){const _0x4fbea6=_0x2a0d4e;var _0x5a9bac,_0x15d760;const {memberID:_0x5821ef,selection:_0xb2729b}=_0x478cdf[_0x4fbea6(0x3a0)],{sheetName:_0x2d410b,range:_0x1e4a69}=B['deserializeRangeWithSheet'](_0xb2729b),_0x2e1534={'name':(_0x15d760=(_0x5a9bac=this[_0x4fbea6(0x308)][_0x4fbea6(0x270)](this[_0x4fbea6(0x2d9)],_0x5821ef))==null?void 0x0:_0x5a9bac[_0x4fbea6(0x18f)])!=null?_0x15d760:_0x4fbea6(0x1b3),'range':this[_0x4fbea6(0x32d)](_0x2d410b,_0x1e4a69),'sheetID':_0x2d410b,'color':this[_0x4fbea6(0x1e6)][_0x4fbea6(0x2f8)](_0x5821ef),'selection':_0xb2729b},_0x360ebe=this['cursorInfo'];_0x360ebe[_0x4fbea6(0x1f9)](_0x5821ef,_0x2e1534),this[_0x4fbea6(0x1ed)][_0x4fbea6(0x28b)](_0x360ebe);}[_0x2a0d4e(0x3df)](_0x51ca3d){const _0x30085f=_0x2a0d4e,{memberID:_0x52e157}=_0x51ca3d[_0x30085f(0x3a0)],_0x153a87=this[_0x30085f(0x347)];_0x153a87['delete'](_0x52e157),this[_0x30085f(0x1ed)]['next'](_0x153a87);}[_0x2a0d4e(0x32d)](_0x21283f,_0x26cc8e){const _0xeed0ed=_0x2a0d4e;var _0x3d036e,_0x260934;const _0x4c579d=(_0x260934=(_0x3d036e=this['_univerInstanceService'][_0xeed0ed(0x303)](this[_0xeed0ed(0x2d9)]))==null?void 0x0:_0x3d036e['getSheetBySheetId'](_0x21283f))==null?void 0x0:_0x260934[_0xeed0ed(0x37e)]();return(_0x4c579d==null?void 0x0:_0x4c579d[_0xeed0ed(0x172)](_0x137002=>a['Rectangle'][_0xeed0ed(0x354)](_0x137002,_0x26cc8e)))||_0x26cc8e;}[_0x2a0d4e(0x214)](){const _0x297958=_0x2a0d4e,_0x507d3c=new a[(_0x297958(0x179))](),_0x33b352=Et(),_0x5b5358=()=>{const _0x5b18f2=_0x297958;_0x507d3c['dispose']();const _0x331eb8=(_0x25f045,_0xfb359f,_0x1b8cea,_0x3ee6a4)=>{const _0x8349b3=_0x463e;let _0x331174=[];switch(_0x25f045['id']){case v[_0x8349b3(0x13c)]['DeleteRangeMoveLeftCommandId']:{_0x331174=v[_0x8349b3(0x197)](_0x25f045,_0x3ee6a4);break;}case v['EffectRefRangId'][_0x8349b3(0x1b2)]:{_0x331174=v['handleDeleteRangeMoveUp'](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)][_0x8349b3(0x196)]:{_0x331174=v['handleInsertCol'](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)][_0x8349b3(0x1de)]:{_0x331174=v[_0x8349b3(0x373)](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)][_0x8349b3(0x326)]:{_0x331174=v[_0x8349b3(0x313)](_0x25f045,_0x3ee6a4);break;}case v['EffectRefRangId'][_0x8349b3(0x397)]:{_0x331174=v[_0x8349b3(0x368)](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)]['MoveRangeCommandId']:{_0x331174=v['handleMoveRange'](_0x25f045,_0x3ee6a4);break;}case v[_0x8349b3(0x13c)]['RemoveColCommandId']:{_0x331174=v[_0x8349b3(0x39c)](_0x25f045,_0x3ee6a4);break;}case v['EffectRefRangId'][_0x8349b3(0x19e)]:{_0x331174=v['handleIRemoveRow'](_0x25f045,_0x3ee6a4);break;}}const _0x368775=v[_0x8349b3(0x312)](_0x331174,_0x3ee6a4),_0x2c3c3a=this[_0x8349b3(0x347)][_0x8349b3(0x276)](_0xfb359f);if(_0x2c3c3a&&_0x368775){const _0x155302={..._0x2c3c3a,'range':_0x368775};this[_0x8349b3(0x347)][_0x8349b3(0x1f9)](_0xfb359f,_0x155302),_0x33b352(()=>{const _0x59a842=_0x8349b3,_0x39e81f=this[_0x59a842(0x2e4)]['registerRefRange'](_0x368775,_0x1d1d9c=>(_0x39e81f[_0x59a842(0x17c)](),_0x331eb8(_0x1d1d9c,_0xfb359f,_0x1b8cea,_0x368775)));_0x507d3c[_0x59a842(0x205)](_0x39e81f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5b18f2(0x38a)]((_0x2911c4,_0x40b78d)=>{const _0x39a5e1=_0x5b18f2,{range:_0x184ba9,sheetID:_0x37393d}=_0x2911c4,_0x1ceb75=this[_0x39a5e1(0x2e4)][_0x39a5e1(0x381)](_0x184ba9,_0x2e6563=>(_0x1ceb75['dispose'](),_0x331eb8(_0x2e6563,_0x40b78d,_0x37393d,_0x184ba9)));_0x507d3c[_0x39a5e1(0x205)](_0x1ceb75);});};this['disposeWithMe'](a[_0x297958(0x20d)](this[_0x297958(0x1ed)][_0x297958(0x2f9)](()=>{_0x5b5358();})));}[_0x2a0d4e(0x28e)](){const _0x4301f6=_0x2a0d4e;var _0x3b1c14,_0x1af6b1;if(this['_online']=!0x0,((_0x3b1c14=this[_0x4301f6(0x2e1)][_0x4301f6(0x27b)]())==null?void 0x0:_0x3b1c14[_0x4301f6(0x13b)]())!==this[_0x4301f6(0x2d9)])return;const _0x302f49=(_0x1af6b1=this['_injector'][_0x4301f6(0x276)](v[_0x4301f6(0x3b0)])[_0x4301f6(0x1e5)]())==null?void 0x0:_0x1af6b1[0x0],_0x295057=this[_0x4301f6(0x2e1)][_0x4301f6(0x2ad)](a[_0x4301f6(0x2d8)][_0x4301f6(0x1c0)])['getActiveSheet']();_0x302f49&&_0x295057&&this[_0x4301f6(0x136)](_0x295057[_0x4301f6(0x2b0)](),_0x302f49);}[_0x2a0d4e(0x215)](){const _0x442e91=_0x2a0d4e;this[_0x442e91(0x310)]=!0x1;}};ge=mt([w(0x2,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),w(0x3,a[_0x2a0d4e(0x390)](Re)),w(0x4,a['Inject'](u[_0x2a0d4e(0x21f)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2a0d4e(0x393)]),w(0x7,a[_0x2a0d4e(0x390)](v[_0x2a0d4e(0x12e)]))],ge);var Ct=Object[_0x2a0d4e(0x399)],pt=(_0xf0a3ac,_0x134fd4,_0x7027f4,_0x3fce4e)=>{const _0x17f7d7=_0x2a0d4e;for(var _0x465123=_0x3fce4e>0x1?void 0x0:_0x3fce4e?Ct(_0x134fd4,_0x7027f4):_0x134fd4,_0x16b257=_0xf0a3ac[_0x17f7d7(0x2c8)]-0x1,_0x2a5634;_0x16b257>=0x0;_0x16b257--)(_0x2a5634=_0xf0a3ac[_0x16b257])&&(_0x465123=_0x2a5634(_0x465123)||_0x465123);return _0x465123;},ce=(_0x4f84f7,_0x3a6f9b)=>(_0x32521a,_0x41122a)=>_0x3a6f9b(_0x32521a,_0x41122a,_0x4f84f7);let F=class extends a['RxDisposable']{constructor(_0x3cf8ea,_0x2a3b28,_0x18926b){const _0x19e304=_0x2a0d4e;super(),_(this,_0x19e304(0x1bc),new Map()),_(this,_0x19e304(0x266),new I[(_0x19e304(0x34e))]()),(this[_0x19e304(0x2e1)]=_0x3cf8ea,this[_0x19e304(0x240)]=_0x2a3b28,this[_0x19e304(0x349)]=_0x18926b,this['_init']());}['dispose'](){const _0x567077=_0x2a0d4e;super[_0x567077(0x17c)](),this['_entityInit$'][_0x567077(0x2a9)](),this[_0x567077(0x1bc)][_0x567077(0x38a)](_0x3df240=>_0x3df240[_0x567077(0x17c)]());}[_0x2a0d4e(0x39d)](_0x33f651){const _0x5f2039=_0x2a0d4e;return this['_entities']['has'](_0x33f651)?this['_entities'][_0x5f2039(0x276)](_0x33f651)[_0x5f2039(0x35c)]:this['_entityInit$'][_0x5f2039(0x1df)](I['filter'](_0x57090e=>_0x57090e[_0x5f2039(0x2d9)]===_0x33f651),I[_0x5f2039(0x358)](_0x2709b6=>_0x2709b6[_0x5f2039(0x35c)]));}['_init'](){const _0x19bec8=_0x2a0d4e;this[_0x19bec8(0x2e1)][_0x19bec8(0x19b)](a[_0x19bec8(0x2d8)][_0x19bec8(0x1c0)])[_0x19bec8(0x1df)](I['takeUntil'](this['dispose$']))[_0x19bec8(0x2f9)](async _0x38b69a=>{const _0x5e231e=_0x19bec8,_0x364937=_0x38b69a['getUnitId'](),_0x56ccce=await this[_0x5e231e(0x165)](_0x364937);this[_0x5e231e(0x266)][_0x5e231e(0x28b)](_0x56ccce),this[_0x5e231e(0x1bc)][_0x5e231e(0x1f9)](_0x364937,_0x56ccce);}),this['_univerInstanceService'][_0x19bec8(0x19b)](a[_0x19bec8(0x2d8)][_0x19bec8(0x181)])['pipe'](I['takeUntil'](this[_0x19bec8(0x30b)]))[_0x19bec8(0x1df)](I[_0x19bec8(0x2f5)](_0x1b34a9=>!_0x1b34a9[_0x19bec8(0x13b)]()['startsWith']('__')))['subscribe'](async _0x523905=>{const _0x518705=_0x19bec8,_0x5e94e3=_0x523905['getUnitId'](),_0x919e95=await this['_startDocCollabCursor'](_0x5e94e3);this[_0x518705(0x266)][_0x518705(0x28b)](_0x919e95),this['_entities'][_0x518705(0x1f9)](_0x5e94e3,_0x919e95);}),I[_0x19bec8(0x3be)](this['_univerInstanceService'][_0x19bec8(0x153)](a[_0x19bec8(0x2d8)][_0x19bec8(0x181)]),this[_0x19bec8(0x2e1)][_0x19bec8(0x153)](a['UniverInstanceType'][_0x19bec8(0x1c0)]))[_0x19bec8(0x1df)](I['takeUntil'](this[_0x19bec8(0x30b)]))[_0x19bec8(0x2f9)](_0x41007e=>{const _0x2f3f49=_0x19bec8,_0x535b87=_0x41007e[_0x2f3f49(0x13b)](),_0x1b9303=this[_0x2f3f49(0x1bc)]['get'](_0x535b87);_0x1b9303&&(_0x1b9303[_0x2f3f49(0x17c)](),this[_0x2f3f49(0x1bc)]['delete'](_0x535b87));});}async[_0x2a0d4e(0x165)](_0xb7d985){const _0x5d0016=_0x2a0d4e,_0x2dd765=await this['_collabSessionService'][_0x5d0016(0x145)](_0xb7d985),_0x6d3d45=this[_0x5d0016(0x240)]['createInstance'](ge,_0xb7d985,_0x2dd765);return _0x6d3d45[_0x5d0016(0x132)](),_0x6d3d45;}async[_0x2a0d4e(0x1e8)](_0xf42da2){const _0x2e781a=_0x2a0d4e,_0xc21782=await this['_collabSessionService']['requireSession'](_0xf42da2),_0x4b81bf=this[_0x2e781a(0x240)][_0x2e781a(0x2c3)](ve,_0xf42da2,_0xc21782);return _0x4b81bf[_0x2e781a(0x132)](),_0x4b81bf;}};F=pt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),ce(0x2,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x26b)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x404ce2,_0x3221a0){const _0x1fabe2=_0x2a0d4e;let {radius:_0x1bd1f5,width:_0x377bbf,height:_0x3f5a3c}=_0x3221a0;_0x1bd1f5=_0x1bd1f5!=null?_0x1bd1f5:0x0,_0x377bbf=_0x377bbf!=null?_0x377bbf:0x1e,_0x3f5a3c=_0x3f5a3c!=null?_0x3f5a3c:0x1e;let _0x2e95de=0x0,_0xea2ea8=0x0,_0x524642=0x0;_0x2e95de=_0xea2ea8=_0x524642=Math[_0x1fabe2(0x21d)](_0x1bd1f5,_0x377bbf/0x2,_0x3f5a3c/0x2),_0x404ce2['beginPath'](),_0x404ce2[_0x1fabe2(0x275)](_0x2e95de,0x0),_0x404ce2[_0x1fabe2(0x133)](_0x377bbf-_0xea2ea8,0x0),_0x404ce2[_0x1fabe2(0x24f)](_0x377bbf-_0xea2ea8,_0xea2ea8,_0xea2ea8,Math['PI']*0x3/0x2,0x0,!0x1),_0x404ce2[_0x1fabe2(0x133)](_0x377bbf,_0x3f5a3c-_0x524642),_0x404ce2[_0x1fabe2(0x24f)](_0x377bbf-_0x524642,_0x3f5a3c-_0x524642,_0x524642,0x0,Math['PI']/0x2,!0x1),_0x404ce2[_0x1fabe2(0x133)](0x0,_0x3f5a3c),_0x404ce2['lineTo'](0x0,_0x2e95de),_0x404ce2['arc'](_0x2e95de,_0x2e95de,_0x2e95de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x404ce2[_0x1fabe2(0x16e)](),_0x3221a0[_0x1fabe2(0x251)]&&(_0x404ce2['save'](),_0x404ce2['fillStyle']=_0x3221a0[_0x1fabe2(0x251)],_0x3221a0[_0x1fabe2(0x2c4)]===_0x1fabe2(0x1a4)?_0x404ce2[_0x1fabe2(0x251)]('evenodd'):_0x404ce2[_0x1fabe2(0x251)](),_0x404ce2[_0x1fabe2(0x216)]());}class re extends C['Shape']{constructor(_0x156aa,_0x386bea){const _0x3c77d2=_0x2a0d4e;super(_0x156aa,_0x386bea),_(this,_0x3c77d2(0x2db)),_(this,_0x3c77d2(0x140)),(this[_0x3c77d2(0x2db)]=_0x386bea==null?void 0x0:_0x386bea[_0x3c77d2(0x2db)],this[_0x3c77d2(0x140)]=_0x386bea==null?void 0x0:_0x386bea['text']);}static['drawWith'](_0x348592,_0x52fa20){const _0x2d4001=_0x2a0d4e,{text:_0x3da28c,color:_0x25507e}=_0x52fa20;_0x348592[_0x2d4001(0x392)](),_0x348592[_0x2d4001(0x204)]=_0x2d4001(0x200);const _0x420c76=_0x348592['measureText'](_0x3da28c)[_0x2d4001(0x189)],_0x1211a9=Math['min'](_0x420c76+0x2*le,Ue);Ot(_0x348592,{'height':X,'radius':0x4,'width':_0x1211a9,'fill':_0x25507e}),_0x348592[_0x2d4001(0x1c1)]=_0x2d4001(0x31a);const _0x170768=le,_0xca5f19=X-Tt,_0xd608cd=Ue-0x2*le;if(_0x420c76>_0xd608cd){let _0x10e9cf='',_0x46b41e=0x0;for(const _0x1f7dde of _0x3da28c){const _0x5006a5=_0x348592[_0x2d4001(0x1e7)](_0x1f7dde)[_0x2d4001(0x189)];if(_0x46b41e+_0x5006a5<=_0xd608cd-_0x348592[_0x2d4001(0x1e7)](_0x2d4001(0x28a))[_0x2d4001(0x189)])_0x10e9cf+=_0x1f7dde,_0x46b41e+=_0x5006a5;else{_0x10e9cf+=_0x2d4001(0x28a);break;}}_0x348592[_0x2d4001(0x2a7)](_0x10e9cf,_0x170768,_0xca5f19);}else _0x348592[_0x2d4001(0x2a7)](_0x3da28c,_0x170768,_0xca5f19);_0x348592[_0x2d4001(0x216)]();}['_draw'](_0x834a4f){re['drawWith'](_0x834a4f,this);}}const _e=_0x2a0d4e(0x2ce),Rt=_0x2a0d4e(0x3a5),bt=_0x2a0d4e(0x135),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2a0d4e(0x3b5);class Le{constructor(_0x7d50a2,_0x37e723,_0x581ad1,_0x19b84d){const _0x543a0a=_0x2a0d4e;_(this,'_shapes',[]),_(this,_0x543a0a(0x17d),null),_(this,_0x543a0a(0x1cc),null),_(this,_0x543a0a(0x2ba),null),_(this,_0x543a0a(0x297),null),_(this,_0x543a0a(0x1bd),null),(this[_0x543a0a(0x3c5)]=_0x7d50a2,this['_scene']=_0x37e723,this[_0x543a0a(0x1f7)]=_0x581ad1,this['_document']=_0x19b84d,this[_0x543a0a(0x188)]());}set[_0x2a0d4e(0x243)](_0x1bb873){const _0x1c4d79=_0x2a0d4e;_0x1bb873?(this['_anchorDot']&&this[_0x1c4d79(0x2ba)][_0x1c4d79(0x2d0)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x1c4d79(0x2ba)]&&this[_0x1c4d79(0x2ba)][_0x1c4d79(0x31f)](),this[_0x1c4d79(0x1cc)]&&this[_0x1c4d79(0x1cc)][_0x1c4d79(0x2d0)]());}[_0x2a0d4e(0x17c)](){const _0x22bd2c=_0x2a0d4e;for(const _0x2b379e of this['_shapes'])_0x2b379e[_0x22bd2c(0x17c)]();this[_0x22bd2c(0x1cc)]&&this[_0x22bd2c(0x1cc)]['dispose'](),this['_anchorDot']&&this[_0x22bd2c(0x2ba)]['dispose'](),this[_0x22bd2c(0x17d)]&&this[_0x22bd2c(0x17d)]['dispose'](),this[_0x22bd2c(0x1bd)]&&this['_eventUnsubscribe']();}['_render'](){const _0x2f944a=_0x2a0d4e;var _0x32fbdb;const {_docSkeleton:_0x3eb3d9,_document:_0x976ecd}=this,{color:_0x4abc08,name:_0x373102,ranges:_0x36bb3f}=this[_0x2f944a(0x3c5)],_0x3c9b9b=_0x976ecd[_0x2f944a(0x330)](),{docsLeft:_0x53cfcf,docsTop:_0x2dcdbf}=_0x3c9b9b,_0xe067e=new p[(_0x2f944a(0x1cf))](_0x3c9b9b,_0x3eb3d9);for(const {startOffset:_0x5f0619,endOffset:_0x606dfb,rangeType:_0x381073,segmentId:_0x56cdf9,segmentPage:_0x1949cb,collapsed:_0x4810c1,isActive:_0x360cca}of _0x36bb3f){const _0x528b5a=_0x3eb3d9[_0x2f944a(0x1ce)](_0x5f0619,!0x0,_0x56cdf9,_0x1949cb);let _0x5dac3e=_0x3eb3d9[_0x2f944a(0x1ce)](_0x606dfb,!0x0,_0x56cdf9,_0x1949cb);if(_0x5dac3e==null&&(_0x5dac3e=_0x3eb3d9[_0x2f944a(0x1ce)](_0x606dfb-0x1,!0x1,_0x56cdf9,_0x1949cb)),_0x360cca){const {contentBoxPointGroup:_0x24ab70}=_0xe067e[_0x2f944a(0x3eb)](_0x5dac3e,_0x5dac3e);if(_0x24ab70[_0x2f944a(0x2c8)]===0x0)continue;this[_0x2f944a(0x18d)](_0x4abc08,_0x24ab70,_0x53cfcf,_0x2dcdbf,_0x373102),this[_0x2f944a(0x1bd)]=this[_0x2f944a(0x34f)]();}if(_0x528b5a&&_0x5dac3e){if(_0x381073===a[_0x2f944a(0x2d1)][_0x2f944a(0x318)]){const _0x440abb=new p[(_0x2f944a(0x258))](_0x3c9b9b,_0x3eb3d9),{pointGroup:_0x2e53eb}=(_0x32fbdb=_0x440abb['getRangePointData'](_0x528b5a,_0x5dac3e))!=null?_0x32fbdb:{};if(_0x2e53eb==null||_0x2e53eb['length']===0x0)continue;this[_0x2f944a(0x2ea)](_0x4abc08,_0x2e53eb,_0x53cfcf,_0x2dcdbf);}else{if(!_0x4810c1){const {borderBoxPointGroup:_0x148ffd}=_0xe067e[_0x2f944a(0x3eb)](_0x528b5a,_0x5dac3e);if(_0x148ffd[_0x2f944a(0x2c8)]===0x0)continue;this[_0x2f944a(0x2a1)](_0x4abc08,_0x148ffd,_0x53cfcf,_0x2dcdbf);}}}}}[_0x2a0d4e(0x18d)](_0x8eae0,_0x39f76b,_0x28842f,_0x948f02,_0x36cabd){const _0x34da83=_0x2a0d4e,_0x2464e1=this[_0x34da83(0x2a4)](_0x39f76b),{left:_0x41eab4,top:_0x5bd097,height:_0x532988}=_0x2464e1,_0x161fd5=this[_0x34da83(0x38d)](),_0x2678bb=Nt/_0x161fd5,_0x4f51ce=new C[(_0x34da83(0x25a))](_e+a[_0x34da83(0x237)](H),{'left':_0x41eab4+_0x28842f-_0x2678bb,'top':_0x5bd097+_0x948f02,'height':_0x532988,'width':Dt,'fill':_0x8eae0||C[_0x34da83(0x241)](a[_0x34da83(0x35f)][_0x34da83(0x2d3)],0x0),'strokeWidth':_0x2678bb,'stroke':Ut,'evented':!0x0});this[_0x34da83(0x17d)]=_0x4f51ce,this[_0x34da83(0x2df)][_0x34da83(0x161)](_0x4f51ce,p[_0x34da83(0x2bf)]);const _0x10959e=new C[(_0x34da83(0x25a))](_e+a[_0x34da83(0x237)](H),{'left':_0x41eab4+_0x28842f-_0x2678bb,'top':_0x5bd097+_0x948f02-he/0x2,'height':he,'width':he,'fill':_0x8eae0||C[_0x34da83(0x241)](a['COLORS'][_0x34da83(0x2d3)],0x0),'strokeWidth':0x0,'stroke':_0x8eae0||C[_0x34da83(0x241)](a[_0x34da83(0x35f)][_0x34da83(0x2d3)],0x0),'evented':!0x1});this[_0x34da83(0x2ba)]=_0x10959e,this[_0x34da83(0x2df)][_0x34da83(0x161)](_0x10959e,p['TEXT_RANGE_LAYER_INDEX']);const _0x4b867a=new re(_e+a['generateRandomId'](H),{'left':_0x41eab4+_0x28842f-_0x2678bb,'top':_0x5bd097+_0x948f02-X,'text':_0x36cabd,'color':_0x8eae0});this[_0x34da83(0x1cc)]=_0x4b867a,this['_scene']['addObject'](_0x4b867a,p[_0x34da83(0x2bf)]),this[_0x34da83(0x243)]=!0x1;}[_0x2a0d4e(0x34f)](){const _0x21970c=_0x2a0d4e,_0xad7b08=this['_anchor'][_0x21970c(0x3de)][_0x21970c(0x3aa)](()=>{this['_hover']=!0x0;}),_0x5695ce=this[_0x21970c(0x17d)][_0x21970c(0x3e8)][_0x21970c(0x3aa)](()=>{const _0x4e5910=_0x21970c;this[_0x4e5910(0x297)]&&clearTimeout(this[_0x4e5910(0x297)]),this['_hideTimer']=setTimeout(()=>{const _0x55ddf9=_0x4e5910;this[_0x55ddf9(0x243)]=!0x1;},0x7d0);});return()=>{const _0x433c4c=_0x21970c;_0xad7b08['unsubscribe'](),_0x5695ce[_0x433c4c(0x2a8)]();};}['_drawTextRange'](_0x3f253b,_0x6ab1d0,_0x319115,_0x1d7022){const _0x25d28d=_0x2a0d4e,_0x587b85=new a[(_0x25d28d(0x3e0))](_0x3f253b)['setAlpha'](0.2)['toRgbString'](),_0x396e8a=new C[(_0x25d28d(0x231))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x6ab1d0,'fill':_0x587b85||C[_0x25d28d(0x241)](a[_0x25d28d(0x35f)][_0x25d28d(0x2d3)],0.2),'left':_0x319115,'top':_0x1d7022,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25d28d(0x226)][_0x25d28d(0x3b4)](_0x396e8a),this[_0x25d28d(0x2df)][_0x25d28d(0x161)](_0x396e8a,p[_0x25d28d(0x2bf)]);}[_0x2a0d4e(0x2ea)](_0x54cdf4,_0x878a8b,_0x53671e,_0x5d790f){const _0x98503=_0x2a0d4e,_0x1f0463=new a[(_0x98503(0x3e0))](_0x54cdf4)[_0x98503(0x2f1)](0.2)[_0x98503(0x267)](),_0x78234c=new C['RegularPolygon'](bt+a[_0x98503(0x237)](H),{'pointsGroup':_0x878a8b,'fill':_0x1f0463||C['getColor'](a[_0x98503(0x35f)][_0x98503(0x2d3)],0.2),'left':_0x53671e,'top':_0x5d790f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x78234c),this[_0x98503(0x2df)]['addObject'](_0x78234c,p[_0x98503(0x2bf)]);}[_0x2a0d4e(0x2a4)](_0x5a6d35){const _0x303455=_0x5a6d35[0x0],_0xcba40a=_0x303455[0x0],_0x49d7f3=_0x303455[0x2],{x:_0x14df57,y:_0x500e20}=_0xcba40a,{x:_0x27029e,y:_0x1a2dc0}=_0x49d7f3;return{'left':_0x14df57,'top':_0x500e20,'width':_0x27029e-_0x14df57,'height':_0x1a2dc0-_0x500e20};}['_getScale'](){const _0x187a96=_0x2a0d4e,{scaleX:_0x278420,scaleY:_0x2bfe39}=this['_scene']['getAncestorScale']();return Math[_0x187a96(0x367)](_0x278420,_0x2bfe39);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x47c455,_0x434690,_0x4b29da,_0xfc69df)=>{for(var _0x159eef=_0xfc69df>0x1?void 0x0:_0xfc69df?Lt(_0x434690,_0x4b29da):_0x434690,_0x2aea28=_0x47c455['length']-0x1,_0x19f157;_0x2aea28>=0x0;_0x2aea28--)(_0x19f157=_0x47c455[_0x2aea28])&&(_0x159eef=_0x19f157(_0x159eef)||_0x159eef);return _0x159eef;},q=(_0x5ca59c,_0x19522c)=>(_0x543e5a,_0x34e2fc)=>_0x19522c(_0x543e5a,_0x34e2fc,_0x5ca59c);let Ee=class extends a[_0x2a0d4e(0x122)]{constructor(_0x255a72,_0x302af9,_0x1c46d8,_0xad601a,_0xcdd925){const _0x243d5d=_0x2a0d4e;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x243d5d(0x1d0)]=_0x255a72,this['_docSkeletonManagerService']=_0x302af9,this[_0x243d5d(0x2f2)]=_0x1c46d8,this['_commandService']=_0xad601a,this[_0x243d5d(0x23d)]=_0xcdd925,this[_0x243d5d(0x3cb)]());}['_init'](){const _0x138f1c=_0x2a0d4e,_0x553a51=this[_0x138f1c(0x1d0)]['unitId'],_0x4c23b2=this[_0x138f1c(0x3bb)];this[_0x138f1c(0x1b0)](I[_0x138f1c(0x3b3)]([this[_0x138f1c(0x2f2)][_0x138f1c(0x39d)](_0x553a51),this[_0x138f1c(0x23d)][_0x138f1c(0x32e)]])['pipe']($[_0x138f1c(0x13d)](([_0x1099aa,_0x3757e7])=>({'skeleton':_0x4c23b2[_0x138f1c(0x193)](),'cursors':[..._0x1099aa[_0x138f1c(0x2cd)]()]['flatMap'](_0x561e0d=>({..._0x561e0d,'color':this[_0x138f1c(0x23d)][_0x138f1c(0x22d)](_0x561e0d['color'])}))})))[_0x138f1c(0x2f9)](_0x8e4a9a=>{const _0x13ae73=_0x138f1c;if(this[_0x13ae73(0x298)](),_0x8e4a9a){const {skeleton:_0x248cff,cursors:_0x69bba1}=_0x8e4a9a;this['_updateCollabCursors'](_0x248cff,_0x69bba1);}})),this['_initResize'](),this[_0x138f1c(0x274)]();}[_0x2a0d4e(0x14a)](_0xe55c2e,_0x5ac536){const _0x2733e1=_0x2a0d4e,{scene:_0xc9a5b2,mainComponent:_0x533db1}=this[_0x2733e1(0x1d0)],_0x5c8712=_0x5ac536[_0x2733e1(0x13d)](_0x1c1306=>new Le(_0x1c1306,_0xc9a5b2,_0xe55c2e,_0x533db1));this['_cursorShapes']=_0x5c8712,this[_0x2733e1(0x1b5)]=_0x5ac536;}[_0x2a0d4e(0x2e3)](){const _0x3a784c=_0x2a0d4e;this[_0x3a784c(0x298)]();const {scene:_0x4f4845,mainComponent:_0x59fdf3}=this[_0x3a784c(0x1d0)],_0x356066=this[_0x3a784c(0x3bb)]['getSkeleton'](),_0x122484=this[_0x3a784c(0x1b5)][_0x3a784c(0x13d)](_0x484c21=>new Le(_0x484c21,_0x4f4845,_0x356066,_0x59fdf3));this[_0x3a784c(0x38f)]=_0x122484;}[_0x2a0d4e(0x298)](){const _0x3ed839=_0x2a0d4e;this[_0x3ed839(0x38f)][_0x3ed839(0x38a)](_0x9acfaf=>_0x9acfaf[_0x3ed839(0x17c)]()),this[_0x3ed839(0x38f)]=[];}[_0x2a0d4e(0x274)](){const _0x22444b=_0x2a0d4e,_0x58200b=[p['SetDocZoomRatioOperation']['id']];this[_0x22444b(0x1b0)](this[_0x22444b(0x3db)][_0x22444b(0x377)](_0xc9783c=>{const _0x55b647=_0x22444b;_0x58200b[_0x55b647(0x260)](_0xc9783c['id'])&&_0xc9783c['params'][_0x55b647(0x1f4)]===this[_0x55b647(0x1d0)][_0x55b647(0x1f4)]&&this[_0x55b647(0x2e3)]();}));}[_0x2a0d4e(0x2b7)](){const _0x5773a1=_0x2a0d4e;this[_0x5773a1(0x1b0)](a[_0x5773a1(0x317)](this['_context'][_0x5773a1(0x355)][_0x5773a1(0x2ca)])[_0x5773a1(0x1df)]($[_0x5773a1(0x2f5)](_0x25c540=>_0x25c540[_0x5773a1(0x123)]===C[_0x5773a1(0x3ae)][_0x5773a1(0x1da)]),$[_0x5773a1(0x3b9)](0x10))[_0x5773a1(0x2f9)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x2a0d4e(0x390)](V[_0x2a0d4e(0x1a2)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x2a0d4e(0x393)]),q(0x4,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x182)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0xd5e2d7,_0x2b94eb){const _0x3c36d8=_0x2a0d4e;super(_0xd5e2d7,_0x2b94eb),_(this,_0x3c36d8(0x2e5)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x3c36d8(0x20f),''),_(this,'_labelPosition',_0x3c36d8(0x3c1)),_(this,_0x3c36d8(0x1ec)),(_0x2b94eb&&this[_0x3c36d8(0x1b9)](_0x2b94eb),this[_0x3c36d8(0x3de)][_0x3c36d8(0x3aa)](()=>this[_0x3c36d8(0x1b9)]({'hovered':!0x0})),this[_0x3c36d8(0x3e8)]['subscribeEvent'](()=>this[_0x3c36d8(0x1b9)]({'hovered':!0x1})));}[_0x2a0d4e(0x1b9)](_0x489878){const _0x12a337=_0x2a0d4e;var _0x4d37a6,_0x18183c,_0x1b4ef2,_0x52bca9,_0xf81dd0,_0x31be73;this[_0x12a337(0x2e5)]=(_0x4d37a6=_0x489878[_0x12a337(0x2db)])!=null?_0x4d37a6:this[_0x12a337(0x2e5)],this[_0x12a337(0x2fd)]=(_0x18183c=_0x489878[_0x12a337(0x15c)])!=null?_0x18183c:this[_0x12a337(0x2fd)],this['_range']=(_0x1b4ef2=_0x489878[_0x12a337(0x33e)])!=null?_0x1b4ef2:this['_range'],this[_0x12a337(0x20f)]=(_0x52bca9=_0x489878[_0x12a337(0x18f)])!=null?_0x52bca9:this[_0x12a337(0x20f)],this[_0x12a337(0x29f)]=(_0xf81dd0=_0x489878['labelPosition'])!=null?_0xf81dd0:this['_labelPosition'],this[_0x12a337(0x1ec)]=(_0x31be73=_0x489878[_0x12a337(0x3d8)])!=null?_0x31be73:this['_backgroundColor'],this[_0x12a337(0x175)]({'width':_0x489878[_0x12a337(0x189)],'height':_0x489878['height']});}[_0x2a0d4e(0x3ad)](_0x11ea3e){const _0x113cf6=_0x2a0d4e,{row:_0x4a0763,column:_0x58c209}=_0x11ea3e;if(_0x4a0763>=this[_0x113cf6(0x396)][_0x113cf6(0x2c6)]&&_0x4a0763<=this['_range'][_0x113cf6(0x2c1)]&&_0x58c209>=this[_0x113cf6(0x396)][_0x113cf6(0x2cc)]&&_0x58c209<=this[_0x113cf6(0x396)][_0x113cf6(0x32b)]){this[_0x113cf6(0x1b9)]({'hovered':!0x0});return;}this[_0x113cf6(0x1b9)]({'hovered':!0x1});}[_0x2a0d4e(0x1e3)](_0x380bfc){return!0x1;}[_0x2a0d4e(0x24c)](_0x3d1041){const _0x5580e0=_0x2a0d4e;C['Rect'][_0x5580e0(0x184)](_0x3d1041,{'width':this[_0x5580e0(0x189)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x5580e0(0x2e5)],'evented':!0x1,'fill':this[_0x5580e0(0x1ec)]}),this[_0x5580e0(0x2fd)]&&(_0x3d1041[_0x5580e0(0x392)](),_0x3d1041[_0x5580e0(0x149)](0x1,0x0,0x0,0x1,this['width'],this[_0x5580e0(0x29f)]===_0x5580e0(0x15b)?0x0:-X),re['drawWith'](_0x3d1041,{'text':this[_0x5580e0(0x20f)],'color':this[_0x5580e0(0x2e5)]}),_0x3d1041[_0x5580e0(0x216)]());}}var wt=Object[_0x2a0d4e(0x399)],yt=(_0x3f9a78,_0x271c3f,_0x48326f,_0x5a60c0)=>{const _0x35d24b=_0x2a0d4e;for(var _0x519377=_0x5a60c0>0x1?void 0x0:_0x5a60c0?wt(_0x271c3f,_0x48326f):_0x271c3f,_0x34f2c7=_0x3f9a78[_0x35d24b(0x2c8)]-0x1,_0x339ef3;_0x34f2c7>=0x0;_0x34f2c7--)(_0x339ef3=_0x3f9a78[_0x34f2c7])&&(_0x519377=_0x339ef3(_0x519377)||_0x519377);return _0x519377;},ue=(_0x483cfe,_0x34448d)=>(_0x172ac3,_0x482a5f)=>_0x34448d(_0x172ac3,_0x482a5f,_0x483cfe);const $t=0x1389;let Ce=class extends a[_0x2a0d4e(0x122)]{constructor(_0x3febfe,_0x53f168,_0x25f4c9,_0x585d8f){const _0x3f30aa=_0x2a0d4e;super(),_(this,_0x3f30aa(0x1b5),new Set()),_(this,_0x3f30aa(0x3d3),null),(this['_context']=_0x3febfe,this[_0x3f30aa(0x27c)]=_0x53f168,this['_collabCursorController']=_0x25f4c9,this[_0x3f30aa(0x23d)]=_0x585d8f,this[_0x3f30aa(0x3cb)]());}[_0x2a0d4e(0x3cb)](){const _0x587a3a=_0x2a0d4e;this[_0x587a3a(0x27c)][_0x587a3a(0x39b)][_0x587a3a(0x1df)]($[_0x587a3a(0x3a9)](this[_0x587a3a(0x30b)]),$[_0x587a3a(0x358)](_0x16c807=>{const _0x1c02cc=_0x587a3a;if(_0x16c807){const _0x1b4db3=_0x16c807[_0x1c02cc(0x124)];return I[_0x1c02cc(0x3b3)](this[_0x1c02cc(0x2f2)][_0x1c02cc(0x39d)](this['_context'][_0x1c02cc(0x1f4)]),this['_themeService'][_0x1c02cc(0x32e)])[_0x1c02cc(0x1df)]($[_0x1c02cc(0x13d)](([_0x23971b,_0x2ece10])=>{const _0x595bef=new Map();return _0x23971b['forEach']((_0x307ef4,_0x2fb519)=>{const _0x3ec0af=_0x463e;if(_0x307ef4[_0x3ec0af(0x202)]===_0x1b4db3){const _0x33588a={..._0x307ef4};_0x33588a['color']=this[_0x3ec0af(0x23d)][_0x3ec0af(0x22d)](_0x307ef4[_0x3ec0af(0x2db)]),_0x595bef[_0x3ec0af(0x1f9)](_0x2fb519,_0x33588a);}}),{'skeleton':_0x16c807,'cursors':_0x595bef};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x587a3a(0x2f9)](({skeleton:_0x5d6873,cursors:_0x56c22b})=>{const _0x34a25f=_0x587a3a;this[_0x34a25f(0x298)](),_0x5d6873&&this['_updateCollabCursors'](_0x5d6873,_0x56c22b);}),this['_sheetSkeletonManagerService'][_0x587a3a(0x39b)][_0x587a3a(0x2f9)](_0x1a51d0=>{const _0x463498=_0x587a3a;if(_0x1a51d0==null)return;const {skeleton:_0x4b0370}=_0x1a51d0,{scene:_0x2d1586}=this['_context'];_0x2d1586['onPointerMove$'][_0x463498(0x3aa)](a[_0x463498(0x2ef)](_0x50b1ab=>{const _0x44d5d7=_0x463498;var _0x252f46,_0x1253a0;const {offsetX:_0x53875d,offsetY:_0x364aa8}=_0x50b1ab,{x:_0x47131d,y:_0x338fea}=_0x2d1586[_0x44d5d7(0x130)](C[_0x44d5d7(0x163)][_0x44d5d7(0x154)]([_0x53875d,_0x364aa8])),{scaleX:_0x42fea9,scaleY:_0x31a39f}=_0x2d1586[_0x44d5d7(0x168)](),_0xfebdcc=_0x2d1586['getViewport'](C[_0x44d5d7(0x1a6)][_0x44d5d7(0x2e2)]),_0x32bbfa=_0x2d1586[_0x44d5d7(0x180)](C[_0x44d5d7(0x163)][_0x44d5d7(0x154)]([_0x47131d,_0x338fea]),_0xfebdcc),_0x5d0cae=_0x4b0370[_0x44d5d7(0x2ff)](_0x53875d,_0x364aa8,_0x42fea9,_0x31a39f,_0x32bbfa);((_0x252f46=this['_lastPointer'])==null?void 0x0:_0x252f46[_0x44d5d7(0x28f)])===_0x5d0cae['column']&&((_0x1253a0=this['_lastPointer'])==null?void 0x0:_0x1253a0[_0x44d5d7(0x2ab)])===_0x5d0cae[_0x44d5d7(0x2ab)]||this[_0x44d5d7(0x1b5)][_0x44d5d7(0x38a)](_0x428923=>{const _0xc5e7ea=_0x44d5d7;_0x428923[_0xc5e7ea(0x3ad)](_0x5d0cae);});},0x64));});}[_0x2a0d4e(0x14a)](_0x16c9c5,_0x5a0a66){const _0x4abfa5=_0x2a0d4e;var _0x235602;const _0x4c6bc7=(_0x235602=this[_0x4abfa5(0x27c)][_0x4abfa5(0x160)]())==null?void 0x0:_0x235602[_0x4abfa5(0x12b)];if(!_0x4c6bc7)return;const _0x2d1a56=this[_0x4abfa5(0x3c8)]();if(!_0x2d1a56)return;this['_cursors'][_0x4abfa5(0x38a)](_0x9995d=>{const _0x204fb5=_0x4abfa5;_0x9995d[_0x204fb5(0x157)]();});const {scene:_0x3815af}=_0x2d1a56,_0x49b904=xt(Array[_0x4abfa5(0x2cb)](_0x5a0a66[_0x4abfa5(0x2cd)]()))[_0x4abfa5(0x13d)](_0x5082a2=>{const _0x2d0d5b=_0x4abfa5,{color:_0x5241fc,range:_0x196dac,name:_0x49633a,selection:_0x4ee413,sheetID:_0x34f0af}=_0x5082a2,{startColumn:_0x506a5f,startRow:_0xe9f0e2,endColumn:_0x38ff9d,endRow:_0x181921}=_0x196dac,_0x50fde0=J[_0x2d0d5b(0x387)](_0xe9f0e2,_0x506a5f,_0x3815af,_0x4c6bc7),_0x2db408=J[_0x2d0d5b(0x387)](_0x181921,_0x38ff9d,_0x3815af,_0x4c6bc7),{columnHeaderHeightAndMarginTop:_0x96b101}=_0x4c6bc7,{startX:_0x4dbb2,startY:_0x1c5ca8}=_0x50fde0,{endX:_0x268467,endY:_0x148fb9}=_0x2db408,_0x1aff1d=_0x268467-_0x4dbb2,_0x401838=_0x148fb9-_0x1c5ca8,_0xa777c6={'labelPosition':_0x1c5ca8-_0x96b101>=X?_0x2d0d5b(0x3c1):_0x2d0d5b(0x15b),'sheetID':_0x34f0af,'range':_0x196dac,'color':_0x5241fc,'name':_0x49633a,'selection':_0x4ee413,'left':_0x4dbb2,'top':_0x1c5ca8,'width':_0x1aff1d,'height':_0x401838,'evented':!0x1,'zIndex':$t};return new je(_0x49633a,_0xa777c6);});_0x3815af[_0x4abfa5(0x16d)](_0x49b904,At),this['_cursors']=new Set(_0x49b904);}[_0x2a0d4e(0x298)](){const _0x223ec5=_0x2a0d4e;var _0x3f5340;(_0x3f5340=this[_0x223ec5(0x1b5)])==null||_0x3f5340[_0x223ec5(0x38a)](_0x36ff22=>_0x36ff22['dispose']());}['_getSheetObject'](){const _0x9a6d4b=_0x2a0d4e;return J[_0x9a6d4b(0x212)](this[_0x9a6d4b(0x1d0)]['unit'],this[_0x9a6d4b(0x1d0)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x2a0d4e(0x242)])),ue(0x2,a[_0x2a0d4e(0x390)](F)),ue(0x3,a['Inject'](a[_0x2a0d4e(0x182)]))],Ce);function xt(_0x4a9dfa){const _0x31b80d=_0x2a0d4e,_0x3d47a1=new Map();return _0x4a9dfa[_0x31b80d(0x38a)](_0x11d967=>{const _0x5ac1d5=_0x31b80d;if(_0x3d47a1[_0x5ac1d5(0x3d9)](_0x11d967['selection'])){const _0x580e01=_0x3d47a1[_0x5ac1d5(0x276)](_0x11d967[_0x5ac1d5(0x21e)]);_0x580e01['name']+=',\x20'+_0x11d967[_0x5ac1d5(0x18f)];}else _0x3d47a1[_0x5ac1d5(0x1f9)](_0x11d967[_0x5ac1d5(0x21e)],_0x11d967);}),Array[_0x31b80d(0x2cb)](_0x3d47a1[_0x31b80d(0x2cd)]());}function _0x463e(_0x46a451,_0x37686f){const _0x18b841=_0x18b8();return _0x463e=function(_0x463eba,_0x285973){_0x463eba=_0x463eba-0x11d;let _0x3aa371=_0x18b841[_0x463eba];return _0x3aa371;},_0x463e(_0x46a451,_0x37686f);}var Bt=Object[_0x2a0d4e(0x399)],Ft=(_0x4d6692,_0x3574ec,_0x48fc73,_0x2b215e)=>{const _0x3c59bb=_0x2a0d4e;for(var _0x103265=_0x2b215e>0x1?void 0x0:_0x2b215e?Bt(_0x3574ec,_0x48fc73):_0x3574ec,_0xcd9a5f=_0x4d6692[_0x3c59bb(0x2c8)]-0x1,_0x1ec550;_0xcd9a5f>=0x0;_0xcd9a5f--)(_0x1ec550=_0x4d6692[_0xcd9a5f])&&(_0x103265=_0x1ec550(_0x103265)||_0x103265);return _0x103265;},y=(_0xf5a765,_0x27ca26)=>(_0x1f920e,_0x2bc828)=>_0x27ca26(_0x1f920e,_0x2bc828,_0xf5a765);let Z=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x1f92df,_0x258667,_0x5544f3,_0x5f15c6,_0x347354,_0x178c32){const _0x392281=_0x2a0d4e;super(),this[_0x392281(0x315)]=_0x1f92df,this[_0x392281(0x1fa)]=_0x258667,this[_0x392281(0x30a)]=_0x5544f3,this[_0x392281(0x2e8)]=_0x5f15c6,this[_0x392281(0x34a)]=_0x347354,this[_0x392281(0x1a0)]=_0x178c32,this[_0x392281(0x18b)](),this[_0x392281(0x356)]();}[_0x2a0d4e(0x18b)](){const _0x1ba420=_0x2a0d4e;this['disposeWithMe'](this[_0x1ba420(0x315)][_0x1ba420(0x158)](()=>{const _0x10511c=_0x1ba420;if(this[_0x10511c(0x1fa)][_0x10511c(0x380)][_0x10511c(0x2b3)])return this[_0x10511c(0x1a0)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2a0d4e(0x356)](){const _0x48354d=_0x2a0d4e;this[_0x48354d(0x1b0)](this[_0x48354d(0x30a)][_0x48354d(0x22e)]['subscribe'](_0x2514d6=>{const _0x250960=_0x48354d;_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x37b)]&&this[_0x250960(0x2e8)][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)][_0x250960(0x187)],'content':this[_0x250960(0x1a0)]['t']('collaboration.single-unit.warning')}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x2de)]&&this[_0x250960(0x2e8)]['show']({'type':T['MessageType'][_0x250960(0x187)],'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x19f))}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x26a)]&&this[_0x250960(0x34a)][_0x250960(0x31f)]({'title':this[_0x250960(0x1a0)]['t'](_0x250960(0x14e)),'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x331)),'type':_0x250960(0x2e9),'duration':0x0}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x23b)]&&this[_0x250960(0x2e8)][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)]['Error'],'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x19f))+'('+_0x2514d6[_0x250960(0x3a0)]+')'}),_0x2514d6['id']===u[_0x250960(0x22a)]['JOIN_ROOM_FAILED']&&this[_0x250960(0x2e8)]['show']({'type':T['MessageType'][_0x250960(0x187)],'content':this[_0x250960(0x1a0)]['t'](_0x2514d6[_0x250960(0x3a0)]||'')}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x21b)]&&this[_0x250960(0x2e8)][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)][_0x250960(0x187)],'content':this['_localeService']['t'](_0x250960(0x30e))}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x1ab)]&&this['_messageService'][_0x250960(0x31f)]({'type':T[_0x250960(0x14f)][_0x250960(0x3a8)],'content':this[_0x250960(0x1a0)]['t'](_0x250960(0x386))}),_0x2514d6['id']===u[_0x250960(0x22a)][_0x250960(0x3cc)]&&this[_0x250960(0x2e8)]['show']({'type':T[_0x250960(0x14f)]['Error'],'content':this[_0x250960(0x1a0)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x2a0d4e(0x36c)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x2a0d4e(0x390)](u[_0x2a0d4e(0x2f6)])),y(0x3,O[_0x2a0d4e(0x2bb)]),y(0x4,O[_0x2a0d4e(0x348)]),y(0x5,a[_0x2a0d4e(0x390)](a['LocaleService']))],Z);var jt=Object[_0x2a0d4e(0x399)],kt=(_0x4abaa9,_0xc06ba5,_0x17fadc,_0x1aa176)=>{const _0xf8b1b5=_0x2a0d4e;for(var _0x37c275=_0x1aa176>0x1?void 0x0:_0x1aa176?jt(_0xc06ba5,_0x17fadc):_0xc06ba5,_0x5f1422=_0x4abaa9[_0xf8b1b5(0x2c8)]-0x1,_0x4166b9;_0x5f1422>=0x0;_0x5f1422--)(_0x4166b9=_0x4abaa9[_0x5f1422])&&(_0x37c275=_0x4166b9(_0x37c275)||_0x37c275);return _0x37c275;},z=(_0x3211f3,_0x23dba4)=>(_0x2621fe,_0x1d299e)=>_0x23dba4(_0x2621fe,_0x1d299e,_0x3211f3);let Q=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x40886d,_0x121b59,_0xbe979a,_0x2f7804){const _0x57c0c1=_0x2a0d4e;super(),_(this,_0x57c0c1(0x26d)),(this[_0x57c0c1(0x240)]=_0x40886d,this['_httpService']=_0x121b59,this['_logService']=_0xbe979a,this[_0x57c0c1(0x2d5)]=_0x2f7804,this['_init']());}[_0x2a0d4e(0x3cb)](){const _0x36f118=_0x2a0d4e;this['_initWindowErrorListener'](),this[_0x36f118(0x3cf)](),this[_0x36f118(0x3c0)](),this['_initUserListener']();}[_0x2a0d4e(0x282)](){const _0x46255a=_0x2a0d4e;this[_0x46255a(0x1b0)](this[_0x46255a(0x2d5)][_0x46255a(0x245)]['subscribe'](_0x51e6d0=>{const _0x5e3d75=_0x46255a;this[_0x5e3d75(0x26d)]=_0x51e6d0==null?void 0x0:_0x51e6d0[_0x5e3d75(0x225)];}));}[_0x2a0d4e(0x329)](){const _0x3315c1=_0x2a0d4e,_0x346b7d=_0x350e0e=>{const _0x5b97a1=_0x463e;var _0x8791b0;this[_0x5b97a1(0x27d)](_0x5b97a1(0x2e9),'[Window\x20Error]:\x20'+_0x350e0e[_0x5b97a1(0x30f)]+'\x20at\x20'+_0x350e0e[_0x5b97a1(0x35e)]+':'+_0x350e0e[_0x5b97a1(0x372)]+':'+_0x350e0e['colno']+'\x0a'+(((_0x8791b0=_0x350e0e[_0x5b97a1(0x2e9)])==null?void 0x0:_0x8791b0['stack'])||''));};window[_0x3315c1(0x18a)](_0x3315c1(0x2e9),_0x346b7d),this[_0x3315c1(0x1b0)](()=>{const _0x8128b6=_0x3315c1;window[_0x8128b6(0x186)](_0x8128b6(0x2e9),_0x346b7d);});}[_0x2a0d4e(0x3cf)](){const _0x2028ce=_0x2a0d4e,_0x2fdd0e=_0x449fe7=>{const _0xceb8aa=_0x463e;this['_uploadLog'](_0xceb8aa(0x2e9),_0xceb8aa(0x244)+_0x449fe7[_0xceb8aa(0x366)]);};window[_0x2028ce(0x18a)](_0x2028ce(0x3bc),_0x2fdd0e),this['disposeWithMe'](()=>{const _0x4a7a26=_0x2028ce;window[_0x4a7a26(0x186)]('unhandledrejection',_0x2fdd0e);});}[_0x2a0d4e(0x3c0)](){const _0x81908=_0x2a0d4e,_0x15d28b=this[_0x81908(0x1ac)][_0x81908(0x2e9)][_0x81908(0x25e)](this['_logService']);this[_0x81908(0x1ac)]['error']=(..._0xa510b9)=>{const _0x339886=_0x81908,_0x5d5113=_0xa510b9[_0x339886(0x13d)](_0x5c6e41=>_0x5c6e41 instanceof Error?_0x5c6e41[_0x339886(0x30f)]+'\x0a'+_0x5c6e41[_0x339886(0x2d2)]:String(_0x5c6e41))[_0x339886(0x1f2)]('\x20');this['_uploadLog'](_0x339886(0x2e9),_0x339886(0x144)+_0x5d5113),_0x15d28b(..._0xa510b9);},this[_0x81908(0x1b0)](()=>{const _0x33ad75=_0x81908;this[_0x33ad75(0x1ac)][_0x33ad75(0x2e9)]=_0x15d28b;});}[_0x2a0d4e(0x27d)](_0x59a260,_0x3d4d34){const _0x42b61c=_0x2a0d4e;try{const _0x58dc89={'userId':this['_memberID'],'logLabel':_0x59a260,'content':_0x3d4d34};this[_0x42b61c(0x137)][_0x42b61c(0x25b)](_0x42b61c(0x28c),{'body':_0x58dc89})[_0x42b61c(0x30c)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),z(0x1,a[_0x2a0d4e(0x390)](x['HTTPService'])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x2a0d4e(0x3c3),Me={};var Ht=Object[_0x2a0d4e(0x399)],Wt=(_0x3a0800,_0x5bfda2,_0x1a9336,_0x1bc8ba)=>{const _0x206888=_0x2a0d4e;for(var _0x20c11e=_0x1bc8ba>0x1?void 0x0:_0x1bc8ba?Ht(_0x5bfda2,_0x1a9336):_0x5bfda2,_0x1d6e80=_0x3a0800[_0x206888(0x2c8)]-0x1,_0x5d72ff;_0x1d6e80>=0x0;_0x1d6e80--)(_0x5d72ff=_0x3a0800[_0x1d6e80])&&(_0x20c11e=_0x5d72ff(_0x20c11e)||_0x20c11e);return _0x20c11e;},Ae=(_0x5baedc,_0x210cad)=>(_0xdbe1a5,_0x1edd31)=>_0x210cad(_0xdbe1a5,_0x1edd31,_0x5baedc);let ee=class{constructor(_0x49675,_0x6ebed4){const _0x4861f2=_0x2a0d4e;this[_0x4861f2(0x370)]=_0x49675,this[_0x4861f2(0x254)]=_0x6ebed4;}['transformIMECache'](_0x542400){const _0x5231fa=_0x2a0d4e;this[_0x5231fa(0x269)](_0x542400),this['_transformPreviousActiveRange'](_0x542400);}[_0x2a0d4e(0x320)](_0x42293a){const _0x19403f=_0x2a0d4e,{unitID:_0x4ca263}=_0x42293a,_0x5afb74=this[_0x19403f(0x254)][_0x19403f(0x35b)](_0x4ca263)[_0x19403f(0x19d)](p[_0x19403f(0x264)]),{redoCache:_0x5b852a}=_0x5afb74['getUndoRedoMutationParamsCache']();if(_0x5b852a[_0x19403f(0x2c8)]===0x0)return _0x42293a;let _0x2a9755=a[_0x19403f(0x277)]['deepClone'](_0x42293a['mutations'][0x0]);for(let _0x48785=0x0;_0x48785<_0x5b852a[_0x19403f(0x2c8)];_0x48785++){const _0x551a33={'id':_0x19403f(0x167),'params':{..._0x5b852a[_0x48785]}},_0x2fac34=this['_transformService'][_0x19403f(0x127)](_0x2a9755,_0x551a33,!0x1);if(g[_0x19403f(0x314)](_0x2fac34))throw _0x2fac34[_0x19403f(0x2e9)];_0x2a9755=_0x2fac34[_0x19403f(0x11f)];}return{...a[_0x19403f(0x277)][_0x19403f(0x1d5)](_0x42293a),'mutations':[_0x2a9755]};}[_0x2a0d4e(0x269)](_0x555513){const _0x394229=_0x2a0d4e,{unitID:_0x1bb0a0}=_0x555513,_0x12d659=this[_0x394229(0x254)][_0x394229(0x35b)](_0x1bb0a0)[_0x394229(0x19d)](p[_0x394229(0x264)]),{undoCache:_0x1a9958,redoCache:_0x258921}=_0x12d659['getUndoRedoMutationParamsCache']();if(_0x1a9958['length']===0x0||_0x258921[_0x394229(0x2c8)]===0x0)return;const _0x590660=[],_0x376e8d=[];let _0x453039=a[_0x394229(0x277)][_0x394229(0x1d5)](_0x555513['mutations'][0x0]),_0x29180a=a[_0x394229(0x277)]['deepClone'](_0x555513['mutations'][0x0]);for(let _0x1e7246=_0x1a9958[_0x394229(0x2c8)]-0x1;_0x1e7246>=0x0;_0x1e7246--){const _0x459dd3={'id':_0x394229(0x167),'params':{..._0x1a9958[_0x1e7246]}},_0x1b723d={'id':'doc.mutation.rich-text-editing','params':{..._0x258921[_0x1e7246]}},_0x271833=this[_0x394229(0x370)]['transformMutation'](_0x453039,_0x459dd3,!0x1),_0xca7072=this[_0x394229(0x370)][_0x394229(0x127)](_0x29180a,_0x1b723d,!0x1);if(g[_0x394229(0x314)](_0x271833))throw _0x271833['error'];if(g[_0x394229(0x314)](_0xca7072))throw _0xca7072['error'];_0x590660['unshift'](_0x271833['m2Prime'][_0x394229(0x364)]),_0x376e8d[_0x394229(0x33b)](_0xca7072[_0x394229(0x1b8)][_0x394229(0x364)]),_0x453039=_0x271833['m1Prime'],_0x29180a=_0xca7072[_0x394229(0x11f)];}_0x12d659['setUndoRedoMutationParamsCache']({'undoCache':_0x590660,'redoCache':_0x376e8d});}[_0x2a0d4e(0x37a)](_0x58bcc8){const _0x17094d=_0x2a0d4e,{unitID:_0x470392}=_0x58bcc8,_0x2931ea=this[_0x17094d(0x254)][_0x17094d(0x35b)](_0x470392)[_0x17094d(0x19d)](p[_0x17094d(0x264)]),_0x2d049d=_0x2931ea[_0x17094d(0x252)]();if(_0x2d049d==null)return;const _0x2d6283=[{'id':_0x17094d(0x167),'params':{'unitId':_0x58bcc8[_0x17094d(0x2d9)],'actions':null,'textRanges':[_0x2d049d]}}],_0xa774c1=this[_0x17094d(0x370)][_0x17094d(0x1ef)](_0x58bcc8,_0x2d6283);if(!g[_0x17094d(0x292)](_0xa774c1))throw _0xa774c1[_0x17094d(0x2e9)];const _0x34cf9b=_0xa774c1[_0x17094d(0x1b8)][0x0]['params'][_0x17094d(0x192)];Array[_0x17094d(0x222)](_0x34cf9b)&&_0x34cf9b[_0x17094d(0x2c8)]&&_0x2931ea['setActiveRange'](_0x34cf9b[0x0]);}};ee=Wt([Ae(0x0,g[_0x2a0d4e(0x125)]),Ae(0x1,C[_0x2a0d4e(0x262)])],ee);var Vt=Object[_0x2a0d4e(0x399)],Gt=(_0x267b92,_0x4cb1e2,_0x433a85,_0x4771f6)=>{const _0x1baa8c=_0x2a0d4e;for(var _0x433048=_0x4771f6>0x1?void 0x0:_0x4771f6?Vt(_0x4cb1e2,_0x433a85):_0x4cb1e2,_0x50eeb0=_0x267b92[_0x1baa8c(0x2c8)]-0x1,_0x1ca206;_0x50eeb0>=0x0;_0x50eeb0--)(_0x1ca206=_0x267b92[_0x50eeb0])&&(_0x433048=_0x1ca206(_0x433048)||_0x433048);return _0x433048;},Ie=(_0x5a746e,_0x2a2010)=>(_0x420420,_0x30ce7e)=>_0x2a2010(_0x420420,_0x30ce7e,_0x5a746e);let te=class{constructor(_0x54bdd0,_0x1f4b47,_0x1ff809){const _0x46da5d=_0x2a0d4e;this[_0x46da5d(0x240)]=_0x54bdd0,this[_0x46da5d(0x370)]=_0x1f4b47,this[_0x46da5d(0x1ee)]=_0x1ff809;}[_0x2a0d4e(0x1ea)](_0x362c42){const _0x15c5b1=_0x2a0d4e;this[_0x15c5b1(0x152)](_0x362c42);}[_0x2a0d4e(0x320)](_0x3760c5){const _0x4dd5f6=_0x2a0d4e,{unitID:_0x41f78a}=_0x3760c5,{collaboration:_0x4b0d78}=this[_0x4dd5f6(0x1ee)][_0x4dd5f6(0x16f)](_0x41f78a);if(_0x4b0d78[_0x4dd5f6(0x2c8)]===0x0)return _0x3760c5;let _0x38186e=a[_0x4dd5f6(0x277)]['deepClone'](_0x3760c5[_0x4dd5f6(0x376)][0x0]);for(let _0x15a8c8=0x0;_0x15a8c8<_0x4b0d78[_0x4dd5f6(0x2c8)];_0x15a8c8++){const _0x474dbb={'id':_0x4dd5f6(0x167),'params':{'unitId':_0x4b0d78[_0x15a8c8]['unitId'],..._0x4b0d78[_0x15a8c8][_0x4dd5f6(0x1f8)]}},_0x23b1cb=this[_0x4dd5f6(0x370)][_0x4dd5f6(0x127)](_0x38186e,_0x474dbb,!0x1);if(g['isTransformMutationFailure'](_0x23b1cb))throw _0x23b1cb[_0x4dd5f6(0x2e9)];_0x38186e=_0x23b1cb['m1Prime'];}return{...a[_0x4dd5f6(0x277)][_0x4dd5f6(0x1d5)](_0x3760c5),'mutations':[_0x38186e]};}[_0x2a0d4e(0x152)](_0x3d30a0){const _0x21bbb0=_0x2a0d4e,{unitID:_0x2ce00a}=_0x3d30a0,{history:_0x424459,collaboration:_0x292ce9}=this[_0x21bbb0(0x1ee)][_0x21bbb0(0x16f)](_0x2ce00a);if(_0x424459[_0x21bbb0(0x2c8)]===0x0&&_0x292ce9[_0x21bbb0(0x2c8)]===0x0)return;const _0x36f041=[],_0x169480=[];let _0x1e543e=a['Tools'][_0x21bbb0(0x1d5)](_0x3d30a0['mutations'][0x0]),_0x56dff2=a[_0x21bbb0(0x277)][_0x21bbb0(0x1d5)](_0x3d30a0['mutations'][0x0]);for(let _0x4f0739=_0x424459[_0x21bbb0(0x2c8)]-0x1;_0x4f0739>=0x0;_0x4f0739--){const _0x330684={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x424459[_0x4f0739][_0x21bbb0(0x1f4)],..._0x424459[_0x4f0739][_0x21bbb0(0x350)]}},_0x193cb1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x424459[_0x4f0739][_0x21bbb0(0x1f4)],..._0x424459[_0x4f0739][_0x21bbb0(0x1f8)]}},_0x1a806d=this[_0x21bbb0(0x370)]['transformMutation'](_0x1e543e,_0x330684,!0x1),_0x46add8=this[_0x21bbb0(0x370)][_0x21bbb0(0x127)](_0x56dff2,_0x193cb1,!0x1);if(g[_0x21bbb0(0x314)](_0x1a806d))throw _0x1a806d[_0x21bbb0(0x2e9)];if(g['isTransformMutationFailure'](_0x46add8))throw _0x46add8[_0x21bbb0(0x2e9)];_0x36f041[_0x21bbb0(0x33b)]({..._0x424459[_0x4f0739],'undoState':_0x1a806d['m2Prime']['params'],'redoState':_0x46add8[_0x21bbb0(0x1b8)][_0x21bbb0(0x364)]}),_0x1e543e=_0x1a806d[_0x21bbb0(0x11f)],_0x56dff2=_0x46add8['m1Prime'];}_0x1e543e=a['Tools'][_0x21bbb0(0x1d5)](_0x3d30a0['mutations'][0x0]),_0x56dff2=a[_0x21bbb0(0x277)]['deepClone'](_0x3d30a0[_0x21bbb0(0x376)][0x0]);for(let _0x554446=_0x292ce9[_0x21bbb0(0x2c8)]-0x1;_0x554446>=0x0;_0x554446--){const _0x52eecb={'id':_0x21bbb0(0x167),'params':{'unitId':_0x292ce9[_0x554446][_0x21bbb0(0x1f4)],..._0x292ce9[_0x554446]['undoState']}},_0x25a395={'id':_0x21bbb0(0x167),'params':{'unitId':_0x292ce9[_0x554446]['unitId'],..._0x292ce9[_0x554446][_0x21bbb0(0x1f8)]}},_0x152f6f=this[_0x21bbb0(0x370)][_0x21bbb0(0x127)](_0x1e543e,_0x52eecb,!0x1),_0x477aea=this['_transformService']['transformMutation'](_0x56dff2,_0x25a395,!0x1);if(g[_0x21bbb0(0x314)](_0x152f6f))throw _0x152f6f[_0x21bbb0(0x2e9)];if(g[_0x21bbb0(0x314)](_0x477aea))throw _0x477aea[_0x21bbb0(0x2e9)];_0x169480[_0x21bbb0(0x33b)]({..._0x292ce9[_0x554446],'undoState':_0x152f6f[_0x21bbb0(0x1b8)]['params'],'redoState':_0x477aea[_0x21bbb0(0x1b8)][_0x21bbb0(0x364)]}),_0x1e543e=_0x152f6f[_0x21bbb0(0x11f)],_0x56dff2=_0x477aea[_0x21bbb0(0x11f)];}this['_docStateChangeManagerService'][_0x21bbb0(0x1a9)](_0x2ce00a,{'history':_0x36f041,'collaboration':_0x169480});}};te=Gt([Ie(0x0,a['Inject'](a[_0x2a0d4e(0x322)])),Ie(0x1,g[_0x2a0d4e(0x125)]),Ie(0x2,a[_0x2a0d4e(0x390)](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x2a0d4e(0x399)],Kt=(_0x23d82d,_0x5edb57,_0x3140a0,_0x40dde6)=>{const _0x59e3c9=_0x2a0d4e;for(var _0x41345a=_0x40dde6>0x1?void 0x0:_0x40dde6?Xt(_0x5edb57,_0x3140a0):_0x5edb57,_0x37d571=_0x23d82d[_0x59e3c9(0x2c8)]-0x1,_0x529254;_0x37d571>=0x0;_0x37d571--)(_0x529254=_0x23d82d[_0x37d571])&&(_0x41345a=_0x529254(_0x41345a)||_0x41345a);return _0x41345a;},Pe=(_0x4f21bb,_0x42fa32)=>(_0x53af9c,_0x26379d)=>_0x42fa32(_0x53af9c,_0x26379d,_0x4f21bb);let se=class{constructor(_0x583a7f,_0x385d5c){const _0x56cb2d=_0x2a0d4e;this['_injector']=_0x583a7f,this[_0x56cb2d(0x370)]=_0x385d5c;}[_0x2a0d4e(0x16a)](_0x30e7bf){const _0x335841=_0x2a0d4e;var _0x58c090;const _0x216a14=this[_0x335841(0x240)][_0x335841(0x276)](V['DocSelectionManagerService']),_0x5072f9=(_0x58c090=_0x216a14[_0x335841(0x309)]())!=null?_0x58c090:[];if(_0x5072f9[_0x335841(0x2c8)]===0x0)return;const _0x49036f=_0x30e7bf[_0x335841(0x2d9)],_0x51e79c=[{'id':_0x335841(0x167),'params':{'unitId':_0x49036f,'actions':null,'textRanges':_0x5072f9}}],_0x1c8a3d=this[_0x335841(0x370)][_0x335841(0x1ef)](_0x30e7bf,_0x51e79c);if(!g[_0x335841(0x292)](_0x1c8a3d))throw _0x1c8a3d[_0x335841(0x2e9)];const _0x592e1d=_0x1c8a3d[_0x335841(0x1b8)][0x0][_0x335841(0x364)][_0x335841(0x192)];Array[_0x335841(0x222)](_0x592e1d)&&_0x592e1d[_0x335841(0x2c8)]&&_0x216a14[_0x335841(0x129)](_0x592e1d,{'unitId':_0x49036f,'subUnitId':_0x49036f},!0x1);}};se=Kt([Pe(0x0,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x322)])),Pe(0x1,g[_0x2a0d4e(0x125)])],se);var qt=Object[_0x2a0d4e(0x399)],zt=(_0xf53243,_0xba9753,_0x5b8f30,_0x394a5b)=>{const _0x646b92=_0x2a0d4e;for(var _0x43759d=_0x394a5b>0x1?void 0x0:_0x394a5b?qt(_0xba9753,_0x5b8f30):_0xba9753,_0x50520e=_0xf53243[_0x646b92(0x2c8)]-0x1,_0x4f54c3;_0x50520e>=0x0;_0x50520e--)(_0x4f54c3=_0xf53243[_0x50520e])&&(_0x43759d=_0x4f54c3(_0x43759d)||_0x43759d);return _0x43759d;},N=(_0x322499,_0x2a4c7a)=>(_0x1cf3dc,_0x4c20ef)=>_0x2a4c7a(_0x1cf3dc,_0x4c20ef,_0x322499);let ie=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x3bf365,_0x4827db,_0x34f30b,_0x28c2a9,_0x27d79f,_0x3363b3,_0x25aac4,_0x73a373){const _0x469039=_0x2a0d4e;super(),_(this,'_status$',new I[(_0x469039(0x14b))](u[_0x469039(0x2af)][_0x469039(0x34d)])),(this['_docStateChangeManagerService']=_0x3bf365,this[_0x469039(0x395)]=_0x4827db,this['_docTransformIMECacheService']=_0x34f30b,this['_docTransformStateCacheService']=_0x28c2a9,this[_0x469039(0x217)]=_0x27d79f,this['_docSyncEditingCollabCursorService']=_0x3363b3,this[_0x469039(0x2e8)]=_0x25aac4,this['_localeService']=_0x73a373,this[_0x469039(0x1d3)]());}[_0x2a0d4e(0x1d3)](){const _0x55db2f=_0x2a0d4e;this[_0x55db2f(0x1b0)](this['_collaborationController'][_0x55db2f(0x3e4)][_0x55db2f(0x2f9)](_0x181e98=>{const _0x18f9c8=_0x55db2f,_0x1a096e=this[_0x18f9c8(0x1ee)][_0x18f9c8(0x21a)][_0x18f9c8(0x2f9)](_0x5ce1dc=>{const _0x99795a=_0x18f9c8;if(_0x5ce1dc==null)return;const {unitId:_0x353354,redoState:_0x56b74d,commandId:_0xf5320a}=_0x5ce1dc;if(_0x353354!==_0x181e98[_0x99795a(0x2d9)])return;const _0x228934={'id':_0xf5320a,'type':a[_0x99795a(0x33f)][_0x99795a(0x30d)],'params':{'unitId':_0x353354,'actions':_0x56b74d[_0x99795a(0x199)],'textRanges':null}};_0x181e98['onLocalMutation'](_0x228934);});if(_0x181e98[_0x18f9c8(0x1b0)](_0x1a096e),_0x181e98 instanceof u[_0x18f9c8(0x1ae)]){const _0x24c53f={'onTransformIME':_0x239dc4=>this[_0x18f9c8(0x218)][_0x18f9c8(0x3d0)](_0x239dc4),'onTransformState':_0xc54e80=>this['_docTransformStateCacheService'][_0x18f9c8(0x1ea)](_0xc54e80),'onTransformSelections':_0xeb4576=>this[_0x18f9c8(0x217)][_0x18f9c8(0x16a)](_0xeb4576),'onSyncEditingCollabCursor':_0x3d5352=>this['_docSyncEditingCollabCursorService'][_0x18f9c8(0x27e)](_0x3d5352),'onTransformRemoteChangesetByIMECache':_0x38a7b6=>this[_0x18f9c8(0x218)][_0x18f9c8(0x320)](_0x38a7b6),'onTransformRemoteChangesetByStateCache':_0x4d70ed=>this['_docTransformStateCacheService'][_0x18f9c8(0x320)](_0x4d70ed)};_0x181e98[_0x18f9c8(0x296)](_0x24c53f);}}));}};ie=zt([N(0x0,a[_0x2a0d4e(0x390)](p[_0x2a0d4e(0x261)])),N(0x1,a['Inject'](u[_0x2a0d4e(0x278)])),N(0x2,a[_0x2a0d4e(0x390)](ee)),N(0x3,a[_0x2a0d4e(0x390)](te)),N(0x4,a[_0x2a0d4e(0x390)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x1be)]))],ie);var G=(_0x2ca31b=>(_0x2ca31b[_0x2ca31b['UNDEFINED']=0x0]=_0x2a0d4e(0x1ba),_0x2ca31b[_0x2ca31b['OK']=0x1]='OK',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x24b)]=0x2]=_0x2a0d4e(0x24b),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x26a)]=0x3]=_0x2a0d4e(0x26a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x23e)]=0x4]=_0x2a0d4e(0x23e),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3d7)]=0x5]=_0x2a0d4e(0x3d7),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x294)]=0x6]=_0x2a0d4e(0x294),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3c9)]=0x7]='INVALID_ARGUMENT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2a0)]=0x8]=_0x2a0d4e(0x2a0),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x128)]=0x9]=_0x2a0d4e(0x128),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x293)]=0xa]=_0x2a0d4e(0x293),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x25d)]=0xb]=_0x2a0d4e(0x25d),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3b6)]=0xc]=_0x2a0d4e(0x3b6),_0x2ca31b[_0x2ca31b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2a0d4e(0x34c),_0x2ca31b[_0x2ca31b['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x20c)]=0xf]=_0x2a0d4e(0x20c),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x15a)]=0x10]=_0x2a0d4e(0x15a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2fb)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x304)]=0x65]=_0x2a0d4e(0x304),_0x2ca31b[_0x2ca31b['USER_NOT_FOUND']=0xc9]=_0x2a0d4e(0x2a2),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x272)]=0xca]=_0x2a0d4e(0x272),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x365)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x39e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x26e)]=0x1772]=_0x2a0d4e(0x26e),_0x2ca31b[_0x2ca31b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2a0d4e(0x291),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x220)]=0x1b59]='APPLY_REJECT',_0x2ca31b[_0x2ca31b['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2a0d4e(0x230),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x253)]=0x1b5b]=_0x2a0d4e(0x253),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x33a)]=0x1b5c]=_0x2a0d4e(0x33a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x16c)]=0x1b5d]=_0x2a0d4e(0x16c),_0x2ca31b[_0x2ca31b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1b4)]=0x2329]=_0x2a0d4e(0x1b4),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x255)]=0x232a]=_0x2a0d4e(0x255),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x206)]=0x232b]=_0x2a0d4e(0x206),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3bd)]=0x232c]=_0x2a0d4e(0x3bd),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1c9)]=0x232d]=_0x2a0d4e(0x1c9),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2f4)]=0x2711]=_0x2a0d4e(0x2f4),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x21c)]=0x2712]=_0x2a0d4e(0x21c),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x36a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x19c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x32a)]=0x271a]=_0x2a0d4e(0x32a),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x211)]=0x271b]=_0x2a0d4e(0x211),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1dd)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2ca31b[_0x2ca31b['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2ca31b[_0x2ca31b['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2a0d4e(0x3dc),_0x2ca31b[_0x2ca31b['YUUMI_AI_RUN_FAILED']=0x271f]=_0x2a0d4e(0x121),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1aa)]=0x2720]=_0x2a0d4e(0x1aa),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2c5)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x271)]=0x2ee1]=_0x2a0d4e(0x271),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x234)]=0x2ee2]='INVALID_INVITE_CODE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2e7)]=0x2ee3]=_0x2a0d4e(0x2e7),_0x2ca31b[_0x2ca31b['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2a0d4e(0x39f),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1e9)]=0x2ee5]=_0x2a0d4e(0x1e9),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x13a)]=0x32c9]=_0x2a0d4e(0x13a),_0x2ca31b[_0x2ca31b['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2a0d4e(0x221),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x3b7)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x391)]=0x36b1]=_0x2a0d4e(0x391),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x2f3)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2ca31b[_0x2ca31b['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x2a0d4e(0x324),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1a1)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2ca31b[_0x2ca31b['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2ca31b[_0x2ca31b['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x2ca31b[_0x2ca31b['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2ca31b[_0x2ca31b['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x2a0d4e(0x1b6),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x23a)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x24d)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x33c)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1f6)]=0x3a9c]=_0x2a0d4e(0x1f6),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x37d)]=0x3a9d]=_0x2a0d4e(0x37d),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x361)]=0x3a9e]=_0x2a0d4e(0x361),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1ff)]=0x3a9f]=_0x2a0d4e(0x1ff),_0x2ca31b[_0x2ca31b[_0x2a0d4e(0x1ad)]=0x3e81]=_0x2a0d4e(0x1ad),_0x2ca31b[_0x2ca31b['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2ca31b))(G||{});function Jt(_0x254bf6){const _0x3763ab=_0x2a0d4e;var _0xb40abb,_0x4cff28;const _0x3c5e66=(_0xb40abb=_0x254bf6[_0x3763ab(0x284)])==null?void 0x0:_0xb40abb['stage'],_0x4c680d=((_0x4cff28=_0x254bf6[_0x3763ab(0x284)])==null?void 0x0:_0x4cff28[_0x3763ab(0x38e)])||0x0;return _0x3c5e66===B['FormulaExecuteStageType'][_0x3763ab(0x3a4)]&&_0x4c680d>0x0;}function Zt(_0x444a7c){const _0x1804de=_0x2a0d4e;return _0x444a7c[_0x1804de(0x325)]===B[_0x1804de(0x178)][_0x1804de(0x17b)];}var Qt=Object[_0x2a0d4e(0x399)],es=(_0x58c49a,_0x11a5f3,_0x35e55,_0x3ff402)=>{for(var _0x42d76e=_0x3ff402>0x1?void 0x0:_0x3ff402?Qt(_0x11a5f3,_0x35e55):_0x11a5f3,_0x46d6ed=_0x58c49a['length']-0x1,_0x84695c;_0x46d6ed>=0x0;_0x46d6ed--)(_0x84695c=_0x58c49a[_0x46d6ed])&&(_0x42d76e=_0x84695c(_0x42d76e)||_0x42d76e);return _0x42d76e;},L=(_0x391a20,_0x2739e3)=>(_0x289e66,_0x10e37b)=>_0x2739e3(_0x289e66,_0x10e37b,_0x391a20);const ts=_0x2a0d4e(0x210),ss=_0x2a0d4e(0x351),is=_0x2a0d4e(0x1d9);let ne=class extends a['Disposable']{constructor(_0x5e5477,_0x729b43,_0x3302a8,_0x210df4,_0x37b93b,_0x262fc8,_0x19ff38){const _0x55ce78=_0x2a0d4e;super(),_(this,_0x55ce78(0x279),null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x55ce78(0x346),[]),_(this,_0x55ce78(0x1c8),0x0),(this[_0x55ce78(0x2e8)]=_0x5e5477,this['_commandService']=_0x729b43,this[_0x55ce78(0x1af)]=_0x3302a8,this[_0x55ce78(0x137)]=_0x210df4,this['_univerInstanceService']=_0x37b93b,this[_0x55ce78(0x1ac)]=_0x262fc8,this['_localeService']=_0x19ff38,this[_0x55ce78(0x3a3)]());}['_initCommandInterceptor'](){const _0xf834a5=_0x2a0d4e;this[_0xf834a5(0x1b0)](this[_0xf834a5(0x3db)][_0xf834a5(0x259)]((_0x257e75,_0x1495e5)=>{const _0x3c654c=_0xf834a5;var _0x18cfed;if(_0x257e75['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x1015bf=_0x257e75[_0x3c654c(0x364)];if(!this[_0x3c654c(0x177)]((_0x18cfed=_0x1015bf[_0x3c654c(0x174)])!=null?_0x18cfed:[]))return;if(!this[_0x3c654c(0x20b)]())throw this[_0x3c654c(0x29c)](_0x257e75,_0x1495e5),this[_0x3c654c(0x268)](),new a[(_0x3c654c(0x134))]();})),this[_0xf834a5(0x1b0)](this[_0xf834a5(0x3db)][_0xf834a5(0x377)]((_0x1e9bc1,_0xe3c499)=>{const _0x58a86b=_0xf834a5;if(_0x1e9bc1['id']!==B[_0x58a86b(0x2cf)]['id'])return;const _0xb06f6f=_0x1e9bc1[_0x58a86b(0x364)];if(Jt(_0xb06f6f)){const _0x48c859=a[_0x58a86b(0x237)]();this['_taskIds'][_0x58a86b(0x3b4)](_0x48c859),this[_0x58a86b(0x2ae)](_0x48c859);}else{if(Zt(_0xb06f6f)&&this[_0x58a86b(0x346)][_0x58a86b(0x2c8)]>0x0){const _0x3678c=this[_0x58a86b(0x346)][_0x58a86b(0x2f7)]();this[_0x58a86b(0x3e2)](_0x3678c);}}}));}[_0x2a0d4e(0x17c)](){const _0x1f0eb2=_0x2a0d4e;super['dispose'](),this[_0x1f0eb2(0x3c4)](),this[_0x1f0eb2(0x346)]=[],this[_0x1f0eb2(0x287)]=0x0,this[_0x1f0eb2(0x2c9)]=0x0,this[_0x1f0eb2(0x1c8)]=0x0;}async[_0x2a0d4e(0x29c)](_0x3a7913,_0x3380a4){const _0x484d33=_0x2a0d4e;for(let _0x3d529a=0x0;_0x3d529a<0x1e;_0x3d529a++)try{if(await this[_0x484d33(0x3ba)](),this[_0x484d33(0x20b)]()){this[_0x484d33(0x12d)](_0x3a7913,_0x3380a4),this[_0x484d33(0x2e8)][_0x484d33(0x31f)]({'content':this[_0x484d33(0x1a0)]['t'](_0x484d33(0x280)),'type':T['MessageType']['Success']});return;}await new Promise(_0x259dec=>{const _0x46aa0a=_0x484d33;this['_pollingInterval']=window[_0x46aa0a(0x285)](_0x259dec,0x3e8);});}catch(_0x511749){this['_logService'][_0x484d33(0x2e9)](_0x511749);}this['_messageService'][_0x484d33(0x31f)]({'content':this[_0x484d33(0x1a0)]['t'](_0x484d33(0x3d2)),'type':T[_0x484d33(0x14f)][_0x484d33(0x3a8)]});}[_0x2a0d4e(0x12d)](_0x3b98a9,_0x2fce58){const _0x795468=_0x2a0d4e;try{this[_0x795468(0x3db)][_0x795468(0x3c2)](_0x3b98a9['id'],_0x3b98a9[_0x795468(0x364)],_0x2fce58);}catch(_0x5e6c30){this[_0x795468(0x1ac)]['error'](_0x5e6c30);}}[_0x2a0d4e(0x1d2)](_0x5726ed,_0x282b89){const _0x671230=_0x2a0d4e;_0x282b89<this[_0x671230(0x1c8)]||(this[_0x671230(0x1c8)]=_0x282b89,this['_maxFormulaLimit']=Number[_0x671230(0x323)](_0x5726ed['maxFormulaLimit']),this[_0x671230(0x287)]=Number[_0x671230(0x323)](_0x5726ed['currentUsage']));}async[_0x2a0d4e(0x2ae)](_0x2626d8){const _0x3459c7=_0x2a0d4e;var _0x200238,_0xf58ecd;const _0x10aeee=Date['now']();try{const _0x5ed434=((_0x200238=this[_0x3459c7(0x1af)][_0x3459c7(0x375)](u[_0x3459c7(0x31d)]))==null?void 0x0:_0x200238[_0x3459c7(0x3ee)])||ss,_0x4b1873=(await this[_0x3459c7(0x137)][_0x3459c7(0x25b)](_0x5ed434,{'body':JSON[_0x3459c7(0x288)]({'taskId':_0x2626d8})}))[_0x3459c7(0x1f1)];if(((_0xf58ecd=_0x4b1873[_0x3459c7(0x2e9)])==null?void 0x0:_0xf58ecd[_0x3459c7(0x15d)])!==G['OK'])return;this[_0x3459c7(0x1d2)](_0x4b1873[_0x3459c7(0x2eb)],_0x10aeee);}catch(_0x54d0cc){this[_0x3459c7(0x1ac)]['error'](_0x54d0cc);}}async[_0x2a0d4e(0x3ba)](_0x6b256){const _0x7621ba=_0x2a0d4e;var _0x39fc96,_0x115bd2;const _0x5664a2=Date[_0x7621ba(0x1a3)]();try{const _0x11121f=((_0x39fc96=this[_0x7621ba(0x1af)][_0x7621ba(0x375)](u[_0x7621ba(0x31d)]))==null?void 0x0:_0x39fc96['getformulaLimitStatusUrl'])||ts,_0x4a5740=_0x6b256?_0x11121f+_0x7621ba(0x166)+encodeURIComponent(_0x6b256):_0x11121f,_0x4ee1e9=(await this[_0x7621ba(0x137)][_0x7621ba(0x276)](_0x4a5740))['body'];if(((_0x115bd2=_0x4ee1e9[_0x7621ba(0x2e9)])==null?void 0x0:_0x115bd2[_0x7621ba(0x15d)])!==G['OK'])return;this[_0x7621ba(0x1d2)](_0x4ee1e9[_0x7621ba(0x2eb)],_0x5664a2);}catch(_0x479ab0){this[_0x7621ba(0x1ac)][_0x7621ba(0x2e9)](_0x479ab0);}}async[_0x2a0d4e(0x3e2)](_0x50d958){const _0x49111f=_0x2a0d4e;var _0x40f7bb,_0x38a266;const _0xe62965=Date[_0x49111f(0x1a3)]();try{const _0x46ce51=((_0x40f7bb=this[_0x49111f(0x1af)][_0x49111f(0x375)](u[_0x49111f(0x31d)]))==null?void 0x0:_0x40f7bb[_0x49111f(0x2fe)])||is,_0x44ef71=(await this[_0x49111f(0x137)]['post'](_0x46ce51,{'body':JSON[_0x49111f(0x288)]({'taskId':_0x50d958})}))[_0x49111f(0x1f1)];if(((_0x38a266=_0x44ef71['error'])==null?void 0x0:_0x38a266[_0x49111f(0x15d)])!==G['OK'])return;this[_0x49111f(0x1d2)](_0x44ef71[_0x49111f(0x2eb)],_0xe62965);}catch(_0x527bdd){this[_0x49111f(0x1ac)][_0x49111f(0x2e9)](_0x527bdd);}}[_0x2a0d4e(0x20b)](){const _0x387b06=_0x2a0d4e;return this[_0x387b06(0x2c9)]===0x0?!0x0:this[_0x387b06(0x2c9)]-this[_0x387b06(0x287)]>0x0;}['_clearPolling'](){const _0x4ae749=_0x2a0d4e;this[_0x4ae749(0x279)]&&(clearTimeout(this[_0x4ae749(0x279)]),this[_0x4ae749(0x279)]=null);}[_0x2a0d4e(0x268)](){const _0x3296bd=_0x2a0d4e;this[_0x3296bd(0x2e8)][_0x3296bd(0x31f)]({'content':this['_localeService']['t'](_0x3296bd(0x339)),'type':T[_0x3296bd(0x14f)][_0x3296bd(0x17f)]});}['_hasFormulaInDirtyRanges'](_0x5eeb02){const _0x5f4873=_0x2a0d4e;for(const _0x295e6e of _0x5eeb02){const {unitId:_0x524c6d,sheetId:_0x204d84,range:_0xa283d4}=_0x295e6e,_0x3d6471=this[_0x5f4873(0x2e1)][_0x5f4873(0x3d6)](_0x524c6d);if(!_0x3d6471)continue;const _0x38658c=_0x3d6471[_0x5f4873(0x29b)](_0x204d84);if(!_0x38658c)continue;const _0x455529=_0x38658c[_0x5f4873(0x2b5)]();for(let _0x2dfc84=_0xa283d4['startRow'];_0x2dfc84<=_0xa283d4['endRow'];_0x2dfc84++)for(let _0x3ca038=_0xa283d4['startColumn'];_0x3ca038<=_0xa283d4[_0x5f4873(0x32b)];_0x3ca038++){const _0x3aca1c=_0x455529[_0x5f4873(0x2ec)](_0x2dfc84,_0x3ca038);if(_0x3aca1c&&(a['isFormulaString'](_0x3aca1c['f'])||a[_0x5f4873(0x2aa)](_0x3aca1c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x2a0d4e(0x390)](O[_0x2a0d4e(0x2bb)])),L(0x1,a['ICommandService']),L(0x2,a[_0x2a0d4e(0x2d6)]),L(0x3,a[_0x2a0d4e(0x390)](x[_0x2a0d4e(0x344)])),L(0x4,a[_0x2a0d4e(0x340)]),L(0x5,a[_0x2a0d4e(0x29a)]),L(0x6,a[_0x2a0d4e(0x390)](a[_0x2a0d4e(0x1be)]))],ne);var ns=Object[_0x2a0d4e(0x399)],rs=(_0x30e390,_0xe24556,_0x5429ea,_0x472619)=>{const _0x5864c0=_0x2a0d4e;for(var _0x544ad8=_0x472619>0x1?void 0x0:_0x472619?ns(_0xe24556,_0x5429ea):_0xe24556,_0x30c37e=_0x30e390[_0x5864c0(0x2c8)]-0x1,_0x6c78f7;_0x30c37e>=0x0;_0x30c37e--)(_0x6c78f7=_0x30e390[_0x30c37e])&&(_0x544ad8=_0x6c78f7(_0x544ad8)||_0x544ad8);return _0x544ad8;},de=(_0x3b1055,_0x5158ae)=>(_0x52c445,_0x1c17ad)=>_0x5158ae(_0x52c445,_0x1c17ad,_0x3b1055);let pe=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x1b02d5,_0x28d4da,_0x3cd398){const _0x53c9ff=_0x2a0d4e;super(),_(this,_0x53c9ff(0x38c),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x53c9ff(0x1af)]=_0x1b02d5,this[_0x53c9ff(0x156)]=_0x28d4da,this[_0x53c9ff(0x311)]=_0x3cd398);}[_0x2a0d4e(0x1d8)](){this['_disabled']=!0x0;}[_0x2a0d4e(0x1cd)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0xca402a=_0x2a0d4e;return this[_0xca402a(0x300)];}[_0x2a0d4e(0x17c)](){const _0x4f4538=_0x2a0d4e;this[_0x4f4538(0x295)]()[_0x4f4538(0x341)](()=>super[_0x4f4538(0x17c)]());}async[_0x2a0d4e(0x2da)](_0x7986a6){const _0x5a4ac1=_0x2a0d4e;return this[_0x5a4ac1(0x208)]?null:this[_0x5a4ac1(0x156)]['getItem'](u['getLocalCacheKey'](_0x7986a6));}async[_0x2a0d4e(0x26c)](_0x2e7bd3,_0x380dc6){const _0x3efea6=_0x2a0d4e;return!!this[_0x3efea6(0x156)][_0x3efea6(0x1fc)](_0x2e7bd3,_0x380dc6);}[_0x2a0d4e(0x24e)](_0x214a61,_0x45ab1b,_0x45e937,_0x11edc4){const _0x82e6b9=_0x2a0d4e,_0x5e4cd5=this['_revisionService'][_0x82e6b9(0x1d6)](_0x214a61);this[_0x82e6b9(0x38c)][_0x82e6b9(0x1f9)](_0x214a61,{'unitID':_0x214a61,'type':_0x45ab1b,'awaitingChangeset':_0x45e937,'mutations':_0x11edc4,'rev':_0x5e4cd5}),this['_saveTaskMap'][_0x82e6b9(0x3d9)](_0x214a61)||this[_0x82e6b9(0x34b)](_0x214a61);}[_0x2a0d4e(0x34b)](_0x905855){const _0x357cb5=_0x2a0d4e,_0x10a233=this[_0x357cb5(0x3d1)]();_0x10a233===0x0?this[_0x357cb5(0x3a2)](_0x905855):this['_saveTaskMap'][_0x357cb5(0x1f9)](_0x905855,setTimeout(()=>this[_0x357cb5(0x3a2)](_0x905855),_0x10a233));}[_0x2a0d4e(0x3d1)](){const _0xca7416=_0x2a0d4e;var _0x3672db;return(_0x3672db=this[_0xca7416(0x1af)][_0xca7416(0x375)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3672db:u[_0xca7416(0x1e4)];}[_0x2a0d4e(0x3a2)](_0x106da){const _0x19f6a2=_0x2a0d4e,_0x19fc55=this[_0x19f6a2(0x300)]['get'](_0x106da);return _0x19fc55!==void 0x0&&window[_0x19f6a2(0x24a)](_0x19fc55),this[_0x19f6a2(0x156)][_0x19f6a2(0x1fc)](u[_0x19f6a2(0x3d4)](_0x106da),this[_0x19f6a2(0x38c)]['get'](_0x106da))[_0x19f6a2(0x341)](()=>this[_0x19f6a2(0x300)][_0x19f6a2(0x233)](_0x106da));}async[_0x2a0d4e(0x295)](){const _0x10570f=_0x2a0d4e,_0x26f5ae=[];this['_saveTaskMap']['forEach']((_0x248620,_0x52488b)=>{const _0x16ea92=_0x463e;window[_0x16ea92(0x24a)](_0x248620),_0x26f5ae[_0x16ea92(0x3b4)](this['_saveCache'](_0x52488b)[_0x16ea92(0x341)](()=>{const _0x4f419a=_0x16ea92;this[_0x4f419a(0x300)][_0x4f419a(0x233)](_0x52488b);}));}),await Promise[_0x10570f(0x15e)](_0x26f5ae);}};pe=rs([de(0x0,a[_0x2a0d4e(0x2d6)]),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x2a0d4e(0x390)](g['RevisionService']))],pe);class ke extends a['RxDisposable']{constructor(){const _0x4c7526=_0x2a0d4e;super(),_(this,_0x4c7526(0x3c7)),this[_0x4c7526(0x3c7)]=I['fromEvent'](window,_0x4c7526(0x18c))[_0x4c7526(0x1df)](I[_0x4c7526(0x3a9)](this[_0x4c7526(0x30b)]),I[_0x4c7526(0x11e)](0x1),I[_0x4c7526(0x338)](void 0x0));}[_0x2a0d4e(0x336)](_0x529ec3,_0x503008,_0x1ee4fa=!0x1){const _0x300d51=_0x2a0d4e,_0x300925=new URL(window[_0x300d51(0x1c5)]['href']);_0x300925[_0x300d51(0x369)][_0x300d51(0x1f9)](_0x529ec3,_0x503008),_0x1ee4fa?window[_0x300d51(0x201)][_0x300d51(0x227)]('','',_0x300925[_0x300d51(0x2be)]()):window[_0x300d51(0x201)][_0x300d51(0x191)]('','',_0x300925['toString']());}[_0x2a0d4e(0x362)](_0x490ab5,_0x1205a1=!0x1){const _0x43b36e=_0x2a0d4e,_0x1741f1=new URL(window[_0x43b36e(0x1c5)][_0x43b36e(0x353)]);_0x1741f1[_0x43b36e(0x369)]['delete'](_0x490ab5),_0x1205a1?window[_0x43b36e(0x201)][_0x43b36e(0x227)]('','',_0x1741f1[_0x43b36e(0x2be)]()):window[_0x43b36e(0x201)]['pushState']('','',_0x1741f1[_0x43b36e(0x2be)]());}['getParam'](_0xeb5e89){const _0x107749=_0x2a0d4e;var _0x266bc4;return(_0x266bc4=new URL(window[_0x107749(0x1c5)]['href'])['searchParams']['get'](_0xeb5e89))!=null?_0x266bc4:void 0x0;}}var os=Object[_0x2a0d4e(0x1d4)],as=Object[_0x2a0d4e(0x399)],cs=(_0x31578a,_0x1b48f1,_0x37cef9)=>_0x1b48f1 in _0x31578a?os(_0x31578a,_0x1b48f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cef9}):_0x31578a[_0x1b48f1]=_0x37cef9,ls=(_0x4fa97d,_0x5e1321,_0x2d3000,_0x56499)=>{for(var _0x591629=_0x56499>0x1?void 0x0:_0x56499?as(_0x5e1321,_0x2d3000):_0x5e1321,_0x5974c8=_0x4fa97d['length']-0x1,_0x3da4d5;_0x5974c8>=0x0;_0x5974c8--)(_0x3da4d5=_0x4fa97d[_0x5974c8])&&(_0x591629=_0x3da4d5(_0x591629)||_0x591629);return _0x591629;},Se=(_0xf60cac,_0x1160b5)=>(_0x44bdbb,_0x540f62)=>_0x1160b5(_0x44bdbb,_0x540f62,_0xf60cac),_s=(_0x22e16c,_0x50c539,_0x4b5ee2)=>cs(_0x22e16c,_0x50c539+'',_0x4b5ee2);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x2a0d4e(0x32c)]=class extends a[_0x2a0d4e(0x3a6)]{constructor(_0x520027=Me,_0x6842b6,_0x50a690,_0x2a3ebd){const _0x86a4d0=_0x2a0d4e;super(),this[_0x86a4d0(0x398)]=_0x520027,this[_0x86a4d0(0x254)]=_0x6842b6,this[_0x86a4d0(0x240)]=_0x50a690,this[_0x86a4d0(0x1af)]=_0x2a3ebd;const {..._0x561c8f}=a[_0x86a4d0(0x3be)]({},Me,this[_0x86a4d0(0x398)]);this[_0x86a4d0(0x1af)][_0x86a4d0(0x3e1)](Yt,_0x561c8f);}[_0x2a0d4e(0x3b8)](){const _0x3443c1=_0x2a0d4e;this[_0x3443c1(0x3b2)](),this[_0x3443c1(0x2bd)]();}[_0x2a0d4e(0x357)](){const _0x571633=_0x2a0d4e;this[_0x571633(0x2a6)]();}[_0x2a0d4e(0x3b2)](){const _0x1ef918=_0x2a0d4e;var _0xf0cf47;const _0x511dda=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x1ef918(0x3ce)],{'useClass':x['WebSocketService']}],[u[_0x1ef918(0x27f)],{'useClass':pe}],[exports[_0x1ef918(0x290)]],[ie],[Z],[F],[me],[exports[_0x1ef918(0x394)]]];this['_config'][_0x1ef918(0x29d)]&&_0x511dda['push']([Q]),a[_0x1ef918(0x131)](this[_0x1ef918(0x240)],a[_0x1ef918(0x273)](_0x511dda,(_0xf0cf47=this[_0x1ef918(0x398)])==null?void 0x0:_0xf0cf47['override']));}[_0x2a0d4e(0x2a6)](){const _0x5a618a=_0x2a0d4e;this[_0x5a618a(0x1b0)](this[_0x5a618a(0x254)][_0x5a618a(0x190)](a[_0x5a618a(0x2d8)][_0x5a618a(0x181)],[Ee])),this[_0x5a618a(0x1b0)](this[_0x5a618a(0x254)][_0x5a618a(0x190)](a['UniverInstanceType'][_0x5a618a(0x1c0)],[Ce]));}[_0x2a0d4e(0x2bd)](){const _0x2331e3=_0x2a0d4e;a[_0x2331e3(0x17e)](this['_injector'],[[F],[exports[_0x2331e3(0x290)]],[ie],[Z],[exports[_0x2331e3(0x394)]],[ne]]),this[_0x2331e3(0x398)][_0x2331e3(0x29d)]&&a[_0x2331e3(0x17e)](this[_0x2331e3(0x240)],[[Q]]);}},_s(exports[_0x2a0d4e(0x32c)],_0x2a0d4e(0x1e2),hs),exports[_0x2a0d4e(0x32c)]=ls([a[_0x2a0d4e(0x31b)](u['UniverCollaborationClientPlugin']),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x2a0d4e(0x390)](a['Injector'])),Se(0x3,a[_0x2a0d4e(0x2d6)])],exports[_0x2a0d4e(0x32c)]);var us=Object[_0x2a0d4e(0x399)],Is=(_0x50ac2,_0x4e22b8,_0x38ad72,_0x136ae0)=>{const _0x560cbb=_0x2a0d4e;for(var _0x579e4a=_0x136ae0>0x1?void 0x0:_0x136ae0?us(_0x4e22b8,_0x38ad72):_0x4e22b8,_0x1260d7=_0x50ac2[_0x560cbb(0x2c8)]-0x1,_0x45d3af;_0x1260d7>=0x0;_0x1260d7--)(_0x45d3af=_0x50ac2[_0x1260d7])&&(_0x579e4a=_0x45d3af(_0x579e4a)||_0x579e4a);return _0x579e4a;},W=(_0x5aef8b,_0x377805)=>(_0x597aaa,_0x4cbfc2)=>_0x377805(_0x597aaa,_0x4cbfc2,_0x5aef8b);exports['BrowserCollaborationSocketService']=class extends u[_0x2a0d4e(0x363)]{constructor(_0x253ea8,_0x5bba0d,_0x9c98,_0x520c3a,_0x3a580f){super(_0x253ea8,_0x5bba0d,_0x9c98,_0x520c3a,_0x3a580f);}async[_0x2a0d4e(0x3da)](_0x39f4a6){const _0x1dc1a3=_0x2a0d4e,_0x3f13ac=await this[_0x1dc1a3(0x383)](),_0x26c82a=this[_0x1dc1a3(0x11d)](_0x39f4a6,_0x3f13ac);return this[_0x1dc1a3(0x307)](_0x26c82a);}[_0x2a0d4e(0x11d)](_0x499837,_0x4a88a8){const _0x167cb4=_0x2a0d4e,_0x50168b=typeof window>'u'?new URL(_0x499837):new URL(_0x499837,window[_0x167cb4(0x1c5)]['origin']);_0x50168b['searchParams'][_0x167cb4(0x1f9)]('sessionTicket',_0x4a88a8);const _0x492456=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x167cb4(0x25c)]);return _0x492456[_0x167cb4(0x276)]('runId')&&_0x50168b[_0x167cb4(0x369)]['set'](_0x167cb4(0x138),_0x492456[_0x167cb4(0x276)](_0x167cb4(0x138))),_0x50168b['toString']();}async[_0x2a0d4e(0x383)](){const _0x3babf7=_0x2a0d4e;var _0x352e40,_0x24b846,_0x3da0e7;const _0x4d7e14=this[_0x3babf7(0x1af)][_0x3babf7(0x375)](u[_0x3babf7(0x31d)]),_0x3f4ce3=(_0x352e40=_0x4d7e14==null?void 0x0:_0x4d7e14[_0x3babf7(0x143)])!=null?_0x352e40:u[_0x3babf7(0x223)];return(_0x3da0e7=(_0x24b846=(await this[_0x3babf7(0x137)]['get'](_0x3f4ce3,{'headers':{'Content-Type':'application/json'}}))[_0x3babf7(0x1f1)])==null?void 0x0:_0x24b846['ticket'])!=null?_0x3da0e7:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a['Inject'](a[_0x2a0d4e(0x322)])),W(0x1,a['Inject'](x[_0x2a0d4e(0x344)])),W(0x2,a[_0x2a0d4e(0x2d6)]),W(0x3,a[_0x2a0d4e(0x29a)]),W(0x4,g['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var ds=Object[_0x2a0d4e(0x399)],Ss=(_0x4c03d1,_0x285c7c,_0x14090c,_0x3100ba)=>{const _0x4ee292=_0x2a0d4e;for(var _0x40a0d5=_0x3100ba>0x1?void 0x0:_0x3100ba?ds(_0x285c7c,_0x14090c):_0x285c7c,_0x3a3017=_0x4c03d1[_0x4ee292(0x2c8)]-0x1,_0x21b2fc;_0x3a3017>=0x0;_0x3a3017--)(_0x21b2fc=_0x4c03d1[_0x3a3017])&&(_0x40a0d5=_0x21b2fc(_0x40a0d5)||_0x40a0d5);return _0x40a0d5;},fe=(_0x11fff7,_0x194dcd)=>(_0x2823d1,_0x44f596)=>_0x194dcd(_0x2823d1,_0x44f596,_0x11fff7);exports[_0x2a0d4e(0x302)]=class extends a[_0x2a0d4e(0x1e1)]{constructor(_0x1ee670,_0x28421d,_0x56dfb3){const _0x5aaf8d=_0x2a0d4e;super(),this[_0x5aaf8d(0x198)]=_0x1ee670,this[_0x5aaf8d(0x137)]=_0x28421d,this[_0x5aaf8d(0x1af)]=_0x56dfb3;}async[_0x2a0d4e(0x1dc)](_0x209adc,_0x219ab9,_0x2b8dde,..._0x5784dd){const _0x35c1ad=_0x2a0d4e;var _0x310fab,_0x1d0eb5,_0x14761c,_0x1c0c21;const _0x4b389f=this[_0x35c1ad(0x198)][_0x35c1ad(0x27b)]();if(!_0x4b389f)throw new Error(_0x35c1ad(0x171));const _0xdbd846=((_0x310fab=this[_0x35c1ad(0x1af)][_0x35c1ad(0x375)](u[_0x35c1ad(0x3af)]))!=null?_0x310fab:u[_0x35c1ad(0x316)])+'/'+_0x209adc+_0x35c1ad(0x342)+_0x219ab9,_0x22925d=new URL(window[_0x35c1ad(0x1c5)][_0x35c1ad(0x353)]),_0x4f044e={'scriptId':_0x209adc,'runId':(_0x1d0eb5=_0x22925d[_0x35c1ad(0x369)]['get'](_0x35c1ad(0x138)))!=null?_0x1d0eb5:'','function':_0x219ab9,'unitId':_0x4b389f[_0x35c1ad(0x13b)](),'argsOfFunction':JSON[_0x35c1ad(0x288)](_0x5784dd),'invokeId':(_0x14761c=_0x2b8dde[_0x35c1ad(0x257)])!=null?_0x14761c:'','executionId':(_0x1c0c21=_0x2b8dde[_0x35c1ad(0x1cb)])!=null?_0x1c0c21:''};try{const _0x6ab2ed=await this[_0x35c1ad(0x137)][_0x35c1ad(0x25b)](_0xdbd846,{'body':_0x4f044e});return _0x6ab2ed[_0x35c1ad(0x1f1)][_0x35c1ad(0x2e9)]&&_0x6ab2ed[_0x35c1ad(0x1f1)][_0x35c1ad(0x2e9)]['code']!==G['OK']?_0x35c1ad(0x207):_0x6ab2ed[_0x35c1ad(0x1f1)]['result'];}catch{return'Failed';}}},exports[_0x2a0d4e(0x302)]=Ss([fe(0x0,a[_0x2a0d4e(0x340)]),fe(0x1,a['Inject'](x[_0x2a0d4e(0x344)])),fe(0x2,a[_0x2a0d4e(0x2d6)])],exports[_0x2a0d4e(0x302)]);const we=0x7530,ye=_0x2a0d4e(0x3a7);class fs extends a[_0x2a0d4e(0x1e1)]{constructor(){const _0x4af51e=_0x2a0d4e;super(),_(this,_0x4af51e(0x248),a[_0x4af51e(0x237)]()),_(this,_0x4af51e(0x1eb),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4af51e(0x1d7),null),_(this,_0x4af51e(0x371),new Map()),_(this,_0x4af51e(0x148),new Map()),this[_0x4af51e(0x3cb)]();}[_0x2a0d4e(0x17c)](){const _0x31b1ec=_0x2a0d4e;super[_0x31b1ec(0x17c)](),this['_clearOtherTimers'][_0x31b1ec(0x38a)]((_0x286762,_0x305e68)=>this[_0x31b1ec(0x289)](_0x305e68)),this['_heartbeatTimer']&&window[_0x31b1ec(0x173)](this[_0x31b1ec(0x1d7)]);}[_0x2a0d4e(0x239)](_0x1659fc){const _0x7f18cd=_0x2a0d4e;return this[_0x7f18cd(0x1fe)](_0x1659fc)[_0x7f18cd(0x1df)](I['distinctUntilChanged']());}[_0x2a0d4e(0x15f)](_0x22ba12){const _0x364db2=_0x2a0d4e;this[_0x364db2(0x1eb)][_0x364db2(0x2b3)]===0x0&&this[_0x364db2(0x31e)](),this[_0x364db2(0x1eb)][_0x364db2(0x205)](_0x22ba12),this[_0x364db2(0x249)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x22ba12],'isForwarded':!0x1});}[_0x2a0d4e(0x155)](_0x2c4cae){const _0x13e77c=_0x2a0d4e;this['_selfUnitIDs'][_0x13e77c(0x233)](_0x2c4cae),this['_selfUnitIDs'][_0x13e77c(0x2b3)]===0x0&&this['_heartbeatTimer']&&window[_0x13e77c(0x173)](this['_heartbeatTimer']);}['_init'](){const _0x40adee=_0x2a0d4e;this[_0x40adee(0x1b0)](a[_0x40adee(0x20d)](I['fromEvent'](window,_0x40adee(0x37c))[_0x40adee(0x2f9)](_0xbdec9b=>{const _0x1338b6=_0x40adee;if(_0xbdec9b[_0x1338b6(0x39a)]!==ye||!_0xbdec9b[_0x1338b6(0x142)])return;const _0x2fe9a3=JSON[_0x1338b6(0x389)](_0xbdec9b[_0x1338b6(0x142)]);this['_handleEvent'](_0x2fe9a3);}))),window[_0x40adee(0x18a)](_0x40adee(0x2a5),()=>this[_0x40adee(0x249)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x40adee(0x2cb)](this[_0x40adee(0x1eb)])}));}[_0x2a0d4e(0x19a)](_0x1a9ccb){const _0x572921=_0x2a0d4e;switch(_0x1a9ccb[_0x572921(0x123)]){case 0x0:this[_0x572921(0x36b)](_0x1a9ccb);break;case 0x1:this['_handleLeaveEvent'](_0x1a9ccb);break;case 0x2:this['_handleHeartbeatEvent'](_0x1a9ccb);break;}}[_0x2a0d4e(0x36b)](_0x238315){const _0x2b25eb=_0x2a0d4e,{unitIDs:_0x3e9e6a,memberID:_0xb6a440,isForwarded:_0x4f8c17}=_0x238315;_0x3e9e6a[_0x2b25eb(0x38a)](_0x84e8=>{const _0x508788=_0x2b25eb;if(!_0x4f8c17&&this[_0x508788(0x23c)]['has'](_0x84e8)&&this['_ensureSubject'](_0x84e8)[_0x508788(0x28b)](u[_0x508788(0x2b8)][_0x508788(0x3d5)]),!this['_unitOnClients'][_0x508788(0x3d9)](_0x84e8)||!this[_0x508788(0x23c)]['get'](_0x84e8)['has'](_0xb6a440)){const _0x321c02=this[_0x508788(0x23c)]['get'](_0x84e8)||new Set();_0x321c02[_0x508788(0x205)](_0xb6a440),this[_0x508788(0x23c)][_0x508788(0x1f9)](_0x84e8,_0x321c02),this[_0x508788(0x301)](_0xb6a440);}}),_0x4f8c17||this[_0x2b25eb(0x249)]({'type':0x0,'memberID':this[_0x2b25eb(0x248)],'unitIDs':[...this[_0x2b25eb(0x1eb)]],'isForwarded':!0x0});}[_0x2a0d4e(0x301)](_0x1ed1a8){const _0x389999=_0x2a0d4e;this[_0x389999(0x289)](_0x1ed1a8);const _0x1c05da=window[_0x389999(0x285)](()=>{const _0x3b48b4=_0x389999;this['_unitOnClients'][_0x3b48b4(0x38a)](_0xfd1ff0=>{const _0x4569fd=_0x3b48b4;_0xfd1ff0[_0x4569fd(0x233)](_0x1ed1a8);});},we*0x2);this[_0x389999(0x371)][_0x389999(0x1f9)](_0x1ed1a8,_0x1c05da);}[_0x2a0d4e(0x289)](_0x2679a5){const _0x541497=_0x2a0d4e;if(this[_0x541497(0x371)][_0x541497(0x3d9)](_0x2679a5)){const _0x381bb0=this[_0x541497(0x371)][_0x541497(0x276)](_0x2679a5);_0x381bb0&&window[_0x541497(0x24a)](_0x381bb0),this[_0x541497(0x371)][_0x541497(0x1f9)](_0x2679a5,null);}}[_0x2a0d4e(0x343)](_0x1da317){const _0x32d1bc=_0x2a0d4e,{memberID:_0x464ee2,unitIDs:_0x23884b}=_0x1da317;_0x23884b['forEach'](_0x17a28d=>{const _0x43e883=_0x463e;var _0x53c004;const _0x388f11=this[_0x43e883(0x23c)][_0x43e883(0x276)](_0x17a28d);_0x388f11&&(_0x388f11[_0x43e883(0x233)](_0x464ee2),(_0x53c004=this[_0x43e883(0x1fe)](_0x17a28d))==null||_0x53c004[_0x43e883(0x28b)](_0x388f11[_0x43e883(0x2b3)]===0x0?u[_0x43e883(0x2b8)][_0x43e883(0x22c)]:u[_0x43e883(0x2b8)][_0x43e883(0x3d5)]));}),this[_0x32d1bc(0x289)](_0x464ee2);}[_0x2a0d4e(0x2e6)](_0x52e72e){const _0x1ae167=_0x2a0d4e;this[_0x1ae167(0x301)](_0x52e72e[_0x1ae167(0x225)]);}[_0x2a0d4e(0x249)](_0x35f107){const _0x413d03=_0x2a0d4e;localStorage[_0x413d03(0x1fc)](ye,JSON[_0x413d03(0x288)](_0x35f107));}[_0x2a0d4e(0x31e)](){const _0x436236=_0x2a0d4e;this[_0x436236(0x1d7)]=window[_0x436236(0x36d)](()=>{const _0x12133d=_0x436236;this[_0x12133d(0x249)]({'type':0x2,'memberID':this[_0x12133d(0x248)]});},we);}[_0x2a0d4e(0x1fe)](_0x1ce328){const _0x522cf9=_0x2a0d4e;return this[_0x522cf9(0x148)][_0x522cf9(0x3d9)](_0x1ce328)||this[_0x522cf9(0x148)][_0x522cf9(0x1f9)](_0x1ce328,new I[(_0x522cf9(0x14b))](u[_0x522cf9(0x2b8)][_0x522cf9(0x22c)])),this[_0x522cf9(0x148)][_0x522cf9(0x276)](_0x1ce328);}}exports[_0x2a0d4e(0x388)]=Oe,exports['SheetCollabCursorShape']=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x2a0d4e(0x256)]=ke;function _0x18b8(){const _0x1859ed=['error','_drawRectRange','limitInfo','getValue','round','yellow.400','debounce','SetSelectionsOperation','setAlpha','_collabCursorController','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','YUUMI_UNABLE_LOAD_URL','filter','CollaborationUIEventService','shift','assignAColorForMemberID','subscribe','SessionStatus','CURRENT_STATUS_CANNOT_OPERATE','AWAITING','_hovered','releaseFormulaLimitUrl','getCellPositionByOffset','_saveTaskMap','_scheduleClearOtherTimer','RemoteUniscriptService','getUniverSheetInstance','ERROR_AGAIN','PENDING','univer-flex\x20univer-items-center','_doCreateSocket','_memberService','getDocRanges','_collaborationUIEventService','dispose$','catch','MUTATION','session.will-retry','message','_online','_revisionService','runRefRangeMutations','handleInsertRangeMoveRight','isTransformMutationFailure','_beforeCloseService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','fromEventSubject','RECT','40wpCEtt','#FFF','DependentOn','USERS_LEAVE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleHeartbeat','show','transformRemoteChangeset','purple.300','Injector','parseInt','ENTITLE_DUP_SUBSCRIPTION','functionsExecutedState','InsertRangeMoveRightCommandId','OFFLINE','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','_initWindowErrorListener','YUUMI_NO_CUBOID_FOR_QUESTION','endColumn','UniverCollaborationClientUIPlugin','_getMergeRange','currentTheme$','off-line-icon_clip0_910_343','getOffsetConfig','permission.content','jsxs','7440mcUUCX','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','clsx','setParam','DocSelectionManagerService','mapTo','formula.calculation.waiting','APPLY_PERMISSION_DENIED','unshift','REDEMPTION_CODE_FULLY_REDEEMED','status$','range','CommandType','IUniverInstanceService','then','/run/','_handleLeaveEvent','HTTPService','Tooltip','_taskIds','cursorInfo','INotificationService','_collabSessionService','_notificationService','_scheduleSaving','EMAIL_VERIFY_CODE_MISMATCH','NOT_COLLAB','Subject','_handleHover','undoState','/universer-api/license/formula/limit/start','1215324lhRAbc','href','contains','engine','_initEvent','onRendered','switchMap','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','defIds','getRenderById','cursorInfo$','tag','filename','COLORS','on-line-icon','REDEMPTION_USER_REDEEM_TIMES_EXCEED','removeParam','CollaborationSocketService','params','CHANGESET_REVISION_CONFILICT','reason','max','handleInsertRow','searchParams','YUUMI_RATE_OVER_LIMIT','_handleJoinEvent','IBeforeCloseService','setInterval','IDocClipboardService','use','_transformService','_clearOtherTimers','lineno','handleInsertRangeMoveDown','collabStatus.notCollab','getConfig','mutations','onCommandExecuted','DataLoaderService','isEditing','_transformPreviousActiveRange','OTHER_CLIENT_EDITING','storage','REDEMPTION_USER_NOT_ELIGIBLE','getMergeData','colorChannel1','saveTaskMap','registerRefRange','forwardRef','_getSessionTicket','symbol','replace','session.connection-failed','getCoordByCell','IURLService','parse','forEach','SetTextSelectionsOperation','_cachedData','_getScale','totalFormulasToCalculate','_cursorShapes','Inject','ENTITLE_CAN_NOT_BUY_LOWER_OTP','save','ICommandService','CollaborationDataLoaderController','_collaborationController','_range','InsertRowCommandId','_config','getOwnPropertyDescriptor','key','currentSkeleton$','handleIRemoveCol','getCollabCursors$','SNAPSHOT_INVALID_SNAPSHOT','USER_NOT_INVITED_CODE','data','div','_saveCache','_initCommandInterceptor','START_CALCULATION','collab-text-range-','Plugin','ACTIVE_UNIT_EVENT_CHANNEL','Error','takeUntil','subscribeEvent','collab-client.tooltip.reconnect','_imageIoService','onMouseMove','TRANSFORM_CHANGE_OBSERVABLE_TYPE','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','SheetsSelectionsService','sessionStatus$','_registerDependencies','combineLatest','push','rgba(255,\x20255,\x20255,\x200.01)','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EMAIL_HAS_BEEN_BOUND','onStarting','throttleTime','_getFormulaLimitStatus','_docSkeletonManagerService','unhandledrejection','LICENSE_EXPORT_SIZE_EXCEEDED','merge','connectInjector','_monkeyPatchLogService','top','executeCommand','collaboration-client-ui.config','_clearPolling','_cursor','defs','urlChange$','_getSheetObject','INVALID_ARGUMENT','trim','_init','SUBMIT_CHANGESET_TIMEOUT','collabStatus.syncing','ISocketService','_initUnhandledRejectionListener','transformIMECache','_getSaveTimeout','formula.calculation.unable','_lastPointer','getLocalCacheKey','OTHER_CLIENTS_EDITING','getUnit','UNAUTHENTICATED','backgroundColor','has','createSocket','_commandService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','mask','onPointerEnter$','_onCursorDelete','ColorKit','setConfig','_releaseCalculationLimit','createElement','entityInit$','_assignedColors','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','displayName','onPointerLeave$','url(#$1','blue.400','getRangePointData','selections','split','startFormulaLimitUrl','72Ddfjnn','_createSocketURL','shareReplay','m1Prime','[CollaborationDataLoaderController]','YUUMI_AI_RUN_FAILED','RxDisposable','type','sheetId','ITransformService','roomMembers$','transformMutation','COMPLETION_FINISHED','replaceDocRanges','SYNCED','skeleton','ranges','_applyCommand','RefRangeService','HEADER_MENU','getRelativeToViewportCoord','registerDependencies','init','lineTo','CanceledError','collab-rect-range-','_updateLocalCursor','_httpService','runId','_urlService','WECHAT_HAS_BEEN_BOUND','getUnitId','EffectRefRangId','map','xlink:href','imageSourceType','text','_setupSubUnitSync','newValue','wsSessionTicketUrl','[LogService\x20Error]:\x20','requireSession','collabStatus.conflict','subunit','_unitStatus','transform','_updateCollabCursors','BehaviorSubject','white','unit','permission.title','MessageType','_onCursorUpdate','url(#on-line-icon_clip0_910_349)','_transformHistoryAndStateStack','getTypeOfUnitDisposed$','FromArray','disposeUnit','_localStorageService','makeDirty','registerBeforeClose','send','LOGIN_TOKEN_PROCESSING_FAILED','bottom','hovered','code','all','editingUnit','getCurrent','addObject','OnLineIcon','Vector2','_session','_startSheetCollabCursor','?taskId=','doc.mutation.rich-text-editing','getAncestorScale','_updateSubUnitFromURLParams','transformSelections','path','APPLY_DUPLICATED','addObjects','closePath','getStateCache','http://www.w3.org/2000/svg','[RemoteUniscriptService]:\x20no\x20focused\x20unit','find','clearInterval','dirtyRanges','transformByState','1494BPaKzV','_hasFormulaInDirtyRanges','FormulaExecutedStateType','DisposableCollection','OffLineIcon','SUCCESS','dispose','_anchor','touchDependencies','Loading','getVpScrollXYInfoByPosToVp','UNIVER_DOC','ThemeService','_updateURLWithCurrentState','drawWith','some','removeEventListener','Warning','_render','width','addEventListener','_setupBeforeClosingHandler','popstate','_drawAnchor','AWAITING_WITH_PENDING','name','registerRenderModule','pushState','textRanges','getSkeleton','_initStatusListener','current','InsertColCommandId','handleDeleteRangeMoveLeft','_instanceService','actions','_handleEvent','getTypeOfUnitAdded$','YUUMI_SUBSCRIPTION_NOT_FOUND','with','RemoveRowCommandId','collaboration.closeRoom','_localeService','PAYMENT_CHANNEL_NOT_SUPPORT','DocSkeletonManagerService','now','evenodd','M0\x200H16V16H0z','SHEET_VIEWPORT_KEY','entries','asObservable','setStateCache','YUUMI_CONNECTOR_URL_NOT_FOUND','SOCKET_FAILED','_logService','DATA_SOURCE_TOO_LARGE','DocCollaborationEntity','_configService','disposeWithMe','BuiltInUIPart','DeleteRangeMoveUpCommandId','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','_cursors','ENTITLE_NEED_BILLING_ADDRESS','_collabCursorState$','m2Prime','setShapeProps','UNDEFINED','jiqing.500','_entities','_eventUnsubscribe','LocaleService','collabStatus.fetchMiss','UNIVER_SHEET','fillStyle','useRef','createIdentifier','roomMembers','location','debug','_dataLoaderService','_lastResponseTimestamp','LICENSE_DISTRO_REJECTED','green.600','executionId','_textBubble','enableLocalCache','findNodePositionByCharIndex','NodePositionConvertToCursor','_context','toStringTag','_setFormulaLimitStatus','_initEntityListener','defineProperty','deepClone','getCurrentRevOfUnit','_heartbeatTimer','disableLocalCache','/universer-api/license/formula/limit/done','resize','on-line-icon_clip0_910_349','runOnServer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','InsertRangeMoveDownCommandId','pipe','1776800CuQLVC','Disposable','pluginName','triggerDblclick','LOCAL_CACHE_INTERVAL','getCurrentSelections','_colorAssignService','measureText','_startDocCollabCursor','INVITE_CODE_ALREADY_BOUND','transformStateCache','_selfUnitIDs','_backgroundColor','_cursorInfo$','_docStateChangeManagerService','transformMutationsWithChangeset','saveImage','body','join','random','unitId','serializeRangeWithSheet','REDEMPTION_CODE_NOT_STARTED','_docSkeleton','redoState','set','_localCacheService','ONLINE','setItem','IRemoteInstanceService','_ensureSubject','REDEMPTION_CODE_HAS_BEEN_CREATED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','history','sheetID','activeSheet$','font','add','LICENSE_IMPORT_SIZE_EXCEEDED','Failed','_disabled','string','IUIPartsService','_checkCalculationAvailable','AUTHORIZE_CODE_ILLEGAL','toDisposable','clipPath','_name','/universer-api/license/formula/limit/status','YUUMI_ASYNCIO_CANCELLED','getSheetObject','idSuffix','_onRefRangeChange','_toggleOffline','restore','_docTransformSelectionsService','_docTransformIMECacheService','FETCH_MISS','docStateChange$','SOCKET_FAILED_RETRY','YUUMI_URL_COL_OUT_OF_RANGE','min','selection','MemberService','APPLY_REJECT','MOBILE_HAS_BEEN_BOUND','isArray','DEFAULT_WS_SESSION_TICKET_URL','useDependency','memberID','_shapes','replaceState','_roomMembers$','2MmSLvF','CollaborationUIEventId','UPDATE_CURSOR','NO_OTHER_CLIENTS_EDITING','getColorFromTheme','event$','off-line-icon','APPLY_NON_SEQUENTIAL_REVISION','RegularPolygon','_colorIndex','delete','INVALID_INVITE_CODE','1302501uPzRBA','focused$','generateRandomId','SetWorksheetActivateCommand','getUnitStatus$','REDEMPTION_INVALID_CODE','CONFLICT','_unitOnClients','_themeService','NOT_FOUND','attrs','_injector','getColor','SheetSkeletonManagerService','_hover','[Unhandled\x20Rejection]:\x20','socket$','_docClipboardService','none','_id','_send','clearTimeout','INTERNAL_ERROR','_draw','REDEMPTION_CODE_INACTIVE','updateOfflineData','arc','TEXT','fill','getActiveRange','APPLY_REVISION_CONFILICT','_renderManagerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','WebURLService','invokeId','NodePositionConvertToRectRange','beforeCommandExecuted','Rect','post','search','MOBILE_VERIFY_CODE_MISMATCH','bind','getParam','includes','DocStateChangeManagerService','IRenderManagerService','0\x200\x2016\x2016','DocIMEInputManagerService','CollaborationEvent','_entityInit$','toRgbString','_showGuardMessage','_transformUndoRedoStack','PERMISSION_DENIED','CollaborationSessionService','saveOfflineData','_memberID','SNAPSHOT_HAS_BEEN_REMOVED','getMemberID','getMember','INVITE_CODE_HAS_BEEN_UES','USER_IS_ANONYMOUS','mergeOverrideWithDependencies','_initCommandExecutedListener','moveTo','get','Tools','CollaborationController','_pollingInterval','debounceTime','getFocusedUnit','_sheetSkeletonManagerService','_uploadLog','syncEditingCollabCursor','ILocalCacheService','formula.calculation.started','IImageIoService','_initUserListener','0\x200\x2017\x2016','stageInfo','setTimeout','_syncEditingCollabCursorService','_currentUsage','stringify','_removeClearOtherTimer','...','next','/universer-api/frontend/logs','children','_toggleOnline','column','DesktopCollaborationStatusDisplayController','ENSURE_SNAPSHOT_EXECUTION','isTransformMutationsWithChangesetSuccess','LOGIN_FAILED','ALREADY_EXISTS','exhaustSavingTask','addHandlerCallback','_hideTimer','_removeCollabCursors','addClipboardHook','ILogService','getSheetBySheetId','_checkAndWaitForCalculationPermission','enableFrontendLog','useCallback','_labelPosition','TOO_MANY_REQUESTS','_drawTextRange','USER_NOT_FOUND','jsx','_getAnchorBounding','unload','_registerRenderDependencies','fillText','unsubscribe','complete','isFormulaId','row','useObservable','getCurrentUnitForType','_startCalculationLimit','CollaborationStatus','getSheetId','currentColor','UniverIcon','size','subUnitId','getCellMatrix','source','_initResize','UnitStatus','isActive','_anchorDot','IMessageService','267848qhagHv','_initDependencies','toString','TEXT_RANGE_LAYER_INDEX','654951OnUocd','endRow','reconnect','createInstance','fillRule','PY_RUNTIME_SCRIPT_ERROR','startRow','1em','length','_maxFormulaLimit','onTransformChange$','from','startColumn','values','collab-text-anchor-','SetFormulaCalculationNotificationMutation','hide','DOC_RANGE_TYPE','stack','black','getUnhiddenWorksheets','_collaborationSessionService','IConfigService','collabCursorState$','UniverInstanceType','unitID','loadOfflineData','color','Workbook','555749uQfBmD','CLOSE_ROOM','_scene','_initStatusComponent','_univerInstanceService','VIEW_MAIN','_refreshCollabCursors','_refRangeService','_color','_handleHeartbeatEvent','INVITE_CODE_REQUIRED','_messageService'];_0x18b8=function(){return _0x1859ed;};return _0x18b8();}