@univerjs-pro/collaboration-client 0.4.1-experimental.20241023-bbb123f → 0.4.1-experimental.20241024-0ebc6ee

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5cd2(_0x3351d2,_0x4312b9){const _0x3ad332=_0x3ad3();return _0x5cd2=function(_0x5cd26a,_0x202f14){_0x5cd26a=_0x5cd26a-0xa4;let _0x3e1110=_0x3ad332[_0x5cd26a];return _0x3e1110;},_0x5cd2(_0x3351d2,_0x4312b9);}function _0x3ad3(){const _0x4f77ba=['onPointerMove$','_status$','_sendHeartbeat','_onCursorUpdate','_cursorShapes','_localCacheService','_userManagerService','onSyncEditingCollabCursor','with','map','_instanceService','startsWith','_transformUndoredo','@univerjs/docs-ui','transformChangesets','_snapshotService','_id','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ERROR_IMAGE_TYPE','setInterval','_handleHover','number','_redoStacks','clearInterval','infoRsp','onRemoteRej','CommentService','_replayCachedMutations','_commentUpdate$','status$','none','_sender','startRow','closeSession','defineProperty','result','visibilityState','_sheetTransformSelectionsService','RefRangeService','_onCombEvent','_getAPIPrefixPath','_updateLocalCursor','executeCommand','CHANGESET_SHOULD_RETRY','currentTheme$','awaitingChangeset','pipe','unitId','collab-rect-range-','AWAITING_WITH_PENDING','_isPermissionRej','fetchThroughInterceptors','endRow','getRelativeToViewportCoord','_imageSourceCache','addImageSourceCache','reqId','[CollaborationSessionService]','collabStatus.synced','getUnhiddenWorksheets','engine','setItem','getOffsetConfig','UniverNetwork','_createSocket','unshift','_anchor','image/jpg','univerjs-icon\x20univerjs-icon-','714098kXYSlN','sendChangesetTimeout','enableOfflineEditing','UniverInstanceType','send','7KozcdA','min','add','history','conflict.content','_startDocCollabCursor','subscribe','deserializeRangeWithSheet','_collabCursorController','getCoordByCell','SetTextSelectionsOperation','includes','HEADER_MENU','_unitOnClients','createCollaborator','onTransformRemoteChangesetByIMECache','_notificationService','_createInitialStateImpl','univer-online-status-icon','DeleteRangeMoveLeftCommandId','UNRECOGNIZED','cursorInfo$','_changesetReqId','name','IConfigService','[PendingState]:\x20received\x20rejection.','transformStack\x20failed!','_getCurrentRevision','_hovered','_pendingMutations','href','/new_changes','shareReplay','SetSelectionsOperation','addObject','SNAPSHOT_HAS_BEEN_REMOVED','getCollabEntity','updateOfflineData','_startSheetCollabCursor','pending','YUUMI_URL_COL_OUT_OF_RANGE','_replaceFileID','_snapshotServerService','CommandType','getActiveSheet','WebSocketService','@univerjs/design','catch','dispose','SNAPSHOT_SERVER_URL_KEY','loadDoc','whenReady','every','removeMember','has','getCurrentSelections','univer-pro.collaboration-client-socket-service','addEventListener','getUnitOnRev','loadSheet','getDocRanges','docStateChange$','PERMISSION_REJ','getViewport','init','selections','APPLY_PERMISSION_DENIED','CollaborationSocketService','UNAUTHENTICATED','show','_docSkeleton','duration','HEARTBEAT','textEncoder','takeUntil','ColorKit','_transformUndoRedoStack','USERS_LEAVE','INGEST','url(#$1','_docTransformIMECacheService','csAckEvent','_selfUnitIDs','COLLAB_WEB_SOCKET_URL_KEY','ThresholdInterceptorFactory','push','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','UNIVER_PROJECT','_handler','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','substring','entries','transformMutationsWithChangeset','univer-online-status-title','HttpExport','sessionStatus','_updateStatus','IPermissionService','setShapeProps','@univerjs-pro/collaboration','measureText','POST','makeDirty','createInstance','headers','onlineStatusIcon','_singleActiveUnitService','roles','syncEditingCollabCursor','handleIRemoveCol','clipPath','onStateChange','_onCursorDelete','requireSession','NO_OTHER_CLIENTS_EDITING','ISnapshotServerService','IMessageService','_incrementRevisionNumber','_substituteUndoStack','_logService','onTransformChange$','exhaustSavingTask','snapshotServerUrl','_setupSubUnitSync','_textBubble','getItem','blue400','_updateCollabCursors','@univerjs-pro/license','_joinRoom','collab-text-range-','_commandService','offline','transformByState','roomInfos','reject','fill','_toggleOffline','_remoteChangesetQueue','UNIVER_COLLABORATION_CLIENT_PLUGIN','EmptyMutation','round','transformSelections','getCurrent','ThemeService','reverse','InsertSheetMutation','status','CollaborationEntity','_socketService','isActive','AUTHZ_URL_KEY','socket\x20open.','_refRangeService','_type','BuiltInUIPart','_permissionService','socket$','_memberService','LICENSE_DISTRO_REJECTED','LIVESHARE_NEW_HOST','_resendTimeout','string','FETCH_MISSING','_saveCache','getCurrentRevOfUnit','_clearRedo','IRenderManagerService','ImageUploadStatusType','url(#on-line-single_clip0_910_349)','newValue','useObservable','merge','onlyLocal','_stopTelemetryCollaborationNewChangeset','fillStyle','_send','_docTransformSelectionsService','YUUMI_RATE_OVER_LIMIT','_registerRenderDependencies','data','randomUUID','getMember','_clearHeartbeatTimer','type','_onRefRangeChange','fetch_missing','collaboration-client.config','loginUrlKey','saveSnapshot','_sendHeartbeatTimer','c1Prime','_getSaveTimeout','getUndoRedoMutationParamsCache','joinEvent','tag','rng','onMissingChangesets','_removeCollabCursors','DocSelectionManagerService','encode','DocCollaborationEntity','disposeWithMe','UniverCore','getAttachHeader','_executeRemoteChangeset','[OfflineState]:\x20received\x20acknowledgement.','InsertRangeMoveDownCommandId','state','_getDownloadEndpointURL','CHANGESET_REJ','_initStatusComponent','function','_collabCursorState$','COMPLETION_FINISHED','updateCursorEvent','className','onPointerLeave$','_unitStatus','UPDATE_CURSOR','_getSignURL','debounce','[DataLoaderController]','_backgroundColor','isTransformMutationFailure','_scheduleTimestamp','_clearLocalCache','WorkbookEditablePermission','UniverCollaboration','objectID','UnitEmbedded','evenodd','_onJoinRoomEvent','sequenceExecute','HEARTBEAT_TIMEOUT_KEY','_cursorInfo$','_toggleOnline','update','LOCAL_CACHE_INTERVAL_KEY','FAIL','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_exhaustRemoteChangesetQueue','UNIVER_UNKNOWN','SNAPSHOT_URL_KEY','FileId','_resendTimer','registerComponent','updatePermissionPoint','enableSingleActiveInstanceLock','_startCollaboration','_getAPIPrefix','USERS_ENTER','DisposableCollection','_lastPointer','@univerjs/sheets-ui','subunit','failed\x20to\x20apply\x20missed\x20changesets!','[CollaborationUndoRedoService]','MessageType','UniverUi','ranges','AWAITING','roomMembers$','_getSheetObject','apply','interceptor','getRoom','_handleLeaveEvent','_sessions','_state$','color','actions','assign','on-line-single_clip0_910_349','key','uploadFileServerUrl','_initCloseConn','_collaborationTimeoutTimer','transformUndoRedo','IHTTPImplementation','getLatestCsReqIdBySid','isInternalEditorID','isTransformMutationsWithChangesetFailure','XHRHTTPImplementation','row','_drawAnchor','COMPRESS_MUTATION_APPLY','svg','UniverTelemetry','_colorAssignService','handleInsertRangeMoveRight','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','removeParam','defs','ITelemetryService','clear','sheetId','SEND_CHANGESET_TIMEOUT_KEY','HTTPRequest','subscribeEvent','updateMember','activeSheet$','Subject','doc.mutation.rich-text-editing','IUndoRedoService','disableLocalCache','_getSendChangesetTimeout','LIVESHARE_OPERATION','replace','c2Prime','UniverSheets','workbook','LocalUndoRedoService','OffLineSingle','saveOfflineData','_throwTelemetryCollaborationNewChangeset','_collaborationSessionService','split','touchDependencies','_clearTimeoutTimer','ImageSourceType','getTypeOfUnitAdded$','lineTo','collabStatus.offline','sid','VIEWPORT_KEY','path','Disposable','_onMessage','registerHTTPInterceptor','colorChannel1','csShouldRetryEvent','visibilitychange','APPLY_REJECT','DocSkeletonManagerService','/block/','_event$','message$','onRemoteAck','toString','_anchorDot','ERROR_IMAGE','delete','[CollaborationState]:\x20apply\x20error!','_retryCount','getFocusedUnit','getParam','_beforeCloseService','_scheduleClearOtherTimer','RETRY_CONNECTING_MAX_COUNT','pluginName','toStringTag','_localStorageService','_socket$','textRanges','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_scheduleSaving','/-/object/-/batch_allowed','_HTTPService','OTHER_CLIENTS_EDITING','_labelPosition','_getScale','propertyIsEnumerable','/role','m2Prime','getUnitId','createElement','_transformService','currentColor','idSuffix','concatMap','UniverCollaborationClient','_getCtorByUniverType','getImage','collaboration-session-retry','[UniverCollaborationClientPlugin]','synced','body','UniverDocsUi','findNodePositionByCharIndex','enableAuthServer','selection','_checkMissing','_cursors','drawWith','\x0aCurrent:\x20','ALREADY_EXISTS','SessionStatus','jiqing500','isTransformMutationsWithChangesetSuccess','_changesetSessionId','getSheetObject','_lockTransition','UniverDrawing','_disabled','appendMutation','throttleTime','append','_waitForHeartbeatResponse','baseRev','DocStateChangeManagerService','bind','SetDocZoomRatioOperation','_socketReady','getInterceptPoints','_updateURLWithCurrentState','getSheetBlock','IDLE','_removeRoom','CONNECTOR_DATA_TOO_LARGE','[SyncedState]:\x20received\x20rejection.','session.collaboration-timeout','collabStatus.syncing','onReady','getSkeleton','SheetCollaborationEntity','getAncestorScale','fetchMiss','setCurrentUser','FETCH_MISS','_onConnectionOpen','max','onPointerEnter$','NEW_CHANGESETS','1541064KhnLom','toRgbString','ICommandService','getMemberID','_localeService','SnapshotServerOverHTTPService','getOwnPropertyDescriptor','INVALID_ARGUMENT','@univerjs/telemetry','_awaitingChangeset','COMMENT_UPDATE','[FetchMissState]','call','objects','telemetry\x20info\x20is\x20not\x20initialized','handleInsertRangeMoveDown','SUBMIT_CHANGESET','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','memberID','collaboratorID','changesets','Workbook','height','collabStatus.notCollab','delay','_timeoutTimer','url','editingUnit','/unit/','RECV','size','_scene','Optional','_configService','getCollabEntity$','override','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','x-univer-host','getActiveRange','NodePositionConvertToCursor','/object/','Injector','_showConflictNotification','_univerInstanceService','_color','distinctUntilChanged','DocIMEInputManagerService','values','filter','xlink:href','children','_injector','online','univer-online','@univerjs/docs','_onFetchMissResult','fromCollab','popstate','RxDisposable','RemoveColCommandId','YUUMI_SUBSCRIPTION_NOT_FOUND','CompressMutationService','currentSkeleton$','_removeClearOtherTimer','ILocalStorageService','TEXT_RANGE_LAYER_INDEX','createSocket','ERROR_EXCEED_SIZE','LocaleService','_initModules','_tryEnsureSocket','fetchMissingChangesets','onTransformSelections','collabCursorState$','change$','_syncEditingCollabCursorService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_queuedRemoteChangesets','LIVESHARE_TERMINATE','resolve','bottom','UniverCollaborationClientPlugin','#fff','reconnect','liveShareNewHost','unknown','useCallback','parse','registerRenderModule','collab-client.tooltip.reconnect','useDependency','_clearCollaborationTimeoutTimer','collab-text-anchor-','_commentService','_startTelemetryCollaborationNewChangeset','_tryReconnect','_undoStacks','take','_init','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','forEach','commentUpdateEvent','connectInjector','_roomMembers$','cursorInfo','off-line-single_clip0_910_343','unitID','setConfig','indexOf','capture','TOO_MANY_REQUESTS','IBeforeCloseService','_socketMessageSubscription','UNDEFINED','storage','asObservable','_themeService','focused$','top','@univerjs/core','APPLY_DUPLICATED','attrs','resend','?size=','_initStatusListener','code','SNAPSHOT_INVALID_SNAPSHOT','downloadEndpointUrl','_socket','[CollaborationEntity]','debug','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','JOIN','_ensureSubject','div','red300','concat','next','HEARTBEAT_INTERVAL_KEY','icon','_heartbeatTimer','isPermissionRej','SetWorksheetActivateCommand','collaboration.single-unit.warning','column','_unlockTransition','_onConflict','WebURLService','rgba(255,\x20255,\x20255,\x200.01)','_onRemoteChangeset','get','shouldCloseConn','_collaborationPaused','COMPRESS_MUTATION_SEND','assignAColorForMemberID','getCellPositionByOffset','&source=','_http','permission.title','save\x20fail\x20reason\x20is\x20','close','SHOULD_CLOSE_CONN','_createInitialState','url(#off-line-single_clip0_910_343)','transform','getValue','pauseCollaboration','image/gif','CHANGESET_ACK','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Tools','603738MjUMYS','_ws','NOT_COLLAB','Vector2','event$','serializeRangeWithSheet','purple300','ENSURE_SNAPSHOT_EXECUTION','_docSyncEditingCollabCursorService','saveChangeset','auth.needGotoLoginAlert','_shouldReportTelemetry','isValidRectRange','unitId\x20is\x20not\x20found','startColumn','_resendWithTimeout','rxjs','_transformStack','editing\x20status\x20changed\x20to','socket\x20close','/universer-api/oidc/authpage','_transformRemoteChangesetByIMECache','image/jpeg','_initEventListeners','_scheduleCollaborationTimeoutTimer','liveShareOperation','MSG_FOR_ERROR','toggleOnline','RichTextEditingMutation','UniverEngineRender','location','text','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_disableEditing','toDisposable','_acknowledgedAwaitingChangeset','_docStateChangeManagerService','close$','loadOfflineData','Unknown\x20user','@univerjs/network','awaiting_with_pending','setTimeout','UNIVER_DOC','APPLY_NON_SEQUENTIAL_REVISION','dispose$','list','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getConfig','fillText','_sessionStatus$','state$','_compressMutationService','generateRandomId','YUUMI_UNABLE_LOAD_URL','reduce','getResourcesRequest','sheets','ImageIoService','[PendingState]:\x20received\x20acknowledgement.','ITransformService','extend','_roomMembers','resourceIDs','AuthzIoHttpService','revision','originalMeta','UPDATE_PERMISSION_OBJ','CHANGESET_REVISION_CONFILICT','range','displayName','getCollabCursors$','getSheetId','Univer','getRenderById','_scheduleHeartbeat','ReplaySubject','_hover','NodePositionConvertToRectRange','setAlpha','_entityInit$','DesktopCollaborationStatusDisplayController','@univerjs/engine-formula','Warning','_unitID','_transitionLocked','registerRefRange','_cursor','members','_retryConnectingTimer','_clearOtherTimers','onMissedChangesetFetched','_initResize','getImageSourceCache','listCollaborators','allowed','BehaviorSubject','_onUserJoin','session.will-retry','_range','SnapshotService','COLORS','MUTATION','/object','onCommentUpdate','parseChangesetToProtocol','onlineStatusTitle','CollaborationSessionService','/rev/','LOGIN_URL_KEY','IAuthzIoService','_renderManagerService','/resources','getTime','CONFLICT','_initCommandExecutedListener','getDeserializedSheetBlock','combineLatest','getCurrentUnitForType','InsertRowCommandId','hasOwnProperty','arc','find','_clearUndo','json','subUnitId','then','_updateLocalCache','_cachedData','_loadSheet','handleDeleteRangeMoveLeft','replaceTextRanges','fillRule','routeKey','stringify','handleDeleteRangeMoveUp','compose','[SyncedState]:\x20received\x20acknowledgement.','Shape','SheetsSelectionsService','HELLO','_uiPartsService','CollaborationController','CollaborationEvent','deleteCollaborator','switchMap','defIds','forwardRef','3410634SoaOAf','gold400','transformIMECache','mutations','collaboration.closeRoom','sessionStatus$','connection\x20error','onRemoteChangeset','collabStatus.fetchMiss','SheetSkeletonManagerService','/universer-api/snapshot/','slice','debounceTime','font','now','image/png','_onRemoteRejected','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','responseType','_eventUnsubscribe','_submitChangeset','[CollaborationSessionService]:\x20socket\x20error','UniverDocs','getUnitStatus$','_collabSessionService','LEAVE','_hideTimer','pushState','_waitCount','[CollaborationSession]','stopTime','Error','COLLAB_SUBMIT_CHANGESET_URL_KEY','length','_syncEditingCollabCursor','PERMISSION_DENIED','_listenToOnlineEvent','_onRemoteRetry','UNIVER_SLIDE','_decreaseWaiting','_httpService','_sendingTimer','exports','set','collaboration_new_changeset','_getRedoStack','DEFAULT_FILE_NAME','unit','UNKNOWN_CODE','LICENSE_EXPORT_SIZE_EXCEEDED','m1Prime','EXCHANGE_SIGN_URL_SERVER_URL_KEY','batchAllowed','ONLINE','LIVESHARE_REQUEST_HOST','b64DecodeUnicode','PENDING','disposeUnit','localeService','_entities','_online','use','ACTIVE_UNIT_EVENT_CHANNEL','RevisionService','onCommandExecuted','HTTPService','SheetPermissionInitController','LocalCacheService','_state','RemoveRowCommandId','_initUnitPermissionChange','hide','serializeCombRequest','cmd','handleInsertCol','Module','/collaborator','_applyRemoteChangeset','_onLocalMutation','registerBeforeClose','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_transformSelections','copyFileMeta','Rectangle','uni.network.url-service','collabSubmitChangesetUrl','mapTo','_shapes','urlChange$','deepClone','not_collab','onRemoteRetry','from','_revisionService','endColumn','_onUserLeave','_candidateSocket','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','method','csRejEvent','setParam','1em','deserializeToCombResponse','_assignedColors','prototype','beginPath','_transformPreviousActiveRange','searchParams','rev','userID','50112svZANa','open$','_render','awaiting','toLowerCase','_saveTaskMap','patch','_substituteRedoStack','_handleEvent','IURLService','_getAnchorBounding','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_session','submit\x20changeset\x20error!','error$','3411272dOzBqT','IImageIoService','equals','UniverLicense','onMouseMove','@univerjs/rpc','DataLoaderController','setActiveRange','_config','BASE64','InsertColCommandId','save','_colorIndex','_updateSubUnitFromURLParams','LICENSE_MAX_UNITS_EXCEEDED','image/bmp','eventID','translate(.97)','objectType','_getUploadFileURL','fromEvent','on-line-single','UniverIcon','getRangePointData','_collaborationController','getSheetBySheetId','_transformIMECache','_getUndoStack','parseProtocolChangeset','105010znnZsZ','_change$','addObjects','_getMergeRange','HttpImport','Inject','_onConnectionFailed','onload','5cbQIYD','OFFLINE','getTypeOfUnitDisposed$','_members','_clearScheduledTask','handleMoveRange','UniverSheetsUi','SYNCED','action','params','getCurrentUser','complete','?url=','_createHandler','mapDocumentTypeToUniverType','DeleteRangeMoveUpCommandId','_schedule','_onOffline','PSEUDO_FETCH_MISSING_RESULT','_setupBeforeClosingHandler','FromArray','isArray','UNIVER_SHEET','CollaborationSession','retryConnectingInterval','UNKNOWN_CMD','JSONX','INTERNAL_ERROR','UniverRpc','post','operators','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','collabWebSocketUrl','_rescheduleHeartbeat','putCollaborators','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_urlService','\x20to\x20','_initRequestHeader','object','restore','HEARTBEAT_TIMEOUT','replaceState','transformMutation','Rect','clearTimeout','_handleHeartbeatEvent','handleInsertRow','conflict','isTransformChangesetsSuccess','getColor','saveSheetBlock','IUniverInstanceService','_messageService','listRoles','NOT_FOUND','_sheetSkeletonManagerService','LICENSE_IMPORT_SIZE_EXCEEDED','@univerjs/drawing','UnitSnapshot','MoveRangeCommandId','_updateState','_fetchMissChangesets','IUIPartsService','_listenToOfflineEvent','permissionRejEvent','_onRemoteACK','getOwnPropertySymbols','univer-online-status','file','target','put','socketService','Undefined','@univerjs/sheets','error','/universer-api/snapshot','639tKWjtz','getRandomValues','ILogService','requestParams','width','onRendered','_context','_docSkeletonManagerService','roomMembers','sheetID','unsubscribe','toggleOffline','M0\x200H16V16H0z','EffectRefRangId','@univerjs/ui','createIdentifier','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','_drawTextRange','LIVESHARE_FETCH_OPERATIONS','registerOnClose','session','onSendChangeset','getVpScrollXYInfoByPosToVp','black','getUnitType','_telemetryInfo','rxjs/operators','react','VIEW_MAIN','getUniverSheetInstance','_name','_refreshCollabCursors','...'];_0x3ad3=function(){return _0x4f77ba;};return _0x3ad3();}(function(_0x4c4f56,_0x307175){const _0xbe286a=_0x5cd2,_0x5001be=_0x4c4f56();while(!![]){try{const _0x4d1b90=parseInt(_0xbe286a(0x1dd))/0x1+parseInt(_0xbe286a(0x3c6))/0x2+parseInt(_0xbe286a(0x2df))/0x3+-parseInt(_0xbe286a(0x132))/0x4+parseInt(_0xbe286a(0x313))/0x5*(-parseInt(_0xbe286a(0x271))/0x6)+-parseInt(_0xbe286a(0x3cb))/0x7*(parseInt(_0xbe286a(0x2ee))/0x8)+parseInt(_0xbe286a(0x360))/0x9*(parseInt(_0xbe286a(0x30b))/0xa);if(_0x4d1b90===_0x307175)break;else _0x5001be['push'](_0x5001be['shift']());}catch(_0x3d3869){_0x5001be['push'](_0x5001be['shift']());}}}(_0x3ad3,0x53ba4),function(_0x5c314d,_0x556079){const _0x27d4d4=_0x5cd2;typeof exports==_0x27d4d4(0x33a)&&typeof module<'u'?_0x556079(exports,require(_0x27d4d4(0x1a9)),require(_0x27d4d4(0x1ed)),require(_0x27d4d4(0x37a)),require(_0x27d4d4(0x3f9)),require(_0x27d4d4(0x36e)),require(_0x27d4d4(0x205)),require(_0x27d4d4(0x42e)),require(_0x27d4d4(0x13a)),require(_0x27d4d4(0x38e)),require(_0x27d4d4(0x35d)),require('@univerjs/engine-render'),require(_0x27d4d4(0x168)),require(_0x27d4d4(0x34d)),require('@univerjs/engine-formula'),require(_0x27d4d4(0x4c9)),require(_0x27d4d4(0x37b)),require(_0x27d4d4(0x2f3)),require(_0x27d4d4(0x44b))):typeof define==_0x27d4d4(0x49f)&&define['amd']?define([_0x27d4d4(0x29b),_0x27d4d4(0x1a9),_0x27d4d4(0x1ed),_0x27d4d4(0x37a),_0x27d4d4(0x3f9),_0x27d4d4(0x36e),_0x27d4d4(0x205),_0x27d4d4(0x42e),_0x27d4d4(0x13a),_0x27d4d4(0x38e),'@univerjs/sheets','@univerjs/engine-render','@univerjs/docs','@univerjs/drawing',_0x27d4d4(0x22f),_0x27d4d4(0x4c9),_0x27d4d4(0x37b),_0x27d4d4(0x2f3),'@univerjs-pro/license'],_0x556079):(_0x5c314d=typeof globalThis<'u'?globalThis:_0x5c314d||self,_0x556079(_0x5c314d[_0x27d4d4(0xfd)]={},_0x5c314d[_0x27d4d4(0x496)],_0x5c314d[_0x27d4d4(0x1ed)],_0x5c314d[_0x27d4d4(0x1ed)][_0x27d4d4(0x331)],_0x5c314d['UniverDesign'],_0x5c314d[_0x27d4d4(0x4ce)],_0x5c314d[_0x27d4d4(0x3c0)],_0x5c314d[_0x27d4d4(0x4af)],_0x5c314d[_0x27d4d4(0xaa)],_0x5c314d[_0x27d4d4(0x104)],_0x5c314d[_0x27d4d4(0xc0)],_0x5c314d[_0x27d4d4(0x1fa)],_0x5c314d[_0x27d4d4(0x287)],_0x5c314d[_0x27d4d4(0x113)],_0x5c314d['UniverEngineFormula'],_0x5c314d[_0x27d4d4(0x319)],_0x5c314d['React'],_0x5c314d[_0x27d4d4(0x32f)],_0x5c314d[_0x27d4d4(0x2f1)]));}(this,function(_0x4e0bbf,_0x460a10,_0x22d14a,_0x436c5c,_0x511ab8,_0x29b1e2,_0x4b5b88,_0x162fdb,_0x2ca65d,_0x39c231,_0x57c232,_0x5633aa,_0x447cee,_0x39a60b,_0x3a49db,_0x448142,_0x542714,_0x5bcab3,_0x3c3026){'use strict';const _0x103a68=_0x5cd2;var _0x105131=Object['defineProperty'],_0x58126a=(_0x53ac05,_0x29105e,_0x15f087)=>_0x29105e in _0x53ac05?_0x105131(_0x53ac05,_0x29105e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15f087}):_0x53ac05[_0x29105e]=_0x15f087,_0x519548=(_0x1d14e0,_0x1b3fb5,_0x2c89f8)=>_0x58126a(_0x1d14e0,typeof _0x1b3fb5!='symbol'?_0x1b3fb5+'':_0x1b3fb5,_0x2c89f8);const _0x1f5936='SNAPSHOT_SERVER_URL_KEY',_0x9dae07=_0x103a68(0x35f),_0x5ed756=_0x103a68(0x4be),_0x1ea791='SEND_CHANGESET_TIMEOUT',_0x3ea07e='COLLAB_WEB_SOCKET_URL',_0x548796='ws://127.0.0.1:8000/universer-api/comb/connect',_0x285d6d='HEARTBEAT_INTERVAL',_0x4a32d2=_0x103a68(0x33c),_0x2529a2=_0x103a68(0xe7),_0x28c4b8='LOCAL_CACHE_INTERVAL',_0xbf257c='COLLAB_SUBMIT_CHANGESET_URL',_0x24870e='/universer-api/comb',_0x17be73=_0x103a68(0x24a),_0x2d0494=_0x103a68(0x1f1);var _0x48b06d=(_0x3f9a96=>(_0x3f9a96[_0x3f9a96[_0x103a68(0x1a3)]=0x0]='UNDEFINED',_0x3f9a96[_0x3f9a96['OK']=0x1]='OK',_0x3f9a96[_0x3f9a96[_0x103a68(0x32e)]=0x2]=_0x103a68(0x32e),_0x3f9a96[_0x3f9a96['PERMISSION_DENIED']=0x3]=_0x103a68(0x294),_0x3f9a96[_0x3f9a96[_0x103a68(0x34a)]=0x4]='NOT_FOUND',_0x3f9a96[_0x3f9a96[_0x103a68(0x40f)]=0x5]=_0x103a68(0x40f),_0x3f9a96[_0x3f9a96['ALREADY_EXISTS']=0x6]=_0x103a68(0x10c),_0x3f9a96[_0x3f9a96['INVALID_ARGUMENT']=0x7]=_0x103a68(0x139),_0x3f9a96[_0x3f9a96[_0x103a68(0x1a0)]=0x8]=_0x103a68(0x1a0),_0x3f9a96[_0x3f9a96[_0x103a68(0x4a1)]=0x9]=_0x103a68(0x4a1),_0x3f9a96[_0x3f9a96[_0x103a68(0x221)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3f9a96[_0x3f9a96[_0x103a68(0x1b0)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3f9a96[_0x3f9a96[_0x103a68(0x3ee)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3f9a96[_0x3f9a96[_0x103a68(0x1e4)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3f9a96[_0x3f9a96[_0x103a68(0xd7)]=0x1b59]=_0x103a68(0xd7),_0x3f9a96[_0x3f9a96[_0x103a68(0x209)]=0x1b5a]=_0x103a68(0x209),_0x3f9a96[_0x3f9a96['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3f9a96[_0x3f9a96[_0x103a68(0x40d)]=0x1b5c]=_0x103a68(0x40d),_0x3f9a96[_0x3f9a96['APPLY_DUPLICATED']=0x1b5d]=_0x103a68(0x1aa),_0x3f9a96[_0x3f9a96[_0x103a68(0x123)]=0x1f41]=_0x103a68(0x123),_0x3f9a96[_0x3f9a96[_0x103a68(0x2fc)]=0x2329]=_0x103a68(0x2fc),_0x3f9a96[_0x3f9a96[_0x103a68(0x1db)]=0x232a]=_0x103a68(0x1db),_0x3f9a96[_0x3f9a96[_0x103a68(0x34c)]=0x232b]=_0x103a68(0x34c),_0x3f9a96[_0x3f9a96[_0x103a68(0x2a2)]=0x232c]=_0x103a68(0x2a2),_0x3f9a96[_0x3f9a96[_0x103a68(0x46a)]=0x232d]=_0x103a68(0x46a),_0x3f9a96[_0x3f9a96[_0x103a68(0x213)]=0x2711]=_0x103a68(0x213),_0x3f9a96[_0x3f9a96[_0x103a68(0x3f3)]=0x2712]=_0x103a68(0x3f3),_0x3f9a96[_0x3f9a96[_0x103a68(0x47d)]=0x2713]=_0x103a68(0x47d),_0x3f9a96[_0x3f9a96['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x103a68(0x16e),_0x3f9a96[_0x3f9a96[_0x103a68(0x3df)]=-0x1]=_0x103a68(0x3df),_0x3f9a96))(_0x48b06d||{}),_0x3907d0=(_0x3245f9=>(_0x3245f9[_0x3245f9[_0x103a68(0x4bd)]=0x0]='UNIVER_UNKNOWN',_0x3245f9[_0x3245f9[_0x103a68(0x208)]=0x1]=_0x103a68(0x208),_0x3245f9[_0x3245f9[_0x103a68(0x329)]=0x2]='UNIVER_SHEET',_0x3245f9[_0x3245f9[_0x103a68(0x297)]=0x3]=_0x103a68(0x297),_0x3245f9[_0x3245f9['UNIVER_PROJECT']=0x4]=_0x103a68(0x422),_0x3245f9[_0x3245f9[_0x103a68(0x3df)]=-0x1]=_0x103a68(0x3df),_0x3245f9))(_0x3907d0||{}),_0x32a28a=(_0x1b7d08=>(_0x1b7d08[_0x1b7d08['UNKNOWN_CMD']=0x0]=_0x103a68(0x32c),_0x1b7d08[_0x1b7d08[_0x103a68(0x269)]=0x1]=_0x103a68(0x269),_0x1b7d08[_0x1b7d08[_0x103a68(0x1b6)]=0x2]=_0x103a68(0x1b6),_0x1b7d08[_0x1b7d08[_0x103a68(0x28a)]=0x3]='LEAVE',_0x1b7d08[_0x1b7d08[_0x103a68(0x419)]=0x4]=_0x103a68(0x419),_0x1b7d08[_0x1b7d08[_0x103a68(0x413)]=0x5]='HEARTBEAT',_0x1b7d08[_0x1b7d08[_0x103a68(0x14f)]=0x6]=_0x103a68(0x14f),_0x1b7d08[_0x1b7d08[_0x103a68(0x3df)]=-0x1]=_0x103a68(0x3df),_0x1b7d08))(_0x32a28a||{}),_0x16fd6f=(_0x3ba0ab=>(_0x3ba0ab[_0x3ba0ab[_0x103a68(0x2a1)]=0x0]='UNKNOWN_CODE',_0x3ba0ab[_0x3ba0ab['OK']=0x1]='OK',_0x3ba0ab[_0x3ba0ab[_0x103a68(0x4ba)]=0x2]=_0x103a68(0x4ba),_0x3ba0ab[_0x3ba0ab[_0x103a68(0x3df)]=-0x1]='UNRECOGNIZED',_0x3ba0ab))(_0x16fd6f||{}),_0x46e1d8=(_0x2f0595=>(_0x2f0595[_0x2f0595['Undefined']=0x0]=_0x103a68(0x35c),_0x2f0595[_0x2f0595[_0x103a68(0x30f)]=0x1]=_0x103a68(0x30f),_0x2f0595[_0x2f0595[_0x103a68(0x429)]=0x2]=_0x103a68(0x429),_0x2f0595[_0x2f0595[_0x103a68(0x4b1)]=0x3]=_0x103a68(0x4b1),_0x2f0595[_0x2f0595[_0x103a68(0x34e)]=0x4]='UnitSnapshot',_0x2f0595[_0x2f0595[_0x103a68(0x3df)]=-0x1]=_0x103a68(0x3df),_0x2f0595))(_0x46e1d8||{});const _0x49305e=_0x103a68(0x486),_0x231290={};function _0x1d2aae(_0x1f0b3f){const _0x2aa9bd=_0x103a68;var _0x566f15,_0x2b5135,_0x270bda,_0x10ec4b,_0x453d2b;const _0x4eee2e=_0x1f0b3f[_0x2aa9bd(0x47f)],_0x1ef70d=JSON[_0x2aa9bd(0x189)](_0x4eee2e);switch(_0x1ef70d[_0x2aa9bd(0x2ba)]){case _0x32a28a['HEARTBEAT']:case _0x32a28a[_0x2aa9bd(0x269)]:{const _0x206892=_0x1ef70d[_0x2aa9bd(0x399)];return{..._0x1ef70d,'data':_0x206892,'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};}case _0x32a28a['JOIN']:{const _0x38f696=_0x1ef70d['joinRsp'];return{..._0x1ef70d,'data':_0x38f696,'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};}case _0x32a28a[_0x2aa9bd(0x14f)]:{const _0x3cba1d=_0x1ef70d['collaMsg'];switch(_0x3cba1d[_0x2aa9bd(0x2fe)]){case _0x162fdb['CollaborationEvent'][_0x2aa9bd(0x409)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':(_0x566f15=_0x3cba1d[_0x2aa9bd(0x354)])==null?void 0x0:_0x566f15['cs']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb['CollaborationEvent'][_0x2aa9bd(0x1da)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':(_0x2b5135=_0x3cba1d[_0x2aa9bd(0x41c)])==null?void 0x0:_0x2b5135['cs']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb['CollaborationEvent'][_0x2aa9bd(0x131)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':(_0x270bda=_0x3cba1d['newCsEvent'])==null?void 0x0:_0x270bda['cs']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x49d)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':(_0x10ec4b=_0x3cba1d[_0x2aa9bd(0x2d4)])==null?void 0x0:_0x10ec4b['cs']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x3ac)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':(_0x453d2b=_0x3cba1d[_0x2aa9bd(0xd5)])==null?void 0x0:_0x453d2b['cs']},'cmd':_0x1ef70d['cmd']};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x4a6)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d[_0x2aa9bd(0x4a2)]},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb['CollaborationEvent'][_0x2aa9bd(0x4c6)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d[_0x2aa9bd(0x48d)]},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb['CollaborationEvent'][_0x2aa9bd(0x418)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d['leaveEvent']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x46b)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d['liveShareNewHost']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x372)]:case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0xbd)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d[_0x2aa9bd(0x1f6)]},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x180)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d[_0x2aa9bd(0x186)]},'cmd':_0x1ef70d['cmd']};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x1f7)]:return{..._0x1ef70d,'data':_0x3cba1d,'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x13c)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d[_0x2aa9bd(0x197)]},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)]['UPDATE_PERMISSION_OBJ']:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d['updatePermissionObjEvent']},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};case _0x162fdb[_0x2aa9bd(0x26c)][_0x2aa9bd(0x1d3)]:return{..._0x1ef70d,'data':{..._0x3cba1d,'data':_0x3cba1d[_0x2aa9bd(0x1c9)]},'cmd':_0x1ef70d[_0x2aa9bd(0x2ba)]};default:return _0x1ef70d;}}default:return _0x1ef70d;}}function _0x442838(_0x90221c){const _0x3a4256=_0x103a68;switch(_0x90221c[_0x3a4256(0x2ba)]){case _0x32a28a[_0x3a4256(0x413)]:case _0x32a28a['HELLO']:return JSON[_0x3a4256(0x263)]({'cmd':_0x90221c[_0x3a4256(0x2ba)],'routeKey':_0x90221c[_0x3a4256(0x262)]});case _0x32a28a['INGEST']:{let _0x370441;switch(_0x90221c[_0x3a4256(0x47f)][_0x3a4256(0x2fe)]){case _0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x4a6)]:{_0x370441={'eventID':_0x162fdb['CollaborationEvent'][_0x3a4256(0x4a6)],'updateCursorEvent':_0x90221c[_0x3a4256(0x47f)][_0x3a4256(0x47f)]};break;}case _0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x418)]:{_0x370441={'eventID':_0x162fdb[_0x3a4256(0x26c)]['USERS_LEAVE'],'leaveEvent':_0x90221c['data'][_0x3a4256(0x47f)]};break;}case _0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x4c6)]:{_0x370441={'eventID':_0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x4c6)],'joinEvent':_0x90221c[_0x3a4256(0x47f)]['data']};break;}case _0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x46b)]:{_0x370441={'eventID':_0x162fdb['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x90221c[_0x3a4256(0x47f)][_0x3a4256(0x47f)]};break;}case _0x162fdb['CollaborationEvent'][_0x3a4256(0xbd)]:{_0x370441={'eventID':_0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0xbd)],'liveShareOperation':_0x90221c[_0x3a4256(0x47f)][_0x3a4256(0x47f)]};break;}case _0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x180)]:{_0x370441={'eventID':_0x162fdb[_0x3a4256(0x26c)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x90221c[_0x3a4256(0x47f)]['data']};break;}case _0x162fdb[_0x3a4256(0x26c)]['LIVESHARE_REQUEST_HOST']:{_0x370441={'eventID':_0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x2a7)],'liveShareRequestHost':_0x90221c[_0x3a4256(0x47f)][_0x3a4256(0x47f)]};break;}case _0x162fdb[_0x3a4256(0x26c)][_0x3a4256(0x372)]:{_0x370441={'eventID':_0x162fdb['CollaborationEvent'][_0x3a4256(0x372)]};break;}default:_0x370441={'eventID':_0x90221c[_0x3a4256(0x47f)][_0x3a4256(0x2fe)]};}return JSON[_0x3a4256(0x263)]({'cmd':_0x90221c[_0x3a4256(0x2ba)],'routeKey':_0x90221c['routeKey'],'collaMsg':_0x370441});}case _0x32a28a[_0x3a4256(0x1b6)]:return JSON[_0x3a4256(0x263)]({'cmd':_0x90221c[_0x3a4256(0x2ba)],'routeKey':_0x90221c[_0x3a4256(0x262)],'joinReq':_0x90221c[_0x3a4256(0x47f)]});case _0x32a28a[_0x3a4256(0x28a)]:return JSON[_0x3a4256(0x263)]({'cmd':_0x90221c[_0x3a4256(0x2ba)],'routeKey':_0x90221c[_0x3a4256(0x262)],'leaveReq':_0x90221c['data']});default:throw new Error(_0x3a4256(0x336));}}var _0x1bc0af=Object['defineProperty'],_0xca3ef1=Object[_0x103a68(0x138)],_0x9a3957=(_0x149d16,_0x574d3a,_0x2a1faa,_0x3bd9fe)=>{for(var _0x5cdde7=_0x3bd9fe>0x1?void 0x0:_0x3bd9fe?_0xca3ef1(_0x574d3a,_0x2a1faa):_0x574d3a,_0x368f11=_0x149d16['length']-0x1,_0x2282c9;_0x368f11>=0x0;_0x368f11--)(_0x2282c9=_0x149d16[_0x368f11])&&(_0x5cdde7=(_0x3bd9fe?_0x2282c9(_0x574d3a,_0x2a1faa,_0x5cdde7):_0x2282c9(_0x5cdde7))||_0x5cdde7);return _0x3bd9fe&&_0x5cdde7&&_0x1bc0af(_0x574d3a,_0x2a1faa,_0x5cdde7),_0x5cdde7;},_0x54bc86=(_0x388e4f,_0x4421b5)=>(_0x627c84,_0xd1593a)=>_0x4421b5(_0x627c84,_0xd1593a,_0x388e4f);const _0x25dd34=_0x460a10[_0x103a68(0x36f)](_0x103a68(0x403));function _0x49c907(_0x508ca3,_0x562226,_0x4d7175){const _0x100d79=_0x103a68;return _0x508ca3+'/'+_0x562226+'/unit/'+_0x4d7175+_0x100d79(0x3ea);}_0x4e0bbf[_0x103a68(0x40e)]=class extends _0x460a10[_0x103a68(0xd1)]{constructor(_0x5b6cfa,_0x557c5e,_0x12b1a3,_0x435405,_0x354e74){const _0x277ed8=_0x103a68;super(),this[_0x277ed8(0x1cf)]=_0x5b6cfa,this['_ws']=_0x557c5e,this[_0x277ed8(0x153)]=_0x12b1a3,this['_logService']=_0x435405,this[_0x277ed8(0x3f5)]=_0x354e74;}[_0x103a68(0x174)](_0x4d4d2a){const _0x17ab77=_0x103a68,_0x42d182=this[_0x17ab77(0x1de)][_0x17ab77(0x174)](_0x4d4d2a);if(!_0x42d182)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x258702=new _0x460a10[(_0x17ab77(0x4c7))](),_0x2b2378=new _0x22d14a[(_0x17ab77(0xb8))]();_0x258702[_0x17ab77(0x3cd)](_0x42d182[_0x17ab77(0x202)][_0x17ab77(0x3d1)](_0x2c1041=>_0x2b2378[_0x17ab77(0x1bb)](_0x2c1041))),_0x258702[_0x17ab77(0x3cd)](_0x460a10[_0x17ab77(0x1ff)](()=>_0x2b2378['complete']()));const _0x3c8240=new _0x22d14a[(_0x17ab77(0xb8))]();_0x258702[_0x17ab77(0x3cd)](_0x42d182[_0x17ab77(0x2ed)][_0x17ab77(0x3d1)](_0x3789e1=>_0x3c8240[_0x17ab77(0x1bb)](_0x3789e1))),_0x258702[_0x17ab77(0x3cd)](_0x460a10[_0x17ab77(0x1ff)](()=>_0x3c8240[_0x17ab77(0x31e)]()));const _0x258871=new _0x22d14a[(_0x17ab77(0xb8))]();_0x258702['add'](_0x42d182[_0x17ab77(0xdb)][_0x17ab77(0x3d1)](_0x2d3fbf=>{const _0x1178b4=_0x17ab77,_0x3c6347=_0x1d2aae(_0x2d3fbf);_0x258871[_0x1178b4(0x1bb)](_0x3c6347);})),_0x258702[_0x17ab77(0x3cd)](_0x460a10[_0x17ab77(0x1ff)](()=>_0x258871['complete']()));let _0x37d5be;const _0x3b1226=()=>{const _0xf2c18=_0x17ab77;_0x3c8240['next'](new Event(_0xf2c18(0x277))),_0x2b2378[_0xf2c18(0x1bb)](new CloseEvent(_0xf2c18(0x277))),_0x37d5be[_0xf2c18(0x1d2)]();};return _0x37d5be={'memberID':'','close$':_0x2b2378[_0x17ab77(0x1a5)](),'error$':_0x3c8240['asObservable'](),'open$':_0x42d182[_0x17ab77(0x2e0)],'message$':_0x258871[_0x17ab77(0x1a5)](),'send':_0x2bc90f=>{const _0x1050ce=_0x17ab77;if(_0x2bc90f['cmd']===_0x32a28a[_0x1050ce(0x419)]){if(_0x2bc90f[_0x1050ce(0x47f)][_0x1050ce(0x2fe)]===_0x162fdb[_0x1050ce(0x26c)]['SUBMIT_CHANGESET']){this[_0x1050ce(0x285)](_0x37d5be,_0x2bc90f[_0x1050ce(0x47f)])['catch'](_0x570101=>{const _0x14e19f=_0x1050ce;this['_logService'][_0x14e19f(0x35e)](_0x570101),_0x3b1226();});return;}if(_0x2bc90f[_0x1050ce(0x47f)][_0x1050ce(0x2fe)]===_0x162fdb['CollaborationEvent'][_0x1050ce(0x46e)]){const _0xb52092=_0x2bc90f[_0x1050ce(0x47f)];this['_fetchMissChangesets'](_0xb52092)[_0x1050ce(0x25b)](_0x48a989=>{const _0x2de6e8=_0x1050ce;_0x258871['next']({'cmd':_0x32a28a[_0x2de6e8(0x14f)],'code':_0x16fd6f['OK'],'routeKey':_0xb52092[_0x2de6e8(0x47f)][_0x2de6e8(0x19c)],'routeType':'','data':{'eventID':_0x162fdb[_0x2de6e8(0x26c)][_0x2de6e8(0x325)],'data':{'changesets':_0x48a989}}});})[_0x1050ce(0x3fa)](_0x1d58f3=>{const _0x4c811c=_0x1050ce;this[_0x4c811c(0x442)][_0x4c811c(0x35e)](_0x1d58f3),_0x3b1226();});return;}}_0x42d182[_0x1050ce(0x3ca)](_0x442838(_0x2bc90f));},'close':()=>{const _0x59b084=_0x17ab77;_0x42d182[_0x59b084(0x1d2)](),_0x258702[_0x59b084(0x3fb)]();}},_0x37d5be;}async['_submitChangeset'](_0x25b849,_0x458b4c){const _0x15fdc0=_0x103a68;var _0x3553bb,_0x27b787;const {unitType:_0x226a71,unitID:_0x55ede7,changeset:_0x3b804d}=_0x458b4c[_0x15fdc0(0x47f)],_0x3761ad={'unitID':_0x55ede7,'memberID':_0x25b849[_0x15fdc0(0x144)],'type':_0x226a71,'changeset':_0x162fdb[_0x15fdc0(0x246)](_0x3b804d)},_0x2375b2=this[_0x15fdc0(0x153)][_0x15fdc0(0x20d)](_0xbf257c),_0x56fcb3=this[_0x15fdc0(0x153)][_0x15fdc0(0x20d)](_0x49305e),_0x2f4723=_0x49c907((_0x27b787=(_0x3553bb=_0x56fcb3==null?void 0x0:_0x56fcb3[_0x15fdc0(0x2c6)])!=null?_0x3553bb:_0x2375b2)!=null?_0x27b787:_0x24870e,_0x226a71,_0x55ede7);try{await this[_0x15fdc0(0x1cf)]['post'](_0x2f4723,{'body':_0x3761ad});}catch(_0x42a4d1){throw this[_0x15fdc0(0x442)][_0x15fdc0(0x35e)](_0x15fdc0(0x28e),_0x15fdc0(0x2ec)),_0x42a4d1;}}async[_0x103a68(0x351)](_0x5e9ab0){const _0x5bad90=_0x103a68,{unitID:_0x3ef49c,from:_0x3073ec,to:_0x3e90ad,unitType:_0x1f3a8e}=_0x5e9ab0[_0x5bad90(0x47f)];return(await this[_0x5bad90(0x3f5)][_0x5bad90(0x179)]({'metadata':void 0x0},{'unitID':_0x3ef49c,'type':_0x1f3a8e,'from':_0x3073ec,'to':_0x3e90ad}))[_0x5bad90(0x146)];}},_0x4e0bbf[_0x103a68(0x40e)]=_0x9a3957([_0x54bc86(0x0,_0x460a10[_0x103a68(0x310)](_0x4b5b88['HTTPService'])),_0x54bc86(0x1,_0x460a10[_0x103a68(0x310)](_0x4b5b88[_0x103a68(0x3f8)])),_0x54bc86(0x2,_0x460a10[_0x103a68(0x3e3)]),_0x54bc86(0x3,_0x460a10[_0x103a68(0x362)]),_0x54bc86(0x4,_0x162fdb[_0x103a68(0x43e)])],_0x4e0bbf[_0x103a68(0x40e)]);const _0x37749c=_0x103a68(0x29d);function _0x1a1f49(_0xa95525){const _0x4dd535=_0x103a68;return JSON[_0x4dd535(0x263)](_0xa95525)[_0x4dd535(0x292)];}class _0x2b0d1c{constructor(){const _0x3174b7=_0x103a68;_0x519548(this,_0x3174b7(0x39d),new _0x22d14a['Subject']()),_0x519548(this,'commentUpdate$',this['_commentUpdate$'][_0x3174b7(0x1a5)]());}[_0x103a68(0x245)](_0x381def){const _0x17b3cb=_0x103a68;this[_0x17b3cb(0x39d)][_0x17b3cb(0x1bb)](_0x381def);}}var _0x2c4b3c=Object[_0x103a68(0x3a3)],_0x67a2bc=Object[_0x103a68(0x138)],_0x407b0b=(_0x41557c,_0x311a53,_0x510cab,_0x32f4ad)=>{const _0x12cd7e=_0x103a68;for(var _0x4ccd2c=_0x32f4ad>0x1?void 0x0:_0x32f4ad?_0x67a2bc(_0x311a53,_0x510cab):_0x311a53,_0x19c363=_0x41557c[_0x12cd7e(0x292)]-0x1,_0x58ea9a;_0x19c363>=0x0;_0x19c363--)(_0x58ea9a=_0x41557c[_0x19c363])&&(_0x4ccd2c=(_0x32f4ad?_0x58ea9a(_0x311a53,_0x510cab,_0x4ccd2c):_0x58ea9a(_0x4ccd2c))||_0x4ccd2c);return _0x32f4ad&&_0x4ccd2c&&_0x2c4b3c(_0x311a53,_0x510cab,_0x4ccd2c),_0x4ccd2c;},_0x206518=(_0x4f83c5,_0x3b239e)=>(_0x4f26a3,_0x3899b1)=>_0x3b239e(_0x4f26a3,_0x3899b1,_0x4f83c5);let _0xf42097=class extends _0x460a10['Disposable']{constructor(_0x39537b,_0x6b00d8){const _0x344729=_0x103a68;super(),_0x519548(this,_0x344729(0x21b),new Map()),(this[_0x344729(0x15d)]=_0x39537b,this[_0x344729(0x387)]=_0x6b00d8,this[_0x344729(0x495)](_0x460a10[_0x344729(0x1ff)](_0x22d14a['merge'](this[_0x344729(0x15d)]['getTypeOfUnitDisposed$'](_0x460a10[_0x344729(0x3c9)][_0x344729(0x329)])['pipe'](_0x436c5c[_0x344729(0x38a)](_0x1747e8=>_0x1747e8[_0x344729(0xf7)]())),this[_0x344729(0x15d)][_0x344729(0x315)](_0x460a10[_0x344729(0x3c9)]['UNIVER_DOC'])[_0x344729(0x3af)](_0x436c5c[_0x344729(0x38a)](_0x29c4e6=>_0x29c4e6[_0x344729(0xf7)]())),this['_univerInstanceService'][_0x344729(0x315)](_0x460a10[_0x344729(0x3c9)][_0x344729(0x297)])['pipe'](_0x436c5c[_0x344729(0x38a)](_0x39fc89=>_0x39fc89['getUnitId']())))[_0x344729(0x3d1)](_0x5791e1=>this['_removeRoom'](_0x5791e1)))));}[_0x103a68(0x12c)](_0x99c3ad){const _0x2429c1=_0x103a68;this[_0x2429c1(0x387)][_0x2429c1(0x12c)](_0x99c3ad);}[_0x103a68(0x31d)](){const _0x30505c=_0x103a68;return this[_0x30505c(0x387)]['getCurrentUser']();}[_0x103a68(0xb6)](_0x150b05,_0x3ef509){const _0x321e69=_0x103a68;let _0xf9be61=this[_0x321e69(0x21b)]['get'](_0x150b05);_0xf9be61||(_0xf9be61=new _0x3ea3ae(),this[_0x321e69(0x21b)][_0x321e69(0x29c)](_0x150b05,_0xf9be61)),_0xf9be61[_0x321e69(0xb6)](_0x3ef509);}['removeMember'](_0x4c86a3,_0x48b2ab){const _0x2a8968=_0x103a68,_0x3cbd75=this[_0x2a8968(0x21b)][_0x2a8968(0x1c8)](_0x4c86a3);_0x3cbd75&&_0x3cbd75[_0x2a8968(0x400)](_0x48b2ab);}[_0x103a68(0x4d5)](_0x12949c){const _0x3c7828=_0x103a68;return this[_0x3c7828(0x21b)][_0x3c7828(0x1c8)](_0x12949c);}[_0x103a68(0x481)](_0xef5b9a,_0x5381bf){const _0x55f420=_0x103a68,_0x12d701=this[_0x55f420(0x21b)][_0x55f420(0x1c8)](_0xef5b9a);if(_0x12d701)return _0x12d701['getMember'](_0x5381bf);}[_0x103a68(0x122)](_0x4a0ede){const _0x5bb3f2=_0x103a68,_0x5dc5de=this[_0x5bb3f2(0x21b)]['get'](_0x4a0ede);_0x5dc5de&&(_0x5dc5de[_0x5bb3f2(0x3fb)](),this[_0x5bb3f2(0x21b)][_0x5bb3f2(0xe0)](_0x4a0ede));}['dispose'](){const _0x5b4994=_0x103a68;this['_roomMembers'][_0x5b4994(0x196)](_0x305ae4=>_0x305ae4['dispose']()),this[_0x5b4994(0x21b)][_0x5b4994(0xb1)]();}};_0xf42097=_0x407b0b([_0x206518(0x0,_0x460a10[_0x103a68(0x347)]),_0x206518(0x1,_0x460a10[_0x103a68(0x310)](_0x460a10['UserManagerService']))],_0xf42097);class _0x3ea3ae extends _0x460a10['Disposable']{constructor(){const _0x34fb89=_0x103a68;super(...arguments),_0x519548(this,_0x34fb89(0x316),new Map());}[_0x103a68(0x3fb)](){const _0x51b091=_0x103a68;this[_0x51b091(0x316)]['clear']();}[_0x103a68(0xb6)](_0x57115a){const _0x35d2bd=_0x103a68;this['_members'][_0x35d2bd(0x29c)](_0x57115a['memberID'],_0x57115a);}[_0x103a68(0x400)](_0x1144e8){const _0x2580f4=_0x103a68;this['_members'][_0x2580f4(0xe0)](_0x1144e8);}['getMember'](_0x458f68){const _0x518bd=_0x103a68;return this[_0x518bd(0x316)][_0x518bd(0x1c8)](_0x458f68);}}var _0x5843c1=Object[_0x103a68(0x3a3)],_0x596062=Object[_0x103a68(0x138)],_0x4e1891=(_0x14ea01,_0x284f8e,_0x2b0a7c,_0x197d80)=>{for(var _0x4c028e=_0x197d80>0x1?void 0x0:_0x197d80?_0x596062(_0x284f8e,_0x2b0a7c):_0x284f8e,_0x152e4e=_0x14ea01['length']-0x1,_0x5a5763;_0x152e4e>=0x0;_0x152e4e--)(_0x5a5763=_0x14ea01[_0x152e4e])&&(_0x4c028e=(_0x197d80?_0x5a5763(_0x284f8e,_0x2b0a7c,_0x4c028e):_0x5a5763(_0x4c028e))||_0x4c028e);return _0x197d80&&_0x4c028e&&_0x5843c1(_0x284f8e,_0x2b0a7c,_0x4c028e),_0x4c028e;},_0x59081e=(_0x4eefee,_0x1a8a2c)=>(_0x120ff6,_0x1d91b2)=>_0x1a8a2c(_0x120ff6,_0x1d91b2,_0x4eefee),_0x2c7c24=(_0x5e19b4=>(_0x5e19b4[_0x5e19b4[_0x103a68(0x121)]=0x0]=_0x103a68(0x121),_0x5e19b4[_0x5e19b4['JOINING']=0x1]='JOINING',_0x5e19b4[_0x5e19b4[_0x103a68(0x314)]=0x2]='OFFLINE',_0x5e19b4[_0x5e19b4['ONLINE']=0x3]=_0x103a68(0x2a6),_0x5e19b4))(_0x2c7c24||{});_0x4e0bbf[_0x103a68(0x32a)]=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x58c3e3,_0x432fe4,_0x1ee1bb,_0x52a4f1,_0x54f92c,_0x2891e6,_0x5310af,_0x32580d,_0x5c48a9,_0x4b697a){const _0x12d25b=_0x103a68;super(),_0x519548(this,_0x12d25b(0x20f),new _0x22d14a[(_0x12d25b(0x23d))](0x0)),_0x519548(this,_0x12d25b(0x276),this['_sessionStatus$'][_0x12d25b(0x1a5)]()),_0x519548(this,_0x12d25b(0xda),new _0x22d14a[(_0x12d25b(0xb8))]()),_0x519548(this,'event$',this['_event$'][_0x12d25b(0x1a5)]()),_0x519548(this,_0x12d25b(0x1b2)),_0x519548(this,_0x12d25b(0x1a2)),_0x519548(this,_0x12d25b(0x4e0)),_0x519548(this,_0x12d25b(0x1e8),!0x1),_0x519548(this,_0x12d25b(0x379),null),(this[_0x12d25b(0x231)]=_0x58c3e3,this[_0x12d25b(0x442)]=_0x1ee1bb,this[_0x12d25b(0xe5)]=_0x52a4f1,this['_messageService']=_0x54f92c,this['_configService']=_0x2891e6,this[_0x12d25b(0x136)]=_0x5310af,this['_memberService']=_0x32580d,this[_0x12d25b(0x18f)]=_0x5c48a9,this['_telemetryService']=_0x4b697a,this[_0x12d25b(0x1e8)]=!!this['_telemetryService'],_0x432fe4[_0x12d25b(0x3af)](_0x22d14a[_0x12d25b(0x415)](this[_0x12d25b(0x20a)]))['subscribe'](_0xb21409=>{const _0x4695e1=_0x12d25b;var _0x3ef7ae;typeof _0xb21409>'u'||(this['_socket']=_0xb21409,_0xb21409?(this[_0x4695e1(0x44c)](_0xb21409),this[_0x4695e1(0x1a2)]=_0xb21409['message$'][_0x4695e1(0x3d1)](_0x163b25=>{const _0x3befd9=_0x4695e1;_0x163b25['routeKey']===this[_0x3befd9(0x231)]&&this['_onCombEvent'](_0x163b25);})):(this[_0x4695e1(0xc5)](),this['_sessionStatus$']['next'](0x2),(_0x3ef7ae=this[_0x4695e1(0x1a2)])==null||_0x3ef7ae['unsubscribe'](),this[_0x4695e1(0x1a2)]=null));}),this[_0x12d25b(0x495)](this[_0x12d25b(0xe5)][_0x12d25b(0x373)](()=>{const _0x2e1636=_0x12d25b;var _0x524693;(_0x524693=this['_socket'])==null||_0x524693[_0x2e1636(0x3ca)]({'cmd':_0x32a28a[_0x2e1636(0x28a)],'data':{'roomID':this[_0x2e1636(0x231)]}});})));}get[_0x103a68(0x42a)](){const _0x1c2aa6=_0x103a68;return this[_0x1c2aa6(0x20f)][_0x1c2aa6(0x1d7)]();}['getMemberID'](){const _0x4f54e7=_0x103a68;var _0xec994,_0x276196;return(_0x276196=(_0xec994=this['_socket'])==null?void 0x0:_0xec994[_0x4f54e7(0x144)])!=null?_0x276196:null;}[_0x103a68(0x3fb)](){const _0x57afb1=_0x103a68;super[_0x57afb1(0x3fb)](),this[_0x57afb1(0x20a)][_0x57afb1(0x1bb)](),this[_0x57afb1(0x20a)]['complete']();}[_0x103a68(0x1d2)](){const _0x5d3750=_0x103a68;var _0x152918,_0x195fb7;this[_0x5d3750(0xc5)](),(_0x152918=this['_socket'])==null||_0x152918[_0x5d3750(0x3ca)]({'cmd':_0x32a28a[_0x5d3750(0x28a)],'data':{'roomID':this[_0x5d3750(0x231)]}}),(_0x195fb7=this[_0x5d3750(0x1b2)])==null||_0x195fb7[_0x5d3750(0x1d2)](),this['_event$'][_0x5d3750(0x31e)](),this[_0x5d3750(0x20f)][_0x5d3750(0x31e)](),this[_0x5d3750(0x3fb)]();}[_0x103a68(0x3a8)](_0x397fcc){const _0x1ebf0d=_0x103a68;_0x397fcc[_0x1ebf0d(0x2ba)]===_0x32a28a[_0x1ebf0d(0x1b6)]?this[_0x1ebf0d(0x4b3)](_0x397fcc):_0x397fcc[_0x1ebf0d(0x2ba)]===_0x32a28a[_0x1ebf0d(0x14f)]&&this['_onRecvEvent'](_0x397fcc);}[_0x103a68(0x44c)](_0x39c3b5){const _0x241d79=_0x103a68;this[_0x241d79(0x20f)]['next'](0x1),_0x39c3b5['send']({'cmd':_0x32a28a[_0x241d79(0x1b6)],'routeKey':this[_0x241d79(0x231)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x103a68(0x4b3)](_0x1714c5){const _0x3f64f3=_0x103a68;var _0x12bc06;if(_0x1714c5[_0x3f64f3(0x1af)]===_0x16fd6f[_0x3f64f3(0x4ba)]){this['_messageService']['show']({'type':_0x511ab8[_0x3f64f3(0x4cd)][_0x3f64f3(0x230)],'content':this[_0x3f64f3(0x136)]['t']('session.room-full')}),this['_sessionStatus$']['next'](0x2);return;}this[_0x3f64f3(0x20f)][_0x3f64f3(0x1bb)](0x3);const _0x5ccf8e=(_0x12bc06=_0x1714c5[_0x3f64f3(0x47f)][_0x3f64f3(0x451)][this[_0x3f64f3(0x231)]])==null?void 0x0:_0x12bc06[_0x3f64f3(0x235)];_0x5ccf8e&&_0x5ccf8e[_0x3f64f3(0x196)](_0x20fe9e=>this[_0x3f64f3(0x469)]['updateMember'](this['_unitID'],_0x20fe9e));}['_onRecvEvent'](_0x1916f4){const _0x4984ad=_0x103a68;try{const _0x124f1d=_0x1916f4[_0x4984ad(0x47f)];switch(_0x124f1d['eventID']){case _0x162fdb[_0x4984ad(0x26c)][_0x4984ad(0x4c6)]:this[_0x4984ad(0x23e)](_0x124f1d),this[_0x4984ad(0xda)]['next'](_0x124f1d);break;case _0x162fdb[_0x4984ad(0x26c)][_0x4984ad(0x418)]:this[_0x4984ad(0x2d0)](_0x124f1d),this[_0x4984ad(0xda)][_0x4984ad(0x1bb)](_0x124f1d);break;case _0x162fdb[_0x4984ad(0x26c)][_0x4984ad(0x1da)]:case _0x162fdb[_0x4984ad(0x26c)][_0x4984ad(0x3ac)]:this[_0x4984ad(0x479)](),this[_0x4984ad(0x18d)](),this[_0x4984ad(0xda)][_0x4984ad(0x1bb)](_0x124f1d);break;case _0x162fdb['CollaborationEvent'][_0x4984ad(0x1f7)]:this[_0x4984ad(0x442)][_0x4984ad(0x35e)](_0x4984ad(0x1d1)+JSON[_0x4984ad(0x263)](_0x124f1d)),this[_0x4984ad(0xda)][_0x4984ad(0x1bb)](_0x124f1d);break;case _0x162fdb[_0x4984ad(0x26c)][_0x4984ad(0x13c)]:this[_0x4984ad(0x18f)][_0x4984ad(0x245)](_0x124f1d[_0x4984ad(0x47f)]),this[_0x4984ad(0xda)][_0x4984ad(0x1bb)](_0x124f1d);break;default:this['_event$'][_0x4984ad(0x1bb)](_0x124f1d);}}catch(_0x43c357){this[_0x4984ad(0x442)][_0x4984ad(0x35e)](_0x43c357,_0x1916f4);}}[_0x103a68(0x23e)](_0x2a91c4){const _0x14c684=_0x103a68;this['_memberService'][_0x14c684(0xb6)](this[_0x14c684(0x231)],_0x2a91c4['data']);}['_onUserLeave'](_0x42b5a5){const _0x33d228=_0x103a68;this[_0x33d228(0x469)]['removeMember'](this[_0x33d228(0x231)],_0x42b5a5[_0x33d228(0x47f)][_0x33d228(0x144)]);}async[_0x103a68(0x3ca)](_0x1da683,_0x52ab18){const _0x3373e9=_0x103a68;if(this[_0x3373e9(0x42a)]!==0x3||!this['_socket'])throw new Error(_0x3373e9(0x2ea));try{_0x1da683['eventID']===_0x162fdb['CollaborationEvent'][_0x3373e9(0x142)]&&(this[_0x3373e9(0x1f5)](),this['_startTelemetryCollaborationNewChangeset'](_0x1da683)),this[_0x3373e9(0x1b2)]['send']({'cmd':_0x32a28a[_0x3373e9(0x419)],'routeKey':_0x52ab18,'routeType':'','data':_0x1da683});}catch(_0x462665){this['_logService']['error'](_0x462665);}}[_0x103a68(0x1f5)](){const _0x5c47d4=_0x103a68;var _0x2b5bab;this[_0x5c47d4(0x4e0)]=window[_0x5c47d4(0x207)](()=>{const _0x54fad2=_0x5c47d4;this['_collaborationTimeoutTimer']=null,this[_0x54fad2(0x348)]['show']({'type':_0x511ab8[_0x54fad2(0x4cd)]['Error'],'content':this[_0x54fad2(0x136)]['t'](_0x54fad2(0x125))});},(_0x2b5bab=this[_0x5c47d4(0x153)][_0x5c47d4(0x20d)](_0x4a32d2))!=null?_0x2b5bab:0x4e20);}[_0x103a68(0x18d)](){const _0x56e6db=_0x103a68;this[_0x56e6db(0x4e0)]&&(clearTimeout(this[_0x56e6db(0x4e0)]),this[_0x56e6db(0x4e0)]=null);}[_0x103a68(0x190)](_0x2f697f){const _0x24b1b0=_0x103a68;if(!this[_0x24b1b0(0x1e8)])return;const {data:_0x551409}=_0x2f697f,{unitID:_0x5250a8,changeset:_0x1d65a7}=_0x551409,{mutations:_0x5ef748,type:_0x560797}=_0x1d65a7;this[_0x24b1b0(0x379)]={'unitId':_0x5250a8,'type':_0x560797,'startTime':performance[_0x24b1b0(0x27f)](),'stopTime':0x0,'duration':0x0,'size':_0x1a1f49(_0x5ef748)};}[_0x103a68(0x479)](){const _0x13d303=_0x103a68;if(this[_0x13d303(0x1e8)]){if(!this['_telemetryInfo']){this[_0x13d303(0x442)][_0x13d303(0x35e)](_0x13d303(0x28e),_0x13d303(0x140));return;}this[_0x13d303(0x379)][_0x13d303(0x28f)]=performance[_0x13d303(0x27f)](),this[_0x13d303(0x379)][_0x13d303(0x412)]=this[_0x13d303(0x379)][_0x13d303(0x28f)]-this[_0x13d303(0x379)]['startTime'],this['_telemetryService'][_0x13d303(0x19f)](_0x37749c,this[_0x13d303(0x379)]),this[_0x13d303(0x379)]=null;}}[_0x103a68(0xc5)](){const _0x21e9d1=_0x103a68;this[_0x21e9d1(0x379)]=null;}},_0x4e0bbf[_0x103a68(0x32a)]=_0x4e1891([_0x59081e(0x2,_0x460a10[_0x103a68(0x362)]),_0x59081e(0x3,_0x29b1e2[_0x103a68(0x1a1)]),_0x59081e(0x4,_0x29b1e2[_0x103a68(0x43f)]),_0x59081e(0x5,_0x460a10[_0x103a68(0x3e3)]),_0x59081e(0x6,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0x59081e(0x7,_0x460a10['Inject'](_0xf42097)),_0x59081e(0x8,_0x460a10[_0x103a68(0x310)](_0x2b0d1c)),_0x59081e(0x9,_0x460a10[_0x103a68(0x152)](_0x2ca65d[_0x103a68(0xb0)]))],_0x4e0bbf[_0x103a68(0x32a)]);var _0x3aa4ec=Object[_0x103a68(0x3a3)],_0x427ab9=Object[_0x103a68(0x138)],_0x3e545e=(_0x87d31a,_0x858054,_0x8305e6,_0x28eb06)=>{for(var _0x5722c0=_0x28eb06>0x1?void 0x0:_0x28eb06?_0x427ab9(_0x858054,_0x8305e6):_0x858054,_0x278f9c=_0x87d31a['length']-0x1,_0x13df62;_0x278f9c>=0x0;_0x278f9c--)(_0x13df62=_0x87d31a[_0x278f9c])&&(_0x5722c0=(_0x28eb06?_0x13df62(_0x858054,_0x8305e6,_0x5722c0):_0x13df62(_0x5722c0))||_0x5722c0);return _0x28eb06&&_0x5722c0&&_0x3aa4ec(_0x858054,_0x8305e6,_0x5722c0),_0x5722c0;},_0x14b1e0=(_0xb45de9,_0x180c19)=>(_0x160622,_0x59c5e1)=>_0x180c19(_0x160622,_0x59c5e1,_0xb45de9);_0x4e0bbf[_0x103a68(0x248)]=class extends _0x460a10[_0x103a68(0xd1)]{constructor(_0x33f04d,_0x1b424e,_0x21bee8,_0x34c13f,_0x1146ce,_0x41e6e6){const _0x4a2a39=_0x103a68;super(),_0x519548(this,_0x4a2a39(0xeb),new _0x22d14a[(_0x4a2a39(0x23d))](void 0x0)),_0x519548(this,_0x4a2a39(0x468),this[_0x4a2a39(0xeb)]['asObservable']()),_0x519548(this,_0x4a2a39(0x2d1),null),_0x519548(this,_0x4a2a39(0x4d7),new Map()),_0x519548(this,_0x4a2a39(0x382),new _0x22d14a[(_0x4a2a39(0x23d))](_0x2c7c24[_0x4a2a39(0x121)])),_0x519548(this,'status$',this[_0x4a2a39(0x382)][_0x4a2a39(0x1a5)]()),_0x519548(this,'_socketReady',!0x1),_0x519548(this,'_retryConnectingTimer'),_0x519548(this,'_retryCount',0x0),_0x519548(this,_0x4a2a39(0x489)),_0x519548(this,_0x4a2a39(0x14b)),(this[_0x4a2a39(0x165)]=_0x33f04d,this[_0x4a2a39(0x136)]=_0x1b424e,this[_0x4a2a39(0x348)]=_0x21bee8,this['_logService']=_0x34c13f,this[_0x4a2a39(0x153)]=_0x1146ce,this['_socketService']=_0x41e6e6,this['_initEventListeners']());}get['_socket'](){const _0x354d45=_0x103a68;return this[_0x354d45(0xeb)][_0x354d45(0x1d7)]();}[_0x103a68(0x1f4)](){const _0x82d5c4=_0x103a68;this[_0x82d5c4(0x353)](),this[_0x82d5c4(0x295)]();}[_0x103a68(0x3fb)](){const _0xf13ba7=_0x103a68;super[_0xf13ba7(0x3fb)](),this[_0xf13ba7(0x4d7)]['forEach'](_0xa30b8b=>_0xa30b8b[_0xf13ba7(0x3fb)]()),this[_0xf13ba7(0x4d7)][_0xf13ba7(0xb1)](),this[_0xf13ba7(0x382)][_0xf13ba7(0x31e)]();}async[_0x103a68(0x43c)](_0xc44ae7){const _0x1e22b7=_0x103a68;if(this['_sessions'][_0x1e22b7(0x401)](_0xc44ae7))return this['_sessions'][_0x1e22b7(0x1c8)](_0xc44ae7);this[_0x1e22b7(0x178)]();const _0x2465ec=this[_0x1e22b7(0x165)][_0x1e22b7(0x432)](_0x4e0bbf['CollaborationSession'],_0xc44ae7,this[_0x1e22b7(0xeb)][_0x1e22b7(0x1a5)]());return this[_0x1e22b7(0x4d7)][_0x1e22b7(0x29c)](_0xc44ae7,_0x2465ec),_0x2465ec;}[_0x103a68(0x3a2)](_0x50f0bd){const _0x434e26=_0x103a68;var _0x43935d;const _0x5d777a=this[_0x434e26(0x4d7)][_0x434e26(0x1c8)](_0x50f0bd);_0x5d777a&&(this['_sessions'][_0x434e26(0xe0)](_0x50f0bd),_0x5d777a['close']()),this[_0x434e26(0x4d7)][_0x434e26(0x150)]||(_0x43935d=this['_socket'])==null||_0x43935d[_0x434e26(0x1d2)]();}[_0x103a68(0x185)](){const _0x2b8fa2=_0x103a68;this['_retryCount']=0x0,this[_0x2b8fa2(0x236)]!=null&&(clearTimeout(this[_0x2b8fa2(0x236)]),this[_0x2b8fa2(0x236)]=null),this[_0x2b8fa2(0x191)]();}[_0x103a68(0x3c1)](){const _0x3a4ad9=_0x103a68;var _0x281b02,_0x991009;const _0x526151=this[_0x3a4ad9(0x153)][_0x3a4ad9(0x20d)](_0x3ea07e),_0x447ee5=this[_0x3a4ad9(0x153)][_0x3a4ad9(0x20d)](_0x49305e),_0x3c82e2=(_0x991009=(_0x281b02=_0x447ee5==null?void 0x0:_0x447ee5[_0x3a4ad9(0x333)])!=null?_0x281b02:_0x526151)!=null?_0x991009:_0x548796,_0x1e0c52=this[_0x3a4ad9(0x460)][_0x3a4ad9(0x174)](_0x3c82e2);return this['_candidateSocket']=_0x1e0c52,_0x1e0c52;}[_0x103a68(0x178)](){const _0x1e3e8a=_0x103a68;var _0x2b2b75,_0x484fe4;try{const _0x4dfe66=(_0x484fe4=(_0x2b2b75=this[_0x1e3e8a(0x1b2)])!=null?_0x2b2b75:this['_candidateSocket'])!=null?_0x484fe4:this[_0x1e3e8a(0x3c1)]();if(_0x4dfe66){const _0x4159d8=_0x4dfe66[_0x1e3e8a(0x3ca)];_0x4dfe66[_0x1e3e8a(0x3ca)]=_0xf0a61c=>(this[_0x1e3e8a(0x334)](),_0x4159d8[_0x1e3e8a(0x4d3)](_0x4dfe66,[_0xf0a61c])),_0x4dfe66[_0x1e3e8a(0xdb)][_0x1e3e8a(0x3d1)](_0x350584=>this[_0x1e3e8a(0xd2)](_0x4dfe66,_0x350584)),_0x4dfe66['error$'][_0x1e3e8a(0x3af)](_0x436c5c[_0x1e3e8a(0x193)](0x1))[_0x1e3e8a(0x3d1)](_0x3ad35c=>this['_logService'][_0x1e3e8a(0x35e)](_0x1e3e8a(0x286),_0x3ad35c)),_0x4dfe66[_0x1e3e8a(0x2e0)]['pipe'](_0x436c5c[_0x1e3e8a(0x193)](0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x4dfe66);}),_0x4dfe66[_0x1e3e8a(0x202)][_0x1e3e8a(0x3af)](_0x436c5c[_0x1e3e8a(0x193)](0x1))[_0x1e3e8a(0x3d1)](_0x2267c7=>{const _0x5add36=_0x1e3e8a;this[_0x5add36(0x442)]['debug']('[CollaborationSessionService]',_0x5add36(0x1f0),_0x2267c7),this[_0x5add36(0x311)]();});}}catch(_0x2e72cc){this[_0x1e3e8a(0x442)][_0x1e3e8a(0x35e)](_0x2e72cc),this[_0x1e3e8a(0x311)]();}}[_0x103a68(0x12e)](_0x5a34d1){const _0x22ca31=_0x103a68;this[_0x22ca31(0x442)][_0x22ca31(0x1b4)](_0x22ca31(0x3ba),_0x22ca31(0x463)),_0x5a34d1[_0x22ca31(0x3ca)]({'cmd':_0x32a28a['HELLO']}),this[_0x22ca31(0x334)]();}[_0x103a68(0x353)](){const _0x32ef53=_0x103a68;window[_0x32ef53(0x404)]('offline',()=>this[_0x32ef53(0x324)]());}[_0x103a68(0x324)](){const _0x210f3c=_0x103a68;this['_socketReady']=!0x1,this['_candidateSocket']=null,this['_status$'][_0x210f3c(0x1bb)](_0x2c7c24['OFFLINE']),this[_0x210f3c(0xeb)]['next'](null),this[_0x210f3c(0xc9)](),this[_0x210f3c(0x482)]();}[_0x103a68(0x311)](){const _0x4d044f=_0x103a68;var _0x1f94b1;this[_0x4d044f(0x324)](),this[_0x4d044f(0xe2)]<((_0x1f94b1=this['_configService'][_0x4d044f(0x20d)](_0x2529a2))!=null?_0x1f94b1:0x3)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':_0x511ab8[_0x4d044f(0x4cd)]['Warning'],'content':this[_0x4d044f(0x136)]['t'](_0x4d044f(0x23f))}),this['_tryReconnect']()):this['_messageService'][_0x4d044f(0x410)]({'key':_0x4d044f(0x100),'type':_0x511ab8[_0x4d044f(0x4cd)]['Error'],'content':this[_0x4d044f(0x136)]['t']('session.connection-failed')});}[_0x103a68(0x295)](){const _0x1c17ef=_0x103a68,_0x219d3d=()=>{const _0x222143=_0x5cd2;this[_0x222143(0x1b2)]||this['reconnect']();},_0x354451=()=>{const _0x4de680=_0x5cd2;this[_0x4de680(0x1b2)]||document[_0x4de680(0x3a5)]==='hidden'||this[_0x4de680(0x185)]();};window[_0x1c17ef(0x404)]('online',_0x219d3d),document['addEventListener'](_0x1c17ef(0xd6),_0x354451);}[_0x103a68(0x191)](){const _0x63e992=_0x103a68;var _0x139e70;const _0x3b22eb=this['_retryCount'],_0x230971=this['_configService']['getConfig'](_0x49305e),_0x1b4af8=_0x3b22eb===0x0?0x0:((_0x139e70=_0x230971==null?void 0x0:_0x230971[_0x63e992(0x32b)])!=null?_0x139e70:0x4e20)*0x2**_0x3b22eb;this[_0x63e992(0x236)]=window['setTimeout'](()=>{const _0x105b5b=_0x63e992;clearTimeout(this[_0x105b5b(0x236)]),this['_retryConnectingTimer']=null,this[_0x105b5b(0x178)]();},_0x1b4af8),this[_0x63e992(0xe2)]+=0x1;}[_0x103a68(0xd2)](_0x2d60f6,_0x1d05ab){const _0x47b08d=_0x103a68,{cmd:_0x704378}=_0x1d05ab;_0x704378===_0x32a28a['HELLO']&&!this[_0x47b08d(0x11d)]&&(_0x2d60f6[_0x47b08d(0x144)]=_0x1d05ab[_0x47b08d(0x47f)]['memberID'],this[_0x47b08d(0xeb)][_0x47b08d(0x1bb)](_0x2d60f6),this['_status$']['next'](_0x2c7c24[_0x47b08d(0x2a6)]),this[_0x47b08d(0x11d)]=!0x0,this[_0x47b08d(0x2d1)]=null),_0x704378===_0x32a28a['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x47b08d(0x334)]();}[_0x103a68(0x334)](){const _0x32d012=_0x103a68;var _0x5d32b2;this[_0x32d012(0x482)](),this['_sendHeartbeatTimer']=window[_0x32d012(0x207)](()=>this[_0x32d012(0x383)](),(_0x5d32b2=this[_0x32d012(0x153)]['getConfig'](_0x285d6d))!=null?_0x5d32b2:0x7530);}[_0x103a68(0x383)](){const _0x5185c4=_0x103a68;this['_socket'][_0x5185c4(0x3ca)]({'cmd':_0x32a28a[_0x5185c4(0x413)]}),this['_waitForHeartbeatResponse']();}[_0x103a68(0x118)](){const _0xea17d4=_0x103a68;var _0x30bd7d;this[_0xea17d4(0x14b)]=window[_0xea17d4(0x207)](()=>this[_0xea17d4(0x311)](),(_0x30bd7d=this[_0xea17d4(0x153)][_0xea17d4(0x20d)](_0x4a32d2))!=null?_0x30bd7d:0x4e20);}['_clearHeartbeatTimer'](){const _0x522a7d=_0x103a68;this[_0x522a7d(0x489)]!=null&&(clearTimeout(this[_0x522a7d(0x489)]),this[_0x522a7d(0x489)]=null);}['_clearTimeoutTimer'](){const _0x4031b2=_0x103a68;this[_0x4031b2(0x14b)]!=null&&(clearTimeout(this[_0x4031b2(0x14b)]),this[_0x4031b2(0x14b)]=null);}},_0x4e0bbf[_0x103a68(0x248)]=_0x3e545e([_0x14b1e0(0x0,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x14b1e0(0x1,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0x14b1e0(0x2,_0x29b1e2[_0x103a68(0x43f)]),_0x14b1e0(0x3,_0x460a10['ILogService']),_0x14b1e0(0x4,_0x460a10['IConfigService']),_0x14b1e0(0x5,_0x25dd34)],_0x4e0bbf[_0x103a68(0x248)]);for(var _0x30ba0d=[],_0x488df9=0x0;_0x488df9<0x100;++_0x488df9)_0x30ba0d['push']((_0x488df9+0x100)[_0x103a68(0xdd)](0x10)[_0x103a68(0x27c)](0x1));function _0x142b18(_0x243968,_0x478e57=0x0){const _0x55e610=_0x103a68;return(_0x30ba0d[_0x243968[_0x478e57+0x0]]+_0x30ba0d[_0x243968[_0x478e57+0x1]]+_0x30ba0d[_0x243968[_0x478e57+0x2]]+_0x30ba0d[_0x243968[_0x478e57+0x3]]+'-'+_0x30ba0d[_0x243968[_0x478e57+0x4]]+_0x30ba0d[_0x243968[_0x478e57+0x5]]+'-'+_0x30ba0d[_0x243968[_0x478e57+0x6]]+_0x30ba0d[_0x243968[_0x478e57+0x7]]+'-'+_0x30ba0d[_0x243968[_0x478e57+0x8]]+_0x30ba0d[_0x243968[_0x478e57+0x9]]+'-'+_0x30ba0d[_0x243968[_0x478e57+0xa]]+_0x30ba0d[_0x243968[_0x478e57+0xb]]+_0x30ba0d[_0x243968[_0x478e57+0xc]]+_0x30ba0d[_0x243968[_0x478e57+0xd]]+_0x30ba0d[_0x243968[_0x478e57+0xe]]+_0x30ba0d[_0x243968[_0x478e57+0xf]])[_0x55e610(0x2e3)]();}var _0x3a6a5c,_0x5bdbf9=new Uint8Array(0x10);function _0x4e1d78(){const _0xf2529d=_0x103a68;if(!_0x3a6a5c&&(_0x3a6a5c=typeof crypto<'u'&&crypto[_0xf2529d(0x361)]&&crypto[_0xf2529d(0x361)][_0xf2529d(0x11b)](crypto),!_0x3a6a5c))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return _0x3a6a5c(_0x5bdbf9);}var _0x43eab5=typeof crypto<'u'&&crypto[_0x103a68(0x480)]&&crypto['randomUUID']['bind'](crypto);const _0x520535={'randomUUID':_0x43eab5};function _0x40e656(_0x24bce6,_0x27c24f,_0x50c336){const _0x19ffe9=_0x103a68;if(_0x520535[_0x19ffe9(0x480)]&&!_0x27c24f&&!_0x24bce6)return _0x520535[_0x19ffe9(0x480)]();_0x24bce6=_0x24bce6||{};var _0x4096a7=_0x24bce6['random']||(_0x24bce6[_0x19ffe9(0x48f)]||_0x4e1d78)();return _0x4096a7[0x6]=_0x4096a7[0x6]&0xf|0x40,_0x4096a7[0x8]=_0x4096a7[0x8]&0x3f|0x80,_0x142b18(_0x4096a7);}var _0x312647=Object[_0x103a68(0x3a3)],_0x42d550=Object['getOwnPropertyDescriptor'],_0x924e2e=(_0x33caca,_0x32e42b,_0x487406,_0x39583f)=>{const _0x235971=_0x103a68;for(var _0x124336=_0x39583f>0x1?void 0x0:_0x39583f?_0x42d550(_0x32e42b,_0x487406):_0x32e42b,_0x21d743=_0x33caca[_0x235971(0x292)]-0x1,_0x2a761b;_0x21d743>=0x0;_0x21d743--)(_0x2a761b=_0x33caca[_0x21d743])&&(_0x124336=(_0x39583f?_0x2a761b(_0x32e42b,_0x487406,_0x124336):_0x2a761b(_0x124336))||_0x124336);return _0x39583f&&_0x124336&&_0x312647(_0x32e42b,_0x487406,_0x124336),_0x124336;},_0x1641b1=(_0x1da14d,_0x56e771)=>(_0x50fb33,_0x4d4f2c)=>_0x56e771(_0x50fb33,_0x4d4f2c,_0x1da14d);let _0x28a6c0=class{constructor(_0x52375d,_0x290c39,_0x2f38ec){const _0x345f96=_0x103a68;this[_0x345f96(0x165)]=_0x52375d,this[_0x345f96(0xf9)]=_0x290c39,this[_0x345f96(0x24c)]=_0x2f38ec;}['transformIMECache'](_0x52f535){const _0x1bab38=_0x103a68;this[_0x1bab38(0x417)](_0x52f535),this[_0x1bab38(0x2db)](_0x52f535);}['transformRemoteChangeset'](_0x2382aa){const _0x20fa29=_0x103a68,{unitID:_0x374480}=_0x2382aa,_0x3b9ee2=this[_0x20fa29(0x24c)][_0x20fa29(0x227)](_0x374480)[_0x20fa29(0x389)](_0x39c231[_0x20fa29(0x160)]),{redoCache:_0x5be6a9}=_0x3b9ee2[_0x20fa29(0x48c)]();if(_0x5be6a9['length']===0x0)return _0x2382aa;let _0x19d53a=_0x460a10[_0x20fa29(0x1dc)]['deepClone'](_0x2382aa[_0x20fa29(0x274)][0x0]);for(let _0x3db525=0x0;_0x3db525<_0x5be6a9[_0x20fa29(0x292)];_0x3db525++){const _0x5a494e={'id':'doc.mutation.rich-text-editing','params':{..._0x5be6a9[_0x3db525]}},_0x46b828=this[_0x20fa29(0xf9)]['transformMutation'](_0x19d53a,_0x5a494e,!0x1);if(_0x162fdb[_0x20fa29(0x4ab)](_0x46b828))throw _0x46b828[_0x20fa29(0x35e)];_0x19d53a=_0x46b828[_0x20fa29(0x2a3)];}return{..._0x460a10[_0x20fa29(0x1dc)][_0x20fa29(0x2ca)](_0x2382aa),'mutations':[_0x19d53a]};}[_0x103a68(0x417)](_0x4085fe){const _0x3dda79=_0x103a68,{unitID:_0x5c0f69}=_0x4085fe,_0x3153ae=this[_0x3dda79(0x24c)]['getRenderById'](_0x5c0f69)['with'](_0x39c231['DocIMEInputManagerService']),{undoCache:_0x468b15,redoCache:_0x199e95}=_0x3153ae[_0x3dda79(0x48c)]();if(_0x468b15[_0x3dda79(0x292)]===0x0||_0x199e95['length']===0x0)return;const _0x1633db=[],_0xe01bb3=[];let _0x5c44c8=_0x460a10[_0x3dda79(0x1dc)][_0x3dda79(0x2ca)](_0x4085fe[_0x3dda79(0x274)][0x0]),_0x37d2ca=_0x460a10[_0x3dda79(0x1dc)][_0x3dda79(0x2ca)](_0x4085fe['mutations'][0x0]);for(let _0x3fda7f=_0x468b15['length']-0x1;_0x3fda7f>=0x0;_0x3fda7f--){const _0x1d330c={'id':_0x3dda79(0xb9),'params':{..._0x468b15[_0x3fda7f]}},_0x188c04={'id':_0x3dda79(0xb9),'params':{..._0x199e95[_0x3fda7f]}},_0x4319a=this[_0x3dda79(0xf9)][_0x3dda79(0x33e)](_0x5c44c8,_0x1d330c,!0x1),_0x52bd92=this[_0x3dda79(0xf9)]['transformMutation'](_0x37d2ca,_0x188c04,!0x1);if(_0x162fdb[_0x3dda79(0x4ab)](_0x4319a))throw _0x4319a['error'];if(_0x162fdb[_0x3dda79(0x4ab)](_0x52bd92))throw _0x52bd92[_0x3dda79(0x35e)];_0x1633db[_0x3dda79(0x3c2)](_0x4319a[_0x3dda79(0xf6)][_0x3dda79(0x31c)]),_0xe01bb3[_0x3dda79(0x3c2)](_0x52bd92[_0x3dda79(0xf6)][_0x3dda79(0x31c)]),_0x5c44c8=_0x4319a[_0x3dda79(0x2a3)],_0x37d2ca=_0x52bd92['m1Prime'];}_0x3153ae['setUndoRedoMutationParamsCache']({'undoCache':_0x1633db,'redoCache':_0xe01bb3});}[_0x103a68(0x2db)](_0x595043){const _0x235720=_0x103a68,{unitID:_0x29f47e}=_0x595043,_0x1c7944=this[_0x235720(0x24c)][_0x235720(0x227)](_0x29f47e)['with'](_0x39c231[_0x235720(0x160)]),_0x33c479=_0x1c7944[_0x235720(0x158)]();if(_0x33c479==null)return;const _0x7f6d81=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x595043[_0x235720(0x19c)],'actions':null,'textRanges':[_0x33c479]}}],_0x3cf792=this[_0x235720(0xf9)]['transformMutationsWithChangeset'](_0x595043,_0x7f6d81);if(!_0x162fdb[_0x235720(0x10f)](_0x3cf792))throw _0x3cf792['error'];const _0x3ab418=_0x3cf792[_0x235720(0xf6)][0x0][_0x235720(0x31c)][_0x235720(0xec)];Array[_0x235720(0x328)](_0x3ab418)&&_0x3ab418[_0x235720(0x292)]&&_0x1c7944[_0x235720(0x2f5)](_0x3ab418[0x0]);}};_0x28a6c0=_0x924e2e([_0x1641b1(0x0,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x1641b1(0x1,_0x162fdb[_0x103a68(0x219)]),_0x1641b1(0x2,_0x5633aa['IRenderManagerService'])],_0x28a6c0);var _0x6093ff=Object['defineProperty'],_0x2398e0=Object[_0x103a68(0x138)],_0x15938c=(_0x5e9bc3,_0x32a8e5,_0x18984c,_0x24ecf7)=>{const _0x55cb0b=_0x103a68;for(var _0x3069dd=_0x24ecf7>0x1?void 0x0:_0x24ecf7?_0x2398e0(_0x32a8e5,_0x18984c):_0x32a8e5,_0x6e9574=_0x5e9bc3[_0x55cb0b(0x292)]-0x1,_0x586de8;_0x6e9574>=0x0;_0x6e9574--)(_0x586de8=_0x5e9bc3[_0x6e9574])&&(_0x3069dd=(_0x24ecf7?_0x586de8(_0x32a8e5,_0x18984c,_0x3069dd):_0x586de8(_0x3069dd))||_0x3069dd);return _0x24ecf7&&_0x3069dd&&_0x6093ff(_0x32a8e5,_0x18984c,_0x3069dd),_0x3069dd;},_0xfeae21=(_0x557dde,_0x3d4e3b)=>(_0x180cb9,_0x21c47c)=>_0x3d4e3b(_0x180cb9,_0x21c47c,_0x557dde);_0x4e0bbf[_0x103a68(0x2b4)]=class extends _0x460a10[_0x103a68(0xd1)]{constructor(_0x5ed6ea,_0x3296f5,_0x56f02d,_0x11602b,_0x11e514){const _0x56667f=_0x103a68;super(),_0x519548(this,_0x56667f(0x25d),new Map()),_0x519548(this,'_saveTaskMap',new Map()),_0x519548(this,_0x56667f(0x114),!0x1),(this['_configService']=_0x5ed6ea,this[_0x56667f(0xea)]=_0x3296f5,this[_0x56667f(0xe5)]=_0x56f02d,this['_localeService']=_0x11602b,this['_revisionService']=_0x11e514,this[_0x56667f(0x326)]());}[_0x103a68(0xbb)](){const _0x9afc39=_0x103a68;this[_0x9afc39(0x114)]=!0x0;}['enableLocalCache'](){const _0x55168a=_0x103a68;this[_0x55168a(0x114)]=!0x1;}['dispose'](){const _0x350c54=_0x103a68;this[_0x350c54(0x444)]()[_0x350c54(0x25b)](()=>super[_0x350c54(0x3fb)]());}async['loadOfflineData'](_0xd68d1a){const _0x3703c9=_0x103a68;return this[_0x3703c9(0x114)]?null:this[_0x3703c9(0xea)][_0x3703c9(0x448)](_0x275a0b(_0xd68d1a));}async[_0x103a68(0xc4)](_0x223900,_0x4dfbf2){const _0x48ad0c=_0x103a68;return!!this[_0x48ad0c(0xea)]['setItem'](_0x223900,_0x4dfbf2);}['updateOfflineData'](_0x16c2c7,_0x79fd27,_0x247fc3,_0x3fd23e){const _0xfc64c1=_0x103a68,_0xaf0e8=this[_0xfc64c1(0x2ce)][_0xfc64c1(0x470)](_0x16c2c7);this[_0xfc64c1(0x25d)][_0xfc64c1(0x29c)](_0x16c2c7,{'unitID':_0x16c2c7,'type':_0x79fd27,'awaitingChangeset':_0x247fc3,'mutations':_0x3fd23e,'rev':_0xaf0e8}),this[_0xfc64c1(0x2e4)][_0xfc64c1(0x401)](_0x16c2c7)||this[_0xfc64c1(0xee)](_0x16c2c7);}['_scheduleSaving'](_0x1641ad){const _0x8be7e7=_0x103a68,_0x1f690e=this['_getSaveTimeout']();_0x1f690e===0x0?this[_0x8be7e7(0x46f)](_0x1641ad):this['_saveTaskMap'][_0x8be7e7(0x29c)](_0x1641ad,setTimeout(()=>this[_0x8be7e7(0x46f)](_0x1641ad),_0x1f690e));}[_0x103a68(0x48b)](){const _0x21d8ef=_0x103a68;var _0x5c12c6;return(_0x5c12c6=this['_configService'][_0x21d8ef(0x20d)](_0x28c4b8))!=null?_0x5c12c6:0x3e8;}['_saveCache'](_0x18cef2){const _0x1f3c63=_0x103a68,_0x2abb25=this[_0x1f3c63(0x2e4)][_0x1f3c63(0x1c8)](_0x18cef2);return _0x2abb25!==void 0x0&&window[_0x1f3c63(0x340)](_0x2abb25),this[_0x1f3c63(0xea)][_0x1f3c63(0x3be)](_0x275a0b(_0x18cef2),this[_0x1f3c63(0x25d)]['get'](_0x18cef2))[_0x1f3c63(0x25b)](()=>this['_saveTaskMap'][_0x1f3c63(0xe0)](_0x18cef2));}async[_0x103a68(0x444)](){const _0x3fbb93=_0x103a68,_0x3e6878=[];this[_0x3fbb93(0x2e4)]['forEach']((_0x3daa0b,_0x58a380)=>{const _0xa8c1a0=_0x3fbb93;window[_0xa8c1a0(0x340)](_0x3daa0b),_0x3e6878['push'](this[_0xa8c1a0(0x46f)](_0x58a380)[_0xa8c1a0(0x25b)](()=>{const _0x431f1b=_0xa8c1a0;this['_saveTaskMap'][_0x431f1b(0xe0)](_0x58a380);}));}),await Promise['all'](_0x3e6878);}[_0x103a68(0x326)](){const _0x50f090=_0x103a68;this[_0x50f090(0x495)](this['_beforeCloseService'][_0x50f090(0x2c0)](()=>{const _0x3f3536=_0x50f090;if(this['_saveTaskMap'][_0x3f3536(0x150)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x4e0bbf['LocalCacheService']=_0x15938c([_0xfeae21(0x0,_0x460a10[_0x103a68(0x3e3)]),_0xfeae21(0x1,_0x460a10[_0x103a68(0x172)]),_0xfeae21(0x2,_0x29b1e2[_0x103a68(0x1a1)]),_0xfeae21(0x3,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0xfeae21(0x4,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)]))],_0x4e0bbf[_0x103a68(0x2b4)]);function _0x275a0b(_0x3a1e22){return'unit-cache-'+_0x3a1e22;}var _0xa8ab97=Object[_0x103a68(0x3a3)],_0x34b1a0=Object[_0x103a68(0x138)],_0x51a08d=(_0xf53225,_0x49ac62,_0x3498a3,_0x556885)=>{const _0xfc1445=_0x103a68;for(var _0x242830=_0x556885>0x1?void 0x0:_0x556885?_0x34b1a0(_0x49ac62,_0x3498a3):_0x49ac62,_0x633471=_0xf53225[_0xfc1445(0x292)]-0x1,_0x833f1a;_0x633471>=0x0;_0x633471--)(_0x833f1a=_0xf53225[_0x633471])&&(_0x242830=(_0x556885?_0x833f1a(_0x49ac62,_0x3498a3,_0x242830):_0x833f1a(_0x242830))||_0x242830);return _0x556885&&_0x242830&&_0xa8ab97(_0x49ac62,_0x3498a3,_0x242830),_0x242830;},_0x3f7a6a=(_0x35e6f5,_0x13e003)=>(_0x543cbb,_0x1bb710)=>_0x13e003(_0x543cbb,_0x1bb710,_0x35e6f5);function _0x1f531f(_0x2c9940){const _0x18900e=_0x103a68,{unitID:_0x21df17,mutations:_0x30c277}=_0x2c9940;return{'unitId':_0x21df17,'subUnitId':_0x30c277[0x0][_0x18900e(0x31c)][_0x18900e(0x25a)]};}let _0x1769cb=class{constructor(_0x40ce2a,_0x31aa82,_0xefda44){const _0x50e159=_0x103a68;this['_injector']=_0x40ce2a,this[_0x50e159(0xf9)]=_0x31aa82,this[_0x50e159(0x38b)]=_0xefda44;}[_0x103a68(0x459)](_0x1e7451){const _0x299b17=_0x103a68;var _0x3d55a3,_0x5be0e4,_0x47ed4a,_0x4295e8;const _0x3039ac=this[_0x299b17(0x165)][_0x299b17(0x1c8)](_0x57c232[_0x299b17(0x268)]),{unitId:_0x4463f0,subUnitId:_0x5ea65a}=_0x1f531f(_0x1e7451),_0x12d728=_0x3039ac['getWorkbookSelections'](_0x4463f0)[_0x299b17(0x402)](),_0x19a56e=(_0x5be0e4=(_0x3d55a3=this[_0x299b17(0x38b)]['getUnit'](_0x4463f0))==null?void 0x0:_0x3d55a3[_0x299b17(0x3f7)]())==null?void 0x0:_0x5be0e4['getSheetId']();if(_0x12d728[_0x299b17(0x292)]===0x0||!_0x4463f0||!_0x5ea65a)return;const _0x2ec43b=[{'id':_0x57c232[_0x299b17(0x3ec)]['id'],'params':{'unitId':_0x4463f0,'subUnitId':_0x19a56e,'selections':_0x460a10[_0x299b17(0x1dc)][_0x299b17(0x2ca)](_0x12d728)}}],_0x3109c8=this[_0x299b17(0xf9)][_0x299b17(0x427)](_0x1e7451,_0x2ec43b);if(!_0x162fdb[_0x299b17(0x10f)](_0x3109c8))throw _0x3109c8['error'];const _0x32eaaf=(_0x4295e8=(_0x47ed4a=_0x3109c8[_0x299b17(0xf6)][0x0])==null?void 0x0:_0x47ed4a[_0x299b17(0x31c)])==null?void 0x0:_0x4295e8[_0x299b17(0x40c)];if(Array[_0x299b17(0x328)](_0x32eaaf)&&_0x32eaaf[_0x299b17(0x292)]){if(_0x32eaaf[_0x299b17(0x292)]===_0x2ec43b[0x0]['params'][_0x299b17(0x40c)][_0x299b17(0x292)]&&_0x32eaaf[_0x299b17(0x3ff)]((_0xc9e154,_0x315343)=>_0x460a10['Rectangle'][_0x299b17(0x2f0)](_0xc9e154[_0x299b17(0x222)],_0x2ec43b[0x0][_0x299b17(0x31c)][_0x299b17(0x40c)][_0x315343][_0x299b17(0x222)])))return;this[_0x299b17(0x165)][_0x299b17(0x1c8)](_0x460a10[_0x299b17(0x134)])['executeCommand'](_0x57c232[_0x299b17(0x3ec)]['id'],{'unitId':_0x4463f0,'subUnitId':_0x19a56e,'selections':_0x32eaaf});}}};_0x1769cb=_0x51a08d([_0x3f7a6a(0x0,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x3f7a6a(0x1,_0x162fdb[_0x103a68(0x219)]),_0x3f7a6a(0x2,_0x460a10[_0x103a68(0x347)])],_0x1769cb);const _0x2ad0c7=_0x460a10[_0x103a68(0x36f)]('univer-pro.collaboration-client.single-active-unit-service');var _0x3bcbdc=(_0x50e100=>(_0x50e100[_0x50e100[_0x103a68(0x43d)]=0x0]=_0x103a68(0x43d),_0x50e100[_0x50e100[_0x103a68(0xf1)]=0x1]=_0x103a68(0xf1),_0x50e100))(_0x3bcbdc||{});const _0x53cbd3=0x7530,_0xc99441=_0x103a68(0x2af);class _0x49780e extends _0x460a10[_0x103a68(0xd1)]{constructor(){const _0x582ac1=_0x103a68;super(),_0x519548(this,_0x582ac1(0x391),_0x460a10[_0x582ac1(0x1dc)][_0x582ac1(0x212)]()),_0x519548(this,_0x582ac1(0x41d),new Set()),_0x519548(this,_0x582ac1(0x3d8),new Map()),_0x519548(this,_0x582ac1(0x1be),null),_0x519548(this,_0x582ac1(0x237),new Map()),_0x519548(this,_0x582ac1(0x4a5),new Map()),this[_0x582ac1(0x194)]();}[_0x103a68(0x3fb)](){const _0xd4997f=_0x103a68;super[_0xd4997f(0x3fb)](),this[_0xd4997f(0x237)]['forEach']((_0x45eb49,_0x1f1223)=>this[_0xd4997f(0x171)](_0x1f1223)),this[_0xd4997f(0x1be)]&&window['clearInterval'](this[_0xd4997f(0x1be)]);}[_0x103a68(0x288)](_0x58b939){const _0x206836=_0x103a68;return this[_0x206836(0x1b7)](_0x58b939)[_0x206836(0x3af)](_0x22d14a[_0x206836(0x15f)]());}[_0x103a68(0x14d)](_0x311cf9){const _0x47a904=_0x103a68;this[_0x47a904(0x41d)][_0x47a904(0x150)]===0x0&&this[_0x47a904(0x228)](),this[_0x47a904(0x41d)][_0x47a904(0x3cd)](_0x311cf9),this[_0x47a904(0x47b)]({'type':0x0,'memberID':this[_0x47a904(0x391)],'unitIDs':[_0x311cf9],'isForwarded':!0x1});}[_0x103a68(0x2aa)](_0x35e129){const _0x3755a7=_0x103a68;this[_0x3755a7(0x41d)][_0x3755a7(0xe0)](_0x35e129),this[_0x3755a7(0x41d)][_0x3755a7(0x150)]===0x0&&this['_heartbeatTimer']&&window[_0x3755a7(0x398)](this['_heartbeatTimer']);}[_0x103a68(0x194)](){const _0x2046e3=_0x103a68;this[_0x2046e3(0x495)](_0x460a10['toDisposable'](_0x22d14a['fromEvent'](window,_0x2046e3(0x1a4))[_0x2046e3(0x3d1)](_0x5a6f6f=>{const _0x2c1fd4=_0x2046e3;if(_0x5a6f6f[_0x2c1fd4(0x4dd)]!==_0xc99441||!_0x5a6f6f[_0x2c1fd4(0x475)])return;const _0x3ca4d8=JSON['parse'](_0x5a6f6f['newValue']);this[_0x2c1fd4(0x2e7)](_0x3ca4d8);}))),window[_0x2046e3(0x404)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x2046e3(0x41d)])}));}[_0x103a68(0x2e7)](_0x2c5487){const _0x5cd287=_0x103a68;switch(_0x2c5487['type']){case 0x0:this['_handleJoinEvent'](_0x2c5487);break;case 0x1:this[_0x5cd287(0x4d6)](_0x2c5487);break;case 0x2:this[_0x5cd287(0x341)](_0x2c5487);break;}}['_handleJoinEvent'](_0x1e0de6){const _0x3fe1e0=_0x103a68,{unitIDs:_0x47b9a8,memberID:_0x33e13b,isForwarded:_0x1d0d17}=_0x1e0de6;_0x47b9a8[_0x3fe1e0(0x196)](_0x2de09d=>{const _0x4730e4=_0x3fe1e0;if(!_0x1d0d17&&this['_unitOnClients'][_0x4730e4(0x401)](_0x2de09d)&&this[_0x4730e4(0x1b7)](_0x2de09d)[_0x4730e4(0x1bb)](0x1),!this[_0x4730e4(0x3d8)][_0x4730e4(0x401)](_0x2de09d)||!this[_0x4730e4(0x3d8)][_0x4730e4(0x1c8)](_0x2de09d)[_0x4730e4(0x401)](_0x33e13b)){const _0x175e14=this[_0x4730e4(0x3d8)][_0x4730e4(0x1c8)](_0x2de09d)||new Set();_0x175e14[_0x4730e4(0x3cd)](_0x33e13b),this['_unitOnClients'][_0x4730e4(0x29c)](_0x2de09d,_0x175e14),this['_scheduleClearOtherTimer'](_0x33e13b);}}),_0x1d0d17||this[_0x3fe1e0(0x47b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3fe1e0(0x41d)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1f9f53){const _0x167caf=_0x103a68;this[_0x167caf(0x171)](_0x1f9f53);const _0x5a57d6=window[_0x167caf(0x207)](()=>{const _0xd16ce9=_0x167caf;this[_0xd16ce9(0x3d8)][_0xd16ce9(0x196)](_0x169498=>{const _0x4a3202=_0xd16ce9;_0x169498[_0x4a3202(0xe0)](_0x1f9f53);});},_0x53cbd3*0x2);this[_0x167caf(0x237)][_0x167caf(0x29c)](_0x1f9f53,_0x5a57d6);}[_0x103a68(0x171)](_0x126283){const _0x3353aa=_0x103a68;if(this[_0x3353aa(0x237)]['has'](_0x126283)){const _0x54085a=this['_clearOtherTimers'][_0x3353aa(0x1c8)](_0x126283);_0x54085a&&window['clearTimeout'](_0x54085a),this[_0x3353aa(0x237)][_0x3353aa(0x29c)](_0x126283,null);}}['_handleLeaveEvent'](_0x15356f){const _0x1f8b50=_0x103a68,{memberID:_0x3ec96a,unitIDs:_0x448056}=_0x15356f;_0x448056[_0x1f8b50(0x196)](_0x510581=>{const _0x400c3a=_0x1f8b50;var _0x3beeca;const _0xe8917=this['_unitOnClients'][_0x400c3a(0x1c8)](_0x510581);_0xe8917&&(_0xe8917[_0x400c3a(0xe0)](_0x3ec96a),(_0x3beeca=this[_0x400c3a(0x1b7)](_0x510581))==null||_0x3beeca['next'](_0xe8917['size']===0x0?0x0:0x1));}),this[_0x1f8b50(0x171)](_0x3ec96a);}['_handleHeartbeatEvent'](_0x549ed4){const _0xf49139=_0x103a68;this[_0xf49139(0xe6)](_0x549ed4['memberID']);}[_0x103a68(0x47b)](_0xce3bd0){const _0x30c52d=_0x103a68;localStorage[_0x30c52d(0x3be)](_0xc99441,JSON[_0x30c52d(0x263)](_0xce3bd0));}['_scheduleHeartbeat'](){const _0x161273=_0x103a68;this['_heartbeatTimer']=window[_0x161273(0x394)](()=>{const _0x32b245=_0x161273;this['_send']({'type':0x2,'memberID':this[_0x32b245(0x391)]});},_0x53cbd3);}['_ensureSubject'](_0x96b9fe){const _0x381790=_0x103a68;return this[_0x381790(0x4a5)]['has'](_0x96b9fe)||this[_0x381790(0x4a5)]['set'](_0x96b9fe,new _0x22d14a[(_0x381790(0x23d))](0x0)),this['_unitStatus'][_0x381790(0x1c8)](_0x96b9fe);}}function _0x5d2166(_0x5de722){const _0x3680e3=_0x103a68;let _0x18e0b3='';for(const _0x3522b7 of _0x5de722){const {startOffset:_0x27b746,endOffset:_0x1d91c7,isActive:_0x4cbef9}=_0x3522b7;_0x18e0b3[_0x3680e3(0x292)]&&(_0x18e0b3+=','),_0x18e0b3+=_0x27b746+':'+_0x1d91c7+':'+(_0x4cbef9?'1':'0');}return _0x18e0b3;}function _0x380b63(_0x4fc737){const _0x496925=_0x103a68,_0x3f2fd1=_0x4fc737[_0x496925(0xc7)](','),_0x3d9e37=[];for(const _0x5bd8f3 of _0x3f2fd1){const [_0x52097a,_0x21be9a,_0x4c0752]=_0x5bd8f3[_0x496925(0xc7)](':');_0x3d9e37[_0x496925(0x420)]({'startOffset':Number(_0x52097a),'endOffset':Number(_0x21be9a),'collapsed':_0x52097a===_0x21be9a,'isActive':_0x4c0752==='1'});}return _0x3d9e37['some'](_0x4be01c=>_0x4be01c[_0x496925(0x461)])||(_0x3d9e37[0x0]['isActive']=!0x0),_0x3d9e37;}class _0x2bf6d4 extends _0x460a10[_0x103a68(0x16c)]{constructor(){const _0x5903eb=_0x103a68;super(...arguments),_0x519548(this,_0x5903eb(0x4a0),new _0x22d14a['BehaviorSubject'](null)),_0x519548(this,_0x5903eb(0x17b),this[_0x5903eb(0x4a0)]['asObservable']());}[_0x103a68(0x437)](_0x1e29be){const _0x735ffb=_0x103a68,{unitID:_0x232aaf,memberID:_0x47eebc,textRanges:_0x35016a}=_0x1e29be,_0x56ba00=_0x5d2166(_0x35016a),_0x32d3af={'unitID':_0x232aaf,'memberID':_0x47eebc,'selection':_0x56ba00};this[_0x735ffb(0x4a0)][_0x735ffb(0x1bb)](_0x32d3af);}}var _0x4e695d=Object[_0x103a68(0x3a3)],_0x54b198=Object[_0x103a68(0x138)],_0xa63f4a=(_0x53c946,_0x1a7b2f,_0x13cf64,_0x1c5abb)=>{for(var _0x33121f=_0x1c5abb>0x1?void 0x0:_0x1c5abb?_0x54b198(_0x1a7b2f,_0x13cf64):_0x1a7b2f,_0x5433d9=_0x53c946['length']-0x1,_0x82c16f;_0x5433d9>=0x0;_0x5433d9--)(_0x82c16f=_0x53c946[_0x5433d9])&&(_0x33121f=(_0x1c5abb?_0x82c16f(_0x1a7b2f,_0x13cf64,_0x33121f):_0x82c16f(_0x33121f))||_0x33121f);return _0x1c5abb&&_0x33121f&&_0x4e695d(_0x1a7b2f,_0x13cf64,_0x33121f),_0x33121f;},_0x56cde7=(_0x3d61b9,_0x277846)=>(_0x9c8ce9,_0x24858f)=>_0x277846(_0x9c8ce9,_0x24858f,_0x3d61b9);let _0x85795=class{constructor(_0xfae752,_0x1eb98c){this['_injector']=_0xfae752,this['_transformService']=_0x1eb98c;}['transformSelections'](_0x28969b){const _0x2b5a29=_0x103a68;var _0x480583;const _0x5326cb=this[_0x2b5a29(0x165)][_0x2b5a29(0x1c8)](_0x447cee[_0x2b5a29(0x492)]),_0x34d200=(_0x480583=_0x5326cb[_0x2b5a29(0x407)]())!=null?_0x480583:[];if(_0x34d200[_0x2b5a29(0x292)]===0x0)return;const _0x54491b=[{'id':_0x2b5a29(0xb9),'params':{'unitId':_0x28969b[_0x2b5a29(0x19c)],'actions':null,'textRanges':_0x34d200}}],_0x3580cc=this[_0x2b5a29(0xf9)][_0x2b5a29(0x427)](_0x28969b,_0x54491b);if(!_0x162fdb[_0x2b5a29(0x10f)](_0x3580cc))throw _0x3580cc[_0x2b5a29(0x35e)];const _0x5ad76e=_0x3580cc[_0x2b5a29(0xf6)][0x0][_0x2b5a29(0x31c)][_0x2b5a29(0xec)];Array[_0x2b5a29(0x328)](_0x5ad76e)&&_0x5ad76e['length']&&_0x5326cb[_0x2b5a29(0x260)](_0x5ad76e,!0x1);}};_0x85795=_0xa63f4a([_0x56cde7(0x0,_0x460a10['Inject'](_0x460a10[_0x103a68(0x15b)])),_0x56cde7(0x1,_0x162fdb[_0x103a68(0x219)])],_0x85795);const _0x340afc=new Set([_0x57c232[_0x103a68(0x45d)]['id']]);function _0x3423a3(_0x2a49f5,_0x2ab2d2,_0x22cf5c,_0x5b6ee0,_0x42e90d){const _0x394ee3=_0x103a68;var _0x3e73f9,_0x4ca181,_0x4a9a10,_0x500e41;const _0x1dcb73=[];for(const _0x40ce93 of _0x2a49f5)if(_0x340afc[_0x394ee3(0x401)](_0x40ce93['id'])){if(_0x1dcb73['length']>0x0)break;_0x1dcb73[_0x394ee3(0x420)](_0x40ce93);break;}else _0x1dcb73[_0x394ee3(0x420)](_0x40ce93);const _0xc0536=(_0x4ca181=(_0x3e73f9=_0x42e90d[_0x394ee3(0x31d)]())==null?void 0x0:_0x3e73f9[_0x394ee3(0x2de)])!=null?_0x4ca181:'unknown',_0x223d97=(_0x500e41=(_0x4a9a10=_0x42e90d[_0x394ee3(0x31d)]())==null?void 0x0:_0x4a9a10[_0x394ee3(0x144)])!=null?_0x500e41:_0x394ee3(0x187);return{'changeset':{'unitID':_0x2ab2d2,'type':_0x162fdb['mapDocumentTypeToUniverType'](_0x22cf5c['getUnitType'](_0x2ab2d2)),'baseRev':_0x5b6ee0[_0x394ee3(0x470)](_0x2ab2d2),'revision':0x0,'userID':_0xc0536,'memberID':_0x223d97,'mutations':_0x1dcb73},'pendingMutations':_0x2a49f5[_0x394ee3(0x27c)](_0x1dcb73[_0x394ee3(0x292)])};}function _0x442c69(_0x441268,_0xc07061,_0x195b12,_0x43384e,_0x35512c){const _0x469839=_0x103a68;var _0x4b142d,_0x53c2e8,_0x45a9bf,_0x5a1962;const _0x2a72c3=[_0x441268['reduce']((_0x4a3297,_0x119269)=>{const _0x13d31a=_0x5cd2;var _0x455d03;const {id:_0x170bb1}=_0x4a3297,{id:_0x15ece3,type:_0x3f4ed4}=_0x119269,_0x5b78f1=(_0x455d03=_0x4a3297[_0x13d31a(0x31c)])!=null?_0x455d03:{'actions':null},_0x10fe80=_0x119269[_0x13d31a(0x31c)];if(_0x170bb1&&_0x170bb1!==_0x15ece3)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x170bb1+'\x20-\x20'+_0x15ece3+'.');return{..._0x4a3297,'id':_0x15ece3,'type':_0x3f4ed4,'params':{'unitId':_0x10fe80[_0x13d31a(0x3b0)],'textRanges':_0x10fe80['textRanges'],'actions':_0x460a10[_0x13d31a(0x32d)][_0x13d31a(0x265)](_0x5b78f1[_0x13d31a(0x4da)],_0x10fe80[_0x13d31a(0x4da)])}};},{})],_0x3b0927=(_0x53c2e8=(_0x4b142d=_0x35512c[_0x469839(0x31d)]())==null?void 0x0:_0x4b142d['userID'])!=null?_0x53c2e8:_0x469839(0x187),_0x47acdb=(_0x5a1962=(_0x45a9bf=_0x35512c[_0x469839(0x31d)]())==null?void 0x0:_0x45a9bf[_0x469839(0x144)])!=null?_0x5a1962:_0x469839(0x187);return{'changeset':{'unitID':_0xc07061,'type':_0x162fdb[_0x469839(0x321)](_0x195b12[_0x469839(0x378)](_0xc07061)),'baseRev':_0x43384e[_0x469839(0x470)](_0xc07061),'revision':0x0,'userID':_0x3b0927,'memberID':_0x47acdb,'mutations':_0x2a72c3},'pendingMutations':[]};}function _0x3da111(_0x1c5622,_0x1b9c0f){const _0x17987b=_0x103a68,_0x37f3cd=new _0x22d14a[(_0x17987b(0x229))](0x1);return setTimeout(()=>_0x37f3cd['next'](_0x1b9c0f),_0x1c5622),_0x37f3cd[_0x17987b(0x1a5)]()[_0x17987b(0x3af)](_0x22d14a['take'](0x1));}const _0x5e05d4={'id':_0x57c232[_0x103a68(0x457)]['id'],'type':_0x460a10[_0x103a68(0x3f6)][_0x103a68(0x243)],'params':{}};var _0x25420c=Object[_0x103a68(0x3a3)],_0x2cc047=Object[_0x103a68(0x138)],_0x2f2894=(_0x187349,_0xfd824,_0x502a9b,_0x2839ac)=>{const _0x41dc0e=_0x103a68;for(var _0x1e79fc=_0x2839ac>0x1?void 0x0:_0x2839ac?_0x2cc047(_0xfd824,_0x502a9b):_0xfd824,_0x48d6af=_0x187349[_0x41dc0e(0x292)]-0x1,_0x597fed;_0x48d6af>=0x0;_0x48d6af--)(_0x597fed=_0x187349[_0x48d6af])&&(_0x1e79fc=(_0x2839ac?_0x597fed(_0xfd824,_0x502a9b,_0x1e79fc):_0x597fed(_0x1e79fc))||_0x1e79fc);return _0x2839ac&&_0x1e79fc&&_0x25420c(_0xfd824,_0x502a9b,_0x1e79fc),_0x1e79fc;},_0x56ee39=(_0x40c48e,_0x3a4778)=>(_0x51714c,_0x56571c)=>_0x3a4778(_0x51714c,_0x56571c,_0x40c48e),_0x4b41c3=(_0x103721=>(_0x103721[_0x103a68(0x1df)]=_0x103a68(0x2cb),_0x103721[_0x103a68(0x31a)]=_0x103a68(0x102),_0x103721[_0x103a68(0x2a9)]=_0x103a68(0x3f2),_0x103721['AWAITING']='awaiting',_0x103721[_0x103a68(0x3b2)]=_0x103a68(0x206),_0x103721['FETCH_MISS']='fetch_missing',_0x103721['CONFLICT']=_0x103a68(0x343),_0x103721['OFFLINE']=_0x103a68(0x44f),_0x103721))(_0x4b41c3||{});const _0x3d67d3=0xea60;class _0x410e3e{constructor(_0x422241,_0x106ad2,_0x3c2e19,_0x45b3d7,_0x1ffa9e,_0x11e8db,_0x850134,_0x45699b,_0x18fe44){const _0x2789b9=_0x103a68;_0x519548(this,_0x2789b9(0x13b),null),_0x519548(this,_0x2789b9(0x3e8),[]),(this['unitID']=_0x422241,this['type']=_0x106ad2,this['_handler']=_0x1ffa9e,this[_0x2789b9(0x44e)]=_0x11e8db,this['_undoRedoService']=_0x850134,this[_0x2789b9(0x2ce)]=_0x45699b,this['_localCacheService']=_0x18fe44,this[_0x2789b9(0x13b)]=_0x3c2e19,this[_0x2789b9(0x3e8)]=_0x45b3d7);}[_0x103a68(0x108)](_0x36f1f6){const _0x5949a=_0x103a68,_0xf90a0e=this[_0x5949a(0x2ce)][_0x5949a(0x470)](this[_0x5949a(0x19c)]);return _0x36f1f6[_0x5949a(0x21e)]>_0xf90a0e+0x1?(this[_0x5949a(0x423)][_0x5949a(0x490)]({'from':_0xf90a0e,'to':_0x36f1f6[_0x5949a(0x21e)]-0x1}),!0x0):!0x1;}[_0x103a68(0x38d)](_0x4c9ce2){const _0x6a0757=_0x103a68;this['_undoRedoService'][_0x6a0757(0x4e1)](this['unitID'],_0x4c9ce2);}[_0x103a68(0x2c2)](_0x6a424c){const _0x130b55=_0x103a68;var _0x53d79e,_0x2c5d0f;(_0x2c5d0f=(_0x53d79e=this[_0x130b55(0x423)])[_0x130b55(0x17a)])==null||_0x2c5d0f[_0x130b55(0x13e)](_0x53d79e,_0x6a424c);}[_0x103a68(0x308)](_0x71556e){const _0x3872eb=_0x103a68;var _0x154988,_0x24dfd3;return(_0x24dfd3=(_0x154988=this['_handler'])['onTransformIME'])==null?void 0x0:_0x24dfd3[_0x3872eb(0x13e)](_0x154988,_0x71556e);}['_transformRemoteChangesetByIMECache'](_0x88742a){const _0x5b0ece=_0x103a68;var _0x46ca64,_0x1515c9,_0x5a7c01;return(_0x5a7c01=(_0x1515c9=(_0x46ca64=this['_handler'])[_0x5b0ece(0x3da)])==null?void 0x0:_0x1515c9['call'](_0x46ca64,_0x88742a))!=null?_0x5a7c01:_0x88742a;}[_0x103a68(0x293)](_0x18afc7){const _0x17b3d4=_0x103a68;var _0x2c95d8,_0x27bc40;if(this[_0x17b3d4(0x483)]===_0x3907d0[_0x17b3d4(0x208)]){const {unitID:_0x40fbd5,mutations:_0xbe4912,memberID:_0x877af9}=_0x18afc7,_0x5bc936=_0xbe4912[0x0][_0x17b3d4(0x31c)][_0x17b3d4(0xec)];Array[_0x17b3d4(0x328)](_0x5bc936)&&_0x5bc936[_0x17b3d4(0x292)]>0x0&&((_0x27bc40=(_0x2c95d8=this[_0x17b3d4(0x423)])[_0x17b3d4(0x388)])==null||_0x27bc40[_0x17b3d4(0x13e)](_0x2c95d8,{'unitID':_0x40fbd5,'memberID':_0x877af9,'textRanges':_0x5bc936}));}}[_0x103a68(0x25c)](){const _0x32985f=_0x103a68;this['_localCacheService'][_0x32985f(0x3f0)](this[_0x32985f(0x19c)],this[_0x32985f(0x483)],this['_awaitingChangeset'],this[_0x32985f(0x3e8)]);}[_0x103a68(0x3e6)](){const _0x598d6f=_0x103a68;return this[_0x598d6f(0x2ce)]['getCurrentRevOfUnit'](this[_0x598d6f(0x19c)]);}['_incrementRevisionNumber'](){const _0x4619af=_0x103a68;this[_0x4619af(0x2ce)]['incrementRevOfUnit'](this[_0x4619af(0x19c)]);}[_0x103a68(0x498)](_0x1e0829){const _0x38717c=_0x103a68;var _0x54a4bb;const _0x31c029=this[_0x38717c(0x1f2)](_0x1e0829),_0x755032=_0x460a10[_0x38717c(0x4b4)](_0x31c029[_0x38717c(0x274)],this[_0x38717c(0x44e)],{'fromCollab':!0x0});if(!_0x755032[_0x38717c(0x3a4)])throw _0x755032[_0x38717c(0x35e)]instanceof Error?_0x755032[_0x38717c(0x35e)]:new Error((_0x54a4bb=_0x755032[_0x38717c(0x35e)])!=null?_0x54a4bb:_0x38717c(0xe1));this[_0x38717c(0x308)](_0x31c029),this[_0x38717c(0x38d)](_0x1e0829),this['_transformSelections'](_0x31c029),this[_0x38717c(0x293)](_0x31c029),this[_0x38717c(0x440)]();}}let _0xf7bbd9=class extends _0x410e3e{constructor(_0x17a8c,_0x29a19f,_0x2a291,_0x442e18,_0x42a09b,_0x5387bc,_0x3e4d7b,_0x306f5a,_0x1fa26d,_0x456f9b){const _0x15d66b=_0x103a68;super(_0x17a8c,_0x29a19f,null,[],_0x2a291,_0x306f5a,_0x3e4d7b,_0x442e18,_0x42a09b),_0x519548(this,_0x15d66b(0x45e),_0x15d66b(0x102)),(this[_0x15d66b(0x165)]=_0x5387bc,this[_0x15d66b(0x442)]=_0x1fa26d,this[_0x15d66b(0xf9)]=_0x456f9b);}['appendMutation'](_0x5a8d7b){const _0x5624e2=_0x103a68,_0x2d27b=this[_0x5624e2(0x165)][_0x5624e2(0x432)](_0x229ed3,this['unitID'],this[_0x5624e2(0x483)],[_0x5a8d7b],this[_0x5624e2(0x423)]);return _0x2d27b[_0x5624e2(0x323)](),_0x2d27b['_updateLocalCache'](),_0x2d27b;}[_0x103a68(0x278)](_0x26c2a6){const _0x5edc3e=_0x103a68;if(this[_0x5edc3e(0x108)](_0x26c2a6))return this[_0x5edc3e(0x165)]['createInstance'](_0x1082a3,this[_0x5edc3e(0x19c)],this[_0x5edc3e(0x483)],null,[],null,[_0x26c2a6],this[_0x5edc3e(0x423)]);try{const _0x5aef35=this[_0x5edc3e(0xf9)]['transformMutationsWithChangeset'](_0x26c2a6,[_0x5e05d4]);if(_0x162fdb[_0x5edc3e(0x10f)](_0x5aef35)){const {c1Prime:_0x33a299}=_0x5aef35;return this['_executeRemoteChangeset'](_0x33a299),this;}throw _0x5aef35['error'];}catch(_0x49b83c){return this[_0x5edc3e(0x442)][_0x5edc3e(0x35e)](_0x49b83c),this[_0x5edc3e(0x1c4)](!0x1);}}['_onConflict'](_0x1770c5){const _0x413ff6=_0x103a68;return this[_0x413ff6(0x165)][_0x413ff6(0x432)](_0x2d0447,this[_0x413ff6(0x19c)],this[_0x413ff6(0x483)],null,[],this['_handler'],_0x1770c5);}[_0x103a68(0xdc)](){const _0x7d01cb=_0x103a68;throw new Error(_0x7d01cb(0x266));}[_0x103a68(0x39a)](){const _0x5eb4a3=_0x103a68;throw new Error(_0x5eb4a3(0x124));}[_0x103a68(0x2cc)](){return this;}[_0x103a68(0x36b)](){const _0x31f6f4=_0x103a68;return this[_0x31f6f4(0x165)][_0x31f6f4(0x432)](_0xa1f417,this['unitID'],this[_0x31f6f4(0x483)],null,[],this[_0x31f6f4(0x423)]);}['toggleOnline'](){return this;}[_0x103a68(0x1ac)](){const _0x440648=_0x103a68;throw new Error(_0x440648(0x156));}[_0x103a68(0x12b)](){const _0xc2eb5=_0x103a68,_0x3d6056=this[_0xc2eb5(0x2ce)]['getCurrentRevOfUnit'](this[_0xc2eb5(0x19c)]);return this[_0xc2eb5(0x423)]['onMissingChangesets']({'from':_0x3d6056,'to':0x0}),this[_0xc2eb5(0x165)]['createInstance'](_0x1082a3,this[_0xc2eb5(0x19c)],this[_0xc2eb5(0x483)],null,[],null,[],this[_0xc2eb5(0x423)]);}};_0xf7bbd9=_0x2f2894([_0x56ee39(0x3,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x56ee39(0x4,_0x460a10[_0x103a68(0x310)](_0x4e0bbf['LocalCacheService'])),_0x56ee39(0x5,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x56ee39(0x6,_0x460a10['IUndoRedoService']),_0x56ee39(0x7,_0x460a10[_0x103a68(0x134)]),_0x56ee39(0x8,_0x460a10['ILogService']),_0x56ee39(0x9,_0x162fdb[_0x103a68(0x219)])],_0xf7bbd9);let _0x229ed3=class extends _0x410e3e{constructor(_0x7e31d5,_0x2ccdb9,_0x4089c0,_0x450683,_0x2de53b,_0x15ff44,_0x2ff084,_0x1dd75a,_0x5ce55c,_0x5e5158,_0x195692,_0x4e6ba5,_0x150571,_0x2843ff){const _0x248c56=_0x103a68;super(_0x7e31d5,_0x2ccdb9,null,_0x4089c0,_0x450683,_0x5e5158,_0x2843ff,_0x15ff44,_0x2ff084),_0x519548(this,_0x248c56(0x45e),'pending'),_0x519548(this,_0x248c56(0x4ac),null),_0x519548(this,_0x248c56(0x29a),null),(this['_injector']=_0x2de53b,this[_0x248c56(0x469)]=_0x1dd75a,this[_0x248c56(0x442)]=_0x5ce55c,this[_0x248c56(0x153)]=_0x195692,this['_transformService']=_0x4e6ba5,this['_univerInstanceService']=_0x150571);}[_0x103a68(0x115)](_0x3e4611){const _0x5d6856=_0x103a68;return this['_pendingMutations'][_0x5d6856(0x420)](_0x3e4611),this[_0x5d6856(0x25c)](),this;}[_0x103a68(0x278)](_0x237c46){const _0x43a71e=_0x103a68;if(this['_checkMissing'](_0x237c46))return this[_0x43a71e(0x317)](),this['_injector'][_0x43a71e(0x432)](_0x1082a3,this['unitID'],this[_0x43a71e(0x483)],null,this[_0x43a71e(0x3e8)],null,[_0x237c46],this[_0x43a71e(0x423)]);try{const _0x3d6ac8=this[_0x43a71e(0xf9)][_0x43a71e(0x427)](_0x237c46,this['_pendingMutations']);if(_0x162fdb[_0x43a71e(0x10f)](_0x3d6ac8)){const {c1Prime:_0xa165ae,m2Prime:_0x26cd01}=_0x3d6ac8;this[_0x43a71e(0x498)](_0xa165ae);const _0x459475=this['_injector'][_0x43a71e(0x432)](_0x229ed3,this['unitID'],this[_0x43a71e(0x483)],_0x26cd01,this[_0x43a71e(0x423)]);return this[_0x43a71e(0x317)](),_0x459475[_0x43a71e(0x323)](this[_0x43a71e(0x4ac)]?Math[_0x43a71e(0x12f)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x459475;}throw _0x3d6ac8['error'];}catch(_0x554031){return this[_0x43a71e(0x442)]['error'](_0x554031),this[_0x43a71e(0x1c4)](!0x1);}}['onRemoteAck'](){const _0x354024=_0x103a68;throw new Error(_0x354024(0x218));}['onRemoteRej'](){const _0x10b680=_0x103a68;throw new Error(_0x10b680(0x3e4));}[_0x103a68(0x2cc)](){return this;}[_0x103a68(0x36b)](){const _0x408343=_0x103a68;return this[_0x408343(0x317)](),this[_0x408343(0x165)][_0x408343(0x432)](_0xa1f417,this[_0x408343(0x19c)],this[_0x408343(0x483)],null,this['_pendingMutations'],this[_0x408343(0x423)]);}['toggleOnline'](){return this;}[_0x103a68(0x323)](_0x44cb84){const _0x3226ea=_0x103a68,_0x2854ca=_0x44cb84!=null?_0x44cb84:this[_0x3226ea(0xbc)]();this[_0x3226ea(0x4ac)]=new Date()[_0x3226ea(0x24e)](),this[_0x3226ea(0x29a)]=window[_0x3226ea(0x207)](()=>{const _0x40a893=_0x3226ea;this[_0x40a893(0x317)]();let _0x3ff190=null;switch(this['type']){case _0x3907d0['UNIVER_SHEET']:{_0x3ff190=_0x3423a3(this[_0x40a893(0x3e8)],this[_0x40a893(0x19c)],this[_0x40a893(0x15d)],this[_0x40a893(0x2ce)],this[_0x40a893(0x469)]);break;}case _0x3907d0['UNIVER_DOC']:{this[_0x40a893(0x3e8)][_0x40a893(0x3ff)](_0x326cbd=>_0x326cbd['id']===_0x447cee[_0x40a893(0x1f9)]['id'])?_0x3ff190=_0x442c69(this['_pendingMutations'],this[_0x40a893(0x19c)],this[_0x40a893(0x15d)],this[_0x40a893(0x2ce)],this[_0x40a893(0x469)]):_0x3ff190=_0x3423a3(this[_0x40a893(0x3e8)],this['unitID'],this['_univerInstanceService'],this[_0x40a893(0x2ce)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x40a893(0x483)]+'\x20in\x20_schedule.');}const {changeset:_0xb92ddf,pendingMutations:_0xb7f044}=_0x3ff190;this[_0x40a893(0x423)][_0x40a893(0x375)](_0xb92ddf);const _0x2ffd20=_0xb7f044[_0x40a893(0x292)]?this[_0x40a893(0x165)][_0x40a893(0x432)](_0x558958,this[_0x40a893(0x19c)],this['type'],_0xb92ddf,_0xb7f044,this[_0x40a893(0x423)],void 0x0):this[_0x40a893(0x165)][_0x40a893(0x432)](_0x48b442,this[_0x40a893(0x19c)],this['type'],_0xb92ddf,this[_0x40a893(0x423)]);_0x2ffd20['_updateLocalCache'](),this[_0x40a893(0x423)][_0x40a893(0x43a)](this,_0x2ffd20);},_0x2854ca);}[_0x103a68(0xbc)](){const _0x21352c=_0x103a68;var _0x4aa343;const _0x25320a=this['_configService'][_0x21352c(0x20d)](_0x49305e);return(_0x4aa343=_0x25320a==null?void 0x0:_0x25320a[_0x21352c(0x3c7)])!=null?_0x4aa343:0x7d0;}[_0x103a68(0x1ac)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x103a68(0x317)](){const _0x5b9fb6=_0x103a68;this[_0x5b9fb6(0x29a)]!=null&&(clearTimeout(this[_0x5b9fb6(0x29a)]),this[_0x5b9fb6(0x29a)]=null);}['_onConflict'](_0x392d16){const _0x48ffa3=_0x103a68;return this[_0x48ffa3(0x317)](),this[_0x48ffa3(0x165)]['createInstance'](_0x2d0447,this[_0x48ffa3(0x19c)],this['type'],null,this[_0x48ffa3(0x3e8)],this['_handler'],_0x392d16);}};_0x229ed3=_0x2f2894([_0x56ee39(0x4,_0x460a10['Inject'](_0x460a10['Injector'])),_0x56ee39(0x5,_0x460a10['Inject'](_0x162fdb['RevisionService'])),_0x56ee39(0x6,_0x460a10['Inject'](_0x4e0bbf['LocalCacheService'])),_0x56ee39(0x7,_0x460a10[_0x103a68(0x310)](_0xf42097)),_0x56ee39(0x8,_0x460a10[_0x103a68(0x362)]),_0x56ee39(0x9,_0x460a10[_0x103a68(0x134)]),_0x56ee39(0xa,_0x460a10[_0x103a68(0x3e3)]),_0x56ee39(0xb,_0x162fdb[_0x103a68(0x219)]),_0x56ee39(0xc,_0x460a10[_0x103a68(0x347)]),_0x56ee39(0xd,_0x460a10['IUndoRedoService'])],_0x229ed3);let _0x48b442=class extends _0x410e3e{constructor(_0x19144a,_0x5a0c2c,_0x48940b,_0x3e2146,_0x14e129,_0x33a3d0,_0x2783c7,_0x5cc39b,_0x4157a6,_0x3864f7,_0x7d0d7e){const _0x23f47b=_0x103a68;super(_0x19144a,_0x5a0c2c,_0x48940b,[],_0x3e2146,_0x5cc39b,_0x7d0d7e,_0x33a3d0,_0x2783c7),_0x519548(this,_0x23f47b(0x45e),_0x23f47b(0x2e2)),_0x519548(this,_0x23f47b(0x46c),0x0),_0x519548(this,_0x23f47b(0x4c0)),_0x519548(this,_0x23f47b(0x3a0)),(this['_injector']=_0x14e129,this[_0x23f47b(0x442)]=_0x4157a6,this[_0x23f47b(0xf9)]=_0x3864f7);}['appendMutation'](_0x38b9d5){const _0x4100b8=_0x103a68;this['_clearScheduledTask']();const _0x40a177=this[_0x4100b8(0x165)][_0x4100b8(0x432)](_0x558958,this[_0x4100b8(0x19c)],this[_0x4100b8(0x483)],this[_0x4100b8(0x13b)],[_0x38b9d5],this[_0x4100b8(0x423)],this[_0x4100b8(0x4c0)]);return _0x40a177[_0x4100b8(0x25c)](),_0x40a177;}[_0x103a68(0x278)](_0x5c0484){const _0x2288f8=_0x103a68;if(this[_0x2288f8(0x108)](_0x5c0484))return this[_0x2288f8(0x317)](),this[_0x2288f8(0x165)]['createInstance'](_0x1082a3,this['unitID'],this['type'],this[_0x2288f8(0x13b)],[],null,[_0x5c0484],this[_0x2288f8(0x423)]);try{const _0x59e5d1=this[_0x2288f8(0xf9)][_0x2288f8(0x38f)]([_0x5c0484],[this[_0x2288f8(0x13b)]],!0x1);if(_0x162fdb[_0x2288f8(0x344)](_0x59e5d1)){const {c1Prime:_0x30c5ad,c2Prime:_0x24bfac}=_0x59e5d1;this['_executeRemoteChangeset'](_0x30c5ad[0x0]),_0x24bfac[0x0][_0x2288f8(0x119)]=this[_0x2288f8(0x3e6)](),this[_0x2288f8(0x317)]();const _0x750e50=this[_0x2288f8(0x165)][_0x2288f8(0x432)](_0x48b442,this[_0x2288f8(0x19c)],this[_0x2288f8(0x483)],_0x24bfac[0x0],this[_0x2288f8(0x423)]);return _0x750e50[_0x2288f8(0x25c)](),_0x750e50;}return this[_0x2288f8(0x1c4)](!0x1);}catch(_0x46bb6f){return this[_0x2288f8(0x442)][_0x2288f8(0x35e)](_0x46bb6f),this['_onConflict'](!0x1);}}[_0x103a68(0xdc)](_0x179180){const _0x4c3dd6=_0x103a68;this[_0x4c3dd6(0x317)]();const _0x42169f=this['_revisionService']['getCurrentRevOfUnit'](this[_0x4c3dd6(0x19c)]);if(_0x179180[_0x4c3dd6(0x21e)]<_0x42169f-0x1)return this;if(this['_checkMissing'](_0x179180))return this[_0x4c3dd6(0x165)][_0x4c3dd6(0x432)](_0x1082a3,this['unitID'],this[_0x4c3dd6(0x483)],null,[],this['_awaitingChangeset'],[],this['_handler']);this[_0x4c3dd6(0x440)]();const _0x56d03e=this[_0x4c3dd6(0x165)][_0x4c3dd6(0x432)](_0xf7bbd9,this['unitID'],this['type'],this[_0x4c3dd6(0x423)]);return _0x56d03e[_0x4c3dd6(0x25c)](),_0x56d03e;}[_0x103a68(0x39a)](_0x2730a3){const _0x3a605a=_0x103a68;return this['_onConflict'](!!(_0x2730a3!=null&&_0x2730a3[_0x3a605a(0x1bf)]));}['onRemoteRetry'](_0x2db420){const _0x1d3a97=_0x103a68;return this[_0x1d3a97(0x46c)]>_0x3d67d3?this[_0x1d3a97(0x36b)]():(this[_0x1d3a97(0x4c0)]=_0x3da111(this[_0x1d3a97(0x46c)],{'timeout':this[_0x1d3a97(0x46c)],'reqId':_0x2db420[_0x1d3a97(0x3b9)]}),this[_0x1d3a97(0x3a0)]=this[_0x1d3a97(0x4c0)]['subscribe'](({reqId:_0x6414f9,timeout:_0x37cc35})=>{const _0x368fc6=_0x1d3a97;this[_0x368fc6(0x1ec)](_0x6414f9,_0x37cc35);}),this);}[_0x103a68(0x36b)](){const _0x13ca31=_0x103a68;return this[_0x13ca31(0x317)](),this['_injector'][_0x13ca31(0x432)](_0xa1f417,this[_0x13ca31(0x19c)],this[_0x13ca31(0x483)],this[_0x13ca31(0x13b)],[],this['_handler']);}[_0x103a68(0x1f8)](){return this;}[_0x103a68(0x1ac)](){const _0x3b0908=_0x103a68;this[_0x3b0908(0x423)][_0x3b0908(0x375)](this[_0x3b0908(0x13b)]);}[_0x103a68(0x1c4)](_0x754274){const _0x11d976=_0x103a68;return this[_0x11d976(0x317)](),this[_0x11d976(0x165)][_0x11d976(0x432)](_0x2d0447,this[_0x11d976(0x19c)],this[_0x11d976(0x483)],this[_0x11d976(0x13b)],[],this['_handler'],_0x754274);}[_0x103a68(0x1ec)](_0x1a8cfd,_0x425138){const _0x322a51=_0x103a68;var _0x198a61;_0x1a8cfd===((_0x198a61=this[_0x322a51(0x13b)])==null?void 0x0:_0x198a61[_0x322a51(0x3b9)])&&(this[_0x322a51(0x1ac)](),this[_0x322a51(0x46c)]=_0x425138===0x0?0x3e8:_0x425138*0x2);}[_0x103a68(0x317)](){const _0x182637=_0x103a68;var _0x11e43b;(_0x11e43b=this[_0x182637(0x3a0)])==null||_0x11e43b[_0x182637(0x36a)](),this['_resendTimeout']=0x0;}};_0x48b442=_0x2f2894([_0x56ee39(0x4,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x56ee39(0x5,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x56ee39(0x6,_0x460a10['Inject'](_0x4e0bbf[_0x103a68(0x2b4)])),_0x56ee39(0x7,_0x460a10[_0x103a68(0x134)]),_0x56ee39(0x8,_0x460a10[_0x103a68(0x362)]),_0x56ee39(0x9,_0x162fdb['ITransformService']),_0x56ee39(0xa,_0x460a10['IUndoRedoService'])],_0x48b442);let _0x558958=class extends _0x410e3e{constructor(_0x453642,_0x3a4bf7,_0x2f715a,_0x3f4dc8,_0x306cb9,_0x1e7bce,_0x45f18b,_0x1ff623,_0x34b5f2,_0x558f7e,_0x376acc,_0x46dc28,_0x9df5fe){const _0x48d055=_0x103a68;super(_0x453642,_0x3a4bf7,_0x2f715a,_0x3f4dc8,_0x306cb9,_0x558f7e,_0x9df5fe,_0x1ff623,_0x34b5f2),_0x519548(this,'status',_0x48d055(0x206)),_0x519548(this,_0x48d055(0x46c),0x0),_0x519548(this,_0x48d055(0x4c0)),_0x519548(this,_0x48d055(0x3a0)),(this[_0x48d055(0x165)]=_0x45f18b,this[_0x48d055(0x442)]=_0x376acc,this[_0x48d055(0xf9)]=_0x46dc28,_0x1e7bce&&(this[_0x48d055(0x4c0)]=_0x1e7bce,this['_sender']=this[_0x48d055(0x4c0)]['subscribe'](({reqId:_0x95ea71,timeout:_0x164ea8})=>{const _0x2febeb=_0x48d055;this[_0x2febeb(0x1ec)](_0x95ea71,_0x164ea8);})));}[_0x103a68(0x115)](_0x48d067){const _0xec51fc=_0x103a68;return this[_0xec51fc(0x3e8)]['push'](_0x48d067),this;}[_0x103a68(0x278)](_0x3acee9){const _0x53a774=_0x103a68;if(this[_0x53a774(0x108)](_0x3acee9))return this[_0x53a774(0x317)](),this[_0x53a774(0x165)][_0x53a774(0x432)](_0x1082a3,this['unitID'],this[_0x53a774(0x483)],this[_0x53a774(0x13b)],this[_0x53a774(0x3e8)],null,[_0x3acee9],this[_0x53a774(0x423)]);try{const _0x6434fd=this[_0x53a774(0xf9)][_0x53a774(0x38f)]([_0x3acee9],[this[_0x53a774(0x13b)]],!0x1);if(_0x162fdb[_0x53a774(0x344)](_0x6434fd)){const {c1Prime:_0x16d527,c2Prime:_0x22015a}=_0x6434fd,_0x2efbae=this[_0x53a774(0xf9)]['transformMutationsWithChangeset'](_0x16d527[0x0],this[_0x53a774(0x3e8)]);if(_0x162fdb[_0x53a774(0x10f)](_0x2efbae)){const {c1Prime:_0x12ec95,m2Prime:_0x126122}=_0x2efbae;return this['_executeRemoteChangeset'](_0x12ec95),_0x22015a[0x0]['baseRev']=this[_0x53a774(0x3e6)](),this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x558958,this['unitID'],this[_0x53a774(0x483)],_0x22015a[0x0],_0x126122,this[_0x53a774(0x423)],void 0x0);}throw _0x2efbae[_0x53a774(0x35e)];}throw _0x6434fd['error'];}catch(_0x105b1c){return this[_0x53a774(0x442)][_0x53a774(0x35e)](_0x105b1c),this[_0x53a774(0x1c4)](!0x1);}}[_0x103a68(0xdc)](_0x1219a4){const _0x3b6594=_0x103a68;if(this[_0x3b6594(0x317)](),this[_0x3b6594(0x108)](_0x1219a4))return this[_0x3b6594(0x165)]['createInstance'](_0x1082a3,this[_0x3b6594(0x19c)],this[_0x3b6594(0x483)],null,this['_pendingMutations'],this[_0x3b6594(0x13b)],[],this[_0x3b6594(0x423)]);this[_0x3b6594(0x440)]();const _0x5e874e=this[_0x3b6594(0x165)][_0x3b6594(0x432)](_0x229ed3,this[_0x3b6594(0x19c)],this[_0x3b6594(0x483)],this['_pendingMutations'],this[_0x3b6594(0x423)]);return _0x5e874e['_schedule'](),_0x5e874e[_0x3b6594(0x25c)](),_0x5e874e;}['onRemoteRej'](_0x519a6d){const _0x4ee80d=_0x103a68;return this[_0x4ee80d(0x1c4)](!!(_0x519a6d!=null&&_0x519a6d[_0x4ee80d(0x1bf)]));}[_0x103a68(0x2cc)](_0x487c52){const _0x43df61=_0x103a68;return this[_0x43df61(0x46c)]>_0x3d67d3?this[_0x43df61(0x36b)]():(this[_0x43df61(0x4c0)]=_0x3da111(this['_resendTimeout'],{'timeout':this[_0x43df61(0x46c)],'reqId':_0x487c52['reqId']}),this['_sender']=this[_0x43df61(0x4c0)]['subscribe'](({reqId:_0xf27752,timeout:_0x4cd0ee})=>{this['_resendWithTimeout'](_0xf27752,_0x4cd0ee);}),this);}['toggleOffline'](){const _0x1defe7=_0x103a68;return this[_0x1defe7(0x317)](),this[_0x1defe7(0x165)][_0x1defe7(0x432)](_0xa1f417,this[_0x1defe7(0x19c)],this[_0x1defe7(0x483)],this[_0x1defe7(0x13b)],this[_0x1defe7(0x3e8)],this[_0x1defe7(0x423)]);}[_0x103a68(0x1f8)](){return this;}[_0x103a68(0x1ac)](){const _0x4c99c2=_0x103a68;this[_0x4c99c2(0x423)][_0x4c99c2(0x375)](this[_0x4c99c2(0x13b)]);}[_0x103a68(0x1c4)](_0x366a32){const _0x4d4808=_0x103a68;return this[_0x4d4808(0x317)](),this[_0x4d4808(0x165)][_0x4d4808(0x432)](_0x2d0447,this['unitID'],this[_0x4d4808(0x483)],null,this[_0x4d4808(0x3e8)],this[_0x4d4808(0x423)],_0x366a32);}[_0x103a68(0x1ec)](_0x8f1c53,_0x25a04e){const _0x26d623=_0x103a68;var _0x265b59;_0x8f1c53===((_0x265b59=this[_0x26d623(0x13b)])==null?void 0x0:_0x265b59['reqId'])&&(this[_0x26d623(0x1ac)](),this[_0x26d623(0x46c)]=_0x25a04e===0x0?0x3e8:_0x25a04e*0x2);}['_clearScheduledTask'](){const _0x4b8f74=_0x103a68;var _0x1b29fb;(_0x1b29fb=this[_0x4b8f74(0x3a0)])==null||_0x1b29fb['unsubscribe'](),this[_0x4b8f74(0x46c)]=0x0;}};_0x558958=_0x2f2894([_0x56ee39(0x6,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x56ee39(0x7,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x56ee39(0x8,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x2b4)])),_0x56ee39(0x9,_0x460a10['ICommandService']),_0x56ee39(0xa,_0x460a10[_0x103a68(0x362)]),_0x56ee39(0xb,_0x162fdb[_0x103a68(0x219)]),_0x56ee39(0xc,_0x460a10['IUndoRedoService'])],_0x558958);let _0x2d0447=class extends _0x410e3e{constructor(_0x2f9e16,_0x162236,_0x1afed6,_0x47f881,_0xcad86e,_0xd7a85a=!0x1,_0x3f6e51,_0x8d2bef,_0x71baa,_0x28f6d5,_0x39f1a7,_0x3ad95a,_0x367f7e){const _0x58f080=_0x103a68;super(_0x2f9e16,_0x162236,_0x1afed6,_0x47f881,_0xcad86e,_0x8d2bef,_0x71baa,_0x39f1a7,_0x28f6d5),_0x519548(this,'status',_0x58f080(0x343)),(this['_isPermissionRej']=_0xd7a85a,this['_permissionService']=_0x3f6e51,this[_0x58f080(0x136)]=_0x3ad95a,this[_0x58f080(0x3db)]=_0x367f7e,this[_0x58f080(0x15c)](),this[_0x58f080(0x4ad)](),this['_disableEditing']());}[_0x103a68(0x115)](){return this;}[_0x103a68(0x278)](){return this;}[_0x103a68(0xdc)](){return this;}[_0x103a68(0x39a)](){return this;}[_0x103a68(0x2cc)](){return this;}[_0x103a68(0x36b)](){return this;}[_0x103a68(0x1f8)](){return this;}[_0x103a68(0x1ac)](){const _0x50b307=_0x103a68;throw new Error(_0x50b307(0xad));}[_0x103a68(0x4ad)](){const _0x3ac1d1=_0x103a68;this[_0x3ac1d1(0x386)][_0x3ac1d1(0x3f0)](this[_0x3ac1d1(0x19c)],this[_0x3ac1d1(0x483)],null,[]);}[_0x103a68(0x15c)](){const _0x487c71=_0x103a68;this[_0x487c71(0x3b3)]?this[_0x487c71(0x3db)][_0x487c71(0x410)]({'title':this[_0x487c71(0x136)]['t'](_0x487c71(0x1d0)),'content':this[_0x487c71(0x136)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x487c71(0x3db)][_0x487c71(0x410)]({'title':this[_0x487c71(0x136)]['t']('conflict.title'),'content':this[_0x487c71(0x136)]['t'](_0x487c71(0x3cf)),'type':_0x487c71(0x35e),'duration':0x0});}[_0x103a68(0x1fe)](){const _0x56505d=_0x103a68;this['_permissionService']['updatePermissionPoint'](new _0x57c232[(_0x56505d(0x4ae))](this[_0x56505d(0x19c)])['id'],!0x1);}};_0x2d0447=_0x2f2894([_0x56ee39(0x6,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x42c)])),_0x56ee39(0x7,_0x460a10[_0x103a68(0x134)]),_0x56ee39(0x8,_0x460a10[_0x103a68(0xba)]),_0x56ee39(0x9,_0x460a10[_0x103a68(0x310)](_0x4e0bbf['LocalCacheService'])),_0x56ee39(0xa,_0x460a10['Inject'](_0x162fdb[_0x103a68(0x2b0)])),_0x56ee39(0xb,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0x56ee39(0xc,_0x29b1e2['INotificationService'])],_0x2d0447);let _0xa1f417=class extends _0x410e3e{constructor(_0x327f0b,_0x478ee7,_0x47ef8b,_0x1f422b,_0x4e34b9,_0x36c852,_0x3c5b84,_0x53e87a,_0x1c1871,_0x548340){const _0x1df8a5=_0x103a68;super(_0x327f0b,_0x478ee7,_0x47ef8b,_0x1f422b,_0x4e34b9,_0x1c1871,_0x548340,_0x3c5b84,_0x53e87a),_0x519548(this,'status',_0x1df8a5(0x44f)),this[_0x1df8a5(0x165)]=_0x36c852;}[_0x103a68(0x115)](_0x504be7){const _0x5c4f1a=_0x103a68;return this[_0x5c4f1a(0x3e8)][_0x5c4f1a(0x420)](_0x504be7),this['_updateLocalCache'](),this;}[_0x103a68(0x278)](_0x541334){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x103a68(0xdc)](){const _0xea4491=_0x103a68;throw new Error(_0xea4491(0x499));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x103a68(0x1f8)](){const _0x4d6888=_0x103a68,{_injector:_0x15f36a,_pendingMutations:_0x12d88c,_awaitingChangeset:_0x16f067,unitID:_0xc5e6f5,_handler:_0x1c8c98,type:_0x5f2115}=this,_0x328cff=_0x4d3d65(_0x15f36a,_0xc5e6f5,_0x5f2115,_0x16f067,_0x12d88c,_0x1c8c98);return _0x328cff instanceof _0x229ed3?_0x328cff[_0x4d6888(0x323)]():(_0x328cff instanceof _0x558958||_0x328cff instanceof _0x48b442)&&_0x328cff[_0x4d6888(0x1ac)](),_0x328cff;}['resend'](){const _0x3cb45c=_0x103a68;throw new Error(_0x3cb45c(0x2c1));}};_0xa1f417=_0x2f2894([_0x56ee39(0x5,_0x460a10['Inject'](_0x460a10[_0x103a68(0x15b)])),_0x56ee39(0x6,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x56ee39(0x7,_0x460a10['Inject'](_0x4e0bbf[_0x103a68(0x2b4)])),_0x56ee39(0x8,_0x460a10[_0x103a68(0x134)]),_0x56ee39(0x9,_0x460a10['IUndoRedoService'])],_0xa1f417);let _0x1082a3=class extends _0x410e3e{constructor(_0x209f43,_0x53f05c,_0x4a3e95,_0x5698ae,_0x592e30,_0x211a43,_0x2170aa,_0x4642bd,_0x33049e,_0x1637a8,_0x5d215d,_0x1a2e46,_0x4b3768,_0x18501b){const _0x16b3db=_0x103a68;super(_0x209f43,_0x53f05c,_0x4a3e95,_0x5698ae,_0x2170aa,_0x1a2e46,_0x4b3768,_0x33049e,_0x1637a8),_0x519548(this,_0x16b3db(0x45e),_0x16b3db(0x485)),(this[_0x16b3db(0x200)]=_0x592e30,this[_0x16b3db(0x17f)]=_0x211a43,this[_0x16b3db(0x165)]=_0x4642bd,this[_0x16b3db(0x442)]=_0x5d215d,this[_0x16b3db(0xf9)]=_0x18501b);}[_0x103a68(0x238)](_0x58d055){const _0x328ee9=_0x103a68;try{const _0xa472b5=[..._0x58d055,...this[_0x328ee9(0x17f)]],_0x5639e6=[this[_0x328ee9(0x13b)]||this['_acknowledgedAwaitingChangeset']][_0x328ee9(0x162)](_0x212312=>!!_0x212312);let _0x1de989,_0x3d1507;if(_0x5639e6[_0x328ee9(0x292)]){const _0x381382=this['_transformService'][_0x328ee9(0x38f)](_0xa472b5,_0x5639e6,!0x1);if(!_0x162fdb[_0x328ee9(0x344)](_0x381382))throw _0x381382[_0x328ee9(0x35e)];_0x1de989=_0x381382[_0x328ee9(0x48a)],_0x3d1507=_0x381382[_0x328ee9(0xbf)];}else _0x1de989=_0xa472b5,_0x3d1507=[];let _0x4bc500=this[_0x328ee9(0x3e8)];_0x1de989[_0x328ee9(0x196)](_0xc40e36=>{const _0x58e88c=_0x328ee9;let _0x21153d;if(_0x4bc500[_0x58e88c(0x292)]){const _0x21e678=this['_transformService'][_0x58e88c(0x427)](_0xc40e36,_0x4bc500);if(!_0x162fdb[_0x58e88c(0x10f)](_0x21e678))throw _0x21e678[_0x58e88c(0x35e)];_0x21153d=_0x21e678['c1Prime'],_0x4bc500=_0x21e678[_0x58e88c(0xf6)];}else _0x21153d=_0xc40e36;this[_0x58e88c(0x498)](_0x21153d);}),this[_0x328ee9(0x200)]&&this[_0x328ee9(0x440)](),this[_0x328ee9(0x13b)]&&_0x3d1507[_0x328ee9(0x292)]&&(_0x3d1507[0x0][_0x328ee9(0x119)]=this[_0x328ee9(0x3e6)]());let _0x47432b;if(this[_0x328ee9(0x13b)]&&_0x4bc500[_0x328ee9(0x292)]!==0x0)_0x47432b=this[_0x328ee9(0x165)][_0x328ee9(0x432)](_0x558958,this[_0x328ee9(0x19c)],this['type'],_0x3d1507[0x0],_0x4bc500,this[_0x328ee9(0x423)],void 0x0);else{if(this['_awaitingChangeset']&&_0x4bc500[_0x328ee9(0x292)]===0x0)_0x3d1507[0x0]['baseRev']=this[_0x328ee9(0x3e6)](),_0x47432b=this['_injector'][_0x328ee9(0x432)](_0x48b442,this[_0x328ee9(0x19c)],this['type'],_0x3d1507[0x0],this['_handler']);else{if(_0x4bc500[_0x328ee9(0x292)]!==0x0){const _0x52303f=this[_0x328ee9(0x165)][_0x328ee9(0x432)](_0x229ed3,this[_0x328ee9(0x19c)],this[_0x328ee9(0x483)],_0x4bc500,this[_0x328ee9(0x423)]);_0x52303f[_0x328ee9(0x323)](),_0x47432b=_0x52303f;}else _0x47432b=this[_0x328ee9(0x165)]['createInstance'](_0xf7bbd9,this[_0x328ee9(0x19c)],this[_0x328ee9(0x483)],this['_handler']);}}return _0x47432b['_updateLocalCache'](),_0x47432b;}catch(_0x3fec14){return this[_0x328ee9(0x442)]['error'](_0x328ee9(0x13d),_0x328ee9(0x4cb),_0x3fec14),this[_0x328ee9(0x165)][_0x328ee9(0x432)](_0x2d0447,this[_0x328ee9(0x19c)],this['type'],this[_0x328ee9(0x13b)],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x103a68(0x1ac)](){const _0x5d4f69=_0x103a68;throw new Error(_0x5d4f69(0x1fd));}[_0x103a68(0x115)](_0x3175af){const _0x31336a=_0x103a68;return this[_0x31336a(0x3e8)][_0x31336a(0x420)](_0x3175af),this;}['onRemoteChangeset'](_0x3e6fbf){const _0xd383af=_0x103a68;return this[_0xd383af(0x17f)][_0xd383af(0x420)](_0x3e6fbf),this;}['onRemoteAck'](_0x7eca11){const _0x185468=_0x103a68;if(this[_0x185468(0x13b)])return this['_acknowledgedAwaitingChangeset']=this[_0x185468(0x13b)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x12bc69){const _0x59ce9f=_0x103a68;return this[_0x59ce9f(0x1c4)](!!(_0x12bc69!=null&&_0x12bc69[_0x59ce9f(0x1bf)]));}[_0x103a68(0x2cc)](){return this;}[_0x103a68(0x36b)](){const _0x157ee4=_0x103a68;return this[_0x157ee4(0x165)][_0x157ee4(0x432)](_0xa1f417,this['unitID'],this[_0x157ee4(0x483)],this[_0x157ee4(0x13b)],this['_pendingMutations'],this[_0x157ee4(0x423)]);}['toggleOnline'](){return this;}[_0x103a68(0x1c4)](_0x590d99){const _0x153d1e=_0x103a68;return this[_0x153d1e(0x165)][_0x153d1e(0x432)](_0x2d0447,this[_0x153d1e(0x19c)],this[_0x153d1e(0x483)],this[_0x153d1e(0x13b)],this[_0x153d1e(0x3e8)],this[_0x153d1e(0x423)],_0x590d99);}};_0x1082a3=_0x2f2894([_0x56ee39(0x7,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x56ee39(0x8,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x56ee39(0x9,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x2b4)])),_0x56ee39(0xa,_0x460a10[_0x103a68(0x362)]),_0x56ee39(0xb,_0x460a10[_0x103a68(0x134)]),_0x56ee39(0xc,_0x460a10['IUndoRedoService']),_0x56ee39(0xd,_0x162fdb[_0x103a68(0x219)])],_0x1082a3);function _0x4d3d65(_0x418892,_0x51fc6b,_0x242f02,_0x5b02fa,_0x4b379d,_0x5e5bb0){const _0x4a9bf8=_0x103a68;return _0x5b02fa&&_0x4b379d[_0x4a9bf8(0x292)]?_0x418892['createInstance'](_0x558958,_0x51fc6b,_0x242f02,_0x5b02fa,_0x4b379d,_0x5e5bb0,void 0x0):_0x5b02fa?_0x418892[_0x4a9bf8(0x432)](_0x48b442,_0x51fc6b,_0x242f02,_0x5b02fa,_0x5e5bb0):_0x4b379d[_0x4a9bf8(0x292)]?_0x418892['createInstance'](_0x229ed3,_0x51fc6b,_0x242f02,_0x4b379d,_0x5e5bb0):_0x418892[_0x4a9bf8(0x432)](_0xf7bbd9,_0x51fc6b,_0x242f02,_0x5e5bb0);}var _0x625c65=Object[_0x103a68(0x3a3)],_0x57c928=Object[_0x103a68(0x138)],_0x420c61=(_0x2f8011,_0x2f9165,_0x20f881,_0x41fa19)=>{const _0x147264=_0x103a68;for(var _0x3d9956=_0x41fa19>0x1?void 0x0:_0x41fa19?_0x57c928(_0x2f9165,_0x20f881):_0x2f9165,_0x16ac57=_0x2f8011[_0x147264(0x292)]-0x1,_0x148055;_0x16ac57>=0x0;_0x16ac57--)(_0x148055=_0x2f8011[_0x16ac57])&&(_0x3d9956=(_0x41fa19?_0x148055(_0x2f9165,_0x20f881,_0x3d9956):_0x148055(_0x3d9956))||_0x3d9956);return _0x41fa19&&_0x3d9956&&_0x625c65(_0x2f9165,_0x20f881,_0x3d9956),_0x3d9956;},_0x2206b4=(_0x5f429c,_0x47ee5a)=>(_0x14a4bc,_0x251570)=>_0x47ee5a(_0x14a4bc,_0x251570,_0x5f429c);_0x4e0bbf[_0x103a68(0x45f)]=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x4d42f5,_0x3f0b01,_0x11506b,_0x4cbace,_0xe457df,_0x715a8e,_0x30fbf9,_0x59cc48,_0x5c32b9,_0x4640eb,_0x16d6d5,_0x1d0264,_0x26d9e5){const _0x338e26=_0x103a68;super(),_0x519548(this,_0x338e26(0x4d8),new _0x22d14a['BehaviorSubject'](null)),_0x519548(this,_0x338e26(0x210),this[_0x338e26(0x4d8)][_0x338e26(0x1a5)]()),_0x519548(this,_0x338e26(0x2b5)),_0x519548(this,_0x338e26(0x1ca),!0x1),_0x519548(this,_0x338e26(0x110),''),_0x519548(this,_0x338e26(0x3e1),0x0),_0x519548(this,_0x338e26(0x39e),this[_0x338e26(0x210)][_0x338e26(0x3af)](_0x22d14a[_0x338e26(0x38a)](_0x33e8e5=>_0x33e8e5?_0x33e8e5[_0x338e26(0x45e)]:_0x4b41c3[_0x338e26(0x314)]),_0x22d14a[_0x338e26(0x3eb)](0x1))),_0x519548(this,_0x338e26(0x232),!0x1),_0x519548(this,_0x338e26(0x455),[]),(this[_0x338e26(0x19c)]=_0x4d42f5,this[_0x338e26(0x374)]=_0x3f0b01,this[_0x338e26(0x465)]=_0x11506b,this['_injector']=_0x4cbace,this[_0x338e26(0x386)]=_0xe457df,this[_0x338e26(0x211)]=_0x715a8e,this[_0x338e26(0x136)]=_0x30fbf9,this[_0x338e26(0x2ce)]=_0x59cc48,this[_0x338e26(0x442)]=_0x5c32b9,this[_0x338e26(0x44e)]=_0x4640eb,this[_0x338e26(0x348)]=_0x16d6d5,this[_0x338e26(0x467)]=_0x1d0264,this[_0x338e26(0x435)]=_0x26d9e5);}get[_0x103a68(0x49b)](){const _0x565c0f=_0x103a68;return this[_0x565c0f(0x2b5)];}async[_0x103a68(0x40b)](){const _0x34bd04=_0x103a68;if(this[_0x34bd04(0x49b)])throw new Error(_0x34bd04(0x282));await this[_0x34bd04(0x194)]();}[_0x103a68(0x1d8)](){const _0x540a34=_0x103a68;return this[_0x540a34(0x1ca)]=!0x0,_0x460a10['toDisposable'](()=>{const _0x131540=_0x540a34;this[_0x131540(0x1ca)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x2caa50){const _0x296bae=_0x103a68;this[_0x296bae(0x2b5)]=_0x2caa50,this['_state$'][_0x296bae(0x1bb)](_0x2caa50);}async[_0x103a68(0x194)](){const _0x1830e5=_0x103a68;var _0x45680b;this[_0x1830e5(0x350)](await this[_0x1830e5(0x1d4)]()),this['_singleActiveUnitService']&&((_0x45680b=this[_0x1830e5(0x435)])==null||_0x45680b[_0x1830e5(0x14d)](this[_0x1830e5(0x19c)]),this[_0x1830e5(0x495)](this[_0x1830e5(0x435)]['getUnitStatus$'](this[_0x1830e5(0x19c)])[_0x1830e5(0x3d1)](_0x1221f3=>{const _0x1f921b=_0x1830e5;this['_logService'][_0x1f921b(0x1b4)](_0x1f921b(0x1b3),_0x1f921b(0x1ef),_0x1221f3),_0x1221f3===_0x3bcbdc[_0x1f921b(0xf1)]?(this[_0x1f921b(0x348)]['show']({'content':this[_0x1f921b(0x136)]['t'](_0x1f921b(0x1c1)),'type':_0x511ab8['MessageType'][_0x1f921b(0x230)]}),this[_0x1f921b(0x467)][_0x1f921b(0x4c2)](new _0x57c232[(_0x1f921b(0x4ae))](this[_0x1f921b(0x19c)])['id'],!0x1)):this[_0x1f921b(0x467)][_0x1f921b(0x4c2)](new _0x57c232[(_0x1f921b(0x4ae))](this[_0x1f921b(0x19c)])['id'],!0x0);})));let _0x474f1e=!0x1;return this['disposeWithMe'](this[_0x1830e5(0x374)][_0x1830e5(0x276)]['subscribe'](_0x256165=>{const _0x45e0af=_0x1830e5;_0x256165===_0x2c7c24[_0x45e0af(0x2a6)]?this['_toggleOnline'](_0x474f1e):_0x256165===_0x2c7c24['OFFLINE']&&(_0x474f1e=!0x0,this[_0x45e0af(0x454)]());})),this[_0x1830e5(0x495)](this[_0x1830e5(0x374)][_0x1830e5(0x1e1)][_0x1830e5(0x3d1)](_0x20a8cd=>{const _0x1a2a5c=_0x1830e5;try{switch(_0x20a8cd[_0x1a2a5c(0x2fe)]){case _0x162fdb[_0x1a2a5c(0x26c)][_0x1a2a5c(0x131)]:{this['_onRemoteChangeset'](_0x162fdb[_0x1a2a5c(0x30a)](_0x20a8cd[_0x1a2a5c(0x47f)]));break;}case _0x162fdb[_0x1a2a5c(0x26c)][_0x1a2a5c(0x1da)]:{this['_onRemoteACK'](_0x20a8cd[_0x1a2a5c(0x47f)]);break;}case _0x162fdb[_0x1a2a5c(0x26c)][_0x1a2a5c(0x49d)]:{this[_0x1a2a5c(0x281)]();break;}case _0x162fdb[_0x1a2a5c(0x26c)][_0x1a2a5c(0x3ac)]:{this[_0x1a2a5c(0x296)](_0x20a8cd[_0x1a2a5c(0x47f)]);break;}case _0x162fdb['CollaborationEvent'][_0x1a2a5c(0x325)]:{this[_0x1a2a5c(0x169)](_0x20a8cd[_0x1a2a5c(0x47f)]['changesets'][_0x1a2a5c(0x38a)](_0x5961f8=>_0x162fdb[_0x1a2a5c(0x30a)](_0x5961f8)));break;}case _0x162fdb[_0x1a2a5c(0x26c)]['PERMISSION_REJ']:this[_0x1a2a5c(0x281)]({'isPermissionRej':!0x0});}}catch(_0x207e6f){throw console[_0x1a2a5c(0x35e)]('Error\x20on\x20receiving\x20event',_0x207e6f),_0x207e6f;}})),this['_state'];}['_unlockTransition'](){const _0x398c47=_0x103a68;this[_0x398c47(0x232)]=!0x1;}['_lockTransition'](){const _0x34c7d8=_0x103a68;if(this[_0x34c7d8(0x232)])throw new Error(_0x34c7d8(0x421));this[_0x34c7d8(0x232)]=!0x0;}[_0x103a68(0x2bf)](_0x2b4b2c){const _0x1f9400=_0x103a68;this[_0x1f9400(0x112)](),this[_0x1f9400(0x350)](this[_0x1f9400(0x2b5)][_0x1f9400(0x115)](_0x2b4b2c)),this['_unlockTransition']();}[_0x103a68(0x1c7)](_0x48ac21){const _0x5279d8=_0x103a68;if(!(_0x48ac21['revision']<=this[_0x5279d8(0x2ce)]['getCurrentRevOfUnit'](this[_0x5279d8(0x19c)]))){if(this['_collaborationPaused']){this[_0x5279d8(0x455)][_0x5279d8(0x420)](_0x48ac21);return;}this[_0x5279d8(0x2be)](_0x48ac21);}}[_0x103a68(0x4bc)](){const _0x3c6986=_0x103a68;this[_0x3c6986(0x455)][_0x3c6986(0x196)](_0x23144a=>this['_applyRemoteChangeset'](_0x23144a)),this[_0x3c6986(0x455)]=[];}[_0x103a68(0x2be)](_0x4f000a){const _0x1d3bb8=_0x103a68,_0x1c7a26=this[_0x1d3bb8(0x211)][_0x1d3bb8(0x4d4)][_0x1d3bb8(0x3b4)](this[_0x1d3bb8(0x211)]['interceptor'][_0x1d3bb8(0x11e)]()['COMPRESS_MUTATION_APPLY'])(_0x4f000a['mutations'],null)||_0x4f000a[_0x1d3bb8(0x274)],_0x50d288={..._0x4f000a,'mutations':_0x1c7a26};this[_0x1d3bb8(0x112)](),this[_0x1d3bb8(0x350)](this[_0x1d3bb8(0x2b5)]['onRemoteChangeset'](_0x50d288)),this[_0x1d3bb8(0x1c3)]();}[_0x103a68(0x355)](_0x14d1cd){const _0x1a73ec=_0x103a68;this[_0x1a73ec(0x112)](),this[_0x1a73ec(0x350)](this[_0x1a73ec(0x2b5)]['onRemoteAck'](_0x14d1cd)),this[_0x1a73ec(0x1c3)]();}[_0x103a68(0x281)](_0x5c56cd){const _0x247910=_0x103a68;this[_0x247910(0x112)](),this['_updateState'](this[_0x247910(0x2b5)][_0x247910(0x39a)](_0x5c56cd)),this[_0x247910(0x1c3)]();}[_0x103a68(0x296)](_0x30c3e2){const _0x3b9fbf=_0x103a68;this[_0x3b9fbf(0x112)](),this[_0x3b9fbf(0x350)](this[_0x3b9fbf(0x2b5)][_0x3b9fbf(0x2cc)](_0x30c3e2)),this['_unlockTransition']();}['_onFetchMissResult'](_0x284dba){const _0x4af206=_0x103a68;if(!(this[_0x4af206(0x2b5)]instanceof _0x1082a3))throw new TypeError(_0x4af206(0x1b5));const _0x4617b5=_0x284dba[_0x4af206(0x38a)](_0x2d5ccc=>{const _0x5d2db0=_0x4af206,_0x94f5d1=this[_0x5d2db0(0x211)][_0x5d2db0(0x4d4)]['fetchThroughInterceptors'](this[_0x5d2db0(0x211)][_0x5d2db0(0x4d4)][_0x5d2db0(0x11e)]()[_0x5d2db0(0xa8)])(_0x2d5ccc[_0x5d2db0(0x274)],null)||_0x2d5ccc[_0x5d2db0(0x274)];return{..._0x2d5ccc,'mutations':_0x94f5d1};});this[_0x4af206(0x112)](),this['_updateState'](this[_0x4af206(0x2b5)]['onMissedChangesetFetched'](_0x4617b5)),this[_0x4af206(0x1c3)]();}[_0x103a68(0x454)](){const _0xfdbd49=_0x103a68;this[_0xfdbd49(0x112)](),this[_0xfdbd49(0x350)](this[_0xfdbd49(0x2b5)][_0xfdbd49(0x36b)]()),this[_0xfdbd49(0x1c3)]();}[_0x103a68(0x4b7)](_0x4e0724=!0x1){const _0x121ddb=_0x103a68;this['_lockTransition'](),this[_0x121ddb(0x350)](this[_0x121ddb(0x2b5)]['toggleOnline']()),this[_0x121ddb(0x1c3)]();const _0x3d1996=this[_0x121ddb(0x2b5)];_0x4e0724&&_0x3d1996 instanceof _0xf7bbd9&&(this[_0x121ddb(0x112)](),this[_0x121ddb(0x350)](_0x3d1996[_0x121ddb(0x12b)]()),this['_unlockTransition']());}async[_0x103a68(0x1d4)](){return new Promise(_0x57874e=>{const _0x3c733e=_0x5cd2;this[_0x3c733e(0x374)][_0x3c733e(0x276)][_0x3c733e(0x3af)](_0x22d14a[_0x3c733e(0x193)](0x1))[_0x3c733e(0x3d1)](async _0x552089=>{const _0x40974a=_0x3c733e;_0x57874e(await this[_0x40974a(0x3dc)](_0x552089===_0x2c7c24[_0x40974a(0x2a6)]));});});}[_0x103a68(0x320)](){const _0x5a7e2a=_0x103a68,_0xc54d8e=this[_0x5a7e2a(0x19c)];return{'onStateChange':(_0x360769,_0x17109d)=>{const _0x262708=_0x5a7e2a;if(_0x360769!==this[_0x262708(0x2b5)])throw new Error(_0x262708(0x2d2)+_0x360769[_0x262708(0x45e)]+'\x0aAfter:\x20'+_0x17109d[_0x262708(0x45e)]+_0x262708(0x10b)+this[_0x262708(0x2b5)][_0x262708(0x45e)]);this[_0x262708(0x350)](_0x17109d);},'onSendChangeset':_0x47defc=>{const _0x91a0be=_0x5a7e2a;_0x47defc[_0x91a0be(0xce)]||(_0x47defc[_0x91a0be(0xce)]=this[_0x91a0be(0x110)],_0x47defc[_0x91a0be(0x3b9)]=++this[_0x91a0be(0x3e1)]);const _0x10a6de={'eventID':_0x162fdb[_0x91a0be(0x26c)][_0x91a0be(0x142)],'data':{'unitID':_0x47defc[_0x91a0be(0x19c)],'unitType':this[_0x91a0be(0x465)],'changeset':_0x47defc,'memberID':this[_0x91a0be(0x374)]['getMemberID']()}};this['session'][_0x91a0be(0x3ca)](_0x10a6de,this[_0x91a0be(0x19c)]);},'onMissingChangesets':({from:_0x2fff10,to:_0x25c4c3})=>{const _0x346672=_0x5a7e2a;this[_0x346672(0x442)]['debug'](_0x346672(0x1b3),'fetching\x20missing\x20changesets\x20from\x20'+_0x2fff10+_0x346672(0x338)+_0x25c4c3);const _0x4708fd={'eventID':_0x162fdb[_0x346672(0x26c)][_0x346672(0x46e)],'data':{'unitID':_0xc54d8e,'unitType':this[_0x346672(0x465)],'from':_0x2fff10,'to':_0x25c4c3}};this['session'][_0x346672(0x3ca)](_0x4708fd,this['unitID']);}};}async[_0x103a68(0x3dc)](_0x3f405d){const _0x2a12f6=_0x103a68;var _0x36f58e,_0x8de990;const _0x3c8af4=await this[_0x2a12f6(0x386)][_0x2a12f6(0x203)](this[_0x2a12f6(0x19c)]),_0x23233c=(_0x36f58e=_0x3c8af4==null?void 0x0:_0x3c8af4['mutations'])!=null?_0x36f58e:[],_0x3066bf=(_0x8de990=_0x3c8af4==null?void 0x0:_0x3c8af4[_0x2a12f6(0x3ae)])!=null?_0x8de990:null,_0x1cbcc4=!!(_0x3066bf!=null&&_0x3066bf[_0x2a12f6(0xce)])&&!!(_0x3066bf!=null&&_0x3066bf['reqId']);this['_changesetSessionId']=_0x1cbcc4?_0x3066bf[_0x2a12f6(0xce)]:_0x40e656(),this[_0x2a12f6(0x3e1)]=_0x1cbcc4?_0x3066bf[_0x2a12f6(0x3b9)]:0x0;const _0x473811=this['unitID'];try{this['_replayCachedMutations'](_0x3066bf,_0x23233c);}catch(_0x11848c){this[_0x2a12f6(0x442)][_0x2a12f6(0x35e)](_0x11848c);}const _0x6c16a=this[_0x2a12f6(0x320)]();if(_0x3f405d){const _0x18e382=_0x4d3d65(this[_0x2a12f6(0x165)],_0x473811,this['_type'],_0x3066bf,_0x23233c,_0x6c16a);return _0x18e382 instanceof _0x229ed3?_0x18e382['_schedule']():(_0x18e382 instanceof _0x558958||_0x18e382 instanceof _0x48b442)&&_0x18e382[_0x2a12f6(0x1ac)](),_0x18e382;}return this['_injector'][_0x2a12f6(0x432)](_0xa1f417,_0x473811,this[_0x2a12f6(0x465)],_0x3066bf,_0x23233c,_0x6c16a);}[_0x103a68(0x39c)](_0x33948b,_0x4f06d9){const _0x1ea3fa=_0x103a68;var _0x4d2f3f,_0x23af01;const _0x500992=this[_0x1ea3fa(0x211)][_0x1ea3fa(0x4d4)][_0x1ea3fa(0x3b4)](this[_0x1ea3fa(0x211)][_0x1ea3fa(0x4d4)][_0x1ea3fa(0x11e)]()[_0x1ea3fa(0xa8)]);(_0x4d2f3f=_0x500992((_0x33948b==null?void 0x0:_0x33948b[_0x1ea3fa(0x274)])||[],null))==null||_0x4d2f3f[_0x1ea3fa(0x196)](_0xcf8221=>this[_0x1ea3fa(0x44e)][_0x1ea3fa(0x3ab)](_0xcf8221['id'],_0xcf8221['params'])),(_0x23af01=_0x500992(_0x4f06d9||[],null))==null||_0x23af01[_0x1ea3fa(0x196)](_0x4a40a1=>this['_commandService'][_0x1ea3fa(0x3ab)](_0x4a40a1['id'],_0x4a40a1['params']));}},_0x4e0bbf['CollaborationEntity']=_0x420c61([_0x2206b4(0x3,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x2206b4(0x4,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x2b4)])),_0x2206b4(0x5,_0x460a10['Inject'](_0x162fdb[_0x103a68(0x16f)])),_0x2206b4(0x6,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0x2206b4(0x7,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x2206b4(0x8,_0x460a10[_0x103a68(0x362)]),_0x2206b4(0x9,_0x460a10['ICommandService']),_0x2206b4(0xa,_0x29b1e2[_0x103a68(0x43f)]),_0x2206b4(0xb,_0x460a10[_0x103a68(0x42c)]),_0x2206b4(0xc,_0x460a10[_0x103a68(0x152)](_0x2ad0c7))],_0x4e0bbf[_0x103a68(0x45f)]),_0x4e0bbf['DocCollaborationEntity']=class extends _0x4e0bbf['CollaborationEntity']{constructor(_0x2e66c2,_0x50097d,_0x23b8e7,_0x57a277,_0x4a8e26,_0x2fa1ad,_0x3e83a9,_0x429394,_0x1e3583,_0x117839,_0x57457d,_0x2d206b,_0x1ebc2a,_0xf5641,_0x6534f0,_0x4075da,_0x8e5227){const _0x4fcfa0=_0x103a68;super(_0x2e66c2,_0x23b8e7,_0x50097d,_0x57a277,_0x4a8e26,_0x2fa1ad,_0x3e83a9,_0x429394,_0x1ebc2a,_0xf5641,_0x6534f0,_0x4075da,_0x8e5227),this[_0x4fcfa0(0x19c)]=_0x2e66c2,this[_0x4fcfa0(0x483)]=_0x50097d,this[_0x4fcfa0(0x201)]=_0x1e3583,this[_0x4fcfa0(0x41b)]=_0x117839,this['_docTransformSelectionsService']=_0x57457d,this[_0x4fcfa0(0x1e5)]=_0x2d206b;}['_createHandler'](){const _0x18dfda=_0x103a68,_0x2d8af5=super[_0x18dfda(0x320)]();return _0x2d8af5['onTransformIME']=_0x5eba03=>this[_0x18dfda(0x41b)][_0x18dfda(0x273)](_0x5eba03),_0x2d8af5['onTransformSelections']=_0x3fde4b=>this[_0x18dfda(0x47c)][_0x18dfda(0x459)](_0x3fde4b),_0x2d8af5['onSyncEditingCollabCursor']=_0x3f487b=>this[_0x18dfda(0x1e5)][_0x18dfda(0x437)](_0x3f487b),_0x2d8af5['onTransformRemoteChangesetByIMECache']=_0x3dfdd5=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3dfdd5),_0x2d8af5;}async[_0x103a68(0x194)](){const _0x194348=_0x103a68,_0x14151c=await super[_0x194348(0x194)]();return this[_0x194348(0x201)][_0x194348(0x408)]['pipe'](_0x22d14a['takeUntil'](this['dispose$']))['subscribe'](_0xdbc126=>{const _0x4edee0=_0x194348;if(_0xdbc126==null)return;const {unitId:_0x330e1f,redoState:_0x4536e5,commandId:_0x22bb44}=_0xdbc126;if(_0x330e1f!==this[_0x4edee0(0x19c)])return;const _0x55b970={'id':_0x22bb44,'type':_0x460a10[_0x4edee0(0x3f6)][_0x4edee0(0x243)],'params':{'unitId':_0x330e1f,'actions':_0x4536e5[_0x4edee0(0x4da)],'textRanges':null}};this['_onLocalMutation'](_0x55b970);}),_0x14151c;}},_0x4e0bbf['DocCollaborationEntity']=_0x420c61([_0x2206b4(0x3,_0x460a10['Inject'](_0x460a10['Injector'])),_0x2206b4(0x4,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x2b4)])),_0x2206b4(0x5,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x16f)])),_0x2206b4(0x6,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0x2206b4(0x7,_0x460a10[_0x103a68(0x310)](_0x162fdb['RevisionService'])),_0x2206b4(0x8,_0x460a10[_0x103a68(0x310)](_0x39c231[_0x103a68(0x11a)])),_0x2206b4(0x9,_0x460a10[_0x103a68(0x310)](_0x28a6c0)),_0x2206b4(0xa,_0x460a10['Inject'](_0x85795)),_0x2206b4(0xb,_0x460a10[_0x103a68(0x310)](_0x2bf6d4)),_0x2206b4(0xc,_0x460a10[_0x103a68(0x362)]),_0x2206b4(0xd,_0x460a10[_0x103a68(0x134)]),_0x2206b4(0xe,_0x29b1e2[_0x103a68(0x43f)]),_0x2206b4(0xf,_0x460a10[_0x103a68(0x42c)]),_0x2206b4(0x10,_0x460a10[_0x103a68(0x152)](_0x2ad0c7))],_0x4e0bbf['DocCollaborationEntity']),_0x4e0bbf['SheetCollaborationEntity']=class extends _0x4e0bbf['CollaborationEntity']{constructor(_0x1fbc1d,_0x272c5e,_0x4a7f31,_0x368649,_0x293103,_0x5e26b8,_0x9d2514,_0x4b24d8,_0x20c7ce,_0x313123,_0x3818a7,_0x2f1523,_0x1d6265,_0x57d3b1){const _0xd441c7=_0x103a68;super(_0x1fbc1d,_0x4a7f31,_0x272c5e,_0x368649,_0x293103,_0x5e26b8,_0x9d2514,_0x4b24d8,_0x313123,_0x3818a7,_0x2f1523,_0x1d6265,_0x57d3b1),this[_0xd441c7(0x19c)]=_0x1fbc1d,this[_0xd441c7(0x483)]=_0x272c5e,this[_0xd441c7(0x3a6)]=_0x20c7ce;}[_0x103a68(0x320)](){const _0x482b73=_0x103a68,_0x2c082=super[_0x482b73(0x320)]();return _0x2c082[_0x482b73(0x17a)]=_0x5f3732=>this['_sheetTransformSelectionsService'][_0x482b73(0x459)](_0x5f3732),_0x2c082;}async['_init'](){const _0x51badf=_0x103a68,_0x170eb1=await super[_0x51badf(0x194)]();return this[_0x51badf(0x495)](this[_0x51badf(0x44e)][_0x51badf(0x2b1)]((_0x5c9e72,_0x159f49)=>{const _0x46589f=_0x51badf;if(_0x5c9e72[_0x46589f(0x483)]!==_0x460a10['CommandType'][_0x46589f(0x243)]||_0x159f49!=null&&_0x159f49[_0x46589f(0x16a)]||_0x159f49!=null&&_0x159f49[_0x46589f(0x478)])return;const _0x4d9898=_0x5c9e72[_0x46589f(0x31c)];if((_0x4d9898==null?void 0x0:_0x4d9898[_0x46589f(0x3b0)])!==this[_0x46589f(0x19c)])return;const _0x114aa5=_0x5c9e72,_0x32a98e=this[_0x46589f(0x211)]['interceptor'][_0x46589f(0x3b4)](this[_0x46589f(0x211)][_0x46589f(0x4d4)][_0x46589f(0x11e)]()[_0x46589f(0x1cb)])([_0x114aa5],null)||[_0x114aa5];this[_0x46589f(0x2bf)](_0x32a98e[0x0]);})),_0x170eb1;}},_0x4e0bbf[_0x103a68(0x129)]=_0x420c61([_0x2206b4(0x3,_0x460a10[_0x103a68(0x310)](_0x460a10['Injector'])),_0x2206b4(0x4,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x2b4)])),_0x2206b4(0x5,_0x460a10[_0x103a68(0x310)](_0x162fdb['CompressMutationService'])),_0x2206b4(0x6,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x176)])),_0x2206b4(0x7,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x2b0)])),_0x2206b4(0x8,_0x460a10[_0x103a68(0x310)](_0x1769cb)),_0x2206b4(0x9,_0x460a10['ILogService']),_0x2206b4(0xa,_0x460a10[_0x103a68(0x134)]),_0x2206b4(0xb,_0x29b1e2['IMessageService']),_0x2206b4(0xc,_0x460a10[_0x103a68(0x42c)]),_0x2206b4(0xd,_0x460a10[_0x103a68(0x152)](_0x2ad0c7))],_0x4e0bbf[_0x103a68(0x129)]);var _0x53b867=Object[_0x103a68(0x3a3)],_0x282903=Object['getOwnPropertyDescriptor'],_0x5db58d=(_0x37657d,_0x46ba1f,_0x10c3de,_0x2edcbb)=>{const _0x10ef81=_0x103a68;for(var _0xbaec3a=_0x2edcbb>0x1?void 0x0:_0x2edcbb?_0x282903(_0x46ba1f,_0x10c3de):_0x46ba1f,_0x155790=_0x37657d[_0x10ef81(0x292)]-0x1,_0x47fe3b;_0x155790>=0x0;_0x155790--)(_0x47fe3b=_0x37657d[_0x155790])&&(_0xbaec3a=(_0x2edcbb?_0x47fe3b(_0x46ba1f,_0x10c3de,_0xbaec3a):_0x47fe3b(_0xbaec3a))||_0xbaec3a);return _0x2edcbb&&_0xbaec3a&&_0x53b867(_0x46ba1f,_0x10c3de,_0xbaec3a),_0xbaec3a;},_0x1cf848=(_0x5059bd,_0x85126f)=>(_0x5d8660,_0x3a8975)=>_0x85126f(_0x5d8660,_0x3a8975,_0x5059bd);_0x4e0bbf[_0x103a68(0x26b)]=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x4d2866,_0x55c01a,_0xc49ba5){const _0x1c2671=_0x103a68;super(),_0x519548(this,_0x1c2671(0x2ac),new Map()),_0x519548(this,_0x1c2671(0x22d),new _0x22d14a[(_0x1c2671(0xb8))]()),(this[_0x1c2671(0x165)]=_0x4d2866,this[_0x1c2671(0x289)]=_0x55c01a,this[_0x1c2671(0x15d)]=_0xc49ba5,this['_init']());}['dispose'](){const _0x2ab87c=_0x103a68;super[_0x2ab87c(0x3fb)](),this[_0x2ab87c(0x2ac)][_0x2ab87c(0x196)](_0x53b8d2=>_0x53b8d2['dispose']()),this[_0x2ab87c(0x2ac)][_0x2ab87c(0xb1)]();}[_0x103a68(0x3ef)](_0x1628ba){const _0x2490b7=_0x103a68;var _0x47f560;return(_0x47f560=this[_0x2490b7(0x2ac)][_0x2490b7(0x1c8)](_0x1628ba))!=null?_0x47f560:null;}[_0x103a68(0x154)](_0x4b16e1){const _0x161473=this['getCollabEntity'](_0x4b16e1);return _0x161473?_0x22d14a['of'](_0x161473):this['_entityInit$']['pipe'](_0x436c5c['filter'](_0x182306=>_0x182306['unitID']===_0x4b16e1));}[_0x103a68(0x194)](){const _0x559335=_0x103a68;this[_0x559335(0x15d)][_0x559335(0xcb)](_0x460a10[_0x559335(0x3c9)][_0x559335(0x329)])[_0x559335(0x3af)](_0x22d14a[_0x559335(0x415)](this[_0x559335(0x20a)]),_0x436c5c[_0x559335(0x14a)](0x10))[_0x559335(0x3d1)](async _0x37b76e=>{const _0x3adc30=_0x559335,_0x293291=_0x37b76e[_0x3adc30(0xf7)](),_0x41068c=await this[_0x3adc30(0x4c4)](_0x293291,_0x3907d0[_0x3adc30(0x329)]);this[_0x3adc30(0x2ac)][_0x3adc30(0x29c)](_0x293291,_0x41068c);}),this['_univerInstanceService'][_0x559335(0xcb)](_0x460a10['UniverInstanceType'][_0x559335(0x208)])[_0x559335(0x3af)](_0x22d14a[_0x559335(0x415)](this[_0x559335(0x20a)]),_0x436c5c['delay'](0x10))[_0x559335(0x3af)](_0x436c5c[_0x559335(0x162)](_0x404a11=>!_0x404a11[_0x559335(0xf7)]()[_0x559335(0x38c)]('__')))[_0x559335(0x3d1)](async _0x3f28e7=>{const _0x1c9c45=_0x559335,_0x178c52=_0x3f28e7[_0x1c9c45(0xf7)](),_0x1bb2f1=await this[_0x1c9c45(0x4c4)](_0x178c52,_0x3907d0[_0x1c9c45(0x208)]);this['_entities'][_0x1c9c45(0x29c)](_0x178c52,_0x1bb2f1);}),_0x22d14a[_0x559335(0x477)](this['_univerInstanceService'][_0x559335(0x315)](_0x460a10[_0x559335(0x3c9)][_0x559335(0x329)]),this[_0x559335(0x15d)]['getTypeOfUnitDisposed$'](_0x460a10[_0x559335(0x3c9)]['UNIVER_DOC']))['pipe'](_0x22d14a['takeUntil'](this[_0x559335(0x20a)]))['subscribe'](_0x564ab4=>{const _0x3c027c=_0x559335,_0x4048ed=_0x564ab4[_0x3c027c(0xf7)](),_0x53ef0d=this[_0x3c027c(0x2ac)][_0x3c027c(0x1c8)](_0x4048ed);_0x53ef0d&&(_0x53ef0d['dispose'](),this['_entities'][_0x3c027c(0xe0)](_0x4048ed));});}async[_0x103a68(0x4c4)](_0x25960e,_0x317f7a){const _0x35c3bf=_0x103a68,_0x5e38bd=await this['_collabSessionService'][_0x35c3bf(0x43c)](_0x25960e),_0x3e2fa2=this[_0x35c3bf(0x165)][_0x35c3bf(0x432)](this[_0x35c3bf(0xfe)](_0x317f7a),_0x25960e,_0x317f7a,_0x5e38bd);return await _0x3e2fa2[_0x35c3bf(0x40b)](),this[_0x35c3bf(0x22d)]['next'](_0x3e2fa2),_0x3e2fa2;}[_0x103a68(0xfe)](_0x45013d){const _0x54c5f5=_0x103a68;switch(_0x45013d){case _0x3907d0['UNIVER_DOC']:return _0x4e0bbf[_0x54c5f5(0x494)];case _0x3907d0['UNIVER_SHEET']:return _0x4e0bbf[_0x54c5f5(0x129)];default:throw new Error(_0x54c5f5(0xed)+_0x45013d);}}},_0x4e0bbf[_0x103a68(0x26b)]=_0x5db58d([_0x1cf848(0x0,_0x460a10['Inject'](_0x460a10[_0x103a68(0x15b)])),_0x1cf848(0x1,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x248)])),_0x1cf848(0x2,_0x460a10[_0x103a68(0x347)])],_0x4e0bbf['CollaborationController']);const _0x5792eb=[_0x103a68(0x1e3),_0x103a68(0x10e),'verdancy600',_0x103a68(0x1b9),_0x103a68(0x449),_0x103a68(0x272)];class _0x57aeec extends _0x460a10[_0x103a68(0xd1)]{constructor(){const _0x28fa0b=_0x103a68;super(...arguments),_0x519548(this,_0x28fa0b(0x2d8),new Map()),_0x519548(this,_0x28fa0b(0x2fa),0x0);}['assignAColorForMemberID'](_0x24d0ae){const _0x12d7b2=_0x103a68;if(this[_0x12d7b2(0x2d8)][_0x12d7b2(0x401)](_0x24d0ae))return this[_0x12d7b2(0x2d8)][_0x12d7b2(0x1c8)](_0x24d0ae);const _0x5d11a2=_0x5792eb[this['_colorIndex']];return this[_0x12d7b2(0x2fa)]=(this['_colorIndex']+0x1)%_0x5792eb[_0x12d7b2(0x292)],this[_0x12d7b2(0x2d8)]['set'](_0x24d0ae,_0x5d11a2),_0x5d11a2;}}var _0x594aa1=Object[_0x103a68(0x3a3)],_0x4ab8c0=Object[_0x103a68(0x138)],_0x4019c8=(_0x5d6bc7,_0x155b91,_0x426262,_0x4ed237)=>{const _0x26faa0=_0x103a68;for(var _0x2aabd2=_0x4ed237>0x1?void 0x0:_0x4ed237?_0x4ab8c0(_0x155b91,_0x426262):_0x155b91,_0x145557=_0x5d6bc7[_0x26faa0(0x292)]-0x1,_0x5d7ac2;_0x145557>=0x0;_0x145557--)(_0x5d7ac2=_0x5d6bc7[_0x145557])&&(_0x2aabd2=(_0x4ed237?_0x5d7ac2(_0x155b91,_0x426262,_0x2aabd2):_0x5d7ac2(_0x2aabd2))||_0x2aabd2);return _0x4ed237&&_0x2aabd2&&_0x594aa1(_0x155b91,_0x426262,_0x2aabd2),_0x2aabd2;},_0x5c5323=(_0x2e3532,_0x4c4c49)=>(_0x292b3f,_0x4cccd0)=>_0x4c4c49(_0x292b3f,_0x4cccd0,_0x2e3532);const _0x21dd38=0x12c,_0x4210f6=0x64;let _0x2c7e04=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x39b724,_0x153efa,_0x10786c,_0x2d2d9e,_0x336009,_0x1c93e1,_0x33a46a,_0x3855c1,_0x947f61){const _0x2e6661=_0x103a68;super(),_0x519548(this,_0x2e6661(0x2ad),!0x1),_0x519548(this,'_init',!0x1),_0x519548(this,_0x2e6661(0x4b6),new _0x22d14a[(_0x2e6661(0x23d))](new Map())),_0x519548(this,'cursorInfo$',this['_cursorInfo$'][_0x2e6661(0x1a5)]()),_0x519548(this,_0x2e6661(0x199),new _0x22d14a[(_0x2e6661(0x23d))]([])),_0x519548(this,'roomMembers$',this[_0x2e6661(0x199)][_0x2e6661(0x3af)](_0x22d14a[_0x2e6661(0x27d)](_0x21dd38))),_0x519548(this,_0x2e6661(0x3aa),_0x460a10[_0x2e6661(0x4a8)](_0x3d6692=>{const _0x85bb80=_0x2e6661,_0x50d1b0={'eventID':_0x162fdb[_0x85bb80(0x26c)][_0x85bb80(0x4a6)],'data':{'unitID':this[_0x85bb80(0x19c)],'memberID':this[_0x85bb80(0x2eb)][_0x85bb80(0x135)](),'selection':_0x5d2166(_0x3d6692)}};this[_0x85bb80(0x2eb)][_0x85bb80(0x3ca)](_0x50d1b0,this['unitID']);},_0x4210f6)),(this[_0x2e6661(0x19c)]=_0x39b724,this[_0x2e6661(0x2eb)]=_0x153efa,this[_0x2e6661(0x165)]=_0x10786c,this[_0x2e6661(0xab)]=_0x2d2d9e,this['_memberService']=_0x336009,this[_0x2e6661(0x17d)]=_0x1c93e1,this[_0x2e6661(0xf9)]=_0x33a46a,this[_0x2e6661(0x15d)]=_0x3855c1,this[_0x2e6661(0x44e)]=_0x947f61);}get[_0x103a68(0x19a)](){const _0x38eca8=_0x103a68;return this[_0x38eca8(0x4b6)][_0x38eca8(0x1d7)]();}get[_0x103a68(0x368)](){const _0x430cae=_0x103a68;return this[_0x430cae(0x199)][_0x430cae(0x1d7)]();}[_0x103a68(0x3fb)](){const _0x5b459=_0x103a68;super[_0x5b459(0x3fb)](),this[_0x5b459(0x4b6)]['next'](new Map()),this[_0x5b459(0x4b6)][_0x5b459(0x31e)](),this[_0x5b459(0x199)][_0x5b459(0x1bb)]([]),this[_0x5b459(0x199)]['complete']();}[_0x103a68(0x40b)](){const _0x2aa232=_0x103a68;this[_0x2aa232(0x194)]||(this[_0x2aa232(0x194)]=!0x0,this['_session'][_0x2aa232(0x276)][_0x2aa232(0x3af)](_0x22d14a[_0x2aa232(0x415)](this[_0x2aa232(0x20a)]))['subscribe'](_0x1b9dec=>{const _0x59427f=_0x2aa232;_0x1b9dec===_0x2c7c24['ONLINE']?this[_0x59427f(0x4b7)]():this[_0x59427f(0x454)]();}),this[_0x2aa232(0x2eb)][_0x2aa232(0x1e1)][_0x2aa232(0x3af)](_0x22d14a[_0x2aa232(0x415)](this[_0x2aa232(0x20a)]))[_0x2aa232(0x3d1)](_0x587c2e=>{const _0x2104ad=_0x2aa232,_0x3048d0=_0x587c2e[_0x2104ad(0x2fe)];_0x3048d0===_0x162fdb[_0x2104ad(0x26c)]['UPDATE_CURSOR']&&this[_0x2104ad(0x384)](_0x587c2e),_0x3048d0===_0x162fdb['CollaborationEvent']['USERS_LEAVE']&&this[_0x2104ad(0x43b)](_0x587c2e);}),this[_0x2aa232(0x495)](this[_0x2aa232(0x44e)][_0x2aa232(0x2b1)](_0x2bbcee=>{const _0x4b46c3=_0x2aa232,_0x507f00=_0x2bbcee['params'];_0x507f00!=null&&this['_online']&&_0x2bbcee['id']===_0x447cee[_0x4b46c3(0x3d5)]['id']&&_0x507f00['unitId']===this[_0x4b46c3(0x19c)]&&_0x507f00['isEditing']===!0x1&&this[_0x4b46c3(0x3aa)](_0x507f00[_0x4b46c3(0x4cf)]);})),this[_0x2aa232(0x17d)][_0x2aa232(0x17b)][_0x2aa232(0x3af)](_0x22d14a[_0x2aa232(0x415)](this[_0x2aa232(0x20a)]))[_0x2aa232(0x3d1)](_0x428f3d=>{const _0x45e6ac=_0x2aa232;if((_0x428f3d==null?void 0x0:_0x428f3d['unitID'])!==this[_0x45e6ac(0x19c)])return;const _0x60008={'eventID':_0x162fdb[_0x45e6ac(0x26c)]['UPDATE_CURSOR'],'data':_0x428f3d};this[_0x45e6ac(0x384)](_0x60008);}),this[_0x2aa232(0x495)](this[_0x2aa232(0x44e)][_0x2aa232(0x2b1)](_0x50ce4c=>{const _0x3f3deb=_0x2aa232;if(_0x50ce4c[_0x3f3deb(0x31c)]==null)return;const _0x15841b=_0x50ce4c[_0x3f3deb(0x31c)];if(_0x50ce4c['id']!==_0x447cee[_0x3f3deb(0x1f9)]['id']||_0x15841b[_0x3f3deb(0x3b0)]!==this[_0x3f3deb(0x19c)])return;const _0xa0e137={'id':_0x3f3deb(0xb9),'params':_0x15841b},_0x4b4b07=this[_0x3f3deb(0x19a)];for(const [_0x93cc72,_0x5c9f55]of _0x4b4b07){const _0x5a4f18={'id':_0x3f3deb(0xb9),'params':{'unitId':this[_0x3f3deb(0x19c)],'actions':null,'textRanges':_0x5c9f55[_0x3f3deb(0x4cf)]}},_0x2bac20=this[_0x3f3deb(0xf9)]['transformMutation'](_0xa0e137,_0x5a4f18,!0x1);if(_0x162fdb['isTransformMutationFailure'](_0x2bac20))throw _0x2bac20[_0x3f3deb(0x35e)];_0x4b4b07[_0x3f3deb(0x29c)](_0x93cc72,{..._0x5c9f55,'ranges':_0x2bac20[_0x3f3deb(0xf6)][_0x3f3deb(0x31c)][_0x3f3deb(0xec)]});}queueMicrotask(()=>{const _0xdd3dbc=_0x3f3deb;this['_cursorInfo$'][_0xdd3dbc(0x1bb)](_0x4b4b07);});})));}[_0x103a68(0x384)](_0x29efce){const _0x946369=_0x103a68;var _0x3b023a,_0x45d2a6;const {memberID:_0x22add5,selection:_0x5b3b4a}=_0x29efce[_0x946369(0x47f)],_0x3fffce=_0x380b63(_0x5b3b4a),_0x4a4d06=(_0x45d2a6=(_0x3b023a=this[_0x946369(0x469)][_0x946369(0x481)](this['unitID'],_0x22add5))==null?void 0x0:_0x3b023a[_0x946369(0x3e2)])!=null?_0x45d2a6:_0x946369(0x204),_0x56d5a8={'color':this[_0x946369(0xab)]['assignAColorForMemberID'](_0x22add5),'name':_0x4a4d06,'ranges':_0x3fffce},_0x31ffef=this['cursorInfo'];_0x31ffef['set'](_0x22add5,_0x56d5a8),this[_0x946369(0x4b6)]['next'](_0x31ffef);}[_0x103a68(0x43b)](_0x1bfe4a){const _0x2057bb=_0x103a68,{memberID:_0x66223e}=_0x1bfe4a[_0x2057bb(0x47f)],_0x4e7bcb=this['cursorInfo'];_0x4e7bcb[_0x2057bb(0xe0)](_0x66223e),this['_cursorInfo$'][_0x2057bb(0x1bb)](_0x4e7bcb);}['_toggleOnline'](){const _0x1891cd=_0x103a68;var _0x2d78ad;if(this['_online']=!0x0,((_0x2d78ad=this[_0x1891cd(0x15d)][_0x1891cd(0xe3)]())==null?void 0x0:_0x2d78ad[_0x1891cd(0xf7)]())!==this['unitID'])return;const _0x11dac8=this['_injector'][_0x1891cd(0x1c8)](_0x447cee[_0x1891cd(0x492)])['getDocRanges']();Array[_0x1891cd(0x328)](_0x11dac8)&&_0x11dac8['length']>0x0&&this[_0x1891cd(0x3aa)](_0x11dac8);}[_0x103a68(0x454)](){const _0x207d89=_0x103a68;this[_0x207d89(0x2ad)]=!0x1;}};_0x2c7e04=_0x4019c8([_0x5c5323(0x2,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x5c5323(0x3,_0x460a10['Inject'](_0x57aeec)),_0x5c5323(0x4,_0x460a10[_0x103a68(0x310)](_0xf42097)),_0x5c5323(0x5,_0x460a10[_0x103a68(0x310)](_0x2bf6d4)),_0x5c5323(0x6,_0x162fdb['ITransformService']),_0x5c5323(0x7,_0x460a10[_0x103a68(0x347)]),_0x5c5323(0x8,_0x460a10[_0x103a68(0x134)])],_0x2c7e04);var _0x1c5557=Object[_0x103a68(0x3a3)],_0x484f2b=Object['getOwnPropertyDescriptor'],_0x17c35e=(_0x3a6d48,_0x21ccec,_0x3db548,_0x3b1923)=>{const _0x54523d=_0x103a68;for(var _0x295855=_0x3b1923>0x1?void 0x0:_0x3b1923?_0x484f2b(_0x21ccec,_0x3db548):_0x21ccec,_0x12c22d=_0x3a6d48[_0x54523d(0x292)]-0x1,_0x48c08;_0x12c22d>=0x0;_0x12c22d--)(_0x48c08=_0x3a6d48[_0x12c22d])&&(_0x295855=(_0x3b1923?_0x48c08(_0x21ccec,_0x3db548,_0x295855):_0x48c08(_0x295855))||_0x295855);return _0x3b1923&&_0x295855&&_0x1c5557(_0x21ccec,_0x3db548,_0x295855),_0x295855;},_0x2d39a9=(_0x354361,_0x4d8519)=>(_0x2fb47c,_0x22d828)=>_0x4d8519(_0x2fb47c,_0x22d828,_0x354361);const _0x147d1b=0x12c,_0x48e1b8=0x64,_0x46903c=()=>{let _0x3bc83c=[],_0x24e5f4=!0x1;return _0x2b0230=>{const _0x2f5965=_0x5cd2;_0x3bc83c[_0x2f5965(0x420)](_0x2b0230),_0x24e5f4||(_0x24e5f4=!0x0,setTimeout(()=>{const _0x58b31f=_0x2f5965;_0x3bc83c[_0x58b31f(0x196)](_0x414349=>_0x414349()),_0x3bc83c=[],_0x24e5f4=!0x1;}));};};let _0x9a8bae=class extends _0x460a10['RxDisposable']{constructor(_0x2f2c2d,_0x3c56f7,_0x592822,_0x4fd56d,_0x359cbf,_0xc9051a,_0x39c076,_0x12b06f){const _0x5c0d8e=_0x103a68;super(),_0x519548(this,_0x5c0d8e(0x2ad),!0x1),_0x519548(this,_0x5c0d8e(0x194),!0x1),_0x519548(this,_0x5c0d8e(0x4b6),new _0x22d14a[(_0x5c0d8e(0x23d))](new Map())),_0x519548(this,_0x5c0d8e(0x3e0),this[_0x5c0d8e(0x4b6)][_0x5c0d8e(0x1a5)]()),_0x519548(this,_0x5c0d8e(0x199),new _0x22d14a[(_0x5c0d8e(0x23d))]([])),_0x519548(this,_0x5c0d8e(0x4d1),this['_roomMembers$'][_0x5c0d8e(0x3af)](_0x22d14a['debounceTime'](_0x147d1b))),_0x519548(this,_0x5c0d8e(0x3aa),_0x460a10[_0x5c0d8e(0x4a8)]((_0x364c12,_0x2718f6)=>{const _0x5b77de=_0x5c0d8e,_0x5ea007={'eventID':_0x162fdb[_0x5b77de(0x26c)][_0x5b77de(0x4a6)],'data':{'unitID':this[_0x5b77de(0x19c)],'memberID':this['_session'][_0x5b77de(0x135)](),'selection':_0x3a49db[_0x5b77de(0x1e2)](_0x364c12,_0x2718f6[_0x5b77de(0x222)])}};this[_0x5b77de(0x2eb)][_0x5b77de(0x3ca)](_0x5ea007,this[_0x5b77de(0x19c)]);},_0x48e1b8)),(this[_0x5c0d8e(0x19c)]=_0x2f2c2d,this[_0x5c0d8e(0x2eb)]=_0x3c56f7,this[_0x5c0d8e(0x165)]=_0x592822,this['_colorAssignService']=_0x4fd56d,this[_0x5c0d8e(0x469)]=_0x359cbf,this['_univerInstanceService']=_0xc9051a,this[_0x5c0d8e(0x44e)]=_0x39c076,this[_0x5c0d8e(0x464)]=_0x12b06f);}get[_0x103a68(0x19a)](){const _0x30f978=_0x103a68;return this['_cursorInfo$'][_0x30f978(0x1d7)]();}get[_0x103a68(0x368)](){const _0x93da00=_0x103a68;return this[_0x93da00(0x199)]['getValue']();}['dispose'](){const _0x4ecac5=_0x103a68;super['dispose'](),this[_0x4ecac5(0x4b6)]['next'](new Map()),this[_0x4ecac5(0x4b6)]['complete'](),this[_0x4ecac5(0x199)][_0x4ecac5(0x1bb)]([]),this['_roomMembers$']['complete']();}[_0x103a68(0x40b)](){const _0x2c02ce=_0x103a68;this[_0x2c02ce(0x194)]||(this[_0x2c02ce(0x194)]=!0x0,this[_0x2c02ce(0x2eb)][_0x2c02ce(0x276)][_0x2c02ce(0x3af)](_0x22d14a['takeUntil'](this[_0x2c02ce(0x20a)]))[_0x2c02ce(0x3d1)](_0x49c996=>{const _0x34748a=_0x2c02ce;_0x49c996===_0x2c7c24[_0x34748a(0x2a6)]?this[_0x34748a(0x4b7)]():this[_0x34748a(0x454)]();}),this['_session']['event$']['pipe'](_0x22d14a[_0x2c02ce(0x415)](this[_0x2c02ce(0x20a)]))['subscribe'](_0x42d5b0=>{const _0x193bd3=_0x2c02ce,_0x2f305c=_0x42d5b0[_0x193bd3(0x2fe)];_0x2f305c===_0x162fdb[_0x193bd3(0x26c)][_0x193bd3(0x4a6)]&&this[_0x193bd3(0x384)](_0x42d5b0),_0x2f305c===_0x162fdb[_0x193bd3(0x26c)]['USERS_LEAVE']&&this[_0x193bd3(0x43b)](_0x42d5b0);}),this[_0x2c02ce(0x484)](),this[_0x2c02ce(0x495)](this[_0x2c02ce(0x44e)][_0x2c02ce(0x2b1)](_0x471e2c=>{const _0x3b9a6e=_0x2c02ce;if(this[_0x3b9a6e(0x2ad)]&&_0x471e2c['id']===_0x57c232['SetSelectionsOperation']['id']&&_0x471e2c[_0x3b9a6e(0x31c)]['unitId']===this[_0x3b9a6e(0x19c)]){const _0x5c00d9=_0x471e2c[_0x3b9a6e(0x31c)];this[_0x3b9a6e(0x3aa)](_0x5c00d9[_0x3b9a6e(0x25a)],_0x5c00d9[_0x3b9a6e(0x40c)][0x0]);}})));}[_0x103a68(0x384)](_0x46f404){const _0x144d66=_0x103a68;var _0x56db3e,_0x3898c2;const {memberID:_0x634d5b,selection:_0x360989}=_0x46f404[_0x144d66(0x47f)],{sheetName:_0x1677f4,range:_0x4cebdd}=_0x3a49db[_0x144d66(0x3d2)](_0x360989),_0x4271fd={'name':(_0x3898c2=(_0x56db3e=this[_0x144d66(0x469)]['getMember'](this[_0x144d66(0x19c)],_0x634d5b))==null?void 0x0:_0x56db3e[_0x144d66(0x3e2)])!=null?_0x3898c2:_0x144d66(0x204),'range':this[_0x144d66(0x30e)](_0x1677f4,_0x4cebdd),'sheetID':_0x1677f4,'color':this[_0x144d66(0xab)][_0x144d66(0x1cc)](_0x634d5b),'selection':_0x360989},_0x278929=this[_0x144d66(0x19a)];_0x278929[_0x144d66(0x29c)](_0x634d5b,_0x4271fd),this[_0x144d66(0x4b6)][_0x144d66(0x1bb)](_0x278929);}['_onCursorDelete'](_0x32d30f){const _0x9556a0=_0x103a68,{memberID:_0x1cd2e1}=_0x32d30f[_0x9556a0(0x47f)],_0x4d1cbb=this[_0x9556a0(0x19a)];_0x4d1cbb[_0x9556a0(0xe0)](_0x1cd2e1),this[_0x9556a0(0x4b6)][_0x9556a0(0x1bb)](_0x4d1cbb);}[_0x103a68(0x30e)](_0x1f7772,_0x36b245){const _0x176f07=_0x103a68;var _0x18e7bf,_0x14cceb;const _0x579682=(_0x14cceb=(_0x18e7bf=this['_univerInstanceService'][_0x176f07(0x37d)](this['unitID']))==null?void 0x0:_0x18e7bf[_0x176f07(0x307)](_0x1f7772))==null?void 0x0:_0x14cceb['getMergeData']();return(_0x579682==null?void 0x0:_0x579682['find'](_0x3a68d3=>_0x460a10[_0x176f07(0x2c4)]['contains'](_0x3a68d3,_0x36b245)))||_0x36b245;}[_0x103a68(0x484)](){const _0x1ec2aa=_0x103a68,_0x955310=new _0x460a10[(_0x1ec2aa(0x4c7))](),_0x1daf52=_0x46903c(),_0x4f1d4a=()=>{const _0x40a73d=_0x1ec2aa;_0x955310[_0x40a73d(0x3fb)]();const _0x5d2279=(_0xa81a91,_0x18a0ca,_0x126fd2,_0x4d20a2)=>{const _0x4c4100=_0x40a73d;let _0x4cf1a2=[];switch(_0xa81a91['id']){case _0x57c232['EffectRefRangId'][_0x4c4100(0x3de)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x25f)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)][_0x4c4100(0x322)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x264)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)][_0x4c4100(0x2f8)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x2bb)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)][_0x4c4100(0x49a)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x141)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)]['InsertRangeMoveRightCommandId']:{_0x4cf1a2=_0x57c232[_0x4c4100(0xac)](_0xa81a91,_0x4d20a2);break;}case _0x57c232['EffectRefRangId'][_0x4c4100(0x254)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x342)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)][_0x4c4100(0x34f)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x318)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)][_0x4c4100(0x16d)]:{_0x4cf1a2=_0x57c232[_0x4c4100(0x438)](_0xa81a91,_0x4d20a2);break;}case _0x57c232[_0x4c4100(0x36d)][_0x4c4100(0x2b6)]:{_0x4cf1a2=_0x57c232['handleIRemoveRow'](_0xa81a91,_0x4d20a2);break;}}const _0x112f3b=_0x57c232['runRefRangeMutations'](_0x4cf1a2,_0x4d20a2),_0x523783=this[_0x4c4100(0x19a)][_0x4c4100(0x1c8)](_0x18a0ca);if(_0x523783&&_0x112f3b){const _0x254b26={..._0x523783,'range':_0x112f3b};this[_0x4c4100(0x19a)][_0x4c4100(0x29c)](_0x18a0ca,_0x254b26),_0x1daf52(()=>{const _0x54c64e=_0x4c4100,_0x1250e5=this[_0x54c64e(0x464)]['registerRefRange'](_0x112f3b,_0x30cf62=>(_0x1250e5[_0x54c64e(0x3fb)](),_0x5d2279(_0x30cf62,_0x18a0ca,_0x126fd2,_0x112f3b)));_0x955310['add'](_0x1250e5);});}return{'redos':[],'undos':[]};};this[_0x40a73d(0x19a)][_0x40a73d(0x196)]((_0x531afd,_0x40382b)=>{const _0x10ce85=_0x40a73d,{range:_0x5b2a2d,sheetID:_0x3416bf}=_0x531afd,_0x1827d0=this[_0x10ce85(0x464)][_0x10ce85(0x233)](_0x5b2a2d,_0x16993c=>(_0x1827d0[_0x10ce85(0x3fb)](),_0x5d2279(_0x16993c,_0x40382b,_0x3416bf,_0x5b2a2d)));_0x955310[_0x10ce85(0x3cd)](_0x1827d0);});};this[_0x1ec2aa(0x495)](_0x460a10[_0x1ec2aa(0x1ff)](this['_cursorInfo$'][_0x1ec2aa(0x3d1)](()=>{_0x4f1d4a();})));}[_0x103a68(0x4b7)](){const _0x3c9fe9=_0x103a68;var _0x331c50,_0x2694b4;if(this[_0x3c9fe9(0x2ad)]=!0x0,((_0x331c50=this['_univerInstanceService'][_0x3c9fe9(0xe3)]())==null?void 0x0:_0x331c50[_0x3c9fe9(0xf7)]())!==this[_0x3c9fe9(0x19c)])return;const _0x28627e=(_0x2694b4=this[_0x3c9fe9(0x165)][_0x3c9fe9(0x1c8)](_0x57c232[_0x3c9fe9(0x268)])[_0x3c9fe9(0x402)]())==null?void 0x0:_0x2694b4[0x0],_0x5dd44f=this[_0x3c9fe9(0x15d)][_0x3c9fe9(0x253)](_0x460a10[_0x3c9fe9(0x3c9)][_0x3c9fe9(0x329)])[_0x3c9fe9(0x3f7)]();_0x28627e&&_0x5dd44f&&this[_0x3c9fe9(0x3aa)](_0x5dd44f[_0x3c9fe9(0x225)](),_0x28627e);}['_toggleOffline'](){const _0x4a67a2=_0x103a68;this[_0x4a67a2(0x2ad)]=!0x1;}};_0x9a8bae=_0x17c35e([_0x2d39a9(0x2,_0x460a10[_0x103a68(0x310)](_0x460a10['Injector'])),_0x2d39a9(0x3,_0x460a10[_0x103a68(0x310)](_0x57aeec)),_0x2d39a9(0x4,_0x460a10[_0x103a68(0x310)](_0xf42097)),_0x2d39a9(0x5,_0x460a10[_0x103a68(0x347)]),_0x2d39a9(0x6,_0x460a10[_0x103a68(0x134)]),_0x2d39a9(0x7,_0x460a10[_0x103a68(0x310)](_0x57c232[_0x103a68(0x3a7)]))],_0x9a8bae);var _0x1362e6=Object['defineProperty'],_0x1c47fd=Object['getOwnPropertyDescriptor'],_0x27743d=(_0x544329,_0x57b358,_0x5949f8,_0x343f96)=>{for(var _0x27baa9=_0x343f96>0x1?void 0x0:_0x343f96?_0x1c47fd(_0x57b358,_0x5949f8):_0x57b358,_0x38fa77=_0x544329['length']-0x1,_0x2c58aa;_0x38fa77>=0x0;_0x38fa77--)(_0x2c58aa=_0x544329[_0x38fa77])&&(_0x27baa9=(_0x343f96?_0x2c58aa(_0x57b358,_0x5949f8,_0x27baa9):_0x2c58aa(_0x27baa9))||_0x27baa9);return _0x343f96&&_0x27baa9&&_0x1362e6(_0x57b358,_0x5949f8,_0x27baa9),_0x27baa9;},_0x27545b=(_0x5862a8,_0x542021)=>(_0x4b5f1b,_0x1c0a64)=>_0x542021(_0x4b5f1b,_0x1c0a64,_0x5862a8);let _0x378058=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x359a16,_0x582d27,_0x23b4c4){const _0x30e61c=_0x103a68;super(),_0x519548(this,'_entities',new Map()),_0x519548(this,_0x30e61c(0x22d),new _0x22d14a[(_0x30e61c(0xb8))]()),(this[_0x30e61c(0x15d)]=_0x359a16,this[_0x30e61c(0x165)]=_0x582d27,this[_0x30e61c(0x289)]=_0x23b4c4,this[_0x30e61c(0x194)]());}[_0x103a68(0x3fb)](){const _0x307d28=_0x103a68;super[_0x307d28(0x3fb)](),this[_0x307d28(0x22d)][_0x307d28(0x31e)](),this['_entities'][_0x307d28(0x196)](_0x3502b1=>_0x3502b1['dispose']());}[_0x103a68(0x224)](_0x45885c){const _0x4a9dd2=_0x103a68;return this[_0x4a9dd2(0x2ac)]['has'](_0x45885c)?this[_0x4a9dd2(0x2ac)][_0x4a9dd2(0x1c8)](_0x45885c)['cursorInfo$']:this['_entityInit$'][_0x4a9dd2(0x3af)](_0x22d14a[_0x4a9dd2(0x162)](_0x5a3676=>_0x5a3676[_0x4a9dd2(0x19c)]===_0x45885c),_0x22d14a[_0x4a9dd2(0x26e)](_0x1f93f1=>_0x1f93f1['cursorInfo$']));}['_init'](){const _0x474cc5=_0x103a68;this[_0x474cc5(0x15d)]['getTypeOfUnitAdded$'](_0x460a10[_0x474cc5(0x3c9)][_0x474cc5(0x329)])['pipe'](_0x22d14a['takeUntil'](this['dispose$']))[_0x474cc5(0x3d1)](async _0xa25bb5=>{const _0x3309f5=_0x474cc5,_0x595fe2=_0xa25bb5['getUnitId'](),_0x317c2c=await this[_0x3309f5(0x3f1)](_0x595fe2);this[_0x3309f5(0x22d)]['next'](_0x317c2c),this['_entities'][_0x3309f5(0x29c)](_0x595fe2,_0x317c2c);}),this[_0x474cc5(0x15d)][_0x474cc5(0xcb)](_0x460a10[_0x474cc5(0x3c9)]['UNIVER_DOC'])[_0x474cc5(0x3af)](_0x22d14a[_0x474cc5(0x415)](this[_0x474cc5(0x20a)]))[_0x474cc5(0x3af)](_0x22d14a[_0x474cc5(0x162)](_0x243341=>!_0x243341[_0x474cc5(0xf7)]()[_0x474cc5(0x38c)]('__')))[_0x474cc5(0x3d1)](async _0x2984a5=>{const _0x3cab3e=_0x474cc5,_0x27123d=_0x2984a5['getUnitId'](),_0x2ed11e=await this[_0x3cab3e(0x3d0)](_0x27123d);this['_entityInit$'][_0x3cab3e(0x1bb)](_0x2ed11e),this['_entities'][_0x3cab3e(0x29c)](_0x27123d,_0x2ed11e);}),_0x22d14a['merge'](this[_0x474cc5(0x15d)][_0x474cc5(0x315)](_0x460a10['UniverInstanceType'][_0x474cc5(0x208)]),this[_0x474cc5(0x15d)]['getTypeOfUnitDisposed$'](_0x460a10[_0x474cc5(0x3c9)][_0x474cc5(0x329)]))[_0x474cc5(0x3af)](_0x22d14a[_0x474cc5(0x415)](this[_0x474cc5(0x20a)]))[_0x474cc5(0x3d1)](_0x14e8e2=>{const _0x419c3f=_0x474cc5,_0x549345=_0x14e8e2['getUnitId'](),_0x25af5f=this['_entities']['get'](_0x549345);_0x25af5f&&(_0x25af5f['dispose'](),this[_0x419c3f(0x2ac)][_0x419c3f(0xe0)](_0x549345));});}async[_0x103a68(0x3f1)](_0x1e7995){const _0xd99a5b=_0x103a68,_0x561bfd=await this[_0xd99a5b(0x289)][_0xd99a5b(0x43c)](_0x1e7995),_0x3bf830=this[_0xd99a5b(0x165)][_0xd99a5b(0x432)](_0x9a8bae,_0x1e7995,_0x561bfd);return _0x3bf830[_0xd99a5b(0x40b)](),_0x3bf830;}async[_0x103a68(0x3d0)](_0x59afa5){const _0x21d917=_0x103a68,_0x473bae=await this[_0x21d917(0x289)]['requireSession'](_0x59afa5),_0x619436=this['_injector'][_0x21d917(0x432)](_0x2c7e04,_0x59afa5,_0x473bae);return _0x619436[_0x21d917(0x40b)](),_0x619436;}};_0x378058=_0x27743d([_0x27545b(0x0,_0x460a10[_0x103a68(0x347)]),_0x27545b(0x1,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x27545b(0x2,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x248)]))],_0x378058);const _0x1630e6=0x14,_0x15dd30=0xc8,_0x145f4a=0x4,_0xd91ad3=0x5;function _0x30b2f4(_0x49bf12,_0x13544a){const _0x1f768c=_0x103a68;let {radius:_0x16b265,width:_0x1254cb,height:_0x306a95}=_0x13544a;_0x16b265=_0x16b265!=null?_0x16b265:0x0,_0x1254cb=_0x1254cb!=null?_0x1254cb:0x1e,_0x306a95=_0x306a95!=null?_0x306a95:0x1e;let _0xbe268e=0x0,_0x259fcc=0x0,_0x13a94f=0x0;_0xbe268e=_0x259fcc=_0x13a94f=Math[_0x1f768c(0x3cc)](_0x16b265,_0x1254cb/0x2,_0x306a95/0x2),_0x49bf12[_0x1f768c(0x2da)](),_0x49bf12['moveTo'](_0xbe268e,0x0),_0x49bf12[_0x1f768c(0xcc)](_0x1254cb-_0x259fcc,0x0),_0x49bf12[_0x1f768c(0x256)](_0x1254cb-_0x259fcc,_0x259fcc,_0x259fcc,Math['PI']*0x3/0x2,0x0,!0x1),_0x49bf12[_0x1f768c(0xcc)](_0x1254cb,_0x306a95-_0x13a94f),_0x49bf12[_0x1f768c(0x256)](_0x1254cb-_0x13a94f,_0x306a95-_0x13a94f,_0x13a94f,0x0,Math['PI']/0x2,!0x1),_0x49bf12[_0x1f768c(0xcc)](0x0,_0x306a95),_0x49bf12[_0x1f768c(0xcc)](0x0,_0xbe268e),_0x49bf12[_0x1f768c(0x256)](_0xbe268e,_0xbe268e,_0xbe268e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49bf12['closePath'](),_0x13544a['fill']&&(_0x49bf12['save'](),_0x49bf12[_0x1f768c(0x47a)]=_0x13544a[_0x1f768c(0x453)],_0x13544a[_0x1f768c(0x261)]===_0x1f768c(0x4b2)?_0x49bf12['fill'](_0x1f768c(0x4b2)):_0x49bf12[_0x1f768c(0x453)](),_0x49bf12[_0x1f768c(0x33b)]());}class _0x21fbc3 extends _0x5633aa['Shape']{constructor(_0xeb8ba9,_0x301aa9){const _0x34f263=_0x103a68;super(_0xeb8ba9,_0x301aa9),_0x519548(this,_0x34f263(0x4d9)),_0x519548(this,_0x34f263(0x1fc)),(this['color']=_0x301aa9==null?void 0x0:_0x301aa9[_0x34f263(0x4d9)],this[_0x34f263(0x1fc)]=_0x301aa9==null?void 0x0:_0x301aa9[_0x34f263(0x1fc)]);}static['drawWith'](_0x2ea76a,_0x1c829e){const _0x1435d5=_0x103a68,{text:_0x1ef6cb,color:_0x378e99}=_0x1c829e;_0x2ea76a['save'](),_0x2ea76a[_0x1435d5(0x27e)]=_0x1435d5(0x17e);const _0x2a1072=_0x2ea76a[_0x1435d5(0x42f)](_0x1ef6cb)[_0x1435d5(0x364)],_0x1241ed=Math[_0x1435d5(0x3cc)](_0x2a1072+0x2*_0x145f4a,_0x15dd30);_0x30b2f4(_0x2ea76a,{'height':_0x1630e6,'radius':0x4,'width':_0x1241ed,'fill':_0x378e99,'evented':!0x1}),_0x2ea76a[_0x1435d5(0x47a)]='#FFF';const _0xf68e37=_0x145f4a,_0xc45caa=_0x1630e6-_0xd91ad3,_0xaf02f1=_0x15dd30-0x2*_0x145f4a;if(_0x2a1072>_0xaf02f1){let _0x2d4bf8='',_0x247ca7=0x0;for(const _0x435fce of _0x1ef6cb){const _0x42119c=_0x2ea76a[_0x1435d5(0x42f)](_0x435fce)['width'];if(_0x247ca7+_0x42119c<=_0xaf02f1-_0x2ea76a[_0x1435d5(0x42f)](_0x1435d5(0x380))[_0x1435d5(0x364)])_0x2d4bf8+=_0x435fce,_0x247ca7+=_0x42119c;else{_0x2d4bf8+=_0x1435d5(0x380);break;}}_0x2ea76a[_0x1435d5(0x20e)](_0x2d4bf8,_0xf68e37,_0xc45caa);}else _0x2ea76a[_0x1435d5(0x20e)](_0x1ef6cb,_0xf68e37,_0xc45caa);_0x2ea76a['restore']();}['_draw'](_0x1fef2e){const _0x190408=_0x103a68;_0x21fbc3[_0x190408(0x10a)](_0x1fef2e,this);}}const _0x7cf774=_0x103a68(0x18e),_0x1cfeb2=_0x103a68(0x44d),_0x32c992=_0x103a68(0x3b1),_0x6c9de4=0x6,_0x441b07=1.5,_0xa2d11e=0x4,_0x2bd5aa=1.5,_0x5774e1=_0x103a68(0x1c6);class _0x374fab{constructor(_0x386321,_0x22d970,_0x387cda,_0x190959){const _0x1207f=_0x103a68;_0x519548(this,'_shapes',[]),_0x519548(this,_0x1207f(0x3c3),null),_0x519548(this,_0x1207f(0x447),null),_0x519548(this,_0x1207f(0xde),null),_0x519548(this,_0x1207f(0x28b),null),_0x519548(this,_0x1207f(0x284),null),(this[_0x1207f(0x234)]=_0x386321,this[_0x1207f(0x151)]=_0x22d970,this[_0x1207f(0x411)]=_0x387cda,this['_document']=_0x190959,this[_0x1207f(0x2e1)]());}set[_0x103a68(0x22a)](_0x48cb1f){const _0x13a872=_0x103a68;_0x48cb1f?(this[_0x13a872(0xde)]&&this['_anchorDot']['hide'](),this[_0x13a872(0x447)]&&this['_textBubble']['show']()):(this[_0x13a872(0xde)]&&this['_anchorDot']['show'](),this[_0x13a872(0x447)]&&this[_0x13a872(0x447)][_0x13a872(0x2b8)]());}[_0x103a68(0x3fb)](){const _0x42f13c=_0x103a68;for(const _0x2f3633 of this['_shapes'])_0x2f3633[_0x42f13c(0x3fb)]();this[_0x42f13c(0x447)]&&this[_0x42f13c(0x447)][_0x42f13c(0x3fb)](),this[_0x42f13c(0xde)]&&this[_0x42f13c(0xde)][_0x42f13c(0x3fb)](),this['_anchor']&&this[_0x42f13c(0x3c3)][_0x42f13c(0x3fb)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x3d6f8c=_0x103a68;var _0x593eb0;const {_docSkeleton:_0x44192c,_document:_0x4a97e9}=this,{color:_0xfe1f5b,name:_0x3f30eb,ranges:_0x5bdbb6}=this[_0x3d6f8c(0x234)],_0x25a8bf=_0x4a97e9[_0x3d6f8c(0x3bf)](),{docsLeft:_0x300621,docsTop:_0x5c04fe}=_0x25a8bf,_0x7f7ebd=new _0x39c231[(_0x3d6f8c(0x159))](_0x25a8bf,_0x44192c);for(const {startOffset:_0x500584,endOffset:_0x3c446d,collapsed:_0x325680,isActive:_0x23a07e}of _0x5bdbb6){const _0x4c52db=_0x44192c['findNodePositionByCharIndex'](_0x500584),_0x31bdaa=_0x44192c[_0x3d6f8c(0x105)](_0x3c446d);if(_0x23a07e){const {contentBoxPointGroup:_0x2146ef}=_0x7f7ebd[_0x3d6f8c(0x305)](_0x31bdaa,_0x31bdaa);if(_0x2146ef[_0x3d6f8c(0x292)]===0x0)continue;this['_drawAnchor'](_0xfe1f5b,_0x2146ef,_0x300621,_0x5c04fe,_0x3f30eb),this['_eventUnsubscribe']=this[_0x3d6f8c(0x395)]();}if(!_0x325680&&_0x4c52db&&_0x31bdaa){if(_0x39c231[_0x3d6f8c(0x1e9)](_0x4c52db,_0x31bdaa)){const _0x36efaf=new _0x39c231[(_0x3d6f8c(0x22b))](_0x25a8bf,_0x44192c),{pointGroup:_0x2bd86c}=(_0x593eb0=_0x36efaf[_0x3d6f8c(0x305)](_0x4c52db,_0x31bdaa))!=null?_0x593eb0:{};if(_0x2bd86c==null||_0x2bd86c['length']===0x0)continue;this['_drawRectRange'](_0xfe1f5b,_0x2bd86c,_0x300621,_0x5c04fe);}else{const {contentBoxPointGroup:_0x5dcfd7}=_0x7f7ebd[_0x3d6f8c(0x305)](_0x4c52db,_0x31bdaa);if(_0x5dcfd7['length']===0x0)continue;this[_0x3d6f8c(0x371)](_0xfe1f5b,_0x5dcfd7,_0x300621,_0x5c04fe);}}}}[_0x103a68(0xa7)](_0x3de90f,_0x4137cc,_0x2c2135,_0x346fea,_0x30042e){const _0x3ed9c2=_0x103a68,_0x4190f2=this[_0x3ed9c2(0x2e9)](_0x4137cc),{left:_0x564249,top:_0x49aa44,height:_0x5394ce}=_0x4190f2,_0xb2cace=this[_0x3ed9c2(0xf3)](),_0x4b2ea1=_0x2bd5aa/_0xb2cace,_0x52790f=new _0x5633aa[(_0x3ed9c2(0x33f))](_0x7cf774+_0x460a10[_0x3ed9c2(0x1dc)][_0x3ed9c2(0x212)](_0x6c9de4),{'left':_0x564249+_0x2c2135-_0x4b2ea1,'top':_0x49aa44+_0x346fea,'height':_0x5394ce,'width':_0x441b07,'fill':_0x3de90f||_0x5633aa[_0x3ed9c2(0x345)](_0x460a10[_0x3ed9c2(0x242)]['black'],0x0),'strokeWidth':_0x4b2ea1,'stroke':_0x5774e1,'evented':!0x0});this[_0x3ed9c2(0x3c3)]=_0x52790f,this[_0x3ed9c2(0x151)][_0x3ed9c2(0x3ed)](_0x52790f,_0x39c231[_0x3ed9c2(0x173)]);const _0x15cb9f=new _0x5633aa[(_0x3ed9c2(0x33f))](_0x7cf774+_0x460a10[_0x3ed9c2(0x1dc)][_0x3ed9c2(0x212)](_0x6c9de4),{'left':_0x564249+_0x2c2135-_0x4b2ea1,'top':_0x49aa44+_0x346fea-_0xa2d11e/0x2,'height':_0xa2d11e,'width':_0xa2d11e,'fill':_0x3de90f||_0x5633aa[_0x3ed9c2(0x345)](_0x460a10[_0x3ed9c2(0x242)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x3de90f||_0x5633aa[_0x3ed9c2(0x345)](_0x460a10['COLORS'][_0x3ed9c2(0x377)],0x0),'evented':!0x1});this[_0x3ed9c2(0xde)]=_0x15cb9f,this[_0x3ed9c2(0x151)]['addObject'](_0x15cb9f,_0x39c231[_0x3ed9c2(0x173)]);const _0x3f4a8d=new _0x21fbc3(_0x7cf774+_0x460a10['Tools'][_0x3ed9c2(0x212)](_0x6c9de4),{'left':_0x564249+_0x2c2135-_0x4b2ea1,'top':_0x49aa44+_0x346fea-_0x1630e6,'text':_0x30042e,'color':_0x3de90f});this[_0x3ed9c2(0x447)]=_0x3f4a8d,this[_0x3ed9c2(0x151)]['addObject'](_0x3f4a8d,_0x39c231[_0x3ed9c2(0x173)]),this[_0x3ed9c2(0x22a)]=!0x1;}[_0x103a68(0x395)](){const _0xd20186=_0x103a68,_0x226fcf=this[_0xd20186(0x3c3)]['onPointerEnter$'][_0xd20186(0xb5)](()=>{const _0x3dd154=_0xd20186;this[_0x3dd154(0x22a)]=!0x0;}),_0x3b2995=this[_0xd20186(0x3c3)][_0xd20186(0x4a4)][_0xd20186(0xb5)](()=>{const _0x2a7019=_0xd20186;this[_0x2a7019(0x28b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x421515=_0x2a7019;this[_0x421515(0x22a)]=!0x1;},0x7d0);});return()=>{const _0x1d90db=_0xd20186;_0x226fcf[_0x1d90db(0x36a)](),_0x3b2995[_0x1d90db(0x36a)]();};}[_0x103a68(0x371)](_0x13a69b,_0x1a0196,_0x543725,_0xc76243){const _0x3c8be9=_0x103a68,_0x1d57ef=new _0x460a10['ColorKit'](_0x13a69b)[_0x3c8be9(0x22c)](0.2)['toRgbString'](),_0x2a9eb2=new _0x5633aa['RegularPolygon'](_0x1cfeb2+_0x460a10['Tools'][_0x3c8be9(0x212)](_0x6c9de4),{'pointsGroup':_0x1a0196,'fill':_0x1d57ef||_0x5633aa['getColor'](_0x460a10[_0x3c8be9(0x242)][_0x3c8be9(0x377)],0.2),'left':_0x543725,'top':_0xc76243,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c8be9(0x2c8)][_0x3c8be9(0x420)](_0x2a9eb2),this['_scene'][_0x3c8be9(0x3ed)](_0x2a9eb2,_0x39c231['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x56f098,_0xc24ccf,_0x25747d,_0x1dd404){const _0x5aecc7=_0x103a68,_0x1ade80=new _0x460a10[(_0x5aecc7(0x416))](_0x56f098)['setAlpha'](0.2)[_0x5aecc7(0x133)](),_0x568f4d=new _0x5633aa['RegularPolygon'](_0x32c992+_0x460a10[_0x5aecc7(0x1dc)][_0x5aecc7(0x212)](_0x6c9de4),{'pointsGroup':_0xc24ccf,'fill':_0x1ade80||_0x5633aa[_0x5aecc7(0x345)](_0x460a10[_0x5aecc7(0x242)][_0x5aecc7(0x377)],0.2),'left':_0x25747d,'top':_0x1dd404,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5aecc7(0x2c8)][_0x5aecc7(0x420)](_0x568f4d),this[_0x5aecc7(0x151)][_0x5aecc7(0x3ed)](_0x568f4d,_0x39c231[_0x5aecc7(0x173)]);}[_0x103a68(0x2e9)](_0x5ad3d0){const _0x273609=_0x5ad3d0[0x0],_0x28b408=_0x273609[0x0],_0x508cec=_0x273609[0x2],{x:_0xfa490b,y:_0x1287c8}=_0x28b408,{x:_0x1cfe8b,y:_0x278114}=_0x508cec;return{'left':_0xfa490b,'top':_0x1287c8,'width':_0x1cfe8b-_0xfa490b,'height':_0x278114-_0x1287c8};}[_0x103a68(0xf3)](){const _0x1673a6=_0x103a68,{scaleX:_0x15edc7,scaleY:_0x237f67}=this[_0x1673a6(0x151)][_0x1673a6(0x12a)]();return Math['max'](_0x15edc7,_0x237f67);}}var _0x407f05=Object[_0x103a68(0x3a3)],_0x463e66=Object[_0x103a68(0x138)],_0x424def=(_0x29f2c,_0x3c949c,_0xe9c676,_0x59e497)=>{const _0x7e41e9=_0x103a68;for(var _0x365859=_0x59e497>0x1?void 0x0:_0x59e497?_0x463e66(_0x3c949c,_0xe9c676):_0x3c949c,_0x18e356=_0x29f2c[_0x7e41e9(0x292)]-0x1,_0x18a8f;_0x18e356>=0x0;_0x18e356--)(_0x18a8f=_0x29f2c[_0x18e356])&&(_0x365859=(_0x59e497?_0x18a8f(_0x3c949c,_0xe9c676,_0x365859):_0x18a8f(_0x365859))||_0x365859);return _0x59e497&&_0x365859&&_0x407f05(_0x3c949c,_0xe9c676,_0x365859),_0x365859;},_0x2c9230=(_0xb0f0c0,_0x16e279)=>(_0x1f6615,_0x289e18)=>_0x16e279(_0x1f6615,_0x289e18,_0xb0f0c0);let _0x1a8fd0=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x3afc46,_0xcd721e,_0x48ffb7,_0x4c2869,_0x47cf22){const _0x3fb74c=_0x103a68;super(),_0x519548(this,_0x3fb74c(0x385),[]),_0x519548(this,_0x3fb74c(0x109),[]),(this[_0x3fb74c(0x366)]=_0x3afc46,this[_0x3fb74c(0x367)]=_0xcd721e,this[_0x3fb74c(0x3d3)]=_0x48ffb7,this[_0x3fb74c(0x44e)]=_0x4c2869,this[_0x3fb74c(0x1a6)]=_0x47cf22,this[_0x3fb74c(0x194)]());}[_0x103a68(0x194)](){const _0x411b22=_0x103a68,_0x43c9b5=this['_context'][_0x411b22(0x3b0)],_0x435d8e=this[_0x411b22(0x367)];this[_0x411b22(0x495)](_0x22d14a[_0x411b22(0x252)]([this[_0x411b22(0x3d3)][_0x411b22(0x224)](_0x43c9b5),this['_themeService'][_0x411b22(0x3ad)]])[_0x411b22(0x3af)](_0x436c5c[_0x411b22(0x38a)](([_0x42a26e,_0x490d30])=>({'skeleton':_0x435d8e[_0x411b22(0x128)](),'cursors':[..._0x42a26e[_0x411b22(0x161)]()]['flatMap'](_0x303488=>({..._0x303488,'color':_0x490d30[_0x303488[_0x411b22(0x4d9)]]}))})))[_0x411b22(0x3d1)](_0x3b3e62=>{const _0x42cf80=_0x411b22;if(this[_0x42cf80(0x491)](),_0x3b3e62){const {skeleton:_0x506700,cursors:_0x3caf12}=_0x3b3e62;this['_updateCollabCursors'](_0x506700,_0x3caf12);}})),this[_0x411b22(0x239)](),this[_0x411b22(0x250)]();}['_updateCollabCursors'](_0x2099ed,_0x5b1642){const _0xe7637e=_0x103a68,{scene:_0x1451f2,mainComponent:_0xacee13}=this[_0xe7637e(0x366)],_0x5ae3d1=_0x5b1642['map'](_0x80e339=>new _0x374fab(_0x80e339,_0x1451f2,_0x2099ed,_0xacee13));this['_cursorShapes']=_0x5ae3d1,this[_0xe7637e(0x109)]=_0x5b1642;}['_refreshCollabCursors'](){const _0x4c41f2=_0x103a68;this[_0x4c41f2(0x491)]();const {scene:_0x1c82f5,mainComponent:_0x2d50ff}=this['_context'],_0x81aafb=this['_docSkeletonManagerService'][_0x4c41f2(0x128)](),_0x4797dd=this['_cursors'][_0x4c41f2(0x38a)](_0x48cd82=>new _0x374fab(_0x48cd82,_0x1c82f5,_0x81aafb,_0x2d50ff));this[_0x4c41f2(0x385)]=_0x4797dd;}[_0x103a68(0x491)](){const _0x3698eb=_0x103a68;this['_cursorShapes'][_0x3698eb(0x196)](_0x2935c7=>_0x2935c7[_0x3698eb(0x3fb)]()),this[_0x3698eb(0x385)]=[];}[_0x103a68(0x250)](){const _0x1b5d42=_0x103a68,_0xa15a4=[_0x39c231[_0x1b5d42(0x11c)]['id']];this['disposeWithMe'](this[_0x1b5d42(0x44e)]['onCommandExecuted'](_0x2f2863=>{const _0x1b80b0=_0x1b5d42;_0xa15a4[_0x1b80b0(0x3d6)](_0x2f2863['id'])&&_0x2f2863[_0x1b80b0(0x31c)]['unitId']===this['_context'][_0x1b80b0(0x3b0)]&&this[_0x1b80b0(0x37f)]();}));}[_0x103a68(0x239)](){const _0x4e503c=_0x103a68;this[_0x4e503c(0x495)](_0x460a10['fromEventSubject'](this[_0x4e503c(0x366)][_0x4e503c(0x3bd)][_0x4e503c(0x443)])[_0x4e503c(0x3af)](_0x436c5c['filter'](_0xf5ac2=>_0xf5ac2[_0x4e503c(0x483)]===_0x5633aa[_0x4e503c(0x4bb)]['resize']),_0x436c5c[_0x4e503c(0x116)](0x10))[_0x4e503c(0x3d1)](()=>{this['_refreshCollabCursors']();}));}};_0x1a8fd0=_0x424def([_0x2c9230(0x1,_0x460a10[_0x103a68(0x310)](_0x447cee[_0x103a68(0xd8)])),_0x2c9230(0x2,_0x460a10[_0x103a68(0x310)](_0x378058)),_0x2c9230(0x3,_0x460a10[_0x103a68(0x134)]),_0x2c9230(0x4,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x45b)]))],_0x1a8fd0);const _0x1187a0=0x1,_0x37ab44=1.5;class _0x634d7c extends _0x5633aa[_0x103a68(0x267)]{constructor(_0x5431d0,_0x402c47){const _0x37cd75=_0x103a68;super(_0x5431d0,_0x402c47),_0x519548(this,_0x37cd75(0x15e)),_0x519548(this,_0x37cd75(0x3e7),!0x1),_0x519548(this,_0x37cd75(0x240)),_0x519548(this,_0x37cd75(0x37e),''),_0x519548(this,'_labelPosition',_0x37cd75(0x1a8)),_0x519548(this,_0x37cd75(0x4aa)),(_0x402c47&&this[_0x37cd75(0x42d)](_0x402c47),this[_0x37cd75(0x130)][_0x37cd75(0xb5)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x37cd75(0x4a4)][_0x37cd75(0xb5)](()=>this[_0x37cd75(0x42d)]({'hovered':!0x1})));}[_0x103a68(0x42d)](_0x363483){const _0x528d82=_0x103a68;var _0xac83ee,_0x568bfe,_0x339b99,_0x4dbed2,_0x453960,_0x2a2ab1;this['_color']=(_0xac83ee=_0x363483[_0x528d82(0x4d9)])!=null?_0xac83ee:this[_0x528d82(0x15e)],this[_0x528d82(0x3e7)]=(_0x568bfe=_0x363483['hovered'])!=null?_0x568bfe:this[_0x528d82(0x3e7)],this[_0x528d82(0x240)]=(_0x339b99=_0x363483[_0x528d82(0x222)])!=null?_0x339b99:this[_0x528d82(0x240)],this[_0x528d82(0x37e)]=(_0x4dbed2=_0x363483[_0x528d82(0x3e2)])!=null?_0x4dbed2:this[_0x528d82(0x37e)],this[_0x528d82(0xf2)]=(_0x453960=_0x363483['labelPosition'])!=null?_0x453960:this['_labelPosition'],this[_0x528d82(0x4aa)]=(_0x2a2ab1=_0x363483['backgroundColor'])!=null?_0x2a2ab1:this['_backgroundColor'],this[_0x528d82(0x450)]({'width':_0x363483[_0x528d82(0x364)],'height':_0x363483[_0x528d82(0x148)]});}['onMouseMove'](_0x1c92a4){const _0x22be40=_0x103a68,{row:_0x598c89,column:_0x10ec9d}=_0x1c92a4;if(_0x598c89>=this[_0x22be40(0x240)][_0x22be40(0x3a1)]&&_0x598c89<=this[_0x22be40(0x240)][_0x22be40(0x3b5)]&&_0x10ec9d>=this['_range'][_0x22be40(0x1eb)]&&_0x10ec9d<=this[_0x22be40(0x240)][_0x22be40(0x2cf)]){this[_0x22be40(0x42d)]({'hovered':!0x0});return;}this[_0x22be40(0x42d)]({'hovered':!0x1});}['triggerDblclick'](_0x340742){return!0x1;}['_draw'](_0x31fb7e){const _0x3dabfc=_0x103a68;_0x5633aa[_0x3dabfc(0x33f)][_0x3dabfc(0x10a)](_0x31fb7e,{'width':this[_0x3dabfc(0x364)],'height':this['height'],'strokeWidth':_0x37ab44,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3dabfc(0x4aa)]}),this[_0x3dabfc(0x3e7)]&&(_0x31fb7e[_0x3dabfc(0x2f9)](),_0x31fb7e[_0x3dabfc(0x1d6)](0x1,0x0,0x0,0x1,this[_0x3dabfc(0x364)],this[_0x3dabfc(0xf2)]===_0x3dabfc(0x182)?0x0:-_0x1630e6),_0x21fbc3['drawWith'](_0x31fb7e,{'text':this[_0x3dabfc(0x37e)],'color':this[_0x3dabfc(0x15e)]}),_0x31fb7e['restore']());}}var _0x1713f0=Object[_0x103a68(0x3a3)],_0x44e3db=Object[_0x103a68(0x138)],_0x3a7c37=(_0x4c0a47,_0xf5df1a,_0x5f1b0d,_0x12add3)=>{const _0x124d45=_0x103a68;for(var _0x5dbd03=_0x12add3>0x1?void 0x0:_0x12add3?_0x44e3db(_0xf5df1a,_0x5f1b0d):_0xf5df1a,_0x4e694c=_0x4c0a47[_0x124d45(0x292)]-0x1,_0x51938d;_0x4e694c>=0x0;_0x4e694c--)(_0x51938d=_0x4c0a47[_0x4e694c])&&(_0x5dbd03=(_0x12add3?_0x51938d(_0xf5df1a,_0x5f1b0d,_0x5dbd03):_0x51938d(_0x5dbd03))||_0x5dbd03);return _0x12add3&&_0x5dbd03&&_0x1713f0(_0xf5df1a,_0x5f1b0d,_0x5dbd03),_0x5dbd03;},_0xc9682e=(_0x2fba2c,_0x179bd5)=>(_0x5095fc,_0x21d2cd)=>_0x179bd5(_0x5095fc,_0x21d2cd,_0x2fba2c);const _0x565c5f=0x1389;let _0x5f36db=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x3e84c2,_0x43de0e,_0x2adf13,_0xefd92d){const _0x4d3941=_0x103a68;super(),_0x519548(this,_0x4d3941(0x109),new Set()),_0x519548(this,_0x4d3941(0x4c8),null),(this['_context']=_0x3e84c2,this['_sheetSkeletonManagerService']=_0x43de0e,this[_0x4d3941(0x3d3)]=_0x2adf13,this[_0x4d3941(0x1a6)]=_0xefd92d,this[_0x4d3941(0x194)]());}[_0x103a68(0x194)](){const _0x2b89e4=_0x103a68;this[_0x2b89e4(0x34b)][_0x2b89e4(0x170)][_0x2b89e4(0x3af)](_0x436c5c['takeUntil'](this['dispose$']),_0x436c5c['switchMap'](_0x54173a=>{const _0x18fd8e=_0x2b89e4;if(_0x54173a){const _0x4e3c86=_0x54173a[_0x18fd8e(0xb2)];return _0x22d14a['combineLatest'](this[_0x18fd8e(0x3d3)][_0x18fd8e(0x224)](this['_context'][_0x18fd8e(0x3b0)]),this['_themeService'][_0x18fd8e(0x3ad)])[_0x18fd8e(0x3af)](_0x436c5c[_0x18fd8e(0x38a)](([_0x260a31,_0x49b595])=>{const _0x249e2c=_0x18fd8e,_0x41aaad=new Map();return _0x260a31[_0x249e2c(0x196)]((_0x800f13,_0x1ad3e7)=>{const _0x13463b=_0x249e2c;if(_0x800f13[_0x13463b(0x369)]===_0x4e3c86){const _0x4ef540={..._0x800f13};_0x4ef540[_0x13463b(0x4d9)]=_0x49b595[_0x800f13[_0x13463b(0x4d9)]],_0x41aaad[_0x13463b(0x29c)](_0x1ad3e7,_0x4ef540);}}),{'skeleton':_0x54173a,'cursors':_0x41aaad};}));}return _0x22d14a['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28a407,cursors:_0x5b9bb4})=>{const _0x331ea7=_0x2b89e4;this[_0x331ea7(0x491)](),_0x28a407&&this[_0x331ea7(0x44a)](_0x28a407,_0x5b9bb4);}),this[_0x2b89e4(0x34b)][_0x2b89e4(0x170)][_0x2b89e4(0x3d1)](_0x4a32e3=>{const _0x24c9c1=_0x2b89e4;if(_0x4a32e3==null)return;const {skeleton:_0x4574ae}=_0x4a32e3,{scene:_0x210f7f}=this['_context'];_0x210f7f[_0x24c9c1(0x381)][_0x24c9c1(0xb5)](_0x460a10[_0x24c9c1(0x4a8)](_0x520037=>{const _0x172154=_0x24c9c1;var _0x4df124,_0x47508a;const {offsetX:_0x1f889f,offsetY:_0x16a48e}=_0x520037,{x:_0x1fcedf,y:_0xc68ab}=_0x210f7f[_0x172154(0x3b6)](_0x5633aa[_0x172154(0x1e0)][_0x172154(0x327)]([_0x1f889f,_0x16a48e])),{scaleX:_0x18bbf4,scaleY:_0x412e9b}=_0x210f7f[_0x172154(0x12a)](),_0x46bb0a=_0x210f7f[_0x172154(0x40a)](_0x448142[_0x172154(0xcf)][_0x172154(0x37c)]),_0x4232b1=_0x210f7f[_0x172154(0x376)](_0x5633aa[_0x172154(0x1e0)]['FromArray']([_0x1fcedf,_0xc68ab]),_0x46bb0a),_0x1645fa=_0x4574ae[_0x172154(0x1cd)](_0x1f889f,_0x16a48e,_0x18bbf4,_0x412e9b,_0x4232b1);((_0x4df124=this[_0x172154(0x4c8)])==null?void 0x0:_0x4df124['column'])===_0x1645fa[_0x172154(0x1c2)]&&((_0x47508a=this['_lastPointer'])==null?void 0x0:_0x47508a[_0x172154(0xa6)])===_0x1645fa[_0x172154(0xa6)]||this[_0x172154(0x109)]['forEach'](_0x2ce89b=>{const _0x24e6bb=_0x172154;_0x2ce89b[_0x24e6bb(0x2f2)](_0x1645fa);});},0x64));});}[_0x103a68(0x44a)](_0x348578,_0x26ec35){const _0x3b1792=_0x103a68;var _0x406a10;const _0x3ae9be=(_0x406a10=this[_0x3b1792(0x34b)][_0x3b1792(0x45a)]())==null?void 0x0:_0x406a10['skeleton'];if(!_0x3ae9be)return;const _0x188779=this[_0x3b1792(0x4d2)]();if(!_0x188779)return;this[_0x3b1792(0x109)]['forEach'](_0x4f0da0=>{const _0x2124ac=_0x3b1792;_0x4f0da0[_0x2124ac(0x431)]();});const {scene:_0x5f582f}=_0x188779,_0x26b27d=_0x14cce6(Array[_0x3b1792(0x2cd)](_0x26ec35[_0x3b1792(0x161)]()))[_0x3b1792(0x38a)](_0x4c56f6=>{const _0x17916a=_0x3b1792,{color:_0x4b6cb8,range:_0x4b29b5,name:_0x3bc512,selection:_0xc1be38,sheetID:_0x1ebbbd}=_0x4c56f6,{startColumn:_0x5549a4,startRow:_0x54ea1f,endColumn:_0x375136,endRow:_0x3290ad}=_0x4b29b5,_0x1d5a76=_0x448142[_0x17916a(0x3d4)](_0x54ea1f,_0x5549a4,_0x5f582f,_0x3ae9be),_0x2b660e=_0x448142[_0x17916a(0x3d4)](_0x3290ad,_0x375136,_0x5f582f,_0x3ae9be),{columnHeaderHeightAndMarginTop:_0x36e1f1}=_0x3ae9be,{startX:_0x51e9f7,startY:_0x17eb59}=_0x1d5a76,{endX:_0x3d9b69,endY:_0x52023c}=_0x2b660e,_0x384e36=_0x3d9b69-_0x51e9f7,_0x5ca5e6=_0x52023c-_0x17eb59,_0x19bfc3={'labelPosition':_0x17eb59-_0x36e1f1>=_0x1630e6?_0x17916a(0x1a8):_0x17916a(0x182),'sheetID':_0x1ebbbd,'range':_0x4b29b5,'color':_0x4b6cb8,'name':_0x3bc512,'selection':_0xc1be38,'left':_0x51e9f7,'top':_0x17eb59,'width':_0x384e36,'height':_0x5ca5e6,'evented':!0x1,'zIndex':_0x565c5f};return new _0x634d7c(_0x3bc512,_0x19bfc3);});_0x5f582f[_0x3b1792(0x30d)](_0x26b27d,_0x1187a0),this['_cursors']=new Set(_0x26b27d);}[_0x103a68(0x491)](){const _0x1e4798=_0x103a68;var _0x2d892c;(_0x2d892c=this[_0x1e4798(0x109)])==null||_0x2d892c[_0x1e4798(0x196)](_0x156d1b=>_0x156d1b[_0x1e4798(0x3fb)]());}['_getSheetObject'](){const _0x1b39bb=_0x103a68;return _0x448142[_0x1b39bb(0x111)](this[_0x1b39bb(0x366)][_0x1b39bb(0x2a0)],this[_0x1b39bb(0x366)]);}};_0x5f36db=_0x3a7c37([_0xc9682e(0x1,_0x460a10['Inject'](_0x448142[_0x103a68(0x27a)])),_0xc9682e(0x2,_0x460a10[_0x103a68(0x310)](_0x378058)),_0xc9682e(0x3,_0x460a10[_0x103a68(0x310)](_0x460a10['ThemeService']))],_0x5f36db);function _0x14cce6(_0x208209){const _0xb49920=_0x103a68,_0x452cac=new Map();return _0x208209['forEach'](_0x570db3=>{const _0x4b8ebe=_0x5cd2;if(_0x452cac[_0x4b8ebe(0x401)](_0x570db3[_0x4b8ebe(0x107)])){const _0x57da1c=_0x452cac[_0x4b8ebe(0x1c8)](_0x570db3[_0x4b8ebe(0x107)]);_0x57da1c['name']+=',\x20'+_0x570db3['name'];}else _0x452cac[_0x4b8ebe(0x29c)](_0x570db3[_0x4b8ebe(0x107)],_0x570db3);}),Array[_0xb49920(0x2cd)](_0x452cac[_0xb49920(0x161)]());}var _0x34413e=function(){return _0x34413e=Object['assign']||function(_0x2a2dbf){const _0x1926d3=_0x5cd2;for(var _0x3bcba3,_0x5001bf=0x1,_0x5be537=arguments[_0x1926d3(0x292)];_0x5001bf<_0x5be537;_0x5001bf++){_0x3bcba3=arguments[_0x5001bf];for(var _0x246ab0 in _0x3bcba3)Object['prototype'][_0x1926d3(0x255)][_0x1926d3(0x13e)](_0x3bcba3,_0x246ab0)&&(_0x2a2dbf[_0x246ab0]=_0x3bcba3[_0x246ab0]);}return _0x2a2dbf;},_0x34413e['apply'](this,arguments);},_0x310461=function(_0x587a1d,_0x2b1cf1){const _0x28ecd4=_0x103a68;var _0x2d21a0={};for(var _0x16220f in _0x587a1d)Object[_0x28ecd4(0x2d9)]['hasOwnProperty'][_0x28ecd4(0x13e)](_0x587a1d,_0x16220f)&&_0x2b1cf1[_0x28ecd4(0x19e)](_0x16220f)<0x0&&(_0x2d21a0[_0x16220f]=_0x587a1d[_0x16220f]);if(_0x587a1d!=null&&typeof Object[_0x28ecd4(0x356)]=='function'){for(var _0xea4b2b=0x0,_0x16220f=Object[_0x28ecd4(0x356)](_0x587a1d);_0xea4b2b<_0x16220f[_0x28ecd4(0x292)];_0xea4b2b++)_0x2b1cf1[_0x28ecd4(0x19e)](_0x16220f[_0xea4b2b])<0x0&&Object['prototype'][_0x28ecd4(0xf4)]['call'](_0x587a1d,_0x16220f[_0xea4b2b])&&(_0x2d21a0[_0x16220f[_0xea4b2b]]=_0x587a1d[_0x16220f[_0xea4b2b]]);}return _0x2d21a0;},_0x164729=_0x542714[_0x103a68(0x270)](function(_0xf29a4a,_0x2c6973){const _0x97a416=_0x103a68;var _0x7a5147=_0xf29a4a[_0x97a416(0x1bd)],_0x3dd3a3=_0xf29a4a['id'],_0x9f16d4=_0xf29a4a['className'],_0x1f2d9f=_0xf29a4a[_0x97a416(0x21a)],_0x11f3c9=_0x310461(_0xf29a4a,['icon','id',_0x97a416(0x4a3),_0x97a416(0x21a)]),_0x12f452=_0x97a416(0x3c5)[_0x97a416(0x1ba)](_0x3dd3a3,'\x20')[_0x97a416(0x1ba)](_0x9f16d4||'')['trim'](),_0x435de2=_0x542714['useRef']('_'[_0x97a416(0x1ba)](_0x42c352()));return _0x58dc63(_0x7a5147,''[_0x97a416(0x1ba)](_0x3dd3a3),{'defIds':_0x7a5147[_0x97a416(0x26f)],'idSuffix':_0x435de2['current']},_0x34413e({'ref':_0x2c6973,'className':_0x12f452},_0x11f3c9),_0x1f2d9f);});function _0x58dc63(_0xcdb695,_0x45e27f,_0xfda93c,_0x25e971,_0xc98e31){const _0x1cb77b=_0x103a68;return _0x542714['createElement'](_0xcdb695[_0x1cb77b(0x48e)],_0x34413e(_0x34413e({'key':_0x45e27f},_0x22f68f(_0xcdb695,_0xfda93c,_0xc98e31)),_0x25e971),(_0x2875ff(_0xcdb695,_0xfda93c)[_0x1cb77b(0x164)]||[])['map'](function(_0xecb9b4,_0x57b04f){const _0x3ddbb0=_0x1cb77b;return _0x58dc63(_0xecb9b4,''[_0x3ddbb0(0x1ba)](_0x45e27f,'-')[_0x3ddbb0(0x1ba)](_0xcdb695['tag'],'-')[_0x3ddbb0(0x1ba)](_0x57b04f),_0xfda93c,void 0x0,_0xc98e31);}));}function _0x22f68f(_0x2b7cec,_0x2a05b7,_0x5b2940){const _0x4721de=_0x103a68;var _0x9324b7=_0x34413e({},_0x2b7cec[_0x4721de(0x1ab)]);_0x5b2940!=null&&_0x5b2940[_0x4721de(0xd4)]&&_0x9324b7[_0x4721de(0x453)]===_0x4721de(0xd4)&&(_0x9324b7[_0x4721de(0x453)]=_0x5b2940[_0x4721de(0xd4)]);var _0x543cd9=_0x2a05b7[_0x4721de(0x26f)];return!_0x543cd9||_0x543cd9[_0x4721de(0x292)]===0x0||(_0x2b7cec[_0x4721de(0x48e)]===_0x4721de(0x2ae)&&_0x9324b7[_0x4721de(0x163)]&&(_0x9324b7[_0x4721de(0x163)]=_0x9324b7[_0x4721de(0x163)]+_0x2a05b7['idSuffix']),Object[_0x4721de(0x426)](_0x9324b7)[_0x4721de(0x196)](function(_0x643d01){const _0x422319=_0x4721de;var _0x46789f=_0x643d01[0x0],_0x2d72fe=_0x643d01[0x1];typeof _0x2d72fe==_0x422319(0x46d)&&(_0x9324b7[_0x46789f]=_0x2d72fe[_0x422319(0xbe)](/url\(#(.*)\)/,_0x422319(0x41a)[_0x422319(0x1ba)](_0x2a05b7[_0x422319(0xfb)],')')));})),_0x9324b7;}function _0x2875ff(_0x3a0cd0,_0x595106){const _0x76ed04=_0x103a68;var _0x29e1ea,_0x2f293c=_0x595106[_0x76ed04(0x26f)];return!_0x2f293c||_0x2f293c[_0x76ed04(0x292)]===0x0?_0x3a0cd0:_0x3a0cd0[_0x76ed04(0x48e)]===_0x76ed04(0xaf)&&(!((_0x29e1ea=_0x3a0cd0[_0x76ed04(0x164)])===null||_0x29e1ea===void 0x0)&&_0x29e1ea[_0x76ed04(0x292)])?_0x34413e(_0x34413e({},_0x3a0cd0),{'children':_0x3a0cd0[_0x76ed04(0x164)]['map'](function(_0x3d90b6){const _0x935c20=_0x76ed04;return typeof _0x3d90b6[_0x935c20(0x1ab)]['id']==_0x935c20(0x46d)&&_0x2f293c&&_0x2f293c[_0x935c20(0x19e)](_0x3d90b6[_0x935c20(0x1ab)]['id'])>-0x1?_0x34413e(_0x34413e({},_0x3d90b6),{'attrs':_0x34413e(_0x34413e({},_0x3d90b6[_0x935c20(0x1ab)]),{'id':_0x3d90b6[_0x935c20(0x1ab)]['id']+_0x595106['idSuffix']})}):_0x3d90b6;})}):_0x3a0cd0;}function _0x42c352(){const _0x531142=_0x103a68;return Math['random']()[_0x531142(0xdd)](0x24)[_0x531142(0x425)](0x2,0x8);}_0x164729['displayName']=_0x103a68(0x304);var _0x2252ed={'tag':'svg','attrs':{'fill':_0x103a68(0x39f),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x103a68(0x1d5)},'children':[{'tag':_0x103a68(0xd0),'attrs':{'stroke':_0x103a68(0xfa),'d':_0x103a68(0x332),'strokeLinecap':_0x103a68(0x458),'strokeLinejoin':_0x103a68(0x458),'strokeWidth':1.2}}]},{'tag':_0x103a68(0xaf),'attrs':{},'children':[{'tag':_0x103a68(0x439),'attrs':{'id':_0x103a68(0x19b)},'children':[{'tag':_0x103a68(0xd0),'attrs':{'fill':_0x103a68(0x184),'d':_0x103a68(0x36c)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x2709cb=_0x542714['forwardRef'](function(_0x23285d,_0xb2e49a){const _0x24d48d=_0x103a68;return _0x542714[_0x24d48d(0xf8)](_0x164729,Object[_0x24d48d(0x4db)]({},_0x23285d,{'id':'off-line-single','ref':_0xb2e49a,'icon':_0x2252ed}));});_0x2709cb[_0x103a68(0x223)]=_0x103a68(0xc3);var _0x2bd8b4={'tag':_0x103a68(0xa9),'attrs':{'fill':_0x103a68(0x39f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x103a68(0x2d6)},'children':[{'tag':'g','attrs':{'clipPath':_0x103a68(0x474)},'children':[{'tag':_0x103a68(0xd0),'attrs':{'stroke':_0x103a68(0xfa),'d':_0x103a68(0x370),'strokeLinecap':_0x103a68(0x458),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x103a68(0xaf),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x103a68(0x4dc)},'children':[{'tag':'path','attrs':{'fill':_0x103a68(0x184),'d':_0x103a68(0x36c),'transform':_0x103a68(0x2ff)}}]}]}],'defIds':[_0x103a68(0x4dc)]},_0x3a9e78=_0x542714[_0x103a68(0x270)](function(_0xdb0d96,_0x162a95){const _0x28f902=_0x103a68;return _0x542714['createElement'](_0x164729,Object[_0x28f902(0x4db)]({},_0xdb0d96,{'id':_0x28f902(0x303),'ref':_0x162a95,'icon':_0x2bd8b4}));});_0x3a9e78['displayName']='OnLineSingle';function _0x494c9b(_0x45688b){const _0x5d5efb=_0x103a68;var _0x5bb84d,_0x3a69b5,_0xa0468f='';if(typeof _0x45688b=='string'||typeof _0x45688b==_0x5d5efb(0x396))_0xa0468f+=_0x45688b;else{if(typeof _0x45688b=='object'){if(Array[_0x5d5efb(0x328)](_0x45688b)){var _0x5debf3=_0x45688b['length'];for(_0x5bb84d=0x0;_0x5bb84d<_0x5debf3;_0x5bb84d++)_0x45688b[_0x5bb84d]&&(_0x3a69b5=_0x494c9b(_0x45688b[_0x5bb84d]))&&(_0xa0468f&&(_0xa0468f+='\x20'),_0xa0468f+=_0x3a69b5);}else{for(_0x3a69b5 in _0x45688b)_0x45688b[_0x3a69b5]&&(_0xa0468f&&(_0xa0468f+='\x20'),_0xa0468f+=_0x3a69b5);}}}return _0xa0468f;}function _0x1f6c84(){const _0x395609=_0x103a68;for(var _0x5b237d,_0x323774,_0x49127e=0x0,_0x5f4513='',_0x1e4c5c=arguments[_0x395609(0x292)];_0x49127e<_0x1e4c5c;_0x49127e++)(_0x5b237d=arguments[_0x49127e])&&(_0x323774=_0x494c9b(_0x5b237d))&&(_0x5f4513&&(_0x5f4513+='\x20'),_0x5f4513+=_0x323774);return _0x5f4513;}const _0x2c9111={'onlineStatusIcon':_0x103a68(0x3dd),'onlineStatusTitle':_0x103a68(0x428),'onlineStatus':_0x103a68(0x357),'online':_0x103a68(0x167),'offline':'univer-offline'};function _0x436f0d(_0x309eae){const _0x16ce02=_0x103a68;switch(_0x309eae){case _0x4b41c3[_0x16ce02(0x314)]:return _0x16ce02(0xcd);case _0x4b41c3[_0x16ce02(0x24f)]:return'collabStatus.conflict';case _0x4b41c3[_0x16ce02(0x12d)]:return _0x16ce02(0x279);case _0x4b41c3[_0x16ce02(0x1df)]:return _0x16ce02(0x149);case _0x4b41c3[_0x16ce02(0x4d0)]:case _0x4b41c3[_0x16ce02(0x3b2)]:return _0x16ce02(0x126);case _0x4b41c3[_0x16ce02(0x31a)]:case _0x4b41c3['PENDING']:return _0x16ce02(0x3bb);}}function _0x9b641b(_0x429fb0){const _0xba7084=_0x103a68,{status$:_0x3ceb29}=_0x429fb0,_0xf97a3f=_0x29b1e2[_0xba7084(0x476)](_0x3ceb29,_0x4b41c3[_0xba7084(0x1df)]),_0x32af7c=_0x460a10[_0xba7084(0x18c)](_0x460a10[_0xba7084(0x176)]),_0x3a41aa=_0x460a10['useDependency'](_0x4e0bbf[_0xba7084(0x248)]),_0xe9391f=_0xf97a3f!==_0x4b41c3[_0xba7084(0x314)],_0x48db37=_0x32af7c['t'](_0x436f0d(_0xf97a3f)),_0x2cae8c=_0x1f6c84(_0x2c9111['onlineStatus'],{[_0x2c9111[_0xba7084(0x166)]]:_0xe9391f,[_0x2c9111[_0xba7084(0x44f)]]:!_0xe9391f}),_0x282ce4=_0xe9391f?_0x542714[_0xba7084(0xf8)](_0x3a9e78,null):_0x542714[_0xba7084(0xf8)](_0x2709cb,null),_0x2e08b7=_0x542714[_0xba7084(0x188)](()=>{const _0x21410d=_0xba7084;_0xe9391f||_0x3a41aa[_0x21410d(0x185)]();},[_0xe9391f,_0x3a41aa]);function _0x2bcf23(){const _0x49165c=_0xba7084;return _0x542714[_0x49165c(0xf8)]('div',{'className':_0x2cae8c,'onClick':_0x2e08b7},_0x542714[_0x49165c(0xf8)]('div',{'className':_0x2c9111[_0x49165c(0x434)]},_0x282ce4),_0x542714[_0x49165c(0xf8)](_0x49165c(0x1b8),{'className':_0x2c9111[_0x49165c(0x247)]},_0x48db37));}return _0xe9391f?_0x2bcf23():_0x542714[_0xba7084(0xf8)](_0x511ab8['Tooltip'],{'title':_0x32af7c['t'](_0xba7084(0x18b))},_0x2bcf23());}var _0x110266=Object['defineProperty'],_0x37ff43=Object[_0x103a68(0x138)],_0x5a0169=(_0x284830,_0xde2dc,_0x14c24c,_0x4a58a4)=>{const _0x2934ba=_0x103a68;for(var _0x4f0171=_0x4a58a4>0x1?void 0x0:_0x4a58a4?_0x37ff43(_0xde2dc,_0x14c24c):_0xde2dc,_0x4fa51e=_0x284830[_0x2934ba(0x292)]-0x1,_0x1c79e2;_0x4fa51e>=0x0;_0x4fa51e--)(_0x1c79e2=_0x284830[_0x4fa51e])&&(_0x4f0171=(_0x4a58a4?_0x1c79e2(_0xde2dc,_0x14c24c,_0x4f0171):_0x1c79e2(_0x4f0171))||_0x4f0171);return _0x4a58a4&&_0x4f0171&&_0x110266(_0xde2dc,_0x14c24c,_0x4f0171),_0x4f0171;},_0x59b89d=(_0x37f0f8,_0x3faddf)=>(_0x288cbd,_0x186a0e)=>_0x3faddf(_0x288cbd,_0x186a0e,_0x37f0f8);_0x4e0bbf[_0x103a68(0x22e)]=class extends _0x460a10[_0x103a68(0xd1)]{constructor(_0x2c8199,_0x5a7aff,_0x3f61c1,_0x360b51){const _0x3fea87=_0x103a68;super(),_0x519548(this,'_status$',new _0x22d14a[(_0x3fea87(0x23d))](_0x4b41c3[_0x3fea87(0x1df)])),(this[_0x3fea87(0x15d)]=_0x2c8199,this[_0x3fea87(0x26a)]=_0x5a7aff,this[_0x3fea87(0x165)]=_0x3f61c1,this[_0x3fea87(0x306)]=_0x360b51,this[_0x3fea87(0x49e)](),this[_0x3fea87(0x1ae)]());}[_0x103a68(0x1ae)](){const _0x4cce1e=_0x103a68;this['disposeWithMe'](this[_0x4cce1e(0x15d)][_0x4cce1e(0x1a7)]['pipe'](_0x22d14a[_0x4cce1e(0x26e)](()=>{const _0x516a66=_0x4cce1e,_0x3d27e2=this[_0x516a66(0x15d)][_0x516a66(0xe3)]();return _0x3d27e2?this[_0x516a66(0x306)]['getCollabEntity$'](_0x3d27e2['getUnitId']()):_0x22d14a['of'](null);}),_0x22d14a[_0x4cce1e(0x26e)](_0x59067f=>_0x59067f?_0x59067f['status$']:_0x22d14a['of'](_0x4b41c3['NOT_COLLAB'])))[_0x4cce1e(0x3d1)](_0x5c38d9=>{const _0x764db8=_0x4cce1e;this[_0x764db8(0x382)][_0x764db8(0x1bb)](_0x5c38d9);}));}[_0x103a68(0x49e)](){const _0x4855ae=_0x103a68;this[_0x4855ae(0x495)](this[_0x4855ae(0x26a)][_0x4855ae(0x4c1)](_0x29b1e2[_0x4855ae(0x466)][_0x4855ae(0x3d7)],()=>_0x460a10[_0x4855ae(0x198)](_0x35468({'status$':this[_0x4855ae(0x382)][_0x4855ae(0x1a5)]()}),this[_0x4855ae(0x165)])));}},_0x4e0bbf[_0x103a68(0x22e)]=_0x5a0169([_0x59b89d(0x0,_0x460a10[_0x103a68(0x347)]),_0x59b89d(0x1,_0x29b1e2[_0x103a68(0x352)]),_0x59b89d(0x2,_0x460a10['Inject'](_0x460a10[_0x103a68(0x15b)])),_0x59b89d(0x3,_0x460a10['Inject'](_0x4e0bbf['CollaborationController']))],_0x4e0bbf['DesktopCollaborationStatusDisplayController']);function _0x35468(_0x2442de){const {status$:_0x3bbfe7}=_0x2442de;return function(){const _0x372d8f=_0x5cd2;return _0x542714[_0x372d8f(0xf8)](_0x9b641b,{'status$':_0x3bbfe7});};}const _0x1b5909=_0x460a10[_0x103a68(0x36f)](_0x103a68(0x2c5));var _0x1f62d9=Object[_0x103a68(0x3a3)],_0xe78cef=Object[_0x103a68(0x138)],_0x5dadc6=(_0x37893d,_0x37b70a,_0x5161d4,_0x1ace6d)=>{const _0x5275e6=_0x103a68;for(var _0x200efd=_0x1ace6d>0x1?void 0x0:_0x1ace6d?_0xe78cef(_0x37b70a,_0x5161d4):_0x37b70a,_0x58a33d=_0x37893d[_0x5275e6(0x292)]-0x1,_0x14bde2;_0x58a33d>=0x0;_0x58a33d--)(_0x14bde2=_0x37893d[_0x58a33d])&&(_0x200efd=(_0x1ace6d?_0x14bde2(_0x37b70a,_0x5161d4,_0x200efd):_0x14bde2(_0x200efd))||_0x200efd);return _0x1ace6d&&_0x200efd&&_0x1f62d9(_0x37b70a,_0x5161d4,_0x200efd),_0x200efd;},_0x5aa9e0=(_0x477aa5,_0x4285b9)=>(_0x454779,_0xa67a1c)=>_0x4285b9(_0x454779,_0xa67a1c,_0x477aa5);_0x4e0bbf[_0x103a68(0x2f4)]=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x33e4d3,_0x352c1a,_0x540dd6,_0xa6c82f,_0x3b9b60,_0x582658){const _0x31eb06=_0x103a68;super(),this[_0x31eb06(0x337)]=_0x33e4d3,this['_logService']=_0x352c1a,this[_0x31eb06(0x44e)]=_0x540dd6,this[_0x31eb06(0x386)]=_0xa6c82f,this['_snapshotService']=_0x3b9b60,_0x582658?_0x582658==null||_0x582658[_0x31eb06(0x3fe)]()['then'](()=>this['_init']()):(this[_0x31eb06(0x442)][_0x31eb06(0x1b4)](_0x31eb06(0x4a9),_0x31eb06(0x195)),this[_0x31eb06(0x194)]());}async[_0x103a68(0x194)](){const _0x218933=_0x103a68,_0x592f25=this['_urlService'][_0x218933(0xe4)](_0x218933(0x2a0)),_0x130fc5=this['_urlService'][_0x218933(0xe4)](_0x218933(0x483));if(!_0x592f25||!_0x130fc5){this[_0x218933(0x442)][_0x218933(0x1b4)](_0x218933(0x4a9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x130fc5)){case _0x3907d0[_0x218933(0x329)]:{const _0x5a7c12=await this[_0x218933(0x25e)](_0x592f25);this['_setupSubUnitSync'](_0x5a7c12);break;}case _0x3907d0[_0x218933(0x208)]:{await this['_loadDoc'](_0x592f25);break;}default:{this[_0x218933(0x442)][_0x218933(0x35e)](_0x218933(0x4a9),_0x218933(0x143));break;}}}async[_0x103a68(0x446)](_0x3562fb){const _0x429c7e=_0x103a68;await this[_0x429c7e(0x2fb)](_0x3562fb),_0x3562fb[_0x429c7e(0xb7)]['pipe'](_0x22d14a['takeUntil'](this[_0x429c7e(0x20a)]))['subscribe'](_0x30d39f=>{_0x30d39f&&this['_updateURLWithCurrentState'](_0x30d39f);}),this['_urlService'][_0x429c7e(0x2c9)][_0x429c7e(0x3af)](_0x22d14a['takeUntil'](this[_0x429c7e(0x20a)]))['subscribe'](()=>this[_0x429c7e(0x2fb)](_0x3562fb));}['_updateURLWithCurrentState'](_0xb5d91d,_0xbe63d4=!0x1){const _0x2bf091=_0x103a68,_0x4a8b9e=this[_0x2bf091(0x337)]['getParam'](_0x2bf091(0x4ca));_0xb5d91d['getSheetId']()!==_0x4a8b9e&&this['_urlService'][_0x2bf091(0x2d5)]('subunit',_0xb5d91d[_0x2bf091(0x225)](),_0xbe63d4);}async['_updateSubUnitFromURLParams'](_0x51f1ac){const _0x24d06a=_0x103a68;var _0x169d44;const _0x1447e8=this[_0x24d06a(0x337)][_0x24d06a(0xe4)](_0x24d06a(0x4ca));if(!_0x1447e8||!_0x51f1ac['getSheetBySheetId'](_0x1447e8)){const _0x38ce28=_0x51f1ac[_0x24d06a(0x3bc)]()[0x0],_0x1c4904=_0x51f1ac[_0x24d06a(0x307)](_0x38ce28);if(!_0x1c4904)return;this[_0x24d06a(0x11f)](_0x1c4904,!0x0),await this[_0x24d06a(0x44e)]['executeCommand'](_0x57c232[_0x24d06a(0x1c0)]['id'],{'unitId':_0x51f1ac[_0x24d06a(0xf7)](),'subUnitId':_0x38ce28});return;}((_0x169d44=_0x51f1ac['getActiveSheet']())==null?void 0x0:_0x169d44[_0x24d06a(0x225)]())!==_0x1447e8&&await this[_0x24d06a(0x44e)][_0x24d06a(0x3ab)](_0x57c232[_0x24d06a(0x1c0)]['id'],{'unitId':_0x51f1ac[_0x24d06a(0xf7)](),'subUnitId':_0x1447e8});}async[_0x103a68(0x25e)](_0x38d96e){const _0x2a6572=_0x103a68;let _0x2a0f03=0x0;const _0x2bbe6f=await this['_localCacheService'][_0x2a6572(0x203)](_0x38d96e);return _0x2bbe6f&&(_0x2bbe6f[_0x2a6572(0x3ae)]||_0x2bbe6f[_0x2a6572(0x274)]['length']!==0x0)&&(_0x2a0f03=_0x2bbe6f[_0x2a6572(0x2dd)]),_0x2a0f03===0x0&&this[_0x2a6572(0x442)][_0x2a6572(0x1b4)](_0x2a6572(0x4a9),_0x2a6572(0x392)),this[_0x2a6572(0x390)][_0x2a6572(0x406)](_0x38d96e,_0x2a0f03);}async['_loadDoc'](_0x2c55a6){const _0x24fc31=_0x103a68;let _0x2bc800=0x0;const _0x760d5d=await this[_0x24fc31(0x386)]['loadOfflineData'](_0x2c55a6);return _0x760d5d&&(_0x760d5d['awaitingChangeset']||_0x760d5d[_0x24fc31(0x274)][_0x24fc31(0x292)]!==0x0)&&(_0x2bc800=_0x760d5d[_0x24fc31(0x2dd)]),_0x2bc800===0x0&&this['_logService'][_0x24fc31(0x1b4)](_0x24fc31(0x4a9),_0x24fc31(0x392)),this[_0x24fc31(0x390)][_0x24fc31(0x3fd)](_0x2c55a6,_0x2bc800);}},_0x4e0bbf['DataLoaderController']=_0x5dadc6([_0x5aa9e0(0x0,_0x1b5909),_0x5aa9e0(0x1,_0x460a10['ILogService']),_0x5aa9e0(0x2,_0x460a10[_0x103a68(0x134)]),_0x5aa9e0(0x3,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x2b4)])),_0x5aa9e0(0x4,_0x460a10[_0x103a68(0x310)](_0x162fdb[_0x103a68(0x241)])),_0x5aa9e0(0x5,_0x460a10[_0x103a68(0x152)](_0x5bcab3['IRemoteInstanceService']))],_0x4e0bbf[_0x103a68(0x2f4)]);var _0xa9ebf1=Object[_0x103a68(0x3a3)],_0x393cdd=Object[_0x103a68(0x138)],_0x1b5af7=(_0x491dd7,_0x33e11d,_0x217c26,_0x242dfa)=>{const _0x30c575=_0x103a68;for(var _0x3f6464=_0x242dfa>0x1?void 0x0:_0x242dfa?_0x393cdd(_0x33e11d,_0x217c26):_0x33e11d,_0x2ce5ab=_0x491dd7[_0x30c575(0x292)]-0x1,_0xe43ab;_0x2ce5ab>=0x0;_0x2ce5ab--)(_0xe43ab=_0x491dd7[_0x2ce5ab])&&(_0x3f6464=(_0x242dfa?_0xe43ab(_0x33e11d,_0x217c26,_0x3f6464):_0xe43ab(_0x3f6464))||_0x3f6464);return _0x242dfa&&_0x3f6464&&_0xa9ebf1(_0x33e11d,_0x217c26,_0x3f6464),_0x3f6464;},_0x526bbb=(_0x55c0c7,_0x111d52)=>(_0x29eafc,_0xefbea1)=>_0x111d52(_0x29eafc,_0xefbea1,_0x55c0c7);const _0x3f3bf4=_0x103a68(0x29f),_0x2f36da=_0x103a68(0x226);let _0x1862e6=class extends _0x460a10['Disposable']{constructor(_0x3b0aff,_0x419b22){const _0x9bbca2=_0x103a68;super(),this[_0x9bbca2(0x15d)]=_0x3b0aff,this[_0x9bbca2(0x153)]=_0x419b22,this[_0x9bbca2(0x194)]();}[_0x103a68(0x194)](){const _0xf4d36c=_0x103a68;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0xf4d36c(0x3d1)](()=>{const _0x37e44b=_0xf4d36c;var _0x48ffe6;const _0x462a4c=this[_0x37e44b(0x15d)]['getFocusedUnit']();let _0x28cfc5=(_0x48ffe6=this[_0x37e44b(0x153)]['getConfig'](_0x3f3bf4))!=null?_0x48ffe6:_0x2f36da;_0x462a4c instanceof _0x460a10[_0x37e44b(0x147)]&&(_0x28cfc5=_0x462a4c[_0x37e44b(0x3e2)]),document['title']=_0x28cfc5;}));}};_0x1862e6=_0x1b5af7([_0x526bbb(0x0,_0x460a10[_0x103a68(0x347)]),_0x526bbb(0x1,_0x460a10[_0x103a68(0x3e3)])],_0x1862e6);var _0x173e17=Object[_0x103a68(0x3a3)],_0x2099a4=Object[_0x103a68(0x138)],_0x322eb9=(_0x2739ff,_0x3f8646,_0xecf9f9,_0x914a98)=>{const _0x514738=_0x103a68;for(var _0xba6518=_0x914a98>0x1?void 0x0:_0x914a98?_0x2099a4(_0x3f8646,_0xecf9f9):_0x3f8646,_0x32701e=_0x2739ff[_0x514738(0x292)]-0x1,_0x593faa;_0x32701e>=0x0;_0x32701e--)(_0x593faa=_0x2739ff[_0x32701e])&&(_0xba6518=(_0x914a98?_0x593faa(_0x3f8646,_0xecf9f9,_0xba6518):_0x593faa(_0xba6518))||_0xba6518);return _0x914a98&&_0xba6518&&_0x173e17(_0x3f8646,_0xecf9f9,_0xba6518),_0xba6518;},_0x2aa018=(_0x49b0a9,_0x49935f)=>(_0x5efad4,_0x1d8c46)=>_0x49935f(_0x5efad4,_0x1d8c46,_0x49b0a9);let _0x2400eb=class{constructor(_0x59025a,_0x1ac67b,_0x39353f){const _0x3212e5=_0x103a68;this[_0x3212e5(0x153)]=_0x59025a,this[_0x3212e5(0x299)]=_0x1ac67b,this[_0x3212e5(0x2ab)]=_0x39353f,this[_0x3212e5(0x40b)]();}[_0x103a68(0x40b)](){const _0x59c2ce=_0x103a68;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x26e640,_0x384891)=>_0x384891(_0x26e640)[_0x59c2ce(0x3af)](_0x22d14a[_0x59c2ce(0xfc)](async _0x5ac79b=>{const _0x46470c=_0x59c2ce,_0x38806c=_0x5ac79b;if(_0x38806c[_0x46470c(0x45e)]===0x191&&window['confirm'](this['localeService']['t'](_0x46470c(0x1e7)))){const _0x5d11e4=window['encodeURIComponent'](window['location'][_0x46470c(0x3e9)]);window[_0x46470c(0x1fb)]['href']=this['_getLoginPath']()+_0x46470c(0x31f)+_0x5d11e4;}return _0x38806c;}))});}['_getLoginPath'](){const _0x387533=_0x103a68;var _0x462e22,_0x21232c;const _0x550e13=this[_0x387533(0x153)][_0x387533(0x20d)](_0x17be73),_0x5a5f6d=this[_0x387533(0x153)]['getConfig'](_0x49305e);return(_0x21232c=(_0x462e22=_0x5a5f6d==null?void 0x0:_0x5a5f6d[_0x387533(0x487)])!=null?_0x462e22:_0x550e13)!=null?_0x21232c:_0x2d0494;}};_0x2400eb=_0x322eb9([_0x2aa018(0x0,_0x460a10[_0x103a68(0x3e3)]),_0x2aa018(0x1,_0x460a10[_0x103a68(0x310)](_0x4b5b88['HTTPService'])),_0x2aa018(0x2,_0x460a10[_0x103a68(0x310)](_0x460a10['LocaleService']))],_0x2400eb);var _0x3eccee=Object[_0x103a68(0x3a3)],_0x4d9652=Object['getOwnPropertyDescriptor'],_0x7875e1=(_0x52fa11,_0x5f3b70,_0x2dbc61,_0x5c81a9)=>{for(var _0x2aaf8a=_0x5c81a9>0x1?void 0x0:_0x5c81a9?_0x4d9652(_0x5f3b70,_0x2dbc61):_0x5f3b70,_0x46234c=_0x52fa11['length']-0x1,_0x19330c;_0x46234c>=0x0;_0x46234c--)(_0x19330c=_0x52fa11[_0x46234c])&&(_0x2aaf8a=(_0x5c81a9?_0x19330c(_0x5f3b70,_0x2dbc61,_0x2aaf8a):_0x19330c(_0x2aaf8a))||_0x2aaf8a);return _0x5c81a9&&_0x2aaf8a&&_0x3eccee(_0x5f3b70,_0x2dbc61,_0x2aaf8a),_0x2aaf8a;},_0x45d7d9=(_0x317b74,_0x14d3b6)=>(_0x2caca6,_0x439941)=>_0x14d3b6(_0x2caca6,_0x439941,_0x317b74);const _0x38552d=_0x103a68(0x462),_0x2e56d0='/universer-api/authz';_0x4e0bbf[_0x103a68(0x21d)]=class extends _0x460a10[_0x103a68(0xd1)]{constructor(_0x2bd0f6,_0x43f8d5){const _0x22c929=_0x103a68;super(),this[_0x22c929(0xf0)]=_0x2bd0f6,this[_0x22c929(0x153)]=_0x43f8d5,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x40b5e7=_0x103a68,_0x272ddd=this;this[_0x40b5e7(0x495)](this['_HTTPService'][_0x40b5e7(0xd3)]({'priority':0x3e7,'interceptor':_0x4b5b88['MergeInterceptorFactory']({'isMatch'(_0x5d2f72){const _0x23948b=_0x40b5e7;var _0xb69c83;if(_0x5d2f72[_0x23948b(0x2d3)]==='POST'&&((_0xb69c83=_0x5d2f72[_0x23948b(0x363)])!=null&&_0xb69c83[_0x23948b(0x103)])){const {objectID:_0x12ac95,objectType:_0x3ac125}=_0x5d2f72[_0x23948b(0x363)][_0x23948b(0x103)]||{};if(!_0x12ac95||_0x3ac125===void 0x0)return!0x1;const _0x508394=_0x272ddd['_getAPIPrefixPath']()+'/'+_0x3ac125+'/object/'+_0x12ac95+'/allowed';if(_0x5d2f72[_0x23948b(0x14c)]===_0x508394)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x43f50b){const _0x704b7c=_0x40b5e7;var _0x2578af;return(_0x2578af=_0x43f50b[_0x704b7c(0x363)])==null?void 0x0:_0x2578af[_0x704b7c(0x103)];},'mergeParamsToRequest'(_0x171ce9,_0x5a874f){const _0x31baa3=_0x40b5e7,_0x1eda7f=_0x272ddd[_0x31baa3(0x3a9)]()+_0x31baa3(0xef),_0xa5bac9=_0x171ce9[_0x31baa3(0x214)]((_0x17292d,_0x2ac2bb)=>{const _0xffcfb8=_0x31baa3,{unitID:_0x498216,objectID:_0x582b86,objectType:_0x444b1c,actions:_0x26610f}=_0x2ac2bb;return _0x17292d[_0x498216]||(_0x17292d[_0x498216]={}),_0x17292d[_0x498216][_0x582b86]||(_0x17292d[_0x498216][_0x582b86]={'objectID':_0x582b86,'objectType':_0x444b1c,'actions':[]}),_0x17292d[_0x498216][_0x582b86][_0xffcfb8(0x4da)]['push'](..._0x26610f),_0x17292d;},{}),_0x170f0f=[];for(const _0x12a975 in _0xa5bac9)for(const _0x1e1502 in _0xa5bac9[_0x12a975]){const {actions:_0x402b72,objectType:_0x382e60}=_0xa5bac9[_0x12a975][_0x1e1502],_0x504d5d=[...new Set(_0x402b72)];_0x170f0f[_0x31baa3(0x420)]({'unitID':_0x12a975,'objectID':_0x1e1502,'objectType':_0x382e60,'actions':_0x504d5d});}return new _0x4b5b88[(_0x31baa3(0xb4))](_0x31baa3(0x430),_0x1eda7f,{'headers':_0x5a874f[_0x31baa3(0x433)],'withCredentials':_0x5a874f['withCredentials'],'responseType':_0x5a874f[_0x31baa3(0x283)],'body':{'requests':_0x170f0f}});}},{'distributeResult'(_0x48ff6a,_0x451358){const _0x3d555b=_0x40b5e7,{objectActions:_0x35b263}=_0x48ff6a;return _0x451358[_0x3d555b(0x38a)](_0x4c475d=>{const _0x1072ed=_0x3d555b,{unitID:_0x4d6cdc,objectID:_0x57f364,actions:_0x598587}=_0x4c475d,_0x2ef9b0=_0x35b263[_0x1072ed(0x257)](_0x100488=>_0x100488[_0x1072ed(0x19c)]===_0x4d6cdc&&_0x100488[_0x1072ed(0x4b0)]===_0x57f364),_0x4ff4ae=_0x598587[_0x1072ed(0x38a)](_0x3e94a8=>_0x2ef9b0==null?void 0x0:_0x2ef9b0[_0x1072ed(0x4da)]['find'](_0x35051a=>_0x35051a[_0x1072ed(0x31b)]===_0x3e94a8))['filter'](_0x2bfe7f=>!!_0x2bfe7f);return{'config':_0x4c475d,'result':{'actions':_0x4ff4ae,'error':_0x48ff6a[_0x1072ed(0x35e)]}};});}})}));}['_getAPIPrefixPath'](){const _0x136bdb=_0x103a68;var _0x4522fb,_0x507fd0;const _0x4bb873=this[_0x136bdb(0x153)][_0x136bdb(0x20d)](_0x38552d),_0x7a2c40=this['_configService'][_0x136bdb(0x20d)](_0x49305e);return(_0x507fd0=(_0x4522fb=_0x7a2c40==null?void 0x0:_0x7a2c40['authzUrl'])!=null?_0x4522fb:_0x4bb873)!=null?_0x507fd0:_0x2e56d0;}async['create'](_0x4fc10e){const _0x530985=_0x103a68,_0x23bc40=this[_0x530985(0x3a9)]()+'/'+_0x4fc10e[_0x530985(0x300)]+_0x530985(0x244);return(await this[_0x530985(0xf0)][_0x530985(0x330)](_0x23bc40,{'body':_0x4fc10e}))[_0x530985(0x103)][_0x530985(0x4b0)]||'';}async[_0x103a68(0x20b)](_0xe4bbd9){const _0x1183a0=_0x103a68,_0x1b4c41=this[_0x1183a0(0x3a9)]()+'/-/object/list';return(await this[_0x1183a0(0xf0)][_0x1183a0(0x330)](_0x1b4c41,{'body':_0xe4bbd9}))[_0x1183a0(0x103)][_0x1183a0(0x13f)];}async[_0x103a68(0x4b8)](_0x2db257){const _0x166601=_0x103a68,_0x506162=this[_0x166601(0x3a9)]()+'/'+_0x2db257[_0x166601(0x300)]+_0x166601(0x15a)+_0x2db257[_0x166601(0x4b0)];await this[_0x166601(0xf0)][_0x166601(0x35a)](_0x506162,{'body':_0x2db257});}async[_0x103a68(0x23c)](_0x464a2c){const _0x51e646=_0x103a68,_0xfaa40f=this[_0x51e646(0x3a9)]()+'/'+_0x464a2c[_0x51e646(0x300)]+_0x51e646(0x15a)+_0x464a2c[_0x51e646(0x4b0)]+'/allowed';return(await this[_0x51e646(0xf0)][_0x51e646(0x330)](_0xfaa40f,{'body':_0x464a2c}))[_0x51e646(0x103)]['actions'];}async[_0x103a68(0x2a5)](_0x152371){const _0x4bf0ef=_0x103a68,_0xc7a62c=this[_0x4bf0ef(0x3a9)]()+_0x4bf0ef(0xef);return(await this[_0x4bf0ef(0xf0)]['post'](_0xc7a62c,{'body':{'requests':_0x152371}}))[_0x4bf0ef(0x103)]['objectActions'];}async[_0x103a68(0x349)](_0x5da565){const _0x58c61b=_0x103a68,_0x68a3c3=this[_0x58c61b(0x3a9)]()+'/'+_0x5da565['objectType']+_0x58c61b(0xf5),_0x200351=await this['_HTTPService'][_0x58c61b(0x330)](_0x68a3c3,{'body':_0x5da565});return{'roles':_0x200351[_0x58c61b(0x103)][_0x58c61b(0x436)],'actions':_0x200351[_0x58c61b(0x103)][_0x58c61b(0x4da)]};}async[_0x103a68(0x26d)](_0x28526b){const _0x4c61c9=_0x103a68,_0x164834=this['_getAPIPrefixPath']()+_0x4c61c9(0x2bd);await this[_0x4c61c9(0xf0)][_0x4c61c9(0xe0)](_0x164834,{'params':{'collaboratorID':_0x28526b[_0x4c61c9(0x145)],'objectID':_0x28526b[_0x4c61c9(0x4b0)],'unitID':_0x28526b['unitID']}});}async['updateCollaborator'](_0x4d3571){const _0xa7f480=_0x103a68,_0x28d70c=this[_0xa7f480(0x3a9)]()+_0xa7f480(0x2bd);await this[_0xa7f480(0xf0)][_0xa7f480(0x2e5)](_0x28d70c,{'body':_0x4d3571});}async[_0x103a68(0x3d9)](_0x139257){const _0x45b2aa=_0x103a68,_0x2abc4d=this[_0x45b2aa(0x3a9)]()+_0x45b2aa(0x2bd);await this[_0x45b2aa(0xf0)][_0x45b2aa(0x330)](_0x2abc4d,{'body':_0x139257});}async[_0x103a68(0x23b)](_0x4fe2d2){const _0x239d75=_0x103a68,_0x2ac761=this[_0x239d75(0x3a9)]()+_0x239d75(0x2bd);return(await this[_0x239d75(0xf0)]['get'](_0x2ac761,{'params':{'objectID':_0x4fe2d2['objectID'],'unitID':_0x4fe2d2['unitID']}}))[_0x239d75(0x103)]['collaborators'];}async[_0x103a68(0x335)](_0x2ce62d){const _0x1488ed=_0x103a68,_0x3aca50=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1488ed(0xf0)][_0x1488ed(0x35a)](_0x3aca50,{'body':_0x2ce62d});}},_0x4e0bbf['AuthzIoHttpService']=_0x7875e1([_0x45d7d9(0x0,_0x460a10['Inject'](_0x4b5b88[_0x103a68(0x2b2)])),_0x45d7d9(0x1,_0x460a10['Inject'](_0x460a10[_0x103a68(0x3e3)]))],_0x4e0bbf['AuthzIoHttpService']);var _0xc7f6e1=Object['defineProperty'],_0x317c75=Object[_0x103a68(0x138)],_0x589781=(_0x179119,_0x1443c9,_0x228923,_0x4e4fcb)=>{const _0x1208e6=_0x103a68;for(var _0x96eaff=_0x4e4fcb>0x1?void 0x0:_0x4e4fcb?_0x317c75(_0x1443c9,_0x228923):_0x1443c9,_0x5aaaaf=_0x179119[_0x1208e6(0x292)]-0x1,_0x53ac1e;_0x5aaaaf>=0x0;_0x5aaaaf--)(_0x53ac1e=_0x179119[_0x5aaaaf])&&(_0x96eaff=(_0x4e4fcb?_0x53ac1e(_0x1443c9,_0x228923,_0x96eaff):_0x53ac1e(_0x96eaff))||_0x96eaff);return _0x4e4fcb&&_0x96eaff&&_0xc7f6e1(_0x1443c9,_0x228923,_0x96eaff),_0x96eaff;},_0x54fe26=(_0x2ce59e,_0x1c99ed)=>(_0x5efb79,_0x2b813f)=>_0x1c99ed(_0x5efb79,_0x2b813f,_0x2ce59e);let _0x3a4588=class{constructor(_0x538c96){const _0x6b2f19=_0x103a68;this[_0x6b2f19(0x299)]=_0x538c96,this[_0x6b2f19(0x339)]();}[_0x103a68(0x339)](){const _0x46b66c=_0x103a68;this['_httpService'][_0x46b66c(0xd3)]({'interceptor':(_0x1a7bcd,_0x2daaf9)=>{const _0x158db9=_0x46b66c,_0x2387a2=_0x1a7bcd[_0x158db9(0x433)],_0x230c4c=_0x3c3026[_0x158db9(0x497)]();return _0x230c4c&&_0x2387a2['set'](_0x158db9(0x157),_0x230c4c),_0x2daaf9(_0x1a7bcd);}});}};_0x3a4588=_0x589781([_0x54fe26(0x0,_0x460a10[_0x103a68(0x310)](_0x4b5b88[_0x103a68(0x2b2)]))],_0x3a4588);var _0x3b6675=Object[_0x103a68(0x3a3)],_0x208042=Object[_0x103a68(0x138)],_0x162c31=(_0x5ea768,_0x18f2d9,_0x2c3273,_0x313371)=>{const _0x29f1d0=_0x103a68;for(var _0x58064f=_0x313371>0x1?void 0x0:_0x313371?_0x208042(_0x18f2d9,_0x2c3273):_0x18f2d9,_0xcf8afd=_0x5ea768[_0x29f1d0(0x292)]-0x1,_0xafdc6d;_0xcf8afd>=0x0;_0xcf8afd--)(_0xafdc6d=_0x5ea768[_0xcf8afd])&&(_0x58064f=(_0x313371?_0xafdc6d(_0x18f2d9,_0x2c3273,_0x58064f):_0xafdc6d(_0x58064f))||_0x58064f);return _0x313371&&_0x58064f&&_0x3b6675(_0x18f2d9,_0x2c3273,_0x58064f),_0x58064f;},_0x589a60=(_0x1b7bf2,_0x51c02c)=>(_0x1c3036,_0x300e39)=>_0x51c02c(_0x1c3036,_0x300e39,_0x1b7bf2);const _0x2cd241=[_0x103a68(0x280),_0x103a68(0x1f3),_0x103a68(0x3c4),_0x103a68(0x1d9),_0x103a68(0x2fd)],_0x3cbed4=0x5*0x400*0x400,_0xe3eaab=_0x103a68(0x424),_0x3a0e9d='/universer-api/stream/file/upload',_0x2d5748=_0x103a68(0x2a4),_0xb3fe3b='/universer-api/file/{fileID}/sign-url';_0x4e0bbf[_0x103a68(0x217)]=class{constructor(_0x353836,_0x5a7483,_0x441091){const _0x4dcbab=_0x103a68;_0x519548(this,_0x4dcbab(0x28d),0x0),_0x519548(this,'_change$',new _0x22d14a['Subject']()),_0x519548(this,_0x4dcbab(0x17c),this[_0x4dcbab(0x30c)]),_0x519548(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x353836,this['_configService']=_0x5a7483,this[_0x4dcbab(0x15d)]=_0x441091);}['setWaitCount'](_0x43dc43){const _0x516fac=_0x103a68;this['_waitCount']=_0x43dc43,this[_0x516fac(0x30c)][_0x516fac(0x1bb)](_0x43dc43);}[_0x103a68(0x23a)](_0x4bafd3,_0x4a60ea){const _0xb4c512=_0x103a68;if(_0x4a60ea===_0x39a60b[_0xb4c512(0xca)][_0xb4c512(0x2f7)]){const _0x4caa4b=new Image();return _0x4caa4b['src']=_0x4bafd3,_0x4caa4b;}return this[_0xb4c512(0x3b7)]['get'](_0x4bafd3);}[_0x103a68(0x3b8)](_0x4bf55f,_0x2b2204,_0x3adc37){const _0x1c38ba=_0x103a68;_0x2b2204===_0x39a60b[_0x1c38ba(0xca)][_0x1c38ba(0x2f7)]||_0x3adc37==null||this[_0x1c38ba(0x3b7)][_0x1c38ba(0x29c)](_0x4bf55f,_0x3adc37);}async[_0x103a68(0xff)](_0x13e2ef){const _0x13b6e2=_0x103a68;try{const _0x17cc60=this['_replaceFileID'](this['_getSignURL'](),''+_0x13e2ef),_0x3753b0=(await this[_0x13b6e2(0x299)][_0x13b6e2(0x1c8)](_0x17cc60))[_0x13b6e2(0x103)];if(_0x3753b0[_0x13b6e2(0x35e)]&&_0x3753b0[_0x13b6e2(0x35e)]['code']===_0x48b06d['OK']){const _0x2e2335=new URL(_0x3753b0[_0x13b6e2(0x14c)],this[_0x13b6e2(0x49c)]())[_0x13b6e2(0xdd)]();return Promise[_0x13b6e2(0x181)](_0x2e2335);}return Promise[_0x13b6e2(0x452)](_0x3753b0[_0x13b6e2(0x35e)]);}catch(_0x549a86){return Promise[_0x13b6e2(0x452)](_0x549a86);}}async['saveImage'](_0x4b503d){const _0x4098fb=_0x103a68;let _0x14f053='';if(!_0x2cd241[_0x4098fb(0x3d6)](_0x4b503d['type']))return this[_0x4098fb(0x298)](),Promise[_0x4098fb(0x452)](new Error(_0x39a60b[_0x4098fb(0x473)][_0x4098fb(0x393)]));if(_0x4b503d[_0x4098fb(0x150)]>_0x3cbed4)return this[_0x4098fb(0x298)](),Promise['reject'](new Error(_0x39a60b[_0x4098fb(0x473)][_0x4098fb(0x175)]));try{const _0x57c269=new FormData();_0x57c269[_0x4098fb(0x117)](_0x4098fb(0x358),_0x4b503d);const _0x2afc9a=this['_univerInstanceService']['getFocusedUnit'](),_0x501bc2=_0x2afc9a==null?void 0x0:_0x2afc9a[_0x4098fb(0xf7)]();if(!_0x501bc2)throw new Error(_0x4098fb(0x1ea));const _0x5ccad1=this[_0x4098fb(0x301)]()+_0x4098fb(0x1ad)+_0x4b503d[_0x4098fb(0x150)][_0x4098fb(0xdd)]()+_0x4098fb(0x1ce)+_0x46e1d8[_0x4098fb(0x4b1)]+'&assign='+encodeURIComponent(_0x501bc2),_0x14a10d=await(await fetch(_0x5ccad1,{'method':_0x4098fb(0x430),'body':_0x57c269}))[_0x4098fb(0x259)]();if(typeof _0x14a10d[_0x4098fb(0x4bf)]!=_0x4098fb(0x46d))return this['_decreaseWaiting'](),Promise[_0x4098fb(0x452)](new Error(_0x39a60b[_0x4098fb(0x473)][_0x4098fb(0xdf)]));_0x14f053=_0x14a10d[_0x4098fb(0x4bf)];}catch{return this['_decreaseWaiting'](),Promise[_0x4098fb(0x452)](new Error(_0x39a60b[_0x4098fb(0x473)][_0x4098fb(0xdf)]));}return new Promise((_0x284c32,_0x4156ed)=>{const _0x40360c=_0x4098fb,_0x4cf4b0=new FileReader();_0x4cf4b0['readAsDataURL'](_0x4b503d),_0x4cf4b0[_0x40360c(0x312)]=_0x3988a4=>{const _0x157bee=_0x40360c;var _0x111c4c;const _0x27e2b9=(_0x111c4c=_0x3988a4[_0x157bee(0x359)])==null?void 0x0:_0x111c4c[_0x157bee(0x3a4)];if(_0x27e2b9==null){this['_decreaseWaiting'](),_0x4156ed(new Error(_0x39a60b[_0x157bee(0x473)][_0x157bee(0xdf)]));return;}const _0x5ca0ab=_0x460a10['Tools']['generateRandomId'](0x6);_0x284c32({'imageId':_0x5ca0ab,'imageSourceType':_0x39a60b[_0x157bee(0xca)]['UUID'],'source':_0x14f053,'base64Cache':_0x27e2b9,'status':_0x39a60b[_0x157bee(0x473)]['SUCCUSS']}),this[_0x157bee(0x298)]();};});}['_getUploadFileURL'](){const _0x513100=_0x103a68;var _0x500bb0,_0x31c680;const _0x2fa2a9=this['_configService'][_0x513100(0x20d)](_0xe3eaab),_0x452125=this[_0x513100(0x153)][_0x513100(0x20d)](_0x49305e);return(_0x31c680=(_0x500bb0=_0x452125==null?void 0x0:_0x452125[_0x513100(0x4de)])!=null?_0x500bb0:_0x2fa2a9)!=null?_0x31c680:_0x3a0e9d;}[_0x103a68(0x4a7)](){const _0x3af3a6=_0x103a68;var _0x174a69,_0x2ce21e;const _0x42d712=this[_0x3af3a6(0x153)][_0x3af3a6(0x20d)](_0x2d5748),_0x11232e=this[_0x3af3a6(0x153)][_0x3af3a6(0x20d)](_0x49305e);return(_0x2ce21e=(_0x174a69=_0x11232e==null?void 0x0:_0x11232e['signUrlServerUrl'])!=null?_0x174a69:_0x42d712)!=null?_0x2ce21e:_0xb3fe3b;}[_0x103a68(0x49c)](){const _0x5236b9=_0x103a68;var _0x4fab8a;const _0x43c02e=this['_configService']['getConfig'](_0x49305e);return(_0x4fab8a=_0x43c02e==null?void 0x0:_0x43c02e[_0x5236b9(0x1b1)])!=null?_0x4fab8a:location['origin'];}[_0x103a68(0x3f4)](_0x541f5f,_0x5d75f9){const _0x58e23b=_0x103a68;return _0x541f5f[_0x58e23b(0xbe)]('{fileID}',_0x5d75f9);}[_0x103a68(0x298)](){const _0xa6ae86=_0x103a68;this[_0xa6ae86(0x28d)]-=0x1,this[_0xa6ae86(0x30c)]['next'](this[_0xa6ae86(0x28d)]);}},_0x4e0bbf[_0x103a68(0x217)]=_0x162c31([_0x589a60(0x0,_0x460a10[_0x103a68(0x310)](_0x4b5b88[_0x103a68(0x2b2)])),_0x589a60(0x1,_0x460a10[_0x103a68(0x3e3)]),_0x589a60(0x2,_0x460a10['Inject'](_0x460a10[_0x103a68(0x347)]))],_0x4e0bbf[_0x103a68(0x217)]);var _0x1cec31=Object[_0x103a68(0x3a3)],_0xa1e667=Object['getOwnPropertyDescriptor'],_0xf0a35b=(_0x16599d,_0x580c27,_0x104bd7,_0x341f21)=>{for(var _0x4d4b11=_0x341f21>0x1?void 0x0:_0x341f21?_0xa1e667(_0x580c27,_0x104bd7):_0x580c27,_0x85852f=_0x16599d['length']-0x1,_0x613aa0;_0x85852f>=0x0;_0x85852f--)(_0x613aa0=_0x16599d[_0x85852f])&&(_0x4d4b11=(_0x341f21?_0x613aa0(_0x580c27,_0x104bd7,_0x4d4b11):_0x613aa0(_0x4d4b11))||_0x4d4b11);return _0x341f21&&_0x4d4b11&&_0x1cec31(_0x580c27,_0x104bd7,_0x4d4b11),_0x4d4b11;},_0x294786=(_0x4c30cb,_0x522849)=>(_0x61133,_0x3d64da)=>_0x522849(_0x61133,_0x3d64da,_0x4c30cb);let _0x4fbdc6=class extends _0x460a10[_0x103a68(0x16c)]{constructor(_0x214960,_0x5be673,_0x2ba359,_0x3d49b5,_0x1e68bb){const _0x35cdaa=_0x103a68;super(),this[_0x35cdaa(0x165)]=_0x214960,this[_0x35cdaa(0x15d)]=_0x5be673,this[_0x35cdaa(0x467)]=_0x2ba359,this['_collaborationSessionService']=_0x3d49b5,this[_0x35cdaa(0x136)]=_0x1e68bb,this[_0x35cdaa(0x2b7)](),this[_0x35cdaa(0x4df)]();}[_0x103a68(0x4df)](){const _0x159d33=_0x103a68,_0x868777=async _0x4045dc=>{const _0x2921ba=_0x5cd2;(await this[_0x2921ba(0xc6)]['requireSession'](_0x4045dc))[_0x2921ba(0x1e1)][_0x2921ba(0x3af)](_0x436c5c[_0x2921ba(0x162)](_0x88e9ab=>_0x88e9ab[_0x2921ba(0x2fe)]===_0x162fdb[_0x2921ba(0x26c)][_0x2921ba(0x1d3)]),_0x436c5c[_0x2921ba(0x415)](this[_0x2921ba(0x20a)]))[_0x2921ba(0x3d1)](_0x2992c4=>{const _0x50b4ae=_0x2921ba,_0xc726b7=_0x2992c4,{reason:_0x20e4f8}=_0xc726b7[_0x50b4ae(0x47f)];this[_0x50b4ae(0x165)][_0x50b4ae(0x1c8)](_0x29b1e2[_0x50b4ae(0x43f)])[_0x50b4ae(0x410)]({'type':_0x511ab8[_0x50b4ae(0x4cd)][_0x50b4ae(0x290)],'content':this['_localeService']['t'](_0x50b4ae(0x275))+'('+_0x20e4f8+')'}),this['_permissionService'][_0x50b4ae(0x4c2)](new _0x57c232[(_0x50b4ae(0x4ae))](_0x4045dc)['id'],!0x1),this[_0x50b4ae(0xc6)][_0x50b4ae(0x3a2)](_0x4045dc);});};_0x22d14a[_0x159d33(0x477)](this[_0x159d33(0x15d)][_0x159d33(0xcb)](_0x460a10[_0x159d33(0x3c9)][_0x159d33(0x329)]),this['_univerInstanceService'][_0x159d33(0xcb)](_0x460a10[_0x159d33(0x3c9)][_0x159d33(0x208)]))[_0x159d33(0x3af)](_0x436c5c[_0x159d33(0x38a)](_0x130c52=>_0x130c52[_0x159d33(0xf7)]()),_0x436c5c[_0x159d33(0x162)](_0xbad869=>!_0x460a10[_0x159d33(0x4e4)](_0xbad869)),_0x436c5c[_0x159d33(0x415)](this['dispose$']))[_0x159d33(0x3d1)](_0x230522=>{_0x868777(_0x230522);});}['_initUnitPermissionChange'](){const _0x545796=_0x103a68,_0x2bd361=async _0x210736=>{const _0x39f517=_0x5cd2;(await this[_0x39f517(0xc6)][_0x39f517(0x43c)](_0x210736))[_0x39f517(0x1e1)][_0x39f517(0x3af)](_0x436c5c[_0x39f517(0x162)](_0x28c785=>_0x28c785[_0x39f517(0x2fe)]===_0x162fdb[_0x39f517(0x26c)][_0x39f517(0x220)]),_0x436c5c[_0x39f517(0x415)](this['dispose$']))[_0x39f517(0x3d1)](_0x31fa31=>{const _0x270e45=_0x39f517,_0x55ae76=_0x31fa31,{objectId:_0x21ae03}=_0x55ae76['data'],_0x349f51=this[_0x270e45(0x165)][_0x270e45(0x1c8)](_0x448142[_0x270e45(0x2b3)]);_0x21ae03===_0x210736?_0x349f51['initWorkbookPermissionChange'](_0x210736):_0x349f51['refreshPermission'](_0x210736,_0x21ae03);});};_0x22d14a['merge'](this[_0x545796(0x15d)]['getTypeOfUnitAdded$'](_0x460a10[_0x545796(0x3c9)][_0x545796(0x329)]),this['_univerInstanceService'][_0x545796(0xcb)](_0x460a10[_0x545796(0x3c9)][_0x545796(0x208)]))[_0x545796(0x3af)](_0x436c5c[_0x545796(0x38a)](_0x15e40c=>_0x15e40c['getUnitId']()),_0x436c5c['filter'](_0x378d04=>!_0x460a10['isInternalEditorID'](_0x378d04)),_0x436c5c[_0x545796(0x415)](this[_0x545796(0x20a)]))[_0x545796(0x3d1)](_0x2059e1=>{_0x2bd361(_0x2059e1);});}};_0x4fbdc6=_0xf0a35b([_0x294786(0x0,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x294786(0x1,_0x460a10[_0x103a68(0x347)]),_0x294786(0x2,_0x460a10['IPermissionService']),_0x294786(0x3,_0x460a10[_0x103a68(0x310)](_0x4e0bbf[_0x103a68(0x248)])),_0x294786(0x4,_0x460a10['Inject'](_0x460a10[_0x103a68(0x176)]))],_0x4fbdc6);var _0x2df2df=Object[_0x103a68(0x3a3)],_0x1363ad=Object[_0x103a68(0x138)],_0x31cc4b=(_0x5769af,_0x27e012,_0xceca06,_0x4cbafb)=>{const _0x377d8b=_0x103a68;for(var _0x416017=_0x4cbafb>0x1?void 0x0:_0x4cbafb?_0x1363ad(_0x27e012,_0xceca06):_0x27e012,_0xe407cb=_0x5769af[_0x377d8b(0x292)]-0x1,_0x1d918e;_0xe407cb>=0x0;_0xe407cb--)(_0x1d918e=_0x5769af[_0xe407cb])&&(_0x416017=(_0x4cbafb?_0x1d918e(_0x27e012,_0xceca06,_0x416017):_0x1d918e(_0x416017))||_0x416017);return _0x4cbafb&&_0x416017&&_0x2df2df(_0x27e012,_0xceca06,_0x416017),_0x416017;},_0x9c521e=(_0x2e101a,_0x31a6be)=>(_0x1d7b07,_0x26d7dc)=>_0x31a6be(_0x1d7b07,_0x26d7dc,_0x2e101a);_0x4e0bbf[_0x103a68(0x137)]=class{constructor(_0x13abbf,_0x3b29eb){const _0x232685=_0x103a68;this[_0x232685(0x153)]=_0x13abbf,this[_0x232685(0x299)]=_0x3b29eb;}async[_0x103a68(0x405)](_0x341b90,_0x41f757){const _0x4719b0=_0x103a68;var _0x52d550;const {unitID:_0x28c19c,type:_0x22f27f,revision:_0x421cbb=0x0}=_0x41f757,_0x2f4092=this['_getSnapshotAPIPrefix']()+'/'+_0x22f27f+_0x4719b0(0x14e)+_0x28c19c+_0x4719b0(0x249)+_0x421cbb,_0x1d150b=(await this['_httpService'][_0x4719b0(0x1c8)](_0x2f4092))[_0x4719b0(0x103)],_0x495c81=(_0x52d550=_0x1d150b['snapshot'])==null?void 0x0:_0x52d550[_0x4719b0(0xc1)];if(_0x495c81){const _0x509dfe=_0x495c81==null?void 0x0:_0x495c81[_0x4719b0(0x21f)],_0x3abb53=_0x162fdb[_0x4719b0(0x414)][_0x4719b0(0x493)](_0x162fdb[_0x4719b0(0x2a8)](_0x509dfe));_0x495c81[_0x4719b0(0x21f)]=_0x3abb53,Object['entries'](_0x495c81[_0x4719b0(0x216)])[_0x4719b0(0x196)](([,_0x2e0da9])=>{const _0x4d481e=_0x4719b0,_0x1258c5=_0x2e0da9[_0x4d481e(0x21f)],_0x240ee8=_0x162fdb[_0x4d481e(0x414)][_0x4d481e(0x493)](_0x162fdb['b64DecodeUnicode'](_0x1258c5));_0x2e0da9[_0x4d481e(0x21f)]=_0x240ee8;});}return _0x1d150b;}async[_0x103a68(0x120)](_0xbb9d5f,_0x50ffc6){const _0x3fb76f=_0x103a68,{unitID:_0x396a79,type:_0x5e2677,blockID:_0x185ff3}=_0x50ffc6,_0x4fa5f6=this[_0x3fb76f(0x4c5)]()+'/'+_0x5e2677+_0x3fb76f(0x14e)+_0x396a79+_0x3fb76f(0xd9)+_0x185ff3;return(await this[_0x3fb76f(0x299)]['get'](_0x4fa5f6))['body'];}async[_0x103a68(0x251)](_0x1a16ed,_0x1bf221){const _0xc5e050=_0x103a68,{unitID:_0x3386f3,type:_0x54e5f9,blockID:_0x1fc1eb}=_0x1bf221,_0x3b6939=this['_getAPIPrefix']()+_0xc5e050(0xd9)+_0x54e5f9+_0xc5e050(0x14e)+_0x3386f3+_0xc5e050(0xd9)+_0x1fc1eb;return(await this[_0xc5e050(0x299)][_0xc5e050(0x1c8)](_0x3b6939))['body'];}async[_0x103a68(0x179)](_0x2d1e48,_0x56e9bc){const _0x213d51=_0x103a68,{unitID:_0x5a15a6,type:_0x393df7,from:_0x367557,to:_0x11d435}=_0x56e9bc,_0x488785=this['_getAPIPrefix']()+'/'+_0x393df7+'/unit/'+_0x5a15a6+'/fetchmissing?from='+_0x367557+'&to='+_0x11d435;return(await this[_0x213d51(0x299)][_0x213d51(0x1c8)](_0x488785))['body'];}['_getSnapshotAPIPrefix'](){const _0x4abbcb=_0x103a68;var _0x13c8fb;return(_0x13c8fb=this[_0x4abbcb(0x153)]['getConfig'](_0x5ed756))!=null?_0x13c8fb:this[_0x4abbcb(0x4c5)]();}[_0x103a68(0x4c5)](){const _0x7b761f=_0x103a68;var _0x4fd0de,_0x274a16;const _0x19faec=this[_0x7b761f(0x153)]['getConfig'](_0x1f5936),_0xcf6fe2=this[_0x7b761f(0x153)]['getConfig'](_0x49305e);return(_0x274a16=(_0x4fd0de=_0xcf6fe2==null?void 0x0:_0xcf6fe2[_0x7b761f(0x445)])!=null?_0x4fd0de:_0x19faec)!=null?_0x274a16:_0x9dae07;}async[_0x103a68(0x215)](_0x420311,_0x5296d9){const _0x19996b=_0x103a68,_0x147599=_0x19996b(0x27b)+_0x5296d9['type']+_0x19996b(0x14e)+_0x5296d9['unitID']+_0x19996b(0x24d);return(await this['_httpService']['get'](_0x147599,{'params':{'resourceId':JSON[_0x19996b(0x263)](_0x5296d9[_0x19996b(0x21c)])}}))['body'];}[_0x103a68(0x488)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x103a68(0x346)](){const _0x427095=_0x103a68;throw new Error(_0x427095(0x20c));}[_0x103a68(0x1e6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x103a68(0x2c3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x103a68(0x4e3)](){const _0x54e78c=_0x103a68;throw new Error(_0x54e78c(0x20c));}},_0x4e0bbf[_0x103a68(0x137)]=_0x31cc4b([_0x9c521e(0x0,_0x460a10[_0x103a68(0x3e3)]),_0x9c521e(0x1,_0x460a10['Inject'](_0x4b5b88[_0x103a68(0x2b2)]))],_0x4e0bbf[_0x103a68(0x137)]);var _0x2f4592=Object[_0x103a68(0x3a3)],_0x31583b=Object['getOwnPropertyDescriptor'],_0x235523=(_0xb114ca,_0x38e28b,_0x1a6e27,_0x58d4f4)=>{for(var _0xafc316=_0x58d4f4>0x1?void 0x0:_0x58d4f4?_0x31583b(_0x38e28b,_0x1a6e27):_0x38e28b,_0x27e28a=_0xb114ca['length']-0x1,_0x12cf6e;_0x27e28a>=0x0;_0x27e28a--)(_0x12cf6e=_0xb114ca[_0x27e28a])&&(_0xafc316=(_0x58d4f4?_0x12cf6e(_0x38e28b,_0x1a6e27,_0xafc316):_0x12cf6e(_0xafc316))||_0xafc316);return _0x58d4f4&&_0xafc316&&_0x2f4592(_0x38e28b,_0x1a6e27,_0xafc316),_0xafc316;},_0x113cef=(_0x26f6a0,_0x233717)=>(_0x4fee77,_0x186b0a)=>_0x233717(_0x4fee77,_0x186b0a,_0x26f6a0);let _0x580c25=class extends _0x460a10[_0x103a68(0xc2)]{constructor(_0x326705,_0x2ce7db,_0x362ed8,_0x55f357,_0x3f0b03){const _0x59d0b8=_0x103a68;super(_0x326705,_0x2ce7db,_0x362ed8),this[_0x59d0b8(0xf9)]=_0x55f357,this[_0x59d0b8(0x442)]=_0x3f0b03;}[_0x103a68(0x4e1)](_0x3d50cf,_0xab2527){const _0x1c1cd3=_0x103a68,_0x561ff9=this[_0x1c1cd3(0x309)](_0x3d50cf);if(_0x561ff9)try{const _0x127334=this[_0x1c1cd3(0x1ee)](_0x561ff9,_0xab2527);this[_0x1c1cd3(0x441)](_0x3d50cf,_0x127334);}catch(_0x10a3ac){this[_0x1c1cd3(0x442)]['error'](_0x1c1cd3(0x4cc),_0x10a3ac),this[_0x1c1cd3(0x258)](_0x3d50cf);}const _0x4485e5=this[_0x1c1cd3(0x29e)](_0x3d50cf);if(_0x4485e5)try{const _0x1e3941=this[_0x1c1cd3(0x1ee)](_0x4485e5,_0xab2527);this['_substituteRedoStack'](_0x3d50cf,_0x1e3941);}catch(_0x305e53){this['_logService'][_0x1c1cd3(0x35e)](_0x305e53),this['_clearRedo'](_0x3d50cf);}}[_0x103a68(0x258)](_0x1e9109){const _0x127adf=_0x103a68,_0x47539c=this[_0x127adf(0x309)](_0x1e9109);_0x47539c&&(_0x47539c[_0x127adf(0x292)]=0x0,this[_0x127adf(0x42b)]());}[_0x103a68(0x471)](_0x1cf6de){const _0x4350e1=_0x103a68,_0x5de5af=this[_0x4350e1(0x29e)](_0x1cf6de);_0x5de5af&&(_0x5de5af[_0x4350e1(0x292)]=0x0,this['_updateStatus']());}[_0x103a68(0x441)](_0x10a833,_0x516328){const _0x49ecf3=_0x103a68;this[_0x49ecf3(0x192)][_0x49ecf3(0x29c)](_0x10a833,_0x516328),this['_updateStatus']();}[_0x103a68(0x2e6)](_0x339281,_0x194716){const _0x54d5be=_0x103a68;this[_0x54d5be(0x397)][_0x54d5be(0x29c)](_0x339281,_0x194716),this['_updateStatus']();}[_0x103a68(0x1ee)](_0x2f8fe9,_0x2f4797){const _0x38f08c=_0x103a68,_0x195e4b=[];let _0x599a34=_0x2f4797,_0x5e7a51=_0x2f4797;for(let _0x465b3e=_0x2f8fe9[_0x38f08c(0x292)]-0x1;_0x465b3e>=0x0;_0x465b3e--){const {unitID:_0x4bd279,undoMutations:_0x58a167,redoMutations:_0x3b11da}=_0x2f8fe9[_0x465b3e],_0x413666=this[_0x38f08c(0xf9)]['transformMutationsWithChangeset'](_0x599a34,_0x58a167),_0x16d386=this[_0x38f08c(0xf9)][_0x38f08c(0x427)](_0x5e7a51,_0x3b11da);if(_0x162fdb['isTransformMutationsWithChangesetFailure'](_0x413666)||_0x162fdb[_0x38f08c(0xa4)](_0x16d386)){this['_logService'][_0x38f08c(0x35e)](_0x38f08c(0x4cc),_0x38f08c(0x3e5),_0x413666,_0x16d386);break;}_0x599a34=_0x413666[_0x38f08c(0x48a)],_0x5e7a51=_0x16d386[_0x38f08c(0x48a)],_0x195e4b[_0x38f08c(0x420)]({'unitID':_0x4bd279,'undoMutations':_0x413666[_0x38f08c(0xf6)],'redoMutations':_0x16d386[_0x38f08c(0xf6)]});}return _0x195e4b[_0x38f08c(0x45c)]();}};_0x580c25=_0x235523([_0x113cef(0x0,_0x460a10['IUniverInstanceService']),_0x113cef(0x1,_0x460a10[_0x103a68(0x134)]),_0x113cef(0x2,_0x460a10['IContextService']),_0x113cef(0x3,_0x162fdb[_0x103a68(0x219)]),_0x113cef(0x4,_0x460a10[_0x103a68(0x362)])],_0x580c25);class _0x35ffbd extends _0x460a10[_0x103a68(0x16c)]{constructor(){const _0xe458a6=_0x103a68;super(),_0x519548(this,_0xe458a6(0x2c9)),this['urlChange$']=_0x22d14a[_0xe458a6(0x302)](window,_0xe458a6(0x16b))[_0xe458a6(0x3af)](_0x22d14a['takeUntil'](this['dispose$']),_0x22d14a['shareReplay'](0x1),_0x22d14a[_0xe458a6(0x2c7)](void 0x0));}[_0x103a68(0x2d5)](_0x5e528a,_0x429223,_0x164fe6=!0x1){const _0x2ff5c8=_0x103a68,_0x335d59=new URL(window['location'][_0x2ff5c8(0x3e9)]);_0x335d59['searchParams'][_0x2ff5c8(0x29c)](_0x5e528a,_0x429223),_0x164fe6?window['history'][_0x2ff5c8(0x33d)]('','',_0x335d59[_0x2ff5c8(0xdd)]()):window[_0x2ff5c8(0x3ce)][_0x2ff5c8(0x28c)]('','',_0x335d59[_0x2ff5c8(0xdd)]());}[_0x103a68(0xae)](_0x3872aa,_0x923fae=!0x1){const _0x51cec3=_0x103a68,_0x34f903=new URL(window['location'][_0x51cec3(0x3e9)]);_0x34f903[_0x51cec3(0x2dc)][_0x51cec3(0xe0)](_0x3872aa),_0x923fae?window['history'][_0x51cec3(0x33d)]('','',_0x34f903[_0x51cec3(0xdd)]()):window[_0x51cec3(0x3ce)][_0x51cec3(0x28c)]('','',_0x34f903[_0x51cec3(0xdd)]());}[_0x103a68(0xe4)](_0x4f4ad9){const _0x448ebf=_0x103a68;var _0x57b05e;return(_0x57b05e=new URL(window['location'][_0x448ebf(0x3e9)])['searchParams'][_0x448ebf(0x1c8)](_0x4f4ad9))!=null?_0x57b05e:void 0x0;}}var _0x27c36e=Object[_0x103a68(0x3a3)],_0x97a627=Object[_0x103a68(0x138)],_0x22a82d=(_0x49197f,_0x240d25,_0x53afc6)=>_0x240d25 in _0x49197f?_0x27c36e(_0x49197f,_0x240d25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53afc6}):_0x49197f[_0x240d25]=_0x53afc6,_0x5ee01b=(_0x1ccd17,_0xb4410,_0xde1937,_0x3386a4)=>{for(var _0xba1394=_0x3386a4>0x1?void 0x0:_0x3386a4?_0x97a627(_0xb4410,_0xde1937):_0xb4410,_0x33563b=_0x1ccd17['length']-0x1,_0x370ef6;_0x33563b>=0x0;_0x33563b--)(_0x370ef6=_0x1ccd17[_0x33563b])&&(_0xba1394=(_0x3386a4?_0x370ef6(_0xb4410,_0xde1937,_0xba1394):_0x370ef6(_0xba1394))||_0xba1394);return _0x3386a4&&_0xba1394&&_0x27c36e(_0xb4410,_0xde1937,_0xba1394),_0xba1394;},_0x5b5fbf=(_0x3ac988,_0xe323d9)=>(_0x3e6df6,_0x39169f)=>_0xe323d9(_0x3e6df6,_0x39169f,_0x3ac988),_0x161648=(_0x22cd8f,_0x163718,_0x19239e)=>_0x22a82d(_0x22cd8f,_0x163718+'',_0x19239e);const _0x82fee=_0x103a68(0x456);_0x4e0bbf[_0x103a68(0x183)]=class extends _0x460a10['Plugin']{constructor(_0x529565=_0x231290,_0x50a073,_0x3a76cd,_0x555eb2,_0x59b484){const _0x2e7d60=_0x103a68;super(),this[_0x2e7d60(0x2f6)]=_0x529565,this[_0x2e7d60(0x442)]=_0x50a073,this['_renderManagerService']=_0x3a76cd,this[_0x2e7d60(0x165)]=_0x555eb2,this[_0x2e7d60(0x153)]=_0x59b484;const {..._0x16ac39}=this[_0x2e7d60(0x2f6)];this['_configService'][_0x2e7d60(0x19d)](_0x49305e,_0x16ac39);}['onStarting'](){const _0x27e739=_0x103a68;this['_registerDependencies'](),_0x460a10['touchDependencies'](this[_0x27e739(0x165)],[[_0x378058],[_0x4e0bbf[_0x27e739(0x2f4)]],[_0x4fbdc6]]);}[_0x103a68(0x127)](){const _0x2d11f8=_0x103a68;_0x460a10[_0x2d11f8(0xc8)](this[_0x2d11f8(0x165)],[[_0x1862e6]]);}[_0x103a68(0x365)](){const _0x15177f=_0x103a68;this[_0x15177f(0x47e)]();}['_registerDependencies'](){const _0x5c96e8=_0x103a68;var _0x4cf292,_0x2e8d28,_0x17458c,_0x538b58;this[_0x5c96e8(0x165)][_0x5c96e8(0x401)](_0x460a10['IUndoRedoService'])&&this[_0x5c96e8(0x442)][_0x5c96e8(0x35e)](_0x5c96e8(0x101),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4187ff=[[_0x460a10[_0x5c96e8(0xba)],{'useClass':_0x580c25}],[_0x4e0bbf['CollaborationSessionService']],[_0x57aeec],[_0x4b5b88['HTTPService']],[_0x1b5909,{'useClass':_0x35ffbd}],[_0xf42097],[_0x4e0bbf[_0x5c96e8(0x2b4)]],[_0x4b5b88['WebSocketService']],[_0x1769cb],[_0x85795],[_0x28a6c0],[_0x2bf6d4],[_0x2400eb],[_0x3a4588],[_0x2b0d1c],[_0x4fbdc6],[_0x25dd34,{'useClass':(_0x2e8d28=(_0x4cf292=this[_0x5c96e8(0x2f6)])==null?void 0x0:_0x4cf292[_0x5c96e8(0x35b)])!=null?_0x2e8d28:_0x4e0bbf[_0x5c96e8(0x40e)]}],[_0x4b5b88[_0x5c96e8(0x4e2)],{'useClass':_0x4b5b88[_0x5c96e8(0xa5)]}],[_0x162fdb[_0x5c96e8(0x43e)],{'useClass':_0x4e0bbf['SnapshotServerOverHTTPService']}],[_0x460a10[_0x5c96e8(0x24b)],{'useClass':_0x4e0bbf[_0x5c96e8(0x21d)]}],[_0x39a60b[_0x5c96e8(0x2ef)],{'useClass':_0x4e0bbf[_0x5c96e8(0x217)]}],[_0x4e0bbf[_0x5c96e8(0x26b)]],[_0x4e0bbf[_0x5c96e8(0x2f4)]],[_0x4e0bbf[_0x5c96e8(0x22e)]],[_0x1862e6],[_0x378058]];(_0x17458c=this[_0x5c96e8(0x2f6)])!=null&&_0x17458c[_0x5c96e8(0x4c3)]&&_0x4187ff['push']([_0x2ad0c7,{'useClass':_0x49780e}]),_0x4187ff=_0x460a10['mergeOverrideWithDependencies'](_0x4187ff,(_0x538b58=this['_config'])==null?void 0x0:_0x538b58[_0x5c96e8(0x155)]),_0x4187ff[_0x5c96e8(0x196)](_0x4f2b87=>this['_injector'][_0x5c96e8(0x3cd)](_0x4f2b87)),this['_initModules']();}['_registerRenderDependencies'](){const _0x3e6521=_0x103a68;this[_0x3e6521(0x495)](this['_renderManagerService'][_0x3e6521(0x18a)](_0x460a10[_0x3e6521(0x3c9)][_0x3e6521(0x208)],[_0x1a8fd0])),this['disposeWithMe'](this[_0x3e6521(0x24c)]['registerRenderModule'](_0x460a10[_0x3e6521(0x3c9)]['UNIVER_SHEET'],[_0x5f36db]));}[_0x103a68(0x177)](){const _0x28fecc=_0x103a68;var _0x22bda6,_0x4b7d5d;this['_injector'][_0x28fecc(0x1c8)](_0x4b5b88[_0x28fecc(0x2b2)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x4b5b88[_0x28fecc(0x41f)]({'maxParallel':0x6})}),this['_injector'][_0x28fecc(0x1c8)](_0x3a4588),(_0x22bda6=this[_0x28fecc(0x2f6)])!=null&&_0x22bda6[_0x28fecc(0x3c8)]||this[_0x28fecc(0x165)][_0x28fecc(0x1c8)](_0x4e0bbf[_0x28fecc(0x2b4)])['disableLocalCache'](),(_0x4b7d5d=this[_0x28fecc(0x2f6)])!=null&&_0x4b7d5d[_0x28fecc(0x106)]&&this[_0x28fecc(0x165)][_0x28fecc(0x1c8)](_0x2400eb),this[_0x28fecc(0x165)][_0x28fecc(0x1c8)](_0x4e0bbf[_0x28fecc(0x26b)]),this[_0x28fecc(0x165)]['has'](_0x4e0bbf['DesktopCollaborationStatusDisplayController'])&&this[_0x28fecc(0x165)][_0x28fecc(0x1c8)](_0x4e0bbf['DesktopCollaborationStatusDisplayController']);}},_0x161648(_0x4e0bbf[_0x103a68(0x183)],_0x103a68(0xe8),_0x82fee),_0x4e0bbf[_0x103a68(0x183)]=_0x5ee01b([_0x460a10['DependentOn'](_0x162fdb['UniverCollaborationPlugin']),_0x5b5fbf(0x1,_0x460a10[_0x103a68(0x362)]),_0x5b5fbf(0x2,_0x5633aa[_0x103a68(0x472)]),_0x5b5fbf(0x3,_0x460a10[_0x103a68(0x310)](_0x460a10[_0x103a68(0x15b)])),_0x5b5fbf(0x4,_0x460a10[_0x103a68(0x3e3)])],_0x4e0bbf['UniverCollaborationClientPlugin']),_0x4e0bbf[_0x103a68(0x462)]=_0x38552d,_0x4e0bbf[_0x103a68(0x291)]=_0xbf257c,_0x4e0bbf[_0x103a68(0x41e)]=_0x3ea07e,_0x4e0bbf['CollaborationStatus']=_0x4b41c3,_0x4e0bbf['CollaborationStatusDisplay']=_0x9b641b,_0x4e0bbf[_0x103a68(0x39b)]=_0x2b0d1c,_0x4e0bbf[_0x103a68(0x1bc)]=_0x285d6d,_0x4e0bbf[_0x103a68(0x4b5)]=_0x4a32d2,_0x4e0bbf['ICollaborationSocketService']=_0x25dd34,_0x4e0bbf[_0x103a68(0x2e8)]=_0x1b5909,_0x4e0bbf[_0x103a68(0x4b9)]=_0x28c4b8,_0x4e0bbf[_0x103a68(0x24a)]=_0x17be73,_0x4e0bbf['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x2529a2,_0x4e0bbf[_0x103a68(0xb3)]=_0x1ea791,_0x4e0bbf[_0x103a68(0x3fc)]=_0x1f5936,_0x4e0bbf[_0x103a68(0x4be)]=_0x5ed756,_0x4e0bbf[_0x103a68(0x10d)]=_0x2c7c24,_0x4e0bbf['SheetCollabCursorShape']=_0x634d7c,_0x4e0bbf[_0x103a68(0x1c5)]=_0x35ffbd,_0x4e0bbf[_0x103a68(0x2d7)]=_0x1d2aae,_0x4e0bbf[_0x103a68(0x2b9)]=_0x442838,Object[_0x103a68(0x3a3)](_0x4e0bbf,Symbol[_0x103a68(0xe9)],{'value':_0x103a68(0x2bc)});}));
1
+ (function(_0x486bcf,_0x256bc7){const _0x445bcd=_0x2aa9,_0x3c5571=_0x486bcf();while(!![]){try{const _0x4cb527=parseInt(_0x445bcd(0x30f))/0x1+-parseInt(_0x445bcd(0x3db))/0x2*(-parseInt(_0x445bcd(0x313))/0x3)+parseInt(_0x445bcd(0x307))/0x4+-parseInt(_0x445bcd(0x2dc))/0x5+parseInt(_0x445bcd(0x1bf))/0x6+parseInt(_0x445bcd(0x1e1))/0x7*(parseInt(_0x445bcd(0x2c1))/0x8)+-parseInt(_0x445bcd(0x3bf))/0x9;if(_0x4cb527===_0x256bc7)break;else _0x3c5571['push'](_0x3c5571['shift']());}catch(_0x45262c){_0x3c5571['push'](_0x3c5571['shift']());}}}(_0xb9d3,0x18ebe),function(_0x2f410b,_0x3917c2){const _0x78f14=_0x2aa9;typeof exports==_0x78f14(0x510)&&typeof module<'u'?_0x3917c2(exports,require(_0x78f14(0x515)),require(_0x78f14(0x173)),require(_0x78f14(0x3a7)),require(_0x78f14(0x4d5)),require(_0x78f14(0x4c5)),require(_0x78f14(0x54c)),require('@univerjs-pro/collaboration'),require(_0x78f14(0x25f)),require('@univerjs/docs-ui'),require(_0x78f14(0x2d8)),require(_0x78f14(0x254)),require('@univerjs/docs'),require(_0x78f14(0x17f)),require(_0x78f14(0x325)),require(_0x78f14(0x2de)),require(_0x78f14(0x516)),require('@univerjs/rpc'),require('@univerjs-pro/license')):typeof define==_0x78f14(0x262)&&define[_0x78f14(0x196)]?define([_0x78f14(0x35b),_0x78f14(0x515),_0x78f14(0x173),_0x78f14(0x3a7),_0x78f14(0x4d5),_0x78f14(0x4c5),'@univerjs/network',_0x78f14(0x12c),_0x78f14(0x25f),_0x78f14(0x549),_0x78f14(0x2d8),_0x78f14(0x254),_0x78f14(0x47e),'@univerjs/drawing',_0x78f14(0x325),_0x78f14(0x2de),_0x78f14(0x516),_0x78f14(0x283),_0x78f14(0x467)],_0x3917c2):(_0x2f410b=typeof globalThis<'u'?globalThis:_0x2f410b||self,_0x3917c2(_0x2f410b['UniverCollaborationClient']={},_0x2f410b[_0x78f14(0x391)],_0x2f410b[_0x78f14(0x173)],_0x2f410b[_0x78f14(0x173)][_0x78f14(0x50a)],_0x2f410b[_0x78f14(0x51b)],_0x2f410b[_0x78f14(0x554)],_0x2f410b[_0x78f14(0x3b2)],_0x2f410b[_0x78f14(0x42c)],_0x2f410b[_0x78f14(0x543)],_0x2f410b[_0x78f14(0x4c6)],_0x2f410b[_0x78f14(0x445)],_0x2f410b['UniverEngineRender'],_0x2f410b[_0x78f14(0x246)],_0x2f410b[_0x78f14(0x158)],_0x2f410b[_0x78f14(0x499)],_0x2f410b[_0x78f14(0x459)],_0x2f410b[_0x78f14(0x312)],_0x2f410b[_0x78f14(0x47f)],_0x2f410b[_0x78f14(0x154)]));}(this,function(_0x3b531e,_0x349f19,_0x1e13bb,_0x501e2e,_0x806671,_0x5b624f,_0x47193d,_0x54555c,_0x4eb556,_0x3c060b,_0x4c7a32,_0x577b7e,_0x9fa27b,_0xaccc08,_0x2de305,_0xa0e5aa,_0x385d1d,_0x4ce572,_0x5bb22a){'use strict';const _0x145278=_0x2aa9;var _0x210d17=Object[_0x145278(0x507)],_0x55f15e=(_0x48f6e5,_0x59f7df,_0x6a224e)=>_0x59f7df in _0x48f6e5?_0x210d17(_0x48f6e5,_0x59f7df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6a224e}):_0x48f6e5[_0x59f7df]=_0x6a224e,_0xbb867=(_0x14f5aa,_0x27b853,_0x2916ad)=>_0x55f15e(_0x14f5aa,typeof _0x27b853!=_0x145278(0x429)?_0x27b853+'':_0x27b853,_0x2916ad);const _0x1f76a6=_0x145278(0x4d2),_0x137d51=_0x145278(0x497),_0x1fe014='SNAPSHOT_URL_KEY',_0x3c165d=_0x145278(0x3ee),_0x5c110b='COLLAB_WEB_SOCKET_URL',_0x3bd2f7='ws://127.0.0.1:8000/universer-api/comb/connect',_0x2ace82='HEARTBEAT_INTERVAL',_0x566bf8=_0x145278(0x551),_0xe2277='RETRY_CONNECTING_MAX_COUNT',_0x255e8f='LOCAL_CACHE_INTERVAL',_0x3f5d5a=_0x145278(0x1dd),_0x2ac880=_0x145278(0x4cc),_0x3d2741='LOGIN_URL_KEY',_0x7b342b=_0x145278(0x142);var _0x21d834=(_0x8e8cae=>(_0x8e8cae[_0x8e8cae[_0x145278(0x369)]=0x0]='UNDEFINED',_0x8e8cae[_0x8e8cae['OK']=0x1]='OK',_0x8e8cae[_0x8e8cae[_0x145278(0x51a)]=0x2]=_0x145278(0x51a),_0x8e8cae[_0x8e8cae[_0x145278(0x3b9)]=0x3]='PERMISSION_DENIED',_0x8e8cae[_0x8e8cae[_0x145278(0x139)]=0x4]=_0x145278(0x139),_0x8e8cae[_0x8e8cae['UNAUTHENTICATED']=0x5]=_0x145278(0x53f),_0x8e8cae[_0x8e8cae[_0x145278(0x16a)]=0x6]=_0x145278(0x16a),_0x8e8cae[_0x8e8cae[_0x145278(0x4f1)]=0x7]=_0x145278(0x4f1),_0x8e8cae[_0x8e8cae[_0x145278(0x363)]=0x8]='TOO_MANY_REQUESTS',_0x8e8cae[_0x8e8cae[_0x145278(0x1bd)]=0x9]='COMPLETION_FINISHED',_0x8e8cae[_0x8e8cae[_0x145278(0x233)]=0x1389]=_0x145278(0x233),_0x8e8cae[_0x8e8cae[_0x145278(0x32f)]=0x1771]=_0x145278(0x32f),_0x8e8cae[_0x8e8cae[_0x145278(0x17e)]=0x1772]=_0x145278(0x17e),_0x8e8cae[_0x8e8cae[_0x145278(0x4cb)]=0x1773]=_0x145278(0x4cb),_0x8e8cae[_0x8e8cae[_0x145278(0x236)]=0x1b59]='APPLY_REJECT',_0x8e8cae[_0x8e8cae[_0x145278(0x436)]=0x1b5a]=_0x145278(0x436),_0x8e8cae[_0x8e8cae[_0x145278(0x226)]=0x1b5b]=_0x145278(0x226),_0x8e8cae[_0x8e8cae[_0x145278(0x35c)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x8e8cae[_0x8e8cae[_0x145278(0x22a)]=0x1b5d]=_0x145278(0x22a),_0x8e8cae[_0x8e8cae['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x145278(0x297),_0x8e8cae[_0x8e8cae['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x145278(0x49d),_0x8e8cae[_0x8e8cae[_0x145278(0x1b5)]=0x232a]=_0x145278(0x1b5),_0x8e8cae[_0x8e8cae[_0x145278(0x149)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x8e8cae[_0x8e8cae[_0x145278(0x289)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x8e8cae[_0x8e8cae['LICENSE_DISTRO_REJECTED']=0x232d]=_0x145278(0x33a),_0x8e8cae[_0x8e8cae[_0x145278(0x151)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x8e8cae[_0x8e8cae['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x145278(0x1e0),_0x8e8cae[_0x8e8cae[_0x145278(0x34b)]=0x2713]=_0x145278(0x34b),_0x8e8cae[_0x8e8cae[_0x145278(0x356)]=0x2714]=_0x145278(0x356),_0x8e8cae[_0x8e8cae[_0x145278(0x4ba)]=-0x1]='UNRECOGNIZED',_0x8e8cae))(_0x21d834||{}),_0x5b5eaf=(_0x23dbef=>(_0x23dbef[_0x23dbef[_0x145278(0x1dc)]=0x0]='UNIVER_UNKNOWN',_0x23dbef[_0x23dbef[_0x145278(0x22e)]=0x1]=_0x145278(0x22e),_0x23dbef[_0x23dbef['UNIVER_SHEET']=0x2]=_0x145278(0x431),_0x23dbef[_0x23dbef[_0x145278(0x54b)]=0x3]='UNIVER_SLIDE',_0x23dbef[_0x23dbef[_0x145278(0x4ee)]=0x4]=_0x145278(0x4ee),_0x23dbef[_0x23dbef['UNRECOGNIZED']=-0x1]=_0x145278(0x4ba),_0x23dbef))(_0x5b5eaf||{}),_0x3263b5=(_0x204881=>(_0x204881[_0x204881[_0x145278(0x407)]=0x0]=_0x145278(0x407),_0x204881[_0x204881['HELLO']=0x1]=_0x145278(0x524),_0x204881[_0x204881['JOIN']=0x2]=_0x145278(0x152),_0x204881[_0x204881[_0x145278(0x34c)]=0x3]='LEAVE',_0x204881[_0x204881[_0x145278(0x280)]=0x4]=_0x145278(0x280),_0x204881[_0x204881[_0x145278(0x1d9)]=0x5]=_0x145278(0x1d9),_0x204881[_0x204881[_0x145278(0x397)]=0x6]=_0x145278(0x397),_0x204881[_0x204881[_0x145278(0x4ba)]=-0x1]=_0x145278(0x4ba),_0x204881))(_0x3263b5||{}),_0xfa24=(_0x3293d7=>(_0x3293d7[_0x3293d7[_0x145278(0x540)]=0x0]='UNKNOWN_CODE',_0x3293d7[_0x3293d7['OK']=0x1]='OK',_0x3293d7[_0x3293d7[_0x145278(0x32c)]=0x2]='FAIL',_0x3293d7[_0x3293d7[_0x145278(0x4ba)]=-0x1]=_0x145278(0x4ba),_0x3293d7))(_0xfa24||{}),_0x521080=(_0x2e9165=>(_0x2e9165[_0x2e9165[_0x145278(0x38e)]=0x0]=_0x145278(0x38e),_0x2e9165[_0x2e9165['HttpImport']=0x1]=_0x145278(0x416),_0x2e9165[_0x2e9165[_0x145278(0x4af)]=0x2]=_0x145278(0x4af),_0x2e9165[_0x2e9165[_0x145278(0x511)]=0x3]=_0x145278(0x511),_0x2e9165[_0x2e9165['UnitSnapshot']=0x4]='UnitSnapshot',_0x2e9165[_0x2e9165[_0x145278(0x4ba)]=-0x1]=_0x145278(0x4ba),_0x2e9165))(_0x521080||{});const _0x4ea523='collaboration-client.config',_0xb30b05={};function _0x2a238a(_0x14fc0b){const _0x1ee7f3=_0x145278;var _0x50a578,_0x2d7a79,_0x48e079,_0x558efb,_0x21bcce;const _0x570381=_0x14fc0b[_0x1ee7f3(0x2d2)],_0x558c54=JSON[_0x1ee7f3(0x2e7)](_0x570381);switch(_0x558c54[_0x1ee7f3(0x2c4)]){case _0x3263b5['HEARTBEAT']:case _0x3263b5['HELLO']:{const _0x18eb26=_0x558c54['infoRsp'];return{..._0x558c54,'data':_0x18eb26,'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};}case _0x3263b5[_0x1ee7f3(0x152)]:{const _0x4b333d=_0x558c54[_0x1ee7f3(0x469)];return{..._0x558c54,'data':_0x4b333d,'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};}case _0x3263b5[_0x1ee7f3(0x397)]:{const _0x2d6d62=_0x558c54[_0x1ee7f3(0x269)];switch(_0x2d6d62[_0x1ee7f3(0x1c0)]){case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x475)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x50a578=_0x2d6d62[_0x1ee7f3(0x3a9)])==null?void 0x0:_0x50a578['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)]['CHANGESET_ACK']:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x2d7a79=_0x2d6d62[_0x1ee7f3(0x4b0)])==null?void 0x0:_0x2d7a79['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x327)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x48e079=_0x2d6d62[_0x1ee7f3(0x127)])==null?void 0x0:_0x48e079['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x4f8)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x558efb=_0x2d6d62['csRejEvent'])==null?void 0x0:_0x558efb['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x23f)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x21bcce=_0x2d6d62['csShouldRetryEvent'])==null?void 0x0:_0x21bcce['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x31e)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x18d)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x2e4)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x4c8)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c['CollaborationEvent']['USERS_LEAVE']:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x1de)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x3f0)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x190)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x22f)]:case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x12a)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x2b6)]},'cmd':_0x558c54['cmd']};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x1f5)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x190)]},'cmd':_0x558c54['cmd']};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x480)]:return{..._0x558c54,'data':_0x2d6d62,'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)]['COMMENT_UPDATE']:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x311)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x29e)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62['updatePermissionObjEvent']},'cmd':_0x558c54['cmd']};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x2ca)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x338)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};default:return _0x558c54;}}default:return _0x558c54;}}function _0x1a0ef4(_0x8caf22){const _0x53376f=_0x145278;switch(_0x8caf22[_0x53376f(0x2c4)]){case _0x3263b5[_0x53376f(0x1d9)]:case _0x3263b5[_0x53376f(0x524)]:return JSON['stringify']({'cmd':_0x8caf22[_0x53376f(0x2c4)],'routeKey':_0x8caf22[_0x53376f(0x11d)]});case _0x3263b5['INGEST']:{let _0x9b2625;switch(_0x8caf22[_0x53376f(0x2d2)][_0x53376f(0x1c0)]){case _0x54555c[_0x53376f(0x547)][_0x53376f(0x31e)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x31e)],'updateCursorEvent':_0x8caf22[_0x53376f(0x2d2)]['data']};break;}case _0x54555c[_0x53376f(0x547)][_0x53376f(0x28b)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x28b)],'leaveEvent':_0x8caf22[_0x53376f(0x2d2)]['data']};break;}case _0x54555c[_0x53376f(0x547)][_0x53376f(0x2e4)]:{_0x9b2625={'eventID':_0x54555c['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x8caf22[_0x53376f(0x2d2)][_0x53376f(0x2d2)]};break;}case _0x54555c['CollaborationEvent'][_0x53376f(0x3f0)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x3f0)],'liveShareNewHost':_0x8caf22['data'][_0x53376f(0x2d2)]};break;}case _0x54555c[_0x53376f(0x547)][_0x53376f(0x12a)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x12a)],'liveShareOperation':_0x8caf22[_0x53376f(0x2d2)][_0x53376f(0x2d2)]};break;}case _0x54555c[_0x53376f(0x547)]['LIVESHARE_TERMINATE']:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x8caf22[_0x53376f(0x2d2)]['data']};break;}case _0x54555c['CollaborationEvent'][_0x53376f(0x4e2)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x4e2)],'liveShareRequestHost':_0x8caf22['data'][_0x53376f(0x2d2)]};break;}case _0x54555c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:{_0x9b2625={'eventID':_0x54555c['CollaborationEvent'][_0x53376f(0x22f)]};break;}default:_0x9b2625={'eventID':_0x8caf22[_0x53376f(0x2d2)]['eventID']};}return JSON[_0x53376f(0x140)]({'cmd':_0x8caf22[_0x53376f(0x2c4)],'routeKey':_0x8caf22[_0x53376f(0x11d)],'collaMsg':_0x9b2625});}case _0x3263b5['JOIN']:return JSON[_0x53376f(0x140)]({'cmd':_0x8caf22['cmd'],'routeKey':_0x8caf22[_0x53376f(0x11d)],'joinReq':_0x8caf22['data']});case _0x3263b5[_0x53376f(0x34c)]:return JSON['stringify']({'cmd':_0x8caf22[_0x53376f(0x2c4)],'routeKey':_0x8caf22[_0x53376f(0x11d)],'leaveReq':_0x8caf22['data']});default:throw new Error(_0x53376f(0x15b));}}var _0x4b12fc=Object[_0x145278(0x507)],_0x14bd64=Object['getOwnPropertyDescriptor'],_0x2a2300=(_0x1f122a,_0x25225f,_0x5e33e8,_0x30565f)=>{const _0x246fe0=_0x145278;for(var _0x23fed7=_0x30565f>0x1?void 0x0:_0x30565f?_0x14bd64(_0x25225f,_0x5e33e8):_0x25225f,_0x280151=_0x1f122a[_0x246fe0(0x37e)]-0x1,_0x4db2b8;_0x280151>=0x0;_0x280151--)(_0x4db2b8=_0x1f122a[_0x280151])&&(_0x23fed7=(_0x30565f?_0x4db2b8(_0x25225f,_0x5e33e8,_0x23fed7):_0x4db2b8(_0x23fed7))||_0x23fed7);return _0x30565f&&_0x23fed7&&_0x4b12fc(_0x25225f,_0x5e33e8,_0x23fed7),_0x23fed7;},_0x3fdd7=(_0x10d8fa,_0x31f855)=>(_0x5dfeea,_0x58305d)=>_0x31f855(_0x5dfeea,_0x58305d,_0x10d8fa);const _0x3f5095=_0x349f19['createIdentifier'](_0x145278(0x1bb));function _0x1115d0(_0x3cbb5c,_0x53280e,_0x33d021){const _0x140747=_0x145278;return _0x3cbb5c+'/'+_0x53280e+_0x140747(0x209)+_0x33d021+_0x140747(0x1be);}_0x3b531e['CollaborationSocketService']=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x445705,_0x40667d,_0x365e0f,_0x40312d,_0xcc04ef){const _0x118066=_0x145278;super(),this[_0x118066(0x2e0)]=_0x445705,this[_0x118066(0x29d)]=_0x40667d,this[_0x118066(0x28d)]=_0x365e0f,this['_logService']=_0x40312d,this[_0x118066(0x451)]=_0xcc04ef;}[_0x145278(0x217)](_0x31532e){const _0x4cc4a8=_0x145278,_0x1688dd=this[_0x4cc4a8(0x29d)]['createSocket'](_0x31532e);if(!_0x1688dd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x14bd17=new _0x349f19[(_0x4cc4a8(0x2ac))](),_0x36252e=new _0x1e13bb[(_0x4cc4a8(0x410))]();_0x14bd17['add'](_0x1688dd[_0x4cc4a8(0x462)][_0x4cc4a8(0x38f)](_0x45c507=>_0x36252e[_0x4cc4a8(0x155)](_0x45c507))),_0x14bd17['add'](_0x349f19[_0x4cc4a8(0x534)](()=>_0x36252e[_0x4cc4a8(0x2f9)]()));const _0x17d8b0=new _0x1e13bb[(_0x4cc4a8(0x410))]();_0x14bd17[_0x4cc4a8(0x4f3)](_0x1688dd[_0x4cc4a8(0x53c)]['subscribe'](_0x1726e2=>_0x17d8b0[_0x4cc4a8(0x155)](_0x1726e2))),_0x14bd17[_0x4cc4a8(0x4f3)](_0x349f19[_0x4cc4a8(0x534)](()=>_0x17d8b0[_0x4cc4a8(0x2f9)]()));const _0x2c592f=new _0x1e13bb[(_0x4cc4a8(0x410))]();_0x14bd17['add'](_0x1688dd['message$'][_0x4cc4a8(0x38f)](_0x17e64d=>{const _0x26bba2=_0x2a238a(_0x17e64d);_0x2c592f['next'](_0x26bba2);})),_0x14bd17['add'](_0x349f19[_0x4cc4a8(0x534)](()=>_0x2c592f['complete']()));let _0x5c090f;const _0xe9340a=()=>{const _0x10ef95=_0x4cc4a8;_0x17d8b0['next'](new Event(_0x10ef95(0x388))),_0x36252e[_0x10ef95(0x155)](new CloseEvent(_0x10ef95(0x388))),_0x5c090f[_0x10ef95(0x37f)]();};return _0x5c090f={'memberID':'','close$':_0x36252e[_0x4cc4a8(0x4de)](),'error$':_0x17d8b0['asObservable'](),'open$':_0x1688dd['open$'],'message$':_0x2c592f[_0x4cc4a8(0x4de)](),'send':_0x25010b=>{const _0x2f0988=_0x4cc4a8;if(_0x25010b[_0x2f0988(0x2c4)]===_0x3263b5['INGEST']){if(_0x25010b['data'][_0x2f0988(0x1c0)]===_0x54555c[_0x2f0988(0x547)][_0x2f0988(0x1a6)]){this[_0x2f0988(0x4da)](_0x5c090f,_0x25010b[_0x2f0988(0x2d2)])['catch'](_0x48420c=>{const _0x4772f6=_0x2f0988;this[_0x4772f6(0x385)]['error'](_0x48420c),_0xe9340a();});return;}if(_0x25010b[_0x2f0988(0x2d2)][_0x2f0988(0x1c0)]===_0x54555c[_0x2f0988(0x547)]['FETCH_MISSING']){const _0x1f4cf9=_0x25010b[_0x2f0988(0x2d2)];this['_fetchMissChangesets'](_0x1f4cf9)[_0x2f0988(0x210)](_0x2bb747=>{const _0x51bb2c=_0x2f0988;_0x2c592f[_0x51bb2c(0x155)]({'cmd':_0x3263b5['RECV'],'code':_0xfa24['OK'],'routeKey':_0x1f4cf9[_0x51bb2c(0x2d2)][_0x51bb2c(0x240)],'routeType':'','data':{'eventID':_0x54555c[_0x51bb2c(0x547)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2bb747}}});})['catch'](_0x4ac3fe=>{const _0x39ee7f=_0x2f0988;this[_0x39ee7f(0x385)][_0x39ee7f(0x4aa)](_0x4ac3fe),_0xe9340a();});return;}}_0x1688dd[_0x2f0988(0x3e7)](_0x1a0ef4(_0x25010b));},'close':()=>{const _0x94d4f5=_0x4cc4a8;_0x1688dd[_0x94d4f5(0x37f)](),_0x14bd17[_0x94d4f5(0x4c1)]();}},_0x5c090f;}async[_0x145278(0x4da)](_0x131708,_0x16ad3c){const _0xcc8fd6=_0x145278;var _0x271aa9,_0x385b5c;const {unitType:_0xe5985d,unitID:_0x74f8aa,changeset:_0x4d1ba3}=_0x16ad3c[_0xcc8fd6(0x2d2)],_0x5f0929={'unitID':_0x74f8aa,'memberID':_0x131708[_0xcc8fd6(0x3df)],'type':_0xe5985d,'changeset':_0x54555c[_0xcc8fd6(0x479)](_0x4d1ba3)},_0x956863=this['_configService'][_0xcc8fd6(0x46f)](_0x3f5d5a),_0x8f069c=this[_0xcc8fd6(0x28d)]['getConfig'](_0x4ea523),_0x46dc85=_0x1115d0((_0x385b5c=(_0x271aa9=_0x8f069c==null?void 0x0:_0x8f069c[_0xcc8fd6(0x4a6)])!=null?_0x271aa9:_0x956863)!=null?_0x385b5c:_0x2ac880,_0xe5985d,_0x74f8aa);try{await this[_0xcc8fd6(0x2e0)]['post'](_0x46dc85,{'body':_0x5f0929});}catch(_0x9fe0d5){throw this[_0xcc8fd6(0x385)][_0xcc8fd6(0x4aa)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x9fe0d5;}}async[_0x145278(0x4f5)](_0x1bb4ca){const _0x3c090b=_0x145278,{unitID:_0x50c25d,from:_0xdf58b9,to:_0x5e565f,unitType:_0x4ac34e}=_0x1bb4ca[_0x3c090b(0x2d2)];return(await this['_snapshotServerService'][_0x3c090b(0x296)]({'metadata':void 0x0},{'unitID':_0x50c25d,'type':_0x4ac34e,'from':_0xdf58b9,'to':_0x5e565f}))[_0x3c090b(0x1af)];}},_0x3b531e[_0x145278(0x504)]=_0x2a2300([_0x3fdd7(0x0,_0x349f19['Inject'](_0x47193d[_0x145278(0x3f8)])),_0x3fdd7(0x1,_0x349f19['Inject'](_0x47193d[_0x145278(0x45a)])),_0x3fdd7(0x2,_0x349f19[_0x145278(0x424)]),_0x3fdd7(0x3,_0x349f19[_0x145278(0x1e7)]),_0x3fdd7(0x4,_0x54555c['ISnapshotServerService'])],_0x3b531e[_0x145278(0x504)]);const _0x2b22ea=_0x145278(0x1b7);function _0x133330(_0x4bfcb9){const _0x41a2a9=_0x145278;return JSON[_0x41a2a9(0x140)](_0x4bfcb9)['length'];}class _0x2e3386{constructor(){const _0x241623=_0x145278;_0xbb867(this,'_commentUpdate$',new _0x1e13bb[(_0x241623(0x410))]()),_0xbb867(this,_0x241623(0x20a),this[_0x241623(0x52f)][_0x241623(0x4de)]());}[_0x145278(0x53d)](_0x122a24){const _0x847c6b=_0x145278;this['_commentUpdate$'][_0x847c6b(0x155)](_0x122a24);}}var _0x453131=Object['defineProperty'],_0x24ce22=Object[_0x145278(0x16d)],_0x251851=(_0x2bfb60,_0x2dc492,_0x38ae50,_0x1db61e)=>{const _0x4da4e6=_0x145278;for(var _0x191ce6=_0x1db61e>0x1?void 0x0:_0x1db61e?_0x24ce22(_0x2dc492,_0x38ae50):_0x2dc492,_0x4e8e15=_0x2bfb60[_0x4da4e6(0x37e)]-0x1,_0x39272b;_0x4e8e15>=0x0;_0x4e8e15--)(_0x39272b=_0x2bfb60[_0x4e8e15])&&(_0x191ce6=(_0x1db61e?_0x39272b(_0x2dc492,_0x38ae50,_0x191ce6):_0x39272b(_0x191ce6))||_0x191ce6);return _0x1db61e&&_0x191ce6&&_0x453131(_0x2dc492,_0x38ae50,_0x191ce6),_0x191ce6;},_0x483359=(_0x102db1,_0xd28de2)=>(_0x4dd48a,_0x4e2f4f)=>_0xd28de2(_0x4dd48a,_0x4e2f4f,_0x102db1);let _0x5a9e0d=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x56f9b8,_0x1f3f67){const _0x2f783e=_0x145278;super(),_0xbb867(this,'_roomMembers',new Map()),(this[_0x2f783e(0x31f)]=_0x56f9b8,this['_userManagerService']=_0x1f3f67,this['disposeWithMe'](_0x349f19[_0x2f783e(0x534)](_0x1e13bb[_0x2f783e(0x1a2)](this[_0x2f783e(0x31f)]['getTypeOfUnitDisposed$'](_0x349f19['UniverInstanceType'][_0x2f783e(0x431)])[_0x2f783e(0x3f1)](_0x501e2e[_0x2f783e(0x15d)](_0x4df15d=>_0x4df15d[_0x2f783e(0x453)]())),this[_0x2f783e(0x31f)][_0x2f783e(0x1a1)](_0x349f19['UniverInstanceType'][_0x2f783e(0x22e)])[_0x2f783e(0x3f1)](_0x501e2e[_0x2f783e(0x15d)](_0x2b24bb=>_0x2b24bb[_0x2f783e(0x453)]())),this[_0x2f783e(0x31f)][_0x2f783e(0x1a1)](_0x349f19[_0x2f783e(0x426)][_0x2f783e(0x54b)])['pipe'](_0x501e2e['map'](_0x10a50d=>_0x10a50d[_0x2f783e(0x453)]())))[_0x2f783e(0x38f)](_0x10efac=>this['_removeRoom'](_0x10efac)))));}[_0x145278(0x401)](_0x546010){const _0x21981c=_0x145278;this[_0x21981c(0x405)][_0x21981c(0x401)](_0x546010);}[_0x145278(0x48e)](){const _0x3681bb=_0x145278;return this['_userManagerService'][_0x3681bb(0x48e)]();}[_0x145278(0x153)](_0x3fc0bc,_0x19378e){const _0x135983=_0x145278;let _0x1ec390=this[_0x135983(0x350)]['get'](_0x3fc0bc);_0x1ec390||(_0x1ec390=new _0x5abffb(),this[_0x135983(0x350)][_0x135983(0x253)](_0x3fc0bc,_0x1ec390)),_0x1ec390[_0x135983(0x153)](_0x19378e);}[_0x145278(0x186)](_0x20ff3d,_0x3545f4){const _0x718686=_0x145278,_0x555c3c=this['_roomMembers']['get'](_0x20ff3d);_0x555c3c&&_0x555c3c[_0x718686(0x186)](_0x3545f4);}[_0x145278(0x203)](_0x26746f){return this['_roomMembers']['get'](_0x26746f);}[_0x145278(0x26a)](_0x3a55cc,_0x4f0554){const _0x218425=_0x145278,_0x23e9e3=this[_0x218425(0x350)]['get'](_0x3a55cc);if(_0x23e9e3)return _0x23e9e3[_0x218425(0x26a)](_0x4f0554);}['_removeRoom'](_0x92996e){const _0x49abc2=_0x145278,_0x2e0352=this['_roomMembers'][_0x49abc2(0x4b6)](_0x92996e);_0x2e0352&&(_0x2e0352[_0x49abc2(0x4c1)](),this[_0x49abc2(0x350)][_0x49abc2(0x4f4)](_0x92996e));}[_0x145278(0x4c1)](){const _0x3ce94a=_0x145278;this[_0x3ce94a(0x350)][_0x3ce94a(0x256)](_0xf8a9da=>_0xf8a9da[_0x3ce94a(0x4c1)]()),this[_0x3ce94a(0x350)][_0x3ce94a(0x19f)]();}};_0x5a9e0d=_0x251851([_0x483359(0x0,_0x349f19[_0x145278(0x501)]),_0x483359(0x1,_0x349f19['Inject'](_0x349f19[_0x145278(0x159)]))],_0x5a9e0d);class _0x5abffb extends _0x349f19[_0x145278(0x1a4)]{constructor(){super(...arguments),_0xbb867(this,'_members',new Map());}[_0x145278(0x4c1)](){const _0x101c74=_0x145278;this[_0x101c74(0x522)][_0x101c74(0x19f)]();}[_0x145278(0x153)](_0x54b93b){const _0x3f9d09=_0x145278;this[_0x3f9d09(0x522)][_0x3f9d09(0x253)](_0x54b93b[_0x3f9d09(0x3df)],_0x54b93b);}['removeMember'](_0x544b8d){const _0x10af5c=_0x145278;this[_0x10af5c(0x522)][_0x10af5c(0x4f4)](_0x544b8d);}[_0x145278(0x26a)](_0x510643){const _0x2e8fe3=_0x145278;return this['_members'][_0x2e8fe3(0x4b6)](_0x510643);}}var _0x3fec54=Object['defineProperty'],_0x1be9d7=Object[_0x145278(0x16d)],_0x5f3a7e=(_0x6a2f6d,_0x227b7d,_0x26a31a,_0x58c7f3)=>{for(var _0x5b697d=_0x58c7f3>0x1?void 0x0:_0x58c7f3?_0x1be9d7(_0x227b7d,_0x26a31a):_0x227b7d,_0x9ad0ab=_0x6a2f6d['length']-0x1,_0x53f3aa;_0x9ad0ab>=0x0;_0x9ad0ab--)(_0x53f3aa=_0x6a2f6d[_0x9ad0ab])&&(_0x5b697d=(_0x58c7f3?_0x53f3aa(_0x227b7d,_0x26a31a,_0x5b697d):_0x53f3aa(_0x5b697d))||_0x5b697d);return _0x58c7f3&&_0x5b697d&&_0x3fec54(_0x227b7d,_0x26a31a,_0x5b697d),_0x5b697d;},_0x568ee8=(_0x5d4674,_0x366d22)=>(_0x46f923,_0x35ca7f)=>_0x366d22(_0x46f923,_0x35ca7f,_0x5d4674),_0x3ee00b=(_0x289fcb=>(_0x289fcb[_0x289fcb[_0x145278(0x145)]=0x0]=_0x145278(0x145),_0x289fcb[_0x289fcb[_0x145278(0x148)]=0x1]=_0x145278(0x148),_0x289fcb[_0x289fcb[_0x145278(0x14d)]=0x2]='OFFLINE',_0x289fcb[_0x289fcb['ONLINE']=0x3]=_0x145278(0x4a3),_0x289fcb))(_0x3ee00b||{});_0x3b531e[_0x145278(0x1b4)]=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x3482f0,_0xfcee20,_0x138105,_0x8735a,_0x10384a,_0x40516b,_0x5a14f1,_0x2afcf9,_0x3b7758,_0x438174){const _0x3ab47b=_0x145278;super(),_0xbb867(this,_0x3ab47b(0x25c),new _0x1e13bb[(_0x3ab47b(0x40f))](0x0)),_0xbb867(this,_0x3ab47b(0x1ad),this[_0x3ab47b(0x25c)][_0x3ab47b(0x4de)]()),_0xbb867(this,_0x3ab47b(0x114),new _0x1e13bb[(_0x3ab47b(0x410))]()),_0xbb867(this,_0x3ab47b(0x403),this[_0x3ab47b(0x114)]['asObservable']()),_0xbb867(this,_0x3ab47b(0x514)),_0xbb867(this,'_socketMessageSubscription'),_0xbb867(this,_0x3ab47b(0x340)),_0xbb867(this,_0x3ab47b(0x37d),!0x1),_0xbb867(this,_0x3ab47b(0x223),null),(this[_0x3ab47b(0x3fa)]=_0x3482f0,this[_0x3ab47b(0x385)]=_0x138105,this[_0x3ab47b(0x33e)]=_0x8735a,this['_messageService']=_0x10384a,this['_configService']=_0x40516b,this['_localeService']=_0x5a14f1,this[_0x3ab47b(0x474)]=_0x2afcf9,this['_commentService']=_0x3b7758,this[_0x3ab47b(0x1c4)]=_0x438174,this[_0x3ab47b(0x37d)]=!!this[_0x3ab47b(0x1c4)],_0xfcee20[_0x3ab47b(0x3f1)](_0x1e13bb[_0x3ab47b(0x1bc)](this[_0x3ab47b(0x115)]))[_0x3ab47b(0x38f)](_0x345557=>{const _0x486da0=_0x3ab47b;var _0x50ae2c;typeof _0x345557>'u'||(this['_socket']=_0x345557,_0x345557?(this['_joinRoom'](_0x345557),this[_0x486da0(0x135)]=_0x345557[_0x486da0(0x1c5)]['subscribe'](_0x51acd4=>{const _0x4343a6=_0x486da0;_0x51acd4[_0x4343a6(0x11d)]===this[_0x4343a6(0x3fa)]&&this[_0x4343a6(0x320)](_0x51acd4);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x486da0(0x155)](0x2),(_0x50ae2c=this[_0x486da0(0x135)])==null||_0x50ae2c['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0x3ab47b(0x1e3)](this[_0x3ab47b(0x33e)][_0x3ab47b(0x157)](()=>{const _0x42dc49=_0x3ab47b;var _0x3c758e;(_0x3c758e=this[_0x42dc49(0x514)])==null||_0x3c758e['send']({'cmd':_0x3263b5[_0x42dc49(0x34c)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x5ae2b9=_0x145278;return this[_0x5ae2b9(0x25c)][_0x5ae2b9(0x46a)]();}[_0x145278(0x315)](){const _0x36ad52=_0x145278;var _0x1e9924,_0x23b36e;return(_0x23b36e=(_0x1e9924=this[_0x36ad52(0x514)])==null?void 0x0:_0x1e9924[_0x36ad52(0x3df)])!=null?_0x23b36e:null;}['dispose'](){const _0xfeb256=_0x145278;super['dispose'](),this[_0xfeb256(0x115)]['next'](),this[_0xfeb256(0x115)][_0xfeb256(0x2f9)]();}['close'](){const _0x4b0fb1=_0x145278;var _0x5afe17,_0x2951cf;this[_0x4b0fb1(0x31c)](),(_0x5afe17=this['_socket'])==null||_0x5afe17[_0x4b0fb1(0x3e7)]({'cmd':_0x3263b5['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x2951cf=this['_socket'])==null||_0x2951cf['close'](),this[_0x4b0fb1(0x114)][_0x4b0fb1(0x2f9)](),this[_0x4b0fb1(0x25c)]['complete'](),this[_0x4b0fb1(0x4c1)]();}[_0x145278(0x320)](_0x5c5699){const _0xe7e033=_0x145278;_0x5c5699[_0xe7e033(0x2c4)]===_0x3263b5[_0xe7e033(0x152)]?this['_onJoinRoomEvent'](_0x5c5699):_0x5c5699['cmd']===_0x3263b5[_0xe7e033(0x397)]&&this[_0xe7e033(0x28f)](_0x5c5699);}[_0x145278(0x4cf)](_0x425be3){const _0x254737=_0x145278;this[_0x254737(0x25c)][_0x254737(0x155)](0x1),_0x425be3[_0x254737(0x3e7)]({'cmd':_0x3263b5[_0x254737(0x152)],'routeKey':this[_0x254737(0x3fa)],'routeType':'','data':{'rooms':[{'roomID':this[_0x254737(0x3fa)]}]}});}[_0x145278(0x123)](_0x377318){const _0x38ef48=_0x145278;var _0x3bdc2e;if(_0x377318[_0x38ef48(0x12f)]===_0xfa24[_0x38ef48(0x32c)]){this[_0x38ef48(0x2a1)][_0x38ef48(0x303)]({'type':_0x806671['MessageType'][_0x38ef48(0x344)],'content':this[_0x38ef48(0x207)]['t'](_0x38ef48(0x476))}),this[_0x38ef48(0x25c)][_0x38ef48(0x155)](0x2);return;}this[_0x38ef48(0x25c)][_0x38ef48(0x155)](0x3);const _0x4d745e=(_0x3bdc2e=_0x377318[_0x38ef48(0x2d2)]['roomInfos'][this[_0x38ef48(0x3fa)]])==null?void 0x0:_0x3bdc2e[_0x38ef48(0x1f7)];_0x4d745e&&_0x4d745e['forEach'](_0x1b63f2=>this['_memberService'][_0x38ef48(0x153)](this['_unitID'],_0x1b63f2));}[_0x145278(0x28f)](_0x18eff9){const _0x2739f2=_0x145278;try{const _0x324a33=_0x18eff9[_0x2739f2(0x2d2)];switch(_0x324a33[_0x2739f2(0x1c0)]){case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x2e4)]:this[_0x2739f2(0x1d0)](_0x324a33),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x324a33),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x49a)]:case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x23f)]:this[_0x2739f2(0x54d)](),this[_0x2739f2(0x206)](),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x480)]:this['_logService'][_0x2739f2(0x4aa)](_0x2739f2(0x4b5)+JSON[_0x2739f2(0x140)](_0x324a33)),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x274)]:this['_commentService'][_0x2739f2(0x53d)](_0x324a33[_0x2739f2(0x2d2)]),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;default:this['_event$'][_0x2739f2(0x155)](_0x324a33);}}catch(_0x9ca1bf){this[_0x2739f2(0x385)][_0x2739f2(0x4aa)](_0x9ca1bf,_0x18eff9);}}[_0x145278(0x1d0)](_0x49a0b4){const _0x3f1393=_0x145278;this[_0x3f1393(0x474)][_0x3f1393(0x153)](this['_unitID'],_0x49a0b4['data']);}[_0x145278(0x248)](_0x5637df){const _0x576021=_0x145278;this[_0x576021(0x474)]['removeMember'](this['_unitID'],_0x5637df['data'][_0x576021(0x3df)]);}async[_0x145278(0x3e7)](_0x4000be,_0x343494){const _0x4dfc8a=_0x145278;if(this[_0x4dfc8a(0x292)]!==0x3||!this[_0x4dfc8a(0x514)])throw new Error(_0x4dfc8a(0x392));try{_0x4000be[_0x4dfc8a(0x1c0)]===_0x54555c[_0x4dfc8a(0x547)][_0x4dfc8a(0x1a6)]&&(this[_0x4dfc8a(0x247)](),this[_0x4dfc8a(0x4d1)](_0x4000be)),this[_0x4dfc8a(0x514)][_0x4dfc8a(0x3e7)]({'cmd':_0x3263b5[_0x4dfc8a(0x280)],'routeKey':_0x343494,'routeType':'','data':_0x4000be});}catch(_0x350b63){this['_logService'][_0x4dfc8a(0x4aa)](_0x350b63);}}['_scheduleCollaborationTimeoutTimer'](){const _0x34f5e5=_0x145278;var _0x438c0c;this['_collaborationTimeoutTimer']=window[_0x34f5e5(0x3ca)](()=>{const _0x57fd1c=_0x34f5e5;this['_collaborationTimeoutTimer']=null,this[_0x57fd1c(0x2a1)]['show']({'type':_0x806671[_0x57fd1c(0x116)]['Error'],'content':this[_0x57fd1c(0x207)]['t'](_0x57fd1c(0x2ea))});},(_0x438c0c=this[_0x34f5e5(0x28d)][_0x34f5e5(0x46f)](_0x566bf8))!=null?_0x438c0c:0x4e20);}[_0x145278(0x206)](){const _0x59cde7=_0x145278;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x59cde7(0x340)]),this[_0x59cde7(0x340)]=null);}[_0x145278(0x4d1)](_0x2c3c36){const _0x7ee197=_0x145278;if(!this[_0x7ee197(0x37d)])return;const {data:_0x2a3215}=_0x2c3c36,{unitID:_0x6fb602,changeset:_0x1d6d56}=_0x2a3215,{mutations:_0x14356e,type:_0x2e40f1}=_0x1d6d56;this[_0x7ee197(0x223)]={'unitId':_0x6fb602,'type':_0x2e40f1,'startTime':performance[_0x7ee197(0x12d)](),'stopTime':0x0,'duration':0x0,'size':_0x133330(_0x14356e)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5246f4=_0x145278;if(this[_0x5246f4(0x37d)]){if(!this[_0x5246f4(0x223)]){this['_logService'][_0x5246f4(0x4aa)](_0x5246f4(0x242),_0x5246f4(0x4c2));return;}this[_0x5246f4(0x223)][_0x5246f4(0x1f3)]=performance[_0x5246f4(0x12d)](),this[_0x5246f4(0x223)][_0x5246f4(0x2bb)]=this[_0x5246f4(0x223)][_0x5246f4(0x1f3)]-this[_0x5246f4(0x223)][_0x5246f4(0x243)],this[_0x5246f4(0x1c4)][_0x5246f4(0x117)](_0x2b22ea,this[_0x5246f4(0x223)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x27efed=_0x145278;this[_0x27efed(0x223)]=null;}},_0x3b531e[_0x145278(0x1b4)]=_0x5f3a7e([_0x568ee8(0x2,_0x349f19['ILogService']),_0x568ee8(0x3,_0x5b624f['IBeforeCloseService']),_0x568ee8(0x4,_0x5b624f[_0x145278(0x434)]),_0x568ee8(0x5,_0x349f19[_0x145278(0x424)]),_0x568ee8(0x6,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x267)])),_0x568ee8(0x7,_0x349f19[_0x145278(0x413)](_0x5a9e0d)),_0x568ee8(0x8,_0x349f19[_0x145278(0x413)](_0x2e3386)),_0x568ee8(0x9,_0x349f19['Optional'](_0x4eb556['ITelemetryService']))],_0x3b531e[_0x145278(0x1b4)]);var _0x8cc827=Object[_0x145278(0x507)],_0x313800=Object[_0x145278(0x16d)],_0x180884=(_0xab2e13,_0x3fb0a3,_0x1e3b2e,_0x38af98)=>{const _0xb4d841=_0x145278;for(var _0x7ee18e=_0x38af98>0x1?void 0x0:_0x38af98?_0x313800(_0x3fb0a3,_0x1e3b2e):_0x3fb0a3,_0x3d1f61=_0xab2e13[_0xb4d841(0x37e)]-0x1,_0x33f5a9;_0x3d1f61>=0x0;_0x3d1f61--)(_0x33f5a9=_0xab2e13[_0x3d1f61])&&(_0x7ee18e=(_0x38af98?_0x33f5a9(_0x3fb0a3,_0x1e3b2e,_0x7ee18e):_0x33f5a9(_0x7ee18e))||_0x7ee18e);return _0x38af98&&_0x7ee18e&&_0x8cc827(_0x3fb0a3,_0x1e3b2e,_0x7ee18e),_0x7ee18e;},_0x2d27b3=(_0x49b9b0,_0x369f80)=>(_0x3f35ac,_0x1a9e4d)=>_0x369f80(_0x3f35ac,_0x1a9e4d,_0x49b9b0);_0x3b531e[_0x145278(0x21f)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x4e39af,_0x21161e,_0xd81a45,_0xbd31a1,_0xff45dc,_0xfacfdf){const _0x400804=_0x145278;super(),_0xbb867(this,_0x400804(0x54f),new _0x1e13bb[(_0x400804(0x40f))](void 0x0)),_0xbb867(this,'socket$',this['_socket$'][_0x400804(0x4de)]()),_0xbb867(this,_0x400804(0x1c1),null),_0xbb867(this,'_sessions',new Map()),_0xbb867(this,_0x400804(0x15f),new _0x1e13bb[(_0x400804(0x40f))](_0x3ee00b['IDLE'])),_0xbb867(this,_0x400804(0x4fd),this['_status$'][_0x400804(0x4de)]()),_0xbb867(this,'_socketReady',!0x1),_0xbb867(this,_0x400804(0x229)),_0xbb867(this,'_retryCount',0x0),_0xbb867(this,_0x400804(0x231)),_0xbb867(this,_0x400804(0x266)),(this[_0x400804(0x22d)]=_0x4e39af,this[_0x400804(0x207)]=_0x21161e,this[_0x400804(0x2a1)]=_0xd81a45,this[_0x400804(0x385)]=_0xbd31a1,this[_0x400804(0x28d)]=_0xff45dc,this['_socketService']=_0xfacfdf,this[_0x400804(0x156)]());}get['_socket'](){const _0x252e69=_0x145278;return this[_0x252e69(0x54f)][_0x252e69(0x46a)]();}[_0x145278(0x156)](){const _0x48a753=_0x145278;this[_0x48a753(0x1d1)](),this[_0x48a753(0x23e)]();}[_0x145278(0x4c1)](){const _0x27068d=_0x145278;super[_0x27068d(0x4c1)](),this[_0x27068d(0x2e1)][_0x27068d(0x256)](_0x990d2d=>_0x990d2d[_0x27068d(0x4c1)]()),this[_0x27068d(0x2e1)]['clear'](),this[_0x27068d(0x15f)][_0x27068d(0x2f9)]();}async[_0x145278(0x4ab)](_0x44a59a){const _0x2514b5=_0x145278;if(this[_0x2514b5(0x2e1)][_0x2514b5(0x2e6)](_0x44a59a))return this[_0x2514b5(0x2e1)][_0x2514b5(0x4b6)](_0x44a59a);this[_0x2514b5(0x482)]();const _0x4611a8=this[_0x2514b5(0x22d)][_0x2514b5(0x556)](_0x3b531e[_0x2514b5(0x1b4)],_0x44a59a,this['_socket$'][_0x2514b5(0x4de)]());return this['_sessions'][_0x2514b5(0x253)](_0x44a59a,_0x4611a8),_0x4611a8;}[_0x145278(0x1da)](_0x4d7ebc){const _0x42d5b0=_0x145278;var _0x400573;const _0x5a265b=this['_sessions'][_0x42d5b0(0x4b6)](_0x4d7ebc);_0x5a265b&&(this[_0x42d5b0(0x2e1)][_0x42d5b0(0x4f4)](_0x4d7ebc),_0x5a265b[_0x42d5b0(0x37f)]()),this[_0x42d5b0(0x2e1)][_0x42d5b0(0x35e)]||(_0x400573=this[_0x42d5b0(0x514)])==null||_0x400573[_0x42d5b0(0x37f)]();}[_0x145278(0x4b4)](){const _0x6346b=_0x145278;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x6346b(0x229)]),this[_0x6346b(0x229)]=null),this[_0x6346b(0x371)]();}['_createSocket'](){const _0x16a12b=_0x145278;var _0x2fbac4,_0x3b4a0a;const _0x4fe39d=this['_configService'][_0x16a12b(0x46f)](_0x5c110b),_0x1c58d2=this[_0x16a12b(0x28d)][_0x16a12b(0x46f)](_0x4ea523),_0x3ea88d=(_0x3b4a0a=(_0x2fbac4=_0x1c58d2==null?void 0x0:_0x1c58d2[_0x16a12b(0x477)])!=null?_0x2fbac4:_0x4fe39d)!=null?_0x3b4a0a:_0x3bd2f7,_0x946e11=this[_0x16a12b(0x3e2)][_0x16a12b(0x217)](_0x3ea88d);return this[_0x16a12b(0x1c1)]=_0x946e11,_0x946e11;}[_0x145278(0x482)](){const _0x5dc312=_0x145278;var _0x404d7b,_0x1e6512;try{const _0x1849c6=(_0x1e6512=(_0x404d7b=this[_0x5dc312(0x514)])!=null?_0x404d7b:this[_0x5dc312(0x1c1)])!=null?_0x1e6512:this[_0x5dc312(0x37a)]();if(_0x1849c6){const _0x559367=_0x1849c6['send'];_0x1849c6['send']=_0x34c31d=>(this[_0x5dc312(0x3ed)](),_0x559367['apply'](_0x1849c6,[_0x34c31d])),_0x1849c6['message$'][_0x5dc312(0x38f)](_0x4e8da6=>this[_0x5dc312(0x27c)](_0x1849c6,_0x4e8da6)),_0x1849c6[_0x5dc312(0x53c)][_0x5dc312(0x3f1)](_0x501e2e[_0x5dc312(0x348)](0x1))['subscribe'](_0x5666e2=>this[_0x5dc312(0x385)]['error'](_0x5dc312(0x359),_0x5666e2)),_0x1849c6[_0x5dc312(0x1fe)][_0x5dc312(0x3f1)](_0x501e2e[_0x5dc312(0x348)](0x1))['subscribe'](()=>{const _0x4ceab9=_0x5dc312;this[_0x4ceab9(0x1d4)](_0x1849c6);}),_0x1849c6[_0x5dc312(0x462)][_0x5dc312(0x3f1)](_0x501e2e[_0x5dc312(0x348)](0x1))[_0x5dc312(0x38f)](_0x499bba=>{const _0xed5d=_0x5dc312;this['_logService']['debug'](_0xed5d(0x1d8),_0xed5d(0x4bf),_0x499bba),this[_0xed5d(0x175)]();});}}catch(_0xbe35f1){this[_0x5dc312(0x385)][_0x5dc312(0x4aa)](_0xbe35f1),this[_0x5dc312(0x175)]();}}['_onConnectionOpen'](_0x5d85f1){const _0x3f7489=_0x145278;this[_0x3f7489(0x385)][_0x3f7489(0x3e3)](_0x3f7489(0x1d8),'socket\x20open.'),_0x5d85f1[_0x3f7489(0x3e7)]({'cmd':_0x3263b5[_0x3f7489(0x524)]}),this[_0x3f7489(0x3ed)]();}['_listenToOfflineEvent'](){const _0x29ccb0=_0x145278;window['addEventListener'](_0x29ccb0(0x422),()=>this[_0x29ccb0(0x2c2)]());}[_0x145278(0x2c2)](){const _0x4fd5ee=_0x145278;this[_0x4fd5ee(0x26e)]=!0x1,this[_0x4fd5ee(0x1c1)]=null,this[_0x4fd5ee(0x15f)][_0x4fd5ee(0x155)](_0x3ee00b[_0x4fd5ee(0x14d)]),this['_socket$'][_0x4fd5ee(0x155)](null),this[_0x4fd5ee(0x1f9)](),this[_0x4fd5ee(0x3b3)]();}[_0x145278(0x175)](){const _0x435c9c=_0x145278;var _0x129b8f;this[_0x435c9c(0x2c2)](),this[_0x435c9c(0x3b5)]<((_0x129b8f=this[_0x435c9c(0x28d)][_0x435c9c(0x46f)](_0xe2277))!=null?_0x129b8f:0x3)?(this[_0x435c9c(0x2a1)][_0x435c9c(0x303)]({'key':_0x435c9c(0x490),'type':_0x806671['MessageType'][_0x435c9c(0x344)],'content':this[_0x435c9c(0x207)]['t'](_0x435c9c(0x314))}),this[_0x435c9c(0x371)]()):this[_0x435c9c(0x2a1)]['show']({'key':'collaboration-session-retry','type':_0x806671[_0x435c9c(0x116)][_0x435c9c(0x455)],'content':this[_0x435c9c(0x207)]['t'](_0x435c9c(0x351))});}[_0x145278(0x23e)](){const _0xb0b799=_0x145278,_0x586446=()=>{const _0x117d21=_0x2aa9;this[_0x117d21(0x514)]||this[_0x117d21(0x4b4)]();},_0x543809=()=>{const _0x326087=_0x2aa9;this[_0x326087(0x514)]||document[_0x326087(0x1ed)]===_0x326087(0x1a7)||this[_0x326087(0x4b4)]();};window['addEventListener'](_0xb0b799(0x4a5),_0x586446),document[_0xb0b799(0x225)](_0xb0b799(0x538),_0x543809);}[_0x145278(0x371)](){const _0x5ca336=_0x145278;var _0x26c7d5;const _0xcaa70a=this[_0x5ca336(0x3b5)],_0x4492c6=this[_0x5ca336(0x28d)][_0x5ca336(0x46f)](_0x4ea523),_0x361da4=_0xcaa70a===0x0?0x0:((_0x26c7d5=_0x4492c6==null?void 0x0:_0x4492c6['retryConnectingInterval'])!=null?_0x26c7d5:0x4e20)*0x2**_0xcaa70a;this['_retryConnectingTimer']=window[_0x5ca336(0x3ca)](()=>{const _0x21068e=_0x5ca336;clearTimeout(this[_0x21068e(0x229)]),this[_0x21068e(0x229)]=null,this[_0x21068e(0x482)]();},_0x361da4),this[_0x5ca336(0x3b5)]+=0x1;}[_0x145278(0x27c)](_0x3d5841,_0x4cf70f){const _0x1aa918=_0x145278,{cmd:_0x9a18a7}=_0x4cf70f;_0x9a18a7===_0x3263b5[_0x1aa918(0x524)]&&!this[_0x1aa918(0x26e)]&&(_0x3d5841[_0x1aa918(0x3df)]=_0x4cf70f[_0x1aa918(0x2d2)][_0x1aa918(0x3df)],this[_0x1aa918(0x54f)][_0x1aa918(0x155)](_0x3d5841),this[_0x1aa918(0x15f)][_0x1aa918(0x155)](_0x3ee00b[_0x1aa918(0x4a3)]),this[_0x1aa918(0x26e)]=!0x0,this[_0x1aa918(0x1c1)]=null),_0x9a18a7===_0x3263b5['HEARTBEAT']&&this[_0x1aa918(0x1f9)](),this['_rescheduleHeartbeat']();}[_0x145278(0x3ed)](){const _0x2fb134=_0x145278;var _0x2fffe6;this[_0x2fb134(0x3b3)](),this[_0x2fb134(0x231)]=window[_0x2fb134(0x3ca)](()=>this[_0x2fb134(0x526)](),(_0x2fffe6=this[_0x2fb134(0x28d)]['getConfig'](_0x2ace82))!=null?_0x2fffe6:0x7530);}[_0x145278(0x526)](){const _0x386a5c=_0x145278;this[_0x386a5c(0x514)][_0x386a5c(0x3e7)]({'cmd':_0x3263b5[_0x386a5c(0x1d9)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x254bf4=_0x145278;var _0x4e2e66;this[_0x254bf4(0x266)]=window[_0x254bf4(0x3ca)](()=>this[_0x254bf4(0x175)](),(_0x4e2e66=this[_0x254bf4(0x28d)][_0x254bf4(0x46f)](_0x566bf8))!=null?_0x4e2e66:0x4e20);}[_0x145278(0x3b3)](){const _0x1cc64e=_0x145278;this[_0x1cc64e(0x231)]!=null&&(clearTimeout(this[_0x1cc64e(0x231)]),this['_sendHeartbeatTimer']=null);}[_0x145278(0x1f9)](){const _0x14ae3b=_0x145278;this[_0x14ae3b(0x266)]!=null&&(clearTimeout(this[_0x14ae3b(0x266)]),this[_0x14ae3b(0x266)]=null);}},_0x3b531e['CollaborationSessionService']=_0x180884([_0x2d27b3(0x0,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x2d27b3(0x1,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x267)])),_0x2d27b3(0x2,_0x5b624f['IMessageService']),_0x2d27b3(0x3,_0x349f19[_0x145278(0x1e7)]),_0x2d27b3(0x4,_0x349f19[_0x145278(0x424)]),_0x2d27b3(0x5,_0x3f5095)],_0x3b531e['CollaborationSessionService']);for(var _0x4cf013=[],_0x4877c2=0x0;_0x4877c2<0x100;++_0x4877c2)_0x4cf013[_0x145278(0x276)]((_0x4877c2+0x100)[_0x145278(0x2ad)](0x10)['slice'](0x1));function _0x8da4a4(_0x16f348,_0x228993=0x0){const _0x4b639a=_0x145278;return(_0x4cf013[_0x16f348[_0x228993+0x0]]+_0x4cf013[_0x16f348[_0x228993+0x1]]+_0x4cf013[_0x16f348[_0x228993+0x2]]+_0x4cf013[_0x16f348[_0x228993+0x3]]+'-'+_0x4cf013[_0x16f348[_0x228993+0x4]]+_0x4cf013[_0x16f348[_0x228993+0x5]]+'-'+_0x4cf013[_0x16f348[_0x228993+0x6]]+_0x4cf013[_0x16f348[_0x228993+0x7]]+'-'+_0x4cf013[_0x16f348[_0x228993+0x8]]+_0x4cf013[_0x16f348[_0x228993+0x9]]+'-'+_0x4cf013[_0x16f348[_0x228993+0xa]]+_0x4cf013[_0x16f348[_0x228993+0xb]]+_0x4cf013[_0x16f348[_0x228993+0xc]]+_0x4cf013[_0x16f348[_0x228993+0xd]]+_0x4cf013[_0x16f348[_0x228993+0xe]]+_0x4cf013[_0x16f348[_0x228993+0xf]])[_0x4b639a(0x2be)]();}var _0x3bc59b,_0x219f49=new Uint8Array(0x10);function _0x331e03(){const _0x3e20fe=_0x145278;if(!_0x3bc59b&&(_0x3bc59b=typeof crypto<'u'&&crypto[_0x3e20fe(0x4bc)]&&crypto[_0x3e20fe(0x4bc)]['bind'](crypto),!_0x3bc59b))throw new Error(_0x3e20fe(0x184));return _0x3bc59b(_0x219f49);}var _0x48c7bf=typeof crypto<'u'&&crypto[_0x145278(0x1d3)]&&crypto['randomUUID'][_0x145278(0x441)](crypto);const _0x5a8853={'randomUUID':_0x48c7bf};function _0x39e230(_0x31526a,_0x3b15e3,_0xab94bf){const _0x14d334=_0x145278;if(_0x5a8853[_0x14d334(0x1d3)]&&!_0x3b15e3&&!_0x31526a)return _0x5a8853['randomUUID']();_0x31526a=_0x31526a||{};var _0x477817=_0x31526a[_0x14d334(0x45d)]||(_0x31526a[_0x14d334(0x487)]||_0x331e03)();return _0x477817[0x6]=_0x477817[0x6]&0xf|0x40,_0x477817[0x8]=_0x477817[0x8]&0x3f|0x80,_0x8da4a4(_0x477817);}var _0x2a7191=Object[_0x145278(0x507)],_0x104ec6=Object[_0x145278(0x16d)],_0x3732a8=(_0x788cdf,_0x2cea4a,_0x1b1b50,_0x5f4851)=>{const _0x42f9a6=_0x145278;for(var _0x19f5f4=_0x5f4851>0x1?void 0x0:_0x5f4851?_0x104ec6(_0x2cea4a,_0x1b1b50):_0x2cea4a,_0x59fa9f=_0x788cdf[_0x42f9a6(0x37e)]-0x1,_0x546013;_0x59fa9f>=0x0;_0x59fa9f--)(_0x546013=_0x788cdf[_0x59fa9f])&&(_0x19f5f4=(_0x5f4851?_0x546013(_0x2cea4a,_0x1b1b50,_0x19f5f4):_0x546013(_0x19f5f4))||_0x19f5f4);return _0x5f4851&&_0x19f5f4&&_0x2a7191(_0x2cea4a,_0x1b1b50,_0x19f5f4),_0x19f5f4;},_0x222b82=(_0x41deaa,_0x239d87)=>(_0x554f42,_0x2870ab)=>_0x239d87(_0x554f42,_0x2870ab,_0x41deaa);let _0x55e610=class{constructor(_0xf65fd1,_0x512ad8,_0x50817b){const _0x4fe8fa=_0x145278;this[_0x4fe8fa(0x22d)]=_0xf65fd1,this[_0x4fe8fa(0x28a)]=_0x512ad8,this[_0x4fe8fa(0x4d9)]=_0x50817b;}['transformIMECache'](_0x242290){const _0x3ea622=_0x145278;this[_0x3ea622(0x22b)](_0x242290),this['_transformPreviousActiveRange'](_0x242290);}['transformRemoteChangeset'](_0x2abfd9){const _0x58cce9=_0x145278,{unitID:_0x38771b}=_0x2abfd9,_0x283d55=this[_0x58cce9(0x4d9)][_0x58cce9(0x34f)](_0x38771b)[_0x58cce9(0x44f)](_0x3c060b[_0x58cce9(0x505)]),{redoCache:_0x2186b3}=_0x283d55[_0x58cce9(0x2a6)]();if(_0x2186b3[_0x58cce9(0x37e)]===0x0)return _0x2abfd9;let _0x264eb1=_0x349f19[_0x58cce9(0x4b1)]['deepClone'](_0x2abfd9['mutations'][0x0]);for(let _0x346c62=0x0;_0x346c62<_0x2186b3[_0x58cce9(0x37e)];_0x346c62++){const _0x232658={'id':'doc.mutation.rich-text-editing','params':{..._0x2186b3[_0x346c62]}},_0x36fc86=this[_0x58cce9(0x28a)][_0x58cce9(0x179)](_0x264eb1,_0x232658,!0x1);if(_0x54555c[_0x58cce9(0x291)](_0x36fc86))throw _0x36fc86[_0x58cce9(0x4aa)];_0x264eb1=_0x36fc86['m1Prime'];}return{..._0x349f19[_0x58cce9(0x4b1)][_0x58cce9(0x2bd)](_0x2abfd9),'mutations':[_0x264eb1]};}['_transformUndoRedoStack'](_0x26501a){const _0x21d401=_0x145278,{unitID:_0xbdc127}=_0x26501a,_0x1cfed1=this[_0x21d401(0x4d9)][_0x21d401(0x34f)](_0xbdc127)[_0x21d401(0x44f)](_0x3c060b['DocIMEInputManagerService']),{undoCache:_0x1acafe,redoCache:_0x67a3bc}=_0x1cfed1[_0x21d401(0x2a6)]();if(_0x1acafe['length']===0x0||_0x67a3bc[_0x21d401(0x37e)]===0x0)return;const _0x439892=[],_0x628b4c=[];let _0x445e9c=_0x349f19['Tools'][_0x21d401(0x2bd)](_0x26501a[_0x21d401(0x4ad)][0x0]),_0x304409=_0x349f19[_0x21d401(0x4b1)][_0x21d401(0x2bd)](_0x26501a[_0x21d401(0x4ad)][0x0]);for(let _0x106381=_0x1acafe[_0x21d401(0x37e)]-0x1;_0x106381>=0x0;_0x106381--){const _0x5cedc4={'id':_0x21d401(0x4cd),'params':{..._0x1acafe[_0x106381]}},_0x264929={'id':_0x21d401(0x4cd),'params':{..._0x67a3bc[_0x106381]}},_0x356c36=this[_0x21d401(0x28a)]['transformMutation'](_0x445e9c,_0x5cedc4,!0x1),_0x3610ac=this[_0x21d401(0x28a)][_0x21d401(0x179)](_0x304409,_0x264929,!0x1);if(_0x54555c[_0x21d401(0x291)](_0x356c36))throw _0x356c36[_0x21d401(0x4aa)];if(_0x54555c[_0x21d401(0x291)](_0x3610ac))throw _0x3610ac[_0x21d401(0x4aa)];_0x439892[_0x21d401(0x284)](_0x356c36[_0x21d401(0x2a5)][_0x21d401(0x23d)]),_0x628b4c[_0x21d401(0x284)](_0x3610ac['m2Prime'][_0x21d401(0x23d)]),_0x445e9c=_0x356c36[_0x21d401(0x47b)],_0x304409=_0x3610ac[_0x21d401(0x47b)];}_0x1cfed1[_0x21d401(0x519)]({'undoCache':_0x439892,'redoCache':_0x628b4c});}[_0x145278(0x43f)](_0x4ea950){const _0x93ba2f=_0x145278,{unitID:_0x5a30ec}=_0x4ea950,_0x25ccff=this[_0x93ba2f(0x4d9)]['getRenderById'](_0x5a30ec)[_0x93ba2f(0x44f)](_0x3c060b[_0x93ba2f(0x505)]),_0x33d334=_0x25ccff[_0x93ba2f(0x367)]();if(_0x33d334==null)return;const _0x1f7d4f=[{'id':_0x93ba2f(0x4cd),'params':{'unitId':_0x4ea950[_0x93ba2f(0x240)],'actions':null,'textRanges':[_0x33d334]}}],_0x337111=this[_0x93ba2f(0x28a)][_0x93ba2f(0x21c)](_0x4ea950,_0x1f7d4f);if(!_0x54555c['isTransformMutationsWithChangesetSuccess'](_0x337111))throw _0x337111[_0x93ba2f(0x4aa)];const _0x4d3ad1=_0x337111[_0x93ba2f(0x2a5)][0x0][_0x93ba2f(0x23d)][_0x93ba2f(0x433)];Array[_0x93ba2f(0x1c9)](_0x4d3ad1)&&_0x4d3ad1[_0x93ba2f(0x37e)]&&_0x25ccff[_0x93ba2f(0x2ab)](_0x4d3ad1[0x0]);}};_0x55e610=_0x3732a8([_0x222b82(0x0,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x222b82(0x1,_0x54555c[_0x145278(0x42a)]),_0x222b82(0x2,_0x577b7e[_0x145278(0x1d7)])],_0x55e610);var _0x5e0afe=Object[_0x145278(0x507)],_0x5a79f7=Object[_0x145278(0x16d)],_0x40860e=(_0x2d96dc,_0x3cdc78,_0x19cf13,_0x22619f)=>{const _0x11cd0f=_0x145278;for(var _0x37d5d0=_0x22619f>0x1?void 0x0:_0x22619f?_0x5a79f7(_0x3cdc78,_0x19cf13):_0x3cdc78,_0x1a7e42=_0x2d96dc[_0x11cd0f(0x37e)]-0x1,_0x35f3bb;_0x1a7e42>=0x0;_0x1a7e42--)(_0x35f3bb=_0x2d96dc[_0x1a7e42])&&(_0x37d5d0=(_0x22619f?_0x35f3bb(_0x3cdc78,_0x19cf13,_0x37d5d0):_0x35f3bb(_0x37d5d0))||_0x37d5d0);return _0x22619f&&_0x37d5d0&&_0x5e0afe(_0x3cdc78,_0x19cf13,_0x37d5d0),_0x37d5d0;},_0x853901=(_0x3b6694,_0x31696e)=>(_0x23d617,_0x394e98)=>_0x31696e(_0x23d617,_0x394e98,_0x3b6694);_0x3b531e[_0x145278(0x30a)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x2321d5,_0x28ede,_0xecf2a1,_0x4310cb,_0x3afe9d){const _0x424bc5=_0x145278;super(),_0xbb867(this,_0x424bc5(0x382),new Map()),_0xbb867(this,_0x424bc5(0x27b),new Map()),_0xbb867(this,_0x424bc5(0x360),!0x1),(this['_configService']=_0x2321d5,this[_0x424bc5(0x3bb)]=_0x28ede,this[_0x424bc5(0x33e)]=_0xecf2a1,this[_0x424bc5(0x207)]=_0x4310cb,this[_0x424bc5(0x2b4)]=_0x3afe9d,this[_0x424bc5(0x4e0)]());}[_0x145278(0x3d8)](){this['_disabled']=!0x0;}[_0x145278(0x2b3)](){const _0x113f57=_0x145278;this[_0x113f57(0x360)]=!0x1;}['dispose'](){const _0x55ec96=_0x145278;this[_0x55ec96(0x16e)]()[_0x55ec96(0x210)](()=>super[_0x55ec96(0x4c1)]());}async['loadOfflineData'](_0x39aef6){const _0x1d8e94=_0x145278;return this['_disabled']?null:this['_localStorageService'][_0x1d8e94(0x322)](_0x2a4167(_0x39aef6));}async[_0x145278(0x31a)](_0x534c34,_0x7a2b09){const _0x2eba2b=_0x145278;return!!this['_localStorageService'][_0x2eba2b(0x13b)](_0x534c34,_0x7a2b09);}[_0x145278(0x13e)](_0x594d4b,_0x7bf9f2,_0xfea98c,_0x1e254c){const _0x1d3822=_0x145278,_0x25a9a5=this[_0x1d3822(0x2b4)][_0x1d3822(0x213)](_0x594d4b);this[_0x1d3822(0x382)][_0x1d3822(0x253)](_0x594d4b,{'unitID':_0x594d4b,'type':_0x7bf9f2,'awaitingChangeset':_0xfea98c,'mutations':_0x1e254c,'rev':_0x25a9a5}),this[_0x1d3822(0x27b)][_0x1d3822(0x2e6)](_0x594d4b)||this['_scheduleSaving'](_0x594d4b);}[_0x145278(0x2fc)](_0x3215f4){const _0x44d4ae=_0x145278,_0x51cfea=this['_getSaveTimeout']();_0x51cfea===0x0?this[_0x44d4ae(0x3a8)](_0x3215f4):this[_0x44d4ae(0x27b)]['set'](_0x3215f4,setTimeout(()=>this[_0x44d4ae(0x3a8)](_0x3215f4),_0x51cfea));}[_0x145278(0x470)](){const _0x76b2d2=_0x145278;var _0x2b3547;return(_0x2b3547=this[_0x76b2d2(0x28d)][_0x76b2d2(0x46f)](_0x255e8f))!=null?_0x2b3547:0x3e8;}['_saveCache'](_0x42b6eb){const _0x557b65=_0x145278,_0x52045d=this[_0x557b65(0x27b)][_0x557b65(0x4b6)](_0x42b6eb);return _0x52045d!==void 0x0&&window[_0x557b65(0x372)](_0x52045d),this['_localStorageService'][_0x557b65(0x13b)](_0x2a4167(_0x42b6eb),this[_0x557b65(0x382)]['get'](_0x42b6eb))['then'](()=>this[_0x557b65(0x27b)][_0x557b65(0x4f4)](_0x42b6eb));}async[_0x145278(0x16e)](){const _0x44157a=_0x145278,_0x16b5f9=[];this[_0x44157a(0x27b)][_0x44157a(0x256)]((_0x16db9d,_0x17ae91)=>{const _0x4673aa=_0x44157a;window[_0x4673aa(0x372)](_0x16db9d),_0x16b5f9[_0x4673aa(0x276)](this['_saveCache'](_0x17ae91)[_0x4673aa(0x210)](()=>{const _0x26969c=_0x4673aa;this[_0x26969c(0x27b)][_0x26969c(0x4f4)](_0x17ae91);}));}),await Promise[_0x44157a(0x2a7)](_0x16b5f9);}[_0x145278(0x4e0)](){const _0x456725=_0x145278;this[_0x456725(0x1e3)](this[_0x456725(0x33e)][_0x456725(0x536)](()=>{const _0x242903=_0x456725;if(this['_saveTaskMap'][_0x242903(0x35e)])return this[_0x242903(0x207)]['t'](_0x242903(0x21d));}));}},_0x3b531e[_0x145278(0x30a)]=_0x40860e([_0x853901(0x0,_0x349f19[_0x145278(0x424)]),_0x853901(0x1,_0x349f19['ILocalStorageService']),_0x853901(0x2,_0x5b624f[_0x145278(0x212)]),_0x853901(0x3,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x267)])),_0x853901(0x4,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)]))],_0x3b531e['LocalCacheService']);function _0x2a4167(_0x5660f1){const _0x2ef951=_0x145278;return _0x2ef951(0x447)+_0x5660f1;}var _0x3fb17f=Object[_0x145278(0x507)],_0x4b3a69=Object['getOwnPropertyDescriptor'],_0x210694=(_0x5499bd,_0x40b2bb,_0x5e311f,_0x40c27a)=>{const _0x57f345=_0x145278;for(var _0x49b597=_0x40c27a>0x1?void 0x0:_0x40c27a?_0x4b3a69(_0x40b2bb,_0x5e311f):_0x40b2bb,_0x203e13=_0x5499bd[_0x57f345(0x37e)]-0x1,_0x3b6873;_0x203e13>=0x0;_0x203e13--)(_0x3b6873=_0x5499bd[_0x203e13])&&(_0x49b597=(_0x40c27a?_0x3b6873(_0x40b2bb,_0x5e311f,_0x49b597):_0x3b6873(_0x49b597))||_0x49b597);return _0x40c27a&&_0x49b597&&_0x3fb17f(_0x40b2bb,_0x5e311f,_0x49b597),_0x49b597;},_0x105e4c=(_0x447d3d,_0x413833)=>(_0x2810f6,_0x4c14ac)=>_0x413833(_0x2810f6,_0x4c14ac,_0x447d3d);function _0x106a04(_0x1f88ba){const _0x2f9cd4=_0x145278,{unitID:_0x4abb2a,mutations:_0x1a1345}=_0x1f88ba;return{'unitId':_0x4abb2a,'subUnitId':_0x1a1345[0x0]['params'][_0x2f9cd4(0x1f1)]};}let _0x370f64=class{constructor(_0x584465,_0x5ec658,_0x2e3cf3){const _0x37bbfd=_0x145278;this[_0x37bbfd(0x22d)]=_0x584465,this[_0x37bbfd(0x28a)]=_0x5ec658,this[_0x37bbfd(0x33c)]=_0x2e3cf3;}[_0x145278(0x3cb)](_0x3f8e4b){const _0x5161e4=_0x145278;var _0x4fa5a2,_0x9a947b,_0x38dcd6,_0x41b4cb;const _0x350361=this[_0x5161e4(0x22d)][_0x5161e4(0x4b6)](_0x4c7a32[_0x5161e4(0x40c)]),{unitId:_0x1569f3,subUnitId:_0x56cc87}=_0x106a04(_0x3f8e4b),_0x1e51a1=_0x350361['getWorkbookSelections'](_0x1569f3)[_0x5161e4(0x478)](),_0x5dbef9=(_0x9a947b=(_0x4fa5a2=this['_instanceService'][_0x5161e4(0x1db)](_0x1569f3))==null?void 0x0:_0x4fa5a2[_0x5161e4(0x1b2)]())==null?void 0x0:_0x9a947b[_0x5161e4(0x3f2)]();if(_0x1e51a1[_0x5161e4(0x37e)]===0x0||!_0x1569f3||!_0x56cc87)return;const _0x1a362a=[{'id':_0x4c7a32[_0x5161e4(0x41c)]['id'],'params':{'unitId':_0x1569f3,'subUnitId':_0x5dbef9,'selections':_0x349f19[_0x5161e4(0x4b1)][_0x5161e4(0x2bd)](_0x1e51a1)}}],_0x1c6b05=this[_0x5161e4(0x28a)][_0x5161e4(0x21c)](_0x3f8e4b,_0x1a362a);if(!_0x54555c[_0x5161e4(0x170)](_0x1c6b05))throw _0x1c6b05[_0x5161e4(0x4aa)];const _0x1bfb9b=(_0x41b4cb=(_0x38dcd6=_0x1c6b05[_0x5161e4(0x2a5)][0x0])==null?void 0x0:_0x38dcd6[_0x5161e4(0x23d)])==null?void 0x0:_0x41b4cb[_0x5161e4(0x15a)];if(Array[_0x5161e4(0x1c9)](_0x1bfb9b)&&_0x1bfb9b[_0x5161e4(0x37e)]){if(_0x1bfb9b[_0x5161e4(0x37e)]===_0x1a362a[0x0][_0x5161e4(0x23d)][_0x5161e4(0x15a)][_0x5161e4(0x37e)]&&_0x1bfb9b[_0x5161e4(0x19c)]((_0xf5072b,_0x47359e)=>_0x349f19[_0x5161e4(0x277)]['equals'](_0xf5072b[_0x5161e4(0x301)],_0x1a362a[0x0][_0x5161e4(0x23d)][_0x5161e4(0x15a)][_0x47359e]['range'])))return;this['_injector'][_0x5161e4(0x4b6)](_0x349f19[_0x5161e4(0x36e)])[_0x5161e4(0x3e9)](_0x4c7a32['SetSelectionsOperation']['id'],{'unitId':_0x1569f3,'subUnitId':_0x5dbef9,'selections':_0x1bfb9b});}}};_0x370f64=_0x210694([_0x105e4c(0x0,_0x349f19['Inject'](_0x349f19[_0x145278(0x3b7)])),_0x105e4c(0x1,_0x54555c[_0x145278(0x42a)]),_0x105e4c(0x2,_0x349f19[_0x145278(0x501)])],_0x370f64);const _0x2d00f5=_0x349f19[_0x145278(0x29f)](_0x145278(0x473));var _0x16b139=(_0x115a5e=>(_0x115a5e[_0x115a5e[_0x145278(0x3ae)]=0x0]=_0x145278(0x3ae),_0x115a5e[_0x115a5e['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x115a5e))(_0x16b139||{});const _0x3156be=0x7530,_0x13d682='ACTIVE_UNIT_EVENT_CHANNEL';class _0x467f1c extends _0x349f19['Disposable']{constructor(){const _0x3a74cb=_0x145278;super(),_0xbb867(this,_0x3a74cb(0x335),_0x349f19[_0x3a74cb(0x4b1)][_0x3a74cb(0x4d7)]()),_0xbb867(this,_0x3a74cb(0x49f),new Set()),_0xbb867(this,_0x3a74cb(0x329),new Map()),_0xbb867(this,_0x3a74cb(0x4c7),null),_0xbb867(this,'_clearOtherTimers',new Map()),_0xbb867(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x17003d=_0x145278;super[_0x17003d(0x4c1)](),this[_0x17003d(0x440)][_0x17003d(0x256)]((_0xc2df35,_0x3cc49c)=>this[_0x17003d(0x20c)](_0x3cc49c)),this[_0x17003d(0x4c7)]&&window[_0x17003d(0x406)](this[_0x17003d(0x4c7)]);}[_0x145278(0x415)](_0x24d639){const _0x1084e5=_0x145278;return this['_ensureSubject'](_0x24d639)[_0x1084e5(0x3f1)](_0x1e13bb[_0x1084e5(0x18f)]());}['editingUnit'](_0x545c70){const _0x13cf7e=_0x145278;this[_0x13cf7e(0x49f)][_0x13cf7e(0x35e)]===0x0&&this[_0x13cf7e(0x4fc)](),this[_0x13cf7e(0x49f)][_0x13cf7e(0x4f3)](_0x545c70),this['_send']({'type':0x0,'memberID':this[_0x13cf7e(0x335)],'unitIDs':[_0x545c70],'isForwarded':!0x1});}[_0x145278(0x4bb)](_0x1ec25c){const _0x357928=_0x145278;this['_selfUnitIDs'][_0x357928(0x4f4)](_0x1ec25c),this[_0x357928(0x49f)][_0x357928(0x35e)]===0x0&&this['_heartbeatTimer']&&window[_0x357928(0x406)](this[_0x357928(0x4c7)]);}['_init'](){const _0x3c7284=_0x145278;this[_0x3c7284(0x1e3)](_0x349f19[_0x3c7284(0x534)](_0x1e13bb[_0x3c7284(0x2d6)](window,_0x3c7284(0x533))[_0x3c7284(0x38f)](_0x3cada4=>{const _0x3f09e2=_0x3c7284;if(_0x3cada4[_0x3f09e2(0x36d)]!==_0x13d682||!_0x3cada4[_0x3f09e2(0x3b6)])return;const _0x4f03b9=JSON[_0x3f09e2(0x2e7)](_0x3cada4['newValue']);this['_handleEvent'](_0x4f03b9);}))),window[_0x3c7284(0x225)](_0x3c7284(0x428),()=>this[_0x3c7284(0x218)]({'type':0x1,'memberID':this[_0x3c7284(0x335)],'unitIDs':Array[_0x3c7284(0x496)](this[_0x3c7284(0x49f)])}));}[_0x145278(0x19a)](_0x3c5dfe){const _0xf8dcc5=_0x145278;switch(_0x3c5dfe[_0xf8dcc5(0x389)]){case 0x0:this[_0xf8dcc5(0x3dc)](_0x3c5dfe);break;case 0x1:this[_0xf8dcc5(0x295)](_0x3c5dfe);break;case 0x2:this[_0xf8dcc5(0x11c)](_0x3c5dfe);break;}}[_0x145278(0x3dc)](_0x393f67){const _0x122e23=_0x145278,{unitIDs:_0x18da02,memberID:_0x243e09,isForwarded:_0x1f57f1}=_0x393f67;_0x18da02['forEach'](_0x4a2bc2=>{const _0x4c6ffb=_0x2aa9;if(!_0x1f57f1&&this[_0x4c6ffb(0x329)][_0x4c6ffb(0x2e6)](_0x4a2bc2)&&this['_ensureSubject'](_0x4a2bc2)[_0x4c6ffb(0x155)](0x1),!this['_unitOnClients'][_0x4c6ffb(0x2e6)](_0x4a2bc2)||!this[_0x4c6ffb(0x329)][_0x4c6ffb(0x4b6)](_0x4a2bc2)['has'](_0x243e09)){const _0x154c86=this[_0x4c6ffb(0x329)]['get'](_0x4a2bc2)||new Set();_0x154c86[_0x4c6ffb(0x4f3)](_0x243e09),this['_unitOnClients'][_0x4c6ffb(0x253)](_0x4a2bc2,_0x154c86),this[_0x4c6ffb(0x1cc)](_0x243e09);}}),_0x1f57f1||this['_send']({'type':0x0,'memberID':this[_0x122e23(0x335)],'unitIDs':[...this[_0x122e23(0x49f)]],'isForwarded':!0x0});}[_0x145278(0x1cc)](_0x8df3b2){const _0xc0c8d2=_0x145278;this[_0xc0c8d2(0x20c)](_0x8df3b2);const _0x1f2173=window[_0xc0c8d2(0x3ca)](()=>{const _0x13bb65=_0xc0c8d2;this[_0x13bb65(0x329)][_0x13bb65(0x256)](_0x4c027f=>{_0x4c027f['delete'](_0x8df3b2);});},_0x3156be*0x2);this[_0xc0c8d2(0x440)][_0xc0c8d2(0x253)](_0x8df3b2,_0x1f2173);}[_0x145278(0x20c)](_0x3442b7){const _0x35ebce=_0x145278;if(this[_0x35ebce(0x440)][_0x35ebce(0x2e6)](_0x3442b7)){const _0x5f08c1=this['_clearOtherTimers']['get'](_0x3442b7);_0x5f08c1&&window[_0x35ebce(0x372)](_0x5f08c1),this[_0x35ebce(0x440)][_0x35ebce(0x253)](_0x3442b7,null);}}[_0x145278(0x295)](_0x290c2a){const {memberID:_0x466080,unitIDs:_0x42c939}=_0x290c2a;_0x42c939['forEach'](_0x23ee9a=>{const _0x4dcd2c=_0x2aa9;var _0x3d8423;const _0xfb1e82=this[_0x4dcd2c(0x329)][_0x4dcd2c(0x4b6)](_0x23ee9a);_0xfb1e82&&(_0xfb1e82[_0x4dcd2c(0x4f4)](_0x466080),(_0x3d8423=this[_0x4dcd2c(0x32a)](_0x23ee9a))==null||_0x3d8423[_0x4dcd2c(0x155)](_0xfb1e82[_0x4dcd2c(0x35e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x466080);}[_0x145278(0x11c)](_0x4ea6ee){const _0x4ee697=_0x145278;this[_0x4ee697(0x1cc)](_0x4ea6ee[_0x4ee697(0x3df)]);}[_0x145278(0x218)](_0x16efd5){const _0x8c148e=_0x145278;localStorage['setItem'](_0x13d682,JSON[_0x8c148e(0x140)](_0x16efd5));}[_0x145278(0x4fc)](){const _0x48452f=_0x145278;this['_heartbeatTimer']=window[_0x48452f(0x4a2)](()=>{const _0x493eb8=_0x48452f;this[_0x493eb8(0x218)]({'type':0x2,'memberID':this['_id']});},_0x3156be);}[_0x145278(0x32a)](_0x36bcf9){const _0x2e764d=_0x145278;return this[_0x2e764d(0x35d)][_0x2e764d(0x2e6)](_0x36bcf9)||this[_0x2e764d(0x35d)][_0x2e764d(0x253)](_0x36bcf9,new _0x1e13bb[(_0x2e764d(0x40f))](0x0)),this[_0x2e764d(0x35d)]['get'](_0x36bcf9);}}function _0x5d4f5d(_0x3bbd55){const _0x2095e0=_0x145278;let _0x4a2b74='';for(const _0x18e599 of _0x3bbd55){const {startOffset:_0x40c1c7,endOffset:_0x2042ce,isActive:_0x1db992}=_0x18e599;_0x4a2b74[_0x2095e0(0x37e)]&&(_0x4a2b74+=','),_0x4a2b74+=_0x40c1c7+':'+_0x2042ce+':'+(_0x1db992?'1':'0');}return _0x4a2b74;}function _0x19266e(_0x11d940){const _0x447be6=_0x145278,_0x29ae45=_0x11d940[_0x447be6(0x326)](','),_0xcce63c=[];for(const _0x1b54d3 of _0x29ae45){const [_0x3c9efb,_0x468556,_0x329ba2]=_0x1b54d3[_0x447be6(0x326)](':');_0xcce63c[_0x447be6(0x276)]({'startOffset':Number(_0x3c9efb),'endOffset':Number(_0x468556),'collapsed':_0x3c9efb===_0x468556,'isActive':_0x329ba2==='1'});}return _0xcce63c[_0x447be6(0x2e8)](_0x391a7c=>_0x391a7c[_0x447be6(0x442)])||(_0xcce63c[0x0][_0x447be6(0x442)]=!0x0),_0xcce63c;}class _0x2f089c extends _0x349f19[_0x145278(0x4e9)]{constructor(){const _0x59b7ca=_0x145278;super(...arguments),_0xbb867(this,_0x59b7ca(0x2c8),new _0x1e13bb[(_0x59b7ca(0x40f))](null)),_0xbb867(this,_0x59b7ca(0x12e),this['_collabCursorState$'][_0x59b7ca(0x4de)]());}[_0x145278(0x3b1)](_0x4f0e0d){const _0x3b0eec=_0x145278,{unitID:_0x38fedb,memberID:_0x452a3e,textRanges:_0x36a92c}=_0x4f0e0d,_0x5bb70b=_0x5d4f5d(_0x36a92c),_0x1720c2={'unitID':_0x38fedb,'memberID':_0x452a3e,'selection':_0x5bb70b};this[_0x3b0eec(0x2c8)][_0x3b0eec(0x155)](_0x1720c2);}}var _0x1e8293=Object[_0x145278(0x507)],_0x5aae50=Object[_0x145278(0x16d)],_0x106879=(_0x3cce59,_0x3cb8d9,_0x4ad08a,_0x52bf40)=>{const _0x4383bf=_0x145278;for(var _0x162a90=_0x52bf40>0x1?void 0x0:_0x52bf40?_0x5aae50(_0x3cb8d9,_0x4ad08a):_0x3cb8d9,_0x324122=_0x3cce59[_0x4383bf(0x37e)]-0x1,_0x11a08a;_0x324122>=0x0;_0x324122--)(_0x11a08a=_0x3cce59[_0x324122])&&(_0x162a90=(_0x52bf40?_0x11a08a(_0x3cb8d9,_0x4ad08a,_0x162a90):_0x11a08a(_0x162a90))||_0x162a90);return _0x52bf40&&_0x162a90&&_0x1e8293(_0x3cb8d9,_0x4ad08a,_0x162a90),_0x162a90;},_0x313253=(_0x19c083,_0x7d207a)=>(_0x141fae,_0x4d3008)=>_0x7d207a(_0x141fae,_0x4d3008,_0x19c083);let _0x697163=class{constructor(_0x54b4de,_0x498010){const _0x14784f=_0x145278;this[_0x14784f(0x22d)]=_0x54b4de,this['_transformService']=_0x498010;}[_0x145278(0x3cb)](_0x2ef260){const _0x200c5c=_0x145278;var _0x3ea0f1;const _0x22f5c3=this[_0x200c5c(0x22d)][_0x200c5c(0x4b6)](_0x9fa27b[_0x200c5c(0x113)]),_0x127173=(_0x3ea0f1=_0x22f5c3[_0x200c5c(0x545)]())!=null?_0x3ea0f1:[];if(_0x127173[_0x200c5c(0x37e)]===0x0)return;const _0x15abd8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ef260[_0x200c5c(0x240)],'actions':null,'textRanges':_0x127173}}],_0x1217dc=this[_0x200c5c(0x28a)][_0x200c5c(0x21c)](_0x2ef260,_0x15abd8);if(!_0x54555c['isTransformMutationsWithChangesetSuccess'](_0x1217dc))throw _0x1217dc[_0x200c5c(0x4aa)];const _0x5616a1=_0x1217dc['m2Prime'][0x0][_0x200c5c(0x23d)][_0x200c5c(0x433)];Array[_0x200c5c(0x1c9)](_0x5616a1)&&_0x5616a1[_0x200c5c(0x37e)]&&_0x22f5c3[_0x200c5c(0x199)](_0x5616a1,!0x1);}};_0x697163=_0x106879([_0x313253(0x0,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x313253(0x1,_0x54555c[_0x145278(0x42a)])],_0x697163);const _0x2903a9=new Set([_0x4c7a32[_0x145278(0x194)]['id']]);function _0x14304e(_0xa1298e,_0x33369d,_0x2daf61,_0x302bd2,_0x2f5d1a){const _0x2a2978=_0x145278;var _0x157861,_0x529894,_0xaf966c,_0x3055f2;const _0x1ab3ce=[];for(const _0x89a704 of _0xa1298e)if(_0x2903a9[_0x2a2978(0x2e6)](_0x89a704['id'])){if(_0x1ab3ce[_0x2a2978(0x37e)]>0x0)break;_0x1ab3ce[_0x2a2978(0x276)](_0x89a704);break;}else _0x1ab3ce[_0x2a2978(0x276)](_0x89a704);const _0x500d5b=(_0x529894=(_0x157861=_0x2f5d1a['getCurrentUser']())==null?void 0x0:_0x157861['userID'])!=null?_0x529894:'unknown',_0x116fa8=(_0x3055f2=(_0xaf966c=_0x2f5d1a['getCurrentUser']())==null?void 0x0:_0xaf966c[_0x2a2978(0x3df)])!=null?_0x3055f2:_0x2a2978(0x24e);return{'changeset':{'unitID':_0x33369d,'type':_0x54555c[_0x2a2978(0x3fd)](_0x2daf61[_0x2a2978(0x390)](_0x33369d)),'baseRev':_0x302bd2['getCurrentRevOfUnit'](_0x33369d),'revision':0x0,'userID':_0x500d5b,'memberID':_0x116fa8,'mutations':_0x1ab3ce},'pendingMutations':_0xa1298e['slice'](_0x1ab3ce[_0x2a2978(0x37e)])};}function _0x4d526f(_0x5e9051,_0x355dc9,_0x4a3245,_0x19cd34,_0x24ad37){const _0x5bdc4c=_0x145278;var _0x26f8b9,_0x48a7b5,_0x3e4b79,_0x24f58d;const _0x2ccb0c=[_0x5e9051[_0x5bdc4c(0x2b1)]((_0x29c597,_0x31f642)=>{const _0x583e3a=_0x5bdc4c;var _0x4703be;const {id:_0x71f4b}=_0x29c597,{id:_0x54a068,type:_0x4ca947}=_0x31f642,_0x167587=(_0x4703be=_0x29c597['params'])!=null?_0x4703be:{'actions':null},_0x4fe847=_0x31f642[_0x583e3a(0x23d)];if(_0x71f4b&&_0x71f4b!==_0x54a068)throw new Error(_0x583e3a(0x14f)+_0x71f4b+_0x583e3a(0x2fd)+_0x54a068+'.');return{..._0x29c597,'id':_0x54a068,'type':_0x4ca947,'params':{'unitId':_0x4fe847[_0x583e3a(0x126)],'textRanges':_0x4fe847[_0x583e3a(0x433)],'actions':_0x349f19[_0x583e3a(0x193)]['compose'](_0x167587[_0x583e3a(0x141)],_0x4fe847['actions'])}};},{})],_0xc39c04=(_0x48a7b5=(_0x26f8b9=_0x24ad37[_0x5bdc4c(0x48e)]())==null?void 0x0:_0x26f8b9['userID'])!=null?_0x48a7b5:_0x5bdc4c(0x24e),_0x561cb6=(_0x24f58d=(_0x3e4b79=_0x24ad37['getCurrentUser']())==null?void 0x0:_0x3e4b79[_0x5bdc4c(0x3df)])!=null?_0x24f58d:'unknown';return{'changeset':{'unitID':_0x355dc9,'type':_0x54555c['mapDocumentTypeToUniverType'](_0x4a3245[_0x5bdc4c(0x390)](_0x355dc9)),'baseRev':_0x19cd34[_0x5bdc4c(0x213)](_0x355dc9),'revision':0x0,'userID':_0xc39c04,'memberID':_0x561cb6,'mutations':_0x2ccb0c},'pendingMutations':[]};}function _0x2f5db9(_0x1b7df1,_0x31985e){const _0x2a133c=_0x145278,_0x74e368=new _0x1e13bb[(_0x2a133c(0x444))](0x1);return setTimeout(()=>_0x74e368[_0x2a133c(0x155)](_0x31985e),_0x1b7df1),_0x74e368[_0x2a133c(0x4de)]()[_0x2a133c(0x3f1)](_0x1e13bb[_0x2a133c(0x348)](0x1));}const _0x49c07c={'id':_0x4c7a32[_0x145278(0x3ba)]['id'],'type':_0x349f19[_0x145278(0x39f)][_0x145278(0x192)],'params':{}};var _0x13fbe8=Object['defineProperty'],_0x159c16=Object[_0x145278(0x16d)],_0x283e20=(_0x2920ad,_0x150d26,_0x1318a5,_0x15e1eb)=>{const _0x4c56d0=_0x145278;for(var _0x5158db=_0x15e1eb>0x1?void 0x0:_0x15e1eb?_0x159c16(_0x150d26,_0x1318a5):_0x150d26,_0x55ccef=_0x2920ad[_0x4c56d0(0x37e)]-0x1,_0x1d3d9a;_0x55ccef>=0x0;_0x55ccef--)(_0x1d3d9a=_0x2920ad[_0x55ccef])&&(_0x5158db=(_0x15e1eb?_0x1d3d9a(_0x150d26,_0x1318a5,_0x5158db):_0x1d3d9a(_0x5158db))||_0x5158db);return _0x15e1eb&&_0x5158db&&_0x13fbe8(_0x150d26,_0x1318a5,_0x5158db),_0x5158db;},_0x255450=(_0x212916,_0x15187f)=>(_0x717ddc,_0x5edf76)=>_0x15187f(_0x717ddc,_0x5edf76,_0x212916),_0xfe35ac=(_0x41cf1f=>(_0x41cf1f['NOT_COLLAB']=_0x145278(0x11f),_0x41cf1f[_0x145278(0x376)]=_0x145278(0x466),_0x41cf1f[_0x145278(0x430)]=_0x145278(0x53b),_0x41cf1f['AWAITING']='awaiting',_0x41cf1f['AWAITING_WITH_PENDING']=_0x145278(0x46d),_0x41cf1f[_0x145278(0x449)]=_0x145278(0x4ae),_0x41cf1f[_0x145278(0x31b)]=_0x145278(0x250),_0x41cf1f[_0x145278(0x14d)]=_0x145278(0x422),_0x41cf1f))(_0xfe35ac||{});const _0x238bd9=0xea60;class _0x5c8f4a{constructor(_0x2b20cd,_0x194553,_0x34eecf,_0x541a9d,_0x5272a6,_0x5f3fdc,_0x49d888,_0x5e7cfc,_0x9c339d){const _0x4e9f5f=_0x145278;_0xbb867(this,_0x4e9f5f(0x4ce),null),_0xbb867(this,_0x4e9f5f(0x3c8),[]),(this[_0x4e9f5f(0x240)]=_0x2b20cd,this[_0x4e9f5f(0x389)]=_0x194553,this[_0x4e9f5f(0x24b)]=_0x5272a6,this[_0x4e9f5f(0x375)]=_0x5f3fdc,this[_0x4e9f5f(0x2fe)]=_0x49d888,this['_revisionService']=_0x5e7cfc,this[_0x4e9f5f(0x3fb)]=_0x9c339d,this['_awaitingChangeset']=_0x34eecf,this[_0x4e9f5f(0x3c8)]=_0x541a9d);}[_0x145278(0x53e)](_0x5dda70){const _0x26664e=_0x145278,_0x378406=this[_0x26664e(0x2b4)][_0x26664e(0x213)](this[_0x26664e(0x240)]);return _0x5dda70[_0x26664e(0x3f6)]>_0x378406+0x1?(this[_0x26664e(0x24b)]['onMissingChangesets']({'from':_0x378406,'to':_0x5dda70[_0x26664e(0x3f6)]-0x1}),!0x0):!0x1;}[_0x145278(0x2dd)](_0x38711a){const _0x30e780=_0x145278;this[_0x30e780(0x2fe)][_0x30e780(0x3d7)](this[_0x30e780(0x240)],_0x38711a);}[_0x145278(0x38d)](_0x299845){var _0x2f60a1,_0x187623;(_0x187623=(_0x2f60a1=this['_handler'])['onTransformSelections'])==null||_0x187623['call'](_0x2f60a1,_0x299845);}[_0x145278(0x11b)](_0x252ea0){const _0x2f337e=_0x145278;var _0x2cacac,_0x22e0bb;return(_0x22e0bb=(_0x2cacac=this[_0x2f337e(0x24b)])['onTransformIME'])==null?void 0x0:_0x22e0bb[_0x2f337e(0x54a)](_0x2cacac,_0x252ea0);}['_transformRemoteChangesetByIMECache'](_0xaa61a5){const _0x50ee76=_0x145278;var _0x3960ee,_0x355bba,_0x56cde4;return(_0x56cde4=(_0x355bba=(_0x3960ee=this['_handler'])[_0x50ee76(0x227)])==null?void 0x0:_0x355bba[_0x50ee76(0x54a)](_0x3960ee,_0xaa61a5))!=null?_0x56cde4:_0xaa61a5;}['_syncEditingCollabCursor'](_0x2a9cc7){const _0x18c2a2=_0x145278;var _0x37540c,_0x491c71;if(this[_0x18c2a2(0x389)]===_0x5b5eaf[_0x18c2a2(0x22e)]){const {unitID:_0x22b37c,mutations:_0x28dca7,memberID:_0x1cf846}=_0x2a9cc7,_0x59b97d=_0x28dca7[0x0][_0x18c2a2(0x23d)][_0x18c2a2(0x433)];Array[_0x18c2a2(0x1c9)](_0x59b97d)&&_0x59b97d['length']>0x0&&((_0x491c71=(_0x37540c=this['_handler'])[_0x18c2a2(0x13d)])==null||_0x491c71['call'](_0x37540c,{'unitID':_0x22b37c,'memberID':_0x1cf846,'textRanges':_0x59b97d}));}}['_updateLocalCache'](){const _0x5115a1=_0x145278;this[_0x5115a1(0x3fb)][_0x5115a1(0x13e)](this[_0x5115a1(0x240)],this['type'],this['_awaitingChangeset'],this[_0x5115a1(0x3c8)]);}[_0x145278(0x3c9)](){const _0x3f9935=_0x145278;return this[_0x3f9935(0x2b4)][_0x3f9935(0x213)](this['unitID']);}[_0x145278(0x45e)](){const _0x2e3468=_0x145278;this['_revisionService'][_0x2e3468(0x166)](this[_0x2e3468(0x240)]);}[_0x145278(0x541)](_0x891395){const _0x3400e1=_0x145278;var _0x32b8f0;const _0x416e41=this[_0x3400e1(0x354)](_0x891395),_0x3a479c=_0x349f19[_0x3400e1(0x3f9)](_0x416e41['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x3a479c['result'])throw _0x3a479c[_0x3400e1(0x4aa)]instanceof Error?_0x3a479c[_0x3400e1(0x4aa)]:new Error((_0x32b8f0=_0x3a479c['error'])!=null?_0x32b8f0:'[CollaborationState]:\x20apply\x20error!');this[_0x3400e1(0x11b)](_0x416e41),this['_transformUndoredo'](_0x891395),this[_0x3400e1(0x38d)](_0x416e41),this['_syncEditingCollabCursor'](_0x416e41),this[_0x3400e1(0x45e)]();}}let _0x11f110=class extends _0x5c8f4a{constructor(_0x5d5f7f,_0x195213,_0x4e9257,_0x2b2b86,_0x151213,_0x2acf45,_0x385eee,_0x593100,_0x70bc0f,_0x3ade63){const _0x3f2c7f=_0x145278;super(_0x5d5f7f,_0x195213,null,[],_0x4e9257,_0x593100,_0x385eee,_0x2b2b86,_0x151213),_0xbb867(this,_0x3f2c7f(0x465),_0x3f2c7f(0x466)),(this[_0x3f2c7f(0x22d)]=_0x2acf45,this['_logService']=_0x70bc0f,this['_transformService']=_0x3ade63);}[_0x145278(0x52a)](_0xc83051){const _0x5208eb=_0x145278,_0x26027a=this[_0x5208eb(0x22d)][_0x5208eb(0x556)](_0xf500fc,this[_0x5208eb(0x240)],this[_0x5208eb(0x389)],[_0xc83051],this[_0x5208eb(0x24b)]);return _0x26027a['_schedule'](),_0x26027a[_0x5208eb(0x3f7)](),_0x26027a;}[_0x145278(0x279)](_0x31baf7){const _0x1c7082=_0x145278;if(this[_0x1c7082(0x53e)](_0x31baf7))return this[_0x1c7082(0x22d)][_0x1c7082(0x556)](_0x26d3fa,this[_0x1c7082(0x240)],this[_0x1c7082(0x389)],null,[],null,[_0x31baf7],this[_0x1c7082(0x24b)]);try{const _0x5170e8=this[_0x1c7082(0x28a)][_0x1c7082(0x21c)](_0x31baf7,[_0x49c07c]);if(_0x54555c[_0x1c7082(0x170)](_0x5170e8)){const {c1Prime:_0x2179e8}=_0x5170e8;return this[_0x1c7082(0x541)](_0x2179e8),this;}throw _0x5170e8[_0x1c7082(0x4aa)];}catch(_0x4d96f3){return this[_0x1c7082(0x385)][_0x1c7082(0x4aa)](_0x4d96f3),this[_0x1c7082(0x493)](!0x1);}}[_0x145278(0x493)](_0x19414a){const _0x979ad6=_0x145278;return this[_0x979ad6(0x22d)][_0x979ad6(0x556)](_0x10b287,this[_0x979ad6(0x240)],this[_0x979ad6(0x389)],null,[],this[_0x979ad6(0x24b)],_0x19414a);}[_0x145278(0x488)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x145278(0x494)](){const _0x470d52=_0x145278;throw new Error(_0x470d52(0x2c6));}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){const _0x22b14d=_0x145278;return this[_0x22b14d(0x22d)]['createInstance'](_0x216080,this[_0x22b14d(0x240)],this[_0x22b14d(0x389)],null,[],this[_0x22b14d(0x24b)]);}['toggleOnline'](){return this;}['resend'](){const _0x1dcd0b=_0x145278;throw new Error(_0x1dcd0b(0x2c7));}[_0x145278(0x200)](){const _0x4a47ce=_0x145278,_0x51a85a=this[_0x4a47ce(0x2b4)][_0x4a47ce(0x213)](this[_0x4a47ce(0x240)]);return this[_0x4a47ce(0x24b)][_0x4a47ce(0x30e)]({'from':_0x51a85a,'to':0x0}),this[_0x4a47ce(0x22d)][_0x4a47ce(0x556)](_0x26d3fa,this[_0x4a47ce(0x240)],this[_0x4a47ce(0x389)],null,[],null,[],this['_handler']);}};_0x11f110=_0x283e20([_0x255450(0x3,_0x349f19[_0x145278(0x413)](_0x54555c['RevisionService'])),_0x255450(0x4,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x6,_0x349f19[_0x145278(0x2a4)]),_0x255450(0x7,_0x349f19['ICommandService']),_0x255450(0x8,_0x349f19[_0x145278(0x1e7)]),_0x255450(0x9,_0x54555c[_0x145278(0x42a)])],_0x11f110);let _0xf500fc=class extends _0x5c8f4a{constructor(_0x5e1bc9,_0x978d,_0x59b38c,_0x676ffd,_0x873a45,_0x30c260,_0x346e3c,_0x1a4260,_0x465b8f,_0x27d5cf,_0x47ebf6,_0xe9fec2,_0x325f03,_0x2635a2){const _0x365207=_0x145278;super(_0x5e1bc9,_0x978d,null,_0x59b38c,_0x676ffd,_0x27d5cf,_0x2635a2,_0x30c260,_0x346e3c),_0xbb867(this,_0x365207(0x465),_0x365207(0x53b)),_0xbb867(this,'_scheduleTimestamp',null),_0xbb867(this,_0x365207(0x4ea),null),(this[_0x365207(0x22d)]=_0x873a45,this[_0x365207(0x474)]=_0x1a4260,this[_0x365207(0x385)]=_0x465b8f,this[_0x365207(0x28d)]=_0x47ebf6,this[_0x365207(0x28a)]=_0xe9fec2,this[_0x365207(0x31f)]=_0x325f03);}[_0x145278(0x52a)](_0x255d6d){const _0xa3ad74=_0x145278;return this['_pendingMutations'][_0xa3ad74(0x276)](_0x255d6d),this['_updateLocalCache'](),this;}[_0x145278(0x279)](_0x1fe7b4){const _0x44b744=_0x145278;if(this['_checkMissing'](_0x1fe7b4))return this[_0x44b744(0x4a4)](),this['_injector'][_0x44b744(0x556)](_0x26d3fa,this[_0x44b744(0x240)],this[_0x44b744(0x389)],null,this[_0x44b744(0x3c8)],null,[_0x1fe7b4],this['_handler']);try{const _0x59c8e5=this[_0x44b744(0x28a)][_0x44b744(0x21c)](_0x1fe7b4,this[_0x44b744(0x3c8)]);if(_0x54555c[_0x44b744(0x170)](_0x59c8e5)){const {c1Prime:_0x213ac7,m2Prime:_0x39769f}=_0x59c8e5;this[_0x44b744(0x541)](_0x213ac7);const _0x439065=this[_0x44b744(0x22d)][_0x44b744(0x556)](_0xf500fc,this[_0x44b744(0x240)],this[_0x44b744(0x389)],_0x39769f,this[_0x44b744(0x24b)]);return this[_0x44b744(0x4a4)](),_0x439065[_0x44b744(0x174)](this[_0x44b744(0x3a5)]?Math['max'](0x0,new Date()[_0x44b744(0x352)]()-this[_0x44b744(0x3a5)]):this[_0x44b744(0x34e)]()),_0x439065;}throw _0x59c8e5[_0x44b744(0x4aa)];}catch(_0x15c7f0){return this['_logService']['error'](_0x15c7f0),this[_0x44b744(0x493)](!0x1);}}[_0x145278(0x488)](){const _0x2242af=_0x145278;throw new Error(_0x2242af(0x364));}[_0x145278(0x494)](){const _0x4c0fd9=_0x145278;throw new Error(_0x4c0fd9(0x4e6));}['onRemoteRetry'](){return this;}[_0x145278(0x423)](){const _0x7f45ff=_0x145278;return this[_0x7f45ff(0x4a4)](),this['_injector'][_0x7f45ff(0x556)](_0x216080,this[_0x7f45ff(0x240)],this[_0x7f45ff(0x389)],null,this[_0x7f45ff(0x3c8)],this[_0x7f45ff(0x24b)]);}[_0x145278(0x39b)](){return this;}[_0x145278(0x174)](_0x8f78b8){const _0x583475=_0x145278,_0x24c6f4=_0x8f78b8!=null?_0x8f78b8:this[_0x583475(0x34e)]();this['_scheduleTimestamp']=new Date()[_0x583475(0x352)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x1467ca=_0x583475;this[_0x1467ca(0x4a4)]();let _0x346ff4=null;switch(this[_0x1467ca(0x389)]){case _0x5b5eaf[_0x1467ca(0x431)]:{_0x346ff4=_0x14304e(this[_0x1467ca(0x3c8)],this['unitID'],this[_0x1467ca(0x31f)],this[_0x1467ca(0x2b4)],this['_memberService']);break;}case _0x5b5eaf[_0x1467ca(0x22e)]:{this[_0x1467ca(0x3c8)][_0x1467ca(0x19c)](_0x3e48e8=>_0x3e48e8['id']===_0x9fa27b[_0x1467ca(0x50b)]['id'])?_0x346ff4=_0x4d526f(this[_0x1467ca(0x3c8)],this[_0x1467ca(0x240)],this[_0x1467ca(0x31f)],this[_0x1467ca(0x2b4)],this[_0x1467ca(0x474)]):_0x346ff4=_0x14304e(this[_0x1467ca(0x3c8)],this[_0x1467ca(0x240)],this[_0x1467ca(0x31f)],this[_0x1467ca(0x2b4)],this[_0x1467ca(0x474)]);break;}default:throw new Error(_0x1467ca(0x456)+this[_0x1467ca(0x389)]+_0x1467ca(0x294));}const {changeset:_0x2c1bfa,pendingMutations:_0x32e7a5}=_0x346ff4;this[_0x1467ca(0x24b)]['onSendChangeset'](_0x2c1bfa);const _0x5b09ea=_0x32e7a5[_0x1467ca(0x37e)]?this[_0x1467ca(0x22d)][_0x1467ca(0x556)](_0x4101e6,this['unitID'],this[_0x1467ca(0x389)],_0x2c1bfa,_0x32e7a5,this[_0x1467ca(0x24b)],void 0x0):this[_0x1467ca(0x22d)][_0x1467ca(0x556)](_0x238e5e,this[_0x1467ca(0x240)],this['type'],_0x2c1bfa,this[_0x1467ca(0x24b)]);_0x5b09ea[_0x1467ca(0x3f7)](),this[_0x1467ca(0x24b)][_0x1467ca(0x24a)](this,_0x5b09ea);},_0x24c6f4);}['_getSendChangesetTimeout'](){const _0x48bc4b=_0x145278;var _0x52585a;const _0x363260=this[_0x48bc4b(0x28d)][_0x48bc4b(0x46f)](_0x4ea523);return(_0x52585a=_0x363260==null?void 0x0:_0x363260[_0x48bc4b(0x2b0)])!=null?_0x52585a:0x7d0;}[_0x145278(0x2ba)](){const _0x4e1e18=_0x145278;throw new Error(_0x4e1e18(0x1a0));}[_0x145278(0x4a4)](){const _0x1a7af1=_0x145278;this[_0x1a7af1(0x4ea)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1a7af1(0x4ea)]=null);}[_0x145278(0x493)](_0xfa850e){const _0x3ab847=_0x145278;return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x10b287,this[_0x3ab847(0x240)],this[_0x3ab847(0x389)],null,this[_0x3ab847(0x3c8)],this['_handler'],_0xfa850e);}};_0xf500fc=_0x283e20([_0x255450(0x4,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x255450(0x6,_0x349f19['Inject'](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x7,_0x349f19['Inject'](_0x5a9e0d)),_0x255450(0x8,_0x349f19['ILogService']),_0x255450(0x9,_0x349f19['ICommandService']),_0x255450(0xa,_0x349f19[_0x145278(0x424)]),_0x255450(0xb,_0x54555c[_0x145278(0x42a)]),_0x255450(0xc,_0x349f19[_0x145278(0x501)]),_0x255450(0xd,_0x349f19[_0x145278(0x2a4)])],_0xf500fc);let _0x238e5e=class extends _0x5c8f4a{constructor(_0x48ce4f,_0x5b8288,_0x47b1f0,_0x44e3f7,_0x8757be,_0xfded47,_0x2e404e,_0x387e26,_0x844c42,_0x180470,_0x4ac2d5){const _0x3b16ae=_0x145278;super(_0x48ce4f,_0x5b8288,_0x47b1f0,[],_0x44e3f7,_0x387e26,_0x4ac2d5,_0xfded47,_0x2e404e),_0xbb867(this,_0x3b16ae(0x465),'awaiting'),_0xbb867(this,_0x3b16ae(0x221),0x0),_0xbb867(this,_0x3b16ae(0x52c)),_0xbb867(this,'_sender'),(this['_injector']=_0x8757be,this[_0x3b16ae(0x385)]=_0x844c42,this[_0x3b16ae(0x28a)]=_0x180470);}[_0x145278(0x52a)](_0x3c59db){const _0x13b320=_0x145278;this[_0x13b320(0x4a4)]();const _0x286729=this[_0x13b320(0x22d)][_0x13b320(0x556)](_0x4101e6,this[_0x13b320(0x240)],this['type'],this['_awaitingChangeset'],[_0x3c59db],this['_handler'],this[_0x13b320(0x52c)]);return _0x286729[_0x13b320(0x3f7)](),_0x286729;}[_0x145278(0x279)](_0x21d190){const _0x3ff76a=_0x145278;if(this[_0x3ff76a(0x53e)](_0x21d190))return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x26d3fa,this[_0x3ff76a(0x240)],this['type'],this[_0x3ff76a(0x4ce)],[],null,[_0x21d190],this[_0x3ff76a(0x24b)]);try{const _0x446f9d=this['_transformService'][_0x3ff76a(0x21b)]([_0x21d190],[this['_awaitingChangeset']],!0x1);if(_0x54555c[_0x3ff76a(0x195)](_0x446f9d)){const {c1Prime:_0x4a6b02,c2Prime:_0x3b724e}=_0x446f9d;this[_0x3ff76a(0x541)](_0x4a6b02[0x0]),_0x3b724e[0x0][_0x3ff76a(0x38c)]=this[_0x3ff76a(0x3c9)](),this[_0x3ff76a(0x4a4)]();const _0x5eb2a9=this[_0x3ff76a(0x22d)][_0x3ff76a(0x556)](_0x238e5e,this['unitID'],this[_0x3ff76a(0x389)],_0x3b724e[0x0],this['_handler']);return _0x5eb2a9[_0x3ff76a(0x3f7)](),_0x5eb2a9;}return this['_onConflict'](!0x1);}catch(_0x16f2d7){return this[_0x3ff76a(0x385)][_0x3ff76a(0x4aa)](_0x16f2d7),this[_0x3ff76a(0x493)](!0x1);}}[_0x145278(0x488)](_0x1c490c){const _0x107c01=_0x145278;this[_0x107c01(0x4a4)]();const _0x21129c=this[_0x107c01(0x2b4)][_0x107c01(0x213)](this[_0x107c01(0x240)]);if(_0x1c490c['revision']<_0x21129c-0x1)return this;if(this[_0x107c01(0x53e)](_0x1c490c))return this[_0x107c01(0x22d)][_0x107c01(0x556)](_0x26d3fa,this[_0x107c01(0x240)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x107c01(0x24b)]);this[_0x107c01(0x45e)]();const _0xd86f1b=this[_0x107c01(0x22d)]['createInstance'](_0x11f110,this[_0x107c01(0x240)],this['type'],this[_0x107c01(0x24b)]);return _0xd86f1b[_0x107c01(0x3f7)](),_0xd86f1b;}[_0x145278(0x494)](_0x28b862){const _0x4006c5=_0x145278;return this[_0x4006c5(0x493)](!!(_0x28b862!=null&&_0x28b862[_0x4006c5(0x265)]));}[_0x145278(0x4d6)](_0x1168d5){const _0x19148e=_0x145278;return this[_0x19148e(0x221)]>_0x238bd9?this[_0x19148e(0x423)]():(this[_0x19148e(0x52c)]=_0x2f5db9(this[_0x19148e(0x221)],{'timeout':this[_0x19148e(0x221)],'reqId':_0x1168d5[_0x19148e(0x48d)]}),this[_0x19148e(0x239)]=this[_0x19148e(0x52c)]['subscribe'](({reqId:_0x18b44d,timeout:_0x5e3040})=>{const _0x544a82=_0x19148e;this[_0x544a82(0x1c3)](_0x18b44d,_0x5e3040);}),this);}[_0x145278(0x423)](){const _0x5cedc3=_0x145278;return this[_0x5cedc3(0x4a4)](),this[_0x5cedc3(0x22d)]['createInstance'](_0x216080,this[_0x5cedc3(0x240)],this[_0x5cedc3(0x389)],this[_0x5cedc3(0x4ce)],[],this['_handler']);}[_0x145278(0x39b)](){return this;}[_0x145278(0x2ba)](){const _0x4a45fa=_0x145278;this[_0x4a45fa(0x24b)][_0x4a45fa(0x36c)](this[_0x4a45fa(0x4ce)]);}[_0x145278(0x493)](_0x5bb04e){const _0x2b0cc8=_0x145278;return this['_clearScheduledTask'](),this[_0x2b0cc8(0x22d)]['createInstance'](_0x10b287,this[_0x2b0cc8(0x240)],this[_0x2b0cc8(0x389)],this[_0x2b0cc8(0x4ce)],[],this[_0x2b0cc8(0x24b)],_0x5bb04e);}[_0x145278(0x1c3)](_0x385a14,_0x2292ad){const _0x118c3d=_0x145278;var _0xadf32b;_0x385a14===((_0xadf32b=this['_awaitingChangeset'])==null?void 0x0:_0xadf32b['reqId'])&&(this[_0x118c3d(0x2ba)](),this[_0x118c3d(0x221)]=_0x2292ad===0x0?0x3e8:_0x2292ad*0x2);}['_clearScheduledTask'](){const _0x47d346=_0x145278;var _0x1412e9;(_0x1412e9=this[_0x47d346(0x239)])==null||_0x1412e9['unsubscribe'](),this[_0x47d346(0x221)]=0x0;}};_0x238e5e=_0x283e20([_0x255450(0x4,_0x349f19['Inject'](_0x349f19['Injector'])),_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x255450(0x6,_0x349f19['Inject'](_0x3b531e['LocalCacheService'])),_0x255450(0x7,_0x349f19[_0x145278(0x36e)]),_0x255450(0x8,_0x349f19[_0x145278(0x1e7)]),_0x255450(0x9,_0x54555c['ITransformService']),_0x255450(0xa,_0x349f19[_0x145278(0x2a4)])],_0x238e5e);let _0x4101e6=class extends _0x5c8f4a{constructor(_0x2c8ac3,_0x8929f0,_0x5749ea,_0x158a9e,_0xddc433,_0x5c01fb,_0x5cd66a,_0x4132bc,_0x1c69a1,_0x5d972f,_0x54bffb,_0x55de21,_0x1b4ee2){const _0x20d032=_0x145278;super(_0x2c8ac3,_0x8929f0,_0x5749ea,_0x158a9e,_0xddc433,_0x5d972f,_0x1b4ee2,_0x4132bc,_0x1c69a1),_0xbb867(this,'status',_0x20d032(0x46d)),_0xbb867(this,_0x20d032(0x221),0x0),_0xbb867(this,_0x20d032(0x52c)),_0xbb867(this,_0x20d032(0x239)),(this[_0x20d032(0x22d)]=_0x5cd66a,this[_0x20d032(0x385)]=_0x54bffb,this[_0x20d032(0x28a)]=_0x55de21,_0x5c01fb&&(this[_0x20d032(0x52c)]=_0x5c01fb,this[_0x20d032(0x239)]=this[_0x20d032(0x52c)][_0x20d032(0x38f)](({reqId:_0x4d2e51,timeout:_0x385098})=>{const _0x2a515d=_0x20d032;this[_0x2a515d(0x1c3)](_0x4d2e51,_0x385098);})));}[_0x145278(0x52a)](_0x4ac352){const _0x240ff8=_0x145278;return this[_0x240ff8(0x3c8)][_0x240ff8(0x276)](_0x4ac352),this;}[_0x145278(0x279)](_0x48df06){const _0x47df59=_0x145278;if(this['_checkMissing'](_0x48df06))return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x26d3fa,this['unitID'],this[_0x47df59(0x389)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x48df06],this[_0x47df59(0x24b)]);try{const _0x5e0b95=this[_0x47df59(0x28a)][_0x47df59(0x21b)]([_0x48df06],[this[_0x47df59(0x4ce)]],!0x1);if(_0x54555c[_0x47df59(0x195)](_0x5e0b95)){const {c1Prime:_0x20f0c6,c2Prime:_0x5f1c47}=_0x5e0b95,_0x86436d=this[_0x47df59(0x28a)]['transformMutationsWithChangeset'](_0x20f0c6[0x0],this['_pendingMutations']);if(_0x54555c[_0x47df59(0x170)](_0x86436d)){const {c1Prime:_0x38da68,m2Prime:_0x1018e5}=_0x86436d;return this[_0x47df59(0x541)](_0x38da68),_0x5f1c47[0x0]['baseRev']=this[_0x47df59(0x3c9)](),this[_0x47df59(0x4a4)](),this[_0x47df59(0x22d)][_0x47df59(0x556)](_0x4101e6,this[_0x47df59(0x240)],this[_0x47df59(0x389)],_0x5f1c47[0x0],_0x1018e5,this[_0x47df59(0x24b)],void 0x0);}throw _0x86436d[_0x47df59(0x4aa)];}throw _0x5e0b95[_0x47df59(0x4aa)];}catch(_0x51ae8b){return this[_0x47df59(0x385)][_0x47df59(0x4aa)](_0x51ae8b),this[_0x47df59(0x493)](!0x1);}}[_0x145278(0x488)](_0x544873){const _0x57b18d=_0x145278;if(this[_0x57b18d(0x4a4)](),this[_0x57b18d(0x53e)](_0x544873))return this[_0x57b18d(0x22d)][_0x57b18d(0x556)](_0x26d3fa,this[_0x57b18d(0x240)],this[_0x57b18d(0x389)],null,this[_0x57b18d(0x3c8)],this[_0x57b18d(0x4ce)],[],this[_0x57b18d(0x24b)]);this[_0x57b18d(0x45e)]();const _0x37a560=this['_injector']['createInstance'](_0xf500fc,this['unitID'],this[_0x57b18d(0x389)],this[_0x57b18d(0x3c8)],this['_handler']);return _0x37a560['_schedule'](),_0x37a560[_0x57b18d(0x3f7)](),_0x37a560;}[_0x145278(0x494)](_0x5f454a){const _0x4394dd=_0x145278;return this['_onConflict'](!!(_0x5f454a!=null&&_0x5f454a[_0x4394dd(0x265)]));}[_0x145278(0x4d6)](_0x3d6300){const _0x3c98fb=_0x145278;return this[_0x3c98fb(0x221)]>_0x238bd9?this['toggleOffline']():(this[_0x3c98fb(0x52c)]=_0x2f5db9(this[_0x3c98fb(0x221)],{'timeout':this['_resendTimeout'],'reqId':_0x3d6300['reqId']}),this[_0x3c98fb(0x239)]=this['_resendTimer'][_0x3c98fb(0x38f)](({reqId:_0x34d1d9,timeout:_0x287d0b})=>{const _0x5ed4d5=_0x3c98fb;this[_0x5ed4d5(0x1c3)](_0x34d1d9,_0x287d0b);}),this);}[_0x145278(0x423)](){const _0x5b4db2=_0x145278;return this[_0x5b4db2(0x4a4)](),this[_0x5b4db2(0x22d)]['createInstance'](_0x216080,this[_0x5b4db2(0x240)],this[_0x5b4db2(0x389)],this[_0x5b4db2(0x4ce)],this['_pendingMutations'],this[_0x5b4db2(0x24b)]);}[_0x145278(0x39b)](){return this;}[_0x145278(0x2ba)](){const _0x41e5bb=_0x145278;this[_0x41e5bb(0x24b)][_0x41e5bb(0x36c)](this[_0x41e5bb(0x4ce)]);}[_0x145278(0x493)](_0x465e4d){const _0xcd3c4a=_0x145278;return this['_clearScheduledTask'](),this[_0xcd3c4a(0x22d)][_0xcd3c4a(0x556)](_0x10b287,this['unitID'],this['type'],null,this[_0xcd3c4a(0x3c8)],this[_0xcd3c4a(0x24b)],_0x465e4d);}['_resendWithTimeout'](_0x25662d,_0x5398f1){const _0x4a8155=_0x145278;var _0x15455e;_0x25662d===((_0x15455e=this[_0x4a8155(0x4ce)])==null?void 0x0:_0x15455e['reqId'])&&(this[_0x4a8155(0x2ba)](),this[_0x4a8155(0x221)]=_0x5398f1===0x0?0x3e8:_0x5398f1*0x2);}[_0x145278(0x4a4)](){const _0x23474b=_0x145278;var _0x27647f;(_0x27647f=this['_sender'])==null||_0x27647f['unsubscribe'](),this[_0x23474b(0x221)]=0x0;}};_0x4101e6=_0x283e20([_0x255450(0x6,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x7,_0x349f19['Inject'](_0x54555c[_0x145278(0x387)])),_0x255450(0x8,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x9,_0x349f19['ICommandService']),_0x255450(0xa,_0x349f19[_0x145278(0x1e7)]),_0x255450(0xb,_0x54555c[_0x145278(0x42a)]),_0x255450(0xc,_0x349f19[_0x145278(0x2a4)])],_0x4101e6);let _0x10b287=class extends _0x5c8f4a{constructor(_0x4ccd32,_0x56cc33,_0x420533,_0x1d6ac8,_0x17c47a,_0x3f2582=!0x1,_0x453dee,_0x4a8eac,_0xae5e52,_0x5d3cbe,_0x8dc337,_0x59f9c7,_0x20ed7e){const _0x576600=_0x145278;super(_0x4ccd32,_0x56cc33,_0x420533,_0x1d6ac8,_0x17c47a,_0x4a8eac,_0xae5e52,_0x8dc337,_0x5d3cbe),_0xbb867(this,'status','conflict'),(this[_0x576600(0x21e)]=_0x3f2582,this[_0x576600(0x201)]=_0x453dee,this['_localeService']=_0x59f9c7,this['_notificationService']=_0x20ed7e,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x576600(0x3da)]());}[_0x145278(0x52a)](){return this;}[_0x145278(0x279)](){return this;}['onRemoteAck'](){return this;}[_0x145278(0x494)](){return this;}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){return this;}[_0x145278(0x39b)](){return this;}['resend'](){const _0x2c2c76=_0x145278;throw new Error(_0x2c2c76(0x20b));}['_clearLocalCache'](){const _0x2de13b=_0x145278;this[_0x2de13b(0x3fb)]['updateOfflineData'](this[_0x2de13b(0x240)],this[_0x2de13b(0x389)],null,[]);}[_0x145278(0x45b)](){const _0x1919e2=_0x145278;this[_0x1919e2(0x21e)]?this[_0x1919e2(0x4d8)][_0x1919e2(0x303)]({'title':this['_localeService']['t'](_0x1919e2(0x532)),'content':this[_0x1919e2(0x207)]['t'](_0x1919e2(0x323)),'type':_0x1919e2(0x4aa),'duration':0x0}):this[_0x1919e2(0x4d8)]['show']({'title':this[_0x1919e2(0x207)]['t'](_0x1919e2(0x28e)),'content':this['_localeService']['t'](_0x1919e2(0x211)),'type':_0x1919e2(0x4aa),'duration':0x0});}['_disableEditing'](){const _0x9fac7=_0x145278;this['_permissionService']['updatePermissionPoint'](new _0x4c7a32[(_0x9fac7(0x287))](this[_0x9fac7(0x240)])['id'],!0x1);}};_0x10b287=_0x283e20([_0x255450(0x6,_0x349f19['Inject'](_0x349f19[_0x145278(0x4ec)])),_0x255450(0x7,_0x349f19[_0x145278(0x36e)]),_0x255450(0x8,_0x349f19[_0x145278(0x2a4)]),_0x255450(0x9,_0x349f19['Inject'](_0x3b531e['LocalCacheService'])),_0x255450(0xa,_0x349f19['Inject'](_0x54555c[_0x145278(0x387)])),_0x255450(0xb,_0x349f19[_0x145278(0x413)](_0x349f19['LocaleService'])),_0x255450(0xc,_0x5b624f['INotificationService'])],_0x10b287);let _0x216080=class extends _0x5c8f4a{constructor(_0x28bf26,_0x154655,_0x5c62d1,_0x3adb4c,_0x55e97e,_0x3b0b6c,_0x103bbe,_0x5b8542,_0x59741f,_0x45a571){const _0x4dcad7=_0x145278;super(_0x28bf26,_0x154655,_0x5c62d1,_0x3adb4c,_0x55e97e,_0x59741f,_0x45a571,_0x103bbe,_0x5b8542),_0xbb867(this,_0x4dcad7(0x465),_0x4dcad7(0x422)),this[_0x4dcad7(0x22d)]=_0x3b0b6c;}[_0x145278(0x52a)](_0x11aa2e){const _0x17d60c=_0x145278;return this[_0x17d60c(0x3c8)][_0x17d60c(0x276)](_0x11aa2e),this[_0x17d60c(0x3f7)](),this;}[_0x145278(0x279)](_0x2939db){const _0x38a39c=_0x145278;throw new Error(_0x38a39c(0x318));}[_0x145278(0x488)](){const _0x551a4e=_0x145278;throw new Error(_0x551a4e(0x468));}[_0x145278(0x494)](){const _0x4f420c=_0x145278;throw new Error(_0x4f420c(0x188));}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){return this;}[_0x145278(0x39b)](){const _0x5715a1=_0x145278,{_injector:_0x2335a1,_pendingMutations:_0x279250,_awaitingChangeset:_0x44b445,unitID:_0x4461d5,_handler:_0x3db1fe,type:_0x3446c5}=this,_0x53343c=_0x208b9a(_0x2335a1,_0x4461d5,_0x3446c5,_0x44b445,_0x279250,_0x3db1fe);return _0x53343c instanceof _0xf500fc?_0x53343c[_0x5715a1(0x174)]():(_0x53343c instanceof _0x4101e6||_0x53343c instanceof _0x238e5e)&&_0x53343c[_0x5715a1(0x2ba)](),_0x53343c;}[_0x145278(0x2ba)](){const _0x43e749=_0x145278;throw new Error(_0x43e749(0x20f));}};_0x216080=_0x283e20([_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x255450(0x6,_0x349f19[_0x145278(0x413)](_0x54555c['RevisionService'])),_0x255450(0x7,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x8,_0x349f19[_0x145278(0x36e)]),_0x255450(0x9,_0x349f19[_0x145278(0x2a4)])],_0x216080);let _0x26d3fa=class extends _0x5c8f4a{constructor(_0x24fec8,_0x45a4e8,_0x4dad3d,_0x5d5d49,_0x451528,_0x2060d7,_0x1c270b,_0x4a1c89,_0x4f843a,_0x586234,_0x16596a,_0x14c63b,_0x554b43,_0x4b9fea){const _0x4158a7=_0x145278;super(_0x24fec8,_0x45a4e8,_0x4dad3d,_0x5d5d49,_0x1c270b,_0x14c63b,_0x554b43,_0x4f843a,_0x586234),_0xbb867(this,_0x4158a7(0x465),'fetch_missing'),(this[_0x4158a7(0x552)]=_0x451528,this[_0x4158a7(0x4ff)]=_0x2060d7,this['_injector']=_0x4a1c89,this[_0x4158a7(0x385)]=_0x16596a,this[_0x4158a7(0x28a)]=_0x4b9fea);}[_0x145278(0x172)](_0x44476c){const _0x26aafd=_0x145278;try{const _0x43a872=[..._0x44476c,...this[_0x26aafd(0x4ff)]],_0x2d30d4=[this[_0x26aafd(0x4ce)]||this[_0x26aafd(0x552)]]['filter'](_0x4f6f5b=>!!_0x4f6f5b);let _0x2a7fce,_0x51c4c1;if(_0x2d30d4[_0x26aafd(0x37e)]){const _0x528671=this['_transformService'][_0x26aafd(0x21b)](_0x43a872,_0x2d30d4,!0x1);if(!_0x54555c[_0x26aafd(0x195)](_0x528671))throw _0x528671[_0x26aafd(0x4aa)];_0x2a7fce=_0x528671['c1Prime'],_0x51c4c1=_0x528671['c2Prime'];}else _0x2a7fce=_0x43a872,_0x51c4c1=[];let _0x125a4c=this[_0x26aafd(0x3c8)];_0x2a7fce['forEach'](_0x2df9f7=>{const _0x164aac=_0x26aafd;let _0x107a25;if(_0x125a4c[_0x164aac(0x37e)]){const _0xe35fb=this[_0x164aac(0x28a)][_0x164aac(0x21c)](_0x2df9f7,_0x125a4c);if(!_0x54555c[_0x164aac(0x170)](_0xe35fb))throw _0xe35fb['error'];_0x107a25=_0xe35fb[_0x164aac(0x26b)],_0x125a4c=_0xe35fb[_0x164aac(0x2a5)];}else _0x107a25=_0x2df9f7;this[_0x164aac(0x541)](_0x107a25);}),this[_0x26aafd(0x552)]&&this[_0x26aafd(0x45e)](),this[_0x26aafd(0x4ce)]&&_0x51c4c1['length']&&(_0x51c4c1[0x0][_0x26aafd(0x38c)]=this[_0x26aafd(0x3c9)]());let _0x1645b4;if(this[_0x26aafd(0x4ce)]&&_0x125a4c[_0x26aafd(0x37e)]!==0x0)_0x1645b4=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0x4101e6,this[_0x26aafd(0x240)],this['type'],_0x51c4c1[0x0],_0x125a4c,this[_0x26aafd(0x24b)],void 0x0);else{if(this[_0x26aafd(0x4ce)]&&_0x125a4c[_0x26aafd(0x37e)]===0x0)_0x51c4c1[0x0][_0x26aafd(0x38c)]=this[_0x26aafd(0x3c9)](),_0x1645b4=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0x238e5e,this[_0x26aafd(0x240)],this[_0x26aafd(0x389)],_0x51c4c1[0x0],this[_0x26aafd(0x24b)]);else{if(_0x125a4c[_0x26aafd(0x37e)]!==0x0){const _0x1c7eb5=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0xf500fc,this[_0x26aafd(0x240)],this[_0x26aafd(0x389)],_0x125a4c,this[_0x26aafd(0x24b)]);_0x1c7eb5[_0x26aafd(0x174)](),_0x1645b4=_0x1c7eb5;}else _0x1645b4=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0x11f110,this[_0x26aafd(0x240)],this['type'],this[_0x26aafd(0x24b)]);}}return _0x1645b4[_0x26aafd(0x3f7)](),_0x1645b4;}catch(_0x3b3985){return this['_logService'][_0x26aafd(0x4aa)]('[FetchMissState]',_0x26aafd(0x558),_0x3b3985),this[_0x26aafd(0x22d)]['createInstance'](_0x10b287,this[_0x26aafd(0x240)],this[_0x26aafd(0x389)],this[_0x26aafd(0x4ce)],this['_pendingMutations'],this[_0x26aafd(0x24b)],!0x1);}}['resend'](){const _0x234d7b=_0x145278;throw new Error(_0x234d7b(0x518));}[_0x145278(0x52a)](_0x5c043c){const _0x2bf447=_0x145278;return this[_0x2bf447(0x3c8)][_0x2bf447(0x276)](_0x5c043c),this;}[_0x145278(0x279)](_0x1c60cf){const _0x2b3b3b=_0x145278;return this[_0x2b3b3b(0x4ff)][_0x2b3b3b(0x276)](_0x1c60cf),this;}[_0x145278(0x488)](_0x27beb5){const _0x31589c=_0x145278;if(this['_awaitingChangeset'])return this[_0x31589c(0x552)]=this[_0x31589c(0x4ce)],this[_0x31589c(0x4ce)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x145278(0x494)](_0x4bc045){const _0x46aa07=_0x145278;return this['_onConflict'](!!(_0x4bc045!=null&&_0x4bc045[_0x46aa07(0x265)]));}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){const _0x155b7d=_0x145278;return this['_injector'][_0x155b7d(0x556)](_0x216080,this[_0x155b7d(0x240)],this[_0x155b7d(0x389)],this[_0x155b7d(0x4ce)],this[_0x155b7d(0x3c8)],this['_handler']);}['toggleOnline'](){return this;}[_0x145278(0x493)](_0x501e97){const _0x532fd7=_0x145278;return this['_injector'][_0x532fd7(0x556)](_0x10b287,this[_0x532fd7(0x240)],this['type'],this[_0x532fd7(0x4ce)],this['_pendingMutations'],this[_0x532fd7(0x24b)],_0x501e97);}};_0x26d3fa=_0x283e20([_0x255450(0x7,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x8,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x255450(0x9,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0xa,_0x349f19[_0x145278(0x1e7)]),_0x255450(0xb,_0x349f19[_0x145278(0x36e)]),_0x255450(0xc,_0x349f19[_0x145278(0x2a4)]),_0x255450(0xd,_0x54555c['ITransformService'])],_0x26d3fa);function _0x208b9a(_0x2bdc38,_0x1409c7,_0x2e15c0,_0x1daf7d,_0xb10392,_0x55eeda){const _0x393da7=_0x145278;return _0x1daf7d&&_0xb10392['length']?_0x2bdc38[_0x393da7(0x556)](_0x4101e6,_0x1409c7,_0x2e15c0,_0x1daf7d,_0xb10392,_0x55eeda,void 0x0):_0x1daf7d?_0x2bdc38['createInstance'](_0x238e5e,_0x1409c7,_0x2e15c0,_0x1daf7d,_0x55eeda):_0xb10392[_0x393da7(0x37e)]?_0x2bdc38['createInstance'](_0xf500fc,_0x1409c7,_0x2e15c0,_0xb10392,_0x55eeda):_0x2bdc38[_0x393da7(0x556)](_0x11f110,_0x1409c7,_0x2e15c0,_0x55eeda);}var _0x34a063=Object[_0x145278(0x507)],_0x2bda96=Object[_0x145278(0x16d)],_0x310d48=(_0x4a6238,_0x106f3f,_0x4a386e,_0x288984)=>{for(var _0x55fcea=_0x288984>0x1?void 0x0:_0x288984?_0x2bda96(_0x106f3f,_0x4a386e):_0x106f3f,_0x330965=_0x4a6238['length']-0x1,_0x2fa069;_0x330965>=0x0;_0x330965--)(_0x2fa069=_0x4a6238[_0x330965])&&(_0x55fcea=(_0x288984?_0x2fa069(_0x106f3f,_0x4a386e,_0x55fcea):_0x2fa069(_0x55fcea))||_0x55fcea);return _0x288984&&_0x55fcea&&_0x34a063(_0x106f3f,_0x4a386e,_0x55fcea),_0x55fcea;},_0x4e1934=(_0x1cc065,_0x49578c)=>(_0x923a0c,_0xf95470)=>_0x49578c(_0x923a0c,_0xf95470,_0x1cc065);_0x3b531e[_0x145278(0x122)]=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x25d13c,_0xf3a19a,_0x261d43,_0x4a6418,_0x55fab5,_0x52bfe4,_0x439e6f,_0x314f7c,_0x538db6,_0x239bf3,_0x6fda3c,_0x5ae25d,_0x3f703a){const _0x4d1cff=_0x145278;super(),_0xbb867(this,_0x4d1cff(0x2f8),new _0x1e13bb['BehaviorSubject'](null)),_0xbb867(this,'state$',this[_0x4d1cff(0x2f8)][_0x4d1cff(0x4de)]()),_0xbb867(this,'_state'),_0xbb867(this,_0x4d1cff(0x161),!0x1),_0xbb867(this,_0x4d1cff(0x324),''),_0xbb867(this,'_changesetReqId',0x0),_0xbb867(this,_0x4d1cff(0x4fd),this[_0x4d1cff(0x486)][_0x4d1cff(0x3f1)](_0x1e13bb[_0x4d1cff(0x15d)](_0x53fdd4=>_0x53fdd4?_0x53fdd4[_0x4d1cff(0x465)]:_0xfe35ac[_0x4d1cff(0x14d)]),_0x1e13bb[_0x4d1cff(0x1d6)](0x1))),_0xbb867(this,_0x4d1cff(0x189),!0x1),_0xbb867(this,_0x4d1cff(0x3d0),[]),(this[_0x4d1cff(0x240)]=_0x25d13c,this[_0x4d1cff(0x3ff)]=_0xf3a19a,this[_0x4d1cff(0x341)]=_0x261d43,this['_injector']=_0x4a6418,this[_0x4d1cff(0x3fb)]=_0x55fab5,this['_compressMutationService']=_0x52bfe4,this[_0x4d1cff(0x207)]=_0x439e6f,this[_0x4d1cff(0x2b4)]=_0x314f7c,this[_0x4d1cff(0x385)]=_0x538db6,this[_0x4d1cff(0x375)]=_0x239bf3,this[_0x4d1cff(0x2a1)]=_0x6fda3c,this[_0x4d1cff(0x201)]=_0x5ae25d,this['_singleActiveUnitService']=_0x3f703a);}get[_0x145278(0x4e8)](){const _0x523d4b=_0x145278;return this[_0x523d4b(0x44a)];}async['init'](){const _0xe1d46b=_0x145278;if(this[_0xe1d46b(0x4e8)])throw new Error(_0xe1d46b(0x3d5));await this['_init']();}['pauseCollaboration'](){const _0x248750=_0x145278;return this[_0x248750(0x161)]=!0x0,_0x349f19[_0x248750(0x534)](()=>{const _0x5909de=_0x248750;this[_0x5909de(0x161)]=!0x1,this[_0x5909de(0x48b)]();});}[_0x145278(0x2df)](_0xfc06d6){const _0x80765b=_0x145278;this[_0x80765b(0x44a)]=_0xfc06d6,this[_0x80765b(0x2f8)]['next'](_0xfc06d6);}async[_0x145278(0x35a)](){const _0x1c6073=_0x145278;var _0x15a874;this['_updateState'](await this[_0x1c6073(0x336)]()),this[_0x1c6073(0x54e)]&&((_0x15a874=this[_0x1c6073(0x54e)])==null||_0x15a874[_0x1c6073(0x517)](this[_0x1c6073(0x240)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x1c6073(0x415)](this['unitID'])[_0x1c6073(0x38f)](_0x87599b=>{const _0x41787e=_0x1c6073;this[_0x41787e(0x385)][_0x41787e(0x3e3)](_0x41787e(0x370),_0x41787e(0x3b4),_0x87599b),_0x87599b===_0x16b139['OTHER_CLIENTS_EDITING']?(this[_0x41787e(0x2a1)]['show']({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':_0x806671['MessageType'][_0x41787e(0x344)]}),this[_0x41787e(0x201)][_0x41787e(0x1c2)](new _0x4c7a32[(_0x41787e(0x287))](this[_0x41787e(0x240)])['id'],!0x1)):this[_0x41787e(0x201)][_0x41787e(0x1c2)](new _0x4c7a32[(_0x41787e(0x287))](this[_0x41787e(0x240)])['id'],!0x0);})));let _0x402f36=!0x1;return this[_0x1c6073(0x1e3)](this['session'][_0x1c6073(0x1ad)][_0x1c6073(0x38f)](_0x2c7638=>{const _0x15b6c1=_0x1c6073;_0x2c7638===_0x3ee00b['ONLINE']?this[_0x15b6c1(0x23c)](_0x402f36):_0x2c7638===_0x3ee00b['OFFLINE']&&(_0x402f36=!0x0,this['_toggleOffline']());})),this[_0x1c6073(0x1e3)](this[_0x1c6073(0x3ff)][_0x1c6073(0x403)][_0x1c6073(0x38f)](_0x1f3dec=>{const _0x3692b0=_0x1c6073;try{switch(_0x1f3dec[_0x3692b0(0x1c0)]){case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x327)]:{this[_0x3692b0(0x17a)](_0x54555c['parseProtocolChangeset'](_0x1f3dec[_0x3692b0(0x2d2)]));break;}case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x49a)]:{this['_onRemoteACK'](_0x1f3dec[_0x3692b0(0x2d2)]);break;}case _0x54555c['CollaborationEvent'][_0x3692b0(0x4f8)]:{this[_0x3692b0(0x23a)]();break;}case _0x54555c[_0x3692b0(0x547)]['CHANGESET_SHOULD_RETRY']:{this[_0x3692b0(0x366)](_0x1f3dec['data']);break;}case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x1f4)]:{this['_onFetchMissResult'](_0x1f3dec['data'][_0x3692b0(0x1af)][_0x3692b0(0x15d)](_0x40ff00=>_0x54555c['parseProtocolChangeset'](_0x40ff00)));break;}case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x475)]:this[_0x3692b0(0x23a)]({'isPermissionRej':!0x0});}}catch(_0xb55a40){throw console[_0x3692b0(0x4aa)](_0x3692b0(0x34a),_0xb55a40),_0xb55a40;}})),this[_0x1c6073(0x44a)];}[_0x145278(0x17b)](){const _0x2ceed5=_0x145278;this[_0x2ceed5(0x189)]=!0x1;}[_0x145278(0x463)](){const _0x65cfd9=_0x145278;if(this[_0x65cfd9(0x189)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x65cfd9(0x189)]=!0x0;}['_onLocalMutation'](_0x3fcd64){const _0x30005f=_0x145278;this[_0x30005f(0x463)](),this[_0x30005f(0x2df)](this[_0x30005f(0x44a)][_0x30005f(0x52a)](_0x3fcd64)),this[_0x30005f(0x17b)]();}[_0x145278(0x17a)](_0x3cfc06){const _0x2098d0=_0x145278;if(!(_0x3cfc06[_0x2098d0(0x3f6)]<=this[_0x2098d0(0x2b4)][_0x2098d0(0x213)](this[_0x2098d0(0x240)]))){if(this[_0x2098d0(0x161)]){this[_0x2098d0(0x3d0)][_0x2098d0(0x276)](_0x3cfc06);return;}this['_applyRemoteChangeset'](_0x3cfc06);}}[_0x145278(0x48b)](){const _0x3e49fd=_0x145278;this[_0x3e49fd(0x3d0)]['forEach'](_0x91feb6=>this[_0x3e49fd(0x302)](_0x91feb6)),this[_0x3e49fd(0x3d0)]=[];}[_0x145278(0x302)](_0x2ea48b){const _0x453732=_0x145278,_0x26c8ec=this[_0x453732(0x3cc)][_0x453732(0x120)]['fetchThroughInterceptors'](this[_0x453732(0x3cc)][_0x453732(0x120)][_0x453732(0x398)]()[_0x453732(0x2af)])(_0x2ea48b['mutations'],null)||_0x2ea48b[_0x453732(0x4ad)],_0x4b0a12={..._0x2ea48b,'mutations':_0x26c8ec};this[_0x453732(0x463)](),this['_updateState'](this['_state'][_0x453732(0x279)](_0x4b0a12)),this[_0x453732(0x17b)]();}[_0x145278(0x11e)](_0x3beb03){const _0x570636=_0x145278;this[_0x570636(0x463)](),this[_0x570636(0x2df)](this[_0x570636(0x44a)][_0x570636(0x488)](_0x3beb03)),this[_0x570636(0x17b)]();}[_0x145278(0x23a)](_0x1c518d){const _0xdc4709=_0x145278;this['_lockTransition'](),this[_0xdc4709(0x2df)](this['_state'][_0xdc4709(0x494)](_0x1c518d)),this[_0xdc4709(0x17b)]();}[_0x145278(0x366)](_0x12afbf){const _0x551f07=_0x145278;this['_lockTransition'](),this[_0x551f07(0x2df)](this[_0x551f07(0x44a)][_0x551f07(0x4d6)](_0x12afbf)),this[_0x551f07(0x17b)]();}[_0x145278(0x43e)](_0x38d486){const _0x4ee233=_0x145278;if(!(this[_0x4ee233(0x44a)]instanceof _0x26d3fa))throw new TypeError(_0x4ee233(0x13a));const _0x5e67ba=_0x38d486[_0x4ee233(0x15d)](_0x205007=>{const _0x11c442=_0x4ee233,_0x38d82e=this['_compressMutationService'][_0x11c442(0x120)]['fetchThroughInterceptors'](this[_0x11c442(0x3cc)][_0x11c442(0x120)]['getInterceptPoints']()[_0x11c442(0x2af)])(_0x205007[_0x11c442(0x4ad)],null)||_0x205007[_0x11c442(0x4ad)];return{..._0x205007,'mutations':_0x38d82e};});this[_0x4ee233(0x463)](),this[_0x4ee233(0x2df)](this[_0x4ee233(0x44a)][_0x4ee233(0x172)](_0x5e67ba)),this[_0x4ee233(0x17b)]();}[_0x145278(0x408)](){const _0x390673=_0x145278;this[_0x390673(0x463)](),this['_updateState'](this[_0x390673(0x44a)][_0x390673(0x423)]()),this['_unlockTransition']();}[_0x145278(0x23c)](_0x1d251d=!0x1){const _0x1afbd8=_0x145278;this[_0x1afbd8(0x463)](),this[_0x1afbd8(0x2df)](this[_0x1afbd8(0x44a)][_0x1afbd8(0x39b)]()),this[_0x1afbd8(0x17b)]();const _0x2e0c9c=this['_state'];_0x1d251d&&_0x2e0c9c instanceof _0x11f110&&(this[_0x1afbd8(0x463)](),this['_updateState'](_0x2e0c9c['fetchMiss']()),this[_0x1afbd8(0x17b)]());}async['_createInitialState'](){return new Promise(_0x51ba87=>{const _0x547425=_0x2aa9;this[_0x547425(0x3ff)][_0x547425(0x1ad)]['pipe'](_0x1e13bb[_0x547425(0x348)](0x1))[_0x547425(0x38f)](async _0x304852=>{const _0x50e09b=_0x547425;_0x51ba87(await this[_0x50e09b(0x2a2)](_0x304852===_0x3ee00b[_0x50e09b(0x4a3)]));});});}[_0x145278(0x1b3)](){const _0x235493=_0x145278,_0x2be932=this[_0x235493(0x240)];return{'onStateChange':(_0xeeadee,_0x45d24e)=>{const _0x2e52b5=_0x235493;if(_0xeeadee!==this[_0x2e52b5(0x44a)])throw new Error(_0x2e52b5(0x2e5)+_0xeeadee[_0x2e52b5(0x465)]+_0x2e52b5(0x484)+_0x45d24e['status']+_0x2e52b5(0x337)+this[_0x2e52b5(0x44a)][_0x2e52b5(0x465)]);this[_0x2e52b5(0x2df)](_0x45d24e);},'onSendChangeset':_0x48d8b7=>{const _0x255c2b=_0x235493;_0x48d8b7[_0x255c2b(0x29b)]||(_0x48d8b7[_0x255c2b(0x29b)]=this['_changesetSessionId'],_0x48d8b7['reqId']=++this[_0x255c2b(0x3ad)]);const _0x1b30fd={'eventID':_0x54555c[_0x255c2b(0x547)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x48d8b7[_0x255c2b(0x240)],'unitType':this[_0x255c2b(0x341)],'changeset':_0x48d8b7,'memberID':this[_0x255c2b(0x3ff)][_0x255c2b(0x315)]()}};this[_0x255c2b(0x3ff)][_0x255c2b(0x3e7)](_0x1b30fd,this[_0x255c2b(0x240)]);},'onMissingChangesets':({from:_0x5ebc7a,to:_0x14e057})=>{const _0x1e7c74=_0x235493;this[_0x1e7c74(0x385)][_0x1e7c74(0x3e3)]('[CollaborationEntity]',_0x1e7c74(0x394)+_0x5ebc7a+'\x20to\x20'+_0x14e057);const _0xae78c8={'eventID':_0x54555c['CollaborationEvent'][_0x1e7c74(0x4df)],'data':{'unitID':_0x2be932,'unitType':this['_type'],'from':_0x5ebc7a,'to':_0x14e057}};this[_0x1e7c74(0x3ff)][_0x1e7c74(0x3e7)](_0xae78c8,this[_0x1e7c74(0x240)]);}};}async['_createInitialStateImpl'](_0x5a3065){const _0x6f7d82=_0x145278;var _0x486379,_0x3fe825;const _0x52e45e=await this[_0x6f7d82(0x3fb)]['loadOfflineData'](this[_0x6f7d82(0x240)]),_0x16ae46=(_0x486379=_0x52e45e==null?void 0x0:_0x52e45e['mutations'])!=null?_0x486379:[],_0x367730=(_0x3fe825=_0x52e45e==null?void 0x0:_0x52e45e[_0x6f7d82(0x409)])!=null?_0x3fe825:null,_0x28178f=!!(_0x367730!=null&&_0x367730[_0x6f7d82(0x29b)])&&!!(_0x367730!=null&&_0x367730[_0x6f7d82(0x48d)]);this[_0x6f7d82(0x324)]=_0x28178f?_0x367730[_0x6f7d82(0x29b)]:_0x39e230(),this[_0x6f7d82(0x3ad)]=_0x28178f?_0x367730['reqId']:0x0;const _0x2751f4=this[_0x6f7d82(0x240)];try{this[_0x6f7d82(0x381)](_0x367730,_0x16ae46);}catch(_0x224503){this['_logService'][_0x6f7d82(0x4aa)](_0x224503);}const _0x415e36=this[_0x6f7d82(0x1b3)]();if(_0x5a3065){const _0x5b253d=_0x208b9a(this['_injector'],_0x2751f4,this[_0x6f7d82(0x341)],_0x367730,_0x16ae46,_0x415e36);return _0x5b253d instanceof _0xf500fc?_0x5b253d[_0x6f7d82(0x174)]():(_0x5b253d instanceof _0x4101e6||_0x5b253d instanceof _0x238e5e)&&_0x5b253d['resend'](),_0x5b253d;}return this[_0x6f7d82(0x22d)]['createInstance'](_0x216080,_0x2751f4,this[_0x6f7d82(0x341)],_0x367730,_0x16ae46,_0x415e36);}[_0x145278(0x381)](_0x309a0c,_0x4a62ab){const _0x5c48e5=_0x145278;var _0x149510,_0x2e5517;const _0x220319=this[_0x5c48e5(0x3cc)][_0x5c48e5(0x120)][_0x5c48e5(0x2c5)](this[_0x5c48e5(0x3cc)][_0x5c48e5(0x120)][_0x5c48e5(0x398)]()[_0x5c48e5(0x2af)]);(_0x149510=_0x220319((_0x309a0c==null?void 0x0:_0x309a0c['mutations'])||[],null))==null||_0x149510[_0x5c48e5(0x256)](_0x5ab100=>this[_0x5c48e5(0x375)]['executeCommand'](_0x5ab100['id'],_0x5ab100[_0x5c48e5(0x23d)])),(_0x2e5517=_0x220319(_0x4a62ab||[],null))==null||_0x2e5517[_0x5c48e5(0x256)](_0x982e9b=>this[_0x5c48e5(0x375)]['executeCommand'](_0x982e9b['id'],_0x982e9b[_0x5c48e5(0x23d)]));}},_0x3b531e[_0x145278(0x122)]=_0x310d48([_0x4e1934(0x3,_0x349f19['Inject'](_0x349f19[_0x145278(0x3b7)])),_0x4e1934(0x4,_0x349f19['Inject'](_0x3b531e[_0x145278(0x30a)])),_0x4e1934(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x1e5)])),_0x4e1934(0x6,_0x349f19[_0x145278(0x413)](_0x349f19['LocaleService'])),_0x4e1934(0x7,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x4e1934(0x8,_0x349f19[_0x145278(0x1e7)]),_0x4e1934(0x9,_0x349f19['ICommandService']),_0x4e1934(0xa,_0x5b624f[_0x145278(0x434)]),_0x4e1934(0xb,_0x349f19[_0x145278(0x4ec)]),_0x4e1934(0xc,_0x349f19[_0x145278(0x4f6)](_0x2d00f5))],_0x3b531e[_0x145278(0x122)]),_0x3b531e['DocCollaborationEntity']=class extends _0x3b531e[_0x145278(0x122)]{constructor(_0x5eb493,_0x1a6bc5,_0x165d88,_0x535a3c,_0x5cf10c,_0x1b7510,_0x3ecf52,_0x4d836c,_0x579f7a,_0x782fdf,_0x2c99c1,_0x2bb2f9,_0x5143b3,_0x26d027,_0x3509b4,_0x29bc40,_0x504b39){const _0x4b4436=_0x145278;super(_0x5eb493,_0x165d88,_0x1a6bc5,_0x535a3c,_0x5cf10c,_0x1b7510,_0x3ecf52,_0x4d836c,_0x5143b3,_0x26d027,_0x3509b4,_0x29bc40,_0x504b39),this[_0x4b4436(0x240)]=_0x5eb493,this[_0x4b4436(0x389)]=_0x1a6bc5,this[_0x4b4436(0x361)]=_0x579f7a,this['_docTransformIMECacheService']=_0x782fdf,this[_0x4b4436(0x44b)]=_0x2c99c1,this['_docSyncEditingCollabCursorService']=_0x2bb2f9;}[_0x145278(0x1b3)](){const _0x50e1bb=_0x145278,_0x28df08=super['_createHandler']();return _0x28df08[_0x50e1bb(0x45f)]=_0x506272=>this['_docTransformIMECacheService'][_0x50e1bb(0x51d)](_0x506272),_0x28df08[_0x50e1bb(0x41f)]=_0x486476=>this['_docTransformSelectionsService'][_0x50e1bb(0x3cb)](_0x486476),_0x28df08[_0x50e1bb(0x13d)]=_0x3db60c=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x3db60c),_0x28df08['onTransformRemoteChangesetByIMECache']=_0x20b139=>this[_0x50e1bb(0x118)]['transformRemoteChangeset'](_0x20b139),_0x28df08;}async[_0x145278(0x35a)](){const _0x100bb6=_0x145278,_0x16a5ab=await super[_0x100bb6(0x35a)]();return this[_0x100bb6(0x361)][_0x100bb6(0x461)][_0x100bb6(0x3f1)](_0x1e13bb['takeUntil'](this[_0x100bb6(0x115)]))['subscribe'](_0x86ac8f=>{const _0x46b7ed=_0x100bb6;if(_0x86ac8f==null)return;const {unitId:_0x14e9e4,redoState:_0x5d75ca,commandId:_0x288714}=_0x86ac8f;if(_0x14e9e4!==this[_0x46b7ed(0x240)])return;const _0x54a3cb={'id':_0x288714,'type':_0x349f19[_0x46b7ed(0x39f)][_0x46b7ed(0x192)],'params':{'unitId':_0x14e9e4,'actions':_0x5d75ca[_0x46b7ed(0x141)],'textRanges':null}};this[_0x46b7ed(0x2d4)](_0x54a3cb);}),_0x16a5ab;}},_0x3b531e[_0x145278(0x3ac)]=_0x310d48([_0x4e1934(0x3,_0x349f19['Inject'](_0x349f19[_0x145278(0x3b7)])),_0x4e1934(0x4,_0x349f19[_0x145278(0x413)](_0x3b531e['LocalCacheService'])),_0x4e1934(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x1e5)])),_0x4e1934(0x6,_0x349f19['Inject'](_0x349f19[_0x145278(0x267)])),_0x4e1934(0x7,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x4e1934(0x8,_0x349f19['Inject'](_0x3c060b[_0x145278(0x45c)])),_0x4e1934(0x9,_0x349f19[_0x145278(0x413)](_0x55e610)),_0x4e1934(0xa,_0x349f19[_0x145278(0x413)](_0x697163)),_0x4e1934(0xb,_0x349f19['Inject'](_0x2f089c)),_0x4e1934(0xc,_0x349f19['ILogService']),_0x4e1934(0xd,_0x349f19['ICommandService']),_0x4e1934(0xe,_0x5b624f[_0x145278(0x434)]),_0x4e1934(0xf,_0x349f19['IPermissionService']),_0x4e1934(0x10,_0x349f19['Optional'](_0x2d00f5))],_0x3b531e['DocCollaborationEntity']),_0x3b531e[_0x145278(0x3e0)]=class extends _0x3b531e['CollaborationEntity']{constructor(_0x3d5dc4,_0x35e025,_0x421afd,_0x2f922a,_0x487db1,_0x918ea1,_0xc51109,_0x3be816,_0x3624d5,_0x369458,_0x26419b,_0x3a5f23,_0xec1de0,_0x74997c){const _0x1c8e4a=_0x145278;super(_0x3d5dc4,_0x421afd,_0x35e025,_0x2f922a,_0x487db1,_0x918ea1,_0xc51109,_0x3be816,_0x369458,_0x26419b,_0x3a5f23,_0xec1de0,_0x74997c),this[_0x1c8e4a(0x240)]=_0x3d5dc4,this[_0x1c8e4a(0x389)]=_0x35e025,this['_sheetTransformSelectionsService']=_0x3624d5;}[_0x145278(0x1b3)](){const _0x5f4fbe=_0x145278,_0x4235ff=super['_createHandler']();return _0x4235ff[_0x5f4fbe(0x41f)]=_0x427c4d=>this[_0x5f4fbe(0x365)][_0x5f4fbe(0x3cb)](_0x427c4d),_0x4235ff;}async[_0x145278(0x35a)](){const _0x2d0ec1=_0x145278,_0x449738=await super[_0x2d0ec1(0x35a)]();return this[_0x2d0ec1(0x1e3)](this[_0x2d0ec1(0x375)][_0x2d0ec1(0x1f6)]((_0x3370e1,_0x3fef7b)=>{const _0x583c85=_0x2d0ec1;if(_0x3370e1[_0x583c85(0x389)]!==_0x349f19[_0x583c85(0x39f)]['MUTATION']||_0x3fef7b!=null&&_0x3fef7b['fromCollab']||_0x3fef7b!=null&&_0x3fef7b[_0x583c85(0x1b6)])return;const _0x396d4c=_0x3370e1[_0x583c85(0x23d)];if((_0x396d4c==null?void 0x0:_0x396d4c['unitId'])!==this[_0x583c85(0x240)])return;const _0x5a0f5d=_0x3370e1,_0x4be6fb=this[_0x583c85(0x3cc)][_0x583c85(0x120)][_0x583c85(0x2c5)](this['_compressMutationService'][_0x583c85(0x120)]['getInterceptPoints']()[_0x583c85(0x15c)])([_0x5a0f5d],null)||[_0x5a0f5d];this['_onLocalMutation'](_0x4be6fb[0x0]);})),_0x449738;}},_0x3b531e[_0x145278(0x3e0)]=_0x310d48([_0x4e1934(0x3,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x4e1934(0x4,_0x349f19[_0x145278(0x413)](_0x3b531e['LocalCacheService'])),_0x4e1934(0x5,_0x349f19['Inject'](_0x54555c[_0x145278(0x1e5)])),_0x4e1934(0x6,_0x349f19['Inject'](_0x349f19[_0x145278(0x267)])),_0x4e1934(0x7,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x4e1934(0x8,_0x349f19[_0x145278(0x413)](_0x370f64)),_0x4e1934(0x9,_0x349f19[_0x145278(0x1e7)]),_0x4e1934(0xa,_0x349f19[_0x145278(0x36e)]),_0x4e1934(0xb,_0x5b624f[_0x145278(0x434)]),_0x4e1934(0xc,_0x349f19[_0x145278(0x4ec)]),_0x4e1934(0xd,_0x349f19[_0x145278(0x4f6)](_0x2d00f5))],_0x3b531e[_0x145278(0x3e0)]);var _0x1f7531=Object['defineProperty'],_0x296e4f=Object[_0x145278(0x16d)],_0x4cb21c=(_0x52826e,_0x250b17,_0x56ef54,_0x5120f2)=>{const _0x407672=_0x145278;for(var _0x53adbe=_0x5120f2>0x1?void 0x0:_0x5120f2?_0x296e4f(_0x250b17,_0x56ef54):_0x250b17,_0x1e5f98=_0x52826e[_0x407672(0x37e)]-0x1,_0x37432d;_0x1e5f98>=0x0;_0x1e5f98--)(_0x37432d=_0x52826e[_0x1e5f98])&&(_0x53adbe=(_0x5120f2?_0x37432d(_0x250b17,_0x56ef54,_0x53adbe):_0x37432d(_0x53adbe))||_0x53adbe);return _0x5120f2&&_0x53adbe&&_0x1f7531(_0x250b17,_0x56ef54,_0x53adbe),_0x53adbe;},_0x19c9f7=(_0x2b5b6a,_0xf59f5)=>(_0x48110d,_0x5d254f)=>_0xf59f5(_0x48110d,_0x5d254f,_0x2b5b6a);_0x3b531e['CollaborationController']=class extends _0x349f19['RxDisposable']{constructor(_0x46d340,_0x251b8b,_0x1cf86b){const _0x21cccd=_0x145278;super(),_0xbb867(this,_0x21cccd(0x331),new Map()),_0xbb867(this,'_entityInit$',new _0x1e13bb['Subject']()),(this[_0x21cccd(0x22d)]=_0x46d340,this['_collabSessionService']=_0x251b8b,this[_0x21cccd(0x31f)]=_0x1cf86b,this[_0x21cccd(0x35a)]());}[_0x145278(0x4c1)](){const _0x5620f3=_0x145278;super[_0x5620f3(0x4c1)](),this[_0x5620f3(0x331)][_0x5620f3(0x256)](_0x470cc4=>_0x470cc4[_0x5620f3(0x4c1)]()),this['_entities'][_0x5620f3(0x19f)]();}[_0x145278(0x33d)](_0x4f1edb){const _0x15ed7e=_0x145278;var _0x26b606;return(_0x26b606=this[_0x15ed7e(0x331)][_0x15ed7e(0x4b6)](_0x4f1edb))!=null?_0x26b606:null;}[_0x145278(0x380)](_0x4a5f57){const _0x1dbeb6=_0x145278,_0x2b3414=this[_0x1dbeb6(0x33d)](_0x4a5f57);return _0x2b3414?_0x1e13bb['of'](_0x2b3414):this['_entityInit$'][_0x1dbeb6(0x3f1)](_0x501e2e[_0x1dbeb6(0x257)](_0x3d3c76=>_0x3d3c76[_0x1dbeb6(0x240)]===_0x4a5f57));}['_init'](){const _0x4c5b48=_0x145278;this[_0x4c5b48(0x31f)][_0x4c5b48(0x393)](_0x349f19[_0x4c5b48(0x426)]['UNIVER_SHEET'])[_0x4c5b48(0x3f1)](_0x1e13bb['takeUntil'](this[_0x4c5b48(0x115)]),_0x501e2e[_0x4c5b48(0x171)](0x10))['subscribe'](async _0x5291e1=>{const _0x5b1dbf=_0x4c5b48,_0xa73d94=_0x5291e1[_0x5b1dbf(0x453)](),_0x42ae9c=await this[_0x5b1dbf(0x19b)](_0xa73d94,_0x5b5eaf[_0x5b1dbf(0x431)]);this[_0x5b1dbf(0x331)][_0x5b1dbf(0x253)](_0xa73d94,_0x42ae9c);}),this[_0x4c5b48(0x31f)][_0x4c5b48(0x393)](_0x349f19[_0x4c5b48(0x426)][_0x4c5b48(0x22e)])[_0x4c5b48(0x3f1)](_0x1e13bb[_0x4c5b48(0x1bc)](this[_0x4c5b48(0x115)]),_0x501e2e[_0x4c5b48(0x171)](0x10))[_0x4c5b48(0x3f1)](_0x501e2e[_0x4c5b48(0x257)](_0x276ca3=>!_0x276ca3[_0x4c5b48(0x453)]()['startsWith']('__')))['subscribe'](async _0x551404=>{const _0x26785a=_0x4c5b48,_0x4e709c=_0x551404['getUnitId'](),_0x134ee1=await this['_startCollaboration'](_0x4e709c,_0x5b5eaf[_0x26785a(0x22e)]);this[_0x26785a(0x331)][_0x26785a(0x253)](_0x4e709c,_0x134ee1);}),_0x1e13bb[_0x4c5b48(0x1a2)](this['_univerInstanceService'][_0x4c5b48(0x1a1)](_0x349f19[_0x4c5b48(0x426)]['UNIVER_SHEET']),this[_0x4c5b48(0x31f)][_0x4c5b48(0x1a1)](_0x349f19[_0x4c5b48(0x426)][_0x4c5b48(0x22e)]))[_0x4c5b48(0x3f1)](_0x1e13bb['takeUntil'](this[_0x4c5b48(0x115)]))['subscribe'](_0x35c341=>{const _0x18b1d2=_0x4c5b48,_0x31b19a=_0x35c341[_0x18b1d2(0x453)](),_0x4cbc44=this['_entities']['get'](_0x31b19a);_0x4cbc44&&(_0x4cbc44[_0x18b1d2(0x4c1)](),this[_0x18b1d2(0x331)]['delete'](_0x31b19a));});}async[_0x145278(0x19b)](_0x5c4522,_0x460b91){const _0x1b445b=_0x145278,_0xc6e9b=await this[_0x1b445b(0x502)]['requireSession'](_0x5c4522),_0x3901c=this[_0x1b445b(0x22d)][_0x1b445b(0x556)](this[_0x1b445b(0x3e5)](_0x460b91),_0x5c4522,_0x460b91,_0xc6e9b);return await _0x3901c[_0x1b445b(0x46c)](),this[_0x1b445b(0x529)][_0x1b445b(0x155)](_0x3901c),_0x3901c;}[_0x145278(0x3e5)](_0x1fe059){const _0x12a12f=_0x145278;switch(_0x1fe059){case _0x5b5eaf[_0x12a12f(0x22e)]:return _0x3b531e[_0x12a12f(0x3ac)];case _0x5b5eaf[_0x12a12f(0x431)]:return _0x3b531e['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x1fe059);}}},_0x3b531e[_0x145278(0x446)]=_0x4cb21c([_0x19c9f7(0x0,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x19c9f7(0x1,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x21f)])),_0x19c9f7(0x2,_0x349f19['IUniverInstanceService'])],_0x3b531e[_0x145278(0x446)]);const _0x3ef227=['purple300',_0x145278(0x384),'verdancy600',_0x145278(0x4fa),_0x145278(0x11a),'gold400'];class _0x477f1a extends _0x349f19[_0x145278(0x1a4)]{constructor(){const _0x19ea51=_0x145278;super(...arguments),_0xbb867(this,_0x19ea51(0x18b),new Map()),_0xbb867(this,_0x19ea51(0x509),0x0);}['assignAColorForMemberID'](_0x27c711){const _0x5c0469=_0x145278;if(this[_0x5c0469(0x18b)][_0x5c0469(0x2e6)](_0x27c711))return this[_0x5c0469(0x18b)][_0x5c0469(0x4b6)](_0x27c711);const _0xde7fe9=_0x3ef227[this[_0x5c0469(0x509)]];return this[_0x5c0469(0x509)]=(this[_0x5c0469(0x509)]+0x1)%_0x3ef227[_0x5c0469(0x37e)],this[_0x5c0469(0x18b)][_0x5c0469(0x253)](_0x27c711,_0xde7fe9),_0xde7fe9;}}var _0x5a5de0=Object[_0x145278(0x507)],_0x243fb1=Object[_0x145278(0x16d)],_0x10fc09=(_0x1d4d0e,_0x5efc5c,_0x27b2f0,_0x223313)=>{const _0xf79950=_0x145278;for(var _0x44a3e6=_0x223313>0x1?void 0x0:_0x223313?_0x243fb1(_0x5efc5c,_0x27b2f0):_0x5efc5c,_0x36974a=_0x1d4d0e[_0xf79950(0x37e)]-0x1,_0x621e23;_0x36974a>=0x0;_0x36974a--)(_0x621e23=_0x1d4d0e[_0x36974a])&&(_0x44a3e6=(_0x223313?_0x621e23(_0x5efc5c,_0x27b2f0,_0x44a3e6):_0x621e23(_0x44a3e6))||_0x44a3e6);return _0x223313&&_0x44a3e6&&_0x5a5de0(_0x5efc5c,_0x27b2f0,_0x44a3e6),_0x44a3e6;},_0x21f9d8=(_0x277323,_0x5c1c55)=>(_0x131ef6,_0x2391f6)=>_0x5c1c55(_0x131ef6,_0x2391f6,_0x277323);const _0xcaf064=0x12c,_0x53ea14=0x64;let _0x915072=class extends _0x349f19['RxDisposable']{constructor(_0x584d45,_0x47d8c6,_0x175adf,_0x58711a,_0x425629,_0x58aa56,_0x4bd409,_0x400125,_0x58b309){const _0x8bb5cd=_0x145278;super(),_0xbb867(this,_0x8bb5cd(0x2e9),!0x1),_0xbb867(this,_0x8bb5cd(0x35a),!0x1),_0xbb867(this,'_cursorInfo$',new _0x1e13bb[(_0x8bb5cd(0x40f))](new Map())),_0xbb867(this,_0x8bb5cd(0x51f),this['_cursorInfo$'][_0x8bb5cd(0x4de)]()),_0xbb867(this,_0x8bb5cd(0x14e),new _0x1e13bb['BehaviorSubject']([])),_0xbb867(this,_0x8bb5cd(0x27a),this[_0x8bb5cd(0x14e)][_0x8bb5cd(0x3f1)](_0x1e13bb['debounceTime'](_0xcaf064))),_0xbb867(this,'_updateLocalCursor',_0x349f19[_0x8bb5cd(0x3ef)](_0x4a2e49=>{const _0x5069a9=_0x8bb5cd,_0x3dd7af={'eventID':_0x54555c['CollaborationEvent'][_0x5069a9(0x31e)],'data':{'unitID':this[_0x5069a9(0x240)],'memberID':this[_0x5069a9(0x1ab)][_0x5069a9(0x315)](),'selection':_0x5d4f5d(_0x4a2e49)}};this[_0x5069a9(0x1ab)][_0x5069a9(0x3e7)](_0x3dd7af,this['unitID']);},_0x53ea14)),(this[_0x8bb5cd(0x240)]=_0x584d45,this[_0x8bb5cd(0x1ab)]=_0x47d8c6,this[_0x8bb5cd(0x22d)]=_0x175adf,this[_0x8bb5cd(0x539)]=_0x58711a,this[_0x8bb5cd(0x474)]=_0x425629,this[_0x8bb5cd(0x41e)]=_0x58aa56,this[_0x8bb5cd(0x28a)]=_0x4bd409,this[_0x8bb5cd(0x31f)]=_0x400125,this[_0x8bb5cd(0x375)]=_0x58b309);}get[_0x145278(0x26f)](){const _0x5546e9=_0x145278;return this['_cursorInfo$'][_0x5546e9(0x46a)]();}get['roomMembers'](){const _0x5f4698=_0x145278;return this[_0x5f4698(0x14e)][_0x5f4698(0x46a)]();}['dispose'](){const _0x1a7bfc=_0x145278;super[_0x1a7bfc(0x4c1)](),this[_0x1a7bfc(0x270)][_0x1a7bfc(0x155)](new Map()),this[_0x1a7bfc(0x270)]['complete'](),this[_0x1a7bfc(0x14e)][_0x1a7bfc(0x155)]([]),this[_0x1a7bfc(0x14e)][_0x1a7bfc(0x2f9)]();}['init'](){const _0x25b58f=_0x145278;this['_init']||(this[_0x25b58f(0x35a)]=!0x0,this[_0x25b58f(0x1ab)][_0x25b58f(0x1ad)][_0x25b58f(0x3f1)](_0x1e13bb[_0x25b58f(0x1bc)](this[_0x25b58f(0x115)]))['subscribe'](_0x1495d0=>{const _0x7f538c=_0x25b58f;_0x1495d0===_0x3ee00b['ONLINE']?this[_0x7f538c(0x23c)]():this[_0x7f538c(0x408)]();}),this[_0x25b58f(0x1ab)][_0x25b58f(0x403)][_0x25b58f(0x3f1)](_0x1e13bb['takeUntil'](this[_0x25b58f(0x115)]))[_0x25b58f(0x38f)](_0x3a8644=>{const _0xd1a494=_0x25b58f,_0x39edb3=_0x3a8644[_0xd1a494(0x1c0)];_0x39edb3===_0x54555c[_0xd1a494(0x547)][_0xd1a494(0x31e)]&&this[_0xd1a494(0x2ec)](_0x3a8644),_0x39edb3===_0x54555c['CollaborationEvent'][_0xd1a494(0x28b)]&&this['_onCursorDelete'](_0x3a8644);}),this['disposeWithMe'](this['_commandService'][_0x25b58f(0x1f6)](_0x3b8f61=>{const _0x57e9c1=_0x25b58f,_0x3982fa=_0x3b8f61[_0x57e9c1(0x23d)];_0x3982fa!=null&&this[_0x57e9c1(0x2e9)]&&_0x3b8f61['id']===_0x9fa27b[_0x57e9c1(0x3cf)]['id']&&_0x3982fa[_0x57e9c1(0x126)]===this[_0x57e9c1(0x240)]&&_0x3982fa[_0x57e9c1(0x44c)]===!0x1&&this[_0x57e9c1(0x48f)](_0x3982fa[_0x57e9c1(0x3cd)]);})),this[_0x25b58f(0x41e)][_0x25b58f(0x12e)][_0x25b58f(0x3f1)](_0x1e13bb[_0x25b58f(0x1bc)](this[_0x25b58f(0x115)]))[_0x25b58f(0x38f)](_0x540e0e=>{const _0x44df63=_0x25b58f;if((_0x540e0e==null?void 0x0:_0x540e0e[_0x44df63(0x240)])!==this['unitID'])return;const _0xf1813e={'eventID':_0x54555c['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x540e0e};this[_0x44df63(0x2ec)](_0xf1813e);}),this[_0x25b58f(0x1e3)](this[_0x25b58f(0x375)][_0x25b58f(0x1f6)](_0xf55a37=>{const _0x590c8b=_0x25b58f;if(_0xf55a37['params']==null)return;const _0x5b9fb1=_0xf55a37['params'];if(_0xf55a37['id']!==_0x9fa27b[_0x590c8b(0x50b)]['id']||_0x5b9fb1[_0x590c8b(0x126)]!==this[_0x590c8b(0x240)])return;const _0x4c2b56={'id':_0x590c8b(0x4cd),'params':_0x5b9fb1},_0x219fd2=this['cursorInfo'];for(const [_0x2eb8ad,_0x49ab50]of _0x219fd2){const _0x15c710={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x590c8b(0x240)],'actions':null,'textRanges':_0x49ab50[_0x590c8b(0x3cd)]}},_0x3b2311=this['_transformService']['transformMutation'](_0x4c2b56,_0x15c710,!0x1);if(_0x54555c['isTransformMutationFailure'](_0x3b2311))throw _0x3b2311['error'];_0x219fd2[_0x590c8b(0x253)](_0x2eb8ad,{..._0x49ab50,'ranges':_0x3b2311['m2Prime']['params'][_0x590c8b(0x433)]});}queueMicrotask(()=>{const _0x3a3438=_0x590c8b;this['_cursorInfo$'][_0x3a3438(0x155)](_0x219fd2);});})));}['_onCursorUpdate'](_0x6f719a){const _0x1558d6=_0x145278;var _0x1a948d,_0x57d25f;const {memberID:_0x2c9552,selection:_0x3c0312}=_0x6f719a[_0x1558d6(0x2d2)],_0x161147=_0x19266e(_0x3c0312),_0x3ea341=(_0x57d25f=(_0x1a948d=this[_0x1558d6(0x474)][_0x1558d6(0x26a)](this[_0x1558d6(0x240)],_0x2c9552))==null?void 0x0:_0x1a948d[_0x1558d6(0x51c)])!=null?_0x57d25f:_0x1558d6(0x2ee),_0x459c1b={'color':this[_0x1558d6(0x539)][_0x1558d6(0x2f7)](_0x2c9552),'name':_0x3ea341,'ranges':_0x161147},_0x117d5d=this[_0x1558d6(0x26f)];_0x117d5d['set'](_0x2c9552,_0x459c1b),this[_0x1558d6(0x270)][_0x1558d6(0x155)](_0x117d5d);}[_0x145278(0x2b5)](_0x20d625){const _0x4653e9=_0x145278,{memberID:_0x12945d}=_0x20d625['data'],_0x9679b2=this[_0x4653e9(0x26f)];_0x9679b2[_0x4653e9(0x4f4)](_0x12945d),this[_0x4653e9(0x270)][_0x4653e9(0x155)](_0x9679b2);}[_0x145278(0x23c)](){const _0x4f74a0=_0x145278;var _0x684b4b;if(this['_online']=!0x0,((_0x684b4b=this[_0x4f74a0(0x31f)][_0x4f74a0(0x2da)]())==null?void 0x0:_0x684b4b[_0x4f74a0(0x453)]())!==this[_0x4f74a0(0x240)])return;const _0x3e8a94=this['_injector'][_0x4f74a0(0x4b6)](_0x9fa27b[_0x4f74a0(0x113)])[_0x4f74a0(0x545)]();Array[_0x4f74a0(0x1c9)](_0x3e8a94)&&_0x3e8a94[_0x4f74a0(0x37e)]>0x0&&this[_0x4f74a0(0x48f)](_0x3e8a94);}[_0x145278(0x408)](){const _0x33d34b=_0x145278;this[_0x33d34b(0x2e9)]=!0x1;}};_0x915072=_0x10fc09([_0x21f9d8(0x2,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x21f9d8(0x3,_0x349f19['Inject'](_0x477f1a)),_0x21f9d8(0x4,_0x349f19[_0x145278(0x413)](_0x5a9e0d)),_0x21f9d8(0x5,_0x349f19[_0x145278(0x413)](_0x2f089c)),_0x21f9d8(0x6,_0x54555c[_0x145278(0x42a)]),_0x21f9d8(0x7,_0x349f19[_0x145278(0x501)]),_0x21f9d8(0x8,_0x349f19[_0x145278(0x36e)])],_0x915072);var _0x334c33=Object[_0x145278(0x507)],_0x51cc95=Object[_0x145278(0x16d)],_0x388b61=(_0xb73f8,_0x2c0e5c,_0x352b91,_0x8c74ed)=>{for(var _0x42c53e=_0x8c74ed>0x1?void 0x0:_0x8c74ed?_0x51cc95(_0x2c0e5c,_0x352b91):_0x2c0e5c,_0x132d85=_0xb73f8['length']-0x1,_0x124b2a;_0x132d85>=0x0;_0x132d85--)(_0x124b2a=_0xb73f8[_0x132d85])&&(_0x42c53e=(_0x8c74ed?_0x124b2a(_0x2c0e5c,_0x352b91,_0x42c53e):_0x124b2a(_0x42c53e))||_0x42c53e);return _0x8c74ed&&_0x42c53e&&_0x334c33(_0x2c0e5c,_0x352b91,_0x42c53e),_0x42c53e;},_0xe28271=(_0x53ca7f,_0xbf6584)=>(_0xda67d6,_0x38cd31)=>_0xbf6584(_0xda67d6,_0x38cd31,_0x53ca7f);const _0x25276e=0x12c,_0x13d872=0x64,_0x1d3f5d=()=>{let _0x4bf32b=[],_0x37112e=!0x1;return _0x2c8b38=>{const _0x392d0d=_0x2aa9;_0x4bf32b[_0x392d0d(0x276)](_0x2c8b38),_0x37112e||(_0x37112e=!0x0,setTimeout(()=>{_0x4bf32b['forEach'](_0x9f81fc=>_0x9f81fc()),_0x4bf32b=[],_0x37112e=!0x1;}));};};let _0x232fbb=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x323506,_0x42bcbb,_0x148c09,_0x57a1df,_0x13ce4e,_0x3a3dad,_0xd46fa7,_0x2d96d2){const _0x213793=_0x145278;super(),_0xbb867(this,_0x213793(0x2e9),!0x1),_0xbb867(this,_0x213793(0x35a),!0x1),_0xbb867(this,'_cursorInfo$',new _0x1e13bb['BehaviorSubject'](new Map())),_0xbb867(this,_0x213793(0x51f),this[_0x213793(0x270)][_0x213793(0x4de)]()),_0xbb867(this,_0x213793(0x14e),new _0x1e13bb[(_0x213793(0x40f))]([])),_0xbb867(this,'roomMembers$',this[_0x213793(0x14e)]['pipe'](_0x1e13bb['debounceTime'](_0x25276e))),_0xbb867(this,_0x213793(0x48f),_0x349f19[_0x213793(0x3ef)]((_0x125b9c,_0x4549e2)=>{const _0x2aeb08=_0x213793,_0x4cb3ef={'eventID':_0x54555c[_0x2aeb08(0x547)][_0x2aeb08(0x31e)],'data':{'unitID':this[_0x2aeb08(0x240)],'memberID':this[_0x2aeb08(0x1ab)][_0x2aeb08(0x315)](),'selection':_0x2de305[_0x2aeb08(0x1a5)](_0x125b9c,_0x4549e2[_0x2aeb08(0x301)])}};this[_0x2aeb08(0x1ab)]['send'](_0x4cb3ef,this[_0x2aeb08(0x240)]);},_0x13d872)),(this['unitID']=_0x323506,this[_0x213793(0x1ab)]=_0x42bcbb,this['_injector']=_0x148c09,this['_colorAssignService']=_0x57a1df,this[_0x213793(0x474)]=_0x13ce4e,this[_0x213793(0x31f)]=_0x3a3dad,this[_0x213793(0x375)]=_0xd46fa7,this[_0x213793(0x129)]=_0x2d96d2);}get[_0x145278(0x26f)](){const _0x1db400=_0x145278;return this[_0x1db400(0x270)]['getValue']();}get[_0x145278(0x4d0)](){const _0x1d9d66=_0x145278;return this['_roomMembers$'][_0x1d9d66(0x46a)]();}[_0x145278(0x4c1)](){const _0x431092=_0x145278;super[_0x431092(0x4c1)](),this['_cursorInfo$'][_0x431092(0x155)](new Map()),this[_0x431092(0x270)][_0x431092(0x2f9)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x431092(0x2f9)]();}[_0x145278(0x46c)](){const _0x23872c=_0x145278;this[_0x23872c(0x35a)]||(this[_0x23872c(0x35a)]=!0x0,this[_0x23872c(0x1ab)]['sessionStatus$'][_0x23872c(0x3f1)](_0x1e13bb['takeUntil'](this[_0x23872c(0x115)]))[_0x23872c(0x38f)](_0x187bf0=>{const _0x3a3ea6=_0x23872c;_0x187bf0===_0x3ee00b['ONLINE']?this[_0x3a3ea6(0x23c)]():this[_0x3a3ea6(0x408)]();}),this[_0x23872c(0x1ab)][_0x23872c(0x403)][_0x23872c(0x3f1)](_0x1e13bb['takeUntil'](this[_0x23872c(0x115)]))[_0x23872c(0x38f)](_0x13f84f=>{const _0x3d67e8=_0x23872c,_0x14769f=_0x13f84f['eventID'];_0x14769f===_0x54555c[_0x3d67e8(0x547)][_0x3d67e8(0x31e)]&&this[_0x3d67e8(0x2ec)](_0x13f84f),_0x14769f===_0x54555c[_0x3d67e8(0x547)][_0x3d67e8(0x28b)]&&this[_0x3d67e8(0x2b5)](_0x13f84f);}),this[_0x23872c(0x2bf)](),this[_0x23872c(0x1e3)](this[_0x23872c(0x375)]['onCommandExecuted'](_0x1e844c=>{const _0x2bc8c6=_0x23872c;if(this[_0x2bc8c6(0x2e9)]&&_0x1e844c['id']===_0x4c7a32['SetSelectionsOperation']['id']&&_0x1e844c[_0x2bc8c6(0x23d)][_0x2bc8c6(0x126)]===this['unitID']){const _0x5f30aa=_0x1e844c[_0x2bc8c6(0x23d)];this['_updateLocalCursor'](_0x5f30aa[_0x2bc8c6(0x1f1)],_0x5f30aa[_0x2bc8c6(0x15a)][0x0]);}})));}[_0x145278(0x2ec)](_0x1ecd9a){const _0x15f6ac=_0x145278;var _0x3edb1f,_0x37e5d8;const {memberID:_0x357ddd,selection:_0x19466a}=_0x1ecd9a[_0x15f6ac(0x2d2)],{sheetName:_0x93ee6e,range:_0x1edb9f}=_0x2de305[_0x15f6ac(0x137)](_0x19466a),_0x2bff71={'name':(_0x37e5d8=(_0x3edb1f=this['_memberService'][_0x15f6ac(0x26a)](this[_0x15f6ac(0x240)],_0x357ddd))==null?void 0x0:_0x3edb1f['name'])!=null?_0x37e5d8:_0x15f6ac(0x2ee),'range':this[_0x15f6ac(0x241)](_0x93ee6e,_0x1edb9f),'sheetID':_0x93ee6e,'color':this[_0x15f6ac(0x539)][_0x15f6ac(0x2f7)](_0x357ddd),'selection':_0x19466a},_0x3c89d1=this[_0x15f6ac(0x26f)];_0x3c89d1['set'](_0x357ddd,_0x2bff71),this[_0x15f6ac(0x270)][_0x15f6ac(0x155)](_0x3c89d1);}[_0x145278(0x2b5)](_0x4225ad){const _0x13379d=_0x145278,{memberID:_0x58aa24}=_0x4225ad[_0x13379d(0x2d2)],_0x145b58=this[_0x13379d(0x26f)];_0x145b58[_0x13379d(0x4f4)](_0x58aa24),this[_0x13379d(0x270)][_0x13379d(0x155)](_0x145b58);}[_0x145278(0x241)](_0x1fb1e2,_0x365314){const _0x4bef5c=_0x145278;var _0x4b211c,_0x8ebdb6;const _0xb1491b=(_0x8ebdb6=(_0x4b211c=this[_0x4bef5c(0x31f)][_0x4bef5c(0x146)](this[_0x4bef5c(0x240)]))==null?void 0x0:_0x4b211c[_0x4bef5c(0x353)](_0x1fb1e2))==null?void 0x0:_0x8ebdb6['getMergeData']();return(_0xb1491b==null?void 0x0:_0xb1491b[_0x4bef5c(0x373)](_0x346ca7=>_0x349f19['Rectangle'][_0x4bef5c(0x1fb)](_0x346ca7,_0x365314)))||_0x365314;}[_0x145278(0x2bf)](){const _0x226bfb=_0x145278,_0x69cd79=new _0x349f19[(_0x226bfb(0x2ac))](),_0x1c3aa1=_0x1d3f5d(),_0x317ebc=()=>{const _0x5a77d9=_0x226bfb;_0x69cd79[_0x5a77d9(0x4c1)]();const _0x4ba652=(_0x2df2b5,_0x32faa4,_0x3b1173,_0x3e3503)=>{const _0x9b2613=_0x5a77d9;let _0x15baa1=[];switch(_0x2df2b5['id']){case _0x4c7a32['EffectRefRangId'][_0x9b2613(0x260)]:{_0x15baa1=_0x4c7a32[_0x9b2613(0x16f)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x15baa1=_0x4c7a32['handleDeleteRangeMoveUp'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x50f)]:{_0x15baa1=_0x4c7a32[_0x9b2613(0x438)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)]['InsertRangeMoveDownCommandId']:{_0x15baa1=_0x4c7a32[_0x9b2613(0x1b9)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x1ea)]:{_0x15baa1=_0x4c7a32['handleInsertRangeMoveRight'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x245)]:{_0x15baa1=_0x4c7a32['handleInsertRow'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32['EffectRefRangId'][_0x9b2613(0x2cd)]:{_0x15baa1=_0x4c7a32[_0x9b2613(0x3c7)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x50d)]:{_0x15baa1=_0x4c7a32['handleIRemoveCol'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)]['RemoveRowCommandId']:{_0x15baa1=_0x4c7a32[_0x9b2613(0x355)](_0x2df2b5,_0x3e3503);break;}}const _0x2ed5c2=_0x4c7a32[_0x9b2613(0x1a3)](_0x15baa1,_0x3e3503),_0x20670c=this[_0x9b2613(0x26f)][_0x9b2613(0x4b6)](_0x32faa4);if(_0x20670c&&_0x2ed5c2){const _0x2522ac={..._0x20670c,'range':_0x2ed5c2};this[_0x9b2613(0x26f)]['set'](_0x32faa4,_0x2522ac),_0x1c3aa1(()=>{const _0x2ab922=_0x9b2613,_0x25e7e6=this[_0x2ab922(0x129)][_0x2ab922(0x2a8)](_0x2ed5c2,_0x502577=>(_0x25e7e6['dispose'](),_0x4ba652(_0x502577,_0x32faa4,_0x3b1173,_0x2ed5c2)));_0x69cd79[_0x2ab922(0x4f3)](_0x25e7e6);});}return{'redos':[],'undos':[]};};this[_0x5a77d9(0x26f)][_0x5a77d9(0x256)]((_0x4b8033,_0x34f322)=>{const _0x24be6d=_0x5a77d9,{range:_0x490f6b,sheetID:_0x34f18e}=_0x4b8033,_0x5c9702=this[_0x24be6d(0x129)]['registerRefRange'](_0x490f6b,_0x442ef4=>(_0x5c9702[_0x24be6d(0x4c1)](),_0x4ba652(_0x442ef4,_0x34f322,_0x34f18e,_0x490f6b)));_0x69cd79[_0x24be6d(0x4f3)](_0x5c9702);});};this[_0x226bfb(0x1e3)](_0x349f19[_0x226bfb(0x534)](this[_0x226bfb(0x270)][_0x226bfb(0x38f)](()=>{_0x317ebc();})));}[_0x145278(0x23c)](){const _0x5475d1=_0x145278;var _0x1b09fe,_0x15fac6;if(this[_0x5475d1(0x2e9)]=!0x0,((_0x1b09fe=this[_0x5475d1(0x31f)][_0x5475d1(0x2da)]())==null?void 0x0:_0x1b09fe['getUnitId']())!==this['unitID'])return;const _0x51f612=(_0x15fac6=this['_injector']['get'](_0x4c7a32[_0x5475d1(0x40c)])['getCurrentSelections']())==null?void 0x0:_0x15fac6[0x0],_0x2081d3=this[_0x5475d1(0x31f)]['getCurrentUnitForType'](_0x349f19[_0x5475d1(0x426)][_0x5475d1(0x431)])[_0x5475d1(0x1b2)]();_0x51f612&&_0x2081d3&&this[_0x5475d1(0x48f)](_0x2081d3[_0x5475d1(0x3f2)](),_0x51f612);}[_0x145278(0x408)](){const _0x5d343b=_0x145278;this[_0x5d343b(0x2e9)]=!0x1;}};_0x232fbb=_0x388b61([_0xe28271(0x2,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0xe28271(0x3,_0x349f19[_0x145278(0x413)](_0x477f1a)),_0xe28271(0x4,_0x349f19[_0x145278(0x413)](_0x5a9e0d)),_0xe28271(0x5,_0x349f19[_0x145278(0x501)]),_0xe28271(0x6,_0x349f19[_0x145278(0x36e)]),_0xe28271(0x7,_0x349f19['Inject'](_0x4c7a32['RefRangeService']))],_0x232fbb);var _0x3f969d=Object['defineProperty'],_0xff68fe=Object[_0x145278(0x16d)],_0x2abc0d=(_0x622a2,_0x3cd9ad,_0x2879cf,_0x5da693)=>{const _0x296fc8=_0x145278;for(var _0x17552b=_0x5da693>0x1?void 0x0:_0x5da693?_0xff68fe(_0x3cd9ad,_0x2879cf):_0x3cd9ad,_0x3ca326=_0x622a2[_0x296fc8(0x37e)]-0x1,_0x5a0229;_0x3ca326>=0x0;_0x3ca326--)(_0x5a0229=_0x622a2[_0x3ca326])&&(_0x17552b=(_0x5da693?_0x5a0229(_0x3cd9ad,_0x2879cf,_0x17552b):_0x5a0229(_0x17552b))||_0x17552b);return _0x5da693&&_0x17552b&&_0x3f969d(_0x3cd9ad,_0x2879cf,_0x17552b),_0x17552b;},_0x4e2821=(_0x4b5a01,_0x5cff87)=>(_0xedb6c4,_0x14b0c3)=>_0x5cff87(_0xedb6c4,_0x14b0c3,_0x4b5a01);let _0xc5b355=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x20086a,_0x1e3637,_0x4d0a18){const _0xd682f2=_0x145278;super(),_0xbb867(this,_0xd682f2(0x331),new Map()),_0xbb867(this,'_entityInit$',new _0x1e13bb[(_0xd682f2(0x410))]()),(this[_0xd682f2(0x31f)]=_0x20086a,this[_0xd682f2(0x22d)]=_0x1e3637,this[_0xd682f2(0x502)]=_0x4d0a18,this[_0xd682f2(0x35a)]());}[_0x145278(0x4c1)](){const _0x51ffc8=_0x145278;super[_0x51ffc8(0x4c1)](),this[_0x51ffc8(0x529)][_0x51ffc8(0x2f9)](),this[_0x51ffc8(0x331)][_0x51ffc8(0x256)](_0x9a5231=>_0x9a5231[_0x51ffc8(0x4c1)]());}[_0x145278(0x180)](_0xb45004){const _0x54cd10=_0x145278;return this['_entities']['has'](_0xb45004)?this['_entities']['get'](_0xb45004)[_0x54cd10(0x51f)]:this[_0x54cd10(0x529)]['pipe'](_0x1e13bb['filter'](_0x3373a3=>_0x3373a3['unitID']===_0xb45004),_0x1e13bb['switchMap'](_0x30cc02=>_0x30cc02[_0x54cd10(0x51f)]));}[_0x145278(0x35a)](){const _0x3267c1=_0x145278;this[_0x3267c1(0x31f)][_0x3267c1(0x393)](_0x349f19[_0x3267c1(0x426)]['UNIVER_SHEET'])[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x1bc)](this[_0x3267c1(0x115)]))[_0x3267c1(0x38f)](async _0x2e9328=>{const _0x2e53f6=_0x3267c1,_0x589ec7=_0x2e9328[_0x2e53f6(0x453)](),_0x1ade2b=await this['_startSheetCollabCursor'](_0x589ec7);this[_0x2e53f6(0x529)][_0x2e53f6(0x155)](_0x1ade2b),this['_entities'][_0x2e53f6(0x253)](_0x589ec7,_0x1ade2b);}),this[_0x3267c1(0x31f)]['getTypeOfUnitAdded$'](_0x349f19['UniverInstanceType'][_0x3267c1(0x22e)])[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x1bc)](this[_0x3267c1(0x115)]))[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x257)](_0xd40d5d=>!_0xd40d5d['getUnitId']()['startsWith']('__')))[_0x3267c1(0x38f)](async _0x309719=>{const _0x40a633=_0x3267c1,_0x13fb58=_0x309719[_0x40a633(0x453)](),_0x2c76e1=await this[_0x40a633(0x4c4)](_0x13fb58);this[_0x40a633(0x529)][_0x40a633(0x155)](_0x2c76e1),this['_entities']['set'](_0x13fb58,_0x2c76e1);}),_0x1e13bb[_0x3267c1(0x1a2)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x349f19[_0x3267c1(0x426)][_0x3267c1(0x22e)]),this[_0x3267c1(0x31f)][_0x3267c1(0x1a1)](_0x349f19['UniverInstanceType'][_0x3267c1(0x431)]))[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x1bc)](this['dispose$']))[_0x3267c1(0x38f)](_0x2cfb7d=>{const _0x15d60f=_0x3267c1,_0x41dd13=_0x2cfb7d[_0x15d60f(0x453)](),_0x235d13=this['_entities'][_0x15d60f(0x4b6)](_0x41dd13);_0x235d13&&(_0x235d13[_0x15d60f(0x4c1)](),this['_entities']['delete'](_0x41dd13));});}async[_0x145278(0x513)](_0x4d5c3d){const _0x182e91=_0x145278,_0xb9e733=await this['_collabSessionService'][_0x182e91(0x4ab)](_0x4d5c3d),_0x5f1899=this[_0x182e91(0x22d)][_0x182e91(0x556)](_0x232fbb,_0x4d5c3d,_0xb9e733);return _0x5f1899[_0x182e91(0x46c)](),_0x5f1899;}async[_0x145278(0x4c4)](_0x2eea95){const _0x4d7ddc=_0x145278,_0xa9d028=await this[_0x4d7ddc(0x502)][_0x4d7ddc(0x4ab)](_0x2eea95),_0x51e001=this['_injector'][_0x4d7ddc(0x556)](_0x915072,_0x2eea95,_0xa9d028);return _0x51e001[_0x4d7ddc(0x46c)](),_0x51e001;}};_0xc5b355=_0x2abc0d([_0x4e2821(0x0,_0x349f19[_0x145278(0x501)]),_0x4e2821(0x1,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x4e2821(0x2,_0x349f19[_0x145278(0x413)](_0x3b531e['CollaborationSessionService']))],_0xc5b355);const _0x19a8be=0x14,_0x175865=0xc8,_0x57a0b9=0x4,_0x28e631=0x5;function _0x2d584b(_0x103a39,_0x2a9d89){const _0x5f284b=_0x145278;let {radius:_0x1a569c,width:_0x27e759,height:_0x163489}=_0x2a9d89;_0x1a569c=_0x1a569c!=null?_0x1a569c:0x0,_0x27e759=_0x27e759!=null?_0x27e759:0x1e,_0x163489=_0x163489!=null?_0x163489:0x1e;let _0x4c9486=0x0,_0x59b924=0x0,_0x535bac=0x0;_0x4c9486=_0x59b924=_0x535bac=Math[_0x5f284b(0x481)](_0x1a569c,_0x27e759/0x2,_0x163489/0x2),_0x103a39['beginPath'](),_0x103a39[_0x5f284b(0x3ab)](_0x4c9486,0x0),_0x103a39['lineTo'](_0x27e759-_0x59b924,0x0),_0x103a39['arc'](_0x27e759-_0x59b924,_0x59b924,_0x59b924,Math['PI']*0x3/0x2,0x0,!0x1),_0x103a39[_0x5f284b(0x448)](_0x27e759,_0x163489-_0x535bac),_0x103a39[_0x5f284b(0x164)](_0x27e759-_0x535bac,_0x163489-_0x535bac,_0x535bac,0x0,Math['PI']/0x2,!0x1),_0x103a39[_0x5f284b(0x448)](0x0,_0x163489),_0x103a39[_0x5f284b(0x448)](0x0,_0x4c9486),_0x103a39['arc'](_0x4c9486,_0x4c9486,_0x4c9486,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x103a39[_0x5f284b(0x13f)](),_0x2a9d89[_0x5f284b(0x3e8)]&&(_0x103a39[_0x5f284b(0x1ae)](),_0x103a39[_0x5f284b(0x4db)]=_0x2a9d89[_0x5f284b(0x3e8)],_0x2a9d89['fillRule']==='evenodd'?_0x103a39[_0x5f284b(0x3e8)](_0x5f284b(0x131)):_0x103a39[_0x5f284b(0x3e8)](),_0x103a39['restore']());}class _0x481603 extends _0x577b7e[_0x145278(0x49c)]{constructor(_0x219d38,_0x575128){const _0x3069eb=_0x145278;super(_0x219d38,_0x575128),_0xbb867(this,_0x3069eb(0x1c7)),_0xbb867(this,'text'),(this[_0x3069eb(0x1c7)]=_0x575128==null?void 0x0:_0x575128[_0x3069eb(0x1c7)],this[_0x3069eb(0x235)]=_0x575128==null?void 0x0:_0x575128[_0x3069eb(0x235)]);}static['drawWith'](_0x2d0a1c,_0x692a1c){const _0x4c1363=_0x145278,{text:_0x5dc3d5,color:_0x989e09}=_0x692a1c;_0x2d0a1c[_0x4c1363(0x1ae)](),_0x2d0a1c['font']=_0x4c1363(0x132);const _0x208d51=_0x2d0a1c['measureText'](_0x5dc3d5)[_0x4c1363(0x50c)],_0x597108=Math['min'](_0x208d51+0x2*_0x57a0b9,_0x175865);_0x2d584b(_0x2d0a1c,{'height':_0x19a8be,'radius':0x4,'width':_0x597108,'fill':_0x989e09,'evented':!0x1}),_0x2d0a1c[_0x4c1363(0x4db)]='#FFF';const _0x27d9c5=_0x57a0b9,_0x1a5946=_0x19a8be-_0x28e631,_0x2dd0b9=_0x175865-0x2*_0x57a0b9;if(_0x208d51>_0x2dd0b9){let _0x2f3e9f='',_0x32c3d3=0x0;for(const _0x5818cc of _0x5dc3d5){const _0x58a62c=_0x2d0a1c[_0x4c1363(0x3a3)](_0x5818cc)[_0x4c1363(0x50c)];if(_0x32c3d3+_0x58a62c<=_0x2dd0b9-_0x2d0a1c['measureText'](_0x4c1363(0x418))[_0x4c1363(0x50c)])_0x2f3e9f+=_0x5818cc,_0x32c3d3+=_0x58a62c;else{_0x2f3e9f+='...';break;}}_0x2d0a1c[_0x4c1363(0x1ac)](_0x2f3e9f,_0x27d9c5,_0x1a5946);}else _0x2d0a1c[_0x4c1363(0x1ac)](_0x5dc3d5,_0x27d9c5,_0x1a5946);_0x2d0a1c[_0x4c1363(0x263)]();}[_0x145278(0x4e5)](_0x38adaf){const _0x392776=_0x145278;_0x481603[_0x392776(0x2c3)](_0x38adaf,this);}}const _0x2633ff=_0x145278(0x290),_0xca0151='collab-text-range-',_0x35e620='collab-rect-range-',_0x14eaa2=0x6,_0x234b5f=1.5,_0xf2087f=0x4,_0x1517c4=1.5,_0x26f5d9='rgba(255,\x20255,\x20255,\x200.01)';class _0xe9ff6{constructor(_0x283ba3,_0x521fef,_0x1555b9,_0x3ce0a8){const _0x2ea1c2=_0x145278;_0xbb867(this,'_shapes',[]),_0xbb867(this,'_anchor',null),_0xbb867(this,_0x2ea1c2(0x3aa),null),_0xbb867(this,_0x2ea1c2(0x13c),null),_0xbb867(this,_0x2ea1c2(0x20d),null),_0xbb867(this,_0x2ea1c2(0x3d6),null),(this[_0x2ea1c2(0x546)]=_0x283ba3,this['_scene']=_0x521fef,this[_0x2ea1c2(0x29c)]=_0x1555b9,this['_document']=_0x3ce0a8,this[_0x2ea1c2(0x255)]());}set[_0x145278(0x3fc)](_0x3f75f0){const _0x46971d=_0x145278;_0x3f75f0?(this['_anchorDot']&&this['_anchorDot'][_0x46971d(0x3a2)](),this['_textBubble']&&this[_0x46971d(0x3aa)][_0x46971d(0x303)]()):(this[_0x46971d(0x13c)]&&this[_0x46971d(0x13c)]['show'](),this[_0x46971d(0x3aa)]&&this[_0x46971d(0x3aa)][_0x46971d(0x3a2)]());}[_0x145278(0x4c1)](){const _0x2a19d5=_0x145278;for(const _0x3e9537 of this[_0x2a19d5(0x3c3)])_0x3e9537['dispose']();this[_0x2a19d5(0x3aa)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x2a19d5(0x4c1)](),this[_0x2a19d5(0x425)]&&this[_0x2a19d5(0x425)][_0x2a19d5(0x4c1)](),this[_0x2a19d5(0x3d6)]&&this[_0x2a19d5(0x3d6)]();}[_0x145278(0x255)](){const _0x2c397e=_0x145278;var _0x4d2c95;const {_docSkeleton:_0x5304f1,_document:_0x515326}=this,{color:_0x5d11ff,name:_0x3152e9,ranges:_0x32f693}=this[_0x2c397e(0x546)],_0x52096e=_0x515326[_0x2c397e(0x20e)](),{docsLeft:_0x401c5a,docsTop:_0x477572}=_0x52096e,_0x4020fa=new _0x3c060b[(_0x2c397e(0x14a))](_0x52096e,_0x5304f1);for(const {startOffset:_0x5f4ee8,endOffset:_0x68271a,collapsed:_0x22d855,isActive:_0x5b1320}of _0x32f693){const _0x2951fb=_0x5304f1['findNodePositionByCharIndex'](_0x5f4ee8),_0x7fa2da=_0x5304f1['findNodePositionByCharIndex'](_0x68271a);if(_0x5b1320){const {contentBoxPointGroup:_0x4e9baa}=_0x4020fa[_0x2c397e(0x362)](_0x7fa2da,_0x7fa2da);if(_0x4e9baa['length']===0x0)continue;this[_0x2c397e(0x2b2)](_0x5d11ff,_0x4e9baa,_0x401c5a,_0x477572,_0x3152e9),this['_eventUnsubscribe']=this[_0x2c397e(0x304)]();}if(!_0x22d855&&_0x2951fb&&_0x7fa2da){if(_0x3c060b[_0x2c397e(0x437)](_0x2951fb,_0x7fa2da)){const _0x626c48=new _0x3c060b[(_0x2c397e(0x555))](_0x52096e,_0x5304f1),{pointGroup:_0x369a3d}=(_0x4d2c95=_0x626c48['getRangePointData'](_0x2951fb,_0x7fa2da))!=null?_0x4d2c95:{};if(_0x369a3d==null||_0x369a3d[_0x2c397e(0x37e)]===0x0)continue;this[_0x2c397e(0x4e1)](_0x5d11ff,_0x369a3d,_0x401c5a,_0x477572);}else{const {contentBoxPointGroup:_0xd8e6b5}=_0x4020fa[_0x2c397e(0x362)](_0x2951fb,_0x7fa2da);if(_0xd8e6b5[_0x2c397e(0x37e)]===0x0)continue;this[_0x2c397e(0x2cf)](_0x5d11ff,_0xd8e6b5,_0x401c5a,_0x477572);}}}}['_drawAnchor'](_0x681c35,_0x4f3b80,_0x4c927c,_0x70651d,_0x351290){const _0x386c6a=_0x145278,_0x1ecaf4=this['_getAnchorBounding'](_0x4f3b80),{left:_0x5529ef,top:_0x46edd7,height:_0x486d2d}=_0x1ecaf4,_0xc10a0d=this[_0x386c6a(0x202)](),_0x56bf9b=_0x1517c4/_0xc10a0d,_0x5763d3=new _0x577b7e['Rect'](_0x2633ff+_0x349f19[_0x386c6a(0x4b1)][_0x386c6a(0x4d7)](_0x14eaa2),{'left':_0x5529ef+_0x4c927c-_0x56bf9b,'top':_0x46edd7+_0x70651d,'height':_0x486d2d,'width':_0x234b5f,'fill':_0x681c35||_0x577b7e[_0x386c6a(0x119)](_0x349f19[_0x386c6a(0x1a8)][_0x386c6a(0x316)],0x0),'strokeWidth':_0x56bf9b,'stroke':_0x26f5d9,'evented':!0x0});this[_0x386c6a(0x425)]=_0x5763d3,this['_scene'][_0x386c6a(0x450)](_0x5763d3,_0x3c060b[_0x386c6a(0x458)]);const _0xb52caa=new _0x577b7e['Rect'](_0x2633ff+_0x349f19['Tools'][_0x386c6a(0x4d7)](_0x14eaa2),{'left':_0x5529ef+_0x4c927c-_0x56bf9b,'top':_0x46edd7+_0x70651d-_0xf2087f/0x2,'height':_0xf2087f,'width':_0xf2087f,'fill':_0x681c35||_0x577b7e[_0x386c6a(0x119)](_0x349f19['COLORS'][_0x386c6a(0x316)],0x0),'strokeWidth':0x0,'stroke':_0x681c35||_0x577b7e[_0x386c6a(0x119)](_0x349f19[_0x386c6a(0x1a8)][_0x386c6a(0x316)],0x0),'evented':!0x1});this[_0x386c6a(0x13c)]=_0xb52caa,this['_scene'][_0x386c6a(0x450)](_0xb52caa,_0x3c060b[_0x386c6a(0x458)]);const _0x248262=new _0x481603(_0x2633ff+_0x349f19[_0x386c6a(0x4b1)][_0x386c6a(0x4d7)](_0x14eaa2),{'left':_0x5529ef+_0x4c927c-_0x56bf9b,'top':_0x46edd7+_0x70651d-_0x19a8be,'text':_0x351290,'color':_0x681c35});this[_0x386c6a(0x3aa)]=_0x248262,this[_0x386c6a(0x2fb)][_0x386c6a(0x450)](_0x248262,_0x3c060b[_0x386c6a(0x458)]),this[_0x386c6a(0x3fc)]=!0x1;}[_0x145278(0x304)](){const _0x14a922=_0x145278,_0x50130e=this['_anchor'][_0x14a922(0x252)][_0x14a922(0x2d7)](()=>{const _0x18e94c=_0x14a922;this[_0x18e94c(0x3fc)]=!0x0;}),_0xdb42fd=this[_0x14a922(0x425)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x256535=_0x14a922;this[_0x256535(0x20d)]&&clearTimeout(this['_hideTimer']),this[_0x256535(0x20d)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5d5265=_0x14a922;_0x50130e[_0x5d5265(0x42b)](),_0xdb42fd['unsubscribe']();};}[_0x145278(0x2cf)](_0x36be53,_0x4302d5,_0x3c1ff9,_0x19c228){const _0x1434fa=_0x145278,_0x3f720e=new _0x349f19[(_0x1434fa(0x176))](_0x36be53)[_0x1434fa(0x27e)](0.2)['toRgbString'](),_0x48f896=new _0x577b7e['RegularPolygon'](_0xca0151+_0x349f19[_0x1434fa(0x4b1)][_0x1434fa(0x4d7)](_0x14eaa2),{'pointsGroup':_0x4302d5,'fill':_0x3f720e||_0x577b7e['getColor'](_0x349f19['COLORS']['black'],0.2),'left':_0x3c1ff9,'top':_0x19c228,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1434fa(0x3c3)][_0x1434fa(0x276)](_0x48f896),this[_0x1434fa(0x2fb)]['addObject'](_0x48f896,_0x3c060b[_0x1434fa(0x458)]);}['_drawRectRange'](_0x43402a,_0x177e1b,_0x5961e2,_0x4d0b54){const _0x31d6aa=_0x145278,_0x127297=new _0x349f19['ColorKit'](_0x43402a)[_0x31d6aa(0x27e)](0.2)['toRgbString'](),_0x17abc6=new _0x577b7e[(_0x31d6aa(0x32e))](_0x35e620+_0x349f19['Tools'][_0x31d6aa(0x4d7)](_0x14eaa2),{'pointsGroup':_0x177e1b,'fill':_0x127297||_0x577b7e[_0x31d6aa(0x119)](_0x349f19[_0x31d6aa(0x1a8)][_0x31d6aa(0x316)],0.2),'left':_0x5961e2,'top':_0x4d0b54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x31d6aa(0x3c3)]['push'](_0x17abc6),this[_0x31d6aa(0x2fb)][_0x31d6aa(0x450)](_0x17abc6,_0x3c060b[_0x31d6aa(0x458)]);}[_0x145278(0x2d1)](_0x88e160){const _0x5e6c89=_0x88e160[0x0],_0x49090d=_0x5e6c89[0x0],_0x2a8b5b=_0x5e6c89[0x2],{x:_0x200952,y:_0x167309}=_0x49090d,{x:_0x133393,y:_0xe46683}=_0x2a8b5b;return{'left':_0x200952,'top':_0x167309,'width':_0x133393-_0x200952,'height':_0xe46683-_0x167309};}[_0x145278(0x202)](){const _0x312409=_0x145278,{scaleX:_0x32cc54,scaleY:_0x5a1752}=this[_0x312409(0x2fb)][_0x312409(0x178)]();return Math[_0x312409(0x527)](_0x32cc54,_0x5a1752);}}var _0x456d69=Object['defineProperty'],_0x343fac=Object[_0x145278(0x16d)],_0x1b2715=(_0xe03ace,_0x1e56af,_0x3b798a,_0x575d96)=>{const _0x28f5f6=_0x145278;for(var _0xc00c67=_0x575d96>0x1?void 0x0:_0x575d96?_0x343fac(_0x1e56af,_0x3b798a):_0x1e56af,_0x58e17b=_0xe03ace[_0x28f5f6(0x37e)]-0x1,_0x14cf5b;_0x58e17b>=0x0;_0x58e17b--)(_0x14cf5b=_0xe03ace[_0x58e17b])&&(_0xc00c67=(_0x575d96?_0x14cf5b(_0x1e56af,_0x3b798a,_0xc00c67):_0x14cf5b(_0xc00c67))||_0xc00c67);return _0x575d96&&_0xc00c67&&_0x456d69(_0x1e56af,_0x3b798a,_0xc00c67),_0xc00c67;},_0x5c98b0=(_0x2d0dbd,_0x395b34)=>(_0x1df628,_0xcd0995)=>_0x395b34(_0x1df628,_0xcd0995,_0x2d0dbd);let _0x12f634=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x187d8e,_0x524177,_0x36d82f,_0x1c489f,_0x44fe29){const _0x58db9b=_0x145278;super(),_0xbb867(this,'_cursorShapes',[]),_0xbb867(this,_0x58db9b(0x395),[]),(this[_0x58db9b(0x18a)]=_0x187d8e,this[_0x58db9b(0x42d)]=_0x524177,this[_0x58db9b(0x3eb)]=_0x36d82f,this[_0x58db9b(0x375)]=_0x1c489f,this[_0x58db9b(0x216)]=_0x44fe29,this[_0x58db9b(0x35a)]());}[_0x145278(0x35a)](){const _0x816ce0=_0x145278,_0x2dd80f=this[_0x816ce0(0x18a)][_0x816ce0(0x126)],_0x398ed9=this[_0x816ce0(0x42d)];this['disposeWithMe'](_0x1e13bb['combineLatest']([this[_0x816ce0(0x3eb)][_0x816ce0(0x180)](_0x2dd80f),this[_0x816ce0(0x216)][_0x816ce0(0x41d)]])['pipe'](_0x501e2e['map'](([_0x1e8fb7,_0x445774])=>({'skeleton':_0x398ed9['getSkeleton'](),'cursors':[..._0x1e8fb7[_0x816ce0(0x124)]()][_0x816ce0(0x121)](_0x582347=>({..._0x582347,'color':_0x445774[_0x582347['color']]}))})))[_0x816ce0(0x38f)](_0x4db183=>{const _0xfc0ff2=_0x816ce0;if(this[_0xfc0ff2(0x1cf)](),_0x4db183){const {skeleton:_0x114d4c,cursors:_0x57d947}=_0x4db183;this[_0xfc0ff2(0x17d)](_0x114d4c,_0x57d947);}})),this[_0x816ce0(0x2b8)](),this['_initCommandExecutedListener']();}[_0x145278(0x17d)](_0x30eb58,_0x4add61){const _0x157554=_0x145278,{scene:_0xd3bb4d,mainComponent:_0xf6d1bb}=this[_0x157554(0x18a)],_0x489ed4=_0x4add61[_0x157554(0x15d)](_0xfcebfe=>new _0xe9ff6(_0xfcebfe,_0xd3bb4d,_0x30eb58,_0xf6d1bb));this['_cursorShapes']=_0x489ed4,this[_0x157554(0x395)]=_0x4add61;}[_0x145278(0x128)](){const _0x23a1e6=_0x145278;this[_0x23a1e6(0x1cf)]();const {scene:_0x23783b,mainComponent:_0x325cea}=this[_0x23a1e6(0x18a)],_0x26f729=this[_0x23a1e6(0x42d)][_0x23a1e6(0x400)](),_0x4c4271=this[_0x23a1e6(0x395)][_0x23a1e6(0x15d)](_0x168795=>new _0xe9ff6(_0x168795,_0x23783b,_0x26f729,_0x325cea));this[_0x23a1e6(0x300)]=_0x4c4271;}['_removeCollabCursors'](){const _0x738d90=_0x145278;this[_0x738d90(0x300)][_0x738d90(0x256)](_0xc2b727=>_0xc2b727[_0x738d90(0x4c1)]()),this[_0x738d90(0x300)]=[];}[_0x145278(0x345)](){const _0x40cdcb=_0x145278,_0x257cf0=[_0x3c060b['SetDocZoomRatioOperation']['id']];this[_0x40cdcb(0x1e3)](this[_0x40cdcb(0x375)][_0x40cdcb(0x1f6)](_0x203b96=>{const _0x10c630=_0x40cdcb;_0x257cf0['includes'](_0x203b96['id'])&&_0x203b96[_0x10c630(0x23d)][_0x10c630(0x126)]===this['_context'][_0x10c630(0x126)]&&this[_0x10c630(0x128)]();}));}[_0x145278(0x2b8)](){const _0x55e463=_0x145278;this[_0x55e463(0x1e3)](_0x349f19[_0x55e463(0x557)](this['_context'][_0x55e463(0x489)][_0x55e463(0x271)])[_0x55e463(0x3f1)](_0x501e2e[_0x55e463(0x257)](_0x386a7f=>_0x386a7f[_0x55e463(0x389)]===_0x577b7e[_0x55e463(0x306)][_0x55e463(0x177)]),_0x501e2e[_0x55e463(0x483)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};_0x12f634=_0x1b2715([_0x5c98b0(0x1,_0x349f19[_0x145278(0x413)](_0x9fa27b[_0x145278(0x4b9)])),_0x5c98b0(0x2,_0x349f19['Inject'](_0xc5b355)),_0x5c98b0(0x3,_0x349f19[_0x145278(0x36e)]),_0x5c98b0(0x4,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x2e2)]))],_0x12f634);const _0x3ad3e8=0x1,_0x12dfc1=1.5;class _0x186ef2 extends _0x577b7e[_0x145278(0x49c)]{constructor(_0x94ba11,_0x4a1533){const _0x6c7052=_0x145278;super(_0x94ba11,_0x4a1533),_0xbb867(this,_0x6c7052(0x18c)),_0xbb867(this,_0x6c7052(0x249),!0x1),_0xbb867(this,'_range'),_0xbb867(this,'_name',''),_0xbb867(this,'_labelPosition','top'),_0xbb867(this,_0x6c7052(0x24f)),(_0x4a1533&&this[_0x6c7052(0x4a8)](_0x4a1533),this['onPointerEnter$'][_0x6c7052(0x2d7)](()=>this[_0x6c7052(0x4a8)]({'hovered':!0x0})),this[_0x6c7052(0x49b)][_0x6c7052(0x2d7)](()=>this[_0x6c7052(0x4a8)]({'hovered':!0x1})));}[_0x145278(0x4a8)](_0x3167a8){const _0x1e01ec=_0x145278;var _0x2b084c,_0x523645,_0x3d3012,_0x526f00,_0x12a4c5,_0x27e107;this[_0x1e01ec(0x18c)]=(_0x2b084c=_0x3167a8[_0x1e01ec(0x1c7)])!=null?_0x2b084c:this['_color'],this[_0x1e01ec(0x249)]=(_0x523645=_0x3167a8[_0x1e01ec(0x30c)])!=null?_0x523645:this[_0x1e01ec(0x249)],this[_0x1e01ec(0x503)]=(_0x3d3012=_0x3167a8['range'])!=null?_0x3d3012:this[_0x1e01ec(0x503)],this[_0x1e01ec(0x19d)]=(_0x526f00=_0x3167a8[_0x1e01ec(0x51c)])!=null?_0x526f00:this[_0x1e01ec(0x19d)],this[_0x1e01ec(0x1ee)]=(_0x12a4c5=_0x3167a8['labelPosition'])!=null?_0x12a4c5:this[_0x1e01ec(0x1ee)],this[_0x1e01ec(0x24f)]=(_0x27e107=_0x3167a8[_0x1e01ec(0x343)])!=null?_0x27e107:this[_0x1e01ec(0x24f)],this[_0x1e01ec(0x1ef)]({'width':_0x3167a8[_0x1e01ec(0x50c)],'height':_0x3167a8[_0x1e01ec(0x167)]});}[_0x145278(0x33f)](_0xb484bb){const _0x513a1f=_0x145278,{row:_0x7e87ed,column:_0x3a53ce}=_0xb484bb;if(_0x7e87ed>=this['_range'][_0x513a1f(0x402)]&&_0x7e87ed<=this[_0x513a1f(0x503)][_0x513a1f(0x1ba)]&&_0x3a53ce>=this[_0x513a1f(0x503)]['startColumn']&&_0x3a53ce<=this[_0x513a1f(0x503)][_0x513a1f(0x472)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x513a1f(0x4a8)]({'hovered':!0x1});}[_0x145278(0x346)](_0x3dcaa4){return!0x1;}[_0x145278(0x4e5)](_0xee015d){const _0x176e7c=_0x145278;_0x577b7e[_0x176e7c(0x16b)][_0x176e7c(0x2c3)](_0xee015d,{'width':this['width'],'height':this[_0x176e7c(0x167)],'strokeWidth':_0x12dfc1,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x176e7c(0x24f)]}),this[_0x176e7c(0x249)]&&(_0xee015d[_0x176e7c(0x1ae)](),_0xee015d['transform'](0x1,0x0,0x0,0x1,this[_0x176e7c(0x50c)],this[_0x176e7c(0x1ee)]===_0x176e7c(0x232)?0x0:-_0x19a8be),_0x481603[_0x176e7c(0x2c3)](_0xee015d,{'text':this[_0x176e7c(0x19d)],'color':this[_0x176e7c(0x18c)]}),_0xee015d[_0x176e7c(0x263)]());}}var _0x3586b1=Object[_0x145278(0x507)],_0x4b3b8a=Object['getOwnPropertyDescriptor'],_0x5f6b0=(_0x121942,_0x32569b,_0x1f7101,_0x407c6b)=>{const _0x206f01=_0x145278;for(var _0x37a3bf=_0x407c6b>0x1?void 0x0:_0x407c6b?_0x4b3b8a(_0x32569b,_0x1f7101):_0x32569b,_0x37c18d=_0x121942[_0x206f01(0x37e)]-0x1,_0x2b28f8;_0x37c18d>=0x0;_0x37c18d--)(_0x2b28f8=_0x121942[_0x37c18d])&&(_0x37a3bf=(_0x407c6b?_0x2b28f8(_0x32569b,_0x1f7101,_0x37a3bf):_0x2b28f8(_0x37a3bf))||_0x37a3bf);return _0x407c6b&&_0x37a3bf&&_0x3586b1(_0x32569b,_0x1f7101,_0x37a3bf),_0x37a3bf;},_0x3bd9b9=(_0x59d3cb,_0x4b074d)=>(_0x450871,_0x7f2517)=>_0x4b074d(_0x450871,_0x7f2517,_0x59d3cb);const _0x1b6561=0x1389;let _0x355d95=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x3ed5d6,_0x3d6d14,_0x2f2845,_0x49aed3){const _0xbcf421=_0x145278;super(),_0xbb867(this,_0xbcf421(0x395),new Set()),_0xbb867(this,_0xbcf421(0x506),null),(this[_0xbcf421(0x18a)]=_0x3ed5d6,this['_sheetSkeletonManagerService']=_0x3d6d14,this[_0xbcf421(0x3eb)]=_0x2f2845,this[_0xbcf421(0x216)]=_0x49aed3,this[_0xbcf421(0x35a)]());}[_0x145278(0x35a)](){const _0x32da4b=_0x145278;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x32da4b(0x3f1)](_0x501e2e[_0x32da4b(0x1bc)](this['dispose$']),_0x501e2e[_0x32da4b(0x44e)](_0x39bdd=>{const _0x9feec6=_0x32da4b;if(_0x39bdd){const _0xfc7719=_0x39bdd[_0x9feec6(0x21a)];return _0x1e13bb[_0x9feec6(0x47c)](this[_0x9feec6(0x3eb)][_0x9feec6(0x180)](this[_0x9feec6(0x18a)][_0x9feec6(0x126)]),this[_0x9feec6(0x216)][_0x9feec6(0x41d)])[_0x9feec6(0x3f1)](_0x501e2e[_0x9feec6(0x15d)](([_0x21147e,_0x2ee67e])=>{const _0x23f05c=_0x9feec6,_0x29c052=new Map();return _0x21147e[_0x23f05c(0x256)]((_0x3204e6,_0x2cfd7c)=>{const _0x5baf12=_0x23f05c;if(_0x3204e6[_0x5baf12(0x4b8)]===_0xfc7719){const _0x4adc52={..._0x3204e6};_0x4adc52['color']=_0x2ee67e[_0x3204e6[_0x5baf12(0x1c7)]],_0x29c052[_0x5baf12(0x253)](_0x2cfd7c,_0x4adc52);}}),{'skeleton':_0x39bdd,'cursors':_0x29c052};}));}return _0x1e13bb['of']({'skeleton':null,'cursors':new Map()});}))[_0x32da4b(0x38f)](({skeleton:_0x5935ab,cursors:_0x3a5ac7})=>{const _0x492a62=_0x32da4b;this[_0x492a62(0x1cf)](),_0x5935ab&&this[_0x492a62(0x17d)](_0x5935ab,_0x3a5ac7);}),this[_0x32da4b(0x25b)][_0x32da4b(0x2ff)][_0x32da4b(0x38f)](_0xc96666=>{const _0x563e5d=_0x32da4b;if(_0xc96666==null)return;const {skeleton:_0x52c718}=_0xc96666,{scene:_0x49115d}=this[_0x563e5d(0x18a)];_0x49115d[_0x563e5d(0x525)][_0x563e5d(0x2d7)](_0x349f19[_0x563e5d(0x3ef)](_0x5afaa7=>{const _0x48e679=_0x563e5d;var _0x20a656,_0x258878;const {offsetX:_0x3ed58c,offsetY:_0x452d4e}=_0x5afaa7,{x:_0x27ae7b,y:_0x2af7df}=_0x49115d[_0x48e679(0x51e)](_0x577b7e[_0x48e679(0x1e8)][_0x48e679(0x544)]([_0x3ed58c,_0x452d4e])),{scaleX:_0x5ed26a,scaleY:_0xf02837}=_0x49115d[_0x48e679(0x178)](),_0x50c171=_0x49115d[_0x48e679(0x14b)](_0xa0e5aa[_0x48e679(0x2ef)]['VIEW_MAIN']),_0x30e737=_0x49115d['getVpScrollXYInfoByPosToVp'](_0x577b7e[_0x48e679(0x1e8)][_0x48e679(0x544)]([_0x27ae7b,_0x2af7df]),_0x50c171),_0x390d85=_0x52c718[_0x48e679(0x1fa)](_0x3ed58c,_0x452d4e,_0x5ed26a,_0xf02837,_0x30e737);((_0x20a656=this[_0x48e679(0x506)])==null?void 0x0:_0x20a656['column'])===_0x390d85[_0x48e679(0x399)]&&((_0x258878=this['_lastPointer'])==null?void 0x0:_0x258878['row'])===_0x390d85[_0x48e679(0x185)]||this[_0x48e679(0x395)][_0x48e679(0x256)](_0x3def30=>{const _0x3376d0=_0x48e679;_0x3def30[_0x3376d0(0x33f)](_0x390d85);});},0x64));});}[_0x145278(0x17d)](_0x280554,_0x17c5a8){const _0x5c022d=_0x145278;var _0x48f7eb;const _0x525aae=(_0x48f7eb=this[_0x5c022d(0x25b)][_0x5c022d(0x1cb)]())==null?void 0x0:_0x48f7eb[_0x5c022d(0x2f6)];if(!_0x525aae)return;const _0x16708b=this[_0x5c022d(0x18e)]();if(!_0x16708b)return;this[_0x5c022d(0x395)]['forEach'](_0x2ce996=>{_0x2ce996['makeDirty']();});const {scene:_0x2909d0}=_0x16708b,_0x3c7474=_0x47b33f(Array[_0x5c022d(0x496)](_0x17c5a8['values']()))[_0x5c022d(0x15d)](_0x5f0b07=>{const _0xd8acff=_0x5c022d,{color:_0x5c28ba,range:_0x52edf8,name:_0x3bd142,selection:_0x45d2ce,sheetID:_0x2433a3}=_0x5f0b07,{startColumn:_0x430d99,startRow:_0x17deb0,endColumn:_0x7d82c8,endRow:_0x1474ae}=_0x52edf8,_0x2769cc=_0xa0e5aa[_0xd8acff(0x535)](_0x17deb0,_0x430d99,_0x2909d0,_0x525aae),_0x5dc43b=_0xa0e5aa[_0xd8acff(0x535)](_0x1474ae,_0x7d82c8,_0x2909d0,_0x525aae),{columnHeaderHeightAndMarginTop:_0x30047f}=_0x525aae,{startX:_0xa39475,startY:_0xaa8097}=_0x2769cc,{endX:_0x58a29b,endY:_0x4ac3e6}=_0x5dc43b,_0x4d8012=_0x58a29b-_0xa39475,_0x30b466=_0x4ac3e6-_0xaa8097,_0x3b79a6={'labelPosition':_0xaa8097-_0x30047f>=_0x19a8be?_0xd8acff(0x1ca):_0xd8acff(0x232),'sheetID':_0x2433a3,'range':_0x52edf8,'color':_0x5c28ba,'name':_0x3bd142,'selection':_0x45d2ce,'left':_0xa39475,'top':_0xaa8097,'width':_0x4d8012,'height':_0x30b466,'evented':!0x1,'zIndex':_0x1b6561};return new _0x186ef2(_0x3bd142,_0x3b79a6);});_0x2909d0[_0x5c022d(0x52e)](_0x3c7474,_0x3ad3e8),this['_cursors']=new Set(_0x3c7474);}[_0x145278(0x1cf)](){const _0x35be45=_0x145278;var _0x4b8923;(_0x4b8923=this['_cursors'])==null||_0x4b8923[_0x35be45(0x256)](_0x1f8bf6=>_0x1f8bf6['dispose']());}[_0x145278(0x18e)](){const _0x2d17a7=_0x145278;return _0xa0e5aa[_0x2d17a7(0x3ce)](this['_context']['unit'],this['_context']);}};_0x355d95=_0x5f6b0([_0x3bd9b9(0x1,_0x349f19[_0x145278(0x413)](_0xa0e5aa[_0x145278(0x2d9)])),_0x3bd9b9(0x2,_0x349f19['Inject'](_0xc5b355)),_0x3bd9b9(0x3,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x2e2)]))],_0x355d95);function _0x47b33f(_0x227813){const _0x551383=_0x145278,_0x462235=new Map();return _0x227813[_0x551383(0x256)](_0x4b614f=>{const _0x46ddd7=_0x551383;if(_0x462235[_0x46ddd7(0x2e6)](_0x4b614f['selection'])){const _0x567712=_0x462235['get'](_0x4b614f[_0x46ddd7(0x3f5)]);_0x567712['name']+=',\x20'+_0x4b614f[_0x46ddd7(0x51c)];}else _0x462235[_0x46ddd7(0x253)](_0x4b614f['selection'],_0x4b614f);}),Array[_0x551383(0x496)](_0x462235[_0x551383(0x124)]());}var _0x571064=function(){const _0x48741f=_0x145278;return _0x571064=Object[_0x48741f(0x3d3)]||function(_0xaf130e){const _0x2102fe=_0x48741f;for(var _0x3ad4d7,_0x421af9=0x1,_0x4baf99=arguments[_0x2102fe(0x37e)];_0x421af9<_0x4baf99;_0x421af9++){_0x3ad4d7=arguments[_0x421af9];for(var _0x4647a2 in _0x3ad4d7)Object[_0x2102fe(0x443)][_0x2102fe(0x321)]['call'](_0x3ad4d7,_0x4647a2)&&(_0xaf130e[_0x4647a2]=_0x3ad4d7[_0x4647a2]);}return _0xaf130e;},_0x571064[_0x48741f(0x26c)](this,arguments);},_0x2b81a0=function(_0xe56da2,_0x494ec3){const _0x265bc2=_0x145278;var _0x48c09b={};for(var _0x207e9e in _0xe56da2)Object[_0x265bc2(0x443)][_0x265bc2(0x321)][_0x265bc2(0x54a)](_0xe56da2,_0x207e9e)&&_0x494ec3['indexOf'](_0x207e9e)<0x0&&(_0x48c09b[_0x207e9e]=_0xe56da2[_0x207e9e]);if(_0xe56da2!=null&&typeof Object['getOwnPropertySymbols']==_0x265bc2(0x262)){for(var _0x200e7a=0x0,_0x207e9e=Object[_0x265bc2(0x508)](_0xe56da2);_0x200e7a<_0x207e9e['length'];_0x200e7a++)_0x494ec3[_0x265bc2(0x404)](_0x207e9e[_0x200e7a])<0x0&&Object['prototype'][_0x265bc2(0x25a)][_0x265bc2(0x54a)](_0xe56da2,_0x207e9e[_0x200e7a])&&(_0x48c09b[_0x207e9e[_0x200e7a]]=_0xe56da2[_0x207e9e[_0x200e7a]]);}return _0x48c09b;},_0x2e275b=_0x385d1d[_0x145278(0x374)](function(_0x1a1977,_0x355a0f){const _0x3b781c=_0x145278;var _0x380f12=_0x1a1977['icon'],_0x677afd=_0x1a1977['id'],_0x34a129=_0x1a1977[_0x3b781c(0x4e4)],_0x194667=_0x1a1977['extend'],_0x54ce59=_0x2b81a0(_0x1a1977,[_0x3b781c(0x414),'id','className',_0x3b781c(0x3ec)]),_0x46640e='univerjs-icon\x20univerjs-icon-'[_0x3b781c(0x411)](_0x677afd,'\x20')[_0x3b781c(0x411)](_0x34a129||'')[_0x3b781c(0x4dd)](),_0x334249=_0x385d1d[_0x3b781c(0x238)]('_'['concat'](_0x387b2d()));return _0x307a72(_0x380f12,''['concat'](_0x677afd),{'defIds':_0x380f12[_0x3b781c(0x328)],'idSuffix':_0x334249[_0x3b781c(0x48c)]},_0x571064({'ref':_0x355a0f,'className':_0x46640e},_0x54ce59),_0x194667);});function _0x307a72(_0x389ec0,_0x2a7cce,_0xa7a471,_0x4e05db,_0x8036d9){const _0x3379b5=_0x145278;return _0x385d1d[_0x3379b5(0x495)](_0x389ec0['tag'],_0x571064(_0x571064({'key':_0x2a7cce},_0x1d23ed(_0x389ec0,_0xa7a471,_0x8036d9)),_0x4e05db),(_0x6a55b2(_0x389ec0,_0xa7a471)[_0x3379b5(0x43a)]||[])[_0x3379b5(0x15d)](function(_0x14410c,_0x2dbe23){const _0x158d34=_0x3379b5;return _0x307a72(_0x14410c,''[_0x158d34(0x411)](_0x2a7cce,'-')[_0x158d34(0x411)](_0x389ec0[_0x158d34(0x319)],'-')[_0x158d34(0x411)](_0x2dbe23),_0xa7a471,void 0x0,_0x8036d9);}));}function _0x1d23ed(_0x5efdda,_0x391629,_0x453c18){const _0x278b2b=_0x145278;var _0x48aa14=_0x571064({},_0x5efdda[_0x278b2b(0x2a9)]);_0x453c18!=null&&_0x453c18[_0x278b2b(0x2c0)]&&_0x48aa14[_0x278b2b(0x3e8)]==='colorChannel1'&&(_0x48aa14['fill']=_0x453c18[_0x278b2b(0x2c0)]);var _0x517a12=_0x391629[_0x278b2b(0x328)];return!_0x517a12||_0x517a12['length']===0x0||(_0x5efdda['tag']==='use'&&_0x48aa14[_0x278b2b(0x1c8)]&&(_0x48aa14['xlink:href']=_0x48aa14[_0x278b2b(0x1c8)]+_0x391629[_0x278b2b(0x46b)]),Object['entries'](_0x48aa14)[_0x278b2b(0x256)](function(_0x4f1c22){const _0x287fbb=_0x278b2b;var _0xd329b9=_0x4f1c22[0x0],_0x55cec9=_0x4f1c22[0x1];typeof _0x55cec9==_0x287fbb(0x1eb)&&(_0x48aa14[_0xd329b9]=_0x55cec9['replace'](/url\(#(.*)\)/,'url(#$1'[_0x287fbb(0x411)](_0x391629[_0x287fbb(0x46b)],')')));})),_0x48aa14;}function _0x6a55b2(_0x1941e8,_0x55b18a){const _0x315b7e=_0x145278;var _0x344f95,_0x24d593=_0x55b18a[_0x315b7e(0x328)];return!_0x24d593||_0x24d593[_0x315b7e(0x37e)]===0x0?_0x1941e8:_0x1941e8['tag']===_0x315b7e(0x33b)&&(!((_0x344f95=_0x1941e8[_0x315b7e(0x43a)])===null||_0x344f95===void 0x0)&&_0x344f95[_0x315b7e(0x37e)])?_0x571064(_0x571064({},_0x1941e8),{'children':_0x1941e8['children'][_0x315b7e(0x15d)](function(_0x617f70){const _0xc0949=_0x315b7e;return typeof _0x617f70[_0xc0949(0x2a9)]['id']==_0xc0949(0x1eb)&&_0x24d593&&_0x24d593['indexOf'](_0x617f70[_0xc0949(0x2a9)]['id'])>-0x1?_0x571064(_0x571064({},_0x617f70),{'attrs':_0x571064(_0x571064({},_0x617f70[_0xc0949(0x2a9)]),{'id':_0x617f70[_0xc0949(0x2a9)]['id']+_0x55b18a[_0xc0949(0x46b)]})}):_0x617f70;})}):_0x1941e8;}function _0x387b2d(){const _0x6ada86=_0x145278;return Math[_0x6ada86(0x45d)]()[_0x6ada86(0x2ad)](0x24)[_0x6ada86(0x1fc)](0x2,0x8);}_0x2e275b[_0x145278(0x4c9)]=_0x145278(0x492);var _0x25c145={'tag':_0x145278(0x204),'attrs':{'fill':_0x145278(0x4f0),'viewBox':_0x145278(0x4b2),'width':_0x145278(0x39a),'height':_0x145278(0x39a)},'children':[{'tag':'g','attrs':{'clipPath':_0x145278(0x22c)},'children':[{'tag':_0x145278(0x35f),'attrs':{'stroke':_0x145278(0x3b0),'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':_0x145278(0x1e2),'strokeLinejoin':_0x145278(0x1e2),'strokeWidth':1.2}}]},{'tag':_0x145278(0x33b),'attrs':{},'children':[{'tag':_0x145278(0x36f),'attrs':{'id':_0x145278(0x379)},'children':[{'tag':'path','attrs':{'fill':_0x145278(0x2c9),'d':_0x145278(0x454)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x35ddaf=_0x385d1d[_0x145278(0x374)](function(_0x3c0fff,_0x27e930){const _0x35c25a=_0x145278;return _0x385d1d[_0x35c25a(0x495)](_0x2e275b,Object[_0x35c25a(0x3d3)]({},_0x3c0fff,{'id':_0x35c25a(0x4f2),'ref':_0x27e930,'icon':_0x25c145}));});_0x35ddaf[_0x145278(0x4c9)]=_0x145278(0x342);var _0x17107a={'tag':_0x145278(0x204),'attrs':{'fill':_0x145278(0x4f0),'viewBox':_0x145278(0x3f4),'width':_0x145278(0x39a),'height':_0x145278(0x39a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x145278(0x3b0),'d':_0x145278(0x275),'strokeLinecap':_0x145278(0x1e2),'strokeLinejoin':_0x145278(0x1e2),'strokeWidth':1.2}}]},{'tag':_0x145278(0x33b),'attrs':{},'children':[{'tag':_0x145278(0x36f),'attrs':{'id':_0x145278(0x4c3)},'children':[{'tag':_0x145278(0x35f),'attrs':{'fill':_0x145278(0x2c9),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x145278(0x4c3)]},_0x187f4f=_0x385d1d[_0x145278(0x374)](function(_0x36dcbb,_0x5eeda8){const _0x295a55=_0x145278;return _0x385d1d[_0x295a55(0x495)](_0x2e275b,Object[_0x295a55(0x3d3)]({},_0x36dcbb,{'id':_0x295a55(0x3a4),'ref':_0x5eeda8,'icon':_0x17107a}));});_0x187f4f[_0x145278(0x4c9)]=_0x145278(0x500);function _0x1fd24c(_0x4aa343){const _0x1409a8=_0x145278;var _0x291992,_0x214805,_0x227e8f='';if(typeof _0x4aa343==_0x1409a8(0x1eb)||typeof _0x4aa343==_0x1409a8(0x258))_0x227e8f+=_0x4aa343;else{if(typeof _0x4aa343=='object'){if(Array['isArray'](_0x4aa343)){var _0x345e83=_0x4aa343[_0x1409a8(0x37e)];for(_0x291992=0x0;_0x291992<_0x345e83;_0x291992++)_0x4aa343[_0x291992]&&(_0x214805=_0x1fd24c(_0x4aa343[_0x291992]))&&(_0x227e8f&&(_0x227e8f+='\x20'),_0x227e8f+=_0x214805);}else{for(_0x214805 in _0x4aa343)_0x4aa343[_0x214805]&&(_0x227e8f&&(_0x227e8f+='\x20'),_0x227e8f+=_0x214805);}}}return _0x227e8f;}function _0x107aba(){const _0x19c78e=_0x145278;for(var _0x6cbfac,_0x3911c4,_0x2c3f5f=0x0,_0x24c277='',_0x29c826=arguments[_0x19c78e(0x37e)];_0x2c3f5f<_0x29c826;_0x2c3f5f++)(_0x6cbfac=arguments[_0x2c3f5f])&&(_0x3911c4=_0x1fd24c(_0x6cbfac))&&(_0x24c277&&(_0x24c277+='\x20'),_0x24c277+=_0x3911c4);return _0x24c277;}const _0x262b88={'onlineStatusIcon':_0x145278(0x542),'onlineStatusTitle':_0x145278(0x28c),'onlineStatus':_0x145278(0x3c6),'online':_0x145278(0x293),'offline':_0x145278(0x219)};function _0x489d7b(_0x3e1814){const _0x2d9f98=_0x145278;switch(_0x3e1814){case _0xfe35ac[_0x2d9f98(0x14d)]:return _0x2d9f98(0x46e);case _0xfe35ac['CONFLICT']:return _0x2d9f98(0x3c1);case _0xfe35ac[_0x2d9f98(0x449)]:return'collabStatus.fetchMiss';case _0xfe35ac[_0x2d9f98(0x27d)]:return _0x2d9f98(0x12b);case _0xfe35ac[_0x2d9f98(0x520)]:case _0xfe35ac['AWAITING_WITH_PENDING']:return _0x2d9f98(0x2f5);case _0xfe35ac[_0x2d9f98(0x376)]:case _0xfe35ac[_0x2d9f98(0x430)]:return _0x2d9f98(0x25d);}}function _0x5c616d(_0x301579){const _0x3a4940=_0x145278,{status$:_0x1834bc}=_0x301579,_0x384d0a=_0x5b624f[_0x3a4940(0x1df)](_0x1834bc,_0xfe35ac[_0x3a4940(0x27d)]),_0x2e0d95=_0x349f19['useDependency'](_0x349f19['LocaleService']),_0x525984=_0x349f19['useDependency'](_0x3b531e[_0x3a4940(0x21f)]),_0xd212f=_0x384d0a!==_0xfe35ac[_0x3a4940(0x14d)],_0x1315e5=_0x2e0d95['t'](_0x489d7b(_0x384d0a)),_0x5b823a=_0x107aba(_0x262b88[_0x3a4940(0x25e)],{[_0x262b88[_0x3a4940(0x4a5)]]:_0xd212f,[_0x262b88['offline']]:!_0xd212f}),_0x295f67=_0xd212f?_0x385d1d[_0x3a4940(0x495)](_0x187f4f,null):_0x385d1d['createElement'](_0x35ddaf,null),_0x2ed136=_0x385d1d['useCallback'](()=>{_0xd212f||_0x525984['reconnect']();},[_0xd212f,_0x525984]);function _0x4752a5(){const _0x3625ba=_0x3a4940;return _0x385d1d[_0x3625ba(0x495)](_0x3625ba(0x2f4),{'className':_0x5b823a,'onClick':_0x2ed136},_0x385d1d[_0x3625ba(0x495)]('div',{'className':_0x262b88['onlineStatusIcon']},_0x295f67),_0x385d1d['createElement'](_0x3625ba(0x2f4),{'className':_0x262b88[_0x3625ba(0x4ca)]},_0x1315e5));}return _0xd212f?_0x4752a5():_0x385d1d['createElement'](_0x806671['Tooltip'],{'title':_0x2e0d95['t'](_0x3a4940(0x4d3))},_0x4752a5());}var _0xa6e92=Object[_0x145278(0x507)],_0x48c627=Object[_0x145278(0x16d)],_0x4fe360=(_0x59d45e,_0x34b1f3,_0x3ccb69,_0x16259a)=>{const _0xbfbcc0=_0x145278;for(var _0x285a6f=_0x16259a>0x1?void 0x0:_0x16259a?_0x48c627(_0x34b1f3,_0x3ccb69):_0x34b1f3,_0x68bae0=_0x59d45e[_0xbfbcc0(0x37e)]-0x1,_0x317e73;_0x68bae0>=0x0;_0x68bae0--)(_0x317e73=_0x59d45e[_0x68bae0])&&(_0x285a6f=(_0x16259a?_0x317e73(_0x34b1f3,_0x3ccb69,_0x285a6f):_0x317e73(_0x285a6f))||_0x285a6f);return _0x16259a&&_0x285a6f&&_0xa6e92(_0x34b1f3,_0x3ccb69,_0x285a6f),_0x285a6f;},_0x345229=(_0x4534a9,_0x577f69)=>(_0x281470,_0x361e65)=>_0x577f69(_0x281470,_0x361e65,_0x4534a9);_0x3b531e[_0x145278(0x435)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x4dc4b4,_0x9aabe,_0x513d32,_0x2c72ec){const _0x59fdb9=_0x145278;super(),_0xbb867(this,'_status$',new _0x1e13bb[(_0x59fdb9(0x40f))](_0xfe35ac[_0x59fdb9(0x27d)])),(this[_0x59fdb9(0x31f)]=_0x4dc4b4,this[_0x59fdb9(0x19e)]=_0x9aabe,this[_0x59fdb9(0x22d)]=_0x513d32,this[_0x59fdb9(0x1aa)]=_0x2c72ec,this[_0x59fdb9(0x125)](),this[_0x59fdb9(0x14c)]());}['_initStatusListener'](){const _0x579885=_0x145278;this[_0x579885(0x1e3)](this[_0x579885(0x31f)][_0x579885(0x37c)][_0x579885(0x3f1)](_0x1e13bb[_0x579885(0x44e)](()=>{const _0x1d06d1=_0x579885,_0x39dc55=this[_0x1d06d1(0x31f)]['getFocusedUnit']();return _0x39dc55?this[_0x1d06d1(0x1aa)][_0x1d06d1(0x380)](_0x39dc55[_0x1d06d1(0x453)]()):_0x1e13bb['of'](null);}),_0x1e13bb[_0x579885(0x44e)](_0x4df2cd=>_0x4df2cd?_0x4df2cd[_0x579885(0x4fd)]:_0x1e13bb['of'](_0xfe35ac['NOT_COLLAB'])))['subscribe'](_0x264b49=>{const _0x1114d6=_0x579885;this[_0x1114d6(0x15f)][_0x1114d6(0x155)](_0x264b49);}));}[_0x145278(0x125)](){const _0x49c094=_0x145278;this[_0x49c094(0x1e3)](this[_0x49c094(0x19e)]['registerComponent'](_0x5b624f[_0x49c094(0x332)][_0x49c094(0x3b8)],()=>_0x349f19[_0x49c094(0x1b8)](_0x12de18({'status$':this['_status$'][_0x49c094(0x4de)]()}),this[_0x49c094(0x22d)])));}},_0x3b531e[_0x145278(0x435)]=_0x4fe360([_0x345229(0x0,_0x349f19[_0x145278(0x501)]),_0x345229(0x1,_0x5b624f[_0x145278(0x432)]),_0x345229(0x2,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x345229(0x3,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x446)]))],_0x3b531e['DesktopCollaborationStatusDisplayController']);function _0x12de18(_0x433283){const {status$:_0x5e29bd}=_0x433283;return function(){return _0x385d1d['createElement'](_0x5c616d,{'status$':_0x5e29bd});};}const _0x31b342=_0x349f19['createIdentifier'](_0x145278(0x24c));var _0x3c95b8=Object['defineProperty'],_0x4cf587=Object[_0x145278(0x16d)],_0x4115d5=(_0x5d8641,_0x4d185d,_0x4c1f01,_0x3f7d3c)=>{const _0x59734a=_0x145278;for(var _0x54953d=_0x3f7d3c>0x1?void 0x0:_0x3f7d3c?_0x4cf587(_0x4d185d,_0x4c1f01):_0x4d185d,_0x22a73c=_0x5d8641[_0x59734a(0x37e)]-0x1,_0x34ce3c;_0x22a73c>=0x0;_0x22a73c--)(_0x34ce3c=_0x5d8641[_0x22a73c])&&(_0x54953d=(_0x3f7d3c?_0x34ce3c(_0x4d185d,_0x4c1f01,_0x54953d):_0x34ce3c(_0x54953d))||_0x54953d);return _0x3f7d3c&&_0x54953d&&_0x3c95b8(_0x4d185d,_0x4c1f01,_0x54953d),_0x54953d;},_0x2448e1=(_0x236341,_0x5959c2)=>(_0x19122f,_0x2e23b9)=>_0x5959c2(_0x19122f,_0x2e23b9,_0x236341);_0x3b531e[_0x145278(0x3c4)]=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x49f566,_0x3cdf02,_0x697fa9,_0x5e2fbd,_0x589724,_0x1d2528){const _0x4d85aa=_0x145278;super(),this[_0x4d85aa(0x163)]=_0x49f566,this[_0x4d85aa(0x385)]=_0x3cdf02,this[_0x4d85aa(0x375)]=_0x697fa9,this[_0x4d85aa(0x3fb)]=_0x5e2fbd,this[_0x4d85aa(0x134)]=_0x589724,_0x1d2528?_0x1d2528==null||_0x1d2528[_0x4d85aa(0x1f2)]()[_0x4d85aa(0x210)](()=>this[_0x4d85aa(0x35a)]()):(this[_0x4d85aa(0x385)]['debug']('[DataLoaderController]',_0x4d85aa(0x4ac)),this[_0x4d85aa(0x35a)]());}async[_0x145278(0x35a)](){const _0x38ed89=_0x145278,_0x263b69=this['_urlService'][_0x38ed89(0x3f3)](_0x38ed89(0x182)),_0x4f88fa=this['_urlService'][_0x38ed89(0x3f3)](_0x38ed89(0x389));if(!_0x263b69||!_0x4f88fa){this[_0x38ed89(0x385)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4f88fa)){case _0x5b5eaf['UNIVER_SHEET']:{const _0x42e64e=await this['_loadSheet'](_0x263b69);this['_setupSubUnitSync'](_0x42e64e);break;}case _0x5b5eaf['UNIVER_DOC']:{await this[_0x38ed89(0x147)](_0x263b69);break;}default:{this[_0x38ed89(0x385)]['error'](_0x38ed89(0x41a),_0x38ed89(0x44d));break;}}}async[_0x145278(0x31d)](_0x4043da){const _0x1491b2=_0x145278;await this[_0x1491b2(0x2fa)](_0x4043da),_0x4043da[_0x1491b2(0x168)][_0x1491b2(0x3f1)](_0x1e13bb[_0x1491b2(0x1bc)](this[_0x1491b2(0x115)]))[_0x1491b2(0x38f)](_0x26cb30=>{const _0x7ea07a=_0x1491b2;_0x26cb30&&this[_0x7ea07a(0x17c)](_0x26cb30);}),this[_0x1491b2(0x163)]['urlChange$'][_0x1491b2(0x3f1)](_0x1e13bb[_0x1491b2(0x1bc)](this['dispose$']))[_0x1491b2(0x38f)](()=>this[_0x1491b2(0x2fa)](_0x4043da));}[_0x145278(0x17c)](_0xd95323,_0x50e117=!0x1){const _0x433ba3=_0x145278,_0x20b894=this[_0x433ba3(0x163)][_0x433ba3(0x3f3)](_0x433ba3(0x3e1));_0xd95323[_0x433ba3(0x3f2)]()!==_0x20b894&&this['_urlService']['setParam'](_0x433ba3(0x3e1),_0xd95323[_0x433ba3(0x3f2)](),_0x50e117);}async[_0x145278(0x2fa)](_0xabefec){const _0x53eeba=_0x145278;var _0x4f7f26;const _0x31e4aa=this[_0x53eeba(0x163)]['getParam'](_0x53eeba(0x3e1));if(!_0x31e4aa||!_0xabefec[_0x53eeba(0x353)](_0x31e4aa)){const _0x212734=_0xabefec['getUnhiddenWorksheets']()[0x0],_0x25c2f1=_0xabefec['getSheetBySheetId'](_0x212734);if(!_0x25c2f1)return;this[_0x53eeba(0x17c)](_0x25c2f1,!0x0),await this[_0x53eeba(0x375)][_0x53eeba(0x3e9)](_0x4c7a32[_0x53eeba(0x36b)]['id'],{'unitId':_0xabefec[_0x53eeba(0x453)](),'subUnitId':_0x212734});return;}((_0x4f7f26=_0xabefec[_0x53eeba(0x1b2)]())==null?void 0x0:_0x4f7f26[_0x53eeba(0x3f2)]())!==_0x31e4aa&&await this[_0x53eeba(0x375)][_0x53eeba(0x3e9)](_0x4c7a32[_0x53eeba(0x36b)]['id'],{'unitId':_0xabefec['getUnitId'](),'subUnitId':_0x31e4aa});}async['_loadSheet'](_0x1eaaf8){const _0x5a47db=_0x145278;let _0x2c1123=0x0;const _0x33919c=await this['_localCacheService'][_0x5a47db(0x4dc)](_0x1eaaf8);return _0x33919c&&(_0x33919c[_0x5a47db(0x409)]||_0x33919c[_0x5a47db(0x4ad)][_0x5a47db(0x37e)]!==0x0)&&(_0x2c1123=_0x33919c['rev']),_0x2c1123===0x0&&this[_0x5a47db(0x385)][_0x5a47db(0x3e3)](_0x5a47db(0x41a),_0x5a47db(0x220)),this[_0x5a47db(0x134)][_0x5a47db(0x3c5)](_0x1eaaf8,_0x2c1123);}async['_loadDoc'](_0x3502eb){const _0x323e9e=_0x145278;let _0x638a6e=0x0;const _0x37936d=await this['_localCacheService'][_0x323e9e(0x4dc)](_0x3502eb);return _0x37936d&&(_0x37936d['awaitingChangeset']||_0x37936d[_0x323e9e(0x4ad)][_0x323e9e(0x37e)]!==0x0)&&(_0x638a6e=_0x37936d[_0x323e9e(0x261)]),_0x638a6e===0x0&&this[_0x323e9e(0x385)]['debug'](_0x323e9e(0x41a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x323e9e(0x134)]['loadDoc'](_0x3502eb,_0x638a6e);}},_0x3b531e[_0x145278(0x3c4)]=_0x4115d5([_0x2448e1(0x0,_0x31b342),_0x2448e1(0x1,_0x349f19['ILogService']),_0x2448e1(0x2,_0x349f19['ICommandService']),_0x2448e1(0x3,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x2448e1(0x4,_0x349f19[_0x145278(0x413)](_0x54555c['SnapshotService'])),_0x2448e1(0x5,_0x349f19[_0x145278(0x4f6)](_0x4ce572['IRemoteInstanceService']))],_0x3b531e['DataLoaderController']);var _0x558a5b=Object[_0x145278(0x507)],_0x432b32=Object[_0x145278(0x16d)],_0x5ac813=(_0x14ef41,_0x56ce20,_0x9738a3,_0x28a351)=>{for(var _0x3948e1=_0x28a351>0x1?void 0x0:_0x28a351?_0x432b32(_0x56ce20,_0x9738a3):_0x56ce20,_0x257a40=_0x14ef41['length']-0x1,_0x30e39d;_0x257a40>=0x0;_0x257a40--)(_0x30e39d=_0x14ef41[_0x257a40])&&(_0x3948e1=(_0x28a351?_0x30e39d(_0x56ce20,_0x9738a3,_0x3948e1):_0x30e39d(_0x3948e1))||_0x3948e1);return _0x28a351&&_0x3948e1&&_0x558a5b(_0x56ce20,_0x9738a3,_0x3948e1),_0x3948e1;},_0x294357=(_0x3b23e7,_0x58b3ba)=>(_0x24279d,_0x10619e)=>_0x58b3ba(_0x24279d,_0x10619e,_0x3b23e7);const _0x335144='DEFAULT_FILE_NAME',_0x413259=_0x145278(0x130);let _0x44f32b=class extends _0x349f19['Disposable']{constructor(_0x32603e,_0x3e56f6){const _0x244ac2=_0x145278;super(),this[_0x244ac2(0x31f)]=_0x32603e,this[_0x244ac2(0x28d)]=_0x3e56f6,this[_0x244ac2(0x35a)]();}[_0x145278(0x35a)](){const _0x24dc99=_0x145278;this[_0x24dc99(0x1e3)](this[_0x24dc99(0x31f)][_0x24dc99(0x37c)][_0x24dc99(0x38f)](()=>{const _0x4bd250=_0x24dc99;var _0x5ca9fe;const _0x1d45bc=this['_univerInstanceService'][_0x4bd250(0x2da)]();let _0x58fcb6=(_0x5ca9fe=this[_0x4bd250(0x28d)]['getConfig'](_0x335144))!=null?_0x5ca9fe:_0x413259;_0x1d45bc instanceof _0x349f19[_0x4bd250(0x2db)]&&(_0x58fcb6=_0x1d45bc[_0x4bd250(0x51c)]),document[_0x4bd250(0x548)]=_0x58fcb6;}));}};_0x44f32b=_0x5ac813([_0x294357(0x0,_0x349f19['IUniverInstanceService']),_0x294357(0x1,_0x349f19['IConfigService'])],_0x44f32b);var _0x3cef7f=Object[_0x145278(0x507)],_0x250a58=Object[_0x145278(0x16d)],_0x255c89=(_0x548a67,_0x3f7295,_0x4b31aa,_0x45e32b)=>{const _0x1dc848=_0x145278;for(var _0xe38905=_0x45e32b>0x1?void 0x0:_0x45e32b?_0x250a58(_0x3f7295,_0x4b31aa):_0x3f7295,_0xa9f882=_0x548a67[_0x1dc848(0x37e)]-0x1,_0x425fe7;_0xa9f882>=0x0;_0xa9f882--)(_0x425fe7=_0x548a67[_0xa9f882])&&(_0xe38905=(_0x45e32b?_0x425fe7(_0x3f7295,_0x4b31aa,_0xe38905):_0x425fe7(_0xe38905))||_0xe38905);return _0x45e32b&&_0xe38905&&_0x3cef7f(_0x3f7295,_0x4b31aa,_0xe38905),_0xe38905;},_0x5910f8=(_0x2961b6,_0x1b4373)=>(_0x4ae2c2,_0x146b8b)=>_0x1b4373(_0x4ae2c2,_0x146b8b,_0x2961b6);let _0x499e8e=class{constructor(_0x730f9a,_0x303ca1,_0x5d34e2){const _0x3a946c=_0x145278;this['_configService']=_0x730f9a,this[_0x3a946c(0x4be)]=_0x303ca1,this[_0x3a946c(0x4a0)]=_0x5d34e2,this[_0x3a946c(0x46c)]();}[_0x145278(0x46c)](){const _0x19e2f0=_0x145278;this[_0x19e2f0(0x4be)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3e4f65,_0x5bf1ae)=>_0x5bf1ae(_0x3e4f65)[_0x19e2f0(0x3f1)](_0x1e13bb[_0x19e2f0(0x1a9)](async _0x30640e=>{const _0x149cd3=_0x19e2f0,_0x20c6d1=_0x30640e;if(_0x20c6d1[_0x149cd3(0x465)]===0x191&&window[_0x149cd3(0x357)](this[_0x149cd3(0x4a0)]['t'](_0x149cd3(0x3a6)))){const _0x10e785=window[_0x149cd3(0x3a1)](window[_0x149cd3(0x4fb)][_0x149cd3(0x144)]);window[_0x149cd3(0x4fb)][_0x149cd3(0x144)]=this[_0x149cd3(0x40e)]()+_0x149cd3(0x339)+_0x10e785;}return _0x20c6d1;}))});}[_0x145278(0x40e)](){const _0x58c33c=_0x145278;var _0x8be53,_0x685d8f;const _0x9f5d8e=this[_0x58c33c(0x28d)][_0x58c33c(0x46f)](_0x3d2741),_0x24019f=this[_0x58c33c(0x28d)][_0x58c33c(0x46f)](_0x4ea523);return(_0x685d8f=(_0x8be53=_0x24019f==null?void 0x0:_0x24019f[_0x58c33c(0x53a)])!=null?_0x8be53:_0x9f5d8e)!=null?_0x685d8f:_0x7b342b;}};_0x499e8e=_0x255c89([_0x5910f8(0x0,_0x349f19['IConfigService']),_0x5910f8(0x1,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)])),_0x5910f8(0x2,_0x349f19['Inject'](_0x349f19[_0x145278(0x267)]))],_0x499e8e);var _0x13d8e0=Object[_0x145278(0x507)],_0x2c2216=Object[_0x145278(0x16d)],_0x1255ed=(_0x58db32,_0x2badcb,_0x347c27,_0x3c6257)=>{const _0x133d64=_0x145278;for(var _0x49c7a8=_0x3c6257>0x1?void 0x0:_0x3c6257?_0x2c2216(_0x2badcb,_0x347c27):_0x2badcb,_0x2e9780=_0x58db32[_0x133d64(0x37e)]-0x1,_0x57b3ed;_0x2e9780>=0x0;_0x2e9780--)(_0x57b3ed=_0x58db32[_0x2e9780])&&(_0x49c7a8=(_0x3c6257?_0x57b3ed(_0x2badcb,_0x347c27,_0x49c7a8):_0x57b3ed(_0x49c7a8))||_0x49c7a8);return _0x3c6257&&_0x49c7a8&&_0x13d8e0(_0x2badcb,_0x347c27,_0x49c7a8),_0x49c7a8;},_0x514b02=(_0x27b6d5,_0x52e63f)=>(_0x2cd4da,_0x1f5e44)=>_0x52e63f(_0x2cd4da,_0x1f5e44,_0x27b6d5);const _0x3bed12=_0x145278(0x285),_0x505d1d='/universer-api/authz';_0x3b531e[_0x145278(0x383)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x59f042,_0xf46ae9){const _0x36c9dc=_0x145278;super(),this[_0x36c9dc(0x259)]=_0x59f042,this['_configService']=_0xf46ae9,this[_0x36c9dc(0x23b)]();}[_0x145278(0x23b)](){const _0x387c9b=_0x145278,_0x633481=this;this[_0x387c9b(0x1e3)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x47193d[_0x387c9b(0x2f1)]({'isMatch'(_0x2ab17e){const _0x1d3442=_0x387c9b;var _0x1a4a28;if(_0x2ab17e[_0x1d3442(0x39d)]===_0x1d3442(0x4e3)&&((_0x1a4a28=_0x2ab17e[_0x1d3442(0x452)])!=null&&_0x1a4a28['body'])){const {objectID:_0x5921c7,objectType:_0x263890}=_0x2ab17e[_0x1d3442(0x452)][_0x1d3442(0x420)]||{};if(!_0x5921c7||_0x263890===void 0x0)return!0x1;const _0x45c06a=_0x633481[_0x1d3442(0x317)]()+'/'+_0x263890+'/object/'+_0x5921c7+'/allowed';if(_0x2ab17e[_0x1d3442(0x3be)]===_0x45c06a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xf1643f){const _0x5279af=_0x387c9b;var _0x2b65d5;return(_0x2b65d5=_0xf1643f[_0x5279af(0x452)])==null?void 0x0:_0x2b65d5[_0x5279af(0x420)];},'mergeParamsToRequest'(_0x55a802,_0x22e4e3){const _0x10d27e=_0x387c9b,_0xe0a18e=_0x633481[_0x10d27e(0x317)]()+'/-/object/-/batch_allowed',_0x3d44d1=_0x55a802[_0x10d27e(0x2b1)]((_0x427450,_0x342b7)=>{const _0x2bd97d=_0x10d27e,{unitID:_0x56b684,objectID:_0x39d8be,objectType:_0x22f9ed,actions:_0x9410c1}=_0x342b7;return _0x427450[_0x56b684]||(_0x427450[_0x56b684]={}),_0x427450[_0x56b684][_0x39d8be]||(_0x427450[_0x56b684][_0x39d8be]={'objectID':_0x39d8be,'objectType':_0x22f9ed,'actions':[]}),_0x427450[_0x56b684][_0x39d8be][_0x2bd97d(0x141)][_0x2bd97d(0x276)](..._0x9410c1),_0x427450;},{}),_0x5d34a1=[];for(const _0x2d0229 in _0x3d44d1)for(const _0x265f9f in _0x3d44d1[_0x2d0229]){const {actions:_0x2cc5ce,objectType:_0x27c2b7}=_0x3d44d1[_0x2d0229][_0x265f9f],_0x5f3a26=[...new Set(_0x2cc5ce)];_0x5d34a1[_0x10d27e(0x276)]({'unitID':_0x2d0229,'objectID':_0x265f9f,'objectType':_0x27c2b7,'actions':_0x5f3a26});}return new _0x47193d[(_0x10d27e(0x197))](_0x10d27e(0x4e3),_0xe0a18e,{'headers':_0x22e4e3[_0x10d27e(0x4bd)],'withCredentials':_0x22e4e3['withCredentials'],'responseType':_0x22e4e3[_0x10d27e(0x143)],'body':{'requests':_0x5d34a1}});}},{'distributeResult'(_0x34f6c9,_0x122643){const _0x4aba0e=_0x387c9b,{objectActions:_0x36bcbb}=_0x34f6c9;return _0x122643[_0x4aba0e(0x15d)](_0xb58552=>{const _0x577ad0=_0x4aba0e,{unitID:_0x59706e,objectID:_0x4fdff7,actions:_0x250e30}=_0xb58552,_0x2a36f2=_0x36bcbb[_0x577ad0(0x373)](_0x5b832d=>_0x5b832d[_0x577ad0(0x240)]===_0x59706e&&_0x5b832d['objectID']===_0x4fdff7),_0x874369=_0x250e30[_0x577ad0(0x15d)](_0x3dbbb7=>_0x2a36f2==null?void 0x0:_0x2a36f2[_0x577ad0(0x141)][_0x577ad0(0x373)](_0x396d5e=>_0x396d5e['action']===_0x3dbbb7))[_0x577ad0(0x257)](_0x31784f=>!!_0x31784f);return{'config':_0xb58552,'result':{'actions':_0x874369,'error':_0x34f6c9['error']}};});}})}));}[_0x145278(0x317)](){const _0xbc0f96=_0x145278;var _0x317195,_0x365661;const _0x35ae1a=this[_0xbc0f96(0x28d)]['getConfig'](_0x3bed12),_0x151ba6=this[_0xbc0f96(0x28d)][_0xbc0f96(0x46f)](_0x4ea523);return(_0x365661=(_0x317195=_0x151ba6==null?void 0x0:_0x151ba6['authzUrl'])!=null?_0x317195:_0x35ae1a)!=null?_0x365661:_0x505d1d;}async[_0x145278(0x169)](_0x95db13){const _0x1ebe1=_0x145278,_0x3634a0=this[_0x1ebe1(0x317)]()+'/'+_0x95db13['objectType']+_0x1ebe1(0x38a);return(await this[_0x1ebe1(0x259)][_0x1ebe1(0x1e6)](_0x3634a0,{'body':_0x95db13}))[_0x1ebe1(0x420)]['objectID']||'';}async[_0x145278(0x47a)](_0x14c91e){const _0x4d7ae8=_0x145278,_0x2541ee=this[_0x4d7ae8(0x317)]()+'/-/object/list';return(await this['_HTTPService']['post'](_0x2541ee,{'body':_0x14c91e}))['body'][_0x4d7ae8(0x4f9)];}async[_0x145278(0x4f7)](_0x122382){const _0x22d040=_0x145278,_0x2f2bd4=this[_0x22d040(0x317)]()+'/'+_0x122382['objectType']+_0x22d040(0x52d)+_0x122382[_0x22d040(0x2a3)];await this['_HTTPService'][_0x22d040(0x378)](_0x2f2bd4,{'body':_0x122382});}async[_0x145278(0x278)](_0x3e0a94){const _0x19ec9a=_0x145278,_0x20fc05=this[_0x19ec9a(0x317)]()+'/'+_0x3e0a94[_0x19ec9a(0x40a)]+_0x19ec9a(0x52d)+_0x3e0a94['objectID']+_0x19ec9a(0x528);return(await this[_0x19ec9a(0x259)][_0x19ec9a(0x1e6)](_0x20fc05,{'body':_0x3e0a94}))[_0x19ec9a(0x420)][_0x19ec9a(0x141)];}async[_0x145278(0x165)](_0x45f474){const _0x19aa37=_0x145278,_0x3ace52=this[_0x19aa37(0x317)]()+_0x19aa37(0x1e9);return(await this['_HTTPService']['post'](_0x3ace52,{'body':{'requests':_0x45f474}}))[_0x19aa37(0x420)][_0x19aa37(0x498)];}async[_0x145278(0x138)](_0x2d7ea6){const _0x47a529=_0x145278,_0x41ec69=this[_0x47a529(0x317)]()+'/'+_0x2d7ea6[_0x47a529(0x40a)]+_0x47a529(0x43c),_0x37153e=await this[_0x47a529(0x259)][_0x47a529(0x1e6)](_0x41ec69,{'body':_0x2d7ea6});return{'roles':_0x37153e[_0x47a529(0x420)][_0x47a529(0x29a)],'actions':_0x37153e[_0x47a529(0x420)][_0x47a529(0x141)]};}async[_0x145278(0x1f0)](_0x1044da){const _0x35adc7=_0x145278,_0x45e130=this[_0x35adc7(0x317)]()+_0x35adc7(0x286);await this['_HTTPService'][_0x35adc7(0x4f4)](_0x45e130,{'params':{'collaboratorID':_0x1044da[_0x35adc7(0x368)],'objectID':_0x1044da[_0x35adc7(0x2a3)],'unitID':_0x1044da['unitID']}});}async[_0x145278(0x464)](_0x3cdaf7){const _0x7452fd=_0x145278,_0x46db5b=this[_0x7452fd(0x317)]()+_0x7452fd(0x286);await this[_0x7452fd(0x259)][_0x7452fd(0x2cc)](_0x46db5b,{'body':_0x3cdaf7});}async[_0x145278(0x15e)](_0x1a8c09){const _0x4ee32b=_0x145278,_0x52b894=this[_0x4ee32b(0x317)]()+_0x4ee32b(0x286);await this[_0x4ee32b(0x259)]['post'](_0x52b894,{'body':_0x1a8c09});}async[_0x145278(0x160)](_0x2d195c){const _0x4f7ed7=_0x145278,_0x45611c=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x4f7ed7(0x259)][_0x4f7ed7(0x4b6)](_0x45611c,{'params':{'objectID':_0x2d195c[_0x4f7ed7(0x2a3)],'unitID':_0x2d195c['unitID']}}))[_0x4f7ed7(0x420)][_0x4f7ed7(0x191)];}async[_0x145278(0x550)](_0x173768){const _0x362575=_0x145278,_0x23faef=this['_getAPIPrefixPath']()+_0x362575(0x286);await this[_0x362575(0x259)][_0x362575(0x378)](_0x23faef,{'body':_0x173768});}},_0x3b531e[_0x145278(0x383)]=_0x1255ed([_0x514b02(0x0,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)])),_0x514b02(0x1,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x424)]))],_0x3b531e['AuthzIoHttpService']);var _0x2860e6=Object[_0x145278(0x507)],_0x14f299=Object['getOwnPropertyDescriptor'],_0x58ada3=(_0x203759,_0x3193a3,_0x750a9b,_0x811a92)=>{const _0x532ebb=_0x145278;for(var _0x731249=_0x811a92>0x1?void 0x0:_0x811a92?_0x14f299(_0x3193a3,_0x750a9b):_0x3193a3,_0x30267d=_0x203759[_0x532ebb(0x37e)]-0x1,_0x7c9a8c;_0x30267d>=0x0;_0x30267d--)(_0x7c9a8c=_0x203759[_0x30267d])&&(_0x731249=(_0x811a92?_0x7c9a8c(_0x3193a3,_0x750a9b,_0x731249):_0x7c9a8c(_0x731249))||_0x731249);return _0x811a92&&_0x731249&&_0x2860e6(_0x3193a3,_0x750a9b,_0x731249),_0x731249;},_0x222d7b=(_0x5d1755,_0x3d0df6)=>(_0x3d8121,_0x41d0ea)=>_0x3d0df6(_0x3d8121,_0x41d0ea,_0x5d1755);let _0x4f3ef6=class{constructor(_0x32f92e){const _0x5447a7=_0x145278;this[_0x5447a7(0x4be)]=_0x32f92e,this[_0x5447a7(0x1b0)]();}[_0x145278(0x1b0)](){const _0x28e812=_0x145278;this[_0x28e812(0x4be)]['registerHTTPInterceptor']({'interceptor':(_0x4f74f4,_0x232b19)=>{const _0x19a100=_0x28e812,_0x300d21=_0x4f74f4[_0x19a100(0x4bd)],_0x48fede=_0x5bb22a[_0x19a100(0x2ed)]();return _0x48fede&&_0x300d21[_0x19a100(0x253)](_0x19a100(0x32b),_0x48fede),_0x232b19(_0x4f74f4);}});}};_0x4f3ef6=_0x58ada3([_0x222d7b(0x0,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)]))],_0x4f3ef6);var _0x4f61c3=Object[_0x145278(0x507)],_0x4ce4dc=Object[_0x145278(0x16d)],_0x2887e3=(_0x3dc3d2,_0x3838f5,_0x1985de,_0x4d7dc7)=>{for(var _0x20e40a=_0x4d7dc7>0x1?void 0x0:_0x4d7dc7?_0x4ce4dc(_0x3838f5,_0x1985de):_0x3838f5,_0x2e5212=_0x3dc3d2['length']-0x1,_0x54cda1;_0x2e5212>=0x0;_0x2e5212--)(_0x54cda1=_0x3dc3d2[_0x2e5212])&&(_0x20e40a=(_0x4d7dc7?_0x54cda1(_0x3838f5,_0x1985de,_0x20e40a):_0x54cda1(_0x20e40a))||_0x20e40a);return _0x4d7dc7&&_0x20e40a&&_0x4f61c3(_0x3838f5,_0x1985de,_0x20e40a),_0x20e40a;},_0x6a6a6=(_0x19acce,_0x51bcee)=>(_0x1f74c8,_0x354086)=>_0x51bcee(_0x1f74c8,_0x354086,_0x19acce);const _0x3612cd=[_0x145278(0x2ce),_0x145278(0x3e6),'image/jpg',_0x145278(0x333),_0x145278(0x485)],_0x5de3b5=0x5*0x400*0x400,_0x3245f6='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x2be33f=_0x145278(0x457),_0x1aa15f=_0x145278(0x2f0),_0x269115=_0x145278(0x30b);_0x3b531e['ImageIoService']=class{constructor(_0x412b7f,_0x2203d5,_0x608d2b){const _0x197a2d=_0x145278;_0xbb867(this,_0x197a2d(0x530),0x0),_0xbb867(this,_0x197a2d(0x1d2),new _0x1e13bb[(_0x197a2d(0x410))]()),_0xbb867(this,_0x197a2d(0x4eb),this[_0x197a2d(0x1d2)]),_0xbb867(this,_0x197a2d(0x3a0),new Map()),(this[_0x197a2d(0x4be)]=_0x412b7f,this[_0x197a2d(0x28d)]=_0x2203d5,this[_0x197a2d(0x31f)]=_0x608d2b);}[_0x145278(0x2d5)](_0xe381ba){const _0x132b1b=_0x145278;this[_0x132b1b(0x530)]=_0xe381ba,this[_0x132b1b(0x1d2)][_0x132b1b(0x155)](_0xe381ba);}['getImageSourceCache'](_0x3456b4,_0xfcb03a){const _0x11b110=_0x145278;if(_0xfcb03a===_0xaccc08['ImageSourceType'][_0x11b110(0x4d4)]){const _0xbc7a3d=new Image();return _0xbc7a3d[_0x11b110(0x43b)]=_0x3456b4,_0xbc7a3d;}return this['_imageSourceCache'][_0x11b110(0x4b6)](_0x3456b4);}[_0x145278(0x36a)](_0x1b4cb2,_0xefb485,_0x3f0a4f){const _0x18de75=_0x145278;_0xefb485===_0xaccc08[_0x18de75(0x48a)][_0x18de75(0x4d4)]||_0x3f0a4f==null||this[_0x18de75(0x3a0)][_0x18de75(0x253)](_0x1b4cb2,_0x3f0a4f);}async['getImage'](_0x1b03bd){const _0x5a259e=_0x145278;try{const _0x453ffb=this['_replaceFileID'](this[_0x5a259e(0x214)](),''+_0x1b03bd),_0x3f69c9=(await this[_0x5a259e(0x4be)][_0x5a259e(0x4b6)](_0x453ffb))['body'];if(_0x3f69c9[_0x5a259e(0x4aa)]&&_0x3f69c9[_0x5a259e(0x4aa)]['code']===_0x21d834['OK']){const _0x2f8340=new URL(_0x3f69c9[_0x5a259e(0x3be)],this[_0x5a259e(0x3bd)]())[_0x5a259e(0x2ad)]();return Promise['resolve'](_0x2f8340);}return Promise[_0x5a259e(0x281)](_0x3f69c9[_0x5a259e(0x4aa)]);}catch(_0x3ea692){return Promise['reject'](_0x3ea692);}}async[_0x145278(0x2ae)](_0x54b65a){const _0x1990e5=_0x145278;let _0x14ce05='';if(!_0x3612cd[_0x1990e5(0x330)](_0x54b65a[_0x1990e5(0x389)]))return this[_0x1990e5(0x4fe)](),Promise[_0x1990e5(0x281)](new Error(_0xaccc08[_0x1990e5(0x1f8)][_0x1990e5(0x521)]));if(_0x54b65a[_0x1990e5(0x35e)]>_0x5de3b5)return this[_0x1990e5(0x4fe)](),Promise[_0x1990e5(0x281)](new Error(_0xaccc08['ImageUploadStatusType'][_0x1990e5(0x4a9)]));try{const _0xf7fd4b=new FormData();_0xf7fd4b[_0x1990e5(0x3d1)](_0x1990e5(0x288),_0x54b65a);const _0x3eae83=this[_0x1990e5(0x31f)][_0x1990e5(0x2da)](),_0x1e6247=_0x3eae83==null?void 0x0:_0x3eae83[_0x1990e5(0x453)]();if(!_0x1e6247)throw new Error(_0x1990e5(0x26d));const _0xa9adad=this[_0x1990e5(0x215)]()+_0x1990e5(0x310)+_0x54b65a['size'][_0x1990e5(0x2ad)]()+_0x1990e5(0x282)+_0x521080[_0x1990e5(0x511)]+_0x1990e5(0x133)+encodeURIComponent(_0x1e6247),_0x5ae4db=await(await fetch(_0xa9adad,{'method':'POST','body':_0xf7fd4b}))[_0x1990e5(0x40d)]();if(typeof _0x5ae4db[_0x1990e5(0x41b)]!=_0x1990e5(0x1eb))return this[_0x1990e5(0x4fe)](),Promise['reject'](new Error(_0xaccc08[_0x1990e5(0x1f8)][_0x1990e5(0x2bc)]));_0x14ce05=_0x5ae4db[_0x1990e5(0x41b)];}catch{return this[_0x1990e5(0x4fe)](),Promise[_0x1990e5(0x281)](new Error(_0xaccc08[_0x1990e5(0x1f8)][_0x1990e5(0x2bc)]));}return new Promise((_0x427696,_0x179b41)=>{const _0x43edab=_0x1990e5,_0x34444f=new FileReader();_0x34444f[_0x43edab(0x1ce)](_0x54b65a),_0x34444f[_0x43edab(0x2b7)]=_0x3bdce1=>{const _0x5c292b=_0x43edab;var _0x45131d;const _0x201f8d=(_0x45131d=_0x3bdce1[_0x5c292b(0x50e)])==null?void 0x0:_0x45131d[_0x5c292b(0x42e)];if(_0x201f8d==null){this[_0x5c292b(0x4fe)](),_0x179b41(new Error(_0xaccc08[_0x5c292b(0x1f8)][_0x5c292b(0x2bc)]));return;}const _0x10613b=_0x349f19['Tools'][_0x5c292b(0x4d7)](0x6);_0x427696({'imageId':_0x10613b,'imageSourceType':_0xaccc08['ImageSourceType'][_0x5c292b(0x531)],'source':_0x14ce05,'base64Cache':_0x201f8d,'status':_0xaccc08[_0x5c292b(0x1f8)][_0x5c292b(0x3d2)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x3351ab=_0x145278;var _0x4df41a,_0x24d531;const _0x325356=this[_0x3351ab(0x28d)][_0x3351ab(0x46f)](_0x3245f6),_0x91c364=this[_0x3351ab(0x28d)][_0x3351ab(0x46f)](_0x4ea523);return(_0x24d531=(_0x4df41a=_0x91c364==null?void 0x0:_0x91c364['uploadFileServerUrl'])!=null?_0x4df41a:_0x325356)!=null?_0x24d531:_0x2be33f;}[_0x145278(0x214)](){const _0x3704be=_0x145278;var _0x5aa19e,_0x5480e4;const _0xb8bbff=this['_configService'][_0x3704be(0x46f)](_0x1aa15f),_0x37feab=this[_0x3704be(0x28d)][_0x3704be(0x46f)](_0x4ea523);return(_0x5480e4=(_0x5aa19e=_0x37feab==null?void 0x0:_0x37feab['signUrlServerUrl'])!=null?_0x5aa19e:_0xb8bbff)!=null?_0x5480e4:_0x269115;}[_0x145278(0x3bd)](){const _0x2d4425=_0x145278;var _0x2e5b26;const _0x55d7c4=this[_0x2d4425(0x28d)][_0x2d4425(0x46f)](_0x4ea523);return(_0x2e5b26=_0x55d7c4==null?void 0x0:_0x55d7c4['downloadEndpointUrl'])!=null?_0x2e5b26:location['origin'];}['_replaceFileID'](_0x47fbc6,_0x5502c3){const _0x5912a4=_0x145278;return _0x47fbc6['replace'](_0x5912a4(0x553),_0x5502c3);}[_0x145278(0x4fe)](){const _0xb3c1bc=_0x145278;this['_waitCount']-=0x1,this['_change$']['next'](this[_0xb3c1bc(0x530)]);}},_0x3b531e[_0x145278(0x47d)]=_0x2887e3([_0x6a6a6(0x0,_0x349f19['Inject'](_0x47193d[_0x145278(0x3f8)])),_0x6a6a6(0x1,_0x349f19[_0x145278(0x424)]),_0x6a6a6(0x2,_0x349f19['Inject'](_0x349f19[_0x145278(0x501)]))],_0x3b531e[_0x145278(0x47d)]);var _0x11760e=Object['defineProperty'],_0x4297c2=Object['getOwnPropertyDescriptor'],_0x1b1ef6=(_0x39cae4,_0x5d68cf,_0x213e5d,_0x8b01cd)=>{const _0x4faec5=_0x145278;for(var _0x1fff61=_0x8b01cd>0x1?void 0x0:_0x8b01cd?_0x4297c2(_0x5d68cf,_0x213e5d):_0x5d68cf,_0xae61a5=_0x39cae4[_0x4faec5(0x37e)]-0x1,_0x3bf618;_0xae61a5>=0x0;_0xae61a5--)(_0x3bf618=_0x39cae4[_0xae61a5])&&(_0x1fff61=(_0x8b01cd?_0x3bf618(_0x5d68cf,_0x213e5d,_0x1fff61):_0x3bf618(_0x1fff61))||_0x1fff61);return _0x8b01cd&&_0x1fff61&&_0x11760e(_0x5d68cf,_0x213e5d,_0x1fff61),_0x1fff61;},_0x309dcc=(_0x14b3db,_0x16d487)=>(_0x347eb6,_0x2c233d)=>_0x16d487(_0x347eb6,_0x2c233d,_0x14b3db);let _0x531ea0=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0xb7a0fa,_0x5d9f37,_0x4df948,_0x2fbb52,_0x342ad3){const _0xf59903=_0x145278;super(),this[_0xf59903(0x22d)]=_0xb7a0fa,this[_0xf59903(0x31f)]=_0x5d9f37,this[_0xf59903(0x201)]=_0x4df948,this[_0xf59903(0x49e)]=_0x2fbb52,this['_localeService']=_0x342ad3,this[_0xf59903(0x4ef)](),this[_0xf59903(0x334)]();}['_initCloseConn'](){const _0x3ed27d=_0x145278,_0x1ee09d=async _0x305ffe=>{const _0x467269=_0x2aa9;(await this[_0x467269(0x49e)]['requireSession'](_0x305ffe))[_0x467269(0x403)]['pipe'](_0x501e2e[_0x467269(0x257)](_0x30cfc1=>_0x30cfc1[_0x467269(0x1c0)]===_0x54555c[_0x467269(0x547)][_0x467269(0x2ca)]),_0x501e2e['takeUntil'](this[_0x467269(0x115)]))['subscribe'](_0x1c8ae9=>{const _0x2e9d0d=_0x467269,_0x4cec6b=_0x1c8ae9,{reason:_0x590de1}=_0x4cec6b[_0x2e9d0d(0x2d2)];this['_injector']['get'](_0x5b624f[_0x2e9d0d(0x434)])[_0x2e9d0d(0x303)]({'type':_0x806671[_0x2e9d0d(0x116)][_0x2e9d0d(0x455)],'content':this[_0x2e9d0d(0x207)]['t'](_0x2e9d0d(0x228))+'('+_0x590de1+')'}),this[_0x2e9d0d(0x201)][_0x2e9d0d(0x1c2)](new _0x4c7a32[(_0x2e9d0d(0x287))](_0x305ffe)['id'],!0x1),this[_0x2e9d0d(0x49e)][_0x2e9d0d(0x1da)](_0x305ffe);});};_0x1e13bb['merge'](this[_0x3ed27d(0x31f)][_0x3ed27d(0x393)](_0x349f19[_0x3ed27d(0x426)][_0x3ed27d(0x431)]),this[_0x3ed27d(0x31f)][_0x3ed27d(0x393)](_0x349f19['UniverInstanceType']['UNIVER_DOC']))['pipe'](_0x501e2e[_0x3ed27d(0x15d)](_0x5b14ac=>_0x5b14ac[_0x3ed27d(0x453)]()),_0x501e2e[_0x3ed27d(0x257)](_0x29f065=>!_0x349f19[_0x3ed27d(0x264)](_0x29f065)),_0x501e2e[_0x3ed27d(0x1bc)](this[_0x3ed27d(0x115)]))[_0x3ed27d(0x38f)](_0x22ba2b=>{_0x1ee09d(_0x22ba2b);});}[_0x145278(0x4ef)](){const _0x263d1f=_0x145278,_0x51b01e=async _0x4f92b3=>{const _0xef144f=_0x2aa9;(await this[_0xef144f(0x49e)][_0xef144f(0x4ab)](_0x4f92b3))[_0xef144f(0x403)]['pipe'](_0x501e2e[_0xef144f(0x257)](_0x312ac0=>_0x312ac0[_0xef144f(0x1c0)]===_0x54555c[_0xef144f(0x547)]['UPDATE_PERMISSION_OBJ']),_0x501e2e[_0xef144f(0x1bc)](this[_0xef144f(0x115)]))[_0xef144f(0x38f)](_0x15ffd2=>{const _0x57770e=_0xef144f,_0x524ae7=_0x15ffd2,{objectId:_0x2a29b2}=_0x524ae7['data'],_0x5ca9b6=this[_0x57770e(0x22d)][_0x57770e(0x4b6)](_0xa0e5aa['SheetPermissionInitController']);_0x2a29b2===_0x4f92b3?_0x5ca9b6['initWorkbookPermissionChange'](_0x4f92b3):_0x5ca9b6[_0x57770e(0x3d4)](_0x4f92b3,_0x2a29b2);});};_0x1e13bb[_0x263d1f(0x1a2)](this[_0x263d1f(0x31f)][_0x263d1f(0x393)](_0x349f19[_0x263d1f(0x426)][_0x263d1f(0x431)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x349f19[_0x263d1f(0x426)][_0x263d1f(0x22e)]))[_0x263d1f(0x3f1)](_0x501e2e[_0x263d1f(0x15d)](_0x56ef21=>_0x56ef21[_0x263d1f(0x453)]()),_0x501e2e[_0x263d1f(0x257)](_0x6d0d05=>!_0x349f19[_0x263d1f(0x264)](_0x6d0d05)),_0x501e2e[_0x263d1f(0x1bc)](this[_0x263d1f(0x115)]))['subscribe'](_0x1e3a9a=>{_0x51b01e(_0x1e3a9a);});}};_0x531ea0=_0x1b1ef6([_0x309dcc(0x0,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x309dcc(0x1,_0x349f19[_0x145278(0x501)]),_0x309dcc(0x2,_0x349f19['IPermissionService']),_0x309dcc(0x3,_0x349f19['Inject'](_0x3b531e[_0x145278(0x21f)])),_0x309dcc(0x4,_0x349f19['Inject'](_0x349f19['LocaleService']))],_0x531ea0);var _0x45243c=Object[_0x145278(0x507)],_0x50cb65=Object[_0x145278(0x16d)],_0x1dc25e=(_0x3bac71,_0x13efd9,_0x12811e,_0x4fe422)=>{for(var _0x43ee75=_0x4fe422>0x1?void 0x0:_0x4fe422?_0x50cb65(_0x13efd9,_0x12811e):_0x13efd9,_0x277f11=_0x3bac71['length']-0x1,_0x349ecb;_0x277f11>=0x0;_0x277f11--)(_0x349ecb=_0x3bac71[_0x277f11])&&(_0x43ee75=(_0x4fe422?_0x349ecb(_0x13efd9,_0x12811e,_0x43ee75):_0x349ecb(_0x43ee75))||_0x43ee75);return _0x4fe422&&_0x43ee75&&_0x45243c(_0x13efd9,_0x12811e,_0x43ee75),_0x43ee75;},_0x56f810=(_0x3b53f3,_0x485564)=>(_0x5bd3f8,_0x602784)=>_0x485564(_0x5bd3f8,_0x602784,_0x3b53f3);_0x3b531e[_0x145278(0x1fd)]=class{constructor(_0x4477ac,_0x4d238a){const _0x585aca=_0x145278;this['_configService']=_0x4477ac,this[_0x585aca(0x4be)]=_0x4d238a;}async[_0x145278(0x4e7)](_0x400bc9,_0x4ac4d2){const _0x55c10a=_0x145278;var _0x4e926a;const {unitID:_0x325687,type:_0x4c1869,revision:_0x2b3372=0x0}=_0x4ac4d2,_0x329434=this['_getSnapshotAPIPrefix']()+'/'+_0x4c1869+'/unit/'+_0x325687+_0x55c10a(0x537)+_0x2b3372,_0x20a7d3=(await this[_0x55c10a(0x4be)]['get'](_0x329434))[_0x55c10a(0x420)],_0x501abf=(_0x4e926a=_0x20a7d3[_0x55c10a(0x439)])==null?void 0x0:_0x4e926a[_0x55c10a(0x3bc)];if(_0x501abf){const _0x3b14cc=_0x501abf==null?void 0x0:_0x501abf['originalMeta'],_0x571c1f=_0x54555c['textEncoder']['encode'](_0x54555c[_0x55c10a(0x305)](_0x3b14cc));_0x501abf[_0x55c10a(0x272)]=_0x571c1f,Object[_0x55c10a(0x512)](_0x501abf[_0x55c10a(0x2b9)])['forEach'](([,_0x281210])=>{const _0x5b6f50=_0x55c10a,_0x4fdcd8=_0x281210[_0x5b6f50(0x272)],_0x371dc8=_0x54555c[_0x5b6f50(0x222)][_0x5b6f50(0x224)](_0x54555c['b64DecodeUnicode'](_0x4fdcd8));_0x281210['originalMeta']=_0x371dc8;});}return _0x20a7d3;}async[_0x145278(0x150)](_0x1a3343,_0x5c914d){const _0x273383=_0x145278,{unitID:_0x5d6131,type:_0x35009a,blockID:_0x23349d}=_0x5c914d,_0x482d0e=this['_getAPIPrefix']()+'/'+_0x35009a+_0x273383(0x209)+_0x5d6131+_0x273383(0x1cd)+_0x23349d;return(await this[_0x273383(0x4be)][_0x273383(0x4b6)](_0x482d0e))[_0x273383(0x420)];}async['getDeserializedSheetBlock'](_0x19043d,_0x434f5f){const _0x2088ae=_0x145278,{unitID:_0x3d0167,type:_0xe72bc,blockID:_0x4890fe}=_0x434f5f,_0x4c0619=this[_0x2088ae(0x1ff)]()+_0x2088ae(0x1cd)+_0xe72bc+_0x2088ae(0x209)+_0x3d0167+_0x2088ae(0x1cd)+_0x4890fe;return(await this[_0x2088ae(0x4be)][_0x2088ae(0x4b6)](_0x4c0619))[_0x2088ae(0x420)];}async[_0x145278(0x296)](_0x3cbaf9,_0xad3eb6){const _0x2f5b96=_0x145278,{unitID:_0x558893,type:_0x51a869,from:_0x539141,to:_0x379f94}=_0xad3eb6,_0x56e6c0=this[_0x2f5b96(0x1ff)]()+'/'+_0x51a869+_0x2f5b96(0x209)+_0x558893+'/fetchmissing?from='+_0x539141+'&to='+_0x379f94;return(await this[_0x2f5b96(0x4be)][_0x2f5b96(0x4b6)](_0x56e6c0))[_0x2f5b96(0x420)];}[_0x145278(0x230)](){const _0x267417=_0x145278;var _0x501c59;return(_0x501c59=this[_0x267417(0x28d)][_0x267417(0x46f)](_0x1fe014))!=null?_0x501c59:this[_0x267417(0x1ff)]();}[_0x145278(0x1ff)](){const _0x4dc010=_0x145278;var _0x2a3af0,_0x4b1ea5;const _0x1b16cb=this['_configService'][_0x4dc010(0x46f)](_0x1f76a6),_0x363c91=this[_0x4dc010(0x28d)][_0x4dc010(0x46f)](_0x4ea523);return(_0x4b1ea5=(_0x2a3af0=_0x363c91==null?void 0x0:_0x363c91[_0x4dc010(0x32d)])!=null?_0x2a3af0:_0x1b16cb)!=null?_0x4b1ea5:_0x137d51;}async[_0x145278(0x471)](_0x4c200e,_0x2230d8){const _0x24c60b=_0x145278,_0x3d4392='/universer-api/snapshot/'+_0x2230d8['type']+_0x24c60b(0x209)+_0x2230d8['unitID']+'/resources';return(await this['_httpService'][_0x24c60b(0x4b6)](_0x3d4392,{'params':{'resourceId':JSON[_0x24c60b(0x140)](_0x2230d8[_0x24c60b(0x2a0)])}}))[_0x24c60b(0x420)];}['saveSnapshot'](){const _0x26eda3=_0x145278;throw new Error(_0x26eda3(0x349));}[_0x145278(0x1b1)](){const _0x6a5d12=_0x145278;throw new Error(_0x6a5d12(0x349));}[_0x145278(0x181)](){const _0x432b11=_0x145278;throw new Error(_0x432b11(0x349));}[_0x145278(0x40b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x145278(0x34d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x3b531e['SnapshotServerOverHTTPService']=_0x1dc25e([_0x56f810(0x0,_0x349f19[_0x145278(0x424)]),_0x56f810(0x1,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)]))],_0x3b531e[_0x145278(0x1fd)]);var _0x454eef=Object['defineProperty'],_0x5abc9c=Object['getOwnPropertyDescriptor'],_0x11ef68=(_0x1b2603,_0x3d390b,_0x1b3c32,_0x1e7d4)=>{const _0x56cbe6=_0x145278;for(var _0x44e567=_0x1e7d4>0x1?void 0x0:_0x1e7d4?_0x5abc9c(_0x3d390b,_0x1b3c32):_0x3d390b,_0x2f63c3=_0x1b2603[_0x56cbe6(0x37e)]-0x1,_0xd937a7;_0x2f63c3>=0x0;_0x2f63c3--)(_0xd937a7=_0x1b2603[_0x2f63c3])&&(_0x44e567=(_0x1e7d4?_0xd937a7(_0x3d390b,_0x1b3c32,_0x44e567):_0xd937a7(_0x44e567))||_0x44e567);return _0x1e7d4&&_0x44e567&&_0x454eef(_0x3d390b,_0x1b3c32,_0x44e567),_0x44e567;},_0x52c408=(_0x808ff3,_0x51e11c)=>(_0x57021d,_0x1d77e1)=>_0x51e11c(_0x57021d,_0x1d77e1,_0x808ff3);let _0x761cdc=class extends _0x349f19[_0x145278(0x2f2)]{constructor(_0x49cd72,_0x4b703c,_0x26c44e,_0x18ef66,_0x188853){const _0x269801=_0x145278;super(_0x49cd72,_0x4b703c,_0x26c44e),this[_0x269801(0x28a)]=_0x18ef66,this[_0x269801(0x385)]=_0x188853;}['transformUndoRedo'](_0x597898,_0x36bd30){const _0xcfe476=_0x145278,_0x296ee7=this[_0xcfe476(0x244)](_0x597898);if(_0x296ee7)try{const _0x59fea7=this[_0xcfe476(0x4b7)](_0x296ee7,_0x36bd30);this[_0xcfe476(0x268)](_0x597898,_0x59fea7);}catch(_0x318786){this[_0xcfe476(0x385)][_0xcfe476(0x4aa)](_0xcfe476(0x4a1),_0x318786),this['_clearUndo'](_0x597898);}const _0x54c94a=this['_getRedoStack'](_0x597898);if(_0x54c94a)try{const _0x3ed4c2=this['_transformStack'](_0x54c94a,_0x36bd30);this['_substituteRedoStack'](_0x597898,_0x3ed4c2);}catch(_0x32c08e){this[_0xcfe476(0x385)][_0xcfe476(0x4aa)](_0x32c08e),this[_0xcfe476(0x396)](_0x597898);}}[_0x145278(0x234)](_0x391a7a){const _0x4306dd=_0x145278,_0x3eeee2=this[_0x4306dd(0x244)](_0x391a7a);_0x3eeee2&&(_0x3eeee2[_0x4306dd(0x37e)]=0x0,this[_0x4306dd(0x3de)]());}[_0x145278(0x396)](_0x3bce46){const _0x793e42=_0x145278,_0x25af6a=this[_0x793e42(0x39c)](_0x3bce46);_0x25af6a&&(_0x25af6a[_0x793e42(0x37e)]=0x0,this[_0x793e42(0x3de)]());}['_substituteUndoStack'](_0x7d83d4,_0x5e8a9a){const _0x562c2c=_0x145278;this[_0x562c2c(0x460)][_0x562c2c(0x253)](_0x7d83d4,_0x5e8a9a),this[_0x562c2c(0x3de)]();}[_0x145278(0x273)](_0x51fe35,_0x4af11a){const _0x4fa3cd=_0x145278;this[_0x4fa3cd(0x2aa)][_0x4fa3cd(0x253)](_0x51fe35,_0x4af11a),this[_0x4fa3cd(0x3de)]();}[_0x145278(0x4b7)](_0xc9eb38,_0x3fadf7){const _0x20492d=_0x145278,_0x2d6ddf=[];let _0xf22ad=_0x3fadf7,_0x43650c=_0x3fadf7;for(let _0x310826=_0xc9eb38[_0x20492d(0x37e)]-0x1;_0x310826>=0x0;_0x310826--){const {unitID:_0x5e70f5,undoMutations:_0xcc2cec,redoMutations:_0x298dd1}=_0xc9eb38[_0x310826],_0x128a52=this[_0x20492d(0x28a)][_0x20492d(0x21c)](_0xf22ad,_0xcc2cec),_0x121cd3=this['_transformService'][_0x20492d(0x21c)](_0x43650c,_0x298dd1);if(_0x54555c[_0x20492d(0x43d)](_0x128a52)||_0x54555c[_0x20492d(0x43d)](_0x121cd3)){this[_0x20492d(0x385)]['error']('[CollaborationUndoRedoService]',_0x20492d(0x3ea),_0x128a52,_0x121cd3);break;}_0xf22ad=_0x128a52['c1Prime'],_0x43650c=_0x121cd3[_0x20492d(0x26b)],_0x2d6ddf[_0x20492d(0x276)]({'unitID':_0x5e70f5,'undoMutations':_0x128a52[_0x20492d(0x2a5)],'redoMutations':_0x121cd3[_0x20492d(0x2a5)]});}return _0x2d6ddf[_0x20492d(0x42f)]();}};_0x761cdc=_0x11ef68([_0x52c408(0x0,_0x349f19[_0x145278(0x501)]),_0x52c408(0x1,_0x349f19[_0x145278(0x36e)]),_0x52c408(0x2,_0x349f19['IContextService']),_0x52c408(0x3,_0x54555c[_0x145278(0x42a)]),_0x52c408(0x4,_0x349f19['ILogService'])],_0x761cdc);class _0x16ca01 extends _0x349f19[_0x145278(0x4e9)]{constructor(){const _0x5b6f76=_0x145278;super(),_0xbb867(this,'urlChange$'),this[_0x5b6f76(0x3af)]=_0x1e13bb[_0x5b6f76(0x2d6)](window,_0x5b6f76(0x4c0))[_0x5b6f76(0x3f1)](_0x1e13bb['takeUntil'](this[_0x5b6f76(0x115)]),_0x1e13bb[_0x5b6f76(0x1d6)](0x1),_0x1e13bb[_0x5b6f76(0x2cb)](void 0x0));}[_0x145278(0x427)](_0x47e807,_0x3e805d,_0x32dc7f=!0x1){const _0x1c0314=_0x145278,_0x1377b4=new URL(window[_0x1c0314(0x4fb)][_0x1c0314(0x144)]);_0x1377b4['searchParams'][_0x1c0314(0x253)](_0x47e807,_0x3e805d),_0x32dc7f?window[_0x1c0314(0x3c0)]['replaceState']('','',_0x1377b4[_0x1c0314(0x2ad)]()):window[_0x1c0314(0x3c0)][_0x1c0314(0x37b)]('','',_0x1377b4['toString']());}['removeParam'](_0x362af6,_0x5b8e0d=!0x1){const _0x72bdfa=_0x145278,_0x48b0f8=new URL(window[_0x72bdfa(0x4fb)][_0x72bdfa(0x144)]);_0x48b0f8[_0x72bdfa(0x16c)][_0x72bdfa(0x4f4)](_0x362af6),_0x5b8e0d?window[_0x72bdfa(0x3c0)][_0x72bdfa(0x1d5)]('','',_0x48b0f8[_0x72bdfa(0x2ad)]()):window[_0x72bdfa(0x3c0)]['pushState']('','',_0x48b0f8[_0x72bdfa(0x2ad)]());}[_0x145278(0x3f3)](_0x39b8e4){const _0x38ca6c=_0x145278;var _0x33c77a;return(_0x33c77a=new URL(window[_0x38ca6c(0x4fb)]['href'])[_0x38ca6c(0x16c)][_0x38ca6c(0x4b6)](_0x39b8e4))!=null?_0x33c77a:void 0x0;}}var _0x1e2e31=Object[_0x145278(0x507)],_0x3d419b=Object[_0x145278(0x16d)],_0x5f10b8=(_0x5e4fa9,_0x2459e4,_0x482cda)=>_0x2459e4 in _0x5e4fa9?_0x1e2e31(_0x5e4fa9,_0x2459e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482cda}):_0x5e4fa9[_0x2459e4]=_0x482cda,_0x5eca97=(_0x4d4819,_0x5992d8,_0x126d73,_0x456a79)=>{const _0x3fc785=_0x145278;for(var _0x23bec1=_0x456a79>0x1?void 0x0:_0x456a79?_0x3d419b(_0x5992d8,_0x126d73):_0x5992d8,_0x45fa29=_0x4d4819[_0x3fc785(0x37e)]-0x1,_0x539b86;_0x45fa29>=0x0;_0x45fa29--)(_0x539b86=_0x4d4819[_0x45fa29])&&(_0x23bec1=(_0x456a79?_0x539b86(_0x5992d8,_0x126d73,_0x23bec1):_0x539b86(_0x23bec1))||_0x23bec1);return _0x456a79&&_0x23bec1&&_0x1e2e31(_0x5992d8,_0x126d73,_0x23bec1),_0x23bec1;},_0x3e9e1f=(_0x260b31,_0x2d02a7)=>(_0x516aec,_0x33c33c)=>_0x2d02a7(_0x516aec,_0x33c33c,_0x260b31),_0x4071c4=(_0x10bcb6,_0x2a268a,_0x2f70ed)=>_0x5f10b8(_0x10bcb6,_0x2a268a+'',_0x2f70ed);const _0x19f68c='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3b531e['UniverCollaborationClientPlugin']=class extends _0x349f19['Plugin']{constructor(_0x2ef348=_0xb30b05,_0x3ef7cd,_0x36ca6d,_0x361f07,_0x1fffe8){const _0x205668=_0x145278;super(),this[_0x205668(0x183)]=_0x2ef348,this['_logService']=_0x3ef7cd,this[_0x205668(0x4d9)]=_0x36ca6d,this['_injector']=_0x361f07,this[_0x205668(0x28d)]=_0x1fffe8;const {..._0x13bd83}=this['_config'];this[_0x205668(0x28d)][_0x205668(0x298)](_0x4ea523,_0x13bd83);}[_0x145278(0x198)](){const _0x4f4190=_0x145278;this[_0x4f4190(0x417)](),_0x349f19[_0x4f4190(0x2d3)](this['_injector'],[[_0xc5b355],[_0x3b531e[_0x4f4190(0x3c4)]],[_0x531ea0]]);}[_0x145278(0x251)](){const _0x2cd673=_0x145278;_0x349f19[_0x2cd673(0x2d3)](this[_0x2cd673(0x22d)],[[_0x44f32b]]);}[_0x145278(0x39e)](){const _0x5eec12=_0x145278;this[_0x5eec12(0x491)]();}[_0x145278(0x417)](){const _0x2224e6=_0x145278;var _0x52b18f,_0xdb6b76,_0x86bf64,_0x145525;this['_injector'][_0x2224e6(0x2e6)](_0x349f19[_0x2224e6(0x2a4)])&&this[_0x2224e6(0x385)][_0x2224e6(0x4aa)]('[UniverCollaborationClientPlugin]',_0x2224e6(0x52b));let _0x3f23e0=[[_0x349f19[_0x2224e6(0x2a4)],{'useClass':_0x761cdc}],[_0x3b531e[_0x2224e6(0x21f)]],[_0x477f1a],[_0x47193d[_0x2224e6(0x3f8)]],[_0x31b342,{'useClass':_0x16ca01}],[_0x5a9e0d],[_0x3b531e[_0x2224e6(0x30a)]],[_0x47193d[_0x2224e6(0x45a)]],[_0x370f64],[_0x697163],[_0x55e610],[_0x2f089c],[_0x499e8e],[_0x4f3ef6],[_0x2e3386],[_0x531ea0],[_0x3f5095,{'useClass':(_0xdb6b76=(_0x52b18f=this['_config'])==null?void 0x0:_0x52b18f[_0x2224e6(0x299)])!=null?_0xdb6b76:_0x3b531e[_0x2224e6(0x504)]}],[_0x47193d['IHTTPImplementation'],{'useClass':_0x47193d[_0x2224e6(0x4a7)]}],[_0x54555c[_0x2224e6(0x208)],{'useClass':_0x3b531e[_0x2224e6(0x1fd)]}],[_0x349f19[_0x2224e6(0x3e4)],{'useClass':_0x3b531e[_0x2224e6(0x383)]}],[_0xaccc08[_0x2224e6(0x1ec)],{'useClass':_0x3b531e[_0x2224e6(0x47d)]}],[_0x3b531e[_0x2224e6(0x446)]],[_0x3b531e[_0x2224e6(0x3c4)]],[_0x3b531e['DesktopCollaborationStatusDisplayController']],[_0x44f32b],[_0xc5b355]];(_0x86bf64=this[_0x2224e6(0x183)])!=null&&_0x86bf64[_0x2224e6(0x412)]&&_0x3f23e0[_0x2224e6(0x276)]([_0x2d00f5,{'useClass':_0x467f1c}]),_0x3f23e0=_0x349f19[_0x2224e6(0x30d)](_0x3f23e0,(_0x145525=this[_0x2224e6(0x183)])==null?void 0x0:_0x145525[_0x2224e6(0x24d)]),_0x3f23e0[_0x2224e6(0x256)](_0xe95c30=>this['_injector'][_0x2224e6(0x4f3)](_0xe95c30)),this[_0x2224e6(0x38b)]();}[_0x145278(0x491)](){const _0x5ae32d=_0x145278;this[_0x5ae32d(0x1e3)](this['_renderManagerService'][_0x5ae32d(0x3dd)](_0x349f19['UniverInstanceType'][_0x5ae32d(0x22e)],[_0x12f634])),this['disposeWithMe'](this['_renderManagerService'][_0x5ae32d(0x3dd)](_0x349f19[_0x5ae32d(0x426)]['UNIVER_SHEET'],[_0x355d95]));}[_0x145278(0x38b)](){const _0x460a88=_0x145278;var _0xba2ea0,_0x19093c;this['_injector'][_0x460a88(0x4b6)](_0x47193d['HTTPService'])[_0x460a88(0x419)]({'priority':0x14,'interceptor':_0x47193d['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x4f3ef6),(_0xba2ea0=this[_0x460a88(0x183)])!=null&&_0xba2ea0['enableOfflineEditing']||this['_injector'][_0x460a88(0x4b6)](_0x3b531e[_0x460a88(0x30a)])[_0x460a88(0x3d8)](),(_0x19093c=this[_0x460a88(0x183)])!=null&&_0x19093c[_0x460a88(0x205)]&&this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x499e8e),this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x3b531e[_0x460a88(0x446)]),this[_0x460a88(0x22d)][_0x460a88(0x2e6)](_0x3b531e['DesktopCollaborationStatusDisplayController'])&&this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x3b531e[_0x460a88(0x435)]);}},_0x4071c4(_0x3b531e[_0x145278(0x1e4)],_0x145278(0x347),_0x19f68c),_0x3b531e[_0x145278(0x1e4)]=_0x5eca97([_0x349f19[_0x145278(0x523)](_0x54555c[_0x145278(0x309)]),_0x3e9e1f(0x1,_0x349f19[_0x145278(0x1e7)]),_0x3e9e1f(0x2,_0x577b7e[_0x145278(0x1d7)]),_0x3e9e1f(0x3,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x3e9e1f(0x4,_0x349f19[_0x145278(0x424)])],_0x3b531e[_0x145278(0x1e4)]),_0x3b531e[_0x145278(0x285)]=_0x3bed12,_0x3b531e[_0x145278(0x136)]=_0x3f5d5a,_0x3b531e[_0x145278(0x3d9)]=_0x5c110b,_0x3b531e['CollaborationStatus']=_0xfe35ac,_0x3b531e[_0x145278(0x421)]=_0x5c616d,_0x3b531e[_0x145278(0x308)]=_0x2e3386,_0x3b531e[_0x145278(0x386)]=_0x2ace82,_0x3b531e[_0x145278(0x3c2)]=_0x566bf8,_0x3b531e[_0x145278(0x27f)]=_0x3f5095,_0x3b531e[_0x145278(0x4ed)]=_0x31b342,_0x3b531e['LOCAL_CACHE_INTERVAL_KEY']=_0x255e8f,_0x3b531e[_0x145278(0x187)]=_0x3d2741,_0x3b531e[_0x145278(0x1c6)]=_0xe2277,_0x3b531e[_0x145278(0x3fe)]=_0x3c165d,_0x3b531e[_0x145278(0x4d2)]=_0x1f76a6,_0x3b531e[_0x145278(0x4b3)]=_0x1fe014,_0x3b531e[_0x145278(0x377)]=_0x3ee00b,_0x3b531e[_0x145278(0x237)]=_0x186ef2,_0x3b531e[_0x145278(0x2eb)]=_0x16ca01,_0x3b531e[_0x145278(0x2f3)]=_0x2a238a,_0x3b531e[_0x145278(0x2d0)]=_0x1a0ef4,Object[_0x145278(0x507)](_0x3b531e,Symbol[_0x145278(0x358)],{'value':_0x145278(0x162)});}));function _0x2aa9(_0x5c7964,_0x195669){const _0xb9d32f=_0xb9d3();return _0x2aa9=function(_0x2aa9b2,_0x179b7b){_0x2aa9b2=_0x2aa9b2-0x113;let _0x5d6456=_0xb9d32f[_0x2aa9b2];return _0x5d6456;},_0x2aa9(_0x5c7964,_0x195669);}function _0xb9d3(){const _0x87736c=['_draw','[PendingState]:\x20received\x20rejection.','getUnitOnRev','state','RxDisposable','_sendingTimer','change$','IPermissionService','IURLService','UNIVER_PROJECT','_initUnitPermissionChange','none','INVALID_ARGUMENT','off-line-single','add','delete','_fetchMissChangesets','Optional','update','CHANGESET_REJ','objects','red300','location','_scheduleHeartbeat','status$','_decreaseWaiting','_queuedRemoteChangesets','OnLineSingle','IUniverInstanceService','_collabSessionService','_range','CollaborationSocketService','DocIMEInputManagerService','_lastPointer','defineProperty','getOwnPropertySymbols','_colorIndex','operators','RichTextEditingMutation','width','RemoveColCommandId','target','InsertColCommandId','object','UnitEmbedded','entries','_startSheetCollabCursor','_socket','@univerjs/core','react','editingUnit','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','setUndoRedoMutationParamsCache','INTERNAL_ERROR','UniverDesign','name','transformIMECache','getRelativeToViewportCoord','cursorInfo$','AWAITING','ERROR_IMAGE_TYPE','_members','DependentOn','HELLO','onPointerMove$','_sendHeartbeat','max','/allowed','_entityInit$','appendMutation','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_resendTimer','/object/','addObjects','_commentUpdate$','_waitCount','UUID','permission.title','storage','toDisposable','getCoordByCell','registerBeforeClose','/rev/','visibilitychange','_colorAssignService','loginUrlKey','pending','error$','onCommentUpdate','_checkMissing','UNAUTHENTICATED','UNKNOWN_CODE','_executeRemoteChangeset','univer-online-status-icon','UniverTelemetry','FromArray','getDocRanges','_cursor','CollaborationEvent','title','@univerjs/docs-ui','call','UNIVER_SLIDE','@univerjs/network','_stopTelemetryCollaborationNewChangeset','_singleActiveUnitService','_socket$','putCollaborators','HEARTBEAT_TIMEOUT','_acknowledgedAwaitingChangeset','{fileID}','UniverUi','NodePositionConvertToRectRange','createInstance','fromEventSubject','failed\x20to\x20apply\x20missed\x20changesets!','DocSelectionManagerService','_event$','dispose$','MessageType','capture','_docTransformIMECacheService','getColor','blue400','_transformIMECache','_handleHeartbeatEvent','routeKey','_onRemoteACK','not_collab','interceptor','flatMap','CollaborationEntity','_onJoinRoomEvent','values','_initStatusComponent','unitId','newCsEvent','_refreshCollabCursors','_refRangeService','LIVESHARE_OPERATION','collabStatus.notCollab','@univerjs-pro/collaboration','now','collabCursorState$','code','Univer','evenodd','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','&assign=','_snapshotService','_socketMessageSubscription','COLLAB_SUBMIT_CHANGESET_URL_KEY','deserializeRangeWithSheet','listRoles','NOT_FOUND','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','setItem','_anchorDot','onSyncEditingCollabCursor','updateOfflineData','closePath','stringify','actions','/universer-api/oidc/authpage','responseType','href','IDLE','getUniverSheetInstance','_loadDoc','JOINING','LICENSE_IMPORT_SIZE_EXCEEDED','NodePositionConvertToCursor','getViewport','_initStatusListener','OFFLINE','_roomMembers$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getSheetBlock','YUUMI_UNABLE_LOAD_URL','JOIN','updateMember','UniverLicense','next','_initEventListeners','registerOnClose','UniverDrawing','UserManagerService','selections','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','COMPRESS_MUTATION_SEND','map','createCollaborator','_status$','listCollaborators','_collaborationPaused','Module','_urlService','arc','batchAllowed','incrementRevOfUnit','height','activeSheet$','create','ALREADY_EXISTS','Rect','searchParams','getOwnPropertyDescriptor','exhaustSavingTask','handleDeleteRangeMoveLeft','isTransformMutationsWithChangesetSuccess','delay','onMissedChangesetFetched','rxjs','_schedule','_onConnectionFailed','ColorKit','resize','getAncestorScale','transformMutation','_onRemoteChangeset','_unlockTransition','_updateURLWithCurrentState','_updateCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/drawing','getCollabCursors$','saveChangeset','unit','_config','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','row','removeMember','LOGIN_URL_KEY','[OfflineState]:\x20received\x20rejection.','_transitionLocked','_context','_assignedColors','_color','updateCursorEvent','_getSheetObject','distinctUntilChanged','liveShareNewHost','collaborators','MUTATION','JSONX','InsertSheetMutation','isTransformChangesetsSuccess','amd','HTTPRequest','onStarting','replaceTextRanges','_handleEvent','_startCollaboration','every','_name','_uiPartsService','clear','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','merge','runRefRangeMutations','Disposable','serializeRangeWithSheet','SUBMIT_CHANGESET','hidden','COLORS','concatMap','_collaborationController','_session','fillText','sessionStatus$','save','changesets','_initRequestHeader','saveSheetBlock','getActiveSheet','_createHandler','CollaborationSession','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onlyLocal','collaboration_new_changeset','connectInjector','handleInsertRangeMoveDown','endRow','univer-pro.collaboration-client-socket-service','takeUntil','COMPLETION_FINISHED','/new_changes','8436IRdINg','eventID','_candidateSocket','updatePermissionPoint','_resendWithTimeout','_telemetryService','message$','RETRY_CONNECTING_MAX_COUNT_KEY','color','xlink:href','isArray','top','getCurrent','_scheduleClearOtherTimer','/block/','readAsDataURL','_removeCollabCursors','_onUserJoin','_listenToOfflineEvent','_change$','randomUUID','_onConnectionOpen','replaceState','shareReplay','IRenderManagerService','[CollaborationSessionService]','HEARTBEAT','closeSession','getUnit','UNIVER_UNKNOWN','COLLAB_SUBMIT_CHANGESET_URL','leaveEvent','useObservable','YUUMI_URL_COL_OUT_OF_RANGE','11935dlUeZO','round','disposeWithMe','UniverCollaborationClientPlugin','CompressMutationService','post','ILogService','Vector2','/-/object/-/batch_allowed','InsertRangeMoveRightCommandId','string','IImageIoService','visibilityState','_labelPosition','transformByState','deleteCollaborator','subUnitId','whenReady','stopTime','PSEUDO_FETCH_MISSING_RESULT','LIVESHARE_TERMINATE','onCommandExecuted','members','ImageUploadStatusType','_clearTimeoutTimer','getCellPositionByOffset','contains','substring','SnapshotServerOverHTTPService','open$','_getAPIPrefix','fetchMiss','_permissionService','_getScale','getRoom','svg','enableAuthServer','_clearCollaborationTimeoutTimer','_localeService','ISnapshotServerService','/unit/','commentUpdate$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_removeClearOtherTimer','_hideTimer','getOffsetConfig','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','then','conflict.content','IBeforeCloseService','getCurrentRevOfUnit','_getSignURL','_getUploadFileURL','_themeService','createSocket','_send','univer-offline','sheetId','transformChangesets','transformMutationsWithChangeset','collaboration-client.offline-data-not-saved','_isPermissionRej','CollaborationSessionService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_resendTimeout','textEncoder','_telemetryInfo','encode','addEventListener','APPLY_REVISION_CONFILICT','onTransformRemoteChangesetByIMECache','collaboration.closeRoom','_retryConnectingTimer','APPLY_DUPLICATED','_transformUndoRedoStack','url(#off-line-single_clip0_910_343)','_injector','UNIVER_DOC','LIVESHARE_FETCH_OPERATIONS','_getSnapshotAPIPrefix','_sendHeartbeatTimer','bottom','CHANGESET_REVISION_CONFILICT','_clearUndo','text','APPLY_REJECT','SheetCollabCursorShape','useRef','_sender','_onRemoteRejected','_initMergeInterceptor','_toggleOnline','params','_listenToOnlineEvent','CHANGESET_SHOULD_RETRY','unitID','_getMergeRange','[CollaborationSession]','startTime','_getUndoStack','InsertRowCommandId','UniverDocs','_scheduleCollaborationTimeoutTimer','_onUserLeave','_hovered','onStateChange','_handler','uni.network.url-service','override','unknown','_backgroundColor','conflict','onReady','onPointerEnter$','set','@univerjs/engine-render','_render','forEach','filter','number','_HTTPService','propertyIsEnumerable','_sheetSkeletonManagerService','_sessionStatus$','collabStatus.synced','onlineStatus','@univerjs/telemetry','DeleteRangeMoveLeftCommandId','rev','function','restore','isInternalEditorID','isPermissionRej','_timeoutTimer','LocaleService','_substituteUndoStack','collaMsg','getMember','c1Prime','apply','unitId\x20is\x20not\x20found','_socketReady','cursorInfo','_cursorInfo$','onTransformChange$','originalMeta','_substituteRedoStack','COMMENT_UPDATE','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','push','Rectangle','allowed','onRemoteChangeset','roomMembers$','_saveTaskMap','_onMessage','NOT_COLLAB','setAlpha','ICollaborationSocketService','INGEST','reject','&source=','@univerjs/rpc','unshift','AUTHZ_URL_KEY','/collaborator','WorkbookEditablePermission','file','LICENSE_EXPORT_SIZE_EXCEEDED','_transformService','USERS_LEAVE','univer-online-status-title','_configService','conflict.title','_onRecvEvent','collab-text-anchor-','isTransformMutationFailure','sessionStatus','univer-online','\x20in\x20_schedule.','_handleLeaveEvent','fetchMissingChangesets','CONNECTOR_DATA_TOO_LARGE','setConfig','socketService','roles','sid','_docSkeleton','_ws','UPDATE_PERMISSION_OBJ','createIdentifier','resourceIDs','_messageService','_createInitialStateImpl','objectID','IUndoRedoService','m2Prime','getUndoRedoMutationParamsCache','all','registerRefRange','attrs','_redoStacks','setActiveRange','DisposableCollection','toString','saveImage','COMPRESS_MUTATION_APPLY','sendChangesetTimeout','reduce','_drawAnchor','enableLocalCache','_revisionService','_onCursorDelete','liveShareOperation','onload','_initResize','sheets','resend','duration','ERROR_IMAGE','deepClone','toLowerCase','_onRefRangeChange','colorChannel1','944kAHYuU','_onOffline','drawWith','cmd','fetchThroughInterceptors','[SyncedState]:\x20received\x20rejection.','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabCursorState$','#fff','SHOULD_CLOSE_CONN','mapTo','patch','MoveRangeCommandId','image/png','_drawTextRange','serializeCombRequest','_getAnchorBounding','data','touchDependencies','_onLocalMutation','setWaitCount','fromEvent','subscribeEvent','@univerjs/sheets','SheetSkeletonManagerService','getFocusedUnit','Workbook','534995fLTPAT','_transformUndoredo','@univerjs/sheets-ui','_updateState','_http','_sessions','ThemeService','EffectRefRangId','USERS_ENTER','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','has','parse','some','_online','session.collaboration-timeout','WebURLService','_onCursorUpdate','getAttachHeader','Unknown\x20user','VIEWPORT_KEY','EXCHANGE_SIGN_URL_SERVER_URL_KEY','MergeInterceptorFactory','LocalUndoRedoService','deserializeToCombResponse','div','collabStatus.syncing','skeleton','assignAColorForMemberID','_state$','complete','_updateSubUnitFromURLParams','_scene','_scheduleSaving','\x20-\x20','_undoRedoService','currentSkeleton$','_cursorShapes','range','_applyRemoteChangeset','show','_handleHover','b64DecodeUnicode','TRANSFORM_CHANGE_OBSERVABLE_TYPE','715008LYMwug','CommentService','UniverCollaborationPlugin','LocalCacheService','/universer-api/file/{fileID}/sign-url','hovered','mergeOverrideWithDependencies','onMissingChangesets','161579EBaIot','?size=','commentUpdateEvent','React','6MNdJqt','session.will-retry','getMemberID','black','_getAPIPrefixPath','[OfflineState]:\x20received\x20changeset.','tag','saveOfflineData','CONFLICT','_throwTelemetryCollaborationNewChangeset','_setupSubUnitSync','UPDATE_CURSOR','_univerInstanceService','_onCombEvent','hasOwnProperty','getItem','permission.content','_changesetSessionId','@univerjs/engine-formula','split','NEW_CHANGESETS','defIds','_unitOnClients','_ensureSubject','x-univer-host','FAIL','snapshotServerUrl','RegularPolygon','SNAPSHOT_INVALID_SNAPSHOT','includes','_entities','BuiltInUIPart','image/gif','_initCloseConn','_id','_createInitialState','\x0aCurrent:\x20','shouldCloseConn','?url=','LICENSE_DISTRO_REJECTED','defs','_instanceService','getCollabEntity','_beforeCloseService','onMouseMove','_collaborationTimeoutTimer','_type','OffLineSingle','backgroundColor','Warning','_initCommandExecutedListener','triggerDblclick','pluginName','take','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Error\x20on\x20receiving\x20event','YUUMI_RATE_OVER_LIMIT','LEAVE','getLatestCsReqIdBySid','_getSendChangesetTimeout','getRenderById','_roomMembers','session.connection-failed','getTime','getSheetBySheetId','_transformRemoteChangesetByIMECache','handleIRemoveRow','YUUMI_SUBSCRIPTION_NOT_FOUND','confirm','toStringTag','[CollaborationSessionService]:\x20socket\x20error','_init','exports','APPLY_PERMISSION_DENIED','_unitStatus','size','path','_disabled','_docStateChangeManagerService','getRangePointData','TOO_MANY_REQUESTS','[PendingState]:\x20received\x20acknowledgement.','_sheetTransformSelectionsService','_onRemoteRetry','getActiveRange','collaboratorID','UNDEFINED','addImageSourceCache','SetWorksheetActivateCommand','onSendChangeset','key','ICommandService','clipPath','[CollaborationEntity]','_tryReconnect','clearTimeout','find','forwardRef','_commandService','SYNCED','SessionStatus','put','off-line-single_clip0_910_343','_createSocket','pushState','focused$','_shouldReportTelemetry','length','close','getCollabEntity$','_replayCachedMutations','_cachedData','AuthzIoHttpService','jiqing500','_logService','HEARTBEAT_INTERVAL_KEY','RevisionService','connection\x20error','type','/object','_initModules','baseRev','_transformSelections','Undefined','subscribe','getUnitType','UniverCore','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitAdded$','fetching\x20missing\x20changesets\x20from\x20','_cursors','_clearRedo','RECV','getInterceptPoints','column','1em','toggleOnline','_getRedoStack','method','onRendered','CommandType','_imageSourceCache','encodeURIComponent','hide','measureText','on-line-single','_scheduleTimestamp','auth.needGotoLoginAlert','rxjs/operators','_saveCache','permissionRejEvent','_textBubble','moveTo','DocCollaborationEntity','_changesetReqId','NO_OTHER_CLIENTS_EDITING','urlChange$','currentColor','syncEditingCollabCursor','UniverNetwork','_clearHeartbeatTimer','editing\x20status\x20changed\x20to','_retryCount','newValue','Injector','HEADER_MENU','PERMISSION_DENIED','EmptyMutation','_localStorageService','workbook','_getDownloadEndpointURL','url','4411494CAgAuu','history','collabStatus.conflict','HEARTBEAT_TIMEOUT_KEY','_shapes','DataLoaderController','loadSheet','univer-online-status','handleMoveRange','_pendingMutations','_getCurrentRevision','setTimeout','transformSelections','_compressMutationService','ranges','getSheetObject','SetTextSelectionsOperation','_remoteChangesetQueue','append','SUCCUSS','assign','refreshPermission','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_eventUnsubscribe','transformUndoRedo','disableLocalCache','COLLAB_WEB_SOCKET_URL_KEY','_disableEditing','156316nqekFo','_handleJoinEvent','registerRenderModule','_updateStatus','memberID','SheetCollaborationEntity','subunit','_socketService','debug','IAuthzIoService','_getCtorByUniverType','image/jpeg','send','fill','executeCommand','transformStack\x20failed!','_collabCursorController','extend','_rescheduleHeartbeat','SEND_CHANGESET_TIMEOUT','debounce','LIVESHARE_NEW_HOST','pipe','getSheetId','getParam','0\x200\x2017\x2016','selection','revision','_updateLocalCache','HTTPService','sequenceExecute','_unitID','_localCacheService','_hover','mapDocumentTypeToUniverType','SEND_CHANGESET_TIMEOUT_KEY','session','getSkeleton','setCurrentUser','startRow','event$','indexOf','_userManagerService','clearInterval','UNKNOWN_CMD','_toggleOffline','awaitingChangeset','objectType','copyFileMeta','SheetsSelectionsService','json','_getLoginPath','BehaviorSubject','Subject','concat','enableSingleActiveInstanceLock','Inject','icon','getUnitStatus$','HttpImport','_registerDependencies','...','registerHTTPInterceptor','[DataLoaderController]','FileId','SetSelectionsOperation','currentTheme$','_syncEditingCollabCursorService','onTransformSelections','body','CollaborationStatusDisplay','offline','toggleOffline','IConfigService','_anchor','UniverInstanceType','setParam','unload','symbol','ITransformService','unsubscribe','UniverCollaboration','_docSkeletonManagerService','result','reverse','PENDING','UNIVER_SHEET','IUIPartsService','textRanges','IMessageService','DesktopCollaborationStatusDisplayController','APPLY_NON_SEQUENTIAL_REVISION','isValidRectRange','handleInsertCol','snapshot','children','src','/role','isTransformMutationsWithChangesetFailure','_onFetchMissResult','_transformPreviousActiveRange','_clearOtherTimers','bind','isActive','prototype','ReplaySubject','UniverSheets','CollaborationController','unit-cache-','lineTo','FETCH_MISS','_state','_docTransformSelectionsService','isEditing','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','switchMap','with','addObject','_snapshotServerService','requestParams','getUnitId','M0\x200H16V16H0z','Error','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/universer-api/stream/file/upload','TEXT_RANGE_LAYER_INDEX','UniverSheetsUi','WebSocketService','_showConflictNotification','DocStateChangeManagerService','random','_incrementRevisionNumber','onTransformIME','_undoStacks','docStateChange$','close$','_lockTransition','updateCollaborator','status','synced','@univerjs-pro/license','[OfflineState]:\x20received\x20acknowledgement.','joinRsp','getValue','idSuffix','init','awaiting_with_pending','collabStatus.offline','getConfig','_getSaveTimeout','getResourcesRequest','endColumn','univer-pro.collaboration-client.single-active-unit-service','_memberService','PERMISSION_REJ','session.room-full','collabWebSocketUrl','getCurrentSelections','parseChangesetToProtocol','list','m1Prime','combineLatest','ImageIoService','@univerjs/docs','UniverRpc','MSG_FOR_ERROR','min','_tryEnsureSocket','throttleTime','\x0aAfter:\x20','image/bmp','state$','rng','onRemoteAck','engine','ImageSourceType','_exhaustRemoteChangesetQueue','current','reqId','getCurrentUser','_updateLocalCursor','collaboration-session-retry','_registerRenderDependencies','UniverIcon','_onConflict','onRemoteRej','createElement','from','/universer-api/snapshot','objectActions','UniverEngineFormula','CHANGESET_ACK','onPointerLeave$','Shape','LICENSE_MAX_UNITS_EXCEEDED','_collaborationSessionService','_selfUnitIDs','localeService','[CollaborationUndoRedoService]','setInterval','ONLINE','_clearScheduledTask','online','collabSubmitChangesetUrl','XHRHTTPImplementation','setShapeProps','ERROR_EXCEED_SIZE','error','requireSession','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','mutations','fetch_missing','HttpExport','csAckEvent','Tools','0\x200\x2016\x2016','SNAPSHOT_URL_KEY','reconnect','save\x20fail\x20reason\x20is\x20','get','_transformStack','sheetID','DocSkeletonManagerService','UNRECOGNIZED','disposeUnit','getRandomValues','headers','_httpService','socket\x20close','popstate','dispose','telemetry\x20info\x20is\x20not\x20initialized','on-line-single_clip0_910_349','_startDocCollabCursor','@univerjs/ui','UniverDocsUi','_heartbeatTimer','joinEvent','displayName','onlineStatusTitle','ENSURE_SNAPSHOT_EXECUTION','/universer-api/comb','doc.mutation.rich-text-editing','_awaitingChangeset','_joinRoom','roomMembers','_startTelemetryCollaborationNewChangeset','SNAPSHOT_SERVER_URL_KEY','collab-client.tooltip.reconnect','BASE64','@univerjs/design','onRemoteRetry','generateRandomId','_notificationService','_renderManagerService','_submitChangeset','fillStyle','loadOfflineData','trim','asObservable','FETCH_MISSING','_setupBeforeClosingHandler','_drawRectRange','LIVESHARE_REQUEST_HOST','POST','className'];_0xb9d3=function(){return _0x87736c;};return _0xb9d3();}