@univerjs-pro/collaboration-client-ui 1.1.0 → 1.2.0

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 (94) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +4 -0
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/config/config.d.ts +3 -3
  66. package/lib/types/controllers/collaboration-client-ui.controller.d.ts +24 -3
  67. package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +2 -6
  68. package/lib/types/index.d.ts +0 -1
  69. package/lib/types/locale/en-US.d.ts +4 -0
  70. package/lib/umd/facade.js +1 -1
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +17 -18
  92. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -17
  93. package/lib/types/services/url/url.service.d.ts +0 -12
  94. package/lib/types/services/url/web-url.service.d.ts +0 -10
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x9941cc=_0x54b3;(function(_0x3d1387,_0x2f1f1a){const _0x1a5a7e=_0x54b3,_0x2d0d20=_0x3d1387();while(!![]){try{const _0x351b71=-parseInt(_0x1a5a7e(0x28a))/0x1*(parseInt(_0x1a5a7e(0x32f))/0x2)+parseInt(_0x1a5a7e(0x35c))/0x3+parseInt(_0x1a5a7e(0x3d6))/0x4+parseInt(_0x1a5a7e(0x2e9))/0x5+parseInt(_0x1a5a7e(0x218))/0x6+-parseInt(_0x1a5a7e(0x394))/0x7*(-parseInt(_0x1a5a7e(0x3d9))/0x8)+-parseInt(_0x1a5a7e(0x22e))/0x9;if(_0x351b71===_0x2f1f1a)break;else _0x2d0d20['push'](_0x2d0d20['shift']());}catch(_0x4fd9b5){_0x2d0d20['push'](_0x2d0d20['shift']());}}}(_0x5de4,0x56a0c));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x323108,CollaborationController as _0xa6a463,CollaborationSessionService as _0x48e021,CollaborationSocketService as _0xff2dd6,CollaborationStatus as _0x12e22e,CollaborationUIEventId as _0x46cfde,CollaborationUIEventService as _0x5e9140,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x425445,DEFAULT_WS_SESSION_TICKET_URL as _0x59be2d,DataLoaderService as _0x3e7d68,DocCollaborationEntity as _0x2406af,ILocalCacheService as _0x4acd2b,INetworkConditionService as _0x33aa34,LOCAL_CACHE_INTERVAL as _0x3650b9,LOCAL_CACHE_INTERVAL_KEY as _0x3901f1,MemberService as _0x25c118,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3ffe51,SessionStatus as _0x15dfc3,UnitStatus as _0x4c50b0,UniverCollaborationClientPlugin as _0x5ac656,getLocalCacheKey as _0x5c47ad}from'@univerjs-pro/collaboration-client';import{COLORS as _0x5f41ef,ColorKit as _0xf4eb88,CommandType as _0x2b7b9b,DOC_RANGE_TYPE as _0x13669b,DependentOn as _0x5920de,Disposable as _0x4ade65,DisposableCollection as _0x2593d8,ICommandService as _0x309b58,IConfigService as _0x3116f3,IImageIoService as _0x138ac6,ILocalStorageService as _0x2d6fa6,ILogService as _0x54abc2,IUniverInstanceService as _0x479ada,Inject as _0x5e7a64,Injector as _0x3a52d9,LocaleService as _0x100652,Plugin as _0x158ecc,Rectangle as _0x256130,RxDisposable as _0x26adc4,ThemeService as _0x5cb64c,Tools as _0x3bef57,UniverInstanceType as _0x3a9ab9,UserManagerService as _0x57bb22,Workbook as _0x569249,createIdentifier as _0x59bc43,debounce as _0x3580a2,fromEventSubject as _0x312909,generateRandomId as _0x514bf7,isInternalEditorID as _0x125e48,merge as _0x468132,mergeOverrideWithDependencies as _0x1b4625,registerDependencies as _0x176aa9,toDisposable as _0x43c8f,touchDependencies as _0x266c62}from'@univerjs/core';import{BuiltInUIPart as _0x3e468e,IBeforeCloseService as _0x4664b0,IMessageService as _0x3ba635,INotificationService as _0x23d9be,IUIPartsService as _0x3b6d8f,IUnitPresenceUIAdapterRegistry as _0x2ca04e,connectInjector as _0x1685d6,useDependency as _0x269985,useObservable as _0x5d8c77}from'@univerjs/ui';import{BehaviorSubject as _0x4693d8,Subject as _0x49cf9c,combineLatest as _0xd37b62,debounceTime as _0x2d0b95,distinctUntilChanged as _0x5b52ab,filter as _0x27d01f,firstValueFrom as _0x41d36,fromEvent as _0x252f84,map as _0x2ae595,mapTo as _0x1c52fe,merge as _0x5c9537,of as _0x52386d,shareReplay as _0x3e947a,switchMap as _0x5aa3c8,takeUntil as _0x4c8245,throttle as _0x1d35cc,timeout as _0x500b61,timer as _0xcf4317}from'rxjs';import{distinctUntilChanged as _0x49a99f,filter as _0x5d66f3,map as _0x56b22d,switchMap as _0x42c983,takeUntil as _0xf925e5,throttleTime as _0xd66e0f}from'rxjs/operators';import{Button as _0x352c6,MessageType as _0x475928,Tooltip as _0x59042c,clsx as _0x5a89c9}from'@univerjs/design';import{LoadingMultiIcon as _0x913ace,OffLineIcon as _0x27a2ee,OnLineIcon as _0x4d7bac,WarningIcon as _0x4eadf0}from'@univerjs/icons';import{createElement as _0x5eb423,useCallback as _0xefea27,useMemo as _0x5d2946}from'react';import{jsx as _0xc268f7,jsxs as _0x233448}from'react/jsx-runtime';import{CollaborationEvent as _0x4d0259,ISnapshotServerService as _0x55255b,ITransformService as _0x1a08d7,RevisionService as _0x363588,SnapshotLoadStage as _0x4bc669,SnapshotLoadingService as _0x311f12,UniverCollaborationPlugin as _0x4aa696,isTransformMutationFailure as _0x1cec04,isTransformMutationsWithChangesetSuccess as _0x302eb5}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x1dc124}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x5eb373,DocSkeletonManagerService as _0xe6affc,DocStateChangeManagerService as _0x6f388c,RichTextEditingMutation as _0x5e3f06,SetTextSelectionsOperation as _0x1bd45a,UniverDocsPlugin as _0x42b8ea}from'@univerjs/docs';import{DocIMEInputManagerService as _0x274379,IDocClipboardService as _0x336070,NodePositionConvertToCursor as _0x3d3232,NodePositionConvertToRectRange as _0x3920b7,SetDocZoomRatioOperation as _0x1d35c7,TEXT_RANGE_LAYER_INDEX as _0x3dbc00,UniverDocsUIPlugin as _0x496886}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x51c0a9,IRenderManagerService as _0x20ed56,Rect as _0xe88d74,RegularPolygon as _0x29394e,SHEET_VIEWPORT_KEY as _0x571217,Shape as _0x5f64c4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4ff85e,UniverRenderEnginePlugin as _0x24783a,Vector2 as _0x51b3dc,getColor as _0x12c0bd,getDocumentSkeletonColumnPagePathInfo as _0x5200ed}from'@univerjs/engine-render';import{HTTPEventType as _0x4d1c71,HTTPService as _0x2f3aec,ISocketService as _0x15f85b,UniverNetworkPlugin as _0x317ac1,WebSocketService as _0x2b2855}from'@univerjs/network';import{deserializeRangeWithSheet as _0x4a0b6c,serializeRangeWithSheet as _0x2f180d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x1f3c8d,RefRangeService as _0x485be6,SetSelectionsOperation as _0x1a27b4,SetWorksheetActivateCommand as _0x4c5c95,SheetsSelectionsService as _0x475b01,handleDeleteRangeMoveLeft as _0x1f11a9,handleDeleteRangeMoveUp as _0x24c592,handleIRemoveCol as _0x3dc868,handleIRemoveRow as _0x3b7c9d,handleInsertCol as _0x454271,handleInsertRangeMoveDown as _0x2fa32d,handleInsertRangeMoveRight as _0x53b7ce,handleInsertRow as _0x59f1f6,handleMoveRange as _0x348df5,runRefRangeMutations as _0x47ab26}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x196587,getCoordByCell as _0x42bc2d,getSheetObject as _0x25c785}from'@univerjs/sheets-ui';import{ErrorCode as _0x56aba6}from'@univerjs/protocol';function cn(_0x147b40){const _0x25702f=_0x54b3;switch(_0x147b40){case _0x12e22e[_0x25702f(0x44b)]:return{'icon':_0xc268f7(_0x27a2ee,{}),'colorClass':_0x25702f(0x287),'i18nKey':_0x25702f(0x29f),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case _0x12e22e[_0x25702f(0x20a)]:return{'icon':_0xc268f7(_0x27a2ee,{}),'colorClass':_0x25702f(0x2fb),'i18nKey':_0x25702f(0x2de),'clickable':!0x1,'indicator':_0x25702f(0x264)};case _0x12e22e['FETCH_MISS']:return{'icon':_0xc268f7(_0x913ace,{}),'colorClass':_0x25702f(0x443),'i18nKey':_0x25702f(0x367),'clickable':!0x1,'indicator':_0x25702f(0x289)};case _0x12e22e['NOT_COLLAB']:return{'icon':_0xc268f7(_0x4d7bac,{}),'colorClass':_0x25702f(0x297),'i18nKey':_0x25702f(0x21a),'clickable':!0x1,'indicator':_0x25702f(0x264)};case _0x12e22e['AWAITING']:case _0x12e22e[_0x25702f(0x429)]:return{'icon':_0xc268f7(_0x913ace,{}),'colorClass':_0x25702f(0x443),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x12e22e[_0x25702f(0x3fc)]:return{'icon':_0xc268f7(_0x913ace,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x25702f(0x289)};case _0x12e22e['SYNCED']:return{'icon':_0xc268f7(_0x4d7bac,{}),'colorClass':_0x25702f(0x245),'i18nKey':_0x25702f(0x3cb),'clickable':!0x1,'indicator':_0x25702f(0x264)};}}function ln(_0x11b2df){const _0x74675e=_0x54b3;let {status$:_0x526a5b}=_0x11b2df,_0x329728=_0x5d8c77(_0x526a5b,_0x12e22e[_0x74675e(0x279)]),_0x50d0a0=_0x269985(_0x100652),_0x56e3c2=_0x269985(_0x48e021),_0x52edcb=_0x5d2946(()=>cn(_0x329728),[_0x329728]),_0x5a42b6=_0x329728!==_0x12e22e['OFFLINE'],_0x1d8447=_0x50d0a0['t'](_0x52edcb[_0x74675e(0x369)]),_0x48abe8=_0x52edcb[_0x74675e(0x440)]?_0x50d0a0['t'](_0x52edcb[_0x74675e(0x440)]):_0x1d8447,_0x31811d=_0xefea27(()=>{const _0x5be10f=_0x74675e;_0x5a42b6||_0x56e3c2[_0x5be10f(0x220)]();},[_0x5a42b6,_0x56e3c2]),_0xfc98ff=_0xefea27(_0x30dd74=>{const _0x47fae0=_0x74675e;!_0x5a42b6&&(_0x30dd74['key']==='Enter'||_0x30dd74[_0x47fae0(0x33e)]==='\x20')&&(_0x30dd74[_0x47fae0(0x2f3)](),_0x56e3c2[_0x47fae0(0x220)]());},[_0x5a42b6,_0x56e3c2]),_0x1f5ccb=_0xc268f7('span',{'className':_0x5a89c9(_0x74675e(0x34d),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x52edcb['colorClass'],{'univer-animate-spin':_0x52edcb[_0x74675e(0x1e0)]===_0x74675e(0x289),'univer-animate-pulse':_0x52edcb[_0x74675e(0x1e0)]==='pulse'}),'aria-hidden':_0x74675e(0x43f),'children':_0x52edcb[_0x74675e(0x260)]}),_0x4fe10d=_0xc268f7(_0x74675e(0x250),{'className':_0x5a89c9('univer-flex\x20univer-items-center\x20univer-justify-center',_0x74675e(0x36e),_0x74675e(0x421),_0x74675e(0x40d),_0x74675e(0x434),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x52edcb[_0x74675e(0x3c7)],'univer-cursor-default':!_0x52edcb['clickable']}),'children':_0x1f5ccb});return _0x52edcb[_0x74675e(0x3c7)]?_0xc268f7(_0x59042c,{'title':_0x48abe8,'placement':_0x74675e(0x2d3),'children':_0xc268f7('button',{'type':_0x74675e(0x3d1),'onClick':_0x31811d,'onKeyDown':_0xfc98ff,'className':_0x5a89c9(_0x74675e(0x424),_0x74675e(0x45b),_0x74675e(0x278),_0x74675e(0x200)),'aria-label':_0x1d8447+'\x20-\x20'+_0x48abe8,'role':'status','aria-live':_0x74675e(0x316),'aria-atomic':'true','children':_0x4fe10d})}):_0xc268f7(_0x59042c,{'title':_0x48abe8,'placement':'bottom','children':_0xc268f7(_0x74675e(0x3ad),{'className':_0x5a89c9(_0x74675e(0x424),_0x74675e(0x45b),_0x74675e(0x278)),'aria-label':_0x1d8447,'role':_0x74675e(0x3f7),'aria-live':_0x74675e(0x316),'aria-atomic':_0x74675e(0x43f),'children':_0x4fe10d})});}function K(_0x23dd03){'@babel/helpers - typeof';const _0x429bb9=_0x54b3;return K=typeof Symbol==_0x429bb9(0x24e)&&typeof Symbol[_0x429bb9(0x42b)]=='symbol'?function(_0x25822a){return typeof _0x25822a;}:function(_0x351533){const _0x2bf5c4=_0x429bb9;return _0x351533&&typeof Symbol==_0x2bf5c4(0x24e)&&_0x351533[_0x2bf5c4(0x25b)]===Symbol&&_0x351533!==Symbol['prototype']?_0x2bf5c4(0x239):typeof _0x351533;},K(_0x23dd03);}function un(_0x5a4b0a,_0x1212fc){const _0x1adc33=_0x54b3;if(K(_0x5a4b0a)!=_0x1adc33(0x3c9)||!_0x5a4b0a)return _0x5a4b0a;var _0x4710c6=_0x5a4b0a[Symbol[_0x1adc33(0x3fe)]];if(_0x4710c6!==void 0x0){var _0x4048b1=_0x4710c6[_0x1adc33(0x238)](_0x5a4b0a,_0x1212fc||_0x1adc33(0x32d));if(K(_0x4048b1)!='object')return _0x4048b1;throw TypeError(_0x1adc33(0x3e6));}return(_0x1212fc===_0x1adc33(0x2ef)?String:Number)(_0x5a4b0a);}function dn(_0xeabab){const _0x4513ef=_0x54b3;var _0x1032a3=un(_0xeabab,_0x4513ef(0x2ef));return K(_0x1032a3)=='symbol'?_0x1032a3:_0x1032a3+'';}function q(_0x4f5f93,_0x39959f,_0x2818d0){const _0x19213c=_0x54b3;return(_0x39959f=dn(_0x39959f))in _0x4f5f93?Object[_0x19213c(0x3d5)](_0x4f5f93,_0x39959f,{'value':_0x2818d0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f5f93[_0x39959f]=_0x2818d0,_0x4f5f93;}function J(_0x44d696,_0x58930d){return function(_0x5e62d9,_0x4313b4){_0x58930d(_0x5e62d9,_0x4313b4,_0x44d696);};}function Y(_0x4d4fa9,_0x3828eb,_0x291fc0,_0x44a847){const _0x4694b1=_0x54b3;var _0x172e65=arguments[_0x4694b1(0x269)],_0xdd2850=_0x172e65<0x3?_0x3828eb:_0x44a847===null?_0x44a847=Object[_0x4694b1(0x44a)](_0x3828eb,_0x291fc0):_0x44a847,_0x442db9;if(typeof Reflect=='object'&&typeof Reflect[_0x4694b1(0x274)]==_0x4694b1(0x24e))_0xdd2850=Reflect[_0x4694b1(0x274)](_0x4d4fa9,_0x3828eb,_0x291fc0,_0x44a847);else{for(var _0x9cb3cd=_0x4d4fa9[_0x4694b1(0x269)]-0x1;_0x9cb3cd>=0x0;_0x9cb3cd--)(_0x442db9=_0x4d4fa9[_0x9cb3cd])&&(_0xdd2850=(_0x172e65<0x3?_0x442db9(_0xdd2850):_0x172e65>0x3?_0x442db9(_0x3828eb,_0x291fc0,_0xdd2850):_0x442db9(_0x3828eb,_0x291fc0))||_0xdd2850);}return _0x172e65>0x3&&_0xdd2850&&Object['defineProperty'](_0x3828eb,_0x291fc0,_0xdd2850),_0xdd2850;}let X=class extends _0x4ade65{constructor(_0x56d465,_0x2a74de,_0x457d33,_0x414b35,_0x237ece){const _0x4f81be=_0x54b3;super(),this['_univerInstanceService']=_0x56d465,this[_0x4f81be(0x2f6)]=_0x2a74de,this['_collaborationController']=_0x457d33,this[_0x4f81be(0x3e2)]=_0x414b35,this['_presenceAdapterRegistry']=_0x237ece,q(this,_0x4f81be(0x254),new _0x4693d8(_0x12e22e[_0x4f81be(0x279)])),q(this,_0x4f81be(0x3c1),new Map()),this[_0x4f81be(0x37d)](),this[_0x4f81be(0x2bb)](),this[_0x4f81be(0x40a)]();}[_0x9941cc(0x1f9)](){const _0xee59cc=_0x9941cc;this[_0xee59cc(0x3c1)]['forEach'](_0x2c5c4c=>_0x2c5c4c[_0xee59cc(0x1f9)]()),this[_0xee59cc(0x3c1)][_0xee59cc(0x26d)](),this['_status$'][_0xee59cc(0x303)](),super[_0xee59cc(0x1f9)]();}[_0x9941cc(0x2bb)](){const _0x5d031b=_0x9941cc;this[_0x5d031b(0x366)](_0x5c9537(this['_univerInstanceService']['focused$'],this[_0x5d031b(0x2ff)][_0x5d031b(0x349)](_0x3a9ab9[_0x5d031b(0x31e)]),this['_univerInstanceService'][_0x5d031b(0x349)](_0x3a9ab9[_0x5d031b(0x38a)]))[_0x5d031b(0x1e3)](_0x56b22d(()=>fn(this[_0x5d031b(0x2ff)])),_0x49a99f(),_0x5aa3c8(_0xe3f961=>_0xe3f961?this[_0x5d031b(0x249)][_0x5d031b(0x341)](_0xe3f961):_0x52386d(null)),_0x5aa3c8(_0x23cc7c=>_0x23cc7c?_0x23cc7c[_0x5d031b(0x3cf)]:_0x52386d(_0x12e22e[_0x5d031b(0x279)])))[_0x5d031b(0x44c)](_0x2e84e1=>{const _0x28cc2e=_0x5d031b;this[_0x28cc2e(0x254)][_0x28cc2e(0x31a)](_0x2e84e1);}));}[_0x9941cc(0x37d)](){const _0x3f5914=_0x9941cc;this[_0x3f5914(0x366)](this[_0x3f5914(0x3e2)][_0x3f5914(0x29a)](_0x3e468e[_0x3f5914(0x39f)],()=>_0x1685d6(pn({'status$':this['_status$'][_0x3f5914(0x221)]()}),this[_0x3f5914(0x2f6)])));}[_0x9941cc(0x40a)](){const _0x267856=_0x9941cc;let _0x43ad16=this[_0x267856(0x351)][_0x267856(0x214)][_0x267856(0x44c)](_0x14d16e=>{const _0xa05935=_0x267856;this[_0xa05935(0x3cc)](_0x14d16e);});this[_0x267856(0x366)](_0x43c8f(()=>_0x43ad16['unsubscribe']()));}[_0x9941cc(0x3cc)](_0x56f71b){const _0x210a79=_0x9941cc;let _0x49757c=new Map(_0x56f71b['filter'](_0x5574e9=>_0x5574e9[_0x210a79(0x35f)]!=null)[_0x210a79(0x2a1)](_0x4cc90d=>[_0x4cc90d[_0x210a79(0x1ed)],_0x4cc90d]));this[_0x210a79(0x3c1)][_0x210a79(0x285)]((_0x8f42c9,_0x135a63)=>{const _0x384e73=_0x210a79;_0x49757c[_0x384e73(0x2bf)](_0x135a63)||(_0x8f42c9[_0x384e73(0x1f9)](),this['_presenceStatusRegistrations'][_0x384e73(0x3c0)](_0x135a63));}),_0x49757c['forEach']((_0x4cc1e4,_0xf9668a)=>{const _0x44ee48=_0x210a79;this[_0x44ee48(0x3c1)][_0x44ee48(0x2bf)](_0xf9668a)||this[_0x44ee48(0x293)](_0x4cc1e4);});}[_0x9941cc(0x293)](_0x1f5b24){const _0x4ff3e5=_0x9941cc;let _0x27ed93=_0x1f5b24[_0x4ff3e5(0x35f)];if(!_0x27ed93)return;let _0x31747c=new _0x2593d8(),_0x36ed0d=new _0x4693d8(_0x12e22e[_0x4ff3e5(0x279)]);_0x31747c[_0x4ff3e5(0x1f1)](_0x43c8f(()=>_0x36ed0d[_0x4ff3e5(0x303)]())),_0x31747c[_0x4ff3e5(0x1f1)](this[_0x4ff3e5(0x3e2)][_0x4ff3e5(0x29a)](_0x27ed93,()=>_0x1685d6(pn({'status$':_0x36ed0d[_0x4ff3e5(0x221)]()}),this[_0x4ff3e5(0x2f6)])));let _0x1ad0d1=this[_0x4ff3e5(0x2ff)][_0x4ff3e5(0x349)](_0x1f5b24[_0x4ff3e5(0x1ed)])[_0x4ff3e5(0x1e3)](_0x56b22d(_0x405941=>(_0x405941==null?void 0x0:_0x405941[_0x4ff3e5(0x29c)]())??null),_0x49a99f(),_0x5aa3c8(_0x48fa16=>_0x48fa16?this['_collaborationController']['getCollabEntity$'](_0x48fa16):_0x52386d(null)),_0x5aa3c8(_0x77e32a=>(_0x77e32a==null?void 0x0:_0x77e32a[_0x4ff3e5(0x3cf)])??_0x52386d(_0x12e22e[_0x4ff3e5(0x279)])))['subscribe'](_0x4842e9=>_0x36ed0d[_0x4ff3e5(0x31a)](_0x4842e9));_0x31747c[_0x4ff3e5(0x1f1)](_0x43c8f(()=>_0x1ad0d1[_0x4ff3e5(0x324)]())),this['_presenceStatusRegistrations']['set'](_0x1f5b24[_0x4ff3e5(0x1ed)],_0x31747c);}};X=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x3a52d9)),J(0x2,_0x5e7a64(_0xa6a463)),J(0x3,_0x3b6d8f),J(0x4,_0x5e7a64(_0x2ca04e))],X);function fn(_0x5375f9){const _0x3cabd8=_0x9941cc;let _0x42767f=_0x5375f9[_0x3cabd8(0x336)](),_0x11a6e9=_0x42767f==null?void 0x0:_0x42767f['getUnitId']();if(_0x11a6e9&&!_0x125e48(_0x11a6e9))return _0x11a6e9;let _0x335931=_0x5375f9[_0x3cabd8(0x445)](_0x3a9ab9[_0x3cabd8(0x31e)]),_0x757abe=_0x335931==null?void 0x0:_0x335931[_0x3cabd8(0x29c)]();if(_0x757abe&&!_0x125e48(_0x757abe))return _0x757abe;let _0xd5b82=_0x5375f9[_0x3cabd8(0x445)](_0x3a9ab9[_0x3cabd8(0x38a)]);if(_0xd5b82)return _0xd5b82[_0x3cabd8(0x29c)]();let _0x83b41c=_0x5375f9[_0x3cabd8(0x393)](_0x3a9ab9[_0x3cabd8(0x31e)])['find'](_0xdf16ac=>!_0x125e48(_0xdf16ac[_0x3cabd8(0x29c)]()));return _0x83b41c?_0x83b41c['getUnitId']():null;}function _0x5de4(){const _0x3e11bd=['SOCKET_FAILED','object','values','collaboration-client-ui.collabStatus.synced','_syncPresenceStatusComponents','state$','urlChange$','status$','_toggleOffline','button','_color','_getScale','set','defineProperty','2320724vDuIGU','ranges','_docTransformSelectionsService','192bMasNq','pointer','sheetId','_colorAssignService','setParam','_messageIds','getRangePointData','setOffsetY','size','_uiPartsService','deepClone','_collaborationUIEventService','removeRemotePresence','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_imageIoService','0.2)','_themeService','CONFLICT_PROCESSING','OTHER_CLIENT_EDITING','labelHorizontalPosition','_entityInit$','_listenToOnlineEvent','findNodePositionByCharIndex','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','black','USERS_LEAVE','getConfig','setAlpha','newValue','_handleLeaveEvent','status','collaboration-client-ui.conflict.clearFailed','drawWith','exhaustSavingTask','_session','PENDING','allSettled','toPrimitive','selection','Error','startsWith','addHandlerCallback','getStateCache','parse','options','online','_assignedColors','_adapter','_registerDependencies','_initPresenceStatusComponents','memberId','_docTransformStateCacheService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','collaboration-client-ui.config','SUBMIT_CHANGESET_TIMEOUT','focusedId','_transformHistoryAndStateStack','collab-text-range-','_clearOtherTimers','currentSkeleton$','roomMembers$','syncEditingCollabCursor','clearRemotePresences','getSheetBySheetId','TEXT','_collabCursorController','setInterval','loadOfflineData','_drawAnchor','_setupBeforeClosingHandler','reason','executionId','univer-transition-all\x20univer-duration-200','runId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_scheduleSaving','eventID','timedOut','keys','AWAITING_WITH_PENDING','_cursorShapes','iterator','_activeSaveTaskMap','top','_refRangeService','ticket','event$','startOffset','_stopBlinking','_latestStates','dark:focus:!univer-ring-offset-gray-800','params','rgba(255,\x20255,\x20255,\x200.01)','small','clearTimeout','InsertRangeMoveRightCommandId','entityInit$','tableSource','_handleHover','entries','unitId','true','tooltipKey','filename','getParam','univer-text-blue-500','ONLINE','getCurrentUnitOfType','disableLocalCache','assignAColorForMemberID','loading','_updateMessage','getOwnPropertyDescriptor','OFFLINE','subscribe','_messageService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','addEventListener','href','_refreshCollabCursors','collaboration-client-ui.permission.content','getMergeData','right','init','_blinkIntervalTimer','GLOBAL','resolve','_replaceConflictNotification','with','univer-border-none\x20univer-bg-transparent','_lastPointer','_dataLoaderService','_syncAdapters','indicator','saveOfflineData','_uploadLog','pipe','body','_createSocketURL','pluginName','hovered','COMPLETE','_setupSubUnitSync','red.300','_docTransformIMECacheService','source','unitType','_hover','memberID','_userManagerService','add','max','dispose$','_monkeyPatchLogService','_updateURLWithCurrentState','stream','selectedIds','getCollabCursors$','dispose','range','_removeRemotePresence','_id','pageIndex','data','selections','univer-appearance-none','createInstance','_listenToOfflineEvent','executeCommand','_docSkeletonManagerService','getUnitStatus$','transformStateCache','subUnitId','update','_drawTextRange','CONFLICT','getMemberID','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','contains','state','_initEvent','startRow','find','addClipboardHook','collaboration-client-ui.operation.update-remote-unit-presence','adapters$','getUnit','override','JOIN_ROOM_FAILED','3735408OZNNrL','_backgroundColor','collaboration-client-ui.collabStatus.notCollab','getTypeOfUnitAdded$','cursorInfo','getCurrentSelections','_scene','_conflictNotification','reconnect','asObservable','MoveRangeCommandId','_saveTaskMap','version','Warning','_blockProgressWatches','_range','enableFrontendLog','_getMergeRange','DeleteRangeMoveLeftCommandId','timeoutState$','_scheduleClearOtherTimer','searchParams','19196838mUQODm','some','sessionStatus$','unitID','_isBlinkVisible','_retryConflictCacheClear','_beforeCloseService','_localStorageService','_transformPreviousActiveRange','_onCursorDelete','call','symbol','collaboration-client-ui.snapshotLoading.timeout','all','onTransformChange$','PERMISSION_DENIED','_context','_getUserId','getUndoRedoMutationParamsCache','userId','m1Prime','getDocRanges','textRanges','univer-text-green-500','unit','_getSheetObject','stringify','_collaborationController','_cachedData','getTypeOfUnitDisposed$','restore','RemoveRowCommandId','function','loadUnit','span','registerRefRange','_startEntity','canRenderAnchor','_status$','collab-text-anchor-','loadedBlocks','FromArray','addObject','strokeWidth','transformMutationsWithChangeset','constructor','redoState','getScrollXYInfoByViewport','_blinkTimer','_name','icon','location','_onRefRangeChange','_scheduleHeartbeat','static','tableId','_memberService','join','saveTaskMap','length','highlightSecond','value','_localCacheService','clear','jiqing.500','catch','offline','_startBlinking','_online$','labelPosition','decorate','reload','transformIMECache','_updateLocalCursor','univer-m-0\x20univer-p-0','NOT_COLLAB','focus','collab-rect-range-','onLine','_retryingConflictCacheUnitIDs','showText','_collabSessionService','_localeService','_doCreateSocket','transform','setItem','setStateCache','forEach','_getLighterColor','univer-text-red-500','sessionTicket','spin','8657tVKvVf','roomMembers','_initEntityListener','debug','getActiveSheet','_getSaveTimeout','rgb','content','removeParam','_registerPresenceStatusComponent','enableUrlUnitLoader','setRemotePresence','_getSessionTicket','univer-text-gray-400','_highlightSecond','registerBeforeClose','registerComponent','isActive','getUnitId','fill','timeoutId','collaboration-client-ui.collabStatus.offline','unshift','map','_eventUnsubscribe','hide','collaboration-client-ui.session.connection-failed','canRenderSelection','bind','getColorFromTheme','_anchor','arc','transformRemoteChangeset','every','_removeClearOtherTimer','isArray','_notificationService',':backup:','popstate','_renderManagerService','_getAnchorBounding','replaceState','column','_handleJoinEvent','online$','...','width','getRenderUnitById','closePath','_initStatusListener','search','resize','snapshot-loading-','has','InsertRowCommandId','_disposeEntitiesForType','onPointerLeave$','_commandService','\x20at\x20','disposeUnit','doc.mutation.rich-text-editing','addObjects','getSkeleton','wsSessionTicketUrl','_isDisposed','toString','replace','_hovered','VIEW_MAIN','shareInterval','collaboration-client-ui.conflict.content','setTimeout','offsetY','bottom','push','_disposeEntity','_heartbeatTimer','_httpService','transformByState','_handleEvent','_clearRemotePresences','_timeoutState$','CLOSE_ROOM','highlight','collaboration-client-ui.collabStatus.conflict','setConfig','origin','[Unhandled\x20Rejection]:\x20','removeEventListener','setActiveRange','_showConflictProcessingNotification','collaboration-client-ui.conflict.processing','mutations','number','createSocket','3022225UBRIfe','pageType','InsertColCommandId','_docSelectionManagerService','setShapeProps','prepareTransformSelections','string','_config','remove','invokeId','preventDefault','storage','_registerRenderDependencies','_injector','finally','_initUnhandledRejectionListener','save','fillStyle','univer-text-orange-500','columnGroupId','name','setUndoRedoMutationParamsCache','_univerInstanceService','rgba(','@univerjs-pro/collaboration-client-ui','_logService','complete','transformMutation','history','getMember','_labelHorizontalPosition','onRendered','post','_init','visible','_ensureSubject','subunit','font','split','yellow.400','backupOfflineData','/run/','endColumn','registerRenderModule','fillText','polite','_docStateChangeManagerService','OPERATION','_initCommandExecutedListener','next','NO_OTHER_CLIENTS_EDITING','_disabled','color','UNIVER_DOC','startColumn','onCommandExecuted','unhandledrejection','_docSyncEditingCollabCursorService','m2Prime','unsubscribe','[RemoteUniscriptService]:\x20no\x20focused\x20unit','OTHER_CLIENTS_EDITING','_normalizeUserId','_initialized','toISOString','stack','pushState','collaboration-client-ui.conflict.title','default','includes','4ffiyqR','onPointerMove$','_urlService','_transformUndoRedoStack','/universer-api/frontend/logs','parseInt','slice','getFocusedUnit','_offsetY','toRgbString','[CollaborationDataLoaderController]','_startDocCollabCursor','_updateSubUnitFromURLParams','text','cursorInfo$','key','_initWindowErrorListener','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','getCollabEntity$','_unitOnClients','rgba','_saveCache','backgroundColor','getAncestorScale','isFinite','_memberID','getCurrentTypeOfUnit$','InsertRangeMoveDownCommandId','beginPath','_cursor','univer-flex\x20univer-items-center\x20univer-justify-center','_shapes','_online','onMouseMove','_presenceAdapterRegistry','enableDocumentCollaborationUI','runOnServer','from','result','_colorIndex','localPresence$','sheetID','collaboration-client-ui.snapshotLoading.refresh','_sendLocalPresence','_instanceService','886998SbOgeR','presenceKind','_send','statusUIPart','_disposed','show','clearInterval','_clearBlockProgressWatch','_trackActiveSaveTask','Unknown\x20user','disposeWithMe','collaboration-client-ui.collabStatus.fetchMiss','type','i18nKey','Failed','_updateCollabCursors','measureText','_configService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','kind','_render','saveImage','message','_clearTimeoutState','clearOfflineData','then','undoState','filter',',\x200.2)','colno','evenodd','lineTo','_cursorInfo$','_initStatusComponent','_highlight','fillRule','green.600','visibilitychange','getSheetId','replaceSelectionInfoWithoutRefresh','_removeCollabCursors','_roomMembers$','_adapterDisposables','enableOfflineEditing','collaboration-client-ui.conflict.retry','[Window\x20Error]:\x20','UNIVER_SHEET','_syncEditingCollabCursorService','_draw','ACTIVE_UNIT_EVENT_CHANNEL','_hideTimer','DeleteRangeMoveUpCommandId','_adapterRegistry','_selfUnitIDs','_initResize','getAllUnitsForType','117327UlLDir','totalBlocks','_showConflictCacheClearFailedNotification','currentTheme$','_pendingEntities','_toggleOnline','visibilityState','editingUnit','UPDATE_CURSOR','makeDirty','_initUserListener','HEADER_MENU','send','_cursors','get','collabCursorState$','min','refreshLabel','_pointerMoveDisposable','getUnhiddenWorksheets','_unitStatus','1.1.0','_sheetSkeletonManagerService','_collaborationSessionService','_snapshotLoadingService','div','getCurrentUser','stage','getValue','_onCursorUpdate','flatMap','columnIndex','_handleCursorUpdate','onPointerEnter$','_dispose$','onStarting','subscribeEvent','snapshot-loading-timeout','_handleHeartbeatEvent','requireSession','_entities','_showText','left','error','delete','_presenceStatusRegistrations','_textBubble','_transformService','getCurrentRevOfUnit','_anchorDot','_labelPosition','clickable'];_0x5de4=function(){return _0x3e11bd;};return _0x5de4();}function pn(_0x3cd07d){let {status$:_0x1193a7}=_0x3cd07d;return function(){return _0xc268f7(ln,{'status$':_0x1193a7});};}var mn=_0x9941cc(0x301),hn=_0x9941cc(0x3a9);const gn={'id':_0x9941cc(0x213),'type':_0x2b7b9b[_0x9941cc(0x318)],'handler':(_0x446715,_0x2b66ec)=>{const _0x2e38c3=_0x9941cc;let _0x5641ba=_0x446715[_0x2e38c3(0x3a2)](_0x2ca04e)[_0x2e38c3(0x3a2)](_0x2b66ec[_0x2e38c3(0x1ed)]);if(!_0x5641ba)return!0x1;switch(_0x2b66ec['update'][_0x2e38c3(0x368)]){case _0x2e38c3(0x3d4):return _0x5641ba[_0x2e38c3(0x295)](_0x2b66ec['update'][_0x2e38c3(0x20e)]),!0x0;case _0x2e38c3(0x2f1):return _0x5641ba[_0x2e38c3(0x3e5)](_0x2b66ec[_0x2e38c3(0x208)]['unitId'],_0x2b66ec[_0x2e38c3(0x208)][_0x2e38c3(0x40b)]),!0x0;case _0x2e38c3(0x26d):return _0x5641ba[_0x2e38c3(0x417)](_0x2b66ec[_0x2e38c3(0x208)]['unitId']),!0x0;default:return!0x1;}}},_n={};let vn=class extends _0x26adc4{constructor(_0x4eeea7,_0x983ac1){const _0x4c7358=_0x9941cc;super(),this['_docClipboardService']=_0x4eeea7,this[_0x4c7358(0x3e7)]=_0x983ac1,this[_0x4c7358(0x30a)]();}[_0x9941cc(0x30a)](){const _0x4dcc72=_0x9941cc;let _0x2de8ca=this;this[_0x4dcc72(0x366)](this['_docClipboardService'][_0x4dcc72(0x212)]({'onBeforePasteImage':async _0x2f2a35=>{const _0x2f8e46=_0x4dcc72;let _0x274064=await _0x2de8ca[_0x2f8e46(0x3e7)][_0x2f8e46(0x371)](_0x2f2a35);return _0x274064?{'source':_0x274064[_0x2f8e46(0x1ec)],'imageSourceType':_0x274064['imageSourceType']}:null;}}));}};vn=Y([J(0x0,_0x336070),J(0x1,_0x138ac6)],vn);const yn=['purple.300',_0x9941cc(0x26e),_0x9941cc(0x380),_0x9941cc(0x1ea),'blue.400',_0x9941cc(0x310)];var bn=class extends _0x4ade65{constructor(..._0x2bfce3){const _0x103a5a=_0x9941cc;super(..._0x2bfce3),q(this,_0x103a5a(0x407),new Map()),q(this,_0x103a5a(0x356),0x0);}[_0x9941cc(0x447)](_0x3ac2d4){const _0xdfa827=_0x9941cc;if(this[_0xdfa827(0x407)][_0xdfa827(0x2bf)](_0x3ac2d4))return this[_0xdfa827(0x407)][_0xdfa827(0x3a2)](_0x3ac2d4);let _0x581890=yn[this[_0xdfa827(0x356)]];return this[_0xdfa827(0x356)]=(this[_0xdfa827(0x356)]+0x1)%yn['length'],this[_0xdfa827(0x407)]['set'](_0x3ac2d4,_0x581890),_0x581890;}};function xn(_0x2aeee9){const _0x118351=_0x9941cc;let _0x33a8e8='';for(let _0x53f1c9 of _0x2aeee9){let {startOffset:_0x387ecb,endOffset:_0x325682,isActive:_0x242d29,rangeType:_0x2a14ef,segmentId:_0x33090a,segmentPage:_0x249492}=_0x53f1c9;_0x33a8e8[_0x118351(0x269)]&&(_0x33a8e8+=','),_0x33a8e8+=_0x387ecb+':'+_0x325682+':'+(_0x242d29?'1':'0')+':'+_0x2a14ef+':'+_0x33090a+':'+_0x249492;}return _0x33a8e8;}function Sn(_0x49230e){const _0xeac2fa=_0x9941cc;let _0x3416c1=_0x49230e[_0xeac2fa(0x30f)](','),_0x125b45=[];for(let _0x4bc022 of _0x3416c1){let [_0x2ae0ee,_0x34277d,_0x3fe14b,_0x307ae5,_0x595181,_0x2645fd]=_0x4bc022['split'](':');_0x125b45[_0xeac2fa(0x2d4)]({'startOffset':Number(_0x2ae0ee),'endOffset':Number(_0x34277d),'collapsed':_0x2ae0ee===_0x34277d,'isActive':_0x3fe14b==='1','rangeType':_0x307ae5===_0x13669b[_0xeac2fa(0x419)]?_0x13669b[_0xeac2fa(0x419)]:_0x13669b['RECT'],'segmentId':typeof _0x595181==_0xeac2fa(0x2ef)?String(_0x595181):'','segmentPage':Number(_0x2645fd??-0x1)});}return _0x125b45['some'](_0x53e25b=>_0x53e25b[_0xeac2fa(0x29b)])||(_0x125b45[0x0][_0xeac2fa(0x29b)]=!0x0),_0x125b45;}var Cn=class extends _0x26adc4{constructor(..._0x56588c){const _0x3137e2=_0x9941cc;super(..._0x56588c),q(this,'_collabCursorState$',new _0x4693d8(null)),q(this,_0x3137e2(0x3a3),this['_collabCursorState$'][_0x3137e2(0x221)]());}[_0x9941cc(0x416)](_0xb24f4){const _0x20dec9=_0x9941cc;let {unitID:_0x32099d,memberID:_0x4ef42f,textRanges:_0x244d52}=_0xb24f4,_0x40beea=xn(_0x244d52);if(_0x40beea==='')return;let _0x3d18ac={'unitID':_0x32099d,'memberID':_0x4ef42f,'selection':_0x40beea};this['_collabCursorState$'][_0x20dec9(0x31a)](_0x3d18ac);}};let wn=class extends _0x26adc4{get['cursorInfo'](){const _0x2a4da5=_0x9941cc;return this['_cursorInfo$'][_0x2a4da5(0x3b0)]();}get['roomMembers'](){const _0x5b7b99=_0x9941cc;return this[_0x5b7b99(0x385)]['getValue']();}constructor(_0x3a63a8,_0x3e95e3,_0x286116,_0x3d2bb3,_0x217f0e,_0x3fa9ad,_0x5b8c5e,_0xde8375,_0x52f313){const _0x24084e=_0x9941cc;super(),this[_0x24084e(0x231)]=_0x3a63a8,this['_session']=_0x3e95e3,this['_injector']=_0x286116,this[_0x24084e(0x3dc)]=_0x3d2bb3,this[_0x24084e(0x266)]=_0x217f0e,this[_0x24084e(0x38b)]=_0x3fa9ad,this[_0x24084e(0x3c3)]=_0x5b8c5e,this[_0x24084e(0x2ff)]=_0xde8375,this[_0x24084e(0x2c3)]=_0x52f313,q(this,'_online',!0x1),q(this,_0x24084e(0x30a),!0x1),q(this,_0x24084e(0x37c),new _0x4693d8(new Map())),q(this,'cursorInfo$',this[_0x24084e(0x37c)][_0x24084e(0x221)]()),q(this,_0x24084e(0x385),new _0x4693d8([])),q(this,_0x24084e(0x415),this[_0x24084e(0x385)][_0x24084e(0x1e3)](_0x2d0b95(0x12c))),q(this,'_updateLocalCursor',_0x3580a2(_0x343b0d=>{const _0x11b098=_0x24084e;let _0x4e02ab={'eventID':_0x4d0259[_0x11b098(0x39c)],'data':{'unitID':this[_0x11b098(0x231)],'memberID':this[_0x11b098(0x3fb)]['getMemberID'](),'selection':xn(_0x343b0d)}};this[_0x11b098(0x3fb)]['send'](_0x4e02ab,this['unitID']);},0x64));}[_0x9941cc(0x1f9)](){const _0x54e7e2=_0x9941cc;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x54e7e2(0x37c)][_0x54e7e2(0x303)](),this['_roomMembers$'][_0x54e7e2(0x31a)]([]),this[_0x54e7e2(0x385)][_0x54e7e2(0x303)]();}['init'](){const _0x5dbdf3=_0x9941cc;this['_init']||(this[_0x5dbdf3(0x30a)]=!0x0,this[_0x5dbdf3(0x3fb)][_0x5dbdf3(0x230)][_0x5dbdf3(0x1e3)](_0x4c8245(this[_0x5dbdf3(0x1f3)]))[_0x5dbdf3(0x44c)](_0x332821=>{const _0x47d30f=_0x5dbdf3;_0x332821===_0x15dfc3['ONLINE']?this[_0x47d30f(0x399)]():this[_0x47d30f(0x3d0)]();}),this[_0x5dbdf3(0x3fb)]['event$'][_0x5dbdf3(0x1e3)](_0x4c8245(this[_0x5dbdf3(0x1f3)]))[_0x5dbdf3(0x44c)](_0x1aeb1b=>{const _0x1f8715=_0x5dbdf3;let _0x3f1d5a=_0x1aeb1b[_0x1f8715(0x426)];_0x3f1d5a===_0x4d0259[_0x1f8715(0x39c)]&&this['_onCursorUpdate'](_0x1aeb1b),_0x3f1d5a===_0x4d0259[_0x1f8715(0x3f2)]&&this[_0x1f8715(0x237)](_0x1aeb1b);}),this[_0x5dbdf3(0x366)](this[_0x5dbdf3(0x2c3)][_0x5dbdf3(0x320)](_0x58871b=>{const _0x4a05c9=_0x5dbdf3;let _0x321dd6=_0x58871b[_0x4a05c9(0x435)];_0x321dd6!=null&&this['_online']&&_0x58871b['id']===_0x1bd45a['id']&&_0x321dd6['unitId']===this[_0x4a05c9(0x231)]&&_0x321dd6['isEditing']===!0x1&&_0x321dd6['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x321dd6[_0x4a05c9(0x3d7)]);})),this[_0x5dbdf3(0x38b)][_0x5dbdf3(0x3a3)][_0x5dbdf3(0x1e3)](_0x4c8245(this['dispose$']))[_0x5dbdf3(0x44c)](_0x4822df=>{const _0x58fe01=_0x5dbdf3;if((_0x4822df==null?void 0x0:_0x4822df['unitID'])!==this['unitID'])return;let _0x1ca866={'eventID':_0x4d0259['UPDATE_CURSOR'],'data':_0x4822df};this[_0x58fe01(0x3b1)](_0x1ca866);}),this[_0x5dbdf3(0x366)](this[_0x5dbdf3(0x2c3)][_0x5dbdf3(0x320)](_0x6c3706=>{const _0x5b7652=_0x5dbdf3;if(_0x6c3706[_0x5b7652(0x435)]==null)return;let _0x42e953=_0x6c3706[_0x5b7652(0x435)];if(_0x6c3706['id']!==_0x5e3f06['id']||_0x42e953[_0x5b7652(0x43e)]!==this[_0x5b7652(0x231)])return;let _0x23a8eb={'id':'doc.mutation.rich-text-editing','params':_0x42e953},_0x196cfd=this[_0x5b7652(0x21c)];for(let [_0x54384f,_0x1ce3d3]of _0x196cfd){let _0x31c48a={'id':_0x5b7652(0x2c6),'params':{'unitId':this[_0x5b7652(0x231)],'actions':null,'textRanges':_0x1ce3d3['ranges']}},_0x1d546e=this[_0x5b7652(0x3c3)][_0x5b7652(0x304)](_0x23a8eb,_0x31c48a,!0x1);if(_0x1cec04(_0x1d546e))throw _0x1d546e[_0x5b7652(0x3bf)];_0x196cfd[_0x5b7652(0x3d4)](_0x54384f,{..._0x1ce3d3,'ranges':_0x1d546e['m2Prime']['params'][_0x5b7652(0x244)]});}queueMicrotask(()=>{const _0x4c4919=_0x5b7652;this[_0x4c4919(0x37c)][_0x4c4919(0x31a)](_0x196cfd);});})));}[_0x9941cc(0x3b1)](_0x3c0d7e){const _0x11286b=_0x9941cc;var _0x18f14a;let {memberID:_0x2bab35,selection:_0x24adf7}=_0x3c0d7e[_0x11286b(0x1fe)],_0x5241c4=Sn(_0x24adf7),_0x51154f=((_0x18f14a=this[_0x11286b(0x266)]['getMember'](this['unitID'],_0x2bab35))==null?void 0x0:_0x18f14a[_0x11286b(0x2fd)])??_0x11286b(0x365),_0x2f1b84={'color':this[_0x11286b(0x3dc)]['assignAColorForMemberID'](_0x2bab35),'name':_0x51154f,'ranges':_0x5241c4},_0x1d592e=this['cursorInfo'];_0x1d592e[_0x11286b(0x3d4)](_0x2bab35,_0x2f1b84),this[_0x11286b(0x37c)][_0x11286b(0x31a)](_0x1d592e);}[_0x9941cc(0x237)](_0x33b3a0){const _0xdbcfe9=_0x9941cc;let {memberID:_0x51162f}=_0x33b3a0['data'],_0x598ac5=this['cursorInfo'];_0x598ac5['delete'](_0x51162f),this[_0xdbcfe9(0x37c)][_0xdbcfe9(0x31a)](_0x598ac5);}[_0x9941cc(0x399)](){const _0x4fe59c=_0x9941cc;var _0x5513a4;if(this[_0x4fe59c(0x34f)]=!0x0,((_0x5513a4=this['_univerInstanceService'][_0x4fe59c(0x336)]())==null?void 0x0:_0x5513a4[_0x4fe59c(0x29c)]())!==this['unitID'])return;let _0x5c7652=this[_0x4fe59c(0x2f6)][_0x4fe59c(0x3a2)](_0x5eb373)['getDocRanges']();Array['isArray'](_0x5c7652)&&_0x5c7652[_0x4fe59c(0x269)]>0x0&&this['_updateLocalCursor'](_0x5c7652);}['_toggleOffline'](){const _0x4f3e0e=_0x9941cc;this[_0x4f3e0e(0x34f)]=!0x1;}};wn=Y([J(0x2,_0x5e7a64(_0x3a52d9)),J(0x3,_0x5e7a64(bn)),J(0x4,_0x5e7a64(_0x25c118)),J(0x5,_0x5e7a64(Cn)),J(0x6,_0x1a08d7),J(0x7,_0x479ada),J(0x8,_0x309b58)],wn);const Tn=()=>{let _0x173765=[],_0x39a74b=!0x1;return _0x101be5=>{_0x173765['push'](_0x101be5),_0x39a74b||(_0x39a74b=!0x0,setTimeout(()=>{const _0x1d574d=_0x54b3;_0x173765[_0x1d574d(0x285)](_0x3ba8da=>_0x3ba8da()),_0x173765=[],_0x39a74b=!0x1;}));};};let En=class extends _0x26adc4{get[_0x9941cc(0x21c)](){const _0xa37de=_0x9941cc;return this[_0xa37de(0x37c)][_0xa37de(0x3b0)]();}get[_0x9941cc(0x28b)](){const _0x3b05f1=_0x9941cc;return this[_0x3b05f1(0x385)][_0x3b05f1(0x3b0)]();}constructor(_0x5a95d1,_0x504da2,_0x36ef40,_0x39d7a3,_0xb35fbd,_0x2954e8,_0x480e8e,_0x360f46){const _0x45be2f=_0x9941cc;super(),this[_0x45be2f(0x231)]=_0x5a95d1,this[_0x45be2f(0x3fb)]=_0x504da2,this['_injector']=_0x36ef40,this[_0x45be2f(0x3dc)]=_0x39d7a3,this[_0x45be2f(0x266)]=_0xb35fbd,this[_0x45be2f(0x2ff)]=_0x2954e8,this[_0x45be2f(0x2c3)]=_0x480e8e,this[_0x45be2f(0x42e)]=_0x360f46,q(this,_0x45be2f(0x34f),!0x1),q(this,_0x45be2f(0x30a),!0x1),q(this,'_cursorInfo$',new _0x4693d8(new Map())),q(this,_0x45be2f(0x33d),this['_cursorInfo$']['asObservable']()),q(this,_0x45be2f(0x385),new _0x4693d8([])),q(this,_0x45be2f(0x415),this[_0x45be2f(0x385)][_0x45be2f(0x1e3)](_0x2d0b95(0x12c))),q(this,_0x45be2f(0x277),_0x3580a2((_0xd37ffb,_0x57c7d7)=>{const _0x5318bf=_0x45be2f;let _0x1276e6={'eventID':_0x4d0259[_0x5318bf(0x39c)],'data':{'unitID':this[_0x5318bf(0x231)],'memberID':this[_0x5318bf(0x3fb)][_0x5318bf(0x20b)](),'selection':_0x2f180d(_0xd37ffb,_0x57c7d7[_0x5318bf(0x1fa)])}};this[_0x5318bf(0x3fb)][_0x5318bf(0x3a0)](_0x1276e6,this[_0x5318bf(0x231)]);},0x64));}[_0x9941cc(0x1f9)](){const _0x42939c=_0x9941cc;super[_0x42939c(0x1f9)](),this[_0x42939c(0x37c)]['next'](new Map()),this[_0x42939c(0x37c)][_0x42939c(0x303)](),this[_0x42939c(0x385)]['next']([]),this[_0x42939c(0x385)][_0x42939c(0x303)]();}['init'](){const _0x5f2d2d=_0x9941cc;this['_init']||(this[_0x5f2d2d(0x30a)]=!0x0,this[_0x5f2d2d(0x3fb)][_0x5f2d2d(0x230)]['pipe'](_0x4c8245(this['dispose$']))[_0x5f2d2d(0x44c)](_0x15319e=>{const _0xee12f0=_0x5f2d2d;_0x15319e===_0x15dfc3[_0xee12f0(0x444)]?this['_toggleOnline']():this[_0xee12f0(0x3d0)]();}),this[_0x5f2d2d(0x3fb)]['event$'][_0x5f2d2d(0x1e3)](_0x4c8245(this[_0x5f2d2d(0x1f3)]))[_0x5f2d2d(0x44c)](_0x3adbda=>{const _0x46146d=_0x5f2d2d;let _0xad0227=_0x3adbda[_0x46146d(0x426)];_0xad0227===_0x4d0259['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3adbda),_0xad0227===_0x4d0259[_0x46146d(0x3f2)]&&this['_onCursorDelete'](_0x3adbda);}),this['_onRefRangeChange'](),this[_0x5f2d2d(0x366)](this[_0x5f2d2d(0x2c3)][_0x5f2d2d(0x320)](_0x45a5f4=>{const _0x315b49=_0x5f2d2d;if(this[_0x315b49(0x34f)]&&_0x45a5f4['id']===_0x1a27b4['id']&&_0x45a5f4[_0x315b49(0x435)][_0x315b49(0x43e)]===this['unitID']){let _0x38f7ad=_0x45a5f4[_0x315b49(0x435)];this[_0x315b49(0x277)](_0x38f7ad[_0x315b49(0x207)],_0x38f7ad[_0x315b49(0x1ff)][0x0]);}})));}[_0x9941cc(0x3b1)](_0x1ce9a8){const _0x392dc8=_0x9941cc;var _0xddedae;let {memberID:_0x374dc6,selection:_0x4929fb}=_0x1ce9a8[_0x392dc8(0x1fe)],{sheetName:_0x9331d8,range:_0x3340fc}=_0x4a0b6c(_0x4929fb),_0x4cb13b={'name':((_0xddedae=this[_0x392dc8(0x266)][_0x392dc8(0x306)](this[_0x392dc8(0x231)],_0x374dc6))==null?void 0x0:_0xddedae[_0x392dc8(0x2fd)])??'Unknown\x20user','range':this[_0x392dc8(0x229)](_0x9331d8,_0x3340fc),'sheetID':_0x9331d8,'color':this[_0x392dc8(0x3dc)][_0x392dc8(0x447)](_0x374dc6),'selection':_0x4929fb},_0x27ce1a=this[_0x392dc8(0x21c)];_0x27ce1a[_0x392dc8(0x3d4)](_0x374dc6,_0x4cb13b),this[_0x392dc8(0x37c)][_0x392dc8(0x31a)](_0x27ce1a);}[_0x9941cc(0x237)](_0x550b80){const _0x4a9104=_0x9941cc;let {memberID:_0x566722}=_0x550b80[_0x4a9104(0x1fe)],_0x1211da=this[_0x4a9104(0x21c)];_0x1211da[_0x4a9104(0x3c0)](_0x566722),this[_0x4a9104(0x37c)]['next'](_0x1211da);}['_getMergeRange'](_0x46af9e,_0x44dd3d){const _0x3c6c88=_0x9941cc;var _0x3d76b9;let _0x579a54=(_0x3d76b9=this[_0x3c6c88(0x2ff)][_0x3c6c88(0x215)](this[_0x3c6c88(0x231)],_0x3a9ab9[_0x3c6c88(0x38a)]))==null||(_0x3d76b9=_0x3d76b9['getSheetBySheetId'](_0x46af9e))==null?void 0x0:_0x3d76b9[_0x3c6c88(0x453)]();return(_0x579a54==null?void 0x0:_0x579a54[_0x3c6c88(0x211)](_0x39f835=>_0x256130[_0x3c6c88(0x20d)](_0x39f835,_0x44dd3d)))||_0x44dd3d;}[_0x9941cc(0x262)](){const _0x5bc076=_0x9941cc;let _0x57135b=new _0x2593d8(),_0x403d98=Tn(),_0x1336c4=()=>{const _0x1c8069=_0x54b3;_0x57135b[_0x1c8069(0x1f9)]();let _0x5f1737=(_0x59c587,_0x57ea75,_0x27e825,_0xb95977)=>{const _0x42009f=_0x1c8069;let _0x2ae3f6=[];switch(_0x59c587['id']){case _0x1f3c8d[_0x42009f(0x22a)]:_0x2ae3f6=_0x1f11a9(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x38f)]:_0x2ae3f6=_0x24c592(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x2eb)]:_0x2ae3f6=_0x454271(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x34a)]:_0x2ae3f6=_0x2fa32d(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x439)]:_0x2ae3f6=_0x53b7ce(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x2c0)]:_0x2ae3f6=_0x59f1f6(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x222)]:_0x2ae3f6=_0x348df5(_0x59c587,_0xb95977);break;case _0x1f3c8d['RemoveColCommandId']:_0x2ae3f6=_0x3dc868(_0x59c587,_0xb95977);break;case _0x1f3c8d[_0x42009f(0x24d)]:_0x2ae3f6=_0x3b7c9d(_0x59c587,_0xb95977);}let _0x580540=_0x47ab26(_0x2ae3f6,_0xb95977),_0x8dcbe6=this[_0x42009f(0x21c)][_0x42009f(0x3a2)](_0x57ea75);if(_0x8dcbe6&&_0x580540){let _0x4d79aa={..._0x8dcbe6,'range':_0x580540};this['cursorInfo']['set'](_0x57ea75,_0x4d79aa),_0x403d98(()=>{const _0x29faf4=_0x42009f;let _0x52a283=this[_0x29faf4(0x42e)][_0x29faf4(0x251)](_0x580540,_0x32dee4=>(_0x52a283[_0x29faf4(0x1f9)](),_0x5f1737(_0x32dee4,_0x57ea75,_0x27e825,_0x580540)));_0x57135b[_0x29faf4(0x1f1)](_0x52a283);});}return{'redos':[],'undos':[]};};this[_0x1c8069(0x21c)][_0x1c8069(0x285)]((_0x158afd,_0x6c8ae6)=>{const _0x590e39=_0x1c8069;let {range:_0x151c6f,sheetID:_0x508e34}=_0x158afd,_0x4f9334=this[_0x590e39(0x42e)][_0x590e39(0x251)](_0x151c6f,_0x570366=>(_0x4f9334[_0x590e39(0x1f9)](),_0x5f1737(_0x570366,_0x6c8ae6,_0x508e34,_0x151c6f)));_0x57135b[_0x590e39(0x1f1)](_0x4f9334);});};this['disposeWithMe'](_0x43c8f(this[_0x5bc076(0x37c)][_0x5bc076(0x44c)](()=>{_0x1336c4();})));}[_0x9941cc(0x399)](){const _0xa81a61=_0x9941cc;var _0x2171f6,_0x27ed07;if(this['_online']=!0x0,((_0x2171f6=this[_0xa81a61(0x2ff)][_0xa81a61(0x336)]())==null?void 0x0:_0x2171f6[_0xa81a61(0x29c)]())!==this[_0xa81a61(0x231)])return;let _0x2e7188=(_0x27ed07=this[_0xa81a61(0x2f6)][_0xa81a61(0x3a2)](_0x475b01)[_0xa81a61(0x21d)]())==null?void 0x0:_0x27ed07[0x0],_0x24cbeb=this['_univerInstanceService'][_0xa81a61(0x445)](_0x3a9ab9[_0xa81a61(0x38a)])[_0xa81a61(0x28e)]();_0x2e7188&&_0x24cbeb&&this[_0xa81a61(0x277)](_0x24cbeb[_0xa81a61(0x382)](),_0x2e7188);}[_0x9941cc(0x3d0)](){const _0x4611ad=_0x9941cc;this[_0x4611ad(0x34f)]=!0x1;}};En=Y([J(0x2,_0x5e7a64(_0x3a52d9)),J(0x3,_0x5e7a64(bn)),J(0x4,_0x5e7a64(_0x25c118)),J(0x5,_0x479ada),J(0x6,_0x309b58),J(0x7,_0x5e7a64(_0x485be6))],En);let Z=class extends _0x26adc4{constructor(_0x2ce28f,_0x328de1,_0x1687b2){const _0x162814=_0x9941cc;super(),this[_0x162814(0x2ff)]=_0x2ce28f,this['_injector']=_0x328de1,this['_collabSessionService']=_0x1687b2,q(this,_0x162814(0x3bc),new Map()),q(this,_0x162814(0x3ed),new _0x49cf9c()),this[_0x162814(0x30a)]();}[_0x9941cc(0x1f9)](){const _0x2244e9=_0x9941cc;super[_0x2244e9(0x1f9)](),this[_0x2244e9(0x3ed)]['complete'](),this[_0x2244e9(0x3bc)][_0x2244e9(0x285)](_0x41eff0=>_0x41eff0[_0x2244e9(0x1f9)]());}[_0x9941cc(0x1f8)](_0x449654){const _0x3f02b0=_0x9941cc;let _0x4f659f=this[_0x3f02b0(0x3bc)][_0x3f02b0(0x3a2)](_0x449654);return _0x4f659f?_0x4f659f[_0x3f02b0(0x33d)]:this[_0x3f02b0(0x3ed)]['pipe'](_0x27d01f(_0x2070d2=>_0x2070d2[_0x3f02b0(0x231)]===_0x449654),_0x5aa3c8(_0x18c36f=>_0x18c36f[_0x3f02b0(0x33d)]));}[_0x9941cc(0x30a)](){const _0x4f9004=_0x9941cc;this[_0x4f9004(0x2ff)][_0x4f9004(0x21b)](_0x3a9ab9[_0x4f9004(0x38a)])[_0x4f9004(0x1e3)](_0x4c8245(this[_0x4f9004(0x1f3)]))[_0x4f9004(0x44c)](async _0x47d9d=>{const _0x536388=_0x4f9004;let _0x47f7c9=_0x47d9d[_0x536388(0x246)]['getUnitId'](),_0x4f1697=await this['_startSheetCollabCursor'](_0x47f7c9);this[_0x536388(0x3ed)]['next'](_0x4f1697),this['_entities']['set'](_0x47f7c9,_0x4f1697);}),this['_univerInstanceService'][_0x4f9004(0x21b)](_0x3a9ab9['UNIVER_DOC'])[_0x4f9004(0x1e3)](_0x4c8245(this[_0x4f9004(0x1f3)]))['pipe'](_0x27d01f(_0x340b82=>!_0x340b82[_0x4f9004(0x246)]['getUnitId']()[_0x4f9004(0x401)]('__')))[_0x4f9004(0x44c)](async _0x3c20ad=>{const _0x3ee847=_0x4f9004;let {unit:_0x5097c9}=_0x3c20ad,_0x5f3952=_0x5097c9[_0x3ee847(0x29c)](),_0x1a9930=await this[_0x3ee847(0x33a)](_0x5f3952);this['_entityInit$'][_0x3ee847(0x31a)](_0x1a9930),this['_entities'][_0x3ee847(0x3d4)](_0x5f3952,_0x1a9930);}),_0x5c9537(this[_0x4f9004(0x2ff)][_0x4f9004(0x24b)](_0x3a9ab9['UNIVER_DOC']),this[_0x4f9004(0x2ff)][_0x4f9004(0x24b)](_0x3a9ab9['UNIVER_SHEET']))[_0x4f9004(0x1e3)](_0x4c8245(this[_0x4f9004(0x1f3)]))[_0x4f9004(0x44c)](_0x370d93=>{const _0x39acf0=_0x4f9004;let _0x50b6b7=_0x370d93['getUnitId'](),_0x50efdd=this[_0x39acf0(0x3bc)][_0x39acf0(0x3a2)](_0x50b6b7);_0x50efdd&&(_0x50efdd[_0x39acf0(0x1f9)](),this[_0x39acf0(0x3bc)][_0x39acf0(0x3c0)](_0x50b6b7));});}async['_startSheetCollabCursor'](_0x5201ba){const _0x113648=_0x9941cc;let _0x482343=await this[_0x113648(0x27f)][_0x113648(0x3bb)](_0x5201ba),_0x43a531=this[_0x113648(0x2f6)][_0x113648(0x201)](En,_0x5201ba,_0x482343);return _0x43a531[_0x113648(0x455)](),_0x43a531;}async['_startDocCollabCursor'](_0x117390){const _0x217ef8=_0x9941cc;let _0x595f59=await this[_0x217ef8(0x27f)]['requireSession'](_0x117390),_0x7236d4=this[_0x217ef8(0x2f6)]['createInstance'](wn,_0x117390,_0x595f59);return _0x7236d4[_0x217ef8(0x455)](),_0x7236d4;}};Z=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x3a52d9)),J(0x2,_0x5e7a64(_0x48e021))],Z);function Dn(_0x503732,_0x32f45b){const _0x596f31=_0x9941cc;_0x503732[_0x596f31(0x2f9)](),_0x503732[_0x596f31(0x30e)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x3725fa=_0x503732[_0x596f31(0x36c)](_0x32f45b)[_0x596f31(0x2b8)];return _0x503732[_0x596f31(0x24c)](),Math[_0x596f31(0x3a4)](_0x3725fa+0x8,0xc8);}function On(_0x593e66,_0x4da8ff){const _0x27b23c=_0x9941cc;let {radius:_0x2b1ec1,width:_0x290048,height:_0x434be7}=_0x4da8ff;_0x2b1ec1??=0x0,_0x290048??=0x1e,_0x434be7??=0x1e;let _0x4ff3b1=0x0,_0x11d6dd=0x0,_0x3f7777=0x0;_0x4ff3b1=_0x11d6dd=_0x3f7777=Math[_0x27b23c(0x3a4)](_0x2b1ec1,_0x290048/0x2,_0x434be7/0x2),_0x593e66[_0x27b23c(0x34b)](),_0x593e66['moveTo'](_0x4ff3b1,0x0),_0x593e66[_0x27b23c(0x37b)](_0x290048-_0x11d6dd,0x0),_0x593e66[_0x27b23c(0x2a9)](_0x290048-_0x11d6dd,_0x11d6dd,_0x11d6dd,Math['PI']*0x3/0x2,0x0,!0x1),_0x593e66['lineTo'](_0x290048,_0x434be7-_0x3f7777),_0x593e66[_0x27b23c(0x2a9)](_0x290048-_0x3f7777,_0x434be7-_0x3f7777,_0x3f7777,0x0,Math['PI']/0x2,!0x1),_0x593e66['lineTo'](0x0,_0x434be7),_0x593e66[_0x27b23c(0x37b)](0x0,_0x4ff3b1),_0x593e66['arc'](_0x4ff3b1,_0x4ff3b1,_0x4ff3b1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x593e66[_0x27b23c(0x2ba)](),_0x4da8ff[_0x27b23c(0x29d)]&&(_0x593e66['save'](),_0x593e66['fillStyle']=_0x4da8ff[_0x27b23c(0x29d)],_0x4da8ff[_0x27b23c(0x37f)]==='evenodd'?_0x593e66[_0x27b23c(0x29d)](_0x27b23c(0x37a)):_0x593e66['fill'](),_0x593e66[_0x27b23c(0x24c)]());}var kn=class e extends _0x5f64c4{constructor(_0x286a32,_0x2fd753){const _0x489fc7=_0x9941cc;super(_0x286a32,_0x2fd753),q(this,_0x489fc7(0x31d),void 0x0),q(this,_0x489fc7(0x33c),void 0x0),this['color']=_0x2fd753==null?void 0x0:_0x2fd753[_0x489fc7(0x31d)],this[_0x489fc7(0x33c)]=_0x2fd753==null?void 0x0:_0x2fd753[_0x489fc7(0x33c)];}static[_0x9941cc(0x3f9)](_0x777ad5,_0x15e69d){const _0x1eb8c9=_0x9941cc;let {text:_0x198a8d,color:_0x5b7b20}=_0x15e69d;_0x777ad5[_0x1eb8c9(0x2f9)](),_0x777ad5[_0x1eb8c9(0x30e)]=_0x1eb8c9(0x20c);let _0x2a05ed=_0x777ad5[_0x1eb8c9(0x36c)](_0x198a8d)[_0x1eb8c9(0x2b8)];if(On(_0x777ad5,{'height':0x14,'radius':0x4,'width':Dn(_0x777ad5,_0x198a8d),'fill':_0x5b7b20,'evented':!0x1}),_0x777ad5[_0x1eb8c9(0x2fa)]='#FFF',_0x2a05ed>0xc0){let _0x5af5ce='',_0x409170=0x0;for(let _0x507b8b of _0x198a8d){let _0x4f3ac5=_0x777ad5['measureText'](_0x507b8b)[_0x1eb8c9(0x2b8)];if(_0x409170+_0x4f3ac5<=0xc0-_0x777ad5[_0x1eb8c9(0x36c)](_0x1eb8c9(0x2b7))['width'])_0x5af5ce+=_0x507b8b,_0x409170+=_0x4f3ac5;else{_0x5af5ce+=_0x1eb8c9(0x2b7);break;}}_0x777ad5[_0x1eb8c9(0x315)](_0x5af5ce,0x4,0xf);}else _0x777ad5[_0x1eb8c9(0x315)](_0x198a8d,0x4,0xf);_0x777ad5[_0x1eb8c9(0x24c)]();}['_draw'](_0x5a26dc){const _0x3bc120=_0x9941cc;e[_0x3bc120(0x3f9)](_0x5a26dc,this);}};const An=_0x9941cc(0x255);var jn=class{constructor(_0x4f86fe,_0x1ce608,_0x57c7c6,_0x2d4156){const _0x3fe35d=_0x9941cc;this[_0x3fe35d(0x34c)]=_0x4f86fe,this[_0x3fe35d(0x21e)]=_0x1ce608,this['_docSkeleton']=_0x57c7c6,this['_document']=_0x2d4156,q(this,_0x3fe35d(0x34e),[]),q(this,_0x3fe35d(0x2a8),null),q(this,_0x3fe35d(0x3c2),null),q(this,'_anchorDot',null),q(this,_0x3fe35d(0x38e),null),q(this,_0x3fe35d(0x2a2),null),this[_0x3fe35d(0x370)]();}set[_0x9941cc(0x1ee)](_0x157dac){const _0x547bcb=_0x9941cc;_0x157dac?(this['_anchorDot']&&this[_0x547bcb(0x3c5)]['hide'](),this[_0x547bcb(0x3c2)]&&this[_0x547bcb(0x3c2)][_0x547bcb(0x361)]()):(this[_0x547bcb(0x3c5)]&&this[_0x547bcb(0x3c5)][_0x547bcb(0x361)](),this[_0x547bcb(0x3c2)]&&this['_textBubble'][_0x547bcb(0x2a3)]());}[_0x9941cc(0x1f9)](){const _0x53211d=_0x9941cc;for(let _0x18ce73 of this[_0x53211d(0x34e)])_0x18ce73['dispose']();this['_textBubble']&&this[_0x53211d(0x3c2)][_0x53211d(0x1f9)](),this[_0x53211d(0x3c5)]&&this['_anchorDot'][_0x53211d(0x1f9)](),this[_0x53211d(0x2a8)]&&this[_0x53211d(0x2a8)]['dispose'](),this[_0x53211d(0x2a2)]&&this[_0x53211d(0x2a2)]();}['_render'](){const _0x912d19=_0x9941cc;let {_docSkeleton:_0x4d2d2c,_document:_0x529cb6}=this,{color:_0x1421b0,name:_0x31dfcf,ranges:_0x49067c}=this[_0x912d19(0x34c)],_0x37ddac=_0x529cb6['getOffsetConfig'](),{docsLeft:_0x28aa40,docsTop:_0x1dba19}=_0x37ddac,_0x2e66a6=new _0x3d3232(_0x37ddac,_0x4d2d2c);for(let {startOffset:_0x72b017,endOffset:_0x238a26,rangeType:_0x2ba0ba,segmentId:_0x2dc7d1,segmentPage:_0x4d0cce,collapsed:_0x3dbd49,isActive:_0x2c4aee}of _0x49067c){let _0x352954=_0x4d2d2c[_0x912d19(0x3ef)](_0x72b017,!0x0,_0x2dc7d1,_0x4d0cce),_0x13433d=_0x4d2d2c[_0x912d19(0x3ef)](_0x238a26,!0x0,_0x2dc7d1,_0x4d0cce);_0x13433d??=_0x4d2d2c[_0x912d19(0x3ef)](_0x238a26-0x1,!0x1,_0x2dc7d1,_0x4d0cce);let _0x1152b3=Mn(_0x352954,_0x13433d);if(_0x2c4aee&&_0x1152b3[_0x912d19(0x253)]){let {contentBoxPointGroup:_0x277360}=_0x2e66a6[_0x912d19(0x3df)](_0x13433d,_0x13433d);if(_0x277360['length']===0x0)continue;this[_0x912d19(0x41d)](_0x1421b0,_0x277360,_0x28aa40,_0x1dba19,_0x31dfcf),this['_eventUnsubscribe']=this[_0x912d19(0x43c)]();}if(_0x352954&&_0x13433d){if(_0x2ba0ba===_0x13669b['RECT']){let {pointGroup:_0x5913b9}=new _0x3920b7(_0x37ddac,_0x4d2d2c)[_0x912d19(0x3df)](_0x352954,_0x13433d)??{};if(_0x5913b9==null||_0x5913b9['length']===0x0)continue;this['_drawRectRange'](_0x1421b0,_0x5913b9,_0x28aa40,_0x1dba19);}else{if(!_0x3dbd49&&_0x1152b3[_0x912d19(0x2a5)]){let {borderBoxPointGroup:_0x520a56}=_0x2e66a6[_0x912d19(0x3df)](_0x352954,_0x13433d);if(_0x520a56['length']===0x0)continue;this['_drawTextRange'](_0x1421b0,_0x520a56,_0x28aa40,_0x1dba19);}}}}}[_0x9941cc(0x41d)](_0x3c7768,_0x48078a,_0x377c79,_0xca6ec4,_0x3c11d0){const _0x3591cf=_0x9941cc;let {left:_0xed0496,top:_0x2e8017,height:_0x15bbae}=this[_0x3591cf(0x2b2)](_0x48078a),_0x3a77e9=1.5/this[_0x3591cf(0x3d3)](),_0x3b778c=new _0xe88d74(An+_0x514bf7(0x6),{'left':_0xed0496+_0x377c79-_0x3a77e9,'top':_0x2e8017+_0xca6ec4,'height':_0x15bbae,'width':1.5,'fill':_0x3c7768||_0x12c0bd(_0x5f41ef[_0x3591cf(0x3f1)],0x0),'strokeWidth':_0x3a77e9,'stroke':_0x3591cf(0x436),'evented':!0x0});this[_0x3591cf(0x2a8)]=_0x3b778c,this[_0x3591cf(0x21e)][_0x3591cf(0x258)](_0x3b778c,_0x3dbc00);let _0x31a057=new _0xe88d74(An+_0x514bf7(0x6),{'left':_0xed0496+_0x377c79-_0x3a77e9,'top':_0x2e8017+_0xca6ec4-0x2,'height':0x4,'width':0x4,'fill':_0x3c7768||_0x12c0bd(_0x5f41ef[_0x3591cf(0x3f1)],0x0),'strokeWidth':0x0,'stroke':_0x3c7768||_0x12c0bd(_0x5f41ef[_0x3591cf(0x3f1)],0x0),'evented':!0x1});this[_0x3591cf(0x3c5)]=_0x31a057,this[_0x3591cf(0x21e)][_0x3591cf(0x258)](_0x31a057,_0x3dbc00);let _0x496866=new kn(An+_0x514bf7(0x6),{'left':_0xed0496+_0x377c79-_0x3a77e9,'top':_0x2e8017+_0xca6ec4-0x14,'text':_0x3c11d0,'color':_0x3c7768});this[_0x3591cf(0x3c2)]=_0x496866,this['_scene'][_0x3591cf(0x258)](_0x496866,_0x3dbc00),this[_0x3591cf(0x1ee)]=!0x1;}[_0x9941cc(0x43c)](){const _0x4fd8ba=_0x9941cc;let _0x5d1e55=this['_anchor'][_0x4fd8ba(0x3b5)]['subscribeEvent'](()=>{const _0x3ceb9d=_0x4fd8ba;this[_0x3ceb9d(0x1ee)]=!0x0;}),_0xe531c3=this[_0x4fd8ba(0x2a8)][_0x4fd8ba(0x2c2)][_0x4fd8ba(0x3b8)](()=>{const _0x22b670=_0x4fd8ba;this[_0x22b670(0x38e)]&&clearTimeout(this[_0x22b670(0x38e)]),this[_0x22b670(0x38e)]=setTimeout(()=>{const _0x4c6cff=_0x22b670;this[_0x4c6cff(0x1ee)]=!0x1;},0x7d0);});return()=>{_0x5d1e55['unsubscribe'](),_0xe531c3['unsubscribe']();};}[_0x9941cc(0x209)](_0x4b85da,_0x33f060,_0x5474c1,_0xbaa2c0){const _0x3a0d95=_0x9941cc;let _0x394b02=0.2,_0xed5fa2=new _0xf4eb88(_0x4b85da)[_0x3a0d95(0x3f4)](_0x394b02)['toRgbString'](),_0x18e362=new _0x29394e(_0x3a0d95(0x412)+_0x514bf7(0x6),{'pointsGroup':_0x33f060,'fill':_0xed5fa2||_0x12c0bd(_0x5f41ef[_0x3a0d95(0x3f1)],_0x394b02),'left':_0x5474c1,'top':_0xbaa2c0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a0d95(0x34e)][_0x3a0d95(0x2d4)](_0x18e362),this['_scene'][_0x3a0d95(0x258)](_0x18e362,_0x3dbc00);}['_drawRectRange'](_0x3b30ec,_0x32cc2a,_0x20b8b4,_0x4eeeeb){const _0x1ec9bb=_0x9941cc;let _0x5a9aa5=0.2,_0x27453a=new _0xf4eb88(_0x3b30ec)[_0x1ec9bb(0x3f4)](_0x5a9aa5)[_0x1ec9bb(0x338)](),_0x123e0c=new _0x29394e(_0x1ec9bb(0x27b)+_0x514bf7(0x6),{'pointsGroup':_0x32cc2a,'fill':_0x27453a||_0x12c0bd(_0x5f41ef['black'],_0x5a9aa5),'left':_0x20b8b4,'top':_0x4eeeeb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ec9bb(0x34e)][_0x1ec9bb(0x2d4)](_0x123e0c),this[_0x1ec9bb(0x21e)]['addObject'](_0x123e0c,_0x3dbc00);}['_getAnchorBounding'](_0x163990){let _0x4b2753=_0x163990[0x0],_0x53a23c=_0x4b2753[0x0],_0x597d2e=_0x4b2753[0x2],{x:_0x298c7f,y:_0x17c996}=_0x53a23c,{x:_0x463306,y:_0x2e1dd5}=_0x597d2e;return{'left':_0x298c7f,'top':_0x17c996,'width':_0x463306-_0x298c7f,'height':_0x2e1dd5-_0x17c996};}[_0x9941cc(0x3d3)](){const _0x3e4602=_0x9941cc;let {scaleX:_0x234124,scaleY:_0x570b38}=this[_0x3e4602(0x21e)][_0x3e4602(0x346)]();return Math[_0x3e4602(0x1f2)](_0x234124,_0x570b38);}};function Mn(_0x1be1d9,_0x204789){const _0x311b7a=_0x9941cc;if(!_0x204789)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x1be1d9||_0x1be1d9[_0x311b7a(0x2ea)]!==_0x204789[_0x311b7a(0x2ea)]||(_0x1be1d9['pageType']===_0x51c0a9['HEADER']||_0x1be1d9[_0x311b7a(0x2ea)]===_0x51c0a9['FOOTER'])&&_0x1be1d9['segmentPage']!==_0x204789['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0xc95100=_0x5200ed(_0x1be1d9),_0x39f82d=_0x5200ed(_0x204789);return{'canRenderAnchor':!0x0,'canRenderSelection':_0xc95100==null||_0x39f82d==null?_0xc95100==null&&_0x39f82d==null:_0xc95100['pageIndex']===_0x39f82d[_0x311b7a(0x1fd)]&&_0xc95100[_0x311b7a(0x2fc)]===_0x39f82d[_0x311b7a(0x2fc)]&&_0xc95100[_0x311b7a(0x3b3)]===_0x39f82d['columnIndex']};}let Nn=class extends _0x26adc4{constructor(_0x171364,_0x5ee261,_0x280dbb,_0x445935,_0xfa09e3){const _0x314fde=_0x9941cc;super(),this[_0x314fde(0x23e)]=_0x171364,this['_docSkeletonManagerService']=_0x5ee261,this[_0x314fde(0x41a)]=_0x280dbb,this[_0x314fde(0x2c3)]=_0x445935,this[_0x314fde(0x3e9)]=_0xfa09e3,q(this,_0x314fde(0x42a),[]),q(this,_0x314fde(0x3a1),[]),this[_0x314fde(0x30a)]();}[_0x9941cc(0x30a)](){const _0x535bad=_0x9941cc;let _0xf618dc=this['_context']['unitId'],_0x79f181=this[_0x535bad(0x204)];this[_0x535bad(0x366)](_0xd37b62([this[_0x535bad(0x41a)][_0x535bad(0x1f8)](_0xf618dc),this[_0x535bad(0x3e9)][_0x535bad(0x397)]])[_0x535bad(0x1e3)](_0x56b22d(([_0x24b18e,_0x4b4c21])=>({'skeleton':_0x79f181[_0x535bad(0x2c8)](),'cursors':[..._0x24b18e[_0x535bad(0x3ca)]()][_0x535bad(0x3b2)](_0x5c2307=>({..._0x5c2307,'color':this[_0x535bad(0x3e9)]['getColorFromTheme'](_0x5c2307[_0x535bad(0x31d)])}))})))['subscribe'](_0x5466ee=>{const _0x1aa026=_0x535bad;if(this[_0x1aa026(0x384)](),_0x5466ee){let {skeleton:_0xac2702,cursors:_0x19c55d}=_0x5466ee;this['_updateCollabCursors'](_0xac2702,_0x19c55d);}})),this[_0x535bad(0x392)](),this[_0x535bad(0x319)]();}['_updateCollabCursors'](_0x499fa5,_0x4bd270){const _0x3798a8=_0x9941cc;let {scene:_0x3e9a60,mainComponent:_0x410417}=this[_0x3798a8(0x23e)],_0x2c8d2b=_0x4bd270['map'](_0x46392a=>new jn(_0x46392a,_0x3e9a60,_0x499fa5,_0x410417));this['_cursorShapes']=_0x2c8d2b,this['_cursors']=_0x4bd270;}['_refreshCollabCursors'](){const _0x28d1a6=_0x9941cc;this[_0x28d1a6(0x384)]();let {scene:_0x570da3,mainComponent:_0x276b0e}=this[_0x28d1a6(0x23e)],_0x2399d6=this['_docSkeletonManagerService'][_0x28d1a6(0x2c8)](),_0x5f2f06=this[_0x28d1a6(0x3a1)][_0x28d1a6(0x2a1)](_0x5a571d=>new jn(_0x5a571d,_0x570da3,_0x2399d6,_0x276b0e));this['_cursorShapes']=_0x5f2f06;}[_0x9941cc(0x384)](){const _0x5130a5=_0x9941cc;this['_cursorShapes'][_0x5130a5(0x285)](_0xf429e=>_0xf429e[_0x5130a5(0x1f9)]()),this[_0x5130a5(0x42a)]=[];}['_initCommandExecutedListener'](){const _0x4b085b=_0x9941cc;let _0x36390a=[_0x1d35c7['id']];this[_0x4b085b(0x366)](this['_commandService'][_0x4b085b(0x320)](_0x4e7906=>{const _0xc99d79=_0x4b085b;_0x36390a[_0xc99d79(0x32e)](_0x4e7906['id'])&&_0x4e7906['params'][_0xc99d79(0x43e)]===this['_context'][_0xc99d79(0x43e)]&&this[_0xc99d79(0x451)]();}));}['_initResize'](){const _0x211910=_0x9941cc;this[_0x211910(0x366)](_0x312909(this['_context']['engine'][_0x211910(0x23c)])[_0x211910(0x1e3)](_0x5d66f3(_0xd09ced=>_0xd09ced[_0x211910(0x368)]===_0x4ff85e[_0x211910(0x2bd)]),_0xd66e0f(0x10))[_0x211910(0x44c)](()=>{this['_refreshCollabCursors']();}));}};Nn=Y([J(0x1,_0x5e7a64(_0xe6affc)),J(0x2,_0x5e7a64(Z)),J(0x3,_0x309b58),J(0x4,_0x5e7a64(_0x5cb64c))],Nn);var Pn=class extends _0x5f64c4{constructor(_0x15d535,_0x264efb){const _0x4cf064=_0x9941cc;super(_0x15d535,_0x264efb),q(this,_0x4cf064(0x3d2),void 0x0),q(this,_0x4cf064(0x2cd),!0x1),q(this,_0x4cf064(0x227),void 0x0),q(this,_0x4cf064(0x25f),''),q(this,_0x4cf064(0x3c6),'top'),q(this,_0x4cf064(0x219),void 0x0),q(this,_0x4cf064(0x3bd),void 0x0),q(this,'_highlight',void 0x0),q(this,_0x4cf064(0x298),0x4),q(this,_0x4cf064(0x25e),void 0x0),q(this,_0x4cf064(0x456),void 0x0),q(this,_0x4cf064(0x232),!0x0),q(this,'_offsetY',0x0),q(this,'_labelHorizontalPosition',_0x4cf064(0x454)),_0x264efb&&(this['setShapeProps'](_0x264efb),_0x264efb['highlight']&&(_0x264efb['highlightSecond']??this[_0x4cf064(0x298)])&&this['_startBlinking'](_0x264efb[_0x4cf064(0x26a)]??this[_0x4cf064(0x298)])),this['onPointerEnter$'][_0x4cf064(0x3b8)](()=>this[_0x4cf064(0x2ed)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4cf064(0x3b8)](()=>this[_0x4cf064(0x2ed)]({'hovered':!0x1}));}[_0x9941cc(0x3e0)](_0x1fac36){const _0xd4b76e=_0x9941cc;this[_0xd4b76e(0x337)]=_0x1fac36;}[_0x9941cc(0x2ed)](_0x40cd16){const _0x2f27d7=_0x9941cc;this['_color']=_0x40cd16[_0x2f27d7(0x31d)]??this['_color'],this[_0x2f27d7(0x2cd)]=_0x40cd16[_0x2f27d7(0x1e7)]??this['_hovered'],this[_0x2f27d7(0x227)]=_0x40cd16['range']??this[_0x2f27d7(0x227)],this[_0x2f27d7(0x25f)]=_0x40cd16[_0x2f27d7(0x2fd)]??this[_0x2f27d7(0x25f)],this[_0x2f27d7(0x3c6)]=_0x40cd16[_0x2f27d7(0x273)]??this['_labelPosition'],this['_backgroundColor']=_0x40cd16[_0x2f27d7(0x345)]??this['_backgroundColor'],this[_0x2f27d7(0x3bd)]=_0x40cd16[_0x2f27d7(0x27e)]??this['_showText'],this[_0x2f27d7(0x307)]=_0x40cd16[_0x2f27d7(0x3ec)]??this[_0x2f27d7(0x307)],_0x40cd16[_0x2f27d7(0x26a)]!==void 0x0&&(this[_0x2f27d7(0x298)]=_0x40cd16[_0x2f27d7(0x26a)]),_0x40cd16[_0x2f27d7(0x2dd)]!==void 0x0&&(this[_0x2f27d7(0x37e)]=_0x40cd16[_0x2f27d7(0x2dd)]),_0x40cd16['offsetY']!==void 0x0&&(this[_0x2f27d7(0x337)]=_0x40cd16[_0x2f27d7(0x2d2)]),this[_0x2f27d7(0x2d8)]({'width':_0x40cd16[_0x2f27d7(0x2b8)],'height':_0x40cd16['height']});}['onMouseMove'](_0x3d6171){const _0x108df1=_0x9941cc;let {row:_0x5ca461,column:_0x516bdf}=_0x3d6171;_0x5ca461>=this['_range'][_0x108df1(0x210)]&&_0x5ca461<=this['_range']['endRow']&&_0x516bdf>=this[_0x108df1(0x227)][_0x108df1(0x31f)]&&_0x516bdf<=this[_0x108df1(0x227)][_0x108df1(0x313)]?this[_0x108df1(0x2ed)]({'hovered':!0x0}):this[_0x108df1(0x2ed)]({'hovered':!0x1});}[_0x9941cc(0x271)](_0x5a474d){const _0x2c27af=_0x9941cc;this[_0x2c27af(0x432)](),this[_0x2c27af(0x232)]=!0x0,this[_0x2c27af(0x456)]=window['setInterval'](()=>{const _0x51dabc=_0x2c27af;this[_0x51dabc(0x232)]=!this[_0x51dabc(0x232)],this[_0x51dabc(0x39d)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x2c27af(0x2d1)](()=>{const _0x48a4bf=_0x2c27af;this[_0x48a4bf(0x432)](),this[_0x48a4bf(0x232)]=!0x0,this[_0x48a4bf(0x39d)](!0x0);},_0x5a474d*0x3e8);}[_0x9941cc(0x432)](){const _0x3922c3=_0x9941cc;this[_0x3922c3(0x456)]&&=(window['clearInterval'](this['_blinkIntervalTimer']),void 0x0),this[_0x3922c3(0x25e)]&&=(window[_0x3922c3(0x438)](this[_0x3922c3(0x25e)]),void 0x0);}['triggerDblclick'](_0x5f3558){return!0x1;}[_0x9941cc(0x1f9)](){const _0x5d6b77=_0x9941cc;this[_0x5d6b77(0x432)](),super[_0x5d6b77(0x1f9)]();}[_0x9941cc(0x38c)](_0x439d68){const _0x1f863a=_0x9941cc;let _0x5b1345=this['_color'],_0x3dadd3=this[_0x1f863a(0x219)];if(this[_0x1f863a(0x37e)]&&!this['_isBlinkVisible']&&(_0x5b1345=this['_getLighterColor'](this['_color']),_0x3dadd3=this[_0x1f863a(0x219)]?this[_0x1f863a(0x286)](this[_0x1f863a(0x219)]):void 0x0),_0xe88d74[_0x1f863a(0x3f9)](_0x439d68,{'width':this[_0x1f863a(0x2b8)],'height':this['height'],'strokeWidth':this[_0x1f863a(0x259)]||1.5,'stroke':_0x5b1345,'evented':!0x1,'fill':_0x3dadd3}),this[_0x1f863a(0x2cd)]||this[_0x1f863a(0x3bd)]){_0x439d68[_0x1f863a(0x2f9)]();let _0x1c9b90=this[_0x1f863a(0x307)]===_0x1f863a(0x3be)?-Dn(_0x439d68,this[_0x1f863a(0x25f)]):this[_0x1f863a(0x2b8)];_0x439d68[_0x1f863a(0x282)](0x1,0x0,0x0,0x1,_0x1c9b90,(this[_0x1f863a(0x3c6)]==='bottom'?0x0:-0x14)+(this[_0x1f863a(0x337)]??0x0)),kn[_0x1f863a(0x3f9)](_0x439d68,{'text':this[_0x1f863a(0x25f)],'color':_0x5b1345}),_0x439d68['restore']();}}[_0x9941cc(0x286)](_0x4b4da0){const _0x438678=_0x9941cc;return _0x4b4da0['startsWith']('#')?_0x438678(0x300)+Number[_0x438678(0x334)](_0x4b4da0[_0x438678(0x335)](0x1,0x3),0x10)+',\x20'+Number[_0x438678(0x334)](_0x4b4da0[_0x438678(0x335)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x4b4da0[_0x438678(0x335)](0x5,0x7),0x10)+_0x438678(0x378):_0x4b4da0['startsWith'](_0x438678(0x343))?_0x4b4da0[_0x438678(0x2cc)](/[\d.]+\)$/g,_0x438678(0x3e8)):_0x4b4da0[_0x438678(0x401)](_0x438678(0x290))?_0x4b4da0['replace']('rgb',_0x438678(0x343))[_0x438678(0x2cc)](')',_0x438678(0x378)):_0x4b4da0;}};let Fn=class extends _0x26adc4{constructor(_0x4f044e,_0x277b59,_0x129a41,_0x262f14){const _0x870b4b=_0x9941cc;super(),this[_0x870b4b(0x23e)]=_0x4f044e,this[_0x870b4b(0x3aa)]=_0x277b59,this['_collabCursorController']=_0x129a41,this[_0x870b4b(0x3e9)]=_0x262f14,q(this,'_cursors',new Set()),q(this,_0x870b4b(0x45c),null),q(this,_0x870b4b(0x3a6),null),this[_0x870b4b(0x30a)]();}[_0x9941cc(0x30a)](){const _0x566e28=_0x9941cc;this['_sheetSkeletonManagerService'][_0x566e28(0x414)][_0x566e28(0x1e3)](_0xf925e5(this[_0x566e28(0x1f3)]),_0x42c983(_0x4077e3=>{const _0x1314ad=_0x566e28;if(_0x4077e3){let _0x2ce9f4=_0x4077e3[_0x1314ad(0x3db)];return _0xd37b62(this['_collabCursorController'][_0x1314ad(0x1f8)](this[_0x1314ad(0x23e)][_0x1314ad(0x43e)]),this[_0x1314ad(0x3e9)][_0x1314ad(0x397)])[_0x1314ad(0x1e3)](_0x56b22d(([_0x138818,_0x4ff453])=>{let _0x293615=new Map();return _0x138818['forEach']((_0x481256,_0x153c03)=>{const _0x17c6e4=_0x54b3;if(_0x481256[_0x17c6e4(0x358)]===_0x2ce9f4){let _0x3ef864={..._0x481256};_0x3ef864['color']=this[_0x17c6e4(0x3e9)][_0x17c6e4(0x2a7)](_0x481256[_0x17c6e4(0x31d)]),_0x293615[_0x17c6e4(0x3d4)](_0x153c03,_0x3ef864);}}),{'skeleton':_0x4077e3,'cursors':_0x293615};}));}return _0x52386d({'skeleton':null,'cursors':new Map()});}))[_0x566e28(0x44c)](({skeleton:_0x31584f,cursors:_0x380479})=>{const _0x3116d7=_0x566e28;this[_0x3116d7(0x384)](),_0x31584f&&this[_0x3116d7(0x36b)](_0x31584f,_0x380479);}),this[_0x566e28(0x366)](this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x566e28(0x1e3)](_0xf925e5(this['dispose$']))['subscribe'](_0x8a019e=>{const _0x53b335=_0x566e28;var _0x1bd5f1;if(_0x8a019e==null)return;(_0x1bd5f1=this[_0x53b335(0x3a6)])==null||_0x1bd5f1[_0x53b335(0x324)](),this[_0x53b335(0x3a6)]=null;let {skeleton:_0x51e043}=_0x8a019e,{scene:_0x49c2e8}=this[_0x53b335(0x23e)];this[_0x53b335(0x3a6)]=_0x49c2e8[_0x53b335(0x330)][_0x53b335(0x3b8)](_0x3580a2(_0xae01b1=>{const _0x55164c=_0x53b335;var _0x2b50d0,_0x3fdbc7;let {offsetX:_0x54e006,offsetY:_0x23b73e}=_0xae01b1,{x:_0x3129ce,y:_0x286099}=_0x49c2e8['getCoordRelativeToViewport'](_0x51b3dc[_0x55164c(0x257)]([_0x54e006,_0x23b73e])),{scaleX:_0x1ac636,scaleY:_0x2dae14}=_0x49c2e8[_0x55164c(0x346)](),_0x4fe8aa=_0x49c2e8['getViewport'](_0x571217[_0x55164c(0x2ce)]),_0x5a26e8=_0x49c2e8[_0x55164c(0x25d)](_0x51b3dc[_0x55164c(0x257)]([_0x3129ce,_0x286099]),_0x4fe8aa),_0x206f83=_0x51e043['getCellIndexByOffset'](_0x54e006,_0x23b73e,_0x1ac636,_0x2dae14,_0x5a26e8);(((_0x2b50d0=this[_0x55164c(0x45c)])==null?void 0x0:_0x2b50d0[_0x55164c(0x2b4)])!==_0x206f83[_0x55164c(0x2b4)]||((_0x3fdbc7=this[_0x55164c(0x45c)])==null?void 0x0:_0x3fdbc7['row'])!==_0x206f83['row'])&&this['_cursors']['forEach'](_0x367bc0=>{const _0x201f9c=_0x55164c;_0x367bc0[_0x201f9c(0x350)](_0x206f83);});},0x64));})),this[_0x566e28(0x366)](_0x43c8f(()=>{const _0x353d16=_0x566e28;var _0x357421;(_0x357421=this[_0x353d16(0x3a6)])==null||_0x357421['unsubscribe'](),this[_0x353d16(0x3a6)]=null;}));}['_updateCollabCursors'](_0x1bde02,_0x4c8c4f){const _0xb0081d=_0x9941cc;let _0x45d4b5=this[_0xb0081d(0x3aa)]['getCurrentSkeleton']();if(!_0x45d4b5)return;let _0x419d1e=this[_0xb0081d(0x247)]();if(!_0x419d1e)return;this[_0xb0081d(0x3a1)][_0xb0081d(0x285)](_0x2adf26=>{const _0x37e3d4=_0xb0081d;_0x2adf26[_0x37e3d4(0x39d)]();});let {scene:_0x1825ef}=_0x419d1e,_0x990474=In(Array[_0xb0081d(0x354)](_0x4c8c4f[_0xb0081d(0x3ca)]()))[_0xb0081d(0x2a1)](_0xa3ad52=>{const _0x43373d=_0xb0081d;let {color:_0x2d2420,range:_0x90c017,name:_0x1d7d6e,selection:_0x2092aa,sheetID:_0x282ab4}=_0xa3ad52,{startColumn:_0x39af63,startRow:_0x42cf4f,endColumn:_0x3830dd,endRow:_0x5401ab}=_0x90c017,_0x4b8323=_0x42bc2d(_0x42cf4f,_0x39af63,_0x1825ef,_0x45d4b5),_0x3de6a1=_0x42bc2d(_0x5401ab,_0x3830dd,_0x1825ef,_0x45d4b5),{columnHeaderHeightAndMarginTop:_0x486e29}=_0x45d4b5,{startX:_0x2016c8,startY:_0x100508}=_0x4b8323,{endX:_0x10a0d7,endY:_0xe4b8f4}=_0x3de6a1,_0x4cc2fc=_0x10a0d7-_0x2016c8,_0x2cf143=_0xe4b8f4-_0x100508;return new Pn(_0x1d7d6e,{'labelPosition':_0x100508-_0x486e29>=0x14?_0x43373d(0x42d):_0x43373d(0x2d3),'sheetID':_0x282ab4,'range':_0x90c017,'color':_0x2d2420,'name':_0x1d7d6e,'selection':_0x2092aa,'left':_0x2016c8,'top':_0x100508,'width':_0x4cc2fc,'height':_0x2cf143,'evented':!0x1,'zIndex':0x1389});});_0x1825ef[_0xb0081d(0x2c7)](_0x990474,0x1),this[_0xb0081d(0x3a1)]=new Set(_0x990474);}[_0x9941cc(0x384)](){const _0x2e2912=_0x9941cc;var _0x56442d;(_0x56442d=this[_0x2e2912(0x3a1)])==null||_0x56442d[_0x2e2912(0x285)](_0x2c65f9=>_0x2c65f9['dispose']());}[_0x9941cc(0x247)](){const _0x22813c=_0x9941cc;return _0x25c785(this[_0x22813c(0x23e)][_0x22813c(0x246)],this[_0x22813c(0x23e)]);}};Fn=Y([J(0x1,_0x5e7a64(_0x196587)),J(0x2,_0x5e7a64(Z)),J(0x3,_0x5e7a64(_0x5cb64c))],Fn);function _0x54b3(_0x244280,_0xa8dc3f){_0x244280=_0x244280-0x1de;const _0x5de499=_0x5de4();let _0x54b3e6=_0x5de499[_0x244280];return _0x54b3e6;}function In(_0x2cc6b2){const _0x58f3c8=_0x9941cc;let _0x5b443b=new Map();return _0x2cc6b2['forEach'](_0x442185=>{const _0x2f8449=_0x54b3;if(_0x5b443b['has'](_0x442185[_0x2f8449(0x3ff)])){let _0x5561e2=_0x5b443b['get'](_0x442185[_0x2f8449(0x3ff)]);_0x5561e2[_0x2f8449(0x2fd)]+=',\x20'+_0x442185['name'];}else _0x5b443b['set'](_0x442185[_0x2f8449(0x3ff)],_0x442185);}),Array[_0x58f3c8(0x354)](_0x5b443b[_0x58f3c8(0x3ca)]());}function Q(_0x31d3be){const _0x3c9c56=_0x9941cc;return typeof _0x31d3be==_0x3c9c56(0x3c9)&&!!_0x31d3be;}function Ln(_0x397425){const _0xe9d8ed=_0x9941cc;return _0x397425[_0xe9d8ed(0x426)]===_0x4d0259[_0xe9d8ed(0x39c)]&&_0xe9d8ed(0x1fe)in _0x397425&&Q(_0x397425[_0xe9d8ed(0x1fe)])&&typeof _0x397425[_0xe9d8ed(0x1fe)]['memberID']==_0xe9d8ed(0x2ef)&&typeof _0x397425['data'][_0xe9d8ed(0x3ff)]=='string';}function Rn(_0x36cc8f){const _0x2e17f6=_0x9941cc;return _0x36cc8f['eventID']===_0x4d0259[_0x2e17f6(0x3f2)]&&'data'in _0x36cc8f&&Q(_0x36cc8f['data'])&&typeof _0x36cc8f['data'][_0x2e17f6(0x1ef)]==_0x2e17f6(0x2ef);}function zn(_0x2aa6ff,_0x5af3e3){const _0x4b4a24=_0x9941cc;let _0x3cc812;try{_0x3cc812=JSON['parse'](_0x2aa6ff);}catch{return null;}if(!Q(_0x3cc812)||typeof _0x3cc812[_0x4b4a24(0x36f)]!=_0x4b4a24(0x2ef)||typeof _0x3cc812[_0x4b4a24(0x43e)]!='string'||typeof _0x3cc812[_0x4b4a24(0x207)]!=_0x4b4a24(0x2ef))return null;let _0x3c036c=typeof _0x3cc812[_0x4b4a24(0x1ed)]==_0x4b4a24(0x2e7)?_0x3cc812[_0x4b4a24(0x1ed)]:_0x5af3e3;if(_0x3c036c==null)return null;let _0x4a0548=Q(_0x3cc812['pointer'])&&typeof _0x3cc812['pointer']['x']==_0x4b4a24(0x2e7)&&Number[_0x4b4a24(0x347)](_0x3cc812[_0x4b4a24(0x3da)]['x'])&&typeof _0x3cc812['pointer']['y']=='number'&&Number[_0x4b4a24(0x347)](_0x3cc812[_0x4b4a24(0x3da)]['y'])?{'x':_0x3cc812['pointer']['x'],'y':_0x3cc812[_0x4b4a24(0x3da)]['y']}:null;return{'kind':_0x3cc812['kind'],'unitType':_0x3c036c,'unitId':_0x3cc812[_0x4b4a24(0x43e)],'subUnitId':_0x3cc812[_0x4b4a24(0x207)],'selectedIds':Array[_0x4b4a24(0x2ad)](_0x3cc812[_0x4b4a24(0x1f7)])?_0x3cc812[_0x4b4a24(0x1f7)][_0x4b4a24(0x377)](_0x3e1fca=>typeof _0x3e1fca=='string'):[],'focusedId':typeof _0x3cc812[_0x4b4a24(0x410)]==_0x4b4a24(0x2ef)?_0x3cc812['focusedId']:null,'pointer':_0x4a0548};}function Bn(_0x2034c0,_0x59ff08,_0x27ec43){const _0x38b83e=_0x9941cc;return{'kind':_0x59ff08,'unitType':_0x2034c0,'unitId':_0x27ec43['unitId'],'subUnitId':_0x27ec43[_0x38b83e(0x207)],'selectedIds':Array[_0x38b83e(0x354)](_0x27ec43['selectedIds']),'focusedId':_0x27ec43[_0x38b83e(0x410)],'pointer':_0x27ec43[_0x38b83e(0x3da)]?{..._0x27ec43[_0x38b83e(0x3da)]}:null};}let Vn=class extends _0x26adc4{constructor(_0x1fa450,_0x436edc,_0x222784,_0x5ba89d,_0x5a59da,_0x19d017){const _0x5443b2=_0x9941cc;super(),this[_0x5443b2(0x43e)]=_0x1fa450,this[_0x5443b2(0x3fb)]=_0x436edc,this[_0x5443b2(0x408)]=_0x222784,this[_0x5443b2(0x3dc)]=_0x5ba89d,this[_0x5443b2(0x266)]=_0x5a59da,this['_commandService']=_0x19d017,q(this,_0x5443b2(0x34f),!0x1),q(this,_0x5443b2(0x328),!0x1);}get['unitType'](){const _0x16896d=_0x9941cc;return this['_adapter'][_0x16896d(0x1ed)];}[_0x9941cc(0x1f9)](){const _0x575a4b=_0x9941cc;this[_0x575a4b(0x2da)](),super[_0x575a4b(0x1f9)]();}['init'](){const _0x4f0bf1=_0x9941cc;this[_0x4f0bf1(0x328)]||(this[_0x4f0bf1(0x328)]=!0x0,this['_session'][_0x4f0bf1(0x230)]['pipe'](_0x4c8245(this['dispose$']))[_0x4f0bf1(0x44c)](_0x1b318d=>{const _0x44d886=_0x4f0bf1;if(_0x1b318d===_0x15dfc3[_0x44d886(0x444)]){this['_online']=!0x0;let _0x1c2465=this[_0x44d886(0x408)]['getLocalPresence'](this[_0x44d886(0x43e)]);_0x1c2465&&this[_0x44d886(0x35a)](_0x1c2465);}else this[_0x44d886(0x34f)]=!0x1,this[_0x44d886(0x2da)]();}),this[_0x4f0bf1(0x3fb)][_0x4f0bf1(0x430)][_0x4f0bf1(0x1e3)](_0x4c8245(this[_0x4f0bf1(0x1f3)]))[_0x4f0bf1(0x44c)](_0x1904d9=>{const _0x25d6e8=_0x4f0bf1;Ln(_0x1904d9)?this[_0x25d6e8(0x3b4)](_0x1904d9):Rn(_0x1904d9)&&this[_0x25d6e8(0x1fb)](_0x1904d9[_0x25d6e8(0x1fe)][_0x25d6e8(0x1ef)]);}),this[_0x4f0bf1(0x408)][_0x4f0bf1(0x357)][_0x4f0bf1(0x1e3)](_0x27d01f(_0xbc8baf=>this[_0x4f0bf1(0x34f)]&&_0xbc8baf[_0x4f0bf1(0x43e)]===this['unitId']),_0x1d35cc(_0x387acb=>_0xcf4317(_0x387acb[_0x4f0bf1(0x2cf)]),{'leading':!0x0,'trailing':!0x0}),_0x4c8245(this[_0x4f0bf1(0x1f3)]))[_0x4f0bf1(0x44c)](_0x58568c=>this[_0x4f0bf1(0x35a)](_0x58568c)));}[_0x9941cc(0x35a)](_0x316767){const _0x12251e=_0x9941cc;let _0x628903=this[_0x12251e(0x3fb)][_0x12251e(0x20b)]();if(!_0x628903||!this['_online'])return;let _0x45728b={'eventID':_0x4d0259[_0x12251e(0x39c)],'data':{'unitID':this[_0x12251e(0x43e)],'memberID':_0x628903,'selection':JSON[_0x12251e(0x248)](Bn(this[_0x12251e(0x1ed)],this['_adapter']['presenceKind'],_0x316767))}};this[_0x12251e(0x3fb)][_0x12251e(0x3a0)](_0x45728b,this['unitId'])[_0x12251e(0x26f)](()=>void 0x0);}[_0x9941cc(0x3b4)](_0x53e94b){const _0xf13b11=_0x9941cc;let {memberID:_0x33bdb1,selection:_0x107347}=_0x53e94b['data'];if(_0x33bdb1===this[_0xf13b11(0x3fb)][_0xf13b11(0x20b)]())return;let _0x542edf=zn(_0x107347,this['unitType']);if(!_0x542edf||_0x542edf[_0xf13b11(0x36f)]!==this[_0xf13b11(0x408)][_0xf13b11(0x35d)]||_0x542edf['unitType']!==this['unitType']||_0x542edf['unitId']!==this[_0xf13b11(0x43e)])return;let _0x3e4e40=this[_0xf13b11(0x266)][_0xf13b11(0x306)](this[_0xf13b11(0x43e)],_0x33bdb1),_0x655583={'unitId':_0x542edf[_0xf13b11(0x43e)],'subUnitId':_0x542edf[_0xf13b11(0x207)],'selectedIds':_0x542edf[_0xf13b11(0x1f7)],'focusedId':_0x542edf[_0xf13b11(0x410)],'pointer':_0x542edf['pointer'],'memberId':_0x33bdb1,'color':this[_0xf13b11(0x3dc)][_0xf13b11(0x447)](_0x33bdb1),'name':(_0x3e4e40==null?void 0x0:_0x3e4e40[_0xf13b11(0x2fd)])??_0x33bdb1};this['_commandService']['executeCommand'](gn['id'],{'unitType':this['unitType'],'update':{'type':_0xf13b11(0x3d4),'state':_0x655583}})[_0xf13b11(0x26f)](()=>void 0x0);}[_0x9941cc(0x1fb)](_0x5e0785){const _0x52c9df=_0x9941cc;this[_0x52c9df(0x2c3)][_0x52c9df(0x203)](gn['id'],{'unitType':this[_0x52c9df(0x1ed)],'update':{'type':_0x52c9df(0x2f1),'unitId':this[_0x52c9df(0x43e)],'memberId':_0x5e0785}})['catch'](()=>void 0x0);}[_0x9941cc(0x2da)](){const _0x2fa132=_0x9941cc;this['_commandService'][_0x2fa132(0x203)](gn['id'],{'unitType':this[_0x2fa132(0x1ed)],'update':{'type':_0x2fa132(0x26d),'unitId':this[_0x2fa132(0x43e)]}})['catch'](()=>void 0x0);}};Vn=Y([J(0x3,_0x5e7a64(bn)),J(0x4,_0x5e7a64(_0x25c118)),J(0x5,_0x5e7a64(_0x309b58))],Vn);let Hn=class extends _0x26adc4{constructor(_0x392247,_0x341e32,_0x256cff,_0x3c7a7d){const _0x37e648=_0x9941cc;super(),this[_0x37e648(0x2ff)]=_0x392247,this['_injector']=_0x341e32,this[_0x37e648(0x27f)]=_0x256cff,this[_0x37e648(0x390)]=_0x3c7a7d,q(this,_0x37e648(0x2ca),!0x1),q(this,'_entities',new Map()),q(this,_0x37e648(0x398),new Map()),q(this,_0x37e648(0x386),new Map()),this[_0x37e648(0x30a)]();}[_0x9941cc(0x1f9)](){const _0x3f907b=_0x9941cc;this[_0x3f907b(0x2ca)]=!0x0,this[_0x3f907b(0x386)][_0x3f907b(0x285)](_0x61f14=>_0x61f14['dispose']()),this['_adapterDisposables'][_0x3f907b(0x26d)](),this[_0x3f907b(0x3bc)][_0x3f907b(0x285)](_0x5ef1bf=>_0x5ef1bf[_0x3f907b(0x1f9)]()),this[_0x3f907b(0x3bc)]['clear'](),this[_0x3f907b(0x398)][_0x3f907b(0x26d)](),super[_0x3f907b(0x1f9)]();}['_init'](){const _0x630855=_0x9941cc;this[_0x630855(0x390)][_0x630855(0x214)][_0x630855(0x1e3)](_0x4c8245(this[_0x630855(0x1f3)]))[_0x630855(0x44c)](_0x411e81=>this['_syncAdapters'](_0x411e81));}[_0x9941cc(0x1df)](_0x46fd8b){const _0x27b5eb=_0x9941cc;let _0x23286c=new Set(_0x46fd8b['map'](_0x410a98=>_0x410a98[_0x27b5eb(0x1ed)]));this[_0x27b5eb(0x386)][_0x27b5eb(0x285)]((_0x1e82e8,_0x556097)=>{const _0x9d3c57=_0x27b5eb;_0x23286c[_0x9d3c57(0x2bf)](_0x556097)||(_0x1e82e8[_0x9d3c57(0x1f9)](),this[_0x9d3c57(0x386)][_0x9d3c57(0x3c0)](_0x556097),this['_disposeEntitiesForType'](_0x556097));}),_0x46fd8b['forEach'](_0x266f4c=>{const _0x3c1ad3=_0x27b5eb;this[_0x3c1ad3(0x386)]['has'](_0x266f4c[_0x3c1ad3(0x1ed)])||this['_bindAdapter'](_0x266f4c);});}['_bindAdapter'](_0x58f8f8){const _0x1c9df3=_0x9941cc;let _0x192d39=new _0x2593d8();this['_adapterDisposables']['set'](_0x58f8f8[_0x1c9df3(0x1ed)],_0x192d39),_0x192d39['add'](_0x58f8f8['activate']()),this[_0x1c9df3(0x2ff)][_0x1c9df3(0x393)](_0x58f8f8[_0x1c9df3(0x1ed)])['forEach'](_0x4f670b=>this[_0x1c9df3(0x252)](_0x4f670b[_0x1c9df3(0x29c)](),_0x58f8f8)['catch'](()=>void 0x0));let _0x22c2d6=this[_0x1c9df3(0x2ff)][_0x1c9df3(0x21b)](_0x58f8f8[_0x1c9df3(0x1ed)])['subscribe'](({unit:_0x3563ab})=>this[_0x1c9df3(0x252)](_0x3563ab[_0x1c9df3(0x29c)](),_0x58f8f8)[_0x1c9df3(0x26f)](()=>void 0x0));_0x192d39[_0x1c9df3(0x1f1)](_0x43c8f(()=>_0x22c2d6[_0x1c9df3(0x324)]()));let _0x500815=this['_univerInstanceService'][_0x1c9df3(0x24b)](_0x58f8f8[_0x1c9df3(0x1ed)])[_0x1c9df3(0x44c)](_0x341ebb=>this['_disposeEntity'](_0x341ebb[_0x1c9df3(0x29c)]()));_0x192d39[_0x1c9df3(0x1f1)](_0x43c8f(()=>_0x500815['unsubscribe']()));}async[_0x9941cc(0x252)](_0x3d19b5,_0x2a43f5){const _0x3aabab=_0x9941cc;if(this[_0x3aabab(0x3bc)][_0x3aabab(0x2bf)](_0x3d19b5)||this[_0x3aabab(0x398)][_0x3aabab(0x2bf)](_0x3d19b5))return;let _0x491f09={};this[_0x3aabab(0x398)][_0x3aabab(0x3d4)](_0x3d19b5,_0x491f09);let _0x4a90fb=await this[_0x3aabab(0x27f)]['requireSession'](_0x3d19b5)[_0x3aabab(0x26f)](_0x2e980a=>{const _0x52abe6=_0x3aabab;throw this[_0x52abe6(0x398)][_0x52abe6(0x3a2)](_0x3d19b5)===_0x491f09&&this[_0x52abe6(0x398)][_0x52abe6(0x3c0)](_0x3d19b5),_0x2e980a;});if(this[_0x3aabab(0x2ca)]||this[_0x3aabab(0x398)][_0x3aabab(0x3a2)](_0x3d19b5)!==_0x491f09||this[_0x3aabab(0x390)][_0x3aabab(0x3a2)](_0x2a43f5['unitType'])!==_0x2a43f5){this[_0x3aabab(0x398)][_0x3aabab(0x3a2)](_0x3d19b5)===_0x491f09&&this[_0x3aabab(0x398)][_0x3aabab(0x3c0)](_0x3d19b5);return;}let _0x1ec86d=this[_0x3aabab(0x2f6)]['createInstance'](Vn,_0x3d19b5,_0x4a90fb,_0x2a43f5);_0x1ec86d[_0x3aabab(0x455)](),this[_0x3aabab(0x398)]['delete'](_0x3d19b5),this[_0x3aabab(0x3bc)][_0x3aabab(0x3d4)](_0x3d19b5,_0x1ec86d);}[_0x9941cc(0x2d5)](_0x549357){const _0x11825c=_0x9941cc;this[_0x11825c(0x398)]['delete'](_0x549357);let _0x13a3ab=this[_0x11825c(0x3bc)][_0x11825c(0x3a2)](_0x549357);_0x13a3ab&&(_0x13a3ab['dispose'](),this['_entities'][_0x11825c(0x3c0)](_0x549357));}[_0x9941cc(0x2c1)](_0x49be20){const _0x526b5e=_0x9941cc;this[_0x526b5e(0x2ff)]['getAllUnitsForType'](_0x49be20)[_0x526b5e(0x285)](_0x473e60=>this[_0x526b5e(0x398)]['delete'](_0x473e60[_0x526b5e(0x29c)]())),Array[_0x526b5e(0x354)](this[_0x526b5e(0x3bc)][_0x526b5e(0x43d)]())[_0x526b5e(0x285)](([_0x52af56,_0x1c5036])=>{const _0x3a4601=_0x526b5e;_0x1c5036[_0x3a4601(0x1ed)]===_0x49be20&&this['_disposeEntity'](_0x52af56);});}};Hn=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x3a52d9)),J(0x2,_0x5e7a64(_0x48e021)),J(0x3,_0x5e7a64(_0x2ca04e))],Hn);const Un={'toast':_0x9941cc(0x3f0),'actionButton':'!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end'};let Wn=class extends _0x4ade65{constructor(_0x57ac3f,_0x45b438,_0x5c833a,_0xf56438,_0x45f3fd,_0x404b3f){const _0x88e72d=_0x9941cc;super(),this[_0x88e72d(0x234)]=_0x57ac3f,this['_localCacheService']=_0x45b438,this[_0x88e72d(0x3e4)]=_0x5c833a,this[_0x88e72d(0x44d)]=_0xf56438,this[_0x88e72d(0x2ae)]=_0x45f3fd,this[_0x88e72d(0x280)]=_0x404b3f,q(this,'_conflictNotification',null),q(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x88e72d(0x41e)](),this[_0x88e72d(0x20f)]();}['dispose'](){const _0x362885=_0x9941cc;var _0x1ad6a0;(_0x1ad6a0=this[_0x362885(0x21f)])==null||_0x1ad6a0['dispose'](),this[_0x362885(0x21f)]=null,super[_0x362885(0x1f9)]();}[_0x9941cc(0x41e)](){const _0x560a15=_0x9941cc;this[_0x560a15(0x366)](this[_0x560a15(0x234)][_0x560a15(0x299)](()=>{const _0x3e4700=_0x560a15;if(this[_0x3e4700(0x26c)][_0x3e4700(0x268)][_0x3e4700(0x3e1)])return this[_0x3e4700(0x280)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x1673a9=_0x9941cc;this[_0x1673a9(0x366)](this[_0x1673a9(0x3e4)]['event$'][_0x1673a9(0x44c)](_0x1acecf=>{const _0x5e7fd5=_0x1673a9;_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x3eb)]&&this['_messageService'][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x225)],'content':this[_0x5e7fd5(0x280)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x2dc)]&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x225)],'content':this[_0x5e7fd5(0x280)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x23d)]&&this[_0x5e7fd5(0x459)]({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x452)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Un,'action':{'label':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x359)),'onClick':_0x338bb9=>{const _0x9cbed6=_0x5e7fd5;_0x338bb9[_0x9cbed6(0x2f3)](),window['location'][_0x9cbed6(0x275)]();}}}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x3ea)]&&this['_showConflictProcessingNotification'](),_0x1acecf['id']===_0x46cfde['CONFLICT_CACHE_CLEAR_FAILED']&&_0x1acecf[_0x5e7fd5(0x231)]&&this['_showConflictCacheClearFailedNotification'](_0x1acecf['unitID'],_0x1acecf[_0x5e7fd5(0x241)]??''),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x20a)]&&this[_0x5e7fd5(0x459)]({'title':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x32c)),'content':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x2d0)),'type':_0x5e7fd5(0x3bf),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Un,'action':{'label':this['_localeService']['t'](_0x5e7fd5(0x359)),'onClick':_0x4dce89=>{const _0x2e8e8d=_0x5e7fd5;_0x4dce89[_0x2e8e8d(0x2f3)](),window[_0x2e8e8d(0x261)]['reload']();}}}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x217)]&&this['_messageService'][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x225)],'content':this[_0x5e7fd5(0x280)]['t'](_0x1acecf[_0x5e7fd5(0x1fe)]||'')}),_0x1acecf['id']===_0x46cfde['SOCKET_FAILED_RETRY']&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928['Warning'],'content':this[_0x5e7fd5(0x280)]['t']('collaboration-client-ui.session.will-retry')}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x3c8)]&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x400)],'content':this[_0x5e7fd5(0x280)]['t'](_0x5e7fd5(0x2a4))}),_0x1acecf['id']===_0x46cfde[_0x5e7fd5(0x40f)]&&this[_0x5e7fd5(0x44d)][_0x5e7fd5(0x361)]({'type':_0x475928[_0x5e7fd5(0x400)],'content':this['_localeService']['t']('collaboration-client-ui.session.collaboration-timeout')});}));}[_0x9941cc(0x2e4)](){const _0x12d4f8=_0x9941cc;this[_0x12d4f8(0x459)]({'title':this[_0x12d4f8(0x280)]['t'](_0x12d4f8(0x32c)),'content':this[_0x12d4f8(0x280)]['t'](_0x12d4f8(0x2e5)),'type':_0x12d4f8(0x448),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x38c167,_0x486210){const _0x525cb3=_0x9941cc;this['_replaceConflictNotification']({'title':this[_0x525cb3(0x280)]['t'](_0x525cb3(0x32c)),'content':this[_0x525cb3(0x280)]['t'](_0x525cb3(0x3f8)),'type':_0x525cb3(0x3bf),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Un,'action':{'label':this[_0x525cb3(0x280)]['t'](_0x525cb3(0x388)),'onClick':_0x515802=>{const _0x4adc49=_0x525cb3;_0x515802[_0x4adc49(0x2f3)](),this['_retryConflictCacheClear'](_0x38c167,_0x486210);}}});}[_0x9941cc(0x233)](_0x2d0122,_0x44e572){const _0x2efbaa=_0x9941cc;let _0x1f9abc=_0x2d0122+':'+(_0x44e572??'');this[_0x2efbaa(0x27d)]['has'](_0x1f9abc)||(this[_0x2efbaa(0x27d)][_0x2efbaa(0x1f1)](_0x1f9abc),this[_0x2efbaa(0x2e4)](),this['_localCacheService']['clearOfflineData'](_0x2d0122,_0x44e572)[_0x2efbaa(0x375)](()=>window[_0x2efbaa(0x261)]['reload']())[_0x2efbaa(0x26f)](()=>this[_0x2efbaa(0x396)](_0x2d0122,_0x44e572))[_0x2efbaa(0x2f7)](()=>this[_0x2efbaa(0x27d)][_0x2efbaa(0x3c0)](_0x1f9abc)));}[_0x9941cc(0x459)](_0x409864){const _0x521a1e=_0x9941cc;var _0x385168;(_0x385168=this['_conflictNotification'])==null||_0x385168[_0x521a1e(0x1f9)](),this['_conflictNotification']=this[_0x521a1e(0x2ae)][_0x521a1e(0x361)](_0x409864);}};Wn=Y([J(0x0,_0x4664b0),J(0x1,_0x4acd2b),J(0x2,_0x5e7a64(_0x5e9140)),J(0x3,_0x3ba635),J(0x4,_0x23d9be),J(0x5,_0x5e7a64(_0x100652))],Wn);const Gn=_0x59bc43('uni.network.url-service');let Kn=class extends _0x26adc4{constructor(_0x143090,_0x1e3db2,_0x33d317,_0x31d00d){const _0x13d856=_0x9941cc;super(),this['_urlService']=_0x143090,this[_0x13d856(0x302)]=_0x1e3db2,this[_0x13d856(0x2c3)]=_0x33d317,this[_0x13d856(0x1de)]=_0x31d00d,this[_0x13d856(0x30a)]()[_0x13d856(0x26f)](_0x10cfc4=>this[_0x13d856(0x302)][_0x13d856(0x3bf)](_0x13d856(0x339),_0x10cfc4));}async[_0x9941cc(0x30a)](){const _0xf2055a=_0x9941cc;let _0xf822fa=this[_0xf2055a(0x331)][_0xf2055a(0x442)](_0xf2055a(0x246)),_0x4f658b=this[_0xf2055a(0x331)][_0xf2055a(0x442)]('type'),_0x305c34=this[_0xf2055a(0x331)][_0xf2055a(0x442)](_0xf2055a(0x30d));if(!_0xf822fa||!_0x4f658b){this[_0xf2055a(0x302)][_0xf2055a(0x28d)]('[CollaborationDataLoaderController]',_0xf2055a(0x423));return;}let _0x16dffb=await this[_0xf2055a(0x1de)][_0xf2055a(0x24f)](_0xf822fa,Number(_0x4f658b),_0x305c34);this[_0xf2055a(0x360)]||_0x16dffb&&_0x16dffb instanceof _0x569249&&await this[_0xf2055a(0x1e9)](_0x16dffb);}async[_0x9941cc(0x1e9)](_0xd9d1a5){const _0x71e995=_0x9941cc;await this[_0x71e995(0x33b)](_0xd9d1a5,!0x0),!this[_0x71e995(0x360)]&&(_0xd9d1a5['activeSheet$'][_0x71e995(0x1e3)](_0x4c8245(this[_0x71e995(0x1f3)]))[_0x71e995(0x44c)](_0x1850c6=>{const _0x273730=_0x71e995;_0x1850c6&&this[_0x273730(0x1f5)](_0x1850c6);}),this['_urlService'][_0x71e995(0x3ce)][_0x71e995(0x1e3)](_0x4c8245(this[_0x71e995(0x1f3)]))[_0x71e995(0x44c)](()=>{const _0x577f62=_0x71e995;this['_updateSubUnitFromURLParams'](_0xd9d1a5)[_0x577f62(0x26f)](_0x39cb2b=>this[_0x577f62(0x302)]['error'](_0x577f62(0x339),_0x39cb2b));}));}[_0x9941cc(0x1f5)](_0x3d31e4,_0x240636=!0x1){const _0x1a401a=_0x9941cc;let _0x1a88b0=this[_0x1a401a(0x331)][_0x1a401a(0x442)](_0x1a401a(0x30d));_0x3d31e4[_0x1a401a(0x382)]()!==_0x1a88b0&&this[_0x1a401a(0x331)][_0x1a401a(0x3dd)]('subunit',_0x3d31e4[_0x1a401a(0x382)](),_0x240636);}async['_updateSubUnitFromURLParams'](_0x91be19,_0x400054=!0x1){const _0x428115=_0x9941cc;var _0xd5dec;let _0x1de031=this[_0x428115(0x331)][_0x428115(0x442)](_0x428115(0x30d));if(!_0x1de031||!_0x91be19['getSheetBySheetId'](_0x1de031)){let _0x132a83=_0x91be19[_0x428115(0x3a7)]()[0x0],_0x1d3830=_0x91be19[_0x428115(0x418)](_0x132a83);if(!_0x1d3830||(this['_updateURLWithCurrentState'](_0x1d3830,!0x0),this[_0x428115(0x360)]))return;await this['_commandService'][_0x428115(0x203)](_0x4c5c95['id'],{'unitId':_0x91be19[_0x428115(0x29c)](),'subUnitId':_0x132a83});}else(_0x400054||((_0xd5dec=_0x91be19[_0x428115(0x28e)]())==null?void 0x0:_0xd5dec[_0x428115(0x382)]())!==_0x1de031)&&await this['_commandService'][_0x428115(0x203)](_0x4c5c95['id'],{'unitId':_0x91be19[_0x428115(0x29c)](),'subUnitId':_0x1de031});}};Kn=Y([J(0x0,Gn),J(0x1,_0x54abc2),J(0x2,_0x309b58),J(0x3,_0x5e7a64(_0x3e7d68))],Kn);let qn=class{constructor(_0xdd3236,_0x408ab6){const _0x3dce87=_0x9941cc;this[_0x3dce87(0x3c3)]=_0xdd3236,this['_renderManagerService']=_0x408ab6;}[_0x9941cc(0x276)](_0x3b82ea){const _0x3b2d9a=_0x9941cc;this[_0x3b2d9a(0x332)](_0x3b82ea),this[_0x3b2d9a(0x236)](_0x3b82ea);}['transformRemoteChangeset'](_0x50db1f){const _0x189571=_0x9941cc;let {unitID:_0x41418b}=_0x50db1f,{redoCache:_0x390fe0}=this['_renderManagerService'][_0x189571(0x2b9)](_0x41418b)[_0x189571(0x45a)](_0x274379)[_0x189571(0x240)]();if(_0x390fe0[_0x189571(0x269)]===0x0)return _0x50db1f;let _0x5be243=_0x3bef57[_0x189571(0x3e3)](_0x50db1f[_0x189571(0x2e6)][0x0]);for(let _0x44c51f=0x0;_0x44c51f<_0x390fe0[_0x189571(0x269)];_0x44c51f++){let _0x37deb0={'id':_0x189571(0x2c6),'params':{..._0x390fe0[_0x44c51f]}},_0x4cb749=this['_transformService'][_0x189571(0x304)](_0x5be243,_0x37deb0,!0x1);if(_0x1cec04(_0x4cb749))throw _0x4cb749[_0x189571(0x3bf)];_0x5be243=_0x4cb749[_0x189571(0x242)];}return{..._0x3bef57['deepClone'](_0x50db1f),'mutations':[_0x5be243]};}[_0x9941cc(0x332)](_0x5e6424){const _0x4b19aa=_0x9941cc;let {unitID:_0x400ede}=_0x5e6424,_0x4b1538=this[_0x4b19aa(0x2b1)][_0x4b19aa(0x2b9)](_0x400ede)[_0x4b19aa(0x45a)](_0x274379),{undoCache:_0x4cbbbe,redoCache:_0x7ce25f}=_0x4b1538[_0x4b19aa(0x240)]();if(_0x4cbbbe['length']===0x0||_0x7ce25f[_0x4b19aa(0x269)]===0x0)return;let _0x475bdf=[],_0x288108=[],_0x77518e=_0x3bef57[_0x4b19aa(0x3e3)](_0x5e6424['mutations'][0x0]),_0x560c8b=_0x3bef57[_0x4b19aa(0x3e3)](_0x5e6424[_0x4b19aa(0x2e6)][0x0]);for(let _0x1fbe10=_0x4cbbbe[_0x4b19aa(0x269)]-0x1;_0x1fbe10>=0x0;_0x1fbe10--){let _0x1b377d={'id':'doc.mutation.rich-text-editing','params':{..._0x4cbbbe[_0x1fbe10]}},_0x17bf53={'id':_0x4b19aa(0x2c6),'params':{..._0x7ce25f[_0x1fbe10]}},_0x55b41a=this[_0x4b19aa(0x3c3)]['transformMutation'](_0x77518e,_0x1b377d,!0x1),_0x26cec6=this[_0x4b19aa(0x3c3)]['transformMutation'](_0x560c8b,_0x17bf53,!0x1);if(_0x1cec04(_0x55b41a))throw _0x55b41a[_0x4b19aa(0x3bf)];if(_0x1cec04(_0x26cec6))throw _0x26cec6[_0x4b19aa(0x3bf)];_0x475bdf[_0x4b19aa(0x2a0)](_0x55b41a[_0x4b19aa(0x323)][_0x4b19aa(0x435)]),_0x288108[_0x4b19aa(0x2a0)](_0x26cec6[_0x4b19aa(0x323)]['params']),_0x77518e=_0x55b41a[_0x4b19aa(0x242)],_0x560c8b=_0x26cec6['m1Prime'];}_0x4b1538[_0x4b19aa(0x2fe)]({'undoCache':_0x475bdf,'redoCache':_0x288108});}[_0x9941cc(0x236)](_0x3b67c4){const _0x1f5fc5=_0x9941cc;let {unitID:_0x6844b0}=_0x3b67c4,_0x860337=this[_0x1f5fc5(0x2b1)][_0x1f5fc5(0x2b9)](_0x6844b0)['with'](_0x274379),_0x4a4b9d=_0x860337['getActiveRange']();if(_0x4a4b9d==null)return;let _0x34bf2a=[{'id':_0x1f5fc5(0x2c6),'params':{'unitId':_0x3b67c4[_0x1f5fc5(0x231)],'actions':null,'textRanges':[_0x4a4b9d]}}],_0x4a5808=this[_0x1f5fc5(0x3c3)][_0x1f5fc5(0x25a)](_0x3b67c4,_0x34bf2a);if(!_0x302eb5(_0x4a5808))throw _0x4a5808[_0x1f5fc5(0x3bf)];let _0x55b47f=_0x4a5808[_0x1f5fc5(0x323)][0x0][_0x1f5fc5(0x435)]['textRanges'];Array[_0x1f5fc5(0x2ad)](_0x55b47f)&&_0x55b47f[_0x1f5fc5(0x269)]&&_0x860337[_0x1f5fc5(0x2e3)](_0x55b47f[0x0]);}};qn=Y([J(0x0,_0x1a08d7),J(0x1,_0x20ed56)],qn);let Jn=class{constructor(_0x43696e,_0x45b99f,_0x3aaf9a){const _0x2fe1aa=_0x9941cc;this[_0x2fe1aa(0x2f6)]=_0x43696e,this[_0x2fe1aa(0x3c3)]=_0x45b99f,this['_docStateChangeManagerService']=_0x3aaf9a;}[_0x9941cc(0x206)](_0x4f7b5f){const _0x20bc5f=_0x9941cc;this[_0x20bc5f(0x411)](_0x4f7b5f);}[_0x9941cc(0x2aa)](_0x5a1d4f){const _0x312182=_0x9941cc;let {unitID:_0x2150a6}=_0x5a1d4f,{collaboration:_0x4cb5f2}=this[_0x312182(0x317)][_0x312182(0x403)](_0x2150a6);if(_0x4cb5f2['length']===0x0)return _0x5a1d4f;let _0x26ef0c=_0x3bef57[_0x312182(0x3e3)](_0x5a1d4f[_0x312182(0x2e6)][0x0]);for(let _0x619d96=0x0;_0x619d96<_0x4cb5f2[_0x312182(0x269)];_0x619d96++){let _0x412f07={'id':_0x312182(0x2c6),'params':{'unitId':_0x4cb5f2[_0x619d96][_0x312182(0x43e)],..._0x4cb5f2[_0x619d96][_0x312182(0x25c)]}},_0x5a52ac=this[_0x312182(0x3c3)][_0x312182(0x304)](_0x26ef0c,_0x412f07,!0x1);if(_0x1cec04(_0x5a52ac))throw _0x5a52ac[_0x312182(0x3bf)];_0x26ef0c=_0x5a52ac[_0x312182(0x242)];}return{..._0x3bef57['deepClone'](_0x5a1d4f),'mutations':[_0x26ef0c]};}[_0x9941cc(0x411)](_0x2eaab1){const _0x2635a0=_0x9941cc;let {unitID:_0x18b5f1}=_0x2eaab1,{history:_0x36a7de,collaboration:_0x28d900}=this[_0x2635a0(0x317)]['getStateCache'](_0x18b5f1);if(_0x36a7de[_0x2635a0(0x269)]===0x0&&_0x28d900[_0x2635a0(0x269)]===0x0)return;let _0x920eee=[],_0x19e0d6=[],_0x4d5221=_0x3bef57[_0x2635a0(0x3e3)](_0x2eaab1[_0x2635a0(0x2e6)][0x0]),_0x28422c=_0x3bef57[_0x2635a0(0x3e3)](_0x2eaab1[_0x2635a0(0x2e6)][0x0]);for(let _0x2efc8a=_0x36a7de[_0x2635a0(0x269)]-0x1;_0x2efc8a>=0x0;_0x2efc8a--){let _0x2b78f9={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x36a7de[_0x2efc8a][_0x2635a0(0x43e)],..._0x36a7de[_0x2efc8a]['undoState']}},_0x32a055={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x36a7de[_0x2efc8a]['unitId'],..._0x36a7de[_0x2efc8a][_0x2635a0(0x25c)]}},_0x12ec2d=this[_0x2635a0(0x3c3)][_0x2635a0(0x304)](_0x4d5221,_0x2b78f9,!0x1),_0x54d324=this[_0x2635a0(0x3c3)]['transformMutation'](_0x28422c,_0x32a055,!0x1);if(_0x1cec04(_0x12ec2d))throw _0x12ec2d[_0x2635a0(0x3bf)];if(_0x1cec04(_0x54d324))throw _0x54d324[_0x2635a0(0x3bf)];_0x920eee['unshift']({..._0x36a7de[_0x2efc8a],'undoState':_0x12ec2d[_0x2635a0(0x323)][_0x2635a0(0x435)],'redoState':_0x54d324[_0x2635a0(0x323)]['params']}),_0x4d5221=_0x12ec2d['m1Prime'],_0x28422c=_0x54d324[_0x2635a0(0x242)];}_0x4d5221=_0x3bef57[_0x2635a0(0x3e3)](_0x2eaab1['mutations'][0x0]),_0x28422c=_0x3bef57['deepClone'](_0x2eaab1[_0x2635a0(0x2e6)][0x0]);for(let _0x5da586=_0x28d900[_0x2635a0(0x269)]-0x1;_0x5da586>=0x0;_0x5da586--){let _0x4ca9be={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x28d900[_0x5da586][_0x2635a0(0x43e)],..._0x28d900[_0x5da586][_0x2635a0(0x376)]}},_0x7afa7b={'id':_0x2635a0(0x2c6),'params':{'unitId':_0x28d900[_0x5da586][_0x2635a0(0x43e)],..._0x28d900[_0x5da586]['redoState']}},_0x346544=this[_0x2635a0(0x3c3)][_0x2635a0(0x304)](_0x4d5221,_0x4ca9be,!0x1),_0x273262=this[_0x2635a0(0x3c3)][_0x2635a0(0x304)](_0x28422c,_0x7afa7b,!0x1);if(_0x1cec04(_0x346544))throw _0x346544['error'];if(_0x1cec04(_0x273262))throw _0x273262['error'];_0x19e0d6[_0x2635a0(0x2a0)]({..._0x28d900[_0x5da586],'undoState':_0x346544[_0x2635a0(0x323)][_0x2635a0(0x435)],'redoState':_0x273262['m2Prime'][_0x2635a0(0x435)]}),_0x4d5221=_0x346544[_0x2635a0(0x242)],_0x28422c=_0x273262[_0x2635a0(0x242)];}this[_0x2635a0(0x317)][_0x2635a0(0x284)](_0x18b5f1,{'history':_0x920eee,'collaboration':_0x19e0d6});}};Jn=Y([J(0x0,_0x5e7a64(_0x3a52d9)),J(0x1,_0x1a08d7),J(0x2,_0x5e7a64(_0x6f388c))],Jn);let Yn=class{constructor(_0x380871,_0x5d7214){const _0x2b4318=_0x9941cc;this[_0x2b4318(0x2ec)]=_0x380871,this[_0x2b4318(0x3c3)]=_0x5d7214;}[_0x9941cc(0x2ee)](_0x5542b5){const _0x5275b5=_0x9941cc;var _0x4d8b62;let _0xf30c54=this[_0x5275b5(0x2ec)][_0x5275b5(0x243)]()??[],_0x1ce34f=this[_0x5275b5(0x2ec)]['getSelectionInfo']();if(_0xf30c54[_0x5275b5(0x269)]===0x0||_0x1ce34f==null)return null;let _0x3a815f=_0x5542b5[_0x5275b5(0x231)],_0x1a3a19=[{'id':_0x5275b5(0x2c6),'params':{'unitId':_0x3a815f,'actions':null,'textRanges':_0xf30c54}}],_0x1756c7=this[_0x5275b5(0x3c3)][_0x5275b5(0x25a)](_0x5542b5,_0x1a3a19);if(!_0x302eb5(_0x1756c7))throw _0x1756c7[_0x5275b5(0x3bf)];let _0x489d49=(_0x4d8b62=_0x1756c7['m2Prime'][0x0])==null?void 0x0:_0x4d8b62[_0x5275b5(0x435)],_0x4c6d73=_0x489d49&&typeof _0x489d49==_0x5275b5(0x3c9)&&_0x5275b5(0x244)in _0x489d49?_0x489d49[_0x5275b5(0x244)]:null;if(!Qn(_0x4c6d73))return null;let _0x3e68d9=Xn(_0x5542b5['mutations'][_0x5275b5(0x22f)](_0xd8b939=>$n(_0xd8b939[_0x5275b5(0x435)]))?_0x4c6d73[_0x5275b5(0x377)](_0x395f20=>!(_0x5275b5(0x265)in _0x395f20)):_0x4c6d73,{..._0x1ce34f,'options':_0x1ce34f[_0x5275b5(0x405)]?{..._0x1ce34f[_0x5275b5(0x405)],'wholeDocument':!0x1}:void 0x0}),_0x66068d={'unitId':_0x3a815f,'subUnitId':_0x3a815f};this[_0x5275b5(0x2ec)][_0x5275b5(0x383)](_0x3e68d9,_0x66068d);let _0x4b0ac5=!0x0;return{'commit':()=>{_0x4b0ac5=!0x1;},'rollback':()=>{const _0x1835a4=_0x5275b5;_0x4b0ac5&&(_0x4b0ac5=!0x1,this[_0x1835a4(0x2ec)][_0x1835a4(0x383)](_0x1ce34f,_0x66068d));}};}};Yn=Y([J(0x0,_0x5e7a64(_0x5eb373)),J(0x1,_0x1a08d7)],Yn);function Xn(_0x50ff88,_0x420170){const _0x1f6633=_0x9941cc;let _0x168b1d=[],_0x345edb=[];for(let _0x2a8c77 of _0x50ff88)Zn(_0x2a8c77)?_0x345edb['push'](_0x2a8c77):_0x168b1d[_0x1f6633(0x2d4)](_0x2a8c77);return{..._0x420170,'textRanges':_0x168b1d,'rectRanges':_0x345edb};}function Zn(_0x26d80e){return'tableId'in _0x26d80e;}function Qn(_0x37192d){const _0x5487d7=_0x9941cc;return Array['isArray'](_0x37192d)&&_0x37192d[_0x5487d7(0x2ab)](_0x3ac848=>typeof _0x3ac848==_0x5487d7(0x3c9)&&!!_0x3ac848&&_0x5487d7(0x431)in _0x3ac848&&'endOffset'in _0x3ac848);}function $n(_0x41fe0e){const _0xc8d173=_0x9941cc;return _0x41fe0e===_0xc8d173(0x43b)?!0x0:Array[_0xc8d173(0x2ad)](_0x41fe0e)?_0x41fe0e['some'](_0x1e8256=>$n(_0x1e8256)):!_0x41fe0e||typeof _0x41fe0e!=_0xc8d173(0x3c9)?!0x1:Object[_0xc8d173(0x3ca)](_0x41fe0e)[_0xc8d173(0x22f)](_0xad0927=>$n(_0xad0927));}let er=class extends _0x4ade65{constructor(_0x314bb8,_0x44751e,_0x45e057,_0x4c21db,_0x375ae3,_0x5008df,_0x50d79b){const _0x18edef=_0x9941cc;super(),this[_0x18edef(0x249)]=_0x314bb8,this['_docTransformIMECacheService']=_0x44751e,this[_0x18edef(0x40c)]=_0x45e057,this[_0x18edef(0x3d8)]=_0x4c21db,this[_0x18edef(0x322)]=_0x375ae3,this[_0x18edef(0x44d)]=_0x5008df,this['_localeService']=_0x50d79b,q(this,_0x18edef(0x254),new _0x4693d8(_0x12e22e[_0x18edef(0x279)])),this[_0x18edef(0x28c)]();}['_initEntityListener'](){const _0x49e767=_0x9941cc;this[_0x49e767(0x366)](this[_0x49e767(0x249)][_0x49e767(0x43a)]['subscribe'](_0x4c2c11=>{const _0x51ca5a=_0x49e767;_0x4c2c11 instanceof _0x2406af&&_0x4c2c11[_0x51ca5a(0x402)]({'onTransformIME':_0x516852=>this[_0x51ca5a(0x1eb)][_0x51ca5a(0x276)](_0x516852),'onTransformState':_0x692e4f=>this[_0x51ca5a(0x40c)][_0x51ca5a(0x206)](_0x692e4f),'onPrepareTransformSelections':_0x9609bc=>this[_0x51ca5a(0x3d8)][_0x51ca5a(0x2ee)](_0x9609bc),'onSyncEditingCollabCursor':_0x5aad9e=>this['_docSyncEditingCollabCursorService'][_0x51ca5a(0x416)](_0x5aad9e),'onTransformRemoteChangesetByIMECache':_0x335298=>this[_0x51ca5a(0x1eb)][_0x51ca5a(0x2aa)](_0x335298),'onTransformRemoteChangesetByStateCache':_0x262bd3=>this[_0x51ca5a(0x40c)][_0x51ca5a(0x2aa)](_0x262bd3)});}));}};er=Y([J(0x0,_0x5e7a64(_0xa6a463)),J(0x1,_0x5e7a64(qn)),J(0x2,_0x5e7a64(Jn)),J(0x3,_0x5e7a64(Yn)),J(0x4,_0x5e7a64(Cn)),J(0x5,_0x3ba635),J(0x6,_0x5e7a64(_0x100652))],er);let tr=class extends _0x4ade65{constructor(_0x1527c6,_0x5c3b93,_0x3398a7,_0x25e938){const _0x4d5216=_0x9941cc;super(),this['_injector']=_0x1527c6,this[_0x4d5216(0x2d7)]=_0x5c3b93,this['_logService']=_0x3398a7,this[_0x4d5216(0x3ab)]=_0x25e938,q(this,'_memberID',void 0x0),this[_0x4d5216(0x30a)]();}['_init'](){const _0x2788e9=_0x9941cc;this['_initWindowErrorListener'](),this[_0x2788e9(0x2f8)](),this[_0x2788e9(0x1f4)](),this[_0x2788e9(0x39e)]();}[_0x9941cc(0x39e)](){const _0xb7f2e9=_0x9941cc;this['disposeWithMe'](this[_0xb7f2e9(0x3ab)]['socket$'][_0xb7f2e9(0x44c)](_0xc8dce1=>{const _0x54b7c0=_0xb7f2e9;this[_0x54b7c0(0x348)]=_0xc8dce1==null?void 0x0:_0xc8dce1[_0x54b7c0(0x1ef)];}));}[_0x9941cc(0x33f)](){const _0x57f324=_0x9941cc;let _0x96d7ec=_0x223e97=>{const _0x1641c6=_0x54b3;var _0x2288b1;this[_0x1641c6(0x1e2)](_0x1641c6(0x3bf),_0x1641c6(0x389)+_0x223e97[_0x1641c6(0x372)]+_0x1641c6(0x2c4)+_0x223e97[_0x1641c6(0x441)]+':'+_0x223e97['lineno']+':'+_0x223e97[_0x1641c6(0x379)]+'\x0a'+(((_0x2288b1=_0x223e97['error'])==null?void 0x0:_0x2288b1['stack'])||''));};window[_0x57f324(0x44f)](_0x57f324(0x3bf),_0x96d7ec),this['disposeWithMe'](()=>{const _0x377bad=_0x57f324;window[_0x377bad(0x2e2)](_0x377bad(0x3bf),_0x96d7ec);});}[_0x9941cc(0x2f8)](){const _0x1681a8=_0x9941cc;let _0x680c73=_0x567359=>{const _0x35d3dd=_0x54b3;this[_0x35d3dd(0x1e2)]('error',_0x35d3dd(0x2e1)+_0x567359[_0x35d3dd(0x41f)]);};window[_0x1681a8(0x44f)]('unhandledrejection',_0x680c73),this[_0x1681a8(0x366)](()=>{const _0x7e4226=_0x1681a8;window[_0x7e4226(0x2e2)](_0x7e4226(0x321),_0x680c73);});}[_0x9941cc(0x1f4)](){const _0x2edbb4=_0x9941cc;let _0x17fd6f=this[_0x2edbb4(0x302)][_0x2edbb4(0x3bf)][_0x2edbb4(0x2a6)](this[_0x2edbb4(0x302)]);this[_0x2edbb4(0x302)][_0x2edbb4(0x3bf)]=(..._0x41a854)=>{const _0x563784=_0x2edbb4;let _0x2c8854=_0x41a854['map'](_0xd4851b=>_0xd4851b instanceof Error?_0xd4851b[_0x563784(0x372)]+'\x0a'+_0xd4851b[_0x563784(0x32a)]:String(_0xd4851b))[_0x563784(0x267)]('\x20');this[_0x563784(0x1e2)]('error','[LogService\x20Error]:\x20'+_0x2c8854),_0x17fd6f(..._0x41a854);},this[_0x2edbb4(0x366)](()=>{const _0x4b9a0b=_0x2edbb4;this[_0x4b9a0b(0x302)][_0x4b9a0b(0x3bf)]=_0x17fd6f;});}[_0x9941cc(0x1e2)](_0x19d417,_0x5c2303){const _0x1c8040=_0x9941cc;try{let _0x292574={'userId':this['_memberID'],'logLabel':_0x19d417,'content':_0x5c2303};this[_0x1c8040(0x2d7)]['post'](_0x1c8040(0x333),{'body':_0x292574})[_0x1c8040(0x26f)](()=>{});}catch{}}};tr=Y([J(0x0,_0x5e7a64(_0x3a52d9)),J(0x1,_0x5e7a64(_0x2f3aec)),J(0x2,_0x54abc2),J(0x3,_0x5e7a64(_0x48e021))],tr);function nr({state$:_0x564518}){const _0x518ffb=_0x9941cc;let _0x523e2f=_0x5d8c77(_0x564518,null,!0x0);return _0x523e2f?_0x233448('div',{'data-u-comp':_0x518ffb(0x3b9),'role':'alert','className':'univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','children':[_0xc268f7(_0x4eadf0,{'className':_0x518ffb(0x340)}),_0xc268f7(_0x518ffb(0x250),{'children':_0x523e2f[_0x518ffb(0x291)]}),_0xc268f7(_0x352c6,{'size':_0x518ffb(0x437),'variant':'primary','onClick':()=>window[_0x518ffb(0x261)][_0x518ffb(0x275)](),'children':_0x523e2f[_0x518ffb(0x3a5)]})]}):null;}const rr=_0x9941cc(0x2be);let ir=class extends _0x4ade65{constructor(_0xd8684b,_0x34f1bd,_0x41144f,_0x5e039d,_0x27123c,_0xbcb3d0){const _0x3a6252=_0x9941cc;super(),this[_0x3a6252(0x3ac)]=_0xd8684b,this[_0x3a6252(0x44d)]=_0x34f1bd,this['_localeService']=_0x41144f,this[_0x3a6252(0x2f6)]=_0x5e039d,this['_urlService']=_0xbcb3d0,q(this,_0x3a6252(0x2db),new _0x4693d8(null)),q(this,_0x3a6252(0x3de),new Set()),q(this,_0x3a6252(0x226),new Map()),q(this,_0x3a6252(0x433),new Map()),q(this,_0x3a6252(0x22b),this[_0x3a6252(0x2db)][_0x3a6252(0x221)]());let _0x3b29f6=()=>_0x5eb423(nr,{'state$':this[_0x3a6252(0x22b)]});this[_0x3a6252(0x366)](_0x27123c[_0x3a6252(0x29a)](_0x3e468e[_0x3a6252(0x457)],()=>_0x1685d6(_0x3b29f6,this[_0x3a6252(0x2f6)]))),this[_0x3a6252(0x366)](this[_0x3a6252(0x3ac)][_0x3a6252(0x3cd)][_0x3a6252(0x44c)](_0x102df2=>{const _0x427afb=_0x3a6252;this[_0x427afb(0x433)]=_0x102df2,_0x102df2[_0x427afb(0x285)](_0x50e886=>this['_updateMessage'](_0x50e886));})),this[_0x3a6252(0x366)](this[_0x3a6252(0x331)]['urlChange$'][_0x3a6252(0x44c)](()=>{const _0x137187=_0x3a6252;this[_0x137187(0x433)][_0x137187(0x285)](_0x27f776=>this[_0x137187(0x449)](_0x27f776));}));}[_0x9941cc(0x1f9)](){const _0x10f99c=_0x9941cc;this[_0x10f99c(0x3de)][_0x10f99c(0x285)](_0x4c7fd3=>this[_0x10f99c(0x44d)][_0x10f99c(0x2f1)](_0x4c7fd3)),this[_0x10f99c(0x3de)][_0x10f99c(0x26d)](),this[_0x10f99c(0x226)][_0x10f99c(0x285)](({timeoutId:_0x52ec2f})=>clearTimeout(_0x52ec2f)),this[_0x10f99c(0x226)][_0x10f99c(0x26d)](),this[_0x10f99c(0x2db)][_0x10f99c(0x303)](),super[_0x10f99c(0x1f9)]();}[_0x9941cc(0x449)](_0x21a253){const _0x4b1ac8=_0x9941cc;let _0x3b66e4=''+rr+_0x21a253[_0x4b1ac8(0x43e)];_0x21a253[_0x4b1ac8(0x3af)]===_0x4bc669[_0x4b1ac8(0x1e8)]?(this[_0x4b1ac8(0x363)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x373)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x2f1)](_0x3b66e4),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4)):this['_isVisibleUnit'](_0x21a253[_0x4b1ac8(0x43e)])?_0x21a253[_0x4b1ac8(0x3af)]===_0x4bc669['ERROR']?(this[_0x4b1ac8(0x363)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x373)](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x361)]({'id':_0x3b66e4,'type':_0x475928[_0x4b1ac8(0x400)],'content':this[_0x4b1ac8(0x280)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4)):_0x21a253[_0x4b1ac8(0x3af)]!==_0x4bc669['LOADING_BLOCKS']||_0x21a253[_0x4b1ac8(0x395)]<=0xa?(this['_clearBlockProgressWatch'](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x2f1)](_0x3b66e4),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4)):this['_watchBlockProgress'](_0x21a253)||(this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x361)]({'id':_0x3b66e4,'type':_0x475928['Loading'],'duration':0x1/0x0,'content':this[_0x4b1ac8(0x280)]['t'](_0x4b1ac8(0x367))+'\x20'+_0x21a253[_0x4b1ac8(0x256)]+'/'+_0x21a253[_0x4b1ac8(0x395)]}),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x1f1)](_0x3b66e4)):(this[_0x4b1ac8(0x363)](_0x21a253[_0x4b1ac8(0x43e)]),this['_clearTimeoutState'](_0x21a253[_0x4b1ac8(0x43e)]),this[_0x4b1ac8(0x44d)][_0x4b1ac8(0x2f1)](_0x3b66e4),this[_0x4b1ac8(0x3de)][_0x4b1ac8(0x3c0)](_0x3b66e4));}['_watchBlockProgress'](_0x227bba){const _0x5ad7a8=_0x9941cc;let _0xc6aeb0=this[_0x5ad7a8(0x226)]['get'](_0x227bba['unitId']);if((_0xc6aeb0==null?void 0x0:_0xc6aeb0[_0x5ad7a8(0x256)])===_0x227bba[_0x5ad7a8(0x256)])return _0xc6aeb0[_0x5ad7a8(0x427)];this['_clearBlockProgressWatch'](_0x227bba[_0x5ad7a8(0x43e)]);let _0x37f34d=setTimeout(()=>{const _0x402812=_0x5ad7a8;let _0x3124b3=this[_0x402812(0x226)]['get'](_0x227bba[_0x402812(0x43e)]);if(!_0x3124b3||_0x3124b3[_0x402812(0x29e)]!==_0x37f34d)return;_0x3124b3[_0x402812(0x427)]=!0x0;let _0x5cd927=''+rr+_0x227bba[_0x402812(0x43e)];this['_messageService'][_0x402812(0x2f1)](_0x5cd927),this[_0x402812(0x3de)]['delete'](_0x5cd927),this['_timeoutState$'][_0x402812(0x31a)]({'unitId':_0x227bba[_0x402812(0x43e)],'content':this[_0x402812(0x280)]['t'](_0x402812(0x23a),String(_0x227bba['loadedBlocks']),String(_0x227bba[_0x402812(0x395)])),'refreshLabel':this['_localeService']['t'](_0x402812(0x359))});},0xea60);return this[_0x5ad7a8(0x226)][_0x5ad7a8(0x3d4)](_0x227bba[_0x5ad7a8(0x43e)],{'loadedBlocks':_0x227bba[_0x5ad7a8(0x256)],'timedOut':!0x1,'timeoutId':_0x37f34d}),!0x1;}[_0x9941cc(0x363)](_0x182b52){const _0x5b2c63=_0x9941cc;let _0x3555c0=this[_0x5b2c63(0x226)][_0x5b2c63(0x3a2)](_0x182b52);_0x3555c0&&(clearTimeout(_0x3555c0[_0x5b2c63(0x29e)]),this[_0x5b2c63(0x226)][_0x5b2c63(0x3c0)](_0x182b52),this[_0x5b2c63(0x373)](_0x182b52));}['_clearTimeoutState'](_0x51f65d){const _0x4e1c97=_0x9941cc;var _0xa6ac0f;((_0xa6ac0f=this[_0x4e1c97(0x2db)][_0x4e1c97(0x26b)])==null?void 0x0:_0xa6ac0f[_0x4e1c97(0x43e)])===_0x51f65d&&this[_0x4e1c97(0x2db)]['next'](null);}['_isVisibleUnit'](_0x438e43){const _0x3901cf=_0x9941cc;let _0x244ebc=this[_0x3901cf(0x331)][_0x3901cf(0x442)](_0x3901cf(0x246));return!_0x244ebc||_0x244ebc===_0x438e43;}};ir=Y([J(0x0,_0x5e7a64(_0x311f12)),J(0x1,_0x3ba635),J(0x2,_0x5e7a64(_0x100652)),J(0x3,_0x5e7a64(_0x3a52d9)),J(0x4,_0x3b6d8f),J(0x5,Gn)],ir);let ar=class extends _0x4ade65{constructor(_0x4fc825,_0x241cd0,_0x26527e,_0x3ba0e1,_0x2758d2){const _0x3925e0=_0x9941cc;var _0x229b68;super(),this[_0x3925e0(0x36d)]=_0x4fc825,this['_localStorageService']=_0x241cd0,this['_revisionService']=_0x26527e,this[_0x3925e0(0x302)]=_0x3ba0e1,this[_0x3925e0(0x1f0)]=_0x2758d2,q(this,_0x3925e0(0x24a),new Map()),q(this,_0x3925e0(0x223),new Map()),q(this,'_activeSaveTaskMap',new Map()),q(this,'_disabled',!0x1),this[_0x3925e0(0x31c)]=!((_0x229b68=this['_configService'][_0x3925e0(0x3f3)](_0x323108))!=null&&_0x229b68[_0x3925e0(0x387)]);}[_0x9941cc(0x446)](){const _0x5b821b=_0x9941cc;this[_0x5b821b(0x31c)]=!0x0;}['enableLocalCache'](){const _0x2958d6=_0x9941cc;this[_0x2958d6(0x31c)]=!0x1;}get[_0x9941cc(0x268)](){const _0x3a0868=_0x9941cc;let _0x47a58d=new Map(this[_0x3a0868(0x223)]);return this[_0x3a0868(0x42c)][_0x3a0868(0x285)]((_0x12e2f4,_0x1dbf06)=>{const _0x55b2b6=_0x3a0868;_0x47a58d[_0x55b2b6(0x2bf)](_0x1dbf06)||_0x47a58d[_0x55b2b6(0x3d4)](_0x1dbf06,0x0);}),_0x47a58d;}[_0x9941cc(0x1f9)](){const _0x4b275f=_0x9941cc;this[_0x4b275f(0x360)]||(super[_0x4b275f(0x1f9)](),this[_0x4b275f(0x31c)]=!0x0,this[_0x4b275f(0x3fa)]()[_0x4b275f(0x26f)](_0xa1e442=>this[_0x4b275f(0x302)][_0x4b275f(0x3bf)](_0xa1e442)));}async[_0x9941cc(0x41c)](_0x39840e,_0x2c2b6a){const _0x28e50c=_0x9941cc;if(this[_0x28e50c(0x31c)])return null;let _0x4fb42f=this[_0x28e50c(0x23f)](_0x2c2b6a),_0x278d5a=await this[_0x28e50c(0x235)]['getItem'](_0x5c47ad(_0x39840e,_0x4fb42f));return(_0x278d5a==null?void 0x0:_0x278d5a[_0x28e50c(0x231)])===_0x39840e&&this[_0x28e50c(0x327)](_0x278d5a[_0x28e50c(0x241)])===_0x4fb42f?_0x278d5a:null;}async[_0x9941cc(0x1e1)](_0x28fd69,_0x1b8b9d,_0x318b77){const _0x223ec4=_0x9941cc;let _0x363f31=this[_0x223ec4(0x23f)](_0x318b77),_0x37a4b2=_0x5c47ad(_0x28fd69,_0x363f31),_0xb9e427=this[_0x223ec4(0x235)][_0x223ec4(0x283)](_0x37a4b2,{..._0x1b8b9d,'unitID':_0x28fd69,'userId':_0x363f31});return this[_0x223ec4(0x364)](_0x37a4b2,_0xb9e427),!!await _0xb9e427;}async[_0x9941cc(0x311)](_0x27f14f,_0x5e7062,_0x57e564){const _0x4f53f8=_0x9941cc;let _0x45989d=this[_0x4f53f8(0x23f)](_0x57e564),_0x825b61=_0x5c47ad(_0x27f14f,_0x45989d),_0x1673bf=this['_cachedData']['get'](_0x825b61)??await this[_0x4f53f8(0x235)]['getItem'](_0x825b61);if(!_0x1673bf||this[_0x4f53f8(0x327)](_0x1673bf[_0x4f53f8(0x241)])!==_0x45989d||_0x1673bf[_0x4f53f8(0x231)]!==_0x27f14f)return;let _0x22772d=Date['now'](),_0x14ffae=new Date(_0x22772d)[_0x4f53f8(0x329)]();await this['_localStorageService']['setItem'](_0x825b61+_0x4f53f8(0x2af)+_0x22772d,{'reason':_0x5e7062,'createdAt':_0x14ffae,'data':_0x1673bf});}async[_0x9941cc(0x374)](_0x2c2c3c,_0x32b969){const _0x31d882=_0x9941cc;let _0x369df5=this[_0x31d882(0x23f)](_0x32b969),_0x3c4441=_0x5c47ad(_0x2c2c3c,_0x369df5),_0x384e94=this[_0x31d882(0x223)][_0x31d882(0x3a2)](_0x3c4441);_0x384e94!==void 0x0&&(window[_0x31d882(0x438)](_0x384e94),this[_0x31d882(0x223)][_0x31d882(0x3c0)](_0x3c4441));let _0x4b773c=this['_activeSaveTaskMap']['get'](_0x3c4441);_0x4b773c&&await Promise[_0x31d882(0x3fd)](_0x4b773c),this[_0x31d882(0x24a)][_0x31d882(0x3c0)](_0x3c4441),await this['_localStorageService']['removeItem'](_0x3c4441);}['updateOfflineData'](_0x5467a1,_0x255c46,_0xf38a61,_0x34c32d,_0x22d29d){const _0x1b92d0=_0x9941cc;if(this[_0x1b92d0(0x360)])return;let _0x421660=this[_0x1b92d0(0x23f)](_0x22d29d),_0x429db0=_0x5c47ad(_0x5467a1,_0x421660),_0x1cdcd0=this['_revisionService'][_0x1b92d0(0x3c4)](_0x5467a1);this[_0x1b92d0(0x24a)][_0x1b92d0(0x3d4)](_0x429db0,{'unitID':_0x5467a1,'userId':_0x421660,'type':_0x255c46,'awaitingChangeset':_0xf38a61,'mutations':_0x34c32d,'rev':_0x1cdcd0}),this[_0x1b92d0(0x223)][_0x1b92d0(0x2bf)](_0x429db0)||this[_0x1b92d0(0x425)](_0x429db0);}[_0x9941cc(0x23f)](_0xd209ab=((()=>{const _0x4cb515=_0x9941cc;var _0x59a739;return(_0x59a739=this['_userManagerService'][_0x4cb515(0x3ae)]())==null?void 0x0:_0x59a739['userID'];})())){const _0x2bb357=_0x9941cc;return this[_0x2bb357(0x327)](_0xd209ab);}['_normalizeUserId'](_0x381707){return _0x381707===''||_0x381707==null?void 0x0:_0x381707;}['_scheduleSaving'](_0x5232de){const _0x38c998=_0x9941cc;let _0x1c4409=this[_0x38c998(0x28f)]();_0x1c4409===0x0?this[_0x38c998(0x344)](_0x5232de)[_0x38c998(0x26f)](_0x4be6db=>this[_0x38c998(0x302)]['error'](_0x4be6db)):this[_0x38c998(0x223)][_0x38c998(0x3d4)](_0x5232de,window[_0x38c998(0x2d1)](()=>{const _0x4c78fe=_0x38c998;this[_0x4c78fe(0x344)](_0x5232de)['catch'](_0x28445c=>this[_0x4c78fe(0x302)][_0x4c78fe(0x3bf)](_0x28445c));},_0x1c4409));}[_0x9941cc(0x28f)](){const _0xc3a80e=_0x9941cc;return this[_0xc3a80e(0x36d)][_0xc3a80e(0x3f3)](_0x3901f1)??_0x3650b9;}[_0x9941cc(0x344)](_0x55825a){const _0x53e974=_0x9941cc;let _0xc87901=this[_0x53e974(0x223)][_0x53e974(0x3a2)](_0x55825a);_0xc87901!==void 0x0&&window['clearTimeout'](_0xc87901);let _0x513463=this[_0x53e974(0x24a)][_0x53e974(0x3a2)](_0x55825a);if(!_0x513463)return Promise[_0x53e974(0x458)]();let _0x39942b=this['_activeSaveTaskMap'][_0x53e974(0x3a2)](_0x55825a),_0x51b9d6=Promise[_0x53e974(0x3fd)](_0x39942b?[..._0x39942b]:[])[_0x53e974(0x375)](()=>this['_localStorageService'][_0x53e974(0x283)](_0x55825a,_0x513463))[_0x53e974(0x375)](()=>{const _0x39dbf8=_0x53e974;_0xc87901!==void 0x0&&this[_0x39dbf8(0x223)][_0x39dbf8(0x3a2)](_0x55825a)===_0xc87901&&(this['_saveTaskMap'][_0x39dbf8(0x3c0)](_0x55825a),!this[_0x39dbf8(0x360)]&&this['_cachedData']['get'](_0x55825a)!==_0x513463&&this['_scheduleSaving'](_0x55825a));});return this[_0x53e974(0x364)](_0x55825a,_0x51b9d6),_0x51b9d6;}[_0x9941cc(0x364)](_0x36fa2c,_0x13cec1){const _0x13097e=_0x9941cc;let _0x1adec8=this['_activeSaveTaskMap']['get'](_0x36fa2c);_0x1adec8||(_0x1adec8=new Set(),this[_0x13097e(0x42c)][_0x13097e(0x3d4)](_0x36fa2c,_0x1adec8)),_0x1adec8[_0x13097e(0x1f1)](_0x13cec1);let _0xdf242c=()=>{const _0x305040=_0x13097e;_0x1adec8[_0x305040(0x3c0)](_0x13cec1),_0x1adec8['size']===0x0&&this[_0x305040(0x42c)][_0x305040(0x3c0)](_0x36fa2c);};_0x13cec1['then'](_0xdf242c,_0xdf242c);}async[_0x9941cc(0x3fa)](){const _0x51d04e=_0x9941cc;let _0x394670=[...this[_0x51d04e(0x223)][_0x51d04e(0x428)]()][_0x51d04e(0x2a1)](_0x3ac60e=>this['_saveCache'](_0x3ac60e));for(let _0x36d893 of this[_0x51d04e(0x42c)][_0x51d04e(0x3ca)]())_0x394670[_0x51d04e(0x2d4)](...[..._0x36d893]['map'](_0x49eaa7=>_0x49eaa7['then'](()=>void 0x0)));await Promise[_0x51d04e(0x23b)](_0x394670);}};ar=Y([J(0x0,_0x3116f3),J(0x1,_0x2d6fa6),J(0x2,_0x5e7a64(_0x363588)),J(0x3,_0x54abc2),J(0x4,_0x5e7a64(_0x57bb22))],ar);var or=class extends _0x4ade65{get[_0x9941cc(0x406)](){const _0x4c3ac1=_0x9941cc;return this[_0x4c3ac1(0x272)][_0x4c3ac1(0x3b0)]();}constructor(){const _0x440635=_0x9941cc;super(),q(this,_0x440635(0x272),new _0x4693d8(navigator[_0x440635(0x27c)])),q(this,_0x440635(0x2b6),this[_0x440635(0x272)][_0x440635(0x221)]()),this[_0x440635(0x202)](),this[_0x440635(0x3ee)]();}['dispose'](){const _0x41f5cd=_0x9941cc;super[_0x41f5cd(0x1f9)](),this[_0x41f5cd(0x272)][_0x41f5cd(0x303)]();}[_0x9941cc(0x3ee)](){const _0x17f3d1=_0x9941cc;this['disposeWithMe'](_0x5c9537(_0x252f84(window,'online'),_0x252f84(window,_0x17f3d1(0x27a)),_0x252f84(document,_0x17f3d1(0x381))['pipe'](_0x2ae595(()=>document[_0x17f3d1(0x39a)]===_0x17f3d1(0x30b)),_0x27d01f(_0x1348bf=>_0x1348bf)))['pipe'](_0x27d01f(()=>navigator[_0x17f3d1(0x27c)]))[_0x17f3d1(0x44c)](()=>this[_0x17f3d1(0x272)]['next'](!0x0)));}[_0x9941cc(0x202)](){const _0x2e4149=_0x9941cc;this['disposeWithMe'](_0x252f84(window,_0x2e4149(0x270))[_0x2e4149(0x44c)](()=>this[_0x2e4149(0x272)][_0x2e4149(0x31a)](!0x1)));}},sr=class extends _0x26adc4{constructor(){const _0x1e2595=_0x9941cc;super(),q(this,_0x1e2595(0x3ce),void 0x0),this[_0x1e2595(0x3ce)]=_0x252f84(window,_0x1e2595(0x2b0))[_0x1e2595(0x1e3)](_0x4c8245(this[_0x1e2595(0x1f3)]),_0x3e947a({'bufferSize':0x1,'refCount':!0x0}),_0x1c52fe(void 0x0));}[_0x9941cc(0x3dd)](_0x5c27e0,_0x4e64cb,_0x1f84b9=!0x1){const _0x2350c8=_0x9941cc;let _0x383edc=new URL(window[_0x2350c8(0x261)][_0x2350c8(0x450)]);_0x383edc['searchParams']['set'](_0x5c27e0,_0x4e64cb),_0x1f84b9?window['history'][_0x2350c8(0x2b3)]('','',_0x383edc['toString']()):window[_0x2350c8(0x305)][_0x2350c8(0x32b)]('','',_0x383edc['toString']());}[_0x9941cc(0x292)](_0x4cf506,_0x2bc6e0=!0x1){const _0x550400=_0x9941cc;let _0xa66620=new URL(window[_0x550400(0x261)][_0x550400(0x450)]);_0xa66620['searchParams'][_0x550400(0x3c0)](_0x4cf506),_0x2bc6e0?window[_0x550400(0x305)][_0x550400(0x2b3)]('','',_0xa66620[_0x550400(0x2cb)]()):window[_0x550400(0x305)][_0x550400(0x32b)]('','',_0xa66620[_0x550400(0x2cb)]());}[_0x9941cc(0x442)](_0x1a746d){const _0x536a02=_0x9941cc;return new URL(window['location'][_0x536a02(0x450)])['searchParams'][_0x536a02(0x3a2)](_0x1a746d)??void 0x0;}};let $=class extends _0x158ecc{constructor(_0x3111ce=_n,_0x13d9a2,_0x26a308,_0x57fcbc,_0x111fbe){const _0xcf46a5=_0x9941cc;super(),this[_0xcf46a5(0x2f0)]=_0x3111ce,this[_0xcf46a5(0x2b1)]=_0x13d9a2,this['_injector']=_0x26a308,this['_configService']=_0x57fcbc,this['_commandService']=_0x111fbe;let {..._0x2284de}=_0x468132({},_n,this[_0xcf46a5(0x2f0)]);this[_0xcf46a5(0x36d)][_0xcf46a5(0x2df)](_0xcf46a5(0x40e),_0x2284de);}[_0x9941cc(0x3b7)](){const _0x1dc6d1=_0x9941cc;this[_0x1dc6d1(0x409)](),this[_0x1dc6d1(0x366)](this[_0x1dc6d1(0x2c3)]['registerCommand'](gn)),this['_initDependencies']();}[_0x9941cc(0x308)](){const _0x53a542=_0x9941cc;this[_0x53a542(0x2f5)]();}['_registerDependencies'](){const _0x3b2d7c=_0x9941cc;var _0x31c5c1;let _0x3b6368=[[bn],[Gn,{'useClass':sr}],[_0x15f85b,{'useClass':_0x2b2855}],[_0x4acd2b,{'useClass':ar}],[_0x33aa34,{'useClass':or}],[X],[Wn],[Z],[Hn],[ir]];this[_0x3b2d7c(0x2f0)][_0x3b2d7c(0x294)]!==!0x1&&_0x3b6368['push']([Kn]),this['_config'][_0x3b2d7c(0x352)]!==!0x1&&_0x3b6368[_0x3b2d7c(0x2d4)]([Yn],[qn],[Jn],[Cn],[er],[vn]),this['_config'][_0x3b2d7c(0x228)]&&_0x3b6368[_0x3b2d7c(0x2d4)]([tr]),_0x176aa9(this[_0x3b2d7c(0x2f6)],_0x1b4625(_0x3b6368,(_0x31c5c1=this[_0x3b2d7c(0x2f0)])==null?void 0x0:_0x31c5c1[_0x3b2d7c(0x216)]));}[_0x9941cc(0x2f5)](){const _0x1f1c1c=_0x9941cc;this[_0x1f1c1c(0x2f0)]['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x1f1c1c(0x314)](_0x3a9ab9[_0x1f1c1c(0x31e)],[Nn])),this[_0x1f1c1c(0x366)](this[_0x1f1c1c(0x2b1)][_0x1f1c1c(0x314)](_0x3a9ab9[_0x1f1c1c(0x38a)],[Fn]));}['_initDependencies'](){const _0x3655ea=_0x9941cc;_0x266c62(this[_0x3655ea(0x2f6)],[[Z],[Hn],[X],[Wn],[ir]]),this[_0x3655ea(0x2f0)]['enableUrlUnitLoader']!==!0x1&&_0x266c62(this['_injector'],[[Kn]]),this[_0x3655ea(0x2f0)][_0x3655ea(0x352)]!==!0x1&&_0x266c62(this[_0x3655ea(0x2f6)],[[er],[vn]]),this[_0x3655ea(0x2f0)]['enableFrontendLog']&&_0x266c62(this[_0x3655ea(0x2f6)],[[tr]]);}};q($,_0x9941cc(0x1e6),_0x9941cc(0x44e)),q($,'packageName',mn),q($,_0x9941cc(0x224),hn),$=Y([_0x5920de(_0x1dc124,_0x42b8ea,_0x24783a,_0x317ac1,_0x4aa696,_0x496886,_0x5ac656),J(0x1,_0x20ed56),J(0x2,_0x5e7a64(_0x3a52d9)),J(0x3,_0x3116f3),J(0x4,_0x309b58)],$);let cr=class extends _0xff2dd6{constructor(_0x5bc19c,_0x493552,_0x1a27d0,_0x11c27f,_0x3daaca){const _0x11aa4e=_0x9941cc;super(_0x5bc19c,_0x493552,_0x1a27d0,_0x11c27f,_0x3daaca),q(this,'_dispose$',new _0x49cf9c()),this[_0x11aa4e(0x366)](()=>{const _0x5582d3=_0x11aa4e;this[_0x5582d3(0x3b6)][_0x5582d3(0x31a)](),this['_dispose$'][_0x5582d3(0x303)]();});}async[_0x9941cc(0x2e8)](_0x193b91){const _0x29dbe8=_0x9941cc;let _0x25b77b=await this[_0x29dbe8(0x296)](),_0x2b4018=this[_0x29dbe8(0x1e5)](_0x193b91,_0x25b77b);return this[_0x29dbe8(0x281)](_0x2b4018);}[_0x9941cc(0x1e5)](_0x191f73,_0xdcba){const _0x19ef11=_0x9941cc;let _0x4707d2=typeof window>'u'?new URL(_0x191f73):new URL(_0x191f73,window['location'][_0x19ef11(0x2e0)]);_0x4707d2[_0x19ef11(0x22d)]['set'](_0x19ef11(0x288),_0xdcba);let _0x533be6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x19ef11(0x261)][_0x19ef11(0x2bc)]);return _0x533be6[_0x19ef11(0x3a2)](_0x19ef11(0x422))&&_0x4707d2['searchParams'][_0x19ef11(0x3d4)](_0x19ef11(0x422),_0x533be6[_0x19ef11(0x3a2)]('runId')),_0x4707d2[_0x19ef11(0x2cb)]();}async[_0x9941cc(0x296)](){const _0x44b0d1=_0x9941cc;var _0x5c6b39;let _0x2eaad5=this['_configService'][_0x44b0d1(0x3f3)](_0x323108),_0x182851=(_0x2eaad5==null?void 0x0:_0x2eaad5[_0x44b0d1(0x2c9)])??_0x59be2d;return((_0x5c6b39=(await _0x41d36(this[_0x44b0d1(0x2d7)][_0x44b0d1(0x1f6)]('GET',_0x182851,{'headers':{'Content-Type':'application/json'}})[_0x44b0d1(0x1e3)](_0x27d01f(_0x541fec=>_0x541fec['type']===_0x4d1c71['Response']),_0x500b61(0x4e20),_0x4c8245(this['_dispose$']))))[_0x44b0d1(0x1e4)])==null?void 0x0:_0x5c6b39[_0x44b0d1(0x42f)])??'';}};cr=Y([J(0x0,_0x5e7a64(_0x3a52d9)),J(0x1,_0x5e7a64(_0x2f3aec)),J(0x2,_0x3116f3),J(0x3,_0x54abc2),J(0x4,_0x55255b)],cr);let lr=class extends _0x4ade65{constructor(_0x52a652,_0x57ae4b,_0x2c09fb){const _0x40ada6=_0x9941cc;super(),this[_0x40ada6(0x35b)]=_0x52a652,this[_0x40ada6(0x2d7)]=_0x57ae4b,this[_0x40ada6(0x36d)]=_0x2c09fb;}async[_0x9941cc(0x353)](_0x4789b2,_0x1b8eef,_0x4f5f60,..._0xa4d9ca){const _0x4f7e2f=_0x9941cc;let _0x55d3c0=this['_instanceService'][_0x4f7e2f(0x336)]();if(!_0x55d3c0)throw Error(_0x4f7e2f(0x325));let _0xc1bb8f=(this[_0x4f7e2f(0x36d)][_0x4f7e2f(0x3f3)](_0x3ffe51)??_0x425445)+'/'+_0x4789b2+_0x4f7e2f(0x312)+_0x1b8eef,_0x20a244={'scriptId':_0x4789b2,'runId':new URL(window[_0x4f7e2f(0x261)][_0x4f7e2f(0x450)])[_0x4f7e2f(0x22d)][_0x4f7e2f(0x3a2)](_0x4f7e2f(0x422))??'','function':_0x1b8eef,'unitId':_0x55d3c0[_0x4f7e2f(0x29c)](),'argsOfFunction':JSON[_0x4f7e2f(0x248)](_0xa4d9ca),'invokeId':_0x4f5f60[_0x4f7e2f(0x2f2)]??'','executionId':_0x4f5f60[_0x4f7e2f(0x420)]??''};try{let _0x415479=await this[_0x4f7e2f(0x2d7)][_0x4f7e2f(0x309)](_0xc1bb8f,{'body':_0x20a244});return _0x415479['body'][_0x4f7e2f(0x3bf)]&&_0x415479[_0x4f7e2f(0x1e4)][_0x4f7e2f(0x3bf)]['code']!==_0x56aba6['OK']?_0x4f7e2f(0x36a):_0x415479[_0x4f7e2f(0x1e4)][_0x4f7e2f(0x355)];}catch{return _0x4f7e2f(0x36a);}}};lr=Y([J(0x0,_0x479ada),J(0x1,_0x5e7a64(_0x2f3aec)),J(0x2,_0x3116f3)],lr);const ur=0x7530,dr=_0x9941cc(0x38d);var fr=class extends _0x4ade65{constructor(){const _0x12c8cf=_0x9941cc;super(),q(this,_0x12c8cf(0x1fc),_0x514bf7()),q(this,'_selfUnitIDs',new Set()),q(this,'_unitOnClients',new Map()),q(this,_0x12c8cf(0x2d6),null),q(this,_0x12c8cf(0x413),new Map()),q(this,_0x12c8cf(0x3a8),new Map()),this[_0x12c8cf(0x30a)]();}[_0x9941cc(0x1f9)](){const _0x3d0fcc=_0x9941cc;super[_0x3d0fcc(0x1f9)](),this['_clearOtherTimers'][_0x3d0fcc(0x285)]((_0x49d260,_0x379f1c)=>this['_removeClearOtherTimer'](_0x379f1c)),this[_0x3d0fcc(0x2d6)]&&window[_0x3d0fcc(0x362)](this[_0x3d0fcc(0x2d6)]);}[_0x9941cc(0x205)](_0x30d234){const _0x184d53=_0x9941cc;return this[_0x184d53(0x30c)](_0x30d234)[_0x184d53(0x1e3)](_0x5b52ab());}[_0x9941cc(0x39b)](_0x27864b){const _0x83b38c=_0x9941cc;this['_selfUnitIDs'][_0x83b38c(0x3e1)]===0x0&&this[_0x83b38c(0x263)](),this[_0x83b38c(0x391)][_0x83b38c(0x1f1)](_0x27864b),this[_0x83b38c(0x35e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x27864b],'isForwarded':!0x1});}[_0x9941cc(0x2c5)](_0xea831a){const _0x2ea82f=_0x9941cc;this[_0x2ea82f(0x391)]['delete'](_0xea831a),this['_selfUnitIDs'][_0x2ea82f(0x3e1)]===0x0&&this[_0x2ea82f(0x2d6)]&&window[_0x2ea82f(0x362)](this['_heartbeatTimer']);}['_init'](){const _0x23ece3=_0x9941cc;this[_0x23ece3(0x366)](_0x43c8f(_0x252f84(window,_0x23ece3(0x2f4))[_0x23ece3(0x44c)](_0x1ff99a=>{const _0x4eea62=_0x23ece3;if(_0x1ff99a[_0x4eea62(0x33e)]!==dr||!_0x1ff99a[_0x4eea62(0x3f5)])return;let _0x29ab24=JSON[_0x4eea62(0x404)](_0x1ff99a['newValue']);this[_0x4eea62(0x2d9)](_0x29ab24);}))),window[_0x23ece3(0x44f)]('unload',()=>this[_0x23ece3(0x35e)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x23ece3(0x354)](this[_0x23ece3(0x391)])}));}[_0x9941cc(0x2d9)](_0x214ac4){const _0x2729de=_0x9941cc;switch(_0x214ac4['type']){case 0x0:this[_0x2729de(0x2b5)](_0x214ac4);break;case 0x1:this[_0x2729de(0x3f6)](_0x214ac4);break;case 0x2:this[_0x2729de(0x3ba)](_0x214ac4);}}[_0x9941cc(0x2b5)](_0xff0fd4){let {unitIDs:_0x1cef03,memberID:_0x104e88,isForwarded:_0x22fcd4}=_0xff0fd4;_0x1cef03['forEach'](_0x493aac=>{const _0x295450=_0x54b3;if(!_0x22fcd4&&this[_0x295450(0x342)][_0x295450(0x2bf)](_0x493aac)&&this['_ensureSubject'](_0x493aac)[_0x295450(0x31a)](_0x4c50b0[_0x295450(0x326)]),!this[_0x295450(0x342)][_0x295450(0x2bf)](_0x493aac)||!this[_0x295450(0x342)]['get'](_0x493aac)[_0x295450(0x2bf)](_0x104e88)){let _0x5b8389=this[_0x295450(0x342)][_0x295450(0x3a2)](_0x493aac)||new Set();_0x5b8389['add'](_0x104e88),this['_unitOnClients']['set'](_0x493aac,_0x5b8389),this[_0x295450(0x22c)](_0x104e88);}}),_0x22fcd4||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x9941cc(0x22c)](_0x1917a2){const _0x16749b=_0x9941cc;this[_0x16749b(0x2ac)](_0x1917a2);let _0x736a48=window['setTimeout'](()=>{const _0x108398=_0x16749b;this[_0x108398(0x342)][_0x108398(0x285)](_0x596790=>{const _0x302721=_0x108398;_0x596790[_0x302721(0x3c0)](_0x1917a2);});},ur*0x2);this[_0x16749b(0x413)][_0x16749b(0x3d4)](_0x1917a2,_0x736a48);}[_0x9941cc(0x2ac)](_0x62df0){const _0x2bbd7f=_0x9941cc;if(this[_0x2bbd7f(0x413)][_0x2bbd7f(0x2bf)](_0x62df0)){let _0x164a7f=this[_0x2bbd7f(0x413)][_0x2bbd7f(0x3a2)](_0x62df0);_0x164a7f&&window[_0x2bbd7f(0x438)](_0x164a7f),this[_0x2bbd7f(0x413)][_0x2bbd7f(0x3d4)](_0x62df0,null);}}[_0x9941cc(0x3f6)](_0x539a2e){const _0x55f9f9=_0x9941cc;let {memberID:_0x4d60fd,unitIDs:_0x35df47}=_0x539a2e;_0x35df47[_0x55f9f9(0x285)](_0x1c131b=>{const _0xcaf2c2=_0x55f9f9;var _0x4a731b;let _0x27a101=this[_0xcaf2c2(0x342)][_0xcaf2c2(0x3a2)](_0x1c131b);_0x27a101&&(_0x27a101[_0xcaf2c2(0x3c0)](_0x4d60fd),(_0x4a731b=this['_ensureSubject'](_0x1c131b))==null||_0x4a731b[_0xcaf2c2(0x31a)](_0x27a101['size']===0x0?_0x4c50b0[_0xcaf2c2(0x31b)]:_0x4c50b0[_0xcaf2c2(0x326)]));}),this[_0x55f9f9(0x2ac)](_0x4d60fd);}[_0x9941cc(0x3ba)](_0x5517f0){const _0x3a1637=_0x9941cc;this[_0x3a1637(0x22c)](_0x5517f0[_0x3a1637(0x1ef)]);}[_0x9941cc(0x35e)](_0x29fbd3){const _0x44c522=_0x9941cc;localStorage['setItem'](dr,JSON[_0x44c522(0x248)](_0x29fbd3));}[_0x9941cc(0x263)](){const _0x37742b=_0x9941cc;this['_heartbeatTimer']=window[_0x37742b(0x41b)](()=>{const _0x4999c1=_0x37742b;this[_0x4999c1(0x35e)]({'type':0x2,'memberID':this['_id']});},ur);}[_0x9941cc(0x30c)](_0x55c119){const _0x4aa10e=_0x9941cc;return this[_0x4aa10e(0x3a8)][_0x4aa10e(0x2bf)](_0x55c119)||this[_0x4aa10e(0x3a8)][_0x4aa10e(0x3d4)](_0x55c119,new _0x4693d8(_0x4c50b0[_0x4aa10e(0x31b)])),this['_unitStatus'][_0x4aa10e(0x3a2)](_0x55c119);}};export{cr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Gn as IURLService,lr as RemoteUniscriptService,Pn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,fr as WebBrowserSingleActiveUnitService};
1
+ const _0x551ea6=_0x5c41;(function(_0x387002,_0x33f7fb){const _0x36603a=_0x5c41,_0x2e4012=_0x387002();while(!![]){try{const _0x3e9693=-parseInt(_0x36603a(0x12d))/0x1*(parseInt(_0x36603a(0x254))/0x2)+-parseInt(_0x36603a(0x3a4))/0x3+parseInt(_0x36603a(0x2dd))/0x4*(parseInt(_0x36603a(0x323))/0x5)+-parseInt(_0x36603a(0x215))/0x6+parseInt(_0x36603a(0x1b6))/0x7+parseInt(_0x36603a(0x2d2))/0x8*(parseInt(_0x36603a(0x390))/0x9)+parseInt(_0x36603a(0x2ff))/0xa;if(_0x3e9693===_0x33f7fb)break;else _0x2e4012['push'](_0x2e4012['shift']());}catch(_0x4b5c90){_0x2e4012['push'](_0x2e4012['shift']());}}}(_0x4d12,0x756f4));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x118bf0,CollaborationController as _0xccd537,CollaborationSessionService as _0x523f36,CollaborationSocketService as _0x384371,CollaborationStatus as _0x134153,CollaborationUIEventId as _0x407a83,CollaborationUIEventService as _0xd970e4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5d8fea,DEFAULT_WS_SESSION_TICKET_URL as _0xaf8782,DocCollaborationEntity as _0xbaeadf,ILocalCacheService as _0x33dbbe,INetworkConditionService as _0x3fc06d,LOCAL_CACHE_INTERVAL as _0x518e62,LOCAL_CACHE_INTERVAL_KEY as _0x1a11a2,MemberService as _0x27f81c,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x14f42a,SessionStatus as _0x4af4b1,UnitStatus as _0x299f06,UniverCollaborationClientPlugin as _0x36dd11,getLocalCacheKey as _0x15ebee}from'@univerjs-pro/collaboration-client';import{COLORS as _0x24854e,ColorKit as _0x6df091,CommandType as _0x572f2b,DOC_RANGE_TYPE as _0x49f783,DependentOn as _0x1ccab6,Disposable as _0x7429c,DisposableCollection as _0x45da21,ICommandService as _0x86e5be,IConfigService as _0x3e03c2,IImageIoService as _0x2ed576,ILocalStorageService as _0x308b99,ILogService as _0x4da388,IUniverInstanceService as _0xdac9a9,Inject as _0x53cba9,Injector as _0x2794a7,LocaleService as _0x3e8dce,Plugin as _0x485276,Rectangle as _0x57cc96,RxDisposable as _0x26fe67,ThemeService as _0x5c86d9,Tools as _0x1f0f35,UniverInstanceType as _0x3da1b0,UserManagerService as _0xb80337,debounce as _0x2180b6,fromEventSubject as _0x3805ae,generateRandomId as _0x40fbdd,isInternalEditorID as _0x4e823d,merge as _0xff4682,mergeOverrideWithDependencies as _0x5714cf,registerDependencies as _0x19da21,toDisposable as _0x40df0c,touchDependencies as _0x4cebeb}from'@univerjs/core';import{BuiltInUIPart as _0x11c202,IBeforeCloseService as _0x93469a,IMessageService as _0x5163fa,INotificationService as _0x18e522,IUIPartsService as _0x24bbb0,IUnitPresenceUIAdapterRegistry as _0x48b8ac,connectInjector as _0x6ad55b,useDependency as _0x9e563a,useObservable as _0x1fbfb2}from'@univerjs/ui';import{BehaviorSubject as _0x49b31d,Subject as _0x148114,combineLatest as _0x5ed20b,debounceTime as _0x2c6200,distinctUntilChanged as _0x3ec06,filter as _0xf2c32b,firstValueFrom as _0x2b32c0,fromEvent as _0x2e313b,map as _0x325cfb,merge as _0x55f555,of as _0x4f9cd5,switchMap as _0x35a8e9,takeUntil as _0x31ffb0,throttle as _0x16fef6,timeout as _0x19edf7,timer as _0x27c1c9}from'rxjs';import{distinctUntilChanged as _0x2ec394,filter as _0x437de6,map as _0x2a589e,switchMap as _0xff7583,takeUntil as _0x378ea2,throttleTime as _0x4230fa}from'rxjs/operators';import{Button as _0x3be90c,MessageType as _0x2c21da,Tooltip as _0x202d33,clsx as _0x47d4e1}from'@univerjs/design';import{LoadingMultiIcon as _0x44f2ff,OffLineIcon as _0x1cd61f,OnLineIcon as _0x451d33,WarningIcon as _0x323b2f}from'@univerjs/icons';import{createElement as _0x42ff55,useCallback as _0x177536,useMemo as _0x4e134f}from'react';import{jsx as _0x57b519,jsxs as _0x3e8147}from'react/jsx-runtime';import{CollaborationEvent as _0x3ac41b,ISnapshotServerService as _0x395929,ITransformService as _0x27089f,RevisionService as _0x227587,SnapshotLoadStage as _0x1a7dd0,SnapshotLoadingService as _0xd6ad6b,UniverCollaborationPlugin as _0x36d29a,isTransformMutationFailure as _0x53ca28,isTransformMutationsWithChangesetSuccess as _0x54a10e}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x480e41}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x1d1eca,DocSkeletonManagerService as _0x552c39,DocStateChangeManagerService as _0x13f06c,RichTextEditingMutation as _0x317031,SetTextSelectionsOperation as _0x4bbcc8,UniverDocsPlugin as _0x5240a6}from'@univerjs/docs';import{DocIMEInputManagerService as _0x54cc81,IDocClipboardService as _0x5c7c4c,NodePositionConvertToCursor as _0x441ca8,NodePositionConvertToRectRange as _0x4f99aa,SetDocZoomRatioOperation as _0x4c71b4,TEXT_RANGE_LAYER_INDEX as _0x43d39d,UniverDocsUIPlugin as _0x5c4b5f}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2d6840,IRenderManagerService as _0x4e616a,Rect as _0x5193a5,RegularPolygon as _0x29f225,SHEET_VIEWPORT_KEY as _0x38f24a,Shape as _0x29d2cf,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x14fcbf,UniverRenderEnginePlugin as _0x3289b8,Vector2 as _0x2d71e1,getColor as _0x957355,getDocumentSkeletonColumnPagePathInfo as _0x2ac8f4}from'@univerjs/engine-render';import{HTTPEventType as _0x27149d,HTTPService as _0x547f50,ISocketService as _0x36529d,UniverNetworkPlugin as _0x426a9e,WebSocketService as _0x24b7e7}from'@univerjs/network';import{deserializeRangeWithSheet as _0x3ffcdd,serializeRangeWithSheet as _0x2801fe}from'@univerjs/engine-formula';import{EffectRefRangId as _0x224fe9,RefRangeService as _0x4ee1c7,SetSelectionsOperation as _0x599836,SheetsSelectionsService as _0x480a5f,handleDeleteRangeMoveLeft as _0x17e9a4,handleDeleteRangeMoveUp as _0x4843bc,handleIRemoveCol as _0x465304,handleIRemoveRow as _0x17ad5b,handleInsertCol as _0x47a4f8,handleInsertRangeMoveDown as _0x44532c,handleInsertRangeMoveRight as _0x1d6705,handleInsertRow as _0x1efaee,handleMoveRange as _0x38fbae,runRefRangeMutations as _0x1d1c48}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x405a0b,getCoordByCell as _0x48f74c,getSheetObject as _0x5258fd}from'@univerjs/sheets-ui';import{ErrorCode as _0x1e8547}from'@univerjs/protocol';function nn(_0xd363ea){const _0x414db5=_0x5c41;switch(_0xd363ea){case _0x134153[_0x414db5(0x37f)]:return{'icon':_0x57b519(_0x1cd61f,{}),'colorClass':_0x414db5(0x18d),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x414db5(0x2a3),'clickable':!0x0,'indicator':'static'};case _0x134153[_0x414db5(0x32c)]:return{'icon':_0x57b519(_0x1cd61f,{}),'colorClass':_0x414db5(0x260),'i18nKey':_0x414db5(0x1a5),'clickable':!0x1,'indicator':_0x414db5(0x12c)};case _0x134153[_0x414db5(0x197)]:return{'icon':_0x57b519(_0x44f2ff,{}),'colorClass':_0x414db5(0x2c5),'i18nKey':_0x414db5(0x23e),'clickable':!0x1,'indicator':_0x414db5(0x2cd)};case _0x134153[_0x414db5(0x1a4)]:return{'icon':_0x57b519(_0x451d33,{}),'colorClass':_0x414db5(0x1eb),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x414db5(0x12c)};case _0x134153[_0x414db5(0x22a)]:case _0x134153['AWAITING_WITH_PENDING']:return{'icon':_0x57b519(_0x44f2ff,{}),'colorClass':_0x414db5(0x2c5),'i18nKey':_0x414db5(0x2f0),'clickable':!0x1,'indicator':_0x414db5(0x2cd)};case _0x134153['PENDING']:return{'icon':_0x57b519(_0x44f2ff,{}),'colorClass':_0x414db5(0x2c5),'i18nKey':_0x414db5(0x2f0),'clickable':!0x1,'indicator':_0x414db5(0x2cd)};case _0x134153[_0x414db5(0x164)]:return{'icon':_0x57b519(_0x451d33,{}),'colorClass':_0x414db5(0x2a7),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':'static'};}}function rn(_0x4c4530){const _0x587c78=_0x5c41;let {status$:_0x3fd7ca}=_0x4c4530,_0x14df78=_0x1fbfb2(_0x3fd7ca,_0x134153[_0x587c78(0x1a4)]),_0x52c2e5=_0x9e563a(_0x3e8dce),_0x4c1bdf=_0x9e563a(_0x523f36),_0x2673fa=_0x4e134f(()=>nn(_0x14df78),[_0x14df78]),_0x3ca332=_0x14df78!==_0x134153[_0x587c78(0x37f)],_0x3aa521=_0x52c2e5['t'](_0x2673fa['i18nKey']),_0x4730ef=_0x2673fa[_0x587c78(0x1e6)]?_0x52c2e5['t'](_0x2673fa[_0x587c78(0x1e6)]):_0x3aa521,_0x8e9437=_0x177536(()=>{const _0x1b37d9=_0x587c78;_0x3ca332||_0x4c1bdf[_0x1b37d9(0x31b)]();},[_0x3ca332,_0x4c1bdf]),_0x27c53c=_0x177536(_0x3e0821=>{const _0xfc7631=_0x587c78;!_0x3ca332&&(_0x3e0821['key']===_0xfc7631(0x2ed)||_0x3e0821[_0xfc7631(0x208)]==='\x20')&&(_0x3e0821[_0xfc7631(0x189)](),_0x4c1bdf['reconnect']());},[_0x3ca332,_0x4c1bdf]),_0x339fd7=_0x57b519(_0x587c78(0x18e),{'className':_0x47d4e1('univer-flex\x20univer-items-center\x20univer-justify-center',_0x587c78(0x246),_0x2673fa[_0x587c78(0x1ce)],{'univer-animate-spin':_0x2673fa[_0x587c78(0x1e4)]===_0x587c78(0x2cd),'univer-animate-pulse':_0x2673fa[_0x587c78(0x1e4)]===_0x587c78(0x193)}),'aria-hidden':_0x587c78(0x383),'children':_0x2673fa[_0x587c78(0x345)]}),_0x3e4c1a=_0x57b519(_0x587c78(0x18e),{'className':_0x47d4e1(_0x587c78(0x337),_0x587c78(0x1c6),_0x587c78(0x220),_0x587c78(0x2bb),_0x587c78(0x3a2),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2673fa[_0x587c78(0x2a5)],'univer-cursor-default':!_0x2673fa[_0x587c78(0x2a5)]}),'children':_0x339fd7});return _0x2673fa[_0x587c78(0x2a5)]?_0x57b519(_0x202d33,{'title':_0x4730ef,'placement':_0x587c78(0x157),'children':_0x57b519(_0x587c78(0x1a1),{'type':'button','onClick':_0x8e9437,'onKeyDown':_0x27c53c,'className':_0x47d4e1(_0x587c78(0x182),_0x587c78(0x18a),_0x587c78(0x37d),_0x587c78(0x283)),'aria-label':_0x3aa521+'\x20-\x20'+_0x4730ef,'role':_0x587c78(0x304),'aria-live':_0x587c78(0x1d2),'aria-atomic':_0x587c78(0x383),'children':_0x3e4c1a})}):_0x57b519(_0x202d33,{'title':_0x4730ef,'placement':_0x587c78(0x157),'children':_0x57b519(_0x587c78(0x13f),{'className':_0x47d4e1(_0x587c78(0x182),_0x587c78(0x18a),_0x587c78(0x37d)),'aria-label':_0x3aa521,'role':_0x587c78(0x304),'aria-live':_0x587c78(0x1d2),'aria-atomic':_0x587c78(0x383),'children':_0x3e4c1a})});}function G(_0x4f2593){'@babel/helpers - typeof';const _0x2fe9c4=_0x5c41;return G=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x2fe9c4(0x19b)?function(_0x384ad4){return typeof _0x384ad4;}:function(_0x271669){const _0x5707c3=_0x2fe9c4;return _0x271669&&typeof Symbol==_0x5707c3(0x23c)&&_0x271669[_0x5707c3(0x187)]===Symbol&&_0x271669!==Symbol['prototype']?_0x5707c3(0x19b):typeof _0x271669;},G(_0x4f2593);}function an(_0x127190,_0x2dbb8c){const _0x4e4737=_0x5c41;if(G(_0x127190)!=_0x4e4737(0x211)||!_0x127190)return _0x127190;var _0x45cd57=_0x127190[Symbol['toPrimitive']];if(_0x45cd57!==void 0x0){var _0x223886=_0x45cd57[_0x4e4737(0x2f4)](_0x127190,_0x2dbb8c||'default');if(G(_0x223886)!=_0x4e4737(0x211))return _0x223886;throw TypeError(_0x4e4737(0x15b));}return(_0x2dbb8c==='string'?String:Number)(_0x127190);}function on(_0x180e5f){const _0x33ffe9=_0x5c41;var _0x256817=an(_0x180e5f,_0x33ffe9(0x212));return G(_0x256817)==_0x33ffe9(0x19b)?_0x256817:_0x256817+'';}function K(_0x1ac547,_0x49d8f0,_0x235a65){const _0x540dc5=_0x5c41;return(_0x49d8f0=on(_0x49d8f0))in _0x1ac547?Object[_0x540dc5(0x188)](_0x1ac547,_0x49d8f0,{'value':_0x235a65,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ac547[_0x49d8f0]=_0x235a65,_0x1ac547;}function q(_0x3cdba3,_0x5052a7){return function(_0x264864,_0xc1a273){_0x5052a7(_0x264864,_0xc1a273,_0x3cdba3);};}function J(_0x27ba74,_0x4d9f28,_0x3dc79b,_0x282a8e){const _0x8ae245=_0x5c41;var _0x22bc41=arguments['length'],_0x1da71e=_0x22bc41<0x3?_0x4d9f28:_0x282a8e===null?_0x282a8e=Object[_0x8ae245(0x250)](_0x4d9f28,_0x3dc79b):_0x282a8e,_0x136231;if(typeof Reflect==_0x8ae245(0x211)&&typeof Reflect[_0x8ae245(0x237)]==_0x8ae245(0x23c))_0x1da71e=Reflect[_0x8ae245(0x237)](_0x27ba74,_0x4d9f28,_0x3dc79b,_0x282a8e);else{for(var _0x60f772=_0x27ba74[_0x8ae245(0x174)]-0x1;_0x60f772>=0x0;_0x60f772--)(_0x136231=_0x27ba74[_0x60f772])&&(_0x1da71e=(_0x22bc41<0x3?_0x136231(_0x1da71e):_0x22bc41>0x3?_0x136231(_0x4d9f28,_0x3dc79b,_0x1da71e):_0x136231(_0x4d9f28,_0x3dc79b))||_0x1da71e);}return _0x22bc41>0x3&&_0x1da71e&&Object[_0x8ae245(0x188)](_0x4d9f28,_0x3dc79b,_0x1da71e),_0x1da71e;}let Y=class extends _0x7429c{constructor(_0x43e045,_0x552d5e,_0x4e5272,_0x35aa2b,_0x5b8013){const _0x5a075c=_0x5c41;super(),this[_0x5a075c(0x266)]=_0x43e045,this['_injector']=_0x552d5e,this['_collaborationController']=_0x4e5272,this[_0x5a075c(0x274)]=_0x35aa2b,this[_0x5a075c(0x1b1)]=_0x5b8013,K(this,_0x5a075c(0x1d4),new _0x49b31d(_0x134153[_0x5a075c(0x1a4)])),K(this,_0x5a075c(0x268),new Map()),this['_initStatusComponent'](),this[_0x5a075c(0x2e4)](),this[_0x5a075c(0x1af)]();}[_0x551ea6(0x121)](){const _0x5e263c=_0x551ea6;this[_0x5e263c(0x268)][_0x5e263c(0x2c4)](_0x27d1b1=>_0x27d1b1[_0x5e263c(0x121)]()),this[_0x5e263c(0x268)][_0x5e263c(0x271)](),this['_status$'][_0x5e263c(0x370)](),super[_0x5e263c(0x121)]();}[_0x551ea6(0x2e4)](){const _0x47fffd=_0x551ea6;this[_0x47fffd(0x1e0)](_0x55f555(this[_0x47fffd(0x266)]['focused$'],this['_univerInstanceService'][_0x47fffd(0x358)](_0x3da1b0[_0x47fffd(0x1b3)]),this[_0x47fffd(0x266)][_0x47fffd(0x358)](_0x3da1b0[_0x47fffd(0x23d)]))['pipe'](_0x2a589e(()=>sn(this[_0x47fffd(0x266)])),_0x2ec394(),_0x35a8e9(_0x3db30b=>_0x3db30b?this[_0x47fffd(0x27c)][_0x47fffd(0x357)](_0x3db30b):_0x4f9cd5(null)),_0x35a8e9(_0x3f246c=>_0x3f246c?_0x3f246c[_0x47fffd(0x367)]:_0x4f9cd5(_0x134153[_0x47fffd(0x1a4)])))[_0x47fffd(0x1d6)](_0x27e19d=>{const _0x31ad2c=_0x47fffd;this['_status$'][_0x31ad2c(0x32a)](_0x27e19d);}));}[_0x551ea6(0x2d5)](){const _0x39b6a1=_0x551ea6;this[_0x39b6a1(0x1e0)](this[_0x39b6a1(0x274)]['registerComponent'](_0x11c202[_0x39b6a1(0x160)],()=>_0x6ad55b(cn({'status$':this[_0x39b6a1(0x1d4)][_0x39b6a1(0x1be)]()}),this['_injector'])));}[_0x551ea6(0x1af)](){const _0x270b30=_0x551ea6;let _0x27b171=this['_presenceAdapterRegistry'][_0x270b30(0x201)][_0x270b30(0x1d6)](_0x336784=>{const _0x152e41=_0x270b30;this[_0x152e41(0x350)](_0x336784);});this['disposeWithMe'](_0x40df0c(()=>_0x27b171[_0x270b30(0x1e1)]()));}[_0x551ea6(0x350)](_0x1a1e29){const _0x4fb753=_0x551ea6;let _0x201f04=new Map(_0x1a1e29['filter'](_0x50349d=>_0x50349d[_0x4fb753(0x25e)]!=null)['map'](_0x1832ea=>[_0x1832ea[_0x4fb753(0x355)],_0x1832ea]));this[_0x4fb753(0x268)][_0x4fb753(0x2c4)]((_0x13e3d5,_0x40e84d)=>{const _0x351546=_0x4fb753;_0x201f04[_0x351546(0x297)](_0x40e84d)||(_0x13e3d5['dispose'](),this[_0x351546(0x268)][_0x351546(0x152)](_0x40e84d));}),_0x201f04[_0x4fb753(0x2c4)]((_0x444149,_0x33e24a)=>{const _0x35022e=_0x4fb753;this[_0x35022e(0x268)][_0x35022e(0x297)](_0x33e24a)||this[_0x35022e(0x392)](_0x444149);});}[_0x551ea6(0x392)](_0x770e14){const _0x1b4d3e=_0x551ea6;let _0x1f0a5f=_0x770e14[_0x1b4d3e(0x25e)];if(!_0x1f0a5f)return;let _0x601f5c=new _0x45da21(),_0x53be56=new _0x49b31d(_0x134153[_0x1b4d3e(0x1a4)]);_0x601f5c['add'](_0x40df0c(()=>_0x53be56[_0x1b4d3e(0x370)]())),_0x601f5c['add'](this['_uiPartsService'][_0x1b4d3e(0x269)](_0x1f0a5f,()=>_0x6ad55b(cn({'status$':_0x53be56[_0x1b4d3e(0x1be)]()}),this['_injector'])));let _0x340226=this[_0x1b4d3e(0x266)]['getCurrentTypeOfUnit$'](_0x770e14[_0x1b4d3e(0x355)])[_0x1b4d3e(0x19f)](_0x2a589e(_0x2d4a38=>(_0x2d4a38==null?void 0x0:_0x2d4a38[_0x1b4d3e(0x29d)]())??null),_0x2ec394(),_0x35a8e9(_0x534b4f=>_0x534b4f?this[_0x1b4d3e(0x27c)]['getCollabEntity$'](_0x534b4f):_0x4f9cd5(null)),_0x35a8e9(_0x1ef0c1=>(_0x1ef0c1==null?void 0x0:_0x1ef0c1['status$'])??_0x4f9cd5(_0x134153[_0x1b4d3e(0x1a4)])))['subscribe'](_0x1630cc=>_0x53be56[_0x1b4d3e(0x32a)](_0x1630cc));_0x601f5c[_0x1b4d3e(0x1b2)](_0x40df0c(()=>_0x340226[_0x1b4d3e(0x1e1)]())),this[_0x1b4d3e(0x268)][_0x1b4d3e(0x3a5)](_0x770e14[_0x1b4d3e(0x355)],_0x601f5c);}};Y=J([q(0x0,_0xdac9a9),q(0x1,_0x53cba9(_0x2794a7)),q(0x2,_0x53cba9(_0xccd537)),q(0x3,_0x24bbb0),q(0x4,_0x53cba9(_0x48b8ac))],Y);function sn(_0x43eb5e){const _0x2211fc=_0x551ea6;let _0x3c2bc4=_0x43eb5e[_0x2211fc(0x342)](),_0x4ce663=_0x3c2bc4==null?void 0x0:_0x3c2bc4[_0x2211fc(0x29d)]();if(_0x4ce663&&!_0x4e823d(_0x4ce663))return _0x4ce663;let _0x5868d9=_0x43eb5e['getCurrentUnitOfType'](_0x3da1b0[_0x2211fc(0x1b3)]),_0x3962cd=_0x5868d9==null?void 0x0:_0x5868d9['getUnitId']();if(_0x3962cd&&!_0x4e823d(_0x3962cd))return _0x3962cd;let _0x59ec38=_0x43eb5e[_0x2211fc(0x2d1)](_0x3da1b0['UNIVER_SHEET']);if(_0x59ec38)return _0x59ec38[_0x2211fc(0x29d)]();let _0x52a162=_0x43eb5e['getAllUnitsForType'](_0x3da1b0[_0x2211fc(0x1b3)])[_0x2211fc(0x135)](_0x44ddcc=>!_0x4e823d(_0x44ddcc['getUnitId']()));return _0x52a162?_0x52a162['getUnitId']():null;}function cn(_0x5315cc){let {status$:_0x80bdeb}=_0x5315cc;return function(){return _0x57b519(rn,{'status$':_0x80bdeb});};}var ln=_0x551ea6(0x2c6),un=_0x551ea6(0x26a);const dn={'id':_0x551ea6(0x28a),'type':_0x572f2b[_0x551ea6(0x387)],'handler':(_0x3e1534,_0x46d578)=>{const _0x3a5188=_0x551ea6;let _0xd3a40e=_0x3e1534[_0x3a5188(0x150)](_0x48b8ac)['get'](_0x46d578[_0x3a5188(0x355)]);if(!_0xd3a40e)return!0x1;switch(_0x46d578[_0x3a5188(0x290)]['type']){case _0x3a5188(0x3a5):return _0xd3a40e[_0x3a5188(0x352)](_0x46d578[_0x3a5188(0x290)][_0x3a5188(0x35e)]),!0x0;case _0x3a5188(0x393):return _0xd3a40e['removeRemotePresence'](_0x46d578['update'][_0x3a5188(0x2a2)],_0x46d578['update'][_0x3a5188(0x2c8)]),!0x0;case _0x3a5188(0x271):return _0xd3a40e[_0x3a5188(0x2f7)](_0x46d578[_0x3a5188(0x290)][_0x3a5188(0x2a2)]),!0x0;default:return!0x1;}}},fn={};let pn=class extends _0x26fe67{constructor(_0x3219e2,_0x5b083f){const _0x14b018=_0x551ea6;super(),this[_0x14b018(0x331)]=_0x3219e2,this[_0x14b018(0x12b)]=_0x5b083f,this['_init']();}[_0x551ea6(0x1db)](){const _0x376627=_0x551ea6;let _0x510799=this;this[_0x376627(0x1e0)](this[_0x376627(0x331)][_0x376627(0x130)]({'onBeforePasteImage':async _0x1bb8e2=>{const _0x4caff3=_0x376627;let _0x502fef=await _0x510799['_imageIoService'][_0x4caff3(0x389)](_0x1bb8e2);return _0x502fef?{'source':_0x502fef[_0x4caff3(0x1a8)],'imageSourceType':_0x502fef[_0x4caff3(0x306)]}:null;}}));}};pn=J([q(0x0,_0x5c7c4c),q(0x1,_0x2ed576)],pn);const mn=[_0x551ea6(0x325),_0x551ea6(0x2ca),'green.600',_0x551ea6(0x34f),'blue.400',_0x551ea6(0x31e)];var hn=class extends _0x7429c{constructor(..._0x48f512){const _0x45000b=_0x551ea6;super(..._0x48f512),K(this,'_assignedColors',new Map()),K(this,_0x45000b(0x222),0x0);}[_0x551ea6(0x1f1)](_0x4e5d95){const _0x5a59e9=_0x551ea6;if(this[_0x5a59e9(0x276)]['has'](_0x4e5d95))return this[_0x5a59e9(0x276)][_0x5a59e9(0x150)](_0x4e5d95);let _0x3f62a7=mn[this[_0x5a59e9(0x222)]];return this['_colorIndex']=(this[_0x5a59e9(0x222)]+0x1)%mn[_0x5a59e9(0x174)],this[_0x5a59e9(0x276)][_0x5a59e9(0x3a5)](_0x4e5d95,_0x3f62a7),_0x3f62a7;}};function gn(_0x294233){const _0x257d5c=_0x551ea6;let _0x12e6d8='';for(let _0x47ac26 of _0x294233){let {startOffset:_0x74e41,endOffset:_0xd10467,isActive:_0x2e9a99,rangeType:_0x1fa4a4,segmentId:_0x400390,segmentPage:_0x37662d}=_0x47ac26;_0x12e6d8[_0x257d5c(0x174)]&&(_0x12e6d8+=','),_0x12e6d8+=_0x74e41+':'+_0xd10467+':'+(_0x2e9a99?'1':'0')+':'+_0x1fa4a4+':'+_0x400390+':'+_0x37662d;}return _0x12e6d8;}function _n(_0x11cbac){const _0x4e1a72=_0x551ea6;let _0x207a8f=_0x11cbac[_0x4e1a72(0x340)](','),_0x32ade2=[];for(let _0x56d3e6 of _0x207a8f){let [_0x3c897a,_0x70772d,_0x511f1d,_0x550a7a,_0x5a4534,_0x2f3e3b]=_0x56d3e6[_0x4e1a72(0x340)](':');_0x32ade2['push']({'startOffset':Number(_0x3c897a),'endOffset':Number(_0x70772d),'collapsed':_0x3c897a===_0x70772d,'isActive':_0x511f1d==='1','rangeType':_0x550a7a===_0x49f783[_0x4e1a72(0x2e8)]?_0x49f783[_0x4e1a72(0x2e8)]:_0x49f783[_0x4e1a72(0x12a)],'segmentId':typeof _0x5a4534==_0x4e1a72(0x212)?String(_0x5a4534):'','segmentPage':Number(_0x2f3e3b??-0x1)});}return _0x32ade2['some'](_0x2109b6=>_0x2109b6[_0x4e1a72(0x25b)])||(_0x32ade2[0x0]['isActive']=!0x0),_0x32ade2;}var vn=class extends _0x26fe67{constructor(..._0x22de9a){const _0x40f9d1=_0x551ea6;super(..._0x22de9a),K(this,_0x40f9d1(0x2b8),new _0x49b31d(null)),K(this,_0x40f9d1(0x381),this['_collabCursorState$']['asObservable']());}[_0x551ea6(0x315)](_0x3259c7){const _0x56a896=_0x551ea6;let {unitID:_0x3e709f,memberID:_0x46774c,textRanges:_0x223208}=_0x3259c7,_0x2817f2=gn(_0x223208);if(_0x2817f2==='')return;let _0x1ac104={'unitID':_0x3e709f,'memberID':_0x46774c,'selection':_0x2817f2};this[_0x56a896(0x2b8)][_0x56a896(0x32a)](_0x1ac104);}};let yn=class extends _0x26fe67{get[_0x551ea6(0x27f)](){const _0x598ef6=_0x551ea6;return this[_0x598ef6(0x398)][_0x598ef6(0x333)]();}get[_0x551ea6(0x3a3)](){return this['_roomMembers$']['getValue']();}constructor(_0x56ca0e,_0x6d3939,_0x2969f4,_0x2cd6cd,_0x2e8a60,_0x5d4c5c,_0x2b2a20,_0x31e9b2,_0xa8cdfc){const _0xa5b819=_0x551ea6;super(),this[_0xa5b819(0x1c9)]=_0x56ca0e,this[_0xa5b819(0x32f)]=_0x6d3939,this[_0xa5b819(0x2b9)]=_0x2969f4,this[_0xa5b819(0x1a3)]=_0x2cd6cd,this[_0xa5b819(0x364)]=_0x2e8a60,this[_0xa5b819(0x2e0)]=_0x5d4c5c,this['_transformService']=_0x2b2a20,this[_0xa5b819(0x266)]=_0x31e9b2,this[_0xa5b819(0x142)]=_0xa8cdfc,K(this,'_online',!0x1),K(this,_0xa5b819(0x1db),!0x1),K(this,_0xa5b819(0x398),new _0x49b31d(new Map())),K(this,_0xa5b819(0x1b8),this['_cursorInfo$'][_0xa5b819(0x1be)]()),K(this,_0xa5b819(0x36a),new _0x49b31d([])),K(this,_0xa5b819(0x318),this['_roomMembers$'][_0xa5b819(0x19f)](_0x2c6200(0x12c))),K(this,_0xa5b819(0x31f),_0x2180b6(_0x12892e=>{const _0x10b228=_0xa5b819;let _0x5ad952={'eventID':_0x3ac41b[_0x10b228(0x33d)],'data':{'unitID':this[_0x10b228(0x1c9)],'memberID':this[_0x10b228(0x32f)]['getMemberID'](),'selection':gn(_0x12892e)}};this[_0x10b228(0x32f)][_0x10b228(0x365)](_0x5ad952,this[_0x10b228(0x1c9)]);},0x64));}[_0x551ea6(0x121)](){const _0xa14403=_0x551ea6;super[_0xa14403(0x121)](),this['_cursorInfo$'][_0xa14403(0x32a)](new Map()),this[_0xa14403(0x398)][_0xa14403(0x370)](),this['_roomMembers$'][_0xa14403(0x32a)]([]),this[_0xa14403(0x36a)]['complete']();}['init'](){const _0x347de6=_0x551ea6;this['_init']||(this[_0x347de6(0x1db)]=!0x0,this[_0x347de6(0x32f)][_0x347de6(0x2a0)]['pipe'](_0x31ffb0(this['dispose$']))[_0x347de6(0x1d6)](_0x18eb8a=>{const _0x164bf2=_0x347de6;_0x18eb8a===_0x4af4b1[_0x164bf2(0x1ac)]?this[_0x164bf2(0x1c0)]():this[_0x164bf2(0x209)]();}),this[_0x347de6(0x32f)][_0x347de6(0x320)]['pipe'](_0x31ffb0(this['dispose$']))[_0x347de6(0x1d6)](_0x2a1a47=>{const _0x54d532=_0x347de6;let _0x5bcceb=_0x2a1a47[_0x54d532(0x1d9)];_0x5bcceb===_0x3ac41b['UPDATE_CURSOR']&&this[_0x54d532(0x15f)](_0x2a1a47),_0x5bcceb===_0x3ac41b['USERS_LEAVE']&&this[_0x54d532(0x394)](_0x2a1a47);}),this[_0x347de6(0x1e0)](this[_0x347de6(0x142)][_0x347de6(0x32e)](_0x2238fc=>{const _0x4b21cd=_0x347de6;let _0x5f2b0b=_0x2238fc[_0x4b21cd(0x24c)];_0x5f2b0b!=null&&this[_0x4b21cd(0x129)]&&_0x2238fc['id']===_0x4bbcc8['id']&&_0x5f2b0b[_0x4b21cd(0x2a2)]===this[_0x4b21cd(0x1c9)]&&_0x5f2b0b['isEditing']===!0x1&&_0x5f2b0b[_0x4b21cd(0x1b5)][_0x4b21cd(0x174)]>0x0&&this[_0x4b21cd(0x31f)](_0x5f2b0b[_0x4b21cd(0x1b5)]);})),this[_0x347de6(0x2e0)][_0x347de6(0x381)][_0x347de6(0x19f)](_0x31ffb0(this[_0x347de6(0x24f)]))[_0x347de6(0x1d6)](_0x1478cd=>{const _0x167d56=_0x347de6;if((_0x1478cd==null?void 0x0:_0x1478cd[_0x167d56(0x1c9)])!==this['unitID'])return;let _0x5018ce={'eventID':_0x3ac41b[_0x167d56(0x33d)],'data':_0x1478cd};this[_0x167d56(0x15f)](_0x5018ce);}),this[_0x347de6(0x1e0)](this[_0x347de6(0x142)]['onCommandExecuted'](_0x4b51e8=>{const _0x468450=_0x347de6;if(_0x4b51e8['params']==null)return;let _0x502032=_0x4b51e8[_0x468450(0x24c)];if(_0x4b51e8['id']!==_0x317031['id']||_0x502032[_0x468450(0x2a2)]!==this['unitID'])return;let _0x468203={'id':_0x468450(0x376),'params':_0x502032},_0x29de92=this[_0x468450(0x27f)];for(let [_0x112680,_0x5e2e18]of _0x29de92){let _0x34c915={'id':_0x468450(0x376),'params':{'unitId':this[_0x468450(0x1c9)],'actions':null,'textRanges':_0x5e2e18['ranges']}},_0x10a9a1=this['_transformService'][_0x468450(0x12e)](_0x468203,_0x34c915,!0x1);if(_0x53ca28(_0x10a9a1))throw _0x10a9a1[_0x468450(0x226)];_0x29de92['set'](_0x112680,{..._0x5e2e18,'ranges':_0x10a9a1['m2Prime'][_0x468450(0x24c)][_0x468450(0x126)]});}queueMicrotask(()=>{const _0x1ae840=_0x468450;this[_0x1ae840(0x398)][_0x1ae840(0x32a)](_0x29de92);});})));}[_0x551ea6(0x15f)](_0x4e3f95){const _0x1f731f=_0x551ea6;var _0x45c3a9;let {memberID:_0x25797f,selection:_0x51312d}=_0x4e3f95[_0x1f731f(0x1c1)],_0xc11f53=_n(_0x51312d),_0x1d950c=((_0x45c3a9=this[_0x1f731f(0x364)][_0x1f731f(0x263)](this[_0x1f731f(0x1c9)],_0x25797f))==null?void 0x0:_0x45c3a9[_0x1f731f(0x1ad)])??_0x1f731f(0x249),_0x1afe36={'color':this[_0x1f731f(0x1a3)][_0x1f731f(0x1f1)](_0x25797f),'name':_0x1d950c,'ranges':_0xc11f53},_0x466ee=this['cursorInfo'];_0x466ee['set'](_0x25797f,_0x1afe36),this[_0x1f731f(0x398)]['next'](_0x466ee);}[_0x551ea6(0x394)](_0x40bc06){const _0x7032dd=_0x551ea6;let {memberID:_0x30ae49}=_0x40bc06[_0x7032dd(0x1c1)],_0x57000c=this[_0x7032dd(0x27f)];_0x57000c[_0x7032dd(0x152)](_0x30ae49),this[_0x7032dd(0x398)][_0x7032dd(0x32a)](_0x57000c);}[_0x551ea6(0x1c0)](){const _0x2cd6c1=_0x551ea6;var _0x2a81f8;if(this[_0x2cd6c1(0x129)]=!0x0,((_0x2a81f8=this['_univerInstanceService'][_0x2cd6c1(0x342)]())==null?void 0x0:_0x2a81f8[_0x2cd6c1(0x29d)]())!==this[_0x2cd6c1(0x1c9)])return;let _0x3bdc53=this[_0x2cd6c1(0x2b9)][_0x2cd6c1(0x150)](_0x1d1eca)[_0x2cd6c1(0x284)]();Array[_0x2cd6c1(0x351)](_0x3bdc53)&&_0x3bdc53['length']>0x0&&this['_updateLocalCursor'](_0x3bdc53);}['_toggleOffline'](){const _0x3a8ed3=_0x551ea6;this[_0x3a8ed3(0x129)]=!0x1;}};yn=J([q(0x2,_0x53cba9(_0x2794a7)),q(0x3,_0x53cba9(hn)),q(0x4,_0x53cba9(_0x27f81c)),q(0x5,_0x53cba9(vn)),q(0x6,_0x27089f),q(0x7,_0xdac9a9),q(0x8,_0x86e5be)],yn);const bn=()=>{let _0x5a803b=[],_0x60393e=!0x1;return _0x36f9a4=>{const _0x314b12=_0x5c41;_0x5a803b[_0x314b12(0x15a)](_0x36f9a4),_0x60393e||(_0x60393e=!0x0,setTimeout(()=>{const _0x7ace27=_0x314b12;_0x5a803b[_0x7ace27(0x2c4)](_0x1f36c4=>_0x1f36c4()),_0x5a803b=[],_0x60393e=!0x1;}));};};let xn=class extends _0x26fe67{get[_0x551ea6(0x27f)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x35c649=_0x551ea6;return this[_0x35c649(0x36a)][_0x35c649(0x333)]();}constructor(_0x7023e8,_0x23ad8d,_0x3df3e8,_0x513e62,_0x4f68cc,_0x1c10b8,_0x435cf3,_0x177ac3){const _0x181ad8=_0x551ea6;super(),this['unitID']=_0x7023e8,this[_0x181ad8(0x32f)]=_0x23ad8d,this['_injector']=_0x3df3e8,this[_0x181ad8(0x1a3)]=_0x513e62,this[_0x181ad8(0x364)]=_0x4f68cc,this[_0x181ad8(0x266)]=_0x1c10b8,this[_0x181ad8(0x142)]=_0x435cf3,this[_0x181ad8(0x1a2)]=_0x177ac3,K(this,'_online',!0x1),K(this,'_init',!0x1),K(this,_0x181ad8(0x398),new _0x49b31d(new Map())),K(this,'cursorInfo$',this[_0x181ad8(0x398)]['asObservable']()),K(this,_0x181ad8(0x36a),new _0x49b31d([])),K(this,_0x181ad8(0x318),this[_0x181ad8(0x36a)]['pipe'](_0x2c6200(0x12c))),K(this,_0x181ad8(0x31f),_0x2180b6((_0x443fda,_0x199311)=>{const _0x1bd693=_0x181ad8;let _0x3a9b34={'eventID':_0x3ac41b[_0x1bd693(0x33d)],'data':{'unitID':this['unitID'],'memberID':this[_0x1bd693(0x32f)][_0x1bd693(0x32d)](),'selection':_0x2801fe(_0x443fda,_0x199311['range'])}};this[_0x1bd693(0x32f)][_0x1bd693(0x365)](_0x3a9b34,this[_0x1bd693(0x1c9)]);},0x64));}[_0x551ea6(0x121)](){const _0x378096=_0x551ea6;super[_0x378096(0x121)](),this[_0x378096(0x398)][_0x378096(0x32a)](new Map()),this['_cursorInfo$']['complete'](),this[_0x378096(0x36a)]['next']([]),this[_0x378096(0x36a)]['complete']();}[_0x551ea6(0x37b)](){const _0x526a11=_0x551ea6;this['_init']||(this[_0x526a11(0x1db)]=!0x0,this['_session'][_0x526a11(0x2a0)][_0x526a11(0x19f)](_0x31ffb0(this['dispose$']))[_0x526a11(0x1d6)](_0x5277a1=>{const _0x203a9d=_0x526a11;_0x5277a1===_0x4af4b1['ONLINE']?this['_toggleOnline']():this[_0x203a9d(0x209)]();}),this[_0x526a11(0x32f)][_0x526a11(0x320)][_0x526a11(0x19f)](_0x31ffb0(this['dispose$']))[_0x526a11(0x1d6)](_0x4d654e=>{const _0x34b14f=_0x526a11;let _0x30db59=_0x4d654e[_0x34b14f(0x1d9)];_0x30db59===_0x3ac41b[_0x34b14f(0x33d)]&&this[_0x34b14f(0x15f)](_0x4d654e),_0x30db59===_0x3ac41b[_0x34b14f(0x158)]&&this[_0x34b14f(0x394)](_0x4d654e);}),this[_0x526a11(0x191)](),this[_0x526a11(0x1e0)](this[_0x526a11(0x142)]['onCommandExecuted'](_0xe077e7=>{const _0x4955b0=_0x526a11;if(this['_online']&&_0xe077e7['id']===_0x599836['id']&&_0xe077e7[_0x4955b0(0x24c)]['unitId']===this['unitID']){let _0x466ecc=_0xe077e7[_0x4955b0(0x24c)];this['_updateLocalCursor'](_0x466ecc[_0x4955b0(0x241)],_0x466ecc['selections'][0x0]);}})));}[_0x551ea6(0x15f)](_0x57f3c1){const _0xc37821=_0x551ea6;var _0x3a1e06;let {memberID:_0x208e7b,selection:_0x43b6c3}=_0x57f3c1[_0xc37821(0x1c1)],{sheetName:_0x3aae18,range:_0x17cc0c}=_0x3ffcdd(_0x43b6c3),_0x842e5b={'name':((_0x3a1e06=this['_memberService']['getMember'](this[_0xc37821(0x1c9)],_0x208e7b))==null?void 0x0:_0x3a1e06[_0xc37821(0x1ad)])??_0xc37821(0x249),'range':this[_0xc37821(0x33e)](_0x3aae18,_0x17cc0c),'sheetID':_0x3aae18,'color':this['_colorAssignService'][_0xc37821(0x1f1)](_0x208e7b),'selection':_0x43b6c3},_0x26591f=this[_0xc37821(0x27f)];_0x26591f[_0xc37821(0x3a5)](_0x208e7b,_0x842e5b),this[_0xc37821(0x398)]['next'](_0x26591f);}[_0x551ea6(0x394)](_0x5ead90){const _0x1c7a40=_0x551ea6;let {memberID:_0x273e5f}=_0x5ead90[_0x1c7a40(0x1c1)],_0xf7699e=this['cursorInfo'];_0xf7699e[_0x1c7a40(0x152)](_0x273e5f),this[_0x1c7a40(0x398)]['next'](_0xf7699e);}['_getMergeRange'](_0x261721,_0x586144){const _0x52561b=_0x551ea6;var _0x1804f3;let _0x1aeae0=(_0x1804f3=this[_0x52561b(0x266)][_0x52561b(0x26e)](this[_0x52561b(0x1c9)],_0x3da1b0[_0x52561b(0x23d)]))==null||(_0x1804f3=_0x1804f3[_0x52561b(0x17e)](_0x261721))==null?void 0x0:_0x1804f3[_0x52561b(0x1bc)]();return(_0x1aeae0==null?void 0x0:_0x1aeae0[_0x52561b(0x135)](_0x543696=>_0x57cc96['contains'](_0x543696,_0x586144)))||_0x586144;}[_0x551ea6(0x191)](){const _0xad1cd4=_0x551ea6;let _0x17f75c=new _0x45da21(),_0x5c2a05=bn(),_0x401d43=()=>{const _0x4e0657=_0x5c41;_0x17f75c['dispose']();let _0x1e2f34=(_0x38cef5,_0x576846,_0x3e04c1,_0x5689e8)=>{const _0x837984=_0x5c41;let _0x12650d=[];switch(_0x38cef5['id']){case _0x224fe9[_0x837984(0x2fc)]:_0x12650d=_0x17e9a4(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x151)]:_0x12650d=_0x4843bc(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x175)]:_0x12650d=_0x47a4f8(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x399)]:_0x12650d=_0x44532c(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x353)]:_0x12650d=_0x1d6705(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x248)]:_0x12650d=_0x1efaee(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x190)]:_0x12650d=_0x38fbae(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x242)]:_0x12650d=_0x465304(_0x38cef5,_0x5689e8);break;case _0x224fe9[_0x837984(0x391)]:_0x12650d=_0x17ad5b(_0x38cef5,_0x5689e8);}let _0x2a2fcf=_0x1d1c48(_0x12650d,_0x5689e8),_0x52acc8=this[_0x837984(0x27f)][_0x837984(0x150)](_0x576846);if(_0x52acc8&&_0x2a2fcf){let _0xa077c8={..._0x52acc8,'range':_0x2a2fcf};this[_0x837984(0x27f)][_0x837984(0x3a5)](_0x576846,_0xa077c8),_0x5c2a05(()=>{const _0x2e3ce3=_0x837984;let _0x54f056=this['_refRangeService'][_0x2e3ce3(0x2c2)](_0x2a2fcf,_0x5beb92=>(_0x54f056['dispose'](),_0x1e2f34(_0x5beb92,_0x576846,_0x3e04c1,_0x2a2fcf)));_0x17f75c[_0x2e3ce3(0x1b2)](_0x54f056);});}return{'redos':[],'undos':[]};};this[_0x4e0657(0x27f)][_0x4e0657(0x2c4)]((_0x373225,_0x2cab5f)=>{const _0x48f804=_0x4e0657;let {range:_0x2c94a1,sheetID:_0x1a8023}=_0x373225,_0x61a4ec=this[_0x48f804(0x1a2)][_0x48f804(0x2c2)](_0x2c94a1,_0x12d52e=>(_0x61a4ec['dispose'](),_0x1e2f34(_0x12d52e,_0x2cab5f,_0x1a8023,_0x2c94a1)));_0x17f75c[_0x48f804(0x1b2)](_0x61a4ec);});};this[_0xad1cd4(0x1e0)](_0x40df0c(this[_0xad1cd4(0x398)]['subscribe'](()=>{_0x401d43();})));}[_0x551ea6(0x1c0)](){const _0x377734=_0x551ea6;var _0x27db1b,_0x5f526d;if(this['_online']=!0x0,((_0x27db1b=this[_0x377734(0x266)][_0x377734(0x342)]())==null?void 0x0:_0x27db1b[_0x377734(0x29d)]())!==this[_0x377734(0x1c9)])return;let _0x3d8dd6=(_0x5f526d=this['_injector'][_0x377734(0x150)](_0x480a5f)[_0x377734(0x2e1)]())==null?void 0x0:_0x5f526d[0x0],_0x23d91a=this[_0x377734(0x266)][_0x377734(0x2d1)](_0x3da1b0[_0x377734(0x23d)])[_0x377734(0x243)]();_0x3d8dd6&&_0x23d91a&&this[_0x377734(0x31f)](_0x23d91a[_0x377734(0x341)](),_0x3d8dd6);}[_0x551ea6(0x209)](){this['_online']=!0x1;}};xn=J([q(0x2,_0x53cba9(_0x2794a7)),q(0x3,_0x53cba9(hn)),q(0x4,_0x53cba9(_0x27f81c)),q(0x5,_0xdac9a9),q(0x6,_0x86e5be),q(0x7,_0x53cba9(_0x4ee1c7))],xn);let X=class extends _0x26fe67{constructor(_0x3fb855,_0x33963a,_0x42dfff){const _0x7aea2d=_0x551ea6;super(),this[_0x7aea2d(0x266)]=_0x3fb855,this[_0x7aea2d(0x2b9)]=_0x33963a,this[_0x7aea2d(0x2f8)]=_0x42dfff,K(this,_0x7aea2d(0x1dc),new Map()),K(this,_0x7aea2d(0x1d8),new _0x148114()),this[_0x7aea2d(0x1db)]();}[_0x551ea6(0x121)](){const _0xb836d1=_0x551ea6;super[_0xb836d1(0x121)](),this['_entityInit$'][_0xb836d1(0x370)](),this[_0xb836d1(0x1dc)][_0xb836d1(0x2c4)](_0x3bbb78=>_0x3bbb78['dispose']());}[_0x551ea6(0x253)](_0x367f45){const _0xb2dd31=_0x551ea6;let _0x338caa=this[_0xb2dd31(0x1dc)][_0xb2dd31(0x150)](_0x367f45);return _0x338caa?_0x338caa[_0xb2dd31(0x1b8)]:this['_entityInit$'][_0xb2dd31(0x19f)](_0xf2c32b(_0x20faa1=>_0x20faa1['unitID']===_0x367f45),_0x35a8e9(_0x4b9051=>_0x4b9051['cursorInfo$']));}[_0x551ea6(0x1db)](){const _0x3240fe=_0x551ea6;this[_0x3240fe(0x266)]['getTypeOfUnitAdded$'](_0x3da1b0[_0x3240fe(0x23d)])[_0x3240fe(0x19f)](_0x31ffb0(this[_0x3240fe(0x24f)]))[_0x3240fe(0x1d6)](async _0x13c3c0=>{const _0x3e06d2=_0x3240fe;let _0x23bc0d=_0x13c3c0['unit'][_0x3e06d2(0x29d)](),_0x3f59d3=await this[_0x3e06d2(0x2da)](_0x23bc0d);this[_0x3e06d2(0x1d8)][_0x3e06d2(0x32a)](_0x3f59d3),this[_0x3e06d2(0x1dc)]['set'](_0x23bc0d,_0x3f59d3);}),this['_univerInstanceService'][_0x3240fe(0x397)](_0x3da1b0[_0x3240fe(0x1b3)])[_0x3240fe(0x19f)](_0x31ffb0(this[_0x3240fe(0x24f)]))[_0x3240fe(0x19f)](_0xf2c32b(_0x406490=>!_0x406490[_0x3240fe(0x30c)][_0x3240fe(0x29d)]()[_0x3240fe(0x361)]('__')))[_0x3240fe(0x1d6)](async _0x5ed843=>{const _0x24203c=_0x3240fe;let {unit:_0x3e4b6d}=_0x5ed843,_0x5d8fb4=_0x3e4b6d[_0x24203c(0x29d)](),_0x1cece1=await this[_0x24203c(0x1bb)](_0x5d8fb4);this[_0x24203c(0x1d8)][_0x24203c(0x32a)](_0x1cece1),this['_entities'][_0x24203c(0x3a5)](_0x5d8fb4,_0x1cece1);}),_0x55f555(this['_univerInstanceService'][_0x3240fe(0x154)](_0x3da1b0[_0x3240fe(0x1b3)]),this[_0x3240fe(0x266)]['getTypeOfUnitDisposed$'](_0x3da1b0[_0x3240fe(0x23d)]))[_0x3240fe(0x19f)](_0x31ffb0(this['dispose$']))[_0x3240fe(0x1d6)](_0xfcddcb=>{const _0x58147c=_0x3240fe;let _0x5ef77d=_0xfcddcb[_0x58147c(0x29d)](),_0x5071b4=this[_0x58147c(0x1dc)][_0x58147c(0x150)](_0x5ef77d);_0x5071b4&&(_0x5071b4[_0x58147c(0x121)](),this[_0x58147c(0x1dc)][_0x58147c(0x152)](_0x5ef77d));});}async['_startSheetCollabCursor'](_0x4234e6){const _0x31d198=_0x551ea6;let _0x345d05=await this[_0x31d198(0x2f8)]['requireSession'](_0x4234e6),_0x1f2bdd=this[_0x31d198(0x2b9)]['createInstance'](xn,_0x4234e6,_0x345d05);return _0x1f2bdd[_0x31d198(0x37b)](),_0x1f2bdd;}async[_0x551ea6(0x1bb)](_0x56c91d){const _0x22ff53=_0x551ea6;let _0x35286d=await this[_0x22ff53(0x2f8)][_0x22ff53(0x38a)](_0x56c91d),_0x49fb9b=this['_injector'][_0x22ff53(0x125)](yn,_0x56c91d,_0x35286d);return _0x49fb9b['init'](),_0x49fb9b;}};X=J([q(0x0,_0xdac9a9),q(0x1,_0x53cba9(_0x2794a7)),q(0x2,_0x53cba9(_0x523f36))],X);function Sn(_0x47de7c,_0x386d4e){const _0x586f29=_0x551ea6;_0x47de7c[_0x586f29(0x1f4)](),_0x47de7c[_0x586f29(0x34d)]=_0x586f29(0x343);let _0x4f5a47=_0x47de7c[_0x586f29(0x288)](_0x386d4e)[_0x586f29(0x213)];return _0x47de7c[_0x586f29(0x184)](),Math[_0x586f29(0x21d)](_0x4f5a47+0x8,0xc8);}function Cn(_0x35ba8e,_0x571785){const _0x300f30=_0x551ea6;let {radius:_0xfd0212,width:_0x58067a,height:_0x549079}=_0x571785;_0xfd0212??=0x0,_0x58067a??=0x1e,_0x549079??=0x1e;let _0x5b1df3=0x0,_0x8ab180=0x0,_0x25cb79=0x0;_0x5b1df3=_0x8ab180=_0x25cb79=Math[_0x300f30(0x21d)](_0xfd0212,_0x58067a/0x2,_0x549079/0x2),_0x35ba8e['beginPath'](),_0x35ba8e[_0x300f30(0x22d)](_0x5b1df3,0x0),_0x35ba8e[_0x300f30(0x173)](_0x58067a-_0x8ab180,0x0),_0x35ba8e[_0x300f30(0x1fe)](_0x58067a-_0x8ab180,_0x8ab180,_0x8ab180,Math['PI']*0x3/0x2,0x0,!0x1),_0x35ba8e['lineTo'](_0x58067a,_0x549079-_0x25cb79),_0x35ba8e['arc'](_0x58067a-_0x25cb79,_0x549079-_0x25cb79,_0x25cb79,0x0,Math['PI']/0x2,!0x1),_0x35ba8e[_0x300f30(0x173)](0x0,_0x549079),_0x35ba8e[_0x300f30(0x173)](0x0,_0x5b1df3),_0x35ba8e[_0x300f30(0x1fe)](_0x5b1df3,_0x5b1df3,_0x5b1df3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x35ba8e['closePath'](),_0x571785[_0x300f30(0x230)]&&(_0x35ba8e[_0x300f30(0x1f4)](),_0x35ba8e[_0x300f30(0x1c7)]=_0x571785['fill'],_0x571785[_0x300f30(0x256)]===_0x300f30(0x1cf)?_0x35ba8e[_0x300f30(0x230)](_0x300f30(0x1cf)):_0x35ba8e[_0x300f30(0x230)](),_0x35ba8e[_0x300f30(0x184)]());}var wn=class e extends _0x29d2cf{constructor(_0xec7ca4,_0x431b66){const _0x1ee2b8=_0x551ea6;super(_0xec7ca4,_0x431b66),K(this,'color',void 0x0),K(this,_0x1ee2b8(0x217),void 0x0),this['color']=_0x431b66==null?void 0x0:_0x431b66[_0x1ee2b8(0x35c)],this['text']=_0x431b66==null?void 0x0:_0x431b66[_0x1ee2b8(0x217)];}static['drawWith'](_0x2e4f18,_0x118e2a){const _0x467445=_0x551ea6;let {text:_0x410c32,color:_0x247116}=_0x118e2a;_0x2e4f18[_0x467445(0x1f4)](),_0x2e4f18[_0x467445(0x34d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x31316e=_0x2e4f18[_0x467445(0x288)](_0x410c32)['width'];if(Cn(_0x2e4f18,{'height':0x14,'radius':0x4,'width':Sn(_0x2e4f18,_0x410c32),'fill':_0x247116,'evented':!0x1}),_0x2e4f18['fillStyle']=_0x467445(0x247),_0x31316e>0xc0){let _0x5bce8e='',_0x41a16b=0x0;for(let _0x44c5cc of _0x410c32){let _0x59257e=_0x2e4f18[_0x467445(0x288)](_0x44c5cc)[_0x467445(0x213)];if(_0x41a16b+_0x59257e<=0xc0-_0x2e4f18[_0x467445(0x288)](_0x467445(0x238))['width'])_0x5bce8e+=_0x44c5cc,_0x41a16b+=_0x59257e;else{_0x5bce8e+=_0x467445(0x238);break;}}_0x2e4f18[_0x467445(0x38f)](_0x5bce8e,0x4,0xf);}else _0x2e4f18[_0x467445(0x38f)](_0x410c32,0x4,0xf);_0x2e4f18[_0x467445(0x184)]();}['_draw'](_0x30304a){const _0x18c993=_0x551ea6;e[_0x18c993(0x15d)](_0x30304a,this);}};const Tn=_0x551ea6(0x39d);var En=class{constructor(_0x557714,_0x4ce61a,_0x172afb,_0x302321){const _0x2c5056=_0x551ea6;this[_0x2c5056(0x2e5)]=_0x557714,this[_0x2c5056(0x1ba)]=_0x4ce61a,this['_docSkeleton']=_0x172afb,this[_0x2c5056(0x1f5)]=_0x302321,K(this,_0x2c5056(0x3a6),[]),K(this,_0x2c5056(0x2de),null),K(this,_0x2c5056(0x279),null),K(this,_0x2c5056(0x210),null),K(this,_0x2c5056(0x234),null),K(this,_0x2c5056(0x165),null),this[_0x2c5056(0x2b6)]();}set[_0x551ea6(0x2eb)](_0x432f2d){const _0x24e5d5=_0x551ea6;_0x432f2d?(this[_0x24e5d5(0x210)]&&this[_0x24e5d5(0x210)][_0x24e5d5(0x1ab)](),this[_0x24e5d5(0x279)]&&this['_textBubble'][_0x24e5d5(0x227)]()):(this[_0x24e5d5(0x210)]&&this[_0x24e5d5(0x210)]['show'](),this[_0x24e5d5(0x279)]&&this[_0x24e5d5(0x279)]['hide']());}[_0x551ea6(0x121)](){const _0x5518f2=_0x551ea6;for(let _0x4ca9e7 of this[_0x5518f2(0x3a6)])_0x4ca9e7[_0x5518f2(0x121)]();this['_textBubble']&&this[_0x5518f2(0x279)][_0x5518f2(0x121)](),this[_0x5518f2(0x210)]&&this[_0x5518f2(0x210)][_0x5518f2(0x121)](),this[_0x5518f2(0x2de)]&&this[_0x5518f2(0x2de)][_0x5518f2(0x121)](),this['_eventUnsubscribe']&&this[_0x5518f2(0x165)]();}[_0x551ea6(0x2b6)](){const _0x4af269=_0x551ea6;let {_docSkeleton:_0x566a56,_document:_0x4850c6}=this,{color:_0x28d463,name:_0x3bb782,ranges:_0x40d69f}=this['_cursor'],_0x18b198=_0x4850c6[_0x4af269(0x38c)](),{docsLeft:_0x4c1c62,docsTop:_0x4b7d70}=_0x18b198,_0x49e270=new _0x441ca8(_0x18b198,_0x566a56);for(let {startOffset:_0x176ac4,endOffset:_0x1f528c,rangeType:_0x2a766c,segmentId:_0x3ac332,segmentPage:_0x4bcd29,collapsed:_0x164f04,isActive:_0x5053c7}of _0x40d69f){let _0x562955=_0x566a56[_0x4af269(0x2a4)](_0x176ac4,!0x0,_0x3ac332,_0x4bcd29),_0x296417=_0x566a56[_0x4af269(0x2a4)](_0x1f528c,!0x0,_0x3ac332,_0x4bcd29);_0x296417??=_0x566a56[_0x4af269(0x2a4)](_0x1f528c-0x1,!0x1,_0x3ac332,_0x4bcd29);let _0xa306b5=Dn(_0x562955,_0x296417);if(_0x5053c7&&_0xa306b5[_0x4af269(0x270)]){let {contentBoxPointGroup:_0x51525c}=_0x49e270['getRangePointData'](_0x296417,_0x296417);if(_0x51525c[_0x4af269(0x174)]===0x0)continue;this['_drawAnchor'](_0x28d463,_0x51525c,_0x4c1c62,_0x4b7d70,_0x3bb782),this[_0x4af269(0x165)]=this['_handleHover']();}if(_0x562955&&_0x296417){if(_0x2a766c===_0x49f783[_0x4af269(0x12a)]){let {pointGroup:_0x30ac16}=new _0x4f99aa(_0x18b198,_0x566a56)[_0x4af269(0x374)](_0x562955,_0x296417)??{};if(_0x30ac16==null||_0x30ac16['length']===0x0)continue;this[_0x4af269(0x2cc)](_0x28d463,_0x30ac16,_0x4c1c62,_0x4b7d70);}else{if(!_0x164f04&&_0xa306b5[_0x4af269(0x133)]){let {borderBoxPointGroup:_0xb41232}=_0x49e270['getRangePointData'](_0x562955,_0x296417);if(_0xb41232[_0x4af269(0x174)]===0x0)continue;this[_0x4af269(0x339)](_0x28d463,_0xb41232,_0x4c1c62,_0x4b7d70);}}}}}[_0x551ea6(0x229)](_0x531d21,_0x8ae9fd,_0x26441b,_0x37e055,_0x1fc022){const _0x9145bc=_0x551ea6;let {left:_0x294c07,top:_0x1a4907,height:_0x3acd54}=this[_0x9145bc(0x26f)](_0x8ae9fd),_0x4b74e4=1.5/this[_0x9145bc(0x131)](),_0x5d1ce0=new _0x5193a5(Tn+_0x40fbdd(0x6),{'left':_0x294c07+_0x26441b-_0x4b74e4,'top':_0x1a4907+_0x37e055,'height':_0x3acd54,'width':1.5,'fill':_0x531d21||_0x957355(_0x24854e[_0x9145bc(0x347)],0x0),'strokeWidth':_0x4b74e4,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x9145bc(0x2de)]=_0x5d1ce0,this[_0x9145bc(0x1ba)][_0x9145bc(0x16f)](_0x5d1ce0,_0x43d39d);let _0x3e6101=new _0x5193a5(Tn+_0x40fbdd(0x6),{'left':_0x294c07+_0x26441b-_0x4b74e4,'top':_0x1a4907+_0x37e055-0x2,'height':0x4,'width':0x4,'fill':_0x531d21||_0x957355(_0x24854e[_0x9145bc(0x347)],0x0),'strokeWidth':0x0,'stroke':_0x531d21||_0x957355(_0x24854e[_0x9145bc(0x347)],0x0),'evented':!0x1});this['_anchorDot']=_0x3e6101,this[_0x9145bc(0x1ba)][_0x9145bc(0x16f)](_0x3e6101,_0x43d39d);let _0x11099f=new wn(Tn+_0x40fbdd(0x6),{'left':_0x294c07+_0x26441b-_0x4b74e4,'top':_0x1a4907+_0x37e055-0x14,'text':_0x1fc022,'color':_0x531d21});this[_0x9145bc(0x279)]=_0x11099f,this['_scene'][_0x9145bc(0x16f)](_0x11099f,_0x43d39d),this[_0x9145bc(0x2eb)]=!0x1;}[_0x551ea6(0x30b)](){const _0x5169a5=_0x551ea6;let _0x397b63=this[_0x5169a5(0x2de)][_0x5169a5(0x281)]['subscribeEvent'](()=>{const _0x603cf1=_0x5169a5;this[_0x603cf1(0x2eb)]=!0x0;}),_0x245cb6=this[_0x5169a5(0x2de)][_0x5169a5(0x221)]['subscribeEvent'](()=>{const _0x23ebc9=_0x5169a5;this[_0x23ebc9(0x234)]&&clearTimeout(this[_0x23ebc9(0x234)]),this[_0x23ebc9(0x234)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5a3434=_0x5169a5;_0x397b63[_0x5a3434(0x1e1)](),_0x245cb6[_0x5a3434(0x1e1)]();};}[_0x551ea6(0x339)](_0x3a02db,_0x3036fd,_0x27e276,_0x5973f2){const _0x3c005a=_0x551ea6;let _0xea8859=0.2,_0x3a1d82=new _0x6df091(_0x3a02db)[_0x3c005a(0x18b)](_0xea8859)['toRgbString'](),_0x3cc551=new _0x29f225(_0x3c005a(0x2fa)+_0x40fbdd(0x6),{'pointsGroup':_0x3036fd,'fill':_0x3a1d82||_0x957355(_0x24854e['black'],_0xea8859),'left':_0x27e276,'top':_0x5973f2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c005a(0x3a6)][_0x3c005a(0x15a)](_0x3cc551),this[_0x3c005a(0x1ba)][_0x3c005a(0x16f)](_0x3cc551,_0x43d39d);}['_drawRectRange'](_0x1f6d0d,_0x4c6fc8,_0x226019,_0x25a452){const _0x37e9de=_0x551ea6;let _0x5139f2=0.2,_0x476bcb=new _0x6df091(_0x1f6d0d)[_0x37e9de(0x18b)](_0x5139f2)[_0x37e9de(0x344)](),_0x1c980b=new _0x29f225('collab-rect-range-'+_0x40fbdd(0x6),{'pointsGroup':_0x4c6fc8,'fill':_0x476bcb||_0x957355(_0x24854e[_0x37e9de(0x347)],_0x5139f2),'left':_0x226019,'top':_0x25a452,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x37e9de(0x3a6)][_0x37e9de(0x15a)](_0x1c980b),this[_0x37e9de(0x1ba)][_0x37e9de(0x16f)](_0x1c980b,_0x43d39d);}[_0x551ea6(0x26f)](_0x53e0b0){let _0x6aa495=_0x53e0b0[0x0],_0x1d67a5=_0x6aa495[0x0],_0x5ee4a2=_0x6aa495[0x2],{x:_0x18aef2,y:_0xc4e7ea}=_0x1d67a5,{x:_0x59a72e,y:_0x8d0ddd}=_0x5ee4a2;return{'left':_0x18aef2,'top':_0xc4e7ea,'width':_0x59a72e-_0x18aef2,'height':_0x8d0ddd-_0xc4e7ea};}[_0x551ea6(0x131)](){const _0x291ddf=_0x551ea6;let {scaleX:_0x31f3aa,scaleY:_0x37135d}=this[_0x291ddf(0x1ba)][_0x291ddf(0x396)]();return Math[_0x291ddf(0x12f)](_0x31f3aa,_0x37135d);}};function Dn(_0xcc2db3,_0x4a96ab){const _0x5257bd=_0x551ea6;if(!_0x4a96ab)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0xcc2db3||_0xcc2db3[_0x5257bd(0x319)]!==_0x4a96ab[_0x5257bd(0x319)]||(_0xcc2db3[_0x5257bd(0x319)]===_0x2d6840[_0x5257bd(0x19d)]||_0xcc2db3[_0x5257bd(0x319)]===_0x2d6840['FOOTER'])&&_0xcc2db3[_0x5257bd(0x299)]!==_0x4a96ab['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x373d0b=_0x2ac8f4(_0xcc2db3),_0x36d658=_0x2ac8f4(_0x4a96ab);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x373d0b==null||_0x36d658==null?_0x373d0b==null&&_0x36d658==null:_0x373d0b[_0x5257bd(0x15e)]===_0x36d658[_0x5257bd(0x15e)]&&_0x373d0b[_0x5257bd(0x2b1)]===_0x36d658[_0x5257bd(0x2b1)]&&_0x373d0b[_0x5257bd(0x179)]===_0x36d658[_0x5257bd(0x179)]};}let On=class extends _0x26fe67{constructor(_0x5bcc0f,_0x1f3277,_0x537b35,_0x186789,_0x9b726d){const _0x5dc7ea=_0x551ea6;super(),this[_0x5dc7ea(0x28d)]=_0x5bcc0f,this['_docSkeletonManagerService']=_0x1f3277,this[_0x5dc7ea(0x24d)]=_0x537b35,this[_0x5dc7ea(0x142)]=_0x186789,this[_0x5dc7ea(0x277)]=_0x9b726d,K(this,_0x5dc7ea(0x27e),[]),K(this,_0x5dc7ea(0x252),[]),this[_0x5dc7ea(0x1db)]();}[_0x551ea6(0x1db)](){const _0x20cd6d=_0x551ea6;let _0x11f35d=this[_0x20cd6d(0x28d)][_0x20cd6d(0x2a2)],_0x83f3fb=this['_docSkeletonManagerService'];this[_0x20cd6d(0x1e0)](_0x5ed20b([this[_0x20cd6d(0x24d)][_0x20cd6d(0x253)](_0x11f35d),this[_0x20cd6d(0x277)][_0x20cd6d(0x14b)]])['pipe'](_0x2a589e(([_0x5c93bd,_0x2680a6])=>({'skeleton':_0x83f3fb['getSkeleton'](),'cursors':[..._0x5c93bd[_0x20cd6d(0x231)]()]['flatMap'](_0x57aaf0=>({..._0x57aaf0,'color':this[_0x20cd6d(0x277)][_0x20cd6d(0x1fa)](_0x57aaf0[_0x20cd6d(0x35c)])}))})))[_0x20cd6d(0x1d6)](_0x3a7a24=>{const _0x2fcfd8=_0x20cd6d;if(this[_0x2fcfd8(0x30a)](),_0x3a7a24){let {skeleton:_0x1db30c,cursors:_0x4ae030}=_0x3a7a24;this[_0x2fcfd8(0x127)](_0x1db30c,_0x4ae030);}})),this[_0x20cd6d(0x1aa)](),this[_0x20cd6d(0x334)]();}[_0x551ea6(0x127)](_0x350f5c,_0x22f62a){const _0xfa0e17=_0x551ea6;let {scene:_0x154b9a,mainComponent:_0x1a9b50}=this[_0xfa0e17(0x28d)],_0x5beaa8=_0x22f62a['map'](_0x3e5ee9=>new En(_0x3e5ee9,_0x154b9a,_0x350f5c,_0x1a9b50));this['_cursorShapes']=_0x5beaa8,this[_0xfa0e17(0x252)]=_0x22f62a;}['_refreshCollabCursors'](){const _0x25d64b=_0x551ea6;this[_0x25d64b(0x30a)]();let {scene:_0x5945d3,mainComponent:_0x2265c3}=this[_0x25d64b(0x28d)],_0xd02f88=this[_0x25d64b(0x2bc)][_0x25d64b(0x31c)](),_0xe26adc=this[_0x25d64b(0x252)][_0x25d64b(0x267)](_0x5520c4=>new En(_0x5520c4,_0x5945d3,_0xd02f88,_0x2265c3));this[_0x25d64b(0x27e)]=_0xe26adc;}[_0x551ea6(0x30a)](){const _0x3c88e3=_0x551ea6;this[_0x3c88e3(0x27e)][_0x3c88e3(0x2c4)](_0x228249=>_0x228249['dispose']()),this[_0x3c88e3(0x27e)]=[];}[_0x551ea6(0x334)](){const _0x16edff=_0x551ea6;let _0x7795fe=[_0x4c71b4['id']];this[_0x16edff(0x1e0)](this[_0x16edff(0x142)][_0x16edff(0x32e)](_0x7b1955=>{const _0x40e0fb=_0x16edff;_0x7795fe[_0x40e0fb(0x180)](_0x7b1955['id'])&&_0x7b1955[_0x40e0fb(0x24c)]['unitId']===this[_0x40e0fb(0x28d)][_0x40e0fb(0x2a2)]&&this[_0x40e0fb(0x1ef)]();}));}[_0x551ea6(0x1aa)](){const _0x4bb72d=_0x551ea6;this['disposeWithMe'](_0x3805ae(this[_0x4bb72d(0x28d)]['engine'][_0x4bb72d(0x29c)])[_0x4bb72d(0x19f)](_0x437de6(_0x5e001f=>_0x5e001f['type']===_0x14fcbf[_0x4bb72d(0x28b)]),_0x4230fa(0x10))[_0x4bb72d(0x1d6)](()=>{const _0x269b3f=_0x4bb72d;this[_0x269b3f(0x1ef)]();}));}};On=J([q(0x1,_0x53cba9(_0x552c39)),q(0x2,_0x53cba9(X)),q(0x3,_0x86e5be),q(0x4,_0x53cba9(_0x5c86d9))],On);var kn=class extends _0x29d2cf{constructor(_0x5d5c62,_0x2bcaab){const _0x4d31de=_0x551ea6;super(_0x5d5c62,_0x2bcaab),K(this,_0x4d31de(0x336),void 0x0),K(this,_0x4d31de(0x39b),!0x1),K(this,_0x4d31de(0x34e),void 0x0),K(this,_0x4d31de(0x298),''),K(this,'_labelPosition',_0x4d31de(0x273)),K(this,_0x4d31de(0x25a),void 0x0),K(this,_0x4d31de(0x373),void 0x0),K(this,'_highlight',void 0x0),K(this,_0x4d31de(0x262),0x4),K(this,'_blinkTimer',void 0x0),K(this,'_blinkIntervalTimer',void 0x0),K(this,'_isBlinkVisible',!0x0),K(this,_0x4d31de(0x354),0x0),K(this,_0x4d31de(0x27d),_0x4d31de(0x330)),_0x2bcaab&&(this[_0x4d31de(0x167)](_0x2bcaab),_0x2bcaab[_0x4d31de(0x1bd)]&&(_0x2bcaab[_0x4d31de(0x1e2)]??this[_0x4d31de(0x262)])&&this[_0x4d31de(0x19a)](_0x2bcaab[_0x4d31de(0x1e2)]??this['_highlightSecond'])),this[_0x4d31de(0x281)][_0x4d31de(0x368)](()=>this[_0x4d31de(0x167)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4d31de(0x368)](()=>this[_0x4d31de(0x167)]({'hovered':!0x1}));}['setOffsetY'](_0x3689d0){const _0x56c894=_0x551ea6;this[_0x56c894(0x354)]=_0x3689d0;}['setShapeProps'](_0x5b8d54){const _0x31c5f3=_0x551ea6;this[_0x31c5f3(0x336)]=_0x5b8d54[_0x31c5f3(0x35c)]??this['_color'],this['_hovered']=_0x5b8d54['hovered']??this[_0x31c5f3(0x39b)],this[_0x31c5f3(0x34e)]=_0x5b8d54[_0x31c5f3(0x369)]??this[_0x31c5f3(0x34e)],this['_name']=_0x5b8d54['name']??this[_0x31c5f3(0x298)],this[_0x31c5f3(0x192)]=_0x5b8d54[_0x31c5f3(0x219)]??this[_0x31c5f3(0x192)],this[_0x31c5f3(0x25a)]=_0x5b8d54[_0x31c5f3(0x2f5)]??this[_0x31c5f3(0x25a)],this[_0x31c5f3(0x373)]=_0x5b8d54['showText']??this['_showText'],this['_labelHorizontalPosition']=_0x5b8d54['labelHorizontalPosition']??this['_labelHorizontalPosition'],_0x5b8d54['highlightSecond']!==void 0x0&&(this[_0x31c5f3(0x262)]=_0x5b8d54[_0x31c5f3(0x1e2)]),_0x5b8d54['highlight']!==void 0x0&&(this['_highlight']=_0x5b8d54[_0x31c5f3(0x1bd)]),_0x5b8d54[_0x31c5f3(0x1f7)]!==void 0x0&&(this[_0x31c5f3(0x354)]=_0x5b8d54[_0x31c5f3(0x1f7)]),this[_0x31c5f3(0x1d7)]({'width':_0x5b8d54[_0x31c5f3(0x213)],'height':_0x5b8d54[_0x31c5f3(0x301)]});}[_0x551ea6(0x1ec)](_0x382e55){const _0x419c23=_0x551ea6;let {row:_0x2b85c6,column:_0x55ca85}=_0x382e55;_0x2b85c6>=this['_range'][_0x419c23(0x166)]&&_0x2b85c6<=this[_0x419c23(0x34e)]['endRow']&&_0x55ca85>=this[_0x419c23(0x34e)][_0x419c23(0x225)]&&_0x55ca85<=this[_0x419c23(0x34e)]['endColumn']?this[_0x419c23(0x167)]({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}[_0x551ea6(0x19a)](_0xe46f98){const _0x51e5ef=_0x551ea6;this[_0x51e5ef(0x17d)](),this[_0x51e5ef(0x2c7)]=!0x0,this[_0x51e5ef(0x356)]=window[_0x51e5ef(0x122)](()=>{const _0x3defda=_0x51e5ef;this[_0x3defda(0x2c7)]=!this['_isBlinkVisible'],this[_0x3defda(0x194)](!0x0);},0x1f4),this[_0x51e5ef(0x124)]=window['setTimeout'](()=>{const _0x1af1ff=_0x51e5ef;this[_0x1af1ff(0x17d)](),this['_isBlinkVisible']=!0x0,this[_0x1af1ff(0x194)](!0x0);},_0xe46f98*0x3e8);}[_0x551ea6(0x17d)](){const _0x4faae3=_0x551ea6;this[_0x4faae3(0x356)]&&=(window[_0x4faae3(0x35f)](this[_0x4faae3(0x356)]),void 0x0),this[_0x4faae3(0x124)]&&=(window['clearTimeout'](this['_blinkTimer']),void 0x0);}['triggerDblclick'](_0x2cb14c){return!0x1;}[_0x551ea6(0x121)](){const _0x28b96d=_0x551ea6;this[_0x28b96d(0x17d)](),super[_0x28b96d(0x121)]();}[_0x551ea6(0x123)](_0x17df15){const _0x54bb22=_0x551ea6;let _0x42da83=this[_0x54bb22(0x336)],_0x54619c=this[_0x54bb22(0x25a)];if(this[_0x54bb22(0x2d0)]&&!this['_isBlinkVisible']&&(_0x42da83=this['_getLighterColor'](this['_color']),_0x54619c=this[_0x54bb22(0x25a)]?this['_getLighterColor'](this[_0x54bb22(0x25a)]):void 0x0),_0x5193a5[_0x54bb22(0x15d)](_0x17df15,{'width':this[_0x54bb22(0x213)],'height':this['height'],'strokeWidth':this[_0x54bb22(0x21a)]||1.5,'stroke':_0x42da83,'evented':!0x1,'fill':_0x54619c}),this[_0x54bb22(0x39b)]||this[_0x54bb22(0x373)]){_0x17df15['save']();let _0x38a199=this[_0x54bb22(0x27d)]===_0x54bb22(0x302)?-Sn(_0x17df15,this[_0x54bb22(0x298)]):this[_0x54bb22(0x213)];_0x17df15[_0x54bb22(0x228)](0x1,0x0,0x0,0x1,_0x38a199,(this['_labelPosition']===_0x54bb22(0x157)?0x0:-0x14)+(this[_0x54bb22(0x354)]??0x0)),wn['drawWith'](_0x17df15,{'text':this[_0x54bb22(0x298)],'color':_0x42da83}),_0x17df15[_0x54bb22(0x184)]();}}[_0x551ea6(0x1b7)](_0x501f46){const _0x457e7d=_0x551ea6;return _0x501f46[_0x457e7d(0x361)]('#')?_0x457e7d(0x24e)+Number[_0x457e7d(0x1c3)](_0x501f46[_0x457e7d(0x138)](0x1,0x3),0x10)+',\x20'+Number[_0x457e7d(0x1c3)](_0x501f46[_0x457e7d(0x138)](0x3,0x5),0x10)+',\x20'+Number[_0x457e7d(0x1c3)](_0x501f46['slice'](0x5,0x7),0x10)+',\x200.2)':_0x501f46[_0x457e7d(0x361)](_0x457e7d(0x1e9))?_0x501f46[_0x457e7d(0x33b)](/[\d.]+\)$/g,_0x457e7d(0x3a8)):_0x501f46[_0x457e7d(0x361)](_0x457e7d(0x2cb))?_0x501f46['replace'](_0x457e7d(0x2cb),_0x457e7d(0x1e9))[_0x457e7d(0x33b)](')',_0x457e7d(0x39e)):_0x501f46;}};let An=class extends _0x26fe67{constructor(_0x1b7c8e,_0x47f957,_0x322ed3,_0xe58df2){const _0x319431=_0x551ea6;super(),this[_0x319431(0x28d)]=_0x1b7c8e,this[_0x319431(0x1d3)]=_0x47f957,this['_collabCursorController']=_0x322ed3,this[_0x319431(0x277)]=_0xe58df2,K(this,_0x319431(0x252),new Set()),K(this,_0x319431(0x295),null),K(this,'_pointerMoveDisposable',null),this[_0x319431(0x1db)]();}[_0x551ea6(0x1db)](){const _0x26366e=_0x551ea6;this[_0x26366e(0x1d3)]['currentSkeleton$'][_0x26366e(0x19f)](_0x378ea2(this[_0x26366e(0x24f)]),_0xff7583(_0x331a1e=>{const _0x185d79=_0x26366e;if(_0x331a1e){let _0x539a35=_0x331a1e[_0x185d79(0x317)];return _0x5ed20b(this[_0x185d79(0x24d)][_0x185d79(0x253)](this['_context']['unitId']),this[_0x185d79(0x277)][_0x185d79(0x14b)])[_0x185d79(0x19f)](_0x2a589e(([_0x584a1b,_0x3edfe1])=>{const _0xea833b=_0x185d79;let _0x268306=new Map();return _0x584a1b[_0xea833b(0x2c4)]((_0x1df712,_0x654f62)=>{const _0x40943d=_0xea833b;if(_0x1df712['sheetID']===_0x539a35){let _0x429426={..._0x1df712};_0x429426[_0x40943d(0x35c)]=this[_0x40943d(0x277)][_0x40943d(0x1fa)](_0x1df712[_0x40943d(0x35c)]),_0x268306[_0x40943d(0x3a5)](_0x654f62,_0x429426);}}),{'skeleton':_0x331a1e,'cursors':_0x268306};}));}return _0x4f9cd5({'skeleton':null,'cursors':new Map()});}))[_0x26366e(0x1d6)](({skeleton:_0xf760e6,cursors:_0x5b2163})=>{const _0x1227fa=_0x26366e;this[_0x1227fa(0x30a)](),_0xf760e6&&this[_0x1227fa(0x127)](_0xf760e6,_0x5b2163);}),this[_0x26366e(0x1e0)](this[_0x26366e(0x1d3)]['currentSkeleton$'][_0x26366e(0x19f)](_0x378ea2(this[_0x26366e(0x24f)]))['subscribe'](_0x40aba7=>{const _0x4c96d2=_0x26366e;var _0x30bf57;if(_0x40aba7==null)return;(_0x30bf57=this[_0x4c96d2(0x21f)])==null||_0x30bf57[_0x4c96d2(0x1e1)](),this[_0x4c96d2(0x21f)]=null;let {skeleton:_0x23c330}=_0x40aba7,{scene:_0x51c2da}=this[_0x4c96d2(0x28d)];this[_0x4c96d2(0x21f)]=_0x51c2da[_0x4c96d2(0x202)]['subscribeEvent'](_0x2180b6(_0x1f2716=>{const _0x55fd46=_0x4c96d2;var _0x1c4ae6,_0x56f0d3;let {offsetX:_0x340786,offsetY:_0x1a2179}=_0x1f2716,{x:_0x22eb1d,y:_0x37ba2e}=_0x51c2da[_0x55fd46(0x13d)](_0x2d71e1[_0x55fd46(0x311)]([_0x340786,_0x1a2179])),{scaleX:_0x777e4d,scaleY:_0x13826e}=_0x51c2da[_0x55fd46(0x396)](),_0x142eb1=_0x51c2da[_0x55fd46(0x33c)](_0x38f24a[_0x55fd46(0x139)]),_0x5bfa88=_0x51c2da[_0x55fd46(0x22e)](_0x2d71e1[_0x55fd46(0x311)]([_0x22eb1d,_0x37ba2e]),_0x142eb1),_0x4a46eb=_0x23c330['getCellIndexByOffset'](_0x340786,_0x1a2179,_0x777e4d,_0x13826e,_0x5bfa88);(((_0x1c4ae6=this[_0x55fd46(0x295)])==null?void 0x0:_0x1c4ae6[_0x55fd46(0x1b9)])!==_0x4a46eb[_0x55fd46(0x1b9)]||((_0x56f0d3=this[_0x55fd46(0x295)])==null?void 0x0:_0x56f0d3[_0x55fd46(0x39c)])!==_0x4a46eb[_0x55fd46(0x39c)])&&this['_cursors']['forEach'](_0x3343a4=>{const _0x357e7f=_0x55fd46;_0x3343a4[_0x357e7f(0x1ec)](_0x4a46eb);});},0x64));})),this[_0x26366e(0x1e0)](_0x40df0c(()=>{const _0x6ecd00=_0x26366e;var _0x3cb027;(_0x3cb027=this[_0x6ecd00(0x21f)])==null||_0x3cb027[_0x6ecd00(0x1e1)](),this['_pointerMoveDisposable']=null;}));}[_0x551ea6(0x127)](_0x1c1c9f,_0x5740d6){const _0x5a64f1=_0x551ea6;let _0x24715=this[_0x5a64f1(0x1d3)]['getCurrentSkeleton']();if(!_0x24715)return;let _0x316214=this[_0x5a64f1(0x1e5)]();if(!_0x316214)return;this[_0x5a64f1(0x252)]['forEach'](_0x17fe9f=>{const _0x48ddcd=_0x5a64f1;_0x17fe9f[_0x48ddcd(0x194)]();});let {scene:_0x38f6d4}=_0x316214,_0x211010=jn(Array[_0x5a64f1(0x338)](_0x5740d6[_0x5a64f1(0x231)]()))[_0x5a64f1(0x267)](_0x5551e6=>{const _0x27c769=_0x5a64f1;let {color:_0x3e8202,range:_0x3a65c1,name:_0x18e21f,selection:_0x48d939,sheetID:_0x5b9c77}=_0x5551e6,{startColumn:_0x102541,startRow:_0x35a112,endColumn:_0x1aeef6,endRow:_0x3dbeba}=_0x3a65c1,_0x14a30c=_0x48f74c(_0x35a112,_0x102541,_0x38f6d4,_0x24715),_0x241dda=_0x48f74c(_0x3dbeba,_0x1aeef6,_0x38f6d4,_0x24715),{columnHeaderHeightAndMarginTop:_0x308117}=_0x24715,{startX:_0xbe3dcf,startY:_0x24ed57}=_0x14a30c,{endX:_0x1e2f95,endY:_0x5468ff}=_0x241dda,_0xf8afb5=_0x1e2f95-_0xbe3dcf,_0x428147=_0x5468ff-_0x24ed57;return new kn(_0x18e21f,{'labelPosition':_0x24ed57-_0x308117>=0x14?_0x27c769(0x273):_0x27c769(0x157),'sheetID':_0x5b9c77,'range':_0x3a65c1,'color':_0x3e8202,'name':_0x18e21f,'selection':_0x48d939,'left':_0xbe3dcf,'top':_0x24ed57,'width':_0xf8afb5,'height':_0x428147,'evented':!0x1,'zIndex':0x1389});});_0x38f6d4[_0x5a64f1(0x23b)](_0x211010,0x1),this[_0x5a64f1(0x252)]=new Set(_0x211010);}['_removeCollabCursors'](){const _0x1e8b55=_0x551ea6;var _0x50f5d3;(_0x50f5d3=this['_cursors'])==null||_0x50f5d3[_0x1e8b55(0x2c4)](_0x33b95a=>_0x33b95a[_0x1e8b55(0x121)]());}[_0x551ea6(0x1e5)](){const _0x196aaa=_0x551ea6;return _0x5258fd(this['_context'][_0x196aaa(0x30c)],this[_0x196aaa(0x28d)]);}};An=J([q(0x1,_0x53cba9(_0x405a0b)),q(0x2,_0x53cba9(X)),q(0x3,_0x53cba9(_0x5c86d9))],An);function jn(_0x21c230){const _0x29bd02=_0x551ea6;let _0x3bdc33=new Map();return _0x21c230['forEach'](_0x5c0c54=>{const _0x1d59bf=_0x5c41;if(_0x3bdc33['has'](_0x5c0c54[_0x1d59bf(0x382)])){let _0x44b1fc=_0x3bdc33[_0x1d59bf(0x150)](_0x5c0c54['selection']);_0x44b1fc[_0x1d59bf(0x1ad)]+=',\x20'+_0x5c0c54[_0x1d59bf(0x1ad)];}else _0x3bdc33[_0x1d59bf(0x3a5)](_0x5c0c54['selection'],_0x5c0c54);}),Array[_0x29bd02(0x338)](_0x3bdc33['values']());}function Mn(_0x54a4e5){const _0x12164a=_0x551ea6;return typeof _0x54a4e5==_0x12164a(0x211)&&!!_0x54a4e5;}function Nn(_0x2ef94f){const _0xc62e42=_0x551ea6;return _0x2ef94f[_0xc62e42(0x1d9)]===_0x3ac41b[_0xc62e42(0x33d)]&&_0xc62e42(0x1c1)in _0x2ef94f&&Mn(_0x2ef94f[_0xc62e42(0x1c1)])&&typeof _0x2ef94f[_0xc62e42(0x1c1)][_0xc62e42(0x245)]==_0xc62e42(0x212)&&typeof _0x2ef94f[_0xc62e42(0x1c1)]['selection']==_0xc62e42(0x212);}function _0x4d12(){const _0x145098=['_docSyncEditingCollabCursorService','syncEditingCollabCursor','_watchBlockProgress','sheetId','roomMembers$','pageType','filter','reconnect','getSkeleton','enableOfflineEditing','yellow.400','_updateLocalCursor','event$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','onStarting','10980KoYBGE','_localeService','purple.300','entries','_activeSaveTaskMap','loadedBlocks','ACTIVE_UNIT_EVENT_CHANNEL','next','all','CONFLICT','getMemberID','onCommandExecuted','_session','right','_docClipboardService','transformStateCache','getValue','_initCommandExecutedListener','getUnitStatus$','_color','univer-flex\x20univer-items-center\x20univer-justify-center','from','_drawTextRange','_disposeEntity','replace','getViewport','UPDATE_CURSOR','_getMergeRange','keys','split','getSheetId','getFocusedUnit','bold\x2013px\x20Arial,\x20sans-serif','toRgbString','icon','editingUnit','black','conflict$','enableFrontendLog','pluginName','_uploadLog','loadOfflineData','font','_range','red.300','_syncPresenceStatusComponents','isArray','setRemotePresence','InsertRangeMoveRightCommandId','_offsetY','unitType','_blinkIntervalTimer','getCollabEntity$','getCurrentTypeOfUnit$','_getSaveTimeout','_logService','online$','color','_disabled','state','clearInterval','join','startsWith','enableDefaultConflictUI','userId','_memberService','send','_createSocketURL','status$','subscribeEvent','range','_roomMembers$','collaboration-client-ui.conflict.processing','_handleHeartbeatEvent','Warning','wsSessionTicketUrl','_showSaveTimedOutMessage','complete','disposeUnit','setConfig','_showText','getRangePointData','kind','doc.mutation.rich-text-editing','location','with','Failed','_initEvent','init','finally','univer-m-0\x20univer-p-0','setTimeout','OFFLINE','permission','collabCursorState$','selection','true','_collaborationUIEventService','number','addEventListener','OPERATION','getItem','saveImage','requireSession','result','getOffsetConfig','pointer','onRendered','fillText','2799OYrDiQ','RemoveRowCommandId','_registerPresenceStatusComponent','remove','_onCursorDelete','_docSelectionManagerService','getAncestorScale','getTypeOfUnitAdded$','_cursorInfo$','InsertRangeMoveDownCommandId','getActiveRange','_hovered','row','collab-text-anchor-',',\x200.2)','_renderManagerService','catch','getUndoRedoMutationParamsCache','dark:focus:!univer-ring-offset-gray-800','roomMembers','2754291MIhvKT','set','_shapes','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','0.2)','dispose','setInterval','_draw','_blinkTimer','createInstance','textRanges','_updateCollabCursors','createSocket','_online','RECT','_imageIoService','static','1txRHjr','transformMutation','max','addClipboardHook','_getScale','_reloadPage','canRenderSelection','_disposed','find','allSettled','_initWindowErrorListener','slice','VIEW_MAIN','_dispose$','m1Prime','visibilityState','getCoordRelativeToViewport','searchParams','div','_timeoutState$','loading','_commandService','post','shareInterval','filename','setItem','_normalizeUserId','_handleLeaveEvent','content','options','currentTheme$','_initUserListener','COMPLETE','.title','transformRemoteChangeset','get','DeleteRangeMoveUpCommandId','delete','redoState','getTypeOfUnitDisposed$','_getUserId','onLine','bottom','USERS_LEAVE','packageName','push','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','storage','drawWith','pageIndex','_onCursorUpdate','HEADER_MENU','runId','_revisionService','getLocalPresence','SYNCED','_eventUnsubscribe','startRow','setShapeProps','_isDisposed','_updateMessage','toISOString','_config','ticket','_cachedData','origin','addObject','getCurrentUser','invokeId','permission_rejected','lineTo','length','InsertColCommandId','_transformHistoryAndStateStack','_scheduleSaving','JOIN_ROOM_FAILED','columnIndex','getStateCache','_transformService','colno','_stopBlinking','getSheetBySheetId','AWAITING_WITH_PENDING','includes','tableSource','univer-inline-flex\x20univer-items-center\x20univer-justify-center','code','restore','_clearTimeoutState','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','constructor','defineProperty','preventDefault','univer-border-none\x20univer-bg-transparent','setAlpha','online','univer-text-red-500','span','timedOut','MoveRangeCommandId','_onRefRangeChange','_labelPosition','pulse','makeDirty','_initUnhandledRejectionListener','timeoutState$','FETCH_MISS','registerRenderModule','_id','_startBlinking','symbol','collaboration-client-ui.collaboration.closeRoom','HEADER','transformIMECache','pipe','_handleEvent','button','_refRangeService','_colorAssignService','NOT_COLLAB','collaboration-client-ui.collabStatus.conflict','collaboration-client-ui.snapshotLoading.refresh','_instanceService','source','remote_revert','_initResize','hide','ONLINE','name','some','_initPresenceStatusComponents','_pendingEntities','_presenceAdapterRegistry','add','UNIVER_DOC','_scheduleHeartbeat','ranges','3732330OogQMg','_getLighterColor','cursorInfo$','column','_scene','_startDocCollabCursor','getMergeData','highlight','asObservable','_replaceConflictNotification','_toggleOnline','data','registerBeforeClose','parseInt','_adapterRegistry','replaceSelectionInfoWithoutRefresh','univer-h-8\x20univer-w-8\x20univer-rounded-lg','fillStyle','_initEntityListener','unitID','deepClone','_removeClearOtherTimer','_startEntity','saveOfflineData','colorClass','evenodd','reason','tableId','polite','_sheetSkeletonManagerService','_status$','ERROR','subscribe','transformByState','_entityInit$','eventID','_blockProgressWatches','_init','_entities','getConfig','newValue','_docTransformSelectionsService','disposeWithMe','unsubscribe','highlightSecond','_handleJoinEvent','indicator','_getSheetObject','tooltipKey','_initialized','_unitStatus','rgba','_scheduleClearOtherTimer','univer-text-gray-400','onMouseMove','runOnServer','message','_refreshCollabCursors','CLOSE_ROOM','assignAColorForMemberID','[Unhandled\x20Rejection]:\x20','body','save','_document','SOCKET_FAILED_RETRY','offsetY','socket$','_bindAdapter','getColorFromTheme','state$','stage','getAllUnitsForType','arc','removeEventListener','activate','adapters$','onPointerMove$','refreshLabel','_unitOnClients','unload','parse','transformMutationsWithChangeset','key','_toggleOffline','executeCommand','_registerDependencies','href','_getSessionTicket','_monkeyPatchLogService','Error','_anchorDot','object','string','width',':backup:','5643456xDyLUm','_listenToOfflineEvent','text','primary','labelPosition','strokeWidth','collaboration-client-ui.','_saveTaskMap','min','stringify','_pointerMoveDisposable','univer-transition-all\x20univer-duration-200','onPointerLeave$','_colorIndex','_transformPreviousActiveRange','_collaborationSessionService','startColumn','error','show','transform','_drawAnchor','AWAITING','collaboration-client-ui.session.will-retry','NO_OTHER_CLIENTS_EDITING','moveTo','getScrollXYInfoByViewport','changesetResend$','fill','values','_showConflictProcessingNotification','_httpService','_hideTimer','_snapshotLoadingService','addHandlerCallback','decorate','...','_clearOtherTimers','collaboration-client-ui.config','addObjects','function','UNIVER_SHEET','collaboration-client-ui.collabStatus.fetchMiss','/universer-api/frontend/logs','collaboration-client-ui.collaboration.single-unit.warning','subUnitId','RemoveColCommandId','getActiveSheet','_messageService','memberID','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','#FFF','InsertRowCommandId','Unknown\x20user','_heartbeatTimer','toString','params','_collabCursorController','rgba(','dispose$','getOwnPropertyDescriptor','[LogService\x20Error]:\x20','_cursors','getCollabCursors$','811054fCNCsI','lineno','fillRule','selectedIds','focusedId','isFinite','_backgroundColor','isActive','size','undoState','statusUIPart','search','univer-text-orange-500','.content','_highlightSecond','getMember','_localStorageService','_notificationService','_univerInstanceService','map','_presenceStatusRegistrations','registerComponent','1.2.0','_docTransformStateCacheService','_sendLocalPresence','mutations','getUnit','_getAnchorBounding','canRenderAnchor','clear','_showConflictCacheClearFailedNotification','top','_uiPartsService','_registerRenderDependencies','_assignedColors','_themeService','getCollabEntities','_textBubble','_adapterDisposables','_online$','_collaborationController','_labelHorizontalPosition','_cursorShapes','cursorInfo','collaboration-client-ui.conflict.title','onPointerEnter$','saveTaskMap','univer-appearance-none','getDocRanges','every','focus','stream','measureText','exhaustSavingTask','collaboration-client-ui.operation.update-remote-unit-presence','resize','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_context','_docTransformIMECacheService','_clearRemotePresences','update','updateOfflineData','_initSaveTimedOutMessage','_selfUnitIDs','setActiveRange','_lastPointer','then','has','_name','segmentPage','totalBlocks','_onConflict','onTransformChange$','getUnitId','_trackActiveSaveTask','_disposeEntitiesForType','sessionStatus$','_docStateChangeManagerService','unitId','collaboration-client-ui.collabClient.tooltip.reconnect','findNodePositionByCharIndex','clickable','_saveCache','univer-text-green-500','small','_localCacheService','reload','removeItem','_messageIds','LOADING_BLOCKS','OTHER_CLIENTS_EDITING','_transformUndoRedoStack','prepareTransformSelections','columnGroupId','GET','presenceKind','_conflictNotification','elapsedMs','_render','collaboration-client-ui.snapshotLoading.timeout','_collabCursorState$','_injector','collaboration-client-ui.session.connection-failed','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_docSkeletonManagerService','_send','_userManagerService','_saveTimedOutMessages','GLOBAL','getRenderUnitById','registerRefRange','stack','forEach','univer-text-blue-500','@univerjs-pro/collaboration-client-ui','_isBlinkVisible','memberId','_doCreateSocket','jiqing.500','rgb','_drawRectRange','spin','getSelectionInfo','_retryingConflictCacheUnitIDs','_highlight','getCurrentUnitOfType','2072KMnMoK','_removeRemotePresence','getCurrentRevOfUnit','_initStatusComponent','warning','_adapter','_removeSaveTimedOutMessage','visibilitychange','_startSheetCollabCursor','unhandledrejection','_initConflictHandling','152YUPaAM','_anchor','unshift','_syncEditingCollabCursorService','getCurrentSelections','enableDocumentCollaborationUI','setUndoRedoMutationParamsCache','_initStatusListener','_cursor','timeoutId','m2Prime','TEXT','alert','entityInit$','_hover','now','Enter','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','_clearBlockProgressWatch','collaboration-client-ui.collabStatus.syncing','_ensureSubject','offline','application/json','call','backgroundColor','_beforeCloseService','clearRemotePresences','_collabSessionService','visible','collab-text-range-','_listenToOnlineEvent','DeleteRangeMoveLeftCommandId','clearOfflineData','_configService','20480250XzLiCD','clearTimeout','height','left','collaboration-client-ui.session.collaboration-timeout','status','endOffset','imageSourceType','snapshot-loading-timeout','type','cacheCleared','_removeCollabCursors','_handleHover','unit','collaboration-client-ui.conflict.clearFailed','localPresence$','_syncAdapters','resolve','FromArray','_memberID','startOffset'];_0x4d12=function(){return _0x145098;};return _0x4d12();}function Pn(_0x516b5e){const _0x43a1cb=_0x551ea6;return _0x516b5e[_0x43a1cb(0x1d9)]===_0x3ac41b['USERS_LEAVE']&&_0x43a1cb(0x1c1)in _0x516b5e&&Mn(_0x516b5e[_0x43a1cb(0x1c1)])&&typeof _0x516b5e[_0x43a1cb(0x1c1)][_0x43a1cb(0x245)]=='string';}function Fn(_0x68911,_0x567cea){const _0x2d1229=_0x551ea6;let _0x1f2e14;try{_0x1f2e14=JSON[_0x2d1229(0x206)](_0x68911);}catch{return null;}if(!Mn(_0x1f2e14)||typeof _0x1f2e14[_0x2d1229(0x375)]!=_0x2d1229(0x212)||typeof _0x1f2e14[_0x2d1229(0x2a2)]!=_0x2d1229(0x212)||typeof _0x1f2e14[_0x2d1229(0x241)]!=_0x2d1229(0x212))return null;let _0x2310b1=typeof _0x1f2e14[_0x2d1229(0x355)]==_0x2d1229(0x385)?_0x1f2e14['unitType']:_0x567cea;if(_0x2310b1==null)return null;let _0x53e96e=Mn(_0x1f2e14['pointer'])&&typeof _0x1f2e14['pointer']['x']=='number'&&Number[_0x2d1229(0x259)](_0x1f2e14[_0x2d1229(0x38d)]['x'])&&typeof _0x1f2e14[_0x2d1229(0x38d)]['y']==_0x2d1229(0x385)&&Number[_0x2d1229(0x259)](_0x1f2e14[_0x2d1229(0x38d)]['y'])?{'x':_0x1f2e14['pointer']['x'],'y':_0x1f2e14[_0x2d1229(0x38d)]['y']}:null;return{'kind':_0x1f2e14[_0x2d1229(0x375)],'unitType':_0x2310b1,'unitId':_0x1f2e14[_0x2d1229(0x2a2)],'subUnitId':_0x1f2e14['subUnitId'],'selectedIds':Array[_0x2d1229(0x351)](_0x1f2e14['selectedIds'])?_0x1f2e14['selectedIds'][_0x2d1229(0x31a)](_0x2ba09f=>typeof _0x2ba09f=='string'):[],'focusedId':typeof _0x1f2e14['focusedId']=='string'?_0x1f2e14[_0x2d1229(0x258)]:null,'pointer':_0x53e96e};}function In(_0x14b92f,_0x2803a4,_0x38fc71){const _0x45cbcc=_0x551ea6;return{'kind':_0x2803a4,'unitType':_0x14b92f,'unitId':_0x38fc71['unitId'],'subUnitId':_0x38fc71[_0x45cbcc(0x241)],'selectedIds':Array[_0x45cbcc(0x338)](_0x38fc71['selectedIds']),'focusedId':_0x38fc71[_0x45cbcc(0x258)],'pointer':_0x38fc71[_0x45cbcc(0x38d)]?{..._0x38fc71[_0x45cbcc(0x38d)]}:null};}let Ln=class extends _0x26fe67{constructor(_0x3b06e9,_0x598041,_0x5e93a8,_0x5d7db6,_0x394300,_0x469712){const _0x2068ca=_0x551ea6;super(),this[_0x2068ca(0x2a2)]=_0x3b06e9,this[_0x2068ca(0x32f)]=_0x598041,this[_0x2068ca(0x2d7)]=_0x5e93a8,this[_0x2068ca(0x1a3)]=_0x5d7db6,this['_memberService']=_0x394300,this[_0x2068ca(0x142)]=_0x469712,K(this,_0x2068ca(0x129),!0x1),K(this,_0x2068ca(0x1e7),!0x1);}get[_0x551ea6(0x355)](){const _0x4f958d=_0x551ea6;return this[_0x4f958d(0x2d7)][_0x4f958d(0x355)];}[_0x551ea6(0x121)](){const _0x59df3c=_0x551ea6;this[_0x59df3c(0x28f)](),super[_0x59df3c(0x121)]();}[_0x551ea6(0x37b)](){const _0x5818aa=_0x551ea6;this[_0x5818aa(0x1e7)]||(this[_0x5818aa(0x1e7)]=!0x0,this[_0x5818aa(0x32f)]['sessionStatus$'][_0x5818aa(0x19f)](_0x31ffb0(this[_0x5818aa(0x24f)]))[_0x5818aa(0x1d6)](_0x265474=>{const _0x434820=_0x5818aa;if(_0x265474===_0x4af4b1[_0x434820(0x1ac)]){this[_0x434820(0x129)]=!0x0;let _0x52e8e4=this[_0x434820(0x2d7)][_0x434820(0x163)](this[_0x434820(0x2a2)]);_0x52e8e4&&this[_0x434820(0x26c)](_0x52e8e4);}else this[_0x434820(0x129)]=!0x1,this[_0x434820(0x28f)]();}),this['_session'][_0x5818aa(0x320)][_0x5818aa(0x19f)](_0x31ffb0(this['dispose$']))[_0x5818aa(0x1d6)](_0x4f8ad2=>{const _0x252270=_0x5818aa;Nn(_0x4f8ad2)?this['_handleCursorUpdate'](_0x4f8ad2):Pn(_0x4f8ad2)&&this[_0x252270(0x2d3)](_0x4f8ad2[_0x252270(0x1c1)][_0x252270(0x245)]);}),this[_0x5818aa(0x2d7)][_0x5818aa(0x30e)][_0x5818aa(0x19f)](_0xf2c32b(_0x2008a6=>this[_0x5818aa(0x129)]&&_0x2008a6[_0x5818aa(0x2a2)]===this[_0x5818aa(0x2a2)]),_0x16fef6(_0x4acda9=>_0x27c1c9(_0x4acda9[_0x5818aa(0x144)]),{'leading':!0x0,'trailing':!0x0}),_0x31ffb0(this['dispose$']))['subscribe'](_0x3f1bb4=>this[_0x5818aa(0x26c)](_0x3f1bb4)));}[_0x551ea6(0x26c)](_0x39a946){const _0x439f82=_0x551ea6;let _0x5501d3=this[_0x439f82(0x32f)]['getMemberID']();if(!_0x5501d3||!this[_0x439f82(0x129)])return;let _0x26e06a={'eventID':_0x3ac41b[_0x439f82(0x33d)],'data':{'unitID':this[_0x439f82(0x2a2)],'memberID':_0x5501d3,'selection':JSON['stringify'](In(this['unitType'],this[_0x439f82(0x2d7)][_0x439f82(0x2b3)],_0x39a946))}};this[_0x439f82(0x32f)][_0x439f82(0x365)](_0x26e06a,this[_0x439f82(0x2a2)])[_0x439f82(0x3a0)](()=>void 0x0);}['_handleCursorUpdate'](_0x40365d){const _0x47f8af=_0x551ea6;let {memberID:_0x576095,selection:_0x4480d8}=_0x40365d[_0x47f8af(0x1c1)];if(_0x576095===this[_0x47f8af(0x32f)]['getMemberID']())return;let _0x11f478=Fn(_0x4480d8,this[_0x47f8af(0x355)]);if(!_0x11f478||_0x11f478[_0x47f8af(0x375)]!==this[_0x47f8af(0x2d7)][_0x47f8af(0x2b3)]||_0x11f478[_0x47f8af(0x355)]!==this[_0x47f8af(0x355)]||_0x11f478['unitId']!==this[_0x47f8af(0x2a2)])return;let _0xe07896=this[_0x47f8af(0x364)][_0x47f8af(0x263)](this[_0x47f8af(0x2a2)],_0x576095),_0x5c71f0={'unitId':_0x11f478[_0x47f8af(0x2a2)],'subUnitId':_0x11f478[_0x47f8af(0x241)],'selectedIds':_0x11f478[_0x47f8af(0x257)],'focusedId':_0x11f478['focusedId'],'pointer':_0x11f478['pointer'],'memberId':_0x576095,'color':this[_0x47f8af(0x1a3)][_0x47f8af(0x1f1)](_0x576095),'name':(_0xe07896==null?void 0x0:_0xe07896[_0x47f8af(0x1ad)])??_0x576095};this['_commandService'][_0x47f8af(0x20a)](dn['id'],{'unitType':this['unitType'],'update':{'type':'set','state':_0x5c71f0}})['catch'](()=>void 0x0);}[_0x551ea6(0x2d3)](_0x1f8f7d){const _0x9ca083=_0x551ea6;this[_0x9ca083(0x142)]['executeCommand'](dn['id'],{'unitType':this[_0x9ca083(0x355)],'update':{'type':_0x9ca083(0x393),'unitId':this['unitId'],'memberId':_0x1f8f7d}})['catch'](()=>void 0x0);}[_0x551ea6(0x28f)](){const _0x31d842=_0x551ea6;this[_0x31d842(0x142)][_0x31d842(0x20a)](dn['id'],{'unitType':this[_0x31d842(0x355)],'update':{'type':_0x31d842(0x271),'unitId':this[_0x31d842(0x2a2)]}})[_0x31d842(0x3a0)](()=>void 0x0);}};Ln=J([q(0x3,_0x53cba9(hn)),q(0x4,_0x53cba9(_0x27f81c)),q(0x5,_0x53cba9(_0x86e5be))],Ln);let Rn=class extends _0x26fe67{constructor(_0x2a9731,_0x26ab84,_0x2aedd4,_0x44b7a5){const _0x24b046=_0x551ea6;super(),this[_0x24b046(0x266)]=_0x2a9731,this['_injector']=_0x26ab84,this[_0x24b046(0x2f8)]=_0x2aedd4,this[_0x24b046(0x1c4)]=_0x44b7a5,K(this,'_isDisposed',!0x1),K(this,'_entities',new Map()),K(this,_0x24b046(0x1b0),new Map()),K(this,'_adapterDisposables',new Map()),this['_init']();}['dispose'](){const _0x35ff76=_0x551ea6;this[_0x35ff76(0x168)]=!0x0,this['_adapterDisposables'][_0x35ff76(0x2c4)](_0x1c9607=>_0x1c9607[_0x35ff76(0x121)]()),this[_0x35ff76(0x27a)][_0x35ff76(0x271)](),this['_entities'][_0x35ff76(0x2c4)](_0x1cdfcc=>_0x1cdfcc[_0x35ff76(0x121)]()),this[_0x35ff76(0x1dc)][_0x35ff76(0x271)](),this[_0x35ff76(0x1b0)][_0x35ff76(0x271)](),super[_0x35ff76(0x121)]();}[_0x551ea6(0x1db)](){const _0x301056=_0x551ea6;this[_0x301056(0x1c4)][_0x301056(0x201)][_0x301056(0x19f)](_0x31ffb0(this[_0x301056(0x24f)]))['subscribe'](_0x107682=>this[_0x301056(0x30f)](_0x107682));}[_0x551ea6(0x30f)](_0x115c4d){const _0x30e8e3=_0x551ea6;let _0x27bc0b=new Set(_0x115c4d[_0x30e8e3(0x267)](_0x402ab7=>_0x402ab7[_0x30e8e3(0x355)]));this[_0x30e8e3(0x27a)][_0x30e8e3(0x2c4)]((_0x14f98d,_0x367190)=>{const _0x16b9da=_0x30e8e3;_0x27bc0b[_0x16b9da(0x297)](_0x367190)||(_0x14f98d[_0x16b9da(0x121)](),this[_0x16b9da(0x27a)][_0x16b9da(0x152)](_0x367190),this[_0x16b9da(0x29f)](_0x367190));}),_0x115c4d[_0x30e8e3(0x2c4)](_0x268dcd=>{const _0x211f3a=_0x30e8e3;this[_0x211f3a(0x27a)][_0x211f3a(0x297)](_0x268dcd[_0x211f3a(0x355)])||this[_0x211f3a(0x1f9)](_0x268dcd);});}[_0x551ea6(0x1f9)](_0xc9d682){const _0xfb5392=_0x551ea6;let _0x2e691f=new _0x45da21();this[_0xfb5392(0x27a)][_0xfb5392(0x3a5)](_0xc9d682[_0xfb5392(0x355)],_0x2e691f),_0x2e691f[_0xfb5392(0x1b2)](_0xc9d682[_0xfb5392(0x200)]()),this[_0xfb5392(0x266)][_0xfb5392(0x1fd)](_0xc9d682[_0xfb5392(0x355)])[_0xfb5392(0x2c4)](_0x59d145=>this[_0xfb5392(0x1cc)](_0x59d145[_0xfb5392(0x29d)](),_0xc9d682)['catch'](()=>void 0x0));let _0x2b8b76=this[_0xfb5392(0x266)][_0xfb5392(0x397)](_0xc9d682['unitType'])['subscribe'](({unit:_0x1adaba})=>this[_0xfb5392(0x1cc)](_0x1adaba[_0xfb5392(0x29d)](),_0xc9d682)[_0xfb5392(0x3a0)](()=>void 0x0));_0x2e691f[_0xfb5392(0x1b2)](_0x40df0c(()=>_0x2b8b76['unsubscribe']()));let _0x46ac57=this['_univerInstanceService'][_0xfb5392(0x154)](_0xc9d682[_0xfb5392(0x355)])['subscribe'](_0xb4512b=>this['_disposeEntity'](_0xb4512b['getUnitId']()));_0x2e691f[_0xfb5392(0x1b2)](_0x40df0c(()=>_0x46ac57[_0xfb5392(0x1e1)]()));}async[_0x551ea6(0x1cc)](_0x154ce1,_0x1ba2c6){const _0x466642=_0x551ea6;if(this['_entities']['has'](_0x154ce1)||this['_pendingEntities'][_0x466642(0x297)](_0x154ce1))return;let _0x16d4f7={};this[_0x466642(0x1b0)][_0x466642(0x3a5)](_0x154ce1,_0x16d4f7);let _0x3d88b1=await this[_0x466642(0x2f8)][_0x466642(0x38a)](_0x154ce1)[_0x466642(0x3a0)](_0x37d2e1=>{const _0x4eb7a4=_0x466642;throw this[_0x4eb7a4(0x1b0)][_0x4eb7a4(0x150)](_0x154ce1)===_0x16d4f7&&this[_0x4eb7a4(0x1b0)][_0x4eb7a4(0x152)](_0x154ce1),_0x37d2e1;});if(this[_0x466642(0x168)]||this[_0x466642(0x1b0)][_0x466642(0x150)](_0x154ce1)!==_0x16d4f7||this[_0x466642(0x1c4)][_0x466642(0x150)](_0x1ba2c6[_0x466642(0x355)])!==_0x1ba2c6){this[_0x466642(0x1b0)][_0x466642(0x150)](_0x154ce1)===_0x16d4f7&&this[_0x466642(0x1b0)][_0x466642(0x152)](_0x154ce1);return;}let _0x2f451c=this[_0x466642(0x2b9)][_0x466642(0x125)](Ln,_0x154ce1,_0x3d88b1,_0x1ba2c6);_0x2f451c[_0x466642(0x37b)](),this['_pendingEntities']['delete'](_0x154ce1),this[_0x466642(0x1dc)][_0x466642(0x3a5)](_0x154ce1,_0x2f451c);}[_0x551ea6(0x33a)](_0x5a3e74){const _0xb288b0=_0x551ea6;this[_0xb288b0(0x1b0)][_0xb288b0(0x152)](_0x5a3e74);let _0x5d7c0c=this[_0xb288b0(0x1dc)]['get'](_0x5a3e74);_0x5d7c0c&&(_0x5d7c0c[_0xb288b0(0x121)](),this[_0xb288b0(0x1dc)][_0xb288b0(0x152)](_0x5a3e74));}[_0x551ea6(0x29f)](_0x764e0e){const _0x20f6a7=_0x551ea6;this[_0x20f6a7(0x266)][_0x20f6a7(0x1fd)](_0x764e0e)[_0x20f6a7(0x2c4)](_0x126f2b=>this[_0x20f6a7(0x1b0)][_0x20f6a7(0x152)](_0x126f2b['getUnitId']())),Array['from'](this[_0x20f6a7(0x1dc)][_0x20f6a7(0x326)]())[_0x20f6a7(0x2c4)](([_0x414959,_0x42b1ab])=>{const _0x3e89a5=_0x20f6a7;_0x42b1ab[_0x3e89a5(0x355)]===_0x764e0e&&this[_0x3e89a5(0x33a)](_0x414959);});}};Rn=J([q(0x0,_0xdac9a9),q(0x1,_0x53cba9(_0x2794a7)),q(0x2,_0x53cba9(_0x523f36)),q(0x3,_0x53cba9(_0x48b8ac))],Rn);const zn={'toast':_0x551ea6(0x186),'actionButton':_0x551ea6(0x3a7)};let Bn=class extends _0x7429c{constructor(_0x1746aa,_0x46cb2a,_0x2f37ef,_0xd16151,_0x3cbc2e,_0x3eb78d,_0xf1d91,_0x502408){const _0x12588d=_0x551ea6;var _0x2b88f7;super(),this[_0x12588d(0x2f6)]=_0x1746aa,this[_0x12588d(0x2a9)]=_0x46cb2a,this[_0x12588d(0x384)]=_0x2f37ef,this[_0x12588d(0x244)]=_0xd16151,this[_0x12588d(0x265)]=_0x3cbc2e,this['_localeService']=_0x3eb78d,this['_collaborationController']=_0xf1d91,this[_0x12588d(0x2fe)]=_0x502408,K(this,_0x12588d(0x2b4),null),K(this,_0x12588d(0x2cf),new Set()),K(this,_0x12588d(0x2bf),new Map()),this['_setupBeforeClosingHandler'](),this['_initEvent'](),this['_initSaveTimedOutMessage'](),((_0x2b88f7=this[_0x12588d(0x2fe)][_0x12588d(0x1dd)](_0x12588d(0x23a)))==null?void 0x0:_0x2b88f7[_0x12588d(0x362)])!==!0x1&&this['_initConflictHandling']();}[_0x551ea6(0x121)](){const _0x5812c0=_0x551ea6;var _0x58e91a;(_0x58e91a=this[_0x5812c0(0x2b4)])==null||_0x58e91a[_0x5812c0(0x121)](),this[_0x5812c0(0x2b4)]=null,this[_0x5812c0(0x2bf)]['forEach'](_0x307873=>_0x307873['dispose']()),this[_0x5812c0(0x2bf)]['clear'](),super['dispose']();}[_0x551ea6(0x292)](){const _0x22f367=_0x551ea6;let _0x279108=_0x31e5a7=>{const _0x55bf47=_0x5c41;let _0xf14829=new _0x45da21();_0xf14829[_0x55bf47(0x1b2)](_0x40df0c(_0x31e5a7[_0x55bf47(0x22f)][_0x55bf47(0x1d6)]({'next':_0x533ed4=>{const _0x4ca67e=_0x55bf47;_0x533ed4[_0x4ca67e(0x2b5)]>=0x4e20&&this['_showSaveTimedOutMessage'](_0x31e5a7[_0x4ca67e(0x1c9)]);},'complete':()=>{const _0x1205d7=_0x55bf47;this[_0x1205d7(0x2d8)](_0x31e5a7[_0x1205d7(0x1c9)]),_0xf14829[_0x1205d7(0x121)]();}}))),_0xf14829[_0x55bf47(0x1b2)](_0x40df0c(_0x31e5a7[_0x55bf47(0x367)]['subscribe'](_0x248feb=>{const _0x4bc163=_0x55bf47;_0x248feb!==_0x134153[_0x4bc163(0x22a)]&&_0x248feb!==_0x134153[_0x4bc163(0x17f)]&&this[_0x4bc163(0x2d8)](_0x31e5a7[_0x4bc163(0x1c9)]);}))),this['disposeWithMe'](_0xf14829);};this[_0x22f367(0x27c)][_0x22f367(0x278)]()[_0x22f367(0x2c4)](_0x279108),this['disposeWithMe'](_0x40df0c(this['_collaborationController'][_0x22f367(0x2ea)][_0x22f367(0x1d6)](_0x279108)));}[_0x551ea6(0x36f)](_0x207016){const _0x53c5f1=_0x551ea6;this[_0x53c5f1(0x2bf)]['has'](_0x207016)||this[_0x53c5f1(0x2bf)][_0x53c5f1(0x3a5)](_0x207016,this[_0x53c5f1(0x265)]['show']({'title':this['_localeService']['t'](_0x53c5f1(0x303)),'type':_0x53c5f1(0x2d6),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x551ea6(0x2d8)](_0x353cc8){const _0x3067a3=_0x551ea6;var _0x3ffbfb;(_0x3ffbfb=this[_0x3067a3(0x2bf)][_0x3067a3(0x150)](_0x353cc8))==null||_0x3ffbfb[_0x3067a3(0x121)](),this['_saveTimedOutMessages']['delete'](_0x353cc8);}['_setupBeforeClosingHandler'](){const _0x5c2fb0=_0x551ea6;this[_0x5c2fb0(0x1e0)](this[_0x5c2fb0(0x2f6)][_0x5c2fb0(0x1c2)](()=>{const _0x326ad0=_0x5c2fb0;if(this[_0x326ad0(0x2a9)]['saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x551ea6(0x2dc)](){const _0x3c43c0=_0x551ea6;let _0x4a18dd=_0x483d7c=>{const _0x9e2554=_0x5c41;this['disposeWithMe'](_0x40df0c(_0x483d7c[_0x9e2554(0x348)][_0x9e2554(0x1d6)](_0x48af6b=>this['_onConflict'](_0x48af6b))));};this[_0x3c43c0(0x27c)][_0x3c43c0(0x278)]()[_0x3c43c0(0x2c4)](_0x4a18dd),this[_0x3c43c0(0x1e0)](_0x40df0c(this['_collaborationController']['entityInit$'][_0x3c43c0(0x1d6)](_0x4a18dd)));}[_0x551ea6(0x29b)](_0x5c3265){const _0x7345a5=_0x551ea6;if(!_0x5c3265[_0x7345a5(0x309)])return;let _0x13a431=_0x5c3265['reason']===_0x7345a5(0x1a9)?'remoteRevert':_0x5c3265[_0x7345a5(0x1d0)]===_0x7345a5(0x172)?_0x7345a5(0x380):'conflict';this[_0x7345a5(0x1bf)]({'title':this[_0x7345a5(0x324)]['t'](_0x7345a5(0x21b)+_0x13a431+_0x7345a5(0x14e)),'content':this[_0x7345a5(0x324)]['t'](_0x7345a5(0x21b)+_0x13a431+_0x7345a5(0x261)),'type':_0x5c3265[_0x7345a5(0x1d0)]===_0x7345a5(0x1a9)?_0x7345a5(0x2d6):_0x7345a5(0x226),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':zn,'action':{'label':this[_0x7345a5(0x324)]['t'](_0x7345a5(0x1a6)),'onClick':_0x12a91b=>{const _0x3a2733=_0x7345a5;_0x12a91b[_0x3a2733(0x189)](),this[_0x3a2733(0x132)]();}}});}[_0x551ea6(0x132)](){const _0x499df9=_0x551ea6;window[_0x499df9(0x377)]['reload']();}[_0x551ea6(0x37a)](){const _0x5e955a=_0x551ea6;this[_0x5e955a(0x1e0)](this[_0x5e955a(0x384)][_0x5e955a(0x320)][_0x5e955a(0x1d6)](_0x58da61=>{const _0x2e0b19=_0x5e955a;_0x58da61['id']===_0x407a83['OTHER_CLIENT_EDITING']&&this[_0x2e0b19(0x244)][_0x2e0b19(0x227)]({'type':_0x2c21da[_0x2e0b19(0x36d)],'content':this[_0x2e0b19(0x324)]['t'](_0x2e0b19(0x240))}),_0x58da61['id']===_0x407a83[_0x2e0b19(0x1f0)]&&this[_0x2e0b19(0x244)][_0x2e0b19(0x227)]({'type':_0x2c21da['Warning'],'content':this[_0x2e0b19(0x324)]['t'](_0x2e0b19(0x19c))}),_0x58da61['id']===_0x407a83['CONFLICT_PROCESSING']&&this['_showConflictProcessingNotification'](),_0x58da61['id']===_0x407a83['CONFLICT_CACHE_CLEAR_FAILED']&&_0x58da61[_0x2e0b19(0x1c9)]&&this['_showConflictCacheClearFailedNotification'](_0x58da61['unitID'],_0x58da61[_0x2e0b19(0x363)]??''),_0x58da61['id']===_0x407a83[_0x2e0b19(0x178)]&&this[_0x2e0b19(0x244)]['show']({'type':_0x2c21da['Warning'],'content':this[_0x2e0b19(0x324)]['t'](_0x58da61['data']||'')}),_0x58da61['id']===_0x407a83[_0x2e0b19(0x1f6)]&&this[_0x2e0b19(0x244)][_0x2e0b19(0x227)]({'type':_0x2c21da[_0x2e0b19(0x36d)],'content':this['_localeService']['t'](_0x2e0b19(0x22b))}),_0x58da61['id']===_0x407a83['SOCKET_FAILED']&&this[_0x2e0b19(0x244)][_0x2e0b19(0x227)]({'type':_0x2c21da[_0x2e0b19(0x20f)],'content':this[_0x2e0b19(0x324)]['t'](_0x2e0b19(0x2ba))});}));}[_0x551ea6(0x232)](){const _0x11844e=_0x551ea6;this[_0x11844e(0x1bf)]({'title':this[_0x11844e(0x324)]['t'](_0x11844e(0x280)),'content':this['_localeService']['t'](_0x11844e(0x36b)),'type':_0x11844e(0x141),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x33f4d4,_0x40e8a0){const _0xf70b6d=_0x551ea6;this[_0xf70b6d(0x1bf)]({'title':this[_0xf70b6d(0x324)]['t'](_0xf70b6d(0x280)),'content':this[_0xf70b6d(0x324)]['t'](_0xf70b6d(0x30d)),'type':_0xf70b6d(0x226),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':zn,'action':{'label':this[_0xf70b6d(0x324)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x3a1ecf=>{const _0x2c80d0=_0xf70b6d;_0x3a1ecf[_0x2c80d0(0x189)](),this['_retryConflictCacheClear'](_0x33f4d4,_0x40e8a0);}}});}['_retryConflictCacheClear'](_0x631045,_0x56c32e){const _0x498fbf=_0x551ea6;let _0x499938=_0x631045+':'+(_0x56c32e??'');this[_0x498fbf(0x2cf)][_0x498fbf(0x297)](_0x499938)||(this['_retryingConflictCacheUnitIDs'][_0x498fbf(0x1b2)](_0x499938),this[_0x498fbf(0x232)](),this[_0x498fbf(0x2a9)][_0x498fbf(0x2fd)](_0x631045,_0x56c32e)['then'](()=>this[_0x498fbf(0x132)]())[_0x498fbf(0x3a0)](()=>this[_0x498fbf(0x272)](_0x631045,_0x56c32e))[_0x498fbf(0x37c)](()=>this['_retryingConflictCacheUnitIDs']['delete'](_0x499938)));}[_0x551ea6(0x1bf)](_0x23bf03){const _0xa2a25b=_0x551ea6;var _0x400f15;(_0x400f15=this[_0xa2a25b(0x2b4)])==null||_0x400f15[_0xa2a25b(0x121)](),this[_0xa2a25b(0x2b4)]=this[_0xa2a25b(0x265)][_0xa2a25b(0x227)](_0x23bf03);}};Bn=J([q(0x0,_0x93469a),q(0x1,_0x33dbbe),q(0x2,_0x53cba9(_0xd970e4)),q(0x3,_0x5163fa),q(0x4,_0x18e522),q(0x5,_0x53cba9(_0x3e8dce)),q(0x6,_0x53cba9(_0xccd537)),q(0x7,_0x3e03c2)],Bn);let Vn=class{constructor(_0x4d8372,_0x1b6b0a){const _0x3ab867=_0x551ea6;this[_0x3ab867(0x17b)]=_0x4d8372,this[_0x3ab867(0x39f)]=_0x1b6b0a;}['transformIMECache'](_0x4b8707){const _0x5df4d6=_0x551ea6;this[_0x5df4d6(0x2af)](_0x4b8707),this['_transformPreviousActiveRange'](_0x4b8707);}[_0x551ea6(0x14f)](_0xc26b5a){const _0x160238=_0x551ea6;let {unitID:_0x2422a7}=_0xc26b5a,{redoCache:_0x3bfca4}=this[_0x160238(0x39f)]['getRenderUnitById'](_0x2422a7)[_0x160238(0x378)](_0x54cc81)['getUndoRedoMutationParamsCache']();if(_0x3bfca4[_0x160238(0x174)]===0x0)return _0xc26b5a;let _0x151a94=_0x1f0f35[_0x160238(0x1ca)](_0xc26b5a['mutations'][0x0]);for(let _0x1237d4=0x0;_0x1237d4<_0x3bfca4[_0x160238(0x174)];_0x1237d4++){let _0x48f1fb={'id':_0x160238(0x376),'params':{..._0x3bfca4[_0x1237d4]}},_0x52b624=this[_0x160238(0x17b)][_0x160238(0x12e)](_0x151a94,_0x48f1fb,!0x1);if(_0x53ca28(_0x52b624))throw _0x52b624[_0x160238(0x226)];_0x151a94=_0x52b624[_0x160238(0x13b)];}return{..._0x1f0f35[_0x160238(0x1ca)](_0xc26b5a),'mutations':[_0x151a94]};}[_0x551ea6(0x2af)](_0x284678){const _0x4944df=_0x551ea6;let {unitID:_0x3c9ed5}=_0x284678,_0x3ae50a=this[_0x4944df(0x39f)][_0x4944df(0x2c1)](_0x3c9ed5)[_0x4944df(0x378)](_0x54cc81),{undoCache:_0x5889dd,redoCache:_0x4352ae}=_0x3ae50a[_0x4944df(0x3a1)]();if(_0x5889dd['length']===0x0||_0x4352ae['length']===0x0)return;let _0x2a5cfa=[],_0xa0f8e6=[],_0x6fa220=_0x1f0f35[_0x4944df(0x1ca)](_0x284678[_0x4944df(0x26d)][0x0]),_0x3aec9d=_0x1f0f35[_0x4944df(0x1ca)](_0x284678['mutations'][0x0]);for(let _0x1af822=_0x5889dd['length']-0x1;_0x1af822>=0x0;_0x1af822--){let _0x431b8e={'id':_0x4944df(0x376),'params':{..._0x5889dd[_0x1af822]}},_0x1cb120={'id':_0x4944df(0x376),'params':{..._0x4352ae[_0x1af822]}},_0x35e91a=this['_transformService']['transformMutation'](_0x6fa220,_0x431b8e,!0x1),_0xbb6529=this['_transformService']['transformMutation'](_0x3aec9d,_0x1cb120,!0x1);if(_0x53ca28(_0x35e91a))throw _0x35e91a[_0x4944df(0x226)];if(_0x53ca28(_0xbb6529))throw _0xbb6529[_0x4944df(0x226)];_0x2a5cfa['unshift'](_0x35e91a['m2Prime'][_0x4944df(0x24c)]),_0xa0f8e6[_0x4944df(0x2df)](_0xbb6529[_0x4944df(0x2e7)][_0x4944df(0x24c)]),_0x6fa220=_0x35e91a[_0x4944df(0x13b)],_0x3aec9d=_0xbb6529[_0x4944df(0x13b)];}_0x3ae50a[_0x4944df(0x2e3)]({'undoCache':_0x2a5cfa,'redoCache':_0xa0f8e6});}[_0x551ea6(0x223)](_0x202ba7){const _0x4a5e15=_0x551ea6;let {unitID:_0x1164a9}=_0x202ba7,_0x4ee199=this['_renderManagerService'][_0x4a5e15(0x2c1)](_0x1164a9)[_0x4a5e15(0x378)](_0x54cc81),_0x3d6270=_0x4ee199[_0x4a5e15(0x39a)]();if(_0x3d6270==null)return;let _0x2df854=[{'id':_0x4a5e15(0x376),'params':{'unitId':_0x202ba7['unitID'],'actions':null,'textRanges':[_0x3d6270]}}],_0x16c246=this[_0x4a5e15(0x17b)][_0x4a5e15(0x207)](_0x202ba7,_0x2df854);if(!_0x54a10e(_0x16c246))throw _0x16c246[_0x4a5e15(0x226)];let _0x134648=_0x16c246[_0x4a5e15(0x2e7)][0x0][_0x4a5e15(0x24c)][_0x4a5e15(0x126)];Array[_0x4a5e15(0x351)](_0x134648)&&_0x134648[_0x4a5e15(0x174)]&&_0x4ee199[_0x4a5e15(0x294)](_0x134648[0x0]);}};Vn=J([q(0x0,_0x27089f),q(0x1,_0x4e616a)],Vn);let Hn=class{constructor(_0x564223,_0x3e17a0,_0x3fd41c){const _0x4f885b=_0x551ea6;this[_0x4f885b(0x2b9)]=_0x564223,this[_0x4f885b(0x17b)]=_0x3e17a0,this[_0x4f885b(0x2a1)]=_0x3fd41c;}[_0x551ea6(0x332)](_0x2d4190){const _0x1e7cdc=_0x551ea6;this[_0x1e7cdc(0x176)](_0x2d4190);}['transformRemoteChangeset'](_0x3ba82f){const _0x4294dd=_0x551ea6;let {unitID:_0x17b707}=_0x3ba82f,{collaboration:_0x345110}=this[_0x4294dd(0x2a1)][_0x4294dd(0x17a)](_0x17b707);if(_0x345110[_0x4294dd(0x174)]===0x0)return _0x3ba82f;let _0x4ea350=_0x1f0f35[_0x4294dd(0x1ca)](_0x3ba82f['mutations'][0x0]);for(let _0x5e45b5=0x0;_0x5e45b5<_0x345110['length'];_0x5e45b5++){let _0x370506={'id':_0x4294dd(0x376),'params':{'unitId':_0x345110[_0x5e45b5][_0x4294dd(0x2a2)],..._0x345110[_0x5e45b5][_0x4294dd(0x153)]}},_0x5bc3e8=this[_0x4294dd(0x17b)][_0x4294dd(0x12e)](_0x4ea350,_0x370506,!0x1);if(_0x53ca28(_0x5bc3e8))throw _0x5bc3e8[_0x4294dd(0x226)];_0x4ea350=_0x5bc3e8[_0x4294dd(0x13b)];}return{..._0x1f0f35[_0x4294dd(0x1ca)](_0x3ba82f),'mutations':[_0x4ea350]};}[_0x551ea6(0x176)](_0x50f448){const _0x33c026=_0x551ea6;let {unitID:_0x2aa561}=_0x50f448,{history:_0x22883a,collaboration:_0x5841a2}=this['_docStateChangeManagerService'][_0x33c026(0x17a)](_0x2aa561);if(_0x22883a[_0x33c026(0x174)]===0x0&&_0x5841a2['length']===0x0)return;let _0x495c59=[],_0x42c21d=[],_0x1bf93e=_0x1f0f35['deepClone'](_0x50f448['mutations'][0x0]),_0x1e8df4=_0x1f0f35[_0x33c026(0x1ca)](_0x50f448[_0x33c026(0x26d)][0x0]);for(let _0x39593d=_0x22883a[_0x33c026(0x174)]-0x1;_0x39593d>=0x0;_0x39593d--){let _0x559efd={'id':_0x33c026(0x376),'params':{'unitId':_0x22883a[_0x39593d]['unitId'],..._0x22883a[_0x39593d]['undoState']}},_0x57a0c8={'id':_0x33c026(0x376),'params':{'unitId':_0x22883a[_0x39593d][_0x33c026(0x2a2)],..._0x22883a[_0x39593d]['redoState']}},_0x2a37d7=this[_0x33c026(0x17b)]['transformMutation'](_0x1bf93e,_0x559efd,!0x1),_0x29f906=this[_0x33c026(0x17b)][_0x33c026(0x12e)](_0x1e8df4,_0x57a0c8,!0x1);if(_0x53ca28(_0x2a37d7))throw _0x2a37d7['error'];if(_0x53ca28(_0x29f906))throw _0x29f906[_0x33c026(0x226)];_0x495c59[_0x33c026(0x2df)]({..._0x22883a[_0x39593d],'undoState':_0x2a37d7[_0x33c026(0x2e7)][_0x33c026(0x24c)],'redoState':_0x29f906[_0x33c026(0x2e7)][_0x33c026(0x24c)]}),_0x1bf93e=_0x2a37d7[_0x33c026(0x13b)],_0x1e8df4=_0x29f906[_0x33c026(0x13b)];}_0x1bf93e=_0x1f0f35[_0x33c026(0x1ca)](_0x50f448[_0x33c026(0x26d)][0x0]),_0x1e8df4=_0x1f0f35[_0x33c026(0x1ca)](_0x50f448[_0x33c026(0x26d)][0x0]);for(let _0x4b339d=_0x5841a2['length']-0x1;_0x4b339d>=0x0;_0x4b339d--){let _0x2094b9={'id':_0x33c026(0x376),'params':{'unitId':_0x5841a2[_0x4b339d]['unitId'],..._0x5841a2[_0x4b339d][_0x33c026(0x25d)]}},_0x1f245c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5841a2[_0x4b339d][_0x33c026(0x2a2)],..._0x5841a2[_0x4b339d][_0x33c026(0x153)]}},_0x56f7f4=this[_0x33c026(0x17b)][_0x33c026(0x12e)](_0x1bf93e,_0x2094b9,!0x1),_0x4ddb89=this[_0x33c026(0x17b)][_0x33c026(0x12e)](_0x1e8df4,_0x1f245c,!0x1);if(_0x53ca28(_0x56f7f4))throw _0x56f7f4['error'];if(_0x53ca28(_0x4ddb89))throw _0x4ddb89[_0x33c026(0x226)];_0x42c21d[_0x33c026(0x2df)]({..._0x5841a2[_0x4b339d],'undoState':_0x56f7f4[_0x33c026(0x2e7)]['params'],'redoState':_0x4ddb89['m2Prime']['params']}),_0x1bf93e=_0x56f7f4[_0x33c026(0x13b)],_0x1e8df4=_0x4ddb89[_0x33c026(0x13b)];}this[_0x33c026(0x2a1)]['setStateCache'](_0x2aa561,{'history':_0x495c59,'collaboration':_0x42c21d});}};Hn=J([q(0x0,_0x53cba9(_0x2794a7)),q(0x1,_0x27089f),q(0x2,_0x53cba9(_0x13f06c))],Hn);let Z=class{constructor(_0x753f,_0x172075){const _0x3b33b7=_0x551ea6;this[_0x3b33b7(0x395)]=_0x753f,this[_0x3b33b7(0x17b)]=_0x172075;}[_0x551ea6(0x2b0)](_0x30754b){const _0x327440=_0x551ea6;var _0x559732;let _0x517218=this[_0x327440(0x395)][_0x327440(0x284)]()??[],_0x330426=this[_0x327440(0x395)][_0x327440(0x2ce)]();if(_0x517218[_0x327440(0x174)]===0x0||_0x330426==null)return null;let _0x32a7da=_0x30754b[_0x327440(0x1c9)],_0xb9cd55=[{'id':_0x327440(0x376),'params':{'unitId':_0x32a7da,'actions':null,'textRanges':_0x517218}}],_0x41808e=this['_transformService'][_0x327440(0x207)](_0x30754b,_0xb9cd55);if(!_0x54a10e(_0x41808e))throw _0x41808e[_0x327440(0x226)];let _0x16c981=(_0x559732=_0x41808e[_0x327440(0x2e7)][0x0])==null?void 0x0:_0x559732['params'],_0x5ce6b0=_0x16c981&&typeof _0x16c981=='object'&&_0x327440(0x126)in _0x16c981?_0x16c981[_0x327440(0x126)]:null;if(!Gn(_0x5ce6b0))return null;let _0xfee771=Un(_0x30754b['mutations'][_0x327440(0x1ae)](_0x393426=>Kn(_0x393426[_0x327440(0x24c)]))?_0x5ce6b0[_0x327440(0x31a)](_0x509a28=>!('tableId'in _0x509a28)):_0x5ce6b0,{..._0x330426,'options':_0x330426[_0x327440(0x14a)]?{..._0x330426[_0x327440(0x14a)],'wholeDocument':!0x1}:void 0x0}),_0x3395cb={'unitId':_0x32a7da,'subUnitId':_0x32a7da};this[_0x327440(0x395)][_0x327440(0x1c5)](_0xfee771,_0x3395cb);let _0xda8773=!0x0;return{'commit':()=>{_0xda8773=!0x1;},'rollback':()=>{_0xda8773&&(_0xda8773=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x330426,_0x3395cb));}};}};Z=J([q(0x0,_0x53cba9(_0x1d1eca)),q(0x1,_0x27089f)],Z);function Un(_0x2a3bb6,_0x285aca){const _0x56aa70=_0x551ea6;let _0x47890a=[],_0x1bffc9=[];for(let _0x2210cd of _0x2a3bb6)Wn(_0x2210cd)?_0x1bffc9[_0x56aa70(0x15a)](_0x2210cd):_0x47890a[_0x56aa70(0x15a)](_0x2210cd);return{..._0x285aca,'textRanges':_0x47890a,'rectRanges':_0x1bffc9};}function Wn(_0x4a5711){const _0x14bcee=_0x551ea6;return _0x14bcee(0x1d1)in _0x4a5711;}function Gn(_0x742efc){const _0x435c1e=_0x551ea6;return Array[_0x435c1e(0x351)](_0x742efc)&&_0x742efc[_0x435c1e(0x285)](_0x4e5c7c=>typeof _0x4e5c7c==_0x435c1e(0x211)&&!!_0x4e5c7c&&_0x435c1e(0x313)in _0x4e5c7c&&_0x435c1e(0x305)in _0x4e5c7c);}function Kn(_0x751eac){const _0x271ffd=_0x551ea6;return _0x751eac===_0x271ffd(0x181)?!0x0:Array[_0x271ffd(0x351)](_0x751eac)?_0x751eac[_0x271ffd(0x1ae)](_0x3737fb=>Kn(_0x3737fb)):!_0x751eac||typeof _0x751eac!=_0x271ffd(0x211)?!0x1:Object[_0x271ffd(0x231)](_0x751eac)[_0x271ffd(0x1ae)](_0x401203=>Kn(_0x401203));}let qn=class extends _0x7429c{constructor(_0x39153d,_0x207f06,_0x43ffa2,_0x3508e9,_0x274e99,_0x2aaaad,_0x212d01){const _0x3ad572=_0x551ea6;super(),this[_0x3ad572(0x27c)]=_0x39153d,this[_0x3ad572(0x28e)]=_0x207f06,this[_0x3ad572(0x26b)]=_0x43ffa2,this['_docTransformSelectionsService']=_0x3508e9,this[_0x3ad572(0x314)]=_0x274e99,this[_0x3ad572(0x244)]=_0x2aaaad,this['_localeService']=_0x212d01,K(this,_0x3ad572(0x1d4),new _0x49b31d(_0x134153[_0x3ad572(0x1a4)])),this[_0x3ad572(0x1c8)]();}[_0x551ea6(0x1c8)](){const _0x4c412f=_0x551ea6;this['disposeWithMe'](this[_0x4c412f(0x27c)][_0x4c412f(0x2ea)]['subscribe'](_0x2387cc=>{const _0x3ad6d2=_0x4c412f;_0x2387cc instanceof _0xbaeadf&&_0x2387cc[_0x3ad6d2(0x236)]({'onTransformIME':_0x2841ca=>this['_docTransformIMECacheService'][_0x3ad6d2(0x19e)](_0x2841ca),'onTransformState':_0x213e0a=>this[_0x3ad6d2(0x26b)]['transformStateCache'](_0x213e0a),'onPrepareTransformSelections':_0x6cc227=>this[_0x3ad6d2(0x1df)][_0x3ad6d2(0x2b0)](_0x6cc227),'onSyncEditingCollabCursor':_0x448086=>this[_0x3ad6d2(0x314)][_0x3ad6d2(0x315)](_0x448086),'onTransformRemoteChangesetByIMECache':_0x4b15cd=>this[_0x3ad6d2(0x28e)][_0x3ad6d2(0x14f)](_0x4b15cd),'onTransformRemoteChangesetByStateCache':_0x5384d4=>this['_docTransformStateCacheService'][_0x3ad6d2(0x14f)](_0x5384d4)});}));}};qn=J([q(0x0,_0x53cba9(_0xccd537)),q(0x1,_0x53cba9(Vn)),q(0x2,_0x53cba9(Hn)),q(0x3,_0x53cba9(Z)),q(0x4,_0x53cba9(vn)),q(0x5,_0x5163fa),q(0x6,_0x53cba9(_0x3e8dce))],qn);let Jn=class extends _0x7429c{constructor(_0x1dad65,_0x21deca,_0x3a7c04,_0x14e95c){const _0xaa3826=_0x551ea6;super(),this[_0xaa3826(0x2b9)]=_0x1dad65,this[_0xaa3826(0x233)]=_0x21deca,this['_logService']=_0x3a7c04,this['_collaborationSessionService']=_0x14e95c,K(this,'_memberID',void 0x0),this[_0xaa3826(0x1db)]();}[_0x551ea6(0x1db)](){const _0x480a3b=_0x551ea6;this[_0x480a3b(0x137)](),this[_0x480a3b(0x195)](),this[_0x480a3b(0x20e)](),this[_0x480a3b(0x14c)]();}['_initUserListener'](){const _0x4ecf08=_0x551ea6;this[_0x4ecf08(0x1e0)](this[_0x4ecf08(0x224)][_0x4ecf08(0x1f8)][_0x4ecf08(0x1d6)](_0xa90ef8=>{const _0x5dfc05=_0x4ecf08;this[_0x5dfc05(0x312)]=_0xa90ef8==null?void 0x0:_0xa90ef8[_0x5dfc05(0x245)];}));}[_0x551ea6(0x137)](){const _0x356d51=_0x551ea6;let _0x398bda=_0x485490=>{const _0x44392d=_0x5c41;var _0x1a6cf3;this[_0x44392d(0x34b)](_0x44392d(0x226),'[Window\x20Error]:\x20'+_0x485490[_0x44392d(0x1ee)]+'\x20at\x20'+_0x485490[_0x44392d(0x145)]+':'+_0x485490[_0x44392d(0x255)]+':'+_0x485490[_0x44392d(0x17c)]+'\x0a'+(((_0x1a6cf3=_0x485490[_0x44392d(0x226)])==null?void 0x0:_0x1a6cf3[_0x44392d(0x2c3)])||''));};window[_0x356d51(0x386)](_0x356d51(0x226),_0x398bda),this['disposeWithMe'](()=>{const _0x4f7cb1=_0x356d51;window[_0x4f7cb1(0x1ff)](_0x4f7cb1(0x226),_0x398bda);});}[_0x551ea6(0x195)](){let _0x207742=_0x1138ce=>{const _0x4a63c1=_0x5c41;this[_0x4a63c1(0x34b)](_0x4a63c1(0x226),_0x4a63c1(0x1f2)+_0x1138ce[_0x4a63c1(0x1d0)]);};window['addEventListener']('unhandledrejection',_0x207742),this['disposeWithMe'](()=>{const _0x4e4846=_0x5c41;window['removeEventListener'](_0x4e4846(0x2db),_0x207742);});}['_monkeyPatchLogService'](){const _0x5644d1=_0x551ea6;let _0x1c4d9e=this[_0x5644d1(0x35a)][_0x5644d1(0x226)]['bind'](this[_0x5644d1(0x35a)]);this[_0x5644d1(0x35a)][_0x5644d1(0x226)]=(..._0x340996)=>{const _0x36b707=_0x5644d1;let _0x3bd0e5=_0x340996[_0x36b707(0x267)](_0x31bb7b=>_0x31bb7b instanceof Error?_0x31bb7b[_0x36b707(0x1ee)]+'\x0a'+_0x31bb7b['stack']:String(_0x31bb7b))[_0x36b707(0x360)]('\x20');this[_0x36b707(0x34b)](_0x36b707(0x226),_0x36b707(0x251)+_0x3bd0e5),_0x1c4d9e(..._0x340996);},this[_0x5644d1(0x1e0)](()=>{const _0xdebca5=_0x5644d1;this[_0xdebca5(0x35a)]['error']=_0x1c4d9e;});}[_0x551ea6(0x34b)](_0x18e27d,_0x2f0718){const _0x1febcc=_0x551ea6;try{let _0x2b1802={'userId':this[_0x1febcc(0x312)],'logLabel':_0x18e27d,'content':_0x2f0718};this[_0x1febcc(0x233)][_0x1febcc(0x143)](_0x1febcc(0x23f),{'body':_0x2b1802})['catch'](()=>{});}catch{}}};Jn=J([q(0x0,_0x53cba9(_0x2794a7)),q(0x1,_0x53cba9(_0x547f50)),q(0x2,_0x4da388),q(0x3,_0x53cba9(_0x523f36))],Jn);function Yn({state$:_0x5ee9d1}){const _0x299d0f=_0x551ea6;let _0x1846dc=_0x1fbfb2(_0x5ee9d1,null,!0x0);return _0x1846dc?_0x3e8147(_0x299d0f(0x13f),{'data-u-comp':_0x299d0f(0x307),'role':_0x299d0f(0x2e9),'className':_0x299d0f(0x2ee),'children':[_0x57b519(_0x323b2f,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x57b519(_0x299d0f(0x18e),{'children':_0x1846dc[_0x299d0f(0x149)]}),_0x57b519(_0x3be90c,{'size':_0x299d0f(0x2a8),'variant':_0x299d0f(0x218),'onClick':()=>window[_0x299d0f(0x377)][_0x299d0f(0x2aa)](),'children':_0x1846dc[_0x299d0f(0x203)]})]}):null;}const Xn='snapshot-loading-';function _0x5c41(_0x4b8f70,_0x2185c4){_0x4b8f70=_0x4b8f70-0x121;const _0x4d1255=_0x4d12();let _0x5c415b=_0x4d1255[_0x4b8f70];return _0x5c415b;}let Q=class extends _0x7429c{constructor(_0x216bdb,_0x547b19,_0x48b3aa,_0x545483,_0x10c0f0){const _0x186f14=_0x551ea6;super(),this['_snapshotLoadingService']=_0x216bdb,this[_0x186f14(0x244)]=_0x547b19,this[_0x186f14(0x324)]=_0x48b3aa,this[_0x186f14(0x2b9)]=_0x545483,K(this,_0x186f14(0x140),new _0x49b31d(null)),K(this,'_messageIds',new Set()),K(this,_0x186f14(0x1da),new Map()),K(this,_0x186f14(0x196),this[_0x186f14(0x140)][_0x186f14(0x1be)]());let _0x30fde7=()=>_0x42ff55(Yn,{'state$':this[_0x186f14(0x196)]});this[_0x186f14(0x1e0)](_0x10c0f0['registerComponent'](_0x11c202[_0x186f14(0x2c0)],()=>_0x6ad55b(_0x30fde7,this['_injector']))),this[_0x186f14(0x1e0)](this[_0x186f14(0x235)][_0x186f14(0x1fb)]['subscribe'](_0x1a851f=>{const _0x4d9f94=_0x186f14;_0x1a851f[_0x4d9f94(0x2c4)](_0x5758a2=>this['_updateMessage'](_0x5758a2));}));}[_0x551ea6(0x121)](){const _0x439753=_0x551ea6;this[_0x439753(0x2ac)]['forEach'](_0x1676b=>this[_0x439753(0x244)][_0x439753(0x393)](_0x1676b)),this[_0x439753(0x2ac)][_0x439753(0x271)](),this['_blockProgressWatches'][_0x439753(0x2c4)](({timeoutId:_0x185ea5})=>clearTimeout(_0x185ea5)),this[_0x439753(0x1da)][_0x439753(0x271)](),this[_0x439753(0x140)]['complete'](),super['dispose']();}[_0x551ea6(0x169)](_0x4dcf0f){const _0x5eed47=_0x551ea6;let _0x56ff85=''+Xn+_0x4dcf0f[_0x5eed47(0x2a2)];_0x4dcf0f[_0x5eed47(0x1fc)]===_0x1a7dd0[_0x5eed47(0x14d)]?(this[_0x5eed47(0x2ef)](_0x4dcf0f['unitId']),this[_0x5eed47(0x185)](_0x4dcf0f[_0x5eed47(0x2a2)]),this[_0x5eed47(0x244)][_0x5eed47(0x393)](_0x56ff85),this['_messageIds'][_0x5eed47(0x152)](_0x56ff85)):_0x4dcf0f['stage']===_0x1a7dd0[_0x5eed47(0x1d5)]?(this[_0x5eed47(0x2ef)](_0x4dcf0f[_0x5eed47(0x2a2)]),this[_0x5eed47(0x185)](_0x4dcf0f['unitId']),this[_0x5eed47(0x244)][_0x5eed47(0x227)]({'id':_0x56ff85,'type':_0x2c21da[_0x5eed47(0x20f)],'content':this['_localeService']['t'](_0x5eed47(0x2ba))}),this[_0x5eed47(0x2ac)]['delete'](_0x56ff85)):_0x4dcf0f[_0x5eed47(0x1fc)]!==_0x1a7dd0[_0x5eed47(0x2ad)]||_0x4dcf0f[_0x5eed47(0x29a)]<=0xa?(this['_clearBlockProgressWatch'](_0x4dcf0f[_0x5eed47(0x2a2)]),this[_0x5eed47(0x244)][_0x5eed47(0x393)](_0x56ff85),this[_0x5eed47(0x2ac)]['delete'](_0x56ff85)):this[_0x5eed47(0x316)](_0x4dcf0f)||(this[_0x5eed47(0x244)][_0x5eed47(0x227)]({'id':_0x56ff85,'type':_0x2c21da['Loading'],'duration':0x1/0x0,'content':this[_0x5eed47(0x324)]['t'](_0x5eed47(0x23e))+'\x20'+_0x4dcf0f[_0x5eed47(0x328)]+'/'+_0x4dcf0f[_0x5eed47(0x29a)]}),this[_0x5eed47(0x2ac)][_0x5eed47(0x1b2)](_0x56ff85));}[_0x551ea6(0x316)](_0x5ef995){const _0x560b33=_0x551ea6;let _0x3c175a=this[_0x560b33(0x1da)]['get'](_0x5ef995['unitId']);if((_0x3c175a==null?void 0x0:_0x3c175a[_0x560b33(0x328)])===_0x5ef995[_0x560b33(0x328)])return _0x3c175a['timedOut'];this[_0x560b33(0x2ef)](_0x5ef995['unitId']);let _0x47176f=setTimeout(()=>{const _0x2a40d9=_0x560b33;let _0x4d5171=this[_0x2a40d9(0x1da)][_0x2a40d9(0x150)](_0x5ef995['unitId']);if(!_0x4d5171||_0x4d5171[_0x2a40d9(0x2e6)]!==_0x47176f)return;_0x4d5171[_0x2a40d9(0x18f)]=!0x0;let _0x257838=''+Xn+_0x5ef995[_0x2a40d9(0x2a2)];this[_0x2a40d9(0x244)][_0x2a40d9(0x393)](_0x257838),this[_0x2a40d9(0x2ac)][_0x2a40d9(0x152)](_0x257838),this[_0x2a40d9(0x140)][_0x2a40d9(0x32a)]({'unitId':_0x5ef995[_0x2a40d9(0x2a2)],'content':this[_0x2a40d9(0x324)]['t'](_0x2a40d9(0x2b7),String(_0x5ef995[_0x2a40d9(0x328)]),String(_0x5ef995[_0x2a40d9(0x29a)])),'refreshLabel':this[_0x2a40d9(0x324)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0x560b33(0x1da)]['set'](_0x5ef995['unitId'],{'loadedBlocks':_0x5ef995[_0x560b33(0x328)],'timedOut':!0x1,'timeoutId':_0x47176f}),!0x1;}[_0x551ea6(0x2ef)](_0x567b6d){const _0x12026f=_0x551ea6;let _0xedf05f=this[_0x12026f(0x1da)]['get'](_0x567b6d);_0xedf05f&&(clearTimeout(_0xedf05f[_0x12026f(0x2e6)]),this[_0x12026f(0x1da)][_0x12026f(0x152)](_0x567b6d),this['_clearTimeoutState'](_0x567b6d));}[_0x551ea6(0x185)](_0x2bf908){const _0x2bb782=_0x551ea6;var _0x5e564f;((_0x5e564f=this['_timeoutState$']['value'])==null?void 0x0:_0x5e564f['unitId'])===_0x2bf908&&this[_0x2bb782(0x140)][_0x2bb782(0x32a)](null);}};Q=J([q(0x0,_0x53cba9(_0xd6ad6b)),q(0x1,_0x5163fa),q(0x2,_0x53cba9(_0x3e8dce)),q(0x3,_0x53cba9(_0x2794a7)),q(0x4,_0x24bbb0)],Q);let Zn=class extends _0x7429c{constructor(_0x46a508,_0x12000a,_0x3ac929,_0x5e4a82,_0x16ee82){const _0x47b36b=_0x551ea6;var _0x165e85;super(),this[_0x47b36b(0x2fe)]=_0x46a508,this[_0x47b36b(0x264)]=_0x12000a,this[_0x47b36b(0x162)]=_0x3ac929,this[_0x47b36b(0x35a)]=_0x5e4a82,this['_userManagerService']=_0x16ee82,K(this,_0x47b36b(0x16d),new Map()),K(this,_0x47b36b(0x21c),new Map()),K(this,_0x47b36b(0x327),new Map()),K(this,_0x47b36b(0x35d),!0x1),this[_0x47b36b(0x35d)]=!((_0x165e85=this[_0x47b36b(0x2fe)][_0x47b36b(0x1dd)](_0x118bf0))!=null&&_0x165e85[_0x47b36b(0x31d)]);}['disableLocalCache'](){const _0x46e902=_0x551ea6;this[_0x46e902(0x35d)]=!0x0;}['enableLocalCache'](){const _0xaa3b4f=_0x551ea6;this[_0xaa3b4f(0x35d)]=!0x1;}get[_0x551ea6(0x282)](){const _0x41ab3d=_0x551ea6;let _0x2c7187=new Map(this['_saveTaskMap']);return this[_0x41ab3d(0x327)][_0x41ab3d(0x2c4)]((_0xbd167d,_0xfe742d)=>{const _0xfc80dd=_0x41ab3d;_0x2c7187[_0xfc80dd(0x297)](_0xfe742d)||_0x2c7187['set'](_0xfe742d,0x0);}),_0x2c7187;}['dispose'](){const _0x5bd60d=_0x551ea6;this[_0x5bd60d(0x134)]||(super[_0x5bd60d(0x121)](),this['_disabled']=!0x0,this['exhaustSavingTask']()[_0x5bd60d(0x3a0)](_0x77addc=>this[_0x5bd60d(0x35a)][_0x5bd60d(0x226)](_0x77addc)));}async[_0x551ea6(0x34c)](_0x45bbc6,_0xd9f985){const _0x3f85e6=_0x551ea6;if(this[_0x3f85e6(0x35d)])return null;let _0x4bcb99=this[_0x3f85e6(0x155)](_0xd9f985),_0x109cdb=await this[_0x3f85e6(0x264)]['getItem'](_0x15ebee(_0x45bbc6,_0x4bcb99));return(_0x109cdb==null?void 0x0:_0x109cdb['unitID'])===_0x45bbc6&&this[_0x3f85e6(0x147)](_0x109cdb[_0x3f85e6(0x363)])===_0x4bcb99?_0x109cdb:null;}async[_0x551ea6(0x1cd)](_0x3b53e7,_0x55b2b9,_0x134688){const _0x3d1744=_0x551ea6;let _0x453f8b=this[_0x3d1744(0x155)](_0x134688),_0xf8d585=_0x15ebee(_0x3b53e7,_0x453f8b),_0x4e92ad=this['_localStorageService'][_0x3d1744(0x146)](_0xf8d585,{..._0x55b2b9,'unitID':_0x3b53e7,'userId':_0x453f8b});return this[_0x3d1744(0x29e)](_0xf8d585,_0x4e92ad),!!await _0x4e92ad;}async['backupOfflineData'](_0x193ddb,_0x21426b,_0x2896b7){const _0x11a6dd=_0x551ea6;let _0x2636b9=this[_0x11a6dd(0x155)](_0x2896b7),_0xb8a1e3=_0x15ebee(_0x193ddb,_0x2636b9),_0x2bde31=this[_0x11a6dd(0x16d)][_0x11a6dd(0x150)](_0xb8a1e3)??await this[_0x11a6dd(0x264)][_0x11a6dd(0x388)](_0xb8a1e3);if(!_0x2bde31||this[_0x11a6dd(0x147)](_0x2bde31[_0x11a6dd(0x363)])!==_0x2636b9||_0x2bde31[_0x11a6dd(0x1c9)]!==_0x193ddb)return;let _0x24a837=Date[_0x11a6dd(0x2ec)](),_0x109fc3=new Date(_0x24a837)[_0x11a6dd(0x16a)]();await this[_0x11a6dd(0x264)][_0x11a6dd(0x146)](_0xb8a1e3+_0x11a6dd(0x214)+_0x24a837,{'reason':_0x21426b,'createdAt':_0x109fc3,'data':_0x2bde31});}async[_0x551ea6(0x2fd)](_0x2fb65d,_0x27e503){const _0x5b500e=_0x551ea6;let _0x43f4a6=this['_getUserId'](_0x27e503),_0x28a82f=_0x15ebee(_0x2fb65d,_0x43f4a6),_0x3edd8c=this[_0x5b500e(0x21c)]['get'](_0x28a82f);_0x3edd8c!==void 0x0&&(window[_0x5b500e(0x300)](_0x3edd8c),this['_saveTaskMap'][_0x5b500e(0x152)](_0x28a82f));let _0x53344c=this[_0x5b500e(0x327)][_0x5b500e(0x150)](_0x28a82f);_0x53344c&&await Promise['allSettled'](_0x53344c),this['_cachedData'][_0x5b500e(0x152)](_0x28a82f),await this[_0x5b500e(0x264)][_0x5b500e(0x2ab)](_0x28a82f);}[_0x551ea6(0x291)](_0x4c22ef,_0x4c3ec0,_0x2b52d5,_0x1e9824,_0x482f22){const _0x23c67a=_0x551ea6;if(this[_0x23c67a(0x134)])return;let _0xe55df=this[_0x23c67a(0x155)](_0x482f22),_0x34bbe3=_0x15ebee(_0x4c22ef,_0xe55df),_0x54da52=this[_0x23c67a(0x162)][_0x23c67a(0x2d4)](_0x4c22ef);this[_0x23c67a(0x16d)][_0x23c67a(0x3a5)](_0x34bbe3,{'unitID':_0x4c22ef,'userId':_0xe55df,'type':_0x4c3ec0,'awaitingChangeset':_0x2b52d5,'mutations':_0x1e9824,'rev':_0x54da52}),this[_0x23c67a(0x21c)][_0x23c67a(0x297)](_0x34bbe3)||this[_0x23c67a(0x177)](_0x34bbe3);}[_0x551ea6(0x155)](_0x10511d=((()=>{const _0x196793=_0x551ea6;var _0x53c0c3;return(_0x53c0c3=this[_0x196793(0x2be)][_0x196793(0x170)]())==null?void 0x0:_0x53c0c3['userID'];})())){const _0x44271e=_0x551ea6;return this[_0x44271e(0x147)](_0x10511d);}[_0x551ea6(0x147)](_0x39e483){return _0x39e483===''||_0x39e483==null?void 0x0:_0x39e483;}[_0x551ea6(0x177)](_0x5d2c9d){const _0x5c27b5=_0x551ea6;let _0xe7011=this[_0x5c27b5(0x359)]();_0xe7011===0x0?this[_0x5c27b5(0x2a6)](_0x5d2c9d)['catch'](_0x5d9f22=>this[_0x5c27b5(0x35a)][_0x5c27b5(0x226)](_0x5d9f22)):this[_0x5c27b5(0x21c)][_0x5c27b5(0x3a5)](_0x5d2c9d,window['setTimeout'](()=>{const _0x4e87ef=_0x5c27b5;this['_saveCache'](_0x5d2c9d)['catch'](_0x2fbac2=>this[_0x4e87ef(0x35a)][_0x4e87ef(0x226)](_0x2fbac2));},_0xe7011));}['_getSaveTimeout'](){const _0x4bb4e2=_0x551ea6;return this[_0x4bb4e2(0x2fe)]['getConfig'](_0x1a11a2)??_0x518e62;}['_saveCache'](_0xe17dd2){const _0x44bf7a=_0x551ea6;let _0x190d55=this[_0x44bf7a(0x21c)]['get'](_0xe17dd2);_0x190d55!==void 0x0&&window['clearTimeout'](_0x190d55);let _0x44b33c=this[_0x44bf7a(0x16d)][_0x44bf7a(0x150)](_0xe17dd2);if(!_0x44b33c)return Promise[_0x44bf7a(0x310)]();let _0x36edcf=this[_0x44bf7a(0x327)][_0x44bf7a(0x150)](_0xe17dd2),_0x4e474f=Promise[_0x44bf7a(0x136)](_0x36edcf?[..._0x36edcf]:[])[_0x44bf7a(0x296)](()=>this['_localStorageService']['setItem'](_0xe17dd2,_0x44b33c))[_0x44bf7a(0x296)](()=>{const _0x8db314=_0x44bf7a;_0x190d55!==void 0x0&&this[_0x8db314(0x21c)][_0x8db314(0x150)](_0xe17dd2)===_0x190d55&&(this[_0x8db314(0x21c)][_0x8db314(0x152)](_0xe17dd2),!this[_0x8db314(0x134)]&&this['_cachedData'][_0x8db314(0x150)](_0xe17dd2)!==_0x44b33c&&this['_scheduleSaving'](_0xe17dd2));});return this[_0x44bf7a(0x29e)](_0xe17dd2,_0x4e474f),_0x4e474f;}[_0x551ea6(0x29e)](_0x564adc,_0x1fa0fa){const _0x83ca02=_0x551ea6;let _0x1d7cc2=this[_0x83ca02(0x327)][_0x83ca02(0x150)](_0x564adc);_0x1d7cc2||(_0x1d7cc2=new Set(),this['_activeSaveTaskMap'][_0x83ca02(0x3a5)](_0x564adc,_0x1d7cc2)),_0x1d7cc2[_0x83ca02(0x1b2)](_0x1fa0fa);let _0x557a05=()=>{const _0x40ae09=_0x83ca02;_0x1d7cc2[_0x40ae09(0x152)](_0x1fa0fa),_0x1d7cc2[_0x40ae09(0x25c)]===0x0&&this[_0x40ae09(0x327)]['delete'](_0x564adc);};_0x1fa0fa['then'](_0x557a05,_0x557a05);}async[_0x551ea6(0x289)](){const _0x483da3=_0x551ea6;let _0x44ac91=[...this[_0x483da3(0x21c)][_0x483da3(0x33f)]()][_0x483da3(0x267)](_0x4b76b3=>this['_saveCache'](_0x4b76b3));for(let _0x51821b of this[_0x483da3(0x327)][_0x483da3(0x231)]())_0x44ac91[_0x483da3(0x15a)](...[..._0x51821b]['map'](_0x3a46f4=>_0x3a46f4[_0x483da3(0x296)](()=>void 0x0)));await Promise[_0x483da3(0x32b)](_0x44ac91);}};Zn=J([q(0x0,_0x3e03c2),q(0x1,_0x308b99),q(0x2,_0x53cba9(_0x227587)),q(0x3,_0x4da388),q(0x4,_0x53cba9(_0xb80337))],Zn);var Qn=class extends _0x7429c{get['online'](){const _0x591ff1=_0x551ea6;return this[_0x591ff1(0x27b)][_0x591ff1(0x333)]();}constructor(){const _0x4e531e=_0x551ea6;super(),K(this,_0x4e531e(0x27b),new _0x49b31d(navigator['onLine'])),K(this,_0x4e531e(0x35b),this[_0x4e531e(0x27b)]['asObservable']()),this[_0x4e531e(0x216)](),this[_0x4e531e(0x2fb)]();}[_0x551ea6(0x121)](){const _0x4ec528=_0x551ea6;super[_0x4ec528(0x121)](),this[_0x4ec528(0x27b)][_0x4ec528(0x370)]();}[_0x551ea6(0x2fb)](){const _0x5cc2cb=_0x551ea6;this[_0x5cc2cb(0x1e0)](_0x55f555(_0x2e313b(window,_0x5cc2cb(0x18c)),_0x2e313b(window,_0x5cc2cb(0x286)),_0x2e313b(document,_0x5cc2cb(0x2d9))['pipe'](_0x325cfb(()=>document[_0x5cc2cb(0x13c)]===_0x5cc2cb(0x2f9)),_0xf2c32b(_0x766d7d=>_0x766d7d)))[_0x5cc2cb(0x19f)](_0xf2c32b(()=>navigator[_0x5cc2cb(0x156)]))[_0x5cc2cb(0x1d6)](()=>this[_0x5cc2cb(0x27b)][_0x5cc2cb(0x32a)](!0x0)));}['_listenToOfflineEvent'](){const _0x2dfabb=_0x551ea6;this['disposeWithMe'](_0x2e313b(window,_0x2dfabb(0x2f2))[_0x2dfabb(0x1d6)](()=>this['_online$'][_0x2dfabb(0x32a)](!0x1)));}};let $=class extends _0x485276{constructor(_0x317df7=fn,_0xe404e4,_0x127b2a,_0x5dcd3e,_0x1a2ff9){const _0x2de3af=_0x551ea6;super(),this[_0x2de3af(0x16b)]=_0x317df7,this['_renderManagerService']=_0xe404e4,this[_0x2de3af(0x2b9)]=_0x127b2a,this[_0x2de3af(0x2fe)]=_0x5dcd3e,this[_0x2de3af(0x142)]=_0x1a2ff9;let {..._0x431e8e}=_0xff4682({},fn,this['_config']);this['_configService'][_0x2de3af(0x372)]('collaboration-client-ui.config',_0x431e8e);}[_0x551ea6(0x322)](){const _0x13e70c=_0x551ea6;this[_0x13e70c(0x20b)](),this['disposeWithMe'](this['_commandService']['registerCommand'](dn)),this['_initDependencies']();}[_0x551ea6(0x38e)](){const _0x514828=_0x551ea6;this[_0x514828(0x275)]();}[_0x551ea6(0x20b)](){const _0x1fe985=_0x551ea6;var _0x4c7a73;let _0x5db3e6=[[hn],[_0x36529d,{'useClass':_0x24b7e7}],[_0x33dbbe,{'useClass':Zn}],[_0x3fc06d,{'useClass':Qn}],[Y],[Bn],[X],[Rn],[Q]];this['_config']['enableDocumentCollaborationUI']!==!0x1&&_0x5db3e6[_0x1fe985(0x15a)]([Z],[Vn],[Hn],[vn],[qn],[pn]),this[_0x1fe985(0x16b)][_0x1fe985(0x349)]&&_0x5db3e6[_0x1fe985(0x15a)]([Jn]),_0x19da21(this[_0x1fe985(0x2b9)],_0x5714cf(_0x5db3e6,(_0x4c7a73=this[_0x1fe985(0x16b)])==null?void 0x0:_0x4c7a73['override']));}[_0x551ea6(0x275)](){const _0x451e65=_0x551ea6;this['_config'][_0x451e65(0x2e2)]!==!0x1&&this['disposeWithMe'](this[_0x451e65(0x39f)][_0x451e65(0x198)](_0x3da1b0[_0x451e65(0x1b3)],[On])),this['disposeWithMe'](this[_0x451e65(0x39f)][_0x451e65(0x198)](_0x3da1b0[_0x451e65(0x23d)],[An]));}['_initDependencies'](){const _0x4892f2=_0x551ea6;_0x4cebeb(this[_0x4892f2(0x2b9)],[[X],[Rn],[Y],[Bn],[Q]]),this[_0x4892f2(0x16b)]['enableDocumentCollaborationUI']!==!0x1&&_0x4cebeb(this[_0x4892f2(0x2b9)],[[qn],[pn]]),this['_config']['enableFrontendLog']&&_0x4cebeb(this['_injector'],[[Jn]]);}};K($,_0x551ea6(0x34a),_0x551ea6(0x321)),K($,_0x551ea6(0x159),ln),K($,'version',un),$=J([_0x1ccab6(_0x480e41,_0x5240a6,_0x3289b8,_0x426a9e,_0x36d29a,_0x5c4b5f,_0x36dd11),q(0x1,_0x4e616a),q(0x2,_0x53cba9(_0x2794a7)),q(0x3,_0x3e03c2),q(0x4,_0x86e5be)],$);let $n=class extends _0x384371{constructor(_0x544fdf,_0x48bd68,_0x534a3b,_0x179bf4,_0x4e9b32){const _0x3a47db=_0x551ea6;super(_0x544fdf,_0x48bd68,_0x534a3b,_0x179bf4,_0x4e9b32),K(this,'_dispose$',new _0x148114()),this[_0x3a47db(0x1e0)](()=>{const _0x360d11=_0x3a47db;this['_dispose$'][_0x360d11(0x32a)](),this[_0x360d11(0x13a)][_0x360d11(0x370)]();});}async[_0x551ea6(0x128)](_0x3c749f){const _0x4d4508=_0x551ea6;let _0x2462c7=await this['_getSessionTicket'](),_0x5b772a=this[_0x4d4508(0x366)](_0x3c749f,_0x2462c7);return this[_0x4d4508(0x2c9)](_0x5b772a);}[_0x551ea6(0x366)](_0x26500c,_0x473929){const _0xe1b7de=_0x551ea6;let _0x15ce54=typeof window>'u'?new URL(_0x26500c):new URL(_0x26500c,window['location'][_0xe1b7de(0x16e)]);_0x15ce54[_0xe1b7de(0x13e)][_0xe1b7de(0x3a5)]('sessionTicket',_0x473929);let _0x4f11c7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xe1b7de(0x377)][_0xe1b7de(0x25f)]);return _0x4f11c7['get']('runId')&&_0x15ce54[_0xe1b7de(0x13e)][_0xe1b7de(0x3a5)](_0xe1b7de(0x161),_0x4f11c7[_0xe1b7de(0x150)](_0xe1b7de(0x161))),_0x15ce54[_0xe1b7de(0x24b)]();}async[_0x551ea6(0x20d)](){const _0x117c61=_0x551ea6;var _0x59af7b;let _0x1d7037=this[_0x117c61(0x2fe)][_0x117c61(0x1dd)](_0x118bf0),_0xe86626=(_0x1d7037==null?void 0x0:_0x1d7037[_0x117c61(0x36e)])??_0xaf8782;return((_0x59af7b=(await _0x2b32c0(this[_0x117c61(0x233)][_0x117c61(0x287)](_0x117c61(0x2b2),_0xe86626,{'headers':{'Content-Type':_0x117c61(0x2f3)}})[_0x117c61(0x19f)](_0xf2c32b(_0x4d1664=>_0x4d1664[_0x117c61(0x308)]===_0x27149d['Response']),_0x19edf7(0x4e20),_0x31ffb0(this[_0x117c61(0x13a)]))))[_0x117c61(0x1f3)])==null?void 0x0:_0x59af7b[_0x117c61(0x16c)])??'';}};$n=J([q(0x0,_0x53cba9(_0x2794a7)),q(0x1,_0x53cba9(_0x547f50)),q(0x2,_0x3e03c2),q(0x3,_0x4da388),q(0x4,_0x395929)],$n);let er=class extends _0x7429c{constructor(_0x3eca53,_0x5440c3,_0x52ef51){const _0x2809fb=_0x551ea6;super(),this[_0x2809fb(0x1a7)]=_0x3eca53,this[_0x2809fb(0x233)]=_0x5440c3,this[_0x2809fb(0x2fe)]=_0x52ef51;}async[_0x551ea6(0x1ed)](_0x16bf45,_0x2282f2,_0x425029,..._0x158a63){const _0x460102=_0x551ea6;let _0x1b226c=this[_0x460102(0x1a7)][_0x460102(0x342)]();if(!_0x1b226c)throw Error(_0x460102(0x28c));let _0x5cd6c7=(this[_0x460102(0x2fe)][_0x460102(0x1dd)](_0x14f42a)??_0x5d8fea)+'/'+_0x16bf45+'/run/'+_0x2282f2,_0x1a534e={'scriptId':_0x16bf45,'runId':new URL(window[_0x460102(0x377)][_0x460102(0x20c)])['searchParams']['get'](_0x460102(0x161))??'','function':_0x2282f2,'unitId':_0x1b226c[_0x460102(0x29d)](),'argsOfFunction':JSON[_0x460102(0x21e)](_0x158a63),'invokeId':_0x425029[_0x460102(0x171)]??'','executionId':_0x425029['executionId']??''};try{let _0x1e7d93=await this[_0x460102(0x233)]['post'](_0x5cd6c7,{'body':_0x1a534e});return _0x1e7d93[_0x460102(0x1f3)][_0x460102(0x226)]&&_0x1e7d93['body'][_0x460102(0x226)][_0x460102(0x183)]!==_0x1e8547['OK']?_0x460102(0x379):_0x1e7d93[_0x460102(0x1f3)][_0x460102(0x38b)];}catch{return _0x460102(0x379);}}};er=J([q(0x0,_0xdac9a9),q(0x1,_0x53cba9(_0x547f50)),q(0x2,_0x3e03c2)],er);const tr=0x7530,nr=_0x551ea6(0x329);var rr=class extends _0x7429c{constructor(){const _0x700d93=_0x551ea6;super(),K(this,'_id',_0x40fbdd()),K(this,_0x700d93(0x293),new Set()),K(this,_0x700d93(0x204),new Map()),K(this,_0x700d93(0x24a),null),K(this,_0x700d93(0x239),new Map()),K(this,'_unitStatus',new Map()),this[_0x700d93(0x1db)]();}[_0x551ea6(0x121)](){const _0x1cd84f=_0x551ea6;super[_0x1cd84f(0x121)](),this['_clearOtherTimers'][_0x1cd84f(0x2c4)]((_0x31a59e,_0x10a28b)=>this['_removeClearOtherTimer'](_0x10a28b)),this[_0x1cd84f(0x24a)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x551ea6(0x335)](_0x4b0d07){const _0x48324f=_0x551ea6;return this['_ensureSubject'](_0x4b0d07)[_0x48324f(0x19f)](_0x3ec06());}[_0x551ea6(0x346)](_0x432c26){const _0x494bba=_0x551ea6;this[_0x494bba(0x293)][_0x494bba(0x25c)]===0x0&&this[_0x494bba(0x1b4)](),this['_selfUnitIDs']['add'](_0x432c26),this[_0x494bba(0x2bd)]({'type':0x0,'memberID':this[_0x494bba(0x199)],'unitIDs':[_0x432c26],'isForwarded':!0x1});}[_0x551ea6(0x371)](_0x58e3c0){const _0x1b6016=_0x551ea6;this['_selfUnitIDs'][_0x1b6016(0x152)](_0x58e3c0),this[_0x1b6016(0x293)][_0x1b6016(0x25c)]===0x0&&this[_0x1b6016(0x24a)]&&window[_0x1b6016(0x35f)](this[_0x1b6016(0x24a)]);}[_0x551ea6(0x1db)](){const _0x3d2cc5=_0x551ea6;this[_0x3d2cc5(0x1e0)](_0x40df0c(_0x2e313b(window,_0x3d2cc5(0x15c))['subscribe'](_0x34f5a=>{const _0x1acea1=_0x3d2cc5;if(_0x34f5a[_0x1acea1(0x208)]!==nr||!_0x34f5a['newValue'])return;let _0x172427=JSON[_0x1acea1(0x206)](_0x34f5a[_0x1acea1(0x1de)]);this[_0x1acea1(0x1a0)](_0x172427);}))),window[_0x3d2cc5(0x386)](_0x3d2cc5(0x205),()=>this['_send']({'type':0x1,'memberID':this[_0x3d2cc5(0x199)],'unitIDs':Array[_0x3d2cc5(0x338)](this[_0x3d2cc5(0x293)])}));}['_handleEvent'](_0x5b3032){const _0x53eda3=_0x551ea6;switch(_0x5b3032[_0x53eda3(0x308)]){case 0x0:this[_0x53eda3(0x1e3)](_0x5b3032);break;case 0x1:this[_0x53eda3(0x148)](_0x5b3032);break;case 0x2:this[_0x53eda3(0x36c)](_0x5b3032);}}['_handleJoinEvent'](_0x1c6d88){const _0x59c6af=_0x551ea6;let {unitIDs:_0x354150,memberID:_0x22e950,isForwarded:_0x43b56f}=_0x1c6d88;_0x354150[_0x59c6af(0x2c4)](_0x287f3c=>{const _0xf932e5=_0x59c6af;if(!_0x43b56f&&this[_0xf932e5(0x204)][_0xf932e5(0x297)](_0x287f3c)&&this[_0xf932e5(0x2f1)](_0x287f3c)[_0xf932e5(0x32a)](_0x299f06[_0xf932e5(0x2ae)]),!this[_0xf932e5(0x204)][_0xf932e5(0x297)](_0x287f3c)||!this[_0xf932e5(0x204)][_0xf932e5(0x150)](_0x287f3c)[_0xf932e5(0x297)](_0x22e950)){let _0x496acc=this[_0xf932e5(0x204)][_0xf932e5(0x150)](_0x287f3c)||new Set();_0x496acc['add'](_0x22e950),this['_unitOnClients'][_0xf932e5(0x3a5)](_0x287f3c,_0x496acc),this[_0xf932e5(0x1ea)](_0x22e950);}}),_0x43b56f||this[_0x59c6af(0x2bd)]({'type':0x0,'memberID':this[_0x59c6af(0x199)],'unitIDs':[...this[_0x59c6af(0x293)]],'isForwarded':!0x0});}[_0x551ea6(0x1ea)](_0x4925f6){const _0x232c58=_0x551ea6;this[_0x232c58(0x1cb)](_0x4925f6);let _0x340460=window[_0x232c58(0x37e)](()=>{const _0xff7cb9=_0x232c58;this['_unitOnClients'][_0xff7cb9(0x2c4)](_0x3b0b8e=>{const _0x1db9fb=_0xff7cb9;_0x3b0b8e[_0x1db9fb(0x152)](_0x4925f6);});},tr*0x2);this['_clearOtherTimers'][_0x232c58(0x3a5)](_0x4925f6,_0x340460);}[_0x551ea6(0x1cb)](_0xab6993){const _0x1d36a5=_0x551ea6;if(this[_0x1d36a5(0x239)][_0x1d36a5(0x297)](_0xab6993)){let _0x472cb6=this[_0x1d36a5(0x239)][_0x1d36a5(0x150)](_0xab6993);_0x472cb6&&window[_0x1d36a5(0x300)](_0x472cb6),this[_0x1d36a5(0x239)][_0x1d36a5(0x3a5)](_0xab6993,null);}}['_handleLeaveEvent'](_0xdb39a1){const _0x1f5795=_0x551ea6;let {memberID:_0x25450a,unitIDs:_0x3ce1fc}=_0xdb39a1;_0x3ce1fc[_0x1f5795(0x2c4)](_0x47db10=>{const _0x36b1ae=_0x1f5795;var _0x11fb66;let _0x3db1ce=this[_0x36b1ae(0x204)][_0x36b1ae(0x150)](_0x47db10);_0x3db1ce&&(_0x3db1ce[_0x36b1ae(0x152)](_0x25450a),(_0x11fb66=this['_ensureSubject'](_0x47db10))==null||_0x11fb66[_0x36b1ae(0x32a)](_0x3db1ce[_0x36b1ae(0x25c)]===0x0?_0x299f06[_0x36b1ae(0x22c)]:_0x299f06[_0x36b1ae(0x2ae)]));}),this['_removeClearOtherTimer'](_0x25450a);}[_0x551ea6(0x36c)](_0x3eeb5a){const _0xf2983a=_0x551ea6;this['_scheduleClearOtherTimer'](_0x3eeb5a[_0xf2983a(0x245)]);}[_0x551ea6(0x2bd)](_0xb191cb){localStorage['setItem'](nr,JSON['stringify'](_0xb191cb));}[_0x551ea6(0x1b4)](){const _0x1c5b62=_0x551ea6;this['_heartbeatTimer']=window[_0x1c5b62(0x122)](()=>{const _0x2d3362=_0x1c5b62;this[_0x2d3362(0x2bd)]({'type':0x2,'memberID':this['_id']});},tr);}[_0x551ea6(0x2f1)](_0x29953){const _0x2f77d3=_0x551ea6;return this[_0x2f77d3(0x1e8)][_0x2f77d3(0x297)](_0x29953)||this[_0x2f77d3(0x1e8)][_0x2f77d3(0x3a5)](_0x29953,new _0x49b31d(_0x299f06[_0x2f77d3(0x22c)])),this[_0x2f77d3(0x1e8)][_0x2f77d3(0x150)](_0x29953);}};export{$n as BrowserCollaborationSocketService,Y as DesktopCollaborationStatusDisplayController,er as RemoteUniscriptService,kn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService};