@univerjs-pro/collaboration-client 0.4.1-nightly.202410221606 → 0.4.1-nightly.202410251606

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 _0x5cee(_0x749327,_0x139258){const _0x2cbd69=_0x2cbd();return _0x5cee=function(_0x5ceebc,_0x3110cc){_0x5ceebc=_0x5ceebc-0x87;let _0x42fe86=_0x2cbd69[_0x5ceebc];return _0x42fe86;},_0x5cee(_0x749327,_0x139258);}function _0x2cbd(){const _0x3d9466=['_handleHover','append','UniverSheets','_initStatusComponent','dispose','loginUrlKey','fromCollab','SessionStatus','/object','copyFileMeta','_changesetReqId','IBeforeCloseService','@univerjs-pro/collaboration','_onRefRangeChange','_drawRectRange','getUnitStatus$','ReplaySubject','[SyncedState]:\x20received\x20acknowledgement.','csRejEvent','defIds','enableAuthServer','replace','/fetchmissing?from=','_decreaseWaiting','values','currentColor','snapshotServerUrl','_handleHeartbeatEvent','_disableEditing','_ensureSubject','WebURLService','collabStatus.synced','LOGIN_URL_KEY','b64DecodeUnicode','_sheetTransformSelectionsService','capture','incrementRevOfUnit','liveShareOperation','unit-cache-','COLORS','resend','UniverCore','getCoordByCell','collabStatus.syncing','_startDocCollabCursor','_onConnectionFailed','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','setActiveRange','size','getRandomValues','random','_sendHeartbeatTimer','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','x-univer-host','_docSyncEditingCollabCursorService','message$','_httpService','FETCH_MISS','_docTransformIMECacheService','apply','UniverInstanceType','_clearRedo','debounce','url(#off-line-single_clip0_910_343)','8222808MxHAZi','loadOfflineData','_createSocket','DataLoaderController','_resendTimer','baseRev','_submitChangeset','onMissingChangesets','change$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','CHANGESET_ACK','@univerjs/drawing','_commandService','_members','Inject','onlyLocal','saveSheetBlock','collabStatus.notCollab','unload','cursorInfo','_updateURLWithCurrentState','_initRequestHeader','labelPosition','jiqing500','_compressMutationService','UniverLicense','duration','getOwnPropertyDescriptor','AWAITING','ERROR_IMAGE_TYPE','DocSkeletonManagerService','headers','_setupBeforeClosingHandler','currentTheme$','withCredentials','onPointerLeave$','object','status','closePath','editing\x20status\x20changed\x20to','className','_createInitialState','FromArray','selections','_throwTelemetryCollaborationNewChangeset','contains','collabStatus.conflict','isTransformMutationsWithChangesetFailure','csAckEvent','revision','SheetCollaborationEntity','_draw','/universer-api/stream/file/upload','_transformRemoteChangesetByIMECache','color','_hover','IAuthzIoService','UniverDrawing','144360iGWdyA','startTime','_event$','skeleton','visibilitychange','_onCursorUpdate','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','subunit','entries','_scheduleClearOtherTimer','attrs','_scene','updatePermissionPoint','0\x200\x2017\x2016','newValue','getSkeleton','offline','_telemetryService','/block/','readAsDataURL','isArray','dispose$','isEditing','_getMergeRange','getLatestCsReqIdBySid','RECV','InsertRowCommandId','unitId\x20is\x20not\x20found','INGEST','isPermissionRej','CollaborationController','addImageSourceCache','docStateChange$','session.connection-failed','_cursorInfo$','_getCurrentRevision','_ws','UPDATE_CURSOR','Error','CollaborationSession','CollaborationStatusDisplay','CollaborationSocketService','sendChangesetTimeout','_colorIndex','SetSelectionsOperation','UNIVER_DOC','save\x20fail\x20reason\x20is\x20','unknown','_transitionLocked','PERMISSION_REJ','@univerjs/network','getSheetBlock','awaiting','_getSheetObject','onRemoteAck','setUndoRedoMutationParamsCache','RxDisposable','current','use','_themeService','assignAColorForMemberID','roomInfos','runRefRangeMutations','HTTPRequest','RefRangeService','AUTHZ_URL_KEY','PENDING','_pendingMutations','SheetsSelectionsService','setShapeProps','debug','_transformIMECache','startRow','cmd','onStateChange','_retryCount','IImageIoService','createSocket','push','_showConflictNotification','take','executeCommand','_online','_applyRemoteChangeset','toString','DocCollaborationEntity','c2Prime','type','event$','collabStatus.offline','function','restore','_unitStatus','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','resourceIDs','authzUrl','_scheduleTimestamp','getTypeOfUnitDisposed$','collaboration_new_changeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onRemoteRej','_docSkeletonManagerService','unitId','_onCombEvent','then','forwardRef','disposeWithMe','location','_awaitingChangeset','_getLoginPath','getSheetId','_render','_userManagerService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_localeService','@univerjs/docs-ui','next','liveShareNewHost','session','_getSaveTimeout','Workbook','_getAnchorBounding','LOCAL_CACHE_INTERVAL','collabWebSocketUrl','name','close','prototype','sheetID','hasOwnProperty','encode','10phHqYK','transformByState','_stopTelemetryCollaborationNewChangeset','_onMessage','url','black','/universer-api/comb','INVALID_ARGUMENT','every','UNKNOWN_CODE','[CollaborationEntity]','SNAPSHOT_SERVER_URL_KEY','_initCloseConn','_getUploadFileURL','&to=','UNIVER_SHEET','univer-online-status-title','Injector','COMPRESS_MUTATION_SEND','COLLAB_SUBMIT_CHANGESET_URL','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_removeClearOtherTimer','CompressMutationService','key','changesets','removeMember','2KXZkru','_transformSelections','translate(.97)','round','UniverRpc','c1Prime','_backgroundColor','_socket','getWorkbookSelections','useObservable','show','_context','_updateStatus','drawWith','/role','colorChannel1','Shape','COMMENT_UPDATE','Plugin','LocalUndoRedoService','_disabled','handleIRemoveCol','_imageSourceCache','LIVESHARE_TERMINATE','BuiltInUIPart','_localCacheService','debounceTime','_sendHeartbeat','USERS_ENTER','CollaborationEntity','270BCejtJ','_removeCollabCursors','_undoRedoService','DisposableCollection','[DataLoaderController]','getUnhiddenWorksheets','IConfigService','subUnitId','_colorAssignService','_fetchMissChangesets','deepClone','getResourcesRequest','_updateLocalCursor','LIVESHARE_OPERATION','NodePositionConvertToRectRange','_collabSessionService','userID','tag','react','ALREADY_EXISTS','handleMoveRange','_init','m2Prime','/resources','univer-online-status','toggleOffline','LICENSE_IMPORT_SIZE_EXCEEDED','[OfflineState]:\x20received\x20acknowledgement.','UniverDocs','_anchor','@univerjs/ui','HTTPService','call','blue400','from','EffectRefRangId','_clearScheduledTask','image/gif','MessageType','range','onTransformIME','assign','onTransformChange$','extend','_telemetryInfo','shouldCloseConn','error','IRenderManagerService','@univerjs/sheets','text','\x0aAfter:\x20','univer-online','getTypeOfUnitAdded$','set','startColumn','Undefined','width','onlineStatusTitle','POST','deserializeRangeWithSheet','_range','[PendingState]:\x20received\x20rejection.','save','min','add','method','_anchorDot','collaborators','requireSession','ImageSourceType','_memberService','_clearOtherTimers','94190ulpxHz','shareReplay','socketService','_initStatusListener','_isPermissionRej','Subject','responseType','DependentOn','HttpImport','code','OFFLINE','objectID','UNIVER_UNKNOWN','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_executeRemoteChangeset','on-line-single_clip0_910_349','ITelemetryService','YUUMI_RATE_OVER_LIMIT','commentUpdateEvent','LICENSE_DISTRO_REJECTED','CHANGESET_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_heartbeatTimer','routeKey','\x0aCurrent:\x20','_onFetchMissResult','HELLO','_onLocalMutation','slice','AWAITING_WITH_PENDING','OTHER_CLIENTS_EDITING','handleDeleteRangeMoveUp','_replaceFileID','collaboration.single-unit.warning','COLLAB_WEB_SOCKET_URL','list','trim','InsertRangeMoveRightCommandId','[CollaborationSession]','HEARTBEAT_INTERVAL','getInterceptPoints','_type','getViewport','svg','closeSession','createIdentifier','urlChange$','_renderManagerService','src','getSheetBySheetId','replaceState','_retryConnectingTimer','_handler','CHANGESET_SHOULD_RETRY','PERMISSION_DENIED','getMember','connection\x20error','/universer-api/file/{fileID}/sign-url','compose','fromEvent','VIEW_MAIN','Disposable','_onRemoteChangeset','subscribeEvent','toDisposable','red300','HEARTBEAT_INTERVAL_KEY','generateRandomId','COMPRESS_MUTATION_APPLY','init','delay','Univer','0\x200\x2016\x2016','loadDoc','_drawTextRange','_logService','data','getMergeData','_startTelemetryCollaborationNewChangeset','IUIPartsService','/universer-api/oidc/authpage','UNIVER_COLLABORATION_CLIENT_PLUGIN','body','_socketService','_hideTimer','requestParams','_schedule','_hovered','UNAUTHENTICATED','/-/object/-/batch_allowed','setTimeout','_HTTPService','APPLY_REVISION_CONFILICT','RETRY_CONNECTING_MAX_COUNT_KEY','state','touchDependencies','complete','_cursorShapes','transformChangesets','UniverEngineRender','_unitID','symbol','ITransformService','collaboration-session-retry','conflict.title','_messageService','_setupSubUnitSync','column','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_listenToOnlineEvent','getUnitId','_refreshCollabCursors','interceptor','getParam','_queuedRemoteChangesets','collaboration-client.config','_configService','on-line-single','_toggleOffline','onload','_selfUnitIDs','126AJtBam','_initMergeInterceptor','setAlpha','SnapshotServerOverHTTPService','_roomMembers$','COLLAB_SUBMIT_CHANGESET_URL_KEY','registerHTTPInterceptor','makeDirty','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','createInstance','JOINING','_startCollaboration','useCallback','handleInsertCol','rev','hide','Tooltip','_state$','_removeRoom','_scheduleCollaborationTimeoutTimer','length','MoveRangeCommandId','unshift','unit','_entities','target','CONFLICT','_collaborationTimeoutTimer','_clearCollaborationTimeoutTimer','fromEventSubject','transformIMECache','getSheetObject','asObservable','_transformStack','max','getUnit','combineLatest','_state','_sendingTimer','getValue','setItem','UniverCollaborationClientPlugin','RETRY_CONNECTING_MAX_COUNT','NEW_CHANGESETS','with','toStringTag','getConfig','_listenToOfflineEvent','hovered','conflict.content','OnLineSingle','useDependency','_socket$','arc','_getAPIPrefix','collabCursorState$','CommandType','_onUserLeave','collab-text-anchor-','pushState','_updateSubUnitFromURLParams','_name','ILogService','_uiPartsService','syncEditingCollabCursor','_refRangeService','_substituteRedoStack','status$','reconnect','SEND_CHANGESET_TIMEOUT','handleIRemoveRow','JSONX','_getScale','enableLocalCache','_id','SNAPSHOT_URL_KEY','flatMap','HEARTBEAT','ENSURE_SNAPSHOT_EXECUTION','find','awaitingChangeset','children','NodePositionConvertToCursor','_candidateSocket','LICENSE_MAX_UNITS_EXCEEDED','socket\x20open.','_exhaustRemoteChangesetQueue','_replayCachedMutations','SnapshotService','UniverDocsUi','put','1118163Wugsdz','ONLINE','getCollabEntity$','MSG_FOR_ERROR','triggerDblclick','amd','registerOnClose','/object/','_http','reverse','_onUserJoin','parseProtocolChangeset','map','forEach','Vector2','retryConnectingInterval','_scheduleSaving','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','APPLY_DUPLICATED','getImageSourceCache','_labelPosition','getFocusedUnit','_status$','getRangePointData','has','UniverSheetsUi','IUndoRedoService','_substituteUndoStack','WebSocketService','/universer-api/snapshot/','getUnitType','registerRefRange','?size=','unitID','DeleteRangeMoveUpCommandId','saveImage','_handleEvent','COLLAB_WEB_SOCKET_URL_KEY','getColor','JOIN','_undoStacks','_updateState','_createHandler','setWaitCount','UNIVER_SLIDE','sid','resolve','LOCAL_CACHE_INTERVAL_KEY','_sessionStatus$','_joinRoom','SheetCollabCursorShape','unsubscribe','@univerjs/sheets-ui','backgroundColor','_shouldReportTelemetry','_onRemoteACK','split','memberID','handleDeleteRangeMoveLeft','_redoStacks','_resendWithTimeout','IHTTPImplementation','...','_getUndoStack','mutations','DocSelectionManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Rectangle','EmptyMutation','TEXT_RANGE_LAYER_INDEX','_urlService','bottom','defineProperty','IPermissionService','getItem','_clearTimeoutTimer','_transformUndoRedoStack','updateCollaborator','all','m1Prime','json','_snapshotService','_snapshotServerService','/universer-api/authz','@univerjs/design','_send','serializeCombRequest','getOffsetConfig','getAttachHeader','_entityInit$','merge','_lastPointer','YUUMI_SUBSCRIPTION_NOT_FOUND','CollaborationSessionService','APPLY_NON_SEQUENTIAL_REVISION','localeService','saveOfflineData','onStarting','disableLocalCache','handleInsertRow','path','_saveCache','clipPath','randomUUID','endRow','onRemoteChangeset','post','_transformService','ICollaborationSocketService','useRef','onlineStatusIcon','&source=','Optional','saveChangeset','IURLService','conflict','UnitSnapshot','getDocRanges','SYNCED','_onOffline','idSuffix','#fff','rxjs/operators','_shapes','isInternalEditorID','[SyncedState]:\x20received\x20rejection.','#FFF','icon','fetch_missing','HttpExport','open$','sheetId','failed\x20to\x20apply\x20missed\x20changesets!','workbook','CommentService','_onRemoteRejected','SUBMIT_CHANGESET','reject','getCellPositionByOffset','getRoom','toRgbString','IDLE','font','appendMutation','parseChangesetToProtocol','get','getCurrentRevOfUnit','members','off-line-single','PSEUDO_FETCH_MISSING_RESULT','verdancy600','_timeoutTimer','DocStateChangeManagerService','ImageUploadStatusType','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[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.','fetchThroughInterceptors','_updateLocalCache','doc.mutation.rich-text-editing','fetchMiss','_commentUpdate$','FileId','@univerjs/docs','_incrementRevisionNumber','_color','objectType','Tools','FAIL','_docSkeleton','CollaborationEvent','_revisionService','_handleLeaveEvent','M0\x200H16V16H0z','updatePermissionObjEvent','RichTextEditingMutation','send','_sheetSkeletonManagerService','DocIMEInputManagerService','pipe','_injector','href','replaceTextRanges','IUniverInstanceService','@univerjs/core','override','NOT_COLLAB','transformSelections','_cursors','NO_OTHER_CLIENTS_EDITING','infoRsp','_onRemoteRetry','_onConnectionOpen','fill','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','none','pending','_unlockTransition','defs','getCurrentUser','height','SEND_CHANGESET_TIMEOUT_KEY','collaboratorID','YUUMI_UNABLE_LOAD_URL','onCommentUpdate','reqId','ICommandService','isTransformChangesetsSuccess','_transformPreviousActiveRange','gold400','getActiveSheet','_initEventListeners','uni.network.url-service','_instanceService','_document','setParam','_eventUnsubscribe','collabStatus.fetchMiss','COMPLETION_FINISHED','_onConflict','_changesetSessionId','_registerDependencies','RemoveRowCommandId','1226568LZVDfI','IContextService','error$','_startSheetCollabCursor','collab-client.tooltip.reconnect','parse','_tryEnsureSocket','_permissionService','_collaborationPaused','initWorkbookPermissionChange','UniverDesign','confirm','_change$','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','443660okAoPg','csShouldRetryEvent','_docTransformSelectionsService','getRelativeToViewportCoord','524946NyMzUY','beginPath','USERS_LEAVE','deleteCollaborator','InsertSheetMutation','Warning','isTransformMutationFailure','APPLY_REJECT','searchParams','fetchMissingChangesets','_beforeCloseService','[OfflineState]:\x20received\x20changeset.','DesktopCollaborationStatusDisplayController','getMemberID','onPointerEnter$','focused$','now','_collaborationController','RegularPolygon','moveTo','LIVESHARE_FETCH_OPERATIONS','_getDownloadEndpointURL','_univerInstanceService','IMessageService','state$','signUrlServerUrl','CHANGESET_REVISION_CONFILICT','INotificationService','BASE64','onMissedChangesetFetched','XHRHTTPImplementation','_initCommandExecutedListener','updateMember','downloadEndpointUrl','Rect','_notificationService','_syncEditingCollabCursor','row','onCommandExecuted','_onCursorDelete','fillStyle','action','collaboration.closeRoom','onTransformRemoteChangesetByIMECache','eventID','_socketReady','/allowed','_commentService','joinEvent','@univerjs/rpc','saveSnapshot','lineTo','[UniverCollaborationClientPlugin]','UNRECOGNIZED','_drawAnchor','_cachedData','/-/object/list','session.collaboration-timeout','createElement','addObject','clearTimeout','params','catch','deserializeToCombResponse','ranges','batchAllowed','_textBubble','awaiting_with_pending','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','sheets','_updateCollabCursors','connectInjector','\x20-\x20','_collaborationSessionService','_onRecvEvent','subscribe','top','[CollaborationSessionService]:\x20socket\x20error','transformMutation','rgba(255,\x20255,\x20255,\x200.01)','SetDocZoomRatioOperation','onReady','_config','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOnline','transformMutationsWithChangeset','NOT_FOUND','_transformUndoredo','switchMap','_cursor','mergeOverrideWithDependencies','indexOf','ws://127.0.0.1:8000/universer-api/comb/connect','UserManagerService','displayName','onSendChangeset','onMouseMove','LIVESHARE_NEW_HOST','sessionStatus','string','1em','Error\x20on\x20receiving\x20event','AuthzIoHttpService','IRemoteInstanceService','storage','BehaviorSubject','update','_docStateChangeManagerService','close$','DeleteRangeMoveLeftCommandId','xlink:href','toggleOnline','originalMeta','/collaborator','[CollaborationState]:\x20apply\x20error!','\x20to\x20','MUTATION','fillText','_handleJoinEvent','ISnapshotServerService','sessionStatus$','isActive','ERROR_EXCEED_SIZE','React','_rescheduleHeartbeat','univer-online-status-icon','actions','ImageIoService','getRenderById','ERROR_IMAGE','LICENSE_EXPORT_SIZE_EXCEEDED','WorkbookEditablePermission','UPDATE_PERMISSION_OBJ','_localStorageService','updateOfflineData','_acknowledgedAwaitingChangeset','getTime','origin','CollaborationStatus','clearInterval','exhaustSavingTask','permissionRejEvent','hidden','rxjs','session.room-full','SetTextSelectionsOperation','getCollabCursors$','TOO_MANY_REQUESTS','_loadDoc','cursorInfo$','/new_changes','onRemoteRetry','RevisionService','_checkMissing','transformRemoteChangeset','refreshPermission','getUndoRedoMutationParamsCache','\x20in\x20_schedule.','[CollaborationSessionService]','concatMap','collab-rect-range-','_sessions','getCurrentSelections','_clearHeartbeatTimer','loadSheet','getCollabEntity','@univerjs/telemetry','result','RemoveColCommandId','INTERNAL_ERROR','getOwnPropertySymbols','isTransformMutationsWithChangesetSuccess','univerjs-icon\x20univerjs-icon-','delete','currentSkeleton$','SNAPSHOT_HAS_BEEN_REMOVED','_saveTaskMap','CONNECTOR_DATA_TOO_LARGE','_session','_getSendChangesetTimeout','_loadSheet','@univerjs-pro/license','number','_getRedoStack','off-line-single_clip0_910_343','permission.content','isValidRectRange','_singleActiveUnitService','_registerRenderDependencies','_getSnapshotAPIPrefix','_getAPIPrefixPath','getAncestorScale','div','LIVESHARE_REQUEST_HOST','getActiveRange','APPLY_PERMISSION_DENIED','filter','ILocalStorageService','getCurrent','/unit/','LocalCacheService','Module','_collabCursorController','roles','commentUpdate$','SUCCUSS','UNKNOWN_CMD','getImage','UNIVER_PROJECT','addEventListener','submit\x20changeset\x20error!','concat','reduce','[FetchMissState]','online','UnitEmbedded','editingUnit','encodeURIComponent','startsWith','title','_resendTimeout','SheetSkeletonManagerService','textRanges','YUUMI_URL_COL_OUT_OF_RANGE','SheetPermissionInitController','_waitForHeartbeatResponse','distinctUntilChanged','ColorKit','roomMembers$','not_collab','registerRenderModule','getUniverSheetInstance','measureText','onlineStatus','{fileID}','_socketMessageSubscription','_getSignURL','_initResize','_waitCount','/rev/','SNAPSHOT_INVALID_SNAPSHOT','_initUnitPermissionChange','&assign=','stringify','_roomMembers','@univerjs/engine-formula','onSyncEditingCollabCursor','_clearLocalCache','_assignedColors','onTransformSelections','joinRsp','fillRule','_lockTransition','includes','clear','takeUntil','disposeUnit','_clearUndo','rng','_tryReconnect','stopTime','LocaleService','_sender','history','roomMembers','selection','LEAVE','_createInitialStateImpl','session.will-retry','_unitOnClients','findNodePositionByCharIndex','transform','SHOULD_CLOSE_CONN','sequenceExecute','_remoteChangesetQueue'];_0x2cbd=function(){return _0x3d9466;};return _0x2cbd();}(function(_0x528150,_0x49a516){const _0x9f44fc=_0x5cee,_0x523e42=_0x528150();while(!![]){try{const _0x2d1f63=-parseInt(_0x9f44fc(0xb6))/0x1*(-parseInt(_0x9f44fc(0x2dc))/0x2)+parseInt(_0x9f44fc(0x1f0))/0x3+parseInt(_0x9f44fc(0x2ce))/0x4+-parseInt(_0x9f44fc(0x9c))/0x5*(parseInt(_0x9f44fc(0x2e0))/0x6)+-parseInt(_0x9f44fc(0x195))/0x7*(-parseInt(_0x9f44fc(0x46d))/0x8)+-parseInt(_0x9f44fc(0xd4))/0x9*(parseInt(_0x9f44fc(0x11c))/0xa)+-parseInt(_0x9f44fc(0x433))/0xb;if(_0x2d1f63===_0x49a516)break;else _0x523e42['push'](_0x523e42['shift']());}catch(_0x3a985e){_0x523e42['push'](_0x523e42['shift']());}}}(_0x2cbd,0x3b441),function(_0x43fdc7,_0x2fc157){const _0x4c679b=_0x5cee;typeof exports=='object'&&typeof module<'u'?_0x2fc157(exports,require(_0x4c679b(0x2a7)),require('rxjs'),require('rxjs/operators'),require(_0x4c679b(0x244)),require(_0x4c679b(0xf2)),require(_0x4c679b(0x49f)),require(_0x4c679b(0x3ff)),require(_0x4c679b(0x386)),require(_0x4c679b(0x8d)),require(_0x4c679b(0x104)),require('@univerjs/engine-render'),require(_0x4c679b(0x292)),require(_0x4c679b(0x43e)),require('@univerjs/engine-formula'),require(_0x4c679b(0x224)),require(_0x4c679b(0xe6)),require(_0x4c679b(0x311)),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x4c679b(0x1f5)]?define(['exports',_0x4c679b(0x2a7),'rxjs',_0x4c679b(0x26a),_0x4c679b(0x244),_0x4c679b(0xf2),'@univerjs/network',_0x4c679b(0x3ff),'@univerjs/telemetry',_0x4c679b(0x8d),_0x4c679b(0x104),'@univerjs/engine-render',_0x4c679b(0x292),'@univerjs/drawing',_0x4c679b(0x3d5),_0x4c679b(0x224),_0x4c679b(0xe6),_0x4c679b(0x311),_0x4c679b(0x395)],_0x2fc157):(_0x43fdc7=typeof globalThis<'u'?globalThis:_0x43fdc7||self,_0x2fc157(_0x43fdc7['UniverCollaborationClient']={},_0x43fdc7[_0x4c679b(0x41c)],_0x43fdc7['rxjs'],_0x43fdc7[_0x4c679b(0x36f)]['operators'],_0x43fdc7[_0x4c679b(0x2d8)],_0x43fdc7['UniverUi'],_0x43fdc7['UniverNetwork'],_0x43fdc7['UniverCollaboration'],_0x43fdc7['UniverTelemetry'],_0x43fdc7[_0x4c679b(0x1ee)],_0x43fdc7[_0x4c679b(0x3f5)],_0x43fdc7[_0x4c679b(0x17f)],_0x43fdc7[_0x4c679b(0xf0)],_0x43fdc7[_0x4c679b(0x46c)],_0x43fdc7['UniverEngineFormula'],_0x43fdc7[_0x4c679b(0x209)],_0x43fdc7[_0x4c679b(0x35b)],_0x43fdc7[_0x4c679b(0xba)],_0x43fdc7[_0x4c679b(0x44c)]));}(this,function(_0x5b1653,_0x184ab5,_0x547585,_0x597698,_0x5ad17f,_0x5b2266,_0x58aea2,_0x1137f7,_0x283001,_0x3d65be,_0x1b2dce,_0x5cb457,_0x3fd029,_0x2f1058,_0x3116c6,_0x10073a,_0x5a9ef2,_0x513381,_0x19d040){'use strict';const _0x21d99b=_0x5cee;var _0x12f19=Object[_0x21d99b(0x238)],_0x209516=(_0x1e560d,_0xf06839,_0x13e289)=>_0xf06839 in _0x1e560d?_0x12f19(_0x1e560d,_0xf06839,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13e289}):_0x1e560d[_0xf06839]=_0x13e289,_0x45eb1c=(_0x3e0d1c,_0x34f239,_0x1ed7e9)=>_0x209516(_0x3e0d1c,typeof _0x34f239!=_0x21d99b(0x181)?_0x34f239+'':_0x34f239,_0x1ed7e9);const _0x300440=_0x21d99b(0xa7),_0x481a7e='/universer-api/snapshot',_0x29f9b3=_0x21d99b(0x1e0),_0x3dfec9=_0x21d99b(0x1da),_0x51668f=_0x21d99b(0x13e),_0x4099e3=_0x21d99b(0x33c),_0x42a107=_0x21d99b(0x143),_0x30eec7='HEARTBEAT_TIMEOUT',_0x56fa87=_0x21d99b(0x1bf),_0x14211e=_0x21d99b(0x94),_0x482d2f=_0x21d99b(0xaf),_0x46240a=_0x21d99b(0xa2),_0x47a94f=_0x21d99b(0x413),_0xbacabc=_0x21d99b(0x16c);var _0x5c7846=(_0x1ff7e3=>(_0x1ff7e3[_0x1ff7e3['UNDEFINED']=0x0]='UNDEFINED',_0x1ff7e3[_0x1ff7e3['OK']=0x1]='OK',_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x389)]=0x2]='INTERNAL_ERROR',_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x152)]=0x3]=_0x21d99b(0x152),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x336)]=0x4]='NOT_FOUND',_0x1ff7e3[_0x1ff7e3['UNAUTHENTICATED']=0x5]=_0x21d99b(0x174),_0x1ff7e3[_0x1ff7e3['ALREADY_EXISTS']=0x6]=_0x21d99b(0xe7),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0xa3)]=0x7]=_0x21d99b(0xa3),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x373)]=0x8]=_0x21d99b(0x373),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x2c9)]=0x9]=_0x21d99b(0x2c9),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x2fa)]=0x1389]=_0x21d99b(0x2fa),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x3d0)]=0x1771]=_0x21d99b(0x3d0),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x38f)]=0x1772]=_0x21d99b(0x38f),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x1e3)]=0x1773]=_0x21d99b(0x1e3),_0x1ff7e3[_0x1ff7e3['APPLY_REJECT']=0x1b59]=_0x21d99b(0x2e7),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x24e)]=0x1b5a]=_0x21d99b(0x24e),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x178)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x3a3)]=0x1b5c]=_0x21d99b(0x3a3),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x202)]=0x1b5d]=_0x21d99b(0x202),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x391)]=0x1f41]=_0x21d99b(0x391),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x1e9)]=0x2329]=_0x21d99b(0x1e9),_0x1ff7e3[_0x1ff7e3['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1ff7e3[_0x1ff7e3[_0x21d99b(0xee)]=0x232b]=_0x21d99b(0xee),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x362)]=0x232c]=_0x21d99b(0x362),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x12f)]=0x232d]=_0x21d99b(0x12f),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x2ba)]=0x2711]=_0x21d99b(0x2ba),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x3bf)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x12d)]=0x2713]=_0x21d99b(0x12d),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x24c)]=0x2714]=_0x21d99b(0x24c),_0x1ff7e3[_0x1ff7e3[_0x21d99b(0x315)]=-0x1]=_0x21d99b(0x315),_0x1ff7e3))(_0x5c7846||{}),_0x3322af=(_0x102faa=>(_0x102faa[_0x102faa[_0x21d99b(0x128)]=0x0]=_0x21d99b(0x128),_0x102faa[_0x102faa[_0x21d99b(0x49a)]=0x1]=_0x21d99b(0x49a),_0x102faa[_0x102faa[_0x21d99b(0xab)]=0x2]=_0x21d99b(0xab),_0x102faa[_0x102faa[_0x21d99b(0x21c)]=0x3]=_0x21d99b(0x21c),_0x102faa[_0x102faa[_0x21d99b(0x3b0)]=0x4]='UNIVER_PROJECT',_0x102faa[_0x102faa['UNRECOGNIZED']=-0x1]=_0x21d99b(0x315),_0x102faa))(_0x3322af||{}),_0x399f3c=(_0x32e4b8=>(_0x32e4b8[_0x32e4b8[_0x21d99b(0x3ae)]=0x0]=_0x21d99b(0x3ae),_0x32e4b8[_0x32e4b8[_0x21d99b(0x136)]=0x1]=_0x21d99b(0x136),_0x32e4b8[_0x32e4b8[_0x21d99b(0x217)]=0x2]=_0x21d99b(0x217),_0x32e4b8[_0x32e4b8[_0x21d99b(0x3ea)]=0x3]=_0x21d99b(0x3ea),_0x32e4b8[_0x32e4b8[_0x21d99b(0x489)]=0x4]=_0x21d99b(0x489),_0x32e4b8[_0x32e4b8[_0x21d99b(0x1e2)]=0x5]=_0x21d99b(0x1e2),_0x32e4b8[_0x32e4b8[_0x21d99b(0x486)]=0x6]=_0x21d99b(0x486),_0x32e4b8[_0x32e4b8['UNRECOGNIZED']=-0x1]=_0x21d99b(0x315),_0x32e4b8))(_0x399f3c||{}),_0x20ae8b=(_0x3515bf=>(_0x3515bf[_0x3515bf[_0x21d99b(0xa5)]=0x0]=_0x21d99b(0xa5),_0x3515bf[_0x3515bf['OK']=0x1]='OK',_0x3515bf[_0x3515bf['FAIL']=0x2]=_0x21d99b(0x297),_0x3515bf[_0x3515bf[_0x21d99b(0x315)]=-0x1]=_0x21d99b(0x315),_0x3515bf))(_0x20ae8b||{}),_0x4ccc29=(_0x56d645=>(_0x56d645[_0x56d645[_0x21d99b(0x10b)]=0x0]=_0x21d99b(0x10b),_0x56d645[_0x56d645['HttpImport']=0x1]=_0x21d99b(0x124),_0x56d645[_0x56d645[_0x21d99b(0x271)]=0x2]=_0x21d99b(0x271),_0x56d645[_0x56d645[_0x21d99b(0x3b7)]=0x3]=_0x21d99b(0x3b7),_0x56d645[_0x56d645[_0x21d99b(0x264)]=0x4]=_0x21d99b(0x264),_0x56d645[_0x56d645[_0x21d99b(0x315)]=-0x1]=_0x21d99b(0x315),_0x56d645))(_0x4ccc29||{});const _0x590185=_0x21d99b(0x18f),_0x2d549c={};function _0x568717(_0x121048){const _0x2a9d49=_0x21d99b;var _0x9431ea,_0x42735e,_0x326c5e,_0x468e81,_0x2b7f7e;const _0x20d00d=_0x121048['data'],_0x123067=JSON[_0x2a9d49(0x2d3)](_0x20d00d);switch(_0x123067[_0x2a9d49(0x4b6)]){case _0x399f3c[_0x2a9d49(0x1e2)]:case _0x399f3c[_0x2a9d49(0x136)]:{const _0x177265=_0x123067[_0x2a9d49(0x2ad)];return{..._0x123067,'data':_0x177265,'cmd':_0x123067[_0x2a9d49(0x4b6)]};}case _0x399f3c['JOIN']:{const _0x319766=_0x123067[_0x2a9d49(0x3da)];return{..._0x123067,'data':_0x319766,'cmd':_0x123067[_0x2a9d49(0x4b6)]};}case _0x399f3c[_0x2a9d49(0x486)]:{const _0x5f0977=_0x123067['collaMsg'];switch(_0x5f0977[_0x2a9d49(0x30c)]){case _0x1137f7[_0x2a9d49(0x299)]['PERMISSION_REJ']:return{..._0x123067,'data':{..._0x5f0977,'data':(_0x9431ea=_0x5f0977[_0x2a9d49(0x36d)])==null?void 0x0:_0x9431ea['cs']},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0x43d)]:return{..._0x123067,'data':{..._0x5f0977,'data':(_0x42735e=_0x5f0977[_0x2a9d49(0x463)])==null?void 0x0:_0x42735e['cs']},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7['CollaborationEvent'][_0x2a9d49(0x1c0)]:return{..._0x123067,'data':{..._0x5f0977,'data':(_0x326c5e=_0x5f0977['newCsEvent'])==null?void 0x0:_0x326c5e['cs']},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0x130)]:return{..._0x123067,'data':{..._0x5f0977,'data':(_0x468e81=_0x5f0977[_0x2a9d49(0x405)])==null?void 0x0:_0x468e81['cs']},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7['CollaborationEvent'][_0x2a9d49(0x151)]:return{..._0x123067,'data':{..._0x5f0977,'data':(_0x2b7f7e=_0x5f0977[_0x2a9d49(0x2dd)])==null?void 0x0:_0x2b7f7e['cs']},'cmd':_0x123067['cmd']};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0x492)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977['updateCursorEvent']},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7['CollaborationEvent']['USERS_ENTER']:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x310)]},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7['CollaborationEvent'][_0x2a9d49(0x2e2)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977['leaveEvent']},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)]['LIVESHARE_NEW_HOST']:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x8f)]},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7['CollaborationEvent'][_0x2a9d49(0x2f4)]:case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0xe1)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x418)]},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0xcd)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x8f)]},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)]['MSG_FOR_ERROR']:return{..._0x123067,'data':_0x5f0977,'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0xc7)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x12e)]},'cmd':_0x123067[_0x2a9d49(0x4b6)]};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0x364)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x29d)]},'cmd':_0x123067['cmd']};case _0x1137f7[_0x2a9d49(0x299)][_0x2a9d49(0x3f0)]:return{..._0x123067,'data':{..._0x5f0977,'data':_0x5f0977[_0x2a9d49(0x101)]},'cmd':_0x123067[_0x2a9d49(0x4b6)]};default:return _0x123067;}}default:return _0x123067;}}function _0x58742f(_0x3cb5ac){const _0xca2636=_0x21d99b;switch(_0x3cb5ac[_0xca2636(0x4b6)]){case _0x399f3c[_0xca2636(0x1e2)]:case _0x399f3c[_0xca2636(0x136)]:return JSON[_0xca2636(0x3d3)]({'cmd':_0x3cb5ac[_0xca2636(0x4b6)],'routeKey':_0x3cb5ac[_0xca2636(0x133)]});case _0x399f3c[_0xca2636(0x489)]:{let _0xd85df;switch(_0x3cb5ac[_0xca2636(0x168)][_0xca2636(0x30c)]){case _0x1137f7[_0xca2636(0x299)]['UPDATE_CURSOR']:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)][_0xca2636(0x492)],'updateCursorEvent':_0x3cb5ac['data'][_0xca2636(0x168)]};break;}case _0x1137f7[_0xca2636(0x299)][_0xca2636(0x2e2)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)][_0xca2636(0x2e2)],'leaveEvent':_0x3cb5ac['data'][_0xca2636(0x168)]};break;}case _0x1137f7['CollaborationEvent'][_0xca2636(0xd2)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)][_0xca2636(0xd2)],'joinEvent':_0x3cb5ac['data']['data']};break;}case _0x1137f7[_0xca2636(0x299)][_0xca2636(0x341)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)][_0xca2636(0x341)],'liveShareNewHost':_0x3cb5ac[_0xca2636(0x168)][_0xca2636(0x168)]};break;}case _0x1137f7[_0xca2636(0x299)][_0xca2636(0xe1)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3cb5ac['data'][_0xca2636(0x168)]};break;}case _0x1137f7[_0xca2636(0x299)][_0xca2636(0xcd)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)][_0xca2636(0xcd)],'liveShareTerminate':_0x3cb5ac['data'][_0xca2636(0x168)]};break;}case _0x1137f7['CollaborationEvent'][_0xca2636(0x3a1)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)][_0xca2636(0x3a1)],'liveShareRequestHost':_0x3cb5ac[_0xca2636(0x168)][_0xca2636(0x168)]};break;}case _0x1137f7[_0xca2636(0x299)][_0xca2636(0x2f4)]:{_0xd85df={'eventID':_0x1137f7[_0xca2636(0x299)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xd85df={'eventID':_0x3cb5ac[_0xca2636(0x168)][_0xca2636(0x30c)]};}return JSON[_0xca2636(0x3d3)]({'cmd':_0x3cb5ac[_0xca2636(0x4b6)],'routeKey':_0x3cb5ac['routeKey'],'collaMsg':_0xd85df});}case _0x399f3c[_0xca2636(0x217)]:return JSON[_0xca2636(0x3d3)]({'cmd':_0x3cb5ac[_0xca2636(0x4b6)],'routeKey':_0x3cb5ac['routeKey'],'joinReq':_0x3cb5ac['data']});case _0x399f3c[_0xca2636(0x3ea)]:return JSON[_0xca2636(0x3d3)]({'cmd':_0x3cb5ac['cmd'],'routeKey':_0x3cb5ac['routeKey'],'leaveReq':_0x3cb5ac[_0xca2636(0x168)]});default:throw new Error(_0xca2636(0x188));}}var _0x4a8d09=Object[_0x21d99b(0x238)],_0x48cb44=Object[_0x21d99b(0x44e)],_0x572bb6=(_0x4678ee,_0x34d168,_0x2db4a2,_0x37b835)=>{const _0x59406e=_0x21d99b;for(var _0x1ea311=_0x37b835>0x1?void 0x0:_0x37b835?_0x48cb44(_0x34d168,_0x2db4a2):_0x34d168,_0x4f1dcd=_0x4678ee[_0x59406e(0x1a9)]-0x1,_0x47f5ef;_0x4f1dcd>=0x0;_0x4f1dcd--)(_0x47f5ef=_0x4678ee[_0x4f1dcd])&&(_0x1ea311=(_0x37b835?_0x47f5ef(_0x34d168,_0x2db4a2,_0x1ea311):_0x47f5ef(_0x1ea311))||_0x1ea311);return _0x37b835&&_0x1ea311&&_0x4a8d09(_0x34d168,_0x2db4a2,_0x1ea311),_0x1ea311;},_0x128232=(_0x38674f,_0xf7bb99)=>(_0x5c8d54,_0x38c704)=>_0xf7bb99(_0x5c8d54,_0x38c704,_0x38674f);const _0x23eb1c=_0x184ab5[_0x21d99b(0x149)]('univer-pro.collaboration-client-socket-service');function _0x1b9958(_0x397036,_0x91d74c,_0x15e715){const _0x1cfe91=_0x21d99b;return _0x397036+'/'+_0x91d74c+_0x1cfe91(0x3a7)+_0x15e715+_0x1cfe91(0x376);}_0x5b1653[_0x21d99b(0x496)]=class extends _0x184ab5[_0x21d99b(0x159)]{constructor(_0x7c9d58,_0x4ad3f3,_0x1aa915,_0x642297,_0x42b7fc){const _0x7b8440=_0x21d99b;super(),this[_0x7b8440(0x1f8)]=_0x7c9d58,this[_0x7b8440(0x491)]=_0x4ad3f3,this[_0x7b8440(0x190)]=_0x1aa915,this[_0x7b8440(0x167)]=_0x642297,this['_snapshotServerService']=_0x42b7fc;}[_0x21d99b(0x4ba)](_0x2f41d4){const _0x3c424f=_0x21d99b,_0xce8d8b=this['_ws'][_0x3c424f(0x4ba)](_0x2f41d4);if(!_0xce8d8b)throw new Error(_0x3c424f(0x473));const _0x1ef311=new _0x184ab5[(_0x3c424f(0xd7))](),_0x387bd0=new _0x547585[(_0x3c424f(0x121))]();_0x1ef311[_0x3c424f(0x114)](_0xce8d8b[_0x3c424f(0x34c)][_0x3c424f(0x32b)](_0x3d4b3a=>_0x387bd0[_0x3c424f(0x8e)](_0x3d4b3a))),_0x1ef311[_0x3c424f(0x114)](_0x184ab5[_0x3c424f(0x15c)](()=>_0x387bd0['complete']()));const _0x51a0b3=new _0x547585[(_0x3c424f(0x121))]();_0x1ef311[_0x3c424f(0x114)](_0xce8d8b[_0x3c424f(0x2d0)][_0x3c424f(0x32b)](_0x5aedb5=>_0x51a0b3[_0x3c424f(0x8e)](_0x5aedb5))),_0x1ef311[_0x3c424f(0x114)](_0x184ab5['toDisposable'](()=>_0x51a0b3[_0x3c424f(0x17c)]()));const _0x350612=new _0x547585[(_0x3c424f(0x121))]();_0x1ef311[_0x3c424f(0x114)](_0xce8d8b[_0x3c424f(0x42a)][_0x3c424f(0x32b)](_0x5573f3=>{const _0x23054d=_0x3c424f,_0xd2eb69=_0x568717(_0x5573f3);_0x350612[_0x23054d(0x8e)](_0xd2eb69);})),_0x1ef311[_0x3c424f(0x114)](_0x184ab5[_0x3c424f(0x15c)](()=>_0x350612['complete']()));let _0x3f33fa;const _0x2010da=()=>{const _0x185b25=_0x3c424f;_0x51a0b3['next'](new Event('connection\x20error')),_0x387bd0['next'](new CloseEvent(_0x185b25(0x154))),_0x3f33fa[_0x185b25(0x97)]();};return _0x3f33fa={'memberID':'','close$':_0x387bd0[_0x3c424f(0x1b5)](),'error$':_0x51a0b3['asObservable'](),'open$':_0xce8d8b[_0x3c424f(0x272)],'message$':_0x350612[_0x3c424f(0x1b5)](),'send':_0x19491c=>{const _0x13cd40=_0x3c424f;if(_0x19491c['cmd']===_0x399f3c[_0x13cd40(0x489)]){if(_0x19491c['data'][_0x13cd40(0x30c)]===_0x1137f7[_0x13cd40(0x299)][_0x13cd40(0x278)]){this[_0x13cd40(0x439)](_0x3f33fa,_0x19491c[_0x13cd40(0x168)])[_0x13cd40(0x31e)](_0x5a02ea=>{const _0x2d4289=_0x13cd40;this['_logService'][_0x2d4289(0x102)](_0x5a02ea),_0x2010da();});return;}if(_0x19491c['data']['eventID']===_0x1137f7[_0x13cd40(0x299)]['FETCH_MISSING']){const _0x3f34c3=_0x19491c[_0x13cd40(0x168)];this[_0x13cd40(0xdd)](_0x3f34c3)[_0x13cd40(0x4d5)](_0x3fc8e5=>{const _0x2ba5f7=_0x13cd40;_0x350612['next']({'cmd':_0x399f3c['RECV'],'code':_0x20ae8b['OK'],'routeKey':_0x3f34c3[_0x2ba5f7(0x168)][_0x2ba5f7(0x211)],'routeType':'','data':{'eventID':_0x1137f7[_0x2ba5f7(0x299)][_0x2ba5f7(0x285)],'data':{'changesets':_0x3fc8e5}}});})[_0x13cd40(0x31e)](_0x5952d8=>{const _0x562c48=_0x13cd40;this[_0x562c48(0x167)][_0x562c48(0x102)](_0x5952d8),_0x2010da();});return;}}_0xce8d8b[_0x13cd40(0x29f)](_0x58742f(_0x19491c));},'close':()=>{const _0x12a3be=_0x3c424f;_0xce8d8b['close'](),_0x1ef311[_0x12a3be(0x3f7)]();}},_0x3f33fa;}async[_0x21d99b(0x439)](_0x119dc7,_0x404aee){const _0x106e38=_0x21d99b;var _0x111d77,_0x5d9e1f;const {unitType:_0x5b205a,unitID:_0x110556,changeset:_0x9cb29f}=_0x404aee[_0x106e38(0x168)],_0x34d276={'unitID':_0x110556,'memberID':_0x119dc7[_0x106e38(0x229)],'type':_0x5b205a,'changeset':_0x1137f7[_0x106e38(0x280)](_0x9cb29f)},_0x5c158a=this[_0x106e38(0x190)][_0x106e38(0x1c3)](_0x482d2f),_0x105a7b=this['_configService'][_0x106e38(0x1c3)](_0x590185),_0x2a7fda=_0x1b9958((_0x5d9e1f=(_0x111d77=_0x105a7b==null?void 0x0:_0x105a7b['collabSubmitChangesetUrl'])!=null?_0x111d77:_0x5c158a)!=null?_0x5d9e1f:_0x46240a,_0x5b205a,_0x110556);try{await this['_http']['post'](_0x2a7fda,{'body':_0x34d276});}catch(_0x5683d0){throw this[_0x106e38(0x167)][_0x106e38(0x102)](_0x106e38(0x142),_0x106e38(0x3b2)),_0x5683d0;}}async[_0x21d99b(0xdd)](_0x4330bd){const _0x5c7fde=_0x21d99b,{unitID:_0x3860de,from:_0x14fea0,to:_0x541d3b,unitType:_0x59bcb4}=_0x4330bd[_0x5c7fde(0x168)];return(await this[_0x5c7fde(0x242)][_0x5c7fde(0x2e9)]({'metadata':void 0x0},{'unitID':_0x3860de,'type':_0x59bcb4,'from':_0x14fea0,'to':_0x541d3b}))[_0x5c7fde(0xb4)];}},_0x5b1653['CollaborationSocketService']=_0x572bb6([_0x128232(0x0,_0x184ab5[_0x21d99b(0x441)](_0x58aea2[_0x21d99b(0xf3)])),_0x128232(0x1,_0x184ab5['Inject'](_0x58aea2[_0x21d99b(0x20c)])),_0x128232(0x2,_0x184ab5[_0x21d99b(0xda)]),_0x128232(0x3,_0x184ab5[_0x21d99b(0x1d3)]),_0x128232(0x4,_0x1137f7[_0x21d99b(0x357)])],_0x5b1653['CollaborationSocketService']);const _0x8b2080=_0x21d99b(0x4cf);function _0x412f11(_0x56a564){return JSON['stringify'](_0x56a564)['length'];}class _0x339a93{constructor(){const _0x4482ca=_0x21d99b;_0x45eb1c(this,_0x4482ca(0x290),new _0x547585[(_0x4482ca(0x121))]()),_0x45eb1c(this,_0x4482ca(0x3ac),this['_commentUpdate$']['asObservable']());}[_0x21d99b(0x2bb)](_0x1444fc){const _0x46c158=_0x21d99b;this[_0x46c158(0x290)][_0x46c158(0x8e)](_0x1444fc);}}var _0x580387=Object['defineProperty'],_0x3aa428=Object[_0x21d99b(0x44e)],_0x2e6eda=(_0x5c6552,_0x204cc3,_0x2ec8d0,_0x4894bc)=>{const _0x49a592=_0x21d99b;for(var _0x1cee64=_0x4894bc>0x1?void 0x0:_0x4894bc?_0x3aa428(_0x204cc3,_0x2ec8d0):_0x204cc3,_0x3cceda=_0x5c6552[_0x49a592(0x1a9)]-0x1,_0xf3f0a2;_0x3cceda>=0x0;_0x3cceda--)(_0xf3f0a2=_0x5c6552[_0x3cceda])&&(_0x1cee64=(_0x4894bc?_0xf3f0a2(_0x204cc3,_0x2ec8d0,_0x1cee64):_0xf3f0a2(_0x1cee64))||_0x1cee64);return _0x4894bc&&_0x1cee64&&_0x580387(_0x204cc3,_0x2ec8d0,_0x1cee64),_0x1cee64;},_0x29975f=(_0x2fec18,_0x896e82)=>(_0x431a5f,_0x4e8b02)=>_0x896e82(_0x431a5f,_0x4e8b02,_0x2fec18);let _0x3212c8=class extends _0x184ab5['Disposable']{constructor(_0x5ae2a1,_0x29a389){const _0x244260=_0x21d99b;super(),_0x45eb1c(this,_0x244260(0x3d4),new Map()),(this[_0x244260(0x2f6)]=_0x5ae2a1,this[_0x244260(0x8a)]=_0x29a389,this[_0x244260(0x4d7)](_0x184ab5[_0x244260(0x15c)](_0x547585[_0x244260(0x24a)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x184ab5[_0x244260(0x42f)][_0x244260(0xab)])[_0x244260(0x2a2)](_0x597698[_0x244260(0x1fc)](_0x958ccb=>_0x958ccb[_0x244260(0x18a)]())),this['_univerInstanceService'][_0x244260(0x4ce)](_0x184ab5[_0x244260(0x42f)][_0x244260(0x49a)])['pipe'](_0x597698[_0x244260(0x1fc)](_0x34e0ef=>_0x34e0ef[_0x244260(0x18a)]())),this[_0x244260(0x2f6)]['getTypeOfUnitDisposed$'](_0x184ab5[_0x244260(0x42f)][_0x244260(0x21c)])[_0x244260(0x2a2)](_0x597698[_0x244260(0x1fc)](_0x2a4b0a=>_0x2a4b0a[_0x244260(0x18a)]())))[_0x244260(0x32b)](_0x1aa557=>this[_0x244260(0x1a7)](_0x1aa557)))));}['setCurrentUser'](_0x5ca1e5){const _0x784cf2=_0x21d99b;this[_0x784cf2(0x8a)]['setCurrentUser'](_0x5ca1e5);}[_0x21d99b(0x2b6)](){const _0x3c7c71=_0x21d99b;return this[_0x3c7c71(0x8a)]['getCurrentUser']();}['updateMember'](_0x34b631,_0xba12e4){const _0x3ca402=_0x21d99b;let _0x1428b9=this[_0x3ca402(0x3d4)][_0x3ca402(0x281)](_0x34b631);_0x1428b9||(_0x1428b9=new _0x566502(),this[_0x3ca402(0x3d4)]['set'](_0x34b631,_0x1428b9)),_0x1428b9[_0x3ca402(0x300)](_0xba12e4);}[_0x21d99b(0xb5)](_0x595f20,_0x202b30){const _0x18f09f=_0x21d99b,_0x1e6b8d=this[_0x18f09f(0x3d4)]['get'](_0x595f20);_0x1e6b8d&&_0x1e6b8d['removeMember'](_0x202b30);}[_0x21d99b(0x27b)](_0x23f8df){const _0xb0201b=_0x21d99b;return this[_0xb0201b(0x3d4)][_0xb0201b(0x281)](_0x23f8df);}[_0x21d99b(0x153)](_0x42d71c,_0x3462d5){const _0x2ebb5f=_0x21d99b,_0x15c017=this[_0x2ebb5f(0x3d4)][_0x2ebb5f(0x281)](_0x42d71c);if(_0x15c017)return _0x15c017['getMember'](_0x3462d5);}['_removeRoom'](_0x1dd9a1){const _0x56eabe=_0x21d99b,_0x3ebee2=this[_0x56eabe(0x3d4)][_0x56eabe(0x281)](_0x1dd9a1);_0x3ebee2&&(_0x3ebee2['dispose'](),this[_0x56eabe(0x3d4)][_0x56eabe(0x38d)](_0x1dd9a1));}[_0x21d99b(0x3f7)](){const _0x32f568=_0x21d99b;this['_roomMembers'][_0x32f568(0x1fd)](_0x28d005=>_0x28d005[_0x32f568(0x3f7)]()),this[_0x32f568(0x3d4)][_0x32f568(0x3de)]();}};_0x3212c8=_0x2e6eda([_0x29975f(0x0,_0x184ab5[_0x21d99b(0x2a6)]),_0x29975f(0x1,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0x33d)]))],_0x3212c8);class _0x566502 extends _0x184ab5['Disposable']{constructor(){const _0x225b9c=_0x21d99b;super(...arguments),_0x45eb1c(this,_0x225b9c(0x440),new Map());}['dispose'](){const _0x488999=_0x21d99b;this[_0x488999(0x440)][_0x488999(0x3de)]();}['updateMember'](_0xfe485a){const _0x500bed=_0x21d99b;this[_0x500bed(0x440)][_0x500bed(0x109)](_0xfe485a[_0x500bed(0x229)],_0xfe485a);}[_0x21d99b(0xb5)](_0x2e61f2){const _0x4e938b=_0x21d99b;this[_0x4e938b(0x440)][_0x4e938b(0x38d)](_0x2e61f2);}[_0x21d99b(0x153)](_0x563461){const _0x2881e7=_0x21d99b;return this[_0x2881e7(0x440)][_0x2881e7(0x281)](_0x563461);}}var _0x9b2028=Object[_0x21d99b(0x238)],_0x591a2f=Object[_0x21d99b(0x44e)],_0x31d14a=(_0x3d3195,_0x170171,_0x39e569,_0x6fee1)=>{const _0x4cdeed=_0x21d99b;for(var _0x3b5f81=_0x6fee1>0x1?void 0x0:_0x6fee1?_0x591a2f(_0x170171,_0x39e569):_0x170171,_0x32b145=_0x3d3195[_0x4cdeed(0x1a9)]-0x1,_0x15383f;_0x32b145>=0x0;_0x32b145--)(_0x15383f=_0x3d3195[_0x32b145])&&(_0x3b5f81=(_0x6fee1?_0x15383f(_0x170171,_0x39e569,_0x3b5f81):_0x15383f(_0x3b5f81))||_0x3b5f81);return _0x6fee1&&_0x3b5f81&&_0x9b2028(_0x170171,_0x39e569,_0x3b5f81),_0x3b5f81;},_0x4bf5cc=(_0x25cbd6,_0x1d5902)=>(_0x163d12,_0x27d0c7)=>_0x1d5902(_0x163d12,_0x27d0c7,_0x25cbd6),_0x382638=(_0xf89359=>(_0xf89359[_0xf89359[_0x21d99b(0x27d)]=0x0]='IDLE',_0xf89359[_0xf89359[_0x21d99b(0x19f)]=0x1]=_0x21d99b(0x19f),_0xf89359[_0xf89359['OFFLINE']=0x2]=_0x21d99b(0x126),_0xf89359[_0xf89359[_0x21d99b(0x1f1)]=0x3]='ONLINE',_0xf89359))(_0x382638||{});_0x5b1653[_0x21d99b(0x494)]=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x412aa1,_0x5ac2e8,_0x48d088,_0x3dfc84,_0x152beb,_0x5014a7,_0x476c43,_0xf1e575,_0x298974,_0x475c97){const _0x23e4e7=_0x21d99b;super(),_0x45eb1c(this,_0x23e4e7(0x220),new _0x547585[(_0x23e4e7(0x349))](0x0)),_0x45eb1c(this,_0x23e4e7(0x358),this[_0x23e4e7(0x220)][_0x23e4e7(0x1b5)]()),_0x45eb1c(this,_0x23e4e7(0x46f),new _0x547585[(_0x23e4e7(0x121))]()),_0x45eb1c(this,_0x23e4e7(0x4c5),this['_event$'][_0x23e4e7(0x1b5)]()),_0x45eb1c(this,'_socket'),_0x45eb1c(this,_0x23e4e7(0x3cb)),_0x45eb1c(this,'_collaborationTimeoutTimer'),_0x45eb1c(this,_0x23e4e7(0x226),!0x1),_0x45eb1c(this,_0x23e4e7(0x100),null),(this[_0x23e4e7(0x180)]=_0x412aa1,this[_0x23e4e7(0x167)]=_0x48d088,this[_0x23e4e7(0x2ea)]=_0x3dfc84,this[_0x23e4e7(0x185)]=_0x152beb,this[_0x23e4e7(0x190)]=_0x5014a7,this[_0x23e4e7(0x8c)]=_0x476c43,this[_0x23e4e7(0x11a)]=_0xf1e575,this['_commentService']=_0x298974,this[_0x23e4e7(0x47e)]=_0x475c97,this[_0x23e4e7(0x226)]=!!this[_0x23e4e7(0x47e)],_0x5ac2e8[_0x23e4e7(0x2a2)](_0x547585[_0x23e4e7(0x3df)](this[_0x23e4e7(0x482)]))['subscribe'](_0x1deb3e=>{const _0xac90a6=_0x23e4e7;var _0x1f1b56;typeof _0x1deb3e>'u'||(this[_0xac90a6(0xbd)]=_0x1deb3e,_0x1deb3e?(this[_0xac90a6(0x221)](_0x1deb3e),this[_0xac90a6(0x3cb)]=_0x1deb3e[_0xac90a6(0x42a)][_0xac90a6(0x32b)](_0x32fa1e=>{const _0x33b4a4=_0xac90a6;_0x32fa1e[_0x33b4a4(0x133)]===this[_0x33b4a4(0x180)]&&this['_onCombEvent'](_0x32fa1e);})):(this[_0xac90a6(0x45f)](),this['_sessionStatus$'][_0xac90a6(0x8e)](0x2),(_0x1f1b56=this[_0xac90a6(0x3cb)])==null||_0x1f1b56[_0xac90a6(0x223)](),this[_0xac90a6(0x3cb)]=null));}),this[_0x23e4e7(0x4d7)](this[_0x23e4e7(0x2ea)][_0x23e4e7(0x1f6)](()=>{const _0x2fde03=_0x23e4e7;var _0x4841e5;(_0x4841e5=this[_0x2fde03(0xbd)])==null||_0x4841e5[_0x2fde03(0x29f)]({'cmd':_0x399f3c[_0x2fde03(0x3ea)],'data':{'roomID':this[_0x2fde03(0x180)]}});})));}get[_0x21d99b(0x342)](){const _0x30d36b=_0x21d99b;return this[_0x30d36b(0x220)][_0x30d36b(0x1bc)]();}[_0x21d99b(0x2ed)](){const _0x525c3a=_0x21d99b;var _0x1ac288,_0x34802d;return(_0x34802d=(_0x1ac288=this[_0x525c3a(0xbd)])==null?void 0x0:_0x1ac288[_0x525c3a(0x229)])!=null?_0x34802d:null;}[_0x21d99b(0x3f7)](){const _0x568329=_0x21d99b;super[_0x568329(0x3f7)](),this['dispose$'][_0x568329(0x8e)](),this[_0x568329(0x482)]['complete']();}['close'](){const _0x2796fc=_0x21d99b;var _0x4da790,_0x493725;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4da790=this['_socket'])==null||_0x4da790[_0x2796fc(0x29f)]({'cmd':_0x399f3c[_0x2796fc(0x3ea)],'data':{'roomID':this[_0x2796fc(0x180)]}}),(_0x493725=this[_0x2796fc(0xbd)])==null||_0x493725[_0x2796fc(0x97)](),this['_event$']['complete'](),this['_sessionStatus$'][_0x2796fc(0x17c)](),this[_0x2796fc(0x3f7)]();}[_0x21d99b(0x4d4)](_0x584373){const _0x419ade=_0x21d99b;_0x584373[_0x419ade(0x4b6)]===_0x399f3c[_0x419ade(0x217)]?this['_onJoinRoomEvent'](_0x584373):_0x584373[_0x419ade(0x4b6)]===_0x399f3c[_0x419ade(0x486)]&&this['_onRecvEvent'](_0x584373);}[_0x21d99b(0x221)](_0x2d6e7a){const _0x14c520=_0x21d99b;this['_sessionStatus$'][_0x14c520(0x8e)](0x1),_0x2d6e7a['send']({'cmd':_0x399f3c['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x14c520(0x180)]}]}});}['_onJoinRoomEvent'](_0x42f652){const _0x15da2c=_0x21d99b;var _0x118c32;if(_0x42f652[_0x15da2c(0x125)]===_0x20ae8b[_0x15da2c(0x297)]){this[_0x15da2c(0x185)][_0x15da2c(0xc0)]({'type':_0x5ad17f['MessageType'][_0x15da2c(0x2e5)],'content':this[_0x15da2c(0x8c)]['t'](_0x15da2c(0x370))}),this[_0x15da2c(0x220)][_0x15da2c(0x8e)](0x2);return;}this[_0x15da2c(0x220)]['next'](0x3);const _0x547ba3=(_0x118c32=_0x42f652[_0x15da2c(0x168)][_0x15da2c(0x4aa)][this[_0x15da2c(0x180)]])==null?void 0x0:_0x118c32[_0x15da2c(0x283)];_0x547ba3&&_0x547ba3['forEach'](_0xca0f20=>this[_0x15da2c(0x11a)][_0x15da2c(0x300)](this[_0x15da2c(0x180)],_0xca0f20));}[_0x21d99b(0x32a)](_0x3647f0){const _0x2ac549=_0x21d99b;try{const _0x56e3d3=_0x3647f0[_0x2ac549(0x168)];switch(_0x56e3d3[_0x2ac549(0x30c)]){case _0x1137f7[_0x2ac549(0x299)][_0x2ac549(0xd2)]:this[_0x2ac549(0x1fa)](_0x56e3d3),this[_0x2ac549(0x46f)]['next'](_0x56e3d3);break;case _0x1137f7['CollaborationEvent'][_0x2ac549(0x2e2)]:this[_0x2ac549(0x1ce)](_0x56e3d3),this[_0x2ac549(0x46f)]['next'](_0x56e3d3);break;case _0x1137f7[_0x2ac549(0x299)][_0x2ac549(0x43d)]:case _0x1137f7['CollaborationEvent'][_0x2ac549(0x151)]:this[_0x2ac549(0x9e)](),this[_0x2ac549(0x1b1)](),this[_0x2ac549(0x46f)][_0x2ac549(0x8e)](_0x56e3d3);break;case _0x1137f7[_0x2ac549(0x299)][_0x2ac549(0x1f3)]:this[_0x2ac549(0x167)][_0x2ac549(0x102)](_0x2ac549(0x49b)+JSON[_0x2ac549(0x3d3)](_0x56e3d3)),this[_0x2ac549(0x46f)][_0x2ac549(0x8e)](_0x56e3d3);break;case _0x1137f7[_0x2ac549(0x299)][_0x2ac549(0xc7)]:this[_0x2ac549(0x30f)]['onCommentUpdate'](_0x56e3d3['data']),this[_0x2ac549(0x46f)][_0x2ac549(0x8e)](_0x56e3d3);break;default:this[_0x2ac549(0x46f)][_0x2ac549(0x8e)](_0x56e3d3);}}catch(_0x52584f){this['_logService'][_0x2ac549(0x102)](_0x52584f,_0x3647f0);}}[_0x21d99b(0x1fa)](_0x4f69f2){const _0x3eb8ae=_0x21d99b;this[_0x3eb8ae(0x11a)]['updateMember'](this[_0x3eb8ae(0x180)],_0x4f69f2[_0x3eb8ae(0x168)]);}[_0x21d99b(0x1ce)](_0x3f5dab){const _0x665671=_0x21d99b;this[_0x665671(0x11a)]['removeMember'](this[_0x665671(0x180)],_0x3f5dab[_0x665671(0x168)]['memberID']);}async[_0x21d99b(0x29f)](_0x19cb1e,_0x163335){const _0x26d364=_0x21d99b;if(this[_0x26d364(0x342)]!==0x3||!this[_0x26d364(0xbd)])throw new Error(_0x26d364(0x421));try{_0x19cb1e['eventID']===_0x1137f7[_0x26d364(0x299)][_0x26d364(0x278)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x26d364(0x16a)](_0x19cb1e)),this[_0x26d364(0xbd)][_0x26d364(0x29f)]({'cmd':_0x399f3c[_0x26d364(0x489)],'routeKey':_0x163335,'routeType':'','data':_0x19cb1e});}catch(_0x91d85f){this[_0x26d364(0x167)][_0x26d364(0x102)](_0x91d85f);}}[_0x21d99b(0x1a8)](){const _0x3db50c=_0x21d99b;var _0x431a33;this[_0x3db50c(0x1b0)]=window['setTimeout'](()=>{const _0x32f8bf=_0x3db50c;this[_0x32f8bf(0x1b0)]=null,this[_0x32f8bf(0x185)][_0x32f8bf(0xc0)]({'type':_0x5ad17f['MessageType'][_0x32f8bf(0x493)],'content':this[_0x32f8bf(0x8c)]['t'](_0x32f8bf(0x319))});},(_0x431a33=this[_0x3db50c(0x190)][_0x3db50c(0x1c3)](_0x30eec7))!=null?_0x431a33:0x4e20);}[_0x21d99b(0x1b1)](){const _0x9f1caa=_0x21d99b;this[_0x9f1caa(0x1b0)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x21d99b(0x16a)](_0x40a8af){const _0x2bd399=_0x21d99b;if(!this[_0x2bd399(0x226)])return;const {data:_0x530bb1}=_0x40a8af,{unitID:_0x3eb83f,changeset:_0x1aa06c}=_0x530bb1,{mutations:_0x598ce3,type:_0xf02117}=_0x1aa06c;this[_0x2bd399(0x100)]={'unitId':_0x3eb83f,'type':_0xf02117,'startTime':performance[_0x2bd399(0x2f0)](),'stopTime':0x0,'duration':0x0,'size':_0x412f11(_0x598ce3)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x125ef2=_0x21d99b;if(this[_0x125ef2(0x226)]){if(!this['_telemetryInfo']){this[_0x125ef2(0x167)][_0x125ef2(0x102)](_0x125ef2(0x142),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x125ef2(0x100)][_0x125ef2(0x3e4)]=performance[_0x125ef2(0x2f0)](),this[_0x125ef2(0x100)][_0x125ef2(0x44d)]=this[_0x125ef2(0x100)][_0x125ef2(0x3e4)]-this[_0x125ef2(0x100)][_0x125ef2(0x46e)],this[_0x125ef2(0x47e)][_0x125ef2(0x416)](_0x8b2080,this[_0x125ef2(0x100)]),this['_telemetryInfo']=null;}}[_0x21d99b(0x45f)](){const _0x51c57a=_0x21d99b;this[_0x51c57a(0x100)]=null;}},_0x5b1653[_0x21d99b(0x494)]=_0x31d14a([_0x4bf5cc(0x2,_0x184ab5[_0x21d99b(0x1d3)]),_0x4bf5cc(0x3,_0x5b2266['IBeforeCloseService']),_0x4bf5cc(0x4,_0x5b2266[_0x21d99b(0x2f7)]),_0x4bf5cc(0x5,_0x184ab5[_0x21d99b(0xda)]),_0x4bf5cc(0x6,_0x184ab5['Inject'](_0x184ab5[_0x21d99b(0x3e5)])),_0x4bf5cc(0x7,_0x184ab5[_0x21d99b(0x441)](_0x3212c8)),_0x4bf5cc(0x8,_0x184ab5[_0x21d99b(0x441)](_0x339a93)),_0x4bf5cc(0x9,_0x184ab5[_0x21d99b(0x260)](_0x283001[_0x21d99b(0x12c)]))],_0x5b1653['CollaborationSession']);var _0x1454f8=Object[_0x21d99b(0x238)],_0x137509=Object[_0x21d99b(0x44e)],_0x4b7b79=(_0x16e726,_0x2d6a4f,_0xc755cc,_0xabc4e7)=>{const _0x13f6ca=_0x21d99b;for(var _0x1d77c1=_0xabc4e7>0x1?void 0x0:_0xabc4e7?_0x137509(_0x2d6a4f,_0xc755cc):_0x2d6a4f,_0x10e465=_0x16e726[_0x13f6ca(0x1a9)]-0x1,_0x2f15ec;_0x10e465>=0x0;_0x10e465--)(_0x2f15ec=_0x16e726[_0x10e465])&&(_0x1d77c1=(_0xabc4e7?_0x2f15ec(_0x2d6a4f,_0xc755cc,_0x1d77c1):_0x2f15ec(_0x1d77c1))||_0x1d77c1);return _0xabc4e7&&_0x1d77c1&&_0x1454f8(_0x2d6a4f,_0xc755cc,_0x1d77c1),_0x1d77c1;},_0x388c84=(_0x16072f,_0x15c4f4)=>(_0x5ac1aa,_0x203211)=>_0x15c4f4(_0x5ac1aa,_0x203211,_0x16072f);_0x5b1653['CollaborationSessionService']=class extends _0x184ab5['Disposable']{constructor(_0x20a264,_0x1eb898,_0x2ac7d1,_0x353c8e,_0x2e223f,_0x447c52){const _0x3d1fcc=_0x21d99b;super(),_0x45eb1c(this,_0x3d1fcc(0x1c9),new _0x547585['BehaviorSubject'](void 0x0)),_0x45eb1c(this,'socket$',this['_socket$'][_0x3d1fcc(0x1b5)]()),_0x45eb1c(this,_0x3d1fcc(0x1e8),null),_0x45eb1c(this,_0x3d1fcc(0x381),new Map()),_0x45eb1c(this,_0x3d1fcc(0x206),new _0x547585[(_0x3d1fcc(0x349))](_0x382638[_0x3d1fcc(0x27d)])),_0x45eb1c(this,_0x3d1fcc(0x1d8),this[_0x3d1fcc(0x206)][_0x3d1fcc(0x1b5)]()),_0x45eb1c(this,_0x3d1fcc(0x30d),!0x1),_0x45eb1c(this,'_retryConnectingTimer'),_0x45eb1c(this,_0x3d1fcc(0x4b8),0x0),_0x45eb1c(this,_0x3d1fcc(0x426)),_0x45eb1c(this,_0x3d1fcc(0x287)),(this['_injector']=_0x20a264,this['_localeService']=_0x1eb898,this[_0x3d1fcc(0x185)]=_0x2ac7d1,this[_0x3d1fcc(0x167)]=_0x353c8e,this[_0x3d1fcc(0x190)]=_0x2e223f,this[_0x3d1fcc(0x16f)]=_0x447c52,this[_0x3d1fcc(0x2c2)]());}get[_0x21d99b(0xbd)](){const _0xa8fb58=_0x21d99b;return this['_socket$'][_0xa8fb58(0x1bc)]();}[_0x21d99b(0x2c2)](){const _0x152b02=_0x21d99b;this['_listenToOfflineEvent'](),this[_0x152b02(0x189)]();}['dispose'](){const _0x17e48e=_0x21d99b;super[_0x17e48e(0x3f7)](),this['_sessions']['forEach'](_0x28fa69=>_0x28fa69['dispose']()),this[_0x17e48e(0x381)][_0x17e48e(0x3de)](),this[_0x17e48e(0x206)]['complete']();}async[_0x21d99b(0x118)](_0xb054c4){const _0x44c1e4=_0x21d99b;if(this[_0x44c1e4(0x381)][_0x44c1e4(0x208)](_0xb054c4))return this[_0x44c1e4(0x381)]['get'](_0xb054c4);this[_0x44c1e4(0x2d4)]();const _0x266c66=this[_0x44c1e4(0x2a3)][_0x44c1e4(0x19e)](_0x5b1653[_0x44c1e4(0x494)],_0xb054c4,this[_0x44c1e4(0x1c9)]['asObservable']());return this[_0x44c1e4(0x381)][_0x44c1e4(0x109)](_0xb054c4,_0x266c66),_0x266c66;}[_0x21d99b(0x148)](_0x5db0d6){const _0x4f1e95=_0x21d99b;var _0x2faad8;const _0x299c28=this[_0x4f1e95(0x381)][_0x4f1e95(0x281)](_0x5db0d6);_0x299c28&&(this[_0x4f1e95(0x381)][_0x4f1e95(0x38d)](_0x5db0d6),_0x299c28[_0x4f1e95(0x97)]()),this[_0x4f1e95(0x381)][_0x4f1e95(0x423)]||(_0x2faad8=this[_0x4f1e95(0xbd)])==null||_0x2faad8[_0x4f1e95(0x97)]();}[_0x21d99b(0x1d9)](){const _0x253cf4=_0x21d99b;this[_0x253cf4(0x4b8)]=0x0,this[_0x253cf4(0x14f)]!=null&&(clearTimeout(this[_0x253cf4(0x14f)]),this['_retryConnectingTimer']=null),this[_0x253cf4(0x3e3)]();}[_0x21d99b(0x435)](){const _0x3f5ac0=_0x21d99b;var _0x92753e,_0xbeffa3;const _0x4dbb9f=this[_0x3f5ac0(0x190)][_0x3f5ac0(0x1c3)](_0x51668f),_0x2800b7=this[_0x3f5ac0(0x190)][_0x3f5ac0(0x1c3)](_0x590185),_0x5b89db=(_0xbeffa3=(_0x92753e=_0x2800b7==null?void 0x0:_0x2800b7[_0x3f5ac0(0x95)])!=null?_0x92753e:_0x4dbb9f)!=null?_0xbeffa3:_0x4099e3,_0x9a480e=this[_0x3f5ac0(0x16f)]['createSocket'](_0x5b89db);return this['_candidateSocket']=_0x9a480e,_0x9a480e;}['_tryEnsureSocket'](){const _0x2531c7=_0x21d99b;var _0x55b0cf,_0x17fed1;try{const _0x4087c3=(_0x17fed1=(_0x55b0cf=this[_0x2531c7(0xbd)])!=null?_0x55b0cf:this['_candidateSocket'])!=null?_0x17fed1:this[_0x2531c7(0x435)]();if(_0x4087c3){const _0x83f447=_0x4087c3['send'];_0x4087c3[_0x2531c7(0x29f)]=_0xc9ff39=>(this['_rescheduleHeartbeat'](),_0x83f447['apply'](_0x4087c3,[_0xc9ff39])),_0x4087c3[_0x2531c7(0x42a)][_0x2531c7(0x32b)](_0x2f94e3=>this['_onMessage'](_0x4087c3,_0x2f94e3)),_0x4087c3[_0x2531c7(0x2d0)][_0x2531c7(0x2a2)](_0x597698[_0x2531c7(0x4bd)](0x1))[_0x2531c7(0x32b)](_0x2be2f5=>this[_0x2531c7(0x167)][_0x2531c7(0x102)](_0x2531c7(0x32d),_0x2be2f5)),_0x4087c3['open$'][_0x2531c7(0x2a2)](_0x597698['take'](0x1))[_0x2531c7(0x32b)](()=>{this['_onConnectionOpen'](_0x4087c3);}),_0x4087c3[_0x2531c7(0x34c)][_0x2531c7(0x2a2)](_0x597698[_0x2531c7(0x4bd)](0x1))[_0x2531c7(0x32b)](_0x46bfb0=>{const _0x38127e=_0x2531c7;this[_0x38127e(0x167)][_0x38127e(0x4b3)](_0x38127e(0x37e),'socket\x20close',_0x46bfb0),this[_0x38127e(0x420)]();});}}catch(_0x3d193d){this['_logService'][_0x2531c7(0x102)](_0x3d193d),this['_onConnectionFailed']();}}[_0x21d99b(0x2af)](_0x5d8518){const _0x2ac94f=_0x21d99b;this['_logService'][_0x2ac94f(0x4b3)](_0x2ac94f(0x37e),_0x2ac94f(0x1ea)),_0x5d8518[_0x2ac94f(0x29f)]({'cmd':_0x399f3c[_0x2ac94f(0x136)]}),this[_0x2ac94f(0x35c)]();}[_0x21d99b(0x1c4)](){const _0x2b060f=_0x21d99b;window[_0x2b060f(0x3b1)]('offline',()=>this[_0x2b060f(0x267)]());}['_onOffline'](){const _0x56064b=_0x21d99b;this[_0x56064b(0x30d)]=!0x1,this['_candidateSocket']=null,this[_0x56064b(0x206)]['next'](_0x382638[_0x56064b(0x126)]),this[_0x56064b(0x1c9)][_0x56064b(0x8e)](null),this[_0x56064b(0x23b)](),this[_0x56064b(0x383)]();}[_0x21d99b(0x420)](){const _0x54bc17=_0x21d99b;var _0x413125;this['_onOffline'](),this[_0x54bc17(0x4b8)]<((_0x413125=this[_0x54bc17(0x190)][_0x54bc17(0x1c3)](_0x56fa87))!=null?_0x413125:0x3)?(this[_0x54bc17(0x185)][_0x54bc17(0xc0)]({'key':_0x54bc17(0x183),'type':_0x5ad17f[_0x54bc17(0xfa)]['Warning'],'content':this[_0x54bc17(0x8c)]['t'](_0x54bc17(0x3ec))}),this[_0x54bc17(0x3e3)]()):this['_messageService'][_0x54bc17(0xc0)]({'key':_0x54bc17(0x183),'type':_0x5ad17f['MessageType'][_0x54bc17(0x493)],'content':this['_localeService']['t'](_0x54bc17(0x48e))});}['_listenToOnlineEvent'](){const _0x2d51ea=_0x21d99b,_0x1879e1=()=>{const _0x1f7bc5=_0x5cee;this[_0x1f7bc5(0xbd)]||this[_0x1f7bc5(0x1d9)]();},_0x4fd486=()=>{const _0x502f39=_0x5cee;this[_0x502f39(0xbd)]||document['visibilityState']===_0x502f39(0x36e)||this[_0x502f39(0x1d9)]();};window['addEventListener']('online',_0x1879e1),document[_0x2d51ea(0x3b1)](_0x2d51ea(0x471),_0x4fd486);}[_0x21d99b(0x3e3)](){const _0x3c5eda=_0x21d99b;var _0x40d835;const _0x3f7036=this[_0x3c5eda(0x4b8)],_0x37f6b4=this[_0x3c5eda(0x190)]['getConfig'](_0x590185),_0x6b8576=_0x3f7036===0x0?0x0:((_0x40d835=_0x37f6b4==null?void 0x0:_0x37f6b4[_0x3c5eda(0x1ff)])!=null?_0x40d835:0x4e20)*0x2**_0x3f7036;this[_0x3c5eda(0x14f)]=window[_0x3c5eda(0x176)](()=>{const _0x518a21=_0x3c5eda;clearTimeout(this[_0x518a21(0x14f)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x6b8576),this['_retryCount']+=0x1;}[_0x21d99b(0x9f)](_0x14a908,_0x506089){const _0x760d24=_0x21d99b,{cmd:_0x2368c2}=_0x506089;_0x2368c2===_0x399f3c[_0x760d24(0x136)]&&!this['_socketReady']&&(_0x14a908['memberID']=_0x506089[_0x760d24(0x168)][_0x760d24(0x229)],this[_0x760d24(0x1c9)][_0x760d24(0x8e)](_0x14a908),this[_0x760d24(0x206)][_0x760d24(0x8e)](_0x382638['ONLINE']),this['_socketReady']=!0x0,this[_0x760d24(0x1e8)]=null),_0x2368c2===_0x399f3c[_0x760d24(0x1e2)]&&this[_0x760d24(0x23b)](),this['_rescheduleHeartbeat']();}[_0x21d99b(0x35c)](){const _0x22ac3d=_0x21d99b;var _0x38f0d7;this[_0x22ac3d(0x383)](),this[_0x22ac3d(0x426)]=window['setTimeout'](()=>this[_0x22ac3d(0xd1)](),(_0x38f0d7=this[_0x22ac3d(0x190)][_0x22ac3d(0x1c3)](_0x42a107))!=null?_0x38f0d7:0x7530);}[_0x21d99b(0xd1)](){const _0x2f16b4=_0x21d99b;this[_0x2f16b4(0xbd)]['send']({'cmd':_0x399f3c[_0x2f16b4(0x1e2)]}),this['_waitForHeartbeatResponse']();}[_0x21d99b(0x3c1)](){const _0x1b9231=_0x21d99b;var _0x27a179;this[_0x1b9231(0x287)]=window[_0x1b9231(0x176)](()=>this['_onConnectionFailed'](),(_0x27a179=this[_0x1b9231(0x190)][_0x1b9231(0x1c3)](_0x30eec7))!=null?_0x27a179:0x4e20);}['_clearHeartbeatTimer'](){const _0x5aa03c=_0x21d99b;this[_0x5aa03c(0x426)]!=null&&(clearTimeout(this[_0x5aa03c(0x426)]),this[_0x5aa03c(0x426)]=null);}[_0x21d99b(0x23b)](){const _0x3d9f73=_0x21d99b;this[_0x3d9f73(0x287)]!=null&&(clearTimeout(this[_0x3d9f73(0x287)]),this[_0x3d9f73(0x287)]=null);}},_0x5b1653[_0x21d99b(0x24d)]=_0x4b7b79([_0x388c84(0x0,_0x184ab5['Inject'](_0x184ab5['Injector'])),_0x388c84(0x1,_0x184ab5['Inject'](_0x184ab5[_0x21d99b(0x3e5)])),_0x388c84(0x2,_0x5b2266[_0x21d99b(0x2f7)]),_0x388c84(0x3,_0x184ab5[_0x21d99b(0x1d3)]),_0x388c84(0x4,_0x184ab5[_0x21d99b(0xda)]),_0x388c84(0x5,_0x23eb1c)],_0x5b1653['CollaborationSessionService']);for(var _0x448510=[],_0xd5f020=0x0;_0xd5f020<0x100;++_0xd5f020)_0x448510[_0x21d99b(0x4bb)]((_0xd5f020+0x100)[_0x21d99b(0x4c1)](0x10)[_0x21d99b(0x138)](0x1));function _0x1152cc(_0x399552,_0x142576=0x0){return(_0x448510[_0x399552[_0x142576+0x0]]+_0x448510[_0x399552[_0x142576+0x1]]+_0x448510[_0x399552[_0x142576+0x2]]+_0x448510[_0x399552[_0x142576+0x3]]+'-'+_0x448510[_0x399552[_0x142576+0x4]]+_0x448510[_0x399552[_0x142576+0x5]]+'-'+_0x448510[_0x399552[_0x142576+0x6]]+_0x448510[_0x399552[_0x142576+0x7]]+'-'+_0x448510[_0x399552[_0x142576+0x8]]+_0x448510[_0x399552[_0x142576+0x9]]+'-'+_0x448510[_0x399552[_0x142576+0xa]]+_0x448510[_0x399552[_0x142576+0xb]]+_0x448510[_0x399552[_0x142576+0xc]]+_0x448510[_0x399552[_0x142576+0xd]]+_0x448510[_0x399552[_0x142576+0xe]]+_0x448510[_0x399552[_0x142576+0xf]])['toLowerCase']();}var _0x3b4d96,_0x3ef434=new Uint8Array(0x10);function _0x49d9b3(){const _0xea0f9d=_0x21d99b;if(!_0x3b4d96&&(_0x3b4d96=typeof crypto<'u'&&crypto[_0xea0f9d(0x424)]&&crypto[_0xea0f9d(0x424)]['bind'](crypto),!_0x3b4d96))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return _0x3b4d96(_0x3ef434);}var _0x3911f5=typeof crypto<'u'&&crypto[_0x21d99b(0x257)]&&crypto[_0x21d99b(0x257)]['bind'](crypto);const _0x21faec={'randomUUID':_0x3911f5};function _0x53a099(_0x5c92d3,_0x43211a,_0x2ad83d){const _0x169e8f=_0x21d99b;if(_0x21faec[_0x169e8f(0x257)]&&!_0x43211a&&!_0x5c92d3)return _0x21faec[_0x169e8f(0x257)]();_0x5c92d3=_0x5c92d3||{};var _0x411abf=_0x5c92d3[_0x169e8f(0x425)]||(_0x5c92d3[_0x169e8f(0x3e2)]||_0x49d9b3)();return _0x411abf[0x6]=_0x411abf[0x6]&0xf|0x40,_0x411abf[0x8]=_0x411abf[0x8]&0x3f|0x80,_0x1152cc(_0x411abf);}var _0x5e6926=Object[_0x21d99b(0x238)],_0x4e9c59=Object[_0x21d99b(0x44e)],_0x3d8dd0=(_0x1bb5c1,_0x4bc67d,_0x7ba1f0,_0x4adf70)=>{for(var _0x4b4720=_0x4adf70>0x1?void 0x0:_0x4adf70?_0x4e9c59(_0x4bc67d,_0x7ba1f0):_0x4bc67d,_0x295520=_0x1bb5c1['length']-0x1,_0x240abf;_0x295520>=0x0;_0x295520--)(_0x240abf=_0x1bb5c1[_0x295520])&&(_0x4b4720=(_0x4adf70?_0x240abf(_0x4bc67d,_0x7ba1f0,_0x4b4720):_0x240abf(_0x4b4720))||_0x4b4720);return _0x4adf70&&_0x4b4720&&_0x5e6926(_0x4bc67d,_0x7ba1f0,_0x4b4720),_0x4b4720;},_0x3cb42b=(_0x61d948,_0x57bd63)=>(_0xb34c76,_0x2f3fc9)=>_0x57bd63(_0xb34c76,_0x2f3fc9,_0x61d948);let _0x11355a=class{constructor(_0x4b77f8,_0x423f14,_0x405d99){const _0x530278=_0x21d99b;this[_0x530278(0x2a3)]=_0x4b77f8,this[_0x530278(0x25b)]=_0x423f14,this['_renderManagerService']=_0x405d99;}[_0x21d99b(0x1b3)](_0x89ae8){const _0x6825af=_0x21d99b;this[_0x6825af(0x23c)](_0x89ae8),this[_0x6825af(0x2bf)](_0x89ae8);}[_0x21d99b(0x37a)](_0x639eb8){const _0x4d0fb0=_0x21d99b,{unitID:_0x4b25c9}=_0x639eb8,_0x1a65b5=this[_0x4d0fb0(0x14b)][_0x4d0fb0(0x360)](_0x4b25c9)['with'](_0x3d65be['DocIMEInputManagerService']),{redoCache:_0x19181f}=_0x1a65b5[_0x4d0fb0(0x37c)]();if(_0x19181f['length']===0x0)return _0x639eb8;let _0xae47fc=_0x184ab5[_0x4d0fb0(0x296)][_0x4d0fb0(0xde)](_0x639eb8[_0x4d0fb0(0x230)][0x0]);for(let _0x20d666=0x0;_0x20d666<_0x19181f[_0x4d0fb0(0x1a9)];_0x20d666++){const _0x5a45bf={'id':_0x4d0fb0(0x28e),'params':{..._0x19181f[_0x20d666]}},_0x344f9f=this['_transformService'][_0x4d0fb0(0x32e)](_0xae47fc,_0x5a45bf,!0x1);if(_0x1137f7['isTransformMutationFailure'](_0x344f9f))throw _0x344f9f['error'];_0xae47fc=_0x344f9f['m1Prime'];}return{..._0x184ab5['Tools'][_0x4d0fb0(0xde)](_0x639eb8),'mutations':[_0xae47fc]};}[_0x21d99b(0x23c)](_0x5202e5){const _0x150691=_0x21d99b,{unitID:_0x3132e5}=_0x5202e5,_0xabea0f=this[_0x150691(0x14b)][_0x150691(0x360)](_0x3132e5)['with'](_0x3d65be[_0x150691(0x2a1)]),{undoCache:_0x281b92,redoCache:_0x49fb0e}=_0xabea0f[_0x150691(0x37c)]();if(_0x281b92[_0x150691(0x1a9)]===0x0||_0x49fb0e[_0x150691(0x1a9)]===0x0)return;const _0xa4b1d9=[],_0xfbeb31=[];let _0x4dd13e=_0x184ab5['Tools'][_0x150691(0xde)](_0x5202e5[_0x150691(0x230)][0x0]),_0x589626=_0x184ab5[_0x150691(0x296)][_0x150691(0xde)](_0x5202e5[_0x150691(0x230)][0x0]);for(let _0x595422=_0x281b92[_0x150691(0x1a9)]-0x1;_0x595422>=0x0;_0x595422--){const _0x1406c5={'id':_0x150691(0x28e),'params':{..._0x281b92[_0x595422]}},_0x11c2d3={'id':_0x150691(0x28e),'params':{..._0x49fb0e[_0x595422]}},_0x2e3a59=this[_0x150691(0x25b)][_0x150691(0x32e)](_0x4dd13e,_0x1406c5,!0x1),_0xc5a49e=this[_0x150691(0x25b)][_0x150691(0x32e)](_0x589626,_0x11c2d3,!0x1);if(_0x1137f7[_0x150691(0x2e6)](_0x2e3a59))throw _0x2e3a59[_0x150691(0x102)];if(_0x1137f7[_0x150691(0x2e6)](_0xc5a49e))throw _0xc5a49e[_0x150691(0x102)];_0xa4b1d9[_0x150691(0x1ab)](_0x2e3a59[_0x150691(0xea)][_0x150691(0x31d)]),_0xfbeb31[_0x150691(0x1ab)](_0xc5a49e[_0x150691(0xea)]['params']),_0x4dd13e=_0x2e3a59['m1Prime'],_0x589626=_0xc5a49e[_0x150691(0x23f)];}_0xabea0f[_0x150691(0x4a4)]({'undoCache':_0xa4b1d9,'redoCache':_0xfbeb31});}[_0x21d99b(0x2bf)](_0x5ab7b1){const _0x3207d2=_0x21d99b,{unitID:_0x53361b}=_0x5ab7b1,_0x5eeea9=this[_0x3207d2(0x14b)][_0x3207d2(0x360)](_0x53361b)[_0x3207d2(0x1c1)](_0x3d65be[_0x3207d2(0x2a1)]),_0x6efcac=_0x5eeea9[_0x3207d2(0x3a2)]();if(_0x6efcac==null)return;const _0x56a345=[{'id':_0x3207d2(0x28e),'params':{'unitId':_0x5ab7b1[_0x3207d2(0x211)],'actions':null,'textRanges':[_0x6efcac]}}],_0x1c0934=this[_0x3207d2(0x25b)][_0x3207d2(0x335)](_0x5ab7b1,_0x56a345);if(!_0x1137f7[_0x3207d2(0x38b)](_0x1c0934))throw _0x1c0934[_0x3207d2(0x102)];const _0x50ec6f=_0x1c0934[_0x3207d2(0xea)][0x0][_0x3207d2(0x31d)][_0x3207d2(0x3be)];Array['isArray'](_0x50ec6f)&&_0x50ec6f['length']&&_0x5eeea9[_0x3207d2(0x422)](_0x50ec6f[0x0]);}};_0x11355a=_0x3d8dd0([_0x3cb42b(0x0,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['Injector'])),_0x3cb42b(0x1,_0x1137f7['ITransformService']),_0x3cb42b(0x2,_0x5cb457[_0x21d99b(0x103)])],_0x11355a);var _0x4b94db=Object[_0x21d99b(0x238)],_0x45a5c=Object[_0x21d99b(0x44e)],_0x42c13d=(_0x543b90,_0x10a818,_0x4b9949,_0x2c62bb)=>{const _0x12a248=_0x21d99b;for(var _0x2068da=_0x2c62bb>0x1?void 0x0:_0x2c62bb?_0x45a5c(_0x10a818,_0x4b9949):_0x10a818,_0x28d338=_0x543b90[_0x12a248(0x1a9)]-0x1,_0x16a6e8;_0x28d338>=0x0;_0x28d338--)(_0x16a6e8=_0x543b90[_0x28d338])&&(_0x2068da=(_0x2c62bb?_0x16a6e8(_0x10a818,_0x4b9949,_0x2068da):_0x16a6e8(_0x2068da))||_0x2068da);return _0x2c62bb&&_0x2068da&&_0x4b94db(_0x10a818,_0x4b9949,_0x2068da),_0x2068da;},_0x5173bb=(_0x56c53f,_0x21a4aa)=>(_0x478855,_0x4508e7)=>_0x21a4aa(_0x478855,_0x4508e7,_0x56c53f);_0x5b1653[_0x21d99b(0x3a8)]=class extends _0x184ab5[_0x21d99b(0x159)]{constructor(_0x2043a4,_0x544b3d,_0x3d7d44,_0x150236,_0x33ce1e){const _0x34c022=_0x21d99b;super(),_0x45eb1c(this,_0x34c022(0x317),new Map()),_0x45eb1c(this,_0x34c022(0x390),new Map()),_0x45eb1c(this,_0x34c022(0xca),!0x1),(this[_0x34c022(0x190)]=_0x2043a4,this[_0x34c022(0x365)]=_0x544b3d,this[_0x34c022(0x2ea)]=_0x3d7d44,this[_0x34c022(0x8c)]=_0x150236,this[_0x34c022(0x29a)]=_0x33ce1e,this['_setupBeforeClosingHandler']());}[_0x21d99b(0x252)](){const _0x5c43f9=_0x21d99b;this[_0x5c43f9(0xca)]=!0x0;}[_0x21d99b(0x1de)](){const _0x206fea=_0x21d99b;this[_0x206fea(0xca)]=!0x1;}[_0x21d99b(0x3f7)](){const _0x48e162=_0x21d99b;this[_0x48e162(0x36c)]()[_0x48e162(0x4d5)](()=>super['dispose']());}async[_0x21d99b(0x434)](_0x317550){const _0x66a203=_0x21d99b;return this['_disabled']?null:this[_0x66a203(0x365)][_0x66a203(0x23a)](_0x4b53ca(_0x317550));}async[_0x21d99b(0x250)](_0x1de023,_0x18d736){const _0x387181=_0x21d99b;return!!this['_localStorageService'][_0x387181(0x1bd)](_0x1de023,_0x18d736);}[_0x21d99b(0x366)](_0x4c74e1,_0x4edc3d,_0x2971ab,_0x15a65e){const _0x4f5966=_0x21d99b,_0x499a78=this[_0x4f5966(0x29a)][_0x4f5966(0x282)](_0x4c74e1);this['_cachedData']['set'](_0x4c74e1,{'unitID':_0x4c74e1,'type':_0x4edc3d,'awaitingChangeset':_0x2971ab,'mutations':_0x15a65e,'rev':_0x499a78}),this['_saveTaskMap'][_0x4f5966(0x208)](_0x4c74e1)||this[_0x4f5966(0x200)](_0x4c74e1);}[_0x21d99b(0x200)](_0x392c75){const _0x33171b=_0x21d99b,_0x4d80de=this[_0x33171b(0x91)]();_0x4d80de===0x0?this['_saveCache'](_0x392c75):this['_saveTaskMap'][_0x33171b(0x109)](_0x392c75,setTimeout(()=>this['_saveCache'](_0x392c75),_0x4d80de));}['_getSaveTimeout'](){const _0x1ba3a5=_0x21d99b;var _0x9cf0c0;return(_0x9cf0c0=this['_configService'][_0x1ba3a5(0x1c3)](_0x14211e))!=null?_0x9cf0c0:0x3e8;}[_0x21d99b(0x255)](_0x2703d7){const _0x51549a=_0x21d99b,_0x58cd7a=this['_saveTaskMap'][_0x51549a(0x281)](_0x2703d7);return _0x58cd7a!==void 0x0&&window[_0x51549a(0x31c)](_0x58cd7a),this[_0x51549a(0x365)][_0x51549a(0x1bd)](_0x4b53ca(_0x2703d7),this[_0x51549a(0x317)][_0x51549a(0x281)](_0x2703d7))[_0x51549a(0x4d5)](()=>this[_0x51549a(0x390)]['delete'](_0x2703d7));}async['exhaustSavingTask'](){const _0x62e148=_0x21d99b,_0x6983d4=[];this[_0x62e148(0x390)]['forEach']((_0x1b9150,_0x41eaf8)=>{const _0x5290f8=_0x62e148;window[_0x5290f8(0x31c)](_0x1b9150),_0x6983d4[_0x5290f8(0x4bb)](this['_saveCache'](_0x41eaf8)['then'](()=>{const _0x964332=_0x5290f8;this[_0x964332(0x390)][_0x964332(0x38d)](_0x41eaf8);}));}),await Promise[_0x62e148(0x23e)](_0x6983d4);}[_0x21d99b(0x453)](){const _0x43c1da=_0x21d99b;this[_0x43c1da(0x4d7)](this[_0x43c1da(0x2ea)]['registerBeforeClose'](()=>{const _0x3efc12=_0x43c1da;if(this[_0x3efc12(0x390)][_0x3efc12(0x423)])return this[_0x3efc12(0x8c)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x5b1653[_0x21d99b(0x3a8)]=_0x42c13d([_0x5173bb(0x0,_0x184ab5[_0x21d99b(0xda)]),_0x5173bb(0x1,_0x184ab5[_0x21d99b(0x3a5)]),_0x5173bb(0x2,_0x5b2266[_0x21d99b(0x3fe)]),_0x5173bb(0x3,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0x3e5)])),_0x5173bb(0x4,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0x378)]))],_0x5b1653[_0x21d99b(0x3a8)]);function _0x4b53ca(_0x20632d){const _0xb4a4aa=_0x21d99b;return _0xb4a4aa(0x419)+_0x20632d;}var _0xc477a1=Object[_0x21d99b(0x238)],_0x4384c2=Object[_0x21d99b(0x44e)],_0x25543d=(_0x4c8ba3,_0x116f85,_0x53812b,_0x56942f)=>{const _0x58e8f7=_0x21d99b;for(var _0x53f692=_0x56942f>0x1?void 0x0:_0x56942f?_0x4384c2(_0x116f85,_0x53812b):_0x116f85,_0x15501a=_0x4c8ba3[_0x58e8f7(0x1a9)]-0x1,_0xa43555;_0x15501a>=0x0;_0x15501a--)(_0xa43555=_0x4c8ba3[_0x15501a])&&(_0x53f692=(_0x56942f?_0xa43555(_0x116f85,_0x53812b,_0x53f692):_0xa43555(_0x53f692))||_0x53f692);return _0x56942f&&_0x53f692&&_0xc477a1(_0x116f85,_0x53812b,_0x53f692),_0x53f692;},_0x2b74b9=(_0x111746,_0x79cdf8)=>(_0x1ab2f7,_0x54152c)=>_0x79cdf8(_0x1ab2f7,_0x54152c,_0x111746);function _0x560440(_0x260dce){const _0x2811a5=_0x21d99b,{unitID:_0xefc3f4,mutations:_0xc0cfa2}=_0x260dce;return{'unitId':_0xefc3f4,'subUnitId':_0xc0cfa2[0x0]['params'][_0x2811a5(0xdb)]};}let _0x324fc0=class{constructor(_0x4adaa2,_0x37effe,_0x3cb4e2){const _0x44cc08=_0x21d99b;this[_0x44cc08(0x2a3)]=_0x4adaa2,this[_0x44cc08(0x25b)]=_0x37effe,this[_0x44cc08(0x2c4)]=_0x3cb4e2;}['transformSelections'](_0x25e8ac){const _0x388b1c=_0x21d99b;var _0x32273a,_0x4dd4fc,_0x508581,_0x124346;const _0x271e71=this[_0x388b1c(0x2a3)]['get'](_0x1b2dce[_0x388b1c(0x4b1)]),{unitId:_0x509fce,subUnitId:_0x394d23}=_0x560440(_0x25e8ac),_0x13aa8a=_0x271e71[_0x388b1c(0xbe)](_0x509fce)[_0x388b1c(0x382)](),_0x52c418=(_0x4dd4fc=(_0x32273a=this[_0x388b1c(0x2c4)][_0x388b1c(0x1b8)](_0x509fce))==null?void 0x0:_0x32273a['getActiveSheet']())==null?void 0x0:_0x4dd4fc['getSheetId']();if(_0x13aa8a[_0x388b1c(0x1a9)]===0x0||!_0x509fce||!_0x394d23)return;const _0x382e75=[{'id':_0x1b2dce[_0x388b1c(0x499)]['id'],'params':{'unitId':_0x509fce,'subUnitId':_0x52c418,'selections':_0x184ab5[_0x388b1c(0x296)]['deepClone'](_0x13aa8a)}}],_0x5e506b=this['_transformService'][_0x388b1c(0x335)](_0x25e8ac,_0x382e75);if(!_0x1137f7[_0x388b1c(0x38b)](_0x5e506b))throw _0x5e506b['error'];const _0x35f107=(_0x124346=(_0x508581=_0x5e506b['m2Prime'][0x0])==null?void 0x0:_0x508581[_0x388b1c(0x31d)])==null?void 0x0:_0x124346['selections'];if(Array[_0x388b1c(0x481)](_0x35f107)&&_0x35f107[_0x388b1c(0x1a9)]){if(_0x35f107[_0x388b1c(0x1a9)]===_0x382e75[0x0][_0x388b1c(0x31d)][_0x388b1c(0x45e)][_0x388b1c(0x1a9)]&&_0x35f107[_0x388b1c(0xa4)]((_0x25253a,_0x4a8763)=>_0x184ab5[_0x388b1c(0x233)]['equals'](_0x25253a[_0x388b1c(0xfb)],_0x382e75[0x0]['params'][_0x388b1c(0x45e)][_0x4a8763][_0x388b1c(0xfb)])))return;this[_0x388b1c(0x2a3)][_0x388b1c(0x281)](_0x184ab5[_0x388b1c(0x2bd)])[_0x388b1c(0x4be)](_0x1b2dce[_0x388b1c(0x499)]['id'],{'unitId':_0x509fce,'subUnitId':_0x52c418,'selections':_0x35f107});}}};_0x324fc0=_0x25543d([_0x2b74b9(0x0,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x2b74b9(0x1,_0x1137f7[_0x21d99b(0x182)]),_0x2b74b9(0x2,_0x184ab5['IUniverInstanceService'])],_0x324fc0);const _0x59c3be=_0x184ab5['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x2bebc9=(_0x4aa491=>(_0x4aa491[_0x4aa491[_0x21d99b(0x2ac)]=0x0]=_0x21d99b(0x2ac),_0x4aa491[_0x4aa491[_0x21d99b(0x13a)]=0x1]=_0x21d99b(0x13a),_0x4aa491))(_0x2bebc9||{});const _0x16eed7=0x7530,_0x5b580e='ACTIVE_UNIT_EVENT_CHANNEL';class _0x238932 extends _0x184ab5['Disposable']{constructor(){const _0x11ba2b=_0x21d99b;super(),_0x45eb1c(this,_0x11ba2b(0x1df),_0x184ab5[_0x11ba2b(0x296)][_0x11ba2b(0x15f)]()),_0x45eb1c(this,_0x11ba2b(0x194),new Set()),_0x45eb1c(this,_0x11ba2b(0x3ed),new Map()),_0x45eb1c(this,_0x11ba2b(0x132),null),_0x45eb1c(this,'_clearOtherTimers',new Map()),_0x45eb1c(this,_0x11ba2b(0x4c9),new Map()),this['_init']();}[_0x21d99b(0x3f7)](){const _0x4cc4d9=_0x21d99b;super['dispose'](),this['_clearOtherTimers'][_0x4cc4d9(0x1fd)]((_0x110d37,_0x1a627d)=>this[_0x4cc4d9(0xb1)](_0x1a627d)),this[_0x4cc4d9(0x132)]&&window[_0x4cc4d9(0x36b)](this['_heartbeatTimer']);}[_0x21d99b(0x402)](_0x5ae521){const _0x18d1bd=_0x21d99b;return this[_0x18d1bd(0x410)](_0x5ae521)[_0x18d1bd(0x2a2)](_0x547585[_0x18d1bd(0x3c2)]());}[_0x21d99b(0x3b8)](_0x6ce73f){const _0x544b6f=_0x21d99b;this[_0x544b6f(0x194)][_0x544b6f(0x423)]===0x0&&this['_scheduleHeartbeat'](),this[_0x544b6f(0x194)]['add'](_0x6ce73f),this[_0x544b6f(0x245)]({'type':0x0,'memberID':this[_0x544b6f(0x1df)],'unitIDs':[_0x6ce73f],'isForwarded':!0x1});}[_0x21d99b(0x3e0)](_0x1fa1d1){const _0x2d850f=_0x21d99b;this['_selfUnitIDs'][_0x2d850f(0x38d)](_0x1fa1d1),this[_0x2d850f(0x194)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x2d850f(0x132)]);}['_init'](){const _0x32ee32=_0x21d99b;this['disposeWithMe'](_0x184ab5['toDisposable'](_0x547585[_0x32ee32(0x157)](window,_0x32ee32(0x348))[_0x32ee32(0x32b)](_0x55c4a4=>{const _0x3c0af8=_0x32ee32;if(_0x55c4a4[_0x3c0af8(0xb3)]!==_0x5b580e||!_0x55c4a4['newValue'])return;const _0x5efb05=JSON[_0x3c0af8(0x2d3)](_0x55c4a4[_0x3c0af8(0x47b)]);this[_0x3c0af8(0x214)](_0x5efb05);}))),window[_0x32ee32(0x3b1)](_0x32ee32(0x445),()=>this[_0x32ee32(0x245)]({'type':0x1,'memberID':this[_0x32ee32(0x1df)],'unitIDs':Array[_0x32ee32(0xf6)](this[_0x32ee32(0x194)])}));}[_0x21d99b(0x214)](_0x22dfcd){const _0x28125a=_0x21d99b;switch(_0x22dfcd['type']){case 0x0:this[_0x28125a(0x356)](_0x22dfcd);break;case 0x1:this['_handleLeaveEvent'](_0x22dfcd);break;case 0x2:this[_0x28125a(0x40e)](_0x22dfcd);break;}}[_0x21d99b(0x356)](_0x5dc705){const _0x5f3c4a=_0x21d99b,{unitIDs:_0x26a870,memberID:_0x24645e,isForwarded:_0x273c9d}=_0x5dc705;_0x26a870[_0x5f3c4a(0x1fd)](_0x49417e=>{const _0x4004b2=_0x5f3c4a;if(!_0x273c9d&&this[_0x4004b2(0x3ed)]['has'](_0x49417e)&&this[_0x4004b2(0x410)](_0x49417e)[_0x4004b2(0x8e)](0x1),!this[_0x4004b2(0x3ed)][_0x4004b2(0x208)](_0x49417e)||!this[_0x4004b2(0x3ed)]['get'](_0x49417e)[_0x4004b2(0x208)](_0x24645e)){const _0x2a62c0=this[_0x4004b2(0x3ed)][_0x4004b2(0x281)](_0x49417e)||new Set();_0x2a62c0['add'](_0x24645e),this['_unitOnClients'][_0x4004b2(0x109)](_0x49417e,_0x2a62c0),this['_scheduleClearOtherTimer'](_0x24645e);}}),_0x273c9d||this[_0x5f3c4a(0x245)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5f3c4a(0x194)]],'isForwarded':!0x0});}[_0x21d99b(0x476)](_0x490bb2){const _0x4b6843=_0x21d99b;this[_0x4b6843(0xb1)](_0x490bb2);const _0x1265c8=window['setTimeout'](()=>{const _0x14b39e=_0x4b6843;this['_unitOnClients'][_0x14b39e(0x1fd)](_0x225e20=>{const _0x1e9756=_0x14b39e;_0x225e20[_0x1e9756(0x38d)](_0x490bb2);});},_0x16eed7*0x2);this['_clearOtherTimers'][_0x4b6843(0x109)](_0x490bb2,_0x1265c8);}[_0x21d99b(0xb1)](_0x4c579e){const _0x1bf33c=_0x21d99b;if(this['_clearOtherTimers'][_0x1bf33c(0x208)](_0x4c579e)){const _0x5bce76=this[_0x1bf33c(0x11b)][_0x1bf33c(0x281)](_0x4c579e);_0x5bce76&&window[_0x1bf33c(0x31c)](_0x5bce76),this[_0x1bf33c(0x11b)][_0x1bf33c(0x109)](_0x4c579e,null);}}[_0x21d99b(0x29b)](_0x33609b){const _0x422d1d=_0x21d99b,{memberID:_0x42241b,unitIDs:_0x3dd237}=_0x33609b;_0x3dd237[_0x422d1d(0x1fd)](_0x4e34ca=>{const _0x291433=_0x422d1d;var _0x55ff4f;const _0x3506e0=this['_unitOnClients'][_0x291433(0x281)](_0x4e34ca);_0x3506e0&&(_0x3506e0['delete'](_0x42241b),(_0x55ff4f=this['_ensureSubject'](_0x4e34ca))==null||_0x55ff4f[_0x291433(0x8e)](_0x3506e0[_0x291433(0x423)]===0x0?0x0:0x1));}),this[_0x422d1d(0xb1)](_0x42241b);}[_0x21d99b(0x40e)](_0x4f8b52){const _0x1fa5eb=_0x21d99b;this[_0x1fa5eb(0x476)](_0x4f8b52['memberID']);}['_send'](_0x66086a){const _0x3b0555=_0x21d99b;localStorage[_0x3b0555(0x1bd)](_0x5b580e,JSON[_0x3b0555(0x3d3)](_0x66086a));}['_scheduleHeartbeat'](){const _0x3ee98b=_0x21d99b;this[_0x3ee98b(0x132)]=window['setInterval'](()=>{const _0x371529=_0x3ee98b;this[_0x371529(0x245)]({'type':0x2,'memberID':this[_0x371529(0x1df)]});},_0x16eed7);}['_ensureSubject'](_0x5266be){const _0x52c1c2=_0x21d99b;return this[_0x52c1c2(0x4c9)][_0x52c1c2(0x208)](_0x5266be)||this[_0x52c1c2(0x4c9)][_0x52c1c2(0x109)](_0x5266be,new _0x547585[(_0x52c1c2(0x349))](0x0)),this['_unitStatus'][_0x52c1c2(0x281)](_0x5266be);}}function _0x316962(_0x104680){const _0x4d0edd=_0x21d99b;let _0x8d18a5='';for(const _0x26ddaa of _0x104680){const {startOffset:_0x78bc3,endOffset:_0x4d4060,isActive:_0x4742a9}=_0x26ddaa;_0x8d18a5[_0x4d0edd(0x1a9)]&&(_0x8d18a5+=','),_0x8d18a5+=_0x78bc3+':'+_0x4d4060+':'+(_0x4742a9?'1':'0');}return _0x8d18a5;}function _0x478d6a(_0x24523c){const _0x30fd44=_0x21d99b,_0x4fecd7=_0x24523c['split'](','),_0x3d37b8=[];for(const _0x22a284 of _0x4fecd7){const [_0x554e97,_0x508435,_0x269bd1]=_0x22a284[_0x30fd44(0x228)](':');_0x3d37b8[_0x30fd44(0x4bb)]({'startOffset':Number(_0x554e97),'endOffset':Number(_0x508435),'collapsed':_0x554e97===_0x508435,'isActive':_0x269bd1==='1'});}return _0x3d37b8['some'](_0x5e8e23=>_0x5e8e23[_0x30fd44(0x359)])||(_0x3d37b8[0x0][_0x30fd44(0x359)]=!0x0),_0x3d37b8;}class _0x295154 extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(){const _0x1d38b9=_0x21d99b;super(...arguments),_0x45eb1c(this,'_collabCursorState$',new _0x547585[(_0x1d38b9(0x349))](null)),_0x45eb1c(this,'collabCursorState$',this['_collabCursorState$'][_0x1d38b9(0x1b5)]());}[_0x21d99b(0x1d5)](_0x480479){const _0x509576=_0x21d99b,{unitID:_0x55b7c4,memberID:_0x19796e,textRanges:_0x28686f}=_0x480479,_0xfa93fd=_0x316962(_0x28686f),_0x27fdbd={'unitID':_0x55b7c4,'memberID':_0x19796e,'selection':_0xfa93fd};this['_collabCursorState$'][_0x509576(0x8e)](_0x27fdbd);}}var _0x2902df=Object['defineProperty'],_0x4c7c2c=Object[_0x21d99b(0x44e)],_0x230678=(_0x49858f,_0x47875a,_0x30f110,_0x28a2a7)=>{const _0x1a47b9=_0x21d99b;for(var _0x517c27=_0x28a2a7>0x1?void 0x0:_0x28a2a7?_0x4c7c2c(_0x47875a,_0x30f110):_0x47875a,_0x12434f=_0x49858f[_0x1a47b9(0x1a9)]-0x1,_0x5b3b74;_0x12434f>=0x0;_0x12434f--)(_0x5b3b74=_0x49858f[_0x12434f])&&(_0x517c27=(_0x28a2a7?_0x5b3b74(_0x47875a,_0x30f110,_0x517c27):_0x5b3b74(_0x517c27))||_0x517c27);return _0x28a2a7&&_0x517c27&&_0x2902df(_0x47875a,_0x30f110,_0x517c27),_0x517c27;},_0xcdf435=(_0x4d4c2c,_0x462038)=>(_0x5d3810,_0x22b808)=>_0x462038(_0x5d3810,_0x22b808,_0x4d4c2c);let _0x390046=class{constructor(_0x32992c,_0x23937e){const _0x50cc7b=_0x21d99b;this[_0x50cc7b(0x2a3)]=_0x32992c,this[_0x50cc7b(0x25b)]=_0x23937e;}[_0x21d99b(0x2aa)](_0x3d3706){const _0x2f5fd3=_0x21d99b;var _0x35c0ce;const _0x3cc9de=this[_0x2f5fd3(0x2a3)][_0x2f5fd3(0x281)](_0x3fd029[_0x2f5fd3(0x231)]),_0x8d284f=(_0x35c0ce=_0x3cc9de[_0x2f5fd3(0x265)]())!=null?_0x35c0ce:[];if(_0x8d284f[_0x2f5fd3(0x1a9)]===0x0)return;const _0x4a9e71=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3d3706['unitID'],'actions':null,'textRanges':_0x8d284f}}],_0x492507=this[_0x2f5fd3(0x25b)][_0x2f5fd3(0x335)](_0x3d3706,_0x4a9e71);if(!_0x1137f7[_0x2f5fd3(0x38b)](_0x492507))throw _0x492507['error'];const _0x589e89=_0x492507['m2Prime'][0x0]['params'][_0x2f5fd3(0x3be)];Array[_0x2f5fd3(0x481)](_0x589e89)&&_0x589e89['length']&&_0x3cc9de[_0x2f5fd3(0x2a5)](_0x589e89,!0x1);}};_0x390046=_0x230678([_0xcdf435(0x0,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0xcdf435(0x1,_0x1137f7[_0x21d99b(0x182)])],_0x390046);const _0x3a7758=new Set([_0x1b2dce[_0x21d99b(0x2e4)]['id']]);function _0x3d3e90(_0x38204b,_0x1d4b2e,_0xd2cde7,_0x686323,_0x51b66b){const _0x8feb06=_0x21d99b;var _0x2e9dd5,_0x4b84ec,_0x6e051a,_0x20966c;const _0x3a267a=[];for(const _0x8386e4 of _0x38204b)if(_0x3a7758[_0x8feb06(0x208)](_0x8386e4['id'])){if(_0x3a267a['length']>0x0)break;_0x3a267a[_0x8feb06(0x4bb)](_0x8386e4);break;}else _0x3a267a[_0x8feb06(0x4bb)](_0x8386e4);const _0x5148a4=(_0x4b84ec=(_0x2e9dd5=_0x51b66b[_0x8feb06(0x2b6)]())==null?void 0x0:_0x2e9dd5[_0x8feb06(0xe4)])!=null?_0x4b84ec:_0x8feb06(0x49c),_0x3d3330=(_0x20966c=(_0x6e051a=_0x51b66b[_0x8feb06(0x2b6)]())==null?void 0x0:_0x6e051a[_0x8feb06(0x229)])!=null?_0x20966c:_0x8feb06(0x49c);return{'changeset':{'unitID':_0x1d4b2e,'type':_0x1137f7['mapDocumentTypeToUniverType'](_0xd2cde7['getUnitType'](_0x1d4b2e)),'baseRev':_0x686323['getCurrentRevOfUnit'](_0x1d4b2e),'revision':0x0,'userID':_0x5148a4,'memberID':_0x3d3330,'mutations':_0x3a267a},'pendingMutations':_0x38204b[_0x8feb06(0x138)](_0x3a267a[_0x8feb06(0x1a9)])};}function _0x352627(_0x4ce1d1,_0x4489de,_0x42abf5,_0x40df5b,_0x353e11){const _0x35cec9=_0x21d99b;var _0xecf658,_0x5601c9,_0x255322,_0x4bbbb9;const _0x2c4e0a=[_0x4ce1d1[_0x35cec9(0x3b4)]((_0x5cd0e4,_0x127be3)=>{const _0x2f1e1b=_0x35cec9;var _0x54194b;const {id:_0x392f52}=_0x5cd0e4,{id:_0x10d381,type:_0x13de42}=_0x127be3,_0x224fce=(_0x54194b=_0x5cd0e4[_0x2f1e1b(0x31d)])!=null?_0x54194b:{'actions':null},_0x3024d3=_0x127be3['params'];if(_0x392f52&&_0x392f52!==_0x10d381)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x392f52+_0x2f1e1b(0x328)+_0x10d381+'.');return{..._0x5cd0e4,'id':_0x10d381,'type':_0x13de42,'params':{'unitId':_0x3024d3['unitId'],'textRanges':_0x3024d3[_0x2f1e1b(0x3be)],'actions':_0x184ab5[_0x2f1e1b(0x1dc)][_0x2f1e1b(0x156)](_0x224fce[_0x2f1e1b(0x35e)],_0x3024d3[_0x2f1e1b(0x35e)])}};},{})],_0x1f9620=(_0x5601c9=(_0xecf658=_0x353e11[_0x35cec9(0x2b6)]())==null?void 0x0:_0xecf658[_0x35cec9(0xe4)])!=null?_0x5601c9:'unknown',_0x437500=(_0x4bbbb9=(_0x255322=_0x353e11[_0x35cec9(0x2b6)]())==null?void 0x0:_0x255322[_0x35cec9(0x229)])!=null?_0x4bbbb9:_0x35cec9(0x49c);return{'changeset':{'unitID':_0x4489de,'type':_0x1137f7['mapDocumentTypeToUniverType'](_0x42abf5[_0x35cec9(0x20e)](_0x4489de)),'baseRev':_0x40df5b[_0x35cec9(0x282)](_0x4489de),'revision':0x0,'userID':_0x1f9620,'memberID':_0x437500,'mutations':_0x2c4e0a},'pendingMutations':[]};}function _0x1d359e(_0x1e94f2,_0x42a2f6){const _0x27852e=_0x21d99b,_0xd3a13c=new _0x547585[(_0x27852e(0x403))](0x1);return setTimeout(()=>_0xd3a13c[_0x27852e(0x8e)](_0x42a2f6),_0x1e94f2),_0xd3a13c['asObservable']()['pipe'](_0x547585['take'](0x1));}const _0x5b4d7a={'id':_0x1b2dce[_0x21d99b(0x234)]['id'],'type':_0x184ab5['CommandType'][_0x21d99b(0x354)],'params':{}};var _0x1418bf=Object['defineProperty'],_0x384dcb=Object[_0x21d99b(0x44e)],_0x13003b=(_0x8206bd,_0x53d5ae,_0x37786e,_0xfec25c)=>{for(var _0x12960b=_0xfec25c>0x1?void 0x0:_0xfec25c?_0x384dcb(_0x53d5ae,_0x37786e):_0x53d5ae,_0x24616d=_0x8206bd['length']-0x1,_0x4192a8;_0x24616d>=0x0;_0x24616d--)(_0x4192a8=_0x8206bd[_0x24616d])&&(_0x12960b=(_0xfec25c?_0x4192a8(_0x53d5ae,_0x37786e,_0x12960b):_0x4192a8(_0x12960b))||_0x12960b);return _0xfec25c&&_0x12960b&&_0x1418bf(_0x53d5ae,_0x37786e,_0x12960b),_0x12960b;},_0x6d6b46=(_0x580137,_0x349af8)=>(_0x59372f,_0x3f9bbe)=>_0x349af8(_0x59372f,_0x3f9bbe,_0x580137),_0x37dd10=(_0x438e29=>(_0x438e29[_0x21d99b(0x2a9)]=_0x21d99b(0x3c5),_0x438e29[_0x21d99b(0x266)]='synced',_0x438e29[_0x21d99b(0x4af)]=_0x21d99b(0x2b3),_0x438e29[_0x21d99b(0x44f)]='awaiting',_0x438e29[_0x21d99b(0x139)]=_0x21d99b(0x323),_0x438e29[_0x21d99b(0x42c)]=_0x21d99b(0x270),_0x438e29[_0x21d99b(0x1af)]=_0x21d99b(0x263),_0x438e29[_0x21d99b(0x126)]=_0x21d99b(0x47d),_0x438e29))(_0x37dd10||{});const _0x30b773=0xea60;class _0x3c36ac{constructor(_0x35121c,_0xd9012c,_0xfb5d9f,_0x3db1dc,_0x5d61f2,_0x38df9f,_0x4c4522,_0x1ae61f,_0x3f9596){const _0x7a1afb=_0x21d99b;_0x45eb1c(this,'_awaitingChangeset',null),_0x45eb1c(this,_0x7a1afb(0x4b0),[]),(this[_0x7a1afb(0x211)]=_0x35121c,this[_0x7a1afb(0x4c4)]=_0xd9012c,this['_handler']=_0x5d61f2,this[_0x7a1afb(0x43f)]=_0x38df9f,this[_0x7a1afb(0xd6)]=_0x4c4522,this['_revisionService']=_0x1ae61f,this['_localCacheService']=_0x3f9596,this[_0x7a1afb(0x4d9)]=_0xfb5d9f,this[_0x7a1afb(0x4b0)]=_0x3db1dc);}[_0x21d99b(0x379)](_0x25b900){const _0x5f0230=_0x21d99b,_0x263593=this['_revisionService'][_0x5f0230(0x282)](this[_0x5f0230(0x211)]);return _0x25b900[_0x5f0230(0x464)]>_0x263593+0x1?(this[_0x5f0230(0x150)][_0x5f0230(0x43a)]({'from':_0x263593,'to':_0x25b900[_0x5f0230(0x464)]-0x1}),!0x0):!0x1;}[_0x21d99b(0x337)](_0x533f90){const _0xd70f64=_0x21d99b;this[_0xd70f64(0xd6)]['transformUndoRedo'](this[_0xd70f64(0x211)],_0x533f90);}[_0x21d99b(0xb7)](_0x284c8b){const _0x27edb7=_0x21d99b;var _0x1f81ce,_0x21bb11;(_0x21bb11=(_0x1f81ce=this['_handler'])[_0x27edb7(0x3d9)])==null||_0x21bb11[_0x27edb7(0xf4)](_0x1f81ce,_0x284c8b);}['_transformIMECache'](_0x29011e){const _0x525b22=_0x21d99b;var _0x107246,_0x63063b;return(_0x63063b=(_0x107246=this['_handler'])['onTransformIME'])==null?void 0x0:_0x63063b[_0x525b22(0xf4)](_0x107246,_0x29011e);}[_0x21d99b(0x468)](_0x1b7bd5){const _0x292308=_0x21d99b;var _0x4afaea,_0x28fe05,_0x99383f;return(_0x99383f=(_0x28fe05=(_0x4afaea=this[_0x292308(0x150)])[_0x292308(0x30b)])==null?void 0x0:_0x28fe05[_0x292308(0xf4)](_0x4afaea,_0x1b7bd5))!=null?_0x99383f:_0x1b7bd5;}[_0x21d99b(0x304)](_0x598e83){const _0x16e35c=_0x21d99b;var _0x4db6fa,_0x3d8742;if(this[_0x16e35c(0x4c4)]===_0x3322af['UNIVER_DOC']){const {unitID:_0x486d1a,mutations:_0x5df6cd,memberID:_0x108d69}=_0x598e83,_0xbb12b8=_0x5df6cd[0x0]['params'][_0x16e35c(0x3be)];Array['isArray'](_0xbb12b8)&&_0xbb12b8[_0x16e35c(0x1a9)]>0x0&&((_0x3d8742=(_0x4db6fa=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x3d8742[_0x16e35c(0xf4)](_0x4db6fa,{'unitID':_0x486d1a,'memberID':_0x108d69,'textRanges':_0xbb12b8}));}}[_0x21d99b(0x28d)](){const _0x482f4e=_0x21d99b;this[_0x482f4e(0xcf)][_0x482f4e(0x366)](this[_0x482f4e(0x211)],this[_0x482f4e(0x4c4)],this[_0x482f4e(0x4d9)],this[_0x482f4e(0x4b0)]);}[_0x21d99b(0x490)](){const _0x207c24=_0x21d99b;return this['_revisionService'][_0x207c24(0x282)](this[_0x207c24(0x211)]);}[_0x21d99b(0x293)](){const _0x220929=_0x21d99b;this[_0x220929(0x29a)][_0x220929(0x417)](this[_0x220929(0x211)]);}[_0x21d99b(0x12a)](_0x42fedb){const _0x3e1fdf=_0x21d99b;var _0x350d18;const _0x3e517b=this['_transformRemoteChangesetByIMECache'](_0x42fedb),_0xc918a9=_0x184ab5[_0x3e1fdf(0x3f1)](_0x3e517b[_0x3e1fdf(0x230)],this[_0x3e1fdf(0x43f)],{'fromCollab':!0x0});if(!_0xc918a9[_0x3e1fdf(0x387)])throw _0xc918a9[_0x3e1fdf(0x102)]instanceof Error?_0xc918a9[_0x3e1fdf(0x102)]:new Error((_0x350d18=_0xc918a9[_0x3e1fdf(0x102)])!=null?_0x350d18:_0x3e1fdf(0x352));this[_0x3e1fdf(0x4b4)](_0x3e517b),this[_0x3e1fdf(0x337)](_0x42fedb),this[_0x3e1fdf(0xb7)](_0x3e517b),this[_0x3e1fdf(0x304)](_0x3e517b),this[_0x3e1fdf(0x293)]();}}let _0x176624=class extends _0x3c36ac{constructor(_0x252163,_0x4359bd,_0x48cf1d,_0x4c30a9,_0x207a2b,_0x3d7174,_0x3df864,_0x267dd1,_0x1b6841,_0x1405b7){const _0x4765b0=_0x21d99b;super(_0x252163,_0x4359bd,null,[],_0x48cf1d,_0x267dd1,_0x3df864,_0x4c30a9,_0x207a2b),_0x45eb1c(this,_0x4765b0(0x458),'synced'),(this[_0x4765b0(0x2a3)]=_0x3d7174,this[_0x4765b0(0x167)]=_0x1b6841,this[_0x4765b0(0x25b)]=_0x1405b7);}['appendMutation'](_0x59cd62){const _0x4fad24=_0x21d99b,_0x435efd=this['_injector'][_0x4fad24(0x19e)](_0x513522,this[_0x4fad24(0x211)],this['type'],[_0x59cd62],this[_0x4fad24(0x150)]);return _0x435efd['_schedule'](),_0x435efd[_0x4fad24(0x28d)](),_0x435efd;}[_0x21d99b(0x259)](_0x670b1f){const _0x321330=_0x21d99b;if(this['_checkMissing'](_0x670b1f))return this[_0x321330(0x2a3)]['createInstance'](_0x2184c7,this[_0x321330(0x211)],this[_0x321330(0x4c4)],null,[],null,[_0x670b1f],this[_0x321330(0x150)]);try{const _0x28d78a=this[_0x321330(0x25b)]['transformMutationsWithChangeset'](_0x670b1f,[_0x5b4d7a]);if(_0x1137f7[_0x321330(0x38b)](_0x28d78a)){const {c1Prime:_0x190ec5}=_0x28d78a;return this['_executeRemoteChangeset'](_0x190ec5),this;}throw _0x28d78a[_0x321330(0x102)];}catch(_0x58be92){return this[_0x321330(0x167)]['error'](_0x58be92),this[_0x321330(0x2ca)](!0x1);}}['_onConflict'](_0x35ff9b){const _0x40123a=_0x21d99b;return this[_0x40123a(0x2a3)][_0x40123a(0x19e)](_0x4d5527,this[_0x40123a(0x211)],this[_0x40123a(0x4c4)],null,[],this[_0x40123a(0x150)],_0x35ff9b);}[_0x21d99b(0x4a3)](){const _0x43c794=_0x21d99b;throw new Error(_0x43c794(0x404));}[_0x21d99b(0x4d1)](){const _0x291a63=_0x21d99b;throw new Error(_0x291a63(0x26d));}[_0x21d99b(0x377)](){return this;}['toggleOffline'](){const _0x49ae16=_0x21d99b;return this[_0x49ae16(0x2a3)]['createInstance'](_0x3c645d,this[_0x49ae16(0x211)],this['type'],null,[],this[_0x49ae16(0x150)]);}[_0x21d99b(0x34f)](){return this;}[_0x21d99b(0x41b)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x21d99b(0x28f)](){const _0x30b098=_0x21d99b,_0x1e2b67=this['_revisionService'][_0x30b098(0x282)](this[_0x30b098(0x211)]);return this[_0x30b098(0x150)]['onMissingChangesets']({'from':_0x1e2b67,'to':0x0}),this[_0x30b098(0x2a3)][_0x30b098(0x19e)](_0x2184c7,this[_0x30b098(0x211)],this[_0x30b098(0x4c4)],null,[],null,[],this[_0x30b098(0x150)]);}};_0x176624=_0x13003b([_0x6d6b46(0x3,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0x378)])),_0x6d6b46(0x4,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x6d6b46(0x5,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x6d6b46(0x6,_0x184ab5[_0x21d99b(0x20a)]),_0x6d6b46(0x7,_0x184ab5[_0x21d99b(0x2bd)]),_0x6d6b46(0x8,_0x184ab5['ILogService']),_0x6d6b46(0x9,_0x1137f7['ITransformService'])],_0x176624);let _0x513522=class extends _0x3c36ac{constructor(_0x216fcc,_0x56c9c2,_0x2acb2b,_0x39e087,_0x503613,_0x53fdb4,_0x23e9ba,_0x44c3c0,_0x430888,_0xe938e8,_0x3ef701,_0x220f0d,_0x1b5cb3,_0x43422a){const _0x1ddf85=_0x21d99b;super(_0x216fcc,_0x56c9c2,null,_0x2acb2b,_0x39e087,_0xe938e8,_0x43422a,_0x53fdb4,_0x23e9ba),_0x45eb1c(this,_0x1ddf85(0x458),_0x1ddf85(0x2b3)),_0x45eb1c(this,_0x1ddf85(0x4cd),null),_0x45eb1c(this,_0x1ddf85(0x1bb),null),(this[_0x1ddf85(0x2a3)]=_0x503613,this[_0x1ddf85(0x11a)]=_0x44c3c0,this[_0x1ddf85(0x167)]=_0x430888,this[_0x1ddf85(0x190)]=_0x3ef701,this['_transformService']=_0x220f0d,this[_0x1ddf85(0x2f6)]=_0x1b5cb3);}[_0x21d99b(0x27f)](_0x3af061){const _0x53f5c6=_0x21d99b;return this[_0x53f5c6(0x4b0)]['push'](_0x3af061),this[_0x53f5c6(0x28d)](),this;}['onRemoteChangeset'](_0x2eef58){const _0x577797=_0x21d99b;if(this['_checkMissing'](_0x2eef58))return this[_0x577797(0xf8)](),this[_0x577797(0x2a3)][_0x577797(0x19e)](_0x2184c7,this[_0x577797(0x211)],this[_0x577797(0x4c4)],null,this[_0x577797(0x4b0)],null,[_0x2eef58],this['_handler']);try{const _0x4b238b=this[_0x577797(0x25b)]['transformMutationsWithChangeset'](_0x2eef58,this[_0x577797(0x4b0)]);if(_0x1137f7['isTransformMutationsWithChangesetSuccess'](_0x4b238b)){const {c1Prime:_0x4b6a9c,m2Prime:_0x313bf8}=_0x4b238b;this['_executeRemoteChangeset'](_0x4b6a9c);const _0x1f7485=this[_0x577797(0x2a3)]['createInstance'](_0x513522,this[_0x577797(0x211)],this['type'],_0x313bf8,this[_0x577797(0x150)]);return this['_clearScheduledTask'](),_0x1f7485[_0x577797(0x172)](this[_0x577797(0x4cd)]?Math['max'](0x0,new Date()[_0x577797(0x368)]()-this[_0x577797(0x4cd)]):this[_0x577797(0x393)]()),_0x1f7485;}throw _0x4b238b[_0x577797(0x102)];}catch(_0x375d53){return this[_0x577797(0x167)][_0x577797(0x102)](_0x375d53),this[_0x577797(0x2ca)](!0x1);}}[_0x21d99b(0x4a3)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x21d99b(0x4d1)](){const _0x2104bf=_0x21d99b;throw new Error(_0x2104bf(0x111));}[_0x21d99b(0x377)](){return this;}[_0x21d99b(0xed)](){const _0x10370b=_0x21d99b;return this[_0x10370b(0xf8)](),this['_injector']['createInstance'](_0x3c645d,this['unitID'],this[_0x10370b(0x4c4)],null,this['_pendingMutations'],this['_handler']);}[_0x21d99b(0x34f)](){return this;}[_0x21d99b(0x172)](_0x392164){const _0xf9c7a4=_0x21d99b,_0x11c530=_0x392164!=null?_0x392164:this[_0xf9c7a4(0x393)]();this['_scheduleTimestamp']=new Date()[_0xf9c7a4(0x368)](),this[_0xf9c7a4(0x1bb)]=window[_0xf9c7a4(0x176)](()=>{const _0x37173c=_0xf9c7a4;this[_0x37173c(0xf8)]();let _0x5804cb=null;switch(this[_0x37173c(0x4c4)]){case _0x3322af['UNIVER_SHEET']:{_0x5804cb=_0x3d3e90(this[_0x37173c(0x4b0)],this[_0x37173c(0x211)],this[_0x37173c(0x2f6)],this[_0x37173c(0x29a)],this[_0x37173c(0x11a)]);break;}case _0x3322af['UNIVER_DOC']:{this['_pendingMutations'][_0x37173c(0xa4)](_0x4a37a9=>_0x4a37a9['id']===_0x3fd029[_0x37173c(0x29e)]['id'])?_0x5804cb=_0x352627(this['_pendingMutations'],this[_0x37173c(0x211)],this['_univerInstanceService'],this[_0x37173c(0x29a)],this['_memberService']):_0x5804cb=_0x3d3e90(this[_0x37173c(0x4b0)],this[_0x37173c(0x211)],this[_0x37173c(0x2f6)],this[_0x37173c(0x29a)],this[_0x37173c(0x11a)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x37173c(0x4c4)]+_0x37173c(0x37d));}const {changeset:_0x18356f,pendingMutations:_0x1e9aa1}=_0x5804cb;this[_0x37173c(0x150)]['onSendChangeset'](_0x18356f);const _0x11f9fe=_0x1e9aa1['length']?this['_injector'][_0x37173c(0x19e)](_0xd26d4,this[_0x37173c(0x211)],this[_0x37173c(0x4c4)],_0x18356f,_0x1e9aa1,this[_0x37173c(0x150)],void 0x0):this[_0x37173c(0x2a3)]['createInstance'](_0x116492,this[_0x37173c(0x211)],this[_0x37173c(0x4c4)],_0x18356f,this[_0x37173c(0x150)]);_0x11f9fe[_0x37173c(0x28d)](),this[_0x37173c(0x150)][_0x37173c(0x4b7)](this,_0x11f9fe);},_0x11c530);}[_0x21d99b(0x393)](){const _0x526fd6=_0x21d99b;var _0x2839d5;const _0x1cb80a=this['_configService'][_0x526fd6(0x1c3)](_0x590185);return(_0x2839d5=_0x1cb80a==null?void 0x0:_0x1cb80a[_0x526fd6(0x497)])!=null?_0x2839d5:0x7d0;}[_0x21d99b(0x41b)](){const _0x376b9a=_0x21d99b;throw new Error(_0x376b9a(0x131));}['_clearScheduledTask'](){const _0x45340c=_0x21d99b;this[_0x45340c(0x1bb)]!=null&&(clearTimeout(this[_0x45340c(0x1bb)]),this[_0x45340c(0x1bb)]=null);}[_0x21d99b(0x2ca)](_0x4d4442){const _0x26b3e7=_0x21d99b;return this[_0x26b3e7(0xf8)](),this[_0x26b3e7(0x2a3)][_0x26b3e7(0x19e)](_0x4d5527,this[_0x26b3e7(0x211)],this[_0x26b3e7(0x4c4)],null,this[_0x26b3e7(0x4b0)],this['_handler'],_0x4d4442);}};_0x513522=_0x13003b([_0x6d6b46(0x4,_0x184ab5['Inject'](_0x184ab5[_0x21d99b(0xad)])),_0x6d6b46(0x5,_0x184ab5['Inject'](_0x1137f7['RevisionService'])),_0x6d6b46(0x6,_0x184ab5['Inject'](_0x5b1653[_0x21d99b(0x3a8)])),_0x6d6b46(0x7,_0x184ab5[_0x21d99b(0x441)](_0x3212c8)),_0x6d6b46(0x8,_0x184ab5['ILogService']),_0x6d6b46(0x9,_0x184ab5[_0x21d99b(0x2bd)]),_0x6d6b46(0xa,_0x184ab5[_0x21d99b(0xda)]),_0x6d6b46(0xb,_0x1137f7[_0x21d99b(0x182)]),_0x6d6b46(0xc,_0x184ab5[_0x21d99b(0x2a6)]),_0x6d6b46(0xd,_0x184ab5[_0x21d99b(0x20a)])],_0x513522);let _0x116492=class extends _0x3c36ac{constructor(_0x4f7d03,_0x9e5b54,_0x3143dd,_0x18ae1d,_0x248f90,_0x2c5a77,_0x38aed5,_0x19a548,_0x22c833,_0x42462c,_0x55d4eb){const _0x5b4ffe=_0x21d99b;super(_0x4f7d03,_0x9e5b54,_0x3143dd,[],_0x18ae1d,_0x19a548,_0x55d4eb,_0x2c5a77,_0x38aed5),_0x45eb1c(this,_0x5b4ffe(0x458),_0x5b4ffe(0x4a1)),_0x45eb1c(this,_0x5b4ffe(0x3bc),0x0),_0x45eb1c(this,_0x5b4ffe(0x437)),_0x45eb1c(this,_0x5b4ffe(0x3e6)),(this[_0x5b4ffe(0x2a3)]=_0x248f90,this[_0x5b4ffe(0x167)]=_0x22c833,this[_0x5b4ffe(0x25b)]=_0x42462c);}[_0x21d99b(0x27f)](_0x113e20){const _0x2151e1=_0x21d99b;this[_0x2151e1(0xf8)]();const _0x3a1664=this['_injector'][_0x2151e1(0x19e)](_0xd26d4,this[_0x2151e1(0x211)],this[_0x2151e1(0x4c4)],this['_awaitingChangeset'],[_0x113e20],this['_handler'],this['_resendTimer']);return _0x3a1664[_0x2151e1(0x28d)](),_0x3a1664;}['onRemoteChangeset'](_0x27606b){const _0x1c6f69=_0x21d99b;if(this[_0x1c6f69(0x379)](_0x27606b))return this[_0x1c6f69(0xf8)](),this[_0x1c6f69(0x2a3)][_0x1c6f69(0x19e)](_0x2184c7,this['unitID'],this[_0x1c6f69(0x4c4)],this[_0x1c6f69(0x4d9)],[],null,[_0x27606b],this[_0x1c6f69(0x150)]);try{const _0x509589=this['_transformService'][_0x1c6f69(0x17e)]([_0x27606b],[this['_awaitingChangeset']],!0x1);if(_0x1137f7[_0x1c6f69(0x2be)](_0x509589)){const {c1Prime:_0x40ec4f,c2Prime:_0x138c01}=_0x509589;this[_0x1c6f69(0x12a)](_0x40ec4f[0x0]),_0x138c01[0x0][_0x1c6f69(0x438)]=this['_getCurrentRevision'](),this[_0x1c6f69(0xf8)]();const _0x328381=this[_0x1c6f69(0x2a3)][_0x1c6f69(0x19e)](_0x116492,this[_0x1c6f69(0x211)],this[_0x1c6f69(0x4c4)],_0x138c01[0x0],this['_handler']);return _0x328381[_0x1c6f69(0x28d)](),_0x328381;}return this['_onConflict'](!0x1);}catch(_0x414452){return this[_0x1c6f69(0x167)][_0x1c6f69(0x102)](_0x414452),this[_0x1c6f69(0x2ca)](!0x1);}}['onRemoteAck'](_0x3a65a3){const _0x231d36=_0x21d99b;this['_clearScheduledTask']();const _0x5dd799=this[_0x231d36(0x29a)]['getCurrentRevOfUnit'](this[_0x231d36(0x211)]);if(_0x3a65a3['revision']<_0x5dd799-0x1)return this;if(this[_0x231d36(0x379)](_0x3a65a3))return this[_0x231d36(0x2a3)]['createInstance'](_0x2184c7,this['unitID'],this[_0x231d36(0x4c4)],null,[],this[_0x231d36(0x4d9)],[],this['_handler']);this[_0x231d36(0x293)]();const _0xa7011f=this[_0x231d36(0x2a3)]['createInstance'](_0x176624,this[_0x231d36(0x211)],this[_0x231d36(0x4c4)],this['_handler']);return _0xa7011f['_updateLocalCache'](),_0xa7011f;}[_0x21d99b(0x4d1)](_0x3a550a){const _0x5809a6=_0x21d99b;return this[_0x5809a6(0x2ca)](!!(_0x3a550a!=null&&_0x3a550a['isPermissionRej']));}['onRemoteRetry'](_0x469349){const _0x4b2aea=_0x21d99b;return this[_0x4b2aea(0x3bc)]>_0x30b773?this['toggleOffline']():(this[_0x4b2aea(0x437)]=_0x1d359e(this[_0x4b2aea(0x3bc)],{'timeout':this['_resendTimeout'],'reqId':_0x469349['reqId']}),this[_0x4b2aea(0x3e6)]=this[_0x4b2aea(0x437)][_0x4b2aea(0x32b)](({reqId:_0x5b8090,timeout:_0x577364})=>{const _0x37e2ae=_0x4b2aea;this[_0x37e2ae(0x22c)](_0x5b8090,_0x577364);}),this);}['toggleOffline'](){const _0x19a36f=_0x21d99b;return this['_clearScheduledTask'](),this[_0x19a36f(0x2a3)][_0x19a36f(0x19e)](_0x3c645d,this[_0x19a36f(0x211)],this[_0x19a36f(0x4c4)],this['_awaitingChangeset'],[],this[_0x19a36f(0x150)]);}[_0x21d99b(0x34f)](){return this;}[_0x21d99b(0x41b)](){const _0x34bbd3=_0x21d99b;this['_handler'][_0x34bbd3(0x33f)](this[_0x34bbd3(0x4d9)]);}[_0x21d99b(0x2ca)](_0x3d7b40){const _0x4a4639=_0x21d99b;return this[_0x4a4639(0xf8)](),this[_0x4a4639(0x2a3)][_0x4a4639(0x19e)](_0x4d5527,this[_0x4a4639(0x211)],this[_0x4a4639(0x4c4)],this['_awaitingChangeset'],[],this[_0x4a4639(0x150)],_0x3d7b40);}['_resendWithTimeout'](_0x289880,_0xb98427){const _0x598eae=_0x21d99b;var _0x53ccc8;_0x289880===((_0x53ccc8=this['_awaitingChangeset'])==null?void 0x0:_0x53ccc8[_0x598eae(0x2bc)])&&(this[_0x598eae(0x41b)](),this[_0x598eae(0x3bc)]=_0xb98427===0x0?0x3e8:_0xb98427*0x2);}[_0x21d99b(0xf8)](){const _0x146666=_0x21d99b;var _0x3a1b80;(_0x3a1b80=this[_0x146666(0x3e6)])==null||_0x3a1b80['unsubscribe'](),this['_resendTimeout']=0x0;}};_0x116492=_0x13003b([_0x6d6b46(0x4,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x6d6b46(0x5,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0x378)])),_0x6d6b46(0x6,_0x184ab5['Inject'](_0x5b1653[_0x21d99b(0x3a8)])),_0x6d6b46(0x7,_0x184ab5['ICommandService']),_0x6d6b46(0x8,_0x184ab5[_0x21d99b(0x1d3)]),_0x6d6b46(0x9,_0x1137f7[_0x21d99b(0x182)]),_0x6d6b46(0xa,_0x184ab5['IUndoRedoService'])],_0x116492);let _0xd26d4=class extends _0x3c36ac{constructor(_0x2ef3b7,_0x452587,_0x252f71,_0xf8ebc7,_0x94fee,_0x356f21,_0x1849e7,_0x5c6340,_0x3c6a39,_0x4f0d5b,_0x1f3816,_0x85c17d,_0x11eead){const _0x4bd84f=_0x21d99b;super(_0x2ef3b7,_0x452587,_0x252f71,_0xf8ebc7,_0x94fee,_0x4f0d5b,_0x11eead,_0x5c6340,_0x3c6a39),_0x45eb1c(this,_0x4bd84f(0x458),_0x4bd84f(0x323)),_0x45eb1c(this,_0x4bd84f(0x3bc),0x0),_0x45eb1c(this,'_resendTimer'),_0x45eb1c(this,_0x4bd84f(0x3e6)),(this[_0x4bd84f(0x2a3)]=_0x1849e7,this[_0x4bd84f(0x167)]=_0x1f3816,this[_0x4bd84f(0x25b)]=_0x85c17d,_0x356f21&&(this[_0x4bd84f(0x437)]=_0x356f21,this[_0x4bd84f(0x3e6)]=this[_0x4bd84f(0x437)]['subscribe'](({reqId:_0xe75a97,timeout:_0x597acb})=>{const _0x322dc4=_0x4bd84f;this[_0x322dc4(0x22c)](_0xe75a97,_0x597acb);})));}[_0x21d99b(0x27f)](_0x167a01){const _0x1240d9=_0x21d99b;return this['_pendingMutations'][_0x1240d9(0x4bb)](_0x167a01),this;}[_0x21d99b(0x259)](_0x554298){const _0x2fab1b=_0x21d99b;if(this[_0x2fab1b(0x379)](_0x554298))return this[_0x2fab1b(0xf8)](),this[_0x2fab1b(0x2a3)][_0x2fab1b(0x19e)](_0x2184c7,this[_0x2fab1b(0x211)],this['type'],this['_awaitingChangeset'],this[_0x2fab1b(0x4b0)],null,[_0x554298],this[_0x2fab1b(0x150)]);try{const _0x54cc2e=this[_0x2fab1b(0x25b)][_0x2fab1b(0x17e)]([_0x554298],[this['_awaitingChangeset']],!0x1);if(_0x1137f7[_0x2fab1b(0x2be)](_0x54cc2e)){const {c1Prime:_0x10ccd8,c2Prime:_0x4b313b}=_0x54cc2e,_0x4db21f=this[_0x2fab1b(0x25b)]['transformMutationsWithChangeset'](_0x10ccd8[0x0],this[_0x2fab1b(0x4b0)]);if(_0x1137f7['isTransformMutationsWithChangesetSuccess'](_0x4db21f)){const {c1Prime:_0x24d649,m2Prime:_0xf32987}=_0x4db21f;return this['_executeRemoteChangeset'](_0x24d649),_0x4b313b[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x2fab1b(0xf8)](),this[_0x2fab1b(0x2a3)][_0x2fab1b(0x19e)](_0xd26d4,this[_0x2fab1b(0x211)],this[_0x2fab1b(0x4c4)],_0x4b313b[0x0],_0xf32987,this['_handler'],void 0x0);}throw _0x4db21f['error'];}throw _0x54cc2e[_0x2fab1b(0x102)];}catch(_0xfefa01){return this[_0x2fab1b(0x167)][_0x2fab1b(0x102)](_0xfefa01),this[_0x2fab1b(0x2ca)](!0x1);}}[_0x21d99b(0x4a3)](_0x5ea01a){const _0xaed3bf=_0x21d99b;if(this[_0xaed3bf(0xf8)](),this['_checkMissing'](_0x5ea01a))return this['_injector'][_0xaed3bf(0x19e)](_0x2184c7,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0xaed3bf(0x4d9)],[],this['_handler']);this[_0xaed3bf(0x293)]();const _0x402927=this['_injector']['createInstance'](_0x513522,this['unitID'],this['type'],this[_0xaed3bf(0x4b0)],this[_0xaed3bf(0x150)]);return _0x402927[_0xaed3bf(0x172)](),_0x402927[_0xaed3bf(0x28d)](),_0x402927;}[_0x21d99b(0x4d1)](_0x157839){const _0x225fef=_0x21d99b;return this[_0x225fef(0x2ca)](!!(_0x157839!=null&&_0x157839['isPermissionRej']));}[_0x21d99b(0x377)](_0x29c248){const _0x307395=_0x21d99b;return this[_0x307395(0x3bc)]>_0x30b773?this[_0x307395(0xed)]():(this['_resendTimer']=_0x1d359e(this['_resendTimeout'],{'timeout':this[_0x307395(0x3bc)],'reqId':_0x29c248['reqId']}),this[_0x307395(0x3e6)]=this['_resendTimer'][_0x307395(0x32b)](({reqId:_0x3dd459,timeout:_0x26b2cb})=>{const _0x201ecb=_0x307395;this[_0x201ecb(0x22c)](_0x3dd459,_0x26b2cb);}),this);}[_0x21d99b(0xed)](){const _0x562c02=_0x21d99b;return this[_0x562c02(0xf8)](),this['_injector'][_0x562c02(0x19e)](_0x3c645d,this[_0x562c02(0x211)],this[_0x562c02(0x4c4)],this[_0x562c02(0x4d9)],this[_0x562c02(0x4b0)],this[_0x562c02(0x150)]);}[_0x21d99b(0x34f)](){return this;}[_0x21d99b(0x41b)](){const _0x118019=_0x21d99b;this[_0x118019(0x150)]['onSendChangeset'](this[_0x118019(0x4d9)]);}[_0x21d99b(0x2ca)](_0x27d1de){const _0x118359=_0x21d99b;return this[_0x118359(0xf8)](),this[_0x118359(0x2a3)][_0x118359(0x19e)](_0x4d5527,this['unitID'],this[_0x118359(0x4c4)],null,this['_pendingMutations'],this['_handler'],_0x27d1de);}[_0x21d99b(0x22c)](_0x390d63,_0x1942fa){const _0x352ebd=_0x21d99b;var _0x213e9a;_0x390d63===((_0x213e9a=this['_awaitingChangeset'])==null?void 0x0:_0x213e9a[_0x352ebd(0x2bc)])&&(this[_0x352ebd(0x41b)](),this['_resendTimeout']=_0x1942fa===0x0?0x3e8:_0x1942fa*0x2);}[_0x21d99b(0xf8)](){const _0x2bc7f0=_0x21d99b;var _0x2d4e6c;(_0x2d4e6c=this[_0x2bc7f0(0x3e6)])==null||_0x2d4e6c[_0x2bc7f0(0x223)](),this[_0x2bc7f0(0x3bc)]=0x0;}};_0xd26d4=_0x13003b([_0x6d6b46(0x6,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x6d6b46(0x7,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0x378)])),_0x6d6b46(0x8,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x6d6b46(0x9,_0x184ab5[_0x21d99b(0x2bd)]),_0x6d6b46(0xa,_0x184ab5['ILogService']),_0x6d6b46(0xb,_0x1137f7[_0x21d99b(0x182)]),_0x6d6b46(0xc,_0x184ab5[_0x21d99b(0x20a)])],_0xd26d4);let _0x4d5527=class extends _0x3c36ac{constructor(_0x59d6a1,_0x214eb7,_0x16d05b,_0x16a369,_0x5f4afe,_0x35ff9a=!0x1,_0x155bd0,_0x3dc15f,_0x320734,_0x2ad475,_0x123140,_0x15c45c,_0x2bbdeb){const _0x119619=_0x21d99b;super(_0x59d6a1,_0x214eb7,_0x16d05b,_0x16a369,_0x5f4afe,_0x3dc15f,_0x320734,_0x123140,_0x2ad475),_0x45eb1c(this,_0x119619(0x458),_0x119619(0x263)),(this[_0x119619(0x120)]=_0x35ff9a,this[_0x119619(0x2d5)]=_0x155bd0,this[_0x119619(0x8c)]=_0x15c45c,this[_0x119619(0x303)]=_0x2bbdeb,this[_0x119619(0x4bc)](),this['_clearLocalCache'](),this[_0x119619(0x40f)]());}['appendMutation'](){return this;}[_0x21d99b(0x259)](){return this;}[_0x21d99b(0x4a3)](){return this;}[_0x21d99b(0x4d1)](){return this;}[_0x21d99b(0x377)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x21d99b(0x41b)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x21d99b(0x3d7)](){const _0x12e8b6=_0x21d99b;this['_localCacheService'][_0x12e8b6(0x366)](this[_0x12e8b6(0x211)],this[_0x12e8b6(0x4c4)],null,[]);}[_0x21d99b(0x4bc)](){const _0x4c2515=_0x21d99b;this[_0x4c2515(0x120)]?this[_0x4c2515(0x303)][_0x4c2515(0xc0)]({'title':this[_0x4c2515(0x8c)]['t']('permission.title'),'content':this[_0x4c2515(0x8c)]['t'](_0x4c2515(0x399)),'type':_0x4c2515(0x102),'duration':0x0}):this['_notificationService'][_0x4c2515(0xc0)]({'title':this[_0x4c2515(0x8c)]['t'](_0x4c2515(0x184)),'content':this[_0x4c2515(0x8c)]['t'](_0x4c2515(0x1c6)),'type':_0x4c2515(0x102),'duration':0x0});}[_0x21d99b(0x40f)](){const _0x220363=_0x21d99b;this[_0x220363(0x2d5)][_0x220363(0x479)](new _0x1b2dce[(_0x220363(0x363))](this['unitID'])['id'],!0x1);}};_0x4d5527=_0x13003b([_0x6d6b46(0x6,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['IPermissionService'])),_0x6d6b46(0x7,_0x184ab5[_0x21d99b(0x2bd)]),_0x6d6b46(0x8,_0x184ab5[_0x21d99b(0x20a)]),_0x6d6b46(0x9,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x6d6b46(0xa,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0x378)])),_0x6d6b46(0xb,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0x3e5)])),_0x6d6b46(0xc,_0x5b2266[_0x21d99b(0x2fb)])],_0x4d5527);let _0x3c645d=class extends _0x3c36ac{constructor(_0x594703,_0x3e0ed8,_0x35ff1d,_0x4e7717,_0x2d23a0,_0x7f6d21,_0x36093b,_0x2ee330,_0x2f298d,_0x7b42cf){const _0x1dd573=_0x21d99b;super(_0x594703,_0x3e0ed8,_0x35ff1d,_0x4e7717,_0x2d23a0,_0x2f298d,_0x7b42cf,_0x36093b,_0x2ee330),_0x45eb1c(this,_0x1dd573(0x458),_0x1dd573(0x47d)),this[_0x1dd573(0x2a3)]=_0x7f6d21;}[_0x21d99b(0x27f)](_0xf3a313){const _0x1a9162=_0x21d99b;return this[_0x1a9162(0x4b0)][_0x1a9162(0x4bb)](_0xf3a313),this[_0x1a9162(0x28d)](),this;}['onRemoteChangeset'](_0x4e7742){const _0x4076bb=_0x21d99b;throw new Error(_0x4076bb(0x2eb));}[_0x21d99b(0x4a3)](){const _0x183b79=_0x21d99b;throw new Error(_0x183b79(0xef));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x21d99b(0x377)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x1b3c4c=_0x21d99b,{_injector:_0x1624aa,_pendingMutations:_0x335957,_awaitingChangeset:_0x357822,unitID:_0x358973,_handler:_0x5b633,type:_0x25012c}=this,_0x818c12=_0x4051bd(_0x1624aa,_0x358973,_0x25012c,_0x357822,_0x335957,_0x5b633);return _0x818c12 instanceof _0x513522?_0x818c12[_0x1b3c4c(0x172)]():(_0x818c12 instanceof _0xd26d4||_0x818c12 instanceof _0x116492)&&_0x818c12['resend'](),_0x818c12;}[_0x21d99b(0x41b)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3c645d=_0x13003b([_0x6d6b46(0x5,_0x184ab5['Inject'](_0x184ab5['Injector'])),_0x6d6b46(0x6,_0x184ab5[_0x21d99b(0x441)](_0x1137f7['RevisionService'])),_0x6d6b46(0x7,_0x184ab5['Inject'](_0x5b1653['LocalCacheService'])),_0x6d6b46(0x8,_0x184ab5[_0x21d99b(0x2bd)]),_0x6d6b46(0x9,_0x184ab5['IUndoRedoService'])],_0x3c645d);let _0x2184c7=class extends _0x3c36ac{constructor(_0x591982,_0x3a819c,_0x3d0c45,_0x30c63e,_0x2f94b2,_0x265ff9,_0x35e6bb,_0xcb935,_0x46763c,_0x278bf7,_0x523532,_0x1335a5,_0x4aaba8,_0x3e7f2d){const _0x5cecd7=_0x21d99b;super(_0x591982,_0x3a819c,_0x3d0c45,_0x30c63e,_0x35e6bb,_0x1335a5,_0x4aaba8,_0x46763c,_0x278bf7),_0x45eb1c(this,_0x5cecd7(0x458),_0x5cecd7(0x270)),(this[_0x5cecd7(0x367)]=_0x2f94b2,this[_0x5cecd7(0x18e)]=_0x265ff9,this['_injector']=_0xcb935,this['_logService']=_0x523532,this[_0x5cecd7(0x25b)]=_0x3e7f2d);}['onMissedChangesetFetched'](_0x389fe9){const _0x432835=_0x21d99b;try{const _0x174800=[..._0x389fe9,...this[_0x432835(0x18e)]],_0x3ac92c=[this[_0x432835(0x4d9)]||this[_0x432835(0x367)]][_0x432835(0x3a4)](_0x1b7c2f=>!!_0x1b7c2f);let _0x3a6f28,_0x468df7;if(_0x3ac92c[_0x432835(0x1a9)]){const _0x3b3c1a=this[_0x432835(0x25b)][_0x432835(0x17e)](_0x174800,_0x3ac92c,!0x1);if(!_0x1137f7[_0x432835(0x2be)](_0x3b3c1a))throw _0x3b3c1a[_0x432835(0x102)];_0x3a6f28=_0x3b3c1a['c1Prime'],_0x468df7=_0x3b3c1a[_0x432835(0x4c3)];}else _0x3a6f28=_0x174800,_0x468df7=[];let _0x1263b2=this['_pendingMutations'];_0x3a6f28['forEach'](_0x4fe5b5=>{const _0x4ea071=_0x432835;let _0x3eb9d9;if(_0x1263b2[_0x4ea071(0x1a9)]){const _0x1b3270=this[_0x4ea071(0x25b)][_0x4ea071(0x335)](_0x4fe5b5,_0x1263b2);if(!_0x1137f7[_0x4ea071(0x38b)](_0x1b3270))throw _0x1b3270[_0x4ea071(0x102)];_0x3eb9d9=_0x1b3270[_0x4ea071(0xbb)],_0x1263b2=_0x1b3270['m2Prime'];}else _0x3eb9d9=_0x4fe5b5;this[_0x4ea071(0x12a)](_0x3eb9d9);}),this[_0x432835(0x367)]&&this[_0x432835(0x293)](),this[_0x432835(0x4d9)]&&_0x468df7['length']&&(_0x468df7[0x0]['baseRev']=this[_0x432835(0x490)]());let _0x358875;if(this[_0x432835(0x4d9)]&&_0x1263b2['length']!==0x0)_0x358875=this[_0x432835(0x2a3)][_0x432835(0x19e)](_0xd26d4,this['unitID'],this[_0x432835(0x4c4)],_0x468df7[0x0],_0x1263b2,this[_0x432835(0x150)],void 0x0);else{if(this[_0x432835(0x4d9)]&&_0x1263b2[_0x432835(0x1a9)]===0x0)_0x468df7[0x0][_0x432835(0x438)]=this[_0x432835(0x490)](),_0x358875=this[_0x432835(0x2a3)][_0x432835(0x19e)](_0x116492,this[_0x432835(0x211)],this['type'],_0x468df7[0x0],this[_0x432835(0x150)]);else{if(_0x1263b2['length']!==0x0){const _0x381c9c=this[_0x432835(0x2a3)]['createInstance'](_0x513522,this[_0x432835(0x211)],this[_0x432835(0x4c4)],_0x1263b2,this[_0x432835(0x150)]);_0x381c9c[_0x432835(0x172)](),_0x358875=_0x381c9c;}else _0x358875=this[_0x432835(0x2a3)][_0x432835(0x19e)](_0x176624,this[_0x432835(0x211)],this[_0x432835(0x4c4)],this[_0x432835(0x150)]);}}return _0x358875[_0x432835(0x28d)](),_0x358875;}catch(_0x3cbede){return this[_0x432835(0x167)][_0x432835(0x102)](_0x432835(0x3b5),_0x432835(0x274),_0x3cbede),this[_0x432835(0x2a3)][_0x432835(0x19e)](_0x4d5527,this[_0x432835(0x211)],this['type'],this[_0x432835(0x4d9)],this[_0x432835(0x4b0)],this[_0x432835(0x150)],!0x1);}}[_0x21d99b(0x41b)](){const _0x261bee=_0x21d99b;throw new Error(_0x261bee(0x324));}['appendMutation'](_0x157ee1){const _0x5d7522=_0x21d99b;return this[_0x5d7522(0x4b0)][_0x5d7522(0x4bb)](_0x157ee1),this;}[_0x21d99b(0x259)](_0xa643cf){const _0x2f8bc1=_0x21d99b;return this[_0x2f8bc1(0x18e)]['push'](_0xa643cf),this;}[_0x21d99b(0x4a3)](_0x117841){const _0x39a2c6=_0x21d99b;if(this['_awaitingChangeset'])return this[_0x39a2c6(0x367)]=this[_0x39a2c6(0x4d9)],this['_awaitingChangeset']=null,this;throw new Error(_0x39a2c6(0x4d0));}[_0x21d99b(0x4d1)](_0x22a570){const _0x3db612=_0x21d99b;return this[_0x3db612(0x2ca)](!!(_0x22a570!=null&&_0x22a570[_0x3db612(0x48a)]));}[_0x21d99b(0x377)](){return this;}['toggleOffline'](){const _0x24a1e3=_0x21d99b;return this[_0x24a1e3(0x2a3)][_0x24a1e3(0x19e)](_0x3c645d,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x24a1e3(0x4b0)],this[_0x24a1e3(0x150)]);}[_0x21d99b(0x34f)](){return this;}[_0x21d99b(0x2ca)](_0x171c00){const _0x172e79=_0x21d99b;return this[_0x172e79(0x2a3)][_0x172e79(0x19e)](_0x4d5527,this[_0x172e79(0x211)],this[_0x172e79(0x4c4)],this[_0x172e79(0x4d9)],this[_0x172e79(0x4b0)],this[_0x172e79(0x150)],_0x171c00);}};_0x2184c7=_0x13003b([_0x6d6b46(0x7,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x6d6b46(0x8,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0x378)])),_0x6d6b46(0x9,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x6d6b46(0xa,_0x184ab5[_0x21d99b(0x1d3)]),_0x6d6b46(0xb,_0x184ab5[_0x21d99b(0x2bd)]),_0x6d6b46(0xc,_0x184ab5[_0x21d99b(0x20a)]),_0x6d6b46(0xd,_0x1137f7['ITransformService'])],_0x2184c7);function _0x4051bd(_0x3907ae,_0x2ecbe9,_0x5ecd33,_0x8fa3f1,_0x4cadff,_0x44f587){const _0x583ac2=_0x21d99b;return _0x8fa3f1&&_0x4cadff[_0x583ac2(0x1a9)]?_0x3907ae[_0x583ac2(0x19e)](_0xd26d4,_0x2ecbe9,_0x5ecd33,_0x8fa3f1,_0x4cadff,_0x44f587,void 0x0):_0x8fa3f1?_0x3907ae['createInstance'](_0x116492,_0x2ecbe9,_0x5ecd33,_0x8fa3f1,_0x44f587):_0x4cadff[_0x583ac2(0x1a9)]?_0x3907ae[_0x583ac2(0x19e)](_0x513522,_0x2ecbe9,_0x5ecd33,_0x4cadff,_0x44f587):_0x3907ae[_0x583ac2(0x19e)](_0x176624,_0x2ecbe9,_0x5ecd33,_0x44f587);}var _0x4b44e0=Object['defineProperty'],_0x3dcf01=Object[_0x21d99b(0x44e)],_0x2ad432=(_0x10d4ae,_0x48a8b5,_0x1c659b,_0x43c47c)=>{const _0x11e804=_0x21d99b;for(var _0x4a7de1=_0x43c47c>0x1?void 0x0:_0x43c47c?_0x3dcf01(_0x48a8b5,_0x1c659b):_0x48a8b5,_0x596c5e=_0x10d4ae[_0x11e804(0x1a9)]-0x1,_0x4be39c;_0x596c5e>=0x0;_0x596c5e--)(_0x4be39c=_0x10d4ae[_0x596c5e])&&(_0x4a7de1=(_0x43c47c?_0x4be39c(_0x48a8b5,_0x1c659b,_0x4a7de1):_0x4be39c(_0x4a7de1))||_0x4a7de1);return _0x43c47c&&_0x4a7de1&&_0x4b44e0(_0x48a8b5,_0x1c659b,_0x4a7de1),_0x4a7de1;},_0x1bc9e4=(_0x24be91,_0x560731)=>(_0x2f0f24,_0x279f73)=>_0x560731(_0x2f0f24,_0x279f73,_0x24be91);_0x5b1653[_0x21d99b(0xd3)]=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x7926fd,_0x3dd540,_0x2ee40b,_0x4931cd,_0xf9294c,_0x28329a,_0x17fc71,_0x5b97f9,_0x915899,_0x24ca25,_0x4c41b4,_0x5126cc,_0x550d41){const _0x34e0f4=_0x21d99b;super(),_0x45eb1c(this,_0x34e0f4(0x1a6),new _0x547585['BehaviorSubject'](null)),_0x45eb1c(this,_0x34e0f4(0x2f8),this[_0x34e0f4(0x1a6)][_0x34e0f4(0x1b5)]()),_0x45eb1c(this,_0x34e0f4(0x1ba)),_0x45eb1c(this,_0x34e0f4(0x2d6),!0x1),_0x45eb1c(this,_0x34e0f4(0x2cb),''),_0x45eb1c(this,'_changesetReqId',0x0),_0x45eb1c(this,_0x34e0f4(0x1d8),this[_0x34e0f4(0x2f8)]['pipe'](_0x547585[_0x34e0f4(0x1fc)](_0x374947=>_0x374947?_0x374947[_0x34e0f4(0x458)]:_0x37dd10[_0x34e0f4(0x126)]),_0x547585[_0x34e0f4(0x11d)](0x1))),_0x45eb1c(this,'_transitionLocked',!0x1),_0x45eb1c(this,'_remoteChangesetQueue',[]),(this[_0x34e0f4(0x211)]=_0x7926fd,this['session']=_0x3dd540,this[_0x34e0f4(0x145)]=_0x2ee40b,this['_injector']=_0x4931cd,this['_localCacheService']=_0xf9294c,this[_0x34e0f4(0x44b)]=_0x28329a,this['_localeService']=_0x17fc71,this[_0x34e0f4(0x29a)]=_0x5b97f9,this[_0x34e0f4(0x167)]=_0x915899,this[_0x34e0f4(0x43f)]=_0x24ca25,this[_0x34e0f4(0x185)]=_0x4c41b4,this[_0x34e0f4(0x2d5)]=_0x5126cc,this['_singleActiveUnitService']=_0x550d41);}get[_0x21d99b(0x17a)](){const _0x12fdee=_0x21d99b;return this[_0x12fdee(0x1ba)];}async[_0x21d99b(0x161)](){const _0x37f254=_0x21d99b;if(this[_0x37f254(0x17a)])throw new Error(_0x37f254(0x201));await this[_0x37f254(0xe9)]();}['pauseCollaboration'](){const _0x432346=_0x21d99b;return this[_0x432346(0x2d6)]=!0x0,_0x184ab5['toDisposable'](()=>{const _0x5d9121=_0x432346;this[_0x5d9121(0x2d6)]=!0x1,this[_0x5d9121(0x1eb)]();});}[_0x21d99b(0x219)](_0x213e84){const _0x2ee953=_0x21d99b;this['_state']=_0x213e84,this[_0x2ee953(0x1a6)]['next'](_0x213e84);}async[_0x21d99b(0xe9)](){const _0x9e32dc=_0x21d99b;var _0x50c7c2;this[_0x9e32dc(0x219)](await this[_0x9e32dc(0x45c)]()),this[_0x9e32dc(0x39b)]&&((_0x50c7c2=this[_0x9e32dc(0x39b)])==null||_0x50c7c2[_0x9e32dc(0x3b8)](this[_0x9e32dc(0x211)]),this[_0x9e32dc(0x4d7)](this[_0x9e32dc(0x39b)][_0x9e32dc(0x402)](this[_0x9e32dc(0x211)])['subscribe'](_0x39a729=>{const _0x38a706=_0x9e32dc;this[_0x38a706(0x167)][_0x38a706(0x4b3)](_0x38a706(0xa6),_0x38a706(0x45a),_0x39a729),_0x39a729===_0x2bebc9[_0x38a706(0x13a)]?(this[_0x38a706(0x185)][_0x38a706(0xc0)]({'content':this['_localeService']['t'](_0x38a706(0x13d)),'type':_0x5ad17f[_0x38a706(0xfa)]['Warning']}),this['_permissionService'][_0x38a706(0x479)](new _0x1b2dce[(_0x38a706(0x363))](this['unitID'])['id'],!0x1)):this[_0x38a706(0x2d5)][_0x38a706(0x479)](new _0x1b2dce[(_0x38a706(0x363))](this[_0x38a706(0x211)])['id'],!0x0);})));let _0x27eaf1=!0x1;return this['disposeWithMe'](this[_0x9e32dc(0x90)]['sessionStatus$'][_0x9e32dc(0x32b)](_0x3bea1d=>{const _0x3b18d9=_0x9e32dc;_0x3bea1d===_0x382638[_0x3b18d9(0x1f1)]?this[_0x3b18d9(0x334)](_0x27eaf1):_0x3bea1d===_0x382638[_0x3b18d9(0x126)]&&(_0x27eaf1=!0x0,this[_0x3b18d9(0x192)]());})),this[_0x9e32dc(0x4d7)](this[_0x9e32dc(0x90)]['event$']['subscribe'](_0x197473=>{const _0x1d4625=_0x9e32dc;try{switch(_0x197473[_0x1d4625(0x30c)]){case _0x1137f7[_0x1d4625(0x299)][_0x1d4625(0x1c0)]:{this['_onRemoteChangeset'](_0x1137f7['parseProtocolChangeset'](_0x197473[_0x1d4625(0x168)]));break;}case _0x1137f7['CollaborationEvent'][_0x1d4625(0x43d)]:{this['_onRemoteACK'](_0x197473[_0x1d4625(0x168)]);break;}case _0x1137f7[_0x1d4625(0x299)]['CHANGESET_REJ']:{this[_0x1d4625(0x277)]();break;}case _0x1137f7['CollaborationEvent'][_0x1d4625(0x151)]:{this[_0x1d4625(0x2ae)](_0x197473[_0x1d4625(0x168)]);break;}case _0x1137f7[_0x1d4625(0x299)][_0x1d4625(0x285)]:{this[_0x1d4625(0x135)](_0x197473[_0x1d4625(0x168)]['changesets'][_0x1d4625(0x1fc)](_0x2b42f3=>_0x1137f7[_0x1d4625(0x1fb)](_0x2b42f3)));break;}case _0x1137f7[_0x1d4625(0x299)][_0x1d4625(0x49e)]:this[_0x1d4625(0x277)]({'isPermissionRej':!0x0});}}catch(_0x1ebbe0){throw console[_0x1d4625(0x102)](_0x1d4625(0x345),_0x1ebbe0),_0x1ebbe0;}})),this['_state'];}[_0x21d99b(0x2b4)](){const _0x437645=_0x21d99b;this[_0x437645(0x49d)]=!0x1;}[_0x21d99b(0x3dc)](){const _0x12b4c7=_0x21d99b;if(this[_0x12b4c7(0x49d)])throw new Error(_0x12b4c7(0x28b));this[_0x12b4c7(0x49d)]=!0x0;}['_onLocalMutation'](_0x8e5b4d){const _0x1ace7f=_0x21d99b;this[_0x1ace7f(0x3dc)](),this[_0x1ace7f(0x219)](this['_state'][_0x1ace7f(0x27f)](_0x8e5b4d)),this[_0x1ace7f(0x2b4)]();}[_0x21d99b(0x15a)](_0x479e51){const _0x439003=_0x21d99b;if(!(_0x479e51[_0x439003(0x464)]<=this[_0x439003(0x29a)]['getCurrentRevOfUnit'](this[_0x439003(0x211)]))){if(this[_0x439003(0x2d6)]){this[_0x439003(0x3f2)]['push'](_0x479e51);return;}this[_0x439003(0x4c0)](_0x479e51);}}[_0x21d99b(0x1eb)](){const _0x5745fa=_0x21d99b;this['_remoteChangesetQueue']['forEach'](_0x4d86b2=>this[_0x5745fa(0x4c0)](_0x4d86b2)),this[_0x5745fa(0x3f2)]=[];}[_0x21d99b(0x4c0)](_0x22a73a){const _0x76fbf5=_0x21d99b,_0x368515=this[_0x76fbf5(0x44b)][_0x76fbf5(0x18c)][_0x76fbf5(0x28c)](this[_0x76fbf5(0x44b)][_0x76fbf5(0x18c)][_0x76fbf5(0x144)]()[_0x76fbf5(0x160)])(_0x22a73a[_0x76fbf5(0x230)],null)||_0x22a73a[_0x76fbf5(0x230)],_0x235bcc={..._0x22a73a,'mutations':_0x368515};this[_0x76fbf5(0x3dc)](),this[_0x76fbf5(0x219)](this[_0x76fbf5(0x1ba)][_0x76fbf5(0x259)](_0x235bcc)),this[_0x76fbf5(0x2b4)]();}[_0x21d99b(0x227)](_0x1144d6){const _0x3dd0b9=_0x21d99b;this[_0x3dd0b9(0x3dc)](),this[_0x3dd0b9(0x219)](this[_0x3dd0b9(0x1ba)][_0x3dd0b9(0x4a3)](_0x1144d6)),this['_unlockTransition']();}[_0x21d99b(0x277)](_0x5dfe8e){const _0x2c32e1=_0x21d99b;this['_lockTransition'](),this[_0x2c32e1(0x219)](this[_0x2c32e1(0x1ba)][_0x2c32e1(0x4d1)](_0x5dfe8e)),this[_0x2c32e1(0x2b4)]();}[_0x21d99b(0x2ae)](_0x338e45){const _0x1ead19=_0x21d99b;this['_lockTransition'](),this[_0x1ead19(0x219)](this['_state']['onRemoteRetry'](_0x338e45)),this[_0x1ead19(0x2b4)]();}[_0x21d99b(0x135)](_0x3f2054){const _0x5570f8=_0x21d99b;if(!(this[_0x5570f8(0x1ba)]instanceof _0x2184c7))throw new TypeError(_0x5570f8(0xb0));const _0x1082a1=_0x3f2054[_0x5570f8(0x1fc)](_0x268f43=>{const _0x47e85=_0x5570f8,_0x260e65=this[_0x47e85(0x44b)][_0x47e85(0x18c)][_0x47e85(0x28c)](this['_compressMutationService'][_0x47e85(0x18c)]['getInterceptPoints']()[_0x47e85(0x160)])(_0x268f43[_0x47e85(0x230)],null)||_0x268f43[_0x47e85(0x230)];return{..._0x268f43,'mutations':_0x260e65};});this[_0x5570f8(0x3dc)](),this[_0x5570f8(0x219)](this[_0x5570f8(0x1ba)][_0x5570f8(0x2fd)](_0x1082a1)),this[_0x5570f8(0x2b4)]();}[_0x21d99b(0x192)](){const _0x48a2e3=_0x21d99b;this[_0x48a2e3(0x3dc)](),this[_0x48a2e3(0x219)](this['_state']['toggleOffline']()),this[_0x48a2e3(0x2b4)]();}[_0x21d99b(0x334)](_0x5d570e=!0x1){const _0x567a3a=_0x21d99b;this[_0x567a3a(0x3dc)](),this[_0x567a3a(0x219)](this[_0x567a3a(0x1ba)][_0x567a3a(0x34f)]()),this[_0x567a3a(0x2b4)]();const _0x1178d5=this[_0x567a3a(0x1ba)];_0x5d570e&&_0x1178d5 instanceof _0x176624&&(this[_0x567a3a(0x3dc)](),this[_0x567a3a(0x219)](_0x1178d5[_0x567a3a(0x28f)]()),this[_0x567a3a(0x2b4)]());}async['_createInitialState'](){return new Promise(_0xe2881f=>{const _0xe7cce4=_0x5cee;this['session'][_0xe7cce4(0x358)][_0xe7cce4(0x2a2)](_0x547585['take'](0x1))[_0xe7cce4(0x32b)](async _0x2e639f=>{const _0x5bb3ae=_0xe7cce4;_0xe2881f(await this[_0x5bb3ae(0x3eb)](_0x2e639f===_0x382638[_0x5bb3ae(0x1f1)]));});});}[_0x21d99b(0x21a)](){const _0x5027d0=_0x21d99b,_0x261870=this[_0x5027d0(0x211)];return{'onStateChange':(_0x521789,_0x3b0686)=>{const _0x469d5d=_0x5027d0;if(_0x521789!==this[_0x469d5d(0x1ba)])throw new Error(_0x469d5d(0x28a)+_0x521789[_0x469d5d(0x458)]+_0x469d5d(0x106)+_0x3b0686[_0x469d5d(0x458)]+_0x469d5d(0x134)+this['_state'][_0x469d5d(0x458)]);this[_0x469d5d(0x219)](_0x3b0686);},'onSendChangeset':_0x5aa658=>{const _0x1fd39b=_0x5027d0;_0x5aa658[_0x1fd39b(0x21d)]||(_0x5aa658[_0x1fd39b(0x21d)]=this[_0x1fd39b(0x2cb)],_0x5aa658[_0x1fd39b(0x2bc)]=++this[_0x1fd39b(0x3fd)]);const _0x3d4c96={'eventID':_0x1137f7[_0x1fd39b(0x299)][_0x1fd39b(0x278)],'data':{'unitID':_0x5aa658[_0x1fd39b(0x211)],'unitType':this['_type'],'changeset':_0x5aa658,'memberID':this[_0x1fd39b(0x90)][_0x1fd39b(0x2ed)]()}};this[_0x1fd39b(0x90)]['send'](_0x3d4c96,this[_0x1fd39b(0x211)]);},'onMissingChangesets':({from:_0x1b4a82,to:_0x2b2795})=>{const _0x33cebf=_0x5027d0;this[_0x33cebf(0x167)][_0x33cebf(0x4b3)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x1b4a82+_0x33cebf(0x353)+_0x2b2795);const _0x1f703c={'eventID':_0x1137f7['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x261870,'unitType':this[_0x33cebf(0x145)],'from':_0x1b4a82,'to':_0x2b2795}};this[_0x33cebf(0x90)][_0x33cebf(0x29f)](_0x1f703c,this['unitID']);}};}async[_0x21d99b(0x3eb)](_0x2475c4){const _0x50bb38=_0x21d99b;var _0x170382,_0x140d18;const _0x3ea0bd=await this[_0x50bb38(0xcf)][_0x50bb38(0x434)](this[_0x50bb38(0x211)]),_0x3c3fe2=(_0x170382=_0x3ea0bd==null?void 0x0:_0x3ea0bd['mutations'])!=null?_0x170382:[],_0x22ead8=(_0x140d18=_0x3ea0bd==null?void 0x0:_0x3ea0bd[_0x50bb38(0x1e5)])!=null?_0x140d18:null,_0x4a607e=!!(_0x22ead8!=null&&_0x22ead8['sid'])&&!!(_0x22ead8!=null&&_0x22ead8['reqId']);this[_0x50bb38(0x2cb)]=_0x4a607e?_0x22ead8[_0x50bb38(0x21d)]:_0x53a099(),this[_0x50bb38(0x3fd)]=_0x4a607e?_0x22ead8['reqId']:0x0;const _0x3f7b69=this[_0x50bb38(0x211)];try{this[_0x50bb38(0x1ec)](_0x22ead8,_0x3c3fe2);}catch(_0x4d5455){this[_0x50bb38(0x167)][_0x50bb38(0x102)](_0x4d5455);}const _0x521f08=this['_createHandler']();if(_0x2475c4){const _0x553ced=_0x4051bd(this[_0x50bb38(0x2a3)],_0x3f7b69,this[_0x50bb38(0x145)],_0x22ead8,_0x3c3fe2,_0x521f08);return _0x553ced instanceof _0x513522?_0x553ced['_schedule']():(_0x553ced instanceof _0xd26d4||_0x553ced instanceof _0x116492)&&_0x553ced['resend'](),_0x553ced;}return this[_0x50bb38(0x2a3)][_0x50bb38(0x19e)](_0x3c645d,_0x3f7b69,this[_0x50bb38(0x145)],_0x22ead8,_0x3c3fe2,_0x521f08);}[_0x21d99b(0x1ec)](_0x3207d1,_0x2bbd76){const _0x4c6517=_0x21d99b;var _0x14ac6d,_0x240f62;const _0x17d22d=this[_0x4c6517(0x44b)][_0x4c6517(0x18c)]['fetchThroughInterceptors'](this[_0x4c6517(0x44b)][_0x4c6517(0x18c)]['getInterceptPoints']()[_0x4c6517(0x160)]);(_0x14ac6d=_0x17d22d((_0x3207d1==null?void 0x0:_0x3207d1[_0x4c6517(0x230)])||[],null))==null||_0x14ac6d[_0x4c6517(0x1fd)](_0x101523=>this[_0x4c6517(0x43f)]['executeCommand'](_0x101523['id'],_0x101523[_0x4c6517(0x31d)])),(_0x240f62=_0x17d22d(_0x2bbd76||[],null))==null||_0x240f62['forEach'](_0x2dce12=>this[_0x4c6517(0x43f)][_0x4c6517(0x4be)](_0x2dce12['id'],_0x2dce12['params']));}},_0x5b1653['CollaborationEntity']=_0x2ad432([_0x1bc9e4(0x3,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x1bc9e4(0x4,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x1bc9e4(0x5,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0xb2)])),_0x1bc9e4(0x6,_0x184ab5['Inject'](_0x184ab5[_0x21d99b(0x3e5)])),_0x1bc9e4(0x7,_0x184ab5['Inject'](_0x1137f7[_0x21d99b(0x378)])),_0x1bc9e4(0x8,_0x184ab5[_0x21d99b(0x1d3)]),_0x1bc9e4(0x9,_0x184ab5[_0x21d99b(0x2bd)]),_0x1bc9e4(0xa,_0x5b2266[_0x21d99b(0x2f7)]),_0x1bc9e4(0xb,_0x184ab5[_0x21d99b(0x239)]),_0x1bc9e4(0xc,_0x184ab5[_0x21d99b(0x260)](_0x59c3be))],_0x5b1653[_0x21d99b(0xd3)]),_0x5b1653[_0x21d99b(0x4c2)]=class extends _0x5b1653[_0x21d99b(0xd3)]{constructor(_0x434114,_0x2cec7f,_0xc981f3,_0x13f78e,_0x4466bc,_0x49f227,_0x430b90,_0x3653b9,_0x4779e2,_0x19c4a0,_0x5dd9ec,_0xe0f347,_0x562322,_0x2f14db,_0x5733d1,_0x41f411,_0x5314f7){const _0x3f8e9f=_0x21d99b;super(_0x434114,_0xc981f3,_0x2cec7f,_0x13f78e,_0x4466bc,_0x49f227,_0x430b90,_0x3653b9,_0x562322,_0x2f14db,_0x5733d1,_0x41f411,_0x5314f7),this[_0x3f8e9f(0x211)]=_0x434114,this[_0x3f8e9f(0x4c4)]=_0x2cec7f,this[_0x3f8e9f(0x34b)]=_0x4779e2,this[_0x3f8e9f(0x42d)]=_0x19c4a0,this['_docTransformSelectionsService']=_0x5dd9ec,this[_0x3f8e9f(0x429)]=_0xe0f347;}[_0x21d99b(0x21a)](){const _0x32d47f=_0x21d99b,_0x262317=super[_0x32d47f(0x21a)]();return _0x262317[_0x32d47f(0xfc)]=_0x5c1f35=>this['_docTransformIMECacheService']['transformIMECache'](_0x5c1f35),_0x262317[_0x32d47f(0x3d9)]=_0x1d5fe0=>this[_0x32d47f(0x2de)]['transformSelections'](_0x1d5fe0),_0x262317[_0x32d47f(0x3d6)]=_0x118946=>this['_docSyncEditingCollabCursorService'][_0x32d47f(0x1d5)](_0x118946),_0x262317['onTransformRemoteChangesetByIMECache']=_0x385f18=>this['_docTransformIMECacheService'][_0x32d47f(0x37a)](_0x385f18),_0x262317;}async['_init'](){const _0x5cef2a=_0x21d99b,_0x27123c=await super[_0x5cef2a(0xe9)]();return this['_docStateChangeManagerService'][_0x5cef2a(0x48d)][_0x5cef2a(0x2a2)](_0x547585['takeUntil'](this[_0x5cef2a(0x482)]))[_0x5cef2a(0x32b)](_0x479e2c=>{const _0x41ea9b=_0x5cef2a;if(_0x479e2c==null)return;const {unitId:_0x404d1f,redoState:_0x2f17fc,commandId:_0x151756}=_0x479e2c;if(_0x404d1f!==this['unitID'])return;const _0x20df58={'id':_0x151756,'type':_0x184ab5[_0x41ea9b(0x1cd)]['MUTATION'],'params':{'unitId':_0x404d1f,'actions':_0x2f17fc['actions'],'textRanges':null}};this[_0x41ea9b(0x137)](_0x20df58);}),_0x27123c;}},_0x5b1653[_0x21d99b(0x4c2)]=_0x2ad432([_0x1bc9e4(0x3,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['Injector'])),_0x1bc9e4(0x4,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x1bc9e4(0x5,_0x184ab5[_0x21d99b(0x441)](_0x1137f7[_0x21d99b(0xb2)])),_0x1bc9e4(0x6,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0x3e5)])),_0x1bc9e4(0x7,_0x184ab5['Inject'](_0x1137f7[_0x21d99b(0x378)])),_0x1bc9e4(0x8,_0x184ab5[_0x21d99b(0x441)](_0x3d65be[_0x21d99b(0x288)])),_0x1bc9e4(0x9,_0x184ab5[_0x21d99b(0x441)](_0x11355a)),_0x1bc9e4(0xa,_0x184ab5[_0x21d99b(0x441)](_0x390046)),_0x1bc9e4(0xb,_0x184ab5['Inject'](_0x295154)),_0x1bc9e4(0xc,_0x184ab5[_0x21d99b(0x1d3)]),_0x1bc9e4(0xd,_0x184ab5['ICommandService']),_0x1bc9e4(0xe,_0x5b2266[_0x21d99b(0x2f7)]),_0x1bc9e4(0xf,_0x184ab5[_0x21d99b(0x239)]),_0x1bc9e4(0x10,_0x184ab5[_0x21d99b(0x260)](_0x59c3be))],_0x5b1653['DocCollaborationEntity']),_0x5b1653[_0x21d99b(0x465)]=class extends _0x5b1653[_0x21d99b(0xd3)]{constructor(_0x178805,_0x4622da,_0x3dd965,_0x58ac01,_0x75a338,_0x3dba9b,_0x44de49,_0x243a72,_0x1bf53c,_0x4cb97d,_0x2c710d,_0xb956b3,_0x504900,_0xc87492){const _0x23fdaa=_0x21d99b;super(_0x178805,_0x3dd965,_0x4622da,_0x58ac01,_0x75a338,_0x3dba9b,_0x44de49,_0x243a72,_0x4cb97d,_0x2c710d,_0xb956b3,_0x504900,_0xc87492),this[_0x23fdaa(0x211)]=_0x178805,this[_0x23fdaa(0x4c4)]=_0x4622da,this['_sheetTransformSelectionsService']=_0x1bf53c;}[_0x21d99b(0x21a)](){const _0x450da1=_0x21d99b,_0x13536d=super[_0x450da1(0x21a)]();return _0x13536d['onTransformSelections']=_0x18981c=>this[_0x450da1(0x415)][_0x450da1(0x2aa)](_0x18981c),_0x13536d;}async[_0x21d99b(0xe9)](){const _0x5c5676=_0x21d99b,_0x88cf3c=await super['_init']();return this[_0x5c5676(0x4d7)](this[_0x5c5676(0x43f)]['onCommandExecuted']((_0x50d20d,_0x315f3b)=>{const _0x42c4be=_0x5c5676;if(_0x50d20d['type']!==_0x184ab5['CommandType'][_0x42c4be(0x354)]||_0x315f3b!=null&&_0x315f3b[_0x42c4be(0x3f9)]||_0x315f3b!=null&&_0x315f3b[_0x42c4be(0x442)])return;const _0x4c83f3=_0x50d20d['params'];if((_0x4c83f3==null?void 0x0:_0x4c83f3[_0x42c4be(0x4d3)])!==this[_0x42c4be(0x211)])return;const _0x1b5581=_0x50d20d,_0x2612b2=this[_0x42c4be(0x44b)][_0x42c4be(0x18c)][_0x42c4be(0x28c)](this[_0x42c4be(0x44b)][_0x42c4be(0x18c)][_0x42c4be(0x144)]()[_0x42c4be(0xae)])([_0x1b5581],null)||[_0x1b5581];this[_0x42c4be(0x137)](_0x2612b2[0x0]);})),_0x88cf3c;}},_0x5b1653['SheetCollaborationEntity']=_0x2ad432([_0x1bc9e4(0x3,_0x184ab5['Inject'](_0x184ab5['Injector'])),_0x1bc9e4(0x4,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x3a8)])),_0x1bc9e4(0x5,_0x184ab5['Inject'](_0x1137f7[_0x21d99b(0xb2)])),_0x1bc9e4(0x6,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['LocaleService'])),_0x1bc9e4(0x7,_0x184ab5['Inject'](_0x1137f7[_0x21d99b(0x378)])),_0x1bc9e4(0x8,_0x184ab5['Inject'](_0x324fc0)),_0x1bc9e4(0x9,_0x184ab5[_0x21d99b(0x1d3)]),_0x1bc9e4(0xa,_0x184ab5[_0x21d99b(0x2bd)]),_0x1bc9e4(0xb,_0x5b2266['IMessageService']),_0x1bc9e4(0xc,_0x184ab5['IPermissionService']),_0x1bc9e4(0xd,_0x184ab5[_0x21d99b(0x260)](_0x59c3be))],_0x5b1653['SheetCollaborationEntity']);var _0xcd2b3f=Object['defineProperty'],_0x131f38=Object[_0x21d99b(0x44e)],_0x1dfe50=(_0x2a16d1,_0x353a69,_0x56078d,_0x51bcea)=>{const _0x49efbc=_0x21d99b;for(var _0x2fe010=_0x51bcea>0x1?void 0x0:_0x51bcea?_0x131f38(_0x353a69,_0x56078d):_0x353a69,_0x17ce8c=_0x2a16d1[_0x49efbc(0x1a9)]-0x1,_0x33961f;_0x17ce8c>=0x0;_0x17ce8c--)(_0x33961f=_0x2a16d1[_0x17ce8c])&&(_0x2fe010=(_0x51bcea?_0x33961f(_0x353a69,_0x56078d,_0x2fe010):_0x33961f(_0x2fe010))||_0x2fe010);return _0x51bcea&&_0x2fe010&&_0xcd2b3f(_0x353a69,_0x56078d,_0x2fe010),_0x2fe010;},_0x306c9a=(_0x4d58fc,_0x1d0469)=>(_0x882fb6,_0x2d6cf3)=>_0x1d0469(_0x882fb6,_0x2d6cf3,_0x4d58fc);_0x5b1653['CollaborationController']=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x41eed4,_0x1040b2,_0x77520f){const _0x347692=_0x21d99b;super(),_0x45eb1c(this,_0x347692(0x1ad),new Map()),_0x45eb1c(this,_0x347692(0x249),new _0x547585[(_0x347692(0x121))]()),(this[_0x347692(0x2a3)]=_0x41eed4,this[_0x347692(0xe3)]=_0x1040b2,this[_0x347692(0x2f6)]=_0x77520f,this[_0x347692(0xe9)]());}[_0x21d99b(0x3f7)](){const _0x4ba2dd=_0x21d99b;super[_0x4ba2dd(0x3f7)](),this[_0x4ba2dd(0x1ad)]['forEach'](_0x3134c5=>_0x3134c5[_0x4ba2dd(0x3f7)]()),this[_0x4ba2dd(0x1ad)][_0x4ba2dd(0x3de)]();}[_0x21d99b(0x385)](_0x39f6f5){const _0x18636d=_0x21d99b;var _0x36e929;return(_0x36e929=this['_entities'][_0x18636d(0x281)](_0x39f6f5))!=null?_0x36e929:null;}[_0x21d99b(0x1f2)](_0x15fe08){const _0x3db44b=_0x21d99b,_0x23a0e8=this[_0x3db44b(0x385)](_0x15fe08);return _0x23a0e8?_0x547585['of'](_0x23a0e8):this[_0x3db44b(0x249)][_0x3db44b(0x2a2)](_0x597698['filter'](_0x416cae=>_0x416cae['unitID']===_0x15fe08));}[_0x21d99b(0xe9)](){const _0x47036f=_0x21d99b;this[_0x47036f(0x2f6)]['getTypeOfUnitAdded$'](_0x184ab5[_0x47036f(0x42f)]['UNIVER_SHEET'])[_0x47036f(0x2a2)](_0x547585[_0x47036f(0x3df)](this['dispose$']),_0x597698[_0x47036f(0x162)](0x10))[_0x47036f(0x32b)](async _0x440a05=>{const _0x5cf622=_0x47036f,_0x571021=_0x440a05[_0x5cf622(0x18a)](),_0x5bf659=await this[_0x5cf622(0x1a0)](_0x571021,_0x3322af[_0x5cf622(0xab)]);this[_0x5cf622(0x1ad)][_0x5cf622(0x109)](_0x571021,_0x5bf659);}),this[_0x47036f(0x2f6)]['getTypeOfUnitAdded$'](_0x184ab5[_0x47036f(0x42f)][_0x47036f(0x49a)])[_0x47036f(0x2a2)](_0x547585[_0x47036f(0x3df)](this[_0x47036f(0x482)]),_0x597698['delay'](0x10))['pipe'](_0x597698[_0x47036f(0x3a4)](_0x3acc68=>!_0x3acc68[_0x47036f(0x18a)]()[_0x47036f(0x3ba)]('__')))[_0x47036f(0x32b)](async _0x198b28=>{const _0x8dc330=_0x47036f,_0x44343f=_0x198b28['getUnitId'](),_0x4994fc=await this['_startCollaboration'](_0x44343f,_0x3322af[_0x8dc330(0x49a)]);this[_0x8dc330(0x1ad)][_0x8dc330(0x109)](_0x44343f,_0x4994fc);}),_0x547585[_0x47036f(0x24a)](this[_0x47036f(0x2f6)]['getTypeOfUnitDisposed$'](_0x184ab5[_0x47036f(0x42f)][_0x47036f(0xab)]),this[_0x47036f(0x2f6)]['getTypeOfUnitDisposed$'](_0x184ab5[_0x47036f(0x42f)][_0x47036f(0x49a)]))[_0x47036f(0x2a2)](_0x547585[_0x47036f(0x3df)](this[_0x47036f(0x482)]))[_0x47036f(0x32b)](_0x1d9d33=>{const _0x37653f=_0x47036f,_0x566005=_0x1d9d33['getUnitId'](),_0x4559aa=this['_entities'][_0x37653f(0x281)](_0x566005);_0x4559aa&&(_0x4559aa[_0x37653f(0x3f7)](),this[_0x37653f(0x1ad)]['delete'](_0x566005));});}async[_0x21d99b(0x1a0)](_0x563fcb,_0x26ebd0){const _0x2b2d34=_0x21d99b,_0x123481=await this[_0x2b2d34(0xe3)][_0x2b2d34(0x118)](_0x563fcb),_0x5b641c=this['_injector'][_0x2b2d34(0x19e)](this['_getCtorByUniverType'](_0x26ebd0),_0x563fcb,_0x26ebd0,_0x123481);return await _0x5b641c[_0x2b2d34(0x161)](),this[_0x2b2d34(0x249)]['next'](_0x5b641c),_0x5b641c;}['_getCtorByUniverType'](_0x492853){const _0x1fe78d=_0x21d99b;switch(_0x492853){case _0x3322af[_0x1fe78d(0x49a)]:return _0x5b1653[_0x1fe78d(0x4c2)];case _0x3322af['UNIVER_SHEET']:return _0x5b1653['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x492853);}}},_0x5b1653[_0x21d99b(0x48b)]=_0x1dfe50([_0x306c9a(0x0,_0x184ab5['Inject'](_0x184ab5[_0x21d99b(0xad)])),_0x306c9a(0x1,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x24d)])),_0x306c9a(0x2,_0x184ab5[_0x21d99b(0x2a6)])],_0x5b1653[_0x21d99b(0x48b)]);const _0x4d820e=['purple300',_0x21d99b(0x44a),_0x21d99b(0x286),_0x21d99b(0x15d),_0x21d99b(0xf5),_0x21d99b(0x2c0)];class _0xaaa02b extends _0x184ab5['Disposable']{constructor(){const _0x229237=_0x21d99b;super(...arguments),_0x45eb1c(this,'_assignedColors',new Map()),_0x45eb1c(this,_0x229237(0x498),0x0);}[_0x21d99b(0x4a9)](_0x50dc65){const _0x5dad5b=_0x21d99b;if(this[_0x5dad5b(0x3d8)][_0x5dad5b(0x208)](_0x50dc65))return this[_0x5dad5b(0x3d8)][_0x5dad5b(0x281)](_0x50dc65);const _0x534922=_0x4d820e[this[_0x5dad5b(0x498)]];return this[_0x5dad5b(0x498)]=(this[_0x5dad5b(0x498)]+0x1)%_0x4d820e[_0x5dad5b(0x1a9)],this[_0x5dad5b(0x3d8)][_0x5dad5b(0x109)](_0x50dc65,_0x534922),_0x534922;}}var _0x2be08c=Object['defineProperty'],_0x12ab9a=Object[_0x21d99b(0x44e)],_0x2351ab=(_0x19384f,_0xc49067,_0x340d31,_0x1b5fe3)=>{for(var _0x4f9f00=_0x1b5fe3>0x1?void 0x0:_0x1b5fe3?_0x12ab9a(_0xc49067,_0x340d31):_0xc49067,_0x153018=_0x19384f['length']-0x1,_0x3cd1fb;_0x153018>=0x0;_0x153018--)(_0x3cd1fb=_0x19384f[_0x153018])&&(_0x4f9f00=(_0x1b5fe3?_0x3cd1fb(_0xc49067,_0x340d31,_0x4f9f00):_0x3cd1fb(_0x4f9f00))||_0x4f9f00);return _0x1b5fe3&&_0x4f9f00&&_0x2be08c(_0xc49067,_0x340d31,_0x4f9f00),_0x4f9f00;},_0x5448a4=(_0x23ce08,_0x2cfcde)=>(_0x3d9de8,_0x509a98)=>_0x2cfcde(_0x3d9de8,_0x509a98,_0x23ce08);const _0x1687c5=0x12c,_0x331b01=0x64;let _0x1080e2=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x1484d9,_0x20066e,_0x2dd616,_0x417102,_0x75078b,_0x538a6e,_0x42d8ab,_0x3c0cb0,_0x4b50b7){const _0x4a7070=_0x21d99b;super(),_0x45eb1c(this,'_online',!0x1),_0x45eb1c(this,_0x4a7070(0xe9),!0x1),_0x45eb1c(this,'_cursorInfo$',new _0x547585['BehaviorSubject'](new Map())),_0x45eb1c(this,'cursorInfo$',this[_0x4a7070(0x48f)]['asObservable']()),_0x45eb1c(this,_0x4a7070(0x199),new _0x547585[(_0x4a7070(0x349))]([])),_0x45eb1c(this,_0x4a7070(0x3c4),this[_0x4a7070(0x199)]['pipe'](_0x547585[_0x4a7070(0xd0)](_0x1687c5))),_0x45eb1c(this,_0x4a7070(0xe0),_0x184ab5[_0x4a7070(0x431)](_0x48f24c=>{const _0x4b0e35=_0x4a7070,_0x40b9cf={'eventID':_0x1137f7[_0x4b0e35(0x299)][_0x4b0e35(0x492)],'data':{'unitID':this[_0x4b0e35(0x211)],'memberID':this[_0x4b0e35(0x392)][_0x4b0e35(0x2ed)](),'selection':_0x316962(_0x48f24c)}};this['_session'][_0x4b0e35(0x29f)](_0x40b9cf,this[_0x4b0e35(0x211)]);},_0x331b01)),(this[_0x4a7070(0x211)]=_0x1484d9,this[_0x4a7070(0x392)]=_0x20066e,this[_0x4a7070(0x2a3)]=_0x2dd616,this[_0x4a7070(0xdc)]=_0x417102,this[_0x4a7070(0x11a)]=_0x75078b,this['_syncEditingCollabCursorService']=_0x538a6e,this['_transformService']=_0x42d8ab,this[_0x4a7070(0x2f6)]=_0x3c0cb0,this[_0x4a7070(0x43f)]=_0x4b50b7);}get['cursorInfo'](){const _0x5ce8b1=_0x21d99b;return this[_0x5ce8b1(0x48f)][_0x5ce8b1(0x1bc)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x117515=_0x21d99b;super[_0x117515(0x3f7)](),this[_0x117515(0x48f)][_0x117515(0x8e)](new Map()),this[_0x117515(0x48f)][_0x117515(0x17c)](),this['_roomMembers$'][_0x117515(0x8e)]([]),this['_roomMembers$'][_0x117515(0x17c)]();}[_0x21d99b(0x161)](){const _0x5a8bd2=_0x21d99b;this['_init']||(this[_0x5a8bd2(0xe9)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x547585[_0x5a8bd2(0x3df)](this['dispose$']))[_0x5a8bd2(0x32b)](_0xb4701=>{const _0xf13313=_0x5a8bd2;_0xb4701===_0x382638[_0xf13313(0x1f1)]?this[_0xf13313(0x334)]():this['_toggleOffline']();}),this[_0x5a8bd2(0x392)][_0x5a8bd2(0x4c5)][_0x5a8bd2(0x2a2)](_0x547585['takeUntil'](this['dispose$']))[_0x5a8bd2(0x32b)](_0x52fc59=>{const _0x5c1d92=_0x5a8bd2,_0x41daf9=_0x52fc59[_0x5c1d92(0x30c)];_0x41daf9===_0x1137f7[_0x5c1d92(0x299)][_0x5c1d92(0x492)]&&this['_onCursorUpdate'](_0x52fc59),_0x41daf9===_0x1137f7[_0x5c1d92(0x299)][_0x5c1d92(0x2e2)]&&this[_0x5c1d92(0x307)](_0x52fc59);}),this[_0x5a8bd2(0x4d7)](this['_commandService'][_0x5a8bd2(0x306)](_0x1b06a2=>{const _0x4a46d0=_0x5a8bd2,_0x60998f=_0x1b06a2[_0x4a46d0(0x31d)];_0x60998f!=null&&this[_0x4a46d0(0x4bf)]&&_0x1b06a2['id']===_0x3fd029[_0x4a46d0(0x371)]['id']&&_0x60998f[_0x4a46d0(0x4d3)]===this['unitID']&&_0x60998f[_0x4a46d0(0x483)]===!0x1&&this[_0x4a46d0(0xe0)](_0x60998f[_0x4a46d0(0x320)]);})),this['_syncEditingCollabCursorService'][_0x5a8bd2(0x1cc)]['pipe'](_0x547585[_0x5a8bd2(0x3df)](this[_0x5a8bd2(0x482)]))[_0x5a8bd2(0x32b)](_0x316ca5=>{const _0x51fe5f=_0x5a8bd2;if((_0x316ca5==null?void 0x0:_0x316ca5[_0x51fe5f(0x211)])!==this[_0x51fe5f(0x211)])return;const _0x232b59={'eventID':_0x1137f7['CollaborationEvent'][_0x51fe5f(0x492)],'data':_0x316ca5};this[_0x51fe5f(0x472)](_0x232b59);}),this[_0x5a8bd2(0x4d7)](this[_0x5a8bd2(0x43f)][_0x5a8bd2(0x306)](_0xd35b33=>{const _0x49e7ff=_0x5a8bd2;if(_0xd35b33[_0x49e7ff(0x31d)]==null)return;const _0x5b00e2=_0xd35b33[_0x49e7ff(0x31d)];if(_0xd35b33['id']!==_0x3fd029[_0x49e7ff(0x29e)]['id']||_0x5b00e2[_0x49e7ff(0x4d3)]!==this[_0x49e7ff(0x211)])return;const _0x554a31={'id':_0x49e7ff(0x28e),'params':_0x5b00e2},_0x29eb0a=this['cursorInfo'];for(const [_0x1858f4,_0x5e6aa3]of _0x29eb0a){const _0x509d8e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x49e7ff(0x211)],'actions':null,'textRanges':_0x5e6aa3['ranges']}},_0x42c996=this[_0x49e7ff(0x25b)][_0x49e7ff(0x32e)](_0x554a31,_0x509d8e,!0x1);if(_0x1137f7[_0x49e7ff(0x2e6)](_0x42c996))throw _0x42c996[_0x49e7ff(0x102)];_0x29eb0a[_0x49e7ff(0x109)](_0x1858f4,{..._0x5e6aa3,'ranges':_0x42c996[_0x49e7ff(0xea)]['params'][_0x49e7ff(0x3be)]});}queueMicrotask(()=>{const _0x178adf=_0x49e7ff;this[_0x178adf(0x48f)][_0x178adf(0x8e)](_0x29eb0a);});})));}[_0x21d99b(0x472)](_0x45ec17){const _0x27145c=_0x21d99b;var _0x3e00b0,_0x48ba13;const {memberID:_0x2ca60f,selection:_0x4a582c}=_0x45ec17[_0x27145c(0x168)],_0x3cee9a=_0x478d6a(_0x4a582c),_0x5e4648=(_0x48ba13=(_0x3e00b0=this[_0x27145c(0x11a)]['getMember'](this[_0x27145c(0x211)],_0x2ca60f))==null?void 0x0:_0x3e00b0[_0x27145c(0x96)])!=null?_0x48ba13:'Unknown\x20user',_0x13b05f={'color':this['_colorAssignService'][_0x27145c(0x4a9)](_0x2ca60f),'name':_0x5e4648,'ranges':_0x3cee9a},_0x400e8c=this[_0x27145c(0x446)];_0x400e8c[_0x27145c(0x109)](_0x2ca60f,_0x13b05f),this[_0x27145c(0x48f)][_0x27145c(0x8e)](_0x400e8c);}[_0x21d99b(0x307)](_0x414601){const _0x5872ea=_0x21d99b,{memberID:_0x4a0d8e}=_0x414601['data'],_0x388a62=this[_0x5872ea(0x446)];_0x388a62[_0x5872ea(0x38d)](_0x4a0d8e),this[_0x5872ea(0x48f)][_0x5872ea(0x8e)](_0x388a62);}['_toggleOnline'](){const _0x8912ca=_0x21d99b;var _0x14e430;if(this[_0x8912ca(0x4bf)]=!0x0,((_0x14e430=this[_0x8912ca(0x2f6)][_0x8912ca(0x205)]())==null?void 0x0:_0x14e430[_0x8912ca(0x18a)]())!==this[_0x8912ca(0x211)])return;const _0x16ae9c=this[_0x8912ca(0x2a3)]['get'](_0x3fd029['DocSelectionManagerService'])[_0x8912ca(0x265)]();Array[_0x8912ca(0x481)](_0x16ae9c)&&_0x16ae9c[_0x8912ca(0x1a9)]>0x0&&this[_0x8912ca(0xe0)](_0x16ae9c);}[_0x21d99b(0x192)](){this['_online']=!0x1;}};_0x1080e2=_0x2351ab([_0x5448a4(0x2,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x5448a4(0x3,_0x184ab5[_0x21d99b(0x441)](_0xaaa02b)),_0x5448a4(0x4,_0x184ab5['Inject'](_0x3212c8)),_0x5448a4(0x5,_0x184ab5[_0x21d99b(0x441)](_0x295154)),_0x5448a4(0x6,_0x1137f7[_0x21d99b(0x182)]),_0x5448a4(0x7,_0x184ab5['IUniverInstanceService']),_0x5448a4(0x8,_0x184ab5[_0x21d99b(0x2bd)])],_0x1080e2);var _0x55f008=Object[_0x21d99b(0x238)],_0x53143e=Object[_0x21d99b(0x44e)],_0x4700d8=(_0x548061,_0x18cf12,_0x21e31c,_0x465040)=>{const _0x21488b=_0x21d99b;for(var _0x194484=_0x465040>0x1?void 0x0:_0x465040?_0x53143e(_0x18cf12,_0x21e31c):_0x18cf12,_0xe51e6f=_0x548061[_0x21488b(0x1a9)]-0x1,_0x4ce29a;_0xe51e6f>=0x0;_0xe51e6f--)(_0x4ce29a=_0x548061[_0xe51e6f])&&(_0x194484=(_0x465040?_0x4ce29a(_0x18cf12,_0x21e31c,_0x194484):_0x4ce29a(_0x194484))||_0x194484);return _0x465040&&_0x194484&&_0x55f008(_0x18cf12,_0x21e31c,_0x194484),_0x194484;},_0x50593f=(_0x4f546e,_0x102b58)=>(_0x347933,_0x17c60c)=>_0x102b58(_0x347933,_0x17c60c,_0x4f546e);const _0x691856=0x12c,_0x1a35b2=0x64,_0x27ce6c=()=>{let _0x5bcd8b=[],_0x23fc0d=!0x1;return _0x261d69=>{_0x5bcd8b['push'](_0x261d69),_0x23fc0d||(_0x23fc0d=!0x0,setTimeout(()=>{const _0x3118f1=_0x5cee;_0x5bcd8b[_0x3118f1(0x1fd)](_0x54507c=>_0x54507c()),_0x5bcd8b=[],_0x23fc0d=!0x1;}));};};let _0x5a801b=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x58ab6e,_0x4bc02e,_0x23ee4b,_0x5f1ea0,_0xf8ad26,_0x29be46,_0x145075,_0x3ffcbf){const _0x4959ca=_0x21d99b;super(),_0x45eb1c(this,_0x4959ca(0x4bf),!0x1),_0x45eb1c(this,_0x4959ca(0xe9),!0x1),_0x45eb1c(this,_0x4959ca(0x48f),new _0x547585['BehaviorSubject'](new Map())),_0x45eb1c(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_0x45eb1c(this,_0x4959ca(0x199),new _0x547585[(_0x4959ca(0x349))]([])),_0x45eb1c(this,_0x4959ca(0x3c4),this['_roomMembers$'][_0x4959ca(0x2a2)](_0x547585[_0x4959ca(0xd0)](_0x691856))),_0x45eb1c(this,_0x4959ca(0xe0),_0x184ab5[_0x4959ca(0x431)]((_0xddc1d8,_0x929092)=>{const _0x17c6c9=_0x4959ca,_0x3b8ae7={'eventID':_0x1137f7[_0x17c6c9(0x299)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x17c6c9(0x211)],'memberID':this[_0x17c6c9(0x392)][_0x17c6c9(0x2ed)](),'selection':_0x3116c6['serializeRangeWithSheet'](_0xddc1d8,_0x929092[_0x17c6c9(0xfb)])}};this[_0x17c6c9(0x392)][_0x17c6c9(0x29f)](_0x3b8ae7,this[_0x17c6c9(0x211)]);},_0x1a35b2)),(this['unitID']=_0x58ab6e,this[_0x4959ca(0x392)]=_0x4bc02e,this['_injector']=_0x23ee4b,this[_0x4959ca(0xdc)]=_0x5f1ea0,this[_0x4959ca(0x11a)]=_0xf8ad26,this['_univerInstanceService']=_0x29be46,this['_commandService']=_0x145075,this['_refRangeService']=_0x3ffcbf);}get[_0x21d99b(0x446)](){const _0x36930c=_0x21d99b;return this[_0x36930c(0x48f)][_0x36930c(0x1bc)]();}get[_0x21d99b(0x3e8)](){const _0xfbac6e=_0x21d99b;return this[_0xfbac6e(0x199)]['getValue']();}[_0x21d99b(0x3f7)](){const _0x56b3aa=_0x21d99b;super[_0x56b3aa(0x3f7)](),this[_0x56b3aa(0x48f)][_0x56b3aa(0x8e)](new Map()),this[_0x56b3aa(0x48f)][_0x56b3aa(0x17c)](),this['_roomMembers$'][_0x56b3aa(0x8e)]([]),this['_roomMembers$'][_0x56b3aa(0x17c)]();}[_0x21d99b(0x161)](){const _0x21b567=_0x21d99b;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x21b567(0x2a2)](_0x547585['takeUntil'](this['dispose$']))[_0x21b567(0x32b)](_0x23d7ba=>{const _0x5490c1=_0x21b567;_0x23d7ba===_0x382638['ONLINE']?this[_0x5490c1(0x334)]():this[_0x5490c1(0x192)]();}),this[_0x21b567(0x392)][_0x21b567(0x4c5)]['pipe'](_0x547585[_0x21b567(0x3df)](this['dispose$']))['subscribe'](_0x59724f=>{const _0x2cc69a=_0x21b567,_0x3aa570=_0x59724f[_0x2cc69a(0x30c)];_0x3aa570===_0x1137f7[_0x2cc69a(0x299)][_0x2cc69a(0x492)]&&this['_onCursorUpdate'](_0x59724f),_0x3aa570===_0x1137f7['CollaborationEvent'][_0x2cc69a(0x2e2)]&&this[_0x2cc69a(0x307)](_0x59724f);}),this[_0x21b567(0x400)](),this[_0x21b567(0x4d7)](this['_commandService']['onCommandExecuted'](_0x46c22b=>{const _0x26356f=_0x21b567;if(this[_0x26356f(0x4bf)]&&_0x46c22b['id']===_0x1b2dce[_0x26356f(0x499)]['id']&&_0x46c22b[_0x26356f(0x31d)]['unitId']===this[_0x26356f(0x211)]){const _0x23079=_0x46c22b[_0x26356f(0x31d)];this[_0x26356f(0xe0)](_0x23079[_0x26356f(0xdb)],_0x23079[_0x26356f(0x45e)][0x0]);}})));}['_onCursorUpdate'](_0x5a9e7b){const _0x21e17a=_0x21d99b;var _0x98454,_0x25fd44;const {memberID:_0x1f7af5,selection:_0xd262ac}=_0x5a9e7b['data'],{sheetName:_0x156385,range:_0x1b945b}=_0x3116c6[_0x21e17a(0x10f)](_0xd262ac),_0x22e47f={'name':(_0x25fd44=(_0x98454=this[_0x21e17a(0x11a)][_0x21e17a(0x153)](this[_0x21e17a(0x211)],_0x1f7af5))==null?void 0x0:_0x98454[_0x21e17a(0x96)])!=null?_0x25fd44:'Unknown\x20user','range':this[_0x21e17a(0x484)](_0x156385,_0x1b945b),'sheetID':_0x156385,'color':this[_0x21e17a(0xdc)][_0x21e17a(0x4a9)](_0x1f7af5),'selection':_0xd262ac},_0x3b6574=this[_0x21e17a(0x446)];_0x3b6574[_0x21e17a(0x109)](_0x1f7af5,_0x22e47f),this[_0x21e17a(0x48f)][_0x21e17a(0x8e)](_0x3b6574);}['_onCursorDelete'](_0x8d3b3d){const _0xe10f6e=_0x21d99b,{memberID:_0x8a3d4d}=_0x8d3b3d[_0xe10f6e(0x168)],_0x2a6ef8=this[_0xe10f6e(0x446)];_0x2a6ef8[_0xe10f6e(0x38d)](_0x8a3d4d),this['_cursorInfo$']['next'](_0x2a6ef8);}[_0x21d99b(0x484)](_0x187525,_0x4f9b02){const _0x58098b=_0x21d99b;var _0x37f92c,_0x9a2ee6;const _0x4a1ff8=(_0x9a2ee6=(_0x37f92c=this[_0x58098b(0x2f6)][_0x58098b(0x3c7)](this['unitID']))==null?void 0x0:_0x37f92c['getSheetBySheetId'](_0x187525))==null?void 0x0:_0x9a2ee6[_0x58098b(0x169)]();return(_0x4a1ff8==null?void 0x0:_0x4a1ff8[_0x58098b(0x1e4)](_0x57b633=>_0x184ab5['Rectangle'][_0x58098b(0x460)](_0x57b633,_0x4f9b02)))||_0x4f9b02;}[_0x21d99b(0x400)](){const _0x22810f=_0x21d99b,_0x2b815e=new _0x184ab5[(_0x22810f(0xd7))](),_0x40b490=_0x27ce6c(),_0x3df134=()=>{const _0xb49c3c=_0x22810f;_0x2b815e[_0xb49c3c(0x3f7)]();const _0x21119c=(_0x20009d,_0x23410d,_0x3a385f,_0x2da628)=>{const _0x2b84be=_0xb49c3c;let _0x4d515b=[];switch(_0x20009d['id']){case _0x1b2dce[_0x2b84be(0xf7)][_0x2b84be(0x34d)]:{_0x4d515b=_0x1b2dce[_0x2b84be(0x22a)](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)][_0x2b84be(0x212)]:{_0x4d515b=_0x1b2dce[_0x2b84be(0x13b)](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)]['InsertColCommandId']:{_0x4d515b=_0x1b2dce[_0x2b84be(0x1a2)](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)]['InsertRangeMoveDownCommandId']:{_0x4d515b=_0x1b2dce['handleInsertRangeMoveDown'](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)][_0x2b84be(0x141)]:{_0x4d515b=_0x1b2dce['handleInsertRangeMoveRight'](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)][_0x2b84be(0x487)]:{_0x4d515b=_0x1b2dce[_0x2b84be(0x253)](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)][_0x2b84be(0x1aa)]:{_0x4d515b=_0x1b2dce[_0x2b84be(0xe8)](_0x20009d,_0x2da628);break;}case _0x1b2dce[_0x2b84be(0xf7)][_0x2b84be(0x388)]:{_0x4d515b=_0x1b2dce[_0x2b84be(0xcb)](_0x20009d,_0x2da628);break;}case _0x1b2dce['EffectRefRangId'][_0x2b84be(0x2cd)]:{_0x4d515b=_0x1b2dce[_0x2b84be(0x1db)](_0x20009d,_0x2da628);break;}}const _0x40230d=_0x1b2dce[_0x2b84be(0x4ab)](_0x4d515b,_0x2da628),_0xde4baa=this['cursorInfo'][_0x2b84be(0x281)](_0x23410d);if(_0xde4baa&&_0x40230d){const _0x49f833={..._0xde4baa,'range':_0x40230d};this['cursorInfo']['set'](_0x23410d,_0x49f833),_0x40b490(()=>{const _0x158ee1=_0x2b84be,_0x45bae8=this[_0x158ee1(0x1d6)][_0x158ee1(0x20f)](_0x40230d,_0x379a44=>(_0x45bae8[_0x158ee1(0x3f7)](),_0x21119c(_0x379a44,_0x23410d,_0x3a385f,_0x40230d)));_0x2b815e[_0x158ee1(0x114)](_0x45bae8);});}return{'redos':[],'undos':[]};};this[_0xb49c3c(0x446)][_0xb49c3c(0x1fd)]((_0x7034d,_0x5be21b)=>{const _0x3cf500=_0xb49c3c,{range:_0x208388,sheetID:_0x217162}=_0x7034d,_0x391e9c=this['_refRangeService'][_0x3cf500(0x20f)](_0x208388,_0x48527a=>(_0x391e9c[_0x3cf500(0x3f7)](),_0x21119c(_0x48527a,_0x5be21b,_0x217162,_0x208388)));_0x2b815e['add'](_0x391e9c);});};this['disposeWithMe'](_0x184ab5[_0x22810f(0x15c)](this['_cursorInfo$']['subscribe'](()=>{_0x3df134();})));}[_0x21d99b(0x334)](){const _0x1718c9=_0x21d99b;var _0x5bf126,_0x49081d;if(this[_0x1718c9(0x4bf)]=!0x0,((_0x5bf126=this[_0x1718c9(0x2f6)]['getFocusedUnit']())==null?void 0x0:_0x5bf126[_0x1718c9(0x18a)]())!==this[_0x1718c9(0x211)])return;const _0x45e1fc=(_0x49081d=this[_0x1718c9(0x2a3)][_0x1718c9(0x281)](_0x1b2dce[_0x1718c9(0x4b1)])[_0x1718c9(0x382)]())==null?void 0x0:_0x49081d[0x0],_0x4d1287=this['_univerInstanceService']['getCurrentUnitForType'](_0x184ab5[_0x1718c9(0x42f)][_0x1718c9(0xab)])[_0x1718c9(0x2c1)]();_0x45e1fc&&_0x4d1287&&this[_0x1718c9(0xe0)](_0x4d1287[_0x1718c9(0x88)](),_0x45e1fc);}[_0x21d99b(0x192)](){const _0x12e2c9=_0x21d99b;this[_0x12e2c9(0x4bf)]=!0x1;}};_0x5a801b=_0x4700d8([_0x50593f(0x2,_0x184ab5['Inject'](_0x184ab5['Injector'])),_0x50593f(0x3,_0x184ab5['Inject'](_0xaaa02b)),_0x50593f(0x4,_0x184ab5[_0x21d99b(0x441)](_0x3212c8)),_0x50593f(0x5,_0x184ab5[_0x21d99b(0x2a6)]),_0x50593f(0x6,_0x184ab5['ICommandService']),_0x50593f(0x7,_0x184ab5['Inject'](_0x1b2dce[_0x21d99b(0x4ad)]))],_0x5a801b);var _0x2857e5=Object[_0x21d99b(0x238)],_0x1261d7=Object[_0x21d99b(0x44e)],_0x5a0e74=(_0xb0baec,_0x1bff93,_0x1e5e8e,_0x9125f6)=>{for(var _0x2e03bc=_0x9125f6>0x1?void 0x0:_0x9125f6?_0x1261d7(_0x1bff93,_0x1e5e8e):_0x1bff93,_0x333308=_0xb0baec['length']-0x1,_0x1d67b2;_0x333308>=0x0;_0x333308--)(_0x1d67b2=_0xb0baec[_0x333308])&&(_0x2e03bc=(_0x9125f6?_0x1d67b2(_0x1bff93,_0x1e5e8e,_0x2e03bc):_0x1d67b2(_0x2e03bc))||_0x2e03bc);return _0x9125f6&&_0x2e03bc&&_0x2857e5(_0x1bff93,_0x1e5e8e,_0x2e03bc),_0x2e03bc;},_0x15f969=(_0x2e75b7,_0x26c7b8)=>(_0x30b2b7,_0x2a77ad)=>_0x26c7b8(_0x30b2b7,_0x2a77ad,_0x2e75b7);let _0x1f8139=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x3fc464,_0x38e604,_0x4c4fdd){const _0x4fbeb6=_0x21d99b;super(),_0x45eb1c(this,_0x4fbeb6(0x1ad),new Map()),_0x45eb1c(this,'_entityInit$',new _0x547585['Subject']()),(this[_0x4fbeb6(0x2f6)]=_0x3fc464,this[_0x4fbeb6(0x2a3)]=_0x38e604,this['_collabSessionService']=_0x4c4fdd,this[_0x4fbeb6(0xe9)]());}[_0x21d99b(0x3f7)](){const _0x4682e1=_0x21d99b;super[_0x4682e1(0x3f7)](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x3e66da=>_0x3e66da['dispose']());}[_0x21d99b(0x372)](_0x1951d2){const _0x2dc232=_0x21d99b;return this[_0x2dc232(0x1ad)][_0x2dc232(0x208)](_0x1951d2)?this['_entities'][_0x2dc232(0x281)](_0x1951d2)[_0x2dc232(0x375)]:this[_0x2dc232(0x249)][_0x2dc232(0x2a2)](_0x547585['filter'](_0x17138d=>_0x17138d[_0x2dc232(0x211)]===_0x1951d2),_0x547585[_0x2dc232(0x338)](_0x3aa989=>_0x3aa989['cursorInfo$']));}['_init'](){const _0x1bdd9c=_0x21d99b;this[_0x1bdd9c(0x2f6)]['getTypeOfUnitAdded$'](_0x184ab5[_0x1bdd9c(0x42f)][_0x1bdd9c(0xab)])[_0x1bdd9c(0x2a2)](_0x547585[_0x1bdd9c(0x3df)](this[_0x1bdd9c(0x482)]))[_0x1bdd9c(0x32b)](async _0x551312=>{const _0x13eb71=_0x1bdd9c,_0x182da1=_0x551312[_0x13eb71(0x18a)](),_0x3a2d4f=await this[_0x13eb71(0x2d1)](_0x182da1);this[_0x13eb71(0x249)]['next'](_0x3a2d4f),this[_0x13eb71(0x1ad)]['set'](_0x182da1,_0x3a2d4f);}),this[_0x1bdd9c(0x2f6)][_0x1bdd9c(0x108)](_0x184ab5[_0x1bdd9c(0x42f)][_0x1bdd9c(0x49a)])[_0x1bdd9c(0x2a2)](_0x547585[_0x1bdd9c(0x3df)](this[_0x1bdd9c(0x482)]))[_0x1bdd9c(0x2a2)](_0x547585[_0x1bdd9c(0x3a4)](_0x268a54=>!_0x268a54[_0x1bdd9c(0x18a)]()['startsWith']('__')))[_0x1bdd9c(0x32b)](async _0xd7b74f=>{const _0x599aa0=_0x1bdd9c,_0x5a5720=_0xd7b74f[_0x599aa0(0x18a)](),_0x18d782=await this[_0x599aa0(0x41f)](_0x5a5720);this[_0x599aa0(0x249)][_0x599aa0(0x8e)](_0x18d782),this[_0x599aa0(0x1ad)][_0x599aa0(0x109)](_0x5a5720,_0x18d782);}),_0x547585['merge'](this['_univerInstanceService'][_0x1bdd9c(0x4ce)](_0x184ab5[_0x1bdd9c(0x42f)][_0x1bdd9c(0x49a)]),this[_0x1bdd9c(0x2f6)][_0x1bdd9c(0x4ce)](_0x184ab5[_0x1bdd9c(0x42f)][_0x1bdd9c(0xab)]))[_0x1bdd9c(0x2a2)](_0x547585[_0x1bdd9c(0x3df)](this[_0x1bdd9c(0x482)]))[_0x1bdd9c(0x32b)](_0x198916=>{const _0x112102=_0x1bdd9c,_0x23bd4f=_0x198916[_0x112102(0x18a)](),_0x50785c=this[_0x112102(0x1ad)][_0x112102(0x281)](_0x23bd4f);_0x50785c&&(_0x50785c[_0x112102(0x3f7)](),this[_0x112102(0x1ad)][_0x112102(0x38d)](_0x23bd4f));});}async[_0x21d99b(0x2d1)](_0x13b326){const _0x11e299=_0x21d99b,_0x4b009d=await this[_0x11e299(0xe3)][_0x11e299(0x118)](_0x13b326),_0x591b7=this[_0x11e299(0x2a3)][_0x11e299(0x19e)](_0x5a801b,_0x13b326,_0x4b009d);return _0x591b7['init'](),_0x591b7;}async[_0x21d99b(0x41f)](_0x1523f3){const _0x46d545=_0x21d99b,_0x3f7662=await this[_0x46d545(0xe3)][_0x46d545(0x118)](_0x1523f3),_0xc8a5e3=this[_0x46d545(0x2a3)][_0x46d545(0x19e)](_0x1080e2,_0x1523f3,_0x3f7662);return _0xc8a5e3['init'](),_0xc8a5e3;}};_0x1f8139=_0x5a0e74([_0x15f969(0x0,_0x184ab5[_0x21d99b(0x2a6)]),_0x15f969(0x1,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x15f969(0x2,_0x184ab5[_0x21d99b(0x441)](_0x5b1653['CollaborationSessionService']))],_0x1f8139);const _0x515e03=0x14,_0x5a720d=0xc8,_0x295fc3=0x4,_0x4de99c=0x5;function _0x1c8f77(_0x3e6ff2,_0x491405){const _0x533c6b=_0x21d99b;let {radius:_0xaf0b9d,width:_0x1fb697,height:_0x744f7a}=_0x491405;_0xaf0b9d=_0xaf0b9d!=null?_0xaf0b9d:0x0,_0x1fb697=_0x1fb697!=null?_0x1fb697:0x1e,_0x744f7a=_0x744f7a!=null?_0x744f7a:0x1e;let _0x44ff15=0x0,_0x162641=0x0,_0x26a9b0=0x0;_0x44ff15=_0x162641=_0x26a9b0=Math[_0x533c6b(0x113)](_0xaf0b9d,_0x1fb697/0x2,_0x744f7a/0x2),_0x3e6ff2[_0x533c6b(0x2e1)](),_0x3e6ff2[_0x533c6b(0x2f3)](_0x44ff15,0x0),_0x3e6ff2[_0x533c6b(0x313)](_0x1fb697-_0x162641,0x0),_0x3e6ff2[_0x533c6b(0x1ca)](_0x1fb697-_0x162641,_0x162641,_0x162641,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e6ff2[_0x533c6b(0x313)](_0x1fb697,_0x744f7a-_0x26a9b0),_0x3e6ff2[_0x533c6b(0x1ca)](_0x1fb697-_0x26a9b0,_0x744f7a-_0x26a9b0,_0x26a9b0,0x0,Math['PI']/0x2,!0x1),_0x3e6ff2[_0x533c6b(0x313)](0x0,_0x744f7a),_0x3e6ff2['lineTo'](0x0,_0x44ff15),_0x3e6ff2[_0x533c6b(0x1ca)](_0x44ff15,_0x44ff15,_0x44ff15,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e6ff2[_0x533c6b(0x459)](),_0x491405[_0x533c6b(0x2b0)]&&(_0x3e6ff2[_0x533c6b(0x112)](),_0x3e6ff2[_0x533c6b(0x308)]=_0x491405[_0x533c6b(0x2b0)],_0x491405[_0x533c6b(0x3db)]==='evenodd'?_0x3e6ff2[_0x533c6b(0x2b0)]('evenodd'):_0x3e6ff2[_0x533c6b(0x2b0)](),_0x3e6ff2['restore']());}class _0x46c566 extends _0x5cb457['Shape']{constructor(_0x445b84,_0x5e7ce0){const _0xff12c6=_0x21d99b;super(_0x445b84,_0x5e7ce0),_0x45eb1c(this,'color'),_0x45eb1c(this,_0xff12c6(0x105)),(this[_0xff12c6(0x469)]=_0x5e7ce0==null?void 0x0:_0x5e7ce0['color'],this[_0xff12c6(0x105)]=_0x5e7ce0==null?void 0x0:_0x5e7ce0[_0xff12c6(0x105)]);}static[_0x21d99b(0xc3)](_0x3ec8a4,_0xdb9f0a){const _0x4791ba=_0x21d99b,{text:_0x463fb0,color:_0x3b9198}=_0xdb9f0a;_0x3ec8a4[_0x4791ba(0x112)](),_0x3ec8a4[_0x4791ba(0x27e)]=_0x4791ba(0x19d);const _0x273601=_0x3ec8a4[_0x4791ba(0x3c8)](_0x463fb0)[_0x4791ba(0x10c)],_0x1e7e9e=Math[_0x4791ba(0x113)](_0x273601+0x2*_0x295fc3,_0x5a720d);_0x1c8f77(_0x3ec8a4,{'height':_0x515e03,'radius':0x4,'width':_0x1e7e9e,'fill':_0x3b9198,'evented':!0x1}),_0x3ec8a4[_0x4791ba(0x308)]=_0x4791ba(0x26e);const _0x2f1342=_0x295fc3,_0x1b0dbc=_0x515e03-_0x4de99c,_0xeb864e=_0x5a720d-0x2*_0x295fc3;if(_0x273601>_0xeb864e){let _0x84aa98='',_0x580ec2=0x0;for(const _0x36cc7a of _0x463fb0){const _0x571af4=_0x3ec8a4['measureText'](_0x36cc7a)[_0x4791ba(0x10c)];if(_0x580ec2+_0x571af4<=_0xeb864e-_0x3ec8a4[_0x4791ba(0x3c8)](_0x4791ba(0x22e))[_0x4791ba(0x10c)])_0x84aa98+=_0x36cc7a,_0x580ec2+=_0x571af4;else{_0x84aa98+=_0x4791ba(0x22e);break;}}_0x3ec8a4[_0x4791ba(0x355)](_0x84aa98,_0x2f1342,_0x1b0dbc);}else _0x3ec8a4[_0x4791ba(0x355)](_0x463fb0,_0x2f1342,_0x1b0dbc);_0x3ec8a4[_0x4791ba(0x4c8)]();}['_draw'](_0x5522ab){const _0x3345ee=_0x21d99b;_0x46c566[_0x3345ee(0xc3)](_0x5522ab,this);}}const _0x24a10b=_0x21d99b(0x1cf),_0x2711fd='collab-text-range-',_0x4ec506=_0x21d99b(0x380),_0x5de053=0x6,_0x353e89=1.5,_0x342b23=0x4,_0x4bb63b=1.5,_0x14a0c7=_0x21d99b(0x32f);class _0x1aa83c{constructor(_0x10eb0d,_0x1737ba,_0x5018a1,_0x2f2b87){const _0x5a57cd=_0x21d99b;_0x45eb1c(this,_0x5a57cd(0x26b),[]),_0x45eb1c(this,_0x5a57cd(0xf1),null),_0x45eb1c(this,_0x5a57cd(0x322),null),_0x45eb1c(this,'_anchorDot',null),_0x45eb1c(this,_0x5a57cd(0x170),null),_0x45eb1c(this,_0x5a57cd(0x2c7),null),(this[_0x5a57cd(0x339)]=_0x10eb0d,this[_0x5a57cd(0x478)]=_0x1737ba,this[_0x5a57cd(0x298)]=_0x5018a1,this[_0x5a57cd(0x2c5)]=_0x2f2b87,this[_0x5a57cd(0x89)]());}set[_0x21d99b(0x46a)](_0xf2dcc1){const _0x49a525=_0x21d99b;_0xf2dcc1?(this['_anchorDot']&&this[_0x49a525(0x116)][_0x49a525(0x1a4)](),this[_0x49a525(0x322)]&&this[_0x49a525(0x322)][_0x49a525(0xc0)]()):(this[_0x49a525(0x116)]&&this[_0x49a525(0x116)][_0x49a525(0xc0)](),this[_0x49a525(0x322)]&&this[_0x49a525(0x322)][_0x49a525(0x1a4)]());}['dispose'](){const _0x5aa278=_0x21d99b;for(const _0x2f6fc5 of this['_shapes'])_0x2f6fc5[_0x5aa278(0x3f7)]();this[_0x5aa278(0x322)]&&this[_0x5aa278(0x322)]['dispose'](),this[_0x5aa278(0x116)]&&this[_0x5aa278(0x116)][_0x5aa278(0x3f7)](),this[_0x5aa278(0xf1)]&&this['_anchor'][_0x5aa278(0x3f7)](),this[_0x5aa278(0x2c7)]&&this[_0x5aa278(0x2c7)]();}['_render'](){const _0x5e2a7a=_0x21d99b;var _0x32fcc0;const {_docSkeleton:_0x22c781,_document:_0x2cb7da}=this,{color:_0x253dda,name:_0x505536,ranges:_0x46630d}=this['_cursor'],_0x5cc365=_0x2cb7da[_0x5e2a7a(0x247)](),{docsLeft:_0x4d23fe,docsTop:_0x1e7265}=_0x5cc365,_0x1e91cf=new _0x3d65be[(_0x5e2a7a(0x1e7))](_0x5cc365,_0x22c781);for(const {startOffset:_0x6b7d37,endOffset:_0x59c4b9,collapsed:_0x2542c1,isActive:_0x14a7a7}of _0x46630d){const _0x2bd2df=_0x22c781[_0x5e2a7a(0x3ee)](_0x6b7d37),_0xe75402=_0x22c781['findNodePositionByCharIndex'](_0x59c4b9);if(_0x14a7a7){const {contentBoxPointGroup:_0x54b5d5}=_0x1e91cf[_0x5e2a7a(0x207)](_0xe75402,_0xe75402);if(_0x54b5d5[_0x5e2a7a(0x1a9)]===0x0)continue;this['_drawAnchor'](_0x253dda,_0x54b5d5,_0x4d23fe,_0x1e7265,_0x505536),this['_eventUnsubscribe']=this[_0x5e2a7a(0x3f3)]();}if(!_0x2542c1&&_0x2bd2df&&_0xe75402){if(_0x3d65be[_0x5e2a7a(0x39a)](_0x2bd2df,_0xe75402)){const _0x4acbec=new _0x3d65be[(_0x5e2a7a(0xe2))](_0x5cc365,_0x22c781),{pointGroup:_0x227e87}=(_0x32fcc0=_0x4acbec[_0x5e2a7a(0x207)](_0x2bd2df,_0xe75402))!=null?_0x32fcc0:{};if(_0x227e87==null||_0x227e87[_0x5e2a7a(0x1a9)]===0x0)continue;this[_0x5e2a7a(0x401)](_0x253dda,_0x227e87,_0x4d23fe,_0x1e7265);}else{const {contentBoxPointGroup:_0x3ca036}=_0x1e91cf[_0x5e2a7a(0x207)](_0x2bd2df,_0xe75402);if(_0x3ca036['length']===0x0)continue;this[_0x5e2a7a(0x166)](_0x253dda,_0x3ca036,_0x4d23fe,_0x1e7265);}}}}[_0x21d99b(0x316)](_0x315fb4,_0x361a2c,_0x23fc4b,_0x1d0007,_0x102132){const _0x3fa02d=_0x21d99b,_0x32ec93=this[_0x3fa02d(0x93)](_0x361a2c),{left:_0xce1b53,top:_0xa9aaae,height:_0x548e36}=_0x32ec93,_0x2acf52=this[_0x3fa02d(0x1dd)](),_0x37a5f0=_0x4bb63b/_0x2acf52,_0x20997b=new _0x5cb457[(_0x3fa02d(0x302))](_0x24a10b+_0x184ab5[_0x3fa02d(0x296)][_0x3fa02d(0x15f)](_0x5de053),{'left':_0xce1b53+_0x23fc4b-_0x37a5f0,'top':_0xa9aaae+_0x1d0007,'height':_0x548e36,'width':_0x353e89,'fill':_0x315fb4||_0x5cb457['getColor'](_0x184ab5[_0x3fa02d(0x41a)][_0x3fa02d(0xa1)],0x0),'strokeWidth':_0x37a5f0,'stroke':_0x14a0c7,'evented':!0x0});this['_anchor']=_0x20997b,this[_0x3fa02d(0x478)][_0x3fa02d(0x31b)](_0x20997b,_0x3d65be[_0x3fa02d(0x235)]);const _0x6f9ec3=new _0x5cb457[(_0x3fa02d(0x302))](_0x24a10b+_0x184ab5[_0x3fa02d(0x296)][_0x3fa02d(0x15f)](_0x5de053),{'left':_0xce1b53+_0x23fc4b-_0x37a5f0,'top':_0xa9aaae+_0x1d0007-_0x342b23/0x2,'height':_0x342b23,'width':_0x342b23,'fill':_0x315fb4||_0x5cb457[_0x3fa02d(0x216)](_0x184ab5[_0x3fa02d(0x41a)][_0x3fa02d(0xa1)],0x0),'strokeWidth':0x0,'stroke':_0x315fb4||_0x5cb457[_0x3fa02d(0x216)](_0x184ab5[_0x3fa02d(0x41a)][_0x3fa02d(0xa1)],0x0),'evented':!0x1});this[_0x3fa02d(0x116)]=_0x6f9ec3,this['_scene'][_0x3fa02d(0x31b)](_0x6f9ec3,_0x3d65be[_0x3fa02d(0x235)]);const _0xd75028=new _0x46c566(_0x24a10b+_0x184ab5['Tools'][_0x3fa02d(0x15f)](_0x5de053),{'left':_0xce1b53+_0x23fc4b-_0x37a5f0,'top':_0xa9aaae+_0x1d0007-_0x515e03,'text':_0x102132,'color':_0x315fb4});this[_0x3fa02d(0x322)]=_0xd75028,this[_0x3fa02d(0x478)]['addObject'](_0xd75028,_0x3d65be[_0x3fa02d(0x235)]),this[_0x3fa02d(0x46a)]=!0x1;}['_handleHover'](){const _0x3b8952=_0x21d99b,_0x268e54=this[_0x3b8952(0xf1)][_0x3b8952(0x2ee)]['subscribeEvent'](()=>{const _0x541eac=_0x3b8952;this[_0x541eac(0x46a)]=!0x0;}),_0x5141f0=this[_0x3b8952(0xf1)][_0x3b8952(0x456)]['subscribeEvent'](()=>{const _0x46aad5=_0x3b8952;this[_0x46aad5(0x170)]&&clearTimeout(this[_0x46aad5(0x170)]),this['_hideTimer']=setTimeout(()=>{const _0x37a9e4=_0x46aad5;this[_0x37a9e4(0x46a)]=!0x1;},0x7d0);});return()=>{const _0x148deb=_0x3b8952;_0x268e54['unsubscribe'](),_0x5141f0[_0x148deb(0x223)]();};}[_0x21d99b(0x166)](_0x2058fe,_0x4cd704,_0xec1894,_0xc60610){const _0x15aa3f=_0x21d99b,_0x1a5d79=new _0x184ab5[(_0x15aa3f(0x3c3))](_0x2058fe)[_0x15aa3f(0x197)](0.2)[_0x15aa3f(0x27c)](),_0x125e40=new _0x5cb457[(_0x15aa3f(0x2f2))](_0x2711fd+_0x184ab5[_0x15aa3f(0x296)]['generateRandomId'](_0x5de053),{'pointsGroup':_0x4cd704,'fill':_0x1a5d79||_0x5cb457[_0x15aa3f(0x216)](_0x184ab5[_0x15aa3f(0x41a)]['black'],0.2),'left':_0xec1894,'top':_0xc60610,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x125e40),this[_0x15aa3f(0x478)][_0x15aa3f(0x31b)](_0x125e40,_0x3d65be['TEXT_RANGE_LAYER_INDEX']);}[_0x21d99b(0x401)](_0x10e02a,_0x81e0c2,_0x44ff4b,_0x44b4f0){const _0x1cbf57=_0x21d99b,_0x282e19=new _0x184ab5['ColorKit'](_0x10e02a)[_0x1cbf57(0x197)](0.2)['toRgbString'](),_0x4a5e78=new _0x5cb457['RegularPolygon'](_0x4ec506+_0x184ab5[_0x1cbf57(0x296)][_0x1cbf57(0x15f)](_0x5de053),{'pointsGroup':_0x81e0c2,'fill':_0x282e19||_0x5cb457[_0x1cbf57(0x216)](_0x184ab5['COLORS'][_0x1cbf57(0xa1)],0.2),'left':_0x44ff4b,'top':_0x44b4f0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cbf57(0x26b)]['push'](_0x4a5e78),this[_0x1cbf57(0x478)][_0x1cbf57(0x31b)](_0x4a5e78,_0x3d65be[_0x1cbf57(0x235)]);}[_0x21d99b(0x93)](_0x5b421e){const _0xbfe11b=_0x5b421e[0x0],_0x503108=_0xbfe11b[0x0],_0x4950fa=_0xbfe11b[0x2],{x:_0x2c264f,y:_0x50e190}=_0x503108,{x:_0x360925,y:_0x38d0df}=_0x4950fa;return{'left':_0x2c264f,'top':_0x50e190,'width':_0x360925-_0x2c264f,'height':_0x38d0df-_0x50e190};}[_0x21d99b(0x1dd)](){const _0x2eeeff=_0x21d99b,{scaleX:_0x1212cd,scaleY:_0xd18080}=this['_scene']['getAncestorScale']();return Math[_0x2eeeff(0x1b7)](_0x1212cd,_0xd18080);}}var _0x240880=Object[_0x21d99b(0x238)],_0x21e346=Object[_0x21d99b(0x44e)],_0x302a6c=(_0x46311e,_0x18f50d,_0x2da11d,_0x519074)=>{const _0x5f24b8=_0x21d99b;for(var _0x3c672f=_0x519074>0x1?void 0x0:_0x519074?_0x21e346(_0x18f50d,_0x2da11d):_0x18f50d,_0x33b0e6=_0x46311e[_0x5f24b8(0x1a9)]-0x1,_0xf59205;_0x33b0e6>=0x0;_0x33b0e6--)(_0xf59205=_0x46311e[_0x33b0e6])&&(_0x3c672f=(_0x519074?_0xf59205(_0x18f50d,_0x2da11d,_0x3c672f):_0xf59205(_0x3c672f))||_0x3c672f);return _0x519074&&_0x3c672f&&_0x240880(_0x18f50d,_0x2da11d,_0x3c672f),_0x3c672f;},_0x4328f5=(_0x34def8,_0x2e770f)=>(_0x5c1dac,_0xa011d1)=>_0x2e770f(_0x5c1dac,_0xa011d1,_0x34def8);let _0x33f43b=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x341b32,_0x583bb1,_0x47e1c8,_0x342e8c,_0x1cbd28){const _0x1b6dea=_0x21d99b;super(),_0x45eb1c(this,'_cursorShapes',[]),_0x45eb1c(this,_0x1b6dea(0x2ab),[]),(this[_0x1b6dea(0xc1)]=_0x341b32,this[_0x1b6dea(0x4d2)]=_0x583bb1,this[_0x1b6dea(0x3aa)]=_0x47e1c8,this[_0x1b6dea(0x43f)]=_0x342e8c,this['_themeService']=_0x1cbd28,this['_init']());}[_0x21d99b(0xe9)](){const _0x2acfca=_0x21d99b,_0x50ac64=this[_0x2acfca(0xc1)][_0x2acfca(0x4d3)],_0x31d01d=this[_0x2acfca(0x4d2)];this[_0x2acfca(0x4d7)](_0x547585[_0x2acfca(0x1b9)]([this[_0x2acfca(0x3aa)]['getCollabCursors$'](_0x50ac64),this[_0x2acfca(0x4a8)][_0x2acfca(0x454)]])[_0x2acfca(0x2a2)](_0x597698[_0x2acfca(0x1fc)](([_0x57ee33,_0x3d6339])=>({'skeleton':_0x31d01d[_0x2acfca(0x47c)](),'cursors':[..._0x57ee33[_0x2acfca(0x40b)]()][_0x2acfca(0x1e1)](_0x27e36e=>({..._0x27e36e,'color':_0x3d6339[_0x27e36e[_0x2acfca(0x469)]]}))})))[_0x2acfca(0x32b)](_0x48b8fd=>{const _0x550e4a=_0x2acfca;if(this[_0x550e4a(0xd5)](),_0x48b8fd){const {skeleton:_0x5ee64c,cursors:_0x1b51a7}=_0x48b8fd;this[_0x550e4a(0x326)](_0x5ee64c,_0x1b51a7);}})),this[_0x2acfca(0x3cd)](),this[_0x2acfca(0x2ff)]();}['_updateCollabCursors'](_0x39bddc,_0x13a541){const _0x53f09b=_0x21d99b,{scene:_0x2660f0,mainComponent:_0x48ef55}=this[_0x53f09b(0xc1)],_0x3ff789=_0x13a541['map'](_0x3c67be=>new _0x1aa83c(_0x3c67be,_0x2660f0,_0x39bddc,_0x48ef55));this[_0x53f09b(0x17d)]=_0x3ff789,this[_0x53f09b(0x2ab)]=_0x13a541;}[_0x21d99b(0x18b)](){const _0x2c236b=_0x21d99b;this[_0x2c236b(0xd5)]();const {scene:_0x52f9b6,mainComponent:_0x43548}=this['_context'],_0x116a4c=this['_docSkeletonManagerService']['getSkeleton'](),_0x9ec908=this[_0x2c236b(0x2ab)]['map'](_0x4d2526=>new _0x1aa83c(_0x4d2526,_0x52f9b6,_0x116a4c,_0x43548));this[_0x2c236b(0x17d)]=_0x9ec908;}['_removeCollabCursors'](){const _0x282bdb=_0x21d99b;this['_cursorShapes'][_0x282bdb(0x1fd)](_0x441912=>_0x441912[_0x282bdb(0x3f7)]()),this['_cursorShapes']=[];}[_0x21d99b(0x2ff)](){const _0x123c55=_0x21d99b,_0x21ce2c=[_0x3d65be[_0x123c55(0x330)]['id']];this[_0x123c55(0x4d7)](this[_0x123c55(0x43f)]['onCommandExecuted'](_0x340e03=>{const _0xc21076=_0x123c55;_0x21ce2c[_0xc21076(0x3dd)](_0x340e03['id'])&&_0x340e03[_0xc21076(0x31d)][_0xc21076(0x4d3)]===this[_0xc21076(0xc1)][_0xc21076(0x4d3)]&&this[_0xc21076(0x18b)]();}));}[_0x21d99b(0x3cd)](){const _0x4d2b4c=_0x21d99b;this['disposeWithMe'](_0x184ab5[_0x4d2b4c(0x1b2)](this[_0x4d2b4c(0xc1)]['engine'][_0x4d2b4c(0xfe)])['pipe'](_0x597698[_0x4d2b4c(0x3a4)](_0x3c124f=>_0x3c124f['type']===_0x5cb457[_0x4d2b4c(0x232)]['resize']),_0x597698['throttleTime'](0x10))[_0x4d2b4c(0x32b)](()=>{const _0x4bb856=_0x4d2b4c;this[_0x4bb856(0x18b)]();}));}};_0x33f43b=_0x302a6c([_0x4328f5(0x1,_0x184ab5[_0x21d99b(0x441)](_0x3fd029[_0x21d99b(0x451)])),_0x4328f5(0x2,_0x184ab5[_0x21d99b(0x441)](_0x1f8139)),_0x4328f5(0x3,_0x184ab5[_0x21d99b(0x2bd)]),_0x4328f5(0x4,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['ThemeService']))],_0x33f43b);const _0x435e9a=0x1,_0x30009f=1.5;class _0x66c992 extends _0x5cb457[_0x21d99b(0xc6)]{constructor(_0x35a8b1,_0x29b5c8){const _0x57a0e5=_0x21d99b;super(_0x35a8b1,_0x29b5c8),_0x45eb1c(this,_0x57a0e5(0x294)),_0x45eb1c(this,_0x57a0e5(0x173),!0x1),_0x45eb1c(this,_0x57a0e5(0x110)),_0x45eb1c(this,_0x57a0e5(0x1d2),''),_0x45eb1c(this,_0x57a0e5(0x204),_0x57a0e5(0x32c)),_0x45eb1c(this,_0x57a0e5(0xbc)),(_0x29b5c8&&this['setShapeProps'](_0x29b5c8),this[_0x57a0e5(0x2ee)][_0x57a0e5(0x15b)](()=>this[_0x57a0e5(0x4b2)]({'hovered':!0x0})),this[_0x57a0e5(0x456)]['subscribeEvent'](()=>this[_0x57a0e5(0x4b2)]({'hovered':!0x1})));}[_0x21d99b(0x4b2)](_0x5ef4a2){const _0x146e76=_0x21d99b;var _0x4063c0,_0x3cf3f0,_0x1b2884,_0x50f010,_0x983369,_0x53447e;this[_0x146e76(0x294)]=(_0x4063c0=_0x5ef4a2[_0x146e76(0x469)])!=null?_0x4063c0:this['_color'],this['_hovered']=(_0x3cf3f0=_0x5ef4a2[_0x146e76(0x1c5)])!=null?_0x3cf3f0:this[_0x146e76(0x173)],this[_0x146e76(0x110)]=(_0x1b2884=_0x5ef4a2[_0x146e76(0xfb)])!=null?_0x1b2884:this[_0x146e76(0x110)],this[_0x146e76(0x1d2)]=(_0x50f010=_0x5ef4a2[_0x146e76(0x96)])!=null?_0x50f010:this[_0x146e76(0x1d2)],this['_labelPosition']=(_0x983369=_0x5ef4a2[_0x146e76(0x449)])!=null?_0x983369:this[_0x146e76(0x204)],this['_backgroundColor']=(_0x53447e=_0x5ef4a2[_0x146e76(0x225)])!=null?_0x53447e:this[_0x146e76(0xbc)],this[_0x146e76(0x9d)]({'width':_0x5ef4a2[_0x146e76(0x10c)],'height':_0x5ef4a2[_0x146e76(0x2b7)]});}['onMouseMove'](_0x41a141){const _0x37e158=_0x21d99b,{row:_0x1224b7,column:_0x5af5d3}=_0x41a141;if(_0x1224b7>=this[_0x37e158(0x110)][_0x37e158(0x4b5)]&&_0x1224b7<=this[_0x37e158(0x110)][_0x37e158(0x258)]&&_0x5af5d3>=this[_0x37e158(0x110)][_0x37e158(0x10a)]&&_0x5af5d3<=this[_0x37e158(0x110)]['endColumn']){this[_0x37e158(0x4b2)]({'hovered':!0x0});return;}this[_0x37e158(0x4b2)]({'hovered':!0x1});}[_0x21d99b(0x1f4)](_0x59dfe3){return!0x1;}[_0x21d99b(0x466)](_0x21e78c){const _0x228762=_0x21d99b;_0x5cb457[_0x228762(0x302)]['drawWith'](_0x21e78c,{'width':this[_0x228762(0x10c)],'height':this[_0x228762(0x2b7)],'strokeWidth':_0x30009f,'stroke':this[_0x228762(0x294)],'evented':!0x1,'fill':this[_0x228762(0xbc)]}),this[_0x228762(0x173)]&&(_0x21e78c[_0x228762(0x112)](),_0x21e78c[_0x228762(0x3ef)](0x1,0x0,0x0,0x1,this[_0x228762(0x10c)],this['_labelPosition']===_0x228762(0x237)?0x0:-_0x515e03),_0x46c566[_0x228762(0xc3)](_0x21e78c,{'text':this[_0x228762(0x1d2)],'color':this[_0x228762(0x294)]}),_0x21e78c[_0x228762(0x4c8)]());}}var _0x58f419=Object['defineProperty'],_0x9069b3=Object[_0x21d99b(0x44e)],_0x870e96=(_0x50cc22,_0x4d776e,_0x5e3876,_0x261354)=>{const _0xec51ce=_0x21d99b;for(var _0x8afe3a=_0x261354>0x1?void 0x0:_0x261354?_0x9069b3(_0x4d776e,_0x5e3876):_0x4d776e,_0x307a71=_0x50cc22[_0xec51ce(0x1a9)]-0x1,_0x59d1c9;_0x307a71>=0x0;_0x307a71--)(_0x59d1c9=_0x50cc22[_0x307a71])&&(_0x8afe3a=(_0x261354?_0x59d1c9(_0x4d776e,_0x5e3876,_0x8afe3a):_0x59d1c9(_0x8afe3a))||_0x8afe3a);return _0x261354&&_0x8afe3a&&_0x58f419(_0x4d776e,_0x5e3876,_0x8afe3a),_0x8afe3a;},_0x4a8bc6=(_0x5af7da,_0x54a940)=>(_0x500197,_0x413379)=>_0x54a940(_0x500197,_0x413379,_0x5af7da);const _0x338dc7=0x1389;let _0x8887ee=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x4f3981,_0x4d64b0,_0xdc71f4,_0x1b7ba8){const _0x573125=_0x21d99b;super(),_0x45eb1c(this,_0x573125(0x2ab),new Set()),_0x45eb1c(this,'_lastPointer',null),(this[_0x573125(0xc1)]=_0x4f3981,this[_0x573125(0x2a0)]=_0x4d64b0,this[_0x573125(0x3aa)]=_0xdc71f4,this[_0x573125(0x4a8)]=_0x1b7ba8,this[_0x573125(0xe9)]());}[_0x21d99b(0xe9)](){const _0x206507=_0x21d99b;this[_0x206507(0x2a0)][_0x206507(0x38e)][_0x206507(0x2a2)](_0x597698[_0x206507(0x3df)](this['dispose$']),_0x597698[_0x206507(0x338)](_0x18797b=>{const _0x377676=_0x206507;if(_0x18797b){const _0x237593=_0x18797b[_0x377676(0x273)];return _0x547585[_0x377676(0x1b9)](this['_collabCursorController']['getCollabCursors$'](this[_0x377676(0xc1)][_0x377676(0x4d3)]),this['_themeService'][_0x377676(0x454)])['pipe'](_0x597698[_0x377676(0x1fc)](([_0x9ed385,_0x8bb5b1])=>{const _0x365340=_0x377676,_0x57476a=new Map();return _0x9ed385[_0x365340(0x1fd)]((_0x34f138,_0x3fd928)=>{const _0x195ff4=_0x365340;if(_0x34f138[_0x195ff4(0x99)]===_0x237593){const _0x1e8db9={..._0x34f138};_0x1e8db9[_0x195ff4(0x469)]=_0x8bb5b1[_0x34f138[_0x195ff4(0x469)]],_0x57476a[_0x195ff4(0x109)](_0x3fd928,_0x1e8db9);}}),{'skeleton':_0x18797b,'cursors':_0x57476a};}));}return _0x547585['of']({'skeleton':null,'cursors':new Map()});}))[_0x206507(0x32b)](({skeleton:_0xb2fa60,cursors:_0x8a87bb})=>{const _0x5c390f=_0x206507;this[_0x5c390f(0xd5)](),_0xb2fa60&&this[_0x5c390f(0x326)](_0xb2fa60,_0x8a87bb);}),this[_0x206507(0x2a0)][_0x206507(0x38e)]['subscribe'](_0x5c9274=>{const _0x467a71=_0x206507;if(_0x5c9274==null)return;const {skeleton:_0x1d2ef1}=_0x5c9274,{scene:_0x8c603c}=this[_0x467a71(0xc1)];_0x8c603c['onPointerMove$'][_0x467a71(0x15b)](_0x184ab5[_0x467a71(0x431)](_0x4cb41f=>{const _0x1fec7c=_0x467a71;var _0xc1927c,_0x14c074;const {offsetX:_0xd5766c,offsetY:_0x210264}=_0x4cb41f,{x:_0x55cfbe,y:_0x209e7c}=_0x8c603c[_0x1fec7c(0x2df)](_0x5cb457[_0x1fec7c(0x1fe)]['FromArray']([_0xd5766c,_0x210264])),{scaleX:_0x50cf6b,scaleY:_0x25f1b2}=_0x8c603c[_0x1fec7c(0x39f)](),_0x1a2385=_0x8c603c[_0x1fec7c(0x146)](_0x10073a['VIEWPORT_KEY'][_0x1fec7c(0x158)]),_0xd5e0a9=_0x8c603c['getVpScrollXYInfoByPosToVp'](_0x5cb457[_0x1fec7c(0x1fe)][_0x1fec7c(0x45d)]([_0x55cfbe,_0x209e7c]),_0x1a2385),_0x22a08f=_0x1d2ef1[_0x1fec7c(0x27a)](_0xd5766c,_0x210264,_0x50cf6b,_0x25f1b2,_0xd5e0a9);((_0xc1927c=this[_0x1fec7c(0x24b)])==null?void 0x0:_0xc1927c[_0x1fec7c(0x187)])===_0x22a08f[_0x1fec7c(0x187)]&&((_0x14c074=this['_lastPointer'])==null?void 0x0:_0x14c074[_0x1fec7c(0x305)])===_0x22a08f[_0x1fec7c(0x305)]||this['_cursors'][_0x1fec7c(0x1fd)](_0xcb8a04=>{const _0x1ddb80=_0x1fec7c;_0xcb8a04[_0x1ddb80(0x340)](_0x22a08f);});},0x64));});}[_0x21d99b(0x326)](_0x312f4f,_0x5151c1){const _0x31c6d2=_0x21d99b;var _0x2b2ed1;const _0x310d98=(_0x2b2ed1=this[_0x31c6d2(0x2a0)][_0x31c6d2(0x3a6)]())==null?void 0x0:_0x2b2ed1[_0x31c6d2(0x470)];if(!_0x310d98)return;const _0x1017b8=this[_0x31c6d2(0x4a2)]();if(!_0x1017b8)return;this['_cursors'][_0x31c6d2(0x1fd)](_0x1e41ab=>{const _0x2c8bef=_0x31c6d2;_0x1e41ab[_0x2c8bef(0x19c)]();});const {scene:_0x3ddb2d}=_0x1017b8,_0x1212c6=_0x21072f(Array[_0x31c6d2(0xf6)](_0x5151c1[_0x31c6d2(0x40b)]()))[_0x31c6d2(0x1fc)](_0x2ce6e4=>{const _0xe824ea=_0x31c6d2,{color:_0x13fb39,range:_0x53779b,name:_0x308439,selection:_0x502418,sheetID:_0x18bb37}=_0x2ce6e4,{startColumn:_0x59b05b,startRow:_0x24365e,endColumn:_0x5b113a,endRow:_0x4740b8}=_0x53779b,_0x2fbe8b=_0x10073a[_0xe824ea(0x41d)](_0x24365e,_0x59b05b,_0x3ddb2d,_0x310d98),_0x65dad6=_0x10073a[_0xe824ea(0x41d)](_0x4740b8,_0x5b113a,_0x3ddb2d,_0x310d98),{columnHeaderHeightAndMarginTop:_0x4638d5}=_0x310d98,{startX:_0x5337e9,startY:_0x32882d}=_0x2fbe8b,{endX:_0x46378a,endY:_0x2cdd0b}=_0x65dad6,_0x2160c7=_0x46378a-_0x5337e9,_0x5e63f7=_0x2cdd0b-_0x32882d,_0x3e25ac={'labelPosition':_0x32882d-_0x4638d5>=_0x515e03?_0xe824ea(0x32c):_0xe824ea(0x237),'sheetID':_0x18bb37,'range':_0x53779b,'color':_0x13fb39,'name':_0x308439,'selection':_0x502418,'left':_0x5337e9,'top':_0x32882d,'width':_0x2160c7,'height':_0x5e63f7,'evented':!0x1,'zIndex':_0x338dc7};return new _0x66c992(_0x308439,_0x3e25ac);});_0x3ddb2d['addObjects'](_0x1212c6,_0x435e9a),this[_0x31c6d2(0x2ab)]=new Set(_0x1212c6);}[_0x21d99b(0xd5)](){const _0x317ac6=_0x21d99b;var _0x2d49dc;(_0x2d49dc=this[_0x317ac6(0x2ab)])==null||_0x2d49dc[_0x317ac6(0x1fd)](_0x57991c=>_0x57991c[_0x317ac6(0x3f7)]());}[_0x21d99b(0x4a2)](){const _0x4857f7=_0x21d99b;return _0x10073a[_0x4857f7(0x1b4)](this['_context'][_0x4857f7(0x1ac)],this[_0x4857f7(0xc1)]);}};_0x8887ee=_0x870e96([_0x4a8bc6(0x1,_0x184ab5[_0x21d99b(0x441)](_0x10073a[_0x21d99b(0x3bd)])),_0x4a8bc6(0x2,_0x184ab5[_0x21d99b(0x441)](_0x1f8139)),_0x4a8bc6(0x3,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['ThemeService']))],_0x8887ee);function _0x21072f(_0x3371da){const _0x457701=_0x21d99b,_0x5b2f3c=new Map();return _0x3371da[_0x457701(0x1fd)](_0xc8561a=>{const _0x4ff700=_0x457701;if(_0x5b2f3c[_0x4ff700(0x208)](_0xc8561a['selection'])){const _0x301141=_0x5b2f3c['get'](_0xc8561a['selection']);_0x301141[_0x4ff700(0x96)]+=',\x20'+_0xc8561a[_0x4ff700(0x96)];}else _0x5b2f3c[_0x4ff700(0x109)](_0xc8561a[_0x4ff700(0x3e9)],_0xc8561a);}),Array[_0x457701(0xf6)](_0x5b2f3c[_0x457701(0x40b)]());}var _0x42a545=function(){const _0x1d01d9=_0x21d99b;return _0x42a545=Object['assign']||function(_0x28c1c6){const _0x583db9=_0x5cee;for(var _0x3aca35,_0x15f97f=0x1,_0x5a7300=arguments[_0x583db9(0x1a9)];_0x15f97f<_0x5a7300;_0x15f97f++){_0x3aca35=arguments[_0x15f97f];for(var _0x29813d in _0x3aca35)Object[_0x583db9(0x98)][_0x583db9(0x9a)][_0x583db9(0xf4)](_0x3aca35,_0x29813d)&&(_0x28c1c6[_0x29813d]=_0x3aca35[_0x29813d]);}return _0x28c1c6;},_0x42a545[_0x1d01d9(0x42e)](this,arguments);},_0x3ac657=function(_0x4cf9a2,_0x5a6ac7){const _0x1b7814=_0x21d99b;var _0x1deaa6={};for(var _0x2cd398 in _0x4cf9a2)Object[_0x1b7814(0x98)][_0x1b7814(0x9a)][_0x1b7814(0xf4)](_0x4cf9a2,_0x2cd398)&&_0x5a6ac7[_0x1b7814(0x33b)](_0x2cd398)<0x0&&(_0x1deaa6[_0x2cd398]=_0x4cf9a2[_0x2cd398]);if(_0x4cf9a2!=null&&typeof Object[_0x1b7814(0x38a)]==_0x1b7814(0x4c7)){for(var _0x42d7b7=0x0,_0x2cd398=Object[_0x1b7814(0x38a)](_0x4cf9a2);_0x42d7b7<_0x2cd398[_0x1b7814(0x1a9)];_0x42d7b7++)_0x5a6ac7['indexOf'](_0x2cd398[_0x42d7b7])<0x0&&Object[_0x1b7814(0x98)]['propertyIsEnumerable'][_0x1b7814(0xf4)](_0x4cf9a2,_0x2cd398[_0x42d7b7])&&(_0x1deaa6[_0x2cd398[_0x42d7b7]]=_0x4cf9a2[_0x2cd398[_0x42d7b7]]);}return _0x1deaa6;},_0x9ca2ed=_0x5a9ef2[_0x21d99b(0x4d6)](function(_0x9724c0,_0x374c14){const _0x11e739=_0x21d99b;var _0x3c3276=_0x9724c0[_0x11e739(0x26f)],_0x9853cf=_0x9724c0['id'],_0x3e3a60=_0x9724c0[_0x11e739(0x45b)],_0x5143be=_0x9724c0[_0x11e739(0xff)],_0x4f0970=_0x3ac657(_0x9724c0,[_0x11e739(0x26f),'id',_0x11e739(0x45b),_0x11e739(0xff)]),_0xa2987a=_0x11e739(0x38c)[_0x11e739(0x3b3)](_0x9853cf,'\x20')[_0x11e739(0x3b3)](_0x3e3a60||'')[_0x11e739(0x140)](),_0x466460=_0x5a9ef2[_0x11e739(0x25d)]('_'['concat'](_0x3c5491()));return _0x4361d8(_0x3c3276,''[_0x11e739(0x3b3)](_0x9853cf),{'defIds':_0x3c3276[_0x11e739(0x406)],'idSuffix':_0x466460[_0x11e739(0x4a6)]},_0x42a545({'ref':_0x374c14,'className':_0xa2987a},_0x4f0970),_0x5143be);});function _0x4361d8(_0x295ae0,_0x3cc0b0,_0x142e04,_0x20c8ab,_0x5a34d2){const _0x518f7f=_0x21d99b;return _0x5a9ef2['createElement'](_0x295ae0[_0x518f7f(0xe5)],_0x42a545(_0x42a545({'key':_0x3cc0b0},_0x586e5c(_0x295ae0,_0x142e04,_0x5a34d2)),_0x20c8ab),(_0x33b216(_0x295ae0,_0x142e04)['children']||[])[_0x518f7f(0x1fc)](function(_0x42e270,_0x373620){const _0x3098f3=_0x518f7f;return _0x4361d8(_0x42e270,''[_0x3098f3(0x3b3)](_0x3cc0b0,'-')['concat'](_0x295ae0[_0x3098f3(0xe5)],'-')['concat'](_0x373620),_0x142e04,void 0x0,_0x5a34d2);}));}function _0x586e5c(_0x3d40a0,_0x635fd6,_0x19659f){const _0x5930c2=_0x21d99b;var _0xf2985e=_0x42a545({},_0x3d40a0['attrs']);_0x19659f!=null&&_0x19659f[_0x5930c2(0xc5)]&&_0xf2985e['fill']===_0x5930c2(0xc5)&&(_0xf2985e[_0x5930c2(0x2b0)]=_0x19659f[_0x5930c2(0xc5)]);var _0x308d6e=_0x635fd6[_0x5930c2(0x406)];return!_0x308d6e||_0x308d6e[_0x5930c2(0x1a9)]===0x0||(_0x3d40a0['tag']===_0x5930c2(0x4a7)&&_0xf2985e[_0x5930c2(0x34e)]&&(_0xf2985e[_0x5930c2(0x34e)]=_0xf2985e[_0x5930c2(0x34e)]+_0x635fd6[_0x5930c2(0x268)]),Object['entries'](_0xf2985e)[_0x5930c2(0x1fd)](function(_0x4ace2c){const _0x37748c=_0x5930c2;var _0x275c68=_0x4ace2c[0x0],_0x397a73=_0x4ace2c[0x1];typeof _0x397a73==_0x37748c(0x343)&&(_0xf2985e[_0x275c68]=_0x397a73[_0x37748c(0x408)](/url\(#(.*)\)/,'url(#$1'[_0x37748c(0x3b3)](_0x635fd6['idSuffix'],')')));})),_0xf2985e;}function _0x33b216(_0x21fce0,_0x9bea32){const _0x2c00cf=_0x21d99b;var _0x2a86fa,_0x56c868=_0x9bea32[_0x2c00cf(0x406)];return!_0x56c868||_0x56c868['length']===0x0?_0x21fce0:_0x21fce0[_0x2c00cf(0xe5)]==='defs'&&(!((_0x2a86fa=_0x21fce0[_0x2c00cf(0x1e6)])===null||_0x2a86fa===void 0x0)&&_0x2a86fa[_0x2c00cf(0x1a9)])?_0x42a545(_0x42a545({},_0x21fce0),{'children':_0x21fce0[_0x2c00cf(0x1e6)][_0x2c00cf(0x1fc)](function(_0x116e13){const _0x4604b9=_0x2c00cf;return typeof _0x116e13[_0x4604b9(0x477)]['id']==_0x4604b9(0x343)&&_0x56c868&&_0x56c868['indexOf'](_0x116e13['attrs']['id'])>-0x1?_0x42a545(_0x42a545({},_0x116e13),{'attrs':_0x42a545(_0x42a545({},_0x116e13['attrs']),{'id':_0x116e13[_0x4604b9(0x477)]['id']+_0x9bea32['idSuffix']})}):_0x116e13;})}):_0x21fce0;}function _0x3c5491(){const _0x43a4da=_0x21d99b;return Math[_0x43a4da(0x425)]()[_0x43a4da(0x4c1)](0x24)['substring'](0x2,0x8);}_0x9ca2ed[_0x21d99b(0x33e)]='UniverIcon';var _0x47117a={'tag':_0x21d99b(0x147),'attrs':{'fill':_0x21d99b(0x2b2),'viewBox':_0x21d99b(0x164),'width':_0x21d99b(0x344),'height':_0x21d99b(0x344)},'children':[{'tag':'g','attrs':{'clipPath':_0x21d99b(0x432)},'children':[{'tag':_0x21d99b(0x254),'attrs':{'stroke':_0x21d99b(0x40c),'d':_0x21d99b(0x2b1),'strokeLinecap':'round','strokeLinejoin':_0x21d99b(0xb9),'strokeWidth':1.2}}]},{'tag':_0x21d99b(0x2b5),'attrs':{},'children':[{'tag':_0x21d99b(0x256),'attrs':{'id':_0x21d99b(0x398)},'children':[{'tag':_0x21d99b(0x254),'attrs':{'fill':_0x21d99b(0x269),'d':_0x21d99b(0x29c)}}]}]}],'defIds':[_0x21d99b(0x398)]},_0x4c5e21=_0x5a9ef2[_0x21d99b(0x4d6)](function(_0x44c728,_0x4494f1){const _0x261a7c=_0x21d99b;return _0x5a9ef2[_0x261a7c(0x31a)](_0x9ca2ed,Object[_0x261a7c(0xfd)]({},_0x44c728,{'id':_0x261a7c(0x284),'ref':_0x4494f1,'icon':_0x47117a}));});_0x4c5e21[_0x21d99b(0x33e)]='OffLineSingle';var _0x4c163f={'tag':_0x21d99b(0x147),'attrs':{'fill':_0x21d99b(0x2b2),'viewBox':_0x21d99b(0x47a),'width':_0x21d99b(0x344),'height':_0x21d99b(0x344)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x21d99b(0x254),'attrs':{'stroke':_0x21d99b(0x40c),'d':_0x21d99b(0x2db),'strokeLinecap':_0x21d99b(0xb9),'strokeLinejoin':_0x21d99b(0xb9),'strokeWidth':1.2}}]},{'tag':_0x21d99b(0x2b5),'attrs':{},'children':[{'tag':_0x21d99b(0x256),'attrs':{'id':_0x21d99b(0x12b)},'children':[{'tag':_0x21d99b(0x254),'attrs':{'fill':_0x21d99b(0x269),'d':'M0\x200H16V16H0z','transform':_0x21d99b(0xb8)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x2e5b33=_0x5a9ef2['forwardRef'](function(_0xa285c4,_0x60693){const _0x186799=_0x21d99b;return _0x5a9ef2[_0x186799(0x31a)](_0x9ca2ed,Object['assign']({},_0xa285c4,{'id':_0x186799(0x191),'ref':_0x60693,'icon':_0x4c163f}));});_0x2e5b33[_0x21d99b(0x33e)]=_0x21d99b(0x1c7);function _0x23477c(_0x17f79e){const _0x3fec46=_0x21d99b;var _0x43b132,_0x3197b4,_0x5e8678='';if(typeof _0x17f79e==_0x3fec46(0x343)||typeof _0x17f79e==_0x3fec46(0x396))_0x5e8678+=_0x17f79e;else{if(typeof _0x17f79e==_0x3fec46(0x457)){if(Array[_0x3fec46(0x481)](_0x17f79e)){var _0x1dccdd=_0x17f79e[_0x3fec46(0x1a9)];for(_0x43b132=0x0;_0x43b132<_0x1dccdd;_0x43b132++)_0x17f79e[_0x43b132]&&(_0x3197b4=_0x23477c(_0x17f79e[_0x43b132]))&&(_0x5e8678&&(_0x5e8678+='\x20'),_0x5e8678+=_0x3197b4);}else{for(_0x3197b4 in _0x17f79e)_0x17f79e[_0x3197b4]&&(_0x5e8678&&(_0x5e8678+='\x20'),_0x5e8678+=_0x3197b4);}}}return _0x5e8678;}function _0x3704ea(){for(var _0x149eed,_0x2488f1,_0x4c710f=0x0,_0x45b738='',_0x2571d1=arguments['length'];_0x4c710f<_0x2571d1;_0x4c710f++)(_0x149eed=arguments[_0x4c710f])&&(_0x2488f1=_0x23477c(_0x149eed))&&(_0x45b738&&(_0x45b738+='\x20'),_0x45b738+=_0x2488f1);return _0x45b738;}const _0x8fe6ee={'onlineStatusIcon':_0x21d99b(0x35d),'onlineStatusTitle':_0x21d99b(0xac),'onlineStatus':_0x21d99b(0xec),'online':_0x21d99b(0x107),'offline':'univer-offline'};function _0xcbc22c(_0x2b82e8){const _0x3fbc50=_0x21d99b;switch(_0x2b82e8){case _0x37dd10['OFFLINE']:return _0x3fbc50(0x4c6);case _0x37dd10[_0x3fbc50(0x1af)]:return _0x3fbc50(0x461);case _0x37dd10[_0x3fbc50(0x42c)]:return _0x3fbc50(0x2c8);case _0x37dd10[_0x3fbc50(0x2a9)]:return _0x3fbc50(0x444);case _0x37dd10['AWAITING']:case _0x37dd10[_0x3fbc50(0x139)]:return _0x3fbc50(0x41e);case _0x37dd10['SYNCED']:case _0x37dd10[_0x3fbc50(0x4af)]:return _0x3fbc50(0x412);}}function _0x16578b(_0xf115){const _0x495770=_0x21d99b,{status$:_0x4276d8}=_0xf115,_0x19feb7=_0x5b2266[_0x495770(0xbf)](_0x4276d8,_0x37dd10[_0x495770(0x2a9)]),_0x500b7e=_0x184ab5[_0x495770(0x1c8)](_0x184ab5[_0x495770(0x3e5)]),_0x47b2e8=_0x184ab5[_0x495770(0x1c8)](_0x5b1653['CollaborationSessionService']),_0x5cb6c2=_0x19feb7!==_0x37dd10['OFFLINE'],_0x2b2b66=_0x500b7e['t'](_0xcbc22c(_0x19feb7)),_0x307b25=_0x3704ea(_0x8fe6ee[_0x495770(0x3c9)],{[_0x8fe6ee[_0x495770(0x3b6)]]:_0x5cb6c2,[_0x8fe6ee[_0x495770(0x47d)]]:!_0x5cb6c2}),_0x3cfe8f=_0x5cb6c2?_0x5a9ef2[_0x495770(0x31a)](_0x2e5b33,null):_0x5a9ef2[_0x495770(0x31a)](_0x4c5e21,null),_0x47b847=_0x5a9ef2[_0x495770(0x1a1)](()=>{const _0x3d2f46=_0x495770;_0x5cb6c2||_0x47b2e8[_0x3d2f46(0x1d9)]();},[_0x5cb6c2,_0x47b2e8]);function _0x102cf9(){const _0x2bd950=_0x495770;return _0x5a9ef2[_0x2bd950(0x31a)](_0x2bd950(0x3a0),{'className':_0x307b25,'onClick':_0x47b847},_0x5a9ef2[_0x2bd950(0x31a)](_0x2bd950(0x3a0),{'className':_0x8fe6ee[_0x2bd950(0x25e)]},_0x3cfe8f),_0x5a9ef2[_0x2bd950(0x31a)]('div',{'className':_0x8fe6ee[_0x2bd950(0x10d)]},_0x2b2b66));}return _0x5cb6c2?_0x102cf9():_0x5a9ef2[_0x495770(0x31a)](_0x5ad17f[_0x495770(0x1a5)],{'title':_0x500b7e['t'](_0x495770(0x2d2))},_0x102cf9());}var _0x426550=Object[_0x21d99b(0x238)],_0x36c498=Object[_0x21d99b(0x44e)],_0x214da7=(_0x1b4870,_0x3a3cc5,_0xfc5422,_0x36930f)=>{const _0x49dc15=_0x21d99b;for(var _0x6c8fc1=_0x36930f>0x1?void 0x0:_0x36930f?_0x36c498(_0x3a3cc5,_0xfc5422):_0x3a3cc5,_0x8e3f02=_0x1b4870[_0x49dc15(0x1a9)]-0x1,_0x1c6aca;_0x8e3f02>=0x0;_0x8e3f02--)(_0x1c6aca=_0x1b4870[_0x8e3f02])&&(_0x6c8fc1=(_0x36930f?_0x1c6aca(_0x3a3cc5,_0xfc5422,_0x6c8fc1):_0x1c6aca(_0x6c8fc1))||_0x6c8fc1);return _0x36930f&&_0x6c8fc1&&_0x426550(_0x3a3cc5,_0xfc5422,_0x6c8fc1),_0x6c8fc1;},_0xa93b2e=(_0x1d7250,_0x5dff6a)=>(_0x9b1277,_0x2c368c)=>_0x5dff6a(_0x9b1277,_0x2c368c,_0x1d7250);_0x5b1653[_0x21d99b(0x2ec)]=class extends _0x184ab5[_0x21d99b(0x159)]{constructor(_0x2cf8ab,_0x33e4e3,_0x47d689,_0x28a52b){const _0x5bb354=_0x21d99b;super(),_0x45eb1c(this,_0x5bb354(0x206),new _0x547585[(_0x5bb354(0x349))](_0x37dd10[_0x5bb354(0x2a9)])),(this[_0x5bb354(0x2f6)]=_0x2cf8ab,this[_0x5bb354(0x1d4)]=_0x33e4e3,this[_0x5bb354(0x2a3)]=_0x47d689,this[_0x5bb354(0x2f1)]=_0x28a52b,this[_0x5bb354(0x3f6)](),this[_0x5bb354(0x11f)]());}[_0x21d99b(0x11f)](){const _0x189a82=_0x21d99b;this[_0x189a82(0x4d7)](this['_univerInstanceService'][_0x189a82(0x2ef)]['pipe'](_0x547585[_0x189a82(0x338)](()=>{const _0x503b32=_0x189a82,_0x13197f=this[_0x503b32(0x2f6)]['getFocusedUnit']();return _0x13197f?this[_0x503b32(0x2f1)][_0x503b32(0x1f2)](_0x13197f['getUnitId']()):_0x547585['of'](null);}),_0x547585[_0x189a82(0x338)](_0x2a8436=>_0x2a8436?_0x2a8436['status$']:_0x547585['of'](_0x37dd10['NOT_COLLAB'])))['subscribe'](_0x3235a4=>{const _0x2fb31c=_0x189a82;this[_0x2fb31c(0x206)][_0x2fb31c(0x8e)](_0x3235a4);}));}[_0x21d99b(0x3f6)](){const _0x5d06a3=_0x21d99b;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x5b2266[_0x5d06a3(0xce)]['HEADER_MENU'],()=>_0x184ab5[_0x5d06a3(0x327)](_0x344a06({'status$':this['_status$'][_0x5d06a3(0x1b5)]()}),this['_injector'])));}},_0x5b1653['DesktopCollaborationStatusDisplayController']=_0x214da7([_0xa93b2e(0x0,_0x184ab5[_0x21d99b(0x2a6)]),_0xa93b2e(0x1,_0x5b2266[_0x21d99b(0x16b)]),_0xa93b2e(0x2,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['Injector'])),_0xa93b2e(0x3,_0x184ab5[_0x21d99b(0x441)](_0x5b1653[_0x21d99b(0x48b)]))],_0x5b1653[_0x21d99b(0x2ec)]);function _0x344a06(_0x151186){const {status$:_0x301666}=_0x151186;return function(){const _0x1a7a44=_0x5cee;return _0x5a9ef2[_0x1a7a44(0x31a)](_0x16578b,{'status$':_0x301666});};}const _0x421001=_0x184ab5[_0x21d99b(0x149)](_0x21d99b(0x2c3));var _0x1c34ef=Object[_0x21d99b(0x238)],_0xd78112=Object[_0x21d99b(0x44e)],_0x4edfba=(_0xeea34e,_0x109713,_0x1f42b0,_0x24cb83)=>{const _0x42f3a4=_0x21d99b;for(var _0x5968ef=_0x24cb83>0x1?void 0x0:_0x24cb83?_0xd78112(_0x109713,_0x1f42b0):_0x109713,_0x277d0a=_0xeea34e[_0x42f3a4(0x1a9)]-0x1,_0x3ce1ec;_0x277d0a>=0x0;_0x277d0a--)(_0x3ce1ec=_0xeea34e[_0x277d0a])&&(_0x5968ef=(_0x24cb83?_0x3ce1ec(_0x109713,_0x1f42b0,_0x5968ef):_0x3ce1ec(_0x5968ef))||_0x5968ef);return _0x24cb83&&_0x5968ef&&_0x1c34ef(_0x109713,_0x1f42b0,_0x5968ef),_0x5968ef;},_0x2b0ab6=(_0x2c5bcd,_0x21a9cb)=>(_0x5d0901,_0x4e2898)=>_0x21a9cb(_0x5d0901,_0x4e2898,_0x2c5bcd);_0x5b1653[_0x21d99b(0x436)]=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x53bc42,_0x333d69,_0x3ee518,_0x28182e,_0x175827,_0x366d6d){const _0x3f70d5=_0x21d99b;super(),this[_0x3f70d5(0x236)]=_0x53bc42,this['_logService']=_0x333d69,this['_commandService']=_0x3ee518,this[_0x3f70d5(0xcf)]=_0x28182e,this[_0x3f70d5(0x241)]=_0x175827,_0x366d6d?_0x366d6d==null||_0x366d6d['whenReady']()['then'](()=>this['_init']()):(this[_0x3f70d5(0x167)][_0x3f70d5(0x4b3)](_0x3f70d5(0xd8),_0x3f70d5(0x43c)),this[_0x3f70d5(0xe9)]());}async[_0x21d99b(0xe9)](){const _0x1692ee=_0x21d99b,_0x45fa9b=this[_0x1692ee(0x236)][_0x1692ee(0x18d)](_0x1692ee(0x1ac)),_0x3e750f=this[_0x1692ee(0x236)][_0x1692ee(0x18d)](_0x1692ee(0x4c4));if(!_0x45fa9b||!_0x3e750f){this[_0x1692ee(0x167)]['debug'](_0x1692ee(0xd8),_0x1692ee(0x4ca));return;}switch(Number(_0x3e750f)){case _0x3322af[_0x1692ee(0xab)]:{const _0x549c0a=await this[_0x1692ee(0x394)](_0x45fa9b);this[_0x1692ee(0x186)](_0x549c0a);break;}case _0x3322af[_0x1692ee(0x49a)]:{await this[_0x1692ee(0x374)](_0x45fa9b);break;}default:{this['_logService'][_0x1692ee(0x102)](_0x1692ee(0xd8),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x21d99b(0x186)](_0x3bfa0f){const _0x30fad2=_0x21d99b;await this[_0x30fad2(0x1d1)](_0x3bfa0f),_0x3bfa0f['activeSheet$'][_0x30fad2(0x2a2)](_0x547585['takeUntil'](this[_0x30fad2(0x482)]))['subscribe'](_0xdc5902=>{_0xdc5902&&this['_updateURLWithCurrentState'](_0xdc5902);}),this[_0x30fad2(0x236)][_0x30fad2(0x14a)][_0x30fad2(0x2a2)](_0x547585[_0x30fad2(0x3df)](this['dispose$']))[_0x30fad2(0x32b)](()=>this['_updateSubUnitFromURLParams'](_0x3bfa0f));}[_0x21d99b(0x447)](_0x275370,_0x2affd0=!0x1){const _0x5e208b=_0x21d99b,_0x303a9b=this[_0x5e208b(0x236)][_0x5e208b(0x18d)](_0x5e208b(0x474));_0x275370['getSheetId']()!==_0x303a9b&&this['_urlService'][_0x5e208b(0x2c6)](_0x5e208b(0x474),_0x275370['getSheetId'](),_0x2affd0);}async[_0x21d99b(0x1d1)](_0x3e5326){const _0xa3677b=_0x21d99b;var _0x2c6477;const _0x2d69ec=this[_0xa3677b(0x236)]['getParam'](_0xa3677b(0x474));if(!_0x2d69ec||!_0x3e5326[_0xa3677b(0x14d)](_0x2d69ec)){const _0x3734d2=_0x3e5326[_0xa3677b(0xd9)]()[0x0],_0x3a82ff=_0x3e5326[_0xa3677b(0x14d)](_0x3734d2);if(!_0x3a82ff)return;this['_updateURLWithCurrentState'](_0x3a82ff,!0x0),await this[_0xa3677b(0x43f)][_0xa3677b(0x4be)](_0x1b2dce['SetWorksheetActivateCommand']['id'],{'unitId':_0x3e5326[_0xa3677b(0x18a)](),'subUnitId':_0x3734d2});return;}((_0x2c6477=_0x3e5326[_0xa3677b(0x2c1)]())==null?void 0x0:_0x2c6477[_0xa3677b(0x88)]())!==_0x2d69ec&&await this[_0xa3677b(0x43f)][_0xa3677b(0x4be)](_0x1b2dce['SetWorksheetActivateCommand']['id'],{'unitId':_0x3e5326[_0xa3677b(0x18a)](),'subUnitId':_0x2d69ec});}async['_loadSheet'](_0x1abf44){const _0x24e236=_0x21d99b;let _0x3a4caa=0x0;const _0x248e11=await this['_localCacheService'][_0x24e236(0x434)](_0x1abf44);return _0x248e11&&(_0x248e11[_0x24e236(0x1e5)]||_0x248e11[_0x24e236(0x230)][_0x24e236(0x1a9)]!==0x0)&&(_0x3a4caa=_0x248e11[_0x24e236(0x1a3)]),_0x3a4caa===0x0&&this['_logService'][_0x24e236(0x4b3)](_0x24e236(0xd8),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x24e236(0x384)](_0x1abf44,_0x3a4caa);}async['_loadDoc'](_0x2b4161){const _0x1d8e50=_0x21d99b;let _0x38395c=0x0;const _0x1a4822=await this[_0x1d8e50(0xcf)][_0x1d8e50(0x434)](_0x2b4161);return _0x1a4822&&(_0x1a4822[_0x1d8e50(0x1e5)]||_0x1a4822[_0x1d8e50(0x230)][_0x1d8e50(0x1a9)]!==0x0)&&(_0x38395c=_0x1a4822['rev']),_0x38395c===0x0&&this['_logService']['debug'](_0x1d8e50(0xd8),_0x1d8e50(0x333)),this[_0x1d8e50(0x241)][_0x1d8e50(0x165)](_0x2b4161,_0x38395c);}},_0x5b1653['DataLoaderController']=_0x4edfba([_0x2b0ab6(0x0,_0x421001),_0x2b0ab6(0x1,_0x184ab5[_0x21d99b(0x1d3)]),_0x2b0ab6(0x2,_0x184ab5[_0x21d99b(0x2bd)]),_0x2b0ab6(0x3,_0x184ab5['Inject'](_0x5b1653['LocalCacheService'])),_0x2b0ab6(0x4,_0x184ab5['Inject'](_0x1137f7[_0x21d99b(0x1ed)])),_0x2b0ab6(0x5,_0x184ab5[_0x21d99b(0x260)](_0x513381[_0x21d99b(0x347)]))],_0x5b1653[_0x21d99b(0x436)]);var _0x4699e5=Object[_0x21d99b(0x238)],_0x3a4985=Object[_0x21d99b(0x44e)],_0x376b57=(_0x2414c6,_0x123257,_0x51e6ef,_0x556a03)=>{const _0x49461b=_0x21d99b;for(var _0x57973c=_0x556a03>0x1?void 0x0:_0x556a03?_0x3a4985(_0x123257,_0x51e6ef):_0x123257,_0x331eab=_0x2414c6[_0x49461b(0x1a9)]-0x1,_0x46d7b1;_0x331eab>=0x0;_0x331eab--)(_0x46d7b1=_0x2414c6[_0x331eab])&&(_0x57973c=(_0x556a03?_0x46d7b1(_0x123257,_0x51e6ef,_0x57973c):_0x46d7b1(_0x57973c))||_0x57973c);return _0x556a03&&_0x57973c&&_0x4699e5(_0x123257,_0x51e6ef,_0x57973c),_0x57973c;},_0x3fce05=(_0x4508ec,_0x207383)=>(_0x3a63a6,_0x2b08b4)=>_0x207383(_0x3a63a6,_0x2b08b4,_0x4508ec);const _0x12a8f5='DEFAULT_FILE_NAME',_0x1617ba=_0x21d99b(0x163);let _0x3c7ed2=class extends _0x184ab5[_0x21d99b(0x159)]{constructor(_0x661eb8,_0xdd3251){const _0x53ecd1=_0x21d99b;super(),this[_0x53ecd1(0x2f6)]=_0x661eb8,this[_0x53ecd1(0x190)]=_0xdd3251,this['_init']();}[_0x21d99b(0xe9)](){const _0x17b712=_0x21d99b;this[_0x17b712(0x4d7)](this[_0x17b712(0x2f6)][_0x17b712(0x2ef)][_0x17b712(0x32b)](()=>{const _0x260bb7=_0x17b712;var _0x2dc98f;const _0x321d25=this[_0x260bb7(0x2f6)][_0x260bb7(0x205)]();let _0x2214bf=(_0x2dc98f=this[_0x260bb7(0x190)]['getConfig'](_0x12a8f5))!=null?_0x2dc98f:_0x1617ba;_0x321d25 instanceof _0x184ab5[_0x260bb7(0x92)]&&(_0x2214bf=_0x321d25[_0x260bb7(0x96)]),document[_0x260bb7(0x3bb)]=_0x2214bf;}));}};_0x3c7ed2=_0x376b57([_0x3fce05(0x0,_0x184ab5[_0x21d99b(0x2a6)]),_0x3fce05(0x1,_0x184ab5[_0x21d99b(0xda)])],_0x3c7ed2);var _0x28b430=Object[_0x21d99b(0x238)],_0x3c0f28=Object[_0x21d99b(0x44e)],_0x579020=(_0x329e02,_0x4b11b4,_0x25e938,_0x390718)=>{for(var _0x3af9fc=_0x390718>0x1?void 0x0:_0x390718?_0x3c0f28(_0x4b11b4,_0x25e938):_0x4b11b4,_0xf1d34e=_0x329e02['length']-0x1,_0x5ca828;_0xf1d34e>=0x0;_0xf1d34e--)(_0x5ca828=_0x329e02[_0xf1d34e])&&(_0x3af9fc=(_0x390718?_0x5ca828(_0x4b11b4,_0x25e938,_0x3af9fc):_0x5ca828(_0x3af9fc))||_0x3af9fc);return _0x390718&&_0x3af9fc&&_0x28b430(_0x4b11b4,_0x25e938,_0x3af9fc),_0x3af9fc;},_0x1a7c6c=(_0x5490e7,_0x5f0e9e)=>(_0x4ca49e,_0x83bcc9)=>_0x5f0e9e(_0x4ca49e,_0x83bcc9,_0x5490e7);let _0x2be4f9=class{constructor(_0x16b625,_0x4e532d,_0x4b86d2){const _0x44e3c2=_0x21d99b;this[_0x44e3c2(0x190)]=_0x16b625,this[_0x44e3c2(0x42b)]=_0x4e532d,this[_0x44e3c2(0x24f)]=_0x4b86d2,this[_0x44e3c2(0x161)]();}[_0x21d99b(0x161)](){const _0x3491a0=_0x21d99b;this[_0x3491a0(0x42b)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5c7432,_0x5f24bd)=>_0x5f24bd(_0x5c7432)[_0x3491a0(0x2a2)](_0x547585[_0x3491a0(0x37f)](async _0x1746af=>{const _0x103459=_0x3491a0,_0x1bae14=_0x1746af;if(_0x1bae14[_0x103459(0x458)]===0x191&&window[_0x103459(0x2d9)](this[_0x103459(0x24f)]['t']('auth.needGotoLoginAlert'))){const _0xe93a49=window[_0x103459(0x3b9)](window[_0x103459(0x4d8)][_0x103459(0x2a4)]);window['location'][_0x103459(0x2a4)]=this[_0x103459(0x87)]()+'?url='+_0xe93a49;}return _0x1bae14;}))});}[_0x21d99b(0x87)](){const _0x2c97a4=_0x21d99b;var _0x1d03c6,_0x394769;const _0x33c251=this[_0x2c97a4(0x190)][_0x2c97a4(0x1c3)](_0x47a94f),_0x42354d=this['_configService'][_0x2c97a4(0x1c3)](_0x590185);return(_0x394769=(_0x1d03c6=_0x42354d==null?void 0x0:_0x42354d[_0x2c97a4(0x3f8)])!=null?_0x1d03c6:_0x33c251)!=null?_0x394769:_0xbacabc;}};_0x2be4f9=_0x579020([_0x1a7c6c(0x0,_0x184ab5[_0x21d99b(0xda)]),_0x1a7c6c(0x1,_0x184ab5[_0x21d99b(0x441)](_0x58aea2[_0x21d99b(0xf3)])),_0x1a7c6c(0x2,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['LocaleService']))],_0x2be4f9);var _0x39e4e1=Object[_0x21d99b(0x238)],_0x2c1b9e=Object[_0x21d99b(0x44e)],_0x22b3a6=(_0x2d239c,_0x3811c3,_0x2dc173,_0x42ece4)=>{for(var _0x29cd9a=_0x42ece4>0x1?void 0x0:_0x42ece4?_0x2c1b9e(_0x3811c3,_0x2dc173):_0x3811c3,_0x114342=_0x2d239c['length']-0x1,_0x5d6c94;_0x114342>=0x0;_0x114342--)(_0x5d6c94=_0x2d239c[_0x114342])&&(_0x29cd9a=(_0x42ece4?_0x5d6c94(_0x3811c3,_0x2dc173,_0x29cd9a):_0x5d6c94(_0x29cd9a))||_0x29cd9a);return _0x42ece4&&_0x29cd9a&&_0x39e4e1(_0x3811c3,_0x2dc173,_0x29cd9a),_0x29cd9a;},_0x65d44c=(_0x17466b,_0x3103e8)=>(_0x57fece,_0x440dff)=>_0x3103e8(_0x57fece,_0x440dff,_0x17466b);const _0x4b177e=_0x21d99b(0x4ae),_0x155196=_0x21d99b(0x243);_0x5b1653[_0x21d99b(0x346)]=class extends _0x184ab5[_0x21d99b(0x159)]{constructor(_0x46f850,_0x2f9889){const _0x5bbb19=_0x21d99b;super(),this[_0x5bbb19(0x177)]=_0x46f850,this['_configService']=_0x2f9889,this['_initMergeInterceptor']();}[_0x21d99b(0x196)](){const _0x471243=_0x21d99b,_0x5ef1da=this;this[_0x471243(0x4d7)](this[_0x471243(0x177)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x58aea2['MergeInterceptorFactory']({'isMatch'(_0x3e289f){const _0x2054ed=_0x471243;var _0x53c31c;if(_0x3e289f[_0x2054ed(0x115)]===_0x2054ed(0x10e)&&((_0x53c31c=_0x3e289f[_0x2054ed(0x171)])!=null&&_0x53c31c[_0x2054ed(0x16e)])){const {objectID:_0x1d7738,objectType:_0x6a370f}=_0x3e289f[_0x2054ed(0x171)][_0x2054ed(0x16e)]||{};if(!_0x1d7738||_0x6a370f===void 0x0)return!0x1;const _0x3a2c50=_0x5ef1da[_0x2054ed(0x39e)]()+'/'+_0x6a370f+_0x2054ed(0x1f7)+_0x1d7738+_0x2054ed(0x30e);if(_0x3e289f[_0x2054ed(0xa0)]===_0x3a2c50)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x52f5d4){const _0x1cbcd5=_0x471243;var _0x36a48f;return(_0x36a48f=_0x52f5d4[_0x1cbcd5(0x171)])==null?void 0x0:_0x36a48f['body'];},'mergeParamsToRequest'(_0x33bf8b,_0x12bc6b){const _0x405378=_0x471243,_0x5a0290=_0x5ef1da[_0x405378(0x39e)]()+_0x405378(0x175),_0x3bf29a=_0x33bf8b[_0x405378(0x3b4)]((_0x450097,_0x3295e3)=>{const _0x390bfe=_0x405378,{unitID:_0x20287f,objectID:_0x4bcd0e,objectType:_0x3f0ec7,actions:_0x20819c}=_0x3295e3;return _0x450097[_0x20287f]||(_0x450097[_0x20287f]={}),_0x450097[_0x20287f][_0x4bcd0e]||(_0x450097[_0x20287f][_0x4bcd0e]={'objectID':_0x4bcd0e,'objectType':_0x3f0ec7,'actions':[]}),_0x450097[_0x20287f][_0x4bcd0e][_0x390bfe(0x35e)][_0x390bfe(0x4bb)](..._0x20819c),_0x450097;},{}),_0x266532=[];for(const _0x543ac5 in _0x3bf29a)for(const _0x5ae859 in _0x3bf29a[_0x543ac5]){const {actions:_0x3e2be2,objectType:_0x1a1e29}=_0x3bf29a[_0x543ac5][_0x5ae859],_0x19ee54=[...new Set(_0x3e2be2)];_0x266532[_0x405378(0x4bb)]({'unitID':_0x543ac5,'objectID':_0x5ae859,'objectType':_0x1a1e29,'actions':_0x19ee54});}return new _0x58aea2[(_0x405378(0x4ac))](_0x405378(0x10e),_0x5a0290,{'headers':_0x12bc6b[_0x405378(0x452)],'withCredentials':_0x12bc6b[_0x405378(0x455)],'responseType':_0x12bc6b[_0x405378(0x122)],'body':{'requests':_0x266532}});}},{'distributeResult'(_0x369ab7,_0x32e92b){const {objectActions:_0x49074d}=_0x369ab7;return _0x32e92b['map'](_0x955d3d=>{const _0x5c1dc2=_0x5cee,{unitID:_0x272e09,objectID:_0x232688,actions:_0x530e34}=_0x955d3d,_0x146408=_0x49074d[_0x5c1dc2(0x1e4)](_0x56c34e=>_0x56c34e['unitID']===_0x272e09&&_0x56c34e[_0x5c1dc2(0x127)]===_0x232688),_0x23aa9d=_0x530e34[_0x5c1dc2(0x1fc)](_0x58c428=>_0x146408==null?void 0x0:_0x146408[_0x5c1dc2(0x35e)]['find'](_0x3df4ec=>_0x3df4ec[_0x5c1dc2(0x309)]===_0x58c428))[_0x5c1dc2(0x3a4)](_0x119aac=>!!_0x119aac);return{'config':_0x955d3d,'result':{'actions':_0x23aa9d,'error':_0x369ab7[_0x5c1dc2(0x102)]}};});}})}));}[_0x21d99b(0x39e)](){const _0x459e2c=_0x21d99b;var _0x468276,_0x3086ec;const _0x38fa9e=this[_0x459e2c(0x190)][_0x459e2c(0x1c3)](_0x4b177e),_0x10f0ef=this[_0x459e2c(0x190)][_0x459e2c(0x1c3)](_0x590185);return(_0x3086ec=(_0x468276=_0x10f0ef==null?void 0x0:_0x10f0ef[_0x459e2c(0x4cc)])!=null?_0x468276:_0x38fa9e)!=null?_0x3086ec:_0x155196;}async['create'](_0x5c40af){const _0x21f031=_0x21d99b,_0x44950a=this[_0x21f031(0x39e)]()+'/'+_0x5c40af[_0x21f031(0x295)]+_0x21f031(0x3fb);return(await this[_0x21f031(0x177)][_0x21f031(0x25a)](_0x44950a,{'body':_0x5c40af}))['body']['objectID']||'';}async[_0x21d99b(0x13f)](_0x1870de){const _0x1f553a=_0x21d99b,_0x4b90df=this[_0x1f553a(0x39e)]()+_0x1f553a(0x318);return(await this[_0x1f553a(0x177)][_0x1f553a(0x25a)](_0x4b90df,{'body':_0x1870de}))[_0x1f553a(0x16e)]['objects'];}async[_0x21d99b(0x34a)](_0x564912){const _0x4c379f=_0x21d99b,_0x315a49=this[_0x4c379f(0x39e)]()+'/'+_0x564912['objectType']+_0x4c379f(0x1f7)+_0x564912[_0x4c379f(0x127)];await this[_0x4c379f(0x177)]['put'](_0x315a49,{'body':_0x564912});}async['allowed'](_0x30093f){const _0x55653f=_0x21d99b,_0x5d7bee=this[_0x55653f(0x39e)]()+'/'+_0x30093f['objectType']+_0x55653f(0x1f7)+_0x30093f['objectID']+_0x55653f(0x30e);return(await this[_0x55653f(0x177)]['post'](_0x5d7bee,{'body':_0x30093f}))[_0x55653f(0x16e)][_0x55653f(0x35e)];}async[_0x21d99b(0x321)](_0xd9b616){const _0x6cde81=_0x21d99b,_0x2b4dc1=this[_0x6cde81(0x39e)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x6cde81(0x25a)](_0x2b4dc1,{'body':{'requests':_0xd9b616}}))[_0x6cde81(0x16e)]['objectActions'];}async['listRoles'](_0x342761){const _0x227ddb=_0x21d99b,_0x45968c=this[_0x227ddb(0x39e)]()+'/'+_0x342761['objectType']+_0x227ddb(0xc4),_0x40474b=await this[_0x227ddb(0x177)][_0x227ddb(0x25a)](_0x45968c,{'body':_0x342761});return{'roles':_0x40474b[_0x227ddb(0x16e)][_0x227ddb(0x3ab)],'actions':_0x40474b[_0x227ddb(0x16e)][_0x227ddb(0x35e)]};}async[_0x21d99b(0x2e3)](_0x1a96e2){const _0x48972b=_0x21d99b,_0x3082b4=this[_0x48972b(0x39e)]()+_0x48972b(0x351);await this[_0x48972b(0x177)]['delete'](_0x3082b4,{'params':{'collaboratorID':_0x1a96e2[_0x48972b(0x2b9)],'objectID':_0x1a96e2['objectID'],'unitID':_0x1a96e2[_0x48972b(0x211)]}});}async[_0x21d99b(0x23d)](_0x4f9456){const _0x5e682c=_0x21d99b,_0x41ec83=this[_0x5e682c(0x39e)]()+_0x5e682c(0x351);await this['_HTTPService']['patch'](_0x41ec83,{'body':_0x4f9456});}async['createCollaborator'](_0x1ac960){const _0xa62905=_0x21d99b,_0x1bd432=this[_0xa62905(0x39e)]()+'/collaborator';await this[_0xa62905(0x177)][_0xa62905(0x25a)](_0x1bd432,{'body':_0x1ac960});}async['listCollaborators'](_0x457c58){const _0x2e8c1f=_0x21d99b,_0x512ee1=this['_getAPIPrefixPath']()+_0x2e8c1f(0x351);return(await this[_0x2e8c1f(0x177)]['get'](_0x512ee1,{'params':{'objectID':_0x457c58[_0x2e8c1f(0x127)],'unitID':_0x457c58['unitID']}}))[_0x2e8c1f(0x16e)][_0x2e8c1f(0x117)];}async['putCollaborators'](_0x47c723){const _0x33b51d=_0x21d99b,_0x5ba02c=this[_0x33b51d(0x39e)]()+_0x33b51d(0x351);await this['_HTTPService'][_0x33b51d(0x1ef)](_0x5ba02c,{'body':_0x47c723});}},_0x5b1653['AuthzIoHttpService']=_0x22b3a6([_0x65d44c(0x0,_0x184ab5[_0x21d99b(0x441)](_0x58aea2[_0x21d99b(0xf3)])),_0x65d44c(0x1,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xda)]))],_0x5b1653[_0x21d99b(0x346)]);var _0x13590b=Object['defineProperty'],_0x39e4a2=Object[_0x21d99b(0x44e)],_0x13df75=(_0x541e2d,_0x41ac93,_0x574c21,_0x4d8611)=>{const _0x2b7b4c=_0x21d99b;for(var _0x4c97ed=_0x4d8611>0x1?void 0x0:_0x4d8611?_0x39e4a2(_0x41ac93,_0x574c21):_0x41ac93,_0x4269aa=_0x541e2d[_0x2b7b4c(0x1a9)]-0x1,_0x250ef3;_0x4269aa>=0x0;_0x4269aa--)(_0x250ef3=_0x541e2d[_0x4269aa])&&(_0x4c97ed=(_0x4d8611?_0x250ef3(_0x41ac93,_0x574c21,_0x4c97ed):_0x250ef3(_0x4c97ed))||_0x4c97ed);return _0x4d8611&&_0x4c97ed&&_0x13590b(_0x41ac93,_0x574c21,_0x4c97ed),_0x4c97ed;},_0x2a4c13=(_0x368dc1,_0x594a6d)=>(_0x2758cd,_0x4ec65e)=>_0x594a6d(_0x2758cd,_0x4ec65e,_0x368dc1);let _0x5a9f29=class{constructor(_0x271753){const _0x3134f7=_0x21d99b;this[_0x3134f7(0x42b)]=_0x271753,this[_0x3134f7(0x448)]();}[_0x21d99b(0x448)](){const _0x3cfb28=_0x21d99b;this[_0x3cfb28(0x42b)][_0x3cfb28(0x19b)]({'interceptor':(_0x25b090,_0x3c40bd)=>{const _0x501aa9=_0x3cfb28,_0xeaf29=_0x25b090[_0x501aa9(0x452)],_0x1078ab=_0x19d040[_0x501aa9(0x248)]();return _0x1078ab&&_0xeaf29['set'](_0x501aa9(0x428),_0x1078ab),_0x3c40bd(_0x25b090);}});}};_0x5a9f29=_0x13df75([_0x2a4c13(0x0,_0x184ab5[_0x21d99b(0x441)](_0x58aea2[_0x21d99b(0xf3)]))],_0x5a9f29);var _0x727860=Object[_0x21d99b(0x238)],_0x262155=Object[_0x21d99b(0x44e)],_0x2a6bb5=(_0x88d9ad,_0xd7b66a,_0x51ff49,_0x124d20)=>{const _0x2d4b4d=_0x21d99b;for(var _0x19f65d=_0x124d20>0x1?void 0x0:_0x124d20?_0x262155(_0xd7b66a,_0x51ff49):_0xd7b66a,_0x57817e=_0x88d9ad[_0x2d4b4d(0x1a9)]-0x1,_0x3dac4a;_0x57817e>=0x0;_0x57817e--)(_0x3dac4a=_0x88d9ad[_0x57817e])&&(_0x19f65d=(_0x124d20?_0x3dac4a(_0xd7b66a,_0x51ff49,_0x19f65d):_0x3dac4a(_0x19f65d))||_0x19f65d);return _0x124d20&&_0x19f65d&&_0x727860(_0xd7b66a,_0x51ff49,_0x19f65d),_0x19f65d;},_0x4590f8=(_0xdbb4a6,_0x2c75de)=>(_0x5d68ca,_0x26dd7f)=>_0x2c75de(_0x5d68ca,_0x26dd7f,_0xdbb4a6);const _0x17b635=['image/png','image/jpeg','image/jpg',_0x21d99b(0xf9),'image/bmp'],_0x2ba2ac=0x5*0x400*0x400,_0x5973cf=_0x21d99b(0x427),_0x43fbef=_0x21d99b(0x467),_0x32b0ce=_0x21d99b(0x129),_0x4800b4=_0x21d99b(0x155);_0x5b1653['ImageIoService']=class{constructor(_0x320698,_0x236bae,_0x2c2a3d){const _0x3a76fa=_0x21d99b;_0x45eb1c(this,_0x3a76fa(0x3ce),0x0),_0x45eb1c(this,_0x3a76fa(0x2da),new _0x547585['Subject']()),_0x45eb1c(this,_0x3a76fa(0x43b),this['_change$']),_0x45eb1c(this,_0x3a76fa(0xcc),new Map()),(this[_0x3a76fa(0x42b)]=_0x320698,this['_configService']=_0x236bae,this['_univerInstanceService']=_0x2c2a3d);}[_0x21d99b(0x21b)](_0x5b0015){const _0x358618=_0x21d99b;this['_waitCount']=_0x5b0015,this[_0x358618(0x2da)][_0x358618(0x8e)](_0x5b0015);}[_0x21d99b(0x203)](_0x352123,_0x5b7269){const _0x5f1014=_0x21d99b;if(_0x5b7269===_0x2f1058['ImageSourceType'][_0x5f1014(0x2fc)]){const _0xb67047=new Image();return _0xb67047[_0x5f1014(0x14c)]=_0x352123,_0xb67047;}return this['_imageSourceCache']['get'](_0x352123);}[_0x21d99b(0x48c)](_0x4d59ca,_0x3c3f92,_0x4025d2){const _0x333fb1=_0x21d99b;_0x3c3f92===_0x2f1058['ImageSourceType'][_0x333fb1(0x2fc)]||_0x4025d2==null||this['_imageSourceCache']['set'](_0x4d59ca,_0x4025d2);}async[_0x21d99b(0x3af)](_0x50a709){const _0x584fd8=_0x21d99b;try{const _0x4fdec7=this[_0x584fd8(0x13c)](this['_getSignURL'](),''+_0x50a709),_0x552957=(await this[_0x584fd8(0x42b)][_0x584fd8(0x281)](_0x4fdec7))['body'];if(_0x552957[_0x584fd8(0x102)]&&_0x552957[_0x584fd8(0x102)][_0x584fd8(0x125)]===_0x5c7846['OK']){const _0x4a1835=new URL(_0x552957[_0x584fd8(0xa0)],this['_getDownloadEndpointURL']())[_0x584fd8(0x4c1)]();return Promise[_0x584fd8(0x21e)](_0x4a1835);}return Promise['reject'](_0x552957[_0x584fd8(0x102)]);}catch(_0x1901b0){return Promise[_0x584fd8(0x279)](_0x1901b0);}}async[_0x21d99b(0x213)](_0x510edc){const _0x4dca40=_0x21d99b;let _0x4f09a5='';if(!_0x17b635[_0x4dca40(0x3dd)](_0x510edc[_0x4dca40(0x4c4)]))return this[_0x4dca40(0x40a)](),Promise['reject'](new Error(_0x2f1058[_0x4dca40(0x289)][_0x4dca40(0x450)]));if(_0x510edc[_0x4dca40(0x423)]>_0x2ba2ac)return this['_decreaseWaiting'](),Promise[_0x4dca40(0x279)](new Error(_0x2f1058[_0x4dca40(0x289)][_0x4dca40(0x35a)]));try{const _0x3828f8=new FormData();_0x3828f8[_0x4dca40(0x3f4)]('file',_0x510edc);const _0x39a2f0=this[_0x4dca40(0x2f6)][_0x4dca40(0x205)](),_0x56823d=_0x39a2f0==null?void 0x0:_0x39a2f0[_0x4dca40(0x18a)]();if(!_0x56823d)throw new Error(_0x4dca40(0x488));const _0x5cf0d6=this['_getUploadFileURL']()+_0x4dca40(0x210)+_0x510edc[_0x4dca40(0x423)][_0x4dca40(0x4c1)]()+_0x4dca40(0x25f)+_0x4ccc29['UnitEmbedded']+_0x4dca40(0x3d2)+encodeURIComponent(_0x56823d),_0x2d42b4=await(await fetch(_0x5cf0d6,{'method':_0x4dca40(0x10e),'body':_0x3828f8}))[_0x4dca40(0x240)]();if(typeof _0x2d42b4[_0x4dca40(0x291)]!=_0x4dca40(0x343))return this['_decreaseWaiting'](),Promise[_0x4dca40(0x279)](new Error(_0x2f1058['ImageUploadStatusType'][_0x4dca40(0x361)]));_0x4f09a5=_0x2d42b4[_0x4dca40(0x291)];}catch{return this[_0x4dca40(0x40a)](),Promise[_0x4dca40(0x279)](new Error(_0x2f1058[_0x4dca40(0x289)][_0x4dca40(0x361)]));}return new Promise((_0x457eaa,_0xd3c569)=>{const _0x462258=_0x4dca40,_0x30fca4=new FileReader();_0x30fca4[_0x462258(0x480)](_0x510edc),_0x30fca4[_0x462258(0x193)]=_0x16365c=>{const _0x4b42e3=_0x462258;var _0x5031df;const _0x7952a4=(_0x5031df=_0x16365c[_0x4b42e3(0x1ae)])==null?void 0x0:_0x5031df['result'];if(_0x7952a4==null){this[_0x4b42e3(0x40a)](),_0xd3c569(new Error(_0x2f1058[_0x4b42e3(0x289)]['ERROR_IMAGE']));return;}const _0x188d4b=_0x184ab5[_0x4b42e3(0x296)][_0x4b42e3(0x15f)](0x6);_0x457eaa({'imageId':_0x188d4b,'imageSourceType':_0x2f1058[_0x4b42e3(0x119)]['UUID'],'source':_0x4f09a5,'base64Cache':_0x7952a4,'status':_0x2f1058[_0x4b42e3(0x289)][_0x4b42e3(0x3ad)]}),this[_0x4b42e3(0x40a)]();};});}[_0x21d99b(0xa9)](){const _0x4b04b8=_0x21d99b;var _0x32d51a,_0x135fee;const _0x44c49b=this[_0x4b04b8(0x190)]['getConfig'](_0x5973cf),_0xad1647=this['_configService'][_0x4b04b8(0x1c3)](_0x590185);return(_0x135fee=(_0x32d51a=_0xad1647==null?void 0x0:_0xad1647['uploadFileServerUrl'])!=null?_0x32d51a:_0x44c49b)!=null?_0x135fee:_0x43fbef;}[_0x21d99b(0x3cc)](){const _0x50fce2=_0x21d99b;var _0x5a410d,_0x5e7218;const _0x203f07=this[_0x50fce2(0x190)][_0x50fce2(0x1c3)](_0x32b0ce),_0x1f4476=this['_configService'][_0x50fce2(0x1c3)](_0x590185);return(_0x5e7218=(_0x5a410d=_0x1f4476==null?void 0x0:_0x1f4476[_0x50fce2(0x2f9)])!=null?_0x5a410d:_0x203f07)!=null?_0x5e7218:_0x4800b4;}[_0x21d99b(0x2f5)](){const _0x2ef2d8=_0x21d99b;var _0x2339bd;const _0x5e7d81=this['_configService'][_0x2ef2d8(0x1c3)](_0x590185);return(_0x2339bd=_0x5e7d81==null?void 0x0:_0x5e7d81[_0x2ef2d8(0x301)])!=null?_0x2339bd:location[_0x2ef2d8(0x369)];}[_0x21d99b(0x13c)](_0x20a313,_0x8d126f){const _0x126940=_0x21d99b;return _0x20a313['replace'](_0x126940(0x3ca),_0x8d126f);}[_0x21d99b(0x40a)](){const _0x2808d6=_0x21d99b;this['_waitCount']-=0x1,this[_0x2808d6(0x2da)][_0x2808d6(0x8e)](this['_waitCount']);}},_0x5b1653[_0x21d99b(0x35f)]=_0x2a6bb5([_0x4590f8(0x0,_0x184ab5[_0x21d99b(0x441)](_0x58aea2['HTTPService'])),_0x4590f8(0x1,_0x184ab5[_0x21d99b(0xda)]),_0x4590f8(0x2,_0x184ab5[_0x21d99b(0x441)](_0x184ab5['IUniverInstanceService']))],_0x5b1653[_0x21d99b(0x35f)]);var _0x1431fe=Object[_0x21d99b(0x238)],_0x1eb2b4=Object[_0x21d99b(0x44e)],_0x52e6a9=(_0x347ded,_0x1f00e8,_0x161698,_0x3077b2)=>{const _0x145a07=_0x21d99b;for(var _0x2a7e81=_0x3077b2>0x1?void 0x0:_0x3077b2?_0x1eb2b4(_0x1f00e8,_0x161698):_0x1f00e8,_0x2b6e0d=_0x347ded[_0x145a07(0x1a9)]-0x1,_0x43407c;_0x2b6e0d>=0x0;_0x2b6e0d--)(_0x43407c=_0x347ded[_0x2b6e0d])&&(_0x2a7e81=(_0x3077b2?_0x43407c(_0x1f00e8,_0x161698,_0x2a7e81):_0x43407c(_0x2a7e81))||_0x2a7e81);return _0x3077b2&&_0x2a7e81&&_0x1431fe(_0x1f00e8,_0x161698,_0x2a7e81),_0x2a7e81;},_0xc4aa57=(_0x5ba8cf,_0x162314)=>(_0x2aa7b9,_0x378e90)=>_0x162314(_0x2aa7b9,_0x378e90,_0x5ba8cf);let _0x10533d=class extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(_0x117691,_0x22305a,_0x2c4395,_0xc1efe1,_0x4703f3){const _0x227e9a=_0x21d99b;super(),this['_injector']=_0x117691,this[_0x227e9a(0x2f6)]=_0x22305a,this[_0x227e9a(0x2d5)]=_0x2c4395,this[_0x227e9a(0x329)]=_0xc1efe1,this[_0x227e9a(0x8c)]=_0x4703f3,this[_0x227e9a(0x3d1)](),this[_0x227e9a(0xa8)]();}['_initCloseConn'](){const _0x1e0cd8=_0x21d99b,_0x45e7c7=async _0x5e0488=>{const _0x3fe2b4=_0x5cee;(await this[_0x3fe2b4(0x329)]['requireSession'](_0x5e0488))[_0x3fe2b4(0x4c5)][_0x3fe2b4(0x2a2)](_0x597698[_0x3fe2b4(0x3a4)](_0x292e11=>_0x292e11[_0x3fe2b4(0x30c)]===_0x1137f7['CollaborationEvent'][_0x3fe2b4(0x3f0)]),_0x597698['takeUntil'](this[_0x3fe2b4(0x482)]))[_0x3fe2b4(0x32b)](_0x5e005d=>{const _0x13373a=_0x3fe2b4,_0x1ce0ad=_0x5e005d,{reason:_0x2323a7}=_0x1ce0ad[_0x13373a(0x168)];this[_0x13373a(0x2a3)]['get'](_0x5b2266[_0x13373a(0x2f7)])[_0x13373a(0xc0)]({'type':_0x5ad17f[_0x13373a(0xfa)]['Error'],'content':this['_localeService']['t'](_0x13373a(0x30a))+'('+_0x2323a7+')'}),this[_0x13373a(0x2d5)][_0x13373a(0x479)](new _0x1b2dce[(_0x13373a(0x363))](_0x5e0488)['id'],!0x1),this[_0x13373a(0x329)][_0x13373a(0x148)](_0x5e0488);});};_0x547585[_0x1e0cd8(0x24a)](this[_0x1e0cd8(0x2f6)][_0x1e0cd8(0x108)](_0x184ab5[_0x1e0cd8(0x42f)][_0x1e0cd8(0xab)]),this['_univerInstanceService'][_0x1e0cd8(0x108)](_0x184ab5[_0x1e0cd8(0x42f)][_0x1e0cd8(0x49a)]))[_0x1e0cd8(0x2a2)](_0x597698[_0x1e0cd8(0x1fc)](_0x5e3b7b=>_0x5e3b7b[_0x1e0cd8(0x18a)]()),_0x597698[_0x1e0cd8(0x3a4)](_0x15843f=>!_0x184ab5[_0x1e0cd8(0x26c)](_0x15843f)),_0x597698[_0x1e0cd8(0x3df)](this[_0x1e0cd8(0x482)]))[_0x1e0cd8(0x32b)](_0x42dd8f=>{_0x45e7c7(_0x42dd8f);});}[_0x21d99b(0x3d1)](){const _0x46ebee=_0x21d99b,_0xf16eb7=async _0x521a9f=>{const _0x4a69df=_0x5cee;(await this[_0x4a69df(0x329)][_0x4a69df(0x118)](_0x521a9f))[_0x4a69df(0x4c5)][_0x4a69df(0x2a2)](_0x597698['filter'](_0xb34023=>_0xb34023['eventID']===_0x1137f7['CollaborationEvent'][_0x4a69df(0x364)]),_0x597698[_0x4a69df(0x3df)](this[_0x4a69df(0x482)]))[_0x4a69df(0x32b)](_0x18f106=>{const _0x14a514=_0x4a69df,_0x47ef75=_0x18f106,{objectId:_0x5e7ff2}=_0x47ef75['data'],_0x5580c8=this[_0x14a514(0x2a3)]['get'](_0x10073a[_0x14a514(0x3c0)]);_0x5e7ff2===_0x521a9f?_0x5580c8[_0x14a514(0x2d7)](_0x521a9f):_0x5580c8[_0x14a514(0x37b)](_0x521a9f,_0x5e7ff2);});};_0x547585['merge'](this[_0x46ebee(0x2f6)]['getTypeOfUnitAdded$'](_0x184ab5['UniverInstanceType'][_0x46ebee(0xab)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x184ab5[_0x46ebee(0x42f)][_0x46ebee(0x49a)]))[_0x46ebee(0x2a2)](_0x597698[_0x46ebee(0x1fc)](_0x4f52a2=>_0x4f52a2[_0x46ebee(0x18a)]()),_0x597698['filter'](_0x5868b8=>!_0x184ab5[_0x46ebee(0x26c)](_0x5868b8)),_0x597698[_0x46ebee(0x3df)](this[_0x46ebee(0x482)]))[_0x46ebee(0x32b)](_0x547090=>{_0xf16eb7(_0x547090);});}};_0x10533d=_0x52e6a9([_0xc4aa57(0x0,_0x184ab5['Inject'](_0x184ab5[_0x21d99b(0xad)])),_0xc4aa57(0x1,_0x184ab5['IUniverInstanceService']),_0xc4aa57(0x2,_0x184ab5[_0x21d99b(0x239)]),_0xc4aa57(0x3,_0x184ab5[_0x21d99b(0x441)](_0x5b1653['CollaborationSessionService'])),_0xc4aa57(0x4,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0x3e5)]))],_0x10533d);var _0x433a11=Object[_0x21d99b(0x238)],_0x180d8b=Object[_0x21d99b(0x44e)],_0x2e2c92=(_0x1eb781,_0x1c37fe,_0x472591,_0x260ef0)=>{const _0x3167c9=_0x21d99b;for(var _0x20af9b=_0x260ef0>0x1?void 0x0:_0x260ef0?_0x180d8b(_0x1c37fe,_0x472591):_0x1c37fe,_0x2c1c0b=_0x1eb781[_0x3167c9(0x1a9)]-0x1,_0x14297a;_0x2c1c0b>=0x0;_0x2c1c0b--)(_0x14297a=_0x1eb781[_0x2c1c0b])&&(_0x20af9b=(_0x260ef0?_0x14297a(_0x1c37fe,_0x472591,_0x20af9b):_0x14297a(_0x20af9b))||_0x20af9b);return _0x260ef0&&_0x20af9b&&_0x433a11(_0x1c37fe,_0x472591,_0x20af9b),_0x20af9b;},_0x1abf2f=(_0x21a4b3,_0x56beee)=>(_0x7d8995,_0x1ea6c7)=>_0x56beee(_0x7d8995,_0x1ea6c7,_0x21a4b3);_0x5b1653[_0x21d99b(0x198)]=class{constructor(_0x31536d,_0x390e38){const _0x481861=_0x21d99b;this[_0x481861(0x190)]=_0x31536d,this['_httpService']=_0x390e38;}async['getUnitOnRev'](_0x3eb402,_0x413130){const _0xf29e3e=_0x21d99b;var _0x13f1e6;const {unitID:_0x557c3d,type:_0x1570e0,revision:_0x3b00a5=0x0}=_0x413130,_0x5ddafc=this[_0xf29e3e(0x39d)]()+'/'+_0x1570e0+_0xf29e3e(0x3a7)+_0x557c3d+_0xf29e3e(0x3cf)+_0x3b00a5,_0x50eae3=(await this[_0xf29e3e(0x42b)][_0xf29e3e(0x281)](_0x5ddafc))['body'],_0x735721=(_0x13f1e6=_0x50eae3['snapshot'])==null?void 0x0:_0x13f1e6[_0xf29e3e(0x275)];if(_0x735721){const _0x52bf3e=_0x735721==null?void 0x0:_0x735721[_0xf29e3e(0x350)],_0xcee41a=_0x1137f7['textEncoder'][_0xf29e3e(0x9b)](_0x1137f7[_0xf29e3e(0x414)](_0x52bf3e));_0x735721[_0xf29e3e(0x350)]=_0xcee41a,Object[_0xf29e3e(0x475)](_0x735721[_0xf29e3e(0x325)])[_0xf29e3e(0x1fd)](([,_0x1ae971])=>{const _0x2f8c07=_0xf29e3e,_0xa61a7f=_0x1ae971[_0x2f8c07(0x350)],_0x4c3185=_0x1137f7['textEncoder'][_0x2f8c07(0x9b)](_0x1137f7[_0x2f8c07(0x414)](_0xa61a7f));_0x1ae971[_0x2f8c07(0x350)]=_0x4c3185;});}return _0x50eae3;}async[_0x21d99b(0x4a0)](_0x23bf7e,_0x2d2924){const _0x3b00d0=_0x21d99b,{unitID:_0x44b3f6,type:_0x55e16b,blockID:_0x10805d}=_0x2d2924,_0x2e1fd0=this[_0x3b00d0(0x1cb)]()+'/'+_0x55e16b+_0x3b00d0(0x3a7)+_0x44b3f6+_0x3b00d0(0x47f)+_0x10805d;return(await this[_0x3b00d0(0x42b)]['get'](_0x2e1fd0))[_0x3b00d0(0x16e)];}async['getDeserializedSheetBlock'](_0x2d3c2c,_0x291b14){const _0x52141e=_0x21d99b,{unitID:_0x314908,type:_0x5f2155,blockID:_0x165bdd}=_0x291b14,_0x64430c=this[_0x52141e(0x1cb)]()+'/block/'+_0x5f2155+_0x52141e(0x3a7)+_0x314908+'/block/'+_0x165bdd;return(await this['_httpService']['get'](_0x64430c))['body'];}async['fetchMissingChangesets'](_0x52ceba,_0x8845e8){const _0x5da28e=_0x21d99b,{unitID:_0x944748,type:_0x4b37a1,from:_0x1da68e,to:_0x169f05}=_0x8845e8,_0x126fc9=this[_0x5da28e(0x1cb)]()+'/'+_0x4b37a1+'/unit/'+_0x944748+_0x5da28e(0x409)+_0x1da68e+_0x5da28e(0xaa)+_0x169f05;return(await this[_0x5da28e(0x42b)][_0x5da28e(0x281)](_0x126fc9))[_0x5da28e(0x16e)];}[_0x21d99b(0x39d)](){const _0x2a5cdd=_0x21d99b;var _0x48d3ed;return(_0x48d3ed=this[_0x2a5cdd(0x190)][_0x2a5cdd(0x1c3)](_0x29f9b3))!=null?_0x48d3ed:this[_0x2a5cdd(0x1cb)]();}['_getAPIPrefix'](){const _0x22abfd=_0x21d99b;var _0x296e68,_0x53ed79;const _0x48a9dc=this['_configService']['getConfig'](_0x300440),_0x43408d=this[_0x22abfd(0x190)][_0x22abfd(0x1c3)](_0x590185);return(_0x53ed79=(_0x296e68=_0x43408d==null?void 0x0:_0x43408d[_0x22abfd(0x40d)])!=null?_0x296e68:_0x48a9dc)!=null?_0x53ed79:_0x481a7e;}async[_0x21d99b(0xdf)](_0x35cb31,_0x135f4b){const _0x11fdd1=_0x21d99b,_0x496bea=_0x11fdd1(0x20d)+_0x135f4b['type']+_0x11fdd1(0x3a7)+_0x135f4b['unitID']+_0x11fdd1(0xeb);return(await this[_0x11fdd1(0x42b)][_0x11fdd1(0x281)](_0x496bea,{'params':{'resourceId':JSON[_0x11fdd1(0x3d3)](_0x135f4b[_0x11fdd1(0x4cb)])}}))[_0x11fdd1(0x16e)];}[_0x21d99b(0x312)](){const _0xd21138=_0x21d99b;throw new Error(_0xd21138(0x8b));}[_0x21d99b(0x443)](){const _0x1aeabc=_0x21d99b;throw new Error(_0x1aeabc(0x8b));}[_0x21d99b(0x261)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x21d99b(0x3fc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x21d99b(0x485)](){const _0x3ee39a=_0x21d99b;throw new Error(_0x3ee39a(0x8b));}},_0x5b1653[_0x21d99b(0x198)]=_0x2e2c92([_0x1abf2f(0x0,_0x184ab5[_0x21d99b(0xda)]),_0x1abf2f(0x1,_0x184ab5['Inject'](_0x58aea2[_0x21d99b(0xf3)]))],_0x5b1653['SnapshotServerOverHTTPService']);var _0x121936=Object['defineProperty'],_0x57f4d9=Object[_0x21d99b(0x44e)],_0x414ef3=(_0x46bbcf,_0x504895,_0x404c1f,_0x4f630c)=>{for(var _0x2dc3bb=_0x4f630c>0x1?void 0x0:_0x4f630c?_0x57f4d9(_0x504895,_0x404c1f):_0x504895,_0x4f6543=_0x46bbcf['length']-0x1,_0x1d9624;_0x4f6543>=0x0;_0x4f6543--)(_0x1d9624=_0x46bbcf[_0x4f6543])&&(_0x2dc3bb=(_0x4f630c?_0x1d9624(_0x504895,_0x404c1f,_0x2dc3bb):_0x1d9624(_0x2dc3bb))||_0x2dc3bb);return _0x4f630c&&_0x2dc3bb&&_0x121936(_0x504895,_0x404c1f,_0x2dc3bb),_0x2dc3bb;},_0x123920=(_0x1422cd,_0x4fb7b0)=>(_0x27c7c8,_0x2a3f1e)=>_0x4fb7b0(_0x27c7c8,_0x2a3f1e,_0x1422cd);let _0x5690fa=class extends _0x184ab5[_0x21d99b(0xc9)]{constructor(_0xa76752,_0x3e8d1c,_0x34fd6a,_0x13c0af,_0x30a7ed){const _0x1f00b0=_0x21d99b;super(_0xa76752,_0x3e8d1c,_0x34fd6a),this['_transformService']=_0x13c0af,this[_0x1f00b0(0x167)]=_0x30a7ed;}['transformUndoRedo'](_0x3a9253,_0x33749f){const _0x1c2978=_0x21d99b,_0x5c5a0e=this[_0x1c2978(0x22f)](_0x3a9253);if(_0x5c5a0e)try{const _0x8ea8c2=this['_transformStack'](_0x5c5a0e,_0x33749f);this[_0x1c2978(0x20b)](_0x3a9253,_0x8ea8c2);}catch(_0x200008){this[_0x1c2978(0x167)][_0x1c2978(0x102)]('[CollaborationUndoRedoService]',_0x200008),this['_clearUndo'](_0x3a9253);}const _0x24b637=this[_0x1c2978(0x397)](_0x3a9253);if(_0x24b637)try{const _0x5b007e=this[_0x1c2978(0x1b6)](_0x24b637,_0x33749f);this[_0x1c2978(0x1d7)](_0x3a9253,_0x5b007e);}catch(_0xffc78e){this[_0x1c2978(0x167)][_0x1c2978(0x102)](_0xffc78e),this[_0x1c2978(0x430)](_0x3a9253);}}[_0x21d99b(0x3e1)](_0x52b5ed){const _0x3c7875=_0x21d99b,_0x51475e=this[_0x3c7875(0x22f)](_0x52b5ed);_0x51475e&&(_0x51475e[_0x3c7875(0x1a9)]=0x0,this[_0x3c7875(0xc2)]());}[_0x21d99b(0x430)](_0xd8f7be){const _0x5998d8=_0x21d99b,_0x24b265=this[_0x5998d8(0x397)](_0xd8f7be);_0x24b265&&(_0x24b265['length']=0x0,this['_updateStatus']());}[_0x21d99b(0x20b)](_0x599b6b,_0x203935){const _0x26cf0e=_0x21d99b;this[_0x26cf0e(0x218)][_0x26cf0e(0x109)](_0x599b6b,_0x203935),this[_0x26cf0e(0xc2)]();}[_0x21d99b(0x1d7)](_0x5d86f9,_0x36e721){const _0x19f2e4=_0x21d99b;this[_0x19f2e4(0x22b)][_0x19f2e4(0x109)](_0x5d86f9,_0x36e721),this['_updateStatus']();}[_0x21d99b(0x1b6)](_0x3271e6,_0x5733a4){const _0x530fb7=_0x21d99b,_0x299adc=[];let _0x333e04=_0x5733a4,_0x44b66c=_0x5733a4;for(let _0x15b797=_0x3271e6[_0x530fb7(0x1a9)]-0x1;_0x15b797>=0x0;_0x15b797--){const {unitID:_0x1b4f28,undoMutations:_0x3f81af,redoMutations:_0x1bd207}=_0x3271e6[_0x15b797],_0x40742c=this[_0x530fb7(0x25b)][_0x530fb7(0x335)](_0x333e04,_0x3f81af),_0x28015a=this[_0x530fb7(0x25b)][_0x530fb7(0x335)](_0x44b66c,_0x1bd207);if(_0x1137f7[_0x530fb7(0x462)](_0x40742c)||_0x1137f7[_0x530fb7(0x462)](_0x28015a)){this[_0x530fb7(0x167)][_0x530fb7(0x102)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x40742c,_0x28015a);break;}_0x333e04=_0x40742c[_0x530fb7(0xbb)],_0x44b66c=_0x28015a[_0x530fb7(0xbb)],_0x299adc[_0x530fb7(0x4bb)]({'unitID':_0x1b4f28,'undoMutations':_0x40742c[_0x530fb7(0xea)],'redoMutations':_0x28015a[_0x530fb7(0xea)]});}return _0x299adc[_0x530fb7(0x1f9)]();}};_0x5690fa=_0x414ef3([_0x123920(0x0,_0x184ab5[_0x21d99b(0x2a6)]),_0x123920(0x1,_0x184ab5[_0x21d99b(0x2bd)]),_0x123920(0x2,_0x184ab5[_0x21d99b(0x2cf)]),_0x123920(0x3,_0x1137f7['ITransformService']),_0x123920(0x4,_0x184ab5[_0x21d99b(0x1d3)])],_0x5690fa);class _0x1b6927 extends _0x184ab5[_0x21d99b(0x4a5)]{constructor(){const _0x1c9adc=_0x21d99b;super(),_0x45eb1c(this,_0x1c9adc(0x14a)),this[_0x1c9adc(0x14a)]=_0x547585[_0x1c9adc(0x157)](window,'popstate')['pipe'](_0x547585[_0x1c9adc(0x3df)](this[_0x1c9adc(0x482)]),_0x547585[_0x1c9adc(0x11d)](0x1),_0x547585['mapTo'](void 0x0));}['setParam'](_0x2e151d,_0x1fdd3c,_0x40ad2b=!0x1){const _0x3462d8=_0x21d99b,_0x11a2cf=new URL(window['location'][_0x3462d8(0x2a4)]);_0x11a2cf[_0x3462d8(0x2e8)]['set'](_0x2e151d,_0x1fdd3c),_0x40ad2b?window['history']['replaceState']('','',_0x11a2cf[_0x3462d8(0x4c1)]()):window[_0x3462d8(0x3e7)][_0x3462d8(0x1d0)]('','',_0x11a2cf['toString']());}['removeParam'](_0x51f4bc,_0x4d1d67=!0x1){const _0x536e55=_0x21d99b,_0x416a59=new URL(window[_0x536e55(0x4d8)][_0x536e55(0x2a4)]);_0x416a59['searchParams']['delete'](_0x51f4bc),_0x4d1d67?window['history'][_0x536e55(0x14e)]('','',_0x416a59[_0x536e55(0x4c1)]()):window[_0x536e55(0x3e7)][_0x536e55(0x1d0)]('','',_0x416a59[_0x536e55(0x4c1)]());}[_0x21d99b(0x18d)](_0x23343b){const _0x2ded42=_0x21d99b;var _0x48ff45;return(_0x48ff45=new URL(window[_0x2ded42(0x4d8)]['href'])['searchParams'][_0x2ded42(0x281)](_0x23343b))!=null?_0x48ff45:void 0x0;}}var _0x50b5b7=Object[_0x21d99b(0x238)],_0x17e697=Object[_0x21d99b(0x44e)],_0x4089e6=(_0x24417f,_0x47753c,_0x235a77)=>_0x47753c in _0x24417f?_0x50b5b7(_0x24417f,_0x47753c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x235a77}):_0x24417f[_0x47753c]=_0x235a77,_0x1ba59a=(_0x322b3a,_0x52d7a1,_0x5d3a62,_0xf18e39)=>{const _0xfed0ec=_0x21d99b;for(var _0x2172d2=_0xf18e39>0x1?void 0x0:_0xf18e39?_0x17e697(_0x52d7a1,_0x5d3a62):_0x52d7a1,_0x4fc17c=_0x322b3a[_0xfed0ec(0x1a9)]-0x1,_0x1ed4ae;_0x4fc17c>=0x0;_0x4fc17c--)(_0x1ed4ae=_0x322b3a[_0x4fc17c])&&(_0x2172d2=(_0xf18e39?_0x1ed4ae(_0x52d7a1,_0x5d3a62,_0x2172d2):_0x1ed4ae(_0x2172d2))||_0x2172d2);return _0xf18e39&&_0x2172d2&&_0x50b5b7(_0x52d7a1,_0x5d3a62,_0x2172d2),_0x2172d2;},_0x5e6863=(_0x2712bf,_0x56044f)=>(_0x57c631,_0x6d3aaa)=>_0x56044f(_0x57c631,_0x6d3aaa,_0x2712bf),_0xbe7049=(_0x28a218,_0x116b7b,_0x2f0906)=>_0x4089e6(_0x28a218,_0x116b7b+'',_0x2f0906);const _0xd3f4df=_0x21d99b(0x16d);_0x5b1653[_0x21d99b(0x1be)]=class extends _0x184ab5[_0x21d99b(0xc8)]{constructor(_0x1c4b6f=_0x2d549c,_0x17d4c7,_0x17a583,_0x5bd572,_0x19765f){const _0x35940b=_0x21d99b;super(),this[_0x35940b(0x332)]=_0x1c4b6f,this[_0x35940b(0x167)]=_0x17d4c7,this[_0x35940b(0x14b)]=_0x17a583,this[_0x35940b(0x2a3)]=_0x5bd572,this['_configService']=_0x19765f;const {..._0x47cc75}=this[_0x35940b(0x332)];this['_configService']['setConfig'](_0x590185,_0x47cc75);}[_0x21d99b(0x251)](){const _0x1bd9e6=_0x21d99b;this[_0x1bd9e6(0x2cc)](),_0x184ab5[_0x1bd9e6(0x17b)](this[_0x1bd9e6(0x2a3)],[[_0x1f8139],[_0x5b1653[_0x1bd9e6(0x436)]],[_0x10533d]]);}[_0x21d99b(0x331)](){const _0x2fa95d=_0x21d99b;_0x184ab5[_0x2fa95d(0x17b)](this[_0x2fa95d(0x2a3)],[[_0x3c7ed2]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x21d99b(0x2cc)](){const _0x58166b=_0x21d99b;var _0x31696e,_0xa87057,_0x32f43f,_0x2a7a97;this[_0x58166b(0x2a3)][_0x58166b(0x208)](_0x184ab5['IUndoRedoService'])&&this[_0x58166b(0x167)][_0x58166b(0x102)](_0x58166b(0x314),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x51a287=[[_0x184ab5['IUndoRedoService'],{'useClass':_0x5690fa}],[_0x5b1653[_0x58166b(0x24d)]],[_0xaaa02b],[_0x58aea2[_0x58166b(0xf3)]],[_0x421001,{'useClass':_0x1b6927}],[_0x3212c8],[_0x5b1653[_0x58166b(0x3a8)]],[_0x58aea2[_0x58166b(0x20c)]],[_0x324fc0],[_0x390046],[_0x11355a],[_0x295154],[_0x2be4f9],[_0x5a9f29],[_0x339a93],[_0x10533d],[_0x23eb1c,{'useClass':(_0xa87057=(_0x31696e=this['_config'])==null?void 0x0:_0x31696e[_0x58166b(0x11e)])!=null?_0xa87057:_0x5b1653[_0x58166b(0x496)]}],[_0x58aea2[_0x58166b(0x22d)],{'useClass':_0x58aea2[_0x58166b(0x2fe)]}],[_0x1137f7['ISnapshotServerService'],{'useClass':_0x5b1653['SnapshotServerOverHTTPService']}],[_0x184ab5[_0x58166b(0x46b)],{'useClass':_0x5b1653[_0x58166b(0x346)]}],[_0x2f1058[_0x58166b(0x4b9)],{'useClass':_0x5b1653[_0x58166b(0x35f)]}],[_0x5b1653['CollaborationController']],[_0x5b1653[_0x58166b(0x436)]],[_0x5b1653['DesktopCollaborationStatusDisplayController']],[_0x3c7ed2],[_0x1f8139]];(_0x32f43f=this[_0x58166b(0x332)])!=null&&_0x32f43f['enableSingleActiveInstanceLock']&&_0x51a287[_0x58166b(0x4bb)]([_0x59c3be,{'useClass':_0x238932}]),_0x51a287=_0x184ab5[_0x58166b(0x33a)](_0x51a287,(_0x2a7a97=this[_0x58166b(0x332)])==null?void 0x0:_0x2a7a97[_0x58166b(0x2a8)]),_0x51a287[_0x58166b(0x1fd)](_0x27e5c5=>this[_0x58166b(0x2a3)]['add'](_0x27e5c5)),this['_initModules']();}[_0x21d99b(0x39c)](){const _0x2f0130=_0x21d99b;this[_0x2f0130(0x4d7)](this[_0x2f0130(0x14b)][_0x2f0130(0x3c6)](_0x184ab5[_0x2f0130(0x42f)]['UNIVER_DOC'],[_0x33f43b])),this['disposeWithMe'](this[_0x2f0130(0x14b)][_0x2f0130(0x3c6)](_0x184ab5['UniverInstanceType'][_0x2f0130(0xab)],[_0x8887ee]));}['_initModules'](){const _0x3d8a4a=_0x21d99b;var _0x2aa274,_0x2645d9;this[_0x3d8a4a(0x2a3)][_0x3d8a4a(0x281)](_0x58aea2[_0x3d8a4a(0xf3)])[_0x3d8a4a(0x19b)]({'priority':0x14,'interceptor':_0x58aea2['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0x3d8a4a(0x281)](_0x5a9f29),(_0x2aa274=this[_0x3d8a4a(0x332)])!=null&&_0x2aa274['enableOfflineEditing']||this[_0x3d8a4a(0x2a3)][_0x3d8a4a(0x281)](_0x5b1653[_0x3d8a4a(0x3a8)])[_0x3d8a4a(0x252)](),(_0x2645d9=this[_0x3d8a4a(0x332)])!=null&&_0x2645d9[_0x3d8a4a(0x407)]&&this[_0x3d8a4a(0x2a3)][_0x3d8a4a(0x281)](_0x2be4f9),this[_0x3d8a4a(0x2a3)][_0x3d8a4a(0x281)](_0x5b1653[_0x3d8a4a(0x48b)]),this[_0x3d8a4a(0x2a3)][_0x3d8a4a(0x208)](_0x5b1653[_0x3d8a4a(0x2ec)])&&this['_injector'][_0x3d8a4a(0x281)](_0x5b1653['DesktopCollaborationStatusDisplayController']);}},_0xbe7049(_0x5b1653[_0x21d99b(0x1be)],'pluginName',_0xd3f4df),_0x5b1653[_0x21d99b(0x1be)]=_0x1ba59a([_0x184ab5[_0x21d99b(0x123)](_0x1137f7['UniverCollaborationPlugin']),_0x5e6863(0x1,_0x184ab5[_0x21d99b(0x1d3)]),_0x5e6863(0x2,_0x5cb457[_0x21d99b(0x103)]),_0x5e6863(0x3,_0x184ab5[_0x21d99b(0x441)](_0x184ab5[_0x21d99b(0xad)])),_0x5e6863(0x4,_0x184ab5[_0x21d99b(0xda)])],_0x5b1653[_0x21d99b(0x1be)]),_0x5b1653[_0x21d99b(0x4ae)]=_0x4b177e,_0x5b1653[_0x21d99b(0x19a)]=_0x482d2f,_0x5b1653[_0x21d99b(0x215)]=_0x51668f,_0x5b1653[_0x21d99b(0x36a)]=_0x37dd10,_0x5b1653[_0x21d99b(0x495)]=_0x16578b,_0x5b1653[_0x21d99b(0x276)]=_0x339a93,_0x5b1653[_0x21d99b(0x15e)]=_0x42a107,_0x5b1653['HEARTBEAT_TIMEOUT_KEY']=_0x30eec7,_0x5b1653[_0x21d99b(0x25c)]=_0x23eb1c,_0x5b1653[_0x21d99b(0x262)]=_0x421001,_0x5b1653[_0x21d99b(0x21f)]=_0x14211e,_0x5b1653['LOGIN_URL_KEY']=_0x47a94f,_0x5b1653[_0x21d99b(0x179)]=_0x56fa87,_0x5b1653[_0x21d99b(0x2b8)]=_0x3dfec9,_0x5b1653['SNAPSHOT_SERVER_URL_KEY']=_0x300440,_0x5b1653[_0x21d99b(0x1e0)]=_0x29f9b3,_0x5b1653[_0x21d99b(0x3fa)]=_0x382638,_0x5b1653[_0x21d99b(0x222)]=_0x66c992,_0x5b1653[_0x21d99b(0x411)]=_0x1b6927,_0x5b1653[_0x21d99b(0x31f)]=_0x568717,_0x5b1653[_0x21d99b(0x246)]=_0x58742f,Object[_0x21d99b(0x238)](_0x5b1653,Symbol[_0x21d99b(0x1c2)],{'value':_0x21d99b(0x3a9)});}));
1
+ function _0x104b(_0x2122b3,_0x268242){const _0xbff20d=_0xbff2();return _0x104b=function(_0x104bc7,_0x364e19){_0x104bc7=_0x104bc7-0xf7;let _0x4f26fc=_0xbff20d[_0x104bc7];return _0x4f26fc;},_0x104b(_0x2122b3,_0x268242);}function _0xbff2(){const _0x4a46ea=['_syncEditingCollabCursorService','ERROR_IMAGE_TYPE','[CollaborationEntity]','ranges','subUnitId','UserManagerService','getAncestorScale','useObservable','/universer-api/authz','_shouldReportTelemetry','result','EXCHANGE_SIGN_URL_SERVER_URL_KEY','DependentOn','_retryConnectingTimer','_incrementRevisionNumber','column','0\x200\x2017\x2016','_colorIndex','red300','getActiveRange','_docTransformSelectionsService','IBeforeCloseService','LOCAL_CACHE_INTERVAL_KEY','post','_setupSubUnitSync','89221vvSrUU','forEach','transform','_cursorInfo$','RevisionService','UniverDocsUi','SetWorksheetActivateCommand','_getAnchorBounding','UNIVER_PROJECT','SheetsSelectionsService','snapshotServerUrl','exhaustSavingTask','sheetID','/block/','APPLY_NON_SEQUENTIAL_REVISION','executeCommand','getUnitStatus$','replace','indexOf','close','pipe','collabWebSocketUrl','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','hovered','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','initWorkbookPermissionChange','unitId\x20is\x20not\x20found','unshift','PERMISSION_REJ','ENSURE_SNAPSHOT_EXECUTION','cmd','YUUMI_URL_COL_OUT_OF_RANGE','ALREADY_EXISTS','[CollaborationSessionService]:\x20socket\x20error','UniverSheets','LIVESHARE_TERMINATE','localeService','isActive','_lockTransition','PERMISSION_DENIED','MessageType','RETRY_CONNECTING_MAX_COUNT_KEY','generateRandomId','findNodePositionByCharIndex','_init','HEARTBEAT_INTERVAL_KEY','take','session.room-full','touchDependencies','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformSelections','_beforeCloseService','isTransformChangesetsSuccess','IRenderManagerService','_sheetSkeletonManagerService','onRemoteRej','_revisionService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','session','currentTheme$','_pendingMutations','action','_onRefRangeChange','_loadSheet','currentColor','_disableEditing','_undoRedoService','registerRefRange','[SyncedState]:\x20received\x20acknowledgement.','svg','connection\x20error','Rect','Plugin','LIVESHARE_OPERATION','onTransformSelections','@univerjs/design','UniverCollaborationClientPlugin','UniverLicense','LIVESHARE_REQUEST_HOST','_listenToOfflineEvent','CHANGESET_SHOULD_RETRY','2046919mqgKlf','getCollabEntity','_shapes','_context','disposeUnit','subunit','memberID','switchMap','distinctUntilChanged','catch','subscribeEvent','concat','onload','_sessionStatus$','_entities','getUnitType','getCollabEntity$','restore','TOO_MANY_REQUESTS','_telemetryInfo','_clearCollaborationTimeoutTimer','clearTimeout','getItem','_clearOtherTimers','error$','@univerjs/docs-ui','getImageSourceCache','UNIVER_SLIDE','_onFetchMissResult','fetchThroughInterceptors','div','?url=','replaceState','push','registerBeforeClose','_sendHeartbeatTimer','cursorInfo','@univerjs/sheets-ui','pushState','getFocusedUnit','stopTime','_retryCount','status$','assignAColorForMemberID','closeSession','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]','prototype','_clearScheduledTask','_selfUnitIDs','createElement','with','collaborators','CommentService','FETCH_MISSING','_onCursorUpdate','roomInfos','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','UniverInstanceType','_isPermissionRej','_rescheduleHeartbeat','routeKey','_onRecvEvent','DocSelectionManagerService','#fff','1em','updateCollaborator','mutations','_registerDependencies','selection','map','POST','saveOfflineData','_type','ImageSourceType','hide','getUnitOnRev','SNAPSHOT_URL_KEY','setShapeProps','image/png','_startSheetCollabCursor','unitId','_transformUndoRedoStack','transformSelections','Optional','_getDownloadEndpointURL','_clearLocalCache','substring','_urlService','getSheetBySheetId','getCoordByCell','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','attrs','startsWith','awaiting_with_pending','addEventListener','sendChangesetTimeout','onSendChangeset','SetDocZoomRatioOperation','ILogService','_drawTextRange','_localStorageService','reverse','_anchorDot','entries','headers','_candidateSocket','/rev/','objectType','handleInsertRangeMoveRight','getSheetObject','conflict','loadOfflineData','_getSignURL','commentUpdate$','ERROR_EXCEED_SIZE','_initModules','NOT_FOUND','@univerjs-pro/collaboration','fromEvent','INotificationService','hasOwnProperty','loginUrlKey','_logService','defIds','append','MergeInterceptorFactory','setShowComponents','c2Prime','@univerjs/rpc','data','_sendingTimer','_collabCursorController','clear','\x20to\x20','fillRule','_collabCursorState$','getOwnPropertyDescriptor','members','_updateState','@univerjs/engine-render','setActiveRange','SEND_CHANGESET_TIMEOUT_KEY','apply','Univer','_onRemoteRejected','getSheetId','UNIVER_UNKNOWN','propertyIsEnumerable','pending','AWAITING','unsubscribe','_updateLocalCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','TEXT','transformChangesets','SheetSkeletonManagerService','_event$','string','call','ThemeService','deserializeRangeWithSheet','UNRECOGNIZED','_color','measureText','Inject','getColor','open$','_commandService','UniverCollaborationPlugin','json','Error','endColumn','_onJoinRoomEvent','resend','updateOfflineData','_onLocalMutation','_userManagerService','[OfflineState]:\x20received\x20acknowledgement.','LOGIN_URL_KEY','/universer-api/snapshot','CONNECTOR_DATA_TOO_LARGE','setAlpha','InsertSheetMutation','fetch_missing','SnapshotServerOverHTTPService','_sender','duration','beginPath','replaceTextRanges','8jKTklT','_onConflict','COLORS','[OfflineState]:\x20received\x20changeset.','_localCacheService','?size=','_getCtorByUniverType','some','shareReplay','_updateSubUnitFromURLParams','put','COMPLETION_FINISHED','OFFLINE','_onUserJoin','_handleEvent','UNKNOWN_CMD','ONLINE','Subject','LICENSE_EXPORT_SIZE_EXCEEDED','length','onRemoteRetry','_syncEditingCollabCursor','requestParams','Disposable','UUID','_unlockTransition','_collabSessionService','BuiltInUIPart','IPermissionService','objectActions','name','IContextService','handleInsertRangeMoveDown','synced','IDLE','SNAPSHOT_SERVER_URL_KEY','_clearTimeoutTimer','UNIVER_COLLABORATION_CLIENT_PLUGIN','IAuthzIoService','_drawAnchor','enableAuthServer','LocaleService','APPLY_PERMISSION_DENIED','_hover','fromEventSubject','addImageSourceCache','COMMENT_UPDATE','url(#off-line-single_clip0_910_343)','SessionStatus','closePath','/object','ThresholdInterceptorFactory','getCurrent','rng','LEAVE','SYNCED','onMissingChangesets','Undefined','SheetCollaborationEntity','reqId','getSkeleton','useRef','_scheduleHeartbeat','roomMembers','_memberService','getUniverSheetInstance','target','_renderManagerService','_disabled','_onMessage','RECV','loadDoc','dispose','authzUrl','TEXT_RANGE_LAYER_INDEX','add','getDeserializedSheetBlock','CompressMutationService','_unitStatus','resourceIDs','_socket$','APPLY_REVISION_CONFILICT','267tLQMFp','PSEUDO_FETCH_MISSING_RESULT','/-/object/-/batch_allowed','/object/','assign','visibilitychange','getMergeData','onMouseMove','removeMember','combineLatest','onTransformIME','image/jpeg','_scheduleSaving','idSuffix','@univerjs/network','asObservable','rgba(255,\x20255,\x20255,\x200.01)','defs','_toggleOffline','@univerjs/drawing','serializeRangeWithSheet','UniverIcon','M0\x200H16V16H0z','_initStatusComponent','_collaborationPaused','createSocket','mergeOverrideWithDependencies','includes','rxjs','_scene','_ws','activeSheet$','onlineStatus','body','FileId','VIEWPORT_KEY','number','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UnitEmbedded','_assignedColors','_changesetReqId','toString','_exhaustRemoteChangesetQueue','isTransformMutationsWithChangesetSuccess','_tryEnsureSocket','RxDisposable','LocalUndoRedoService','243zrNxPj','RETRY_CONNECTING_MAX_COUNT','deepClone','getRoom','BASE64','setCurrentUser','setUndoRedoMutationParamsCache','MUTATION','NEW_CHANGESETS','throttleTime','_getUndoStack','{fileID}','_transformIMECache','textRanges','CollaborationStatus','AWAITING_WITH_PENDING','transformMutation','onReady','transformRemoteChangeset','HTTPRequest','deleteCollaborator','_hovered','UNDEFINED','isEditing','IHTTPImplementation','_cursors','rev','updatePermissionObjEvent','XHRHTTPImplementation','getRenderById','YUUMI_UNABLE_LOAD_URL','registerRenderModule','UniverCore','_onConnectionOpen','dispose$','HEARTBEAT_TIMEOUT_KEY','collaboration.closeRoom','CollaborationSessionService','LIVESHARE_FETCH_OPERATIONS','/universer-api/oidc/authpage','[OfflineState]:\x20received\x20rejection.','_univerInstanceService','&assign=','USERS_ENTER','_injector','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','MSG_FOR_ERROR','location','ImageUploadStatusType','actions','searchParams','row','_resendTimeout','userID','ws://127.0.0.1:8000/universer-api/comb/connect','getActiveSheet','_registerRenderDependencies','getOffsetConfig','onRemoteChangeset','_createInitialStateImpl','displayName','collabStatus.offline','SUBMIT_CHANGESET','csRejEvent','round','react','_scheduleTimestamp','IUndoRedoService','_roomMembers','_hideTimer','UniverRpc','lineTo','title','none','498556RPHspx','handleIRemoveCol','urlChange$','JOINING','m1Prime','collaMsg','endRow','disposeWithMe','@univerjs/docs','collab-rect-range-','_clearUndo','sequenceExecute','_removeCollabCursors','OnLineSingle','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','copyFileMeta','reduce','_members','InsertRangeMoveRightCommandId','ITransformService','getUnhiddenWorksheets','icon','SEND_CHANGESET_TIMEOUT','_docSkeletonManagerService','collabSubmitChangesetUrl','joinRsp','listCollaborators','onStateChange','CommandType','sid','transformUndoRedo','selections','_onCombEvent','/unit/','_messageService','_eventUnsubscribe','_http','from','[DataLoaderController]','params','_getAPIPrefix','history','patch','_transitionLocked','code','_snapshotServerService','_instanceService','onSyncEditingCollabCursor','next','handleInsertRow','getMember','CollaborationEvent','UPDATE_CURSOR','drawWith','Rectangle','_initCloseConn','_render','getMemberID','parse','129660swlLKw','newCsEvent','collaboration-client.offline-data-not-saved','on-line-single','getCurrentRevOfUnit','delay','_collaborationSessionService','_refreshCollabCursors','_getLoginPath','bottom','univer-online-status-title','_docStateChangeManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','DataLoaderController','_transformService','override','CONFLICT','_drawRectRange','type','WorkbookEditablePermission','_checkMissing','342uDXAsF','permissionRejEvent','JSONX','onMissedChangesetFetched','_themeService','EmptyMutation','INTERNAL_ERROR','#FFF','NO_OTHER_CLIENTS_EDITING','get','DEFAULT_FILE_NAME','file','_lastPointer','online','_transformStack','_queuedRemoteChangesets','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','commentUpdateEvent','YUUMI_RATE_OVER_LIMIT','updatePermissionPoint','_getSaveTimeout','_httpService','_resendTimer','_waitCount','_snapshotService','backgroundColor','filter','_handler','setItem','newValue','Workbook','merge','univer-online','getUnit','subscribe','roomMembers$','collab-text-range-','getLatestCsReqIdBySid','downloadEndpointUrl','_unitID','defineProperty','_getSnapshotAPIPrefix','_HTTPService','toDisposable','COMPRESS_MUTATION_SEND','JOIN','set','_docTransformIMECacheService','tag','hidden','\x0aAfter:\x20','_createInitialState','_updateURLWithCurrentState','HTTPService','@univerjs-pro/license','CHANGESET_ACK','PENDING','socket\x20open.','_clearHeartbeatTimer','@univerjs/telemetry','delete','_startTelemetryCollaborationNewChangeset','SnapshotService','_applyRemoteChangeset','Injector','exports','origin','LICENSE_MAX_UNITS_EXCEEDED','_cursor','IUniverInstanceService','_onOffline','_document','NOT_COLLAB','_createHandler','RECT','_send','getResourcesRequest','trim','uploadFileServerUrl','objectID','amd','getCurrentUser','SUCCUSS','getVpScrollXYInfoByPosToVp','_id','liveShareOperation','_remoteChangesetQueue','colorChannel1','ICommandService','font','_singleActiveUnitService','isPermissionRej','univer-pro.collaboration-client.single-active-unit-service','[CollaborationState]:\x20apply\x20error!','_cursorShapes','INVALID_ARGUMENT','_substituteRedoStack','mapDocumentTypeToUniverType','IConfigService','createCollaborator','getAttachHeader','onTransformRemoteChangesetByIMECache','_initCommandExecutedListener','\x20-\x20','SNAPSHOT_INVALID_SNAPSHOT','signUrlServerUrl','transformByState','toStringTag','collabCursorState$','...','createIdentifier','InsertRowCommandId','onlyLocal','state$','SheetCollabCursorShape','onlineStatusIcon','_undoStacks','baseRev','awaitingChangeset','message$','CollaborationController','debug','/role','_online','DOC_RANGE_TYPE','className','loadSheet','requireSession','sheetId','compose','_state','UniverEngineRender','syncEditingCollabCursor','_joinRoom','_updateCollabCursors','VIEW_MAIN','saveSheetBlock','DocSkeletonManagerService','_removeRoom','COLLAB_WEB_SOCKET_URL_KEY','_refRangeService','close$','_updateLocalCursor','_scheduleClearOtherTimer','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','collaboratorID','path','getTypeOfUnitDisposed$','AUTHZ_URL_KEY','INGEST','disableLocalCache','getConfig','/allowed','debounceTime','_initMergeInterceptor','isInternalEditorID','RemoveColCommandId','handleDeleteRangeMoveLeft','unknown','_changesetSessionId','storage','_sendHeartbeat','_compressMutationService','getParam','_setupBeforeClosingHandler','COMPRESS_MUTATION_APPLY','socket$','transformMutationsWithChangeset','_commentUpdate$','/new_changes','_ensureSubject','m2Prime','collaboration.single-unit.warning','url','FromArray','_getAPIPrefixPath','_colorAssignService','now','IUIPartsService','_collaborationController','confirm','getRandomValues','_onRemoteChangeset','getOwnPropertySymbols','onPointerMove$','MoveRangeCommandId','conflict.title','_updateStatus','show','isTransformMutationFailure','SHOULD_CLOSE_CONN','UniverDocs','_telemetryService','_uiPartsService','fill','/universer-api/snapshot/','_range','status','fillStyle','onStarting','_sessions','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_stopTelemetryCollaborationNewChangeset','getRelativeToViewportCoord','takeUntil','shouldCloseConn','updateMember','off-line-single','_fetchMissChangesets','HttpImport','_getMergeRange','@univerjs/core','split','HEARTBEAT','allowed','contains','black','_state$','UniverDrawing','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','COLLAB_SUBMIT_CHANGESET_URL','text','failed\x20to\x20apply\x20missed\x20changesets!','ITelemetryService','resize','onCommentUpdate','DocCollaborationEntity','_awaitingChangeset','makeDirty','pauseCollaboration','jiqing500','arc','socketService','src','DesktopCollaborationStatusDisplayController','toRgbString','telemetry\x20info\x20is\x20not\x20initialized','_handleHover','min','RefRangeService','LIVESHARE_NEW_HOST','onTransformChange$','_collaborationTimeoutTimer','appendMutation','href','deserializeToCombResponse','setTimeout','APPLY_DUPLICATED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_config','getCurrentUnitForType','_docSkeleton','_resendWithTimeout','saveSnapshot','_redoStacks','BehaviorSubject','sessionStatus$','LOCAL_CACHE_INTERVAL','_substituteUndoStack','event$','_initUnitPermissionChange','_onRemoteACK','doc.mutation.rich-text-editing','univer-offline','AuthzIoHttpService','interceptor','reconnect','init','_permissionService','getTypeOfUnitAdded$','_commentService','handleInsertCol','randomUUID','Unknown\x20user','current','toggleOffline','addObject','collab-text-anchor-','cursorInfo$','_unitOnClients','_status$','_anchor','IRemoteInstanceService','encode','max','_throwTelemetryCollaborationNewChangeset','_onCursorDelete','getUnitId','COLLAB_SUBMIT_CHANGESET_URL_KEY','RichTextEditingMutation','_transformPreviousActiveRange','editing\x20status\x20changed\x20to','_transformRemoteChangesetByIMECache','collabStatus.synced','focused$','_saveTaskMap','_getRedoStack','permission.title','getTime','offline','send','editingUnit','_entityInit$','FAIL','LICENSE_IMPORT_SIZE_EXCEEDED','_showConflictNotification','getInterceptPoints','setConfig','_tryReconnect','collabStatus.syncing','capture','values','_socketMessageSubscription','removeParam','_replaceFileID','NodePositionConvertToRectRange','getWorkbookSelections','originalMeta','getCurrentSelections','blue400','[SyncedState]:\x20received\x20rejection.','_scheduleCollaborationTimeoutTimer','_sheetTransformSelectionsService','color','UNIVER_DOC','top','onPointerLeave$','UNIVER_SHEET','has','registerComponent','moveTo','stringify','Warning','sessionStatus','CollaborationSession','FETCH_MISS','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','extend','then','HELLO','_saveCache','_backgroundColor','_executeRemoteChangeset','_handleLeaveEvent','_loadDoc','height','WebSocketService','fetchMiss','_handleJoinEvent','_draw','pluginName','_configService','csShouldRetryEvent','isArray','xlink:href','30230XCGVLQ','csAckEvent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_getSheetObject','getRangePointData','RegularPolygon','InsertRangeMoveDownCommandId','awaiting','LocalCacheService','_roomMembers$','on-line-single_clip0_910_349','OTHER_CLIENTS_EDITING','_listenToOnlineEvent','ColorKit','UnitSnapshot','batchAllowed','popstate','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','leaveEvent','off-line-single_clip0_910_343','size','ReplaySubject','USERS_LEAVE','Shape','DocIMEInputManagerService','UNKNOWN_CODE','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','setParam','_timeoutTimer','_docSyncEditingCollabCursorService','_notificationService','url(#$1','univerjs-icon\x20univerjs-icon-','toggleOnline','triggerDblclick','HttpExport','transformIMECache','_removeClearOtherTimer','_imageSourceCache','_textBubble','unit-cache-','saveImage','_socket','find','enableSingleActiveInstanceLock','rxjs/operators','registerHTTPInterceptor','slice','SetSelectionsOperation','YUUMI_SUBSCRIPTION_NOT_FOUND','serializeCombRequest','_acknowledgedAwaitingChangeset','UniverDesign','ERROR_IMAGE','transformStack\x20failed!','APPLY_REJECT','_replayCachedMutations','onCommandExecuted','_onRemoteRetry','/collaborator','startRow','permission.content','skeleton','CollaborationEntity','collaboration-client.config','/universer-api/stream/file/upload','@univerjs/ui','submit\x20changeset\x20error!','onlineStatusTitle','fetchMissingChangesets','ILocalStorageService','getCollabCursors$','every','clipPath','_localeService','\x0aCurrent:\x20','width','onRemoteAck','CHANGESET_REVISION_CONFILICT','session.will-retry','DisposableCollection','[FetchMissState]','EffectRefRangId','25156QiIKzc','WebURLService','responseType','function','LICENSE_DISTRO_REJECTED','conflict.content','clearInterval','getSheetBlock','10566512nJLHZR','fillText','_heartbeatTimer','&source=','collaboration-session-retry','revision','flatMap','_onConnectionFailed','collabStatus.fetchMiss','retryConnectingInterval','putCollaborators','debounce','_startCollaboration','_getUploadFileURL','_initRequestHeader','createInstance','\x20in\x20_schedule.','textEncoder','random','onPointerEnter$','_labelPosition','_name','error','TRANSFORM_CHANGE_OBSERVABLE_TYPE','startColumn','COLLAB_WEB_SOCKET_URL','mapTo','reject','Tools','IMessageService','_submitChangeset','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getDocRanges','_initStatusListener','CollaborationSocketService','image/gif','useDependency','getImage','_session','object','SNAPSHOT_HAS_BEEN_REMOVED','IURLService','DocStateChangeManagerService','_socketReady','ISnapshotServerService','children','univer-online-status-icon','[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.','_cachedData','_getSendChangesetTimeout','MemberService','range','unitID','_change$','c1Prime','_toggleOnline','_decreaseWaiting','UPDATE_PERMISSION_OBJ','evenodd','getValue','ImageIoService','unit','_getScale','incrementRevOfUnit','roles','_initEventListeners','uni.network.url-service','_schedule','startTime','_handleHeartbeatEvent','complete','NodePositionConvertToCursor','eventID','currentSkeleton$','session.connection-failed'];_0xbff2=function(){return _0x4a46ea;};return _0xbff2();}(function(_0x1fb65d,_0x2310bb){const _0x4da5fb=_0x104b,_0x24a6f8=_0x1fb65d();while(!![]){try{const _0x5afa2d=-parseInt(_0x4da5fb(0x3b6))/0x1+-parseInt(_0x4da5fb(0x144))/0x2+-parseInt(_0x4da5fb(0x517))/0x3*(parseInt(_0x4da5fb(0x34a))/0x4)+-parseInt(_0x4da5fb(0x2f7))/0x5*(-parseInt(_0x4da5fb(0x194))/0x6)+parseInt(_0x4da5fb(0x407))/0x7*(-parseInt(_0x4da5fb(0x4c5))/0x8)+-parseInt(_0x4da5fb(0xfa))/0x9*(-parseInt(_0x4da5fb(0x17f))/0xa)+parseInt(_0x4da5fb(0x352))/0xb;if(_0x5afa2d===_0x2310bb)break;else _0x24a6f8['push'](_0x24a6f8['shift']());}catch(_0x36a750){_0x24a6f8['push'](_0x24a6f8['shift']());}}}(_0xbff2,0x71713),function(_0xc4a269,_0x629c67){const _0x415de0=_0x104b;typeof exports=='object'&&typeof module<'u'?_0x629c67(exports,require('@univerjs/core'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('@univerjs/ui'),require(_0x415de0(0x525)),require('@univerjs-pro/collaboration'),require(_0x415de0(0x1cf)),require(_0x415de0(0x420)),require('@univerjs/sheets'),require(_0x415de0(0x493)),require('@univerjs/docs'),require(_0x415de0(0x52a)),require('@univerjs/engine-formula'),require(_0x415de0(0x42c)),require(_0x415de0(0x13b)),require(_0x415de0(0x488)),require(_0x415de0(0x1ca))):typeof define==_0x415de0(0x34d)&&define[_0x415de0(0x1e4)]?define([_0x415de0(0x1d5),_0x415de0(0x267),_0x415de0(0x533),_0x415de0(0x324),_0x415de0(0x401),_0x415de0(0x339),'@univerjs/network',_0x415de0(0x47d),_0x415de0(0x1cf),_0x415de0(0x420),'@univerjs/sheets',_0x415de0(0x493),_0x415de0(0x14c),'@univerjs/drawing','@univerjs/engine-formula','@univerjs/sheets-ui','react',_0x415de0(0x488),_0x415de0(0x1ca)],_0x629c67):(_0xc4a269=typeof globalThis<'u'?globalThis:_0xc4a269||self,_0x629c67(_0xc4a269['UniverCollaborationClient']={},_0xc4a269[_0x415de0(0x11a)],_0xc4a269[_0x415de0(0x533)],_0xc4a269['rxjs']['operators'],_0xc4a269[_0x415de0(0x32b)],_0xc4a269['UniverUi'],_0xc4a269['UniverNetwork'],_0xc4a269['UniverCollaboration'],_0xc4a269['UniverTelemetry'],_0xc4a269[_0x415de0(0x3bb)],_0xc4a269[_0x415de0(0x3d8)],_0xc4a269[_0x415de0(0x217)],_0xc4a269[_0x415de0(0x253)],_0xc4a269[_0x415de0(0x26e)],_0xc4a269['UniverEngineFormula'],_0xc4a269['UniverSheetsUi'],_0xc4a269['React'],_0xc4a269[_0x415de0(0x140)],_0xc4a269[_0x415de0(0x403)]));}(this,function(_0x3b52c4,_0x58b389,_0x4655d9,_0x5d8a56,_0x145b31,_0x4d3c2b,_0x57b255,_0x5e5ab1,_0x41321d,_0x24db92,_0x2d2223,_0x1c7683,_0x124506,_0x1031ad,_0x4be577,_0x85ae1c,_0x4bfab6,_0x2df961,_0x278106){'use strict';const _0xb893b1=_0x104b;var _0x23760a=Object['defineProperty'],_0x338c1d=(_0x1f5507,_0x5b4aa6,_0x24ad37)=>_0x5b4aa6 in _0x1f5507?_0x23760a(_0x1f5507,_0x5b4aa6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ad37}):_0x1f5507[_0x5b4aa6]=_0x24ad37,_0xf1fe43=(_0x2e0c54,_0x144ba0,_0x5f3932)=>_0x338c1d(_0x2e0c54,typeof _0x144ba0!='symbol'?_0x144ba0+'':_0x144ba0,_0x5f3932);const _0x408d14=_0xb893b1(0x4e8),_0xa386f8=_0xb893b1(0x4bb),_0x1b06ee=_0xb893b1(0x454),_0x4e1696=_0xb893b1(0x15a),_0x4766f5=_0xb893b1(0x36b),_0x5b23cf=_0xb893b1(0x130),_0x407e6e='HEARTBEAT_INTERVAL',_0x3ceb27='HEARTBEAT_TIMEOUT',_0x1f388f=_0xb893b1(0xfb),_0x2c3e4f=_0xb893b1(0x295),_0x8b953d=_0xb893b1(0x270),_0x4889a4='/universer-api/comb',_0x42bb89=_0xb893b1(0x4ba),_0x3aa700=_0xb893b1(0x121);var _0x423190=(_0x3cfe32=>(_0x3cfe32[_0x3cfe32[_0xb893b1(0x110)]=0x0]='UNDEFINED',_0x3cfe32[_0x3cfe32['OK']=0x1]='OK',_0x3cfe32[_0x3cfe32[_0xb893b1(0x19a)]=0x2]='INTERNAL_ERROR',_0x3cfe32[_0x3cfe32[_0xb893b1(0x3dd)]=0x3]=_0xb893b1(0x3dd),_0x3cfe32[_0x3cfe32[_0xb893b1(0x47c)]=0x4]='NOT_FOUND',_0x3cfe32[_0x3cfe32['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3cfe32[_0x3cfe32[_0xb893b1(0x3d6)]=0x6]='ALREADY_EXISTS',_0x3cfe32[_0x3cfe32[_0xb893b1(0x1f3)]=0x7]='INVALID_ARGUMENT',_0x3cfe32[_0x3cfe32[_0xb893b1(0x419)]=0x8]=_0xb893b1(0x419),_0x3cfe32[_0x3cfe32[_0xb893b1(0x4d0)]=0x9]=_0xb893b1(0x4d0),_0x3cfe32[_0x3cfe32[_0xb893b1(0x345)]=0x1389]=_0xb893b1(0x345),_0x3cfe32[_0x3cfe32[_0xb893b1(0x1fc)]=0x1771]=_0xb893b1(0x1fc),_0x3cfe32[_0x3cfe32[_0xb893b1(0x37a)]=0x1772]=_0xb893b1(0x37a),_0x3cfe32[_0x3cfe32[_0xb893b1(0x3d3)]=0x1773]=_0xb893b1(0x3d3),_0x3cfe32[_0x3cfe32['APPLY_REJECT']=0x1b59]=_0xb893b1(0x32e),_0x3cfe32[_0x3cfe32[_0xb893b1(0x3c4)]=0x1b5a]=_0xb893b1(0x3c4),_0x3cfe32[_0x3cfe32['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xb893b1(0x516),_0x3cfe32[_0x3cfe32['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xb893b1(0x4ef),_0x3cfe32[_0x3cfe32[_0xb893b1(0x28b)]=0x1b5d]=_0xb893b1(0x28b),_0x3cfe32[_0x3cfe32['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0xb893b1(0x4bc),_0x3cfe32[_0x3cfe32[_0xb893b1(0x1d7)]=0x2329]=_0xb893b1(0x1d7),_0x3cfe32[_0x3cfe32['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xb893b1(0x4a0),_0x3cfe32[_0x3cfe32[_0xb893b1(0x2c4)]=0x232b]=_0xb893b1(0x2c4),_0x3cfe32[_0x3cfe32[_0xb893b1(0x4d7)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3cfe32[_0x3cfe32[_0xb893b1(0x34e)]=0x232d]=_0xb893b1(0x34e),_0x3cfe32[_0x3cfe32[_0xb893b1(0x118)]=0x2711]=_0xb893b1(0x118),_0x3cfe32[_0x3cfe32['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xb893b1(0x3d5),_0x3cfe32[_0x3cfe32['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xb893b1(0x1a6),_0x3cfe32[_0x3cfe32[_0xb893b1(0x328)]=0x2714]=_0xb893b1(0x328),_0x3cfe32[_0x3cfe32[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x3cfe32))(_0x423190||{}),_0x2e214d=(_0x31ebe6=>(_0x31ebe6[_0x31ebe6[_0xb893b1(0x49a)]=0x0]=_0xb893b1(0x49a),_0x31ebe6[_0x31ebe6[_0xb893b1(0x2d8)]=0x1]=_0xb893b1(0x2d8),_0x31ebe6[_0x31ebe6[_0xb893b1(0x2db)]=0x2]=_0xb893b1(0x2db),_0x31ebe6[_0x31ebe6[_0xb893b1(0x422)]=0x3]=_0xb893b1(0x422),_0x31ebe6[_0x31ebe6[_0xb893b1(0x3be)]=0x4]=_0xb893b1(0x3be),_0x31ebe6[_0x31ebe6[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x31ebe6))(_0x2e214d||{}),_0x4a723e=(_0x5f5414=>(_0x5f5414[_0x5f5414[_0xb893b1(0x4d4)]=0x0]=_0xb893b1(0x4d4),_0x5f5414[_0x5f5414[_0xb893b1(0x2e7)]=0x1]='HELLO',_0x5f5414[_0x5f5414['JOIN']=0x2]=_0xb893b1(0x1c1),_0x5f5414[_0x5f5414['LEAVE']=0x3]='LEAVE',_0x5f5414[_0x5f5414[_0xb893b1(0x229)]=0x4]='INGEST',_0x5f5414[_0x5f5414[_0xb893b1(0x269)]=0x5]='HEARTBEAT',_0x5f5414[_0x5f5414[_0xb893b1(0x50b)]=0x6]=_0xb893b1(0x50b),_0x5f5414[_0x5f5414[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x5f5414))(_0x4a723e||{}),_0x46d5b1=(_0x345e8f=>(_0x345e8f[_0x345e8f[_0xb893b1(0x310)]=0x0]=_0xb893b1(0x310),_0x345e8f[_0x345e8f['OK']=0x1]='OK',_0x345e8f[_0x345e8f[_0xb893b1(0x2c3)]=0x2]=_0xb893b1(0x2c3),_0x345e8f[_0x345e8f[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x345e8f))(_0x46d5b1||{}),_0x1ca33e=(_0x4dbcca=>(_0x4dbcca[_0x4dbcca[_0xb893b1(0x4fe)]=0x0]='Undefined',_0x4dbcca[_0x4dbcca[_0xb893b1(0x265)]=0x1]=_0xb893b1(0x265),_0x4dbcca[_0x4dbcca['HttpExport']=0x2]=_0xb893b1(0x31a),_0x4dbcca[_0x4dbcca[_0xb893b1(0x53d)]=0x3]='UnitEmbedded',_0x4dbcca[_0x4dbcca[_0xb893b1(0x305)]=0x4]=_0xb893b1(0x305),_0x4dbcca[_0x4dbcca[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x4dbcca))(_0x1ca33e||{});const _0x271aa0=_0xb893b1(0x337),_0x43c313={};function _0x2039f7(_0x24b21b){const _0x241072=_0xb893b1;var _0x310223,_0x341a29,_0x58bfe6,_0x512254,_0x268ac2;const _0x1d5b12=_0x24b21b[_0x241072(0x489)],_0x1c4ed0=JSON[_0x241072(0x17e)](_0x1d5b12);switch(_0x1c4ed0['cmd']){case _0x4a723e[_0x241072(0x269)]:case _0x4a723e['HELLO']:{const _0x3301a0=_0x1c4ed0['infoRsp'];return{..._0x1c4ed0,'data':_0x3301a0,'cmd':_0x1c4ed0['cmd']};}case _0x4a723e['JOIN']:{const _0x1024f0=_0x1c4ed0[_0x241072(0x15d)];return{..._0x1c4ed0,'data':_0x1024f0,'cmd':_0x1c4ed0[_0x241072(0x3d4)]};}case _0x4a723e['RECV']:{const _0x40c7ef=_0x1c4ed0[_0x241072(0x149)];switch(_0x40c7ef[_0x241072(0x39a)]){case _0x5e5ab1['CollaborationEvent'][_0x241072(0x3d2)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x310223=_0x40c7ef[_0x241072(0x195)])==null?void 0x0:_0x310223['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1['CollaborationEvent'][_0x241072(0x1cb)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x341a29=_0x40c7ef[_0x241072(0x2f8)])==null?void 0x0:_0x341a29['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x102)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x58bfe6=_0x40c7ef[_0x241072(0x180)])==null?void 0x0:_0x58bfe6['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1['CollaborationEvent']['CHANGESET_REJ']:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x512254=_0x40c7ef[_0x241072(0x139)])==null?void 0x0:_0x512254['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1['CollaborationEvent'][_0x241072(0x406)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x268ac2=_0x40c7ef[_0x241072(0x2f4)])==null?void 0x0:_0x268ac2['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x178)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['updateCursorEvent']},'cmd':_0x1c4ed0['cmd']};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x125)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['joinEvent']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x30d)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x309)]},'cmd':_0x1c4ed0['cmd']};case _0x5e5ab1['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['liveShareNewHost']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x120)]:case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x3ff)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x1e9)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x3d9)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['liveShareNewHost']},'cmd':_0x1c4ed0['cmd']};case _0x5e5ab1['CollaborationEvent'][_0x241072(0x128)]:return{..._0x1c4ed0,'data':_0x40c7ef,'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x4f3)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x1a5)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x38b)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x115)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)]['SHOULD_CLOSE_CONN']:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x261)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};default:return _0x1c4ed0;}}default:return _0x1c4ed0;}}function _0x5355af(_0x594084){const _0xb2ec59=_0xb893b1;switch(_0x594084[_0xb2ec59(0x3d4)]){case _0x4a723e['HEARTBEAT']:case _0x4a723e[_0xb2ec59(0x2e7)]:return JSON[_0xb2ec59(0x2df)]({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084['routeKey']});case _0x4a723e['INGEST']:{let _0x55588a;switch(_0x594084['data'][_0xb2ec59(0x39a)]){case _0x5e5ab1[_0xb2ec59(0x177)]['UPDATE_CURSOR']:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)]['UPDATE_CURSOR'],'updateCursorEvent':_0x594084['data'][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x30d)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x30d)],'leaveEvent':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x125)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)]['USERS_ENTER'],'joinEvent':_0x594084[_0xb2ec59(0x489)]['data']};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x284)]:{_0x55588a={'eventID':_0x5e5ab1['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x489)]};break;}case _0x5e5ab1['CollaborationEvent'][_0xb2ec59(0x3ff)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x3ff)],'liveShareOperation':_0x594084[_0xb2ec59(0x489)]['data']};break;}case _0x5e5ab1['CollaborationEvent'][_0xb2ec59(0x3d9)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x404)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x404)],'liveShareRequestHost':_0x594084['data'][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)]['LIVESHARE_FETCH_OPERATIONS']:{_0x55588a={'eventID':_0x5e5ab1['CollaborationEvent'][_0xb2ec59(0x120)]};break;}default:_0x55588a={'eventID':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x39a)]};}return JSON[_0xb2ec59(0x2df)]({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084[_0xb2ec59(0x444)],'collaMsg':_0x55588a});}case _0x4a723e['JOIN']:return JSON[_0xb2ec59(0x2df)]({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084[_0xb2ec59(0x444)],'joinReq':_0x594084['data']});case _0x4a723e[_0xb2ec59(0x4fb)]:return JSON['stringify']({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084['routeKey'],'leaveReq':_0x594084['data']});default:throw new Error(_0xb2ec59(0x311));}}var _0x429d68=Object[_0xb893b1(0x1bc)],_0x451b4e=Object[_0xb893b1(0x490)],_0x569bc7=(_0x8013fc,_0x422d9b,_0x51bc04,_0x2c1f0c)=>{for(var _0x22be47=_0x2c1f0c>0x1?void 0x0:_0x2c1f0c?_0x451b4e(_0x422d9b,_0x51bc04):_0x422d9b,_0x37646d=_0x8013fc['length']-0x1,_0x1dbfb4;_0x37646d>=0x0;_0x37646d--)(_0x1dbfb4=_0x8013fc[_0x37646d])&&(_0x22be47=(_0x2c1f0c?_0x1dbfb4(_0x422d9b,_0x51bc04,_0x22be47):_0x1dbfb4(_0x22be47))||_0x22be47);return _0x2c1f0c&&_0x22be47&&_0x429d68(_0x422d9b,_0x51bc04,_0x22be47),_0x22be47;},_0x1a1cf9=(_0x106340,_0x4f6382)=>(_0x4efc16,_0x287bb5)=>_0x4f6382(_0x4efc16,_0x287bb5,_0x106340);const _0x383a5a=_0x58b389[_0xb893b1(0x202)](_0xb893b1(0x434));function _0x16a608(_0xeaf40e,_0x44416d,_0x1980be){const _0x57b6c8=_0xb893b1;return _0xeaf40e+'/'+_0x44416d+'/unit/'+_0x1980be+_0x57b6c8(0x23d);}_0x3b52c4['CollaborationSocketService']=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x572150,_0x2e0a9e,_0x127bc9,_0x2f38dd,_0xaa33a9){const _0x602962=_0xb893b1;super(),this[_0x602962(0x168)]=_0x572150,this[_0x602962(0x535)]=_0x2e0a9e,this[_0x602962(0x2f3)]=_0x127bc9,this[_0x602962(0x482)]=_0x2f38dd,this[_0x602962(0x171)]=_0xaa33a9;}['createSocket'](_0x281bcc){const _0x148c4b=_0xb893b1,_0x296f7b=this[_0x148c4b(0x535)][_0x148c4b(0x530)](_0x281bcc);if(!_0x296f7b)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3d892b=new _0x58b389[(_0x148c4b(0x347))](),_0x5d30e2=new _0x4655d9[(_0x148c4b(0x4d6))]();_0x3d892b[_0x148c4b(0x510)](_0x296f7b[_0x148c4b(0x221)][_0x148c4b(0x1b6)](_0xb540a4=>_0x5d30e2[_0x148c4b(0x174)](_0xb540a4))),_0x3d892b[_0x148c4b(0x510)](_0x58b389[_0x148c4b(0x1bf)](()=>_0x5d30e2[_0x148c4b(0x398)]()));const _0x4b7553=new _0x4655d9[(_0x148c4b(0x4d6))]();_0x3d892b['add'](_0x296f7b['error$']['subscribe'](_0xb7a804=>_0x4b7553[_0x148c4b(0x174)](_0xb7a804))),_0x3d892b[_0x148c4b(0x510)](_0x58b389['toDisposable'](()=>_0x4b7553['complete']()));const _0x5d5324=new _0x4655d9[(_0x148c4b(0x4d6))]();_0x3d892b['add'](_0x296f7b[_0x148c4b(0x20b)][_0x148c4b(0x1b6)](_0x439c87=>{const _0x33cd71=_0x148c4b,_0xa97be=_0x2039f7(_0x439c87);_0x5d5324[_0x33cd71(0x174)](_0xa97be);})),_0x3d892b[_0x148c4b(0x510)](_0x58b389[_0x148c4b(0x1bf)](()=>_0x5d5324[_0x148c4b(0x398)]()));let _0x26fb48;const _0x21069c=()=>{const _0xa0084b=_0x148c4b;_0x4b7553[_0xa0084b(0x174)](new Event('connection\x20error')),_0x5d30e2[_0xa0084b(0x174)](new CloseEvent(_0xa0084b(0x3fc))),_0x26fb48[_0xa0084b(0x3c9)]();};return _0x26fb48={'memberID':'','close$':_0x5d30e2[_0x148c4b(0x526)](),'error$':_0x4b7553[_0x148c4b(0x526)](),'open$':_0x296f7b[_0x148c4b(0x4ae)],'message$':_0x5d5324[_0x148c4b(0x526)](),'send':_0x25e98a=>{const _0x257e04=_0x148c4b;if(_0x25e98a['cmd']===_0x4a723e[_0x257e04(0x229)]){if(_0x25e98a['data'][_0x257e04(0x39a)]===_0x5e5ab1[_0x257e04(0x177)][_0x257e04(0x138)]){this[_0x257e04(0x370)](_0x26fb48,_0x25e98a[_0x257e04(0x489)])[_0x257e04(0x410)](_0x4c8d25=>{const _0x5e83f1=_0x257e04;this[_0x5e83f1(0x482)]['error'](_0x4c8d25),_0x21069c();});return;}if(_0x25e98a[_0x257e04(0x489)][_0x257e04(0x39a)]===_0x5e5ab1[_0x257e04(0x177)]['FETCH_MISSING']){const _0x49d598=_0x25e98a[_0x257e04(0x489)];this[_0x257e04(0x264)](_0x49d598)[_0x257e04(0x2e6)](_0x5dd2c4=>{const _0x4dc24d=_0x257e04;_0x5d5324['next']({'cmd':_0x4a723e[_0x4dc24d(0x50b)],'code':_0x46d5b1['OK'],'routeKey':_0x49d598[_0x4dc24d(0x489)][_0x4dc24d(0x386)],'routeType':'','data':{'eventID':_0x5e5ab1['CollaborationEvent'][_0x4dc24d(0x518)],'data':{'changesets':_0x5dd2c4}}});})['catch'](_0x204b9a=>{const _0x205243=_0x257e04;this[_0x205243(0x482)][_0x205243(0x368)](_0x204b9a),_0x21069c();});return;}}_0x296f7b[_0x257e04(0x2c0)](_0x5355af(_0x25e98a));},'close':()=>{const _0x3c25b=_0x148c4b;_0x296f7b[_0x3c25b(0x3c9)](),_0x3d892b[_0x3c25b(0x50d)]();}},_0x26fb48;}async['_submitChangeset'](_0xbed478,_0x3c06a1){const _0x24e115=_0xb893b1;var _0x290d3f,_0x4f1888;const {unitType:_0x349b39,unitID:_0x381285,changeset:_0x16bcf5}=_0x3c06a1['data'],_0x49623a={'unitID':_0x381285,'memberID':_0xbed478['memberID'],'type':_0x349b39,'changeset':_0x5e5ab1['parseChangesetToProtocol'](_0x16bcf5)},_0x23923e=this[_0x24e115(0x2f3)][_0x24e115(0x22b)](_0x8b953d),_0x24a819=this[_0x24e115(0x2f3)][_0x24e115(0x22b)](_0x271aa0),_0x1cfec5=_0x16a608((_0x4f1888=(_0x290d3f=_0x24a819==null?void 0x0:_0x24a819[_0x24e115(0x15c)])!=null?_0x290d3f:_0x23923e)!=null?_0x4f1888:_0x4889a4,_0x349b39,_0x381285);try{await this[_0x24e115(0x168)][_0x24e115(0x3b4)](_0x1cfec5,{'body':_0x49623a});}catch(_0x313973){throw this[_0x24e115(0x482)][_0x24e115(0x368)]('[CollaborationSession]',_0x24e115(0x33a)),_0x313973;}}async[_0xb893b1(0x264)](_0x3c7703){const _0x418af0=_0xb893b1,{unitID:_0x2d649b,from:_0xd8e62f,to:_0x36253a,unitType:_0x59925b}=_0x3c7703[_0x418af0(0x489)];return(await this[_0x418af0(0x171)][_0x418af0(0x33c)]({'metadata':void 0x0},{'unitID':_0x2d649b,'type':_0x59925b,'from':_0xd8e62f,'to':_0x36253a}))['changesets'];}},_0x3b52c4['CollaborationSocketService']=_0x569bc7([_0x1a1cf9(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x1a1cf9(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x57b255['WebSocketService'])),_0x1a1cf9(0x2,_0x58b389['IConfigService']),_0x1a1cf9(0x3,_0x58b389[_0xb893b1(0x46a)]),_0x1a1cf9(0x4,_0x5e5ab1[_0xb893b1(0x37e)])],_0x3b52c4[_0xb893b1(0x374)]);const _0x4850e4='collaboration_new_changeset';function _0x39a529(_0x2521c5){const _0x32fcfe=_0xb893b1;return JSON[_0x32fcfe(0x2df)](_0x2521c5)[_0x32fcfe(0x4d8)];}class _0x5efdb3{constructor(){const _0x16be3c=_0xb893b1;_0xf1fe43(this,'_commentUpdate$',new _0x4655d9[(_0x16be3c(0x4d6))]()),_0xf1fe43(this,_0x16be3c(0x479),this[_0x16be3c(0x23c)]['asObservable']());}[_0xb893b1(0x275)](_0x204230){const _0x532f8d=_0xb893b1;this['_commentUpdate$'][_0x532f8d(0x174)](_0x204230);}}var _0x24e6ca=Object[_0xb893b1(0x1bc)],_0x1e17ea=Object[_0xb893b1(0x490)],_0x271ff4=(_0x42cb20,_0x25f741,_0x2ebe2a,_0x2e01b3)=>{const _0x1aab41=_0xb893b1;for(var _0x451c7d=_0x2e01b3>0x1?void 0x0:_0x2e01b3?_0x1e17ea(_0x25f741,_0x2ebe2a):_0x25f741,_0x164501=_0x42cb20[_0x1aab41(0x4d8)]-0x1,_0x21f327;_0x164501>=0x0;_0x164501--)(_0x21f327=_0x42cb20[_0x164501])&&(_0x451c7d=(_0x2e01b3?_0x21f327(_0x25f741,_0x2ebe2a,_0x451c7d):_0x21f327(_0x451c7d))||_0x451c7d);return _0x2e01b3&&_0x451c7d&&_0x24e6ca(_0x25f741,_0x2ebe2a,_0x451c7d),_0x451c7d;},_0xb9ed1f=(_0x2af9be,_0x4c1074)=>(_0x3d587f,_0x168184)=>_0x4c1074(_0x3d587f,_0x168184,_0x2af9be);_0x3b52c4[_0xb893b1(0x384)]=class extends _0x58b389['Disposable']{constructor(_0x2d1d36,_0x1941f4){const _0xd7a5c3=_0xb893b1;super(),_0xf1fe43(this,'_roomMembers',new Map()),(this[_0xd7a5c3(0x123)]=_0x2d1d36,this[_0xd7a5c3(0x4b8)]=_0x1941f4,this['disposeWithMe'](_0x58b389['toDisposable'](_0x4655d9[_0xd7a5c3(0x1b3)](this[_0xd7a5c3(0x123)]['getTypeOfUnitDisposed$'](_0x58b389[_0xd7a5c3(0x441)][_0xd7a5c3(0x2db)])[_0xd7a5c3(0x3ca)](_0x5d8a56['map'](_0x30285a=>_0x30285a[_0xd7a5c3(0x2b3)]())),this['_univerInstanceService'][_0xd7a5c3(0x227)](_0x58b389[_0xd7a5c3(0x441)][_0xd7a5c3(0x2d8)])[_0xd7a5c3(0x3ca)](_0x5d8a56[_0xd7a5c3(0x44d)](_0x54b2f9=>_0x54b2f9['getUnitId']())),this[_0xd7a5c3(0x123)][_0xd7a5c3(0x227)](_0x58b389[_0xd7a5c3(0x441)][_0xd7a5c3(0x422)])[_0xd7a5c3(0x3ca)](_0x5d8a56[_0xd7a5c3(0x44d)](_0x48e3f9=>_0x48e3f9[_0xd7a5c3(0x2b3)]())))[_0xd7a5c3(0x1b6)](_0x9be6a=>this[_0xd7a5c3(0x21e)](_0x9be6a)))));}[_0xb893b1(0xff)](_0x29c8b7){const _0x28c021=_0xb893b1;this[_0x28c021(0x4b8)][_0x28c021(0xff)](_0x29c8b7);}[_0xb893b1(0x1e5)](){const _0x7a2193=_0xb893b1;return this[_0x7a2193(0x4b8)]['getCurrentUser']();}['updateMember'](_0x499613,_0x1b2dd4){const _0x5b35c6=_0xb893b1;let _0x33f394=this[_0x5b35c6(0x13e)]['get'](_0x499613);_0x33f394||(_0x33f394=new _0x3b3adf(),this[_0x5b35c6(0x13e)][_0x5b35c6(0x1c2)](_0x499613,_0x33f394)),_0x33f394[_0x5b35c6(0x262)](_0x1b2dd4);}[_0xb893b1(0x51f)](_0x38b966,_0x7c4ded){const _0x1f84e8=_0xb893b1,_0x4a4781=this[_0x1f84e8(0x13e)][_0x1f84e8(0x19d)](_0x38b966);_0x4a4781&&_0x4a4781['removeMember'](_0x7c4ded);}[_0xb893b1(0xfd)](_0x51890b){const _0x203e2d=_0xb893b1;return this['_roomMembers'][_0x203e2d(0x19d)](_0x51890b);}[_0xb893b1(0x176)](_0x1d67f8,_0x1ef9ea){const _0x1ae487=_0xb893b1,_0x7841b8=this['_roomMembers'][_0x1ae487(0x19d)](_0x1d67f8);if(_0x7841b8)return _0x7841b8['getMember'](_0x1ef9ea);}['_removeRoom'](_0x4a8373){const _0x2ee660=_0xb893b1,_0x17dad1=this['_roomMembers']['get'](_0x4a8373);_0x17dad1&&(_0x17dad1[_0x2ee660(0x50d)](),this[_0x2ee660(0x13e)]['delete'](_0x4a8373));}['dispose'](){const _0x50406b=_0xb893b1;this[_0x50406b(0x13e)][_0x50406b(0x3b7)](_0x4e9e33=>_0x4e9e33[_0x50406b(0x50d)]()),this['_roomMembers']['clear']();}},_0x3b52c4[_0xb893b1(0x384)]=_0x271ff4([_0xb9ed1f(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0xb9ed1f(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x3a2)]))],_0x3b52c4[_0xb893b1(0x384)]);class _0x3b3adf extends _0x58b389['Disposable']{constructor(){const _0x521c66=_0xb893b1;super(...arguments),_0xf1fe43(this,_0x521c66(0x155),new Map());}['dispose'](){const _0x32d3e3=_0xb893b1;this[_0x32d3e3(0x155)][_0x32d3e3(0x48c)]();}[_0xb893b1(0x262)](_0x1b2ec3){const _0x63dc6c=_0xb893b1;this[_0x63dc6c(0x155)][_0x63dc6c(0x1c2)](_0x1b2ec3[_0x63dc6c(0x40d)],_0x1b2ec3);}[_0xb893b1(0x51f)](_0x547328){const _0x24c36a=_0xb893b1;this[_0x24c36a(0x155)][_0x24c36a(0x1d0)](_0x547328);}[_0xb893b1(0x176)](_0x1c186f){const _0x278661=_0xb893b1;return this[_0x278661(0x155)][_0x278661(0x19d)](_0x1c186f);}['getAllMembers'](){const _0xb48f6c=_0xb893b1;return Array[_0xb48f6c(0x169)](this[_0xb48f6c(0x155)][_0xb48f6c(0x2cb)]());}}var _0x4494f3=Object[_0xb893b1(0x1bc)],_0x602435=Object[_0xb893b1(0x490)],_0x182935=(_0x4ec2de,_0x2a1162,_0x1f8156,_0x4a93e3)=>{for(var _0x5dd4cd=_0x4a93e3>0x1?void 0x0:_0x4a93e3?_0x602435(_0x2a1162,_0x1f8156):_0x2a1162,_0x416d76=_0x4ec2de['length']-0x1,_0x5b4e3f;_0x416d76>=0x0;_0x416d76--)(_0x5b4e3f=_0x4ec2de[_0x416d76])&&(_0x5dd4cd=(_0x4a93e3?_0x5b4e3f(_0x2a1162,_0x1f8156,_0x5dd4cd):_0x5b4e3f(_0x5dd4cd))||_0x5dd4cd);return _0x4a93e3&&_0x5dd4cd&&_0x4494f3(_0x2a1162,_0x1f8156,_0x5dd4cd),_0x5dd4cd;},_0x569dd2=(_0x345c3f,_0x3d07fb)=>(_0x4cd30e,_0x40cc28)=>_0x3d07fb(_0x4cd30e,_0x40cc28,_0x345c3f),_0x442957=(_0x36139e=>(_0x36139e[_0x36139e[_0xb893b1(0x4e7)]=0x0]=_0xb893b1(0x4e7),_0x36139e[_0x36139e[_0xb893b1(0x147)]=0x1]=_0xb893b1(0x147),_0x36139e[_0x36139e[_0xb893b1(0x4d1)]=0x2]=_0xb893b1(0x4d1),_0x36139e[_0x36139e[_0xb893b1(0x4d5)]=0x3]='ONLINE',_0x36139e))(_0x442957||{});_0x3b52c4['CollaborationSession']=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x41b849,_0x226b10,_0x15bf5c,_0x4ebe5d,_0x5f007d,_0x3e0e57,_0x16690a,_0x44ce4b,_0x536b9d,_0x3f93f2){const _0x40905e=_0xb893b1;super(),_0xf1fe43(this,'_sessionStatus$',new _0x4655d9[(_0x40905e(0x293))](0x0)),_0xf1fe43(this,'sessionStatus$',this['_sessionStatus$'][_0x40905e(0x526)]()),_0xf1fe43(this,_0x40905e(0x4a4),new _0x4655d9[(_0x40905e(0x4d6))]()),_0xf1fe43(this,_0x40905e(0x297),this[_0x40905e(0x4a4)][_0x40905e(0x526)]()),_0xf1fe43(this,_0x40905e(0x321)),_0xf1fe43(this,'_socketMessageSubscription'),_0xf1fe43(this,'_collaborationTimeoutTimer'),_0xf1fe43(this,_0x40905e(0x3a6),!0x1),_0xf1fe43(this,_0x40905e(0x41a),null),(this['_unitID']=_0x41b849,this[_0x40905e(0x482)]=_0x15bf5c,this[_0x40905e(0x3e9)]=_0x4ebe5d,this['_messageService']=_0x5f007d,this[_0x40905e(0x2f3)]=_0x3e0e57,this[_0x40905e(0x341)]=_0x16690a,this['_memberService']=_0x44ce4b,this['_commentService']=_0x536b9d,this[_0x40905e(0x254)]=_0x3f93f2,this[_0x40905e(0x3a6)]=!!this[_0x40905e(0x254)],_0x226b10[_0x40905e(0x3ca)](_0x4655d9['takeUntil'](this[_0x40905e(0x11c)]))['subscribe'](_0xe205a3=>{const _0xc6fb29=_0x40905e;var _0x530164;typeof _0xe205a3>'u'||(this[_0xc6fb29(0x321)]=_0xe205a3,_0xe205a3?(this[_0xc6fb29(0x219)](_0xe205a3),this[_0xc6fb29(0x2cc)]=_0xe205a3[_0xc6fb29(0x20b)][_0xc6fb29(0x1b6)](_0x4210d3=>{const _0x248909=_0xc6fb29;_0x4210d3['routeKey']===this[_0x248909(0x1bb)]&&this[_0x248909(0x164)](_0x4210d3);})):(this[_0xc6fb29(0x2b1)](),this[_0xc6fb29(0x414)]['next'](0x2),(_0x530164=this[_0xc6fb29(0x2cc)])==null||_0x530164[_0xc6fb29(0x49e)](),this[_0xc6fb29(0x2cc)]=null));}),this['disposeWithMe'](this[_0x40905e(0x3e9)]['registerOnClose'](()=>{const _0x269e77=_0x40905e;var _0x5787d8;(_0x5787d8=this[_0x269e77(0x321)])==null||_0x5787d8[_0x269e77(0x2c0)]({'cmd':_0x4a723e[_0x269e77(0x4fb)],'data':{'roomID':this[_0x269e77(0x1bb)]}});})));}get[_0xb893b1(0x2e1)](){const _0x25ba6c=_0xb893b1;return this[_0x25ba6c(0x414)][_0x25ba6c(0x38d)]();}['getMemberID'](){const _0x46a4e7=_0xb893b1;var _0x154834,_0x59c7aa;return(_0x59c7aa=(_0x154834=this['_socket'])==null?void 0x0:_0x154834[_0x46a4e7(0x40d)])!=null?_0x59c7aa:null;}[_0xb893b1(0x50d)](){const _0x3a959d=_0xb893b1;super['dispose'](),this['dispose$']['next'](),this[_0x3a959d(0x11c)][_0x3a959d(0x398)]();}[_0xb893b1(0x3c9)](){const _0x4af2c7=_0xb893b1;var _0x31ab14,_0x35d70b;this[_0x4af2c7(0x2b1)](),(_0x31ab14=this[_0x4af2c7(0x321)])==null||_0x31ab14[_0x4af2c7(0x2c0)]({'cmd':_0x4a723e[_0x4af2c7(0x4fb)],'data':{'roomID':this[_0x4af2c7(0x1bb)]}}),(_0x35d70b=this[_0x4af2c7(0x321)])==null||_0x35d70b[_0x4af2c7(0x3c9)](),this[_0x4af2c7(0x4a4)][_0x4af2c7(0x398)](),this[_0x4af2c7(0x414)]['complete'](),this[_0x4af2c7(0x50d)]();}[_0xb893b1(0x164)](_0x30d097){const _0x31bae5=_0xb893b1;_0x30d097['cmd']===_0x4a723e['JOIN']?this[_0x31bae5(0x4b4)](_0x30d097):_0x30d097[_0x31bae5(0x3d4)]===_0x4a723e[_0x31bae5(0x50b)]&&this['_onRecvEvent'](_0x30d097);}[_0xb893b1(0x219)](_0x10a465){const _0x31e612=_0xb893b1;this[_0x31e612(0x414)][_0x31e612(0x174)](0x1),_0x10a465[_0x31e612(0x2c0)]({'cmd':_0x4a723e['JOIN'],'routeKey':this[_0x31e612(0x1bb)],'routeType':'','data':{'rooms':[{'roomID':this[_0x31e612(0x1bb)]}]}});}[_0xb893b1(0x4b4)](_0xe90dab){const _0xbf64dd=_0xb893b1;var _0x5be484;if(_0xe90dab[_0xbf64dd(0x170)]===_0x46d5b1[_0xbf64dd(0x2c3)]){this[_0xbf64dd(0x166)][_0xbf64dd(0x250)]({'type':_0x145b31[_0xbf64dd(0x3de)]['Warning'],'content':this[_0xbf64dd(0x341)]['t'](_0xbf64dd(0x3e5))}),this[_0xbf64dd(0x414)][_0xbf64dd(0x174)](0x2);return;}this[_0xbf64dd(0x414)][_0xbf64dd(0x174)](0x3);const _0x2cfa59=(_0x5be484=_0xe90dab['data'][_0xbf64dd(0x43f)][this[_0xbf64dd(0x1bb)]])==null?void 0x0:_0x5be484[_0xbf64dd(0x491)];_0x2cfa59&&_0x2cfa59[_0xbf64dd(0x3b7)](_0x26730d=>this[_0xbf64dd(0x505)][_0xbf64dd(0x262)](this['_unitID'],_0x26730d));}[_0xb893b1(0x445)](_0x4d5f05){const _0x48196d=_0xb893b1;try{const _0x33b608=_0x4d5f05['data'];switch(_0x33b608['eventID']){case _0x5e5ab1['CollaborationEvent'][_0x48196d(0x125)]:this[_0x48196d(0x4d2)](_0x33b608),this['_event$']['next'](_0x33b608);break;case _0x5e5ab1['CollaborationEvent'][_0x48196d(0x30d)]:this['_onUserLeave'](_0x33b608),this['_event$'][_0x48196d(0x174)](_0x33b608);break;case _0x5e5ab1['CollaborationEvent']['CHANGESET_ACK']:case _0x5e5ab1[_0x48196d(0x177)][_0x48196d(0x406)]:this[_0x48196d(0x25e)](),this['_clearCollaborationTimeoutTimer'](),this[_0x48196d(0x4a4)][_0x48196d(0x174)](_0x33b608);break;case _0x5e5ab1[_0x48196d(0x177)]['MSG_FOR_ERROR']:this['_logService'][_0x48196d(0x368)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x48196d(0x2df)](_0x33b608)),this['_event$'][_0x48196d(0x174)](_0x33b608);break;case _0x5e5ab1[_0x48196d(0x177)][_0x48196d(0x4f3)]:this[_0x48196d(0x2a2)][_0x48196d(0x275)](_0x33b608[_0x48196d(0x489)]),this[_0x48196d(0x4a4)][_0x48196d(0x174)](_0x33b608);break;default:this[_0x48196d(0x4a4)][_0x48196d(0x174)](_0x33b608);}}catch(_0x2936f7){this[_0x48196d(0x482)][_0x48196d(0x368)](_0x2936f7,_0x4d5f05);}}[_0xb893b1(0x4d2)](_0x4fbece){const _0x5c5a4a=_0xb893b1;this[_0x5c5a4a(0x505)][_0x5c5a4a(0x262)](this[_0x5c5a4a(0x1bb)],_0x4fbece[_0x5c5a4a(0x489)]);}['_onUserLeave'](_0xa62dd1){const _0x14722c=_0xb893b1;this[_0x14722c(0x505)][_0x14722c(0x51f)](this[_0x14722c(0x1bb)],_0xa62dd1[_0x14722c(0x489)][_0x14722c(0x40d)]);}async['send'](_0x1c1dfc,_0x1ef13d){const _0x3024ac=_0xb893b1;if(this[_0x3024ac(0x2e1)]!==0x3||!this[_0x3024ac(0x321)])throw new Error(_0x3024ac(0x3e7));try{_0x1c1dfc[_0x3024ac(0x39a)]===_0x5e5ab1[_0x3024ac(0x177)][_0x3024ac(0x138)]&&(this[_0x3024ac(0x2d5)](),this[_0x3024ac(0x1d1)](_0x1c1dfc)),this[_0x3024ac(0x321)]['send']({'cmd':_0x4a723e[_0x3024ac(0x229)],'routeKey':_0x1ef13d,'routeType':'','data':_0x1c1dfc});}catch(_0x410eec){this[_0x3024ac(0x482)]['error'](_0x410eec);}}[_0xb893b1(0x2d5)](){const _0x5a4204=_0xb893b1;var _0x38841b;this[_0x5a4204(0x286)]=window['setTimeout'](()=>{const _0x2186cc=_0x5a4204;this[_0x2186cc(0x286)]=null,this['_messageService'][_0x2186cc(0x250)]({'type':_0x145b31[_0x2186cc(0x3de)][_0x2186cc(0x4b2)],'content':this[_0x2186cc(0x341)]['t']('session.collaboration-timeout')});},(_0x38841b=this['_configService'][_0x5a4204(0x22b)](_0x3ceb27))!=null?_0x38841b:0x4e20);}[_0xb893b1(0x41b)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0xb893b1(0x1d1)](_0x5dde85){const _0x36abf5=_0xb893b1;if(!this[_0x36abf5(0x3a6)])return;const {data:_0x392b8f}=_0x5dde85,{unitID:_0x217229,changeset:_0x4d9b32}=_0x392b8f,{mutations:_0x3a0bfc,type:_0x185974}=_0x4d9b32;this[_0x36abf5(0x41a)]={'unitId':_0x217229,'type':_0x185974,'startTime':performance[_0x36abf5(0x245)](),'stopTime':0x0,'duration':0x0,'size':_0x39a529(_0x3a0bfc)};}[_0xb893b1(0x25e)](){const _0x496a52=_0xb893b1;if(this[_0x496a52(0x3a6)]){if(!this[_0x496a52(0x41a)]){this['_logService'][_0x496a52(0x368)]('[CollaborationSession]',_0x496a52(0x280));return;}this['_telemetryInfo']['stopTime']=performance[_0x496a52(0x245)](),this[_0x496a52(0x41a)][_0x496a52(0x4c2)]=this[_0x496a52(0x41a)][_0x496a52(0x42f)]-this[_0x496a52(0x41a)][_0x496a52(0x396)],this['_telemetryService'][_0x496a52(0x2ca)](_0x4850e4,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0xb893b1(0x2b1)](){const _0x21cb3b=_0xb893b1;this[_0x21cb3b(0x41a)]=null;}},_0x3b52c4[_0xb893b1(0x2e2)]=_0x182935([_0x569dd2(0x2,_0x58b389['ILogService']),_0x569dd2(0x3,_0x4d3c2b['IBeforeCloseService']),_0x569dd2(0x4,_0x4d3c2b[_0xb893b1(0x36f)]),_0x569dd2(0x5,_0x58b389[_0xb893b1(0x1f6)]),_0x569dd2(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['LocaleService'])),_0x569dd2(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['MemberService'])),_0x569dd2(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x5efdb3)),_0x569dd2(0x9,_0x58b389[_0xb893b1(0x45b)](_0x41321d[_0xb893b1(0x273)]))],_0x3b52c4[_0xb893b1(0x2e2)]);var _0x4ceb08=Object[_0xb893b1(0x1bc)],_0x215fe4=Object[_0xb893b1(0x490)],_0x3d5111=(_0x5a8a47,_0x5af8d5,_0x3cca27,_0x5c69b8)=>{const _0xc6deb6=_0xb893b1;for(var _0x55cfc4=_0x5c69b8>0x1?void 0x0:_0x5c69b8?_0x215fe4(_0x5af8d5,_0x3cca27):_0x5af8d5,_0x336bc7=_0x5a8a47[_0xc6deb6(0x4d8)]-0x1,_0x458c92;_0x336bc7>=0x0;_0x336bc7--)(_0x458c92=_0x5a8a47[_0x336bc7])&&(_0x55cfc4=(_0x5c69b8?_0x458c92(_0x5af8d5,_0x3cca27,_0x55cfc4):_0x458c92(_0x55cfc4))||_0x55cfc4);return _0x5c69b8&&_0x55cfc4&&_0x4ceb08(_0x5af8d5,_0x3cca27,_0x55cfc4),_0x55cfc4;},_0x2a101f=(_0x1ac9b6,_0x5ee826)=>(_0x37daa0,_0x5083b0)=>_0x5ee826(_0x37daa0,_0x5083b0,_0x1ac9b6);_0x3b52c4[_0xb893b1(0x11f)]=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x588007,_0x599c57,_0x514ce5,_0x54d13,_0x375c9b,_0x3b4db2){const _0x541cd2=_0xb893b1;super(),_0xf1fe43(this,_0x541cd2(0x515),new _0x4655d9['BehaviorSubject'](void 0x0)),_0xf1fe43(this,_0x541cd2(0x23a),this['_socket$']['asObservable']()),_0xf1fe43(this,_0x541cd2(0x471),null),_0xf1fe43(this,'_sessions',new Map()),_0xf1fe43(this,_0x541cd2(0x2ac),new _0x4655d9[(_0x541cd2(0x293))](_0x442957[_0x541cd2(0x4e7)])),_0xf1fe43(this,_0x541cd2(0x431),this[_0x541cd2(0x2ac)][_0x541cd2(0x526)]()),_0xf1fe43(this,_0x541cd2(0x37d),!0x1),_0xf1fe43(this,'_retryConnectingTimer'),_0xf1fe43(this,_0x541cd2(0x430),0x0),_0xf1fe43(this,'_sendHeartbeatTimer'),_0xf1fe43(this,_0x541cd2(0x313)),(this[_0x541cd2(0x126)]=_0x588007,this[_0x541cd2(0x341)]=_0x599c57,this['_messageService']=_0x514ce5,this[_0x541cd2(0x482)]=_0x54d13,this[_0x541cd2(0x2f3)]=_0x375c9b,this['_socketService']=_0x3b4db2,this[_0x541cd2(0x393)]());}get[_0xb893b1(0x321)](){const _0x27aa55=_0xb893b1;return this[_0x27aa55(0x515)][_0x27aa55(0x38d)]();}[_0xb893b1(0x393)](){const _0x1b2caf=_0xb893b1;this['_listenToOfflineEvent'](),this[_0x1b2caf(0x303)]();}['dispose'](){const _0x5aa4d6=_0xb893b1;super[_0x5aa4d6(0x50d)](),this[_0x5aa4d6(0x25c)][_0x5aa4d6(0x3b7)](_0xd8a5a4=>_0xd8a5a4[_0x5aa4d6(0x50d)]()),this['_sessions'][_0x5aa4d6(0x48c)](),this[_0x5aa4d6(0x2ac)]['complete']();}async[_0xb893b1(0x213)](_0x41909d){const _0x50047c=_0xb893b1;if(this[_0x50047c(0x25c)]['has'](_0x41909d))return this[_0x50047c(0x25c)][_0x50047c(0x19d)](_0x41909d);this['_tryEnsureSocket']();const _0x3feeb8=this[_0x50047c(0x126)][_0x50047c(0x361)](_0x3b52c4[_0x50047c(0x2e2)],_0x41909d,this[_0x50047c(0x515)][_0x50047c(0x526)]());return this[_0x50047c(0x25c)]['set'](_0x41909d,_0x3feeb8),_0x3feeb8;}['closeSession'](_0x51bdaa){const _0x5182c1=_0xb893b1;var _0x353ccc;const _0xdbe59c=this[_0x5182c1(0x25c)][_0x5182c1(0x19d)](_0x51bdaa);_0xdbe59c&&(this[_0x5182c1(0x25c)]['delete'](_0x51bdaa),_0xdbe59c[_0x5182c1(0x3c9)]()),this[_0x5182c1(0x25c)]['size']||(_0x353ccc=this[_0x5182c1(0x321)])==null||_0x353ccc[_0x5182c1(0x3c9)]();}[_0xb893b1(0x29e)](){const _0x57fc9e=_0xb893b1;this[_0x57fc9e(0x430)]=0x0,this[_0x57fc9e(0x3aa)]!=null&&(clearTimeout(this[_0x57fc9e(0x3aa)]),this['_retryConnectingTimer']=null),this[_0x57fc9e(0x2c8)]();}['_createSocket'](){const _0x200836=_0xb893b1;var _0x1251c2,_0x1ab8e2;const _0x10a885=this['_configService'][_0x200836(0x22b)](_0x4766f5),_0x2df255=this[_0x200836(0x2f3)][_0x200836(0x22b)](_0x271aa0),_0x532a47=(_0x1ab8e2=(_0x1251c2=_0x2df255==null?void 0x0:_0x2df255[_0x200836(0x3cb)])!=null?_0x1251c2:_0x10a885)!=null?_0x1ab8e2:_0x5b23cf,_0xf2991a=this['_socketService'][_0x200836(0x530)](_0x532a47);return this[_0x200836(0x471)]=_0xf2991a,_0xf2991a;}['_tryEnsureSocket'](){const _0x25e522=_0xb893b1;var _0x12e603,_0x16ad69;try{const _0x5473cb=(_0x16ad69=(_0x12e603=this['_socket'])!=null?_0x12e603:this[_0x25e522(0x471)])!=null?_0x16ad69:this['_createSocket']();if(_0x5473cb){const _0x4ff774=_0x5473cb[_0x25e522(0x2c0)];_0x5473cb['send']=_0x5e92df=>(this[_0x25e522(0x443)](),_0x4ff774['apply'](_0x5473cb,[_0x5e92df])),_0x5473cb[_0x25e522(0x20b)][_0x25e522(0x1b6)](_0x2459f8=>this['_onMessage'](_0x5473cb,_0x2459f8)),_0x5473cb[_0x25e522(0x41f)][_0x25e522(0x3ca)](_0x5d8a56[_0x25e522(0x3e4)](0x1))[_0x25e522(0x1b6)](_0x50c0bf=>this['_logService'][_0x25e522(0x368)](_0x25e522(0x3d7),_0x50c0bf)),_0x5473cb[_0x25e522(0x4ae)][_0x25e522(0x3ca)](_0x5d8a56[_0x25e522(0x3e4)](0x1))['subscribe'](()=>{const _0x72ed01=_0x25e522;this[_0x72ed01(0x11b)](_0x5473cb);}),_0x5473cb[_0x25e522(0x221)][_0x25e522(0x3ca)](_0x5d8a56['take'](0x1))[_0x25e522(0x1b6)](_0x4fe56=>{const _0x2f5f32=_0x25e522;this[_0x2f5f32(0x482)]['debug']('[CollaborationSessionService]','socket\x20close',_0x4fe56),this[_0x2f5f32(0x359)]();});}}catch(_0x17a3bc){this['_logService'][_0x25e522(0x368)](_0x17a3bc),this['_onConnectionFailed']();}}[_0xb893b1(0x11b)](_0x3749bc){const _0x4c9a8d=_0xb893b1;this[_0x4c9a8d(0x482)][_0x4c9a8d(0x20d)]('[CollaborationSessionService]',_0x4c9a8d(0x1cd)),_0x3749bc[_0x4c9a8d(0x2c0)]({'cmd':_0x4a723e[_0x4c9a8d(0x2e7)]}),this[_0x4c9a8d(0x443)]();}[_0xb893b1(0x405)](){const _0x5282c7=_0xb893b1;window[_0x5282c7(0x466)](_0x5282c7(0x2bf),()=>this['_onOffline']());}[_0xb893b1(0x1da)](){const _0x3fbd7e=_0xb893b1;this[_0x3fbd7e(0x37d)]=!0x1,this[_0x3fbd7e(0x471)]=null,this[_0x3fbd7e(0x2ac)][_0x3fbd7e(0x174)](_0x442957[_0x3fbd7e(0x4d1)]),this['_socket$'][_0x3fbd7e(0x174)](null),this[_0x3fbd7e(0x4e9)](),this[_0x3fbd7e(0x1ce)]();}[_0xb893b1(0x359)](){const _0x2d1f95=_0xb893b1;var _0x1c1140;this[_0x2d1f95(0x1da)](),this[_0x2d1f95(0x430)]<((_0x1c1140=this[_0x2d1f95(0x2f3)][_0x2d1f95(0x22b)](_0x1f388f))!=null?_0x1c1140:0x3)?(this['_messageService']['show']({'key':_0x2d1f95(0x356),'type':_0x145b31[_0x2d1f95(0x3de)][_0x2d1f95(0x2e0)],'content':this['_localeService']['t'](_0x2d1f95(0x346))}),this[_0x2d1f95(0x2c8)]()):this[_0x2d1f95(0x166)][_0x2d1f95(0x250)]({'key':_0x2d1f95(0x356),'type':_0x145b31[_0x2d1f95(0x3de)][_0x2d1f95(0x4b2)],'content':this[_0x2d1f95(0x341)]['t'](_0x2d1f95(0x39c))});}[_0xb893b1(0x303)](){const _0xc7936b=_0xb893b1,_0x283e7e=()=>{const _0x3786f9=_0x104b;this[_0x3786f9(0x321)]||this[_0x3786f9(0x29e)]();},_0x681cc7=()=>{const _0x10938c=_0x104b;this['_socket']||document['visibilityState']===_0x10938c(0x1c5)||this[_0x10938c(0x29e)]();};window['addEventListener']('online',_0x283e7e),document[_0xc7936b(0x466)](_0xc7936b(0x51c),_0x681cc7);}['_tryReconnect'](){const _0x3576f0=_0xb893b1;var _0x103a30;const _0x5ec46a=this[_0x3576f0(0x430)],_0x47a347=this[_0x3576f0(0x2f3)][_0x3576f0(0x22b)](_0x271aa0),_0x396b50=_0x5ec46a===0x0?0x0:((_0x103a30=_0x47a347==null?void 0x0:_0x47a347[_0x3576f0(0x35b)])!=null?_0x103a30:0x4e20)*0x2**_0x5ec46a;this[_0x3576f0(0x3aa)]=window[_0x3576f0(0x28a)](()=>{const _0x24ab5b=_0x3576f0;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x24ab5b(0xf7)]();},_0x396b50),this[_0x3576f0(0x430)]+=0x1;}[_0xb893b1(0x50a)](_0x343ce,_0x1524c7){const _0x21cb98=_0xb893b1,{cmd:_0x3e2f59}=_0x1524c7;_0x3e2f59===_0x4a723e[_0x21cb98(0x2e7)]&&!this[_0x21cb98(0x37d)]&&(_0x343ce[_0x21cb98(0x40d)]=_0x1524c7['data']['memberID'],this['_socket$']['next'](_0x343ce),this['_status$'][_0x21cb98(0x174)](_0x442957[_0x21cb98(0x4d5)]),this[_0x21cb98(0x37d)]=!0x0,this[_0x21cb98(0x471)]=null),_0x3e2f59===_0x4a723e[_0x21cb98(0x269)]&&this[_0x21cb98(0x4e9)](),this[_0x21cb98(0x443)]();}[_0xb893b1(0x443)](){const _0x2947a4=_0xb893b1;var _0x4f1883;this[_0x2947a4(0x1ce)](),this[_0x2947a4(0x42a)]=window[_0x2947a4(0x28a)](()=>this[_0x2947a4(0x235)](),(_0x4f1883=this[_0x2947a4(0x2f3)][_0x2947a4(0x22b)](_0x407e6e))!=null?_0x4f1883:0x7530);}[_0xb893b1(0x235)](){const _0x355fad=_0xb893b1;this[_0x355fad(0x321)][_0x355fad(0x2c0)]({'cmd':_0x4a723e[_0x355fad(0x269)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x24b24f=_0xb893b1;var _0x3e83b1;this[_0x24b24f(0x313)]=window[_0x24b24f(0x28a)](()=>this[_0x24b24f(0x359)](),(_0x3e83b1=this['_configService'][_0x24b24f(0x22b)](_0x3ceb27))!=null?_0x3e83b1:0x4e20);}[_0xb893b1(0x1ce)](){const _0x510c10=_0xb893b1;this[_0x510c10(0x42a)]!=null&&(clearTimeout(this[_0x510c10(0x42a)]),this['_sendHeartbeatTimer']=null);}[_0xb893b1(0x4e9)](){const _0x3e115a=_0xb893b1;this[_0x3e115a(0x313)]!=null&&(clearTimeout(this[_0x3e115a(0x313)]),this[_0x3e115a(0x313)]=null);}},_0x3b52c4[_0xb893b1(0x11f)]=_0x3d5111([_0x2a101f(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0x2a101f(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4ee)])),_0x2a101f(0x2,_0x4d3c2b['IMessageService']),_0x2a101f(0x3,_0x58b389[_0xb893b1(0x46a)]),_0x2a101f(0x4,_0x58b389[_0xb893b1(0x1f6)]),_0x2a101f(0x5,_0x383a5a)],_0x3b52c4[_0xb893b1(0x11f)]);for(var _0x4c2442=[],_0x564fde=0x0;_0x564fde<0x100;++_0x564fde)_0x4c2442['push']((_0x564fde+0x100)['toString'](0x10)[_0xb893b1(0x326)](0x1));function _0x42aa3c(_0x37b4cb,_0x3cbb73=0x0){return(_0x4c2442[_0x37b4cb[_0x3cbb73+0x0]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x1]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x2]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x3]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0x4]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x5]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0x6]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x7]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0x8]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x9]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0xa]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xb]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xc]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xd]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xe]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xf]])['toLowerCase']();}var _0x5147ba,_0x87bb7=new Uint8Array(0x10);function _0x13f9d7(){const _0x129b16=_0xb893b1;if(!_0x5147ba&&(_0x5147ba=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x129b16(0x249)]['bind'](crypto),!_0x5147ba))throw new Error(_0x129b16(0x2e4));return _0x5147ba(_0x87bb7);}var _0x416451=typeof crypto<'u'&&crypto[_0xb893b1(0x2a4)]&&crypto['randomUUID']['bind'](crypto);const _0x391cc3={'randomUUID':_0x416451};function _0x3b5e61(_0x275992,_0x3df3bd,_0x51fd9e){const _0x11667e=_0xb893b1;if(_0x391cc3[_0x11667e(0x2a4)]&&!_0x3df3bd&&!_0x275992)return _0x391cc3[_0x11667e(0x2a4)]();_0x275992=_0x275992||{};var _0x2fae71=_0x275992['random']||(_0x275992[_0x11667e(0x4fa)]||_0x13f9d7)();return _0x2fae71[0x6]=_0x2fae71[0x6]&0xf|0x40,_0x2fae71[0x8]=_0x2fae71[0x8]&0x3f|0x80,_0x42aa3c(_0x2fae71);}var _0x1c52a5=Object[_0xb893b1(0x1bc)],_0xc788f0=Object[_0xb893b1(0x490)],_0xa359cd=(_0x55709b,_0x5dffc0,_0x11219f,_0x4697f4)=>{const _0x3e0807=_0xb893b1;for(var _0x26c98e=_0x4697f4>0x1?void 0x0:_0x4697f4?_0xc788f0(_0x5dffc0,_0x11219f):_0x5dffc0,_0x4e738b=_0x55709b[_0x3e0807(0x4d8)]-0x1,_0x13885e;_0x4e738b>=0x0;_0x4e738b--)(_0x13885e=_0x55709b[_0x4e738b])&&(_0x26c98e=(_0x4697f4?_0x13885e(_0x5dffc0,_0x11219f,_0x26c98e):_0x13885e(_0x26c98e))||_0x26c98e);return _0x4697f4&&_0x26c98e&&_0x1c52a5(_0x5dffc0,_0x11219f,_0x26c98e),_0x26c98e;},_0x26a354=(_0x466ea2,_0x2acd00)=>(_0x392894,_0x5697e9)=>_0x2acd00(_0x392894,_0x5697e9,_0x466ea2);let _0x3f6990=class{constructor(_0x1fcbb6,_0x416160,_0x57941b){const _0x3eeaad=_0xb893b1;this['_injector']=_0x1fcbb6,this[_0x3eeaad(0x18d)]=_0x416160,this[_0x3eeaad(0x508)]=_0x57941b;}[_0xb893b1(0x31b)](_0x22d337){const _0x160157=_0xb893b1;this[_0x160157(0x459)](_0x22d337),this[_0x160157(0x2b6)](_0x22d337);}[_0xb893b1(0x10c)](_0x5d6a58){const _0x194a73=_0xb893b1,{unitID:_0x3ee50b}=_0x5d6a58,_0x43dcb4=this[_0x194a73(0x508)][_0x194a73(0x117)](_0x3ee50b)[_0x194a73(0x43a)](_0x24db92[_0x194a73(0x30f)]),{redoCache:_0x12025e}=_0x43dcb4['getUndoRedoMutationParamsCache']();if(_0x12025e[_0x194a73(0x4d8)]===0x0)return _0x5d6a58;let _0x9a2349=_0x58b389[_0x194a73(0x36e)]['deepClone'](_0x5d6a58[_0x194a73(0x44a)][0x0]);for(let _0x305f42=0x0;_0x305f42<_0x12025e[_0x194a73(0x4d8)];_0x305f42++){const _0x4ab098={'id':_0x194a73(0x29a),'params':{..._0x12025e[_0x305f42]}},_0x271540=this[_0x194a73(0x18d)][_0x194a73(0x10a)](_0x9a2349,_0x4ab098,!0x1);if(_0x5e5ab1[_0x194a73(0x251)](_0x271540))throw _0x271540[_0x194a73(0x368)];_0x9a2349=_0x271540['m1Prime'];}return{..._0x58b389[_0x194a73(0x36e)]['deepClone'](_0x5d6a58),'mutations':[_0x9a2349]};}[_0xb893b1(0x459)](_0x5def7c){const _0x4f7407=_0xb893b1,{unitID:_0x5c4082}=_0x5def7c,_0x56ca3d=this[_0x4f7407(0x508)][_0x4f7407(0x117)](_0x5c4082)[_0x4f7407(0x43a)](_0x24db92[_0x4f7407(0x30f)]),{undoCache:_0x1724c4,redoCache:_0x1774ea}=_0x56ca3d['getUndoRedoMutationParamsCache']();if(_0x1724c4['length']===0x0||_0x1774ea[_0x4f7407(0x4d8)]===0x0)return;const _0x2d7312=[],_0xf0a60=[];let _0x276b15=_0x58b389[_0x4f7407(0x36e)][_0x4f7407(0xfc)](_0x5def7c[_0x4f7407(0x44a)][0x0]),_0x55fc27=_0x58b389[_0x4f7407(0x36e)][_0x4f7407(0xfc)](_0x5def7c['mutations'][0x0]);for(let _0x44b0a5=_0x1724c4[_0x4f7407(0x4d8)]-0x1;_0x44b0a5>=0x0;_0x44b0a5--){const _0x392ab5={'id':_0x4f7407(0x29a),'params':{..._0x1724c4[_0x44b0a5]}},_0x5d5801={'id':_0x4f7407(0x29a),'params':{..._0x1774ea[_0x44b0a5]}},_0x197182=this[_0x4f7407(0x18d)][_0x4f7407(0x10a)](_0x276b15,_0x392ab5,!0x1),_0xd768a3=this[_0x4f7407(0x18d)][_0x4f7407(0x10a)](_0x55fc27,_0x5d5801,!0x1);if(_0x5e5ab1[_0x4f7407(0x251)](_0x197182))throw _0x197182[_0x4f7407(0x368)];if(_0x5e5ab1[_0x4f7407(0x251)](_0xd768a3))throw _0xd768a3['error'];_0x2d7312['unshift'](_0x197182[_0x4f7407(0x23f)][_0x4f7407(0x16b)]),_0xf0a60[_0x4f7407(0x3d1)](_0xd768a3[_0x4f7407(0x23f)][_0x4f7407(0x16b)]),_0x276b15=_0x197182[_0x4f7407(0x148)],_0x55fc27=_0xd768a3[_0x4f7407(0x148)];}_0x56ca3d[_0x4f7407(0x100)]({'undoCache':_0x2d7312,'redoCache':_0xf0a60});}[_0xb893b1(0x2b6)](_0x54cfb3){const _0x149683=_0xb893b1,{unitID:_0x36f0af}=_0x54cfb3,_0x4613b2=this[_0x149683(0x508)]['getRenderById'](_0x36f0af)[_0x149683(0x43a)](_0x24db92[_0x149683(0x30f)]),_0x47c20d=_0x4613b2[_0x149683(0x3b0)]();if(_0x47c20d==null)return;const _0x4d4598=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54cfb3[_0x149683(0x386)],'actions':null,'textRanges':[_0x47c20d]}}],_0x44c55b=this[_0x149683(0x18d)]['transformMutationsWithChangeset'](_0x54cfb3,_0x4d4598);if(!_0x5e5ab1[_0x149683(0x542)](_0x44c55b))throw _0x44c55b['error'];const _0x88f3d7=_0x44c55b['m2Prime'][0x0][_0x149683(0x16b)][_0x149683(0x107)];Array['isArray'](_0x88f3d7)&&_0x88f3d7[_0x149683(0x4d8)]&&_0x4613b2[_0x149683(0x494)](_0x88f3d7[0x0]);}};_0x3f6990=_0xa359cd([_0x26a354(0x0,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x1d4)])),_0x26a354(0x1,_0x5e5ab1[_0xb893b1(0x157)]),_0x26a354(0x2,_0x1c7683[_0xb893b1(0x3eb)])],_0x3f6990);var _0x339399=Object['defineProperty'],_0x547bb6=Object[_0xb893b1(0x490)],_0x355595=(_0x1eb734,_0x223a96,_0x46d747,_0x559e73)=>{const _0x1d460e=_0xb893b1;for(var _0x50b9ed=_0x559e73>0x1?void 0x0:_0x559e73?_0x547bb6(_0x223a96,_0x46d747):_0x223a96,_0x1b1c11=_0x1eb734[_0x1d460e(0x4d8)]-0x1,_0x2c595c;_0x1b1c11>=0x0;_0x1b1c11--)(_0x2c595c=_0x1eb734[_0x1b1c11])&&(_0x50b9ed=(_0x559e73?_0x2c595c(_0x223a96,_0x46d747,_0x50b9ed):_0x2c595c(_0x50b9ed))||_0x50b9ed);return _0x559e73&&_0x50b9ed&&_0x339399(_0x223a96,_0x46d747,_0x50b9ed),_0x50b9ed;},_0x4c8609=(_0x3801bf,_0x5d9796)=>(_0x1edb2c,_0x389000)=>_0x5d9796(_0x1edb2c,_0x389000,_0x3801bf);_0x3b52c4[_0xb893b1(0x2ff)]=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x46f8b6,_0x3c7b2a,_0x549342,_0x7a63c4,_0x2d99f3){const _0x2fef9c=_0xb893b1;super(),_0xf1fe43(this,'_cachedData',new Map()),_0xf1fe43(this,_0x2fef9c(0x2bb),new Map()),_0xf1fe43(this,_0x2fef9c(0x509),!0x1),(this['_configService']=_0x46f8b6,this[_0x2fef9c(0x46c)]=_0x3c7b2a,this[_0x2fef9c(0x3e9)]=_0x549342,this[_0x2fef9c(0x341)]=_0x7a63c4,this[_0x2fef9c(0x3ee)]=_0x2d99f3,this[_0x2fef9c(0x238)]());}['disableLocalCache'](){const _0xa51a56=_0xb893b1;this[_0xa51a56(0x509)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0xb893b1(0x50d)](){const _0x160dc9=_0xb893b1;this[_0x160dc9(0x3c1)]()[_0x160dc9(0x2e6)](()=>super[_0x160dc9(0x50d)]());}async[_0xb893b1(0x477)](_0x16f631){const _0x24fe05=_0xb893b1;return this['_disabled']?null:this[_0x24fe05(0x46c)][_0x24fe05(0x41d)](_0x2979de(_0x16f631));}async[_0xb893b1(0x44f)](_0x3ce048,_0xc10511){const _0x3ca68a=_0xb893b1;return!!this[_0x3ca68a(0x46c)][_0x3ca68a(0x1b0)](_0x3ce048,_0xc10511);}[_0xb893b1(0x4b6)](_0x142f26,_0x2a076e,_0x312ca2,_0x30eb4d){const _0x53dc8b=_0xb893b1,_0x56b733=this['_revisionService'][_0x53dc8b(0x183)](_0x142f26);this[_0x53dc8b(0x382)][_0x53dc8b(0x1c2)](_0x142f26,{'unitID':_0x142f26,'type':_0x2a076e,'awaitingChangeset':_0x312ca2,'mutations':_0x30eb4d,'rev':_0x56b733}),this[_0x53dc8b(0x2bb)]['has'](_0x142f26)||this['_scheduleSaving'](_0x142f26);}[_0xb893b1(0x523)](_0x4b97f6){const _0x3f180b=_0xb893b1,_0x4dc79a=this[_0x3f180b(0x1a8)]();_0x4dc79a===0x0?this[_0x3f180b(0x2e8)](_0x4b97f6):this['_saveTaskMap'][_0x3f180b(0x1c2)](_0x4b97f6,setTimeout(()=>this['_saveCache'](_0x4b97f6),_0x4dc79a));}[_0xb893b1(0x1a8)](){const _0x1492ef=_0xb893b1;var _0x43448a;return(_0x43448a=this['_configService'][_0x1492ef(0x22b)](_0x2c3e4f))!=null?_0x43448a:0x3e8;}[_0xb893b1(0x2e8)](_0x7f6f05){const _0x11d802=_0xb893b1,_0x26ae9f=this[_0x11d802(0x2bb)][_0x11d802(0x19d)](_0x7f6f05);return _0x26ae9f!==void 0x0&&window['clearTimeout'](_0x26ae9f),this[_0x11d802(0x46c)][_0x11d802(0x1b0)](_0x2979de(_0x7f6f05),this[_0x11d802(0x382)]['get'](_0x7f6f05))[_0x11d802(0x2e6)](()=>this['_saveTaskMap']['delete'](_0x7f6f05));}async[_0xb893b1(0x3c1)](){const _0x19b76f=_0xb893b1,_0x117165=[];this['_saveTaskMap'][_0x19b76f(0x3b7)]((_0x394326,_0x579ad1)=>{const _0x3ce038=_0x19b76f;window[_0x3ce038(0x41c)](_0x394326),_0x117165[_0x3ce038(0x428)](this['_saveCache'](_0x579ad1)[_0x3ce038(0x2e6)](()=>{const _0x125d17=_0x3ce038;this[_0x125d17(0x2bb)][_0x125d17(0x1d0)](_0x579ad1);}));}),await Promise['all'](_0x117165);}[_0xb893b1(0x238)](){const _0x5214c7=_0xb893b1;this[_0x5214c7(0x14b)](this[_0x5214c7(0x3e9)][_0x5214c7(0x429)](()=>{const _0x5010c1=_0x5214c7;if(this[_0x5010c1(0x2bb)][_0x5010c1(0x30b)])return this[_0x5010c1(0x341)]['t'](_0x5010c1(0x181));}));}},_0x3b52c4[_0xb893b1(0x2ff)]=_0x355595([_0x4c8609(0x0,_0x58b389[_0xb893b1(0x1f6)]),_0x4c8609(0x1,_0x58b389[_0xb893b1(0x33d)]),_0x4c8609(0x2,_0x4d3c2b[_0xb893b1(0x3b2)]),_0x4c8609(0x3,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4ee)])),_0x4c8609(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)]))],_0x3b52c4[_0xb893b1(0x2ff)]);function _0x2979de(_0x1ad460){const _0x4a27fe=_0xb893b1;return _0x4a27fe(0x31f)+_0x1ad460;}var _0x3cef23=Object[_0xb893b1(0x1bc)],_0x33fdab=Object['getOwnPropertyDescriptor'],_0x5b7fd5=(_0x4e88e1,_0x12bd3b,_0x5dba19,_0x2885b2)=>{const _0x39f737=_0xb893b1;for(var _0x14495e=_0x2885b2>0x1?void 0x0:_0x2885b2?_0x33fdab(_0x12bd3b,_0x5dba19):_0x12bd3b,_0x5c023b=_0x4e88e1[_0x39f737(0x4d8)]-0x1,_0x109c0f;_0x5c023b>=0x0;_0x5c023b--)(_0x109c0f=_0x4e88e1[_0x5c023b])&&(_0x14495e=(_0x2885b2?_0x109c0f(_0x12bd3b,_0x5dba19,_0x14495e):_0x109c0f(_0x14495e))||_0x14495e);return _0x2885b2&&_0x14495e&&_0x3cef23(_0x12bd3b,_0x5dba19,_0x14495e),_0x14495e;},_0x190b9f=(_0x31a930,_0x5db587)=>(_0x494cc2,_0xaa7555)=>_0x5db587(_0x494cc2,_0xaa7555,_0x31a930);function _0x177346(_0xb73a5f){const _0x455349=_0xb893b1,{unitID:_0x285811,mutations:_0x1fc123}=_0xb73a5f;return{'unitId':_0x285811,'subUnitId':_0x1fc123[0x0][_0x455349(0x16b)][_0x455349(0x3a1)]};}let _0xc29e66=class{constructor(_0x44bc31,_0x3607dd,_0x3e717f){const _0x19f61b=_0xb893b1;this[_0x19f61b(0x126)]=_0x44bc31,this[_0x19f61b(0x18d)]=_0x3607dd,this[_0x19f61b(0x172)]=_0x3e717f;}[_0xb893b1(0x45a)](_0x57331e){const _0x29d140=_0xb893b1;var _0x118a2b,_0x2cbacf,_0xe92552,_0x1a751e;const _0x59c4c0=this[_0x29d140(0x126)][_0x29d140(0x19d)](_0x2d2223[_0x29d140(0x3bf)]),{unitId:_0x35fa3a,subUnitId:_0x1f94a1}=_0x177346(_0x57331e),_0x380012=_0x59c4c0[_0x29d140(0x2d0)](_0x35fa3a)[_0x29d140(0x2d2)](),_0x562231=(_0x2cbacf=(_0x118a2b=this['_instanceService'][_0x29d140(0x1b5)](_0x35fa3a))==null?void 0x0:_0x118a2b[_0x29d140(0x131)]())==null?void 0x0:_0x2cbacf[_0x29d140(0x499)]();if(_0x380012['length']===0x0||!_0x35fa3a||!_0x1f94a1)return;const _0xd5282f=[{'id':_0x2d2223[_0x29d140(0x327)]['id'],'params':{'unitId':_0x35fa3a,'subUnitId':_0x562231,'selections':_0x58b389[_0x29d140(0x36e)][_0x29d140(0xfc)](_0x380012)}}],_0x464293=this['_transformService'][_0x29d140(0x23b)](_0x57331e,_0xd5282f);if(!_0x5e5ab1[_0x29d140(0x542)](_0x464293))throw _0x464293[_0x29d140(0x368)];const _0xc4b002=(_0x1a751e=(_0xe92552=_0x464293[_0x29d140(0x23f)][0x0])==null?void 0x0:_0xe92552[_0x29d140(0x16b)])==null?void 0x0:_0x1a751e[_0x29d140(0x163)];if(Array['isArray'](_0xc4b002)&&_0xc4b002['length']){if(_0xc4b002[_0x29d140(0x4d8)]===_0xd5282f[0x0][_0x29d140(0x16b)][_0x29d140(0x163)][_0x29d140(0x4d8)]&&_0xc4b002[_0x29d140(0x33f)]((_0x1530ce,_0x592ba4)=>_0x58b389[_0x29d140(0x17a)]['equals'](_0x1530ce[_0x29d140(0x385)],_0xd5282f[0x0]['params']['selections'][_0x592ba4][_0x29d140(0x385)])))return;this[_0x29d140(0x126)][_0x29d140(0x19d)](_0x58b389[_0x29d140(0x1ec)])[_0x29d140(0x3c5)](_0x2d2223['SetSelectionsOperation']['id'],{'unitId':_0x35fa3a,'subUnitId':_0x562231,'selections':_0xc4b002});}}};_0xc29e66=_0x5b7fd5([_0x190b9f(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x190b9f(0x1,_0x5e5ab1[_0xb893b1(0x157)]),_0x190b9f(0x2,_0x58b389['IUniverInstanceService'])],_0xc29e66);const _0x8f0d7b=_0x58b389[_0xb893b1(0x202)](_0xb893b1(0x1f0));var _0x213bfc=(_0x19db94=>(_0x19db94[_0x19db94[_0xb893b1(0x19c)]=0x0]=_0xb893b1(0x19c),_0x19db94[_0x19db94[_0xb893b1(0x302)]=0x1]=_0xb893b1(0x302),_0x19db94))(_0x213bfc||{});const _0x2eb60d=0x7530,_0x251c86='ACTIVE_UNIT_EVENT_CHANNEL';class _0x300a07 extends _0x58b389[_0xb893b1(0x4dc)]{constructor(){const _0xc4a03c=_0xb893b1;super(),_0xf1fe43(this,'_id',_0x58b389[_0xc4a03c(0x36e)][_0xc4a03c(0x3e0)]()),_0xf1fe43(this,_0xc4a03c(0x438),new Set()),_0xf1fe43(this,'_unitOnClients',new Map()),_0xf1fe43(this,_0xc4a03c(0x354),null),_0xf1fe43(this,_0xc4a03c(0x41e),new Map()),_0xf1fe43(this,_0xc4a03c(0x513),new Map()),this[_0xc4a03c(0x3e2)]();}[_0xb893b1(0x50d)](){const _0x42a5c0=_0xb893b1;super[_0x42a5c0(0x50d)](),this[_0x42a5c0(0x41e)]['forEach']((_0x158cd0,_0x230fc0)=>this['_removeClearOtherTimer'](_0x230fc0)),this[_0x42a5c0(0x354)]&&window[_0x42a5c0(0x350)](this['_heartbeatTimer']);}[_0xb893b1(0x3c6)](_0x3ba10f){const _0x14bd89=_0xb893b1;return this['_ensureSubject'](_0x3ba10f)[_0x14bd89(0x3ca)](_0x4655d9[_0x14bd89(0x40f)]());}[_0xb893b1(0x2c1)](_0x45e95f){const _0x59c258=_0xb893b1;this[_0x59c258(0x438)][_0x59c258(0x30b)]===0x0&&this[_0x59c258(0x503)](),this[_0x59c258(0x438)][_0x59c258(0x510)](_0x45e95f),this[_0x59c258(0x1df)]({'type':0x0,'memberID':this[_0x59c258(0x1e8)],'unitIDs':[_0x45e95f],'isForwarded':!0x1});}[_0xb893b1(0x40b)](_0x290bc8){const _0x3e112d=_0xb893b1;this[_0x3e112d(0x438)][_0x3e112d(0x1d0)](_0x290bc8),this[_0x3e112d(0x438)]['size']===0x0&&this[_0x3e112d(0x354)]&&window['clearInterval'](this[_0x3e112d(0x354)]);}[_0xb893b1(0x3e2)](){const _0x17bf92=_0xb893b1;this['disposeWithMe'](_0x58b389[_0x17bf92(0x1bf)](_0x4655d9[_0x17bf92(0x47e)](window,_0x17bf92(0x234))[_0x17bf92(0x1b6)](_0x7d65f9=>{const _0x2a4de8=_0x17bf92;if(_0x7d65f9['key']!==_0x251c86||!_0x7d65f9[_0x2a4de8(0x1b1)])return;const _0x38cea2=JSON[_0x2a4de8(0x17e)](_0x7d65f9[_0x2a4de8(0x1b1)]);this[_0x2a4de8(0x4d3)](_0x38cea2);}))),window[_0x17bf92(0x466)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x17bf92(0x1e8)],'unitIDs':Array[_0x17bf92(0x169)](this[_0x17bf92(0x438)])}));}[_0xb893b1(0x4d3)](_0x1e2ab9){const _0x5c4bf1=_0xb893b1;switch(_0x1e2ab9[_0x5c4bf1(0x191)]){case 0x0:this[_0x5c4bf1(0x2f0)](_0x1e2ab9);break;case 0x1:this[_0x5c4bf1(0x2eb)](_0x1e2ab9);break;case 0x2:this[_0x5c4bf1(0x397)](_0x1e2ab9);break;}}[_0xb893b1(0x2f0)](_0x1ab537){const _0x1c1a69=_0xb893b1,{unitIDs:_0x1e8a2c,memberID:_0x36567e,isForwarded:_0x499d83}=_0x1ab537;_0x1e8a2c[_0x1c1a69(0x3b7)](_0x2ebd5b=>{const _0x10e5dd=_0x1c1a69;if(!_0x499d83&&this[_0x10e5dd(0x2ab)]['has'](_0x2ebd5b)&&this[_0x10e5dd(0x23e)](_0x2ebd5b)[_0x10e5dd(0x174)](0x1),!this['_unitOnClients'][_0x10e5dd(0x2dc)](_0x2ebd5b)||!this['_unitOnClients'][_0x10e5dd(0x19d)](_0x2ebd5b)[_0x10e5dd(0x2dc)](_0x36567e)){const _0x1bb71a=this['_unitOnClients']['get'](_0x2ebd5b)||new Set();_0x1bb71a[_0x10e5dd(0x510)](_0x36567e),this[_0x10e5dd(0x2ab)][_0x10e5dd(0x1c2)](_0x2ebd5b,_0x1bb71a),this[_0x10e5dd(0x223)](_0x36567e);}}),_0x499d83||this[_0x1c1a69(0x1df)]({'type':0x0,'memberID':this[_0x1c1a69(0x1e8)],'unitIDs':[...this[_0x1c1a69(0x438)]],'isForwarded':!0x0});}[_0xb893b1(0x223)](_0x4a1d71){const _0x23f1f5=_0xb893b1;this['_removeClearOtherTimer'](_0x4a1d71);const _0xce9cf5=window[_0x23f1f5(0x28a)](()=>{const _0x1ce98c=_0x23f1f5;this[_0x1ce98c(0x2ab)][_0x1ce98c(0x3b7)](_0x3b23ba=>{const _0x42bbf4=_0x1ce98c;_0x3b23ba[_0x42bbf4(0x1d0)](_0x4a1d71);});},_0x2eb60d*0x2);this['_clearOtherTimers']['set'](_0x4a1d71,_0xce9cf5);}[_0xb893b1(0x31c)](_0x4c80e5){const _0x17776f=_0xb893b1;if(this[_0x17776f(0x41e)][_0x17776f(0x2dc)](_0x4c80e5)){const _0x463452=this[_0x17776f(0x41e)]['get'](_0x4c80e5);_0x463452&&window[_0x17776f(0x41c)](_0x463452),this[_0x17776f(0x41e)]['set'](_0x4c80e5,null);}}[_0xb893b1(0x2eb)](_0x190bb5){const _0x5dcc6a=_0xb893b1,{memberID:_0x206ecb,unitIDs:_0x87a1bd}=_0x190bb5;_0x87a1bd[_0x5dcc6a(0x3b7)](_0x1afbbe=>{const _0xb0246a=_0x5dcc6a;var _0x24e003;const _0x180c17=this[_0xb0246a(0x2ab)][_0xb0246a(0x19d)](_0x1afbbe);_0x180c17&&(_0x180c17[_0xb0246a(0x1d0)](_0x206ecb),(_0x24e003=this[_0xb0246a(0x23e)](_0x1afbbe))==null||_0x24e003[_0xb0246a(0x174)](_0x180c17[_0xb0246a(0x30b)]===0x0?0x0:0x1));}),this[_0x5dcc6a(0x31c)](_0x206ecb);}[_0xb893b1(0x397)](_0x35a274){const _0x2459a3=_0xb893b1;this[_0x2459a3(0x223)](_0x35a274[_0x2459a3(0x40d)]);}[_0xb893b1(0x1df)](_0x32b653){const _0x52c490=_0xb893b1;localStorage[_0x52c490(0x1b0)](_0x251c86,JSON['stringify'](_0x32b653));}[_0xb893b1(0x503)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x51d48b=_0x104b;this[_0x51d48b(0x1df)]({'type':0x2,'memberID':this['_id']});},_0x2eb60d);}[_0xb893b1(0x23e)](_0x1b97f1){const _0x2ad913=_0xb893b1;return this[_0x2ad913(0x513)][_0x2ad913(0x2dc)](_0x1b97f1)||this['_unitStatus'][_0x2ad913(0x1c2)](_0x1b97f1,new _0x4655d9[(_0x2ad913(0x293))](0x0)),this[_0x2ad913(0x513)][_0x2ad913(0x19d)](_0x1b97f1);}}function _0x21cb6a(_0x4f0ba9){const _0x5e141a=_0xb893b1;let _0x57df5e='';for(const _0x479886 of _0x4f0ba9){const {startOffset:_0x489fc9,endOffset:_0x2c4730,isActive:_0x150159,rangeType:_0x2236be,segmentId:_0x32ec7f,segmentPage:_0x528c7d}=_0x479886;_0x57df5e[_0x5e141a(0x4d8)]&&(_0x57df5e+=','),_0x57df5e+=_0x489fc9+':'+_0x2c4730+':'+(_0x150159?'1':'0')+':'+_0x2236be+':'+_0x32ec7f+':'+_0x528c7d;}return _0x57df5e;}function _0x1f2f83(_0x25c8ff){const _0xf5f2cd=_0xb893b1,_0x159299=_0x25c8ff[_0xf5f2cd(0x268)](','),_0x40afe6=[];for(const _0xd4405e of _0x159299){const [_0x5a9efb,_0x2b3614,_0x36854e,_0x2d223a,_0x1bd001,_0x84bd46]=_0xd4405e[_0xf5f2cd(0x268)](':');_0x40afe6[_0xf5f2cd(0x428)]({'startOffset':Number(_0x5a9efb),'endOffset':Number(_0x2b3614),'collapsed':_0x5a9efb===_0x2b3614,'isActive':_0x36854e==='1','rangeType':_0x2d223a===_0x58b389[_0xf5f2cd(0x210)][_0xf5f2cd(0x4a1)]?_0x58b389['DOC_RANGE_TYPE'][_0xf5f2cd(0x4a1)]:_0x58b389[_0xf5f2cd(0x210)][_0xf5f2cd(0x1de)],'segmentId':typeof _0x1bd001==_0xf5f2cd(0x4a5)?String(_0x1bd001):'','segmentPage':Number(_0x84bd46!=null?_0x84bd46:-0x1)});}return _0x40afe6[_0xf5f2cd(0x4cc)](_0x4c9275=>_0x4c9275[_0xf5f2cd(0x3db)])||(_0x40afe6[0x0][_0xf5f2cd(0x3db)]=!0x0),_0x40afe6;}class _0x195ff7 extends _0x58b389[_0xb893b1(0xf8)]{constructor(){const _0x4401fd=_0xb893b1;super(...arguments),_0xf1fe43(this,_0x4401fd(0x48f),new _0x4655d9['BehaviorSubject'](null)),_0xf1fe43(this,_0x4401fd(0x200),this[_0x4401fd(0x48f)][_0x4401fd(0x526)]());}[_0xb893b1(0x218)](_0x1db877){const _0x304d9e=_0xb893b1,{unitID:_0x17aba9,memberID:_0x1b865e,textRanges:_0x5dc486}=_0x1db877,_0x26d0ac=_0x21cb6a(_0x5dc486);if(_0x26d0ac==='')return;const _0x343407={'unitID':_0x17aba9,'memberID':_0x1b865e,'selection':_0x26d0ac};this[_0x304d9e(0x48f)][_0x304d9e(0x174)](_0x343407);}}var _0x40c4bf=Object[_0xb893b1(0x1bc)],_0x4c003f=Object[_0xb893b1(0x490)],_0x2f1a9c=(_0x3da58a,_0xf8056a,_0x332920,_0x3c3d8f)=>{const _0x4fb626=_0xb893b1;for(var _0x17a8cb=_0x3c3d8f>0x1?void 0x0:_0x3c3d8f?_0x4c003f(_0xf8056a,_0x332920):_0xf8056a,_0x58197a=_0x3da58a[_0x4fb626(0x4d8)]-0x1,_0x16feb2;_0x58197a>=0x0;_0x58197a--)(_0x16feb2=_0x3da58a[_0x58197a])&&(_0x17a8cb=(_0x3c3d8f?_0x16feb2(_0xf8056a,_0x332920,_0x17a8cb):_0x16feb2(_0x17a8cb))||_0x17a8cb);return _0x3c3d8f&&_0x17a8cb&&_0x40c4bf(_0xf8056a,_0x332920,_0x17a8cb),_0x17a8cb;},_0x44f171=(_0x37920c,_0x347172)=>(_0x263462,_0x2fda39)=>_0x347172(_0x263462,_0x2fda39,_0x37920c);let _0x5dda6a=class{constructor(_0x424c3c,_0x3faa53){const _0x3e223b=_0xb893b1;this[_0x3e223b(0x126)]=_0x424c3c,this[_0x3e223b(0x18d)]=_0x3faa53;}[_0xb893b1(0x45a)](_0x570384){const _0x589ddd=_0xb893b1;var _0xb4782a;const _0x401b42=this['_injector'][_0x589ddd(0x19d)](_0x124506[_0x589ddd(0x446)]),_0x5e1b76=(_0xb4782a=_0x401b42['getDocRanges']())!=null?_0xb4782a:[];if(_0x5e1b76[_0x589ddd(0x4d8)]===0x0)return;const _0x520438=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x570384[_0x589ddd(0x386)],'actions':null,'textRanges':_0x5e1b76}}],_0x1dffb7=this[_0x589ddd(0x18d)][_0x589ddd(0x23b)](_0x570384,_0x520438);if(!_0x5e5ab1[_0x589ddd(0x542)](_0x1dffb7))throw _0x1dffb7['error'];const _0x156a2b=_0x1dffb7[_0x589ddd(0x23f)][0x0]['params'][_0x589ddd(0x107)];Array[_0x589ddd(0x2f5)](_0x156a2b)&&_0x156a2b[_0x589ddd(0x4d8)]&&_0x401b42[_0x589ddd(0x4c4)](_0x156a2b,!0x1);}};_0x5dda6a=_0x2f1a9c([_0x44f171(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x44f171(0x1,_0x5e5ab1[_0xb893b1(0x157)])],_0x5dda6a);const _0x588cf6=new Set([_0x2d2223[_0xb893b1(0x4be)]['id']]);function _0x58c083(_0x2cb26a,_0x27049c,_0x120071,_0x19e5e9,_0x174cfe){const _0x5dfceb=_0xb893b1;var _0x35fb7e,_0x4f2ea4,_0x469651,_0x3503ea;const _0xd09651=[];for(const _0x1f5830 of _0x2cb26a)if(_0x588cf6['has'](_0x1f5830['id'])){if(_0xd09651[_0x5dfceb(0x4d8)]>0x0)break;_0xd09651[_0x5dfceb(0x428)](_0x1f5830);break;}else _0xd09651[_0x5dfceb(0x428)](_0x1f5830);const _0x5ec30c=(_0x4f2ea4=(_0x35fb7e=_0x174cfe[_0x5dfceb(0x1e5)]())==null?void 0x0:_0x35fb7e[_0x5dfceb(0x12f)])!=null?_0x4f2ea4:_0x5dfceb(0x232),_0x24900e=(_0x3503ea=(_0x469651=_0x174cfe[_0x5dfceb(0x1e5)]())==null?void 0x0:_0x469651[_0x5dfceb(0x40d)])!=null?_0x3503ea:'unknown';return{'changeset':{'unitID':_0x27049c,'type':_0x5e5ab1[_0x5dfceb(0x1f5)](_0x120071[_0x5dfceb(0x416)](_0x27049c)),'baseRev':_0x19e5e9[_0x5dfceb(0x183)](_0x27049c),'revision':0x0,'userID':_0x5ec30c,'memberID':_0x24900e,'mutations':_0xd09651},'pendingMutations':_0x2cb26a[_0x5dfceb(0x326)](_0xd09651[_0x5dfceb(0x4d8)])};}function _0x18e68a(_0x5e7f8a,_0x236ccb,_0x4da64e,_0x13bd58,_0x2ea901){const _0x59484b=_0xb893b1;var _0x13b031,_0x57b1bd,_0x317446,_0x5ddbf0;const _0x5e49ff=[_0x5e7f8a[_0x59484b(0x154)]((_0x1308d2,_0x2df746)=>{const _0x99d19a=_0x59484b;var _0x43064d;const {id:_0x1098a4}=_0x1308d2,{id:_0x10e2d4,type:_0x8a0809}=_0x2df746,_0x4eae07=(_0x43064d=_0x1308d2[_0x99d19a(0x16b)])!=null?_0x43064d:{'actions':null},_0x3bf7da=_0x2df746['params'];if(_0x1098a4&&_0x1098a4!==_0x10e2d4)throw new Error(_0x99d19a(0x152)+_0x1098a4+_0x99d19a(0x1fb)+_0x10e2d4+'.');return{..._0x1308d2,'id':_0x10e2d4,'type':_0x8a0809,'params':{'unitId':_0x3bf7da[_0x99d19a(0x458)],'textRanges':_0x3bf7da[_0x99d19a(0x107)],'actions':_0x58b389[_0x99d19a(0x196)][_0x99d19a(0x215)](_0x4eae07['actions'],_0x3bf7da[_0x99d19a(0x12b)])}};},{})],_0x501489=(_0x57b1bd=(_0x13b031=_0x2ea901[_0x59484b(0x1e5)]())==null?void 0x0:_0x13b031[_0x59484b(0x12f)])!=null?_0x57b1bd:'unknown',_0x4d7f75=(_0x5ddbf0=(_0x317446=_0x2ea901[_0x59484b(0x1e5)]())==null?void 0x0:_0x317446['memberID'])!=null?_0x5ddbf0:_0x59484b(0x232);return{'changeset':{'unitID':_0x236ccb,'type':_0x5e5ab1[_0x59484b(0x1f5)](_0x4da64e[_0x59484b(0x416)](_0x236ccb)),'baseRev':_0x13bd58[_0x59484b(0x183)](_0x236ccb),'revision':0x0,'userID':_0x501489,'memberID':_0x4d7f75,'mutations':_0x5e49ff},'pendingMutations':[]};}function _0x415a18(_0x1f5837,_0x89a87){const _0x3e2cee=_0xb893b1,_0x12f581=new _0x4655d9[(_0x3e2cee(0x30c))](0x1);return setTimeout(()=>_0x12f581['next'](_0x89a87),_0x1f5837),_0x12f581[_0x3e2cee(0x526)]()[_0x3e2cee(0x3ca)](_0x4655d9[_0x3e2cee(0x3e4)](0x1));}const _0x3f51fa={'id':_0x2d2223[_0xb893b1(0x199)]['id'],'type':_0x58b389[_0xb893b1(0x160)][_0xb893b1(0x101)],'params':{}};var _0x161c84=Object['defineProperty'],_0x2128b6=Object[_0xb893b1(0x490)],_0x4ca299=(_0x4c0a1c,_0x385731,_0x26359e,_0x4b6fbb)=>{for(var _0x1ac25e=_0x4b6fbb>0x1?void 0x0:_0x4b6fbb?_0x2128b6(_0x385731,_0x26359e):_0x385731,_0x16663d=_0x4c0a1c['length']-0x1,_0x479fce;_0x16663d>=0x0;_0x16663d--)(_0x479fce=_0x4c0a1c[_0x16663d])&&(_0x1ac25e=(_0x4b6fbb?_0x479fce(_0x385731,_0x26359e,_0x1ac25e):_0x479fce(_0x1ac25e))||_0x1ac25e);return _0x4b6fbb&&_0x1ac25e&&_0x161c84(_0x385731,_0x26359e,_0x1ac25e),_0x1ac25e;},_0x37d25f=(_0x2a144e,_0x7f6ce6)=>(_0x43001d,_0x1a8f79)=>_0x7f6ce6(_0x43001d,_0x1a8f79,_0x2a144e),_0x512cbd=(_0x1f4a6a=>(_0x1f4a6a[_0xb893b1(0x1dc)]='not_collab',_0x1f4a6a[_0xb893b1(0x4fc)]=_0xb893b1(0x4e6),_0x1f4a6a[_0xb893b1(0x1cc)]=_0xb893b1(0x49c),_0x1f4a6a[_0xb893b1(0x49d)]=_0xb893b1(0x2fe),_0x1f4a6a[_0xb893b1(0x109)]=_0xb893b1(0x465),_0x1f4a6a[_0xb893b1(0x2e3)]=_0xb893b1(0x4bf),_0x1f4a6a[_0xb893b1(0x18f)]=_0xb893b1(0x476),_0x1f4a6a['OFFLINE']='offline',_0x1f4a6a))(_0x512cbd||{});const _0x19da4c=0xea60;class _0x389d41{constructor(_0x296b1c,_0xc80d68,_0x1cc099,_0x17b23a,_0x6ebad9,_0x55ba54,_0x21ca26,_0x1cddd2,_0x30c0d8){const _0x6395a7=_0xb893b1;_0xf1fe43(this,_0x6395a7(0x277),null),_0xf1fe43(this,_0x6395a7(0x3f2),[]),(this[_0x6395a7(0x386)]=_0x296b1c,this[_0x6395a7(0x191)]=_0xc80d68,this[_0x6395a7(0x1af)]=_0x6ebad9,this['_commandService']=_0x55ba54,this[_0x6395a7(0x3f8)]=_0x21ca26,this[_0x6395a7(0x3ee)]=_0x1cddd2,this[_0x6395a7(0x4c9)]=_0x30c0d8,this[_0x6395a7(0x277)]=_0x1cc099,this[_0x6395a7(0x3f2)]=_0x17b23a);}[_0xb893b1(0x193)](_0x46a0a2){const _0x1d11cc=_0xb893b1,_0x421dc2=this[_0x1d11cc(0x3ee)][_0x1d11cc(0x183)](this['unitID']);return _0x46a0a2[_0x1d11cc(0x357)]>_0x421dc2+0x1?(this[_0x1d11cc(0x1af)][_0x1d11cc(0x4fd)]({'from':_0x421dc2,'to':_0x46a0a2[_0x1d11cc(0x357)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0xa2f934){const _0x49a6ef=_0xb893b1;this[_0x49a6ef(0x3f8)][_0x49a6ef(0x162)](this[_0x49a6ef(0x386)],_0xa2f934);}[_0xb893b1(0x3e8)](_0x1e9c0c){const _0x1c8139=_0xb893b1;var _0x5786e4,_0x477785;(_0x477785=(_0x5786e4=this[_0x1c8139(0x1af)])[_0x1c8139(0x400)])==null||_0x477785[_0x1c8139(0x4a6)](_0x5786e4,_0x1e9c0c);}[_0xb893b1(0x106)](_0x22c169){const _0x5222cd=_0xb893b1;var _0x54cc98,_0xaa6c6a;return(_0xaa6c6a=(_0x54cc98=this[_0x5222cd(0x1af)])['onTransformIME'])==null?void 0x0:_0xaa6c6a['call'](_0x54cc98,_0x22c169);}[_0xb893b1(0x2b8)](_0x141b6b){const _0x269ed3=_0xb893b1;var _0x3bb7b3,_0x50aabd,_0x4d640f;return(_0x4d640f=(_0x50aabd=(_0x3bb7b3=this['_handler'])[_0x269ed3(0x1f9)])==null?void 0x0:_0x50aabd[_0x269ed3(0x4a6)](_0x3bb7b3,_0x141b6b))!=null?_0x4d640f:_0x141b6b;}[_0xb893b1(0x4da)](_0x4bd64d){const _0x4bb854=_0xb893b1;var _0x5f1786,_0x52cf10;if(this[_0x4bb854(0x191)]===_0x2e214d[_0x4bb854(0x2d8)]){const {unitID:_0x3c5a30,mutations:_0x4efd3f,memberID:_0x4a229c}=_0x4bd64d,_0x5f4038=_0x4efd3f[0x0][_0x4bb854(0x16b)][_0x4bb854(0x107)];Array[_0x4bb854(0x2f5)](_0x5f4038)&&_0x5f4038[_0x4bb854(0x4d8)]>0x0&&((_0x52cf10=(_0x5f1786=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x52cf10[_0x4bb854(0x4a6)](_0x5f1786,{'unitID':_0x3c5a30,'memberID':_0x4a229c,'textRanges':_0x5f4038}));}}[_0xb893b1(0x49f)](){const _0x1360fa=_0xb893b1;this['_localCacheService'][_0x1360fa(0x4b6)](this[_0x1360fa(0x386)],this[_0x1360fa(0x191)],this['_awaitingChangeset'],this[_0x1360fa(0x3f2)]);}['_getCurrentRevision'](){const _0x43f839=_0xb893b1;return this[_0x43f839(0x3ee)][_0x43f839(0x183)](this[_0x43f839(0x386)]);}['_incrementRevisionNumber'](){const _0x4c5869=_0xb893b1;this['_revisionService'][_0x4c5869(0x391)](this['unitID']);}['_executeRemoteChangeset'](_0x20782e){const _0x2bd828=_0xb893b1;var _0x4f9e71;const _0x1ae21a=this[_0x2bd828(0x2b8)](_0x20782e),_0xe52009=_0x58b389[_0x2bd828(0x14f)](_0x1ae21a[_0x2bd828(0x44a)],this[_0x2bd828(0x4af)],{'fromCollab':!0x0});if(!_0xe52009[_0x2bd828(0x3a7)])throw _0xe52009['error']instanceof Error?_0xe52009['error']:new Error((_0x4f9e71=_0xe52009[_0x2bd828(0x368)])!=null?_0x4f9e71:_0x2bd828(0x1f1));this[_0x2bd828(0x106)](_0x1ae21a),this['_transformUndoredo'](_0x20782e),this['_transformSelections'](_0x1ae21a),this[_0x2bd828(0x4da)](_0x1ae21a),this[_0x2bd828(0x3ab)]();}}let _0x433904=class extends _0x389d41{constructor(_0x2ed4d1,_0x22289,_0x79da,_0xfb74e0,_0x2d5db8,_0x3fcd4f,_0x1f371f,_0x30da53,_0x38b8c4,_0x2e68d8){const _0x2de6d7=_0xb893b1;super(_0x2ed4d1,_0x22289,null,[],_0x79da,_0x30da53,_0x1f371f,_0xfb74e0,_0x2d5db8),_0xf1fe43(this,'status',_0x2de6d7(0x4e6)),(this[_0x2de6d7(0x126)]=_0x3fcd4f,this[_0x2de6d7(0x482)]=_0x38b8c4,this['_transformService']=_0x2e68d8);}[_0xb893b1(0x287)](_0xea6493){const _0x258109=_0xb893b1,_0x244492=this[_0x258109(0x126)][_0x258109(0x361)](_0x48d3b9,this['unitID'],this[_0x258109(0x191)],[_0xea6493],this[_0x258109(0x1af)]);return _0x244492[_0x258109(0x395)](),_0x244492[_0x258109(0x49f)](),_0x244492;}[_0xb893b1(0x134)](_0x2af064){const _0xfe69a0=_0xb893b1;if(this['_checkMissing'](_0x2af064))return this[_0xfe69a0(0x126)][_0xfe69a0(0x361)](_0x58bc8e,this[_0xfe69a0(0x386)],this[_0xfe69a0(0x191)],null,[],null,[_0x2af064],this[_0xfe69a0(0x1af)]);try{const _0x21f20f=this[_0xfe69a0(0x18d)][_0xfe69a0(0x23b)](_0x2af064,[_0x3f51fa]);if(_0x5e5ab1[_0xfe69a0(0x542)](_0x21f20f)){const {c1Prime:_0x4b5334}=_0x21f20f;return this[_0xfe69a0(0x2ea)](_0x4b5334),this;}throw _0x21f20f[_0xfe69a0(0x368)];}catch(_0x24575e){return this[_0xfe69a0(0x482)][_0xfe69a0(0x368)](_0x24575e),this[_0xfe69a0(0x4c6)](!0x1);}}[_0xb893b1(0x4c6)](_0x4cc126){const _0x29d77=_0xb893b1;return this['_injector']['createInstance'](_0x5d6332,this[_0x29d77(0x386)],this['type'],null,[],this[_0x29d77(0x1af)],_0x4cc126);}[_0xb893b1(0x344)](){const _0x5c23ff=_0xb893b1;throw new Error(_0x5c23ff(0x3fa));}[_0xb893b1(0x3ed)](){const _0x54923b=_0xb893b1;throw new Error(_0x54923b(0x2d4));}[_0xb893b1(0x4d9)](){return this;}['toggleOffline'](){const _0x1bf8b8=_0xb893b1;return this[_0x1bf8b8(0x126)]['createInstance'](_0x19fad0,this['unitID'],this['type'],null,[],this['_handler']);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4b5)](){const _0xc4c4a3=_0xb893b1;throw new Error(_0xc4c4a3(0x440));}[_0xb893b1(0x2ef)](){const _0xa3c77e=_0xb893b1,_0x277015=this[_0xa3c77e(0x3ee)]['getCurrentRevOfUnit'](this[_0xa3c77e(0x386)]);return this[_0xa3c77e(0x1af)][_0xa3c77e(0x4fd)]({'from':_0x277015,'to':0x0}),this[_0xa3c77e(0x126)]['createInstance'](_0x58bc8e,this[_0xa3c77e(0x386)],this[_0xa3c77e(0x191)],null,[],null,[],this[_0xa3c77e(0x1af)]);}};_0x433904=_0x4ca299([_0x37d25f(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x13d)]),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0x9,_0x5e5ab1[_0xb893b1(0x157)])],_0x433904);let _0x48d3b9=class extends _0x389d41{constructor(_0x373d84,_0x51ad34,_0x4d699c,_0x46e6b7,_0x31a545,_0x7102f8,_0x509c8f,_0x4658ad,_0x4b039a,_0x3d2fd3,_0x4de98b,_0x363f8b,_0x1e0d3d,_0xb3f5ce){const _0x548a74=_0xb893b1;super(_0x373d84,_0x51ad34,null,_0x4d699c,_0x46e6b7,_0x3d2fd3,_0xb3f5ce,_0x7102f8,_0x509c8f),_0xf1fe43(this,_0x548a74(0x259),'pending'),_0xf1fe43(this,_0x548a74(0x13c),null),_0xf1fe43(this,_0x548a74(0x48a),null),(this[_0x548a74(0x126)]=_0x31a545,this[_0x548a74(0x505)]=_0x4658ad,this[_0x548a74(0x482)]=_0x4b039a,this[_0x548a74(0x2f3)]=_0x4de98b,this['_transformService']=_0x363f8b,this[_0x548a74(0x123)]=_0x1e0d3d);}[_0xb893b1(0x287)](_0x217fb6){const _0xdc97eb=_0xb893b1;return this[_0xdc97eb(0x3f2)][_0xdc97eb(0x428)](_0x217fb6),this[_0xdc97eb(0x49f)](),this;}[_0xb893b1(0x134)](_0x4d37d9){const _0x1c4336=_0xb893b1;if(this[_0x1c4336(0x193)](_0x4d37d9))return this[_0x1c4336(0x437)](),this[_0x1c4336(0x126)][_0x1c4336(0x361)](_0x58bc8e,this[_0x1c4336(0x386)],this[_0x1c4336(0x191)],null,this['_pendingMutations'],null,[_0x4d37d9],this['_handler']);try{const _0x2a7c42=this['_transformService'][_0x1c4336(0x23b)](_0x4d37d9,this[_0x1c4336(0x3f2)]);if(_0x5e5ab1['isTransformMutationsWithChangesetSuccess'](_0x2a7c42)){const {c1Prime:_0x595f26,m2Prime:_0x44fccc}=_0x2a7c42;this[_0x1c4336(0x2ea)](_0x595f26);const _0x39f47d=this[_0x1c4336(0x126)][_0x1c4336(0x361)](_0x48d3b9,this[_0x1c4336(0x386)],this[_0x1c4336(0x191)],_0x44fccc,this['_handler']);return this[_0x1c4336(0x437)](),_0x39f47d[_0x1c4336(0x395)](this[_0x1c4336(0x13c)]?Math['max'](0x0,new Date()[_0x1c4336(0x2be)]()-this[_0x1c4336(0x13c)]):this[_0x1c4336(0x383)]()),_0x39f47d;}throw _0x2a7c42['error'];}catch(_0x186920){return this[_0x1c4336(0x482)][_0x1c4336(0x368)](_0x186920),this[_0x1c4336(0x4c6)](!0x1);}}[_0xb893b1(0x344)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0xb893b1(0x3ed)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xb893b1(0x4d9)](){return this;}[_0xb893b1(0x2a7)](){const _0x2afbb5=_0xb893b1;return this[_0x2afbb5(0x437)](),this[_0x2afbb5(0x126)]['createInstance'](_0x19fad0,this[_0x2afbb5(0x386)],this[_0x2afbb5(0x191)],null,this['_pendingMutations'],this[_0x2afbb5(0x1af)]);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x395)](_0x2c00a5){const _0x3d1cbb=_0xb893b1,_0x54f011=_0x2c00a5!=null?_0x2c00a5:this[_0x3d1cbb(0x383)]();this[_0x3d1cbb(0x13c)]=new Date()[_0x3d1cbb(0x2be)](),this[_0x3d1cbb(0x48a)]=window['setTimeout'](()=>{const _0x133075=_0x3d1cbb;this[_0x133075(0x437)]();let _0x5c5b15=null;switch(this[_0x133075(0x191)]){case _0x2e214d[_0x133075(0x2db)]:{_0x5c5b15=_0x58c083(this[_0x133075(0x3f2)],this['unitID'],this[_0x133075(0x123)],this[_0x133075(0x3ee)],this[_0x133075(0x505)]);break;}case _0x2e214d[_0x133075(0x2d8)]:{this[_0x133075(0x3f2)][_0x133075(0x33f)](_0x1e9e1b=>_0x1e9e1b['id']===_0x124506[_0x133075(0x2b5)]['id'])?_0x5c5b15=_0x18e68a(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x133075(0x3ee)],this[_0x133075(0x505)]):_0x5c5b15=_0x58c083(this['_pendingMutations'],this[_0x133075(0x386)],this[_0x133075(0x123)],this[_0x133075(0x3ee)],this['_memberService']);break;}default:throw new Error(_0x133075(0x2f9)+this[_0x133075(0x191)]+_0x133075(0x362));}const {changeset:_0xef270e,pendingMutations:_0x1ad185}=_0x5c5b15;this[_0x133075(0x1af)]['onSendChangeset'](_0xef270e);const _0x292080=_0x1ad185[_0x133075(0x4d8)]?this[_0x133075(0x126)][_0x133075(0x361)](_0x5115be,this[_0x133075(0x386)],this['type'],_0xef270e,_0x1ad185,this[_0x133075(0x1af)],void 0x0):this[_0x133075(0x126)][_0x133075(0x361)](_0x5943fe,this[_0x133075(0x386)],this[_0x133075(0x191)],_0xef270e,this[_0x133075(0x1af)]);_0x292080['_updateLocalCache'](),this[_0x133075(0x1af)][_0x133075(0x15f)](this,_0x292080);},_0x54f011);}[_0xb893b1(0x383)](){const _0x56b2c2=_0xb893b1;var _0x15d303;const _0x46abd6=this[_0x56b2c2(0x2f3)][_0x56b2c2(0x22b)](_0x271aa0);return(_0x15d303=_0x46abd6==null?void 0x0:_0x46abd6[_0x56b2c2(0x467)])!=null?_0x15d303:0x7d0;}[_0xb893b1(0x4b5)](){const _0x599726=_0xb893b1;throw new Error(_0x599726(0x3ce));}[_0xb893b1(0x437)](){const _0x24d7c8=_0xb893b1;this[_0x24d7c8(0x48a)]!=null&&(clearTimeout(this[_0x24d7c8(0x48a)]),this[_0x24d7c8(0x48a)]=null);}[_0xb893b1(0x4c6)](_0x5e64eb){const _0x51dea1=_0xb893b1;return this[_0x51dea1(0x437)](),this[_0x51dea1(0x126)][_0x51dea1(0x361)](_0x5d6332,this['unitID'],this[_0x51dea1(0x191)],null,this[_0x51dea1(0x3f2)],this[_0x51dea1(0x1af)],_0x5e64eb);}};_0x48d3b9=_0x4ca299([_0x37d25f(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1['RevisionService'])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['LocalCacheService'])),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x384)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0x9,_0x58b389['ICommandService']),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x1f6)]),_0x37d25f(0xb,_0x5e5ab1[_0xb893b1(0x157)]),_0x37d25f(0xc,_0x58b389['IUniverInstanceService']),_0x37d25f(0xd,_0x58b389[_0xb893b1(0x13d)])],_0x48d3b9);let _0x5943fe=class extends _0x389d41{constructor(_0x56b67f,_0x190afd,_0x57c1e9,_0x17edd4,_0x50a108,_0x4e16e3,_0x442b94,_0xc0110c,_0x3e7da4,_0x1ca6dd,_0x5d52c9){const _0x14c465=_0xb893b1;super(_0x56b67f,_0x190afd,_0x57c1e9,[],_0x17edd4,_0xc0110c,_0x5d52c9,_0x4e16e3,_0x442b94),_0xf1fe43(this,_0x14c465(0x259),_0x14c465(0x2fe)),_0xf1fe43(this,'_resendTimeout',0x0),_0xf1fe43(this,_0x14c465(0x1aa)),_0xf1fe43(this,_0x14c465(0x4c1)),(this[_0x14c465(0x126)]=_0x50a108,this[_0x14c465(0x482)]=_0x3e7da4,this[_0x14c465(0x18d)]=_0x1ca6dd);}[_0xb893b1(0x287)](_0x418882){const _0x262877=_0xb893b1;this['_clearScheduledTask']();const _0x53ab3d=this['_injector'][_0x262877(0x361)](_0x5115be,this[_0x262877(0x386)],this[_0x262877(0x191)],this[_0x262877(0x277)],[_0x418882],this[_0x262877(0x1af)],this['_resendTimer']);return _0x53ab3d[_0x262877(0x49f)](),_0x53ab3d;}[_0xb893b1(0x134)](_0xb8b4e0){const _0x4cccf2=_0xb893b1;if(this[_0x4cccf2(0x193)](_0xb8b4e0))return this[_0x4cccf2(0x437)](),this[_0x4cccf2(0x126)][_0x4cccf2(0x361)](_0x58bc8e,this['unitID'],this[_0x4cccf2(0x191)],this[_0x4cccf2(0x277)],[],null,[_0xb8b4e0],this[_0x4cccf2(0x1af)]);try{const _0x1371f9=this['_transformService'][_0x4cccf2(0x4a2)]([_0xb8b4e0],[this[_0x4cccf2(0x277)]],!0x1);if(_0x5e5ab1[_0x4cccf2(0x3ea)](_0x1371f9)){const {c1Prime:_0x365b80,c2Prime:_0x37344d}=_0x1371f9;this[_0x4cccf2(0x2ea)](_0x365b80[0x0]),_0x37344d[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();const _0x4e9a8e=this[_0x4cccf2(0x126)][_0x4cccf2(0x361)](_0x5943fe,this[_0x4cccf2(0x386)],this[_0x4cccf2(0x191)],_0x37344d[0x0],this[_0x4cccf2(0x1af)]);return _0x4e9a8e[_0x4cccf2(0x49f)](),_0x4e9a8e;}return this[_0x4cccf2(0x4c6)](!0x1);}catch(_0x18c11f){return this[_0x4cccf2(0x482)][_0x4cccf2(0x368)](_0x18c11f),this[_0x4cccf2(0x4c6)](!0x1);}}[_0xb893b1(0x344)](_0x71afc8){const _0x2d9ddf=_0xb893b1;this[_0x2d9ddf(0x437)]();const _0x65a2ee=this[_0x2d9ddf(0x3ee)]['getCurrentRevOfUnit'](this[_0x2d9ddf(0x386)]);if(_0x71afc8[_0x2d9ddf(0x357)]<_0x65a2ee-0x1)return this;if(this[_0x2d9ddf(0x193)](_0x71afc8))return this['_injector'][_0x2d9ddf(0x361)](_0x58bc8e,this['unitID'],this[_0x2d9ddf(0x191)],null,[],this['_awaitingChangeset'],[],this[_0x2d9ddf(0x1af)]);this['_incrementRevisionNumber']();const _0x4b157e=this[_0x2d9ddf(0x126)][_0x2d9ddf(0x361)](_0x433904,this[_0x2d9ddf(0x386)],this[_0x2d9ddf(0x191)],this['_handler']);return _0x4b157e[_0x2d9ddf(0x49f)](),_0x4b157e;}[_0xb893b1(0x3ed)](_0x34438f){const _0x682298=_0xb893b1;return this['_onConflict'](!!(_0x34438f!=null&&_0x34438f[_0x682298(0x1ef)]));}[_0xb893b1(0x4d9)](_0x23ba40){const _0x4afe54=_0xb893b1;return this[_0x4afe54(0x12e)]>_0x19da4c?this[_0x4afe54(0x2a7)]():(this[_0x4afe54(0x1aa)]=_0x415a18(this[_0x4afe54(0x12e)],{'timeout':this['_resendTimeout'],'reqId':_0x23ba40[_0x4afe54(0x500)]}),this[_0x4afe54(0x4c1)]=this['_resendTimer'][_0x4afe54(0x1b6)](({reqId:_0x35001e,timeout:_0x5c884e})=>{const _0x1e068f=_0x4afe54;this[_0x1e068f(0x290)](_0x35001e,_0x5c884e);}),this);}['toggleOffline'](){const _0x2e1ac6=_0xb893b1;return this[_0x2e1ac6(0x437)](),this[_0x2e1ac6(0x126)][_0x2e1ac6(0x361)](_0x19fad0,this[_0x2e1ac6(0x386)],this[_0x2e1ac6(0x191)],this[_0x2e1ac6(0x277)],[],this[_0x2e1ac6(0x1af)]);}[_0xb893b1(0x318)](){return this;}['resend'](){const _0x461628=_0xb893b1;this['_handler'][_0x461628(0x468)](this[_0x461628(0x277)]);}[_0xb893b1(0x4c6)](_0x3b91a1){const _0x1712db=_0xb893b1;return this[_0x1712db(0x437)](),this[_0x1712db(0x126)][_0x1712db(0x361)](_0x5d6332,this[_0x1712db(0x386)],this[_0x1712db(0x191)],this['_awaitingChangeset'],[],this[_0x1712db(0x1af)],_0x3b91a1);}['_resendWithTimeout'](_0xdcfca1,_0x1c694a){const _0x2b6726=_0xb893b1;var _0x21fb22;_0xdcfca1===((_0x21fb22=this[_0x2b6726(0x277)])==null?void 0x0:_0x21fb22[_0x2b6726(0x500)])&&(this[_0x2b6726(0x4b5)](),this[_0x2b6726(0x12e)]=_0x1c694a===0x0?0x3e8:_0x1c694a*0x2);}[_0xb893b1(0x437)](){const _0x2f6a06=_0xb893b1;var _0x676017;(_0x676017=this['_sender'])==null||_0x676017['unsubscribe'](),this[_0x2f6a06(0x12e)]=0x0;}};_0x5943fe=_0x4ca299([_0x37d25f(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0x9,_0x5e5ab1[_0xb893b1(0x157)]),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x13d)])],_0x5943fe);let _0x5115be=class extends _0x389d41{constructor(_0x4411c1,_0x1f1ccd,_0x4dd248,_0x572d87,_0x5704d2,_0x17bce4,_0x10d485,_0x132d35,_0x279750,_0x2e2eea,_0x128a4a,_0x4ec7e6,_0x2163a9){const _0x2ddd26=_0xb893b1;super(_0x4411c1,_0x1f1ccd,_0x4dd248,_0x572d87,_0x5704d2,_0x2e2eea,_0x2163a9,_0x132d35,_0x279750),_0xf1fe43(this,_0x2ddd26(0x259),_0x2ddd26(0x465)),_0xf1fe43(this,'_resendTimeout',0x0),_0xf1fe43(this,_0x2ddd26(0x1aa)),_0xf1fe43(this,_0x2ddd26(0x4c1)),(this[_0x2ddd26(0x126)]=_0x10d485,this[_0x2ddd26(0x482)]=_0x128a4a,this[_0x2ddd26(0x18d)]=_0x4ec7e6,_0x17bce4&&(this[_0x2ddd26(0x1aa)]=_0x17bce4,this[_0x2ddd26(0x4c1)]=this[_0x2ddd26(0x1aa)][_0x2ddd26(0x1b6)](({reqId:_0xf2c91d,timeout:_0x30d854})=>{this['_resendWithTimeout'](_0xf2c91d,_0x30d854);})));}[_0xb893b1(0x287)](_0x17e8d4){const _0x3e16a3=_0xb893b1;return this[_0x3e16a3(0x3f2)][_0x3e16a3(0x428)](_0x17e8d4),this;}[_0xb893b1(0x134)](_0x40955e){const _0x3ba287=_0xb893b1;if(this[_0x3ba287(0x193)](_0x40955e))return this['_clearScheduledTask'](),this[_0x3ba287(0x126)][_0x3ba287(0x361)](_0x58bc8e,this[_0x3ba287(0x386)],this[_0x3ba287(0x191)],this[_0x3ba287(0x277)],this[_0x3ba287(0x3f2)],null,[_0x40955e],this[_0x3ba287(0x1af)]);try{const _0x5218f5=this[_0x3ba287(0x18d)][_0x3ba287(0x4a2)]([_0x40955e],[this[_0x3ba287(0x277)]],!0x1);if(_0x5e5ab1['isTransformChangesetsSuccess'](_0x5218f5)){const {c1Prime:_0x45593e,c2Prime:_0x131c97}=_0x5218f5,_0x181a73=this['_transformService']['transformMutationsWithChangeset'](_0x45593e[0x0],this[_0x3ba287(0x3f2)]);if(_0x5e5ab1['isTransformMutationsWithChangesetSuccess'](_0x181a73)){const {c1Prime:_0x3ee5e5,m2Prime:_0x4cfcf1}=_0x181a73;return this[_0x3ba287(0x2ea)](_0x3ee5e5),_0x131c97[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x3ba287(0x437)](),this['_injector'][_0x3ba287(0x361)](_0x5115be,this[_0x3ba287(0x386)],this[_0x3ba287(0x191)],_0x131c97[0x0],_0x4cfcf1,this[_0x3ba287(0x1af)],void 0x0);}throw _0x181a73[_0x3ba287(0x368)];}throw _0x5218f5['error'];}catch(_0x1a515e){return this[_0x3ba287(0x482)][_0x3ba287(0x368)](_0x1a515e),this[_0x3ba287(0x4c6)](!0x1);}}['onRemoteAck'](_0x5c50b0){const _0x31c997=_0xb893b1;if(this[_0x31c997(0x437)](),this[_0x31c997(0x193)](_0x5c50b0))return this[_0x31c997(0x126)]['createInstance'](_0x58bc8e,this['unitID'],this[_0x31c997(0x191)],null,this['_pendingMutations'],this[_0x31c997(0x277)],[],this[_0x31c997(0x1af)]);this[_0x31c997(0x3ab)]();const _0x1c102e=this[_0x31c997(0x126)][_0x31c997(0x361)](_0x48d3b9,this[_0x31c997(0x386)],this[_0x31c997(0x191)],this[_0x31c997(0x3f2)],this['_handler']);return _0x1c102e[_0x31c997(0x395)](),_0x1c102e[_0x31c997(0x49f)](),_0x1c102e;}[_0xb893b1(0x3ed)](_0x1524df){const _0x59898a=_0xb893b1;return this[_0x59898a(0x4c6)](!!(_0x1524df!=null&&_0x1524df[_0x59898a(0x1ef)]));}[_0xb893b1(0x4d9)](_0x897f1){const _0x329a56=_0xb893b1;return this[_0x329a56(0x12e)]>_0x19da4c?this['toggleOffline']():(this[_0x329a56(0x1aa)]=_0x415a18(this[_0x329a56(0x12e)],{'timeout':this[_0x329a56(0x12e)],'reqId':_0x897f1[_0x329a56(0x500)]}),this['_sender']=this['_resendTimer'][_0x329a56(0x1b6)](({reqId:_0x2a69a6,timeout:_0x374044})=>{this['_resendWithTimeout'](_0x2a69a6,_0x374044);}),this);}[_0xb893b1(0x2a7)](){const _0x496550=_0xb893b1;return this[_0x496550(0x437)](),this[_0x496550(0x126)][_0x496550(0x361)](_0x19fad0,this['unitID'],this[_0x496550(0x191)],this[_0x496550(0x277)],this[_0x496550(0x3f2)],this[_0x496550(0x1af)]);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4b5)](){const _0x5c9613=_0xb893b1;this[_0x5c9613(0x1af)]['onSendChangeset'](this[_0x5c9613(0x277)]);}[_0xb893b1(0x4c6)](_0x2f3002){const _0x388f20=_0xb893b1;return this['_clearScheduledTask'](),this[_0x388f20(0x126)]['createInstance'](_0x5d6332,this[_0x388f20(0x386)],this[_0x388f20(0x191)],null,this[_0x388f20(0x3f2)],this['_handler'],_0x2f3002);}[_0xb893b1(0x290)](_0x382702,_0x5848c2){const _0x59c73a=_0xb893b1;var _0x18e3df;_0x382702===((_0x18e3df=this[_0x59c73a(0x277)])==null?void 0x0:_0x18e3df['reqId'])&&(this[_0x59c73a(0x4b5)](),this[_0x59c73a(0x12e)]=_0x5848c2===0x0?0x3e8:_0x5848c2*0x2);}[_0xb893b1(0x437)](){const _0x2a588b=_0xb893b1;var _0x524546;(_0x524546=this[_0x2a588b(0x4c1)])==null||_0x524546[_0x2a588b(0x49e)](),this['_resendTimeout']=0x0;}};_0x5115be=_0x4ca299([_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0xb,_0x5e5ab1['ITransformService']),_0x37d25f(0xc,_0x58b389[_0xb893b1(0x13d)])],_0x5115be);let _0x5d6332=class extends _0x389d41{constructor(_0x470299,_0x3ea108,_0x1d6416,_0x33b061,_0x37b63c,_0x88529a=!0x1,_0x8937e8,_0x2cc0ae,_0x44824a,_0x13aeeb,_0x45b852,_0x23fd6c,_0x2434e9){const _0x4f35b8=_0xb893b1;super(_0x470299,_0x3ea108,_0x1d6416,_0x33b061,_0x37b63c,_0x2cc0ae,_0x44824a,_0x45b852,_0x13aeeb),_0xf1fe43(this,_0x4f35b8(0x259),_0x4f35b8(0x476)),(this[_0x4f35b8(0x442)]=_0x88529a,this[_0x4f35b8(0x2a0)]=_0x8937e8,this[_0x4f35b8(0x341)]=_0x23fd6c,this[_0x4f35b8(0x315)]=_0x2434e9,this[_0x4f35b8(0x2c5)](),this[_0x4f35b8(0x45d)](),this[_0x4f35b8(0x3f7)]());}[_0xb893b1(0x287)](){return this;}[_0xb893b1(0x134)](){return this;}[_0xb893b1(0x344)](){return this;}[_0xb893b1(0x3ed)](){return this;}[_0xb893b1(0x4d9)](){return this;}[_0xb893b1(0x2a7)](){return this;}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4b5)](){const _0x4d1396=_0xb893b1;throw new Error(_0x4d1396(0x25d));}[_0xb893b1(0x45d)](){const _0x2d37a5=_0xb893b1;this['_localCacheService'][_0x2d37a5(0x4b6)](this['unitID'],this[_0x2d37a5(0x191)],null,[]);}[_0xb893b1(0x2c5)](){const _0x2b03bc=_0xb893b1;this[_0x2b03bc(0x442)]?this[_0x2b03bc(0x315)][_0x2b03bc(0x250)]({'title':this[_0x2b03bc(0x341)]['t'](_0x2b03bc(0x2bd)),'content':this[_0x2b03bc(0x341)]['t'](_0x2b03bc(0x334)),'type':_0x2b03bc(0x368),'duration':0x0}):this[_0x2b03bc(0x315)]['show']({'title':this['_localeService']['t'](_0x2b03bc(0x24e)),'content':this[_0x2b03bc(0x341)]['t'](_0x2b03bc(0x34f)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x9c1fb5=_0xb893b1;this[_0x9c1fb5(0x2a0)][_0x9c1fb5(0x1a7)](new _0x2d2223[(_0x9c1fb5(0x192))](this[_0x9c1fb5(0x386)])['id'],!0x1);}};_0x5d6332=_0x4ca299([_0x37d25f(0x6,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4e1)])),_0x37d25f(0x7,_0x58b389['ICommandService']),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x13d)]),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0xb,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4ee)])),_0x37d25f(0xc,_0x4d3c2b[_0xb893b1(0x47f)])],_0x5d6332);let _0x19fad0=class extends _0x389d41{constructor(_0x5e9382,_0x4480f9,_0x430dca,_0x15c2c1,_0x29d19a,_0xd78782,_0x31d6ba,_0x253211,_0x1ddf64,_0x2746c9){const _0x185abd=_0xb893b1;super(_0x5e9382,_0x4480f9,_0x430dca,_0x15c2c1,_0x29d19a,_0x1ddf64,_0x2746c9,_0x31d6ba,_0x253211),_0xf1fe43(this,'status',_0x185abd(0x2bf)),this[_0x185abd(0x126)]=_0xd78782;}['appendMutation'](_0x16b867){const _0x581373=_0xb893b1;return this[_0x581373(0x3f2)]['push'](_0x16b867),this[_0x581373(0x49f)](),this;}[_0xb893b1(0x134)](_0x52069d){const _0x44ffcd=_0xb893b1;throw new Error(_0x44ffcd(0x4c8));}[_0xb893b1(0x344)](){const _0x15093c=_0xb893b1;throw new Error(_0x15093c(0x4b9));}[_0xb893b1(0x3ed)](){const _0x135ea2=_0xb893b1;throw new Error(_0x135ea2(0x122));}['onRemoteRetry'](){return this;}[_0xb893b1(0x2a7)](){return this;}['toggleOnline'](){const _0x1fff81=_0xb893b1,{_injector:_0x12b952,_pendingMutations:_0x5218bb,_awaitingChangeset:_0x1a1fc7,unitID:_0x571ba8,_handler:_0x51a39e,type:_0x571c72}=this,_0x2a4bdf=_0x434480(_0x12b952,_0x571ba8,_0x571c72,_0x1a1fc7,_0x5218bb,_0x51a39e);return _0x2a4bdf instanceof _0x48d3b9?_0x2a4bdf[_0x1fff81(0x395)]():(_0x2a4bdf instanceof _0x5115be||_0x2a4bdf instanceof _0x5943fe)&&_0x2a4bdf[_0x1fff81(0x4b5)](),_0x2a4bdf;}[_0xb893b1(0x4b5)](){const _0x381b4d=_0xb893b1;throw new Error(_0x381b4d(0x3ef));}};_0x19fad0=_0x4ca299([_0x37d25f(0x5,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x7,_0x58b389['Inject'](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x13d)])],_0x19fad0);let _0x58bc8e=class extends _0x389d41{constructor(_0x14d234,_0x21e389,_0x1d2ac7,_0x4e905a,_0x28c3ca,_0x4da5db,_0x3f8bb7,_0x188271,_0x62cf8,_0x5d87be,_0x154bd9,_0x53bd15,_0x2a2f36,_0x2cdbd5){const _0x56399f=_0xb893b1;super(_0x14d234,_0x21e389,_0x1d2ac7,_0x4e905a,_0x3f8bb7,_0x53bd15,_0x2a2f36,_0x62cf8,_0x5d87be),_0xf1fe43(this,_0x56399f(0x259),'fetch_missing'),(this[_0x56399f(0x32a)]=_0x28c3ca,this[_0x56399f(0x1a3)]=_0x4da5db,this[_0x56399f(0x126)]=_0x188271,this[_0x56399f(0x482)]=_0x154bd9,this[_0x56399f(0x18d)]=_0x2cdbd5);}[_0xb893b1(0x197)](_0x484853){const _0x2efd75=_0xb893b1;try{const _0x266cb5=[..._0x484853,...this[_0x2efd75(0x1a3)]],_0x31eb6c=[this[_0x2efd75(0x277)]||this[_0x2efd75(0x32a)]]['filter'](_0x438969=>!!_0x438969);let _0x71880a,_0x338ccd;if(_0x31eb6c[_0x2efd75(0x4d8)]){const _0x210dd2=this[_0x2efd75(0x18d)][_0x2efd75(0x4a2)](_0x266cb5,_0x31eb6c,!0x1);if(!_0x5e5ab1['isTransformChangesetsSuccess'](_0x210dd2))throw _0x210dd2['error'];_0x71880a=_0x210dd2['c1Prime'],_0x338ccd=_0x210dd2[_0x2efd75(0x487)];}else _0x71880a=_0x266cb5,_0x338ccd=[];let _0x4f6f1e=this[_0x2efd75(0x3f2)];_0x71880a['forEach'](_0x211207=>{const _0x3070cd=_0x2efd75;let _0x44e24b;if(_0x4f6f1e[_0x3070cd(0x4d8)]){const _0x532482=this[_0x3070cd(0x18d)]['transformMutationsWithChangeset'](_0x211207,_0x4f6f1e);if(!_0x5e5ab1[_0x3070cd(0x542)](_0x532482))throw _0x532482[_0x3070cd(0x368)];_0x44e24b=_0x532482['c1Prime'],_0x4f6f1e=_0x532482['m2Prime'];}else _0x44e24b=_0x211207;this[_0x3070cd(0x2ea)](_0x44e24b);}),this[_0x2efd75(0x32a)]&&this[_0x2efd75(0x3ab)](),this['_awaitingChangeset']&&_0x338ccd[_0x2efd75(0x4d8)]&&(_0x338ccd[0x0][_0x2efd75(0x209)]=this['_getCurrentRevision']());let _0x2c52fb;if(this[_0x2efd75(0x277)]&&_0x4f6f1e[_0x2efd75(0x4d8)]!==0x0)_0x2c52fb=this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x5115be,this[_0x2efd75(0x386)],this[_0x2efd75(0x191)],_0x338ccd[0x0],_0x4f6f1e,this[_0x2efd75(0x1af)],void 0x0);else{if(this[_0x2efd75(0x277)]&&_0x4f6f1e[_0x2efd75(0x4d8)]===0x0)_0x338ccd[0x0][_0x2efd75(0x209)]=this['_getCurrentRevision'](),_0x2c52fb=this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x5943fe,this[_0x2efd75(0x386)],this['type'],_0x338ccd[0x0],this[_0x2efd75(0x1af)]);else{if(_0x4f6f1e[_0x2efd75(0x4d8)]!==0x0){const _0x560cc0=this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x48d3b9,this['unitID'],this[_0x2efd75(0x191)],_0x4f6f1e,this[_0x2efd75(0x1af)]);_0x560cc0[_0x2efd75(0x395)](),_0x2c52fb=_0x560cc0;}else _0x2c52fb=this[_0x2efd75(0x126)]['createInstance'](_0x433904,this[_0x2efd75(0x386)],this[_0x2efd75(0x191)],this[_0x2efd75(0x1af)]);}}return _0x2c52fb[_0x2efd75(0x49f)](),_0x2c52fb;}catch(_0x54ae82){return this[_0x2efd75(0x482)][_0x2efd75(0x368)](_0x2efd75(0x348),_0x2efd75(0x272),_0x54ae82),this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x5d6332,this[_0x2efd75(0x386)],this[_0x2efd75(0x191)],this[_0x2efd75(0x277)],this[_0x2efd75(0x3f2)],this[_0x2efd75(0x1af)],!0x1);}}[_0xb893b1(0x4b5)](){const _0x465d5c=_0xb893b1;throw new Error(_0x465d5c(0x18b));}[_0xb893b1(0x287)](_0x34861f){const _0x1ef7d5=_0xb893b1;return this[_0x1ef7d5(0x3f2)]['push'](_0x34861f),this;}[_0xb893b1(0x134)](_0x34f73c){const _0x2ae5e5=_0xb893b1;return this[_0x2ae5e5(0x1a3)]['push'](_0x34f73c),this;}[_0xb893b1(0x344)](_0x5098d9){const _0x4298bd=_0xb893b1;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x4298bd(0x277)],this[_0x4298bd(0x277)]=null,this;throw new Error(_0x4298bd(0x127));}[_0xb893b1(0x3ed)](_0x66b129){return this['_onConflict'](!!(_0x66b129!=null&&_0x66b129['isPermissionRej']));}[_0xb893b1(0x4d9)](){return this;}['toggleOffline'](){const _0x3bfe2e=_0xb893b1;return this[_0x3bfe2e(0x126)][_0x3bfe2e(0x361)](_0x19fad0,this['unitID'],this[_0x3bfe2e(0x191)],this[_0x3bfe2e(0x277)],this[_0x3bfe2e(0x3f2)],this[_0x3bfe2e(0x1af)]);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4c6)](_0x1e14fe){const _0xb3d45b=_0xb893b1;return this['_injector'][_0xb3d45b(0x361)](_0x5d6332,this[_0xb3d45b(0x386)],this[_0xb3d45b(0x191)],this['_awaitingChangeset'],this[_0xb3d45b(0x3f2)],this[_0xb3d45b(0x1af)],_0x1e14fe);}};_0x58bc8e=_0x4ca299([_0x37d25f(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['LocalCacheService'])),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0xb,_0x58b389['ICommandService']),_0x37d25f(0xc,_0x58b389[_0xb893b1(0x13d)]),_0x37d25f(0xd,_0x5e5ab1[_0xb893b1(0x157)])],_0x58bc8e);function _0x434480(_0x23727d,_0x255c53,_0x3886fd,_0x2a73db,_0x445d43,_0x219a7d){const _0x4ab05a=_0xb893b1;return _0x2a73db&&_0x445d43[_0x4ab05a(0x4d8)]?_0x23727d[_0x4ab05a(0x361)](_0x5115be,_0x255c53,_0x3886fd,_0x2a73db,_0x445d43,_0x219a7d,void 0x0):_0x2a73db?_0x23727d[_0x4ab05a(0x361)](_0x5943fe,_0x255c53,_0x3886fd,_0x2a73db,_0x219a7d):_0x445d43[_0x4ab05a(0x4d8)]?_0x23727d[_0x4ab05a(0x361)](_0x48d3b9,_0x255c53,_0x3886fd,_0x445d43,_0x219a7d):_0x23727d['createInstance'](_0x433904,_0x255c53,_0x3886fd,_0x219a7d);}var _0x480999=Object[_0xb893b1(0x1bc)],_0x35bee9=Object[_0xb893b1(0x490)],_0x8c54e8=(_0x1696f6,_0x5c2534,_0x5dcea1,_0x2d043d)=>{for(var _0x4a08ce=_0x2d043d>0x1?void 0x0:_0x2d043d?_0x35bee9(_0x5c2534,_0x5dcea1):_0x5c2534,_0x250cb2=_0x1696f6['length']-0x1,_0x2fbc34;_0x250cb2>=0x0;_0x250cb2--)(_0x2fbc34=_0x1696f6[_0x250cb2])&&(_0x4a08ce=(_0x2d043d?_0x2fbc34(_0x5c2534,_0x5dcea1,_0x4a08ce):_0x2fbc34(_0x4a08ce))||_0x4a08ce);return _0x2d043d&&_0x4a08ce&&_0x480999(_0x5c2534,_0x5dcea1,_0x4a08ce),_0x4a08ce;},_0x4f9c72=(_0x41e757,_0x36391f)=>(_0x6ab247,_0x3021e6)=>_0x36391f(_0x6ab247,_0x3021e6,_0x41e757);_0x3b52c4[_0xb893b1(0x336)]=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x2c4dfd,_0x3f558c,_0x563df8,_0x1aa4f3,_0x4cd10b,_0x467b5d,_0x4a03f1,_0x3dc0b8,_0x4657bd,_0x52cf69,_0x3d1458,_0xf8e3a1,_0x40f147){const _0x2b5915=_0xb893b1;super(),_0xf1fe43(this,'_state$',new _0x4655d9[(_0x2b5915(0x293))](null)),_0xf1fe43(this,'state$',this[_0x2b5915(0x26d)][_0x2b5915(0x526)]()),_0xf1fe43(this,_0x2b5915(0x216)),_0xf1fe43(this,_0x2b5915(0x52f),!0x1),_0xf1fe43(this,_0x2b5915(0x233),''),_0xf1fe43(this,_0x2b5915(0x53f),0x0),_0xf1fe43(this,_0x2b5915(0x431),this[_0x2b5915(0x205)][_0x2b5915(0x3ca)](_0x4655d9[_0x2b5915(0x44d)](_0x12b64d=>_0x12b64d?_0x12b64d[_0x2b5915(0x259)]:_0x512cbd[_0x2b5915(0x4d1)]),_0x4655d9[_0x2b5915(0x4cd)](0x1))),_0xf1fe43(this,_0x2b5915(0x16f),!0x1),_0xf1fe43(this,_0x2b5915(0x1ea),[]),(this[_0x2b5915(0x386)]=_0x2c4dfd,this[_0x2b5915(0x3f0)]=_0x3f558c,this[_0x2b5915(0x450)]=_0x563df8,this[_0x2b5915(0x126)]=_0x1aa4f3,this[_0x2b5915(0x4c9)]=_0x4cd10b,this[_0x2b5915(0x236)]=_0x467b5d,this['_localeService']=_0x4a03f1,this[_0x2b5915(0x3ee)]=_0x3dc0b8,this[_0x2b5915(0x482)]=_0x4657bd,this[_0x2b5915(0x4af)]=_0x52cf69,this['_messageService']=_0x3d1458,this['_permissionService']=_0xf8e3a1,this[_0x2b5915(0x1ee)]=_0x40f147);}get['state'](){return this['_state'];}async[_0xb893b1(0x29f)](){const _0xb78d6e=_0xb893b1;if(this['state'])throw new Error(_0xb78d6e(0x26f));await this[_0xb78d6e(0x3e2)]();}[_0xb893b1(0x279)](){const _0x1c48e2=_0xb893b1;return this[_0x1c48e2(0x52f)]=!0x0,_0x58b389[_0x1c48e2(0x1bf)](()=>{const _0x1b4499=_0x1c48e2;this[_0x1b4499(0x52f)]=!0x1,this[_0x1b4499(0x541)]();});}['_updateState'](_0x38fb79){const _0x4b256b=_0xb893b1;this[_0x4b256b(0x216)]=_0x38fb79,this[_0x4b256b(0x26d)]['next'](_0x38fb79);}async[_0xb893b1(0x3e2)](){const _0x253b56=_0xb893b1;var _0x362046;this['_updateState'](await this[_0x253b56(0x1c7)]()),this['_singleActiveUnitService']&&((_0x362046=this[_0x253b56(0x1ee)])==null||_0x362046[_0x253b56(0x2c1)](this[_0x253b56(0x386)]),this[_0x253b56(0x14b)](this[_0x253b56(0x1ee)][_0x253b56(0x3c6)](this[_0x253b56(0x386)])[_0x253b56(0x1b6)](_0x3b2d3d=>{const _0x580424=_0x253b56;this[_0x580424(0x482)][_0x580424(0x20d)](_0x580424(0x39f),_0x580424(0x2b7),_0x3b2d3d),_0x3b2d3d===_0x213bfc[_0x580424(0x302)]?(this[_0x580424(0x166)][_0x580424(0x250)]({'content':this[_0x580424(0x341)]['t'](_0x580424(0x240)),'type':_0x145b31[_0x580424(0x3de)][_0x580424(0x2e0)]}),this['_permissionService'][_0x580424(0x1a7)](new _0x2d2223[(_0x580424(0x192))](this['unitID'])['id'],!0x1),this['_permissionService'][_0x580424(0x486)](!0x1)):(this[_0x580424(0x2a0)][_0x580424(0x1a7)](new _0x2d2223['WorkbookEditablePermission'](this['unitID'])['id'],!0x0),this[_0x580424(0x2a0)][_0x580424(0x486)](!0x0));})));let _0x53becd=!0x1;return this[_0x253b56(0x14b)](this['session'][_0x253b56(0x294)][_0x253b56(0x1b6)](_0x2e00aa=>{const _0x1075f2=_0x253b56;_0x2e00aa===_0x442957[_0x1075f2(0x4d5)]?this[_0x1075f2(0x389)](_0x53becd):_0x2e00aa===_0x442957[_0x1075f2(0x4d1)]&&(_0x53becd=!0x0,this[_0x1075f2(0x529)]());})),this[_0x253b56(0x14b)](this[_0x253b56(0x3f0)][_0x253b56(0x297)][_0x253b56(0x1b6)](_0x447ea6=>{const _0x5abf36=_0x253b56;try{switch(_0x447ea6[_0x5abf36(0x39a)]){case _0x5e5ab1[_0x5abf36(0x177)][_0x5abf36(0x102)]:{this[_0x5abf36(0x24a)](_0x5e5ab1['parseProtocolChangeset'](_0x447ea6['data']));break;}case _0x5e5ab1['CollaborationEvent'][_0x5abf36(0x1cb)]:{this[_0x5abf36(0x299)](_0x447ea6[_0x5abf36(0x489)]);break;}case _0x5e5ab1['CollaborationEvent']['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x5e5ab1[_0x5abf36(0x177)][_0x5abf36(0x406)]:{this[_0x5abf36(0x331)](_0x447ea6[_0x5abf36(0x489)]);break;}case _0x5e5ab1['CollaborationEvent'][_0x5abf36(0x518)]:{this[_0x5abf36(0x423)](_0x447ea6[_0x5abf36(0x489)]['changesets'][_0x5abf36(0x44d)](_0x5d0fc5=>_0x5e5ab1['parseProtocolChangeset'](_0x5d0fc5)));break;}case _0x5e5ab1[_0x5abf36(0x177)]['PERMISSION_REJ']:this[_0x5abf36(0x498)]({'isPermissionRej':!0x0});}}catch(_0x4a010b){throw console['error']('Error\x20on\x20receiving\x20event',_0x4a010b),_0x4a010b;}})),this['_state'];}[_0xb893b1(0x4de)](){const _0x495d48=_0xb893b1;this[_0x495d48(0x16f)]=!0x1;}[_0xb893b1(0x3dc)](){const _0x23b2a4=_0xb893b1;if(this[_0x23b2a4(0x16f)])throw new Error(_0x23b2a4(0x381));this[_0x23b2a4(0x16f)]=!0x0;}[_0xb893b1(0x4b7)](_0xfe4d3a){const _0x4c478f=_0xb893b1;this['_lockTransition'](),this[_0x4c478f(0x492)](this[_0x4c478f(0x216)][_0x4c478f(0x287)](_0xfe4d3a)),this[_0x4c478f(0x4de)]();}[_0xb893b1(0x24a)](_0x20bc7c){const _0x24a17e=_0xb893b1;if(!(_0x20bc7c[_0x24a17e(0x357)]<=this[_0x24a17e(0x3ee)][_0x24a17e(0x183)](this[_0x24a17e(0x386)]))){if(this[_0x24a17e(0x52f)]){this[_0x24a17e(0x1ea)][_0x24a17e(0x428)](_0x20bc7c);return;}this[_0x24a17e(0x1d3)](_0x20bc7c);}}[_0xb893b1(0x541)](){const _0xbdb061=_0xb893b1;this[_0xbdb061(0x1ea)][_0xbdb061(0x3b7)](_0x20f2ef=>this[_0xbdb061(0x1d3)](_0x20f2ef)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x4e05a0){const _0x5c3d84=_0xb893b1,_0x435c11=this[_0x5c3d84(0x236)]['interceptor'][_0x5c3d84(0x424)](this[_0x5c3d84(0x236)][_0x5c3d84(0x29d)][_0x5c3d84(0x2c6)]()[_0x5c3d84(0x239)])(_0x4e05a0['mutations'],null)||_0x4e05a0[_0x5c3d84(0x44a)],_0x4315c2={..._0x4e05a0,'mutations':_0x435c11};this['_lockTransition'](),this['_updateState'](this[_0x5c3d84(0x216)]['onRemoteChangeset'](_0x4315c2)),this['_unlockTransition']();}['_onRemoteACK'](_0xab9c13){const _0x58f529=_0xb893b1;this[_0x58f529(0x3dc)](),this[_0x58f529(0x492)](this[_0x58f529(0x216)][_0x58f529(0x344)](_0xab9c13)),this[_0x58f529(0x4de)]();}[_0xb893b1(0x498)](_0xff8a47){const _0x30b161=_0xb893b1;this[_0x30b161(0x3dc)](),this[_0x30b161(0x492)](this[_0x30b161(0x216)]['onRemoteRej'](_0xff8a47)),this[_0x30b161(0x4de)]();}[_0xb893b1(0x331)](_0x115cda){const _0x47386e=_0xb893b1;this[_0x47386e(0x3dc)](),this['_updateState'](this[_0x47386e(0x216)][_0x47386e(0x4d9)](_0x115cda)),this[_0x47386e(0x4de)]();}[_0xb893b1(0x423)](_0x326390){const _0x166354=_0xb893b1;if(!(this[_0x166354(0x216)]instanceof _0x58bc8e))throw new TypeError(_0x166354(0x462));const _0x26105c=_0x326390[_0x166354(0x44d)](_0x1b50eb=>{const _0x319111=_0x166354,_0x54d19f=this[_0x319111(0x236)]['interceptor'][_0x319111(0x424)](this[_0x319111(0x236)][_0x319111(0x29d)][_0x319111(0x2c6)]()['COMPRESS_MUTATION_APPLY'])(_0x1b50eb[_0x319111(0x44a)],null)||_0x1b50eb[_0x319111(0x44a)];return{..._0x1b50eb,'mutations':_0x54d19f};});this['_lockTransition'](),this['_updateState'](this['_state'][_0x166354(0x197)](_0x26105c)),this[_0x166354(0x4de)]();}[_0xb893b1(0x529)](){const _0x5e65b8=_0xb893b1;this[_0x5e65b8(0x3dc)](),this[_0x5e65b8(0x492)](this[_0x5e65b8(0x216)][_0x5e65b8(0x2a7)]()),this[_0x5e65b8(0x4de)]();}['_toggleOnline'](_0x363d54=!0x1){const _0x21c940=_0xb893b1;this[_0x21c940(0x3dc)](),this[_0x21c940(0x492)](this[_0x21c940(0x216)][_0x21c940(0x318)]()),this['_unlockTransition']();const _0x1128bb=this['_state'];_0x363d54&&_0x1128bb instanceof _0x433904&&(this['_lockTransition'](),this[_0x21c940(0x492)](_0x1128bb[_0x21c940(0x2ef)]()),this[_0x21c940(0x4de)]());}async['_createInitialState'](){return new Promise(_0x150dec=>{const _0x365fa7=_0x104b;this['session']['sessionStatus$'][_0x365fa7(0x3ca)](_0x4655d9['take'](0x1))[_0x365fa7(0x1b6)](async _0x519461=>{const _0x4831c5=_0x365fa7;_0x150dec(await this[_0x4831c5(0x135)](_0x519461===_0x442957[_0x4831c5(0x4d5)]));});});}[_0xb893b1(0x1dd)](){const _0x2b3232=_0xb893b1,_0x216401=this[_0x2b3232(0x386)];return{'onStateChange':(_0x188d32,_0xafe37a)=>{const _0x324b05=_0x2b3232;if(_0x188d32!==this['_state'])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x188d32[_0x324b05(0x259)]+_0x324b05(0x1c6)+_0xafe37a[_0x324b05(0x259)]+_0x324b05(0x342)+this[_0x324b05(0x216)][_0x324b05(0x259)]);this['_updateState'](_0xafe37a);},'onSendChangeset':_0x254540=>{const _0x122425=_0x2b3232;_0x254540[_0x122425(0x161)]||(_0x254540[_0x122425(0x161)]=this[_0x122425(0x233)],_0x254540[_0x122425(0x500)]=++this[_0x122425(0x53f)]);const _0x16f268={'eventID':_0x5e5ab1[_0x122425(0x177)][_0x122425(0x138)],'data':{'unitID':_0x254540[_0x122425(0x386)],'unitType':this[_0x122425(0x450)],'changeset':_0x254540,'memberID':this[_0x122425(0x3f0)][_0x122425(0x17d)]()}};this['session'][_0x122425(0x2c0)](_0x16f268,this['unitID']);},'onMissingChangesets':({from:_0x3a6e19,to:_0x21dff3})=>{const _0x5a0706=_0x2b3232;this['_logService'][_0x5a0706(0x20d)](_0x5a0706(0x39f),'fetching\x20missing\x20changesets\x20from\x20'+_0x3a6e19+_0x5a0706(0x48d)+_0x21dff3);const _0x13354f={'eventID':_0x5e5ab1[_0x5a0706(0x177)][_0x5a0706(0x43d)],'data':{'unitID':_0x216401,'unitType':this[_0x5a0706(0x450)],'from':_0x3a6e19,'to':_0x21dff3}};this[_0x5a0706(0x3f0)][_0x5a0706(0x2c0)](_0x13354f,this['unitID']);}};}async[_0xb893b1(0x135)](_0x4739c9){const _0x15f77f=_0xb893b1;var _0x508a2b,_0x2c2fc8;const _0x45898d=await this[_0x15f77f(0x4c9)][_0x15f77f(0x477)](this[_0x15f77f(0x386)]),_0x2b8f7b=(_0x508a2b=_0x45898d==null?void 0x0:_0x45898d[_0x15f77f(0x44a)])!=null?_0x508a2b:[],_0x36077b=(_0x2c2fc8=_0x45898d==null?void 0x0:_0x45898d[_0x15f77f(0x20a)])!=null?_0x2c2fc8:null,_0x48559a=!!(_0x36077b!=null&&_0x36077b[_0x15f77f(0x161)])&&!!(_0x36077b!=null&&_0x36077b[_0x15f77f(0x500)]);this[_0x15f77f(0x233)]=_0x48559a?_0x36077b[_0x15f77f(0x161)]:_0x3b5e61(),this[_0x15f77f(0x53f)]=_0x48559a?_0x36077b[_0x15f77f(0x500)]:0x0;const _0x43a162=this[_0x15f77f(0x386)];try{this[_0x15f77f(0x32f)](_0x36077b,_0x2b8f7b);}catch(_0x11ba28){this[_0x15f77f(0x482)]['error'](_0x11ba28);}const _0x5566c1=this['_createHandler']();if(_0x4739c9){const _0x6eba4f=_0x434480(this[_0x15f77f(0x126)],_0x43a162,this[_0x15f77f(0x450)],_0x36077b,_0x2b8f7b,_0x5566c1);return _0x6eba4f instanceof _0x48d3b9?_0x6eba4f[_0x15f77f(0x395)]():(_0x6eba4f instanceof _0x5115be||_0x6eba4f instanceof _0x5943fe)&&_0x6eba4f[_0x15f77f(0x4b5)](),_0x6eba4f;}return this[_0x15f77f(0x126)][_0x15f77f(0x361)](_0x19fad0,_0x43a162,this[_0x15f77f(0x450)],_0x36077b,_0x2b8f7b,_0x5566c1);}[_0xb893b1(0x32f)](_0x4f7312,_0x20555a){const _0x47b942=_0xb893b1;var _0x4946c9,_0x6d7a21;const _0x3d3265=this[_0x47b942(0x236)]['interceptor'][_0x47b942(0x424)](this['_compressMutationService'][_0x47b942(0x29d)][_0x47b942(0x2c6)]()[_0x47b942(0x239)]);(_0x4946c9=_0x3d3265((_0x4f7312==null?void 0x0:_0x4f7312[_0x47b942(0x44a)])||[],null))==null||_0x4946c9[_0x47b942(0x3b7)](_0x3c6371=>this['_commandService']['executeCommand'](_0x3c6371['id'],_0x3c6371['params'])),(_0x6d7a21=_0x3d3265(_0x20555a||[],null))==null||_0x6d7a21[_0x47b942(0x3b7)](_0x477436=>this[_0x47b942(0x4af)][_0x47b942(0x3c5)](_0x477436['id'],_0x477436[_0x47b942(0x16b)]));}},_0x3b52c4[_0xb893b1(0x336)]=_0x8c54e8([_0x4f9c72(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x4f9c72(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x4f9c72(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x512)])),_0x4f9c72(0x6,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4ee)])),_0x4f9c72(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x4f9c72(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x4f9c72(0x9,_0x58b389[_0xb893b1(0x1ec)]),_0x4f9c72(0xa,_0x4d3c2b['IMessageService']),_0x4f9c72(0xb,_0x58b389[_0xb893b1(0x4e1)]),_0x4f9c72(0xc,_0x58b389[_0xb893b1(0x45b)](_0x8f0d7b))],_0x3b52c4[_0xb893b1(0x336)]),_0x3b52c4[_0xb893b1(0x276)]=class extends _0x3b52c4[_0xb893b1(0x336)]{constructor(_0x4af2aa,_0x284e07,_0x1c77d9,_0x3d27d2,_0x3f0c20,_0x4da130,_0x591fe3,_0x1c7f30,_0x5ac23d,_0x5d1d99,_0x15d056,_0x33659d,_0x21a497,_0x327442,_0x27cf40,_0x3849eb,_0x35105a){const _0x22ec5e=_0xb893b1;super(_0x4af2aa,_0x1c77d9,_0x284e07,_0x3d27d2,_0x3f0c20,_0x4da130,_0x591fe3,_0x1c7f30,_0x21a497,_0x327442,_0x27cf40,_0x3849eb,_0x35105a),this[_0x22ec5e(0x386)]=_0x4af2aa,this[_0x22ec5e(0x191)]=_0x284e07,this[_0x22ec5e(0x18a)]=_0x5ac23d,this[_0x22ec5e(0x1c3)]=_0x5d1d99,this[_0x22ec5e(0x3b1)]=_0x15d056,this[_0x22ec5e(0x314)]=_0x33659d;}[_0xb893b1(0x1dd)](){const _0x96d01e=_0xb893b1,_0x6d5081=super[_0x96d01e(0x1dd)]();return _0x6d5081[_0x96d01e(0x521)]=_0x388509=>this[_0x96d01e(0x1c3)][_0x96d01e(0x31b)](_0x388509),_0x6d5081[_0x96d01e(0x400)]=_0x59b3d9=>this['_docTransformSelectionsService'][_0x96d01e(0x45a)](_0x59b3d9),_0x6d5081[_0x96d01e(0x173)]=_0x5270ad=>this[_0x96d01e(0x314)][_0x96d01e(0x218)](_0x5270ad),_0x6d5081['onTransformRemoteChangesetByIMECache']=_0xbd92f=>this[_0x96d01e(0x1c3)][_0x96d01e(0x10c)](_0xbd92f),_0x6d5081;}async[_0xb893b1(0x3e2)](){const _0x18492e=_0xb893b1,_0x266393=await super[_0x18492e(0x3e2)]();return this[_0x18492e(0x18a)]['docStateChange$'][_0x18492e(0x3ca)](_0x4655d9[_0x18492e(0x260)](this[_0x18492e(0x11c)]))[_0x18492e(0x1b6)](_0x7e640=>{const _0x135863=_0x18492e;if(_0x7e640==null)return;const {unitId:_0x15e240,redoState:_0x44036f,commandId:_0x4ebccd}=_0x7e640;if(_0x15e240!==this['unitID'])return;const _0x4940d7={'id':_0x4ebccd,'type':_0x58b389[_0x135863(0x160)][_0x135863(0x101)],'params':{'unitId':_0x15e240,'actions':_0x44036f[_0x135863(0x12b)],'textRanges':null}};this[_0x135863(0x4b7)](_0x4940d7);}),_0x266393;}},_0x3b52c4[_0xb893b1(0x276)]=_0x8c54e8([_0x4f9c72(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0x4f9c72(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x4f9c72(0x5,_0x58b389['Inject'](_0x5e5ab1['CompressMutationService'])),_0x4f9c72(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4ee)])),_0x4f9c72(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x4f9c72(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x24db92[_0xb893b1(0x37c)])),_0x4f9c72(0x9,_0x58b389[_0xb893b1(0x4ac)](_0x3f6990)),_0x4f9c72(0xa,_0x58b389[_0xb893b1(0x4ac)](_0x5dda6a)),_0x4f9c72(0xb,_0x58b389[_0xb893b1(0x4ac)](_0x195ff7)),_0x4f9c72(0xc,_0x58b389[_0xb893b1(0x46a)]),_0x4f9c72(0xd,_0x58b389['ICommandService']),_0x4f9c72(0xe,_0x4d3c2b['IMessageService']),_0x4f9c72(0xf,_0x58b389['IPermissionService']),_0x4f9c72(0x10,_0x58b389[_0xb893b1(0x45b)](_0x8f0d7b))],_0x3b52c4[_0xb893b1(0x276)]),_0x3b52c4[_0xb893b1(0x4ff)]=class extends _0x3b52c4['CollaborationEntity']{constructor(_0xcb4700,_0xaae16e,_0x606e94,_0x8ba2b1,_0x5dfb87,_0x3c45e3,_0x1cf71b,_0xee56fa,_0x5ef210,_0x41824f,_0x2aad12,_0x56b339,_0x365817,_0x3d5cbf){const _0x59465a=_0xb893b1;super(_0xcb4700,_0x606e94,_0xaae16e,_0x8ba2b1,_0x5dfb87,_0x3c45e3,_0x1cf71b,_0xee56fa,_0x41824f,_0x2aad12,_0x56b339,_0x365817,_0x3d5cbf),this['unitID']=_0xcb4700,this[_0x59465a(0x191)]=_0xaae16e,this[_0x59465a(0x2d6)]=_0x5ef210;}['_createHandler'](){const _0x14f543=_0xb893b1,_0x55e8bd=super[_0x14f543(0x1dd)]();return _0x55e8bd[_0x14f543(0x400)]=_0x1cee35=>this[_0x14f543(0x2d6)][_0x14f543(0x45a)](_0x1cee35),_0x55e8bd;}async[_0xb893b1(0x3e2)](){const _0x16df4e=_0xb893b1,_0x18db9b=await super[_0x16df4e(0x3e2)]();return this[_0x16df4e(0x14b)](this['_commandService'][_0x16df4e(0x330)]((_0x1bdedf,_0x5e20d7)=>{const _0x171805=_0x16df4e;if(_0x1bdedf['type']!==_0x58b389[_0x171805(0x160)][_0x171805(0x101)]||_0x5e20d7!=null&&_0x5e20d7['fromCollab']||_0x5e20d7!=null&&_0x5e20d7[_0x171805(0x204)])return;const _0x39646e=_0x1bdedf[_0x171805(0x16b)];if((_0x39646e==null?void 0x0:_0x39646e['unitId'])!==this[_0x171805(0x386)])return;const _0x3a94ef=_0x1bdedf,_0x4dc929=this[_0x171805(0x236)][_0x171805(0x29d)][_0x171805(0x424)](this[_0x171805(0x236)][_0x171805(0x29d)][_0x171805(0x2c6)]()[_0x171805(0x1c0)])([_0x3a94ef],null)||[_0x3a94ef];this[_0x171805(0x4b7)](_0x4dc929[0x0]);})),_0x18db9b;}},_0x3b52c4[_0xb893b1(0x4ff)]=_0x8c54e8([_0x4f9c72(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0x4f9c72(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['LocalCacheService'])),_0x4f9c72(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1['CompressMutationService'])),_0x4f9c72(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['LocaleService'])),_0x4f9c72(0x7,_0x58b389['Inject'](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x4f9c72(0x8,_0x58b389['Inject'](_0xc29e66)),_0x4f9c72(0x9,_0x58b389[_0xb893b1(0x46a)]),_0x4f9c72(0xa,_0x58b389[_0xb893b1(0x1ec)]),_0x4f9c72(0xb,_0x4d3c2b[_0xb893b1(0x36f)]),_0x4f9c72(0xc,_0x58b389[_0xb893b1(0x4e1)]),_0x4f9c72(0xd,_0x58b389[_0xb893b1(0x45b)](_0x8f0d7b))],_0x3b52c4[_0xb893b1(0x4ff)]);var _0x86f81b=Object[_0xb893b1(0x1bc)],_0x515fc6=Object[_0xb893b1(0x490)],_0x3dcf79=(_0xed00fc,_0x37fa68,_0x111e1e,_0x8efa5b)=>{const _0x50ff93=_0xb893b1;for(var _0x375774=_0x8efa5b>0x1?void 0x0:_0x8efa5b?_0x515fc6(_0x37fa68,_0x111e1e):_0x37fa68,_0x3419cb=_0xed00fc[_0x50ff93(0x4d8)]-0x1,_0x390de3;_0x3419cb>=0x0;_0x3419cb--)(_0x390de3=_0xed00fc[_0x3419cb])&&(_0x375774=(_0x8efa5b?_0x390de3(_0x37fa68,_0x111e1e,_0x375774):_0x390de3(_0x375774))||_0x375774);return _0x8efa5b&&_0x375774&&_0x86f81b(_0x37fa68,_0x111e1e,_0x375774),_0x375774;},_0x4d4811=(_0x19211c,_0x42da98)=>(_0x450e72,_0x4545a3)=>_0x42da98(_0x450e72,_0x4545a3,_0x19211c);_0x3b52c4[_0xb893b1(0x20c)]=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x150ef2,_0x2d1a66,_0x2dfca2){const _0x12cc14=_0xb893b1;super(),_0xf1fe43(this,_0x12cc14(0x415),new Map()),_0xf1fe43(this,_0x12cc14(0x2c2),new _0x4655d9[(_0x12cc14(0x4d6))]()),(this[_0x12cc14(0x126)]=_0x150ef2,this[_0x12cc14(0x4df)]=_0x2d1a66,this['_univerInstanceService']=_0x2dfca2,this['_init']());}[_0xb893b1(0x50d)](){const _0x3fcddb=_0xb893b1;super[_0x3fcddb(0x50d)](),this['_entities']['forEach'](_0x2a09c2=>_0x2a09c2[_0x3fcddb(0x50d)]()),this['_entities'][_0x3fcddb(0x48c)]();}[_0xb893b1(0x408)](_0x44e419){const _0x73de04=_0xb893b1;var _0x42a041;return(_0x42a041=this[_0x73de04(0x415)]['get'](_0x44e419))!=null?_0x42a041:null;}[_0xb893b1(0x417)](_0x45f8fa){const _0x1198d2=_0xb893b1,_0x53cb53=this[_0x1198d2(0x408)](_0x45f8fa);return _0x53cb53?_0x4655d9['of'](_0x53cb53):this[_0x1198d2(0x2c2)]['pipe'](_0x5d8a56[_0x1198d2(0x1ae)](_0x3c6cb3=>_0x3c6cb3[_0x1198d2(0x386)]===_0x45f8fa));}[_0xb893b1(0x3e2)](){const _0x3ca99c=_0xb893b1;this['_univerInstanceService'][_0x3ca99c(0x2a1)](_0x58b389['UniverInstanceType']['UNIVER_SHEET'])[_0x3ca99c(0x3ca)](_0x4655d9[_0x3ca99c(0x260)](this[_0x3ca99c(0x11c)]),_0x5d8a56[_0x3ca99c(0x184)](0x10))['subscribe'](async _0x37aca6=>{const _0x44bf77=_0x3ca99c,_0xb3646e=_0x37aca6[_0x44bf77(0x2b3)](),_0x5220ef=await this[_0x44bf77(0x35e)](_0xb3646e,_0x2e214d[_0x44bf77(0x2db)]);this[_0x44bf77(0x415)]['set'](_0xb3646e,_0x5220ef);}),this[_0x3ca99c(0x123)][_0x3ca99c(0x2a1)](_0x58b389[_0x3ca99c(0x441)]['UNIVER_DOC'])[_0x3ca99c(0x3ca)](_0x4655d9['takeUntil'](this['dispose$']),_0x5d8a56['delay'](0x10))[_0x3ca99c(0x3ca)](_0x5d8a56[_0x3ca99c(0x1ae)](_0x6af365=>!_0x6af365['getUnitId']()[_0x3ca99c(0x464)]('__')))[_0x3ca99c(0x1b6)](async _0x980388=>{const _0x381116=_0x3ca99c,_0x3ce3b3=_0x980388['getUnitId'](),_0x535dc7=await this['_startCollaboration'](_0x3ce3b3,_0x2e214d[_0x381116(0x2d8)]);this[_0x381116(0x415)][_0x381116(0x1c2)](_0x3ce3b3,_0x535dc7);}),_0x4655d9[_0x3ca99c(0x1b3)](this[_0x3ca99c(0x123)][_0x3ca99c(0x227)](_0x58b389[_0x3ca99c(0x441)][_0x3ca99c(0x2db)]),this[_0x3ca99c(0x123)][_0x3ca99c(0x227)](_0x58b389[_0x3ca99c(0x441)]['UNIVER_DOC']))[_0x3ca99c(0x3ca)](_0x4655d9[_0x3ca99c(0x260)](this[_0x3ca99c(0x11c)]))[_0x3ca99c(0x1b6)](_0x68c979=>{const _0x1111d1=_0x3ca99c,_0x23a6e2=_0x68c979['getUnitId'](),_0x5b1f9a=this[_0x1111d1(0x415)][_0x1111d1(0x19d)](_0x23a6e2);_0x5b1f9a&&(_0x5b1f9a[_0x1111d1(0x50d)](),this[_0x1111d1(0x415)]['delete'](_0x23a6e2));});}async[_0xb893b1(0x35e)](_0x37a83b,_0x4ff5ac){const _0x723263=_0xb893b1,_0x1086c5=await this['_collabSessionService'][_0x723263(0x213)](_0x37a83b),_0x4b4810=this[_0x723263(0x126)][_0x723263(0x361)](this[_0x723263(0x4cb)](_0x4ff5ac),_0x37a83b,_0x4ff5ac,_0x1086c5);return await _0x4b4810[_0x723263(0x29f)](),this[_0x723263(0x2c2)][_0x723263(0x174)](_0x4b4810),_0x4b4810;}[_0xb893b1(0x4cb)](_0x42aadd){const _0xb4ca48=_0xb893b1;switch(_0x42aadd){case _0x2e214d['UNIVER_DOC']:return _0x3b52c4[_0xb4ca48(0x276)];case _0x2e214d[_0xb4ca48(0x2db)]:return _0x3b52c4[_0xb4ca48(0x4ff)];default:throw new Error(_0xb4ca48(0x224)+_0x42aadd);}}},_0x3b52c4['CollaborationController']=_0x3dcf79([_0x4d4811(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x4d4811(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x11f)])),_0x4d4811(0x2,_0x58b389[_0xb893b1(0x1d9)])],_0x3b52c4[_0xb893b1(0x20c)]);const _0x4d0793=['purple300',_0xb893b1(0x27a),'verdancy600',_0xb893b1(0x3af),_0xb893b1(0x2d3),'gold400'];class _0x15453c extends _0x58b389[_0xb893b1(0x4dc)]{constructor(){const _0x368216=_0xb893b1;super(...arguments),_0xf1fe43(this,'_assignedColors',new Map()),_0xf1fe43(this,_0x368216(0x3ae),0x0);}['assignAColorForMemberID'](_0x1a6b44){const _0x31af22=_0xb893b1;if(this['_assignedColors'][_0x31af22(0x2dc)](_0x1a6b44))return this[_0x31af22(0x53e)][_0x31af22(0x19d)](_0x1a6b44);const _0x1b6a6f=_0x4d0793[this[_0x31af22(0x3ae)]];return this[_0x31af22(0x3ae)]=(this[_0x31af22(0x3ae)]+0x1)%_0x4d0793[_0x31af22(0x4d8)],this[_0x31af22(0x53e)][_0x31af22(0x1c2)](_0x1a6b44,_0x1b6a6f),_0x1b6a6f;}}var _0x327a6d=Object['defineProperty'],_0x5917ba=Object[_0xb893b1(0x490)],_0x56694=(_0x2b3956,_0x39f9f0,_0x55576f,_0x135bfe)=>{for(var _0xfd29ca=_0x135bfe>0x1?void 0x0:_0x135bfe?_0x5917ba(_0x39f9f0,_0x55576f):_0x39f9f0,_0x15f444=_0x2b3956['length']-0x1,_0x5f1fe1;_0x15f444>=0x0;_0x15f444--)(_0x5f1fe1=_0x2b3956[_0x15f444])&&(_0xfd29ca=(_0x135bfe?_0x5f1fe1(_0x39f9f0,_0x55576f,_0xfd29ca):_0x5f1fe1(_0xfd29ca))||_0xfd29ca);return _0x135bfe&&_0xfd29ca&&_0x327a6d(_0x39f9f0,_0x55576f,_0xfd29ca),_0xfd29ca;},_0x4d1c02=(_0x2ba362,_0x159937)=>(_0x4edc87,_0x155c80)=>_0x159937(_0x4edc87,_0x155c80,_0x2ba362);const _0x40af2e=0x12c,_0x471a29=0x64;let _0x386a8f=class extends _0x58b389['RxDisposable']{constructor(_0x18bc49,_0x4d94af,_0x178207,_0x5a5715,_0x434410,_0x5c2a27,_0x356457,_0x102c21,_0x88482){const _0x53585b=_0xb893b1;super(),_0xf1fe43(this,_0x53585b(0x20f),!0x1),_0xf1fe43(this,_0x53585b(0x3e2),!0x1),_0xf1fe43(this,_0x53585b(0x3b9),new _0x4655d9['BehaviorSubject'](new Map())),_0xf1fe43(this,_0x53585b(0x2aa),this[_0x53585b(0x3b9)][_0x53585b(0x526)]()),_0xf1fe43(this,_0x53585b(0x300),new _0x4655d9['BehaviorSubject']([])),_0xf1fe43(this,_0x53585b(0x1b7),this[_0x53585b(0x300)][_0x53585b(0x3ca)](_0x4655d9[_0x53585b(0x22d)](_0x40af2e))),_0xf1fe43(this,_0x53585b(0x222),_0x58b389[_0x53585b(0x35d)](_0x24e24c=>{const _0x3e71b3=_0x53585b,_0x154c67={'eventID':_0x5e5ab1[_0x3e71b3(0x177)][_0x3e71b3(0x178)],'data':{'unitID':this['unitID'],'memberID':this[_0x3e71b3(0x378)][_0x3e71b3(0x17d)](),'selection':_0x21cb6a(_0x24e24c)}};this['_session'][_0x3e71b3(0x2c0)](_0x154c67,this['unitID']);},_0x471a29)),(this[_0x53585b(0x386)]=_0x18bc49,this[_0x53585b(0x378)]=_0x4d94af,this[_0x53585b(0x126)]=_0x178207,this['_colorAssignService']=_0x5a5715,this['_memberService']=_0x434410,this[_0x53585b(0x39d)]=_0x5c2a27,this[_0x53585b(0x18d)]=_0x356457,this[_0x53585b(0x123)]=_0x102c21,this[_0x53585b(0x4af)]=_0x88482);}get[_0xb893b1(0x42b)](){const _0x36b536=_0xb893b1;return this['_cursorInfo$'][_0x36b536(0x38d)]();}get[_0xb893b1(0x504)](){const _0x49f353=_0xb893b1;return this[_0x49f353(0x300)][_0x49f353(0x38d)]();}[_0xb893b1(0x50d)](){const _0x4fc92b=_0xb893b1;super[_0x4fc92b(0x50d)](),this[_0x4fc92b(0x3b9)]['next'](new Map()),this[_0x4fc92b(0x3b9)][_0x4fc92b(0x398)](),this['_roomMembers$'][_0x4fc92b(0x174)]([]),this[_0x4fc92b(0x300)][_0x4fc92b(0x398)]();}[_0xb893b1(0x29f)](){const _0x345393=_0xb893b1;this[_0x345393(0x3e2)]||(this[_0x345393(0x3e2)]=!0x0,this[_0x345393(0x378)][_0x345393(0x294)]['pipe'](_0x4655d9[_0x345393(0x260)](this['dispose$']))[_0x345393(0x1b6)](_0x3e26e6=>{const _0x23fdb0=_0x345393;_0x3e26e6===_0x442957[_0x23fdb0(0x4d5)]?this[_0x23fdb0(0x389)]():this[_0x23fdb0(0x529)]();}),this[_0x345393(0x378)][_0x345393(0x297)][_0x345393(0x3ca)](_0x4655d9[_0x345393(0x260)](this[_0x345393(0x11c)]))[_0x345393(0x1b6)](_0x4bdc1e=>{const _0x2b48ce=_0x345393,_0x1320b5=_0x4bdc1e['eventID'];_0x1320b5===_0x5e5ab1[_0x2b48ce(0x177)][_0x2b48ce(0x178)]&&this['_onCursorUpdate'](_0x4bdc1e),_0x1320b5===_0x5e5ab1[_0x2b48ce(0x177)]['USERS_LEAVE']&&this[_0x2b48ce(0x2b2)](_0x4bdc1e);}),this[_0x345393(0x14b)](this['_commandService'][_0x345393(0x330)](_0x1b38ab=>{const _0x1cc6f9=_0x345393,_0x28f4e1=_0x1b38ab[_0x1cc6f9(0x16b)];_0x28f4e1!=null&&this['_online']&&_0x1b38ab['id']===_0x124506['SetTextSelectionsOperation']['id']&&_0x28f4e1[_0x1cc6f9(0x458)]===this[_0x1cc6f9(0x386)]&&_0x28f4e1[_0x1cc6f9(0x111)]===!0x1&&_0x28f4e1[_0x1cc6f9(0x3a0)][_0x1cc6f9(0x4d8)]>0x0&&this[_0x1cc6f9(0x222)](_0x28f4e1[_0x1cc6f9(0x3a0)]);})),this[_0x345393(0x39d)][_0x345393(0x200)]['pipe'](_0x4655d9['takeUntil'](this['dispose$']))[_0x345393(0x1b6)](_0x20bedc=>{const _0xdbf375=_0x345393;if((_0x20bedc==null?void 0x0:_0x20bedc[_0xdbf375(0x386)])!==this['unitID'])return;const _0x5063f9={'eventID':_0x5e5ab1[_0xdbf375(0x177)][_0xdbf375(0x178)],'data':_0x20bedc};this[_0xdbf375(0x43e)](_0x5063f9);}),this[_0x345393(0x14b)](this[_0x345393(0x4af)][_0x345393(0x330)](_0x44132b=>{const _0x255cfa=_0x345393;if(_0x44132b['params']==null)return;const _0x345d11=_0x44132b[_0x255cfa(0x16b)];if(_0x44132b['id']!==_0x124506['RichTextEditingMutation']['id']||_0x345d11[_0x255cfa(0x458)]!==this[_0x255cfa(0x386)])return;const _0x4a1094={'id':_0x255cfa(0x29a),'params':_0x345d11},_0x165b27=this[_0x255cfa(0x42b)];for(const [_0x1b05bf,_0x4037e4]of _0x165b27){const _0x3763f3={'id':_0x255cfa(0x29a),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4037e4['ranges']}},_0xd33252=this[_0x255cfa(0x18d)][_0x255cfa(0x10a)](_0x4a1094,_0x3763f3,!0x1);if(_0x5e5ab1[_0x255cfa(0x251)](_0xd33252))throw _0xd33252[_0x255cfa(0x368)];_0x165b27['set'](_0x1b05bf,{..._0x4037e4,'ranges':_0xd33252[_0x255cfa(0x23f)][_0x255cfa(0x16b)][_0x255cfa(0x107)]});}queueMicrotask(()=>{const _0x168517=_0x255cfa;this[_0x168517(0x3b9)]['next'](_0x165b27);});})));}[_0xb893b1(0x43e)](_0x1d6a64){const _0x5006f3=_0xb893b1;var _0x419db6,_0x10e16c;const {memberID:_0x32dc18,selection:_0x573626}=_0x1d6a64[_0x5006f3(0x489)],_0xe35178=_0x1f2f83(_0x573626),_0x226703=(_0x10e16c=(_0x419db6=this['_memberService'][_0x5006f3(0x176)](this[_0x5006f3(0x386)],_0x32dc18))==null?void 0x0:_0x419db6[_0x5006f3(0x4e3)])!=null?_0x10e16c:'Unknown\x20user',_0x18daa1={'color':this[_0x5006f3(0x244)][_0x5006f3(0x432)](_0x32dc18),'name':_0x226703,'ranges':_0xe35178},_0x321114=this[_0x5006f3(0x42b)];_0x321114[_0x5006f3(0x1c2)](_0x32dc18,_0x18daa1),this['_cursorInfo$'][_0x5006f3(0x174)](_0x321114);}[_0xb893b1(0x2b2)](_0x52804f){const _0x276096=_0xb893b1,{memberID:_0x4a7175}=_0x52804f[_0x276096(0x489)],_0xd806d4=this[_0x276096(0x42b)];_0xd806d4[_0x276096(0x1d0)](_0x4a7175),this[_0x276096(0x3b9)][_0x276096(0x174)](_0xd806d4);}[_0xb893b1(0x389)](){const _0x237091=_0xb893b1;var _0x2ce5fa;if(this[_0x237091(0x20f)]=!0x0,((_0x2ce5fa=this[_0x237091(0x123)][_0x237091(0x42e)]())==null?void 0x0:_0x2ce5fa[_0x237091(0x2b3)]())!==this[_0x237091(0x386)])return;const _0x238567=this['_injector']['get'](_0x124506[_0x237091(0x446)])[_0x237091(0x372)]();Array['isArray'](_0x238567)&&_0x238567[_0x237091(0x4d8)]>0x0&&this[_0x237091(0x222)](_0x238567);}[_0xb893b1(0x529)](){const _0x21f1f3=_0xb893b1;this[_0x21f1f3(0x20f)]=!0x1;}};_0x386a8f=_0x56694([_0x4d1c02(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x4d1c02(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x15453c)),_0x4d1c02(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x384)])),_0x4d1c02(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x195ff7)),_0x4d1c02(0x6,_0x5e5ab1[_0xb893b1(0x157)]),_0x4d1c02(0x7,_0x58b389[_0xb893b1(0x1d9)]),_0x4d1c02(0x8,_0x58b389['ICommandService'])],_0x386a8f);var _0x50abc1=Object[_0xb893b1(0x1bc)],_0x2c30a8=Object[_0xb893b1(0x490)],_0x289486=(_0x15e53b,_0x269759,_0x9e527a,_0x33959f)=>{const _0x176f6f=_0xb893b1;for(var _0x2121b0=_0x33959f>0x1?void 0x0:_0x33959f?_0x2c30a8(_0x269759,_0x9e527a):_0x269759,_0x3ea9d7=_0x15e53b[_0x176f6f(0x4d8)]-0x1,_0x1c9cb4;_0x3ea9d7>=0x0;_0x3ea9d7--)(_0x1c9cb4=_0x15e53b[_0x3ea9d7])&&(_0x2121b0=(_0x33959f?_0x1c9cb4(_0x269759,_0x9e527a,_0x2121b0):_0x1c9cb4(_0x2121b0))||_0x2121b0);return _0x33959f&&_0x2121b0&&_0x50abc1(_0x269759,_0x9e527a,_0x2121b0),_0x2121b0;},_0x112696=(_0x5bcc7e,_0xb79314)=>(_0x5f0d93,_0x570346)=>_0xb79314(_0x5f0d93,_0x570346,_0x5bcc7e);const _0x6a7583=0x12c,_0x14ffa7=0x64,_0x44bb56=()=>{let _0x2b64c9=[],_0x496a58=!0x1;return _0x5bee35=>{const _0x4b8f0e=_0x104b;_0x2b64c9[_0x4b8f0e(0x428)](_0x5bee35),_0x496a58||(_0x496a58=!0x0,setTimeout(()=>{const _0x33f136=_0x4b8f0e;_0x2b64c9[_0x33f136(0x3b7)](_0x2365e9=>_0x2365e9()),_0x2b64c9=[],_0x496a58=!0x1;}));};};let _0x1592bf=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x37cd4d,_0x116857,_0x11ef49,_0x5d60fc,_0x3f1a89,_0x1f2cfb,_0x430df8,_0x306ec2){const _0x3bc466=_0xb893b1;super(),_0xf1fe43(this,_0x3bc466(0x20f),!0x1),_0xf1fe43(this,_0x3bc466(0x3e2),!0x1),_0xf1fe43(this,_0x3bc466(0x3b9),new _0x4655d9['BehaviorSubject'](new Map())),_0xf1fe43(this,_0x3bc466(0x2aa),this[_0x3bc466(0x3b9)]['asObservable']()),_0xf1fe43(this,_0x3bc466(0x300),new _0x4655d9['BehaviorSubject']([])),_0xf1fe43(this,_0x3bc466(0x1b7),this[_0x3bc466(0x300)][_0x3bc466(0x3ca)](_0x4655d9[_0x3bc466(0x22d)](_0x6a7583))),_0xf1fe43(this,_0x3bc466(0x222),_0x58b389[_0x3bc466(0x35d)]((_0x3fd098,_0x226f42)=>{const _0x187544=_0x3bc466,_0x1d224e={'eventID':_0x5e5ab1['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x187544(0x386)],'memberID':this[_0x187544(0x378)][_0x187544(0x17d)](),'selection':_0x4be577[_0x187544(0x52b)](_0x3fd098,_0x226f42[_0x187544(0x385)])}};this[_0x187544(0x378)]['send'](_0x1d224e,this['unitID']);},_0x14ffa7)),(this['unitID']=_0x37cd4d,this['_session']=_0x116857,this[_0x3bc466(0x126)]=_0x11ef49,this[_0x3bc466(0x244)]=_0x5d60fc,this[_0x3bc466(0x505)]=_0x3f1a89,this[_0x3bc466(0x123)]=_0x1f2cfb,this['_commandService']=_0x430df8,this[_0x3bc466(0x220)]=_0x306ec2);}get[_0xb893b1(0x42b)](){const _0x1ea22b=_0xb893b1;return this['_cursorInfo$'][_0x1ea22b(0x38d)]();}get[_0xb893b1(0x504)](){const _0x4a5519=_0xb893b1;return this[_0x4a5519(0x300)][_0x4a5519(0x38d)]();}['dispose'](){const _0x4e7bbc=_0xb893b1;super[_0x4e7bbc(0x50d)](),this[_0x4e7bbc(0x3b9)][_0x4e7bbc(0x174)](new Map()),this['_cursorInfo$'][_0x4e7bbc(0x398)](),this[_0x4e7bbc(0x300)]['next']([]),this[_0x4e7bbc(0x300)][_0x4e7bbc(0x398)]();}[_0xb893b1(0x29f)](){const _0x200998=_0xb893b1;this[_0x200998(0x3e2)]||(this['_init']=!0x0,this[_0x200998(0x378)][_0x200998(0x294)][_0x200998(0x3ca)](_0x4655d9[_0x200998(0x260)](this['dispose$']))[_0x200998(0x1b6)](_0x262334=>{const _0xb204d9=_0x200998;_0x262334===_0x442957[_0xb204d9(0x4d5)]?this[_0xb204d9(0x389)]():this[_0xb204d9(0x529)]();}),this['_session']['event$'][_0x200998(0x3ca)](_0x4655d9[_0x200998(0x260)](this['dispose$']))[_0x200998(0x1b6)](_0x3179bd=>{const _0x43c6d9=_0x200998,_0x1aacf9=_0x3179bd[_0x43c6d9(0x39a)];_0x1aacf9===_0x5e5ab1[_0x43c6d9(0x177)][_0x43c6d9(0x178)]&&this[_0x43c6d9(0x43e)](_0x3179bd),_0x1aacf9===_0x5e5ab1[_0x43c6d9(0x177)][_0x43c6d9(0x30d)]&&this['_onCursorDelete'](_0x3179bd);}),this['_onRefRangeChange'](),this[_0x200998(0x14b)](this[_0x200998(0x4af)][_0x200998(0x330)](_0x15ad57=>{const _0xcfeff8=_0x200998;if(this['_online']&&_0x15ad57['id']===_0x2d2223[_0xcfeff8(0x327)]['id']&&_0x15ad57['params'][_0xcfeff8(0x458)]===this['unitID']){const _0x127573=_0x15ad57[_0xcfeff8(0x16b)];this[_0xcfeff8(0x222)](_0x127573['subUnitId'],_0x127573['selections'][0x0]);}})));}[_0xb893b1(0x43e)](_0x7024c8){const _0x3a8073=_0xb893b1;var _0x4f0f8d,_0x2036b5;const {memberID:_0x23ce69,selection:_0x5763b1}=_0x7024c8['data'],{sheetName:_0x2bf308,range:_0x2c2ce3}=_0x4be577[_0x3a8073(0x4a8)](_0x5763b1),_0x45251d={'name':(_0x2036b5=(_0x4f0f8d=this[_0x3a8073(0x505)][_0x3a8073(0x176)](this[_0x3a8073(0x386)],_0x23ce69))==null?void 0x0:_0x4f0f8d['name'])!=null?_0x2036b5:_0x3a8073(0x2a5),'range':this[_0x3a8073(0x266)](_0x2bf308,_0x2c2ce3),'sheetID':_0x2bf308,'color':this[_0x3a8073(0x244)][_0x3a8073(0x432)](_0x23ce69),'selection':_0x5763b1},_0x1b2c67=this[_0x3a8073(0x42b)];_0x1b2c67[_0x3a8073(0x1c2)](_0x23ce69,_0x45251d),this[_0x3a8073(0x3b9)][_0x3a8073(0x174)](_0x1b2c67);}[_0xb893b1(0x2b2)](_0x5883ef){const _0x284d56=_0xb893b1,{memberID:_0x581ef8}=_0x5883ef[_0x284d56(0x489)],_0x1b1e7b=this[_0x284d56(0x42b)];_0x1b1e7b[_0x284d56(0x1d0)](_0x581ef8),this[_0x284d56(0x3b9)]['next'](_0x1b1e7b);}[_0xb893b1(0x266)](_0x25e736,_0x225808){const _0x568a84=_0xb893b1;var _0x41f507,_0x3f4a0f;const _0x38fb34=(_0x3f4a0f=(_0x41f507=this[_0x568a84(0x123)][_0x568a84(0x506)](this[_0x568a84(0x386)]))==null?void 0x0:_0x41f507['getSheetBySheetId'](_0x25e736))==null?void 0x0:_0x3f4a0f[_0x568a84(0x51d)]();return(_0x38fb34==null?void 0x0:_0x38fb34[_0x568a84(0x322)](_0x15af29=>_0x58b389[_0x568a84(0x17a)][_0x568a84(0x26b)](_0x15af29,_0x225808)))||_0x225808;}[_0xb893b1(0x3f4)](){const _0x5239d8=_0xb893b1,_0x25993a=new _0x58b389['DisposableCollection'](),_0x426f93=_0x44bb56(),_0x324734=()=>{const _0x248b73=_0x104b;_0x25993a[_0x248b73(0x50d)]();const _0x4148c3=(_0x12348c,_0x203030,_0x33f36a,_0x8ba849)=>{const _0xd6c80d=_0x248b73;let _0x33bb02=[];switch(_0x12348c['id']){case _0x2d2223['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x33bb02=_0x2d2223[_0xd6c80d(0x231)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)]['DeleteRangeMoveUpCommandId']:{_0x33bb02=_0x2d2223['handleDeleteRangeMoveUp'](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId']['InsertColCommandId']:{_0x33bb02=_0x2d2223[_0xd6c80d(0x2a3)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)][_0xd6c80d(0x2fd)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x4e5)](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId'][_0xd6c80d(0x156)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x474)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)][_0xd6c80d(0x203)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x175)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)][_0xd6c80d(0x24d)]:{_0x33bb02=_0x2d2223['handleMoveRange'](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId'][_0xd6c80d(0x230)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x145)](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId']['RemoveRowCommandId']:{_0x33bb02=_0x2d2223['handleIRemoveRow'](_0x12348c,_0x8ba849);break;}}const _0x27b80c=_0x2d2223['runRefRangeMutations'](_0x33bb02,_0x8ba849),_0x4725f7=this['cursorInfo'][_0xd6c80d(0x19d)](_0x203030);if(_0x4725f7&&_0x27b80c){const _0x3f15b3={..._0x4725f7,'range':_0x27b80c};this[_0xd6c80d(0x42b)][_0xd6c80d(0x1c2)](_0x203030,_0x3f15b3),_0x426f93(()=>{const _0x1b4959=_0xd6c80d,_0x53a3c4=this['_refRangeService'][_0x1b4959(0x3f9)](_0x27b80c,_0x5de78c=>(_0x53a3c4['dispose'](),_0x4148c3(_0x5de78c,_0x203030,_0x33f36a,_0x27b80c)));_0x25993a[_0x1b4959(0x510)](_0x53a3c4);});}return{'redos':[],'undos':[]};};this[_0x248b73(0x42b)][_0x248b73(0x3b7)]((_0xb16c0c,_0x5b4cea)=>{const _0x5ce585=_0x248b73,{range:_0x178918,sheetID:_0x19ae7d}=_0xb16c0c,_0x10e65e=this[_0x5ce585(0x220)][_0x5ce585(0x3f9)](_0x178918,_0x119f2b=>(_0x10e65e[_0x5ce585(0x50d)](),_0x4148c3(_0x119f2b,_0x5b4cea,_0x19ae7d,_0x178918)));_0x25993a[_0x5ce585(0x510)](_0x10e65e);});};this[_0x5239d8(0x14b)](_0x58b389[_0x5239d8(0x1bf)](this[_0x5239d8(0x3b9)][_0x5239d8(0x1b6)](()=>{_0x324734();})));}['_toggleOnline'](){const _0x1ae2f9=_0xb893b1;var _0x398610,_0x1cb184;if(this[_0x1ae2f9(0x20f)]=!0x0,((_0x398610=this['_univerInstanceService'][_0x1ae2f9(0x42e)]())==null?void 0x0:_0x398610[_0x1ae2f9(0x2b3)]())!==this['unitID'])return;const _0x1acd8d=(_0x1cb184=this[_0x1ae2f9(0x126)][_0x1ae2f9(0x19d)](_0x2d2223[_0x1ae2f9(0x3bf)])[_0x1ae2f9(0x2d2)]())==null?void 0x0:_0x1cb184[0x0],_0x1858f2=this[_0x1ae2f9(0x123)][_0x1ae2f9(0x28e)](_0x58b389[_0x1ae2f9(0x441)][_0x1ae2f9(0x2db)])[_0x1ae2f9(0x131)]();_0x1acd8d&&_0x1858f2&&this[_0x1ae2f9(0x222)](_0x1858f2[_0x1ae2f9(0x499)](),_0x1acd8d);}[_0xb893b1(0x529)](){const _0x2ba3a6=_0xb893b1;this[_0x2ba3a6(0x20f)]=!0x1;}};_0x1592bf=_0x289486([_0x112696(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x112696(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x15453c)),_0x112696(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['MemberService'])),_0x112696(0x5,_0x58b389[_0xb893b1(0x1d9)]),_0x112696(0x6,_0x58b389[_0xb893b1(0x1ec)]),_0x112696(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x2d2223[_0xb893b1(0x283)]))],_0x1592bf);var _0x26c483=Object[_0xb893b1(0x1bc)],_0x514642=Object[_0xb893b1(0x490)],_0x359791=(_0x4a5b86,_0xf08346,_0x502fb5,_0x49bb80)=>{const _0x56f617=_0xb893b1;for(var _0x3caf3d=_0x49bb80>0x1?void 0x0:_0x49bb80?_0x514642(_0xf08346,_0x502fb5):_0xf08346,_0x5d3ad7=_0x4a5b86[_0x56f617(0x4d8)]-0x1,_0x1388ef;_0x5d3ad7>=0x0;_0x5d3ad7--)(_0x1388ef=_0x4a5b86[_0x5d3ad7])&&(_0x3caf3d=(_0x49bb80?_0x1388ef(_0xf08346,_0x502fb5,_0x3caf3d):_0x1388ef(_0x3caf3d))||_0x3caf3d);return _0x49bb80&&_0x3caf3d&&_0x26c483(_0xf08346,_0x502fb5,_0x3caf3d),_0x3caf3d;},_0x2373ff=(_0x194547,_0x38eaaa)=>(_0x658b71,_0x35baf2)=>_0x38eaaa(_0x658b71,_0x35baf2,_0x194547);let _0x57bda6=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x27c78a,_0x2e7fd0,_0x5e3d13){const _0x45f664=_0xb893b1;super(),_0xf1fe43(this,_0x45f664(0x415),new Map()),_0xf1fe43(this,_0x45f664(0x2c2),new _0x4655d9[(_0x45f664(0x4d6))]()),(this[_0x45f664(0x123)]=_0x27c78a,this[_0x45f664(0x126)]=_0x2e7fd0,this['_collabSessionService']=_0x5e3d13,this[_0x45f664(0x3e2)]());}[_0xb893b1(0x50d)](){const _0x46fb15=_0xb893b1;super['dispose'](),this['_entityInit$'][_0x46fb15(0x398)](),this[_0x46fb15(0x415)][_0x46fb15(0x3b7)](_0x448e18=>_0x448e18[_0x46fb15(0x50d)]());}['getCollabCursors$'](_0x4a2cb7){const _0xb69b4b=_0xb893b1;return this[_0xb69b4b(0x415)]['has'](_0x4a2cb7)?this[_0xb69b4b(0x415)][_0xb69b4b(0x19d)](_0x4a2cb7)[_0xb69b4b(0x2aa)]:this[_0xb69b4b(0x2c2)][_0xb69b4b(0x3ca)](_0x4655d9[_0xb69b4b(0x1ae)](_0x201c32=>_0x201c32['unitID']===_0x4a2cb7),_0x4655d9[_0xb69b4b(0x40e)](_0x5b5f9e=>_0x5b5f9e[_0xb69b4b(0x2aa)]));}[_0xb893b1(0x3e2)](){const _0x78f675=_0xb893b1;this[_0x78f675(0x123)][_0x78f675(0x2a1)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2db)])[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x260)](this[_0x78f675(0x11c)]))['subscribe'](async _0x2325bd=>{const _0x55ef6e=_0x78f675,_0x599759=_0x2325bd[_0x55ef6e(0x2b3)](),_0x17ac20=await this['_startSheetCollabCursor'](_0x599759);this[_0x55ef6e(0x2c2)][_0x55ef6e(0x174)](_0x17ac20),this['_entities'][_0x55ef6e(0x1c2)](_0x599759,_0x17ac20);}),this['_univerInstanceService'][_0x78f675(0x2a1)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2d8)])[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x260)](this['dispose$']))[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x1ae)](_0x2430c4=>!_0x2430c4[_0x78f675(0x2b3)]()[_0x78f675(0x464)]('__')))[_0x78f675(0x1b6)](async _0x2043d9=>{const _0x4e825d=_0x78f675,_0x5a0c61=_0x2043d9[_0x4e825d(0x2b3)](),_0x51157e=await this['_startDocCollabCursor'](_0x5a0c61);this['_entityInit$'][_0x4e825d(0x174)](_0x51157e),this[_0x4e825d(0x415)]['set'](_0x5a0c61,_0x51157e);}),_0x4655d9[_0x78f675(0x1b3)](this[_0x78f675(0x123)][_0x78f675(0x227)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2d8)]),this[_0x78f675(0x123)][_0x78f675(0x227)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2db)]))[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x260)](this[_0x78f675(0x11c)]))[_0x78f675(0x1b6)](_0x3bd96b=>{const _0x502359=_0x78f675,_0x264ede=_0x3bd96b[_0x502359(0x2b3)](),_0xa114a7=this[_0x502359(0x415)][_0x502359(0x19d)](_0x264ede);_0xa114a7&&(_0xa114a7[_0x502359(0x50d)](),this[_0x502359(0x415)][_0x502359(0x1d0)](_0x264ede));});}async[_0xb893b1(0x457)](_0x793f63){const _0x2d7d85=_0xb893b1,_0x14e7a8=await this[_0x2d7d85(0x4df)][_0x2d7d85(0x213)](_0x793f63),_0x21ea6f=this[_0x2d7d85(0x126)][_0x2d7d85(0x361)](_0x1592bf,_0x793f63,_0x14e7a8);return _0x21ea6f[_0x2d7d85(0x29f)](),_0x21ea6f;}async['_startDocCollabCursor'](_0x997f8d){const _0x1713e9=_0xb893b1,_0x9601d1=await this[_0x1713e9(0x4df)][_0x1713e9(0x213)](_0x997f8d),_0x20e67b=this['_injector']['createInstance'](_0x386a8f,_0x997f8d,_0x9601d1);return _0x20e67b[_0x1713e9(0x29f)](),_0x20e67b;}};_0x57bda6=_0x359791([_0x2373ff(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x2373ff(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x2373ff(0x2,_0x58b389['Inject'](_0x3b52c4['CollaborationSessionService']))],_0x57bda6);const _0x3ffba4=0x14,_0x3313d0=0xc8,_0x2fea2d=0x4,_0x2724a3=0x5;function _0xaae25b(_0x23be39,_0xb3f4d5){const _0x270531=_0xb893b1;let {radius:_0x1df36a,width:_0x366f7e,height:_0xc187b8}=_0xb3f4d5;_0x1df36a=_0x1df36a!=null?_0x1df36a:0x0,_0x366f7e=_0x366f7e!=null?_0x366f7e:0x1e,_0xc187b8=_0xc187b8!=null?_0xc187b8:0x1e;let _0x147a4d=0x0,_0x2597aa=0x0,_0x497175=0x0;_0x147a4d=_0x2597aa=_0x497175=Math[_0x270531(0x282)](_0x1df36a,_0x366f7e/0x2,_0xc187b8/0x2),_0x23be39[_0x270531(0x4c3)](),_0x23be39[_0x270531(0x2de)](_0x147a4d,0x0),_0x23be39[_0x270531(0x141)](_0x366f7e-_0x2597aa,0x0),_0x23be39[_0x270531(0x27b)](_0x366f7e-_0x2597aa,_0x2597aa,_0x2597aa,Math['PI']*0x3/0x2,0x0,!0x1),_0x23be39['lineTo'](_0x366f7e,_0xc187b8-_0x497175),_0x23be39[_0x270531(0x27b)](_0x366f7e-_0x497175,_0xc187b8-_0x497175,_0x497175,0x0,Math['PI']/0x2,!0x1),_0x23be39[_0x270531(0x141)](0x0,_0xc187b8),_0x23be39[_0x270531(0x141)](0x0,_0x147a4d),_0x23be39[_0x270531(0x27b)](_0x147a4d,_0x147a4d,_0x147a4d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23be39[_0x270531(0x4f6)](),_0xb3f4d5[_0x270531(0x256)]&&(_0x23be39['save'](),_0x23be39[_0x270531(0x25a)]=_0xb3f4d5[_0x270531(0x256)],_0xb3f4d5[_0x270531(0x48e)]===_0x270531(0x38c)?_0x23be39[_0x270531(0x256)](_0x270531(0x38c)):_0x23be39[_0x270531(0x256)](),_0x23be39[_0x270531(0x418)]());}class _0x4a4a28 extends _0x1c7683[_0xb893b1(0x30e)]{constructor(_0x457368,_0x38bff0){const _0x31a761=_0xb893b1;super(_0x457368,_0x38bff0),_0xf1fe43(this,_0x31a761(0x2d7)),_0xf1fe43(this,_0x31a761(0x271)),(this[_0x31a761(0x2d7)]=_0x38bff0==null?void 0x0:_0x38bff0[_0x31a761(0x2d7)],this[_0x31a761(0x271)]=_0x38bff0==null?void 0x0:_0x38bff0[_0x31a761(0x271)]);}static[_0xb893b1(0x179)](_0x2b189c,_0x3a33fe){const _0x11d7ff=_0xb893b1,{text:_0x7895d8,color:_0x4672df}=_0x3a33fe;_0x2b189c['save'](),_0x2b189c[_0x11d7ff(0x1ed)]=_0x11d7ff(0x28c);const _0x53d0e9=_0x2b189c[_0x11d7ff(0x4ab)](_0x7895d8)[_0x11d7ff(0x343)],_0x1f7489=Math[_0x11d7ff(0x282)](_0x53d0e9+0x2*_0x2fea2d,_0x3313d0);_0xaae25b(_0x2b189c,{'height':_0x3ffba4,'radius':0x4,'width':_0x1f7489,'fill':_0x4672df,'evented':!0x1}),_0x2b189c[_0x11d7ff(0x25a)]=_0x11d7ff(0x19b);const _0x38bc3c=_0x2fea2d,_0x4ba8ee=_0x3ffba4-_0x2724a3,_0x1d4190=_0x3313d0-0x2*_0x2fea2d;if(_0x53d0e9>_0x1d4190){let _0x25a206='',_0x3f3f5a=0x0;for(const _0x269015 of _0x7895d8){const _0x18fd00=_0x2b189c[_0x11d7ff(0x4ab)](_0x269015)[_0x11d7ff(0x343)];if(_0x3f3f5a+_0x18fd00<=_0x1d4190-_0x2b189c[_0x11d7ff(0x4ab)]('...')['width'])_0x25a206+=_0x269015,_0x3f3f5a+=_0x18fd00;else{_0x25a206+=_0x11d7ff(0x201);break;}}_0x2b189c[_0x11d7ff(0x353)](_0x25a206,_0x38bc3c,_0x4ba8ee);}else _0x2b189c[_0x11d7ff(0x353)](_0x7895d8,_0x38bc3c,_0x4ba8ee);_0x2b189c[_0x11d7ff(0x418)]();}[_0xb893b1(0x2f1)](_0x35b63d){const _0x3f2115=_0xb893b1;_0x4a4a28[_0x3f2115(0x179)](_0x35b63d,this);}}const _0x42b098=_0xb893b1(0x2a9),_0x1edbd9=_0xb893b1(0x1b8),_0x3881bd=_0xb893b1(0x14d),_0x19bc83=0x6,_0x36e10f=1.5,_0x235716=0x4,_0x1491cd=1.5,_0x2d6186=_0xb893b1(0x527);class _0x9f90dd{constructor(_0x3f31db,_0x27360a,_0x5a725f,_0x17a6b7){const _0xe1f3ac=_0xb893b1;_0xf1fe43(this,'_shapes',[]),_0xf1fe43(this,_0xe1f3ac(0x2ad),null),_0xf1fe43(this,'_textBubble',null),_0xf1fe43(this,_0xe1f3ac(0x46e),null),_0xf1fe43(this,'_hideTimer',null),_0xf1fe43(this,_0xe1f3ac(0x167),null),(this[_0xe1f3ac(0x1d8)]=_0x3f31db,this[_0xe1f3ac(0x534)]=_0x27360a,this[_0xe1f3ac(0x28f)]=_0x5a725f,this[_0xe1f3ac(0x1db)]=_0x17a6b7,this[_0xe1f3ac(0x17c)]());}set['_hover'](_0x414c3f){const _0x144cb8=_0xb893b1;_0x414c3f?(this[_0x144cb8(0x46e)]&&this['_anchorDot']['hide'](),this[_0x144cb8(0x31e)]&&this[_0x144cb8(0x31e)]['show']()):(this[_0x144cb8(0x46e)]&&this['_anchorDot'][_0x144cb8(0x250)](),this[_0x144cb8(0x31e)]&&this[_0x144cb8(0x31e)][_0x144cb8(0x452)]());}[_0xb893b1(0x50d)](){const _0x5bbebf=_0xb893b1;for(const _0x34901f of this[_0x5bbebf(0x409)])_0x34901f['dispose']();this[_0x5bbebf(0x31e)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this[_0x5bbebf(0x46e)]['dispose'](),this[_0x5bbebf(0x2ad)]&&this[_0x5bbebf(0x2ad)]['dispose'](),this['_eventUnsubscribe']&&this[_0x5bbebf(0x167)]();}[_0xb893b1(0x17c)](){const _0x66b9fe=_0xb893b1;var _0x5da3ee;const {_docSkeleton:_0x3fa204,_document:_0xe860d6}=this,{color:_0x5fffd,name:_0x24c9a1,ranges:_0x53ea8a}=this[_0x66b9fe(0x1d8)],_0x2103ba=_0xe860d6[_0x66b9fe(0x133)](),{docsLeft:_0x21a3ed,docsTop:_0x46b704}=_0x2103ba,_0x3561e4=new _0x24db92[(_0x66b9fe(0x399))](_0x2103ba,_0x3fa204);for(const {startOffset:_0x510279,endOffset:_0x122e6a,rangeType:_0x47aeab,segmentId:_0x26ed2b,segmentPage:_0x2fc00f,collapsed:_0x4a44bb,isActive:_0x39764c}of _0x53ea8a){const _0x48cf6a=_0x3fa204['findNodePositionByCharIndex'](_0x510279,!0x0,_0x26ed2b,_0x2fc00f);let _0x4d0609=_0x3fa204[_0x66b9fe(0x3e1)](_0x122e6a,!0x0,_0x26ed2b,_0x2fc00f);if(_0x4d0609==null&&(_0x4d0609=_0x3fa204[_0x66b9fe(0x3e1)](_0x122e6a-0x1,!0x1,_0x26ed2b,_0x2fc00f)),_0x39764c){const {contentBoxPointGroup:_0x63ae99}=_0x3561e4['getRangePointData'](_0x4d0609,_0x4d0609);if(_0x63ae99[_0x66b9fe(0x4d8)]===0x0)continue;this[_0x66b9fe(0x4ec)](_0x5fffd,_0x63ae99,_0x21a3ed,_0x46b704,_0x24c9a1),this['_eventUnsubscribe']=this[_0x66b9fe(0x281)]();}if(!_0x4a44bb&&_0x48cf6a&&_0x4d0609){if(_0x47aeab===_0x58b389['DOC_RANGE_TYPE'][_0x66b9fe(0x1de)]){const _0x4a6154=new _0x24db92[(_0x66b9fe(0x2cf))](_0x2103ba,_0x3fa204),{pointGroup:_0x4eafd7}=(_0x5da3ee=_0x4a6154['getRangePointData'](_0x48cf6a,_0x4d0609))!=null?_0x5da3ee:{};if(_0x4eafd7==null||_0x4eafd7[_0x66b9fe(0x4d8)]===0x0)continue;this['_drawRectRange'](_0x5fffd,_0x4eafd7,_0x21a3ed,_0x46b704);}else{const {borderBoxPointGroup:_0x509d21}=_0x3561e4[_0x66b9fe(0x2fb)](_0x48cf6a,_0x4d0609);if(_0x509d21[_0x66b9fe(0x4d8)]===0x0)continue;this[_0x66b9fe(0x46b)](_0x5fffd,_0x509d21,_0x21a3ed,_0x46b704);}}}}[_0xb893b1(0x4ec)](_0x1e310f,_0x595101,_0x3571e3,_0x26314d,_0xe6e956){const _0xa8300d=_0xb893b1,_0x18234f=this[_0xa8300d(0x3bd)](_0x595101),{left:_0xc6347a,top:_0x9f78c9,height:_0x3c5ab6}=_0x18234f,_0x4f376a=this[_0xa8300d(0x390)](),_0x3b4cee=_0x1491cd/_0x4f376a,_0x3bc954=new _0x1c7683[(_0xa8300d(0x3fd))](_0x42b098+_0x58b389[_0xa8300d(0x36e)]['generateRandomId'](_0x19bc83),{'left':_0xc6347a+_0x3571e3-_0x3b4cee,'top':_0x9f78c9+_0x26314d,'height':_0x3c5ab6,'width':_0x36e10f,'fill':_0x1e310f||_0x1c7683[_0xa8300d(0x4ad)](_0x58b389['COLORS'][_0xa8300d(0x26c)],0x0),'strokeWidth':_0x3b4cee,'stroke':_0x2d6186,'evented':!0x0});this[_0xa8300d(0x2ad)]=_0x3bc954,this[_0xa8300d(0x534)][_0xa8300d(0x2a8)](_0x3bc954,_0x24db92[_0xa8300d(0x50f)]);const _0x517e4b=new _0x1c7683[(_0xa8300d(0x3fd))](_0x42b098+_0x58b389[_0xa8300d(0x36e)]['generateRandomId'](_0x19bc83),{'left':_0xc6347a+_0x3571e3-_0x3b4cee,'top':_0x9f78c9+_0x26314d-_0x235716/0x2,'height':_0x235716,'width':_0x235716,'fill':_0x1e310f||_0x1c7683['getColor'](_0x58b389['COLORS'][_0xa8300d(0x26c)],0x0),'strokeWidth':0x0,'stroke':_0x1e310f||_0x1c7683[_0xa8300d(0x4ad)](_0x58b389[_0xa8300d(0x4c7)]['black'],0x0),'evented':!0x1});this[_0xa8300d(0x46e)]=_0x517e4b,this[_0xa8300d(0x534)][_0xa8300d(0x2a8)](_0x517e4b,_0x24db92[_0xa8300d(0x50f)]);const _0x13d48a=new _0x4a4a28(_0x42b098+_0x58b389['Tools'][_0xa8300d(0x3e0)](_0x19bc83),{'left':_0xc6347a+_0x3571e3-_0x3b4cee,'top':_0x9f78c9+_0x26314d-_0x3ffba4,'text':_0xe6e956,'color':_0x1e310f});this[_0xa8300d(0x31e)]=_0x13d48a,this[_0xa8300d(0x534)][_0xa8300d(0x2a8)](_0x13d48a,_0x24db92[_0xa8300d(0x50f)]),this[_0xa8300d(0x4f0)]=!0x1;}[_0xb893b1(0x281)](){const _0x2d8aad=_0xb893b1,_0x5536fe=this[_0x2d8aad(0x2ad)][_0x2d8aad(0x365)][_0x2d8aad(0x411)](()=>{const _0x17fc86=_0x2d8aad;this[_0x17fc86(0x4f0)]=!0x0;}),_0x5e24a0=this[_0x2d8aad(0x2ad)][_0x2d8aad(0x2da)][_0x2d8aad(0x411)](()=>{const _0x307780=_0x2d8aad;this[_0x307780(0x13f)]&&clearTimeout(this[_0x307780(0x13f)]),this[_0x307780(0x13f)]=setTimeout(()=>{const _0x209eb0=_0x307780;this[_0x209eb0(0x4f0)]=!0x1;},0x7d0);});return()=>{const _0x1c4628=_0x2d8aad;_0x5536fe['unsubscribe'](),_0x5e24a0[_0x1c4628(0x49e)]();};}['_drawTextRange'](_0x4bfc48,_0x543f5e,_0x1fea8c,_0x5a6469){const _0x514391=_0xb893b1,_0x113fca=new _0x58b389[(_0x514391(0x304))](_0x4bfc48)[_0x514391(0x4bd)](0.2)[_0x514391(0x27f)](),_0x16a807=new _0x1c7683[(_0x514391(0x2fc))](_0x1edbd9+_0x58b389['Tools'][_0x514391(0x3e0)](_0x19bc83),{'pointsGroup':_0x543f5e,'fill':_0x113fca||_0x1c7683[_0x514391(0x4ad)](_0x58b389[_0x514391(0x4c7)][_0x514391(0x26c)],0.2),'left':_0x1fea8c,'top':_0x5a6469,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x16a807),this[_0x514391(0x534)][_0x514391(0x2a8)](_0x16a807,_0x24db92[_0x514391(0x50f)]);}[_0xb893b1(0x190)](_0x5b14d9,_0x177d8a,_0x20935b,_0x3a741e){const _0x5cfd80=_0xb893b1,_0x26669a=new _0x58b389['ColorKit'](_0x5b14d9)[_0x5cfd80(0x4bd)](0.2)[_0x5cfd80(0x27f)](),_0x43b512=new _0x1c7683['RegularPolygon'](_0x3881bd+_0x58b389['Tools'][_0x5cfd80(0x3e0)](_0x19bc83),{'pointsGroup':_0x177d8a,'fill':_0x26669a||_0x1c7683['getColor'](_0x58b389[_0x5cfd80(0x4c7)][_0x5cfd80(0x26c)],0.2),'left':_0x20935b,'top':_0x3a741e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5cfd80(0x409)][_0x5cfd80(0x428)](_0x43b512),this[_0x5cfd80(0x534)][_0x5cfd80(0x2a8)](_0x43b512,_0x24db92[_0x5cfd80(0x50f)]);}[_0xb893b1(0x3bd)](_0x573da8){const _0x5415d6=_0x573da8[0x0],_0x3eb5aa=_0x5415d6[0x0],_0x226101=_0x5415d6[0x2],{x:_0x1059f3,y:_0x52bd78}=_0x3eb5aa,{x:_0x12ab16,y:_0x193658}=_0x226101;return{'left':_0x1059f3,'top':_0x52bd78,'width':_0x12ab16-_0x1059f3,'height':_0x193658-_0x52bd78};}[_0xb893b1(0x390)](){const _0x586935=_0xb893b1,{scaleX:_0x15c066,scaleY:_0x35c12f}=this[_0x586935(0x534)][_0x586935(0x3a3)]();return Math[_0x586935(0x2b0)](_0x15c066,_0x35c12f);}}var _0x15bf26=Object[_0xb893b1(0x1bc)],_0x2ffbbb=Object['getOwnPropertyDescriptor'],_0x18bba1=(_0x5f1f83,_0x25e403,_0x43962b,_0x4e6cbe)=>{const _0x2dabbb=_0xb893b1;for(var _0x1cc3dc=_0x4e6cbe>0x1?void 0x0:_0x4e6cbe?_0x2ffbbb(_0x25e403,_0x43962b):_0x25e403,_0x153dac=_0x5f1f83[_0x2dabbb(0x4d8)]-0x1,_0x513217;_0x153dac>=0x0;_0x153dac--)(_0x513217=_0x5f1f83[_0x153dac])&&(_0x1cc3dc=(_0x4e6cbe?_0x513217(_0x25e403,_0x43962b,_0x1cc3dc):_0x513217(_0x1cc3dc))||_0x1cc3dc);return _0x4e6cbe&&_0x1cc3dc&&_0x15bf26(_0x25e403,_0x43962b,_0x1cc3dc),_0x1cc3dc;},_0x5b8f78=(_0x1419fc,_0x5ba7ea)=>(_0xc2c5e0,_0x1ce505)=>_0x5ba7ea(_0xc2c5e0,_0x1ce505,_0x1419fc);let _0x4f4454=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x35db8e,_0x3108bc,_0x514ef4,_0x36fff3,_0x581c6d){const _0x9d441c=_0xb893b1;super(),_0xf1fe43(this,'_cursorShapes',[]),_0xf1fe43(this,_0x9d441c(0x113),[]),(this['_context']=_0x35db8e,this[_0x9d441c(0x15b)]=_0x3108bc,this['_collabCursorController']=_0x514ef4,this['_commandService']=_0x36fff3,this['_themeService']=_0x581c6d,this[_0x9d441c(0x3e2)]());}['_init'](){const _0x64d5bb=_0xb893b1,_0x5553f6=this[_0x64d5bb(0x40a)][_0x64d5bb(0x458)],_0x2f4b78=this['_docSkeletonManagerService'];this[_0x64d5bb(0x14b)](_0x4655d9[_0x64d5bb(0x520)]([this[_0x64d5bb(0x48b)][_0x64d5bb(0x33e)](_0x5553f6),this[_0x64d5bb(0x198)][_0x64d5bb(0x3f1)]])[_0x64d5bb(0x3ca)](_0x5d8a56[_0x64d5bb(0x44d)](([_0x467acf,_0xc5d49b])=>({'skeleton':_0x2f4b78[_0x64d5bb(0x501)](),'cursors':[..._0x467acf['values']()][_0x64d5bb(0x358)](_0x549594=>({..._0x549594,'color':_0xc5d49b[_0x549594[_0x64d5bb(0x2d7)]]}))})))['subscribe'](_0x160418=>{const _0x553cea=_0x64d5bb;if(this[_0x553cea(0x150)](),_0x160418){const {skeleton:_0x109b8b,cursors:_0x5909ce}=_0x160418;this['_updateCollabCursors'](_0x109b8b,_0x5909ce);}})),this['_initResize'](),this[_0x64d5bb(0x1fa)]();}['_updateCollabCursors'](_0x1bc420,_0x3dffa4){const _0x469650=_0xb893b1,{scene:_0x32341a,mainComponent:_0x56f3a5}=this[_0x469650(0x40a)],_0x4925e6=_0x3dffa4[_0x469650(0x44d)](_0x222e11=>new _0x9f90dd(_0x222e11,_0x32341a,_0x1bc420,_0x56f3a5));this[_0x469650(0x1f2)]=_0x4925e6,this[_0x469650(0x113)]=_0x3dffa4;}[_0xb893b1(0x186)](){const _0x777499=_0xb893b1;this['_removeCollabCursors']();const {scene:_0x14aadc,mainComponent:_0x95a974}=this[_0x777499(0x40a)],_0xed9fac=this[_0x777499(0x15b)]['getSkeleton'](),_0x3c3955=this[_0x777499(0x113)][_0x777499(0x44d)](_0x13e6b3=>new _0x9f90dd(_0x13e6b3,_0x14aadc,_0xed9fac,_0x95a974));this[_0x777499(0x1f2)]=_0x3c3955;}[_0xb893b1(0x150)](){const _0x4f7de2=_0xb893b1;this[_0x4f7de2(0x1f2)]['forEach'](_0x1914d4=>_0x1914d4[_0x4f7de2(0x50d)]()),this[_0x4f7de2(0x1f2)]=[];}['_initCommandExecutedListener'](){const _0x2e092c=_0xb893b1,_0x4c2c03=[_0x24db92[_0x2e092c(0x469)]['id']];this['disposeWithMe'](this[_0x2e092c(0x4af)]['onCommandExecuted'](_0x3d6ec0=>{const _0x415735=_0x2e092c;_0x4c2c03[_0x415735(0x532)](_0x3d6ec0['id'])&&_0x3d6ec0[_0x415735(0x16b)][_0x415735(0x458)]===this['_context'][_0x415735(0x458)]&&this[_0x415735(0x186)]();}));}['_initResize'](){const _0x3c21df=_0xb893b1;this['disposeWithMe'](_0x58b389[_0x3c21df(0x4f1)](this[_0x3c21df(0x40a)]['engine'][_0x3c21df(0x285)])[_0x3c21df(0x3ca)](_0x5d8a56[_0x3c21df(0x1ae)](_0x119703=>_0x119703[_0x3c21df(0x191)]===_0x1c7683[_0x3c21df(0x369)][_0x3c21df(0x274)]),_0x5d8a56[_0x3c21df(0x103)](0x10))[_0x3c21df(0x1b6)](()=>{const _0x462284=_0x3c21df;this[_0x462284(0x186)]();}));}};_0x4f4454=_0x18bba1([_0x5b8f78(0x1,_0x58b389['Inject'](_0x124506[_0xb893b1(0x21d)])),_0x5b8f78(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x57bda6)),_0x5b8f78(0x3,_0x58b389[_0xb893b1(0x1ec)]),_0x5b8f78(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['ThemeService']))],_0x4f4454);const _0x339c5b=0x1,_0xd2bb74=1.5;class _0x5bcf49 extends _0x1c7683['Shape']{constructor(_0x4299d2,_0x4db692){const _0x1063e0=_0xb893b1;super(_0x4299d2,_0x4db692),_0xf1fe43(this,_0x1063e0(0x4aa)),_0xf1fe43(this,_0x1063e0(0x10f),!0x1),_0xf1fe43(this,'_range'),_0xf1fe43(this,'_name',''),_0xf1fe43(this,_0x1063e0(0x366),_0x1063e0(0x2d9)),_0xf1fe43(this,_0x1063e0(0x2e9)),(_0x4db692&&this['setShapeProps'](_0x4db692),this[_0x1063e0(0x365)][_0x1063e0(0x411)](()=>this[_0x1063e0(0x455)]({'hovered':!0x0})),this[_0x1063e0(0x2da)][_0x1063e0(0x411)](()=>this[_0x1063e0(0x455)]({'hovered':!0x1})));}[_0xb893b1(0x455)](_0x32f451){const _0x510471=_0xb893b1;var _0x188933,_0x6704b0,_0x189c50,_0x5d6ac0,_0x41bde5,_0x4a5ab3;this['_color']=(_0x188933=_0x32f451[_0x510471(0x2d7)])!=null?_0x188933:this[_0x510471(0x4aa)],this[_0x510471(0x10f)]=(_0x6704b0=_0x32f451[_0x510471(0x3cd)])!=null?_0x6704b0:this[_0x510471(0x10f)],this['_range']=(_0x189c50=_0x32f451[_0x510471(0x385)])!=null?_0x189c50:this[_0x510471(0x258)],this['_name']=(_0x5d6ac0=_0x32f451[_0x510471(0x4e3)])!=null?_0x5d6ac0:this['_name'],this[_0x510471(0x366)]=(_0x41bde5=_0x32f451['labelPosition'])!=null?_0x41bde5:this[_0x510471(0x366)],this[_0x510471(0x2e9)]=(_0x4a5ab3=_0x32f451[_0x510471(0x1ad)])!=null?_0x4a5ab3:this['_backgroundColor'],this[_0x510471(0x1fe)]({'width':_0x32f451['width'],'height':_0x32f451[_0x510471(0x2ed)]});}['onMouseMove'](_0x471ba3){const _0xeb6b36=_0xb893b1,{row:_0x29fedb,column:_0x124ce3}=_0x471ba3;if(_0x29fedb>=this[_0xeb6b36(0x258)][_0xeb6b36(0x333)]&&_0x29fedb<=this['_range'][_0xeb6b36(0x14a)]&&_0x124ce3>=this[_0xeb6b36(0x258)][_0xeb6b36(0x36a)]&&_0x124ce3<=this['_range'][_0xeb6b36(0x4b3)]){this[_0xeb6b36(0x455)]({'hovered':!0x0});return;}this[_0xeb6b36(0x455)]({'hovered':!0x1});}[_0xb893b1(0x319)](_0x2f4f95){return!0x1;}[_0xb893b1(0x2f1)](_0x1b4028){const _0x4902e2=_0xb893b1;_0x1c7683[_0x4902e2(0x3fd)]['drawWith'](_0x1b4028,{'width':this[_0x4902e2(0x343)],'height':this[_0x4902e2(0x2ed)],'strokeWidth':_0xd2bb74,'stroke':this[_0x4902e2(0x4aa)],'evented':!0x1,'fill':this[_0x4902e2(0x2e9)]}),this[_0x4902e2(0x10f)]&&(_0x1b4028['save'](),_0x1b4028[_0x4902e2(0x3b8)](0x1,0x0,0x0,0x1,this[_0x4902e2(0x343)],this[_0x4902e2(0x366)]===_0x4902e2(0x188)?0x0:-_0x3ffba4),_0x4a4a28[_0x4902e2(0x179)](_0x1b4028,{'text':this[_0x4902e2(0x367)],'color':this['_color']}),_0x1b4028['restore']());}}var _0x2a7393=Object[_0xb893b1(0x1bc)],_0x49f61a=Object[_0xb893b1(0x490)],_0x5dfa9e=(_0x14ccc3,_0x18a926,_0x45c115,_0x5c1824)=>{const _0x4335d7=_0xb893b1;for(var _0x5f4d3d=_0x5c1824>0x1?void 0x0:_0x5c1824?_0x49f61a(_0x18a926,_0x45c115):_0x18a926,_0x13dc63=_0x14ccc3[_0x4335d7(0x4d8)]-0x1,_0x4b5a76;_0x13dc63>=0x0;_0x13dc63--)(_0x4b5a76=_0x14ccc3[_0x13dc63])&&(_0x5f4d3d=(_0x5c1824?_0x4b5a76(_0x18a926,_0x45c115,_0x5f4d3d):_0x4b5a76(_0x5f4d3d))||_0x5f4d3d);return _0x5c1824&&_0x5f4d3d&&_0x2a7393(_0x18a926,_0x45c115,_0x5f4d3d),_0x5f4d3d;},_0x224d52=(_0x3f47e9,_0x5550c8)=>(_0x179b77,_0x1590da)=>_0x5550c8(_0x179b77,_0x1590da,_0x3f47e9);const _0x24516c=0x1389;let _0x3b6e5d=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x125394,_0x3f8949,_0x3cb01c,_0x545875){const _0x498674=_0xb893b1;super(),_0xf1fe43(this,'_cursors',new Set()),_0xf1fe43(this,_0x498674(0x1a0),null),(this[_0x498674(0x40a)]=_0x125394,this['_sheetSkeletonManagerService']=_0x3f8949,this[_0x498674(0x48b)]=_0x3cb01c,this[_0x498674(0x198)]=_0x545875,this[_0x498674(0x3e2)]());}[_0xb893b1(0x3e2)](){const _0x1d631c=_0xb893b1;this[_0x1d631c(0x3ec)][_0x1d631c(0x39b)][_0x1d631c(0x3ca)](_0x5d8a56[_0x1d631c(0x260)](this[_0x1d631c(0x11c)]),_0x5d8a56[_0x1d631c(0x40e)](_0x3d3dd7=>{const _0x5d21c6=_0x1d631c;if(_0x3d3dd7){const _0x25be31=_0x3d3dd7[_0x5d21c6(0x214)];return _0x4655d9[_0x5d21c6(0x520)](this['_collabCursorController']['getCollabCursors$'](this[_0x5d21c6(0x40a)][_0x5d21c6(0x458)]),this['_themeService'][_0x5d21c6(0x3f1)])[_0x5d21c6(0x3ca)](_0x5d8a56[_0x5d21c6(0x44d)](([_0x34465d,_0x52b55c])=>{const _0x70d3e9=_0x5d21c6,_0x1ca21e=new Map();return _0x34465d[_0x70d3e9(0x3b7)]((_0x529b44,_0x332cdd)=>{const _0x14fd31=_0x70d3e9;if(_0x529b44[_0x14fd31(0x3c2)]===_0x25be31){const _0x195a57={..._0x529b44};_0x195a57[_0x14fd31(0x2d7)]=_0x52b55c[_0x529b44['color']],_0x1ca21e[_0x14fd31(0x1c2)](_0x332cdd,_0x195a57);}}),{'skeleton':_0x3d3dd7,'cursors':_0x1ca21e};}));}return _0x4655d9['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5ba477,cursors:_0xf1255c})=>{const _0x28129a=_0x1d631c;this['_removeCollabCursors'](),_0x5ba477&&this[_0x28129a(0x21a)](_0x5ba477,_0xf1255c);}),this[_0x1d631c(0x3ec)][_0x1d631c(0x39b)]['subscribe'](_0x115c7f=>{const _0x24caf7=_0x1d631c;if(_0x115c7f==null)return;const {skeleton:_0x325a12}=_0x115c7f,{scene:_0x4d39a4}=this['_context'];_0x4d39a4[_0x24caf7(0x24c)][_0x24caf7(0x411)](_0x58b389[_0x24caf7(0x35d)](_0x26651f=>{const _0x4e7363=_0x24caf7;var _0x1cf52e,_0x50287a;const {offsetX:_0x50d8a2,offsetY:_0x55eac4}=_0x26651f,{x:_0x1acb22,y:_0x131ca0}=_0x4d39a4[_0x4e7363(0x25f)](_0x1c7683['Vector2']['FromArray']([_0x50d8a2,_0x55eac4])),{scaleX:_0x17d691,scaleY:_0x230a6c}=_0x4d39a4[_0x4e7363(0x3a3)](),_0x1bfa5d=_0x4d39a4['getViewport'](_0x85ae1c[_0x4e7363(0x53a)][_0x4e7363(0x21b)]),_0x52225b=_0x4d39a4[_0x4e7363(0x1e7)](_0x1c7683['Vector2'][_0x4e7363(0x242)]([_0x1acb22,_0x131ca0]),_0x1bfa5d),_0x5bc974=_0x325a12['getCellPositionByOffset'](_0x50d8a2,_0x55eac4,_0x17d691,_0x230a6c,_0x52225b);((_0x1cf52e=this[_0x4e7363(0x1a0)])==null?void 0x0:_0x1cf52e[_0x4e7363(0x3ac)])===_0x5bc974[_0x4e7363(0x3ac)]&&((_0x50287a=this['_lastPointer'])==null?void 0x0:_0x50287a['row'])===_0x5bc974[_0x4e7363(0x12d)]||this[_0x4e7363(0x113)][_0x4e7363(0x3b7)](_0x5aa3e9=>{const _0x2fa879=_0x4e7363;_0x5aa3e9[_0x2fa879(0x51e)](_0x5bc974);});},0x64));});}[_0xb893b1(0x21a)](_0x5288f8,_0xfea825){const _0x4a7713=_0xb893b1;var _0x235ad5;const _0x55d320=(_0x235ad5=this['_sheetSkeletonManagerService'][_0x4a7713(0x4f9)]())==null?void 0x0:_0x235ad5[_0x4a7713(0x335)];if(!_0x55d320)return;const _0x1c0cff=this[_0x4a7713(0x2fa)]();if(!_0x1c0cff)return;this[_0x4a7713(0x113)][_0x4a7713(0x3b7)](_0x1f8c5e=>{const _0xe1a9f0=_0x4a7713;_0x1f8c5e[_0xe1a9f0(0x278)]();});const {scene:_0x145eee}=_0x1c0cff,_0x13a56c=_0x4684f6(Array[_0x4a7713(0x169)](_0xfea825[_0x4a7713(0x2cb)]()))[_0x4a7713(0x44d)](_0x2c0e9e=>{const _0x1ad642=_0x4a7713,{color:_0x415d8b,range:_0x40ab9d,name:_0x510de9,selection:_0x3e18ae,sheetID:_0x39cc12}=_0x2c0e9e,{startColumn:_0x409bf9,startRow:_0x15206c,endColumn:_0xa04b8b,endRow:_0x2f4991}=_0x40ab9d,_0x29f39d=_0x85ae1c[_0x1ad642(0x461)](_0x15206c,_0x409bf9,_0x145eee,_0x55d320),_0x538569=_0x85ae1c[_0x1ad642(0x461)](_0x2f4991,_0xa04b8b,_0x145eee,_0x55d320),{columnHeaderHeightAndMarginTop:_0x1808d4}=_0x55d320,{startX:_0x1c8d3d,startY:_0x47b0ee}=_0x29f39d,{endX:_0x3998e5,endY:_0xb213e2}=_0x538569,_0x1fb0b7=_0x3998e5-_0x1c8d3d,_0x453486=_0xb213e2-_0x47b0ee,_0x2140ab={'labelPosition':_0x47b0ee-_0x1808d4>=_0x3ffba4?_0x1ad642(0x2d9):_0x1ad642(0x188),'sheetID':_0x39cc12,'range':_0x40ab9d,'color':_0x415d8b,'name':_0x510de9,'selection':_0x3e18ae,'left':_0x1c8d3d,'top':_0x47b0ee,'width':_0x1fb0b7,'height':_0x453486,'evented':!0x1,'zIndex':_0x24516c};return new _0x5bcf49(_0x510de9,_0x2140ab);});_0x145eee['addObjects'](_0x13a56c,_0x339c5b),this[_0x4a7713(0x113)]=new Set(_0x13a56c);}[_0xb893b1(0x150)](){const _0x58e589=_0xb893b1;var _0x48ad48;(_0x48ad48=this[_0x58e589(0x113)])==null||_0x48ad48[_0x58e589(0x3b7)](_0x2e28c1=>_0x2e28c1[_0x58e589(0x50d)]());}['_getSheetObject'](){const _0x3ae296=_0xb893b1;return _0x85ae1c[_0x3ae296(0x475)](this[_0x3ae296(0x40a)][_0x3ae296(0x38f)],this[_0x3ae296(0x40a)]);}};_0x3b6e5d=_0x5dfa9e([_0x224d52(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x85ae1c[_0xb893b1(0x4a3)])),_0x224d52(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x57bda6)),_0x224d52(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4a7)]))],_0x3b6e5d);function _0x4684f6(_0x56d6a8){const _0x2d4487=_0xb893b1,_0x2160a3=new Map();return _0x56d6a8[_0x2d4487(0x3b7)](_0x1f84cf=>{const _0x343934=_0x2d4487;if(_0x2160a3[_0x343934(0x2dc)](_0x1f84cf[_0x343934(0x44c)])){const _0x33356f=_0x2160a3[_0x343934(0x19d)](_0x1f84cf[_0x343934(0x44c)]);_0x33356f[_0x343934(0x4e3)]+=',\x20'+_0x1f84cf[_0x343934(0x4e3)];}else _0x2160a3[_0x343934(0x1c2)](_0x1f84cf[_0x343934(0x44c)],_0x1f84cf);}),Array['from'](_0x2160a3[_0x2d4487(0x2cb)]());}var _0x355dec=function(){const _0x562818=_0xb893b1;return _0x355dec=Object['assign']||function(_0x373595){const _0x1ed08c=_0x104b;for(var _0x408955,_0x42bf88=0x1,_0x26430e=arguments[_0x1ed08c(0x4d8)];_0x42bf88<_0x26430e;_0x42bf88++){_0x408955=arguments[_0x42bf88];for(var _0x2aaa74 in _0x408955)Object[_0x1ed08c(0x436)]['hasOwnProperty']['call'](_0x408955,_0x2aaa74)&&(_0x373595[_0x2aaa74]=_0x408955[_0x2aaa74]);}return _0x373595;},_0x355dec[_0x562818(0x496)](this,arguments);},_0x2f6ea0=function(_0x137312,_0x18604d){const _0x40f497=_0xb893b1;var _0x22824e={};for(var _0x2cb467 in _0x137312)Object[_0x40f497(0x436)][_0x40f497(0x480)][_0x40f497(0x4a6)](_0x137312,_0x2cb467)&&_0x18604d[_0x40f497(0x3c8)](_0x2cb467)<0x0&&(_0x22824e[_0x2cb467]=_0x137312[_0x2cb467]);if(_0x137312!=null&&typeof Object[_0x40f497(0x24b)]==_0x40f497(0x34d)){for(var _0x29e202=0x0,_0x2cb467=Object['getOwnPropertySymbols'](_0x137312);_0x29e202<_0x2cb467[_0x40f497(0x4d8)];_0x29e202++)_0x18604d['indexOf'](_0x2cb467[_0x29e202])<0x0&&Object[_0x40f497(0x436)][_0x40f497(0x49b)][_0x40f497(0x4a6)](_0x137312,_0x2cb467[_0x29e202])&&(_0x22824e[_0x2cb467[_0x29e202]]=_0x137312[_0x2cb467[_0x29e202]]);}return _0x22824e;},_0x1de426=_0x4bfab6['forwardRef'](function(_0x3d1350,_0x2515ee){const _0x1b0ff3=_0xb893b1;var _0x8a3616=_0x3d1350[_0x1b0ff3(0x159)],_0xc8f30e=_0x3d1350['id'],_0x4203b6=_0x3d1350['className'],_0x5885e5=_0x3d1350['extend'],_0x1d932b=_0x2f6ea0(_0x3d1350,[_0x1b0ff3(0x159),'id',_0x1b0ff3(0x211),_0x1b0ff3(0x2e5)]),_0x26d165=_0x1b0ff3(0x317)['concat'](_0xc8f30e,'\x20')[_0x1b0ff3(0x412)](_0x4203b6||'')[_0x1b0ff3(0x1e1)](),_0x3043bd=_0x4bfab6[_0x1b0ff3(0x502)]('_'[_0x1b0ff3(0x412)](_0x151d00()));return _0x36e689(_0x8a3616,''[_0x1b0ff3(0x412)](_0xc8f30e),{'defIds':_0x8a3616[_0x1b0ff3(0x483)],'idSuffix':_0x3043bd[_0x1b0ff3(0x2a6)]},_0x355dec({'ref':_0x2515ee,'className':_0x26d165},_0x1d932b),_0x5885e5);});function _0x36e689(_0x2cbd21,_0x4cb756,_0x6693bc,_0x5dd57a,_0x47d715){const _0x4a0e14=_0xb893b1;return _0x4bfab6[_0x4a0e14(0x439)](_0x2cbd21[_0x4a0e14(0x1c4)],_0x355dec(_0x355dec({'key':_0x4cb756},_0x3ad62c(_0x2cbd21,_0x6693bc,_0x47d715)),_0x5dd57a),(_0xb45ae8(_0x2cbd21,_0x6693bc)[_0x4a0e14(0x37f)]||[])[_0x4a0e14(0x44d)](function(_0x5e7fab,_0x5593bf){const _0x1886ec=_0x4a0e14;return _0x36e689(_0x5e7fab,''[_0x1886ec(0x412)](_0x4cb756,'-')['concat'](_0x2cbd21[_0x1886ec(0x1c4)],'-')[_0x1886ec(0x412)](_0x5593bf),_0x6693bc,void 0x0,_0x47d715);}));}function _0x3ad62c(_0x351fd8,_0x341f95,_0x406790){const _0x3fa928=_0xb893b1;var _0x3b8a77=_0x355dec({},_0x351fd8['attrs']);_0x406790!=null&&_0x406790['colorChannel1']&&_0x3b8a77[_0x3fa928(0x256)]===_0x3fa928(0x1eb)&&(_0x3b8a77['fill']=_0x406790[_0x3fa928(0x1eb)]);var _0x31d8ce=_0x341f95[_0x3fa928(0x483)];return!_0x31d8ce||_0x31d8ce['length']===0x0||(_0x351fd8[_0x3fa928(0x1c4)]==='use'&&_0x3b8a77[_0x3fa928(0x2f6)]&&(_0x3b8a77[_0x3fa928(0x2f6)]=_0x3b8a77[_0x3fa928(0x2f6)]+_0x341f95[_0x3fa928(0x524)]),Object['entries'](_0x3b8a77)[_0x3fa928(0x3b7)](function(_0x704af){const _0x4ba8a3=_0x3fa928;var _0x739e71=_0x704af[0x0],_0x5e4f32=_0x704af[0x1];typeof _0x5e4f32==_0x4ba8a3(0x4a5)&&(_0x3b8a77[_0x739e71]=_0x5e4f32[_0x4ba8a3(0x3c7)](/url\(#(.*)\)/,_0x4ba8a3(0x316)['concat'](_0x341f95['idSuffix'],')')));})),_0x3b8a77;}function _0xb45ae8(_0x252c58,_0x5a95bf){const _0x13471a=_0xb893b1;var _0x23d34e,_0x39775e=_0x5a95bf[_0x13471a(0x483)];return!_0x39775e||_0x39775e[_0x13471a(0x4d8)]===0x0?_0x252c58:_0x252c58[_0x13471a(0x1c4)]===_0x13471a(0x528)&&(!((_0x23d34e=_0x252c58['children'])===null||_0x23d34e===void 0x0)&&_0x23d34e['length'])?_0x355dec(_0x355dec({},_0x252c58),{'children':_0x252c58['children']['map'](function(_0x3d6aa4){const _0x29e429=_0x13471a;return typeof _0x3d6aa4[_0x29e429(0x463)]['id']=='string'&&_0x39775e&&_0x39775e[_0x29e429(0x3c8)](_0x3d6aa4[_0x29e429(0x463)]['id'])>-0x1?_0x355dec(_0x355dec({},_0x3d6aa4),{'attrs':_0x355dec(_0x355dec({},_0x3d6aa4['attrs']),{'id':_0x3d6aa4['attrs']['id']+_0x5a95bf['idSuffix']})}):_0x3d6aa4;})}):_0x252c58;}function _0x151d00(){const _0x409c11=_0xb893b1;return Math[_0x409c11(0x364)]()[_0x409c11(0x540)](0x24)[_0x409c11(0x45e)](0x2,0x8);}_0x1de426['displayName']=_0xb893b1(0x52c);var _0x371ad2={'tag':_0xb893b1(0x3fb),'attrs':{'fill':_0xb893b1(0x143),'viewBox':'0\x200\x2016\x2016','width':_0xb893b1(0x448),'height':_0xb893b1(0x448)},'children':[{'tag':'g','attrs':{'clipPath':_0xb893b1(0x4f4)},'children':[{'tag':_0xb893b1(0x226),'attrs':{'stroke':'currentColor','d':_0xb893b1(0x1a4),'strokeLinecap':'round','strokeLinejoin':_0xb893b1(0x13a),'strokeWidth':1.2}}]},{'tag':_0xb893b1(0x528),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb893b1(0x30a)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0xb893b1(0x52d)}}]}]}],'defIds':[_0xb893b1(0x30a)]},_0x3ba4fb=_0x4bfab6['forwardRef'](function(_0x259185,_0x1643c9){const _0xe14036=_0xb893b1;return _0x4bfab6[_0xe14036(0x439)](_0x1de426,Object['assign']({},_0x259185,{'id':_0xe14036(0x263),'ref':_0x1643c9,'icon':_0x371ad2}));});_0x3ba4fb[_0xb893b1(0x136)]='OffLineSingle';var _0x2fd0d8={'tag':_0xb893b1(0x3fb),'attrs':{'fill':_0xb893b1(0x143),'viewBox':_0xb893b1(0x3ad),'width':_0xb893b1(0x448),'height':_0xb893b1(0x448)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0xb893b1(0x226),'attrs':{'stroke':_0xb893b1(0x3f6),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xb893b1(0x13a),'strokeLinejoin':_0xb893b1(0x13a),'strokeWidth':1.2}}]},{'tag':_0xb893b1(0x528),'attrs':{},'children':[{'tag':_0xb893b1(0x340),'attrs':{'id':_0xb893b1(0x301)},'children':[{'tag':_0xb893b1(0x226),'attrs':{'fill':_0xb893b1(0x447),'d':_0xb893b1(0x52d),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb893b1(0x301)]},_0xafb40f=_0x4bfab6['forwardRef'](function(_0x2c6167,_0x4bad1b){const _0x170df7=_0xb893b1;return _0x4bfab6[_0x170df7(0x439)](_0x1de426,Object[_0x170df7(0x51b)]({},_0x2c6167,{'id':_0x170df7(0x182),'ref':_0x4bad1b,'icon':_0x2fd0d8}));});_0xafb40f[_0xb893b1(0x136)]=_0xb893b1(0x151);function _0x1f8512(_0x1aafd1){const _0x42874a=_0xb893b1;var _0x57c00b,_0x6ff5ab,_0x5c6513='';if(typeof _0x1aafd1==_0x42874a(0x4a5)||typeof _0x1aafd1==_0x42874a(0x53b))_0x5c6513+=_0x1aafd1;else{if(typeof _0x1aafd1==_0x42874a(0x379)){if(Array[_0x42874a(0x2f5)](_0x1aafd1)){var _0x4a1f90=_0x1aafd1[_0x42874a(0x4d8)];for(_0x57c00b=0x0;_0x57c00b<_0x4a1f90;_0x57c00b++)_0x1aafd1[_0x57c00b]&&(_0x6ff5ab=_0x1f8512(_0x1aafd1[_0x57c00b]))&&(_0x5c6513&&(_0x5c6513+='\x20'),_0x5c6513+=_0x6ff5ab);}else{for(_0x6ff5ab in _0x1aafd1)_0x1aafd1[_0x6ff5ab]&&(_0x5c6513&&(_0x5c6513+='\x20'),_0x5c6513+=_0x6ff5ab);}}}return _0x5c6513;}function _0x21ba12(){const _0x19bf07=_0xb893b1;for(var _0xcac0a5,_0x4d43d5,_0xf3959c=0x0,_0x1d4e4d='',_0xbd64ea=arguments[_0x19bf07(0x4d8)];_0xf3959c<_0xbd64ea;_0xf3959c++)(_0xcac0a5=arguments[_0xf3959c])&&(_0x4d43d5=_0x1f8512(_0xcac0a5))&&(_0x1d4e4d&&(_0x1d4e4d+='\x20'),_0x1d4e4d+=_0x4d43d5);return _0x1d4e4d;}const _0x2866e3={'onlineStatusIcon':_0xb893b1(0x380),'onlineStatusTitle':_0xb893b1(0x189),'onlineStatus':'univer-online-status','online':_0xb893b1(0x1b4),'offline':_0xb893b1(0x29b)};function _0xddaaf4(_0x2b18a1){const _0x1371d3=_0xb893b1;switch(_0x2b18a1){case _0x512cbd[_0x1371d3(0x4d1)]:return _0x1371d3(0x137);case _0x512cbd[_0x1371d3(0x18f)]:return'collabStatus.conflict';case _0x512cbd['FETCH_MISS']:return _0x1371d3(0x35a);case _0x512cbd[_0x1371d3(0x1dc)]:return'collabStatus.notCollab';case _0x512cbd['AWAITING']:case _0x512cbd[_0x1371d3(0x109)]:return _0x1371d3(0x2c9);case _0x512cbd[_0x1371d3(0x4fc)]:case _0x512cbd[_0x1371d3(0x1cc)]:return _0x1371d3(0x2b9);}}function _0x21b65d(_0x753493){const _0xa4ee66=_0xb893b1,{status$:_0x52179c}=_0x753493,_0x1adf65=_0x4d3c2b[_0xa4ee66(0x3a4)](_0x52179c,_0x512cbd[_0xa4ee66(0x1dc)]),_0x1f8895=_0x58b389[_0xa4ee66(0x376)](_0x58b389[_0xa4ee66(0x4ee)]),_0x49e06e=_0x58b389['useDependency'](_0x3b52c4['CollaborationSessionService']),_0x26b2da=_0x1adf65!==_0x512cbd['OFFLINE'],_0x1611ce=_0x1f8895['t'](_0xddaaf4(_0x1adf65)),_0x267315=_0x21ba12(_0x2866e3[_0xa4ee66(0x537)],{[_0x2866e3[_0xa4ee66(0x1a1)]]:_0x26b2da,[_0x2866e3[_0xa4ee66(0x2bf)]]:!_0x26b2da}),_0x30ba84=_0x26b2da?_0x4bfab6['createElement'](_0xafb40f,null):_0x4bfab6[_0xa4ee66(0x439)](_0x3ba4fb,null),_0x4878cb=_0x4bfab6['useCallback'](()=>{const _0x3e64e3=_0xa4ee66;_0x26b2da||_0x49e06e[_0x3e64e3(0x29e)]();},[_0x26b2da,_0x49e06e]);function _0x1f102c(){const _0x575635=_0xa4ee66;return _0x4bfab6[_0x575635(0x439)](_0x575635(0x425),{'className':_0x267315,'onClick':_0x4878cb},_0x4bfab6[_0x575635(0x439)](_0x575635(0x425),{'className':_0x2866e3[_0x575635(0x207)]},_0x30ba84),_0x4bfab6['createElement']('div',{'className':_0x2866e3[_0x575635(0x33b)]},_0x1611ce));}return _0x26b2da?_0x1f102c():_0x4bfab6[_0xa4ee66(0x439)](_0x145b31['Tooltip'],{'title':_0x1f8895['t']('collab-client.tooltip.reconnect')},_0x1f102c());}var _0x27fbfe=Object[_0xb893b1(0x1bc)],_0x32cb18=Object[_0xb893b1(0x490)],_0x1ad65d=(_0x58326f,_0x235dbc,_0x42063b,_0x1baa09)=>{const _0x53bc21=_0xb893b1;for(var _0x4b7bdf=_0x1baa09>0x1?void 0x0:_0x1baa09?_0x32cb18(_0x235dbc,_0x42063b):_0x235dbc,_0x546587=_0x58326f[_0x53bc21(0x4d8)]-0x1,_0x3561f7;_0x546587>=0x0;_0x546587--)(_0x3561f7=_0x58326f[_0x546587])&&(_0x4b7bdf=(_0x1baa09?_0x3561f7(_0x235dbc,_0x42063b,_0x4b7bdf):_0x3561f7(_0x4b7bdf))||_0x4b7bdf);return _0x1baa09&&_0x4b7bdf&&_0x27fbfe(_0x235dbc,_0x42063b,_0x4b7bdf),_0x4b7bdf;},_0x33a40d=(_0x5747e4,_0x46a765)=>(_0x148c9b,_0x1a163d)=>_0x46a765(_0x148c9b,_0x1a163d,_0x5747e4);_0x3b52c4[_0xb893b1(0x27e)]=class extends _0x58b389['Disposable']{constructor(_0x51b180,_0x50d9e3,_0x5a2226,_0x240153){const _0x33b6f9=_0xb893b1;super(),_0xf1fe43(this,'_status$',new _0x4655d9[(_0x33b6f9(0x293))](_0x512cbd['NOT_COLLAB'])),(this['_univerInstanceService']=_0x51b180,this[_0x33b6f9(0x255)]=_0x50d9e3,this[_0x33b6f9(0x126)]=_0x5a2226,this[_0x33b6f9(0x247)]=_0x240153,this['_initStatusComponent'](),this[_0x33b6f9(0x373)]());}[_0xb893b1(0x373)](){const _0x2141c9=_0xb893b1;this[_0x2141c9(0x14b)](this['_univerInstanceService'][_0x2141c9(0x2ba)]['pipe'](_0x4655d9['switchMap'](()=>{const _0x55bf19=_0x2141c9,_0x28b75b=this[_0x55bf19(0x123)][_0x55bf19(0x42e)]();return _0x28b75b?this['_collaborationController'][_0x55bf19(0x417)](_0x28b75b[_0x55bf19(0x2b3)]()):_0x4655d9['of'](null);}),_0x4655d9['switchMap'](_0x5e425f=>_0x5e425f?_0x5e425f[_0x2141c9(0x431)]:_0x4655d9['of'](_0x512cbd[_0x2141c9(0x1dc)])))[_0x2141c9(0x1b6)](_0x24f2d8=>{const _0x407f0e=_0x2141c9;this[_0x407f0e(0x2ac)][_0x407f0e(0x174)](_0x24f2d8);}));}[_0xb893b1(0x52e)](){const _0x165c27=_0xb893b1;this['disposeWithMe'](this['_uiPartsService'][_0x165c27(0x2dd)](_0x4d3c2b[_0x165c27(0x4e0)]['HEADER_MENU'],()=>_0x58b389['connectInjector'](_0x3caeef({'status$':this['_status$']['asObservable']()}),this[_0x165c27(0x126)])));}},_0x3b52c4['DesktopCollaborationStatusDisplayController']=_0x1ad65d([_0x33a40d(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x33a40d(0x1,_0x4d3c2b[_0xb893b1(0x246)]),_0x33a40d(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x33a40d(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['CollaborationController']))],_0x3b52c4[_0xb893b1(0x27e)]);function _0x3caeef(_0x29be17){const {status$:_0x59b525}=_0x29be17;return function(){const _0x3601fd=_0x104b;return _0x4bfab6[_0x3601fd(0x439)](_0x21b65d,{'status$':_0x59b525});};}const _0x2272c6=_0x58b389[_0xb893b1(0x202)](_0xb893b1(0x394));var _0x10ba15=Object[_0xb893b1(0x1bc)],_0x252e49=Object[_0xb893b1(0x490)],_0x3545f5=(_0x3eba33,_0x28a54a,_0xdcd09e,_0x494a1b)=>{const _0x59533c=_0xb893b1;for(var _0x798cd5=_0x494a1b>0x1?void 0x0:_0x494a1b?_0x252e49(_0x28a54a,_0xdcd09e):_0x28a54a,_0x501c8c=_0x3eba33[_0x59533c(0x4d8)]-0x1,_0x4a6910;_0x501c8c>=0x0;_0x501c8c--)(_0x4a6910=_0x3eba33[_0x501c8c])&&(_0x798cd5=(_0x494a1b?_0x4a6910(_0x28a54a,_0xdcd09e,_0x798cd5):_0x4a6910(_0x798cd5))||_0x798cd5);return _0x494a1b&&_0x798cd5&&_0x10ba15(_0x28a54a,_0xdcd09e,_0x798cd5),_0x798cd5;},_0x51252f=(_0x3924a0,_0x4d19ef)=>(_0x495a40,_0x839466)=>_0x4d19ef(_0x495a40,_0x839466,_0x3924a0);_0x3b52c4[_0xb893b1(0x18c)]=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x3b4585,_0x16f3cc,_0x3ebf7b,_0x1cc77d,_0x41079a,_0x3e428c){const _0xda570c=_0xb893b1;super(),this[_0xda570c(0x45f)]=_0x3b4585,this['_logService']=_0x16f3cc,this['_commandService']=_0x3ebf7b,this[_0xda570c(0x4c9)]=_0x1cc77d,this[_0xda570c(0x1ac)]=_0x41079a,_0x3e428c?_0x3e428c==null||_0x3e428c['whenReady']()['then'](()=>this[_0xda570c(0x3e2)]()):(this['_logService'][_0xda570c(0x20d)]('[DataLoaderController]',_0xda570c(0x308)),this[_0xda570c(0x3e2)]());}async['_init'](){const _0x3285c4=_0xb893b1,_0x5449ba=this[_0x3285c4(0x45f)]['getParam']('unit'),_0xce7070=this[_0x3285c4(0x45f)]['getParam'](_0x3285c4(0x191));if(!_0x5449ba||!_0xce7070){this[_0x3285c4(0x482)][_0x3285c4(0x20d)](_0x3285c4(0x16a),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0xce7070)){case _0x2e214d[_0x3285c4(0x2db)]:{const _0x14448b=await this[_0x3285c4(0x3f5)](_0x5449ba);this[_0x3285c4(0x3b5)](_0x14448b);break;}case _0x2e214d[_0x3285c4(0x2d8)]:{await this[_0x3285c4(0x2ec)](_0x5449ba);break;}default:{this['_logService'][_0x3285c4(0x368)](_0x3285c4(0x16a),_0x3285c4(0x371));break;}}}async['_setupSubUnitSync'](_0x58b7c8){const _0x3da571=_0xb893b1;await this[_0x3da571(0x4ce)](_0x58b7c8),_0x58b7c8[_0x3da571(0x536)]['pipe'](_0x4655d9[_0x3da571(0x260)](this['dispose$']))[_0x3da571(0x1b6)](_0x2acf3f=>{_0x2acf3f&&this['_updateURLWithCurrentState'](_0x2acf3f);}),this[_0x3da571(0x45f)]['urlChange$'][_0x3da571(0x3ca)](_0x4655d9[_0x3da571(0x260)](this[_0x3da571(0x11c)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x58b7c8));}['_updateURLWithCurrentState'](_0x5f40c3,_0x2096b2=!0x1){const _0x4e9866=_0xb893b1,_0xb0fe61=this['_urlService'][_0x4e9866(0x237)](_0x4e9866(0x40c));_0x5f40c3[_0x4e9866(0x499)]()!==_0xb0fe61&&this[_0x4e9866(0x45f)][_0x4e9866(0x312)](_0x4e9866(0x40c),_0x5f40c3[_0x4e9866(0x499)](),_0x2096b2);}async[_0xb893b1(0x4ce)](_0x4ae09e){const _0x320f3c=_0xb893b1;var _0x3c4d45;const _0x4fa78b=this['_urlService'][_0x320f3c(0x237)](_0x320f3c(0x40c));if(!_0x4fa78b||!_0x4ae09e[_0x320f3c(0x460)](_0x4fa78b)){const _0x102e84=_0x4ae09e[_0x320f3c(0x158)]()[0x0],_0x380c57=_0x4ae09e[_0x320f3c(0x460)](_0x102e84);if(!_0x380c57)return;this[_0x320f3c(0x1c8)](_0x380c57,!0x0),await this[_0x320f3c(0x4af)][_0x320f3c(0x3c5)](_0x2d2223['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ae09e[_0x320f3c(0x2b3)](),'subUnitId':_0x102e84});return;}((_0x3c4d45=_0x4ae09e[_0x320f3c(0x131)]())==null?void 0x0:_0x3c4d45['getSheetId']())!==_0x4fa78b&&await this[_0x320f3c(0x4af)][_0x320f3c(0x3c5)](_0x2d2223[_0x320f3c(0x3bc)]['id'],{'unitId':_0x4ae09e[_0x320f3c(0x2b3)](),'subUnitId':_0x4fa78b});}async['_loadSheet'](_0x451558){const _0x181220=_0xb893b1;let _0x165656=0x0;const _0x3067df=await this[_0x181220(0x4c9)]['loadOfflineData'](_0x451558);return _0x3067df&&(_0x3067df[_0x181220(0x20a)]||_0x3067df[_0x181220(0x44a)]['length']!==0x0)&&(_0x165656=_0x3067df[_0x181220(0x114)]),_0x165656===0x0&&this[_0x181220(0x482)][_0x181220(0x20d)](_0x181220(0x16a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x181220(0x1ac)][_0x181220(0x212)](_0x451558,_0x165656);}async['_loadDoc'](_0x15f2de){const _0x5b695f=_0xb893b1;let _0x39d408=0x0;const _0x21ca09=await this[_0x5b695f(0x4c9)][_0x5b695f(0x477)](_0x15f2de);return _0x21ca09&&(_0x21ca09[_0x5b695f(0x20a)]||_0x21ca09['mutations'][_0x5b695f(0x4d8)]!==0x0)&&(_0x39d408=_0x21ca09[_0x5b695f(0x114)]),_0x39d408===0x0&&this['_logService'][_0x5b695f(0x20d)](_0x5b695f(0x16a),_0x5b695f(0x53c)),this['_snapshotService'][_0x5b695f(0x50c)](_0x15f2de,_0x39d408);}},_0x3b52c4[_0xb893b1(0x18c)]=_0x3545f5([_0x51252f(0x0,_0x2272c6),_0x51252f(0x1,_0x58b389[_0xb893b1(0x46a)]),_0x51252f(0x2,_0x58b389[_0xb893b1(0x1ec)]),_0x51252f(0x3,_0x58b389['Inject'](_0x3b52c4[_0xb893b1(0x2ff)])),_0x51252f(0x4,_0x58b389['Inject'](_0x5e5ab1[_0xb893b1(0x1d2)])),_0x51252f(0x5,_0x58b389['Optional'](_0x2df961[_0xb893b1(0x2ae)]))],_0x3b52c4[_0xb893b1(0x18c)]);var _0x22a341=Object[_0xb893b1(0x1bc)],_0x542b27=Object['getOwnPropertyDescriptor'],_0xb0312c=(_0x1b90f5,_0x38d35a,_0xbd9b2e,_0x3e032e)=>{const _0x42a47e=_0xb893b1;for(var _0x2ad5b2=_0x3e032e>0x1?void 0x0:_0x3e032e?_0x542b27(_0x38d35a,_0xbd9b2e):_0x38d35a,_0x511a91=_0x1b90f5[_0x42a47e(0x4d8)]-0x1,_0x2341b6;_0x511a91>=0x0;_0x511a91--)(_0x2341b6=_0x1b90f5[_0x511a91])&&(_0x2ad5b2=(_0x3e032e?_0x2341b6(_0x38d35a,_0xbd9b2e,_0x2ad5b2):_0x2341b6(_0x2ad5b2))||_0x2ad5b2);return _0x3e032e&&_0x2ad5b2&&_0x22a341(_0x38d35a,_0xbd9b2e,_0x2ad5b2),_0x2ad5b2;},_0x22e708=(_0x4ac03f,_0x53df28)=>(_0x8012fc,_0xdceb5d)=>_0x53df28(_0x8012fc,_0xdceb5d,_0x4ac03f);const _0x4c6a3a=_0xb893b1(0x19e),_0x2616af=_0xb893b1(0x497);let _0x27d9a8=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x40c8c3,_0x4059bf){const _0x33e32f=_0xb893b1;super(),this[_0x33e32f(0x123)]=_0x40c8c3,this[_0x33e32f(0x2f3)]=_0x4059bf,this[_0x33e32f(0x3e2)]();}[_0xb893b1(0x3e2)](){const _0x1f32c3=_0xb893b1;this[_0x1f32c3(0x14b)](this[_0x1f32c3(0x123)][_0x1f32c3(0x2ba)][_0x1f32c3(0x1b6)](()=>{const _0x2d74e9=_0x1f32c3;var _0x2041c6;const _0x53f61e=this['_univerInstanceService'][_0x2d74e9(0x42e)]();let _0x5e5a86=(_0x2041c6=this[_0x2d74e9(0x2f3)][_0x2d74e9(0x22b)](_0x4c6a3a))!=null?_0x2041c6:_0x2616af;_0x53f61e instanceof _0x58b389[_0x2d74e9(0x1b2)]&&(_0x5e5a86=_0x53f61e[_0x2d74e9(0x4e3)]),document[_0x2d74e9(0x142)]=_0x5e5a86;}));}};_0x27d9a8=_0xb0312c([_0x22e708(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x22e708(0x1,_0x58b389[_0xb893b1(0x1f6)])],_0x27d9a8);var _0x3641b0=Object[_0xb893b1(0x1bc)],_0x4d72e1=Object[_0xb893b1(0x490)],_0x5b0302=(_0x4ce6ab,_0x2e0e7c,_0x25fbe0,_0x1fca37)=>{for(var _0x215612=_0x1fca37>0x1?void 0x0:_0x1fca37?_0x4d72e1(_0x2e0e7c,_0x25fbe0):_0x2e0e7c,_0x334976=_0x4ce6ab['length']-0x1,_0x2fb4ea;_0x334976>=0x0;_0x334976--)(_0x2fb4ea=_0x4ce6ab[_0x334976])&&(_0x215612=(_0x1fca37?_0x2fb4ea(_0x2e0e7c,_0x25fbe0,_0x215612):_0x2fb4ea(_0x215612))||_0x215612);return _0x1fca37&&_0x215612&&_0x3641b0(_0x2e0e7c,_0x25fbe0,_0x215612),_0x215612;},_0x1f51cf=(_0x5d6e4b,_0x11a144)=>(_0x527bdb,_0x40afaf)=>_0x11a144(_0x527bdb,_0x40afaf,_0x5d6e4b);let _0x291110=class{constructor(_0x301574,_0x2459ce,_0x4c1cb7){const _0x1048fd=_0xb893b1;this[_0x1048fd(0x2f3)]=_0x301574,this[_0x1048fd(0x1a9)]=_0x2459ce,this[_0x1048fd(0x3da)]=_0x4c1cb7,this[_0x1048fd(0x29f)]();}[_0xb893b1(0x29f)](){const _0x23ba8a=_0xb893b1;this[_0x23ba8a(0x1a9)][_0x23ba8a(0x325)]({'priority':0x1,'interceptor':(_0x5b1916,_0x26f7c0)=>_0x26f7c0(_0x5b1916)[_0x23ba8a(0x3ca)](_0x4655d9['concatMap'](async _0x4a0d3b=>{const _0x2e7575=_0x23ba8a,_0x17235f=_0x4a0d3b;if(_0x17235f[_0x2e7575(0x259)]===0x191&&window[_0x2e7575(0x248)](this[_0x2e7575(0x3da)]['t']('auth.needGotoLoginAlert'))){const _0x1fc35e=window['encodeURIComponent'](window[_0x2e7575(0x129)][_0x2e7575(0x288)]);window[_0x2e7575(0x129)][_0x2e7575(0x288)]=this[_0x2e7575(0x187)]()+_0x2e7575(0x426)+_0x1fc35e;}return _0x17235f;}))});}[_0xb893b1(0x187)](){const _0x1d97ab=_0xb893b1;var _0x567494,_0x45716f;const _0x53ffb7=this[_0x1d97ab(0x2f3)][_0x1d97ab(0x22b)](_0x42bb89),_0x59902b=this[_0x1d97ab(0x2f3)]['getConfig'](_0x271aa0);return(_0x45716f=(_0x567494=_0x59902b==null?void 0x0:_0x59902b[_0x1d97ab(0x481)])!=null?_0x567494:_0x53ffb7)!=null?_0x45716f:_0x3aa700;}};_0x291110=_0x5b0302([_0x1f51cf(0x0,_0x58b389[_0xb893b1(0x1f6)]),_0x1f51cf(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x1f51cf(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['LocaleService']))],_0x291110);var _0x5c3996=Object[_0xb893b1(0x1bc)],_0x120029=Object[_0xb893b1(0x490)],_0x319f6b=(_0x1550f6,_0x4e95f8,_0x290fb5,_0x445a01)=>{const _0x3669a2=_0xb893b1;for(var _0x164c6a=_0x445a01>0x1?void 0x0:_0x445a01?_0x120029(_0x4e95f8,_0x290fb5):_0x4e95f8,_0x451cdd=_0x1550f6[_0x3669a2(0x4d8)]-0x1,_0x223905;_0x451cdd>=0x0;_0x451cdd--)(_0x223905=_0x1550f6[_0x451cdd])&&(_0x164c6a=(_0x445a01?_0x223905(_0x4e95f8,_0x290fb5,_0x164c6a):_0x223905(_0x164c6a))||_0x164c6a);return _0x445a01&&_0x164c6a&&_0x5c3996(_0x4e95f8,_0x290fb5,_0x164c6a),_0x164c6a;},_0x31cc63=(_0x194d00,_0x2b42d9)=>(_0x592128,_0x2063d7)=>_0x2b42d9(_0x592128,_0x2063d7,_0x194d00);const _0x24fd15=_0xb893b1(0x228),_0x2de352=_0xb893b1(0x3a5);_0x3b52c4[_0xb893b1(0x29c)]=class extends _0x58b389['Disposable']{constructor(_0x18390b,_0x55be62){const _0xccab67=_0xb893b1;super(),this[_0xccab67(0x1be)]=_0x18390b,this[_0xccab67(0x2f3)]=_0x55be62,this[_0xccab67(0x22e)]();}[_0xb893b1(0x22e)](){const _0x156a63=_0xb893b1,_0x9a881c=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x57b255[_0x156a63(0x485)]({'isMatch'(_0xeb633f){const _0x5a21f1=_0x156a63;var _0x501ba1;if(_0xeb633f['method']==='POST'&&((_0x501ba1=_0xeb633f['requestParams'])!=null&&_0x501ba1['body'])){const {objectID:_0x1b5d90,objectType:_0x316145}=_0xeb633f['requestParams'][_0x5a21f1(0x538)]||{};if(!_0x1b5d90||_0x316145===void 0x0)return!0x1;const _0x168b72=_0x9a881c['_getAPIPrefixPath']()+'/'+_0x316145+'/object/'+_0x1b5d90+_0x5a21f1(0x22c);if(_0xeb633f[_0x5a21f1(0x241)]===_0x168b72)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2431cb){const _0x8e6d4d=_0x156a63;var _0x2cb107;return(_0x2cb107=_0x2431cb[_0x8e6d4d(0x4db)])==null?void 0x0:_0x2cb107[_0x8e6d4d(0x538)];},'mergeParamsToRequest'(_0x5c918c,_0xd9b01e){const _0x106ccb=_0x156a63,_0x56be15=_0x9a881c['_getAPIPrefixPath']()+_0x106ccb(0x519),_0x4e0921=_0x5c918c[_0x106ccb(0x154)]((_0x1cb1ed,_0x27aba7)=>{const _0x39b1ef=_0x106ccb,{unitID:_0x4f0b23,objectID:_0xb0545b,objectType:_0x3a6586,actions:_0x4682d4}=_0x27aba7;return _0x1cb1ed[_0x4f0b23]||(_0x1cb1ed[_0x4f0b23]={}),_0x1cb1ed[_0x4f0b23][_0xb0545b]||(_0x1cb1ed[_0x4f0b23][_0xb0545b]={'objectID':_0xb0545b,'objectType':_0x3a6586,'actions':[]}),_0x1cb1ed[_0x4f0b23][_0xb0545b]['actions'][_0x39b1ef(0x428)](..._0x4682d4),_0x1cb1ed;},{}),_0x91d915=[];for(const _0x180880 in _0x4e0921)for(const _0x721a8b in _0x4e0921[_0x180880]){const {actions:_0xc7e313,objectType:_0x5e4b02}=_0x4e0921[_0x180880][_0x721a8b],_0x36a93a=[...new Set(_0xc7e313)];_0x91d915[_0x106ccb(0x428)]({'unitID':_0x180880,'objectID':_0x721a8b,'objectType':_0x5e4b02,'actions':_0x36a93a});}return new _0x57b255[(_0x106ccb(0x10d))](_0x106ccb(0x44e),_0x56be15,{'headers':_0xd9b01e[_0x106ccb(0x470)],'withCredentials':_0xd9b01e['withCredentials'],'responseType':_0xd9b01e[_0x106ccb(0x34c)],'body':{'requests':_0x91d915}});}},{'distributeResult'(_0xfa18b4,_0x5c9927){const _0x4bdd5a=_0x156a63,{objectActions:_0x3bd3d8}=_0xfa18b4;return _0x5c9927[_0x4bdd5a(0x44d)](_0x14977f=>{const _0x1c8a23=_0x4bdd5a,{unitID:_0x40cb99,objectID:_0x3b81db,actions:_0x1c5b6b}=_0x14977f,_0x1d85e4=_0x3bd3d8['find'](_0x47fea6=>_0x47fea6['unitID']===_0x40cb99&&_0x47fea6[_0x1c8a23(0x1e3)]===_0x3b81db),_0x729d6e=_0x1c5b6b[_0x1c8a23(0x44d)](_0x340f7c=>_0x1d85e4==null?void 0x0:_0x1d85e4['actions'][_0x1c8a23(0x322)](_0x2f343a=>_0x2f343a[_0x1c8a23(0x3f3)]===_0x340f7c))['filter'](_0x1c8106=>!!_0x1c8106);return{'config':_0x14977f,'result':{'actions':_0x729d6e,'error':_0xfa18b4['error']}};});}})}));}[_0xb893b1(0x243)](){const _0x39c17d=_0xb893b1;var _0x3ee4be,_0x33627d;const _0x2b358d=this['_configService'][_0x39c17d(0x22b)](_0x24fd15),_0x25b86b=this[_0x39c17d(0x2f3)]['getConfig'](_0x271aa0);return(_0x33627d=(_0x3ee4be=_0x25b86b==null?void 0x0:_0x25b86b[_0x39c17d(0x50e)])!=null?_0x3ee4be:_0x2b358d)!=null?_0x33627d:_0x2de352;}async['create'](_0x5670fc){const _0x3f05aa=_0xb893b1,_0x4fcaec=this[_0x3f05aa(0x243)]()+'/'+_0x5670fc[_0x3f05aa(0x473)]+_0x3f05aa(0x4f7);return(await this['_HTTPService'][_0x3f05aa(0x3b4)](_0x4fcaec,{'body':_0x5670fc}))['body'][_0x3f05aa(0x1e3)]||'';}async['list'](_0x516db6){const _0x2b2cb2=_0xb893b1,_0x5e1b83=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x2b2cb2(0x1be)][_0x2b2cb2(0x3b4)](_0x5e1b83,{'body':_0x516db6}))[_0x2b2cb2(0x538)]['objects'];}async['update'](_0x437c1b){const _0x9b1359=_0xb893b1,_0x143dad=this[_0x9b1359(0x243)]()+'/'+_0x437c1b[_0x9b1359(0x473)]+'/object/'+_0x437c1b[_0x9b1359(0x1e3)];await this[_0x9b1359(0x1be)][_0x9b1359(0x4cf)](_0x143dad,{'body':_0x437c1b});}async[_0xb893b1(0x26a)](_0x1d3034){const _0x1dae0b=_0xb893b1,_0x3099ee=this[_0x1dae0b(0x243)]()+'/'+_0x1d3034[_0x1dae0b(0x473)]+_0x1dae0b(0x51a)+_0x1d3034[_0x1dae0b(0x1e3)]+_0x1dae0b(0x22c);return(await this[_0x1dae0b(0x1be)][_0x1dae0b(0x3b4)](_0x3099ee,{'body':_0x1d3034}))[_0x1dae0b(0x538)][_0x1dae0b(0x12b)];}async[_0xb893b1(0x306)](_0x345b1c){const _0x35d596=_0xb893b1,_0x4cb9e8=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x35d596(0x3b4)](_0x4cb9e8,{'body':{'requests':_0x345b1c}}))[_0x35d596(0x538)][_0x35d596(0x4e2)];}async['listRoles'](_0x6c1d6d){const _0x3e5c7e=_0xb893b1,_0x1d41ad=this['_getAPIPrefixPath']()+'/'+_0x6c1d6d[_0x3e5c7e(0x473)]+_0x3e5c7e(0x20e),_0x518176=await this[_0x3e5c7e(0x1be)][_0x3e5c7e(0x3b4)](_0x1d41ad,{'body':_0x6c1d6d});return{'roles':_0x518176[_0x3e5c7e(0x538)][_0x3e5c7e(0x392)],'actions':_0x518176[_0x3e5c7e(0x538)][_0x3e5c7e(0x12b)]};}async[_0xb893b1(0x10e)](_0x46b988){const _0x64f0c5=_0xb893b1,_0x5a7145=this['_getAPIPrefixPath']()+_0x64f0c5(0x332);await this['_HTTPService']['delete'](_0x5a7145,{'params':{'collaboratorID':_0x46b988[_0x64f0c5(0x225)],'objectID':_0x46b988[_0x64f0c5(0x1e3)],'unitID':_0x46b988[_0x64f0c5(0x386)]}});}async[_0xb893b1(0x449)](_0x3a47ea){const _0x1dcab6=_0xb893b1,_0x5a8a9c=this['_getAPIPrefixPath']()+_0x1dcab6(0x332);await this[_0x1dcab6(0x1be)][_0x1dcab6(0x16e)](_0x5a8a9c,{'body':_0x3a47ea});}async[_0xb893b1(0x1f7)](_0x4d8225){const _0x550474=_0xb893b1,_0x197c44=this[_0x550474(0x243)]()+'/collaborator';await this[_0x550474(0x1be)][_0x550474(0x3b4)](_0x197c44,{'body':_0x4d8225});}async[_0xb893b1(0x15e)](_0x14c653){const _0x2ccd38=_0xb893b1,_0x41253d=this[_0x2ccd38(0x243)]()+_0x2ccd38(0x332);return(await this['_HTTPService'][_0x2ccd38(0x19d)](_0x41253d,{'params':{'objectID':_0x14c653[_0x2ccd38(0x1e3)],'unitID':_0x14c653[_0x2ccd38(0x386)]}}))[_0x2ccd38(0x538)][_0x2ccd38(0x43b)];}async[_0xb893b1(0x35c)](_0x21ac93){const _0x637788=_0xb893b1,_0x3282d7=this[_0x637788(0x243)]()+'/collaborator';await this[_0x637788(0x1be)][_0x637788(0x4cf)](_0x3282d7,{'body':_0x21ac93});}},_0x3b52c4[_0xb893b1(0x29c)]=_0x319f6b([_0x31cc63(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x31cc63(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1f6)]))],_0x3b52c4[_0xb893b1(0x29c)]);var _0x446105=Object[_0xb893b1(0x1bc)],_0x52bdd0=Object[_0xb893b1(0x490)],_0x24ac5c=(_0x2dca7d,_0x122ea8,_0x301408,_0x489109)=>{const _0x429854=_0xb893b1;for(var _0x1664cc=_0x489109>0x1?void 0x0:_0x489109?_0x52bdd0(_0x122ea8,_0x301408):_0x122ea8,_0x33d1ba=_0x2dca7d[_0x429854(0x4d8)]-0x1,_0x35af02;_0x33d1ba>=0x0;_0x33d1ba--)(_0x35af02=_0x2dca7d[_0x33d1ba])&&(_0x1664cc=(_0x489109?_0x35af02(_0x122ea8,_0x301408,_0x1664cc):_0x35af02(_0x1664cc))||_0x1664cc);return _0x489109&&_0x1664cc&&_0x446105(_0x122ea8,_0x301408,_0x1664cc),_0x1664cc;},_0x39e2e7=(_0x54866a,_0x4b41b6)=>(_0x5544b6,_0x46d00b)=>_0x4b41b6(_0x5544b6,_0x46d00b,_0x54866a);let _0x838442=class{constructor(_0x58393a){const _0x18b438=_0xb893b1;this['_httpService']=_0x58393a,this[_0x18b438(0x360)]();}[_0xb893b1(0x360)](){const _0x2e3931=_0xb893b1;this[_0x2e3931(0x1a9)][_0x2e3931(0x325)]({'interceptor':(_0x5875bf,_0x5f1a49)=>{const _0x153331=_0x2e3931,_0x171f51=_0x5875bf[_0x153331(0x470)],_0x241890=_0x278106[_0x153331(0x1f8)]();return _0x241890&&_0x171f51[_0x153331(0x1c2)]('x-univer-host',_0x241890),_0x5f1a49(_0x5875bf);}});}};_0x838442=_0x24ac5c([_0x39e2e7(0x0,_0x58b389['Inject'](_0x57b255[_0xb893b1(0x1c9)]))],_0x838442);var _0x433bed=Object[_0xb893b1(0x1bc)],_0x4039e2=Object['getOwnPropertyDescriptor'],_0x5d370e=(_0x3250d8,_0x306003,_0x76ee0b,_0x584d6b)=>{for(var _0x1f3bf8=_0x584d6b>0x1?void 0x0:_0x584d6b?_0x4039e2(_0x306003,_0x76ee0b):_0x306003,_0x289ef4=_0x3250d8['length']-0x1,_0x52e7d4;_0x289ef4>=0x0;_0x289ef4--)(_0x52e7d4=_0x3250d8[_0x289ef4])&&(_0x1f3bf8=(_0x584d6b?_0x52e7d4(_0x306003,_0x76ee0b,_0x1f3bf8):_0x52e7d4(_0x1f3bf8))||_0x1f3bf8);return _0x584d6b&&_0x1f3bf8&&_0x433bed(_0x306003,_0x76ee0b,_0x1f3bf8),_0x1f3bf8;},_0x178d5a=(_0x11adf6,_0x49d5c9)=>(_0x2b91a1,_0x6ed3e2)=>_0x49d5c9(_0x2b91a1,_0x6ed3e2,_0x11adf6);const _0x337602=[_0xb893b1(0x456),_0xb893b1(0x522),'image/jpg',_0xb893b1(0x375),'image/bmp'],_0x3c08c0=0x5*0x400*0x400,_0x3bf952='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x365192=_0xb893b1(0x338),_0x930f1c=_0xb893b1(0x3a8),_0xbe6f1d='/universer-api/file/{fileID}/sign-url';_0x3b52c4[_0xb893b1(0x38e)]=class{constructor(_0x2edf81,_0x522eff,_0x336776){const _0x40e398=_0xb893b1;_0xf1fe43(this,_0x40e398(0x1ab),0x0),_0xf1fe43(this,_0x40e398(0x387),new _0x4655d9[(_0x40e398(0x4d6))]()),_0xf1fe43(this,'change$',this['_change$']),_0xf1fe43(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x2edf81,this[_0x40e398(0x2f3)]=_0x522eff,this['_univerInstanceService']=_0x336776);}['setWaitCount'](_0x1e303f){const _0x439b3f=_0xb893b1;this[_0x439b3f(0x1ab)]=_0x1e303f,this['_change$'][_0x439b3f(0x174)](_0x1e303f);}[_0xb893b1(0x421)](_0x4f71d5,_0x1d764c){const _0x22bf60=_0xb893b1;if(_0x1d764c===_0x1031ad[_0x22bf60(0x451)][_0x22bf60(0xfe)]){const _0x15dd89=new Image();return _0x15dd89[_0x22bf60(0x27d)]=_0x4f71d5,_0x15dd89;}return this[_0x22bf60(0x31d)][_0x22bf60(0x19d)](_0x4f71d5);}[_0xb893b1(0x4f2)](_0x1ae2c4,_0x506c2e,_0x3f9ae5){const _0x14685c=_0xb893b1;_0x506c2e===_0x1031ad[_0x14685c(0x451)]['BASE64']||_0x3f9ae5==null||this[_0x14685c(0x31d)][_0x14685c(0x1c2)](_0x1ae2c4,_0x3f9ae5);}async[_0xb893b1(0x377)](_0x46b14c){const _0x1a00f2=_0xb893b1;try{const _0x18b18e=this[_0x1a00f2(0x2ce)](this['_getSignURL'](),''+_0x46b14c),_0x1135b7=(await this[_0x1a00f2(0x1a9)][_0x1a00f2(0x19d)](_0x18b18e))['body'];if(_0x1135b7[_0x1a00f2(0x368)]&&_0x1135b7[_0x1a00f2(0x368)][_0x1a00f2(0x170)]===_0x423190['OK']){const _0x3d7b52=new URL(_0x1135b7[_0x1a00f2(0x241)],this[_0x1a00f2(0x45c)]())[_0x1a00f2(0x540)]();return Promise['resolve'](_0x3d7b52);}return Promise[_0x1a00f2(0x36d)](_0x1135b7['error']);}catch(_0x5f4667){return Promise['reject'](_0x5f4667);}}async[_0xb893b1(0x320)](_0x567162){const _0x479862=_0xb893b1;let _0x4ec5c7='';if(!_0x337602[_0x479862(0x532)](_0x567162[_0x479862(0x191)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1031ad[_0x479862(0x12a)][_0x479862(0x39e)]));if(_0x567162[_0x479862(0x30b)]>_0x3c08c0)return this[_0x479862(0x38a)](),Promise[_0x479862(0x36d)](new Error(_0x1031ad[_0x479862(0x12a)][_0x479862(0x47a)]));try{const _0x3c1855=new FormData();_0x3c1855[_0x479862(0x484)](_0x479862(0x19f),_0x567162);const _0x10fec8=this[_0x479862(0x123)][_0x479862(0x42e)](),_0x3e882f=_0x10fec8==null?void 0x0:_0x10fec8[_0x479862(0x2b3)]();if(!_0x3e882f)throw new Error(_0x479862(0x3d0));const _0x3bd7c6=this[_0x479862(0x35f)]()+_0x479862(0x4ca)+_0x567162['size'][_0x479862(0x540)]()+_0x479862(0x355)+_0x1ca33e[_0x479862(0x53d)]+_0x479862(0x124)+encodeURIComponent(_0x3e882f),_0x32003f=await(await fetch(_0x3bd7c6,{'method':_0x479862(0x44e),'body':_0x3c1855}))[_0x479862(0x4b1)]();if(typeof _0x32003f['FileId']!=_0x479862(0x4a5))return this[_0x479862(0x38a)](),Promise[_0x479862(0x36d)](new Error(_0x1031ad['ImageUploadStatusType']['ERROR_IMAGE']));_0x4ec5c7=_0x32003f[_0x479862(0x539)];}catch{return this[_0x479862(0x38a)](),Promise[_0x479862(0x36d)](new Error(_0x1031ad['ImageUploadStatusType'][_0x479862(0x32c)]));}return new Promise((_0x4efd19,_0x4dfc90)=>{const _0x5b4e11=_0x479862,_0x5cdebd=new FileReader();_0x5cdebd['readAsDataURL'](_0x567162),_0x5cdebd[_0x5b4e11(0x413)]=_0x20cca6=>{const _0x3de17d=_0x5b4e11;var _0xc6444c;const _0x1ddad3=(_0xc6444c=_0x20cca6[_0x3de17d(0x507)])==null?void 0x0:_0xc6444c['result'];if(_0x1ddad3==null){this[_0x3de17d(0x38a)](),_0x4dfc90(new Error(_0x1031ad[_0x3de17d(0x12a)][_0x3de17d(0x32c)]));return;}const _0x33999a=_0x58b389[_0x3de17d(0x36e)]['generateRandomId'](0x6);_0x4efd19({'imageId':_0x33999a,'imageSourceType':_0x1031ad[_0x3de17d(0x451)][_0x3de17d(0x4dd)],'source':_0x4ec5c7,'base64Cache':_0x1ddad3,'status':_0x1031ad['ImageUploadStatusType'][_0x3de17d(0x1e6)]}),this[_0x3de17d(0x38a)]();};});}['_getUploadFileURL'](){const _0x2b824c=_0xb893b1;var _0x35d8c8,_0x5b335b;const _0x34e174=this['_configService']['getConfig'](_0x3bf952),_0x15859a=this[_0x2b824c(0x2f3)][_0x2b824c(0x22b)](_0x271aa0);return(_0x5b335b=(_0x35d8c8=_0x15859a==null?void 0x0:_0x15859a[_0x2b824c(0x1e2)])!=null?_0x35d8c8:_0x34e174)!=null?_0x5b335b:_0x365192;}[_0xb893b1(0x478)](){const _0x1b0356=_0xb893b1;var _0x1d60c8,_0x530954;const _0x11d00d=this[_0x1b0356(0x2f3)][_0x1b0356(0x22b)](_0x930f1c),_0xcea4a6=this[_0x1b0356(0x2f3)][_0x1b0356(0x22b)](_0x271aa0);return(_0x530954=(_0x1d60c8=_0xcea4a6==null?void 0x0:_0xcea4a6[_0x1b0356(0x1fd)])!=null?_0x1d60c8:_0x11d00d)!=null?_0x530954:_0xbe6f1d;}[_0xb893b1(0x45c)](){const _0x58f32e=_0xb893b1;var _0x10006c;const _0x4a4c7a=this['_configService'][_0x58f32e(0x22b)](_0x271aa0);return(_0x10006c=_0x4a4c7a==null?void 0x0:_0x4a4c7a[_0x58f32e(0x1ba)])!=null?_0x10006c:location[_0x58f32e(0x1d6)];}[_0xb893b1(0x2ce)](_0x219b9a,_0x2b635a){const _0x331b89=_0xb893b1;return _0x219b9a[_0x331b89(0x3c7)](_0x331b89(0x105),_0x2b635a);}['_decreaseWaiting'](){const _0x46ef00=_0xb893b1;this[_0x46ef00(0x1ab)]-=0x1,this[_0x46ef00(0x387)][_0x46ef00(0x174)](this['_waitCount']);}},_0x3b52c4[_0xb893b1(0x38e)]=_0x5d370e([_0x178d5a(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x178d5a(0x1,_0x58b389[_0xb893b1(0x1f6)]),_0x178d5a(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d9)]))],_0x3b52c4['ImageIoService']);var _0x251928=Object[_0xb893b1(0x1bc)],_0x30a785=Object[_0xb893b1(0x490)],_0x46292f=(_0x30fee0,_0xa15401,_0x5c5b7c,_0x1a9f6a)=>{const _0x49bb0e=_0xb893b1;for(var _0x1086d8=_0x1a9f6a>0x1?void 0x0:_0x1a9f6a?_0x30a785(_0xa15401,_0x5c5b7c):_0xa15401,_0x4401f4=_0x30fee0[_0x49bb0e(0x4d8)]-0x1,_0x3291de;_0x4401f4>=0x0;_0x4401f4--)(_0x3291de=_0x30fee0[_0x4401f4])&&(_0x1086d8=(_0x1a9f6a?_0x3291de(_0xa15401,_0x5c5b7c,_0x1086d8):_0x3291de(_0x1086d8))||_0x1086d8);return _0x1a9f6a&&_0x1086d8&&_0x251928(_0xa15401,_0x5c5b7c,_0x1086d8),_0x1086d8;},_0x5925ac=(_0x5f4201,_0x1a9a9e)=>(_0x1421c9,_0x5ab925)=>_0x1a9a9e(_0x1421c9,_0x5ab925,_0x5f4201);let _0x22ab42=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x41f3bc,_0x548830,_0x49effd,_0xd8a6fd,_0x1b09cc){const _0x46064c=_0xb893b1;super(),this[_0x46064c(0x126)]=_0x41f3bc,this[_0x46064c(0x123)]=_0x548830,this['_permissionService']=_0x49effd,this[_0x46064c(0x185)]=_0xd8a6fd,this['_localeService']=_0x1b09cc,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0xb893b1(0x17b)](){const _0x33b66f=_0xb893b1,_0x28e339=async _0x28a9a8=>{const _0x626bcb=_0x104b;(await this[_0x626bcb(0x185)]['requireSession'](_0x28a9a8))[_0x626bcb(0x297)][_0x626bcb(0x3ca)](_0x5d8a56['filter'](_0x29a8ad=>_0x29a8ad[_0x626bcb(0x39a)]===_0x5e5ab1['CollaborationEvent'][_0x626bcb(0x252)]),_0x5d8a56[_0x626bcb(0x260)](this['dispose$']))['subscribe'](_0x789f34=>{const _0x4c02c0=_0x626bcb,_0x1db3f1=_0x789f34,{reason:_0x2338bd}=_0x1db3f1['data'];this[_0x4c02c0(0x126)][_0x4c02c0(0x19d)](_0x4d3c2b[_0x4c02c0(0x36f)])['show']({'type':_0x145b31[_0x4c02c0(0x3de)][_0x4c02c0(0x4b2)],'content':this[_0x4c02c0(0x341)]['t'](_0x4c02c0(0x11e))+'('+_0x2338bd+')'}),this[_0x4c02c0(0x2a0)][_0x4c02c0(0x1a7)](new _0x2d2223[(_0x4c02c0(0x192))](_0x28a9a8)['id'],!0x1),this[_0x4c02c0(0x185)][_0x4c02c0(0x433)](_0x28a9a8);});};_0x4655d9[_0x33b66f(0x1b3)](this[_0x33b66f(0x123)]['getTypeOfUnitAdded$'](_0x58b389[_0x33b66f(0x441)][_0x33b66f(0x2db)]),this['_univerInstanceService'][_0x33b66f(0x2a1)](_0x58b389['UniverInstanceType']['UNIVER_DOC']))[_0x33b66f(0x3ca)](_0x5d8a56['map'](_0x44f3cd=>_0x44f3cd[_0x33b66f(0x2b3)]()),_0x5d8a56['filter'](_0x1b5319=>!_0x58b389[_0x33b66f(0x22f)](_0x1b5319)),_0x5d8a56[_0x33b66f(0x260)](this[_0x33b66f(0x11c)]))['subscribe'](_0x2bf260=>{_0x28e339(_0x2bf260);});}[_0xb893b1(0x298)](){const _0x8aafab=_0xb893b1,_0x308792=async _0x5da2e1=>{const _0x1b029c=_0x104b;(await this[_0x1b029c(0x185)][_0x1b029c(0x213)](_0x5da2e1))[_0x1b029c(0x297)]['pipe'](_0x5d8a56[_0x1b029c(0x1ae)](_0x584645=>_0x584645[_0x1b029c(0x39a)]===_0x5e5ab1[_0x1b029c(0x177)][_0x1b029c(0x38b)]),_0x5d8a56['takeUntil'](this[_0x1b029c(0x11c)]))[_0x1b029c(0x1b6)](_0x1933b7=>{const _0x347024=_0x1b029c,_0x322534=_0x1933b7,{objectId:_0x3e359a}=_0x322534[_0x347024(0x489)],_0x50bd1e=this[_0x347024(0x126)][_0x347024(0x19d)](_0x85ae1c['SheetPermissionInitController']);_0x3e359a===_0x5da2e1?_0x50bd1e[_0x347024(0x3cf)](_0x5da2e1):_0x50bd1e['refreshPermission'](_0x5da2e1,_0x3e359a);});};_0x4655d9[_0x8aafab(0x1b3)](this['_univerInstanceService'][_0x8aafab(0x2a1)](_0x58b389[_0x8aafab(0x441)][_0x8aafab(0x2db)]),this[_0x8aafab(0x123)][_0x8aafab(0x2a1)](_0x58b389[_0x8aafab(0x441)]['UNIVER_DOC']))['pipe'](_0x5d8a56[_0x8aafab(0x44d)](_0x2565b6=>_0x2565b6['getUnitId']()),_0x5d8a56[_0x8aafab(0x1ae)](_0x4da069=>!_0x58b389[_0x8aafab(0x22f)](_0x4da069)),_0x5d8a56[_0x8aafab(0x260)](this['dispose$']))[_0x8aafab(0x1b6)](_0x20dd4c=>{_0x308792(_0x20dd4c);});}};_0x22ab42=_0x46292f([_0x5925ac(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x5925ac(0x1,_0x58b389[_0xb893b1(0x1d9)]),_0x5925ac(0x2,_0x58b389['IPermissionService']),_0x5925ac(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x11f)])),_0x5925ac(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4ee)]))],_0x22ab42);var _0x25b27b=Object[_0xb893b1(0x1bc)],_0x57c05e=Object['getOwnPropertyDescriptor'],_0x27e37d=(_0x205453,_0x238b01,_0x4de83f,_0x593b66)=>{const _0x1f3869=_0xb893b1;for(var _0x4676cf=_0x593b66>0x1?void 0x0:_0x593b66?_0x57c05e(_0x238b01,_0x4de83f):_0x238b01,_0x4ffb01=_0x205453[_0x1f3869(0x4d8)]-0x1,_0x5d4f16;_0x4ffb01>=0x0;_0x4ffb01--)(_0x5d4f16=_0x205453[_0x4ffb01])&&(_0x4676cf=(_0x593b66?_0x5d4f16(_0x238b01,_0x4de83f,_0x4676cf):_0x5d4f16(_0x4676cf))||_0x4676cf);return _0x593b66&&_0x4676cf&&_0x25b27b(_0x238b01,_0x4de83f,_0x4676cf),_0x4676cf;},_0x41c74b=(_0x3dbf19,_0x240f7e)=>(_0x1ff4ac,_0x3f3d19)=>_0x240f7e(_0x1ff4ac,_0x3f3d19,_0x3dbf19);_0x3b52c4[_0xb893b1(0x4c0)]=class{constructor(_0x168130,_0x29131a){const _0x56a75f=_0xb893b1;this[_0x56a75f(0x2f3)]=_0x168130,this[_0x56a75f(0x1a9)]=_0x29131a;}async[_0xb893b1(0x453)](_0x14e9cb,_0x36183b){const _0x5a4348=_0xb893b1;var _0x31c181;const {unitID:_0x4433c1,type:_0x3db2b8,revision:_0x2bca7b=0x0}=_0x36183b,_0x204ee6=this[_0x5a4348(0x1bd)]()+'/'+_0x3db2b8+_0x5a4348(0x165)+_0x4433c1+_0x5a4348(0x472)+_0x2bca7b,_0x175725=(await this['_httpService']['get'](_0x204ee6))['body'],_0x1dc919=(_0x31c181=_0x175725['snapshot'])==null?void 0x0:_0x31c181['workbook'];if(_0x1dc919){const _0x18417e=_0x1dc919==null?void 0x0:_0x1dc919['originalMeta'],_0x30360f=_0x5e5ab1['textEncoder'][_0x5a4348(0x2af)](_0x5e5ab1['b64DecodeUnicode'](_0x18417e));_0x1dc919[_0x5a4348(0x2d1)]=_0x30360f,Object[_0x5a4348(0x46f)](_0x1dc919['sheets'])[_0x5a4348(0x3b7)](([,_0x6d5772])=>{const _0xfecb52=_0x5a4348,_0x2bbc4e=_0x6d5772[_0xfecb52(0x2d1)],_0x3088e0=_0x5e5ab1[_0xfecb52(0x363)][_0xfecb52(0x2af)](_0x5e5ab1['b64DecodeUnicode'](_0x2bbc4e));_0x6d5772['originalMeta']=_0x3088e0;});}return _0x175725;}async[_0xb893b1(0x351)](_0x563799,_0x38f019){const _0x13b5b6=_0xb893b1,{unitID:_0x16584f,type:_0x155242,blockID:_0x4ad5b0}=_0x38f019,_0x333fcc=this[_0x13b5b6(0x16c)]()+'/'+_0x155242+_0x13b5b6(0x165)+_0x16584f+_0x13b5b6(0x3c3)+_0x4ad5b0;return(await this[_0x13b5b6(0x1a9)]['get'](_0x333fcc))[_0x13b5b6(0x538)];}async[_0xb893b1(0x511)](_0x441fca,_0xe1f8a5){const _0x4c631d=_0xb893b1,{unitID:_0x59fd7d,type:_0x2455c5,blockID:_0x2bf90c}=_0xe1f8a5,_0x3cac77=this[_0x4c631d(0x16c)]()+_0x4c631d(0x3c3)+_0x2455c5+_0x4c631d(0x165)+_0x59fd7d+_0x4c631d(0x3c3)+_0x2bf90c;return(await this[_0x4c631d(0x1a9)][_0x4c631d(0x19d)](_0x3cac77))[_0x4c631d(0x538)];}async[_0xb893b1(0x33c)](_0x2912c6,_0x2a68df){const _0x2617b0=_0xb893b1,{unitID:_0x9b961d,type:_0x333b46,from:_0x5f5bbd,to:_0x1f4d47}=_0x2a68df,_0x1c1c9f=this[_0x2617b0(0x16c)]()+'/'+_0x333b46+_0x2617b0(0x165)+_0x9b961d+'/fetchmissing?from='+_0x5f5bbd+'&to='+_0x1f4d47;return(await this[_0x2617b0(0x1a9)][_0x2617b0(0x19d)](_0x1c1c9f))[_0x2617b0(0x538)];}[_0xb893b1(0x1bd)](){const _0x455834=_0xb893b1;var _0x5ee374;return(_0x5ee374=this['_configService'][_0x455834(0x22b)](_0x1b06ee))!=null?_0x5ee374:this[_0x455834(0x16c)]();}[_0xb893b1(0x16c)](){const _0x2294f3=_0xb893b1;var _0x4258fd,_0x30bc57;const _0x2b8d4f=this[_0x2294f3(0x2f3)][_0x2294f3(0x22b)](_0x408d14),_0x297e58=this[_0x2294f3(0x2f3)]['getConfig'](_0x271aa0);return(_0x30bc57=(_0x4258fd=_0x297e58==null?void 0x0:_0x297e58[_0x2294f3(0x3c0)])!=null?_0x4258fd:_0x2b8d4f)!=null?_0x30bc57:_0xa386f8;}async[_0xb893b1(0x1e0)](_0x25290b,_0x57a4db){const _0x50dd86=_0xb893b1,_0x562e02=_0x50dd86(0x257)+_0x57a4db[_0x50dd86(0x191)]+_0x50dd86(0x165)+_0x57a4db[_0x50dd86(0x386)]+'/resources';return(await this['_httpService'][_0x50dd86(0x19d)](_0x562e02,{'params':{'resourceId':JSON[_0x50dd86(0x2df)](_0x57a4db[_0x50dd86(0x514)])}}))[_0x50dd86(0x538)];}[_0xb893b1(0x291)](){const _0xe3a491=_0xb893b1;throw new Error(_0xe3a491(0x3cc));}[_0xb893b1(0x21c)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x2b8e1a=_0xb893b1;throw new Error(_0x2b8e1a(0x3cc));}[_0xb893b1(0x153)](){const _0x16bccf=_0xb893b1;throw new Error(_0x16bccf(0x3cc));}[_0xb893b1(0x1b9)](){const _0xb3bc31=_0xb893b1;throw new Error(_0xb3bc31(0x3cc));}},_0x3b52c4[_0xb893b1(0x4c0)]=_0x27e37d([_0x41c74b(0x0,_0x58b389[_0xb893b1(0x1f6)]),_0x41c74b(0x1,_0x58b389['Inject'](_0x57b255[_0xb893b1(0x1c9)]))],_0x3b52c4[_0xb893b1(0x4c0)]);var _0x3bfeef=Object[_0xb893b1(0x1bc)],_0x8afa55=Object[_0xb893b1(0x490)],_0x3a5fb1=(_0xab26d8,_0x2b174f,_0x1b1c0f,_0x25c65b)=>{const _0x15179b=_0xb893b1;for(var _0x39c7f1=_0x25c65b>0x1?void 0x0:_0x25c65b?_0x8afa55(_0x2b174f,_0x1b1c0f):_0x2b174f,_0x2ddc4d=_0xab26d8[_0x15179b(0x4d8)]-0x1,_0x1aca38;_0x2ddc4d>=0x0;_0x2ddc4d--)(_0x1aca38=_0xab26d8[_0x2ddc4d])&&(_0x39c7f1=(_0x25c65b?_0x1aca38(_0x2b174f,_0x1b1c0f,_0x39c7f1):_0x1aca38(_0x39c7f1))||_0x39c7f1);return _0x25c65b&&_0x39c7f1&&_0x3bfeef(_0x2b174f,_0x1b1c0f,_0x39c7f1),_0x39c7f1;},_0x167dbc=(_0x56ded9,_0x20441f)=>(_0x43419f,_0x1161ca)=>_0x20441f(_0x43419f,_0x1161ca,_0x56ded9);let _0x15acce=class extends _0x58b389[_0xb893b1(0xf9)]{constructor(_0x19730b,_0x9e7b74,_0x374c31,_0x45c8e9,_0x256b12){const _0x4613d=_0xb893b1;super(_0x19730b,_0x9e7b74,_0x374c31),this['_transformService']=_0x45c8e9,this[_0x4613d(0x482)]=_0x256b12;}['transformUndoRedo'](_0x1ba37a,_0x2fa3ce){const _0x1afa61=_0xb893b1,_0x3a1d0c=this[_0x1afa61(0x104)](_0x1ba37a);if(_0x3a1d0c)try{const _0x446d3e=this[_0x1afa61(0x1a2)](_0x3a1d0c,_0x2fa3ce);this[_0x1afa61(0x296)](_0x1ba37a,_0x446d3e);}catch(_0x2e0e68){this[_0x1afa61(0x482)]['error']('[CollaborationUndoRedoService]',_0x2e0e68),this[_0x1afa61(0x14e)](_0x1ba37a);}const _0x316780=this[_0x1afa61(0x2bc)](_0x1ba37a);if(_0x316780)try{const _0xcc773=this[_0x1afa61(0x1a2)](_0x316780,_0x2fa3ce);this[_0x1afa61(0x1f4)](_0x1ba37a,_0xcc773);}catch(_0x166455){this[_0x1afa61(0x482)][_0x1afa61(0x368)](_0x166455),this['_clearRedo'](_0x1ba37a);}}[_0xb893b1(0x14e)](_0x68a403){const _0x11617d=_0xb893b1,_0x31dc24=this['_getUndoStack'](_0x68a403);_0x31dc24&&(_0x31dc24[_0x11617d(0x4d8)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x54f605){const _0xd5d4db=_0xb893b1,_0x1833b8=this['_getRedoStack'](_0x54f605);_0x1833b8&&(_0x1833b8['length']=0x0,this[_0xd5d4db(0x24f)]());}['_substituteUndoStack'](_0x5b23b5,_0x53fe6f){const _0x1c5fad=_0xb893b1;this[_0x1c5fad(0x208)]['set'](_0x5b23b5,_0x53fe6f),this[_0x1c5fad(0x24f)]();}[_0xb893b1(0x1f4)](_0x5bdfbc,_0xfe1f70){const _0x564272=_0xb893b1;this[_0x564272(0x292)]['set'](_0x5bdfbc,_0xfe1f70),this['_updateStatus']();}[_0xb893b1(0x1a2)](_0x1f5bec,_0x22ab5c){const _0x2a27a4=_0xb893b1,_0x2dae4d=[];let _0x3d0d23=_0x22ab5c,_0x13b1ed=_0x22ab5c;for(let _0x64daea=_0x1f5bec[_0x2a27a4(0x4d8)]-0x1;_0x64daea>=0x0;_0x64daea--){const {unitID:_0x26639d,undoMutations:_0x25ae3f,redoMutations:_0xb76fe1}=_0x1f5bec[_0x64daea],_0x1d6ecd=this[_0x2a27a4(0x18d)][_0x2a27a4(0x23b)](_0x3d0d23,_0x25ae3f),_0x28a1c8=this[_0x2a27a4(0x18d)][_0x2a27a4(0x23b)](_0x13b1ed,_0xb76fe1);if(_0x5e5ab1['isTransformMutationsWithChangesetFailure'](_0x1d6ecd)||_0x5e5ab1['isTransformMutationsWithChangesetFailure'](_0x28a1c8)){this[_0x2a27a4(0x482)][_0x2a27a4(0x368)]('[CollaborationUndoRedoService]',_0x2a27a4(0x32d),_0x1d6ecd,_0x28a1c8);break;}_0x3d0d23=_0x1d6ecd[_0x2a27a4(0x388)],_0x13b1ed=_0x28a1c8['c1Prime'],_0x2dae4d['push']({'unitID':_0x26639d,'undoMutations':_0x1d6ecd[_0x2a27a4(0x23f)],'redoMutations':_0x28a1c8[_0x2a27a4(0x23f)]});}return _0x2dae4d[_0x2a27a4(0x46d)]();}};_0x15acce=_0x3a5fb1([_0x167dbc(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x167dbc(0x1,_0x58b389['ICommandService']),_0x167dbc(0x2,_0x58b389[_0xb893b1(0x4e4)]),_0x167dbc(0x3,_0x5e5ab1[_0xb893b1(0x157)]),_0x167dbc(0x4,_0x58b389['ILogService'])],_0x15acce);class _0x46296f extends _0x58b389[_0xb893b1(0xf8)]{constructor(){const _0x141eb2=_0xb893b1;super(),_0xf1fe43(this,_0x141eb2(0x146)),this[_0x141eb2(0x146)]=_0x4655d9[_0x141eb2(0x47e)](window,_0x141eb2(0x307))['pipe'](_0x4655d9['takeUntil'](this[_0x141eb2(0x11c)]),_0x4655d9['shareReplay'](0x1),_0x4655d9[_0x141eb2(0x36c)](void 0x0));}[_0xb893b1(0x312)](_0x1e01f1,_0x2d7eda,_0x4f4e78=!0x1){const _0x392d92=_0xb893b1,_0x10e60a=new URL(window[_0x392d92(0x129)][_0x392d92(0x288)]);_0x10e60a[_0x392d92(0x12c)][_0x392d92(0x1c2)](_0x1e01f1,_0x2d7eda),_0x4f4e78?window['history']['replaceState']('','',_0x10e60a[_0x392d92(0x540)]()):window['history'][_0x392d92(0x42d)]('','',_0x10e60a[_0x392d92(0x540)]());}[_0xb893b1(0x2cd)](_0x46765d,_0xc4153=!0x1){const _0x43b51d=_0xb893b1,_0x558154=new URL(window[_0x43b51d(0x129)]['href']);_0x558154['searchParams'][_0x43b51d(0x1d0)](_0x46765d),_0xc4153?window[_0x43b51d(0x16d)][_0x43b51d(0x427)]('','',_0x558154[_0x43b51d(0x540)]()):window[_0x43b51d(0x16d)][_0x43b51d(0x42d)]('','',_0x558154[_0x43b51d(0x540)]());}[_0xb893b1(0x237)](_0x53714c){const _0x1149e6=_0xb893b1;var _0x5e21b4;return(_0x5e21b4=new URL(window[_0x1149e6(0x129)][_0x1149e6(0x288)])['searchParams'][_0x1149e6(0x19d)](_0x53714c))!=null?_0x5e21b4:void 0x0;}}var _0x23a4ac=Object['defineProperty'],_0x15c16d=Object[_0xb893b1(0x490)],_0x3c8b59=(_0x252484,_0x53b7ab,_0x2364d3)=>_0x53b7ab in _0x252484?_0x23a4ac(_0x252484,_0x53b7ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2364d3}):_0x252484[_0x53b7ab]=_0x2364d3,_0x4af63c=(_0x401af6,_0x5729ba,_0x2e2a3a,_0x50885f)=>{const _0x40026e=_0xb893b1;for(var _0x317a28=_0x50885f>0x1?void 0x0:_0x50885f?_0x15c16d(_0x5729ba,_0x2e2a3a):_0x5729ba,_0x3ecd68=_0x401af6[_0x40026e(0x4d8)]-0x1,_0x22a585;_0x3ecd68>=0x0;_0x3ecd68--)(_0x22a585=_0x401af6[_0x3ecd68])&&(_0x317a28=(_0x50885f?_0x22a585(_0x5729ba,_0x2e2a3a,_0x317a28):_0x22a585(_0x317a28))||_0x317a28);return _0x50885f&&_0x317a28&&_0x23a4ac(_0x5729ba,_0x2e2a3a,_0x317a28),_0x317a28;},_0xcc721c=(_0x28cdc3,_0x5e9966)=>(_0x4f68ac,_0x5492a9)=>_0x5e9966(_0x4f68ac,_0x5492a9,_0x28cdc3),_0x14126f=(_0x54d2d3,_0x1747c4,_0xd8c5ef)=>_0x3c8b59(_0x54d2d3,_0x1747c4+'',_0xd8c5ef);const _0x319ee2=_0xb893b1(0x4ea);_0x3b52c4[_0xb893b1(0x402)]=class extends _0x58b389[_0xb893b1(0x3fe)]{constructor(_0x2c8232=_0x43c313,_0x290a18,_0x493c3c,_0x33c54a,_0x5020cf){const _0x26d96e=_0xb893b1;super(),this[_0x26d96e(0x28d)]=_0x2c8232,this[_0x26d96e(0x482)]=_0x290a18,this[_0x26d96e(0x508)]=_0x493c3c,this['_injector']=_0x33c54a,this[_0x26d96e(0x2f3)]=_0x5020cf;const {..._0x5cd1ed}=this[_0x26d96e(0x28d)];this[_0x26d96e(0x2f3)][_0x26d96e(0x2c7)](_0x271aa0,_0x5cd1ed);}[_0xb893b1(0x25b)](){const _0x64a12f=_0xb893b1;this[_0x64a12f(0x44b)](),_0x58b389[_0x64a12f(0x3e6)](this[_0x64a12f(0x126)],[[_0x57bda6],[_0x3b52c4[_0x64a12f(0x18c)]],[_0x22ab42]]);}[_0xb893b1(0x10b)](){const _0x40745f=_0xb893b1;_0x58b389[_0x40745f(0x3e6)](this[_0x40745f(0x126)],[[_0x27d9a8]]);}['onRendered'](){const _0x4672f9=_0xb893b1;this[_0x4672f9(0x132)]();}[_0xb893b1(0x44b)](){const _0x2739bc=_0xb893b1;var _0x45b97e,_0x34eb75,_0x2dc0e1,_0xadb069;this[_0x2739bc(0x126)][_0x2739bc(0x2dc)](_0x58b389[_0x2739bc(0x13d)])&&this[_0x2739bc(0x482)][_0x2739bc(0x368)](_0x2739bc(0x435),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2f2f98=[[_0x58b389[_0x2739bc(0x13d)],{'useClass':_0x15acce}],[_0x3b52c4[_0x2739bc(0x11f)]],[_0x15453c],[_0x57b255['HTTPService']],[_0x2272c6,{'useClass':_0x46296f}],[_0x3b52c4[_0x2739bc(0x384)]],[_0x3b52c4['LocalCacheService']],[_0x57b255[_0x2739bc(0x2ee)]],[_0xc29e66],[_0x5dda6a],[_0x3f6990],[_0x195ff7],[_0x291110],[_0x838442],[_0x5efdb3],[_0x22ab42],[_0x383a5a,{'useClass':(_0x34eb75=(_0x45b97e=this[_0x2739bc(0x28d)])==null?void 0x0:_0x45b97e[_0x2739bc(0x27c)])!=null?_0x34eb75:_0x3b52c4[_0x2739bc(0x374)]}],[_0x57b255[_0x2739bc(0x112)],{'useClass':_0x57b255[_0x2739bc(0x116)]}],[_0x5e5ab1[_0x2739bc(0x37e)],{'useClass':_0x3b52c4[_0x2739bc(0x4c0)]}],[_0x58b389[_0x2739bc(0x4eb)],{'useClass':_0x3b52c4[_0x2739bc(0x29c)]}],[_0x1031ad['IImageIoService'],{'useClass':_0x3b52c4[_0x2739bc(0x38e)]}],[_0x3b52c4[_0x2739bc(0x20c)]],[_0x3b52c4['DataLoaderController']],[_0x3b52c4[_0x2739bc(0x27e)]],[_0x27d9a8],[_0x57bda6]];(_0x2dc0e1=this['_config'])!=null&&_0x2dc0e1[_0x2739bc(0x323)]&&_0x2f2f98[_0x2739bc(0x428)]([_0x8f0d7b,{'useClass':_0x300a07}]),_0x2f2f98=_0x58b389[_0x2739bc(0x531)](_0x2f2f98,(_0xadb069=this[_0x2739bc(0x28d)])==null?void 0x0:_0xadb069[_0x2739bc(0x18e)]),_0x2f2f98[_0x2739bc(0x3b7)](_0x26757f=>this['_injector'][_0x2739bc(0x510)](_0x26757f)),this[_0x2739bc(0x47b)]();}[_0xb893b1(0x132)](){const _0x1b29ed=_0xb893b1;this[_0x1b29ed(0x14b)](this[_0x1b29ed(0x508)][_0x1b29ed(0x119)](_0x58b389[_0x1b29ed(0x441)][_0x1b29ed(0x2d8)],[_0x4f4454])),this[_0x1b29ed(0x14b)](this[_0x1b29ed(0x508)][_0x1b29ed(0x119)](_0x58b389[_0x1b29ed(0x441)][_0x1b29ed(0x2db)],[_0x3b6e5d]));}[_0xb893b1(0x47b)](){const _0x16b922=_0xb893b1;var _0x23f9e2,_0x30bb11;this[_0x16b922(0x126)]['get'](_0x57b255[_0x16b922(0x1c9)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x57b255[_0x16b922(0x4f8)]({'maxParallel':0x6})}),this['_injector']['get'](_0x838442),(_0x23f9e2=this[_0x16b922(0x28d)])!=null&&_0x23f9e2['enableOfflineEditing']||this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x3b52c4[_0x16b922(0x2ff)])[_0x16b922(0x22a)](),(_0x30bb11=this['_config'])!=null&&_0x30bb11[_0x16b922(0x4ed)]&&this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x291110),this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x3b52c4[_0x16b922(0x20c)]),this['_injector'][_0x16b922(0x2dc)](_0x3b52c4[_0x16b922(0x27e)])&&this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x3b52c4[_0x16b922(0x27e)]);}},_0x14126f(_0x3b52c4[_0xb893b1(0x402)],_0xb893b1(0x2f2),_0x319ee2),_0x3b52c4['UniverCollaborationClientPlugin']=_0x4af63c([_0x58b389[_0xb893b1(0x3a9)](_0x5e5ab1[_0xb893b1(0x4b0)]),_0xcc721c(0x1,_0x58b389[_0xb893b1(0x46a)]),_0xcc721c(0x2,_0x1c7683['IRenderManagerService']),_0xcc721c(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0xcc721c(0x4,_0x58b389['IConfigService'])],_0x3b52c4[_0xb893b1(0x402)]),_0x3b52c4['AUTHZ_URL_KEY']=_0x24fd15,_0x3b52c4[_0xb893b1(0x2b4)]=_0x8b953d,_0x3b52c4[_0xb893b1(0x21f)]=_0x4766f5,_0x3b52c4[_0xb893b1(0x108)]=_0x512cbd,_0x3b52c4['CollaborationStatusDisplay']=_0x21b65d,_0x3b52c4[_0xb893b1(0x43c)]=_0x5efdb3,_0x3b52c4[_0xb893b1(0x3e3)]=_0x407e6e,_0x3b52c4[_0xb893b1(0x11d)]=_0x3ceb27,_0x3b52c4['ICollaborationSocketService']=_0x383a5a,_0x3b52c4[_0xb893b1(0x37b)]=_0x2272c6,_0x3b52c4[_0xb893b1(0x3b3)]=_0x2c3e4f,_0x3b52c4[_0xb893b1(0x4ba)]=_0x42bb89,_0x3b52c4[_0xb893b1(0x3df)]=_0x1f388f,_0x3b52c4[_0xb893b1(0x495)]=_0x4e1696,_0x3b52c4['SNAPSHOT_SERVER_URL_KEY']=_0x408d14,_0x3b52c4[_0xb893b1(0x454)]=_0x1b06ee,_0x3b52c4[_0xb893b1(0x4f5)]=_0x442957,_0x3b52c4[_0xb893b1(0x206)]=_0x5bcf49,_0x3b52c4[_0xb893b1(0x34b)]=_0x46296f,_0x3b52c4[_0xb893b1(0x289)]=_0x2039f7,_0x3b52c4[_0xb893b1(0x329)]=_0x5355af,Object[_0xb893b1(0x1bc)](_0x3b52c4,Symbol[_0xb893b1(0x1ff)],{'value':'Module'});}));