@univerjs-pro/collaboration-client-ui 1.5.0 → 1.5.1

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 (85) 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.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x7ea594=_0x1c2b;(function(_0x20af86,_0x623484){const _0x26b7fc=_0x1c2b,_0x2257c7=_0x20af86();while(!![]){try{const _0x52d67f=parseInt(_0x26b7fc(0x162))/0x1+-parseInt(_0x26b7fc(0x356))/0x2*(-parseInt(_0x26b7fc(0xdb))/0x3)+parseInt(_0x26b7fc(0x23f))/0x4+-parseInt(_0x26b7fc(0x17f))/0x5+parseInt(_0x26b7fc(0x16a))/0x6+parseInt(_0x26b7fc(0x160))/0x7+-parseInt(_0x26b7fc(0x1b3))/0x8;if(_0x52d67f===_0x623484)break;else _0x2257c7['push'](_0x2257c7['shift']());}catch(_0x1d0e02){_0x2257c7['push'](_0x2257c7['shift']());}}}(_0x5834,0x48880));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x14ffae,CollaborationController as _0x2279ca,CollaborationSessionService as _0x25de4e,CollaborationSocketService as _0x325a9e,CollaborationStatus as _0x65ab9a,CollaborationUIEventId as _0x1d65e1,CollaborationUIEventService as _0x603f72,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x39f491,DEFAULT_WS_SESSION_TICKET_URL as _0x4c01fe,DocCollaborationEntity as _0x1f1988,ILocalCacheService as _0x471d6f,INetworkConditionService as _0x2ae2cd,LOCAL_CACHE_INTERVAL as _0x4cb928,LOCAL_CACHE_INTERVAL_KEY as _0x78a9c6,MemberService as _0x268c3a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5ccd97,SessionStatus as _0xa8ada1,UnitStatus as _0x24c6b1,UniverCollaborationClientPlugin as _0x512565,getLocalCacheKey as _0x156238}from'@univerjs-pro/collaboration-client';import{COLORS as _0x48f4c1,ColorKit as _0x4d3a61,CommandType as _0x4d64aa,DOC_RANGE_TYPE as _0x1b3059,DependentOn as _0x1bc7be,Disposable as _0x2c43e7,DisposableCollection as _0x200b02,ICommandService as _0x15fe51,IConfigService as _0x16ce58,IImageIoService as _0x4c0ca6,ILocalStorageService as _0x16f020,ILogService as _0x1984c9,IUniverInstanceService as _0x28a580,Inject as _0x5c888d,Injector as _0x451f97,LocaleService as _0x292d2f,Plugin as _0x36cdce,Rectangle as _0xdb208c,RxDisposable as _0x28ff85,ThemeService as _0x16edca,Tools as _0x40f052,UniverInstanceType as _0x51081c,UserManagerService as _0x3c2aea,debounce as _0xf32b8d,fromEventSubject as _0x370585,generateRandomId as _0x415285,isInternalEditorID as _0x489a17,merge as _0x54b9e6,mergeOverrideWithDependencies as _0x9b1a78,registerDependencies as _0x1d9129,toDisposable as _0x42bb3c,touchDependencies as _0x58d44e}from'@univerjs/core';import{BuiltInUIPart as _0x44eea7,IBeforeCloseService as _0x3eb2d8,IMessageService as _0x4953bc,INotificationService as _0x5b6302,IUIPartsService as _0x8a5b3a,IUnitPresenceUIAdapterRegistry as _0x14c253,connectInjector as _0x1ca99d,useDependency as _0xd60b37,useObservable as _0x6ada4b}from'@univerjs/ui';import{BehaviorSubject as _0x5a8e6e,Subject as _0x83a48d,combineLatest as _0x41dcbc,debounceTime as _0x40cc80,distinctUntilChanged as _0x3b143a,filter as _0x399a72,firstValueFrom as _0x4b2eab,fromEvent as _0x53faeb,map as _0x31e6a5,merge as _0x28759e,of as _0x13f646,switchMap as _0x4957ed,takeUntil as _0x2a3afc,throttle as _0x3dbcf7,timeout as _0x10c310,timer as _0x46c7e6}from'rxjs';import{distinctUntilChanged as _0xf1eb50,filter as _0x39dc50,map as _0x3cbcba,switchMap as _0x1da258,takeUntil as _0x4eff35,throttleTime as _0x51921d}from'rxjs/operators';import{Button as _0x301aac,MessageType as _0x3a5015,Tooltip as _0x1abd88,clsx as _0x6fa4d7}from'@univerjs/design';import{LoadingMultiIcon as _0x4dbfe2,OffLineIcon as _0x614430,OnLineIcon as _0x5a86c7,WarningIcon as _0x240f13}from'@univerjs/icons';import{createElement as _0x2317a2,useCallback as _0x328693,useMemo as _0x4813a0}from'react';import{jsx as _0x57ef67,jsxs as _0x3c0327}from'react/jsx-runtime';import{CollaborationEvent as _0x865df6,ISnapshotServerService as _0x165792,ITransformService as _0x31acf5,RevisionService as _0x19bbc1,SnapshotLoadStage as _0x2f9ccc,SnapshotLoadingService as _0x18f5c1,UniverCollaborationPlugin as _0x24cbc8,isTransformMutationFailure as _0x13597e,isTransformMutationsWithChangesetSuccess as _0x1db856}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x333558}from'@univerjs-pro/license';function _0x5834(){const _0x2c9c80=['replace','/universer-api/frontend/logs','flatMap','top','collaboration-client-ui.config','getCurrentTypeOfUnit$','_httpService','icon','collaboration-client-ui.remoteRevert.title','replaceSelectionInfoWithoutRefresh','transformStateCache','clearTimeout','_syncAdapters','labelHorizontalPosition','subUnitId','_session','@univerjs-pro/collaboration-client-ui','onCommandExecuted','reload','_collabSessionService','collaboration-client-ui.conflict.retry','getRangePointData','clearInterval','_lastPointer','exhaustSavingTask','max','ACTIVE_UNIT_EVENT_CHANNEL','_handleCursorUpdate','m2Prime','finally','_normalizeUserId','rgba','imageSourceType','searchParams','removeEventListener','registerCommand','getCurrentUnitOfType','_initStatusComponent','setTimeout','_getSaveTimeout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUndoRedoMutationParamsCache','_uploadLog','_initWindowErrorListener','subscribeEvent','_conflictNotification','_localCacheService','forEach','_initUserListener','preventDefault','_onConflict','min','has','width','_render','_unitStatus','small','getTypeOfUnitDisposed$','_uiPartsService','collabCursorState$','unitType','unitId','selections','save','toRgbString','beginPath','decorate','stack','getCollabEntities','name','object','getMember','_retryConflictCacheClear','push','_docTransformStateCacheService','_blockProgressWatches','collaboration-client-ui.collabStatus.conflict','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','colno','Error','stream','_cursorShapes','search','transformMutation','application/json','pageType','true','setConfig','number','collaboration-client-ui.collabStatus.fetchMiss','_refreshCollabCursors','1.5.0','_assignedColors','getCellIndexByOffset','deepClone','_heartbeatTimer','dispose','invokeId','\x20-\x20','collaboration-client-ui.remoteRevert.content','_onCursorUpdate','cursorInfo$','symbol','some','MoveRangeCommandId','onTransformChange$','columnGroupId','kind','freeze','setRemotePresence','endOffset','OTHER_CLIENT_EDITING','JOIN_ROOM_FAILED','getCurrentSkeleton','tableId','wsSessionTicketUrl','_scheduleClearOtherTimer','cacheCleared','_docStateChangeManagerService','_drawAnchor','FromArray','executionId','getRenderUnitById','_startEntity','bold\x2013px\x20Arial,\x20sans-serif','[Unhandled\x20Rejection]:\x20','override','isFinite','canRenderAnchor','isArray','univer-transition-all\x20univer-duration-200','i18nKey','getAllUnitsForType','updateOfflineData','_initUnhandledRejectionListener','collaboration-client-ui.collaboration.single-unit.warning','Unknown\x20user','onRendered','_syncEditingCollabCursorService','ERROR','OTHER_CLIENTS_EDITING','univer-appearance-none','registerComponent','_disabled','_labelHorizontalPosition','_beforeCloseService','_roomMembers$','yellow.400','_unitOnClients','timeoutState$','_removeCollabCursors','join','_doCreateSocket','runId','focused$','getMergeData','span','canRenderSelection','_dispose$','_scheduleHeartbeat','filter','_pointerMoveDisposable','selection','unload','getColorFromTheme','offsetY','_univerInstanceService','indicator','[Window\x20Error]:\x20','_getSessionTicket','labelPosition','_entities','transformMutationsWithChangeset','_startDocCollabCursor','univer-text-blue-500','_retryingConflictCacheUnitIDs','storage','_colorIndex','_showConflictProcessingNotification','_memberService','version','_ensureSubject','remove','requireSession','memberId','stringify','update','univer-m-0\x20univer-p-0','_memberID','button','type','makeDirty','_handleHeartbeatEvent','state','includes','_drawTextRange','...','2wcCGAY','value','fill','GET','memberID','then','_createSocketURL','all','_timeoutState$','1750503YfhOrQ','send','activate','_notificationService','_transformService','getActiveSheet','key','AWAITING_WITH_PENDING','univer-text-gray-400','asObservable','row','_clearTimeoutState','setAlpha','online','collaboration-client-ui.collabClient.tooltip.reconnect','\x20at\x20','_initialized','_logService','backgroundColor','fillRule','_name','_showConflictCacheClearFailedNotification','Enter','localPresence$','slice','getItem','getTypeOfUnitAdded$','_backgroundColor','collaboration-client-ui.conflict.title','disposeWithMe','_disposeEntitiesForType','_anchorDot','_removeRemotePresence','string','_docTransformSelectionsService','clearRemotePresences','_registerPresenceStatusComponent','TEXT','syncEditingCollabCursor','_collaborationUIEventService','div','_saveCache','userID','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','assignAColorForMemberID','message','mutations','createInstance','data','cursorInfo','fillText','options','license_editing_connections_exceeded','origin','_registerRenderDependencies','toString','_configService','_drawRectRange','_handleHover','getFocusedUnit','contains','location','_status$','enableOfflineEditing','getAncestorScale','_initEntityListener','endRow','_highlight','collab-text-range-','_initEvent','length','UNIVER_SHEET','getViewport','snapshot-loading-timeout','_getAnchorBounding','RemoveColCommandId','_reloadPage','addHandlerCallback','_instanceService','startColumn','_themeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getCollabCursors$','reason','triggerDblclick','backupOfflineData','params','_cursorInfo$','_localeService','0.2)','primary','next','stage','_refRangeService','highlight','getValue','getMemberID','univer-flex\x20univer-items-center\x20univer-justify-center','_bindAdapter','post','PENDING','_injector','snapshot-loading-','startsWith','collaboration-client-ui.permission.title','_transformUndoRedoStack','_collabCursorController','pluginName','_getScale','#FFF','_cachedData','collaboration-client-ui.conflict.clearFailed','isActive','_draw','unit','redoState','_hovered','_initDependencies','getSheetBySheetId','timedOut','_stopBlinking','_scheduleSaving','_userManagerService','_anchor','_cursors','getDocRanges','_presenceAdapterRegistry','_initPresenceStatusComponents','userId','_collaborationSessionService','_isDisposed','_config','_transformPreviousActiveRange','3787490xYuuOe','get','571462zIWgxO','values','set',',\x200.2)','_getMergeRange','Failed','transformRemoteChangeset','_disposed','244428Pcnbda','_transformHistoryAndStateStack','_scene','_selfUnitIDs','code','removeItem','constructor','map','Response','_docSkeletonManagerService','unshift','executeCommand','RECT','_messageService','_eventUnsubscribe','spin','reconnect','iterator','result','onLine','univer-text-orange-500','1604985UvttTQ','_adapter','function','delete','_editingConnectionsExceededNotices','startRow','statusUIPart','_getSheetObject','setInterval','parse','_blinkIntervalTimer','_hideTimer','strokeWidth','collaboration-client-ui.permission.content','getCurrentRevOfUnit','size','status','dispose$','_init','_docTransformIMECacheService','catch','_cursor','unitID','_removeClearOtherTimer','colorClass','loading','_saveTimedOutNotices','_hover','visible','_isBlinkVisible','error','_labelPosition','DeleteRangeMoveUpCommandId','_collabCursorState$','collaboration-client-ui.snapshotLoading.timeout','removeRemotePresence','sheetId','setShapeProps','ranges','_sendLocalPresence','sheetID','_removeAwaitingNotices','saveTaskMap','univer-text-red-500','_startBlinking','_localStorageService','roomMembers','default','text','onPointerEnter$','_getUserId','LICENSE_DOMAIN_REJECTED','12067952zqmkHs','InsertColCommandId','pulse','segmentPage','_onRefRangeChange','_getLighterColor','getOffsetConfig','undoState','color','unsubscribe','find','Loading','getActiveRange','SOCKET_FAILED_RETRY','_commandService','restore','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_shapes','_onCursorDelete','_updateCollabCursors','COMPLETE','red.300','onStarting','ticket','collaboration-client-ui.collabStatus.offline','onPointerMove$','_blinkTimer','add','textRanges','_initResize','_id','addEventListener','onPointerLeave$','event$','pipe','content','registerRenderModule','toISOString','_offsetY','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_watchBlockProgress','refreshLabel','collaboration-client-ui.operation.update-remote-unit-presence','subscribe','_adapterRegistry','highlightSecond','addObject','endColumn','loadedBlocks','lineno','enableLocalCache','getSkeleton','_imageIoService','runOnServer','sessionStatus$','right','from','_disposeEntity','setItem','init','closePath','show','getCurrentSelections','static','entityInit$','setOffsetY','roomMembers$','_saveTaskMap','setStateCache','filename','collaboration-client-ui.session.collaboration-timeout','_renderManagerService','_clearRemotePresences','collaboration-client-ui.collaboration.closeRoom','allSettled','_collaborationController','_showAwaitingNotice','_handleEvent','title','_initConflictHandling','CONFLICT_PROCESSING','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.license.title','getUnit','UPDATE_CURSOR','DeleteRangeMoveLeftCommandId','clickable','AWAITING','_listenToOnlineEvent','_colorAssignService','_docClipboardService','transformIMECache','_initStatusListener','getLocalPresence','getSelectionInfo','sessionTicket','socket$','lineTo','_docSyncEditingCollabCursorService','_context','toPrimitive','_revisionService','_initCommandExecutedListener','getSheetId','pageIndex','focusedId','collaboration-client-ui.session.will-retry','_adapterDisposables','hovered','polite','clear','_range','bottom','createSocket','body','getScrollXYInfoByViewport','collaboration-client-ui.conflict.processing','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_clearBlockProgressWatch','black','onMouseMove','_snapshotLoadingService','_online','_docSelectionManagerService','getStateCache','unhandledrejection','warning','totalBlocks','isEditing','purple.300','_presenceStatusRegistrations','_replaceConflictNotification','_sheetSkeletonManagerService','_toggleOnline','_toggleOffline','selectedIds','enableDocumentCollaborationUI','_messageIds','column','_highlightSecond','1559232YlHjBr','_syncPresenceStatusComponents','collaboration-client-ui.license.domain-rejected','_monkeyPatchLogService','call','enableFrontendLog','findNodePositionByCharIndex','resize','saveImage','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','Warning','adapters$',':backup:','packageName','arc','USERS_LEAVE','eventID','_updateLocalCursor','UNIVER_DOC','_setupBeforeClosingHandler','blue.400','currentTheme$','_online$','moveTo','measureText','resolve','newValue','getConfig','collaboration-client-ui.snapshotLoading.refresh','height','_listenToOfflineEvent','pointer','showText','evenodd','[LogService\x20Error]:\x20','_activeSaveTaskMap','with','CLOSE_ROOM','green.600','defineProperty','_pendingEntities','collaboration-client-ui.session.connection-failed','addClipboardHook','hide','_clearOtherTimers','_color','registerRefRange','timeoutId','columnIndex','getUnitId','status$','doc.mutation.rich-text-editing','tooltipKey','rgba(','_handleJoinEvent','split','univer-border-none\x20univer-bg-transparent','complete','_entityInit$','range','_initAwaitingNotices','m1Prime','focus','_textBubble','_trackActiveSaveTask','OFFLINE','resume','setUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','prepareTransformSelections','collab-text-anchor-','drawWith','ONLINE','/run/','NOT_COLLAB','_registerDependencies','rgb','dark:focus:!univer-ring-offset-gray-800','bind','saveOfflineData','parseInt','_send'];_0x5834=function(){return _0x2c9c80;};return _0x5834();}import{DocSelectionManagerService as _0x291a40,DocSkeletonManagerService as _0x12f6b5,DocStateChangeManagerService as _0x2f70c8,RichTextEditingMutation as _0x4db170,SetTextSelectionsOperation as _0x3e3d2c,UniverDocsPlugin as _0x52e451}from'@univerjs/docs';import{DocIMEInputManagerService as _0x4434b8,IDocClipboardService as _0x37f83b,NodePositionConvertToCursor as _0x3213e1,NodePositionConvertToRectRange as _0x3655aa,SetDocZoomRatioOperation as _0x43d3b6,TEXT_RANGE_LAYER_INDEX as _0x22778c,UniverDocsUIPlugin as _0x1d9f35}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x304f0a,IRenderManagerService as _0x23794e,Rect as _0x3a3ee5,RegularPolygon as _0x1a0717,SHEET_VIEWPORT_KEY as _0x1822ce,Shape as _0x41d5b2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2dc7e5,UniverRenderEnginePlugin as _0x4540ab,Vector2 as _0x9573fe,getColor as _0x1e82d5,getDocumentSkeletonColumnPagePathInfo as _0x1b7c2a}from'@univerjs/engine-render';import{HTTPEventType as _0x42c157,HTTPService as _0x36cdaa,ISocketService as _0x1ae3e2,UniverNetworkPlugin as _0x176c33,WebSocketService as _0x29894e}from'@univerjs/network';import{deserializeRangeWithSheet as _0x3b9903,serializeRangeWithSheet as _0x2b799d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5d5430,RefRangeService as _0x3e2e64,SetSelectionsOperation as _0x5a7a11,SheetsSelectionsService as _0x3c2429,handleDeleteRangeMoveLeft as _0x33b6d7,handleDeleteRangeMoveUp as _0x1d6acb,handleIRemoveCol as _0x5e4f50,handleIRemoveRow as _0x12e3bf,handleInsertCol as _0x57c4d6,handleInsertRangeMoveDown as _0xd032ba,handleInsertRangeMoveRight as _0x2eb875,handleInsertRow as _0x29910d,handleMoveRange as _0x294967,runRefRangeMutations as _0x1ff6e1}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x2e722a,getCoordByCell as _0x17a4e6,getSheetObject as _0x27e85c}from'@univerjs/sheets-ui';import{ErrorCode as _0x34e0a6}from'@univerjs/protocol';function en(_0x2c3fec){const _0x265614=_0x1c2b;switch(_0x2c3fec){case _0x65ab9a[_0x265614(0x280)]:return{'icon':_0x57ef67(_0x614430,{}),'colorClass':_0x265614(0x1aa),'i18nKey':_0x265614(0x1cb),'tooltipKey':_0x265614(0xe9),'clickable':!0x0,'indicator':_0x265614(0x1f2)};case _0x65ab9a['CONFLICT']:return{'icon':_0x57ef67(_0x614430,{}),'colorClass':_0x265614(0x17e),'i18nKey':_0x265614(0x2dd),'clickable':!0x1,'indicator':'static'};case _0x65ab9a['FETCH_MISS']:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':_0x265614(0x33f),'i18nKey':_0x265614(0x2ea),'clickable':!0x1,'indicator':'spin'};case _0x65ab9a[_0x265614(0x289)]:return{'icon':_0x57ef67(_0x5a86c7,{}),'colorClass':_0x265614(0xe3),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x265614(0x1f2)};case _0x65ab9a[_0x265614(0x20a)]:case _0x65ab9a['AWAITING_WITH_PENDING']:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x265614(0x179)};case _0x65ab9a[_0x265614(0x13f)]:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':_0x265614(0x33f),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x265614(0x179)};case _0x65ab9a['SYNCED']:return{'icon':_0x57ef67(_0x5a86c7,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x265614(0x1f2)};}}function tn(_0x36102d){const _0x3037bd=_0x1c2b;let {status$:_0x232395}=_0x36102d,_0x847496=_0x6ada4b(_0x232395,_0x65ab9a['NOT_COLLAB']),_0x5a34d3=_0xd60b37(_0x292d2f),_0x3d5beb=_0xd60b37(_0x25de4e),_0x35a3ee=_0x4813a0(()=>en(_0x847496),[_0x847496]),_0x332f82=_0x847496!==_0x65ab9a[_0x3037bd(0x280)],_0x4aa4d2=_0x5a34d3['t'](_0x35a3ee[_0x3037bd(0x314)]),_0x3a5b97=_0x35a3ee[_0x3037bd(0x273)]?_0x5a34d3['t'](_0x35a3ee[_0x3037bd(0x273)]):_0x4aa4d2,_0x529755=_0x328693(()=>{const _0x5c0a60=_0x3037bd;_0x332f82||_0x3d5beb[_0x5c0a60(0x17a)]();},[_0x332f82,_0x3d5beb]),_0x24913a=_0x328693(_0x460ceb=>{const _0x5a5b78=_0x3037bd;_0x332f82||_0x460ceb[_0x5a5b78(0xe1)]!==_0x5a5b78(0xf1)&&_0x460ceb[_0x5a5b78(0xe1)]!=='\x20'||(_0x460ceb[_0x5a5b78(0x2c2)](),_0x3d5beb['reconnect']());},[_0x332f82,_0x3d5beb]),_0x4f911a=_0x57ef67(_0x3037bd(0x32d),{'className':_0x6fa4d7(_0x3037bd(0x13c),_0x3037bd(0x228),_0x35a3ee[_0x3037bd(0x197)],{'univer-animate-spin':_0x35a3ee[_0x3037bd(0x338)]===_0x3037bd(0x179),'univer-animate-pulse':_0x35a3ee[_0x3037bd(0x338)]===_0x3037bd(0x1b5)}),'aria-hidden':_0x3037bd(0x2e7),'children':_0x35a3ee[_0x3037bd(0x298)]}),_0x5e6953=_0x57ef67(_0x3037bd(0x32d),{'className':_0x6fa4d7(_0x3037bd(0x13c),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3037bd(0x313),_0x3037bd(0x1da),_0x3037bd(0x28c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x35a3ee[_0x3037bd(0x209)],'univer-cursor-default':!_0x35a3ee[_0x3037bd(0x209)]}),'children':_0x4f911a});return _0x35a3ee[_0x3037bd(0x209)]?_0x57ef67(_0x1abd88,{'title':_0x3a5b97,'placement':_0x3037bd(0x223),'children':_0x57ef67(_0x3037bd(0x34e),{'type':'button','onClick':_0x529755,'onKeyDown':_0x24913a,'className':_0x6fa4d7(_0x3037bd(0x1c3),'univer-border-none\x20univer-bg-transparent',_0x3037bd(0x34c),_0x3037bd(0x31e)),'aria-label':_0x4aa4d2+_0x3037bd(0x2f3)+_0x3a5b97,'role':_0x3037bd(0x18f),'aria-live':_0x3037bd(0x220),'aria-atomic':_0x3037bd(0x2e7),'children':_0x5e6953})}):_0x57ef67(_0x1abd88,{'title':_0x3a5b97,'placement':'bottom','children':_0x57ef67('div',{'className':_0x6fa4d7(_0x3037bd(0x1c3),_0x3037bd(0x277),_0x3037bd(0x34c)),'aria-label':_0x4aa4d2,'role':'status','aria-live':_0x3037bd(0x220),'aria-atomic':_0x3037bd(0x2e7),'children':_0x5e6953})});}function q(_0x12652a){'@babel/helpers - typeof';const _0x14576c=_0x1c2b;return q=typeof Symbol==_0x14576c(0x181)&&typeof Symbol[_0x14576c(0x17b)]==_0x14576c(0x2f7)?function(_0x268ab1){return typeof _0x268ab1;}:function(_0x503e00){const _0x3fecfb=_0x14576c;return _0x503e00&&typeof Symbol=='function'&&_0x503e00[_0x3fecfb(0x170)]===Symbol&&_0x503e00!==Symbol['prototype']?'symbol':typeof _0x503e00;},q(_0x12652a);}function nn(_0x514bdb,_0x51b419){const _0x44f928=_0x1c2b;if(q(_0x514bdb)!=_0x44f928(0x2d7)||!_0x514bdb)return _0x514bdb;var _0x5a647b;if(typeof Symbol<'u'&&(_0x5a647b=_0x514bdb[Symbol[_0x44f928(0x217)]])!==void 0x0){var _0x30a2f5=_0x5a647b[_0x44f928(0x243)](_0x514bdb,_0x51b419||_0x44f928(0x1ae));if(q(_0x30a2f5)!='object')return _0x30a2f5;throw TypeError(_0x44f928(0x2b9));}return(_0x51b419===_0x44f928(0xfc)?String:Number)(_0x514bdb);}function rn(_0x23c99b){const _0xe3bd70=_0x1c2b;var _0x1ba195=nn(_0x23c99b,_0xe3bd70(0xfc));return q(_0x1ba195)==_0xe3bd70(0x2f7)?_0x1ba195:_0x1ba195+'';}function J(_0x700b3f,_0x23694f,_0x9cf47f){const _0x3dbc06=_0x1c2b;return(_0x23694f=rn(_0x23694f))in _0x700b3f?Object[_0x3dbc06(0x266)](_0x700b3f,_0x23694f,{'value':_0x9cf47f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x700b3f[_0x23694f]=_0x9cf47f,_0x700b3f;}function Y(_0x24324c,_0x1e6733){return function(_0x391541,_0x1bf390){_0x1e6733(_0x391541,_0x1bf390,_0x24324c);};}function X(_0x52a1c8,_0x50a7ce,_0x5370b7,_0x13b527){const _0x584d9f=_0x1c2b;var _0x14399b=arguments[_0x584d9f(0x121)],_0x51305b=_0x14399b<0x3?_0x50a7ce:_0x13b527===null?_0x13b527=Object['getOwnPropertyDescriptor'](_0x50a7ce,_0x5370b7):_0x13b527,_0x289e16;if(typeof Reflect==_0x584d9f(0x2d7)&&typeof Reflect[_0x584d9f(0x2d3)]==_0x584d9f(0x181))_0x51305b=Reflect['decorate'](_0x52a1c8,_0x50a7ce,_0x5370b7,_0x13b527);else{for(var _0xd9bdb1=_0x52a1c8[_0x584d9f(0x121)]-0x1;_0xd9bdb1>=0x0;_0xd9bdb1--)(_0x289e16=_0x52a1c8[_0xd9bdb1])&&(_0x51305b=(_0x14399b<0x3?_0x289e16(_0x51305b):_0x14399b>0x3?_0x289e16(_0x50a7ce,_0x5370b7,_0x51305b):_0x289e16(_0x50a7ce,_0x5370b7))||_0x51305b);}return _0x14399b>0x3&&_0x51305b&&Object[_0x584d9f(0x266)](_0x50a7ce,_0x5370b7,_0x51305b),_0x51305b;}let Z=class extends _0x2c43e7{constructor(_0x5d92b5,_0x3754b3,_0x36538f,_0x11d1dc,_0x3c7257){const _0x3ba493=_0x1c2b;super(),this[_0x3ba493(0x337)]=_0x5d92b5,this['_injector']=_0x3754b3,this[_0x3ba493(0x1fe)]=_0x36538f,this[_0x3ba493(0x2cb)]=_0x11d1dc,this['_presenceAdapterRegistry']=_0x3c7257,J(this,_0x3ba493(0x119),new _0x5a8e6e(_0x65ab9a[_0x3ba493(0x289)])),J(this,_0x3ba493(0x235),new Map()),this[_0x3ba493(0x2b6)](),this[_0x3ba493(0x20f)](),this[_0x3ba493(0x15a)]();}[_0x7ea594(0x2f1)](){const _0x23d7c9=_0x7ea594;this['_presenceStatusRegistrations']['forEach'](_0x42967f=>_0x42967f[_0x23d7c9(0x2f1)]()),this[_0x23d7c9(0x235)][_0x23d7c9(0x221)](),this[_0x23d7c9(0x119)][_0x23d7c9(0x278)](),super[_0x23d7c9(0x2f1)]();}[_0x7ea594(0x20f)](){const _0x1d1182=_0x7ea594;this[_0x1d1182(0xf8)](_0x28759e(this[_0x1d1182(0x337)][_0x1d1182(0x32b)],this[_0x1d1182(0x337)][_0x1d1182(0x296)](_0x51081c[_0x1d1182(0x251)]),this['_univerInstanceService'][_0x1d1182(0x296)](_0x51081c[_0x1d1182(0x122)]))['pipe'](_0x3cbcba(()=>an(this[_0x1d1182(0x337)])),_0xf1eb50(),_0x4957ed(_0x7df46a=>_0x7df46a?this[_0x1d1182(0x1fe)]['getCollabEntity$'](_0x7df46a):_0x13f646(null)),_0x4957ed(_0x3ae914=>_0x3ae914?_0x3ae914[_0x1d1182(0x271)]:_0x13f646(_0x65ab9a[_0x1d1182(0x289)])))[_0x1d1182(0x1de)](_0x3aa552=>{const _0x1920e8=_0x1d1182;this['_status$'][_0x1920e8(0x136)](_0x3aa552);}));}['_initStatusComponent'](){const _0x307aa0=_0x7ea594;this[_0x307aa0(0xf8)](this[_0x307aa0(0x2cb)]['registerComponent'](_0x44eea7['HEADER_MENU'],()=>_0x1ca99d(on({'status$':this[_0x307aa0(0x119)][_0x307aa0(0xe4)]()}),this['_injector'])));}[_0x7ea594(0x15a)](){const _0x359886=_0x7ea594;let _0x32d945=this[_0x359886(0x159)][_0x359886(0x24a)][_0x359886(0x1de)](_0x26ee19=>{const _0x189d1c=_0x359886;this[_0x189d1c(0x240)](_0x26ee19);});this[_0x359886(0xf8)](_0x42bb3c(()=>_0x32d945[_0x359886(0x1bc)]()));}[_0x7ea594(0x240)](_0x75179c){const _0x1959ee=_0x7ea594;let _0x3e0d45=new Map(_0x75179c[_0x1959ee(0x331)](_0x4beb3d=>_0x4beb3d[_0x1959ee(0x185)]!=null)['map'](_0x481647=>[_0x481647[_0x1959ee(0x2cd)],_0x481647]));this[_0x1959ee(0x235)][_0x1959ee(0x2c0)]((_0xb6d82d,_0x2bb700)=>{const _0x1ede26=_0x1959ee;_0x3e0d45[_0x1ede26(0x2c5)](_0x2bb700)||(_0xb6d82d[_0x1ede26(0x2f1)](),this[_0x1ede26(0x235)][_0x1ede26(0x182)](_0x2bb700));}),_0x3e0d45[_0x1959ee(0x2c0)]((_0x2df2f1,_0x47dcc3)=>{const _0x30a436=_0x1959ee;this[_0x30a436(0x235)][_0x30a436(0x2c5)](_0x47dcc3)||this[_0x30a436(0xff)](_0x2df2f1);});}[_0x7ea594(0xff)](_0x5f18c7){const _0x2feb11=_0x7ea594;let _0x56f82e=_0x5f18c7[_0x2feb11(0x185)];if(!_0x56f82e)return;let _0x340900=new _0x200b02(),_0xa0c1e6=new _0x5a8e6e(_0x65ab9a['NOT_COLLAB']);_0x340900['add'](_0x42bb3c(()=>_0xa0c1e6[_0x2feb11(0x278)]())),_0x340900['add'](this[_0x2feb11(0x2cb)][_0x2feb11(0x31f)](_0x56f82e,()=>_0x1ca99d(on({'status$':_0xa0c1e6[_0x2feb11(0xe4)]()}),this['_injector'])));let _0x573e4d=this[_0x2feb11(0x337)][_0x2feb11(0x296)](_0x5f18c7[_0x2feb11(0x2cd)])[_0x2feb11(0x1d5)](_0x3cbcba(_0x28f8f6=>(_0x28f8f6==null?void 0x0:_0x28f8f6['getUnitId']())??null),_0xf1eb50(),_0x4957ed(_0x25b37e=>_0x25b37e?this[_0x2feb11(0x1fe)]['getCollabEntity$'](_0x25b37e):_0x13f646(null)),_0x4957ed(_0x40bee6=>(_0x40bee6==null?void 0x0:_0x40bee6[_0x2feb11(0x271)])??_0x13f646(_0x65ab9a[_0x2feb11(0x289)])))[_0x2feb11(0x1de)](_0x3086d3=>_0xa0c1e6['next'](_0x3086d3));_0x340900['add'](_0x42bb3c(()=>_0x573e4d[_0x2feb11(0x1bc)]())),this[_0x2feb11(0x235)]['set'](_0x5f18c7[_0x2feb11(0x2cd)],_0x340900);}};Z=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x2279ca)),Y(0x3,_0x8a5b3a),Y(0x4,_0x5c888d(_0x14c253))],Z);function an(_0x5b4e0a){const _0x1cc55d=_0x7ea594;let _0x5465d4=_0x5b4e0a[_0x1cc55d(0x116)](),_0x20b207=_0x5465d4==null?void 0x0:_0x5465d4[_0x1cc55d(0x270)]();if(_0x20b207&&!_0x489a17(_0x20b207))return _0x20b207;let _0x347aac=_0x5b4e0a[_0x1cc55d(0x2b5)](_0x51081c[_0x1cc55d(0x251)]),_0x28e997=_0x347aac==null?void 0x0:_0x347aac[_0x1cc55d(0x270)]();if(_0x28e997&&!_0x489a17(_0x28e997))return _0x28e997;let _0x32356a=_0x5b4e0a[_0x1cc55d(0x2b5)](_0x51081c[_0x1cc55d(0x122)]);if(_0x32356a)return _0x32356a['getUnitId']();let _0x3cad6e=_0x5b4e0a[_0x1cc55d(0x315)](_0x51081c[_0x1cc55d(0x251)])[_0x1cc55d(0x1bd)](_0x369b84=>!_0x489a17(_0x369b84[_0x1cc55d(0x270)]()));return _0x3cad6e?_0x3cad6e[_0x1cc55d(0x270)]():null;}function on(_0x4c20f8){let {status$:_0x28c8de}=_0x4c20f8;return function(){return _0x57ef67(tn,{'status$':_0x28c8de});};}var sn=_0x7ea594(0x2a1),cn=_0x7ea594(0x2ec);const ln={'id':_0x7ea594(0x1dd),'type':_0x4d64aa['OPERATION'],'handler':(_0xfcedd7,_0x86ffca)=>{const _0x4e519d=_0x7ea594;let _0x38fd08=_0xfcedd7[_0x4e519d(0x161)](_0x14c253)[_0x4e519d(0x161)](_0x86ffca[_0x4e519d(0x2cd)]);if(!_0x38fd08)return!0x1;switch(_0x86ffca['update'][_0x4e519d(0x34f)]){case _0x4e519d(0x164):return _0x38fd08[_0x4e519d(0x2fe)](_0x86ffca['update'][_0x4e519d(0x352)]),!0x0;case _0x4e519d(0x347):return _0x38fd08[_0x4e519d(0x1a2)](_0x86ffca[_0x4e519d(0x34b)][_0x4e519d(0x2ce)],_0x86ffca['update'][_0x4e519d(0x349)]),!0x0;case _0x4e519d(0x221):return _0x38fd08[_0x4e519d(0xfe)](_0x86ffca[_0x4e519d(0x34b)]['unitId']),!0x0;default:return!0x1;}}},un={};let dn=class extends _0x28ff85{constructor(_0x445143,_0x38156f){const _0x2905ef=_0x7ea594;super(),this['_docClipboardService']=_0x445143,this[_0x2905ef(0x1e7)]=_0x38156f,this[_0x2905ef(0x191)]();}[_0x7ea594(0x191)](){const _0x7ac97c=_0x7ea594;let _0x2c761c=this;this[_0x7ac97c(0xf8)](this[_0x7ac97c(0x20d)][_0x7ac97c(0x269)]({'onBeforePasteImage':async _0x2cf512=>{const _0x458f2a=_0x7ac97c;let _0x20aca=await _0x2c761c[_0x458f2a(0x1e7)][_0x458f2a(0x247)](_0x2cf512);return _0x20aca?{'source':_0x20aca['source'],'imageSourceType':_0x20aca[_0x458f2a(0x2b1)]}:null;}}));}};dn=X([Y(0x0,_0x37f83b),Y(0x1,_0x4c0ca6)],dn);const fn=[_0x7ea594(0x234),'jiqing.500',_0x7ea594(0x265),_0x7ea594(0x1c8),_0x7ea594(0x253),_0x7ea594(0x324)];var pn=class extends _0x2c43e7{constructor(..._0x2b08e3){const _0x1913a8=_0x7ea594;super(..._0x2b08e3),J(this,_0x1913a8(0x2ed),new Map()),J(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xafc253){const _0x32e6ff=_0x7ea594;if(this[_0x32e6ff(0x2ed)]['has'](_0xafc253))return this[_0x32e6ff(0x2ed)][_0x32e6ff(0x161)](_0xafc253);let _0x296193=fn[this[_0x32e6ff(0x342)]];return this[_0x32e6ff(0x342)]=(this[_0x32e6ff(0x342)]+0x1)%fn[_0x32e6ff(0x121)],this['_assignedColors'][_0x32e6ff(0x164)](_0xafc253,_0x296193),_0x296193;}};function mn(_0x2823df){const _0x1e1a41=_0x7ea594;let _0x2936fc='';for(let _0x3f56c4 of _0x2823df){let {startOffset:_0x6f8105,endOffset:_0x4f3326,isActive:_0x37e437,rangeType:_0x30b043,segmentId:_0x4ea1a2,segmentPage:_0x27cedf}=_0x3f56c4;_0x2936fc[_0x1e1a41(0x121)]&&(_0x2936fc+=','),_0x2936fc+=_0x6f8105+':'+_0x4f3326+':'+(_0x37e437?'1':'0')+':'+_0x30b043+':'+_0x4ea1a2+':'+_0x27cedf;}return _0x2936fc;}function hn(_0x2dd14e){const _0x25b84f=_0x7ea594;let _0x1aa50a=_0x2dd14e[_0x25b84f(0x276)](','),_0x1a8693=[];for(let _0xd69a24 of _0x1aa50a){let [_0x5aa341,_0x2b3dbf,_0x55622d,_0x327dc5,_0x5d9198,_0x3f2d55]=_0xd69a24[_0x25b84f(0x276)](':');_0x1a8693[_0x25b84f(0x2da)]({'startOffset':Number(_0x5aa341),'endOffset':Number(_0x2b3dbf),'collapsed':_0x5aa341===_0x2b3dbf,'isActive':_0x55622d==='1','rangeType':_0x327dc5===_0x1b3059[_0x25b84f(0x100)]?_0x1b3059[_0x25b84f(0x100)]:_0x1b3059['RECT'],'segmentId':typeof _0x5d9198==_0x25b84f(0xfc)?String(_0x5d9198):'','segmentPage':Number(_0x3f2d55??-0x1)});}return _0x1a8693['some'](_0x39957b=>_0x39957b[_0x25b84f(0x14b)])||(_0x1a8693[0x0][_0x25b84f(0x14b)]=!0x0),_0x1a8693;}var gn=class extends _0x28ff85{constructor(..._0x59f2f2){const _0xd5b94c=_0x7ea594;super(..._0x59f2f2),J(this,_0xd5b94c(0x1a0),new _0x5a8e6e(null)),J(this,_0xd5b94c(0x2cc),this[_0xd5b94c(0x1a0)]['asObservable']());}[_0x7ea594(0x101)](_0x11febd){const _0x29f29f=_0x7ea594;let {unitID:_0x5f1065,memberID:_0x4dbc3f,textRanges:_0x1525b5}=_0x11febd,_0x541200=mn(_0x1525b5);if(_0x541200==='')return;let _0x5567b4={'unitID':_0x5f1065,'memberID':_0x4dbc3f,'selection':_0x541200};this[_0x29f29f(0x1a0)][_0x29f29f(0x136)](_0x5567b4);}};let _n=class extends _0x28ff85{get['cursorInfo'](){const _0x2f15ee=_0x7ea594;return this[_0x2f15ee(0x132)]['getValue']();}get['roomMembers'](){const _0x2e983f=_0x7ea594;return this['_roomMembers$'][_0x2e983f(0x13a)]();}constructor(_0x3383ac,_0x513776,_0x107e2f,_0x1be66e,_0x20454d,_0x4ee1d8,_0x22828d,_0x25d356,_0xbec85c){const _0x53d79e=_0x7ea594;super(),this[_0x53d79e(0x195)]=_0x3383ac,this[_0x53d79e(0x2a0)]=_0x513776,this['_injector']=_0x107e2f,this[_0x53d79e(0x20c)]=_0x1be66e,this[_0x53d79e(0x344)]=_0x20454d,this[_0x53d79e(0x31b)]=_0x4ee1d8,this[_0x53d79e(0xdf)]=_0x22828d,this['_univerInstanceService']=_0x25d356,this[_0x53d79e(0x1c1)]=_0xbec85c,J(this,_0x53d79e(0x22d),!0x1),J(this,_0x53d79e(0x191),!0x1),J(this,_0x53d79e(0x132),new _0x5a8e6e(new Map())),J(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),J(this,'_roomMembers$',new _0x5a8e6e([])),J(this,_0x53d79e(0x1f5),this[_0x53d79e(0x323)]['pipe'](_0x40cc80(0x12c))),J(this,_0x53d79e(0x250),_0xf32b8d(_0x1e0441=>{const _0x5d50bc=_0x53d79e;let _0x1e8eda={'eventID':_0x865df6[_0x5d50bc(0x207)],'data':{'unitID':this[_0x5d50bc(0x195)],'memberID':this['_session'][_0x5d50bc(0x13b)](),'selection':mn(_0x1e0441)}};this[_0x5d50bc(0x2a0)]['send'](_0x1e8eda,this[_0x5d50bc(0x195)]);},0x64));}[_0x7ea594(0x2f1)](){const _0x231313=_0x7ea594;super[_0x231313(0x2f1)](),this[_0x231313(0x132)][_0x231313(0x136)](new Map()),this['_cursorInfo$'][_0x231313(0x278)](),this[_0x231313(0x323)][_0x231313(0x136)]([]),this[_0x231313(0x323)][_0x231313(0x278)]();}[_0x7ea594(0x1ee)](){const _0x109a0f=_0x7ea594;this[_0x109a0f(0x191)]||(this[_0x109a0f(0x191)]=!0x0,this[_0x109a0f(0x2a0)]['sessionStatus$'][_0x109a0f(0x1d5)](_0x2a3afc(this[_0x109a0f(0x190)]))[_0x109a0f(0x1de)](_0x4e703a=>{const _0x435850=_0x109a0f;_0x4e703a===_0xa8ada1[_0x435850(0x287)]?this[_0x435850(0x238)]():this['_toggleOffline']();}),this[_0x109a0f(0x2a0)][_0x109a0f(0x1d4)]['pipe'](_0x2a3afc(this['dispose$']))[_0x109a0f(0x1de)](_0x393c2d=>{const _0x4481e=_0x109a0f;let _0x42661d=_0x393c2d[_0x4481e(0x24f)];_0x42661d===_0x865df6[_0x4481e(0x207)]&&this['_onCursorUpdate'](_0x393c2d),_0x42661d===_0x865df6['USERS_LEAVE']&&this[_0x4481e(0x1c5)](_0x393c2d);}),this['disposeWithMe'](this[_0x109a0f(0x1c1)][_0x109a0f(0x2a2)](_0x2a41cb=>{const _0x2da19a=_0x109a0f;let _0x3fb878=_0x2a41cb['params'];_0x3fb878!=null&&this[_0x2da19a(0x22d)]&&_0x2a41cb['id']===_0x3e3d2c['id']&&_0x3fb878['unitId']===this[_0x2da19a(0x195)]&&_0x3fb878[_0x2da19a(0x233)]===!0x1&&_0x3fb878[_0x2da19a(0x1a5)][_0x2da19a(0x121)]>0x0&&this['_updateLocalCursor'](_0x3fb878[_0x2da19a(0x1a5)]);})),this[_0x109a0f(0x31b)]['collabCursorState$'][_0x109a0f(0x1d5)](_0x2a3afc(this[_0x109a0f(0x190)]))[_0x109a0f(0x1de)](_0xa5ebe7=>{const _0x56baf5=_0x109a0f;if((_0xa5ebe7==null?void 0x0:_0xa5ebe7[_0x56baf5(0x195)])!==this[_0x56baf5(0x195)])return;let _0x34293a={'eventID':_0x865df6[_0x56baf5(0x207)],'data':_0xa5ebe7};this[_0x56baf5(0x2f5)](_0x34293a);}),this['disposeWithMe'](this['_commandService'][_0x109a0f(0x2a2)](_0xd34417=>{const _0x1c695e=_0x109a0f;if(_0xd34417[_0x1c695e(0x131)]==null)return;let _0x15a8c5=_0xd34417[_0x1c695e(0x131)];if(_0xd34417['id']!==_0x4db170['id']||_0x15a8c5['unitId']!==this[_0x1c695e(0x195)])return;let _0x51007b={'id':'doc.mutation.rich-text-editing','params':_0x15a8c5},_0x1876db=this[_0x1c695e(0x10c)];for(let [_0x57a931,_0x187a2c]of _0x1876db){let _0x4fcb71={'id':_0x1c695e(0x272),'params':{'unitId':this[_0x1c695e(0x195)],'actions':null,'textRanges':_0x187a2c[_0x1c695e(0x1a5)]}},_0x57ee37=this[_0x1c695e(0xdf)][_0x1c695e(0x2e4)](_0x51007b,_0x4fcb71,!0x1);if(_0x13597e(_0x57ee37))throw _0x57ee37[_0x1c695e(0x19d)];_0x1876db['set'](_0x57a931,{..._0x187a2c,'ranges':_0x57ee37[_0x1c695e(0x2ad)][_0x1c695e(0x131)][_0x1c695e(0x1cf)]});}queueMicrotask(()=>{const _0x1a6bc1=_0x1c695e;this[_0x1a6bc1(0x132)][_0x1a6bc1(0x136)](_0x1876db);});})));}['_onCursorUpdate'](_0x1ec685){const _0x2d0763=_0x7ea594;var _0x4eaf7a;let {memberID:_0x15139,selection:_0x1013ae}=_0x1ec685[_0x2d0763(0x10b)],_0x5b9c6d=hn(_0x1013ae),_0x3d46f5=((_0x4eaf7a=this[_0x2d0763(0x344)][_0x2d0763(0x2d8)](this['unitID'],_0x15139))==null?void 0x0:_0x4eaf7a[_0x2d0763(0x2d6)])??'Unknown\x20user',_0x25e599={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x15139),'name':_0x3d46f5,'ranges':_0x5b9c6d},_0x34affc=this[_0x2d0763(0x10c)];_0x34affc['set'](_0x15139,_0x25e599),this[_0x2d0763(0x132)][_0x2d0763(0x136)](_0x34affc);}['_onCursorDelete'](_0x917e3e){const _0x15b4c1=_0x7ea594;let {memberID:_0x5c70d7}=_0x917e3e[_0x15b4c1(0x10b)],_0x4ebf38=this[_0x15b4c1(0x10c)];_0x4ebf38[_0x15b4c1(0x182)](_0x5c70d7),this[_0x15b4c1(0x132)][_0x15b4c1(0x136)](_0x4ebf38);}[_0x7ea594(0x238)](){const _0x543866=_0x7ea594;var _0x1cfade;if(this[_0x543866(0x22d)]=!0x0,((_0x1cfade=this[_0x543866(0x337)][_0x543866(0x116)]())==null?void 0x0:_0x1cfade[_0x543866(0x270)]())!==this['unitID'])return;let _0x7c6242=this[_0x543866(0x140)][_0x543866(0x161)](_0x291a40)['getDocRanges']();Array['isArray'](_0x7c6242)&&_0x7c6242[_0x543866(0x121)]>0x0&&this[_0x543866(0x250)](_0x7c6242);}[_0x7ea594(0x239)](){const _0x2c8878=_0x7ea594;this[_0x2c8878(0x22d)]=!0x1;}};_n=X([Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x5c888d(gn)),Y(0x6,_0x31acf5),Y(0x7,_0x28a580),Y(0x8,_0x15fe51)],_n);const vn=()=>{let _0x40f57c=[],_0x4a075f=!0x1;return _0x538b2a=>{const _0x51f7fa=_0x1c2b;_0x40f57c[_0x51f7fa(0x2da)](_0x538b2a),_0x4a075f||(_0x4a075f=!0x0,setTimeout(()=>{const _0x534577=_0x51f7fa;_0x40f57c[_0x534577(0x2c0)](_0x5313b4=>_0x5313b4()),_0x40f57c=[],_0x4a075f=!0x1;}));};};let yn=class extends _0x28ff85{get[_0x7ea594(0x10c)](){const _0x26b1be=_0x7ea594;return this['_cursorInfo$'][_0x26b1be(0x13a)]();}get[_0x7ea594(0x1ad)](){const _0x5d613d=_0x7ea594;return this[_0x5d613d(0x323)][_0x5d613d(0x13a)]();}constructor(_0x502215,_0x498ad0,_0x5b946f,_0x20cdce,_0x17f155,_0x41f86c,_0x2e286b,_0x2b2325){const _0x164559=_0x7ea594;super(),this[_0x164559(0x195)]=_0x502215,this[_0x164559(0x2a0)]=_0x498ad0,this[_0x164559(0x140)]=_0x5b946f,this['_colorAssignService']=_0x20cdce,this[_0x164559(0x344)]=_0x17f155,this[_0x164559(0x337)]=_0x41f86c,this[_0x164559(0x1c1)]=_0x2e286b,this['_refRangeService']=_0x2b2325,J(this,'_online',!0x1),J(this,'_init',!0x1),J(this,_0x164559(0x132),new _0x5a8e6e(new Map())),J(this,_0x164559(0x2f6),this['_cursorInfo$'][_0x164559(0xe4)]()),J(this,_0x164559(0x323),new _0x5a8e6e([])),J(this,_0x164559(0x1f5),this[_0x164559(0x323)]['pipe'](_0x40cc80(0x12c))),J(this,_0x164559(0x250),_0xf32b8d((_0x4e8e1a,_0x2312fd)=>{const _0x557047=_0x164559;let _0x657b65={'eventID':_0x865df6['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x557047(0x2a0)][_0x557047(0x13b)](),'selection':_0x2b799d(_0x4e8e1a,_0x2312fd[_0x557047(0x27a)])}};this[_0x557047(0x2a0)][_0x557047(0xdc)](_0x657b65,this[_0x557047(0x195)]);},0x64));}[_0x7ea594(0x2f1)](){const _0x330030=_0x7ea594;super['dispose'](),this[_0x330030(0x132)][_0x330030(0x136)](new Map()),this['_cursorInfo$'][_0x330030(0x278)](),this[_0x330030(0x323)][_0x330030(0x136)]([]),this['_roomMembers$'][_0x330030(0x278)]();}[_0x7ea594(0x1ee)](){const _0x487e61=_0x7ea594;this['_init']||(this[_0x487e61(0x191)]=!0x0,this['_session'][_0x487e61(0x1e9)][_0x487e61(0x1d5)](_0x2a3afc(this['dispose$']))[_0x487e61(0x1de)](_0x5c819b=>{const _0x511bea=_0x487e61;_0x5c819b===_0xa8ada1[_0x511bea(0x287)]?this['_toggleOnline']():this[_0x511bea(0x239)]();}),this[_0x487e61(0x2a0)][_0x487e61(0x1d4)][_0x487e61(0x1d5)](_0x2a3afc(this[_0x487e61(0x190)]))[_0x487e61(0x1de)](_0x230cd8=>{const _0x1f7c5a=_0x487e61;let _0x5b0369=_0x230cd8['eventID'];_0x5b0369===_0x865df6['UPDATE_CURSOR']&&this[_0x1f7c5a(0x2f5)](_0x230cd8),_0x5b0369===_0x865df6[_0x1f7c5a(0x24e)]&&this['_onCursorDelete'](_0x230cd8);}),this[_0x487e61(0x1b7)](),this[_0x487e61(0xf8)](this[_0x487e61(0x1c1)][_0x487e61(0x2a2)](_0x3ef376=>{const _0x16c60f=_0x487e61;if(this[_0x16c60f(0x22d)]&&_0x3ef376['id']===_0x5a7a11['id']&&_0x3ef376[_0x16c60f(0x131)][_0x16c60f(0x2ce)]===this[_0x16c60f(0x195)]){let _0xf205c8=_0x3ef376['params'];this[_0x16c60f(0x250)](_0xf205c8['subUnitId'],_0xf205c8[_0x16c60f(0x2cf)][0x0]);}})));}[_0x7ea594(0x2f5)](_0x38dd93){const _0x12537a=_0x7ea594;var _0x5783d7;let {memberID:_0x18bb62,selection:_0x490212}=_0x38dd93[_0x12537a(0x10b)],{sheetName:_0x2dc0eb,range:_0x22adde}=_0x3b9903(_0x490212),_0x3a36f2={'name':((_0x5783d7=this[_0x12537a(0x344)][_0x12537a(0x2d8)](this[_0x12537a(0x195)],_0x18bb62))==null?void 0x0:_0x5783d7[_0x12537a(0x2d6)])??_0x12537a(0x319),'range':this['_getMergeRange'](_0x2dc0eb,_0x22adde),'sheetID':_0x2dc0eb,'color':this[_0x12537a(0x20c)][_0x12537a(0x107)](_0x18bb62),'selection':_0x490212},_0x2bdfc3=this['cursorInfo'];_0x2bdfc3[_0x12537a(0x164)](_0x18bb62,_0x3a36f2),this[_0x12537a(0x132)]['next'](_0x2bdfc3);}[_0x7ea594(0x1c5)](_0x19e880){const _0x71e809=_0x7ea594;let {memberID:_0x53d809}=_0x19e880[_0x71e809(0x10b)],_0x3f22b7=this[_0x71e809(0x10c)];_0x3f22b7[_0x71e809(0x182)](_0x53d809),this['_cursorInfo$'][_0x71e809(0x136)](_0x3f22b7);}[_0x7ea594(0x166)](_0x40d092,_0x573628){const _0x9c52a0=_0x7ea594;var _0x4f7192;let _0x348244=(_0x4f7192=this[_0x9c52a0(0x337)][_0x9c52a0(0x206)](this[_0x9c52a0(0x195)],_0x51081c['UNIVER_SHEET']))==null||(_0x4f7192=_0x4f7192[_0x9c52a0(0x151)](_0x40d092))==null?void 0x0:_0x4f7192[_0x9c52a0(0x32c)]();return(_0x348244==null?void 0x0:_0x348244[_0x9c52a0(0x1bd)](_0x3104fe=>_0xdb208c[_0x9c52a0(0x117)](_0x3104fe,_0x573628)))||_0x573628;}['_onRefRangeChange'](){const _0x297b8f=_0x7ea594;let _0x1324af=new _0x200b02(),_0x14ec77=vn(),_0x55cfe3=()=>{const _0xf560d4=_0x1c2b;_0x1324af[_0xf560d4(0x2f1)]();let _0x17cd92=(_0xecab7f,_0x33ae12,_0x18cc1c,_0x496dae)=>{const _0x466c33=_0xf560d4;let _0x4684b7=[];switch(_0xecab7f['id']){case _0x5d5430[_0x466c33(0x208)]:_0x4684b7=_0x33b6d7(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x19f)]:_0x4684b7=_0x1d6acb(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x1b4)]:_0x4684b7=_0x57c4d6(_0xecab7f,_0x496dae);break;case _0x5d5430['InsertRangeMoveDownCommandId']:_0x4684b7=_0xd032ba(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x283)]:_0x4684b7=_0x2eb875(_0xecab7f,_0x496dae);break;case _0x5d5430['InsertRowCommandId']:_0x4684b7=_0x29910d(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x2f9)]:_0x4684b7=_0x294967(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x126)]:_0x4684b7=_0x5e4f50(_0xecab7f,_0x496dae);break;case _0x5d5430['RemoveRowCommandId']:_0x4684b7=_0x12e3bf(_0xecab7f,_0x496dae);}let _0x4aaa54=_0x1ff6e1(_0x4684b7,_0x496dae),_0x39af17=this[_0x466c33(0x10c)][_0x466c33(0x161)](_0x33ae12);if(_0x39af17&&_0x4aaa54){let _0x2ff500={..._0x39af17,'range':_0x4aaa54};this[_0x466c33(0x10c)][_0x466c33(0x164)](_0x33ae12,_0x2ff500),_0x14ec77(()=>{const _0x4d2869=_0x466c33;let _0xac0034=this[_0x4d2869(0x138)][_0x4d2869(0x26d)](_0x4aaa54,_0x5d61c9=>(_0xac0034[_0x4d2869(0x2f1)](),_0x17cd92(_0x5d61c9,_0x33ae12,_0x18cc1c,_0x4aaa54)));_0x1324af[_0x4d2869(0x1ce)](_0xac0034);});}return{'redos':[],'undos':[]};};this[_0xf560d4(0x10c)][_0xf560d4(0x2c0)]((_0x37363b,_0x1db994)=>{const _0x1aa733=_0xf560d4;let {range:_0xfc7daa,sheetID:_0x1f59fd}=_0x37363b,_0x128b12=this[_0x1aa733(0x138)][_0x1aa733(0x26d)](_0xfc7daa,_0x394495=>(_0x128b12[_0x1aa733(0x2f1)](),_0x17cd92(_0x394495,_0x1db994,_0x1f59fd,_0xfc7daa)));_0x1324af[_0x1aa733(0x1ce)](_0x128b12);});};this[_0x297b8f(0xf8)](_0x42bb3c(this[_0x297b8f(0x132)][_0x297b8f(0x1de)](()=>{_0x55cfe3();})));}[_0x7ea594(0x238)](){const _0x3210ab=_0x7ea594;var _0x5a1314,_0x5a76d0;if(this[_0x3210ab(0x22d)]=!0x0,((_0x5a1314=this[_0x3210ab(0x337)][_0x3210ab(0x116)]())==null?void 0x0:_0x5a1314[_0x3210ab(0x270)]())!==this[_0x3210ab(0x195)])return;let _0x3dffe9=(_0x5a76d0=this[_0x3210ab(0x140)][_0x3210ab(0x161)](_0x3c2429)[_0x3210ab(0x1f1)]())==null?void 0x0:_0x5a76d0[0x0],_0x4ecf01=this['_univerInstanceService']['getCurrentUnitOfType'](_0x51081c[_0x3210ab(0x122)])[_0x3210ab(0xe0)]();_0x3dffe9&&_0x4ecf01&&this[_0x3210ab(0x250)](_0x4ecf01[_0x3210ab(0x21a)](),_0x3dffe9);}[_0x7ea594(0x239)](){const _0x4444c9=_0x7ea594;this[_0x4444c9(0x22d)]=!0x1;}};yn=X([Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x28a580),Y(0x6,_0x15fe51),Y(0x7,_0x5c888d(_0x3e2e64))],yn);let Q=class extends _0x28ff85{constructor(_0x3e4aec,_0x55de7c,_0x2c8f6b){const _0x148d55=_0x7ea594;super(),this[_0x148d55(0x337)]=_0x3e4aec,this['_injector']=_0x55de7c,this[_0x148d55(0x2a4)]=_0x2c8f6b,J(this,_0x148d55(0x33c),new Map()),J(this,_0x148d55(0x279),new _0x83a48d()),this[_0x148d55(0x191)]();}[_0x7ea594(0x2f1)](){const _0x3a3de7=_0x7ea594;super[_0x3a3de7(0x2f1)](),this['_entityInit$'][_0x3a3de7(0x278)](),this[_0x3a3de7(0x33c)][_0x3a3de7(0x2c0)](_0x25ef33=>_0x25ef33[_0x3a3de7(0x2f1)]());}[_0x7ea594(0x12d)](_0xd271e4){const _0x13cda5=_0x7ea594;let _0x454a1c=this[_0x13cda5(0x33c)][_0x13cda5(0x161)](_0xd271e4);return _0x454a1c?_0x454a1c[_0x13cda5(0x2f6)]:this['_entityInit$']['pipe'](_0x399a72(_0x252b6c=>_0x252b6c[_0x13cda5(0x195)]===_0xd271e4),_0x4957ed(_0x53ed0d=>_0x53ed0d[_0x13cda5(0x2f6)]));}['_init'](){const _0x15a95b=_0x7ea594;this[_0x15a95b(0x337)][_0x15a95b(0xf5)](_0x51081c[_0x15a95b(0x122)])[_0x15a95b(0x1d5)](_0x2a3afc(this[_0x15a95b(0x190)]))[_0x15a95b(0x1de)](async _0x3a8690=>{const _0x5c2632=_0x15a95b;let _0x13211e=_0x3a8690[_0x5c2632(0x14d)][_0x5c2632(0x270)](),_0x20431c=await this['_startSheetCollabCursor'](_0x13211e);this[_0x5c2632(0x279)][_0x5c2632(0x136)](_0x20431c),this[_0x5c2632(0x33c)]['set'](_0x13211e,_0x20431c);}),this[_0x15a95b(0x337)]['getTypeOfUnitAdded$'](_0x51081c['UNIVER_DOC'])['pipe'](_0x2a3afc(this['dispose$']))[_0x15a95b(0x1d5)](_0x399a72(_0xcd8e00=>!_0xcd8e00[_0x15a95b(0x14d)][_0x15a95b(0x270)]()['startsWith']('__')))[_0x15a95b(0x1de)](async _0x44808f=>{const _0x29335d=_0x15a95b;let {unit:_0x65f9bb}=_0x44808f,_0x434a80=_0x65f9bb[_0x29335d(0x270)](),_0x2434a4=await this[_0x29335d(0x33e)](_0x434a80);this[_0x29335d(0x279)][_0x29335d(0x136)](_0x2434a4),this[_0x29335d(0x33c)]['set'](_0x434a80,_0x2434a4);}),_0x28759e(this[_0x15a95b(0x337)][_0x15a95b(0x2ca)](_0x51081c[_0x15a95b(0x251)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x51081c[_0x15a95b(0x122)]))[_0x15a95b(0x1d5)](_0x2a3afc(this['dispose$']))['subscribe'](_0x3d1da1=>{const _0x30415d=_0x15a95b;let _0x69bc4f=_0x3d1da1[_0x30415d(0x270)](),_0x338117=this['_entities'][_0x30415d(0x161)](_0x69bc4f);_0x338117&&(_0x338117[_0x30415d(0x2f1)](),this[_0x30415d(0x33c)][_0x30415d(0x182)](_0x69bc4f));});}async['_startSheetCollabCursor'](_0x182b75){const _0xfd7a2c=_0x7ea594;let _0x251e83=await this[_0xfd7a2c(0x2a4)][_0xfd7a2c(0x348)](_0x182b75),_0x31b2d2=this[_0xfd7a2c(0x140)]['createInstance'](yn,_0x182b75,_0x251e83);return _0x31b2d2[_0xfd7a2c(0x1ee)](),_0x31b2d2;}async['_startDocCollabCursor'](_0x1b1125){const _0x2714bb=_0x7ea594;let _0x479865=await this['_collabSessionService'][_0x2714bb(0x348)](_0x1b1125),_0x3b7d4b=this[_0x2714bb(0x140)]['createInstance'](_n,_0x1b1125,_0x479865);return _0x3b7d4b[_0x2714bb(0x1ee)](),_0x3b7d4b;}};Q=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x25de4e))],Q);function bn(_0xfc3308,_0x56f55a){const _0x457b83=_0x7ea594;_0xfc3308[_0x457b83(0x2d0)](),_0xfc3308['font']=_0x457b83(0x30d);let _0xe7ebdc=_0xfc3308['measureText'](_0x56f55a)[_0x457b83(0x2c6)];return _0xfc3308[_0x457b83(0x1c2)](),Math[_0x457b83(0x2c4)](_0xe7ebdc+0x8,0xc8);}function xn(_0x2c33b3,_0x211605){const _0x237a2b=_0x7ea594;let {radius:_0x4962cd,width:_0x374529,height:_0x9b876c}=_0x211605;_0x4962cd??=0x0,_0x374529??=0x1e,_0x9b876c??=0x1e;let _0x14cb06=0x0,_0x4a54db=0x0,_0x291c87=0x0;_0x14cb06=_0x4a54db=_0x291c87=Math[_0x237a2b(0x2c4)](_0x4962cd,_0x374529/0x2,_0x9b876c/0x2),_0x2c33b3[_0x237a2b(0x2d2)](),_0x2c33b3[_0x237a2b(0x256)](_0x14cb06,0x0),_0x2c33b3['lineTo'](_0x374529-_0x4a54db,0x0),_0x2c33b3[_0x237a2b(0x24d)](_0x374529-_0x4a54db,_0x4a54db,_0x4a54db,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c33b3[_0x237a2b(0x214)](_0x374529,_0x9b876c-_0x291c87),_0x2c33b3[_0x237a2b(0x24d)](_0x374529-_0x291c87,_0x9b876c-_0x291c87,_0x291c87,0x0,Math['PI']/0x2,!0x1),_0x2c33b3['lineTo'](0x0,_0x9b876c),_0x2c33b3['lineTo'](0x0,_0x14cb06),_0x2c33b3[_0x237a2b(0x24d)](_0x14cb06,_0x14cb06,_0x14cb06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c33b3[_0x237a2b(0x1ef)](),_0x211605['fill']&&(_0x2c33b3[_0x237a2b(0x2d0)](),_0x2c33b3['fillStyle']=_0x211605[_0x237a2b(0x358)],_0x211605[_0x237a2b(0xee)]===_0x237a2b(0x260)?_0x2c33b3[_0x237a2b(0x358)]('evenodd'):_0x2c33b3[_0x237a2b(0x358)](),_0x2c33b3[_0x237a2b(0x1c2)]());}var Sn=class e extends _0x41d5b2{constructor(_0x2549e5,_0xae0834){const _0x3e9f2a=_0x7ea594;super(_0x2549e5,_0xae0834),J(this,_0x3e9f2a(0x1bb),void 0x0),J(this,'text',void 0x0),this[_0x3e9f2a(0x1bb)]=_0xae0834==null?void 0x0:_0xae0834[_0x3e9f2a(0x1bb)],this[_0x3e9f2a(0x1af)]=_0xae0834==null?void 0x0:_0xae0834['text'];}static[_0x7ea594(0x286)](_0x40ce78,_0x1e554c){const _0x266765=_0x7ea594;let {text:_0x2c4433,color:_0x3e85aa}=_0x1e554c;_0x40ce78['save'](),_0x40ce78['font']=_0x266765(0x12c);let _0x1666d1=_0x40ce78[_0x266765(0x257)](_0x2c4433)[_0x266765(0x2c6)];if(xn(_0x40ce78,{'height':0x14,'radius':0x4,'width':bn(_0x40ce78,_0x2c4433),'fill':_0x3e85aa,'evented':!0x1}),_0x40ce78['fillStyle']=_0x266765(0x148),_0x1666d1>0xc0){let _0x505adf='',_0x74a67f=0x0;for(let _0xdbd9b of _0x2c4433){let _0x5e5f24=_0x40ce78[_0x266765(0x257)](_0xdbd9b)[_0x266765(0x2c6)];if(_0x74a67f+_0x5e5f24<=0xc0-_0x40ce78[_0x266765(0x257)](_0x266765(0x355))['width'])_0x505adf+=_0xdbd9b,_0x74a67f+=_0x5e5f24;else{_0x505adf+=_0x266765(0x355);break;}}_0x40ce78[_0x266765(0x10d)](_0x505adf,0x4,0xf);}else _0x40ce78[_0x266765(0x10d)](_0x2c4433,0x4,0xf);_0x40ce78[_0x266765(0x1c2)]();}[_0x7ea594(0x14c)](_0x33d723){const _0x383942=_0x7ea594;e[_0x383942(0x286)](_0x33d723,this);}};const Cn=_0x7ea594(0x285);var wn=class{constructor(_0x4304f0,_0x23c521,_0x3f807e,_0x416eac){const _0x27c34a=_0x7ea594;this[_0x27c34a(0x194)]=_0x4304f0,this[_0x27c34a(0x16c)]=_0x23c521,this['_docSkeleton']=_0x3f807e,this['_document']=_0x416eac,J(this,_0x27c34a(0x1c4),[]),J(this,_0x27c34a(0x156),null),J(this,_0x27c34a(0x27e),null),J(this,_0x27c34a(0xfa),null),J(this,_0x27c34a(0x18a),null),J(this,_0x27c34a(0x178),null),this['_render']();}set['_hover'](_0x152e7c){const _0x42b00e=_0x7ea594;_0x152e7c?(this[_0x42b00e(0xfa)]&&this[_0x42b00e(0xfa)][_0x42b00e(0x26a)](),this[_0x42b00e(0x27e)]&&this[_0x42b00e(0x27e)]['show']()):(this[_0x42b00e(0xfa)]&&this['_anchorDot'][_0x42b00e(0x1f0)](),this[_0x42b00e(0x27e)]&&this['_textBubble'][_0x42b00e(0x26a)]());}[_0x7ea594(0x2f1)](){const _0x1f534d=_0x7ea594;for(let _0x343c91 of this[_0x1f534d(0x1c4)])_0x343c91[_0x1f534d(0x2f1)]();this[_0x1f534d(0x27e)]&&this[_0x1f534d(0x27e)][_0x1f534d(0x2f1)](),this[_0x1f534d(0xfa)]&&this[_0x1f534d(0xfa)][_0x1f534d(0x2f1)](),this['_anchor']&&this['_anchor'][_0x1f534d(0x2f1)](),this[_0x1f534d(0x178)]&&this[_0x1f534d(0x178)]();}[_0x7ea594(0x2c7)](){const _0x51d250=_0x7ea594;let {_docSkeleton:_0x1ae065,_document:_0x5160a5}=this,{color:_0xfc6f80,name:_0x3f388c,ranges:_0x351c84}=this[_0x51d250(0x194)],_0x4f8639=_0x5160a5[_0x51d250(0x1b9)](),{docsLeft:_0x524c91,docsTop:_0xae0a9}=_0x4f8639,_0x4dffbe=new _0x3213e1(_0x4f8639,_0x1ae065);for(let {startOffset:_0x244dc7,endOffset:_0x341015,rangeType:_0x436b17,segmentId:_0x155fc5,segmentPage:_0x20b1a8,collapsed:_0xba91c6,isActive:_0x1d8c29}of _0x351c84){let _0x114869=_0x1ae065[_0x51d250(0x245)](_0x244dc7,!0x0,_0x155fc5,_0x20b1a8),_0x440f4f=_0x1ae065[_0x51d250(0x245)](_0x341015,!0x0,_0x155fc5,_0x20b1a8);_0x440f4f??=_0x1ae065[_0x51d250(0x245)](_0x341015-0x1,!0x1,_0x155fc5,_0x20b1a8);let _0x41d3c5=Tn(_0x114869,_0x440f4f);if(_0x1d8c29&&_0x41d3c5[_0x51d250(0x311)]){let {contentBoxPointGroup:_0x569ba3}=_0x4dffbe[_0x51d250(0x2a6)](_0x440f4f,_0x440f4f);if(_0x569ba3[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x308)](_0xfc6f80,_0x569ba3,_0x524c91,_0xae0a9,_0x3f388c),this[_0x51d250(0x178)]=this[_0x51d250(0x115)]();}if(_0x114869&&_0x440f4f){if(_0x436b17===_0x1b3059[_0x51d250(0x176)]){let {pointGroup:_0x5f1255}=new _0x3655aa(_0x4f8639,_0x1ae065)['getRangePointData'](_0x114869,_0x440f4f)??{};if(_0x5f1255==null||_0x5f1255[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x114)](_0xfc6f80,_0x5f1255,_0x524c91,_0xae0a9);}else{if(!_0xba91c6&&_0x41d3c5[_0x51d250(0x32e)]){let {borderBoxPointGroup:_0x1d7d57}=_0x4dffbe['getRangePointData'](_0x114869,_0x440f4f);if(_0x1d7d57[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x354)](_0xfc6f80,_0x1d7d57,_0x524c91,_0xae0a9);}}}}}[_0x7ea594(0x308)](_0x6e23ae,_0x5b2798,_0x47f722,_0x3151b6,_0xe65ffb){const _0x3525b2=_0x7ea594;let {left:_0x5bd82b,top:_0x1e6f7c,height:_0x1db498}=this[_0x3525b2(0x125)](_0x5b2798),_0x536b69=1.5/this[_0x3525b2(0x147)](),_0x4369e0=new _0x3a3ee5(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6,'height':_0x1db498,'width':1.5,'fill':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'strokeWidth':_0x536b69,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x3525b2(0x156)]=_0x4369e0,this[_0x3525b2(0x16c)]['addObject'](_0x4369e0,_0x22778c);let _0x3b006a=new _0x3a3ee5(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6-0x2,'height':0x4,'width':0x4,'fill':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'strokeWidth':0x0,'stroke':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'evented':!0x1});this[_0x3525b2(0xfa)]=_0x3b006a,this[_0x3525b2(0x16c)]['addObject'](_0x3b006a,_0x22778c);let _0x45bac7=new Sn(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6-0x14,'text':_0xe65ffb,'color':_0x6e23ae});this[_0x3525b2(0x27e)]=_0x45bac7,this['_scene']['addObject'](_0x45bac7,_0x22778c),this[_0x3525b2(0x19a)]=!0x1;}[_0x7ea594(0x115)](){const _0x5d78ac=_0x7ea594;let _0x131a4e=this[_0x5d78ac(0x156)][_0x5d78ac(0x1b0)][_0x5d78ac(0x2bd)](()=>{const _0x305946=_0x5d78ac;this[_0x305946(0x19a)]=!0x0;}),_0x42a67f=this['_anchor'][_0x5d78ac(0x1d3)][_0x5d78ac(0x2bd)](()=>{const _0x4d149c=_0x5d78ac;this[_0x4d149c(0x18a)]&&clearTimeout(this[_0x4d149c(0x18a)]),this[_0x4d149c(0x18a)]=setTimeout(()=>{const _0x371ef1=_0x4d149c;this[_0x371ef1(0x19a)]=!0x1;},0x7d0);});return()=>{const _0x37975e=_0x5d78ac;_0x131a4e['unsubscribe'](),_0x42a67f[_0x37975e(0x1bc)]();};}[_0x7ea594(0x354)](_0x9e2bcc,_0x1e095b,_0x5aa98e,_0x336131){const _0xcab8ef=_0x7ea594;let _0xd38558=0.2,_0x33f8e4=new _0x4d3a61(_0x9e2bcc)[_0xcab8ef(0xe7)](_0xd38558)[_0xcab8ef(0x2d1)](),_0x124a07=new _0x1a0717(_0xcab8ef(0x11f)+_0x415285(0x6),{'pointsGroup':_0x1e095b,'fill':_0x33f8e4||_0x1e82d5(_0x48f4c1['black'],_0xd38558),'left':_0x5aa98e,'top':_0x336131,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xcab8ef(0x1c4)]['push'](_0x124a07),this['_scene']['addObject'](_0x124a07,_0x22778c);}[_0x7ea594(0x114)](_0x2c96d0,_0xcee0d7,_0x350457,_0x3c3585){const _0x2d311a=_0x7ea594;let _0x42d055=0.2,_0xb13c01=new _0x4d3a61(_0x2c96d0)['setAlpha'](_0x42d055)[_0x2d311a(0x2d1)](),_0x47b339=new _0x1a0717('collab-rect-range-'+_0x415285(0x6),{'pointsGroup':_0xcee0d7,'fill':_0xb13c01||_0x1e82d5(_0x48f4c1[_0x2d311a(0x22a)],_0x42d055),'left':_0x350457,'top':_0x3c3585,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d311a(0x1c4)]['push'](_0x47b339),this['_scene'][_0x2d311a(0x1e1)](_0x47b339,_0x22778c);}[_0x7ea594(0x125)](_0x113c9b){let _0x1f28b2=_0x113c9b[0x0],_0x4f8330=_0x1f28b2[0x0],_0x2ecc43=_0x1f28b2[0x2],{x:_0x5d40cd,y:_0x1d4fc3}=_0x4f8330,{x:_0x42eaf5,y:_0x474a20}=_0x2ecc43;return{'left':_0x5d40cd,'top':_0x1d4fc3,'width':_0x42eaf5-_0x5d40cd,'height':_0x474a20-_0x1d4fc3};}[_0x7ea594(0x147)](){const _0x2460b6=_0x7ea594;let {scaleX:_0x3e335e,scaleY:_0x273543}=this[_0x2460b6(0x16c)][_0x2460b6(0x11b)]();return Math[_0x2460b6(0x2aa)](_0x3e335e,_0x273543);}};function Tn(_0x317e59,_0x353671){const _0x3d36ae=_0x7ea594;if(!_0x353671)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x317e59||_0x317e59[_0x3d36ae(0x2e6)]!==_0x353671[_0x3d36ae(0x2e6)]||(_0x317e59[_0x3d36ae(0x2e6)]===_0x304f0a['HEADER']||_0x317e59[_0x3d36ae(0x2e6)]===_0x304f0a['FOOTER'])&&_0x317e59[_0x3d36ae(0x1b6)]!==_0x353671['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2e0e79=_0x1b7c2a(_0x317e59),_0x3d961e=_0x1b7c2a(_0x353671);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2e0e79==null||_0x3d961e==null?_0x2e0e79==null&&_0x3d961e==null:_0x2e0e79[_0x3d36ae(0x21b)]===_0x3d961e[_0x3d36ae(0x21b)]&&_0x2e0e79[_0x3d36ae(0x2fb)]===_0x3d961e[_0x3d36ae(0x2fb)]&&_0x2e0e79[_0x3d36ae(0x26f)]===_0x3d961e['columnIndex']};}let En=class extends _0x28ff85{constructor(_0x32193d,_0x42c987,_0x429334,_0x367253,_0x1af054){const _0x141ae5=_0x7ea594;super(),this[_0x141ae5(0x216)]=_0x32193d,this[_0x141ae5(0x173)]=_0x42c987,this['_collabCursorController']=_0x429334,this['_commandService']=_0x367253,this[_0x141ae5(0x12b)]=_0x1af054,J(this,'_cursorShapes',[]),J(this,'_cursors',[]),this[_0x141ae5(0x191)]();}[_0x7ea594(0x191)](){const _0x2aef36=_0x7ea594;let _0x50a9e6=this[_0x2aef36(0x216)][_0x2aef36(0x2ce)],_0x27f188=this[_0x2aef36(0x173)];this[_0x2aef36(0xf8)](_0x41dcbc([this[_0x2aef36(0x145)][_0x2aef36(0x12d)](_0x50a9e6),this[_0x2aef36(0x12b)]['currentTheme$']])[_0x2aef36(0x1d5)](_0x3cbcba(([_0x496a77,_0x28cc30])=>({'skeleton':_0x27f188[_0x2aef36(0x1e6)](),'cursors':[..._0x496a77[_0x2aef36(0x163)]()][_0x2aef36(0x293)](_0x165330=>({..._0x165330,'color':this[_0x2aef36(0x12b)][_0x2aef36(0x335)](_0x165330[_0x2aef36(0x1bb)])}))})))[_0x2aef36(0x1de)](_0x1f1fc7=>{const _0x56941a=_0x2aef36;if(this[_0x56941a(0x327)](),_0x1f1fc7){let {skeleton:_0x50ee4e,cursors:_0x48958f}=_0x1f1fc7;this[_0x56941a(0x1c6)](_0x50ee4e,_0x48958f);}})),this[_0x2aef36(0x1d0)](),this[_0x2aef36(0x219)]();}[_0x7ea594(0x1c6)](_0x2e9511,_0x4bfd2e){const _0x3888d9=_0x7ea594;let {scene:_0x562aee,mainComponent:_0x4dd886}=this[_0x3888d9(0x216)],_0xc05d94=_0x4bfd2e[_0x3888d9(0x171)](_0x7d269=>new wn(_0x7d269,_0x562aee,_0x2e9511,_0x4dd886));this['_cursorShapes']=_0xc05d94,this[_0x3888d9(0x157)]=_0x4bfd2e;}[_0x7ea594(0x2eb)](){const _0x350bd8=_0x7ea594;this['_removeCollabCursors']();let {scene:_0xd21b3d,mainComponent:_0x26036f}=this[_0x350bd8(0x216)],_0x109d10=this['_docSkeletonManagerService'][_0x350bd8(0x1e6)](),_0x367ada=this[_0x350bd8(0x157)][_0x350bd8(0x171)](_0x29bdce=>new wn(_0x29bdce,_0xd21b3d,_0x109d10,_0x26036f));this[_0x350bd8(0x2e2)]=_0x367ada;}[_0x7ea594(0x327)](){const _0x5d8490=_0x7ea594;this[_0x5d8490(0x2e2)][_0x5d8490(0x2c0)](_0x171115=>_0x171115[_0x5d8490(0x2f1)]()),this[_0x5d8490(0x2e2)]=[];}[_0x7ea594(0x219)](){const _0x1d50eb=_0x7ea594;let _0x46a4b0=[_0x43d3b6['id']];this[_0x1d50eb(0xf8)](this[_0x1d50eb(0x1c1)][_0x1d50eb(0x2a2)](_0x53d557=>{const _0x39aedb=_0x1d50eb;_0x46a4b0[_0x39aedb(0x353)](_0x53d557['id'])&&_0x53d557[_0x39aedb(0x131)][_0x39aedb(0x2ce)]===this[_0x39aedb(0x216)][_0x39aedb(0x2ce)]&&this[_0x39aedb(0x2eb)]();}));}[_0x7ea594(0x1d0)](){const _0xf848cf=_0x7ea594;this[_0xf848cf(0xf8)](_0x370585(this['_context']['engine'][_0xf848cf(0x2fa)])['pipe'](_0x39dc50(_0x5539ac=>_0x5539ac[_0xf848cf(0x34f)]===_0x2dc7e5[_0xf848cf(0x246)]),_0x51921d(0x10))[_0xf848cf(0x1de)](()=>{this['_refreshCollabCursors']();}));}};En=X([Y(0x1,_0x5c888d(_0x12f6b5)),Y(0x2,_0x5c888d(Q)),Y(0x3,_0x15fe51),Y(0x4,_0x5c888d(_0x16edca))],En);var Dn=class extends _0x41d5b2{constructor(_0x27d293,_0x277b20){const _0xfd7c47=_0x7ea594;super(_0x27d293,_0x277b20),J(this,_0xfd7c47(0x26c),void 0x0),J(this,_0xfd7c47(0x14f),!0x1),J(this,_0xfd7c47(0x222),void 0x0),J(this,_0xfd7c47(0xef),''),J(this,_0xfd7c47(0x19e),_0xfd7c47(0x294)),J(this,_0xfd7c47(0xf6),void 0x0),J(this,'_showText',void 0x0),J(this,_0xfd7c47(0x11e),void 0x0),J(this,_0xfd7c47(0x23e),0x4),J(this,_0xfd7c47(0x1cd),void 0x0),J(this,_0xfd7c47(0x189),void 0x0),J(this,_0xfd7c47(0x19c),!0x0),J(this,'_offsetY',0x0),J(this,'_labelHorizontalPosition',_0xfd7c47(0x1ea)),_0x277b20&&(this['setShapeProps'](_0x277b20),_0x277b20[_0xfd7c47(0x139)]&&(_0x277b20[_0xfd7c47(0x1e0)]??this[_0xfd7c47(0x23e)])&&this['_startBlinking'](_0x277b20['highlightSecond']??this[_0xfd7c47(0x23e)])),this[_0xfd7c47(0x1b0)][_0xfd7c47(0x2bd)](()=>this[_0xfd7c47(0x1a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0xfd7c47(0x2bd)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x7ea594(0x1f4)](_0x4784a6){const _0x388891=_0x7ea594;this[_0x388891(0x1d9)]=_0x4784a6;}['setShapeProps'](_0x59a0ec){const _0x5b1a95=_0x7ea594;this[_0x5b1a95(0x26c)]=_0x59a0ec['color']??this[_0x5b1a95(0x26c)],this[_0x5b1a95(0x14f)]=_0x59a0ec[_0x5b1a95(0x21f)]??this[_0x5b1a95(0x14f)],this[_0x5b1a95(0x222)]=_0x59a0ec[_0x5b1a95(0x27a)]??this[_0x5b1a95(0x222)],this[_0x5b1a95(0xef)]=_0x59a0ec[_0x5b1a95(0x2d6)]??this[_0x5b1a95(0xef)],this[_0x5b1a95(0x19e)]=_0x59a0ec[_0x5b1a95(0x33b)]??this['_labelPosition'],this['_backgroundColor']=_0x59a0ec[_0x5b1a95(0xed)]??this[_0x5b1a95(0xf6)],this['_showText']=_0x59a0ec[_0x5b1a95(0x25f)]??this['_showText'],this['_labelHorizontalPosition']=_0x59a0ec[_0x5b1a95(0x29e)]??this['_labelHorizontalPosition'],_0x59a0ec[_0x5b1a95(0x1e0)]!==void 0x0&&(this[_0x5b1a95(0x23e)]=_0x59a0ec[_0x5b1a95(0x1e0)]),_0x59a0ec['highlight']!==void 0x0&&(this[_0x5b1a95(0x11e)]=_0x59a0ec['highlight']),_0x59a0ec[_0x5b1a95(0x336)]!==void 0x0&&(this[_0x5b1a95(0x1d9)]=_0x59a0ec[_0x5b1a95(0x336)]),this['transformByState']({'width':_0x59a0ec[_0x5b1a95(0x2c6)],'height':_0x59a0ec[_0x5b1a95(0x25c)]});}[_0x7ea594(0x22b)](_0x392cd1){const _0x5e891e=_0x7ea594;let {row:_0x5dab29,column:_0x4c130d}=_0x392cd1;_0x5dab29>=this[_0x5e891e(0x222)][_0x5e891e(0x184)]&&_0x5dab29<=this[_0x5e891e(0x222)][_0x5e891e(0x11d)]&&_0x4c130d>=this[_0x5e891e(0x222)][_0x5e891e(0x12a)]&&_0x4c130d<=this['_range'][_0x5e891e(0x1e2)]?this['setShapeProps']({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}[_0x7ea594(0x1ab)](_0x58d859){const _0x98110b=_0x7ea594;this[_0x98110b(0x153)](),this['_isBlinkVisible']=!0x0,this[_0x98110b(0x189)]=window[_0x98110b(0x187)](()=>{const _0x51aef5=_0x98110b;this[_0x51aef5(0x19c)]=!this['_isBlinkVisible'],this[_0x51aef5(0x350)](!0x0);},0x1f4),this[_0x98110b(0x1cd)]=window['setTimeout'](()=>{const _0x26c27f=_0x98110b;this[_0x26c27f(0x153)](),this[_0x26c27f(0x19c)]=!0x0,this[_0x26c27f(0x350)](!0x0);},_0x58d859*0x3e8);}[_0x7ea594(0x153)](){const _0x1cdbbb=_0x7ea594;this[_0x1cdbbb(0x189)]&&=(window[_0x1cdbbb(0x2a7)](this[_0x1cdbbb(0x189)]),void 0x0),this['_blinkTimer']&&=(window[_0x1cdbbb(0x29c)](this[_0x1cdbbb(0x1cd)]),void 0x0);}[_0x7ea594(0x12f)](_0x3d5e71){return!0x1;}[_0x7ea594(0x2f1)](){const _0x8bdf1e=_0x7ea594;this[_0x8bdf1e(0x153)](),super['dispose']();}[_0x7ea594(0x14c)](_0x3fe654){const _0x5b720d=_0x7ea594;let _0x4e038f=this[_0x5b720d(0x26c)],_0x28da81=this[_0x5b720d(0xf6)];if(this[_0x5b720d(0x11e)]&&!this[_0x5b720d(0x19c)]&&(_0x4e038f=this[_0x5b720d(0x1b8)](this[_0x5b720d(0x26c)]),_0x28da81=this['_backgroundColor']?this[_0x5b720d(0x1b8)](this[_0x5b720d(0xf6)]):void 0x0),_0x3a3ee5[_0x5b720d(0x286)](_0x3fe654,{'width':this[_0x5b720d(0x2c6)],'height':this[_0x5b720d(0x25c)],'strokeWidth':this[_0x5b720d(0x18b)]||1.5,'stroke':_0x4e038f,'evented':!0x1,'fill':_0x28da81}),this[_0x5b720d(0x14f)]||this['_showText']){_0x3fe654[_0x5b720d(0x2d0)]();let _0x35240d=this[_0x5b720d(0x321)]==='left'?-bn(_0x3fe654,this[_0x5b720d(0xef)]):this[_0x5b720d(0x2c6)];_0x3fe654['transform'](0x1,0x0,0x0,0x1,_0x35240d,(this[_0x5b720d(0x19e)]===_0x5b720d(0x223)?0x0:-0x14)+(this['_offsetY']??0x0)),Sn[_0x5b720d(0x286)](_0x3fe654,{'text':this[_0x5b720d(0xef)],'color':_0x4e038f}),_0x3fe654[_0x5b720d(0x1c2)]();}}['_getLighterColor'](_0x23812d){const _0x463c3c=_0x7ea594;return _0x23812d[_0x463c3c(0x142)]('#')?_0x463c3c(0x274)+Number[_0x463c3c(0x28f)](_0x23812d[_0x463c3c(0xf3)](0x1,0x3),0x10)+',\x20'+Number[_0x463c3c(0x28f)](_0x23812d[_0x463c3c(0xf3)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x23812d[_0x463c3c(0xf3)](0x5,0x7),0x10)+',\x200.2)':_0x23812d['startsWith']('rgba')?_0x23812d[_0x463c3c(0x291)](/[\d.]+\)$/g,_0x463c3c(0x134)):_0x23812d[_0x463c3c(0x142)]('rgb')?_0x23812d['replace'](_0x463c3c(0x28b),_0x463c3c(0x2b0))[_0x463c3c(0x291)](')',_0x463c3c(0x165)):_0x23812d;}};let On=class extends _0x28ff85{constructor(_0x47c572,_0x8415c5,_0x550828,_0x5e03c0){const _0x403443=_0x7ea594;super(),this[_0x403443(0x216)]=_0x47c572,this[_0x403443(0x237)]=_0x8415c5,this[_0x403443(0x145)]=_0x550828,this[_0x403443(0x12b)]=_0x5e03c0,J(this,'_cursors',new Set()),J(this,_0x403443(0x2a8),null),J(this,_0x403443(0x332),null),this['_init']();}[_0x7ea594(0x191)](){const _0x7f410b=_0x7ea594;this[_0x7f410b(0x237)]['currentSkeleton$']['pipe'](_0x4eff35(this[_0x7f410b(0x190)]),_0x1da258(_0x24c309=>{const _0x575b96=_0x7f410b;if(_0x24c309){let _0x724074=_0x24c309[_0x575b96(0x1a3)];return _0x41dcbc(this[_0x575b96(0x145)]['getCollabCursors$'](this[_0x575b96(0x216)][_0x575b96(0x2ce)]),this['_themeService'][_0x575b96(0x254)])[_0x575b96(0x1d5)](_0x3cbcba(([_0x42f5d6,_0x2581ab])=>{const _0x1a4f06=_0x575b96;let _0x5a85cc=new Map();return _0x42f5d6[_0x1a4f06(0x2c0)]((_0x271656,_0x19308f)=>{const _0x5a3349=_0x1a4f06;if(_0x271656[_0x5a3349(0x1a7)]===_0x724074){let _0x599b15={..._0x271656};_0x599b15[_0x5a3349(0x1bb)]=this['_themeService'][_0x5a3349(0x335)](_0x271656[_0x5a3349(0x1bb)]),_0x5a85cc[_0x5a3349(0x164)](_0x19308f,_0x599b15);}}),{'skeleton':_0x24c309,'cursors':_0x5a85cc};}));}return _0x13f646({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2fd8a2,cursors:_0x5ac67a})=>{const _0x5f47d9=_0x7f410b;this[_0x5f47d9(0x327)](),_0x2fd8a2&&this[_0x5f47d9(0x1c6)](_0x2fd8a2,_0x5ac67a);}),this[_0x7f410b(0xf8)](this[_0x7f410b(0x237)]['currentSkeleton$']['pipe'](_0x4eff35(this[_0x7f410b(0x190)]))[_0x7f410b(0x1de)](_0x3502f2=>{const _0x399bd9=_0x7f410b;var _0x1c1ad5;if(_0x3502f2==null)return;(_0x1c1ad5=this[_0x399bd9(0x332)])==null||_0x1c1ad5[_0x399bd9(0x1bc)](),this[_0x399bd9(0x332)]=null;let {skeleton:_0x45d526}=_0x3502f2,{scene:_0x28b090}=this[_0x399bd9(0x216)];this['_pointerMoveDisposable']=_0x28b090[_0x399bd9(0x1cc)][_0x399bd9(0x2bd)](_0xf32b8d(_0x9ebbdd=>{const _0x253ad6=_0x399bd9;var _0x2573fe,_0x47a667;let {offsetX:_0x14d7da,offsetY:_0x2077fb}=_0x9ebbdd,{x:_0x26f2e6,y:_0x2a9b8d}=_0x28b090['getCoordRelativeToViewport'](_0x9573fe[_0x253ad6(0x309)]([_0x14d7da,_0x2077fb])),{scaleX:_0x19c00d,scaleY:_0x9bdbf8}=_0x28b090['getAncestorScale'](),_0x23ab86=_0x28b090[_0x253ad6(0x123)](_0x1822ce['VIEW_MAIN']),_0x5782e7=_0x28b090[_0x253ad6(0x226)](_0x9573fe['FromArray']([_0x26f2e6,_0x2a9b8d]),_0x23ab86),_0xa28d5a=_0x45d526[_0x253ad6(0x2ee)](_0x14d7da,_0x2077fb,_0x19c00d,_0x9bdbf8,_0x5782e7);(((_0x2573fe=this[_0x253ad6(0x2a8)])==null?void 0x0:_0x2573fe[_0x253ad6(0x23d)])!==_0xa28d5a[_0x253ad6(0x23d)]||((_0x47a667=this[_0x253ad6(0x2a8)])==null?void 0x0:_0x47a667['row'])!==_0xa28d5a[_0x253ad6(0xe5)])&&this['_cursors'][_0x253ad6(0x2c0)](_0x302a8c=>{const _0xd06dd0=_0x253ad6;_0x302a8c[_0xd06dd0(0x22b)](_0xa28d5a);});},0x64));})),this[_0x7f410b(0xf8)](_0x42bb3c(()=>{const _0xbfde1c=_0x7f410b;var _0x5a963b;(_0x5a963b=this[_0xbfde1c(0x332)])==null||_0x5a963b['unsubscribe'](),this[_0xbfde1c(0x332)]=null;}));}[_0x7ea594(0x1c6)](_0x582bce,_0x6ceb9c){const _0x34e347=_0x7ea594;let _0x30630c=this[_0x34e347(0x237)][_0x34e347(0x302)]();if(!_0x30630c)return;let _0x1baaae=this['_getSheetObject']();if(!_0x1baaae)return;this[_0x34e347(0x157)][_0x34e347(0x2c0)](_0x51b130=>{const _0x1ec433=_0x34e347;_0x51b130[_0x1ec433(0x350)]();});let {scene:_0x152272}=_0x1baaae,_0x546e29=kn(Array[_0x34e347(0x1eb)](_0x6ceb9c[_0x34e347(0x163)]()))[_0x34e347(0x171)](_0xcb1d47=>{const _0xbe322b=_0x34e347;let {color:_0xb77db4,range:_0x10f378,name:_0x521112,selection:_0x17e0cb,sheetID:_0x5abc2e}=_0xcb1d47,{startColumn:_0xa04e8b,startRow:_0x5f3377,endColumn:_0x8f38df,endRow:_0x4ec26a}=_0x10f378,_0xe64acf=_0x17a4e6(_0x5f3377,_0xa04e8b,_0x152272,_0x30630c),_0x53de72=_0x17a4e6(_0x4ec26a,_0x8f38df,_0x152272,_0x30630c),{columnHeaderHeightAndMarginTop:_0x3fd290}=_0x30630c,{startX:_0x44d705,startY:_0x1734a2}=_0xe64acf,{endX:_0x47a19d,endY:_0x5dc403}=_0x53de72,_0x2f92f7=_0x47a19d-_0x44d705,_0x4a8ad7=_0x5dc403-_0x1734a2;return new Dn(_0x521112,{'labelPosition':_0x1734a2-_0x3fd290>=0x14?_0xbe322b(0x294):'bottom','sheetID':_0x5abc2e,'range':_0x10f378,'color':_0xb77db4,'name':_0x521112,'selection':_0x17e0cb,'left':_0x44d705,'top':_0x1734a2,'width':_0x2f92f7,'height':_0x4a8ad7,'evented':!0x1,'zIndex':0x1389});});_0x152272['addObjects'](_0x546e29,0x1),this['_cursors']=new Set(_0x546e29);}[_0x7ea594(0x327)](){const _0x183f79=_0x7ea594;var _0x40819d;(_0x40819d=this[_0x183f79(0x157)])==null||_0x40819d[_0x183f79(0x2c0)](_0x41e911=>_0x41e911[_0x183f79(0x2f1)]());}[_0x7ea594(0x186)](){const _0x461977=_0x7ea594;return _0x27e85c(this[_0x461977(0x216)][_0x461977(0x14d)],this[_0x461977(0x216)]);}};On=X([Y(0x1,_0x5c888d(_0x2e722a)),Y(0x2,_0x5c888d(Q)),Y(0x3,_0x5c888d(_0x16edca))],On);function kn(_0xa7a144){const _0x59d31b=_0x7ea594;let _0x186b25=new Map();return _0xa7a144[_0x59d31b(0x2c0)](_0x33fdab=>{const _0x8c3fde=_0x59d31b;if(_0x186b25[_0x8c3fde(0x2c5)](_0x33fdab['selection'])){let _0x4262c7=_0x186b25[_0x8c3fde(0x161)](_0x33fdab[_0x8c3fde(0x333)]);_0x4262c7['name']+=',\x20'+_0x33fdab[_0x8c3fde(0x2d6)];}else _0x186b25[_0x8c3fde(0x164)](_0x33fdab[_0x8c3fde(0x333)],_0x33fdab);}),Array[_0x59d31b(0x1eb)](_0x186b25['values']());}function An(_0x352742){return typeof _0x352742=='object'&&!!_0x352742;}function jn(_0x3e96e9){const _0x1c659c=_0x7ea594;return _0x3e96e9['eventID']===_0x865df6[_0x1c659c(0x207)]&&_0x1c659c(0x10b)in _0x3e96e9&&An(_0x3e96e9[_0x1c659c(0x10b)])&&typeof _0x3e96e9[_0x1c659c(0x10b)][_0x1c659c(0x35a)]==_0x1c659c(0xfc)&&typeof _0x3e96e9[_0x1c659c(0x10b)]['selection']==_0x1c659c(0xfc);}function Mn(_0x2d7425){const _0x34b199=_0x7ea594;return _0x2d7425[_0x34b199(0x24f)]===_0x865df6['USERS_LEAVE']&&_0x34b199(0x10b)in _0x2d7425&&An(_0x2d7425['data'])&&typeof _0x2d7425['data'][_0x34b199(0x35a)]==_0x34b199(0xfc);}function Nn(_0x47fa1c,_0x3fc24d){const _0x4025ea=_0x7ea594;let _0x46bb3d;try{_0x46bb3d=JSON[_0x4025ea(0x188)](_0x47fa1c);}catch{return null;}if(!An(_0x46bb3d)||typeof _0x46bb3d[_0x4025ea(0x2fc)]!=_0x4025ea(0xfc)||typeof _0x46bb3d[_0x4025ea(0x2ce)]!=_0x4025ea(0xfc)||typeof _0x46bb3d[_0x4025ea(0x29f)]!=_0x4025ea(0xfc))return null;let _0x983260=typeof _0x46bb3d['unitType']=='number'?_0x46bb3d['unitType']:_0x3fc24d;if(_0x983260==null)return null;let _0x2aedef=An(_0x46bb3d[_0x4025ea(0x25e)])&&typeof _0x46bb3d[_0x4025ea(0x25e)]['x']==_0x4025ea(0x2e9)&&Number[_0x4025ea(0x310)](_0x46bb3d[_0x4025ea(0x25e)]['x'])&&typeof _0x46bb3d[_0x4025ea(0x25e)]['y']=='number'&&Number['isFinite'](_0x46bb3d[_0x4025ea(0x25e)]['y'])?{'x':_0x46bb3d[_0x4025ea(0x25e)]['x'],'y':_0x46bb3d[_0x4025ea(0x25e)]['y']}:null;return{'kind':_0x46bb3d['kind'],'unitType':_0x983260,'unitId':_0x46bb3d[_0x4025ea(0x2ce)],'subUnitId':_0x46bb3d['subUnitId'],'selectedIds':Array[_0x4025ea(0x312)](_0x46bb3d[_0x4025ea(0x23a)])?_0x46bb3d[_0x4025ea(0x23a)]['filter'](_0x5a4278=>typeof _0x5a4278==_0x4025ea(0xfc)):[],'focusedId':typeof _0x46bb3d['focusedId']==_0x4025ea(0xfc)?_0x46bb3d[_0x4025ea(0x21c)]:null,'pointer':_0x2aedef};}function Pn(_0x448776,_0x21697d,_0xe9dbd2){const _0x1d4514=_0x7ea594;return{'kind':_0x21697d,'unitType':_0x448776,'unitId':_0xe9dbd2['unitId'],'subUnitId':_0xe9dbd2[_0x1d4514(0x29f)],'selectedIds':Array[_0x1d4514(0x1eb)](_0xe9dbd2[_0x1d4514(0x23a)]),'focusedId':_0xe9dbd2[_0x1d4514(0x21c)],'pointer':_0xe9dbd2['pointer']?{..._0xe9dbd2[_0x1d4514(0x25e)]}:null};}let Fn=class extends _0x28ff85{constructor(_0x141a95,_0x41479c,_0x357259,_0x12f3d2,_0x541485,_0x15eff9){const _0x1a4f5b=_0x7ea594;super(),this[_0x1a4f5b(0x2ce)]=_0x141a95,this[_0x1a4f5b(0x2a0)]=_0x41479c,this['_adapter']=_0x357259,this[_0x1a4f5b(0x20c)]=_0x12f3d2,this[_0x1a4f5b(0x344)]=_0x541485,this['_commandService']=_0x15eff9,J(this,_0x1a4f5b(0x22d),!0x1),J(this,'_initialized',!0x1);}get['unitType'](){const _0x4ad5a8=_0x7ea594;return this[_0x4ad5a8(0x180)][_0x4ad5a8(0x2cd)];}[_0x7ea594(0x2f1)](){const _0x2609b0=_0x7ea594;this[_0x2609b0(0x1fb)](),super[_0x2609b0(0x2f1)]();}[_0x7ea594(0x1ee)](){const _0x25061c=_0x7ea594;this[_0x25061c(0xeb)]||(this[_0x25061c(0xeb)]=!0x0,this['_session'][_0x25061c(0x1e9)][_0x25061c(0x1d5)](_0x2a3afc(this[_0x25061c(0x190)]))[_0x25061c(0x1de)](_0x3e4ad1=>{const _0x13f6ce=_0x25061c;if(_0x3e4ad1===_0xa8ada1[_0x13f6ce(0x287)]){this['_online']=!0x0;let _0x1b2b6c=this[_0x13f6ce(0x180)][_0x13f6ce(0x210)](this['unitId']);_0x1b2b6c&&this[_0x13f6ce(0x1a6)](_0x1b2b6c);}else this[_0x13f6ce(0x22d)]=!0x1,this[_0x13f6ce(0x1fb)]();}),this[_0x25061c(0x2a0)][_0x25061c(0x1d4)][_0x25061c(0x1d5)](_0x2a3afc(this['dispose$']))[_0x25061c(0x1de)](_0x491a89=>{const _0x2e4ae1=_0x25061c;jn(_0x491a89)?this[_0x2e4ae1(0x2ac)](_0x491a89):Mn(_0x491a89)&&this['_removeRemotePresence'](_0x491a89[_0x2e4ae1(0x10b)][_0x2e4ae1(0x35a)]);}),this[_0x25061c(0x180)][_0x25061c(0xf2)]['pipe'](_0x399a72(_0x98ee91=>this[_0x25061c(0x22d)]&&_0x98ee91['unitId']===this[_0x25061c(0x2ce)]),_0x3dbcf7(_0x4f25e2=>_0x46c7e6(_0x4f25e2['shareInterval']),{'leading':!0x0,'trailing':!0x0}),_0x2a3afc(this[_0x25061c(0x190)]))[_0x25061c(0x1de)](_0x2e077e=>this['_sendLocalPresence'](_0x2e077e)));}[_0x7ea594(0x1a6)](_0x564ec6){const _0x57afed=_0x7ea594;let _0xfe94c9=this[_0x57afed(0x2a0)][_0x57afed(0x13b)]();if(!_0xfe94c9||!this['_online'])return;let _0x5f15ef={'eventID':_0x865df6['UPDATE_CURSOR'],'data':{'unitID':this[_0x57afed(0x2ce)],'memberID':_0xfe94c9,'selection':JSON[_0x57afed(0x34a)](Pn(this[_0x57afed(0x2cd)],this[_0x57afed(0x180)]['presenceKind'],_0x564ec6))}};this[_0x57afed(0x2a0)][_0x57afed(0xdc)](_0x5f15ef,this[_0x57afed(0x2ce)])[_0x57afed(0x193)](()=>void 0x0);}[_0x7ea594(0x2ac)](_0x58ad2b){const _0x29ad3a=_0x7ea594;let {memberID:_0x42452d,selection:_0x328337}=_0x58ad2b[_0x29ad3a(0x10b)];if(_0x42452d===this[_0x29ad3a(0x2a0)][_0x29ad3a(0x13b)]())return;let _0x3379e9=Nn(_0x328337,this[_0x29ad3a(0x2cd)]);if(!_0x3379e9||_0x3379e9[_0x29ad3a(0x2fc)]!==this[_0x29ad3a(0x180)]['presenceKind']||_0x3379e9[_0x29ad3a(0x2cd)]!==this[_0x29ad3a(0x2cd)]||_0x3379e9[_0x29ad3a(0x2ce)]!==this['unitId'])return;let _0x22bf12=this['_memberService'][_0x29ad3a(0x2d8)](this['unitId'],_0x42452d),_0x5e44fb={'unitId':_0x3379e9[_0x29ad3a(0x2ce)],'subUnitId':_0x3379e9[_0x29ad3a(0x29f)],'selectedIds':_0x3379e9[_0x29ad3a(0x23a)],'focusedId':_0x3379e9[_0x29ad3a(0x21c)],'pointer':_0x3379e9['pointer'],'memberId':_0x42452d,'color':this[_0x29ad3a(0x20c)]['assignAColorForMemberID'](_0x42452d),'name':(_0x22bf12==null?void 0x0:_0x22bf12[_0x29ad3a(0x2d6)])??_0x42452d};this[_0x29ad3a(0x1c1)][_0x29ad3a(0x175)](ln['id'],{'unitType':this[_0x29ad3a(0x2cd)],'update':{'type':_0x29ad3a(0x164),'state':_0x5e44fb}})[_0x29ad3a(0x193)](()=>void 0x0);}[_0x7ea594(0xfb)](_0x5e0ab5){const _0x4f6a63=_0x7ea594;this['_commandService'][_0x4f6a63(0x175)](ln['id'],{'unitType':this[_0x4f6a63(0x2cd)],'update':{'type':'remove','unitId':this[_0x4f6a63(0x2ce)],'memberId':_0x5e0ab5}})[_0x4f6a63(0x193)](()=>void 0x0);}[_0x7ea594(0x1fb)](){const _0x4fb899=_0x7ea594;this['_commandService'][_0x4fb899(0x175)](ln['id'],{'unitType':this[_0x4fb899(0x2cd)],'update':{'type':'clear','unitId':this[_0x4fb899(0x2ce)]}})[_0x4fb899(0x193)](()=>void 0x0);}};Fn=X([Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x5c888d(_0x15fe51))],Fn);let In=class extends _0x28ff85{constructor(_0x59ac5c,_0x416dc7,_0x2aa420,_0x4cbd89){const _0x4d8ce7=_0x7ea594;super(),this[_0x4d8ce7(0x337)]=_0x59ac5c,this[_0x4d8ce7(0x140)]=_0x416dc7,this[_0x4d8ce7(0x2a4)]=_0x2aa420,this[_0x4d8ce7(0x1df)]=_0x4cbd89,J(this,_0x4d8ce7(0x15d),!0x1),J(this,_0x4d8ce7(0x33c),new Map()),J(this,'_pendingEntities',new Map()),J(this,'_adapterDisposables',new Map()),this[_0x4d8ce7(0x191)]();}['dispose'](){const _0x4d6dd2=_0x7ea594;this[_0x4d6dd2(0x15d)]=!0x0,this[_0x4d6dd2(0x21e)][_0x4d6dd2(0x2c0)](_0xe2e4dc=>_0xe2e4dc['dispose']()),this[_0x4d6dd2(0x21e)][_0x4d6dd2(0x221)](),this[_0x4d6dd2(0x33c)][_0x4d6dd2(0x2c0)](_0x4f65e9=>_0x4f65e9[_0x4d6dd2(0x2f1)]()),this['_entities'][_0x4d6dd2(0x221)](),this[_0x4d6dd2(0x267)][_0x4d6dd2(0x221)](),super[_0x4d6dd2(0x2f1)]();}[_0x7ea594(0x191)](){const _0x5bb7c1=_0x7ea594;this['_adapterRegistry'][_0x5bb7c1(0x24a)][_0x5bb7c1(0x1d5)](_0x2a3afc(this[_0x5bb7c1(0x190)]))[_0x5bb7c1(0x1de)](_0xb0edf4=>this[_0x5bb7c1(0x29d)](_0xb0edf4));}[_0x7ea594(0x29d)](_0x163b4f){const _0x89eca4=_0x7ea594;let _0x25b79a=new Set(_0x163b4f[_0x89eca4(0x171)](_0x506e32=>_0x506e32['unitType']));this['_adapterDisposables'][_0x89eca4(0x2c0)]((_0x145dd5,_0xccf694)=>{const _0x2782b4=_0x89eca4;_0x25b79a[_0x2782b4(0x2c5)](_0xccf694)||(_0x145dd5[_0x2782b4(0x2f1)](),this[_0x2782b4(0x21e)][_0x2782b4(0x182)](_0xccf694),this[_0x2782b4(0xf9)](_0xccf694));}),_0x163b4f[_0x89eca4(0x2c0)](_0x359f27=>{const _0x5b84d8=_0x89eca4;this[_0x5b84d8(0x21e)][_0x5b84d8(0x2c5)](_0x359f27[_0x5b84d8(0x2cd)])||this[_0x5b84d8(0x13d)](_0x359f27);});}[_0x7ea594(0x13d)](_0x402c18){const _0x436193=_0x7ea594;let _0x1b93a6=new _0x200b02();this[_0x436193(0x21e)][_0x436193(0x164)](_0x402c18['unitType'],_0x1b93a6),_0x1b93a6[_0x436193(0x1ce)](_0x402c18[_0x436193(0xdd)]()),this[_0x436193(0x337)][_0x436193(0x315)](_0x402c18[_0x436193(0x2cd)])[_0x436193(0x2c0)](_0x4fb861=>this['_startEntity'](_0x4fb861[_0x436193(0x270)](),_0x402c18)['catch'](()=>void 0x0));let _0x81043b=this[_0x436193(0x337)][_0x436193(0xf5)](_0x402c18[_0x436193(0x2cd)])['subscribe'](({unit:_0x447b52})=>this[_0x436193(0x30c)](_0x447b52[_0x436193(0x270)](),_0x402c18)[_0x436193(0x193)](()=>void 0x0));_0x1b93a6[_0x436193(0x1ce)](_0x42bb3c(()=>_0x81043b[_0x436193(0x1bc)]()));let _0x263870=this['_univerInstanceService'][_0x436193(0x2ca)](_0x402c18[_0x436193(0x2cd)])[_0x436193(0x1de)](_0x3002d6=>this['_disposeEntity'](_0x3002d6[_0x436193(0x270)]()));_0x1b93a6[_0x436193(0x1ce)](_0x42bb3c(()=>_0x263870[_0x436193(0x1bc)]()));}async[_0x7ea594(0x30c)](_0x30ae71,_0x2435bf){const _0xe463c7=_0x7ea594;if(this['_entities'][_0xe463c7(0x2c5)](_0x30ae71)||this[_0xe463c7(0x267)][_0xe463c7(0x2c5)](_0x30ae71))return;let _0x9de98c={};this['_pendingEntities']['set'](_0x30ae71,_0x9de98c);let _0x608abd=await this[_0xe463c7(0x2a4)][_0xe463c7(0x348)](_0x30ae71)['catch'](_0x2be489=>{const _0x14e9e9=_0xe463c7;throw this[_0x14e9e9(0x267)][_0x14e9e9(0x161)](_0x30ae71)===_0x9de98c&&this[_0x14e9e9(0x267)]['delete'](_0x30ae71),_0x2be489;});if(this[_0xe463c7(0x15d)]||this['_pendingEntities']['get'](_0x30ae71)!==_0x9de98c||this[_0xe463c7(0x1df)][_0xe463c7(0x161)](_0x2435bf[_0xe463c7(0x2cd)])!==_0x2435bf){this[_0xe463c7(0x267)][_0xe463c7(0x161)](_0x30ae71)===_0x9de98c&&this[_0xe463c7(0x267)][_0xe463c7(0x182)](_0x30ae71);return;}let _0x5525da=this['_injector'][_0xe463c7(0x10a)](Fn,_0x30ae71,_0x608abd,_0x2435bf);_0x5525da['init'](),this[_0xe463c7(0x267)]['delete'](_0x30ae71),this[_0xe463c7(0x33c)][_0xe463c7(0x164)](_0x30ae71,_0x5525da);}[_0x7ea594(0x1ec)](_0x2a6b20){const _0xd2b04a=_0x7ea594;this[_0xd2b04a(0x267)][_0xd2b04a(0x182)](_0x2a6b20);let _0x526d98=this[_0xd2b04a(0x33c)][_0xd2b04a(0x161)](_0x2a6b20);_0x526d98&&(_0x526d98['dispose'](),this[_0xd2b04a(0x33c)]['delete'](_0x2a6b20));}[_0x7ea594(0xf9)](_0x44304e){const _0x11dfa7=_0x7ea594;this[_0x11dfa7(0x337)][_0x11dfa7(0x315)](_0x44304e)[_0x11dfa7(0x2c0)](_0x2c6b43=>this['_pendingEntities'][_0x11dfa7(0x182)](_0x2c6b43['getUnitId']())),Array[_0x11dfa7(0x1eb)](this[_0x11dfa7(0x33c)]['entries']())[_0x11dfa7(0x2c0)](([_0x8ecc4c,_0x415f2a])=>{const _0x4abb96=_0x11dfa7;_0x415f2a[_0x4abb96(0x2cd)]===_0x44304e&&this[_0x4abb96(0x1ec)](_0x8ecc4c);});}};In=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x25de4e)),Y(0x3,_0x5c888d(_0x14c253))],In);const Ln={'toast':_0x7ea594(0x248),'actionButton':_0x7ea594(0x2de)},Rn={'title':'collaboration-client-ui.conflict.title','content':'collaboration-client-ui.conflict.content','type':'error'},zn={'permission_rejected':{'title':_0x7ea594(0x143),'content':_0x7ea594(0x18c),'type':_0x7ea594(0x19d)},'license_unit_type_rejected':{'title':_0x7ea594(0x205),'content':'collaboration-client-ui.license.unit-type-rejected','type':_0x7ea594(0x19d)},'remote_revert':{'title':_0x7ea594(0x299),'content':_0x7ea594(0x2f4),'type':'warning'}};let Bn=class extends _0x2c43e7{constructor(_0x449de8,_0x1a4b07,_0x268386,_0x675eab,_0x235920,_0x2f771d,_0x42f18a,_0x2cd6c8){const _0x288b4e=_0x7ea594;var _0x38f958;super(),this['_beforeCloseService']=_0x449de8,this[_0x288b4e(0x2bf)]=_0x1a4b07,this['_collaborationUIEventService']=_0x268386,this[_0x288b4e(0x177)]=_0x675eab,this[_0x288b4e(0xde)]=_0x235920,this[_0x288b4e(0x133)]=_0x2f771d,this['_collaborationController']=_0x42f18a,this[_0x288b4e(0x113)]=_0x2cd6c8,J(this,_0x288b4e(0x2be),null),J(this,_0x288b4e(0x340),new Set()),J(this,_0x288b4e(0x199),new Map()),J(this,_0x288b4e(0x183),new Map()),this[_0x288b4e(0x252)](),this[_0x288b4e(0x120)](),this[_0x288b4e(0x27b)](),((_0x38f958=this[_0x288b4e(0x113)]['getConfig']('collaboration-client-ui.config'))==null?void 0x0:_0x38f958['enableDefaultConflictUI'])!==!0x1&&this['_initConflictHandling']();}[_0x7ea594(0x2f1)](){const _0x12a188=_0x7ea594;var _0x2a9cd5;(_0x2a9cd5=this['_conflictNotification'])==null||_0x2a9cd5[_0x12a188(0x2f1)](),this[_0x12a188(0x2be)]=null;for(let _0x358707 of[this[_0x12a188(0x199)],this['_editingConnectionsExceededNotices']])_0x358707[_0x12a188(0x2c0)](_0x4187c0=>_0x4187c0[_0x12a188(0x2f1)]()),_0x358707[_0x12a188(0x221)]();super[_0x12a188(0x2f1)]();}['_initAwaitingNotices'](){const _0x9a758b=_0x7ea594;let _0xa349d3=_0x5c5837=>{const _0x1bc8fe=_0x1c2b;let _0x5c153e=new _0x200b02();_0x5c153e[_0x1bc8fe(0x1ce)](_0x42bb3c(_0x5c5837['changesetResend$'][_0x1bc8fe(0x1de)]({'next':_0x3651ef=>{const _0x3270ed=_0x1bc8fe;_0x3651ef['elapsedMs']>=0x4e20&&this[_0x3270ed(0x1ff)](this[_0x3270ed(0x199)],_0x5c5837['unitID'],_0x3270ed(0x1f9)),_0x3651ef[_0x3270ed(0x12e)]===_0x3270ed(0x10f)&&this[_0x3270ed(0x1ff)](this[_0x3270ed(0x183)],_0x5c5837[_0x3270ed(0x195)],'collaboration-client-ui.license.editing-connections-exceeded');},'complete':()=>{const _0x25591d=_0x1bc8fe;this[_0x25591d(0x1a8)](_0x5c5837[_0x25591d(0x195)]),_0x5c153e[_0x25591d(0x2f1)]();}}))),_0x5c153e[_0x1bc8fe(0x1ce)](_0x42bb3c(_0x5c5837[_0x1bc8fe(0x271)][_0x1bc8fe(0x1de)](_0x17931f=>{const _0x5374c3=_0x1bc8fe;_0x17931f!==_0x65ab9a[_0x5374c3(0x20a)]&&_0x17931f!==_0x65ab9a[_0x5374c3(0xe2)]&&this[_0x5374c3(0x1a8)](_0x5c5837[_0x5374c3(0x195)]);}))),this['disposeWithMe'](_0x5c153e);};this[_0x9a758b(0x1fe)][_0x9a758b(0x2d5)]()[_0x9a758b(0x2c0)](_0xa349d3),this[_0x9a758b(0xf8)](_0x42bb3c(this[_0x9a758b(0x1fe)]['entityInit$'][_0x9a758b(0x1de)](_0xa349d3)));}[_0x7ea594(0x1ff)](_0x42fb62,_0x1d2743,_0x32fa37){const _0x28d920=_0x7ea594;_0x42fb62[_0x28d920(0x2c5)](_0x1d2743)||_0x42fb62['set'](_0x1d2743,this[_0x28d920(0xde)][_0x28d920(0x1f0)]({'title':this[_0x28d920(0x133)]['t'](_0x32fa37),'type':_0x28d920(0x231),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x35a25d){const _0x310e16=_0x7ea594;for(let _0x3702bf of[this[_0x310e16(0x199)],this[_0x310e16(0x183)]]){var _0x49d80f;(_0x49d80f=_0x3702bf[_0x310e16(0x161)](_0x35a25d))==null||_0x49d80f[_0x310e16(0x2f1)](),_0x3702bf[_0x310e16(0x182)](_0x35a25d);}}[_0x7ea594(0x252)](){const _0x5f3420=_0x7ea594;this['disposeWithMe'](this[_0x5f3420(0x322)]['registerBeforeClose'](()=>{const _0x3eb6c2=_0x5f3420;if(this[_0x3eb6c2(0x2bf)]['saveTaskMap'][_0x3eb6c2(0x18e)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x7ea594(0x202)](){const _0x414e1f=_0x7ea594;let _0x436ed3=_0x50409c=>{const _0xe75172=_0x1c2b;this[_0xe75172(0xf8)](_0x42bb3c(_0x50409c['conflict$'][_0xe75172(0x1de)](_0xe6cf56=>this[_0xe75172(0x2c3)](_0xe6cf56))));};this[_0x414e1f(0x1fe)][_0x414e1f(0x2d5)]()[_0x414e1f(0x2c0)](_0x436ed3),this[_0x414e1f(0xf8)](_0x42bb3c(this[_0x414e1f(0x1fe)][_0x414e1f(0x1f3)][_0x414e1f(0x1de)](_0x436ed3)));}[_0x7ea594(0x2c3)](_0x3d29ad){const _0x1a96e5=_0x7ea594;if(!_0x3d29ad[_0x1a96e5(0x306)])return;let _0x25a8a6=zn[_0x3d29ad['reason']]??Rn;this[_0x1a96e5(0x236)]({'title':this[_0x1a96e5(0x133)]['t'](_0x25a8a6[_0x1a96e5(0x201)]),'content':this[_0x1a96e5(0x133)]['t'](_0x25a8a6[_0x1a96e5(0x1d6)]),'type':_0x25a8a6[_0x1a96e5(0x34f)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x1a96e5(0x25b)),'onClick':_0x3568a3=>{const _0x43197e=_0x1a96e5;_0x3568a3[_0x43197e(0x2c2)](),this[_0x43197e(0x127)]();}}});}[_0x7ea594(0x127)](){const _0x39b796=_0x7ea594;window[_0x39b796(0x118)][_0x39b796(0x2a3)]();}['_initEvent'](){const _0x445627=_0x7ea594;this[_0x445627(0xf8)](this[_0x445627(0x102)][_0x445627(0x1d4)]['subscribe'](_0xfa1cce=>{const _0x5107ad=_0x445627;_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x300)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015['Warning'],'content':this[_0x5107ad(0x133)]['t'](_0x5107ad(0x318))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x264)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x249)],'content':this['_localeService']['t'](_0x5107ad(0x1fc))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x203)]&&this[_0x5107ad(0x343)](),_0xfa1cce['id']===_0x1d65e1['CONFLICT_CACHE_CLEAR_FAILED']&&_0xfa1cce['unitID']&&this[_0x5107ad(0xf0)](_0xfa1cce[_0x5107ad(0x195)],_0xfa1cce['userId']??''),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x301)]&&this[_0x5107ad(0x177)]['show']({'type':_0x3a5015['Warning'],'content':this[_0x5107ad(0x133)]['t'](_0xfa1cce['data']||'')}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x1c0)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x249)],'content':this[_0x5107ad(0x133)]['t'](_0x5107ad(0x21d))}),_0xfa1cce['id']===_0x1d65e1['SOCKET_FAILED']&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x2e0)],'content':this['_localeService']['t'](_0x5107ad(0x268))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x1b2)]&&this['_messageService'][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x2e0)],'content':this['_localeService']['t'](_0x5107ad(0x241))});}));}[_0x7ea594(0x343)](){const _0x229115=_0x7ea594;this[_0x229115(0x236)]({'title':this['_localeService']['t'](_0x229115(0xf7)),'content':this[_0x229115(0x133)]['t'](_0x229115(0x227)),'type':_0x229115(0x198),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x5217c8,_0x1b0fd7){const _0x49613d=_0x7ea594;this['_replaceConflictNotification']({'title':this[_0x49613d(0x133)]['t'](_0x49613d(0xf7)),'content':this[_0x49613d(0x133)]['t'](_0x49613d(0x14a)),'type':_0x49613d(0x19d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x49613d(0x2a5)),'onClick':_0x5701d6=>{const _0x59e802=_0x49613d;_0x5701d6[_0x59e802(0x2c2)](),this['_retryConflictCacheClear'](_0x5217c8,_0x1b0fd7);}}});}[_0x7ea594(0x2d9)](_0x51b186,_0x5f2d42){const _0x26c1d9=_0x7ea594;let _0x559b8d=_0x51b186+':'+(_0x5f2d42??'');this['_retryingConflictCacheUnitIDs'][_0x26c1d9(0x2c5)](_0x559b8d)||(this[_0x26c1d9(0x340)][_0x26c1d9(0x1ce)](_0x559b8d),this['_showConflictProcessingNotification'](),this[_0x26c1d9(0x2bf)]['clearOfflineData'](_0x51b186,_0x5f2d42)[_0x26c1d9(0x35b)](()=>this[_0x26c1d9(0x127)]())[_0x26c1d9(0x193)](()=>this[_0x26c1d9(0xf0)](_0x51b186,_0x5f2d42))[_0x26c1d9(0x2ae)](()=>this[_0x26c1d9(0x340)]['delete'](_0x559b8d)));}[_0x7ea594(0x236)](_0x255a32){const _0x54c690=_0x7ea594;var _0x58bd56;(_0x58bd56=this[_0x54c690(0x2be)])==null||_0x58bd56['dispose'](),this[_0x54c690(0x2be)]=this[_0x54c690(0xde)]['show'](_0x255a32);}};Bn=X([Y(0x0,_0x3eb2d8),Y(0x1,_0x471d6f),Y(0x2,_0x5c888d(_0x603f72)),Y(0x3,_0x4953bc),Y(0x4,_0x5b6302),Y(0x5,_0x5c888d(_0x292d2f)),Y(0x6,_0x5c888d(_0x2279ca)),Y(0x7,_0x16ce58)],Bn);let Vn=class{constructor(_0x37310e,_0x473012){const _0x256cec=_0x7ea594;this['_transformService']=_0x37310e,this[_0x256cec(0x1fa)]=_0x473012;}[_0x7ea594(0x20e)](_0x4dc3e0){const _0x54e772=_0x7ea594;this[_0x54e772(0x144)](_0x4dc3e0),this[_0x54e772(0x15f)](_0x4dc3e0);}[_0x7ea594(0x168)](_0x18a28b){const _0x4eb64f=_0x7ea594;let {unitID:_0x3b89a8}=_0x18a28b,{redoCache:_0x3e0ec5}=this[_0x4eb64f(0x1fa)]['getRenderUnitById'](_0x3b89a8)[_0x4eb64f(0x263)](_0x4434b8)[_0x4eb64f(0x2ba)]();if(_0x3e0ec5[_0x4eb64f(0x121)]===0x0)return _0x18a28b;let _0x189e9d=_0x40f052[_0x4eb64f(0x2ef)](_0x18a28b['mutations'][0x0]);for(let _0x1be35c=0x0;_0x1be35c<_0x3e0ec5['length'];_0x1be35c++){let _0x395e6b={'id':_0x4eb64f(0x272),'params':{..._0x3e0ec5[_0x1be35c]}},_0xa498a3=this[_0x4eb64f(0xdf)][_0x4eb64f(0x2e4)](_0x189e9d,_0x395e6b,!0x1);if(_0x13597e(_0xa498a3))throw _0xa498a3['error'];_0x189e9d=_0xa498a3['m1Prime'];}return{..._0x40f052[_0x4eb64f(0x2ef)](_0x18a28b),'mutations':[_0x189e9d]};}[_0x7ea594(0x144)](_0x384b28){const _0x5d8f88=_0x7ea594;let {unitID:_0x26b8bc}=_0x384b28,_0x33fdcc=this[_0x5d8f88(0x1fa)][_0x5d8f88(0x30b)](_0x26b8bc)[_0x5d8f88(0x263)](_0x4434b8),{undoCache:_0xbd81e1,redoCache:_0x331baa}=_0x33fdcc['getUndoRedoMutationParamsCache']();if(_0xbd81e1[_0x5d8f88(0x121)]===0x0||_0x331baa['length']===0x0)return;let _0x5841a4=[],_0xe63e0c=[],_0x3b0c58=_0x40f052['deepClone'](_0x384b28[_0x5d8f88(0x109)][0x0]),_0xa9efbb=_0x40f052[_0x5d8f88(0x2ef)](_0x384b28[_0x5d8f88(0x109)][0x0]);for(let _0x5f3a2b=_0xbd81e1[_0x5d8f88(0x121)]-0x1;_0x5f3a2b>=0x0;_0x5f3a2b--){let _0x2325ad={'id':_0x5d8f88(0x272),'params':{..._0xbd81e1[_0x5f3a2b]}},_0x1decf0={'id':_0x5d8f88(0x272),'params':{..._0x331baa[_0x5f3a2b]}},_0x32a5f0=this[_0x5d8f88(0xdf)][_0x5d8f88(0x2e4)](_0x3b0c58,_0x2325ad,!0x1),_0x482a14=this[_0x5d8f88(0xdf)]['transformMutation'](_0xa9efbb,_0x1decf0,!0x1);if(_0x13597e(_0x32a5f0))throw _0x32a5f0[_0x5d8f88(0x19d)];if(_0x13597e(_0x482a14))throw _0x482a14[_0x5d8f88(0x19d)];_0x5841a4[_0x5d8f88(0x174)](_0x32a5f0[_0x5d8f88(0x2ad)][_0x5d8f88(0x131)]),_0xe63e0c[_0x5d8f88(0x174)](_0x482a14[_0x5d8f88(0x2ad)][_0x5d8f88(0x131)]),_0x3b0c58=_0x32a5f0[_0x5d8f88(0x27c)],_0xa9efbb=_0x482a14['m1Prime'];}_0x33fdcc[_0x5d8f88(0x282)]({'undoCache':_0x5841a4,'redoCache':_0xe63e0c});}[_0x7ea594(0x15f)](_0x3a32b8){const _0x21d8fe=_0x7ea594;let {unitID:_0x4306f4}=_0x3a32b8,_0x1d8e32=this[_0x21d8fe(0x1fa)][_0x21d8fe(0x30b)](_0x4306f4)[_0x21d8fe(0x263)](_0x4434b8),_0x5003d0=_0x1d8e32[_0x21d8fe(0x1bf)]();if(_0x5003d0==null)return;let _0x1950e8=[{'id':_0x21d8fe(0x272),'params':{'unitId':_0x3a32b8[_0x21d8fe(0x195)],'actions':null,'textRanges':[_0x5003d0]}}],_0x3664e3=this[_0x21d8fe(0xdf)][_0x21d8fe(0x33d)](_0x3a32b8,_0x1950e8);if(!_0x1db856(_0x3664e3))throw _0x3664e3[_0x21d8fe(0x19d)];let _0x4ce5e3=_0x3664e3['m2Prime'][0x0][_0x21d8fe(0x131)][_0x21d8fe(0x1cf)];Array[_0x21d8fe(0x312)](_0x4ce5e3)&&_0x4ce5e3[_0x21d8fe(0x121)]&&_0x1d8e32['setActiveRange'](_0x4ce5e3[0x0]);}};Vn=X([Y(0x0,_0x31acf5),Y(0x1,_0x23794e)],Vn);let Hn=class{constructor(_0x52c1f8,_0x1a7b65,_0x58c2f5){const _0x378016=_0x7ea594;this[_0x378016(0x140)]=_0x52c1f8,this[_0x378016(0xdf)]=_0x1a7b65,this[_0x378016(0x307)]=_0x58c2f5;}[_0x7ea594(0x29b)](_0xf12f31){const _0x68d894=_0x7ea594;this[_0x68d894(0x16b)](_0xf12f31);}['transformRemoteChangeset'](_0x210361){const _0x3ba1a5=_0x7ea594;let {unitID:_0x278d39}=_0x210361,{collaboration:_0x244c85}=this[_0x3ba1a5(0x307)][_0x3ba1a5(0x22f)](_0x278d39);if(_0x244c85[_0x3ba1a5(0x121)]===0x0)return _0x210361;let _0x311f7b=_0x40f052[_0x3ba1a5(0x2ef)](_0x210361[_0x3ba1a5(0x109)][0x0]);for(let _0x1c528a=0x0;_0x1c528a<_0x244c85[_0x3ba1a5(0x121)];_0x1c528a++){let _0x205ef1={'id':_0x3ba1a5(0x272),'params':{'unitId':_0x244c85[_0x1c528a][_0x3ba1a5(0x2ce)],..._0x244c85[_0x1c528a][_0x3ba1a5(0x14e)]}},_0x20f2b3=this[_0x3ba1a5(0xdf)]['transformMutation'](_0x311f7b,_0x205ef1,!0x1);if(_0x13597e(_0x20f2b3))throw _0x20f2b3[_0x3ba1a5(0x19d)];_0x311f7b=_0x20f2b3[_0x3ba1a5(0x27c)];}return{..._0x40f052[_0x3ba1a5(0x2ef)](_0x210361),'mutations':[_0x311f7b]};}[_0x7ea594(0x16b)](_0x14e8d1){const _0x6d91c2=_0x7ea594;let {unitID:_0x440956}=_0x14e8d1,{history:_0x2a8a36,collaboration:_0x1bcba3}=this[_0x6d91c2(0x307)][_0x6d91c2(0x22f)](_0x440956);if(_0x2a8a36[_0x6d91c2(0x121)]===0x0&&_0x1bcba3['length']===0x0)return;let _0x56e43e=[],_0x4b2adb=[],_0x5a5fdc=_0x40f052[_0x6d91c2(0x2ef)](_0x14e8d1[_0x6d91c2(0x109)][0x0]),_0x87eb35=_0x40f052[_0x6d91c2(0x2ef)](_0x14e8d1[_0x6d91c2(0x109)][0x0]);for(let _0x19870a=_0x2a8a36['length']-0x1;_0x19870a>=0x0;_0x19870a--){let _0x3686ee={'id':_0x6d91c2(0x272),'params':{'unitId':_0x2a8a36[_0x19870a]['unitId'],..._0x2a8a36[_0x19870a][_0x6d91c2(0x1ba)]}},_0x3f3fab={'id':_0x6d91c2(0x272),'params':{'unitId':_0x2a8a36[_0x19870a][_0x6d91c2(0x2ce)],..._0x2a8a36[_0x19870a][_0x6d91c2(0x14e)]}},_0x33fbf8=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x5a5fdc,_0x3686ee,!0x1),_0x5206eb=this['_transformService'][_0x6d91c2(0x2e4)](_0x87eb35,_0x3f3fab,!0x1);if(_0x13597e(_0x33fbf8))throw _0x33fbf8[_0x6d91c2(0x19d)];if(_0x13597e(_0x5206eb))throw _0x5206eb['error'];_0x56e43e[_0x6d91c2(0x174)]({..._0x2a8a36[_0x19870a],'undoState':_0x33fbf8[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)],'redoState':_0x5206eb[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)]}),_0x5a5fdc=_0x33fbf8['m1Prime'],_0x87eb35=_0x5206eb[_0x6d91c2(0x27c)];}_0x5a5fdc=_0x40f052['deepClone'](_0x14e8d1['mutations'][0x0]),_0x87eb35=_0x40f052['deepClone'](_0x14e8d1[_0x6d91c2(0x109)][0x0]);for(let _0x2c8869=_0x1bcba3[_0x6d91c2(0x121)]-0x1;_0x2c8869>=0x0;_0x2c8869--){let _0x57c3ef={'id':_0x6d91c2(0x272),'params':{'unitId':_0x1bcba3[_0x2c8869][_0x6d91c2(0x2ce)],..._0x1bcba3[_0x2c8869][_0x6d91c2(0x1ba)]}},_0x3ea2b9={'id':_0x6d91c2(0x272),'params':{'unitId':_0x1bcba3[_0x2c8869]['unitId'],..._0x1bcba3[_0x2c8869][_0x6d91c2(0x14e)]}},_0x5b5755=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x5a5fdc,_0x57c3ef,!0x1),_0x1d40bf=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x87eb35,_0x3ea2b9,!0x1);if(_0x13597e(_0x5b5755))throw _0x5b5755[_0x6d91c2(0x19d)];if(_0x13597e(_0x1d40bf))throw _0x1d40bf[_0x6d91c2(0x19d)];_0x4b2adb[_0x6d91c2(0x174)]({..._0x1bcba3[_0x2c8869],'undoState':_0x5b5755[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)],'redoState':_0x1d40bf[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)]}),_0x5a5fdc=_0x5b5755[_0x6d91c2(0x27c)],_0x87eb35=_0x1d40bf[_0x6d91c2(0x27c)];}this[_0x6d91c2(0x307)][_0x6d91c2(0x1f7)](_0x440956,{'history':_0x56e43e,'collaboration':_0x4b2adb});}};Hn=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x31acf5),Y(0x2,_0x5c888d(_0x2f70c8))],Hn);let Un=class{constructor(_0x1ce080,_0x3339c9){const _0x1c0de1=_0x7ea594;this['_docSelectionManagerService']=_0x1ce080,this[_0x1c0de1(0xdf)]=_0x3339c9;}['prepareTransformSelections'](_0x78f7bf){const _0x27bc4b=_0x7ea594;var _0x42795c;let _0xffcb60=this[_0x27bc4b(0x22e)][_0x27bc4b(0x158)]()??[],_0x303c1f=this[_0x27bc4b(0x22e)][_0x27bc4b(0x211)]();if(_0xffcb60[_0x27bc4b(0x121)]===0x0||_0x303c1f==null)return null;let _0x316d05=_0x78f7bf['unitID'],_0x2c602a=[{'id':_0x27bc4b(0x272),'params':{'unitId':_0x316d05,'actions':null,'textRanges':_0xffcb60}}],_0x33fbf5=this[_0x27bc4b(0xdf)]['transformMutationsWithChangeset'](_0x78f7bf,_0x2c602a);if(!_0x1db856(_0x33fbf5))throw _0x33fbf5['error'];let _0x5388f5=(_0x42795c=_0x33fbf5['m2Prime'][0x0])==null?void 0x0:_0x42795c[_0x27bc4b(0x131)],_0x122736=_0x5388f5&&typeof _0x5388f5==_0x27bc4b(0x2d7)&&_0x27bc4b(0x1cf)in _0x5388f5?_0x5388f5[_0x27bc4b(0x1cf)]:null;if(!Kn(_0x122736))return null;let _0x409aeb=Wn(_0x78f7bf[_0x27bc4b(0x109)]['some'](_0x2de093=>qn(_0x2de093[_0x27bc4b(0x131)]))?_0x122736[_0x27bc4b(0x331)](_0x2b2975=>!(_0x27bc4b(0x303)in _0x2b2975)):_0x122736,{..._0x303c1f,'options':_0x303c1f['options']?{..._0x303c1f[_0x27bc4b(0x10e)],'wholeDocument':!0x1}:void 0x0}),_0x2d0c83={'unitId':_0x316d05,'subUnitId':_0x316d05};this['_docSelectionManagerService'][_0x27bc4b(0x29a)](_0x409aeb,_0x2d0c83);let _0x2e36f5=!0x0;return{'commit':()=>{_0x2e36f5=!0x1;},'rollback':()=>{const _0x39dba2=_0x27bc4b;_0x2e36f5&&(_0x2e36f5=!0x1,this[_0x39dba2(0x22e)]['replaceSelectionInfoWithoutRefresh'](_0x303c1f,_0x2d0c83));}};}};Un=X([Y(0x0,_0x5c888d(_0x291a40)),Y(0x1,_0x31acf5)],Un);function Wn(_0x2089cf,_0x2ea3f1){const _0x5e4d91=_0x7ea594;let _0x38cf51=[],_0x535343=[];for(let _0x346a93 of _0x2089cf)Gn(_0x346a93)?_0x535343[_0x5e4d91(0x2da)](_0x346a93):_0x38cf51['push'](_0x346a93);return{..._0x2ea3f1,'textRanges':_0x38cf51,'rectRanges':_0x535343};}function Gn(_0x59788c){return'tableId'in _0x59788c;}function Kn(_0x582dda){const _0x137b82=_0x7ea594;return Array[_0x137b82(0x312)](_0x582dda)&&_0x582dda['every'](_0x234e9c=>typeof _0x234e9c==_0x137b82(0x2d7)&&!!_0x234e9c&&'startOffset'in _0x234e9c&&_0x137b82(0x2ff)in _0x234e9c);}function qn(_0x1ba31e){const _0x518faf=_0x7ea594;return _0x1ba31e==='tableSource'?!0x0:Array[_0x518faf(0x312)](_0x1ba31e)?_0x1ba31e[_0x518faf(0x2f8)](_0xff24e6=>qn(_0xff24e6)):!_0x1ba31e||typeof _0x1ba31e!=_0x518faf(0x2d7)?!0x1:Object[_0x518faf(0x163)](_0x1ba31e)['some'](_0x3b08d8=>qn(_0x3b08d8));}let Jn=class extends _0x2c43e7{constructor(_0x1e30d8,_0x49186b,_0x3e76c1,_0x3f1ee8,_0x37dbfe,_0x4db7f3,_0x45eb84){const _0x4a0b30=_0x7ea594;super(),this['_collaborationController']=_0x1e30d8,this[_0x4a0b30(0x192)]=_0x49186b,this[_0x4a0b30(0x2db)]=_0x3e76c1,this[_0x4a0b30(0xfd)]=_0x3f1ee8,this[_0x4a0b30(0x215)]=_0x37dbfe,this['_messageService']=_0x4db7f3,this[_0x4a0b30(0x133)]=_0x45eb84,J(this,_0x4a0b30(0x119),new _0x5a8e6e(_0x65ab9a[_0x4a0b30(0x289)])),this[_0x4a0b30(0x11c)]();}[_0x7ea594(0x11c)](){const _0x20c511=_0x7ea594;this[_0x20c511(0xf8)](this[_0x20c511(0x1fe)][_0x20c511(0x1f3)]['subscribe'](_0x388eba=>{const _0x2271ab=_0x20c511;_0x388eba instanceof _0x1f1988&&_0x388eba[_0x2271ab(0x128)]({'onTransformIME':_0x4af2d2=>this[_0x2271ab(0x192)][_0x2271ab(0x20e)](_0x4af2d2),'onTransformState':_0x49d25c=>this[_0x2271ab(0x2db)]['transformStateCache'](_0x49d25c),'onPrepareTransformSelections':_0x50836b=>this[_0x2271ab(0xfd)][_0x2271ab(0x284)](_0x50836b),'onSyncEditingCollabCursor':_0xcbd3a9=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0xcbd3a9),'onTransformRemoteChangesetByIMECache':_0x430567=>this['_docTransformIMECacheService'][_0x2271ab(0x168)](_0x430567),'onTransformRemoteChangesetByStateCache':_0x14fa75=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x14fa75)});}));}};Jn=X([Y(0x0,_0x5c888d(_0x2279ca)),Y(0x1,_0x5c888d(Vn)),Y(0x2,_0x5c888d(Hn)),Y(0x3,_0x5c888d(Un)),Y(0x4,_0x5c888d(gn)),Y(0x5,_0x4953bc),Y(0x6,_0x5c888d(_0x292d2f))],Jn);let Yn=class extends _0x2c43e7{constructor(_0x2c6411,_0x5c3f2f,_0x54b7bd,_0x142cbc){const _0x58a20b=_0x7ea594;super(),this[_0x58a20b(0x140)]=_0x2c6411,this['_httpService']=_0x5c3f2f,this['_logService']=_0x54b7bd,this[_0x58a20b(0x15c)]=_0x142cbc,J(this,_0x58a20b(0x34d),void 0x0),this[_0x58a20b(0x191)]();}[_0x7ea594(0x191)](){const _0x35afc6=_0x7ea594;this[_0x35afc6(0x2bc)](),this[_0x35afc6(0x317)](),this[_0x35afc6(0x242)](),this[_0x35afc6(0x2c1)]();}[_0x7ea594(0x2c1)](){const _0x541f6a=_0x7ea594;this[_0x541f6a(0xf8)](this['_collaborationSessionService'][_0x541f6a(0x213)][_0x541f6a(0x1de)](_0x208493=>{const _0x5697c0=_0x541f6a;this[_0x5697c0(0x34d)]=_0x208493==null?void 0x0:_0x208493[_0x5697c0(0x35a)];}));}[_0x7ea594(0x2bc)](){const _0x4bc1fa=_0x7ea594;let _0x41500e=_0x2ab36e=>{const _0x1cc5d5=_0x1c2b;var _0x2db7af;this[_0x1cc5d5(0x2bb)](_0x1cc5d5(0x19d),_0x1cc5d5(0x339)+_0x2ab36e[_0x1cc5d5(0x108)]+_0x1cc5d5(0xea)+_0x2ab36e[_0x1cc5d5(0x1f8)]+':'+_0x2ab36e[_0x1cc5d5(0x1e4)]+':'+_0x2ab36e[_0x1cc5d5(0x2df)]+'\x0a'+(((_0x2db7af=_0x2ab36e['error'])==null?void 0x0:_0x2db7af[_0x1cc5d5(0x2d4)])||''));};window['addEventListener'](_0x4bc1fa(0x19d),_0x41500e),this['disposeWithMe'](()=>{const _0x4fa91d=_0x4bc1fa;window[_0x4fa91d(0x2b3)]('error',_0x41500e);});}[_0x7ea594(0x317)](){const _0x362118=_0x7ea594;let _0x2500ac=_0x1e5249=>{const _0x2a61bd=_0x1c2b;this[_0x2a61bd(0x2bb)](_0x2a61bd(0x19d),_0x2a61bd(0x30e)+_0x1e5249[_0x2a61bd(0x12e)]);};window[_0x362118(0x1d2)]('unhandledrejection',_0x2500ac),this[_0x362118(0xf8)](()=>{const _0x2722b0=_0x362118;window[_0x2722b0(0x2b3)](_0x2722b0(0x230),_0x2500ac);});}[_0x7ea594(0x242)](){const _0x137ecf=_0x7ea594;let _0x2c3c17=this[_0x137ecf(0xec)]['error'][_0x137ecf(0x28d)](this['_logService']);this[_0x137ecf(0xec)][_0x137ecf(0x19d)]=(..._0x5b6b94)=>{const _0x24995d=_0x137ecf;let _0x10212d=_0x5b6b94[_0x24995d(0x171)](_0x41816f=>_0x41816f instanceof Error?_0x41816f['message']+'\x0a'+_0x41816f[_0x24995d(0x2d4)]:String(_0x41816f))[_0x24995d(0x328)]('\x20');this[_0x24995d(0x2bb)]('error',_0x24995d(0x261)+_0x10212d),_0x2c3c17(..._0x5b6b94);},this['disposeWithMe'](()=>{const _0x1c823c=_0x137ecf;this[_0x1c823c(0xec)][_0x1c823c(0x19d)]=_0x2c3c17;});}['_uploadLog'](_0x4cc43e,_0x55f15a){const _0x4368e8=_0x7ea594;try{let _0xa657e={'userId':this[_0x4368e8(0x34d)],'logLabel':_0x4cc43e,'content':_0x55f15a};this[_0x4368e8(0x297)][_0x4368e8(0x13e)](_0x4368e8(0x292),{'body':_0xa657e})[_0x4368e8(0x193)](()=>{});}catch{}}};Yn=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x1984c9),Y(0x3,_0x5c888d(_0x25de4e))],Yn);function Xn({state$:_0x3a47c1}){const _0x25bb5c=_0x7ea594;let _0x2461e3=_0x6ada4b(_0x3a47c1,null,!0x0);return _0x2461e3?_0x3c0327(_0x25bb5c(0x103),{'data-u-comp':_0x25bb5c(0x124),'role':'alert','className':_0x25bb5c(0x106),'children':[_0x57ef67(_0x240f13,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x57ef67('span',{'children':_0x2461e3[_0x25bb5c(0x1d6)]}),_0x57ef67(_0x301aac,{'size':_0x25bb5c(0x2c9),'variant':_0x25bb5c(0x135),'onClick':()=>window[_0x25bb5c(0x118)]['reload'](),'children':_0x2461e3[_0x25bb5c(0x1dc)]})]}):null;}const Zn=_0x7ea594(0x141);let Qn=class extends _0x2c43e7{constructor(_0x467659,_0x5a76fa,_0x3a71f2,_0xa77185,_0x1e70bd){const _0x500e6f=_0x7ea594;super(),this[_0x500e6f(0x22c)]=_0x467659,this[_0x500e6f(0x177)]=_0x5a76fa,this[_0x500e6f(0x133)]=_0x3a71f2,this['_injector']=_0xa77185,J(this,_0x500e6f(0xda),new _0x5a8e6e(null)),J(this,'_messageIds',new Set()),J(this,_0x500e6f(0x2dc),new Map()),J(this,_0x500e6f(0x326),this[_0x500e6f(0xda)]['asObservable']());let _0x40180=()=>_0x2317a2(Xn,{'state$':this[_0x500e6f(0x326)]});this[_0x500e6f(0xf8)](_0x1e70bd['registerComponent'](_0x44eea7['GLOBAL'],()=>_0x1ca99d(_0x40180,this[_0x500e6f(0x140)]))),this[_0x500e6f(0xf8)](this['_snapshotLoadingService']['state$'][_0x500e6f(0x1de)](_0x9e017f=>{const _0x1a36cd=_0x500e6f;_0x9e017f[_0x1a36cd(0x2c0)](_0x445dcd=>this['_updateMessage'](_0x445dcd));}));}[_0x7ea594(0x2f1)](){const _0x30efe3=_0x7ea594;this[_0x30efe3(0x23c)][_0x30efe3(0x2c0)](_0x48b812=>this[_0x30efe3(0x177)][_0x30efe3(0x347)](_0x48b812)),this['_messageIds'][_0x30efe3(0x221)](),this[_0x30efe3(0x2dc)][_0x30efe3(0x2c0)](({timeoutId:_0x17fd1b})=>clearTimeout(_0x17fd1b)),this[_0x30efe3(0x2dc)][_0x30efe3(0x221)](),this[_0x30efe3(0xda)]['complete'](),super[_0x30efe3(0x2f1)]();}['_updateMessage'](_0x1bd98e){const _0x2c6cdd=_0x7ea594;let _0x1f6a13=''+Zn+_0x1bd98e['unitId'];_0x1bd98e[_0x2c6cdd(0x137)]===_0x2f9ccc[_0x2c6cdd(0x1c7)]?(this[_0x2c6cdd(0x229)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this[_0x2c6cdd(0xe6)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this['_messageService']['remove'](_0x1f6a13),this[_0x2c6cdd(0x23c)][_0x2c6cdd(0x182)](_0x1f6a13)):_0x1bd98e['stage']===_0x2f9ccc[_0x2c6cdd(0x31c)]?(this['_clearBlockProgressWatch'](_0x1bd98e['unitId']),this[_0x2c6cdd(0xe6)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this[_0x2c6cdd(0x177)]['show']({'id':_0x1f6a13,'type':_0x3a5015[_0x2c6cdd(0x2e0)],'content':this[_0x2c6cdd(0x133)]['t'](_0x2c6cdd(0x268))}),this[_0x2c6cdd(0x23c)]['delete'](_0x1f6a13)):_0x1bd98e[_0x2c6cdd(0x137)]!==_0x2f9ccc['LOADING_BLOCKS']||_0x1bd98e[_0x2c6cdd(0x232)]<=0xa?(this[_0x2c6cdd(0x229)](_0x1bd98e['unitId']),this['_messageService'][_0x2c6cdd(0x347)](_0x1f6a13),this[_0x2c6cdd(0x23c)]['delete'](_0x1f6a13)):this['_watchBlockProgress'](_0x1bd98e)||(this[_0x2c6cdd(0x177)][_0x2c6cdd(0x1f0)]({'id':_0x1f6a13,'type':_0x3a5015[_0x2c6cdd(0x1be)],'duration':0x1/0x0,'content':this[_0x2c6cdd(0x133)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x1bd98e[_0x2c6cdd(0x1e3)]+'/'+_0x1bd98e[_0x2c6cdd(0x232)]}),this[_0x2c6cdd(0x23c)][_0x2c6cdd(0x1ce)](_0x1f6a13));}[_0x7ea594(0x1db)](_0x2d986f){const _0x30994d=_0x7ea594;let _0x2bd4d7=this[_0x30994d(0x2dc)][_0x30994d(0x161)](_0x2d986f['unitId']);if((_0x2bd4d7==null?void 0x0:_0x2bd4d7[_0x30994d(0x1e3)])===_0x2d986f[_0x30994d(0x1e3)])return _0x2bd4d7[_0x30994d(0x152)];this['_clearBlockProgressWatch'](_0x2d986f[_0x30994d(0x2ce)]);let _0x5e3c94=setTimeout(()=>{const _0x38dd9d=_0x30994d;let _0x3283c8=this[_0x38dd9d(0x2dc)][_0x38dd9d(0x161)](_0x2d986f[_0x38dd9d(0x2ce)]);if(!_0x3283c8||_0x3283c8['timeoutId']!==_0x5e3c94)return;_0x3283c8[_0x38dd9d(0x152)]=!0x0;let _0x24b997=''+Zn+_0x2d986f['unitId'];this[_0x38dd9d(0x177)][_0x38dd9d(0x347)](_0x24b997),this['_messageIds'][_0x38dd9d(0x182)](_0x24b997),this[_0x38dd9d(0xda)][_0x38dd9d(0x136)]({'unitId':_0x2d986f[_0x38dd9d(0x2ce)],'content':this[_0x38dd9d(0x133)]['t'](_0x38dd9d(0x1a1),String(_0x2d986f['loadedBlocks']),String(_0x2d986f[_0x38dd9d(0x232)])),'refreshLabel':this[_0x38dd9d(0x133)]['t'](_0x38dd9d(0x25b))});},0xea60);return this['_blockProgressWatches'][_0x30994d(0x164)](_0x2d986f['unitId'],{'loadedBlocks':_0x2d986f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x5e3c94}),!0x1;}[_0x7ea594(0x229)](_0x10c29c){const _0x22e147=_0x7ea594;let _0x324d14=this[_0x22e147(0x2dc)][_0x22e147(0x161)](_0x10c29c);_0x324d14&&(clearTimeout(_0x324d14[_0x22e147(0x26e)]),this[_0x22e147(0x2dc)][_0x22e147(0x182)](_0x10c29c),this[_0x22e147(0xe6)](_0x10c29c));}['_clearTimeoutState'](_0x57038a){const _0x15a015=_0x7ea594;var _0x7bbdd0;((_0x7bbdd0=this[_0x15a015(0xda)][_0x15a015(0x357)])==null?void 0x0:_0x7bbdd0['unitId'])===_0x57038a&&this[_0x15a015(0xda)][_0x15a015(0x136)](null);}};Qn=X([Y(0x0,_0x5c888d(_0x18f5c1)),Y(0x1,_0x4953bc),Y(0x2,_0x5c888d(_0x292d2f)),Y(0x3,_0x5c888d(_0x451f97)),Y(0x4,_0x8a5b3a)],Qn);let $n=class extends _0x2c43e7{constructor(_0x1c3563,_0x7c8fc8,_0x38458f,_0x4bbea6,_0x482919){const _0x2c9f29=_0x7ea594;var _0x56a00a;super(),this[_0x2c9f29(0x113)]=_0x1c3563,this[_0x2c9f29(0x1ac)]=_0x7c8fc8,this[_0x2c9f29(0x218)]=_0x38458f,this[_0x2c9f29(0xec)]=_0x4bbea6,this[_0x2c9f29(0x155)]=_0x482919,J(this,_0x2c9f29(0x149),new Map()),J(this,_0x2c9f29(0x1f6),new Map()),J(this,_0x2c9f29(0x262),new Map()),J(this,'_disabled',!0x1),this[_0x2c9f29(0x320)]=!((_0x56a00a=this['_configService']['getConfig'](_0x14ffae))!=null&&_0x56a00a[_0x2c9f29(0x11a)]);}['disableLocalCache'](){const _0x28c4ec=_0x7ea594;this[_0x28c4ec(0x320)]=!0x0;}[_0x7ea594(0x1e5)](){this['_disabled']=!0x1;}get[_0x7ea594(0x1a9)](){const _0xcf5a2a=_0x7ea594;let _0x310ec9=new Map(this[_0xcf5a2a(0x1f6)]);return this[_0xcf5a2a(0x262)][_0xcf5a2a(0x2c0)]((_0x4ebb53,_0x335b8b)=>{const _0x3fd1d5=_0xcf5a2a;_0x310ec9[_0x3fd1d5(0x2c5)](_0x335b8b)||_0x310ec9[_0x3fd1d5(0x164)](_0x335b8b,0x0);}),_0x310ec9;}[_0x7ea594(0x2f1)](){const _0x788f87=_0x7ea594;this['_disposed']||(super['dispose'](),this[_0x788f87(0x320)]=!0x0,this['exhaustSavingTask']()[_0x788f87(0x193)](_0x2e6441=>this[_0x788f87(0xec)]['error'](_0x2e6441)));}async['loadOfflineData'](_0x12bd53,_0x2b6447){const _0x2e3e37=_0x7ea594;if(this[_0x2e3e37(0x320)])return null;let _0x2af989=this['_getUserId'](_0x2b6447),_0x1e5837=await this[_0x2e3e37(0x1ac)][_0x2e3e37(0xf4)](_0x156238(_0x12bd53,_0x2af989));return(_0x1e5837==null?void 0x0:_0x1e5837[_0x2e3e37(0x195)])===_0x12bd53&&this['_normalizeUserId'](_0x1e5837[_0x2e3e37(0x15b)])===_0x2af989?_0x1e5837:null;}async[_0x7ea594(0x28e)](_0x1d39f1,_0x479fbe,_0x569123){const _0x3bc105=_0x7ea594;let _0x185c9e=this[_0x3bc105(0x1b1)](_0x569123),_0x31a736=_0x156238(_0x1d39f1,_0x185c9e),_0x398bd8=this[_0x3bc105(0x1ac)][_0x3bc105(0x1ed)](_0x31a736,{..._0x479fbe,'unitID':_0x1d39f1,'userId':_0x185c9e});return this[_0x3bc105(0x27f)](_0x31a736,_0x398bd8),!!await _0x398bd8;}async[_0x7ea594(0x130)](_0x5c0175,_0x39f87c,_0x46f45f){const _0x344825=_0x7ea594;let _0x275ef5=this[_0x344825(0x1b1)](_0x46f45f),_0x290533=_0x156238(_0x5c0175,_0x275ef5),_0x50284d=this[_0x344825(0x149)][_0x344825(0x161)](_0x290533)??await this[_0x344825(0x1ac)][_0x344825(0xf4)](_0x290533);if(!_0x50284d||this['_normalizeUserId'](_0x50284d['userId'])!==_0x275ef5||_0x50284d[_0x344825(0x195)]!==_0x5c0175)return;let _0x1a22f3=Date['now'](),_0x5f4a31=new Date(_0x1a22f3)[_0x344825(0x1d8)]();await this[_0x344825(0x1ac)][_0x344825(0x1ed)](_0x290533+_0x344825(0x24b)+_0x1a22f3,{'reason':_0x39f87c,'createdAt':_0x5f4a31,'data':_0x50284d});}async['clearOfflineData'](_0x325bb5,_0x2ab33c){const _0x4b94a7=_0x7ea594;let _0x522f5b=this[_0x4b94a7(0x1b1)](_0x2ab33c),_0xfd0e4c=_0x156238(_0x325bb5,_0x522f5b),_0x467c0f=this[_0x4b94a7(0x1f6)]['get'](_0xfd0e4c);_0x467c0f!==void 0x0&&(window[_0x4b94a7(0x29c)](_0x467c0f),this[_0x4b94a7(0x1f6)][_0x4b94a7(0x182)](_0xfd0e4c));let _0x3d6f83=this[_0x4b94a7(0x262)][_0x4b94a7(0x161)](_0xfd0e4c);_0x3d6f83&&await Promise[_0x4b94a7(0x1fd)](_0x3d6f83),this[_0x4b94a7(0x149)][_0x4b94a7(0x182)](_0xfd0e4c),await this['_localStorageService'][_0x4b94a7(0x16f)](_0xfd0e4c);}[_0x7ea594(0x316)](_0x58c58a,_0x4012d0,_0x5c4b1f,_0xd813d2,_0x156c21){const _0x196fd9=_0x7ea594;if(this[_0x196fd9(0x169)])return;let _0x13a428=this['_getUserId'](_0x156c21),_0x4cf938=_0x156238(_0x58c58a,_0x13a428),_0xd78f18=this[_0x196fd9(0x218)][_0x196fd9(0x18d)](_0x58c58a);this[_0x196fd9(0x149)][_0x196fd9(0x164)](_0x4cf938,{'unitID':_0x58c58a,'userId':_0x13a428,'type':_0x4012d0,'awaitingChangeset':_0x5c4b1f,'mutations':_0xd813d2,'rev':_0xd78f18}),this['_saveTaskMap'][_0x196fd9(0x2c5)](_0x4cf938)||this[_0x196fd9(0x154)](_0x4cf938);}[_0x7ea594(0x1b1)](_0x47f94f=((()=>{const _0xcdafba=_0x7ea594;var _0x506f65;return(_0x506f65=this[_0xcdafba(0x155)]['getCurrentUser']())==null?void 0x0:_0x506f65[_0xcdafba(0x105)];})())){const _0x2ac8e4=_0x7ea594;return this[_0x2ac8e4(0x2af)](_0x47f94f);}[_0x7ea594(0x2af)](_0x3f98ee){return _0x3f98ee===''||_0x3f98ee==null?void 0x0:_0x3f98ee;}[_0x7ea594(0x154)](_0x433c84){const _0x47281a=_0x7ea594;let _0x18cb64=this[_0x47281a(0x2b8)]();_0x18cb64===0x0?this['_saveCache'](_0x433c84)[_0x47281a(0x193)](_0x212039=>this['_logService'][_0x47281a(0x19d)](_0x212039)):this[_0x47281a(0x1f6)]['set'](_0x433c84,window[_0x47281a(0x2b7)](()=>{const _0x1405ee=_0x47281a;this[_0x1405ee(0x104)](_0x433c84)[_0x1405ee(0x193)](_0x4ad24d=>this['_logService'][_0x1405ee(0x19d)](_0x4ad24d));},_0x18cb64));}[_0x7ea594(0x2b8)](){const _0x2b97e8=_0x7ea594;return this['_configService'][_0x2b97e8(0x25a)](_0x78a9c6)??_0x4cb928;}[_0x7ea594(0x104)](_0x59ac9d){const _0x1037a2=_0x7ea594;let _0x568fd9=this['_saveTaskMap']['get'](_0x59ac9d);_0x568fd9!==void 0x0&&window[_0x1037a2(0x29c)](_0x568fd9);let _0x413c97=this['_cachedData'][_0x1037a2(0x161)](_0x59ac9d);if(!_0x413c97)return Promise[_0x1037a2(0x258)]();let _0x13379a=this['_activeSaveTaskMap'][_0x1037a2(0x161)](_0x59ac9d),_0x5c4308=Promise[_0x1037a2(0x1fd)](_0x13379a?[..._0x13379a]:[])[_0x1037a2(0x35b)](()=>this[_0x1037a2(0x1ac)][_0x1037a2(0x1ed)](_0x59ac9d,_0x413c97))[_0x1037a2(0x35b)](()=>{const _0x35bdba=_0x1037a2;_0x568fd9!==void 0x0&&this[_0x35bdba(0x1f6)][_0x35bdba(0x161)](_0x59ac9d)===_0x568fd9&&(this['_saveTaskMap'][_0x35bdba(0x182)](_0x59ac9d),!this[_0x35bdba(0x169)]&&this['_cachedData']['get'](_0x59ac9d)!==_0x413c97&&this['_scheduleSaving'](_0x59ac9d));});return this[_0x1037a2(0x27f)](_0x59ac9d,_0x5c4308),_0x5c4308;}[_0x7ea594(0x27f)](_0xd0e68a,_0x235558){const _0x1c2e11=_0x7ea594;let _0x1e5206=this[_0x1c2e11(0x262)][_0x1c2e11(0x161)](_0xd0e68a);_0x1e5206||(_0x1e5206=new Set(),this[_0x1c2e11(0x262)][_0x1c2e11(0x164)](_0xd0e68a,_0x1e5206)),_0x1e5206[_0x1c2e11(0x1ce)](_0x235558);let _0x5766b1=()=>{const _0x531f2f=_0x1c2e11;_0x1e5206[_0x531f2f(0x182)](_0x235558),_0x1e5206[_0x531f2f(0x18e)]===0x0&&this[_0x531f2f(0x262)]['delete'](_0xd0e68a);};_0x235558[_0x1c2e11(0x35b)](_0x5766b1,_0x5766b1);}async[_0x7ea594(0x2a9)](){const _0x4c6941=_0x7ea594;let _0x2377c5=[...this[_0x4c6941(0x1f6)]['keys']()][_0x4c6941(0x171)](_0x1e929c=>this['_saveCache'](_0x1e929c));for(let _0x5e4af2 of this[_0x4c6941(0x262)][_0x4c6941(0x163)]())_0x2377c5[_0x4c6941(0x2da)](...[..._0x5e4af2][_0x4c6941(0x171)](_0x5187c4=>_0x5187c4[_0x4c6941(0x35b)](()=>void 0x0)));await Promise[_0x4c6941(0xd9)](_0x2377c5);}};$n=X([Y(0x0,_0x16ce58),Y(0x1,_0x16f020),Y(0x2,_0x5c888d(_0x19bbc1)),Y(0x3,_0x1984c9),Y(0x4,_0x5c888d(_0x3c2aea))],$n);var er=class extends _0x2c43e7{get[_0x7ea594(0xe8)](){const _0x8796a6=_0x7ea594;return this[_0x8796a6(0x255)][_0x8796a6(0x13a)]();}constructor(){const _0x1132dd=_0x7ea594;super(),J(this,_0x1132dd(0x255),new _0x5a8e6e(navigator['onLine'])),J(this,'online$',this[_0x1132dd(0x255)][_0x1132dd(0xe4)]()),this[_0x1132dd(0x25d)](),this[_0x1132dd(0x20b)]();}[_0x7ea594(0x2f1)](){const _0x286f8e=_0x7ea594;super['dispose'](),this[_0x286f8e(0x255)][_0x286f8e(0x278)]();}[_0x7ea594(0x20b)](){const _0x1758f0=_0x7ea594;this['disposeWithMe'](_0x28759e(_0x53faeb(window,_0x1758f0(0xe8)),_0x53faeb(document,_0x1758f0(0x281)),_0x53faeb(window,_0x1758f0(0x27d)),_0x53faeb(document,'visibilitychange')[_0x1758f0(0x1d5)](_0x31e6a5(()=>document['visibilityState']===_0x1758f0(0x19b)),_0x399a72(_0x403623=>_0x403623)))[_0x1758f0(0x1d5)](_0x399a72(()=>navigator[_0x1758f0(0x17d)]))[_0x1758f0(0x1de)](()=>this[_0x1758f0(0x255)]['next'](!0x0)));}['_listenToOfflineEvent'](){const _0x3b52b0=_0x7ea594;this['disposeWithMe'](_0x28759e(_0x53faeb(window,'offline'),_0x53faeb(document,_0x3b52b0(0x2fd)))[_0x3b52b0(0x1de)](()=>this[_0x3b52b0(0x255)]['next'](!0x1)));}};let $=class extends _0x36cdce{constructor(_0x2a09a4=un,_0x4e98aa,_0x50dbeb,_0x2bc342,_0x1f7ccc){const _0x1a9b04=_0x7ea594;super(),this[_0x1a9b04(0x15e)]=_0x2a09a4,this[_0x1a9b04(0x1fa)]=_0x4e98aa,this[_0x1a9b04(0x140)]=_0x50dbeb,this[_0x1a9b04(0x113)]=_0x2bc342,this[_0x1a9b04(0x1c1)]=_0x1f7ccc;let {..._0x462100}=_0x54b9e6({},un,this[_0x1a9b04(0x15e)]);this[_0x1a9b04(0x113)][_0x1a9b04(0x2e8)](_0x1a9b04(0x295),_0x462100);}[_0x7ea594(0x1c9)](){const _0x8ffc7c=_0x7ea594;this[_0x8ffc7c(0x28a)](),this[_0x8ffc7c(0xf8)](this['_commandService'][_0x8ffc7c(0x2b4)](ln)),this[_0x8ffc7c(0x150)]();}[_0x7ea594(0x31a)](){const _0x2dafe6=_0x7ea594;this[_0x2dafe6(0x111)]();}['_registerDependencies'](){const _0x202299=_0x7ea594;var _0x6dac2b;let _0x161fce=[[pn],[_0x1ae3e2,{'useClass':_0x29894e}],[_0x471d6f,{'useClass':$n}],[_0x2ae2cd,{'useClass':er}],[Z],[Bn],[Q],[In],[Qn]];this[_0x202299(0x15e)]['enableDocumentCollaborationUI']!==!0x1&&_0x161fce[_0x202299(0x2da)]([Un],[Vn],[Hn],[gn],[Jn],[dn]),this[_0x202299(0x15e)][_0x202299(0x244)]&&_0x161fce[_0x202299(0x2da)]([Yn]),_0x1d9129(this[_0x202299(0x140)],_0x9b1a78(_0x161fce,(_0x6dac2b=this[_0x202299(0x15e)])==null?void 0x0:_0x6dac2b[_0x202299(0x30f)]));}[_0x7ea594(0x111)](){const _0x253224=_0x7ea594;this['_config'][_0x253224(0x23b)]!==!0x1&&this['disposeWithMe'](this[_0x253224(0x1fa)][_0x253224(0x1d7)](_0x51081c[_0x253224(0x251)],[En])),this['disposeWithMe'](this[_0x253224(0x1fa)][_0x253224(0x1d7)](_0x51081c['UNIVER_SHEET'],[On]));}['_initDependencies'](){const _0x23c748=_0x7ea594;_0x58d44e(this[_0x23c748(0x140)],[[Q],[In],[Z],[Bn],[Qn]]),this['_config'][_0x23c748(0x23b)]!==!0x1&&_0x58d44e(this[_0x23c748(0x140)],[[Jn],[dn]]),this['_config'][_0x23c748(0x244)]&&_0x58d44e(this[_0x23c748(0x140)],[[Yn]]);}};J($,_0x7ea594(0x146),_0x7ea594(0x204)),J($,_0x7ea594(0x24c),sn),J($,_0x7ea594(0x345),cn),$=X([_0x1bc7be(_0x333558,_0x52e451,_0x4540ab,_0x176c33,_0x24cbc8,_0x1d9f35,_0x512565),Y(0x1,_0x23794e),Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x16ce58),Y(0x4,_0x15fe51)],$);let tr=class extends _0x325a9e{constructor(_0x1242cd,_0x3e9153,_0x5d983e,_0xf964ec,_0x20202e){const _0x15f7a8=_0x7ea594;super(_0x1242cd,_0x3e9153,_0x5d983e,_0xf964ec,_0x20202e),J(this,_0x15f7a8(0x32f),new _0x83a48d()),this['disposeWithMe'](()=>{const _0x1d308d=_0x15f7a8;this[_0x1d308d(0x32f)][_0x1d308d(0x136)](),this[_0x1d308d(0x32f)]['complete']();});}async[_0x7ea594(0x224)](_0x1a78be){const _0x4cb12a=_0x7ea594;let _0x459a80=await this[_0x4cb12a(0x33a)](),_0x109413=this[_0x4cb12a(0x35c)](_0x1a78be,_0x459a80);return this[_0x4cb12a(0x329)](_0x109413);}[_0x7ea594(0x35c)](_0x655f64,_0x53b031){const _0x497259=_0x7ea594;let _0x3e1d82=typeof window>'u'?new URL(_0x655f64):new URL(_0x655f64,window[_0x497259(0x118)][_0x497259(0x110)]);_0x3e1d82['searchParams'][_0x497259(0x164)](_0x497259(0x212),_0x53b031);let _0x526980=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x497259(0x118)][_0x497259(0x2e3)]);return _0x526980[_0x497259(0x161)]('runId')&&_0x3e1d82[_0x497259(0x2b2)][_0x497259(0x164)](_0x497259(0x32a),_0x526980[_0x497259(0x161)](_0x497259(0x32a))),_0x3e1d82[_0x497259(0x112)]();}async[_0x7ea594(0x33a)](){const _0x10f789=_0x7ea594;var _0x32cdd6;let _0x26c550=this['_configService'][_0x10f789(0x25a)](_0x14ffae),_0x229f15=(_0x26c550==null?void 0x0:_0x26c550[_0x10f789(0x304)])??_0x4c01fe;return((_0x32cdd6=(await _0x4b2eab(this[_0x10f789(0x297)][_0x10f789(0x2e1)](_0x10f789(0x359),_0x229f15,{'headers':{'Content-Type':_0x10f789(0x2e5)}})[_0x10f789(0x1d5)](_0x399a72(_0x508eab=>_0x508eab[_0x10f789(0x34f)]===_0x42c157[_0x10f789(0x172)]),_0x10c310(0x4e20),_0x2a3afc(this[_0x10f789(0x32f)]))))[_0x10f789(0x225)])==null?void 0x0:_0x32cdd6[_0x10f789(0x1ca)])??'';}};tr=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x16ce58),Y(0x3,_0x1984c9),Y(0x4,_0x165792)],tr);let nr=class extends _0x2c43e7{constructor(_0x8de9e,_0xf4aeec,_0x2d915d){const _0x486ea5=_0x7ea594;super(),this[_0x486ea5(0x129)]=_0x8de9e,this[_0x486ea5(0x297)]=_0xf4aeec,this[_0x486ea5(0x113)]=_0x2d915d;}async[_0x7ea594(0x1e8)](_0x2afce9,_0x42d25b,_0x5fcf9c,..._0x1b0ea5){const _0x5040cc=_0x7ea594;let _0x3f0b60=this[_0x5040cc(0x129)][_0x5040cc(0x116)]();if(!_0x3f0b60)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x56d3d9=(this[_0x5040cc(0x113)][_0x5040cc(0x25a)](_0x5ccd97)??_0x39f491)+'/'+_0x2afce9+_0x5040cc(0x288)+_0x42d25b,_0x3ffb9d={'scriptId':_0x2afce9,'runId':new URL(window[_0x5040cc(0x118)]['href'])['searchParams'][_0x5040cc(0x161)](_0x5040cc(0x32a))??'','function':_0x42d25b,'unitId':_0x3f0b60[_0x5040cc(0x270)](),'argsOfFunction':JSON['stringify'](_0x1b0ea5),'invokeId':_0x5fcf9c[_0x5040cc(0x2f2)]??'','executionId':_0x5fcf9c[_0x5040cc(0x30a)]??''};try{let _0x23bb3b=await this['_httpService'][_0x5040cc(0x13e)](_0x56d3d9,{'body':_0x3ffb9d});return _0x23bb3b['body'][_0x5040cc(0x19d)]&&_0x23bb3b[_0x5040cc(0x225)][_0x5040cc(0x19d)][_0x5040cc(0x16e)]!==_0x34e0a6['OK']?_0x5040cc(0x167):_0x23bb3b[_0x5040cc(0x225)][_0x5040cc(0x17c)];}catch{return _0x5040cc(0x167);}}};function _0x1c2b(_0x386f6c,_0x4d2827){_0x386f6c=_0x386f6c-0xd9;const _0x58344e=_0x5834();let _0x1c2b22=_0x58344e[_0x386f6c];return _0x1c2b22;}nr=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x16ce58)],nr);const rr=0x7530,ir=_0x7ea594(0x2ab);var ar=class extends _0x2c43e7{constructor(){const _0x5083e2=_0x7ea594;super(),J(this,_0x5083e2(0x1d1),_0x415285()),J(this,_0x5083e2(0x16d),new Set()),J(this,_0x5083e2(0x325),new Map()),J(this,_0x5083e2(0x2f0),null),J(this,_0x5083e2(0x26b),new Map()),J(this,_0x5083e2(0x2c8),new Map()),this[_0x5083e2(0x191)]();}['dispose'](){const _0x4c7cc5=_0x7ea594;super[_0x4c7cc5(0x2f1)](),this[_0x4c7cc5(0x26b)][_0x4c7cc5(0x2c0)]((_0x3ec55f,_0x3b13da)=>this[_0x4c7cc5(0x196)](_0x3b13da)),this[_0x4c7cc5(0x2f0)]&&window[_0x4c7cc5(0x2a7)](this[_0x4c7cc5(0x2f0)]);}['getUnitStatus$'](_0x3a722b){const _0x89970=_0x7ea594;return this[_0x89970(0x346)](_0x3a722b)['pipe'](_0x3b143a());}['editingUnit'](_0x26c74c){const _0x594fb9=_0x7ea594;this[_0x594fb9(0x16d)][_0x594fb9(0x18e)]===0x0&&this[_0x594fb9(0x330)](),this['_selfUnitIDs'][_0x594fb9(0x1ce)](_0x26c74c),this[_0x594fb9(0x290)]({'type':0x0,'memberID':this[_0x594fb9(0x1d1)],'unitIDs':[_0x26c74c],'isForwarded':!0x1});}['disposeUnit'](_0x5b70ec){const _0x169db3=_0x7ea594;this[_0x169db3(0x16d)][_0x169db3(0x182)](_0x5b70ec),this[_0x169db3(0x16d)][_0x169db3(0x18e)]===0x0&&this[_0x169db3(0x2f0)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x4e0edd=_0x7ea594;this[_0x4e0edd(0xf8)](_0x42bb3c(_0x53faeb(window,_0x4e0edd(0x341))[_0x4e0edd(0x1de)](_0x7b570b=>{const _0x27831b=_0x4e0edd;if(_0x7b570b['key']!==ir||!_0x7b570b[_0x27831b(0x259)])return;let _0x5c7184=JSON[_0x27831b(0x188)](_0x7b570b[_0x27831b(0x259)]);this[_0x27831b(0x200)](_0x5c7184);}))),window['addEventListener'](_0x4e0edd(0x334),()=>this['_send']({'type':0x1,'memberID':this[_0x4e0edd(0x1d1)],'unitIDs':Array[_0x4e0edd(0x1eb)](this['_selfUnitIDs'])}));}[_0x7ea594(0x200)](_0x30378f){const _0x469b1a=_0x7ea594;switch(_0x30378f[_0x469b1a(0x34f)]){case 0x0:this[_0x469b1a(0x275)](_0x30378f);break;case 0x1:this['_handleLeaveEvent'](_0x30378f);break;case 0x2:this[_0x469b1a(0x351)](_0x30378f);}}[_0x7ea594(0x275)](_0x207b69){const _0x51c610=_0x7ea594;let {unitIDs:_0x525585,memberID:_0x4253d0,isForwarded:_0x5ef246}=_0x207b69;_0x525585['forEach'](_0x386751=>{const _0x4e88b4=_0x1c2b;if(!_0x5ef246&&this['_unitOnClients'][_0x4e88b4(0x2c5)](_0x386751)&&this[_0x4e88b4(0x346)](_0x386751)['next'](_0x24c6b1[_0x4e88b4(0x31d)]),!this[_0x4e88b4(0x325)][_0x4e88b4(0x2c5)](_0x386751)||!this[_0x4e88b4(0x325)][_0x4e88b4(0x161)](_0x386751)[_0x4e88b4(0x2c5)](_0x4253d0)){let _0x3c13c4=this[_0x4e88b4(0x325)]['get'](_0x386751)||new Set();_0x3c13c4[_0x4e88b4(0x1ce)](_0x4253d0),this[_0x4e88b4(0x325)][_0x4e88b4(0x164)](_0x386751,_0x3c13c4),this[_0x4e88b4(0x305)](_0x4253d0);}}),_0x5ef246||this[_0x51c610(0x290)]({'type':0x0,'memberID':this[_0x51c610(0x1d1)],'unitIDs':[...this[_0x51c610(0x16d)]],'isForwarded':!0x0});}[_0x7ea594(0x305)](_0x48677f){const _0x5b3e1f=_0x7ea594;this[_0x5b3e1f(0x196)](_0x48677f);let _0x4ad8f2=window[_0x5b3e1f(0x2b7)](()=>{const _0x708aeb=_0x5b3e1f;this[_0x708aeb(0x325)][_0x708aeb(0x2c0)](_0x540815=>{const _0xd0e07d=_0x708aeb;_0x540815[_0xd0e07d(0x182)](_0x48677f);});},rr*0x2);this['_clearOtherTimers']['set'](_0x48677f,_0x4ad8f2);}[_0x7ea594(0x196)](_0x369bf0){const _0x1a6590=_0x7ea594;if(this[_0x1a6590(0x26b)]['has'](_0x369bf0)){let _0x24052f=this[_0x1a6590(0x26b)][_0x1a6590(0x161)](_0x369bf0);_0x24052f&&window[_0x1a6590(0x29c)](_0x24052f),this['_clearOtherTimers'][_0x1a6590(0x164)](_0x369bf0,null);}}['_handleLeaveEvent'](_0x3281bd){const _0x52c42d=_0x7ea594;let {memberID:_0x52c2f5,unitIDs:_0x537e1c}=_0x3281bd;_0x537e1c[_0x52c42d(0x2c0)](_0x35ddea=>{const _0x38a0c9=_0x52c42d;var _0xfc8342;let _0x2d7f65=this[_0x38a0c9(0x325)]['get'](_0x35ddea);_0x2d7f65&&(_0x2d7f65[_0x38a0c9(0x182)](_0x52c2f5),(_0xfc8342=this[_0x38a0c9(0x346)](_0x35ddea))==null||_0xfc8342[_0x38a0c9(0x136)](_0x2d7f65[_0x38a0c9(0x18e)]===0x0?_0x24c6b1['NO_OTHER_CLIENTS_EDITING']:_0x24c6b1[_0x38a0c9(0x31d)]));}),this[_0x52c42d(0x196)](_0x52c2f5);}['_handleHeartbeatEvent'](_0x242b12){const _0x5e7fc8=_0x7ea594;this[_0x5e7fc8(0x305)](_0x242b12[_0x5e7fc8(0x35a)]);}[_0x7ea594(0x290)](_0x50477d){const _0x3ed713=_0x7ea594;localStorage[_0x3ed713(0x1ed)](ir,JSON['stringify'](_0x50477d));}[_0x7ea594(0x330)](){const _0x4243d1=_0x7ea594;this[_0x4243d1(0x2f0)]=window[_0x4243d1(0x187)](()=>{const _0x359691=_0x4243d1;this['_send']({'type':0x2,'memberID':this[_0x359691(0x1d1)]});},rr);}[_0x7ea594(0x346)](_0x1fad19){const _0x3abc27=_0x7ea594;return this['_unitStatus'][_0x3abc27(0x2c5)](_0x1fad19)||this['_unitStatus']['set'](_0x1fad19,new _0x5a8e6e(_0x24c6b1['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x1fad19);}};export{tr as BrowserCollaborationSocketService,Z as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,Dn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
1
+ const _0x42de0f=_0xe422;(function(_0x750491,_0x234c3f){const _0x2caa82=_0xe422,_0x368818=_0x750491();while(!![]){try{const _0x8b7536=-parseInt(_0x2caa82(0x2ff))/0x1*(parseInt(_0x2caa82(0x2ce))/0x2)+-parseInt(_0x2caa82(0x3b8))/0x3+parseInt(_0x2caa82(0x2ae))/0x4+-parseInt(_0x2caa82(0x2af))/0x5+parseInt(_0x2caa82(0x405))/0x6+-parseInt(_0x2caa82(0x2c7))/0x7+parseInt(_0x2caa82(0x2d4))/0x8;if(_0x8b7536===_0x234c3f)break;else _0x368818['push'](_0x368818['shift']());}catch(_0x1c1e1f){_0x368818['push'](_0x368818['shift']());}}}(_0x1bc6,0xb2db4));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x29b2b7,CollaborationController as _0x28a419,CollaborationSessionService as _0x1ad776,CollaborationSocketService as _0x58904d,CollaborationStatus as _0x15f8e8,CollaborationUIEventId as _0x41df36,CollaborationUIEventService as _0x40a79e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x32489a,DEFAULT_WS_SESSION_TICKET_URL as _0x65b9e3,DocCollaborationEntity as _0x1f454d,ILocalCacheService as _0x2acaa8,INetworkConditionService as _0x129140,LOCAL_CACHE_INTERVAL as _0x414d43,LOCAL_CACHE_INTERVAL_KEY as _0x9c10fb,MemberService as _0x1ca833,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x219023,SessionStatus as _0x1544ff,UnitStatus as _0xb36265,UniverCollaborationClientPlugin as _0x5710e7,getLocalCacheKey as _0x3f9cb8}from'@univerjs-pro/collaboration-client';import{COLORS as _0x153437,ColorKit as _0x5d20e8,CommandType as _0x76eeaf,DOC_RANGE_TYPE as _0x129afa,DependentOn as _0x1e257f,Disposable as _0x37fe2d,DisposableCollection as _0x20e368,ICommandService as _0x639c87,IConfigService as _0x444ecb,IImageIoService as _0x9a1ab3,ILocalStorageService as _0x5a8b6a,ILogService as _0x5ca156,IUniverInstanceService as _0x5d6c76,Inject as _0x3dc539,Injector as _0x247c0c,LocaleService as _0x21efe5,Plugin as _0x46a40d,Rectangle as _0x33597f,RxDisposable as _0x211d9e,ThemeService as _0x2b8d47,Tools as _0x27e990,UniverInstanceType as _0x105cdb,UserManagerService as _0x192a6f,debounce as _0x51c890,fromEventSubject as _0x49a50f,generateRandomId as _0x4367b0,isInternalEditorID as _0xf22fcd,merge as _0x3da43c,mergeOverrideWithDependencies as _0x346b37,registerDependencies as _0x42b823,toDisposable as _0x11e849,touchDependencies as _0x47e7d}from'@univerjs/core';import{BuiltInUIPart as _0x5a9900,IBeforeCloseService as _0x3f4e4a,IMessageService as _0x217aa6,INotificationService as _0x2e151f,IUIPartsService as _0x89c8f3,IUnitPresenceUIAdapterRegistry as _0x50fb5d,connectInjector as _0x347445,useDependency as _0x460856,useObservable as _0x1d6cad}from'@univerjs/ui';import{BehaviorSubject as _0x1d09c7,Subject as _0x4a1ec6,combineLatest as _0x3e87db,debounceTime as _0x3984fa,distinctUntilChanged as _0xdfd3b0,filter as _0x335bbe,firstValueFrom as _0x464d06,fromEvent as _0x569bc8,map as _0x34bb7,merge as _0x3e0292,of as _0x4d51d1,switchMap as _0xa50162,takeUntil as _0xafb3a3,throttle as _0x322f3a,timeout as _0x418b38,timer as _0x140165}from'rxjs';import{distinctUntilChanged as _0x42bb45,filter as _0x4043aa,map as _0x381518,switchMap as _0x135137,takeUntil as _0x18ac5c,throttleTime as _0xe6d671}from'rxjs/operators';import{Button as _0x5a4791,MessageType as _0x49f4ad,Tooltip as _0x28eb1a,clsx as _0x23290e}from'@univerjs/design';function _0x1bc6(){const _0x1dec15=['wsSessionTicketUrl','next','resize','_drawRectRange','_refreshCollabCursors','ERROR','collaboration-client-ui.conflict.content','_localeService','_onRefRangeChange','contains','_unitStatus','_transformService','collaboration-client-ui.session.connection-failed','OTHER_CLIENT_EDITING','decorate','updateOfflineData','sheetID','InsertRangeMoveDownCommandId','removeRemotePresence','keys','application/json','font',':backup:','GET','_retryingConflictCacheUnitIDs','presenceKind','univer-text-red-500','error','collaboration-client-ui.conflict.clearFailed','_send','blue.400','m1Prime','5736948EDbzaU','958095kngCST','OFFLINE','_registerRenderDependencies','/run/','_showAwaitingNotice','_commandService','status','_sheetSkeletonManagerService','_initEvent','fill','license_editing_connections_exceeded','icon','stack','collaboration-client-ui.permission.title','snapshot-loading-','_getScale','UPDATE_CURSOR','div','_uploadLog','constructor','visibilityState','requireSession','_removeAwaitingNotices','MoveRangeCommandId','5838350PNirqZ','_backgroundColor','color','slice','i18nKey','_labelPosition','assignAColorForMemberID','65710PvRbNE','href','collaboration-client-ui.collabStatus.notCollab','_anchor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','univer-inline-flex\x20univer-items-center\x20univer-justify-center','5934136KnAeAW','_refRangeService','_logService','registerBeforeClose','runOnServer','_transformPreviousActiveRange','split','preventDefault','_revisionService','_clearRemotePresences','collab-rect-range-','redoState','ticket','has','with','_initPresenceStatusComponents','_unitOnClients','version','_collaborationUIEventService','tableId','_conflictNotification','_context','transformStateCache','isActive','clear','update','1.5.1','_startBlinking','_removeRemotePresence','removeItem','getRenderUnitById','_status$','SOCKET_FAILED_RETRY','getFocusedUnit','_showConflictProcessingNotification','transformMutationsWithChangeset','delete','onLine','_presenceAdapterRegistry','_presenceStatusRegistrations','_highlightSecond','mutations','yellow.400','37nOHRjR','m2Prime','_notificationService','forEach','_id','canRenderSelection','_cursors','showText','_drawAnchor','subscribe','complete','_initWindowErrorListener','currentSkeleton$','filter','_registerDependencies','sheetId','values','spin','addHandlerCallback','_initAwaitingNotices','code','_blinkTimer','closePath','statusUIPart','focusedId','addEventListener','_docTransformIMECacheService','syncEditingCollabCursor','...','highlightSecond','cursorInfo','online','offsetY','packageName','timeoutState$','getDocRanges','onPointerEnter$','segmentPage','_draw','getCollabCursors$','_hideTimer','AWAITING','title','_clearTimeoutState','primary','eventID','JOIN_ROOM_FAILED','_clearOtherTimers','_anchorDot','changesetResend$','strokeWidth','_render','undoState','_trackActiveSaveTask','toString','rgba','TEXT','loadOfflineData','getMemberID','span','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_onCursorDelete','_range','_localStorageService','exhaustSavingTask','reload','fillRule','_memberID','_onCursorUpdate','getCurrentUser','collaboration-client-ui.collabStatus.syncing','_initEntityListener','timeoutId','HEADER','_dispose$','_transformHistoryAndStateStack','_handleLeaveEvent','_docTransformSelectionsService','size','toRgbString','evenodd','function','bold\x2013px\x20Arial,\x20sans-serif','unhandledrejection','_memberService','onTransformChange$','_showText','_createSocketURL','_saveTaskMap','shareInterval','_collaborationSessionService','_heartbeatTimer','data','addObjects','executionId','roomMembers','_blinkIntervalTimer','iterator','_messageService','enableOfflineEditing','highlight','_drawTextRange','enableFrontendLog','allSettled','_document','_initConflictHandling','collaboration-client-ui.collaboration.single-unit.warning','entries','_disposed','canRenderAnchor','_init','sessionStatus$','_docSelectionManagerService','_reloadPage','getItem','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','tooltipKey','NOT_COLLAB','_collaborationController','loadedBlocks','bind','RECT','_sendLocalPresence','_clearBlockProgressWatch','_cachedData','from','show','startRow','symbol','isFinite','saveImage','_editingConnectionsExceededNotices','text','InsertRowCommandId','clearOfflineData','imageSourceType','collaboration-client-ui.collaboration.offline-data-not-saved','_ensureSubject','runId','_eventUnsubscribe','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','_updateCollabCursors','range','getMember','collaboration-client-ui.session.will-retry','collaboration-client-ui.collabStatus.fetchMiss','_updateLocalCursor','unshift','_getLighterColor','send','\x20-\x20','string','save','_collabSessionService','disposeWithMe','key','_retryConflictCacheClear','_localCacheService','hovered','_initialized','prototype','refreshLabel','green.600','width','InsertRangeMoveRightCommandId','_isDisposed','_startSheetCollabCursor','warning','roomMembers$','params','_handleCursorUpdate','ranges','doc.mutation.rich-text-editing','transformIMECache','find','name','_color','startsWith','lineTo','_listenToOfflineEvent','toISOString','\x20at\x20','_adapterRegistry','_hover','_colorAssignService','1909695yPprpR','includes','univer-border-none\x20univer-bg-transparent','activate','disableLocalCache','_syncPresenceStatusComponents','_onConflict','getCollabEntities','_doCreateSocket','getOffsetConfig','replace','endOffset','onRendered','_saveTimedOutNotices','_hovered','_syncAdapters','_univerInstanceService','_timeoutState$','[Window\x20Error]:\x20','rgba(255,\x20255,\x20255,\x200.01)','addObject','_showConflictCacheClearFailedNotification','location','init','UNIVER_DOC','pluginName','_adapterDisposables','getAncestorScale','_monkeyPatchLogService','columnGroupId','getCurrentSkeleton','column','min','collab-text-anchor-','body','_stopBlinking','registerComponent','collaboration-client-ui.collabClient.tooltip.reconnect','currentTheme$','indicator','_colorIndex','object','Response','alert','isArray','_initStatusComponent','createSocket','options','getCoordRelativeToViewport','hide','state$','executeCommand','setShapeProps','event$','setInterval','_online','pulse','static','endColumn','_toggleOffline','selections','PENDING','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','type','_getUserId','tableSource','_transformUndoRedoStack','startOffset','collaboration-client-ui.license.title','_uiPartsService','default','kind','rgba(','Failed','_disabled','_snapshotLoadingService','right','8606766jklGGr','_injector','unitType','unitId','_entities','collaboration-client-ui.collabStatus.conflict','_instanceService','createInstance','status$','deepClone','_getAnchorBounding','stage','getUndoRedoMutationParamsCache','_disposeEntity','LOADING_BLOCKS','Error','_labelHorizontalPosition','_collabCursorState$','getColorFromTheme','_configService','collaboration-client-ui.license.domain-rejected','_renderManagerService','length','_getSaveTimeout','getCollabEntity$','set','CLOSE_ROOM','pipe','_initUserListener','then','_initStatusListener','get','push','_handleHover','_scene','remove','_entityInit$','totalBlocks','saveOfflineData','endRow','stringify','_removeClearOtherTimer','parseInt','transformMutation','_watchBlockProgress','top','_docTransformStateCacheService','visible','_replaceConflictNotification','fillStyle','_messageIds','_initDependencies','collaboration-client-ui.collabStatus.offline','measureText','collaboration-client-ui.permission.content','[Unhandled\x20Rejection]:\x20','_handleJoinEvent','memberID','registerCommand','backupOfflineData','getTypeOfUnitAdded$','message','content','transformByState','selection','pageType','number','disposeUnit','addClipboardHook','max','rgb','moveTo','ACTIVE_UNIT_EVENT_CHANNEL','_highlight','univer-text-green-500','Loading','true','_cursor','subUnitId','collaboration-client-ui.conflict.title','visibilitychange','state','resolve','unsubscribe','textRanges','search','collabCursorState$','Warning','finally','online$','collaboration-client-ui.collabStatus.synced','_docStateChangeManagerService','_activeSaveTaskMap','jiqing.500','OPERATION','_collabCursorController','_initCommandExecutedListener','selectedIds','collaboration-client-ui.remoteRevert.content','adapters$','backgroundColor','setRemotePresence','USERS_LEAVE','join','cursorInfo$','some','collaboration-client-ui.snapshotLoading.refresh','_cursorShapes','collaboration-client-ui.session.collaboration-timeout','toPrimitive','0.2)','post','removeEventListener','labelHorizontalPosition','editingUnit','height','newValue','red.300','subscribeEvent','#FFF','_registerPresenceStatusComponent','OTHER_CLIENTS_EDITING','dispose$','getSheetBySheetId','getMergeData','transformRemoteChangeset','getCurrentSelections','transform','registerRefRange','getSelectionInfo','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_startEntity','clickable','searchParams','origin','SOCKET_FAILED','UNIVER_SHEET','unload','_config','univer-text-gray-400','unit','restore','setAlpha','arc','_scheduleSaving','_docClipboardService','_isBlinkVisible','_listenToOnlineEvent','button','catch','_pointerMoveDisposable','getSheetId','DeleteRangeMoveUpCommandId','clearTimeout','_bindAdapter','_roomMembers$','_setupBeforeClosingHandler','_handleHeartbeatEvent','_pendingEntities','isEditing','univer-flex\x20univer-items-center\x20univer-justify-center','_removeCollabCursors','parse','_adapter','bottom','_shapes','prepareTransformSelections','saveTaskMap','FromArray','_toggleOnline','_getSheetObject','onPointerLeave$','setTimeout','CONFLICT_CACHE_CLEAR_FAILED','_userManagerService','map','pointer','ONLINE','_beforeCloseService','triggerDblclick','_textBubble','_updateMessage','getAllUnitsForType','_online$','focus','_imageIoService','add','setStateCache','flatMap','dispose','HEADER_MENU','NO_OTHER_CLIENTS_EDITING','_initResize','AWAITING_WITH_PENDING','_name','reason','GLOBAL','_initUnhandledRejectionListener','_docSyncEditingCollabCursorService','univer-text-blue-500','collaboration-client-ui.remoteRevert.title','registerRenderModule','findNodePositionByCharIndex','_saveCache','setConfig','_normalizeUserId','univer-text-orange-500','getRangePointData','defineProperty','cacheCleared','_scheduleClearOtherTimer','collaboration-client-ui.snapshotLoading.timeout','setOffsetY','_docSkeleton','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_getMergeRange','clearInterval','black','_themeService','_lastPointer','_docSkeletonManagerService','_assignedColors','univer-transition-all\x20univer-duration-200','getStateCache','_selfUnitIDs','userId','row','getCurrentUnitOfType','columnIndex','sessionTicket','getCurrentTypeOfUnit$','getValue','_syncEditingCollabCursorService','collaboration-client-ui.config','collaboration-client-ui.collaboration.closeRoom','asObservable','getConfig','_handleEvent','enableLocalCache','freeze','_offsetY','call','stream','_blockProgressWatches','_getSessionTicket','_cursorInfo$','drawWith','collaboration-client-ui.conflict.retry','getViewport','_disposeEntitiesForType','enableDocumentCollaborationUI','snapshot-loading-timeout','COMPLETE','now','onMouseMove','startColumn','setItem','collaboration-client-ui.license.unit-type-rejected','colorClass','_session','pageIndex','entityInit$','_httpService','_scheduleHeartbeat','getUnitId','getTypeOfUnitDisposed$','replaceSelectionInfoWithoutRefresh','unitID','dark:focus:!univer-ring-offset-gray-800','onCommandExecuted','left','_startDocCollabCursor','makeDirty','timedOut'];_0x1bc6=function(){return _0x1dec15;};return _0x1bc6();}import{LoadingMultiIcon as _0x2cd38f,OffLineIcon as _0x52d675,OnLineIcon as _0x21575c,WarningIcon as _0x5d75f8}from'@univerjs/icons';import{createElement as _0x41772c,useCallback as _0x469179,useMemo as _0x80e458}from'react';import{jsx as _0x126434,jsxs as _0x338823}from'react/jsx-runtime';import{CollaborationEvent as _0x3a18c3,ISnapshotServerService as _0x250b3a,ITransformService as _0x3e6910,RevisionService as _0x45d042,SnapshotLoadStage as _0x570ed5,SnapshotLoadingService as _0x1693c5,UniverCollaborationPlugin as _0x556964,isTransformMutationFailure as _0x28a80b,isTransformMutationsWithChangesetSuccess as _0x3a8994}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3b3aa1}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x4825d4,DocSkeletonManagerService as _0x428f57,DocStateChangeManagerService as _0x583478,RichTextEditingMutation as _0x40f104,SetTextSelectionsOperation as _0x3b72e4,UniverDocsPlugin as _0x5a8d29}from'@univerjs/docs';import{DocIMEInputManagerService as _0x3d67ef,IDocClipboardService as _0x1a305a,NodePositionConvertToCursor as _0x35e650,NodePositionConvertToRectRange as _0xd0e1a5,SetDocZoomRatioOperation as _0x472757,TEXT_RANGE_LAYER_INDEX as _0x2ca413,UniverDocsUIPlugin as _0x215fbc}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2e53e1,IRenderManagerService as _0x4abc49,Rect as _0x2a4280,RegularPolygon as _0x3cee4c,SHEET_VIEWPORT_KEY as _0x4a8df5,Shape as _0x2b88e0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4eca70,UniverRenderEnginePlugin as _0x4e238c,Vector2 as _0x413a0c,getColor as _0x2e5818,getDocumentSkeletonColumnPagePathInfo as _0x134f2c}from'@univerjs/engine-render';import{HTTPEventType as _0x53343e,HTTPService as _0x40028d,ISocketService as _0x513a41,UniverNetworkPlugin as _0xa28b89,WebSocketService as _0x109f64}from'@univerjs/network';import{deserializeRangeWithSheet as _0x84f090,serializeRangeWithSheet as _0x2bdc22}from'@univerjs/engine-formula';import{EffectRefRangId as _0x28b677,RefRangeService as _0x4ca202,SetSelectionsOperation as _0x2f9028,SheetsSelectionsService as _0x44ba13,handleDeleteRangeMoveLeft as _0x189d82,handleDeleteRangeMoveUp as _0x5a87ab,handleIRemoveCol as _0x57e91d,handleIRemoveRow as _0xb1f298,handleInsertCol as _0x27afca,handleInsertRangeMoveDown as _0x400617,handleInsertRangeMoveRight as _0x46809e,handleInsertRow as _0x6b0f5,handleMoveRange as _0x25eda6,runRefRangeMutations as _0x2b47b1}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x2a213a,getCoordByCell as _0x39cb1b,getSheetObject as _0x4acecd}from'@univerjs/sheets-ui';import{ErrorCode as _0x1bab1d}from'@univerjs/protocol';function en(_0x4f2862){const _0x446624=_0xe422;switch(_0x4f2862){case _0x15f8e8['OFFLINE']:return{'icon':_0x126434(_0x52d675,{}),'colorClass':_0x446624(0x2a8),'i18nKey':_0x446624(0x439),'tooltipKey':_0x446624(0x3dd),'clickable':!0x0,'indicator':_0x446624(0x3f1)};case _0x15f8e8['CONFLICT']:return{'icon':_0x126434(_0x52d675,{}),'colorClass':_0x446624(0x24a),'i18nKey':_0x446624(0x40a),'clickable':!0x1,'indicator':_0x446624(0x3f1)};case _0x15f8e8['FETCH_MISS']:return{'icon':_0x126434(_0x2cd38f,{}),'colorClass':_0x446624(0x243),'i18nKey':_0x446624(0x390),'clickable':!0x1,'indicator':_0x446624(0x310)};case _0x15f8e8['NOT_COLLAB']:return{'icon':_0x126434(_0x21575c,{}),'colorClass':_0x446624(0x207),'i18nKey':_0x446624(0x2d0),'clickable':!0x1,'indicator':'static'};case _0x15f8e8[_0x446624(0x328)]:case _0x15f8e8[_0x446624(0x23d)]:return{'icon':_0x126434(_0x2cd38f,{}),'colorClass':_0x446624(0x243),'i18nKey':_0x446624(0x345),'clickable':!0x1,'indicator':_0x446624(0x310)};case _0x15f8e8[_0x446624(0x3f5)]:return{'icon':_0x126434(_0x2cd38f,{}),'colorClass':_0x446624(0x243),'i18nKey':_0x446624(0x345),'clickable':!0x1,'indicator':_0x446624(0x310)};case _0x15f8e8['SYNCED']:return{'icon':_0x126434(_0x21575c,{}),'colorClass':_0x446624(0x44f),'i18nKey':_0x446624(0x45f),'clickable':!0x1,'indicator':'static'};}}function tn(_0x5a6b91){const _0x3f6f2d=_0xe422;let {status$:_0x1664d1}=_0x5a6b91,_0x20d4a6=_0x1d6cad(_0x1664d1,_0x15f8e8[_0x3f6f2d(0x374)]),_0xbb593=_0x460856(_0x21efe5),_0x2547ca=_0x460856(_0x1ad776),_0x5451d1=_0x80e458(()=>en(_0x20d4a6),[_0x20d4a6]),_0x28443a=_0x20d4a6!==_0x15f8e8[_0x3f6f2d(0x2b0)],_0x24b31c=_0xbb593['t'](_0x5451d1[_0x3f6f2d(0x2cb)]),_0xda0793=_0x5451d1[_0x3f6f2d(0x373)]?_0xbb593['t'](_0x5451d1[_0x3f6f2d(0x373)]):_0x24b31c,_0x33fec0=_0x469179(()=>{_0x28443a||_0x2547ca['reconnect']();},[_0x28443a,_0x2547ca]),_0x575b1b=_0x469179(_0x3d6041=>{const _0x35d5a1=_0x3f6f2d;_0x28443a||_0x3d6041[_0x35d5a1(0x39a)]!=='Enter'&&_0x3d6041[_0x35d5a1(0x39a)]!=='\x20'||(_0x3d6041[_0x35d5a1(0x2db)](),_0x2547ca['reconnect']());},[_0x28443a,_0x2547ca]),_0xabc8ff=_0x126434('span',{'className':_0x23290e(_0x3f6f2d(0x21c),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x5451d1[_0x3f6f2d(0x27e)],{'univer-animate-spin':_0x5451d1[_0x3f6f2d(0x3df)]==='spin','univer-animate-pulse':_0x5451d1[_0x3f6f2d(0x3df)]===_0x3f6f2d(0x3f0)}),'aria-hidden':'true','children':_0x5451d1[_0x3f6f2d(0x2ba)]}),_0x565a24=_0x126434('span',{'className':_0x23290e(_0x3f6f2d(0x21c),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3f6f2d(0x25a),_0x3f6f2d(0x33b),_0x3f6f2d(0x288),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5451d1[_0x3f6f2d(0x200)],'univer-cursor-default':!_0x5451d1[_0x3f6f2d(0x200)]}),'children':_0xabc8ff});return _0x5451d1[_0x3f6f2d(0x200)]?_0x126434(_0x28eb1a,{'title':_0xda0793,'placement':_0x3f6f2d(0x220),'children':_0x126434(_0x3f6f2d(0x210),{'type':'button','onClick':_0x33fec0,'onKeyDown':_0x575b1b,'className':_0x23290e('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x3f6f2d(0x3ba),'univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0x24b31c+_0x3f6f2d(0x395)+_0xda0793,'role':'status','aria-live':'polite','aria-atomic':_0x3f6f2d(0x451),'children':_0x565a24})}):_0x126434(_0x28eb1a,{'title':_0xda0793,'placement':_0x3f6f2d(0x220),'children':_0x126434(_0x3f6f2d(0x2c0),{'className':_0x23290e(_0x3f6f2d(0x2d3),_0x3f6f2d(0x3ba),'univer-m-0\x20univer-p-0'),'aria-label':_0x24b31c,'role':_0x3f6f2d(0x2b5),'aria-live':'polite','aria-atomic':_0x3f6f2d(0x451),'children':_0x565a24})});}function q(_0x5e16b1){'@babel/helpers - typeof';const _0x370d10=_0xe422;return q=typeof Symbol==_0x370d10(0x350)&&typeof Symbol[_0x370d10(0x360)]==_0x370d10(0x37f)?function(_0x4625ae){return typeof _0x4625ae;}:function(_0x541f60){const _0xea8a07=_0x370d10;return _0x541f60&&typeof Symbol==_0xea8a07(0x350)&&_0x541f60[_0xea8a07(0x2c2)]===Symbol&&_0x541f60!==Symbol[_0xea8a07(0x39f)]?'symbol':typeof _0x541f60;},q(_0x5e16b1);}function nn(_0x50f98c,_0x1294f6){const _0x1cffc2=_0xe422;if(q(_0x50f98c)!=_0x1cffc2(0x3e1)||!_0x50f98c)return _0x50f98c;var _0xbcb5b3;if(typeof Symbol<'u'&&(_0xbcb5b3=_0x50f98c[Symbol[_0x1cffc2(0x472)]])!==void 0x0){var _0xfdae02=_0xbcb5b3[_0x1cffc2(0x26d)](_0x50f98c,_0x1294f6||_0x1cffc2(0x3fe));if(q(_0xfdae02)!=_0x1cffc2(0x3e1))return _0xfdae02;throw TypeError(_0x1cffc2(0x252));}return(_0x1294f6===_0x1cffc2(0x396)?String:Number)(_0x50f98c);}function rn(_0x14da8c){const _0x5266f3=_0xe422;var _0x379ab0=nn(_0x14da8c,'string');return q(_0x379ab0)==_0x5266f3(0x37f)?_0x379ab0:_0x379ab0+'';}function J(_0x4bfa37,_0x2bb5f2,_0x33f067){const _0x44b313=_0xe422;return(_0x2bb5f2=rn(_0x2bb5f2))in _0x4bfa37?Object[_0x44b313(0x24c)](_0x4bfa37,_0x2bb5f2,{'value':_0x33f067,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bfa37[_0x2bb5f2]=_0x33f067,_0x4bfa37;}function Y(_0x3b204d,_0x298bf7){return function(_0x249e54,_0x4bf56f){_0x298bf7(_0x249e54,_0x4bf56f,_0x3b204d);};}function X(_0x4c6201,_0x54dcae,_0x274834,_0x11ca28){const _0x5a191d=_0xe422;var _0x18ad43=arguments[_0x5a191d(0x41b)],_0x198c51=_0x18ad43<0x3?_0x54dcae:_0x11ca28===null?_0x11ca28=Object['getOwnPropertyDescriptor'](_0x54dcae,_0x274834):_0x11ca28,_0x24e03c;if(typeof Reflect==_0x5a191d(0x3e1)&&typeof Reflect[_0x5a191d(0x29c)]=='function')_0x198c51=Reflect['decorate'](_0x4c6201,_0x54dcae,_0x274834,_0x11ca28);else{for(var _0x67a17a=_0x4c6201['length']-0x1;_0x67a17a>=0x0;_0x67a17a--)(_0x24e03c=_0x4c6201[_0x67a17a])&&(_0x198c51=(_0x18ad43<0x3?_0x24e03c(_0x198c51):_0x18ad43>0x3?_0x24e03c(_0x54dcae,_0x274834,_0x198c51):_0x24e03c(_0x54dcae,_0x274834))||_0x198c51);}return _0x18ad43>0x3&&_0x198c51&&Object[_0x5a191d(0x24c)](_0x54dcae,_0x274834,_0x198c51),_0x198c51;}let Z=class extends _0x37fe2d{constructor(_0x571d49,_0x2948d9,_0x4c21c7,_0x40473e,_0xa9ead0){const _0x441138=_0xe422;super(),this[_0x441138(0x3c8)]=_0x571d49,this[_0x441138(0x406)]=_0x2948d9,this[_0x441138(0x375)]=_0x4c21c7,this['_uiPartsService']=_0x40473e,this[_0x441138(0x2fa)]=_0xa9ead0,J(this,'_status$',new _0x1d09c7(_0x15f8e8[_0x441138(0x374)])),J(this,_0x441138(0x2fb),new Map()),this[_0x441138(0x3e5)](),this[_0x441138(0x423)](),this['_initPresenceStatusComponents']();}[_0x42de0f(0x239)](){const _0x42e399=_0x42de0f;this[_0x42e399(0x2fb)]['forEach'](_0x1f36f5=>_0x1f36f5[_0x42e399(0x239)]()),this['_presenceStatusRegistrations'][_0x42e399(0x2ec)](),this[_0x42e399(0x2f3)]['complete'](),super['dispose']();}['_initStatusListener'](){const _0x2a435c=_0x42de0f;this['disposeWithMe'](_0x3e0292(this[_0x2a435c(0x3c8)]['focused$'],this[_0x2a435c(0x3c8)][_0x2a435c(0x262)](_0x105cdb['UNIVER_DOC']),this[_0x2a435c(0x3c8)]['getCurrentTypeOfUnit$'](_0x105cdb[_0x2a435c(0x204)]))[_0x2a435c(0x420)](_0x381518(()=>an(this['_univerInstanceService'])),_0x42bb45(),_0xa50162(_0x48e957=>_0x48e957?this[_0x2a435c(0x375)][_0x2a435c(0x41d)](_0x48e957):_0x4d51d1(null)),_0xa50162(_0xeff832=>_0xeff832?_0xeff832[_0x2a435c(0x40d)]:_0x4d51d1(_0x15f8e8[_0x2a435c(0x374)])))[_0x2a435c(0x308)](_0x2cb770=>{this['_status$']['next'](_0x2cb770);}));}[_0x42de0f(0x3e5)](){const _0x1d3256=_0x42de0f;this[_0x1d3256(0x399)](this[_0x1d3256(0x3fd)][_0x1d3256(0x3dc)](_0x5a9900[_0x1d3256(0x23a)],()=>_0x347445(on({'status$':this[_0x1d3256(0x2f3)][_0x1d3256(0x267)]()}),this['_injector'])));}[_0x42de0f(0x2e3)](){const _0x252cda=_0x42de0f;let _0xbcfd3a=this[_0x252cda(0x2fa)][_0x252cda(0x468)][_0x252cda(0x308)](_0x1645e7=>{const _0x3ab76f=_0x252cda;this[_0x3ab76f(0x3bd)](_0x1645e7);});this[_0x252cda(0x399)](_0x11e849(()=>_0xbcfd3a['unsubscribe']()));}[_0x42de0f(0x3bd)](_0x52b32c){const _0xde0d05=_0x42de0f;let _0x3df440=new Map(_0x52b32c['filter'](_0x22f310=>_0x22f310[_0xde0d05(0x316)]!=null)[_0xde0d05(0x22b)](_0x4b85f4=>[_0x4b85f4['unitType'],_0x4b85f4]));this[_0xde0d05(0x2fb)][_0xde0d05(0x302)]((_0x42104a,_0x59380b)=>{const _0x1368da=_0xde0d05;_0x3df440[_0x1368da(0x2e1)](_0x59380b)||(_0x42104a['dispose'](),this['_presenceStatusRegistrations']['delete'](_0x59380b));}),_0x3df440[_0xde0d05(0x302)]((_0x13fc39,_0x3375a9)=>{const _0x260b81=_0xde0d05;this[_0x260b81(0x2fb)][_0x260b81(0x2e1)](_0x3375a9)||this['_registerPresenceStatusComponent'](_0x13fc39);});}[_0x42de0f(0x1f4)](_0x4af425){const _0x2d0181=_0x42de0f;let _0x377665=_0x4af425['statusUIPart'];if(!_0x377665)return;let _0x4bb529=new _0x20e368(),_0x39fd2f=new _0x1d09c7(_0x15f8e8['NOT_COLLAB']);_0x4bb529['add'](_0x11e849(()=>_0x39fd2f[_0x2d0181(0x309)]())),_0x4bb529['add'](this['_uiPartsService'][_0x2d0181(0x3dc)](_0x377665,()=>_0x347445(on({'status$':_0x39fd2f['asObservable']()}),this[_0x2d0181(0x406)])));let _0x49e002=this[_0x2d0181(0x3c8)]['getCurrentTypeOfUnit$'](_0x4af425[_0x2d0181(0x407)])[_0x2d0181(0x420)](_0x381518(_0x40d33f=>(_0x40d33f==null?void 0x0:_0x40d33f['getUnitId']())??null),_0x42bb45(),_0xa50162(_0x53fa11=>_0x53fa11?this[_0x2d0181(0x375)][_0x2d0181(0x41d)](_0x53fa11):_0x4d51d1(null)),_0xa50162(_0xa91f8d=>(_0xa91f8d==null?void 0x0:_0xa91f8d['status$'])??_0x4d51d1(_0x15f8e8[_0x2d0181(0x374)])))[_0x2d0181(0x308)](_0xe0896e=>_0x39fd2f[_0x2d0181(0x28f)](_0xe0896e));_0x4bb529[_0x2d0181(0x236)](_0x11e849(()=>_0x49e002[_0x2d0181(0x458)]())),this[_0x2d0181(0x2fb)]['set'](_0x4af425[_0x2d0181(0x407)],_0x4bb529);}};Z=X([Y(0x0,_0x5d6c76),Y(0x1,_0x3dc539(_0x247c0c)),Y(0x2,_0x3dc539(_0x28a419)),Y(0x3,_0x89c8f3),Y(0x4,_0x3dc539(_0x50fb5d))],Z);function an(_0x38092e){const _0x1f9e1e=_0x42de0f;let _0x112c51=_0x38092e[_0x1f9e1e(0x2f5)](),_0x4474da=_0x112c51==null?void 0x0:_0x112c51[_0x1f9e1e(0x284)]();if(_0x4474da&&!_0xf22fcd(_0x4474da))return _0x4474da;let _0x476996=_0x38092e[_0x1f9e1e(0x25f)](_0x105cdb[_0x1f9e1e(0x3d0)]),_0x40529a=_0x476996==null?void 0x0:_0x476996[_0x1f9e1e(0x284)]();if(_0x40529a&&!_0xf22fcd(_0x40529a))return _0x40529a;let _0x4dd50d=_0x38092e['getCurrentUnitOfType'](_0x105cdb['UNIVER_SHEET']);if(_0x4dd50d)return _0x4dd50d['getUnitId']();let _0x2142b7=_0x38092e['getAllUnitsForType'](_0x105cdb['UNIVER_DOC'])[_0x1f9e1e(0x3ad)](_0x75840f=>!_0xf22fcd(_0x75840f[_0x1f9e1e(0x284)]()));return _0x2142b7?_0x2142b7[_0x1f9e1e(0x284)]():null;}function on(_0x2b1210){let {status$:_0x14861e}=_0x2b1210;return function(){return _0x126434(tn,{'status$':_0x14861e});};}var sn='@univerjs-pro/collaboration-client-ui',cn=_0x42de0f(0x2ee);const ln={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':_0x76eeaf[_0x42de0f(0x463)],'handler':(_0x31212a,_0x2e6f94)=>{const _0x12ef32=_0x42de0f;let _0x27401e=_0x31212a[_0x12ef32(0x424)](_0x50fb5d)[_0x12ef32(0x424)](_0x2e6f94['unitType']);if(!_0x27401e)return!0x1;switch(_0x2e6f94[_0x12ef32(0x2ed)][_0x12ef32(0x3f7)]){case'set':return _0x27401e[_0x12ef32(0x46a)](_0x2e6f94[_0x12ef32(0x2ed)][_0x12ef32(0x456)]),!0x0;case _0x12ef32(0x428):return _0x27401e[_0x12ef32(0x2a0)](_0x2e6f94[_0x12ef32(0x2ed)][_0x12ef32(0x408)],_0x2e6f94['update']['memberId']),!0x0;case _0x12ef32(0x2ec):return _0x27401e['clearRemotePresences'](_0x2e6f94[_0x12ef32(0x2ed)][_0x12ef32(0x408)]),!0x0;default:return!0x1;}}},un={};let dn=class extends _0x211d9e{constructor(_0x496735,_0x54864e){const _0x5b6e5c=_0x42de0f;super(),this[_0x5b6e5c(0x20d)]=_0x496735,this[_0x5b6e5c(0x235)]=_0x54864e,this['_init']();}['_init'](){const _0xf45f3a=_0x42de0f;let _0x2cc3e9=this;this['disposeWithMe'](this[_0xf45f3a(0x20d)][_0xf45f3a(0x449)]({'onBeforePasteImage':async _0x52a4ac=>{const _0x1bd559=_0xf45f3a;let _0x3c6195=await _0x2cc3e9[_0x1bd559(0x235)][_0x1bd559(0x381)](_0x52a4ac);return _0x3c6195?{'source':_0x3c6195['source'],'imageSourceType':_0x3c6195[_0x1bd559(0x386)]}:null;}}));}};dn=X([Y(0x0,_0x1a305a),Y(0x1,_0x9a1ab3)],dn);const fn=['purple.300',_0x42de0f(0x462),_0x42de0f(0x3a1),_0x42de0f(0x1f1),_0x42de0f(0x2ac),_0x42de0f(0x2fe)];var pn=class extends _0x37fe2d{constructor(..._0x14dd0f){const _0x5db165=_0x42de0f;super(..._0x14dd0f),J(this,_0x5db165(0x259),new Map()),J(this,_0x5db165(0x3e0),0x0);}[_0x42de0f(0x2cd)](_0x14ded6){const _0x4e9743=_0x42de0f;if(this[_0x4e9743(0x259)][_0x4e9743(0x2e1)](_0x14ded6))return this[_0x4e9743(0x259)]['get'](_0x14ded6);let _0x3cb19a=fn[this[_0x4e9743(0x3e0)]];return this[_0x4e9743(0x3e0)]=(this[_0x4e9743(0x3e0)]+0x1)%fn['length'],this[_0x4e9743(0x259)]['set'](_0x14ded6,_0x3cb19a),_0x3cb19a;}};function mn(_0xc41892){let _0x17d629='';for(let _0x1453d3 of _0xc41892){let {startOffset:_0x2c4085,endOffset:_0x3fa8e1,isActive:_0x33227b,rangeType:_0x5a399e,segmentId:_0x2ceb78,segmentPage:_0x3ce980}=_0x1453d3;_0x17d629['length']&&(_0x17d629+=','),_0x17d629+=_0x2c4085+':'+_0x3fa8e1+':'+(_0x33227b?'1':'0')+':'+_0x5a399e+':'+_0x2ceb78+':'+_0x3ce980;}return _0x17d629;}function hn(_0x50b6e9){const _0x54114a=_0x42de0f;let _0x611b56=_0x50b6e9[_0x54114a(0x2da)](','),_0x48fc67=[];for(let _0x39699d of _0x611b56){let [_0x1703a7,_0x3e9d75,_0xec8eb1,_0xaa0b6,_0x3961cd,_0x5eef24]=_0x39699d['split'](':');_0x48fc67['push']({'startOffset':Number(_0x1703a7),'endOffset':Number(_0x3e9d75),'collapsed':_0x1703a7===_0x3e9d75,'isActive':_0xec8eb1==='1','rangeType':_0xaa0b6===_0x129afa[_0x54114a(0x337)]?_0x129afa['TEXT']:_0x129afa[_0x54114a(0x378)],'segmentId':typeof _0x3961cd==_0x54114a(0x396)?String(_0x3961cd):'','segmentPage':Number(_0x5eef24??-0x1)});}return _0x48fc67[_0x54114a(0x46e)](_0x184b01=>_0x184b01[_0x54114a(0x2eb)])||(_0x48fc67[0x0]['isActive']=!0x0),_0x48fc67;}var gn=class extends _0x211d9e{constructor(..._0x4c0c78){const _0x4e3bf2=_0x42de0f;super(..._0x4c0c78),J(this,_0x4e3bf2(0x416),new _0x1d09c7(null)),J(this,_0x4e3bf2(0x45b),this[_0x4e3bf2(0x416)][_0x4e3bf2(0x267)]());}[_0x42de0f(0x31a)](_0x16a13b){const _0x2166f7=_0x42de0f;let {unitID:_0x5d2aec,memberID:_0x3f0714,textRanges:_0x3aaf13}=_0x16a13b,_0x442913=mn(_0x3aaf13);if(_0x442913==='')return;let _0xb34c06={'unitID':_0x5d2aec,'memberID':_0x3f0714,'selection':_0x442913};this[_0x2166f7(0x416)]['next'](_0xb34c06);}};let _n=class extends _0x211d9e{get[_0x42de0f(0x31d)](){const _0x5dc47b=_0x42de0f;return this[_0x5dc47b(0x271)]['getValue']();}get[_0x42de0f(0x35e)](){const _0x386b0f=_0x42de0f;return this[_0x386b0f(0x217)][_0x386b0f(0x263)]();}constructor(_0x170c0b,_0x598b78,_0x4eabec,_0x505d5c,_0x2d7b75,_0xd2c687,_0x41ca14,_0x57a268,_0x4c494e){const _0x410bbc=_0x42de0f;super(),this[_0x410bbc(0x287)]=_0x170c0b,this[_0x410bbc(0x27f)]=_0x598b78,this[_0x410bbc(0x406)]=_0x4eabec,this['_colorAssignService']=_0x505d5c,this[_0x410bbc(0x353)]=_0x2d7b75,this[_0x410bbc(0x264)]=_0xd2c687,this[_0x410bbc(0x299)]=_0x41ca14,this['_univerInstanceService']=_0x57a268,this[_0x410bbc(0x2b4)]=_0x4c494e,J(this,_0x410bbc(0x3ef),!0x1),J(this,_0x410bbc(0x36d),!0x1),J(this,'_cursorInfo$',new _0x1d09c7(new Map())),J(this,'cursorInfo$',this[_0x410bbc(0x271)][_0x410bbc(0x267)]()),J(this,'_roomMembers$',new _0x1d09c7([])),J(this,_0x410bbc(0x3a7),this['_roomMembers$']['pipe'](_0x3984fa(0x12c))),J(this,_0x410bbc(0x391),_0x51c890(_0x2bc99b=>{const _0x5a806f=_0x410bbc;let _0x1dbe7b={'eventID':_0x3a18c3[_0x5a806f(0x2bf)],'data':{'unitID':this[_0x5a806f(0x287)],'memberID':this['_session'][_0x5a806f(0x339)](),'selection':mn(_0x2bc99b)}};this['_session'][_0x5a806f(0x394)](_0x1dbe7b,this[_0x5a806f(0x287)]);},0x64));}['dispose'](){const _0x52b987=_0x42de0f;super['dispose'](),this[_0x52b987(0x271)][_0x52b987(0x28f)](new Map()),this['_cursorInfo$'][_0x52b987(0x309)](),this['_roomMembers$'][_0x52b987(0x28f)]([]),this[_0x52b987(0x217)][_0x52b987(0x309)]();}['init'](){const _0x199700=_0x42de0f;this[_0x199700(0x36d)]||(this['_init']=!0x0,this[_0x199700(0x27f)][_0x199700(0x36e)]['pipe'](_0xafb3a3(this['dispose$']))[_0x199700(0x308)](_0x519868=>{const _0x406254=_0x199700;_0x519868===_0x1544ff['ONLINE']?this[_0x406254(0x225)]():this[_0x406254(0x3f3)]();}),this[_0x199700(0x27f)]['event$']['pipe'](_0xafb3a3(this['dispose$']))[_0x199700(0x308)](_0x39806d=>{const _0x1e5630=_0x199700;let _0x100670=_0x39806d[_0x1e5630(0x32c)];_0x100670===_0x3a18c3[_0x1e5630(0x2bf)]&&this['_onCursorUpdate'](_0x39806d),_0x100670===_0x3a18c3[_0x1e5630(0x46b)]&&this[_0x1e5630(0x33c)](_0x39806d);}),this[_0x199700(0x399)](this['_commandService'][_0x199700(0x289)](_0x13b79c=>{const _0x24662a=_0x199700;let _0x25f3fc=_0x13b79c['params'];_0x25f3fc!=null&&this['_online']&&_0x13b79c['id']===_0x3b72e4['id']&&_0x25f3fc[_0x24662a(0x408)]===this[_0x24662a(0x287)]&&_0x25f3fc[_0x24662a(0x21b)]===!0x1&&_0x25f3fc[_0x24662a(0x3aa)][_0x24662a(0x41b)]>0x0&&this['_updateLocalCursor'](_0x25f3fc[_0x24662a(0x3aa)]);})),this[_0x199700(0x264)][_0x199700(0x45b)][_0x199700(0x420)](_0xafb3a3(this[_0x199700(0x1f6)]))[_0x199700(0x308)](_0x4e626c=>{const _0x3b418c=_0x199700;if((_0x4e626c==null?void 0x0:_0x4e626c[_0x3b418c(0x287)])!==this['unitID'])return;let _0x43688c={'eventID':_0x3a18c3[_0x3b418c(0x2bf)],'data':_0x4e626c};this[_0x3b418c(0x343)](_0x43688c);}),this[_0x199700(0x399)](this['_commandService'][_0x199700(0x289)](_0x27b039=>{const _0x36c71d=_0x199700;if(_0x27b039[_0x36c71d(0x3a8)]==null)return;let _0x237e9d=_0x27b039[_0x36c71d(0x3a8)];if(_0x27b039['id']!==_0x40f104['id']||_0x237e9d[_0x36c71d(0x408)]!==this[_0x36c71d(0x287)])return;let _0x886167={'id':_0x36c71d(0x3ab),'params':_0x237e9d},_0x2cf5c1=this[_0x36c71d(0x31d)];for(let [_0x485f32,_0x479ab3]of _0x2cf5c1){let _0x1934d0={'id':_0x36c71d(0x3ab),'params':{'unitId':this[_0x36c71d(0x287)],'actions':null,'textRanges':_0x479ab3[_0x36c71d(0x3aa)]}},_0xb26838=this[_0x36c71d(0x299)][_0x36c71d(0x430)](_0x886167,_0x1934d0,!0x1);if(_0x28a80b(_0xb26838))throw _0xb26838[_0x36c71d(0x2a9)];_0x2cf5c1[_0x36c71d(0x41e)](_0x485f32,{..._0x479ab3,'ranges':_0xb26838[_0x36c71d(0x300)][_0x36c71d(0x3a8)][_0x36c71d(0x459)]});}queueMicrotask(()=>{const _0x81a6d6=_0x36c71d;this[_0x81a6d6(0x271)][_0x81a6d6(0x28f)](_0x2cf5c1);});})));}['_onCursorUpdate'](_0x26b3cb){const _0x19da47=_0x42de0f;var _0x12b94f;let {memberID:_0x3841a0,selection:_0x587e6b}=_0x26b3cb[_0x19da47(0x35b)],_0x447212=hn(_0x587e6b),_0xfca654=((_0x12b94f=this['_memberService'][_0x19da47(0x38e)](this['unitID'],_0x3841a0))==null?void 0x0:_0x12b94f['name'])??'Unknown\x20user',_0x194631={'color':this[_0x19da47(0x3b7)][_0x19da47(0x2cd)](_0x3841a0),'name':_0xfca654,'ranges':_0x447212},_0x3459a1=this[_0x19da47(0x31d)];_0x3459a1['set'](_0x3841a0,_0x194631),this[_0x19da47(0x271)][_0x19da47(0x28f)](_0x3459a1);}[_0x42de0f(0x33c)](_0x130d3f){const _0x1ac95a=_0x42de0f;let {memberID:_0x12b9ce}=_0x130d3f[_0x1ac95a(0x35b)],_0x31c465=this[_0x1ac95a(0x31d)];_0x31c465[_0x1ac95a(0x2f8)](_0x12b9ce),this[_0x1ac95a(0x271)][_0x1ac95a(0x28f)](_0x31c465);}['_toggleOnline'](){const _0xc8478c=_0x42de0f;var _0x5f1b81;if(this[_0xc8478c(0x3ef)]=!0x0,((_0x5f1b81=this[_0xc8478c(0x3c8)][_0xc8478c(0x2f5)]())==null?void 0x0:_0x5f1b81[_0xc8478c(0x284)]())!==this[_0xc8478c(0x287)])return;let _0x3d0a35=this[_0xc8478c(0x406)]['get'](_0x4825d4)[_0xc8478c(0x322)]();Array[_0xc8478c(0x3e4)](_0x3d0a35)&&_0x3d0a35[_0xc8478c(0x41b)]>0x0&&this[_0xc8478c(0x391)](_0x3d0a35);}['_toggleOffline'](){const _0x55b66d=_0x42de0f;this[_0x55b66d(0x3ef)]=!0x1;}};_n=X([Y(0x2,_0x3dc539(_0x247c0c)),Y(0x3,_0x3dc539(pn)),Y(0x4,_0x3dc539(_0x1ca833)),Y(0x5,_0x3dc539(gn)),Y(0x6,_0x3e6910),Y(0x7,_0x5d6c76),Y(0x8,_0x639c87)],_n);const vn=()=>{let _0x59064e=[],_0x437024=!0x1;return _0x139235=>{const _0xd57cb2=_0xe422;_0x59064e[_0xd57cb2(0x425)](_0x139235),_0x437024||(_0x437024=!0x0,setTimeout(()=>{const _0x5781d8=_0xd57cb2;_0x59064e[_0x5781d8(0x302)](_0xa9faa1=>_0xa9faa1()),_0x59064e=[],_0x437024=!0x1;}));};};let yn=class extends _0x211d9e{get[_0x42de0f(0x31d)](){const _0x2b5ad6=_0x42de0f;return this[_0x2b5ad6(0x271)]['getValue']();}get[_0x42de0f(0x35e)](){const _0x28edd3=_0x42de0f;return this[_0x28edd3(0x217)]['getValue']();}constructor(_0x12557a,_0x5b843d,_0x210b7f,_0x24e9a3,_0x51002e,_0x4e4a45,_0x4012d1,_0x45e0ad){const _0x1725cb=_0x42de0f;super(),this[_0x1725cb(0x287)]=_0x12557a,this['_session']=_0x5b843d,this['_injector']=_0x210b7f,this[_0x1725cb(0x3b7)]=_0x24e9a3,this[_0x1725cb(0x353)]=_0x51002e,this[_0x1725cb(0x3c8)]=_0x4e4a45,this['_commandService']=_0x4012d1,this[_0x1725cb(0x2d5)]=_0x45e0ad,J(this,'_online',!0x1),J(this,_0x1725cb(0x36d),!0x1),J(this,_0x1725cb(0x271),new _0x1d09c7(new Map())),J(this,_0x1725cb(0x46d),this[_0x1725cb(0x271)][_0x1725cb(0x267)]()),J(this,'_roomMembers$',new _0x1d09c7([])),J(this,_0x1725cb(0x3a7),this[_0x1725cb(0x217)][_0x1725cb(0x420)](_0x3984fa(0x12c))),J(this,_0x1725cb(0x391),_0x51c890((_0x51461e,_0x5c4c2e)=>{const _0x5a2217=_0x1725cb;let _0x130f0a={'eventID':_0x3a18c3[_0x5a2217(0x2bf)],'data':{'unitID':this['unitID'],'memberID':this[_0x5a2217(0x27f)][_0x5a2217(0x339)](),'selection':_0x2bdc22(_0x51461e,_0x5c4c2e['range'])}};this[_0x5a2217(0x27f)][_0x5a2217(0x394)](_0x130f0a,this[_0x5a2217(0x287)]);},0x64));}[_0x42de0f(0x239)](){const _0x570ec0=_0x42de0f;super[_0x570ec0(0x239)](),this[_0x570ec0(0x271)][_0x570ec0(0x28f)](new Map()),this[_0x570ec0(0x271)][_0x570ec0(0x309)](),this[_0x570ec0(0x217)][_0x570ec0(0x28f)]([]),this['_roomMembers$'][_0x570ec0(0x309)]();}[_0x42de0f(0x3cf)](){const _0x3246b0=_0x42de0f;this[_0x3246b0(0x36d)]||(this[_0x3246b0(0x36d)]=!0x0,this['_session'][_0x3246b0(0x36e)][_0x3246b0(0x420)](_0xafb3a3(this[_0x3246b0(0x1f6)]))[_0x3246b0(0x308)](_0x545765=>{const _0x529a62=_0x3246b0;_0x545765===_0x1544ff[_0x529a62(0x22d)]?this[_0x529a62(0x225)]():this[_0x529a62(0x3f3)]();}),this[_0x3246b0(0x27f)][_0x3246b0(0x3ed)][_0x3246b0(0x420)](_0xafb3a3(this[_0x3246b0(0x1f6)]))[_0x3246b0(0x308)](_0x3e8251=>{const _0x425617=_0x3246b0;let _0x2724ea=_0x3e8251[_0x425617(0x32c)];_0x2724ea===_0x3a18c3[_0x425617(0x2bf)]&&this[_0x425617(0x343)](_0x3e8251),_0x2724ea===_0x3a18c3[_0x425617(0x46b)]&&this[_0x425617(0x33c)](_0x3e8251);}),this[_0x3246b0(0x296)](),this[_0x3246b0(0x399)](this[_0x3246b0(0x2b4)][_0x3246b0(0x289)](_0x4541b4=>{const _0x552b44=_0x3246b0;if(this[_0x552b44(0x3ef)]&&_0x4541b4['id']===_0x2f9028['id']&&_0x4541b4[_0x552b44(0x3a8)]['unitId']===this[_0x552b44(0x287)]){let _0x195bd6=_0x4541b4[_0x552b44(0x3a8)];this[_0x552b44(0x391)](_0x195bd6[_0x552b44(0x453)],_0x195bd6[_0x552b44(0x3f4)][0x0]);}})));}[_0x42de0f(0x343)](_0xf42511){const _0x525f21=_0x42de0f;var _0x355235;let {memberID:_0x4b20cd,selection:_0x1587fa}=_0xf42511['data'],{sheetName:_0x8b3462,range:_0x14553d}=_0x84f090(_0x1587fa),_0x36149a={'name':((_0x355235=this[_0x525f21(0x353)][_0x525f21(0x38e)](this['unitID'],_0x4b20cd))==null?void 0x0:_0x355235[_0x525f21(0x3ae)])??'Unknown\x20user','range':this[_0x525f21(0x253)](_0x8b3462,_0x14553d),'sheetID':_0x8b3462,'color':this[_0x525f21(0x3b7)]['assignAColorForMemberID'](_0x4b20cd),'selection':_0x1587fa},_0x154d4b=this[_0x525f21(0x31d)];_0x154d4b[_0x525f21(0x41e)](_0x4b20cd,_0x36149a),this[_0x525f21(0x271)]['next'](_0x154d4b);}[_0x42de0f(0x33c)](_0x25767d){const _0x10289e=_0x42de0f;let {memberID:_0x319226}=_0x25767d[_0x10289e(0x35b)],_0x12b28e=this[_0x10289e(0x31d)];_0x12b28e['delete'](_0x319226),this[_0x10289e(0x271)][_0x10289e(0x28f)](_0x12b28e);}[_0x42de0f(0x253)](_0x5200fc,_0xb3ec55){const _0x57af09=_0x42de0f;var _0x1eec77;let _0x2c4e12=(_0x1eec77=this[_0x57af09(0x3c8)]['getUnit'](this[_0x57af09(0x287)],_0x105cdb[_0x57af09(0x204)]))==null||(_0x1eec77=_0x1eec77[_0x57af09(0x1f7)](_0x5200fc))==null?void 0x0:_0x1eec77[_0x57af09(0x1f8)]();return(_0x2c4e12==null?void 0x0:_0x2c4e12[_0x57af09(0x3ad)](_0xc9997a=>_0x33597f[_0x57af09(0x297)](_0xc9997a,_0xb3ec55)))||_0xb3ec55;}['_onRefRangeChange'](){const _0x171f5e=_0x42de0f;let _0x3e7f8b=new _0x20e368(),_0x46d675=vn(),_0x8904d9=()=>{const _0xc4e051=_0xe422;_0x3e7f8b[_0xc4e051(0x239)]();let _0x3a45bb=(_0x3a0443,_0x6d2776,_0x360be0,_0x3aa439)=>{const _0x2b0c2c=_0xc4e051;let _0x464bc4=[];switch(_0x3a0443['id']){case _0x28b677['DeleteRangeMoveLeftCommandId']:_0x464bc4=_0x189d82(_0x3a0443,_0x3aa439);break;case _0x28b677[_0x2b0c2c(0x214)]:_0x464bc4=_0x5a87ab(_0x3a0443,_0x3aa439);break;case _0x28b677['InsertColCommandId']:_0x464bc4=_0x27afca(_0x3a0443,_0x3aa439);break;case _0x28b677[_0x2b0c2c(0x29f)]:_0x464bc4=_0x400617(_0x3a0443,_0x3aa439);break;case _0x28b677[_0x2b0c2c(0x3a3)]:_0x464bc4=_0x46809e(_0x3a0443,_0x3aa439);break;case _0x28b677[_0x2b0c2c(0x384)]:_0x464bc4=_0x6b0f5(_0x3a0443,_0x3aa439);break;case _0x28b677[_0x2b0c2c(0x2c6)]:_0x464bc4=_0x25eda6(_0x3a0443,_0x3aa439);break;case _0x28b677['RemoveColCommandId']:_0x464bc4=_0x57e91d(_0x3a0443,_0x3aa439);break;case _0x28b677['RemoveRowCommandId']:_0x464bc4=_0xb1f298(_0x3a0443,_0x3aa439);}let _0x355419=_0x2b47b1(_0x464bc4,_0x3aa439),_0x4f6cce=this[_0x2b0c2c(0x31d)][_0x2b0c2c(0x424)](_0x6d2776);if(_0x4f6cce&&_0x355419){let _0x47d987={..._0x4f6cce,'range':_0x355419};this['cursorInfo'][_0x2b0c2c(0x41e)](_0x6d2776,_0x47d987),_0x46d675(()=>{const _0x31fc7b=_0x2b0c2c;let _0x373f50=this[_0x31fc7b(0x2d5)][_0x31fc7b(0x1fc)](_0x355419,_0x609915=>(_0x373f50[_0x31fc7b(0x239)](),_0x3a45bb(_0x609915,_0x6d2776,_0x360be0,_0x355419)));_0x3e7f8b['add'](_0x373f50);});}return{'redos':[],'undos':[]};};this[_0xc4e051(0x31d)][_0xc4e051(0x302)]((_0x5c3ffa,_0x348302)=>{const _0x56b242=_0xc4e051;let {range:_0x3b14fa,sheetID:_0x51e471}=_0x5c3ffa,_0x4ebea6=this['_refRangeService'][_0x56b242(0x1fc)](_0x3b14fa,_0x23bfac=>(_0x4ebea6[_0x56b242(0x239)](),_0x3a45bb(_0x23bfac,_0x348302,_0x51e471,_0x3b14fa)));_0x3e7f8b[_0x56b242(0x236)](_0x4ebea6);});};this[_0x171f5e(0x399)](_0x11e849(this[_0x171f5e(0x271)][_0x171f5e(0x308)](()=>{_0x8904d9();})));}[_0x42de0f(0x225)](){const _0x4cc956=_0x42de0f;var _0x2e95a3,_0x17e4e0;if(this['_online']=!0x0,((_0x2e95a3=this[_0x4cc956(0x3c8)][_0x4cc956(0x2f5)]())==null?void 0x0:_0x2e95a3[_0x4cc956(0x284)]())!==this['unitID'])return;let _0x3f9cea=(_0x17e4e0=this[_0x4cc956(0x406)]['get'](_0x44ba13)[_0x4cc956(0x1fa)]())==null?void 0x0:_0x17e4e0[0x0],_0x4a470b=this[_0x4cc956(0x3c8)][_0x4cc956(0x25f)](_0x105cdb[_0x4cc956(0x204)])['getActiveSheet']();_0x3f9cea&&_0x4a470b&&this[_0x4cc956(0x391)](_0x4a470b[_0x4cc956(0x213)](),_0x3f9cea);}[_0x42de0f(0x3f3)](){const _0x4fa7cb=_0x42de0f;this[_0x4fa7cb(0x3ef)]=!0x1;}};yn=X([Y(0x2,_0x3dc539(_0x247c0c)),Y(0x3,_0x3dc539(pn)),Y(0x4,_0x3dc539(_0x1ca833)),Y(0x5,_0x5d6c76),Y(0x6,_0x639c87),Y(0x7,_0x3dc539(_0x4ca202))],yn);let Q=class extends _0x211d9e{constructor(_0x57da35,_0x44e98f,_0x143fb4){const _0x172b74=_0x42de0f;super(),this[_0x172b74(0x3c8)]=_0x57da35,this[_0x172b74(0x406)]=_0x44e98f,this[_0x172b74(0x398)]=_0x143fb4,J(this,_0x172b74(0x409),new Map()),J(this,_0x172b74(0x429),new _0x4a1ec6()),this['_init']();}['dispose'](){const _0x47a27a=_0x42de0f;super[_0x47a27a(0x239)](),this['_entityInit$']['complete'](),this['_entities'][_0x47a27a(0x302)](_0x12f7d6=>_0x12f7d6['dispose']());}[_0x42de0f(0x326)](_0x5a501e){const _0x5c7579=_0x42de0f;let _0x35cbcd=this[_0x5c7579(0x409)][_0x5c7579(0x424)](_0x5a501e);return _0x35cbcd?_0x35cbcd[_0x5c7579(0x46d)]:this[_0x5c7579(0x429)][_0x5c7579(0x420)](_0x335bbe(_0x2de381=>_0x2de381['unitID']===_0x5a501e),_0xa50162(_0xf5da94=>_0xf5da94[_0x5c7579(0x46d)]));}[_0x42de0f(0x36d)](){const _0x180b99=_0x42de0f;this[_0x180b99(0x3c8)][_0x180b99(0x441)](_0x105cdb['UNIVER_SHEET'])[_0x180b99(0x420)](_0xafb3a3(this[_0x180b99(0x1f6)]))[_0x180b99(0x308)](async _0x35eb20=>{const _0x468172=_0x180b99;let _0x2a90d7=_0x35eb20[_0x468172(0x208)][_0x468172(0x284)](),_0x55a406=await this[_0x468172(0x3a5)](_0x2a90d7);this['_entityInit$'][_0x468172(0x28f)](_0x55a406),this[_0x468172(0x409)][_0x468172(0x41e)](_0x2a90d7,_0x55a406);}),this[_0x180b99(0x3c8)][_0x180b99(0x441)](_0x105cdb[_0x180b99(0x3d0)])[_0x180b99(0x420)](_0xafb3a3(this['dispose$']))[_0x180b99(0x420)](_0x335bbe(_0x1dc00d=>!_0x1dc00d[_0x180b99(0x208)]['getUnitId']()[_0x180b99(0x3b0)]('__')))[_0x180b99(0x308)](async _0x272c59=>{const _0x4d1b17=_0x180b99;let {unit:_0x2e50c7}=_0x272c59,_0x169167=_0x2e50c7[_0x4d1b17(0x284)](),_0x4a18ca=await this[_0x4d1b17(0x28b)](_0x169167);this[_0x4d1b17(0x429)]['next'](_0x4a18ca),this[_0x4d1b17(0x409)][_0x4d1b17(0x41e)](_0x169167,_0x4a18ca);}),_0x3e0292(this[_0x180b99(0x3c8)][_0x180b99(0x285)](_0x105cdb['UNIVER_DOC']),this[_0x180b99(0x3c8)][_0x180b99(0x285)](_0x105cdb['UNIVER_SHEET']))[_0x180b99(0x420)](_0xafb3a3(this[_0x180b99(0x1f6)]))[_0x180b99(0x308)](_0x10416c=>{const _0x280120=_0x180b99;let _0x12c224=_0x10416c[_0x280120(0x284)](),_0x48e95a=this['_entities'][_0x280120(0x424)](_0x12c224);_0x48e95a&&(_0x48e95a[_0x280120(0x239)](),this[_0x280120(0x409)]['delete'](_0x12c224));});}async[_0x42de0f(0x3a5)](_0x5c1c9e){const _0x5dd6e3=_0x42de0f;let _0x5b1a4b=await this['_collabSessionService'][_0x5dd6e3(0x2c4)](_0x5c1c9e),_0x32eb43=this[_0x5dd6e3(0x406)][_0x5dd6e3(0x40c)](yn,_0x5c1c9e,_0x5b1a4b);return _0x32eb43['init'](),_0x32eb43;}async['_startDocCollabCursor'](_0xbce790){const _0xfd1c1d=_0x42de0f;let _0x2f0c06=await this[_0xfd1c1d(0x398)][_0xfd1c1d(0x2c4)](_0xbce790),_0xabd013=this['_injector'][_0xfd1c1d(0x40c)](_n,_0xbce790,_0x2f0c06);return _0xabd013['init'](),_0xabd013;}};Q=X([Y(0x0,_0x5d6c76),Y(0x1,_0x3dc539(_0x247c0c)),Y(0x2,_0x3dc539(_0x1ad776))],Q);function bn(_0x8aba85,_0x206d84){const _0x32ebbd=_0x42de0f;_0x8aba85['save'](),_0x8aba85[_0x32ebbd(0x2a3)]=_0x32ebbd(0x351);let _0x5c08b4=_0x8aba85['measureText'](_0x206d84)['width'];return _0x8aba85[_0x32ebbd(0x209)](),Math['min'](_0x5c08b4+0x8,0xc8);}function xn(_0x36fb13,_0x472c36){const _0x3e9643=_0x42de0f;let {radius:_0xdb672a,width:_0x51713f,height:_0x495a22}=_0x472c36;_0xdb672a??=0x0,_0x51713f??=0x1e,_0x495a22??=0x1e;let _0x607214=0x0,_0x11d910=0x0,_0x4492dd=0x0;_0x607214=_0x11d910=_0x4492dd=Math[_0x3e9643(0x3d8)](_0xdb672a,_0x51713f/0x2,_0x495a22/0x2),_0x36fb13['beginPath'](),_0x36fb13[_0x3e9643(0x44c)](_0x607214,0x0),_0x36fb13[_0x3e9643(0x3b1)](_0x51713f-_0x11d910,0x0),_0x36fb13[_0x3e9643(0x20b)](_0x51713f-_0x11d910,_0x11d910,_0x11d910,Math['PI']*0x3/0x2,0x0,!0x1),_0x36fb13[_0x3e9643(0x3b1)](_0x51713f,_0x495a22-_0x4492dd),_0x36fb13['arc'](_0x51713f-_0x4492dd,_0x495a22-_0x4492dd,_0x4492dd,0x0,Math['PI']/0x2,!0x1),_0x36fb13[_0x3e9643(0x3b1)](0x0,_0x495a22),_0x36fb13[_0x3e9643(0x3b1)](0x0,_0x607214),_0x36fb13['arc'](_0x607214,_0x607214,_0x607214,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36fb13[_0x3e9643(0x315)](),_0x472c36[_0x3e9643(0x2b8)]&&(_0x36fb13[_0x3e9643(0x397)](),_0x36fb13[_0x3e9643(0x436)]=_0x472c36['fill'],_0x472c36[_0x3e9643(0x341)]===_0x3e9643(0x34f)?_0x36fb13[_0x3e9643(0x2b8)](_0x3e9643(0x34f)):_0x36fb13['fill'](),_0x36fb13['restore']());}var Sn=class e extends _0x2b88e0{constructor(_0x27cac7,_0x526294){const _0x3199df=_0x42de0f;super(_0x27cac7,_0x526294),J(this,_0x3199df(0x2c9),void 0x0),J(this,_0x3199df(0x383),void 0x0),this[_0x3199df(0x2c9)]=_0x526294==null?void 0x0:_0x526294[_0x3199df(0x2c9)],this[_0x3199df(0x383)]=_0x526294==null?void 0x0:_0x526294[_0x3199df(0x383)];}static[_0x42de0f(0x272)](_0x3d9d89,_0xefeedd){const _0x12b76e=_0x42de0f;let {text:_0xaf0cce,color:_0x310883}=_0xefeedd;_0x3d9d89[_0x12b76e(0x397)](),_0x3d9d89[_0x12b76e(0x2a3)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x3b84d0=_0x3d9d89[_0x12b76e(0x43a)](_0xaf0cce)[_0x12b76e(0x3a2)];if(xn(_0x3d9d89,{'height':0x14,'radius':0x4,'width':bn(_0x3d9d89,_0xaf0cce),'fill':_0x310883,'evented':!0x1}),_0x3d9d89[_0x12b76e(0x436)]=_0x12b76e(0x1f3),_0x3b84d0>0xc0){let _0x19df6c='',_0x4f0106=0x0;for(let _0x3a0654 of _0xaf0cce){let _0x1d828e=_0x3d9d89[_0x12b76e(0x43a)](_0x3a0654)[_0x12b76e(0x3a2)];if(_0x4f0106+_0x1d828e<=0xc0-_0x3d9d89[_0x12b76e(0x43a)](_0x12b76e(0x31b))['width'])_0x19df6c+=_0x3a0654,_0x4f0106+=_0x1d828e;else{_0x19df6c+=_0x12b76e(0x31b);break;}}_0x3d9d89['fillText'](_0x19df6c,0x4,0xf);}else _0x3d9d89['fillText'](_0xaf0cce,0x4,0xf);_0x3d9d89[_0x12b76e(0x209)]();}[_0x42de0f(0x325)](_0x59413b){const _0x389830=_0x42de0f;e[_0x389830(0x272)](_0x59413b,this);}};const Cn=_0x42de0f(0x3d9);var wn=class{constructor(_0x39bf93,_0x599fbd,_0x3718a8,_0x2e4e2b){const _0x2f839e=_0x42de0f;this[_0x2f839e(0x452)]=_0x39bf93,this[_0x2f839e(0x427)]=_0x599fbd,this[_0x2f839e(0x251)]=_0x3718a8,this[_0x2f839e(0x367)]=_0x2e4e2b,J(this,'_shapes',[]),J(this,_0x2f839e(0x2d1),null),J(this,'_textBubble',null),J(this,_0x2f839e(0x32f),null),J(this,_0x2f839e(0x327),null),J(this,_0x2f839e(0x38a),null),this['_render']();}set[_0x42de0f(0x3b6)](_0x5f5553){const _0x5b969d=_0x42de0f;_0x5f5553?(this[_0x5b969d(0x32f)]&&this[_0x5b969d(0x32f)][_0x5b969d(0x3e9)](),this[_0x5b969d(0x230)]&&this[_0x5b969d(0x230)][_0x5b969d(0x37d)]()):(this[_0x5b969d(0x32f)]&&this[_0x5b969d(0x32f)][_0x5b969d(0x37d)](),this[_0x5b969d(0x230)]&&this[_0x5b969d(0x230)][_0x5b969d(0x3e9)]());}[_0x42de0f(0x239)](){const _0x3e3bc2=_0x42de0f;for(let _0x1ae4bd of this[_0x3e3bc2(0x221)])_0x1ae4bd[_0x3e3bc2(0x239)]();this[_0x3e3bc2(0x230)]&&this['_textBubble'][_0x3e3bc2(0x239)](),this[_0x3e3bc2(0x32f)]&&this[_0x3e3bc2(0x32f)][_0x3e3bc2(0x239)](),this['_anchor']&&this[_0x3e3bc2(0x2d1)][_0x3e3bc2(0x239)](),this['_eventUnsubscribe']&&this[_0x3e3bc2(0x38a)]();}[_0x42de0f(0x332)](){const _0xbd2863=_0x42de0f;let {_docSkeleton:_0x4677ce,_document:_0x3f2282}=this,{color:_0x10260d,name:_0x4f8b5e,ranges:_0x42abf6}=this[_0xbd2863(0x452)],_0x39da5e=_0x3f2282[_0xbd2863(0x3c1)](),{docsLeft:_0x291d18,docsTop:_0x376a42}=_0x39da5e,_0x3af323=new _0x35e650(_0x39da5e,_0x4677ce);for(let {startOffset:_0x2d8f4a,endOffset:_0x53c3e2,rangeType:_0x5b6506,segmentId:_0x1e0d84,segmentPage:_0xc2b0ef,collapsed:_0x2c89eb,isActive:_0x5c04cd}of _0x42abf6){let _0x5d0206=_0x4677ce[_0xbd2863(0x246)](_0x2d8f4a,!0x0,_0x1e0d84,_0xc2b0ef),_0x1d92b3=_0x4677ce['findNodePositionByCharIndex'](_0x53c3e2,!0x0,_0x1e0d84,_0xc2b0ef);_0x1d92b3??=_0x4677ce[_0xbd2863(0x246)](_0x53c3e2-0x1,!0x1,_0x1e0d84,_0xc2b0ef);let _0x274936=Tn(_0x5d0206,_0x1d92b3);if(_0x5c04cd&&_0x274936[_0xbd2863(0x36c)]){let {contentBoxPointGroup:_0x535d53}=_0x3af323[_0xbd2863(0x24b)](_0x1d92b3,_0x1d92b3);if(_0x535d53['length']===0x0)continue;this['_drawAnchor'](_0x10260d,_0x535d53,_0x291d18,_0x376a42,_0x4f8b5e),this[_0xbd2863(0x38a)]=this[_0xbd2863(0x426)]();}if(_0x5d0206&&_0x1d92b3){if(_0x5b6506===_0x129afa[_0xbd2863(0x378)]){let {pointGroup:_0x55ecfe}=new _0xd0e1a5(_0x39da5e,_0x4677ce)[_0xbd2863(0x24b)](_0x5d0206,_0x1d92b3)??{};if(_0x55ecfe==null||_0x55ecfe[_0xbd2863(0x41b)]===0x0)continue;this['_drawRectRange'](_0x10260d,_0x55ecfe,_0x291d18,_0x376a42);}else{if(!_0x2c89eb&&_0x274936[_0xbd2863(0x304)]){let {borderBoxPointGroup:_0x3ee74a}=_0x3af323[_0xbd2863(0x24b)](_0x5d0206,_0x1d92b3);if(_0x3ee74a[_0xbd2863(0x41b)]===0x0)continue;this['_drawTextRange'](_0x10260d,_0x3ee74a,_0x291d18,_0x376a42);}}}}}[_0x42de0f(0x307)](_0x1d6e6d,_0x54b267,_0x7aad8e,_0x2cff3f,_0x56f0f8){const _0x541117=_0x42de0f;let {left:_0x191810,top:_0x3889c2,height:_0x5096e6}=this[_0x541117(0x40f)](_0x54b267),_0x3468b5=1.5/this[_0x541117(0x2be)](),_0x4d79fc=new _0x2a4280(Cn+_0x4367b0(0x6),{'left':_0x191810+_0x7aad8e-_0x3468b5,'top':_0x3889c2+_0x2cff3f,'height':_0x5096e6,'width':1.5,'fill':_0x1d6e6d||_0x2e5818(_0x153437[_0x541117(0x255)],0x0),'strokeWidth':_0x3468b5,'stroke':_0x541117(0x3cb),'evented':!0x0});this['_anchor']=_0x4d79fc,this['_scene'][_0x541117(0x3cc)](_0x4d79fc,_0x2ca413);let _0x2dff7d=new _0x2a4280(Cn+_0x4367b0(0x6),{'left':_0x191810+_0x7aad8e-_0x3468b5,'top':_0x3889c2+_0x2cff3f-0x2,'height':0x4,'width':0x4,'fill':_0x1d6e6d||_0x2e5818(_0x153437[_0x541117(0x255)],0x0),'strokeWidth':0x0,'stroke':_0x1d6e6d||_0x2e5818(_0x153437[_0x541117(0x255)],0x0),'evented':!0x1});this[_0x541117(0x32f)]=_0x2dff7d,this[_0x541117(0x427)]['addObject'](_0x2dff7d,_0x2ca413);let _0x4283ef=new Sn(Cn+_0x4367b0(0x6),{'left':_0x191810+_0x7aad8e-_0x3468b5,'top':_0x3889c2+_0x2cff3f-0x14,'text':_0x56f0f8,'color':_0x1d6e6d});this['_textBubble']=_0x4283ef,this[_0x541117(0x427)]['addObject'](_0x4283ef,_0x2ca413),this[_0x541117(0x3b6)]=!0x1;}['_handleHover'](){const _0x3f6e3b=_0x42de0f;let _0x3f7749=this[_0x3f6e3b(0x2d1)]['onPointerEnter$'][_0x3f6e3b(0x1f2)](()=>{const _0x411161=_0x3f6e3b;this[_0x411161(0x3b6)]=!0x0;}),_0x3833c5=this[_0x3f6e3b(0x2d1)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x3cf214=_0x3f6e3b;this[_0x3cf214(0x327)]&&clearTimeout(this[_0x3cf214(0x327)]),this[_0x3cf214(0x327)]=setTimeout(()=>{const _0x306bab=_0x3cf214;this[_0x306bab(0x3b6)]=!0x1;},0x7d0);});return()=>{_0x3f7749['unsubscribe'](),_0x3833c5['unsubscribe']();};}[_0x42de0f(0x364)](_0x2e374d,_0x2f4b88,_0x40b840,_0x473187){const _0x4cfb25=_0x42de0f;let _0x2014d9=0.2,_0x5c3a94=new _0x5d20e8(_0x2e374d)[_0x4cfb25(0x20a)](_0x2014d9)[_0x4cfb25(0x34e)](),_0xa2c4e1=new _0x3cee4c('collab-text-range-'+_0x4367b0(0x6),{'pointsGroup':_0x2f4b88,'fill':_0x5c3a94||_0x2e5818(_0x153437[_0x4cfb25(0x255)],_0x2014d9),'left':_0x40b840,'top':_0x473187,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4cfb25(0x221)][_0x4cfb25(0x425)](_0xa2c4e1),this[_0x4cfb25(0x427)][_0x4cfb25(0x3cc)](_0xa2c4e1,_0x2ca413);}[_0x42de0f(0x291)](_0x1ab146,_0x383fbb,_0xd07987,_0x14cd10){const _0xe87eb9=_0x42de0f;let _0x3a1995=0.2,_0x989c8c=new _0x5d20e8(_0x1ab146)[_0xe87eb9(0x20a)](_0x3a1995)[_0xe87eb9(0x34e)](),_0x16261e=new _0x3cee4c(_0xe87eb9(0x2de)+_0x4367b0(0x6),{'pointsGroup':_0x383fbb,'fill':_0x989c8c||_0x2e5818(_0x153437[_0xe87eb9(0x255)],_0x3a1995),'left':_0xd07987,'top':_0x14cd10,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe87eb9(0x221)][_0xe87eb9(0x425)](_0x16261e),this[_0xe87eb9(0x427)][_0xe87eb9(0x3cc)](_0x16261e,_0x2ca413);}['_getAnchorBounding'](_0x3f57c8){let _0x421e7f=_0x3f57c8[0x0],_0x1ad3fe=_0x421e7f[0x0],_0x5165a1=_0x421e7f[0x2],{x:_0x3a4f58,y:_0x37a2be}=_0x1ad3fe,{x:_0x2bbd8a,y:_0x3c89d2}=_0x5165a1;return{'left':_0x3a4f58,'top':_0x37a2be,'width':_0x2bbd8a-_0x3a4f58,'height':_0x3c89d2-_0x37a2be};}[_0x42de0f(0x2be)](){const _0xe5c504=_0x42de0f;let {scaleX:_0x22f207,scaleY:_0x465d3f}=this[_0xe5c504(0x427)][_0xe5c504(0x3d3)]();return Math[_0xe5c504(0x44a)](_0x22f207,_0x465d3f);}};function Tn(_0x9c9ec0,_0x54f5d4){const _0x1e981c=_0x42de0f;if(!_0x54f5d4)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x9c9ec0||_0x9c9ec0[_0x1e981c(0x446)]!==_0x54f5d4[_0x1e981c(0x446)]||(_0x9c9ec0['pageType']===_0x2e53e1[_0x1e981c(0x348)]||_0x9c9ec0['pageType']===_0x2e53e1['FOOTER'])&&_0x9c9ec0[_0x1e981c(0x324)]!==_0x54f5d4['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x3098f2=_0x134f2c(_0x9c9ec0),_0x1e5fe5=_0x134f2c(_0x54f5d4);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x3098f2==null||_0x1e5fe5==null?_0x3098f2==null&&_0x1e5fe5==null:_0x3098f2[_0x1e981c(0x280)]===_0x1e5fe5[_0x1e981c(0x280)]&&_0x3098f2[_0x1e981c(0x3d5)]===_0x1e5fe5[_0x1e981c(0x3d5)]&&_0x3098f2['columnIndex']===_0x1e5fe5[_0x1e981c(0x260)]};}let En=class extends _0x211d9e{constructor(_0x1084d7,_0x58424f,_0x1774d9,_0x1d48df,_0x49696b){const _0x1a85e0=_0x42de0f;super(),this[_0x1a85e0(0x2e9)]=_0x1084d7,this[_0x1a85e0(0x258)]=_0x58424f,this[_0x1a85e0(0x464)]=_0x1774d9,this['_commandService']=_0x1d48df,this[_0x1a85e0(0x256)]=_0x49696b,J(this,_0x1a85e0(0x470),[]),J(this,_0x1a85e0(0x305),[]),this[_0x1a85e0(0x36d)]();}['_init'](){const _0x37c218=_0x42de0f;let _0x2667f7=this['_context']['unitId'],_0x37ca7c=this[_0x37c218(0x258)];this[_0x37c218(0x399)](_0x3e87db([this[_0x37c218(0x464)][_0x37c218(0x326)](_0x2667f7),this[_0x37c218(0x256)]['currentTheme$']])[_0x37c218(0x420)](_0x381518(([_0x23ea08,_0x1c9f72])=>({'skeleton':_0x37ca7c['getSkeleton'](),'cursors':[..._0x23ea08[_0x37c218(0x30f)]()][_0x37c218(0x238)](_0x1ad006=>({..._0x1ad006,'color':this[_0x37c218(0x256)][_0x37c218(0x417)](_0x1ad006[_0x37c218(0x2c9)])}))})))['subscribe'](_0x53c406=>{const _0x57ed3b=_0x37c218;if(this[_0x57ed3b(0x21d)](),_0x53c406){let {skeleton:_0x515b90,cursors:_0x4d5574}=_0x53c406;this[_0x57ed3b(0x38c)](_0x515b90,_0x4d5574);}})),this[_0x37c218(0x23c)](),this[_0x37c218(0x465)]();}[_0x42de0f(0x38c)](_0x379909,_0x51e2ec){const _0x53643b=_0x42de0f;let {scene:_0x3b1e56,mainComponent:_0x2a6926}=this['_context'],_0xf3cc8c=_0x51e2ec[_0x53643b(0x22b)](_0x558d40=>new wn(_0x558d40,_0x3b1e56,_0x379909,_0x2a6926));this[_0x53643b(0x470)]=_0xf3cc8c,this[_0x53643b(0x305)]=_0x51e2ec;}[_0x42de0f(0x292)](){const _0x47dd27=_0x42de0f;this[_0x47dd27(0x21d)]();let {scene:_0x51afaa,mainComponent:_0x3c113d}=this[_0x47dd27(0x2e9)],_0x43aaa3=this[_0x47dd27(0x258)]['getSkeleton'](),_0x3d5dce=this[_0x47dd27(0x305)][_0x47dd27(0x22b)](_0x35255d=>new wn(_0x35255d,_0x51afaa,_0x43aaa3,_0x3c113d));this['_cursorShapes']=_0x3d5dce;}[_0x42de0f(0x21d)](){const _0x3b0b2c=_0x42de0f;this['_cursorShapes']['forEach'](_0x484be6=>_0x484be6[_0x3b0b2c(0x239)]()),this['_cursorShapes']=[];}[_0x42de0f(0x465)](){const _0x1f8788=_0x42de0f;let _0x1b7606=[_0x472757['id']];this['disposeWithMe'](this['_commandService'][_0x1f8788(0x289)](_0x4f33ef=>{const _0x7296e2=_0x1f8788;_0x1b7606[_0x7296e2(0x3b9)](_0x4f33ef['id'])&&_0x4f33ef[_0x7296e2(0x3a8)][_0x7296e2(0x408)]===this[_0x7296e2(0x2e9)][_0x7296e2(0x408)]&&this['_refreshCollabCursors']();}));}[_0x42de0f(0x23c)](){const _0x5790f4=_0x42de0f;this[_0x5790f4(0x399)](_0x49a50f(this[_0x5790f4(0x2e9)]['engine'][_0x5790f4(0x354)])[_0x5790f4(0x420)](_0x4043aa(_0x55c688=>_0x55c688[_0x5790f4(0x3f7)]===_0x4eca70[_0x5790f4(0x290)]),_0xe6d671(0x10))[_0x5790f4(0x308)](()=>{const _0x2f1475=_0x5790f4;this[_0x2f1475(0x292)]();}));}};En=X([Y(0x1,_0x3dc539(_0x428f57)),Y(0x2,_0x3dc539(Q)),Y(0x3,_0x639c87),Y(0x4,_0x3dc539(_0x2b8d47))],En);var Dn=class extends _0x2b88e0{constructor(_0x26db5a,_0x343169){const _0x3adcf0=_0x42de0f;super(_0x26db5a,_0x343169),J(this,'_color',void 0x0),J(this,'_hovered',!0x1),J(this,_0x3adcf0(0x33d),void 0x0),J(this,_0x3adcf0(0x23e),''),J(this,_0x3adcf0(0x2cc),'top'),J(this,'_backgroundColor',void 0x0),J(this,'_showText',void 0x0),J(this,'_highlight',void 0x0),J(this,'_highlightSecond',0x4),J(this,_0x3adcf0(0x314),void 0x0),J(this,_0x3adcf0(0x35f),void 0x0),J(this,_0x3adcf0(0x20e),!0x0),J(this,_0x3adcf0(0x26c),0x0),J(this,_0x3adcf0(0x415),_0x3adcf0(0x404)),_0x343169&&(this[_0x3adcf0(0x3ec)](_0x343169),_0x343169['highlight']&&(_0x343169['highlightSecond']??this[_0x3adcf0(0x2fc)])&&this[_0x3adcf0(0x2ef)](_0x343169[_0x3adcf0(0x31c)]??this[_0x3adcf0(0x2fc)])),this[_0x3adcf0(0x323)][_0x3adcf0(0x1f2)](()=>this[_0x3adcf0(0x3ec)]({'hovered':!0x0})),this[_0x3adcf0(0x227)][_0x3adcf0(0x1f2)](()=>this[_0x3adcf0(0x3ec)]({'hovered':!0x1}));}[_0x42de0f(0x250)](_0x275859){this['_offsetY']=_0x275859;}[_0x42de0f(0x3ec)](_0x9220d){const _0xfaf3ee=_0x42de0f;this['_color']=_0x9220d['color']??this['_color'],this['_hovered']=_0x9220d[_0xfaf3ee(0x39d)]??this[_0xfaf3ee(0x3c6)],this[_0xfaf3ee(0x33d)]=_0x9220d[_0xfaf3ee(0x38d)]??this[_0xfaf3ee(0x33d)],this['_name']=_0x9220d[_0xfaf3ee(0x3ae)]??this[_0xfaf3ee(0x23e)],this[_0xfaf3ee(0x2cc)]=_0x9220d['labelPosition']??this[_0xfaf3ee(0x2cc)],this[_0xfaf3ee(0x2c8)]=_0x9220d[_0xfaf3ee(0x469)]??this[_0xfaf3ee(0x2c8)],this[_0xfaf3ee(0x355)]=_0x9220d[_0xfaf3ee(0x306)]??this[_0xfaf3ee(0x355)],this[_0xfaf3ee(0x415)]=_0x9220d[_0xfaf3ee(0x476)]??this[_0xfaf3ee(0x415)],_0x9220d[_0xfaf3ee(0x31c)]!==void 0x0&&(this[_0xfaf3ee(0x2fc)]=_0x9220d[_0xfaf3ee(0x31c)]),_0x9220d[_0xfaf3ee(0x363)]!==void 0x0&&(this[_0xfaf3ee(0x44e)]=_0x9220d[_0xfaf3ee(0x363)]),_0x9220d[_0xfaf3ee(0x31f)]!==void 0x0&&(this['_offsetY']=_0x9220d[_0xfaf3ee(0x31f)]),this[_0xfaf3ee(0x444)]({'width':_0x9220d[_0xfaf3ee(0x3a2)],'height':_0x9220d['height']});}[_0x42de0f(0x27a)](_0x66f6ca){const _0xc0eaf5=_0x42de0f;let {row:_0xecb31,column:_0x158dc5}=_0x66f6ca;_0xecb31>=this[_0xc0eaf5(0x33d)][_0xc0eaf5(0x37e)]&&_0xecb31<=this[_0xc0eaf5(0x33d)][_0xc0eaf5(0x42c)]&&_0x158dc5>=this[_0xc0eaf5(0x33d)][_0xc0eaf5(0x27b)]&&_0x158dc5<=this[_0xc0eaf5(0x33d)][_0xc0eaf5(0x3f2)]?this[_0xc0eaf5(0x3ec)]({'hovered':!0x0}):this[_0xc0eaf5(0x3ec)]({'hovered':!0x1});}[_0x42de0f(0x2ef)](_0x24ebb6){const _0x3e6906=_0x42de0f;this[_0x3e6906(0x3db)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x3e6906(0x3ee)](()=>{const _0x29e845=_0x3e6906;this[_0x29e845(0x20e)]=!this[_0x29e845(0x20e)],this[_0x29e845(0x28c)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x3e6906(0x228)](()=>{const _0x23a6ba=_0x3e6906;this[_0x23a6ba(0x3db)](),this[_0x23a6ba(0x20e)]=!0x0,this['makeDirty'](!0x0);},_0x24ebb6*0x3e8);}[_0x42de0f(0x3db)](){const _0x1f98c5=_0x42de0f;this['_blinkIntervalTimer']&&=(window[_0x1f98c5(0x254)](this['_blinkIntervalTimer']),void 0x0),this[_0x1f98c5(0x314)]&&=(window['clearTimeout'](this['_blinkTimer']),void 0x0);}[_0x42de0f(0x22f)](_0x3ba86d){return!0x1;}['dispose'](){const _0x4d29ec=_0x42de0f;this['_stopBlinking'](),super[_0x4d29ec(0x239)]();}[_0x42de0f(0x325)](_0x106382){const _0x23679c=_0x42de0f;let _0x55038e=this[_0x23679c(0x3af)],_0x4704bc=this[_0x23679c(0x2c8)];if(this[_0x23679c(0x44e)]&&!this[_0x23679c(0x20e)]&&(_0x55038e=this[_0x23679c(0x393)](this['_color']),_0x4704bc=this['_backgroundColor']?this[_0x23679c(0x393)](this[_0x23679c(0x2c8)]):void 0x0),_0x2a4280[_0x23679c(0x272)](_0x106382,{'width':this[_0x23679c(0x3a2)],'height':this[_0x23679c(0x1ef)],'strokeWidth':this[_0x23679c(0x331)]||1.5,'stroke':_0x55038e,'evented':!0x1,'fill':_0x4704bc}),this[_0x23679c(0x3c6)]||this[_0x23679c(0x355)]){_0x106382['save']();let _0x504052=this[_0x23679c(0x415)]===_0x23679c(0x28a)?-bn(_0x106382,this[_0x23679c(0x23e)]):this[_0x23679c(0x3a2)];_0x106382[_0x23679c(0x1fb)](0x1,0x0,0x0,0x1,_0x504052,(this['_labelPosition']===_0x23679c(0x220)?0x0:-0x14)+(this[_0x23679c(0x26c)]??0x0)),Sn[_0x23679c(0x272)](_0x106382,{'text':this[_0x23679c(0x23e)],'color':_0x55038e}),_0x106382[_0x23679c(0x209)]();}}[_0x42de0f(0x393)](_0x2dc732){const _0x17a896=_0x42de0f;return _0x2dc732[_0x17a896(0x3b0)]('#')?_0x17a896(0x400)+Number[_0x17a896(0x42f)](_0x2dc732[_0x17a896(0x2ca)](0x1,0x3),0x10)+',\x20'+Number[_0x17a896(0x42f)](_0x2dc732[_0x17a896(0x2ca)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x2dc732[_0x17a896(0x2ca)](0x5,0x7),0x10)+',\x200.2)':_0x2dc732[_0x17a896(0x3b0)](_0x17a896(0x336))?_0x2dc732['replace'](/[\d.]+\)$/g,_0x17a896(0x473)):_0x2dc732['startsWith'](_0x17a896(0x44b))?_0x2dc732['replace'](_0x17a896(0x44b),_0x17a896(0x336))[_0x17a896(0x3c2)](')',',\x200.2)'):_0x2dc732;}};let On=class extends _0x211d9e{constructor(_0x1b9f46,_0x410b04,_0x485706,_0x52561c){const _0x6a56c0=_0x42de0f;super(),this[_0x6a56c0(0x2e9)]=_0x1b9f46,this['_sheetSkeletonManagerService']=_0x410b04,this[_0x6a56c0(0x464)]=_0x485706,this[_0x6a56c0(0x256)]=_0x52561c,J(this,_0x6a56c0(0x305),new Set()),J(this,_0x6a56c0(0x257),null),J(this,_0x6a56c0(0x212),null),this[_0x6a56c0(0x36d)]();}[_0x42de0f(0x36d)](){const _0x1153b0=_0x42de0f;this[_0x1153b0(0x2b6)][_0x1153b0(0x30b)]['pipe'](_0x18ac5c(this[_0x1153b0(0x1f6)]),_0x135137(_0x85122c=>{const _0x21dd5b=_0x1153b0;if(_0x85122c){let _0x34af94=_0x85122c[_0x21dd5b(0x30e)];return _0x3e87db(this['_collabCursorController'][_0x21dd5b(0x326)](this[_0x21dd5b(0x2e9)]['unitId']),this['_themeService'][_0x21dd5b(0x3de)])['pipe'](_0x381518(([_0x3ff8f7,_0x2747d3])=>{const _0x3c16ca=_0x21dd5b;let _0x16a994=new Map();return _0x3ff8f7[_0x3c16ca(0x302)]((_0x3d26c4,_0x1bda37)=>{const _0x1272e0=_0x3c16ca;if(_0x3d26c4[_0x1272e0(0x29e)]===_0x34af94){let _0x420cf0={..._0x3d26c4};_0x420cf0[_0x1272e0(0x2c9)]=this[_0x1272e0(0x256)][_0x1272e0(0x417)](_0x3d26c4['color']),_0x16a994['set'](_0x1bda37,_0x420cf0);}}),{'skeleton':_0x85122c,'cursors':_0x16a994};}));}return _0x4d51d1({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x24f8bf,cursors:_0xe785d7})=>{const _0x5ee2eb=_0x1153b0;this[_0x5ee2eb(0x21d)](),_0x24f8bf&&this['_updateCollabCursors'](_0x24f8bf,_0xe785d7);}),this['disposeWithMe'](this[_0x1153b0(0x2b6)]['currentSkeleton$']['pipe'](_0x18ac5c(this[_0x1153b0(0x1f6)]))[_0x1153b0(0x308)](_0x3fe4de=>{const _0x392dae=_0x1153b0;var _0x308a24;if(_0x3fe4de==null)return;(_0x308a24=this[_0x392dae(0x212)])==null||_0x308a24[_0x392dae(0x458)](),this[_0x392dae(0x212)]=null;let {skeleton:_0x71cb52}=_0x3fe4de,{scene:_0x382e24}=this['_context'];this[_0x392dae(0x212)]=_0x382e24['onPointerMove$'][_0x392dae(0x1f2)](_0x51c890(_0x24f9b5=>{const _0x4b7c5b=_0x392dae;var _0x3ae734,_0x21dc40;let {offsetX:_0x1c7418,offsetY:_0x610481}=_0x24f9b5,{x:_0x1fca8e,y:_0x3c5cfb}=_0x382e24[_0x4b7c5b(0x3e8)](_0x413a0c[_0x4b7c5b(0x224)]([_0x1c7418,_0x610481])),{scaleX:_0x479e68,scaleY:_0x3b57c8}=_0x382e24[_0x4b7c5b(0x3d3)](),_0x31df55=_0x382e24[_0x4b7c5b(0x274)](_0x4a8df5['VIEW_MAIN']),_0x21109d=_0x382e24['getScrollXYInfoByViewport'](_0x413a0c[_0x4b7c5b(0x224)]([_0x1fca8e,_0x3c5cfb]),_0x31df55),_0x187003=_0x71cb52['getCellIndexByOffset'](_0x1c7418,_0x610481,_0x479e68,_0x3b57c8,_0x21109d);(((_0x3ae734=this['_lastPointer'])==null?void 0x0:_0x3ae734[_0x4b7c5b(0x3d7)])!==_0x187003[_0x4b7c5b(0x3d7)]||((_0x21dc40=this[_0x4b7c5b(0x257)])==null?void 0x0:_0x21dc40[_0x4b7c5b(0x25e)])!==_0x187003[_0x4b7c5b(0x25e)])&&this[_0x4b7c5b(0x305)][_0x4b7c5b(0x302)](_0x327e8c=>{const _0x457918=_0x4b7c5b;_0x327e8c[_0x457918(0x27a)](_0x187003);});},0x64));})),this[_0x1153b0(0x399)](_0x11e849(()=>{const _0x2a5a82=_0x1153b0;var _0x26d6e6;(_0x26d6e6=this['_pointerMoveDisposable'])==null||_0x26d6e6['unsubscribe'](),this[_0x2a5a82(0x212)]=null;}));}[_0x42de0f(0x38c)](_0xfc8cdf,_0x172e30){const _0xd0b46d=_0x42de0f;let _0x541054=this['_sheetSkeletonManagerService'][_0xd0b46d(0x3d6)]();if(!_0x541054)return;let _0x1b20a0=this[_0xd0b46d(0x226)]();if(!_0x1b20a0)return;this[_0xd0b46d(0x305)][_0xd0b46d(0x302)](_0x2334fc=>{const _0x222ab0=_0xd0b46d;_0x2334fc[_0x222ab0(0x28c)]();});let {scene:_0x2b7420}=_0x1b20a0,_0x106fd3=kn(Array[_0xd0b46d(0x37c)](_0x172e30[_0xd0b46d(0x30f)]()))[_0xd0b46d(0x22b)](_0x5c1572=>{const _0x2bcc2e=_0xd0b46d;let {color:_0x1cc115,range:_0x48306b,name:_0x28b45b,selection:_0x97b212,sheetID:_0x5a4a5b}=_0x5c1572,{startColumn:_0x301f13,startRow:_0x51e5ca,endColumn:_0x52c166,endRow:_0x120cce}=_0x48306b,_0xc9ceec=_0x39cb1b(_0x51e5ca,_0x301f13,_0x2b7420,_0x541054),_0x2d7725=_0x39cb1b(_0x120cce,_0x52c166,_0x2b7420,_0x541054),{columnHeaderHeightAndMarginTop:_0x3db0d4}=_0x541054,{startX:_0x3493ff,startY:_0x5a01b6}=_0xc9ceec,{endX:_0xc0a4d6,endY:_0x5698b8}=_0x2d7725,_0x356b99=_0xc0a4d6-_0x3493ff,_0x20cbe8=_0x5698b8-_0x5a01b6;return new Dn(_0x28b45b,{'labelPosition':_0x5a01b6-_0x3db0d4>=0x14?_0x2bcc2e(0x432):_0x2bcc2e(0x220),'sheetID':_0x5a4a5b,'range':_0x48306b,'color':_0x1cc115,'name':_0x28b45b,'selection':_0x97b212,'left':_0x3493ff,'top':_0x5a01b6,'width':_0x356b99,'height':_0x20cbe8,'evented':!0x1,'zIndex':0x1389});});_0x2b7420[_0xd0b46d(0x35c)](_0x106fd3,0x1),this[_0xd0b46d(0x305)]=new Set(_0x106fd3);}['_removeCollabCursors'](){const _0x21b563=_0x42de0f;var _0x51f5e7;(_0x51f5e7=this[_0x21b563(0x305)])==null||_0x51f5e7['forEach'](_0x2d15e6=>_0x2d15e6['dispose']());}[_0x42de0f(0x226)](){const _0x5daf8b=_0x42de0f;return _0x4acecd(this[_0x5daf8b(0x2e9)]['unit'],this[_0x5daf8b(0x2e9)]);}};On=X([Y(0x1,_0x3dc539(_0x2a213a)),Y(0x2,_0x3dc539(Q)),Y(0x3,_0x3dc539(_0x2b8d47))],On);function kn(_0x5085f2){const _0x10abd2=_0x42de0f;let _0x5ac5e8=new Map();return _0x5085f2[_0x10abd2(0x302)](_0x55c02b=>{const _0x291734=_0x10abd2;if(_0x5ac5e8[_0x291734(0x2e1)](_0x55c02b[_0x291734(0x445)])){let _0x1887f3=_0x5ac5e8[_0x291734(0x424)](_0x55c02b[_0x291734(0x445)]);_0x1887f3[_0x291734(0x3ae)]+=',\x20'+_0x55c02b[_0x291734(0x3ae)];}else _0x5ac5e8['set'](_0x55c02b[_0x291734(0x445)],_0x55c02b);}),Array[_0x10abd2(0x37c)](_0x5ac5e8['values']());}function An(_0x547554){return typeof _0x547554=='object'&&!!_0x547554;}function jn(_0x5c009d){const _0x3e3826=_0x42de0f;return _0x5c009d['eventID']===_0x3a18c3['UPDATE_CURSOR']&&_0x3e3826(0x35b)in _0x5c009d&&An(_0x5c009d[_0x3e3826(0x35b)])&&typeof _0x5c009d[_0x3e3826(0x35b)]['memberID']==_0x3e3826(0x396)&&typeof _0x5c009d['data'][_0x3e3826(0x445)]==_0x3e3826(0x396);}function Mn(_0x462052){const _0x11d01e=_0x42de0f;return _0x462052[_0x11d01e(0x32c)]===_0x3a18c3[_0x11d01e(0x46b)]&&_0x11d01e(0x35b)in _0x462052&&An(_0x462052['data'])&&typeof _0x462052['data'][_0x11d01e(0x43e)]=='string';}function Nn(_0x286c31,_0xe414e1){const _0x4362ce=_0x42de0f;let _0x4c5ad0;try{_0x4c5ad0=JSON[_0x4362ce(0x21e)](_0x286c31);}catch{return null;}if(!An(_0x4c5ad0)||typeof _0x4c5ad0[_0x4362ce(0x3ff)]!=_0x4362ce(0x396)||typeof _0x4c5ad0[_0x4362ce(0x408)]!='string'||typeof _0x4c5ad0[_0x4362ce(0x453)]!=_0x4362ce(0x396))return null;let _0x146168=typeof _0x4c5ad0[_0x4362ce(0x407)]==_0x4362ce(0x447)?_0x4c5ad0['unitType']:_0xe414e1;if(_0x146168==null)return null;let _0xcdfb66=An(_0x4c5ad0['pointer'])&&typeof _0x4c5ad0[_0x4362ce(0x22c)]['x']==_0x4362ce(0x447)&&Number[_0x4362ce(0x380)](_0x4c5ad0[_0x4362ce(0x22c)]['x'])&&typeof _0x4c5ad0['pointer']['y']==_0x4362ce(0x447)&&Number[_0x4362ce(0x380)](_0x4c5ad0[_0x4362ce(0x22c)]['y'])?{'x':_0x4c5ad0[_0x4362ce(0x22c)]['x'],'y':_0x4c5ad0['pointer']['y']}:null;return{'kind':_0x4c5ad0[_0x4362ce(0x3ff)],'unitType':_0x146168,'unitId':_0x4c5ad0['unitId'],'subUnitId':_0x4c5ad0[_0x4362ce(0x453)],'selectedIds':Array['isArray'](_0x4c5ad0[_0x4362ce(0x466)])?_0x4c5ad0[_0x4362ce(0x466)][_0x4362ce(0x30c)](_0x291c08=>typeof _0x291c08==_0x4362ce(0x396)):[],'focusedId':typeof _0x4c5ad0[_0x4362ce(0x317)]==_0x4362ce(0x396)?_0x4c5ad0[_0x4362ce(0x317)]:null,'pointer':_0xcdfb66};}function Pn(_0x5a480a,_0x5d2672,_0x13b0dc){const _0x1ecee8=_0x42de0f;return{'kind':_0x5d2672,'unitType':_0x5a480a,'unitId':_0x13b0dc[_0x1ecee8(0x408)],'subUnitId':_0x13b0dc[_0x1ecee8(0x453)],'selectedIds':Array['from'](_0x13b0dc[_0x1ecee8(0x466)]),'focusedId':_0x13b0dc[_0x1ecee8(0x317)],'pointer':_0x13b0dc[_0x1ecee8(0x22c)]?{..._0x13b0dc[_0x1ecee8(0x22c)]}:null};}let Fn=class extends _0x211d9e{constructor(_0x2777e8,_0xa3c46f,_0x51b3c2,_0x54112d,_0x5a1440,_0x118657){const _0x20c436=_0x42de0f;super(),this['unitId']=_0x2777e8,this[_0x20c436(0x27f)]=_0xa3c46f,this['_adapter']=_0x51b3c2,this['_colorAssignService']=_0x54112d,this['_memberService']=_0x5a1440,this[_0x20c436(0x2b4)]=_0x118657,J(this,'_online',!0x1),J(this,_0x20c436(0x39e),!0x1);}get[_0x42de0f(0x407)](){const _0x543b89=_0x42de0f;return this[_0x543b89(0x21f)][_0x543b89(0x407)];}[_0x42de0f(0x239)](){const _0x323947=_0x42de0f;this[_0x323947(0x2dd)](),super[_0x323947(0x239)]();}[_0x42de0f(0x3cf)](){const _0x4d371a=_0x42de0f;this[_0x4d371a(0x39e)]||(this[_0x4d371a(0x39e)]=!0x0,this['_session'][_0x4d371a(0x36e)][_0x4d371a(0x420)](_0xafb3a3(this['dispose$']))[_0x4d371a(0x308)](_0x20280b=>{const _0x369512=_0x4d371a;if(_0x20280b===_0x1544ff['ONLINE']){this[_0x369512(0x3ef)]=!0x0;let _0x58571c=this[_0x369512(0x21f)]['getLocalPresence'](this[_0x369512(0x408)]);_0x58571c&&this['_sendLocalPresence'](_0x58571c);}else this[_0x369512(0x3ef)]=!0x1,this[_0x369512(0x2dd)]();}),this[_0x4d371a(0x27f)]['event$'][_0x4d371a(0x420)](_0xafb3a3(this['dispose$']))[_0x4d371a(0x308)](_0x35fb39=>{const _0x5f19f9=_0x4d371a;jn(_0x35fb39)?this[_0x5f19f9(0x3a9)](_0x35fb39):Mn(_0x35fb39)&&this['_removeRemotePresence'](_0x35fb39['data'][_0x5f19f9(0x43e)]);}),this[_0x4d371a(0x21f)]['localPresence$'][_0x4d371a(0x420)](_0x335bbe(_0x52e000=>this['_online']&&_0x52e000[_0x4d371a(0x408)]===this[_0x4d371a(0x408)]),_0x322f3a(_0x2acbdb=>_0x140165(_0x2acbdb[_0x4d371a(0x358)]),{'leading':!0x0,'trailing':!0x0}),_0xafb3a3(this[_0x4d371a(0x1f6)]))['subscribe'](_0x4e14eb=>this[_0x4d371a(0x379)](_0x4e14eb)));}[_0x42de0f(0x379)](_0x5bc61a){const _0x15266a=_0x42de0f;let _0x2e2cc5=this['_session'][_0x15266a(0x339)]();if(!_0x2e2cc5||!this['_online'])return;let _0x37432a={'eventID':_0x3a18c3[_0x15266a(0x2bf)],'data':{'unitID':this[_0x15266a(0x408)],'memberID':_0x2e2cc5,'selection':JSON[_0x15266a(0x42d)](Pn(this[_0x15266a(0x407)],this[_0x15266a(0x21f)][_0x15266a(0x2a7)],_0x5bc61a))}};this[_0x15266a(0x27f)][_0x15266a(0x394)](_0x37432a,this[_0x15266a(0x408)])[_0x15266a(0x211)](()=>void 0x0);}[_0x42de0f(0x3a9)](_0x32af57){const _0x1c0d3c=_0x42de0f;let {memberID:_0x41306d,selection:_0x49f57c}=_0x32af57[_0x1c0d3c(0x35b)];if(_0x41306d===this['_session'][_0x1c0d3c(0x339)]())return;let _0x81f284=Nn(_0x49f57c,this[_0x1c0d3c(0x407)]);if(!_0x81f284||_0x81f284[_0x1c0d3c(0x3ff)]!==this[_0x1c0d3c(0x21f)]['presenceKind']||_0x81f284[_0x1c0d3c(0x407)]!==this['unitType']||_0x81f284['unitId']!==this[_0x1c0d3c(0x408)])return;let _0x5938d4=this[_0x1c0d3c(0x353)][_0x1c0d3c(0x38e)](this[_0x1c0d3c(0x408)],_0x41306d),_0x1c582e={'unitId':_0x81f284['unitId'],'subUnitId':_0x81f284['subUnitId'],'selectedIds':_0x81f284[_0x1c0d3c(0x466)],'focusedId':_0x81f284[_0x1c0d3c(0x317)],'pointer':_0x81f284[_0x1c0d3c(0x22c)],'memberId':_0x41306d,'color':this[_0x1c0d3c(0x3b7)]['assignAColorForMemberID'](_0x41306d),'name':(_0x5938d4==null?void 0x0:_0x5938d4[_0x1c0d3c(0x3ae)])??_0x41306d};this[_0x1c0d3c(0x2b4)]['executeCommand'](ln['id'],{'unitType':this[_0x1c0d3c(0x407)],'update':{'type':_0x1c0d3c(0x41e),'state':_0x1c582e}})[_0x1c0d3c(0x211)](()=>void 0x0);}[_0x42de0f(0x2f0)](_0x4b2455){const _0x8c0a41=_0x42de0f;this['_commandService']['executeCommand'](ln['id'],{'unitType':this[_0x8c0a41(0x407)],'update':{'type':'remove','unitId':this[_0x8c0a41(0x408)],'memberId':_0x4b2455}})[_0x8c0a41(0x211)](()=>void 0x0);}[_0x42de0f(0x2dd)](){const _0x287f01=_0x42de0f;this[_0x287f01(0x2b4)][_0x287f01(0x3eb)](ln['id'],{'unitType':this[_0x287f01(0x407)],'update':{'type':_0x287f01(0x2ec),'unitId':this[_0x287f01(0x408)]}})[_0x287f01(0x211)](()=>void 0x0);}};Fn=X([Y(0x3,_0x3dc539(pn)),Y(0x4,_0x3dc539(_0x1ca833)),Y(0x5,_0x3dc539(_0x639c87))],Fn);let In=class extends _0x211d9e{constructor(_0x5b4137,_0x3740f2,_0xefcdc0,_0x3eb893){const _0x3c967e=_0x42de0f;super(),this[_0x3c967e(0x3c8)]=_0x5b4137,this[_0x3c967e(0x406)]=_0x3740f2,this[_0x3c967e(0x398)]=_0xefcdc0,this['_adapterRegistry']=_0x3eb893,J(this,_0x3c967e(0x3a4),!0x1),J(this,_0x3c967e(0x409),new Map()),J(this,_0x3c967e(0x21a),new Map()),J(this,_0x3c967e(0x3d2),new Map()),this[_0x3c967e(0x36d)]();}[_0x42de0f(0x239)](){const _0x50c15e=_0x42de0f;this[_0x50c15e(0x3a4)]=!0x0,this[_0x50c15e(0x3d2)][_0x50c15e(0x302)](_0x4cf72b=>_0x4cf72b[_0x50c15e(0x239)]()),this[_0x50c15e(0x3d2)]['clear'](),this[_0x50c15e(0x409)]['forEach'](_0x585c34=>_0x585c34[_0x50c15e(0x239)]()),this[_0x50c15e(0x409)][_0x50c15e(0x2ec)](),this[_0x50c15e(0x21a)][_0x50c15e(0x2ec)](),super[_0x50c15e(0x239)]();}['_init'](){const _0x45878b=_0x42de0f;this[_0x45878b(0x3b5)][_0x45878b(0x468)][_0x45878b(0x420)](_0xafb3a3(this['dispose$']))[_0x45878b(0x308)](_0x125f72=>this[_0x45878b(0x3c7)](_0x125f72));}[_0x42de0f(0x3c7)](_0x9da644){const _0x3f4714=_0x42de0f;let _0x711e60=new Set(_0x9da644['map'](_0x505d2f=>_0x505d2f[_0x3f4714(0x407)]));this[_0x3f4714(0x3d2)][_0x3f4714(0x302)]((_0x4514d5,_0x19751e)=>{const _0x2917df=_0x3f4714;_0x711e60[_0x2917df(0x2e1)](_0x19751e)||(_0x4514d5['dispose'](),this['_adapterDisposables'][_0x2917df(0x2f8)](_0x19751e),this[_0x2917df(0x275)](_0x19751e));}),_0x9da644[_0x3f4714(0x302)](_0x3152b1=>{const _0x17c874=_0x3f4714;this[_0x17c874(0x3d2)]['has'](_0x3152b1[_0x17c874(0x407)])||this[_0x17c874(0x216)](_0x3152b1);});}[_0x42de0f(0x216)](_0x5a321c){const _0x3cff38=_0x42de0f;let _0x529f6b=new _0x20e368();this['_adapterDisposables'][_0x3cff38(0x41e)](_0x5a321c['unitType'],_0x529f6b),_0x529f6b[_0x3cff38(0x236)](_0x5a321c[_0x3cff38(0x3bb)]()),this['_univerInstanceService']['getAllUnitsForType'](_0x5a321c['unitType'])[_0x3cff38(0x302)](_0x47ed1f=>this['_startEntity'](_0x47ed1f[_0x3cff38(0x284)](),_0x5a321c)[_0x3cff38(0x211)](()=>void 0x0));let _0x1b1f95=this[_0x3cff38(0x3c8)][_0x3cff38(0x441)](_0x5a321c[_0x3cff38(0x407)])[_0x3cff38(0x308)](({unit:_0x133bb5})=>this[_0x3cff38(0x1ff)](_0x133bb5[_0x3cff38(0x284)](),_0x5a321c)['catch'](()=>void 0x0));_0x529f6b[_0x3cff38(0x236)](_0x11e849(()=>_0x1b1f95[_0x3cff38(0x458)]()));let _0x334127=this['_univerInstanceService'][_0x3cff38(0x285)](_0x5a321c[_0x3cff38(0x407)])[_0x3cff38(0x308)](_0x6a06=>this['_disposeEntity'](_0x6a06[_0x3cff38(0x284)]()));_0x529f6b[_0x3cff38(0x236)](_0x11e849(()=>_0x334127[_0x3cff38(0x458)]()));}async[_0x42de0f(0x1ff)](_0x78defa,_0x349b0b){const _0x23c330=_0x42de0f;if(this[_0x23c330(0x409)]['has'](_0x78defa)||this[_0x23c330(0x21a)][_0x23c330(0x2e1)](_0x78defa))return;let _0x3cf72a={};this['_pendingEntities']['set'](_0x78defa,_0x3cf72a);let _0x3a93ea=await this[_0x23c330(0x398)]['requireSession'](_0x78defa)['catch'](_0x251c0d=>{const _0x28db00=_0x23c330;throw this[_0x28db00(0x21a)][_0x28db00(0x424)](_0x78defa)===_0x3cf72a&&this['_pendingEntities'][_0x28db00(0x2f8)](_0x78defa),_0x251c0d;});if(this[_0x23c330(0x3a4)]||this[_0x23c330(0x21a)]['get'](_0x78defa)!==_0x3cf72a||this['_adapterRegistry'][_0x23c330(0x424)](_0x349b0b[_0x23c330(0x407)])!==_0x349b0b){this[_0x23c330(0x21a)]['get'](_0x78defa)===_0x3cf72a&&this[_0x23c330(0x21a)][_0x23c330(0x2f8)](_0x78defa);return;}let _0x11dd62=this[_0x23c330(0x406)]['createInstance'](Fn,_0x78defa,_0x3a93ea,_0x349b0b);_0x11dd62[_0x23c330(0x3cf)](),this['_pendingEntities']['delete'](_0x78defa),this[_0x23c330(0x409)]['set'](_0x78defa,_0x11dd62);}[_0x42de0f(0x412)](_0x400545){const _0x157435=_0x42de0f;this[_0x157435(0x21a)]['delete'](_0x400545);let _0x3a3a4a=this[_0x157435(0x409)][_0x157435(0x424)](_0x400545);_0x3a3a4a&&(_0x3a3a4a[_0x157435(0x239)](),this[_0x157435(0x409)][_0x157435(0x2f8)](_0x400545));}[_0x42de0f(0x275)](_0x182fed){const _0x14535e=_0x42de0f;this[_0x14535e(0x3c8)][_0x14535e(0x232)](_0x182fed)[_0x14535e(0x302)](_0x1a1c37=>this[_0x14535e(0x21a)][_0x14535e(0x2f8)](_0x1a1c37[_0x14535e(0x284)]())),Array[_0x14535e(0x37c)](this[_0x14535e(0x409)][_0x14535e(0x36a)]())[_0x14535e(0x302)](([_0x187a82,_0x5177e0])=>{const _0x48b7c6=_0x14535e;_0x5177e0['unitType']===_0x182fed&&this[_0x48b7c6(0x412)](_0x187a82);});}};In=X([Y(0x0,_0x5d6c76),Y(0x1,_0x3dc539(_0x247c0c)),Y(0x2,_0x3dc539(_0x1ad776)),Y(0x3,_0x3dc539(_0x50fb5d))],In);const Ln={'toast':_0x42de0f(0x38b),'actionButton':_0x42de0f(0x3f6)},Rn={'title':'collaboration-client-ui.conflict.title','content':_0x42de0f(0x294),'type':_0x42de0f(0x2a9)},zn={'permission_rejected':{'title':_0x42de0f(0x2bc),'content':_0x42de0f(0x43b),'type':_0x42de0f(0x2a9)},'license_unit_type_rejected':{'title':_0x42de0f(0x3fc),'content':_0x42de0f(0x27d),'type':_0x42de0f(0x2a9)},'remote_revert':{'title':_0x42de0f(0x244),'content':_0x42de0f(0x467),'type':_0x42de0f(0x3a6)}};let Bn=class extends _0x37fe2d{constructor(_0x5193c6,_0x4133f7,_0x48b1f5,_0x9b5c02,_0x5f3a85,_0xe76d88,_0x3490f8,_0xf4f2f0){const _0x4e40bf=_0x42de0f;var _0x7a91a4;super(),this[_0x4e40bf(0x22e)]=_0x5193c6,this['_localCacheService']=_0x4133f7,this[_0x4e40bf(0x2e6)]=_0x48b1f5,this[_0x4e40bf(0x361)]=_0x9b5c02,this[_0x4e40bf(0x301)]=_0x5f3a85,this[_0x4e40bf(0x295)]=_0xe76d88,this['_collaborationController']=_0x3490f8,this['_configService']=_0xf4f2f0,J(this,_0x4e40bf(0x2e8),null),J(this,'_retryingConflictCacheUnitIDs',new Set()),J(this,_0x4e40bf(0x3c5),new Map()),J(this,_0x4e40bf(0x382),new Map()),this[_0x4e40bf(0x218)](),this['_initEvent'](),this[_0x4e40bf(0x312)](),((_0x7a91a4=this['_configService'][_0x4e40bf(0x268)](_0x4e40bf(0x265)))==null?void 0x0:_0x7a91a4['enableDefaultConflictUI'])!==!0x1&&this['_initConflictHandling']();}['dispose'](){const _0x2ff9ea=_0x42de0f;var _0x4f11a8;(_0x4f11a8=this['_conflictNotification'])==null||_0x4f11a8['dispose'](),this[_0x2ff9ea(0x2e8)]=null;for(let _0x35b38f of[this[_0x2ff9ea(0x3c5)],this[_0x2ff9ea(0x382)]])_0x35b38f['forEach'](_0x28540f=>_0x28540f['dispose']()),_0x35b38f[_0x2ff9ea(0x2ec)]();super[_0x2ff9ea(0x239)]();}['_initAwaitingNotices'](){const _0x5514f1=_0x42de0f;let _0x457e2a=_0xe7a3ea=>{const _0x14e53b=_0xe422;let _0x6a0f8e=new _0x20e368();_0x6a0f8e['add'](_0x11e849(_0xe7a3ea[_0x14e53b(0x330)][_0x14e53b(0x308)]({'next':_0x42ea6e=>{const _0x3c01f8=_0x14e53b;_0x42ea6e['elapsedMs']>=0x4e20&&this[_0x3c01f8(0x2b3)](this[_0x3c01f8(0x3c5)],_0xe7a3ea[_0x3c01f8(0x287)],_0x3c01f8(0x471)),_0x42ea6e[_0x3c01f8(0x23f)]===_0x3c01f8(0x2b9)&&this[_0x3c01f8(0x2b3)](this['_editingConnectionsExceededNotices'],_0xe7a3ea[_0x3c01f8(0x287)],'collaboration-client-ui.license.editing-connections-exceeded');},'complete':()=>{const _0x3417cb=_0x14e53b;this['_removeAwaitingNotices'](_0xe7a3ea[_0x3417cb(0x287)]),_0x6a0f8e[_0x3417cb(0x239)]();}}))),_0x6a0f8e[_0x14e53b(0x236)](_0x11e849(_0xe7a3ea[_0x14e53b(0x40d)]['subscribe'](_0xd62830=>{const _0x5c205a=_0x14e53b;_0xd62830!==_0x15f8e8[_0x5c205a(0x328)]&&_0xd62830!==_0x15f8e8['AWAITING_WITH_PENDING']&&this[_0x5c205a(0x2c5)](_0xe7a3ea['unitID']);}))),this[_0x14e53b(0x399)](_0x6a0f8e);};this[_0x5514f1(0x375)][_0x5514f1(0x3bf)]()[_0x5514f1(0x302)](_0x457e2a),this[_0x5514f1(0x399)](_0x11e849(this[_0x5514f1(0x375)]['entityInit$']['subscribe'](_0x457e2a)));}['_showAwaitingNotice'](_0xd939fb,_0x3eca02,_0x48f5a6){const _0x485e91=_0x42de0f;_0xd939fb['has'](_0x3eca02)||_0xd939fb[_0x485e91(0x41e)](_0x3eca02,this['_notificationService'][_0x485e91(0x37d)]({'title':this[_0x485e91(0x295)]['t'](_0x48f5a6),'type':_0x485e91(0x3a6),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x109f0a){const _0x224d6b=_0x42de0f;for(let _0xa97107 of[this[_0x224d6b(0x3c5)],this[_0x224d6b(0x382)]]){var _0x14ee71;(_0x14ee71=_0xa97107[_0x224d6b(0x424)](_0x109f0a))==null||_0x14ee71[_0x224d6b(0x239)](),_0xa97107[_0x224d6b(0x2f8)](_0x109f0a);}}[_0x42de0f(0x218)](){const _0x5f5c41=_0x42de0f;this[_0x5f5c41(0x399)](this[_0x5f5c41(0x22e)][_0x5f5c41(0x2d7)](()=>{const _0x1b11f1=_0x5f5c41;if(this[_0x1b11f1(0x39c)][_0x1b11f1(0x223)][_0x1b11f1(0x34d)])return this[_0x1b11f1(0x295)]['t'](_0x1b11f1(0x387));}));}[_0x42de0f(0x368)](){const _0x14a5f0=_0x42de0f;let _0x5178ea=_0x3f8d9b=>{const _0x351a99=_0xe422;this[_0x351a99(0x399)](_0x11e849(_0x3f8d9b['conflict$']['subscribe'](_0x30eeda=>this[_0x351a99(0x3be)](_0x30eeda))));};this[_0x14a5f0(0x375)][_0x14a5f0(0x3bf)]()['forEach'](_0x5178ea),this[_0x14a5f0(0x399)](_0x11e849(this[_0x14a5f0(0x375)][_0x14a5f0(0x281)]['subscribe'](_0x5178ea)));}[_0x42de0f(0x3be)](_0x2a5982){const _0x1bf9f0=_0x42de0f;if(!_0x2a5982[_0x1bf9f0(0x24d)])return;let _0x37475e=zn[_0x2a5982[_0x1bf9f0(0x23f)]]??Rn;this[_0x1bf9f0(0x435)]({'title':this[_0x1bf9f0(0x295)]['t'](_0x37475e[_0x1bf9f0(0x329)]),'content':this['_localeService']['t'](_0x37475e['content']),'type':_0x37475e[_0x1bf9f0(0x3f7)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this[_0x1bf9f0(0x295)]['t'](_0x1bf9f0(0x46f)),'onClick':_0x54f071=>{const _0x32ad55=_0x1bf9f0;_0x54f071['preventDefault'](),this[_0x32ad55(0x370)]();}}});}[_0x42de0f(0x370)](){const _0xb267f0=_0x42de0f;window['location'][_0xb267f0(0x340)]();}[_0x42de0f(0x2b7)](){const _0x52cc01=_0x42de0f;this['disposeWithMe'](this[_0x52cc01(0x2e6)][_0x52cc01(0x3ed)]['subscribe'](_0x465149=>{const _0x369eb7=_0x52cc01;_0x465149['id']===_0x41df36[_0x369eb7(0x29b)]&&this['_messageService'][_0x369eb7(0x37d)]({'type':_0x49f4ad[_0x369eb7(0x45c)],'content':this[_0x369eb7(0x295)]['t'](_0x369eb7(0x369))}),_0x465149['id']===_0x41df36[_0x369eb7(0x41f)]&&this['_messageService']['show']({'type':_0x49f4ad[_0x369eb7(0x45c)],'content':this[_0x369eb7(0x295)]['t'](_0x369eb7(0x266))}),_0x465149['id']===_0x41df36['CONFLICT_PROCESSING']&&this[_0x369eb7(0x2f6)](),_0x465149['id']===_0x41df36[_0x369eb7(0x229)]&&_0x465149[_0x369eb7(0x287)]&&this[_0x369eb7(0x3cd)](_0x465149[_0x369eb7(0x287)],_0x465149[_0x369eb7(0x25d)]??''),_0x465149['id']===_0x41df36[_0x369eb7(0x32d)]&&this['_messageService'][_0x369eb7(0x37d)]({'type':_0x49f4ad[_0x369eb7(0x45c)],'content':this[_0x369eb7(0x295)]['t'](_0x465149[_0x369eb7(0x35b)]||'')}),_0x465149['id']===_0x41df36[_0x369eb7(0x2f4)]&&this[_0x369eb7(0x361)][_0x369eb7(0x37d)]({'type':_0x49f4ad[_0x369eb7(0x45c)],'content':this[_0x369eb7(0x295)]['t'](_0x369eb7(0x38f))}),_0x465149['id']===_0x41df36[_0x369eb7(0x203)]&&this['_messageService']['show']({'type':_0x49f4ad[_0x369eb7(0x414)],'content':this[_0x369eb7(0x295)]['t']('collaboration-client-ui.session.connection-failed')}),_0x465149['id']===_0x41df36['LICENSE_DOMAIN_REJECTED']&&this['_messageService'][_0x369eb7(0x37d)]({'type':_0x49f4ad['Error'],'content':this['_localeService']['t'](_0x369eb7(0x419))});}));}[_0x42de0f(0x2f6)](){const _0x66aaef=_0x42de0f;this[_0x66aaef(0x435)]({'title':this[_0x66aaef(0x295)]['t'](_0x66aaef(0x454)),'content':this[_0x66aaef(0x295)]['t']('collaboration-client-ui.conflict.processing'),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x4a4e62,_0x2fa5fe){const _0x539f2a=_0x42de0f;this[_0x539f2a(0x435)]({'title':this[_0x539f2a(0x295)]['t'](_0x539f2a(0x454)),'content':this[_0x539f2a(0x295)]['t'](_0x539f2a(0x2aa)),'type':_0x539f2a(0x2a9),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x539f2a(0x273)),'onClick':_0x1d16cd=>{const _0x58d2ec=_0x539f2a;_0x1d16cd[_0x58d2ec(0x2db)](),this['_retryConflictCacheClear'](_0x4a4e62,_0x2fa5fe);}}});}[_0x42de0f(0x39b)](_0x152767,_0x1a7967){const _0x49d907=_0x42de0f;let _0x51397f=_0x152767+':'+(_0x1a7967??'');this['_retryingConflictCacheUnitIDs'][_0x49d907(0x2e1)](_0x51397f)||(this[_0x49d907(0x2a6)][_0x49d907(0x236)](_0x51397f),this['_showConflictProcessingNotification'](),this['_localCacheService'][_0x49d907(0x385)](_0x152767,_0x1a7967)[_0x49d907(0x422)](()=>this[_0x49d907(0x370)]())[_0x49d907(0x211)](()=>this[_0x49d907(0x3cd)](_0x152767,_0x1a7967))[_0x49d907(0x45d)](()=>this[_0x49d907(0x2a6)][_0x49d907(0x2f8)](_0x51397f)));}[_0x42de0f(0x435)](_0x378484){const _0x1755c7=_0x42de0f;var _0x49dd08;(_0x49dd08=this[_0x1755c7(0x2e8)])==null||_0x49dd08[_0x1755c7(0x239)](),this[_0x1755c7(0x2e8)]=this['_notificationService']['show'](_0x378484);}};Bn=X([Y(0x0,_0x3f4e4a),Y(0x1,_0x2acaa8),Y(0x2,_0x3dc539(_0x40a79e)),Y(0x3,_0x217aa6),Y(0x4,_0x2e151f),Y(0x5,_0x3dc539(_0x21efe5)),Y(0x6,_0x3dc539(_0x28a419)),Y(0x7,_0x444ecb)],Bn);let Vn=class{constructor(_0x2a3545,_0x3d231e){const _0x42ee29=_0x42de0f;this[_0x42ee29(0x299)]=_0x2a3545,this[_0x42ee29(0x41a)]=_0x3d231e;}[_0x42de0f(0x3ac)](_0x5e2e25){const _0x4f55a7=_0x42de0f;this[_0x4f55a7(0x3fa)](_0x5e2e25),this[_0x4f55a7(0x2d9)](_0x5e2e25);}['transformRemoteChangeset'](_0x3cff0d){const _0x26625b=_0x42de0f;let {unitID:_0x370ba7}=_0x3cff0d,{redoCache:_0x32427d}=this[_0x26625b(0x41a)][_0x26625b(0x2f2)](_0x370ba7)[_0x26625b(0x2e2)](_0x3d67ef)['getUndoRedoMutationParamsCache']();if(_0x32427d[_0x26625b(0x41b)]===0x0)return _0x3cff0d;let _0x419a4e=_0x27e990['deepClone'](_0x3cff0d[_0x26625b(0x2fd)][0x0]);for(let _0xe326d5=0x0;_0xe326d5<_0x32427d[_0x26625b(0x41b)];_0xe326d5++){let _0x2d5d25={'id':_0x26625b(0x3ab),'params':{..._0x32427d[_0xe326d5]}},_0x323e3d=this[_0x26625b(0x299)][_0x26625b(0x430)](_0x419a4e,_0x2d5d25,!0x1);if(_0x28a80b(_0x323e3d))throw _0x323e3d['error'];_0x419a4e=_0x323e3d[_0x26625b(0x2ad)];}return{..._0x27e990['deepClone'](_0x3cff0d),'mutations':[_0x419a4e]};}[_0x42de0f(0x3fa)](_0x201eda){const _0x45b436=_0x42de0f;let {unitID:_0x5b5f45}=_0x201eda,_0x1162ab=this['_renderManagerService']['getRenderUnitById'](_0x5b5f45)[_0x45b436(0x2e2)](_0x3d67ef),{undoCache:_0x3eaf46,redoCache:_0x365643}=_0x1162ab[_0x45b436(0x411)]();if(_0x3eaf46['length']===0x0||_0x365643[_0x45b436(0x41b)]===0x0)return;let _0x289daa=[],_0x3524d9=[],_0x4c993a=_0x27e990['deepClone'](_0x201eda['mutations'][0x0]),_0x39de87=_0x27e990['deepClone'](_0x201eda[_0x45b436(0x2fd)][0x0]);for(let _0x4463de=_0x3eaf46['length']-0x1;_0x4463de>=0x0;_0x4463de--){let _0x215d1d={'id':'doc.mutation.rich-text-editing','params':{..._0x3eaf46[_0x4463de]}},_0x3ddce={'id':_0x45b436(0x3ab),'params':{..._0x365643[_0x4463de]}},_0x425b96=this['_transformService'][_0x45b436(0x430)](_0x4c993a,_0x215d1d,!0x1),_0x49d290=this['_transformService'][_0x45b436(0x430)](_0x39de87,_0x3ddce,!0x1);if(_0x28a80b(_0x425b96))throw _0x425b96[_0x45b436(0x2a9)];if(_0x28a80b(_0x49d290))throw _0x49d290[_0x45b436(0x2a9)];_0x289daa[_0x45b436(0x392)](_0x425b96[_0x45b436(0x300)]['params']),_0x3524d9['unshift'](_0x49d290[_0x45b436(0x300)][_0x45b436(0x3a8)]),_0x4c993a=_0x425b96['m1Prime'],_0x39de87=_0x49d290[_0x45b436(0x2ad)];}_0x1162ab['setUndoRedoMutationParamsCache']({'undoCache':_0x289daa,'redoCache':_0x3524d9});}[_0x42de0f(0x2d9)](_0x5984e7){const _0x1af13b=_0x42de0f;let {unitID:_0x2a0ccd}=_0x5984e7,_0x45fa0e=this[_0x1af13b(0x41a)][_0x1af13b(0x2f2)](_0x2a0ccd)[_0x1af13b(0x2e2)](_0x3d67ef),_0x1ea454=_0x45fa0e['getActiveRange']();if(_0x1ea454==null)return;let _0x80ebcd=[{'id':_0x1af13b(0x3ab),'params':{'unitId':_0x5984e7[_0x1af13b(0x287)],'actions':null,'textRanges':[_0x1ea454]}}],_0xe7041b=this['_transformService'][_0x1af13b(0x2f7)](_0x5984e7,_0x80ebcd);if(!_0x3a8994(_0xe7041b))throw _0xe7041b['error'];let _0x1d1f65=_0xe7041b[_0x1af13b(0x300)][0x0][_0x1af13b(0x3a8)][_0x1af13b(0x459)];Array['isArray'](_0x1d1f65)&&_0x1d1f65[_0x1af13b(0x41b)]&&_0x45fa0e['setActiveRange'](_0x1d1f65[0x0]);}};Vn=X([Y(0x0,_0x3e6910),Y(0x1,_0x4abc49)],Vn);let Hn=class{constructor(_0xe8707b,_0x402f2d,_0x2bacc3){const _0x3df8bd=_0x42de0f;this['_injector']=_0xe8707b,this[_0x3df8bd(0x299)]=_0x402f2d,this['_docStateChangeManagerService']=_0x2bacc3;}[_0x42de0f(0x2ea)](_0x56cefa){const _0x378851=_0x42de0f;this[_0x378851(0x34a)](_0x56cefa);}['transformRemoteChangeset'](_0x51cb64){const _0x5584ae=_0x42de0f;let {unitID:_0x53487a}=_0x51cb64,{collaboration:_0x15d0bf}=this[_0x5584ae(0x460)][_0x5584ae(0x25b)](_0x53487a);if(_0x15d0bf[_0x5584ae(0x41b)]===0x0)return _0x51cb64;let _0x5d4fac=_0x27e990[_0x5584ae(0x40e)](_0x51cb64[_0x5584ae(0x2fd)][0x0]);for(let _0x18deff=0x0;_0x18deff<_0x15d0bf[_0x5584ae(0x41b)];_0x18deff++){let _0xc74058={'id':_0x5584ae(0x3ab),'params':{'unitId':_0x15d0bf[_0x18deff][_0x5584ae(0x408)],..._0x15d0bf[_0x18deff][_0x5584ae(0x2df)]}},_0x40674c=this['_transformService'][_0x5584ae(0x430)](_0x5d4fac,_0xc74058,!0x1);if(_0x28a80b(_0x40674c))throw _0x40674c[_0x5584ae(0x2a9)];_0x5d4fac=_0x40674c[_0x5584ae(0x2ad)];}return{..._0x27e990[_0x5584ae(0x40e)](_0x51cb64),'mutations':[_0x5d4fac]};}[_0x42de0f(0x34a)](_0x2022b0){const _0x205a47=_0x42de0f;let {unitID:_0x4fd8c0}=_0x2022b0,{history:_0x8f3b1c,collaboration:_0x3a7ba7}=this[_0x205a47(0x460)][_0x205a47(0x25b)](_0x4fd8c0);if(_0x8f3b1c[_0x205a47(0x41b)]===0x0&&_0x3a7ba7[_0x205a47(0x41b)]===0x0)return;let _0x478157=[],_0x7df25f=[],_0x15c0c7=_0x27e990['deepClone'](_0x2022b0[_0x205a47(0x2fd)][0x0]),_0x30440c=_0x27e990['deepClone'](_0x2022b0[_0x205a47(0x2fd)][0x0]);for(let _0x5c513b=_0x8f3b1c[_0x205a47(0x41b)]-0x1;_0x5c513b>=0x0;_0x5c513b--){let _0xb50290={'id':_0x205a47(0x3ab),'params':{'unitId':_0x8f3b1c[_0x5c513b][_0x205a47(0x408)],..._0x8f3b1c[_0x5c513b][_0x205a47(0x333)]}},_0x502016={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x8f3b1c[_0x5c513b][_0x205a47(0x408)],..._0x8f3b1c[_0x5c513b][_0x205a47(0x2df)]}},_0x5f3669=this[_0x205a47(0x299)][_0x205a47(0x430)](_0x15c0c7,_0xb50290,!0x1),_0x3f1ca0=this[_0x205a47(0x299)][_0x205a47(0x430)](_0x30440c,_0x502016,!0x1);if(_0x28a80b(_0x5f3669))throw _0x5f3669[_0x205a47(0x2a9)];if(_0x28a80b(_0x3f1ca0))throw _0x3f1ca0[_0x205a47(0x2a9)];_0x478157[_0x205a47(0x392)]({..._0x8f3b1c[_0x5c513b],'undoState':_0x5f3669[_0x205a47(0x300)][_0x205a47(0x3a8)],'redoState':_0x3f1ca0['m2Prime'][_0x205a47(0x3a8)]}),_0x15c0c7=_0x5f3669['m1Prime'],_0x30440c=_0x3f1ca0['m1Prime'];}_0x15c0c7=_0x27e990[_0x205a47(0x40e)](_0x2022b0[_0x205a47(0x2fd)][0x0]),_0x30440c=_0x27e990['deepClone'](_0x2022b0[_0x205a47(0x2fd)][0x0]);for(let _0x4903b8=_0x3a7ba7[_0x205a47(0x41b)]-0x1;_0x4903b8>=0x0;_0x4903b8--){let _0x51957a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3a7ba7[_0x4903b8][_0x205a47(0x408)],..._0x3a7ba7[_0x4903b8]['undoState']}},_0x1f28a4={'id':_0x205a47(0x3ab),'params':{'unitId':_0x3a7ba7[_0x4903b8][_0x205a47(0x408)],..._0x3a7ba7[_0x4903b8][_0x205a47(0x2df)]}},_0xb83947=this[_0x205a47(0x299)][_0x205a47(0x430)](_0x15c0c7,_0x51957a,!0x1),_0x3c38a5=this['_transformService']['transformMutation'](_0x30440c,_0x1f28a4,!0x1);if(_0x28a80b(_0xb83947))throw _0xb83947[_0x205a47(0x2a9)];if(_0x28a80b(_0x3c38a5))throw _0x3c38a5[_0x205a47(0x2a9)];_0x7df25f[_0x205a47(0x392)]({..._0x3a7ba7[_0x4903b8],'undoState':_0xb83947[_0x205a47(0x300)][_0x205a47(0x3a8)],'redoState':_0x3c38a5[_0x205a47(0x300)][_0x205a47(0x3a8)]}),_0x15c0c7=_0xb83947['m1Prime'],_0x30440c=_0x3c38a5[_0x205a47(0x2ad)];}this[_0x205a47(0x460)][_0x205a47(0x237)](_0x4fd8c0,{'history':_0x478157,'collaboration':_0x7df25f});}};Hn=X([Y(0x0,_0x3dc539(_0x247c0c)),Y(0x1,_0x3e6910),Y(0x2,_0x3dc539(_0x583478))],Hn);let Un=class{constructor(_0x1b44be,_0xd1cbea){const _0x37d17a=_0x42de0f;this[_0x37d17a(0x36f)]=_0x1b44be,this[_0x37d17a(0x299)]=_0xd1cbea;}[_0x42de0f(0x222)](_0x5d2034){const _0x10e5e5=_0x42de0f;var _0x57dc97;let _0x394740=this[_0x10e5e5(0x36f)][_0x10e5e5(0x322)]()??[],_0x7fc46d=this[_0x10e5e5(0x36f)][_0x10e5e5(0x1fd)]();if(_0x394740[_0x10e5e5(0x41b)]===0x0||_0x7fc46d==null)return null;let _0x52b00f=_0x5d2034[_0x10e5e5(0x287)],_0x3433c2=[{'id':_0x10e5e5(0x3ab),'params':{'unitId':_0x52b00f,'actions':null,'textRanges':_0x394740}}],_0x28b281=this[_0x10e5e5(0x299)]['transformMutationsWithChangeset'](_0x5d2034,_0x3433c2);if(!_0x3a8994(_0x28b281))throw _0x28b281[_0x10e5e5(0x2a9)];let _0x147a0a=(_0x57dc97=_0x28b281[_0x10e5e5(0x300)][0x0])==null?void 0x0:_0x57dc97[_0x10e5e5(0x3a8)],_0xf096c9=_0x147a0a&&typeof _0x147a0a==_0x10e5e5(0x3e1)&&_0x10e5e5(0x459)in _0x147a0a?_0x147a0a['textRanges']:null;if(!Kn(_0xf096c9))return null;let _0x15352e=Wn(_0x5d2034[_0x10e5e5(0x2fd)]['some'](_0x4edae4=>qn(_0x4edae4[_0x10e5e5(0x3a8)]))?_0xf096c9[_0x10e5e5(0x30c)](_0x424d56=>!('tableId'in _0x424d56)):_0xf096c9,{..._0x7fc46d,'options':_0x7fc46d[_0x10e5e5(0x3e7)]?{..._0x7fc46d[_0x10e5e5(0x3e7)],'wholeDocument':!0x1}:void 0x0}),_0xb49304={'unitId':_0x52b00f,'subUnitId':_0x52b00f};this[_0x10e5e5(0x36f)][_0x10e5e5(0x286)](_0x15352e,_0xb49304);let _0xf49577=!0x0;return{'commit':()=>{_0xf49577=!0x1;},'rollback':()=>{const _0x835ec3=_0x10e5e5;_0xf49577&&(_0xf49577=!0x1,this[_0x835ec3(0x36f)][_0x835ec3(0x286)](_0x7fc46d,_0xb49304));}};}};Un=X([Y(0x0,_0x3dc539(_0x4825d4)),Y(0x1,_0x3e6910)],Un);function Wn(_0x3a4b1c,_0x64bfba){const _0x59bb8a=_0x42de0f;let _0x39a59d=[],_0x5daa5c=[];for(let _0x4d91d8 of _0x3a4b1c)Gn(_0x4d91d8)?_0x5daa5c[_0x59bb8a(0x425)](_0x4d91d8):_0x39a59d[_0x59bb8a(0x425)](_0x4d91d8);return{..._0x64bfba,'textRanges':_0x39a59d,'rectRanges':_0x5daa5c};}function Gn(_0x1113f2){const _0x10f42a=_0x42de0f;return _0x10f42a(0x2e7)in _0x1113f2;}function Kn(_0x44e113){const _0x597277=_0x42de0f;return Array[_0x597277(0x3e4)](_0x44e113)&&_0x44e113['every'](_0x26d9a0=>typeof _0x26d9a0==_0x597277(0x3e1)&&!!_0x26d9a0&&_0x597277(0x3fb)in _0x26d9a0&&_0x597277(0x3c3)in _0x26d9a0);}function qn(_0x4b169d){const _0x4e3745=_0x42de0f;return _0x4b169d===_0x4e3745(0x3f9)?!0x0:Array[_0x4e3745(0x3e4)](_0x4b169d)?_0x4b169d[_0x4e3745(0x46e)](_0x3d079c=>qn(_0x3d079c)):!_0x4b169d||typeof _0x4b169d!='object'?!0x1:Object[_0x4e3745(0x30f)](_0x4b169d)['some'](_0x498a9e=>qn(_0x498a9e));}let Jn=class extends _0x37fe2d{constructor(_0x549d67,_0x521ea0,_0x3e6c25,_0x2f7d69,_0x5c3d4c,_0x55716,_0x23a949){const _0x1a8713=_0x42de0f;super(),this[_0x1a8713(0x375)]=_0x549d67,this[_0x1a8713(0x319)]=_0x521ea0,this['_docTransformStateCacheService']=_0x3e6c25,this[_0x1a8713(0x34c)]=_0x2f7d69,this[_0x1a8713(0x242)]=_0x5c3d4c,this[_0x1a8713(0x361)]=_0x55716,this[_0x1a8713(0x295)]=_0x23a949,J(this,_0x1a8713(0x2f3),new _0x1d09c7(_0x15f8e8[_0x1a8713(0x374)])),this[_0x1a8713(0x346)]();}[_0x42de0f(0x346)](){const _0x5e404c=_0x42de0f;this[_0x5e404c(0x399)](this[_0x5e404c(0x375)][_0x5e404c(0x281)][_0x5e404c(0x308)](_0x25b5ba=>{const _0x469bc8=_0x5e404c;_0x25b5ba instanceof _0x1f454d&&_0x25b5ba[_0x469bc8(0x311)]({'onTransformIME':_0x2ad9ab=>this['_docTransformIMECacheService']['transformIMECache'](_0x2ad9ab),'onTransformState':_0x5bd73d=>this[_0x469bc8(0x433)]['transformStateCache'](_0x5bd73d),'onPrepareTransformSelections':_0x2be3af=>this[_0x469bc8(0x34c)]['prepareTransformSelections'](_0x2be3af),'onSyncEditingCollabCursor':_0x18e52e=>this[_0x469bc8(0x242)][_0x469bc8(0x31a)](_0x18e52e),'onTransformRemoteChangesetByIMECache':_0x26ce6b=>this['_docTransformIMECacheService'][_0x469bc8(0x1f9)](_0x26ce6b),'onTransformRemoteChangesetByStateCache':_0x321994=>this[_0x469bc8(0x433)][_0x469bc8(0x1f9)](_0x321994)});}));}};Jn=X([Y(0x0,_0x3dc539(_0x28a419)),Y(0x1,_0x3dc539(Vn)),Y(0x2,_0x3dc539(Hn)),Y(0x3,_0x3dc539(Un)),Y(0x4,_0x3dc539(gn)),Y(0x5,_0x217aa6),Y(0x6,_0x3dc539(_0x21efe5))],Jn);let Yn=class extends _0x37fe2d{constructor(_0x3b909f,_0x3d2fc6,_0x156db1,_0x3b6029){const _0x574462=_0x42de0f;super(),this[_0x574462(0x406)]=_0x3b909f,this[_0x574462(0x282)]=_0x3d2fc6,this['_logService']=_0x156db1,this[_0x574462(0x359)]=_0x3b6029,J(this,'_memberID',void 0x0),this[_0x574462(0x36d)]();}['_init'](){const _0x216220=_0x42de0f;this[_0x216220(0x30a)](),this[_0x216220(0x241)](),this['_monkeyPatchLogService'](),this[_0x216220(0x421)]();}[_0x42de0f(0x421)](){const _0x39cc01=_0x42de0f;this[_0x39cc01(0x399)](this[_0x39cc01(0x359)]['socket$'][_0x39cc01(0x308)](_0x1aa643=>{const _0x470bca=_0x39cc01;this[_0x470bca(0x342)]=_0x1aa643==null?void 0x0:_0x1aa643[_0x470bca(0x43e)];}));}['_initWindowErrorListener'](){const _0x45061b=_0x42de0f;let _0x48ffb7=_0x91e963=>{const _0x20a35d=_0xe422;var _0x4a9a67;this['_uploadLog']('error',_0x20a35d(0x3ca)+_0x91e963['message']+_0x20a35d(0x3b4)+_0x91e963['filename']+':'+_0x91e963['lineno']+':'+_0x91e963['colno']+'\x0a'+(((_0x4a9a67=_0x91e963[_0x20a35d(0x2a9)])==null?void 0x0:_0x4a9a67['stack'])||''));};window[_0x45061b(0x318)]('error',_0x48ffb7),this[_0x45061b(0x399)](()=>{window['removeEventListener']('error',_0x48ffb7);});}['_initUnhandledRejectionListener'](){const _0x1276fc=_0x42de0f;let _0x17f954=_0x26b30e=>{const _0x2eb025=_0xe422;this[_0x2eb025(0x2c1)](_0x2eb025(0x2a9),_0x2eb025(0x43c)+_0x26b30e[_0x2eb025(0x23f)]);};window[_0x1276fc(0x318)]('unhandledrejection',_0x17f954),this[_0x1276fc(0x399)](()=>{const _0x31ca98=_0x1276fc;window[_0x31ca98(0x475)](_0x31ca98(0x352),_0x17f954);});}[_0x42de0f(0x3d4)](){const _0x3749c3=_0x42de0f;let _0x1bfa89=this[_0x3749c3(0x2d6)]['error'][_0x3749c3(0x377)](this['_logService']);this[_0x3749c3(0x2d6)]['error']=(..._0x42a2a4)=>{const _0x5bfe8f=_0x3749c3;let _0x10e2dd=_0x42a2a4[_0x5bfe8f(0x22b)](_0x549e18=>_0x549e18 instanceof Error?_0x549e18[_0x5bfe8f(0x442)]+'\x0a'+_0x549e18[_0x5bfe8f(0x2bb)]:String(_0x549e18))[_0x5bfe8f(0x46c)]('\x20');this[_0x5bfe8f(0x2c1)](_0x5bfe8f(0x2a9),'[LogService\x20Error]:\x20'+_0x10e2dd),_0x1bfa89(..._0x42a2a4);},this[_0x3749c3(0x399)](()=>{const _0xe48fae=_0x3749c3;this[_0xe48fae(0x2d6)][_0xe48fae(0x2a9)]=_0x1bfa89;});}[_0x42de0f(0x2c1)](_0x526e32,_0xa78c9c){const _0x75a519=_0x42de0f;try{let _0x4c4d10={'userId':this[_0x75a519(0x342)],'logLabel':_0x526e32,'content':_0xa78c9c};this['_httpService']['post']('/universer-api/frontend/logs',{'body':_0x4c4d10})[_0x75a519(0x211)](()=>{});}catch{}}};Yn=X([Y(0x0,_0x3dc539(_0x247c0c)),Y(0x1,_0x3dc539(_0x40028d)),Y(0x2,_0x5ca156),Y(0x3,_0x3dc539(_0x1ad776))],Yn);function Xn({state$:_0x133af2}){const _0x1ace4c=_0x42de0f;let _0x6b222e=_0x1d6cad(_0x133af2,null,!0x0);return _0x6b222e?_0x338823(_0x1ace4c(0x2c0),{'data-u-comp':_0x1ace4c(0x277),'role':_0x1ace4c(0x3e3),'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':[_0x126434(_0x5d75f8,{'className':_0x1ace4c(0x372)}),_0x126434(_0x1ace4c(0x33a),{'children':_0x6b222e[_0x1ace4c(0x443)]}),_0x126434(_0x5a4791,{'size':'small','variant':_0x1ace4c(0x32b),'onClick':()=>window['location'][_0x1ace4c(0x340)](),'children':_0x6b222e[_0x1ace4c(0x3a0)]})]}):null;}const Zn=_0x42de0f(0x2bd);let Qn=class extends _0x37fe2d{constructor(_0x533b1c,_0x448c1d,_0x486b40,_0x4ec425,_0x1fa648){const _0x3f20de=_0x42de0f;super(),this['_snapshotLoadingService']=_0x533b1c,this[_0x3f20de(0x361)]=_0x448c1d,this[_0x3f20de(0x295)]=_0x486b40,this[_0x3f20de(0x406)]=_0x4ec425,J(this,_0x3f20de(0x3c9),new _0x1d09c7(null)),J(this,_0x3f20de(0x437),new Set()),J(this,_0x3f20de(0x26f),new Map()),J(this,_0x3f20de(0x321),this[_0x3f20de(0x3c9)][_0x3f20de(0x267)]());let _0x32928a=()=>_0x41772c(Xn,{'state$':this[_0x3f20de(0x321)]});this['disposeWithMe'](_0x1fa648[_0x3f20de(0x3dc)](_0x5a9900[_0x3f20de(0x240)],()=>_0x347445(_0x32928a,this['_injector']))),this[_0x3f20de(0x399)](this[_0x3f20de(0x403)][_0x3f20de(0x3ea)][_0x3f20de(0x308)](_0x64c31a=>{const _0x25fca8=_0x3f20de;_0x64c31a[_0x25fca8(0x302)](_0x5245ad=>this['_updateMessage'](_0x5245ad));}));}[_0x42de0f(0x239)](){const _0x12cf6f=_0x42de0f;this[_0x12cf6f(0x437)][_0x12cf6f(0x302)](_0x42f8c7=>this[_0x12cf6f(0x361)][_0x12cf6f(0x428)](_0x42f8c7)),this['_messageIds'][_0x12cf6f(0x2ec)](),this['_blockProgressWatches'][_0x12cf6f(0x302)](({timeoutId:_0x361a4e})=>clearTimeout(_0x361a4e)),this[_0x12cf6f(0x26f)][_0x12cf6f(0x2ec)](),this['_timeoutState$']['complete'](),super['dispose']();}[_0x42de0f(0x231)](_0x304281){const _0x474ac2=_0x42de0f;let _0x47efa5=''+Zn+_0x304281['unitId'];_0x304281[_0x474ac2(0x410)]===_0x570ed5[_0x474ac2(0x278)]?(this[_0x474ac2(0x37a)](_0x304281['unitId']),this[_0x474ac2(0x32a)](_0x304281[_0x474ac2(0x408)]),this['_messageService'][_0x474ac2(0x428)](_0x47efa5),this[_0x474ac2(0x437)][_0x474ac2(0x2f8)](_0x47efa5)):_0x304281[_0x474ac2(0x410)]===_0x570ed5[_0x474ac2(0x293)]?(this[_0x474ac2(0x37a)](_0x304281[_0x474ac2(0x408)]),this[_0x474ac2(0x32a)](_0x304281[_0x474ac2(0x408)]),this[_0x474ac2(0x361)][_0x474ac2(0x37d)]({'id':_0x47efa5,'type':_0x49f4ad['Error'],'content':this['_localeService']['t'](_0x474ac2(0x29a))}),this[_0x474ac2(0x437)][_0x474ac2(0x2f8)](_0x47efa5)):_0x304281[_0x474ac2(0x410)]!==_0x570ed5[_0x474ac2(0x413)]||_0x304281[_0x474ac2(0x42a)]<=0xa?(this[_0x474ac2(0x37a)](_0x304281[_0x474ac2(0x408)]),this[_0x474ac2(0x361)][_0x474ac2(0x428)](_0x47efa5),this[_0x474ac2(0x437)]['delete'](_0x47efa5)):this[_0x474ac2(0x431)](_0x304281)||(this[_0x474ac2(0x361)][_0x474ac2(0x37d)]({'id':_0x47efa5,'type':_0x49f4ad[_0x474ac2(0x450)],'duration':0x1/0x0,'content':this[_0x474ac2(0x295)]['t'](_0x474ac2(0x390))+'\x20'+_0x304281[_0x474ac2(0x376)]+'/'+_0x304281[_0x474ac2(0x42a)]}),this[_0x474ac2(0x437)][_0x474ac2(0x236)](_0x47efa5));}[_0x42de0f(0x431)](_0x25961d){const _0x2ec247=_0x42de0f;let _0x332474=this[_0x2ec247(0x26f)][_0x2ec247(0x424)](_0x25961d[_0x2ec247(0x408)]);if((_0x332474==null?void 0x0:_0x332474[_0x2ec247(0x376)])===_0x25961d['loadedBlocks'])return _0x332474[_0x2ec247(0x28d)];this['_clearBlockProgressWatch'](_0x25961d['unitId']);let _0x541610=setTimeout(()=>{const _0x166681=_0x2ec247;let _0x4ac4c5=this[_0x166681(0x26f)][_0x166681(0x424)](_0x25961d['unitId']);if(!_0x4ac4c5||_0x4ac4c5[_0x166681(0x347)]!==_0x541610)return;_0x4ac4c5[_0x166681(0x28d)]=!0x0;let _0xfe7451=''+Zn+_0x25961d[_0x166681(0x408)];this[_0x166681(0x361)][_0x166681(0x428)](_0xfe7451),this[_0x166681(0x437)][_0x166681(0x2f8)](_0xfe7451),this[_0x166681(0x3c9)]['next']({'unitId':_0x25961d[_0x166681(0x408)],'content':this['_localeService']['t'](_0x166681(0x24f),String(_0x25961d[_0x166681(0x376)]),String(_0x25961d[_0x166681(0x42a)])),'refreshLabel':this['_localeService']['t'](_0x166681(0x46f))});},0xea60);return this[_0x2ec247(0x26f)][_0x2ec247(0x41e)](_0x25961d[_0x2ec247(0x408)],{'loadedBlocks':_0x25961d[_0x2ec247(0x376)],'timedOut':!0x1,'timeoutId':_0x541610}),!0x1;}[_0x42de0f(0x37a)](_0x350ea4){const _0x200a24=_0x42de0f;let _0x2b579d=this[_0x200a24(0x26f)]['get'](_0x350ea4);_0x2b579d&&(clearTimeout(_0x2b579d[_0x200a24(0x347)]),this[_0x200a24(0x26f)][_0x200a24(0x2f8)](_0x350ea4),this['_clearTimeoutState'](_0x350ea4));}[_0x42de0f(0x32a)](_0x16bda7){const _0x5f3ab2=_0x42de0f;var _0x1ae9d7;((_0x1ae9d7=this[_0x5f3ab2(0x3c9)]['value'])==null?void 0x0:_0x1ae9d7[_0x5f3ab2(0x408)])===_0x16bda7&&this[_0x5f3ab2(0x3c9)][_0x5f3ab2(0x28f)](null);}};Qn=X([Y(0x0,_0x3dc539(_0x1693c5)),Y(0x1,_0x217aa6),Y(0x2,_0x3dc539(_0x21efe5)),Y(0x3,_0x3dc539(_0x247c0c)),Y(0x4,_0x89c8f3)],Qn);let $n=class extends _0x37fe2d{constructor(_0x1050fa,_0x4f95b8,_0x2bd66a,_0x59b465,_0x1f9d62){const _0x1c9566=_0x42de0f;var _0x4cba0b;super(),this[_0x1c9566(0x418)]=_0x1050fa,this[_0x1c9566(0x33e)]=_0x4f95b8,this[_0x1c9566(0x2dc)]=_0x2bd66a,this[_0x1c9566(0x2d6)]=_0x59b465,this['_userManagerService']=_0x1f9d62,J(this,_0x1c9566(0x37b),new Map()),J(this,_0x1c9566(0x357),new Map()),J(this,_0x1c9566(0x461),new Map()),J(this,_0x1c9566(0x402),!0x1),this[_0x1c9566(0x402)]=!((_0x4cba0b=this[_0x1c9566(0x418)]['getConfig'](_0x29b2b7))!=null&&_0x4cba0b[_0x1c9566(0x362)]);}[_0x42de0f(0x3bc)](){const _0x188bef=_0x42de0f;this[_0x188bef(0x402)]=!0x0;}[_0x42de0f(0x26a)](){const _0x1c9f4c=_0x42de0f;this[_0x1c9f4c(0x402)]=!0x1;}get['saveTaskMap'](){const _0x164311=_0x42de0f;let _0x33ab93=new Map(this[_0x164311(0x357)]);return this[_0x164311(0x461)][_0x164311(0x302)]((_0x3b5811,_0x41d467)=>{const _0x2640f7=_0x164311;_0x33ab93[_0x2640f7(0x2e1)](_0x41d467)||_0x33ab93[_0x2640f7(0x41e)](_0x41d467,0x0);}),_0x33ab93;}[_0x42de0f(0x239)](){const _0x5700f0=_0x42de0f;this[_0x5700f0(0x36b)]||(super[_0x5700f0(0x239)](),this[_0x5700f0(0x402)]=!0x0,this[_0x5700f0(0x33f)]()[_0x5700f0(0x211)](_0x4d17c7=>this[_0x5700f0(0x2d6)][_0x5700f0(0x2a9)](_0x4d17c7)));}async[_0x42de0f(0x338)](_0x15a023,_0x5c2cfb){const _0x2c80b6=_0x42de0f;if(this[_0x2c80b6(0x402)])return null;let _0x23a10b=this[_0x2c80b6(0x3f8)](_0x5c2cfb),_0x4f52eb=await this[_0x2c80b6(0x33e)][_0x2c80b6(0x371)](_0x3f9cb8(_0x15a023,_0x23a10b));return(_0x4f52eb==null?void 0x0:_0x4f52eb[_0x2c80b6(0x287)])===_0x15a023&&this['_normalizeUserId'](_0x4f52eb[_0x2c80b6(0x25d)])===_0x23a10b?_0x4f52eb:null;}async[_0x42de0f(0x42b)](_0x4efba1,_0x52777b,_0x498f40){const _0x41c709=_0x42de0f;let _0x232a00=this[_0x41c709(0x3f8)](_0x498f40),_0x2028f0=_0x3f9cb8(_0x4efba1,_0x232a00),_0x3d6068=this[_0x41c709(0x33e)][_0x41c709(0x27c)](_0x2028f0,{..._0x52777b,'unitID':_0x4efba1,'userId':_0x232a00});return this[_0x41c709(0x334)](_0x2028f0,_0x3d6068),!!await _0x3d6068;}async[_0x42de0f(0x440)](_0x374917,_0x72587f,_0x25b251){const _0x54a38c=_0x42de0f;let _0x11a665=this[_0x54a38c(0x3f8)](_0x25b251),_0xdba03b=_0x3f9cb8(_0x374917,_0x11a665),_0x29926e=this[_0x54a38c(0x37b)][_0x54a38c(0x424)](_0xdba03b)??await this['_localStorageService'][_0x54a38c(0x371)](_0xdba03b);if(!_0x29926e||this[_0x54a38c(0x249)](_0x29926e[_0x54a38c(0x25d)])!==_0x11a665||_0x29926e[_0x54a38c(0x287)]!==_0x374917)return;let _0x5e7e5a=Date[_0x54a38c(0x279)](),_0x47e0ba=new Date(_0x5e7e5a)[_0x54a38c(0x3b3)]();await this[_0x54a38c(0x33e)]['setItem'](_0xdba03b+_0x54a38c(0x2a4)+_0x5e7e5a,{'reason':_0x72587f,'createdAt':_0x47e0ba,'data':_0x29926e});}async[_0x42de0f(0x385)](_0x31d824,_0x2b7eed){const _0x637d0b=_0x42de0f;let _0x1209e0=this[_0x637d0b(0x3f8)](_0x2b7eed),_0xd8a07a=_0x3f9cb8(_0x31d824,_0x1209e0),_0x4a9294=this['_saveTaskMap'][_0x637d0b(0x424)](_0xd8a07a);_0x4a9294!==void 0x0&&(window[_0x637d0b(0x215)](_0x4a9294),this[_0x637d0b(0x357)]['delete'](_0xd8a07a));let _0x4a431a=this[_0x637d0b(0x461)]['get'](_0xd8a07a);_0x4a431a&&await Promise[_0x637d0b(0x366)](_0x4a431a),this[_0x637d0b(0x37b)][_0x637d0b(0x2f8)](_0xd8a07a),await this[_0x637d0b(0x33e)][_0x637d0b(0x2f1)](_0xd8a07a);}[_0x42de0f(0x29d)](_0x4648b3,_0x12c352,_0x2a76ca,_0x233ac1,_0x20c7ff){const _0x1e59d3=_0x42de0f;if(this['_disposed'])return;let _0x385930=this[_0x1e59d3(0x3f8)](_0x20c7ff),_0xa7642b=_0x3f9cb8(_0x4648b3,_0x385930),_0x1fcaf5=this['_revisionService']['getCurrentRevOfUnit'](_0x4648b3);this[_0x1e59d3(0x37b)][_0x1e59d3(0x41e)](_0xa7642b,{'unitID':_0x4648b3,'userId':_0x385930,'type':_0x12c352,'awaitingChangeset':_0x2a76ca,'mutations':_0x233ac1,'rev':_0x1fcaf5}),this['_saveTaskMap'][_0x1e59d3(0x2e1)](_0xa7642b)||this[_0x1e59d3(0x20c)](_0xa7642b);}['_getUserId'](_0x1dac44=((()=>{const _0x255f23=_0x42de0f;var _0x4c3212;return(_0x4c3212=this[_0x255f23(0x22a)][_0x255f23(0x344)]())==null?void 0x0:_0x4c3212['userID'];})())){const _0x1ff0d7=_0x42de0f;return this[_0x1ff0d7(0x249)](_0x1dac44);}['_normalizeUserId'](_0x4ae28e){return _0x4ae28e===''||_0x4ae28e==null?void 0x0:_0x4ae28e;}[_0x42de0f(0x20c)](_0x26d5a3){const _0x5062b1=_0x42de0f;let _0x3a8f80=this[_0x5062b1(0x41c)]();_0x3a8f80===0x0?this['_saveCache'](_0x26d5a3)[_0x5062b1(0x211)](_0x38334f=>this[_0x5062b1(0x2d6)][_0x5062b1(0x2a9)](_0x38334f)):this[_0x5062b1(0x357)][_0x5062b1(0x41e)](_0x26d5a3,window[_0x5062b1(0x228)](()=>{const _0x3e509f=_0x5062b1;this[_0x3e509f(0x247)](_0x26d5a3)[_0x3e509f(0x211)](_0x126e1c=>this[_0x3e509f(0x2d6)]['error'](_0x126e1c));},_0x3a8f80));}[_0x42de0f(0x41c)](){const _0x8ef722=_0x42de0f;return this[_0x8ef722(0x418)][_0x8ef722(0x268)](_0x9c10fb)??_0x414d43;}[_0x42de0f(0x247)](_0x33b3ff){const _0x1fc72b=_0x42de0f;let _0x2da404=this[_0x1fc72b(0x357)][_0x1fc72b(0x424)](_0x33b3ff);_0x2da404!==void 0x0&&window[_0x1fc72b(0x215)](_0x2da404);let _0x216308=this[_0x1fc72b(0x37b)]['get'](_0x33b3ff);if(!_0x216308)return Promise[_0x1fc72b(0x457)]();let _0x46e996=this[_0x1fc72b(0x461)][_0x1fc72b(0x424)](_0x33b3ff),_0x499c6c=Promise[_0x1fc72b(0x366)](_0x46e996?[..._0x46e996]:[])[_0x1fc72b(0x422)](()=>this[_0x1fc72b(0x33e)]['setItem'](_0x33b3ff,_0x216308))['then'](()=>{const _0x4d10f8=_0x1fc72b;_0x2da404!==void 0x0&&this['_saveTaskMap']['get'](_0x33b3ff)===_0x2da404&&(this[_0x4d10f8(0x357)]['delete'](_0x33b3ff),!this[_0x4d10f8(0x36b)]&&this['_cachedData'][_0x4d10f8(0x424)](_0x33b3ff)!==_0x216308&&this['_scheduleSaving'](_0x33b3ff));});return this[_0x1fc72b(0x334)](_0x33b3ff,_0x499c6c),_0x499c6c;}['_trackActiveSaveTask'](_0x3e2521,_0x206248){const _0x32e8f1=_0x42de0f;let _0xd5b93=this[_0x32e8f1(0x461)][_0x32e8f1(0x424)](_0x3e2521);_0xd5b93||(_0xd5b93=new Set(),this['_activeSaveTaskMap'][_0x32e8f1(0x41e)](_0x3e2521,_0xd5b93)),_0xd5b93[_0x32e8f1(0x236)](_0x206248);let _0xcb6365=()=>{const _0x22a91c=_0x32e8f1;_0xd5b93['delete'](_0x206248),_0xd5b93[_0x22a91c(0x34d)]===0x0&&this['_activeSaveTaskMap']['delete'](_0x3e2521);};_0x206248[_0x32e8f1(0x422)](_0xcb6365,_0xcb6365);}async[_0x42de0f(0x33f)](){const _0x483670=_0x42de0f;let _0x46ca1d=[...this[_0x483670(0x357)][_0x483670(0x2a1)]()][_0x483670(0x22b)](_0x5f4c96=>this['_saveCache'](_0x5f4c96));for(let _0x45aba7 of this[_0x483670(0x461)][_0x483670(0x30f)]())_0x46ca1d['push'](...[..._0x45aba7][_0x483670(0x22b)](_0x1b37df=>_0x1b37df['then'](()=>void 0x0)));await Promise['all'](_0x46ca1d);}};$n=X([Y(0x0,_0x444ecb),Y(0x1,_0x5a8b6a),Y(0x2,_0x3dc539(_0x45d042)),Y(0x3,_0x5ca156),Y(0x4,_0x3dc539(_0x192a6f))],$n);var er=class extends _0x37fe2d{get[_0x42de0f(0x31e)](){const _0x1b5345=_0x42de0f;return this[_0x1b5345(0x233)][_0x1b5345(0x263)]();}constructor(){const _0x5f4a85=_0x42de0f;super(),J(this,_0x5f4a85(0x233),new _0x1d09c7(navigator['onLine'])),J(this,_0x5f4a85(0x45e),this[_0x5f4a85(0x233)]['asObservable']()),this[_0x5f4a85(0x3b2)](),this['_listenToOnlineEvent']();}[_0x42de0f(0x239)](){const _0x527d5e=_0x42de0f;super[_0x527d5e(0x239)](),this[_0x527d5e(0x233)][_0x527d5e(0x309)]();}[_0x42de0f(0x20f)](){const _0x19ddff=_0x42de0f;this[_0x19ddff(0x399)](_0x3e0292(_0x569bc8(window,_0x19ddff(0x31e)),_0x569bc8(document,'resume'),_0x569bc8(window,_0x19ddff(0x234)),_0x569bc8(document,_0x19ddff(0x455))[_0x19ddff(0x420)](_0x34bb7(()=>document[_0x19ddff(0x2c3)]===_0x19ddff(0x434)),_0x335bbe(_0x1e1300=>_0x1e1300)))[_0x19ddff(0x420)](_0x335bbe(()=>navigator[_0x19ddff(0x2f9)]))[_0x19ddff(0x308)](()=>this['_online$'][_0x19ddff(0x28f)](!0x0)));}[_0x42de0f(0x3b2)](){const _0x3f7361=_0x42de0f;this[_0x3f7361(0x399)](_0x3e0292(_0x569bc8(window,'offline'),_0x569bc8(document,_0x3f7361(0x26b)))[_0x3f7361(0x308)](()=>this['_online$']['next'](!0x1)));}};function _0xe422(_0x536d1e,_0x233a1d){_0x536d1e=_0x536d1e-0x1ef;const _0x1bc665=_0x1bc6();let _0xe42205=_0x1bc665[_0x536d1e];return _0xe42205;}let $=class extends _0x46a40d{constructor(_0x4fa9f6=un,_0x24bc67,_0x4d0744,_0xd36b24,_0x59eabb){const _0x25ff24=_0x42de0f;super(),this[_0x25ff24(0x206)]=_0x4fa9f6,this[_0x25ff24(0x41a)]=_0x24bc67,this['_injector']=_0x4d0744,this[_0x25ff24(0x418)]=_0xd36b24,this[_0x25ff24(0x2b4)]=_0x59eabb;let {..._0x370b3b}=_0x3da43c({},un,this[_0x25ff24(0x206)]);this[_0x25ff24(0x418)][_0x25ff24(0x248)]('collaboration-client-ui.config',_0x370b3b);}['onStarting'](){const _0x436ab1=_0x42de0f;this[_0x436ab1(0x30d)](),this[_0x436ab1(0x399)](this['_commandService'][_0x436ab1(0x43f)](ln)),this['_initDependencies']();}[_0x42de0f(0x3c4)](){const _0x4ca235=_0x42de0f;this[_0x4ca235(0x2b1)]();}[_0x42de0f(0x30d)](){const _0xeee8a6=_0x42de0f;var _0x2a4f78;let _0x4dc71d=[[pn],[_0x513a41,{'useClass':_0x109f64}],[_0x2acaa8,{'useClass':$n}],[_0x129140,{'useClass':er}],[Z],[Bn],[Q],[In],[Qn]];this[_0xeee8a6(0x206)][_0xeee8a6(0x276)]!==!0x1&&_0x4dc71d['push']([Un],[Vn],[Hn],[gn],[Jn],[dn]),this[_0xeee8a6(0x206)][_0xeee8a6(0x365)]&&_0x4dc71d[_0xeee8a6(0x425)]([Yn]),_0x42b823(this[_0xeee8a6(0x406)],_0x346b37(_0x4dc71d,(_0x2a4f78=this[_0xeee8a6(0x206)])==null?void 0x0:_0x2a4f78['override']));}['_registerRenderDependencies'](){const _0xbf1fc=_0x42de0f;this[_0xbf1fc(0x206)][_0xbf1fc(0x276)]!==!0x1&&this[_0xbf1fc(0x399)](this['_renderManagerService']['registerRenderModule'](_0x105cdb[_0xbf1fc(0x3d0)],[En])),this['disposeWithMe'](this[_0xbf1fc(0x41a)][_0xbf1fc(0x245)](_0x105cdb[_0xbf1fc(0x204)],[On]));}[_0x42de0f(0x438)](){const _0x2ec0b3=_0x42de0f;_0x47e7d(this[_0x2ec0b3(0x406)],[[Q],[In],[Z],[Bn],[Qn]]),this[_0x2ec0b3(0x206)]['enableDocumentCollaborationUI']!==!0x1&&_0x47e7d(this['_injector'],[[Jn],[dn]]),this[_0x2ec0b3(0x206)][_0x2ec0b3(0x365)]&&_0x47e7d(this[_0x2ec0b3(0x406)],[[Yn]]);}};J($,_0x42de0f(0x3d1),_0x42de0f(0x1fe)),J($,_0x42de0f(0x320),sn),J($,_0x42de0f(0x2e5),cn),$=X([_0x1e257f(_0x3b3aa1,_0x5a8d29,_0x4e238c,_0xa28b89,_0x556964,_0x215fbc,_0x5710e7),Y(0x1,_0x4abc49),Y(0x2,_0x3dc539(_0x247c0c)),Y(0x3,_0x444ecb),Y(0x4,_0x639c87)],$);let tr=class extends _0x58904d{constructor(_0x426c09,_0x8be5bc,_0x270d8c,_0x31bb30,_0x1f2759){const _0x2027d1=_0x42de0f;super(_0x426c09,_0x8be5bc,_0x270d8c,_0x31bb30,_0x1f2759),J(this,_0x2027d1(0x349),new _0x4a1ec6()),this[_0x2027d1(0x399)](()=>{const _0x26d71c=_0x2027d1;this[_0x26d71c(0x349)][_0x26d71c(0x28f)](),this[_0x26d71c(0x349)][_0x26d71c(0x309)]();});}async[_0x42de0f(0x3e6)](_0x41d218){const _0x180a16=_0x42de0f;let _0x20a5a9=await this['_getSessionTicket'](),_0x425f87=this[_0x180a16(0x356)](_0x41d218,_0x20a5a9);return this[_0x180a16(0x3c0)](_0x425f87);}[_0x42de0f(0x356)](_0x3bd25a,_0x363a4f){const _0x258afb=_0x42de0f;let _0x4ef1b7=typeof window>'u'?new URL(_0x3bd25a):new URL(_0x3bd25a,window[_0x258afb(0x3ce)][_0x258afb(0x202)]);_0x4ef1b7[_0x258afb(0x201)][_0x258afb(0x41e)](_0x258afb(0x261),_0x363a4f);let _0xa6d6d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x258afb(0x3ce)][_0x258afb(0x45a)]);return _0xa6d6d['get'](_0x258afb(0x389))&&_0x4ef1b7[_0x258afb(0x201)]['set'](_0x258afb(0x389),_0xa6d6d[_0x258afb(0x424)](_0x258afb(0x389))),_0x4ef1b7[_0x258afb(0x335)]();}async[_0x42de0f(0x270)](){const _0xf2d603=_0x42de0f;var _0x2a8396;let _0x554112=this['_configService'][_0xf2d603(0x268)](_0x29b2b7),_0x6c0b13=(_0x554112==null?void 0x0:_0x554112[_0xf2d603(0x28e)])??_0x65b9e3;return((_0x2a8396=(await _0x464d06(this[_0xf2d603(0x282)][_0xf2d603(0x26e)](_0xf2d603(0x2a5),_0x6c0b13,{'headers':{'Content-Type':_0xf2d603(0x2a2)}})[_0xf2d603(0x420)](_0x335bbe(_0x6cd50f=>_0x6cd50f[_0xf2d603(0x3f7)]===_0x53343e[_0xf2d603(0x3e2)]),_0x418b38(0x4e20),_0xafb3a3(this[_0xf2d603(0x349)]))))[_0xf2d603(0x3da)])==null?void 0x0:_0x2a8396[_0xf2d603(0x2e0)])??'';}};tr=X([Y(0x0,_0x3dc539(_0x247c0c)),Y(0x1,_0x3dc539(_0x40028d)),Y(0x2,_0x444ecb),Y(0x3,_0x5ca156),Y(0x4,_0x250b3a)],tr);let nr=class extends _0x37fe2d{constructor(_0x547ea9,_0x636145,_0xf126dc){const _0x1215ca=_0x42de0f;super(),this[_0x1215ca(0x40b)]=_0x547ea9,this[_0x1215ca(0x282)]=_0x636145,this[_0x1215ca(0x418)]=_0xf126dc;}async[_0x42de0f(0x2d8)](_0x6c666d,_0x4fcda5,_0x4f2338,..._0x372aea){const _0xb71e=_0x42de0f;let _0x2fa483=this[_0xb71e(0x40b)][_0xb71e(0x2f5)]();if(!_0x2fa483)throw Error(_0xb71e(0x2d2));let _0x950c92=(this[_0xb71e(0x418)]['getConfig'](_0x219023)??_0x32489a)+'/'+_0x6c666d+_0xb71e(0x2b2)+_0x4fcda5,_0x405126={'scriptId':_0x6c666d,'runId':new URL(window['location'][_0xb71e(0x2cf)])[_0xb71e(0x201)][_0xb71e(0x424)](_0xb71e(0x389))??'','function':_0x4fcda5,'unitId':_0x2fa483[_0xb71e(0x284)](),'argsOfFunction':JSON[_0xb71e(0x42d)](_0x372aea),'invokeId':_0x4f2338['invokeId']??'','executionId':_0x4f2338[_0xb71e(0x35d)]??''};try{let _0x1ce22a=await this['_httpService'][_0xb71e(0x474)](_0x950c92,{'body':_0x405126});return _0x1ce22a['body'][_0xb71e(0x2a9)]&&_0x1ce22a[_0xb71e(0x3da)][_0xb71e(0x2a9)][_0xb71e(0x313)]!==_0x1bab1d['OK']?_0xb71e(0x401):_0x1ce22a[_0xb71e(0x3da)]['result'];}catch{return _0xb71e(0x401);}}};nr=X([Y(0x0,_0x5d6c76),Y(0x1,_0x3dc539(_0x40028d)),Y(0x2,_0x444ecb)],nr);const rr=0x7530,ir=_0x42de0f(0x44d);var ar=class extends _0x37fe2d{constructor(){const _0x14447b=_0x42de0f;super(),J(this,_0x14447b(0x303),_0x4367b0()),J(this,_0x14447b(0x25c),new Set()),J(this,'_unitOnClients',new Map()),J(this,'_heartbeatTimer',null),J(this,_0x14447b(0x32e),new Map()),J(this,'_unitStatus',new Map()),this[_0x14447b(0x36d)]();}[_0x42de0f(0x239)](){const _0x1be876=_0x42de0f;super[_0x1be876(0x239)](),this[_0x1be876(0x32e)][_0x1be876(0x302)]((_0x2b9550,_0x5553de)=>this['_removeClearOtherTimer'](_0x5553de)),this['_heartbeatTimer']&&window[_0x1be876(0x254)](this[_0x1be876(0x35a)]);}['getUnitStatus$'](_0x3d9172){const _0x4dde8c=_0x42de0f;return this[_0x4dde8c(0x388)](_0x3d9172)[_0x4dde8c(0x420)](_0xdfd3b0());}[_0x42de0f(0x477)](_0x264a38){const _0x4b9bf7=_0x42de0f;this[_0x4b9bf7(0x25c)][_0x4b9bf7(0x34d)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4b9bf7(0x25c)][_0x4b9bf7(0x236)](_0x264a38),this[_0x4b9bf7(0x2ab)]({'type':0x0,'memberID':this[_0x4b9bf7(0x303)],'unitIDs':[_0x264a38],'isForwarded':!0x1});}[_0x42de0f(0x448)](_0x5ddd6a){const _0x5d9fb8=_0x42de0f;this[_0x5d9fb8(0x25c)][_0x5d9fb8(0x2f8)](_0x5ddd6a),this[_0x5d9fb8(0x25c)][_0x5d9fb8(0x34d)]===0x0&&this[_0x5d9fb8(0x35a)]&&window[_0x5d9fb8(0x254)](this['_heartbeatTimer']);}[_0x42de0f(0x36d)](){const _0x332f9b=_0x42de0f;this[_0x332f9b(0x399)](_0x11e849(_0x569bc8(window,'storage')[_0x332f9b(0x308)](_0x14e55d=>{const _0x5511ec=_0x332f9b;if(_0x14e55d[_0x5511ec(0x39a)]!==ir||!_0x14e55d[_0x5511ec(0x1f0)])return;let _0x1c09c8=JSON[_0x5511ec(0x21e)](_0x14e55d['newValue']);this[_0x5511ec(0x269)](_0x1c09c8);}))),window[_0x332f9b(0x318)](_0x332f9b(0x205),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x332f9b(0x37c)](this[_0x332f9b(0x25c)])}));}['_handleEvent'](_0x43338e){const _0xe44264=_0x42de0f;switch(_0x43338e[_0xe44264(0x3f7)]){case 0x0:this['_handleJoinEvent'](_0x43338e);break;case 0x1:this[_0xe44264(0x34b)](_0x43338e);break;case 0x2:this[_0xe44264(0x219)](_0x43338e);}}[_0x42de0f(0x43d)](_0x3ef2a1){const _0x48d652=_0x42de0f;let {unitIDs:_0x22bc7e,memberID:_0x23c968,isForwarded:_0x474b4d}=_0x3ef2a1;_0x22bc7e[_0x48d652(0x302)](_0x41c3de=>{const _0x4bb790=_0x48d652;if(!_0x474b4d&&this[_0x4bb790(0x2e4)][_0x4bb790(0x2e1)](_0x41c3de)&&this['_ensureSubject'](_0x41c3de)[_0x4bb790(0x28f)](_0xb36265[_0x4bb790(0x1f5)]),!this[_0x4bb790(0x2e4)][_0x4bb790(0x2e1)](_0x41c3de)||!this[_0x4bb790(0x2e4)][_0x4bb790(0x424)](_0x41c3de)[_0x4bb790(0x2e1)](_0x23c968)){let _0x276e67=this[_0x4bb790(0x2e4)][_0x4bb790(0x424)](_0x41c3de)||new Set();_0x276e67['add'](_0x23c968),this['_unitOnClients']['set'](_0x41c3de,_0x276e67),this['_scheduleClearOtherTimer'](_0x23c968);}}),_0x474b4d||this[_0x48d652(0x2ab)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x48d652(0x25c)]],'isForwarded':!0x0});}[_0x42de0f(0x24e)](_0x28cdb9){const _0x1486c9=_0x42de0f;this[_0x1486c9(0x42e)](_0x28cdb9);let _0x436892=window[_0x1486c9(0x228)](()=>{const _0x5ab02b=_0x1486c9;this[_0x5ab02b(0x2e4)][_0x5ab02b(0x302)](_0x295fff=>{const _0x1b10fb=_0x5ab02b;_0x295fff[_0x1b10fb(0x2f8)](_0x28cdb9);});},rr*0x2);this[_0x1486c9(0x32e)]['set'](_0x28cdb9,_0x436892);}[_0x42de0f(0x42e)](_0x59b15f){const _0x1913b9=_0x42de0f;if(this[_0x1913b9(0x32e)][_0x1913b9(0x2e1)](_0x59b15f)){let _0x2d5f2d=this[_0x1913b9(0x32e)][_0x1913b9(0x424)](_0x59b15f);_0x2d5f2d&&window[_0x1913b9(0x215)](_0x2d5f2d),this[_0x1913b9(0x32e)][_0x1913b9(0x41e)](_0x59b15f,null);}}[_0x42de0f(0x34b)](_0x818900){const _0xa118fc=_0x42de0f;let {memberID:_0x4257b5,unitIDs:_0x36038d}=_0x818900;_0x36038d[_0xa118fc(0x302)](_0x54c920=>{const _0x584f29=_0xa118fc;var _0x26f293;let _0x56acbe=this['_unitOnClients'][_0x584f29(0x424)](_0x54c920);_0x56acbe&&(_0x56acbe[_0x584f29(0x2f8)](_0x4257b5),(_0x26f293=this[_0x584f29(0x388)](_0x54c920))==null||_0x26f293[_0x584f29(0x28f)](_0x56acbe[_0x584f29(0x34d)]===0x0?_0xb36265[_0x584f29(0x23b)]:_0xb36265[_0x584f29(0x1f5)]));}),this[_0xa118fc(0x42e)](_0x4257b5);}['_handleHeartbeatEvent'](_0x4db749){const _0x5e6a2c=_0x42de0f;this[_0x5e6a2c(0x24e)](_0x4db749[_0x5e6a2c(0x43e)]);}[_0x42de0f(0x2ab)](_0x372898){const _0x231d34=_0x42de0f;localStorage['setItem'](ir,JSON[_0x231d34(0x42d)](_0x372898));}[_0x42de0f(0x283)](){const _0x4cfb30=_0x42de0f;this[_0x4cfb30(0x35a)]=window[_0x4cfb30(0x3ee)](()=>{const _0x23f436=_0x4cfb30;this[_0x23f436(0x2ab)]({'type':0x2,'memberID':this[_0x23f436(0x303)]});},rr);}['_ensureSubject'](_0x13b3c1){const _0x1e340d=_0x42de0f;return this[_0x1e340d(0x298)][_0x1e340d(0x2e1)](_0x13b3c1)||this['_unitStatus'][_0x1e340d(0x41e)](_0x13b3c1,new _0x1d09c7(_0xb36265[_0x1e340d(0x23b)])),this[_0x1e340d(0x298)][_0x1e340d(0x424)](_0x13b3c1);}};export{tr as BrowserCollaborationSocketService,Z as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,Dn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};