@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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4a82(){const _0x2a57f9=['cursorInfo$','enableLocalCache','triggerDblclick','useId','IRenderManagerService','M15\x208C15\x2011.866\x2011.866\x2015\x208\x2015C4.13401\x2015\x201\x2011.866\x201\x208C1\x204.13401\x204.13401\x201\x208\x201C11.866\x201\x2015\x204.13401\x2015\x208ZM8.00008\x2012.3671C8.46031\x2012.3671\x208.83342\x2011.994\x208.83342\x2011.5338C8.83342\x2011.0735\x208.46031\x2010.7004\x208.00008\x2010.7004C7.53985\x2010.7004\x207.16675\x2011.0735\x207.16675\x2011.5338C7.16675\x2011.994\x207.53985\x2012.3671\x208.00008\x2012.3671ZM8.5999\x204.4335C8.5999\x204.10213\x208.33127\x203.8335\x207.9999\x203.8335C7.66853\x203.8335\x207.3999\x204.10213\x207.3999\x204.4335V9.36683C7.3999\x209.6982\x207.66853\x209.96683\x207.9999\x209.96683C8.33127\x209.96683\x208.5999\x209.6982\x208.5999\x209.36683V4.4335Z','handleMoveRange','currentColor','_status$','_instanceService','_colorAssignService','_scheduleHeartbeat','Subject','_initEntityListener','selections','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_normalizeUserId','amd','origin','runId','IDocClipboardService','primary','pageType','InsertRangeMoveDownCommandId','_collaborationController','timeout','handleInsertRow','reload','Tools','USERS_LEAVE','visible','_online','font','UniverLicensePlugin','UniverCollaborationPlugin','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_listenToOfflineEvent','startRow','UnitStatus','cursorInfo','stream','_commandService','reason','_docSkeleton','CONFLICT_PROCESSING','univerjs-icon\x20univerjs-icon-','UniverCollaborationClientUIPlugin','_initPresenceStatusComponents','_handleJoinEvent','registerBeforeClose','AWAITING','requireSession','value','Loading','_selfUnitIDs','height','range','element','selectedIds','trim','style','_removeClearOtherTimer','snapshot-loading-timeout','_localCacheService','SessionStatus','stroke-width','focus','_sheetSkeletonManagerService','column','isArray','onRendered','_docClipboardService','left','univer-text-blue-500','_getSessionTicket','_document','collaboration-client-ui.snapshotLoading.refresh','SOCKET_FAILED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','keys','ERROR','Module','_assignedColors','socket$','alert','_labelPosition','setItem','NodePositionConvertToCursor','_registerDependencies','react/jsx-runtime','_listenToOnlineEvent','LOCAL_CACHE_INTERVAL','DeleteRangeMoveLeftCommandId','_hover',':backup:','_init','GLOBAL','get','getCurrentUser','SheetSkeletonManagerService','getCurrentRevOfUnit','setActiveRange','timeoutId','bind','CollaborationStatus','setRemotePresence','_uiPartsService','/run/','params','search','univer-h-8\x20univer-w-8\x20univer-rounded-lg','handleDeleteRangeMoveUp','getTypeOfUnitDisposed$','FromArray','call','UniverSheets','_draw','Unknown\x20user','_configService','enableOfflineEditing','collaboration-client-ui.collabStatus.conflict','replaceSelectionInfoWithoutRefresh','clearRemotePresences','localName','_showAwaitingNotice','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','send','PENDING','getAllUnitsForType','collaboration-client-ui.permission.title','@univerjs/sheets-ui','parseFloat','forwardRef','UniverProLicense','defIds','children','collaboration-client-ui.collaboration.closeRoom','_collabCursorController','slice','length','path','_hovered','restore','fromEvent','timedOut','25430589jTcMFJ','_offsetY','_startDocCollabCursor','univer-appearance-none','\x20-\x20','isReleased','getColorFromTheme','_colorIndex','univer-flex\x20univer-items-center\x20univer-justify-center','replace','getCollabEntity$','includes','react','_ensureSubject','closePath','collaboration-client-ui.session.connection-failed','saveImage','IBeforeCloseService','@univerjs-pro/license','NodePositionConvertToRectRange','collaboration-client-ui.config','state$','_drawRectRange','RxDisposable','_initCommandExecutedListener','allSettled','UniverProCollaboration','SOCKET_FAILED_RETRY','handleInsertRangeMoveRight','strokeOpacity','ITransformService','entityInit$','clear','collaboration-client-ui.license.unit-type-rejected','getFocusedUnit','collaboration-client-ui.collabStatus.synced','unitId','onPointerEnter$','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','IUnitPresenceUIAdapterRegistry','removeEventListener','_disposed','message','LOCAL_CACHE_INTERVAL_KEY','parse','_session','getLocalCacheKey','onMouseMove','UniverProtocol','_stopBlinking','getSheetId','columnGroupId','getMemberID','SnapshotLoadingService','button','_docTransformSelectionsService','UniverDocsUi','enableDocumentCollaborationUI','loadOfflineData','M7.20007\x201.98384C7.20007\x201.54201\x207.55824\x201.18384\x208.00007\x201.18384C11.7647\x201.18384\x2014.8165\x204.23568\x2014.8165\x208.00032C14.8165\x2011.765\x2011.7647\x2014.8168\x208.00007\x2014.8168C4.23543\x2014.8168\x201.18359\x2011.765\x201.18359\x208.00032C1.18359\x207.55849\x201.54177\x207.20031\x201.98359\x207.20031C2.42542\x207.20031\x202.78359\x207.55849\x202.78359\x208.00032C2.78359\x2010.8813\x205.11909\x2013.2168\x208.00007\x2013.2168C10.8811\x2013.2168\x2013.2165\x2010.8813\x2013.2165\x208.00032C13.2165\x205.11933\x2010.8811\x202.78384\x208.00007\x202.78384C7.55824\x202.78384\x207.20007\x202.42567\x207.20007\x201.98384Z','resolve','name','getStateCache','span','_adapter','size','M8.79993\x2014.0166C8.79993\x2014.4585\x208.44176\x2014.8166\x207.99993\x2014.8166C4.23529\x2014.8166\x201.18345\x2011.7648\x201.18345\x208.00017C1.18345\x204.23554\x204.23529\x201.18369\x207.99993\x201.1837C11.7646\x201.1837\x2014.8164\x204.23554\x2014.8164\x208.00017C14.8164\x208.442\x2014.4582\x208.80017\x2014.0164\x208.80017C13.5746\x208.80017\x2013.2164\x208.442\x2013.2164\x208.00017C13.2164\x205.11919\x2010.8809\x202.7837\x207.99993\x202.7837C5.11895\x202.7837\x202.78345\x205.11919\x202.78345\x208.00017C2.78345\x2010.8812\x205.11895\x2013.2166\x207.99993\x2013.2166C8.44176\x2013.2166\x208.79993\x2013.5748\x208.79993\x2014.0166Z','collaboration-client-ui.license.title','_retryingConflictCacheUnitIDs','onTransformChange$','isTransformMutationsWithChangesetSuccess','createInstance','_getSheetObject','contains','transformMutationsWithChangeset','collaboration-client-ui.conflict.title','unsubscribe','true','NOT_COLLAB','segmentPage','update','_refRangeService','updateOfflineData','tableId','UniverProCollaborationClient','defineProperty','@univerjs/engine-render','collaboration-client-ui.collaboration.offline-data-not-saved','_collaborationSessionService','object','getSheetObject','title','iterator','_cursor','handleIRemoveRow','_initialized','clearTimeout','_unitStatus','1em','univer-border-none\x20univer-bg-transparent','_clearOtherTimers','_doCreateSocket','IConfigService','_disposeEntitiesForType','hide','univer-text-green-500','collaboration-client-ui.collabStatus.notCollab','_editingConnectionsExceededNotices','ACTIVE_UNIT_EVENT_CHANNEL','drawWith','entries','_scheduleClearOtherTimer','off-line-icon_clip0_910_343','_removeRemotePresence','options','RemoveRowCommandId','isTransformMutationFailure','wsSessionTicketUrl','delete','CONFLICT','resume','createElement','show','RevisionService','getUnitStatus$','number','isInternalEditorID','_context','stage','status$','collaboration-client-ui.remoteRevert.title','useCallback','getItem','_pointerMoveDisposable','_handleLeaveEvent','10pJeyPV','dispose$','CLOSE_ROOM','collaboration-client-ui.conflict.content','collaboration-client-ui.collaboration.single-unit.warning','_roomMembers$','makeDirty','1.5.0','_conflictNotification','url(#off-line-icon_clip0_910_343)','@univerjs/engine-formula','UniverDocsUIPlugin','sheetID','debounceTime','HEADER','add','_blinkIntervalTimer','_toggleOnline','has','_initUserListener','collaboration-client-ui.session.will-retry','SnapshotLoadStage','collaboration-client-ui.permission.content','unhandledrejection','setInterval','syncEditingCollabCursor','use','256170OlVZUk','strokeWidth','3401121bCTTQO','UniverInstanceType','CONFLICT_CACHE_CLEAR_FAILED','TEXT_RANGE_LAYER_INDEX','getActiveSheet','canRenderAnchor','_updateLocalCursor','LocaleService','throttle','CollaborationSessionService','_onConflict','_textBubble','originalStrokeWidth','conflict$','handleIRemoveCol','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','OffLineIcon','6026088KqUOSr','pipe','changesetResend$','complete','IUniverInstanceService','_cachedData','push','_getSaveTimeout','Failed','_toggleOffline','error','getValue','createSocket','UniverProCollaborationClientUi','pageIndex','focusedId','_render','RichTextEditingMutation','on-line-icon_clip0_910_349','toString','resize','key','_registerPresenceStatusComponent','@univerjs/sheets','UniverUi','svg','_refreshCollabCursors','_initUnhandledRejectionListener','_sendLocalPresence','getCurrentSkeleton','arc','runOnServer','idSuffix','onLine','from','m2Prime','_shapes','_cursorInfo$','editingUnit','_reloadPage','map','_snapshotLoadingService','IImageIoService','getColor','_range','measureText','_startEntity','AWAITING_WITH_PENDING','_saveTaskMap','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','indicator','memberID','non-scaling-stroke','18kNsQJB','isEditing','totalBlocks','_activeSaveTaskMap','Error','enableDefaultConflictUI','_unitOnClients','IMessageService','transformMutation','div','setShapeProps','_isDisposed','getRangePointData','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','SetDocZoomRatioOperation','engine','getPropertyValue','getCurrentUnitOfType','body','_clearTimeoutState','924587EkueXx','bold\x2013px\x20Arial,\x20sans-serif','transformStateCache','useRef','redoState','on-line-icon','labelHorizontalPosition','collaboration-client-ui.collabStatus.offline','prepareTransformSelections','executeCommand','_injector','_scene','_messageIds','0\x200\x2016\x2016','useImperativeHandle','shareInterval','addObject','_setupBeforeClosingHandler','_updateMessage','parseInt','getCellIndexByOffset','InsertRowCommandId','HTTPService','EffectRefRangId','Rect','NO_OTHER_CLIENTS_EDITING','_blockProgressWatches','baseVal','debounce','getDocRanges','toISOString','stack','row','yellow.400','CollaborationUIEventId','_getAnchorBounding','_config','_memberService','http://www.w3.org/2000/svg','_showConflictCacheClearFailedNotification','dark:focus:!univer-ring-offset-gray-800','RemoveColCommandId','toRgbString','hadStyleAttribute','Injector','DOC_RANGE_TYPE','exports','getOffsetConfig','_imageIoService','getMergeData','registerDependencies','_saveCache','_univerInstanceService','univer-m-0\x20univer-p-0','onCommandExecuted','_notificationService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','hovered','univer-text-orange-500','_beforeCloseService','_messageService','UniverCore','columnIndex','univer-transition-all\x20univer-duration-200','collaboration-client-ui.collabStatus.fetchMiss','_docSyncEditingCollabCursorService','@univerjs-pro/collaboration-client','displayName','endColumn','_hideTimer','observe','every','_uploadLog','TEXT','offsetY','catch','_presenceStatusRegistrations','collab-text-range-','round','_name','_anchor','GET','loadedBlocks','_adapterRegistry','rxjs/operators','_eventUnsubscribe','values','evenodd','addEventListener','registerComponent','startOffset','location','searchParams','_handleCursorUpdate','pluginName','_drawTextRange','0.2)','getViewport','online','_adapterDisposables','generateRandomId','forEach','collaboration-client-ui.collabClient.tooltip.reconnect','visibilityState','off-line-icon','disposeWithMe','beginPath','useObservable','MessageType','saveOfflineData','_initAwaitingNotices','_getMergeRange','_lastPointer','defs','deserializeRangeWithSheet','textRanges','online$','collaboration-client-ui.conflict.clearFailed','loading','translate(.97)','sessionStatus$','_initEvent','polite','text','SheetsSelectionsService','IUIPartsService','colno','_userManagerService','getSelectionInfo','url(#on-line-icon_clip0_910_349)','WebBrowserSingleActiveUnitService','_monkeyPatchLogService','OTHER_CLIENTS_EDITING','mergeOverrideWithDependencies','stringify','moveTo','default','statusUIPart','undoState','dispose','startsWith','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_entities','transformByState','_startBlinking','presenceKind','_onRefRangeChange','mutations','getRenderUnitById','application/json','url(#$1','transform','getLocalPresence','VIEW_MAIN','UNIVER_DOC','collab-text-anchor-','disposeUnit','UniverIcon','_isBlinkVisible','LOADING_BLOCKS','INetworkConditionService','RefRangeService','_transformService','WarningIcon','_createSocketURL','enableFrontendLog','static','_watchBlockProgress','attrs','_trackActiveSaveTask','@univerjs/docs-ui','UniverEngineRender','deepClone','ranges','_replaceConflictNotification','getCollabCursors$','tag','_initStatusComponent','_getLighterColor','reconnect','top','ICommandService','getBoundingClientRect','Warning','_online$','merge','_localeService','\x20at\x20','getCollabEntities','userId','@univerjs/docs','useLayoutEffect','post','_clearBlockProgressWatch','RegularPolygon','then','_handleHover','rgba','fillText','showText','_collaborationUIEventService','DependentOn','#0B9EFB','viewBox','_handleEvent','0\x200\x2017\x2016','unload','CollaborationEvent','_removeCollabCursors','ILogService','icon','adapters$','type','subscribe','_syncEditingCollabCursorService','getUnit','BuiltInUIPart','_themeService','_docStateChangeManagerService','collabCursorState$','constructor','M0\x200H16V16H0z','state','_initWindowErrorListener','_docSelectionManagerService','_initConflictHandling','collaboration-client-ui.license.domain-rejected','OnLineIcon','_heartbeatTimer','_removeAwaitingNotices','_disposeEntity','disconnect','_revisionService','_collabSessionService','newValue','white','assignAColorForMemberID','focused$','event$','UniverDocs','hasAttribute','current','_httpService','useDependency','_showConflictProcessingNotification','_backgroundColor','filter','RECT','React','toDisposable','_anchorDot','JOIN_ROOM_FAILED','highlightSecond','i18nKey','_docSkeletonManagerService','collaboration-client-ui.license.editing-connections-exceeded','_initDependencies','remove','filename','_retryConflictCacheClear','fillStyle','fill','lineTo','COLORS','transformIMECache','5BhMwJP','collaboration-client-ui.operation.update-remote-unit-presence','_cursors','useMemo','doc.mutation.rich-text-editing','unshift','Enter','status','removeRemotePresence','executionId','getConfig','colorChannel1','serializeRangeWithSheet','_clearRemotePresences','Shape','Button','WebSocketService','_collabCursorState$','collab-rect-range-','clsx','handleInsertCol','min','lineno','_saveTimedOutNotices','function','setUndoRedoMutationParamsCache','HEADER_MENU','_onCursorUpdate','_disabled','invokeId','spin','warning','getMember','xlink:href','subUnitId','small','next','clipPath','sheetId','CommandType','selection','_handleHeartbeatEvent','ErrorCode','none','storage','connectInjector','activate','kind','3216196suXqbX','bottom','addClipboardHook','assign','CollaborationController','_registerRenderDependencies','BehaviorSubject','toStringTag','INotificationService','SetTextSelectionsOperation','HTTPEventType','with','removeProperty','onStarting','clearInterval','sessionTicket','OFFLINE','exhaustSavingTask','_cursorShapes','blue.400','setAlpha','currentSkeleton$','getSheetBySheetId','_timeoutState$','_labelHorizontalPosition','switchMap','endOffset','RemoteUniscriptService','_scheduleSaving','querySelectorAll','SYNCED','isActive','jsxs','_onCursorDelete','_highlight','throttleTime','@univerjs/design','LICENSE_DOMAIN_REJECTED','setTimeout','tooltipKey','_showText','_send','stroke','transformRemoteChangeset','Vector2','_docTransformStateCacheService','getUndoRedoMutationParamsCache','UNIVER_SHEET','appliedStrokeWidth','clickable','decorate','getTypeOfUnitAdded$','init','refreshLabel','snapshot-loading-','setStateCache','_logService','COMPLETE','handleInsertRangeMoveDown','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','jsx','split','width','eventID','content','string','...','labelPosition','_pendingEntities','save','black','disableLocalCache','cacheCleared','univer-inline-flex\x20univer-items-center\x20univer-justify-center','SHEET_VIEWPORT_KEY','getCurrentSelections','_color','_docTransformIMECacheService','@univerjs/protocol','roomMembers','DocSelectionManagerService','collaboration-client-ui.session.collaboration-timeout','jiqing.500','offline','color','UniverEngineFormula','_localStorageService','/universer-api/frontend/logs','preventDefault','_getScale','_blinkTimer','roomMembers$','setOffsetY','DocIMEInputManagerService','Disposable','firstValueFrom','packageName','clearOfflineData','unitType','getSkeleton','ONLINE','unitID','Tooltip','_memberID','@univerjs/core','DisposableCollection','priority','rgba(255,\x20255,\x20255,\x200.01)','toFixed','mask','memberId','DesktopCollaborationStatusDisplayController','timeoutState$','distinctUntilChanged','touchDependencies','set','142079svbSLj','runRefRangeMutations','rxjs','canRenderSelection','_renderManagerService','_presenceAdapterRegistry','collaboration-client-ui.conflict.retry','@univerjs/network','_startSheetCollabCursor','getActiveRange','m1Prime','elapsedMs','SetSelectionsOperation','data','backgroundColor','ILocalCacheService','_dispose$','_transformPreviousActiveRange','OTHER_CLIENT_EDITING','find','flatMap','target','asObservable','rgb','_highlightSecond','ThemeService','Response','some','subscribeEvent','DocumentSkeletonPageType','#FFF','isFinite','_updateCollabCursors','saveTaskMap','right','_getUserId','getPropertyPriority','highlight','fromEventSubject','_id','vectorEffect','_entityInit$','getCurrentTypeOfUnit$','Inject','UPDATE_CURSOR','toPrimitive','takeUntil','getUnitId','BrowserCollaborationSocketService','getOwnPropertyDescriptor','pointer','_bindAdapter','endRow','_transformUndoRedoStack','collaboration-client-ui.collabStatus.syncing','findNodePositionByCharIndex','currentTheme$','_drawAnchor','collaboration-client-ui.remoteRevert.content','MemberService'];_0x4a82=function(){return _0x2a57f9;};return _0x4a82();}function _0x2f4a(_0x3192ce,_0x315f77){_0x3192ce=_0x3192ce-0x1b6;const _0x4a8299=_0x4a82();let _0x2f4ac7=_0x4a8299[_0x3192ce];return _0x2f4ac7;}(function(_0x489fb4,_0x135b37){const _0x261faf=_0x2f4a,_0x64816a=_0x489fb4();while(!![]){try{const _0x51d835=parseInt(_0x261faf(0x511))/0x1+-parseInt(_0x261faf(0x4b5))/0x2+parseInt(_0x261faf(0x4b7))/0x3+-parseInt(_0x261faf(0x2d2))/0x4*(-parseInt(_0x261faf(0x2a2))/0x5)+parseInt(_0x261faf(0x4fd))/0x6*(parseInt(_0x261faf(0x346))/0x7)+parseInt(_0x261faf(0x4c8))/0x8+-parseInt(_0x261faf(0x413))/0x9*(parseInt(_0x261faf(0x49a))/0xa);if(_0x51d835===_0x135b37)break;else _0x64816a['push'](_0x64816a['shift']());}catch(_0xc0ead6){_0x64816a['push'](_0x64816a['shift']());}}}(_0x4a82,0xb0765),function(_0x5d4eaf,_0x41bc7e){const _0x580833=_0x2f4a;typeof exports==_0x580833(0x46c)&&typeof module<'u'?_0x41bc7e(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/protocol')):typeof define==_0x580833(0x2ba)&&define[_0x580833(0x393)]?define([_0x580833(0x1c7),_0x580833(0x1db),_0x580833(0x33a),'@univerjs/ui','rxjs',_0x580833(0x1ed),_0x580833(0x2f6),_0x580833(0x41f),_0x580833(0x3db),'@univerjs-pro/collaboration',_0x580833(0x425),_0x580833(0x257),_0x580833(0x243),_0x580833(0x469),_0x580833(0x34d),_0x580833(0x4a4),_0x580833(0x4df),_0x580833(0x404),_0x580833(0x320)],_0x41bc7e):(_0x5d4eaf=typeof globalThis<'u'?globalThis:_0x5d4eaf||self,_0x41bc7e(_0x5d4eaf[_0x580833(0x4d5)]={},_0x5d4eaf[_0x580833(0x467)],_0x5d4eaf[_0x580833(0x1d6)],_0x5d4eaf[_0x580833(0x4e0)],_0x5d4eaf[_0x580833(0x348)],_0x5d4eaf['rxjs']['operators'],_0x5d4eaf['UniverDesign'],_0x5d4eaf[_0x580833(0x291)],_0x5d4eaf[_0x580833(0x291)],_0x5d4eaf[_0x580833(0x42d)],_0x5d4eaf[_0x580833(0x407)],_0x5d4eaf[_0x580833(0x288)],_0x5d4eaf[_0x580833(0x44b)],_0x5d4eaf[_0x580833(0x244)],_0x5d4eaf['UniverNetwork'],_0x5d4eaf[_0x580833(0x327)],_0x5d4eaf[_0x580833(0x3f5)],_0x5d4eaf['UniverSheetsUi'],_0x5d4eaf[_0x580833(0x443)]));}(this,function(_0x47ea75,_0x1134b1,_0x583c0b,_0x132a23,_0x40bd7a,_0x6228ab,_0x309bf7,_0x419824,_0x4a8b3a,_0x3569c2,_0x356232,_0x574cdb,_0x594380,_0x1f114e,_0x55fd99,_0x2afa04,_0x44985e,_0x163f80,_0x52ba28){const _0x49e248=_0x2f4a;Object['defineProperty'](_0x47ea75,Symbol[_0x49e248(0x2d9)],{'value':_0x49e248(0x3d3)});function _0x9c619c({ref:_0x18411e,..._0x3a1e51}){const _0x3b88d1=_0x49e248;let {preserveStrokeWidth:_0x43812b,icon:_0x219c86,id:_0x443ff4,className:_0x1577f2,extend:_0x42e4ba,..._0x3bc0a3}=_0x3a1e51,_0x1be664=(_0x3b88d1(0x3af)+_0x443ff4+'\x20'+(_0x1577f2||''))[_0x3b88d1(0x3bd)](),_0x178e8b='_'+(0x0,_0x419824[_0x3b88d1(0x385)])(),_0x20d9cd=(0x0,_0x419824[_0x3b88d1(0x514)])(null);return(0x0,_0x419824[_0x3b88d1(0x51f)])(_0x18411e,()=>_0x20d9cd[_0x3b88d1(0x28a)]),(0x0,_0x419824[_0x3b88d1(0x258)])(()=>{const _0x9544a4=_0x3b88d1;if(_0x43812b&&_0x20d9cd[_0x9544a4(0x28a)]&&_0x20d9cd[_0x9544a4(0x28a)][_0x9544a4(0x3fd)]===_0x219c86[_0x9544a4(0x249)])return _0x2fe0b8(_0x20d9cd[_0x9544a4(0x28a)]);},[_0x43812b,_0x219c86]),_0x359c8a(_0x219c86,''+_0x443ff4,{'defIds':_0x219c86[_0x3b88d1(0x408)],'idSuffix':_0x178e8b},{'ref':_0x20d9cd,'className':_0x1be664,..._0x3bc0a3},_0x42e4ba);}function _0x359c8a(_0x37a42,_0x542fa2,_0x185e75,_0x31d67a,_0x3a6293){const _0xef475e=_0x49e248;return(0x0,_0x419824['createElement'])(_0x37a42[_0xef475e(0x249)],{'key':_0x542fa2,..._0x556bb7(_0x37a42,_0x185e75,_0x3a6293),..._0x31d67a},(_0x590634(_0x37a42,_0x185e75)['children']||[])[_0xef475e(0x4f0)]((_0x38dbb1,_0x1de391)=>_0x359c8a(_0x38dbb1,_0x542fa2+'-'+_0x37a42[_0xef475e(0x249)]+'-'+_0x1de391,_0x185e75,void 0x0,_0x3a6293)));}function _0x556bb7(_0x123ebb,_0x3b5e2f,_0x2c679f){const _0x35e6f6=_0x49e248;let _0xcf9c06={..._0x123ebb[_0x35e6f6(0x241)]};_0x2c679f!=null&&_0x2c679f[_0x35e6f6(0x2ad)]&&_0xcf9c06[_0x35e6f6(0x29e)]===_0x35e6f6(0x2ad)&&(_0xcf9c06[_0x35e6f6(0x29e)]=_0x2c679f[_0x35e6f6(0x2ad)]),_0x2c679f!=null&&_0x2c679f[_0x35e6f6(0x2ad)]&&_0xcf9c06[_0x35e6f6(0x2fc)]===_0x35e6f6(0x2ad)&&(_0xcf9c06['stroke']=_0x2c679f[_0x35e6f6(0x2ad)]),_0x123ebb[_0x35e6f6(0x249)]===_0x35e6f6(0x33f)&&_0xcf9c06['id']&&(_0xcf9c06['id']+=_0x3b5e2f[_0x35e6f6(0x4e8)]),Object[_0x35e6f6(0x481)](_0xcf9c06)[_0x35e6f6(0x1fe)](([_0x5a9d1e,_0x347603])=>{const _0xb89596=_0x35e6f6;_0x5a9d1e==='mask'&&typeof _0x347603==_0xb89596(0x313)&&(_0xcf9c06[_0x5a9d1e]=_0x347603['replace'](/url\(#(.*)\)/,_0xb89596(0x22f)+_0x3b5e2f[_0xb89596(0x4e8)]+')'));});let {defIds:_0x146b6f}=_0x3b5e2f;return!_0x146b6f||_0x146b6f[_0x35e6f6(0x40d)]===0x0||(_0x123ebb[_0x35e6f6(0x249)]===_0x35e6f6(0x4b4)&&_0xcf9c06['xlink:href']&&(_0xcf9c06[_0x35e6f6(0x2c3)]+=_0x3b5e2f[_0x35e6f6(0x4e8)]),Object[_0x35e6f6(0x481)](_0xcf9c06)[_0x35e6f6(0x1fe)](([_0x4382cd,_0x5db5a3])=>{const _0x3c555d=_0x35e6f6;typeof _0x5db5a3==_0x3c555d(0x313)&&(_0xcf9c06[_0x4382cd]=_0x5db5a3[_0x3c555d(0x41c)](/url\(#(.*)\)/,_0x3c555d(0x22f)+_0x3b5e2f[_0x3c555d(0x4e8)]+')'));})),_0xcf9c06;}function _0x590634(_0x4cefbe,_0x3e250b){const _0x771b36=_0x49e248;var _0x5f519f;let {defIds:_0x417af0}=_0x3e250b;return!_0x417af0||_0x417af0[_0x771b36(0x40d)]===0x0?_0x4cefbe:_0x4cefbe[_0x771b36(0x249)]===_0x771b36(0x20a)&&(_0x5f519f=_0x4cefbe[_0x771b36(0x409)])!=null&&_0x5f519f[_0x771b36(0x40d)]?{..._0x4cefbe,'children':_0x4cefbe[_0x771b36(0x409)][_0x771b36(0x4f0)](_0x52c065=>typeof _0x52c065['attrs']['id']==_0x771b36(0x313)&&_0x417af0&&_0x417af0[_0x771b36(0x41e)](_0x52c065[_0x771b36(0x241)]['id'])?{..._0x52c065,'attrs':{..._0x52c065['attrs'],'id':_0x52c065[_0x771b36(0x241)]['id']+_0x3e250b[_0x771b36(0x4e8)]}}:_0x52c065)}:_0x4cefbe;}function _0x2fe0b8(_0x1e50b9){const _0x4dc538=_0x49e248;let _0x429548=_0x1e50b9[_0x4dc538(0x264)][_0x4dc538(0x52c)],_0x41f2b1=Math['max'](_0x429548['width'],_0x429548[_0x4dc538(0x3b9)]);if(!Number[_0x4dc538(0x365)](_0x41f2b1)||_0x41f2b1<=0x0||_0x429548[_0x4dc538(0x310)]<=0x0||_0x429548['height']<=0x0)return()=>void 0x0;let _0x426aee=0x10/_0x41f2b1,_0x3774aa=Array[_0x4dc538(0x4ea)](_0x1e50b9[_0x4dc538(0x2ef)]('circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use'))[_0x4dc538(0x35a)](_0xcf20b7=>{const _0x1e3c50=_0x4dc538;let _0x368b4a=getComputedStyle(_0xcf20b7),_0xcad843=Number[_0x1e3c50(0x405)](_0x368b4a[_0x1e3c50(0x4b6)]);return _0x368b4a['stroke']===_0x1e3c50(0x2cd)||Number[_0x1e3c50(0x405)](_0x368b4a[_0x1e3c50(0x430)])===0x0||_0x368b4a[_0x1e3c50(0x36e)]===_0x1e3c50(0x4fc)||!Number[_0x1e3c50(0x365)](_0xcad843)||_0xcad843<=0x0?[]:[{'element':_0xcf20b7,'hadStyleAttribute':_0xcf20b7[_0x1e3c50(0x289)]('style'),'originalStrokeWidth':_0xcad843,'strokeWidth':_0x3f6aaa(_0xcf20b7[_0x1e3c50(0x3be)],_0x1e3c50(0x3c3))}];})[_0x4dc538(0x4f0)](_0x3882e7=>({'appliedStrokeWidth':null,'element':_0x3882e7[_0x4dc538(0x3bb)],'hadStyleAttribute':_0x3882e7['hadStyleAttribute'],'isReleased':!0x1,'originalStrokeWidth':_0x3882e7[_0x4dc538(0x4c3)],'strokeWidth':_0x3882e7[_0x4dc538(0x4b6)]}));if(_0x3774aa['length']===0x0)return()=>void 0x0;let _0xa70382=(_0x18c497,_0x457c12)=>{const _0x834cb6=_0x4dc538;if(_0x429548[_0x834cb6(0x310)]<=0x0||_0x429548[_0x834cb6(0x3b9)]<=0x0||_0x18c497<=0x0||_0x457c12<=0x0)return;let _0x546d45=Math[_0x834cb6(0x2b7)](_0x18c497/_0x429548[_0x834cb6(0x310)],_0x457c12/_0x429548[_0x834cb6(0x3b9)]);!Number['isFinite'](_0x546d45)||_0x546d45<=0x0||_0x3774aa[_0x834cb6(0x1fe)](_0x160f0c=>{const _0x49af84=_0x834cb6;if(_0x160f0c[_0x49af84(0x418)])return;if(_0x160f0c[_0x49af84(0x302)]!==null&&(_0x160f0c[_0x49af84(0x3bb)][_0x49af84(0x3be)][_0x49af84(0x50d)](_0x49af84(0x3c3))!==_0x160f0c[_0x49af84(0x302)]||_0x160f0c[_0x49af84(0x3bb)][_0x49af84(0x3be)][_0x49af84(0x36a)](_0x49af84(0x3c3))!==_0x160f0c[_0x49af84(0x4b6)][_0x49af84(0x33c)])){_0x160f0c[_0x49af84(0x302)]=null,_0x160f0c[_0x49af84(0x418)]=!0x0;return;}let _0x17dfef=_0x160f0c[_0x49af84(0x4c3)]*_0x426aee/_0x546d45,_0xdebeb1=Number(_0x17dfef[_0x49af84(0x33e)](0xc))+'px';_0x160f0c[_0x49af84(0x3bb)][_0x49af84(0x3be)]['setProperty'](_0x49af84(0x3c3),_0xdebeb1,_0x160f0c[_0x49af84(0x4b6)][_0x49af84(0x33c)]),_0x160f0c['appliedStrokeWidth']=_0xdebeb1;});},_0x215f0b=_0x1e50b9[_0x4dc538(0x24f)]();_0xa70382(_0x215f0b[_0x4dc538(0x310)],_0x215f0b[_0x4dc538(0x3b9)]);let _0x8cf836=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x196419=>{const _0x1378cc=_0x4dc538;if(_0x196419['some'](_0xf90833=>_0xf90833[_0x1378cc(0x35b)]===_0x1e50b9)){let _0x45d560=_0x1e50b9[_0x1378cc(0x24f)]();_0xa70382(_0x45d560[_0x1378cc(0x310)],_0x45d560['height']);}});return _0x8cf836==null||_0x8cf836[_0x4dc538(0x1df)](_0x1e50b9),()=>{const _0x199dc0=_0x4dc538;_0x8cf836==null||_0x8cf836[_0x199dc0(0x280)](),_0x3774aa[_0x199dc0(0x1fe)](_0x3b48ed=>{const _0x46a54a=_0x199dc0;_0x3b48ed['appliedStrokeWidth']!==null&&(_0x59c863(_0x3b48ed[_0x46a54a(0x3bb)][_0x46a54a(0x3be)],'stroke-width',_0x3b48ed[_0x46a54a(0x302)],_0x3b48ed['strokeWidth'][_0x46a54a(0x33c)],_0x3b48ed[_0x46a54a(0x4b6)]),!_0x3b48ed[_0x46a54a(0x1c4)]&&_0x3b48ed['element'][_0x46a54a(0x3be)]['length']===0x0&&_0x3b48ed[_0x46a54a(0x3bb)]['removeAttribute'](_0x46a54a(0x3be)));});};}function _0x3f6aaa(_0x20af01,_0x5310b7){const _0x28425b=_0x49e248;return{'priority':_0x20af01[_0x28425b(0x36a)](_0x5310b7),'value':_0x20af01[_0x28425b(0x50d)](_0x5310b7)};}function _0x59c863(_0x535161,_0x2def0a,_0x1bf2e4,_0x307306,_0x11b32a){const _0x209667=_0x49e248;_0x535161[_0x209667(0x50d)](_0x2def0a)===_0x1bf2e4&&_0x535161['getPropertyPriority'](_0x2def0a)===_0x307306&&(_0x11b32a[_0x209667(0x3b6)]?_0x535161['setProperty'](_0x2def0a,_0x11b32a[_0x209667(0x3b6)],_0x11b32a[_0x209667(0x33c)]):_0x535161[_0x209667(0x2de)](_0x2def0a));}_0x9c619c[_0x49e248(0x1dc)]=_0x49e248(0x236);let _0x44667e={'tag':_0x49e248(0x4e1),'attrs':{'xmlns':_0x49e248(0x1bf),'fill':_0x49e248(0x2cd),'viewBox':_0x49e248(0x51e),'width':_0x49e248(0x475),'height':_0x49e248(0x475)},'children':[{'tag':'g','attrs':{'clipPath':_0x49e248(0x4a3)},'children':[{'tag':_0x49e248(0x40e),'attrs':{'stroke':_0x49e248(0x389),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x49e248(0x1e7),'strokeWidth':1.2}}]},{'tag':_0x49e248(0x20a),'attrs':{},'children':[{'tag':_0x49e248(0x2c7),'attrs':{'id':_0x49e248(0x483)},'children':[{'tag':_0x49e248(0x40e),'attrs':{'fill':_0x49e248(0x284),'d':_0x49e248(0x276)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x49148c=(0x0,_0x419824[_0x49e248(0x406)])(function(_0x5e61eb,_0x5b2928){const _0x320cf3=_0x49e248;return(0x0,_0x419824[_0x320cf3(0x48c)])(_0x9c619c,Object[_0x320cf3(0x2d5)]({},_0x5e61eb,{'id':_0x320cf3(0x201),'ref':_0x5b2928,'icon':_0x44667e}));});_0x49148c[_0x49e248(0x1dc)]=_0x49e248(0x4c7);let _0x32baa1={'tag':_0x49e248(0x4e1),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x49e248(0x2cd),'viewBox':_0x49e248(0x266),'width':_0x49e248(0x475),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x49e248(0x21a)},'children':[{'tag':_0x49e248(0x40e),'attrs':{'stroke':_0x49e248(0x389),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x49e248(0x1e7),'strokeWidth':1.2}}]},{'tag':_0x49e248(0x20a),'attrs':{},'children':[{'tag':_0x49e248(0x2c7),'attrs':{'id':_0x49e248(0x4da)},'children':[{'tag':'path','attrs':{'fill':_0x49e248(0x284),'d':_0x49e248(0x276),'transform':_0x49e248(0x210)}}]}]}],'defIds':[_0x49e248(0x4da)]},_0x345f57=(0x0,_0x419824[_0x49e248(0x406)])(function(_0x355148,_0x97237){const _0x1962d0=_0x49e248;return(0x0,_0x419824[_0x1962d0(0x48c)])(_0x9c619c,Object[_0x1962d0(0x2d5)]({},_0x355148,{'id':_0x1962d0(0x516),'ref':_0x97237,'icon':_0x32baa1}));});_0x345f57[_0x49e248(0x1dc)]=_0x49e248(0x27c);let _0x3ad491={'tag':_0x49e248(0x4e1),'attrs':{'xmlns':_0x49e248(0x1bf),'fill':_0x49e248(0x2cd),'viewBox':_0x49e248(0x51e),'width':_0x49e248(0x475),'height':_0x49e248(0x475)},'children':[{'tag':_0x49e248(0x40e),'attrs':{'fill':_0x49e248(0x389),'d':_0x49e248(0x387),'fillRule':'evenodd','clipRule':_0x49e248(0x1f0)}}]},_0x2e2313=(0x0,_0x419824[_0x49e248(0x406)])(function(_0x264170,_0x13220b){return(0x0,_0x419824['createElement'])(_0x9c619c,Object['assign']({},_0x264170,{'id':'warning-icon','ref':_0x13220b,'icon':_0x3ad491}));});_0x2e2313[_0x49e248(0x1dc)]=_0x49e248(0x23c);let _0x264fd3={'tag':_0x49e248(0x4e1),'attrs':{'xmlns':_0x49e248(0x1bf),'fill':_0x49e248(0x2cd),'viewBox':_0x49e248(0x51e),'width':_0x49e248(0x475),'height':_0x49e248(0x475)},'children':[{'tag':'path','attrs':{'fill':_0x49e248(0x263),'d':_0x49e248(0x455),'fillOpacity':0.2,'fillRule':_0x49e248(0x1f0),'clipRule':_0x49e248(0x1f0)}},{'tag':_0x49e248(0x40e),'attrs':{'fill':_0x49e248(0x263),'d':_0x49e248(0x44e),'fillRule':'evenodd','clipRule':_0x49e248(0x1f0)}}]},_0x1f236c=(0x0,_0x419824['forwardRef'])(function(_0x175371,_0x37890d){const _0x4b6f18=_0x49e248;return(0x0,_0x419824['createElement'])(_0x9c619c,Object[_0x4b6f18(0x2d5)]({},_0x175371,{'id':'loading-multi-icon','ref':_0x37890d,'icon':_0x264fd3}));});_0x1f236c[_0x49e248(0x1dc)]='LoadingMultiIcon';function _0x7a2dc2(_0x2a6660){const _0x1de5f8=_0x49e248;switch(_0x2a6660){case _0x1134b1[_0x1de5f8(0x3ea)][_0x1de5f8(0x2e2)]:return{'icon':(0x0,_0x4a8b3a['jsx'])(_0x49148c,{}),'colorClass':'univer-text-red-500','i18nKey':_0x1de5f8(0x518),'tooltipKey':_0x1de5f8(0x1ff),'clickable':!0x0,'indicator':_0x1de5f8(0x23f)};case _0x1134b1[_0x1de5f8(0x3ea)][_0x1de5f8(0x48a)]:return{'icon':(0x0,_0x4a8b3a[_0x1de5f8(0x30e)])(_0x49148c,{}),'colorClass':_0x1de5f8(0x1d3),'i18nKey':_0x1de5f8(0x3fa),'clickable':!0x1,'indicator':_0x1de5f8(0x23f)};case _0x1134b1[_0x1de5f8(0x3ea)]['FETCH_MISS']:return{'icon':(0x0,_0x4a8b3a['jsx'])(_0x1f236c,{}),'colorClass':_0x1de5f8(0x3cb),'i18nKey':_0x1de5f8(0x1d9),'clickable':!0x1,'indicator':_0x1de5f8(0x2c0)};case _0x1134b1[_0x1de5f8(0x3ea)][_0x1de5f8(0x461)]:return{'icon':(0x0,_0x4a8b3a[_0x1de5f8(0x30e)])(_0x345f57,{}),'colorClass':'univer-text-gray-400','i18nKey':_0x1de5f8(0x47d),'clickable':!0x1,'indicator':_0x1de5f8(0x23f)};case _0x1134b1[_0x1de5f8(0x3ea)]['AWAITING']:case _0x1134b1[_0x1de5f8(0x3ea)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,_0x4a8b3a[_0x1de5f8(0x30e)])(_0x1f236c,{}),'colorClass':_0x1de5f8(0x3cb),'i18nKey':_0x1de5f8(0x37c),'clickable':!0x1,'indicator':_0x1de5f8(0x2c0)};case _0x1134b1['CollaborationStatus'][_0x1de5f8(0x401)]:return{'icon':(0x0,_0x4a8b3a[_0x1de5f8(0x30e)])(_0x1f236c,{}),'colorClass':_0x1de5f8(0x3cb),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x1de5f8(0x2c0)};case _0x1134b1['CollaborationStatus'][_0x1de5f8(0x2f0)]:return{'icon':(0x0,_0x4a8b3a[_0x1de5f8(0x30e)])(_0x345f57,{}),'colorClass':_0x1de5f8(0x47c),'i18nKey':_0x1de5f8(0x436),'clickable':!0x1,'indicator':_0x1de5f8(0x23f)};}}function _0x2564f2(_0x4704a7){const _0x1f064a=_0x49e248;let {status$:_0x29907f}=_0x4704a7,_0x281dcf=(0x0,_0x132a23[_0x1f064a(0x204)])(_0x29907f,_0x1134b1[_0x1f064a(0x3ea)][_0x1f064a(0x461)]),_0x2ff5fb=(0x0,_0x132a23[_0x1f064a(0x28c)])(_0x583c0b[_0x1f064a(0x4be)]),_0x31ff77=(0x0,_0x132a23['useDependency'])(_0x1134b1['CollaborationSessionService']),_0x2d8353=(0x0,_0x419824[_0x1f064a(0x2a5)])(()=>_0x7a2dc2(_0x281dcf),[_0x281dcf]),_0x21ccc9=_0x281dcf!==_0x1134b1[_0x1f064a(0x3ea)][_0x1f064a(0x2e2)],_0x56bef4=_0x2ff5fb['t'](_0x2d8353[_0x1f064a(0x296)]),_0x528af3=_0x2d8353['tooltipKey']?_0x2ff5fb['t'](_0x2d8353[_0x1f064a(0x2f9)]):_0x56bef4,_0x4b1298=(0x0,_0x419824[_0x1f064a(0x496)])(()=>{const _0x2cb1c7=_0x1f064a;_0x21ccc9||_0x31ff77[_0x2cb1c7(0x24c)]();},[_0x21ccc9,_0x31ff77]),_0x2d8233=(0x0,_0x419824['useCallback'])(_0x7b9cb1=>{const _0x1f8255=_0x1f064a;_0x21ccc9||_0x7b9cb1[_0x1f8255(0x4dd)]!==_0x1f8255(0x2a8)&&_0x7b9cb1[_0x1f8255(0x4dd)]!=='\x20'||(_0x7b9cb1[_0x1f8255(0x32a)](),_0x31ff77[_0x1f8255(0x24c)]());},[_0x21ccc9,_0x31ff77]),_0x367219=(0x0,_0x4a8b3a[_0x1f064a(0x30e)])(_0x1f064a(0x452),{'className':(0x0,_0x309bf7[_0x1f064a(0x2b5)])(_0x1f064a(0x41b),_0x1f064a(0x226),_0x2d8353['colorClass'],{'univer-animate-spin':_0x2d8353['indicator']===_0x1f064a(0x2c0),'univer-animate-pulse':_0x2d8353[_0x1f064a(0x4fa)]==='pulse'}),'aria-hidden':_0x1f064a(0x460),'children':_0x2d8353[_0x1f064a(0x26b)]}),_0x4f557e=(0x0,_0x4a8b3a[_0x1f064a(0x30e)])(_0x1f064a(0x452),{'className':(0x0,_0x309bf7[_0x1f064a(0x2b5)])(_0x1f064a(0x41b),_0x1f064a(0x3f0),_0x1f064a(0x1d8),_0x1f064a(0x1d1),_0x1f064a(0x1c1),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2d8353['clickable'],'univer-cursor-default':!_0x2d8353[_0x1f064a(0x303)]}),'children':_0x367219});return _0x2d8353[_0x1f064a(0x303)]?(0x0,_0x4a8b3a[_0x1f064a(0x30e)])(_0x309bf7[_0x1f064a(0x338)],{'title':_0x528af3,'placement':_0x1f064a(0x2d3),'children':(0x0,_0x4a8b3a[_0x1f064a(0x30e)])('button',{'type':_0x1f064a(0x449),'onClick':_0x4b1298,'onKeyDown':_0x2d8233,'className':(0x0,_0x309bf7[_0x1f064a(0x2b5)])(_0x1f064a(0x31b),_0x1f064a(0x476),_0x1f064a(0x1ce),_0x1f064a(0x416)),'aria-label':_0x56bef4+_0x1f064a(0x417)+_0x528af3,'role':_0x1f064a(0x2a9),'aria-live':_0x1f064a(0x213),'aria-atomic':_0x1f064a(0x460),'children':_0x4f557e})}):(0x0,_0x4a8b3a['jsx'])(_0x309bf7[_0x1f064a(0x338)],{'title':_0x528af3,'placement':_0x1f064a(0x2d3),'children':(0x0,_0x4a8b3a['jsx'])(_0x1f064a(0x506),{'className':(0x0,_0x309bf7[_0x1f064a(0x2b5)])(_0x1f064a(0x31b),_0x1f064a(0x476),_0x1f064a(0x1ce)),'aria-label':_0x56bef4,'role':_0x1f064a(0x2a9),'aria-live':'polite','aria-atomic':'true','children':_0x4f557e})});}function _0x3609e7(_0x1501b7){'@babel/helpers - typeof';const _0x1a89eb=_0x49e248;return _0x3609e7=typeof Symbol==_0x1a89eb(0x2ba)&&typeof Symbol[_0x1a89eb(0x46f)]=='symbol'?function(_0x31d363){return typeof _0x31d363;}:function(_0x587a3e){const _0x31a812=_0x1a89eb;return _0x587a3e&&typeof Symbol=='function'&&_0x587a3e[_0x31a812(0x275)]===Symbol&&_0x587a3e!==Symbol['prototype']?'symbol':typeof _0x587a3e;},_0x3609e7(_0x1501b7);}function _0x2697ef(_0x548ba6,_0x3c86cf){const _0x30b871=_0x49e248;if(_0x3609e7(_0x548ba6)!='object'||!_0x548ba6)return _0x548ba6;var _0x5aa9ba;if(typeof Symbol<'u'&&(_0x5aa9ba=_0x548ba6[Symbol[_0x30b871(0x373)]])!==void 0x0){var _0xe46cb9=_0x5aa9ba[_0x30b871(0x3f4)](_0x548ba6,_0x3c86cf||_0x30b871(0x221));if(_0x3609e7(_0xe46cb9)!='object')return _0xe46cb9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3c86cf===_0x30b871(0x313)?String:Number)(_0x548ba6);}function _0x4ddaf2(_0x3dd2b4){const _0x520e9f=_0x49e248;var _0x5d98af=_0x2697ef(_0x3dd2b4,_0x520e9f(0x313));return _0x3609e7(_0x5d98af)=='symbol'?_0x5d98af:_0x5d98af+'';}function _0x30e4d4(_0x1a3f27,_0x21cb79,_0x35fe50){const _0x1249d8=_0x49e248;return(_0x21cb79=_0x4ddaf2(_0x21cb79))in _0x1a3f27?Object[_0x1249d8(0x468)](_0x1a3f27,_0x21cb79,{'value':_0x35fe50,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a3f27[_0x21cb79]=_0x35fe50,_0x1a3f27;}function _0x37fe1c(_0x1406a5,_0x5785df){return function(_0x566b7e,_0x211eb4){_0x5785df(_0x566b7e,_0x211eb4,_0x1406a5);};}function _0x1403f0(_0x13f20f,_0x1b9f58,_0x9f1c07,_0x58bf12){const _0x56d992=_0x49e248;var _0x57f95c=arguments[_0x56d992(0x40d)],_0x57c7ef=_0x57f95c<0x3?_0x1b9f58:_0x58bf12===null?_0x58bf12=Object[_0x56d992(0x377)](_0x1b9f58,_0x9f1c07):_0x58bf12,_0x2fd1bd;if(typeof Reflect==_0x56d992(0x46c)&&typeof Reflect[_0x56d992(0x304)]=='function')_0x57c7ef=Reflect[_0x56d992(0x304)](_0x13f20f,_0x1b9f58,_0x9f1c07,_0x58bf12);else{for(var _0x3f4ee7=_0x13f20f[_0x56d992(0x40d)]-0x1;_0x3f4ee7>=0x0;_0x3f4ee7--)(_0x2fd1bd=_0x13f20f[_0x3f4ee7])&&(_0x57c7ef=(_0x57f95c<0x3?_0x2fd1bd(_0x57c7ef):_0x57f95c>0x3?_0x2fd1bd(_0x1b9f58,_0x9f1c07,_0x57c7ef):_0x2fd1bd(_0x1b9f58,_0x9f1c07))||_0x57c7ef);}return _0x57f95c>0x3&&_0x57c7ef&&Object[_0x56d992(0x468)](_0x1b9f58,_0x9f1c07,_0x57c7ef),_0x57c7ef;}let _0x1559f7=class extends _0x583c0b[_0x49e248(0x330)]{constructor(_0x6fb222,_0x46b912,_0x7ea719,_0x852e3e,_0x249d1f){const _0x74bb35=_0x49e248;super(),this['_univerInstanceService']=_0x6fb222,this[_0x74bb35(0x51b)]=_0x46b912,this[_0x74bb35(0x39a)]=_0x7ea719,this['_uiPartsService']=_0x852e3e,this[_0x74bb35(0x34b)]=_0x249d1f,_0x30e4d4(this,_0x74bb35(0x38a),new _0x40bd7a[(_0x74bb35(0x2d8))](_0x1134b1[_0x74bb35(0x3ea)][_0x74bb35(0x461)])),_0x30e4d4(this,_0x74bb35(0x1e5),new Map()),this['_initStatusComponent'](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}['dispose'](){const _0x35cdc3=_0x49e248;this[_0x35cdc3(0x1e5)]['forEach'](_0xb83b8d=>_0xb83b8d[_0x35cdc3(0x224)]()),this[_0x35cdc3(0x1e5)][_0x35cdc3(0x433)](),this[_0x35cdc3(0x38a)]['complete'](),super['dispose']();}['_initStatusListener'](){const _0x3693d3=_0x49e248;this[_0x3693d3(0x202)]((0x0,_0x40bd7a[_0x3693d3(0x252)])(this['_univerInstanceService'][_0x3693d3(0x286)],this[_0x3693d3(0x1cd)][_0x3693d3(0x370)](_0x583c0b[_0x3693d3(0x4b8)][_0x3693d3(0x233)]),this[_0x3693d3(0x1cd)]['getCurrentTypeOfUnit$'](_0x583c0b['UniverInstanceType']['UNIVER_SHEET']))[_0x3693d3(0x4c9)]((0x0,_0x6228ab[_0x3693d3(0x4f0)])(()=>_0x420fb8(this['_univerInstanceService'])),(0x0,_0x6228ab[_0x3693d3(0x343)])(),(0x0,_0x40bd7a['switchMap'])(_0xe4cceb=>_0xe4cceb?this[_0x3693d3(0x39a)][_0x3693d3(0x41d)](_0xe4cceb):(0x0,_0x40bd7a['of'])(null)),(0x0,_0x40bd7a[_0x3693d3(0x2eb)])(_0x1e7bcf=>_0x1e7bcf?_0x1e7bcf['status$']:(0x0,_0x40bd7a['of'])(_0x1134b1[_0x3693d3(0x3ea)]['NOT_COLLAB'])))[_0x3693d3(0x26e)](_0x28e57d=>{const _0x1c5959=_0x3693d3;this['_status$'][_0x1c5959(0x2c6)](_0x28e57d);}));}[_0x49e248(0x24a)](){const _0x57a291=_0x49e248;this[_0x57a291(0x202)](this[_0x57a291(0x3ec)]['registerComponent'](_0x132a23[_0x57a291(0x271)][_0x57a291(0x2bc)],()=>(0x0,_0x132a23[_0x57a291(0x2cf)])(_0x57371b({'status$':this[_0x57a291(0x38a)][_0x57a291(0x35c)]()}),this[_0x57a291(0x51b)])));}[_0x49e248(0x3b1)](){const _0x3f7a42=_0x49e248;let _0x1f2ff3=this[_0x3f7a42(0x34b)][_0x3f7a42(0x26c)][_0x3f7a42(0x26e)](_0x6733eb=>{this['_syncPresenceStatusComponents'](_0x6733eb);});this['disposeWithMe']((0x0,_0x583c0b[_0x3f7a42(0x292)])(()=>_0x1f2ff3['unsubscribe']()));}['_syncPresenceStatusComponents'](_0x4ab1c4){const _0x508c56=_0x49e248;let _0x4c665d=new Map(_0x4ab1c4[_0x508c56(0x28f)](_0x5c5d9a=>_0x5c5d9a[_0x508c56(0x222)]!=null)[_0x508c56(0x4f0)](_0x2a5483=>[_0x2a5483[_0x508c56(0x334)],_0x2a5483]));this[_0x508c56(0x1e5)]['forEach']((_0x3abf9d,_0x40b1e2)=>{const _0x297dd9=_0x508c56;_0x4c665d['has'](_0x40b1e2)||(_0x3abf9d[_0x297dd9(0x224)](),this[_0x297dd9(0x1e5)][_0x297dd9(0x489)](_0x40b1e2));}),_0x4c665d[_0x508c56(0x1fe)]((_0x45391a,_0x36937d)=>{const _0x4d66a7=_0x508c56;this['_presenceStatusRegistrations'][_0x4d66a7(0x4ac)](_0x36937d)||this[_0x4d66a7(0x4de)](_0x45391a);});}[_0x49e248(0x4de)](_0x21cd3d){const _0x442a6e=_0x49e248;let _0x58e37=_0x21cd3d['statusUIPart'];if(!_0x58e37)return;let _0x114e46=new _0x583c0b[(_0x442a6e(0x33b))](),_0x1518af=new _0x40bd7a[(_0x442a6e(0x2d8))](_0x1134b1[_0x442a6e(0x3ea)][_0x442a6e(0x461)]);_0x114e46[_0x442a6e(0x4a9)]((0x0,_0x583c0b[_0x442a6e(0x292)])(()=>_0x1518af['complete']())),_0x114e46[_0x442a6e(0x4a9)](this['_uiPartsService'][_0x442a6e(0x1f2)](_0x58e37,()=>(0x0,_0x132a23[_0x442a6e(0x2cf)])(_0x57371b({'status$':_0x1518af[_0x442a6e(0x35c)]()}),this[_0x442a6e(0x51b)])));let _0x3ea546=this[_0x442a6e(0x1cd)][_0x442a6e(0x370)](_0x21cd3d[_0x442a6e(0x334)])['pipe']((0x0,_0x6228ab[_0x442a6e(0x4f0)])(_0x2704b6=>(_0x2704b6==null?void 0x0:_0x2704b6['getUnitId']())??null),(0x0,_0x6228ab['distinctUntilChanged'])(),(0x0,_0x40bd7a[_0x442a6e(0x2eb)])(_0x4899a3=>_0x4899a3?this[_0x442a6e(0x39a)][_0x442a6e(0x41d)](_0x4899a3):(0x0,_0x40bd7a['of'])(null)),(0x0,_0x40bd7a[_0x442a6e(0x2eb)])(_0x437dd6=>(_0x437dd6==null?void 0x0:_0x437dd6[_0x442a6e(0x494)])??(0x0,_0x40bd7a['of'])(_0x1134b1[_0x442a6e(0x3ea)][_0x442a6e(0x461)])))[_0x442a6e(0x26e)](_0x3f75af=>_0x1518af[_0x442a6e(0x2c6)](_0x3f75af));_0x114e46[_0x442a6e(0x4a9)]((0x0,_0x583c0b[_0x442a6e(0x292)])(()=>_0x3ea546[_0x442a6e(0x45f)]())),this['_presenceStatusRegistrations'][_0x442a6e(0x345)](_0x21cd3d['unitType'],_0x114e46);}};_0x1559f7=_0x1403f0([_0x37fe1c(0x0,_0x583c0b[_0x49e248(0x4cc)]),_0x37fe1c(0x1,(0x0,_0x583c0b['Inject'])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x2,(0x0,_0x583c0b['Inject'])(_0x1134b1['CollaborationController'])),_0x37fe1c(0x3,_0x132a23['IUIPartsService']),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x132a23[_0x49e248(0x43a)]))],_0x1559f7);function _0x420fb8(_0x441ad5){const _0x11f2be=_0x49e248;let _0x3c989e=_0x441ad5[_0x11f2be(0x435)](),_0x5b5573=_0x3c989e==null?void 0x0:_0x3c989e['getUnitId']();if(_0x5b5573&&!(0x0,_0x583c0b[_0x11f2be(0x491)])(_0x5b5573))return _0x5b5573;let _0x53c108=_0x441ad5[_0x11f2be(0x50e)](_0x583c0b[_0x11f2be(0x4b8)]['UNIVER_DOC']),_0x4c3fab=_0x53c108==null?void 0x0:_0x53c108[_0x11f2be(0x375)]();if(_0x4c3fab&&!(0x0,_0x583c0b[_0x11f2be(0x491)])(_0x4c3fab))return _0x4c3fab;let _0x197720=_0x441ad5[_0x11f2be(0x50e)](_0x583c0b[_0x11f2be(0x4b8)]['UNIVER_SHEET']);if(_0x197720)return _0x197720[_0x11f2be(0x375)]();let _0x2c41ef=_0x441ad5[_0x11f2be(0x402)](_0x583c0b[_0x11f2be(0x4b8)][_0x11f2be(0x233)])[_0x11f2be(0x359)](_0x590314=>!(0x0,_0x583c0b[_0x11f2be(0x491)])(_0x590314[_0x11f2be(0x375)]()));return _0x2c41ef?_0x2c41ef[_0x11f2be(0x375)]():null;}function _0x57371b(_0x274070){let {status$:_0x37dafe}=_0x274070;return function(){const _0x444bd4=_0x2f4a;return(0x0,_0x4a8b3a[_0x444bd4(0x30e)])(_0x2564f2,{'status$':_0x37dafe});};}var _0x2f9eb8='@univerjs-pro/collaboration-client-ui',_0x4c1ee6=_0x49e248(0x4a1);let _0x4605c2={'id':_0x49e248(0x2a3),'type':_0x583c0b[_0x49e248(0x2c9)]['OPERATION'],'handler':(_0x20019f,_0x375506)=>{const _0x4ed410=_0x49e248;let _0x223532=_0x20019f[_0x4ed410(0x3e3)](_0x132a23[_0x4ed410(0x43a)])[_0x4ed410(0x3e3)](_0x375506[_0x4ed410(0x334)]);if(!_0x223532)return!0x1;switch(_0x375506[_0x4ed410(0x463)][_0x4ed410(0x26d)]){case'set':return _0x223532[_0x4ed410(0x3eb)](_0x375506[_0x4ed410(0x463)][_0x4ed410(0x277)]),!0x0;case'remove':return _0x223532[_0x4ed410(0x2aa)](_0x375506[_0x4ed410(0x463)][_0x4ed410(0x437)],_0x375506['update'][_0x4ed410(0x340)]),!0x0;case _0x4ed410(0x433):return _0x223532[_0x4ed410(0x3fc)](_0x375506[_0x4ed410(0x463)]['unitId']),!0x0;default:return!0x1;}}},_0x1c5d34={},_0x32e9dd=class extends _0x583c0b[_0x49e248(0x42a)]{constructor(_0x3b33b8,_0x532a11){const _0x433eda=_0x49e248;super(),this[_0x433eda(0x3c9)]=_0x3b33b8,this[_0x433eda(0x1c9)]=_0x532a11,this[_0x433eda(0x3e1)]();}[_0x49e248(0x3e1)](){const _0x450e11=_0x49e248;let _0x2a12ec=this;this[_0x450e11(0x202)](this[_0x450e11(0x3c9)][_0x450e11(0x2d4)]({'onBeforePasteImage':async _0x402ab0=>{const _0x249707=_0x450e11;let _0x40097a=await _0x2a12ec[_0x249707(0x1c9)][_0x249707(0x423)](_0x402ab0);return _0x40097a?{'source':_0x40097a['source'],'imageSourceType':_0x40097a['imageSourceType']}:null;}}));}};_0x32e9dd=_0x1403f0([_0x37fe1c(0x0,_0x594380[_0x49e248(0x396)]),_0x37fe1c(0x1,_0x583c0b[_0x49e248(0x4f2)])],_0x32e9dd);let _0x49f5f9=['purple.300',_0x49e248(0x324),'green.600','red.300',_0x49e248(0x2e5),_0x49e248(0x1ba)];var _0x5dac64=class extends _0x583c0b[_0x49e248(0x330)]{constructor(..._0x130ae3){const _0x1c3342=_0x49e248;super(..._0x130ae3),_0x30e4d4(this,_0x1c3342(0x3d4),new Map()),_0x30e4d4(this,'_colorIndex',0x0);}[_0x49e248(0x285)](_0xb4b255){const _0x2d0b2e=_0x49e248;if(this[_0x2d0b2e(0x3d4)][_0x2d0b2e(0x4ac)](_0xb4b255))return this[_0x2d0b2e(0x3d4)]['get'](_0xb4b255);let _0x4e2172=_0x49f5f9[this['_colorIndex']];return this[_0x2d0b2e(0x41a)]=(this[_0x2d0b2e(0x41a)]+0x1)%_0x49f5f9['length'],this[_0x2d0b2e(0x3d4)][_0x2d0b2e(0x345)](_0xb4b255,_0x4e2172),_0x4e2172;}};function _0x1afeec(_0x42ea0c){const _0x4fe367=_0x49e248;let _0x3ea21f='';for(let _0x3030f9 of _0x42ea0c){let {startOffset:_0x995620,endOffset:_0x380587,isActive:_0x1a7e39,rangeType:_0x47a750,segmentId:_0x4be5a8,segmentPage:_0x192b0e}=_0x3030f9;_0x3ea21f[_0x4fe367(0x40d)]&&(_0x3ea21f+=','),_0x3ea21f+=_0x995620+':'+_0x380587+':'+(_0x1a7e39?'1':'0')+':'+_0x47a750+':'+_0x4be5a8+':'+_0x192b0e;}return _0x3ea21f;}function _0x2b2aa1(_0x1d4b0c){const _0x2c93dc=_0x49e248;let _0x482c84=_0x1d4b0c['split'](','),_0x272fab=[];for(let _0x17b103 of _0x482c84){let [_0x491ee1,_0x14f8cf,_0x4d62c8,_0x19f298,_0x11ccde,_0x211e68]=_0x17b103[_0x2c93dc(0x30f)](':');_0x272fab['push']({'startOffset':Number(_0x491ee1),'endOffset':Number(_0x14f8cf),'collapsed':_0x491ee1===_0x14f8cf,'isActive':_0x4d62c8==='1','rangeType':_0x19f298===_0x583c0b[_0x2c93dc(0x1c6)][_0x2c93dc(0x1e2)]?_0x583c0b[_0x2c93dc(0x1c6)]['TEXT']:_0x583c0b[_0x2c93dc(0x1c6)][_0x2c93dc(0x290)],'segmentId':typeof _0x11ccde==_0x2c93dc(0x313)?String(_0x11ccde):'','segmentPage':Number(_0x211e68??-0x1)});}return _0x272fab[_0x2c93dc(0x361)](_0xa0a3d8=>_0xa0a3d8[_0x2c93dc(0x2f1)])||(_0x272fab[0x0][_0x2c93dc(0x2f1)]=!0x0),_0x272fab;}var _0x24bfb8=class extends _0x583c0b['RxDisposable']{constructor(..._0x5eed94){const _0x31aba1=_0x49e248;super(..._0x5eed94),_0x30e4d4(this,_0x31aba1(0x2b3),new _0x40bd7a[(_0x31aba1(0x2d8))](null)),_0x30e4d4(this,_0x31aba1(0x274),this[_0x31aba1(0x2b3)][_0x31aba1(0x35c)]());}[_0x49e248(0x4b3)](_0x5f1928){const _0x139e33=_0x49e248;let {unitID:_0x4eb0ed,memberID:_0xe345c2,textRanges:_0x423fd1}=_0x5f1928,_0x5c50e9=_0x1afeec(_0x423fd1);if(_0x5c50e9==='')return;let _0xf65551={'unitID':_0x4eb0ed,'memberID':_0xe345c2,'selection':_0x5c50e9};this[_0x139e33(0x2b3)][_0x139e33(0x2c6)](_0xf65551);}};let _0x3a49ea=class extends _0x583c0b['RxDisposable']{get[_0x49e248(0x3a9)](){const _0x737d66=_0x49e248;return this['_cursorInfo$'][_0x737d66(0x4d3)]();}get['roomMembers'](){const _0x1f9efe=_0x49e248;return this[_0x1f9efe(0x49f)][_0x1f9efe(0x4d3)]();}constructor(_0x47873e,_0x2bf412,_0x36145f,_0x30dbe9,_0x20ed1f,_0x3c92c4,_0x42895d,_0x20f7aa,_0x5aba37){const _0x13c7c8=_0x49e248;super(),this['unitID']=_0x47873e,this[_0x13c7c8(0x440)]=_0x2bf412,this['_injector']=_0x36145f,this['_colorAssignService']=_0x30dbe9,this[_0x13c7c8(0x1be)]=_0x20ed1f,this[_0x13c7c8(0x26f)]=_0x3c92c4,this['_transformService']=_0x42895d,this[_0x13c7c8(0x1cd)]=_0x20f7aa,this[_0x13c7c8(0x3ab)]=_0x5aba37,_0x30e4d4(this,'_online',!0x1),_0x30e4d4(this,_0x13c7c8(0x3e1),!0x1),_0x30e4d4(this,_0x13c7c8(0x4ed),new _0x40bd7a[(_0x13c7c8(0x2d8))](new Map())),_0x30e4d4(this,_0x13c7c8(0x382),this[_0x13c7c8(0x4ed)]['asObservable']()),_0x30e4d4(this,'_roomMembers$',new _0x40bd7a[(_0x13c7c8(0x2d8))]([])),_0x30e4d4(this,_0x13c7c8(0x32d),this[_0x13c7c8(0x49f)][_0x13c7c8(0x4c9)]((0x0,_0x40bd7a[_0x13c7c8(0x4a7)])(0x12c))),_0x30e4d4(this,_0x13c7c8(0x4bd),(0x0,_0x583c0b[_0x13c7c8(0x52d)])(_0x3cde22=>{const _0x4c856f=_0x13c7c8;let _0x27f5ee={'eventID':_0x3569c2[_0x4c856f(0x268)][_0x4c856f(0x372)],'data':{'unitID':this[_0x4c856f(0x337)],'memberID':this['_session'][_0x4c856f(0x447)](),'selection':_0x1afeec(_0x3cde22)}};this[_0x4c856f(0x440)][_0x4c856f(0x400)](_0x27f5ee,this[_0x4c856f(0x337)]);},0x64));}[_0x49e248(0x224)](){const _0xbc88d8=_0x49e248;super['dispose'](),this[_0xbc88d8(0x4ed)]['next'](new Map()),this['_cursorInfo$'][_0xbc88d8(0x4cb)](),this[_0xbc88d8(0x49f)]['next']([]),this[_0xbc88d8(0x49f)][_0xbc88d8(0x4cb)]();}['init'](){const _0xa185e0=_0x49e248;this[_0xa185e0(0x3e1)]||(this[_0xa185e0(0x3e1)]=!0x0,this[_0xa185e0(0x440)][_0xa185e0(0x211)][_0xa185e0(0x4c9)]((0x0,_0x40bd7a[_0xa185e0(0x374)])(this[_0xa185e0(0x49b)]))['subscribe'](_0xcff909=>{const _0x258d7e=_0xa185e0;_0xcff909===_0x1134b1[_0x258d7e(0x3c2)]['ONLINE']?this[_0x258d7e(0x4ab)]():this[_0x258d7e(0x4d1)]();}),this[_0xa185e0(0x440)][_0xa185e0(0x287)][_0xa185e0(0x4c9)]((0x0,_0x40bd7a[_0xa185e0(0x374)])(this[_0xa185e0(0x49b)]))[_0xa185e0(0x26e)](_0x365d9c=>{const _0x1d2bda=_0xa185e0;let _0x26f968=_0x365d9c[_0x1d2bda(0x311)];_0x26f968===_0x3569c2[_0x1d2bda(0x268)][_0x1d2bda(0x372)]&&this[_0x1d2bda(0x2bd)](_0x365d9c),_0x26f968===_0x3569c2['CollaborationEvent']['USERS_LEAVE']&&this[_0x1d2bda(0x2f3)](_0x365d9c);}),this[_0xa185e0(0x202)](this[_0xa185e0(0x3ab)]['onCommandExecuted'](_0x39b527=>{const _0x173ca1=_0xa185e0;let _0x48670d=_0x39b527[_0x173ca1(0x3ee)];_0x48670d!=null&&this[_0x173ca1(0x3a1)]&&_0x39b527['id']===_0x574cdb[_0x173ca1(0x2db)]['id']&&_0x48670d['unitId']===this[_0x173ca1(0x337)]&&_0x48670d[_0x173ca1(0x4fe)]===!0x1&&_0x48670d[_0x173ca1(0x246)][_0x173ca1(0x40d)]>0x0&&this[_0x173ca1(0x4bd)](_0x48670d[_0x173ca1(0x246)]);})),this['_syncEditingCollabCursorService'][_0xa185e0(0x274)]['pipe']((0x0,_0x40bd7a[_0xa185e0(0x374)])(this[_0xa185e0(0x49b)]))[_0xa185e0(0x26e)](_0x29a8fc=>{const _0x4ccb9e=_0xa185e0;if((_0x29a8fc==null?void 0x0:_0x29a8fc[_0x4ccb9e(0x337)])!==this[_0x4ccb9e(0x337)])return;let _0x3b0049={'eventID':_0x3569c2[_0x4ccb9e(0x268)][_0x4ccb9e(0x372)],'data':_0x29a8fc};this[_0x4ccb9e(0x2bd)](_0x3b0049);}),this[_0xa185e0(0x202)](this['_commandService']['onCommandExecuted'](_0x52cf38=>{const _0x5921f0=_0xa185e0;if(_0x52cf38[_0x5921f0(0x3ee)]==null)return;let _0xa1859b=_0x52cf38[_0x5921f0(0x3ee)];if(_0x52cf38['id']!==_0x574cdb[_0x5921f0(0x4d9)]['id']||_0xa1859b[_0x5921f0(0x437)]!==this[_0x5921f0(0x337)])return;let _0x3b9de8={'id':'doc.mutation.rich-text-editing','params':_0xa1859b},_0x5bd878=this[_0x5921f0(0x3a9)];for(let [_0x49fe3a,_0x5837c0]of _0x5bd878){let _0x596bb6={'id':_0x5921f0(0x2a6),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5837c0[_0x5921f0(0x246)]}},_0xdde372=this[_0x5921f0(0x23b)][_0x5921f0(0x505)](_0x3b9de8,_0x596bb6,!0x1);if((0x0,_0x3569c2[_0x5921f0(0x487)])(_0xdde372))throw _0xdde372[_0x5921f0(0x4d2)];_0x5bd878['set'](_0x49fe3a,{..._0x5837c0,'ranges':_0xdde372['m2Prime'][_0x5921f0(0x3ee)][_0x5921f0(0x20c)]});}queueMicrotask(()=>{const _0xa83ffb=_0x5921f0;this[_0xa83ffb(0x4ed)][_0xa83ffb(0x2c6)](_0x5bd878);});})));}[_0x49e248(0x2bd)](_0x56daf1){const _0x4d6736=_0x49e248;var _0x417520;let {memberID:_0x4f0ce8,selection:_0x589fa7}=_0x56daf1[_0x4d6736(0x353)],_0x1c32c8=_0x2b2aa1(_0x589fa7),_0x159fef=((_0x417520=this[_0x4d6736(0x1be)]['getMember'](this['unitID'],_0x4f0ce8))==null?void 0x0:_0x417520[_0x4d6736(0x450)])??_0x4d6736(0x3f7),_0x4a1e9e={'color':this[_0x4d6736(0x38c)][_0x4d6736(0x285)](_0x4f0ce8),'name':_0x159fef,'ranges':_0x1c32c8},_0x3be99a=this[_0x4d6736(0x3a9)];_0x3be99a['set'](_0x4f0ce8,_0x4a1e9e),this['_cursorInfo$'][_0x4d6736(0x2c6)](_0x3be99a);}['_onCursorDelete'](_0x5b3b59){const _0x4f7865=_0x49e248;let {memberID:_0x57041e}=_0x5b3b59[_0x4f7865(0x353)],_0x37d931=this[_0x4f7865(0x3a9)];_0x37d931[_0x4f7865(0x489)](_0x57041e),this[_0x4f7865(0x4ed)][_0x4f7865(0x2c6)](_0x37d931);}[_0x49e248(0x4ab)](){const _0x3f8cc0=_0x49e248;var _0x2c86cc;if(this[_0x3f8cc0(0x3a1)]=!0x0,((_0x2c86cc=this['_univerInstanceService'][_0x3f8cc0(0x435)]())==null?void 0x0:_0x2c86cc[_0x3f8cc0(0x375)]())!==this['unitID'])return;let _0x28eee1=this[_0x3f8cc0(0x51b)][_0x3f8cc0(0x3e3)](_0x574cdb[_0x3f8cc0(0x322)])['getDocRanges']();Array[_0x3f8cc0(0x3c7)](_0x28eee1)&&_0x28eee1[_0x3f8cc0(0x40d)]>0x0&&this[_0x3f8cc0(0x4bd)](_0x28eee1);}[_0x49e248(0x4d1)](){const _0x341a09=_0x49e248;this[_0x341a09(0x3a1)]=!0x1;}};_0x3a49ea=_0x1403f0([_0x37fe1c(0x2,(0x0,_0x583c0b['Inject'])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x5dac64)),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1[_0x49e248(0x381)])),_0x37fe1c(0x5,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x24bfb8)),_0x37fe1c(0x6,_0x3569c2['ITransformService']),_0x37fe1c(0x7,_0x583c0b['IUniverInstanceService']),_0x37fe1c(0x8,_0x583c0b['ICommandService'])],_0x3a49ea);let _0x2e0337=()=>{let _0x33e9cb=[],_0x425943=!0x1;return _0x2e0977=>{const _0x32b3c0=_0x2f4a;_0x33e9cb[_0x32b3c0(0x4ce)](_0x2e0977),_0x425943||(_0x425943=!0x0,setTimeout(()=>{_0x33e9cb['forEach'](_0x4ba63c=>_0x4ba63c()),_0x33e9cb=[],_0x425943=!0x1;}));};},_0x56fbe1=class extends _0x583c0b[_0x49e248(0x42a)]{get[_0x49e248(0x3a9)](){const _0x855382=_0x49e248;return this['_cursorInfo$'][_0x855382(0x4d3)]();}get[_0x49e248(0x321)](){const _0x427ce5=_0x49e248;return this['_roomMembers$'][_0x427ce5(0x4d3)]();}constructor(_0x3ae6c2,_0x5d845a,_0x472ccc,_0x43e8d4,_0x3f85a7,_0x42e7d2,_0x25ad27,_0x2ea232){const _0x366cba=_0x49e248;super(),this[_0x366cba(0x337)]=_0x3ae6c2,this[_0x366cba(0x440)]=_0x5d845a,this['_injector']=_0x472ccc,this['_colorAssignService']=_0x43e8d4,this['_memberService']=_0x3f85a7,this['_univerInstanceService']=_0x42e7d2,this[_0x366cba(0x3ab)]=_0x25ad27,this[_0x366cba(0x464)]=_0x2ea232,_0x30e4d4(this,_0x366cba(0x3a1),!0x1),_0x30e4d4(this,_0x366cba(0x3e1),!0x1),_0x30e4d4(this,_0x366cba(0x4ed),new _0x40bd7a['BehaviorSubject'](new Map())),_0x30e4d4(this,_0x366cba(0x382),this[_0x366cba(0x4ed)]['asObservable']()),_0x30e4d4(this,_0x366cba(0x49f),new _0x40bd7a[(_0x366cba(0x2d8))]([])),_0x30e4d4(this,'roomMembers$',this[_0x366cba(0x49f)][_0x366cba(0x4c9)]((0x0,_0x40bd7a[_0x366cba(0x4a7)])(0x12c))),_0x30e4d4(this,_0x366cba(0x4bd),(0x0,_0x583c0b[_0x366cba(0x52d)])((_0x3dd6d1,_0x4697a1)=>{const _0x4796ca=_0x366cba;let _0x60cd11={'eventID':_0x3569c2['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x4796ca(0x447)](),'selection':(0x0,_0x2afa04[_0x4796ca(0x2ae)])(_0x3dd6d1,_0x4697a1[_0x4796ca(0x3ba)])}};this[_0x4796ca(0x440)][_0x4796ca(0x400)](_0x60cd11,this[_0x4796ca(0x337)]);},0x64));}[_0x49e248(0x224)](){const _0xe3a4cd=_0x49e248;super[_0xe3a4cd(0x224)](),this['_cursorInfo$'][_0xe3a4cd(0x2c6)](new Map()),this[_0xe3a4cd(0x4ed)][_0xe3a4cd(0x4cb)](),this[_0xe3a4cd(0x49f)][_0xe3a4cd(0x2c6)]([]),this[_0xe3a4cd(0x49f)][_0xe3a4cd(0x4cb)]();}[_0x49e248(0x306)](){const _0x3a2bc8=_0x49e248;this[_0x3a2bc8(0x3e1)]||(this['_init']=!0x0,this[_0x3a2bc8(0x440)][_0x3a2bc8(0x211)][_0x3a2bc8(0x4c9)]((0x0,_0x40bd7a[_0x3a2bc8(0x374)])(this[_0x3a2bc8(0x49b)]))[_0x3a2bc8(0x26e)](_0x71dc4e=>{const _0x556452=_0x3a2bc8;_0x71dc4e===_0x1134b1[_0x556452(0x3c2)]['ONLINE']?this[_0x556452(0x4ab)]():this[_0x556452(0x4d1)]();}),this[_0x3a2bc8(0x440)][_0x3a2bc8(0x287)]['pipe']((0x0,_0x40bd7a[_0x3a2bc8(0x374)])(this[_0x3a2bc8(0x49b)]))[_0x3a2bc8(0x26e)](_0x12ad46=>{const _0x4f25ee=_0x3a2bc8;let _0x88f2c1=_0x12ad46[_0x4f25ee(0x311)];_0x88f2c1===_0x3569c2[_0x4f25ee(0x268)][_0x4f25ee(0x372)]&&this['_onCursorUpdate'](_0x12ad46),_0x88f2c1===_0x3569c2[_0x4f25ee(0x268)][_0x4f25ee(0x39f)]&&this[_0x4f25ee(0x2f3)](_0x12ad46);}),this[_0x3a2bc8(0x22b)](),this['disposeWithMe'](this[_0x3a2bc8(0x3ab)][_0x3a2bc8(0x1cf)](_0x4f3c64=>{const _0x5ba2ea=_0x3a2bc8;if(this[_0x5ba2ea(0x3a1)]&&_0x4f3c64['id']===_0x44985e[_0x5ba2ea(0x352)]['id']&&_0x4f3c64['params'][_0x5ba2ea(0x437)]===this[_0x5ba2ea(0x337)]){let _0x37429f=_0x4f3c64[_0x5ba2ea(0x3ee)];this[_0x5ba2ea(0x4bd)](_0x37429f[_0x5ba2ea(0x2c4)],_0x37429f[_0x5ba2ea(0x390)][0x0]);}})));}[_0x49e248(0x2bd)](_0x9382ff){const _0x54994d=_0x49e248;var _0x13e123;let {memberID:_0x3a3532,selection:_0x2ed51c}=_0x9382ff[_0x54994d(0x353)],{sheetName:_0x9ecc62,range:_0x3fbeaa}=(0x0,_0x2afa04[_0x54994d(0x20b)])(_0x2ed51c),_0x1c0d86={'name':((_0x13e123=this[_0x54994d(0x1be)][_0x54994d(0x2c2)](this[_0x54994d(0x337)],_0x3a3532))==null?void 0x0:_0x13e123[_0x54994d(0x450)])??_0x54994d(0x3f7),'range':this[_0x54994d(0x208)](_0x9ecc62,_0x3fbeaa),'sheetID':_0x9ecc62,'color':this[_0x54994d(0x38c)][_0x54994d(0x285)](_0x3a3532),'selection':_0x2ed51c},_0x5c5688=this[_0x54994d(0x3a9)];_0x5c5688[_0x54994d(0x345)](_0x3a3532,_0x1c0d86),this['_cursorInfo$'][_0x54994d(0x2c6)](_0x5c5688);}[_0x49e248(0x2f3)](_0x5ec0a8){const _0x2484fb=_0x49e248;let {memberID:_0x387e3e}=_0x5ec0a8[_0x2484fb(0x353)],_0x43ecb9=this[_0x2484fb(0x3a9)];_0x43ecb9[_0x2484fb(0x489)](_0x387e3e),this[_0x2484fb(0x4ed)][_0x2484fb(0x2c6)](_0x43ecb9);}['_getMergeRange'](_0x23b000,_0x135bbe){const _0xd9d969=_0x49e248;var _0x598a34;let _0x3e6630=(_0x598a34=this[_0xd9d969(0x1cd)][_0xd9d969(0x270)](this[_0xd9d969(0x337)],_0x583c0b[_0xd9d969(0x4b8)][_0xd9d969(0x301)]))==null||(_0x598a34=_0x598a34[_0xd9d969(0x2e8)](_0x23b000))==null?void 0x0:_0x598a34[_0xd9d969(0x1ca)]();return(_0x3e6630==null?void 0x0:_0x3e6630[_0xd9d969(0x359)](_0x3583ad=>_0x583c0b['Rectangle'][_0xd9d969(0x45c)](_0x3583ad,_0x135bbe)))||_0x135bbe;}[_0x49e248(0x22b)](){const _0x79d6c6=_0x49e248;let _0x40688a=new _0x583c0b[(_0x79d6c6(0x33b))](),_0x4a10c9=_0x2e0337(),_0x17cdd7=()=>{const _0x3302f4=_0x79d6c6;_0x40688a['dispose']();let _0x4beb69=(_0x16a248,_0x3322b9,_0x2b0271,_0x5700fb)=>{const _0x3912e4=_0x2f4a;let _0x1ec68e=[];switch(_0x16a248['id']){case _0x44985e[_0x3912e4(0x528)][_0x3912e4(0x3de)]:_0x1ec68e=(0x0,_0x44985e['handleDeleteRangeMoveLeft'])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)]['DeleteRangeMoveUpCommandId']:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x3f1)])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)]['InsertColCommandId']:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x2b6)])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)][_0x3912e4(0x399)]:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x30c)])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)]['InsertRangeMoveRightCommandId']:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x42f)])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)][_0x3912e4(0x526)]:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x39c)])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)]['MoveRangeCommandId']:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x388)])(_0x16a248,_0x5700fb);break;case _0x44985e['EffectRefRangId'][_0x3912e4(0x1c2)]:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x4c5)])(_0x16a248,_0x5700fb);break;case _0x44985e[_0x3912e4(0x528)][_0x3912e4(0x486)]:_0x1ec68e=(0x0,_0x44985e[_0x3912e4(0x471)])(_0x16a248,_0x5700fb);}let _0x361e80=(0x0,_0x44985e[_0x3912e4(0x347)])(_0x1ec68e,_0x5700fb),_0x2f21ec=this['cursorInfo'][_0x3912e4(0x3e3)](_0x3322b9);if(_0x2f21ec&&_0x361e80){let _0x52bccc={..._0x2f21ec,'range':_0x361e80};this[_0x3912e4(0x3a9)][_0x3912e4(0x345)](_0x3322b9,_0x52bccc),_0x4a10c9(()=>{const _0x44560f=_0x3912e4;let _0x46c645=this[_0x44560f(0x464)]['registerRefRange'](_0x361e80,_0x1e9382=>(_0x46c645['dispose'](),_0x4beb69(_0x1e9382,_0x3322b9,_0x2b0271,_0x361e80)));_0x40688a[_0x44560f(0x4a9)](_0x46c645);});}return{'redos':[],'undos':[]};};this[_0x3302f4(0x3a9)][_0x3302f4(0x1fe)]((_0x1ca8c2,_0x891a22)=>{const _0x4f50a3=_0x3302f4;let {range:_0xff4a33,sheetID:_0x4eebad}=_0x1ca8c2,_0x1e8f49=this[_0x4f50a3(0x464)]['registerRefRange'](_0xff4a33,_0x130a06=>(_0x1e8f49[_0x4f50a3(0x224)](),_0x4beb69(_0x130a06,_0x891a22,_0x4eebad,_0xff4a33)));_0x40688a[_0x4f50a3(0x4a9)](_0x1e8f49);});};this[_0x79d6c6(0x202)]((0x0,_0x583c0b[_0x79d6c6(0x292)])(this[_0x79d6c6(0x4ed)][_0x79d6c6(0x26e)](()=>{_0x17cdd7();})));}['_toggleOnline'](){const _0x324a38=_0x49e248;var _0x2bc431,_0x5ae10c;if(this[_0x324a38(0x3a1)]=!0x0,((_0x2bc431=this[_0x324a38(0x1cd)]['getFocusedUnit']())==null?void 0x0:_0x2bc431[_0x324a38(0x375)]())!==this[_0x324a38(0x337)])return;let _0x5bfe7c=(_0x5ae10c=this['_injector'][_0x324a38(0x3e3)](_0x44985e[_0x324a38(0x215)])[_0x324a38(0x31d)]())==null?void 0x0:_0x5ae10c[0x0],_0xd5c90=this[_0x324a38(0x1cd)][_0x324a38(0x50e)](_0x583c0b[_0x324a38(0x4b8)][_0x324a38(0x301)])[_0x324a38(0x4bb)]();_0x5bfe7c&&_0xd5c90&&this[_0x324a38(0x4bd)](_0xd5c90[_0x324a38(0x445)](),_0x5bfe7c);}[_0x49e248(0x4d1)](){const _0x75ca6e=_0x49e248;this[_0x75ca6e(0x3a1)]=!0x1;}};_0x56fbe1=_0x1403f0([_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x5dac64)),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1[_0x49e248(0x381)])),_0x37fe1c(0x5,_0x583c0b['IUniverInstanceService']),_0x37fe1c(0x6,_0x583c0b[_0x49e248(0x24e)]),_0x37fe1c(0x7,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x44985e[_0x49e248(0x23a)]))],_0x56fbe1);let _0x5c57cd=class extends _0x583c0b[_0x49e248(0x42a)]{constructor(_0x141c07,_0x23ec3e,_0x1dc317){const _0x28292e=_0x49e248;super(),this['_univerInstanceService']=_0x141c07,this[_0x28292e(0x51b)]=_0x23ec3e,this['_collabSessionService']=_0x1dc317,_0x30e4d4(this,_0x28292e(0x227),new Map()),_0x30e4d4(this,'_entityInit$',new _0x40bd7a['Subject']()),this['_init']();}[_0x49e248(0x224)](){const _0x45a2ff=_0x49e248;super[_0x45a2ff(0x224)](),this['_entityInit$'][_0x45a2ff(0x4cb)](),this[_0x45a2ff(0x227)][_0x45a2ff(0x1fe)](_0x3ca0e7=>_0x3ca0e7[_0x45a2ff(0x224)]());}[_0x49e248(0x248)](_0x98613b){const _0x3c71f1=_0x49e248;let _0x530fb6=this[_0x3c71f1(0x227)][_0x3c71f1(0x3e3)](_0x98613b);return _0x530fb6?_0x530fb6['cursorInfo$']:this['_entityInit$'][_0x3c71f1(0x4c9)]((0x0,_0x40bd7a['filter'])(_0x4c678d=>_0x4c678d[_0x3c71f1(0x337)]===_0x98613b),(0x0,_0x40bd7a['switchMap'])(_0x19242d=>_0x19242d[_0x3c71f1(0x382)]));}[_0x49e248(0x3e1)](){const _0x2bd37a=_0x49e248;this['_univerInstanceService'][_0x2bd37a(0x305)](_0x583c0b['UniverInstanceType'][_0x2bd37a(0x301)])[_0x2bd37a(0x4c9)]((0x0,_0x40bd7a['takeUntil'])(this[_0x2bd37a(0x49b)]))[_0x2bd37a(0x26e)](async _0x1080a8=>{const _0x4dfc9e=_0x2bd37a;let _0x15639d=_0x1080a8['unit'][_0x4dfc9e(0x375)](),_0xd0394f=await this[_0x4dfc9e(0x34e)](_0x15639d);this[_0x4dfc9e(0x36f)][_0x4dfc9e(0x2c6)](_0xd0394f),this[_0x4dfc9e(0x227)][_0x4dfc9e(0x345)](_0x15639d,_0xd0394f);}),this[_0x2bd37a(0x1cd)][_0x2bd37a(0x305)](_0x583c0b['UniverInstanceType'][_0x2bd37a(0x233)])[_0x2bd37a(0x4c9)]((0x0,_0x40bd7a[_0x2bd37a(0x374)])(this[_0x2bd37a(0x49b)]))['pipe']((0x0,_0x40bd7a['filter'])(_0x557eab=>!_0x557eab['unit'][_0x2bd37a(0x375)]()[_0x2bd37a(0x225)]('__')))[_0x2bd37a(0x26e)](async _0x3fca38=>{const _0x1a0171=_0x2bd37a;let {unit:_0x36b297}=_0x3fca38,_0x32471=_0x36b297[_0x1a0171(0x375)](),_0x283afb=await this[_0x1a0171(0x415)](_0x32471);this[_0x1a0171(0x36f)][_0x1a0171(0x2c6)](_0x283afb),this[_0x1a0171(0x227)][_0x1a0171(0x345)](_0x32471,_0x283afb);}),(0x0,_0x40bd7a[_0x2bd37a(0x252)])(this[_0x2bd37a(0x1cd)]['getTypeOfUnitDisposed$'](_0x583c0b[_0x2bd37a(0x4b8)][_0x2bd37a(0x233)]),this[_0x2bd37a(0x1cd)]['getTypeOfUnitDisposed$'](_0x583c0b[_0x2bd37a(0x4b8)][_0x2bd37a(0x301)]))[_0x2bd37a(0x4c9)]((0x0,_0x40bd7a['takeUntil'])(this[_0x2bd37a(0x49b)]))[_0x2bd37a(0x26e)](_0x281e97=>{const _0x14d638=_0x2bd37a;let _0x4fc540=_0x281e97['getUnitId'](),_0xff8bd=this['_entities']['get'](_0x4fc540);_0xff8bd&&(_0xff8bd[_0x14d638(0x224)](),this[_0x14d638(0x227)][_0x14d638(0x489)](_0x4fc540));});}async[_0x49e248(0x34e)](_0x5d7bef){const _0x1b202d=_0x49e248;let _0x2b850d=await this[_0x1b202d(0x282)]['requireSession'](_0x5d7bef),_0x259f0b=this[_0x1b202d(0x51b)][_0x1b202d(0x45a)](_0x56fbe1,_0x5d7bef,_0x2b850d);return _0x259f0b[_0x1b202d(0x306)](),_0x259f0b;}async[_0x49e248(0x415)](_0x3fcb07){const _0x3f3df5=_0x49e248;let _0x17e432=await this[_0x3f3df5(0x282)][_0x3f3df5(0x3b5)](_0x3fcb07),_0x5ccf51=this['_injector']['createInstance'](_0x3a49ea,_0x3fcb07,_0x17e432);return _0x5ccf51['init'](),_0x5ccf51;}};_0x5c57cd=_0x1403f0([_0x37fe1c(0x0,_0x583c0b[_0x49e248(0x4cc)]),_0x37fe1c(0x1,(0x0,_0x583c0b['Inject'])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1['CollaborationSessionService']))],_0x5c57cd);function _0xdd004d(_0x2a9e12,_0x42e03d){const _0x24e16e=_0x49e248;_0x2a9e12[_0x24e16e(0x317)](),_0x2a9e12[_0x24e16e(0x3a2)]=_0x24e16e(0x512);let _0x3e8187=_0x2a9e12[_0x24e16e(0x4f5)](_0x42e03d)[_0x24e16e(0x310)];return _0x2a9e12['restore'](),Math['min'](_0x3e8187+0x8,0xc8);}function _0x2390e6(_0x14377c,_0x2d6ecd){const _0xf9c656=_0x49e248;let {radius:_0x146377,width:_0x115e73,height:_0x3e3386}=_0x2d6ecd;_0x146377??=0x0,_0x115e73??=0x1e,_0x3e3386??=0x1e;let _0x3f45eb=0x0,_0x4adb67=0x0,_0x17f3b4=0x0;_0x3f45eb=_0x4adb67=_0x17f3b4=Math['min'](_0x146377,_0x115e73/0x2,_0x3e3386/0x2),_0x14377c[_0xf9c656(0x203)](),_0x14377c[_0xf9c656(0x220)](_0x3f45eb,0x0),_0x14377c[_0xf9c656(0x29f)](_0x115e73-_0x4adb67,0x0),_0x14377c[_0xf9c656(0x4e6)](_0x115e73-_0x4adb67,_0x4adb67,_0x4adb67,Math['PI']*0x3/0x2,0x0,!0x1),_0x14377c[_0xf9c656(0x29f)](_0x115e73,_0x3e3386-_0x17f3b4),_0x14377c['arc'](_0x115e73-_0x17f3b4,_0x3e3386-_0x17f3b4,_0x17f3b4,0x0,Math['PI']/0x2,!0x1),_0x14377c[_0xf9c656(0x29f)](0x0,_0x3e3386),_0x14377c[_0xf9c656(0x29f)](0x0,_0x3f45eb),_0x14377c[_0xf9c656(0x4e6)](_0x3f45eb,_0x3f45eb,_0x3f45eb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14377c[_0xf9c656(0x421)](),_0x2d6ecd['fill']&&(_0x14377c[_0xf9c656(0x317)](),_0x14377c[_0xf9c656(0x29d)]=_0x2d6ecd[_0xf9c656(0x29e)],_0x2d6ecd['fillRule']===_0xf9c656(0x1f0)?_0x14377c['fill'](_0xf9c656(0x1f0)):_0x14377c[_0xf9c656(0x29e)](),_0x14377c[_0xf9c656(0x410)]());}var _0x15883f=class _0x6a0626 extends _0x1f114e['Shape']{constructor(_0x9762a6,_0x5f1bcc){const _0x30947a=_0x49e248;super(_0x9762a6,_0x5f1bcc),_0x30e4d4(this,_0x30947a(0x326),void 0x0),_0x30e4d4(this,_0x30947a(0x214),void 0x0),this['color']=_0x5f1bcc==null?void 0x0:_0x5f1bcc['color'],this[_0x30947a(0x214)]=_0x5f1bcc==null?void 0x0:_0x5f1bcc[_0x30947a(0x214)];}static['drawWith'](_0xb808b9,_0x2e7fb4){const _0x36b130=_0x49e248;let {text:_0x2c13ee,color:_0x243591}=_0x2e7fb4;_0xb808b9['save'](),_0xb808b9[_0x36b130(0x3a2)]=_0x36b130(0x3a5);let _0x477de6=_0xb808b9[_0x36b130(0x4f5)](_0x2c13ee)[_0x36b130(0x310)];if(_0x2390e6(_0xb808b9,{'height':0x14,'radius':0x4,'width':_0xdd004d(_0xb808b9,_0x2c13ee),'fill':_0x243591,'evented':!0x1}),_0xb808b9['fillStyle']=_0x36b130(0x364),_0x477de6>0xc0){let _0xbe867d='',_0xc491af=0x0;for(let _0x3939e0 of _0x2c13ee){let _0x266298=_0xb808b9['measureText'](_0x3939e0)[_0x36b130(0x310)];if(_0xc491af+_0x266298<=0xc0-_0xb808b9['measureText'](_0x36b130(0x314))[_0x36b130(0x310)])_0xbe867d+=_0x3939e0,_0xc491af+=_0x266298;else{_0xbe867d+=_0x36b130(0x314);break;}}_0xb808b9[_0x36b130(0x25f)](_0xbe867d,0x4,0xf);}else _0xb808b9[_0x36b130(0x25f)](_0x2c13ee,0x4,0xf);_0xb808b9[_0x36b130(0x410)]();}['_draw'](_0x53513b){const _0x4a0371=_0x49e248;_0x6a0626[_0x4a0371(0x480)](_0x53513b,this);}};let _0x30f3f9=_0x49e248(0x234);var _0x824388=class{constructor(_0x1316b3,_0x4b29ee,_0x525325,_0x33edc6){const _0x267fe7=_0x49e248;this[_0x267fe7(0x470)]=_0x1316b3,this[_0x267fe7(0x51c)]=_0x4b29ee,this[_0x267fe7(0x3ad)]=_0x525325,this[_0x267fe7(0x3cd)]=_0x33edc6,_0x30e4d4(this,_0x267fe7(0x4ec),[]),_0x30e4d4(this,_0x267fe7(0x1e9),null),_0x30e4d4(this,_0x267fe7(0x4c2),null),_0x30e4d4(this,_0x267fe7(0x293),null),_0x30e4d4(this,_0x267fe7(0x1de),null),_0x30e4d4(this,_0x267fe7(0x1ee),null),this[_0x267fe7(0x4d8)]();}set[_0x49e248(0x3df)](_0x7a4358){const _0x56d0a1=_0x49e248;_0x7a4358?(this[_0x56d0a1(0x293)]&&this[_0x56d0a1(0x293)][_0x56d0a1(0x47b)](),this[_0x56d0a1(0x4c2)]&&this[_0x56d0a1(0x4c2)][_0x56d0a1(0x48d)]()):(this['_anchorDot']&&this[_0x56d0a1(0x293)]['show'](),this[_0x56d0a1(0x4c2)]&&this[_0x56d0a1(0x4c2)][_0x56d0a1(0x47b)]());}[_0x49e248(0x224)](){const _0x2b6de7=_0x49e248;for(let _0x34b9f2 of this['_shapes'])_0x34b9f2[_0x2b6de7(0x224)]();this[_0x2b6de7(0x4c2)]&&this[_0x2b6de7(0x4c2)][_0x2b6de7(0x224)](),this[_0x2b6de7(0x293)]&&this['_anchorDot']['dispose'](),this[_0x2b6de7(0x1e9)]&&this['_anchor'][_0x2b6de7(0x224)](),this[_0x2b6de7(0x1ee)]&&this['_eventUnsubscribe']();}['_render'](){const _0x2245d2=_0x49e248;let {_docSkeleton:_0x3a1340,_document:_0x2320fc}=this,{color:_0x51d108,name:_0x4e575e,ranges:_0x48f43b}=this['_cursor'],_0x2663bb=_0x2320fc[_0x2245d2(0x1c8)](),{docsLeft:_0x388fe6,docsTop:_0x35ca03}=_0x2663bb,_0x5d7431=new _0x594380[(_0x2245d2(0x3d9))](_0x2663bb,_0x3a1340);for(let {startOffset:_0xd8fb1f,endOffset:_0x60d502,rangeType:_0x257e5d,segmentId:_0x3ec384,segmentPage:_0x33a724,collapsed:_0x3f5667,isActive:_0x37f484}of _0x48f43b){let _0x3fcc3c=_0x3a1340[_0x2245d2(0x37d)](_0xd8fb1f,!0x0,_0x3ec384,_0x33a724),_0x497e33=_0x3a1340[_0x2245d2(0x37d)](_0x60d502,!0x0,_0x3ec384,_0x33a724);_0x497e33??=_0x3a1340[_0x2245d2(0x37d)](_0x60d502-0x1,!0x1,_0x3ec384,_0x33a724);let _0x14dca4=_0x3e06bc(_0x3fcc3c,_0x497e33);if(_0x37f484&&_0x14dca4[_0x2245d2(0x4bc)]){let {contentBoxPointGroup:_0x5a3259}=_0x5d7431[_0x2245d2(0x509)](_0x497e33,_0x497e33);if(_0x5a3259[_0x2245d2(0x40d)]===0x0)continue;this[_0x2245d2(0x37f)](_0x51d108,_0x5a3259,_0x388fe6,_0x35ca03,_0x4e575e),this[_0x2245d2(0x1ee)]=this['_handleHover']();}if(_0x3fcc3c&&_0x497e33){if(_0x257e5d===_0x583c0b['DOC_RANGE_TYPE'][_0x2245d2(0x290)]){let {pointGroup:_0x33a837}=new _0x594380[(_0x2245d2(0x426))](_0x2663bb,_0x3a1340)[_0x2245d2(0x509)](_0x3fcc3c,_0x497e33)??{};if(_0x33a837==null||_0x33a837[_0x2245d2(0x40d)]===0x0)continue;this['_drawRectRange'](_0x51d108,_0x33a837,_0x388fe6,_0x35ca03);}else{if(!_0x3f5667&&_0x14dca4[_0x2245d2(0x349)]){let {borderBoxPointGroup:_0x3c0b1c}=_0x5d7431[_0x2245d2(0x509)](_0x3fcc3c,_0x497e33);if(_0x3c0b1c[_0x2245d2(0x40d)]===0x0)continue;this[_0x2245d2(0x1f8)](_0x51d108,_0x3c0b1c,_0x388fe6,_0x35ca03);}}}}}['_drawAnchor'](_0x56a723,_0x223f88,_0x10556c,_0x1eda24,_0x4cedb0){const _0x3a23c0=_0x49e248;let {left:_0x146a80,top:_0x466212,height:_0x427ede}=this[_0x3a23c0(0x1bc)](_0x223f88),_0x8ef6ce=1.5/this[_0x3a23c0(0x32b)](),_0x3bc13e=new _0x1f114e[(_0x3a23c0(0x529))](_0x30f3f9+(0x0,_0x583c0b[_0x3a23c0(0x1fd)])(0x6),{'left':_0x146a80+_0x10556c-_0x8ef6ce,'top':_0x466212+_0x1eda24,'height':_0x427ede,'width':1.5,'fill':_0x56a723||(0x0,_0x1f114e[_0x3a23c0(0x4f3)])(_0x583c0b[_0x3a23c0(0x2a0)][_0x3a23c0(0x318)],0x0),'strokeWidth':_0x8ef6ce,'stroke':_0x3a23c0(0x33d),'evented':!0x0});this[_0x3a23c0(0x1e9)]=_0x3bc13e,this[_0x3a23c0(0x51c)][_0x3a23c0(0x521)](_0x3bc13e,_0x594380[_0x3a23c0(0x4ba)]);let _0x2af7c6=new _0x1f114e[(_0x3a23c0(0x529))](_0x30f3f9+(0x0,_0x583c0b['generateRandomId'])(0x6),{'left':_0x146a80+_0x10556c-_0x8ef6ce,'top':_0x466212+_0x1eda24-0x2,'height':0x4,'width':0x4,'fill':_0x56a723||(0x0,_0x1f114e[_0x3a23c0(0x4f3)])(_0x583c0b[_0x3a23c0(0x2a0)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x56a723||(0x0,_0x1f114e[_0x3a23c0(0x4f3)])(_0x583c0b[_0x3a23c0(0x2a0)][_0x3a23c0(0x318)],0x0),'evented':!0x1});this[_0x3a23c0(0x293)]=_0x2af7c6,this[_0x3a23c0(0x51c)][_0x3a23c0(0x521)](_0x2af7c6,_0x594380[_0x3a23c0(0x4ba)]);let _0x7627f1=new _0x15883f(_0x30f3f9+(0x0,_0x583c0b[_0x3a23c0(0x1fd)])(0x6),{'left':_0x146a80+_0x10556c-_0x8ef6ce,'top':_0x466212+_0x1eda24-0x14,'text':_0x4cedb0,'color':_0x56a723});this[_0x3a23c0(0x4c2)]=_0x7627f1,this[_0x3a23c0(0x51c)][_0x3a23c0(0x521)](_0x7627f1,_0x594380[_0x3a23c0(0x4ba)]),this[_0x3a23c0(0x3df)]=!0x1;}[_0x49e248(0x25d)](){const _0x5d49f6=_0x49e248;let _0x1042c3=this['_anchor'][_0x5d49f6(0x438)][_0x5d49f6(0x362)](()=>{const _0x2d7d29=_0x5d49f6;this[_0x2d7d29(0x3df)]=!0x0;}),_0x2782c3=this['_anchor']['onPointerLeave$'][_0x5d49f6(0x362)](()=>{const _0x57a3fa=_0x5d49f6;this['_hideTimer']&&clearTimeout(this[_0x57a3fa(0x1de)]),this[_0x57a3fa(0x1de)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x51264c=_0x5d49f6;_0x1042c3[_0x51264c(0x45f)](),_0x2782c3[_0x51264c(0x45f)]();};}[_0x49e248(0x1f8)](_0x364954,_0x1a6879,_0x511d12,_0x3de27f){const _0x5ea201=_0x49e248;let _0x4997c1=0.2,_0x13e918=new _0x583c0b['ColorKit'](_0x364954)[_0x5ea201(0x2e6)](_0x4997c1)[_0x5ea201(0x1c3)](),_0xd1c3a6=new _0x1f114e[(_0x5ea201(0x25b))](_0x5ea201(0x1e6)+(0x0,_0x583c0b['generateRandomId'])(0x6),{'pointsGroup':_0x1a6879,'fill':_0x13e918||(0x0,_0x1f114e['getColor'])(_0x583c0b[_0x5ea201(0x2a0)]['black'],_0x4997c1),'left':_0x511d12,'top':_0x3de27f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5ea201(0x4ec)][_0x5ea201(0x4ce)](_0xd1c3a6),this[_0x5ea201(0x51c)][_0x5ea201(0x521)](_0xd1c3a6,_0x594380[_0x5ea201(0x4ba)]);}[_0x49e248(0x429)](_0x42da18,_0x143018,_0x3d5552,_0x36e734){const _0x783c72=_0x49e248;let _0xe61cb4=0.2,_0xb93d5e=new _0x583c0b['ColorKit'](_0x42da18)['setAlpha'](_0xe61cb4)[_0x783c72(0x1c3)](),_0x5ed5bf=new _0x1f114e[(_0x783c72(0x25b))](_0x783c72(0x2b4)+(0x0,_0x583c0b[_0x783c72(0x1fd)])(0x6),{'pointsGroup':_0x143018,'fill':_0xb93d5e||(0x0,_0x1f114e[_0x783c72(0x4f3)])(_0x583c0b[_0x783c72(0x2a0)][_0x783c72(0x318)],_0xe61cb4),'left':_0x3d5552,'top':_0x36e734,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x783c72(0x4ce)](_0x5ed5bf),this['_scene'][_0x783c72(0x521)](_0x5ed5bf,_0x594380[_0x783c72(0x4ba)]);}[_0x49e248(0x1bc)](_0x3c3ff1){let _0x722e73=_0x3c3ff1[0x0],_0x515044=_0x722e73[0x0],_0x4a0156=_0x722e73[0x2],{x:_0x524435,y:_0x4a4e84}=_0x515044,{x:_0x5bfee1,y:_0x16f96a}=_0x4a0156;return{'left':_0x524435,'top':_0x4a4e84,'width':_0x5bfee1-_0x524435,'height':_0x16f96a-_0x4a4e84};}[_0x49e248(0x32b)](){const _0x4a2226=_0x49e248;let {scaleX:_0x106c46,scaleY:_0x2910a5}=this[_0x4a2226(0x51c)]['getAncestorScale']();return Math['max'](_0x106c46,_0x2910a5);}};function _0x3e06bc(_0x34f7c5,_0x1e9e08){const _0x43b091=_0x49e248;if(!_0x1e9e08)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x34f7c5||_0x34f7c5[_0x43b091(0x398)]!==_0x1e9e08[_0x43b091(0x398)]||(_0x34f7c5[_0x43b091(0x398)]===_0x1f114e[_0x43b091(0x363)][_0x43b091(0x4a8)]||_0x34f7c5[_0x43b091(0x398)]===_0x1f114e[_0x43b091(0x363)]['FOOTER'])&&_0x34f7c5[_0x43b091(0x462)]!==_0x1e9e08['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x403609=(0x0,_0x1f114e['getDocumentSkeletonColumnPagePathInfo'])(_0x34f7c5),_0x27d03e=(0x0,_0x1f114e['getDocumentSkeletonColumnPagePathInfo'])(_0x1e9e08);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x403609==null||_0x27d03e==null?_0x403609==null&&_0x27d03e==null:_0x403609[_0x43b091(0x4d6)]===_0x27d03e[_0x43b091(0x4d6)]&&_0x403609[_0x43b091(0x446)]===_0x27d03e['columnGroupId']&&_0x403609[_0x43b091(0x1d7)]===_0x27d03e['columnIndex']};}let _0x35125b=class extends _0x583c0b[_0x49e248(0x42a)]{constructor(_0x53fae7,_0x588f84,_0x45b0cb,_0x1a2f6b,_0x11f1e7){const _0x32e319=_0x49e248;super(),this[_0x32e319(0x492)]=_0x53fae7,this['_docSkeletonManagerService']=_0x588f84,this['_collabCursorController']=_0x45b0cb,this['_commandService']=_0x1a2f6b,this[_0x32e319(0x272)]=_0x11f1e7,_0x30e4d4(this,_0x32e319(0x2e4),[]),_0x30e4d4(this,_0x32e319(0x2a4),[]),this['_init']();}[_0x49e248(0x3e1)](){const _0xe0312c=_0x49e248;let _0x41409a=this[_0xe0312c(0x492)][_0xe0312c(0x437)],_0x2f8b97=this[_0xe0312c(0x297)];this[_0xe0312c(0x202)]((0x0,_0x40bd7a['combineLatest'])([this[_0xe0312c(0x40b)][_0xe0312c(0x248)](_0x41409a),this[_0xe0312c(0x272)][_0xe0312c(0x37e)]])[_0xe0312c(0x4c9)]((0x0,_0x6228ab[_0xe0312c(0x4f0)])(([_0x1d05a9,_0x8059e8])=>({'skeleton':_0x2f8b97[_0xe0312c(0x335)](),'cursors':[..._0x1d05a9['values']()]['flatMap'](_0x4cab26=>({..._0x4cab26,'color':this[_0xe0312c(0x272)][_0xe0312c(0x419)](_0x4cab26[_0xe0312c(0x326)])}))})))[_0xe0312c(0x26e)](_0x5eb1e9=>{const _0x56c421=_0xe0312c;if(this[_0x56c421(0x269)](),_0x5eb1e9){let {skeleton:_0x203fb3,cursors:_0x5e2628}=_0x5eb1e9;this['_updateCollabCursors'](_0x203fb3,_0x5e2628);}})),this['_initResize'](),this[_0xe0312c(0x42b)]();}[_0x49e248(0x366)](_0xe4eed5,_0x36c4d8){const _0x4d8f9d=_0x49e248;let {scene:_0x5ddbc3,mainComponent:_0x10b580}=this['_context'],_0x3ff83b=_0x36c4d8[_0x4d8f9d(0x4f0)](_0x49ff64=>new _0x824388(_0x49ff64,_0x5ddbc3,_0xe4eed5,_0x10b580));this['_cursorShapes']=_0x3ff83b,this['_cursors']=_0x36c4d8;}[_0x49e248(0x4e2)](){const _0x24c320=_0x49e248;this['_removeCollabCursors']();let {scene:_0x142840,mainComponent:_0x2cf1d9}=this[_0x24c320(0x492)],_0x1db81d=this['_docSkeletonManagerService'][_0x24c320(0x335)](),_0x58d325=this['_cursors'][_0x24c320(0x4f0)](_0x1f7923=>new _0x824388(_0x1f7923,_0x142840,_0x1db81d,_0x2cf1d9));this['_cursorShapes']=_0x58d325;}[_0x49e248(0x269)](){const _0x7a932b=_0x49e248;this[_0x7a932b(0x2e4)]['forEach'](_0xb92a74=>_0xb92a74[_0x7a932b(0x224)]()),this[_0x7a932b(0x2e4)]=[];}[_0x49e248(0x42b)](){const _0x121a53=_0x49e248;let _0x34c584=[_0x594380[_0x121a53(0x50b)]['id']];this[_0x121a53(0x202)](this[_0x121a53(0x3ab)][_0x121a53(0x1cf)](_0x4b3f6d=>{const _0x3d55f9=_0x121a53;_0x34c584['includes'](_0x4b3f6d['id'])&&_0x4b3f6d['params'][_0x3d55f9(0x437)]===this[_0x3d55f9(0x492)][_0x3d55f9(0x437)]&&this[_0x3d55f9(0x4e2)]();}));}['_initResize'](){const _0x2b8ad3=_0x49e248;this[_0x2b8ad3(0x202)]((0x0,_0x583c0b[_0x2b8ad3(0x36c)])(this['_context'][_0x2b8ad3(0x50c)][_0x2b8ad3(0x458)])[_0x2b8ad3(0x4c9)]((0x0,_0x6228ab[_0x2b8ad3(0x28f)])(_0x18de6a=>_0x18de6a[_0x2b8ad3(0x26d)]===_0x1f114e['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2b8ad3(0x4dc)]),(0x0,_0x6228ab[_0x2b8ad3(0x2f5)])(0x10))[_0x2b8ad3(0x26e)](()=>{const _0xe5098b=_0x2b8ad3;this[_0xe5098b(0x4e2)]();}));}};_0x35125b=_0x1403f0([_0x37fe1c(0x1,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x574cdb['DocSkeletonManagerService'])),_0x37fe1c(0x2,(0x0,_0x583c0b['Inject'])(_0x5c57cd)),_0x37fe1c(0x3,_0x583c0b[_0x49e248(0x24e)]),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x35f)]))],_0x35125b);var _0x4f7e7d=class extends _0x1f114e[_0x49e248(0x2b0)]{constructor(_0x149936,_0x1c0d31){const _0x412a5f=_0x49e248;super(_0x149936,_0x1c0d31),_0x30e4d4(this,'_color',void 0x0),_0x30e4d4(this,'_hovered',!0x1),_0x30e4d4(this,_0x412a5f(0x4f4),void 0x0),_0x30e4d4(this,_0x412a5f(0x1e8),''),_0x30e4d4(this,_0x412a5f(0x3d7),_0x412a5f(0x24d)),_0x30e4d4(this,_0x412a5f(0x28e),void 0x0),_0x30e4d4(this,_0x412a5f(0x2fa),void 0x0),_0x30e4d4(this,_0x412a5f(0x2f4),void 0x0),_0x30e4d4(this,'_highlightSecond',0x4),_0x30e4d4(this,'_blinkTimer',void 0x0),_0x30e4d4(this,_0x412a5f(0x4aa),void 0x0),_0x30e4d4(this,_0x412a5f(0x237),!0x0),_0x30e4d4(this,'_offsetY',0x0),_0x30e4d4(this,_0x412a5f(0x2ea),_0x412a5f(0x368)),_0x1c0d31&&(this[_0x412a5f(0x507)](_0x1c0d31),_0x1c0d31[_0x412a5f(0x36b)]&&(_0x1c0d31['highlightSecond']??this[_0x412a5f(0x35e)])&&this[_0x412a5f(0x229)](_0x1c0d31['highlightSecond']??this[_0x412a5f(0x35e)])),this[_0x412a5f(0x438)][_0x412a5f(0x362)](()=>this[_0x412a5f(0x507)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x49e248(0x32e)](_0x2bd43d){const _0x57f125=_0x49e248;this[_0x57f125(0x414)]=_0x2bd43d;}[_0x49e248(0x507)](_0x5766ab){const _0x3828f1=_0x49e248;this[_0x3828f1(0x31e)]=_0x5766ab[_0x3828f1(0x326)]??this[_0x3828f1(0x31e)],this[_0x3828f1(0x40f)]=_0x5766ab[_0x3828f1(0x1d2)]??this[_0x3828f1(0x40f)],this['_range']=_0x5766ab[_0x3828f1(0x3ba)]??this[_0x3828f1(0x4f4)],this[_0x3828f1(0x1e8)]=_0x5766ab[_0x3828f1(0x450)]??this[_0x3828f1(0x1e8)],this[_0x3828f1(0x3d7)]=_0x5766ab[_0x3828f1(0x315)]??this[_0x3828f1(0x3d7)],this[_0x3828f1(0x28e)]=_0x5766ab[_0x3828f1(0x354)]??this[_0x3828f1(0x28e)],this[_0x3828f1(0x2fa)]=_0x5766ab[_0x3828f1(0x260)]??this[_0x3828f1(0x2fa)],this[_0x3828f1(0x2ea)]=_0x5766ab[_0x3828f1(0x517)]??this[_0x3828f1(0x2ea)],_0x5766ab[_0x3828f1(0x295)]!==void 0x0&&(this[_0x3828f1(0x35e)]=_0x5766ab[_0x3828f1(0x295)]),_0x5766ab[_0x3828f1(0x36b)]!==void 0x0&&(this[_0x3828f1(0x2f4)]=_0x5766ab[_0x3828f1(0x36b)]),_0x5766ab['offsetY']!==void 0x0&&(this[_0x3828f1(0x414)]=_0x5766ab[_0x3828f1(0x1e3)]),this[_0x3828f1(0x228)]({'width':_0x5766ab[_0x3828f1(0x310)],'height':_0x5766ab[_0x3828f1(0x3b9)]});}[_0x49e248(0x442)](_0x1ccda3){const _0x5b9318=_0x49e248;let {row:_0x353953,column:_0x2c15d4}=_0x1ccda3;_0x353953>=this[_0x5b9318(0x4f4)][_0x5b9318(0x3a7)]&&_0x353953<=this[_0x5b9318(0x4f4)][_0x5b9318(0x37a)]&&_0x2c15d4>=this[_0x5b9318(0x4f4)]['startColumn']&&_0x2c15d4<=this[_0x5b9318(0x4f4)][_0x5b9318(0x1dd)]?this['setShapeProps']({'hovered':!0x0}):this[_0x5b9318(0x507)]({'hovered':!0x1});}[_0x49e248(0x229)](_0x3a58aa){const _0x5c47cb=_0x49e248;this[_0x5c47cb(0x444)](),this[_0x5c47cb(0x237)]=!0x0,this['_blinkIntervalTimer']=window[_0x5c47cb(0x4b2)](()=>{const _0x26148c=_0x5c47cb;this[_0x26148c(0x237)]=!this[_0x26148c(0x237)],this[_0x26148c(0x4a0)](!0x0);},0x1f4),this[_0x5c47cb(0x32c)]=window['setTimeout'](()=>{const _0x532b96=_0x5c47cb;this[_0x532b96(0x444)](),this[_0x532b96(0x237)]=!0x0,this['makeDirty'](!0x0);},_0x3a58aa*0x3e8);}['_stopBlinking'](){const _0x32bdaa=_0x49e248;this[_0x32bdaa(0x4aa)]&&=(window['clearInterval'](this[_0x32bdaa(0x4aa)]),void 0x0),this[_0x32bdaa(0x32c)]&&=(window[_0x32bdaa(0x473)](this[_0x32bdaa(0x32c)]),void 0x0);}[_0x49e248(0x384)](_0x47584c){return!0x1;}[_0x49e248(0x224)](){const _0x5eb19f=_0x49e248;this['_stopBlinking'](),super[_0x5eb19f(0x224)]();}[_0x49e248(0x3f6)](_0x1771a3){const _0x4547d1=_0x49e248;let _0x318144=this[_0x4547d1(0x31e)],_0x149063=this[_0x4547d1(0x28e)];if(this[_0x4547d1(0x2f4)]&&!this[_0x4547d1(0x237)]&&(_0x318144=this['_getLighterColor'](this[_0x4547d1(0x31e)]),_0x149063=this[_0x4547d1(0x28e)]?this[_0x4547d1(0x24b)](this['_backgroundColor']):void 0x0),_0x1f114e[_0x4547d1(0x529)]['drawWith'](_0x1771a3,{'width':this[_0x4547d1(0x310)],'height':this[_0x4547d1(0x3b9)],'strokeWidth':this[_0x4547d1(0x4b6)]||1.5,'stroke':_0x318144,'evented':!0x1,'fill':_0x149063}),this[_0x4547d1(0x40f)]||this[_0x4547d1(0x2fa)]){_0x1771a3[_0x4547d1(0x317)]();let _0xdc7d8c=this['_labelHorizontalPosition']===_0x4547d1(0x3ca)?-_0xdd004d(_0x1771a3,this[_0x4547d1(0x1e8)]):this[_0x4547d1(0x310)];_0x1771a3[_0x4547d1(0x230)](0x1,0x0,0x0,0x1,_0xdc7d8c,(this[_0x4547d1(0x3d7)]===_0x4547d1(0x2d3)?0x0:-0x14)+(this['_offsetY']??0x0)),_0x15883f[_0x4547d1(0x480)](_0x1771a3,{'text':this[_0x4547d1(0x1e8)],'color':_0x318144}),_0x1771a3[_0x4547d1(0x410)]();}}[_0x49e248(0x24b)](_0x3d74a6){const _0x463e97=_0x49e248;return _0x3d74a6[_0x463e97(0x225)]('#')?'rgba('+Number[_0x463e97(0x524)](_0x3d74a6['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x3d74a6[_0x463e97(0x40c)](0x3,0x5),0x10)+',\x20'+Number[_0x463e97(0x524)](_0x3d74a6['slice'](0x5,0x7),0x10)+',\x200.2)':_0x3d74a6[_0x463e97(0x225)](_0x463e97(0x25e))?_0x3d74a6[_0x463e97(0x41c)](/[\d.]+\)$/g,_0x463e97(0x1f9)):_0x3d74a6['startsWith'](_0x463e97(0x35d))?_0x3d74a6[_0x463e97(0x41c)](_0x463e97(0x35d),_0x463e97(0x25e))['replace'](')',',\x200.2)'):_0x3d74a6;}};let _0x413740=class extends _0x583c0b[_0x49e248(0x42a)]{constructor(_0x4ee26b,_0x1294c7,_0x5e2b58,_0x155b2c){const _0x2c86f4=_0x49e248;super(),this[_0x2c86f4(0x492)]=_0x4ee26b,this[_0x2c86f4(0x3c5)]=_0x1294c7,this[_0x2c86f4(0x40b)]=_0x5e2b58,this['_themeService']=_0x155b2c,_0x30e4d4(this,'_cursors',new Set()),_0x30e4d4(this,_0x2c86f4(0x209),null),_0x30e4d4(this,_0x2c86f4(0x498),null),this[_0x2c86f4(0x3e1)]();}['_init'](){const _0x577d6d=_0x49e248;this[_0x577d6d(0x3c5)][_0x577d6d(0x2e7)]['pipe']((0x0,_0x6228ab[_0x577d6d(0x374)])(this['dispose$']),(0x0,_0x6228ab[_0x577d6d(0x2eb)])(_0x2d903f=>{const _0x4b243e=_0x577d6d;if(_0x2d903f){let _0x10b4cc=_0x2d903f[_0x4b243e(0x2c8)];return(0x0,_0x40bd7a['combineLatest'])(this[_0x4b243e(0x40b)][_0x4b243e(0x248)](this[_0x4b243e(0x492)]['unitId']),this[_0x4b243e(0x272)]['currentTheme$'])[_0x4b243e(0x4c9)]((0x0,_0x6228ab['map'])(([_0x14f31f,_0x5d2406])=>{const _0x308628=_0x4b243e;let _0x3a343a=new Map();return _0x14f31f[_0x308628(0x1fe)]((_0x354afe,_0x2bb543)=>{const _0x1ad806=_0x308628;if(_0x354afe[_0x1ad806(0x4a6)]===_0x10b4cc){let _0x51c116={..._0x354afe};_0x51c116[_0x1ad806(0x326)]=this[_0x1ad806(0x272)][_0x1ad806(0x419)](_0x354afe['color']),_0x3a343a[_0x1ad806(0x345)](_0x2bb543,_0x51c116);}}),{'skeleton':_0x2d903f,'cursors':_0x3a343a};}));}return(0x0,_0x40bd7a['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xf14f9d,cursors:_0x3c1d0b})=>{const _0x2c3ae0=_0x577d6d;this['_removeCollabCursors'](),_0xf14f9d&&this[_0x2c3ae0(0x366)](_0xf14f9d,_0x3c1d0b);}),this[_0x577d6d(0x202)](this[_0x577d6d(0x3c5)]['currentSkeleton$'][_0x577d6d(0x4c9)]((0x0,_0x6228ab['takeUntil'])(this[_0x577d6d(0x49b)]))[_0x577d6d(0x26e)](_0x115646=>{const _0x258471=_0x577d6d;var _0x373fd3;if(_0x115646==null)return;(_0x373fd3=this[_0x258471(0x498)])==null||_0x373fd3[_0x258471(0x45f)](),this[_0x258471(0x498)]=null;let {skeleton:_0x29cb40}=_0x115646,{scene:_0x465369}=this[_0x258471(0x492)];this[_0x258471(0x498)]=_0x465369['onPointerMove$'][_0x258471(0x362)]((0x0,_0x583c0b[_0x258471(0x52d)])(_0xd8c8ad=>{const _0xd5f5a8=_0x258471;var _0xa13927,_0x57972c;let {offsetX:_0x44c1f8,offsetY:_0x16eb5a}=_0xd8c8ad,{x:_0xcd9423,y:_0x215326}=_0x465369['getCoordRelativeToViewport'](_0x1f114e[_0xd5f5a8(0x2fe)][_0xd5f5a8(0x3f3)]([_0x44c1f8,_0x16eb5a])),{scaleX:_0x4f4f61,scaleY:_0x452bb5}=_0x465369['getAncestorScale'](),_0x1196f8=_0x465369[_0xd5f5a8(0x1fa)](_0x1f114e[_0xd5f5a8(0x31c)][_0xd5f5a8(0x232)]),_0x5ce8e0=_0x465369['getScrollXYInfoByViewport'](_0x1f114e[_0xd5f5a8(0x2fe)]['FromArray']([_0xcd9423,_0x215326]),_0x1196f8),_0x1b6441=_0x29cb40[_0xd5f5a8(0x525)](_0x44c1f8,_0x16eb5a,_0x4f4f61,_0x452bb5,_0x5ce8e0);(((_0xa13927=this['_lastPointer'])==null?void 0x0:_0xa13927['column'])!==_0x1b6441[_0xd5f5a8(0x3c6)]||((_0x57972c=this[_0xd5f5a8(0x209)])==null?void 0x0:_0x57972c[_0xd5f5a8(0x1b9)])!==_0x1b6441[_0xd5f5a8(0x1b9)])&&this['_cursors'][_0xd5f5a8(0x1fe)](_0x2475d3=>{const _0x43a5a8=_0xd5f5a8;_0x2475d3[_0x43a5a8(0x442)](_0x1b6441);});},0x64));})),this[_0x577d6d(0x202)]((0x0,_0x583c0b['toDisposable'])(()=>{const _0x336802=_0x577d6d;var _0x4fec48;(_0x4fec48=this[_0x336802(0x498)])==null||_0x4fec48[_0x336802(0x45f)](),this[_0x336802(0x498)]=null;}));}[_0x49e248(0x366)](_0x49d142,_0x2c2b9d){const _0x161a84=_0x49e248;let _0x5e7100=this['_sheetSkeletonManagerService'][_0x161a84(0x4e5)]();if(!_0x5e7100)return;let _0x2ecf32=this[_0x161a84(0x45b)]();if(!_0x2ecf32)return;this['_cursors'][_0x161a84(0x1fe)](_0x4e0081=>{const _0x639dd8=_0x161a84;_0x4e0081[_0x639dd8(0x4a0)]();});let {scene:_0x4b8af9}=_0x2ecf32,_0x449da9=_0x54db66(Array['from'](_0x2c2b9d['values']()))[_0x161a84(0x4f0)](_0x105b85=>{const _0x5022e6=_0x161a84;let {color:_0xbeb9f6,range:_0x1055e1,name:_0x178d10,selection:_0x2a9e9b,sheetID:_0x432c99}=_0x105b85,{startColumn:_0x1f2b8d,startRow:_0x48290d,endColumn:_0x1673a9,endRow:_0x23c28c}=_0x1055e1,_0x2f11bf=(0x0,_0x163f80['getCoordByCell'])(_0x48290d,_0x1f2b8d,_0x4b8af9,_0x5e7100),_0x2876a4=(0x0,_0x163f80['getCoordByCell'])(_0x23c28c,_0x1673a9,_0x4b8af9,_0x5e7100),{columnHeaderHeightAndMarginTop:_0x343b82}=_0x5e7100,{startX:_0x449a73,startY:_0xc74f63}=_0x2f11bf,{endX:_0x17d2cb,endY:_0x711ffd}=_0x2876a4,_0xfee35e=_0x17d2cb-_0x449a73,_0x5581d1=_0x711ffd-_0xc74f63;return new _0x4f7e7d(_0x178d10,{'labelPosition':_0xc74f63-_0x343b82>=0x14?_0x5022e6(0x24d):'bottom','sheetID':_0x432c99,'range':_0x1055e1,'color':_0xbeb9f6,'name':_0x178d10,'selection':_0x2a9e9b,'left':_0x449a73,'top':_0xc74f63,'width':_0xfee35e,'height':_0x5581d1,'evented':!0x1,'zIndex':0x1389});});_0x4b8af9['addObjects'](_0x449da9,0x1),this[_0x161a84(0x2a4)]=new Set(_0x449da9);}['_removeCollabCursors'](){const _0x1cfecd=_0x49e248;var _0x112baa;(_0x112baa=this['_cursors'])==null||_0x112baa['forEach'](_0x1ac5b4=>_0x1ac5b4[_0x1cfecd(0x224)]());}[_0x49e248(0x45b)](){const _0x37e12a=_0x49e248;return(0x0,_0x163f80[_0x37e12a(0x46d)])(this[_0x37e12a(0x492)]['unit'],this['_context']);}};_0x413740=_0x1403f0([_0x37fe1c(0x1,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x163f80[_0x49e248(0x3e5)])),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x5c57cd)),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x35f)]))],_0x413740);function _0x54db66(_0x4b8947){const _0x5056ae=_0x49e248;let _0x186968=new Map();return _0x4b8947[_0x5056ae(0x1fe)](_0x11ffba=>{const _0x5dbe33=_0x5056ae;if(_0x186968['has'](_0x11ffba[_0x5dbe33(0x2ca)])){let _0x37da40=_0x186968['get'](_0x11ffba[_0x5dbe33(0x2ca)]);_0x37da40[_0x5dbe33(0x450)]+=',\x20'+_0x11ffba['name'];}else _0x186968[_0x5dbe33(0x345)](_0x11ffba[_0x5dbe33(0x2ca)],_0x11ffba);}),Array[_0x5056ae(0x4ea)](_0x186968['values']());}function _0x511454(_0x3e1896){const _0x5f0012=_0x49e248;return typeof _0x3e1896==_0x5f0012(0x46c)&&!!_0x3e1896;}function _0x42743f(_0x4b8216){const _0x42faa2=_0x49e248;return _0x4b8216[_0x42faa2(0x311)]===_0x3569c2['CollaborationEvent'][_0x42faa2(0x372)]&&_0x42faa2(0x353)in _0x4b8216&&_0x511454(_0x4b8216[_0x42faa2(0x353)])&&typeof _0x4b8216[_0x42faa2(0x353)][_0x42faa2(0x4fb)]==_0x42faa2(0x313)&&typeof _0x4b8216[_0x42faa2(0x353)]['selection']==_0x42faa2(0x313);}function _0x9d67f2(_0x45c5c0){const _0x108acf=_0x49e248;return _0x45c5c0['eventID']===_0x3569c2[_0x108acf(0x268)]['USERS_LEAVE']&&_0x108acf(0x353)in _0x45c5c0&&_0x511454(_0x45c5c0[_0x108acf(0x353)])&&typeof _0x45c5c0[_0x108acf(0x353)][_0x108acf(0x4fb)]==_0x108acf(0x313);}function _0x471bf8(_0x120f8f,_0x1caf8a){const _0xde9054=_0x49e248;let _0x254e87;try{_0x254e87=JSON[_0xde9054(0x43f)](_0x120f8f);}catch{return null;}if(!_0x511454(_0x254e87)||typeof _0x254e87['kind']!=_0xde9054(0x313)||typeof _0x254e87['unitId']!=_0xde9054(0x313)||typeof _0x254e87[_0xde9054(0x2c4)]!=_0xde9054(0x313))return null;let _0x415e19=typeof _0x254e87['unitType']==_0xde9054(0x490)?_0x254e87[_0xde9054(0x334)]:_0x1caf8a;if(_0x415e19==null)return null;let _0x44886a=_0x511454(_0x254e87['pointer'])&&typeof _0x254e87[_0xde9054(0x378)]['x']==_0xde9054(0x490)&&Number[_0xde9054(0x365)](_0x254e87[_0xde9054(0x378)]['x'])&&typeof _0x254e87[_0xde9054(0x378)]['y']==_0xde9054(0x490)&&Number[_0xde9054(0x365)](_0x254e87[_0xde9054(0x378)]['y'])?{'x':_0x254e87[_0xde9054(0x378)]['x'],'y':_0x254e87[_0xde9054(0x378)]['y']}:null;return{'kind':_0x254e87[_0xde9054(0x2d1)],'unitType':_0x415e19,'unitId':_0x254e87[_0xde9054(0x437)],'subUnitId':_0x254e87[_0xde9054(0x2c4)],'selectedIds':Array['isArray'](_0x254e87[_0xde9054(0x3bc)])?_0x254e87[_0xde9054(0x3bc)]['filter'](_0x433c33=>typeof _0x433c33=='string'):[],'focusedId':typeof _0x254e87[_0xde9054(0x4d7)]=='string'?_0x254e87['focusedId']:null,'pointer':_0x44886a};}function _0x17e573(_0x5a6df4,_0x5bc01e,_0x6228ad){const _0x56346a=_0x49e248;return{'kind':_0x5bc01e,'unitType':_0x5a6df4,'unitId':_0x6228ad[_0x56346a(0x437)],'subUnitId':_0x6228ad['subUnitId'],'selectedIds':Array[_0x56346a(0x4ea)](_0x6228ad[_0x56346a(0x3bc)]),'focusedId':_0x6228ad[_0x56346a(0x4d7)],'pointer':_0x6228ad[_0x56346a(0x378)]?{..._0x6228ad['pointer']}:null};}let _0x5ca068=class extends _0x583c0b[_0x49e248(0x42a)]{constructor(_0x447b68,_0x12c6a9,_0x283a53,_0x33e083,_0x3cfe8e,_0x4f391a){const _0x3ac690=_0x49e248;super(),this[_0x3ac690(0x437)]=_0x447b68,this[_0x3ac690(0x440)]=_0x12c6a9,this[_0x3ac690(0x453)]=_0x283a53,this[_0x3ac690(0x38c)]=_0x33e083,this['_memberService']=_0x3cfe8e,this[_0x3ac690(0x3ab)]=_0x4f391a,_0x30e4d4(this,_0x3ac690(0x3a1),!0x1),_0x30e4d4(this,_0x3ac690(0x472),!0x1);}get[_0x49e248(0x334)](){const _0x541d9a=_0x49e248;return this[_0x541d9a(0x453)][_0x541d9a(0x334)];}[_0x49e248(0x224)](){const _0x595269=_0x49e248;this[_0x595269(0x2af)](),super[_0x595269(0x224)]();}[_0x49e248(0x306)](){const _0x293b49=_0x49e248;this['_initialized']||(this['_initialized']=!0x0,this['_session'][_0x293b49(0x211)][_0x293b49(0x4c9)]((0x0,_0x40bd7a[_0x293b49(0x374)])(this[_0x293b49(0x49b)]))[_0x293b49(0x26e)](_0x5779f2=>{const _0x38885d=_0x293b49;if(_0x5779f2===_0x1134b1['SessionStatus'][_0x38885d(0x336)]){this[_0x38885d(0x3a1)]=!0x0;let _0xc35e79=this[_0x38885d(0x453)][_0x38885d(0x231)](this[_0x38885d(0x437)]);_0xc35e79&&this[_0x38885d(0x4e4)](_0xc35e79);}else this[_0x38885d(0x3a1)]=!0x1,this[_0x38885d(0x2af)]();}),this[_0x293b49(0x440)][_0x293b49(0x287)]['pipe']((0x0,_0x40bd7a[_0x293b49(0x374)])(this[_0x293b49(0x49b)]))[_0x293b49(0x26e)](_0x12596f=>{const _0x2e9358=_0x293b49;_0x42743f(_0x12596f)?this['_handleCursorUpdate'](_0x12596f):_0x9d67f2(_0x12596f)&&this[_0x2e9358(0x484)](_0x12596f[_0x2e9358(0x353)][_0x2e9358(0x4fb)]);}),this['_adapter']['localPresence$'][_0x293b49(0x4c9)]((0x0,_0x40bd7a[_0x293b49(0x28f)])(_0x148531=>this[_0x293b49(0x3a1)]&&_0x148531[_0x293b49(0x437)]===this[_0x293b49(0x437)]),(0x0,_0x40bd7a[_0x293b49(0x4bf)])(_0x42274a=>(0x0,_0x40bd7a['timer'])(_0x42274a[_0x293b49(0x520)]),{'leading':!0x0,'trailing':!0x0}),(0x0,_0x40bd7a[_0x293b49(0x374)])(this[_0x293b49(0x49b)]))[_0x293b49(0x26e)](_0x3fe69f=>this['_sendLocalPresence'](_0x3fe69f)));}[_0x49e248(0x4e4)](_0x4ec70b){const _0xb20fef=_0x49e248;let _0xe3ef=this[_0xb20fef(0x440)][_0xb20fef(0x447)]();if(!_0xe3ef||!this[_0xb20fef(0x3a1)])return;let _0x190455={'eventID':_0x3569c2['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitId'],'memberID':_0xe3ef,'selection':JSON[_0xb20fef(0x21f)](_0x17e573(this['unitType'],this[_0xb20fef(0x453)]['presenceKind'],_0x4ec70b))}};this[_0xb20fef(0x440)]['send'](_0x190455,this[_0xb20fef(0x437)])['catch'](()=>void 0x0);}[_0x49e248(0x1f6)](_0x1d35c2){const _0x55ac13=_0x49e248;let {memberID:_0xf582b5,selection:_0x111f97}=_0x1d35c2[_0x55ac13(0x353)];if(_0xf582b5===this[_0x55ac13(0x440)][_0x55ac13(0x447)]())return;let _0x3d0aa4=_0x471bf8(_0x111f97,this[_0x55ac13(0x334)]);if(!_0x3d0aa4||_0x3d0aa4[_0x55ac13(0x2d1)]!==this['_adapter'][_0x55ac13(0x22a)]||_0x3d0aa4[_0x55ac13(0x334)]!==this[_0x55ac13(0x334)]||_0x3d0aa4[_0x55ac13(0x437)]!==this['unitId'])return;let _0x3825c4=this['_memberService'][_0x55ac13(0x2c2)](this[_0x55ac13(0x437)],_0xf582b5),_0x24f333={'unitId':_0x3d0aa4[_0x55ac13(0x437)],'subUnitId':_0x3d0aa4[_0x55ac13(0x2c4)],'selectedIds':_0x3d0aa4['selectedIds'],'focusedId':_0x3d0aa4[_0x55ac13(0x4d7)],'pointer':_0x3d0aa4['pointer'],'memberId':_0xf582b5,'color':this[_0x55ac13(0x38c)][_0x55ac13(0x285)](_0xf582b5),'name':(_0x3825c4==null?void 0x0:_0x3825c4['name'])??_0xf582b5};this[_0x55ac13(0x3ab)][_0x55ac13(0x51a)](_0x4605c2['id'],{'unitType':this[_0x55ac13(0x334)],'update':{'type':'set','state':_0x24f333}})['catch'](()=>void 0x0);}['_removeRemotePresence'](_0x42ec63){const _0x5dd77a=_0x49e248;this[_0x5dd77a(0x3ab)]['executeCommand'](_0x4605c2['id'],{'unitType':this[_0x5dd77a(0x334)],'update':{'type':_0x5dd77a(0x29a),'unitId':this[_0x5dd77a(0x437)],'memberId':_0x42ec63}})['catch'](()=>void 0x0);}['_clearRemotePresences'](){const _0x3caa12=_0x49e248;this['_commandService'][_0x3caa12(0x51a)](_0x4605c2['id'],{'unitType':this[_0x3caa12(0x334)],'update':{'type':_0x3caa12(0x433),'unitId':this[_0x3caa12(0x437)]}})[_0x3caa12(0x1e4)](()=>void 0x0);}};_0x5ca068=_0x1403f0([_0x37fe1c(0x3,(0x0,_0x583c0b['Inject'])(_0x5dac64)),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1['MemberService'])),_0x37fe1c(0x5,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x24e)]))],_0x5ca068);let _0x4698fb=class extends _0x583c0b['RxDisposable']{constructor(_0x99dd9f,_0x537308,_0x40c862,_0x2a3ea3){const _0x42cd82=_0x49e248;super(),this[_0x42cd82(0x1cd)]=_0x99dd9f,this[_0x42cd82(0x51b)]=_0x537308,this[_0x42cd82(0x282)]=_0x40c862,this[_0x42cd82(0x1ec)]=_0x2a3ea3,_0x30e4d4(this,_0x42cd82(0x508),!0x1),_0x30e4d4(this,'_entities',new Map()),_0x30e4d4(this,'_pendingEntities',new Map()),_0x30e4d4(this,_0x42cd82(0x1fc),new Map()),this[_0x42cd82(0x3e1)]();}[_0x49e248(0x224)](){const _0x74e65d=_0x49e248;this[_0x74e65d(0x508)]=!0x0,this[_0x74e65d(0x1fc)][_0x74e65d(0x1fe)](_0x4ee22a=>_0x4ee22a['dispose']()),this[_0x74e65d(0x1fc)][_0x74e65d(0x433)](),this[_0x74e65d(0x227)][_0x74e65d(0x1fe)](_0x3cb8c9=>_0x3cb8c9[_0x74e65d(0x224)]()),this[_0x74e65d(0x227)]['clear'](),this[_0x74e65d(0x316)][_0x74e65d(0x433)](),super[_0x74e65d(0x224)]();}['_init'](){const _0x29b279=_0x49e248;this[_0x29b279(0x1ec)][_0x29b279(0x26c)]['pipe']((0x0,_0x40bd7a['takeUntil'])(this[_0x29b279(0x49b)]))[_0x29b279(0x26e)](_0x5b4c99=>this['_syncAdapters'](_0x5b4c99));}['_syncAdapters'](_0x47a2eb){const _0x5c75f1=_0x49e248;let _0x4df667=new Set(_0x47a2eb['map'](_0x100e00=>_0x100e00[_0x5c75f1(0x334)]));this[_0x5c75f1(0x1fc)][_0x5c75f1(0x1fe)]((_0x1749d7,_0x101a09)=>{const _0x15ccc9=_0x5c75f1;_0x4df667[_0x15ccc9(0x4ac)](_0x101a09)||(_0x1749d7[_0x15ccc9(0x224)](),this[_0x15ccc9(0x1fc)]['delete'](_0x101a09),this['_disposeEntitiesForType'](_0x101a09));}),_0x47a2eb[_0x5c75f1(0x1fe)](_0x182cea=>{const _0x29d089=_0x5c75f1;this[_0x29d089(0x1fc)][_0x29d089(0x4ac)](_0x182cea[_0x29d089(0x334)])||this['_bindAdapter'](_0x182cea);});}[_0x49e248(0x379)](_0xc7adee){const _0x1b9b09=_0x49e248;let _0x5267a9=new _0x583c0b[(_0x1b9b09(0x33b))]();this[_0x1b9b09(0x1fc)][_0x1b9b09(0x345)](_0xc7adee['unitType'],_0x5267a9),_0x5267a9[_0x1b9b09(0x4a9)](_0xc7adee[_0x1b9b09(0x2d0)]()),this[_0x1b9b09(0x1cd)][_0x1b9b09(0x402)](_0xc7adee[_0x1b9b09(0x334)])['forEach'](_0x51b18a=>this[_0x1b9b09(0x4f6)](_0x51b18a['getUnitId'](),_0xc7adee)[_0x1b9b09(0x1e4)](()=>void 0x0));let _0x254f96=this[_0x1b9b09(0x1cd)][_0x1b9b09(0x305)](_0xc7adee[_0x1b9b09(0x334)])[_0x1b9b09(0x26e)](({unit:_0x5c7a14})=>this[_0x1b9b09(0x4f6)](_0x5c7a14[_0x1b9b09(0x375)](),_0xc7adee)['catch'](()=>void 0x0));_0x5267a9[_0x1b9b09(0x4a9)]((0x0,_0x583c0b[_0x1b9b09(0x292)])(()=>_0x254f96[_0x1b9b09(0x45f)]()));let _0x160689=this[_0x1b9b09(0x1cd)][_0x1b9b09(0x3f2)](_0xc7adee[_0x1b9b09(0x334)])['subscribe'](_0x5791bb=>this[_0x1b9b09(0x27f)](_0x5791bb['getUnitId']()));_0x5267a9[_0x1b9b09(0x4a9)]((0x0,_0x583c0b[_0x1b9b09(0x292)])(()=>_0x160689[_0x1b9b09(0x45f)]()));}async[_0x49e248(0x4f6)](_0xd5bcbf,_0x37df1a){const _0x3c83f3=_0x49e248;if(this['_entities'][_0x3c83f3(0x4ac)](_0xd5bcbf)||this[_0x3c83f3(0x316)][_0x3c83f3(0x4ac)](_0xd5bcbf))return;let _0x30d20b={};this['_pendingEntities'][_0x3c83f3(0x345)](_0xd5bcbf,_0x30d20b);let _0x35f902=await this[_0x3c83f3(0x282)][_0x3c83f3(0x3b5)](_0xd5bcbf)[_0x3c83f3(0x1e4)](_0x9dbb6b=>{const _0xa8d585=_0x3c83f3;throw this['_pendingEntities'][_0xa8d585(0x3e3)](_0xd5bcbf)===_0x30d20b&&this[_0xa8d585(0x316)][_0xa8d585(0x489)](_0xd5bcbf),_0x9dbb6b;});if(this[_0x3c83f3(0x508)]||this[_0x3c83f3(0x316)][_0x3c83f3(0x3e3)](_0xd5bcbf)!==_0x30d20b||this[_0x3c83f3(0x1ec)][_0x3c83f3(0x3e3)](_0x37df1a[_0x3c83f3(0x334)])!==_0x37df1a){this['_pendingEntities']['get'](_0xd5bcbf)===_0x30d20b&&this[_0x3c83f3(0x316)][_0x3c83f3(0x489)](_0xd5bcbf);return;}let _0x22bda7=this[_0x3c83f3(0x51b)]['createInstance'](_0x5ca068,_0xd5bcbf,_0x35f902,_0x37df1a);_0x22bda7[_0x3c83f3(0x306)](),this['_pendingEntities'][_0x3c83f3(0x489)](_0xd5bcbf),this[_0x3c83f3(0x227)]['set'](_0xd5bcbf,_0x22bda7);}[_0x49e248(0x27f)](_0x442251){const _0x2d1d79=_0x49e248;this[_0x2d1d79(0x316)][_0x2d1d79(0x489)](_0x442251);let _0x523eb5=this[_0x2d1d79(0x227)][_0x2d1d79(0x3e3)](_0x442251);_0x523eb5&&(_0x523eb5[_0x2d1d79(0x224)](),this[_0x2d1d79(0x227)]['delete'](_0x442251));}[_0x49e248(0x47a)](_0x41977a){const _0x177073=_0x49e248;this['_univerInstanceService'][_0x177073(0x402)](_0x41977a)[_0x177073(0x1fe)](_0x1d21f7=>this[_0x177073(0x316)][_0x177073(0x489)](_0x1d21f7[_0x177073(0x375)]())),Array[_0x177073(0x4ea)](this['_entities'][_0x177073(0x481)]())[_0x177073(0x1fe)](([_0x16d4f2,_0x5c39bd])=>{const _0x4a3d20=_0x177073;_0x5c39bd['unitType']===_0x41977a&&this[_0x4a3d20(0x27f)](_0x16d4f2);});}};_0x4698fb=_0x1403f0([_0x37fe1c(0x0,_0x583c0b['IUniverInstanceService']),_0x37fe1c(0x1,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b['Injector'])),_0x37fe1c(0x2,(0x0,_0x583c0b['Inject'])(_0x1134b1[_0x49e248(0x4c0)])),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x132a23[_0x49e248(0x43a)]))],_0x4698fb);let _0x28564c={'toast':_0x49e248(0x50a),'actionButton':'!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end'},_0x4b3379={'title':_0x49e248(0x45e),'content':_0x49e248(0x49d),'type':_0x49e248(0x4d2)},_0xcb4c73={'permission_rejected':{'title':_0x49e248(0x403),'content':_0x49e248(0x4b0),'type':'error'},'license_unit_type_rejected':{'title':_0x49e248(0x456),'content':_0x49e248(0x434),'type':_0x49e248(0x4d2)},'remote_revert':{'title':_0x49e248(0x495),'content':_0x49e248(0x380),'type':'warning'}},_0xb0932f=class extends _0x583c0b[_0x49e248(0x330)]{constructor(_0x42e262,_0xbb74ed,_0x3d83b8,_0x11d1ee,_0x2b7235,_0x2de84c,_0x574a86,_0x211d99){const _0x32c892=_0x49e248;var _0x46f8ab;super(),this[_0x32c892(0x1d4)]=_0x42e262,this['_localCacheService']=_0xbb74ed,this['_collaborationUIEventService']=_0x3d83b8,this[_0x32c892(0x1d5)]=_0x11d1ee,this['_notificationService']=_0x2b7235,this[_0x32c892(0x253)]=_0x2de84c,this[_0x32c892(0x39a)]=_0x574a86,this['_configService']=_0x211d99,_0x30e4d4(this,_0x32c892(0x4a2),null),_0x30e4d4(this,'_retryingConflictCacheUnitIDs',new Set()),_0x30e4d4(this,_0x32c892(0x2b9),new Map()),_0x30e4d4(this,'_editingConnectionsExceededNotices',new Map()),this[_0x32c892(0x522)](),this[_0x32c892(0x212)](),this[_0x32c892(0x207)](),((_0x46f8ab=this[_0x32c892(0x3f8)][_0x32c892(0x2ac)](_0x32c892(0x427)))==null?void 0x0:_0x46f8ab[_0x32c892(0x502)])!==!0x1&&this[_0x32c892(0x27a)]();}[_0x49e248(0x224)](){const _0x1be56c=_0x49e248;var _0x3ea820;(_0x3ea820=this[_0x1be56c(0x4a2)])==null||_0x3ea820[_0x1be56c(0x224)](),this[_0x1be56c(0x4a2)]=null;for(let _0xd0e6c7 of[this['_saveTimedOutNotices'],this['_editingConnectionsExceededNotices']])_0xd0e6c7[_0x1be56c(0x1fe)](_0x2bf003=>_0x2bf003[_0x1be56c(0x224)]()),_0xd0e6c7[_0x1be56c(0x433)]();super[_0x1be56c(0x224)]();}[_0x49e248(0x207)](){const _0x295b6f=_0x49e248;let _0x2357ae=_0x27e089=>{const _0x41dae9=_0x2f4a;let _0x3b7b22=new _0x583c0b['DisposableCollection']();_0x3b7b22[_0x41dae9(0x4a9)]((0x0,_0x583c0b[_0x41dae9(0x292)])(_0x27e089[_0x41dae9(0x4ca)][_0x41dae9(0x26e)]({'next':_0x5d8351=>{const _0x3d3bb4=_0x41dae9;_0x5d8351[_0x3d3bb4(0x351)]>=0x4e20&&this[_0x3d3bb4(0x3fe)](this[_0x3d3bb4(0x2b9)],_0x27e089[_0x3d3bb4(0x337)],_0x3d3bb4(0x323)),_0x5d8351[_0x3d3bb4(0x3ac)]==='license_editing_connections_exceeded'&&this[_0x3d3bb4(0x3fe)](this[_0x3d3bb4(0x47e)],_0x27e089[_0x3d3bb4(0x337)],_0x3d3bb4(0x298));},'complete':()=>{const _0x66f907=_0x41dae9;this[_0x66f907(0x27e)](_0x27e089[_0x66f907(0x337)]),_0x3b7b22[_0x66f907(0x224)]();}}))),_0x3b7b22[_0x41dae9(0x4a9)]((0x0,_0x583c0b['toDisposable'])(_0x27e089[_0x41dae9(0x494)][_0x41dae9(0x26e)](_0x2aa1a5=>{const _0x471262=_0x41dae9;_0x2aa1a5!==_0x1134b1[_0x471262(0x3ea)][_0x471262(0x3b4)]&&_0x2aa1a5!==_0x1134b1[_0x471262(0x3ea)][_0x471262(0x4f7)]&&this[_0x471262(0x27e)](_0x27e089[_0x471262(0x337)]);}))),this[_0x41dae9(0x202)](_0x3b7b22);};this[_0x295b6f(0x39a)][_0x295b6f(0x255)]()[_0x295b6f(0x1fe)](_0x2357ae),this[_0x295b6f(0x202)]((0x0,_0x583c0b[_0x295b6f(0x292)])(this[_0x295b6f(0x39a)][_0x295b6f(0x432)][_0x295b6f(0x26e)](_0x2357ae)));}[_0x49e248(0x3fe)](_0x1f6f93,_0x1c52f5,_0x2bad45){const _0x399355=_0x49e248;_0x1f6f93[_0x399355(0x4ac)](_0x1c52f5)||_0x1f6f93['set'](_0x1c52f5,this[_0x399355(0x1d0)][_0x399355(0x48d)]({'title':this[_0x399355(0x253)]['t'](_0x2bad45),'type':_0x399355(0x2c1),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x40553e){const _0x54800d=_0x49e248;for(let _0x18de35 of[this[_0x54800d(0x2b9)],this[_0x54800d(0x47e)]]){var _0x467fb3;(_0x467fb3=_0x18de35['get'](_0x40553e))==null||_0x467fb3['dispose'](),_0x18de35[_0x54800d(0x489)](_0x40553e);}}['_setupBeforeClosingHandler'](){const _0x2852b3=_0x49e248;this[_0x2852b3(0x202)](this[_0x2852b3(0x1d4)][_0x2852b3(0x3b3)](()=>{const _0x62b0e8=_0x2852b3;if(this[_0x62b0e8(0x3c1)]['saveTaskMap'][_0x62b0e8(0x454)])return this[_0x62b0e8(0x253)]['t'](_0x62b0e8(0x46a));}));}[_0x49e248(0x27a)](){const _0x47e189=_0x49e248;let _0x3ce7a6=_0xab3aca=>{const _0x38eb34=_0x2f4a;this[_0x38eb34(0x202)]((0x0,_0x583c0b[_0x38eb34(0x292)])(_0xab3aca[_0x38eb34(0x4c4)][_0x38eb34(0x26e)](_0x1c89c6=>this[_0x38eb34(0x4c1)](_0x1c89c6))));};this['_collaborationController'][_0x47e189(0x255)]()[_0x47e189(0x1fe)](_0x3ce7a6),this['disposeWithMe']((0x0,_0x583c0b[_0x47e189(0x292)])(this[_0x47e189(0x39a)][_0x47e189(0x432)][_0x47e189(0x26e)](_0x3ce7a6)));}[_0x49e248(0x4c1)](_0xb58513){const _0x3d656a=_0x49e248;if(!_0xb58513[_0x3d656a(0x31a)])return;let _0x1cb3f3=_0xcb4c73[_0xb58513[_0x3d656a(0x3ac)]]??_0x4b3379;this['_replaceConflictNotification']({'title':this[_0x3d656a(0x253)]['t'](_0x1cb3f3[_0x3d656a(0x46e)]),'content':this[_0x3d656a(0x253)]['t'](_0x1cb3f3[_0x3d656a(0x312)]),'type':_0x1cb3f3[_0x3d656a(0x26d)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':_0x28564c,'action':{'label':this[_0x3d656a(0x253)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x103b9d=>{const _0x33c664=_0x3d656a;_0x103b9d[_0x33c664(0x32a)](),this[_0x33c664(0x4ef)]();}}});}[_0x49e248(0x4ef)](){const _0x33e73d=_0x49e248;window['location'][_0x33e73d(0x39d)]();}['_initEvent'](){const _0x4aa850=_0x49e248;this[_0x4aa850(0x202)](this[_0x4aa850(0x261)][_0x4aa850(0x287)]['subscribe'](_0x2b80eb=>{const _0x3b0657=_0x4aa850;_0x2b80eb['id']===_0x1134b1['CollaborationUIEventId'][_0x3b0657(0x358)]&&this[_0x3b0657(0x1d5)][_0x3b0657(0x48d)]({'type':_0x309bf7[_0x3b0657(0x205)][_0x3b0657(0x250)],'content':this['_localeService']['t'](_0x3b0657(0x49e))}),_0x2b80eb['id']===_0x1134b1['CollaborationUIEventId'][_0x3b0657(0x49c)]&&this[_0x3b0657(0x1d5)][_0x3b0657(0x48d)]({'type':_0x309bf7[_0x3b0657(0x205)][_0x3b0657(0x250)],'content':this[_0x3b0657(0x253)]['t'](_0x3b0657(0x40a))}),_0x2b80eb['id']===_0x1134b1['CollaborationUIEventId'][_0x3b0657(0x3ae)]&&this['_showConflictProcessingNotification'](),_0x2b80eb['id']===_0x1134b1[_0x3b0657(0x1bb)][_0x3b0657(0x4b9)]&&_0x2b80eb[_0x3b0657(0x337)]&&this[_0x3b0657(0x1c0)](_0x2b80eb['unitID'],_0x2b80eb[_0x3b0657(0x256)]??''),_0x2b80eb['id']===_0x1134b1['CollaborationUIEventId'][_0x3b0657(0x294)]&&this['_messageService']['show']({'type':_0x309bf7[_0x3b0657(0x205)]['Warning'],'content':this['_localeService']['t'](_0x2b80eb[_0x3b0657(0x353)]||'')}),_0x2b80eb['id']===_0x1134b1[_0x3b0657(0x1bb)][_0x3b0657(0x42e)]&&this[_0x3b0657(0x1d5)][_0x3b0657(0x48d)]({'type':_0x309bf7[_0x3b0657(0x205)][_0x3b0657(0x250)],'content':this['_localeService']['t'](_0x3b0657(0x4ae))}),_0x2b80eb['id']===_0x1134b1[_0x3b0657(0x1bb)][_0x3b0657(0x3cf)]&&this[_0x3b0657(0x1d5)][_0x3b0657(0x48d)]({'type':_0x309bf7[_0x3b0657(0x205)][_0x3b0657(0x501)],'content':this[_0x3b0657(0x253)]['t']('collaboration-client-ui.session.connection-failed')}),_0x2b80eb['id']===_0x1134b1[_0x3b0657(0x1bb)][_0x3b0657(0x2f7)]&&this[_0x3b0657(0x1d5)]['show']({'type':_0x309bf7['MessageType'][_0x3b0657(0x501)],'content':this[_0x3b0657(0x253)]['t'](_0x3b0657(0x27b))});}));}[_0x49e248(0x28d)](){const _0x59ee28=_0x49e248;this[_0x59ee28(0x247)]({'title':this[_0x59ee28(0x253)]['t'](_0x59ee28(0x45e)),'content':this[_0x59ee28(0x253)]['t']('collaboration-client-ui.conflict.processing'),'type':_0x59ee28(0x20f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x49e248(0x1c0)](_0x144561,_0x3cc0a9){const _0x405b72=_0x49e248;this[_0x405b72(0x247)]({'title':this[_0x405b72(0x253)]['t'](_0x405b72(0x45e)),'content':this[_0x405b72(0x253)]['t'](_0x405b72(0x20e)),'type':_0x405b72(0x4d2),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':_0x28564c,'action':{'label':this[_0x405b72(0x253)]['t'](_0x405b72(0x34c)),'onClick':_0x3ba9f8=>{const _0x28135e=_0x405b72;_0x3ba9f8[_0x28135e(0x32a)](),this['_retryConflictCacheClear'](_0x144561,_0x3cc0a9);}}});}[_0x49e248(0x29c)](_0x1cf03d,_0x4d1431){const _0x52b1da=_0x49e248;let _0x831d77=_0x1cf03d+':'+(_0x4d1431??'');this['_retryingConflictCacheUnitIDs']['has'](_0x831d77)||(this[_0x52b1da(0x457)][_0x52b1da(0x4a9)](_0x831d77),this[_0x52b1da(0x28d)](),this[_0x52b1da(0x3c1)]['clearOfflineData'](_0x1cf03d,_0x4d1431)[_0x52b1da(0x25c)](()=>this[_0x52b1da(0x4ef)]())['catch'](()=>this[_0x52b1da(0x1c0)](_0x1cf03d,_0x4d1431))['finally'](()=>this[_0x52b1da(0x457)][_0x52b1da(0x489)](_0x831d77)));}[_0x49e248(0x247)](_0x187781){const _0x39c510=_0x49e248;var _0x35ad9c;(_0x35ad9c=this['_conflictNotification'])==null||_0x35ad9c[_0x39c510(0x224)](),this['_conflictNotification']=this['_notificationService']['show'](_0x187781);}};_0xb0932f=_0x1403f0([_0x37fe1c(0x0,_0x132a23[_0x49e248(0x424)]),_0x37fe1c(0x1,_0x1134b1[_0x49e248(0x355)]),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1['CollaborationUIEventService'])),_0x37fe1c(0x3,_0x132a23[_0x49e248(0x504)]),_0x37fe1c(0x4,_0x132a23[_0x49e248(0x2da)]),_0x37fe1c(0x5,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x4be)])),_0x37fe1c(0x6,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1[_0x49e248(0x2d6)])),_0x37fe1c(0x7,_0x583c0b[_0x49e248(0x479)])],_0xb0932f);let _0x5caac0=class{constructor(_0x2be435,_0x4f66c6){const _0x498f86=_0x49e248;this[_0x498f86(0x23b)]=_0x2be435,this[_0x498f86(0x34a)]=_0x4f66c6;}[_0x49e248(0x2a1)](_0x86e8e0){const _0x5c040f=_0x49e248;this[_0x5c040f(0x37b)](_0x86e8e0),this[_0x5c040f(0x357)](_0x86e8e0);}[_0x49e248(0x2fd)](_0x33a74e){const _0x428d59=_0x49e248;let {unitID:_0x3b1a90}=_0x33a74e,{redoCache:_0x568a9f}=this[_0x428d59(0x34a)][_0x428d59(0x22d)](_0x3b1a90)[_0x428d59(0x2dd)](_0x594380[_0x428d59(0x32f)])[_0x428d59(0x300)]();if(_0x568a9f['length']===0x0)return _0x33a74e;let _0x149f3f=_0x583c0b[_0x428d59(0x39e)][_0x428d59(0x245)](_0x33a74e[_0x428d59(0x22c)][0x0]);for(let _0x46e728=0x0;_0x46e728<_0x568a9f[_0x428d59(0x40d)];_0x46e728++){let _0x32f119={'id':_0x428d59(0x2a6),'params':{..._0x568a9f[_0x46e728]}},_0xaff14a=this[_0x428d59(0x23b)][_0x428d59(0x505)](_0x149f3f,_0x32f119,!0x1);if((0x0,_0x3569c2[_0x428d59(0x487)])(_0xaff14a))throw _0xaff14a[_0x428d59(0x4d2)];_0x149f3f=_0xaff14a[_0x428d59(0x350)];}return{..._0x583c0b[_0x428d59(0x39e)][_0x428d59(0x245)](_0x33a74e),'mutations':[_0x149f3f]};}[_0x49e248(0x37b)](_0x5d6333){const _0xa10006=_0x49e248;let {unitID:_0x2157f3}=_0x5d6333,_0x12fd56=this[_0xa10006(0x34a)][_0xa10006(0x22d)](_0x2157f3)[_0xa10006(0x2dd)](_0x594380[_0xa10006(0x32f)]),{undoCache:_0x3dfb5d,redoCache:_0x110045}=_0x12fd56[_0xa10006(0x300)]();if(_0x3dfb5d[_0xa10006(0x40d)]===0x0||_0x110045[_0xa10006(0x40d)]===0x0)return;let _0x580fb8=[],_0x1c49fd=[],_0x2f2382=_0x583c0b[_0xa10006(0x39e)][_0xa10006(0x245)](_0x5d6333[_0xa10006(0x22c)][0x0]),_0x10df00=_0x583c0b[_0xa10006(0x39e)]['deepClone'](_0x5d6333['mutations'][0x0]);for(let _0x4668e7=_0x3dfb5d['length']-0x1;_0x4668e7>=0x0;_0x4668e7--){let _0x5359df={'id':'doc.mutation.rich-text-editing','params':{..._0x3dfb5d[_0x4668e7]}},_0xba22eb={'id':'doc.mutation.rich-text-editing','params':{..._0x110045[_0x4668e7]}},_0x2c903c=this[_0xa10006(0x23b)][_0xa10006(0x505)](_0x2f2382,_0x5359df,!0x1),_0x6f1d35=this['_transformService'][_0xa10006(0x505)](_0x10df00,_0xba22eb,!0x1);if((0x0,_0x3569c2[_0xa10006(0x487)])(_0x2c903c))throw _0x2c903c['error'];if((0x0,_0x3569c2['isTransformMutationFailure'])(_0x6f1d35))throw _0x6f1d35[_0xa10006(0x4d2)];_0x580fb8[_0xa10006(0x2a7)](_0x2c903c[_0xa10006(0x4eb)][_0xa10006(0x3ee)]),_0x1c49fd[_0xa10006(0x2a7)](_0x6f1d35[_0xa10006(0x4eb)][_0xa10006(0x3ee)]),_0x2f2382=_0x2c903c['m1Prime'],_0x10df00=_0x6f1d35['m1Prime'];}_0x12fd56[_0xa10006(0x2bb)]({'undoCache':_0x580fb8,'redoCache':_0x1c49fd});}['_transformPreviousActiveRange'](_0x2b5d2f){const _0x3046d1=_0x49e248;let {unitID:_0x32162c}=_0x2b5d2f,_0x237057=this[_0x3046d1(0x34a)][_0x3046d1(0x22d)](_0x32162c)[_0x3046d1(0x2dd)](_0x594380[_0x3046d1(0x32f)]),_0x471bc7=_0x237057[_0x3046d1(0x34f)]();if(_0x471bc7==null)return;let _0xe38742=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b5d2f[_0x3046d1(0x337)],'actions':null,'textRanges':[_0x471bc7]}}],_0x15f86a=this[_0x3046d1(0x23b)][_0x3046d1(0x45d)](_0x2b5d2f,_0xe38742);if(!(0x0,_0x3569c2['isTransformMutationsWithChangesetSuccess'])(_0x15f86a))throw _0x15f86a[_0x3046d1(0x4d2)];let _0x3117ef=_0x15f86a[_0x3046d1(0x4eb)][0x0][_0x3046d1(0x3ee)]['textRanges'];Array['isArray'](_0x3117ef)&&_0x3117ef['length']&&_0x237057[_0x3046d1(0x3e7)](_0x3117ef[0x0]);}};_0x5caac0=_0x1403f0([_0x37fe1c(0x0,_0x3569c2[_0x49e248(0x431)]),_0x37fe1c(0x1,_0x1f114e[_0x49e248(0x386)])],_0x5caac0);let _0x25f5e8=class{constructor(_0x4d77cc,_0x1a5f78,_0x57b7fd){const _0x1c172b=_0x49e248;this['_injector']=_0x4d77cc,this[_0x1c172b(0x23b)]=_0x1a5f78,this[_0x1c172b(0x273)]=_0x57b7fd;}[_0x49e248(0x513)](_0x5e63eb){this['_transformHistoryAndStateStack'](_0x5e63eb);}['transformRemoteChangeset'](_0x50ba75){const _0x2e8432=_0x49e248;let {unitID:_0x19dc85}=_0x50ba75,{collaboration:_0x13f6bd}=this[_0x2e8432(0x273)][_0x2e8432(0x451)](_0x19dc85);if(_0x13f6bd[_0x2e8432(0x40d)]===0x0)return _0x50ba75;let _0x4b7bd1=_0x583c0b[_0x2e8432(0x39e)][_0x2e8432(0x245)](_0x50ba75[_0x2e8432(0x22c)][0x0]);for(let _0x3ed4c8=0x0;_0x3ed4c8<_0x13f6bd[_0x2e8432(0x40d)];_0x3ed4c8++){let _0x57473a={'id':_0x2e8432(0x2a6),'params':{'unitId':_0x13f6bd[_0x3ed4c8]['unitId'],..._0x13f6bd[_0x3ed4c8][_0x2e8432(0x515)]}},_0xd966b5=this[_0x2e8432(0x23b)][_0x2e8432(0x505)](_0x4b7bd1,_0x57473a,!0x1);if((0x0,_0x3569c2[_0x2e8432(0x487)])(_0xd966b5))throw _0xd966b5['error'];_0x4b7bd1=_0xd966b5[_0x2e8432(0x350)];}return{..._0x583c0b[_0x2e8432(0x39e)][_0x2e8432(0x245)](_0x50ba75),'mutations':[_0x4b7bd1]};}['_transformHistoryAndStateStack'](_0x280b3a){const _0x4ac47a=_0x49e248;let {unitID:_0x5307f4}=_0x280b3a,{history:_0x8eb39b,collaboration:_0x1ef107}=this[_0x4ac47a(0x273)][_0x4ac47a(0x451)](_0x5307f4);if(_0x8eb39b['length']===0x0&&_0x1ef107[_0x4ac47a(0x40d)]===0x0)return;let _0x1d64e2=[],_0x33646d=[],_0x39ee1b=_0x583c0b[_0x4ac47a(0x39e)][_0x4ac47a(0x245)](_0x280b3a['mutations'][0x0]),_0x1935e1=_0x583c0b['Tools'][_0x4ac47a(0x245)](_0x280b3a[_0x4ac47a(0x22c)][0x0]);for(let _0x4b899f=_0x8eb39b[_0x4ac47a(0x40d)]-0x1;_0x4b899f>=0x0;_0x4b899f--){let _0x369361={'id':_0x4ac47a(0x2a6),'params':{'unitId':_0x8eb39b[_0x4b899f]['unitId'],..._0x8eb39b[_0x4b899f][_0x4ac47a(0x223)]}},_0x119f44={'id':_0x4ac47a(0x2a6),'params':{'unitId':_0x8eb39b[_0x4b899f][_0x4ac47a(0x437)],..._0x8eb39b[_0x4b899f][_0x4ac47a(0x515)]}},_0x303bad=this[_0x4ac47a(0x23b)][_0x4ac47a(0x505)](_0x39ee1b,_0x369361,!0x1),_0x1a3f40=this[_0x4ac47a(0x23b)][_0x4ac47a(0x505)](_0x1935e1,_0x119f44,!0x1);if((0x0,_0x3569c2[_0x4ac47a(0x487)])(_0x303bad))throw _0x303bad[_0x4ac47a(0x4d2)];if((0x0,_0x3569c2[_0x4ac47a(0x487)])(_0x1a3f40))throw _0x1a3f40[_0x4ac47a(0x4d2)];_0x1d64e2[_0x4ac47a(0x2a7)]({..._0x8eb39b[_0x4b899f],'undoState':_0x303bad[_0x4ac47a(0x4eb)][_0x4ac47a(0x3ee)],'redoState':_0x1a3f40[_0x4ac47a(0x4eb)][_0x4ac47a(0x3ee)]}),_0x39ee1b=_0x303bad[_0x4ac47a(0x350)],_0x1935e1=_0x1a3f40[_0x4ac47a(0x350)];}_0x39ee1b=_0x583c0b[_0x4ac47a(0x39e)]['deepClone'](_0x280b3a[_0x4ac47a(0x22c)][0x0]),_0x1935e1=_0x583c0b[_0x4ac47a(0x39e)][_0x4ac47a(0x245)](_0x280b3a[_0x4ac47a(0x22c)][0x0]);for(let _0x5d3468=_0x1ef107[_0x4ac47a(0x40d)]-0x1;_0x5d3468>=0x0;_0x5d3468--){let _0x317cf0={'id':_0x4ac47a(0x2a6),'params':{'unitId':_0x1ef107[_0x5d3468]['unitId'],..._0x1ef107[_0x5d3468][_0x4ac47a(0x223)]}},_0x410a63={'id':_0x4ac47a(0x2a6),'params':{'unitId':_0x1ef107[_0x5d3468]['unitId'],..._0x1ef107[_0x5d3468][_0x4ac47a(0x515)]}},_0xaee6c4=this[_0x4ac47a(0x23b)][_0x4ac47a(0x505)](_0x39ee1b,_0x317cf0,!0x1),_0x13d577=this[_0x4ac47a(0x23b)]['transformMutation'](_0x1935e1,_0x410a63,!0x1);if((0x0,_0x3569c2[_0x4ac47a(0x487)])(_0xaee6c4))throw _0xaee6c4[_0x4ac47a(0x4d2)];if((0x0,_0x3569c2[_0x4ac47a(0x487)])(_0x13d577))throw _0x13d577[_0x4ac47a(0x4d2)];_0x33646d[_0x4ac47a(0x2a7)]({..._0x1ef107[_0x5d3468],'undoState':_0xaee6c4['m2Prime'][_0x4ac47a(0x3ee)],'redoState':_0x13d577[_0x4ac47a(0x4eb)][_0x4ac47a(0x3ee)]}),_0x39ee1b=_0xaee6c4[_0x4ac47a(0x350)],_0x1935e1=_0x13d577[_0x4ac47a(0x350)];}this[_0x4ac47a(0x273)][_0x4ac47a(0x309)](_0x5307f4,{'history':_0x1d64e2,'collaboration':_0x33646d});}};_0x25f5e8=_0x1403f0([_0x37fe1c(0x0,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b['Injector'])),_0x37fe1c(0x1,_0x3569c2[_0x49e248(0x431)]),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x574cdb['DocStateChangeManagerService']))],_0x25f5e8);let _0x16800c=class{constructor(_0x4bdd8c,_0x1a6173){const _0x81e680=_0x49e248;this[_0x81e680(0x279)]=_0x4bdd8c,this[_0x81e680(0x23b)]=_0x1a6173;}[_0x49e248(0x519)](_0x518a0a){const _0x2fd69d=_0x49e248;var _0x191fce;let _0x2babca=this[_0x2fd69d(0x279)][_0x2fd69d(0x1b6)]()??[],_0x1a494e=this[_0x2fd69d(0x279)][_0x2fd69d(0x219)]();if(_0x2babca[_0x2fd69d(0x40d)]===0x0||_0x1a494e==null)return null;let _0x732a40=_0x518a0a['unitID'],_0x5d6dec=[{'id':_0x2fd69d(0x2a6),'params':{'unitId':_0x732a40,'actions':null,'textRanges':_0x2babca}}],_0x3340a1=this['_transformService']['transformMutationsWithChangeset'](_0x518a0a,_0x5d6dec);if(!(0x0,_0x3569c2[_0x2fd69d(0x459)])(_0x3340a1))throw _0x3340a1[_0x2fd69d(0x4d2)];let _0x551aa6=(_0x191fce=_0x3340a1[_0x2fd69d(0x4eb)][0x0])==null?void 0x0:_0x191fce[_0x2fd69d(0x3ee)],_0x3459da=_0x551aa6&&typeof _0x551aa6==_0x2fd69d(0x46c)&&'textRanges'in _0x551aa6?_0x551aa6[_0x2fd69d(0x20c)]:null;if(!_0x1b27b6(_0x3459da))return null;let _0xc376da=_0x4d9c4c(_0x518a0a['mutations'][_0x2fd69d(0x361)](_0x5d1c1a=>_0x28c54c(_0x5d1c1a[_0x2fd69d(0x3ee)]))?_0x3459da[_0x2fd69d(0x28f)](_0x1d4dac=>!(_0x2fd69d(0x466)in _0x1d4dac)):_0x3459da,{..._0x1a494e,'options':_0x1a494e[_0x2fd69d(0x485)]?{..._0x1a494e[_0x2fd69d(0x485)],'wholeDocument':!0x1}:void 0x0}),_0x41ad46={'unitId':_0x732a40,'subUnitId':_0x732a40};this[_0x2fd69d(0x279)][_0x2fd69d(0x3fb)](_0xc376da,_0x41ad46);let _0x2581d1=!0x0;return{'commit':()=>{_0x2581d1=!0x1;},'rollback':()=>{const _0x95b851=_0x2fd69d;_0x2581d1&&(_0x2581d1=!0x1,this[_0x95b851(0x279)][_0x95b851(0x3fb)](_0x1a494e,_0x41ad46));}};}};_0x16800c=_0x1403f0([_0x37fe1c(0x0,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x574cdb[_0x49e248(0x322)])),_0x37fe1c(0x1,_0x3569c2['ITransformService'])],_0x16800c);function _0x4d9c4c(_0x30f677,_0x1092a7){const _0x4135f2=_0x49e248;let _0x5707c2=[],_0xf592fc=[];for(let _0x4c94e4 of _0x30f677)_0xd09db6(_0x4c94e4)?_0xf592fc[_0x4135f2(0x4ce)](_0x4c94e4):_0x5707c2['push'](_0x4c94e4);return{..._0x1092a7,'textRanges':_0x5707c2,'rectRanges':_0xf592fc};}function _0xd09db6(_0x1f59ed){const _0x40b971=_0x49e248;return _0x40b971(0x466)in _0x1f59ed;}function _0x1b27b6(_0x18f2ea){const _0x5308c5=_0x49e248;return Array[_0x5308c5(0x3c7)](_0x18f2ea)&&_0x18f2ea[_0x5308c5(0x1e0)](_0x1071aa=>typeof _0x1071aa==_0x5308c5(0x46c)&&!!_0x1071aa&&_0x5308c5(0x1f3)in _0x1071aa&&_0x5308c5(0x2ec)in _0x1071aa);}function _0x28c54c(_0xd53229){const _0x4be0f1=_0x49e248;return _0xd53229==='tableSource'?!0x0:Array[_0x4be0f1(0x3c7)](_0xd53229)?_0xd53229[_0x4be0f1(0x361)](_0x4ed54b=>_0x28c54c(_0x4ed54b)):!_0xd53229||typeof _0xd53229!=_0x4be0f1(0x46c)?!0x1:Object['values'](_0xd53229)[_0x4be0f1(0x361)](_0x5006ca=>_0x28c54c(_0x5006ca));}let _0x38b01a=class extends _0x583c0b[_0x49e248(0x330)]{constructor(_0x53573e,_0x57a123,_0x2ad988,_0x5d27b0,_0x11a18d,_0x50debf,_0x46f7d4){const _0x2a412a=_0x49e248;super(),this[_0x2a412a(0x39a)]=_0x53573e,this[_0x2a412a(0x31f)]=_0x57a123,this[_0x2a412a(0x2ff)]=_0x2ad988,this[_0x2a412a(0x44a)]=_0x5d27b0,this[_0x2a412a(0x1da)]=_0x11a18d,this[_0x2a412a(0x1d5)]=_0x50debf,this[_0x2a412a(0x253)]=_0x46f7d4,_0x30e4d4(this,_0x2a412a(0x38a),new _0x40bd7a['BehaviorSubject'](_0x1134b1[_0x2a412a(0x3ea)][_0x2a412a(0x461)])),this[_0x2a412a(0x38f)]();}['_initEntityListener'](){const _0x4b7e62=_0x49e248;this[_0x4b7e62(0x202)](this[_0x4b7e62(0x39a)][_0x4b7e62(0x432)][_0x4b7e62(0x26e)](_0x2c0d1e=>{const _0x1ceb87=_0x4b7e62;_0x2c0d1e instanceof _0x1134b1['DocCollaborationEntity']&&_0x2c0d1e['addHandlerCallback']({'onTransformIME':_0x22eff1=>this[_0x1ceb87(0x31f)][_0x1ceb87(0x2a1)](_0x22eff1),'onTransformState':_0x4c8890=>this[_0x1ceb87(0x2ff)][_0x1ceb87(0x513)](_0x4c8890),'onPrepareTransformSelections':_0x28def6=>this[_0x1ceb87(0x44a)][_0x1ceb87(0x519)](_0x28def6),'onSyncEditingCollabCursor':_0x370a60=>this[_0x1ceb87(0x1da)][_0x1ceb87(0x4b3)](_0x370a60),'onTransformRemoteChangesetByIMECache':_0x89f5a3=>this['_docTransformIMECacheService'][_0x1ceb87(0x2fd)](_0x89f5a3),'onTransformRemoteChangesetByStateCache':_0x580412=>this[_0x1ceb87(0x2ff)][_0x1ceb87(0x2fd)](_0x580412)});}));}};_0x38b01a=_0x1403f0([_0x37fe1c(0x0,(0x0,_0x583c0b['Inject'])(_0x1134b1[_0x49e248(0x2d6)])),_0x37fe1c(0x1,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x5caac0)),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x25f5e8)),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x16800c)),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x24bfb8)),_0x37fe1c(0x5,_0x132a23['IMessageService']),_0x37fe1c(0x6,(0x0,_0x583c0b['Inject'])(_0x583c0b[_0x49e248(0x4be)]))],_0x38b01a);let _0x2e0e89=class extends _0x583c0b['Disposable']{constructor(_0x27ad8d,_0x4eb450,_0x36391f,_0x463d19){const _0x266688=_0x49e248;super(),this[_0x266688(0x51b)]=_0x27ad8d,this[_0x266688(0x28b)]=_0x4eb450,this[_0x266688(0x30a)]=_0x36391f,this[_0x266688(0x46b)]=_0x463d19,_0x30e4d4(this,_0x266688(0x339),void 0x0),this['_init']();}[_0x49e248(0x3e1)](){const _0x461876=_0x49e248;this[_0x461876(0x278)](),this[_0x461876(0x4e3)](),this[_0x461876(0x21c)](),this[_0x461876(0x4ad)]();}['_initUserListener'](){const _0x1de3b4=_0x49e248;this['disposeWithMe'](this[_0x1de3b4(0x46b)][_0x1de3b4(0x3d5)][_0x1de3b4(0x26e)](_0x381128=>{const _0x1e0631=_0x1de3b4;this['_memberID']=_0x381128==null?void 0x0:_0x381128[_0x1e0631(0x4fb)];}));}['_initWindowErrorListener'](){const _0x48dbad=_0x49e248;let _0x2ee28c=_0x27f087=>{const _0x33887b=_0x2f4a;var _0x10e927;this[_0x33887b(0x1e1)]('error','[Window\x20Error]:\x20'+_0x27f087[_0x33887b(0x43d)]+_0x33887b(0x254)+_0x27f087[_0x33887b(0x29b)]+':'+_0x27f087[_0x33887b(0x2b8)]+':'+_0x27f087[_0x33887b(0x217)]+'\x0a'+(((_0x10e927=_0x27f087[_0x33887b(0x4d2)])==null?void 0x0:_0x10e927[_0x33887b(0x1b8)])||''));};window[_0x48dbad(0x1f1)](_0x48dbad(0x4d2),_0x2ee28c),this[_0x48dbad(0x202)](()=>{const _0x56d48=_0x48dbad;window[_0x56d48(0x43b)]('error',_0x2ee28c);});}[_0x49e248(0x4e3)](){const _0x99726e=_0x49e248;let _0x335c1b=_0x12f3a2=>{const _0x21b6a4=_0x2f4a;this[_0x21b6a4(0x1e1)](_0x21b6a4(0x4d2),'[Unhandled\x20Rejection]:\x20'+_0x12f3a2[_0x21b6a4(0x3ac)]);};window[_0x99726e(0x1f1)](_0x99726e(0x4b1),_0x335c1b),this[_0x99726e(0x202)](()=>{const _0x33d08a=_0x99726e;window[_0x33d08a(0x43b)](_0x33d08a(0x4b1),_0x335c1b);});}[_0x49e248(0x21c)](){const _0x5c1e2c=_0x49e248;let _0x2e6553=this['_logService'][_0x5c1e2c(0x4d2)][_0x5c1e2c(0x3e9)](this['_logService']);this[_0x5c1e2c(0x30a)]['error']=(..._0x18b7ba)=>{const _0x18dd56=_0x5c1e2c;let _0x4a19dc=_0x18b7ba['map'](_0x478268=>_0x478268 instanceof Error?_0x478268[_0x18dd56(0x43d)]+'\x0a'+_0x478268[_0x18dd56(0x1b8)]:String(_0x478268))['join']('\x20');this[_0x18dd56(0x1e1)](_0x18dd56(0x4d2),'[LogService\x20Error]:\x20'+_0x4a19dc),_0x2e6553(..._0x18b7ba);},this[_0x5c1e2c(0x202)](()=>{const _0x3b4641=_0x5c1e2c;this[_0x3b4641(0x30a)]['error']=_0x2e6553;});}[_0x49e248(0x1e1)](_0x145594,_0x110ae6){const _0x336109=_0x49e248;try{let _0x48e856={'userId':this['_memberID'],'logLabel':_0x145594,'content':_0x110ae6};this['_httpService'][_0x336109(0x259)](_0x336109(0x329),{'body':_0x48e856})[_0x336109(0x1e4)](()=>{});}catch{}}};_0x2e0e89=_0x1403f0([_0x37fe1c(0x0,(0x0,_0x583c0b['Inject'])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x1,(0x0,_0x583c0b['Inject'])(_0x55fd99[_0x49e248(0x527)])),_0x37fe1c(0x2,_0x583c0b['ILogService']),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x1134b1[_0x49e248(0x4c0)]))],_0x2e0e89);function _0x2efb61({state$:_0x2777af}){const _0x490656=_0x49e248;let _0x8dd3e5=(0x0,_0x132a23[_0x490656(0x204)])(_0x2777af,null,!0x0);return _0x8dd3e5?(0x0,_0x4a8b3a[_0x490656(0x2f2)])('div',{'data-u-comp':_0x490656(0x3c0),'role':_0x490656(0x3d6),'className':_0x490656(0x3ff),'children':[(0x0,_0x4a8b3a['jsx'])(_0x2e2313,{'className':_0x490656(0x439)}),(0x0,_0x4a8b3a['jsx'])(_0x490656(0x452),{'children':_0x8dd3e5[_0x490656(0x312)]}),(0x0,_0x4a8b3a[_0x490656(0x30e)])(_0x309bf7[_0x490656(0x2b1)],{'size':_0x490656(0x2c5),'variant':_0x490656(0x397),'onClick':()=>window[_0x490656(0x1f4)][_0x490656(0x39d)](),'children':_0x8dd3e5[_0x490656(0x307)]})]}):null;}let _0x50fbce=_0x49e248(0x308),_0x70594e=class extends _0x583c0b[_0x49e248(0x330)]{constructor(_0x5af17e,_0x2f6b67,_0x56088f,_0x1fc0cc,_0x5d08e2){const _0x2669c9=_0x49e248;super(),this['_snapshotLoadingService']=_0x5af17e,this[_0x2669c9(0x1d5)]=_0x2f6b67,this[_0x2669c9(0x253)]=_0x56088f,this[_0x2669c9(0x51b)]=_0x1fc0cc,_0x30e4d4(this,_0x2669c9(0x2e9),new _0x40bd7a[(_0x2669c9(0x2d8))](null)),_0x30e4d4(this,_0x2669c9(0x51d),new Set()),_0x30e4d4(this,_0x2669c9(0x52b),new Map()),_0x30e4d4(this,_0x2669c9(0x342),this[_0x2669c9(0x2e9)][_0x2669c9(0x35c)]());let _0x37c73f=()=>(0x0,_0x419824[_0x2669c9(0x48c)])(_0x2efb61,{'state$':this[_0x2669c9(0x342)]});this[_0x2669c9(0x202)](_0x5d08e2[_0x2669c9(0x1f2)](_0x132a23[_0x2669c9(0x271)][_0x2669c9(0x3e2)],()=>(0x0,_0x132a23[_0x2669c9(0x2cf)])(_0x37c73f,this[_0x2669c9(0x51b)]))),this[_0x2669c9(0x202)](this[_0x2669c9(0x4f1)][_0x2669c9(0x428)][_0x2669c9(0x26e)](_0x1c1945=>{const _0x561592=_0x2669c9;_0x1c1945[_0x561592(0x1fe)](_0x15ef02=>this[_0x561592(0x523)](_0x15ef02));}));}['dispose'](){const _0x178810=_0x49e248;this[_0x178810(0x51d)][_0x178810(0x1fe)](_0x36f041=>this['_messageService'][_0x178810(0x29a)](_0x36f041)),this[_0x178810(0x51d)][_0x178810(0x433)](),this['_blockProgressWatches'][_0x178810(0x1fe)](({timeoutId:_0x297318})=>clearTimeout(_0x297318)),this[_0x178810(0x52b)][_0x178810(0x433)](),this[_0x178810(0x2e9)][_0x178810(0x4cb)](),super[_0x178810(0x224)]();}[_0x49e248(0x523)](_0x4b6781){const _0x385467=_0x49e248;let _0x3bb3b7=''+_0x50fbce+_0x4b6781[_0x385467(0x437)];_0x4b6781[_0x385467(0x493)]===_0x3569c2['SnapshotLoadStage'][_0x385467(0x30b)]?(this[_0x385467(0x25a)](_0x4b6781[_0x385467(0x437)]),this[_0x385467(0x510)](_0x4b6781[_0x385467(0x437)]),this[_0x385467(0x1d5)][_0x385467(0x29a)](_0x3bb3b7),this['_messageIds'][_0x385467(0x489)](_0x3bb3b7)):_0x4b6781[_0x385467(0x493)]===_0x3569c2[_0x385467(0x4af)][_0x385467(0x3d2)]?(this[_0x385467(0x25a)](_0x4b6781['unitId']),this[_0x385467(0x510)](_0x4b6781[_0x385467(0x437)]),this[_0x385467(0x1d5)][_0x385467(0x48d)]({'id':_0x3bb3b7,'type':_0x309bf7['MessageType']['Error'],'content':this[_0x385467(0x253)]['t'](_0x385467(0x422))}),this[_0x385467(0x51d)][_0x385467(0x489)](_0x3bb3b7)):_0x4b6781[_0x385467(0x493)]!==_0x3569c2[_0x385467(0x4af)][_0x385467(0x238)]||_0x4b6781[_0x385467(0x4ff)]<=0xa?(this[_0x385467(0x25a)](_0x4b6781[_0x385467(0x437)]),this[_0x385467(0x1d5)]['remove'](_0x3bb3b7),this['_messageIds'][_0x385467(0x489)](_0x3bb3b7)):this['_watchBlockProgress'](_0x4b6781)||(this[_0x385467(0x1d5)][_0x385467(0x48d)]({'id':_0x3bb3b7,'type':_0x309bf7[_0x385467(0x205)][_0x385467(0x3b7)],'duration':0x1/0x0,'content':this[_0x385467(0x253)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x4b6781[_0x385467(0x1eb)]+'/'+_0x4b6781[_0x385467(0x4ff)]}),this[_0x385467(0x51d)][_0x385467(0x4a9)](_0x3bb3b7));}[_0x49e248(0x240)](_0x4a48ad){const _0x10df69=_0x49e248;let _0x1ad7a4=this[_0x10df69(0x52b)][_0x10df69(0x3e3)](_0x4a48ad[_0x10df69(0x437)]);if((_0x1ad7a4==null?void 0x0:_0x1ad7a4['loadedBlocks'])===_0x4a48ad['loadedBlocks'])return _0x1ad7a4[_0x10df69(0x412)];this['_clearBlockProgressWatch'](_0x4a48ad[_0x10df69(0x437)]);let _0x1aa7fc=setTimeout(()=>{const _0x517850=_0x10df69;let _0x55e485=this[_0x517850(0x52b)][_0x517850(0x3e3)](_0x4a48ad[_0x517850(0x437)]);if(!_0x55e485||_0x55e485['timeoutId']!==_0x1aa7fc)return;_0x55e485[_0x517850(0x412)]=!0x0;let _0x38b97a=''+_0x50fbce+_0x4a48ad['unitId'];this[_0x517850(0x1d5)][_0x517850(0x29a)](_0x38b97a),this['_messageIds']['delete'](_0x38b97a),this[_0x517850(0x2e9)]['next']({'unitId':_0x4a48ad[_0x517850(0x437)],'content':this[_0x517850(0x253)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x4a48ad[_0x517850(0x1eb)]),String(_0x4a48ad[_0x517850(0x4ff)])),'refreshLabel':this[_0x517850(0x253)]['t'](_0x517850(0x3ce))});},0xea60);return this[_0x10df69(0x52b)][_0x10df69(0x345)](_0x4a48ad[_0x10df69(0x437)],{'loadedBlocks':_0x4a48ad[_0x10df69(0x1eb)],'timedOut':!0x1,'timeoutId':_0x1aa7fc}),!0x1;}[_0x49e248(0x25a)](_0x26eb6d){const _0x4315bb=_0x49e248;let _0x434c0a=this['_blockProgressWatches'][_0x4315bb(0x3e3)](_0x26eb6d);_0x434c0a&&(clearTimeout(_0x434c0a[_0x4315bb(0x3e8)]),this['_blockProgressWatches'][_0x4315bb(0x489)](_0x26eb6d),this[_0x4315bb(0x510)](_0x26eb6d));}[_0x49e248(0x510)](_0x354276){const _0x7cf0bd=_0x49e248;var _0x11123d;((_0x11123d=this[_0x7cf0bd(0x2e9)][_0x7cf0bd(0x3b6)])==null?void 0x0:_0x11123d[_0x7cf0bd(0x437)])===_0x354276&&this['_timeoutState$'][_0x7cf0bd(0x2c6)](null);}};_0x70594e=_0x1403f0([_0x37fe1c(0x0,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x3569c2[_0x49e248(0x448)])),_0x37fe1c(0x1,_0x132a23[_0x49e248(0x504)]),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x4be)])),_0x37fe1c(0x3,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x4,_0x132a23[_0x49e248(0x216)])],_0x70594e);let _0x2306d0=class extends _0x583c0b['Disposable']{constructor(_0x363ee9,_0x2a3eb8,_0x491f64,_0x197f68,_0x213e13){const _0x5085ec=_0x49e248;var _0x2c33ab;super(),this[_0x5085ec(0x3f8)]=_0x363ee9,this[_0x5085ec(0x328)]=_0x2a3eb8,this[_0x5085ec(0x281)]=_0x491f64,this[_0x5085ec(0x30a)]=_0x197f68,this[_0x5085ec(0x218)]=_0x213e13,_0x30e4d4(this,_0x5085ec(0x4cd),new Map()),_0x30e4d4(this,_0x5085ec(0x4f8),new Map()),_0x30e4d4(this,_0x5085ec(0x500),new Map()),_0x30e4d4(this,_0x5085ec(0x2be),!0x1),this[_0x5085ec(0x2be)]=!((_0x2c33ab=this[_0x5085ec(0x3f8)][_0x5085ec(0x2ac)](_0x1134b1[_0x5085ec(0x391)]))!=null&&_0x2c33ab[_0x5085ec(0x3f9)]);}[_0x49e248(0x319)](){const _0x4f6b3f=_0x49e248;this[_0x4f6b3f(0x2be)]=!0x0;}[_0x49e248(0x383)](){this['_disabled']=!0x1;}get[_0x49e248(0x367)](){const _0x982ae3=_0x49e248;let _0x2f4d13=new Map(this[_0x982ae3(0x4f8)]);return this['_activeSaveTaskMap'][_0x982ae3(0x1fe)]((_0x3f5f5c,_0x6e1939)=>{const _0x4ba129=_0x982ae3;_0x2f4d13[_0x4ba129(0x4ac)](_0x6e1939)||_0x2f4d13['set'](_0x6e1939,0x0);}),_0x2f4d13;}[_0x49e248(0x224)](){const _0x30cd36=_0x49e248;this[_0x30cd36(0x43c)]||(super[_0x30cd36(0x224)](),this['_disabled']=!0x0,this[_0x30cd36(0x2e3)]()[_0x30cd36(0x1e4)](_0x29e83b=>this['_logService']['error'](_0x29e83b)));}async[_0x49e248(0x44d)](_0x57e4e7,_0x4e3504){const _0x48bfb7=_0x49e248;if(this[_0x48bfb7(0x2be)])return null;let _0x3bf827=this[_0x48bfb7(0x369)](_0x4e3504),_0x54eecd=await this[_0x48bfb7(0x328)][_0x48bfb7(0x497)]((0x0,_0x1134b1['getLocalCacheKey'])(_0x57e4e7,_0x3bf827));return(_0x54eecd==null?void 0x0:_0x54eecd[_0x48bfb7(0x337)])===_0x57e4e7&&this[_0x48bfb7(0x392)](_0x54eecd[_0x48bfb7(0x256)])===_0x3bf827?_0x54eecd:null;}async[_0x49e248(0x206)](_0x4a1ef7,_0x13c36d,_0x49c342){const _0x49abb6=_0x49e248;let _0x30d0e4=this[_0x49abb6(0x369)](_0x49c342),_0x53433b=(0x0,_0x1134b1['getLocalCacheKey'])(_0x4a1ef7,_0x30d0e4),_0x5904a7=this[_0x49abb6(0x328)][_0x49abb6(0x3d8)](_0x53433b,{..._0x13c36d,'unitID':_0x4a1ef7,'userId':_0x30d0e4});return this[_0x49abb6(0x242)](_0x53433b,_0x5904a7),!!await _0x5904a7;}async['backupOfflineData'](_0xa78489,_0x1d1793,_0x4fcd3c){const _0x3b2a44=_0x49e248;let _0x4b4d34=this['_getUserId'](_0x4fcd3c),_0x3db54b=(0x0,_0x1134b1[_0x3b2a44(0x441)])(_0xa78489,_0x4b4d34),_0x3d4d33=this[_0x3b2a44(0x4cd)][_0x3b2a44(0x3e3)](_0x3db54b)??await this['_localStorageService'][_0x3b2a44(0x497)](_0x3db54b);if(!_0x3d4d33||this[_0x3b2a44(0x392)](_0x3d4d33[_0x3b2a44(0x256)])!==_0x4b4d34||_0x3d4d33['unitID']!==_0xa78489)return;let _0x246d96=Date['now'](),_0x2d4178=new Date(_0x246d96)[_0x3b2a44(0x1b7)]();await this[_0x3b2a44(0x328)]['setItem'](_0x3db54b+_0x3b2a44(0x3e0)+_0x246d96,{'reason':_0x1d1793,'createdAt':_0x2d4178,'data':_0x3d4d33});}async[_0x49e248(0x333)](_0x2be8eb,_0x30a19b){const _0x16e789=_0x49e248;let _0x564d9c=this[_0x16e789(0x369)](_0x30a19b),_0x1cb1a5=(0x0,_0x1134b1[_0x16e789(0x441)])(_0x2be8eb,_0x564d9c),_0x19244e=this[_0x16e789(0x4f8)][_0x16e789(0x3e3)](_0x1cb1a5);_0x19244e!==void 0x0&&(window[_0x16e789(0x473)](_0x19244e),this[_0x16e789(0x4f8)]['delete'](_0x1cb1a5));let _0x20be0e=this[_0x16e789(0x500)][_0x16e789(0x3e3)](_0x1cb1a5);_0x20be0e&&await Promise[_0x16e789(0x42c)](_0x20be0e),this[_0x16e789(0x4cd)][_0x16e789(0x489)](_0x1cb1a5),await this[_0x16e789(0x328)]['removeItem'](_0x1cb1a5);}[_0x49e248(0x465)](_0x554f05,_0x5d76df,_0xabbfbb,_0x1097c6,_0x11cc04){const _0x260d02=_0x49e248;if(this['_disposed'])return;let _0x15c91b=this[_0x260d02(0x369)](_0x11cc04),_0x13964b=(0x0,_0x1134b1[_0x260d02(0x441)])(_0x554f05,_0x15c91b),_0x5c680d=this[_0x260d02(0x281)][_0x260d02(0x3e6)](_0x554f05);this[_0x260d02(0x4cd)]['set'](_0x13964b,{'unitID':_0x554f05,'userId':_0x15c91b,'type':_0x5d76df,'awaitingChangeset':_0xabbfbb,'mutations':_0x1097c6,'rev':_0x5c680d}),this[_0x260d02(0x4f8)]['has'](_0x13964b)||this[_0x260d02(0x2ee)](_0x13964b);}[_0x49e248(0x369)](_0xea8d9d=((()=>{const _0x332b52=_0x49e248;var _0x355a34;return(_0x355a34=this[_0x332b52(0x218)][_0x332b52(0x3e4)]())==null?void 0x0:_0x355a34['userID'];})())){return this['_normalizeUserId'](_0xea8d9d);}[_0x49e248(0x392)](_0x2823c1){return _0x2823c1===''||_0x2823c1==null?void 0x0:_0x2823c1;}[_0x49e248(0x2ee)](_0x4ca023){const _0x3bb0d6=_0x49e248;let _0x310f10=this[_0x3bb0d6(0x4cf)]();_0x310f10===0x0?this[_0x3bb0d6(0x1cc)](_0x4ca023)[_0x3bb0d6(0x1e4)](_0xb5cd11=>this['_logService'][_0x3bb0d6(0x4d2)](_0xb5cd11)):this[_0x3bb0d6(0x4f8)][_0x3bb0d6(0x345)](_0x4ca023,window[_0x3bb0d6(0x2f8)](()=>{const _0x4bd393=_0x3bb0d6;this[_0x4bd393(0x1cc)](_0x4ca023)[_0x4bd393(0x1e4)](_0x119436=>this[_0x4bd393(0x30a)][_0x4bd393(0x4d2)](_0x119436));},_0x310f10));}[_0x49e248(0x4cf)](){const _0x1fc85b=_0x49e248;return this['_configService'][_0x1fc85b(0x2ac)](_0x1134b1[_0x1fc85b(0x43e)])??_0x1134b1[_0x1fc85b(0x3dd)];}[_0x49e248(0x1cc)](_0x22414f){const _0xb674e6=_0x49e248;let _0x12eb09=this[_0xb674e6(0x4f8)][_0xb674e6(0x3e3)](_0x22414f);_0x12eb09!==void 0x0&&window['clearTimeout'](_0x12eb09);let _0x5d2755=this[_0xb674e6(0x4cd)]['get'](_0x22414f);if(!_0x5d2755)return Promise[_0xb674e6(0x44f)]();let _0x4df50e=this[_0xb674e6(0x500)][_0xb674e6(0x3e3)](_0x22414f),_0x4f0e48=Promise['allSettled'](_0x4df50e?[..._0x4df50e]:[])[_0xb674e6(0x25c)](()=>this['_localStorageService']['setItem'](_0x22414f,_0x5d2755))[_0xb674e6(0x25c)](()=>{const _0x345a7c=_0xb674e6;_0x12eb09!==void 0x0&&this['_saveTaskMap'][_0x345a7c(0x3e3)](_0x22414f)===_0x12eb09&&(this[_0x345a7c(0x4f8)][_0x345a7c(0x489)](_0x22414f),!this['_disposed']&&this[_0x345a7c(0x4cd)][_0x345a7c(0x3e3)](_0x22414f)!==_0x5d2755&&this[_0x345a7c(0x2ee)](_0x22414f));});return this[_0xb674e6(0x242)](_0x22414f,_0x4f0e48),_0x4f0e48;}[_0x49e248(0x242)](_0x5c9385,_0x2674d5){const _0x3d617a=_0x49e248;let _0x52ee2e=this[_0x3d617a(0x500)][_0x3d617a(0x3e3)](_0x5c9385);_0x52ee2e||(_0x52ee2e=new Set(),this[_0x3d617a(0x500)][_0x3d617a(0x345)](_0x5c9385,_0x52ee2e)),_0x52ee2e[_0x3d617a(0x4a9)](_0x2674d5);let _0x33ffba=()=>{const _0x1d1bf3=_0x3d617a;_0x52ee2e['delete'](_0x2674d5),_0x52ee2e[_0x1d1bf3(0x454)]===0x0&&this[_0x1d1bf3(0x500)][_0x1d1bf3(0x489)](_0x5c9385);};_0x2674d5[_0x3d617a(0x25c)](_0x33ffba,_0x33ffba);}async[_0x49e248(0x2e3)](){const _0x5651f3=_0x49e248;let _0x344486=[...this[_0x5651f3(0x4f8)][_0x5651f3(0x3d1)]()]['map'](_0x1d4c19=>this[_0x5651f3(0x1cc)](_0x1d4c19));for(let _0x46f584 of this['_activeSaveTaskMap'][_0x5651f3(0x1ef)]())_0x344486['push'](...[..._0x46f584][_0x5651f3(0x4f0)](_0x38c9ab=>_0x38c9ab['then'](()=>void 0x0)));await Promise['all'](_0x344486);}};_0x2306d0=_0x1403f0([_0x37fe1c(0x0,_0x583c0b[_0x49e248(0x479)]),_0x37fe1c(0x1,_0x583c0b['ILocalStorageService']),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x3569c2[_0x49e248(0x48e)])),_0x37fe1c(0x3,_0x583c0b[_0x49e248(0x26a)]),_0x37fe1c(0x4,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b['UserManagerService']))],_0x2306d0);var _0x47ee93=class extends _0x583c0b[_0x49e248(0x330)]{get['online'](){const _0x59f0c1=_0x49e248;return this['_online$'][_0x59f0c1(0x4d3)]();}constructor(){const _0x572bbb=_0x49e248;super(),_0x30e4d4(this,'_online$',new _0x40bd7a[(_0x572bbb(0x2d8))](navigator['onLine'])),_0x30e4d4(this,_0x572bbb(0x20d),this[_0x572bbb(0x251)]['asObservable']()),this[_0x572bbb(0x3a6)](),this[_0x572bbb(0x3dc)]();}[_0x49e248(0x224)](){super['dispose'](),this['_online$']['complete']();}[_0x49e248(0x3dc)](){const _0x199a97=_0x49e248;this[_0x199a97(0x202)]((0x0,_0x40bd7a[_0x199a97(0x252)])((0x0,_0x40bd7a[_0x199a97(0x411)])(window,_0x199a97(0x1fb)),(0x0,_0x40bd7a[_0x199a97(0x411)])(document,_0x199a97(0x48b)),(0x0,_0x40bd7a['fromEvent'])(window,_0x199a97(0x3c4)),(0x0,_0x40bd7a[_0x199a97(0x411)])(document,'visibilitychange')[_0x199a97(0x4c9)]((0x0,_0x40bd7a['map'])(()=>document[_0x199a97(0x200)]===_0x199a97(0x3a0)),(0x0,_0x40bd7a[_0x199a97(0x28f)])(_0x5c9a06=>_0x5c9a06)))[_0x199a97(0x4c9)]((0x0,_0x40bd7a[_0x199a97(0x28f)])(()=>navigator[_0x199a97(0x4e9)]))[_0x199a97(0x26e)](()=>this[_0x199a97(0x251)][_0x199a97(0x2c6)](!0x0)));}[_0x49e248(0x3a6)](){const _0x156038=_0x49e248;this['disposeWithMe']((0x0,_0x40bd7a['merge'])((0x0,_0x40bd7a[_0x156038(0x411)])(window,_0x156038(0x325)),(0x0,_0x40bd7a[_0x156038(0x411)])(document,'freeze'))['subscribe'](()=>this['_online$'][_0x156038(0x2c6)](!0x1)));}};let _0xff6bc0=class extends _0x583c0b['Plugin']{constructor(_0x9e51dd=_0x1c5d34,_0x5f3894,_0x1bb5e1,_0x58bb60,_0x136fd4){const _0x41c198=_0x49e248;super(),this[_0x41c198(0x1bd)]=_0x9e51dd,this['_renderManagerService']=_0x5f3894,this[_0x41c198(0x51b)]=_0x1bb5e1,this[_0x41c198(0x3f8)]=_0x58bb60,this['_commandService']=_0x136fd4;let {..._0x32eb06}=(0x0,_0x583c0b['merge'])({},_0x1c5d34,this[_0x41c198(0x1bd)]);this[_0x41c198(0x3f8)]['setConfig'](_0x41c198(0x427),_0x32eb06);}[_0x49e248(0x2df)](){const _0x2eedf8=_0x49e248;this['_registerDependencies'](),this[_0x2eedf8(0x202)](this['_commandService']['registerCommand'](_0x4605c2)),this[_0x2eedf8(0x299)]();}[_0x49e248(0x3c8)](){const _0x2b8d1c=_0x49e248;this[_0x2b8d1c(0x2d7)]();}[_0x49e248(0x3da)](){const _0x1d0fe1=_0x49e248;var _0x592447;let _0x43c11e=[[_0x5dac64],[_0x55fd99['ISocketService'],{'useClass':_0x55fd99[_0x1d0fe1(0x2b2)]}],[_0x1134b1[_0x1d0fe1(0x355)],{'useClass':_0x2306d0}],[_0x1134b1[_0x1d0fe1(0x239)],{'useClass':_0x47ee93}],[_0x1559f7],[_0xb0932f],[_0x5c57cd],[_0x4698fb],[_0x70594e]];this['_config']['enableDocumentCollaborationUI']!==!0x1&&_0x43c11e[_0x1d0fe1(0x4ce)]([_0x16800c],[_0x5caac0],[_0x25f5e8],[_0x24bfb8],[_0x38b01a],[_0x32e9dd]),this[_0x1d0fe1(0x1bd)][_0x1d0fe1(0x23e)]&&_0x43c11e[_0x1d0fe1(0x4ce)]([_0x2e0e89]),(0x0,_0x583c0b[_0x1d0fe1(0x1cb)])(this[_0x1d0fe1(0x51b)],(0x0,_0x583c0b[_0x1d0fe1(0x21e)])(_0x43c11e,(_0x592447=this[_0x1d0fe1(0x1bd)])==null?void 0x0:_0x592447['override']));}[_0x49e248(0x2d7)](){const _0x5263f5=_0x49e248;this[_0x5263f5(0x1bd)][_0x5263f5(0x44c)]!==!0x1&&this[_0x5263f5(0x202)](this[_0x5263f5(0x34a)]['registerRenderModule'](_0x583c0b[_0x5263f5(0x4b8)][_0x5263f5(0x233)],[_0x35125b])),this[_0x5263f5(0x202)](this[_0x5263f5(0x34a)]['registerRenderModule'](_0x583c0b['UniverInstanceType']['UNIVER_SHEET'],[_0x413740]));}[_0x49e248(0x299)](){const _0x28017b=_0x49e248;(0x0,_0x583c0b[_0x28017b(0x344)])(this[_0x28017b(0x51b)],[[_0x5c57cd],[_0x4698fb],[_0x1559f7],[_0xb0932f],[_0x70594e]]),this[_0x28017b(0x1bd)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,_0x583c0b[_0x28017b(0x344)])(this[_0x28017b(0x51b)],[[_0x38b01a],[_0x32e9dd]]),this['_config'][_0x28017b(0x23e)]&&(0x0,_0x583c0b[_0x28017b(0x344)])(this['_injector'],[[_0x2e0e89]]);}};_0x30e4d4(_0xff6bc0,_0x49e248(0x1f7),_0x49e248(0x4f9)),_0x30e4d4(_0xff6bc0,_0x49e248(0x332),_0x2f9eb8),_0x30e4d4(_0xff6bc0,'version',_0x4c1ee6),_0xff6bc0=_0x1403f0([(0x0,_0x583c0b[_0x49e248(0x262)])(_0x356232[_0x49e248(0x3a3)],_0x574cdb['UniverDocsPlugin'],_0x1f114e['UniverRenderEnginePlugin'],_0x55fd99['UniverNetworkPlugin'],_0x3569c2[_0x49e248(0x3a4)],_0x594380[_0x49e248(0x4a5)],_0x1134b1['UniverCollaborationClientPlugin']),_0x37fe1c(0x1,_0x1f114e[_0x49e248(0x386)]),_0x37fe1c(0x2,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x3,_0x583c0b[_0x49e248(0x479)]),_0x37fe1c(0x4,_0x583c0b[_0x49e248(0x24e)])],_0xff6bc0);let _0xecb884=class extends _0x1134b1['CollaborationSocketService']{constructor(_0x4b037f,_0x2f849c,_0x1a7819,_0xd6385,_0x1886a9){const _0x10709c=_0x49e248;super(_0x4b037f,_0x2f849c,_0x1a7819,_0xd6385,_0x1886a9),_0x30e4d4(this,_0x10709c(0x356),new _0x40bd7a[(_0x10709c(0x38e))]()),this[_0x10709c(0x202)](()=>{const _0x1602fd=_0x10709c;this[_0x1602fd(0x356)][_0x1602fd(0x2c6)](),this[_0x1602fd(0x356)]['complete']();});}async[_0x49e248(0x4d4)](_0x34a8f1){const _0xd2a802=_0x49e248;let _0x2d0e1c=await this[_0xd2a802(0x3cc)](),_0x46ca58=this[_0xd2a802(0x23d)](_0x34a8f1,_0x2d0e1c);return this[_0xd2a802(0x478)](_0x46ca58);}[_0x49e248(0x23d)](_0x129c8e,_0x95d393){const _0x53a427=_0x49e248;let _0x85f1fa=typeof window>'u'?new URL(_0x129c8e):new URL(_0x129c8e,window[_0x53a427(0x1f4)][_0x53a427(0x394)]);_0x85f1fa['searchParams'][_0x53a427(0x345)](_0x53a427(0x2e1),_0x95d393);let _0x25fdfd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x53a427(0x1f4)][_0x53a427(0x3ef)]);return _0x25fdfd[_0x53a427(0x3e3)](_0x53a427(0x395))&&_0x85f1fa[_0x53a427(0x1f5)]['set'](_0x53a427(0x395),_0x25fdfd[_0x53a427(0x3e3)](_0x53a427(0x395))),_0x85f1fa[_0x53a427(0x4db)]();}async[_0x49e248(0x3cc)](){const _0x2138c3=_0x49e248;var _0x5ac87d;let _0x3fe28c=this[_0x2138c3(0x3f8)]['getConfig'](_0x1134b1[_0x2138c3(0x391)]),_0x3f357a=(_0x3fe28c==null?void 0x0:_0x3fe28c[_0x2138c3(0x488)])??_0x1134b1['DEFAULT_WS_SESSION_TICKET_URL'];return((_0x5ac87d=(await(0x0,_0x40bd7a[_0x2138c3(0x331)])(this[_0x2138c3(0x28b)][_0x2138c3(0x3aa)](_0x2138c3(0x1ea),_0x3f357a,{'headers':{'Content-Type':_0x2138c3(0x22e)}})[_0x2138c3(0x4c9)]((0x0,_0x40bd7a[_0x2138c3(0x28f)])(_0x1ddedc=>_0x1ddedc[_0x2138c3(0x26d)]===_0x55fd99[_0x2138c3(0x2dc)][_0x2138c3(0x360)]),(0x0,_0x40bd7a[_0x2138c3(0x39b)])(0x4e20),(0x0,_0x40bd7a[_0x2138c3(0x374)])(this[_0x2138c3(0x356)]))))[_0x2138c3(0x50f)])==null?void 0x0:_0x5ac87d['ticket'])??'';}};_0xecb884=_0x1403f0([_0x37fe1c(0x0,(0x0,_0x583c0b['Inject'])(_0x583c0b[_0x49e248(0x1c5)])),_0x37fe1c(0x1,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x55fd99['HTTPService'])),_0x37fe1c(0x2,_0x583c0b[_0x49e248(0x479)]),_0x37fe1c(0x3,_0x583c0b[_0x49e248(0x26a)]),_0x37fe1c(0x4,_0x3569c2['ISnapshotServerService'])],_0xecb884);let _0x279a22=class extends _0x583c0b[_0x49e248(0x330)]{constructor(_0x2a945a,_0x63beec,_0x47fac5){const _0x2adf44=_0x49e248;super(),this[_0x2adf44(0x38b)]=_0x2a945a,this[_0x2adf44(0x28b)]=_0x63beec,this['_configService']=_0x47fac5;}async[_0x49e248(0x4e7)](_0x534459,_0x8b3c0b,_0x34e657,..._0x547644){const _0x3de567=_0x49e248;let _0x5e4dd4=this[_0x3de567(0x38b)]['getFocusedUnit']();if(!_0x5e4dd4)throw Error(_0x3de567(0x3d0));let _0x261bd9=(this[_0x3de567(0x3f8)]['getConfig'](_0x1134b1[_0x3de567(0x4c6)])??_0x1134b1[_0x3de567(0x30d)])+'/'+_0x534459+_0x3de567(0x3ed)+_0x8b3c0b,_0x3c486a={'scriptId':_0x534459,'runId':new URL(window[_0x3de567(0x1f4)]['href'])[_0x3de567(0x1f5)][_0x3de567(0x3e3)]('runId')??'','function':_0x8b3c0b,'unitId':_0x5e4dd4[_0x3de567(0x375)](),'argsOfFunction':JSON[_0x3de567(0x21f)](_0x547644),'invokeId':_0x34e657[_0x3de567(0x2bf)]??'','executionId':_0x34e657[_0x3de567(0x2ab)]??''};try{let _0x3ff352=await this[_0x3de567(0x28b)]['post'](_0x261bd9,{'body':_0x3c486a});return _0x3ff352[_0x3de567(0x50f)][_0x3de567(0x4d2)]&&_0x3ff352[_0x3de567(0x50f)][_0x3de567(0x4d2)]['code']!==_0x52ba28[_0x3de567(0x2cc)]['OK']?_0x3de567(0x4d0):_0x3ff352[_0x3de567(0x50f)]['result'];}catch{return _0x3de567(0x4d0);}}};_0x279a22=_0x1403f0([_0x37fe1c(0x0,_0x583c0b[_0x49e248(0x4cc)]),_0x37fe1c(0x1,(0x0,_0x583c0b[_0x49e248(0x371)])(_0x55fd99['HTTPService'])),_0x37fe1c(0x2,_0x583c0b[_0x49e248(0x479)])],_0x279a22);let _0x441902=0x7530,_0x3f17da=_0x49e248(0x47f);var _0x284721=class extends _0x583c0b[_0x49e248(0x330)]{constructor(){const _0x1c367c=_0x49e248;super(),_0x30e4d4(this,'_id',(0x0,_0x583c0b['generateRandomId'])()),_0x30e4d4(this,_0x1c367c(0x3b8),new Set()),_0x30e4d4(this,_0x1c367c(0x503),new Map()),_0x30e4d4(this,_0x1c367c(0x27d),null),_0x30e4d4(this,_0x1c367c(0x477),new Map()),_0x30e4d4(this,'_unitStatus',new Map()),this[_0x1c367c(0x3e1)]();}[_0x49e248(0x224)](){const _0x4f0ba2=_0x49e248;super['dispose'](),this[_0x4f0ba2(0x477)]['forEach']((_0x33ad29,_0x1245bc)=>this['_removeClearOtherTimer'](_0x1245bc)),this[_0x4f0ba2(0x27d)]&&window[_0x4f0ba2(0x2e0)](this[_0x4f0ba2(0x27d)]);}[_0x49e248(0x48f)](_0x44c088){const _0x2767ce=_0x49e248;return this[_0x2767ce(0x420)](_0x44c088)[_0x2767ce(0x4c9)]((0x0,_0x40bd7a[_0x2767ce(0x343)])());}[_0x49e248(0x4ee)](_0x3e92ae){const _0x470c37=_0x49e248;this[_0x470c37(0x3b8)][_0x470c37(0x454)]===0x0&&this[_0x470c37(0x38d)](),this[_0x470c37(0x3b8)][_0x470c37(0x4a9)](_0x3e92ae),this[_0x470c37(0x2fb)]({'type':0x0,'memberID':this[_0x470c37(0x36d)],'unitIDs':[_0x3e92ae],'isForwarded':!0x1});}[_0x49e248(0x235)](_0x1e366b){const _0x20df70=_0x49e248;this[_0x20df70(0x3b8)][_0x20df70(0x489)](_0x1e366b),this[_0x20df70(0x3b8)][_0x20df70(0x454)]===0x0&&this[_0x20df70(0x27d)]&&window[_0x20df70(0x2e0)](this[_0x20df70(0x27d)]);}[_0x49e248(0x3e1)](){const _0x5a8f56=_0x49e248;this[_0x5a8f56(0x202)]((0x0,_0x583c0b[_0x5a8f56(0x292)])((0x0,_0x40bd7a[_0x5a8f56(0x411)])(window,_0x5a8f56(0x2ce))[_0x5a8f56(0x26e)](_0x19df81=>{const _0x19b4ed=_0x5a8f56;if(_0x19df81['key']!==_0x3f17da||!_0x19df81[_0x19b4ed(0x283)])return;let _0x5e5489=JSON[_0x19b4ed(0x43f)](_0x19df81[_0x19b4ed(0x283)]);this[_0x19b4ed(0x265)](_0x5e5489);}))),window[_0x5a8f56(0x1f1)](_0x5a8f56(0x267),()=>this[_0x5a8f56(0x2fb)]({'type':0x1,'memberID':this[_0x5a8f56(0x36d)],'unitIDs':Array[_0x5a8f56(0x4ea)](this['_selfUnitIDs'])}));}[_0x49e248(0x265)](_0x43ebd7){const _0x1fd91a=_0x49e248;switch(_0x43ebd7[_0x1fd91a(0x26d)]){case 0x0:this[_0x1fd91a(0x3b2)](_0x43ebd7);break;case 0x1:this[_0x1fd91a(0x499)](_0x43ebd7);break;case 0x2:this[_0x1fd91a(0x2cb)](_0x43ebd7);}}['_handleJoinEvent'](_0x1dd7ca){const _0x4a3817=_0x49e248;let {unitIDs:_0xa80505,memberID:_0x972d2d,isForwarded:_0x3ae9af}=_0x1dd7ca;_0xa80505[_0x4a3817(0x1fe)](_0x3abc5c=>{const _0x38c3d8=_0x4a3817;if(!_0x3ae9af&&this['_unitOnClients']['has'](_0x3abc5c)&&this['_ensureSubject'](_0x3abc5c)[_0x38c3d8(0x2c6)](_0x1134b1[_0x38c3d8(0x3a8)][_0x38c3d8(0x21d)]),!this[_0x38c3d8(0x503)][_0x38c3d8(0x4ac)](_0x3abc5c)||!this[_0x38c3d8(0x503)][_0x38c3d8(0x3e3)](_0x3abc5c)['has'](_0x972d2d)){let _0x4f932d=this[_0x38c3d8(0x503)][_0x38c3d8(0x3e3)](_0x3abc5c)||new Set();_0x4f932d[_0x38c3d8(0x4a9)](_0x972d2d),this[_0x38c3d8(0x503)][_0x38c3d8(0x345)](_0x3abc5c,_0x4f932d),this[_0x38c3d8(0x482)](_0x972d2d);}}),_0x3ae9af||this['_send']({'type':0x0,'memberID':this[_0x4a3817(0x36d)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x49e248(0x482)](_0xaf6f2e){const _0x2730d7=_0x49e248;this[_0x2730d7(0x3bf)](_0xaf6f2e);let _0x1f56c2=window[_0x2730d7(0x2f8)](()=>{const _0x1ab708=_0x2730d7;this[_0x1ab708(0x503)][_0x1ab708(0x1fe)](_0x2431af=>{const _0xcd38c4=_0x1ab708;_0x2431af[_0xcd38c4(0x489)](_0xaf6f2e);});},_0x441902*0x2);this[_0x2730d7(0x477)][_0x2730d7(0x345)](_0xaf6f2e,_0x1f56c2);}['_removeClearOtherTimer'](_0x35e03d){const _0x2799fe=_0x49e248;if(this[_0x2799fe(0x477)][_0x2799fe(0x4ac)](_0x35e03d)){let _0x4b11dc=this[_0x2799fe(0x477)]['get'](_0x35e03d);_0x4b11dc&&window[_0x2799fe(0x473)](_0x4b11dc),this[_0x2799fe(0x477)]['set'](_0x35e03d,null);}}[_0x49e248(0x499)](_0x54abf4){const _0x4d8cf9=_0x49e248;let {memberID:_0x10c0f6,unitIDs:_0x5689c9}=_0x54abf4;_0x5689c9[_0x4d8cf9(0x1fe)](_0x255bb9=>{const _0x146651=_0x4d8cf9;var _0xd3a8cd;let _0x4721a4=this[_0x146651(0x503)][_0x146651(0x3e3)](_0x255bb9);_0x4721a4&&(_0x4721a4[_0x146651(0x489)](_0x10c0f6),(_0xd3a8cd=this['_ensureSubject'](_0x255bb9))==null||_0xd3a8cd['next'](_0x4721a4[_0x146651(0x454)]===0x0?_0x1134b1[_0x146651(0x3a8)][_0x146651(0x52a)]:_0x1134b1[_0x146651(0x3a8)][_0x146651(0x21d)]));}),this['_removeClearOtherTimer'](_0x10c0f6);}[_0x49e248(0x2cb)](_0x264de5){const _0x4fe5a6=_0x49e248;this[_0x4fe5a6(0x482)](_0x264de5['memberID']);}['_send'](_0x574eaa){const _0x19b13c=_0x49e248;localStorage[_0x19b13c(0x3d8)](_0x3f17da,JSON[_0x19b13c(0x21f)](_0x574eaa));}[_0x49e248(0x38d)](){const _0x35eb8b=_0x49e248;this[_0x35eb8b(0x27d)]=window[_0x35eb8b(0x4b2)](()=>{const _0x50ba23=_0x35eb8b;this[_0x50ba23(0x2fb)]({'type':0x2,'memberID':this[_0x50ba23(0x36d)]});},_0x441902);}[_0x49e248(0x420)](_0x29f9a9){const _0x303770=_0x49e248;return this[_0x303770(0x474)][_0x303770(0x4ac)](_0x29f9a9)||this[_0x303770(0x474)][_0x303770(0x345)](_0x29f9a9,new _0x40bd7a['BehaviorSubject'](_0x1134b1[_0x303770(0x3a8)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x303770(0x474)][_0x303770(0x3e3)](_0x29f9a9);}};Object[_0x49e248(0x468)](_0x47ea75,_0x49e248(0x376),{'enumerable':!0x0,'get':function(){return _0xecb884;}}),Object[_0x49e248(0x468)](_0x47ea75,_0x49e248(0x341),{'enumerable':!0x0,'get':function(){return _0x1559f7;}}),Object[_0x49e248(0x468)](_0x47ea75,_0x49e248(0x2ed),{'enumerable':!0x0,'get':function(){return _0x279a22;}}),_0x47ea75['SheetCollabCursorShape']=_0x4f7e7d,Object[_0x49e248(0x468)](_0x47ea75,_0x49e248(0x3b0),{'enumerable':!0x0,'get':function(){return _0xff6bc0;}}),_0x47ea75[_0x49e248(0x21b)]=_0x284721;}));
|
|
1
|
+
function _0x186b(){const _0x39e16d=['collaboration-client-ui.collabStatus.syncing','AWAITING_WITH_PENDING','@univerjs/docs','OFFLINE','_localCacheService','CONFLICT_CACHE_CLEAR_FAILED','_bindAdapter','highlight','getViewport','columnIndex','ONLINE','univer-text-green-500','TEXT_RANGE_LAYER_INDEX','unitType','Rect','_offsetY','disposeUnit','SHEET_VIEWPORT_KEY','_selfUnitIDs','_anchorDot','RefRangeService','96MpTwGB','getActiveRange','white','slice','setConfig','_getSheetObject','removeRemotePresence','init','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_createSocketURL','getCurrentSkeleton','content','Enter','_retryConflictCacheClear','data','ILocalCacheService','_initCommandExecutedListener','beginPath','CollaborationUIEventService','transform','onPointerLeave$','transformIMECache','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','target','ThemeService','getCoordByCell','Inject','resolve','invokeId','_startDocCollabCursor','@univerjs-pro/collaboration-client','memberID','fillStyle','Failed','ErrorCode','getTypeOfUnitAdded$','transformRemoteChangeset','isReleased','onLine','isTransformMutationsWithChangesetSuccess','ERROR','useImperativeHandle','_colorIndex','SheetSkeletonManagerService','_status$','resize','snapshot-loading-','_showText','measureText','entityInit$','NodePositionConvertToCursor','clsx','231880rTAiql','Error','focusedId','_monkeyPatchLogService','defIds','1em','@univerjs/engine-formula','keys','ranges','hasAttribute','_configService','parse','some','rgba(255,\x20255,\x20255,\x200.01)','fill','getItem','UniverDocsPlugin','/universer-api/frontend/logs','_blinkTimer','DocCollaborationEntity','code','getColor','unhandledrejection','merge','rxjs/operators','_hovered','_registerPresenceStatusComponent','dispose$','_handleEvent','UNIVER_SHEET','colno','1.5.1','LoadingMultiIcon','assignAColorForMemberID','isInternalEditorID','includes','_collaborationUIEventService','IConfigService','setInterval','loadOfflineData','deepClone','generateRandomId','RichTextEditingMutation','loading-multi-icon','drawWith','trim','isArray','name','DocStateChangeManagerService','evenodd','exhaustSavingTask','tag','getStateCache','UPDATE_CURSOR','handleDeleteRangeMoveUp','engine','timedOut','_listenToOfflineEvent','mask','useLayoutEffect','_docStateChangeManagerService','InsertRowCommandId','_presenceStatusRegistrations','useRef','appliedStrokeWidth','/run/','changesetResend$','runId','segmentPage','isActive','GET','min','DEFAULT_WS_SESSION_TICKET_URL','reload','_collabCursorController','createInstance','_transformService','CLOSE_ROOM','eventID','collab-text-range-','Injector','COLORS','Warning','prepareTransformSelections','_removeCollabCursors','Subject','selections','@univerjs/core','_clearBlockProgressWatch','offline','colorChannel1','RxDisposable','then','_pendingEntities','_watchBlockProgress','getAncestorScale','IUniverInstanceService','column','VIEW_MAIN','_refreshCollabCursors','values','UniverProCollaborationClient','collaboration-client-ui.collabStatus.conflict','pluginName','disableLocalCache','UniverDocsUIPlugin','removeProperty','params','UniverRenderEnginePlugin','exports','CONFLICT_PROCESSING','_commandService','_replaceConflictNotification','_blinkIntervalTimer','searchParams','Tools','throttleTime','_id','true','_anchor','visibilitychange','visible','SessionStatus','_cachedData','RevisionService','ColorKit','_getAnchorBounding','_scheduleSaving','collaboration-client-ui.session.connection-failed','arc','attrs','idSuffix','_adapterRegistry','fillText','23246271YqFuJG','getLocalPresence','onStarting','collaboration-client-ui.license.unit-type-rejected','react','selectedIds','strokeOpacity','baseVal','3655536zFuaaY','_memberID','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','collaboration-client-ui.permission.content','INotificationService','M0\x200H16V16H0z','unitID','green.600','memberId','_pointerMoveDisposable','_transformHistoryAndStateStack','function','off-line-icon_clip0_910_343','allSettled','_showConflictCacheClearFailedNotification','saveOfflineData','_uiPartsService','getColorFromTheme','labelHorizontalPosition','from','_dispose$','UniverCollaborationClientUIPlugin','handleDeleteRangeMoveLeft','refreshLabel','packageName','clear','forEach','HTTPEventType','delete','map','_initAwaitingNotices','IUIPartsService','DisposableCollection','focused$','strokeWidth','hadStyleAttribute','univer-m-0\x20univer-p-0','now','LOCAL_CACHE_INTERVAL_KEY','totalBlocks','_eventUnsubscribe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_colorAssignService','_online','length','newValue','UniverNetwork','COMPLETE','distinctUntilChanged','_initUserListener','fromEvent','labelPosition','onPointerMove$','UniverIcon','_initUnhandledRejectionListener','enableOfflineEditing','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','getLocalCacheKey','DocSelectionManagerService','AWAITING','small','assign','add','collaboration-client-ui.config','TEXT','_highlight','round','focus','_updateLocalCursor','collaboration-client-ui.collabClient.tooltip.reconnect','Response','DesktopCollaborationStatusDisplayController','enableDocumentCollaborationUI','type','_themeService','clipPath','_initStatusComponent','dispose','RECT','prototype','decorate','_collabSessionService','removeAttribute','width','isFinite','subscribeEvent','_presenceAdapterRegistry','_ensureSubject','_initWindowErrorListener','@univerjs-pro/collaboration-client-ui','React','touchDependencies','_messageIds','presenceKind','finally','transformMutation','set','_disposed','sessionTicket','getSheetId','cursorInfo','registerCommand','_handleHeartbeatEvent','_instanceService','_injector','SOCKET_FAILED_RETRY','localPresence$','\x20at\x20','_registerRenderDependencies','disposeWithMe','getActiveSheet','univer-text-gray-400','with','connectInjector','@univerjs/engine-render','_clearTimeoutState','right','useId','MessageType','_config','amd','imageSourceType','ILogService','clearTimeout','every','SheetsSelectionsService','RegularPolygon','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_online$','_refRangeService','UnitStatus','text','setUndoRedoMutationParamsCache','sheetId',':backup:','collaboration-client-ui.snapshotLoading.refresh','BuiltInUIPart','_updateMessage','GLOBAL','getCurrentTypeOfUnit$','debounce','jsxs','_saveCache','getDocumentSkeletonColumnPagePathInfo','_cursorShapes','getDocRanges','textRanges','querySelectorAll','getCurrentUser','href','addObject','WebSocketService','onMouseMove','ISnapshotServerService','Unknown\x20user','_trackActiveSaveTask','collaboration-client-ui.license.editing-connections-exceeded','_color','_adapter','string','0\x200\x2017\x2016','path','send','UniverDocsUi','highlightSecond','executionId','cursorInfo$','CollaborationSessionService','call','ICommandService','CONFLICT','split','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','onRendered','url(#$1','findNodePositionByCharIndex','setItem','size','univer-text-blue-500','CollaborationStatus','_snapshotLoadingService','_startEntity','toStringTag','_notificationService','getPropertyValue','LOADING_BLOCKS','[LogService\x20Error]:\x20','timer','current','collaboration-client-ui.collaboration.closeRoom','UniverNetworkPlugin','getUnitId','closePath','_univerInstanceService','translate(.97)','_registerDependencies','_saveTimedOutNotices','remove','ILocalStorageService','replace','stroke-width','useDependency','result','NOT_COLLAB','setProperty','top','registerRenderModule','version','DocIMEInputManagerService','OTHER_CLIENTS_EDITING','_sendLocalPresence','IImageIoService','_conflictNotification','getUndoRedoMutationParamsCache','update','search','_scheduleClearOtherTimer','max','_localStorageService','_draw','UniverEngineRender','location','_initEntityListener','_docSelectionManagerService','restore','collaboration-client-ui.license.domain-rejected','_send','_assignedColors','getPropertyPriority','xlink:href','children','_removeAwaitingNotices','IRenderManagerService','registerComponent','getConfig','disconnect','deserializeRangeWithSheet','combineLatest','_init','_render','OffLineIcon','userId','push','clearRemotePresences','CollaborationEvent','url(#on-line-icon_clip0_910_349)','_highlightSecond','static','_retryingConflictCacheUnitIDs','UserManagerService','getMemberID','collaboration-client-ui.conflict.retry','setShapeProps','createElement','timeoutState$','10UZCRfX','@univerjs-pro/license','_collaborationSessionService','collaboration-client-ui.conflict.title','default','LICENSE_DOMAIN_REJECTED','defineProperty','registerBeforeClose','runRefRangeMutations','_heartbeatTimer','InsertRangeMoveDownCommandId','_docTransformSelectionsService','parseInt','blue.400','_stopBlinking','join','_removeRemotePresence','setAlpha','tooltipKey','doc.mutation.rich-text-editing','options','_onCursorDelete','spin','storage','transformStateCache','pointer','color','m1Prime','_onRefRangeChange','_cursorInfo$','_timeoutState$','status','UniverProCollaboration','indicator','_startSheetCollabCursor','find','requireSession','conflict$','addObjects','univer-transition-all\x20univer-duration-200','_activeSaveTaskMap','body','complete','kind','saveTaskMap','HEADER_MENU','Module','handleIRemoveRow','_drawRectRange','@univerjs/protocol','svg','non-scaling-stroke','_disposeEntity','value','_handleCursorUpdate','height','SetDocZoomRatioOperation','2189901pXgdDk','saveImage','_normalizeUserId','...','_syncAdapters','pipe','handleInsertCol','rgba','onCommandExecuted','hovered','roomMembers$','license_editing_connections_exceeded','event$','PENDING','getRenderUnitById','onPointerEnter$','visibilityState','getSheetBySheetId','_initialized','operators','_entityInit$','_collaborationController','ticket','_hideTimer','getMember','BrowserCollaborationSocketService','handleIRemoveCol','MoveRangeCommandId','_drawTextRange','_session','pageIndex','collaboration-client-ui.collabStatus.synced','collaboration-client-ui.collabStatus.fetchMiss','_entities','_onCursorUpdate','_docTransformIMECacheService','fillRule','_clearOtherTimers','_initPresenceStatusComponents','pageType','priority','filename','WarningIcon','setTimeout','div','status$','_uploadLog','_name','subscribe','_docTransformStateCacheService','_startBlinking','handleInsertRow','firstValueFrom','getCurrentRevOfUnit','_initEvent','state$','_docClipboardService','118710dbZOcx','_doCreateSocket','getTypeOfUnitDisposed$','LOCAL_CACHE_INTERVAL','UniverSheetsUi','_listenToOnlineEvent','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_isBlinkVisible','Button','getUnitStatus$','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','rgba(','clearInterval','source','_memberService','selection','collaboration-client-ui.conflict.clearFailed','onTransformChange$','UniverSheets','localName','currentSkeleton$','_revisionService','jsx','startOffset','collabCursorState$','save','SYNCED','CollaborationUIEventId','debounceTime','RemoteUniscriptService','displayName','_updateCollabCursors','hide','application/json','toDisposable','button','_httpService','IMessageService','0\x200\x2016\x2016','viewBox','LocaleService','endRow','getCurrentUnitOfType','Plugin','makeDirty','collaboration-client-ui.remoteRevert.content','colorClass','_cursors','_scheduleHeartbeat','range','registerRefRange','_toggleOnline','_lastPointer','_beforeCloseService','origin','stage','BehaviorSubject','_isDisposed','defs','toString','SnapshotLoadStage','collaboration-client-ui.collaboration.offline-data-not-saved','getOffsetConfig','useObservable','symbol','isTransformMutationFailure','OPERATION','toRgbString','UniverInstanceType','number','OTHER_CLIENT_EDITING','UniverCore','style','currentTheme$','endColumn','handleMoveRange','black','ACTIVE_UNIT_EVENT_CHANNEL','_handleLeaveEvent','bold\x2013px\x20Arial,\x20sans-serif','FOOTER','Tooltip','unitId','element','timeoutId','Vector2','_getUserId','roomMembers','activate','getCollabCursors$','asObservable','takeUntil','bottom','_document','getSkeleton','font','_cursor','polite','univer-inline-flex\x20univer-items-center\x20univer-justify-center','catch','_unitOnClients','unit','IDocClipboardService','UniverCollaborationClientPlugin','_context','transformMutationsWithChangeset','M7.20007\x201.98384C7.20007\x201.54201\x207.55824\x201.18384\x208.00007\x201.18384C11.7647\x201.18384\x2014.8165\x204.23568\x2014.8165\x208.00032C14.8165\x2011.765\x2011.7647\x2014.8168\x208.00007\x2014.8168C4.23543\x2014.8168\x201.18359\x2011.765\x201.18359\x208.00032C1.18359\x207.55849\x201.54177\x207.20031\x201.98359\x207.20031C2.42542\x207.20031\x202.78359\x207.55849\x202.78359\x208.00032C2.78359\x2010.8813\x205.11909\x2013.2168\x208.00007\x2013.2168C10.8811\x2013.2168\x2013.2165\x2010.8813\x2013.2165\x208.00032C13.2165\x205.11933\x2010.8811\x202.78384\x208.00007\x202.78384C7.55824\x202.78384\x207.20007\x202.42567\x207.20007\x201.98384Z','enableDefaultConflictUI','_messageService','DeleteRangeMoveUpCommandId','on-line-icon_clip0_910_349','clearOfflineData','getRangePointData','getFocusedUnit','warning-icon','transformByState','[Window\x20Error]:\x20','_drawAnchor','_initStatusListener','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','stroke','_textBubble','_backgroundColor','runOnServer','getMergeData','ITransformService','Loading','_handleJoinEvent','univerjs-icon\x20univerjs-icon-','sessionStatus$','next','CommandType','_saveTaskMap','_scene','_initDependencies','_clearRemotePresences','useCallback','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_logService','loading','lineTo','M15\x208C15\x2011.866\x2011.866\x2015\x208\x2015C4.13401\x2015\x201\x2011.866\x201\x208C1\x204.13401\x204.13401\x201\x208\x201C11.866\x201\x2015\x204.13401\x2015\x208ZM8.00008\x2012.3671C8.46031\x2012.3671\x208.83342\x2011.994\x208.83342\x2011.5338C8.83342\x2011.0735\x208.46031\x2010.7004\x208.00008\x2010.7004C7.53985\x2010.7004\x207.16675\x2011.0735\x207.16675\x2011.5338C7.16675\x2011.994\x207.53985\x2012.3671\x208.00008\x2012.3671ZM8.5999\x204.4335C8.5999\x204.10213\x208.33127\x203.8335\x207.9999\x203.8335C7.66853\x203.8335\x207.3999\x204.10213\x207.3999\x204.4335V9.36683C7.3999\x209.6982\x207.66853\x209.96683\x207.9999\x209.96683C8.33127\x209.96683\x208.5999\x209.6982\x208.5999\x209.36683V4.4335Z','registerDependencies','unsubscribe','collaboration-client-ui.license.title','InsertRangeMoveRightCommandId','_onConflict','canRenderAnchor','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',',\x200.2)','_labelHorizontalPosition','_getLighterColor','_adapterDisposables','none','_handleHover','collaboration-client-ui.conflict.content','_removeClearOtherTimer','_transformUndoRedoStack','RemoveRowCommandId','switchMap','row','Disposable','_toggleOffline','SetSelectionsOperation','canRenderSelection','reconnect','DependentOn','FromArray','lineno','unshift','state','_editingConnectionsExceededNotices','_collabCursorState$','endOffset','_shapes','m2Prime','key','show','online','_localeService','_blockProgressWatches','collaboration-client-ui.collabStatus.notCollab','setOffsetY','DeleteRangeMoveLeftCommandId','clickable','collaboration-client-ui.collaboration.single-unit.warning','486111YPBsAE','collab-text-anchor-','getCollabEntities','NO_OTHER_CLIENTS_EDITING','_renderManagerService','filter','originalStrokeWidth','_initResize','removeEventListener','_unitStatus','has','_disabled','mutations','2648320FDehOL','INetworkConditionService','executeCommand','get','freeze','DOC_RANGE_TYPE','univer-h-8\x20univer-w-8\x20univer-rounded-lg','object','bind','UniverEngineFormula','rxjs','_getScale','univer-flex\x20univer-items-center\x20univer-justify-center','error','getUnit','_showConflictProcessingNotification','@univerjs/network','unload','all','getAllUnitsForType','collaboration-client-ui.conflict.processing','USERS_LEAVE','_userManagerService','SOCKET_FAILED','Shape','preventDefault','_roomMembers$','getSheetObject','_docSkeletonManagerService','elapsedMs','vectorEffect','getCollabEntity$','syncEditingCollabCursor','span','_labelPosition','stack','statusUIPart','columnGroupId','getScrollXYInfoByViewport','userID','getBoundingClientRect','setActiveRange','isEditing','@univerjs/ui','_getSaveTimeout','UNIVER_DOC','http://www.w3.org/2000/svg','_hover','0.2)','loadedBlocks','_showAwaitingNotice','_sheetSkeletonManagerService','DocumentSkeletonPageType','getValue','collab-rect-range-','@univerjs/sheets-ui','addEventListener','message','title','HTTPService','currentColor','WebBrowserSingleActiveUnitService','\x20-\x20','getSelectionInfo','resume','entries','toPrimitive','#0B9EFB','rgb','forwardRef','Rectangle','wsSessionTicketUrl','off-line-icon','showText','reason','#FFF','TRANSFORM_CHANGE_OBSERVABLE_TYPE','tableSource','stringify','subUnitId','CollaborationController','startsWith','_reloadPage','_docSyncEditingCollabCursorService','pulse','EffectRefRangId','_range','flatMap','adapters$','setStateCache','useMemo'];_0x186b=function(){return _0x39e16d;};return _0x186b();}function _0x229d(_0x4fd800,_0x51ef24){_0x4fd800=_0x4fd800-0x1b0;const _0x186b4d=_0x186b();let _0x229d72=_0x186b4d[_0x4fd800];return _0x229d72;}(function(_0x3c8292,_0x52968f){const _0x2fb2d6=_0x229d,_0x5dbfdc=_0x3c8292();while(!![]){try{const _0x29172d=-parseInt(_0x2fb2d6(0x2c1))/0x1*(-parseInt(_0x2fb2d6(0x24f))/0x2)+-parseInt(_0x2fb2d6(0x37c))/0x3+-parseInt(_0x2fb2d6(0x389))/0x4+parseInt(_0x2fb2d6(0x42d))/0x5*(-parseInt(_0x2fb2d6(0x3f9))/0x6)+-parseInt(_0x2fb2d6(0x288))/0x7+-parseInt(_0x2fb2d6(0x4bb))/0x8+parseInt(_0x2fb2d6(0x4b3))/0x9;if(_0x29172d===_0x52968f)break;else _0x5dbfdc['push'](_0x5dbfdc['shift']());}catch(_0x4b4ebd){_0x5dbfdc['push'](_0x5dbfdc['shift']());}}}(_0x186b,0xcd367),function(_0x4e98b1,_0x17063a){const _0x5dca38=_0x229d;typeof exports=='object'&&typeof module<'u'?_0x17063a(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/protocol')):typeof define==_0x5dca38(0x4c6)&&define[_0x5dca38(0x1c8)]?define([_0x5dca38(0x49a),_0x5dca38(0x417),_0x5dca38(0x484),_0x5dca38(0x3b4),_0x5dca38(0x393),_0x5dca38(0x445),'@univerjs/design',_0x5dca38(0x4b7),'react/jsx-runtime','@univerjs-pro/collaboration',_0x5dca38(0x250),_0x5dca38(0x3e6),'@univerjs/docs-ui',_0x5dca38(0x1c2),_0x5dca38(0x399),_0x5dca38(0x433),'@univerjs/sheets',_0x5dca38(0x3c0),_0x5dca38(0x280)],_0x17063a):(_0x4e98b1=typeof globalThis<'u'?globalThis:_0x4e98b1||self,_0x17063a(_0x4e98b1['UniverProCollaborationClientUi']={},_0x4e98b1[_0x5dca38(0x492)],_0x4e98b1[_0x5dca38(0x309)],_0x4e98b1['UniverUi'],_0x4e98b1[_0x5dca38(0x393)],_0x4e98b1[_0x5dca38(0x393)][_0x5dca38(0x29b)],_0x4e98b1['UniverDesign'],_0x4e98b1[_0x5dca38(0x515)],_0x4e98b1['React'],_0x4e98b1[_0x5dca38(0x26f)],_0x4e98b1['UniverProLicense'],_0x4e98b1['UniverDocs'],_0x4e98b1[_0x5dca38(0x1f3)],_0x4e98b1[_0x5dca38(0x22c)],_0x4e98b1[_0x5dca38(0x4e9)],_0x4e98b1[_0x5dca38(0x392)],_0x4e98b1[_0x5dca38(0x2d4)],_0x4e98b1[_0x5dca38(0x2c5)],_0x4e98b1['UniverProtocol']));}(this,function(_0x199b1e,_0x3107d6,_0x263090,_0x543d66,_0x4c31a2,_0x1b375c,_0x12c3fa,_0x10aadf,_0x404f0d,_0x5eadb5,_0x3d004e,_0x33e872,_0x2bd024,_0x3822ed,_0x9d56b3,_0x19e8e1,_0x5e8070,_0xb3521a,_0x5b15f7){const _0x190561=_0x229d;Object['defineProperty'](_0x199b1e,Symbol[_0x190561(0x206)],{'value':_0x190561(0x27d)});function _0xb23509({ref:_0xb72488,..._0x9fe023}){const _0x10e7ea=_0x190561;let {preserveStrokeWidth:_0x47e25d,icon:_0x6ce053,id:_0x2df7e1,className:_0x3945da,extend:_0x112213,..._0x27f954}=_0x9fe023,_0x305cf5=(_0x10e7ea(0x342)+_0x2df7e1+'\x20'+(_0x3945da||''))[_0x10e7ea(0x45a)](),_0xad7eb8='_'+(0x0,_0x10aadf[_0x10e7ea(0x1c5)])(),_0x6b1c8e=(0x0,_0x10aadf[_0x10e7ea(0x46c)])(null);return(0x0,_0x10aadf[_0x10e7ea(0x422)])(_0xb72488,()=>_0x6b1c8e[_0x10e7ea(0x20c)]),(0x0,_0x10aadf[_0x10e7ea(0x468)])(()=>{const _0x5189db=_0x10e7ea;if(_0x47e25d&&_0x6b1c8e[_0x5189db(0x20c)]&&_0x6b1c8e[_0x5189db(0x20c)][_0x5189db(0x2d5)]===_0x6ce053[_0x5189db(0x460)])return _0x181c5c(_0x6b1c8e[_0x5189db(0x20c)]);},[_0x47e25d,_0x6ce053]),_0x346e04(_0x6ce053,''+_0x2df7e1,{'defIds':_0x6ce053[_0x10e7ea(0x431)],'idSuffix':_0xad7eb8},{'ref':_0x6b1c8e,'className':_0x305cf5,..._0x27f954},_0x112213);}function _0x346e04(_0x1886b3,_0x4198c3,_0x85fe4b,_0x1738ef,_0x153bf6){const _0x2567ea=_0x190561;return(0x0,_0x10aadf[_0x2567ea(0x24d)])(_0x1886b3[_0x2567ea(0x460)],{'key':_0x4198c3,..._0x7a69e8(_0x1886b3,_0x85fe4b,_0x153bf6),..._0x1738ef},(_0x21c952(_0x1886b3,_0x85fe4b)[_0x2567ea(0x236)]||[])[_0x2567ea(0x4d8)]((_0x5c70ab,_0x18e56e)=>_0x346e04(_0x5c70ab,_0x4198c3+'-'+_0x1886b3[_0x2567ea(0x460)]+'-'+_0x18e56e,_0x85fe4b,void 0x0,_0x153bf6)));}function _0x7a69e8(_0x5480f3,_0x4a124a,_0x587d4d){const _0x26b6d9=_0x190561;let _0x161bd0={..._0x5480f3[_0x26b6d9(0x4af)]};_0x587d4d!=null&&_0x587d4d[_0x26b6d9(0x487)]&&_0x161bd0[_0x26b6d9(0x43b)]===_0x26b6d9(0x487)&&(_0x161bd0['fill']=_0x587d4d[_0x26b6d9(0x487)]),_0x587d4d!=null&&_0x587d4d[_0x26b6d9(0x487)]&&_0x161bd0[_0x26b6d9(0x33a)]==='colorChannel1'&&(_0x161bd0[_0x26b6d9(0x33a)]=_0x587d4d[_0x26b6d9(0x487)]),_0x5480f3[_0x26b6d9(0x460)]===_0x26b6d9(0x467)&&_0x161bd0['id']&&(_0x161bd0['id']+=_0x4a124a[_0x26b6d9(0x4b0)]),Object[_0x26b6d9(0x3ca)](_0x161bd0)['forEach'](([_0x1d9e83,_0x4be974])=>{const _0x370be0=_0x26b6d9;_0x1d9e83==='mask'&&typeof _0x4be974==_0x370be0(0x1ef)&&(_0x161bd0[_0x1d9e83]=_0x4be974[_0x370be0(0x217)](/url\(#(.*)\)/,_0x370be0(0x1fe)+_0x4a124a[_0x370be0(0x4b0)]+')'));});let {defIds:_0x9ac924}=_0x4a124a;return!_0x9ac924||_0x9ac924['length']===0x0||(_0x5480f3['tag']==='use'&&_0x161bd0[_0x26b6d9(0x235)]&&(_0x161bd0[_0x26b6d9(0x235)]+=_0x4a124a[_0x26b6d9(0x4b0)]),Object[_0x26b6d9(0x3ca)](_0x161bd0)[_0x26b6d9(0x4d5)](([_0x100545,_0x483c84])=>{const _0x288a0b=_0x26b6d9;typeof _0x483c84=='string'&&(_0x161bd0[_0x100545]=_0x483c84[_0x288a0b(0x217)](/url\(#(.*)\)/,_0x288a0b(0x1fe)+_0x4a124a[_0x288a0b(0x4b0)]+')'));})),_0x161bd0;}function _0x21c952(_0x2f2d95,_0x494f1d){const _0x1d945a=_0x190561;var _0x5f088a;let {defIds:_0x1d2fe9}=_0x494f1d;return!_0x1d2fe9||_0x1d2fe9[_0x1d945a(0x4e7)]===0x0?_0x2f2d95:_0x2f2d95['tag']===_0x1d945a(0x2fc)&&(_0x5f088a=_0x2f2d95['children'])!=null&&_0x5f088a[_0x1d945a(0x4e7)]?{..._0x2f2d95,'children':_0x2f2d95[_0x1d945a(0x236)]['map'](_0x18cead=>typeof _0x18cead[_0x1d945a(0x4af)]['id']==_0x1d945a(0x1ef)&&_0x1d2fe9&&_0x1d2fe9[_0x1d945a(0x450)](_0x18cead[_0x1d945a(0x4af)]['id'])?{..._0x18cead,'attrs':{..._0x18cead['attrs'],'id':_0x18cead['attrs']['id']+_0x494f1d[_0x1d945a(0x4b0)]}}:_0x18cead)}:_0x2f2d95;}function _0x181c5c(_0x2f9406){const _0x52e328=_0x190561;let _0x35370d=_0x2f9406[_0x52e328(0x2e9)][_0x52e328(0x4ba)],_0x38ff8d=Math['max'](_0x35370d[_0x52e328(0x50e)],_0x35370d[_0x52e328(0x286)]);if(!Number[_0x52e328(0x50f)](_0x38ff8d)||_0x38ff8d<=0x0||_0x35370d['width']<=0x0||_0x35370d[_0x52e328(0x286)]<=0x0)return()=>void 0x0;let _0x1ac982=0x10/_0x38ff8d,_0x278ee6=Array[_0x52e328(0x4ce)](_0x2f9406[_0x52e328(0x1e3)]('circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use'))[_0x52e328(0x3e0)](_0x32e2af=>{const _0x3dbdd0=_0x52e328;let _0x4bb1c0=getComputedStyle(_0x32e2af),_0x4cd960=Number['parseFloat'](_0x4bb1c0['strokeWidth']);return _0x4bb1c0[_0x3dbdd0(0x33a)]===_0x3dbdd0(0x35b)||Number['parseFloat'](_0x4bb1c0[_0x3dbdd0(0x4b9)])===0x0||_0x4bb1c0[_0x3dbdd0(0x3a7)]===_0x3dbdd0(0x282)||!Number['isFinite'](_0x4cd960)||_0x4cd960<=0x0?[]:[{'element':_0x32e2af,'hadStyleAttribute':_0x32e2af[_0x3dbdd0(0x436)]('style'),'originalStrokeWidth':_0x4cd960,'strokeWidth':_0x2309b5(_0x32e2af[_0x3dbdd0(0x30a)],_0x3dbdd0(0x218))}];})[_0x52e328(0x4d8)](_0x3be695=>({'appliedStrokeWidth':null,'element':_0x3be695[_0x52e328(0x315)],'hadStyleAttribute':_0x3be695[_0x52e328(0x4de)],'isReleased':!0x1,'originalStrokeWidth':_0x3be695[_0x52e328(0x382)],'strokeWidth':_0x3be695[_0x52e328(0x4dd)]}));if(_0x278ee6[_0x52e328(0x4e7)]===0x0)return()=>void 0x0;let _0x17ad97=(_0x24b31f,_0x5d3806)=>{const _0x2d1c3b=_0x52e328;if(_0x35370d[_0x2d1c3b(0x50e)]<=0x0||_0x35370d[_0x2d1c3b(0x286)]<=0x0||_0x24b31f<=0x0||_0x5d3806<=0x0)return;let _0xfb6c86=Math[_0x2d1c3b(0x474)](_0x24b31f/_0x35370d[_0x2d1c3b(0x50e)],_0x5d3806/_0x35370d[_0x2d1c3b(0x286)]);!Number[_0x2d1c3b(0x50f)](_0xfb6c86)||_0xfb6c86<=0x0||_0x278ee6['forEach'](_0x8facd9=>{const _0x51922e=_0x2d1c3b;if(_0x8facd9[_0x51922e(0x41e)])return;if(_0x8facd9['appliedStrokeWidth']!==null&&(_0x8facd9[_0x51922e(0x315)]['style']['getPropertyValue'](_0x51922e(0x218))!==_0x8facd9[_0x51922e(0x46d)]||_0x8facd9[_0x51922e(0x315)][_0x51922e(0x30a)]['getPropertyPriority'](_0x51922e(0x218))!==_0x8facd9['strokeWidth']['priority'])){_0x8facd9['appliedStrokeWidth']=null,_0x8facd9[_0x51922e(0x41e)]=!0x0;return;}let _0x488744=_0x8facd9[_0x51922e(0x382)]*_0x1ac982/_0xfb6c86,_0x590b28=Number(_0x488744['toFixed'](0xc))+'px';_0x8facd9['element']['style'][_0x51922e(0x21c)]('stroke-width',_0x590b28,_0x8facd9[_0x51922e(0x4dd)][_0x51922e(0x2b0)]),_0x8facd9[_0x51922e(0x46d)]=_0x590b28;});},_0x116b4f=_0x2f9406[_0x52e328(0x3b1)]();_0x17ad97(_0x116b4f['width'],_0x116b4f[_0x52e328(0x286)]);let _0x215678=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x1b40e2=>{const _0x1a4edb=_0x52e328;if(_0x1b40e2[_0x1a4edb(0x439)](_0xcca23d=>_0xcca23d[_0x1a4edb(0x410)]===_0x2f9406)){let _0x14f3ac=_0x2f9406['getBoundingClientRect']();_0x17ad97(_0x14f3ac[_0x1a4edb(0x50e)],_0x14f3ac[_0x1a4edb(0x286)]);}});return _0x215678==null||_0x215678['observe'](_0x2f9406),()=>{const _0xe14e56=_0x52e328;_0x215678==null||_0x215678[_0xe14e56(0x23b)](),_0x278ee6['forEach'](_0x1a9ad0=>{const _0x56200b=_0xe14e56;_0x1a9ad0[_0x56200b(0x46d)]!==null&&(_0x4274a2(_0x1a9ad0['element'][_0x56200b(0x30a)],'stroke-width',_0x1a9ad0['appliedStrokeWidth'],_0x1a9ad0[_0x56200b(0x4dd)][_0x56200b(0x2b0)],_0x1a9ad0[_0x56200b(0x4dd)]),!_0x1a9ad0[_0x56200b(0x4de)]&&_0x1a9ad0[_0x56200b(0x315)][_0x56200b(0x30a)]['length']===0x0&&_0x1a9ad0[_0x56200b(0x315)][_0x56200b(0x50d)](_0x56200b(0x30a)));});};}function _0x2309b5(_0x5cca67,_0x335ac5){const _0xd72a10=_0x190561;return{'priority':_0x5cca67[_0xd72a10(0x234)](_0x335ac5),'value':_0x5cca67[_0xd72a10(0x208)](_0x335ac5)};}function _0x4274a2(_0x55198e,_0x543b23,_0x39673e,_0x26ef64,_0x5f4145){const _0x2f7a2d=_0x190561;_0x55198e['getPropertyValue'](_0x543b23)===_0x39673e&&_0x55198e[_0x2f7a2d(0x234)](_0x543b23)===_0x26ef64&&(_0x5f4145[_0x2f7a2d(0x284)]?_0x55198e[_0x2f7a2d(0x21c)](_0x543b23,_0x5f4145['value'],_0x5f4145[_0x2f7a2d(0x2b0)]):_0x55198e[_0x2f7a2d(0x497)](_0x543b23));}_0xb23509[_0x190561(0x2e0)]=_0x190561(0x4f0);let _0x2ccd4a={'tag':_0x190561(0x281),'attrs':{'xmlns':_0x190561(0x3b7),'fill':_0x190561(0x35b),'viewBox':'0\x200\x2016\x2016','width':_0x190561(0x432),'height':_0x190561(0x432)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x190561(0x3c5),'d':_0x190561(0x4f3),'strokeLinecap':_0x190561(0x4fd),'strokeLinejoin':_0x190561(0x4fd),'strokeWidth':1.2}}]},{'tag':_0x190561(0x2fc),'attrs':{},'children':[{'tag':_0x190561(0x506),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x190561(0x1f1),'attrs':{'fill':_0x190561(0x3fb),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x190561(0x4c7)]},_0x5c0833=(0x0,_0x10aadf[_0x190561(0x3ce)])(function(_0x23565a,_0x1fcd2a){const _0x46448c=_0x190561;return(0x0,_0x10aadf[_0x46448c(0x24d)])(_0xb23509,Object['assign']({},_0x23565a,{'id':_0x46448c(0x3d1),'ref':_0x1fcd2a,'icon':_0x2ccd4a}));});_0x5c0833['displayName']=_0x190561(0x240);let _0x1052ec={'tag':_0x190561(0x281),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x190561(0x35b),'viewBox':_0x190561(0x1f0),'width':'1em','height':_0x190561(0x432)},'children':[{'tag':'g','attrs':{'clipPath':_0x190561(0x245)},'children':[{'tag':'path','attrs':{'stroke':_0x190561(0x3c5),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x190561(0x4fd),'strokeLinejoin':_0x190561(0x4fd),'strokeWidth':1.2}}]},{'tag':_0x190561(0x2fc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x190561(0x330)},'children':[{'tag':_0x190561(0x1f1),'attrs':{'fill':_0x190561(0x3fb),'d':_0x190561(0x4c0),'transform':_0x190561(0x212)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x35eb27=(0x0,_0x10aadf[_0x190561(0x3ce)])(function(_0x70b09e,_0x223c5f){const _0x3810e2=_0x190561;return(0x0,_0x10aadf[_0x3810e2(0x24d)])(_0xb23509,Object[_0x3810e2(0x4f8)]({},_0x70b09e,{'id':'on-line-icon','ref':_0x223c5f,'icon':_0x1052ec}));});_0x35eb27[_0x190561(0x2e0)]='OnLineIcon';let _0x56e4da={'tag':'svg','attrs':{'xmlns':_0x190561(0x3b7),'fill':_0x190561(0x35b),'viewBox':_0x190561(0x2e8),'width':_0x190561(0x432),'height':'1em'},'children':[{'tag':_0x190561(0x1f1),'attrs':{'fill':_0x190561(0x3c5),'d':_0x190561(0x34f),'fillRule':'evenodd','clipRule':_0x190561(0x45e)}}]},_0x2b1ee7=(0x0,_0x10aadf['forwardRef'])(function(_0x3aff87,_0x441f0c){const _0xb2c67e=_0x190561;return(0x0,_0x10aadf[_0xb2c67e(0x24d)])(_0xb23509,Object['assign']({},_0x3aff87,{'id':_0xb2c67e(0x334),'ref':_0x441f0c,'icon':_0x56e4da}));});_0x2b1ee7[_0x190561(0x2e0)]=_0x190561(0x2b2);let _0x22fcd7={'tag':_0x190561(0x281),'attrs':{'xmlns':_0x190561(0x3b7),'fill':_0x190561(0x35b),'viewBox':_0x190561(0x2e8),'width':_0x190561(0x432),'height':_0x190561(0x432)},'children':[{'tag':_0x190561(0x1f1),'attrs':{'fill':_0x190561(0x3cc),'d':'M8.79993\x2014.0166C8.79993\x2014.4585\x208.44176\x2014.8166\x207.99993\x2014.8166C4.23529\x2014.8166\x201.18345\x2011.7648\x201.18345\x208.00017C1.18345\x204.23554\x204.23529\x201.18369\x207.99993\x201.1837C11.7646\x201.1837\x2014.8164\x204.23554\x2014.8164\x208.00017C14.8164\x208.442\x2014.4582\x208.80017\x2014.0164\x208.80017C13.5746\x208.80017\x2013.2164\x208.442\x2013.2164\x208.00017C13.2164\x205.11919\x2010.8809\x202.7837\x207.99993\x202.7837C5.11895\x202.7837\x202.78345\x205.11919\x202.78345\x208.00017C2.78345\x2010.8812\x205.11895\x2013.2166\x207.99993\x2013.2166C8.44176\x2013.2166\x208.79993\x2013.5748\x208.79993\x2014.0166Z','fillOpacity':0.2,'fillRule':'evenodd','clipRule':'evenodd'}},{'tag':_0x190561(0x1f1),'attrs':{'fill':_0x190561(0x3cc),'d':_0x190561(0x32c),'fillRule':_0x190561(0x45e),'clipRule':_0x190561(0x45e)}}]},_0x517896=(0x0,_0x10aadf[_0x190561(0x3ce)])(function(_0x123885,_0x3df720){const _0x2a97f7=_0x190561;return(0x0,_0x10aadf['createElement'])(_0xb23509,Object[_0x2a97f7(0x4f8)]({},_0x123885,{'id':_0x2a97f7(0x458),'ref':_0x3df720,'icon':_0x22fcd7}));});_0x517896[_0x190561(0x2e0)]=_0x190561(0x44d);function _0x3f0c38(_0x127c00){const _0x8b622e=_0x190561;switch(_0x127c00){case _0x3107d6[_0x8b622e(0x203)][_0x8b622e(0x3e7)]:return{'icon':(0x0,_0x404f0d['jsx'])(_0x5c0833,{}),'colorClass':'univer-text-red-500','i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x8b622e(0x500),'clickable':!0x0,'indicator':_0x8b622e(0x247)};case _0x3107d6[_0x8b622e(0x203)][_0x8b622e(0x1fa)]:return{'icon':(0x0,_0x404f0d[_0x8b622e(0x2d8)])(_0x5c0833,{}),'colorClass':'univer-text-orange-500','i18nKey':_0x8b622e(0x493),'clickable':!0x1,'indicator':'static'};case _0x3107d6[_0x8b622e(0x203)]['FETCH_MISS']:return{'icon':(0x0,_0x404f0d['jsx'])(_0x517896,{}),'colorClass':_0x8b622e(0x202),'i18nKey':_0x8b622e(0x2a8),'clickable':!0x1,'indicator':_0x8b622e(0x265)};case _0x3107d6[_0x8b622e(0x203)]['NOT_COLLAB']:return{'icon':(0x0,_0x404f0d[_0x8b622e(0x2d8)])(_0x35eb27,{}),'colorClass':_0x8b622e(0x1bf),'i18nKey':_0x8b622e(0x377),'clickable':!0x1,'indicator':'static'};case _0x3107d6[_0x8b622e(0x203)][_0x8b622e(0x4f6)]:case _0x3107d6['CollaborationStatus']['AWAITING_WITH_PENDING']:return{'icon':(0x0,_0x404f0d['jsx'])(_0x517896,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x8b622e(0x265)};case _0x3107d6[_0x8b622e(0x203)][_0x8b622e(0x295)]:return{'icon':(0x0,_0x404f0d[_0x8b622e(0x2d8)])(_0x517896,{}),'colorClass':_0x8b622e(0x202),'i18nKey':_0x8b622e(0x3e4),'clickable':!0x1,'indicator':_0x8b622e(0x265)};case _0x3107d6[_0x8b622e(0x203)][_0x8b622e(0x2dc)]:return{'icon':(0x0,_0x404f0d[_0x8b622e(0x2d8)])(_0x35eb27,{}),'colorClass':_0x8b622e(0x3ef),'i18nKey':_0x8b622e(0x2a7),'clickable':!0x1,'indicator':_0x8b622e(0x247)};}}function _0xfd71f9(_0x574ecf){const _0x43557f=_0x190561;let {status$:_0x18379c}=_0x574ecf,_0xce1b7b=(0x0,_0x543d66[_0x43557f(0x301)])(_0x18379c,_0x3107d6['CollaborationStatus'][_0x43557f(0x21b)]),_0x1f696a=(0x0,_0x543d66[_0x43557f(0x219)])(_0x263090['LocaleService']),_0x5525e9=(0x0,_0x543d66[_0x43557f(0x219)])(_0x3107d6[_0x43557f(0x1f7)]),_0x4ef5dc=(0x0,_0x10aadf[_0x43557f(0x3e3)])(()=>_0x3f0c38(_0xce1b7b),[_0xce1b7b]),_0x31756d=_0xce1b7b!==_0x3107d6[_0x43557f(0x203)][_0x43557f(0x3e7)],_0x384bc3=_0x1f696a['t'](_0x4ef5dc['i18nKey']),_0x38ad14=_0x4ef5dc[_0x43557f(0x261)]?_0x1f696a['t'](_0x4ef5dc[_0x43557f(0x261)]):_0x384bc3,_0x1553b1=(0x0,_0x10aadf[_0x43557f(0x34a)])(()=>{const _0x57811f=_0x43557f;_0x31756d||_0x5525e9[_0x57811f(0x367)]();},[_0x31756d,_0x5525e9]),_0x5760a9=(0x0,_0x10aadf['useCallback'])(_0x2186fa=>{const _0x2310a4=_0x43557f;_0x31756d||_0x2186fa[_0x2310a4(0x372)]!==_0x2310a4(0x405)&&_0x2186fa[_0x2310a4(0x372)]!=='\x20'||(_0x2186fa[_0x2310a4(0x3a2)](),_0x5525e9['reconnect']());},[_0x31756d,_0x5525e9]),_0x4e23d9=(0x0,_0x404f0d[_0x43557f(0x2d8)])(_0x43557f(0x3aa),{'className':(0x0,_0x12c3fa[_0x43557f(0x42c)])(_0x43557f(0x395),_0x43557f(0x339),_0x4ef5dc[_0x43557f(0x2f0)],{'univer-animate-spin':_0x4ef5dc[_0x43557f(0x270)]===_0x43557f(0x265),'univer-animate-pulse':_0x4ef5dc[_0x43557f(0x270)]===_0x43557f(0x3dd)}),'aria-hidden':_0x43557f(0x4a3),'children':_0x4ef5dc['icon']}),_0x3cfbd5=(0x0,_0x404f0d[_0x43557f(0x2d8)])(_0x43557f(0x3aa),{'className':(0x0,_0x12c3fa[_0x43557f(0x42c)])(_0x43557f(0x395),_0x43557f(0x38f),_0x43557f(0x276),_0x43557f(0x34b),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x4ef5dc[_0x43557f(0x37a)],'univer-cursor-default':!_0x4ef5dc['clickable']}),'children':_0x4e23d9});return _0x4ef5dc['clickable']?(0x0,_0x404f0d['jsx'])(_0x12c3fa[_0x43557f(0x313)],{'title':_0x38ad14,'placement':_0x43557f(0x31e),'children':(0x0,_0x404f0d['jsx'])(_0x43557f(0x2e5),{'type':_0x43557f(0x2e5),'onClick':_0x1553b1,'onKeyDown':_0x5760a9,'className':(0x0,_0x12c3fa['clsx'])(_0x43557f(0x324),'univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0x384bc3+_0x43557f(0x3c7)+_0x38ad14,'role':_0x43557f(0x26e),'aria-live':_0x43557f(0x323),'aria-atomic':_0x43557f(0x4a3),'children':_0x3cfbd5})}):(0x0,_0x404f0d['jsx'])(_0x12c3fa['Tooltip'],{'title':_0x38ad14,'placement':_0x43557f(0x31e),'children':(0x0,_0x404f0d['jsx'])(_0x43557f(0x2b4),{'className':(0x0,_0x12c3fa[_0x43557f(0x42c)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent',_0x43557f(0x4df)),'aria-label':_0x384bc3,'role':_0x43557f(0x26e),'aria-live':_0x43557f(0x323),'aria-atomic':_0x43557f(0x4a3),'children':_0x3cfbd5})});}function _0x4af659(_0x12e1be){'@babel/helpers - typeof';const _0x2822f3=_0x190561;return _0x4af659=typeof Symbol==_0x2822f3(0x4c6)&&typeof Symbol['iterator']==_0x2822f3(0x302)?function(_0x11944a){return typeof _0x11944a;}:function(_0x4cd0d8){const _0x59fe07=_0x2822f3;return _0x4cd0d8&&typeof Symbol=='function'&&_0x4cd0d8['constructor']===Symbol&&_0x4cd0d8!==Symbol[_0x59fe07(0x50a)]?_0x59fe07(0x302):typeof _0x4cd0d8;},_0x4af659(_0x12e1be);}function _0x2af39b(_0xffeb2e,_0x34d7a4){const _0x4730d1=_0x190561;if(_0x4af659(_0xffeb2e)!='object'||!_0xffeb2e)return _0xffeb2e;var _0x57df2d;if(typeof Symbol<'u'&&(_0x57df2d=_0xffeb2e[Symbol[_0x4730d1(0x3cb)]])!==void 0x0){var _0x4114a0=_0x57df2d[_0x4730d1(0x1f8)](_0xffeb2e,_0x34d7a4||_0x4730d1(0x253));if(_0x4af659(_0x4114a0)!='object')return _0x4114a0;throw TypeError(_0x4730d1(0x4e4));}return(_0x34d7a4===_0x4730d1(0x1ef)?String:Number)(_0xffeb2e);}function _0x66a199(_0x1ce9e8){const _0x543114=_0x190561;var _0x4dcdfb=_0x2af39b(_0x1ce9e8,_0x543114(0x1ef));return _0x4af659(_0x4dcdfb)==_0x543114(0x302)?_0x4dcdfb:_0x4dcdfb+'';}function _0x312734(_0x18212f,_0x2a6ac8,_0x3d8f2f){const _0x1b251c=_0x190561;return(_0x2a6ac8=_0x66a199(_0x2a6ac8))in _0x18212f?Object[_0x1b251c(0x255)](_0x18212f,_0x2a6ac8,{'value':_0x3d8f2f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18212f[_0x2a6ac8]=_0x3d8f2f,_0x18212f;}function _0x2cd89e(_0x2c69d9,_0x375253){return function(_0x2ef2bb,_0x6c4ea3){_0x375253(_0x2ef2bb,_0x6c4ea3,_0x2c69d9);};}function _0x31453e(_0x19a933,_0x50b6b0,_0x3c9fe1,_0x6d20a6){const _0x252381=_0x190561;var _0x8aa827=arguments[_0x252381(0x4e7)],_0x4e6f84=_0x8aa827<0x3?_0x50b6b0:_0x6d20a6===null?_0x6d20a6=Object['getOwnPropertyDescriptor'](_0x50b6b0,_0x3c9fe1):_0x6d20a6,_0x433f34;if(typeof Reflect==_0x252381(0x390)&&typeof Reflect['decorate']=='function')_0x4e6f84=Reflect[_0x252381(0x50b)](_0x19a933,_0x50b6b0,_0x3c9fe1,_0x6d20a6);else{for(var _0x8d74d8=_0x19a933['length']-0x1;_0x8d74d8>=0x0;_0x8d74d8--)(_0x433f34=_0x19a933[_0x8d74d8])&&(_0x4e6f84=(_0x8aa827<0x3?_0x433f34(_0x4e6f84):_0x8aa827>0x3?_0x433f34(_0x50b6b0,_0x3c9fe1,_0x4e6f84):_0x433f34(_0x50b6b0,_0x3c9fe1))||_0x4e6f84);}return _0x8aa827>0x3&&_0x4e6f84&&Object[_0x252381(0x255)](_0x50b6b0,_0x3c9fe1,_0x4e6f84),_0x4e6f84;}let _0x3e2031=class extends _0x263090[_0x190561(0x363)]{constructor(_0x5be2a9,_0x22eb5c,_0x2e9c22,_0x356918,_0xf76e58){const _0x15ccf1=_0x190561;super(),this[_0x15ccf1(0x211)]=_0x5be2a9,this['_injector']=_0x22eb5c,this[_0x15ccf1(0x29d)]=_0x2e9c22,this[_0x15ccf1(0x4cb)]=_0x356918,this[_0x15ccf1(0x511)]=_0xf76e58,_0x312734(this,_0x15ccf1(0x425),new _0x4c31a2[(_0x15ccf1(0x2fa))](_0x3107d6['CollaborationStatus'][_0x15ccf1(0x21b)])),_0x312734(this,_0x15ccf1(0x46b),new Map()),this[_0x15ccf1(0x507)](),this[_0x15ccf1(0x338)](),this[_0x15ccf1(0x2ae)]();}['dispose'](){const _0x249ee9=_0x190561;this['_presenceStatusRegistrations'][_0x249ee9(0x4d5)](_0x4beebe=>_0x4beebe[_0x249ee9(0x508)]()),this[_0x249ee9(0x46b)][_0x249ee9(0x4d4)](),this[_0x249ee9(0x425)]['complete'](),super[_0x249ee9(0x508)]();}['_initStatusListener'](){const _0x5ae832=_0x190561;this[_0x5ae832(0x1bd)]((0x0,_0x4c31a2['merge'])(this[_0x5ae832(0x211)][_0x5ae832(0x4dc)],this['_univerInstanceService'][_0x5ae832(0x1db)](_0x263090[_0x5ae832(0x306)][_0x5ae832(0x3b6)]),this[_0x5ae832(0x211)]['getCurrentTypeOfUnit$'](_0x263090[_0x5ae832(0x306)][_0x5ae832(0x44a)]))[_0x5ae832(0x28d)]((0x0,_0x1b375c[_0x5ae832(0x4d8)])(()=>_0x1e2573(this[_0x5ae832(0x211)])),(0x0,_0x1b375c[_0x5ae832(0x4eb)])(),(0x0,_0x4c31a2[_0x5ae832(0x361)])(_0x35241c=>_0x35241c?this[_0x5ae832(0x29d)][_0x5ae832(0x3a8)](_0x35241c):(0x0,_0x4c31a2['of'])(null)),(0x0,_0x4c31a2[_0x5ae832(0x361)])(_0x15409d=>_0x15409d?_0x15409d['status$']:(0x0,_0x4c31a2['of'])(_0x3107d6[_0x5ae832(0x203)]['NOT_COLLAB'])))[_0x5ae832(0x2b8)](_0x45674f=>{const _0x5cbac4=_0x5ae832;this[_0x5cbac4(0x425)][_0x5cbac4(0x344)](_0x45674f);}));}[_0x190561(0x507)](){const _0x324296=_0x190561;this['disposeWithMe'](this[_0x324296(0x4cb)]['registerComponent'](_0x543d66[_0x324296(0x1d8)][_0x324296(0x27c)],()=>(0x0,_0x543d66['connectInjector'])(_0x4a1dcc({'status$':this[_0x324296(0x425)][_0x324296(0x31c)]()}),this[_0x324296(0x1b8)])));}[_0x190561(0x2ae)](){const _0x231387=_0x190561;let _0x35539c=this[_0x231387(0x511)][_0x231387(0x3e1)][_0x231387(0x2b8)](_0x41cede=>{this['_syncPresenceStatusComponents'](_0x41cede);});this[_0x231387(0x1bd)]((0x0,_0x263090['toDisposable'])(()=>_0x35539c[_0x231387(0x351)]()));}['_syncPresenceStatusComponents'](_0x4243f1){const _0x218511=_0x190561;let _0x102c1c=new Map(_0x4243f1['filter'](_0x550d87=>_0x550d87[_0x218511(0x3ad)]!=null)[_0x218511(0x4d8)](_0xbcdf0c=>[_0xbcdf0c['unitType'],_0xbcdf0c]));this['_presenceStatusRegistrations'][_0x218511(0x4d5)]((_0x4e6e58,_0x4e426a)=>{const _0x579566=_0x218511;_0x102c1c[_0x579566(0x386)](_0x4e426a)||(_0x4e6e58[_0x579566(0x508)](),this[_0x579566(0x46b)][_0x579566(0x4d7)](_0x4e426a));}),_0x102c1c[_0x218511(0x4d5)]((_0x28a4c5,_0x11e3b7)=>{const _0x2340a0=_0x218511;this[_0x2340a0(0x46b)][_0x2340a0(0x386)](_0x11e3b7)||this[_0x2340a0(0x447)](_0x28a4c5);});}['_registerPresenceStatusComponent'](_0x57bffe){const _0x345d05=_0x190561;let _0x434310=_0x57bffe[_0x345d05(0x3ad)];if(!_0x434310)return;let _0x52390f=new _0x263090['DisposableCollection'](),_0x315f5f=new _0x4c31a2[(_0x345d05(0x2fa))](_0x3107d6['CollaborationStatus']['NOT_COLLAB']);_0x52390f[_0x345d05(0x4f9)]((0x0,_0x263090[_0x345d05(0x2e4)])(()=>_0x315f5f[_0x345d05(0x279)]())),_0x52390f[_0x345d05(0x4f9)](this[_0x345d05(0x4cb)]['registerComponent'](_0x434310,()=>(0x0,_0x543d66[_0x345d05(0x1c1)])(_0x4a1dcc({'status$':_0x315f5f[_0x345d05(0x31c)]()}),this['_injector'])));let _0x2f029f=this[_0x345d05(0x211)]['getCurrentTypeOfUnit$'](_0x57bffe[_0x345d05(0x3f1)])[_0x345d05(0x28d)]((0x0,_0x1b375c[_0x345d05(0x4d8)])(_0x47a023=>(_0x47a023==null?void 0x0:_0x47a023['getUnitId']())??null),(0x0,_0x1b375c['distinctUntilChanged'])(),(0x0,_0x4c31a2['switchMap'])(_0x3482a2=>_0x3482a2?this[_0x345d05(0x29d)]['getCollabEntity$'](_0x3482a2):(0x0,_0x4c31a2['of'])(null)),(0x0,_0x4c31a2[_0x345d05(0x361)])(_0xdb3e9=>(_0xdb3e9==null?void 0x0:_0xdb3e9[_0x345d05(0x2b5)])??(0x0,_0x4c31a2['of'])(_0x3107d6[_0x345d05(0x203)][_0x345d05(0x21b)])))[_0x345d05(0x2b8)](_0x36986b=>_0x315f5f[_0x345d05(0x344)](_0x36986b));_0x52390f[_0x345d05(0x4f9)]((0x0,_0x263090['toDisposable'])(()=>_0x2f029f[_0x345d05(0x351)]())),this[_0x345d05(0x46b)]['set'](_0x57bffe[_0x345d05(0x3f1)],_0x52390f);}};_0x3e2031=_0x31453e([_0x2cd89e(0x0,_0x263090[_0x190561(0x48d)]),_0x2cd89e(0x1,(0x0,_0x263090['Inject'])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6[_0x190561(0x3d9)])),_0x2cd89e(0x3,_0x543d66[_0x190561(0x4da)]),_0x2cd89e(0x4,(0x0,_0x263090[_0x190561(0x413)])(_0x543d66['IUnitPresenceUIAdapterRegistry']))],_0x3e2031);function _0x1e2573(_0x3bd994){const _0x12b720=_0x190561;let _0x4e3930=_0x3bd994['getFocusedUnit'](),_0x3efddb=_0x4e3930==null?void 0x0:_0x4e3930['getUnitId']();if(_0x3efddb&&!(0x0,_0x263090[_0x12b720(0x44f)])(_0x3efddb))return _0x3efddb;let _0x2696e4=_0x3bd994[_0x12b720(0x2ec)](_0x263090['UniverInstanceType'][_0x12b720(0x3b6)]),_0xad1a10=_0x2696e4==null?void 0x0:_0x2696e4[_0x12b720(0x20f)]();if(_0xad1a10&&!(0x0,_0x263090[_0x12b720(0x44f)])(_0xad1a10))return _0xad1a10;let _0x5a44b9=_0x3bd994[_0x12b720(0x2ec)](_0x263090[_0x12b720(0x306)][_0x12b720(0x44a)]);if(_0x5a44b9)return _0x5a44b9[_0x12b720(0x20f)]();let _0x5e97e7=_0x3bd994[_0x12b720(0x39c)](_0x263090[_0x12b720(0x306)][_0x12b720(0x3b6)])[_0x12b720(0x272)](_0x4aaf25=>!(0x0,_0x263090[_0x12b720(0x44f)])(_0x4aaf25[_0x12b720(0x20f)]()));return _0x5e97e7?_0x5e97e7['getUnitId']():null;}function _0x4a1dcc(_0x246573){let {status$:_0x4d881f}=_0x246573;return function(){const _0x4baf69=_0x229d;return(0x0,_0x404f0d[_0x4baf69(0x2d8)])(_0xfd71f9,{'status$':_0x4d881f});};}var _0x4d6d3b=_0x190561(0x514),_0x1e4709=_0x190561(0x44c);let _0x14f854={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':_0x263090[_0x190561(0x345)][_0x190561(0x304)],'handler':(_0xeb8b99,_0xfe63ac)=>{const _0x2b7f66=_0x190561;let _0x3750db=_0xeb8b99[_0x2b7f66(0x38c)](_0x543d66['IUnitPresenceUIAdapterRegistry'])['get'](_0xfe63ac[_0x2b7f66(0x3f1)]);if(!_0x3750db)return!0x1;switch(_0xfe63ac[_0x2b7f66(0x226)][_0x2b7f66(0x504)]){case _0x2b7f66(0x1b0):return _0x3750db['setRemotePresence'](_0xfe63ac[_0x2b7f66(0x226)][_0x2b7f66(0x36c)]),!0x0;case _0x2b7f66(0x215):return _0x3750db[_0x2b7f66(0x3ff)](_0xfe63ac[_0x2b7f66(0x226)][_0x2b7f66(0x314)],_0xfe63ac[_0x2b7f66(0x226)][_0x2b7f66(0x4c3)]),!0x0;case _0x2b7f66(0x4d4):return _0x3750db[_0x2b7f66(0x243)](_0xfe63ac[_0x2b7f66(0x226)][_0x2b7f66(0x314)]),!0x0;default:return!0x1;}}},_0x38ddb6={},_0x220a17=class extends _0x263090['RxDisposable']{constructor(_0x30012c,_0x113573){const _0xe7e4ce=_0x190561;super(),this[_0xe7e4ce(0x2c0)]=_0x30012c,this['_imageIoService']=_0x113573,this['_init']();}[_0x190561(0x23e)](){const _0x2c77a3=_0x190561;let _0x7c7aa=this;this['disposeWithMe'](this[_0x2c77a3(0x2c0)]['addClipboardHook']({'onBeforePasteImage':async _0x119455=>{const _0x3f8029=_0x2c77a3;let _0x2ede6d=await _0x7c7aa['_imageIoService'][_0x3f8029(0x289)](_0x119455);return _0x2ede6d?{'source':_0x2ede6d[_0x3f8029(0x2cf)],'imageSourceType':_0x2ede6d[_0x3f8029(0x1c9)]}:null;}}));}};_0x220a17=_0x31453e([_0x2cd89e(0x0,_0x2bd024[_0x190561(0x328)]),_0x2cd89e(0x1,_0x263090[_0x190561(0x223)])],_0x220a17);let _0x1fe2a7=['purple.300','jiqing.500',_0x190561(0x4c2),'red.300',_0x190561(0x25c),'yellow.400'];var _0x31e883=class extends _0x263090[_0x190561(0x363)]{constructor(..._0x5cb4b){const _0x14ecbc=_0x190561;super(..._0x5cb4b),_0x312734(this,'_assignedColors',new Map()),_0x312734(this,_0x14ecbc(0x423),0x0);}[_0x190561(0x44e)](_0x48be5f){const _0x4342e8=_0x190561;if(this[_0x4342e8(0x233)]['has'](_0x48be5f))return this[_0x4342e8(0x233)][_0x4342e8(0x38c)](_0x48be5f);let _0x2b3ea3=_0x1fe2a7[this[_0x4342e8(0x423)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x1fe2a7[_0x4342e8(0x4e7)],this[_0x4342e8(0x233)][_0x4342e8(0x1b0)](_0x48be5f,_0x2b3ea3),_0x2b3ea3;}};function _0x2b0d22(_0x1fd4b9){const _0x5275c6=_0x190561;let _0x36fd90='';for(let _0x20dfaf of _0x1fd4b9){let {startOffset:_0x1c0c50,endOffset:_0x227f31,isActive:_0x550bb5,rangeType:_0x3ffc35,segmentId:_0x24d355,segmentPage:_0x45bdc3}=_0x20dfaf;_0x36fd90[_0x5275c6(0x4e7)]&&(_0x36fd90+=','),_0x36fd90+=_0x1c0c50+':'+_0x227f31+':'+(_0x550bb5?'1':'0')+':'+_0x3ffc35+':'+_0x24d355+':'+_0x45bdc3;}return _0x36fd90;}function _0x3a8925(_0x4a9bc0){const _0x3b6176=_0x190561;let _0x1c3331=_0x4a9bc0[_0x3b6176(0x1fb)](','),_0x148020=[];for(let _0x14bf8f of _0x1c3331){let [_0x230add,_0x185735,_0x5eacea,_0x3a0159,_0x2bc5ce,_0x50bb0a]=_0x14bf8f[_0x3b6176(0x1fb)](':');_0x148020[_0x3b6176(0x242)]({'startOffset':Number(_0x230add),'endOffset':Number(_0x185735),'collapsed':_0x230add===_0x185735,'isActive':_0x5eacea==='1','rangeType':_0x3a0159===_0x263090[_0x3b6176(0x38e)]['TEXT']?_0x263090[_0x3b6176(0x38e)][_0x3b6176(0x4fb)]:_0x263090[_0x3b6176(0x38e)][_0x3b6176(0x509)],'segmentId':typeof _0x2bc5ce==_0x3b6176(0x1ef)?String(_0x2bc5ce):'','segmentPage':Number(_0x50bb0a??-0x1)});}return _0x148020['some'](_0x46f236=>_0x46f236[_0x3b6176(0x472)])||(_0x148020[0x0][_0x3b6176(0x472)]=!0x0),_0x148020;}var _0x414f0d=class extends _0x263090['RxDisposable']{constructor(..._0x55d9f4){const _0x3f2c0a=_0x190561;super(..._0x55d9f4),_0x312734(this,'_collabCursorState$',new _0x4c31a2[(_0x3f2c0a(0x2fa))](null)),_0x312734(this,_0x3f2c0a(0x2da),this[_0x3f2c0a(0x36e)]['asObservable']());}[_0x190561(0x3a9)](_0x183697){const _0x38488a=_0x190561;let {unitID:_0x40c8a5,memberID:_0x504c0f,textRanges:_0x2156b7}=_0x183697,_0x4b942f=_0x2b0d22(_0x2156b7);if(_0x4b942f==='')return;let _0x1fce2d={'unitID':_0x40c8a5,'memberID':_0x504c0f,'selection':_0x4b942f};this['_collabCursorState$'][_0x38488a(0x344)](_0x1fce2d);}};let _0x17d021=class extends _0x263090[_0x190561(0x488)]{get['cursorInfo'](){const _0x5c749c=_0x190561;return this[_0x5c749c(0x26c)][_0x5c749c(0x3be)]();}get[_0x190561(0x319)](){const _0x31d578=_0x190561;return this[_0x31d578(0x3a3)][_0x31d578(0x3be)]();}constructor(_0x4ccb26,_0x153ba4,_0x21cb72,_0x1e0333,_0x496e3e,_0x23f7da,_0x17cdc0,_0x122aec,_0x4afe8c){const _0x20ef88=_0x190561;super(),this[_0x20ef88(0x4c1)]=_0x4ccb26,this[_0x20ef88(0x2a5)]=_0x153ba4,this[_0x20ef88(0x1b8)]=_0x21cb72,this[_0x20ef88(0x4e5)]=_0x1e0333,this[_0x20ef88(0x2d0)]=_0x496e3e,this['_syncEditingCollabCursorService']=_0x23f7da,this['_transformService']=_0x17cdc0,this[_0x20ef88(0x211)]=_0x122aec,this[_0x20ef88(0x49c)]=_0x4afe8c,_0x312734(this,_0x20ef88(0x4e6),!0x1),_0x312734(this,_0x20ef88(0x23e),!0x1),_0x312734(this,'_cursorInfo$',new _0x4c31a2['BehaviorSubject'](new Map())),_0x312734(this,'cursorInfo$',this[_0x20ef88(0x26c)][_0x20ef88(0x31c)]()),_0x312734(this,_0x20ef88(0x3a3),new _0x4c31a2['BehaviorSubject']([])),_0x312734(this,_0x20ef88(0x292),this[_0x20ef88(0x3a3)]['pipe']((0x0,_0x4c31a2[_0x20ef88(0x2de)])(0x12c))),_0x312734(this,_0x20ef88(0x4ff),(0x0,_0x263090[_0x20ef88(0x1dc)])(_0x5c921d=>{const _0x5e8228=_0x20ef88;let _0xed9975={'eventID':_0x5eadb5[_0x5e8228(0x244)][_0x5e8228(0x462)],'data':{'unitID':this[_0x5e8228(0x4c1)],'memberID':this[_0x5e8228(0x2a5)][_0x5e8228(0x24a)](),'selection':_0x2b0d22(_0x5c921d)}};this[_0x5e8228(0x2a5)][_0x5e8228(0x1f2)](_0xed9975,this[_0x5e8228(0x4c1)]);},0x64));}[_0x190561(0x508)](){const _0x2a5646=_0x190561;super[_0x2a5646(0x508)](),this[_0x2a5646(0x26c)][_0x2a5646(0x344)](new Map()),this['_cursorInfo$'][_0x2a5646(0x279)](),this[_0x2a5646(0x3a3)]['next']([]),this[_0x2a5646(0x3a3)]['complete']();}[_0x190561(0x400)](){const _0x4a6ea=_0x190561;this['_init']||(this[_0x4a6ea(0x23e)]=!0x0,this[_0x4a6ea(0x2a5)][_0x4a6ea(0x343)][_0x4a6ea(0x28d)]((0x0,_0x4c31a2[_0x4a6ea(0x31d)])(this['dispose$']))[_0x4a6ea(0x2b8)](_0x3ab528=>{const _0x249d98=_0x4a6ea;_0x3ab528===_0x3107d6['SessionStatus'][_0x249d98(0x3ee)]?this[_0x249d98(0x2f5)]():this[_0x249d98(0x364)]();}),this[_0x4a6ea(0x2a5)][_0x4a6ea(0x294)][_0x4a6ea(0x28d)]((0x0,_0x4c31a2[_0x4a6ea(0x31d)])(this[_0x4a6ea(0x448)]))['subscribe'](_0x29932d=>{const _0x270188=_0x4a6ea;let _0x12d0f6=_0x29932d[_0x270188(0x47b)];_0x12d0f6===_0x5eadb5[_0x270188(0x244)][_0x270188(0x462)]&&this[_0x270188(0x2aa)](_0x29932d),_0x12d0f6===_0x5eadb5[_0x270188(0x244)][_0x270188(0x39e)]&&this[_0x270188(0x264)](_0x29932d);}),this[_0x4a6ea(0x1bd)](this['_commandService']['onCommandExecuted'](_0x5630d9=>{const _0x586fe1=_0x4a6ea;let _0x38b5eb=_0x5630d9[_0x586fe1(0x498)];_0x38b5eb!=null&&this[_0x586fe1(0x4e6)]&&_0x5630d9['id']===_0x33e872['SetTextSelectionsOperation']['id']&&_0x38b5eb[_0x586fe1(0x314)]===this[_0x586fe1(0x4c1)]&&_0x38b5eb[_0x586fe1(0x3b3)]===!0x1&&_0x38b5eb[_0x586fe1(0x435)][_0x586fe1(0x4e7)]>0x0&&this[_0x586fe1(0x4ff)](_0x38b5eb['ranges']);})),this['_syncEditingCollabCursorService'][_0x4a6ea(0x2da)]['pipe']((0x0,_0x4c31a2[_0x4a6ea(0x31d)])(this['dispose$']))[_0x4a6ea(0x2b8)](_0x3d2ac9=>{const _0x3df990=_0x4a6ea;if((_0x3d2ac9==null?void 0x0:_0x3d2ac9[_0x3df990(0x4c1)])!==this['unitID'])return;let _0x36a8cc={'eventID':_0x5eadb5[_0x3df990(0x244)]['UPDATE_CURSOR'],'data':_0x3d2ac9};this[_0x3df990(0x2aa)](_0x36a8cc);}),this['disposeWithMe'](this[_0x4a6ea(0x49c)]['onCommandExecuted'](_0x199505=>{const _0xafce4d=_0x4a6ea;if(_0x199505[_0xafce4d(0x498)]==null)return;let _0x5b8126=_0x199505[_0xafce4d(0x498)];if(_0x199505['id']!==_0x33e872[_0xafce4d(0x457)]['id']||_0x5b8126['unitId']!==this['unitID'])return;let _0x1a5aa9={'id':_0xafce4d(0x262),'params':_0x5b8126},_0x33bcb9=this[_0xafce4d(0x1b4)];for(let [_0x1985b3,_0x1ea706]of _0x33bcb9){let _0x2a8374={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xafce4d(0x4c1)],'actions':null,'textRanges':_0x1ea706[_0xafce4d(0x435)]}},_0x19f15c=this[_0xafce4d(0x479)]['transformMutation'](_0x1a5aa9,_0x2a8374,!0x1);if((0x0,_0x5eadb5[_0xafce4d(0x303)])(_0x19f15c))throw _0x19f15c[_0xafce4d(0x396)];_0x33bcb9['set'](_0x1985b3,{..._0x1ea706,'ranges':_0x19f15c['m2Prime'][_0xafce4d(0x498)][_0xafce4d(0x1e2)]});}queueMicrotask(()=>{const _0xf2b354=_0xafce4d;this['_cursorInfo$'][_0xf2b354(0x344)](_0x33bcb9);});})));}[_0x190561(0x2aa)](_0x396f5c){const _0x1e49d0=_0x190561;var _0x5cfcc8;let {memberID:_0x393a71,selection:_0x4a5b1e}=_0x396f5c[_0x1e49d0(0x407)],_0x1df025=_0x3a8925(_0x4a5b1e),_0x5e5fea=((_0x5cfcc8=this[_0x1e49d0(0x2d0)][_0x1e49d0(0x2a0)](this[_0x1e49d0(0x4c1)],_0x393a71))==null?void 0x0:_0x5cfcc8[_0x1e49d0(0x45c)])??_0x1e49d0(0x1ea),_0x2e33c3={'color':this['_colorAssignService'][_0x1e49d0(0x44e)](_0x393a71),'name':_0x5e5fea,'ranges':_0x1df025},_0x3cd662=this[_0x1e49d0(0x1b4)];_0x3cd662[_0x1e49d0(0x1b0)](_0x393a71,_0x2e33c3),this[_0x1e49d0(0x26c)][_0x1e49d0(0x344)](_0x3cd662);}[_0x190561(0x264)](_0x5de2d9){const _0x307389=_0x190561;let {memberID:_0x48550d}=_0x5de2d9['data'],_0x1541a5=this[_0x307389(0x1b4)];_0x1541a5['delete'](_0x48550d),this[_0x307389(0x26c)]['next'](_0x1541a5);}['_toggleOnline'](){const _0x27d6f2=_0x190561;var _0x209012;if(this[_0x27d6f2(0x4e6)]=!0x0,((_0x209012=this[_0x27d6f2(0x211)][_0x27d6f2(0x333)]())==null?void 0x0:_0x209012[_0x27d6f2(0x20f)]())!==this['unitID'])return;let _0x1d4dbe=this[_0x27d6f2(0x1b8)][_0x27d6f2(0x38c)](_0x33e872[_0x27d6f2(0x4f5)])[_0x27d6f2(0x1e1)]();Array['isArray'](_0x1d4dbe)&&_0x1d4dbe[_0x27d6f2(0x4e7)]>0x0&&this[_0x27d6f2(0x4ff)](_0x1d4dbe);}['_toggleOffline'](){const _0x34c779=_0x190561;this[_0x34c779(0x4e6)]=!0x1;}};_0x17d021=_0x31453e([_0x2cd89e(0x2,(0x0,_0x263090['Inject'])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x3,(0x0,_0x263090[_0x190561(0x413)])(_0x31e883)),_0x2cd89e(0x4,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6['MemberService'])),_0x2cd89e(0x5,(0x0,_0x263090[_0x190561(0x413)])(_0x414f0d)),_0x2cd89e(0x6,_0x5eadb5[_0x190561(0x33f)]),_0x2cd89e(0x7,_0x263090['IUniverInstanceService']),_0x2cd89e(0x8,_0x263090[_0x190561(0x1f9)])],_0x17d021);let _0xa2a3aa=()=>{let _0x201da8=[],_0x5be623=!0x1;return _0x1ee23f=>{const _0x151054=_0x229d;_0x201da8[_0x151054(0x242)](_0x1ee23f),_0x5be623||(_0x5be623=!0x0,setTimeout(()=>{const _0x280fd0=_0x151054;_0x201da8[_0x280fd0(0x4d5)](_0x3b3a4d=>_0x3b3a4d()),_0x201da8=[],_0x5be623=!0x1;}));};},_0x3349c4=class extends _0x263090['RxDisposable']{get['cursorInfo'](){const _0x531a55=_0x190561;return this[_0x531a55(0x26c)]['getValue']();}get[_0x190561(0x319)](){const _0x152cc9=_0x190561;return this[_0x152cc9(0x3a3)]['getValue']();}constructor(_0x56f3c2,_0x288111,_0x46e699,_0x1edcce,_0x34948,_0x5f0196,_0x473f80,_0x13bb2f){const _0x5d49db=_0x190561;super(),this[_0x5d49db(0x4c1)]=_0x56f3c2,this[_0x5d49db(0x2a5)]=_0x288111,this['_injector']=_0x46e699,this[_0x5d49db(0x4e5)]=_0x1edcce,this[_0x5d49db(0x2d0)]=_0x34948,this['_univerInstanceService']=_0x5f0196,this[_0x5d49db(0x49c)]=_0x473f80,this[_0x5d49db(0x1d1)]=_0x13bb2f,_0x312734(this,_0x5d49db(0x4e6),!0x1),_0x312734(this,'_init',!0x1),_0x312734(this,_0x5d49db(0x26c),new _0x4c31a2[(_0x5d49db(0x2fa))](new Map())),_0x312734(this,_0x5d49db(0x1f6),this[_0x5d49db(0x26c)]['asObservable']()),_0x312734(this,'_roomMembers$',new _0x4c31a2[(_0x5d49db(0x2fa))]([])),_0x312734(this,'roomMembers$',this[_0x5d49db(0x3a3)][_0x5d49db(0x28d)]((0x0,_0x4c31a2['debounceTime'])(0x12c))),_0x312734(this,'_updateLocalCursor',(0x0,_0x263090[_0x5d49db(0x1dc)])((_0x6fbf20,_0x2e33f7)=>{const _0x4cdb50=_0x5d49db;let _0x3631e2={'eventID':_0x5eadb5[_0x4cdb50(0x244)][_0x4cdb50(0x462)],'data':{'unitID':this[_0x4cdb50(0x4c1)],'memberID':this[_0x4cdb50(0x2a5)][_0x4cdb50(0x24a)](),'selection':(0x0,_0x19e8e1['serializeRangeWithSheet'])(_0x6fbf20,_0x2e33f7[_0x4cdb50(0x2f3)])}};this['_session']['send'](_0x3631e2,this['unitID']);},0x64));}[_0x190561(0x508)](){const _0x5cc6d6=_0x190561;super[_0x5cc6d6(0x508)](),this[_0x5cc6d6(0x26c)][_0x5cc6d6(0x344)](new Map()),this[_0x5cc6d6(0x26c)]['complete'](),this['_roomMembers$'][_0x5cc6d6(0x344)]([]),this[_0x5cc6d6(0x3a3)]['complete']();}[_0x190561(0x400)](){const _0x4accf1=_0x190561;this[_0x4accf1(0x23e)]||(this[_0x4accf1(0x23e)]=!0x0,this[_0x4accf1(0x2a5)][_0x4accf1(0x343)][_0x4accf1(0x28d)]((0x0,_0x4c31a2[_0x4accf1(0x31d)])(this[_0x4accf1(0x448)]))['subscribe'](_0x1083bf=>{const _0x480ca8=_0x4accf1;_0x1083bf===_0x3107d6['SessionStatus']['ONLINE']?this[_0x480ca8(0x2f5)]():this[_0x480ca8(0x364)]();}),this[_0x4accf1(0x2a5)][_0x4accf1(0x294)][_0x4accf1(0x28d)]((0x0,_0x4c31a2[_0x4accf1(0x31d)])(this[_0x4accf1(0x448)]))['subscribe'](_0x18a156=>{const _0x17b4b3=_0x4accf1;let _0x369e73=_0x18a156['eventID'];_0x369e73===_0x5eadb5[_0x17b4b3(0x244)][_0x17b4b3(0x462)]&&this[_0x17b4b3(0x2aa)](_0x18a156),_0x369e73===_0x5eadb5[_0x17b4b3(0x244)][_0x17b4b3(0x39e)]&&this[_0x17b4b3(0x264)](_0x18a156);}),this['_onRefRangeChange'](),this[_0x4accf1(0x1bd)](this[_0x4accf1(0x49c)][_0x4accf1(0x290)](_0x2f45b1=>{const _0x467996=_0x4accf1;if(this[_0x467996(0x4e6)]&&_0x2f45b1['id']===_0x5e8070[_0x467996(0x365)]['id']&&_0x2f45b1[_0x467996(0x498)][_0x467996(0x314)]===this['unitID']){let _0x99181f=_0x2f45b1[_0x467996(0x498)];this[_0x467996(0x4ff)](_0x99181f[_0x467996(0x3d8)],_0x99181f[_0x467996(0x483)][0x0]);}})));}['_onCursorUpdate'](_0x948f4b){const _0x5c4217=_0x190561;var _0x5281cd;let {memberID:_0xae9809,selection:_0x39617c}=_0x948f4b[_0x5c4217(0x407)],{sheetName:_0x22ad9c,range:_0x349101}=(0x0,_0x19e8e1[_0x5c4217(0x23c)])(_0x39617c),_0x480def={'name':((_0x5281cd=this[_0x5c4217(0x2d0)][_0x5c4217(0x2a0)](this[_0x5c4217(0x4c1)],_0xae9809))==null?void 0x0:_0x5281cd[_0x5c4217(0x45c)])??_0x5c4217(0x1ea),'range':this['_getMergeRange'](_0x22ad9c,_0x349101),'sheetID':_0x22ad9c,'color':this[_0x5c4217(0x4e5)]['assignAColorForMemberID'](_0xae9809),'selection':_0x39617c},_0x4503cc=this[_0x5c4217(0x1b4)];_0x4503cc[_0x5c4217(0x1b0)](_0xae9809,_0x480def),this[_0x5c4217(0x26c)][_0x5c4217(0x344)](_0x4503cc);}[_0x190561(0x264)](_0x49e8fa){const _0x54da5a=_0x190561;let {memberID:_0xd04d50}=_0x49e8fa['data'],_0x316af9=this[_0x54da5a(0x1b4)];_0x316af9[_0x54da5a(0x4d7)](_0xd04d50),this[_0x54da5a(0x26c)][_0x54da5a(0x344)](_0x316af9);}['_getMergeRange'](_0x2b3e56,_0x4a3989){const _0x38ba57=_0x190561;var _0x5e6488;let _0x204a52=(_0x5e6488=this[_0x38ba57(0x211)][_0x38ba57(0x397)](this[_0x38ba57(0x4c1)],_0x263090[_0x38ba57(0x306)][_0x38ba57(0x44a)]))==null||(_0x5e6488=_0x5e6488[_0x38ba57(0x299)](_0x2b3e56))==null?void 0x0:_0x5e6488[_0x38ba57(0x33e)]();return(_0x204a52==null?void 0x0:_0x204a52['find'](_0x9ed46c=>_0x263090[_0x38ba57(0x3cf)]['contains'](_0x9ed46c,_0x4a3989)))||_0x4a3989;}[_0x190561(0x26b)](){const _0x58101d=_0x190561;let _0x32dfdc=new _0x263090[(_0x58101d(0x4db))](),_0x51a6c7=_0xa2a3aa(),_0x4c4618=()=>{const _0x112cfc=_0x58101d;_0x32dfdc['dispose']();let _0x22a6ab=(_0x24960b,_0x51015c,_0x5e253e,_0x4eaca0)=>{const _0x18d845=_0x229d;let _0x380527=[];switch(_0x24960b['id']){case _0x5e8070['EffectRefRangId'][_0x18d845(0x379)]:_0x380527=(0x0,_0x5e8070[_0x18d845(0x4d1)])(_0x24960b,_0x4eaca0);break;case _0x5e8070['EffectRefRangId'][_0x18d845(0x32f)]:_0x380527=(0x0,_0x5e8070[_0x18d845(0x463)])(_0x24960b,_0x4eaca0);break;case _0x5e8070[_0x18d845(0x3de)]['InsertColCommandId']:_0x380527=(0x0,_0x5e8070[_0x18d845(0x28e)])(_0x24960b,_0x4eaca0);break;case _0x5e8070[_0x18d845(0x3de)][_0x18d845(0x259)]:_0x380527=(0x0,_0x5e8070['handleInsertRangeMoveDown'])(_0x24960b,_0x4eaca0);break;case _0x5e8070[_0x18d845(0x3de)][_0x18d845(0x353)]:_0x380527=(0x0,_0x5e8070['handleInsertRangeMoveRight'])(_0x24960b,_0x4eaca0);break;case _0x5e8070['EffectRefRangId'][_0x18d845(0x46a)]:_0x380527=(0x0,_0x5e8070[_0x18d845(0x2bb)])(_0x24960b,_0x4eaca0);break;case _0x5e8070[_0x18d845(0x3de)][_0x18d845(0x2a3)]:_0x380527=(0x0,_0x5e8070[_0x18d845(0x30d)])(_0x24960b,_0x4eaca0);break;case _0x5e8070[_0x18d845(0x3de)]['RemoveColCommandId']:_0x380527=(0x0,_0x5e8070[_0x18d845(0x2a2)])(_0x24960b,_0x4eaca0);break;case _0x5e8070[_0x18d845(0x3de)][_0x18d845(0x360)]:_0x380527=(0x0,_0x5e8070[_0x18d845(0x27e)])(_0x24960b,_0x4eaca0);}let _0x208b66=(0x0,_0x5e8070[_0x18d845(0x257)])(_0x380527,_0x4eaca0),_0x537e61=this[_0x18d845(0x1b4)][_0x18d845(0x38c)](_0x51015c);if(_0x537e61&&_0x208b66){let _0x893654={..._0x537e61,'range':_0x208b66};this[_0x18d845(0x1b4)][_0x18d845(0x1b0)](_0x51015c,_0x893654),_0x51a6c7(()=>{const _0x2cea1b=_0x18d845;let _0x267379=this['_refRangeService'][_0x2cea1b(0x2f4)](_0x208b66,_0x246e26=>(_0x267379[_0x2cea1b(0x508)](),_0x22a6ab(_0x246e26,_0x51015c,_0x5e253e,_0x208b66)));_0x32dfdc[_0x2cea1b(0x4f9)](_0x267379);});}return{'redos':[],'undos':[]};};this[_0x112cfc(0x1b4)][_0x112cfc(0x4d5)]((_0x48e43e,_0x57670c)=>{const _0x4ec183=_0x112cfc;let {range:_0x4011fd,sheetID:_0x1ff834}=_0x48e43e,_0x598e8a=this[_0x4ec183(0x1d1)][_0x4ec183(0x2f4)](_0x4011fd,_0x38c652=>(_0x598e8a[_0x4ec183(0x508)](),_0x22a6ab(_0x38c652,_0x57670c,_0x1ff834,_0x4011fd)));_0x32dfdc[_0x4ec183(0x4f9)](_0x598e8a);});};this[_0x58101d(0x1bd)]((0x0,_0x263090[_0x58101d(0x2e4)])(this['_cursorInfo$'][_0x58101d(0x2b8)](()=>{_0x4c4618();})));}[_0x190561(0x2f5)](){const _0x22f62b=_0x190561;var _0x5c1164,_0x5c8aa6;if(this[_0x22f62b(0x4e6)]=!0x0,((_0x5c1164=this[_0x22f62b(0x211)][_0x22f62b(0x333)]())==null?void 0x0:_0x5c1164[_0x22f62b(0x20f)]())!==this[_0x22f62b(0x4c1)])return;let _0x36a52f=(_0x5c8aa6=this[_0x22f62b(0x1b8)][_0x22f62b(0x38c)](_0x5e8070[_0x22f62b(0x1cd)])['getCurrentSelections']())==null?void 0x0:_0x5c8aa6[0x0],_0x540a5a=this[_0x22f62b(0x211)]['getCurrentUnitOfType'](_0x263090[_0x22f62b(0x306)][_0x22f62b(0x44a)])[_0x22f62b(0x1be)]();_0x36a52f&&_0x540a5a&&this[_0x22f62b(0x4ff)](_0x540a5a[_0x22f62b(0x1b3)](),_0x36a52f);}[_0x190561(0x364)](){const _0x3cdb6e=_0x190561;this[_0x3cdb6e(0x4e6)]=!0x1;}};_0x3349c4=_0x31453e([_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x3,(0x0,_0x263090[_0x190561(0x413)])(_0x31e883)),_0x2cd89e(0x4,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6['MemberService'])),_0x2cd89e(0x5,_0x263090[_0x190561(0x48d)]),_0x2cd89e(0x6,_0x263090['ICommandService']),_0x2cd89e(0x7,(0x0,_0x263090[_0x190561(0x413)])(_0x5e8070[_0x190561(0x3f8)]))],_0x3349c4);let _0x7b494a=class extends _0x263090[_0x190561(0x488)]{constructor(_0x3a0ca2,_0x5260b1,_0x229128){const _0x32d5df=_0x190561;super(),this[_0x32d5df(0x211)]=_0x3a0ca2,this[_0x32d5df(0x1b8)]=_0x5260b1,this[_0x32d5df(0x50c)]=_0x229128,_0x312734(this,_0x32d5df(0x2a9),new Map()),_0x312734(this,_0x32d5df(0x29c),new _0x4c31a2[(_0x32d5df(0x482))]()),this[_0x32d5df(0x23e)]();}[_0x190561(0x508)](){const _0x1b0fd2=_0x190561;super[_0x1b0fd2(0x508)](),this[_0x1b0fd2(0x29c)]['complete'](),this[_0x1b0fd2(0x2a9)][_0x1b0fd2(0x4d5)](_0x4a8b73=>_0x4a8b73[_0x1b0fd2(0x508)]());}[_0x190561(0x31b)](_0x33bc1e){const _0x40eee0=_0x190561;let _0x5f9fa9=this[_0x40eee0(0x2a9)][_0x40eee0(0x38c)](_0x33bc1e);return _0x5f9fa9?_0x5f9fa9['cursorInfo$']:this[_0x40eee0(0x29c)][_0x40eee0(0x28d)]((0x0,_0x4c31a2[_0x40eee0(0x381)])(_0x373775=>_0x373775[_0x40eee0(0x4c1)]===_0x33bc1e),(0x0,_0x4c31a2[_0x40eee0(0x361)])(_0x36623e=>_0x36623e[_0x40eee0(0x1f6)]));}[_0x190561(0x23e)](){const _0x1fdc58=_0x190561;this[_0x1fdc58(0x211)][_0x1fdc58(0x41c)](_0x263090[_0x1fdc58(0x306)]['UNIVER_SHEET'])[_0x1fdc58(0x28d)]((0x0,_0x4c31a2[_0x1fdc58(0x31d)])(this[_0x1fdc58(0x448)]))[_0x1fdc58(0x2b8)](async _0x31bb89=>{const _0x5ad753=_0x1fdc58;let _0x13e265=_0x31bb89[_0x5ad753(0x327)][_0x5ad753(0x20f)](),_0x2eefa9=await this[_0x5ad753(0x271)](_0x13e265);this[_0x5ad753(0x29c)][_0x5ad753(0x344)](_0x2eefa9),this[_0x5ad753(0x2a9)]['set'](_0x13e265,_0x2eefa9);}),this[_0x1fdc58(0x211)][_0x1fdc58(0x41c)](_0x263090['UniverInstanceType'][_0x1fdc58(0x3b6)])[_0x1fdc58(0x28d)]((0x0,_0x4c31a2['takeUntil'])(this[_0x1fdc58(0x448)]))[_0x1fdc58(0x28d)]((0x0,_0x4c31a2['filter'])(_0x2b78bd=>!_0x2b78bd[_0x1fdc58(0x327)][_0x1fdc58(0x20f)]()[_0x1fdc58(0x3da)]('__')))[_0x1fdc58(0x2b8)](async _0x4e0296=>{const _0x7464c2=_0x1fdc58;let {unit:_0x180ca4}=_0x4e0296,_0x4f0344=_0x180ca4[_0x7464c2(0x20f)](),_0x16f22f=await this[_0x7464c2(0x416)](_0x4f0344);this[_0x7464c2(0x29c)][_0x7464c2(0x344)](_0x16f22f),this['_entities'][_0x7464c2(0x1b0)](_0x4f0344,_0x16f22f);}),(0x0,_0x4c31a2[_0x1fdc58(0x444)])(this['_univerInstanceService'][_0x1fdc58(0x2c3)](_0x263090['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x1fdc58(0x2c3)](_0x263090[_0x1fdc58(0x306)]['UNIVER_SHEET']))[_0x1fdc58(0x28d)]((0x0,_0x4c31a2[_0x1fdc58(0x31d)])(this[_0x1fdc58(0x448)]))['subscribe'](_0x54bb0e=>{const _0x2f6812=_0x1fdc58;let _0x3e06d6=_0x54bb0e[_0x2f6812(0x20f)](),_0x598364=this[_0x2f6812(0x2a9)][_0x2f6812(0x38c)](_0x3e06d6);_0x598364&&(_0x598364['dispose'](),this[_0x2f6812(0x2a9)][_0x2f6812(0x4d7)](_0x3e06d6));});}async[_0x190561(0x271)](_0x8a73c8){const _0x357c57=_0x190561;let _0x2f40a7=await this['_collabSessionService']['requireSession'](_0x8a73c8),_0x368712=this['_injector']['createInstance'](_0x3349c4,_0x8a73c8,_0x2f40a7);return _0x368712[_0x357c57(0x400)](),_0x368712;}async['_startDocCollabCursor'](_0x546851){const _0x4143ff=_0x190561;let _0x46b514=await this[_0x4143ff(0x50c)][_0x4143ff(0x273)](_0x546851),_0x1ec705=this['_injector'][_0x4143ff(0x478)](_0x17d021,_0x546851,_0x46b514);return _0x1ec705[_0x4143ff(0x400)](),_0x1ec705;}};_0x7b494a=_0x31453e([_0x2cd89e(0x0,_0x263090[_0x190561(0x48d)]),_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0x263090['Injector'])),_0x2cd89e(0x2,(0x0,_0x263090['Inject'])(_0x3107d6[_0x190561(0x1f7)]))],_0x7b494a);function _0x18cb57(_0x119c1f,_0x241bb3){const _0x43fcc8=_0x190561;_0x119c1f[_0x43fcc8(0x2db)](),_0x119c1f[_0x43fcc8(0x321)]=_0x43fcc8(0x311);let _0x1388ba=_0x119c1f[_0x43fcc8(0x429)](_0x241bb3)[_0x43fcc8(0x50e)];return _0x119c1f[_0x43fcc8(0x230)](),Math[_0x43fcc8(0x474)](_0x1388ba+0x8,0xc8);}function _0x3c8e2a(_0x45fedc,_0x2f5b62){const _0x41a489=_0x190561;let {radius:_0x1bb5a0,width:_0x52442d,height:_0x1400df}=_0x2f5b62;_0x1bb5a0??=0x0,_0x52442d??=0x1e,_0x1400df??=0x1e;let _0x1858b7=0x0,_0x2be09d=0x0,_0x516fcb=0x0;_0x1858b7=_0x2be09d=_0x516fcb=Math[_0x41a489(0x474)](_0x1bb5a0,_0x52442d/0x2,_0x1400df/0x2),_0x45fedc[_0x41a489(0x40a)](),_0x45fedc['moveTo'](_0x1858b7,0x0),_0x45fedc['lineTo'](_0x52442d-_0x2be09d,0x0),_0x45fedc[_0x41a489(0x4ae)](_0x52442d-_0x2be09d,_0x2be09d,_0x2be09d,Math['PI']*0x3/0x2,0x0,!0x1),_0x45fedc[_0x41a489(0x34e)](_0x52442d,_0x1400df-_0x516fcb),_0x45fedc['arc'](_0x52442d-_0x516fcb,_0x1400df-_0x516fcb,_0x516fcb,0x0,Math['PI']/0x2,!0x1),_0x45fedc[_0x41a489(0x34e)](0x0,_0x1400df),_0x45fedc[_0x41a489(0x34e)](0x0,_0x1858b7),_0x45fedc['arc'](_0x1858b7,_0x1858b7,_0x1858b7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45fedc[_0x41a489(0x210)](),_0x2f5b62['fill']&&(_0x45fedc['save'](),_0x45fedc[_0x41a489(0x419)]=_0x2f5b62[_0x41a489(0x43b)],_0x2f5b62[_0x41a489(0x2ac)]===_0x41a489(0x45e)?_0x45fedc[_0x41a489(0x43b)](_0x41a489(0x45e)):_0x45fedc[_0x41a489(0x43b)](),_0x45fedc[_0x41a489(0x230)]());}var _0x30c084=class _0x339ae5 extends _0x3822ed[_0x190561(0x3a1)]{constructor(_0x862aae,_0x2b02a2){const _0x25dbec=_0x190561;super(_0x862aae,_0x2b02a2),_0x312734(this,_0x25dbec(0x269),void 0x0),_0x312734(this,'text',void 0x0),this[_0x25dbec(0x269)]=_0x2b02a2==null?void 0x0:_0x2b02a2[_0x25dbec(0x269)],this[_0x25dbec(0x1d3)]=_0x2b02a2==null?void 0x0:_0x2b02a2['text'];}static[_0x190561(0x459)](_0x99c057,_0x1da3bb){const _0x14b717=_0x190561;let {text:_0x29b580,color:_0xb1c4e9}=_0x1da3bb;_0x99c057['save'](),_0x99c057['font']=_0x14b717(0x1cf);let _0x173713=_0x99c057[_0x14b717(0x429)](_0x29b580)[_0x14b717(0x50e)];if(_0x3c8e2a(_0x99c057,{'height':0x14,'radius':0x4,'width':_0x18cb57(_0x99c057,_0x29b580),'fill':_0xb1c4e9,'evented':!0x1}),_0x99c057[_0x14b717(0x419)]=_0x14b717(0x3d4),_0x173713>0xc0){let _0x33f2eb='',_0x19b073=0x0;for(let _0x92ba67 of _0x29b580){let _0x50ba30=_0x99c057[_0x14b717(0x429)](_0x92ba67)[_0x14b717(0x50e)];if(_0x19b073+_0x50ba30<=0xc0-_0x99c057[_0x14b717(0x429)](_0x14b717(0x28b))['width'])_0x33f2eb+=_0x92ba67,_0x19b073+=_0x50ba30;else{_0x33f2eb+=_0x14b717(0x28b);break;}}_0x99c057[_0x14b717(0x4b2)](_0x33f2eb,0x4,0xf);}else _0x99c057['fillText'](_0x29b580,0x4,0xf);_0x99c057['restore']();}['_draw'](_0x3cf3cf){_0x339ae5['drawWith'](_0x3cf3cf,this);}};let _0x53309f=_0x190561(0x37d);var _0x3efa24=class{constructor(_0x45ebbc,_0x2e842e,_0x221d0b,_0x5f0117){const _0x397512=_0x190561;this['_cursor']=_0x45ebbc,this[_0x397512(0x347)]=_0x2e842e,this['_docSkeleton']=_0x221d0b,this[_0x397512(0x31f)]=_0x5f0117,_0x312734(this,_0x397512(0x370),[]),_0x312734(this,_0x397512(0x4a4),null),_0x312734(this,_0x397512(0x33b),null),_0x312734(this,_0x397512(0x3f7),null),_0x312734(this,_0x397512(0x29f),null),_0x312734(this,'_eventUnsubscribe',null),this['_render']();}set[_0x190561(0x3b8)](_0x296ae9){const _0x1438da=_0x190561;_0x296ae9?(this[_0x1438da(0x3f7)]&&this[_0x1438da(0x3f7)][_0x1438da(0x2e2)](),this[_0x1438da(0x33b)]&&this[_0x1438da(0x33b)][_0x1438da(0x373)]()):(this[_0x1438da(0x3f7)]&&this[_0x1438da(0x3f7)]['show'](),this[_0x1438da(0x33b)]&&this[_0x1438da(0x33b)][_0x1438da(0x2e2)]());}[_0x190561(0x508)](){const _0x47ba93=_0x190561;for(let _0x31f170 of this[_0x47ba93(0x370)])_0x31f170[_0x47ba93(0x508)]();this[_0x47ba93(0x33b)]&&this[_0x47ba93(0x33b)][_0x47ba93(0x508)](),this[_0x47ba93(0x3f7)]&&this['_anchorDot'][_0x47ba93(0x508)](),this['_anchor']&&this['_anchor'][_0x47ba93(0x508)](),this[_0x47ba93(0x4e3)]&&this[_0x47ba93(0x4e3)]();}[_0x190561(0x23f)](){const _0x30175f=_0x190561;let {_docSkeleton:_0x3a4d87,_document:_0x51eca1}=this,{color:_0x3c5662,name:_0x6bd492,ranges:_0x162378}=this[_0x30175f(0x322)],_0x4549f8=_0x51eca1[_0x30175f(0x300)](),{docsLeft:_0x10b1b1,docsTop:_0x385076}=_0x4549f8,_0x314f64=new _0x2bd024[(_0x30175f(0x42b))](_0x4549f8,_0x3a4d87);for(let {startOffset:_0x804beb,endOffset:_0x38de14,rangeType:_0x4168d4,segmentId:_0x37db9a,segmentPage:_0x2b9a61,collapsed:_0x3bbe67,isActive:_0x5a7dfe}of _0x162378){let _0x4f1961=_0x3a4d87[_0x30175f(0x1ff)](_0x804beb,!0x0,_0x37db9a,_0x2b9a61),_0xbfe00b=_0x3a4d87['findNodePositionByCharIndex'](_0x38de14,!0x0,_0x37db9a,_0x2b9a61);_0xbfe00b??=_0x3a4d87[_0x30175f(0x1ff)](_0x38de14-0x1,!0x1,_0x37db9a,_0x2b9a61);let _0x2158f8=_0x22da4c(_0x4f1961,_0xbfe00b);if(_0x5a7dfe&&_0x2158f8[_0x30175f(0x355)]){let {contentBoxPointGroup:_0x3d9787}=_0x314f64['getRangePointData'](_0xbfe00b,_0xbfe00b);if(_0x3d9787[_0x30175f(0x4e7)]===0x0)continue;this[_0x30175f(0x337)](_0x3c5662,_0x3d9787,_0x10b1b1,_0x385076,_0x6bd492),this[_0x30175f(0x4e3)]=this[_0x30175f(0x35c)]();}if(_0x4f1961&&_0xbfe00b){if(_0x4168d4===_0x263090[_0x30175f(0x38e)]['RECT']){let {pointGroup:_0x2eca5d}=new _0x2bd024['NodePositionConvertToRectRange'](_0x4549f8,_0x3a4d87)[_0x30175f(0x332)](_0x4f1961,_0xbfe00b)??{};if(_0x2eca5d==null||_0x2eca5d[_0x30175f(0x4e7)]===0x0)continue;this[_0x30175f(0x27f)](_0x3c5662,_0x2eca5d,_0x10b1b1,_0x385076);}else{if(!_0x3bbe67&&_0x2158f8[_0x30175f(0x366)]){let {borderBoxPointGroup:_0x23c034}=_0x314f64['getRangePointData'](_0x4f1961,_0xbfe00b);if(_0x23c034[_0x30175f(0x4e7)]===0x0)continue;this[_0x30175f(0x2a4)](_0x3c5662,_0x23c034,_0x10b1b1,_0x385076);}}}}}['_drawAnchor'](_0xa8132b,_0x3199ad,_0x504c35,_0xbd1b05,_0x5e57dc){const _0x5dde96=_0x190561;let {left:_0x343add,top:_0x16cf38,height:_0x1de7fa}=this[_0x5dde96(0x4ab)](_0x3199ad),_0x232cde=1.5/this['_getScale'](),_0x47d512=new _0x3822ed['Rect'](_0x53309f+(0x0,_0x263090[_0x5dde96(0x456)])(0x6),{'left':_0x343add+_0x504c35-_0x232cde,'top':_0x16cf38+_0xbd1b05,'height':_0x1de7fa,'width':1.5,'fill':_0xa8132b||(0x0,_0x3822ed['getColor'])(_0x263090['COLORS']['black'],0x0),'strokeWidth':_0x232cde,'stroke':_0x5dde96(0x43a),'evented':!0x0});this['_anchor']=_0x47d512,this[_0x5dde96(0x347)][_0x5dde96(0x1e6)](_0x47d512,_0x2bd024[_0x5dde96(0x3f0)]);let _0x19265c=new _0x3822ed['Rect'](_0x53309f+(0x0,_0x263090[_0x5dde96(0x456)])(0x6),{'left':_0x343add+_0x504c35-_0x232cde,'top':_0x16cf38+_0xbd1b05-0x2,'height':0x4,'width':0x4,'fill':_0xa8132b||(0x0,_0x3822ed['getColor'])(_0x263090[_0x5dde96(0x47e)][_0x5dde96(0x30e)],0x0),'strokeWidth':0x0,'stroke':_0xa8132b||(0x0,_0x3822ed[_0x5dde96(0x442)])(_0x263090[_0x5dde96(0x47e)][_0x5dde96(0x30e)],0x0),'evented':!0x1});this[_0x5dde96(0x3f7)]=_0x19265c,this[_0x5dde96(0x347)]['addObject'](_0x19265c,_0x2bd024[_0x5dde96(0x3f0)]);let _0x3d31fa=new _0x30c084(_0x53309f+(0x0,_0x263090[_0x5dde96(0x456)])(0x6),{'left':_0x343add+_0x504c35-_0x232cde,'top':_0x16cf38+_0xbd1b05-0x14,'text':_0x5e57dc,'color':_0xa8132b});this['_textBubble']=_0x3d31fa,this[_0x5dde96(0x347)][_0x5dde96(0x1e6)](_0x3d31fa,_0x2bd024[_0x5dde96(0x3f0)]),this[_0x5dde96(0x3b8)]=!0x1;}['_handleHover'](){const _0x449238=_0x190561;let _0x5fd4a=this[_0x449238(0x4a4)][_0x449238(0x297)][_0x449238(0x510)](()=>{this['_hover']=!0x0;}),_0x7efed6=this['_anchor'][_0x449238(0x40d)][_0x449238(0x510)](()=>{const _0x5bb0f2=_0x449238;this[_0x5bb0f2(0x29f)]&&clearTimeout(this[_0x5bb0f2(0x29f)]),this[_0x5bb0f2(0x29f)]=setTimeout(()=>{const _0x284d08=_0x5bb0f2;this[_0x284d08(0x3b8)]=!0x1;},0x7d0);});return()=>{const _0x1a076e=_0x449238;_0x5fd4a['unsubscribe'](),_0x7efed6[_0x1a076e(0x351)]();};}[_0x190561(0x2a4)](_0x46d4e7,_0x1afbee,_0x5b57f7,_0x58fe65){const _0x1aeafe=_0x190561;let _0x3f8f1d=0.2,_0x36f266=new _0x263090[(_0x1aeafe(0x4aa))](_0x46d4e7)[_0x1aeafe(0x260)](_0x3f8f1d)['toRgbString'](),_0x160d1a=new _0x3822ed['RegularPolygon'](_0x1aeafe(0x47c)+(0x0,_0x263090['generateRandomId'])(0x6),{'pointsGroup':_0x1afbee,'fill':_0x36f266||(0x0,_0x3822ed[_0x1aeafe(0x442)])(_0x263090[_0x1aeafe(0x47e)][_0x1aeafe(0x30e)],_0x3f8f1d),'left':_0x5b57f7,'top':_0x58fe65,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1aeafe(0x242)](_0x160d1a),this['_scene'][_0x1aeafe(0x1e6)](_0x160d1a,_0x2bd024[_0x1aeafe(0x3f0)]);}[_0x190561(0x27f)](_0x30926a,_0x4275c8,_0x3dc49c,_0x3709a7){const _0x22f4a9=_0x190561;let _0x44094b=0.2,_0x66a068=new _0x263090[(_0x22f4a9(0x4aa))](_0x30926a)[_0x22f4a9(0x260)](_0x44094b)[_0x22f4a9(0x305)](),_0x22f17b=new _0x3822ed[(_0x22f4a9(0x1ce))](_0x22f4a9(0x3bf)+(0x0,_0x263090[_0x22f4a9(0x456)])(0x6),{'pointsGroup':_0x4275c8,'fill':_0x66a068||(0x0,_0x3822ed[_0x22f4a9(0x442)])(_0x263090[_0x22f4a9(0x47e)]['black'],_0x44094b),'left':_0x3dc49c,'top':_0x3709a7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x22f4a9(0x370)]['push'](_0x22f17b),this['_scene'][_0x22f4a9(0x1e6)](_0x22f17b,_0x2bd024['TEXT_RANGE_LAYER_INDEX']);}[_0x190561(0x4ab)](_0x3855e5){let _0x20f9df=_0x3855e5[0x0],_0x392d62=_0x20f9df[0x0],_0x3e28b4=_0x20f9df[0x2],{x:_0x3e8722,y:_0x1f07d2}=_0x392d62,{x:_0x10770f,y:_0x203449}=_0x3e28b4;return{'left':_0x3e8722,'top':_0x1f07d2,'width':_0x10770f-_0x3e8722,'height':_0x203449-_0x1f07d2};}[_0x190561(0x394)](){const _0x549f9c=_0x190561;let {scaleX:_0xa8d59f,scaleY:_0x113b15}=this[_0x549f9c(0x347)][_0x549f9c(0x48c)]();return Math[_0x549f9c(0x229)](_0xa8d59f,_0x113b15);}};function _0x22da4c(_0x2b53be,_0xec2d0e){const _0x204ae9=_0x190561;if(!_0xec2d0e)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x2b53be||_0x2b53be[_0x204ae9(0x2af)]!==_0xec2d0e[_0x204ae9(0x2af)]||(_0x2b53be[_0x204ae9(0x2af)]===_0x3822ed['DocumentSkeletonPageType']['HEADER']||_0x2b53be[_0x204ae9(0x2af)]===_0x3822ed[_0x204ae9(0x3bd)][_0x204ae9(0x312)])&&_0x2b53be[_0x204ae9(0x471)]!==_0xec2d0e[_0x204ae9(0x471)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x4da984=(0x0,_0x3822ed[_0x204ae9(0x1df)])(_0x2b53be),_0x3868b1=(0x0,_0x3822ed[_0x204ae9(0x1df)])(_0xec2d0e);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x4da984==null||_0x3868b1==null?_0x4da984==null&&_0x3868b1==null:_0x4da984[_0x204ae9(0x2a6)]===_0x3868b1[_0x204ae9(0x2a6)]&&_0x4da984['columnGroupId']===_0x3868b1[_0x204ae9(0x3ae)]&&_0x4da984['columnIndex']===_0x3868b1[_0x204ae9(0x3ed)]};}let _0x4842a9=class extends _0x263090[_0x190561(0x488)]{constructor(_0x1bde0a,_0x2a5712,_0x4d1338,_0x2cb110,_0x491dff){const _0x1c56d3=_0x190561;super(),this[_0x1c56d3(0x32a)]=_0x1bde0a,this['_docSkeletonManagerService']=_0x2a5712,this[_0x1c56d3(0x477)]=_0x4d1338,this[_0x1c56d3(0x49c)]=_0x2cb110,this[_0x1c56d3(0x505)]=_0x491dff,_0x312734(this,_0x1c56d3(0x1e0),[]),_0x312734(this,_0x1c56d3(0x2f1),[]),this[_0x1c56d3(0x23e)]();}['_init'](){const _0x510c4c=_0x190561;let _0x5bbcab=this[_0x510c4c(0x32a)][_0x510c4c(0x314)],_0x4da857=this[_0x510c4c(0x3a5)];this[_0x510c4c(0x1bd)]((0x0,_0x4c31a2[_0x510c4c(0x23d)])([this['_collabCursorController'][_0x510c4c(0x31b)](_0x5bbcab),this[_0x510c4c(0x505)]['currentTheme$']])['pipe']((0x0,_0x1b375c[_0x510c4c(0x4d8)])(([_0x2f7316,_0x1c66d2])=>({'skeleton':_0x4da857[_0x510c4c(0x320)](),'cursors':[..._0x2f7316[_0x510c4c(0x491)]()][_0x510c4c(0x3e0)](_0x4355cb=>({..._0x4355cb,'color':this['_themeService']['getColorFromTheme'](_0x4355cb[_0x510c4c(0x269)])}))})))[_0x510c4c(0x2b8)](_0x742612=>{const _0x2a47b3=_0x510c4c;if(this[_0x2a47b3(0x481)](),_0x742612){let {skeleton:_0x2d2a75,cursors:_0x3d835a}=_0x742612;this[_0x2a47b3(0x2e1)](_0x2d2a75,_0x3d835a);}})),this[_0x510c4c(0x383)](),this[_0x510c4c(0x409)]();}[_0x190561(0x2e1)](_0x5e79ee,_0x76e2bb){const _0x5cd22b=_0x190561;let {scene:_0x4848c6,mainComponent:_0x485cb3}=this[_0x5cd22b(0x32a)],_0x537f4c=_0x76e2bb[_0x5cd22b(0x4d8)](_0x5a736d=>new _0x3efa24(_0x5a736d,_0x4848c6,_0x5e79ee,_0x485cb3));this[_0x5cd22b(0x1e0)]=_0x537f4c,this['_cursors']=_0x76e2bb;}[_0x190561(0x490)](){const _0x426022=_0x190561;this[_0x426022(0x481)]();let {scene:_0x363814,mainComponent:_0x357581}=this[_0x426022(0x32a)],_0x3d96e4=this[_0x426022(0x3a5)]['getSkeleton'](),_0x2748bf=this[_0x426022(0x2f1)]['map'](_0xf3e9c0=>new _0x3efa24(_0xf3e9c0,_0x363814,_0x3d96e4,_0x357581));this[_0x426022(0x1e0)]=_0x2748bf;}[_0x190561(0x481)](){const _0x13adb0=_0x190561;this['_cursorShapes']['forEach'](_0xd7ef76=>_0xd7ef76[_0x13adb0(0x508)]()),this['_cursorShapes']=[];}[_0x190561(0x409)](){const _0x3b934f=_0x190561;let _0xd62e2c=[_0x2bd024[_0x3b934f(0x287)]['id']];this[_0x3b934f(0x1bd)](this['_commandService'][_0x3b934f(0x290)](_0xb42b1d=>{const _0x8769f2=_0x3b934f;_0xd62e2c[_0x8769f2(0x450)](_0xb42b1d['id'])&&_0xb42b1d[_0x8769f2(0x498)][_0x8769f2(0x314)]===this[_0x8769f2(0x32a)]['unitId']&&this[_0x8769f2(0x490)]();}));}['_initResize'](){const _0x3244d2=_0x190561;this[_0x3244d2(0x1bd)]((0x0,_0x263090['fromEventSubject'])(this[_0x3244d2(0x32a)][_0x3244d2(0x464)][_0x3244d2(0x2d3)])[_0x3244d2(0x28d)]((0x0,_0x1b375c[_0x3244d2(0x381)])(_0x6e24a0=>_0x6e24a0[_0x3244d2(0x504)]===_0x3822ed[_0x3244d2(0x3d5)][_0x3244d2(0x426)]),(0x0,_0x1b375c[_0x3244d2(0x4a1)])(0x10))[_0x3244d2(0x2b8)](()=>{const _0x3d7d7d=_0x3244d2;this[_0x3d7d7d(0x490)]();}));}};_0x4842a9=_0x31453e([_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0x33e872['DocSkeletonManagerService'])),_0x2cd89e(0x2,(0x0,_0x263090['Inject'])(_0x7b494a)),_0x2cd89e(0x3,_0x263090[_0x190561(0x1f9)]),_0x2cd89e(0x4,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x411)]))],_0x4842a9);var _0x14cf5b=class extends _0x3822ed[_0x190561(0x3a1)]{constructor(_0x3088c7,_0x111d9a){const _0xf5f7b9=_0x190561;super(_0x3088c7,_0x111d9a),_0x312734(this,_0xf5f7b9(0x1ed),void 0x0),_0x312734(this,'_hovered',!0x1),_0x312734(this,_0xf5f7b9(0x3df),void 0x0),_0x312734(this,_0xf5f7b9(0x2b7),''),_0x312734(this,'_labelPosition',_0xf5f7b9(0x21d)),_0x312734(this,_0xf5f7b9(0x33c),void 0x0),_0x312734(this,_0xf5f7b9(0x428),void 0x0),_0x312734(this,_0xf5f7b9(0x4fc),void 0x0),_0x312734(this,_0xf5f7b9(0x246),0x4),_0x312734(this,_0xf5f7b9(0x43f),void 0x0),_0x312734(this,_0xf5f7b9(0x49e),void 0x0),_0x312734(this,'_isBlinkVisible',!0x0),_0x312734(this,_0xf5f7b9(0x3f3),0x0),_0x312734(this,_0xf5f7b9(0x358),_0xf5f7b9(0x1c4)),_0x111d9a&&(this[_0xf5f7b9(0x24c)](_0x111d9a),_0x111d9a['highlight']&&(_0x111d9a[_0xf5f7b9(0x1f4)]??this[_0xf5f7b9(0x246)])&&this[_0xf5f7b9(0x2ba)](_0x111d9a[_0xf5f7b9(0x1f4)]??this[_0xf5f7b9(0x246)])),this[_0xf5f7b9(0x297)][_0xf5f7b9(0x510)](()=>this[_0xf5f7b9(0x24c)]({'hovered':!0x0})),this[_0xf5f7b9(0x40d)]['subscribeEvent'](()=>this[_0xf5f7b9(0x24c)]({'hovered':!0x1}));}[_0x190561(0x378)](_0x3b424b){const _0x4ca1db=_0x190561;this[_0x4ca1db(0x3f3)]=_0x3b424b;}[_0x190561(0x24c)](_0x1bcc52){const _0x136e80=_0x190561;this[_0x136e80(0x1ed)]=_0x1bcc52['color']??this[_0x136e80(0x1ed)],this[_0x136e80(0x446)]=_0x1bcc52[_0x136e80(0x291)]??this[_0x136e80(0x446)],this['_range']=_0x1bcc52['range']??this['_range'],this[_0x136e80(0x2b7)]=_0x1bcc52[_0x136e80(0x45c)]??this[_0x136e80(0x2b7)],this[_0x136e80(0x3ab)]=_0x1bcc52[_0x136e80(0x4ee)]??this[_0x136e80(0x3ab)],this[_0x136e80(0x33c)]=_0x1bcc52['backgroundColor']??this['_backgroundColor'],this[_0x136e80(0x428)]=_0x1bcc52[_0x136e80(0x3d2)]??this[_0x136e80(0x428)],this['_labelHorizontalPosition']=_0x1bcc52[_0x136e80(0x4cd)]??this[_0x136e80(0x358)],_0x1bcc52[_0x136e80(0x1f4)]!==void 0x0&&(this[_0x136e80(0x246)]=_0x1bcc52[_0x136e80(0x1f4)]),_0x1bcc52[_0x136e80(0x3eb)]!==void 0x0&&(this[_0x136e80(0x4fc)]=_0x1bcc52[_0x136e80(0x3eb)]),_0x1bcc52['offsetY']!==void 0x0&&(this[_0x136e80(0x3f3)]=_0x1bcc52['offsetY']),this[_0x136e80(0x335)]({'width':_0x1bcc52[_0x136e80(0x50e)],'height':_0x1bcc52[_0x136e80(0x286)]});}['onMouseMove'](_0x4be694){const _0x5efa3e=_0x190561;let {row:_0x5de450,column:_0x1f5dcf}=_0x4be694;_0x5de450>=this[_0x5efa3e(0x3df)]['startRow']&&_0x5de450<=this[_0x5efa3e(0x3df)][_0x5efa3e(0x2eb)]&&_0x1f5dcf>=this[_0x5efa3e(0x3df)]['startColumn']&&_0x1f5dcf<=this['_range'][_0x5efa3e(0x30c)]?this[_0x5efa3e(0x24c)]({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x25340a){const _0x2c651f=_0x190561;this['_stopBlinking'](),this[_0x2c651f(0x2c8)]=!0x0,this['_blinkIntervalTimer']=window[_0x2c651f(0x453)](()=>{const _0x5e1a51=_0x2c651f;this[_0x5e1a51(0x2c8)]=!this['_isBlinkVisible'],this['makeDirty'](!0x0);},0x1f4),this[_0x2c651f(0x43f)]=window['setTimeout'](()=>{const _0x1ade4b=_0x2c651f;this[_0x1ade4b(0x25d)](),this[_0x1ade4b(0x2c8)]=!0x0,this[_0x1ade4b(0x2ee)](!0x0);},_0x25340a*0x3e8);}[_0x190561(0x25d)](){const _0x17a9e9=_0x190561;this[_0x17a9e9(0x49e)]&&=(window['clearInterval'](this[_0x17a9e9(0x49e)]),void 0x0),this['_blinkTimer']&&=(window[_0x17a9e9(0x1cb)](this['_blinkTimer']),void 0x0);}['triggerDblclick'](_0x288f4f){return!0x1;}['dispose'](){const _0x5cea2c=_0x190561;this[_0x5cea2c(0x25d)](),super[_0x5cea2c(0x508)]();}[_0x190561(0x22b)](_0x3ff4aa){const _0x124370=_0x190561;let _0x6c11d4=this[_0x124370(0x1ed)],_0x462d8c=this[_0x124370(0x33c)];if(this[_0x124370(0x4fc)]&&!this[_0x124370(0x2c8)]&&(_0x6c11d4=this[_0x124370(0x359)](this[_0x124370(0x1ed)]),_0x462d8c=this['_backgroundColor']?this['_getLighterColor'](this[_0x124370(0x33c)]):void 0x0),_0x3822ed[_0x124370(0x3f2)]['drawWith'](_0x3ff4aa,{'width':this[_0x124370(0x50e)],'height':this[_0x124370(0x286)],'strokeWidth':this[_0x124370(0x4dd)]||1.5,'stroke':_0x6c11d4,'evented':!0x1,'fill':_0x462d8c}),this['_hovered']||this[_0x124370(0x428)]){_0x3ff4aa[_0x124370(0x2db)]();let _0x6d446d=this[_0x124370(0x358)]==='left'?-_0x18cb57(_0x3ff4aa,this[_0x124370(0x2b7)]):this[_0x124370(0x50e)];_0x3ff4aa[_0x124370(0x40c)](0x1,0x0,0x0,0x1,_0x6d446d,(this[_0x124370(0x3ab)]==='bottom'?0x0:-0x14)+(this[_0x124370(0x3f3)]??0x0)),_0x30c084[_0x124370(0x459)](_0x3ff4aa,{'text':this[_0x124370(0x2b7)],'color':_0x6c11d4}),_0x3ff4aa[_0x124370(0x230)]();}}['_getLighterColor'](_0x40639b){const _0x22badf=_0x190561;return _0x40639b['startsWith']('#')?_0x22badf(0x2cd)+Number[_0x22badf(0x25b)](_0x40639b['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x22badf(0x25b)](_0x40639b[_0x22badf(0x3fc)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x40639b[_0x22badf(0x3fc)](0x5,0x7),0x10)+_0x22badf(0x357):_0x40639b[_0x22badf(0x3da)]('rgba')?_0x40639b[_0x22badf(0x217)](/[\d.]+\)$/g,_0x22badf(0x3b9)):_0x40639b['startsWith'](_0x22badf(0x3cd))?_0x40639b[_0x22badf(0x217)]('rgb',_0x22badf(0x28f))[_0x22badf(0x217)](')',_0x22badf(0x357)):_0x40639b;}};let _0x25d114=class extends _0x263090[_0x190561(0x488)]{constructor(_0x846509,_0x1a0da1,_0x355971,_0x1a0352){const _0x40840a=_0x190561;super(),this['_context']=_0x846509,this[_0x40840a(0x3bc)]=_0x1a0da1,this[_0x40840a(0x477)]=_0x355971,this['_themeService']=_0x1a0352,_0x312734(this,'_cursors',new Set()),_0x312734(this,_0x40840a(0x2f6),null),_0x312734(this,_0x40840a(0x4c4),null),this[_0x40840a(0x23e)]();}[_0x190561(0x23e)](){const _0x566b19=_0x190561;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe']((0x0,_0x1b375c['takeUntil'])(this[_0x566b19(0x448)]),(0x0,_0x1b375c[_0x566b19(0x361)])(_0x216728=>{const _0x5df73d=_0x566b19;if(_0x216728){let _0x13689a=_0x216728[_0x5df73d(0x1d5)];return(0x0,_0x4c31a2[_0x5df73d(0x23d)])(this['_collabCursorController']['getCollabCursors$'](this[_0x5df73d(0x32a)][_0x5df73d(0x314)]),this[_0x5df73d(0x505)][_0x5df73d(0x30b)])['pipe']((0x0,_0x1b375c[_0x5df73d(0x4d8)])(([_0x13ceb4,_0x347498])=>{const _0x48528c=_0x5df73d;let _0x3a1f35=new Map();return _0x13ceb4[_0x48528c(0x4d5)]((_0x7aec83,_0x3a3b84)=>{const _0x4372c4=_0x48528c;if(_0x7aec83['sheetID']===_0x13689a){let _0x1c3ad0={..._0x7aec83};_0x1c3ad0[_0x4372c4(0x269)]=this[_0x4372c4(0x505)][_0x4372c4(0x4cc)](_0x7aec83[_0x4372c4(0x269)]),_0x3a1f35[_0x4372c4(0x1b0)](_0x3a3b84,_0x1c3ad0);}}),{'skeleton':_0x216728,'cursors':_0x3a1f35};}));}return(0x0,_0x4c31a2['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2ba93a,cursors:_0x2bdce6})=>{const _0x46c226=_0x566b19;this[_0x46c226(0x481)](),_0x2ba93a&&this['_updateCollabCursors'](_0x2ba93a,_0x2bdce6);}),this[_0x566b19(0x1bd)](this[_0x566b19(0x3bc)][_0x566b19(0x2d6)][_0x566b19(0x28d)]((0x0,_0x1b375c[_0x566b19(0x31d)])(this[_0x566b19(0x448)]))[_0x566b19(0x2b8)](_0x1defbc=>{const _0x3fc406=_0x566b19;var _0x3992b4;if(_0x1defbc==null)return;(_0x3992b4=this[_0x3fc406(0x4c4)])==null||_0x3992b4[_0x3fc406(0x351)](),this[_0x3fc406(0x4c4)]=null;let {skeleton:_0x586cd9}=_0x1defbc,{scene:_0x35a850}=this[_0x3fc406(0x32a)];this[_0x3fc406(0x4c4)]=_0x35a850[_0x3fc406(0x4ef)][_0x3fc406(0x510)]((0x0,_0x263090[_0x3fc406(0x1dc)])(_0xbe6b61=>{const _0x1f2989=_0x3fc406;var _0x56f0db,_0x368dc3;let {offsetX:_0x27df58,offsetY:_0xbd9a68}=_0xbe6b61,{x:_0x3aedb9,y:_0x27cac7}=_0x35a850['getCoordRelativeToViewport'](_0x3822ed[_0x1f2989(0x317)][_0x1f2989(0x369)]([_0x27df58,_0xbd9a68])),{scaleX:_0x146ad6,scaleY:_0x2389c1}=_0x35a850[_0x1f2989(0x48c)](),_0x3fdc6f=_0x35a850[_0x1f2989(0x3ec)](_0x3822ed[_0x1f2989(0x3f5)][_0x1f2989(0x48f)]),_0x5ecf55=_0x35a850[_0x1f2989(0x3af)](_0x3822ed[_0x1f2989(0x317)]['FromArray']([_0x3aedb9,_0x27cac7]),_0x3fdc6f),_0xc2b88c=_0x586cd9['getCellIndexByOffset'](_0x27df58,_0xbd9a68,_0x146ad6,_0x2389c1,_0x5ecf55);(((_0x56f0db=this[_0x1f2989(0x2f6)])==null?void 0x0:_0x56f0db[_0x1f2989(0x48e)])!==_0xc2b88c[_0x1f2989(0x48e)]||((_0x368dc3=this['_lastPointer'])==null?void 0x0:_0x368dc3[_0x1f2989(0x362)])!==_0xc2b88c[_0x1f2989(0x362)])&&this[_0x1f2989(0x2f1)]['forEach'](_0x72dca8=>{const _0x233eda=_0x1f2989;_0x72dca8[_0x233eda(0x1e8)](_0xc2b88c);});},0x64));})),this[_0x566b19(0x1bd)]((0x0,_0x263090[_0x566b19(0x2e4)])(()=>{const _0x1fc3ba=_0x566b19;var _0x17abae;(_0x17abae=this[_0x1fc3ba(0x4c4)])==null||_0x17abae[_0x1fc3ba(0x351)](),this[_0x1fc3ba(0x4c4)]=null;}));}[_0x190561(0x2e1)](_0x492231,_0x49be47){const _0x166e9b=_0x190561;let _0x567324=this[_0x166e9b(0x3bc)][_0x166e9b(0x403)]();if(!_0x567324)return;let _0x39c5a1=this[_0x166e9b(0x3fe)]();if(!_0x39c5a1)return;this[_0x166e9b(0x2f1)]['forEach'](_0x3535df=>{_0x3535df['makeDirty']();});let {scene:_0x2a5fee}=_0x39c5a1,_0x480263=_0x49432a(Array[_0x166e9b(0x4ce)](_0x49be47[_0x166e9b(0x491)]()))['map'](_0x909fb0=>{const _0x4a31fe=_0x166e9b;let {color:_0x2c3a29,range:_0x43499b,name:_0x22a91d,selection:_0x29fd27,sheetID:_0x2a0f62}=_0x909fb0,{startColumn:_0x3e6421,startRow:_0x4c0665,endColumn:_0x5a6dcb,endRow:_0xc44d1b}=_0x43499b,_0x409cfb=(0x0,_0xb3521a[_0x4a31fe(0x412)])(_0x4c0665,_0x3e6421,_0x2a5fee,_0x567324),_0xb93229=(0x0,_0xb3521a[_0x4a31fe(0x412)])(_0xc44d1b,_0x5a6dcb,_0x2a5fee,_0x567324),{columnHeaderHeightAndMarginTop:_0x2ae66a}=_0x567324,{startX:_0x5bec06,startY:_0x20b29c}=_0x409cfb,{endX:_0x218b81,endY:_0x19a179}=_0xb93229,_0x35a3ec=_0x218b81-_0x5bec06,_0x2be7bf=_0x19a179-_0x20b29c;return new _0x14cf5b(_0x22a91d,{'labelPosition':_0x20b29c-_0x2ae66a>=0x14?_0x4a31fe(0x21d):_0x4a31fe(0x31e),'sheetID':_0x2a0f62,'range':_0x43499b,'color':_0x2c3a29,'name':_0x22a91d,'selection':_0x29fd27,'left':_0x5bec06,'top':_0x20b29c,'width':_0x35a3ec,'height':_0x2be7bf,'evented':!0x1,'zIndex':0x1389});});_0x2a5fee[_0x166e9b(0x275)](_0x480263,0x1),this[_0x166e9b(0x2f1)]=new Set(_0x480263);}[_0x190561(0x481)](){const _0x2cb3b5=_0x190561;var _0x2dfd11;(_0x2dfd11=this[_0x2cb3b5(0x2f1)])==null||_0x2dfd11[_0x2cb3b5(0x4d5)](_0x417573=>_0x417573['dispose']());}[_0x190561(0x3fe)](){const _0x5755c9=_0x190561;return(0x0,_0xb3521a[_0x5755c9(0x3a4)])(this[_0x5755c9(0x32a)][_0x5755c9(0x327)],this[_0x5755c9(0x32a)]);}};_0x25d114=_0x31453e([_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0xb3521a[_0x190561(0x424)])),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x7b494a)),_0x2cd89e(0x3,(0x0,_0x263090['Inject'])(_0x263090[_0x190561(0x411)]))],_0x25d114);function _0x49432a(_0x481236){const _0x287adc=_0x190561;let _0x345701=new Map();return _0x481236[_0x287adc(0x4d5)](_0x978e2=>{const _0x664bf5=_0x287adc;if(_0x345701['has'](_0x978e2[_0x664bf5(0x2d1)])){let _0x28e78b=_0x345701[_0x664bf5(0x38c)](_0x978e2['selection']);_0x28e78b[_0x664bf5(0x45c)]+=',\x20'+_0x978e2[_0x664bf5(0x45c)];}else _0x345701['set'](_0x978e2['selection'],_0x978e2);}),Array[_0x287adc(0x4ce)](_0x345701[_0x287adc(0x491)]());}function _0x562cf7(_0x10ed28){const _0x2d1eea=_0x190561;return typeof _0x10ed28==_0x2d1eea(0x390)&&!!_0x10ed28;}function _0x233c16(_0x45d45a){const _0x3d0db4=_0x190561;return _0x45d45a[_0x3d0db4(0x47b)]===_0x5eadb5[_0x3d0db4(0x244)]['UPDATE_CURSOR']&&_0x3d0db4(0x407)in _0x45d45a&&_0x562cf7(_0x45d45a[_0x3d0db4(0x407)])&&typeof _0x45d45a[_0x3d0db4(0x407)][_0x3d0db4(0x418)]=='string'&&typeof _0x45d45a[_0x3d0db4(0x407)][_0x3d0db4(0x2d1)]=='string';}function _0x3fa96b(_0x26cdd1){const _0x3a5265=_0x190561;return _0x26cdd1[_0x3a5265(0x47b)]===_0x5eadb5['CollaborationEvent']['USERS_LEAVE']&&_0x3a5265(0x407)in _0x26cdd1&&_0x562cf7(_0x26cdd1[_0x3a5265(0x407)])&&typeof _0x26cdd1[_0x3a5265(0x407)][_0x3a5265(0x418)]==_0x3a5265(0x1ef);}function _0x1e0754(_0x3625bb,_0x484771){const _0x32b050=_0x190561;let _0x3bd756;try{_0x3bd756=JSON[_0x32b050(0x438)](_0x3625bb);}catch{return null;}if(!_0x562cf7(_0x3bd756)||typeof _0x3bd756[_0x32b050(0x27a)]!=_0x32b050(0x1ef)||typeof _0x3bd756[_0x32b050(0x314)]!=_0x32b050(0x1ef)||typeof _0x3bd756['subUnitId']!=_0x32b050(0x1ef))return null;let _0x262303=typeof _0x3bd756[_0x32b050(0x3f1)]=='number'?_0x3bd756[_0x32b050(0x3f1)]:_0x484771;if(_0x262303==null)return null;let _0x3b9e9c=_0x562cf7(_0x3bd756[_0x32b050(0x268)])&&typeof _0x3bd756[_0x32b050(0x268)]['x']==_0x32b050(0x307)&&Number[_0x32b050(0x50f)](_0x3bd756[_0x32b050(0x268)]['x'])&&typeof _0x3bd756['pointer']['y']==_0x32b050(0x307)&&Number[_0x32b050(0x50f)](_0x3bd756['pointer']['y'])?{'x':_0x3bd756[_0x32b050(0x268)]['x'],'y':_0x3bd756[_0x32b050(0x268)]['y']}:null;return{'kind':_0x3bd756['kind'],'unitType':_0x262303,'unitId':_0x3bd756[_0x32b050(0x314)],'subUnitId':_0x3bd756[_0x32b050(0x3d8)],'selectedIds':Array[_0x32b050(0x45b)](_0x3bd756[_0x32b050(0x4b8)])?_0x3bd756[_0x32b050(0x4b8)][_0x32b050(0x381)](_0x4c7215=>typeof _0x4c7215==_0x32b050(0x1ef)):[],'focusedId':typeof _0x3bd756['focusedId']==_0x32b050(0x1ef)?_0x3bd756['focusedId']:null,'pointer':_0x3b9e9c};}function _0x5816b5(_0x39a9ab,_0x3da27e,_0x47c5f){const _0x27a5c0=_0x190561;return{'kind':_0x3da27e,'unitType':_0x39a9ab,'unitId':_0x47c5f['unitId'],'subUnitId':_0x47c5f[_0x27a5c0(0x3d8)],'selectedIds':Array[_0x27a5c0(0x4ce)](_0x47c5f['selectedIds']),'focusedId':_0x47c5f[_0x27a5c0(0x42f)],'pointer':_0x47c5f[_0x27a5c0(0x268)]?{..._0x47c5f[_0x27a5c0(0x268)]}:null};}let _0x50aee2=class extends _0x263090[_0x190561(0x488)]{constructor(_0x4a9183,_0x3d618a,_0x57d63e,_0x1685e9,_0x44d951,_0x5f2e09){const _0x5b9b08=_0x190561;super(),this[_0x5b9b08(0x314)]=_0x4a9183,this[_0x5b9b08(0x2a5)]=_0x3d618a,this[_0x5b9b08(0x1ee)]=_0x57d63e,this[_0x5b9b08(0x4e5)]=_0x1685e9,this[_0x5b9b08(0x2d0)]=_0x44d951,this['_commandService']=_0x5f2e09,_0x312734(this,_0x5b9b08(0x4e6),!0x1),_0x312734(this,_0x5b9b08(0x29a),!0x1);}get['unitType'](){const _0x5a42a1=_0x190561;return this[_0x5a42a1(0x1ee)][_0x5a42a1(0x3f1)];}[_0x190561(0x508)](){const _0x46f441=_0x190561;this[_0x46f441(0x349)](),super[_0x46f441(0x508)]();}[_0x190561(0x400)](){const _0x20f2ea=_0x190561;this['_initialized']||(this[_0x20f2ea(0x29a)]=!0x0,this[_0x20f2ea(0x2a5)][_0x20f2ea(0x343)][_0x20f2ea(0x28d)]((0x0,_0x4c31a2[_0x20f2ea(0x31d)])(this[_0x20f2ea(0x448)]))[_0x20f2ea(0x2b8)](_0x3476de=>{const _0x3f0a87=_0x20f2ea;if(_0x3476de===_0x3107d6[_0x3f0a87(0x4a7)]['ONLINE']){this['_online']=!0x0;let _0x3384b4=this[_0x3f0a87(0x1ee)][_0x3f0a87(0x4b4)](this[_0x3f0a87(0x314)]);_0x3384b4&&this['_sendLocalPresence'](_0x3384b4);}else this[_0x3f0a87(0x4e6)]=!0x1,this['_clearRemotePresences']();}),this[_0x20f2ea(0x2a5)][_0x20f2ea(0x294)][_0x20f2ea(0x28d)]((0x0,_0x4c31a2[_0x20f2ea(0x31d)])(this[_0x20f2ea(0x448)]))['subscribe'](_0x30c59c=>{const _0x3abd6e=_0x20f2ea;_0x233c16(_0x30c59c)?this[_0x3abd6e(0x285)](_0x30c59c):_0x3fa96b(_0x30c59c)&&this[_0x3abd6e(0x25f)](_0x30c59c[_0x3abd6e(0x407)][_0x3abd6e(0x418)]);}),this[_0x20f2ea(0x1ee)][_0x20f2ea(0x1ba)][_0x20f2ea(0x28d)]((0x0,_0x4c31a2[_0x20f2ea(0x381)])(_0x53a6af=>this[_0x20f2ea(0x4e6)]&&_0x53a6af[_0x20f2ea(0x314)]===this['unitId']),(0x0,_0x4c31a2['throttle'])(_0x41db49=>(0x0,_0x4c31a2[_0x20f2ea(0x20b)])(_0x41db49['shareInterval']),{'leading':!0x0,'trailing':!0x0}),(0x0,_0x4c31a2['takeUntil'])(this[_0x20f2ea(0x448)]))[_0x20f2ea(0x2b8)](_0x4b252f=>this[_0x20f2ea(0x222)](_0x4b252f)));}[_0x190561(0x222)](_0xe20cc7){const _0x48595d=_0x190561;let _0x50b6d2=this[_0x48595d(0x2a5)]['getMemberID']();if(!_0x50b6d2||!this[_0x48595d(0x4e6)])return;let _0x24f6b7={'eventID':_0x5eadb5[_0x48595d(0x244)]['UPDATE_CURSOR'],'data':{'unitID':this['unitId'],'memberID':_0x50b6d2,'selection':JSON['stringify'](_0x5816b5(this['unitType'],this[_0x48595d(0x1ee)][_0x48595d(0x518)],_0xe20cc7))}};this['_session'][_0x48595d(0x1f2)](_0x24f6b7,this[_0x48595d(0x314)])[_0x48595d(0x325)](()=>void 0x0);}[_0x190561(0x285)](_0x27a49f){const _0x1937fc=_0x190561;let {memberID:_0x72c5cc,selection:_0x41665e}=_0x27a49f[_0x1937fc(0x407)];if(_0x72c5cc===this['_session'][_0x1937fc(0x24a)]())return;let _0x2d4b8f=_0x1e0754(_0x41665e,this[_0x1937fc(0x3f1)]);if(!_0x2d4b8f||_0x2d4b8f[_0x1937fc(0x27a)]!==this[_0x1937fc(0x1ee)][_0x1937fc(0x518)]||_0x2d4b8f['unitType']!==this[_0x1937fc(0x3f1)]||_0x2d4b8f[_0x1937fc(0x314)]!==this[_0x1937fc(0x314)])return;let _0x5648ee=this[_0x1937fc(0x2d0)][_0x1937fc(0x2a0)](this[_0x1937fc(0x314)],_0x72c5cc),_0x231e9a={'unitId':_0x2d4b8f[_0x1937fc(0x314)],'subUnitId':_0x2d4b8f[_0x1937fc(0x3d8)],'selectedIds':_0x2d4b8f[_0x1937fc(0x4b8)],'focusedId':_0x2d4b8f[_0x1937fc(0x42f)],'pointer':_0x2d4b8f[_0x1937fc(0x268)],'memberId':_0x72c5cc,'color':this[_0x1937fc(0x4e5)]['assignAColorForMemberID'](_0x72c5cc),'name':(_0x5648ee==null?void 0x0:_0x5648ee['name'])??_0x72c5cc};this[_0x1937fc(0x49c)][_0x1937fc(0x38b)](_0x14f854['id'],{'unitType':this['unitType'],'update':{'type':'set','state':_0x231e9a}})['catch'](()=>void 0x0);}[_0x190561(0x25f)](_0x4279eb){const _0x22bb18=_0x190561;this[_0x22bb18(0x49c)][_0x22bb18(0x38b)](_0x14f854['id'],{'unitType':this[_0x22bb18(0x3f1)],'update':{'type':_0x22bb18(0x215),'unitId':this['unitId'],'memberId':_0x4279eb}})['catch'](()=>void 0x0);}[_0x190561(0x349)](){const _0x2d1811=_0x190561;this[_0x2d1811(0x49c)][_0x2d1811(0x38b)](_0x14f854['id'],{'unitType':this[_0x2d1811(0x3f1)],'update':{'type':_0x2d1811(0x4d4),'unitId':this['unitId']}})['catch'](()=>void 0x0);}};_0x50aee2=_0x31453e([_0x2cd89e(0x3,(0x0,_0x263090['Inject'])(_0x31e883)),_0x2cd89e(0x4,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6['MemberService'])),_0x2cd89e(0x5,(0x0,_0x263090['Inject'])(_0x263090[_0x190561(0x1f9)]))],_0x50aee2);let _0x42c0ec=class extends _0x263090['RxDisposable']{constructor(_0xee1270,_0x26b5ef,_0x20a3e3,_0x3286e8){const _0x4c611a=_0x190561;super(),this[_0x4c611a(0x211)]=_0xee1270,this[_0x4c611a(0x1b8)]=_0x26b5ef,this[_0x4c611a(0x50c)]=_0x20a3e3,this['_adapterRegistry']=_0x3286e8,_0x312734(this,'_isDisposed',!0x1),_0x312734(this,_0x4c611a(0x2a9),new Map()),_0x312734(this,_0x4c611a(0x48a),new Map()),_0x312734(this,_0x4c611a(0x35a),new Map()),this[_0x4c611a(0x23e)]();}[_0x190561(0x508)](){const _0x71bb31=_0x190561;this['_isDisposed']=!0x0,this['_adapterDisposables'][_0x71bb31(0x4d5)](_0x5c91e8=>_0x5c91e8[_0x71bb31(0x508)]()),this['_adapterDisposables'][_0x71bb31(0x4d4)](),this[_0x71bb31(0x2a9)][_0x71bb31(0x4d5)](_0x2b76fc=>_0x2b76fc[_0x71bb31(0x508)]()),this[_0x71bb31(0x2a9)][_0x71bb31(0x4d4)](),this[_0x71bb31(0x48a)][_0x71bb31(0x4d4)](),super[_0x71bb31(0x508)]();}['_init'](){const _0x1b8708=_0x190561;this[_0x1b8708(0x4b1)][_0x1b8708(0x3e1)]['pipe']((0x0,_0x4c31a2[_0x1b8708(0x31d)])(this[_0x1b8708(0x448)]))['subscribe'](_0x32c639=>this[_0x1b8708(0x28c)](_0x32c639));}['_syncAdapters'](_0x2ca0a5){const _0xbd48cc=_0x190561;let _0x4af732=new Set(_0x2ca0a5[_0xbd48cc(0x4d8)](_0x40c46c=>_0x40c46c['unitType']));this['_adapterDisposables'][_0xbd48cc(0x4d5)]((_0x56be48,_0x56c3f4)=>{const _0x138731=_0xbd48cc;_0x4af732[_0x138731(0x386)](_0x56c3f4)||(_0x56be48[_0x138731(0x508)](),this[_0x138731(0x35a)][_0x138731(0x4d7)](_0x56c3f4),this['_disposeEntitiesForType'](_0x56c3f4));}),_0x2ca0a5['forEach'](_0x321db2=>{const _0x1bd800=_0xbd48cc;this[_0x1bd800(0x35a)][_0x1bd800(0x386)](_0x321db2[_0x1bd800(0x3f1)])||this[_0x1bd800(0x3ea)](_0x321db2);});}[_0x190561(0x3ea)](_0x3f1566){const _0x526e54=_0x190561;let _0x20c198=new _0x263090[(_0x526e54(0x4db))]();this['_adapterDisposables'][_0x526e54(0x1b0)](_0x3f1566['unitType'],_0x20c198),_0x20c198[_0x526e54(0x4f9)](_0x3f1566[_0x526e54(0x31a)]()),this['_univerInstanceService'][_0x526e54(0x39c)](_0x3f1566[_0x526e54(0x3f1)])[_0x526e54(0x4d5)](_0x4211a1=>this['_startEntity'](_0x4211a1['getUnitId'](),_0x3f1566)['catch'](()=>void 0x0));let _0x3c3db9=this[_0x526e54(0x211)][_0x526e54(0x41c)](_0x3f1566[_0x526e54(0x3f1)])[_0x526e54(0x2b8)](({unit:_0x18c64e})=>this[_0x526e54(0x205)](_0x18c64e['getUnitId'](),_0x3f1566)[_0x526e54(0x325)](()=>void 0x0));_0x20c198[_0x526e54(0x4f9)]((0x0,_0x263090[_0x526e54(0x2e4)])(()=>_0x3c3db9[_0x526e54(0x351)]()));let _0xac7f20=this[_0x526e54(0x211)]['getTypeOfUnitDisposed$'](_0x3f1566[_0x526e54(0x3f1)])[_0x526e54(0x2b8)](_0x2364b9=>this['_disposeEntity'](_0x2364b9[_0x526e54(0x20f)]()));_0x20c198['add']((0x0,_0x263090[_0x526e54(0x2e4)])(()=>_0xac7f20[_0x526e54(0x351)]()));}async['_startEntity'](_0x4bfd22,_0x3ed66b){const _0x5d38aa=_0x190561;if(this['_entities'][_0x5d38aa(0x386)](_0x4bfd22)||this[_0x5d38aa(0x48a)]['has'](_0x4bfd22))return;let _0x3c1390={};this[_0x5d38aa(0x48a)]['set'](_0x4bfd22,_0x3c1390);let _0x2588e7=await this['_collabSessionService'][_0x5d38aa(0x273)](_0x4bfd22)[_0x5d38aa(0x325)](_0x24ac27=>{const _0x389091=_0x5d38aa;throw this[_0x389091(0x48a)][_0x389091(0x38c)](_0x4bfd22)===_0x3c1390&&this[_0x389091(0x48a)]['delete'](_0x4bfd22),_0x24ac27;});if(this[_0x5d38aa(0x2fb)]||this[_0x5d38aa(0x48a)][_0x5d38aa(0x38c)](_0x4bfd22)!==_0x3c1390||this[_0x5d38aa(0x4b1)]['get'](_0x3ed66b[_0x5d38aa(0x3f1)])!==_0x3ed66b){this[_0x5d38aa(0x48a)][_0x5d38aa(0x38c)](_0x4bfd22)===_0x3c1390&&this['_pendingEntities'][_0x5d38aa(0x4d7)](_0x4bfd22);return;}let _0x4d8fb3=this[_0x5d38aa(0x1b8)][_0x5d38aa(0x478)](_0x50aee2,_0x4bfd22,_0x2588e7,_0x3ed66b);_0x4d8fb3['init'](),this[_0x5d38aa(0x48a)][_0x5d38aa(0x4d7)](_0x4bfd22),this[_0x5d38aa(0x2a9)]['set'](_0x4bfd22,_0x4d8fb3);}[_0x190561(0x283)](_0x144fc1){const _0x3000f2=_0x190561;this[_0x3000f2(0x48a)][_0x3000f2(0x4d7)](_0x144fc1);let _0x348f7f=this['_entities'][_0x3000f2(0x38c)](_0x144fc1);_0x348f7f&&(_0x348f7f[_0x3000f2(0x508)](),this['_entities'][_0x3000f2(0x4d7)](_0x144fc1));}['_disposeEntitiesForType'](_0x595ae7){const _0x434282=_0x190561;this[_0x434282(0x211)][_0x434282(0x39c)](_0x595ae7)[_0x434282(0x4d5)](_0x40fded=>this[_0x434282(0x48a)][_0x434282(0x4d7)](_0x40fded[_0x434282(0x20f)]())),Array['from'](this[_0x434282(0x2a9)][_0x434282(0x3ca)]())[_0x434282(0x4d5)](([_0x323d5f,_0x394a69])=>{const _0x14f33f=_0x434282;_0x394a69[_0x14f33f(0x3f1)]===_0x595ae7&&this[_0x14f33f(0x283)](_0x323d5f);});}};_0x42c0ec=_0x31453e([_0x2cd89e(0x0,_0x263090[_0x190561(0x48d)]),_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6[_0x190561(0x1f7)])),_0x2cd89e(0x3,(0x0,_0x263090[_0x190561(0x413)])(_0x543d66['IUnitPresenceUIAdapterRegistry']))],_0x42c0ec);let _0x453cbf={'toast':_0x190561(0x4bd),'actionButton':_0x190561(0x2cb)},_0x18f8a9={'title':_0x190561(0x252),'content':_0x190561(0x35d),'type':_0x190561(0x396)},_0x5be349={'permission_rejected':{'title':'collaboration-client-ui.permission.title','content':_0x190561(0x4be),'type':'error'},'license_unit_type_rejected':{'title':_0x190561(0x352),'content':_0x190561(0x4b6),'type':'error'},'remote_revert':{'title':'collaboration-client-ui.remoteRevert.title','content':_0x190561(0x2ef),'type':'warning'}},_0x4cc9cc=class extends _0x263090['Disposable']{constructor(_0x4207f1,_0x4099b8,_0x1b75f9,_0x38f806,_0x3b34a0,_0x2476e9,_0x233a45,_0x216982){const _0x3d0e3d=_0x190561;var _0x41a6ef;super(),this[_0x3d0e3d(0x2f7)]=_0x4207f1,this[_0x3d0e3d(0x3e8)]=_0x4099b8,this[_0x3d0e3d(0x451)]=_0x1b75f9,this[_0x3d0e3d(0x32e)]=_0x38f806,this[_0x3d0e3d(0x207)]=_0x3b34a0,this['_localeService']=_0x2476e9,this['_collaborationController']=_0x233a45,this[_0x3d0e3d(0x437)]=_0x216982,_0x312734(this,'_conflictNotification',null),_0x312734(this,'_retryingConflictCacheUnitIDs',new Set()),_0x312734(this,'_saveTimedOutNotices',new Map()),_0x312734(this,_0x3d0e3d(0x36d),new Map()),this['_setupBeforeClosingHandler'](),this[_0x3d0e3d(0x2be)](),this[_0x3d0e3d(0x4d9)](),((_0x41a6ef=this['_configService'][_0x3d0e3d(0x23a)](_0x3d0e3d(0x4fa)))==null?void 0x0:_0x41a6ef[_0x3d0e3d(0x32d)])!==!0x1&&this['_initConflictHandling']();}[_0x190561(0x508)](){const _0x13ad8a=_0x190561;var _0x3cba45;(_0x3cba45=this[_0x13ad8a(0x224)])==null||_0x3cba45[_0x13ad8a(0x508)](),this['_conflictNotification']=null;for(let _0x5cb716 of[this['_saveTimedOutNotices'],this[_0x13ad8a(0x36d)]])_0x5cb716['forEach'](_0x5e11b5=>_0x5e11b5[_0x13ad8a(0x508)]()),_0x5cb716[_0x13ad8a(0x4d4)]();super['dispose']();}['_initAwaitingNotices'](){const _0x2ea635=_0x190561;let _0x3b8dcc=_0x228cbc=>{const _0xde7416=_0x229d;let _0x3ba46c=new _0x263090[(_0xde7416(0x4db))]();_0x3ba46c['add']((0x0,_0x263090[_0xde7416(0x2e4)])(_0x228cbc[_0xde7416(0x46f)][_0xde7416(0x2b8)]({'next':_0x3a0f40=>{const _0x281bee=_0xde7416;_0x3a0f40[_0x281bee(0x3a6)]>=0x4e20&&this[_0x281bee(0x3bb)](this[_0x281bee(0x214)],_0x228cbc[_0x281bee(0x4c1)],'collaboration-client-ui.session.collaboration-timeout'),_0x3a0f40[_0x281bee(0x3d3)]===_0x281bee(0x293)&&this[_0x281bee(0x3bb)](this[_0x281bee(0x36d)],_0x228cbc[_0x281bee(0x4c1)],_0x281bee(0x1ec));},'complete':()=>{const _0x28e32a=_0xde7416;this['_removeAwaitingNotices'](_0x228cbc[_0x28e32a(0x4c1)]),_0x3ba46c['dispose']();}}))),_0x3ba46c[_0xde7416(0x4f9)]((0x0,_0x263090[_0xde7416(0x2e4)])(_0x228cbc[_0xde7416(0x2b5)][_0xde7416(0x2b8)](_0x591802=>{const _0xf44b30=_0xde7416;_0x591802!==_0x3107d6[_0xf44b30(0x203)][_0xf44b30(0x4f6)]&&_0x591802!==_0x3107d6[_0xf44b30(0x203)][_0xf44b30(0x3e5)]&&this['_removeAwaitingNotices'](_0x228cbc[_0xf44b30(0x4c1)]);}))),this[_0xde7416(0x1bd)](_0x3ba46c);};this[_0x2ea635(0x29d)][_0x2ea635(0x37e)]()[_0x2ea635(0x4d5)](_0x3b8dcc),this[_0x2ea635(0x1bd)]((0x0,_0x263090['toDisposable'])(this[_0x2ea635(0x29d)][_0x2ea635(0x42a)][_0x2ea635(0x2b8)](_0x3b8dcc)));}['_showAwaitingNotice'](_0x4eb292,_0x1d2907,_0x26248f){const _0x55558e=_0x190561;_0x4eb292[_0x55558e(0x386)](_0x1d2907)||_0x4eb292[_0x55558e(0x1b0)](_0x1d2907,this['_notificationService'][_0x55558e(0x373)]({'title':this[_0x55558e(0x375)]['t'](_0x26248f),'type':'warning','duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x190561(0x237)](_0x37e390){const _0x49c57c=_0x190561;for(let _0x328877 of[this[_0x49c57c(0x214)],this['_editingConnectionsExceededNotices']]){var _0x3be789;(_0x3be789=_0x328877['get'](_0x37e390))==null||_0x3be789[_0x49c57c(0x508)](),_0x328877[_0x49c57c(0x4d7)](_0x37e390);}}['_setupBeforeClosingHandler'](){const _0x280ff0=_0x190561;this[_0x280ff0(0x1bd)](this[_0x280ff0(0x2f7)][_0x280ff0(0x256)](()=>{const _0x14af3a=_0x280ff0;if(this['_localCacheService'][_0x14af3a(0x27b)]['size'])return this[_0x14af3a(0x375)]['t'](_0x14af3a(0x2ff));}));}['_initConflictHandling'](){const _0x123ff2=_0x190561;let _0x2a1965=_0x55065e=>{const _0x35d32e=_0x229d;this['disposeWithMe']((0x0,_0x263090[_0x35d32e(0x2e4)])(_0x55065e[_0x35d32e(0x274)][_0x35d32e(0x2b8)](_0x224271=>this[_0x35d32e(0x354)](_0x224271))));};this[_0x123ff2(0x29d)]['getCollabEntities']()[_0x123ff2(0x4d5)](_0x2a1965),this[_0x123ff2(0x1bd)]((0x0,_0x263090['toDisposable'])(this[_0x123ff2(0x29d)]['entityInit$'][_0x123ff2(0x2b8)](_0x2a1965)));}[_0x190561(0x354)](_0x4dce7d){const _0x18d06a=_0x190561;if(!_0x4dce7d['cacheCleared'])return;let _0x3cc362=_0x5be349[_0x4dce7d[_0x18d06a(0x3d3)]]??_0x18f8a9;this[_0x18d06a(0x49d)]({'title':this[_0x18d06a(0x375)]['t'](_0x3cc362[_0x18d06a(0x3c3)]),'content':this[_0x18d06a(0x375)]['t'](_0x3cc362[_0x18d06a(0x404)]),'type':_0x3cc362['type'],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':_0x453cbf,'action':{'label':this[_0x18d06a(0x375)]['t'](_0x18d06a(0x1d7)),'onClick':_0x4b862a=>{const _0x2cfe9f=_0x18d06a;_0x4b862a[_0x2cfe9f(0x3a2)](),this[_0x2cfe9f(0x3db)]();}}});}['_reloadPage'](){const _0x6a893a=_0x190561;window[_0x6a893a(0x22d)]['reload']();}['_initEvent'](){const _0x1c6b79=_0x190561;this[_0x1c6b79(0x1bd)](this['_collaborationUIEventService'][_0x1c6b79(0x294)][_0x1c6b79(0x2b8)](_0x3f8a9b=>{const _0x10866e=_0x1c6b79;_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)][_0x10866e(0x308)]&&this[_0x10866e(0x32e)][_0x10866e(0x373)]({'type':_0x12c3fa[_0x10866e(0x1c6)][_0x10866e(0x47f)],'content':this[_0x10866e(0x375)]['t'](_0x10866e(0x37b))}),_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)][_0x10866e(0x47a)]&&this[_0x10866e(0x32e)][_0x10866e(0x373)]({'type':_0x12c3fa['MessageType'][_0x10866e(0x47f)],'content':this[_0x10866e(0x375)]['t'](_0x10866e(0x20d))}),_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)][_0x10866e(0x49b)]&&this[_0x10866e(0x398)](),_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)][_0x10866e(0x3e9)]&&_0x3f8a9b[_0x10866e(0x4c1)]&&this[_0x10866e(0x4c9)](_0x3f8a9b[_0x10866e(0x4c1)],_0x3f8a9b['userId']??''),_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)]['JOIN_ROOM_FAILED']&&this[_0x10866e(0x32e)]['show']({'type':_0x12c3fa[_0x10866e(0x1c6)][_0x10866e(0x47f)],'content':this['_localeService']['t'](_0x3f8a9b[_0x10866e(0x407)]||'')}),_0x3f8a9b['id']===_0x3107d6['CollaborationUIEventId'][_0x10866e(0x1b9)]&&this['_messageService']['show']({'type':_0x12c3fa[_0x10866e(0x1c6)]['Warning'],'content':this[_0x10866e(0x375)]['t']('collaboration-client-ui.session.will-retry')}),_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)][_0x10866e(0x3a0)]&&this['_messageService']['show']({'type':_0x12c3fa['MessageType'][_0x10866e(0x42e)],'content':this[_0x10866e(0x375)]['t'](_0x10866e(0x4ad))}),_0x3f8a9b['id']===_0x3107d6[_0x10866e(0x2dd)][_0x10866e(0x254)]&&this[_0x10866e(0x32e)][_0x10866e(0x373)]({'type':_0x12c3fa['MessageType'][_0x10866e(0x42e)],'content':this[_0x10866e(0x375)]['t'](_0x10866e(0x231))});}));}[_0x190561(0x398)](){const _0x4b0cf6=_0x190561;this[_0x4b0cf6(0x49d)]({'title':this[_0x4b0cf6(0x375)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x4b0cf6(0x375)]['t'](_0x4b0cf6(0x39d)),'type':_0x4b0cf6(0x34d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x1389ac,_0x5c5efe){const _0x2942d7=_0x190561;this['_replaceConflictNotification']({'title':this[_0x2942d7(0x375)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x2942d7(0x375)]['t'](_0x2942d7(0x2d2)),'type':_0x2942d7(0x396),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':_0x453cbf,'action':{'label':this[_0x2942d7(0x375)]['t'](_0x2942d7(0x24b)),'onClick':_0x38ea06=>{const _0x5ef8c1=_0x2942d7;_0x38ea06[_0x5ef8c1(0x3a2)](),this['_retryConflictCacheClear'](_0x1389ac,_0x5c5efe);}}});}[_0x190561(0x406)](_0xc15d37,_0x5ceb38){const _0x53df15=_0x190561;let _0x495a67=_0xc15d37+':'+(_0x5ceb38??'');this[_0x53df15(0x248)][_0x53df15(0x386)](_0x495a67)||(this[_0x53df15(0x248)][_0x53df15(0x4f9)](_0x495a67),this[_0x53df15(0x398)](),this[_0x53df15(0x3e8)][_0x53df15(0x331)](_0xc15d37,_0x5ceb38)[_0x53df15(0x489)](()=>this['_reloadPage']())[_0x53df15(0x325)](()=>this[_0x53df15(0x4c9)](_0xc15d37,_0x5ceb38))[_0x53df15(0x519)](()=>this[_0x53df15(0x248)][_0x53df15(0x4d7)](_0x495a67)));}[_0x190561(0x49d)](_0x1da541){const _0x109389=_0x190561;var _0x200a0a;(_0x200a0a=this['_conflictNotification'])==null||_0x200a0a[_0x109389(0x508)](),this[_0x109389(0x224)]=this[_0x109389(0x207)][_0x109389(0x373)](_0x1da541);}};_0x4cc9cc=_0x31453e([_0x2cd89e(0x0,_0x543d66['IBeforeCloseService']),_0x2cd89e(0x1,_0x3107d6[_0x190561(0x408)]),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6[_0x190561(0x40b)])),_0x2cd89e(0x3,_0x543d66['IMessageService']),_0x2cd89e(0x4,_0x543d66[_0x190561(0x4bf)]),_0x2cd89e(0x5,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x2ea)])),_0x2cd89e(0x6,(0x0,_0x263090['Inject'])(_0x3107d6[_0x190561(0x3d9)])),_0x2cd89e(0x7,_0x263090[_0x190561(0x452)])],_0x4cc9cc);let _0x2ee335=class{constructor(_0x25cea1,_0x1882a5){const _0x30b1cf=_0x190561;this[_0x30b1cf(0x479)]=_0x25cea1,this[_0x30b1cf(0x380)]=_0x1882a5;}[_0x190561(0x40e)](_0x64a6ee){const _0x14ecae=_0x190561;this[_0x14ecae(0x35f)](_0x64a6ee),this['_transformPreviousActiveRange'](_0x64a6ee);}[_0x190561(0x41d)](_0x4f7fb0){const _0x51c3ff=_0x190561;let {unitID:_0x4d77a6}=_0x4f7fb0,{redoCache:_0x646413}=this[_0x51c3ff(0x380)]['getRenderUnitById'](_0x4d77a6)[_0x51c3ff(0x1c0)](_0x2bd024[_0x51c3ff(0x220)])[_0x51c3ff(0x225)]();if(_0x646413[_0x51c3ff(0x4e7)]===0x0)return _0x4f7fb0;let _0x4a00b7=_0x263090[_0x51c3ff(0x4a0)][_0x51c3ff(0x455)](_0x4f7fb0[_0x51c3ff(0x388)][0x0]);for(let _0x16a885=0x0;_0x16a885<_0x646413['length'];_0x16a885++){let _0x76776={'id':_0x51c3ff(0x262),'params':{..._0x646413[_0x16a885]}},_0x2973c2=this[_0x51c3ff(0x479)][_0x51c3ff(0x51a)](_0x4a00b7,_0x76776,!0x1);if((0x0,_0x5eadb5[_0x51c3ff(0x303)])(_0x2973c2))throw _0x2973c2[_0x51c3ff(0x396)];_0x4a00b7=_0x2973c2[_0x51c3ff(0x26a)];}return{..._0x263090['Tools']['deepClone'](_0x4f7fb0),'mutations':[_0x4a00b7]};}[_0x190561(0x35f)](_0xdab276){const _0x5786e4=_0x190561;let {unitID:_0x11ec1c}=_0xdab276,_0x4755a4=this[_0x5786e4(0x380)][_0x5786e4(0x296)](_0x11ec1c)[_0x5786e4(0x1c0)](_0x2bd024[_0x5786e4(0x220)]),{undoCache:_0x5efa1a,redoCache:_0x9e1283}=_0x4755a4['getUndoRedoMutationParamsCache']();if(_0x5efa1a[_0x5786e4(0x4e7)]===0x0||_0x9e1283['length']===0x0)return;let _0x34f2bb=[],_0x208411=[],_0x12744c=_0x263090[_0x5786e4(0x4a0)][_0x5786e4(0x455)](_0xdab276[_0x5786e4(0x388)][0x0]),_0x356103=_0x263090[_0x5786e4(0x4a0)][_0x5786e4(0x455)](_0xdab276[_0x5786e4(0x388)][0x0]);for(let _0x32e2d2=_0x5efa1a['length']-0x1;_0x32e2d2>=0x0;_0x32e2d2--){let _0x139d74={'id':'doc.mutation.rich-text-editing','params':{..._0x5efa1a[_0x32e2d2]}},_0x1559eb={'id':_0x5786e4(0x262),'params':{..._0x9e1283[_0x32e2d2]}},_0x216802=this[_0x5786e4(0x479)][_0x5786e4(0x51a)](_0x12744c,_0x139d74,!0x1),_0x13a5fc=this[_0x5786e4(0x479)]['transformMutation'](_0x356103,_0x1559eb,!0x1);if((0x0,_0x5eadb5[_0x5786e4(0x303)])(_0x216802))throw _0x216802['error'];if((0x0,_0x5eadb5['isTransformMutationFailure'])(_0x13a5fc))throw _0x13a5fc['error'];_0x34f2bb['unshift'](_0x216802['m2Prime'][_0x5786e4(0x498)]),_0x208411[_0x5786e4(0x36b)](_0x13a5fc[_0x5786e4(0x371)][_0x5786e4(0x498)]),_0x12744c=_0x216802[_0x5786e4(0x26a)],_0x356103=_0x13a5fc[_0x5786e4(0x26a)];}_0x4755a4[_0x5786e4(0x1d4)]({'undoCache':_0x34f2bb,'redoCache':_0x208411});}['_transformPreviousActiveRange'](_0x5c0e16){const _0x3dbc1d=_0x190561;let {unitID:_0x77ea26}=_0x5c0e16,_0x3e0ee3=this[_0x3dbc1d(0x380)]['getRenderUnitById'](_0x77ea26)['with'](_0x2bd024[_0x3dbc1d(0x220)]),_0x454ca0=_0x3e0ee3[_0x3dbc1d(0x3fa)]();if(_0x454ca0==null)return;let _0x4ba5bc=[{'id':_0x3dbc1d(0x262),'params':{'unitId':_0x5c0e16['unitID'],'actions':null,'textRanges':[_0x454ca0]}}],_0x1a5fc1=this[_0x3dbc1d(0x479)][_0x3dbc1d(0x32b)](_0x5c0e16,_0x4ba5bc);if(!(0x0,_0x5eadb5['isTransformMutationsWithChangesetSuccess'])(_0x1a5fc1))throw _0x1a5fc1[_0x3dbc1d(0x396)];let _0x172e1f=_0x1a5fc1['m2Prime'][0x0][_0x3dbc1d(0x498)][_0x3dbc1d(0x1e2)];Array['isArray'](_0x172e1f)&&_0x172e1f[_0x3dbc1d(0x4e7)]&&_0x3e0ee3[_0x3dbc1d(0x3b2)](_0x172e1f[0x0]);}};_0x2ee335=_0x31453e([_0x2cd89e(0x0,_0x5eadb5[_0x190561(0x33f)]),_0x2cd89e(0x1,_0x3822ed[_0x190561(0x238)])],_0x2ee335);let _0x5ecd85=class{constructor(_0x541f89,_0x2494d0,_0x5c63f3){const _0x4196c3=_0x190561;this[_0x4196c3(0x1b8)]=_0x541f89,this['_transformService']=_0x2494d0,this[_0x4196c3(0x469)]=_0x5c63f3;}[_0x190561(0x267)](_0x345d66){this['_transformHistoryAndStateStack'](_0x345d66);}[_0x190561(0x41d)](_0x3d2752){const _0x10cbf0=_0x190561;let {unitID:_0x1af599}=_0x3d2752,{collaboration:_0x51ecc2}=this[_0x10cbf0(0x469)][_0x10cbf0(0x461)](_0x1af599);if(_0x51ecc2[_0x10cbf0(0x4e7)]===0x0)return _0x3d2752;let _0x4e4ea7=_0x263090[_0x10cbf0(0x4a0)][_0x10cbf0(0x455)](_0x3d2752['mutations'][0x0]);for(let _0x1b6729=0x0;_0x1b6729<_0x51ecc2[_0x10cbf0(0x4e7)];_0x1b6729++){let _0x564b37={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51ecc2[_0x1b6729][_0x10cbf0(0x314)],..._0x51ecc2[_0x1b6729]['redoState']}},_0x4ad773=this[_0x10cbf0(0x479)][_0x10cbf0(0x51a)](_0x4e4ea7,_0x564b37,!0x1);if((0x0,_0x5eadb5[_0x10cbf0(0x303)])(_0x4ad773))throw _0x4ad773['error'];_0x4e4ea7=_0x4ad773[_0x10cbf0(0x26a)];}return{..._0x263090[_0x10cbf0(0x4a0)][_0x10cbf0(0x455)](_0x3d2752),'mutations':[_0x4e4ea7]};}[_0x190561(0x4c5)](_0x4eea29){const _0x3722e1=_0x190561;let {unitID:_0x1119e7}=_0x4eea29,{history:_0x56e9de,collaboration:_0x1c719d}=this[_0x3722e1(0x469)][_0x3722e1(0x461)](_0x1119e7);if(_0x56e9de[_0x3722e1(0x4e7)]===0x0&&_0x1c719d[_0x3722e1(0x4e7)]===0x0)return;let _0xc008c0=[],_0x49748c=[],_0x2ba201=_0x263090[_0x3722e1(0x4a0)][_0x3722e1(0x455)](_0x4eea29[_0x3722e1(0x388)][0x0]),_0x349a95=_0x263090[_0x3722e1(0x4a0)][_0x3722e1(0x455)](_0x4eea29[_0x3722e1(0x388)][0x0]);for(let _0x546bdb=_0x56e9de[_0x3722e1(0x4e7)]-0x1;_0x546bdb>=0x0;_0x546bdb--){let _0x3c3271={'id':_0x3722e1(0x262),'params':{'unitId':_0x56e9de[_0x546bdb][_0x3722e1(0x314)],..._0x56e9de[_0x546bdb]['undoState']}},_0x9ea173={'id':_0x3722e1(0x262),'params':{'unitId':_0x56e9de[_0x546bdb]['unitId'],..._0x56e9de[_0x546bdb]['redoState']}},_0x3a3e30=this['_transformService'][_0x3722e1(0x51a)](_0x2ba201,_0x3c3271,!0x1),_0x3179c3=this['_transformService'][_0x3722e1(0x51a)](_0x349a95,_0x9ea173,!0x1);if((0x0,_0x5eadb5['isTransformMutationFailure'])(_0x3a3e30))throw _0x3a3e30[_0x3722e1(0x396)];if((0x0,_0x5eadb5['isTransformMutationFailure'])(_0x3179c3))throw _0x3179c3['error'];_0xc008c0[_0x3722e1(0x36b)]({..._0x56e9de[_0x546bdb],'undoState':_0x3a3e30[_0x3722e1(0x371)][_0x3722e1(0x498)],'redoState':_0x3179c3['m2Prime'][_0x3722e1(0x498)]}),_0x2ba201=_0x3a3e30[_0x3722e1(0x26a)],_0x349a95=_0x3179c3['m1Prime'];}_0x2ba201=_0x263090[_0x3722e1(0x4a0)]['deepClone'](_0x4eea29['mutations'][0x0]),_0x349a95=_0x263090[_0x3722e1(0x4a0)][_0x3722e1(0x455)](_0x4eea29[_0x3722e1(0x388)][0x0]);for(let _0x31525e=_0x1c719d[_0x3722e1(0x4e7)]-0x1;_0x31525e>=0x0;_0x31525e--){let _0xd30939={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c719d[_0x31525e][_0x3722e1(0x314)],..._0x1c719d[_0x31525e]['undoState']}},_0x57375e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c719d[_0x31525e]['unitId'],..._0x1c719d[_0x31525e]['redoState']}},_0x31db2a=this[_0x3722e1(0x479)][_0x3722e1(0x51a)](_0x2ba201,_0xd30939,!0x1),_0x291bde=this['_transformService'][_0x3722e1(0x51a)](_0x349a95,_0x57375e,!0x1);if((0x0,_0x5eadb5[_0x3722e1(0x303)])(_0x31db2a))throw _0x31db2a[_0x3722e1(0x396)];if((0x0,_0x5eadb5[_0x3722e1(0x303)])(_0x291bde))throw _0x291bde[_0x3722e1(0x396)];_0x49748c[_0x3722e1(0x36b)]({..._0x1c719d[_0x31525e],'undoState':_0x31db2a[_0x3722e1(0x371)][_0x3722e1(0x498)],'redoState':_0x291bde[_0x3722e1(0x371)][_0x3722e1(0x498)]}),_0x2ba201=_0x31db2a['m1Prime'],_0x349a95=_0x291bde[_0x3722e1(0x26a)];}this[_0x3722e1(0x469)][_0x3722e1(0x3e2)](_0x1119e7,{'history':_0xc008c0,'collaboration':_0x49748c});}};_0x5ecd85=_0x31453e([_0x2cd89e(0x0,(0x0,_0x263090['Inject'])(_0x263090['Injector'])),_0x2cd89e(0x1,_0x5eadb5[_0x190561(0x33f)]),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x33e872[_0x190561(0x45d)]))],_0x5ecd85);let _0x2f6294=class{constructor(_0x450090,_0x3a9db9){const _0x1491e4=_0x190561;this[_0x1491e4(0x22f)]=_0x450090,this[_0x1491e4(0x479)]=_0x3a9db9;}['prepareTransformSelections'](_0x227269){const _0x4f02f7=_0x190561;var _0x126f8e;let _0x80148d=this['_docSelectionManagerService']['getDocRanges']()??[],_0x1a269a=this['_docSelectionManagerService'][_0x4f02f7(0x3c8)]();if(_0x80148d[_0x4f02f7(0x4e7)]===0x0||_0x1a269a==null)return null;let _0x80c116=_0x227269['unitID'],_0x3fc4dd=[{'id':_0x4f02f7(0x262),'params':{'unitId':_0x80c116,'actions':null,'textRanges':_0x80148d}}],_0x1844fa=this[_0x4f02f7(0x479)]['transformMutationsWithChangeset'](_0x227269,_0x3fc4dd);if(!(0x0,_0x5eadb5[_0x4f02f7(0x420)])(_0x1844fa))throw _0x1844fa[_0x4f02f7(0x396)];let _0x58b9f2=(_0x126f8e=_0x1844fa['m2Prime'][0x0])==null?void 0x0:_0x126f8e[_0x4f02f7(0x498)],_0x4d9177=_0x58b9f2&&typeof _0x58b9f2==_0x4f02f7(0x390)&&_0x4f02f7(0x1e2)in _0x58b9f2?_0x58b9f2[_0x4f02f7(0x1e2)]:null;if(!_0xd25f49(_0x4d9177))return null;let _0x1c13fe=_0x1dcace(_0x227269[_0x4f02f7(0x388)]['some'](_0xf60831=>_0x3a5750(_0xf60831[_0x4f02f7(0x498)]))?_0x4d9177['filter'](_0x3e0d80=>!('tableId'in _0x3e0d80)):_0x4d9177,{..._0x1a269a,'options':_0x1a269a[_0x4f02f7(0x263)]?{..._0x1a269a[_0x4f02f7(0x263)],'wholeDocument':!0x1}:void 0x0}),_0x355368={'unitId':_0x80c116,'subUnitId':_0x80c116};this[_0x4f02f7(0x22f)]['replaceSelectionInfoWithoutRefresh'](_0x1c13fe,_0x355368);let _0x40740c=!0x0;return{'commit':()=>{_0x40740c=!0x1;},'rollback':()=>{_0x40740c&&(_0x40740c=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0x1a269a,_0x355368));}};}};_0x2f6294=_0x31453e([_0x2cd89e(0x0,(0x0,_0x263090['Inject'])(_0x33e872['DocSelectionManagerService'])),_0x2cd89e(0x1,_0x5eadb5['ITransformService'])],_0x2f6294);function _0x1dcace(_0x42bc49,_0x51928d){const _0xf84d74=_0x190561;let _0x57279b=[],_0x5e78ef=[];for(let _0x3b1bf3 of _0x42bc49)_0x564d2c(_0x3b1bf3)?_0x5e78ef[_0xf84d74(0x242)](_0x3b1bf3):_0x57279b[_0xf84d74(0x242)](_0x3b1bf3);return{..._0x51928d,'textRanges':_0x57279b,'rectRanges':_0x5e78ef};}function _0x564d2c(_0x5ec2da){return'tableId'in _0x5ec2da;}function _0xd25f49(_0x102468){const _0xf88d7=_0x190561;return Array[_0xf88d7(0x45b)](_0x102468)&&_0x102468[_0xf88d7(0x1cc)](_0x4b606d=>typeof _0x4b606d==_0xf88d7(0x390)&&!!_0x4b606d&&_0xf88d7(0x2d9)in _0x4b606d&&_0xf88d7(0x36f)in _0x4b606d);}function _0x3a5750(_0x4eee9){const _0x166e80=_0x190561;return _0x4eee9===_0x166e80(0x3d6)?!0x0:Array[_0x166e80(0x45b)](_0x4eee9)?_0x4eee9[_0x166e80(0x439)](_0x367595=>_0x3a5750(_0x367595)):!_0x4eee9||typeof _0x4eee9!='object'?!0x1:Object['values'](_0x4eee9)['some'](_0x53419a=>_0x3a5750(_0x53419a));}let _0x3bacdc=class extends _0x263090[_0x190561(0x363)]{constructor(_0x3d85fd,_0x416bb3,_0x1561ac,_0xcefb77,_0x55dbda,_0x54811f,_0x43d4b2){const _0x2baafd=_0x190561;super(),this['_collaborationController']=_0x3d85fd,this['_docTransformIMECacheService']=_0x416bb3,this['_docTransformStateCacheService']=_0x1561ac,this['_docTransformSelectionsService']=_0xcefb77,this[_0x2baafd(0x3dc)]=_0x55dbda,this[_0x2baafd(0x32e)]=_0x54811f,this[_0x2baafd(0x375)]=_0x43d4b2,_0x312734(this,_0x2baafd(0x425),new _0x4c31a2[(_0x2baafd(0x2fa))](_0x3107d6['CollaborationStatus'][_0x2baafd(0x21b)])),this[_0x2baafd(0x22e)]();}['_initEntityListener'](){const _0x2581a9=_0x190561;this['disposeWithMe'](this[_0x2581a9(0x29d)][_0x2581a9(0x42a)]['subscribe'](_0x453b21=>{const _0xf8c95f=_0x2581a9;_0x453b21 instanceof _0x3107d6[_0xf8c95f(0x440)]&&_0x453b21['addHandlerCallback']({'onTransformIME':_0x21099b=>this['_docTransformIMECacheService'][_0xf8c95f(0x40e)](_0x21099b),'onTransformState':_0x26f52c=>this['_docTransformStateCacheService'][_0xf8c95f(0x267)](_0x26f52c),'onPrepareTransformSelections':_0x5ace8d=>this[_0xf8c95f(0x25a)][_0xf8c95f(0x480)](_0x5ace8d),'onSyncEditingCollabCursor':_0x392c9b=>this[_0xf8c95f(0x3dc)][_0xf8c95f(0x3a9)](_0x392c9b),'onTransformRemoteChangesetByIMECache':_0x56ee34=>this[_0xf8c95f(0x2ab)][_0xf8c95f(0x41d)](_0x56ee34),'onTransformRemoteChangesetByStateCache':_0x32bcf7=>this[_0xf8c95f(0x2b9)]['transformRemoteChangeset'](_0x32bcf7)});}));}};_0x3bacdc=_0x31453e([_0x2cd89e(0x0,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6[_0x190561(0x3d9)])),_0x2cd89e(0x1,(0x0,_0x263090['Inject'])(_0x2ee335)),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x5ecd85)),_0x2cd89e(0x3,(0x0,_0x263090['Inject'])(_0x2f6294)),_0x2cd89e(0x4,(0x0,_0x263090['Inject'])(_0x414f0d)),_0x2cd89e(0x5,_0x543d66[_0x190561(0x2e7)]),_0x2cd89e(0x6,(0x0,_0x263090['Inject'])(_0x263090[_0x190561(0x2ea)]))],_0x3bacdc);let _0xa8f7fd=class extends _0x263090['Disposable']{constructor(_0x31f25d,_0x5b0c15,_0x55ec5c,_0x2c5be4){const _0x7a5d46=_0x190561;super(),this[_0x7a5d46(0x1b8)]=_0x31f25d,this[_0x7a5d46(0x2e6)]=_0x5b0c15,this['_logService']=_0x55ec5c,this[_0x7a5d46(0x251)]=_0x2c5be4,_0x312734(this,_0x7a5d46(0x4bc),void 0x0),this['_init']();}[_0x190561(0x23e)](){const _0x5d2358=_0x190561;this[_0x5d2358(0x513)](),this['_initUnhandledRejectionListener'](),this[_0x5d2358(0x430)](),this[_0x5d2358(0x4ec)]();}[_0x190561(0x4ec)](){const _0x8ada49=_0x190561;this[_0x8ada49(0x1bd)](this[_0x8ada49(0x251)]['socket$'][_0x8ada49(0x2b8)](_0x12efd6=>{const _0x5bc143=_0x8ada49;this[_0x5bc143(0x4bc)]=_0x12efd6==null?void 0x0:_0x12efd6[_0x5bc143(0x418)];}));}[_0x190561(0x513)](){const _0xebe8e2=_0x190561;let _0x5099f6=_0x2f23d2=>{const _0x27f420=_0x229d;var _0x521490;this[_0x27f420(0x2b6)]('error',_0x27f420(0x336)+_0x2f23d2[_0x27f420(0x3c2)]+_0x27f420(0x1bb)+_0x2f23d2[_0x27f420(0x2b1)]+':'+_0x2f23d2[_0x27f420(0x36a)]+':'+_0x2f23d2[_0x27f420(0x44b)]+'\x0a'+(((_0x521490=_0x2f23d2[_0x27f420(0x396)])==null?void 0x0:_0x521490[_0x27f420(0x3ac)])||''));};window[_0xebe8e2(0x3c1)](_0xebe8e2(0x396),_0x5099f6),this[_0xebe8e2(0x1bd)](()=>{const _0x341cd1=_0xebe8e2;window[_0x341cd1(0x384)](_0x341cd1(0x396),_0x5099f6);});}[_0x190561(0x4f1)](){const _0x12c1dd=_0x190561;let _0x444ae7=_0x2c5560=>{const _0x21851c=_0x229d;this[_0x21851c(0x2b6)](_0x21851c(0x396),'[Unhandled\x20Rejection]:\x20'+_0x2c5560[_0x21851c(0x3d3)]);};window[_0x12c1dd(0x3c1)](_0x12c1dd(0x443),_0x444ae7),this[_0x12c1dd(0x1bd)](()=>{const _0x5adcee=_0x12c1dd;window[_0x5adcee(0x384)](_0x5adcee(0x443),_0x444ae7);});}[_0x190561(0x430)](){const _0x25022c=_0x190561;let _0x206a97=this[_0x25022c(0x34c)][_0x25022c(0x396)][_0x25022c(0x391)](this[_0x25022c(0x34c)]);this['_logService'][_0x25022c(0x396)]=(..._0x3a09fe)=>{const _0x181d0b=_0x25022c;let _0x68c9e0=_0x3a09fe[_0x181d0b(0x4d8)](_0x28684e=>_0x28684e instanceof Error?_0x28684e[_0x181d0b(0x3c2)]+'\x0a'+_0x28684e[_0x181d0b(0x3ac)]:String(_0x28684e))[_0x181d0b(0x25e)]('\x20');this['_uploadLog']('error',_0x181d0b(0x20a)+_0x68c9e0),_0x206a97(..._0x3a09fe);},this['disposeWithMe'](()=>{const _0x19b896=_0x25022c;this[_0x19b896(0x34c)][_0x19b896(0x396)]=_0x206a97;});}[_0x190561(0x2b6)](_0x1d509a,_0xfc0782){const _0x173f02=_0x190561;try{let _0x28748f={'userId':this[_0x173f02(0x4bc)],'logLabel':_0x1d509a,'content':_0xfc0782};this[_0x173f02(0x2e6)]['post'](_0x173f02(0x43e),{'body':_0x28748f})[_0x173f02(0x325)](()=>{});}catch{}}};_0xa8f7fd=_0x31453e([_0x2cd89e(0x0,(0x0,_0x263090['Inject'])(_0x263090['Injector'])),_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0x9d56b3['HTTPService'])),_0x2cd89e(0x2,_0x263090['ILogService']),_0x2cd89e(0x3,(0x0,_0x263090[_0x190561(0x413)])(_0x3107d6[_0x190561(0x1f7)]))],_0xa8f7fd);function _0x18c4a8({state$:_0x5bb9bf}){const _0x166f19=_0x190561;let _0x33211e=(0x0,_0x543d66['useObservable'])(_0x5bb9bf,null,!0x0);return _0x33211e?(0x0,_0x404f0d[_0x166f19(0x1dd)])('div',{'data-u-comp':'snapshot-loading-timeout','role':'alert','className':_0x166f19(0x356),'children':[(0x0,_0x404f0d[_0x166f19(0x2d8)])(_0x2b1ee7,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,_0x404f0d[_0x166f19(0x2d8)])('span',{'children':_0x33211e[_0x166f19(0x404)]}),(0x0,_0x404f0d[_0x166f19(0x2d8)])(_0x12c3fa[_0x166f19(0x2c9)],{'size':_0x166f19(0x4f7),'variant':'primary','onClick':()=>window[_0x166f19(0x22d)][_0x166f19(0x476)](),'children':_0x33211e[_0x166f19(0x4d2)]})]}):null;}let _0x21446e=_0x190561(0x427),_0x56e39d=class extends _0x263090[_0x190561(0x363)]{constructor(_0x3d1b8a,_0x202d78,_0x5d62d9,_0x3ff03a,_0x3cd338){const _0xd43131=_0x190561;super(),this['_snapshotLoadingService']=_0x3d1b8a,this[_0xd43131(0x32e)]=_0x202d78,this[_0xd43131(0x375)]=_0x5d62d9,this['_injector']=_0x3ff03a,_0x312734(this,'_timeoutState$',new _0x4c31a2['BehaviorSubject'](null)),_0x312734(this,_0xd43131(0x517),new Set()),_0x312734(this,'_blockProgressWatches',new Map()),_0x312734(this,'timeoutState$',this[_0xd43131(0x26d)][_0xd43131(0x31c)]());let _0x58763c=()=>(0x0,_0x10aadf[_0xd43131(0x24d)])(_0x18c4a8,{'state$':this[_0xd43131(0x24e)]});this[_0xd43131(0x1bd)](_0x3cd338[_0xd43131(0x239)](_0x543d66[_0xd43131(0x1d8)][_0xd43131(0x1da)],()=>(0x0,_0x543d66['connectInjector'])(_0x58763c,this[_0xd43131(0x1b8)]))),this[_0xd43131(0x1bd)](this[_0xd43131(0x204)][_0xd43131(0x2bf)][_0xd43131(0x2b8)](_0x42b9a0=>{const _0x7726c0=_0xd43131;_0x42b9a0[_0x7726c0(0x4d5)](_0x50bf9e=>this['_updateMessage'](_0x50bf9e));}));}['dispose'](){const _0x1c36e7=_0x190561;this[_0x1c36e7(0x517)][_0x1c36e7(0x4d5)](_0x21b9dc=>this[_0x1c36e7(0x32e)]['remove'](_0x21b9dc)),this[_0x1c36e7(0x517)][_0x1c36e7(0x4d4)](),this[_0x1c36e7(0x376)][_0x1c36e7(0x4d5)](({timeoutId:_0x5a1d3b})=>clearTimeout(_0x5a1d3b)),this['_blockProgressWatches'][_0x1c36e7(0x4d4)](),this[_0x1c36e7(0x26d)][_0x1c36e7(0x279)](),super[_0x1c36e7(0x508)]();}[_0x190561(0x1d9)](_0x394313){const _0x2dc425=_0x190561;let _0x200fc0=''+_0x21446e+_0x394313[_0x2dc425(0x314)];_0x394313[_0x2dc425(0x2f9)]===_0x5eadb5[_0x2dc425(0x2fe)][_0x2dc425(0x4ea)]?(this[_0x2dc425(0x485)](_0x394313[_0x2dc425(0x314)]),this[_0x2dc425(0x1c3)](_0x394313[_0x2dc425(0x314)]),this[_0x2dc425(0x32e)]['remove'](_0x200fc0),this[_0x2dc425(0x517)][_0x2dc425(0x4d7)](_0x200fc0)):_0x394313[_0x2dc425(0x2f9)]===_0x5eadb5['SnapshotLoadStage'][_0x2dc425(0x421)]?(this[_0x2dc425(0x485)](_0x394313['unitId']),this['_clearTimeoutState'](_0x394313[_0x2dc425(0x314)]),this['_messageService'][_0x2dc425(0x373)]({'id':_0x200fc0,'type':_0x12c3fa['MessageType'][_0x2dc425(0x42e)],'content':this[_0x2dc425(0x375)]['t'](_0x2dc425(0x4ad))}),this['_messageIds']['delete'](_0x200fc0)):_0x394313[_0x2dc425(0x2f9)]!==_0x5eadb5['SnapshotLoadStage'][_0x2dc425(0x209)]||_0x394313[_0x2dc425(0x4e2)]<=0xa?(this[_0x2dc425(0x485)](_0x394313['unitId']),this[_0x2dc425(0x32e)][_0x2dc425(0x215)](_0x200fc0),this['_messageIds'][_0x2dc425(0x4d7)](_0x200fc0)):this['_watchBlockProgress'](_0x394313)||(this[_0x2dc425(0x32e)][_0x2dc425(0x373)]({'id':_0x200fc0,'type':_0x12c3fa['MessageType'][_0x2dc425(0x340)],'duration':0x1/0x0,'content':this[_0x2dc425(0x375)]['t'](_0x2dc425(0x2a8))+'\x20'+_0x394313[_0x2dc425(0x3ba)]+'/'+_0x394313['totalBlocks']}),this[_0x2dc425(0x517)][_0x2dc425(0x4f9)](_0x200fc0));}[_0x190561(0x48b)](_0x37d2ec){const _0x1a5a9f=_0x190561;let _0x1e871a=this[_0x1a5a9f(0x376)][_0x1a5a9f(0x38c)](_0x37d2ec[_0x1a5a9f(0x314)]);if((_0x1e871a==null?void 0x0:_0x1e871a['loadedBlocks'])===_0x37d2ec['loadedBlocks'])return _0x1e871a['timedOut'];this[_0x1a5a9f(0x485)](_0x37d2ec[_0x1a5a9f(0x314)]);let _0x3cf572=setTimeout(()=>{const _0x1d7237=_0x1a5a9f;let _0x17ff16=this[_0x1d7237(0x376)][_0x1d7237(0x38c)](_0x37d2ec[_0x1d7237(0x314)]);if(!_0x17ff16||_0x17ff16['timeoutId']!==_0x3cf572)return;_0x17ff16[_0x1d7237(0x465)]=!0x0;let _0x13ffbf=''+_0x21446e+_0x37d2ec['unitId'];this['_messageService']['remove'](_0x13ffbf),this[_0x1d7237(0x517)][_0x1d7237(0x4d7)](_0x13ffbf),this[_0x1d7237(0x26d)][_0x1d7237(0x344)]({'unitId':_0x37d2ec[_0x1d7237(0x314)],'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x37d2ec['loadedBlocks']),String(_0x37d2ec[_0x1d7237(0x4e2)])),'refreshLabel':this[_0x1d7237(0x375)]['t'](_0x1d7237(0x1d7))});},0xea60);return this[_0x1a5a9f(0x376)]['set'](_0x37d2ec[_0x1a5a9f(0x314)],{'loadedBlocks':_0x37d2ec[_0x1a5a9f(0x3ba)],'timedOut':!0x1,'timeoutId':_0x3cf572}),!0x1;}[_0x190561(0x485)](_0x239507){const _0x1a4f7b=_0x190561;let _0x3db2fe=this[_0x1a4f7b(0x376)]['get'](_0x239507);_0x3db2fe&&(clearTimeout(_0x3db2fe[_0x1a4f7b(0x316)]),this[_0x1a4f7b(0x376)][_0x1a4f7b(0x4d7)](_0x239507),this[_0x1a4f7b(0x1c3)](_0x239507));}[_0x190561(0x1c3)](_0x2cb1fa){const _0x3b8dac=_0x190561;var _0x25950a;((_0x25950a=this['_timeoutState$'][_0x3b8dac(0x284)])==null?void 0x0:_0x25950a['unitId'])===_0x2cb1fa&&this[_0x3b8dac(0x26d)]['next'](null);}};_0x56e39d=_0x31453e([_0x2cd89e(0x0,(0x0,_0x263090['Inject'])(_0x5eadb5['SnapshotLoadingService'])),_0x2cd89e(0x1,_0x543d66[_0x190561(0x2e7)]),_0x2cd89e(0x2,(0x0,_0x263090['Inject'])(_0x263090['LocaleService'])),_0x2cd89e(0x3,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x4,_0x543d66[_0x190561(0x4da)])],_0x56e39d);let _0x17c4d6=class extends _0x263090['Disposable']{constructor(_0x4da358,_0x5c94f,_0x4d74ea,_0x13620f,_0x4ef085){const _0x3eda58=_0x190561;var _0x4cd206;super(),this[_0x3eda58(0x437)]=_0x4da358,this[_0x3eda58(0x22a)]=_0x5c94f,this[_0x3eda58(0x2d7)]=_0x4d74ea,this[_0x3eda58(0x34c)]=_0x13620f,this[_0x3eda58(0x39f)]=_0x4ef085,_0x312734(this,_0x3eda58(0x4a8),new Map()),_0x312734(this,_0x3eda58(0x346),new Map()),_0x312734(this,_0x3eda58(0x277),new Map()),_0x312734(this,_0x3eda58(0x387),!0x1),this['_disabled']=!((_0x4cd206=this[_0x3eda58(0x437)][_0x3eda58(0x23a)](_0x3107d6['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))!=null&&_0x4cd206[_0x3eda58(0x4f2)]);}[_0x190561(0x495)](){const _0x2d7b2c=_0x190561;this[_0x2d7b2c(0x387)]=!0x0;}['enableLocalCache'](){const _0x4be0cc=_0x190561;this[_0x4be0cc(0x387)]=!0x1;}get[_0x190561(0x27b)](){const _0xa9f21a=_0x190561;let _0x4c67da=new Map(this[_0xa9f21a(0x346)]);return this['_activeSaveTaskMap'][_0xa9f21a(0x4d5)]((_0x2dee78,_0x1e60f4)=>{const _0x4f8ede=_0xa9f21a;_0x4c67da[_0x4f8ede(0x386)](_0x1e60f4)||_0x4c67da[_0x4f8ede(0x1b0)](_0x1e60f4,0x0);}),_0x4c67da;}[_0x190561(0x508)](){const _0x4eb5e2=_0x190561;this[_0x4eb5e2(0x1b1)]||(super[_0x4eb5e2(0x508)](),this[_0x4eb5e2(0x387)]=!0x0,this[_0x4eb5e2(0x45f)]()['catch'](_0x456432=>this['_logService'][_0x4eb5e2(0x396)](_0x456432)));}async[_0x190561(0x454)](_0x2f6f01,_0x21d276){const _0x3278b0=_0x190561;if(this['_disabled'])return null;let _0x352617=this[_0x3278b0(0x318)](_0x21d276),_0x33598a=await this[_0x3278b0(0x22a)][_0x3278b0(0x43c)]((0x0,_0x3107d6['getLocalCacheKey'])(_0x2f6f01,_0x352617));return(_0x33598a==null?void 0x0:_0x33598a[_0x3278b0(0x4c1)])===_0x2f6f01&&this[_0x3278b0(0x28a)](_0x33598a[_0x3278b0(0x241)])===_0x352617?_0x33598a:null;}async[_0x190561(0x4ca)](_0x5a6aff,_0x2691a1,_0x2b73fc){const _0x71e011=_0x190561;let _0x2ac288=this[_0x71e011(0x318)](_0x2b73fc),_0x5370eb=(0x0,_0x3107d6[_0x71e011(0x4f4)])(_0x5a6aff,_0x2ac288),_0x4d0e8e=this[_0x71e011(0x22a)][_0x71e011(0x200)](_0x5370eb,{..._0x2691a1,'unitID':_0x5a6aff,'userId':_0x2ac288});return this[_0x71e011(0x1eb)](_0x5370eb,_0x4d0e8e),!!await _0x4d0e8e;}async['backupOfflineData'](_0x363b3b,_0x51c10b,_0x35f4b3){const _0xcf2531=_0x190561;let _0x8ceb5a=this['_getUserId'](_0x35f4b3),_0x1a7044=(0x0,_0x3107d6[_0xcf2531(0x4f4)])(_0x363b3b,_0x8ceb5a),_0x2c1d38=this[_0xcf2531(0x4a8)]['get'](_0x1a7044)??await this[_0xcf2531(0x22a)][_0xcf2531(0x43c)](_0x1a7044);if(!_0x2c1d38||this['_normalizeUserId'](_0x2c1d38[_0xcf2531(0x241)])!==_0x8ceb5a||_0x2c1d38[_0xcf2531(0x4c1)]!==_0x363b3b)return;let _0x4ca308=Date[_0xcf2531(0x4e0)](),_0x2537cf=new Date(_0x4ca308)['toISOString']();await this[_0xcf2531(0x22a)][_0xcf2531(0x200)](_0x1a7044+_0xcf2531(0x1d6)+_0x4ca308,{'reason':_0x51c10b,'createdAt':_0x2537cf,'data':_0x2c1d38});}async[_0x190561(0x331)](_0x3d1517,_0x35bd75){const _0xca36c1=_0x190561;let _0x154aa2=this[_0xca36c1(0x318)](_0x35bd75),_0x5473cb=(0x0,_0x3107d6[_0xca36c1(0x4f4)])(_0x3d1517,_0x154aa2),_0x477630=this[_0xca36c1(0x346)]['get'](_0x5473cb);_0x477630!==void 0x0&&(window[_0xca36c1(0x1cb)](_0x477630),this[_0xca36c1(0x346)][_0xca36c1(0x4d7)](_0x5473cb));let _0x18d18e=this[_0xca36c1(0x277)][_0xca36c1(0x38c)](_0x5473cb);_0x18d18e&&await Promise[_0xca36c1(0x4c8)](_0x18d18e),this['_cachedData'][_0xca36c1(0x4d7)](_0x5473cb),await this[_0xca36c1(0x22a)]['removeItem'](_0x5473cb);}['updateOfflineData'](_0x35f74e,_0x2e0db5,_0x2738af,_0x4636c5,_0x12f2e1){const _0x1262c1=_0x190561;if(this[_0x1262c1(0x1b1)])return;let _0x2d63e3=this[_0x1262c1(0x318)](_0x12f2e1),_0x40d375=(0x0,_0x3107d6[_0x1262c1(0x4f4)])(_0x35f74e,_0x2d63e3),_0x3c6005=this[_0x1262c1(0x2d7)][_0x1262c1(0x2bd)](_0x35f74e);this[_0x1262c1(0x4a8)][_0x1262c1(0x1b0)](_0x40d375,{'unitID':_0x35f74e,'userId':_0x2d63e3,'type':_0x2e0db5,'awaitingChangeset':_0x2738af,'mutations':_0x4636c5,'rev':_0x3c6005}),this[_0x1262c1(0x346)][_0x1262c1(0x386)](_0x40d375)||this['_scheduleSaving'](_0x40d375);}[_0x190561(0x318)](_0x582770=((()=>{const _0x576d60=_0x190561;var _0x35e726;return(_0x35e726=this[_0x576d60(0x39f)][_0x576d60(0x1e4)]())==null?void 0x0:_0x35e726[_0x576d60(0x3b0)];})())){const _0x5f0965=_0x190561;return this[_0x5f0965(0x28a)](_0x582770);}['_normalizeUserId'](_0x2a11da){return _0x2a11da===''||_0x2a11da==null?void 0x0:_0x2a11da;}[_0x190561(0x4ac)](_0x421aee){const _0x26bff8=_0x190561;let _0x3d494d=this[_0x26bff8(0x3b5)]();_0x3d494d===0x0?this['_saveCache'](_0x421aee)[_0x26bff8(0x325)](_0x38ce90=>this['_logService'][_0x26bff8(0x396)](_0x38ce90)):this[_0x26bff8(0x346)]['set'](_0x421aee,window[_0x26bff8(0x2b3)](()=>{const _0x2ad42d=_0x26bff8;this[_0x2ad42d(0x1de)](_0x421aee)['catch'](_0x27b785=>this[_0x2ad42d(0x34c)][_0x2ad42d(0x396)](_0x27b785));},_0x3d494d));}[_0x190561(0x3b5)](){const _0xc35808=_0x190561;return this[_0xc35808(0x437)]['getConfig'](_0x3107d6[_0xc35808(0x4e1)])??_0x3107d6[_0xc35808(0x2c4)];}[_0x190561(0x1de)](_0x4a01e3){const _0x3f01aa=_0x190561;let _0x53314e=this[_0x3f01aa(0x346)]['get'](_0x4a01e3);_0x53314e!==void 0x0&&window['clearTimeout'](_0x53314e);let _0x5c7af6=this[_0x3f01aa(0x4a8)]['get'](_0x4a01e3);if(!_0x5c7af6)return Promise[_0x3f01aa(0x414)]();let _0x491115=this['_activeSaveTaskMap'][_0x3f01aa(0x38c)](_0x4a01e3),_0xa041f=Promise[_0x3f01aa(0x4c8)](_0x491115?[..._0x491115]:[])['then'](()=>this[_0x3f01aa(0x22a)][_0x3f01aa(0x200)](_0x4a01e3,_0x5c7af6))[_0x3f01aa(0x489)](()=>{const _0x36da2f=_0x3f01aa;_0x53314e!==void 0x0&&this['_saveTaskMap'][_0x36da2f(0x38c)](_0x4a01e3)===_0x53314e&&(this[_0x36da2f(0x346)][_0x36da2f(0x4d7)](_0x4a01e3),!this[_0x36da2f(0x1b1)]&&this['_cachedData'][_0x36da2f(0x38c)](_0x4a01e3)!==_0x5c7af6&&this['_scheduleSaving'](_0x4a01e3));});return this[_0x3f01aa(0x1eb)](_0x4a01e3,_0xa041f),_0xa041f;}['_trackActiveSaveTask'](_0x228b11,_0xe98b57){const _0x133a32=_0x190561;let _0x3c8041=this['_activeSaveTaskMap'][_0x133a32(0x38c)](_0x228b11);_0x3c8041||(_0x3c8041=new Set(),this[_0x133a32(0x277)]['set'](_0x228b11,_0x3c8041)),_0x3c8041[_0x133a32(0x4f9)](_0xe98b57);let _0x12a11f=()=>{const _0x5c02c0=_0x133a32;_0x3c8041[_0x5c02c0(0x4d7)](_0xe98b57),_0x3c8041[_0x5c02c0(0x201)]===0x0&&this[_0x5c02c0(0x277)][_0x5c02c0(0x4d7)](_0x228b11);};_0xe98b57['then'](_0x12a11f,_0x12a11f);}async[_0x190561(0x45f)](){const _0x5ecc7d=_0x190561;let _0x51d9b1=[...this['_saveTaskMap'][_0x5ecc7d(0x434)]()]['map'](_0x59e6d2=>this['_saveCache'](_0x59e6d2));for(let _0x283c70 of this[_0x5ecc7d(0x277)][_0x5ecc7d(0x491)]())_0x51d9b1[_0x5ecc7d(0x242)](...[..._0x283c70][_0x5ecc7d(0x4d8)](_0x34a953=>_0x34a953['then'](()=>void 0x0)));await Promise[_0x5ecc7d(0x39b)](_0x51d9b1);}};_0x17c4d6=_0x31453e([_0x2cd89e(0x0,_0x263090[_0x190561(0x452)]),_0x2cd89e(0x1,_0x263090[_0x190561(0x216)]),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x5eadb5[_0x190561(0x4a9)])),_0x2cd89e(0x3,_0x263090[_0x190561(0x1ca)]),_0x2cd89e(0x4,(0x0,_0x263090['Inject'])(_0x263090[_0x190561(0x249)]))],_0x17c4d6);var _0x443235=class extends _0x263090[_0x190561(0x363)]{get[_0x190561(0x374)](){const _0x2886db=_0x190561;return this[_0x2886db(0x1d0)]['getValue']();}constructor(){const _0x63559f=_0x190561;super(),_0x312734(this,_0x63559f(0x1d0),new _0x4c31a2[(_0x63559f(0x2fa))](navigator[_0x63559f(0x41f)])),_0x312734(this,'online$',this[_0x63559f(0x1d0)][_0x63559f(0x31c)]()),this[_0x63559f(0x466)](),this[_0x63559f(0x2c6)]();}[_0x190561(0x508)](){const _0x22a673=_0x190561;super[_0x22a673(0x508)](),this['_online$']['complete']();}['_listenToOnlineEvent'](){const _0x5f1f87=_0x190561;this[_0x5f1f87(0x1bd)]((0x0,_0x4c31a2['merge'])((0x0,_0x4c31a2[_0x5f1f87(0x4ed)])(window,_0x5f1f87(0x374)),(0x0,_0x4c31a2[_0x5f1f87(0x4ed)])(document,_0x5f1f87(0x3c9)),(0x0,_0x4c31a2['fromEvent'])(window,_0x5f1f87(0x4fe)),(0x0,_0x4c31a2['fromEvent'])(document,_0x5f1f87(0x4a5))[_0x5f1f87(0x28d)]((0x0,_0x4c31a2[_0x5f1f87(0x4d8)])(()=>document[_0x5f1f87(0x298)]===_0x5f1f87(0x4a6)),(0x0,_0x4c31a2[_0x5f1f87(0x381)])(_0x9d425f=>_0x9d425f)))[_0x5f1f87(0x28d)]((0x0,_0x4c31a2['filter'])(()=>navigator[_0x5f1f87(0x41f)]))[_0x5f1f87(0x2b8)](()=>this['_online$'][_0x5f1f87(0x344)](!0x0)));}[_0x190561(0x466)](){const _0x33d1c4=_0x190561;this[_0x33d1c4(0x1bd)]((0x0,_0x4c31a2[_0x33d1c4(0x444)])((0x0,_0x4c31a2[_0x33d1c4(0x4ed)])(window,_0x33d1c4(0x486)),(0x0,_0x4c31a2[_0x33d1c4(0x4ed)])(document,_0x33d1c4(0x38d)))[_0x33d1c4(0x2b8)](()=>this[_0x33d1c4(0x1d0)][_0x33d1c4(0x344)](!0x1)));}};let _0x43375c=class extends _0x263090[_0x190561(0x2ed)]{constructor(_0x5238fb=_0x38ddb6,_0xcddead,_0x182785,_0x14d214,_0x206723){const _0x98d705=_0x190561;super(),this['_config']=_0x5238fb,this[_0x98d705(0x380)]=_0xcddead,this[_0x98d705(0x1b8)]=_0x182785,this['_configService']=_0x14d214,this[_0x98d705(0x49c)]=_0x206723;let {..._0x5d31fb}=(0x0,_0x263090[_0x98d705(0x444)])({},_0x38ddb6,this[_0x98d705(0x1c7)]);this['_configService'][_0x98d705(0x3fd)](_0x98d705(0x4fa),_0x5d31fb);}[_0x190561(0x4b5)](){const _0x4c0f96=_0x190561;this[_0x4c0f96(0x213)](),this[_0x4c0f96(0x1bd)](this[_0x4c0f96(0x49c)][_0x4c0f96(0x1b5)](_0x14f854)),this[_0x4c0f96(0x348)]();}[_0x190561(0x1fd)](){const _0x39abd4=_0x190561;this[_0x39abd4(0x1bc)]();}[_0x190561(0x213)](){const _0x1f9861=_0x190561;var _0x49e609;let _0x3445fa=[[_0x31e883],[_0x9d56b3['ISocketService'],{'useClass':_0x9d56b3[_0x1f9861(0x1e7)]}],[_0x3107d6['ILocalCacheService'],{'useClass':_0x17c4d6}],[_0x3107d6[_0x1f9861(0x38a)],{'useClass':_0x443235}],[_0x3e2031],[_0x4cc9cc],[_0x7b494a],[_0x42c0ec],[_0x56e39d]];this[_0x1f9861(0x1c7)][_0x1f9861(0x503)]!==!0x1&&_0x3445fa[_0x1f9861(0x242)]([_0x2f6294],[_0x2ee335],[_0x5ecd85],[_0x414f0d],[_0x3bacdc],[_0x220a17]),this[_0x1f9861(0x1c7)]['enableFrontendLog']&&_0x3445fa[_0x1f9861(0x242)]([_0xa8f7fd]),(0x0,_0x263090[_0x1f9861(0x350)])(this['_injector'],(0x0,_0x263090['mergeOverrideWithDependencies'])(_0x3445fa,(_0x49e609=this[_0x1f9861(0x1c7)])==null?void 0x0:_0x49e609['override']));}[_0x190561(0x1bc)](){const _0x564a11=_0x190561;this[_0x564a11(0x1c7)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x564a11(0x1bd)](this[_0x564a11(0x380)][_0x564a11(0x21e)](_0x263090[_0x564a11(0x306)][_0x564a11(0x3b6)],[_0x4842a9])),this[_0x564a11(0x1bd)](this[_0x564a11(0x380)][_0x564a11(0x21e)](_0x263090[_0x564a11(0x306)][_0x564a11(0x44a)],[_0x25d114]));}[_0x190561(0x348)](){const _0x35cbcc=_0x190561;(0x0,_0x263090[_0x35cbcc(0x516)])(this[_0x35cbcc(0x1b8)],[[_0x7b494a],[_0x42c0ec],[_0x3e2031],[_0x4cc9cc],[_0x56e39d]]),this[_0x35cbcc(0x1c7)][_0x35cbcc(0x503)]!==!0x1&&(0x0,_0x263090[_0x35cbcc(0x516)])(this[_0x35cbcc(0x1b8)],[[_0x3bacdc],[_0x220a17]]),this[_0x35cbcc(0x1c7)]['enableFrontendLog']&&(0x0,_0x263090[_0x35cbcc(0x516)])(this[_0x35cbcc(0x1b8)],[[_0xa8f7fd]]);}};_0x312734(_0x43375c,_0x190561(0x494),_0x190561(0x1fc)),_0x312734(_0x43375c,_0x190561(0x4d3),_0x4d6d3b),_0x312734(_0x43375c,_0x190561(0x21f),_0x1e4709),_0x43375c=_0x31453e([(0x0,_0x263090[_0x190561(0x368)])(_0x3d004e['UniverLicensePlugin'],_0x33e872[_0x190561(0x43d)],_0x3822ed[_0x190561(0x499)],_0x9d56b3[_0x190561(0x20e)],_0x5eadb5['UniverCollaborationPlugin'],_0x2bd024[_0x190561(0x496)],_0x3107d6[_0x190561(0x329)]),_0x2cd89e(0x1,_0x3822ed['IRenderManagerService']),_0x2cd89e(0x2,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x3,_0x263090[_0x190561(0x452)]),_0x2cd89e(0x4,_0x263090[_0x190561(0x1f9)])],_0x43375c);let _0x3420d2=class extends _0x3107d6['CollaborationSocketService']{constructor(_0x3d96a7,_0x4f27bc,_0x2348fb,_0x4eb2de,_0x3d393c){const _0x3fdaa4=_0x190561;super(_0x3d96a7,_0x4f27bc,_0x2348fb,_0x4eb2de,_0x3d393c),_0x312734(this,_0x3fdaa4(0x4cf),new _0x4c31a2[(_0x3fdaa4(0x482))]()),this[_0x3fdaa4(0x1bd)](()=>{const _0x211a21=_0x3fdaa4;this[_0x211a21(0x4cf)]['next'](),this[_0x211a21(0x4cf)][_0x211a21(0x279)]();});}async['createSocket'](_0x2bab17){const _0x3583cd=_0x190561;let _0x4a00e2=await this['_getSessionTicket'](),_0x4e7ed9=this['_createSocketURL'](_0x2bab17,_0x4a00e2);return this[_0x3583cd(0x2c2)](_0x4e7ed9);}[_0x190561(0x402)](_0x2b9596,_0x21fdc0){const _0x4b4378=_0x190561;let _0x484fc7=typeof window>'u'?new URL(_0x2b9596):new URL(_0x2b9596,window['location'][_0x4b4378(0x2f8)]);_0x484fc7[_0x4b4378(0x49f)][_0x4b4378(0x1b0)](_0x4b4378(0x1b2),_0x21fdc0);let _0xb9d082=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4b4378(0x227)]);return _0xb9d082[_0x4b4378(0x38c)](_0x4b4378(0x470))&&_0x484fc7[_0x4b4378(0x49f)][_0x4b4378(0x1b0)]('runId',_0xb9d082[_0x4b4378(0x38c)](_0x4b4378(0x470))),_0x484fc7[_0x4b4378(0x2fd)]();}async['_getSessionTicket'](){const _0x4898d9=_0x190561;var _0x1a5ec8;let _0x3299d9=this[_0x4898d9(0x437)]['getConfig'](_0x3107d6[_0x4898d9(0x2cc)]),_0xfa57c9=(_0x3299d9==null?void 0x0:_0x3299d9[_0x4898d9(0x3d0)])??_0x3107d6[_0x4898d9(0x475)];return((_0x1a5ec8=(await(0x0,_0x4c31a2[_0x4898d9(0x2bc)])(this[_0x4898d9(0x2e6)]['stream'](_0x4898d9(0x473),_0xfa57c9,{'headers':{'Content-Type':_0x4898d9(0x2e3)}})[_0x4898d9(0x28d)]((0x0,_0x4c31a2[_0x4898d9(0x381)])(_0x1b195e=>_0x1b195e[_0x4898d9(0x504)]===_0x9d56b3[_0x4898d9(0x4d6)][_0x4898d9(0x501)]),(0x0,_0x4c31a2['timeout'])(0x4e20),(0x0,_0x4c31a2[_0x4898d9(0x31d)])(this[_0x4898d9(0x4cf)]))))[_0x4898d9(0x278)])==null?void 0x0:_0x1a5ec8[_0x4898d9(0x29e)])??'';}};_0x3420d2=_0x31453e([_0x2cd89e(0x0,(0x0,_0x263090[_0x190561(0x413)])(_0x263090[_0x190561(0x47d)])),_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0x9d56b3[_0x190561(0x3c4)])),_0x2cd89e(0x2,_0x263090[_0x190561(0x452)]),_0x2cd89e(0x3,_0x263090['ILogService']),_0x2cd89e(0x4,_0x5eadb5[_0x190561(0x1e9)])],_0x3420d2);let _0x4840e8=class extends _0x263090['Disposable']{constructor(_0x5138b0,_0x2cbdd5,_0x480a53){const _0x3cf8c7=_0x190561;super(),this[_0x3cf8c7(0x1b7)]=_0x5138b0,this[_0x3cf8c7(0x2e6)]=_0x2cbdd5,this[_0x3cf8c7(0x437)]=_0x480a53;}async[_0x190561(0x33d)](_0x4c4863,_0x5911e5,_0x48876a,..._0x2e28e6){const _0x1cd8a1=_0x190561;let _0x56f3aa=this[_0x1cd8a1(0x1b7)][_0x1cd8a1(0x333)]();if(!_0x56f3aa)throw Error(_0x1cd8a1(0x2c7));let _0x463760=(this[_0x1cd8a1(0x437)]['getConfig'](_0x3107d6[_0x1cd8a1(0x401)])??_0x3107d6[_0x1cd8a1(0x40f)])+'/'+_0x4c4863+_0x1cd8a1(0x46e)+_0x5911e5,_0x45d1e4={'scriptId':_0x4c4863,'runId':new URL(window[_0x1cd8a1(0x22d)][_0x1cd8a1(0x1e5)])[_0x1cd8a1(0x49f)][_0x1cd8a1(0x38c)]('runId')??'','function':_0x5911e5,'unitId':_0x56f3aa['getUnitId'](),'argsOfFunction':JSON[_0x1cd8a1(0x3d7)](_0x2e28e6),'invokeId':_0x48876a[_0x1cd8a1(0x415)]??'','executionId':_0x48876a[_0x1cd8a1(0x1f5)]??''};try{let _0x1df6a4=await this['_httpService']['post'](_0x463760,{'body':_0x45d1e4});return _0x1df6a4[_0x1cd8a1(0x278)][_0x1cd8a1(0x396)]&&_0x1df6a4[_0x1cd8a1(0x278)]['error'][_0x1cd8a1(0x441)]!==_0x5b15f7[_0x1cd8a1(0x41b)]['OK']?_0x1cd8a1(0x41a):_0x1df6a4[_0x1cd8a1(0x278)][_0x1cd8a1(0x21a)];}catch{return _0x1cd8a1(0x41a);}}};_0x4840e8=_0x31453e([_0x2cd89e(0x0,_0x263090[_0x190561(0x48d)]),_0x2cd89e(0x1,(0x0,_0x263090[_0x190561(0x413)])(_0x9d56b3['HTTPService'])),_0x2cd89e(0x2,_0x263090[_0x190561(0x452)])],_0x4840e8);let _0x5b088e=0x7530,_0x373e74=_0x190561(0x30f);var _0xf443ec=class extends _0x263090['Disposable']{constructor(){const _0x27d2d8=_0x190561;super(),_0x312734(this,_0x27d2d8(0x4a2),(0x0,_0x263090['generateRandomId'])()),_0x312734(this,_0x27d2d8(0x3f6),new Set()),_0x312734(this,'_unitOnClients',new Map()),_0x312734(this,_0x27d2d8(0x258),null),_0x312734(this,_0x27d2d8(0x2ad),new Map()),_0x312734(this,_0x27d2d8(0x385),new Map()),this[_0x27d2d8(0x23e)]();}[_0x190561(0x508)](){const _0x371032=_0x190561;super[_0x371032(0x508)](),this[_0x371032(0x2ad)][_0x371032(0x4d5)]((_0x550478,_0x33dfa8)=>this[_0x371032(0x35e)](_0x33dfa8)),this[_0x371032(0x258)]&&window['clearInterval'](this[_0x371032(0x258)]);}[_0x190561(0x2ca)](_0x509ffe){const _0x344d83=_0x190561;return this[_0x344d83(0x512)](_0x509ffe)['pipe']((0x0,_0x4c31a2[_0x344d83(0x4eb)])());}['editingUnit'](_0x3c5c09){const _0x19a3de=_0x190561;this[_0x19a3de(0x3f6)]['size']===0x0&&this[_0x19a3de(0x2f2)](),this[_0x19a3de(0x3f6)][_0x19a3de(0x4f9)](_0x3c5c09),this[_0x19a3de(0x232)]({'type':0x0,'memberID':this[_0x19a3de(0x4a2)],'unitIDs':[_0x3c5c09],'isForwarded':!0x1});}[_0x190561(0x3f4)](_0xf90dd7){const _0x28654d=_0x190561;this[_0x28654d(0x3f6)][_0x28654d(0x4d7)](_0xf90dd7),this[_0x28654d(0x3f6)]['size']===0x0&&this[_0x28654d(0x258)]&&window[_0x28654d(0x2ce)](this[_0x28654d(0x258)]);}['_init'](){const _0x4c7f8c=_0x190561;this[_0x4c7f8c(0x1bd)]((0x0,_0x263090['toDisposable'])((0x0,_0x4c31a2['fromEvent'])(window,_0x4c7f8c(0x266))[_0x4c7f8c(0x2b8)](_0x4d2043=>{const _0x295221=_0x4c7f8c;if(_0x4d2043[_0x295221(0x372)]!==_0x373e74||!_0x4d2043['newValue'])return;let _0x59aafd=JSON[_0x295221(0x438)](_0x4d2043[_0x295221(0x4e8)]);this[_0x295221(0x449)](_0x59aafd);}))),window['addEventListener'](_0x4c7f8c(0x39a),()=>this[_0x4c7f8c(0x232)]({'type':0x1,'memberID':this[_0x4c7f8c(0x4a2)],'unitIDs':Array[_0x4c7f8c(0x4ce)](this['_selfUnitIDs'])}));}[_0x190561(0x449)](_0x43a404){const _0x3bd350=_0x190561;switch(_0x43a404[_0x3bd350(0x504)]){case 0x0:this[_0x3bd350(0x341)](_0x43a404);break;case 0x1:this[_0x3bd350(0x310)](_0x43a404);break;case 0x2:this[_0x3bd350(0x1b6)](_0x43a404);}}['_handleJoinEvent'](_0x14ff8c){const _0x1bf2f=_0x190561;let {unitIDs:_0xb05993,memberID:_0xaa0481,isForwarded:_0xb23cc5}=_0x14ff8c;_0xb05993[_0x1bf2f(0x4d5)](_0x4e0d98=>{const _0x3ef807=_0x1bf2f;if(!_0xb23cc5&&this['_unitOnClients'][_0x3ef807(0x386)](_0x4e0d98)&&this[_0x3ef807(0x512)](_0x4e0d98)['next'](_0x3107d6[_0x3ef807(0x1d2)][_0x3ef807(0x221)]),!this[_0x3ef807(0x326)]['has'](_0x4e0d98)||!this[_0x3ef807(0x326)]['get'](_0x4e0d98)[_0x3ef807(0x386)](_0xaa0481)){let _0x115e1f=this[_0x3ef807(0x326)][_0x3ef807(0x38c)](_0x4e0d98)||new Set();_0x115e1f[_0x3ef807(0x4f9)](_0xaa0481),this['_unitOnClients'][_0x3ef807(0x1b0)](_0x4e0d98,_0x115e1f),this[_0x3ef807(0x228)](_0xaa0481);}}),_0xb23cc5||this[_0x1bf2f(0x232)]({'type':0x0,'memberID':this[_0x1bf2f(0x4a2)],'unitIDs':[...this[_0x1bf2f(0x3f6)]],'isForwarded':!0x0});}[_0x190561(0x228)](_0x3ed0f4){const _0x194bdf=_0x190561;this[_0x194bdf(0x35e)](_0x3ed0f4);let _0x32f8b4=window['setTimeout'](()=>{const _0x48bced=_0x194bdf;this[_0x48bced(0x326)][_0x48bced(0x4d5)](_0x2d5d5c=>{_0x2d5d5c['delete'](_0x3ed0f4);});},_0x5b088e*0x2);this[_0x194bdf(0x2ad)][_0x194bdf(0x1b0)](_0x3ed0f4,_0x32f8b4);}[_0x190561(0x35e)](_0xa4340c){const _0x2118cb=_0x190561;if(this[_0x2118cb(0x2ad)][_0x2118cb(0x386)](_0xa4340c)){let _0x455a34=this[_0x2118cb(0x2ad)][_0x2118cb(0x38c)](_0xa4340c);_0x455a34&&window[_0x2118cb(0x1cb)](_0x455a34),this[_0x2118cb(0x2ad)][_0x2118cb(0x1b0)](_0xa4340c,null);}}[_0x190561(0x310)](_0x481516){const _0xc5e2bf=_0x190561;let {memberID:_0x50bbf9,unitIDs:_0x4cc446}=_0x481516;_0x4cc446['forEach'](_0x5759ee=>{const _0x360b06=_0x229d;var _0x19dd14;let _0x2e48eb=this[_0x360b06(0x326)][_0x360b06(0x38c)](_0x5759ee);_0x2e48eb&&(_0x2e48eb[_0x360b06(0x4d7)](_0x50bbf9),(_0x19dd14=this['_ensureSubject'](_0x5759ee))==null||_0x19dd14[_0x360b06(0x344)](_0x2e48eb[_0x360b06(0x201)]===0x0?_0x3107d6[_0x360b06(0x1d2)][_0x360b06(0x37f)]:_0x3107d6[_0x360b06(0x1d2)][_0x360b06(0x221)]));}),this[_0xc5e2bf(0x35e)](_0x50bbf9);}['_handleHeartbeatEvent'](_0x4800dc){const _0x1f58d1=_0x190561;this[_0x1f58d1(0x228)](_0x4800dc[_0x1f58d1(0x418)]);}[_0x190561(0x232)](_0x57b3fa){const _0x21990c=_0x190561;localStorage[_0x21990c(0x200)](_0x373e74,JSON[_0x21990c(0x3d7)](_0x57b3fa));}[_0x190561(0x2f2)](){const _0x1851c1=_0x190561;this[_0x1851c1(0x258)]=window[_0x1851c1(0x453)](()=>{const _0x377448=_0x1851c1;this[_0x377448(0x232)]({'type':0x2,'memberID':this[_0x377448(0x4a2)]});},_0x5b088e);}[_0x190561(0x512)](_0xe3d0d6){const _0x1150e9=_0x190561;return this['_unitStatus'][_0x1150e9(0x386)](_0xe3d0d6)||this['_unitStatus'][_0x1150e9(0x1b0)](_0xe3d0d6,new _0x4c31a2[(_0x1150e9(0x2fa))](_0x3107d6[_0x1150e9(0x1d2)][_0x1150e9(0x37f)])),this[_0x1150e9(0x385)][_0x1150e9(0x38c)](_0xe3d0d6);}};Object[_0x190561(0x255)](_0x199b1e,_0x190561(0x2a1),{'enumerable':!0x0,'get':function(){return _0x3420d2;}}),Object['defineProperty'](_0x199b1e,_0x190561(0x502),{'enumerable':!0x0,'get':function(){return _0x3e2031;}}),Object[_0x190561(0x255)](_0x199b1e,_0x190561(0x2df),{'enumerable':!0x0,'get':function(){return _0x4840e8;}}),_0x199b1e['SheetCollabCursorShape']=_0x14cf5b,Object[_0x190561(0x255)](_0x199b1e,_0x190561(0x4d0),{'enumerable':!0x0,'get':function(){return _0x43375c;}}),_0x199b1e[_0x190561(0x3c6)]=_0xf443ec;}));
|