@univerjs-pro/collaboration-client-ui 0.14.0-insiders.20251222-4efcfbb → 0.14.0-insiders.20251227-b250a8d

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 +19 -19
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2dfdce=_0x49dd;(function(_0x44e1e3,_0x2f3e0c){const _0x63e645=_0x49dd,_0x5270f6=_0x44e1e3();while(!![]){try{const _0x161d52=parseInt(_0x63e645(0x1f8))/0x1+parseInt(_0x63e645(0x2b0))/0x2+parseInt(_0x63e645(0x27c))/0x3*(-parseInt(_0x63e645(0x1b2))/0x4)+-parseInt(_0x63e645(0x217))/0x5*(parseInt(_0x63e645(0x291))/0x6)+parseInt(_0x63e645(0x15e))/0x7*(-parseInt(_0x63e645(0x22d))/0x8)+-parseInt(_0x63e645(0x227))/0x9+parseInt(_0x63e645(0x23f))/0xa;if(_0x161d52===_0x2f3e0c)break;else _0x5270f6['push'](_0x5270f6['shift']());}catch(_0x2daa81){_0x5270f6['push'](_0x5270f6['shift']());}}}(_0xae42,0x8bb70));var Yt=Object[_0x2dfdce(0x205)],Wt=(_0x172747,_0x4632c5,_0x3b1557)=>_0x4632c5 in _0x172747?Yt(_0x172747,_0x4632c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1557}):_0x172747[_0x4632c5]=_0x3b1557,_=(_0x4bf87c,_0x2b2d94,_0x17e476)=>Wt(_0x4bf87c,typeof _0x2b2d94!='symbol'?_0x2b2d94+'':_0x2b2d94,_0x17e476);import{jsx as _0x289ae7,jsxs as _0x1f2ecc}from'react/jsx-runtime';import{CollaborationStatus as _0x3c389e,CollaborationSessionService as _0x17121e,CollaborationController as _0x2101ad,DataLoaderService as _0x5c1fef,MemberService as _0x5a1494,SessionStatus as _0xa5bb79,ILocalCacheService as _0x48427f,CollaborationUIEventService as _0x398c15,CollaborationUIEventId as _0x344e1a,DocCollaborationEntity as _0x1d355d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x696a50,getLocalCacheKey as _0x4f2419,LOCAL_CACHE_INTERVAL as _0x223577,LOCAL_CACHE_INTERVAL_KEY as _0x16e372,UniverCollaborationClientPlugin as _0x135213,CollaborationSocketService as _0x3e9be6,DEFAULT_WS_SESSION_TICKET_URL as _0x9e646d,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x6c01eb,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4e985b,UnitStatus as _0x4f5cb1}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x18855f,IUniverInstanceService as _0x3fdcd0,Inject as _0x80106c,Injector as _0x1993d7,Disposable as _0x105698,createIdentifier as _0x3436bf,ILogService as _0x4b2474,ICommandService as _0x3e0249,Optional as _0x5bfdee,RxDisposable as _0x2c39b3,Workbook as _0x58677d,DOC_RANGE_TYPE as _0x4d6e44,debounce as _0x3b08f0,Rectangle as _0x3ed2d3,DisposableCollection as _0x4e3de0,toDisposable as _0x2e089f,UniverInstanceType as _0x23000e,generateRandomId as _0x5c1be5,COLORS as _0x2beb18,ColorKit as _0x1ad57e,ThemeService as _0x318911,fromEventSubject as _0x35594e,Tools as _0x30226b,CommandType as _0xbf16cb,IConfigService as _0x54de01,CanceledError as _0x461dac,isFormulaString as _0x31557c,isFormulaId as _0x2763a3,ILocalStorageService as _0x3df3dc,DependentOn as _0x57dd49,Plugin as _0x5c0b33,merge as _0x4ea916,registerDependencies as _0x481e0c,mergeOverrideWithDependencies as _0x32d026,touchDependencies as _0x34cab7}from'@univerjs/core';import{useObservable as _0x335b7e,useDependency as _0x1f91b2,IUIPartsService as _0x75decf,BuiltInUIPart as _0x3777aa,connectInjector as _0x2767af,IBeforeCloseService as _0x554cc7,IMessageService as _0x5208d9,INotificationService as _0x34c2cd}from'@univerjs/ui';import{BehaviorSubject as _0x378dd0,switchMap as _0x518a55,of as _0x3ab1b5,takeUntil as _0x1a23a3,debounceTime as _0x50c53d,Subject as _0x3794ad,filter as _0x19b66b,merge as _0x5b020e,combineLatest as _0xac5457,fromEvent as _0x389e77,shareReplay as _0x20b240,mapTo as _0x5ce967,distinctUntilChanged as _0x58c13d}from'rxjs';import{Tooltip as _0x724b4d,clsx as _0x5d2d93,MessageType as _0x3e9f2d}from'@univerjs/design';import{useRef as _0xcc66b4,createElement as _0x376215,forwardRef as _0x15b285,useCallback as _0x2cb884}from'react';import{IRemoteInstanceService as _0x36739c}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x59ca2b,RefRangeService as _0x23b83e,SetSelectionsOperation as _0x4bdbe0,SheetsSelectionsService as _0x3d4fe4,EffectRefRangId as _0x2e0ac8,handleIRemoveRow as _0x1424d6,handleIRemoveCol as _0x503f95,handleMoveRange as _0x2bd807,handleInsertRow as _0x8084dd,handleInsertRangeMoveRight as _0x6b88ec,handleInsertRangeMoveDown as _0x506c5,handleInsertCol as _0x57fe14,handleDeleteRangeMoveUp as _0x42ca04,handleDeleteRangeMoveLeft as _0x3a8573,runRefRangeMutations as _0x1d825d}from'@univerjs/sheets';import{Shape as _0x463a40,Rect as _0x426ed1,getColor as _0x3a014e,RegularPolygon as _0x1390d8,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4d7ed4,Vector2 as _0x18deb4,SHEET_VIEWPORT_KEY as _0x9c2c05,IRenderManagerService as _0x3dc25c}from'@univerjs/engine-render';import{HTTPService as _0x52854e,ISocketService as _0x3c007f,WebSocketService as _0x322e26}from'@univerjs/network';import{IDocClipboardService as _0x5ce4b8,NodePositionConvertToCursor as _0x3b62c2,NodePositionConvertToRectRange as _0x4609b6,TEXT_RANGE_LAYER_INDEX as _0xc94a81,SetDocZoomRatioOperation as _0x3ae58d,DocIMEInputManagerService as _0x5111b1,DocStateChangeManagerService as _0x4c5b75}from'@univerjs/docs-ui';import{IImageIoService as _0x2f085b}from'@univerjs/drawing';import{ITransformService as _0xaca1db,CollaborationEvent as _0x2a549a,isTransformMutationFailure as _0x3080a1,isTransformMutationsWithChangesetSuccess as _0xc80047,RevisionService as _0x1cb6f9,ISnapshotServerService as _0x15fbe0}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x466907,RichTextEditingMutation as _0x549a5b,DocSelectionManagerService as _0x122074,DocSkeletonManagerService as _0x227ed8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3be069,serializeRangeWithSheet as _0x29e02d,FormulaExecuteStageType as _0x314ee9,FormulaExecutedStateType as _0xbd953,SetFormulaCalculationStartMutation as _0x566a6f,SetFormulaCalculationNotificationMutation as _0x453a50}from'@univerjs/engine-formula';import{map as _0x4656fe,filter as _0x28dc55,throttleTime as _0x520f68,takeUntil as _0x50594c,switchMap as _0x38c280}from'rxjs/operators';import{SheetSkeletonManagerService as _0x13caae,getCoordByCell as _0x3cb446,getSheetObject as _0x2d7447}from'@univerjs/sheets-ui';function Ge({ref:_0xb9eb20,..._0x3cfc01}){const _0x16f05b=_0x2dfdce,{icon:_0x2d735c,id:_0x1d2446,className:_0xc1f7c6,extend:_0x2745e7,..._0x42f2c3}=_0x3cfc01,_0x2429ed=(_0x16f05b(0x18c)+_0x1d2446+'\x20'+(_0xc1f7c6||''))[_0x16f05b(0x169)](),_0x39cdd3=_0xcc66b4('_'+vi());return At(_0x2d735c,''+_0x1d2446,{'defIds':_0x2d735c['defIds'],'idSuffix':_0x39cdd3[_0x16f05b(0x2fa)]},{'ref':_0xb9eb20,'className':_0x2429ed,..._0x42f2c3},_0x2745e7);}function At(_0xd13589,_0x3f8e56,_0x44199d,_0x5ce7b0,_0x64abb6){const _0x5bf0f1=_0x2dfdce;return _0x376215(_0xd13589[_0x5bf0f1(0x17a)],{'key':_0x3f8e56,...gi(_0xd13589,_0x44199d,_0x64abb6),..._0x5ce7b0},(Ei(_0xd13589,_0x44199d)[_0x5bf0f1(0x146)]||[])[_0x5bf0f1(0x37a)]((_0x5c21a4,_0x3dd2aa)=>At(_0x5c21a4,_0x3f8e56+'-'+_0xd13589[_0x5bf0f1(0x17a)]+'-'+_0x3dd2aa,_0x44199d,void 0x0,_0x64abb6)));}function gi(_0x1b5dc3,_0x27f7ac,_0x56cfae){const _0x4984d5=_0x2dfdce,_0x3ebb61={..._0x1b5dc3['attrs']};_0x56cfae!=null&&_0x56cfae[_0x4984d5(0x290)]&&_0x3ebb61[_0x4984d5(0x151)]===_0x4984d5(0x290)&&(_0x3ebb61['fill']=_0x56cfae[_0x4984d5(0x290)]),_0x1b5dc3[_0x4984d5(0x17a)]===_0x4984d5(0x2c7)&&_0x3ebb61['id']&&(_0x3ebb61['id']=_0x3ebb61['id']+_0x27f7ac[_0x4984d5(0x150)]),Object['entries'](_0x3ebb61)['forEach'](([_0x9c991e,_0x43eebf])=>{const _0x466b0e=_0x4984d5;_0x9c991e===_0x466b0e(0x2c7)&&typeof _0x43eebf==_0x466b0e(0x361)&&(_0x3ebb61[_0x9c991e]=_0x43eebf[_0x466b0e(0x13c)](/url\(#(.*)\)/,_0x466b0e(0x379)+_0x27f7ac['idSuffix']+')'));});const {defIds:_0xae31c6}=_0x27f7ac;return!_0xae31c6||_0xae31c6[_0x4984d5(0x353)]===0x0||(_0x1b5dc3[_0x4984d5(0x17a)]==='use'&&_0x3ebb61[_0x4984d5(0x359)]&&(_0x3ebb61[_0x4984d5(0x359)]=_0x3ebb61['xlink:href']+_0x27f7ac[_0x4984d5(0x150)]),Object['entries'](_0x3ebb61)[_0x4984d5(0x28a)](([_0x14249a,_0x5a1851])=>{const _0x5d7da6=_0x4984d5;typeof _0x5a1851==_0x5d7da6(0x361)&&(_0x3ebb61[_0x14249a]=_0x5a1851[_0x5d7da6(0x13c)](/url\(#(.*)\)/,_0x5d7da6(0x379)+_0x27f7ac[_0x5d7da6(0x150)]+')'));})),_0x3ebb61;}function Ei(_0x2e9084,_0x145a03){const _0x621d12=_0x2dfdce;var _0x4b24dd;const {defIds:_0x4335b4}=_0x145a03;return!_0x4335b4||_0x4335b4[_0x621d12(0x353)]===0x0?_0x2e9084:_0x2e9084[_0x621d12(0x17a)]===_0x621d12(0x1b6)&&((_0x4b24dd=_0x2e9084[_0x621d12(0x146)])!=null&&_0x4b24dd[_0x621d12(0x353)])?{..._0x2e9084,'children':_0x2e9084[_0x621d12(0x146)][_0x621d12(0x37a)](_0xd383e4=>typeof _0xd383e4[_0x621d12(0x1f9)]['id']==_0x621d12(0x361)&&_0x4335b4&&_0x4335b4[_0x621d12(0x155)](_0xd383e4['attrs']['id'])?{..._0xd383e4,'attrs':{..._0xd383e4[_0x621d12(0x1f9)],'id':_0xd383e4['attrs']['id']+_0x145a03[_0x621d12(0x150)]}}:_0xd383e4)}:_0x2e9084;}function vi(){const _0x1c7c77=_0x2dfdce;return Math[_0x1c7c77(0x194)]()['toString'](0x24)[_0x1c7c77(0x1a1)](0x2,0x8);}Ge[_0x2dfdce(0x360)]=_0x2dfdce(0x234);const pi={'tag':'svg','attrs':{'xmlns':_0x2dfdce(0x143),'fill':'none','viewBox':_0x2dfdce(0x173),'width':_0x2dfdce(0x26c),'height':_0x2dfdce(0x26c)},'children':[{'tag':'g','attrs':{'clipPath':_0x2dfdce(0x365)},'children':[{'tag':'path','attrs':{'stroke':_0x2dfdce(0x15b),'d':_0x2dfdce(0x230),'strokeLinecap':'round','strokeLinejoin':_0x2dfdce(0x21a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2dfdce(0x1c1),'attrs':{'id':_0x2dfdce(0x374)},'children':[{'tag':'path','attrs':{'fill':_0x2dfdce(0x1ba),'d':_0x2dfdce(0x272)}}]}]}],'defIds':[_0x2dfdce(0x374)]},Pt=_0x15b285(function(_0x4b4230,_0x261f92){const _0x2f7391=_0x2dfdce;return _0x376215(Ge,Object[_0x2f7391(0x347)]({},_0x4b4230,{'id':_0x2f7391(0x242),'ref':_0x261f92,'icon':pi}));});Pt['displayName']=_0x2dfdce(0x377);const Oi={'tag':_0x2dfdce(0x196),'attrs':{'xmlns':_0x2dfdce(0x143),'fill':'none','viewBox':_0x2dfdce(0x17f),'width':_0x2dfdce(0x26c),'height':_0x2dfdce(0x26c)},'children':[{'tag':'g','attrs':{'clipPath':_0x2dfdce(0x344)},'children':[{'tag':_0x2dfdce(0x163),'attrs':{'stroke':'currentColor','d':_0x2dfdce(0x2c5),'strokeLinecap':'round','strokeLinejoin':_0x2dfdce(0x21a),'strokeWidth':1.2}}]},{'tag':_0x2dfdce(0x1b6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2dfdce(0x1be)},'children':[{'tag':'path','attrs':{'fill':_0x2dfdce(0x1ba),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x2dfdce(0x1be)]},wt=_0x15b285(function(_0x427708,_0x4948e4){const _0x54a2e2=_0x2dfdce;return _0x376215(Ge,Object[_0x54a2e2(0x347)]({},_0x427708,{'id':_0x54a2e2(0x157),'ref':_0x4948e4,'icon':Oi}));});wt[_0x2dfdce(0x360)]='OnLineIcon';function Ti(_0x4b1ce5){const _0x254c99=_0x2dfdce;switch(_0x4b1ce5){case _0x3c389e[_0x254c99(0x15c)]:return'collabStatus.offline';case _0x3c389e[_0x254c99(0x26f)]:return _0x254c99(0x259);case _0x3c389e['FETCH_MISS']:return _0x254c99(0x314);case _0x3c389e['NOT_COLLAB']:return _0x254c99(0x32d);case _0x3c389e[_0x254c99(0x338)]:case _0x3c389e['AWAITING_WITH_PENDING']:return _0x254c99(0x301);case _0x3c389e[_0x254c99(0x21f)]:case _0x3c389e[_0x254c99(0x326)]:return _0x254c99(0x14e);}}function Ci(_0x38595f){const _0x5448e2=_0x2dfdce,{status$:_0xe5545d}=_0x38595f,_0xfb0ca8=_0x335b7e(_0xe5545d,_0x3c389e[_0x5448e2(0x16e)]),_0x7579e5=_0x1f91b2(_0x18855f),_0x5c5769=_0x1f91b2(_0x17121e),_0x37e488=_0xfb0ca8!==_0x3c389e['OFFLINE'],_0x196ba4=_0x7579e5['t'](Ti(_0xfb0ca8)),_0x520638=_0x37e488?_0x289ae7(wt,{}):_0x289ae7(Pt,{}),_0x291ffc=_0x2cb884(()=>{const _0x3e9a1f=_0x5448e2;_0x37e488||_0x5c5769[_0x3e9a1f(0x21e)]();},[_0x37e488,_0x5c5769]);function _0x56a296(){const _0x56d9b4=_0x5448e2;return _0x1f2ecc(_0x56d9b4(0x2bc),{'className':'univer-flex\x20univer-items-center','onClick':_0x291ffc,'children':[_0x289ae7(_0x56d9b4(0x2bc),{'className':_0x5d2d93(_0x56d9b4(0x2d1),{'univer-text-green-500':_0x37e488,'univer-text-red-500':!_0x37e488}),'children':_0x520638}),_0x289ae7(_0x56d9b4(0x2bc),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x196ba4})]});}return _0x37e488?_0x56a296():_0x289ae7(_0x724b4d,{'title':_0x7579e5['t'](_0x5448e2(0x1c8)),'children':_0x56a296()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x3eaf7d,_0x56600f,_0x476ce2,_0x4c233e)=>{const _0x413af0=_0x2dfdce;for(var _0x3c8055=_0x4c233e>0x1?void 0x0:_0x4c233e?Ri(_0x56600f,_0x476ce2):_0x56600f,_0x345508=_0x3eaf7d[_0x413af0(0x353)]-0x1,_0x528903;_0x345508>=0x0;_0x345508--)(_0x528903=_0x3eaf7d[_0x345508])&&(_0x3c8055=_0x528903(_0x3c8055)||_0x3c8055);return _0x3c8055;},se=(_0x477967,_0x404e22)=>(_0x37cfad,_0x54125c)=>_0x404e22(_0x37cfad,_0x54125c,_0x477967);let ae=class extends _0x105698{constructor(_0x6e2ff7,_0x3e8be5,_0x369c9c,_0x1b7592){const _0x21620a=_0x2dfdce;super(),_(this,_0x21620a(0x1e7),new _0x378dd0(_0x3c389e[_0x21620a(0x16e)])),(this['_univerInstanceService']=_0x6e2ff7,this[_0x21620a(0x1e0)]=_0x3e8be5,this['_collaborationController']=_0x369c9c,this[_0x21620a(0x2aa)]=_0x1b7592,this['_initStatusComponent'](),this[_0x21620a(0x1e5)]());}[_0x2dfdce(0x1e5)](){const _0x41e136=_0x2dfdce;this[_0x41e136(0x15d)](this['_univerInstanceService']['focused$']['pipe'](_0x518a55(()=>{const _0x25b60b=_0x41e136,_0x4d0792=this[_0x25b60b(0x29b)][_0x25b60b(0x1b9)]();return _0x4d0792?this[_0x25b60b(0x197)][_0x25b60b(0x1c5)](_0x4d0792[_0x25b60b(0x325)]()):_0x3ab1b5(null);}),_0x518a55(_0x339c65=>_0x339c65?_0x339c65['status$']:_0x3ab1b5(_0x3c389e[_0x41e136(0x16e)])))['subscribe'](_0x81488a=>{const _0x577801=_0x41e136;this[_0x577801(0x1e7)]['next'](_0x81488a);}));}['_initStatusComponent'](){const _0x2ed9ae=_0x2dfdce;this['disposeWithMe'](this['_uiPartsService'][_0x2ed9ae(0x30a)](_0x3777aa['HEADER_MENU'],()=>_0x2767af(Ni({'status$':this[_0x2ed9ae(0x1e7)][_0x2ed9ae(0x1a7)]()}),this[_0x2ed9ae(0x1e0)])));}};ae=Di([se(0x0,_0x3fdcd0),se(0x1,_0x80106c(_0x1993d7)),se(0x2,_0x80106c(_0x2101ad)),se(0x3,_0x75decf)],ae);function Ni(_0x5f44e3){const {status$:_0x48b579}=_0x5f44e3;return function(){return _0x289ae7(Ci,{'status$':_0x48b579});};}const yt=_0x3436bf(_0x2dfdce(0x32f));var bi=Object[_0x2dfdce(0x224)],Li=(_0x18b358,_0x1fa574,_0xb40bea,_0xa89edc)=>{const _0x233712=_0x2dfdce;for(var _0x3e5878=_0xa89edc>0x1?void 0x0:_0xa89edc?bi(_0x1fa574,_0xb40bea):_0x1fa574,_0x1e2d93=_0x18b358[_0x233712(0x353)]-0x1,_0x5eb01d;_0x1e2d93>=0x0;_0x1e2d93--)(_0x5eb01d=_0x18b358[_0x1e2d93])&&(_0x3e5878=_0x5eb01d(_0x3e5878)||_0x3e5878);return _0x3e5878;},K=(_0xfbd10e,_0x5edc7c)=>(_0x5f10f3,_0x3b2434)=>_0x5edc7c(_0x5f10f3,_0x3b2434,_0xfbd10e);let ce=class extends _0x2c39b3{constructor(_0x45e0b2,_0x5827ac,_0xef5e79,_0x480d48,_0xa0810e){const _0x1254cf=_0x2dfdce;super(),this[_0x1254cf(0x25f)]=_0x45e0b2,this[_0x1254cf(0x32e)]=_0x5827ac,this[_0x1254cf(0x348)]=_0xef5e79,this['_dataLoaderService']=_0x480d48,_0xa0810e?_0xa0810e==null||_0xa0810e[_0x1254cf(0x2f8)]()['then'](()=>this[_0x1254cf(0x187)]()):(this[_0x1254cf(0x32e)]['debug'](_0x1254cf(0x28f),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x1254cf(0x187)]());}async['_init'](){const _0x1a6f57=_0x2dfdce,_0x55adff=this['_urlService']['getParam'](_0x1a6f57(0x1ef)),_0x502a72=this[_0x1a6f57(0x25f)]['getParam'](_0x1a6f57(0x200)),_0x4dbcdc=this[_0x1a6f57(0x25f)][_0x1a6f57(0x262)]('subunit');if(!_0x55adff||!_0x502a72){this[_0x1a6f57(0x32e)][_0x1a6f57(0x1d8)](_0x1a6f57(0x28f),_0x1a6f57(0x2bd));return;}const _0x55a298=await this[_0x1a6f57(0x245)]['loadUnit'](_0x55adff,Number(_0x502a72),_0x4dbcdc);_0x55a298&&_0x55a298 instanceof _0x58677d&&this['_setupSubUnitSync'](_0x55a298);}async['_setupSubUnitSync'](_0x392837){const _0x4fcbd5=_0x2dfdce;await this[_0x4fcbd5(0x265)](_0x392837),_0x392837[_0x4fcbd5(0x304)]['pipe'](_0x1a23a3(this[_0x4fcbd5(0x35c)]))['subscribe'](_0xb60ff8=>{_0xb60ff8&&this['_updateURLWithCurrentState'](_0xb60ff8);}),this[_0x4fcbd5(0x25f)][_0x4fcbd5(0x14a)][_0x4fcbd5(0x1d7)](_0x1a23a3(this[_0x4fcbd5(0x35c)]))[_0x4fcbd5(0x26a)](()=>this[_0x4fcbd5(0x265)](_0x392837));}[_0x2dfdce(0x35e)](_0x3a03ac,_0x479a4d=!0x1){const _0x335ed9=_0x2dfdce,_0xf44bba=this['_urlService'][_0x335ed9(0x262)](_0x335ed9(0x305));_0x3a03ac[_0x335ed9(0x29f)]()!==_0xf44bba&&this[_0x335ed9(0x25f)][_0x335ed9(0x33b)](_0x335ed9(0x305),_0x3a03ac[_0x335ed9(0x29f)](),_0x479a4d);}async[_0x2dfdce(0x265)](_0x564f57){const _0x12f07c=_0x2dfdce;var _0x3a6884;const _0x1a4871=this[_0x12f07c(0x25f)][_0x12f07c(0x262)](_0x12f07c(0x305));if(!_0x1a4871||!_0x564f57['getSheetBySheetId'](_0x1a4871)){const _0x43e5c1=_0x564f57['getUnhiddenWorksheets']()[0x0],_0x19cc24=_0x564f57['getSheetBySheetId'](_0x43e5c1);if(!_0x19cc24)return;this[_0x12f07c(0x35e)](_0x19cc24,!0x0),await this[_0x12f07c(0x348)]['executeCommand'](_0x59ca2b['id'],{'unitId':_0x564f57['getUnitId'](),'subUnitId':_0x43e5c1});return;}((_0x3a6884=_0x564f57['getActiveSheet']())==null?void 0x0:_0x3a6884[_0x12f07c(0x29f)]())!==_0x1a4871&&await this[_0x12f07c(0x348)][_0x12f07c(0x209)](_0x59ca2b['id'],{'unitId':_0x564f57[_0x12f07c(0x325)](),'subUnitId':_0x1a4871});}};ce=Li([K(0x0,yt),K(0x1,_0x4b2474),K(0x2,_0x3e0249),K(0x3,_0x80106c(_0x5c1fef)),K(0x4,_0x5bfdee(_0x36739c))],ce);var Ui=Object[_0x2dfdce(0x224)],Mi=(_0x491533,_0x2cd500,_0x2e052a,_0x516935)=>{for(var _0x56f40d=_0x516935>0x1?void 0x0:_0x516935?Ui(_0x2cd500,_0x2e052a):_0x2cd500,_0x175ada=_0x491533['length']-0x1,_0x51b8e3;_0x175ada>=0x0;_0x175ada--)(_0x51b8e3=_0x491533[_0x175ada])&&(_0x56f40d=_0x51b8e3(_0x56f40d)||_0x56f40d);return _0x56f40d;},rt=(_0x1554bc,_0x4a516d)=>(_0xdc7e21,_0x39d4d0)=>_0x4a516d(_0xdc7e21,_0x39d4d0,_0x1554bc);let $e=class extends _0x2c39b3{constructor(_0x3a029d,_0x7c7c78){const _0x21b104=_0x2dfdce;super(),this[_0x21b104(0x350)]=_0x3a029d,this[_0x21b104(0x156)]=_0x7c7c78,this[_0x21b104(0x187)]();}['_init'](){const _0x30f332=_0x2dfdce,_0x4e9a40=this;this[_0x30f332(0x15d)](this[_0x30f332(0x350)][_0x30f332(0x33c)]({'onBeforePasteImage':async _0x107667=>{const _0x43027f=_0x30f332,_0x4a3017=await _0x4e9a40['_imageIoService']['saveImage'](_0x107667);return _0x4a3017?{'source':_0x4a3017['source'],'imageSourceType':_0x4a3017[_0x43027f(0x340)]}:null;}}));}};$e=Mi([rt(0x0,_0x5ce4b8),rt(0x1,_0x2f085b)],$e);const ot=[_0x2dfdce(0x2e6),_0x2dfdce(0x23d),'green.600',_0x2dfdce(0x202),_0x2dfdce(0x1e8),_0x2dfdce(0x1fd)];class Ke extends _0x105698{constructor(){const _0x35599e=_0x2dfdce;super(...arguments),_(this,_0x35599e(0x1da),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xdf70db){const _0x27012f=_0x2dfdce;if(this['_assignedColors'][_0x27012f(0x1f5)](_0xdf70db))return this[_0x27012f(0x1da)][_0x27012f(0x2ae)](_0xdf70db);const _0x559ac2=ot[this[_0x27012f(0x364)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%ot[_0x27012f(0x353)],this['_assignedColors'][_0x27012f(0x363)](_0xdf70db,_0x559ac2),_0x559ac2;}}function $t(_0x99dd2a){let _0x11aa24='';for(const _0xec28e7 of _0x99dd2a){const {startOffset:_0x6e337e,endOffset:_0xdc55f6,isActive:_0x4a716f,rangeType:_0x48cb00,segmentId:_0x147022,segmentPage:_0x3a8fda}=_0xec28e7;_0x11aa24['length']&&(_0x11aa24+=','),_0x11aa24+=_0x6e337e+':'+_0xdc55f6+':'+(_0x4a716f?'1':'0')+':'+_0x48cb00+':'+_0x147022+':'+_0x3a8fda;}return _0x11aa24;}function Ai(_0x4f3cb5){const _0x459b3f=_0x2dfdce,_0x47f0a6=_0x4f3cb5[_0x459b3f(0x311)](','),_0x33240b=[];for(const _0x1e0d22 of _0x47f0a6){const [_0x3d1c57,_0x2fa38d,_0x1c8817,_0x317def,_0x16d965,_0x42b199]=_0x1e0d22[_0x459b3f(0x311)](':');_0x33240b[_0x459b3f(0x239)]({'startOffset':Number(_0x3d1c57),'endOffset':Number(_0x2fa38d),'collapsed':_0x3d1c57===_0x2fa38d,'isActive':_0x1c8817==='1','rangeType':_0x317def===_0x4d6e44['TEXT']?_0x4d6e44[_0x459b3f(0x2a0)]:_0x4d6e44[_0x459b3f(0x30f)],'segmentId':typeof _0x16d965=='string'?String(_0x16d965):'','segmentPage':Number(_0x42b199!=null?_0x42b199:-0x1)});}return _0x33240b['some'](_0x4bf5ac=>_0x4bf5ac[_0x459b3f(0x1e2)])||(_0x33240b[0x0][_0x459b3f(0x1e2)]=!0x0),_0x33240b;}class ze extends _0x2c39b3{constructor(){const _0x181ee7=_0x2dfdce;super(...arguments),_(this,_0x181ee7(0x182),new _0x378dd0(null)),_(this,'collabCursorState$',this[_0x181ee7(0x182)][_0x181ee7(0x1a7)]());}[_0x2dfdce(0x302)](_0xbfcca0){const {unitID:_0x3e0d5d,memberID:_0x473b13,textRanges:_0x4ae1ce}=_0xbfcca0,_0x4d327b=$t(_0x4ae1ce);if(_0x4d327b==='')return;const _0x58b74={'unitID':_0x3e0d5d,'memberID':_0x473b13,'selection':_0x4d327b};this['_collabCursorState$']['next'](_0x58b74);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0xfe5e16,_0x81204f,_0x695918,_0x536f6e)=>{const _0x5a3bd6=_0x2dfdce;for(var _0x378dd2=_0x536f6e>0x1?void 0x0:_0x536f6e?Pi(_0x81204f,_0x695918):_0x81204f,_0x44e485=_0xfe5e16[_0x5a3bd6(0x353)]-0x1,_0x468a9e;_0x44e485>=0x0;_0x44e485--)(_0x468a9e=_0xfe5e16[_0x44e485])&&(_0x378dd2=_0x468a9e(_0x378dd2)||_0x378dd2);return _0x378dd2;},A=(_0x179a09,_0x365ca1)=>(_0x49d57e,_0xac9ea1)=>_0x365ca1(_0x49d57e,_0xac9ea1,_0x179a09);const yi=0x12c,$i=0x64;let xe=class extends _0x2c39b3{constructor(_0x728437,_0x47d591,_0x1d23a4,_0x5614e6,_0x4cdfd8,_0x432e08,_0x52c93f,_0x5d9f03,_0x7a4b55){const _0x305ce8=_0x2dfdce;super(),_(this,_0x305ce8(0x215),!0x1),_(this,_0x305ce8(0x187),!0x1),_(this,_0x305ce8(0x28b),new _0x378dd0(new Map())),_(this,'cursorInfo$',this[_0x305ce8(0x28b)]['asObservable']()),_(this,_0x305ce8(0x15f),new _0x378dd0([])),_(this,'roomMembers$',this['_roomMembers$'][_0x305ce8(0x1d7)](_0x50c53d(yi))),_(this,_0x305ce8(0x253),_0x3b08f0(_0x1c7e46=>{const _0x5c0ea3=_0x305ce8,_0x36c9ce={'eventID':_0x2a549a['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5c0ea3(0x2eb)][_0x5c0ea3(0x1b8)](),'selection':$t(_0x1c7e46)}};this[_0x5c0ea3(0x2eb)][_0x5c0ea3(0x252)](_0x36c9ce,this[_0x5c0ea3(0x211)]);},$i)),(this[_0x305ce8(0x211)]=_0x728437,this['_session']=_0x47d591,this[_0x305ce8(0x1e0)]=_0x1d23a4,this[_0x305ce8(0x214)]=_0x5614e6,this[_0x305ce8(0x352)]=_0x4cdfd8,this[_0x305ce8(0x321)]=_0x432e08,this[_0x305ce8(0x2d4)]=_0x52c93f,this[_0x305ce8(0x29b)]=_0x5d9f03,this[_0x305ce8(0x348)]=_0x7a4b55);}get['cursorInfo'](){const _0x258600=_0x2dfdce;return this[_0x258600(0x28b)][_0x258600(0x29e)]();}get['roomMembers'](){const _0x329951=_0x2dfdce;return this[_0x329951(0x15f)][_0x329951(0x29e)]();}[_0x2dfdce(0x322)](){const _0x3bc593=_0x2dfdce;super[_0x3bc593(0x322)](),this[_0x3bc593(0x28b)][_0x3bc593(0x351)](new Map()),this['_cursorInfo$'][_0x3bc593(0x2c3)](),this['_roomMembers$'][_0x3bc593(0x351)]([]),this[_0x3bc593(0x15f)]['complete']();}[_0x2dfdce(0x132)](){const _0x30fd68=_0x2dfdce;this[_0x30fd68(0x187)]||(this[_0x30fd68(0x187)]=!0x0,this[_0x30fd68(0x2eb)][_0x30fd68(0x331)][_0x30fd68(0x1d7)](_0x1a23a3(this[_0x30fd68(0x35c)]))[_0x30fd68(0x26a)](_0x5c4bd=>{const _0x1dc390=_0x30fd68;_0x5c4bd===_0xa5bb79['ONLINE']?this[_0x1dc390(0x2ee)]():this[_0x1dc390(0x2f0)]();}),this[_0x30fd68(0x2eb)]['event$']['pipe'](_0x1a23a3(this[_0x30fd68(0x35c)]))['subscribe'](_0x454067=>{const _0x2f5134=_0x30fd68,_0x33e3f1=_0x454067['eventID'];_0x33e3f1===_0x2a549a[_0x2f5134(0x1a0)]&&this[_0x2f5134(0x1d6)](_0x454067),_0x33e3f1===_0x2a549a[_0x2f5134(0x28c)]&&this[_0x2f5134(0x2f5)](_0x454067);}),this['disposeWithMe'](this['_commandService'][_0x30fd68(0x148)](_0x58f39f=>{const _0x278c9e=_0x30fd68,_0x2e546b=_0x58f39f['params'];_0x2e546b!=null&&this[_0x278c9e(0x215)]&&_0x58f39f['id']===_0x466907['id']&&_0x2e546b[_0x278c9e(0x1aa)]===this['unitID']&&_0x2e546b['isEditing']===!0x1&&_0x2e546b[_0x278c9e(0x2f4)][_0x278c9e(0x353)]>0x0&&this[_0x278c9e(0x253)](_0x2e546b['ranges']);})),this[_0x30fd68(0x321)][_0x30fd68(0x177)][_0x30fd68(0x1d7)](_0x1a23a3(this['dispose$']))[_0x30fd68(0x26a)](_0x86c760=>{const _0x43a458=_0x30fd68;if((_0x86c760==null?void 0x0:_0x86c760['unitID'])!==this[_0x43a458(0x211)])return;const _0x1133f0={'eventID':_0x2a549a['UPDATE_CURSOR'],'data':_0x86c760};this[_0x43a458(0x1d6)](_0x1133f0);}),this[_0x30fd68(0x15d)](this['_commandService'][_0x30fd68(0x148)](_0x1974b5=>{const _0x459ce8=_0x30fd68;if(_0x1974b5['params']==null)return;const _0x332f4f=_0x1974b5[_0x459ce8(0x240)];if(_0x1974b5['id']!==_0x549a5b['id']||_0x332f4f['unitId']!==this[_0x459ce8(0x211)])return;const _0x15562b={'id':_0x459ce8(0x1eb),'params':_0x332f4f},_0x3d22db=this[_0x459ce8(0x131)];for(const [_0xf25331,_0x55cdf4]of _0x3d22db){const _0x57f504={'id':_0x459ce8(0x1eb),'params':{'unitId':this[_0x459ce8(0x211)],'actions':null,'textRanges':_0x55cdf4[_0x459ce8(0x2f4)]}},_0xf6cb46=this[_0x459ce8(0x2d4)]['transformMutation'](_0x15562b,_0x57f504,!0x1);if(_0x3080a1(_0xf6cb46))throw _0xf6cb46['error'];_0x3d22db['set'](_0xf25331,{..._0x55cdf4,'ranges':_0xf6cb46['m2Prime'][_0x459ce8(0x240)][_0x459ce8(0x36f)]});}queueMicrotask(()=>{const _0x10019b=_0x459ce8;this[_0x10019b(0x28b)][_0x10019b(0x351)](_0x3d22db);});})));}['_onCursorUpdate'](_0x295ce8){const _0x244a43=_0x2dfdce;var _0x2b9a3c,_0x4ea782;const {memberID:_0xe0da75,selection:_0x4dbf13}=_0x295ce8['data'],_0x50e984=Ai(_0x4dbf13),_0x25b13c=(_0x4ea782=(_0x2b9a3c=this['_memberService']['getMember'](this[_0x244a43(0x211)],_0xe0da75))==null?void 0x0:_0x2b9a3c[_0x244a43(0x181)])!=null?_0x4ea782:_0x244a43(0x14b),_0x3c81f5={'color':this[_0x244a43(0x214)][_0x244a43(0x1ea)](_0xe0da75),'name':_0x25b13c,'ranges':_0x50e984},_0x2eedb2=this[_0x244a43(0x131)];_0x2eedb2[_0x244a43(0x363)](_0xe0da75,_0x3c81f5),this[_0x244a43(0x28b)]['next'](_0x2eedb2);}['_onCursorDelete'](_0x5e08c3){const _0xd59eb2=_0x2dfdce,{memberID:_0x251e3a}=_0x5e08c3[_0xd59eb2(0x362)],_0x234da2=this[_0xd59eb2(0x131)];_0x234da2[_0xd59eb2(0x271)](_0x251e3a),this[_0xd59eb2(0x28b)][_0xd59eb2(0x351)](_0x234da2);}[_0x2dfdce(0x2ee)](){const _0x328361=_0x2dfdce;var _0x31cd98;if(this[_0x328361(0x215)]=!0x0,((_0x31cd98=this[_0x328361(0x29b)][_0x328361(0x1b9)]())==null?void 0x0:_0x31cd98[_0x328361(0x325)]())!==this[_0x328361(0x211)])return;const _0x3c35b4=this[_0x328361(0x1e0)][_0x328361(0x2ae)](_0x122074)['getDocRanges']();Array['isArray'](_0x3c35b4)&&_0x3c35b4[_0x328361(0x353)]>0x0&&this[_0x328361(0x253)](_0x3c35b4);}[_0x2dfdce(0x2f0)](){const _0x26f8d4=_0x2dfdce;this[_0x26f8d4(0x215)]=!0x1;}};xe=wi([A(0x2,_0x80106c(_0x1993d7)),A(0x3,_0x80106c(Ke)),A(0x4,_0x80106c(_0x5a1494)),A(0x5,_0x80106c(ze)),A(0x6,_0xaca1db),A(0x7,_0x3fdcd0),A(0x8,_0x3e0249)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x54804a,_0x259b61,_0xda35f1,_0x156f17)=>{const _0x3602ec=_0x2dfdce;for(var _0x4d435a=_0x156f17>0x1?void 0x0:_0x156f17?xi(_0x259b61,_0xda35f1):_0x259b61,_0x536bbb=_0x54804a[_0x3602ec(0x353)]-0x1,_0xc553e9;_0x536bbb>=0x0;_0x536bbb--)(_0xc553e9=_0x54804a[_0x536bbb])&&(_0x4d435a=_0xc553e9(_0x4d435a)||_0x4d435a);return _0x4d435a;},B=(_0x4eaafd,_0x194d12)=>(_0x523472,_0x354177)=>_0x194d12(_0x523472,_0x354177,_0x4eaafd);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x8d7136=[],_0xe2b660=!0x1;return _0x4f9b79=>{const _0x54364b=_0x49dd;_0x8d7136[_0x54364b(0x239)](_0x4f9b79),_0xe2b660||(_0xe2b660=!0x0,setTimeout(()=>{const _0x34d512=_0x54364b;_0x8d7136[_0x34d512(0x28a)](_0xc62918=>_0xc62918()),_0x8d7136=[],_0xe2b660=!0x1;}));};};let Be=class extends _0x2c39b3{constructor(_0x5f3f8c,_0x167d0c,_0x50596c,_0x2ce996,_0x207b2a,_0x4b26f4,_0x56a80b,_0x44fdfa){const _0x511cb0=_0x2dfdce;super(),_(this,_0x511cb0(0x215),!0x1),_(this,'_init',!0x1),_(this,_0x511cb0(0x28b),new _0x378dd0(new Map())),_(this,_0x511cb0(0x144),this['_cursorInfo$'][_0x511cb0(0x1a7)]()),_(this,_0x511cb0(0x15f),new _0x378dd0([])),_(this,_0x511cb0(0x184),this[_0x511cb0(0x15f)][_0x511cb0(0x1d7)](_0x50c53d(Fi))),_(this,_0x511cb0(0x253),_0x3b08f0((_0x4ff046,_0x3223be)=>{const _0x1718cb=_0x511cb0,_0x5a2805={'eventID':_0x2a549a[_0x1718cb(0x1a0)],'data':{'unitID':this[_0x1718cb(0x211)],'memberID':this[_0x1718cb(0x2eb)][_0x1718cb(0x1b8)](),'selection':_0x29e02d(_0x4ff046,_0x3223be[_0x1718cb(0x247)])}};this[_0x1718cb(0x2eb)][_0x1718cb(0x252)](_0x5a2805,this[_0x1718cb(0x211)]);},ki)),(this['unitID']=_0x5f3f8c,this[_0x511cb0(0x2eb)]=_0x167d0c,this['_injector']=_0x50596c,this[_0x511cb0(0x214)]=_0x2ce996,this[_0x511cb0(0x352)]=_0x207b2a,this[_0x511cb0(0x29b)]=_0x4b26f4,this[_0x511cb0(0x348)]=_0x56a80b,this[_0x511cb0(0x19f)]=_0x44fdfa);}get[_0x2dfdce(0x131)](){const _0x55717b=_0x2dfdce;return this['_cursorInfo$'][_0x55717b(0x29e)]();}get[_0x2dfdce(0x2b8)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x5db534=_0x2dfdce;super[_0x5db534(0x322)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x5db534(0x2c3)](),this[_0x5db534(0x15f)][_0x5db534(0x351)]([]),this[_0x5db534(0x15f)][_0x5db534(0x2c3)]();}[_0x2dfdce(0x132)](){const _0x46294d=_0x2dfdce;this[_0x46294d(0x187)]||(this['_init']=!0x0,this[_0x46294d(0x2eb)][_0x46294d(0x331)][_0x46294d(0x1d7)](_0x1a23a3(this[_0x46294d(0x35c)]))[_0x46294d(0x26a)](_0xe57c32=>{const _0x2c8ed0=_0x46294d;_0xe57c32===_0xa5bb79[_0x2c8ed0(0x185)]?this[_0x2c8ed0(0x2ee)]():this[_0x2c8ed0(0x2f0)]();}),this[_0x46294d(0x2eb)][_0x46294d(0x250)][_0x46294d(0x1d7)](_0x1a23a3(this[_0x46294d(0x35c)]))[_0x46294d(0x26a)](_0x4c5b45=>{const _0x39488a=_0x46294d,_0x3a415b=_0x4c5b45[_0x39488a(0x284)];_0x3a415b===_0x2a549a[_0x39488a(0x1a0)]&&this[_0x39488a(0x1d6)](_0x4c5b45),_0x3a415b===_0x2a549a['USERS_LEAVE']&&this['_onCursorDelete'](_0x4c5b45);}),this[_0x46294d(0x31b)](),this[_0x46294d(0x15d)](this[_0x46294d(0x348)][_0x46294d(0x148)](_0xeb9fd6=>{const _0x518628=_0x46294d;if(this['_online']&&_0xeb9fd6['id']===_0x4bdbe0['id']&&_0xeb9fd6[_0x518628(0x240)][_0x518628(0x1aa)]===this[_0x518628(0x211)]){const _0x26917b=_0xeb9fd6[_0x518628(0x240)];this[_0x518628(0x253)](_0x26917b[_0x518628(0x1bd)],_0x26917b[_0x518628(0x1b3)][0x0]);}})));}['_onCursorUpdate'](_0x43a7fc){const _0x31cb11=_0x2dfdce;var _0x1ab284,_0x4b0e5c;const {memberID:_0x528dc0,selection:_0xd27dd1}=_0x43a7fc['data'],{sheetName:_0x3cc6af,range:_0x52f342}=_0x3be069(_0xd27dd1),_0xf02eb2={'name':(_0x4b0e5c=(_0x1ab284=this['_memberService'][_0x31cb11(0x18b)](this['unitID'],_0x528dc0))==null?void 0x0:_0x1ab284[_0x31cb11(0x181)])!=null?_0x4b0e5c:_0x31cb11(0x14b),'range':this[_0x31cb11(0x372)](_0x3cc6af,_0x52f342),'sheetID':_0x3cc6af,'color':this['_colorAssignService'][_0x31cb11(0x1ea)](_0x528dc0),'selection':_0xd27dd1},_0x3eb085=this[_0x31cb11(0x131)];_0x3eb085['set'](_0x528dc0,_0xf02eb2),this[_0x31cb11(0x28b)][_0x31cb11(0x351)](_0x3eb085);}[_0x2dfdce(0x2f5)](_0x2a5477){const _0x26eead=_0x2dfdce,{memberID:_0x4145a7}=_0x2a5477[_0x26eead(0x362)],_0x3e6b65=this[_0x26eead(0x131)];_0x3e6b65[_0x26eead(0x271)](_0x4145a7),this[_0x26eead(0x28b)][_0x26eead(0x351)](_0x3e6b65);}[_0x2dfdce(0x372)](_0x163b1f,_0x2389ed){const _0xc6da34=_0x2dfdce;var _0x217a75,_0x4e2636;const _0x4351e0=(_0x4e2636=(_0x217a75=this['_univerInstanceService']['getUniverSheetInstance'](this[_0xc6da34(0x211)]))==null?void 0x0:_0x217a75[_0xc6da34(0x178)](_0x163b1f))==null?void 0x0:_0x4e2636['getMergeData']();return(_0x4351e0==null?void 0x0:_0x4351e0['find'](_0x5daf9e=>_0x3ed2d3[_0xc6da34(0x2c2)](_0x5daf9e,_0x2389ed)))||_0x2389ed;}[_0x2dfdce(0x31b)](){const _0x198f80=_0x2dfdce,_0xf1e01e=new _0x4e3de0(),_0x3e9b01=Hi(),_0x54796f=()=>{const _0x2b9489=_0x49dd;_0xf1e01e[_0x2b9489(0x322)]();const _0x509530=(_0x9b9dbc,_0x40bd52,_0x92e791,_0x22314c)=>{const _0x3a17cb=_0x2b9489;let _0x410298=[];switch(_0x9b9dbc['id']){case _0x2e0ac8[_0x3a17cb(0x2e5)]:{_0x410298=_0x3a8573(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8['DeleteRangeMoveUpCommandId']:{_0x410298=_0x42ca04(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8[_0x3a17cb(0x25d)]:{_0x410298=_0x57fe14(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8['InsertRangeMoveDownCommandId']:{_0x410298=_0x506c5(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8['InsertRangeMoveRightCommandId']:{_0x410298=_0x6b88ec(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8[_0x3a17cb(0x2d8)]:{_0x410298=_0x8084dd(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8[_0x3a17cb(0x32a)]:{_0x410298=_0x2bd807(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8[_0x3a17cb(0x213)]:{_0x410298=_0x503f95(_0x9b9dbc,_0x22314c);break;}case _0x2e0ac8['RemoveRowCommandId']:{_0x410298=_0x1424d6(_0x9b9dbc,_0x22314c);break;}}const _0x55136c=_0x1d825d(_0x410298,_0x22314c),_0x2a8c7c=this[_0x3a17cb(0x131)][_0x3a17cb(0x2ae)](_0x40bd52);if(_0x2a8c7c&&_0x55136c){const _0x15a70a={..._0x2a8c7c,'range':_0x55136c};this[_0x3a17cb(0x131)][_0x3a17cb(0x363)](_0x40bd52,_0x15a70a),_0x3e9b01(()=>{const _0x25c62a=_0x3a17cb,_0x542002=this[_0x25c62a(0x19f)]['registerRefRange'](_0x55136c,_0x44413c=>(_0x542002['dispose'](),_0x509530(_0x44413c,_0x40bd52,_0x92e791,_0x55136c)));_0xf1e01e['add'](_0x542002);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x377bee,_0x22afd5)=>{const _0x7e3b19=_0x2b9489,{range:_0x17dc5c,sheetID:_0x1ba184}=_0x377bee,_0x1e1166=this[_0x7e3b19(0x19f)][_0x7e3b19(0x1ff)](_0x17dc5c,_0x23924d=>(_0x1e1166[_0x7e3b19(0x322)](),_0x509530(_0x23924d,_0x22afd5,_0x1ba184,_0x17dc5c)));_0xf1e01e[_0x7e3b19(0x257)](_0x1e1166);});};this[_0x198f80(0x15d)](_0x2e089f(this[_0x198f80(0x28b)][_0x198f80(0x26a)](()=>{_0x54796f();})));}[_0x2dfdce(0x2ee)](){const _0x5513cb=_0x2dfdce;var _0x479b17,_0x356e7d;if(this['_online']=!0x0,((_0x479b17=this[_0x5513cb(0x29b)][_0x5513cb(0x1b9)]())==null?void 0x0:_0x479b17['getUnitId']())!==this[_0x5513cb(0x211)])return;const _0x471fc6=(_0x356e7d=this[_0x5513cb(0x1e0)][_0x5513cb(0x2ae)](_0x3d4fe4)[_0x5513cb(0x172)]())==null?void 0x0:_0x356e7d[0x0],_0x470b1f=this[_0x5513cb(0x29b)][_0x5513cb(0x192)](_0x23000e[_0x5513cb(0x193)])[_0x5513cb(0x17c)]();_0x471fc6&&_0x470b1f&&this[_0x5513cb(0x253)](_0x470b1f[_0x5513cb(0x29f)](),_0x471fc6);}['_toggleOffline'](){const _0x5270a4=_0x2dfdce;this[_0x5270a4(0x215)]=!0x1;}};Be=Bi([B(0x2,_0x80106c(_0x1993d7)),B(0x3,_0x80106c(Ke)),B(0x4,_0x80106c(_0x5a1494)),B(0x5,_0x3fdcd0),B(0x6,_0x3e0249),B(0x7,_0x80106c(_0x23b83e))],Be);function _0xae42(){const _0x5b72f5=['unit','filename','_collaborationUIEventService','_cachedData','ALREADY_EXISTS','REDEMPTION_INVALID_CODE','has','REDEMPTION_USER_REDEEM_TIMES_EXCEED','popstate','605341taciNu','attrs','_releaseCalculationLimit','_context','key','yellow.400','_monkeyPatchLogService','registerRefRange','type','getformulaLimitStatusUrl','red.300','toRgbString','formula.calculation.waiting','defineProperty','getCollabCursors$','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','executeCommand','_unitStatus','_eventUnsubscribe','_getAnchorBounding','ENTITLE_INVALID_COUPON_CODE','_initUnhandledRejectionListener','resize','SOCKET_FAILED_RETRY','unitID','ENTITLE_CHAT_LIMIT_EXCEED','RemoveColCommandId','_colorAssignService','_online','_saveCache','336850wVbnAk','endRow','transformSelections','round','createSocket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collaboration.closeRoom','reconnect','SYNCED','_lastResponseTimestamp','_initCommandInterceptor','_setFormulaLimitStatus','_drawTextRange','getOwnPropertyDescriptor','from','getTypeOfUnitDisposed$','9341595eRfHRd','save','application/json','error','sheetID','startRow','8senENE','SNAPSHOT_INVALID_SNAPSHOT','addObject','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','setShapeProps','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','registerRenderModule','UniverIcon','setTimeout','EMAIL_HAS_BEEN_BOUND','_localStorageService','transformIMECache','push','_currentUsage','with','_docTransformStateCacheService','jiqing.500','_anchor','18008650MwxmCI','params','_memberID','off-line-icon','Warning','_doCreateSocket','_dataLoaderService','mutations','range','unload','[Window\x20Error]:\x20','LICENSE_DISTRO_REJECTED','getActiveRange','YUUMI_RATE_OVER_LIMIT','OTHER_CLIENT_EDITING','INVITE_CODE_REQUIRED','formula.calculation.unable','event$','_hideTimer','send','_updateLocalCursor','_initCommandExecutedListener','unsubscribe','_uploadLog','add','hovered','collabStatus.conflict','origin','setInterval','addEventListener','InsertColCommandId','INVITE_CODE_HAS_BEEN_UES','_urlService','UNDEFINED','APPLY_PERMISSION_DENIED','getParam','COMPLETION_FINISHED','Error','_updateSubUnitFromURLParams','_scheduleHeartbeat','_drawRectRange','_getFormulaLimitStatus','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','subscribe','_handleHover','1em','createInstance','YUUMI_ALL_TABLES_IS_INVALID','CONFLICT','Success','delete','M0\x200H16V16H0z','_refreshCollabCursors','loadOfflineData','colno','currentTheme$','_drawAnchor','PAYMENT_CHANNEL_NOT_SUPPORT','APPLY_DUPLICATED','subscribeEvent','result','15QunFHT','getStateCache','hide','ACTIVE_UNIT_EVENT_CHANNEL','catch','transform','row','_collabSessionService','eventID','_checkCalculationAvailable','rgba(255,\x20255,\x20255,\x200.01)','setAlpha','removeEventListener','min','forEach','_cursorInfo$','USERS_LEAVE','updateOfflineData','onMouseMove','[CollaborationDataLoaderController]','colorChannel1','84zSnEjx','/universer-api/license/formula/limit/start','session.connection-failed','_localeService','getSkeleton','_startSheetCollabCursor','getAncestorScale','findNodePositionByCharIndex','limitInfo','ENTITLE_INSUFFICIENT_QUOTA','_univerInstanceService','PERMISSION_DENIED','YUUMI_SUBSCRIPTION_NOT_FOUND','getValue','getSheetId','TEXT','[LogService\x20Error]:\x20','registerBeforeClose','CONNECTOR_DATA_TOO_LARGE','ENTITLE_CAN_NOT_BUY_LOWER_OTP','size','pluginName','YUUMI_AI_RUN_FAILED','LICENSE_EXPORT_SIZE_EXCEEDED','sheetId','_uiPartsService','getRenderById','href','actions','get','collab-text-range-','2009758QzupZf','_pollingInterval','_lastPointer','getRangePointData','MOBILE_VERIFY_CODE_MISMATCH','INVALID_INVITE_CODE','TOO_MANY_REQUESTS','onTransformChange$','roomMembers','fillStyle','enableFrontendLog','all','div','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_DOC','stage','setStateCache','REDEMPTION_CODE_HAS_BEEN_CREATED','contains','complete','enableLocalCache','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','_initEvent','mask','_transformHistoryAndStateStack','_scheduleSaving','NO_OTHER_CLIENTS_EDITING','getUnit','WECHAT_HAS_BEEN_BOUND','height','_registerDependencies','lineno','_name','univer-mr-2\x20univer-flex\x20univer-text-xl','_render','collab-rect-range-','_transformService','[Unhandled\x20Rejection]:\x20','now','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','InsertRowCommandId','START_CALCULATION','requireSession','getItem','_initEntityListener','_docTransformSelectionsService','shift','invokeId','_collabCursorController','REDEMPTION_CODE_NOT_STARTED','_cursor','_scheduleClearOtherTimer','LOGIN_TOKEN_PROCESSING_FAILED','DeleteRangeMoveLeftCommandId','purple.300','YUUMI_NO_CUBOID_FOR_QUESTION','_entityInit$','_handleHeartbeatEvent','MOBILE_HAS_BEEN_BOUND','_session','_backgroundColor','redoState','_toggleOnline','REDEMPTION_CODE_FULLY_REDEEMED','_toggleOffline','INVITE_CODE_ALREADY_BOUND','runId','APPLY_REVISION_CONFILICT','ranges','_onCursorDelete','fillRule','_instanceService','whenReady','_removeCollabCursors','current','INTERNAL_ERROR','_getScale','m1Prime','SOCKET_FAILED','startColumn','_color','collabStatus.syncing','syncEditingCollabCursor','_saveTaskMap','activeSheet$','subunit','getTypeOfUnitAdded$','?taskId=','VIEW_MAIN','black','registerComponent','_configService','bind','_renderManagerService','_localCacheService','RECT','_hover','split','moveTo','currentSkeleton$','collabStatus.fetchMiss','font','arc','getOffsetConfig','ENTITLE_DUP_SUBSCRIPTION','memberID','stringify','_onRefRangeChange','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','AUTHORIZE_CODE_ILLEGAL','_cursors','_scene','beginPath','_syncEditingCollabCursorService','dispose','deepClone','top','getUnitId','PENDING','ENTITLE_COUPON_USED_UP','USER_NOT_INVITED_CODE','ENTITLE_COUPON_EXPIRED','MoveRangeCommandId','_draw','onStarting','collabStatus.notCollab','_logService','uni.network.url-service','/run/','sessionStatus$','post','collaboration.offline-data-not-saved','setActiveRange','transformRemoteChangeset','LOGIN_FAILED','EMAIL_VERIFY_CODE_MISMATCH','AWAITING','_anchorDot','measureText','setParam','addClipboardHook','SUCCESS','permission.title','ERROR_AGAIN','imageSourceType','lineTo','collaboration.single-unit.warning','_taskIds','url(#on-line-icon_clip0_910_349)','SNAPSHOT_HAS_BEEN_REMOVED','makeDirty','assign','_commandService','_clearPolling','_docStateChangeManagerService','getUnitStatus$','_shapes','runOnServer','bottom','parseInt','_docClipboardService','next','_memberService','length','_startCalculationLimit','_revisionService','_collaborationSessionService','replaceState','UNRECOGNIZED','xlink:href','releaseFormulaLimitUrl','_hovered','dispose$','USER_NOT_FOUND','_updateURLWithCurrentState','INVALID_ARGUMENT','displayName','string','data','set','_colorIndex','url(#off-line-icon_clip0_910_343)','sessionTicket','message','_entities','setItem','transformMutationsWithChangeset','REDEMPTION_CODE_INACTIVE','undoState','functionsExecutedState','onPointerEnter$','textRanges','_getSessionTicket','LICENSE_IMPORT_SIZE_EXCEEDED','_getMergeRange','UNAUTHENTICATED','off-line-icon_clip0_910_343','CLOSE_ROOM','_getSaveTimeout','OffLineIcon','CHANGESET_REVISION_CONFILICT','url(#$1','map','_sheetSkeletonManagerService','body','cursorInfo','init','LICENSE_MAX_UNITS_EXCEEDED','then','_initDependencies','\x20at\x20','_cursorShapes','stageInfo','drawWith','USER_IS_ANONYMOUS','collaboration-client-ui.config','replace','fillText','_handleJoinEvent','color','endColumn','getConfig','transformStateCache','http://www.w3.org/2000/svg','cursorInfo$','setUndoRedoMutationParamsCache','children','/universer-api/license/formula/limit/status','onCommandExecuted','_initUserListener','urlChange$','Unknown\x20user','ENTITLE_USE_COUPON_NOT_1ST_TRADE','FromArray','collabStatus.synced','_labelPosition','idSuffix','fill','_beforeCloseService','_unitOnClients','_getSheetObject','includes','_imageIoService','on-line-icon','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_docSkeletonManagerService','reason','currentColor','OFFLINE','disposeWithMe','4452301gmOzXs','_roomMembers$','REDEMPTION_USER_NOT_ELIGIBLE','APPLY_NON_SEQUENTIAL_REVISION','_selfUnitIDs','path','permission.content','labelPosition','newValue','removeParam','text','trim','override','m2Prime','getVpScrollXYInfoByPosToVp','disposeUnit','NOT_COLLAB','selection','clearTimeout','_updateCollabCursors','getCurrentSelections','0\x200\x2016\x2016','_hasFormulaInDirtyRanges','ENTITLE_REPORT_LIMIT_EXCEED','/universer-api/frontend/logs','collabCursorState$','getSheetBySheetId','history','tag','_textBubble','getActiveSheet','getCurrent','show','0\x200\x2017\x2016','values','name','_collabCursorState$','restore','roomMembers$','ONLINE','_config','_init','DATA_SOURCE_TOO_LARGE','APPLY_REJECT','setConfig','getMember','univerjs-icon\x20univerjs-icon-','_registerRenderDependencies','_createSocketURL','_handleLeaveEvent','transformMutation','currentUsage','getCurrentUnitForType','UNIVER_SHEET','random','addObjects','svg','_collaborationController','_showGuardMessage','location','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getUndoRedoMutationParamsCache','_maxFormulaLimit','_range','_themeService','_refRangeService','UPDATE_CURSOR','substring','skeleton','unhandledrejection','_docSyncEditingCollabCursorService','_docTransformIMECacheService','_removeClearOtherTimer','asObservable','beforeCommandExecuted','_send','unitId','getDocRanges','onLocalMutation','column','YUUMI_ASYNCIO_CANCELLED','transformByState','code','getRelativeToViewportCoord','177308acZnxa','selections','getViewport','executionId','defs','onPointerMove$','getMemberID','getFocusedUnit','white','getColorFromTheme','_heartbeatTimer','subUnitId','on-line-icon_clip0_910_349','exhaustSavingTask','_disabled','clipPath','totalFormulasToCalculate','_messageService','evenodd','getCollabEntity$','_startDocCollabCursor','Failed','collab-client.tooltip.reconnect','ENSURE_SNAPSHOT_EXECUTION','searchParams','_clearOtherTimers','_ensureSubject','_checkAndWaitForCalculationPermission','search','isArray','_handleEvent','saveTaskMap','YUUMI_UNABLE_LOAD_URL','_id','unshift','width','_onCursorUpdate','pipe','debug','clearInterval','_assignedColors','_initResize','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','toString','editingUnit','max','_injector','addHandlerCallback','isActive','_transformPreviousActiveRange','_httpService','_initStatusListener','_initWindowErrorListener','_status$','blue.400','NOT_FOUND','assignAColorForMemberID','doc.mutation.rich-text-editing','storage','#FFF','session.collaboration-timeout'];_0xae42=function(){return _0x5b72f5;};return _0xae42();}var Yi=Object[_0x2dfdce(0x224)],Wi=(_0x4e9bfc,_0x561fd8,_0x1880ef,_0x50fd3)=>{const _0x145305=_0x2dfdce;for(var _0x42bedc=_0x50fd3>0x1?void 0x0:_0x50fd3?Yi(_0x561fd8,_0x1880ef):_0x561fd8,_0x4fae23=_0x4e9bfc[_0x145305(0x353)]-0x1,_0x51f2ee;_0x4fae23>=0x0;_0x4fae23--)(_0x51f2ee=_0x4e9bfc[_0x4fae23])&&(_0x42bedc=_0x51f2ee(_0x42bedc)||_0x42bedc);return _0x42bedc;},Ce=(_0x518e2e,_0x1b63b3)=>(_0x5a3860,_0x1bba25)=>_0x1b63b3(_0x5a3860,_0x1bba25,_0x518e2e);let H=class extends _0x2c39b3{constructor(_0x25e6b2,_0x493f79,_0x4c2f55){const _0x4549df=_0x2dfdce;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x3794ad()),(this[_0x4549df(0x29b)]=_0x25e6b2,this[_0x4549df(0x1e0)]=_0x493f79,this[_0x4549df(0x283)]=_0x4c2f55,this[_0x4549df(0x187)]());}['dispose'](){const _0x5454a7=_0x2dfdce;super[_0x5454a7(0x322)](),this[_0x5454a7(0x2e8)]['complete'](),this[_0x5454a7(0x368)][_0x5454a7(0x28a)](_0x33c896=>_0x33c896[_0x5454a7(0x322)]());}[_0x2dfdce(0x206)](_0x5ba714){const _0x170856=_0x2dfdce;return this[_0x170856(0x368)][_0x170856(0x1f5)](_0x5ba714)?this[_0x170856(0x368)][_0x170856(0x2ae)](_0x5ba714)[_0x170856(0x144)]:this[_0x170856(0x2e8)][_0x170856(0x1d7)](_0x19b66b(_0xe1993e=>_0xe1993e['unitID']===_0x5ba714),_0x518a55(_0x1352e2=>_0x1352e2[_0x170856(0x144)]));}[_0x2dfdce(0x187)](){const _0x2ff45b=_0x2dfdce;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x23000e[_0x2ff45b(0x193)])[_0x2ff45b(0x1d7)](_0x1a23a3(this[_0x2ff45b(0x35c)]))[_0x2ff45b(0x26a)](async _0x18fcd1=>{const _0x2c908d=_0x2ff45b,_0x3a42a8=_0x18fcd1[_0x2c908d(0x325)](),_0xf10a73=await this[_0x2c908d(0x296)](_0x3a42a8);this[_0x2c908d(0x2e8)][_0x2c908d(0x351)](_0xf10a73),this[_0x2c908d(0x368)][_0x2c908d(0x363)](_0x3a42a8,_0xf10a73);}),this[_0x2ff45b(0x29b)][_0x2ff45b(0x306)](_0x23000e[_0x2ff45b(0x2be)])['pipe'](_0x1a23a3(this[_0x2ff45b(0x35c)]))[_0x2ff45b(0x1d7)](_0x19b66b(_0x547256=>!_0x547256[_0x2ff45b(0x325)]()['startsWith']('__')))[_0x2ff45b(0x26a)](async _0x3a8678=>{const _0x52ac07=_0x2ff45b,_0x519f92=_0x3a8678['getUnitId'](),_0x40b57d=await this[_0x52ac07(0x1c6)](_0x519f92);this[_0x52ac07(0x2e8)][_0x52ac07(0x351)](_0x40b57d),this[_0x52ac07(0x368)]['set'](_0x519f92,_0x40b57d);}),_0x5b020e(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x23000e[_0x2ff45b(0x2be)]),this[_0x2ff45b(0x29b)][_0x2ff45b(0x226)](_0x23000e[_0x2ff45b(0x193)]))[_0x2ff45b(0x1d7)](_0x1a23a3(this[_0x2ff45b(0x35c)]))['subscribe'](_0x4a625f=>{const _0x1e46a8=_0x2ff45b,_0x34aed0=_0x4a625f[_0x1e46a8(0x325)](),_0x484bad=this['_entities'][_0x1e46a8(0x2ae)](_0x34aed0);_0x484bad&&(_0x484bad[_0x1e46a8(0x322)](),this[_0x1e46a8(0x368)][_0x1e46a8(0x271)](_0x34aed0));});}async['_startSheetCollabCursor'](_0x1fea47){const _0x1c33cd=_0x2dfdce,_0x566bc0=await this[_0x1c33cd(0x283)][_0x1c33cd(0x2da)](_0x1fea47),_0x232ae1=this['_injector'][_0x1c33cd(0x26d)](Be,_0x1fea47,_0x566bc0);return _0x232ae1[_0x1c33cd(0x132)](),_0x232ae1;}async[_0x2dfdce(0x1c6)](_0x178307){const _0x162f41=_0x2dfdce,_0x4f9621=await this[_0x162f41(0x283)][_0x162f41(0x2da)](_0x178307),_0x266bc5=this['_injector']['createInstance'](xe,_0x178307,_0x4f9621);return _0x266bc5[_0x162f41(0x132)](),_0x266bc5;}};H=Wi([Ce(0x0,_0x3fdcd0),Ce(0x1,_0x80106c(_0x1993d7)),Ce(0x2,_0x80106c(_0x17121e))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x44e8c0,_0x1da29f){const _0x1e922f=_0x2dfdce;let {radius:_0xa8bbd0,width:_0x4a75dd,height:_0xc97924}=_0x1da29f;_0xa8bbd0=_0xa8bbd0!=null?_0xa8bbd0:0x0,_0x4a75dd=_0x4a75dd!=null?_0x4a75dd:0x1e,_0xc97924=_0xc97924!=null?_0xc97924:0x1e;let _0x33c9a2=0x0,_0x51ffbf=0x0,_0xa734b0=0x0;_0x33c9a2=_0x51ffbf=_0xa734b0=Math[_0x1e922f(0x289)](_0xa8bbd0,_0x4a75dd/0x2,_0xc97924/0x2),_0x44e8c0[_0x1e922f(0x320)](),_0x44e8c0[_0x1e922f(0x312)](_0x33c9a2,0x0),_0x44e8c0[_0x1e922f(0x341)](_0x4a75dd-_0x51ffbf,0x0),_0x44e8c0[_0x1e922f(0x316)](_0x4a75dd-_0x51ffbf,_0x51ffbf,_0x51ffbf,Math['PI']*0x3/0x2,0x0,!0x1),_0x44e8c0[_0x1e922f(0x341)](_0x4a75dd,_0xc97924-_0xa734b0),_0x44e8c0['arc'](_0x4a75dd-_0xa734b0,_0xc97924-_0xa734b0,_0xa734b0,0x0,Math['PI']/0x2,!0x1),_0x44e8c0[_0x1e922f(0x341)](0x0,_0xc97924),_0x44e8c0[_0x1e922f(0x341)](0x0,_0x33c9a2),_0x44e8c0[_0x1e922f(0x316)](_0x33c9a2,_0x33c9a2,_0x33c9a2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x44e8c0['closePath'](),_0x1da29f[_0x1e922f(0x151)]&&(_0x44e8c0['save'](),_0x44e8c0[_0x1e922f(0x2b9)]=_0x1da29f['fill'],_0x1da29f[_0x1e922f(0x2f6)]===_0x1e922f(0x1c4)?_0x44e8c0[_0x1e922f(0x151)](_0x1e922f(0x1c4)):_0x44e8c0[_0x1e922f(0x151)](),_0x44e8c0[_0x1e922f(0x183)]());}class ve extends _0x463a40{constructor(_0x1dec06,_0x319ffe){const _0x3442b7=_0x2dfdce;super(_0x1dec06,_0x319ffe),_(this,_0x3442b7(0x13f)),_(this,_0x3442b7(0x168)),(this[_0x3442b7(0x13f)]=_0x319ffe==null?void 0x0:_0x319ffe[_0x3442b7(0x13f)],this[_0x3442b7(0x168)]=_0x319ffe==null?void 0x0:_0x319ffe[_0x3442b7(0x168)]);}static[_0x2dfdce(0x139)](_0x168eb9,_0x45815a){const _0x3a28a9=_0x2dfdce,{text:_0x3ccc9f,color:_0x325e12}=_0x45815a;_0x168eb9[_0x3a28a9(0x228)](),_0x168eb9[_0x3a28a9(0x315)]=_0x3a28a9(0x232);const _0x45bb68=_0x168eb9[_0x3a28a9(0x33a)](_0x3ccc9f)[_0x3a28a9(0x1d5)],_0x107631=Math[_0x3a28a9(0x289)](_0x45bb68+0x2*Re,at);ji(_0x168eb9,{'height':Q,'radius':0x4,'width':_0x107631,'fill':_0x325e12}),_0x168eb9[_0x3a28a9(0x2b9)]=_0x3a28a9(0x1ed);const _0x1f9781=Re,_0x4049c7=Q-Vi,_0x125228=at-0x2*Re;if(_0x45bb68>_0x125228){let _0x3a05d5='',_0x5dd3d0=0x0;for(const _0x214188 of _0x3ccc9f){const _0x2ca274=_0x168eb9[_0x3a28a9(0x33a)](_0x214188)['width'];if(_0x5dd3d0+_0x2ca274<=_0x125228-_0x168eb9['measureText']('...')[_0x3a28a9(0x1d5)])_0x3a05d5+=_0x214188,_0x5dd3d0+=_0x2ca274;else{_0x3a05d5+='...';break;}}_0x168eb9['fillText'](_0x3a05d5,_0x1f9781,_0x4049c7);}else _0x168eb9[_0x3a28a9(0x13d)](_0x3ccc9f,_0x1f9781,_0x4049c7);_0x168eb9[_0x3a28a9(0x183)]();}[_0x2dfdce(0x32b)](_0x22d72f){const _0x12d6f9=_0x2dfdce;ve[_0x12d6f9(0x139)](_0x22d72f,this);}}const De='collab-text-anchor-',Xi=_0x2dfdce(0x2af),Gi=_0x2dfdce(0x2d3),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x2dfdce(0x286);class ct{constructor(_0x3d7ba5,_0x5a7cde,_0x5b99c7,_0xbd8a7e){const _0x17e68f=_0x2dfdce;_(this,_0x17e68f(0x34c),[]),_(this,_0x17e68f(0x23e),null),_(this,_0x17e68f(0x17b),null),_(this,'_anchorDot',null),_(this,_0x17e68f(0x251),null),_(this,_0x17e68f(0x20b),null),(this['_cursor']=_0x3d7ba5,this['_scene']=_0x5a7cde,this['_docSkeleton']=_0x5b99c7,this['_document']=_0xbd8a7e,this[_0x17e68f(0x2d2)]());}set[_0x2dfdce(0x310)](_0x148022){const _0x3552a0=_0x2dfdce;_0x148022?(this[_0x3552a0(0x339)]&&this[_0x3552a0(0x339)]['hide'](),this[_0x3552a0(0x17b)]&&this[_0x3552a0(0x17b)][_0x3552a0(0x17e)]()):(this[_0x3552a0(0x339)]&&this[_0x3552a0(0x339)][_0x3552a0(0x17e)](),this[_0x3552a0(0x17b)]&&this[_0x3552a0(0x17b)][_0x3552a0(0x27e)]());}['dispose'](){const _0x571a13=_0x2dfdce;for(const _0x18a31b of this[_0x571a13(0x34c)])_0x18a31b['dispose']();this[_0x571a13(0x17b)]&&this[_0x571a13(0x17b)]['dispose'](),this[_0x571a13(0x339)]&&this['_anchorDot'][_0x571a13(0x322)](),this['_anchor']&&this[_0x571a13(0x23e)]['dispose'](),this[_0x571a13(0x20b)]&&this[_0x571a13(0x20b)]();}[_0x2dfdce(0x2d2)](){const _0x23b65a=_0x2dfdce;var _0xebed2b;const {_docSkeleton:_0x1ceac1,_document:_0x24cdf9}=this,{color:_0xe5c923,name:_0x375547,ranges:_0xf1b7e0}=this[_0x23b65a(0x2e2)],_0xe22954=_0x24cdf9[_0x23b65a(0x317)](),{docsLeft:_0x4c22c2,docsTop:_0x4f19aa}=_0xe22954,_0x9dc198=new _0x3b62c2(_0xe22954,_0x1ceac1);for(const {startOffset:_0x3d722c,endOffset:_0x24ba0a,rangeType:_0x6e3fd1,segmentId:_0x17323c,segmentPage:_0x277b54,collapsed:_0x36e738,isActive:_0x2a7e17}of _0xf1b7e0){const _0x71ca67=_0x1ceac1[_0x23b65a(0x298)](_0x3d722c,!0x0,_0x17323c,_0x277b54);let _0x45ad31=_0x1ceac1[_0x23b65a(0x298)](_0x24ba0a,!0x0,_0x17323c,_0x277b54);if(_0x45ad31==null&&(_0x45ad31=_0x1ceac1[_0x23b65a(0x298)](_0x24ba0a-0x1,!0x1,_0x17323c,_0x277b54)),_0x2a7e17){const {contentBoxPointGroup:_0x522e78}=_0x9dc198[_0x23b65a(0x2b3)](_0x45ad31,_0x45ad31);if(_0x522e78[_0x23b65a(0x353)]===0x0)continue;this[_0x23b65a(0x277)](_0xe5c923,_0x522e78,_0x4c22c2,_0x4f19aa,_0x375547),this[_0x23b65a(0x20b)]=this[_0x23b65a(0x26b)]();}if(_0x71ca67&&_0x45ad31){if(_0x6e3fd1===_0x4d6e44[_0x23b65a(0x30f)]){const _0xd64da3=new _0x4609b6(_0xe22954,_0x1ceac1),{pointGroup:_0x5568a4}=(_0xebed2b=_0xd64da3[_0x23b65a(0x2b3)](_0x71ca67,_0x45ad31))!=null?_0xebed2b:{};if(_0x5568a4==null||_0x5568a4[_0x23b65a(0x353)]===0x0)continue;this[_0x23b65a(0x267)](_0xe5c923,_0x5568a4,_0x4c22c2,_0x4f19aa);}else{if(!_0x36e738){const {borderBoxPointGroup:_0x21c5f3}=_0x9dc198['getRangePointData'](_0x71ca67,_0x45ad31);if(_0x21c5f3[_0x23b65a(0x353)]===0x0)continue;this['_drawTextRange'](_0xe5c923,_0x21c5f3,_0x4c22c2,_0x4f19aa);}}}}}[_0x2dfdce(0x277)](_0x490727,_0x39b7f9,_0x355d1d,_0xf883da,_0x52a9e6){const _0x1c179b=_0x2dfdce,_0x3c7c80=this['_getAnchorBounding'](_0x39b7f9),{left:_0x5277a7,top:_0x38e82b,height:_0x5292d4}=_0x3c7c80,_0x4148e0=this[_0x1c179b(0x2fc)](),_0x16de2a=zi/_0x4148e0,_0x39f6e3=new _0x426ed1(De+_0x5c1be5(z),{'left':_0x5277a7+_0x355d1d-_0x16de2a,'top':_0x38e82b+_0xf883da,'height':_0x5292d4,'width':Ki,'fill':_0x490727||_0x3a014e(_0x2beb18[_0x1c179b(0x309)],0x0),'strokeWidth':_0x16de2a,'stroke':Ji,'evented':!0x0});this[_0x1c179b(0x23e)]=_0x39f6e3,this['_scene'][_0x1c179b(0x22f)](_0x39f6e3,_0xc94a81);const _0x306885=new _0x426ed1(De+_0x5c1be5(z),{'left':_0x5277a7+_0x355d1d-_0x16de2a,'top':_0x38e82b+_0xf883da-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x490727||_0x3a014e(_0x2beb18['black'],0x0),'strokeWidth':0x0,'stroke':_0x490727||_0x3a014e(_0x2beb18[_0x1c179b(0x309)],0x0),'evented':!0x1});this[_0x1c179b(0x339)]=_0x306885,this['_scene'][_0x1c179b(0x22f)](_0x306885,_0xc94a81);const _0x1d1482=new ve(De+_0x5c1be5(z),{'left':_0x5277a7+_0x355d1d-_0x16de2a,'top':_0x38e82b+_0xf883da-Q,'text':_0x52a9e6,'color':_0x490727});this[_0x1c179b(0x17b)]=_0x1d1482,this[_0x1c179b(0x31f)][_0x1c179b(0x22f)](_0x1d1482,_0xc94a81),this[_0x1c179b(0x310)]=!0x1;}[_0x2dfdce(0x26b)](){const _0x1068f8=_0x2dfdce,_0x45636e=this['_anchor'][_0x1068f8(0x36e)][_0x1068f8(0x27a)](()=>{this['_hover']=!0x0;}),_0x4ae600=this[_0x1068f8(0x23e)]['onPointerLeave$'][_0x1068f8(0x27a)](()=>{const _0x3d7727=_0x1068f8;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3d7727(0x251)]=setTimeout(()=>{const _0x28d399=_0x3d7727;this[_0x28d399(0x310)]=!0x1;},0x7d0);});return()=>{const _0xcc2df4=_0x1068f8;_0x45636e[_0xcc2df4(0x255)](),_0x4ae600[_0xcc2df4(0x255)]();};}[_0x2dfdce(0x223)](_0x18280b,_0x3cd138,_0x1ac099,_0x235350){const _0x519ca6=_0x2dfdce,_0x2d278a=new _0x1ad57e(_0x18280b)[_0x519ca6(0x287)](0.2)[_0x519ca6(0x203)](),_0x29a44a=new _0x1390d8(Xi+_0x5c1be5(z),{'pointsGroup':_0x3cd138,'fill':_0x2d278a||_0x3a014e(_0x2beb18[_0x519ca6(0x309)],0.2),'left':_0x1ac099,'top':_0x235350,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x519ca6(0x34c)][_0x519ca6(0x239)](_0x29a44a),this[_0x519ca6(0x31f)][_0x519ca6(0x22f)](_0x29a44a,_0xc94a81);}[_0x2dfdce(0x267)](_0x5032b9,_0x22d7c6,_0x408b1f,_0x4a9863){const _0x1a9440=_0x2dfdce,_0x40ae51=new _0x1ad57e(_0x5032b9)[_0x1a9440(0x287)](0.2)[_0x1a9440(0x203)](),_0x365ee7=new _0x1390d8(Gi+_0x5c1be5(z),{'pointsGroup':_0x22d7c6,'fill':_0x40ae51||_0x3a014e(_0x2beb18[_0x1a9440(0x309)],0.2),'left':_0x408b1f,'top':_0x4a9863,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a9440(0x34c)][_0x1a9440(0x239)](_0x365ee7),this[_0x1a9440(0x31f)][_0x1a9440(0x22f)](_0x365ee7,_0xc94a81);}[_0x2dfdce(0x20c)](_0x4bb899){const _0x26c544=_0x4bb899[0x0],_0x1c6884=_0x26c544[0x0],_0x5e3cc5=_0x26c544[0x2],{x:_0x47ff29,y:_0x558385}=_0x1c6884,{x:_0x479421,y:_0x33831a}=_0x5e3cc5;return{'left':_0x47ff29,'top':_0x558385,'width':_0x479421-_0x47ff29,'height':_0x33831a-_0x558385};}[_0x2dfdce(0x2fc)](){const _0x3a46a3=_0x2dfdce,{scaleX:_0x4b00d1,scaleY:_0xecc6e}=this[_0x3a46a3(0x31f)][_0x3a46a3(0x297)]();return Math[_0x3a46a3(0x1df)](_0x4b00d1,_0xecc6e);}}var Zi=Object[_0x2dfdce(0x224)],Qi=(_0x59a6ec,_0x37018e,_0x10562d,_0x465226)=>{const _0x3c6804=_0x2dfdce;for(var _0x13d36f=_0x465226>0x1?void 0x0:_0x465226?Zi(_0x37018e,_0x10562d):_0x37018e,_0x40900e=_0x59a6ec[_0x3c6804(0x353)]-0x1,_0x16403f;_0x40900e>=0x0;_0x40900e--)(_0x16403f=_0x59a6ec[_0x40900e])&&(_0x13d36f=_0x16403f(_0x13d36f)||_0x13d36f);return _0x13d36f;},ie=(_0x491dd1,_0x36a8c9)=>(_0x5783c0,_0x4ca07f)=>_0x36a8c9(_0x5783c0,_0x4ca07f,_0x491dd1);let Fe=class extends _0x2c39b3{constructor(_0x125a7f,_0x5315d4,_0x20b941,_0x57b2fe,_0x5ca9b0){const _0x3e4c76=_0x2dfdce;super(),_(this,_0x3e4c76(0x137),[]),_(this,'_cursors',[]),(this[_0x3e4c76(0x1fb)]=_0x125a7f,this[_0x3e4c76(0x159)]=_0x5315d4,this[_0x3e4c76(0x2e0)]=_0x20b941,this[_0x3e4c76(0x348)]=_0x57b2fe,this['_themeService']=_0x5ca9b0,this[_0x3e4c76(0x187)]());}['_init'](){const _0x25d176=_0x2dfdce,_0x247c57=this[_0x25d176(0x1fb)][_0x25d176(0x1aa)],_0x3290cd=this[_0x25d176(0x159)];this[_0x25d176(0x15d)](_0xac5457([this[_0x25d176(0x2e0)]['getCollabCursors$'](_0x247c57),this[_0x25d176(0x19e)][_0x25d176(0x276)]])[_0x25d176(0x1d7)](_0x4656fe(([_0x2e3a3e,_0x4ef7d8])=>({'skeleton':_0x3290cd['getSkeleton'](),'cursors':[..._0x2e3a3e[_0x25d176(0x180)]()]['flatMap'](_0x44da39=>({..._0x44da39,'color':this[_0x25d176(0x19e)][_0x25d176(0x1bb)](_0x44da39[_0x25d176(0x13f)])}))})))[_0x25d176(0x26a)](_0x45a22a=>{const _0x3c5ca6=_0x25d176;if(this['_removeCollabCursors'](),_0x45a22a){const {skeleton:_0x10b04c,cursors:_0x205717}=_0x45a22a;this[_0x3c5ca6(0x171)](_0x10b04c,_0x205717);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2dfdce(0x171)](_0x3d69b6,_0x4f5a02){const _0x10515a=_0x2dfdce,{scene:_0x46efb9,mainComponent:_0x2d1316}=this[_0x10515a(0x1fb)],_0x5efa55=_0x4f5a02['map'](_0x15fbe8=>new ct(_0x15fbe8,_0x46efb9,_0x3d69b6,_0x2d1316));this[_0x10515a(0x137)]=_0x5efa55,this['_cursors']=_0x4f5a02;}[_0x2dfdce(0x273)](){const _0x3f8ed0=_0x2dfdce;this[_0x3f8ed0(0x2f9)]();const {scene:_0x171b95,mainComponent:_0x1c044e}=this[_0x3f8ed0(0x1fb)],_0x5ce1fa=this[_0x3f8ed0(0x159)][_0x3f8ed0(0x295)](),_0x549770=this[_0x3f8ed0(0x31e)][_0x3f8ed0(0x37a)](_0x29a6a1=>new ct(_0x29a6a1,_0x171b95,_0x5ce1fa,_0x1c044e));this[_0x3f8ed0(0x137)]=_0x549770;}[_0x2dfdce(0x2f9)](){const _0x48f5c7=_0x2dfdce;this['_cursorShapes'][_0x48f5c7(0x28a)](_0x24768a=>_0x24768a[_0x48f5c7(0x322)]()),this[_0x48f5c7(0x137)]=[];}[_0x2dfdce(0x254)](){const _0x218c1f=_0x2dfdce,_0x57f1f7=[_0x3ae58d['id']];this['disposeWithMe'](this[_0x218c1f(0x348)]['onCommandExecuted'](_0x15f9db=>{const _0x1a8d1e=_0x218c1f;_0x57f1f7['includes'](_0x15f9db['id'])&&_0x15f9db[_0x1a8d1e(0x240)][_0x1a8d1e(0x1aa)]===this[_0x1a8d1e(0x1fb)]['unitId']&&this[_0x1a8d1e(0x273)]();}));}[_0x2dfdce(0x1db)](){const _0x43f2fc=_0x2dfdce;this[_0x43f2fc(0x15d)](_0x35594e(this['_context']['engine'][_0x43f2fc(0x2b7)])[_0x43f2fc(0x1d7)](_0x28dc55(_0x5e1f5e=>_0x5e1f5e[_0x43f2fc(0x200)]===_0x4d7ed4[_0x43f2fc(0x20f)]),_0x520f68(0x10))['subscribe'](()=>{const _0x2925c1=_0x43f2fc;this[_0x2925c1(0x273)]();}));}};Fe=Qi([ie(0x1,_0x80106c(_0x227ed8)),ie(0x2,_0x80106c(H)),ie(0x3,_0x3e0249),ie(0x4,_0x80106c(_0x318911))],Fe);const qi=0x1,en=1.5;class tn extends _0x463a40{constructor(_0x43d57e,_0x42323c){const _0x36697e=_0x2dfdce;super(_0x43d57e,_0x42323c),_(this,_0x36697e(0x300)),_(this,_0x36697e(0x35b),!0x1),_(this,_0x36697e(0x19d)),_(this,'_name',''),_(this,_0x36697e(0x14f),_0x36697e(0x324)),_(this,_0x36697e(0x2ec)),(_0x42323c&&this[_0x36697e(0x231)](_0x42323c),this[_0x36697e(0x36e)][_0x36697e(0x27a)](()=>this[_0x36697e(0x231)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x36697e(0x231)]({'hovered':!0x1})));}[_0x2dfdce(0x231)](_0x251dd5){const _0x4c5e07=_0x2dfdce;var _0x5b8531,_0x2edb50,_0xcd8545,_0x29a8a9,_0x5d5ff8,_0x57c037;this['_color']=(_0x5b8531=_0x251dd5['color'])!=null?_0x5b8531:this[_0x4c5e07(0x300)],this[_0x4c5e07(0x35b)]=(_0x2edb50=_0x251dd5[_0x4c5e07(0x258)])!=null?_0x2edb50:this[_0x4c5e07(0x35b)],this['_range']=(_0xcd8545=_0x251dd5['range'])!=null?_0xcd8545:this[_0x4c5e07(0x19d)],this[_0x4c5e07(0x2d0)]=(_0x29a8a9=_0x251dd5['name'])!=null?_0x29a8a9:this['_name'],this[_0x4c5e07(0x14f)]=(_0x5d5ff8=_0x251dd5[_0x4c5e07(0x165)])!=null?_0x5d5ff8:this[_0x4c5e07(0x14f)],this[_0x4c5e07(0x2ec)]=(_0x57c037=_0x251dd5['backgroundColor'])!=null?_0x57c037:this[_0x4c5e07(0x2ec)],this[_0x4c5e07(0x1af)]({'width':_0x251dd5[_0x4c5e07(0x1d5)],'height':_0x251dd5[_0x4c5e07(0x2cd)]});}[_0x2dfdce(0x28e)](_0x130d11){const _0x236407=_0x2dfdce,{row:_0x23f869,column:_0x31c7a5}=_0x130d11;if(_0x23f869>=this[_0x236407(0x19d)][_0x236407(0x22c)]&&_0x23f869<=this[_0x236407(0x19d)][_0x236407(0x218)]&&_0x31c7a5>=this[_0x236407(0x19d)]['startColumn']&&_0x31c7a5<=this[_0x236407(0x19d)]['endColumn']){this[_0x236407(0x231)]({'hovered':!0x0});return;}this[_0x236407(0x231)]({'hovered':!0x1});}['triggerDblclick'](_0x291dba){return!0x1;}['_draw'](_0x8c96f4){const _0x589831=_0x2dfdce;_0x426ed1[_0x589831(0x139)](_0x8c96f4,{'width':this[_0x589831(0x1d5)],'height':this[_0x589831(0x2cd)],'strokeWidth':en,'stroke':this[_0x589831(0x300)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x589831(0x35b)]&&(_0x8c96f4['save'](),_0x8c96f4[_0x589831(0x281)](0x1,0x0,0x0,0x1,this[_0x589831(0x1d5)],this[_0x589831(0x14f)]===_0x589831(0x34e)?0x0:-Q),ve[_0x589831(0x139)](_0x8c96f4,{'text':this[_0x589831(0x2d0)],'color':this[_0x589831(0x300)]}),_0x8c96f4[_0x589831(0x183)]());}}var sn=Object[_0x2dfdce(0x224)],nn=(_0x40df7b,_0x5493c2,_0x38b3dc,_0x38a741)=>{const _0x4b9335=_0x2dfdce;for(var _0x2bbf38=_0x38a741>0x1?void 0x0:_0x38a741?sn(_0x5493c2,_0x38b3dc):_0x5493c2,_0x155f0f=_0x40df7b[_0x4b9335(0x353)]-0x1,_0xff7f3b;_0x155f0f>=0x0;_0x155f0f--)(_0xff7f3b=_0x40df7b[_0x155f0f])&&(_0x2bbf38=_0xff7f3b(_0x2bbf38)||_0x2bbf38);return _0x2bbf38;},be=(_0x285baa,_0x221a3c)=>(_0x3ba6ce,_0x573d32)=>_0x221a3c(_0x3ba6ce,_0x573d32,_0x285baa);const rn=0x1389;let ke=class extends _0x2c39b3{constructor(_0x4992cc,_0x5c99fc,_0x2738fe,_0xf663ea){const _0x5e9bec=_0x2dfdce;super(),_(this,'_cursors',new Set()),_(this,_0x5e9bec(0x2b2),null),(this['_context']=_0x4992cc,this[_0x5e9bec(0x37b)]=_0x5c99fc,this[_0x5e9bec(0x2e0)]=_0x2738fe,this['_themeService']=_0xf663ea,this[_0x5e9bec(0x187)]());}[_0x2dfdce(0x187)](){const _0x31aec8=_0x2dfdce;this[_0x31aec8(0x37b)][_0x31aec8(0x313)][_0x31aec8(0x1d7)](_0x50594c(this[_0x31aec8(0x35c)]),_0x38c280(_0x207e60=>{const _0xae65d7=_0x31aec8;if(_0x207e60){const _0xa4e165=_0x207e60[_0xae65d7(0x2a9)];return _0xac5457(this[_0xae65d7(0x2e0)][_0xae65d7(0x206)](this['_context']['unitId']),this[_0xae65d7(0x19e)][_0xae65d7(0x276)])[_0xae65d7(0x1d7)](_0x4656fe(([_0xd2ac58,_0x372710])=>{const _0x2c676=new Map();return _0xd2ac58['forEach']((_0x283863,_0x3458e7)=>{const _0x30a95b=_0x49dd;if(_0x283863[_0x30a95b(0x22b)]===_0xa4e165){const _0x9c1dd7={..._0x283863};_0x9c1dd7[_0x30a95b(0x13f)]=this[_0x30a95b(0x19e)]['getColorFromTheme'](_0x283863[_0x30a95b(0x13f)]),_0x2c676['set'](_0x3458e7,_0x9c1dd7);}}),{'skeleton':_0x207e60,'cursors':_0x2c676};}));}return _0x3ab1b5({'skeleton':null,'cursors':new Map()});}))[_0x31aec8(0x26a)](({skeleton:_0x8da81a,cursors:_0x1dbc12})=>{const _0xa8f96d=_0x31aec8;this[_0xa8f96d(0x2f9)](),_0x8da81a&&this[_0xa8f96d(0x171)](_0x8da81a,_0x1dbc12);}),this[_0x31aec8(0x37b)][_0x31aec8(0x313)][_0x31aec8(0x26a)](_0x4f0101=>{const _0x17080f=_0x31aec8;if(_0x4f0101==null)return;const {skeleton:_0x4203ad}=_0x4f0101,{scene:_0x38ab24}=this[_0x17080f(0x1fb)];_0x38ab24[_0x17080f(0x1b7)][_0x17080f(0x27a)](_0x3b08f0(_0x3b8625=>{const _0x1c06b8=_0x17080f;var _0x14ca3b,_0x13434e;const {offsetX:_0x413f13,offsetY:_0x31e3e3}=_0x3b8625,{x:_0x529c71,y:_0x3ee58a}=_0x38ab24[_0x1c06b8(0x1b1)](_0x18deb4['FromArray']([_0x413f13,_0x31e3e3])),{scaleX:_0x2092c0,scaleY:_0x3b8d9e}=_0x38ab24['getAncestorScale'](),_0x396db7=_0x38ab24[_0x1c06b8(0x1b4)](_0x9c2c05[_0x1c06b8(0x308)]),_0x41306c=_0x38ab24[_0x1c06b8(0x16c)](_0x18deb4[_0x1c06b8(0x14d)]([_0x529c71,_0x3ee58a]),_0x396db7),_0x2b7e78=_0x4203ad['getCellPositionByOffset'](_0x413f13,_0x31e3e3,_0x2092c0,_0x3b8d9e,_0x41306c);((_0x14ca3b=this['_lastPointer'])==null?void 0x0:_0x14ca3b[_0x1c06b8(0x1ad)])===_0x2b7e78[_0x1c06b8(0x1ad)]&&((_0x13434e=this[_0x1c06b8(0x2b2)])==null?void 0x0:_0x13434e[_0x1c06b8(0x282)])===_0x2b7e78['row']||this[_0x1c06b8(0x31e)]['forEach'](_0x28c10c=>{const _0x4a8147=_0x1c06b8;_0x28c10c[_0x4a8147(0x28e)](_0x2b7e78);});},0x64));});}['_updateCollabCursors'](_0x284859,_0xacfc58){const _0x3af541=_0x2dfdce;var _0x5178ea;const _0x1f7a80=(_0x5178ea=this[_0x3af541(0x37b)][_0x3af541(0x17d)]())==null?void 0x0:_0x5178ea[_0x3af541(0x1a2)];if(!_0x1f7a80)return;const _0x505605=this[_0x3af541(0x154)]();if(!_0x505605)return;this[_0x3af541(0x31e)]['forEach'](_0x2e0100=>{const _0x493088=_0x3af541;_0x2e0100[_0x493088(0x346)]();});const {scene:_0x2e636e}=_0x505605,_0x1eddcc=on(Array[_0x3af541(0x225)](_0xacfc58[_0x3af541(0x180)]()))[_0x3af541(0x37a)](_0x117e2a=>{const _0x24c82a=_0x3af541,{color:_0x305cb6,range:_0x4ccea0,name:_0x5d4187,selection:_0x2007f5,sheetID:_0x485dd1}=_0x117e2a,{startColumn:_0x23cfb5,startRow:_0x3ddb75,endColumn:_0x121963,endRow:_0x4eb72c}=_0x4ccea0,_0x4e28ba=_0x3cb446(_0x3ddb75,_0x23cfb5,_0x2e636e,_0x1f7a80),_0x276b8e=_0x3cb446(_0x4eb72c,_0x121963,_0x2e636e,_0x1f7a80),{columnHeaderHeightAndMarginTop:_0xcc76e6}=_0x1f7a80,{startX:_0x338c3d,startY:_0x2a2ade}=_0x4e28ba,{endX:_0x3ca9d1,endY:_0x3016ee}=_0x276b8e,_0x58a711=_0x3ca9d1-_0x338c3d,_0xb14045=_0x3016ee-_0x2a2ade,_0x2476bf={'labelPosition':_0x2a2ade-_0xcc76e6>=Q?_0x24c82a(0x324):_0x24c82a(0x34e),'sheetID':_0x485dd1,'range':_0x4ccea0,'color':_0x305cb6,'name':_0x5d4187,'selection':_0x2007f5,'left':_0x338c3d,'top':_0x2a2ade,'width':_0x58a711,'height':_0xb14045,'evented':!0x1,'zIndex':rn};return new tn(_0x5d4187,_0x2476bf);});_0x2e636e[_0x3af541(0x195)](_0x1eddcc,qi),this[_0x3af541(0x31e)]=new Set(_0x1eddcc);}['_removeCollabCursors'](){const _0x16bd97=_0x2dfdce;var _0x5988be;(_0x5988be=this[_0x16bd97(0x31e)])==null||_0x5988be[_0x16bd97(0x28a)](_0x39eb9a=>_0x39eb9a['dispose']());}[_0x2dfdce(0x154)](){return _0x2d7447(this['_context']['unit'],this['_context']);}};ke=nn([be(0x1,_0x80106c(_0x13caae)),be(0x2,_0x80106c(H)),be(0x3,_0x80106c(_0x318911))],ke);function on(_0xb20daa){const _0x253441=_0x2dfdce,_0x530692=new Map();return _0xb20daa['forEach'](_0x53c775=>{const _0x4df7d7=_0x49dd;if(_0x530692['has'](_0x53c775['selection'])){const _0x56fbf3=_0x530692[_0x4df7d7(0x2ae)](_0x53c775[_0x4df7d7(0x16f)]);_0x56fbf3[_0x4df7d7(0x181)]+=',\x20'+_0x53c775['name'];}else _0x530692[_0x4df7d7(0x363)](_0x53c775[_0x4df7d7(0x16f)],_0x53c775);}),Array[_0x253441(0x225)](_0x530692[_0x253441(0x180)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x25ead3,_0x25b8aa,_0x43d55c,_0x412e94)=>{const _0x4717f3=_0x2dfdce;for(var _0x37f474=_0x412e94>0x1?void 0x0:_0x412e94?an(_0x25b8aa,_0x43d55c):_0x25b8aa,_0x58507a=_0x25ead3[_0x4717f3(0x353)]-0x1,_0x57997f;_0x58507a>=0x0;_0x58507a--)(_0x57997f=_0x25ead3[_0x58507a])&&(_0x37f474=_0x57997f(_0x37f474)||_0x37f474);return _0x37f474;},F=(_0x358cb6,_0x387e97)=>(_0x43bb74,_0x54d75f)=>_0x387e97(_0x43bb74,_0x54d75f,_0x358cb6);let _e=class extends _0x105698{constructor(_0x5247eb,_0x4c0ed2,_0x4e81a8,_0x4543e1,_0xe5a0aa,_0x4425cd){const _0xdb1ddb=_0x2dfdce;super(),this['_beforeCloseService']=_0x5247eb,this[_0xdb1ddb(0x30e)]=_0x4c0ed2,this[_0xdb1ddb(0x1f1)]=_0x4e81a8,this[_0xdb1ddb(0x1c3)]=_0x4543e1,this['_notificationService']=_0xe5a0aa,this[_0xdb1ddb(0x294)]=_0x4425cd,this['_setupBeforeClosingHandler'](),this[_0xdb1ddb(0x2c6)]();}['_setupBeforeClosingHandler'](){const _0x211ab8=_0x2dfdce;this[_0x211ab8(0x15d)](this[_0x211ab8(0x152)][_0x211ab8(0x2a2)](()=>{const _0x55b62e=_0x211ab8;if(this['_localCacheService'][_0x55b62e(0x1d1)]['size'])return this['_localeService']['t'](_0x55b62e(0x333));}));}[_0x2dfdce(0x2c6)](){const _0x5eb586=_0x2dfdce;this['disposeWithMe'](this['_collaborationUIEventService'][_0x5eb586(0x250)][_0x5eb586(0x26a)](_0x5f2d56=>{const _0x559ca2=_0x5eb586;_0x5f2d56['id']===_0x344e1a[_0x559ca2(0x24d)]&&this[_0x559ca2(0x1c3)]['show']({'type':_0x3e9f2d[_0x559ca2(0x243)],'content':this[_0x559ca2(0x294)]['t'](_0x559ca2(0x342))}),_0x5f2d56['id']===_0x344e1a[_0x559ca2(0x375)]&&this[_0x559ca2(0x1c3)][_0x559ca2(0x17e)]({'type':_0x3e9f2d[_0x559ca2(0x243)],'content':this['_localeService']['t'](_0x559ca2(0x21d))}),_0x5f2d56['id']===_0x344e1a[_0x559ca2(0x29c)]&&this['_notificationService'][_0x559ca2(0x17e)]({'title':this['_localeService']['t'](_0x559ca2(0x33e)),'content':this[_0x559ca2(0x294)]['t'](_0x559ca2(0x164)),'type':'error','duration':0x0}),_0x5f2d56['id']===_0x344e1a[_0x559ca2(0x26f)]&&this[_0x559ca2(0x1c3)][_0x559ca2(0x17e)]({'type':_0x3e9f2d['Error'],'content':this['_localeService']['t'](_0x559ca2(0x21d))+'('+_0x5f2d56['data']+')'}),_0x5f2d56['id']===_0x344e1a['JOIN_ROOM_FAILED']&&this[_0x559ca2(0x1c3)]['show']({'type':_0x3e9f2d[_0x559ca2(0x243)],'content':this[_0x559ca2(0x294)]['t'](_0x5f2d56[_0x559ca2(0x362)]||'')}),_0x5f2d56['id']===_0x344e1a[_0x559ca2(0x210)]&&this['_messageService'][_0x559ca2(0x17e)]({'type':_0x3e9f2d[_0x559ca2(0x243)],'content':this[_0x559ca2(0x294)]['t']('session.will-retry')}),_0x5f2d56['id']===_0x344e1a[_0x559ca2(0x2fe)]&&this[_0x559ca2(0x1c3)]['show']({'type':_0x3e9f2d[_0x559ca2(0x264)],'content':this[_0x559ca2(0x294)]['t'](_0x559ca2(0x293))}),_0x5f2d56['id']===_0x344e1a['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x559ca2(0x17e)]({'type':_0x3e9f2d[_0x559ca2(0x264)],'content':this[_0x559ca2(0x294)]['t'](_0x559ca2(0x1ee))});}));}};_e=cn([F(0x0,_0x554cc7),F(0x1,_0x48427f),F(0x2,_0x80106c(_0x398c15)),F(0x3,_0x5208d9),F(0x4,_0x34c2cd),F(0x5,_0x80106c(_0x18855f))],_e);var _n=Object[_0x2dfdce(0x224)],ln=(_0xd547da,_0x4c1466,_0x180c82,_0x27a721)=>{for(var _0x162223=_0x27a721>0x1?void 0x0:_0x27a721?_n(_0x4c1466,_0x180c82):_0x4c1466,_0x336d77=_0xd547da['length']-0x1,_0x35125c;_0x336d77>=0x0;_0x336d77--)(_0x35125c=_0xd547da[_0x336d77])&&(_0x162223=_0x35125c(_0x162223)||_0x162223);return _0x162223;},ne=(_0x56a0df,_0x542a0a)=>(_0x2be272,_0x4a8900)=>_0x542a0a(_0x2be272,_0x4a8900,_0x56a0df);let le=class extends _0x105698{constructor(_0x1059e1,_0x44d9ef,_0x5da658,_0x5df43c){const _0x111141=_0x2dfdce;super(),_(this,_0x111141(0x241)),(this[_0x111141(0x1e0)]=_0x1059e1,this['_httpService']=_0x44d9ef,this['_logService']=_0x5da658,this[_0x111141(0x356)]=_0x5df43c,this['_init']());}[_0x2dfdce(0x187)](){const _0x15d17a=_0x2dfdce;this[_0x15d17a(0x1e6)](),this[_0x15d17a(0x20e)](),this[_0x15d17a(0x1fe)](),this[_0x15d17a(0x149)]();}[_0x2dfdce(0x149)](){const _0x174e06=_0x2dfdce;this[_0x174e06(0x15d)](this[_0x174e06(0x356)]['socket$']['subscribe'](_0x23e4e1=>{const _0x7ec8ea=_0x174e06;this[_0x7ec8ea(0x241)]=_0x23e4e1==null?void 0x0:_0x23e4e1[_0x7ec8ea(0x319)];}));}['_initWindowErrorListener'](){const _0x4d3735=_0x14af7f=>{const _0x4727ae=_0x49dd;var _0x6ce973;this['_uploadLog'](_0x4727ae(0x22a),_0x4727ae(0x249)+_0x14af7f[_0x4727ae(0x367)]+_0x4727ae(0x136)+_0x14af7f[_0x4727ae(0x1f0)]+':'+_0x14af7f[_0x4727ae(0x2cf)]+':'+_0x14af7f[_0x4727ae(0x275)]+'\x0a'+(((_0x6ce973=_0x14af7f[_0x4727ae(0x22a)])==null?void 0x0:_0x6ce973['stack'])||''));};window['addEventListener']('error',_0x4d3735),this['disposeWithMe'](()=>{const _0x4421ed=_0x49dd;window[_0x4421ed(0x288)]('error',_0x4d3735);});}[_0x2dfdce(0x20e)](){const _0x1595b3=_0x2dfdce,_0xd8aecb=_0x512b1c=>{const _0xbd25e6=_0x49dd;this[_0xbd25e6(0x256)](_0xbd25e6(0x22a),_0xbd25e6(0x2d5)+_0x512b1c[_0xbd25e6(0x15a)]);};window[_0x1595b3(0x25c)]('unhandledrejection',_0xd8aecb),this['disposeWithMe'](()=>{const _0x2adc8f=_0x1595b3;window[_0x2adc8f(0x288)](_0x2adc8f(0x1a3),_0xd8aecb);});}['_monkeyPatchLogService'](){const _0x543fca=_0x2dfdce,_0x2211f5=this['_logService'][_0x543fca(0x22a)][_0x543fca(0x30c)](this[_0x543fca(0x32e)]);this['_logService'][_0x543fca(0x22a)]=(..._0x16e9c9)=>{const _0x2946be=_0x543fca,_0x52cf88=_0x16e9c9[_0x2946be(0x37a)](_0x25bcc8=>_0x25bcc8 instanceof Error?_0x25bcc8[_0x2946be(0x367)]+'\x0a'+_0x25bcc8['stack']:String(_0x25bcc8))['join']('\x20');this[_0x2946be(0x256)]('error',_0x2946be(0x2a1)+_0x52cf88),_0x2211f5(..._0x16e9c9);},this['disposeWithMe'](()=>{const _0x29298e=_0x543fca;this['_logService'][_0x29298e(0x22a)]=_0x2211f5;});}[_0x2dfdce(0x256)](_0x3c48fc,_0x368298){const _0x1d5ab8=_0x2dfdce;try{const _0x7c0b61={'userId':this[_0x1d5ab8(0x241)],'logLabel':_0x3c48fc,'content':_0x368298};this[_0x1d5ab8(0x1e4)][_0x1d5ab8(0x332)](_0x1d5ab8(0x176),{'body':_0x7c0b61})[_0x1d5ab8(0x280)](()=>{});}catch{}}};le=ln([ne(0x0,_0x80106c(_0x1993d7)),ne(0x1,_0x80106c(_0x52854e)),ne(0x2,_0x4b2474),ne(0x3,_0x80106c(_0x17121e))],le);const hn=_0x2dfdce(0x13b),_t={};function _0x49dd(_0x372103,_0x4c7523){_0x372103=_0x372103-0x130;const _0xae4263=_0xae42();let _0x49dd16=_0xae4263[_0x372103];return _0x49dd16;}var un=Object[_0x2dfdce(0x224)],dn=(_0x3ebc77,_0x32d2fc,_0x1fd23d,_0x29517d)=>{const _0x1e4bd9=_0x2dfdce;for(var _0xfcfe19=_0x29517d>0x1?void 0x0:_0x29517d?un(_0x32d2fc,_0x1fd23d):_0x32d2fc,_0x296f5a=_0x3ebc77[_0x1e4bd9(0x353)]-0x1,_0x1934fd;_0x296f5a>=0x0;_0x296f5a--)(_0x1934fd=_0x3ebc77[_0x296f5a])&&(_0xfcfe19=_0x1934fd(_0xfcfe19)||_0xfcfe19);return _0xfcfe19;},lt=(_0x36ec95,_0x5702e1)=>(_0x4b5e6a,_0x2edc47)=>_0x5702e1(_0x4b5e6a,_0x2edc47,_0x36ec95);let he=class{constructor(_0x308f17,_0x2f558e){const _0x396816=_0x2dfdce;this[_0x396816(0x2d4)]=_0x308f17,this[_0x396816(0x30d)]=_0x2f558e;}[_0x2dfdce(0x238)](_0x41b84a){const _0xfdcde5=_0x2dfdce;this['_transformUndoRedoStack'](_0x41b84a),this[_0xfdcde5(0x1e3)](_0x41b84a);}[_0x2dfdce(0x335)](_0x24584e){const _0x346da9=_0x2dfdce,{unitID:_0x3e4d9e}=_0x24584e,_0x4029b2=this[_0x346da9(0x30d)][_0x346da9(0x2ab)](_0x3e4d9e)[_0x346da9(0x23b)](_0x5111b1),{redoCache:_0xe08377}=_0x4029b2[_0x346da9(0x19b)]();if(_0xe08377[_0x346da9(0x353)]===0x0)return _0x24584e;let _0x503940=_0x30226b[_0x346da9(0x323)](_0x24584e[_0x346da9(0x246)][0x0]);for(let _0x44480e=0x0;_0x44480e<_0xe08377['length'];_0x44480e++){const _0x4eecc3={'id':'doc.mutation.rich-text-editing','params':{..._0xe08377[_0x44480e]}},_0x1591a1=this[_0x346da9(0x2d4)]['transformMutation'](_0x503940,_0x4eecc3,!0x1);if(_0x3080a1(_0x1591a1))throw _0x1591a1[_0x346da9(0x22a)];_0x503940=_0x1591a1[_0x346da9(0x2fd)];}return{..._0x30226b[_0x346da9(0x323)](_0x24584e),'mutations':[_0x503940]};}['_transformUndoRedoStack'](_0x334861){const _0x2422ea=_0x2dfdce,{unitID:_0x9cedfd}=_0x334861,_0xdf083d=this['_renderManagerService'][_0x2422ea(0x2ab)](_0x9cedfd)[_0x2422ea(0x23b)](_0x5111b1),{undoCache:_0x4a24c7,redoCache:_0x140f52}=_0xdf083d[_0x2422ea(0x19b)]();if(_0x4a24c7[_0x2422ea(0x353)]===0x0||_0x140f52['length']===0x0)return;const _0x5b47fd=[],_0x419cb2=[];let _0x4862bf=_0x30226b[_0x2422ea(0x323)](_0x334861[_0x2422ea(0x246)][0x0]),_0x2c3030=_0x30226b['deepClone'](_0x334861['mutations'][0x0]);for(let _0x5f0ea5=_0x4a24c7[_0x2422ea(0x353)]-0x1;_0x5f0ea5>=0x0;_0x5f0ea5--){const _0x19950d={'id':'doc.mutation.rich-text-editing','params':{..._0x4a24c7[_0x5f0ea5]}},_0x591f30={'id':_0x2422ea(0x1eb),'params':{..._0x140f52[_0x5f0ea5]}},_0x4a5b9f=this[_0x2422ea(0x2d4)][_0x2422ea(0x190)](_0x4862bf,_0x19950d,!0x1),_0x45e7e5=this[_0x2422ea(0x2d4)][_0x2422ea(0x190)](_0x2c3030,_0x591f30,!0x1);if(_0x3080a1(_0x4a5b9f))throw _0x4a5b9f['error'];if(_0x3080a1(_0x45e7e5))throw _0x45e7e5[_0x2422ea(0x22a)];_0x5b47fd[_0x2422ea(0x1d4)](_0x4a5b9f[_0x2422ea(0x16b)][_0x2422ea(0x240)]),_0x419cb2[_0x2422ea(0x1d4)](_0x45e7e5[_0x2422ea(0x16b)][_0x2422ea(0x240)]),_0x4862bf=_0x4a5b9f[_0x2422ea(0x2fd)],_0x2c3030=_0x45e7e5[_0x2422ea(0x2fd)];}_0xdf083d[_0x2422ea(0x145)]({'undoCache':_0x5b47fd,'redoCache':_0x419cb2});}['_transformPreviousActiveRange'](_0x319a5c){const _0x518cb8=_0x2dfdce,{unitID:_0x321a86}=_0x319a5c,_0x18d9e2=this[_0x518cb8(0x30d)]['getRenderById'](_0x321a86)[_0x518cb8(0x23b)](_0x5111b1),_0x152b07=_0x18d9e2[_0x518cb8(0x24b)]();if(_0x152b07==null)return;const _0x20ad72=[{'id':_0x518cb8(0x1eb),'params':{'unitId':_0x319a5c[_0x518cb8(0x211)],'actions':null,'textRanges':[_0x152b07]}}],_0x40a383=this[_0x518cb8(0x2d4)][_0x518cb8(0x36a)](_0x319a5c,_0x20ad72);if(!_0xc80047(_0x40a383))throw _0x40a383[_0x518cb8(0x22a)];const _0x50ac26=_0x40a383[_0x518cb8(0x16b)][0x0][_0x518cb8(0x240)][_0x518cb8(0x36f)];Array[_0x518cb8(0x1cf)](_0x50ac26)&&_0x50ac26[_0x518cb8(0x353)]&&_0x18d9e2[_0x518cb8(0x334)](_0x50ac26[0x0]);}};he=dn([lt(0x0,_0xaca1db),lt(0x1,_0x3dc25c)],he);var Sn=Object[_0x2dfdce(0x224)],In=(_0x383223,_0x48153e,_0x5a737d,_0xeca7ef)=>{for(var _0x5e5d23=_0xeca7ef>0x1?void 0x0:_0xeca7ef?Sn(_0x48153e,_0x5a737d):_0x48153e,_0x2345f3=_0x383223['length']-0x1,_0x4340c9;_0x2345f3>=0x0;_0x2345f3--)(_0x4340c9=_0x383223[_0x2345f3])&&(_0x5e5d23=_0x4340c9(_0x5e5d23)||_0x5e5d23);return _0x5e5d23;},Le=(_0x220191,_0x199e2c)=>(_0x4a90d7,_0x5ed2a7)=>_0x199e2c(_0x4a90d7,_0x5ed2a7,_0x220191);let ue=class{constructor(_0x42ab76,_0x3183fb,_0x3b6742){const _0x334168=_0x2dfdce;this[_0x334168(0x1e0)]=_0x42ab76,this[_0x334168(0x2d4)]=_0x3183fb,this[_0x334168(0x34a)]=_0x3b6742;}[_0x2dfdce(0x142)](_0x2fd2a1){const _0x1b4926=_0x2dfdce;this[_0x1b4926(0x2c8)](_0x2fd2a1);}[_0x2dfdce(0x335)](_0x598ed1){const _0x297303=_0x2dfdce,{unitID:_0x464698}=_0x598ed1,{collaboration:_0x277b52}=this[_0x297303(0x34a)]['getStateCache'](_0x464698);if(_0x277b52['length']===0x0)return _0x598ed1;let _0x34101c=_0x30226b['deepClone'](_0x598ed1[_0x297303(0x246)][0x0]);for(let _0x5b0df8=0x0;_0x5b0df8<_0x277b52[_0x297303(0x353)];_0x5b0df8++){const _0x3fe7ce={'id':_0x297303(0x1eb),'params':{'unitId':_0x277b52[_0x5b0df8][_0x297303(0x1aa)],..._0x277b52[_0x5b0df8][_0x297303(0x2ed)]}},_0x2ecde1=this[_0x297303(0x2d4)]['transformMutation'](_0x34101c,_0x3fe7ce,!0x1);if(_0x3080a1(_0x2ecde1))throw _0x2ecde1[_0x297303(0x22a)];_0x34101c=_0x2ecde1[_0x297303(0x2fd)];}return{..._0x30226b[_0x297303(0x323)](_0x598ed1),'mutations':[_0x34101c]};}[_0x2dfdce(0x2c8)](_0x37987c){const _0x1e8bfa=_0x2dfdce,{unitID:_0x59d0b7}=_0x37987c,{history:_0x2f22f9,collaboration:_0x569fb6}=this[_0x1e8bfa(0x34a)][_0x1e8bfa(0x27d)](_0x59d0b7);if(_0x2f22f9[_0x1e8bfa(0x353)]===0x0&&_0x569fb6[_0x1e8bfa(0x353)]===0x0)return;const _0x5014d3=[],_0x5e5d89=[];let _0x44a207=_0x30226b[_0x1e8bfa(0x323)](_0x37987c['mutations'][0x0]),_0x23b8d3=_0x30226b['deepClone'](_0x37987c[_0x1e8bfa(0x246)][0x0]);for(let _0x402d57=_0x2f22f9[_0x1e8bfa(0x353)]-0x1;_0x402d57>=0x0;_0x402d57--){const _0x168a4e={'id':_0x1e8bfa(0x1eb),'params':{'unitId':_0x2f22f9[_0x402d57][_0x1e8bfa(0x1aa)],..._0x2f22f9[_0x402d57][_0x1e8bfa(0x36c)]}},_0x4bd589={'id':_0x1e8bfa(0x1eb),'params':{'unitId':_0x2f22f9[_0x402d57][_0x1e8bfa(0x1aa)],..._0x2f22f9[_0x402d57][_0x1e8bfa(0x2ed)]}},_0x27929d=this[_0x1e8bfa(0x2d4)][_0x1e8bfa(0x190)](_0x44a207,_0x168a4e,!0x1),_0x43c926=this['_transformService'][_0x1e8bfa(0x190)](_0x23b8d3,_0x4bd589,!0x1);if(_0x3080a1(_0x27929d))throw _0x27929d[_0x1e8bfa(0x22a)];if(_0x3080a1(_0x43c926))throw _0x43c926['error'];_0x5014d3[_0x1e8bfa(0x1d4)]({..._0x2f22f9[_0x402d57],'undoState':_0x27929d['m2Prime'][_0x1e8bfa(0x240)],'redoState':_0x43c926[_0x1e8bfa(0x16b)]['params']}),_0x44a207=_0x27929d[_0x1e8bfa(0x2fd)],_0x23b8d3=_0x43c926[_0x1e8bfa(0x2fd)];}_0x44a207=_0x30226b['deepClone'](_0x37987c[_0x1e8bfa(0x246)][0x0]),_0x23b8d3=_0x30226b[_0x1e8bfa(0x323)](_0x37987c[_0x1e8bfa(0x246)][0x0]);for(let _0x553c6a=_0x569fb6[_0x1e8bfa(0x353)]-0x1;_0x553c6a>=0x0;_0x553c6a--){const _0x44ff55={'id':_0x1e8bfa(0x1eb),'params':{'unitId':_0x569fb6[_0x553c6a][_0x1e8bfa(0x1aa)],..._0x569fb6[_0x553c6a][_0x1e8bfa(0x36c)]}},_0x19e318={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x569fb6[_0x553c6a]['unitId'],..._0x569fb6[_0x553c6a][_0x1e8bfa(0x2ed)]}},_0x5b9b5c=this[_0x1e8bfa(0x2d4)][_0x1e8bfa(0x190)](_0x44a207,_0x44ff55,!0x1),_0x54fab2=this[_0x1e8bfa(0x2d4)][_0x1e8bfa(0x190)](_0x23b8d3,_0x19e318,!0x1);if(_0x3080a1(_0x5b9b5c))throw _0x5b9b5c[_0x1e8bfa(0x22a)];if(_0x3080a1(_0x54fab2))throw _0x54fab2[_0x1e8bfa(0x22a)];_0x5e5d89[_0x1e8bfa(0x1d4)]({..._0x569fb6[_0x553c6a],'undoState':_0x5b9b5c['m2Prime']['params'],'redoState':_0x54fab2[_0x1e8bfa(0x16b)][_0x1e8bfa(0x240)]}),_0x44a207=_0x5b9b5c[_0x1e8bfa(0x2fd)],_0x23b8d3=_0x54fab2[_0x1e8bfa(0x2fd)];}this[_0x1e8bfa(0x34a)][_0x1e8bfa(0x2c0)](_0x59d0b7,{'history':_0x5014d3,'collaboration':_0x5e5d89});}};ue=In([Le(0x0,_0x80106c(_0x1993d7)),Le(0x1,_0xaca1db),Le(0x2,_0x80106c(_0x4c5b75))],ue);var mn=Object[_0x2dfdce(0x224)],fn=(_0x3f3c35,_0xd87067,_0x2f6b6c,_0x314775)=>{for(var _0x11ba8b=_0x314775>0x1?void 0x0:_0x314775?mn(_0xd87067,_0x2f6b6c):_0xd87067,_0x4bc303=_0x3f3c35['length']-0x1,_0xd62873;_0x4bc303>=0x0;_0x4bc303--)(_0xd62873=_0x3f3c35[_0x4bc303])&&(_0x11ba8b=_0xd62873(_0x11ba8b)||_0x11ba8b);return _0x11ba8b;},ht=(_0x869851,_0x330850)=>(_0x5298d0,_0x1c3d7e)=>_0x330850(_0x5298d0,_0x1c3d7e,_0x869851);let de=class{constructor(_0xf7b31b,_0x37a608){const _0x5e0966=_0x2dfdce;this[_0x5e0966(0x1e0)]=_0xf7b31b,this[_0x5e0966(0x2d4)]=_0x37a608;}[_0x2dfdce(0x219)](_0x10f3e9){const _0xf2cb43=_0x2dfdce;var _0x463745;const _0x57a7e9=this[_0xf2cb43(0x1e0)][_0xf2cb43(0x2ae)](_0x122074),_0x29d0d1=(_0x463745=_0x57a7e9[_0xf2cb43(0x1ab)]())!=null?_0x463745:[];if(_0x29d0d1[_0xf2cb43(0x353)]===0x0)return;const _0x2b288f=_0x10f3e9[_0xf2cb43(0x211)],_0x2d0c72=[{'id':_0xf2cb43(0x1eb),'params':{'unitId':_0x2b288f,'actions':null,'textRanges':_0x29d0d1}}],_0x4d4926=this[_0xf2cb43(0x2d4)][_0xf2cb43(0x36a)](_0x10f3e9,_0x2d0c72);if(!_0xc80047(_0x4d4926))throw _0x4d4926[_0xf2cb43(0x22a)];const _0x516d6e=_0x4d4926[_0xf2cb43(0x16b)][0x0][_0xf2cb43(0x240)]['textRanges'];Array['isArray'](_0x516d6e)&&_0x516d6e[_0xf2cb43(0x353)]&&_0x57a7e9['replaceDocRanges'](_0x516d6e,{'unitId':_0x2b288f,'subUnitId':_0x2b288f},!0x1);}};de=fn([ht(0x0,_0x80106c(_0x1993d7)),ht(0x1,_0xaca1db)],de);var gn=Object[_0x2dfdce(0x224)],En=(_0x2cf772,_0xfdceee,_0xbfeddc,_0x1ed460)=>{for(var _0x1ce912=_0x1ed460>0x1?void 0x0:_0x1ed460?gn(_0xfdceee,_0xbfeddc):_0xfdceee,_0x3a63ec=_0x2cf772['length']-0x1,_0x397857;_0x3a63ec>=0x0;_0x3a63ec--)(_0x397857=_0x2cf772[_0x3a63ec])&&(_0x1ce912=_0x397857(_0x1ce912)||_0x1ce912);return _0x1ce912;},U=(_0x4d53e4,_0x5d6ca7)=>(_0xee85b,_0x2ef789)=>_0x5d6ca7(_0xee85b,_0x2ef789,_0x4d53e4);let Se=class extends _0x105698{constructor(_0x231e86,_0x47b7e2,_0x2066c8,_0x40c249,_0xe578b6,_0x39fafd,_0x22b530,_0x394213){const _0xac4cc5=_0x2dfdce;super(),_(this,'_status$',new _0x378dd0(_0x3c389e[_0xac4cc5(0x16e)])),(this[_0xac4cc5(0x34a)]=_0x231e86,this[_0xac4cc5(0x197)]=_0x47b7e2,this[_0xac4cc5(0x1a5)]=_0x2066c8,this['_docTransformStateCacheService']=_0x40c249,this['_docTransformSelectionsService']=_0xe578b6,this[_0xac4cc5(0x1a4)]=_0x39fafd,this[_0xac4cc5(0x1c3)]=_0x22b530,this[_0xac4cc5(0x294)]=_0x394213,this[_0xac4cc5(0x2dc)]());}['_initEntityListener'](){const _0x19f75e=_0x2dfdce;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x19f75e(0x26a)](_0x4c37b4=>{const _0x4a30ee=_0x19f75e,_0x26b4c6=this[_0x4a30ee(0x34a)][_0x4a30ee(0x208)][_0x4a30ee(0x26a)](_0x2c2d09=>{const _0x2e179f=_0x4a30ee;if(_0x2c2d09==null)return;const {unitId:_0x423e86,redoState:_0x3561b9,commandId:_0x3cb6ce}=_0x2c2d09;if(_0x423e86!==_0x4c37b4[_0x2e179f(0x211)])return;const _0x324c5b={'id':_0x3cb6ce,'type':_0xbf16cb['MUTATION'],'params':{'unitId':_0x423e86,'actions':_0x3561b9[_0x2e179f(0x2ad)],'textRanges':null}};_0x4c37b4[_0x2e179f(0x1ac)](_0x324c5b);});if(_0x4c37b4[_0x4a30ee(0x15d)](_0x26b4c6),_0x4c37b4 instanceof _0x1d355d){const _0x53446a={'onTransformIME':_0x3df61d=>this[_0x4a30ee(0x1a5)][_0x4a30ee(0x238)](_0x3df61d),'onTransformState':_0x3d4f1d=>this[_0x4a30ee(0x23c)][_0x4a30ee(0x142)](_0x3d4f1d),'onTransformSelections':_0x5e8f39=>this[_0x4a30ee(0x2dd)][_0x4a30ee(0x219)](_0x5e8f39),'onSyncEditingCollabCursor':_0x3c2ff8=>this[_0x4a30ee(0x1a4)][_0x4a30ee(0x302)](_0x3c2ff8),'onTransformRemoteChangesetByIMECache':_0xd0140d=>this[_0x4a30ee(0x1a5)][_0x4a30ee(0x335)](_0xd0140d),'onTransformRemoteChangesetByStateCache':_0x46f268=>this[_0x4a30ee(0x23c)][_0x4a30ee(0x335)](_0x46f268)};_0x4c37b4[_0x4a30ee(0x1e1)](_0x53446a);}}));}};Se=En([U(0x0,_0x80106c(_0x4c5b75)),U(0x1,_0x80106c(_0x2101ad)),U(0x2,_0x80106c(he)),U(0x3,_0x80106c(ue)),U(0x4,_0x80106c(de)),U(0x5,_0x80106c(ze)),U(0x6,_0x5208d9),U(0x7,_0x80106c(_0x18855f))],Se);var Z=(_0x493b75=>(_0x493b75[_0x493b75[_0x2dfdce(0x260)]=0x0]=_0x2dfdce(0x260),_0x493b75[_0x493b75['OK']=0x1]='OK',_0x493b75[_0x493b75[_0x2dfdce(0x2fb)]=0x2]='INTERNAL_ERROR',_0x493b75[_0x493b75[_0x2dfdce(0x29c)]=0x3]=_0x2dfdce(0x29c),_0x493b75[_0x493b75[_0x2dfdce(0x1e9)]=0x4]='NOT_FOUND',_0x493b75[_0x493b75['UNAUTHENTICATED']=0x5]=_0x2dfdce(0x373),_0x493b75[_0x493b75['ALREADY_EXISTS']=0x6]=_0x2dfdce(0x1f3),_0x493b75[_0x493b75['INVALID_ARGUMENT']=0x7]=_0x2dfdce(0x35f),_0x493b75[_0x493b75['TOO_MANY_REQUESTS']=0x8]=_0x2dfdce(0x2b6),_0x493b75[_0x493b75['COMPLETION_FINISHED']=0x9]=_0x2dfdce(0x263),_0x493b75[_0x493b75['LOGIN_FAILED']=0xa]=_0x2dfdce(0x336),_0x493b75[_0x493b75[_0x2dfdce(0x2b4)]=0xb]=_0x2dfdce(0x2b4),_0x493b75[_0x493b75['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x493b75[_0x493b75[_0x2dfdce(0x337)]=0xd]=_0x2dfdce(0x337),_0x493b75[_0x493b75[_0x2dfdce(0x1dc)]=0xe]=_0x2dfdce(0x1dc),_0x493b75[_0x493b75[_0x2dfdce(0x31d)]=0xf]=_0x2dfdce(0x31d),_0x493b75[_0x493b75['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x2dfdce(0x2e4),_0x493b75[_0x493b75['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x493b75[_0x493b75[_0x2dfdce(0x33f)]=0x65]=_0x2dfdce(0x33f),_0x493b75[_0x493b75['USER_NOT_FOUND']=0xc9]=_0x2dfdce(0x35d),_0x493b75[_0x493b75[_0x2dfdce(0x13a)]=0xca]='USER_IS_ANONYMOUS',_0x493b75[_0x493b75['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x2dfdce(0x378),_0x493b75[_0x493b75[_0x2dfdce(0x22e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x493b75[_0x493b75['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2dfdce(0x345),_0x493b75[_0x493b75[_0x2dfdce(0x1c9)]=0x1773]=_0x2dfdce(0x1c9),_0x493b75[_0x493b75[_0x2dfdce(0x189)]=0x1b59]=_0x2dfdce(0x189),_0x493b75[_0x493b75[_0x2dfdce(0x161)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x493b75[_0x493b75['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2dfdce(0x2f3),_0x493b75[_0x493b75[_0x2dfdce(0x261)]=0x1b5c]=_0x2dfdce(0x261),_0x493b75[_0x493b75['APPLY_DUPLICATED']=0x1b5d]=_0x2dfdce(0x279),_0x493b75[_0x493b75['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2dfdce(0x2a3),_0x493b75[_0x493b75[_0x2dfdce(0x133)]=0x2329]=_0x2dfdce(0x133),_0x493b75[_0x493b75[_0x2dfdce(0x158)]=0x232a]=_0x2dfdce(0x158),_0x493b75[_0x493b75[_0x2dfdce(0x371)]=0x232b]=_0x2dfdce(0x371),_0x493b75[_0x493b75[_0x2dfdce(0x2a8)]=0x232c]=_0x2dfdce(0x2a8),_0x493b75[_0x493b75[_0x2dfdce(0x24a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x493b75[_0x493b75[_0x2dfdce(0x1d2)]=0x2711]=_0x2dfdce(0x1d2),_0x493b75[_0x493b75[_0x2dfdce(0x207)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x493b75[_0x493b75[_0x2dfdce(0x24c)]=0x2713]=_0x2dfdce(0x24c),_0x493b75[_0x493b75[_0x2dfdce(0x29d)]=0x2714]=_0x2dfdce(0x29d),_0x493b75[_0x493b75[_0x2dfdce(0x2e7)]=0x271a]=_0x2dfdce(0x2e7),_0x493b75[_0x493b75[_0x2dfdce(0x1ae)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x493b75[_0x493b75[_0x2dfdce(0x21c)]=0x271c]=_0x2dfdce(0x21c),_0x493b75[_0x493b75[_0x2dfdce(0x26e)]=0x271d]=_0x2dfdce(0x26e),_0x493b75[_0x493b75[_0x2dfdce(0x269)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x493b75[_0x493b75[_0x2dfdce(0x2a7)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x493b75[_0x493b75['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x493b75[_0x493b75['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x493b75[_0x493b75[_0x2dfdce(0x25e)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x493b75[_0x493b75[_0x2dfdce(0x2b5)]=0x2ee2]=_0x2dfdce(0x2b5),_0x493b75[_0x493b75[_0x2dfdce(0x24e)]=0x2ee3]=_0x2dfdce(0x24e),_0x493b75[_0x493b75[_0x2dfdce(0x328)]=0x2ee4]=_0x2dfdce(0x328),_0x493b75[_0x493b75[_0x2dfdce(0x2f1)]=0x2ee5]=_0x2dfdce(0x2f1),_0x493b75[_0x493b75[_0x2dfdce(0x2cc)]=0x32c9]=_0x2dfdce(0x2cc),_0x493b75[_0x493b75['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2dfdce(0x2ea),_0x493b75[_0x493b75[_0x2dfdce(0x236)]=0x32cb]=_0x2dfdce(0x236),_0x493b75[_0x493b75[_0x2dfdce(0x2a4)]=0x36b1]=_0x2dfdce(0x2a4),_0x493b75[_0x493b75[_0x2dfdce(0x2d7)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x493b75[_0x493b75[_0x2dfdce(0x318)]=0x36b3]=_0x2dfdce(0x318),_0x493b75[_0x493b75[_0x2dfdce(0x278)]=0x36b4]=_0x2dfdce(0x278),_0x493b75[_0x493b75[_0x2dfdce(0x20d)]=0x36b5]=_0x2dfdce(0x20d),_0x493b75[_0x493b75[_0x2dfdce(0x329)]=0x36b6]=_0x2dfdce(0x329),_0x493b75[_0x493b75['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x2dfdce(0x327),_0x493b75[_0x493b75[_0x2dfdce(0x14c)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x493b75[_0x493b75[_0x2dfdce(0x212)]=0x3715]=_0x2dfdce(0x212),_0x493b75[_0x493b75[_0x2dfdce(0x175)]=0x3716]=_0x2dfdce(0x175),_0x493b75[_0x493b75[_0x2dfdce(0x29a)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x493b75[_0x493b75['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x493b75[_0x493b75[_0x2dfdce(0x1f4)]=0x3a99]=_0x2dfdce(0x1f4),_0x493b75[_0x493b75['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x2dfdce(0x36b),_0x493b75[_0x493b75[_0x2dfdce(0x2ef)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x493b75[_0x493b75[_0x2dfdce(0x2e1)]=0x3a9c]=_0x2dfdce(0x2e1),_0x493b75[_0x493b75[_0x2dfdce(0x160)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x493b75[_0x493b75[_0x2dfdce(0x1f6)]=0x3a9e]=_0x2dfdce(0x1f6),_0x493b75[_0x493b75[_0x2dfdce(0x2c1)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x493b75[_0x493b75[_0x2dfdce(0x188)]=0x3e81]=_0x2dfdce(0x188),_0x493b75[_0x493b75[_0x2dfdce(0x358)]=-0x1]=_0x2dfdce(0x358),_0x493b75))(Z||{});function vn(_0xba2e5){const _0x1e2a63=_0x2dfdce;var _0x52f21e,_0x3c1700;const _0x7aeff1=(_0x52f21e=_0xba2e5[_0x1e2a63(0x138)])==null?void 0x0:_0x52f21e[_0x1e2a63(0x2bf)],_0x26a676=((_0x3c1700=_0xba2e5[_0x1e2a63(0x138)])==null?void 0x0:_0x3c1700[_0x1e2a63(0x1c2)])||0x0;return _0x7aeff1===_0x314ee9[_0x1e2a63(0x2d9)]&&_0x26a676>0x0;}function pn(_0x2c934f){const _0x4fd179=_0x2dfdce;return _0x2c934f[_0x4fd179(0x36d)]===_0xbd953[_0x4fd179(0x33d)];}var On=Object[_0x2dfdce(0x224)],Tn=(_0x435221,_0x11bfb2,_0x10c8c2,_0x357ace)=>{const _0x1dc0c9=_0x2dfdce;for(var _0x46e4b6=_0x357ace>0x1?void 0x0:_0x357ace?On(_0x11bfb2,_0x10c8c2):_0x11bfb2,_0x199dab=_0x435221[_0x1dc0c9(0x353)]-0x1,_0x3131a7;_0x199dab>=0x0;_0x199dab--)(_0x3131a7=_0x435221[_0x199dab])&&(_0x46e4b6=_0x3131a7(_0x46e4b6)||_0x46e4b6);return _0x46e4b6;},P=(_0x2f03f3,_0x4dd291)=>(_0x59a665,_0x351d90)=>_0x4dd291(_0x59a665,_0x351d90,_0x2f03f3);const Cn=_0x2dfdce(0x147),Rn=_0x2dfdce(0x292),Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x105698{constructor(_0x436092,_0x41269b,_0x4b4489,_0x3cd3bf,_0x2167fe,_0x489689,_0x40dc84){const _0x56a53e=_0x2dfdce;super(),_(this,_0x56a53e(0x2b1),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x56a53e(0x23a),0x0),_(this,_0x56a53e(0x343),[]),_(this,_0x56a53e(0x220),0x0),(this[_0x56a53e(0x1c3)]=_0x436092,this['_commandService']=_0x41269b,this[_0x56a53e(0x30b)]=_0x4b4489,this[_0x56a53e(0x1e4)]=_0x3cd3bf,this['_univerInstanceService']=_0x2167fe,this[_0x56a53e(0x32e)]=_0x489689,this[_0x56a53e(0x294)]=_0x40dc84,this[_0x56a53e(0x221)]());}[_0x2dfdce(0x221)](){const _0x2c3ad2=_0x2dfdce;this[_0x2c3ad2(0x15d)](this['_commandService'][_0x2c3ad2(0x1a8)]((_0x496283,_0xfb6afc)=>{const _0x242b9b=_0x2c3ad2;var _0x186435;if(_0x496283['id']!==_0x566a6f['id'])return;const _0x2f7806=_0x496283[_0x242b9b(0x240)];if(!this['_hasFormulaInDirtyRanges']((_0x186435=_0x2f7806['dirtyRanges'])!=null?_0x186435:[]))return;if(!this[_0x242b9b(0x285)]())throw this['_checkAndWaitForCalculationPermission'](_0x496283,_0xfb6afc),this[_0x242b9b(0x198)](),new _0x461dac();})),this['disposeWithMe'](this[_0x2c3ad2(0x348)][_0x2c3ad2(0x148)]((_0x333907,_0x7264b4)=>{const _0x5c4253=_0x2c3ad2;if(_0x333907['id']!==_0x453a50['id'])return;const _0x52d1bd=_0x333907[_0x5c4253(0x240)];if(vn(_0x52d1bd)){const _0x2734c9=_0x5c1be5();this[_0x5c4253(0x343)][_0x5c4253(0x239)](_0x2734c9),this['_startCalculationLimit'](_0x2734c9);}else{if(pn(_0x52d1bd)&&this[_0x5c4253(0x343)][_0x5c4253(0x353)]>0x0){const _0x12cf00=this[_0x5c4253(0x343)][_0x5c4253(0x2de)]();this[_0x5c4253(0x1fa)](_0x12cf00);}}}));}['dispose'](){const _0x15b467=_0x2dfdce;super[_0x15b467(0x322)](),this[_0x15b467(0x349)](),this[_0x15b467(0x343)]=[],this[_0x15b467(0x23a)]=0x0,this[_0x15b467(0x19c)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x2dfdce(0x1cd)](_0x1cec31,_0x20aead){const _0x1e14a2=_0x2dfdce;for(let _0x28e5e1=0x0;_0x28e5e1<0x1e;_0x28e5e1++)try{if(await this[_0x1e14a2(0x268)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x1cec31,_0x20aead),this[_0x1e14a2(0x1c3)][_0x1e14a2(0x17e)]({'content':this[_0x1e14a2(0x294)]['t']('formula.calculation.started'),'type':_0x3e9f2d[_0x1e14a2(0x270)]});return;}await new Promise(_0x40d867=>{const _0x54e69c=_0x1e14a2;this[_0x54e69c(0x2b1)]=window[_0x54e69c(0x235)](_0x40d867,0x3e8);});}catch(_0x8c63bd){this[_0x1e14a2(0x32e)][_0x1e14a2(0x22a)](_0x8c63bd);}this[_0x1e14a2(0x1c3)][_0x1e14a2(0x17e)]({'content':this[_0x1e14a2(0x294)]['t'](_0x1e14a2(0x24f)),'type':_0x3e9f2d['Error']});}['_applyCommand'](_0x87ad08,_0x3ad928){const _0x14b5f0=_0x2dfdce;try{this[_0x14b5f0(0x348)][_0x14b5f0(0x209)](_0x87ad08['id'],_0x87ad08[_0x14b5f0(0x240)],_0x3ad928);}catch(_0x133add){this[_0x14b5f0(0x32e)]['error'](_0x133add);}}['_setFormulaLimitStatus'](_0xa0d1f7,_0x1fa511){const _0xe92f23=_0x2dfdce;_0x1fa511<this['_lastResponseTimestamp']||(this[_0xe92f23(0x220)]=_0x1fa511,this[_0xe92f23(0x19c)]=Number[_0xe92f23(0x34f)](_0xa0d1f7['maxFormulaLimit']),this[_0xe92f23(0x23a)]=Number[_0xe92f23(0x34f)](_0xa0d1f7[_0xe92f23(0x191)]));}async[_0x2dfdce(0x354)](_0xc106b4){const _0x494a97=_0x2dfdce;var _0x55464a,_0x7b12fe;const _0x55f608=Date[_0x494a97(0x2d6)]();try{const _0x168cc3=((_0x55464a=this['_configService']['getConfig'](_0x696a50))==null?void 0x0:_0x55464a['startFormulaLimitUrl'])||Rn,_0x343269=(await this[_0x494a97(0x1e4)][_0x494a97(0x332)](_0x168cc3,{'body':JSON['stringify']({'taskId':_0xc106b4})}))[_0x494a97(0x130)];if(((_0x7b12fe=_0x343269[_0x494a97(0x22a)])==null?void 0x0:_0x7b12fe[_0x494a97(0x1b0)])!==Z['OK'])return;this[_0x494a97(0x222)](_0x343269[_0x494a97(0x299)],_0x55f608);}catch(_0x1558ac){this['_logService'][_0x494a97(0x22a)](_0x1558ac);}}async[_0x2dfdce(0x268)](_0x2e2470){const _0x5e5397=_0x2dfdce;var _0x78231a,_0x4f3ad6;const _0x2ca449=Date[_0x5e5397(0x2d6)]();try{const _0x2d757e=((_0x78231a=this[_0x5e5397(0x30b)][_0x5e5397(0x141)](_0x696a50))==null?void 0x0:_0x78231a[_0x5e5397(0x201)])||Cn,_0x22d3e4=_0x2e2470?_0x2d757e+_0x5e5397(0x307)+encodeURIComponent(_0x2e2470):_0x2d757e,_0x1583f2=(await this[_0x5e5397(0x1e4)]['get'](_0x22d3e4))['body'];if(((_0x4f3ad6=_0x1583f2[_0x5e5397(0x22a)])==null?void 0x0:_0x4f3ad6[_0x5e5397(0x1b0)])!==Z['OK'])return;this[_0x5e5397(0x222)](_0x1583f2[_0x5e5397(0x299)],_0x2ca449);}catch(_0x111c30){this[_0x5e5397(0x32e)]['error'](_0x111c30);}}async[_0x2dfdce(0x1fa)](_0x41bd33){const _0x5d41e6=_0x2dfdce;var _0x2a9e8d,_0x2624a0;const _0x53c369=Date[_0x5d41e6(0x2d6)]();try{const _0x5da6ed=((_0x2a9e8d=this[_0x5d41e6(0x30b)][_0x5d41e6(0x141)](_0x696a50))==null?void 0x0:_0x2a9e8d[_0x5d41e6(0x35a)])||Dn,_0x462a9c=(await this['_httpService']['post'](_0x5da6ed,{'body':JSON[_0x5d41e6(0x31a)]({'taskId':_0x41bd33})}))[_0x5d41e6(0x130)];if(((_0x2624a0=_0x462a9c[_0x5d41e6(0x22a)])==null?void 0x0:_0x2624a0[_0x5d41e6(0x1b0)])!==Z['OK'])return;this[_0x5d41e6(0x222)](_0x462a9c['limitInfo'],_0x53c369);}catch(_0x11d912){this[_0x5d41e6(0x32e)][_0x5d41e6(0x22a)](_0x11d912);}}[_0x2dfdce(0x285)](){const _0x4a4ee4=_0x2dfdce;return this[_0x4a4ee4(0x19c)]===0x0?!0x0:this[_0x4a4ee4(0x19c)]-this[_0x4a4ee4(0x23a)]>0x0;}['_clearPolling'](){const _0x18ff51=_0x2dfdce;this[_0x18ff51(0x2b1)]&&(clearTimeout(this['_pollingInterval']),this[_0x18ff51(0x2b1)]=null);}[_0x2dfdce(0x198)](){const _0x39514f=_0x2dfdce;this[_0x39514f(0x1c3)][_0x39514f(0x17e)]({'content':this[_0x39514f(0x294)]['t'](_0x39514f(0x204)),'type':_0x3e9f2d['Loading']});}[_0x2dfdce(0x174)](_0x7f4054){const _0xd53aab=_0x2dfdce;for(const _0x5cfd2f of _0x7f4054){const {unitId:_0x1be3f7,sheetId:_0x47e3c1,range:_0x3b4707}=_0x5cfd2f,_0x2981fd=this[_0xd53aab(0x29b)][_0xd53aab(0x2cb)](_0x1be3f7);if(!_0x2981fd)continue;const _0x2c6add=_0x2981fd[_0xd53aab(0x178)](_0x47e3c1);if(!_0x2c6add)continue;const _0x48599e=_0x2c6add['getCellMatrix']();for(let _0x5b128f=_0x3b4707[_0xd53aab(0x22c)];_0x5b128f<=_0x3b4707['endRow'];_0x5b128f++)for(let _0x2dc404=_0x3b4707[_0xd53aab(0x2ff)];_0x2dc404<=_0x3b4707[_0xd53aab(0x140)];_0x2dc404++){const _0xebf783=_0x48599e[_0xd53aab(0x29e)](_0x5b128f,_0x2dc404);if(_0xebf783&&(_0x31557c(_0xebf783['f'])||_0x2763a3(_0xebf783['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x80106c(_0x5208d9)),P(0x1,_0x3e0249),P(0x2,_0x54de01),P(0x3,_0x80106c(_0x52854e)),P(0x4,_0x3fdcd0),P(0x5,_0x4b2474),P(0x6,_0x80106c(_0x18855f))],Ie);var Nn=Object[_0x2dfdce(0x224)],bn=(_0x1abd57,_0x5a511d,_0xddff9a,_0x343fc9)=>{for(var _0x1dbb88=_0x343fc9>0x1?void 0x0:_0x343fc9?Nn(_0x5a511d,_0xddff9a):_0x5a511d,_0x13c413=_0x1abd57['length']-0x1,_0x514ee4;_0x13c413>=0x0;_0x13c413--)(_0x514ee4=_0x1abd57[_0x13c413])&&(_0x1dbb88=_0x514ee4(_0x1dbb88)||_0x1dbb88);return _0x1dbb88;},Ue=(_0x19a2f6,_0x5de9eb)=>(_0x2e2e9b,_0x13d9c7)=>_0x5de9eb(_0x2e2e9b,_0x13d9c7,_0x19a2f6);let He=class extends _0x105698{constructor(_0x5e6867,_0x1b50fa,_0x2e31b3){const _0x320712=_0x2dfdce;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x5e6867,this['_localStorageService']=_0x1b50fa,this[_0x320712(0x355)]=_0x2e31b3);}['disableLocalCache'](){const _0x558629=_0x2dfdce;this[_0x558629(0x1c0)]=!0x0;}[_0x2dfdce(0x2c4)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x289371=_0x2dfdce;return this[_0x289371(0x303)];}['dispose'](){const _0x3f7891=_0x2dfdce;this[_0x3f7891(0x1bf)]()['then'](()=>super['dispose']());}async[_0x2dfdce(0x274)](_0x4becaa){const _0x6d0bea=_0x2dfdce;return this[_0x6d0bea(0x1c0)]?null:this['_localStorageService'][_0x6d0bea(0x2db)](_0x4f2419(_0x4becaa));}async['saveOfflineData'](_0x1d22c8,_0x38ef86){const _0x26e100=_0x2dfdce;return!!this['_localStorageService'][_0x26e100(0x369)](_0x1d22c8,_0x38ef86);}[_0x2dfdce(0x28d)](_0x16aace,_0xf5a31b,_0x49c3f4,_0x32b63d){const _0x4e962c=_0x2dfdce,_0x327502=this['_revisionService']['getCurrentRevOfUnit'](_0x16aace);this[_0x4e962c(0x1f2)][_0x4e962c(0x363)](_0x16aace,{'unitID':_0x16aace,'type':_0xf5a31b,'awaitingChangeset':_0x49c3f4,'mutations':_0x32b63d,'rev':_0x327502}),this[_0x4e962c(0x303)][_0x4e962c(0x1f5)](_0x16aace)||this[_0x4e962c(0x2c9)](_0x16aace);}[_0x2dfdce(0x2c9)](_0x3da8af){const _0x1fb56b=_0x2dfdce,_0x46c1e3=this[_0x1fb56b(0x376)]();_0x46c1e3===0x0?this['_saveCache'](_0x3da8af):this[_0x1fb56b(0x303)][_0x1fb56b(0x363)](_0x3da8af,setTimeout(()=>this[_0x1fb56b(0x216)](_0x3da8af),_0x46c1e3));}[_0x2dfdce(0x376)](){const _0xc22382=_0x2dfdce;var _0x33a105;return(_0x33a105=this[_0xc22382(0x30b)][_0xc22382(0x141)](_0x16e372))!=null?_0x33a105:_0x223577;}[_0x2dfdce(0x216)](_0x41f995){const _0x30963d=_0x2dfdce,_0x3daa6f=this[_0x30963d(0x303)][_0x30963d(0x2ae)](_0x41f995);return _0x3daa6f!==void 0x0&&window[_0x30963d(0x170)](_0x3daa6f),this[_0x30963d(0x237)]['setItem'](_0x4f2419(_0x41f995),this[_0x30963d(0x1f2)][_0x30963d(0x2ae)](_0x41f995))[_0x30963d(0x134)](()=>this[_0x30963d(0x303)][_0x30963d(0x271)](_0x41f995));}async[_0x2dfdce(0x1bf)](){const _0x151fa0=_0x2dfdce,_0x29d00d=[];this['_saveTaskMap']['forEach']((_0x327def,_0x3249d7)=>{const _0x5a42b1=_0x49dd;window[_0x5a42b1(0x170)](_0x327def),_0x29d00d[_0x5a42b1(0x239)](this[_0x5a42b1(0x216)](_0x3249d7)['then'](()=>{const _0x14fe8f=_0x5a42b1;this[_0x14fe8f(0x303)][_0x14fe8f(0x271)](_0x3249d7);}));}),await Promise[_0x151fa0(0x2bb)](_0x29d00d);}};He=bn([Ue(0x0,_0x54de01),Ue(0x1,_0x3df3dc),Ue(0x2,_0x80106c(_0x1cb6f9))],He);class Ln extends _0x2c39b3{constructor(){const _0x292aea=_0x2dfdce;super(),_(this,_0x292aea(0x14a)),this[_0x292aea(0x14a)]=_0x389e77(window,_0x292aea(0x1f7))['pipe'](_0x1a23a3(this['dispose$']),_0x20b240(0x1),_0x5ce967(void 0x0));}['setParam'](_0x103696,_0x54e4d6,_0x39cd43=!0x1){const _0x2dac07=_0x2dfdce,_0x58e6c5=new URL(window['location'][_0x2dac07(0x2ac)]);_0x58e6c5[_0x2dac07(0x1ca)][_0x2dac07(0x363)](_0x103696,_0x54e4d6),_0x39cd43?window[_0x2dac07(0x179)][_0x2dac07(0x357)]('','',_0x58e6c5[_0x2dac07(0x1dd)]()):window['history']['pushState']('','',_0x58e6c5[_0x2dac07(0x1dd)]());}[_0x2dfdce(0x167)](_0x5528ea,_0x207ee9=!0x1){const _0x81c432=_0x2dfdce,_0x477a1d=new URL(window[_0x81c432(0x199)][_0x81c432(0x2ac)]);_0x477a1d[_0x81c432(0x1ca)][_0x81c432(0x271)](_0x5528ea),_0x207ee9?window[_0x81c432(0x179)][_0x81c432(0x357)]('','',_0x477a1d[_0x81c432(0x1dd)]()):window['history']['pushState']('','',_0x477a1d['toString']());}[_0x2dfdce(0x262)](_0x30de4b){const _0x3fadac=_0x2dfdce;var _0x1d9664;return(_0x1d9664=new URL(window['location'][_0x3fadac(0x2ac)])[_0x3fadac(0x1ca)]['get'](_0x30de4b))!=null?_0x1d9664:void 0x0;}}var Un=Object[_0x2dfdce(0x205)],Mn=Object[_0x2dfdce(0x224)],An=(_0xa8f375,_0x511b98,_0x171303)=>_0x511b98 in _0xa8f375?Un(_0xa8f375,_0x511b98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x171303}):_0xa8f375[_0x511b98]=_0x171303,Pn=(_0x40cd3e,_0x1ff244,_0x1a5706,_0x1d84d8)=>{const _0x447bfa=_0x2dfdce;for(var _0x2283a9=_0x1d84d8>0x1?void 0x0:_0x1d84d8?Mn(_0x1ff244,_0x1a5706):_0x1ff244,_0x47398b=_0x40cd3e[_0x447bfa(0x353)]-0x1,_0x52e729;_0x47398b>=0x0;_0x47398b--)(_0x52e729=_0x40cd3e[_0x47398b])&&(_0x2283a9=_0x52e729(_0x2283a9)||_0x2283a9);return _0x2283a9;},Me=(_0x4c0836,_0x48c98b)=>(_0x2879b8,_0x382140)=>_0x48c98b(_0x2879b8,_0x382140,_0x4c0836),wn=(_0x189c4c,_0x15e4d6,_0x53fcdf)=>An(_0x189c4c,_0x15e4d6+'',_0x53fcdf);const yn=_0x2dfdce(0x31c);let Ye=class extends _0x5c0b33{constructor(_0x19c1fa=_t,_0x56f1c2,_0xcba8ad,_0x1ab1c1){const _0x4cce80=_0x2dfdce;super(),this[_0x4cce80(0x186)]=_0x19c1fa,this['_renderManagerService']=_0x56f1c2,this['_injector']=_0xcba8ad,this[_0x4cce80(0x30b)]=_0x1ab1c1;const {..._0x54e638}=_0x4ea916({},_t,this[_0x4cce80(0x186)]);this[_0x4cce80(0x30b)][_0x4cce80(0x18a)](hn,_0x54e638);}[_0x2dfdce(0x32c)](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){const _0x11b768=_0x2dfdce;this[_0x11b768(0x18d)]();}[_0x2dfdce(0x2ce)](){const _0x4e5378=_0x2dfdce;var _0x194aec;const _0x503292=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3c007f,{'useClass':_0x322e26}],[_0x48427f,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x4e5378(0x186)][_0x4e5378(0x2ba)]&&_0x503292[_0x4e5378(0x239)]([le]),_0x481e0c(this[_0x4e5378(0x1e0)],_0x32d026(_0x503292,(_0x194aec=this[_0x4e5378(0x186)])==null?void 0x0:_0x194aec[_0x4e5378(0x16a)]));}['_registerRenderDependencies'](){const _0x1f6844=_0x2dfdce;this[_0x1f6844(0x15d)](this[_0x1f6844(0x30d)][_0x1f6844(0x233)](_0x23000e[_0x1f6844(0x2be)],[Fe])),this[_0x1f6844(0x15d)](this[_0x1f6844(0x30d)][_0x1f6844(0x233)](_0x23000e[_0x1f6844(0x193)],[ke]));}[_0x2dfdce(0x135)](){const _0x376392=_0x2dfdce;_0x34cab7(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x376392(0x186)][_0x376392(0x2ba)]&&_0x34cab7(this[_0x376392(0x1e0)],[[le]]);}};wn(Ye,_0x2dfdce(0x2a6),yn),Ye=Pn([_0x57dd49(_0x135213),Me(0x1,_0x3dc25c),Me(0x2,_0x80106c(_0x1993d7)),Me(0x3,_0x54de01)],Ye);var $n=Object[_0x2dfdce(0x224)],xn=(_0x5887f0,_0xc8c338,_0x4018e7,_0x456ec5)=>{const _0x1b12b6=_0x2dfdce;for(var _0x483263=_0x456ec5>0x1?void 0x0:_0x456ec5?$n(_0xc8c338,_0x4018e7):_0xc8c338,_0x1f0be2=_0x5887f0[_0x1b12b6(0x353)]-0x1,_0x5e5265;_0x1f0be2>=0x0;_0x1f0be2--)(_0x5e5265=_0x5887f0[_0x1f0be2])&&(_0x483263=_0x5e5265(_0x483263)||_0x483263);return _0x483263;},J=(_0x204bd4,_0x28deae)=>(_0x48a25d,_0x24ecf8)=>_0x28deae(_0x48a25d,_0x24ecf8,_0x204bd4);let ut=class extends _0x3e9be6{constructor(_0x3ce6f5,_0x318c28,_0x5f5c14,_0x977ebf,_0x1ac619){super(_0x3ce6f5,_0x318c28,_0x5f5c14,_0x977ebf,_0x1ac619);}async[_0x2dfdce(0x21b)](_0x5a3210){const _0x2844bc=_0x2dfdce,_0x226af5=await this[_0x2844bc(0x370)](),_0xb5a1ac=this[_0x2844bc(0x18e)](_0x5a3210,_0x226af5);return this[_0x2844bc(0x244)](_0xb5a1ac);}[_0x2dfdce(0x18e)](_0x3540c7,_0x3c7bb8){const _0x3d9f4d=_0x2dfdce,_0x1670d2=typeof window>'u'?new URL(_0x3540c7):new URL(_0x3540c7,window['location'][_0x3d9f4d(0x25a)]);_0x1670d2[_0x3d9f4d(0x1ca)]['set'](_0x3d9f4d(0x366),_0x3c7bb8);const _0x3d84c0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3d9f4d(0x199)][_0x3d9f4d(0x1ce)]);return _0x3d84c0[_0x3d9f4d(0x2ae)](_0x3d9f4d(0x2f2))&&_0x1670d2[_0x3d9f4d(0x1ca)][_0x3d9f4d(0x363)](_0x3d9f4d(0x2f2),_0x3d84c0[_0x3d9f4d(0x2ae)](_0x3d9f4d(0x2f2))),_0x1670d2[_0x3d9f4d(0x1dd)]();}async[_0x2dfdce(0x370)](){const _0x4ff2d8=_0x2dfdce;var _0x326973,_0x4f1f6f,_0x38dd28;const _0x4f8502=this[_0x4ff2d8(0x30b)]['getConfig'](_0x696a50),_0x934109=(_0x326973=_0x4f8502==null?void 0x0:_0x4f8502['wsSessionTicketUrl'])!=null?_0x326973:_0x9e646d;return(_0x38dd28=(_0x4f1f6f=(await this[_0x4ff2d8(0x1e4)][_0x4ff2d8(0x2ae)](_0x934109,{'headers':{'Content-Type':_0x4ff2d8(0x229)}}))[_0x4ff2d8(0x130)])==null?void 0x0:_0x4f1f6f['ticket'])!=null?_0x38dd28:'';}};ut=xn([J(0x0,_0x80106c(_0x1993d7)),J(0x1,_0x80106c(_0x52854e)),J(0x2,_0x54de01),J(0x3,_0x4b2474),J(0x4,_0x15fbe0)],ut);var Bn=Object[_0x2dfdce(0x224)],Fn=(_0xa690f7,_0x8341a,_0x175b31,_0x558497)=>{const _0x26eac3=_0x2dfdce;for(var _0x3de2b8=_0x558497>0x1?void 0x0:_0x558497?Bn(_0x8341a,_0x175b31):_0x8341a,_0x23a27d=_0xa690f7[_0x26eac3(0x353)]-0x1,_0x5d2419;_0x23a27d>=0x0;_0x23a27d--)(_0x5d2419=_0xa690f7[_0x23a27d])&&(_0x3de2b8=_0x5d2419(_0x3de2b8)||_0x3de2b8);return _0x3de2b8;},Ae=(_0x5c7d27,_0x20f1d7)=>(_0x47f124,_0x5ad2a1)=>_0x20f1d7(_0x47f124,_0x5ad2a1,_0x5c7d27);let dt=class extends _0x105698{constructor(_0x4e64ee,_0x1a9b45,_0x22feff){const _0x5857ff=_0x2dfdce;super(),this[_0x5857ff(0x2f7)]=_0x4e64ee,this[_0x5857ff(0x1e4)]=_0x1a9b45,this[_0x5857ff(0x30b)]=_0x22feff;}async[_0x2dfdce(0x34d)](_0x355825,_0x22745b,_0x5bf51e,..._0x543d03){const _0x1b6fb8=_0x2dfdce;var _0x33de6f,_0x15abd8,_0x36ef3a,_0x28c31b;const _0x273015=this[_0x1b6fb8(0x2f7)][_0x1b6fb8(0x1b9)]();if(!_0x273015)throw new Error(_0x1b6fb8(0x19a));const _0x5647c1=((_0x33de6f=this[_0x1b6fb8(0x30b)][_0x1b6fb8(0x141)](_0x6c01eb))!=null?_0x33de6f:_0x4e985b)+'/'+_0x355825+_0x1b6fb8(0x330)+_0x22745b,_0x5857c6=new URL(window[_0x1b6fb8(0x199)][_0x1b6fb8(0x2ac)]),_0x1b43a6={'scriptId':_0x355825,'runId':(_0x15abd8=_0x5857c6[_0x1b6fb8(0x1ca)][_0x1b6fb8(0x2ae)]('runId'))!=null?_0x15abd8:'','function':_0x22745b,'unitId':_0x273015[_0x1b6fb8(0x325)](),'argsOfFunction':JSON['stringify'](_0x543d03),'invokeId':(_0x36ef3a=_0x5bf51e[_0x1b6fb8(0x2df)])!=null?_0x36ef3a:'','executionId':(_0x28c31b=_0x5bf51e[_0x1b6fb8(0x1b5)])!=null?_0x28c31b:''};try{const _0x5ebff1=await this[_0x1b6fb8(0x1e4)][_0x1b6fb8(0x332)](_0x5647c1,{'body':_0x1b43a6});return _0x5ebff1[_0x1b6fb8(0x130)][_0x1b6fb8(0x22a)]&&_0x5ebff1[_0x1b6fb8(0x130)][_0x1b6fb8(0x22a)][_0x1b6fb8(0x1b0)]!==Z['OK']?_0x1b6fb8(0x1c7):_0x5ebff1[_0x1b6fb8(0x130)][_0x1b6fb8(0x27b)];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x3fdcd0),Ae(0x1,_0x80106c(_0x52854e)),Ae(0x2,_0x54de01)],dt);const St=0x7530,It=_0x2dfdce(0x27f);class rr extends _0x105698{constructor(){const _0x58aa12=_0x2dfdce;super(),_(this,_0x58aa12(0x1d3),_0x5c1be5()),_(this,_0x58aa12(0x162),new Set()),_(this,_0x58aa12(0x153),new Map()),_(this,_0x58aa12(0x1bc),null),_(this,_0x58aa12(0x1cb),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x1f2ffa=_0x2dfdce;super['dispose'](),this[_0x1f2ffa(0x1cb)]['forEach']((_0x320d35,_0x1a300f)=>this[_0x1f2ffa(0x1a6)](_0x1a300f)),this[_0x1f2ffa(0x1bc)]&&window[_0x1f2ffa(0x1d9)](this[_0x1f2ffa(0x1bc)]);}[_0x2dfdce(0x34b)](_0x502a0e){const _0xf5a297=_0x2dfdce;return this[_0xf5a297(0x1cc)](_0x502a0e)['pipe'](_0x58c13d());}[_0x2dfdce(0x1de)](_0x521e92){const _0x4c8dc9=_0x2dfdce;this[_0x4c8dc9(0x162)][_0x4c8dc9(0x2a5)]===0x0&&this[_0x4c8dc9(0x266)](),this[_0x4c8dc9(0x162)]['add'](_0x521e92),this[_0x4c8dc9(0x1a9)]({'type':0x0,'memberID':this[_0x4c8dc9(0x1d3)],'unitIDs':[_0x521e92],'isForwarded':!0x1});}[_0x2dfdce(0x16d)](_0x32f24c){const _0x27eed2=_0x2dfdce;this[_0x27eed2(0x162)][_0x27eed2(0x271)](_0x32f24c),this[_0x27eed2(0x162)][_0x27eed2(0x2a5)]===0x0&&this[_0x27eed2(0x1bc)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x2dfdce(0x187)](){const _0x4a640f=_0x2dfdce;this[_0x4a640f(0x15d)](_0x2e089f(_0x389e77(window,_0x4a640f(0x1ec))[_0x4a640f(0x26a)](_0x5829fd=>{const _0x59da7b=_0x4a640f;if(_0x5829fd[_0x59da7b(0x1fc)]!==It||!_0x5829fd[_0x59da7b(0x166)])return;const _0x21a369=JSON['parse'](_0x5829fd[_0x59da7b(0x166)]);this[_0x59da7b(0x1d0)](_0x21a369);}))),window[_0x4a640f(0x25c)](_0x4a640f(0x248),()=>this[_0x4a640f(0x1a9)]({'type':0x1,'memberID':this[_0x4a640f(0x1d3)],'unitIDs':Array[_0x4a640f(0x225)](this[_0x4a640f(0x162)])}));}[_0x2dfdce(0x1d0)](_0x363319){const _0xdf8057=_0x2dfdce;switch(_0x363319[_0xdf8057(0x200)]){case 0x0:this[_0xdf8057(0x13e)](_0x363319);break;case 0x1:this[_0xdf8057(0x18f)](_0x363319);break;case 0x2:this[_0xdf8057(0x2e9)](_0x363319);break;}}[_0x2dfdce(0x13e)](_0xafb0dd){const _0x139972=_0x2dfdce,{unitIDs:_0x1be047,memberID:_0x3b0d86,isForwarded:_0x4e8c0f}=_0xafb0dd;_0x1be047[_0x139972(0x28a)](_0x443467=>{const _0x1121c6=_0x139972;if(!_0x4e8c0f&&this[_0x1121c6(0x153)]['has'](_0x443467)&&this[_0x1121c6(0x1cc)](_0x443467)[_0x1121c6(0x351)](_0x4f5cb1['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x1121c6(0x1f5)](_0x443467)||!this['_unitOnClients'][_0x1121c6(0x2ae)](_0x443467)['has'](_0x3b0d86)){const _0x2f9e2a=this[_0x1121c6(0x153)]['get'](_0x443467)||new Set();_0x2f9e2a[_0x1121c6(0x257)](_0x3b0d86),this[_0x1121c6(0x153)][_0x1121c6(0x363)](_0x443467,_0x2f9e2a),this[_0x1121c6(0x2e3)](_0x3b0d86);}}),_0x4e8c0f||this[_0x139972(0x1a9)]({'type':0x0,'memberID':this[_0x139972(0x1d3)],'unitIDs':[...this[_0x139972(0x162)]],'isForwarded':!0x0});}[_0x2dfdce(0x2e3)](_0x2b454a){const _0x3c1648=_0x2dfdce;this[_0x3c1648(0x1a6)](_0x2b454a);const _0x50520d=window[_0x3c1648(0x235)](()=>{const _0x462cdf=_0x3c1648;this[_0x462cdf(0x153)]['forEach'](_0xc28de7=>{const _0x516b3d=_0x462cdf;_0xc28de7[_0x516b3d(0x271)](_0x2b454a);});},St*0x2);this['_clearOtherTimers'][_0x3c1648(0x363)](_0x2b454a,_0x50520d);}['_removeClearOtherTimer'](_0x412476){const _0x25b270=_0x2dfdce;if(this['_clearOtherTimers']['has'](_0x412476)){const _0x3f0433=this['_clearOtherTimers'][_0x25b270(0x2ae)](_0x412476);_0x3f0433&&window[_0x25b270(0x170)](_0x3f0433),this[_0x25b270(0x1cb)][_0x25b270(0x363)](_0x412476,null);}}[_0x2dfdce(0x18f)](_0x18f76f){const _0x363db3=_0x2dfdce,{memberID:_0x3f4029,unitIDs:_0x5ad1f2}=_0x18f76f;_0x5ad1f2[_0x363db3(0x28a)](_0x2fe5d0=>{const _0x46e64f=_0x363db3;var _0x2fda52;const _0x5e6688=this[_0x46e64f(0x153)]['get'](_0x2fe5d0);_0x5e6688&&(_0x5e6688[_0x46e64f(0x271)](_0x3f4029),(_0x2fda52=this['_ensureSubject'](_0x2fe5d0))==null||_0x2fda52[_0x46e64f(0x351)](_0x5e6688[_0x46e64f(0x2a5)]===0x0?_0x4f5cb1[_0x46e64f(0x2ca)]:_0x4f5cb1['OTHER_CLIENTS_EDITING']));}),this[_0x363db3(0x1a6)](_0x3f4029);}['_handleHeartbeatEvent'](_0x23c111){const _0x30c0ef=_0x2dfdce;this[_0x30c0ef(0x2e3)](_0x23c111[_0x30c0ef(0x319)]);}[_0x2dfdce(0x1a9)](_0x3dbe6a){const _0x35ac6c=_0x2dfdce;localStorage[_0x35ac6c(0x369)](It,JSON[_0x35ac6c(0x31a)](_0x3dbe6a));}[_0x2dfdce(0x266)](){const _0x5c4f84=_0x2dfdce;this[_0x5c4f84(0x1bc)]=window[_0x5c4f84(0x25b)](()=>{const _0x4558f9=_0x5c4f84;this['_send']({'type':0x2,'memberID':this[_0x4558f9(0x1d3)]});},St);}[_0x2dfdce(0x1cc)](_0x15b686){const _0x52536b=_0x2dfdce;return this[_0x52536b(0x20a)][_0x52536b(0x1f5)](_0x15b686)||this[_0x52536b(0x20a)][_0x52536b(0x363)](_0x15b686,new _0x378dd0(_0x4f5cb1[_0x52536b(0x2ca)])),this[_0x52536b(0x20a)][_0x52536b(0x2ae)](_0x15b686);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x36542c=_0x4dd1;(function(_0x469b09,_0x3ff677){const _0x564d83=_0x4dd1,_0x37edb7=_0x469b09();while(!![]){try{const _0x2c53a5=parseInt(_0x564d83(0x2e3))/0x1+-parseInt(_0x564d83(0x2e8))/0x2*(-parseInt(_0x564d83(0x1cd))/0x3)+parseInt(_0x564d83(0x187))/0x4+-parseInt(_0x564d83(0x129))/0x5*(parseInt(_0x564d83(0x130))/0x6)+-parseInt(_0x564d83(0x256))/0x7+parseInt(_0x564d83(0x30e))/0x8+-parseInt(_0x564d83(0x12c))/0x9;if(_0x2c53a5===_0x3ff677)break;else _0x37edb7['push'](_0x37edb7['shift']());}catch(_0x639c27){_0x37edb7['push'](_0x37edb7['shift']());}}}(_0x24c3,0x2dd78));var Yt=Object[_0x36542c(0x22b)],Wt=(_0x22554f,_0x262451,_0x4d28da)=>_0x262451 in _0x22554f?Yt(_0x22554f,_0x262451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d28da}):_0x22554f[_0x262451]=_0x4d28da,_=(_0x1e7b56,_0x3a7d6e,_0x25b006)=>Wt(_0x1e7b56,typeof _0x3a7d6e!=_0x36542c(0x2d1)?_0x3a7d6e+'':_0x3a7d6e,_0x25b006);import{jsx as _0x2ded1c,jsxs as _0x16fa83}from'react/jsx-runtime';import{CollaborationStatus as _0x23527c,CollaborationSessionService as _0x403187,CollaborationController as _0xeb50a,DataLoaderService as _0x4c8203,MemberService as _0x40b044,SessionStatus as _0x355249,ILocalCacheService as _0x386892,CollaborationUIEventService as _0x5a0b75,CollaborationUIEventId as _0x5b6a2e,DocCollaborationEntity as _0x59bf88,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x289bc7,getLocalCacheKey as _0x2b234a,LOCAL_CACHE_INTERVAL as _0xf2292,LOCAL_CACHE_INTERVAL_KEY as _0x490f83,UniverCollaborationClientPlugin as _0x405f63,CollaborationSocketService as _0x3f9356,DEFAULT_WS_SESSION_TICKET_URL as _0x1745dd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5e5c8e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xaab990,UnitStatus as _0x3e2038}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x1cbe37,IUniverInstanceService as _0x4d0d85,Inject as _0x338b4d,Injector as _0x2c838e,Disposable as _0xc640cc,createIdentifier as _0x3626ec,ILogService as _0x4838cb,ICommandService as _0x344a42,Optional as _0x175102,RxDisposable as _0x2e3ce9,Workbook as _0x4ddd2c,DOC_RANGE_TYPE as _0x584882,debounce as _0x9e9857,Rectangle as _0x2e16f4,DisposableCollection as _0x543d43,toDisposable as _0x6a8bba,UniverInstanceType as _0x11c449,generateRandomId as _0x52eed0,COLORS as _0x1bb289,ColorKit as _0x131f5a,ThemeService as _0x331d79,fromEventSubject as _0x4a08d3,Tools as _0x36941c,CommandType as _0x185fc4,IConfigService as _0x3da9ca,CanceledError as _0x5548aa,isFormulaString as _0x33f895,isFormulaId as _0x57b445,ILocalStorageService as _0x15b36e,DependentOn as _0x3fcff2,Plugin as _0x3eef90,merge as _0x12e663,registerDependencies as _0x238b35,mergeOverrideWithDependencies as _0x10c9d8,touchDependencies as _0x878293}from'@univerjs/core';import{useObservable as _0x34b08a,useDependency as _0x347d2d,IUIPartsService as _0x400226,BuiltInUIPart as _0x27f577,connectInjector as _0x201ff9,IBeforeCloseService as _0x2bbef3,IMessageService as _0x90efad,INotificationService as _0x59af86}from'@univerjs/ui';import{BehaviorSubject as _0x311c05,switchMap as _0x245695,of as _0x5eb303,takeUntil as _0x5427bd,debounceTime as _0x21f33f,Subject as _0x447fde,filter as _0x4479ea,merge as _0x343681,combineLatest as _0x174358,fromEvent as _0x35f93f,shareReplay as _0x48f2bc,mapTo as _0x2a8f2a,distinctUntilChanged as _0x441b5e}from'rxjs';import{Tooltip as _0x153236,clsx as _0x3512bb,MessageType as _0x5d4ed0}from'@univerjs/design';import{useRef as _0x10c6e2,createElement as _0x37d50e,forwardRef as _0x2b3773,useCallback as _0x1c5f7c}from'react';import{IRemoteInstanceService as _0xc83799}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5ab370,RefRangeService as _0x2b036c,SetSelectionsOperation as _0xe3e116,SheetsSelectionsService as _0x50f7fc,EffectRefRangId as _0xbdbc78,handleIRemoveRow as _0x33c362,handleIRemoveCol as _0x90c53d,handleMoveRange as _0x1630dc,handleInsertRow as _0xabb663,handleInsertRangeMoveRight as _0x30ec30,handleInsertRangeMoveDown as _0x198007,handleInsertCol as _0x667606,handleDeleteRangeMoveUp as _0x4cf62c,handleDeleteRangeMoveLeft as _0x56041b,runRefRangeMutations as _0x5161f8}from'@univerjs/sheets';import{Shape as _0x1e4876,Rect as _0x20c8d4,getColor as _0x4a919b,RegularPolygon as _0x43c252,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x7f58f8,Vector2 as _0x35ebd3,SHEET_VIEWPORT_KEY as _0x2e4a5e,IRenderManagerService as _0x325ffd}from'@univerjs/engine-render';import{HTTPService as _0x5f42ec,ISocketService as _0x1a891b,WebSocketService as _0x566dd2}from'@univerjs/network';import{IDocClipboardService as _0x4f1f12,NodePositionConvertToCursor as _0x1cb209,NodePositionConvertToRectRange as _0x22d440,TEXT_RANGE_LAYER_INDEX as _0x513ae7,SetDocZoomRatioOperation as _0x1e5c3e,DocIMEInputManagerService as _0x40b6fc,DocStateChangeManagerService as _0x2cc006}from'@univerjs/docs-ui';import{IImageIoService as _0x505849}from'@univerjs/drawing';import{ITransformService as _0x20cc24,CollaborationEvent as _0x31f204,isTransformMutationFailure as _0x5aaf2c,isTransformMutationsWithChangesetSuccess as _0x41b3f2,RevisionService as _0x2e162a,ISnapshotServerService as _0x2f7663}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43ed68,RichTextEditingMutation as _0x14a58c,DocSelectionManagerService as _0x564962,DocSkeletonManagerService as _0x265ea4}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4a4084,serializeRangeWithSheet as _0x73d1ce,FormulaExecuteStageType as _0x2e6da7,FormulaExecutedStateType as _0x267fe6,SetFormulaCalculationStartMutation as _0x384e02,SetFormulaCalculationNotificationMutation as _0x8dbaaa}from'@univerjs/engine-formula';import{map as _0x59c5bc,filter as _0x283ed0,throttleTime as _0x218010,takeUntil as _0x88348d,switchMap as _0x469c3c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x49f76f,getCoordByCell as _0x504140,getSheetObject as _0x3b0908}from'@univerjs/sheets-ui';function Ge({ref:_0x5ae69d,..._0x537d83}){const _0x20cb19=_0x36542c,{icon:_0x2e55c1,id:_0x7a5981,className:_0x128a89,extend:_0x8dffc4,..._0x317057}=_0x537d83,_0x54508a=(_0x20cb19(0x26a)+_0x7a5981+'\x20'+(_0x128a89||''))[_0x20cb19(0x20e)](),_0x110649=_0x10c6e2('_'+vi());return At(_0x2e55c1,''+_0x7a5981,{'defIds':_0x2e55c1[_0x20cb19(0x11c)],'idSuffix':_0x110649[_0x20cb19(0x333)]},{'ref':_0x5ae69d,'className':_0x54508a,..._0x317057},_0x8dffc4);}function At(_0x484c25,_0x380377,_0x491806,_0x6fec5a,_0x7aee01){const _0x5b68f1=_0x36542c;return _0x37d50e(_0x484c25[_0x5b68f1(0x2a7)],{'key':_0x380377,...gi(_0x484c25,_0x491806,_0x7aee01),..._0x6fec5a},(Ei(_0x484c25,_0x491806)['children']||[])[_0x5b68f1(0x257)]((_0x1c0188,_0x2984e2)=>At(_0x1c0188,_0x380377+'-'+_0x484c25[_0x5b68f1(0x2a7)]+'-'+_0x2984e2,_0x491806,void 0x0,_0x7aee01)));}function gi(_0x136c5f,_0x12be0f,_0x33e5cc){const _0x2a548c=_0x36542c,_0x59048b={..._0x136c5f[_0x2a548c(0x34d)]};_0x33e5cc!=null&&_0x33e5cc[_0x2a548c(0x244)]&&_0x59048b[_0x2a548c(0x169)]===_0x2a548c(0x244)&&(_0x59048b[_0x2a548c(0x169)]=_0x33e5cc['colorChannel1']),_0x136c5f['tag']===_0x2a548c(0x23b)&&_0x59048b['id']&&(_0x59048b['id']=_0x59048b['id']+_0x12be0f[_0x2a548c(0x27d)]),Object['entries'](_0x59048b)[_0x2a548c(0x310)](([_0x283926,_0x4ebd13])=>{const _0x2f2b14=_0x2a548c;_0x283926===_0x2f2b14(0x23b)&&typeof _0x4ebd13==_0x2f2b14(0x289)&&(_0x59048b[_0x283926]=_0x4ebd13[_0x2f2b14(0x2b4)](/url\(#(.*)\)/,'url(#$1'+_0x12be0f[_0x2f2b14(0x27d)]+')'));});const {defIds:_0x30b08b}=_0x12be0f;return!_0x30b08b||_0x30b08b[_0x2a548c(0x125)]===0x0||(_0x136c5f[_0x2a548c(0x2a7)]===_0x2a548c(0x274)&&_0x59048b[_0x2a548c(0x215)]&&(_0x59048b['xlink:href']=_0x59048b['xlink:href']+_0x12be0f[_0x2a548c(0x27d)]),Object[_0x2a548c(0x318)](_0x59048b)['forEach'](([_0x468dbc,_0x4cbd10])=>{const _0x3a7544=_0x2a548c;typeof _0x4cbd10=='string'&&(_0x59048b[_0x468dbc]=_0x4cbd10[_0x3a7544(0x2b4)](/url\(#(.*)\)/,_0x3a7544(0x31b)+_0x12be0f[_0x3a7544(0x27d)]+')'));})),_0x59048b;}function Ei(_0x8f9da1,_0x4757d7){const _0x39a566=_0x36542c;var _0x13b39d;const {defIds:_0x21e95b}=_0x4757d7;return!_0x21e95b||_0x21e95b[_0x39a566(0x125)]===0x0?_0x8f9da1:_0x8f9da1['tag']===_0x39a566(0x303)&&((_0x13b39d=_0x8f9da1[_0x39a566(0x336)])!=null&&_0x13b39d['length'])?{..._0x8f9da1,'children':_0x8f9da1[_0x39a566(0x336)][_0x39a566(0x257)](_0x5df71a=>typeof _0x5df71a[_0x39a566(0x34d)]['id']==_0x39a566(0x289)&&_0x21e95b&&_0x21e95b['includes'](_0x5df71a[_0x39a566(0x34d)]['id'])?{..._0x5df71a,'attrs':{..._0x5df71a[_0x39a566(0x34d)],'id':_0x5df71a['attrs']['id']+_0x4757d7[_0x39a566(0x27d)]}}:_0x5df71a)}:_0x8f9da1;}function vi(){const _0x54f7cd=_0x36542c;return Math['random']()[_0x54f7cd(0x153)](0x24)[_0x54f7cd(0x260)](0x2,0x8);}Ge[_0x36542c(0x2a4)]='UniverIcon';const pi={'tag':_0x36542c(0x1b0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x36542c(0x2f5),'viewBox':_0x36542c(0x229),'width':'1em','height':_0x36542c(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':_0x36542c(0x29b)},'children':[{'tag':'path','attrs':{'stroke':_0x36542c(0x26c),'d':_0x36542c(0x322),'strokeLinecap':_0x36542c(0x1b6),'strokeLinejoin':_0x36542c(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x36542c(0x303),'attrs':{},'children':[{'tag':_0x36542c(0x1f9),'attrs':{'id':_0x36542c(0x24c)},'children':[{'tag':'path','attrs':{'fill':_0x36542c(0x2c5),'d':_0x36542c(0x331)}}]}]}],'defIds':[_0x36542c(0x24c)]},Pt=_0x2b3773(function(_0x157690,_0x3d2175){const _0x2dd553=_0x36542c;return _0x37d50e(Ge,Object[_0x2dd553(0x1a9)]({},_0x157690,{'id':_0x2dd553(0x250),'ref':_0x3d2175,'icon':pi}));});Pt[_0x36542c(0x2a4)]=_0x36542c(0x2bb);const Oi={'tag':_0x36542c(0x1b0),'attrs':{'xmlns':_0x36542c(0x305),'fill':_0x36542c(0x2f5),'viewBox':_0x36542c(0x29f),'width':_0x36542c(0x18e),'height':_0x36542c(0x18e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x36542c(0x2e6),'attrs':{'stroke':'currentColor','d':_0x36542c(0x29d),'strokeLinecap':_0x36542c(0x1b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x36542c(0x303),'attrs':{},'children':[{'tag':_0x36542c(0x1f9),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x36542c(0x2e6),'attrs':{'fill':'white','d':_0x36542c(0x331),'transform':_0x36542c(0x2d5)}}]}]}],'defIds':[_0x36542c(0x1e8)]},wt=_0x2b3773(function(_0x1978d1,_0x389b9c){const _0x4c65a2=_0x36542c;return _0x37d50e(Ge,Object[_0x4c65a2(0x1a9)]({},_0x1978d1,{'id':_0x4c65a2(0x2f3),'ref':_0x389b9c,'icon':Oi}));});wt[_0x36542c(0x2a4)]=_0x36542c(0x18d);function Ti(_0x380efc){const _0xb1896=_0x36542c;switch(_0x380efc){case _0x23527c[_0xb1896(0x202)]:return _0xb1896(0x156);case _0x23527c[_0xb1896(0x1f4)]:return _0xb1896(0x127);case _0x23527c[_0xb1896(0x268)]:return'collabStatus.fetchMiss';case _0x23527c[_0xb1896(0x277)]:return'collabStatus.notCollab';case _0x23527c['AWAITING']:case _0x23527c[_0xb1896(0x2db)]:return _0xb1896(0x239);case _0x23527c[_0xb1896(0x164)]:case _0x23527c[_0xb1896(0x30f)]:return _0xb1896(0x1fa);}}function Ci(_0x101286){const _0x47609f=_0x36542c,{status$:_0x46c7d5}=_0x101286,_0x1e3f66=_0x34b08a(_0x46c7d5,_0x23527c[_0x47609f(0x277)]),_0x387b61=_0x347d2d(_0x1cbe37),_0x2a591d=_0x347d2d(_0x403187),_0x308a86=_0x1e3f66!==_0x23527c[_0x47609f(0x202)],_0x4a9f3f=_0x387b61['t'](Ti(_0x1e3f66)),_0x1d7a3a=_0x308a86?_0x2ded1c(wt,{}):_0x2ded1c(Pt,{}),_0x5eb4d7=_0x1c5f7c(()=>{_0x308a86||_0x2a591d['reconnect']();},[_0x308a86,_0x2a591d]);function _0x401a98(){const _0x38eb0c=_0x47609f;return _0x16fa83('div',{'className':_0x38eb0c(0x261),'onClick':_0x5eb4d7,'children':[_0x2ded1c(_0x38eb0c(0x1b4),{'className':_0x3512bb(_0x38eb0c(0x32a),{'univer-text-green-500':_0x308a86,'univer-text-red-500':!_0x308a86}),'children':_0x1d7a3a}),_0x2ded1c(_0x38eb0c(0x1b4),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4a9f3f})]});}return _0x308a86?_0x401a98():_0x2ded1c(_0x153236,{'title':_0x387b61['t'](_0x47609f(0x208)),'children':_0x401a98()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x4542c0,_0x3151b8,_0x4674a9,_0x2d1b21)=>{const _0x58968e=_0x36542c;for(var _0x57f90e=_0x2d1b21>0x1?void 0x0:_0x2d1b21?Ri(_0x3151b8,_0x4674a9):_0x3151b8,_0x49d9a7=_0x4542c0[_0x58968e(0x125)]-0x1,_0x42b88d;_0x49d9a7>=0x0;_0x49d9a7--)(_0x42b88d=_0x4542c0[_0x49d9a7])&&(_0x57f90e=_0x42b88d(_0x57f90e)||_0x57f90e);return _0x57f90e;},se=(_0x2181f0,_0x3b1b1b)=>(_0x14b353,_0x5e5aca)=>_0x3b1b1b(_0x14b353,_0x5e5aca,_0x2181f0);let ae=class extends _0xc640cc{constructor(_0x2c31ed,_0x4f4182,_0x317ce4,_0xcfbe2f){const _0x2b3fa0=_0x36542c;super(),_(this,'_status$',new _0x311c05(_0x23527c[_0x2b3fa0(0x277)])),(this['_univerInstanceService']=_0x2c31ed,this['_injector']=_0x4f4182,this[_0x2b3fa0(0x183)]=_0x317ce4,this[_0x2b3fa0(0x193)]=_0xcfbe2f,this[_0x2b3fa0(0x253)](),this['_initStatusListener']());}[_0x36542c(0x11b)](){const _0xbc5122=_0x36542c;this[_0xbc5122(0x2e0)](this[_0xbc5122(0x2c2)]['focused$'][_0xbc5122(0x124)](_0x245695(()=>{const _0x47792e=_0xbc5122,_0x19a591=this['_univerInstanceService'][_0x47792e(0x1d2)]();return _0x19a591?this[_0x47792e(0x183)]['getCollabEntity$'](_0x19a591[_0x47792e(0x123)]()):_0x5eb303(null);}),_0x245695(_0xc6c925=>_0xc6c925?_0xc6c925[_0xbc5122(0x306)]:_0x5eb303(_0x23527c['NOT_COLLAB'])))[_0xbc5122(0x1cc)](_0x431b9d=>{const _0x5bd12a=_0xbc5122;this['_status$'][_0x5bd12a(0x21f)](_0x431b9d);}));}[_0x36542c(0x253)](){const _0x30b59a=_0x36542c;this[_0x30b59a(0x2e0)](this[_0x30b59a(0x193)][_0x30b59a(0x190)](_0x27f577['HEADER_MENU'],()=>_0x201ff9(Ni({'status$':this[_0x30b59a(0x241)][_0x30b59a(0x231)]()}),this[_0x30b59a(0x207)])));}};ae=Di([se(0x0,_0x4d0d85),se(0x1,_0x338b4d(_0x2c838e)),se(0x2,_0x338b4d(_0xeb50a)),se(0x3,_0x400226)],ae);function Ni(_0x3b82c7){const {status$:_0x253590}=_0x3b82c7;return function(){return _0x2ded1c(Ci,{'status$':_0x253590});};}const yt=_0x3626ec('uni.network.url-service');var bi=Object[_0x36542c(0x281)],Li=(_0x5dd554,_0x27285c,_0x53b3fc,_0x363b5a)=>{const _0x311e22=_0x36542c;for(var _0x2f2929=_0x363b5a>0x1?void 0x0:_0x363b5a?bi(_0x27285c,_0x53b3fc):_0x27285c,_0x434116=_0x5dd554[_0x311e22(0x125)]-0x1,_0x198645;_0x434116>=0x0;_0x434116--)(_0x198645=_0x5dd554[_0x434116])&&(_0x2f2929=_0x198645(_0x2f2929)||_0x2f2929);return _0x2f2929;},K=(_0xc1c7b6,_0x1558f1)=>(_0x368977,_0x452404)=>_0x1558f1(_0x368977,_0x452404,_0xc1c7b6);let ce=class extends _0x2e3ce9{constructor(_0x3996ba,_0x316ae7,_0xdc80a6,_0x6d1668,_0x419999){const _0x671df8=_0x36542c;super(),this[_0x671df8(0x233)]=_0x3996ba,this['_logService']=_0x316ae7,this[_0x671df8(0x14b)]=_0xdc80a6,this['_dataLoaderService']=_0x6d1668,_0x419999?_0x419999==null||_0x419999[_0x671df8(0x264)]()[_0x671df8(0x2de)](()=>this[_0x671df8(0x2f7)]()):(this[_0x671df8(0x14d)][_0x671df8(0x1bc)](_0x671df8(0x126),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x671df8(0x2f7)]());}async[_0x36542c(0x2f7)](){const _0x244851=_0x36542c,_0x631a07=this['_urlService']['getParam'](_0x244851(0x33c)),_0x1b6e21=this[_0x244851(0x233)][_0x244851(0x12f)]('type'),_0x198bda=this[_0x244851(0x233)][_0x244851(0x12f)]('subunit');if(!_0x631a07||!_0x1b6e21){this['_logService'][_0x244851(0x1bc)](_0x244851(0x126),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x21d1ba=await this[_0x244851(0x1b1)]['loadUnit'](_0x631a07,Number(_0x1b6e21),_0x198bda);_0x21d1ba&&_0x21d1ba instanceof _0x4ddd2c&&this[_0x244851(0x1b3)](_0x21d1ba);}async[_0x36542c(0x1b3)](_0x169fb9){const _0x527794=_0x36542c;await this['_updateSubUnitFromURLParams'](_0x169fb9),_0x169fb9['activeSheet$']['pipe'](_0x5427bd(this[_0x527794(0x272)]))[_0x527794(0x1cc)](_0x1f8afd=>{const _0x1ae193=_0x527794;_0x1f8afd&&this[_0x1ae193(0x23f)](_0x1f8afd);}),this[_0x527794(0x233)]['urlChange$'][_0x527794(0x124)](_0x5427bd(this[_0x527794(0x272)]))[_0x527794(0x1cc)](()=>this['_updateSubUnitFromURLParams'](_0x169fb9));}['_updateURLWithCurrentState'](_0x4c7d79,_0x181a7d=!0x1){const _0x5bfae1=_0x36542c,_0x43860b=this[_0x5bfae1(0x233)][_0x5bfae1(0x12f)](_0x5bfae1(0x22c));_0x4c7d79['getSheetId']()!==_0x43860b&&this[_0x5bfae1(0x233)][_0x5bfae1(0x291)](_0x5bfae1(0x22c),_0x4c7d79[_0x5bfae1(0x1d7)](),_0x181a7d);}async['_updateSubUnitFromURLParams'](_0x45ba4c){const _0x4b628b=_0x36542c;var _0x3c85c8;const _0x4057b9=this[_0x4b628b(0x233)]['getParam'](_0x4b628b(0x22c));if(!_0x4057b9||!_0x45ba4c[_0x4b628b(0x316)](_0x4057b9)){const _0x55495a=_0x45ba4c[_0x4b628b(0x2cd)]()[0x0],_0x505edb=_0x45ba4c[_0x4b628b(0x316)](_0x55495a);if(!_0x505edb)return;this[_0x4b628b(0x23f)](_0x505edb,!0x0),await this['_commandService'][_0x4b628b(0x302)](_0x5ab370['id'],{'unitId':_0x45ba4c[_0x4b628b(0x123)](),'subUnitId':_0x55495a});return;}((_0x3c85c8=_0x45ba4c[_0x4b628b(0x1fc)]())==null?void 0x0:_0x3c85c8[_0x4b628b(0x1d7)]())!==_0x4057b9&&await this[_0x4b628b(0x14b)][_0x4b628b(0x302)](_0x5ab370['id'],{'unitId':_0x45ba4c[_0x4b628b(0x123)](),'subUnitId':_0x4057b9});}};ce=Li([K(0x0,yt),K(0x1,_0x4838cb),K(0x2,_0x344a42),K(0x3,_0x338b4d(_0x4c8203)),K(0x4,_0x175102(_0xc83799))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x51406e,_0x5aaf50,_0x724836,_0x3ed0af)=>{for(var _0x1fa4c1=_0x3ed0af>0x1?void 0x0:_0x3ed0af?Ui(_0x5aaf50,_0x724836):_0x5aaf50,_0x4b97a4=_0x51406e['length']-0x1,_0xbca35b;_0x4b97a4>=0x0;_0x4b97a4--)(_0xbca35b=_0x51406e[_0x4b97a4])&&(_0x1fa4c1=_0xbca35b(_0x1fa4c1)||_0x1fa4c1);return _0x1fa4c1;},rt=(_0x208bb6,_0x111f6c)=>(_0x3353e8,_0x3ba352)=>_0x111f6c(_0x3353e8,_0x3ba352,_0x208bb6);let $e=class extends _0x2e3ce9{constructor(_0x3f6f02,_0x3bb9fb){const _0x6c2081=_0x36542c;super(),this[_0x6c2081(0x1c4)]=_0x3f6f02,this['_imageIoService']=_0x3bb9fb,this[_0x6c2081(0x2f7)]();}[_0x36542c(0x2f7)](){const _0x32cd56=_0x36542c,_0xbeafff=this;this[_0x32cd56(0x2e0)](this['_docClipboardService'][_0x32cd56(0x1e7)]({'onBeforePasteImage':async _0x4f8da0=>{const _0x3fae16=_0x32cd56,_0x1fd6dc=await _0xbeafff['_imageIoService'][_0x3fae16(0x11d)](_0x4f8da0);return _0x1fd6dc?{'source':_0x1fd6dc[_0x3fae16(0x1a7)],'imageSourceType':_0x1fd6dc['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x4f1f12),rt(0x1,_0x505849)],$e);const ot=[_0x36542c(0x327),_0x36542c(0x28f),'green.600',_0x36542c(0x31a),_0x36542c(0x113),_0x36542c(0x1e2)];class Ke extends _0xc640cc{constructor(){const _0xb23bfb=_0x36542c;super(...arguments),_(this,_0xb23bfb(0x2a6),new Map()),_(this,_0xb23bfb(0x2c3),0x0);}['assignAColorForMemberID'](_0xac646e){const _0x1dc201=_0x36542c;if(this[_0x1dc201(0x2a6)][_0x1dc201(0x16f)](_0xac646e))return this[_0x1dc201(0x2a6)][_0x1dc201(0x194)](_0xac646e);const _0x48fb72=ot[this[_0x1dc201(0x2c3)]];return this[_0x1dc201(0x2c3)]=(this['_colorIndex']+0x1)%ot[_0x1dc201(0x125)],this[_0x1dc201(0x2a6)][_0x1dc201(0x25a)](_0xac646e,_0x48fb72),_0x48fb72;}}function $t(_0x5420e5){const _0x3d53f2=_0x36542c;let _0x3dffa9='';for(const _0x438db6 of _0x5420e5){const {startOffset:_0xab6d73,endOffset:_0x1309d2,isActive:_0x539504,rangeType:_0x290224,segmentId:_0x5250f0,segmentPage:_0x3664ec}=_0x438db6;_0x3dffa9[_0x3d53f2(0x125)]&&(_0x3dffa9+=','),_0x3dffa9+=_0xab6d73+':'+_0x1309d2+':'+(_0x539504?'1':'0')+':'+_0x290224+':'+_0x5250f0+':'+_0x3664ec;}return _0x3dffa9;}function Ai(_0x10ce74){const _0x10cbb0=_0x36542c,_0xec2957=_0x10ce74['split'](','),_0x2d6841=[];for(const _0x2a4046 of _0xec2957){const [_0x4d1a76,_0x1046a0,_0x476537,_0x43e014,_0x2ce495,_0x44c87c]=_0x2a4046['split'](':');_0x2d6841[_0x10cbb0(0x133)]({'startOffset':Number(_0x4d1a76),'endOffset':Number(_0x1046a0),'collapsed':_0x4d1a76===_0x1046a0,'isActive':_0x476537==='1','rangeType':_0x43e014===_0x584882['TEXT']?_0x584882['TEXT']:_0x584882[_0x10cbb0(0x2d2)],'segmentId':typeof _0x2ce495==_0x10cbb0(0x289)?String(_0x2ce495):'','segmentPage':Number(_0x44c87c!=null?_0x44c87c:-0x1)});}return _0x2d6841['some'](_0x14e93d=>_0x14e93d['isActive'])||(_0x2d6841[0x0][_0x10cbb0(0x136)]=!0x0),_0x2d6841;}class ze extends _0x2e3ce9{constructor(){const _0x139573=_0x36542c;super(...arguments),_(this,_0x139573(0x14a),new _0x311c05(null)),_(this,'collabCursorState$',this[_0x139573(0x14a)][_0x139573(0x231)]());}[_0x36542c(0x162)](_0x20ae31){const _0x380ac5=_0x36542c,{unitID:_0xebbbeb,memberID:_0x34dc6c,textRanges:_0x3e5ae8}=_0x20ae31,_0x38e633=$t(_0x3e5ae8);if(_0x38e633==='')return;const _0x587429={'unitID':_0xebbbeb,'memberID':_0x34dc6c,'selection':_0x38e633};this[_0x380ac5(0x14a)][_0x380ac5(0x21f)](_0x587429);}}var Pi=Object[_0x36542c(0x281)],wi=(_0x5eb331,_0x3568c,_0x217d5f,_0x1c837b)=>{for(var _0x128dea=_0x1c837b>0x1?void 0x0:_0x1c837b?Pi(_0x3568c,_0x217d5f):_0x3568c,_0x4597c6=_0x5eb331['length']-0x1,_0x11f819;_0x4597c6>=0x0;_0x4597c6--)(_0x11f819=_0x5eb331[_0x4597c6])&&(_0x128dea=_0x11f819(_0x128dea)||_0x128dea);return _0x128dea;},A=(_0x442078,_0x38621)=>(_0x422f13,_0xee6b12)=>_0x38621(_0x422f13,_0xee6b12,_0x442078);const yi=0x12c,$i=0x64;let xe=class extends _0x2e3ce9{constructor(_0x4f94d3,_0x5c63b2,_0x8626e0,_0x550460,_0x2e7f80,_0x5568b5,_0x3e4be5,_0x1b678a,_0x5c2c34){const _0x156cce=_0x36542c;super(),_(this,_0x156cce(0x270),!0x1),_(this,_0x156cce(0x2f7),!0x1),_(this,_0x156cce(0x2ed),new _0x311c05(new Map())),_(this,_0x156cce(0x15f),this[_0x156cce(0x2ed)][_0x156cce(0x231)]()),_(this,_0x156cce(0x1ce),new _0x311c05([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x21f33f(yi))),_(this,_0x156cce(0x26d),_0x9e9857(_0x57c040=>{const _0x13ad79=_0x156cce,_0xfc9177={'eventID':_0x31f204[_0x13ad79(0x26e)],'data':{'unitID':this[_0x13ad79(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0x57c040)}};this[_0x13ad79(0x329)][_0x13ad79(0x2fd)](_0xfc9177,this[_0x13ad79(0x26b)]);},$i)),(this[_0x156cce(0x26b)]=_0x4f94d3,this[_0x156cce(0x329)]=_0x5c63b2,this['_injector']=_0x8626e0,this['_colorAssignService']=_0x550460,this[_0x156cce(0x216)]=_0x2e7f80,this['_syncEditingCollabCursorService']=_0x5568b5,this[_0x156cce(0x2c1)]=_0x3e4be5,this[_0x156cce(0x2c2)]=_0x1b678a,this['_commandService']=_0x5c2c34);}get[_0x36542c(0x1a1)](){const _0x149351=_0x36542c;return this[_0x149351(0x2ed)][_0x149351(0x185)]();}get[_0x36542c(0x2af)](){const _0x2ca07e=_0x36542c;return this[_0x2ca07e(0x1ce)][_0x2ca07e(0x185)]();}['dispose'](){const _0x2d2c12=_0x36542c;super[_0x2d2c12(0x1f7)](),this[_0x2d2c12(0x2ed)]['next'](new Map()),this[_0x2d2c12(0x2ed)][_0x2d2c12(0x31f)](),this[_0x2d2c12(0x1ce)]['next']([]),this[_0x2d2c12(0x1ce)][_0x2d2c12(0x31f)]();}['init'](){const _0x3cf368=_0x36542c;this[_0x3cf368(0x2f7)]||(this[_0x3cf368(0x2f7)]=!0x0,this[_0x3cf368(0x329)][_0x3cf368(0x165)][_0x3cf368(0x124)](_0x5427bd(this['dispose$']))[_0x3cf368(0x1cc)](_0x753345=>{const _0x1c1fb7=_0x3cf368;_0x753345===_0x355249[_0x1c1fb7(0x27f)]?this['_toggleOnline']():this[_0x1c1fb7(0x20d)]();}),this[_0x3cf368(0x329)][_0x3cf368(0x34f)]['pipe'](_0x5427bd(this[_0x3cf368(0x272)]))[_0x3cf368(0x1cc)](_0x27197c=>{const _0x355eeb=_0x3cf368,_0x351ea7=_0x27197c[_0x355eeb(0x27a)];_0x351ea7===_0x31f204[_0x355eeb(0x26e)]&&this[_0x355eeb(0x1b2)](_0x27197c),_0x351ea7===_0x31f204[_0x355eeb(0x144)]&&this[_0x355eeb(0x171)](_0x27197c);}),this['disposeWithMe'](this['_commandService'][_0x3cf368(0x19e)](_0x1b0d09=>{const _0xe682ad=_0x3cf368,_0x29aa4a=_0x1b0d09[_0xe682ad(0x335)];_0x29aa4a!=null&&this[_0xe682ad(0x270)]&&_0x1b0d09['id']===_0x43ed68['id']&&_0x29aa4a[_0xe682ad(0x20a)]===this[_0xe682ad(0x26b)]&&_0x29aa4a[_0xe682ad(0x184)]===!0x1&&_0x29aa4a[_0xe682ad(0x206)][_0xe682ad(0x125)]>0x0&&this[_0xe682ad(0x26d)](_0x29aa4a[_0xe682ad(0x206)]);})),this[_0x3cf368(0x11f)][_0x3cf368(0x13b)]['pipe'](_0x5427bd(this[_0x3cf368(0x272)]))[_0x3cf368(0x1cc)](_0x561421=>{const _0x4a2109=_0x3cf368;if((_0x561421==null?void 0x0:_0x561421[_0x4a2109(0x26b)])!==this[_0x4a2109(0x26b)])return;const _0x5aefc5={'eventID':_0x31f204['UPDATE_CURSOR'],'data':_0x561421};this[_0x4a2109(0x1b2)](_0x5aefc5);}),this[_0x3cf368(0x2e0)](this['_commandService'][_0x3cf368(0x19e)](_0x2dd2b9=>{const _0x53736d=_0x3cf368;if(_0x2dd2b9[_0x53736d(0x335)]==null)return;const _0x49d7b8=_0x2dd2b9['params'];if(_0x2dd2b9['id']!==_0x14a58c['id']||_0x49d7b8[_0x53736d(0x20a)]!==this[_0x53736d(0x26b)])return;const _0x1a04d3={'id':_0x53736d(0x33f),'params':_0x49d7b8},_0x4d2b7e=this[_0x53736d(0x1a1)];for(const [_0x3968da,_0x344112]of _0x4d2b7e){const _0x167c70={'id':_0x53736d(0x33f),'params':{'unitId':this[_0x53736d(0x26b)],'actions':null,'textRanges':_0x344112[_0x53736d(0x206)]}},_0x3c35eb=this[_0x53736d(0x2c1)][_0x53736d(0x2f4)](_0x1a04d3,_0x167c70,!0x1);if(_0x5aaf2c(_0x3c35eb))throw _0x3c35eb[_0x53736d(0x245)];_0x4d2b7e[_0x53736d(0x25a)](_0x3968da,{..._0x344112,'ranges':_0x3c35eb[_0x53736d(0x21e)][_0x53736d(0x335)][_0x53736d(0x340)]});}queueMicrotask(()=>{const _0xea1e66=_0x53736d;this[_0xea1e66(0x2ed)][_0xea1e66(0x21f)](_0x4d2b7e);});})));}[_0x36542c(0x1b2)](_0x48bee1){const _0x1f2985=_0x36542c;var _0x4e4308,_0x40da3d;const {memberID:_0x33ca2a,selection:_0x5d8677}=_0x48bee1[_0x1f2985(0x1c5)],_0x5571e2=Ai(_0x5d8677),_0x174fb2=(_0x40da3d=(_0x4e4308=this[_0x1f2985(0x216)][_0x1f2985(0x2c8)](this[_0x1f2985(0x26b)],_0x33ca2a))==null?void 0x0:_0x4e4308[_0x1f2985(0x182)])!=null?_0x40da3d:'Unknown\x20user',_0x2f1fb3={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x33ca2a),'name':_0x174fb2,'ranges':_0x5571e2},_0xeb3002=this[_0x1f2985(0x1a1)];_0xeb3002[_0x1f2985(0x25a)](_0x33ca2a,_0x2f1fb3),this['_cursorInfo$'][_0x1f2985(0x21f)](_0xeb3002);}[_0x36542c(0x171)](_0x466f4b){const _0x35202a=_0x36542c,{memberID:_0x10f746}=_0x466f4b['data'],_0x25ec75=this[_0x35202a(0x1a1)];_0x25ec75[_0x35202a(0x158)](_0x10f746),this[_0x35202a(0x2ed)][_0x35202a(0x21f)](_0x25ec75);}[_0x36542c(0x150)](){const _0x28ce5f=_0x36542c;var _0x20f15d;if(this['_online']=!0x0,((_0x20f15d=this[_0x28ce5f(0x2c2)][_0x28ce5f(0x1d2)]())==null?void 0x0:_0x20f15d[_0x28ce5f(0x123)]())!==this[_0x28ce5f(0x26b)])return;const _0x41e328=this[_0x28ce5f(0x207)]['get'](_0x564962)[_0x28ce5f(0x157)]();Array[_0x28ce5f(0x1ec)](_0x41e328)&&_0x41e328[_0x28ce5f(0x125)]>0x0&&this['_updateLocalCursor'](_0x41e328);}[_0x36542c(0x20d)](){const _0xf57940=_0x36542c;this[_0xf57940(0x270)]=!0x1;}};xe=wi([A(0x2,_0x338b4d(_0x2c838e)),A(0x3,_0x338b4d(Ke)),A(0x4,_0x338b4d(_0x40b044)),A(0x5,_0x338b4d(ze)),A(0x6,_0x20cc24),A(0x7,_0x4d0d85),A(0x8,_0x344a42)],xe);var xi=Object[_0x36542c(0x281)],Bi=(_0x46060f,_0x213ccf,_0x582c93,_0x3e0137)=>{const _0x8fc710=_0x36542c;for(var _0xefdb66=_0x3e0137>0x1?void 0x0:_0x3e0137?xi(_0x213ccf,_0x582c93):_0x213ccf,_0x2c22ec=_0x46060f[_0x8fc710(0x125)]-0x1,_0x17532f;_0x2c22ec>=0x0;_0x2c22ec--)(_0x17532f=_0x46060f[_0x2c22ec])&&(_0xefdb66=_0x17532f(_0xefdb66)||_0xefdb66);return _0xefdb66;},B=(_0x1f7a4b,_0x1ab496)=>(_0x523073,_0xb0d34c)=>_0x1ab496(_0x523073,_0xb0d34c,_0x1f7a4b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4c95d5=[],_0x346af6=!0x1;return _0x325dd8=>{_0x4c95d5['push'](_0x325dd8),_0x346af6||(_0x346af6=!0x0,setTimeout(()=>{const _0x525a46=_0x4dd1;_0x4c95d5[_0x525a46(0x310)](_0x56bfd9=>_0x56bfd9()),_0x4c95d5=[],_0x346af6=!0x1;}));};};let Be=class extends _0x2e3ce9{constructor(_0xc5f4f4,_0x316aef,_0x36f03e,_0xc23f38,_0x239843,_0x3faebe,_0x2e79c0,_0x1af39a){const _0x4dce9a=_0x36542c;super(),_(this,_0x4dce9a(0x270),!0x1),_(this,_0x4dce9a(0x2f7),!0x1),_(this,'_cursorInfo$',new _0x311c05(new Map())),_(this,'cursorInfo$',this[_0x4dce9a(0x2ed)][_0x4dce9a(0x231)]()),_(this,'_roomMembers$',new _0x311c05([])),_(this,'roomMembers$',this[_0x4dce9a(0x1ce)][_0x4dce9a(0x124)](_0x21f33f(Fi))),_(this,_0x4dce9a(0x26d),_0x9e9857((_0xae040b,_0x2b2f5a)=>{const _0x193f84=_0x4dce9a,_0xe3edc={'eventID':_0x31f204[_0x193f84(0x26e)],'data':{'unitID':this[_0x193f84(0x26b)],'memberID':this['_session']['getMemberID'](),'selection':_0x73d1ce(_0xae040b,_0x2b2f5a[_0x193f84(0x243)])}};this[_0x193f84(0x329)][_0x193f84(0x2fd)](_0xe3edc,this[_0x193f84(0x26b)]);},ki)),(this[_0x4dce9a(0x26b)]=_0xc5f4f4,this[_0x4dce9a(0x329)]=_0x316aef,this[_0x4dce9a(0x207)]=_0x36f03e,this['_colorAssignService']=_0xc23f38,this[_0x4dce9a(0x216)]=_0x239843,this[_0x4dce9a(0x2c2)]=_0x3faebe,this[_0x4dce9a(0x14b)]=_0x2e79c0,this['_refRangeService']=_0x1af39a);}get[_0x36542c(0x1a1)](){const _0x122ca1=_0x36542c;return this[_0x122ca1(0x2ed)][_0x122ca1(0x185)]();}get[_0x36542c(0x2af)](){const _0x2d4880=_0x36542c;return this['_roomMembers$'][_0x2d4880(0x185)]();}[_0x36542c(0x1f7)](){const _0x142454=_0x36542c;super[_0x142454(0x1f7)](),this[_0x142454(0x2ed)][_0x142454(0x21f)](new Map()),this[_0x142454(0x2ed)][_0x142454(0x31f)](),this['_roomMembers$'][_0x142454(0x21f)]([]),this[_0x142454(0x1ce)][_0x142454(0x31f)]();}[_0x36542c(0x15d)](){const _0x1d72a8=_0x36542c;this[_0x1d72a8(0x2f7)]||(this[_0x1d72a8(0x2f7)]=!0x0,this[_0x1d72a8(0x329)][_0x1d72a8(0x165)][_0x1d72a8(0x124)](_0x5427bd(this[_0x1d72a8(0x272)]))[_0x1d72a8(0x1cc)](_0x2b19f5=>{const _0x1a7459=_0x1d72a8;_0x2b19f5===_0x355249[_0x1a7459(0x27f)]?this[_0x1a7459(0x150)]():this[_0x1a7459(0x20d)]();}),this[_0x1d72a8(0x329)][_0x1d72a8(0x34f)]['pipe'](_0x5427bd(this[_0x1d72a8(0x272)]))[_0x1d72a8(0x1cc)](_0x2d1e2a=>{const _0x23ad70=_0x1d72a8,_0x26c877=_0x2d1e2a[_0x23ad70(0x27a)];_0x26c877===_0x31f204[_0x23ad70(0x26e)]&&this[_0x23ad70(0x1b2)](_0x2d1e2a),_0x26c877===_0x31f204[_0x23ad70(0x144)]&&this[_0x23ad70(0x171)](_0x2d1e2a);}),this['_onRefRangeChange'](),this[_0x1d72a8(0x2e0)](this[_0x1d72a8(0x14b)]['onCommandExecuted'](_0x4cc280=>{const _0x5cbce6=_0x1d72a8;if(this['_online']&&_0x4cc280['id']===_0xe3e116['id']&&_0x4cc280[_0x5cbce6(0x335)][_0x5cbce6(0x20a)]===this['unitID']){const _0x3ca86a=_0x4cc280[_0x5cbce6(0x335)];this['_updateLocalCursor'](_0x3ca86a[_0x5cbce6(0x1a5)],_0x3ca86a[_0x5cbce6(0x258)][0x0]);}})));}[_0x36542c(0x1b2)](_0xdab638){const _0x57f8ef=_0x36542c;var _0x45545d,_0x470ccd;const {memberID:_0x4aa542,selection:_0x2ade8d}=_0xdab638[_0x57f8ef(0x1c5)],{sheetName:_0x884213,range:_0x37bd20}=_0x4a4084(_0x2ade8d),_0x24f482={'name':(_0x470ccd=(_0x45545d=this[_0x57f8ef(0x216)][_0x57f8ef(0x2c8)](this['unitID'],_0x4aa542))==null?void 0x0:_0x45545d[_0x57f8ef(0x182)])!=null?_0x470ccd:'Unknown\x20user','range':this['_getMergeRange'](_0x884213,_0x37bd20),'sheetID':_0x884213,'color':this[_0x57f8ef(0x2a3)]['assignAColorForMemberID'](_0x4aa542),'selection':_0x2ade8d},_0xbfd0fd=this['cursorInfo'];_0xbfd0fd[_0x57f8ef(0x25a)](_0x4aa542,_0x24f482),this[_0x57f8ef(0x2ed)][_0x57f8ef(0x21f)](_0xbfd0fd);}[_0x36542c(0x171)](_0x84a9b){const _0x3ddff8=_0x36542c,{memberID:_0x217d3a}=_0x84a9b[_0x3ddff8(0x1c5)],_0x34cdd5=this[_0x3ddff8(0x1a1)];_0x34cdd5['delete'](_0x217d3a),this['_cursorInfo$'][_0x3ddff8(0x21f)](_0x34cdd5);}[_0x36542c(0x2b9)](_0xfb5b74,_0x16322c){const _0x450a65=_0x36542c;var _0x341381,_0x20e231;const _0x4cd777=(_0x20e231=(_0x341381=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x450a65(0x26b)]))==null?void 0x0:_0x341381['getSheetBySheetId'](_0xfb5b74))==null?void 0x0:_0x20e231[_0x450a65(0x12a)]();return(_0x4cd777==null?void 0x0:_0x4cd777[_0x450a65(0x2d6)](_0x24152a=>_0x2e16f4['contains'](_0x24152a,_0x16322c)))||_0x16322c;}[_0x36542c(0x2a8)](){const _0x25d219=_0x36542c,_0x1320f9=new _0x543d43(),_0x593025=Hi(),_0x3aaf1f=()=>{const _0x4e8eea=_0x4dd1;_0x1320f9[_0x4e8eea(0x1f7)]();const _0x5c0158=(_0x58a7c1,_0xbd0ddb,_0x1090c6,_0x3d02c6)=>{const _0x5435cd=_0x4e8eea;let _0x53c09a=[];switch(_0x58a7c1['id']){case _0xbdbc78[_0x5435cd(0x1cb)]:{_0x53c09a=_0x56041b(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x151)]:{_0x53c09a=_0x4cf62c(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x25c)]:{_0x53c09a=_0x667606(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x1b5)]:{_0x53c09a=_0x198007(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x249)]:{_0x53c09a=_0x30ec30(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x2ce)]:{_0x53c09a=_0xabb663(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x252)]:{_0x53c09a=_0x1630dc(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x1ac)]:{_0x53c09a=_0x90c53d(_0x58a7c1,_0x3d02c6);break;}case _0xbdbc78[_0x5435cd(0x34a)]:{_0x53c09a=_0x33c362(_0x58a7c1,_0x3d02c6);break;}}const _0x15fb11=_0x5161f8(_0x53c09a,_0x3d02c6),_0x1e3767=this['cursorInfo'][_0x5435cd(0x194)](_0xbd0ddb);if(_0x1e3767&&_0x15fb11){const _0x396660={..._0x1e3767,'range':_0x15fb11};this[_0x5435cd(0x1a1)][_0x5435cd(0x25a)](_0xbd0ddb,_0x396660),_0x593025(()=>{const _0x561e34=_0x5435cd,_0x2958d1=this[_0x561e34(0x23e)]['registerRefRange'](_0x15fb11,_0x2ca8e1=>(_0x2958d1[_0x561e34(0x1f7)](),_0x5c0158(_0x2ca8e1,_0xbd0ddb,_0x1090c6,_0x15fb11)));_0x1320f9[_0x561e34(0x214)](_0x2958d1);});}return{'redos':[],'undos':[]};};this[_0x4e8eea(0x1a1)][_0x4e8eea(0x310)]((_0xb9ec95,_0x101e57)=>{const _0x92197e=_0x4e8eea,{range:_0x1e87e2,sheetID:_0x4af753}=_0xb9ec95,_0x47a298=this[_0x92197e(0x23e)][_0x92197e(0x15c)](_0x1e87e2,_0x3f0cfe=>(_0x47a298[_0x92197e(0x1f7)](),_0x5c0158(_0x3f0cfe,_0x101e57,_0x4af753,_0x1e87e2)));_0x1320f9[_0x92197e(0x214)](_0x47a298);});};this[_0x25d219(0x2e0)](_0x6a8bba(this['_cursorInfo$'][_0x25d219(0x1cc)](()=>{_0x3aaf1f();})));}[_0x36542c(0x150)](){const _0x5c9e39=_0x36542c;var _0x4b72a8,_0x4a9e65;if(this[_0x5c9e39(0x270)]=!0x0,((_0x4b72a8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4b72a8['getUnitId']())!==this[_0x5c9e39(0x26b)])return;const _0x35e807=(_0x4a9e65=this[_0x5c9e39(0x207)][_0x5c9e39(0x194)](_0x50f7fc)[_0x5c9e39(0x142)]())==null?void 0x0:_0x4a9e65[0x0],_0xcbd50=this[_0x5c9e39(0x2c2)][_0x5c9e39(0x2d7)](_0x11c449['UNIVER_SHEET'])[_0x5c9e39(0x1fc)]();_0x35e807&&_0xcbd50&&this['_updateLocalCursor'](_0xcbd50[_0x5c9e39(0x1d7)](),_0x35e807);}[_0x36542c(0x20d)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x338b4d(_0x2c838e)),B(0x3,_0x338b4d(Ke)),B(0x4,_0x338b4d(_0x40b044)),B(0x5,_0x4d0d85),B(0x6,_0x344a42),B(0x7,_0x338b4d(_0x2b036c))],Be);var Yi=Object[_0x36542c(0x281)],Wi=(_0x3682fa,_0x4d6462,_0x3757b2,_0x40767b)=>{for(var _0x63c57b=_0x40767b>0x1?void 0x0:_0x40767b?Yi(_0x4d6462,_0x3757b2):_0x4d6462,_0x48754c=_0x3682fa['length']-0x1,_0x37ead8;_0x48754c>=0x0;_0x48754c--)(_0x37ead8=_0x3682fa[_0x48754c])&&(_0x63c57b=_0x37ead8(_0x63c57b)||_0x63c57b);return _0x63c57b;},Ce=(_0x5dce8f,_0x5d3ea7)=>(_0x4a6404,_0x475178)=>_0x5d3ea7(_0x4a6404,_0x475178,_0x5dce8f);function _0x24c3(){const _0x1de29f=['color','message','idSuffix','permission.content','ONLINE','selection','getOwnPropertyDescriptor','_doCreateSocket','_initResize','ENTITLE_REPORT_LIMIT_EXCEED','YUUMI_UNABLE_LOAD_URL','USER_IS_ANONYMOUS','_handleJoinEvent','createSocket','string','_transformUndoRedoStack','values','getCellPositionByOffset','now','NO_OTHER_CLIENTS_EDITING','jiqing.500','getformulaLimitStatusUrl','setParam','_showGuardMessage','INVITE_CODE_HAS_BEEN_UES','editingUnit','getCurrentRevOfUnit','_unitStatus','TOO_MANY_REQUESTS','REDEMPTION_INVALID_CODE','transformByState','session.collaboration-timeout','url(#off-line-icon_clip0_910_343)','_backgroundColor','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','shift','0\x200\x2017\x2016','getVpScrollXYInfoByPosToVp','YUUMI_AI_RUN_FAILED','lineTo','_colorAssignService','displayName','transformStateCache','_assignedColors','tag','_onRefRangeChange','column','YUUMI_ASYNCIO_CANCELLED','setItem','_anchor','getUnit','sheetID','roomMembers','/universer-api/license/formula/limit/status','getColorFromTheme','_cursors','_transformHistoryAndStateStack','replace','onRendered','storage','EMAIL_HAS_BEEN_BOUND','[LogService\x20Error]:\x20','_getMergeRange','collaboration-client-ui.config','OffLineIcon','getTypeOfUnitAdded$','_collaborationSessionService','_scheduleHeartbeat','setUndoRedoMutationParamsCache','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_transformService','_univerInstanceService','_colorIndex','_memberID','white','_scene','backgroundColor','getMember','LICENSE_MAX_UNITS_EXCEEDED','_color','wsSessionTicketUrl','getSkeleton','getUnhiddenWorksheets','InsertRowCommandId','replaceDocRanges','_lastPointer','symbol','RECT','startFormulaLimitUrl','width','translate(.97)','find','getCurrentUnitForType','_registerRenderDependencies','getUndoRedoMutationParamsCache','Error','AWAITING_WITH_PENDING','runId','setAlpha','then','startColumn','disposeWithMe','ENTITLE_NEED_BILLING_ADDRESS','CURRENT_STATUS_CANNOT_OPERATE','279775ZCxPTK','formula.calculation.waiting','code','path','unsubscribe','283838gUstVT','LICENSE_DISTRO_REJECTED','actions','YUUMI_RATE_OVER_LIMIT','UNAUTHENTICATED','_cursorInfo$','sheetId','_docStateChangeManagerService','_releaseCalculationLimit','onTransformChange$','SOCKET_FAILED_RETRY','on-line-icon','transformMutation','none','INVITE_CODE_ALREADY_BOUND','_init','_getFormulaLimitStatus','clearTimeout','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_URL_COL_OUT_OF_RANGE','_transformPreviousActiveRange','send','_config','urlChange$','_shapes','_sheetSkeletonManagerService','executeCommand','defs','session.connection-failed','http://www.w3.org/2000/svg','status$','USER_NOT_FOUND','lineno','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_CHAT_LIMIT_EXCEED','START_CALCULATION','YUUMI_NO_CUBOID_FOR_QUESTION','?taskId=','1680048DyezkS','PENDING','forEach','UNDEFINED','_labelPosition','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CHANGESET_REVISION_CONFILICT','_getAnchorBounding','getSheetBySheetId','collab-text-anchor-','entries','closePath','red.300','url(#$1','_scheduleClearOtherTimer','Success','_startCalculationLimit','complete','startsWith','INTERNAL_ERROR','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','formula.calculation.unable','_saveCache','_getSaveTimeout','size','purple.300','_hideTimer','_session','univer-mr-2\x20univer-flex\x20univer-text-xl','_setupBeforeClosingHandler','row','VIEW_MAIN','fillStyle','moveTo','_initUnhandledRejectionListener','M0\x200H16V16H0z','drawWith','current','_collabSessionService','params','children','enableFrontendLog','mutations','_handleHeartbeatEvent','collab-text-range-','removeEventListener','unit','_render','_docTransformIMECacheService','doc.mutation.rich-text-editing','textRanges','setShapeProps','with','bottom','FromArray','_startDocCollabCursor','body','WECHAT_HAS_BEEN_BOUND','LOGIN_TOKEN_PROCESSING_FAILED','height','RemoveRowCommandId','clearInterval','_instanceService','attrs','ticket','event$','startRow','_localeService','_textBubble','[Window\x20Error]:\x20','_themeService','ALREADY_EXISTS','_cachedData','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','text','getCurrent','_context','from','transform','COMPLETION_FINISHED','_document','top','DATA_SOURCE_TOO_LARGE','unhandledrejection','findNodePositionByCharIndex','blue.400','bind','REDEMPTION_CODE_INACTIVE','addEventListener','enableLocalCache','unload','_removeCollabCursors','_checkCalculationAvailable','_initStatusListener','defIds','saveImage','getRelativeToViewportCoord','_syncEditingCollabCursorService','UNRECOGNIZED','LICENSE_EXPORT_SIZE_EXCEEDED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getUnitId','pipe','length','[CollaborationDataLoaderController]','collabStatus.conflict','_handleLeaveEvent','450605diAwuH','getMergeData','/run/','4504887vdrtSS','history','APPLY_REVISION_CONFILICT','getParam','6DFRAxe','search','makeDirty','push','formula.calculation.started','_saveTaskMap','isActive','stageInfo','YUUMI_CONNECTOR_URL_NOT_FOUND','transformRemoteChangeset','_beforeCloseService','collabCursorState$','_hasFormulaInDirtyRanges','memberID','hovered','YUUMI_ALL_TABLES_IS_INVALID','ENSURE_SNAPSHOT_EXECUTION','getStateCache','getCurrentSelections','_hovered','USERS_LEAVE','_notificationService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleEvent','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onStarting','_collabCursorState$','_commandService','deepClone','_logService','getOffsetConfig','engine','_toggleOnline','DeleteRangeMoveUpCommandId','INVITE_CODE_REQUIRED','toString','createInstance','Warning','collabStatus.offline','getDocRanges','delete','_anchorDot','_checkAndWaitForCalculationPermission','_registerDependencies','registerRefRange','init','onPointerEnter$','cursorInfo$','onMouseMove','restore','syncEditingCollabCursor','_configService','SYNCED','sessionStatus$','OTHER_CLIENT_EDITING','parseInt','registerRenderModule','fill','/universer-api/license/formula/limit/done','_monkeyPatchLogService','APPLY_DUPLICATED','triggerDblclick','MUTATION','has','_hover','_onCursorDelete','includes','parse','undoState','_uploadLog','UNIVER_SHEET','newValue','ENTITLE_COUPON_USED_UP','join','_pollingInterval','addObject','_getSessionTicket','_createSocketURL','CLOSE_ROOM','_removeClearOtherTimer','popstate','_unitOnClients','name','_collaborationController','isEditing','getValue','_clearOtherTimers','1279212FuzNOw','subscribeEvent','removeParam','disposeUnit','_httpService','black','OnLineIcon','1em','INVALID_ARGUMENT','registerComponent','docStateChange$','invokeId','_uiPartsService','get','entityInit$','_getSheetObject','_cursorShapes','_selfUnitIDs','APPLY_NON_SEQUENTIAL_REVISION','_localStorageService','_name','toRgbString','collaboration.closeRoom','onCommandExecuted','colno','href','cursorInfo','stringify','registerBeforeClose','maxFormulaLimit','subUnitId','labelPosition','source','_entities','assign','socket$','type','RemoveColCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_send','reason','svg','_dataLoaderService','_onCursorUpdate','_setupSubUnitSync','div','InsertRangeMoveDownCommandId','round','permission.title','ENTITLE_COUPON_EXPIRED','_scheduleSaving','REDEMPTION_CODE_NOT_STARTED','getUnitStatus$','debug','skeleton','_initDependencies','MOBILE_HAS_BEEN_BOUND','LOGIN_FAILED','_drawRectRange','getTypeOfUnitDisposed$','save','_docClipboardService','data','_setFormulaLimitStatus','_refreshCollabCursors','_initWindowErrorListener','getCollabCursors$','currentSkeleton$','DeleteRangeMoveLeftCommandId','subscribe','3IWYchc','_roomMembers$','_lastResponseTimestamp','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','flatMap','getFocusedUnit','result','_updateCollabCursors','_collaborationUIEventService','replaceState','getSheetId','_heartbeatTimer','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','max','collaboration.single-unit.warning','Loading','_drawTextRange','SOCKET_FAILED','getConfig','setConfig','yellow.400','_messageService','rgba(255,\x20255,\x20255,\x200.01)','_initEntityListener','unshift','addClipboardHook','on-line-icon_clip0_910_349','redoState','evenodd','OTHER_CLIENTS_EDITING','isArray','origin','REDEMPTION_CODE_FULLY_REDEEMED','saveOfflineData','APPLY_REJECT','pluginName','setInterval','min','CONFLICT','_startSheetCollabCursor','/universer-api/license/formula/limit/start','dispose','YUUMI_SUBSCRIPTION_NOT_FOUND','clipPath','collabStatus.synced','ERROR_AGAIN','getActiveSheet','searchParams','USER_NOT_INVITED_CODE','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_INSUFFICIENT_QUOTA','_revisionService','OFFLINE','_renderManagerService','...','measureText','ranges','_injector','collab-client.tooltip.reconnect','INVALID_INVITE_CODE','unitId','_getScale','JOIN_ROOM_FAILED','_toggleOffline','trim','application/json','m1Prime','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','_handleHover','add','xlink:href','_memberService','APPLY_PERMISSION_DENIED','_collabCursorController','show','hide','_docSyncEditingCollabCursorService','_initEvent','post','m2Prime','next','REDEMPTION_CODE_HAS_BEEN_CREATED','#FFF','collaboration.offline-data-not-saved','PY_RUNTIME_SCRIPT_ERROR','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_clearPolling','_applyCommand','transformIMECache','PERMISSION_DENIED','0\x200\x2016\x2016','exhaustSavingTask','defineProperty','subunit','_docTransformStateCacheService','_cursor','currentTheme$','transformSelections','asObservable','endColumn','_urlService','_currentUsage','Failed','pushState','_eventUnsubscribe','onLocalMutation','collabStatus.syncing','_disabled','mask','fillText','SNAPSHOT_INVALID_SNAPSHOT','_refRangeService','_updateURLWithCurrentState','saveTaskMap','_status$','addHandlerCallback','range','colorChannel1','error','_range','loadOfflineData','onPointerLeave$','InsertRangeMoveRightCommandId','_maxFormulaLimit','_draw','off-line-icon_clip0_910_343','getRenderById','arc','_id','off-line-icon','limitInfo','MoveRangeCommandId','_initStatusComponent','NOT_FOUND','UNIVER_DOC','1211497lZsjXs','map','selections','_initCommandExecutedListener','set','_initCommandInterceptor','InsertColCommandId','MOBILE_VERIFY_CODE_MISMATCH','executionId','_drawAnchor','substring','univer-flex\x20univer-items-center','getRangePointData','_entityInit$','whenReady','disableLocalCache','transformMutationsWithChangeset','_taskIds','FETCH_MISS','REDEMPTION_USER_NOT_ELIGIBLE','univerjs-icon\x20univerjs-icon-','unitID','currentColor','_updateLocalCursor','UPDATE_CURSOR','_initUserListener','_online','getAncestorScale','dispose$','filename','use','location','PAYMENT_CHANNEL_NOT_SUPPORT','NOT_COLLAB','SUCCESS','endRow','eventID'];_0x24c3=function(){return _0x1de29f;};return _0x24c3();}let H=class extends _0x2e3ce9{constructor(_0x3e972d,_0x47dffc,_0x3895c3){const _0x5633c9=_0x36542c;super(),_(this,_0x5633c9(0x1a8),new Map()),_(this,'_entityInit$',new _0x447fde()),(this[_0x5633c9(0x2c2)]=_0x3e972d,this['_injector']=_0x47dffc,this['_collabSessionService']=_0x3895c3,this[_0x5633c9(0x2f7)]());}[_0x36542c(0x1f7)](){const _0x3af870=_0x36542c;super[_0x3af870(0x1f7)](),this[_0x3af870(0x263)]['complete'](),this[_0x3af870(0x1a8)][_0x3af870(0x310)](_0x2c724a=>_0x2c724a['dispose']());}[_0x36542c(0x1c9)](_0x535b8c){const _0x490b4b=_0x36542c;return this[_0x490b4b(0x1a8)][_0x490b4b(0x16f)](_0x535b8c)?this[_0x490b4b(0x1a8)][_0x490b4b(0x194)](_0x535b8c)[_0x490b4b(0x15f)]:this[_0x490b4b(0x263)]['pipe'](_0x4479ea(_0x1dfbbc=>_0x1dfbbc[_0x490b4b(0x26b)]===_0x535b8c),_0x245695(_0x44783c=>_0x44783c['cursorInfo$']));}[_0x36542c(0x2f7)](){const _0x5b799d=_0x36542c;this[_0x5b799d(0x2c2)][_0x5b799d(0x2bc)](_0x11c449[_0x5b799d(0x176)])[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))[_0x5b799d(0x1cc)](async _0x3352cf=>{const _0x51184c=_0x5b799d,_0x595225=_0x3352cf[_0x51184c(0x123)](),_0x810a55=await this[_0x51184c(0x1f5)](_0x595225);this[_0x51184c(0x263)][_0x51184c(0x21f)](_0x810a55),this[_0x51184c(0x1a8)]['set'](_0x595225,_0x810a55);}),this[_0x5b799d(0x2c2)][_0x5b799d(0x2bc)](_0x11c449[_0x5b799d(0x255)])[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))[_0x5b799d(0x124)](_0x4479ea(_0xd8970=>!_0xd8970[_0x5b799d(0x123)]()[_0x5b799d(0x320)]('__')))[_0x5b799d(0x1cc)](async _0x495f3e=>{const _0x4714b8=_0x5b799d,_0x889341=_0x495f3e[_0x4714b8(0x123)](),_0x187129=await this[_0x4714b8(0x345)](_0x889341);this[_0x4714b8(0x263)][_0x4714b8(0x21f)](_0x187129),this['_entities'][_0x4714b8(0x25a)](_0x889341,_0x187129);}),_0x343681(this[_0x5b799d(0x2c2)][_0x5b799d(0x1c2)](_0x11c449[_0x5b799d(0x255)]),this[_0x5b799d(0x2c2)]['getTypeOfUnitDisposed$'](_0x11c449[_0x5b799d(0x176)]))[_0x5b799d(0x124)](_0x5427bd(this[_0x5b799d(0x272)]))['subscribe'](_0x2a2c36=>{const _0x22e7bb=_0x5b799d,_0x1cbefb=_0x2a2c36[_0x22e7bb(0x123)](),_0x112049=this[_0x22e7bb(0x1a8)][_0x22e7bb(0x194)](_0x1cbefb);_0x112049&&(_0x112049['dispose'](),this[_0x22e7bb(0x1a8)]['delete'](_0x1cbefb));});}async['_startSheetCollabCursor'](_0x6cc5d7){const _0x38634c=_0x36542c,_0x197fde=await this[_0x38634c(0x334)]['requireSession'](_0x6cc5d7),_0x32342b=this[_0x38634c(0x207)][_0x38634c(0x154)](Be,_0x6cc5d7,_0x197fde);return _0x32342b[_0x38634c(0x15d)](),_0x32342b;}async[_0x36542c(0x345)](_0xa0c901){const _0x43c8da=_0x36542c,_0x4a229d=await this[_0x43c8da(0x334)]['requireSession'](_0xa0c901),_0xc388a5=this['_injector'][_0x43c8da(0x154)](xe,_0xa0c901,_0x4a229d);return _0xc388a5[_0x43c8da(0x15d)](),_0xc388a5;}};H=Wi([Ce(0x0,_0x4d0d85),Ce(0x1,_0x338b4d(_0x2c838e)),Ce(0x2,_0x338b4d(_0x403187))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x274d3f,_0x2634e5){const _0x35518f=_0x36542c;let {radius:_0xb847d5,width:_0x52c456,height:_0x459602}=_0x2634e5;_0xb847d5=_0xb847d5!=null?_0xb847d5:0x0,_0x52c456=_0x52c456!=null?_0x52c456:0x1e,_0x459602=_0x459602!=null?_0x459602:0x1e;let _0x33a8e9=0x0,_0x5e0dae=0x0,_0x3ec6cf=0x0;_0x33a8e9=_0x5e0dae=_0x3ec6cf=Math[_0x35518f(0x1f3)](_0xb847d5,_0x52c456/0x2,_0x459602/0x2),_0x274d3f['beginPath'](),_0x274d3f[_0x35518f(0x32f)](_0x33a8e9,0x0),_0x274d3f[_0x35518f(0x2a2)](_0x52c456-_0x5e0dae,0x0),_0x274d3f['arc'](_0x52c456-_0x5e0dae,_0x5e0dae,_0x5e0dae,Math['PI']*0x3/0x2,0x0,!0x1),_0x274d3f[_0x35518f(0x2a2)](_0x52c456,_0x459602-_0x3ec6cf),_0x274d3f[_0x35518f(0x24e)](_0x52c456-_0x3ec6cf,_0x459602-_0x3ec6cf,_0x3ec6cf,0x0,Math['PI']/0x2,!0x1),_0x274d3f[_0x35518f(0x2a2)](0x0,_0x459602),_0x274d3f[_0x35518f(0x2a2)](0x0,_0x33a8e9),_0x274d3f[_0x35518f(0x24e)](_0x33a8e9,_0x33a8e9,_0x33a8e9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x274d3f[_0x35518f(0x319)](),_0x2634e5[_0x35518f(0x169)]&&(_0x274d3f['save'](),_0x274d3f[_0x35518f(0x32e)]=_0x2634e5[_0x35518f(0x169)],_0x2634e5['fillRule']===_0x35518f(0x1ea)?_0x274d3f[_0x35518f(0x169)](_0x35518f(0x1ea)):_0x274d3f[_0x35518f(0x169)](),_0x274d3f[_0x35518f(0x161)]());}class ve extends _0x1e4876{constructor(_0x5d9e13,_0x1d01d4){const _0x1d72f3=_0x36542c;super(_0x5d9e13,_0x1d01d4),_(this,_0x1d72f3(0x27b)),_(this,_0x1d72f3(0x358)),(this[_0x1d72f3(0x27b)]=_0x1d01d4==null?void 0x0:_0x1d01d4[_0x1d72f3(0x27b)],this[_0x1d72f3(0x358)]=_0x1d01d4==null?void 0x0:_0x1d01d4['text']);}static[_0x36542c(0x332)](_0x5ef112,_0x3b03f4){const _0x109b72=_0x36542c,{text:_0x2f4951,color:_0x2b100d}=_0x3b03f4;_0x5ef112[_0x109b72(0x1c3)](),_0x5ef112['font']=_0x109b72(0x313);const _0x1b3876=_0x5ef112[_0x109b72(0x205)](_0x2f4951)['width'],_0x324d37=Math['min'](_0x1b3876+0x2*Re,at);ji(_0x5ef112,{'height':Q,'radius':0x4,'width':_0x324d37,'fill':_0x2b100d}),_0x5ef112[_0x109b72(0x32e)]=_0x109b72(0x221);const _0x34487b=Re,_0x194e22=Q-Vi,_0x4ebd23=at-0x2*Re;if(_0x1b3876>_0x4ebd23){let _0x2b570e='',_0x257786=0x0;for(const _0x110a13 of _0x2f4951){const _0x2f8037=_0x5ef112['measureText'](_0x110a13)[_0x109b72(0x2d4)];if(_0x257786+_0x2f8037<=_0x4ebd23-_0x5ef112[_0x109b72(0x205)](_0x109b72(0x204))[_0x109b72(0x2d4)])_0x2b570e+=_0x110a13,_0x257786+=_0x2f8037;else{_0x2b570e+=_0x109b72(0x204);break;}}_0x5ef112[_0x109b72(0x23c)](_0x2b570e,_0x34487b,_0x194e22);}else _0x5ef112['fillText'](_0x2f4951,_0x34487b,_0x194e22);_0x5ef112[_0x109b72(0x161)]();}[_0x36542c(0x24b)](_0x42088f){ve['drawWith'](_0x42088f,this);}}const De=_0x36542c(0x317),Xi=_0x36542c(0x33a),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x36542c(0x1e4);class ct{constructor(_0x51f87d,_0x4c57bd,_0xa0e90b,_0x456a2f){const _0x47eac3=_0x36542c;_(this,_0x47eac3(0x300),[]),_(this,_0x47eac3(0x2ac),null),_(this,_0x47eac3(0x352),null),_(this,_0x47eac3(0x159),null),_(this,'_hideTimer',null),_(this,_0x47eac3(0x237),null),(this['_cursor']=_0x51f87d,this[_0x47eac3(0x2c6)]=_0x4c57bd,this['_docSkeleton']=_0xa0e90b,this[_0x47eac3(0x35e)]=_0x456a2f,this[_0x47eac3(0x33d)]());}set[_0x36542c(0x170)](_0x4ada76){const _0x34ab3a=_0x36542c;_0x4ada76?(this['_anchorDot']&&this[_0x34ab3a(0x159)][_0x34ab3a(0x21a)](),this[_0x34ab3a(0x352)]&&this[_0x34ab3a(0x352)][_0x34ab3a(0x219)]()):(this[_0x34ab3a(0x159)]&&this['_anchorDot'][_0x34ab3a(0x219)](),this[_0x34ab3a(0x352)]&&this[_0x34ab3a(0x352)][_0x34ab3a(0x21a)]());}[_0x36542c(0x1f7)](){const _0x2b2d2e=_0x36542c;for(const _0x30089c of this[_0x2b2d2e(0x300)])_0x30089c[_0x2b2d2e(0x1f7)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x2b2d2e(0x159)]&&this[_0x2b2d2e(0x159)][_0x2b2d2e(0x1f7)](),this[_0x2b2d2e(0x2ac)]&&this['_anchor'][_0x2b2d2e(0x1f7)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x36542c(0x33d)](){const _0x16ec7b=_0x36542c;var _0x3d6ce0;const {_docSkeleton:_0x41f743,_document:_0xb1e995}=this,{color:_0x399cdb,name:_0x3c185c,ranges:_0x5c75bf}=this[_0x16ec7b(0x22e)],_0x59276d=_0xb1e995[_0x16ec7b(0x14e)](),{docsLeft:_0x207967,docsTop:_0x193577}=_0x59276d,_0x2868a7=new _0x1cb209(_0x59276d,_0x41f743);for(const {startOffset:_0x40cd67,endOffset:_0x5b416f,rangeType:_0xd664c4,segmentId:_0x5ce131,segmentPage:_0x3fb152,collapsed:_0x58b8a1,isActive:_0x1ca08b}of _0x5c75bf){const _0x2a0a49=_0x41f743[_0x16ec7b(0x112)](_0x40cd67,!0x0,_0x5ce131,_0x3fb152);let _0x54dfe4=_0x41f743[_0x16ec7b(0x112)](_0x5b416f,!0x0,_0x5ce131,_0x3fb152);if(_0x54dfe4==null&&(_0x54dfe4=_0x41f743['findNodePositionByCharIndex'](_0x5b416f-0x1,!0x1,_0x5ce131,_0x3fb152)),_0x1ca08b){const {contentBoxPointGroup:_0x363035}=_0x2868a7[_0x16ec7b(0x262)](_0x54dfe4,_0x54dfe4);if(_0x363035[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x25f)](_0x399cdb,_0x363035,_0x207967,_0x193577,_0x3c185c),this[_0x16ec7b(0x237)]=this[_0x16ec7b(0x213)]();}if(_0x2a0a49&&_0x54dfe4){if(_0xd664c4===_0x584882[_0x16ec7b(0x2d2)]){const _0x103de0=new _0x22d440(_0x59276d,_0x41f743),{pointGroup:_0x19589a}=(_0x3d6ce0=_0x103de0[_0x16ec7b(0x262)](_0x2a0a49,_0x54dfe4))!=null?_0x3d6ce0:{};if(_0x19589a==null||_0x19589a[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x1c1)](_0x399cdb,_0x19589a,_0x207967,_0x193577);}else{if(!_0x58b8a1){const {borderBoxPointGroup:_0x63d74}=_0x2868a7['getRangePointData'](_0x2a0a49,_0x54dfe4);if(_0x63d74[_0x16ec7b(0x125)]===0x0)continue;this[_0x16ec7b(0x1de)](_0x399cdb,_0x63d74,_0x207967,_0x193577);}}}}}[_0x36542c(0x25f)](_0x968d5f,_0xc8269b,_0x53f61a,_0x279164,_0x3b646e){const _0x471b53=_0x36542c,_0x110924=this[_0x471b53(0x315)](_0xc8269b),{left:_0xf2e407,top:_0xfbe2f,height:_0x24d7d3}=_0x110924,_0x1c9035=this[_0x471b53(0x20b)](),_0x108813=zi/_0x1c9035,_0x3b8a58=new _0x20c8d4(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164,'height':_0x24d7d3,'width':Ki,'fill':_0x968d5f||_0x4a919b(_0x1bb289['black'],0x0),'strokeWidth':_0x108813,'stroke':Ji,'evented':!0x0});this[_0x471b53(0x2ac)]=_0x3b8a58,this[_0x471b53(0x2c6)][_0x471b53(0x17b)](_0x3b8a58,_0x513ae7);const _0x578335=new _0x20c8d4(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x968d5f||_0x4a919b(_0x1bb289[_0x471b53(0x18c)],0x0),'strokeWidth':0x0,'stroke':_0x968d5f||_0x4a919b(_0x1bb289['black'],0x0),'evented':!0x1});this[_0x471b53(0x159)]=_0x578335,this['_scene']['addObject'](_0x578335,_0x513ae7);const _0x3a8678=new ve(De+_0x52eed0(z),{'left':_0xf2e407+_0x53f61a-_0x108813,'top':_0xfbe2f+_0x279164-Q,'text':_0x3b646e,'color':_0x968d5f});this['_textBubble']=_0x3a8678,this['_scene'][_0x471b53(0x17b)](_0x3a8678,_0x513ae7),this[_0x471b53(0x170)]=!0x1;}['_handleHover'](){const _0x563330=_0x36542c,_0x3de06a=this['_anchor'][_0x563330(0x15e)][_0x563330(0x188)](()=>{const _0x3ad86a=_0x563330;this[_0x3ad86a(0x170)]=!0x0;}),_0x3c5de5=this[_0x563330(0x2ac)][_0x563330(0x248)][_0x563330(0x188)](()=>{const _0x2404e1=_0x563330;this['_hideTimer']&&clearTimeout(this[_0x2404e1(0x328)]),this[_0x2404e1(0x328)]=setTimeout(()=>{const _0x12fd57=_0x2404e1;this[_0x12fd57(0x170)]=!0x1;},0x7d0);});return()=>{const _0x46f725=_0x563330;_0x3de06a[_0x46f725(0x2e7)](),_0x3c5de5['unsubscribe']();};}['_drawTextRange'](_0x2804ba,_0x4a92c0,_0x5af623,_0x3e593a){const _0x1bd4b3=_0x36542c,_0xa415a8=new _0x131f5a(_0x2804ba)[_0x1bd4b3(0x2dd)](0.2)[_0x1bd4b3(0x19c)](),_0x1ab608=new _0x43c252(Xi+_0x52eed0(z),{'pointsGroup':_0x4a92c0,'fill':_0xa415a8||_0x4a919b(_0x1bb289['black'],0.2),'left':_0x5af623,'top':_0x3e593a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bd4b3(0x300)]['push'](_0x1ab608),this[_0x1bd4b3(0x2c6)][_0x1bd4b3(0x17b)](_0x1ab608,_0x513ae7);}[_0x36542c(0x1c1)](_0x4d1fdd,_0xfc6344,_0x148bb2,_0x5b3aad){const _0x13a424=_0x36542c,_0x41471f=new _0x131f5a(_0x4d1fdd)[_0x13a424(0x2dd)](0.2)['toRgbString'](),_0x37e201=new _0x43c252(Gi+_0x52eed0(z),{'pointsGroup':_0xfc6344,'fill':_0x41471f||_0x4a919b(_0x1bb289['black'],0.2),'left':_0x148bb2,'top':_0x5b3aad,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13a424(0x300)][_0x13a424(0x133)](_0x37e201),this[_0x13a424(0x2c6)][_0x13a424(0x17b)](_0x37e201,_0x513ae7);}[_0x36542c(0x315)](_0x18b48c){const _0x5aec39=_0x18b48c[0x0],_0x8b0224=_0x5aec39[0x0],_0x56cf96=_0x5aec39[0x2],{x:_0x2ef7e5,y:_0xa751b2}=_0x8b0224,{x:_0x55673f,y:_0x5dc242}=_0x56cf96;return{'left':_0x2ef7e5,'top':_0xa751b2,'width':_0x55673f-_0x2ef7e5,'height':_0x5dc242-_0xa751b2};}[_0x36542c(0x20b)](){const _0x58a47a=_0x36542c,{scaleX:_0xc8c633,scaleY:_0x14f905}=this['_scene'][_0x58a47a(0x271)]();return Math[_0x58a47a(0x1db)](_0xc8c633,_0x14f905);}}var Zi=Object[_0x36542c(0x281)],Qi=(_0x1e11ae,_0x345676,_0x25bcb3,_0x4cda33)=>{for(var _0x3f3e86=_0x4cda33>0x1?void 0x0:_0x4cda33?Zi(_0x345676,_0x25bcb3):_0x345676,_0x1b6df2=_0x1e11ae['length']-0x1,_0x461bd6;_0x1b6df2>=0x0;_0x1b6df2--)(_0x461bd6=_0x1e11ae[_0x1b6df2])&&(_0x3f3e86=_0x461bd6(_0x3f3e86)||_0x3f3e86);return _0x3f3e86;},ie=(_0xc745b2,_0x5a4142)=>(_0x2f0e89,_0x1c0732)=>_0x5a4142(_0x2f0e89,_0x1c0732,_0xc745b2);let Fe=class extends _0x2e3ce9{constructor(_0x44f5c5,_0x25540e,_0x4ba7f1,_0x454906,_0x11e128){const _0x472d6f=_0x36542c;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this['_context']=_0x44f5c5,this[_0x472d6f(0x211)]=_0x25540e,this[_0x472d6f(0x218)]=_0x4ba7f1,this[_0x472d6f(0x14b)]=_0x454906,this[_0x472d6f(0x354)]=_0x11e128,this[_0x472d6f(0x2f7)]());}['_init'](){const _0x263d7d=_0x36542c,_0x17d770=this['_context'][_0x263d7d(0x20a)],_0x800ff3=this[_0x263d7d(0x211)];this[_0x263d7d(0x2e0)](_0x174358([this[_0x263d7d(0x218)]['getCollabCursors$'](_0x17d770),this[_0x263d7d(0x354)][_0x263d7d(0x22f)]])[_0x263d7d(0x124)](_0x59c5bc(([_0x10925f,_0x502f3e])=>({'skeleton':_0x800ff3[_0x263d7d(0x2cc)](),'cursors':[..._0x10925f[_0x263d7d(0x28b)]()][_0x263d7d(0x1d1)](_0x5e7a48=>({..._0x5e7a48,'color':this['_themeService'][_0x263d7d(0x2b1)](_0x5e7a48[_0x263d7d(0x27b)])}))})))[_0x263d7d(0x1cc)](_0x3da7e6=>{const _0x591455=_0x263d7d;if(this[_0x591455(0x119)](),_0x3da7e6){const {skeleton:_0x590a3b,cursors:_0x124ba6}=_0x3da7e6;this['_updateCollabCursors'](_0x590a3b,_0x124ba6);}})),this[_0x263d7d(0x283)](),this[_0x263d7d(0x259)]();}[_0x36542c(0x1d4)](_0x7fcc50,_0x1f9253){const _0x1b08e=_0x36542c,{scene:_0x33581a,mainComponent:_0x1b667c}=this['_context'],_0x37482e=_0x1f9253[_0x1b08e(0x257)](_0x172fc2=>new ct(_0x172fc2,_0x33581a,_0x7fcc50,_0x1b667c));this[_0x1b08e(0x197)]=_0x37482e,this[_0x1b08e(0x2b2)]=_0x1f9253;}['_refreshCollabCursors'](){const _0x35f52c=_0x36542c;this['_removeCollabCursors']();const {scene:_0x289c06,mainComponent:_0x4ab8a1}=this[_0x35f52c(0x35a)],_0x340e44=this[_0x35f52c(0x211)][_0x35f52c(0x2cc)](),_0x393135=this[_0x35f52c(0x2b2)][_0x35f52c(0x257)](_0x1f720c=>new ct(_0x1f720c,_0x289c06,_0x340e44,_0x4ab8a1));this['_cursorShapes']=_0x393135;}['_removeCollabCursors'](){const _0x43d4a5=_0x36542c;this['_cursorShapes'][_0x43d4a5(0x310)](_0x516901=>_0x516901[_0x43d4a5(0x1f7)]()),this[_0x43d4a5(0x197)]=[];}[_0x36542c(0x259)](){const _0x136c7b=_0x36542c,_0x4f5bee=[_0x1e5c3e['id']];this[_0x136c7b(0x2e0)](this[_0x136c7b(0x14b)]['onCommandExecuted'](_0x460a71=>{const _0x58fbd6=_0x136c7b;_0x4f5bee[_0x58fbd6(0x172)](_0x460a71['id'])&&_0x460a71['params'][_0x58fbd6(0x20a)]===this['_context'][_0x58fbd6(0x20a)]&&this[_0x58fbd6(0x1c7)]();}));}[_0x36542c(0x283)](){const _0x1b1b77=_0x36542c;this[_0x1b1b77(0x2e0)](_0x4a08d3(this[_0x1b1b77(0x35a)][_0x1b1b77(0x14f)][_0x1b1b77(0x2f1)])[_0x1b1b77(0x124)](_0x283ed0(_0xf5852e=>_0xf5852e[_0x1b1b77(0x1ab)]===_0x7f58f8['resize']),_0x218010(0x10))[_0x1b1b77(0x1cc)](()=>{const _0x44b217=_0x1b1b77;this[_0x44b217(0x1c7)]();}));}};Fe=Qi([ie(0x1,_0x338b4d(_0x265ea4)),ie(0x2,_0x338b4d(H)),ie(0x3,_0x344a42),ie(0x4,_0x338b4d(_0x331d79))],Fe);const qi=0x1,en=1.5;class tn extends _0x1e4876{constructor(_0x42718d,_0x311072){const _0x1f6630=_0x36542c;super(_0x42718d,_0x311072),_(this,_0x1f6630(0x2ca)),_(this,_0x1f6630(0x143),!0x1),_(this,_0x1f6630(0x246)),_(this,_0x1f6630(0x19b),''),_(this,_0x1f6630(0x312),_0x1f6630(0x35f)),_(this,_0x1f6630(0x29c)),(_0x311072&&this[_0x1f6630(0x341)](_0x311072),this[_0x1f6630(0x15e)]['subscribeEvent'](()=>this[_0x1f6630(0x341)]({'hovered':!0x0})),this[_0x1f6630(0x248)][_0x1f6630(0x188)](()=>this[_0x1f6630(0x341)]({'hovered':!0x1})));}[_0x36542c(0x341)](_0xd53762){const _0x558466=_0x36542c;var _0x5a8220,_0x38b34d,_0x288a76,_0x1485f4,_0x12e0a1,_0x2052b0;this[_0x558466(0x2ca)]=(_0x5a8220=_0xd53762[_0x558466(0x27b)])!=null?_0x5a8220:this['_color'],this[_0x558466(0x143)]=(_0x38b34d=_0xd53762[_0x558466(0x13e)])!=null?_0x38b34d:this[_0x558466(0x143)],this['_range']=(_0x288a76=_0xd53762[_0x558466(0x243)])!=null?_0x288a76:this[_0x558466(0x246)],this['_name']=(_0x1485f4=_0xd53762['name'])!=null?_0x1485f4:this[_0x558466(0x19b)],this[_0x558466(0x312)]=(_0x12e0a1=_0xd53762[_0x558466(0x1a6)])!=null?_0x12e0a1:this['_labelPosition'],this[_0x558466(0x29c)]=(_0x2052b0=_0xd53762[_0x558466(0x2c7)])!=null?_0x2052b0:this[_0x558466(0x29c)],this[_0x558466(0x299)]({'width':_0xd53762['width'],'height':_0xd53762[_0x558466(0x349)]});}[_0x36542c(0x160)](_0x33a29b){const _0x35d50b=_0x36542c,{row:_0x3bc5ee,column:_0x5c370f}=_0x33a29b;if(_0x3bc5ee>=this['_range'][_0x35d50b(0x350)]&&_0x3bc5ee<=this[_0x35d50b(0x246)][_0x35d50b(0x279)]&&_0x5c370f>=this[_0x35d50b(0x246)][_0x35d50b(0x2df)]&&_0x5c370f<=this['_range'][_0x35d50b(0x232)]){this[_0x35d50b(0x341)]({'hovered':!0x0});return;}this[_0x35d50b(0x341)]({'hovered':!0x1});}[_0x36542c(0x16d)](_0x5cd72f){return!0x1;}[_0x36542c(0x24b)](_0x113568){const _0x1b74f1=_0x36542c;_0x20c8d4[_0x1b74f1(0x332)](_0x113568,{'width':this[_0x1b74f1(0x2d4)],'height':this[_0x1b74f1(0x349)],'strokeWidth':en,'stroke':this[_0x1b74f1(0x2ca)],'evented':!0x1,'fill':this[_0x1b74f1(0x29c)]}),this[_0x1b74f1(0x143)]&&(_0x113568[_0x1b74f1(0x1c3)](),_0x113568[_0x1b74f1(0x35c)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b74f1(0x312)]===_0x1b74f1(0x343)?0x0:-Q),ve[_0x1b74f1(0x332)](_0x113568,{'text':this['_name'],'color':this[_0x1b74f1(0x2ca)]}),_0x113568[_0x1b74f1(0x161)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x396333,_0x3ddb9d,_0x1733f0,_0x522aa1)=>{const _0x5585ef=_0x36542c;for(var _0x4e7cb2=_0x522aa1>0x1?void 0x0:_0x522aa1?sn(_0x3ddb9d,_0x1733f0):_0x3ddb9d,_0x5a3976=_0x396333[_0x5585ef(0x125)]-0x1,_0x11f9a4;_0x5a3976>=0x0;_0x5a3976--)(_0x11f9a4=_0x396333[_0x5a3976])&&(_0x4e7cb2=_0x11f9a4(_0x4e7cb2)||_0x4e7cb2);return _0x4e7cb2;},be=(_0x2d2872,_0x439192)=>(_0x4bf60e,_0x4a7973)=>_0x439192(_0x4bf60e,_0x4a7973,_0x2d2872);const rn=0x1389;let ke=class extends _0x2e3ce9{constructor(_0x27256b,_0x22019c,_0x935b2b,_0x44dfb2){const _0x33701d=_0x36542c;super(),_(this,_0x33701d(0x2b2),new Set()),_(this,_0x33701d(0x2d0),null),(this[_0x33701d(0x35a)]=_0x27256b,this[_0x33701d(0x301)]=_0x22019c,this[_0x33701d(0x218)]=_0x935b2b,this[_0x33701d(0x354)]=_0x44dfb2,this['_init']());}[_0x36542c(0x2f7)](){const _0x3f2c34=_0x36542c;this[_0x3f2c34(0x301)][_0x3f2c34(0x1ca)]['pipe'](_0x88348d(this[_0x3f2c34(0x272)]),_0x469c3c(_0x6197d8=>{const _0xe1908a=_0x3f2c34;if(_0x6197d8){const _0x4a9752=_0x6197d8[_0xe1908a(0x2ee)];return _0x174358(this['_collabCursorController']['getCollabCursors$'](this[_0xe1908a(0x35a)][_0xe1908a(0x20a)]),this[_0xe1908a(0x354)][_0xe1908a(0x22f)])[_0xe1908a(0x124)](_0x59c5bc(([_0x2676ff,_0x364090])=>{const _0x4de157=_0xe1908a,_0x36121f=new Map();return _0x2676ff[_0x4de157(0x310)]((_0x1dcf9d,_0x2a5207)=>{const _0x42aa6f=_0x4de157;if(_0x1dcf9d[_0x42aa6f(0x2ae)]===_0x4a9752){const _0x33acde={..._0x1dcf9d};_0x33acde['color']=this[_0x42aa6f(0x354)]['getColorFromTheme'](_0x1dcf9d[_0x42aa6f(0x27b)]),_0x36121f['set'](_0x2a5207,_0x33acde);}}),{'skeleton':_0x6197d8,'cursors':_0x36121f};}));}return _0x5eb303({'skeleton':null,'cursors':new Map()});}))[_0x3f2c34(0x1cc)](({skeleton:_0x271af9,cursors:_0x528b2d})=>{const _0x37cbf2=_0x3f2c34;this[_0x37cbf2(0x119)](),_0x271af9&&this['_updateCollabCursors'](_0x271af9,_0x528b2d);}),this[_0x3f2c34(0x301)][_0x3f2c34(0x1ca)]['subscribe'](_0x185153=>{const _0x162e9b=_0x3f2c34;if(_0x185153==null)return;const {skeleton:_0x3bc4c8}=_0x185153,{scene:_0xe2f91b}=this['_context'];_0xe2f91b['onPointerMove$'][_0x162e9b(0x188)](_0x9e9857(_0x20151e=>{const _0x5f442a=_0x162e9b;var _0x12969d,_0xf5b79c;const {offsetX:_0x334b0e,offsetY:_0x33d859}=_0x20151e,{x:_0x3f9d34,y:_0x52d6e9}=_0xe2f91b[_0x5f442a(0x11e)](_0x35ebd3['FromArray']([_0x334b0e,_0x33d859])),{scaleX:_0x4014e8,scaleY:_0x4621c3}=_0xe2f91b[_0x5f442a(0x271)](),_0x1dd294=_0xe2f91b['getViewport'](_0x2e4a5e[_0x5f442a(0x32d)]),_0x112c0c=_0xe2f91b[_0x5f442a(0x2a0)](_0x35ebd3[_0x5f442a(0x344)]([_0x3f9d34,_0x52d6e9]),_0x1dd294),_0x314184=_0x3bc4c8[_0x5f442a(0x28c)](_0x334b0e,_0x33d859,_0x4014e8,_0x4621c3,_0x112c0c);((_0x12969d=this['_lastPointer'])==null?void 0x0:_0x12969d[_0x5f442a(0x2a9)])===_0x314184[_0x5f442a(0x2a9)]&&((_0xf5b79c=this[_0x5f442a(0x2d0)])==null?void 0x0:_0xf5b79c[_0x5f442a(0x32c)])===_0x314184[_0x5f442a(0x32c)]||this['_cursors']['forEach'](_0x16f0a7=>{const _0x379b99=_0x5f442a;_0x16f0a7[_0x379b99(0x160)](_0x314184);});},0x64));});}[_0x36542c(0x1d4)](_0x143e99,_0xc2149e){const _0x1d8c39=_0x36542c;var _0x213e50;const _0x10b0e2=(_0x213e50=this[_0x1d8c39(0x301)][_0x1d8c39(0x359)]())==null?void 0x0:_0x213e50[_0x1d8c39(0x1bd)];if(!_0x10b0e2)return;const _0x39931b=this[_0x1d8c39(0x196)]();if(!_0x39931b)return;this[_0x1d8c39(0x2b2)]['forEach'](_0x500f57=>{const _0xa7e627=_0x1d8c39;_0x500f57[_0xa7e627(0x132)]();});const {scene:_0x27e88d}=_0x39931b,_0x12b1ca=on(Array['from'](_0xc2149e[_0x1d8c39(0x28b)]()))['map'](_0x406f6c=>{const _0x202e3d=_0x1d8c39,{color:_0x4d4477,range:_0x558361,name:_0x53363a,selection:_0x1630a5,sheetID:_0x5d4953}=_0x406f6c,{startColumn:_0x525cfc,startRow:_0x32a6f4,endColumn:_0x6230c9,endRow:_0xb9eeb4}=_0x558361,_0x49a3ae=_0x504140(_0x32a6f4,_0x525cfc,_0x27e88d,_0x10b0e2),_0x4bebb1=_0x504140(_0xb9eeb4,_0x6230c9,_0x27e88d,_0x10b0e2),{columnHeaderHeightAndMarginTop:_0x3af41f}=_0x10b0e2,{startX:_0x5570aa,startY:_0x3a2eca}=_0x49a3ae,{endX:_0x37c27c,endY:_0x2811b2}=_0x4bebb1,_0xe5441d=_0x37c27c-_0x5570aa,_0x21de13=_0x2811b2-_0x3a2eca,_0x43a8bf={'labelPosition':_0x3a2eca-_0x3af41f>=Q?'top':_0x202e3d(0x343),'sheetID':_0x5d4953,'range':_0x558361,'color':_0x4d4477,'name':_0x53363a,'selection':_0x1630a5,'left':_0x5570aa,'top':_0x3a2eca,'width':_0xe5441d,'height':_0x21de13,'evented':!0x1,'zIndex':rn};return new tn(_0x53363a,_0x43a8bf);});_0x27e88d['addObjects'](_0x12b1ca,qi),this[_0x1d8c39(0x2b2)]=new Set(_0x12b1ca);}['_removeCollabCursors'](){const _0x54c1d6=_0x36542c;var _0x517993;(_0x517993=this[_0x54c1d6(0x2b2)])==null||_0x517993[_0x54c1d6(0x310)](_0x375411=>_0x375411[_0x54c1d6(0x1f7)]());}['_getSheetObject'](){const _0x36f49d=_0x36542c;return _0x3b0908(this['_context'][_0x36f49d(0x33c)],this[_0x36f49d(0x35a)]);}};ke=nn([be(0x1,_0x338b4d(_0x49f76f)),be(0x2,_0x338b4d(H)),be(0x3,_0x338b4d(_0x331d79))],ke);function on(_0x321c4e){const _0x4ab701=_0x36542c,_0xb98030=new Map();return _0x321c4e[_0x4ab701(0x310)](_0x4cf92b=>{const _0x37a802=_0x4ab701;if(_0xb98030[_0x37a802(0x16f)](_0x4cf92b[_0x37a802(0x280)])){const _0x2177dc=_0xb98030['get'](_0x4cf92b[_0x37a802(0x280)]);_0x2177dc[_0x37a802(0x182)]+=',\x20'+_0x4cf92b[_0x37a802(0x182)];}else _0xb98030['set'](_0x4cf92b[_0x37a802(0x280)],_0x4cf92b);}),Array['from'](_0xb98030[_0x4ab701(0x28b)]());}var an=Object[_0x36542c(0x281)],cn=(_0x55e873,_0x2a0d08,_0x656fc4,_0x3fb4da)=>{const _0x2bb606=_0x36542c;for(var _0x46dc7c=_0x3fb4da>0x1?void 0x0:_0x3fb4da?an(_0x2a0d08,_0x656fc4):_0x2a0d08,_0x5c5814=_0x55e873[_0x2bb606(0x125)]-0x1,_0x37062d;_0x5c5814>=0x0;_0x5c5814--)(_0x37062d=_0x55e873[_0x5c5814])&&(_0x46dc7c=_0x37062d(_0x46dc7c)||_0x46dc7c);return _0x46dc7c;},F=(_0x1e035f,_0x53d11a)=>(_0x37666a,_0xf9fdf4)=>_0x53d11a(_0x37666a,_0xf9fdf4,_0x1e035f);let _e=class extends _0xc640cc{constructor(_0x137a4b,_0x128ac0,_0x47d96f,_0x939dd5,_0x4e2529,_0x14b950){const _0x1d9156=_0x36542c;super(),this[_0x1d9156(0x13a)]=_0x137a4b,this['_localCacheService']=_0x128ac0,this[_0x1d9156(0x1d5)]=_0x47d96f,this[_0x1d9156(0x1e3)]=_0x939dd5,this[_0x1d9156(0x145)]=_0x4e2529,this[_0x1d9156(0x351)]=_0x14b950,this[_0x1d9156(0x32b)](),this[_0x1d9156(0x21c)]();}[_0x36542c(0x32b)](){const _0x5ea1e4=_0x36542c;this[_0x5ea1e4(0x2e0)](this['_beforeCloseService'][_0x5ea1e4(0x1a3)](()=>{const _0x46393f=_0x5ea1e4;if(this['_localCacheService']['saveTaskMap'][_0x46393f(0x326)])return this[_0x46393f(0x351)]['t'](_0x46393f(0x222));}));}['_initEvent'](){const _0x50c25d=_0x36542c;this[_0x50c25d(0x2e0)](this[_0x50c25d(0x1d5)][_0x50c25d(0x34f)][_0x50c25d(0x1cc)](_0x3e6ec9=>{const _0x4456d6=_0x50c25d;_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x166)]&&this['_messageService'][_0x4456d6(0x219)]({'type':_0x5d4ed0[_0x4456d6(0x155)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x1dc))}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x17e)]&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x155)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x19d))}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x228)]&&this[_0x4456d6(0x145)][_0x4456d6(0x219)]({'title':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x1b7)),'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x27e)),'type':_0x4456d6(0x245),'duration':0x0}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x1f4)]&&this[_0x4456d6(0x1e3)][_0x4456d6(0x219)]({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t']('collaboration.closeRoom')+'('+_0x3e6ec9['data']+')'}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x20c)]&&this['_messageService'][_0x4456d6(0x219)]({'type':_0x5d4ed0['Warning'],'content':this[_0x4456d6(0x351)]['t'](_0x3e6ec9['data']||'')}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x2f2)]&&this[_0x4456d6(0x1e3)][_0x4456d6(0x219)]({'type':_0x5d4ed0['Warning'],'content':this[_0x4456d6(0x351)]['t']('session.will-retry')}),_0x3e6ec9['id']===_0x5b6a2e[_0x4456d6(0x1df)]&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x304))}),_0x3e6ec9['id']===_0x5b6a2e['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4456d6(0x1e3)]['show']({'type':_0x5d4ed0[_0x4456d6(0x2da)],'content':this[_0x4456d6(0x351)]['t'](_0x4456d6(0x29a))});}));}};_e=cn([F(0x0,_0x2bbef3),F(0x1,_0x386892),F(0x2,_0x338b4d(_0x5a0b75)),F(0x3,_0x90efad),F(0x4,_0x59af86),F(0x5,_0x338b4d(_0x1cbe37))],_e);var _n=Object[_0x36542c(0x281)],ln=(_0x3acb8a,_0x4e76fa,_0x6e79cf,_0x488223)=>{const _0x5e9527=_0x36542c;for(var _0x554982=_0x488223>0x1?void 0x0:_0x488223?_n(_0x4e76fa,_0x6e79cf):_0x4e76fa,_0x8a4cee=_0x3acb8a[_0x5e9527(0x125)]-0x1,_0x569f7b;_0x8a4cee>=0x0;_0x8a4cee--)(_0x569f7b=_0x3acb8a[_0x8a4cee])&&(_0x554982=_0x569f7b(_0x554982)||_0x554982);return _0x554982;},ne=(_0x73b274,_0xb84909)=>(_0x4e22f8,_0x2cd61d)=>_0xb84909(_0x4e22f8,_0x2cd61d,_0x73b274);let le=class extends _0xc640cc{constructor(_0x3fda42,_0x59fb79,_0x2e8295,_0x4f713a){const _0x59b43c=_0x36542c;super(),_(this,_0x59b43c(0x2c4)),(this[_0x59b43c(0x207)]=_0x3fda42,this['_httpService']=_0x59fb79,this[_0x59b43c(0x14d)]=_0x2e8295,this[_0x59b43c(0x2bd)]=_0x4f713a,this[_0x59b43c(0x2f7)]());}[_0x36542c(0x2f7)](){const _0x48c9ac=_0x36542c;this[_0x48c9ac(0x1c8)](),this[_0x48c9ac(0x330)](),this[_0x48c9ac(0x16b)](),this[_0x48c9ac(0x26f)]();}[_0x36542c(0x26f)](){const _0x93629d=_0x36542c;this[_0x93629d(0x2e0)](this[_0x93629d(0x2bd)][_0x93629d(0x1aa)][_0x93629d(0x1cc)](_0x5c4fc0=>{const _0x1850ac=_0x93629d;this['_memberID']=_0x5c4fc0==null?void 0x0:_0x5c4fc0[_0x1850ac(0x13d)];}));}[_0x36542c(0x1c8)](){const _0x19c919=_0x36542c,_0x3c5425=_0x3bb4a8=>{const _0x4dda6d=_0x4dd1;var _0x5ef404;this[_0x4dda6d(0x175)](_0x4dda6d(0x245),_0x4dda6d(0x353)+_0x3bb4a8['message']+'\x20at\x20'+_0x3bb4a8[_0x4dda6d(0x273)]+':'+_0x3bb4a8[_0x4dda6d(0x308)]+':'+_0x3bb4a8[_0x4dda6d(0x19f)]+'\x0a'+(((_0x5ef404=_0x3bb4a8[_0x4dda6d(0x245)])==null?void 0x0:_0x5ef404['stack'])||''));};window[_0x19c919(0x116)](_0x19c919(0x245),_0x3c5425),this[_0x19c919(0x2e0)](()=>{const _0x16db3f=_0x19c919;window[_0x16db3f(0x33b)](_0x16db3f(0x245),_0x3c5425);});}[_0x36542c(0x330)](){const _0xd1bd13=_0x36542c,_0xf40d74=_0x13e9f6=>{const _0xe4aab0=_0x4dd1;this[_0xe4aab0(0x175)](_0xe4aab0(0x245),'[Unhandled\x20Rejection]:\x20'+_0x13e9f6[_0xe4aab0(0x1af)]);};window[_0xd1bd13(0x116)](_0xd1bd13(0x111),_0xf40d74),this[_0xd1bd13(0x2e0)](()=>{const _0x5743b0=_0xd1bd13;window['removeEventListener'](_0x5743b0(0x111),_0xf40d74);});}[_0x36542c(0x16b)](){const _0x4f86d5=_0x36542c,_0x330d0d=this[_0x4f86d5(0x14d)][_0x4f86d5(0x245)][_0x4f86d5(0x114)](this[_0x4f86d5(0x14d)]);this[_0x4f86d5(0x14d)]['error']=(..._0x195b89)=>{const _0x51c4fc=_0x4f86d5,_0x1eee9e=_0x195b89['map'](_0x1ff0d9=>_0x1ff0d9 instanceof Error?_0x1ff0d9[_0x51c4fc(0x27c)]+'\x0a'+_0x1ff0d9['stack']:String(_0x1ff0d9))[_0x51c4fc(0x179)]('\x20');this['_uploadLog']('error',_0x51c4fc(0x2b8)+_0x1eee9e),_0x330d0d(..._0x195b89);},this['disposeWithMe'](()=>{const _0x2387d8=_0x4f86d5;this[_0x2387d8(0x14d)][_0x2387d8(0x245)]=_0x330d0d;});}[_0x36542c(0x175)](_0x13d66d,_0x52bf5d){const _0x521f8a=_0x36542c;try{const _0x10fd02={'userId':this[_0x521f8a(0x2c4)],'logLabel':_0x13d66d,'content':_0x52bf5d};this[_0x521f8a(0x18b)]['post']('/universer-api/frontend/logs',{'body':_0x10fd02})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x338b4d(_0x2c838e)),ne(0x1,_0x338b4d(_0x5f42ec)),ne(0x2,_0x4838cb),ne(0x3,_0x338b4d(_0x403187))],le);function _0x4dd1(_0x4f301f,_0x48e35c){_0x4f301f=_0x4f301f-0x111;const _0x24c379=_0x24c3();let _0x4dd1bb=_0x24c379[_0x4f301f];return _0x4dd1bb;}const hn=_0x36542c(0x2ba),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x5d4a09,_0x423956,_0x8bfc7,_0x2d46d3)=>{const _0x4e6ee5=_0x36542c;for(var _0x3a5e1c=_0x2d46d3>0x1?void 0x0:_0x2d46d3?un(_0x423956,_0x8bfc7):_0x423956,_0x55795f=_0x5d4a09[_0x4e6ee5(0x125)]-0x1,_0x489653;_0x55795f>=0x0;_0x55795f--)(_0x489653=_0x5d4a09[_0x55795f])&&(_0x3a5e1c=_0x489653(_0x3a5e1c)||_0x3a5e1c);return _0x3a5e1c;},lt=(_0x328345,_0x1d1bea)=>(_0x2ff216,_0x1d8a0d)=>_0x1d1bea(_0x2ff216,_0x1d8a0d,_0x328345);let he=class{constructor(_0x59ff23,_0x17e251){const _0x367774=_0x36542c;this[_0x367774(0x2c1)]=_0x59ff23,this[_0x367774(0x203)]=_0x17e251;}[_0x36542c(0x227)](_0x43c28f){const _0x4aa4e1=_0x36542c;this[_0x4aa4e1(0x28a)](_0x43c28f),this['_transformPreviousActiveRange'](_0x43c28f);}[_0x36542c(0x139)](_0x233c39){const _0x5ba538=_0x36542c,{unitID:_0x2ee23a}=_0x233c39,_0x307ab8=this[_0x5ba538(0x203)][_0x5ba538(0x24d)](_0x2ee23a)[_0x5ba538(0x342)](_0x40b6fc),{redoCache:_0x501720}=_0x307ab8[_0x5ba538(0x2d9)]();if(_0x501720[_0x5ba538(0x125)]===0x0)return _0x233c39;let _0x2306eb=_0x36941c[_0x5ba538(0x14c)](_0x233c39[_0x5ba538(0x338)][0x0]);for(let _0x102b46=0x0;_0x102b46<_0x501720[_0x5ba538(0x125)];_0x102b46++){const _0x31dcbb={'id':'doc.mutation.rich-text-editing','params':{..._0x501720[_0x102b46]}},_0x476b2a=this[_0x5ba538(0x2c1)][_0x5ba538(0x2f4)](_0x2306eb,_0x31dcbb,!0x1);if(_0x5aaf2c(_0x476b2a))throw _0x476b2a[_0x5ba538(0x245)];_0x2306eb=_0x476b2a[_0x5ba538(0x210)];}return{..._0x36941c['deepClone'](_0x233c39),'mutations':[_0x2306eb]};}[_0x36542c(0x28a)](_0x314b8b){const _0x8788b4=_0x36542c,{unitID:_0x5928d1}=_0x314b8b,_0x504b56=this[_0x8788b4(0x203)]['getRenderById'](_0x5928d1)[_0x8788b4(0x342)](_0x40b6fc),{undoCache:_0x5af360,redoCache:_0x1d3bbe}=_0x504b56[_0x8788b4(0x2d9)]();if(_0x5af360[_0x8788b4(0x125)]===0x0||_0x1d3bbe[_0x8788b4(0x125)]===0x0)return;const _0x1df63c=[],_0x1f4662=[];let _0x2fa29c=_0x36941c[_0x8788b4(0x14c)](_0x314b8b['mutations'][0x0]),_0x4648cb=_0x36941c[_0x8788b4(0x14c)](_0x314b8b['mutations'][0x0]);for(let _0x27ee33=_0x5af360[_0x8788b4(0x125)]-0x1;_0x27ee33>=0x0;_0x27ee33--){const _0x57ee12={'id':'doc.mutation.rich-text-editing','params':{..._0x5af360[_0x27ee33]}},_0xcbd35c={'id':_0x8788b4(0x33f),'params':{..._0x1d3bbe[_0x27ee33]}},_0x1d93d0=this['_transformService']['transformMutation'](_0x2fa29c,_0x57ee12,!0x1),_0xe95e67=this[_0x8788b4(0x2c1)][_0x8788b4(0x2f4)](_0x4648cb,_0xcbd35c,!0x1);if(_0x5aaf2c(_0x1d93d0))throw _0x1d93d0[_0x8788b4(0x245)];if(_0x5aaf2c(_0xe95e67))throw _0xe95e67[_0x8788b4(0x245)];_0x1df63c[_0x8788b4(0x1e6)](_0x1d93d0[_0x8788b4(0x21e)]['params']),_0x1f4662[_0x8788b4(0x1e6)](_0xe95e67[_0x8788b4(0x21e)][_0x8788b4(0x335)]),_0x2fa29c=_0x1d93d0[_0x8788b4(0x210)],_0x4648cb=_0xe95e67[_0x8788b4(0x210)];}_0x504b56[_0x8788b4(0x2bf)]({'undoCache':_0x1df63c,'redoCache':_0x1f4662});}[_0x36542c(0x2fc)](_0x59bfe4){const _0x3d1ff7=_0x36542c,{unitID:_0x222313}=_0x59bfe4,_0x18d062=this['_renderManagerService']['getRenderById'](_0x222313)[_0x3d1ff7(0x342)](_0x40b6fc),_0x4648a5=_0x18d062['getActiveRange']();if(_0x4648a5==null)return;const _0x429c7a=[{'id':_0x3d1ff7(0x33f),'params':{'unitId':_0x59bfe4[_0x3d1ff7(0x26b)],'actions':null,'textRanges':[_0x4648a5]}}],_0xf64313=this['_transformService'][_0x3d1ff7(0x266)](_0x59bfe4,_0x429c7a);if(!_0x41b3f2(_0xf64313))throw _0xf64313[_0x3d1ff7(0x245)];const _0x25f460=_0xf64313[_0x3d1ff7(0x21e)][0x0]['params'][_0x3d1ff7(0x340)];Array[_0x3d1ff7(0x1ec)](_0x25f460)&&_0x25f460[_0x3d1ff7(0x125)]&&_0x18d062['setActiveRange'](_0x25f460[0x0]);}};he=dn([lt(0x0,_0x20cc24),lt(0x1,_0x325ffd)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x11e73e,_0xaa0c74,_0xd46729,_0x44524e)=>{for(var _0x3d1330=_0x44524e>0x1?void 0x0:_0x44524e?Sn(_0xaa0c74,_0xd46729):_0xaa0c74,_0x137e89=_0x11e73e['length']-0x1,_0x23fd7e;_0x137e89>=0x0;_0x137e89--)(_0x23fd7e=_0x11e73e[_0x137e89])&&(_0x3d1330=_0x23fd7e(_0x3d1330)||_0x3d1330);return _0x3d1330;},Le=(_0x1c2ccf,_0x19ff2b)=>(_0x3a6eb9,_0x310869)=>_0x19ff2b(_0x3a6eb9,_0x310869,_0x1c2ccf);let ue=class{constructor(_0x474c5c,_0x360bd1,_0x47e1d6){const _0xe16a00=_0x36542c;this[_0xe16a00(0x207)]=_0x474c5c,this[_0xe16a00(0x2c1)]=_0x360bd1,this['_docStateChangeManagerService']=_0x47e1d6;}[_0x36542c(0x2a5)](_0x167fbc){this['_transformHistoryAndStateStack'](_0x167fbc);}[_0x36542c(0x139)](_0x5cbc7f){const _0x1bb49f=_0x36542c,{unitID:_0x220df5}=_0x5cbc7f,{collaboration:_0x195311}=this['_docStateChangeManagerService'][_0x1bb49f(0x141)](_0x220df5);if(_0x195311['length']===0x0)return _0x5cbc7f;let _0x15d1c6=_0x36941c['deepClone'](_0x5cbc7f[_0x1bb49f(0x338)][0x0]);for(let _0x123c88=0x0;_0x123c88<_0x195311[_0x1bb49f(0x125)];_0x123c88++){const _0x4360f9={'id':_0x1bb49f(0x33f),'params':{'unitId':_0x195311[_0x123c88][_0x1bb49f(0x20a)],..._0x195311[_0x123c88][_0x1bb49f(0x1e9)]}},_0x234900=this[_0x1bb49f(0x2c1)]['transformMutation'](_0x15d1c6,_0x4360f9,!0x1);if(_0x5aaf2c(_0x234900))throw _0x234900[_0x1bb49f(0x245)];_0x15d1c6=_0x234900[_0x1bb49f(0x210)];}return{..._0x36941c[_0x1bb49f(0x14c)](_0x5cbc7f),'mutations':[_0x15d1c6]};}[_0x36542c(0x2b3)](_0x586129){const _0x26cf0e=_0x36542c,{unitID:_0x111073}=_0x586129,{history:_0x269b8b,collaboration:_0x1cd26b}=this[_0x26cf0e(0x2ef)]['getStateCache'](_0x111073);if(_0x269b8b[_0x26cf0e(0x125)]===0x0&&_0x1cd26b[_0x26cf0e(0x125)]===0x0)return;const _0x11d792=[],_0x3bbe18=[];let _0x1e7622=_0x36941c[_0x26cf0e(0x14c)](_0x586129[_0x26cf0e(0x338)][0x0]),_0x49d6a8=_0x36941c['deepClone'](_0x586129[_0x26cf0e(0x338)][0x0]);for(let _0x3a4562=_0x269b8b['length']-0x1;_0x3a4562>=0x0;_0x3a4562--){const _0x1ecb69={'id':_0x26cf0e(0x33f),'params':{'unitId':_0x269b8b[_0x3a4562][_0x26cf0e(0x20a)],..._0x269b8b[_0x3a4562]['undoState']}},_0xd41ca7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x269b8b[_0x3a4562][_0x26cf0e(0x20a)],..._0x269b8b[_0x3a4562][_0x26cf0e(0x1e9)]}},_0x46fa7d=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x1e7622,_0x1ecb69,!0x1),_0xd92785=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x49d6a8,_0xd41ca7,!0x1);if(_0x5aaf2c(_0x46fa7d))throw _0x46fa7d[_0x26cf0e(0x245)];if(_0x5aaf2c(_0xd92785))throw _0xd92785[_0x26cf0e(0x245)];_0x11d792[_0x26cf0e(0x1e6)]({..._0x269b8b[_0x3a4562],'undoState':_0x46fa7d[_0x26cf0e(0x21e)][_0x26cf0e(0x335)],'redoState':_0xd92785['m2Prime']['params']}),_0x1e7622=_0x46fa7d[_0x26cf0e(0x210)],_0x49d6a8=_0xd92785['m1Prime'];}_0x1e7622=_0x36941c['deepClone'](_0x586129[_0x26cf0e(0x338)][0x0]),_0x49d6a8=_0x36941c[_0x26cf0e(0x14c)](_0x586129[_0x26cf0e(0x338)][0x0]);for(let _0x57d0b7=_0x1cd26b['length']-0x1;_0x57d0b7>=0x0;_0x57d0b7--){const _0x4504c0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1cd26b[_0x57d0b7]['unitId'],..._0x1cd26b[_0x57d0b7][_0x26cf0e(0x174)]}},_0x5e4eeb={'id':_0x26cf0e(0x33f),'params':{'unitId':_0x1cd26b[_0x57d0b7][_0x26cf0e(0x20a)],..._0x1cd26b[_0x57d0b7][_0x26cf0e(0x1e9)]}},_0x1e55c7=this['_transformService']['transformMutation'](_0x1e7622,_0x4504c0,!0x1),_0xba6f5d=this[_0x26cf0e(0x2c1)][_0x26cf0e(0x2f4)](_0x49d6a8,_0x5e4eeb,!0x1);if(_0x5aaf2c(_0x1e55c7))throw _0x1e55c7[_0x26cf0e(0x245)];if(_0x5aaf2c(_0xba6f5d))throw _0xba6f5d[_0x26cf0e(0x245)];_0x3bbe18['unshift']({..._0x1cd26b[_0x57d0b7],'undoState':_0x1e55c7['m2Prime'][_0x26cf0e(0x335)],'redoState':_0xba6f5d[_0x26cf0e(0x21e)][_0x26cf0e(0x335)]}),_0x1e7622=_0x1e55c7[_0x26cf0e(0x210)],_0x49d6a8=_0xba6f5d[_0x26cf0e(0x210)];}this[_0x26cf0e(0x2ef)]['setStateCache'](_0x111073,{'history':_0x11d792,'collaboration':_0x3bbe18});}};ue=In([Le(0x0,_0x338b4d(_0x2c838e)),Le(0x1,_0x20cc24),Le(0x2,_0x338b4d(_0x2cc006))],ue);var mn=Object[_0x36542c(0x281)],fn=(_0x42963f,_0x565bf3,_0x1699ea,_0x5ce703)=>{for(var _0x276269=_0x5ce703>0x1?void 0x0:_0x5ce703?mn(_0x565bf3,_0x1699ea):_0x565bf3,_0x4e4b2f=_0x42963f['length']-0x1,_0xfa6e26;_0x4e4b2f>=0x0;_0x4e4b2f--)(_0xfa6e26=_0x42963f[_0x4e4b2f])&&(_0x276269=_0xfa6e26(_0x276269)||_0x276269);return _0x276269;},ht=(_0x4a9dab,_0x4fcff0)=>(_0x3d78ee,_0xb1fdbf)=>_0x4fcff0(_0x3d78ee,_0xb1fdbf,_0x4a9dab);let de=class{constructor(_0x3b32a0,_0x33e799){const _0x5ee0a7=_0x36542c;this[_0x5ee0a7(0x207)]=_0x3b32a0,this[_0x5ee0a7(0x2c1)]=_0x33e799;}[_0x36542c(0x230)](_0x25fefe){const _0x1029d2=_0x36542c;var _0x7f8725;const _0x270fb5=this[_0x1029d2(0x207)][_0x1029d2(0x194)](_0x564962),_0x420b97=(_0x7f8725=_0x270fb5[_0x1029d2(0x157)]())!=null?_0x7f8725:[];if(_0x420b97[_0x1029d2(0x125)]===0x0)return;const _0x30df44=_0x25fefe[_0x1029d2(0x26b)],_0x102dab=[{'id':_0x1029d2(0x33f),'params':{'unitId':_0x30df44,'actions':null,'textRanges':_0x420b97}}],_0x1d3ac3=this[_0x1029d2(0x2c1)][_0x1029d2(0x266)](_0x25fefe,_0x102dab);if(!_0x41b3f2(_0x1d3ac3))throw _0x1d3ac3[_0x1029d2(0x245)];const _0x5a8cb6=_0x1d3ac3[_0x1029d2(0x21e)][0x0][_0x1029d2(0x335)]['textRanges'];Array['isArray'](_0x5a8cb6)&&_0x5a8cb6[_0x1029d2(0x125)]&&_0x270fb5[_0x1029d2(0x2cf)](_0x5a8cb6,{'unitId':_0x30df44,'subUnitId':_0x30df44},!0x1);}};de=fn([ht(0x0,_0x338b4d(_0x2c838e)),ht(0x1,_0x20cc24)],de);var gn=Object[_0x36542c(0x281)],En=(_0x4f8512,_0x4fdc59,_0x4a7a20,_0x25f195)=>{const _0x53d6f2=_0x36542c;for(var _0x4e5a4d=_0x25f195>0x1?void 0x0:_0x25f195?gn(_0x4fdc59,_0x4a7a20):_0x4fdc59,_0x3ba39d=_0x4f8512[_0x53d6f2(0x125)]-0x1,_0x3a2e97;_0x3ba39d>=0x0;_0x3ba39d--)(_0x3a2e97=_0x4f8512[_0x3ba39d])&&(_0x4e5a4d=_0x3a2e97(_0x4e5a4d)||_0x4e5a4d);return _0x4e5a4d;},U=(_0x48325e,_0x5d183d)=>(_0xfdd947,_0x222100)=>_0x5d183d(_0xfdd947,_0x222100,_0x48325e);let Se=class extends _0xc640cc{constructor(_0x37592f,_0x253540,_0x56c61d,_0x19521e,_0xd630b6,_0x185e11,_0x4f4ff1,_0x51d76e){const _0xb4f880=_0x36542c;super(),_(this,_0xb4f880(0x241),new _0x311c05(_0x23527c[_0xb4f880(0x277)])),(this['_docStateChangeManagerService']=_0x37592f,this[_0xb4f880(0x183)]=_0x253540,this[_0xb4f880(0x33e)]=_0x56c61d,this['_docTransformStateCacheService']=_0x19521e,this['_docTransformSelectionsService']=_0xd630b6,this['_docSyncEditingCollabCursorService']=_0x185e11,this[_0xb4f880(0x1e3)]=_0x4f4ff1,this['_localeService']=_0x51d76e,this[_0xb4f880(0x1e5)]());}[_0x36542c(0x1e5)](){const _0xe59914=_0x36542c;this[_0xe59914(0x2e0)](this[_0xe59914(0x183)][_0xe59914(0x195)][_0xe59914(0x1cc)](_0x360800=>{const _0x27961c=_0xe59914,_0x1601be=this['_docStateChangeManagerService'][_0x27961c(0x191)][_0x27961c(0x1cc)](_0x2e9f40=>{const _0x53ae02=_0x27961c;if(_0x2e9f40==null)return;const {unitId:_0x299759,redoState:_0x388a51,commandId:_0x4486f3}=_0x2e9f40;if(_0x299759!==_0x360800[_0x53ae02(0x26b)])return;const _0x329a89={'id':_0x4486f3,'type':_0x185fc4[_0x53ae02(0x16e)],'params':{'unitId':_0x299759,'actions':_0x388a51[_0x53ae02(0x2ea)],'textRanges':null}};_0x360800[_0x53ae02(0x238)](_0x329a89);});if(_0x360800[_0x27961c(0x2e0)](_0x1601be),_0x360800 instanceof _0x59bf88){const _0xe92968={'onTransformIME':_0x2151e5=>this[_0x27961c(0x33e)][_0x27961c(0x227)](_0x2151e5),'onTransformState':_0x23e9da=>this[_0x27961c(0x22d)][_0x27961c(0x2a5)](_0x23e9da),'onTransformSelections':_0xde0689=>this['_docTransformSelectionsService'][_0x27961c(0x230)](_0xde0689),'onSyncEditingCollabCursor':_0x188566=>this[_0x27961c(0x21b)][_0x27961c(0x162)](_0x188566),'onTransformRemoteChangesetByIMECache':_0x9d4f2c=>this[_0x27961c(0x33e)][_0x27961c(0x139)](_0x9d4f2c),'onTransformRemoteChangesetByStateCache':_0xcc262b=>this[_0x27961c(0x22d)]['transformRemoteChangeset'](_0xcc262b)};_0x360800[_0x27961c(0x242)](_0xe92968);}}));}};Se=En([U(0x0,_0x338b4d(_0x2cc006)),U(0x1,_0x338b4d(_0xeb50a)),U(0x2,_0x338b4d(he)),U(0x3,_0x338b4d(ue)),U(0x4,_0x338b4d(de)),U(0x5,_0x338b4d(ze)),U(0x6,_0x90efad),U(0x7,_0x338b4d(_0x1cbe37))],Se);var Z=(_0x266d7f=>(_0x266d7f[_0x266d7f['UNDEFINED']=0x0]=_0x36542c(0x311),_0x266d7f[_0x266d7f['OK']=0x1]='OK',_0x266d7f[_0x266d7f[_0x36542c(0x321)]=0x2]=_0x36542c(0x321),_0x266d7f[_0x266d7f[_0x36542c(0x228)]=0x3]=_0x36542c(0x228),_0x266d7f[_0x266d7f[_0x36542c(0x254)]=0x4]=_0x36542c(0x254),_0x266d7f[_0x266d7f['UNAUTHENTICATED']=0x5]=_0x36542c(0x2ec),_0x266d7f[_0x266d7f[_0x36542c(0x355)]=0x6]=_0x36542c(0x355),_0x266d7f[_0x266d7f['INVALID_ARGUMENT']=0x7]=_0x36542c(0x18f),_0x266d7f[_0x266d7f[_0x36542c(0x297)]=0x8]=_0x36542c(0x297),_0x266d7f[_0x266d7f[_0x36542c(0x35d)]=0x9]=_0x36542c(0x35d),_0x266d7f[_0x266d7f[_0x36542c(0x1c0)]=0xa]=_0x36542c(0x1c0),_0x266d7f[_0x266d7f[_0x36542c(0x25d)]=0xb]=_0x36542c(0x25d),_0x266d7f[_0x266d7f[_0x36542c(0x357)]=0xc]=_0x36542c(0x357),_0x266d7f[_0x266d7f[_0x36542c(0x1ff)]=0xd]=_0x36542c(0x1ff),_0x266d7f[_0x266d7f[_0x36542c(0x122)]=0xe]=_0x36542c(0x122),_0x266d7f[_0x266d7f['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x266d7f[_0x266d7f['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x36542c(0x348),_0x266d7f[_0x266d7f['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x36542c(0x2e2),_0x266d7f[_0x266d7f[_0x36542c(0x1fb)]=0x65]=_0x36542c(0x1fb),_0x266d7f[_0x266d7f['USER_NOT_FOUND']=0xc9]=_0x36542c(0x307),_0x266d7f[_0x266d7f['USER_IS_ANONYMOUS']=0xca]=_0x36542c(0x286),_0x266d7f[_0x266d7f[_0x36542c(0x314)]=0x1389]=_0x36542c(0x314),_0x266d7f[_0x266d7f[_0x36542c(0x23d)]=0x1771]=_0x36542c(0x23d),_0x266d7f[_0x266d7f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x266d7f[_0x266d7f[_0x36542c(0x140)]=0x1773]=_0x36542c(0x140),_0x266d7f[_0x266d7f[_0x36542c(0x1f0)]=0x1b59]=_0x36542c(0x1f0),_0x266d7f[_0x266d7f[_0x36542c(0x199)]=0x1b5a]=_0x36542c(0x199),_0x266d7f[_0x266d7f[_0x36542c(0x12e)]=0x1b5b]=_0x36542c(0x12e),_0x266d7f[_0x266d7f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x36542c(0x217),_0x266d7f[_0x266d7f[_0x36542c(0x16c)]=0x1b5d]=_0x36542c(0x16c),_0x266d7f[_0x266d7f['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x36542c(0x212),_0x266d7f[_0x266d7f[_0x36542c(0x2c9)]=0x2329]=_0x36542c(0x2c9),_0x266d7f[_0x266d7f['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x36542c(0x1da),_0x266d7f[_0x266d7f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x266d7f[_0x266d7f[_0x36542c(0x121)]=0x232c]=_0x36542c(0x121),_0x266d7f[_0x266d7f[_0x36542c(0x2e9)]=0x232d]=_0x36542c(0x2e9),_0x266d7f[_0x266d7f[_0x36542c(0x285)]=0x2711]=_0x36542c(0x285),_0x266d7f[_0x266d7f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x36542c(0x2fb),_0x266d7f[_0x266d7f['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x36542c(0x2eb),_0x266d7f[_0x266d7f[_0x36542c(0x1f8)]=0x2714]=_0x36542c(0x1f8),_0x266d7f[_0x266d7f[_0x36542c(0x30c)]=0x271a]=_0x36542c(0x30c),_0x266d7f[_0x266d7f[_0x36542c(0x2aa)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x266d7f[_0x266d7f[_0x36542c(0x148)]=0x271c]=_0x36542c(0x148),_0x266d7f[_0x266d7f[_0x36542c(0x13f)]=0x271d]=_0x36542c(0x13f),_0x266d7f[_0x266d7f[_0x36542c(0x1d0)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x266d7f[_0x266d7f[_0x36542c(0x2a1)]=0x271f]=_0x36542c(0x2a1),_0x266d7f[_0x266d7f[_0x36542c(0x138)]=0x2720]=_0x36542c(0x138),_0x266d7f[_0x266d7f[_0x36542c(0x223)]=0x2af9]=_0x36542c(0x223),_0x266d7f[_0x266d7f[_0x36542c(0x293)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x266d7f[_0x266d7f[_0x36542c(0x209)]=0x2ee2]='INVALID_INVITE_CODE',_0x266d7f[_0x266d7f['INVITE_CODE_REQUIRED']=0x2ee3]=_0x36542c(0x152),_0x266d7f[_0x266d7f[_0x36542c(0x1fe)]=0x2ee4]=_0x36542c(0x1fe),_0x266d7f[_0x266d7f[_0x36542c(0x2f6)]=0x2ee5]=_0x36542c(0x2f6),_0x266d7f[_0x266d7f[_0x36542c(0x347)]=0x32c9]=_0x36542c(0x347),_0x266d7f[_0x266d7f[_0x36542c(0x1bf)]=0x32ca]=_0x36542c(0x1bf),_0x266d7f[_0x266d7f[_0x36542c(0x2b7)]=0x32cb]=_0x36542c(0x2b7),_0x266d7f[_0x266d7f[_0x36542c(0x2fa)]=0x36b1]=_0x36542c(0x2fa),_0x266d7f[_0x266d7f[_0x36542c(0x146)]=0x36b2]=_0x36542c(0x146),_0x266d7f[_0x266d7f[_0x36542c(0x309)]=0x36b3]=_0x36542c(0x309),_0x266d7f[_0x266d7f[_0x36542c(0x276)]=0x36b4]=_0x36542c(0x276),_0x266d7f[_0x266d7f['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x266d7f[_0x266d7f[_0x36542c(0x1b8)]=0x36b6]=_0x36542c(0x1b8),_0x266d7f[_0x266d7f[_0x36542c(0x178)]=0x36b7]=_0x36542c(0x178),_0x266d7f[_0x266d7f[_0x36542c(0x2c0)]=0x36b8]=_0x36542c(0x2c0),_0x266d7f[_0x266d7f['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x36542c(0x30a),_0x266d7f[_0x266d7f[_0x36542c(0x284)]=0x3716]=_0x36542c(0x284),_0x266d7f[_0x266d7f['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x36542c(0x200),_0x266d7f[_0x266d7f[_0x36542c(0x2e1)]=0x37dd]=_0x36542c(0x2e1),_0x266d7f[_0x266d7f[_0x36542c(0x298)]=0x3a99]=_0x36542c(0x298),_0x266d7f[_0x266d7f[_0x36542c(0x115)]=0x3a9a]=_0x36542c(0x115),_0x266d7f[_0x266d7f[_0x36542c(0x1ee)]=0x3a9b]=_0x36542c(0x1ee),_0x266d7f[_0x266d7f[_0x36542c(0x1ba)]=0x3a9c]=_0x36542c(0x1ba),_0x266d7f[_0x266d7f[_0x36542c(0x269)]=0x3a9d]=_0x36542c(0x269),_0x266d7f[_0x266d7f[_0x36542c(0x224)]=0x3a9e]=_0x36542c(0x224),_0x266d7f[_0x266d7f[_0x36542c(0x220)]=0x3a9f]=_0x36542c(0x220),_0x266d7f[_0x266d7f[_0x36542c(0x360)]=0x3e81]=_0x36542c(0x360),_0x266d7f[_0x266d7f[_0x36542c(0x120)]=-0x1]='UNRECOGNIZED',_0x266d7f))(Z||{});function vn(_0x373586){const _0x1f7519=_0x36542c;var _0x22cb1c,_0x5508bb;const _0x147bcd=(_0x22cb1c=_0x373586[_0x1f7519(0x137)])==null?void 0x0:_0x22cb1c['stage'],_0x4e2301=((_0x5508bb=_0x373586[_0x1f7519(0x137)])==null?void 0x0:_0x5508bb['totalFormulasToCalculate'])||0x0;return _0x147bcd===_0x2e6da7[_0x1f7519(0x30b)]&&_0x4e2301>0x0;}function pn(_0x31983e){const _0x8b94eb=_0x36542c;return _0x31983e['functionsExecutedState']===_0x267fe6[_0x8b94eb(0x278)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x29b9f4,_0x539bfc,_0x592bc6,_0x367794)=>{const _0x5b1fb5=_0x36542c;for(var _0x3cf5f9=_0x367794>0x1?void 0x0:_0x367794?On(_0x539bfc,_0x592bc6):_0x539bfc,_0x19247a=_0x29b9f4[_0x5b1fb5(0x125)]-0x1,_0x1d0a68;_0x19247a>=0x0;_0x19247a--)(_0x1d0a68=_0x29b9f4[_0x19247a])&&(_0x3cf5f9=_0x1d0a68(_0x3cf5f9)||_0x3cf5f9);return _0x3cf5f9;},P=(_0x47fc3d,_0x5c74c2)=>(_0x5c0329,_0xdb7fb4)=>_0x5c74c2(_0x5c0329,_0xdb7fb4,_0x47fc3d);const Cn=_0x36542c(0x2b0),Rn=_0x36542c(0x1f6),Dn=_0x36542c(0x16a);let Ie=class extends _0xc640cc{constructor(_0x251ca1,_0x3e3496,_0x460160,_0x42e891,_0x198208,_0x5a70e9,_0x5bc970){const _0x554f44=_0x36542c;super(),_(this,'_pollingInterval',null),_(this,_0x554f44(0x24a),0x0),_(this,_0x554f44(0x234),0x0),_(this,'_taskIds',[]),_(this,_0x554f44(0x1cf),0x0),(this[_0x554f44(0x1e3)]=_0x251ca1,this[_0x554f44(0x14b)]=_0x3e3496,this[_0x554f44(0x163)]=_0x460160,this[_0x554f44(0x18b)]=_0x42e891,this[_0x554f44(0x2c2)]=_0x198208,this[_0x554f44(0x14d)]=_0x5a70e9,this[_0x554f44(0x351)]=_0x5bc970,this[_0x554f44(0x25b)]());}[_0x36542c(0x25b)](){const _0x2ac3ad=_0x36542c;this[_0x2ac3ad(0x2e0)](this[_0x2ac3ad(0x14b)]['beforeCommandExecuted']((_0x4eb364,_0x2971da)=>{const _0xac196b=_0x2ac3ad;var _0x453cdf;if(_0x4eb364['id']!==_0x384e02['id'])return;const _0x24adec=_0x4eb364['params'];if(!this[_0xac196b(0x13c)]((_0x453cdf=_0x24adec['dirtyRanges'])!=null?_0x453cdf:[]))return;if(!this[_0xac196b(0x11a)]())throw this['_checkAndWaitForCalculationPermission'](_0x4eb364,_0x2971da),this[_0xac196b(0x292)](),new _0x5548aa();})),this[_0x2ac3ad(0x2e0)](this[_0x2ac3ad(0x14b)]['onCommandExecuted']((_0xa88d45,_0x59dfe4)=>{const _0x10eb80=_0x2ac3ad;if(_0xa88d45['id']!==_0x8dbaaa['id'])return;const _0x139b0e=_0xa88d45['params'];if(vn(_0x139b0e)){const _0x1e9468=_0x52eed0();this[_0x10eb80(0x267)]['push'](_0x1e9468),this[_0x10eb80(0x31e)](_0x1e9468);}else{if(pn(_0x139b0e)&&this['_taskIds'][_0x10eb80(0x125)]>0x0){const _0x3bf258=this[_0x10eb80(0x267)][_0x10eb80(0x29e)]();this[_0x10eb80(0x2f0)](_0x3bf258);}}}));}[_0x36542c(0x1f7)](){const _0x3819fd=_0x36542c;super[_0x3819fd(0x1f7)](),this[_0x3819fd(0x225)](),this[_0x3819fd(0x267)]=[],this[_0x3819fd(0x234)]=0x0,this[_0x3819fd(0x24a)]=0x0,this[_0x3819fd(0x1cf)]=0x0;}async[_0x36542c(0x15a)](_0xba08b5,_0x525816){const _0x5907b1=_0x36542c;for(let _0xe84dde=0x0;_0xe84dde<0x1e;_0xe84dde++)try{if(await this[_0x5907b1(0x2f8)](),this[_0x5907b1(0x11a)]()){this[_0x5907b1(0x226)](_0xba08b5,_0x525816),this[_0x5907b1(0x1e3)][_0x5907b1(0x219)]({'content':this['_localeService']['t'](_0x5907b1(0x134)),'type':_0x5d4ed0[_0x5907b1(0x31d)]});return;}await new Promise(_0x4ed79e=>{const _0x563df1=_0x5907b1;this[_0x563df1(0x17a)]=window['setTimeout'](_0x4ed79e,0x3e8);});}catch(_0x3ca460){this[_0x5907b1(0x14d)][_0x5907b1(0x245)](_0x3ca460);}this[_0x5907b1(0x1e3)][_0x5907b1(0x219)]({'content':this[_0x5907b1(0x351)]['t'](_0x5907b1(0x323)),'type':_0x5d4ed0[_0x5907b1(0x2da)]});}[_0x36542c(0x226)](_0x3f2e3b,_0x5ca323){const _0x5d03e7=_0x36542c;try{this['_commandService'][_0x5d03e7(0x302)](_0x3f2e3b['id'],_0x3f2e3b['params'],_0x5ca323);}catch(_0x43caf9){this[_0x5d03e7(0x14d)]['error'](_0x43caf9);}}[_0x36542c(0x1c6)](_0x1d9588,_0x3d89e9){const _0x248ef9=_0x36542c;_0x3d89e9<this[_0x248ef9(0x1cf)]||(this[_0x248ef9(0x1cf)]=_0x3d89e9,this[_0x248ef9(0x24a)]=Number[_0x248ef9(0x167)](_0x1d9588[_0x248ef9(0x1a4)]),this['_currentUsage']=Number[_0x248ef9(0x167)](_0x1d9588['currentUsage']));}async['_startCalculationLimit'](_0x1981a3){const _0x15f91f=_0x36542c;var _0x5a1c90,_0x154db2;const _0x3bc5b4=Date[_0x15f91f(0x28d)]();try{const _0x3e9b19=((_0x5a1c90=this['_configService'][_0x15f91f(0x1e0)](_0x289bc7))==null?void 0x0:_0x5a1c90[_0x15f91f(0x2d3)])||Rn,_0x4b9cfa=(await this[_0x15f91f(0x18b)][_0x15f91f(0x21d)](_0x3e9b19,{'body':JSON[_0x15f91f(0x1a2)]({'taskId':_0x1981a3})}))['body'];if(((_0x154db2=_0x4b9cfa[_0x15f91f(0x245)])==null?void 0x0:_0x154db2[_0x15f91f(0x2e5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x4b9cfa['limitInfo'],_0x3bc5b4);}catch(_0x54a9a0){this[_0x15f91f(0x14d)][_0x15f91f(0x245)](_0x54a9a0);}}async[_0x36542c(0x2f8)](_0x5abd5d){const _0xad8b4d=_0x36542c;var _0x4535e6,_0xfd860e;const _0x53c196=Date[_0xad8b4d(0x28d)]();try{const _0x4be8b7=((_0x4535e6=this[_0xad8b4d(0x163)][_0xad8b4d(0x1e0)](_0x289bc7))==null?void 0x0:_0x4535e6[_0xad8b4d(0x290)])||Cn,_0x286515=_0x5abd5d?_0x4be8b7+_0xad8b4d(0x30d)+encodeURIComponent(_0x5abd5d):_0x4be8b7,_0x458a2e=(await this[_0xad8b4d(0x18b)][_0xad8b4d(0x194)](_0x286515))[_0xad8b4d(0x346)];if(((_0xfd860e=_0x458a2e['error'])==null?void 0x0:_0xfd860e[_0xad8b4d(0x2e5)])!==Z['OK'])return;this[_0xad8b4d(0x1c6)](_0x458a2e[_0xad8b4d(0x251)],_0x53c196);}catch(_0x9dc976){this[_0xad8b4d(0x14d)]['error'](_0x9dc976);}}async['_releaseCalculationLimit'](_0x46dd75){const _0x529dc5=_0x36542c;var _0x17b5df,_0x1c4b48;const _0x5892c1=Date['now']();try{const _0x18f336=((_0x17b5df=this[_0x529dc5(0x163)][_0x529dc5(0x1e0)](_0x289bc7))==null?void 0x0:_0x17b5df['releaseFormulaLimitUrl'])||Dn,_0x340d30=(await this[_0x529dc5(0x18b)][_0x529dc5(0x21d)](_0x18f336,{'body':JSON['stringify']({'taskId':_0x46dd75})}))[_0x529dc5(0x346)];if(((_0x1c4b48=_0x340d30[_0x529dc5(0x245)])==null?void 0x0:_0x1c4b48[_0x529dc5(0x2e5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x340d30[_0x529dc5(0x251)],_0x5892c1);}catch(_0xbf6824){this[_0x529dc5(0x14d)][_0x529dc5(0x245)](_0xbf6824);}}['_checkCalculationAvailable'](){const _0x29d1fb=_0x36542c;return this[_0x29d1fb(0x24a)]===0x0?!0x0:this[_0x29d1fb(0x24a)]-this[_0x29d1fb(0x234)]>0x0;}['_clearPolling'](){const _0x858e61=_0x36542c;this[_0x858e61(0x17a)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x36542c(0x292)](){const _0x2a3352=_0x36542c;this[_0x2a3352(0x1e3)]['show']({'content':this[_0x2a3352(0x351)]['t'](_0x2a3352(0x2e4)),'type':_0x5d4ed0[_0x2a3352(0x1dd)]});}['_hasFormulaInDirtyRanges'](_0x5e19de){const _0x35f6bb=_0x36542c;for(const _0x1e8335 of _0x5e19de){const {unitId:_0x2632ee,sheetId:_0x267c16,range:_0x406d9a}=_0x1e8335,_0x2c59de=this[_0x35f6bb(0x2c2)][_0x35f6bb(0x2ad)](_0x2632ee);if(!_0x2c59de)continue;const _0x5a5d0d=_0x2c59de[_0x35f6bb(0x316)](_0x267c16);if(!_0x5a5d0d)continue;const _0x541b29=_0x5a5d0d['getCellMatrix']();for(let _0x50ab9e=_0x406d9a[_0x35f6bb(0x350)];_0x50ab9e<=_0x406d9a[_0x35f6bb(0x279)];_0x50ab9e++)for(let _0x4d27ab=_0x406d9a[_0x35f6bb(0x2df)];_0x4d27ab<=_0x406d9a['endColumn'];_0x4d27ab++){const _0x4bcdb3=_0x541b29[_0x35f6bb(0x185)](_0x50ab9e,_0x4d27ab);if(_0x4bcdb3&&(_0x33f895(_0x4bcdb3['f'])||_0x57b445(_0x4bcdb3['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x338b4d(_0x90efad)),P(0x1,_0x344a42),P(0x2,_0x3da9ca),P(0x3,_0x338b4d(_0x5f42ec)),P(0x4,_0x4d0d85),P(0x5,_0x4838cb),P(0x6,_0x338b4d(_0x1cbe37))],Ie);var Nn=Object[_0x36542c(0x281)],bn=(_0x3905a9,_0x169ab3,_0x366aaf,_0x8feb57)=>{for(var _0x1b6a27=_0x8feb57>0x1?void 0x0:_0x8feb57?Nn(_0x169ab3,_0x366aaf):_0x169ab3,_0x10346a=_0x3905a9['length']-0x1,_0x35ae72;_0x10346a>=0x0;_0x10346a--)(_0x35ae72=_0x3905a9[_0x10346a])&&(_0x1b6a27=_0x35ae72(_0x1b6a27)||_0x1b6a27);return _0x1b6a27;},Ue=(_0xe58a2e,_0x5cd31f)=>(_0x3386af,_0x579be7)=>_0x5cd31f(_0x3386af,_0x579be7,_0xe58a2e);let He=class extends _0xc640cc{constructor(_0x4e4cba,_0x39b02a,_0xd2c1fc){const _0x2afede=_0x36542c;super(),_(this,_0x2afede(0x356),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x2afede(0x163)]=_0x4e4cba,this[_0x2afede(0x19a)]=_0x39b02a,this[_0x2afede(0x201)]=_0xd2c1fc);}[_0x36542c(0x265)](){const _0x1634da=_0x36542c;this[_0x1634da(0x23a)]=!0x0;}[_0x36542c(0x117)](){const _0x4656f1=_0x36542c;this[_0x4656f1(0x23a)]=!0x1;}get[_0x36542c(0x240)](){const _0x4bd96c=_0x36542c;return this[_0x4bd96c(0x135)];}['dispose'](){const _0x40bdd1=_0x36542c;this[_0x40bdd1(0x22a)]()[_0x40bdd1(0x2de)](()=>super[_0x40bdd1(0x1f7)]());}async[_0x36542c(0x247)](_0x53b4a5){const _0x39e96c=_0x36542c;return this[_0x39e96c(0x23a)]?null:this['_localStorageService']['getItem'](_0x2b234a(_0x53b4a5));}async[_0x36542c(0x1ef)](_0x237e4e,_0x1547aa){const _0x13ef9e=_0x36542c;return!!this[_0x13ef9e(0x19a)][_0x13ef9e(0x2ab)](_0x237e4e,_0x1547aa);}[_0x36542c(0x1d9)](_0x2fccf5,_0xd1ad5f,_0x3a706f,_0x657ae3){const _0x2c8eb4=_0x36542c,_0x52f54e=this[_0x2c8eb4(0x201)][_0x2c8eb4(0x295)](_0x2fccf5);this[_0x2c8eb4(0x356)]['set'](_0x2fccf5,{'unitID':_0x2fccf5,'type':_0xd1ad5f,'awaitingChangeset':_0x3a706f,'mutations':_0x657ae3,'rev':_0x52f54e}),this['_saveTaskMap']['has'](_0x2fccf5)||this[_0x2c8eb4(0x1b9)](_0x2fccf5);}[_0x36542c(0x1b9)](_0x70c760){const _0x2f309f=_0x36542c,_0x1197ca=this[_0x2f309f(0x325)]();_0x1197ca===0x0?this[_0x2f309f(0x324)](_0x70c760):this[_0x2f309f(0x135)][_0x2f309f(0x25a)](_0x70c760,setTimeout(()=>this[_0x2f309f(0x324)](_0x70c760),_0x1197ca));}[_0x36542c(0x325)](){const _0x3a0036=_0x36542c;var _0x171444;return(_0x171444=this[_0x3a0036(0x163)][_0x3a0036(0x1e0)](_0x490f83))!=null?_0x171444:_0xf2292;}[_0x36542c(0x324)](_0xba9ce3){const _0x1d9575=_0x36542c,_0x59f3e7=this['_saveTaskMap']['get'](_0xba9ce3);return _0x59f3e7!==void 0x0&&window['clearTimeout'](_0x59f3e7),this[_0x1d9575(0x19a)]['setItem'](_0x2b234a(_0xba9ce3),this[_0x1d9575(0x356)]['get'](_0xba9ce3))[_0x1d9575(0x2de)](()=>this[_0x1d9575(0x135)][_0x1d9575(0x158)](_0xba9ce3));}async[_0x36542c(0x22a)](){const _0x42f40a=_0x36542c,_0x5d3408=[];this[_0x42f40a(0x135)]['forEach']((_0x182bb2,_0x3e88b8)=>{const _0x6de704=_0x42f40a;window[_0x6de704(0x2f9)](_0x182bb2),_0x5d3408[_0x6de704(0x133)](this['_saveCache'](_0x3e88b8)[_0x6de704(0x2de)](()=>{const _0x2ba30c=_0x6de704;this[_0x2ba30c(0x135)][_0x2ba30c(0x158)](_0x3e88b8);}));}),await Promise['all'](_0x5d3408);}};He=bn([Ue(0x0,_0x3da9ca),Ue(0x1,_0x15b36e),Ue(0x2,_0x338b4d(_0x2e162a))],He);class Ln extends _0x2e3ce9{constructor(){const _0x54d77d=_0x36542c;super(),_(this,_0x54d77d(0x2ff)),this['urlChange$']=_0x35f93f(window,_0x54d77d(0x180))['pipe'](_0x5427bd(this['dispose$']),_0x48f2bc(0x1),_0x2a8f2a(void 0x0));}[_0x36542c(0x291)](_0x109c8b,_0x1362c6,_0x5944d5=!0x1){const _0x2ec0bb=_0x36542c,_0x237174=new URL(window[_0x2ec0bb(0x275)][_0x2ec0bb(0x1a0)]);_0x237174[_0x2ec0bb(0x1fd)]['set'](_0x109c8b,_0x1362c6),_0x5944d5?window[_0x2ec0bb(0x12d)]['replaceState']('','',_0x237174['toString']()):window[_0x2ec0bb(0x12d)][_0x2ec0bb(0x236)]('','',_0x237174[_0x2ec0bb(0x153)]());}[_0x36542c(0x189)](_0x329e0d,_0x3854b2=!0x1){const _0x158192=_0x36542c,_0x1fa273=new URL(window[_0x158192(0x275)][_0x158192(0x1a0)]);_0x1fa273[_0x158192(0x1fd)]['delete'](_0x329e0d),_0x3854b2?window[_0x158192(0x12d)][_0x158192(0x1d6)]('','',_0x1fa273['toString']()):window[_0x158192(0x12d)][_0x158192(0x236)]('','',_0x1fa273[_0x158192(0x153)]());}[_0x36542c(0x12f)](_0x3a9718){const _0x46fb31=_0x36542c;var _0x1fdfde;return(_0x1fdfde=new URL(window[_0x46fb31(0x275)][_0x46fb31(0x1a0)])[_0x46fb31(0x1fd)][_0x46fb31(0x194)](_0x3a9718))!=null?_0x1fdfde:void 0x0;}}var Un=Object[_0x36542c(0x22b)],Mn=Object[_0x36542c(0x281)],An=(_0x161c54,_0x412a82,_0x4e43d1)=>_0x412a82 in _0x161c54?Un(_0x161c54,_0x412a82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e43d1}):_0x161c54[_0x412a82]=_0x4e43d1,Pn=(_0x9d76fa,_0x8ac5e,_0x142bed,_0x341fd5)=>{for(var _0x463a55=_0x341fd5>0x1?void 0x0:_0x341fd5?Mn(_0x8ac5e,_0x142bed):_0x8ac5e,_0x5e6352=_0x9d76fa['length']-0x1,_0x545081;_0x5e6352>=0x0;_0x5e6352--)(_0x545081=_0x9d76fa[_0x5e6352])&&(_0x463a55=_0x545081(_0x463a55)||_0x463a55);return _0x463a55;},Me=(_0x129db4,_0x3dde69)=>(_0x1d7521,_0x14a51d)=>_0x3dde69(_0x1d7521,_0x14a51d,_0x129db4),wn=(_0x36ef50,_0x3ca2e2,_0x50c934)=>An(_0x36ef50,_0x3ca2e2+'',_0x50c934);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x3eef90{constructor(_0x4c6e4=_t,_0x284b65,_0x1769ac,_0x31590f){const _0x1e0611=_0x36542c;super(),this['_config']=_0x4c6e4,this[_0x1e0611(0x203)]=_0x284b65,this['_injector']=_0x1769ac,this[_0x1e0611(0x163)]=_0x31590f;const {..._0x6fe669}=_0x12e663({},_t,this[_0x1e0611(0x2fe)]);this['_configService'][_0x1e0611(0x1e1)](hn,_0x6fe669);}[_0x36542c(0x149)](){const _0x3eef34=_0x36542c;this[_0x3eef34(0x15b)](),this[_0x3eef34(0x1be)]();}[_0x36542c(0x2b5)](){const _0x3fe583=_0x36542c;this[_0x3fe583(0x2d8)]();}[_0x36542c(0x15b)](){const _0x2be0e6=_0x36542c;var _0x410450;const _0x3a6a9c=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x1a891b,{'useClass':_0x566dd2}],[_0x386892,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2be0e6(0x2fe)][_0x2be0e6(0x337)]&&_0x3a6a9c['push']([le]),_0x238b35(this[_0x2be0e6(0x207)],_0x10c9d8(_0x3a6a9c,(_0x410450=this[_0x2be0e6(0x2fe)])==null?void 0x0:_0x410450['override']));}[_0x36542c(0x2d8)](){const _0xa84da=_0x36542c;this['disposeWithMe'](this[_0xa84da(0x203)][_0xa84da(0x168)](_0x11c449[_0xa84da(0x255)],[Fe])),this[_0xa84da(0x2e0)](this[_0xa84da(0x203)][_0xa84da(0x168)](_0x11c449[_0xa84da(0x176)],[ke]));}[_0x36542c(0x1be)](){const _0x31c41c=_0x36542c;_0x878293(this[_0x31c41c(0x207)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x31c41c(0x2fe)][_0x31c41c(0x337)]&&_0x878293(this['_injector'],[[le]]);}};wn(Ye,_0x36542c(0x1f1),yn),Ye=Pn([_0x3fcff2(_0x405f63),Me(0x1,_0x325ffd),Me(0x2,_0x338b4d(_0x2c838e)),Me(0x3,_0x3da9ca)],Ye);var $n=Object[_0x36542c(0x281)],xn=(_0x5ac413,_0x5ecc46,_0x148467,_0x5c0c1a)=>{const _0x4ed07e=_0x36542c;for(var _0x1c9591=_0x5c0c1a>0x1?void 0x0:_0x5c0c1a?$n(_0x5ecc46,_0x148467):_0x5ecc46,_0x43164a=_0x5ac413[_0x4ed07e(0x125)]-0x1,_0x286746;_0x43164a>=0x0;_0x43164a--)(_0x286746=_0x5ac413[_0x43164a])&&(_0x1c9591=_0x286746(_0x1c9591)||_0x1c9591);return _0x1c9591;},J=(_0x5e210a,_0x4507d2)=>(_0x3f3039,_0x2a527d)=>_0x4507d2(_0x3f3039,_0x2a527d,_0x5e210a);let ut=class extends _0x3f9356{constructor(_0x4dd6e6,_0x494dd5,_0x22cd76,_0x577e60,_0x7d60e3){super(_0x4dd6e6,_0x494dd5,_0x22cd76,_0x577e60,_0x7d60e3);}async[_0x36542c(0x288)](_0x586243){const _0x34d884=_0x36542c,_0x15fcef=await this[_0x34d884(0x17c)](),_0x230e0d=this['_createSocketURL'](_0x586243,_0x15fcef);return this[_0x34d884(0x282)](_0x230e0d);}[_0x36542c(0x17d)](_0x40b0fa,_0x2bd05a){const _0x2a035d=_0x36542c,_0x406350=typeof window>'u'?new URL(_0x40b0fa):new URL(_0x40b0fa,window['location'][_0x2a035d(0x1ed)]);_0x406350[_0x2a035d(0x1fd)][_0x2a035d(0x25a)]('sessionTicket',_0x2bd05a);const _0x2960de=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2a035d(0x275)][_0x2a035d(0x131)]);return _0x2960de[_0x2a035d(0x194)](_0x2a035d(0x2dc))&&_0x406350[_0x2a035d(0x1fd)][_0x2a035d(0x25a)](_0x2a035d(0x2dc),_0x2960de['get']('runId')),_0x406350[_0x2a035d(0x153)]();}async[_0x36542c(0x17c)](){const _0x3fa019=_0x36542c;var _0x4e4c3b,_0x254d74,_0x4f7086;const _0x597f1e=this['_configService'][_0x3fa019(0x1e0)](_0x289bc7),_0x5e1917=(_0x4e4c3b=_0x597f1e==null?void 0x0:_0x597f1e[_0x3fa019(0x2cb)])!=null?_0x4e4c3b:_0x1745dd;return(_0x4f7086=(_0x254d74=(await this['_httpService'][_0x3fa019(0x194)](_0x5e1917,{'headers':{'Content-Type':_0x3fa019(0x20f)}}))[_0x3fa019(0x346)])==null?void 0x0:_0x254d74[_0x3fa019(0x34e)])!=null?_0x4f7086:'';}};ut=xn([J(0x0,_0x338b4d(_0x2c838e)),J(0x1,_0x338b4d(_0x5f42ec)),J(0x2,_0x3da9ca),J(0x3,_0x4838cb),J(0x4,_0x2f7663)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x22d82d,_0x5d46c6,_0x32f847,_0x152c97)=>{const _0x3560e5=_0x36542c;for(var _0x5c8d45=_0x152c97>0x1?void 0x0:_0x152c97?Bn(_0x5d46c6,_0x32f847):_0x5d46c6,_0x381522=_0x22d82d[_0x3560e5(0x125)]-0x1,_0x4f01a2;_0x381522>=0x0;_0x381522--)(_0x4f01a2=_0x22d82d[_0x381522])&&(_0x5c8d45=_0x4f01a2(_0x5c8d45)||_0x5c8d45);return _0x5c8d45;},Ae=(_0x5f4090,_0x24feb7)=>(_0x518be4,_0x3afd88)=>_0x24feb7(_0x518be4,_0x3afd88,_0x5f4090);let dt=class extends _0xc640cc{constructor(_0x1d004c,_0x35bc66,_0x52fa68){const _0x3ec2fd=_0x36542c;super(),this[_0x3ec2fd(0x34c)]=_0x1d004c,this[_0x3ec2fd(0x18b)]=_0x35bc66,this[_0x3ec2fd(0x163)]=_0x52fa68;}async['runOnServer'](_0x5b8db4,_0x423393,_0x20cb25,..._0x48b8a2){const _0x310e38=_0x36542c;var _0x332fde,_0x2c3ef5,_0x39dcd6,_0x40f5fb;const _0x32c816=this[_0x310e38(0x34c)][_0x310e38(0x1d2)]();if(!_0x32c816)throw new Error(_0x310e38(0x1ad));const _0x51ab10=((_0x332fde=this['_configService'][_0x310e38(0x1e0)](_0x5e5c8e))!=null?_0x332fde:_0xaab990)+'/'+_0x5b8db4+_0x310e38(0x12b)+_0x423393,_0xf49b7=new URL(window['location'][_0x310e38(0x1a0)]),_0x5adffa={'scriptId':_0x5b8db4,'runId':(_0x2c3ef5=_0xf49b7['searchParams'][_0x310e38(0x194)](_0x310e38(0x2dc)))!=null?_0x2c3ef5:'','function':_0x423393,'unitId':_0x32c816['getUnitId'](),'argsOfFunction':JSON[_0x310e38(0x1a2)](_0x48b8a2),'invokeId':(_0x39dcd6=_0x20cb25[_0x310e38(0x192)])!=null?_0x39dcd6:'','executionId':(_0x40f5fb=_0x20cb25[_0x310e38(0x25e)])!=null?_0x40f5fb:''};try{const _0x2d4f6f=await this[_0x310e38(0x18b)][_0x310e38(0x21d)](_0x51ab10,{'body':_0x5adffa});return _0x2d4f6f[_0x310e38(0x346)]['error']&&_0x2d4f6f[_0x310e38(0x346)]['error'][_0x310e38(0x2e5)]!==Z['OK']?_0x310e38(0x235):_0x2d4f6f[_0x310e38(0x346)][_0x310e38(0x1d3)];}catch{return _0x310e38(0x235);}}};dt=Fn([Ae(0x0,_0x4d0d85),Ae(0x1,_0x338b4d(_0x5f42ec)),Ae(0x2,_0x3da9ca)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xc640cc{constructor(){const _0x4ebc12=_0x36542c;super(),_(this,_0x4ebc12(0x24f),_0x52eed0()),_(this,_0x4ebc12(0x198),new Set()),_(this,_0x4ebc12(0x181),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x4ebc12(0x186),new Map()),_(this,'_unitStatus',new Map()),this[_0x4ebc12(0x2f7)]();}[_0x36542c(0x1f7)](){const _0x58f97f=_0x36542c;super[_0x58f97f(0x1f7)](),this[_0x58f97f(0x186)][_0x58f97f(0x310)]((_0x93eec6,_0x50b235)=>this['_removeClearOtherTimer'](_0x50b235)),this[_0x58f97f(0x1d8)]&&window[_0x58f97f(0x34b)](this[_0x58f97f(0x1d8)]);}[_0x36542c(0x1bb)](_0x106c5e){const _0x2bb124=_0x36542c;return this['_ensureSubject'](_0x106c5e)[_0x2bb124(0x124)](_0x441b5e());}[_0x36542c(0x294)](_0x917230){const _0xe565f2=_0x36542c;this[_0xe565f2(0x198)][_0xe565f2(0x326)]===0x0&&this[_0xe565f2(0x2be)](),this[_0xe565f2(0x198)][_0xe565f2(0x214)](_0x917230),this[_0xe565f2(0x1ae)]({'type':0x0,'memberID':this[_0xe565f2(0x24f)],'unitIDs':[_0x917230],'isForwarded':!0x1});}[_0x36542c(0x18a)](_0x3ab81e){const _0x1ec08f=_0x36542c;this['_selfUnitIDs'][_0x1ec08f(0x158)](_0x3ab81e),this[_0x1ec08f(0x198)][_0x1ec08f(0x326)]===0x0&&this['_heartbeatTimer']&&window[_0x1ec08f(0x34b)](this[_0x1ec08f(0x1d8)]);}[_0x36542c(0x2f7)](){const _0x36663a=_0x36542c;this[_0x36663a(0x2e0)](_0x6a8bba(_0x35f93f(window,_0x36663a(0x2b6))[_0x36663a(0x1cc)](_0x105455=>{const _0x240c27=_0x36663a;if(_0x105455['key']!==It||!_0x105455['newValue'])return;const _0x3c5ab9=JSON[_0x240c27(0x173)](_0x105455[_0x240c27(0x177)]);this['_handleEvent'](_0x3c5ab9);}))),window[_0x36663a(0x116)](_0x36663a(0x118),()=>this[_0x36663a(0x1ae)]({'type':0x1,'memberID':this[_0x36663a(0x24f)],'unitIDs':Array[_0x36663a(0x35b)](this[_0x36663a(0x198)])}));}[_0x36542c(0x147)](_0x1cea68){const _0x42f1f5=_0x36542c;switch(_0x1cea68[_0x42f1f5(0x1ab)]){case 0x0:this[_0x42f1f5(0x287)](_0x1cea68);break;case 0x1:this[_0x42f1f5(0x128)](_0x1cea68);break;case 0x2:this[_0x42f1f5(0x339)](_0x1cea68);break;}}['_handleJoinEvent'](_0x147110){const _0x5279a9=_0x36542c,{unitIDs:_0x3e70c5,memberID:_0x1ff3dd,isForwarded:_0x14aa21}=_0x147110;_0x3e70c5['forEach'](_0x327bdf=>{const _0x840698=_0x4dd1;if(!_0x14aa21&&this[_0x840698(0x181)][_0x840698(0x16f)](_0x327bdf)&&this['_ensureSubject'](_0x327bdf)[_0x840698(0x21f)](_0x3e2038[_0x840698(0x1eb)]),!this[_0x840698(0x181)]['has'](_0x327bdf)||!this[_0x840698(0x181)]['get'](_0x327bdf)[_0x840698(0x16f)](_0x1ff3dd)){const _0x507a5f=this['_unitOnClients']['get'](_0x327bdf)||new Set();_0x507a5f[_0x840698(0x214)](_0x1ff3dd),this[_0x840698(0x181)][_0x840698(0x25a)](_0x327bdf,_0x507a5f),this[_0x840698(0x31c)](_0x1ff3dd);}}),_0x14aa21||this['_send']({'type':0x0,'memberID':this[_0x5279a9(0x24f)],'unitIDs':[...this[_0x5279a9(0x198)]],'isForwarded':!0x0});}[_0x36542c(0x31c)](_0x470a11){const _0x42cd23=_0x36542c;this[_0x42cd23(0x17f)](_0x470a11);const _0x281ff5=window['setTimeout'](()=>{const _0x50a6c1=_0x42cd23;this['_unitOnClients'][_0x50a6c1(0x310)](_0x3112fc=>{const _0x474d66=_0x50a6c1;_0x3112fc[_0x474d66(0x158)](_0x470a11);});},St*0x2);this['_clearOtherTimers'][_0x42cd23(0x25a)](_0x470a11,_0x281ff5);}[_0x36542c(0x17f)](_0x330590){const _0xa1b68f=_0x36542c;if(this[_0xa1b68f(0x186)][_0xa1b68f(0x16f)](_0x330590)){const _0x509a67=this[_0xa1b68f(0x186)]['get'](_0x330590);_0x509a67&&window[_0xa1b68f(0x2f9)](_0x509a67),this['_clearOtherTimers'][_0xa1b68f(0x25a)](_0x330590,null);}}['_handleLeaveEvent'](_0x5292ae){const _0x2637af=_0x36542c,{memberID:_0x171171,unitIDs:_0x20b87b}=_0x5292ae;_0x20b87b['forEach'](_0x3727a6=>{const _0x44149b=_0x4dd1;var _0x5c9241;const _0x516617=this[_0x44149b(0x181)][_0x44149b(0x194)](_0x3727a6);_0x516617&&(_0x516617[_0x44149b(0x158)](_0x171171),(_0x5c9241=this['_ensureSubject'](_0x3727a6))==null||_0x5c9241['next'](_0x516617[_0x44149b(0x326)]===0x0?_0x3e2038[_0x44149b(0x28e)]:_0x3e2038[_0x44149b(0x1eb)]));}),this[_0x2637af(0x17f)](_0x171171);}[_0x36542c(0x339)](_0x14ca0f){const _0x2cd9c1=_0x36542c;this['_scheduleClearOtherTimer'](_0x14ca0f[_0x2cd9c1(0x13d)]);}[_0x36542c(0x1ae)](_0x1b10c4){const _0x941924=_0x36542c;localStorage['setItem'](It,JSON[_0x941924(0x1a2)](_0x1b10c4));}[_0x36542c(0x2be)](){const _0x1f2232=_0x36542c;this['_heartbeatTimer']=window[_0x1f2232(0x1f2)](()=>{const _0x2e9b03=_0x1f2232;this[_0x2e9b03(0x1ae)]({'type':0x2,'memberID':this[_0x2e9b03(0x24f)]});},St);}['_ensureSubject'](_0x4c7c03){const _0x56bec8=_0x36542c;return this['_unitStatus'][_0x56bec8(0x16f)](_0x4c7c03)||this[_0x56bec8(0x296)][_0x56bec8(0x25a)](_0x4c7c03,new _0x311c05(_0x3e2038[_0x56bec8(0x28e)])),this[_0x56bec8(0x296)][_0x56bec8(0x194)](_0x4c7c03);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};