@univerjs-pro/collaboration-client-ui 0.12.3-experimental.20251205-71d07c3 → 0.12.3-nightly.202512060617

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x30e513=_0x2f23;(function(_0x378eb8,_0x19d265){const _0x339175=_0x2f23,_0x3b3b29=_0x378eb8();while(!![]){try{const _0x341d08=-parseInt(_0x339175(0x3e5))/0x1+parseInt(_0x339175(0x2c4))/0x2+parseInt(_0x339175(0x290))/0x3+-parseInt(_0x339175(0x427))/0x4+-parseInt(_0x339175(0x3ca))/0x5*(-parseInt(_0x339175(0x434))/0x6)+parseInt(_0x339175(0x4a9))/0x7+-parseInt(_0x339175(0x475))/0x8;if(_0x341d08===_0x19d265)break;else _0x3b3b29['push'](_0x3b3b29['shift']());}catch(_0x43cca2){_0x3b3b29['push'](_0x3b3b29['shift']());}}}(_0x2ee5,0x73516));var Xe=Object[_0x30e513(0x200)],Ke=(_0x116332,_0x53c758,_0x160dcd)=>_0x53c758 in _0x116332?Xe(_0x116332,_0x53c758,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x160dcd}):_0x116332[_0x53c758]=_0x160dcd,_=(_0xa81caf,_0xce31e6,_0x4fb757)=>Ke(_0xa81caf,typeof _0xce31e6!=_0x30e513(0x296)?_0xce31e6+'':_0xce31e6,_0x4fb757);Object[_0x30e513(0x200)](exports,Symbol[_0x30e513(0x472)],{'value':_0x30e513(0x364)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0x322e2e,..._0x43c1b8}){const _0x2a2181=_0x30e513,{icon:_0x2fef2f,id:_0x23bc2c,className:_0x39e4a8,extend:_0xfe0b8f,..._0x254d9a}=_0x43c1b8,_0x158164=(_0x2a2181(0x24c)+_0x23bc2c+'\x20'+(_0x39e4a8||''))[_0x2a2181(0x274)](),_0x1d33a8=A[_0x2a2181(0x270)]('_'+Qe());return $e(_0x2fef2f,''+_0x23bc2c,{'defIds':_0x2fef2f[_0x2a2181(0x4ac)],'idSuffix':_0x1d33a8['current']},{'ref':_0x322e2e,'className':_0x158164,..._0x254d9a},_0xfe0b8f);}function $e(_0x2ddeed,_0x23694e,_0x357ed3,_0x1102bd,_0x34cf4c){const _0x180754=_0x30e513;return A[_0x180754(0x34d)](_0x2ddeed[_0x180754(0x4b8)],{'key':_0x23694e,...Je(_0x2ddeed,_0x357ed3,_0x34cf4c),..._0x1102bd},(Ze(_0x2ddeed,_0x357ed3)[_0x180754(0x25d)]||[])[_0x180754(0x4b3)]((_0xd26461,_0xdb4137)=>$e(_0xd26461,_0x23694e+'-'+_0x2ddeed[_0x180754(0x4b8)]+'-'+_0xdb4137,_0x357ed3,void 0x0,_0x34cf4c)));}function Je(_0x3de253,_0x323098,_0x59cc63){const _0x5545b3=_0x30e513,_0xb268c7={..._0x3de253[_0x5545b3(0x1f9)]};_0x59cc63!=null&&_0x59cc63['colorChannel1']&&_0xb268c7[_0x5545b3(0x31e)]==='colorChannel1'&&(_0xb268c7[_0x5545b3(0x31e)]=_0x59cc63[_0x5545b3(0x497)]),_0x3de253[_0x5545b3(0x4b8)]===_0x5545b3(0x413)&&_0xb268c7['id']&&(_0xb268c7['id']=_0xb268c7['id']+_0x323098[_0x5545b3(0x357)]),Object[_0x5545b3(0x4bb)](_0xb268c7)[_0x5545b3(0x25c)](([_0xaaf61e,_0x9c436d])=>{const _0x3cad7c=_0x5545b3;_0xaaf61e===_0x3cad7c(0x413)&&typeof _0x9c436d==_0x3cad7c(0x2bb)&&(_0xb268c7[_0xaaf61e]=_0x9c436d[_0x3cad7c(0x2ff)](/url\(#(.*)\)/,_0x3cad7c(0x360)+_0x323098[_0x3cad7c(0x357)]+')'));});const {defIds:_0x1a62ad}=_0x323098;return!_0x1a62ad||_0x1a62ad[_0x5545b3(0x457)]===0x0||(_0x3de253[_0x5545b3(0x4b8)]===_0x5545b3(0x29b)&&_0xb268c7[_0x5545b3(0x26e)]&&(_0xb268c7[_0x5545b3(0x26e)]=_0xb268c7[_0x5545b3(0x26e)]+_0x323098[_0x5545b3(0x357)]),Object[_0x5545b3(0x4bb)](_0xb268c7)[_0x5545b3(0x25c)](([_0x31174a,_0x1dcab0])=>{const _0x896c83=_0x5545b3;typeof _0x1dcab0=='string'&&(_0xb268c7[_0x31174a]=_0x1dcab0[_0x896c83(0x2ff)](/url\(#(.*)\)/,_0x896c83(0x360)+_0x323098[_0x896c83(0x357)]+')'));})),_0xb268c7;}function Ze(_0x3e7b7e,_0x370316){const _0x5b012c=_0x30e513;var _0x1aeb83;const {defIds:_0x3f048e}=_0x370316;return!_0x3f048e||_0x3f048e[_0x5b012c(0x457)]===0x0?_0x3e7b7e:_0x3e7b7e['tag']===_0x5b012c(0x2be)&&((_0x1aeb83=_0x3e7b7e[_0x5b012c(0x25d)])!=null&&_0x1aeb83[_0x5b012c(0x457)])?{..._0x3e7b7e,'children':_0x3e7b7e[_0x5b012c(0x25d)]['map'](_0x315b00=>typeof _0x315b00[_0x5b012c(0x1f9)]['id']==_0x5b012c(0x2bb)&&_0x3f048e&&_0x3f048e[_0x5b012c(0x215)](_0x315b00[_0x5b012c(0x1f9)]['id'])?{..._0x315b00,'attrs':{..._0x315b00[_0x5b012c(0x1f9)],'id':_0x315b00[_0x5b012c(0x1f9)]['id']+_0x370316[_0x5b012c(0x357)]}}:_0x315b00)}:_0x3e7b7e;}function Qe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}pe['displayName']=_0x30e513(0x3f0);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x30e513(0x226),'width':_0x30e513(0x219),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x30e513(0x44b)},'children':[{'tag':_0x30e513(0x203),'attrs':{'stroke':_0x30e513(0x232),'d':_0x30e513(0x272),'strokeLinecap':_0x30e513(0x486),'strokeLinejoin':_0x30e513(0x486),'strokeWidth':1.2}}]},{'tag':_0x30e513(0x2be),'attrs':{},'children':[{'tag':_0x30e513(0x412),'attrs':{'id':_0x30e513(0x25e)},'children':[{'tag':_0x30e513(0x203),'attrs':{'fill':_0x30e513(0x3bf),'d':_0x30e513(0x23c)}}]}]}],'defIds':[_0x30e513(0x25e)]},xe=A[_0x30e513(0x361)](function(_0x5903bc,_0x388927){const _0x3086ad=_0x30e513;return A[_0x3086ad(0x34d)](pe,Object[_0x3086ad(0x392)]({},_0x5903bc,{'id':_0x3086ad(0x231),'ref':_0x388927,'icon':et}));});xe[_0x30e513(0x421)]=_0x30e513(0x3e1);const tt={'tag':_0x30e513(0x3dc),'attrs':{'xmlns':_0x30e513(0x45f),'fill':'none','viewBox':_0x30e513(0x3f1),'width':_0x30e513(0x219),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x30e513(0x3b5)},'children':[{'tag':_0x30e513(0x203),'attrs':{'stroke':'currentColor','d':_0x30e513(0x470),'strokeLinecap':_0x30e513(0x486),'strokeLinejoin':_0x30e513(0x486),'strokeWidth':1.2}}]},{'tag':_0x30e513(0x2be),'attrs':{},'children':[{'tag':_0x30e513(0x412),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x30e513(0x203),'attrs':{'fill':_0x30e513(0x3bf),'d':_0x30e513(0x23c),'transform':'translate(.97)'}}]}]}],'defIds':[_0x30e513(0x46b)]},Be=A[_0x30e513(0x361)](function(_0x21f385,_0x350445){const _0x28b2c0=_0x30e513;return A['createElement'](pe,Object[_0x28b2c0(0x392)]({},_0x21f385,{'id':_0x28b2c0(0x31b),'ref':_0x350445,'icon':tt}));});Be[_0x30e513(0x421)]=_0x30e513(0x3d1);function st(_0x3c0fe4){const _0x58417e=_0x30e513;switch(_0x3c0fe4){case u[_0x58417e(0x35d)][_0x58417e(0x314)]:return _0x58417e(0x3ff);case u[_0x58417e(0x35d)][_0x58417e(0x2c6)]:return _0x58417e(0x3d9);case u[_0x58417e(0x35d)][_0x58417e(0x40e)]:return _0x58417e(0x21e);case u['CollaborationStatus'][_0x58417e(0x2ba)]:return _0x58417e(0x454);case u[_0x58417e(0x35d)][_0x58417e(0x35a)]:case u[_0x58417e(0x35d)][_0x58417e(0x3be)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x58417e(0x3df)]:case u['CollaborationStatus']['PENDING']:return'collabStatus.synced';}}function it(_0x466031){const _0x59459c=_0x30e513,{status$:_0x388e06}=_0x466031,_0x1bc5c7=O[_0x59459c(0x438)](_0x388e06,u[_0x59459c(0x35d)]['NOT_COLLAB']),_0x3ea22e=O['useDependency'](a[_0x59459c(0x317)]),_0x2f2328=O[_0x59459c(0x42d)](u[_0x59459c(0x2ef)]),_0x493102=_0x1bc5c7!==u[_0x59459c(0x35d)]['OFFLINE'],_0x45812d=_0x3ea22e['t'](st(_0x1bc5c7)),_0x4df677=_0x493102?M[_0x59459c(0x267)](Be,{}):M[_0x59459c(0x267)](xe,{}),_0x2e650b=A['useCallback'](()=>{_0x493102||_0x2f2328['reconnect']();},[_0x493102,_0x2f2328]);function _0x3ded6d(){const _0x37d800=_0x59459c;return M['jsxs'](_0x37d800(0x387),{'className':_0x37d800(0x276),'onClick':_0x2e650b,'children':[M['jsx'](_0x37d800(0x387),{'className':p[_0x37d800(0x33a)](_0x37d800(0x280),{'univer-text-green-500':_0x493102,'univer-text-red-500':!_0x493102}),'children':_0x4df677}),M[_0x37d800(0x267)](_0x37d800(0x387),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x45812d})]});}return _0x493102?_0x3ded6d():M[_0x59459c(0x267)](p[_0x59459c(0x291)],{'title':_0x3ea22e['t'](_0x59459c(0x309)),'children':_0x3ded6d()});}var nt=Object[_0x30e513(0x45b)],rt=(_0x42134e,_0x2013d7,_0x30b93a,_0x2b697e)=>{const _0x44c14e=_0x30e513;for(var _0x3c4627=_0x2b697e>0x1?void 0x0:_0x2b697e?nt(_0x2013d7,_0x30b93a):_0x2013d7,_0x43ce31=_0x42134e[_0x44c14e(0x457)]-0x1,_0x3039b2;_0x43ce31>=0x0;_0x43ce31--)(_0x3039b2=_0x42134e[_0x43ce31])&&(_0x3c4627=_0x3039b2(_0x3c4627)||_0x3c4627);return _0x3c4627;},K=(_0x439d02,_0x570a54)=>(_0x17f372,_0x25568a)=>_0x570a54(_0x17f372,_0x25568a,_0x439d02);exports[_0x30e513(0x34a)]=class extends a[_0x30e513(0x3c0)]{constructor(_0x484733,_0x1a8177,_0x54b88d,_0x1258c8){const _0x8a188=_0x30e513;super(),_(this,_0x8a188(0x3ae),new I[(_0x8a188(0x213))](u[_0x8a188(0x35d)][_0x8a188(0x2ba)])),(this[_0x8a188(0x4b1)]=_0x484733,this[_0x8a188(0x23e)]=_0x1a8177,this[_0x8a188(0x227)]=_0x54b88d,this[_0x8a188(0x260)]=_0x1258c8,this[_0x8a188(0x2db)](),this[_0x8a188(0x424)]());}['_initStatusListener'](){const _0x2cb367=_0x30e513;this[_0x2cb367(0x2eb)](this[_0x2cb367(0x4b1)][_0x2cb367(0x1f4)][_0x2cb367(0x485)](I[_0x2cb367(0x36e)](()=>{const _0x21dbe4=_0x2cb367,_0x5e84fb=this[_0x21dbe4(0x4b1)][_0x21dbe4(0x4ad)]();return _0x5e84fb?this[_0x21dbe4(0x227)][_0x21dbe4(0x27f)](_0x5e84fb['getUnitId']()):I['of'](null);}),I['switchMap'](_0x4673d8=>_0x4673d8?_0x4673d8[_0x2cb367(0x288)]:I['of'](u[_0x2cb367(0x35d)]['NOT_COLLAB'])))[_0x2cb367(0x376)](_0x2714d8=>{const _0x37adfb=_0x2cb367;this[_0x37adfb(0x3ae)][_0x37adfb(0x44a)](_0x2714d8);}));}[_0x30e513(0x2db)](){const _0x14485e=_0x30e513;this[_0x14485e(0x2eb)](this[_0x14485e(0x260)][_0x14485e(0x4bd)](O[_0x14485e(0x20d)]['HEADER_MENU'],()=>O[_0x14485e(0x2e8)](ot({'status$':this[_0x14485e(0x3ae)]['asObservable']()}),this['_injector'])));}},exports[_0x30e513(0x34a)]=rt([K(0x0,a[_0x30e513(0x202)]),K(0x1,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),K(0x2,a[_0x30e513(0x3f5)](u[_0x30e513(0x45d)])),K(0x3,O[_0x30e513(0x277)])],exports[_0x30e513(0x34a)]);function ot(_0x3010af){const {status$:_0x9db743}=_0x3010af;return function(){const _0x2d5429=_0x2f23;return M[_0x2d5429(0x267)](it,{'status$':_0x9db743});};}const Oe=a[_0x30e513(0x444)](_0x30e513(0x297));var at=Object['getOwnPropertyDescriptor'],ct=(_0x34d8d7,_0x1284a0,_0x53dce0,_0x269967)=>{const _0x457cf9=_0x30e513;for(var _0x385d72=_0x269967>0x1?void 0x0:_0x269967?at(_0x1284a0,_0x53dce0):_0x1284a0,_0x497ae4=_0x34d8d7[_0x457cf9(0x457)]-0x1,_0x4c683a;_0x497ae4>=0x0;_0x497ae4--)(_0x4c683a=_0x34d8d7[_0x497ae4])&&(_0x385d72=_0x4c683a(_0x385d72)||_0x385d72);return _0x385d72;},Y=(_0x4bff05,_0x25196f)=>(_0x38917d,_0x5340f7)=>_0x25196f(_0x38917d,_0x5340f7,_0x4bff05);exports['CollaborationDataLoaderController']=class extends a[_0x30e513(0x2a6)]{constructor(_0x5472fb,_0x6f7346,_0x3b6f44,_0x12f97e,_0x656788){const _0x456f1d=_0x30e513;super(),this[_0x456f1d(0x24a)]=_0x5472fb,this[_0x456f1d(0x479)]=_0x6f7346,this[_0x456f1d(0x289)]=_0x3b6f44,this[_0x456f1d(0x3f2)]=_0x12f97e,_0x656788?_0x656788==null||_0x656788[_0x456f1d(0x302)]()[_0x456f1d(0x343)](()=>this[_0x456f1d(0x38d)]()):(this[_0x456f1d(0x479)][_0x456f1d(0x2fe)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x30e513(0x38d)](){const _0x414aa4=_0x30e513,_0x500ca3=this[_0x414aa4(0x24a)]['getParam'](_0x414aa4(0x322)),_0x28a99f=this[_0x414aa4(0x24a)][_0x414aa4(0x482)](_0x414aa4(0x428)),_0x3260a5=this[_0x414aa4(0x24a)][_0x414aa4(0x482)](_0x414aa4(0x3a8));if(!_0x500ca3||!_0x28a99f){this['_logService'][_0x414aa4(0x2fe)](_0x414aa4(0x28c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x5f5151=await this[_0x414aa4(0x3f2)][_0x414aa4(0x347)](_0x500ca3,Number(_0x28a99f),_0x3260a5);_0x5f5151&&_0x5f5151 instanceof a[_0x414aa4(0x30d)]&&this['_setupSubUnitSync'](_0x5f5151);}async[_0x30e513(0x342)](_0x73a9c0){const _0x7ad512=_0x30e513;await this[_0x7ad512(0x266)](_0x73a9c0),_0x73a9c0['activeSheet$'][_0x7ad512(0x485)](I['takeUntil'](this[_0x7ad512(0x3db)]))[_0x7ad512(0x376)](_0x1fd81a=>{const _0x1a7bd3=_0x7ad512;_0x1fd81a&&this[_0x1a7bd3(0x34b)](_0x1fd81a);}),this['_urlService']['urlChange$'][_0x7ad512(0x485)](I['takeUntil'](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x73a9c0));}[_0x30e513(0x34b)](_0x2a2d2d,_0x3ad703=!0x1){const _0x4288cf=_0x30e513,_0x284876=this[_0x4288cf(0x24a)][_0x4288cf(0x482)]('subunit');_0x2a2d2d[_0x4288cf(0x483)]()!==_0x284876&&this[_0x4288cf(0x24a)]['setParam']('subunit',_0x2a2d2d['getSheetId'](),_0x3ad703);}async[_0x30e513(0x266)](_0x184ee6){const _0x3548a6=_0x30e513;var _0xfc0e2c;const _0x15630a=this[_0x3548a6(0x24a)][_0x3548a6(0x482)](_0x3548a6(0x3a8));if(!_0x15630a||!_0x184ee6[_0x3548a6(0x3fb)](_0x15630a)){const _0x30097d=_0x184ee6['getUnhiddenWorksheets']()[0x0],_0x3435f5=_0x184ee6[_0x3548a6(0x3fb)](_0x30097d);if(!_0x3435f5)return;this[_0x3548a6(0x34b)](_0x3435f5,!0x0),await this[_0x3548a6(0x289)][_0x3548a6(0x478)](v[_0x3548a6(0x235)]['id'],{'unitId':_0x184ee6['getUnitId'](),'subUnitId':_0x30097d});return;}((_0xfc0e2c=_0x184ee6['getActiveSheet']())==null?void 0x0:_0xfc0e2c[_0x3548a6(0x483)]())!==_0x15630a&&await this['_commandService']['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x184ee6['getUnitId'](),'subUnitId':_0x15630a});}},exports[_0x30e513(0x247)]=ct([Y(0x0,Oe),Y(0x1,a[_0x30e513(0x1f5)]),Y(0x2,a[_0x30e513(0x40a)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a['Optional'](qe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var lt=Object[_0x30e513(0x45b)],_t=(_0xe79763,_0x4979aa,_0x57f1c5,_0x39f1a4)=>{const _0x159d46=_0x30e513;for(var _0xbc668e=_0x39f1a4>0x1?void 0x0:_0x39f1a4?lt(_0x4979aa,_0x57f1c5):_0x4979aa,_0x1d6231=_0xe79763[_0x159d46(0x457)]-0x1,_0x433046;_0x1d6231>=0x0;_0x1d6231--)(_0x433046=_0xe79763[_0x1d6231])&&(_0xbc668e=_0x433046(_0xbc668e)||_0xbc668e);return _0xbc668e;},De=(_0x3c0614,_0x564f1c)=>(_0xa4fd70,_0x2f83b1)=>_0x564f1c(_0xa4fd70,_0x2f83b1,_0x3c0614);let me=class extends a['RxDisposable']{constructor(_0x32a58e,_0x14c254){const _0x54e019=_0x30e513;super(),this[_0x54e019(0x445)]=_0x32a58e,this[_0x54e019(0x273)]=_0x14c254,this['_init']();}[_0x30e513(0x38d)](){const _0x5450b8=_0x30e513,_0xc3c504=this;this[_0x5450b8(0x2eb)](this[_0x5450b8(0x445)]['addClipboardHook']({'onBeforePasteImage':async _0xb7e1fe=>{const _0x44c4f7=_0x5450b8,_0x407d15=await _0xc3c504[_0x44c4f7(0x273)][_0x44c4f7(0x24d)](_0xb7e1fe);return _0x407d15?{'source':_0x407d15['source'],'imageSourceType':_0x407d15[_0x44c4f7(0x2e9)]}:null;}}));}};me=_t([De(0x0,T[_0x30e513(0x441)]),De(0x1,ze[_0x30e513(0x38e)])],me);const Ne=[_0x30e513(0x3ec),_0x30e513(0x4b2),_0x30e513(0x353),'red.300',_0x30e513(0x41f),'yellow.400'];class Re extends a[_0x30e513(0x3c0)]{constructor(){const _0x3d5fc4=_0x30e513;super(...arguments),_(this,_0x3d5fc4(0x47e),new Map()),_(this,_0x3d5fc4(0x4a3),0x0);}[_0x30e513(0x253)](_0x551285){const _0xf65f39=_0x30e513;if(this[_0xf65f39(0x47e)][_0xf65f39(0x3a7)](_0x551285))return this['_assignedColors'][_0xf65f39(0x3a9)](_0x551285);const _0x3e7cb4=Ne[this[_0xf65f39(0x4a3)]];return this[_0xf65f39(0x4a3)]=(this[_0xf65f39(0x4a3)]+0x1)%Ne['length'],this[_0xf65f39(0x47e)][_0xf65f39(0x416)](_0x551285,_0x3e7cb4),_0x3e7cb4;}}function Fe(_0x22ae17){const _0x100c72=_0x30e513;let _0x5da3b2='';for(const _0x1c7e5c of _0x22ae17){const {startOffset:_0x5be639,endOffset:_0x26c17d,isActive:_0x223a8a,rangeType:_0xe585b0,segmentId:_0x591cd7,segmentPage:_0x238aa2}=_0x1c7e5c;_0x5da3b2[_0x100c72(0x457)]&&(_0x5da3b2+=','),_0x5da3b2+=_0x5be639+':'+_0x26c17d+':'+(_0x223a8a?'1':'0')+':'+_0xe585b0+':'+_0x591cd7+':'+_0x238aa2;}return _0x5da3b2;}function ht(_0xb140cc){const _0x410586=_0x30e513,_0x5daa69=_0xb140cc[_0x410586(0x39a)](','),_0x321022=[];for(const _0x310a0a of _0x5daa69){const [_0x5f5ca9,_0xcf4bbe,_0x5f147e,_0x593faf,_0x345307,_0x2d888b]=_0x310a0a[_0x410586(0x39a)](':');_0x321022[_0x410586(0x293)]({'startOffset':Number(_0x5f5ca9),'endOffset':Number(_0xcf4bbe),'collapsed':_0x5f5ca9===_0xcf4bbe,'isActive':_0x5f147e==='1','rangeType':_0x593faf===a[_0x410586(0x2e0)][_0x410586(0x423)]?a[_0x410586(0x2e0)][_0x410586(0x423)]:a[_0x410586(0x2e0)][_0x410586(0x2d2)],'segmentId':typeof _0x345307==_0x410586(0x2bb)?String(_0x345307):'','segmentPage':Number(_0x2d888b!=null?_0x2d888b:-0x1)});}return _0x321022[_0x410586(0x4b9)](_0x227ec3=>_0x227ec3[_0x410586(0x257)])||(_0x321022[0x0][_0x410586(0x257)]=!0x0),_0x321022;}class be extends a[_0x30e513(0x2a6)]{constructor(){const _0x31c26a=_0x30e513;super(...arguments),_(this,'_collabCursorState$',new I[(_0x31c26a(0x213))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x31c26a(0x41d)]());}[_0x30e513(0x395)](_0x4ccb0f){const {unitID:_0x43cb94,memberID:_0x5198bf,textRanges:_0x4a023c}=_0x4ccb0f,_0x4284e1=Fe(_0x4a023c);if(_0x4284e1==='')return;const _0x23e987={'unitID':_0x43cb94,'memberID':_0x5198bf,'selection':_0x4284e1};this['_collabCursorState$']['next'](_0x23e987);}}var ut=Object[_0x30e513(0x45b)],It=(_0x407ee9,_0x45ac2a,_0x27a106,_0x37bf3c)=>{const _0x365860=_0x30e513;for(var _0x491bdf=_0x37bf3c>0x1?void 0x0:_0x37bf3c?ut(_0x45ac2a,_0x27a106):_0x45ac2a,_0x4bbd78=_0x407ee9[_0x365860(0x457)]-0x1,_0x456eee;_0x4bbd78>=0x0;_0x4bbd78--)(_0x456eee=_0x407ee9[_0x4bbd78])&&(_0x491bdf=_0x456eee(_0x491bdf)||_0x491bdf);return _0x491bdf;},U=(_0x32d128,_0x50912e)=>(_0x15286f,_0x45772e)=>_0x50912e(_0x15286f,_0x45772e,_0x32d128);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x297808,_0x4c0cd9,_0x3750aa,_0x5c62ac,_0x195453,_0x2f0f07,_0x43b43b,_0x169d3d,_0x36bd02){const _0x25136d=_0x30e513;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x25136d(0x49d),new I[(_0x25136d(0x213))](new Map())),_(this,_0x25136d(0x26a),this[_0x25136d(0x49d)][_0x25136d(0x41d)]()),_(this,_0x25136d(0x3f6),new I[(_0x25136d(0x213))]([])),_(this,_0x25136d(0x3cc),this[_0x25136d(0x3f6)][_0x25136d(0x485)](I[_0x25136d(0x2a5)](St))),_(this,_0x25136d(0x404),a[_0x25136d(0x371)](_0x57fa4b=>{const _0x4c3e3f=_0x25136d,_0x3ba040={'eventID':g[_0x4c3e3f(0x2a1)][_0x4c3e3f(0x304)],'data':{'unitID':this['unitID'],'memberID':this[_0x4c3e3f(0x3b0)][_0x4c3e3f(0x23a)](),'selection':Fe(_0x57fa4b)}};this[_0x4c3e3f(0x3b0)][_0x4c3e3f(0x38f)](_0x3ba040,this[_0x4c3e3f(0x3ea)]);},dt)),(this[_0x25136d(0x3ea)]=_0x297808,this[_0x25136d(0x3b0)]=_0x4c0cd9,this['_injector']=_0x3750aa,this[_0x25136d(0x481)]=_0x5c62ac,this[_0x25136d(0x3b2)]=_0x195453,this[_0x25136d(0x25f)]=_0x2f0f07,this[_0x25136d(0x3fc)]=_0x43b43b,this[_0x25136d(0x4b1)]=_0x169d3d,this[_0x25136d(0x289)]=_0x36bd02);}get[_0x30e513(0x2bc)](){const _0x31b90c=_0x30e513;return this[_0x31b90c(0x49d)]['getValue']();}get[_0x30e513(0x3d5)](){const _0x3657a4=_0x30e513;return this[_0x3657a4(0x3f6)][_0x3657a4(0x237)]();}[_0x30e513(0x3d7)](){const _0x19f5c1=_0x30e513;super[_0x19f5c1(0x3d7)](),this[_0x19f5c1(0x49d)][_0x19f5c1(0x44a)](new Map()),this['_cursorInfo$'][_0x19f5c1(0x47b)](),this[_0x19f5c1(0x3f6)][_0x19f5c1(0x44a)]([]),this[_0x19f5c1(0x3f6)]['complete']();}[_0x30e513(0x220)](){const _0x59fe30=_0x30e513;this[_0x59fe30(0x38d)]||(this[_0x59fe30(0x38d)]=!0x0,this['_session'][_0x59fe30(0x43e)][_0x59fe30(0x485)](I[_0x59fe30(0x367)](this[_0x59fe30(0x3db)]))['subscribe'](_0x12c5a8=>{const _0x123f57=_0x59fe30;_0x12c5a8===u[_0x123f57(0x37a)][_0x123f57(0x2f4)]?this[_0x123f57(0x381)]():this['_toggleOffline']();}),this['_session']['event$'][_0x59fe30(0x485)](I[_0x59fe30(0x367)](this[_0x59fe30(0x3db)]))['subscribe'](_0xbbcd51=>{const _0x12d60d=_0x59fe30,_0x385920=_0xbbcd51['eventID'];_0x385920===g[_0x12d60d(0x2a1)]['UPDATE_CURSOR']&&this[_0x12d60d(0x228)](_0xbbcd51),_0x385920===g['CollaborationEvent'][_0x12d60d(0x366)]&&this[_0x12d60d(0x224)](_0xbbcd51);}),this[_0x59fe30(0x2eb)](this['_commandService'][_0x59fe30(0x2e3)](_0x4214ab=>{const _0x355700=_0x59fe30,_0x4bd12f=_0x4214ab[_0x355700(0x450)];_0x4bd12f!=null&&this[_0x355700(0x2ca)]&&_0x4214ab['id']===V[_0x355700(0x31a)]['id']&&_0x4bd12f['unitId']===this[_0x355700(0x3ea)]&&_0x4bd12f[_0x355700(0x207)]===!0x1&&_0x4bd12f[_0x355700(0x2cf)][_0x355700(0x457)]>0x0&&this[_0x355700(0x404)](_0x4bd12f[_0x355700(0x2cf)]);})),this[_0x59fe30(0x25f)][_0x59fe30(0x48b)]['pipe'](I[_0x59fe30(0x367)](this[_0x59fe30(0x3db)]))['subscribe'](_0x474c97=>{const _0x354415=_0x59fe30;if((_0x474c97==null?void 0x0:_0x474c97[_0x354415(0x3ea)])!==this['unitID'])return;const _0x3c681a={'eventID':g[_0x354415(0x2a1)][_0x354415(0x304)],'data':_0x474c97};this[_0x354415(0x228)](_0x3c681a);}),this['disposeWithMe'](this['_commandService'][_0x59fe30(0x2e3)](_0xe2be52=>{const _0xb6ad99=_0x59fe30;if(_0xe2be52['params']==null)return;const _0x5d706c=_0xe2be52[_0xb6ad99(0x450)];if(_0xe2be52['id']!==V['RichTextEditingMutation']['id']||_0x5d706c['unitId']!==this[_0xb6ad99(0x3ea)])return;const _0x617de={'id':'doc.mutation.rich-text-editing','params':_0x5d706c},_0x2ccc15=this['cursorInfo'];for(const [_0x5096a5,_0x547f5e]of _0x2ccc15){const _0x456276={'id':_0xb6ad99(0x30c),'params':{'unitId':this[_0xb6ad99(0x3ea)],'actions':null,'textRanges':_0x547f5e[_0xb6ad99(0x2cf)]}},_0x3c286e=this[_0xb6ad99(0x3fc)][_0xb6ad99(0x429)](_0x617de,_0x456276,!0x1);if(g[_0xb6ad99(0x365)](_0x3c286e))throw _0x3c286e[_0xb6ad99(0x244)];_0x2ccc15[_0xb6ad99(0x416)](_0x5096a5,{..._0x547f5e,'ranges':_0x3c286e[_0xb6ad99(0x336)][_0xb6ad99(0x450)][_0xb6ad99(0x33f)]});}queueMicrotask(()=>{const _0x4b848c=_0xb6ad99;this[_0x4b848c(0x49d)]['next'](_0x2ccc15);});})));}[_0x30e513(0x228)](_0x528e99){const _0xb64db8=_0x30e513;var _0x2dad40,_0x159271;const {memberID:_0x30abec,selection:_0x52e635}=_0x528e99['data'],_0x15ae37=ht(_0x52e635),_0x380e71=(_0x159271=(_0x2dad40=this[_0xb64db8(0x3b2)]['getMember'](this[_0xb64db8(0x3ea)],_0x30abec))==null?void 0x0:_0x2dad40[_0xb64db8(0x4a4)])!=null?_0x159271:_0xb64db8(0x3a1),_0x7b86b={'color':this[_0xb64db8(0x481)][_0xb64db8(0x253)](_0x30abec),'name':_0x380e71,'ranges':_0x15ae37},_0x45cf99=this[_0xb64db8(0x2bc)];_0x45cf99[_0xb64db8(0x416)](_0x30abec,_0x7b86b),this[_0xb64db8(0x49d)][_0xb64db8(0x44a)](_0x45cf99);}[_0x30e513(0x224)](_0x144f7d){const _0x1281e4=_0x30e513,{memberID:_0x5f2cb8}=_0x144f7d[_0x1281e4(0x430)],_0x25afa5=this[_0x1281e4(0x2bc)];_0x25afa5[_0x1281e4(0x216)](_0x5f2cb8),this[_0x1281e4(0x49d)][_0x1281e4(0x44a)](_0x25afa5);}['_toggleOnline'](){const _0x5bbbc7=_0x30e513;var _0x440d65;if(this[_0x5bbbc7(0x2ca)]=!0x0,((_0x440d65=this[_0x5bbbc7(0x4b1)][_0x5bbbc7(0x4ad)]())==null?void 0x0:_0x440d65[_0x5bbbc7(0x241)]())!==this['unitID'])return;const _0x54405b=this[_0x5bbbc7(0x23e)]['get'](V[_0x5bbbc7(0x1fb)])[_0x5bbbc7(0x383)]();Array[_0x5bbbc7(0x212)](_0x54405b)&&_0x54405b['length']>0x0&&this[_0x5bbbc7(0x404)](_0x54405b);}['_toggleOffline'](){const _0x17e3c6=_0x30e513;this[_0x17e3c6(0x2ca)]=!0x1;}};ve=It([U(0x2,a[_0x30e513(0x3f5)](a['Injector'])),U(0x3,a[_0x30e513(0x3f5)](Re)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a[_0x30e513(0x3f5)](be)),U(0x6,g[_0x30e513(0x252)]),U(0x7,a['IUniverInstanceService']),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x30e513(0x45b)],mt=(_0x10ccc6,_0x3d1383,_0x328885,_0x4c391a)=>{const _0x48d655=_0x30e513;for(var _0x1ee057=_0x4c391a>0x1?void 0x0:_0x4c391a?ft(_0x3d1383,_0x328885):_0x3d1383,_0x52fa08=_0x10ccc6[_0x48d655(0x457)]-0x1,_0x7059c8;_0x52fa08>=0x0;_0x52fa08--)(_0x7059c8=_0x10ccc6[_0x52fa08])&&(_0x1ee057=_0x7059c8(_0x1ee057)||_0x1ee057);return _0x1ee057;},w=(_0x1b777e,_0x401455)=>(_0x1e605d,_0x54f6e5)=>_0x401455(_0x1e605d,_0x54f6e5,_0x1b777e);const vt=0x12c,gt=0x64,Et=()=>{let _0x5554b6=[],_0x49e60f=!0x1;return _0xbe0ce3=>{const _0x19574d=_0x2f23;_0x5554b6[_0x19574d(0x293)](_0xbe0ce3),_0x49e60f||(_0x49e60f=!0x0,setTimeout(()=>{_0x5554b6['forEach'](_0x7f69b4=>_0x7f69b4()),_0x5554b6=[],_0x49e60f=!0x1;}));};};let ge=class extends a[_0x30e513(0x2a6)]{constructor(_0x34e91d,_0x639360,_0x146645,_0x1beacc,_0x3694ca,_0x430aa9,_0x23b5e3,_0x215980){const _0x516bb5=_0x30e513;super(),_(this,_0x516bb5(0x2ca),!0x1),_(this,_0x516bb5(0x38d),!0x1),_(this,_0x516bb5(0x49d),new I[(_0x516bb5(0x213))](new Map())),_(this,_0x516bb5(0x26a),this['_cursorInfo$'][_0x516bb5(0x41d)]()),_(this,_0x516bb5(0x3f6),new I[(_0x516bb5(0x213))]([])),_(this,'roomMembers$',this[_0x516bb5(0x3f6)][_0x516bb5(0x485)](I[_0x516bb5(0x2a5)](vt))),_(this,_0x516bb5(0x404),a['debounce']((_0x4560ef,_0x1197fe)=>{const _0x1abf99=_0x516bb5,_0x164ba1={'eventID':g[_0x1abf99(0x2a1)][_0x1abf99(0x304)],'data':{'unitID':this['unitID'],'memberID':this[_0x1abf99(0x3b0)]['getMemberID'](),'selection':B[_0x1abf99(0x295)](_0x4560ef,_0x1197fe[_0x1abf99(0x471)])}};this['_session'][_0x1abf99(0x38f)](_0x164ba1,this[_0x1abf99(0x3ea)]);},gt)),(this['unitID']=_0x34e91d,this[_0x516bb5(0x3b0)]=_0x639360,this['_injector']=_0x146645,this[_0x516bb5(0x481)]=_0x1beacc,this[_0x516bb5(0x3b2)]=_0x3694ca,this[_0x516bb5(0x4b1)]=_0x430aa9,this['_commandService']=_0x23b5e3,this[_0x516bb5(0x2d9)]=_0x215980);}get[_0x30e513(0x2bc)](){const _0x25c629=_0x30e513;return this[_0x25c629(0x49d)]['getValue']();}get[_0x30e513(0x3d5)](){const _0xf17936=_0x30e513;return this[_0xf17936(0x3f6)][_0xf17936(0x237)]();}['dispose'](){const _0x18ff7d=_0x30e513;super[_0x18ff7d(0x3d7)](),this[_0x18ff7d(0x49d)][_0x18ff7d(0x44a)](new Map()),this['_cursorInfo$'][_0x18ff7d(0x47b)](),this[_0x18ff7d(0x3f6)][_0x18ff7d(0x44a)]([]),this[_0x18ff7d(0x3f6)][_0x18ff7d(0x47b)]();}[_0x30e513(0x220)](){const _0x4cd578=_0x30e513;this[_0x4cd578(0x38d)]||(this[_0x4cd578(0x38d)]=!0x0,this['_session']['sessionStatus$'][_0x4cd578(0x485)](I[_0x4cd578(0x367)](this[_0x4cd578(0x3db)]))[_0x4cd578(0x376)](_0x5c0164=>{const _0x1c4e48=_0x4cd578;_0x5c0164===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x1c4e48(0x379)]();}),this[_0x4cd578(0x3b0)][_0x4cd578(0x3ef)][_0x4cd578(0x485)](I[_0x4cd578(0x367)](this[_0x4cd578(0x3db)]))['subscribe'](_0x3b182b=>{const _0x4291f1=_0x4cd578,_0x356a6d=_0x3b182b[_0x4291f1(0x46c)];_0x356a6d===g[_0x4291f1(0x2a1)][_0x4291f1(0x304)]&&this[_0x4291f1(0x228)](_0x3b182b),_0x356a6d===g['CollaborationEvent'][_0x4291f1(0x366)]&&this[_0x4291f1(0x224)](_0x3b182b);}),this[_0x4cd578(0x2d4)](),this[_0x4cd578(0x2eb)](this['_commandService'][_0x4cd578(0x2e3)](_0x221379=>{const _0x425d1f=_0x4cd578;if(this[_0x425d1f(0x2ca)]&&_0x221379['id']===v[_0x425d1f(0x467)]['id']&&_0x221379[_0x425d1f(0x450)][_0x425d1f(0x4a1)]===this[_0x425d1f(0x3ea)]){const _0x3131dc=_0x221379[_0x425d1f(0x450)];this[_0x425d1f(0x404)](_0x3131dc[_0x425d1f(0x47c)],_0x3131dc[_0x425d1f(0x49c)][0x0]);}})));}[_0x30e513(0x228)](_0x4baa41){const _0x308bba=_0x30e513;var _0x52866d,_0x558d63;const {memberID:_0x35f5f2,selection:_0x16e2f0}=_0x4baa41[_0x308bba(0x430)],{sheetName:_0x21837a,range:_0x2f567f}=B[_0x308bba(0x24b)](_0x16e2f0),_0x1d3131={'name':(_0x558d63=(_0x52866d=this[_0x308bba(0x3b2)]['getMember'](this[_0x308bba(0x3ea)],_0x35f5f2))==null?void 0x0:_0x52866d['name'])!=null?_0x558d63:_0x308bba(0x3a1),'range':this[_0x308bba(0x447)](_0x21837a,_0x2f567f),'sheetID':_0x21837a,'color':this[_0x308bba(0x481)][_0x308bba(0x253)](_0x35f5f2),'selection':_0x16e2f0},_0x35410a=this['cursorInfo'];_0x35410a['set'](_0x35f5f2,_0x1d3131),this[_0x308bba(0x49d)][_0x308bba(0x44a)](_0x35410a);}[_0x30e513(0x224)](_0xa207cb){const _0x31064e=_0x30e513,{memberID:_0x441f31}=_0xa207cb[_0x31064e(0x430)],_0x2e053f=this[_0x31064e(0x2bc)];_0x2e053f[_0x31064e(0x216)](_0x441f31),this[_0x31064e(0x49d)][_0x31064e(0x44a)](_0x2e053f);}[_0x30e513(0x447)](_0x25861e,_0x4e4ee6){const _0x5471e8=_0x30e513;var _0x5262dd,_0x17c14a;const _0x2a60fd=(_0x17c14a=(_0x5262dd=this[_0x5471e8(0x4b1)][_0x5471e8(0x3e7)](this[_0x5471e8(0x3ea)]))==null?void 0x0:_0x5262dd[_0x5471e8(0x3fb)](_0x25861e))==null?void 0x0:_0x17c14a['getMergeData']();return(_0x2a60fd==null?void 0x0:_0x2a60fd[_0x5471e8(0x1fe)](_0x3fdedd=>a[_0x5471e8(0x346)][_0x5471e8(0x3d2)](_0x3fdedd,_0x4e4ee6)))||_0x4e4ee6;}['_onRefRangeChange'](){const _0x1a9e66=_0x30e513,_0x3f926a=new a[(_0x1a9e66(0x422))](),_0x4a076a=Et(),_0x438a02=()=>{const _0x49b219=_0x1a9e66;_0x3f926a[_0x49b219(0x3d7)]();const _0x49042c=(_0x4325d2,_0x5bce13,_0xe322ef,_0xf084ef)=>{const _0x66aea4=_0x49b219;let _0x2801fb=[];switch(_0x4325d2['id']){case v[_0x66aea4(0x29e)]['DeleteRangeMoveLeftCommandId']:{_0x2801fb=v[_0x66aea4(0x2f3)](_0x4325d2,_0xf084ef);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x2801fb=v[_0x66aea4(0x453)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)]['InsertColCommandId']:{_0x2801fb=v['handleInsertCol'](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x36b)]:{_0x2801fb=v[_0x66aea4(0x26c)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x26f)]:{_0x2801fb=v[_0x66aea4(0x415)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)]['InsertRowCommandId']:{_0x2801fb=v['handleInsertRow'](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x356)]:{_0x2801fb=v[_0x66aea4(0x3bb)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x332)]:{_0x2801fb=v[_0x66aea4(0x41c)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x249)]:{_0x2801fb=v[_0x66aea4(0x28f)](_0x4325d2,_0xf084ef);break;}}const _0x269319=v[_0x66aea4(0x39d)](_0x2801fb,_0xf084ef),_0x58541c=this[_0x66aea4(0x2bc)][_0x66aea4(0x3a9)](_0x5bce13);if(_0x58541c&&_0x269319){const _0x612c7a={..._0x58541c,'range':_0x269319};this[_0x66aea4(0x2bc)]['set'](_0x5bce13,_0x612c7a),_0x4a076a(()=>{const _0x5af5d2=_0x66aea4,_0x4e43b7=this['_refRangeService'][_0x5af5d2(0x316)](_0x269319,_0x1975a1=>(_0x4e43b7[_0x5af5d2(0x3d7)](),_0x49042c(_0x1975a1,_0x5bce13,_0xe322ef,_0x269319)));_0x3f926a['add'](_0x4e43b7);});}return{'redos':[],'undos':[]};};this[_0x49b219(0x2bc)][_0x49b219(0x25c)]((_0x34d548,_0x2b197d)=>{const _0x366b50=_0x49b219,{range:_0x3d9e4f,sheetID:_0x44a241}=_0x34d548,_0x27d27d=this[_0x366b50(0x2d9)][_0x366b50(0x316)](_0x3d9e4f,_0x408571=>(_0x27d27d[_0x366b50(0x3d7)](),_0x49042c(_0x408571,_0x2b197d,_0x44a241,_0x3d9e4f)));_0x3f926a[_0x366b50(0x2e4)](_0x27d27d);});};this[_0x1a9e66(0x2eb)](a[_0x1a9e66(0x3e2)](this[_0x1a9e66(0x49d)][_0x1a9e66(0x376)](()=>{_0x438a02();})));}[_0x30e513(0x381)](){const _0x24d3ec=_0x30e513;var _0x2921cb,_0xcb693b;if(this[_0x24d3ec(0x2ca)]=!0x0,((_0x2921cb=this[_0x24d3ec(0x4b1)][_0x24d3ec(0x4ad)]())==null?void 0x0:_0x2921cb[_0x24d3ec(0x241)]())!==this[_0x24d3ec(0x3ea)])return;const _0x2b4624=(_0xcb693b=this[_0x24d3ec(0x23e)][_0x24d3ec(0x3a9)](v[_0x24d3ec(0x41e)])[_0x24d3ec(0x3d3)]())==null?void 0x0:_0xcb693b[0x0],_0x373c6c=this[_0x24d3ec(0x4b1)][_0x24d3ec(0x43c)](a[_0x24d3ec(0x2c1)][_0x24d3ec(0x230)])[_0x24d3ec(0x391)]();_0x2b4624&&_0x373c6c&&this[_0x24d3ec(0x404)](_0x373c6c[_0x24d3ec(0x483)](),_0x2b4624);}[_0x30e513(0x379)](){const _0x402249=_0x30e513;this[_0x402249(0x2ca)]=!0x1;}};ge=mt([w(0x2,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),w(0x3,a[_0x30e513(0x3f5)](Re)),w(0x4,a['Inject'](u[_0x30e513(0x2c5)])),w(0x5,a[_0x30e513(0x202)]),w(0x6,a['ICommandService']),w(0x7,a[_0x30e513(0x3f5)](v[_0x30e513(0x37e)]))],ge);var Ct=Object[_0x30e513(0x45b)],Tt=(_0x9d6036,_0xf54fbe,_0x4f9396,_0x39ff8e)=>{for(var _0x5ecdc4=_0x39ff8e>0x1?void 0x0:_0x39ff8e?Ct(_0xf54fbe,_0x4f9396):_0xf54fbe,_0x217101=_0x9d6036['length']-0x1,_0x21d2b1;_0x217101>=0x0;_0x217101--)(_0x21d2b1=_0x9d6036[_0x217101])&&(_0x5ecdc4=_0x21d2b1(_0x5ecdc4)||_0x5ecdc4);return _0x5ecdc4;},ce=(_0x49834d,_0x459e05)=>(_0x3e75c1,_0x445558)=>_0x459e05(_0x3e75c1,_0x445558,_0x49834d);let F=class extends a['RxDisposable']{constructor(_0x5dfab4,_0x2dd410,_0x5ae4a8){const _0x36d733=_0x30e513;super(),_(this,_0x36d733(0x218),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x36d733(0x4b1)]=_0x5dfab4,this[_0x36d733(0x23e)]=_0x2dd410,this[_0x36d733(0x2b3)]=_0x5ae4a8,this[_0x36d733(0x38d)]());}[_0x30e513(0x3d7)](){const _0x576d70=_0x30e513;super[_0x576d70(0x3d7)](),this[_0x576d70(0x4a6)][_0x576d70(0x47b)](),this[_0x576d70(0x218)][_0x576d70(0x25c)](_0x4f3ed7=>_0x4f3ed7[_0x576d70(0x3d7)]());}['getCollabCursors$'](_0xe0d032){const _0x518d5b=_0x30e513;return this[_0x518d5b(0x218)][_0x518d5b(0x3a7)](_0xe0d032)?this['_entities']['get'](_0xe0d032)[_0x518d5b(0x26a)]:this[_0x518d5b(0x4a6)][_0x518d5b(0x485)](I[_0x518d5b(0x458)](_0x528f50=>_0x528f50['unitID']===_0xe0d032),I['switchMap'](_0x54abac=>_0x54abac[_0x518d5b(0x26a)]));}[_0x30e513(0x38d)](){const _0x20e02d=_0x30e513;this[_0x20e02d(0x4b1)][_0x20e02d(0x46e)](a[_0x20e02d(0x2c1)][_0x20e02d(0x230)])[_0x20e02d(0x485)](I[_0x20e02d(0x367)](this[_0x20e02d(0x3db)]))['subscribe'](async _0x256388=>{const _0x416d97=_0x20e02d,_0xfea49f=_0x256388[_0x416d97(0x241)](),_0x38fbc9=await this[_0x416d97(0x340)](_0xfea49f);this[_0x416d97(0x4a6)][_0x416d97(0x44a)](_0x38fbc9),this['_entities'][_0x416d97(0x416)](_0xfea49f,_0x38fbc9);}),this[_0x20e02d(0x4b1)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x20e02d(0x4ae)])['pipe'](I[_0x20e02d(0x367)](this['dispose$']))[_0x20e02d(0x485)](I[_0x20e02d(0x458)](_0x1d4ea6=>!_0x1d4ea6['getUnitId']()[_0x20e02d(0x217)]('__')))[_0x20e02d(0x376)](async _0x7a7d4d=>{const _0x3cfdad=_0x20e02d,_0x2173d2=_0x7a7d4d[_0x3cfdad(0x241)](),_0x4b3d46=await this['_startDocCollabCursor'](_0x2173d2);this[_0x3cfdad(0x4a6)][_0x3cfdad(0x44a)](_0x4b3d46),this[_0x3cfdad(0x218)]['set'](_0x2173d2,_0x4b3d46);}),I[_0x20e02d(0x29c)](this[_0x20e02d(0x4b1)][_0x20e02d(0x238)](a[_0x20e02d(0x2c1)][_0x20e02d(0x4ae)]),this[_0x20e02d(0x4b1)][_0x20e02d(0x238)](a[_0x20e02d(0x2c1)]['UNIVER_SHEET']))[_0x20e02d(0x485)](I['takeUntil'](this['dispose$']))[_0x20e02d(0x376)](_0x561e66=>{const _0xf2c118=_0x20e02d,_0x2ad929=_0x561e66['getUnitId'](),_0x421dd3=this[_0xf2c118(0x218)]['get'](_0x2ad929);_0x421dd3&&(_0x421dd3['dispose'](),this[_0xf2c118(0x218)][_0xf2c118(0x216)](_0x2ad929));});}async[_0x30e513(0x340)](_0x3cdac5){const _0x50cc69=_0x30e513,_0x1c0beb=await this[_0x50cc69(0x2b3)][_0x50cc69(0x4b4)](_0x3cdac5),_0x565705=this[_0x50cc69(0x23e)][_0x50cc69(0x480)](ge,_0x3cdac5,_0x1c0beb);return _0x565705[_0x50cc69(0x220)](),_0x565705;}async[_0x30e513(0x2f8)](_0x8d3d35){const _0x47029a=_0x30e513,_0x1cfdbf=await this['_collabSessionService'][_0x47029a(0x4b4)](_0x8d3d35),_0x26158d=this['_injector']['createInstance'](ve,_0x8d3d35,_0x1cfdbf);return _0x26158d[_0x47029a(0x220)](),_0x26158d;}};F=Tt([ce(0x0,a[_0x30e513(0x202)]),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a[_0x30e513(0x3f5)](u[_0x30e513(0x2ef)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x522bfd,_0x20785a){const _0x629ad0=_0x30e513;let {radius:_0xae0819,width:_0x546a6f,height:_0x36c232}=_0x20785a;_0xae0819=_0xae0819!=null?_0xae0819:0x0,_0x546a6f=_0x546a6f!=null?_0x546a6f:0x1e,_0x36c232=_0x36c232!=null?_0x36c232:0x1e;let _0x3c4314=0x0,_0x2dcf14=0x0,_0x28471a=0x0;_0x3c4314=_0x2dcf14=_0x28471a=Math[_0x629ad0(0x34e)](_0xae0819,_0x546a6f/0x2,_0x36c232/0x2),_0x522bfd[_0x629ad0(0x2f6)](),_0x522bfd[_0x629ad0(0x2f2)](_0x3c4314,0x0),_0x522bfd['lineTo'](_0x546a6f-_0x2dcf14,0x0),_0x522bfd[_0x629ad0(0x464)](_0x546a6f-_0x2dcf14,_0x2dcf14,_0x2dcf14,Math['PI']*0x3/0x2,0x0,!0x1),_0x522bfd[_0x629ad0(0x460)](_0x546a6f,_0x36c232-_0x28471a),_0x522bfd[_0x629ad0(0x464)](_0x546a6f-_0x28471a,_0x36c232-_0x28471a,_0x28471a,0x0,Math['PI']/0x2,!0x1),_0x522bfd[_0x629ad0(0x460)](0x0,_0x36c232),_0x522bfd['lineTo'](0x0,_0x3c4314),_0x522bfd[_0x629ad0(0x464)](_0x3c4314,_0x3c4314,_0x3c4314,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x522bfd[_0x629ad0(0x477)](),_0x20785a[_0x629ad0(0x31e)]&&(_0x522bfd[_0x629ad0(0x2e6)](),_0x522bfd[_0x629ad0(0x1f6)]=_0x20785a[_0x629ad0(0x31e)],_0x20785a['fillRule']===_0x629ad0(0x398)?_0x522bfd[_0x629ad0(0x31e)](_0x629ad0(0x398)):_0x522bfd[_0x629ad0(0x31e)](),_0x522bfd[_0x629ad0(0x476)]());}class re extends C[_0x30e513(0x31d)]{constructor(_0x32a8a4,_0x34755d){const _0x1ac9f6=_0x30e513;super(_0x32a8a4,_0x34755d),_(this,'color'),_(this,'text'),(this[_0x1ac9f6(0x39c)]=_0x34755d==null?void 0x0:_0x34755d[_0x1ac9f6(0x39c)],this['text']=_0x34755d==null?void 0x0:_0x34755d[_0x1ac9f6(0x250)]);}static[_0x30e513(0x452)](_0x5c764e,_0x522123){const _0x47749f=_0x30e513,{text:_0x5d716c,color:_0x203e6a}=_0x522123;_0x5c764e['save'](),_0x5c764e[_0x47749f(0x419)]=_0x47749f(0x3c3);const _0x52e994=_0x5c764e[_0x47749f(0x390)](_0x5d716c)[_0x47749f(0x24e)],_0x2e949d=Math[_0x47749f(0x34e)](_0x52e994+0x2*le,Ue);Ot(_0x5c764e,{'height':X,'radius':0x4,'width':_0x2e949d,'fill':_0x203e6a}),_0x5c764e[_0x47749f(0x1f6)]=_0x47749f(0x40c);const _0x300fc6=le,_0x2582be=X-pt,_0x2e336b=Ue-0x2*le;if(_0x52e994>_0x2e336b){let _0x106982='',_0x459977=0x0;for(const _0x989aa of _0x5d716c){const _0x2c3a84=_0x5c764e[_0x47749f(0x390)](_0x989aa)[_0x47749f(0x24e)];if(_0x459977+_0x2c3a84<=_0x2e336b-_0x5c764e[_0x47749f(0x390)](_0x47749f(0x2d8))[_0x47749f(0x24e)])_0x106982+=_0x989aa,_0x459977+=_0x2c3a84;else{_0x106982+='...';break;}}_0x5c764e['fillText'](_0x106982,_0x300fc6,_0x2582be);}else _0x5c764e[_0x47749f(0x370)](_0x5d716c,_0x300fc6,_0x2582be);_0x5c764e['restore']();}[_0x30e513(0x362)](_0x1be85e){re['drawWith'](_0x1be85e,this);}}const _e='collab-text-anchor-',Rt=_0x30e513(0x490),bt=_0x30e513(0x2b5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x30e513(0x373);class Le{constructor(_0x27bb59,_0x388cf1,_0x4c4552,_0x5d6671){const _0x25728e=_0x30e513;_(this,_0x25728e(0x338),[]),_(this,_0x25728e(0x414),null),_(this,'_textBubble',null),_(this,_0x25728e(0x3aa),null),_(this,_0x25728e(0x30b),null),_(this,'_eventUnsubscribe',null),(this[_0x25728e(0x426)]=_0x27bb59,this['_scene']=_0x388cf1,this[_0x25728e(0x3b1)]=_0x4c4552,this[_0x25728e(0x2b6)]=_0x5d6671,this['_render']());}set['_hover'](_0x113107){const _0x5d495d=_0x30e513;_0x113107?(this[_0x5d495d(0x3aa)]&&this[_0x5d495d(0x3aa)][_0x5d495d(0x3ac)](),this[_0x5d495d(0x233)]&&this['_textBubble'][_0x5d495d(0x258)]()):(this[_0x5d495d(0x3aa)]&&this[_0x5d495d(0x3aa)][_0x5d495d(0x258)](),this[_0x5d495d(0x233)]&&this[_0x5d495d(0x233)]['hide']());}[_0x30e513(0x3d7)](){const _0x29535f=_0x30e513;for(const _0x52601c of this[_0x29535f(0x338)])_0x52601c['dispose']();this['_textBubble']&&this[_0x29535f(0x233)]['dispose'](),this[_0x29535f(0x3aa)]&&this['_anchorDot']['dispose'](),this[_0x29535f(0x414)]&&this[_0x29535f(0x414)]['dispose'](),this[_0x29535f(0x418)]&&this[_0x29535f(0x418)]();}[_0x30e513(0x2b7)](){const _0xdc758a=_0x30e513;var _0x464f0d;const {_docSkeleton:_0x7ee6bb,_document:_0xb7b0dc}=this,{color:_0x48c635,name:_0x7c7b9,ranges:_0x4d1880}=this[_0xdc758a(0x426)],_0x48f213=_0xb7b0dc['getOffsetConfig'](),{docsLeft:_0x395d39,docsTop:_0x31657a}=_0x48f213,_0x46025e=new T[(_0xdc758a(0x22d))](_0x48f213,_0x7ee6bb);for(const {startOffset:_0x1d9e2d,endOffset:_0x5dad36,rangeType:_0x584f0d,segmentId:_0x1e6af0,segmentPage:_0x3c114b,collapsed:_0x392d3a,isActive:_0x2ea1be}of _0x4d1880){const _0x531788=_0x7ee6bb['findNodePositionByCharIndex'](_0x1d9e2d,!0x0,_0x1e6af0,_0x3c114b);let _0x5540ec=_0x7ee6bb[_0xdc758a(0x499)](_0x5dad36,!0x0,_0x1e6af0,_0x3c114b);if(_0x5540ec==null&&(_0x5540ec=_0x7ee6bb[_0xdc758a(0x499)](_0x5dad36-0x1,!0x1,_0x1e6af0,_0x3c114b)),_0x2ea1be){const {contentBoxPointGroup:_0x884012}=_0x46025e[_0xdc758a(0x417)](_0x5540ec,_0x5540ec);if(_0x884012[_0xdc758a(0x457)]===0x0)continue;this[_0xdc758a(0x30e)](_0x48c635,_0x884012,_0x395d39,_0x31657a,_0x7c7b9),this[_0xdc758a(0x418)]=this[_0xdc758a(0x2c7)]();}if(_0x531788&&_0x5540ec){if(_0x584f0d===a[_0xdc758a(0x2e0)][_0xdc758a(0x2d2)]){const _0x4a08ca=new T[(_0xdc758a(0x43b))](_0x48f213,_0x7ee6bb),{pointGroup:_0x370015}=(_0x464f0d=_0x4a08ca['getRangePointData'](_0x531788,_0x5540ec))!=null?_0x464f0d:{};if(_0x370015==null||_0x370015[_0xdc758a(0x457)]===0x0)continue;this[_0xdc758a(0x25b)](_0x48c635,_0x370015,_0x395d39,_0x31657a);}else{if(!_0x392d3a){const {borderBoxPointGroup:_0x5c06d1}=_0x46025e[_0xdc758a(0x417)](_0x531788,_0x5540ec);if(_0x5c06d1[_0xdc758a(0x457)]===0x0)continue;this[_0xdc758a(0x3c6)](_0x48c635,_0x5c06d1,_0x395d39,_0x31657a);}}}}}[_0x30e513(0x30e)](_0x18963e,_0x3922d2,_0x2c2e77,_0x139644,_0xe4fe7a){const _0x1fb410=_0x30e513,_0x1d08d2=this[_0x1fb410(0x275)](_0x3922d2),{left:_0x16eb8f,top:_0x8aad79,height:_0x2dc965}=_0x1d08d2,_0x16d625=this[_0x1fb410(0x2a2)](),_0x268dd8=Nt/_0x16d625,_0x3cd434=new C[(_0x1fb410(0x265))](_e+a[_0x1fb410(0x301)](H),{'left':_0x16eb8f+_0x2c2e77-_0x268dd8,'top':_0x8aad79+_0x139644,'height':_0x2dc965,'width':Dt,'fill':_0x18963e||C[_0x1fb410(0x3fd)](a[_0x1fb410(0x44c)][_0x1fb410(0x3b7)],0x0),'strokeWidth':_0x268dd8,'stroke':Ut,'evented':!0x0});this[_0x1fb410(0x414)]=_0x3cd434,this[_0x1fb410(0x315)]['addObject'](_0x3cd434,T[_0x1fb410(0x393)]);const _0x5394c5=new C[(_0x1fb410(0x265))](_e+a[_0x1fb410(0x301)](H),{'left':_0x16eb8f+_0x2c2e77-_0x268dd8,'top':_0x8aad79+_0x139644-he/0x2,'height':he,'width':he,'fill':_0x18963e||C[_0x1fb410(0x3fd)](a[_0x1fb410(0x44c)][_0x1fb410(0x3b7)],0x0),'strokeWidth':0x0,'stroke':_0x18963e||C['getColor'](a[_0x1fb410(0x44c)][_0x1fb410(0x3b7)],0x0),'evented':!0x1});this[_0x1fb410(0x3aa)]=_0x5394c5,this[_0x1fb410(0x315)][_0x1fb410(0x43a)](_0x5394c5,T[_0x1fb410(0x393)]);const _0x47b00c=new re(_e+a[_0x1fb410(0x301)](H),{'left':_0x16eb8f+_0x2c2e77-_0x268dd8,'top':_0x8aad79+_0x139644-X,'text':_0xe4fe7a,'color':_0x18963e});this[_0x1fb410(0x233)]=_0x47b00c,this[_0x1fb410(0x315)][_0x1fb410(0x43a)](_0x47b00c,T[_0x1fb410(0x393)]),this[_0x1fb410(0x2a3)]=!0x1;}['_handleHover'](){const _0x46e018=_0x30e513,_0xc2e14c=this[_0x46e018(0x414)]['onPointerEnter$'][_0x46e018(0x439)](()=>{const _0xb65286=_0x46e018;this[_0xb65286(0x2a3)]=!0x0;}),_0x625bfa=this[_0x46e018(0x414)][_0x46e018(0x37c)][_0x46e018(0x439)](()=>{const _0x215b2a=_0x46e018;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x215b2a(0x30b)]=setTimeout(()=>{const _0x98d676=_0x215b2a;this[_0x98d676(0x2a3)]=!0x1;},0x7d0);});return()=>{const _0x41bf4b=_0x46e018;_0xc2e14c[_0x41bf4b(0x3d4)](),_0x625bfa[_0x41bf4b(0x3d4)]();};}['_drawTextRange'](_0xa46b2f,_0x5dba76,_0x501b11,_0x91de34){const _0xdd6c63=_0x30e513,_0x4a45f1=new a['ColorKit'](_0xa46b2f)[_0xdd6c63(0x23f)](0.2)[_0xdd6c63(0x394)](),_0x347e0a=new C['RegularPolygon'](Rt+a[_0xdd6c63(0x301)](H),{'pointsGroup':_0x5dba76,'fill':_0x4a45f1||C['getColor'](a[_0xdd6c63(0x44c)][_0xdd6c63(0x3b7)],0.2),'left':_0x501b11,'top':_0x91de34,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xdd6c63(0x293)](_0x347e0a),this[_0xdd6c63(0x315)][_0xdd6c63(0x43a)](_0x347e0a,T['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x537228,_0x1ff1af,_0x49c2df,_0x5d81f8){const _0x463d52=_0x30e513,_0x42b0a8=new a[(_0x463d52(0x3c1))](_0x537228)[_0x463d52(0x23f)](0.2)[_0x463d52(0x394)](),_0x2a62e8=new C[(_0x463d52(0x3c4))](bt+a[_0x463d52(0x301)](H),{'pointsGroup':_0x1ff1af,'fill':_0x42b0a8||C[_0x463d52(0x3fd)](a['COLORS']['black'],0.2),'left':_0x49c2df,'top':_0x5d81f8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x463d52(0x338)][_0x463d52(0x293)](_0x2a62e8),this[_0x463d52(0x315)][_0x463d52(0x43a)](_0x2a62e8,T[_0x463d52(0x393)]);}['_getAnchorBounding'](_0x209113){const _0x3330f3=_0x209113[0x0],_0x4cea36=_0x3330f3[0x0],_0x3c5bdd=_0x3330f3[0x2],{x:_0x3c51b9,y:_0x4df695}=_0x4cea36,{x:_0x10f455,y:_0x39a517}=_0x3c5bdd;return{'left':_0x3c51b9,'top':_0x4df695,'width':_0x10f455-_0x3c51b9,'height':_0x39a517-_0x4df695};}['_getScale'](){const _0x2e97e0=_0x30e513,{scaleX:_0x41091a,scaleY:_0x2e1906}=this[_0x2e97e0(0x315)][_0x2e97e0(0x307)]();return Math['max'](_0x41091a,_0x2e1906);}}var Lt=Object[_0x30e513(0x45b)],Mt=(_0x5b1991,_0x897d2e,_0x33cc08,_0x1f2e0d)=>{const _0x367ae6=_0x30e513;for(var _0x3f2a72=_0x1f2e0d>0x1?void 0x0:_0x1f2e0d?Lt(_0x897d2e,_0x33cc08):_0x897d2e,_0x20ce2d=_0x5b1991[_0x367ae6(0x457)]-0x1,_0xd4e96e;_0x20ce2d>=0x0;_0x20ce2d--)(_0xd4e96e=_0x5b1991[_0x20ce2d])&&(_0x3f2a72=_0xd4e96e(_0x3f2a72)||_0x3f2a72);return _0x3f2a72;},q=(_0x11b6c9,_0x1c8246)=>(_0x111429,_0x1e174e)=>_0x1c8246(_0x111429,_0x1e174e,_0x11b6c9);let Ee=class extends a[_0x30e513(0x2a6)]{constructor(_0x53720e,_0x36632e,_0x145af4,_0x5daeef,_0x5de51f){const _0x36316f=_0x30e513;super(),_(this,_0x36316f(0x20b),[]),_(this,_0x36316f(0x3fe),[]),(this[_0x36316f(0x292)]=_0x53720e,this['_docSkeletonManagerService']=_0x36632e,this[_0x36316f(0x32f)]=_0x145af4,this[_0x36316f(0x289)]=_0x5daeef,this[_0x36316f(0x328)]=_0x5de51f,this['_init']());}[_0x30e513(0x38d)](){const _0x31d60f=_0x30e513,_0x4d8cb9=this[_0x31d60f(0x292)][_0x31d60f(0x4a1)],_0x31fe67=this['_docSkeletonManagerService'];this[_0x31d60f(0x2eb)](I['combineLatest']([this[_0x31d60f(0x32f)][_0x31d60f(0x440)](_0x4d8cb9),this[_0x31d60f(0x328)][_0x31d60f(0x42f)]])['pipe']($[_0x31d60f(0x4b3)](([_0xc4cb30,_0x54d735])=>({'skeleton':_0x31fe67[_0x31d60f(0x46f)](),'cursors':[..._0xc4cb30['values']()]['flatMap'](_0xbeda8f=>({..._0xbeda8f,'color':this['_themeService'][_0x31d60f(0x294)](_0xbeda8f[_0x31d60f(0x39c)])}))})))['subscribe'](_0xd7585b=>{const _0x15363d=_0x31d60f;if(this[_0x15363d(0x299)](),_0xd7585b){const {skeleton:_0x3947b8,cursors:_0x26af42}=_0xd7585b;this[_0x15363d(0x246)](_0x3947b8,_0x26af42);}})),this[_0x31d60f(0x384)](),this[_0x31d60f(0x2ee)]();}[_0x30e513(0x246)](_0x2dc062,_0x174bf9){const _0x4b4b9d=_0x30e513,{scene:_0x5ec006,mainComponent:_0x40e5b0}=this[_0x4b4b9d(0x292)],_0x2eb66f=_0x174bf9[_0x4b4b9d(0x4b3)](_0x5aeed9=>new Le(_0x5aeed9,_0x5ec006,_0x2dc062,_0x40e5b0));this[_0x4b4b9d(0x20b)]=_0x2eb66f,this[_0x4b4b9d(0x3fe)]=_0x174bf9;}[_0x30e513(0x405)](){const _0x1c1805=_0x30e513;this[_0x1c1805(0x299)]();const {scene:_0x106998,mainComponent:_0x8f298}=this[_0x1c1805(0x292)],_0x38e72a=this[_0x1c1805(0x206)][_0x1c1805(0x46f)](),_0xd58ee0=this[_0x1c1805(0x3fe)][_0x1c1805(0x4b3)](_0x33deaa=>new Le(_0x33deaa,_0x106998,_0x38e72a,_0x8f298));this[_0x1c1805(0x20b)]=_0xd58ee0;}[_0x30e513(0x299)](){const _0x5d8830=_0x30e513;this[_0x5d8830(0x20b)][_0x5d8830(0x25c)](_0x518b6c=>_0x518b6c['dispose']()),this['_cursorShapes']=[];}[_0x30e513(0x2ee)](){const _0x34f9a2=_0x30e513,_0x5a103f=[T['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x34f9a2(0x2e3)](_0x920203=>{const _0x5afe28=_0x34f9a2;_0x5a103f[_0x5afe28(0x215)](_0x920203['id'])&&_0x920203[_0x5afe28(0x450)][_0x5afe28(0x4a1)]===this[_0x5afe28(0x292)][_0x5afe28(0x4a1)]&&this['_refreshCollabCursors']();}));}[_0x30e513(0x384)](){const _0x4ff04a=_0x30e513;this['disposeWithMe'](a[_0x4ff04a(0x2ce)](this[_0x4ff04a(0x292)]['engine'][_0x4ff04a(0x40f)])['pipe']($[_0x4ff04a(0x458)](_0x5d8d31=>_0x5d8d31[_0x4ff04a(0x428)]===C[_0x4ff04a(0x327)][_0x4ff04a(0x27d)]),$[_0x4ff04a(0x352)](0x10))[_0x4ff04a(0x376)](()=>{const _0x52f541=_0x4ff04a;this[_0x52f541(0x405)]();}));}};Ee=Mt([q(0x1,a[_0x30e513(0x3f5)](V[_0x30e513(0x287)])),q(0x2,a[_0x30e513(0x3f5)](F)),q(0x3,a[_0x30e513(0x40a)]),q(0x4,a[_0x30e513(0x3f5)](a[_0x30e513(0x23d)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x161120,_0x29d174){const _0x2ed95a=_0x30e513;super(_0x161120,_0x29d174),_(this,_0x2ed95a(0x43f)),_(this,_0x2ed95a(0x27e),!0x1),_(this,_0x2ed95a(0x432)),_(this,_0x2ed95a(0x397),''),_(this,_0x2ed95a(0x48d),'top'),_(this,_0x2ed95a(0x29f)),(_0x29d174&&this[_0x2ed95a(0x409)](_0x29d174),this['onPointerEnter$'][_0x2ed95a(0x439)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2ed95a(0x37c)]['subscribeEvent'](()=>this[_0x2ed95a(0x409)]({'hovered':!0x1})));}[_0x30e513(0x409)](_0x3db201){const _0x5e21f7=_0x30e513;var _0x8966ea,_0x3a3850,_0x2664fa,_0x22e9a6,_0x47489a,_0x182a0c;this[_0x5e21f7(0x43f)]=(_0x8966ea=_0x3db201[_0x5e21f7(0x39c)])!=null?_0x8966ea:this[_0x5e21f7(0x43f)],this[_0x5e21f7(0x27e)]=(_0x3a3850=_0x3db201['hovered'])!=null?_0x3a3850:this[_0x5e21f7(0x27e)],this['_range']=(_0x2664fa=_0x3db201['range'])!=null?_0x2664fa:this[_0x5e21f7(0x432)],this[_0x5e21f7(0x397)]=(_0x22e9a6=_0x3db201[_0x5e21f7(0x4a4)])!=null?_0x22e9a6:this[_0x5e21f7(0x397)],this[_0x5e21f7(0x48d)]=(_0x47489a=_0x3db201[_0x5e21f7(0x308)])!=null?_0x47489a:this[_0x5e21f7(0x48d)],this[_0x5e21f7(0x29f)]=(_0x182a0c=_0x3db201[_0x5e21f7(0x3bd)])!=null?_0x182a0c:this['_backgroundColor'],this[_0x5e21f7(0x334)]({'width':_0x3db201['width'],'height':_0x3db201[_0x5e21f7(0x245)]});}[_0x30e513(0x3c2)](_0x55b168){const _0x453cf5=_0x30e513,{row:_0x1e617e,column:_0x40e888}=_0x55b168;if(_0x1e617e>=this['_range'][_0x453cf5(0x2a9)]&&_0x1e617e<=this[_0x453cf5(0x432)]['endRow']&&_0x40e888>=this[_0x453cf5(0x432)][_0x453cf5(0x44d)]&&_0x40e888<=this[_0x453cf5(0x432)]['endColumn']){this[_0x453cf5(0x409)]({'hovered':!0x0});return;}this[_0x453cf5(0x409)]({'hovered':!0x1});}[_0x30e513(0x221)](_0xf2002e){return!0x1;}[_0x30e513(0x362)](_0x297a4e){const _0x5bf919=_0x30e513;C['Rect']['drawWith'](_0x297a4e,{'width':this[_0x5bf919(0x24e)],'height':this[_0x5bf919(0x245)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5bf919(0x29f)]}),this['_hovered']&&(_0x297a4e[_0x5bf919(0x2e6)](),_0x297a4e[_0x5bf919(0x25a)](0x1,0x0,0x0,0x1,this[_0x5bf919(0x24e)],this[_0x5bf919(0x48d)]==='bottom'?0x0:-X),re[_0x5bf919(0x452)](_0x297a4e,{'text':this[_0x5bf919(0x397)],'color':this['_color']}),_0x297a4e[_0x5bf919(0x476)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x3970a9,_0x5e6f61,_0x120f51,_0x5c55ab)=>{const _0x4553e9=_0x30e513;for(var _0x498bef=_0x5c55ab>0x1?void 0x0:_0x5c55ab?wt(_0x5e6f61,_0x120f51):_0x5e6f61,_0x4baf0f=_0x3970a9[_0x4553e9(0x457)]-0x1,_0x1341d2;_0x4baf0f>=0x0;_0x4baf0f--)(_0x1341d2=_0x3970a9[_0x4baf0f])&&(_0x498bef=_0x1341d2(_0x498bef)||_0x498bef);return _0x498bef;},ue=(_0x380849,_0x406fb3)=>(_0x2eeebd,_0x1d84f5)=>_0x406fb3(_0x2eeebd,_0x1d84f5,_0x380849);const $t=0x1389;let Ce=class extends a[_0x30e513(0x2a6)]{constructor(_0x5396fb,_0x50c63c,_0x10856e,_0x17f115){const _0x260ab1=_0x30e513;super(),_(this,'_cursors',new Set()),_(this,_0x260ab1(0x239),null),(this[_0x260ab1(0x292)]=_0x5396fb,this['_sheetSkeletonManagerService']=_0x50c63c,this[_0x260ab1(0x32f)]=_0x10856e,this[_0x260ab1(0x328)]=_0x17f115,this['_init']());}['_init'](){const _0x1a5a77=_0x30e513;this[_0x1a5a77(0x3dd)]['currentSkeleton$']['pipe']($[_0x1a5a77(0x367)](this[_0x1a5a77(0x3db)]),$['switchMap'](_0x243353=>{const _0x4ba483=_0x1a5a77;if(_0x243353){const _0x4dbe44=_0x243353[_0x4ba483(0x40b)];return I[_0x4ba483(0x330)](this[_0x4ba483(0x32f)][_0x4ba483(0x440)](this['_context'][_0x4ba483(0x4a1)]),this[_0x4ba483(0x328)][_0x4ba483(0x42f)])['pipe']($['map'](([_0x5219ad,_0x3bb743])=>{const _0x5b7046=_0x4ba483,_0x503a98=new Map();return _0x5219ad[_0x5b7046(0x25c)]((_0x419306,_0x169c01)=>{const _0x31b929=_0x5b7046;if(_0x419306[_0x31b929(0x254)]===_0x4dbe44){const _0x3a1936={..._0x419306};_0x3a1936['color']=this[_0x31b929(0x328)][_0x31b929(0x294)](_0x419306[_0x31b929(0x39c)]),_0x503a98['set'](_0x169c01,_0x3a1936);}}),{'skeleton':_0x243353,'cursors':_0x503a98};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x188f0b,cursors:_0x1b433d})=>{const _0x3080a6=_0x1a5a77;this[_0x3080a6(0x299)](),_0x188f0b&&this[_0x3080a6(0x246)](_0x188f0b,_0x1b433d);}),this[_0x1a5a77(0x3dd)][_0x1a5a77(0x2b9)]['subscribe'](_0x4a99e4=>{const _0x56718d=_0x1a5a77;if(_0x4a99e4==null)return;const {skeleton:_0x5b2fe3}=_0x4a99e4,{scene:_0x404f37}=this[_0x56718d(0x292)];_0x404f37['onPointerMove$'][_0x56718d(0x439)](a[_0x56718d(0x371)](_0x54aecb=>{const _0x381163=_0x56718d;var _0x3d3b72,_0x192b08;const {offsetX:_0x4a8110,offsetY:_0x5ebd40}=_0x54aecb,{x:_0xd13f8c,y:_0x4c2476}=_0x404f37[_0x381163(0x33b)](C[_0x381163(0x240)][_0x381163(0x300)]([_0x4a8110,_0x5ebd40])),{scaleX:_0x30b3d5,scaleY:_0x5d7e7c}=_0x404f37[_0x381163(0x307)](),_0x51cf4c=_0x404f37[_0x381163(0x382)](C[_0x381163(0x389)][_0x381163(0x442)]),_0x462440=_0x404f37[_0x381163(0x1fa)](C['Vector2']['FromArray']([_0xd13f8c,_0x4c2476]),_0x51cf4c),_0x55fbf1=_0x5b2fe3[_0x381163(0x326)](_0x4a8110,_0x5ebd40,_0x30b3d5,_0x5d7e7c,_0x462440);((_0x3d3b72=this['_lastPointer'])==null?void 0x0:_0x3d3b72[_0x381163(0x45a)])===_0x55fbf1['column']&&((_0x192b08=this[_0x381163(0x239)])==null?void 0x0:_0x192b08[_0x381163(0x278)])===_0x55fbf1[_0x381163(0x278)]||this['_cursors'][_0x381163(0x25c)](_0x5d2541=>{_0x5d2541['onMouseMove'](_0x55fbf1);});},0x64));});}[_0x30e513(0x246)](_0x3602af,_0x1568ce){const _0x33c7e0=_0x30e513;var _0x3bc15b;const _0x3d65db=(_0x3bc15b=this[_0x33c7e0(0x3dd)][_0x33c7e0(0x2d6)]())==null?void 0x0:_0x3bc15b['skeleton'];if(!_0x3d65db)return;const _0x464359=this[_0x33c7e0(0x1fc)]();if(!_0x464359)return;this[_0x33c7e0(0x3fe)][_0x33c7e0(0x25c)](_0x58bfeb=>{_0x58bfeb['makeDirty']();});const {scene:_0x5ddd20}=_0x464359,_0x3aa24e=xt(Array['from'](_0x1568ce['values']()))['map'](_0x16f7c1=>{const _0x2a901a=_0x33c7e0,{color:_0x1fd406,range:_0x5c3a2d,name:_0x5b2a3c,selection:_0x49234f,sheetID:_0xf386c9}=_0x16f7c1,{startColumn:_0x3e0c91,startRow:_0x3a503e,endColumn:_0x1c50ad,endRow:_0x136596}=_0x5c3a2d,_0x3b2f3c=J['getCoordByCell'](_0x3a503e,_0x3e0c91,_0x5ddd20,_0x3d65db),_0x236df2=J[_0x2a901a(0x35f)](_0x136596,_0x1c50ad,_0x5ddd20,_0x3d65db),{columnHeaderHeightAndMarginTop:_0x27b78a}=_0x3d65db,{startX:_0x1f0389,startY:_0x245bd9}=_0x3b2f3c,{endX:_0xfe10d8,endY:_0x46329a}=_0x236df2,_0x3d047a=_0xfe10d8-_0x1f0389,_0x3c46f9=_0x46329a-_0x245bd9,_0x23dad4={'labelPosition':_0x245bd9-_0x27b78a>=X?_0x2a901a(0x1fd):_0x2a901a(0x20c),'sheetID':_0xf386c9,'range':_0x5c3a2d,'color':_0x1fd406,'name':_0x5b2a3c,'selection':_0x49234f,'left':_0x1f0389,'top':_0x245bd9,'width':_0x3d047a,'height':_0x3c46f9,'evented':!0x1,'zIndex':$t};return new je(_0x5b2a3c,_0x23dad4);});_0x5ddd20[_0x33c7e0(0x443)](_0x3aa24e,At),this[_0x33c7e0(0x3fe)]=new Set(_0x3aa24e);}[_0x30e513(0x299)](){const _0x39beea=_0x30e513;var _0x404ec9;(_0x404ec9=this['_cursors'])==null||_0x404ec9[_0x39beea(0x25c)](_0x2597a7=>_0x2597a7['dispose']());}[_0x30e513(0x1fc)](){const _0x13deba=_0x30e513;return J[_0x13deba(0x1f7)](this['_context'][_0x13deba(0x322)],this[_0x13deba(0x292)]);}};function _0x2ee5(){const _0x57c2d2=['REDEMPTION_USER_NOT_ELIGIBLE','clsx','getRelativeToViewportCoord','[Unhandled\x20Rejection]:\x20','m1Prime','isFormulaId','textRanges','_startSheetCollabCursor','IConfigService','_setupSubUnitSync','then','getformulaLimitStatusUrl','startFormulaLimitUrl','Rectangle','loadUnit','saveOfflineData','WebBrowserSingleActiveUnitService','DesktopCollaborationStatusDisplayController','_updateURLWithCurrentState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','createElement','min','_uploadLog','enableFrontendLog','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','throttleTime','green.600','_id','parse','MoveRangeCommandId','idSuffix','_releaseCalculationLimit','formula.calculation.waiting','AWAITING','APPLY_NON_SEQUENTIAL_REVISION','setTimeout','CollaborationStatus','_docTransformIMECacheService','getCoordByCell','url(#$1','forwardRef','_draw','UnitStatus','Module','isTransformMutationFailure','USERS_LEAVE','takeUntil','wsSessionTicketUrl','YUUMI_AI_RUN_FAILED','releaseFormulaLimitUrl','InsertRangeMoveDownCommandId','clearInterval','code','switchMap','stageInfo','fillText','debounce','START_CALCULATION','rgba(255,\x20255,\x20255,\x200.01)','fromEvent','_taskIds','subscribe','PERMISSION_DENIED','WebSocketService','_toggleOffline','SessionStatus','actions','onPointerLeave$','stringify','RefRangeService','HTTPService','application/json','_toggleOnline','getViewport','getDocRanges','_initResize','USER_NOT_FOUND','ILocalCacheService','div','_clearOtherTimers','SHEET_VIEWPORT_KEY','_docSyncEditingCollabCursorService','getItem','_heartbeatTimer','_init','IImageIoService','send','measureText','getActiveSheet','assign','TEXT_RANGE_LAYER_INDEX','toRgbString','syncEditingCollabCursor','INVITE_CODE_ALREADY_BOUND','_name','evenodd','formula.calculation.started','split','NO_OTHER_CLIENTS_EDITING','color','runRefRangeMutations','MOBILE_VERIFY_CODE_MISMATCH','_memberID','INVITE_CODE_HAS_BEEN_UES','Unknown\x20user','_setupBeforeClosingHandler','REDEMPTION_CODE_INACTIVE','_configService','_setFormulaLimitStatus','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','has','subunit','get','_anchorDot','SetFormulaCalculationNotificationMutation','hide','_lastResponseTimestamp','_status$','INTERNAL_ERROR','_session','_docSkeleton','_memberService','_messageService','AUTHORIZE_CODE_ILLEGAL','url(#on-line-icon_clip0_910_349)','YUUMI_NO_CUBOID_FOR_QUESTION','black','session.connection-failed','unshift','unhandledrejection','handleMoveRange','REDEMPTION_CODE_HAS_BEEN_CREATED','backgroundColor','AWAITING_WITH_PENDING','white','Disposable','ColorKit','onMouseMove','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','RegularPolygon','reason','_drawTextRange','NOT_FOUND','body','limitInfo','31550cibrfL','bind','roomMembers$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getStateCache','_initEntityListener','transformStateCache','OnLineIcon','contains','getCurrentSelections','unsubscribe','roomMembers','SUCCESS','dispose','Error','collabStatus.conflict','deepClone','dispose$','svg','_sheetSkeletonManagerService','_initWindowErrorListener','SYNCED','_createSocketURL','OffLineIcon','toDisposable','INVALID_INVITE_CODE','PY_RUNTIME_SCRIPT_ERROR','430577YagesG','ENTITLE_NEED_BILLING_ADDRESS','getUniverSheetInstance','_checkAndWaitForCalculationPermission','Injector','unitID','YUUMI_CONNECTOR_URL_NOT_FOUND','purple.300','YUUMI_RATE_OVER_LIMIT','saveTaskMap','event$','UniverIcon','0\x200\x2017\x2016','_dataLoaderService','_initDependencies','getUndoRedoMutationParamsCache','Inject','_roomMembers$','ENTITLE_DUP_SUBSCRIPTION','OTHER_CLIENTS_EDITING','size','INotificationService','getSheetBySheetId','_transformService','getColor','_cursors','collabStatus.offline','setConfig','Tools','sessionTicket','undoState','_updateLocalCursor','_refreshCollabCursors','\x20at\x20','_checkCalculationAvailable','DEFAULT_WS_SESSION_TICKET_URL','setShapeProps','ICommandService','sheetId','#FFF','CURRENT_STATUS_CANNOT_OPERATE','FETCH_MISS','onTransformChange$','origin','_scheduleClearOtherTimer','clipPath','mask','_anchor','handleInsertRangeMoveRight','set','getRangePointData','_eventUnsubscribe','font','registerBeforeClose','SNAPSHOT_INVALID_SNAPSHOT','handleIRemoveCol','asObservable','SheetsSelectionsService','blue.400','stack','displayName','DisposableCollection','TEXT','_initStatusListener','onLocalMutation','_cursor','1083204uTnVon','type','transformMutation','ENTITLE_COUPON_EXPIRED','_collaborationSessionService','Plugin','useDependency','UNDEFINED','currentTheme$','data','collaboration.closeRoom','_range','location','540wbqAzY','override','_transformUndoRedoStack','ENTITLE_REPORT_LIMIT_EXCEED','useObservable','subscribeEvent','addObject','NodePositionConvertToRectRange','getCurrentUnitForType','RemoteUniscriptService','sessionStatus$','_color','getCollabCursors$','IDocClipboardService','VIEW_MAIN','addObjects','createIdentifier','_docClipboardService','COMPLETION_FINISHED','_getMergeRange','updateOfflineData','IMessageService','next','url(#off-line-icon_clip0_910_343)','COLORS','startColumn','YUUMI_UNABLE_LOAD_URL','_localStorageService','params','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','drawWith','handleDeleteRangeMoveUp','collabStatus.notCollab','APPLY_REJECT','ENTITLE_CHAT_LIMIT_EXCEED','length','filter','YUUMI_ASYNCIO_CANCELLED','column','getOwnPropertyDescriptor','getCellMatrix','CollaborationController','ISocketService','http://www.w3.org/2000/svg','lineTo','dirtyRanges','loadOfflineData','runId','arc','urlChange$','_docStateChangeManagerService','SetSelectionsOperation','_showGuardMessage','history','SheetSkeletonManagerService','on-line-icon_clip0_910_349','eventID','APPLY_REVISION_CONFILICT','getTypeOfUnitAdded$','getSkeleton','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','range','toStringTag','unload','DocStateChangeManagerService','12065552pkqavW','restore','closePath','executeCommand','_logService','_unitStatus','complete','subUnitId','_renderManagerService','_assignedColors','IRenderManagerService','createInstance','_colorAssignService','getParam','getSheetId','parseInt','pipe','round','getLocalCacheKey','_registerDependencies','_unitOnClients','disposeUnit','collabCursorState$','_currentUsage','_labelPosition','LICENSE_MAX_UNITS_EXCEEDED','_collaborationUIEventService','collab-text-range-','session.collaboration-timeout','YUUMI_ALL_TABLES_IS_INVALID','searchParams','popstate','_initUserListener','redoState','colorChannel1','YUUMI_URL_COL_OUT_OF_RANGE','findNodePositionByCharIndex','SOCKET_FAILED','getUnitStatus$','selections','_cursorInfo$','_monkeyPatchLogService','entityInit$','CHANGESET_REVISION_CONFILICT','unitId','ENTITLE_INSUFFICIENT_QUOTA','_colorIndex','name','transformSelections','_entityInit$','USER_NOT_INVITED_CODE','OTHER_CLIENT_EDITING','5564216yVpukI','_pollingInterval','_httpService','defIds','getFocusedUnit','UNIVER_DOC','shareReplay','CONNECTOR_DATA_TOO_LARGE','_univerInstanceService','jiqing.500','map','requireSession','/universer-api/license/formula/limit/done','/run/','_doCreateSocket','tag','some','_initUnhandledRejectionListener','entries','ENTITLE_USE_COUPON_NOT_1ST_TRADE','registerComponent','INVALID_ARGUMENT','MOBILE_HAS_BEEN_BOUND','CanceledError','focused$','ILogService','fillStyle','getSheetObject','ticket','attrs','getVpScrollXYInfoByPosToVp','DocSelectionManagerService','_getSheetObject','top','find','pushState','defineProperty','/universer-api/license/formula/limit/status','IUniverInstanceService','path','_handleLeaveEvent','_instanceService','_docSkeletonManagerService','isEditing','getRenderById','REDEMPTION_CODE_NOT_STARTED','now','_cursorShapes','bottom','BuiltInUIPart','APPLY_DUPLICATED','newValue','pluginName','from','isArray','BehaviorSubject','setActiveRange','includes','delete','startsWith','_entities','1em','CollaborationUIEventId','PAYMENT_CHANNEL_NOT_SUPPORT','setInterval','transformRemoteChangeset','collabStatus.fetchMiss','_clearPolling','init','triggerDblclick','CLOSE_ROOM','onStarting','_onCursorDelete','ENTITLE_COUPON_USED_UP','0\x200\x2016\x2016','_collaborationController','_onCursorUpdate','IURLService','getActiveRange','ISnapshotServerService','collaboration-client-ui.config','NodePositionConvertToCursor','exhaustSavingTask','YUUMI_SUBSCRIPTION_NOT_FOUND','UNIVER_SHEET','off-line-icon','currentColor','_textBubble','WebURLService','SetWorksheetActivateCommand','INVITE_CODE_REQUIRED','getValue','getTypeOfUnitDisposed$','_lastPointer','getMemberID','IBeforeCloseService','M0\x200H16V16H0z','ThemeService','_injector','setAlpha','Vector2','getUnitId','[Window\x20Error]:\x20','registerDependencies','error','height','_updateCollabCursors','CollaborationDataLoaderController','_docTransformSelectionsService','RemoveRowCommandId','_urlService','deserializeRangeWithSheet','univerjs-icon\x20univerjs-icon-','saveImage','width','JOIN_ROOM_FAILED','text','RevisionService','ITransformService','assignAColorForMemberID','sheetID','ERROR_AGAIN','UniverCollaborationClientUIPlugin','isActive','show','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','transform','_drawRectRange','forEach','children','off-line-icon_clip0_910_343','_syncEditingCollabCursorService','_uiPartsService','FormulaExecuteStageType','Failed','MessageType','href','Rect','_updateSubUnitFromURLParams','jsx','distinctUntilChanged','_selfUnitIDs','cursorInfo$','DocIMEInputManagerService','handleInsertRangeMoveDown','Success','xlink:href','InsertRangeMoveRightCommandId','useRef','REDEMPTION_CODE_FULLY_REDEEMED','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','_imageIoService','trim','_getAnchorBounding','univer-flex\x20univer-items-center','IUIPartsService','row','UNAUTHENTICATED','message','lineno','post','resize','_hovered','getCollabEntity$','univer-mr-2\x20univer-flex\x20univer-text-xl','_beforeCloseService','_docTransformStateCacheService','with','_send','_removeClearOtherTimer','_getSaveTimeout','DocSkeletonManagerService','status$','_commandService','SOCKET_FAILED_RETRY','editingUnit','[CollaborationDataLoaderController]','UNRECOGNIZED','_transformPreviousActiveRange','handleIRemoveRow','2746725yBCfyd','Tooltip','_context','push','getColorFromTheme','serializeRangeWithSheet','symbol','uni.network.url-service','Warning','_removeCollabCursors','isFormulaString','use','merge','collaboration.single-unit.warning','EffectRefRangId','_backgroundColor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','CollaborationEvent','_getScale','_hover','Loading','debounceTime','RxDisposable','disableLocalCache','toString','startRow','REDEMPTION_USER_REDEEM_TIMES_EXCEED','setItem','createSocket','setUndoRedoMutationParamsCache','touchDependencies','_config','catch','USER_IS_ANONYMOUS','BrowserCollaborationSocketService','_collabSessionService','CollaborationUIEventService','collab-rect-range-','_document','_render','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','currentSkeleton$','NOT_COLLAB','string','cursorInfo','/universer-api/license/formula/limit/start','defs','DocCollaborationEntity','DependentOn','UniverInstanceType','FormulaExecutedStateType','/universer-api/frontend/logs','807102Anvpah','MemberService','CONFLICT','_handleHover','transformIMECache','[LogService\x20Error]:\x20','_online','_scheduleSaving','docStateChange$','addEventListener','fromEventSubject','ranges','_handleJoinEvent','_initCommandInterceptor','RECT','setParam','_onRefRangeChange','transformMutationsWithChangeset','getCurrent','_transformHistoryAndStateStack','...','_refRangeService','_registerRenderDependencies','_initStatusComponent','_getFormulaLimitStatus','LOGIN_TOKEN_PROCESSING_FAILED','WECHAT_HAS_BEEN_BOUND','_notificationService','DOC_RANGE_TYPE','LOGIN_FAILED','SheetCollabCursorShape','onCommandExecuted','add','_startCalculationLimit','save','_getSessionTicket','connectInjector','imageSourceType','LICENSE_EXPORT_SIZE_EXCEEDED','disposeWithMe','_disabled','socket$','_initCommandExecutedListener','CollaborationSessionService','mutations','_handleHeartbeatEvent','moveTo','handleDeleteRangeMoveLeft','ONLINE','getConfig','beginPath','registerRenderModule','_startDocCollabCursor','values','_scheduleHeartbeat','memberID','_cachedData','removeEventListener','debug','replace','FromArray','generateRandomId','whenReady','_handleEvent','UPDATE_CURSOR','_saveTaskMap','clearTimeout','getAncestorScale','labelPosition','collab-client.tooltip.reconnect','EMAIL_HAS_BEEN_BOUND','_hideTimer','doc.mutation.rich-text-editing','Workbook','_drawAnchor','invokeId','replaceDocRanges','onRendered','[RemoteUniscriptService]:\x20no\x20focused\x20unit','selection','OFFLINE','_scene','registerRefRange','LocaleService','LICENSE_IMPORT_SIZE_EXCEEDED','_ensureSubject','SetTextSelectionsOperation','on-line-icon','UniverCollaborationClientPlugin','Shape','fill','ALREADY_EXISTS','replaceState','ENTITLE_INVALID_COUPON_CODE','unit','_saveCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_applyCommand','getCellPositionByOffset','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_themeService','_localeService','isTransformMutationsWithChangesetSuccess','REDEMPTION_INVALID_CODE','search','stage','_maxFormulaLimit','_collabCursorController','combineLatest','ENSURE_SNAPSHOT_EXECUTION','RemoveColCommandId','SNAPSHOT_HAS_BEEN_REMOVED','transformByState','session.will-retry','m2Prime','functionsExecutedState','_shapes'];_0x2ee5=function(){return _0x57c2d2;};return _0x2ee5();}Ce=yt([ue(0x1,a[_0x30e513(0x3f5)](J[_0x30e513(0x46a)])),ue(0x2,a['Inject'](F)),ue(0x3,a['Inject'](a[_0x30e513(0x23d)]))],Ce);function xt(_0x2bce9c){const _0x138465=_0x30e513,_0x4f504c=new Map();return _0x2bce9c[_0x138465(0x25c)](_0x3a766d=>{const _0x293bc2=_0x138465;if(_0x4f504c['has'](_0x3a766d['selection'])){const _0x32e3a8=_0x4f504c[_0x293bc2(0x3a9)](_0x3a766d['selection']);_0x32e3a8[_0x293bc2(0x4a4)]+=',\x20'+_0x3a766d[_0x293bc2(0x4a4)];}else _0x4f504c[_0x293bc2(0x416)](_0x3a766d[_0x293bc2(0x313)],_0x3a766d);}),Array[_0x138465(0x211)](_0x4f504c[_0x138465(0x2f9)]());}var Bt=Object[_0x30e513(0x45b)],Ft=(_0x1705af,_0x135227,_0x32d5e7,_0x59fe41)=>{for(var _0x1efe76=_0x59fe41>0x1?void 0x0:_0x59fe41?Bt(_0x135227,_0x32d5e7):_0x135227,_0x28b71a=_0x1705af['length']-0x1,_0x472fbe;_0x28b71a>=0x0;_0x28b71a--)(_0x472fbe=_0x1705af[_0x28b71a])&&(_0x1efe76=_0x472fbe(_0x1efe76)||_0x1efe76);return _0x1efe76;},y=(_0x551089,_0x363c86)=>(_0x414117,_0x5c68c2)=>_0x363c86(_0x414117,_0x5c68c2,_0x551089);let Z=class extends a[_0x30e513(0x3c0)]{constructor(_0x1a4fb9,_0xb1d788,_0x2510ea,_0xfe6f02,_0x3e7f93,_0x1f3d8b){const _0x4e6904=_0x30e513;super(),this['_beforeCloseService']=_0x1a4fb9,this['_localCacheService']=_0xb1d788,this['_collaborationUIEventService']=_0x2510ea,this[_0x4e6904(0x3b3)]=_0xfe6f02,this['_notificationService']=_0x3e7f93,this['_localeService']=_0x1f3d8b,this[_0x4e6904(0x3a2)](),this['_initEvent']();}[_0x30e513(0x3a2)](){const _0x4d00e0=_0x30e513;this[_0x4d00e0(0x2eb)](this[_0x4d00e0(0x281)][_0x4d00e0(0x41a)](()=>{const _0x7b6898=_0x4d00e0;if(this['_localCacheService'][_0x7b6898(0x3ee)][_0x7b6898(0x3f9)])return this[_0x7b6898(0x329)]['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x23adf6=_0x30e513;this[_0x23adf6(0x2eb)](this[_0x23adf6(0x48f)][_0x23adf6(0x3ef)][_0x23adf6(0x376)](_0x1a4e7f=>{const _0x33a4a5=_0x23adf6;_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x4a8)]&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p['MessageType']['Warning'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x29d))}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x222)]&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)]['Warning'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x431))}),_0x1a4e7f['id']===u['CollaborationUIEventId'][_0x33a4a5(0x377)]&&this[_0x33a4a5(0x2df)][_0x33a4a5(0x258)]({'title':this[_0x33a4a5(0x329)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0x33a4a5(0x244),'duration':0x0}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x2c6)]&&this[_0x33a4a5(0x3b3)]['show']({'type':p[_0x33a4a5(0x263)]['Error'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x431))+'('+_0x1a4e7f[_0x33a4a5(0x430)]+')'}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x24f)]&&this['_messageService'][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)][_0x33a4a5(0x298)],'content':this[_0x33a4a5(0x329)]['t'](_0x1a4e7f[_0x33a4a5(0x430)]||'')}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x28a)]&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)]['Warning'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x335))}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x49a)]&&this['_messageService']['show']({'type':p[_0x33a4a5(0x263)][_0x33a4a5(0x3d8)],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x3b8))}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)][_0x33a4a5(0x3d8)],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x491))});}));}};Z=Ft([y(0x0,O[_0x30e513(0x23b)]),y(0x1,u[_0x30e513(0x386)]),y(0x2,a[_0x30e513(0x3f5)](u[_0x30e513(0x2b4)])),y(0x3,O['IMessageService']),y(0x4,O[_0x30e513(0x3fa)]),y(0x5,a[_0x30e513(0x3f5)](a[_0x30e513(0x317)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x51ea66,_0x6009c,_0x8aa504,_0xe11f0)=>{const _0x2b8c1d=_0x30e513;for(var _0x29df22=_0xe11f0>0x1?void 0x0:_0xe11f0?jt(_0x6009c,_0x8aa504):_0x6009c,_0x5b579d=_0x51ea66[_0x2b8c1d(0x457)]-0x1,_0x26e240;_0x5b579d>=0x0;_0x5b579d--)(_0x26e240=_0x51ea66[_0x5b579d])&&(_0x29df22=_0x26e240(_0x29df22)||_0x29df22);return _0x29df22;},z=(_0x29e1fe,_0x141d8b)=>(_0x4e830a,_0x57a22f)=>_0x141d8b(_0x4e830a,_0x57a22f,_0x29e1fe);let Q=class extends a[_0x30e513(0x3c0)]{constructor(_0x5531e8,_0x239101,_0x24494f,_0x5873ed){const _0x3df121=_0x30e513;super(),_(this,_0x3df121(0x39f)),(this[_0x3df121(0x23e)]=_0x5531e8,this[_0x3df121(0x4ab)]=_0x239101,this['_logService']=_0x24494f,this[_0x3df121(0x42b)]=_0x5873ed,this[_0x3df121(0x38d)]());}['_init'](){const _0x4328be=_0x30e513;this[_0x4328be(0x3de)](),this[_0x4328be(0x4ba)](),this['_monkeyPatchLogService'](),this[_0x4328be(0x495)]();}[_0x30e513(0x495)](){const _0x1d99b0=_0x30e513;this[_0x1d99b0(0x2eb)](this['_collaborationSessionService'][_0x1d99b0(0x2ed)]['subscribe'](_0x546ebf=>{const _0x211e64=_0x1d99b0;this['_memberID']=_0x546ebf==null?void 0x0:_0x546ebf[_0x211e64(0x2fb)];}));}['_initWindowErrorListener'](){const _0x542146=_0x30e513,_0x456e75=_0x1736bd=>{const _0x5e1ba3=_0x2f23;var _0xf0829d;this[_0x5e1ba3(0x34f)](_0x5e1ba3(0x244),_0x5e1ba3(0x242)+_0x1736bd[_0x5e1ba3(0x27a)]+_0x5e1ba3(0x406)+_0x1736bd['filename']+':'+_0x1736bd[_0x5e1ba3(0x27b)]+':'+_0x1736bd['colno']+'\x0a'+(((_0xf0829d=_0x1736bd['error'])==null?void 0x0:_0xf0829d[_0x5e1ba3(0x420)])||''));};window['addEventListener'](_0x542146(0x244),_0x456e75),this[_0x542146(0x2eb)](()=>{const _0x1cbb32=_0x542146;window[_0x1cbb32(0x2fd)]('error',_0x456e75);});}['_initUnhandledRejectionListener'](){const _0x58af50=_0x30e513,_0x2107fb=_0x4a8d82=>{const _0x2f4846=_0x2f23;this[_0x2f4846(0x34f)](_0x2f4846(0x244),_0x2f4846(0x33c)+_0x4a8d82[_0x2f4846(0x3c5)]);};window['addEventListener'](_0x58af50(0x3ba),_0x2107fb),this[_0x58af50(0x2eb)](()=>{const _0x100a78=_0x58af50;window[_0x100a78(0x2fd)](_0x100a78(0x3ba),_0x2107fb);});}[_0x30e513(0x49e)](){const _0x58948a=_0x30e513,_0x13f596=this['_logService'][_0x58948a(0x244)][_0x58948a(0x3cb)](this[_0x58948a(0x479)]);this[_0x58948a(0x479)][_0x58948a(0x244)]=(..._0x461bab)=>{const _0x32aecb=_0x58948a,_0x4c89dc=_0x461bab[_0x32aecb(0x4b3)](_0x2d7410=>_0x2d7410 instanceof Error?_0x2d7410[_0x32aecb(0x27a)]+'\x0a'+_0x2d7410['stack']:String(_0x2d7410))['join']('\x20');this[_0x32aecb(0x34f)](_0x32aecb(0x244),_0x32aecb(0x2c9)+_0x4c89dc),_0x13f596(..._0x461bab);},this[_0x58948a(0x2eb)](()=>{this['_logService']['error']=_0x13f596;});}['_uploadLog'](_0x13a30f,_0x47cd27){const _0x1106dd=_0x30e513;try{const _0x1002d0={'userId':this[_0x1106dd(0x39f)],'logLabel':_0x13a30f,'content':_0x47cd27};this[_0x1106dd(0x4ab)]['post'](_0x1106dd(0x2c3),{'body':_0x1002d0})[_0x1106dd(0x2b0)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),z(0x1,a[_0x30e513(0x3f5)](x[_0x30e513(0x37f)])),z(0x2,a[_0x30e513(0x1f5)]),z(0x3,a['Inject'](u[_0x30e513(0x2ef)]))],Q);const Yt=_0x30e513(0x22c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x12b289,_0x45f1d2,_0x4e30a7,_0x22f550)=>{for(var _0x481972=_0x22f550>0x1?void 0x0:_0x22f550?Ht(_0x45f1d2,_0x4e30a7):_0x45f1d2,_0x54df02=_0x12b289['length']-0x1,_0x57af4c;_0x54df02>=0x0;_0x54df02--)(_0x57af4c=_0x12b289[_0x54df02])&&(_0x481972=_0x57af4c(_0x481972)||_0x481972);return _0x481972;},Ae=(_0x4743eb,_0x1160de)=>(_0x2ab03f,_0x53bcb5)=>_0x1160de(_0x2ab03f,_0x53bcb5,_0x4743eb);let ee=class{constructor(_0x27cf12,_0x21e819){const _0x3c8620=_0x30e513;this[_0x3c8620(0x3fc)]=_0x27cf12,this['_renderManagerService']=_0x21e819;}[_0x30e513(0x2c8)](_0x261b78){const _0x5c0489=_0x30e513;this[_0x5c0489(0x436)](_0x261b78),this[_0x5c0489(0x28e)](_0x261b78);}['transformRemoteChangeset'](_0x2a3b51){const _0x4d7ef6=_0x30e513,{unitID:_0x2fcd7c}=_0x2a3b51,_0x15b91b=this[_0x4d7ef6(0x47d)][_0x4d7ef6(0x208)](_0x2fcd7c)[_0x4d7ef6(0x283)](T['DocIMEInputManagerService']),{redoCache:_0x2a1834}=_0x15b91b[_0x4d7ef6(0x3f4)]();if(_0x2a1834['length']===0x0)return _0x2a3b51;let _0x26ecc5=a[_0x4d7ef6(0x401)][_0x4d7ef6(0x3da)](_0x2a3b51[_0x4d7ef6(0x2f0)][0x0]);for(let _0x17f4be=0x0;_0x17f4be<_0x2a1834['length'];_0x17f4be++){const _0x5700c1={'id':'doc.mutation.rich-text-editing','params':{..._0x2a1834[_0x17f4be]}},_0x211b79=this['_transformService'][_0x4d7ef6(0x429)](_0x26ecc5,_0x5700c1,!0x1);if(g[_0x4d7ef6(0x365)](_0x211b79))throw _0x211b79[_0x4d7ef6(0x244)];_0x26ecc5=_0x211b79[_0x4d7ef6(0x33d)];}return{...a[_0x4d7ef6(0x401)][_0x4d7ef6(0x3da)](_0x2a3b51),'mutations':[_0x26ecc5]};}[_0x30e513(0x436)](_0x297ddc){const _0x294f96=_0x30e513,{unitID:_0x47ee73}=_0x297ddc,_0x5c73d1=this[_0x294f96(0x47d)]['getRenderById'](_0x47ee73)['with'](T[_0x294f96(0x26b)]),{undoCache:_0x2fdf3d,redoCache:_0x12fb8c}=_0x5c73d1[_0x294f96(0x3f4)]();if(_0x2fdf3d[_0x294f96(0x457)]===0x0||_0x12fb8c[_0x294f96(0x457)]===0x0)return;const _0x447705=[],_0x31bdc3=[];let _0x4a7f9d=a[_0x294f96(0x401)]['deepClone'](_0x297ddc[_0x294f96(0x2f0)][0x0]),_0x41302=a[_0x294f96(0x401)]['deepClone'](_0x297ddc[_0x294f96(0x2f0)][0x0]);for(let _0xd5e126=_0x2fdf3d['length']-0x1;_0xd5e126>=0x0;_0xd5e126--){const _0x3fb1ab={'id':_0x294f96(0x30c),'params':{..._0x2fdf3d[_0xd5e126]}},_0x41825f={'id':_0x294f96(0x30c),'params':{..._0x12fb8c[_0xd5e126]}},_0x3c5875=this[_0x294f96(0x3fc)][_0x294f96(0x429)](_0x4a7f9d,_0x3fb1ab,!0x1),_0x52b2a5=this[_0x294f96(0x3fc)][_0x294f96(0x429)](_0x41302,_0x41825f,!0x1);if(g[_0x294f96(0x365)](_0x3c5875))throw _0x3c5875[_0x294f96(0x244)];if(g[_0x294f96(0x365)](_0x52b2a5))throw _0x52b2a5[_0x294f96(0x244)];_0x447705['unshift'](_0x3c5875[_0x294f96(0x336)]['params']),_0x31bdc3[_0x294f96(0x3b9)](_0x52b2a5[_0x294f96(0x336)][_0x294f96(0x450)]),_0x4a7f9d=_0x3c5875[_0x294f96(0x33d)],_0x41302=_0x52b2a5[_0x294f96(0x33d)];}_0x5c73d1[_0x294f96(0x2ad)]({'undoCache':_0x447705,'redoCache':_0x31bdc3});}[_0x30e513(0x28e)](_0x54f894){const _0x8cf38e=_0x30e513,{unitID:_0x2ec4f8}=_0x54f894,_0x30f7d1=this['_renderManagerService']['getRenderById'](_0x2ec4f8)[_0x8cf38e(0x283)](T[_0x8cf38e(0x26b)]),_0x3aa3a8=_0x30f7d1[_0x8cf38e(0x22a)]();if(_0x3aa3a8==null)return;const _0x57cfe3=[{'id':_0x8cf38e(0x30c),'params':{'unitId':_0x54f894[_0x8cf38e(0x3ea)],'actions':null,'textRanges':[_0x3aa3a8]}}],_0x746b35=this['_transformService'][_0x8cf38e(0x2d5)](_0x54f894,_0x57cfe3);if(!g[_0x8cf38e(0x32a)](_0x746b35))throw _0x746b35['error'];const _0x252ed1=_0x746b35['m2Prime'][0x0][_0x8cf38e(0x450)][_0x8cf38e(0x33f)];Array[_0x8cf38e(0x212)](_0x252ed1)&&_0x252ed1[_0x8cf38e(0x457)]&&_0x30f7d1[_0x8cf38e(0x214)](_0x252ed1[0x0]);}};ee=Wt([Ae(0x0,g[_0x30e513(0x252)]),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x30e513(0x45b)],Gt=(_0x57e4d9,_0x394bf1,_0x90c69b,_0x1cf7ac)=>{const _0x2c221c=_0x30e513;for(var _0x37a6b6=_0x1cf7ac>0x1?void 0x0:_0x1cf7ac?Vt(_0x394bf1,_0x90c69b):_0x394bf1,_0x3b83c5=_0x57e4d9[_0x2c221c(0x457)]-0x1,_0x1542b1;_0x3b83c5>=0x0;_0x3b83c5--)(_0x1542b1=_0x57e4d9[_0x3b83c5])&&(_0x37a6b6=_0x1542b1(_0x37a6b6)||_0x37a6b6);return _0x37a6b6;},Ie=(_0x4e08b5,_0x1dfac5)=>(_0x42265d,_0xad5ecb)=>_0x1dfac5(_0x42265d,_0xad5ecb,_0x4e08b5);let te=class{constructor(_0x3dcadb,_0x3af1ae,_0x59f3e0){const _0x332cd0=_0x30e513;this['_injector']=_0x3dcadb,this['_transformService']=_0x3af1ae,this[_0x332cd0(0x466)]=_0x59f3e0;}[_0x30e513(0x3d0)](_0x59e488){const _0x46d691=_0x30e513;this[_0x46d691(0x2d7)](_0x59e488);}[_0x30e513(0x21d)](_0x546711){const _0x3d3dd8=_0x30e513,{unitID:_0x3402ef}=_0x546711,{collaboration:_0x202799}=this[_0x3d3dd8(0x466)]['getStateCache'](_0x3402ef);if(_0x202799['length']===0x0)return _0x546711;let _0x1e9df0=a['Tools'][_0x3d3dd8(0x3da)](_0x546711['mutations'][0x0]);for(let _0x4ee605=0x0;_0x4ee605<_0x202799[_0x3d3dd8(0x457)];_0x4ee605++){const _0x12b229={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x202799[_0x4ee605][_0x3d3dd8(0x4a1)],..._0x202799[_0x4ee605][_0x3d3dd8(0x496)]}},_0x58912b=this[_0x3d3dd8(0x3fc)][_0x3d3dd8(0x429)](_0x1e9df0,_0x12b229,!0x1);if(g[_0x3d3dd8(0x365)](_0x58912b))throw _0x58912b[_0x3d3dd8(0x244)];_0x1e9df0=_0x58912b[_0x3d3dd8(0x33d)];}return{...a['Tools'][_0x3d3dd8(0x3da)](_0x546711),'mutations':[_0x1e9df0]};}[_0x30e513(0x2d7)](_0x489c24){const _0x4b2eea=_0x30e513,{unitID:_0x4c9d8c}=_0x489c24,{history:_0x314379,collaboration:_0x2c3c9c}=this[_0x4b2eea(0x466)][_0x4b2eea(0x3ce)](_0x4c9d8c);if(_0x314379['length']===0x0&&_0x2c3c9c[_0x4b2eea(0x457)]===0x0)return;const _0x27aecd=[],_0x174106=[];let _0x16d335=a[_0x4b2eea(0x401)]['deepClone'](_0x489c24[_0x4b2eea(0x2f0)][0x0]),_0x244dba=a[_0x4b2eea(0x401)][_0x4b2eea(0x3da)](_0x489c24['mutations'][0x0]);for(let _0x2c20d5=_0x314379[_0x4b2eea(0x457)]-0x1;_0x2c20d5>=0x0;_0x2c20d5--){const _0x25d124={'id':_0x4b2eea(0x30c),'params':{'unitId':_0x314379[_0x2c20d5][_0x4b2eea(0x4a1)],..._0x314379[_0x2c20d5]['undoState']}},_0xafd389={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x314379[_0x2c20d5][_0x4b2eea(0x4a1)],..._0x314379[_0x2c20d5]['redoState']}},_0x3134c7=this[_0x4b2eea(0x3fc)][_0x4b2eea(0x429)](_0x16d335,_0x25d124,!0x1),_0x2deda3=this['_transformService']['transformMutation'](_0x244dba,_0xafd389,!0x1);if(g[_0x4b2eea(0x365)](_0x3134c7))throw _0x3134c7['error'];if(g[_0x4b2eea(0x365)](_0x2deda3))throw _0x2deda3[_0x4b2eea(0x244)];_0x27aecd[_0x4b2eea(0x3b9)]({..._0x314379[_0x2c20d5],'undoState':_0x3134c7[_0x4b2eea(0x336)][_0x4b2eea(0x450)],'redoState':_0x2deda3[_0x4b2eea(0x336)][_0x4b2eea(0x450)]}),_0x16d335=_0x3134c7[_0x4b2eea(0x33d)],_0x244dba=_0x2deda3[_0x4b2eea(0x33d)];}_0x16d335=a[_0x4b2eea(0x401)]['deepClone'](_0x489c24[_0x4b2eea(0x2f0)][0x0]),_0x244dba=a[_0x4b2eea(0x401)][_0x4b2eea(0x3da)](_0x489c24[_0x4b2eea(0x2f0)][0x0]);for(let _0x329949=_0x2c3c9c[_0x4b2eea(0x457)]-0x1;_0x329949>=0x0;_0x329949--){const _0x2fa36b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c3c9c[_0x329949][_0x4b2eea(0x4a1)],..._0x2c3c9c[_0x329949][_0x4b2eea(0x403)]}},_0x3fa9b8={'id':_0x4b2eea(0x30c),'params':{'unitId':_0x2c3c9c[_0x329949][_0x4b2eea(0x4a1)],..._0x2c3c9c[_0x329949]['redoState']}},_0xee5c3a=this['_transformService'][_0x4b2eea(0x429)](_0x16d335,_0x2fa36b,!0x1),_0x115952=this[_0x4b2eea(0x3fc)][_0x4b2eea(0x429)](_0x244dba,_0x3fa9b8,!0x1);if(g[_0x4b2eea(0x365)](_0xee5c3a))throw _0xee5c3a[_0x4b2eea(0x244)];if(g[_0x4b2eea(0x365)](_0x115952))throw _0x115952[_0x4b2eea(0x244)];_0x174106[_0x4b2eea(0x3b9)]({..._0x2c3c9c[_0x329949],'undoState':_0xee5c3a[_0x4b2eea(0x336)][_0x4b2eea(0x450)],'redoState':_0x115952['m2Prime']['params']}),_0x16d335=_0xee5c3a['m1Prime'],_0x244dba=_0x115952[_0x4b2eea(0x33d)];}this[_0x4b2eea(0x466)]['setStateCache'](_0x4c9d8c,{'history':_0x27aecd,'collaboration':_0x174106});}};te=Gt([Ie(0x0,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x30e513(0x3f5)](T[_0x30e513(0x474)]))],te);var Xt=Object[_0x30e513(0x45b)],Kt=(_0x4c4f95,_0x4911e4,_0x3cfac2,_0x3001a2)=>{for(var _0x323092=_0x3001a2>0x1?void 0x0:_0x3001a2?Xt(_0x4911e4,_0x3cfac2):_0x4911e4,_0x24539c=_0x4c4f95['length']-0x1,_0x3ab761;_0x24539c>=0x0;_0x24539c--)(_0x3ab761=_0x4c4f95[_0x24539c])&&(_0x323092=_0x3ab761(_0x323092)||_0x323092);return _0x323092;},Pe=(_0x5620b9,_0x3f22d8)=>(_0x3b86fd,_0x338612)=>_0x3f22d8(_0x3b86fd,_0x338612,_0x5620b9);let se=class{constructor(_0x9b0927,_0x45143f){const _0x2ecc20=_0x30e513;this['_injector']=_0x9b0927,this[_0x2ecc20(0x3fc)]=_0x45143f;}['transformSelections'](_0x348213){const _0x2fc302=_0x30e513;var _0x2c7903;const _0x28a5dc=this[_0x2fc302(0x23e)][_0x2fc302(0x3a9)](V[_0x2fc302(0x1fb)]),_0x42715a=(_0x2c7903=_0x28a5dc[_0x2fc302(0x383)]())!=null?_0x2c7903:[];if(_0x42715a['length']===0x0)return;const _0x2418b7=_0x348213[_0x2fc302(0x3ea)],_0x4be6b4=[{'id':_0x2fc302(0x30c),'params':{'unitId':_0x2418b7,'actions':null,'textRanges':_0x42715a}}],_0x2a8ef2=this[_0x2fc302(0x3fc)]['transformMutationsWithChangeset'](_0x348213,_0x4be6b4);if(!g['isTransformMutationsWithChangesetSuccess'](_0x2a8ef2))throw _0x2a8ef2[_0x2fc302(0x244)];const _0x152922=_0x2a8ef2[_0x2fc302(0x336)][0x0][_0x2fc302(0x450)][_0x2fc302(0x33f)];Array['isArray'](_0x152922)&&_0x152922['length']&&_0x28a5dc[_0x2fc302(0x310)](_0x152922,{'unitId':_0x2418b7,'subUnitId':_0x2418b7},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x30e513(0x3e9)])),Pe(0x1,g[_0x30e513(0x252)])],se);var qt=Object[_0x30e513(0x45b)],zt=(_0x47b44b,_0x2992fa,_0x325f30,_0x316140)=>{for(var _0x154a9d=_0x316140>0x1?void 0x0:_0x316140?qt(_0x2992fa,_0x325f30):_0x2992fa,_0x4c6ef8=_0x47b44b['length']-0x1,_0x162e73;_0x4c6ef8>=0x0;_0x4c6ef8--)(_0x162e73=_0x47b44b[_0x4c6ef8])&&(_0x154a9d=_0x162e73(_0x154a9d)||_0x154a9d);return _0x154a9d;},N=(_0x23fa71,_0x5be5ce)=>(_0x37770c,_0x67be26)=>_0x5be5ce(_0x37770c,_0x67be26,_0x23fa71);let ie=class extends a[_0x30e513(0x3c0)]{constructor(_0x1aece9,_0x2802fe,_0x28ec41,_0x2ad414,_0x15461b,_0x260f5a,_0xf3b3b4,_0x6dd3){const _0x1efbef=_0x30e513;super(),_(this,_0x1efbef(0x3ae),new I[(_0x1efbef(0x213))](u[_0x1efbef(0x35d)]['NOT_COLLAB'])),(this[_0x1efbef(0x466)]=_0x1aece9,this[_0x1efbef(0x227)]=_0x2802fe,this[_0x1efbef(0x35e)]=_0x28ec41,this['_docTransformStateCacheService']=_0x2ad414,this[_0x1efbef(0x248)]=_0x15461b,this['_docSyncEditingCollabCursorService']=_0x260f5a,this[_0x1efbef(0x3b3)]=_0xf3b3b4,this['_localeService']=_0x6dd3,this[_0x1efbef(0x3cf)]());}[_0x30e513(0x3cf)](){const _0xec0f69=_0x30e513;this[_0xec0f69(0x2eb)](this[_0xec0f69(0x227)][_0xec0f69(0x49f)][_0xec0f69(0x376)](_0x388c27=>{const _0x4bb1e3=_0xec0f69,_0x102959=this[_0x4bb1e3(0x466)][_0x4bb1e3(0x2cc)][_0x4bb1e3(0x376)](_0x490a0a=>{const _0x3ad4bb=_0x4bb1e3;if(_0x490a0a==null)return;const {unitId:_0x585dbb,redoState:_0x1804c5,commandId:_0x20b4b5}=_0x490a0a;if(_0x585dbb!==_0x388c27[_0x3ad4bb(0x3ea)])return;const _0x476b8d={'id':_0x20b4b5,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x585dbb,'actions':_0x1804c5[_0x3ad4bb(0x37b)],'textRanges':null}};_0x388c27[_0x3ad4bb(0x425)](_0x476b8d);});if(_0x388c27['disposeWithMe'](_0x102959),_0x388c27 instanceof u[_0x4bb1e3(0x2bf)]){const _0x49b1e3={'onTransformIME':_0x629ed4=>this[_0x4bb1e3(0x35e)][_0x4bb1e3(0x2c8)](_0x629ed4),'onTransformState':_0x3b0269=>this[_0x4bb1e3(0x282)]['transformStateCache'](_0x3b0269),'onTransformSelections':_0x28b2e9=>this['_docTransformSelectionsService'][_0x4bb1e3(0x4a5)](_0x28b2e9),'onSyncEditingCollabCursor':_0x117e03=>this[_0x4bb1e3(0x38a)][_0x4bb1e3(0x395)](_0x117e03),'onTransformRemoteChangesetByIMECache':_0x43440b=>this[_0x4bb1e3(0x35e)][_0x4bb1e3(0x21d)](_0x43440b),'onTransformRemoteChangesetByStateCache':_0x2563ed=>this[_0x4bb1e3(0x282)]['transformRemoteChangeset'](_0x2563ed)};_0x388c27['addHandlerCallback'](_0x49b1e3);}}));}};ie=zt([N(0x0,a[_0x30e513(0x3f5)](T[_0x30e513(0x474)])),N(0x1,a[_0x30e513(0x3f5)](u[_0x30e513(0x45d)])),N(0x2,a[_0x30e513(0x3f5)](ee)),N(0x3,a[_0x30e513(0x3f5)](te)),N(0x4,a[_0x30e513(0x3f5)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x30e513(0x449)]),N(0x7,a[_0x30e513(0x3f5)](a[_0x30e513(0x317)]))],ie);var G=(_0x32094e=>(_0x32094e[_0x32094e[_0x30e513(0x42e)]=0x0]=_0x30e513(0x42e),_0x32094e[_0x32094e['OK']=0x1]='OK',_0x32094e[_0x32094e['INTERNAL_ERROR']=0x2]=_0x30e513(0x3af),_0x32094e[_0x32094e[_0x30e513(0x377)]=0x3]=_0x30e513(0x377),_0x32094e[_0x32094e[_0x30e513(0x3c7)]=0x4]=_0x30e513(0x3c7),_0x32094e[_0x32094e[_0x30e513(0x279)]=0x5]=_0x30e513(0x279),_0x32094e[_0x32094e[_0x30e513(0x31f)]=0x6]=_0x30e513(0x31f),_0x32094e[_0x32094e[_0x30e513(0x4be)]=0x7]='INVALID_ARGUMENT',_0x32094e[_0x32094e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x32094e[_0x32094e[_0x30e513(0x446)]=0x9]='COMPLETION_FINISHED',_0x32094e[_0x32094e[_0x30e513(0x2e1)]=0xa]='LOGIN_FAILED',_0x32094e[_0x32094e[_0x30e513(0x39e)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x32094e[_0x32094e[_0x30e513(0x3cd)]=0xc]=_0x30e513(0x3cd),_0x32094e[_0x32094e['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x32094e[_0x32094e[_0x30e513(0x34c)]=0xe]=_0x30e513(0x34c),_0x32094e[_0x32094e[_0x30e513(0x3b4)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x32094e[_0x32094e[_0x30e513(0x2dd)]=0x10]=_0x30e513(0x2dd),_0x32094e[_0x32094e[_0x30e513(0x40d)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x32094e[_0x32094e[_0x30e513(0x255)]=0x65]=_0x30e513(0x255),_0x32094e[_0x32094e[_0x30e513(0x385)]=0xc9]=_0x30e513(0x385),_0x32094e[_0x32094e[_0x30e513(0x2b1)]=0xca]='USER_IS_ANONYMOUS',_0x32094e[_0x32094e[_0x30e513(0x4a0)]=0x1389]=_0x30e513(0x4a0),_0x32094e[_0x32094e[_0x30e513(0x41b)]=0x1771]=_0x30e513(0x41b),_0x32094e[_0x32094e[_0x30e513(0x333)]=0x1772]=_0x30e513(0x333),_0x32094e[_0x32094e[_0x30e513(0x331)]=0x1773]=_0x30e513(0x331),_0x32094e[_0x32094e[_0x30e513(0x455)]=0x1b59]=_0x30e513(0x455),_0x32094e[_0x32094e[_0x30e513(0x35b)]=0x1b5a]=_0x30e513(0x35b),_0x32094e[_0x32094e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30e513(0x46d),_0x32094e[_0x32094e['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x32094e[_0x32094e[_0x30e513(0x20e)]=0x1b5d]='APPLY_DUPLICATED',_0x32094e[_0x32094e[_0x30e513(0x4b0)]=0x1f41]=_0x30e513(0x4b0),_0x32094e[_0x32094e[_0x30e513(0x48e)]=0x2329]=_0x30e513(0x48e),_0x32094e[_0x32094e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x30e513(0x3a6),_0x32094e[_0x32094e[_0x30e513(0x318)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x32094e[_0x32094e[_0x30e513(0x2ea)]=0x232c]=_0x30e513(0x2ea),_0x32094e[_0x32094e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x32094e[_0x32094e[_0x30e513(0x44e)]=0x2711]=_0x30e513(0x44e),_0x32094e[_0x32094e[_0x30e513(0x498)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x32094e[_0x32094e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x30e513(0x3ed),_0x32094e[_0x32094e[_0x30e513(0x22f)]=0x2714]=_0x30e513(0x22f),_0x32094e[_0x32094e[_0x30e513(0x3b6)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x32094e[_0x32094e[_0x30e513(0x459)]=0x271b]=_0x30e513(0x459),_0x32094e[_0x32094e['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x30e513(0x324),_0x32094e[_0x32094e[_0x30e513(0x492)]=0x271d]=_0x30e513(0x492),_0x32094e[_0x32094e['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x30e513(0x259),_0x32094e[_0x32094e[_0x30e513(0x369)]=0x271f]=_0x30e513(0x369),_0x32094e[_0x32094e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x30e513(0x3eb),_0x32094e[_0x32094e[_0x30e513(0x3e4)]=0x2af9]=_0x30e513(0x3e4),_0x32094e[_0x32094e[_0x30e513(0x3a0)]=0x2ee1]=_0x30e513(0x3a0),_0x32094e[_0x32094e[_0x30e513(0x3e3)]=0x2ee2]='INVALID_INVITE_CODE',_0x32094e[_0x32094e['INVITE_CODE_REQUIRED']=0x2ee3]=_0x30e513(0x236),_0x32094e[_0x32094e[_0x30e513(0x4a7)]=0x2ee4]=_0x30e513(0x4a7),_0x32094e[_0x32094e[_0x30e513(0x396)]=0x2ee5]=_0x30e513(0x396),_0x32094e[_0x32094e[_0x30e513(0x2de)]=0x32c9]=_0x30e513(0x2de),_0x32094e[_0x32094e[_0x30e513(0x4bf)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x32094e[_0x32094e['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x30e513(0x30a),_0x32094e[_0x32094e[_0x30e513(0x2a0)]=0x36b1]=_0x30e513(0x2a0),_0x32094e[_0x32094e['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x30e513(0x451),_0x32094e[_0x32094e[_0x30e513(0x3f7)]=0x36b3]=_0x30e513(0x3f7),_0x32094e[_0x32094e[_0x30e513(0x21b)]=0x36b4]=_0x30e513(0x21b),_0x32094e[_0x32094e[_0x30e513(0x321)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x32094e[_0x32094e[_0x30e513(0x42a)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x32094e[_0x32094e[_0x30e513(0x225)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x32094e[_0x32094e[_0x30e513(0x4bc)]=0x36b8]=_0x30e513(0x4bc),_0x32094e[_0x32094e[_0x30e513(0x456)]=0x3715]=_0x30e513(0x456),_0x32094e[_0x32094e[_0x30e513(0x437)]=0x3716]=_0x30e513(0x437),_0x32094e[_0x32094e[_0x30e513(0x4a2)]=0x3717]=_0x30e513(0x4a2),_0x32094e[_0x32094e[_0x30e513(0x3e6)]=0x37dd]=_0x30e513(0x3e6),_0x32094e[_0x32094e[_0x30e513(0x32b)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x32094e[_0x32094e[_0x30e513(0x3a3)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x32094e[_0x32094e[_0x30e513(0x271)]=0x3a9b]=_0x30e513(0x271),_0x32094e[_0x32094e[_0x30e513(0x209)]=0x3a9c]=_0x30e513(0x209),_0x32094e[_0x32094e['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x30e513(0x339),_0x32094e[_0x32094e[_0x30e513(0x2aa)]=0x3a9e]=_0x30e513(0x2aa),_0x32094e[_0x32094e[_0x30e513(0x3bc)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x32094e[_0x32094e['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x32094e[_0x32094e[_0x30e513(0x28d)]=-0x1]=_0x30e513(0x28d),_0x32094e))(G||{});function Jt(_0x21fe7e){const _0x3aca82=_0x30e513;var _0x2bad81,_0x31eb45;const _0x1b37a8=(_0x2bad81=_0x21fe7e['stageInfo'])==null?void 0x0:_0x2bad81[_0x3aca82(0x32d)],_0x2dcc86=((_0x31eb45=_0x21fe7e[_0x3aca82(0x36f)])==null?void 0x0:_0x31eb45['totalFormulasToCalculate'])||0x0;return _0x1b37a8===B[_0x3aca82(0x261)][_0x3aca82(0x372)]&&_0x2dcc86>0x0;}function Zt(_0x4ca2d8){const _0x520afd=_0x30e513;return _0x4ca2d8[_0x520afd(0x337)]===B[_0x520afd(0x2c2)][_0x520afd(0x3d6)];}var Qt=Object[_0x30e513(0x45b)],es=(_0x568ed0,_0x2685c0,_0x16f755,_0x2e6e57)=>{const _0x44831c=_0x30e513;for(var _0x5758d5=_0x2e6e57>0x1?void 0x0:_0x2e6e57?Qt(_0x2685c0,_0x16f755):_0x2685c0,_0x33f739=_0x568ed0[_0x44831c(0x457)]-0x1,_0x1b1b63;_0x33f739>=0x0;_0x33f739--)(_0x1b1b63=_0x568ed0[_0x33f739])&&(_0x5758d5=_0x1b1b63(_0x5758d5)||_0x5758d5);return _0x5758d5;},L=(_0x411cea,_0x5a9670)=>(_0x20ac93,_0x22a0e6)=>_0x5a9670(_0x20ac93,_0x22a0e6,_0x411cea);const ts=_0x30e513(0x201),ss=_0x30e513(0x2bd),is=_0x30e513(0x4b5);let ne=class extends a['Disposable']{constructor(_0x5b8a35,_0x2cce5a,_0x18e3f7,_0x599b01,_0x4a4ad8,_0x2e20a7,_0x5214a0){const _0x1eaad9=_0x30e513;super(),_(this,'_pollingInterval',null),_(this,_0x1eaad9(0x32e),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x1eaad9(0x3ad),0x0),(this[_0x1eaad9(0x3b3)]=_0x5b8a35,this[_0x1eaad9(0x289)]=_0x2cce5a,this[_0x1eaad9(0x3a4)]=_0x18e3f7,this['_httpService']=_0x599b01,this[_0x1eaad9(0x4b1)]=_0x4a4ad8,this[_0x1eaad9(0x479)]=_0x2e20a7,this[_0x1eaad9(0x329)]=_0x5214a0,this[_0x1eaad9(0x2d1)]());}[_0x30e513(0x2d1)](){const _0x5f4aeb=_0x30e513;this['disposeWithMe'](this[_0x5f4aeb(0x289)]['beforeCommandExecuted']((_0x2973ce,_0x2b2cf6)=>{const _0xc99c19=_0x5f4aeb;var _0x59e549;if(_0x2973ce['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x641a6c=_0x2973ce['params'];if(!this['_hasFormulaInDirtyRanges']((_0x59e549=_0x641a6c[_0xc99c19(0x461)])!=null?_0x59e549:[]))return;if(!this[_0xc99c19(0x407)]())throw this[_0xc99c19(0x3e8)](_0x2973ce,_0x2b2cf6),this[_0xc99c19(0x468)](),new a[(_0xc99c19(0x1f3))]();})),this['disposeWithMe'](this[_0x5f4aeb(0x289)]['onCommandExecuted']((_0x5162cf,_0x1bd9c8)=>{const _0x3db9b8=_0x5f4aeb;if(_0x5162cf['id']!==B[_0x3db9b8(0x3ab)]['id'])return;const _0x2593f6=_0x5162cf[_0x3db9b8(0x450)];if(Jt(_0x2593f6)){const _0x5d36c5=a[_0x3db9b8(0x301)]();this['_taskIds'][_0x3db9b8(0x293)](_0x5d36c5),this[_0x3db9b8(0x2e5)](_0x5d36c5);}else{if(Zt(_0x2593f6)&&this[_0x3db9b8(0x375)][_0x3db9b8(0x457)]>0x0){const _0x47c94b=this[_0x3db9b8(0x375)]['shift']();this[_0x3db9b8(0x358)](_0x47c94b);}}}));}[_0x30e513(0x3d7)](){const _0x48c16c=_0x30e513;super[_0x48c16c(0x3d7)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x48c16c(0x48c)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x48c16c(0x3ad)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x13e9a6,_0x32027f){const _0xee9dd2=_0x30e513;for(let _0x19be50=0x0;_0x19be50<0x1e;_0x19be50++)try{if(await this[_0xee9dd2(0x2dc)](),this['_checkCalculationAvailable']()){this[_0xee9dd2(0x325)](_0x13e9a6,_0x32027f),this[_0xee9dd2(0x3b3)][_0xee9dd2(0x258)]({'content':this[_0xee9dd2(0x329)]['t'](_0xee9dd2(0x399)),'type':p[_0xee9dd2(0x263)][_0xee9dd2(0x26d)]});return;}await new Promise(_0x596ad5=>{const _0x3bf7af=_0xee9dd2;this[_0x3bf7af(0x4aa)]=window[_0x3bf7af(0x35c)](_0x596ad5,0x3e8);});}catch(_0x20dceb){this['_logService']['error'](_0x20dceb);}this[_0xee9dd2(0x3b3)][_0xee9dd2(0x258)]({'content':this[_0xee9dd2(0x329)]['t']('formula.calculation.unable'),'type':p[_0xee9dd2(0x263)][_0xee9dd2(0x3d8)]});}[_0x30e513(0x325)](_0x8ca294,_0x3b093c){const _0xfe903f=_0x30e513;try{this['_commandService'][_0xfe903f(0x478)](_0x8ca294['id'],_0x8ca294['params'],_0x3b093c);}catch(_0x20f243){this[_0xfe903f(0x479)][_0xfe903f(0x244)](_0x20f243);}}[_0x30e513(0x3a5)](_0x1be274,_0x276ab0){const _0xb9ba3d=_0x30e513;_0x276ab0<this[_0xb9ba3d(0x3ad)]||(this[_0xb9ba3d(0x3ad)]=_0x276ab0,this[_0xb9ba3d(0x32e)]=Number[_0xb9ba3d(0x484)](_0x1be274['maxFormulaLimit']),this['_currentUsage']=Number['parseInt'](_0x1be274['currentUsage']));}async[_0x30e513(0x2e5)](_0x30fad6){const _0x1662ec=_0x30e513;var _0x36ebdc,_0x737e76;const _0xe3510f=Date[_0x1662ec(0x20a)]();try{const _0x2b2e43=((_0x36ebdc=this['_configService'][_0x1662ec(0x2f5)](u[_0x1662ec(0x351)]))==null?void 0x0:_0x36ebdc[_0x1662ec(0x345)])||ss,_0x2ba344=(await this[_0x1662ec(0x4ab)]['post'](_0x2b2e43,{'body':JSON[_0x1662ec(0x37d)]({'taskId':_0x30fad6})}))[_0x1662ec(0x3c8)];if(((_0x737e76=_0x2ba344[_0x1662ec(0x244)])==null?void 0x0:_0x737e76['code'])!==G['OK'])return;this[_0x1662ec(0x3a5)](_0x2ba344[_0x1662ec(0x3c9)],_0xe3510f);}catch(_0x4de578){this[_0x1662ec(0x479)]['error'](_0x4de578);}}async['_getFormulaLimitStatus'](_0x4bfbbe){const _0x19fda1=_0x30e513;var _0x368fe1,_0x3387b3;const _0xbc4679=Date[_0x19fda1(0x20a)]();try{const _0x3cf428=((_0x368fe1=this[_0x19fda1(0x3a4)][_0x19fda1(0x2f5)](u[_0x19fda1(0x351)]))==null?void 0x0:_0x368fe1[_0x19fda1(0x344)])||ts,_0x474aad=_0x4bfbbe?_0x3cf428+'?taskId='+encodeURIComponent(_0x4bfbbe):_0x3cf428,_0x3ca951=(await this[_0x19fda1(0x4ab)][_0x19fda1(0x3a9)](_0x474aad))[_0x19fda1(0x3c8)];if(((_0x3387b3=_0x3ca951[_0x19fda1(0x244)])==null?void 0x0:_0x3387b3[_0x19fda1(0x36d)])!==G['OK'])return;this[_0x19fda1(0x3a5)](_0x3ca951[_0x19fda1(0x3c9)],_0xbc4679);}catch(_0x1f9d84){this['_logService'][_0x19fda1(0x244)](_0x1f9d84);}}async['_releaseCalculationLimit'](_0x500dca){const _0x13f708=_0x30e513;var _0x556f26,_0x37e77c;const _0x463b90=Date[_0x13f708(0x20a)]();try{const _0x4f53a7=((_0x556f26=this[_0x13f708(0x3a4)][_0x13f708(0x2f5)](u[_0x13f708(0x351)]))==null?void 0x0:_0x556f26[_0x13f708(0x36a)])||is,_0x1d1b9d=(await this[_0x13f708(0x4ab)][_0x13f708(0x27c)](_0x4f53a7,{'body':JSON[_0x13f708(0x37d)]({'taskId':_0x500dca})}))[_0x13f708(0x3c8)];if(((_0x37e77c=_0x1d1b9d['error'])==null?void 0x0:_0x37e77c['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1d1b9d[_0x13f708(0x3c9)],_0x463b90);}catch(_0x39e1a3){this[_0x13f708(0x479)][_0x13f708(0x244)](_0x39e1a3);}}['_checkCalculationAvailable'](){const _0x52c716=_0x30e513;return this[_0x52c716(0x32e)]===0x0?!0x0:this[_0x52c716(0x32e)]-this[_0x52c716(0x48c)]>0x0;}[_0x30e513(0x21f)](){const _0x50c5f8=_0x30e513;this[_0x50c5f8(0x4aa)]&&(clearTimeout(this[_0x50c5f8(0x4aa)]),this[_0x50c5f8(0x4aa)]=null);}['_showGuardMessage'](){const _0x17f9ca=_0x30e513;this[_0x17f9ca(0x3b3)]['show']({'content':this['_localeService']['t'](_0x17f9ca(0x359)),'type':p['MessageType'][_0x17f9ca(0x2a4)]});}['_hasFormulaInDirtyRanges'](_0x5b2517){const _0x14cd0f=_0x30e513;for(const _0x2c667b of _0x5b2517){const {unitId:_0x4ba3a9,sheetId:_0xe8fb92,range:_0x4b9d16}=_0x2c667b,_0x24e9b6=this[_0x14cd0f(0x4b1)]['getUnit'](_0x4ba3a9);if(!_0x24e9b6)continue;const _0x8e65d0=_0x24e9b6[_0x14cd0f(0x3fb)](_0xe8fb92);if(!_0x8e65d0)continue;const _0x218211=_0x8e65d0[_0x14cd0f(0x45c)]();for(let _0x1b607e=_0x4b9d16[_0x14cd0f(0x2a9)];_0x1b607e<=_0x4b9d16['endRow'];_0x1b607e++)for(let _0x2b4422=_0x4b9d16['startColumn'];_0x2b4422<=_0x4b9d16['endColumn'];_0x2b4422++){const _0x4c40d7=_0x218211[_0x14cd0f(0x237)](_0x1b607e,_0x2b4422);if(_0x4c40d7&&(a[_0x14cd0f(0x29a)](_0x4c40d7['f'])||a[_0x14cd0f(0x33e)](_0x4c40d7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O['IMessageService'])),L(0x1,a[_0x30e513(0x40a)]),L(0x2,a['IConfigService']),L(0x3,a[_0x30e513(0x3f5)](x['HTTPService'])),L(0x4,a[_0x30e513(0x202)]),L(0x5,a[_0x30e513(0x1f5)]),L(0x6,a[_0x30e513(0x3f5)](a[_0x30e513(0x317)]))],ne);var ns=Object[_0x30e513(0x45b)],rs=(_0x484e78,_0x7bac53,_0x165627,_0x217ec4)=>{const _0x243612=_0x30e513;for(var _0xa37ed0=_0x217ec4>0x1?void 0x0:_0x217ec4?ns(_0x7bac53,_0x165627):_0x7bac53,_0x6a2adb=_0x484e78[_0x243612(0x457)]-0x1,_0x2dacbd;_0x6a2adb>=0x0;_0x6a2adb--)(_0x2dacbd=_0x484e78[_0x6a2adb])&&(_0xa37ed0=_0x2dacbd(_0xa37ed0)||_0xa37ed0);return _0xa37ed0;},Se=(_0x8119c7,_0x2bb237)=>(_0x1a4b8e,_0xdaa85f)=>_0x2bb237(_0x1a4b8e,_0xdaa85f,_0x8119c7);let Te=class extends a['Disposable']{constructor(_0x37a5b1,_0x1fe9db,_0x33b5c5){const _0xefe456=_0x30e513;super(),_(this,'_cachedData',new Map()),_(this,_0xefe456(0x305),new Map()),_(this,_0xefe456(0x2ec),!0x1),(this[_0xefe456(0x3a4)]=_0x37a5b1,this[_0xefe456(0x44f)]=_0x1fe9db,this['_revisionService']=_0x33b5c5);}[_0x30e513(0x2a7)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x3dfc09=_0x30e513;this[_0x3dfc09(0x2ec)]=!0x1;}get[_0x30e513(0x3ee)](){const _0x6702d8=_0x30e513;return this[_0x6702d8(0x305)];}[_0x30e513(0x3d7)](){const _0x22e2d6=_0x30e513;this[_0x22e2d6(0x22e)]()[_0x22e2d6(0x343)](()=>super[_0x22e2d6(0x3d7)]());}async[_0x30e513(0x462)](_0x57b493){const _0x3f2a44=_0x30e513;return this[_0x3f2a44(0x2ec)]?null:this[_0x3f2a44(0x44f)][_0x3f2a44(0x38b)](u[_0x3f2a44(0x487)](_0x57b493));}async[_0x30e513(0x348)](_0x1f9ec4,_0x40b2b5){const _0x18c861=_0x30e513;return!!this[_0x18c861(0x44f)][_0x18c861(0x2ab)](_0x1f9ec4,_0x40b2b5);}[_0x30e513(0x448)](_0x4c1db0,_0x15b20d,_0x114ecb,_0x3d0286){const _0x4285ec=_0x30e513,_0x11cb6b=this['_revisionService']['getCurrentRevOfUnit'](_0x4c1db0);this['_cachedData'][_0x4285ec(0x416)](_0x4c1db0,{'unitID':_0x4c1db0,'type':_0x15b20d,'awaitingChangeset':_0x114ecb,'mutations':_0x3d0286,'rev':_0x11cb6b}),this[_0x4285ec(0x305)]['has'](_0x4c1db0)||this[_0x4285ec(0x2cb)](_0x4c1db0);}[_0x30e513(0x2cb)](_0x982444){const _0x6185f9=_0x30e513,_0x4dc5a3=this[_0x6185f9(0x286)]();_0x4dc5a3===0x0?this[_0x6185f9(0x323)](_0x982444):this[_0x6185f9(0x305)][_0x6185f9(0x416)](_0x982444,setTimeout(()=>this[_0x6185f9(0x323)](_0x982444),_0x4dc5a3));}['_getSaveTimeout'](){const _0x2c97ac=_0x30e513;var _0x1481ba;return(_0x1481ba=this[_0x2c97ac(0x3a4)][_0x2c97ac(0x2f5)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1481ba:u['LOCAL_CACHE_INTERVAL'];}[_0x30e513(0x323)](_0xccf11){const _0x2d1e36=_0x30e513,_0x34e71c=this['_saveTaskMap'][_0x2d1e36(0x3a9)](_0xccf11);return _0x34e71c!==void 0x0&&window[_0x2d1e36(0x306)](_0x34e71c),this[_0x2d1e36(0x44f)]['setItem'](u['getLocalCacheKey'](_0xccf11),this[_0x2d1e36(0x2fc)]['get'](_0xccf11))[_0x2d1e36(0x343)](()=>this[_0x2d1e36(0x305)][_0x2d1e36(0x216)](_0xccf11));}async[_0x30e513(0x22e)](){const _0x325735=_0x30e513,_0x624188=[];this[_0x325735(0x305)][_0x325735(0x25c)]((_0x24ca76,_0x264b8f)=>{const _0x5d38a3=_0x325735;window[_0x5d38a3(0x306)](_0x24ca76),_0x624188[_0x5d38a3(0x293)](this[_0x5d38a3(0x323)](_0x264b8f)[_0x5d38a3(0x343)](()=>{const _0x209052=_0x5d38a3;this['_saveTaskMap'][_0x209052(0x216)](_0x264b8f);}));}),await Promise['all'](_0x624188);}};Te=rs([Se(0x0,a[_0x30e513(0x341)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x30e513(0x3f5)](g[_0x30e513(0x251)]))],Te);function _0x2f23(_0x274674,_0x905554){_0x274674=_0x274674-0x1f3;const _0x2ee5de=_0x2ee5();let _0x2f2374=_0x2ee5de[_0x274674];return _0x2f2374;}class ke extends a[_0x30e513(0x2a6)]{constructor(){const _0x1519ad=_0x30e513;super(),_(this,_0x1519ad(0x465)),this['urlChange$']=I[_0x1519ad(0x374)](window,_0x1519ad(0x494))[_0x1519ad(0x485)](I[_0x1519ad(0x367)](this[_0x1519ad(0x3db)]),I[_0x1519ad(0x4af)](0x1),I['mapTo'](void 0x0));}[_0x30e513(0x2d3)](_0x5abb6f,_0x528c1a,_0x38bad1=!0x1){const _0x4c441a=_0x30e513,_0x3395a6=new URL(window['location'][_0x4c441a(0x264)]);_0x3395a6[_0x4c441a(0x493)]['set'](_0x5abb6f,_0x528c1a),_0x38bad1?window['history'][_0x4c441a(0x320)]('','',_0x3395a6['toString']()):window[_0x4c441a(0x469)][_0x4c441a(0x1ff)]('','',_0x3395a6[_0x4c441a(0x2a8)]());}['removeParam'](_0x342dd0,_0x30a8f9=!0x1){const _0x352cd7=_0x30e513,_0x141b5e=new URL(window[_0x352cd7(0x433)][_0x352cd7(0x264)]);_0x141b5e[_0x352cd7(0x493)][_0x352cd7(0x216)](_0x342dd0),_0x30a8f9?window[_0x352cd7(0x469)][_0x352cd7(0x320)]('','',_0x141b5e[_0x352cd7(0x2a8)]()):window[_0x352cd7(0x469)]['pushState']('','',_0x141b5e[_0x352cd7(0x2a8)]());}[_0x30e513(0x482)](_0x514b7f){const _0x536ff0=_0x30e513;var _0x83bac8;return(_0x83bac8=new URL(window[_0x536ff0(0x433)][_0x536ff0(0x264)])[_0x536ff0(0x493)][_0x536ff0(0x3a9)](_0x514b7f))!=null?_0x83bac8:void 0x0;}}var os=Object[_0x30e513(0x200)],as=Object[_0x30e513(0x45b)],cs=(_0x30c0b2,_0x3f17dc,_0x7a542b)=>_0x3f17dc in _0x30c0b2?os(_0x30c0b2,_0x3f17dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7a542b}):_0x30c0b2[_0x3f17dc]=_0x7a542b,ls=(_0x3160a3,_0x18b56b,_0x56139a,_0x4dd76c)=>{for(var _0x31603b=_0x4dd76c>0x1?void 0x0:_0x4dd76c?as(_0x18b56b,_0x56139a):_0x18b56b,_0x126114=_0x3160a3['length']-0x1,_0xc62ec4;_0x126114>=0x0;_0x126114--)(_0xc62ec4=_0x3160a3[_0x126114])&&(_0x31603b=_0xc62ec4(_0x31603b)||_0x31603b);return _0x31603b;},de=(_0x224ba1,_0xf213a5)=>(_0x623b05,_0x37554a)=>_0xf213a5(_0x623b05,_0x37554a,_0x224ba1),_s=(_0x554b90,_0x2c091a,_0x78606d)=>cs(_0x554b90,_0x2c091a+'',_0x78606d);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x30e513(0x256)]=class extends a[_0x30e513(0x42c)]{constructor(_0x2fcd3c=Me,_0x19de63,_0x34731f,_0x5b72fa){const _0x4f896f=_0x30e513;super(),this['_config']=_0x2fcd3c,this[_0x4f896f(0x47d)]=_0x19de63,this['_injector']=_0x34731f,this['_configService']=_0x5b72fa;const {..._0x4fc62e}=a[_0x4f896f(0x29c)]({},Me,this['_config']);this['_configService'][_0x4f896f(0x400)](Yt,_0x4fc62e);}[_0x30e513(0x223)](){const _0x4312c3=_0x30e513;this['_registerDependencies'](),this[_0x4312c3(0x3f3)]();}[_0x30e513(0x311)](){const _0x1326fb=_0x30e513;this[_0x1326fb(0x2da)]();}[_0x30e513(0x488)](){const _0x36f01e=_0x30e513;var _0x10d814;const _0x1bf588=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x36f01e(0x45e)],{'useClass':x[_0x36f01e(0x378)]}],[u[_0x36f01e(0x386)],{'useClass':Te}],[exports[_0x36f01e(0x34a)]],[ie],[Z],[F],[me],[exports[_0x36f01e(0x247)]]];this['_config'][_0x36f01e(0x350)]&&_0x1bf588[_0x36f01e(0x293)]([Q]),a[_0x36f01e(0x243)](this['_injector'],a['mergeOverrideWithDependencies'](_0x1bf588,(_0x10d814=this[_0x36f01e(0x2af)])==null?void 0x0:_0x10d814[_0x36f01e(0x435)]));}[_0x30e513(0x2da)](){const _0x59a029=_0x30e513;this[_0x59a029(0x2eb)](this[_0x59a029(0x47d)][_0x59a029(0x2f7)](a['UniverInstanceType'][_0x59a029(0x4ae)],[Ee])),this[_0x59a029(0x2eb)](this[_0x59a029(0x47d)]['registerRenderModule'](a[_0x59a029(0x2c1)][_0x59a029(0x230)],[Ce]));}['_initDependencies'](){const _0x173308=_0x30e513;a[_0x173308(0x2ae)](this[_0x173308(0x23e)],[[F],[exports[_0x173308(0x34a)]],[ie],[Z],[exports[_0x173308(0x247)]],[ne]]),this['_config'][_0x173308(0x350)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports[_0x30e513(0x256)],_0x30e513(0x210),hs),exports[_0x30e513(0x256)]=ls([a[_0x30e513(0x2c0)](u[_0x30e513(0x31c)]),de(0x1,C[_0x30e513(0x47f)]),de(0x2,a[_0x30e513(0x3f5)](a['Injector'])),de(0x3,a[_0x30e513(0x341)])],exports['UniverCollaborationClientUIPlugin']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x363917,_0x186e08,_0x409b2d,_0x51fbca)=>{const _0x42485c=_0x30e513;for(var _0x41c186=_0x51fbca>0x1?void 0x0:_0x51fbca?us(_0x186e08,_0x409b2d):_0x186e08,_0x15bfe5=_0x363917[_0x42485c(0x457)]-0x1,_0x6b2360;_0x15bfe5>=0x0;_0x15bfe5--)(_0x6b2360=_0x363917[_0x15bfe5])&&(_0x41c186=_0x6b2360(_0x41c186)||_0x41c186);return _0x41c186;},W=(_0x5de2e5,_0x2cca8f)=>(_0x87412,_0x6c11ea)=>_0x2cca8f(_0x87412,_0x6c11ea,_0x5de2e5);exports[_0x30e513(0x2b2)]=class extends u['CollaborationSocketService']{constructor(_0x1306d9,_0x472a95,_0x3fadac,_0x26ff74,_0x331ebb){super(_0x1306d9,_0x472a95,_0x3fadac,_0x26ff74,_0x331ebb);}async[_0x30e513(0x2ac)](_0x30c0b5){const _0x8255fb=_0x30e513,_0x538f35=await this[_0x8255fb(0x2e7)](),_0x4d910b=this['_createSocketURL'](_0x30c0b5,_0x538f35);return this[_0x8255fb(0x4b7)](_0x4d910b);}[_0x30e513(0x3e0)](_0x52ed2e,_0x29af62){const _0x47bbd9=_0x30e513,_0x3d1498=typeof window>'u'?new URL(_0x52ed2e):new URL(_0x52ed2e,window[_0x47bbd9(0x433)][_0x47bbd9(0x410)]);_0x3d1498[_0x47bbd9(0x493)]['set'](_0x47bbd9(0x402),_0x29af62);const _0x4ca4a0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x47bbd9(0x32c)]);return _0x4ca4a0[_0x47bbd9(0x3a9)]('runId')&&_0x3d1498[_0x47bbd9(0x493)][_0x47bbd9(0x416)]('runId',_0x4ca4a0[_0x47bbd9(0x3a9)]('runId')),_0x3d1498[_0x47bbd9(0x2a8)]();}async[_0x30e513(0x2e7)](){const _0x2fa43c=_0x30e513;var _0x10eef6,_0x44166e,_0x107e55;const _0x312db2=this['_configService'][_0x2fa43c(0x2f5)](u[_0x2fa43c(0x351)]),_0x1a3a58=(_0x10eef6=_0x312db2==null?void 0x0:_0x312db2[_0x2fa43c(0x368)])!=null?_0x10eef6:u[_0x2fa43c(0x408)];return(_0x107e55=(_0x44166e=(await this[_0x2fa43c(0x4ab)]['get'](_0x1a3a58,{'headers':{'Content-Type':_0x2fa43c(0x380)}}))[_0x2fa43c(0x3c8)])==null?void 0x0:_0x44166e[_0x2fa43c(0x1f8)])!=null?_0x107e55:'';}},exports[_0x30e513(0x2b2)]=Is([W(0x0,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),W(0x1,a[_0x30e513(0x3f5)](x[_0x30e513(0x37f)])),W(0x2,a[_0x30e513(0x341)]),W(0x3,a['ILogService']),W(0x4,g[_0x30e513(0x22b)])],exports['BrowserCollaborationSocketService']);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x2c0e7b,_0x489dd2,_0x3e2e40,_0x2af615)=>{const _0x5c9692=_0x30e513;for(var _0x2463ec=_0x2af615>0x1?void 0x0:_0x2af615?Ss(_0x489dd2,_0x3e2e40):_0x489dd2,_0x58d4a6=_0x2c0e7b[_0x5c9692(0x457)]-0x1,_0x789a4;_0x58d4a6>=0x0;_0x58d4a6--)(_0x789a4=_0x2c0e7b[_0x58d4a6])&&(_0x2463ec=_0x789a4(_0x2463ec)||_0x2463ec);return _0x2463ec;},fe=(_0x3f4ef3,_0x13b049)=>(_0x2866d1,_0x652d05)=>_0x13b049(_0x2866d1,_0x652d05,_0x3f4ef3);exports['RemoteUniscriptService']=class extends a[_0x30e513(0x3c0)]{constructor(_0x296876,_0xbaafef,_0x4bc0a9){const _0x3a5cac=_0x30e513;super(),this[_0x3a5cac(0x205)]=_0x296876,this[_0x3a5cac(0x4ab)]=_0xbaafef,this['_configService']=_0x4bc0a9;}async['runOnServer'](_0xbed634,_0x3c6c4d,_0x4b6b72,..._0xde4c95){const _0x29027e=_0x30e513;var _0x1f4ea8,_0x14a9af,_0x4a1ca7,_0x1ff9c7;const _0x3a4ec3=this[_0x29027e(0x205)][_0x29027e(0x4ad)]();if(!_0x3a4ec3)throw new Error(_0x29027e(0x312));const _0x50b15e=((_0x1f4ea8=this[_0x29027e(0x3a4)]['getConfig'](u[_0x29027e(0x2b8)]))!=null?_0x1f4ea8:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xbed634+_0x29027e(0x4b6)+_0x3c6c4d,_0x32ae5a=new URL(window[_0x29027e(0x433)][_0x29027e(0x264)]),_0x10ef0e={'scriptId':_0xbed634,'runId':(_0x14a9af=_0x32ae5a['searchParams']['get'](_0x29027e(0x463)))!=null?_0x14a9af:'','function':_0x3c6c4d,'unitId':_0x3a4ec3[_0x29027e(0x241)](),'argsOfFunction':JSON[_0x29027e(0x37d)](_0xde4c95),'invokeId':(_0x4a1ca7=_0x4b6b72[_0x29027e(0x30f)])!=null?_0x4a1ca7:'','executionId':(_0x1ff9c7=_0x4b6b72['executionId'])!=null?_0x1ff9c7:''};try{const _0x2daba4=await this[_0x29027e(0x4ab)]['post'](_0x50b15e,{'body':_0x10ef0e});return _0x2daba4[_0x29027e(0x3c8)][_0x29027e(0x244)]&&_0x2daba4[_0x29027e(0x3c8)][_0x29027e(0x244)][_0x29027e(0x36d)]!==G['OK']?_0x29027e(0x262):_0x2daba4[_0x29027e(0x3c8)]['result'];}catch{return'Failed';}}},exports[_0x30e513(0x43d)]=ds([fe(0x0,a[_0x30e513(0x202)]),fe(0x1,a['Inject'](x[_0x30e513(0x37f)])),fe(0x2,a[_0x30e513(0x341)])],exports[_0x30e513(0x43d)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a['Disposable']{constructor(){const _0x46b81c=_0x30e513;super(),_(this,_0x46b81c(0x354),a[_0x46b81c(0x301)]()),_(this,_0x46b81c(0x269),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x46b81c(0x38c),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x46b81c(0x38d)]();}['dispose'](){const _0xa1c5a4=_0x30e513;super['dispose'](),this[_0xa1c5a4(0x388)][_0xa1c5a4(0x25c)]((_0x285463,_0x331655)=>this['_removeClearOtherTimer'](_0x331655)),this[_0xa1c5a4(0x38c)]&&window[_0xa1c5a4(0x36c)](this[_0xa1c5a4(0x38c)]);}[_0x30e513(0x49b)](_0x4b882c){const _0x305457=_0x30e513;return this[_0x305457(0x319)](_0x4b882c)[_0x305457(0x485)](I[_0x305457(0x268)]());}[_0x30e513(0x28b)](_0x4c76f1){const _0x3c8df3=_0x30e513;this[_0x3c8df3(0x269)]['size']===0x0&&this[_0x3c8df3(0x2fa)](),this[_0x3c8df3(0x269)][_0x3c8df3(0x2e4)](_0x4c76f1),this[_0x3c8df3(0x284)]({'type':0x0,'memberID':this[_0x3c8df3(0x354)],'unitIDs':[_0x4c76f1],'isForwarded':!0x1});}[_0x30e513(0x48a)](_0x47dc20){const _0x54985f=_0x30e513;this[_0x54985f(0x269)][_0x54985f(0x216)](_0x47dc20),this[_0x54985f(0x269)][_0x54985f(0x3f9)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x30e513(0x38d)](){const _0x16e815=_0x30e513;this[_0x16e815(0x2eb)](a['toDisposable'](I[_0x16e815(0x374)](window,'storage')[_0x16e815(0x376)](_0x22d0a0=>{const _0x10696d=_0x16e815;if(_0x22d0a0['key']!==ye||!_0x22d0a0[_0x10696d(0x20f)])return;const _0x313ec3=JSON[_0x10696d(0x355)](_0x22d0a0[_0x10696d(0x20f)]);this[_0x10696d(0x303)](_0x313ec3);}))),window[_0x16e815(0x2cd)](_0x16e815(0x473),()=>this[_0x16e815(0x284)]({'type':0x1,'memberID':this[_0x16e815(0x354)],'unitIDs':Array[_0x16e815(0x211)](this['_selfUnitIDs'])}));}[_0x30e513(0x303)](_0x521d3d){const _0x47f17b=_0x30e513;switch(_0x521d3d[_0x47f17b(0x428)]){case 0x0:this[_0x47f17b(0x2d0)](_0x521d3d);break;case 0x1:this[_0x47f17b(0x204)](_0x521d3d);break;case 0x2:this[_0x47f17b(0x2f1)](_0x521d3d);break;}}[_0x30e513(0x2d0)](_0x229672){const _0x28a7d9=_0x30e513,{unitIDs:_0x25b855,memberID:_0x285d20,isForwarded:_0x49c124}=_0x229672;_0x25b855[_0x28a7d9(0x25c)](_0xcdbc8b=>{const _0x31d888=_0x28a7d9;if(!_0x49c124&&this[_0x31d888(0x489)][_0x31d888(0x3a7)](_0xcdbc8b)&&this[_0x31d888(0x319)](_0xcdbc8b)[_0x31d888(0x44a)](u[_0x31d888(0x363)][_0x31d888(0x3f8)]),!this['_unitOnClients'][_0x31d888(0x3a7)](_0xcdbc8b)||!this[_0x31d888(0x489)][_0x31d888(0x3a9)](_0xcdbc8b)[_0x31d888(0x3a7)](_0x285d20)){const _0x2e7c1b=this[_0x31d888(0x489)]['get'](_0xcdbc8b)||new Set();_0x2e7c1b[_0x31d888(0x2e4)](_0x285d20),this['_unitOnClients'][_0x31d888(0x416)](_0xcdbc8b,_0x2e7c1b),this[_0x31d888(0x411)](_0x285d20);}}),_0x49c124||this[_0x28a7d9(0x284)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x28a7d9(0x269)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x57f2b7){const _0x41fee7=_0x30e513;this[_0x41fee7(0x285)](_0x57f2b7);const _0x55ace5=window['setTimeout'](()=>{const _0x358e92=_0x41fee7;this['_unitOnClients'][_0x358e92(0x25c)](_0x295c14=>{const _0x166bf9=_0x358e92;_0x295c14[_0x166bf9(0x216)](_0x57f2b7);});},we*0x2);this['_clearOtherTimers'][_0x41fee7(0x416)](_0x57f2b7,_0x55ace5);}[_0x30e513(0x285)](_0x2115dc){const _0x1cbf3e=_0x30e513;if(this[_0x1cbf3e(0x388)][_0x1cbf3e(0x3a7)](_0x2115dc)){const _0x337e42=this[_0x1cbf3e(0x388)][_0x1cbf3e(0x3a9)](_0x2115dc);_0x337e42&&window[_0x1cbf3e(0x306)](_0x337e42),this[_0x1cbf3e(0x388)]['set'](_0x2115dc,null);}}[_0x30e513(0x204)](_0x27f45a){const _0x149038=_0x30e513,{memberID:_0x5442d6,unitIDs:_0x4eb076}=_0x27f45a;_0x4eb076[_0x149038(0x25c)](_0x391810=>{const _0x292295=_0x149038;var _0x21a328;const _0x3a8949=this[_0x292295(0x489)][_0x292295(0x3a9)](_0x391810);_0x3a8949&&(_0x3a8949[_0x292295(0x216)](_0x5442d6),(_0x21a328=this['_ensureSubject'](_0x391810))==null||_0x21a328[_0x292295(0x44a)](_0x3a8949[_0x292295(0x3f9)]===0x0?u[_0x292295(0x363)][_0x292295(0x39b)]:u['UnitStatus'][_0x292295(0x3f8)]));}),this[_0x149038(0x285)](_0x5442d6);}[_0x30e513(0x2f1)](_0x32acf8){const _0x248cda=_0x30e513;this[_0x248cda(0x411)](_0x32acf8['memberID']);}[_0x30e513(0x284)](_0x360875){const _0x26372e=_0x30e513;localStorage[_0x26372e(0x2ab)](ye,JSON[_0x26372e(0x37d)](_0x360875));}[_0x30e513(0x2fa)](){const _0x2a00a1=_0x30e513;this['_heartbeatTimer']=window[_0x2a00a1(0x21c)](()=>{const _0x27222c=_0x2a00a1;this[_0x27222c(0x284)]({'type':0x2,'memberID':this['_id']});},we);}[_0x30e513(0x319)](_0x10da48){const _0x2e0af8=_0x30e513;return this[_0x2e0af8(0x47a)]['has'](_0x10da48)||this[_0x2e0af8(0x47a)][_0x2e0af8(0x416)](_0x10da48,new I[(_0x2e0af8(0x213))](u[_0x2e0af8(0x363)][_0x2e0af8(0x39b)])),this[_0x2e0af8(0x47a)][_0x2e0af8(0x3a9)](_0x10da48);}}exports[_0x30e513(0x229)]=Oe,exports[_0x30e513(0x2e2)]=je,exports[_0x30e513(0x349)]=fs,exports[_0x30e513(0x234)]=ke;
1
+ 'use strict';const _0x22c5ef=_0x6e31;(function(_0x57f0d3,_0x1d0b55){const _0x66e780=_0x6e31,_0x7f88a0=_0x57f0d3();while(!![]){try{const _0x15616f=parseInt(_0x66e780(0x1c1))/0x1*(-parseInt(_0x66e780(0x29a))/0x2)+-parseInt(_0x66e780(0x253))/0x3*(parseInt(_0x66e780(0x2a1))/0x4)+parseInt(_0x66e780(0x1f6))/0x5*(parseInt(_0x66e780(0x1f5))/0x6)+-parseInt(_0x66e780(0x2dd))/0x7*(-parseInt(_0x66e780(0x1c8))/0x8)+parseInt(_0x66e780(0x411))/0x9*(-parseInt(_0x66e780(0x406))/0xa)+-parseInt(_0x66e780(0x1c0))/0xb+parseInt(_0x66e780(0x3f3))/0xc;if(_0x15616f===_0x1d0b55)break;else _0x7f88a0['push'](_0x7f88a0['shift']());}catch(_0xa972a2){_0x7f88a0['push'](_0x7f88a0['shift']());}}}(_0x2b9c,0xef985));var Xe=Object[_0x22c5ef(0x392)],Ke=(_0x2382cf,_0x30adbf,_0x23aaf0)=>_0x30adbf in _0x2382cf?Xe(_0x2382cf,_0x30adbf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aaf0}):_0x2382cf[_0x30adbf]=_0x23aaf0,_=(_0x458138,_0x35e8bf,_0x39f389)=>Ke(_0x458138,typeof _0x35e8bf!='symbol'?_0x35e8bf+'':_0x35e8bf,_0x39f389);Object[_0x22c5ef(0x392)](exports,Symbol[_0x22c5ef(0x2a0)],{'value':_0x22c5ef(0x1fc)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0x42deb2,..._0x36a8f8}){const _0x14b5b5=_0x22c5ef,{icon:_0x48954b,id:_0x5bdf7a,className:_0x51d26c,extend:_0x1d333d,..._0x5ae65e}=_0x36a8f8,_0x31c078=('univerjs-icon\x20univerjs-icon-'+_0x5bdf7a+'\x20'+(_0x51d26c||''))[_0x14b5b5(0x24f)](),_0x353094=A[_0x14b5b5(0x3e1)]('_'+Qe());return $e(_0x48954b,''+_0x5bdf7a,{'defIds':_0x48954b[_0x14b5b5(0x466)],'idSuffix':_0x353094['current']},{'ref':_0x42deb2,'className':_0x31c078,..._0x5ae65e},_0x1d333d);}function $e(_0x48f438,_0xc5487b,_0x4d1abb,_0x47b801,_0x3ad4ea){const _0x580353=_0x22c5ef;return A[_0x580353(0x44b)](_0x48f438[_0x580353(0x1df)],{'key':_0xc5487b,...Je(_0x48f438,_0x4d1abb,_0x3ad4ea),..._0x47b801},(Ze(_0x48f438,_0x4d1abb)[_0x580353(0x1ff)]||[])[_0x580353(0x45e)]((_0x12c844,_0x5df4e5)=>$e(_0x12c844,_0xc5487b+'-'+_0x48f438['tag']+'-'+_0x5df4e5,_0x4d1abb,void 0x0,_0x3ad4ea)));}function Je(_0x58b5b2,_0x412805,_0x54d032){const _0x1a8751=_0x22c5ef,_0x1af07a={..._0x58b5b2['attrs']};_0x54d032!=null&&_0x54d032[_0x1a8751(0x29e)]&&_0x1af07a[_0x1a8751(0x430)]===_0x1a8751(0x29e)&&(_0x1af07a[_0x1a8751(0x430)]=_0x54d032[_0x1a8751(0x29e)]),_0x58b5b2[_0x1a8751(0x1df)]===_0x1a8751(0x394)&&_0x1af07a['id']&&(_0x1af07a['id']=_0x1af07a['id']+_0x412805[_0x1a8751(0x365)]),Object[_0x1a8751(0x2af)](_0x1af07a)[_0x1a8751(0x1b2)](([_0xfc4110,_0x4d6833])=>{const _0x210db9=_0x1a8751;_0xfc4110===_0x210db9(0x394)&&typeof _0x4d6833==_0x210db9(0x3a8)&&(_0x1af07a[_0xfc4110]=_0x4d6833['replace'](/url\(#(.*)\)/,'url(#$1'+_0x412805[_0x210db9(0x365)]+')'));});const {defIds:_0x5ca24b}=_0x412805;return!_0x5ca24b||_0x5ca24b[_0x1a8751(0x294)]===0x0||(_0x58b5b2['tag']===_0x1a8751(0x20b)&&_0x1af07a[_0x1a8751(0x3ed)]&&(_0x1af07a[_0x1a8751(0x3ed)]=_0x1af07a[_0x1a8751(0x3ed)]+_0x412805['idSuffix']),Object['entries'](_0x1af07a)[_0x1a8751(0x1b2)](([_0x447bb0,_0x50d82a])=>{const _0x70a873=_0x1a8751;typeof _0x50d82a==_0x70a873(0x3a8)&&(_0x1af07a[_0x447bb0]=_0x50d82a['replace'](/url\(#(.*)\)/,'url(#$1'+_0x412805['idSuffix']+')'));})),_0x1af07a;}function Ze(_0x30e065,_0xe8a36c){const _0x3f62df=_0x22c5ef;var _0x27216c;const {defIds:_0x55d997}=_0xe8a36c;return!_0x55d997||_0x55d997[_0x3f62df(0x294)]===0x0?_0x30e065:_0x30e065['tag']===_0x3f62df(0x24b)&&((_0x27216c=_0x30e065[_0x3f62df(0x1ff)])!=null&&_0x27216c['length'])?{..._0x30e065,'children':_0x30e065[_0x3f62df(0x1ff)][_0x3f62df(0x45e)](_0x57182f=>typeof _0x57182f[_0x3f62df(0x28a)]['id']==_0x3f62df(0x3a8)&&_0x55d997&&_0x55d997[_0x3f62df(0x209)](_0x57182f['attrs']['id'])?{..._0x57182f,'attrs':{..._0x57182f[_0x3f62df(0x28a)],'id':_0x57182f[_0x3f62df(0x28a)]['id']+_0xe8a36c[_0x3f62df(0x365)]}}:_0x57182f)}:_0x30e065;}function Qe(){const _0x44edec=_0x22c5ef;return Math['random']()[_0x44edec(0x2cf)](0x24)[_0x44edec(0x343)](0x2,0x8);}pe[_0x22c5ef(0x1cc)]=_0x22c5ef(0x243);const et={'tag':_0x22c5ef(0x461),'attrs':{'xmlns':_0x22c5ef(0x30a),'fill':_0x22c5ef(0x300),'viewBox':_0x22c5ef(0x281),'width':'1em','height':_0x22c5ef(0x3ef)},'children':[{'tag':'g','attrs':{'clipPath':_0x22c5ef(0x398)},'children':[{'tag':_0x22c5ef(0x306),'attrs':{'stroke':_0x22c5ef(0x2c5),'d':_0x22c5ef(0x31f),'strokeLinecap':_0x22c5ef(0x3ad),'strokeLinejoin':_0x22c5ef(0x3ad),'strokeWidth':1.2}}]},{'tag':_0x22c5ef(0x24b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x22c5ef(0x2f1)},'children':[{'tag':_0x22c5ef(0x306),'attrs':{'fill':_0x22c5ef(0x1ac),'d':_0x22c5ef(0x32a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A['forwardRef'](function(_0x426ee0,_0x21032c){const _0x2c849b=_0x22c5ef;return A[_0x2c849b(0x44b)](pe,Object['assign']({},_0x426ee0,{'id':_0x2c849b(0x2b6),'ref':_0x21032c,'icon':et}));});xe['displayName']='OffLineIcon';const tt={'tag':_0x22c5ef(0x461),'attrs':{'xmlns':_0x22c5ef(0x30a),'fill':_0x22c5ef(0x300),'viewBox':_0x22c5ef(0x316),'width':_0x22c5ef(0x3ef),'height':_0x22c5ef(0x3ef)},'children':[{'tag':'g','attrs':{'clipPath':_0x22c5ef(0x275)},'children':[{'tag':_0x22c5ef(0x306),'attrs':{'stroke':'currentColor','d':_0x22c5ef(0x266),'strokeLinecap':'round','strokeLinejoin':_0x22c5ef(0x3ad),'strokeWidth':1.2}}]},{'tag':_0x22c5ef(0x24b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x22c5ef(0x2b5)},'children':[{'tag':_0x22c5ef(0x306),'attrs':{'fill':'white','d':_0x22c5ef(0x32a),'transform':_0x22c5ef(0x244)}}]}]}],'defIds':[_0x22c5ef(0x2b5)]},Be=A[_0x22c5ef(0x1b7)](function(_0x8887eb,_0x3837a7){const _0x3fce3a=_0x22c5ef;return A[_0x3fce3a(0x44b)](pe,Object[_0x3fce3a(0x399)]({},_0x8887eb,{'id':_0x3fce3a(0x38e),'ref':_0x3837a7,'icon':tt}));});Be['displayName']=_0x22c5ef(0x44c);function st(_0x1c6988){const _0x27b9b3=_0x22c5ef;switch(_0x1c6988){case u[_0x27b9b3(0x310)]['OFFLINE']:return _0x27b9b3(0x2cd);case u[_0x27b9b3(0x310)][_0x27b9b3(0x28e)]:return _0x27b9b3(0x261);case u[_0x27b9b3(0x310)][_0x27b9b3(0x42b)]:return'collabStatus.fetchMiss';case u[_0x27b9b3(0x310)][_0x27b9b3(0x3aa)]:return _0x27b9b3(0x2d8);case u[_0x27b9b3(0x310)][_0x27b9b3(0x309)]:case u['CollaborationStatus'][_0x27b9b3(0x20c)]:return _0x27b9b3(0x271);case u[_0x27b9b3(0x310)][_0x27b9b3(0x41e)]:case u[_0x27b9b3(0x310)]['PENDING']:return'collabStatus.synced';}}function it(_0x47e167){const _0x33ddef=_0x22c5ef,{status$:_0xd79aff}=_0x47e167,_0xf96246=O[_0x33ddef(0x38a)](_0xd79aff,u[_0x33ddef(0x310)]['NOT_COLLAB']),_0xe2ccd6=O[_0x33ddef(0x45d)](a[_0x33ddef(0x2c2)]),_0x1a6b0e=O[_0x33ddef(0x45d)](u[_0x33ddef(0x2bf)]),_0x8effa2=_0xf96246!==u['CollaborationStatus'][_0x33ddef(0x26b)],_0x58bc1c=_0xe2ccd6['t'](st(_0xf96246)),_0x877627=_0x8effa2?M[_0x33ddef(0x43d)](Be,{}):M[_0x33ddef(0x43d)](xe,{}),_0x3d8976=A['useCallback'](()=>{const _0x5b9d01=_0x33ddef;_0x8effa2||_0x1a6b0e[_0x5b9d01(0x1f9)]();},[_0x8effa2,_0x1a6b0e]);function _0x4202e5(){const _0x516004=_0x33ddef;return M[_0x516004(0x36d)](_0x516004(0x317),{'className':_0x516004(0x321),'onClick':_0x3d8976,'children':[M['jsx'](_0x516004(0x317),{'className':p[_0x516004(0x2fe)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x8effa2,'univer-text-red-500':!_0x8effa2}),'children':_0x877627}),M[_0x516004(0x43d)](_0x516004(0x317),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x58bc1c})]});}return _0x8effa2?_0x4202e5():M[_0x33ddef(0x43d)](p[_0x33ddef(0x439)],{'title':_0xe2ccd6['t'](_0x33ddef(0x200)),'children':_0x4202e5()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x541cec,_0x1496ad,_0x318e7b,_0x3d20d4)=>{const _0x108669=_0x22c5ef;for(var _0xfb4d9d=_0x3d20d4>0x1?void 0x0:_0x3d20d4?nt(_0x1496ad,_0x318e7b):_0x1496ad,_0x5ce034=_0x541cec[_0x108669(0x294)]-0x1,_0x34ba39;_0x5ce034>=0x0;_0x5ce034--)(_0x34ba39=_0x541cec[_0x5ce034])&&(_0xfb4d9d=_0x34ba39(_0xfb4d9d)||_0xfb4d9d);return _0xfb4d9d;},K=(_0x34bce3,_0x53c960)=>(_0x55c4b5,_0x17fae2)=>_0x53c960(_0x55c4b5,_0x17fae2,_0x34bce3);exports[_0x22c5ef(0x22a)]=class extends a['Disposable']{constructor(_0x4371d5,_0x5d2f8c,_0x4347df,_0x2169c5){const _0x498279=_0x22c5ef;super(),_(this,_0x498279(0x41a),new I['BehaviorSubject'](u['CollaborationStatus'][_0x498279(0x3aa)])),(this[_0x498279(0x3a4)]=_0x4371d5,this[_0x498279(0x402)]=_0x5d2f8c,this[_0x498279(0x337)]=_0x4347df,this[_0x498279(0x2bd)]=_0x2169c5,this['_initStatusComponent'](),this[_0x498279(0x26f)]());}[_0x22c5ef(0x26f)](){const _0x6e33ec=_0x22c5ef;this[_0x6e33ec(0x3fa)](this[_0x6e33ec(0x3a4)][_0x6e33ec(0x237)][_0x6e33ec(0x255)](I[_0x6e33ec(0x457)](()=>{const _0x3cb94a=_0x6e33ec,_0x145069=this['_univerInstanceService'][_0x3cb94a(0x43f)]();return _0x145069?this[_0x3cb94a(0x337)][_0x3cb94a(0x1e3)](_0x145069[_0x3cb94a(0x27f)]()):I['of'](null);}),I[_0x6e33ec(0x457)](_0x1c6b6a=>_0x1c6b6a?_0x1c6b6a['status$']:I['of'](u[_0x6e33ec(0x310)][_0x6e33ec(0x3aa)])))['subscribe'](_0x4d1a35=>{const _0x547d14=_0x6e33ec;this[_0x547d14(0x41a)][_0x547d14(0x3b9)](_0x4d1a35);}));}['_initStatusComponent'](){const _0x1eb93d=_0x22c5ef;this[_0x1eb93d(0x3fa)](this['_uiPartsService'][_0x1eb93d(0x1d2)](O[_0x1eb93d(0x2fc)]['HEADER_MENU'],()=>O[_0x1eb93d(0x2f5)](ot({'status$':this[_0x1eb93d(0x41a)][_0x1eb93d(0x35b)]()}),this['_injector'])));}},exports[_0x22c5ef(0x22a)]=rt([K(0x0,a[_0x22c5ef(0x382)]),K(0x1,a['Inject'](a[_0x22c5ef(0x45a)])),K(0x2,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x1e5)])),K(0x3,O[_0x22c5ef(0x272)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x38e12d){const {status$:_0x2182b4}=_0x38e12d;return function(){const _0x37cf53=_0x6e31;return M[_0x37cf53(0x43d)](it,{'status$':_0x2182b4});};}const Oe=a[_0x22c5ef(0x231)](_0x22c5ef(0x2d9));var at=Object[_0x22c5ef(0x33d)],ct=(_0x3eb693,_0x3f0f52,_0x17b211,_0x43e31a)=>{const _0x1720bd=_0x22c5ef;for(var _0x3fa689=_0x43e31a>0x1?void 0x0:_0x43e31a?at(_0x3f0f52,_0x17b211):_0x3f0f52,_0x3ced13=_0x3eb693[_0x1720bd(0x294)]-0x1,_0x4fad7b;_0x3ced13>=0x0;_0x3ced13--)(_0x4fad7b=_0x3eb693[_0x3ced13])&&(_0x3fa689=_0x4fad7b(_0x3fa689)||_0x3fa689);return _0x3fa689;},Y=(_0x9146f2,_0x560d3f)=>(_0x2309eb,_0x37e83c)=>_0x560d3f(_0x2309eb,_0x37e83c,_0x9146f2);exports[_0x22c5ef(0x464)]=class extends a[_0x22c5ef(0x435)]{constructor(_0x3d7325,_0x4dfe61,_0xab5e1f,_0xf955e9,_0x40693c){const _0x1384c0=_0x22c5ef;super(),this[_0x1384c0(0x441)]=_0x3d7325,this[_0x1384c0(0x327)]=_0x4dfe61,this[_0x1384c0(0x428)]=_0xab5e1f,this[_0x1384c0(0x410)]=_0xf955e9,_0x40693c?_0x40693c==null||_0x40693c[_0x1384c0(0x38f)]()[_0x1384c0(0x1e1)](()=>this[_0x1384c0(0x2d2)]()):(this[_0x1384c0(0x327)][_0x1384c0(0x3f2)](_0x1384c0(0x2c4),_0x1384c0(0x3df)),this['_init']());}async['_init'](){const _0x18fa63=_0x22c5ef,_0xd7b32=this[_0x18fa63(0x441)][_0x18fa63(0x1fe)](_0x18fa63(0x2c1)),_0x4d1065=this[_0x18fa63(0x441)][_0x18fa63(0x1fe)](_0x18fa63(0x36b)),_0x11cb5c=this[_0x18fa63(0x441)][_0x18fa63(0x1fe)](_0x18fa63(0x287));if(!_0xd7b32||!_0x4d1065){this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x3e9a73=await this[_0x18fa63(0x410)][_0x18fa63(0x3a5)](_0xd7b32,Number(_0x4d1065),_0x11cb5c);_0x3e9a73&&_0x3e9a73 instanceof a['Workbook']&&this[_0x18fa63(0x1f4)](_0x3e9a73);}async[_0x22c5ef(0x1f4)](_0x75ae75){const _0xc79a3=_0x22c5ef;await this[_0xc79a3(0x2ad)](_0x75ae75),_0x75ae75[_0xc79a3(0x20f)][_0xc79a3(0x255)](I['takeUntil'](this[_0xc79a3(0x233)]))[_0xc79a3(0x432)](_0x5d80f7=>{const _0xa534ca=_0xc79a3;_0x5d80f7&&this[_0xa534ca(0x3e3)](_0x5d80f7);}),this[_0xc79a3(0x441)][_0xc79a3(0x424)][_0xc79a3(0x255)](I[_0xc79a3(0x1ca)](this[_0xc79a3(0x233)]))[_0xc79a3(0x432)](()=>this['_updateSubUnitFromURLParams'](_0x75ae75));}[_0x22c5ef(0x3e3)](_0xf3f6da,_0x7e6220=!0x1){const _0x8c11e4=_0x22c5ef,_0x464928=this[_0x8c11e4(0x441)][_0x8c11e4(0x1fe)](_0x8c11e4(0x287));_0xf3f6da[_0x8c11e4(0x1e6)]()!==_0x464928&&this[_0x8c11e4(0x441)][_0x8c11e4(0x332)](_0x8c11e4(0x287),_0xf3f6da['getSheetId'](),_0x7e6220);}async[_0x22c5ef(0x2ad)](_0x24e3dd){const _0x16eaa5=_0x22c5ef;var _0x1ccfb4;const _0x3d4b83=this[_0x16eaa5(0x441)][_0x16eaa5(0x1fe)](_0x16eaa5(0x287));if(!_0x3d4b83||!_0x24e3dd[_0x16eaa5(0x2aa)](_0x3d4b83)){const _0x5eb6d9=_0x24e3dd[_0x16eaa5(0x217)]()[0x0],_0xc40206=_0x24e3dd[_0x16eaa5(0x2aa)](_0x5eb6d9);if(!_0xc40206)return;this[_0x16eaa5(0x3e3)](_0xc40206,!0x0),await this[_0x16eaa5(0x428)]['executeCommand'](v[_0x16eaa5(0x245)]['id'],{'unitId':_0x24e3dd[_0x16eaa5(0x27f)](),'subUnitId':_0x5eb6d9});return;}((_0x1ccfb4=_0x24e3dd['getActiveSheet']())==null?void 0x0:_0x1ccfb4[_0x16eaa5(0x1e6)]())!==_0x3d4b83&&await this['_commandService']['executeCommand'](v[_0x16eaa5(0x245)]['id'],{'unitId':_0x24e3dd[_0x16eaa5(0x27f)](),'subUnitId':_0x3d4b83});}},exports[_0x22c5ef(0x464)]=ct([Y(0x0,Oe),Y(0x1,a[_0x22c5ef(0x259)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x289)])),Y(0x4,a[_0x22c5ef(0x3d3)](qe['IRemoteInstanceService']))],exports[_0x22c5ef(0x464)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x77c408,_0x3db334,_0x31935d,_0x1c6f21)=>{for(var _0x48dfe4=_0x1c6f21>0x1?void 0x0:_0x1c6f21?lt(_0x3db334,_0x31935d):_0x3db334,_0x3199b0=_0x77c408['length']-0x1,_0x330374;_0x3199b0>=0x0;_0x3199b0--)(_0x330374=_0x77c408[_0x3199b0])&&(_0x48dfe4=_0x330374(_0x48dfe4)||_0x48dfe4);return _0x48dfe4;},De=(_0x571caf,_0x4256b4)=>(_0x34a6d9,_0x4448ed)=>_0x4256b4(_0x34a6d9,_0x4448ed,_0x571caf);let me=class extends a[_0x22c5ef(0x435)]{constructor(_0x6f2544,_0x37dd6f){const _0x4e99aa=_0x22c5ef;super(),this['_docClipboardService']=_0x6f2544,this[_0x4e99aa(0x1d1)]=_0x37dd6f,this[_0x4e99aa(0x2d2)]();}[_0x22c5ef(0x2d2)](){const _0x468336=_0x22c5ef,_0x41032f=this;this[_0x468336(0x3fa)](this[_0x468336(0x1cb)]['addClipboardHook']({'onBeforePasteImage':async _0x46587b=>{const _0x3710e7=_0x468336,_0xef5b93=await _0x41032f[_0x3710e7(0x1d1)][_0x3710e7(0x3af)](_0x46587b);return _0xef5b93?{'source':_0xef5b93[_0x3710e7(0x333)],'imageSourceType':_0xef5b93[_0x3710e7(0x3fc)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x22c5ef(0x329),'jiqing.500',_0x22c5ef(0x360),_0x22c5ef(0x381),_0x22c5ef(0x3dc),_0x22c5ef(0x420)];class Re extends a[_0x22c5ef(0x1e8)]{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x22c5ef(0x397)](_0x423cf9){const _0x20b9d3=_0x22c5ef;if(this[_0x20b9d3(0x3d2)][_0x20b9d3(0x1dd)](_0x423cf9))return this[_0x20b9d3(0x3d2)][_0x20b9d3(0x40d)](_0x423cf9);const _0x55f7cd=Ne[this[_0x20b9d3(0x3a6)]];return this['_colorIndex']=(this[_0x20b9d3(0x3a6)]+0x1)%Ne[_0x20b9d3(0x294)],this[_0x20b9d3(0x3d2)][_0x20b9d3(0x463)](_0x423cf9,_0x55f7cd),_0x55f7cd;}}function Fe(_0x5a9621){const _0x683e4=_0x22c5ef;let _0x4f749e='';for(const _0x56e4c9 of _0x5a9621){const {startOffset:_0x34d2ad,endOffset:_0x490483,isActive:_0x35fad4,rangeType:_0x527ce9,segmentId:_0x12daea,segmentPage:_0xcfed9c}=_0x56e4c9;_0x4f749e[_0x683e4(0x294)]&&(_0x4f749e+=','),_0x4f749e+=_0x34d2ad+':'+_0x490483+':'+(_0x35fad4?'1':'0')+':'+_0x527ce9+':'+_0x12daea+':'+_0xcfed9c;}return _0x4f749e;}function ht(_0xf6380b){const _0x5d84de=_0x22c5ef,_0x40bc54=_0xf6380b[_0x5d84de(0x448)](','),_0x3d2db4=[];for(const _0x52b7a6 of _0x40bc54){const [_0x515809,_0xfb8d09,_0xf041ff,_0x559d20,_0x4bcd63,_0x5596ff]=_0x52b7a6[_0x5d84de(0x448)](':');_0x3d2db4[_0x5d84de(0x29b)]({'startOffset':Number(_0x515809),'endOffset':Number(_0xfb8d09),'collapsed':_0x515809===_0xfb8d09,'isActive':_0xf041ff==='1','rangeType':_0x559d20===a[_0x5d84de(0x2a4)][_0x5d84de(0x1bd)]?a[_0x5d84de(0x2a4)][_0x5d84de(0x1bd)]:a[_0x5d84de(0x2a4)][_0x5d84de(0x283)],'segmentId':typeof _0x4bcd63=='string'?String(_0x4bcd63):'','segmentPage':Number(_0x5596ff!=null?_0x5596ff:-0x1)});}return _0x3d2db4[_0x5d84de(0x20d)](_0x2bef15=>_0x2bef15['isActive'])||(_0x3d2db4[0x0][_0x5d84de(0x1e2)]=!0x0),_0x3d2db4;}class be extends a['RxDisposable']{constructor(){const _0x5025e1=_0x22c5ef;super(...arguments),_(this,_0x5025e1(0x35d),new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x5025e1(0x35d)][_0x5025e1(0x35b)]());}[_0x22c5ef(0x37f)](_0x5a5cc5){const _0x25786b=_0x22c5ef,{unitID:_0x31bfe5,memberID:_0x1e3587,textRanges:_0x294c2d}=_0x5a5cc5,_0xee49b4=Fe(_0x294c2d);if(_0xee49b4==='')return;const _0x2f3193={'unitID':_0x31bfe5,'memberID':_0x1e3587,'selection':_0xee49b4};this[_0x25786b(0x35d)][_0x25786b(0x3b9)](_0x2f3193);}}var ut=Object[_0x22c5ef(0x33d)],It=(_0xc9bce0,_0x333e25,_0x3210c6,_0x5b2863)=>{for(var _0x4079df=_0x5b2863>0x1?void 0x0:_0x5b2863?ut(_0x333e25,_0x3210c6):_0x333e25,_0x307bb3=_0xc9bce0['length']-0x1,_0x4bba17;_0x307bb3>=0x0;_0x307bb3--)(_0x4bba17=_0xc9bce0[_0x307bb3])&&(_0x4079df=_0x4bba17(_0x4079df)||_0x4079df);return _0x4079df;},U=(_0x599b9c,_0x3ed2b6)=>(_0x569e16,_0x4630b2)=>_0x3ed2b6(_0x569e16,_0x4630b2,_0x599b9c);const St=0x12c,dt=0x64;let ve=class extends a[_0x22c5ef(0x435)]{constructor(_0x3089f8,_0x4606e6,_0x2a059f,_0x444b48,_0x124e7b,_0x53aa9f,_0x56344d,_0x3432d7,_0x13d580){const _0x5955d9=_0x22c5ef;super(),_(this,_0x5955d9(0x41c),!0x1),_(this,_0x5955d9(0x2d2),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x5955d9(0x1ed),this[_0x5955d9(0x3d4)][_0x5955d9(0x35b)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x5955d9(0x313),this[_0x5955d9(0x455)][_0x5955d9(0x255)](I['debounceTime'](St))),_(this,_0x5955d9(0x3cd),a[_0x5955d9(0x3d0)](_0x22b4d4=>{const _0x248fb4=_0x5955d9,_0x33c43a={'eventID':g[_0x248fb4(0x1e9)][_0x248fb4(0x437)],'data':{'unitID':this[_0x248fb4(0x1cd)],'memberID':this[_0x248fb4(0x324)][_0x248fb4(0x413)](),'selection':Fe(_0x22b4d4)}};this[_0x248fb4(0x324)][_0x248fb4(0x35a)](_0x33c43a,this[_0x248fb4(0x1cd)]);},dt)),(this[_0x5955d9(0x1cd)]=_0x3089f8,this[_0x5955d9(0x324)]=_0x4606e6,this[_0x5955d9(0x402)]=_0x2a059f,this[_0x5955d9(0x2dc)]=_0x444b48,this[_0x5955d9(0x1bb)]=_0x124e7b,this[_0x5955d9(0x2ac)]=_0x53aa9f,this[_0x5955d9(0x43a)]=_0x56344d,this[_0x5955d9(0x3a4)]=_0x3432d7,this[_0x5955d9(0x428)]=_0x13d580);}get[_0x22c5ef(0x27a)](){const _0x5290ea=_0x22c5ef;return this['_cursorInfo$'][_0x5290ea(0x214)]();}get[_0x22c5ef(0x351)](){const _0x1713e5=_0x22c5ef;return this[_0x1713e5(0x455)]['getValue']();}[_0x22c5ef(0x390)](){const _0x139445=_0x22c5ef;super[_0x139445(0x390)](),this[_0x139445(0x3d4)][_0x139445(0x3b9)](new Map()),this['_cursorInfo$'][_0x139445(0x291)](),this[_0x139445(0x455)][_0x139445(0x3b9)]([]),this[_0x139445(0x455)]['complete']();}['init'](){const _0x204099=_0x22c5ef;this[_0x204099(0x2d2)]||(this[_0x204099(0x2d2)]=!0x0,this['_session']['sessionStatus$']['pipe'](I[_0x204099(0x1ca)](this[_0x204099(0x233)]))[_0x204099(0x432)](_0x477e72=>{const _0x528d0f=_0x204099;_0x477e72===u[_0x528d0f(0x42a)][_0x528d0f(0x246)]?this[_0x528d0f(0x32d)]():this[_0x528d0f(0x27d)]();}),this[_0x204099(0x324)]['event$'][_0x204099(0x255)](I['takeUntil'](this[_0x204099(0x233)]))[_0x204099(0x432)](_0x1b72df=>{const _0x4e3f00=_0x204099,_0x4918a7=_0x1b72df[_0x4e3f00(0x1ae)];_0x4918a7===g[_0x4e3f00(0x1e9)][_0x4e3f00(0x437)]&&this['_onCursorUpdate'](_0x1b72df),_0x4918a7===g[_0x4e3f00(0x1e9)][_0x4e3f00(0x3fb)]&&this[_0x4e3f00(0x2cc)](_0x1b72df);}),this[_0x204099(0x3fa)](this[_0x204099(0x428)][_0x204099(0x1b4)](_0x27df49=>{const _0x509f2d=_0x204099,_0x170941=_0x27df49[_0x509f2d(0x25a)];_0x170941!=null&&this[_0x509f2d(0x41c)]&&_0x27df49['id']===V[_0x509f2d(0x1bf)]['id']&&_0x170941[_0x509f2d(0x452)]===this['unitID']&&_0x170941['isEditing']===!0x1&&_0x170941[_0x509f2d(0x273)][_0x509f2d(0x294)]>0x0&&this[_0x509f2d(0x3cd)](_0x170941[_0x509f2d(0x273)]);})),this['_syncEditingCollabCursorService'][_0x204099(0x1be)][_0x204099(0x255)](I[_0x204099(0x1ca)](this[_0x204099(0x233)]))[_0x204099(0x432)](_0x57aae4=>{const _0x188919=_0x204099;if((_0x57aae4==null?void 0x0:_0x57aae4[_0x188919(0x1cd)])!==this['unitID'])return;const _0x2ff670={'eventID':g[_0x188919(0x1e9)][_0x188919(0x437)],'data':_0x57aae4};this['_onCursorUpdate'](_0x2ff670);}),this[_0x204099(0x3fa)](this[_0x204099(0x428)][_0x204099(0x1b4)](_0x30e453=>{const _0x30b90a=_0x204099;if(_0x30e453[_0x30b90a(0x25a)]==null)return;const _0xf6bb27=_0x30e453[_0x30b90a(0x25a)];if(_0x30e453['id']!==V[_0x30b90a(0x1a1)]['id']||_0xf6bb27[_0x30b90a(0x452)]!==this[_0x30b90a(0x1cd)])return;const _0x2f413a={'id':_0x30b90a(0x1d6),'params':_0xf6bb27},_0x55824e=this[_0x30b90a(0x27a)];for(const [_0x5ad399,_0x3cfed9]of _0x55824e){const _0x2ca3fe={'id':_0x30b90a(0x1d6),'params':{'unitId':this[_0x30b90a(0x1cd)],'actions':null,'textRanges':_0x3cfed9['ranges']}},_0x540e3d=this[_0x30b90a(0x43a)][_0x30b90a(0x2ee)](_0x2f413a,_0x2ca3fe,!0x1);if(g[_0x30b90a(0x2c9)](_0x540e3d))throw _0x540e3d[_0x30b90a(0x3ac)];_0x55824e[_0x30b90a(0x463)](_0x5ad399,{..._0x3cfed9,'ranges':_0x540e3d[_0x30b90a(0x3bb)]['params']['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x55824e);});})));}[_0x22c5ef(0x334)](_0x1a2162){const _0x559fab=_0x22c5ef;var _0x56da7d,_0x1968da;const {memberID:_0x3d9c77,selection:_0x527c42}=_0x1a2162[_0x559fab(0x3be)],_0x3dc669=ht(_0x527c42),_0x24da0e=(_0x1968da=(_0x56da7d=this[_0x559fab(0x1bb)]['getMember'](this[_0x559fab(0x1cd)],_0x3d9c77))==null?void 0x0:_0x56da7d['name'])!=null?_0x1968da:_0x559fab(0x1a4),_0x3f21a6={'color':this[_0x559fab(0x2dc)][_0x559fab(0x397)](_0x3d9c77),'name':_0x24da0e,'ranges':_0x3dc669},_0x1abf66=this[_0x559fab(0x27a)];_0x1abf66[_0x559fab(0x463)](_0x3d9c77,_0x3f21a6),this[_0x559fab(0x3d4)][_0x559fab(0x3b9)](_0x1abf66);}[_0x22c5ef(0x2cc)](_0x27fdca){const _0x1ee915=_0x22c5ef,{memberID:_0x513aa1}=_0x27fdca[_0x1ee915(0x3be)],_0x6d5ed8=this[_0x1ee915(0x27a)];_0x6d5ed8[_0x1ee915(0x3fd)](_0x513aa1),this[_0x1ee915(0x3d4)][_0x1ee915(0x3b9)](_0x6d5ed8);}[_0x22c5ef(0x32d)](){const _0x569d29=_0x22c5ef;var _0x29415c;if(this[_0x569d29(0x41c)]=!0x0,((_0x29415c=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x29415c[_0x569d29(0x27f)]())!==this[_0x569d29(0x1cd)])return;const _0x535dfb=this['_injector'][_0x569d29(0x40d)](V[_0x569d29(0x3d8)])[_0x569d29(0x226)]();Array['isArray'](_0x535dfb)&&_0x535dfb[_0x569d29(0x294)]>0x0&&this[_0x569d29(0x3cd)](_0x535dfb);}[_0x22c5ef(0x27d)](){const _0x4fbbca=_0x22c5ef;this[_0x4fbbca(0x41c)]=!0x1;}};ve=It([U(0x2,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x45a)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x440)])),U(0x5,a[_0x22c5ef(0x33f)](be)),U(0x6,g[_0x22c5ef(0x224)]),U(0x7,a[_0x22c5ef(0x382)]),U(0x8,a[_0x22c5ef(0x1d0)])],ve);var ft=Object[_0x22c5ef(0x33d)],mt=(_0xb95584,_0x3ee280,_0x135ffe,_0x5eb5c4)=>{for(var _0x2d3758=_0x5eb5c4>0x1?void 0x0:_0x5eb5c4?ft(_0x3ee280,_0x135ffe):_0x3ee280,_0x5438b6=_0xb95584['length']-0x1,_0x265e81;_0x5438b6>=0x0;_0x5438b6--)(_0x265e81=_0xb95584[_0x5438b6])&&(_0x2d3758=_0x265e81(_0x2d3758)||_0x2d3758);return _0x2d3758;},w=(_0x27d55d,_0x4b95e8)=>(_0x3c3000,_0x3c5980)=>_0x4b95e8(_0x3c3000,_0x3c5980,_0x27d55d);const vt=0x12c,gt=0x64,Et=()=>{let _0x2b1aa5=[],_0x1aa165=!0x1;return _0x184bed=>{const _0x268852=_0x6e31;_0x2b1aa5[_0x268852(0x29b)](_0x184bed),_0x1aa165||(_0x1aa165=!0x0,setTimeout(()=>{const _0x28f274=_0x268852;_0x2b1aa5[_0x28f274(0x1b2)](_0x5d5178=>_0x5d5178()),_0x2b1aa5=[],_0x1aa165=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x289b4c,_0x6d916e,_0x4a5556,_0xf64dfc,_0x184eba,_0x4a09f6,_0x37fab0,_0x17b2cc){const _0x5d251e=_0x22c5ef;super(),_(this,'_online',!0x1),_(this,_0x5d251e(0x2d2),!0x1),_(this,_0x5d251e(0x3d4),new I[(_0x5d251e(0x368))](new Map())),_(this,_0x5d251e(0x1ed),this[_0x5d251e(0x3d4)][_0x5d251e(0x35b)]()),_(this,_0x5d251e(0x455),new I[(_0x5d251e(0x368))]([])),_(this,_0x5d251e(0x313),this['_roomMembers$']['pipe'](I[_0x5d251e(0x386)](vt))),_(this,_0x5d251e(0x3cd),a[_0x5d251e(0x3d0)]((_0x574a8b,_0x3bb589)=>{const _0x352f26=_0x5d251e,_0x51aecc={'eventID':g[_0x352f26(0x1e9)][_0x352f26(0x437)],'data':{'unitID':this[_0x352f26(0x1cd)],'memberID':this[_0x352f26(0x324)][_0x352f26(0x413)](),'selection':B[_0x352f26(0x1db)](_0x574a8b,_0x3bb589['range'])}};this[_0x352f26(0x324)][_0x352f26(0x35a)](_0x51aecc,this['unitID']);},gt)),(this[_0x5d251e(0x1cd)]=_0x289b4c,this['_session']=_0x6d916e,this[_0x5d251e(0x402)]=_0x4a5556,this[_0x5d251e(0x2dc)]=_0xf64dfc,this[_0x5d251e(0x1bb)]=_0x184eba,this[_0x5d251e(0x3a4)]=_0x4a09f6,this[_0x5d251e(0x428)]=_0x37fab0,this[_0x5d251e(0x400)]=_0x17b2cc);}get['cursorInfo'](){const _0x37f9d1=_0x22c5ef;return this[_0x37f9d1(0x3d4)][_0x37f9d1(0x214)]();}get[_0x22c5ef(0x351)](){const _0x33290f=_0x22c5ef;return this[_0x33290f(0x455)][_0x33290f(0x214)]();}['dispose'](){const _0x22bc0a=_0x22c5ef;super[_0x22bc0a(0x390)](),this[_0x22bc0a(0x3d4)][_0x22bc0a(0x3b9)](new Map()),this['_cursorInfo$'][_0x22bc0a(0x291)](),this[_0x22bc0a(0x455)][_0x22bc0a(0x3b9)]([]),this['_roomMembers$']['complete']();}[_0x22c5ef(0x427)](){const _0x4c33e5=_0x22c5ef;this[_0x4c33e5(0x2d2)]||(this['_init']=!0x0,this[_0x4c33e5(0x324)]['sessionStatus$'][_0x4c33e5(0x255)](I[_0x4c33e5(0x1ca)](this['dispose$']))[_0x4c33e5(0x432)](_0x4c707f=>{const _0x352512=_0x4c33e5;_0x4c707f===u[_0x352512(0x42a)][_0x352512(0x246)]?this[_0x352512(0x32d)]():this['_toggleOffline']();}),this[_0x4c33e5(0x324)][_0x4c33e5(0x32b)][_0x4c33e5(0x255)](I[_0x4c33e5(0x1ca)](this[_0x4c33e5(0x233)]))['subscribe'](_0x16cdaa=>{const _0x270ef2=_0x4c33e5,_0x88f958=_0x16cdaa['eventID'];_0x88f958===g[_0x270ef2(0x1e9)]['UPDATE_CURSOR']&&this[_0x270ef2(0x334)](_0x16cdaa),_0x88f958===g['CollaborationEvent'][_0x270ef2(0x3fb)]&&this['_onCursorDelete'](_0x16cdaa);}),this['_onRefRangeChange'](),this[_0x4c33e5(0x3fa)](this['_commandService']['onCommandExecuted'](_0x1d6aef=>{const _0x2753c6=_0x4c33e5;if(this[_0x2753c6(0x41c)]&&_0x1d6aef['id']===v['SetSelectionsOperation']['id']&&_0x1d6aef[_0x2753c6(0x25a)][_0x2753c6(0x452)]===this['unitID']){const _0x2a39ec=_0x1d6aef['params'];this[_0x2753c6(0x3cd)](_0x2a39ec[_0x2753c6(0x292)],_0x2a39ec[_0x2753c6(0x3eb)][0x0]);}})));}[_0x22c5ef(0x334)](_0x3707c4){const _0x48b720=_0x22c5ef;var _0x324750,_0x437402;const {memberID:_0x3d5953,selection:_0x544a49}=_0x3707c4['data'],{sheetName:_0x3bfb01,range:_0x334355}=B[_0x48b720(0x36c)](_0x544a49),_0x35c33e={'name':(_0x437402=(_0x324750=this[_0x48b720(0x1bb)][_0x48b720(0x216)](this[_0x48b720(0x1cd)],_0x3d5953))==null?void 0x0:_0x324750['name'])!=null?_0x437402:_0x48b720(0x1a4),'range':this['_getMergeRange'](_0x3bfb01,_0x334355),'sheetID':_0x3bfb01,'color':this['_colorAssignService'][_0x48b720(0x397)](_0x3d5953),'selection':_0x544a49},_0x40cc90=this[_0x48b720(0x27a)];_0x40cc90[_0x48b720(0x463)](_0x3d5953,_0x35c33e),this[_0x48b720(0x3d4)][_0x48b720(0x3b9)](_0x40cc90);}[_0x22c5ef(0x2cc)](_0x390873){const _0xd6b7b8=_0x22c5ef,{memberID:_0x3fd737}=_0x390873[_0xd6b7b8(0x3be)],_0x72b63c=this['cursorInfo'];_0x72b63c[_0xd6b7b8(0x3fd)](_0x3fd737),this['_cursorInfo$']['next'](_0x72b63c);}['_getMergeRange'](_0x516dce,_0xd9ad34){const _0x17ace9=_0x22c5ef;var _0x466c20,_0x2f8e0c;const _0x9a90cb=(_0x2f8e0c=(_0x466c20=this[_0x17ace9(0x3a4)][_0x17ace9(0x3f6)](this[_0x17ace9(0x1cd)]))==null?void 0x0:_0x466c20[_0x17ace9(0x2aa)](_0x516dce))==null?void 0x0:_0x2f8e0c[_0x17ace9(0x44f)]();return(_0x9a90cb==null?void 0x0:_0x9a90cb[_0x17ace9(0x302)](_0x5063a6=>a[_0x17ace9(0x1c4)][_0x17ace9(0x438)](_0x5063a6,_0xd9ad34)))||_0xd9ad34;}[_0x22c5ef(0x2ae)](){const _0x1b1077=_0x22c5ef,_0x51c3a1=new a[(_0x1b1077(0x35f))](),_0x232244=Et(),_0x3a4d68=()=>{const _0x417825=_0x1b1077;_0x51c3a1[_0x417825(0x390)]();const _0x22f502=(_0x34699e,_0x587898,_0x586f0d,_0x599a35)=>{const _0x3dd2f1=_0x417825;let _0x1d41c0=[];switch(_0x34699e['id']){case v[_0x3dd2f1(0x3f8)]['DeleteRangeMoveLeftCommandId']:{_0x1d41c0=v[_0x3dd2f1(0x282)](_0x34699e,_0x599a35);break;}case v[_0x3dd2f1(0x3f8)][_0x3dd2f1(0x3b7)]:{_0x1d41c0=v[_0x3dd2f1(0x3e0)](_0x34699e,_0x599a35);break;}case v[_0x3dd2f1(0x3f8)][_0x3dd2f1(0x2d6)]:{_0x1d41c0=v['handleInsertCol'](_0x34699e,_0x599a35);break;}case v['EffectRefRangId'][_0x3dd2f1(0x2d4)]:{_0x1d41c0=v[_0x3dd2f1(0x26a)](_0x34699e,_0x599a35);break;}case v[_0x3dd2f1(0x3f8)]['InsertRangeMoveRightCommandId']:{_0x1d41c0=v[_0x3dd2f1(0x284)](_0x34699e,_0x599a35);break;}case v[_0x3dd2f1(0x3f8)]['InsertRowCommandId']:{_0x1d41c0=v['handleInsertRow'](_0x34699e,_0x599a35);break;}case v[_0x3dd2f1(0x3f8)]['MoveRangeCommandId']:{_0x1d41c0=v[_0x3dd2f1(0x208)](_0x34699e,_0x599a35);break;}case v['EffectRefRangId'][_0x3dd2f1(0x354)]:{_0x1d41c0=v[_0x3dd2f1(0x3fe)](_0x34699e,_0x599a35);break;}case v[_0x3dd2f1(0x3f8)][_0x3dd2f1(0x2f2)]:{_0x1d41c0=v['handleIRemoveRow'](_0x34699e,_0x599a35);break;}}const _0x26dd25=v[_0x3dd2f1(0x3d7)](_0x1d41c0,_0x599a35),_0x3c82ae=this[_0x3dd2f1(0x27a)]['get'](_0x587898);if(_0x3c82ae&&_0x26dd25){const _0x2d995a={..._0x3c82ae,'range':_0x26dd25};this['cursorInfo'][_0x3dd2f1(0x463)](_0x587898,_0x2d995a),_0x232244(()=>{const _0x328d88=_0x3dd2f1,_0x4c7b43=this['_refRangeService']['registerRefRange'](_0x26dd25,_0xe5e1ee=>(_0x4c7b43['dispose'](),_0x22f502(_0xe5e1ee,_0x587898,_0x586f0d,_0x26dd25)));_0x51c3a1[_0x328d88(0x32c)](_0x4c7b43);});}return{'redos':[],'undos':[]};};this[_0x417825(0x27a)][_0x417825(0x1b2)]((_0x11ed1b,_0x2d83fe)=>{const _0x416734=_0x417825,{range:_0x264683,sheetID:_0x4619e5}=_0x11ed1b,_0x4b5931=this[_0x416734(0x400)]['registerRefRange'](_0x264683,_0x4381ed=>(_0x4b5931[_0x416734(0x390)](),_0x22f502(_0x4381ed,_0x2d83fe,_0x4619e5,_0x264683)));_0x51c3a1[_0x416734(0x32c)](_0x4b5931);});};this[_0x1b1077(0x3fa)](a['toDisposable'](this[_0x1b1077(0x3d4)][_0x1b1077(0x432)](()=>{_0x3a4d68();})));}[_0x22c5ef(0x32d)](){const _0x203347=_0x22c5ef;var _0x317da5,_0x5b3d10;if(this['_online']=!0x0,((_0x317da5=this[_0x203347(0x3a4)][_0x203347(0x43f)]())==null?void 0x0:_0x317da5[_0x203347(0x27f)]())!==this[_0x203347(0x1cd)])return;const _0x43502c=(_0x5b3d10=this[_0x203347(0x402)]['get'](v[_0x203347(0x1cf)])[_0x203347(0x1e4)]())==null?void 0x0:_0x5b3d10[0x0],_0x4db93c=this[_0x203347(0x3a4)][_0x203347(0x3b0)](a[_0x203347(0x445)][_0x203347(0x279)])['getActiveSheet']();_0x43502c&&_0x4db93c&&this[_0x203347(0x3cd)](_0x4db93c['getSheetId'](),_0x43502c);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x22c5ef(0x45a)])),w(0x3,a[_0x22c5ef(0x33f)](Re)),w(0x4,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x440)])),w(0x5,a[_0x22c5ef(0x382)]),w(0x6,a[_0x22c5ef(0x1d0)]),w(0x7,a[_0x22c5ef(0x33f)](v[_0x22c5ef(0x38c)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x8c6e43,_0x55aa94,_0x295cdd,_0x308d49)=>{for(var _0x164166=_0x308d49>0x1?void 0x0:_0x308d49?Ct(_0x55aa94,_0x295cdd):_0x55aa94,_0x15a438=_0x8c6e43['length']-0x1,_0x50cb9e;_0x15a438>=0x0;_0x15a438--)(_0x50cb9e=_0x8c6e43[_0x15a438])&&(_0x164166=_0x50cb9e(_0x164166)||_0x164166);return _0x164166;},ce=(_0x3301d8,_0x11dbac)=>(_0x5996f8,_0x3f08ab)=>_0x11dbac(_0x5996f8,_0x3f08ab,_0x3301d8);let F=class extends a[_0x22c5ef(0x435)]{constructor(_0x27aae7,_0x15cf4f,_0x33561a){const _0x14fd7d=_0x22c5ef;super(),_(this,_0x14fd7d(0x45f),new Map()),_(this,_0x14fd7d(0x2d7),new I['Subject']()),(this['_univerInstanceService']=_0x27aae7,this[_0x14fd7d(0x402)]=_0x15cf4f,this[_0x14fd7d(0x443)]=_0x33561a,this['_init']());}[_0x22c5ef(0x390)](){const _0x5680b7=_0x22c5ef;super[_0x5680b7(0x390)](),this['_entityInit$'][_0x5680b7(0x291)](),this[_0x5680b7(0x45f)][_0x5680b7(0x1b2)](_0x320f7c=>_0x320f7c['dispose']());}['getCollabCursors$'](_0x21dfd7){const _0x92a1f2=_0x22c5ef;return this[_0x92a1f2(0x45f)][_0x92a1f2(0x1dd)](_0x21dfd7)?this[_0x92a1f2(0x45f)][_0x92a1f2(0x40d)](_0x21dfd7)[_0x92a1f2(0x1ed)]:this[_0x92a1f2(0x2d7)][_0x92a1f2(0x255)](I[_0x92a1f2(0x270)](_0x11559e=>_0x11559e[_0x92a1f2(0x1cd)]===_0x21dfd7),I['switchMap'](_0x172704=>_0x172704[_0x92a1f2(0x1ed)]));}[_0x22c5ef(0x2d2)](){const _0x237c0e=_0x22c5ef;this['_univerInstanceService'][_0x237c0e(0x238)](a[_0x237c0e(0x445)]['UNIVER_SHEET'])[_0x237c0e(0x255)](I[_0x237c0e(0x1ca)](this[_0x237c0e(0x233)]))[_0x237c0e(0x432)](async _0xdce49b=>{const _0x4e055e=_0x237c0e,_0x5115fb=_0xdce49b['getUnitId'](),_0xf9107d=await this[_0x4e055e(0x387)](_0x5115fb);this[_0x4e055e(0x2d7)][_0x4e055e(0x3b9)](_0xf9107d),this[_0x4e055e(0x45f)][_0x4e055e(0x463)](_0x5115fb,_0xf9107d);}),this[_0x237c0e(0x3a4)]['getTypeOfUnitAdded$'](a[_0x237c0e(0x445)][_0x237c0e(0x33c)])['pipe'](I[_0x237c0e(0x1ca)](this['dispose$']))[_0x237c0e(0x255)](I[_0x237c0e(0x270)](_0x4ed230=>!_0x4ed230[_0x237c0e(0x27f)]()[_0x237c0e(0x3b1)]('__')))[_0x237c0e(0x432)](async _0x4d1776=>{const _0x2ca2a6=_0x237c0e,_0x35ad56=_0x4d1776[_0x2ca2a6(0x27f)](),_0x343cab=await this[_0x2ca2a6(0x3c5)](_0x35ad56);this[_0x2ca2a6(0x2d7)][_0x2ca2a6(0x3b9)](_0x343cab),this[_0x2ca2a6(0x45f)][_0x2ca2a6(0x463)](_0x35ad56,_0x343cab);}),I[_0x237c0e(0x295)](this[_0x237c0e(0x3a4)][_0x237c0e(0x453)](a['UniverInstanceType'][_0x237c0e(0x33c)]),this['_univerInstanceService'][_0x237c0e(0x453)](a['UniverInstanceType'][_0x237c0e(0x279)]))[_0x237c0e(0x255)](I[_0x237c0e(0x1ca)](this['dispose$']))[_0x237c0e(0x432)](_0x56c009=>{const _0x38d123=_0x237c0e,_0x10fa5e=_0x56c009['getUnitId'](),_0x3e6606=this[_0x38d123(0x45f)][_0x38d123(0x40d)](_0x10fa5e);_0x3e6606&&(_0x3e6606['dispose'](),this['_entities'][_0x38d123(0x3fd)](_0x10fa5e));});}async[_0x22c5ef(0x387)](_0x176737){const _0x56a45f=_0x22c5ef,_0x37f430=await this[_0x56a45f(0x443)][_0x56a45f(0x23e)](_0x176737),_0x13b3d0=this[_0x56a45f(0x402)]['createInstance'](ge,_0x176737,_0x37f430);return _0x13b3d0[_0x56a45f(0x427)](),_0x13b3d0;}async[_0x22c5ef(0x3c5)](_0x2504a6){const _0x3cef8e=_0x22c5ef,_0x2e81f2=await this['_collabSessionService'][_0x3cef8e(0x23e)](_0x2504a6),_0x82b842=this[_0x3cef8e(0x402)][_0x3cef8e(0x1a2)](ve,_0x2504a6,_0x2e81f2);return _0x82b842[_0x3cef8e(0x427)](),_0x82b842;}};F=Tt([ce(0x0,a[_0x22c5ef(0x382)]),ce(0x1,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x45a)])),ce(0x2,a[_0x22c5ef(0x33f)](u['CollaborationSessionService']))],F);function _0x2b9c(){const _0x541a15=['START_CALCULATION','RemoveColCommandId','[Unhandled\x20Rejection]:\x20','YUUMI_RATE_OVER_LIMIT','moveTo','collab-text-range-','getAncestorScale','send','asObservable','_scheduleHeartbeat','_collabCursorState$','_messageService','DisposableCollection','green.600','_themeService','YUUMI_ASYNCIO_CANCELLED','_updateCollabCursors','getSkeleton','idSuffix','_revisionService','_lastResponseTimestamp','BehaviorSubject','colno','YUUMI_URL_COL_OUT_OF_RANGE','type','deserializeRangeWithSheet','jsxs','transformSelections','_initCommandExecutedListener','_localCacheService','_handleHover','Tools','_id','pluginName','height','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','INotificationService','_cursorShapes','saveTaskMap','removeEventListener','_clearOtherTimers','getCurrent','filename','_beforeCloseService','syncEditingCollabCursor','fromEvent','red.300','IUniverInstanceService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','#FFF','unhandledrejection','debounceTime','_startSheetCollabCursor','onPointerMove$','m1Prime','useObservable','_anchor','RefRangeService','SOCKET_FAILED_RETRY','on-line-icon','whenReady','dispose','getCurrentRevOfUnit','defineProperty','PAYMENT_CHANNEL_NOT_SUPPORT','mask','fillText','session.connection-failed','assignAColorForMemberID','url(#off-line-icon_clip0_910_343)','assign','_monkeyPatchLogService','SNAPSHOT_INVALID_SNAPSHOT','_initCommandInterceptor','Plugin','transformIMECache','isTransformMutationsWithChangesetSuccess','MOBILE_VERIFY_CODE_MISMATCH','all','CollaborationUIEventService','DocSkeletonManagerService','_univerInstanceService','loadUnit','_colorIndex','USER_NOT_FOUND','string','_transformUndoRedoStack','NOT_COLLAB','SetFormulaCalculationNotificationMutation','error','round','/universer-api/license/formula/limit/start','saveImage','getCurrentUnitForType','startsWith','REDEMPTION_CODE_HAS_BEEN_CREATED','REDEMPTION_CODE_NOT_STARTED','labelPosition','_sheetSkeletonManagerService','ENTITLE_COUPON_EXPIRED','DeleteRangeMoveUpCommandId','memberID','next','generateRandomId','m2Prime','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','addEventListener','data','_getAnchorBounding','DocIMEInputManagerService','collab-text-anchor-','_initDependencies','TEXT_RANGE_LAYER_INDEX','COMPLETION_FINISHED','_startDocCollabCursor','save','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_initEvent','_name','getCellPositionByOffset','getUnitStatus$','setActiveRange','_updateLocalCursor','CommandType','textRanges','debounce','editingUnit','_assignedColors','Optional','_cursorInfo$','startColumn','IMessageService','runRefRangeMutations','DocSelectionManagerService','hide','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','SetDocZoomRatioOperation','blue.400','distinctUntilChanged','setUndoRedoMutationParamsCache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleDeleteRangeMoveUp','useRef','getOffsetConfig','_updateURLWithCurrentState','lineno','Success','body','_unitOnClients','ThemeService','/universer-api/frontend/logs','onLocalMutation','selections','_initWindowErrorListener','xlink:href','clearInterval','1em','getCoordByCell','_unitStatus','debug','36577056qATsdY','sessionTicket','runId','getUniverSheetInstance','_initResize','EffectRefRangId','_heartbeatTimer','disposeWithMe','USERS_LEAVE','imageSourceType','delete','handleIRemoveCol','_localeService','_refRangeService','startRow','_injector','_doCreateSocket','fillStyle','APPLY_PERMISSION_DENIED','312760nByOqQ','_getSessionTicket','_config','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_initUnhandledRejectionListener','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','get','_drawRectRange','permission.title','_dataLoaderService','261StZtNo','evenodd','getMemberID','_saveTaskMap','REDEMPTION_INVALID_CODE','executeCommand','setShapeProps','origin','_docTransformSelectionsService','_status$','lineTo','_online','functionsExecutedState','SYNCED','SOCKET_FAILED','yellow.400','ENTITLE_INVALID_COUPON_CODE','REDEMPTION_USER_NOT_ELIGIBLE','YUUMI_TABLE_NOT_FOUND_IN_UNIT','urlChange$','_checkAndWaitForCalculationPermission','newValue','init','_commandService','NodePositionConvertToCursor','SessionStatus','FETCH_MISS','popstate','parseInt','_uploadLog','NOT_FOUND','fill','APPLY_REVISION_CONFILICT','subscribe','UNDEFINED','NodePositionConvertToRectRange','RxDisposable','_pollingInterval','UPDATE_CURSOR','contains','Tooltip','_transformService','INVITE_CODE_HAS_BEEN_UES','OTHER_CLIENTS_EDITING','jsx','ENTITLE_COUPON_USED_UP','getFocusedUnit','MemberService','_urlService','_createSocketURL','_collabSessionService','setAlpha','UniverInstanceType','enableFrontendLog','_transformHistoryAndStateStack','split','CONNECTOR_DATA_TOO_LARGE','CollaborationUIEventId','createElement','OnLineIcon','color','_collaborationUIEventService','getMergeData','LOGIN_TOKEN_PROCESSING_FAILED','shift','unitId','getTypeOfUnitDisposed$','WECHAT_HAS_BEEN_BOUND','_roomMembers$','_send','switchMap','getCollabCursors$','_backgroundColor','Injector','_selfUnitIDs','rgba(255,\x20255,\x20255,\x200.01)','useDependency','map','_entities','ENTITLE_INSUFFICIENT_QUOTA','svg','AUTHORIZE_CODE_ILLEGAL','set','CollaborationDataLoaderController','ENTITLE_NEED_BILLING_ADDRESS','defIds','formula.calculation.started','getVpScrollXYInfoByPosToVp','_labelPosition','RichTextEditingMutation','createInstance','row','Unknown\x20user','getUndoRedoMutationParamsCache','COLORS','onRendered','key','_currentUsage','CollaborationSocketService','updateOfflineData','white','_setFormulaLimitStatus','eventID','_getFormulaLimitStatus','black','Error','forEach','transform','onCommandExecuted','_registerDependencies','ENTITLE_DUP_SUBSCRIPTION','forwardRef','searchParams','YUUMI_UNABLE_LOAD_URL','UniverCollaborationClientPlugin','_memberService','touchDependencies','TEXT','collabCursorState$','SetTextSelectionsOperation','2568907VeGZWv','1610873cHQpwL','YUUMI_ALL_TABLES_IS_INVALID','totalFormulasToCalculate','Rectangle','reason','ISocketService','WebBrowserSingleActiveUnitService','264ZvIXHk','undoState','takeUntil','_docClipboardService','displayName','unitID','FromArray','SheetsSelectionsService','ICommandService','_imageIoService','registerComponent','IConfigService','location','IRenderManagerService','doc.mutation.rich-text-editing','UnitStatus','SheetCollabCursorShape','registerBeforeClose','...','serializeRangeWithSheet','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','has','code','tag','transformMutationsWithChangeset','then','isActive','getCollabEntity$','getCurrentSelections','CollaborationController','getSheetId','max','Disposable','CollaborationEvent','APPLY_DUPLICATED','setInterval','getConfig','cursorInfo$','stage','_setupBeforeClosingHandler','_eventUnsubscribe','actions','unshift','_removeClearOtherTimer','_setupSubUnitSync','4481532RWIbMG','5lNjCTm','_saveCache','IURLService','reconnect','disposeUnit','_context','Module','addObjects','getParam','children','collab-client.tooltip.reconnect','_maxFormulaLimit','ENSURE_SNAPSHOT_EXECUTION','_taskIds','_showGuardMessage','values','clearTimeout','OTHER_CLIENT_EDITING','handleMoveRange','includes','wsSessionTicketUrl','use','AWAITING_WITH_PENDING','some','column','activeSheet$','CLOSE_ROOM','ENTITLE_REPORT_LIMIT_EXCEED','INVALID_INVITE_CODE','disableLocalCache','getValue','_drawTextRange','getMember','getUnhiddenWorksheets','YUUMI_CONNECTOR_URL_NOT_FOUND','USER_NOT_INVITED_CODE','backgroundColor','getRenderById','setConfig','_removeCollabCursors','endColumn','_docTransformStateCacheService','limitInfo','createSocket','addObject','font','ITransformService','enableLocalCache','getDocRanges','arc','IBeforeCloseService','TOO_MANY_REQUESTS','DesktopCollaborationStatusDisplayController','width','toDisposable','setItem','_transformPreviousActiveRange','makeDirty','_ensureSubject','createIdentifier','REDEMPTION_CODE_INACTIVE','dispose$','PERMISSION_DENIED','_startCalculationLimit','loadOfflineData','focused$','getTypeOfUnitAdded$','getRangePointData','_localStorageService','onTransformChange$','_notificationService','MessageType','requireSession','_docSkeletonManagerService','_configService','_disabled','_hover','UniverIcon','translate(.97)','SetWorksheetActivateCommand','ONLINE','stageInfo','from','PY_RUNTIME_SCRIPT_ERROR','LICENSE_IMPORT_SIZE_EXCEEDED','defs','mutations','getLocalCacheKey','getSheetObject','trim','UNRECOGNIZED','with','measureText','6jTQHxK','text','pipe','_releaseCalculationLimit','ACTIVE_UNIT_EVENT_CHANNEL','_renderManagerService','ILogService','params','_scene','href','restore','_hovered','mapTo','isArray','collabStatus.conflict','_hasFormulaInDirtyRanges','EMAIL_VERIFY_CODE_MISMATCH','SUBMIT_CHANGESET_TIMEOUT','_docSkeleton','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','_render','Loading','stringify','handleInsertRangeMoveDown','OFFLINE','pushState','session.will-retry','bottom','_initStatusListener','filter','collabStatus.syncing','IUIPartsService','ranges','shareReplay','url(#on-line-icon_clip0_910_349)','show','NO_OTHER_CLIENTS_EDITING','_cursors','UNIVER_SHEET','cursorInfo','UniverCollaborationClientUIPlugin','ALREADY_EXISTS','_toggleOffline','SHEET_VIEWPORT_KEY','getUnitId','size','0\x200\x2016\x2016','handleDeleteRangeMoveLeft','RECT','handleInsertRangeMoveRight','selection','onPointerEnter$','subunit','EMAIL_HAS_BEEN_BOUND','DataLoaderService','attrs','FormulaExecutedStateType','stack','onStarting','CONFLICT','_anchorDot','_getSheetObject','complete','subUnitId','_textBubble','length','merge','INVITE_CODE_REQUIRED','ENTITLE_CHAT_LIMIT_EXCEED','combineLatest','getRelativeToViewportCoord','2eXClhr','push','collaboration.offline-data-not-saved','RevisionService','colorChannel1','MOBILE_HAS_BEEN_BOUND','toStringTag','1559204gIpBTq','closePath','YUUMI_NO_CUBOID_FOR_QUESTION','DOC_RANGE_TYPE','name','_initEntityListener','_handleEvent','transformByState','_handleHeartbeatEvent','getSheetBySheetId','saveOfflineData','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','_onRefRangeChange','entries','replaceState','bind','beforeCommandExecuted','_getSaveTimeout','_collaborationSessionService','on-line-icon_clip0_910_349','off-line-icon','RemoteUniscriptService','ticket','sheetID','_docTransformIMECacheService','collaboration.closeRoom','transformStateCache','_uiPartsService','transformRemoteChangeset','CollaborationSessionService','ColorKit','unit','LocaleService','now','[CollaborationDataLoaderController]','currentColor','USER_IS_ANONYMOUS','setStateCache','history','isTransformMutationFailure','SetFormulaCalculationStartMutation','join','_onCursorDelete','collabStatus.offline','getUnit','toString','_collabCursorController','RegularPolygon','_init','_httpService','InsertRangeMoveDownCommandId','DocStateChangeManagerService','InsertColCommandId','_entityInit$','collabStatus.notCollab','uni.network.url-service','message','unload','_colorAssignService','152173BdrAoh','drawWith','_scheduleClearOtherTimer','/universer-api/license/formula/limit/done','_lastPointer','_applyCommand','deepClone','_shapes','_hideTimer','executionId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','APPLY_REJECT','catch','_handleJoinEvent','_docStateChangeManagerService','DATA_SOURCE_TOO_LARGE','Shape','transformMutation','HTTPService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','off-line-icon_clip0_910_343','RemoveRowCommandId','Rect','FormulaExecuteStageType','connectInjector','_docSyncEditingCollabCursorService','_getScale','fromEventSubject','/run/','getColorFromTheme','JOIN_ROOM_FAILED','BuiltInUIPart','mergeOverrideWithDependencies','clsx','INVALID_ARGUMENT','none','CHANGESET_REVISION_CONFILICT','find','subscribeEvent','currentTheme$','setTimeout','path','_cachedData','getColor','AWAITING','http://www.w3.org/2000/svg','collaboration.single-unit.warning','YUUMI_SUBSCRIPTION_NOT_FOUND','top','REDEMPTION_CODE_FULLY_REDEEMED','INVITE_CODE_ALREADY_BOUND','CollaborationStatus','engine','formula.calculation.unable','roomMembers$','LICENSE_EXPORT_SIZE_EXCEEDED','ILocalCacheService','0\x200\x2017\x2016','div','getStateCache','triggerDblclick','LOCAL_CACHE_INTERVAL_KEY','LICENSE_MAX_UNITS_EXCEEDED','Warning','Failed','_initUserListener','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','registerDependencies','univer-flex\x20univer-items-center','_refreshCollabCursors','BrowserCollaborationSocketService','_session','SNAPSHOT_HAS_BEEN_REMOVED','storage','_logService','UNAUTHENTICATED','purple.300','M0\x200H16V16H0z','event$','add','_toggleOnline','LICENSE_DISTRO_REJECTED','onPointerLeave$','exhaustSavingTask','redoState','setParam','source','_onCursorUpdate','findNodePositionByCharIndex','_checkCalculationAvailable','_collaborationController','endRow','_range','LOCAL_CACHE_INTERVAL','entityInit$','UNIVER_DOC','getOwnPropertyDescriptor','min','Inject','addHandlerCallback','_scheduleSaving','result','substring','_color','post','\x20at\x20','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_memberID','SheetSkeletonManagerService','YUUMI_AI_RUN_FAILED','toRgbString','registerRenderModule','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','LOGIN_FAILED','range','unsubscribe','roomMembers','_clearPolling'];_0x2b9c=function(){return _0x541a15;};return _0x2b9c();}const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x100ad2,_0x57a0ca){const _0x5ad10e=_0x22c5ef;let {radius:_0x51d0e1,width:_0x30a9e2,height:_0x293f4f}=_0x57a0ca;_0x51d0e1=_0x51d0e1!=null?_0x51d0e1:0x0,_0x30a9e2=_0x30a9e2!=null?_0x30a9e2:0x1e,_0x293f4f=_0x293f4f!=null?_0x293f4f:0x1e;let _0x48233a=0x0,_0x148736=0x0,_0x59af61=0x0;_0x48233a=_0x148736=_0x59af61=Math[_0x5ad10e(0x33e)](_0x51d0e1,_0x30a9e2/0x2,_0x293f4f/0x2),_0x100ad2['beginPath'](),_0x100ad2[_0x5ad10e(0x357)](_0x48233a,0x0),_0x100ad2[_0x5ad10e(0x41b)](_0x30a9e2-_0x148736,0x0),_0x100ad2[_0x5ad10e(0x227)](_0x30a9e2-_0x148736,_0x148736,_0x148736,Math['PI']*0x3/0x2,0x0,!0x1),_0x100ad2[_0x5ad10e(0x41b)](_0x30a9e2,_0x293f4f-_0x59af61),_0x100ad2['arc'](_0x30a9e2-_0x59af61,_0x293f4f-_0x59af61,_0x59af61,0x0,Math['PI']/0x2,!0x1),_0x100ad2[_0x5ad10e(0x41b)](0x0,_0x293f4f),_0x100ad2[_0x5ad10e(0x41b)](0x0,_0x48233a),_0x100ad2['arc'](_0x48233a,_0x48233a,_0x48233a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x100ad2[_0x5ad10e(0x2a2)](),_0x57a0ca[_0x5ad10e(0x430)]&&(_0x100ad2[_0x5ad10e(0x3c6)](),_0x100ad2[_0x5ad10e(0x404)]=_0x57a0ca[_0x5ad10e(0x430)],_0x57a0ca['fillRule']===_0x5ad10e(0x412)?_0x100ad2[_0x5ad10e(0x430)](_0x5ad10e(0x412)):_0x100ad2[_0x5ad10e(0x430)](),_0x100ad2[_0x5ad10e(0x25d)]());}class re extends C[_0x22c5ef(0x2ed)]{constructor(_0x836634,_0x272531){const _0x44cfab=_0x22c5ef;super(_0x836634,_0x272531),_(this,'color'),_(this,_0x44cfab(0x254)),(this[_0x44cfab(0x44d)]=_0x272531==null?void 0x0:_0x272531['color'],this[_0x44cfab(0x254)]=_0x272531==null?void 0x0:_0x272531[_0x44cfab(0x254)]);}static['drawWith'](_0x43e264,_0x387594){const _0x3bcc4d=_0x22c5ef,{text:_0x1364df,color:_0x1a73b0}=_0x387594;_0x43e264[_0x3bcc4d(0x3c6)](),_0x43e264[_0x3bcc4d(0x223)]=_0x3bcc4d(0x40a);const _0x3d001a=_0x43e264[_0x3bcc4d(0x252)](_0x1364df)['width'],_0x545286=Math[_0x3bcc4d(0x33e)](_0x3d001a+0x2*le,Ue);Ot(_0x43e264,{'height':X,'radius':0x4,'width':_0x545286,'fill':_0x1a73b0}),_0x43e264[_0x3bcc4d(0x404)]=_0x3bcc4d(0x384);const _0x42587c=le,_0x11cd40=X-pt,_0xc97476=Ue-0x2*le;if(_0x3d001a>_0xc97476){let _0x3c5f10='',_0x5119d0=0x0;for(const _0x12ef32 of _0x1364df){const _0x1e4f5e=_0x43e264['measureText'](_0x12ef32)[_0x3bcc4d(0x22b)];if(_0x5119d0+_0x1e4f5e<=_0xc97476-_0x43e264['measureText'](_0x3bcc4d(0x1da))['width'])_0x3c5f10+=_0x12ef32,_0x5119d0+=_0x1e4f5e;else{_0x3c5f10+=_0x3bcc4d(0x1da);break;}}_0x43e264[_0x3bcc4d(0x395)](_0x3c5f10,_0x42587c,_0x11cd40);}else _0x43e264['fillText'](_0x1364df,_0x42587c,_0x11cd40);_0x43e264['restore']();}['_draw'](_0x3c7b5d){const _0x4a6647=_0x22c5ef;re[_0x4a6647(0x2de)](_0x3c7b5d,this);}}const _e=_0x22c5ef(0x3c1),Rt=_0x22c5ef(0x358),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x22c5ef(0x45c);class Le{constructor(_0x3ca749,_0x3bbb6b,_0x172344,_0x548c1b){const _0x3925f=_0x22c5ef;_(this,'_shapes',[]),_(this,_0x3925f(0x38b),null),_(this,_0x3925f(0x293),null),_(this,_0x3925f(0x28f),null),_(this,_0x3925f(0x2e5),null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0x3ca749,this['_scene']=_0x3bbb6b,this[_0x3925f(0x265)]=_0x172344,this['_document']=_0x548c1b,this[_0x3925f(0x267)]());}set[_0x22c5ef(0x242)](_0x4af022){const _0x55802b=_0x22c5ef;_0x4af022?(this[_0x55802b(0x28f)]&&this[_0x55802b(0x28f)][_0x55802b(0x3d9)](),this[_0x55802b(0x293)]&&this[_0x55802b(0x293)][_0x55802b(0x276)]()):(this[_0x55802b(0x28f)]&&this['_anchorDot'][_0x55802b(0x276)](),this[_0x55802b(0x293)]&&this[_0x55802b(0x293)][_0x55802b(0x3d9)]());}[_0x22c5ef(0x390)](){const _0x3a163b=_0x22c5ef;for(const _0x1c6a1f of this['_shapes'])_0x1c6a1f[_0x3a163b(0x390)]();this[_0x3a163b(0x293)]&&this[_0x3a163b(0x293)][_0x3a163b(0x390)](),this[_0x3a163b(0x28f)]&&this[_0x3a163b(0x28f)][_0x3a163b(0x390)](),this['_anchor']&&this[_0x3a163b(0x38b)][_0x3a163b(0x390)](),this[_0x3a163b(0x1f0)]&&this['_eventUnsubscribe']();}[_0x22c5ef(0x267)](){const _0x590699=_0x22c5ef;var _0x29de0a;const {_docSkeleton:_0x4c20fa,_document:_0x167d1a}=this,{color:_0x118a81,name:_0x120d1c,ranges:_0x429807}=this['_cursor'],_0x5c11dd=_0x167d1a[_0x590699(0x3e2)](),{docsLeft:_0x1fd1af,docsTop:_0x10b263}=_0x5c11dd,_0x479f5a=new T[(_0x590699(0x429))](_0x5c11dd,_0x4c20fa);for(const {startOffset:_0x385f35,endOffset:_0x290ed5,rangeType:_0x181d93,segmentId:_0x317327,segmentPage:_0x529c10,collapsed:_0x291d53,isActive:_0x89f8ba}of _0x429807){const _0x67f42b=_0x4c20fa['findNodePositionByCharIndex'](_0x385f35,!0x0,_0x317327,_0x529c10);let _0x1c6521=_0x4c20fa[_0x590699(0x335)](_0x290ed5,!0x0,_0x317327,_0x529c10);if(_0x1c6521==null&&(_0x1c6521=_0x4c20fa[_0x590699(0x335)](_0x290ed5-0x1,!0x1,_0x317327,_0x529c10)),_0x89f8ba){const {contentBoxPointGroup:_0x9975ee}=_0x479f5a[_0x590699(0x239)](_0x1c6521,_0x1c6521);if(_0x9975ee[_0x590699(0x294)]===0x0)continue;this['_drawAnchor'](_0x118a81,_0x9975ee,_0x1fd1af,_0x10b263,_0x120d1c),this[_0x590699(0x1f0)]=this[_0x590699(0x371)]();}if(_0x67f42b&&_0x1c6521){if(_0x181d93===a['DOC_RANGE_TYPE'][_0x590699(0x283)]){const _0x5bc068=new T[(_0x590699(0x434))](_0x5c11dd,_0x4c20fa),{pointGroup:_0x43f893}=(_0x29de0a=_0x5bc068[_0x590699(0x239)](_0x67f42b,_0x1c6521))!=null?_0x29de0a:{};if(_0x43f893==null||_0x43f893[_0x590699(0x294)]===0x0)continue;this[_0x590699(0x40e)](_0x118a81,_0x43f893,_0x1fd1af,_0x10b263);}else{if(!_0x291d53){const {borderBoxPointGroup:_0x27dbe0}=_0x479f5a['getRangePointData'](_0x67f42b,_0x1c6521);if(_0x27dbe0[_0x590699(0x294)]===0x0)continue;this[_0x590699(0x215)](_0x118a81,_0x27dbe0,_0x1fd1af,_0x10b263);}}}}}['_drawAnchor'](_0x102f83,_0x294888,_0x5b0b11,_0x2140d8,_0xe6ec59){const _0x4c4a95=_0x22c5ef,_0x41135f=this[_0x4c4a95(0x3bf)](_0x294888),{left:_0x5be808,top:_0x14509c,height:_0x2f7c17}=_0x41135f,_0x2c4fb7=this[_0x4c4a95(0x2f7)](),_0x3778ba=Nt/_0x2c4fb7,_0x393a55=new C[(_0x4c4a95(0x2f3))](_e+a[_0x4c4a95(0x3ba)](H),{'left':_0x5be808+_0x5b0b11-_0x3778ba,'top':_0x14509c+_0x2140d8,'height':_0x2f7c17,'width':Dt,'fill':_0x102f83||C[_0x4c4a95(0x308)](a[_0x4c4a95(0x1a6)][_0x4c4a95(0x1b0)],0x0),'strokeWidth':_0x3778ba,'stroke':Ut,'evented':!0x0});this[_0x4c4a95(0x38b)]=_0x393a55,this[_0x4c4a95(0x25b)]['addObject'](_0x393a55,T[_0x4c4a95(0x3c3)]);const _0x49938c=new C['Rect'](_e+a['generateRandomId'](H),{'left':_0x5be808+_0x5b0b11-_0x3778ba,'top':_0x14509c+_0x2140d8-he/0x2,'height':he,'width':he,'fill':_0x102f83||C['getColor'](a[_0x4c4a95(0x1a6)][_0x4c4a95(0x1b0)],0x0),'strokeWidth':0x0,'stroke':_0x102f83||C['getColor'](a['COLORS'][_0x4c4a95(0x1b0)],0x0),'evented':!0x1});this[_0x4c4a95(0x28f)]=_0x49938c,this[_0x4c4a95(0x25b)]['addObject'](_0x49938c,T[_0x4c4a95(0x3c3)]);const _0x4e03a2=new re(_e+a[_0x4c4a95(0x3ba)](H),{'left':_0x5be808+_0x5b0b11-_0x3778ba,'top':_0x14509c+_0x2140d8-X,'text':_0xe6ec59,'color':_0x102f83});this[_0x4c4a95(0x293)]=_0x4e03a2,this[_0x4c4a95(0x25b)]['addObject'](_0x4e03a2,T['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x22c5ef(0x371)](){const _0x1c2661=_0x22c5ef,_0x491ec=this[_0x1c2661(0x38b)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x4f59b0=_0x1c2661;this[_0x4f59b0(0x242)]=!0x0;}),_0x70e966=this[_0x1c2661(0x38b)][_0x1c2661(0x32f)]['subscribeEvent'](()=>{const _0x8190a2=_0x1c2661;this[_0x8190a2(0x2e5)]&&clearTimeout(this[_0x8190a2(0x2e5)]),this[_0x8190a2(0x2e5)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1c8e8c=_0x1c2661;_0x491ec[_0x1c8e8c(0x350)](),_0x70e966[_0x1c8e8c(0x350)]();};}[_0x22c5ef(0x215)](_0x58cc5b,_0x16b46e,_0x5c8d02,_0x1b6ab6){const _0x457947=_0x22c5ef,_0x505cb5=new a['ColorKit'](_0x58cc5b)['setAlpha'](0.2)[_0x457947(0x34b)](),_0x5ba312=new C[(_0x457947(0x2d1))](Rt+a[_0x457947(0x3ba)](H),{'pointsGroup':_0x16b46e,'fill':_0x505cb5||C[_0x457947(0x308)](a[_0x457947(0x1a6)]['black'],0.2),'left':_0x5c8d02,'top':_0x1b6ab6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x457947(0x29b)](_0x5ba312),this[_0x457947(0x25b)][_0x457947(0x222)](_0x5ba312,T[_0x457947(0x3c3)]);}['_drawRectRange'](_0x5bfb29,_0x224c83,_0x565fc7,_0x5f4726){const _0x4e98b6=_0x22c5ef,_0x1d31b9=new a[(_0x4e98b6(0x2c0))](_0x5bfb29)[_0x4e98b6(0x444)](0.2)[_0x4e98b6(0x34b)](),_0x54738d=new C['RegularPolygon'](bt+a['generateRandomId'](H),{'pointsGroup':_0x224c83,'fill':_0x1d31b9||C[_0x4e98b6(0x308)](a[_0x4e98b6(0x1a6)][_0x4e98b6(0x1b0)],0.2),'left':_0x565fc7,'top':_0x5f4726,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e98b6(0x2e4)][_0x4e98b6(0x29b)](_0x54738d),this['_scene'][_0x4e98b6(0x222)](_0x54738d,T[_0x4e98b6(0x3c3)]);}[_0x22c5ef(0x3bf)](_0x1bbbd4){const _0x42b783=_0x1bbbd4[0x0],_0x44ec61=_0x42b783[0x0],_0x575679=_0x42b783[0x2],{x:_0x198215,y:_0xae13ae}=_0x44ec61,{x:_0x296650,y:_0x51c131}=_0x575679;return{'left':_0x198215,'top':_0xae13ae,'width':_0x296650-_0x198215,'height':_0x51c131-_0xae13ae};}['_getScale'](){const _0x40372b=_0x22c5ef,{scaleX:_0x1f85ad,scaleY:_0x438833}=this[_0x40372b(0x25b)]['getAncestorScale']();return Math[_0x40372b(0x1e7)](_0x1f85ad,_0x438833);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x43d11e,_0x1478aa,_0x5b565e,_0x367e8e)=>{const _0x278635=_0x22c5ef;for(var _0x4a0fe1=_0x367e8e>0x1?void 0x0:_0x367e8e?Lt(_0x1478aa,_0x5b565e):_0x1478aa,_0x40b439=_0x43d11e[_0x278635(0x294)]-0x1,_0x23ba16;_0x40b439>=0x0;_0x40b439--)(_0x23ba16=_0x43d11e[_0x40b439])&&(_0x4a0fe1=_0x23ba16(_0x4a0fe1)||_0x4a0fe1);return _0x4a0fe1;},q=(_0x3200a4,_0x5d2aa4)=>(_0x2d586b,_0x227d8a)=>_0x5d2aa4(_0x2d586b,_0x227d8a,_0x3200a4);let Ee=class extends a[_0x22c5ef(0x435)]{constructor(_0x347394,_0xdc37ca,_0x3e8c31,_0x5d9e28,_0x5ad9e6){const _0x1b7949=_0x22c5ef;super(),_(this,_0x1b7949(0x378),[]),_(this,'_cursors',[]),(this[_0x1b7949(0x1fb)]=_0x347394,this['_docSkeletonManagerService']=_0xdc37ca,this['_collabCursorController']=_0x3e8c31,this[_0x1b7949(0x428)]=_0x5d9e28,this[_0x1b7949(0x361)]=_0x5ad9e6,this[_0x1b7949(0x2d2)]());}[_0x22c5ef(0x2d2)](){const _0x1de964=_0x22c5ef,_0x3aa0bf=this[_0x1de964(0x1fb)][_0x1de964(0x452)],_0x54c778=this[_0x1de964(0x23f)];this[_0x1de964(0x3fa)](I[_0x1de964(0x298)]([this[_0x1de964(0x2d0)][_0x1de964(0x458)](_0x3aa0bf),this[_0x1de964(0x361)][_0x1de964(0x304)]])[_0x1de964(0x255)]($[_0x1de964(0x45e)](([_0xe73d99,_0x3aa096])=>({'skeleton':_0x54c778[_0x1de964(0x364)](),'cursors':[..._0xe73d99['values']()]['flatMap'](_0x20d934=>({..._0x20d934,'color':this[_0x1de964(0x361)]['getColorFromTheme'](_0x20d934[_0x1de964(0x44d)])}))})))['subscribe'](_0x324920=>{const _0x165595=_0x1de964;if(this[_0x165595(0x21d)](),_0x324920){const {skeleton:_0x7457e0,cursors:_0x1dc01d}=_0x324920;this['_updateCollabCursors'](_0x7457e0,_0x1dc01d);}})),this[_0x1de964(0x3f7)](),this[_0x1de964(0x36f)]();}['_updateCollabCursors'](_0x1fedc7,_0x1a1301){const _0x2401ed=_0x22c5ef,{scene:_0xbe30d0,mainComponent:_0x41fb09}=this[_0x2401ed(0x1fb)],_0x4c2f2b=_0x1a1301[_0x2401ed(0x45e)](_0x32053a=>new Le(_0x32053a,_0xbe30d0,_0x1fedc7,_0x41fb09));this['_cursorShapes']=_0x4c2f2b,this[_0x2401ed(0x278)]=_0x1a1301;}[_0x22c5ef(0x322)](){const _0x29a189=_0x22c5ef;this['_removeCollabCursors']();const {scene:_0x35401e,mainComponent:_0x42ec87}=this[_0x29a189(0x1fb)],_0x3d0ae0=this['_docSkeletonManagerService']['getSkeleton'](),_0x3ed869=this[_0x29a189(0x278)][_0x29a189(0x45e)](_0x344839=>new Le(_0x344839,_0x35401e,_0x3d0ae0,_0x42ec87));this[_0x29a189(0x378)]=_0x3ed869;}[_0x22c5ef(0x21d)](){const _0x3cf5dc=_0x22c5ef;this[_0x3cf5dc(0x378)][_0x3cf5dc(0x1b2)](_0x37c3e8=>_0x37c3e8[_0x3cf5dc(0x390)]()),this[_0x3cf5dc(0x378)]=[];}[_0x22c5ef(0x36f)](){const _0x82d9ce=_0x22c5ef,_0x4504d1=[T[_0x82d9ce(0x3db)]['id']];this[_0x82d9ce(0x3fa)](this['_commandService'][_0x82d9ce(0x1b4)](_0x23c825=>{const _0x59fa98=_0x82d9ce;_0x4504d1['includes'](_0x23c825['id'])&&_0x23c825[_0x59fa98(0x25a)][_0x59fa98(0x452)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x22c5ef(0x3f7)](){const _0x4c118f=_0x22c5ef;this[_0x4c118f(0x3fa)](a[_0x4c118f(0x2f8)](this[_0x4c118f(0x1fb)][_0x4c118f(0x311)][_0x4c118f(0x23b)])[_0x4c118f(0x255)]($['filter'](_0x3f9b1f=>_0x3f9b1f[_0x4c118f(0x36b)]===C[_0x4c118f(0x2e7)]['resize']),$['throttleTime'](0x10))[_0x4c118f(0x432)](()=>{const _0x77a0fc=_0x4c118f;this[_0x77a0fc(0x322)]();}));}};Ee=Mt([q(0x1,a[_0x22c5ef(0x33f)](V[_0x22c5ef(0x3a3)])),q(0x2,a[_0x22c5ef(0x33f)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x3e8)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x22c5ef(0x2ed)]{constructor(_0x3c70a3,_0x1c5dbf){const _0x5749db=_0x22c5ef;super(_0x3c70a3,_0x1c5dbf),_(this,_0x5749db(0x344)),_(this,_0x5749db(0x25e),!0x1),_(this,_0x5749db(0x339)),_(this,_0x5749db(0x3c9),''),_(this,_0x5749db(0x1a0),_0x5749db(0x30d)),_(this,_0x5749db(0x459)),(_0x1c5dbf&&this[_0x5749db(0x417)](_0x1c5dbf),this[_0x5749db(0x286)][_0x5749db(0x303)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5749db(0x32f)][_0x5749db(0x303)](()=>this[_0x5749db(0x417)]({'hovered':!0x1})));}['setShapeProps'](_0x5531d7){const _0x6de99a=_0x22c5ef;var _0x587292,_0x46bd2c,_0x122a82,_0x37aeef,_0x97f786,_0x279031;this['_color']=(_0x587292=_0x5531d7[_0x6de99a(0x44d)])!=null?_0x587292:this[_0x6de99a(0x344)],this[_0x6de99a(0x25e)]=(_0x46bd2c=_0x5531d7['hovered'])!=null?_0x46bd2c:this[_0x6de99a(0x25e)],this['_range']=(_0x122a82=_0x5531d7[_0x6de99a(0x34f)])!=null?_0x122a82:this[_0x6de99a(0x339)],this[_0x6de99a(0x3c9)]=(_0x37aeef=_0x5531d7[_0x6de99a(0x2a5)])!=null?_0x37aeef:this[_0x6de99a(0x3c9)],this[_0x6de99a(0x1a0)]=(_0x97f786=_0x5531d7[_0x6de99a(0x3b4)])!=null?_0x97f786:this[_0x6de99a(0x1a0)],this[_0x6de99a(0x459)]=(_0x279031=_0x5531d7[_0x6de99a(0x21a)])!=null?_0x279031:this['_backgroundColor'],this[_0x6de99a(0x2a8)]({'width':_0x5531d7[_0x6de99a(0x22b)],'height':_0x5531d7['height']});}['onMouseMove'](_0x155679){const _0x24ff93=_0x22c5ef,{row:_0x4fe8a7,column:_0x35e616}=_0x155679;if(_0x4fe8a7>=this[_0x24ff93(0x339)][_0x24ff93(0x401)]&&_0x4fe8a7<=this['_range']['endRow']&&_0x35e616>=this[_0x24ff93(0x339)][_0x24ff93(0x3d5)]&&_0x35e616<=this[_0x24ff93(0x339)][_0x24ff93(0x21e)]){this[_0x24ff93(0x417)]({'hovered':!0x0});return;}this[_0x24ff93(0x417)]({'hovered':!0x1});}[_0x22c5ef(0x319)](_0x3d72ce){return!0x1;}['_draw'](_0x2f62e7){const _0xb14086=_0x22c5ef;C[_0xb14086(0x2f3)][_0xb14086(0x2de)](_0x2f62e7,{'width':this[_0xb14086(0x22b)],'height':this[_0xb14086(0x375)],'strokeWidth':Pt,'stroke':this[_0xb14086(0x344)],'evented':!0x1,'fill':this[_0xb14086(0x459)]}),this[_0xb14086(0x25e)]&&(_0x2f62e7[_0xb14086(0x3c6)](),_0x2f62e7[_0xb14086(0x1b3)](0x1,0x0,0x0,0x1,this[_0xb14086(0x22b)],this[_0xb14086(0x1a0)]===_0xb14086(0x26e)?0x0:-X),re[_0xb14086(0x2de)](_0x2f62e7,{'text':this[_0xb14086(0x3c9)],'color':this[_0xb14086(0x344)]}),_0x2f62e7[_0xb14086(0x25d)]());}}var wt=Object[_0x22c5ef(0x33d)],yt=(_0xa40c4d,_0x21ba60,_0x571323,_0x19d91b)=>{for(var _0x192e9e=_0x19d91b>0x1?void 0x0:_0x19d91b?wt(_0x21ba60,_0x571323):_0x21ba60,_0x7cdf0f=_0xa40c4d['length']-0x1,_0x32ed72;_0x7cdf0f>=0x0;_0x7cdf0f--)(_0x32ed72=_0xa40c4d[_0x7cdf0f])&&(_0x192e9e=_0x32ed72(_0x192e9e)||_0x192e9e);return _0x192e9e;},ue=(_0x2c73bd,_0xd25e47)=>(_0x365b14,_0x14faae)=>_0xd25e47(_0x365b14,_0x14faae,_0x2c73bd);const $t=0x1389;let Ce=class extends a[_0x22c5ef(0x435)]{constructor(_0x1bddb4,_0xb6595d,_0x34ec8e,_0x301c62){const _0x578949=_0x22c5ef;super(),_(this,_0x578949(0x278),new Set()),_(this,_0x578949(0x2e1),null),(this[_0x578949(0x1fb)]=_0x1bddb4,this[_0x578949(0x3b5)]=_0xb6595d,this[_0x578949(0x2d0)]=_0x34ec8e,this['_themeService']=_0x301c62,this[_0x578949(0x2d2)]());}[_0x22c5ef(0x2d2)](){const _0x2ca5de=_0x22c5ef;this[_0x2ca5de(0x3b5)]['currentSkeleton$']['pipe']($['takeUntil'](this[_0x2ca5de(0x233)]),$[_0x2ca5de(0x457)](_0x477a50=>{const _0x9c07b2=_0x2ca5de;if(_0x477a50){const _0x2b7a4b=_0x477a50['sheetId'];return I['combineLatest'](this[_0x9c07b2(0x2d0)][_0x9c07b2(0x458)](this[_0x9c07b2(0x1fb)][_0x9c07b2(0x452)]),this[_0x9c07b2(0x361)][_0x9c07b2(0x304)])[_0x9c07b2(0x255)]($[_0x9c07b2(0x45e)](([_0x52a9ae,_0x84597d])=>{const _0x309db6=_0x9c07b2,_0x416003=new Map();return _0x52a9ae[_0x309db6(0x1b2)]((_0x4640d3,_0xe0e771)=>{const _0x4396d1=_0x309db6;if(_0x4640d3[_0x4396d1(0x2b9)]===_0x2b7a4b){const _0x1f43f3={..._0x4640d3};_0x1f43f3[_0x4396d1(0x44d)]=this[_0x4396d1(0x361)][_0x4396d1(0x2fa)](_0x4640d3[_0x4396d1(0x44d)]),_0x416003[_0x4396d1(0x463)](_0xe0e771,_0x1f43f3);}}),{'skeleton':_0x477a50,'cursors':_0x416003};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4f8cf0,cursors:_0x4ae1e2})=>{const _0xddd5f6=_0x2ca5de;this[_0xddd5f6(0x21d)](),_0x4f8cf0&&this['_updateCollabCursors'](_0x4f8cf0,_0x4ae1e2);}),this[_0x2ca5de(0x3b5)]['currentSkeleton$'][_0x2ca5de(0x432)](_0x3c207c=>{const _0x921144=_0x2ca5de;if(_0x3c207c==null)return;const {skeleton:_0x12e5cc}=_0x3c207c,{scene:_0x3446af}=this[_0x921144(0x1fb)];_0x3446af[_0x921144(0x388)][_0x921144(0x303)](a[_0x921144(0x3d0)](_0x14a370=>{const _0x54c8d8=_0x921144;var _0xb3b559,_0x453bf3;const {offsetX:_0x3bd75a,offsetY:_0x2bff00}=_0x14a370,{x:_0xeb55a3,y:_0x2dc79b}=_0x3446af[_0x54c8d8(0x299)](C['Vector2']['FromArray']([_0x3bd75a,_0x2bff00])),{scaleX:_0x28b746,scaleY:_0x1657de}=_0x3446af[_0x54c8d8(0x359)](),_0x2bd6a3=_0x3446af['getViewport'](C[_0x54c8d8(0x27e)]['VIEW_MAIN']),_0x1d720f=_0x3446af[_0x54c8d8(0x19f)](C['Vector2'][_0x54c8d8(0x1ce)]([_0xeb55a3,_0x2dc79b]),_0x2bd6a3),_0x35df71=_0x12e5cc[_0x54c8d8(0x3ca)](_0x3bd75a,_0x2bff00,_0x28b746,_0x1657de,_0x1d720f);((_0xb3b559=this[_0x54c8d8(0x2e1)])==null?void 0x0:_0xb3b559[_0x54c8d8(0x20e)])===_0x35df71[_0x54c8d8(0x20e)]&&((_0x453bf3=this[_0x54c8d8(0x2e1)])==null?void 0x0:_0x453bf3['row'])===_0x35df71[_0x54c8d8(0x1a3)]||this[_0x54c8d8(0x278)][_0x54c8d8(0x1b2)](_0x5f5682=>{_0x5f5682['onMouseMove'](_0x35df71);});},0x64));});}[_0x22c5ef(0x363)](_0xf3c863,_0x21ca32){const _0x3d7b80=_0x22c5ef;var _0x2c7854;const _0x4060b1=(_0x2c7854=this[_0x3d7b80(0x3b5)][_0x3d7b80(0x37c)]())==null?void 0x0:_0x2c7854['skeleton'];if(!_0x4060b1)return;const _0xc61473=this[_0x3d7b80(0x290)]();if(!_0xc61473)return;this['_cursors'][_0x3d7b80(0x1b2)](_0xe7bf53=>{const _0xe877e3=_0x3d7b80;_0xe7bf53[_0xe877e3(0x22f)]();});const {scene:_0x54e92d}=_0xc61473,_0x2da857=xt(Array[_0x3d7b80(0x248)](_0x21ca32[_0x3d7b80(0x205)]()))[_0x3d7b80(0x45e)](_0x5c112b=>{const _0x3e62c4=_0x3d7b80,{color:_0x5f0fcc,range:_0x1f9655,name:_0x3da301,selection:_0x3baef5,sheetID:_0x210c4f}=_0x5c112b,{startColumn:_0x592898,startRow:_0x83fd87,endColumn:_0xdbbb06,endRow:_0x56c790}=_0x1f9655,_0x29d48a=J['getCoordByCell'](_0x83fd87,_0x592898,_0x54e92d,_0x4060b1),_0xbcf16f=J[_0x3e62c4(0x3f0)](_0x56c790,_0xdbbb06,_0x54e92d,_0x4060b1),{columnHeaderHeightAndMarginTop:_0x48769c}=_0x4060b1,{startX:_0x100885,startY:_0x462d82}=_0x29d48a,{endX:_0x54a07b,endY:_0x4ee271}=_0xbcf16f,_0x1ed712=_0x54a07b-_0x100885,_0x21bedb=_0x4ee271-_0x462d82,_0x53c8db={'labelPosition':_0x462d82-_0x48769c>=X?_0x3e62c4(0x30d):_0x3e62c4(0x26e),'sheetID':_0x210c4f,'range':_0x1f9655,'color':_0x5f0fcc,'name':_0x3da301,'selection':_0x3baef5,'left':_0x100885,'top':_0x462d82,'width':_0x1ed712,'height':_0x21bedb,'evented':!0x1,'zIndex':$t};return new je(_0x3da301,_0x53c8db);});_0x54e92d[_0x3d7b80(0x1fd)](_0x2da857,At),this['_cursors']=new Set(_0x2da857);}[_0x22c5ef(0x21d)](){const _0x2a8251=_0x22c5ef;var _0xee2aa7;(_0xee2aa7=this[_0x2a8251(0x278)])==null||_0xee2aa7[_0x2a8251(0x1b2)](_0x251c7c=>_0x251c7c[_0x2a8251(0x390)]());}[_0x22c5ef(0x290)](){const _0x4bee75=_0x22c5ef;return J[_0x4bee75(0x24e)](this[_0x4bee75(0x1fb)][_0x4bee75(0x2c1)],this[_0x4bee75(0x1fb)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x22c5ef(0x349)])),ue(0x2,a[_0x22c5ef(0x33f)](F)),ue(0x3,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x3e8)]))],Ce);function xt(_0x2c008c){const _0x3f6fae=_0x22c5ef,_0x21af05=new Map();return _0x2c008c[_0x3f6fae(0x1b2)](_0x34f011=>{const _0x5b557a=_0x3f6fae;if(_0x21af05[_0x5b557a(0x1dd)](_0x34f011['selection'])){const _0x1eaaf3=_0x21af05[_0x5b557a(0x40d)](_0x34f011[_0x5b557a(0x285)]);_0x1eaaf3[_0x5b557a(0x2a5)]+=',\x20'+_0x34f011['name'];}else _0x21af05[_0x5b557a(0x463)](_0x34f011[_0x5b557a(0x285)],_0x34f011);}),Array[_0x3f6fae(0x248)](_0x21af05[_0x3f6fae(0x205)]());}var Bt=Object[_0x22c5ef(0x33d)],Ft=(_0x30dd60,_0x3903fa,_0x88652,_0x561039)=>{const _0x18fd90=_0x22c5ef;for(var _0xa9140d=_0x561039>0x1?void 0x0:_0x561039?Bt(_0x3903fa,_0x88652):_0x3903fa,_0x2d3c7c=_0x30dd60[_0x18fd90(0x294)]-0x1,_0x1f31e8;_0x2d3c7c>=0x0;_0x2d3c7c--)(_0x1f31e8=_0x30dd60[_0x2d3c7c])&&(_0xa9140d=_0x1f31e8(_0xa9140d)||_0xa9140d);return _0xa9140d;},y=(_0x531c18,_0x45cea7)=>(_0x2337c9,_0x44e4ed)=>_0x45cea7(_0x2337c9,_0x44e4ed,_0x531c18);let Z=class extends a['Disposable']{constructor(_0x3b5127,_0x5b6a68,_0x1af392,_0x49bed6,_0x4e2ae6,_0x507ace){const _0x5c39c9=_0x22c5ef;super(),this['_beforeCloseService']=_0x3b5127,this[_0x5c39c9(0x370)]=_0x5b6a68,this[_0x5c39c9(0x44e)]=_0x1af392,this[_0x5c39c9(0x35e)]=_0x49bed6,this[_0x5c39c9(0x23c)]=_0x4e2ae6,this[_0x5c39c9(0x3ff)]=_0x507ace,this[_0x5c39c9(0x1ef)](),this[_0x5c39c9(0x3c8)]();}['_setupBeforeClosingHandler'](){const _0x1dc8fa=_0x22c5ef;this[_0x1dc8fa(0x3fa)](this[_0x1dc8fa(0x37e)][_0x1dc8fa(0x1d9)](()=>{const _0x518e5a=_0x1dc8fa;if(this[_0x518e5a(0x370)][_0x518e5a(0x379)][_0x518e5a(0x280)])return this[_0x518e5a(0x3ff)]['t'](_0x518e5a(0x29c));}));}['_initEvent'](){const _0x2945f1=_0x22c5ef;this[_0x2945f1(0x3fa)](this['_collaborationUIEventService']['event$'][_0x2945f1(0x432)](_0x3c07c8=>{const _0x293086=_0x2945f1;_0x3c07c8['id']===u['CollaborationUIEventId'][_0x293086(0x207)]&&this['_messageService']['show']({'type':p[_0x293086(0x23d)]['Warning'],'content':this['_localeService']['t'](_0x293086(0x30b))}),_0x3c07c8['id']===u[_0x293086(0x44a)][_0x293086(0x210)]&&this[_0x293086(0x35e)][_0x293086(0x276)]({'type':p[_0x293086(0x23d)][_0x293086(0x31c)],'content':this[_0x293086(0x3ff)]['t']('collaboration.closeRoom')}),_0x3c07c8['id']===u['CollaborationUIEventId'][_0x293086(0x234)]&&this[_0x293086(0x23c)][_0x293086(0x276)]({'title':this['_localeService']['t'](_0x293086(0x40f)),'content':this[_0x293086(0x3ff)]['t']('permission.content'),'type':_0x293086(0x3ac),'duration':0x0}),_0x3c07c8['id']===u[_0x293086(0x44a)][_0x293086(0x28e)]&&this[_0x293086(0x35e)]['show']({'type':p['MessageType'][_0x293086(0x1b1)],'content':this['_localeService']['t'](_0x293086(0x2bb))+'('+_0x3c07c8['data']+')'}),_0x3c07c8['id']===u[_0x293086(0x44a)][_0x293086(0x2fb)]&&this[_0x293086(0x35e)][_0x293086(0x276)]({'type':p[_0x293086(0x23d)]['Warning'],'content':this[_0x293086(0x3ff)]['t'](_0x3c07c8[_0x293086(0x3be)]||'')}),_0x3c07c8['id']===u[_0x293086(0x44a)][_0x293086(0x38d)]&&this['_messageService'][_0x293086(0x276)]({'type':p[_0x293086(0x23d)][_0x293086(0x31c)],'content':this[_0x293086(0x3ff)]['t'](_0x293086(0x26d))}),_0x3c07c8['id']===u['CollaborationUIEventId'][_0x293086(0x41f)]&&this[_0x293086(0x35e)][_0x293086(0x276)]({'type':p[_0x293086(0x23d)]['Error'],'content':this[_0x293086(0x3ff)]['t'](_0x293086(0x396))}),_0x3c07c8['id']===u[_0x293086(0x44a)][_0x293086(0x264)]&&this[_0x293086(0x35e)]['show']({'type':p[_0x293086(0x23d)][_0x293086(0x1b1)],'content':this[_0x293086(0x3ff)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x22c5ef(0x228)]),y(0x1,u[_0x22c5ef(0x315)]),y(0x2,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x3a2)])),y(0x3,O['IMessageService']),y(0x4,O[_0x22c5ef(0x377)]),y(0x5,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x2c2)]))],Z);var jt=Object[_0x22c5ef(0x33d)],kt=(_0x297e83,_0x6097e8,_0x5d0c8d,_0x32b1f1)=>{for(var _0x3323f6=_0x32b1f1>0x1?void 0x0:_0x32b1f1?jt(_0x6097e8,_0x5d0c8d):_0x6097e8,_0x2b2d10=_0x297e83['length']-0x1,_0x3c4b77;_0x2b2d10>=0x0;_0x2b2d10--)(_0x3c4b77=_0x297e83[_0x2b2d10])&&(_0x3323f6=_0x3c4b77(_0x3323f6)||_0x3323f6);return _0x3323f6;},z=(_0x51072b,_0xa86745)=>(_0x1194aa,_0x582471)=>_0xa86745(_0x1194aa,_0x582471,_0x51072b);function _0x6e31(_0x1df3d9,_0x30d473){_0x1df3d9=_0x1df3d9-0x19e;const _0x2b9c96=_0x2b9c();let _0x6e31d=_0x2b9c96[_0x1df3d9];return _0x6e31d;}let Q=class extends a[_0x22c5ef(0x1e8)]{constructor(_0x1c2c79,_0x5b2d73,_0x23623b,_0x380c71){const _0x6760b8=_0x22c5ef;super(),_(this,_0x6760b8(0x348)),(this[_0x6760b8(0x402)]=_0x1c2c79,this[_0x6760b8(0x2d3)]=_0x5b2d73,this[_0x6760b8(0x327)]=_0x23623b,this[_0x6760b8(0x2b4)]=_0x380c71,this[_0x6760b8(0x2d2)]());}[_0x22c5ef(0x2d2)](){const _0x4630ec=_0x22c5ef;this[_0x4630ec(0x3ec)](),this[_0x4630ec(0x40b)](),this[_0x4630ec(0x39a)](),this[_0x4630ec(0x31e)]();}[_0x22c5ef(0x31e)](){const _0x167e4c=_0x22c5ef;this[_0x167e4c(0x3fa)](this[_0x167e4c(0x2b4)]['socket$'][_0x167e4c(0x432)](_0x2f4587=>{const _0x3adbc6=_0x167e4c;this[_0x3adbc6(0x348)]=_0x2f4587==null?void 0x0:_0x2f4587[_0x3adbc6(0x3b8)];}));}[_0x22c5ef(0x3ec)](){const _0x64a644=_0x22c5ef,_0x544634=_0x1fd564=>{const _0x15394f=_0x6e31;var _0x4c64d7;this['_uploadLog'](_0x15394f(0x3ac),'[Window\x20Error]:\x20'+_0x1fd564[_0x15394f(0x2da)]+_0x15394f(0x346)+_0x1fd564[_0x15394f(0x37d)]+':'+_0x1fd564[_0x15394f(0x3e4)]+':'+_0x1fd564[_0x15394f(0x369)]+'\x0a'+(((_0x4c64d7=_0x1fd564[_0x15394f(0x3ac)])==null?void 0x0:_0x4c64d7[_0x15394f(0x28c)])||''));};window['addEventListener']('error',_0x544634),this[_0x64a644(0x3fa)](()=>{const _0x1b7215=_0x64a644;window[_0x1b7215(0x37a)](_0x1b7215(0x3ac),_0x544634);});}['_initUnhandledRejectionListener'](){const _0x1e2154=_0x22c5ef,_0x20ff22=_0x5e36fb=>{const _0x85c24a=_0x6e31;this['_uploadLog']('error',_0x85c24a(0x355)+_0x5e36fb[_0x85c24a(0x1c5)]);};window[_0x1e2154(0x3bd)](_0x1e2154(0x385),_0x20ff22),this[_0x1e2154(0x3fa)](()=>{const _0x2c4613=_0x1e2154;window['removeEventListener'](_0x2c4613(0x385),_0x20ff22);});}[_0x22c5ef(0x39a)](){const _0x1b950d=_0x22c5ef,_0x3c2077=this[_0x1b950d(0x327)][_0x1b950d(0x3ac)][_0x1b950d(0x2b1)](this[_0x1b950d(0x327)]);this[_0x1b950d(0x327)][_0x1b950d(0x3ac)]=(..._0x404ab0)=>{const _0x21f639=_0x1b950d,_0x1a52b9=_0x404ab0[_0x21f639(0x45e)](_0x280d9f=>_0x280d9f instanceof Error?_0x280d9f['message']+'\x0a'+_0x280d9f[_0x21f639(0x28c)]:String(_0x280d9f))[_0x21f639(0x2cb)]('\x20');this[_0x21f639(0x42e)](_0x21f639(0x3ac),'[LogService\x20Error]:\x20'+_0x1a52b9),_0x3c2077(..._0x404ab0);},this[_0x1b950d(0x3fa)](()=>{const _0x12fa1a=_0x1b950d;this['_logService'][_0x12fa1a(0x3ac)]=_0x3c2077;});}[_0x22c5ef(0x42e)](_0x965e92,_0x454e5d){const _0xa96cf7=_0x22c5ef;try{const _0x17ad3c={'userId':this[_0xa96cf7(0x348)],'logLabel':_0x965e92,'content':_0x454e5d};this[_0xa96cf7(0x2d3)][_0xa96cf7(0x345)](_0xa96cf7(0x3e9),{'body':_0x17ad3c})[_0xa96cf7(0x2e9)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x45a)])),z(0x1,a['Inject'](x[_0x22c5ef(0x2ef)])),z(0x2,a['ILogService']),z(0x3,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x2bf)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x433c1d,_0x5d3cd5,_0x1fc102,_0x21a4c0)=>{for(var _0x57262e=_0x21a4c0>0x1?void 0x0:_0x21a4c0?Ht(_0x5d3cd5,_0x1fc102):_0x5d3cd5,_0x590ca3=_0x433c1d['length']-0x1,_0x1def3d;_0x590ca3>=0x0;_0x590ca3--)(_0x1def3d=_0x433c1d[_0x590ca3])&&(_0x57262e=_0x1def3d(_0x57262e)||_0x57262e);return _0x57262e;},Ae=(_0x709b8d,_0x291a1b)=>(_0x42dad5,_0x130e57)=>_0x291a1b(_0x42dad5,_0x130e57,_0x709b8d);let ee=class{constructor(_0x3eb78a,_0x3e4a62){this['_transformService']=_0x3eb78a,this['_renderManagerService']=_0x3e4a62;}[_0x22c5ef(0x39e)](_0x2cefc4){const _0x3b1891=_0x22c5ef;this[_0x3b1891(0x3a9)](_0x2cefc4),this[_0x3b1891(0x22e)](_0x2cefc4);}[_0x22c5ef(0x2be)](_0x3e11a6){const _0x42f4e8=_0x22c5ef,{unitID:_0x349c91}=_0x3e11a6,_0x643248=this[_0x42f4e8(0x258)][_0x42f4e8(0x21b)](_0x349c91)[_0x42f4e8(0x251)](T[_0x42f4e8(0x3c0)]),{redoCache:_0x45593d}=_0x643248[_0x42f4e8(0x1a5)]();if(_0x45593d[_0x42f4e8(0x294)]===0x0)return _0x3e11a6;let _0x43907d=a[_0x42f4e8(0x372)]['deepClone'](_0x3e11a6[_0x42f4e8(0x24c)][0x0]);for(let _0x3fb61a=0x0;_0x3fb61a<_0x45593d[_0x42f4e8(0x294)];_0x3fb61a++){const _0x286c02={'id':'doc.mutation.rich-text-editing','params':{..._0x45593d[_0x3fb61a]}},_0x1a20bb=this['_transformService'][_0x42f4e8(0x2ee)](_0x43907d,_0x286c02,!0x1);if(g[_0x42f4e8(0x2c9)](_0x1a20bb))throw _0x1a20bb[_0x42f4e8(0x3ac)];_0x43907d=_0x1a20bb[_0x42f4e8(0x389)];}return{...a[_0x42f4e8(0x372)][_0x42f4e8(0x2e3)](_0x3e11a6),'mutations':[_0x43907d]};}[_0x22c5ef(0x3a9)](_0x244f57){const _0x502a2a=_0x22c5ef,{unitID:_0x1e0e56}=_0x244f57,_0x1f43d6=this[_0x502a2a(0x258)][_0x502a2a(0x21b)](_0x1e0e56)[_0x502a2a(0x251)](T['DocIMEInputManagerService']),{undoCache:_0x57c831,redoCache:_0x18d2e9}=_0x1f43d6[_0x502a2a(0x1a5)]();if(_0x57c831[_0x502a2a(0x294)]===0x0||_0x18d2e9['length']===0x0)return;const _0x44025c=[],_0x34905f=[];let _0x50767f=a[_0x502a2a(0x372)]['deepClone'](_0x244f57[_0x502a2a(0x24c)][0x0]),_0x12a8a8=a[_0x502a2a(0x372)][_0x502a2a(0x2e3)](_0x244f57[_0x502a2a(0x24c)][0x0]);for(let _0x11fad2=_0x57c831[_0x502a2a(0x294)]-0x1;_0x11fad2>=0x0;_0x11fad2--){const _0x14eecf={'id':_0x502a2a(0x1d6),'params':{..._0x57c831[_0x11fad2]}},_0xfb9e35={'id':_0x502a2a(0x1d6),'params':{..._0x18d2e9[_0x11fad2]}},_0x4012a8=this[_0x502a2a(0x43a)][_0x502a2a(0x2ee)](_0x50767f,_0x14eecf,!0x1),_0x2ab6da=this[_0x502a2a(0x43a)][_0x502a2a(0x2ee)](_0x12a8a8,_0xfb9e35,!0x1);if(g[_0x502a2a(0x2c9)](_0x4012a8))throw _0x4012a8[_0x502a2a(0x3ac)];if(g[_0x502a2a(0x2c9)](_0x2ab6da))throw _0x2ab6da[_0x502a2a(0x3ac)];_0x44025c[_0x502a2a(0x1f2)](_0x4012a8['m2Prime']['params']),_0x34905f[_0x502a2a(0x1f2)](_0x2ab6da[_0x502a2a(0x3bb)][_0x502a2a(0x25a)]),_0x50767f=_0x4012a8[_0x502a2a(0x389)],_0x12a8a8=_0x2ab6da[_0x502a2a(0x389)];}_0x1f43d6[_0x502a2a(0x3de)]({'undoCache':_0x44025c,'redoCache':_0x34905f});}[_0x22c5ef(0x22e)](_0x4ad7a1){const _0x282a15=_0x22c5ef,{unitID:_0x2b8d47}=_0x4ad7a1,_0x35510c=this[_0x282a15(0x258)][_0x282a15(0x21b)](_0x2b8d47)[_0x282a15(0x251)](T['DocIMEInputManagerService']),_0x4b9818=_0x35510c['getActiveRange']();if(_0x4b9818==null)return;const _0x248f40=[{'id':_0x282a15(0x1d6),'params':{'unitId':_0x4ad7a1['unitID'],'actions':null,'textRanges':[_0x4b9818]}}],_0x46a82c=this[_0x282a15(0x43a)]['transformMutationsWithChangeset'](_0x4ad7a1,_0x248f40);if(!g[_0x282a15(0x39f)](_0x46a82c))throw _0x46a82c[_0x282a15(0x3ac)];const _0x3f68f2=_0x46a82c[_0x282a15(0x3bb)][0x0][_0x282a15(0x25a)][_0x282a15(0x3cf)];Array[_0x282a15(0x260)](_0x3f68f2)&&_0x3f68f2[_0x282a15(0x294)]&&_0x35510c[_0x282a15(0x3cc)](_0x3f68f2[0x0]);}};ee=Wt([Ae(0x0,g[_0x22c5ef(0x224)]),Ae(0x1,C[_0x22c5ef(0x1d5)])],ee);var Vt=Object[_0x22c5ef(0x33d)],Gt=(_0x5b6fcf,_0x162786,_0x5ba415,_0x145d6f)=>{const _0x294889=_0x22c5ef;for(var _0x538c6f=_0x145d6f>0x1?void 0x0:_0x145d6f?Vt(_0x162786,_0x5ba415):_0x162786,_0x261dfd=_0x5b6fcf[_0x294889(0x294)]-0x1,_0xaa678;_0x261dfd>=0x0;_0x261dfd--)(_0xaa678=_0x5b6fcf[_0x261dfd])&&(_0x538c6f=_0xaa678(_0x538c6f)||_0x538c6f);return _0x538c6f;},Ie=(_0x36bc02,_0x50063b)=>(_0x1c2f84,_0x318623)=>_0x50063b(_0x1c2f84,_0x318623,_0x36bc02);let te=class{constructor(_0x4b5e14,_0x5a5b2d,_0x232c84){const _0x2eff89=_0x22c5ef;this[_0x2eff89(0x402)]=_0x4b5e14,this['_transformService']=_0x5a5b2d,this[_0x2eff89(0x2eb)]=_0x232c84;}[_0x22c5ef(0x2bc)](_0xd15c84){const _0x2d7e76=_0x22c5ef;this[_0x2d7e76(0x447)](_0xd15c84);}['transformRemoteChangeset'](_0xfe600a){const _0x5db91a=_0x22c5ef,{unitID:_0x47411d}=_0xfe600a,{collaboration:_0x4ab3e5}=this[_0x5db91a(0x2eb)]['getStateCache'](_0x47411d);if(_0x4ab3e5[_0x5db91a(0x294)]===0x0)return _0xfe600a;let _0x1c26c8=a['Tools']['deepClone'](_0xfe600a['mutations'][0x0]);for(let _0x4a31a8=0x0;_0x4a31a8<_0x4ab3e5[_0x5db91a(0x294)];_0x4a31a8++){const _0x434822={'id':_0x5db91a(0x1d6),'params':{'unitId':_0x4ab3e5[_0x4a31a8]['unitId'],..._0x4ab3e5[_0x4a31a8]['redoState']}},_0x5108eb=this[_0x5db91a(0x43a)][_0x5db91a(0x2ee)](_0x1c26c8,_0x434822,!0x1);if(g['isTransformMutationFailure'](_0x5108eb))throw _0x5108eb[_0x5db91a(0x3ac)];_0x1c26c8=_0x5108eb['m1Prime'];}return{...a[_0x5db91a(0x372)]['deepClone'](_0xfe600a),'mutations':[_0x1c26c8]};}[_0x22c5ef(0x447)](_0x37a651){const _0x5bb2b6=_0x22c5ef,{unitID:_0x98e42}=_0x37a651,{history:_0x3b7de0,collaboration:_0xe3a54b}=this[_0x5bb2b6(0x2eb)][_0x5bb2b6(0x318)](_0x98e42);if(_0x3b7de0['length']===0x0&&_0xe3a54b[_0x5bb2b6(0x294)]===0x0)return;const _0x2433d3=[],_0xd752af=[];let _0x4685f2=a[_0x5bb2b6(0x372)]['deepClone'](_0x37a651['mutations'][0x0]),_0x39734b=a[_0x5bb2b6(0x372)][_0x5bb2b6(0x2e3)](_0x37a651['mutations'][0x0]);for(let _0x4ab21c=_0x3b7de0[_0x5bb2b6(0x294)]-0x1;_0x4ab21c>=0x0;_0x4ab21c--){const _0x537fb1={'id':_0x5bb2b6(0x1d6),'params':{'unitId':_0x3b7de0[_0x4ab21c][_0x5bb2b6(0x452)],..._0x3b7de0[_0x4ab21c][_0x5bb2b6(0x1c9)]}},_0x2f7450={'id':_0x5bb2b6(0x1d6),'params':{'unitId':_0x3b7de0[_0x4ab21c][_0x5bb2b6(0x452)],..._0x3b7de0[_0x4ab21c][_0x5bb2b6(0x331)]}},_0x3f5661=this[_0x5bb2b6(0x43a)][_0x5bb2b6(0x2ee)](_0x4685f2,_0x537fb1,!0x1),_0x32b349=this[_0x5bb2b6(0x43a)][_0x5bb2b6(0x2ee)](_0x39734b,_0x2f7450,!0x1);if(g[_0x5bb2b6(0x2c9)](_0x3f5661))throw _0x3f5661[_0x5bb2b6(0x3ac)];if(g[_0x5bb2b6(0x2c9)](_0x32b349))throw _0x32b349['error'];_0x2433d3[_0x5bb2b6(0x1f2)]({..._0x3b7de0[_0x4ab21c],'undoState':_0x3f5661[_0x5bb2b6(0x3bb)][_0x5bb2b6(0x25a)],'redoState':_0x32b349[_0x5bb2b6(0x3bb)][_0x5bb2b6(0x25a)]}),_0x4685f2=_0x3f5661[_0x5bb2b6(0x389)],_0x39734b=_0x32b349['m1Prime'];}_0x4685f2=a[_0x5bb2b6(0x372)][_0x5bb2b6(0x2e3)](_0x37a651['mutations'][0x0]),_0x39734b=a[_0x5bb2b6(0x372)][_0x5bb2b6(0x2e3)](_0x37a651['mutations'][0x0]);for(let _0x559ba7=_0xe3a54b['length']-0x1;_0x559ba7>=0x0;_0x559ba7--){const _0x3be37c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe3a54b[_0x559ba7][_0x5bb2b6(0x452)],..._0xe3a54b[_0x559ba7][_0x5bb2b6(0x1c9)]}},_0x2dfdc0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe3a54b[_0x559ba7][_0x5bb2b6(0x452)],..._0xe3a54b[_0x559ba7][_0x5bb2b6(0x331)]}},_0x3deea1=this[_0x5bb2b6(0x43a)][_0x5bb2b6(0x2ee)](_0x4685f2,_0x3be37c,!0x1),_0x414847=this[_0x5bb2b6(0x43a)][_0x5bb2b6(0x2ee)](_0x39734b,_0x2dfdc0,!0x1);if(g['isTransformMutationFailure'](_0x3deea1))throw _0x3deea1['error'];if(g[_0x5bb2b6(0x2c9)](_0x414847))throw _0x414847[_0x5bb2b6(0x3ac)];_0xd752af['unshift']({..._0xe3a54b[_0x559ba7],'undoState':_0x3deea1['m2Prime'][_0x5bb2b6(0x25a)],'redoState':_0x414847[_0x5bb2b6(0x3bb)][_0x5bb2b6(0x25a)]}),_0x4685f2=_0x3deea1[_0x5bb2b6(0x389)],_0x39734b=_0x414847['m1Prime'];}this[_0x5bb2b6(0x2eb)][_0x5bb2b6(0x2c7)](_0x98e42,{'history':_0x2433d3,'collaboration':_0xd752af});}};te=Gt([Ie(0x0,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x45a)])),Ie(0x1,g[_0x22c5ef(0x224)]),Ie(0x2,a[_0x22c5ef(0x33f)](T[_0x22c5ef(0x2d5)]))],te);var Xt=Object[_0x22c5ef(0x33d)],Kt=(_0x33b0a8,_0x39b3c5,_0x3345b2,_0x16a8aa)=>{for(var _0x8b18ad=_0x16a8aa>0x1?void 0x0:_0x16a8aa?Xt(_0x39b3c5,_0x3345b2):_0x39b3c5,_0x2d6c31=_0x33b0a8['length']-0x1,_0x32fe7f;_0x2d6c31>=0x0;_0x2d6c31--)(_0x32fe7f=_0x33b0a8[_0x2d6c31])&&(_0x8b18ad=_0x32fe7f(_0x8b18ad)||_0x8b18ad);return _0x8b18ad;},Pe=(_0x1af70a,_0x404e67)=>(_0x99cd13,_0x31cf10)=>_0x404e67(_0x99cd13,_0x31cf10,_0x1af70a);let se=class{constructor(_0x5af9d0,_0x372ddd){this['_injector']=_0x5af9d0,this['_transformService']=_0x372ddd;}[_0x22c5ef(0x36e)](_0xddeb1a){const _0x29e6cf=_0x22c5ef;var _0x5bd991;const _0x3a247b=this[_0x29e6cf(0x402)][_0x29e6cf(0x40d)](V[_0x29e6cf(0x3d8)]),_0x1015d6=(_0x5bd991=_0x3a247b[_0x29e6cf(0x226)]())!=null?_0x5bd991:[];if(_0x1015d6[_0x29e6cf(0x294)]===0x0)return;const _0x2b5c3f=_0xddeb1a[_0x29e6cf(0x1cd)],_0x22fa97=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b5c3f,'actions':null,'textRanges':_0x1015d6}}],_0x367f02=this[_0x29e6cf(0x43a)][_0x29e6cf(0x1e0)](_0xddeb1a,_0x22fa97);if(!g[_0x29e6cf(0x39f)](_0x367f02))throw _0x367f02[_0x29e6cf(0x3ac)];const _0x226034=_0x367f02['m2Prime'][0x0][_0x29e6cf(0x25a)][_0x29e6cf(0x3cf)];Array[_0x29e6cf(0x260)](_0x226034)&&_0x226034['length']&&_0x3a247b['replaceDocRanges'](_0x226034,{'unitId':_0x2b5c3f,'subUnitId':_0x2b5c3f},!0x1);}};se=Kt([Pe(0x0,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x45a)])),Pe(0x1,g[_0x22c5ef(0x224)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x1d973b,_0x101720,_0x3dd14b,_0x20ad9f)=>{const _0x572157=_0x22c5ef;for(var _0x461f3f=_0x20ad9f>0x1?void 0x0:_0x20ad9f?qt(_0x101720,_0x3dd14b):_0x101720,_0xda953f=_0x1d973b[_0x572157(0x294)]-0x1,_0x55e826;_0xda953f>=0x0;_0xda953f--)(_0x55e826=_0x1d973b[_0xda953f])&&(_0x461f3f=_0x55e826(_0x461f3f)||_0x461f3f);return _0x461f3f;},N=(_0xeb349f,_0x239b52)=>(_0xa1c848,_0x1289d3)=>_0x239b52(_0xa1c848,_0x1289d3,_0xeb349f);let ie=class extends a[_0x22c5ef(0x1e8)]{constructor(_0x2228aa,_0x219e70,_0x111f9c,_0x532202,_0x415865,_0x2fd5e1,_0x18fe45,_0x41589b){const _0x2cd496=_0x22c5ef;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x2cd496(0x310)]['NOT_COLLAB'])),(this[_0x2cd496(0x2eb)]=_0x2228aa,this[_0x2cd496(0x337)]=_0x219e70,this[_0x2cd496(0x2ba)]=_0x111f9c,this['_docTransformStateCacheService']=_0x532202,this[_0x2cd496(0x419)]=_0x415865,this[_0x2cd496(0x2f6)]=_0x2fd5e1,this[_0x2cd496(0x35e)]=_0x18fe45,this[_0x2cd496(0x3ff)]=_0x41589b,this[_0x2cd496(0x2a6)]());}[_0x22c5ef(0x2a6)](){const _0x537ef9=_0x22c5ef;this[_0x537ef9(0x3fa)](this[_0x537ef9(0x337)][_0x537ef9(0x33b)][_0x537ef9(0x432)](_0x57eace=>{const _0x360e16=_0x537ef9,_0x1c7986=this[_0x360e16(0x2eb)]['docStateChange$'][_0x360e16(0x432)](_0x338738=>{const _0x9579be=_0x360e16;if(_0x338738==null)return;const {unitId:_0x26994e,redoState:_0x36eda8,commandId:_0x33eb1b}=_0x338738;if(_0x26994e!==_0x57eace['unitID'])return;const _0x2b9b42={'id':_0x33eb1b,'type':a[_0x9579be(0x3ce)]['MUTATION'],'params':{'unitId':_0x26994e,'actions':_0x36eda8[_0x9579be(0x1f1)],'textRanges':null}};_0x57eace[_0x9579be(0x3ea)](_0x2b9b42);});if(_0x57eace[_0x360e16(0x3fa)](_0x1c7986),_0x57eace instanceof u['DocCollaborationEntity']){const _0x27d480={'onTransformIME':_0x3774ec=>this[_0x360e16(0x2ba)]['transformIMECache'](_0x3774ec),'onTransformState':_0x568d6d=>this[_0x360e16(0x21f)]['transformStateCache'](_0x568d6d),'onTransformSelections':_0x5d1dbd=>this[_0x360e16(0x419)][_0x360e16(0x36e)](_0x5d1dbd),'onSyncEditingCollabCursor':_0x14ed4c=>this[_0x360e16(0x2f6)]['syncEditingCollabCursor'](_0x14ed4c),'onTransformRemoteChangesetByIMECache':_0x469e90=>this[_0x360e16(0x2ba)][_0x360e16(0x2be)](_0x469e90),'onTransformRemoteChangesetByStateCache':_0x55fa3e=>this[_0x360e16(0x21f)][_0x360e16(0x2be)](_0x55fa3e)};_0x57eace[_0x360e16(0x340)](_0x27d480);}}));}};ie=zt([N(0x0,a[_0x22c5ef(0x33f)](T[_0x22c5ef(0x2d5)])),N(0x1,a[_0x22c5ef(0x33f)](u[_0x22c5ef(0x1e5)])),N(0x2,a[_0x22c5ef(0x33f)](ee)),N(0x3,a[_0x22c5ef(0x33f)](te)),N(0x4,a[_0x22c5ef(0x33f)](se)),N(0x5,a[_0x22c5ef(0x33f)](be)),N(0x6,O[_0x22c5ef(0x3d6)]),N(0x7,a[_0x22c5ef(0x33f)](a['LocaleService']))],ie);var G=(_0x231b01=>(_0x231b01[_0x231b01[_0x22c5ef(0x433)]=0x0]=_0x22c5ef(0x433),_0x231b01[_0x231b01['OK']=0x1]='OK',_0x231b01[_0x231b01['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x231b01[_0x231b01[_0x22c5ef(0x234)]=0x3]='PERMISSION_DENIED',_0x231b01[_0x231b01[_0x22c5ef(0x42f)]=0x4]='NOT_FOUND',_0x231b01[_0x231b01['UNAUTHENTICATED']=0x5]=_0x22c5ef(0x328),_0x231b01[_0x231b01[_0x22c5ef(0x27c)]=0x6]='ALREADY_EXISTS',_0x231b01[_0x231b01[_0x22c5ef(0x2ff)]=0x7]=_0x22c5ef(0x2ff),_0x231b01[_0x231b01[_0x22c5ef(0x229)]=0x8]=_0x22c5ef(0x229),_0x231b01[_0x231b01['COMPLETION_FINISHED']=0x9]=_0x22c5ef(0x3c4),_0x231b01[_0x231b01['LOGIN_FAILED']=0xa]=_0x22c5ef(0x34e),_0x231b01[_0x231b01[_0x22c5ef(0x3a0)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x231b01[_0x231b01['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x231b01[_0x231b01['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x22c5ef(0x263),_0x231b01[_0x231b01['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x22c5ef(0x3da),_0x231b01[_0x231b01[_0x22c5ef(0x462)]=0xf]=_0x22c5ef(0x462),_0x231b01[_0x231b01[_0x22c5ef(0x450)]=0x10]=_0x22c5ef(0x450),_0x231b01[_0x231b01['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x231b01[_0x231b01['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x231b01[_0x231b01[_0x22c5ef(0x3a7)]=0xc9]=_0x22c5ef(0x3a7),_0x231b01[_0x231b01[_0x22c5ef(0x2c6)]=0xca]='USER_IS_ANONYMOUS',_0x231b01[_0x231b01[_0x22c5ef(0x301)]=0x1389]=_0x22c5ef(0x301),_0x231b01[_0x231b01[_0x22c5ef(0x39b)]=0x1771]=_0x22c5ef(0x39b),_0x231b01[_0x231b01[_0x22c5ef(0x325)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x231b01[_0x231b01[_0x22c5ef(0x202)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x231b01[_0x231b01[_0x22c5ef(0x2e8)]=0x1b59]=_0x22c5ef(0x2e8),_0x231b01[_0x231b01['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x231b01[_0x231b01[_0x22c5ef(0x431)]=0x1b5b]=_0x22c5ef(0x431),_0x231b01[_0x231b01[_0x22c5ef(0x405)]=0x1b5c]=_0x22c5ef(0x405),_0x231b01[_0x231b01[_0x22c5ef(0x1ea)]=0x1b5d]=_0x22c5ef(0x1ea),_0x231b01[_0x231b01[_0x22c5ef(0x449)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x231b01[_0x231b01[_0x22c5ef(0x31b)]=0x2329]=_0x22c5ef(0x31b),_0x231b01[_0x231b01[_0x22c5ef(0x376)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x231b01[_0x231b01[_0x22c5ef(0x24a)]=0x232b]=_0x22c5ef(0x24a),_0x231b01[_0x231b01[_0x22c5ef(0x314)]=0x232c]=_0x22c5ef(0x314),_0x231b01[_0x231b01[_0x22c5ef(0x32e)]=0x232d]=_0x22c5ef(0x32e),_0x231b01[_0x231b01['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x22c5ef(0x1b9),_0x231b01[_0x231b01[_0x22c5ef(0x36a)]=0x2712]=_0x22c5ef(0x36a),_0x231b01[_0x231b01[_0x22c5ef(0x356)]=0x2713]=_0x22c5ef(0x356),_0x231b01[_0x231b01[_0x22c5ef(0x30c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x231b01[_0x231b01[_0x22c5ef(0x2a3)]=0x271a]=_0x22c5ef(0x2a3),_0x231b01[_0x231b01[_0x22c5ef(0x362)]=0x271b]=_0x22c5ef(0x362),_0x231b01[_0x231b01['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x22c5ef(0x423),_0x231b01[_0x231b01[_0x22c5ef(0x1c2)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x231b01[_0x231b01['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x22c5ef(0x1dc),_0x231b01[_0x231b01[_0x22c5ef(0x34a)]=0x271f]=_0x22c5ef(0x34a),_0x231b01[_0x231b01[_0x22c5ef(0x218)]=0x2720]=_0x22c5ef(0x218),_0x231b01[_0x231b01[_0x22c5ef(0x249)]=0x2af9]=_0x22c5ef(0x249),_0x231b01[_0x231b01[_0x22c5ef(0x43b)]=0x2ee1]=_0x22c5ef(0x43b),_0x231b01[_0x231b01['INVALID_INVITE_CODE']=0x2ee2]=_0x22c5ef(0x212),_0x231b01[_0x231b01[_0x22c5ef(0x296)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x231b01[_0x231b01[_0x22c5ef(0x219)]=0x2ee4]=_0x22c5ef(0x219),_0x231b01[_0x231b01[_0x22c5ef(0x30f)]=0x2ee5]=_0x22c5ef(0x30f),_0x231b01[_0x231b01[_0x22c5ef(0x454)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x231b01[_0x231b01[_0x22c5ef(0x29f)]=0x32ca]=_0x22c5ef(0x29f),_0x231b01[_0x231b01[_0x22c5ef(0x288)]=0x32cb]=_0x22c5ef(0x288),_0x231b01[_0x231b01[_0x22c5ef(0x347)]=0x36b1]=_0x22c5ef(0x347),_0x231b01[_0x231b01[_0x22c5ef(0x34d)]=0x36b2]=_0x22c5ef(0x34d),_0x231b01[_0x231b01[_0x22c5ef(0x1b6)]=0x36b3]=_0x22c5ef(0x1b6),_0x231b01[_0x231b01[_0x22c5ef(0x393)]=0x36b4]=_0x22c5ef(0x393),_0x231b01[_0x231b01['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x22c5ef(0x421),_0x231b01[_0x231b01[_0x22c5ef(0x3b6)]=0x36b6]=_0x22c5ef(0x3b6),_0x231b01[_0x231b01['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x22c5ef(0x43e),_0x231b01[_0x231b01[_0x22c5ef(0x383)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x231b01[_0x231b01['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x22c5ef(0x297),_0x231b01[_0x231b01[_0x22c5ef(0x211)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x231b01[_0x231b01[_0x22c5ef(0x460)]=0x3717]=_0x22c5ef(0x460),_0x231b01[_0x231b01['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x22c5ef(0x465),_0x231b01[_0x231b01[_0x22c5ef(0x415)]=0x3a99]=_0x22c5ef(0x415),_0x231b01[_0x231b01[_0x22c5ef(0x232)]=0x3a9a]=_0x22c5ef(0x232),_0x231b01[_0x231b01[_0x22c5ef(0x30e)]=0x3a9b]=_0x22c5ef(0x30e),_0x231b01[_0x231b01[_0x22c5ef(0x3b3)]=0x3a9c]=_0x22c5ef(0x3b3),_0x231b01[_0x231b01['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x22c5ef(0x422),_0x231b01[_0x231b01['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x22c5ef(0x2f0),_0x231b01[_0x231b01[_0x22c5ef(0x3b2)]=0x3a9f]=_0x22c5ef(0x3b2),_0x231b01[_0x231b01[_0x22c5ef(0x2ec)]=0x3e81]=_0x22c5ef(0x2ec),_0x231b01[_0x231b01[_0x22c5ef(0x250)]=-0x1]=_0x22c5ef(0x250),_0x231b01))(G||{});function Jt(_0x46f8a4){const _0x5c1634=_0x22c5ef;var _0x549fc2,_0x1e9803;const _0x139e10=(_0x549fc2=_0x46f8a4[_0x5c1634(0x247)])==null?void 0x0:_0x549fc2[_0x5c1634(0x1ee)],_0x4cdabe=((_0x1e9803=_0x46f8a4[_0x5c1634(0x247)])==null?void 0x0:_0x1e9803[_0x5c1634(0x1c3)])||0x0;return _0x139e10===B[_0x5c1634(0x2f4)][_0x5c1634(0x353)]&&_0x4cdabe>0x0;}function Zt(_0x5c1138){const _0x245945=_0x22c5ef;return _0x5c1138[_0x245945(0x41d)]===B[_0x245945(0x28b)]['SUCCESS'];}var Qt=Object[_0x22c5ef(0x33d)],es=(_0x57fbc4,_0x5f3dd8,_0x11a442,_0x478b10)=>{const _0x112a14=_0x22c5ef;for(var _0x56b974=_0x478b10>0x1?void 0x0:_0x478b10?Qt(_0x5f3dd8,_0x11a442):_0x5f3dd8,_0xa798b8=_0x57fbc4[_0x112a14(0x294)]-0x1,_0x35d7f2;_0xa798b8>=0x0;_0xa798b8--)(_0x35d7f2=_0x57fbc4[_0xa798b8])&&(_0x56b974=_0x35d7f2(_0x56b974)||_0x56b974);return _0x56b974;},L=(_0x19ccb6,_0x58d66b)=>(_0x30c58d,_0x27500c)=>_0x58d66b(_0x30c58d,_0x27500c,_0x19ccb6);const ts='/universer-api/license/formula/limit/status',ss=_0x22c5ef(0x3ae),is=_0x22c5ef(0x2e0);let ne=class extends a[_0x22c5ef(0x1e8)]{constructor(_0x445888,_0x336f90,_0xf32ea3,_0x258747,_0x170b73,_0x51ecc6,_0x32d64f){const _0xf2189d=_0x22c5ef;super(),_(this,'_pollingInterval',null),_(this,_0xf2189d(0x201),0x0),_(this,_0xf2189d(0x1a9),0x0),_(this,_0xf2189d(0x203),[]),_(this,_0xf2189d(0x367),0x0),(this[_0xf2189d(0x35e)]=_0x445888,this['_commandService']=_0x336f90,this['_configService']=_0xf32ea3,this[_0xf2189d(0x2d3)]=_0x258747,this[_0xf2189d(0x3a4)]=_0x170b73,this[_0xf2189d(0x327)]=_0x51ecc6,this[_0xf2189d(0x3ff)]=_0x32d64f,this[_0xf2189d(0x39c)]());}[_0x22c5ef(0x39c)](){const _0x4f0e30=_0x22c5ef;this[_0x4f0e30(0x3fa)](this['_commandService'][_0x4f0e30(0x2b2)]((_0x5add6f,_0x47d125)=>{const _0x2e93b7=_0x4f0e30;var _0x104877;if(_0x5add6f['id']!==B[_0x2e93b7(0x2ca)]['id'])return;const _0x47d8a3=_0x5add6f['params'];if(!this[_0x2e93b7(0x262)]((_0x104877=_0x47d8a3['dirtyRanges'])!=null?_0x104877:[]))return;if(!this[_0x2e93b7(0x336)]())throw this[_0x2e93b7(0x425)](_0x5add6f,_0x47d125),this['_showGuardMessage'](),new a['CanceledError']();})),this[_0x4f0e30(0x3fa)](this[_0x4f0e30(0x428)][_0x4f0e30(0x1b4)]((_0x4a3b02,_0x309320)=>{const _0x39b9f1=_0x4f0e30;if(_0x4a3b02['id']!==B[_0x39b9f1(0x3ab)]['id'])return;const _0xe53c84=_0x4a3b02['params'];if(Jt(_0xe53c84)){const _0x161191=a[_0x39b9f1(0x3ba)]();this[_0x39b9f1(0x203)][_0x39b9f1(0x29b)](_0x161191),this[_0x39b9f1(0x235)](_0x161191);}else{if(Zt(_0xe53c84)&&this[_0x39b9f1(0x203)][_0x39b9f1(0x294)]>0x0){const _0x183926=this['_taskIds'][_0x39b9f1(0x451)]();this['_releaseCalculationLimit'](_0x183926);}}}));}['dispose'](){const _0x147b9d=_0x22c5ef;super[_0x147b9d(0x390)](),this[_0x147b9d(0x352)](),this[_0x147b9d(0x203)]=[],this[_0x147b9d(0x1a9)]=0x0,this[_0x147b9d(0x201)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x22c5ef(0x425)](_0x3942c0,_0x327812){const _0x215a25=_0x22c5ef;for(let _0x19fec1=0x0;_0x19fec1<0x1e;_0x19fec1++)try{if(await this['_getFormulaLimitStatus'](),this[_0x215a25(0x336)]()){this[_0x215a25(0x2e2)](_0x3942c0,_0x327812),this[_0x215a25(0x35e)][_0x215a25(0x276)]({'content':this[_0x215a25(0x3ff)]['t'](_0x215a25(0x19e)),'type':p[_0x215a25(0x23d)][_0x215a25(0x3e5)]});return;}await new Promise(_0x2ab1dd=>{const _0x43984a=_0x215a25;this['_pollingInterval']=window[_0x43984a(0x305)](_0x2ab1dd,0x3e8);});}catch(_0x31c8b7){this[_0x215a25(0x327)]['error'](_0x31c8b7);}this['_messageService'][_0x215a25(0x276)]({'content':this['_localeService']['t'](_0x215a25(0x312)),'type':p[_0x215a25(0x23d)][_0x215a25(0x1b1)]});}[_0x22c5ef(0x2e2)](_0xdab67,_0x4cea87){const _0x2475b7=_0x22c5ef;try{this[_0x2475b7(0x428)][_0x2475b7(0x416)](_0xdab67['id'],_0xdab67[_0x2475b7(0x25a)],_0x4cea87);}catch(_0x47df27){this[_0x2475b7(0x327)][_0x2475b7(0x3ac)](_0x47df27);}}['_setFormulaLimitStatus'](_0x63eb9b,_0x1cdbb4){const _0x3efa6e=_0x22c5ef;_0x1cdbb4<this[_0x3efa6e(0x367)]||(this[_0x3efa6e(0x367)]=_0x1cdbb4,this['_maxFormulaLimit']=Number[_0x3efa6e(0x42d)](_0x63eb9b['maxFormulaLimit']),this[_0x3efa6e(0x1a9)]=Number[_0x3efa6e(0x42d)](_0x63eb9b['currentUsage']));}async[_0x22c5ef(0x235)](_0x50b877){const _0x478f2b=_0x22c5ef;var _0x16e087,_0x518002;const _0x5e3879=Date['now']();try{const _0x249112=((_0x16e087=this[_0x478f2b(0x240)][_0x478f2b(0x1ec)](u[_0x478f2b(0x3bc)]))==null?void 0x0:_0x16e087['startFormulaLimitUrl'])||ss,_0x3a1644=(await this[_0x478f2b(0x2d3)][_0x478f2b(0x345)](_0x249112,{'body':JSON[_0x478f2b(0x269)]({'taskId':_0x50b877})}))[_0x478f2b(0x3e6)];if(((_0x518002=_0x3a1644[_0x478f2b(0x3ac)])==null?void 0x0:_0x518002[_0x478f2b(0x1de)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x3a1644[_0x478f2b(0x220)],_0x5e3879);}catch(_0x32ec76){this['_logService'][_0x478f2b(0x3ac)](_0x32ec76);}}async[_0x22c5ef(0x1af)](_0x572d58){const _0x3bd457=_0x22c5ef;var _0x17a280,_0x339535;const _0xfe0d19=Date['now']();try{const _0x3ab4fc=((_0x17a280=this[_0x3bd457(0x240)][_0x3bd457(0x1ec)](u[_0x3bd457(0x3bc)]))==null?void 0x0:_0x17a280['getformulaLimitStatusUrl'])||ts,_0x782321=_0x572d58?_0x3ab4fc+'?taskId='+encodeURIComponent(_0x572d58):_0x3ab4fc,_0xda0193=(await this['_httpService']['get'](_0x782321))[_0x3bd457(0x3e6)];if(((_0x339535=_0xda0193[_0x3bd457(0x3ac)])==null?void 0x0:_0x339535[_0x3bd457(0x1de)])!==G['OK'])return;this[_0x3bd457(0x1ad)](_0xda0193[_0x3bd457(0x220)],_0xfe0d19);}catch(_0xb7a63b){this[_0x3bd457(0x327)][_0x3bd457(0x3ac)](_0xb7a63b);}}async[_0x22c5ef(0x256)](_0x416e46){const _0x472a3f=_0x22c5ef;var _0x7f505a,_0x4cbd3d;const _0x1de30f=Date[_0x472a3f(0x2c3)]();try{const _0x35ac9a=((_0x7f505a=this[_0x472a3f(0x240)]['getConfig'](u[_0x472a3f(0x3bc)]))==null?void 0x0:_0x7f505a['releaseFormulaLimitUrl'])||is,_0x4b105f=(await this[_0x472a3f(0x2d3)]['post'](_0x35ac9a,{'body':JSON[_0x472a3f(0x269)]({'taskId':_0x416e46})}))[_0x472a3f(0x3e6)];if(((_0x4cbd3d=_0x4b105f[_0x472a3f(0x3ac)])==null?void 0x0:_0x4cbd3d[_0x472a3f(0x1de)])!==G['OK'])return;this[_0x472a3f(0x1ad)](_0x4b105f[_0x472a3f(0x220)],_0x1de30f);}catch(_0xfe0a66){this['_logService'][_0x472a3f(0x3ac)](_0xfe0a66);}}[_0x22c5ef(0x336)](){const _0x4c384e=_0x22c5ef;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x4c384e(0x1a9)]>0x0;}[_0x22c5ef(0x352)](){const _0x159d76=_0x22c5ef;this[_0x159d76(0x436)]&&(clearTimeout(this[_0x159d76(0x436)]),this[_0x159d76(0x436)]=null);}[_0x22c5ef(0x204)](){const _0x407b4a=_0x22c5ef;this[_0x407b4a(0x35e)][_0x407b4a(0x276)]({'content':this[_0x407b4a(0x3ff)]['t']('formula.calculation.waiting'),'type':p[_0x407b4a(0x23d)][_0x407b4a(0x268)]});}[_0x22c5ef(0x262)](_0x5bd908){const _0x58145d=_0x22c5ef;for(const _0x524469 of _0x5bd908){const {unitId:_0x49ccd9,sheetId:_0x1722c2,range:_0xae0d96}=_0x524469,_0x3dfc34=this['_univerInstanceService'][_0x58145d(0x2ce)](_0x49ccd9);if(!_0x3dfc34)continue;const _0x503f83=_0x3dfc34['getSheetBySheetId'](_0x1722c2);if(!_0x503f83)continue;const _0x6b2858=_0x503f83['getCellMatrix']();for(let _0x5f07fb=_0xae0d96[_0x58145d(0x401)];_0x5f07fb<=_0xae0d96[_0x58145d(0x338)];_0x5f07fb++)for(let _0xf24ef1=_0xae0d96['startColumn'];_0xf24ef1<=_0xae0d96[_0x58145d(0x21e)];_0xf24ef1++){const _0xd6ec87=_0x6b2858[_0x58145d(0x214)](_0x5f07fb,_0xf24ef1);if(_0xd6ec87&&(a['isFormulaString'](_0xd6ec87['f'])||a['isFormulaId'](_0xd6ec87['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x22c5ef(0x33f)](O[_0x22c5ef(0x3d6)])),L(0x1,a[_0x22c5ef(0x1d0)]),L(0x2,a[_0x22c5ef(0x1d3)]),L(0x3,a['Inject'](x['HTTPService'])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x22c5ef(0x259)]),L(0x6,a[_0x22c5ef(0x33f)](a[_0x22c5ef(0x2c2)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x49ffbb,_0x17a3e2,_0xd39be8,_0x3db525)=>{const _0xbf088c=_0x22c5ef;for(var _0x4f1f3e=_0x3db525>0x1?void 0x0:_0x3db525?ns(_0x17a3e2,_0xd39be8):_0x17a3e2,_0x2d4a12=_0x49ffbb[_0xbf088c(0x294)]-0x1,_0x60fb88;_0x2d4a12>=0x0;_0x2d4a12--)(_0x60fb88=_0x49ffbb[_0x2d4a12])&&(_0x4f1f3e=_0x60fb88(_0x4f1f3e)||_0x4f1f3e);return _0x4f1f3e;},Se=(_0x5e5c81,_0x1742bb)=>(_0x177f5d,_0xb5820d)=>_0x1742bb(_0x177f5d,_0xb5820d,_0x5e5c81);let Te=class extends a[_0x22c5ef(0x1e8)]{constructor(_0x48b2df,_0x46f998,_0x3d39c1){const _0x25e77a=_0x22c5ef;super(),_(this,_0x25e77a(0x307),new Map()),_(this,_0x25e77a(0x414),new Map()),_(this,_0x25e77a(0x241),!0x1),(this[_0x25e77a(0x240)]=_0x48b2df,this['_localStorageService']=_0x46f998,this[_0x25e77a(0x366)]=_0x3d39c1);}[_0x22c5ef(0x213)](){const _0x794553=_0x22c5ef;this[_0x794553(0x241)]=!0x0;}[_0x22c5ef(0x225)](){this['_disabled']=!0x1;}get[_0x22c5ef(0x379)](){return this['_saveTaskMap'];}['dispose'](){const _0x4c9e73=_0x22c5ef;this[_0x4c9e73(0x330)]()[_0x4c9e73(0x1e1)](()=>super[_0x4c9e73(0x390)]());}async[_0x22c5ef(0x236)](_0x4036c4){const _0x4e4639=_0x22c5ef;return this[_0x4e4639(0x241)]?null:this[_0x4e4639(0x23a)]['getItem'](u[_0x4e4639(0x24d)](_0x4036c4));}async[_0x22c5ef(0x2ab)](_0x11a758,_0x246d45){const _0x2d6218=_0x22c5ef;return!!this[_0x2d6218(0x23a)][_0x2d6218(0x22d)](_0x11a758,_0x246d45);}[_0x22c5ef(0x1ab)](_0x3402ee,_0x552c4b,_0x1104fc,_0xa0b533){const _0x27af9b=_0x22c5ef,_0xac255f=this[_0x27af9b(0x366)][_0x27af9b(0x391)](_0x3402ee);this['_cachedData'][_0x27af9b(0x463)](_0x3402ee,{'unitID':_0x3402ee,'type':_0x552c4b,'awaitingChangeset':_0x1104fc,'mutations':_0xa0b533,'rev':_0xac255f}),this[_0x27af9b(0x414)][_0x27af9b(0x1dd)](_0x3402ee)||this[_0x27af9b(0x341)](_0x3402ee);}[_0x22c5ef(0x341)](_0x5ab15c){const _0x240265=_0x22c5ef,_0x50b53d=this[_0x240265(0x2b3)]();_0x50b53d===0x0?this[_0x240265(0x1f7)](_0x5ab15c):this[_0x240265(0x414)][_0x240265(0x463)](_0x5ab15c,setTimeout(()=>this[_0x240265(0x1f7)](_0x5ab15c),_0x50b53d));}[_0x22c5ef(0x2b3)](){const _0x3ed2de=_0x22c5ef;var _0x4d7d09;return(_0x4d7d09=this['_configService'][_0x3ed2de(0x1ec)](u[_0x3ed2de(0x31a)]))!=null?_0x4d7d09:u[_0x3ed2de(0x33a)];}[_0x22c5ef(0x1f7)](_0x3639b5){const _0x57c64d=_0x22c5ef,_0x443157=this[_0x57c64d(0x414)][_0x57c64d(0x40d)](_0x3639b5);return _0x443157!==void 0x0&&window['clearTimeout'](_0x443157),this[_0x57c64d(0x23a)][_0x57c64d(0x22d)](u[_0x57c64d(0x24d)](_0x3639b5),this['_cachedData'][_0x57c64d(0x40d)](_0x3639b5))['then'](()=>this['_saveTaskMap'][_0x57c64d(0x3fd)](_0x3639b5));}async[_0x22c5ef(0x330)](){const _0x1cbdc4=_0x22c5ef,_0x1f34b2=[];this[_0x1cbdc4(0x414)][_0x1cbdc4(0x1b2)]((_0x426c83,_0x549403)=>{const _0x3674ee=_0x1cbdc4;window[_0x3674ee(0x206)](_0x426c83),_0x1f34b2[_0x3674ee(0x29b)](this[_0x3674ee(0x1f7)](_0x549403)[_0x3674ee(0x1e1)](()=>{const _0x274da4=_0x3674ee;this[_0x274da4(0x414)][_0x274da4(0x3fd)](_0x549403);}));}),await Promise[_0x1cbdc4(0x3a1)](_0x1f34b2);}};Te=rs([Se(0x0,a[_0x22c5ef(0x1d3)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x22c5ef(0x33f)](g[_0x22c5ef(0x29d)]))],Te);class ke extends a[_0x22c5ef(0x435)]{constructor(){const _0x31dc7b=_0x22c5ef;super(),_(this,_0x31dc7b(0x424)),this[_0x31dc7b(0x424)]=I[_0x31dc7b(0x380)](window,_0x31dc7b(0x42c))['pipe'](I[_0x31dc7b(0x1ca)](this[_0x31dc7b(0x233)]),I[_0x31dc7b(0x274)](0x1),I[_0x31dc7b(0x25f)](void 0x0));}[_0x22c5ef(0x332)](_0x48781a,_0x3d1c32,_0x1eec83=!0x1){const _0x3f8003=_0x22c5ef,_0x597cb6=new URL(window['location'][_0x3f8003(0x25c)]);_0x597cb6[_0x3f8003(0x1b8)][_0x3f8003(0x463)](_0x48781a,_0x3d1c32),_0x1eec83?window[_0x3f8003(0x2c8)][_0x3f8003(0x2b0)]('','',_0x597cb6[_0x3f8003(0x2cf)]()):window[_0x3f8003(0x2c8)][_0x3f8003(0x26c)]('','',_0x597cb6[_0x3f8003(0x2cf)]());}['removeParam'](_0x288199,_0x597e4b=!0x1){const _0x48c49b=_0x22c5ef,_0x4dfecc=new URL(window[_0x48c49b(0x1d4)][_0x48c49b(0x25c)]);_0x4dfecc[_0x48c49b(0x1b8)][_0x48c49b(0x3fd)](_0x288199),_0x597e4b?window[_0x48c49b(0x2c8)]['replaceState']('','',_0x4dfecc[_0x48c49b(0x2cf)]()):window[_0x48c49b(0x2c8)]['pushState']('','',_0x4dfecc[_0x48c49b(0x2cf)]());}['getParam'](_0x3d98a8){const _0x3e840a=_0x22c5ef;var _0x302ccc;return(_0x302ccc=new URL(window[_0x3e840a(0x1d4)][_0x3e840a(0x25c)])[_0x3e840a(0x1b8)][_0x3e840a(0x40d)](_0x3d98a8))!=null?_0x302ccc:void 0x0;}}var os=Object[_0x22c5ef(0x392)],as=Object[_0x22c5ef(0x33d)],cs=(_0xad7018,_0x1c818e,_0x23adf9)=>_0x1c818e in _0xad7018?os(_0xad7018,_0x1c818e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23adf9}):_0xad7018[_0x1c818e]=_0x23adf9,ls=(_0xe010e4,_0x23c24f,_0x5e1601,_0x1a8462)=>{const _0x196be5=_0x22c5ef;for(var _0x1235e3=_0x1a8462>0x1?void 0x0:_0x1a8462?as(_0x23c24f,_0x5e1601):_0x23c24f,_0x167b11=_0xe010e4[_0x196be5(0x294)]-0x1,_0x174316;_0x167b11>=0x0;_0x167b11--)(_0x174316=_0xe010e4[_0x167b11])&&(_0x1235e3=_0x174316(_0x1235e3)||_0x1235e3);return _0x1235e3;},de=(_0x531866,_0xe805a2)=>(_0x2a24d9,_0x1092a4)=>_0xe805a2(_0x2a24d9,_0x1092a4,_0x531866),_s=(_0x8525b9,_0x2de67b,_0x514435)=>cs(_0x8525b9,_0x2de67b+'',_0x514435);const hs=_0x22c5ef(0x3c7);exports[_0x22c5ef(0x27b)]=class extends a[_0x22c5ef(0x39d)]{constructor(_0x5b70e1=Me,_0x2a3385,_0x390af3,_0x5c16c2){const _0x4856c3=_0x22c5ef;super(),this[_0x4856c3(0x408)]=_0x5b70e1,this[_0x4856c3(0x258)]=_0x2a3385,this[_0x4856c3(0x402)]=_0x390af3,this[_0x4856c3(0x240)]=_0x5c16c2;const {..._0x44b222}=a['merge']({},Me,this[_0x4856c3(0x408)]);this[_0x4856c3(0x240)][_0x4856c3(0x21c)](Yt,_0x44b222);}[_0x22c5ef(0x28d)](){const _0x4e3804=_0x22c5ef;this[_0x4e3804(0x1b5)](),this[_0x4e3804(0x3c2)]();}[_0x22c5ef(0x1a7)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4e1716=_0x22c5ef;var _0x26796e;const _0xcdcd86=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x4e1716(0x1c6)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x4e1716(0x22a)]],[ie],[Z],[F],[me],[exports[_0x4e1716(0x464)]]];this[_0x4e1716(0x408)][_0x4e1716(0x446)]&&_0xcdcd86[_0x4e1716(0x29b)]([Q]),a[_0x4e1716(0x320)](this[_0x4e1716(0x402)],a[_0x4e1716(0x2fd)](_0xcdcd86,(_0x26796e=this[_0x4e1716(0x408)])==null?void 0x0:_0x26796e['override']));}['_registerRenderDependencies'](){const _0x291005=_0x22c5ef;this['disposeWithMe'](this[_0x291005(0x258)][_0x291005(0x34c)](a['UniverInstanceType'][_0x291005(0x33c)],[Ee])),this['disposeWithMe'](this['_renderManagerService'][_0x291005(0x34c)](a[_0x291005(0x445)][_0x291005(0x279)],[Ce]));}[_0x22c5ef(0x3c2)](){const _0x3587b3=_0x22c5ef;a[_0x3587b3(0x1bc)](this[_0x3587b3(0x402)],[[F],[exports[_0x3587b3(0x22a)]],[ie],[Z],[exports[_0x3587b3(0x464)]],[ne]]),this[_0x3587b3(0x408)]['enableFrontendLog']&&a[_0x3587b3(0x1bc)](this[_0x3587b3(0x402)],[[Q]]);}},_s(exports[_0x22c5ef(0x27b)],_0x22c5ef(0x374),hs),exports[_0x22c5ef(0x27b)]=ls([a['DependentOn'](u[_0x22c5ef(0x1ba)]),de(0x1,C[_0x22c5ef(0x1d5)]),de(0x2,a['Inject'](a[_0x22c5ef(0x45a)])),de(0x3,a[_0x22c5ef(0x1d3)])],exports[_0x22c5ef(0x27b)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x22e049,_0x4c955a,_0x3e38b9,_0x15bb38)=>{const _0x2b5682=_0x22c5ef;for(var _0xea646=_0x15bb38>0x1?void 0x0:_0x15bb38?us(_0x4c955a,_0x3e38b9):_0x4c955a,_0x19a913=_0x22e049[_0x2b5682(0x294)]-0x1,_0x465429;_0x19a913>=0x0;_0x19a913--)(_0x465429=_0x22e049[_0x19a913])&&(_0xea646=_0x465429(_0xea646)||_0xea646);return _0xea646;},W=(_0x20e095,_0x2e69dd)=>(_0x263107,_0x460474)=>_0x2e69dd(_0x263107,_0x460474,_0x20e095);exports['BrowserCollaborationSocketService']=class extends u[_0x22c5ef(0x1aa)]{constructor(_0x38a404,_0x1033e6,_0x584c16,_0x3fb282,_0x1bc9f1){super(_0x38a404,_0x1033e6,_0x584c16,_0x3fb282,_0x1bc9f1);}async[_0x22c5ef(0x221)](_0x5b7cb9){const _0x575fc8=_0x22c5ef,_0x15c526=await this['_getSessionTicket'](),_0x3b8c6f=this[_0x575fc8(0x442)](_0x5b7cb9,_0x15c526);return this[_0x575fc8(0x403)](_0x3b8c6f);}[_0x22c5ef(0x442)](_0x2acaac,_0x1f36af){const _0x3e56d1=_0x22c5ef,_0x2d0be1=typeof window>'u'?new URL(_0x2acaac):new URL(_0x2acaac,window[_0x3e56d1(0x1d4)][_0x3e56d1(0x418)]);_0x2d0be1[_0x3e56d1(0x1b8)][_0x3e56d1(0x463)](_0x3e56d1(0x3f4),_0x1f36af);const _0x1f83b3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3e56d1(0x1d4)]['search']);return _0x1f83b3[_0x3e56d1(0x40d)](_0x3e56d1(0x3f5))&&_0x2d0be1[_0x3e56d1(0x1b8)][_0x3e56d1(0x463)](_0x3e56d1(0x3f5),_0x1f83b3[_0x3e56d1(0x40d)](_0x3e56d1(0x3f5))),_0x2d0be1[_0x3e56d1(0x2cf)]();}async[_0x22c5ef(0x407)](){const _0x558c60=_0x22c5ef;var _0x1ae23b,_0x14d74b,_0x5c5d0d;const _0x5e294b=this[_0x558c60(0x240)][_0x558c60(0x1ec)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x4aefdf=(_0x1ae23b=_0x5e294b==null?void 0x0:_0x5e294b[_0x558c60(0x20a)])!=null?_0x1ae23b:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5c5d0d=(_0x14d74b=(await this[_0x558c60(0x2d3)][_0x558c60(0x40d)](_0x4aefdf,{'headers':{'Content-Type':'application/json'}}))[_0x558c60(0x3e6)])==null?void 0x0:_0x14d74b[_0x558c60(0x2b8)])!=null?_0x5c5d0d:'';}},exports[_0x22c5ef(0x323)]=Is([W(0x0,a[_0x22c5ef(0x33f)](a['Injector'])),W(0x1,a['Inject'](x[_0x22c5ef(0x2ef)])),W(0x2,a[_0x22c5ef(0x1d3)]),W(0x3,a['ILogService']),W(0x4,g['ISnapshotServerService'])],exports[_0x22c5ef(0x323)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x802971,_0x2b6b9d,_0x5bc259,_0x122f6f)=>{const _0x444445=_0x22c5ef;for(var _0x5a2d60=_0x122f6f>0x1?void 0x0:_0x122f6f?Ss(_0x2b6b9d,_0x5bc259):_0x2b6b9d,_0x30e503=_0x802971[_0x444445(0x294)]-0x1,_0x50a1d4;_0x30e503>=0x0;_0x30e503--)(_0x50a1d4=_0x802971[_0x30e503])&&(_0x5a2d60=_0x50a1d4(_0x5a2d60)||_0x5a2d60);return _0x5a2d60;},fe=(_0x309d67,_0x17dce2)=>(_0x11b9b3,_0x18d943)=>_0x17dce2(_0x11b9b3,_0x18d943,_0x309d67);exports['RemoteUniscriptService']=class extends a[_0x22c5ef(0x1e8)]{constructor(_0x1dca9e,_0x3a41e7,_0x20ef14){const _0x3604ef=_0x22c5ef;super(),this['_instanceService']=_0x1dca9e,this['_httpService']=_0x3a41e7,this[_0x3604ef(0x240)]=_0x20ef14;}async['runOnServer'](_0x29f52e,_0x2ca8f9,_0x33a705,..._0x437f7f){const _0x3024df=_0x22c5ef;var _0xb3dc03,_0x7f9e19,_0x11fc04,_0x136ed0;const _0x43895d=this['_instanceService'][_0x3024df(0x43f)]();if(!_0x43895d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3b21e0=((_0xb3dc03=this[_0x3024df(0x240)][_0x3024df(0x1ec)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xb3dc03:u[_0x3024df(0x40c)])+'/'+_0x29f52e+_0x3024df(0x2f9)+_0x2ca8f9,_0x1bb772=new URL(window[_0x3024df(0x1d4)]['href']),_0x50d6b7={'scriptId':_0x29f52e,'runId':(_0x7f9e19=_0x1bb772['searchParams']['get'](_0x3024df(0x3f5)))!=null?_0x7f9e19:'','function':_0x2ca8f9,'unitId':_0x43895d[_0x3024df(0x27f)](),'argsOfFunction':JSON[_0x3024df(0x269)](_0x437f7f),'invokeId':(_0x11fc04=_0x33a705['invokeId'])!=null?_0x11fc04:'','executionId':(_0x136ed0=_0x33a705[_0x3024df(0x2e6)])!=null?_0x136ed0:''};try{const _0x5c83a6=await this[_0x3024df(0x2d3)][_0x3024df(0x345)](_0x3b21e0,{'body':_0x50d6b7});return _0x5c83a6[_0x3024df(0x3e6)][_0x3024df(0x3ac)]&&_0x5c83a6[_0x3024df(0x3e6)][_0x3024df(0x3ac)][_0x3024df(0x1de)]!==G['OK']?_0x3024df(0x31d):_0x5c83a6[_0x3024df(0x3e6)][_0x3024df(0x342)];}catch{return _0x3024df(0x31d);}}},exports[_0x22c5ef(0x2b7)]=ds([fe(0x0,a[_0x22c5ef(0x382)]),fe(0x1,a[_0x22c5ef(0x33f)](x[_0x22c5ef(0x2ef)])),fe(0x2,a[_0x22c5ef(0x1d3)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x22c5ef(0x257);class fs extends a[_0x22c5ef(0x1e8)]{constructor(){const _0x88ae7d=_0x22c5ef;super(),_(this,'_id',a[_0x88ae7d(0x3ba)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x88ae7d(0x3e7),new Map()),_(this,_0x88ae7d(0x3f9),null),_(this,_0x88ae7d(0x37b),new Map()),_(this,'_unitStatus',new Map()),this[_0x88ae7d(0x2d2)]();}[_0x22c5ef(0x390)](){const _0x4c4f1b=_0x22c5ef;super[_0x4c4f1b(0x390)](),this[_0x4c4f1b(0x37b)][_0x4c4f1b(0x1b2)]((_0x414271,_0x283cb9)=>this[_0x4c4f1b(0x1f3)](_0x283cb9)),this[_0x4c4f1b(0x3f9)]&&window[_0x4c4f1b(0x3ee)](this[_0x4c4f1b(0x3f9)]);}[_0x22c5ef(0x3cb)](_0x2e7205){const _0x5687a6=_0x22c5ef;return this[_0x5687a6(0x230)](_0x2e7205)['pipe'](I[_0x5687a6(0x3dd)]());}[_0x22c5ef(0x3d1)](_0x4b55d2){const _0x30665d=_0x22c5ef;this[_0x30665d(0x45b)][_0x30665d(0x280)]===0x0&&this[_0x30665d(0x35c)](),this['_selfUnitIDs'][_0x30665d(0x32c)](_0x4b55d2),this[_0x30665d(0x456)]({'type':0x0,'memberID':this[_0x30665d(0x373)],'unitIDs':[_0x4b55d2],'isForwarded':!0x1});}[_0x22c5ef(0x1fa)](_0x474189){const _0x298de2=_0x22c5ef;this[_0x298de2(0x45b)][_0x298de2(0x3fd)](_0x474189),this['_selfUnitIDs'][_0x298de2(0x280)]===0x0&&this[_0x298de2(0x3f9)]&&window[_0x298de2(0x3ee)](this['_heartbeatTimer']);}[_0x22c5ef(0x2d2)](){const _0x12b42d=_0x22c5ef;this[_0x12b42d(0x3fa)](a[_0x12b42d(0x22c)](I[_0x12b42d(0x380)](window,_0x12b42d(0x326))[_0x12b42d(0x432)](_0x5bc796=>{const _0x5e72e6=_0x12b42d;if(_0x5bc796[_0x5e72e6(0x1a8)]!==ye||!_0x5bc796[_0x5e72e6(0x426)])return;const _0xc4c43=JSON['parse'](_0x5bc796[_0x5e72e6(0x426)]);this['_handleEvent'](_0xc4c43);}))),window[_0x12b42d(0x3bd)](_0x12b42d(0x2db),()=>this[_0x12b42d(0x456)]({'type':0x1,'memberID':this[_0x12b42d(0x373)],'unitIDs':Array[_0x12b42d(0x248)](this[_0x12b42d(0x45b)])}));}[_0x22c5ef(0x2a7)](_0x505fa5){const _0x1e24ab=_0x22c5ef;switch(_0x505fa5[_0x1e24ab(0x36b)]){case 0x0:this[_0x1e24ab(0x2ea)](_0x505fa5);break;case 0x1:this[_0x1e24ab(0x409)](_0x505fa5);break;case 0x2:this[_0x1e24ab(0x2a9)](_0x505fa5);break;}}[_0x22c5ef(0x2ea)](_0x54a6ba){const _0x443848=_0x22c5ef,{unitIDs:_0x38a51e,memberID:_0x35607c,isForwarded:_0x23a42e}=_0x54a6ba;_0x38a51e[_0x443848(0x1b2)](_0x12206b=>{const _0x2a825c=_0x443848;if(!_0x23a42e&&this[_0x2a825c(0x3e7)]['has'](_0x12206b)&&this[_0x2a825c(0x230)](_0x12206b)['next'](u['UnitStatus'][_0x2a825c(0x43c)]),!this[_0x2a825c(0x3e7)][_0x2a825c(0x1dd)](_0x12206b)||!this[_0x2a825c(0x3e7)][_0x2a825c(0x40d)](_0x12206b)[_0x2a825c(0x1dd)](_0x35607c)){const _0x3f5410=this[_0x2a825c(0x3e7)][_0x2a825c(0x40d)](_0x12206b)||new Set();_0x3f5410[_0x2a825c(0x32c)](_0x35607c),this['_unitOnClients'][_0x2a825c(0x463)](_0x12206b,_0x3f5410),this[_0x2a825c(0x2df)](_0x35607c);}}),_0x23a42e||this[_0x443848(0x456)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x443848(0x45b)]],'isForwarded':!0x0});}[_0x22c5ef(0x2df)](_0x67a122){const _0x1dcbd4=_0x22c5ef;this[_0x1dcbd4(0x1f3)](_0x67a122);const _0xc9b4b2=window['setTimeout'](()=>{const _0x490ef0=_0x1dcbd4;this[_0x490ef0(0x3e7)][_0x490ef0(0x1b2)](_0x13fc77=>{_0x13fc77['delete'](_0x67a122);});},we*0x2);this[_0x1dcbd4(0x37b)][_0x1dcbd4(0x463)](_0x67a122,_0xc9b4b2);}[_0x22c5ef(0x1f3)](_0x1fa4dd){const _0x5eb7e8=_0x22c5ef;if(this['_clearOtherTimers']['has'](_0x1fa4dd)){const _0x2dfc3d=this[_0x5eb7e8(0x37b)][_0x5eb7e8(0x40d)](_0x1fa4dd);_0x2dfc3d&&window[_0x5eb7e8(0x206)](_0x2dfc3d),this[_0x5eb7e8(0x37b)][_0x5eb7e8(0x463)](_0x1fa4dd,null);}}[_0x22c5ef(0x409)](_0x299bde){const _0x254298=_0x22c5ef,{memberID:_0x3e7cd7,unitIDs:_0x13cc92}=_0x299bde;_0x13cc92[_0x254298(0x1b2)](_0xcee15c=>{const _0xf0d022=_0x254298;var _0x590238;const _0x4eb7e0=this[_0xf0d022(0x3e7)][_0xf0d022(0x40d)](_0xcee15c);_0x4eb7e0&&(_0x4eb7e0['delete'](_0x3e7cd7),(_0x590238=this['_ensureSubject'](_0xcee15c))==null||_0x590238[_0xf0d022(0x3b9)](_0x4eb7e0[_0xf0d022(0x280)]===0x0?u[_0xf0d022(0x1d7)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0xf0d022(0x43c)]));}),this[_0x254298(0x1f3)](_0x3e7cd7);}[_0x22c5ef(0x2a9)](_0x3ca111){const _0x54d6e4=_0x22c5ef;this[_0x54d6e4(0x2df)](_0x3ca111[_0x54d6e4(0x3b8)]);}[_0x22c5ef(0x456)](_0x1bf676){const _0x143b1f=_0x22c5ef;localStorage[_0x143b1f(0x22d)](ye,JSON['stringify'](_0x1bf676));}[_0x22c5ef(0x35c)](){const _0x5e8d87=_0x22c5ef;this[_0x5e8d87(0x3f9)]=window[_0x5e8d87(0x1eb)](()=>{const _0x59965e=_0x5e8d87;this['_send']({'type':0x2,'memberID':this[_0x59965e(0x373)]});},we);}['_ensureSubject'](_0xae38c5){const _0xa25751=_0x22c5ef;return this[_0xa25751(0x3f1)][_0xa25751(0x1dd)](_0xae38c5)||this[_0xa25751(0x3f1)]['set'](_0xae38c5,new I[(_0xa25751(0x368))](u['UnitStatus'][_0xa25751(0x277)])),this[_0xa25751(0x3f1)][_0xa25751(0x40d)](_0xae38c5);}}exports[_0x22c5ef(0x1f8)]=Oe,exports[_0x22c5ef(0x1d8)]=je,exports[_0x22c5ef(0x1c7)]=fs,exports['WebURLService']=ke;