@univerjs-pro/collaboration-client 0.4.1-nightly.202410271605 → 0.4.1-nightly.202410281606

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 _0x3006(){const _0x2621e3=['_unitID','serializeRangeWithSheet','SUBMIT_CHANGESET','slice','&assign=','data','send','unknown','_cachedData','state$','_updateURLWithCurrentState','disableLocalCache','state','userID','_registerRenderDependencies','debounceTime','Shape','_onFetchMissResult','IMessageService','parse','_hideTimer','allowed','Tools','getCoordByCell','_clearCollaborationTimeoutTimer','SnapshotService','signUrlServerUrl','saveOfflineData','values','LIVESHARE_TERMINATE','getCurrent','flatMap','fetchMissingChangesets','Error','confirm','getUnitType','\x20-\x20','concat','_sheetSkeletonManagerService','collabStatus.synced','NOT_FOUND','_applyRemoteChangeset','set','[SyncedState]:\x20received\x20rejection.','c2Prime','_snapshotService','round','[CollaborationUndoRedoService]','bind','status','UniverNetwork','0\x200\x2016\x2016','_document','_remoteChangesetQueue','DataLoaderController','ISnapshotServerService','YUUMI_UNABLE_LOAD_URL','_transformUndoRedoStack','BehaviorSubject','getCurrentUnitForType','collab-rect-range-','transform','exhaustSavingTask','_event$','HTTPRequest','_initEventListeners','JOINING','_saveTaskMap','_resendWithTimeout','getOwnPropertySymbols','delete','collaboration-session-retry','PERMISSION_DENIED','_drawAnchor','univer-online','executeCommand','27014QgYhuW','YUUMI_URL_COL_OUT_OF_RANGE','updateOfflineData','contains','getMember','rxjs','_compressMutationService','parseChangesetToProtocol','LIVESHARE_FETCH_OPERATIONS','getConfig','unitID','equals','isPermissionRej','VIEW_MAIN','UniverEngineFormula','next','object','getValue','resolve','DocStateChangeManagerService','/universer-api/comb','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_initRequestHeader','_cursorShapes','RegularPolygon','list','YUUMI_SUBSCRIPTION_NOT_FOUND','updatePermissionPoint','_unlockTransition','SheetPermissionInitController','workbook','_setupBeforeClosingHandler','getOffsetConfig','override','json','selection','_eventUnsubscribe','call','_name','deleteCollaborator','univer-offline','getSheetObject','verdancy600','_sendHeartbeat','89760zTvPEW','5209605JBDGtI','/universer-api/authz','updateCursorEvent','_init','clear','_initUnitPermissionChange','range','InsertRowCommandId','_socket$','_type','getUndoRedoMutationParamsCache','resourceIDs','_config','currentTheme$','UniverCore','session.room-full','collabStatus.conflict','_transformService','replaceTextRanges','assign','InsertColCommandId','_socketService','collaMsg','addObject','putCollaborators','concatMap','SYNCED','extend','_messageService','getCollabEntity','_undoRedoService','_hover','displayName','_refreshCollabCursors','_transformUndoredo','number','Warning','_collaborationPaused','dispose','_lockTransition','IRemoteInstanceService','COLLAB_WEB_SOCKET_URL','image/jpg','addObjects','getFocusedUnit','_render','initWorkbookPermissionChange','awaitingChangeset','_clearScheduledTask','@univerjs/network','_saveCache','onRemoteChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','_listenToOfflineEvent','getRelativeToViewportCoord','fetching\x20missing\x20changesets\x20from\x20','transformUndoRedo','onPointerEnter$','UPDATE_CURSOR','_id','_onRemoteChangeset','pipe','Vector2','IDLE','_shouldReportTelemetry','COLLAB_SUBMIT_CHANGESET_URL','MoveRangeCommandId','_initModules','INVALID_ARGUMENT','@univerjs/telemetry','MSG_FOR_ERROR','pluginName','body','_roomMembers','_handleHover','_updateState','fromEventSubject','_handleJoinEvent','UniverCollaborationClientPlugin','_renderManagerService','IRenderManagerService','PENDING','_waitForHeartbeatResponse','COMPRESS_MUTATION_APPLY','registerRenderModule','SUCCUSS','_resendTimer','7DXcqOr','LOCAL_CACHE_INTERVAL_KEY','_lastPointer','_logService','patch','snapshotServerUrl','CollaborationSocketService','getParam','sheetId','_commandService','createInstance','JOIN','editing\x20status\x20changed\x20to','_getSendChangesetTimeout','_handleHeartbeatEvent','_onRemoteRejected','uploadFileServerUrl','RefRangeService','_transitionLocked','offline','_unitStatus','17417AmaRzh','addImageSourceCache','_sessionStatus$','onlineStatusIcon','height','OTHER_CLIENTS_EDITING','evenodd','listRoles','closePath','@univerjs/drawing','RemoveColCommandId','ImageUploadStatusType','disposeWithMe','ONLINE','session','/-/object/list','url','_clearHeartbeatTimer','_session','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CollaborationSession','_fetchMissChangesets','[DataLoaderController]','DocSkeletonManagerService','src','fetchThroughInterceptors','_hovered','Plugin','ICommandService','getCurrentSelections','off-line-single_clip0_910_343','SNAPSHOT_INVALID_SNAPSHOT','@univerjs/sheets-ui','unitId','onRemoteAck','_startSheetCollabCursor','HttpExport','_docSkeletonManagerService','generateRandomId','[CollaborationEntity]','cursorInfo','collaboration.single-unit.warning','Subject','univer-pro.collaboration-client-socket-service','UniverDrawing','getUniverSheetInstance','NO_OTHER_CLIENTS_EDITING','ImageIoService','_clearRedo','shareReplay','getSheetBlock','reduce','result','selections','VIEWPORT_KEY','_scheduleTimestamp','drawWith','searchParams','_unitOnClients','ERROR_IMAGE','_showConflictNotification','_submitChangeset','indexOf','getViewport','failed\x20to\x20apply\x20missed\x20changesets!','_updateCollabCursors','_sheetTransformSelectionsService','_incrementRevisionNumber','UniverDesign','transformByState','socket\x20open.','_drawTextRange','onTransformIME','@univerjs/docs-ui','_httpService','_telemetryService','localeService','textEncoder','headers','svg','unshift','children','change$','image/bmp','UNIVER_UNKNOWN','defIds','INTERNAL_ERROR','permission.title','COLLAB_SUBMIT_CHANGESET_URL_KEY','_waitCount','activeSheet$','NOT_COLLAB','0\x200\x2017\x2016','UnitSnapshot','getImageSourceCache','image/gif','_loadSheet','purple300','current','params','getCollabCursors$','touchDependencies','transformIMECache','every','status$','RevisionService','IUniverInstanceService','AWAITING','_getRedoStack','collaborators','_entities','setItem','bottom','getTypeOfUnitDisposed$','_roomMembers$','cmd','transformMutation','sheetID','DocCollaborationEntity','some','_createHandler','not_collab','runRefRangeMutations','Workbook','UniverDocsUi','Optional','switchMap','_joinRoom','onMissedChangesetFetched','getMergeData','CollaborationController','_substituteRedoStack','388NSmdzw','UPDATE_PERMISSION_OBJ','getCurrentUser','target','RECT','USERS_ENTER','appendMutation','_state','_transformRemoteChangesetByIMECache','COMPLETION_FINISHED','SnapshotServerOverHTTPService','React','rev','blue400','_substituteUndoStack','shouldCloseConn','_ws','DocSelectionManagerService','IUndoRedoService','CommentService','@univerjs/core','length','reject','url(#off-line-single_clip0_910_343)','_replaceFileID','startTime','startRow','init','handleDeleteRangeMoveLeft','open$','black','ALREADY_EXISTS','MUTATION','HTTPService','_getCtorByUniverType','WebSocketService','_entityInit$','_schedule','_setupSubUnitSync','close','getRangePointData','IImageIoService','LocalUndoRedoService','_configService','getAttachHeader','transformSelections','SheetCollabCursorShape','getColor','onlineStatus','column','MessageType','fill','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/sheets','_backgroundColor','OffLineSingle','telemetry\x20info\x20is\x20not\x20initialized','onPointerMove$','_assignedColors','isTransformMutationFailure','_docSkeleton','toggleOnline','UniverEngineRender','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','visibilitychange','updateCollaborator','IConfigService','LICENSE_IMPORT_SIZE_EXCEEDED','[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.','title','APPLY_DUPLICATED','createIdentifier','href','enableOfflineEditing','useRef','RECV','TOO_MANY_REQUESTS','_updateLocalCache','LOCAL_CACHE_INTERVAL','_throwTelemetryCollaborationNewChangeset','/object','collabStatus.notCollab','_initCloseConn','AWAITING_WITH_PENDING','eventID','fromCollab','[CollaborationSession]','useObservable','LocalCacheService','LIVESHARE_NEW_HOST','measureText','subunit','_localStorageService','/allowed','isArray','fillText','_createInitialState','connectInjector','asObservable','createCollaborator','arc','/object/','{fileID}','WorkbookEditablePermission','setCurrentUser','submit\x20changeset\x20error!','OnLineSingle','_refRangeService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','top','_initStatusListener','[PendingState]:\x20received\x20acknowledgement.','Rectangle','from','AUTHZ_URL_KEY','reqId','currentColor','_ensureSubject','SNAPSHOT_HAS_BEEN_REMOVED','loadOfflineData','setConfig','_clearLocalCache','mutations','Tooltip','unsubscribe','_online','[OfflineState]:\x20received\x20acknowledgement.','LIVESHARE_OPERATION','startColumn','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','COMMENT_UPDATE','loginUrlKey','getRenderById','deepClone','_transformPreviousActiveRange','objects','fetchMiss','UUID','_getSignURL','_themeService','_updateLocalCursor','_http','responseType','conflict.title','ICollaborationSocketService','DocIMEInputManagerService','setTimeout','toDisposable','\x0aCurrent:\x20','_onJoinRoomEvent','EmptyMutation','APPLY_PERMISSION_DENIED','ThresholdInterceptorFactory','onlyLocal','CHANGESET_REVISION_CONFILICT','APPLY_NON_SEQUENTIAL_REVISION','UNKNOWN_CMD','/resources','session.collaboration-timeout','error$','_cursorInfo$','POST','onCommentUpdate','_selfUnitIDs','@univerjs/docs','\x20in\x20_schedule.','saveSheetBlock','show','_onLocalMutation','serializeCombRequest','collabCursorState$','SheetCollaborationEntity','_createSocket','_anchor','CompressMutationService','on-line-single_clip0_910_349','assignAColorForMemberID','InsertRangeMoveDownCommandId','translate(.97)','LOGIN_URL_KEY','CollaborationStatus','_onRecvEvent','SetWorksheetActivateCommand','[CollaborationSessionService]','textRanges','originalMeta','_docTransformSelectionsService','DependentOn','_retryCount','_singleActiveUnitService','message$','_sendingTimer','@univerjs/engine-render','_textBubble','collabWebSocketUrl','_imageSourceCache','handleIRemoveRow','mergeOverrideWithDependencies','Undefined','isTransformMutationsWithChangesetFailure','setParam','getRoom','enableAuthServer','unitId\x20is\x20not\x20found','_tryEnsureSocket','onReady','_getMergeRange','_removeRoom','_removeCollabCursors','synced','add','_initMergeInterceptor','_colorIndex','HEARTBEAT_TIMEOUT_KEY','roomMembers','commentUpdateEvent','getCellPositionByOffset','_getUploadFileURL','close$','_socketReady','loadSheet','createElement','ThemeService','_timeoutTimer','@univerjs/design','_draw','_onUserLeave','COLLAB_WEB_SOCKET_URL_KEY','_disableEditing','#fff','cursorInfo$','USERS_LEAVE','_scene','_acknowledgedAwaitingChangeset','filter','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','_scheduleCollaborationTimeoutTimer','UNRECOGNIZED','UnitEmbedded','_snapshotServerService','univer-online-status','_injector','_rescheduleHeartbeat','_urlService','_memberService','_docTransformIMECacheService','_permissionService','18dYbvXm','WebURLService','_anchorDot','getUnitId','NodePositionConvertToCursor','string','handleMoveRange','setActiveRange','function','isTransformMutationsWithChangesetSuccess','has','parseProtocolChangeset','transformRemoteChangeset','univer-pro.collaboration-client.single-active-unit-service','toStringTag','stopTime','10305fUptmF','/block/','CollaborationEvent','_replayCachedMutations','@univerjs/rpc','onSendChangeset','univer-online-status-icon','_transformIMECache','gold400','_checkMissing','154ZVKUPX','encodeURIComponent','idSuffix','clearTimeout','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','infoRsp','randomUUID','xlink:href','onSyncEditingCollabCursor','fromEvent','collaboratorID','getActiveRange','_queuedRemoteChangesets','on-line-single','_handleEvent','code','name','_scheduleHeartbeat','_collabCursorController','_transformSelections','OFFLINE','startsWith','defs','_disabled','_getSnapshotAPIPrefix','fillStyle','SetTextSelectionsOperation','UNIVER_SHEET','lineTo','baseRev','liveShareNewHost','all','isInternalEditorID','APPLY_REVISION_CONFILICT','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_syncEditingCollabCursorService','m1Prime','_socketMessageSubscription','encode','_retryConnectingTimer','rng','LICENSE_EXPORT_SIZE_EXCEEDED','toRgbString','CollaborationEntity','IAuthzIoService','unit-cache-','memberID','toggleOffline','readAsDataURL','docStateChange$','_getCurrentRevision','put','engine','forwardRef','_instanceService','incrementRevOfUnit','awaiting','storage','FETCH_MISSING','hidden','AuthzIoHttpService','delay','_onRemoteACK','_getLoginPath','pushState','hovered','_getDownloadEndpointURL','conflict.content','_changesetReqId','complete','font','uni.network.url-service','CONFLICT','_telemetryInfo','_getAPIPrefix','sheets','_cursor','syncEditingCollabCursor','catch','/collaborator','setWaitCount','subscribeEvent','_localeService','online','path','getImage','[CollaborationState]:\x20apply\x20error!','_resendTimeout','getUnhiddenWorksheets','_onCombEvent','FAIL','_getSaveTimeout','ColorKit','getTime','IPermissionService','_sessions','clipPath','color','snapshot','1752yZPwPI','getInterceptPoints','SheetSkeletonManagerService','saveSnapshot','requireSession','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','toString','1em','mapTo','_onOffline','text','editingUnit','off-line-single','resize','connection\x20error','_HTTPService','_collaborationTimeoutTimer','then','TEXT_RANGE_LAYER_INDEX','requestParams','transformMutationsWithChangeset','getCollabEntity$','getAncestorScale','_color','685775sHelNt','_removeClearOtherTimer','row','hide','getMemberID','updateMember','...','onTransformRemoteChangesetByIMECache','onTransformChange$','/universer-api/snapshot','_updateSubUnitFromURLParams','BASE64','urlChange$','entries','ILogService','_sender','_onConnectionFailed','?size=','_context','sessionStatus$','_change$','prototype','CollaborationSessionService','_socket','Rect','createSocket','sid','_toggleOnline','permission.content','div','8vtNnmL','getUnitStatus$','UNDEFINED','visibilityState','PERMISSION_REJ','sequenceExecute','_getAnchorBounding','collaboration.closeRoom','stringify','attrs','onCommandExecuted','getUnit','onMouseMove','getWorkbookSelections','take','subUnitId','onRemoteRej','rxjs/operators','_collaborationController','getSkeleton','_revisionService','_exhaustRemoteChangesetQueue','_sendHeartbeatTimer','/unit/','save\x20fail\x20reason\x20is\x20','@univerjs-pro/license','ERROR_EXCEED_SIZE','ENSURE_SNAPSHOT_EXECUTION','[OfflineState]:\x20received\x20changeset.','ILocalStorageService','restore','_changesetSessionId','hasOwnProperty','&to=','@univerjs/ui','key','reconnect','2561718HOUbEr','joinRsp','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docSyncEditingCollabCursorService','_clearUndo','FETCH_MISS','collabStatus.offline','CommandType','LICENSE_DISTRO_REJECTED','CHANGESET_ACK','push','_handleLeaveEvent','LICENSE_MAX_UNITS_EXCEEDED','_handler','saveImage','onRemoteRetry','Injector','deserializeToCombResponse','_onCursorDelete','univerjs-icon\x20univerjs-icon-','_tryReconnect','CHANGESET_SHOULD_RETRY','INotificationService','getActiveSheet','/role','Disposable','react','_onCursorUpdate','COMPRESS_MUTATION_SEND','_onRemoteRetry','\x20to\x20','UniverCollaboration','INGEST','random','newCsEvent','UniverCollaborationPlugin','registerHTTPInterceptor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','LEAVE','onRendered','@univerjs-pro/collaboration','_cursors','pending','FileId','throttleTime','_transformStack','registerComponent','_decreaseWaiting','ImageSourceType','SNAPSHOT_SERVER_URL_KEY','map','roomMembers$','split','objectType','getOwnPropertyDescriptor','now','_getUndoStack','_initStatusComponent','dispose$','_labelPosition','post','_scheduleSaving','className','takeUntil','sessionStatus','forEach','registerRefRange','transformChangesets','_beforeCloseService','HELLO','MergeInterceptorFactory','debounce','getSheetId','b64DecodeUnicode','addEventListener','isActive','_awaitingChangeset','c1Prime','_shapes','UniverLicense','APPLY_REJECT','findNodePositionByCharIndex','size','_toggleOffline','SetDocZoomRatioOperation','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','handleInsertRangeMoveDown','_clearOtherTimers','_univerInstanceService','removeParam','_candidateSocket','_commentUpdate$','[CollaborationSessionService]:\x20socket\x20error','@univerjs/engine-formula','NodePositionConvertToRectRange','use','HttpImport','_startTelemetryCollaborationNewChangeset','M0\x200H16V16H0z','setAlpha','none','getTypeOfUnitAdded$','_initCommandExecutedListener','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','mapDocumentTypeToUniverType','HEADER_MENU','clearInterval','_onRefRangeChange','revision','UniverIcon','unload','location','actions','handleInsertRow','RichTextEditingMutation','auth.needGotoLoginAlert','MemberService','SessionStatus','UniverInstanceType','symbol','_getSheetObject','_commentService','changesets','routeKey','HEARTBEAT','interceptor','copyFileMeta','subscribe','image/png','RxDisposable','save','IURLService','getCurrentRevOfUnit','DeleteRangeMoveUpCommandId','loadDoc','_range','image/jpeg','newValue','_startDocCollabCursor','type','UNIVER_PROJECT','find','makeDirty','_updateStatus','UNIVER_SLIDE','DesktopCollaborationStatusDisplayController','duration','_pendingMutations','min','?url=','SheetsSelectionsService','event$','PSEUDO_FETCH_MISSING_RESULT','UNIVER_DOC','_userManagerService','_onConnectionOpen','/-/object/-/batch_allowed','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','history','_getAPIPrefixPath','getItem','_state$','url(#on-line-single_clip0_910_349)','Univer','useCallback','IBeforeCloseService','triggerDblclick','append','getUnitOnRev','onMissingChangesets','_scheduleClearOtherTimer','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','handleDeleteRangeMoveUp','toLowerCase','getDeserializedSheetBlock','liveShareOperation','ranges','setShapeProps','/rev/','_colorAssignService','_loadDoc','combineLatest','downloadEndpointUrl','_docStateChangeManagerService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_startCollaboration','with','LocaleService','enableSingleActiveInstanceLock','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','registerOnClose','CollaborationStatusDisplay','_stopTelemetryCollaborationNewChangeset','session.connection-failed','_notificationService','merge','colorChannel1','_onConflict','collaboration-client.offline-data-not-saved','EffectRefRangId','removeMember','_createInitialStateImpl','onStarting','_status$','_heartbeatTimer','CHANGESET_REJ','collabStatus.fetchMiss','TEXT','joinEvent','create','error','_members','icon','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','resend','width','_executeRemoteChangeset','_send','substring','transformStack\x20failed!','closeSession','csRejEvent','IHTTPImplementation','SHOULD_CLOSE_CONN','focused$','_localCacheService','currentSkeleton$','_collaborationSessionService','Unknown\x20user','COLORS','saveChangeset','setUndoRedoMutationParamsCache','reverse','getSheetBySheetId','method','tag','_collabSessionService','_uiPartsService','_onUserJoin','debug','_clearTimeoutTimer','ERROR_IMAGE_TYPE','doc.mutation.rich-text-editing','url(#$1','YUUMI_RATE_OVER_LIMIT','UniverTelemetry','onTransformSelections','isTransformChangesetsSuccess','leaveEvent','DeleteRangeMoveLeftCommandId','m2Prime','LIVESHARE_REQUEST_HOST','ITransformService','SetSelectionsOperation','_drawRectRange','trim','defineProperty','Inject','get','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_URL_KEY','ReplaySubject','compose','propertyIsEnumerable','getLatestCsReqIdBySid'];_0x3006=function(){return _0x2621e3;};return _0x3006();}function _0xa224(_0xfb20fa,_0x3885b7){const _0x3006bf=_0x3006();return _0xa224=function(_0xa2248e,_0x22414c){_0xa2248e=_0xa2248e-0x1c1;let _0x37a378=_0x3006bf[_0xa2248e];return _0x37a378;},_0xa224(_0xfb20fa,_0x3885b7);}(function(_0x25c1b1,_0x41c942){const _0x531bcd=_0xa224,_0x1b420a=_0x25c1b1();while(!![]){try{const _0x168631=parseInt(_0x531bcd(0x4f6))/0x1*(parseInt(_0x531bcd(0x22e))/0x2)+parseInt(_0x531bcd(0x23e))/0x3*(-parseInt(_0x531bcd(0x57a))/0x4)+parseInt(_0x531bcd(0x2c4))/0x5+-parseInt(_0x531bcd(0x307))/0x6*(parseInt(_0x531bcd(0x4e1))/0x7)+-parseInt(_0x531bcd(0x2e2))/0x8*(-parseInt(_0x531bcd(0x48a))/0x9)+parseInt(_0x531bcd(0x489))/0xa*(-parseInt(_0x531bcd(0x248))/0xb)+parseInt(_0x531bcd(0x2ac))/0xc*(parseInt(_0x531bcd(0x45d))/0xd);if(_0x168631===_0x41c942)break;else _0x1b420a['push'](_0x1b420a['shift']());}catch(_0x1158ec){_0x1b420a['push'](_0x1b420a['shift']());}}}(_0x3006,0x46e19),function(_0x4abaa5,_0x247027){const _0x4c9e6b=_0xa224;typeof exports=='object'&&typeof module<'u'?_0x247027(exports,require(_0x4c9e6b(0x58e)),require(_0x4c9e6b(0x462)),require(_0x4c9e6b(0x2f3)),require(_0x4c9e6b(0x217)),require(_0x4c9e6b(0x304)),require(_0x4c9e6b(0x4bb)),require('@univerjs-pro/collaboration'),require('@univerjs/telemetry'),require(_0x4c9e6b(0x53f)),require(_0x4c9e6b(0x5af)),require(_0x4c9e6b(0x1f7)),require(_0x4c9e6b(0x1db)),require(_0x4c9e6b(0x4ff)),require(_0x4c9e6b(0x365)),require(_0x4c9e6b(0x516)),require(_0x4c9e6b(0x321)),require(_0x4c9e6b(0x242)),require(_0x4c9e6b(0x2fb))):typeof define==_0x4c9e6b(0x236)&&define['amd']?define(['exports',_0x4c9e6b(0x58e),_0x4c9e6b(0x462),_0x4c9e6b(0x2f3),'@univerjs/design',_0x4c9e6b(0x304),_0x4c9e6b(0x4bb),_0x4c9e6b(0x32f),_0x4c9e6b(0x4cf),'@univerjs/docs-ui',_0x4c9e6b(0x5af),'@univerjs/engine-render',_0x4c9e6b(0x1db),_0x4c9e6b(0x4ff),_0x4c9e6b(0x365),_0x4c9e6b(0x516),_0x4c9e6b(0x321),'@univerjs/rpc',_0x4c9e6b(0x2fb)],_0x247027):(_0x4abaa5=typeof globalThis<'u'?globalThis:_0x4abaa5||self,_0x247027(_0x4abaa5['UniverCollaborationClient']={},_0x4abaa5[_0x4c9e6b(0x498)],_0x4abaa5[_0x4c9e6b(0x462)],_0x4abaa5[_0x4c9e6b(0x462)]['operators'],_0x4abaa5[_0x4c9e6b(0x53a)],_0x4abaa5['UniverUi'],_0x4abaa5[_0x4c9e6b(0x443)],_0x4abaa5[_0x4c9e6b(0x326)],_0x4abaa5[_0x4c9e6b(0x3fd)],_0x4abaa5[_0x4c9e6b(0x572)],_0x4abaa5['UniverSheets'],_0x4abaa5[_0x4c9e6b(0x5b8)],_0x4abaa5['UniverDocs'],_0x4abaa5[_0x4c9e6b(0x522)],_0x4abaa5[_0x4c9e6b(0x46b)],_0x4abaa5['UniverSheetsUi'],_0x4abaa5[_0x4c9e6b(0x585)],_0x4abaa5['UniverRpc'],_0x4abaa5[_0x4c9e6b(0x356)]));}(this,function(_0x70db69,_0x58174a,_0x1678b1,_0x5ab054,_0x2738af,_0x130918,_0x15e0bb,_0x582bb5,_0x248260,_0x19fc97,_0x46ce2c,_0x438301,_0xb2a344,_0x3fc772,_0x5e38e3,_0x3f7d1a,_0x2f3423,_0x49330c,_0x544def){'use strict';const _0x43a61c=_0xa224;var _0x1cde1e=Object['defineProperty'],_0x3799f2=(_0x30ea0c,_0x407bff,_0x5bd306)=>_0x407bff in _0x30ea0c?_0x1cde1e(_0x30ea0c,_0x407bff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bd306}):_0x30ea0c[_0x407bff]=_0x5bd306,_0x4b178e=(_0xe5a66,_0x59cd16,_0x4fd6dd)=>_0x3799f2(_0xe5a66,typeof _0x59cd16!=_0x43a61c(0x37f)?_0x59cd16+'':_0x59cd16,_0x4fd6dd);const _0x55c873='SNAPSHOT_SERVER_URL_KEY',_0x138034=_0x43a61c(0x2cd),_0x586ede=_0x43a61c(0x40c),_0x34edd4='SEND_CHANGESET_TIMEOUT',_0xfd5edc=_0x43a61c(0x4b3),_0x44cba5=_0x43a61c(0x4be),_0x581f57='HEARTBEAT_INTERVAL',_0x38ea5f='HEARTBEAT_TIMEOUT',_0x57d96='RETRY_CONNECTING_MAX_COUNT',_0x2e59f5=_0x43a61c(0x5c8),_0x265b44=_0x43a61c(0x4cb),_0x38fda5=_0x43a61c(0x471),_0x4a64c9=_0x43a61c(0x1ea),_0x14f2e9='/universer-api/oidc/authpage';var _0x1a4391=(_0x1c22fe=>(_0x1c22fe[_0x1c22fe[_0x43a61c(0x2e4)]=0x0]=_0x43a61c(0x2e4),_0x1c22fe[_0x1c22fe['OK']=0x1]='OK',_0x1c22fe[_0x1c22fe['INTERNAL_ERROR']=0x2]=_0x43a61c(0x54c),_0x1c22fe[_0x1c22fe[_0x43a61c(0x459)]=0x3]='PERMISSION_DENIED',_0x1c22fe[_0x1c22fe[_0x43a61c(0x439)]=0x4]='NOT_FOUND',_0x1c22fe[_0x1c22fe['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x1c22fe[_0x1c22fe[_0x43a61c(0x599)]=0x6]=_0x43a61c(0x599),_0x1c22fe[_0x1c22fe[_0x43a61c(0x4ce)]=0x7]=_0x43a61c(0x4ce),_0x1c22fe[_0x1c22fe[_0x43a61c(0x5c6)]=0x8]='TOO_MANY_REQUESTS',_0x1c22fe[_0x1c22fe[_0x43a61c(0x583)]=0x9]=_0x43a61c(0x583),_0x1c22fe[_0x1c22fe[_0x43a61c(0x1d1)]=0x1389]=_0x43a61c(0x1d1),_0x1c22fe[_0x1c22fe['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x43a61c(0x515),_0x1c22fe[_0x1c22fe[_0x43a61c(0x5f0)]=0x1772]=_0x43a61c(0x5f0),_0x1c22fe[_0x1c22fe[_0x43a61c(0x2fd)]=0x1773]=_0x43a61c(0x2fd),_0x1c22fe[_0x1c22fe[_0x43a61c(0x357)]=0x1b59]='APPLY_REJECT',_0x1c22fe[_0x1c22fe['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x43a61c(0x1d2),_0x1c22fe[_0x1c22fe[_0x43a61c(0x26a)]=0x1b5b]=_0x43a61c(0x26a),_0x1c22fe[_0x1c22fe[_0x43a61c(0x1ce)]=0x1b5c]=_0x43a61c(0x1ce),_0x1c22fe[_0x1c22fe[_0x43a61c(0x5c0)]=0x1b5d]=_0x43a61c(0x5c0),_0x1c22fe[_0x1c22fe['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1c22fe[_0x1c22fe[_0x43a61c(0x313)]=0x2329]=_0x43a61c(0x313),_0x1c22fe[_0x1c22fe[_0x43a61c(0x472)]=0x232a]=_0x43a61c(0x472),_0x1c22fe[_0x1c22fe[_0x43a61c(0x5bd)]=0x232b]=_0x43a61c(0x5bd),_0x1c22fe[_0x1c22fe[_0x43a61c(0x272)]=0x232c]=_0x43a61c(0x272),_0x1c22fe[_0x1c22fe[_0x43a61c(0x30f)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x1c22fe[_0x1c22fe[_0x43a61c(0x449)]=0x2711]=_0x43a61c(0x449),_0x1c22fe[_0x1c22fe[_0x43a61c(0x45e)]=0x2712]=_0x43a61c(0x45e),_0x1c22fe[_0x1c22fe[_0x43a61c(0x3fc)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1c22fe[_0x1c22fe[_0x43a61c(0x477)]=0x2714]=_0x43a61c(0x477),_0x1c22fe[_0x1c22fe[_0x43a61c(0x224)]=-0x1]=_0x43a61c(0x224),_0x1c22fe))(_0x1a4391||{}),_0x5f4ecc=(_0x3dd041=>(_0x3dd041[_0x3dd041[_0x43a61c(0x54a)]=0x0]='UNIVER_UNKNOWN',_0x3dd041[_0x3dd041[_0x43a61c(0x3a1)]=0x1]=_0x43a61c(0x3a1),_0x3dd041[_0x3dd041[_0x43a61c(0x264)]=0x2]='UNIVER_SHEET',_0x3dd041[_0x3dd041[_0x43a61c(0x398)]=0x3]=_0x43a61c(0x398),_0x3dd041[_0x3dd041[_0x43a61c(0x394)]=0x4]=_0x43a61c(0x394),_0x3dd041[_0x3dd041[_0x43a61c(0x224)]=-0x1]=_0x43a61c(0x224),_0x3dd041))(_0x5f4ecc||{}),_0x50cae9=(_0x2453ef=>(_0x2453ef[_0x2453ef[_0x43a61c(0x1d3)]=0x0]=_0x43a61c(0x1d3),_0x2453ef[_0x2453ef[_0x43a61c(0x34c)]=0x1]=_0x43a61c(0x34c),_0x2453ef[_0x2453ef[_0x43a61c(0x4ec)]=0x2]=_0x43a61c(0x4ec),_0x2453ef[_0x2453ef[_0x43a61c(0x32d)]=0x3]=_0x43a61c(0x32d),_0x2453ef[_0x2453ef[_0x43a61c(0x327)]=0x4]=_0x43a61c(0x327),_0x2453ef[_0x2453ef[_0x43a61c(0x384)]=0x5]=_0x43a61c(0x384),_0x2453ef[_0x2453ef[_0x43a61c(0x5c5)]=0x6]=_0x43a61c(0x5c5),_0x2453ef[_0x2453ef[_0x43a61c(0x224)]=-0x1]=_0x43a61c(0x224),_0x2453ef))(_0x50cae9||{}),_0x15d31d=(_0x241a96=>(_0x241a96[_0x241a96['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x241a96[_0x241a96['OK']=0x1]='OK',_0x241a96[_0x241a96['FAIL']=0x2]=_0x43a61c(0x2a3),_0x241a96[_0x241a96['UNRECOGNIZED']=-0x1]=_0x43a61c(0x224),_0x241a96))(_0x15d31d||{}),_0x508834=(_0x216124=>(_0x216124[_0x216124[_0x43a61c(0x1fd)]=0x0]=_0x43a61c(0x1fd),_0x216124[_0x216124[_0x43a61c(0x368)]=0x1]='HttpImport',_0x216124[_0x216124[_0x43a61c(0x51a)]=0x2]=_0x43a61c(0x51a),_0x216124[_0x216124[_0x43a61c(0x225)]=0x3]='UnitEmbedded',_0x216124[_0x216124[_0x43a61c(0x553)]=0x4]='UnitSnapshot',_0x216124[_0x216124[_0x43a61c(0x224)]=-0x1]=_0x43a61c(0x224),_0x216124))(_0x508834||{});const _0x35d3c1='collaboration-client.config',_0xfc5311={};function _0xa914ff(_0x5f5172){const _0x425965=_0x43a61c;var _0x407674,_0x4072ee,_0x514665,_0xeffc00,_0x3b9ec9;const _0x4a2233=_0x5f5172['data'],_0x18036b=JSON['parse'](_0x4a2233);switch(_0x18036b[_0x425965(0x569)]){case _0x50cae9[_0x425965(0x384)]:case _0x50cae9[_0x425965(0x34c)]:{const _0xf66a73=_0x18036b[_0x425965(0x24e)];return{..._0x18036b,'data':_0xf66a73,'cmd':_0x18036b['cmd']};}case _0x50cae9[_0x425965(0x4ec)]:{const _0x40de05=_0x18036b[_0x425965(0x308)];return{..._0x18036b,'data':_0x40de05,'cmd':_0x18036b[_0x425965(0x569)]};}case _0x50cae9[_0x425965(0x5c5)]:{const _0x9bd3f5=_0x18036b[_0x425965(0x4a0)];switch(_0x9bd3f5[_0x425965(0x5ce)]){case _0x582bb5[_0x425965(0x240)]['PERMISSION_REJ']:return{..._0x18036b,'data':{..._0x9bd3f5,'data':(_0x407674=_0x9bd3f5['permissionRejEvent'])==null?void 0x0:_0x407674['cs']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)][_0x425965(0x310)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':(_0x4072ee=_0x9bd3f5['csAckEvent'])==null?void 0x0:_0x4072ee['cs']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)]['NEW_CHANGESETS']:return{..._0x18036b,'data':{..._0x9bd3f5,'data':(_0x514665=_0x9bd3f5[_0x425965(0x329)])==null?void 0x0:_0x514665['cs']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5['CollaborationEvent']['CHANGESET_REJ']:return{..._0x18036b,'data':{..._0x9bd3f5,'data':(_0xeffc00=_0x9bd3f5[_0x425965(0x3e5)])==null?void 0x0:_0xeffc00['cs']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5['CollaborationEvent'][_0x425965(0x31c)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':(_0x3b9ec9=_0x9bd3f5['csShouldRetryEvent'])==null?void 0x0:_0x3b9ec9['cs']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)][_0x425965(0x4c4)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x48c)]},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)][_0x425965(0x57f)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x3d8)]},'cmd':_0x18036b['cmd']};case _0x582bb5[_0x425965(0x240)]['USERS_LEAVE']:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x400)]},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)][_0x425965(0x5d3)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5['liveShareNewHost']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)][_0x425965(0x465)]:case _0x582bb5[_0x425965(0x240)]['LIVESHARE_OPERATION']:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x3b7)]},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x267)]},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5['CollaborationEvent'][_0x425965(0x4d0)]:return{..._0x18036b,'data':_0x9bd3f5,'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5[_0x425965(0x240)][_0x425965(0x5fc)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x20e)]},'cmd':_0x18036b['cmd']};case _0x582bb5['CollaborationEvent'][_0x425965(0x57b)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5['updatePermissionObjEvent']},'cmd':_0x18036b[_0x425965(0x569)]};case _0x582bb5['CollaborationEvent'][_0x425965(0x3e7)]:return{..._0x18036b,'data':{..._0x9bd3f5,'data':_0x9bd3f5[_0x425965(0x589)]},'cmd':_0x18036b[_0x425965(0x569)]};default:return _0x18036b;}}default:return _0x18036b;}}function _0x29fb06(_0x5b744e){const _0x3f07fb=_0x43a61c;switch(_0x5b744e['cmd']){case _0x50cae9[_0x3f07fb(0x384)]:case _0x50cae9['HELLO']:return JSON['stringify']({'cmd':_0x5b744e[_0x3f07fb(0x569)],'routeKey':_0x5b744e['routeKey']});case _0x50cae9['INGEST']:{let _0x254c8b;switch(_0x5b744e[_0x3f07fb(0x416)][_0x3f07fb(0x5ce)]){case _0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x4c4)]:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x4c4)],'updateCursorEvent':_0x5b744e['data'][_0x3f07fb(0x416)]};break;}case _0x582bb5[_0x3f07fb(0x240)]['USERS_LEAVE']:{_0x254c8b={'eventID':_0x582bb5['CollaborationEvent'][_0x3f07fb(0x21e)],'leaveEvent':_0x5b744e[_0x3f07fb(0x416)][_0x3f07fb(0x416)]};break;}case _0x582bb5['CollaborationEvent'][_0x3f07fb(0x57f)]:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)]['USERS_ENTER'],'joinEvent':_0x5b744e['data']['data']};break;}case _0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x5d3)]:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x5d3)],'liveShareNewHost':_0x5b744e['data'][_0x3f07fb(0x416)]};break;}case _0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x5f9)]:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x5f9)],'liveShareOperation':_0x5b744e[_0x3f07fb(0x416)][_0x3f07fb(0x416)]};break;}case _0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x42e)]:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x42e)],'liveShareTerminate':_0x5b744e['data']['data']};break;}case _0x582bb5['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x403)],'liveShareRequestHost':_0x5b744e[_0x3f07fb(0x416)][_0x3f07fb(0x416)]};break;}case _0x582bb5['CollaborationEvent'][_0x3f07fb(0x465)]:{_0x254c8b={'eventID':_0x582bb5[_0x3f07fb(0x240)][_0x3f07fb(0x465)]};break;}default:_0x254c8b={'eventID':_0x5b744e[_0x3f07fb(0x416)][_0x3f07fb(0x5ce)]};}return JSON[_0x3f07fb(0x2ea)]({'cmd':_0x5b744e[_0x3f07fb(0x569)],'routeKey':_0x5b744e[_0x3f07fb(0x383)],'collaMsg':_0x254c8b});}case _0x50cae9[_0x3f07fb(0x4ec)]:return JSON[_0x3f07fb(0x2ea)]({'cmd':_0x5b744e[_0x3f07fb(0x569)],'routeKey':_0x5b744e[_0x3f07fb(0x383)],'joinReq':_0x5b744e[_0x3f07fb(0x416)]});case _0x50cae9[_0x3f07fb(0x32d)]:return JSON[_0x3f07fb(0x2ea)]({'cmd':_0x5b744e['cmd'],'routeKey':_0x5b744e[_0x3f07fb(0x383)],'leaveReq':_0x5b744e[_0x3f07fb(0x416)]});default:throw new Error(_0x3f07fb(0x3b3));}}var _0x2d98a6=Object[_0x43a61c(0x408)],_0x42e4db=Object[_0x43a61c(0x33d)],_0x2500b7=(_0x382fed,_0x621d9b,_0x29d755,_0x2a00ca)=>{const _0x2cedd9=_0x43a61c;for(var _0x376a75=_0x2a00ca>0x1?void 0x0:_0x2a00ca?_0x42e4db(_0x621d9b,_0x29d755):_0x621d9b,_0x241c77=_0x382fed[_0x2cedd9(0x58f)]-0x1,_0x5b6236;_0x241c77>=0x0;_0x241c77--)(_0x5b6236=_0x382fed[_0x241c77])&&(_0x376a75=(_0x2a00ca?_0x5b6236(_0x621d9b,_0x29d755,_0x376a75):_0x5b6236(_0x376a75))||_0x376a75);return _0x2a00ca&&_0x376a75&&_0x2d98a6(_0x621d9b,_0x29d755,_0x376a75),_0x376a75;},_0x39c211=(_0x34e3b8,_0x8a4ab)=>(_0x5b338d,_0x5b5a3d)=>_0x8a4ab(_0x5b338d,_0x5b5a3d,_0x34e3b8);const _0x2e85b9=_0x58174a[_0x43a61c(0x5c1)](_0x43a61c(0x521));function _0x7d1fb6(_0x3d19cb,_0x2dbe24,_0x36d74a){const _0xe74a7f=_0x43a61c;return _0x3d19cb+'/'+_0x2dbe24+_0xe74a7f(0x2f9)+_0x36d74a+'/new_changes';}_0x70db69['CollaborationSocketService']=class extends _0x58174a[_0x43a61c(0x320)]{constructor(_0x26efc4,_0x365e68,_0x595e2f,_0xe024a,_0x2e11d9){const _0x2e09a5=_0x43a61c;super(),this[_0x2e09a5(0x1c4)]=_0x26efc4,this['_ws']=_0x365e68,this[_0x2e09a5(0x5a5)]=_0x595e2f,this[_0x2e09a5(0x4e4)]=_0xe024a,this['_snapshotServerService']=_0x2e11d9;}[_0x43a61c(0x2dd)](_0x46e0ea){const _0x34c3c2=_0x43a61c,_0x212691=this[_0x34c3c2(0x58a)][_0x34c3c2(0x2dd)](_0x46e0ea);if(!_0x212691)throw new Error(_0x34c3c2(0x24d));const _0x41b7f9=new _0x58174a['DisposableCollection'](),_0x54fba0=new _0x1678b1['Subject']();_0x41b7f9[_0x34c3c2(0x209)](_0x212691['close$']['subscribe'](_0x278005=>_0x54fba0['next'](_0x278005))),_0x41b7f9[_0x34c3c2(0x209)](_0x58174a[_0x34c3c2(0x1ca)](()=>_0x54fba0[_0x34c3c2(0x28e)]()));const _0x50d968=new _0x1678b1[(_0x34c3c2(0x520))]();_0x41b7f9[_0x34c3c2(0x209)](_0x212691[_0x34c3c2(0x1d6)][_0x34c3c2(0x387)](_0x711f11=>_0x50d968[_0x34c3c2(0x46c)](_0x711f11))),_0x41b7f9[_0x34c3c2(0x209)](_0x58174a['toDisposable'](()=>_0x50d968[_0x34c3c2(0x28e)]()));const _0x20a2f1=new _0x1678b1[(_0x34c3c2(0x520))]();_0x41b7f9['add'](_0x212691[_0x34c3c2(0x1f5)][_0x34c3c2(0x387)](_0x104061=>{const _0x59396b=_0xa914ff(_0x104061);_0x20a2f1['next'](_0x59396b);})),_0x41b7f9['add'](_0x58174a[_0x34c3c2(0x1ca)](()=>_0x20a2f1[_0x34c3c2(0x28e)]()));let _0xd597be;const _0x175164=()=>{const _0x5e1493=_0x34c3c2;_0x50d968[_0x5e1493(0x46c)](new Event(_0x5e1493(0x2ba))),_0x54fba0['next'](new CloseEvent(_0x5e1493(0x2ba))),_0xd597be['close']();};return _0xd597be={'memberID':'','close$':_0x54fba0[_0x34c3c2(0x5dc)](),'error$':_0x50d968[_0x34c3c2(0x5dc)](),'open$':_0x212691[_0x34c3c2(0x597)],'message$':_0x20a2f1[_0x34c3c2(0x5dc)](),'send':_0x590302=>{const _0x1628a3=_0x34c3c2;if(_0x590302[_0x1628a3(0x569)]===_0x50cae9[_0x1628a3(0x327)]){if(_0x590302['data'][_0x1628a3(0x5ce)]===_0x582bb5[_0x1628a3(0x240)][_0x1628a3(0x413)]){this[_0x1628a3(0x533)](_0xd597be,_0x590302[_0x1628a3(0x416)])[_0x1628a3(0x297)](_0x4ec455=>{this['_logService']['error'](_0x4ec455),_0x175164();});return;}if(_0x590302[_0x1628a3(0x416)][_0x1628a3(0x5ce)]===_0x582bb5[_0x1628a3(0x240)][_0x1628a3(0x283)]){const _0x55f8f7=_0x590302['data'];this[_0x1628a3(0x50b)](_0x55f8f7)[_0x1628a3(0x2bd)](_0x310c23=>{const _0x5ba666=_0x1628a3;_0x20a2f1[_0x5ba666(0x46c)]({'cmd':_0x50cae9[_0x5ba666(0x5c5)],'code':_0x15d31d['OK'],'routeKey':_0x55f8f7[_0x5ba666(0x416)][_0x5ba666(0x467)],'routeType':'','data':{'eventID':_0x582bb5[_0x5ba666(0x240)][_0x5ba666(0x3a0)],'data':{'changesets':_0x310c23}}});})[_0x1628a3(0x297)](_0x3c5bdb=>{const _0x3f872b=_0x1628a3;this[_0x3f872b(0x4e4)]['error'](_0x3c5bdb),_0x175164();});return;}}_0x212691['send'](_0x29fb06(_0x590302));},'close':()=>{const _0x4a3c18=_0x34c3c2;_0x212691[_0x4a3c18(0x5a1)](),_0x41b7f9[_0x4a3c18(0x4b0)]();}},_0xd597be;}async[_0x43a61c(0x533)](_0x1347d7,_0x1306ca){const _0x371a34=_0x43a61c;var _0x445c36,_0x360ddf;const {unitType:_0x161cff,unitID:_0x31d350,changeset:_0x3b01f3}=_0x1306ca[_0x371a34(0x416)],_0x5a4c7b={'unitID':_0x31d350,'memberID':_0x1347d7[_0x371a34(0x277)],'type':_0x161cff,'changeset':_0x582bb5[_0x371a34(0x464)](_0x3b01f3)},_0x3f29a3=this[_0x371a34(0x5a5)][_0x371a34(0x466)](_0x265b44),_0x358eb8=this['_configService'][_0x371a34(0x466)](_0x35d3c1),_0x3f8c13=_0x7d1fb6((_0x360ddf=(_0x445c36=_0x358eb8==null?void 0x0:_0x358eb8['collabSubmitChangesetUrl'])!=null?_0x445c36:_0x3f29a3)!=null?_0x360ddf:_0x38fda5,_0x161cff,_0x31d350);try{await this[_0x371a34(0x1c4)]['post'](_0x3f8c13,{'body':_0x5a4c7b});}catch(_0x2cab7a){throw this[_0x371a34(0x4e4)]['error'](_0x371a34(0x5d0),_0x371a34(0x5e3)),_0x2cab7a;}}async['_fetchMissChangesets'](_0x8dd639){const _0x3aafb1=_0x43a61c,{unitID:_0x21ed17,from:_0x22bc8e,to:_0x311932,unitType:_0xf9858f}=_0x8dd639['data'];return(await this[_0x3aafb1(0x226)][_0x3aafb1(0x431)]({'metadata':void 0x0},{'unitID':_0x21ed17,'type':_0xf9858f,'from':_0x22bc8e,'to':_0x311932}))['changesets'];}},_0x70db69[_0x43a61c(0x4e7)]=_0x2500b7([_0x39c211(0x0,_0x58174a[_0x43a61c(0x409)](_0x15e0bb[_0x43a61c(0x59b)])),_0x39c211(0x1,_0x58174a[_0x43a61c(0x409)](_0x15e0bb['WebSocketService'])),_0x39c211(0x2,_0x58174a[_0x43a61c(0x5bc)]),_0x39c211(0x3,_0x58174a[_0x43a61c(0x2d2)]),_0x39c211(0x4,_0x582bb5[_0x43a61c(0x448)])],_0x70db69['CollaborationSocketService']);const _0x53c14d='collaboration_new_changeset';function _0x2ef478(_0xa55a3f){const _0x171ae3=_0x43a61c;return JSON[_0x171ae3(0x2ea)](_0xa55a3f)[_0x171ae3(0x58f)];}class _0x1d571b{constructor(){const _0x4a8cfd=_0x43a61c;_0x4b178e(this,'_commentUpdate$',new _0x1678b1[(_0x4a8cfd(0x520))]()),_0x4b178e(this,'commentUpdate$',this[_0x4a8cfd(0x363)][_0x4a8cfd(0x5dc)]());}['onCommentUpdate'](_0x28c890){const _0x2c5c7f=_0x43a61c;this[_0x2c5c7f(0x363)]['next'](_0x28c890);}}var _0x41e7bf=Object['defineProperty'],_0x3a3ad0=Object[_0x43a61c(0x33d)],_0x10cfc3=(_0x246be5,_0x303e60,_0x1afc5a,_0x50e139)=>{const _0x5af4b9=_0x43a61c;for(var _0x134fd6=_0x50e139>0x1?void 0x0:_0x50e139?_0x3a3ad0(_0x303e60,_0x1afc5a):_0x303e60,_0x4aa5dd=_0x246be5[_0x5af4b9(0x58f)]-0x1,_0x4aa478;_0x4aa5dd>=0x0;_0x4aa5dd--)(_0x4aa478=_0x246be5[_0x4aa5dd])&&(_0x134fd6=(_0x50e139?_0x4aa478(_0x303e60,_0x1afc5a,_0x134fd6):_0x4aa478(_0x134fd6))||_0x134fd6);return _0x50e139&&_0x134fd6&&_0x41e7bf(_0x303e60,_0x1afc5a,_0x134fd6),_0x134fd6;},_0x438f1b=(_0x25b6d4,_0x2fe859)=>(_0x4052f8,_0x533437)=>_0x2fe859(_0x4052f8,_0x533437,_0x25b6d4);_0x70db69[_0x43a61c(0x37c)]=class extends _0x58174a['Disposable']{constructor(_0x28562a,_0x53e407){const _0x2cae65=_0x43a61c;super(),_0x4b178e(this,'_roomMembers',new Map()),(this[_0x2cae65(0x360)]=_0x28562a,this[_0x2cae65(0x3a2)]=_0x53e407,this[_0x2cae65(0x502)](_0x58174a[_0x2cae65(0x1ca)](_0x1678b1['merge'](this[_0x2cae65(0x360)]['getTypeOfUnitDisposed$'](_0x58174a['UniverInstanceType'][_0x2cae65(0x264)])[_0x2cae65(0x4c7)](_0x5ab054[_0x2cae65(0x339)](_0x2c4ec6=>_0x2c4ec6['getUnitId']())),this[_0x2cae65(0x360)][_0x2cae65(0x567)](_0x58174a[_0x2cae65(0x37e)]['UNIVER_DOC'])['pipe'](_0x5ab054[_0x2cae65(0x339)](_0x24c2f1=>_0x24c2f1[_0x2cae65(0x231)]())),this[_0x2cae65(0x360)][_0x2cae65(0x567)](_0x58174a[_0x2cae65(0x37e)]['UNIVER_SLIDE'])[_0x2cae65(0x4c7)](_0x5ab054[_0x2cae65(0x339)](_0x2bd308=>_0x2bd308[_0x2cae65(0x231)]())))['subscribe'](_0x2521e1=>this['_removeRoom'](_0x2521e1)))));}['setCurrentUser'](_0x2ee737){const _0x30c545=_0x43a61c;this['_userManagerService'][_0x30c545(0x5e2)](_0x2ee737);}[_0x43a61c(0x57c)](){const _0x57997e=_0x43a61c;return this[_0x57997e(0x3a2)][_0x57997e(0x57c)]();}[_0x43a61c(0x2c9)](_0x1218e3,_0x343352){const _0x5913a0=_0x43a61c;let _0x22b73d=this[_0x5913a0(0x4d3)][_0x5913a0(0x40a)](_0x1218e3);_0x22b73d||(_0x22b73d=new _0xf29a52(),this['_roomMembers']['set'](_0x1218e3,_0x22b73d)),_0x22b73d[_0x5913a0(0x2c9)](_0x343352);}[_0x43a61c(0x3d0)](_0x5b3981,_0x3f7956){const _0x16c347=_0x43a61c,_0x379698=this[_0x16c347(0x4d3)][_0x16c347(0x40a)](_0x5b3981);_0x379698&&_0x379698[_0x16c347(0x3d0)](_0x3f7956);}[_0x43a61c(0x200)](_0x229aba){return this['_roomMembers']['get'](_0x229aba);}[_0x43a61c(0x461)](_0x430d53,_0x533d12){const _0x4596a4=_0x43a61c,_0x395bd5=this[_0x4596a4(0x4d3)][_0x4596a4(0x40a)](_0x430d53);if(_0x395bd5)return _0x395bd5[_0x4596a4(0x461)](_0x533d12);}[_0x43a61c(0x206)](_0x38a1ce){const _0x1b2e19=_0x43a61c,_0x1e9f8c=this[_0x1b2e19(0x4d3)]['get'](_0x38a1ce);_0x1e9f8c&&(_0x1e9f8c[_0x1b2e19(0x4b0)](),this[_0x1b2e19(0x4d3)][_0x1b2e19(0x457)](_0x38a1ce));}[_0x43a61c(0x4b0)](){const _0x58e423=_0x43a61c;this[_0x58e423(0x4d3)][_0x58e423(0x348)](_0x33d0d2=>_0x33d0d2['dispose']()),this['_roomMembers'][_0x58e423(0x48e)]();}},_0x70db69['MemberService']=_0x10cfc3([_0x438f1b(0x0,_0x58174a[_0x43a61c(0x560)]),_0x438f1b(0x1,_0x58174a[_0x43a61c(0x409)](_0x58174a['UserManagerService']))],_0x70db69[_0x43a61c(0x37c)]);class _0xf29a52 extends _0x58174a[_0x43a61c(0x320)]{constructor(){super(...arguments),_0x4b178e(this,'_members',new Map());}[_0x43a61c(0x4b0)](){this['_members']['clear']();}[_0x43a61c(0x2c9)](_0x35230c){const _0x2e40e0=_0x43a61c;this[_0x2e40e0(0x3db)][_0x2e40e0(0x43b)](_0x35230c[_0x2e40e0(0x277)],_0x35230c);}[_0x43a61c(0x3d0)](_0x4b6782){const _0x534e19=_0x43a61c;this[_0x534e19(0x3db)][_0x534e19(0x457)](_0x4b6782);}[_0x43a61c(0x461)](_0x316d91){const _0x543e1d=_0x43a61c;return this[_0x543e1d(0x3db)][_0x543e1d(0x40a)](_0x316d91);}['getAllMembers'](){const _0xd3f90a=_0x43a61c;return Array[_0xd3f90a(0x5eb)](this['_members']['values']());}}var _0x547c72=Object[_0x43a61c(0x408)],_0x347582=Object[_0x43a61c(0x33d)],_0x235912=(_0x7b63,_0x1df4d4,_0xfd3aa0,_0x2245c5)=>{const _0x3663a0=_0x43a61c;for(var _0x22044e=_0x2245c5>0x1?void 0x0:_0x2245c5?_0x347582(_0x1df4d4,_0xfd3aa0):_0x1df4d4,_0x47aeef=_0x7b63[_0x3663a0(0x58f)]-0x1,_0x47b2b0;_0x47aeef>=0x0;_0x47aeef--)(_0x47b2b0=_0x7b63[_0x47aeef])&&(_0x22044e=(_0x2245c5?_0x47b2b0(_0x1df4d4,_0xfd3aa0,_0x22044e):_0x47b2b0(_0x22044e))||_0x22044e);return _0x2245c5&&_0x22044e&&_0x547c72(_0x1df4d4,_0xfd3aa0,_0x22044e),_0x22044e;},_0x3fe9a0=(_0x2c76f0,_0x5b8840)=>(_0x5b1965,_0x742f22)=>_0x5b8840(_0x5b1965,_0x742f22,_0x2c76f0),_0x50c5ae=(_0x9c0edb=>(_0x9c0edb[_0x9c0edb[_0x43a61c(0x4c9)]=0x0]=_0x43a61c(0x4c9),_0x9c0edb[_0x9c0edb[_0x43a61c(0x453)]=0x1]=_0x43a61c(0x453),_0x9c0edb[_0x9c0edb[_0x43a61c(0x25d)]=0x2]=_0x43a61c(0x25d),_0x9c0edb[_0x9c0edb[_0x43a61c(0x503)]=0x3]=_0x43a61c(0x503),_0x9c0edb))(_0x50c5ae||{});_0x70db69[_0x43a61c(0x50a)]=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x23841e,_0x48e481,_0x2312c5,_0x1be6ac,_0x5121f9,_0x5a9e63,_0x52af72,_0x17dca8,_0x6b5842,_0x553ac9){const _0x3aad67=_0x43a61c;super(),_0x4b178e(this,_0x3aad67(0x4f8),new _0x1678b1[(_0x3aad67(0x44b))](0x0)),_0x4b178e(this,_0x3aad67(0x2d7),this[_0x3aad67(0x4f8)]['asObservable']()),_0x4b178e(this,_0x3aad67(0x450),new _0x1678b1[(_0x3aad67(0x520))]()),_0x4b178e(this,_0x3aad67(0x39f),this[_0x3aad67(0x450)][_0x3aad67(0x5dc)]()),_0x4b178e(this,_0x3aad67(0x2db)),_0x4b178e(this,_0x3aad67(0x26e)),_0x4b178e(this,_0x3aad67(0x2bc)),_0x4b178e(this,_0x3aad67(0x4ca),!0x1),_0x4b178e(this,_0x3aad67(0x292),null),(this['_unitID']=_0x23841e,this[_0x3aad67(0x4e4)]=_0x2312c5,this[_0x3aad67(0x34b)]=_0x1be6ac,this[_0x3aad67(0x4a6)]=_0x5121f9,this[_0x3aad67(0x5a5)]=_0x5a9e63,this[_0x3aad67(0x29b)]=_0x52af72,this['_memberService']=_0x17dca8,this['_commentService']=_0x6b5842,this['_telemetryService']=_0x553ac9,this[_0x3aad67(0x4ca)]=!!this['_telemetryService'],_0x48e481[_0x3aad67(0x4c7)](_0x1678b1[_0x3aad67(0x346)](this[_0x3aad67(0x341)]))[_0x3aad67(0x387)](_0x3e6f56=>{const _0x366b39=_0x3aad67;var _0x3de2b1;typeof _0x3e6f56>'u'||(this[_0x366b39(0x2db)]=_0x3e6f56,_0x3e6f56?(this[_0x366b39(0x575)](_0x3e6f56),this[_0x366b39(0x26e)]=_0x3e6f56[_0x366b39(0x1f5)][_0x366b39(0x387)](_0x24ac4b=>{const _0x1020da=_0x366b39;_0x24ac4b[_0x1020da(0x383)]===this['_unitID']&&this[_0x1020da(0x2a2)](_0x24ac4b);})):(this[_0x366b39(0x5c9)](),this['_sessionStatus$']['next'](0x2),(_0x3de2b1=this['_socketMessageSubscription'])==null||_0x3de2b1['unsubscribe'](),this[_0x366b39(0x26e)]=null));}),this[_0x3aad67(0x502)](this['_beforeCloseService'][_0x3aad67(0x3c6)](()=>{const _0x30bda2=_0x3aad67;var _0x5d3dc1;(_0x5d3dc1=this[_0x30bda2(0x2db)])==null||_0x5d3dc1[_0x30bda2(0x417)]({'cmd':_0x50cae9['LEAVE'],'data':{'roomID':this[_0x30bda2(0x411)]}});})));}get[_0x43a61c(0x347)](){const _0x19b0ac=_0x43a61c;return this['_sessionStatus$'][_0x19b0ac(0x46e)]();}[_0x43a61c(0x2c8)](){const _0x1e29fc=_0x43a61c;var _0x1fca55,_0x3d1c7d;return(_0x3d1c7d=(_0x1fca55=this[_0x1e29fc(0x2db)])==null?void 0x0:_0x1fca55[_0x1e29fc(0x277)])!=null?_0x3d1c7d:null;}[_0x43a61c(0x4b0)](){const _0x40a930=_0x43a61c;super[_0x40a930(0x4b0)](),this[_0x40a930(0x341)][_0x40a930(0x46c)](),this[_0x40a930(0x341)]['complete']();}['close'](){const _0xeac650=_0x43a61c;var _0x4992eb,_0x539c3b;this[_0xeac650(0x5c9)](),(_0x4992eb=this['_socket'])==null||_0x4992eb[_0xeac650(0x417)]({'cmd':_0x50cae9['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x539c3b=this[_0xeac650(0x2db)])==null||_0x539c3b[_0xeac650(0x5a1)](),this[_0xeac650(0x450)][_0xeac650(0x28e)](),this[_0xeac650(0x4f8)][_0xeac650(0x28e)](),this[_0xeac650(0x4b0)]();}[_0x43a61c(0x2a2)](_0x582507){const _0x2a27a1=_0x43a61c;_0x582507[_0x2a27a1(0x569)]===_0x50cae9[_0x2a27a1(0x4ec)]?this['_onJoinRoomEvent'](_0x582507):_0x582507['cmd']===_0x50cae9[_0x2a27a1(0x5c5)]&&this[_0x2a27a1(0x1ec)](_0x582507);}[_0x43a61c(0x575)](_0x469e1f){const _0x3be026=_0x43a61c;this[_0x3be026(0x4f8)]['next'](0x1),_0x469e1f[_0x3be026(0x417)]({'cmd':_0x50cae9[_0x3be026(0x4ec)],'routeKey':this[_0x3be026(0x411)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3be026(0x411)]}]}});}[_0x43a61c(0x1cc)](_0x50281f){const _0xcf929f=_0x43a61c;var _0x43a688;if(_0x50281f[_0xcf929f(0x258)]===_0x15d31d[_0xcf929f(0x2a3)]){this['_messageService'][_0xcf929f(0x1de)]({'type':_0x2738af['MessageType'][_0xcf929f(0x4ae)],'content':this['_localeService']['t'](_0xcf929f(0x499))}),this[_0xcf929f(0x4f8)][_0xcf929f(0x46c)](0x2);return;}this[_0xcf929f(0x4f8)]['next'](0x3);const _0x34033b=(_0x43a688=_0x50281f[_0xcf929f(0x416)]['roomInfos'][this[_0xcf929f(0x411)]])==null?void 0x0:_0x43a688['members'];_0x34033b&&_0x34033b['forEach'](_0x27ecba=>this['_memberService']['updateMember'](this[_0xcf929f(0x411)],_0x27ecba));}[_0x43a61c(0x1ec)](_0xcc286a){const _0x221801=_0x43a61c;try{const _0xdd30ad=_0xcc286a[_0x221801(0x416)];switch(_0xdd30ad['eventID']){case _0x582bb5[_0x221801(0x240)][_0x221801(0x57f)]:this[_0x221801(0x3f6)](_0xdd30ad),this['_event$'][_0x221801(0x46c)](_0xdd30ad);break;case _0x582bb5[_0x221801(0x240)][_0x221801(0x21e)]:this['_onUserLeave'](_0xdd30ad),this[_0x221801(0x450)][_0x221801(0x46c)](_0xdd30ad);break;case _0x582bb5[_0x221801(0x240)][_0x221801(0x310)]:case _0x582bb5[_0x221801(0x240)][_0x221801(0x31c)]:this[_0x221801(0x3c8)](),this[_0x221801(0x429)](),this[_0x221801(0x450)][_0x221801(0x46c)](_0xdd30ad);break;case _0x582bb5[_0x221801(0x240)]['MSG_FOR_ERROR']:this[_0x221801(0x4e4)][_0x221801(0x3da)](_0x221801(0x2fa)+JSON[_0x221801(0x2ea)](_0xdd30ad)),this[_0x221801(0x450)][_0x221801(0x46c)](_0xdd30ad);break;case _0x582bb5['CollaborationEvent'][_0x221801(0x5fc)]:this[_0x221801(0x381)][_0x221801(0x1d9)](_0xdd30ad[_0x221801(0x416)]),this['_event$']['next'](_0xdd30ad);break;default:this[_0x221801(0x450)][_0x221801(0x46c)](_0xdd30ad);}}catch(_0x5ad938){this['_logService'][_0x221801(0x3da)](_0x5ad938,_0xcc286a);}}['_onUserJoin'](_0x38cafc){const _0x16044e=_0x43a61c;this[_0x16044e(0x22b)][_0x16044e(0x2c9)](this[_0x16044e(0x411)],_0x38cafc['data']);}[_0x43a61c(0x219)](_0x53f654){const _0x96fc31=_0x43a61c;this[_0x96fc31(0x22b)][_0x96fc31(0x3d0)](this['_unitID'],_0x53f654[_0x96fc31(0x416)][_0x96fc31(0x277)]);}async['send'](_0x4a7ce9,_0x387464){const _0x15e0a5=_0x43a61c;if(this[_0x15e0a5(0x347)]!==0x3||!this[_0x15e0a5(0x2db)])throw new Error(_0x15e0a5(0x3a5));try{_0x4a7ce9[_0x15e0a5(0x5ce)]===_0x582bb5[_0x15e0a5(0x240)][_0x15e0a5(0x413)]&&(this[_0x15e0a5(0x223)](),this[_0x15e0a5(0x369)](_0x4a7ce9)),this['_socket'][_0x15e0a5(0x417)]({'cmd':_0x50cae9[_0x15e0a5(0x327)],'routeKey':_0x387464,'routeType':'','data':_0x4a7ce9});}catch(_0x5f2529){this[_0x15e0a5(0x4e4)]['error'](_0x5f2529);}}[_0x43a61c(0x223)](){const _0x52c3f9=_0x43a61c;var _0x509daa;this[_0x52c3f9(0x2bc)]=window[_0x52c3f9(0x1c9)](()=>{const _0x5e5db0=_0x52c3f9;this['_collaborationTimeoutTimer']=null,this[_0x5e5db0(0x4a6)][_0x5e5db0(0x1de)]({'type':_0x2738af['MessageType'][_0x5e5db0(0x432)],'content':this[_0x5e5db0(0x29b)]['t'](_0x5e5db0(0x1d5))});},(_0x509daa=this[_0x52c3f9(0x5a5)][_0x52c3f9(0x466)](_0x38ea5f))!=null?_0x509daa:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x57cab4=_0x43a61c;this[_0x57cab4(0x2bc)]&&(clearTimeout(this[_0x57cab4(0x2bc)]),this[_0x57cab4(0x2bc)]=null);}[_0x43a61c(0x369)](_0x59b528){const _0x1ebab1=_0x43a61c;if(!this[_0x1ebab1(0x4ca)])return;const {data:_0x26551a}=_0x59b528,{unitID:_0x553d27,changeset:_0x10dfaf}=_0x26551a,{mutations:_0x483039,type:_0x4f20ca}=_0x10dfaf;this[_0x1ebab1(0x292)]={'unitId':_0x553d27,'type':_0x4f20ca,'startTime':performance[_0x1ebab1(0x33e)](),'stopTime':0x0,'duration':0x0,'size':_0x2ef478(_0x483039)};}[_0x43a61c(0x3c8)](){const _0x5bad10=_0x43a61c;if(this[_0x5bad10(0x4ca)]){if(!this[_0x5bad10(0x292)]){this['_logService'][_0x5bad10(0x3da)]('[CollaborationSession]',_0x5bad10(0x5b2));return;}this['_telemetryInfo']['stopTime']=performance[_0x5bad10(0x33e)](),this[_0x5bad10(0x292)][_0x5bad10(0x39a)]=this['_telemetryInfo'][_0x5bad10(0x23d)]-this[_0x5bad10(0x292)][_0x5bad10(0x593)],this[_0x5bad10(0x541)]['capture'](_0x53c14d,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x43a61c(0x5c9)](){this['_telemetryInfo']=null;}},_0x70db69['CollaborationSession']=_0x235912([_0x3fe9a0(0x2,_0x58174a[_0x43a61c(0x2d2)]),_0x3fe9a0(0x3,_0x130918[_0x43a61c(0x3ad)]),_0x3fe9a0(0x4,_0x130918[_0x43a61c(0x423)]),_0x3fe9a0(0x5,_0x58174a[_0x43a61c(0x5bc)]),_0x3fe9a0(0x6,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x3c3)])),_0x3fe9a0(0x7,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x37c)])),_0x3fe9a0(0x8,_0x58174a[_0x43a61c(0x409)](_0x1d571b)),_0x3fe9a0(0x9,_0x58174a['Optional'](_0x248260['ITelemetryService']))],_0x70db69['CollaborationSession']);var _0x224a5f=Object[_0x43a61c(0x408)],_0x30d773=Object[_0x43a61c(0x33d)],_0xfe3e30=(_0x4a2869,_0x7df337,_0x5e3e61,_0x265f61)=>{const _0x3f57a1=_0x43a61c;for(var _0x94c193=_0x265f61>0x1?void 0x0:_0x265f61?_0x30d773(_0x7df337,_0x5e3e61):_0x7df337,_0x4c73e0=_0x4a2869[_0x3f57a1(0x58f)]-0x1,_0x3b6dff;_0x4c73e0>=0x0;_0x4c73e0--)(_0x3b6dff=_0x4a2869[_0x4c73e0])&&(_0x94c193=(_0x265f61?_0x3b6dff(_0x7df337,_0x5e3e61,_0x94c193):_0x3b6dff(_0x94c193))||_0x94c193);return _0x265f61&&_0x94c193&&_0x224a5f(_0x7df337,_0x5e3e61,_0x94c193),_0x94c193;},_0x341f42=(_0xdf443a,_0x554334)=>(_0x97bddd,_0x12e550)=>_0x554334(_0x97bddd,_0x12e550,_0xdf443a);_0x70db69[_0x43a61c(0x2da)]=class extends _0x58174a[_0x43a61c(0x320)]{constructor(_0x8fada1,_0x7b0680,_0x444394,_0x1287db,_0x3adbd0,_0x14aa8b){const _0x596227=_0x43a61c;super(),_0x4b178e(this,'_socket$',new _0x1678b1[(_0x596227(0x44b))](void 0x0)),_0x4b178e(this,'socket$',this[_0x596227(0x492)][_0x596227(0x5dc)]()),_0x4b178e(this,_0x596227(0x362),null),_0x4b178e(this,_0x596227(0x2a8),new Map()),_0x4b178e(this,_0x596227(0x3d3),new _0x1678b1['BehaviorSubject'](_0x50c5ae['IDLE'])),_0x4b178e(this,'status$',this['_status$']['asObservable']()),_0x4b178e(this,_0x596227(0x212),!0x1),_0x4b178e(this,'_retryConnectingTimer'),_0x4b178e(this,_0x596227(0x1f3),0x0),_0x4b178e(this,_0x596227(0x2f8)),_0x4b178e(this,_0x596227(0x216)),(this[_0x596227(0x228)]=_0x8fada1,this[_0x596227(0x29b)]=_0x7b0680,this[_0x596227(0x4a6)]=_0x444394,this[_0x596227(0x4e4)]=_0x1287db,this[_0x596227(0x5a5)]=_0x3adbd0,this[_0x596227(0x49f)]=_0x14aa8b,this[_0x596227(0x452)]());}get['_socket'](){const _0x430e85=_0x43a61c;return this[_0x430e85(0x492)]['getValue']();}['_initEventListeners'](){const _0x293a92=_0x43a61c;this[_0x293a92(0x4bf)](),this['_listenToOnlineEvent']();}[_0x43a61c(0x4b0)](){const _0x41d00b=_0x43a61c;super[_0x41d00b(0x4b0)](),this[_0x41d00b(0x2a8)][_0x41d00b(0x348)](_0x2fdad7=>_0x2fdad7['dispose']()),this[_0x41d00b(0x2a8)]['clear'](),this['_status$'][_0x41d00b(0x28e)]();}async[_0x43a61c(0x2b0)](_0x2d6309){const _0x3efd5c=_0x43a61c;if(this['_sessions'][_0x3efd5c(0x238)](_0x2d6309))return this['_sessions'][_0x3efd5c(0x40a)](_0x2d6309);this['_tryEnsureSocket']();const _0x1b0eae=this[_0x3efd5c(0x228)][_0x3efd5c(0x4eb)](_0x70db69[_0x3efd5c(0x50a)],_0x2d6309,this['_socket$'][_0x3efd5c(0x5dc)]());return this[_0x3efd5c(0x2a8)][_0x3efd5c(0x43b)](_0x2d6309,_0x1b0eae),_0x1b0eae;}[_0x43a61c(0x3e4)](_0x8b75e3){const _0x1a89f7=_0x43a61c;var _0x4dae41;const _0x1efa7c=this[_0x1a89f7(0x2a8)][_0x1a89f7(0x40a)](_0x8b75e3);_0x1efa7c&&(this[_0x1a89f7(0x2a8)][_0x1a89f7(0x457)](_0x8b75e3),_0x1efa7c[_0x1a89f7(0x5a1)]()),this['_sessions'][_0x1a89f7(0x359)]||(_0x4dae41=this['_socket'])==null||_0x4dae41[_0x1a89f7(0x5a1)]();}[_0x43a61c(0x306)](){const _0x29151c=_0x43a61c;this[_0x29151c(0x1f3)]=0x0,this[_0x29151c(0x270)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null),this[_0x29151c(0x31b)]();}[_0x43a61c(0x1e3)](){const _0x42b269=_0x43a61c;var _0x1f07d7,_0x742612;const _0x54f5f9=this[_0x42b269(0x5a5)][_0x42b269(0x466)](_0xfd5edc),_0x5bf0b4=this[_0x42b269(0x5a5)]['getConfig'](_0x35d3c1),_0xcdf38f=(_0x742612=(_0x1f07d7=_0x5bf0b4==null?void 0x0:_0x5bf0b4[_0x42b269(0x1f9)])!=null?_0x1f07d7:_0x54f5f9)!=null?_0x742612:_0x44cba5,_0x3334cf=this[_0x42b269(0x49f)][_0x42b269(0x2dd)](_0xcdf38f);return this[_0x42b269(0x362)]=_0x3334cf,_0x3334cf;}[_0x43a61c(0x203)](){const _0x57adbe=_0x43a61c;var _0x1e5955,_0x310a71;try{const _0x479ee5=(_0x310a71=(_0x1e5955=this[_0x57adbe(0x2db)])!=null?_0x1e5955:this[_0x57adbe(0x362)])!=null?_0x310a71:this['_createSocket']();if(_0x479ee5){const _0x3e9cc8=_0x479ee5[_0x57adbe(0x417)];_0x479ee5['send']=_0x4f5007=>(this['_rescheduleHeartbeat'](),_0x3e9cc8['apply'](_0x479ee5,[_0x4f5007])),_0x479ee5['message$'][_0x57adbe(0x387)](_0x20e0d1=>this['_onMessage'](_0x479ee5,_0x20e0d1)),_0x479ee5[_0x57adbe(0x1d6)]['pipe'](_0x5ab054[_0x57adbe(0x2f0)](0x1))[_0x57adbe(0x387)](_0x2aefcc=>this[_0x57adbe(0x4e4)][_0x57adbe(0x3da)](_0x57adbe(0x364),_0x2aefcc)),_0x479ee5[_0x57adbe(0x597)][_0x57adbe(0x4c7)](_0x5ab054[_0x57adbe(0x2f0)](0x1))[_0x57adbe(0x387)](()=>{const _0x36525c=_0x57adbe;this[_0x36525c(0x3a3)](_0x479ee5);}),_0x479ee5[_0x57adbe(0x211)]['pipe'](_0x5ab054[_0x57adbe(0x2f0)](0x1))[_0x57adbe(0x387)](_0x1923e0=>{const _0xf36a91=_0x57adbe;this[_0xf36a91(0x4e4)][_0xf36a91(0x3f7)](_0xf36a91(0x1ee),'socket\x20close',_0x1923e0),this[_0xf36a91(0x2d4)]();});}}catch(_0x47d39b){this[_0x57adbe(0x4e4)]['error'](_0x47d39b),this[_0x57adbe(0x2d4)]();}}[_0x43a61c(0x3a3)](_0x43dcf0){const _0xba676f=_0x43a61c;this['_logService'][_0xba676f(0x3f7)](_0xba676f(0x1ee),_0xba676f(0x53c)),_0x43dcf0['send']({'cmd':_0x50cae9[_0xba676f(0x34c)]}),this[_0xba676f(0x229)]();}[_0x43a61c(0x4bf)](){const _0x489cb4=_0x43a61c;window[_0x489cb4(0x351)]('offline',()=>this[_0x489cb4(0x2b5)]());}[_0x43a61c(0x2b5)](){const _0x270e5d=_0x43a61c;this[_0x270e5d(0x212)]=!0x1,this['_candidateSocket']=null,this[_0x270e5d(0x3d3)][_0x270e5d(0x46c)](_0x50c5ae[_0x270e5d(0x25d)]),this[_0x270e5d(0x492)][_0x270e5d(0x46c)](null),this[_0x270e5d(0x3f8)](),this[_0x270e5d(0x507)]();}['_onConnectionFailed'](){const _0x4ed720=_0x43a61c;var _0x3f0b9a;this['_onOffline'](),this[_0x4ed720(0x1f3)]<((_0x3f0b9a=this['_configService'][_0x4ed720(0x466)](_0x57d96))!=null?_0x3f0b9a:0x3)?(this[_0x4ed720(0x4a6)][_0x4ed720(0x1de)]({'key':'collaboration-session-retry','type':_0x2738af[_0x4ed720(0x5ac)][_0x4ed720(0x4ae)],'content':this[_0x4ed720(0x29b)]['t']('session.will-retry')}),this[_0x4ed720(0x31b)]()):this[_0x4ed720(0x4a6)][_0x4ed720(0x1de)]({'key':_0x4ed720(0x458),'type':_0x2738af[_0x4ed720(0x5ac)][_0x4ed720(0x432)],'content':this[_0x4ed720(0x29b)]['t'](_0x4ed720(0x3c9))});}['_listenToOnlineEvent'](){const _0x53dcf0=_0x43a61c,_0x32fd4f=()=>{const _0x167ad4=_0xa224;this[_0x167ad4(0x2db)]||this[_0x167ad4(0x306)]();},_0x4b81f9=()=>{const _0x94c30a=_0xa224;this['_socket']||document[_0x94c30a(0x2e5)]===_0x94c30a(0x284)||this['reconnect']();};window[_0x53dcf0(0x351)](_0x53dcf0(0x29c),_0x32fd4f),document[_0x53dcf0(0x351)](_0x53dcf0(0x5ba),_0x4b81f9);}[_0x43a61c(0x31b)](){const _0x29cf7e=_0x43a61c;var _0x17d16b;const _0x5d852b=this['_retryCount'],_0x31e3e6=this[_0x29cf7e(0x5a5)]['getConfig'](_0x35d3c1),_0x3c2c0f=_0x5d852b===0x0?0x0:((_0x17d16b=_0x31e3e6==null?void 0x0:_0x31e3e6['retryConnectingInterval'])!=null?_0x17d16b:0x4e20)*0x2**_0x5d852b;this[_0x29cf7e(0x270)]=window[_0x29cf7e(0x1c9)](()=>{const _0x43680b=_0x29cf7e;clearTimeout(this['_retryConnectingTimer']),this[_0x43680b(0x270)]=null,this[_0x43680b(0x203)]();},_0x3c2c0f),this[_0x29cf7e(0x1f3)]+=0x1;}['_onMessage'](_0xcd715,_0x3eebd5){const _0x273431=_0x43a61c,{cmd:_0x49ef50}=_0x3eebd5;_0x49ef50===_0x50cae9[_0x273431(0x34c)]&&!this['_socketReady']&&(_0xcd715[_0x273431(0x277)]=_0x3eebd5[_0x273431(0x416)][_0x273431(0x277)],this[_0x273431(0x492)][_0x273431(0x46c)](_0xcd715),this[_0x273431(0x3d3)][_0x273431(0x46c)](_0x50c5ae[_0x273431(0x503)]),this[_0x273431(0x212)]=!0x0,this[_0x273431(0x362)]=null),_0x49ef50===_0x50cae9[_0x273431(0x384)]&&this['_clearTimeoutTimer'](),this[_0x273431(0x229)]();}[_0x43a61c(0x229)](){const _0x33f923=_0x43a61c;var _0x462bfc;this[_0x33f923(0x507)](),this[_0x33f923(0x2f8)]=window[_0x33f923(0x1c9)](()=>this[_0x33f923(0x488)](),(_0x462bfc=this[_0x33f923(0x5a5)]['getConfig'](_0x581f57))!=null?_0x462bfc:0x7530);}[_0x43a61c(0x488)](){const _0xf2adbb=_0x43a61c;this[_0xf2adbb(0x2db)][_0xf2adbb(0x417)]({'cmd':_0x50cae9[_0xf2adbb(0x384)]}),this[_0xf2adbb(0x4dc)]();}[_0x43a61c(0x4dc)](){const _0x1088fd=_0x43a61c;var _0x2bec8c;this[_0x1088fd(0x216)]=window[_0x1088fd(0x1c9)](()=>this['_onConnectionFailed'](),(_0x2bec8c=this[_0x1088fd(0x5a5)][_0x1088fd(0x466)](_0x38ea5f))!=null?_0x2bec8c:0x4e20);}[_0x43a61c(0x507)](){const _0x3254ae=_0x43a61c;this[_0x3254ae(0x2f8)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x3254ae(0x2f8)]=null);}[_0x43a61c(0x3f8)](){const _0x3f4195=_0x43a61c;this[_0x3f4195(0x216)]!=null&&(clearTimeout(this[_0x3f4195(0x216)]),this[_0x3f4195(0x216)]=null);}},_0x70db69[_0x43a61c(0x2da)]=_0xfe3e30([_0x341f42(0x0,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x341f42(0x1,_0x58174a[_0x43a61c(0x409)](_0x58174a['LocaleService'])),_0x341f42(0x2,_0x130918[_0x43a61c(0x423)]),_0x341f42(0x3,_0x58174a['ILogService']),_0x341f42(0x4,_0x58174a[_0x43a61c(0x5bc)]),_0x341f42(0x5,_0x2e85b9)],_0x70db69['CollaborationSessionService']);for(var _0x5a96eb=[],_0x4ef9cd=0x0;_0x4ef9cd<0x100;++_0x4ef9cd)_0x5a96eb[_0x43a61c(0x311)]((_0x4ef9cd+0x100)['toString'](0x10)[_0x43a61c(0x414)](0x1));function _0x2fe509(_0x22c527,_0x196a00=0x0){const _0x3e9eeb=_0x43a61c;return(_0x5a96eb[_0x22c527[_0x196a00+0x0]]+_0x5a96eb[_0x22c527[_0x196a00+0x1]]+_0x5a96eb[_0x22c527[_0x196a00+0x2]]+_0x5a96eb[_0x22c527[_0x196a00+0x3]]+'-'+_0x5a96eb[_0x22c527[_0x196a00+0x4]]+_0x5a96eb[_0x22c527[_0x196a00+0x5]]+'-'+_0x5a96eb[_0x22c527[_0x196a00+0x6]]+_0x5a96eb[_0x22c527[_0x196a00+0x7]]+'-'+_0x5a96eb[_0x22c527[_0x196a00+0x8]]+_0x5a96eb[_0x22c527[_0x196a00+0x9]]+'-'+_0x5a96eb[_0x22c527[_0x196a00+0xa]]+_0x5a96eb[_0x22c527[_0x196a00+0xb]]+_0x5a96eb[_0x22c527[_0x196a00+0xc]]+_0x5a96eb[_0x22c527[_0x196a00+0xd]]+_0x5a96eb[_0x22c527[_0x196a00+0xe]]+_0x5a96eb[_0x22c527[_0x196a00+0xf]])[_0x3e9eeb(0x3b5)]();}var _0xc17b02,_0xb0aa01=new Uint8Array(0x10);function _0x158c46(){const _0x39e470=_0x43a61c;if(!_0xc17b02&&(_0xc17b02=typeof crypto<'u'&&crypto['getRandomValues']&&crypto['getRandomValues']['bind'](crypto),!_0xc17b02))throw new Error(_0x39e470(0x3c5));return _0xc17b02(_0xb0aa01);}var _0x33616e=typeof crypto<'u'&&crypto[_0x43a61c(0x24f)]&&crypto[_0x43a61c(0x24f)][_0x43a61c(0x441)](crypto);const _0x527fe6={'randomUUID':_0x33616e};function _0x15aa1b(_0x1b22f9,_0x29a28d,_0x3e80fa){const _0x24e653=_0x43a61c;if(_0x527fe6['randomUUID']&&!_0x29a28d&&!_0x1b22f9)return _0x527fe6[_0x24e653(0x24f)]();_0x1b22f9=_0x1b22f9||{};var _0x3744c5=_0x1b22f9[_0x24e653(0x328)]||(_0x1b22f9[_0x24e653(0x271)]||_0x158c46)();return _0x3744c5[0x6]=_0x3744c5[0x6]&0xf|0x40,_0x3744c5[0x8]=_0x3744c5[0x8]&0x3f|0x80,_0x2fe509(_0x3744c5);}var _0x3853bc=Object[_0x43a61c(0x408)],_0x1eed96=Object[_0x43a61c(0x33d)],_0x2cff79=(_0x4a1382,_0x175d2b,_0x568ccb,_0x474bee)=>{const _0x4aa806=_0x43a61c;for(var _0x26a605=_0x474bee>0x1?void 0x0:_0x474bee?_0x1eed96(_0x175d2b,_0x568ccb):_0x175d2b,_0x316939=_0x4a1382[_0x4aa806(0x58f)]-0x1,_0x46ed6f;_0x316939>=0x0;_0x316939--)(_0x46ed6f=_0x4a1382[_0x316939])&&(_0x26a605=(_0x474bee?_0x46ed6f(_0x175d2b,_0x568ccb,_0x26a605):_0x46ed6f(_0x26a605))||_0x26a605);return _0x474bee&&_0x26a605&&_0x3853bc(_0x175d2b,_0x568ccb,_0x26a605),_0x26a605;},_0x5120aa=(_0x288087,_0x183bb9)=>(_0x34885e,_0x4cc05d)=>_0x183bb9(_0x34885e,_0x4cc05d,_0x288087);let _0x144cfe=class{constructor(_0x3d9884,_0x1a9ed0,_0x182c04){const _0x58b4d6=_0x43a61c;this[_0x58b4d6(0x228)]=_0x3d9884,this[_0x58b4d6(0x49b)]=_0x1a9ed0,this[_0x58b4d6(0x4d9)]=_0x182c04;}['transformIMECache'](_0x504541){const _0x36f6a0=_0x43a61c;this[_0x36f6a0(0x44a)](_0x504541),this['_transformPreviousActiveRange'](_0x504541);}[_0x43a61c(0x23a)](_0x11e2b6){const _0x3c444c=_0x43a61c,{unitID:_0x53bfd6}=_0x11e2b6,_0x1bc632=this[_0x3c444c(0x4d9)][_0x3c444c(0x5fe)](_0x53bfd6)['with'](_0x19fc97[_0x3c444c(0x1c8)]),{redoCache:_0x4829d1}=_0x1bc632[_0x3c444c(0x494)]();if(_0x4829d1[_0x3c444c(0x58f)]===0x0)return _0x11e2b6;let _0x39f85d=_0x58174a[_0x3c444c(0x427)][_0x3c444c(0x5ff)](_0x11e2b6[_0x3c444c(0x5f4)][0x0]);for(let _0x5e9da0=0x0;_0x5e9da0<_0x4829d1[_0x3c444c(0x58f)];_0x5e9da0++){const _0xc9ab36={'id':_0x3c444c(0x3fa),'params':{..._0x4829d1[_0x5e9da0]}},_0x5a919d=this['_transformService'][_0x3c444c(0x56a)](_0x39f85d,_0xc9ab36,!0x1);if(_0x582bb5['isTransformMutationFailure'](_0x5a919d))throw _0x5a919d[_0x3c444c(0x3da)];_0x39f85d=_0x5a919d['m1Prime'];}return{..._0x58174a[_0x3c444c(0x427)][_0x3c444c(0x5ff)](_0x11e2b6),'mutations':[_0x39f85d]};}[_0x43a61c(0x44a)](_0x5e43ad){const _0x36fcff=_0x43a61c,{unitID:_0x30bd0a}=_0x5e43ad,_0x5d250a=this['_renderManagerService']['getRenderById'](_0x30bd0a)[_0x36fcff(0x3c2)](_0x19fc97['DocIMEInputManagerService']),{undoCache:_0x56c595,redoCache:_0x4b2c86}=_0x5d250a['getUndoRedoMutationParamsCache']();if(_0x56c595[_0x36fcff(0x58f)]===0x0||_0x4b2c86[_0x36fcff(0x58f)]===0x0)return;const _0xa675be=[],_0x499144=[];let _0x17c211=_0x58174a['Tools']['deepClone'](_0x5e43ad[_0x36fcff(0x5f4)][0x0]),_0x59a0e1=_0x58174a[_0x36fcff(0x427)]['deepClone'](_0x5e43ad['mutations'][0x0]);for(let _0x4b2ad8=_0x56c595[_0x36fcff(0x58f)]-0x1;_0x4b2ad8>=0x0;_0x4b2ad8--){const _0x512589={'id':_0x36fcff(0x3fa),'params':{..._0x56c595[_0x4b2ad8]}},_0x4f1c1b={'id':_0x36fcff(0x3fa),'params':{..._0x4b2c86[_0x4b2ad8]}},_0x38b58a=this['_transformService'][_0x36fcff(0x56a)](_0x17c211,_0x512589,!0x1),_0x431677=this[_0x36fcff(0x49b)][_0x36fcff(0x56a)](_0x59a0e1,_0x4f1c1b,!0x1);if(_0x582bb5[_0x36fcff(0x5b5)](_0x38b58a))throw _0x38b58a[_0x36fcff(0x3da)];if(_0x582bb5[_0x36fcff(0x5b5)](_0x431677))throw _0x431677[_0x36fcff(0x3da)];_0xa675be[_0x36fcff(0x546)](_0x38b58a[_0x36fcff(0x402)]['params']),_0x499144[_0x36fcff(0x546)](_0x431677[_0x36fcff(0x402)][_0x36fcff(0x559)]),_0x17c211=_0x38b58a[_0x36fcff(0x26d)],_0x59a0e1=_0x431677[_0x36fcff(0x26d)];}_0x5d250a[_0x36fcff(0x3ef)]({'undoCache':_0xa675be,'redoCache':_0x499144});}[_0x43a61c(0x600)](_0x181b36){const _0x2d8233=_0x43a61c,{unitID:_0x1bd94f}=_0x181b36,_0x15f774=this['_renderManagerService']['getRenderById'](_0x1bd94f)[_0x2d8233(0x3c2)](_0x19fc97[_0x2d8233(0x1c8)]),_0x46bc60=_0x15f774[_0x2d8233(0x254)]();if(_0x46bc60==null)return;const _0x4278da=[{'id':_0x2d8233(0x3fa),'params':{'unitId':_0x181b36[_0x2d8233(0x467)],'actions':null,'textRanges':[_0x46bc60]}}],_0x3cb52c=this[_0x2d8233(0x49b)][_0x2d8233(0x2c0)](_0x181b36,_0x4278da);if(!_0x582bb5['isTransformMutationsWithChangesetSuccess'](_0x3cb52c))throw _0x3cb52c[_0x2d8233(0x3da)];const _0x2f0e66=_0x3cb52c[_0x2d8233(0x402)][0x0]['params'][_0x2d8233(0x1ef)];Array[_0x2d8233(0x5d8)](_0x2f0e66)&&_0x2f0e66[_0x2d8233(0x58f)]&&_0x15f774[_0x2d8233(0x235)](_0x2f0e66[0x0]);}};_0x144cfe=_0x2cff79([_0x5120aa(0x0,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x5120aa(0x1,_0x582bb5[_0x43a61c(0x404)]),_0x5120aa(0x2,_0x438301[_0x43a61c(0x4da)])],_0x144cfe);var _0x4dfe1e=Object['defineProperty'],_0x2d9958=Object[_0x43a61c(0x33d)],_0x589948=(_0x28d404,_0x4dd8d2,_0x4caff8,_0x214ad4)=>{const _0x48d146=_0x43a61c;for(var _0x100cff=_0x214ad4>0x1?void 0x0:_0x214ad4?_0x2d9958(_0x4dd8d2,_0x4caff8):_0x4dd8d2,_0x598435=_0x28d404[_0x48d146(0x58f)]-0x1,_0x1b1e9e;_0x598435>=0x0;_0x598435--)(_0x1b1e9e=_0x28d404[_0x598435])&&(_0x100cff=(_0x214ad4?_0x1b1e9e(_0x4dd8d2,_0x4caff8,_0x100cff):_0x1b1e9e(_0x100cff))||_0x100cff);return _0x214ad4&&_0x100cff&&_0x4dfe1e(_0x4dd8d2,_0x4caff8,_0x100cff),_0x100cff;},_0x50ecdc=(_0x4add9d,_0x1436f6)=>(_0x3a77fc,_0x500cd5)=>_0x1436f6(_0x3a77fc,_0x500cd5,_0x4add9d);_0x70db69[_0x43a61c(0x5d2)]=class extends _0x58174a[_0x43a61c(0x320)]{constructor(_0x4f6876,_0x31df1f,_0x98c4a4,_0x2ce151,_0x571eaf){const _0x2ad623=_0x43a61c;super(),_0x4b178e(this,_0x2ad623(0x419),new Map()),_0x4b178e(this,'_saveTaskMap',new Map()),_0x4b178e(this,_0x2ad623(0x260),!0x1),(this[_0x2ad623(0x5a5)]=_0x4f6876,this[_0x2ad623(0x5d6)]=_0x31df1f,this[_0x2ad623(0x34b)]=_0x98c4a4,this[_0x2ad623(0x29b)]=_0x2ce151,this[_0x2ad623(0x2f6)]=_0x571eaf,this[_0x2ad623(0x47c)]());}[_0x43a61c(0x41c)](){const _0x2984ea=_0x43a61c;this[_0x2984ea(0x260)]=!0x0;}['enableLocalCache'](){const _0x20c6a3=_0x43a61c;this[_0x20c6a3(0x260)]=!0x1;}[_0x43a61c(0x4b0)](){const _0x27475b=_0x43a61c;this[_0x27475b(0x44f)]()[_0x27475b(0x2bd)](()=>super[_0x27475b(0x4b0)]());}async[_0x43a61c(0x5f1)](_0x239121){const _0x5864f8=_0x43a61c;return this['_disabled']?null:this['_localStorageService'][_0x5864f8(0x3a8)](_0x1d80b5(_0x239121));}async[_0x43a61c(0x42c)](_0x5dcc45,_0x4342db){const _0x67437e=_0x43a61c;return!!this[_0x67437e(0x5d6)][_0x67437e(0x565)](_0x5dcc45,_0x4342db);}['updateOfflineData'](_0x239a8c,_0x4ff9e8,_0x1a6b61,_0xfa0193){const _0x45e926=_0x43a61c,_0x2ec163=this[_0x45e926(0x2f6)][_0x45e926(0x38c)](_0x239a8c);this[_0x45e926(0x419)][_0x45e926(0x43b)](_0x239a8c,{'unitID':_0x239a8c,'type':_0x4ff9e8,'awaitingChangeset':_0x1a6b61,'mutations':_0xfa0193,'rev':_0x2ec163}),this['_saveTaskMap'][_0x45e926(0x238)](_0x239a8c)||this['_scheduleSaving'](_0x239a8c);}[_0x43a61c(0x344)](_0x2c1885){const _0x31159b=_0x43a61c,_0x5f365d=this[_0x31159b(0x2a4)]();_0x5f365d===0x0?this[_0x31159b(0x4bc)](_0x2c1885):this[_0x31159b(0x454)][_0x31159b(0x43b)](_0x2c1885,setTimeout(()=>this[_0x31159b(0x4bc)](_0x2c1885),_0x5f365d));}[_0x43a61c(0x2a4)](){const _0x1dea08=_0x43a61c;var _0x21cb6a;return(_0x21cb6a=this[_0x1dea08(0x5a5)][_0x1dea08(0x466)](_0x2e59f5))!=null?_0x21cb6a:0x3e8;}[_0x43a61c(0x4bc)](_0x3a7733){const _0x36998a=_0x43a61c,_0x2bca8e=this[_0x36998a(0x454)]['get'](_0x3a7733);return _0x2bca8e!==void 0x0&&window[_0x36998a(0x24b)](_0x2bca8e),this[_0x36998a(0x5d6)][_0x36998a(0x565)](_0x1d80b5(_0x3a7733),this['_cachedData'][_0x36998a(0x40a)](_0x3a7733))[_0x36998a(0x2bd)](()=>this[_0x36998a(0x454)]['delete'](_0x3a7733));}async[_0x43a61c(0x44f)](){const _0x4f10e0=_0x43a61c,_0x529da5=[];this['_saveTaskMap'][_0x4f10e0(0x348)]((_0x1cdc57,_0x2d8364)=>{const _0x90736=_0x4f10e0;window[_0x90736(0x24b)](_0x1cdc57),_0x529da5[_0x90736(0x311)](this[_0x90736(0x4bc)](_0x2d8364)[_0x90736(0x2bd)](()=>{const _0x4c549d=_0x90736;this['_saveTaskMap'][_0x4c549d(0x457)](_0x2d8364);}));}),await Promise[_0x4f10e0(0x268)](_0x529da5);}[_0x43a61c(0x47c)](){const _0x550d09=_0x43a61c;this[_0x550d09(0x502)](this[_0x550d09(0x34b)]['registerBeforeClose'](()=>{const _0x37e7f9=_0x550d09;if(this['_saveTaskMap'][_0x37e7f9(0x359)])return this[_0x37e7f9(0x29b)]['t'](_0x37e7f9(0x3ce));}));}},_0x70db69[_0x43a61c(0x5d2)]=_0x589948([_0x50ecdc(0x0,_0x58174a[_0x43a61c(0x5bc)]),_0x50ecdc(0x1,_0x58174a[_0x43a61c(0x2ff)]),_0x50ecdc(0x2,_0x130918[_0x43a61c(0x3ad)]),_0x50ecdc(0x3,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x3c3)])),_0x50ecdc(0x4,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x55f)]))],_0x70db69[_0x43a61c(0x5d2)]);function _0x1d80b5(_0x1b121d){const _0x536459=_0x43a61c;return _0x536459(0x276)+_0x1b121d;}var _0x3da136=Object[_0x43a61c(0x408)],_0x93215e=Object[_0x43a61c(0x33d)],_0xe5792f=(_0x28a432,_0x3b3d3a,_0xb326ff,_0x25455a)=>{const _0x2f37e8=_0x43a61c;for(var _0x1d0e27=_0x25455a>0x1?void 0x0:_0x25455a?_0x93215e(_0x3b3d3a,_0xb326ff):_0x3b3d3a,_0xc00f97=_0x28a432[_0x2f37e8(0x58f)]-0x1,_0x419203;_0xc00f97>=0x0;_0xc00f97--)(_0x419203=_0x28a432[_0xc00f97])&&(_0x1d0e27=(_0x25455a?_0x419203(_0x3b3d3a,_0xb326ff,_0x1d0e27):_0x419203(_0x1d0e27))||_0x1d0e27);return _0x25455a&&_0x1d0e27&&_0x3da136(_0x3b3d3a,_0xb326ff,_0x1d0e27),_0x1d0e27;},_0x4971ef=(_0x5f5d18,_0x3aff63)=>(_0x5bf1e7,_0x44b64a)=>_0x3aff63(_0x5bf1e7,_0x44b64a,_0x5f5d18);function _0x32eb2f(_0x11ec35){const _0x199c6b=_0x43a61c,{unitID:_0x3b1cfc,mutations:_0x5d033a}=_0x11ec35;return{'unitId':_0x3b1cfc,'subUnitId':_0x5d033a[0x0][_0x199c6b(0x559)]['subUnitId']};}let _0xb4edfb=class{constructor(_0x1afed5,_0x5dfea8,_0x2c98a6){const _0x40de16=_0x43a61c;this['_injector']=_0x1afed5,this[_0x40de16(0x49b)]=_0x5dfea8,this[_0x40de16(0x27f)]=_0x2c98a6;}['transformSelections'](_0xdfa48d){const _0x1b0154=_0x43a61c;var _0x1add56,_0x27cdbf,_0x447858,_0x3bf60d;const _0x4b90ff=this['_injector'][_0x1b0154(0x40a)](_0x46ce2c[_0x1b0154(0x39e)]),{unitId:_0x6611c8,subUnitId:_0x3beac5}=_0x32eb2f(_0xdfa48d),_0x291d1b=_0x4b90ff[_0x1b0154(0x2ef)](_0x6611c8)[_0x1b0154(0x513)](),_0x3674ef=(_0x27cdbf=(_0x1add56=this[_0x1b0154(0x27f)][_0x1b0154(0x2ed)](_0x6611c8))==null?void 0x0:_0x1add56['getActiveSheet']())==null?void 0x0:_0x27cdbf[_0x1b0154(0x34f)]();if(_0x291d1b[_0x1b0154(0x58f)]===0x0||!_0x6611c8||!_0x3beac5)return;const _0x4acd18=[{'id':_0x46ce2c['SetSelectionsOperation']['id'],'params':{'unitId':_0x6611c8,'subUnitId':_0x3674ef,'selections':_0x58174a[_0x1b0154(0x427)]['deepClone'](_0x291d1b)}}],_0x166913=this[_0x1b0154(0x49b)][_0x1b0154(0x2c0)](_0xdfa48d,_0x4acd18);if(!_0x582bb5['isTransformMutationsWithChangesetSuccess'](_0x166913))throw _0x166913[_0x1b0154(0x3da)];const _0xdc614f=(_0x3bf60d=(_0x447858=_0x166913['m2Prime'][0x0])==null?void 0x0:_0x447858[_0x1b0154(0x559)])==null?void 0x0:_0x3bf60d[_0x1b0154(0x52b)];if(Array[_0x1b0154(0x5d8)](_0xdc614f)&&_0xdc614f[_0x1b0154(0x58f)]){if(_0xdc614f[_0x1b0154(0x58f)]===_0x4acd18[0x0]['params'][_0x1b0154(0x52b)]['length']&&_0xdc614f[_0x1b0154(0x55d)]((_0x4df995,_0x42fe2e)=>_0x58174a['Rectangle'][_0x1b0154(0x468)](_0x4df995['range'],_0x4acd18[0x0]['params'][_0x1b0154(0x52b)][_0x42fe2e][_0x1b0154(0x490)])))return;this[_0x1b0154(0x228)][_0x1b0154(0x40a)](_0x58174a[_0x1b0154(0x512)])[_0x1b0154(0x45c)](_0x46ce2c[_0x1b0154(0x405)]['id'],{'unitId':_0x6611c8,'subUnitId':_0x3674ef,'selections':_0xdc614f});}}};_0xb4edfb=_0xe5792f([_0x4971ef(0x0,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x317)])),_0x4971ef(0x1,_0x582bb5[_0x43a61c(0x404)]),_0x4971ef(0x2,_0x58174a[_0x43a61c(0x560)])],_0xb4edfb);const _0x181a0e=_0x58174a[_0x43a61c(0x5c1)](_0x43a61c(0x23b));var _0x4787c6=(_0x2b0148=>(_0x2b0148[_0x2b0148['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x43a61c(0x524),_0x2b0148[_0x2b0148[_0x43a61c(0x4fb)]=0x1]=_0x43a61c(0x4fb),_0x2b0148))(_0x4787c6||{});const _0x40d146=0x7530,_0x5d5219='ACTIVE_UNIT_EVENT_CHANNEL';class _0x1f9c8a extends _0x58174a[_0x43a61c(0x320)]{constructor(){const _0x35b804=_0x43a61c;super(),_0x4b178e(this,_0x35b804(0x4c5),_0x58174a['Tools']['generateRandomId']()),_0x4b178e(this,'_selfUnitIDs',new Set()),_0x4b178e(this,'_unitOnClients',new Map()),_0x4b178e(this,_0x35b804(0x3d4),null),_0x4b178e(this,'_clearOtherTimers',new Map()),_0x4b178e(this,'_unitStatus',new Map()),this[_0x35b804(0x48d)]();}[_0x43a61c(0x4b0)](){const _0x537165=_0x43a61c;super[_0x537165(0x4b0)](),this[_0x537165(0x35f)][_0x537165(0x348)]((_0x57e435,_0x5ed509)=>this['_removeClearOtherTimer'](_0x5ed509)),this[_0x537165(0x3d4)]&&window[_0x537165(0x372)](this['_heartbeatTimer']);}[_0x43a61c(0x2e3)](_0x47ef6b){const _0x1d3fb5=_0x43a61c;return this[_0x1d3fb5(0x5ef)](_0x47ef6b)[_0x1d3fb5(0x4c7)](_0x1678b1['distinctUntilChanged']());}[_0x43a61c(0x2b7)](_0x57d351){const _0x1e7798=_0x43a61c;this[_0x1e7798(0x1da)][_0x1e7798(0x359)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1e7798(0x1da)]['add'](_0x57d351),this[_0x1e7798(0x3e1)]({'type':0x0,'memberID':this[_0x1e7798(0x4c5)],'unitIDs':[_0x57d351],'isForwarded':!0x1});}['disposeUnit'](_0x45daf9){const _0xc9d41c=_0x43a61c;this[_0xc9d41c(0x1da)]['delete'](_0x45daf9),this[_0xc9d41c(0x1da)][_0xc9d41c(0x359)]===0x0&&this[_0xc9d41c(0x3d4)]&&window[_0xc9d41c(0x372)](this['_heartbeatTimer']);}[_0x43a61c(0x48d)](){const _0x51b0db=_0x43a61c;this[_0x51b0db(0x502)](_0x58174a[_0x51b0db(0x1ca)](_0x1678b1['fromEvent'](window,_0x51b0db(0x282))[_0x51b0db(0x387)](_0x108419=>{const _0x4d106c=_0x51b0db;if(_0x108419[_0x4d106c(0x305)]!==_0x5d5219||!_0x108419[_0x4d106c(0x391)])return;const _0xe46c2e=JSON[_0x4d106c(0x424)](_0x108419[_0x4d106c(0x391)]);this[_0x4d106c(0x257)](_0xe46c2e);}))),window['addEventListener'](_0x51b0db(0x376),()=>this['_send']({'type':0x1,'memberID':this[_0x51b0db(0x4c5)],'unitIDs':Array[_0x51b0db(0x5eb)](this['_selfUnitIDs'])}));}[_0x43a61c(0x257)](_0x2093a1){const _0x15ca9c=_0x43a61c;switch(_0x2093a1['type']){case 0x0:this['_handleJoinEvent'](_0x2093a1);break;case 0x1:this[_0x15ca9c(0x312)](_0x2093a1);break;case 0x2:this['_handleHeartbeatEvent'](_0x2093a1);break;}}[_0x43a61c(0x4d7)](_0x30149c){const _0x4a14f6=_0x43a61c,{unitIDs:_0x176bf3,memberID:_0x935e16,isForwarded:_0x482ae5}=_0x30149c;_0x176bf3[_0x4a14f6(0x348)](_0x28ccb8=>{const _0xe70d38=_0x4a14f6;if(!_0x482ae5&&this[_0xe70d38(0x530)][_0xe70d38(0x238)](_0x28ccb8)&&this['_ensureSubject'](_0x28ccb8)[_0xe70d38(0x46c)](0x1),!this[_0xe70d38(0x530)]['has'](_0x28ccb8)||!this[_0xe70d38(0x530)][_0xe70d38(0x40a)](_0x28ccb8)[_0xe70d38(0x238)](_0x935e16)){const _0x52d50b=this[_0xe70d38(0x530)][_0xe70d38(0x40a)](_0x28ccb8)||new Set();_0x52d50b[_0xe70d38(0x209)](_0x935e16),this[_0xe70d38(0x530)][_0xe70d38(0x43b)](_0x28ccb8,_0x52d50b),this[_0xe70d38(0x3b2)](_0x935e16);}}),_0x482ae5||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4a14f6(0x1da)]],'isForwarded':!0x0});}[_0x43a61c(0x3b2)](_0x57a7f5){const _0xb98b5e=_0x43a61c;this['_removeClearOtherTimer'](_0x57a7f5);const _0x364b16=window[_0xb98b5e(0x1c9)](()=>{const _0x4b96cf=_0xb98b5e;this[_0x4b96cf(0x530)][_0x4b96cf(0x348)](_0x2c3e1b=>{const _0x11c476=_0x4b96cf;_0x2c3e1b[_0x11c476(0x457)](_0x57a7f5);});},_0x40d146*0x2);this[_0xb98b5e(0x35f)]['set'](_0x57a7f5,_0x364b16);}[_0x43a61c(0x2c5)](_0x29a237){const _0x1f92af=_0x43a61c;if(this['_clearOtherTimers']['has'](_0x29a237)){const _0x4b8799=this[_0x1f92af(0x35f)][_0x1f92af(0x40a)](_0x29a237);_0x4b8799&&window[_0x1f92af(0x24b)](_0x4b8799),this[_0x1f92af(0x35f)][_0x1f92af(0x43b)](_0x29a237,null);}}[_0x43a61c(0x312)](_0x5911ac){const _0x3baa3f=_0x43a61c,{memberID:_0x3b9249,unitIDs:_0x1790e6}=_0x5911ac;_0x1790e6[_0x3baa3f(0x348)](_0x2a48cf=>{const _0x25c11c=_0x3baa3f;var _0x5626c7;const _0x423aad=this['_unitOnClients'][_0x25c11c(0x40a)](_0x2a48cf);_0x423aad&&(_0x423aad[_0x25c11c(0x457)](_0x3b9249),(_0x5626c7=this[_0x25c11c(0x5ef)](_0x2a48cf))==null||_0x5626c7[_0x25c11c(0x46c)](_0x423aad[_0x25c11c(0x359)]===0x0?0x0:0x1));}),this[_0x3baa3f(0x2c5)](_0x3b9249);}[_0x43a61c(0x4ef)](_0x51e230){const _0x153789=_0x43a61c;this[_0x153789(0x3b2)](_0x51e230[_0x153789(0x277)]);}['_send'](_0x171f8e){const _0x1bceab=_0x43a61c;localStorage[_0x1bceab(0x565)](_0x5d5219,JSON[_0x1bceab(0x2ea)](_0x171f8e));}[_0x43a61c(0x25a)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x454277=_0xa224;this[_0x454277(0x3e1)]({'type':0x2,'memberID':this[_0x454277(0x4c5)]});},_0x40d146);}['_ensureSubject'](_0x9b7095){const _0x34fa5d=_0x43a61c;return this[_0x34fa5d(0x4f5)][_0x34fa5d(0x238)](_0x9b7095)||this[_0x34fa5d(0x4f5)][_0x34fa5d(0x43b)](_0x9b7095,new _0x1678b1[(_0x34fa5d(0x44b))](0x0)),this[_0x34fa5d(0x4f5)][_0x34fa5d(0x40a)](_0x9b7095);}}function _0x2ebefe(_0x2f2d52){const _0xb7d44a=_0x43a61c;let _0x3f2695='';for(const _0x2fb912 of _0x2f2d52){const {startOffset:_0x2d59e5,endOffset:_0x1a8c3f,isActive:_0x4d5040,rangeType:_0x394a3d,segmentId:_0x2a528b,segmentPage:_0x4c2913}=_0x2fb912;_0x3f2695[_0xb7d44a(0x58f)]&&(_0x3f2695+=','),_0x3f2695+=_0x2d59e5+':'+_0x1a8c3f+':'+(_0x4d5040?'1':'0')+':'+_0x394a3d+':'+_0x2a528b+':'+_0x4c2913;}return _0x3f2695;}function _0x2a96bb(_0x4e6aaf){const _0x3a075e=_0x43a61c,_0x13ff5e=_0x4e6aaf[_0x3a075e(0x33b)](','),_0x273a6f=[];for(const _0x32fb42 of _0x13ff5e){const [_0x5b0d36,_0x4ce412,_0x439d98,_0x21525a,_0x3ae6e3,_0x5278c9]=_0x32fb42['split'](':');_0x273a6f['push']({'startOffset':Number(_0x5b0d36),'endOffset':Number(_0x4ce412),'collapsed':_0x5b0d36===_0x4ce412,'isActive':_0x439d98==='1','rangeType':_0x21525a===_0x58174a['DOC_RANGE_TYPE'][_0x3a075e(0x3d7)]?_0x58174a['DOC_RANGE_TYPE'][_0x3a075e(0x3d7)]:_0x58174a['DOC_RANGE_TYPE'][_0x3a075e(0x57e)],'segmentId':typeof _0x3ae6e3==_0x3a075e(0x233)?String(_0x3ae6e3):'','segmentPage':Number(_0x5278c9!=null?_0x5278c9:-0x1)});}return _0x273a6f[_0x3a075e(0x56d)](_0x23ff14=>_0x23ff14[_0x3a075e(0x352)])||(_0x273a6f[0x0][_0x3a075e(0x352)]=!0x0),_0x273a6f;}class _0x3bf307 extends _0x58174a[_0x43a61c(0x389)]{constructor(){const _0x2fe098=_0x43a61c;super(...arguments),_0x4b178e(this,'_collabCursorState$',new _0x1678b1[(_0x2fe098(0x44b))](null)),_0x4b178e(this,_0x2fe098(0x1e1),this['_collabCursorState$'][_0x2fe098(0x5dc)]());}['syncEditingCollabCursor'](_0x2242cf){const _0x46dad1=_0x43a61c,{unitID:_0x4c5407,memberID:_0x184a99,textRanges:_0x97d64e}=_0x2242cf,_0x44b847=_0x2ebefe(_0x97d64e);if(_0x44b847==='')return;const _0x2b77ad={'unitID':_0x4c5407,'memberID':_0x184a99,'selection':_0x44b847};this['_collabCursorState$'][_0x46dad1(0x46c)](_0x2b77ad);}}var _0x3d3040=Object[_0x43a61c(0x408)],_0x474b8e=Object[_0x43a61c(0x33d)],_0x42591d=(_0x1438ce,_0x697fdc,_0x582491,_0x48d0ae)=>{const _0x1707d2=_0x43a61c;for(var _0x2e36bc=_0x48d0ae>0x1?void 0x0:_0x48d0ae?_0x474b8e(_0x697fdc,_0x582491):_0x697fdc,_0x2904c9=_0x1438ce[_0x1707d2(0x58f)]-0x1,_0x263a99;_0x2904c9>=0x0;_0x2904c9--)(_0x263a99=_0x1438ce[_0x2904c9])&&(_0x2e36bc=(_0x48d0ae?_0x263a99(_0x697fdc,_0x582491,_0x2e36bc):_0x263a99(_0x2e36bc))||_0x2e36bc);return _0x48d0ae&&_0x2e36bc&&_0x3d3040(_0x697fdc,_0x582491,_0x2e36bc),_0x2e36bc;},_0x2d0a17=(_0x25951b,_0x5b721a)=>(_0x4c590e,_0x2a563d)=>_0x5b721a(_0x4c590e,_0x2a563d,_0x25951b);let _0x5f5364=class{constructor(_0x51b57a,_0x1a86ce){const _0x4cf432=_0x43a61c;this[_0x4cf432(0x228)]=_0x51b57a,this[_0x4cf432(0x49b)]=_0x1a86ce;}['transformSelections'](_0x5a6620){const _0x96366b=_0x43a61c;var _0xd34e6e;const _0x46e1ea=this[_0x96366b(0x228)][_0x96366b(0x40a)](_0xb2a344[_0x96366b(0x58b)]),_0x3a1cf3=(_0xd34e6e=_0x46e1ea['getDocRanges']())!=null?_0xd34e6e:[];if(_0x3a1cf3[_0x96366b(0x58f)]===0x0)return;const _0x32eee1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5a6620[_0x96366b(0x467)],'actions':null,'textRanges':_0x3a1cf3}}],_0x39e5db=this[_0x96366b(0x49b)]['transformMutationsWithChangeset'](_0x5a6620,_0x32eee1);if(!_0x582bb5[_0x96366b(0x237)](_0x39e5db))throw _0x39e5db[_0x96366b(0x3da)];const _0x330d18=_0x39e5db[_0x96366b(0x402)][0x0][_0x96366b(0x559)][_0x96366b(0x1ef)];Array[_0x96366b(0x5d8)](_0x330d18)&&_0x330d18['length']&&_0x46e1ea[_0x96366b(0x49c)](_0x330d18,!0x1);}};_0x5f5364=_0x42591d([_0x2d0a17(0x0,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x317)])),_0x2d0a17(0x1,_0x582bb5[_0x43a61c(0x404)])],_0x5f5364);const _0x5a55e8=new Set([_0x46ce2c['InsertSheetMutation']['id']]);function _0x1881b8(_0x4515a6,_0x5f0a49,_0x1a3c75,_0x3b5867,_0x247f4){const _0x48e268=_0x43a61c;var _0x167382,_0x4f3473,_0x299e57,_0x694291;const _0x4165d0=[];for(const _0x4a5aa4 of _0x4515a6)if(_0x5a55e8[_0x48e268(0x238)](_0x4a5aa4['id'])){if(_0x4165d0[_0x48e268(0x58f)]>0x0)break;_0x4165d0[_0x48e268(0x311)](_0x4a5aa4);break;}else _0x4165d0[_0x48e268(0x311)](_0x4a5aa4);const _0x59b457=(_0x4f3473=(_0x167382=_0x247f4[_0x48e268(0x57c)]())==null?void 0x0:_0x167382[_0x48e268(0x41e)])!=null?_0x4f3473:_0x48e268(0x418),_0x8a49a5=(_0x694291=(_0x299e57=_0x247f4[_0x48e268(0x57c)]())==null?void 0x0:_0x299e57[_0x48e268(0x277)])!=null?_0x694291:'unknown';return{'changeset':{'unitID':_0x5f0a49,'type':_0x582bb5['mapDocumentTypeToUniverType'](_0x1a3c75[_0x48e268(0x434)](_0x5f0a49)),'baseRev':_0x3b5867[_0x48e268(0x38c)](_0x5f0a49),'revision':0x0,'userID':_0x59b457,'memberID':_0x8a49a5,'mutations':_0x4165d0},'pendingMutations':_0x4515a6[_0x48e268(0x414)](_0x4165d0['length'])};}function _0x12389b(_0x5574ed,_0x5ebf00,_0x63111a,_0x5376c7,_0x2c025a){const _0xe31475=_0x43a61c;var _0x549c43,_0xa48e36,_0xf0c954,_0x4ad1db;const _0x4a17ca=[_0x5574ed['reduce']((_0x51386f,_0x1da7b4)=>{const _0x52577f=_0xa224;var _0x3a744a;const {id:_0x5dfd7c}=_0x51386f,{id:_0x20374d,type:_0x3d9b45}=_0x1da7b4,_0x54e050=(_0x3a744a=_0x51386f['params'])!=null?_0x3a744a:{'actions':null},_0x33f662=_0x1da7b4[_0x52577f(0x559)];if(_0x5dfd7c&&_0x5dfd7c!==_0x20374d)throw new Error(_0x52577f(0x5b9)+_0x5dfd7c+_0x52577f(0x435)+_0x20374d+'.');return{..._0x51386f,'id':_0x20374d,'type':_0x3d9b45,'params':{'unitId':_0x33f662[_0x52577f(0x517)],'textRanges':_0x33f662[_0x52577f(0x1ef)],'actions':_0x58174a['JSONX'][_0x52577f(0x40e)](_0x54e050[_0x52577f(0x378)],_0x33f662[_0x52577f(0x378)])}};},{})],_0x5cd397=(_0xa48e36=(_0x549c43=_0x2c025a[_0xe31475(0x57c)]())==null?void 0x0:_0x549c43['userID'])!=null?_0xa48e36:_0xe31475(0x418),_0x31afb0=(_0x4ad1db=(_0xf0c954=_0x2c025a[_0xe31475(0x57c)]())==null?void 0x0:_0xf0c954['memberID'])!=null?_0x4ad1db:_0xe31475(0x418);return{'changeset':{'unitID':_0x5ebf00,'type':_0x582bb5[_0xe31475(0x370)](_0x63111a[_0xe31475(0x434)](_0x5ebf00)),'baseRev':_0x5376c7[_0xe31475(0x38c)](_0x5ebf00),'revision':0x0,'userID':_0x5cd397,'memberID':_0x31afb0,'mutations':_0x4a17ca},'pendingMutations':[]};}function _0x47a0a0(_0x140b31,_0x4f53e9){const _0x4f6655=_0x43a61c,_0x5c62b6=new _0x1678b1[(_0x4f6655(0x40d))](0x1);return setTimeout(()=>_0x5c62b6['next'](_0x4f53e9),_0x140b31),_0x5c62b6['asObservable']()['pipe'](_0x1678b1['take'](0x1));}const _0x244594={'id':_0x46ce2c[_0x43a61c(0x1cd)]['id'],'type':_0x58174a[_0x43a61c(0x30e)][_0x43a61c(0x59a)],'params':{}};var _0x62e296=Object['defineProperty'],_0xb3a2a0=Object[_0x43a61c(0x33d)],_0x27b449=(_0x5d0c27,_0x57041b,_0x4c3b78,_0x4c7fae)=>{const _0x19983b=_0x43a61c;for(var _0x1b78a0=_0x4c7fae>0x1?void 0x0:_0x4c7fae?_0xb3a2a0(_0x57041b,_0x4c3b78):_0x57041b,_0xfcdb01=_0x5d0c27[_0x19983b(0x58f)]-0x1,_0x593ab4;_0xfcdb01>=0x0;_0xfcdb01--)(_0x593ab4=_0x5d0c27[_0xfcdb01])&&(_0x1b78a0=(_0x4c7fae?_0x593ab4(_0x57041b,_0x4c3b78,_0x1b78a0):_0x593ab4(_0x1b78a0))||_0x1b78a0);return _0x4c7fae&&_0x1b78a0&&_0x62e296(_0x57041b,_0x4c3b78,_0x1b78a0),_0x1b78a0;},_0x5779a6=(_0x2f0f0a,_0x40f115)=>(_0x2320fd,_0xe6f3bf)=>_0x40f115(_0x2320fd,_0xe6f3bf,_0x2f0f0a),_0x29d72b=(_0x9e2c2a=>(_0x9e2c2a[_0x43a61c(0x551)]=_0x43a61c(0x56f),_0x9e2c2a[_0x43a61c(0x4a4)]=_0x43a61c(0x208),_0x9e2c2a[_0x43a61c(0x4db)]=_0x43a61c(0x331),_0x9e2c2a[_0x43a61c(0x561)]=_0x43a61c(0x281),_0x9e2c2a[_0x43a61c(0x5cd)]='awaiting_with_pending',_0x9e2c2a[_0x43a61c(0x30c)]='fetch_missing',_0x9e2c2a['CONFLICT']='conflict',_0x9e2c2a[_0x43a61c(0x25d)]=_0x43a61c(0x4f4),_0x9e2c2a))(_0x29d72b||{});const _0x593dba=0xea60;class _0x4d7c8d{constructor(_0x4fa32c,_0x330746,_0x386694,_0x1a28c1,_0x30b2d1,_0x58343a,_0x4b5271,_0x1080b5,_0x424756){const _0x29ca25=_0x43a61c;_0x4b178e(this,_0x29ca25(0x353),null),_0x4b178e(this,_0x29ca25(0x39b),[]),(this[_0x29ca25(0x467)]=_0x4fa32c,this['type']=_0x330746,this[_0x29ca25(0x314)]=_0x30b2d1,this[_0x29ca25(0x4ea)]=_0x58343a,this[_0x29ca25(0x4a8)]=_0x4b5271,this['_revisionService']=_0x1080b5,this[_0x29ca25(0x3e9)]=_0x424756,this[_0x29ca25(0x353)]=_0x386694,this[_0x29ca25(0x39b)]=_0x1a28c1);}[_0x43a61c(0x247)](_0xdbeed){const _0x1f7401=_0x43a61c,_0x4ad653=this[_0x1f7401(0x2f6)][_0x1f7401(0x38c)](this[_0x1f7401(0x467)]);return _0xdbeed['revision']>_0x4ad653+0x1?(this[_0x1f7401(0x314)][_0x1f7401(0x3b1)]({'from':_0x4ad653,'to':_0xdbeed[_0x1f7401(0x374)]-0x1}),!0x0):!0x1;}[_0x43a61c(0x4ac)](_0x2c7b3e){const _0x48dbc1=_0x43a61c;this['_undoRedoService'][_0x48dbc1(0x4c2)](this[_0x48dbc1(0x467)],_0x2c7b3e);}[_0x43a61c(0x25c)](_0x40afea){const _0x20d2be=_0x43a61c;var _0x35bf59,_0xaa1468;(_0xaa1468=(_0x35bf59=this[_0x20d2be(0x314)])[_0x20d2be(0x3fe)])==null||_0xaa1468[_0x20d2be(0x482)](_0x35bf59,_0x40afea);}[_0x43a61c(0x245)](_0x8e3f98){const _0x101fa0=_0x43a61c;var _0x5010c8,_0x26a8cc;return(_0x26a8cc=(_0x5010c8=this[_0x101fa0(0x314)])[_0x101fa0(0x53e)])==null?void 0x0:_0x26a8cc['call'](_0x5010c8,_0x8e3f98);}['_transformRemoteChangesetByIMECache'](_0x3f9801){const _0x2c1490=_0x43a61c;var _0x5690fe,_0xc77883,_0x319f91;return(_0x319f91=(_0xc77883=(_0x5690fe=this[_0x2c1490(0x314)])[_0x2c1490(0x2cb)])==null?void 0x0:_0xc77883['call'](_0x5690fe,_0x3f9801))!=null?_0x319f91:_0x3f9801;}['_syncEditingCollabCursor'](_0x31bdd1){const _0x523bcc=_0x43a61c;var _0x44b6bb,_0x4ed45e;if(this[_0x523bcc(0x393)]===_0x5f4ecc[_0x523bcc(0x3a1)]){const {unitID:_0x512f65,mutations:_0x1d1464,memberID:_0x25f418}=_0x31bdd1,_0x333d27=_0x1d1464[0x0][_0x523bcc(0x559)]['textRanges'];Array[_0x523bcc(0x5d8)](_0x333d27)&&_0x333d27[_0x523bcc(0x58f)]>0x0&&((_0x4ed45e=(_0x44b6bb=this['_handler'])[_0x523bcc(0x251)])==null||_0x4ed45e['call'](_0x44b6bb,{'unitID':_0x512f65,'memberID':_0x25f418,'textRanges':_0x333d27}));}}['_updateLocalCache'](){const _0x272f2b=_0x43a61c;this[_0x272f2b(0x3e9)][_0x272f2b(0x45f)](this['unitID'],this['type'],this[_0x272f2b(0x353)],this['_pendingMutations']);}[_0x43a61c(0x27b)](){const _0x5e03c0=_0x43a61c;return this['_revisionService'][_0x5e03c0(0x38c)](this[_0x5e03c0(0x467)]);}[_0x43a61c(0x539)](){const _0x43908d=_0x43a61c;this[_0x43908d(0x2f6)][_0x43908d(0x280)](this[_0x43908d(0x467)]);}[_0x43a61c(0x3e0)](_0x21618d){const _0x330301=_0x43a61c;var _0x1cb038;const _0x3f6dab=this[_0x330301(0x582)](_0x21618d),_0x2c73af=_0x58174a[_0x330301(0x2e7)](_0x3f6dab[_0x330301(0x5f4)],this[_0x330301(0x4ea)],{'fromCollab':!0x0});if(!_0x2c73af[_0x330301(0x52a)])throw _0x2c73af['error']instanceof Error?_0x2c73af[_0x330301(0x3da)]:new Error((_0x1cb038=_0x2c73af[_0x330301(0x3da)])!=null?_0x1cb038:_0x330301(0x29f));this[_0x330301(0x245)](_0x3f6dab),this[_0x330301(0x4ac)](_0x21618d),this[_0x330301(0x25c)](_0x3f6dab),this['_syncEditingCollabCursor'](_0x3f6dab),this[_0x330301(0x539)]();}}let _0x38eae9=class extends _0x4d7c8d{constructor(_0x18ad69,_0x3c1fc0,_0x36e16f,_0x50c199,_0x3aac02,_0x34234e,_0x2f45b6,_0x466832,_0x1549c5,_0x47e35e){const _0x1cd319=_0x43a61c;super(_0x18ad69,_0x3c1fc0,null,[],_0x36e16f,_0x466832,_0x2f45b6,_0x50c199,_0x3aac02),_0x4b178e(this,_0x1cd319(0x442),'synced'),(this['_injector']=_0x34234e,this[_0x1cd319(0x4e4)]=_0x1549c5,this[_0x1cd319(0x49b)]=_0x47e35e);}['appendMutation'](_0x115494){const _0x513da7=_0x43a61c,_0x19494a=this[_0x513da7(0x228)]['createInstance'](_0x3e6c60,this[_0x513da7(0x467)],this[_0x513da7(0x393)],[_0x115494],this['_handler']);return _0x19494a[_0x513da7(0x59f)](),_0x19494a['_updateLocalCache'](),_0x19494a;}[_0x43a61c(0x4bd)](_0x584ae2){const _0x44d113=_0x43a61c;if(this[_0x44d113(0x247)](_0x584ae2))return this['_injector'][_0x44d113(0x4eb)](_0x27a29d,this[_0x44d113(0x467)],this[_0x44d113(0x393)],null,[],null,[_0x584ae2],this[_0x44d113(0x314)]);try{const _0x3c5a8d=this[_0x44d113(0x49b)][_0x44d113(0x2c0)](_0x584ae2,[_0x244594]);if(_0x582bb5['isTransformMutationsWithChangesetSuccess'](_0x3c5a8d)){const {c1Prime:_0xd91a7f}=_0x3c5a8d;return this[_0x44d113(0x3e0)](_0xd91a7f),this;}throw _0x3c5a8d[_0x44d113(0x3da)];}catch(_0x111393){return this[_0x44d113(0x4e4)]['error'](_0x111393),this['_onConflict'](!0x1);}}[_0x43a61c(0x3cd)](_0x4209ff){const _0x1fa64a=_0x43a61c;return this[_0x1fa64a(0x228)]['createInstance'](_0x42ef86,this[_0x1fa64a(0x467)],this[_0x1fa64a(0x393)],null,[],this[_0x1fa64a(0x314)],_0x4209ff);}[_0x43a61c(0x518)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x43a61c(0x2f2)](){const _0x45ca24=_0x43a61c;throw new Error(_0x45ca24(0x43c));}[_0x43a61c(0x316)](){return this;}[_0x43a61c(0x278)](){const _0xcfda8e=_0x43a61c;return this['_injector'][_0xcfda8e(0x4eb)](_0x3675cd,this[_0xcfda8e(0x467)],this[_0xcfda8e(0x393)],null,[],this[_0xcfda8e(0x314)]);}[_0x43a61c(0x5b7)](){return this;}[_0x43a61c(0x3de)](){const _0x325e5b=_0x43a61c;throw new Error(_0x325e5b(0x2b1));}[_0x43a61c(0x602)](){const _0x186e3e=_0x43a61c,_0x5113f7=this[_0x186e3e(0x2f6)][_0x186e3e(0x38c)](this[_0x186e3e(0x467)]);return this[_0x186e3e(0x314)][_0x186e3e(0x3b1)]({'from':_0x5113f7,'to':0x0}),this[_0x186e3e(0x228)][_0x186e3e(0x4eb)](_0x27a29d,this['unitID'],this[_0x186e3e(0x393)],null,[],null,[],this[_0x186e3e(0x314)]);}};_0x38eae9=_0x27b449([_0x5779a6(0x3,_0x58174a[_0x43a61c(0x409)](_0x582bb5['RevisionService'])),_0x5779a6(0x4,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x5d2)])),_0x5779a6(0x5,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x5779a6(0x6,_0x58174a[_0x43a61c(0x58c)]),_0x5779a6(0x7,_0x58174a[_0x43a61c(0x512)]),_0x5779a6(0x8,_0x58174a[_0x43a61c(0x2d2)]),_0x5779a6(0x9,_0x582bb5[_0x43a61c(0x404)])],_0x38eae9);let _0x3e6c60=class extends _0x4d7c8d{constructor(_0x7c8c01,_0x442b43,_0x7c1bb9,_0x17a242,_0x417aba,_0x1e7df2,_0xe5ebe4,_0x244b8a,_0x2d7d02,_0x48abe9,_0x2c6b60,_0x5da0aa,_0x1d3c28,_0x5cb0b8){const _0x168aac=_0x43a61c;super(_0x7c8c01,_0x442b43,null,_0x7c1bb9,_0x17a242,_0x48abe9,_0x5cb0b8,_0x1e7df2,_0xe5ebe4),_0x4b178e(this,_0x168aac(0x442),_0x168aac(0x331)),_0x4b178e(this,_0x168aac(0x52d),null),_0x4b178e(this,_0x168aac(0x1f6),null),(this[_0x168aac(0x228)]=_0x417aba,this[_0x168aac(0x22b)]=_0x244b8a,this[_0x168aac(0x4e4)]=_0x2d7d02,this['_configService']=_0x2c6b60,this[_0x168aac(0x49b)]=_0x5da0aa,this[_0x168aac(0x360)]=_0x1d3c28);}['appendMutation'](_0x2ebd50){const _0x510563=_0x43a61c;return this[_0x510563(0x39b)][_0x510563(0x311)](_0x2ebd50),this[_0x510563(0x5c7)](),this;}[_0x43a61c(0x4bd)](_0x467137){const _0x513653=_0x43a61c;if(this[_0x513653(0x247)](_0x467137))return this[_0x513653(0x4ba)](),this['_injector']['createInstance'](_0x27a29d,this['unitID'],this[_0x513653(0x393)],null,this[_0x513653(0x39b)],null,[_0x467137],this['_handler']);try{const _0x3c5b7d=this['_transformService'][_0x513653(0x2c0)](_0x467137,this[_0x513653(0x39b)]);if(_0x582bb5[_0x513653(0x237)](_0x3c5b7d)){const {c1Prime:_0x2269e0,m2Prime:_0x326f77}=_0x3c5b7d;this[_0x513653(0x3e0)](_0x2269e0);const _0x214e04=this[_0x513653(0x228)][_0x513653(0x4eb)](_0x3e6c60,this[_0x513653(0x467)],this[_0x513653(0x393)],_0x326f77,this[_0x513653(0x314)]);return this['_clearScheduledTask'](),_0x214e04[_0x513653(0x59f)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x513653(0x2a6)]()-this[_0x513653(0x52d)]):this[_0x513653(0x4ee)]()),_0x214e04;}throw _0x3c5b7d[_0x513653(0x3da)];}catch(_0x197f42){return this[_0x513653(0x4e4)][_0x513653(0x3da)](_0x197f42),this['_onConflict'](!0x1);}}[_0x43a61c(0x518)](){const _0x493f25=_0x43a61c;throw new Error(_0x493f25(0x5e9));}[_0x43a61c(0x2f2)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x43a61c(0x316)](){return this;}['toggleOffline'](){const _0x103ff1=_0x43a61c;return this[_0x103ff1(0x4ba)](),this['_injector']['createInstance'](_0x3675cd,this['unitID'],this[_0x103ff1(0x393)],null,this[_0x103ff1(0x39b)],this[_0x103ff1(0x314)]);}['toggleOnline'](){return this;}[_0x43a61c(0x59f)](_0x29ee32){const _0x3861b4=_0x43a61c,_0x4673e0=_0x29ee32!=null?_0x29ee32:this[_0x3861b4(0x4ee)]();this['_scheduleTimestamp']=new Date()[_0x3861b4(0x2a6)](),this['_sendingTimer']=window[_0x3861b4(0x1c9)](()=>{const _0x516d89=_0x3861b4;this['_clearScheduledTask']();let _0x173fbc=null;switch(this[_0x516d89(0x393)]){case _0x5f4ecc['UNIVER_SHEET']:{_0x173fbc=_0x1881b8(this[_0x516d89(0x39b)],this[_0x516d89(0x467)],this[_0x516d89(0x360)],this[_0x516d89(0x2f6)],this['_memberService']);break;}case _0x5f4ecc['UNIVER_DOC']:{this['_pendingMutations']['every'](_0x1263d4=>_0x1263d4['id']===_0xb2a344[_0x516d89(0x37a)]['id'])?_0x173fbc=_0x12389b(this[_0x516d89(0x39b)],this[_0x516d89(0x467)],this['_univerInstanceService'],this['_revisionService'],this[_0x516d89(0x22b)]):_0x173fbc=_0x1881b8(this[_0x516d89(0x39b)],this[_0x516d89(0x467)],this[_0x516d89(0x360)],this[_0x516d89(0x2f6)],this[_0x516d89(0x22b)]);break;}default:throw new Error(_0x516d89(0x5e6)+this[_0x516d89(0x393)]+_0x516d89(0x1dc));}const {changeset:_0x3b8a99,pendingMutations:_0x11019a}=_0x173fbc;this[_0x516d89(0x314)][_0x516d89(0x243)](_0x3b8a99);const _0x3a3edb=_0x11019a[_0x516d89(0x58f)]?this['_injector'][_0x516d89(0x4eb)](_0xc6160b,this['unitID'],this[_0x516d89(0x393)],_0x3b8a99,_0x11019a,this[_0x516d89(0x314)],void 0x0):this['_injector'][_0x516d89(0x4eb)](_0x4c9153,this[_0x516d89(0x467)],this[_0x516d89(0x393)],_0x3b8a99,this[_0x516d89(0x314)]);_0x3a3edb['_updateLocalCache'](),this[_0x516d89(0x314)]['onStateChange'](this,_0x3a3edb);},_0x4673e0);}[_0x43a61c(0x4ee)](){const _0x4ace97=_0x43a61c;var _0x4c3563;const _0x2dff21=this[_0x4ace97(0x5a5)][_0x4ace97(0x466)](_0x35d3c1);return(_0x4c3563=_0x2dff21==null?void 0x0:_0x2dff21['sendChangesetTimeout'])!=null?_0x4c3563:0x7d0;}[_0x43a61c(0x3de)](){const _0x212e5c=_0x43a61c;throw new Error(_0x212e5c(0x35c));}[_0x43a61c(0x4ba)](){const _0x7213f8=_0x43a61c;this['_sendingTimer']!=null&&(clearTimeout(this[_0x7213f8(0x1f6)]),this[_0x7213f8(0x1f6)]=null);}['_onConflict'](_0x4545c3){const _0x224a29=_0x43a61c;return this['_clearScheduledTask'](),this[_0x224a29(0x228)]['createInstance'](_0x42ef86,this[_0x224a29(0x467)],this['type'],null,this[_0x224a29(0x39b)],this['_handler'],_0x4545c3);}};_0x3e6c60=_0x27b449([_0x5779a6(0x4,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x317)])),_0x5779a6(0x5,_0x58174a['Inject'](_0x582bb5['RevisionService'])),_0x5779a6(0x6,_0x58174a[_0x43a61c(0x409)](_0x70db69['LocalCacheService'])),_0x5779a6(0x7,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x37c)])),_0x5779a6(0x8,_0x58174a[_0x43a61c(0x2d2)]),_0x5779a6(0x9,_0x58174a[_0x43a61c(0x512)]),_0x5779a6(0xa,_0x58174a[_0x43a61c(0x5bc)]),_0x5779a6(0xb,_0x582bb5[_0x43a61c(0x404)]),_0x5779a6(0xc,_0x58174a[_0x43a61c(0x560)]),_0x5779a6(0xd,_0x58174a[_0x43a61c(0x58c)])],_0x3e6c60);let _0x4c9153=class extends _0x4d7c8d{constructor(_0xe8a166,_0x430c57,_0x165f9d,_0x213fb3,_0x1e1722,_0x2347ca,_0x89d26f,_0x568b31,_0x3b6c6a,_0xad1ca0,_0x2be1f7){const _0x3ccf31=_0x43a61c;super(_0xe8a166,_0x430c57,_0x165f9d,[],_0x213fb3,_0x568b31,_0x2be1f7,_0x2347ca,_0x89d26f),_0x4b178e(this,_0x3ccf31(0x442),_0x3ccf31(0x281)),_0x4b178e(this,_0x3ccf31(0x2a0),0x0),_0x4b178e(this,_0x3ccf31(0x4e0)),_0x4b178e(this,_0x3ccf31(0x2d3)),(this['_injector']=_0x1e1722,this[_0x3ccf31(0x4e4)]=_0x3b6c6a,this['_transformService']=_0xad1ca0);}[_0x43a61c(0x580)](_0x1983c6){const _0x424539=_0x43a61c;this[_0x424539(0x4ba)]();const _0xc1321e=this[_0x424539(0x228)]['createInstance'](_0xc6160b,this[_0x424539(0x467)],this['type'],this[_0x424539(0x353)],[_0x1983c6],this[_0x424539(0x314)],this[_0x424539(0x4e0)]);return _0xc1321e[_0x424539(0x5c7)](),_0xc1321e;}[_0x43a61c(0x4bd)](_0x20ebdc){const _0x24819d=_0x43a61c;if(this['_checkMissing'](_0x20ebdc))return this['_clearScheduledTask'](),this[_0x24819d(0x228)]['createInstance'](_0x27a29d,this[_0x24819d(0x467)],this['type'],this[_0x24819d(0x353)],[],null,[_0x20ebdc],this[_0x24819d(0x314)]);try{const _0x2195f=this[_0x24819d(0x49b)][_0x24819d(0x34a)]([_0x20ebdc],[this[_0x24819d(0x353)]],!0x1);if(_0x582bb5[_0x24819d(0x3ff)](_0x2195f)){const {c1Prime:_0x33f3c8,c2Prime:_0xed1f54}=_0x2195f;this['_executeRemoteChangeset'](_0x33f3c8[0x0]),_0xed1f54[0x0]['baseRev']=this[_0x24819d(0x27b)](),this[_0x24819d(0x4ba)]();const _0x586e45=this['_injector']['createInstance'](_0x4c9153,this[_0x24819d(0x467)],this[_0x24819d(0x393)],_0xed1f54[0x0],this[_0x24819d(0x314)]);return _0x586e45[_0x24819d(0x5c7)](),_0x586e45;}return this['_onConflict'](!0x1);}catch(_0x1b11b5){return this[_0x24819d(0x4e4)][_0x24819d(0x3da)](_0x1b11b5),this[_0x24819d(0x3cd)](!0x1);}}[_0x43a61c(0x518)](_0x417be8){const _0x18f0ad=_0x43a61c;this[_0x18f0ad(0x4ba)]();const _0x27dda2=this[_0x18f0ad(0x2f6)][_0x18f0ad(0x38c)](this[_0x18f0ad(0x467)]);if(_0x417be8[_0x18f0ad(0x374)]<_0x27dda2-0x1)return this;if(this[_0x18f0ad(0x247)](_0x417be8))return this[_0x18f0ad(0x228)]['createInstance'](_0x27a29d,this[_0x18f0ad(0x467)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x18f0ad(0x314)]);this['_incrementRevisionNumber']();const _0x4cc0d8=this[_0x18f0ad(0x228)]['createInstance'](_0x38eae9,this[_0x18f0ad(0x467)],this['type'],this['_handler']);return _0x4cc0d8['_updateLocalCache'](),_0x4cc0d8;}[_0x43a61c(0x2f2)](_0x5e84dd){const _0x25b63b=_0x43a61c;return this[_0x25b63b(0x3cd)](!!(_0x5e84dd!=null&&_0x5e84dd['isPermissionRej']));}[_0x43a61c(0x316)](_0x53d55e){const _0x5d7d1e=_0x43a61c;return this[_0x5d7d1e(0x2a0)]>_0x593dba?this[_0x5d7d1e(0x278)]():(this[_0x5d7d1e(0x4e0)]=_0x47a0a0(this[_0x5d7d1e(0x2a0)],{'timeout':this[_0x5d7d1e(0x2a0)],'reqId':_0x53d55e['reqId']}),this[_0x5d7d1e(0x2d3)]=this['_resendTimer'][_0x5d7d1e(0x387)](({reqId:_0x2ad1f1,timeout:_0x54210b})=>{this['_resendWithTimeout'](_0x2ad1f1,_0x54210b);}),this);}['toggleOffline'](){const _0x56bcd0=_0x43a61c;return this[_0x56bcd0(0x4ba)](),this[_0x56bcd0(0x228)]['createInstance'](_0x3675cd,this['unitID'],this[_0x56bcd0(0x393)],this[_0x56bcd0(0x353)],[],this[_0x56bcd0(0x314)]);}[_0x43a61c(0x5b7)](){return this;}['resend'](){const _0x1efd3a=_0x43a61c;this[_0x1efd3a(0x314)]['onSendChangeset'](this[_0x1efd3a(0x353)]);}[_0x43a61c(0x3cd)](_0x1e90ad){const _0x2e9af6=_0x43a61c;return this[_0x2e9af6(0x4ba)](),this[_0x2e9af6(0x228)][_0x2e9af6(0x4eb)](_0x42ef86,this['unitID'],this[_0x2e9af6(0x393)],this[_0x2e9af6(0x353)],[],this[_0x2e9af6(0x314)],_0x1e90ad);}[_0x43a61c(0x455)](_0x21c366,_0x18b2f4){const _0x4ebe2f=_0x43a61c;var _0x54691b;_0x21c366===((_0x54691b=this['_awaitingChangeset'])==null?void 0x0:_0x54691b[_0x4ebe2f(0x5ed)])&&(this[_0x4ebe2f(0x3de)](),this[_0x4ebe2f(0x2a0)]=_0x18b2f4===0x0?0x3e8:_0x18b2f4*0x2);}[_0x43a61c(0x4ba)](){const _0x239e04=_0x43a61c;var _0x5a3272;(_0x5a3272=this[_0x239e04(0x2d3)])==null||_0x5a3272['unsubscribe'](),this['_resendTimeout']=0x0;}};_0x4c9153=_0x27b449([_0x5779a6(0x4,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x5779a6(0x5,_0x58174a[_0x43a61c(0x409)](_0x582bb5['RevisionService'])),_0x5779a6(0x6,_0x58174a[_0x43a61c(0x409)](_0x70db69['LocalCacheService'])),_0x5779a6(0x7,_0x58174a[_0x43a61c(0x512)]),_0x5779a6(0x8,_0x58174a['ILogService']),_0x5779a6(0x9,_0x582bb5[_0x43a61c(0x404)]),_0x5779a6(0xa,_0x58174a[_0x43a61c(0x58c)])],_0x4c9153);let _0xc6160b=class extends _0x4d7c8d{constructor(_0x4692b3,_0x4454e2,_0x5119c0,_0x1f7d70,_0x1a4ad0,_0x29b5a1,_0x46772f,_0x277deb,_0x2b2ca3,_0x240105,_0x22536f,_0x4ecdc3,_0x5b27b0){const _0xd4875d=_0x43a61c;super(_0x4692b3,_0x4454e2,_0x5119c0,_0x1f7d70,_0x1a4ad0,_0x240105,_0x5b27b0,_0x277deb,_0x2b2ca3),_0x4b178e(this,_0xd4875d(0x442),'awaiting_with_pending'),_0x4b178e(this,_0xd4875d(0x2a0),0x0),_0x4b178e(this,_0xd4875d(0x4e0)),_0x4b178e(this,_0xd4875d(0x2d3)),(this[_0xd4875d(0x228)]=_0x46772f,this['_logService']=_0x22536f,this[_0xd4875d(0x49b)]=_0x4ecdc3,_0x29b5a1&&(this['_resendTimer']=_0x29b5a1,this[_0xd4875d(0x2d3)]=this[_0xd4875d(0x4e0)]['subscribe'](({reqId:_0x9917e0,timeout:_0x3c4c58})=>{const _0x50f776=_0xd4875d;this[_0x50f776(0x455)](_0x9917e0,_0x3c4c58);})));}[_0x43a61c(0x580)](_0x248c17){const _0x415fdc=_0x43a61c;return this[_0x415fdc(0x39b)][_0x415fdc(0x311)](_0x248c17),this;}['onRemoteChangeset'](_0x4d1174){const _0x5f3553=_0x43a61c;if(this['_checkMissing'](_0x4d1174))return this[_0x5f3553(0x4ba)](),this[_0x5f3553(0x228)][_0x5f3553(0x4eb)](_0x27a29d,this[_0x5f3553(0x467)],this[_0x5f3553(0x393)],this[_0x5f3553(0x353)],this[_0x5f3553(0x39b)],null,[_0x4d1174],this[_0x5f3553(0x314)]);try{const _0x47ead8=this['_transformService']['transformChangesets']([_0x4d1174],[this[_0x5f3553(0x353)]],!0x1);if(_0x582bb5[_0x5f3553(0x3ff)](_0x47ead8)){const {c1Prime:_0x5edfcb,c2Prime:_0x53d8c1}=_0x47ead8,_0x55060a=this[_0x5f3553(0x49b)][_0x5f3553(0x2c0)](_0x5edfcb[0x0],this[_0x5f3553(0x39b)]);if(_0x582bb5[_0x5f3553(0x237)](_0x55060a)){const {c1Prime:_0x1cbc43,m2Prime:_0x26b832}=_0x55060a;return this[_0x5f3553(0x3e0)](_0x1cbc43),_0x53d8c1[0x0]['baseRev']=this[_0x5f3553(0x27b)](),this['_clearScheduledTask'](),this['_injector'][_0x5f3553(0x4eb)](_0xc6160b,this[_0x5f3553(0x467)],this['type'],_0x53d8c1[0x0],_0x26b832,this[_0x5f3553(0x314)],void 0x0);}throw _0x55060a[_0x5f3553(0x3da)];}throw _0x47ead8[_0x5f3553(0x3da)];}catch(_0x553c77){return this['_logService'][_0x5f3553(0x3da)](_0x553c77),this['_onConflict'](!0x1);}}[_0x43a61c(0x518)](_0x6db490){const _0x3ab033=_0x43a61c;if(this['_clearScheduledTask'](),this[_0x3ab033(0x247)](_0x6db490))return this['_injector'][_0x3ab033(0x4eb)](_0x27a29d,this[_0x3ab033(0x467)],this['type'],null,this[_0x3ab033(0x39b)],this[_0x3ab033(0x353)],[],this[_0x3ab033(0x314)]);this['_incrementRevisionNumber']();const _0x50d5b1=this[_0x3ab033(0x228)][_0x3ab033(0x4eb)](_0x3e6c60,this[_0x3ab033(0x467)],this['type'],this[_0x3ab033(0x39b)],this[_0x3ab033(0x314)]);return _0x50d5b1[_0x3ab033(0x59f)](),_0x50d5b1['_updateLocalCache'](),_0x50d5b1;}['onRemoteRej'](_0x43b320){return this['_onConflict'](!!(_0x43b320!=null&&_0x43b320['isPermissionRej']));}[_0x43a61c(0x316)](_0x279a14){const _0x52b50c=_0x43a61c;return this[_0x52b50c(0x2a0)]>_0x593dba?this[_0x52b50c(0x278)]():(this[_0x52b50c(0x4e0)]=_0x47a0a0(this['_resendTimeout'],{'timeout':this[_0x52b50c(0x2a0)],'reqId':_0x279a14[_0x52b50c(0x5ed)]}),this['_sender']=this[_0x52b50c(0x4e0)][_0x52b50c(0x387)](({reqId:_0x95ce43,timeout:_0xd94b69})=>{const _0x7281aa=_0x52b50c;this[_0x7281aa(0x455)](_0x95ce43,_0xd94b69);}),this);}[_0x43a61c(0x278)](){const _0xd5901a=_0x43a61c;return this[_0xd5901a(0x4ba)](),this[_0xd5901a(0x228)][_0xd5901a(0x4eb)](_0x3675cd,this[_0xd5901a(0x467)],this[_0xd5901a(0x393)],this[_0xd5901a(0x353)],this[_0xd5901a(0x39b)],this[_0xd5901a(0x314)]);}[_0x43a61c(0x5b7)](){return this;}[_0x43a61c(0x3de)](){const _0x919711=_0x43a61c;this[_0x919711(0x314)][_0x919711(0x243)](this['_awaitingChangeset']);}[_0x43a61c(0x3cd)](_0x254780){const _0x5d5f28=_0x43a61c;return this[_0x5d5f28(0x4ba)](),this['_injector'][_0x5d5f28(0x4eb)](_0x42ef86,this[_0x5d5f28(0x467)],this['type'],null,this[_0x5d5f28(0x39b)],this[_0x5d5f28(0x314)],_0x254780);}[_0x43a61c(0x455)](_0xbb57fb,_0x570cb5){const _0x1ddf8c=_0x43a61c;var _0x13e774;_0xbb57fb===((_0x13e774=this[_0x1ddf8c(0x353)])==null?void 0x0:_0x13e774['reqId'])&&(this[_0x1ddf8c(0x3de)](),this[_0x1ddf8c(0x2a0)]=_0x570cb5===0x0?0x3e8:_0x570cb5*0x2);}[_0x43a61c(0x4ba)](){const _0x2c9987=_0x43a61c;var _0x354fa1;(_0x354fa1=this['_sender'])==null||_0x354fa1[_0x2c9987(0x5f6)](),this['_resendTimeout']=0x0;}};_0xc6160b=_0x27b449([_0x5779a6(0x6,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x5779a6(0x7,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x55f)])),_0x5779a6(0x8,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x5d2)])),_0x5779a6(0x9,_0x58174a['ICommandService']),_0x5779a6(0xa,_0x58174a['ILogService']),_0x5779a6(0xb,_0x582bb5['ITransformService']),_0x5779a6(0xc,_0x58174a[_0x43a61c(0x58c)])],_0xc6160b);let _0x42ef86=class extends _0x4d7c8d{constructor(_0x2647cb,_0xe4e2ab,_0x5922db,_0x3e01bd,_0x5b0f8e,_0x3fd385=!0x1,_0xefb173,_0x575a07,_0x16626b,_0x1c806b,_0x57732e,_0x4be093,_0x52288b){const _0x765ff4=_0x43a61c;super(_0x2647cb,_0xe4e2ab,_0x5922db,_0x3e01bd,_0x5b0f8e,_0x575a07,_0x16626b,_0x57732e,_0x1c806b),_0x4b178e(this,_0x765ff4(0x442),'conflict'),(this['_isPermissionRej']=_0x3fd385,this[_0x765ff4(0x22d)]=_0xefb173,this[_0x765ff4(0x29b)]=_0x4be093,this['_notificationService']=_0x52288b,this[_0x765ff4(0x532)](),this['_clearLocalCache'](),this[_0x765ff4(0x21b)]());}[_0x43a61c(0x580)](){return this;}[_0x43a61c(0x4bd)](){return this;}['onRemoteAck'](){return this;}[_0x43a61c(0x2f2)](){return this;}[_0x43a61c(0x316)](){return this;}[_0x43a61c(0x278)](){return this;}['toggleOnline'](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x43a61c(0x5f3)](){const _0x1f342c=_0x43a61c;this[_0x1f342c(0x3e9)][_0x1f342c(0x45f)](this['unitID'],this[_0x1f342c(0x393)],null,[]);}[_0x43a61c(0x532)](){const _0xd1d17f=_0x43a61c;this['_isPermissionRej']?this['_notificationService'][_0xd1d17f(0x1de)]({'title':this[_0xd1d17f(0x29b)]['t'](_0xd1d17f(0x54d)),'content':this['_localeService']['t'](_0xd1d17f(0x2e0)),'type':_0xd1d17f(0x3da),'duration':0x0}):this[_0xd1d17f(0x3ca)][_0xd1d17f(0x1de)]({'title':this[_0xd1d17f(0x29b)]['t'](_0xd1d17f(0x1c6)),'content':this['_localeService']['t'](_0xd1d17f(0x28c)),'type':_0xd1d17f(0x3da),'duration':0x0});}[_0x43a61c(0x21b)](){const _0x57b81c=_0x43a61c;this[_0x57b81c(0x22d)]['updatePermissionPoint'](new _0x46ce2c[(_0x57b81c(0x5e1))](this['unitID'])['id'],!0x1);}};_0x42ef86=_0x27b449([_0x5779a6(0x6,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x2a7)])),_0x5779a6(0x7,_0x58174a[_0x43a61c(0x512)]),_0x5779a6(0x8,_0x58174a[_0x43a61c(0x58c)]),_0x5779a6(0x9,_0x58174a['Inject'](_0x70db69[_0x43a61c(0x5d2)])),_0x5779a6(0xa,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x55f)])),_0x5779a6(0xb,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x3c3)])),_0x5779a6(0xc,_0x130918[_0x43a61c(0x31d)])],_0x42ef86);let _0x3675cd=class extends _0x4d7c8d{constructor(_0x565531,_0xef6316,_0x79493,_0x4f9a97,_0x483350,_0xd1c63f,_0x3c8a71,_0x2cb79a,_0x2a6f49,_0x4678eb){const _0x61aa71=_0x43a61c;super(_0x565531,_0xef6316,_0x79493,_0x4f9a97,_0x483350,_0x2a6f49,_0x4678eb,_0x3c8a71,_0x2cb79a),_0x4b178e(this,_0x61aa71(0x442),_0x61aa71(0x4f4)),this[_0x61aa71(0x228)]=_0xd1c63f;}[_0x43a61c(0x580)](_0x12b009){const _0x53126e=_0x43a61c;return this[_0x53126e(0x39b)]['push'](_0x12b009),this['_updateLocalCache'](),this;}[_0x43a61c(0x4bd)](_0x4eb9ce){const _0x2c10de=_0x43a61c;throw new Error(_0x2c10de(0x2fe));}[_0x43a61c(0x518)](){const _0xbf57b3=_0x43a61c;throw new Error(_0xbf57b3(0x5f8));}[_0x43a61c(0x2f2)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x43a61c(0x316)](){return this;}[_0x43a61c(0x278)](){return this;}[_0x43a61c(0x5b7)](){const _0xbc1f3c=_0x43a61c,{_injector:_0x15ba49,_pendingMutations:_0x33074d,_awaitingChangeset:_0x1d95ee,unitID:_0x48c951,_handler:_0x279ab7,type:_0x13667a}=this,_0x25677e=_0x411044(_0x15ba49,_0x48c951,_0x13667a,_0x1d95ee,_0x33074d,_0x279ab7);return _0x25677e instanceof _0x3e6c60?_0x25677e[_0xbc1f3c(0x59f)]():(_0x25677e instanceof _0xc6160b||_0x25677e instanceof _0x4c9153)&&_0x25677e[_0xbc1f3c(0x3de)](),_0x25677e;}[_0x43a61c(0x3de)](){const _0x437582=_0x43a61c;throw new Error(_0x437582(0x40b));}};_0x3675cd=_0x27b449([_0x5779a6(0x5,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x5779a6(0x6,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x55f)])),_0x5779a6(0x7,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x5d2)])),_0x5779a6(0x8,_0x58174a[_0x43a61c(0x512)]),_0x5779a6(0x9,_0x58174a['IUndoRedoService'])],_0x3675cd);let _0x27a29d=class extends _0x4d7c8d{constructor(_0x502dcc,_0x5eefa0,_0x23b018,_0x3fac31,_0x297055,_0x4d159d,_0x17e168,_0x7a2f50,_0x3e01b4,_0x293ba3,_0x40ed1b,_0x4a3f10,_0x36e1c9,_0x42206b){const _0x2c3204=_0x43a61c;super(_0x502dcc,_0x5eefa0,_0x23b018,_0x3fac31,_0x17e168,_0x4a3f10,_0x36e1c9,_0x3e01b4,_0x293ba3),_0x4b178e(this,'status','fetch_missing'),(this[_0x2c3204(0x220)]=_0x297055,this[_0x2c3204(0x255)]=_0x4d159d,this[_0x2c3204(0x228)]=_0x7a2f50,this[_0x2c3204(0x4e4)]=_0x40ed1b,this[_0x2c3204(0x49b)]=_0x42206b);}['onMissedChangesetFetched'](_0x27e137){const _0xd97f17=_0x43a61c;try{const _0x30be93=[..._0x27e137,...this[_0xd97f17(0x255)]],_0x3c07f3=[this['_awaitingChangeset']||this[_0xd97f17(0x220)]][_0xd97f17(0x221)](_0x34b0a2=>!!_0x34b0a2);let _0x5009c6,_0x2a474f;if(_0x3c07f3[_0xd97f17(0x58f)]){const _0x42788c=this[_0xd97f17(0x49b)][_0xd97f17(0x34a)](_0x30be93,_0x3c07f3,!0x1);if(!_0x582bb5[_0xd97f17(0x3ff)](_0x42788c))throw _0x42788c[_0xd97f17(0x3da)];_0x5009c6=_0x42788c[_0xd97f17(0x354)],_0x2a474f=_0x42788c[_0xd97f17(0x43d)];}else _0x5009c6=_0x30be93,_0x2a474f=[];let _0x41df9b=this[_0xd97f17(0x39b)];_0x5009c6[_0xd97f17(0x348)](_0x365a7f=>{const _0x501e4b=_0xd97f17;let _0x1e90e7;if(_0x41df9b['length']){const _0x62fe05=this['_transformService'][_0x501e4b(0x2c0)](_0x365a7f,_0x41df9b);if(!_0x582bb5[_0x501e4b(0x237)](_0x62fe05))throw _0x62fe05['error'];_0x1e90e7=_0x62fe05[_0x501e4b(0x354)],_0x41df9b=_0x62fe05[_0x501e4b(0x402)];}else _0x1e90e7=_0x365a7f;this['_executeRemoteChangeset'](_0x1e90e7);}),this['_acknowledgedAwaitingChangeset']&&this[_0xd97f17(0x539)](),this[_0xd97f17(0x353)]&&_0x2a474f['length']&&(_0x2a474f[0x0][_0xd97f17(0x266)]=this['_getCurrentRevision']());let _0x48656c;if(this[_0xd97f17(0x353)]&&_0x41df9b[_0xd97f17(0x58f)]!==0x0)_0x48656c=this[_0xd97f17(0x228)]['createInstance'](_0xc6160b,this[_0xd97f17(0x467)],this[_0xd97f17(0x393)],_0x2a474f[0x0],_0x41df9b,this[_0xd97f17(0x314)],void 0x0);else{if(this[_0xd97f17(0x353)]&&_0x41df9b['length']===0x0)_0x2a474f[0x0][_0xd97f17(0x266)]=this[_0xd97f17(0x27b)](),_0x48656c=this[_0xd97f17(0x228)][_0xd97f17(0x4eb)](_0x4c9153,this['unitID'],this[_0xd97f17(0x393)],_0x2a474f[0x0],this['_handler']);else{if(_0x41df9b[_0xd97f17(0x58f)]!==0x0){const _0x11d51f=this['_injector'][_0xd97f17(0x4eb)](_0x3e6c60,this[_0xd97f17(0x467)],this['type'],_0x41df9b,this[_0xd97f17(0x314)]);_0x11d51f['_schedule'](),_0x48656c=_0x11d51f;}else _0x48656c=this[_0xd97f17(0x228)][_0xd97f17(0x4eb)](_0x38eae9,this['unitID'],this['type'],this[_0xd97f17(0x314)]);}}return _0x48656c[_0xd97f17(0x5c7)](),_0x48656c;}catch(_0x2f29d9){return this['_logService']['error']('[FetchMissState]',_0xd97f17(0x536),_0x2f29d9),this[_0xd97f17(0x228)][_0xd97f17(0x4eb)](_0x42ef86,this[_0xd97f17(0x467)],this[_0xd97f17(0x393)],this[_0xd97f17(0x353)],this['_pendingMutations'],this[_0xd97f17(0x314)],!0x1);}}['resend'](){const _0x235e4b=_0x43a61c;throw new Error(_0x235e4b(0x36f));}['appendMutation'](_0x3ea745){const _0x572d3d=_0x43a61c;return this[_0x572d3d(0x39b)][_0x572d3d(0x311)](_0x3ea745),this;}[_0x43a61c(0x4bd)](_0x26692d){const _0x1de5df=_0x43a61c;return this[_0x1de5df(0x255)][_0x1de5df(0x311)](_0x26692d),this;}[_0x43a61c(0x518)](_0x53110d){const _0xde7495=_0x43a61c;if(this[_0xde7495(0x353)])return this[_0xde7495(0x220)]=this[_0xde7495(0x353)],this[_0xde7495(0x353)]=null,this;throw new Error(_0xde7495(0x3dd));}[_0x43a61c(0x2f2)](_0x43474f){const _0x3db721=_0x43a61c;return this[_0x3db721(0x3cd)](!!(_0x43474f!=null&&_0x43474f[_0x3db721(0x469)]));}[_0x43a61c(0x316)](){return this;}[_0x43a61c(0x278)](){const _0x24a615=_0x43a61c;return this[_0x24a615(0x228)][_0x24a615(0x4eb)](_0x3675cd,this[_0x24a615(0x467)],this[_0x24a615(0x393)],this['_awaitingChangeset'],this[_0x24a615(0x39b)],this[_0x24a615(0x314)]);}[_0x43a61c(0x5b7)](){return this;}['_onConflict'](_0x34a074){const _0x2f0c75=_0x43a61c;return this[_0x2f0c75(0x228)][_0x2f0c75(0x4eb)](_0x42ef86,this['unitID'],this['type'],this[_0x2f0c75(0x353)],this['_pendingMutations'],this[_0x2f0c75(0x314)],_0x34a074);}};_0x27a29d=_0x27b449([_0x5779a6(0x7,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x5779a6(0x8,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x55f)])),_0x5779a6(0x9,_0x58174a['Inject'](_0x70db69[_0x43a61c(0x5d2)])),_0x5779a6(0xa,_0x58174a[_0x43a61c(0x2d2)]),_0x5779a6(0xb,_0x58174a[_0x43a61c(0x512)]),_0x5779a6(0xc,_0x58174a[_0x43a61c(0x58c)]),_0x5779a6(0xd,_0x582bb5[_0x43a61c(0x404)])],_0x27a29d);function _0x411044(_0x4aaf6c,_0x3fabf3,_0x1e3a29,_0xaf2085,_0x6904ff,_0x547d69){const _0x19cc5c=_0x43a61c;return _0xaf2085&&_0x6904ff[_0x19cc5c(0x58f)]?_0x4aaf6c[_0x19cc5c(0x4eb)](_0xc6160b,_0x3fabf3,_0x1e3a29,_0xaf2085,_0x6904ff,_0x547d69,void 0x0):_0xaf2085?_0x4aaf6c[_0x19cc5c(0x4eb)](_0x4c9153,_0x3fabf3,_0x1e3a29,_0xaf2085,_0x547d69):_0x6904ff[_0x19cc5c(0x58f)]?_0x4aaf6c[_0x19cc5c(0x4eb)](_0x3e6c60,_0x3fabf3,_0x1e3a29,_0x6904ff,_0x547d69):_0x4aaf6c[_0x19cc5c(0x4eb)](_0x38eae9,_0x3fabf3,_0x1e3a29,_0x547d69);}var _0x310c4d=Object[_0x43a61c(0x408)],_0x34382c=Object[_0x43a61c(0x33d)],_0x5a71dc=(_0x281d4d,_0x21cac2,_0x4b49d8,_0x5c3f55)=>{const _0x170e87=_0x43a61c;for(var _0x25456a=_0x5c3f55>0x1?void 0x0:_0x5c3f55?_0x34382c(_0x21cac2,_0x4b49d8):_0x21cac2,_0x5e6d5f=_0x281d4d[_0x170e87(0x58f)]-0x1,_0x461b6b;_0x5e6d5f>=0x0;_0x5e6d5f--)(_0x461b6b=_0x281d4d[_0x5e6d5f])&&(_0x25456a=(_0x5c3f55?_0x461b6b(_0x21cac2,_0x4b49d8,_0x25456a):_0x461b6b(_0x25456a))||_0x25456a);return _0x5c3f55&&_0x25456a&&_0x310c4d(_0x21cac2,_0x4b49d8,_0x25456a),_0x25456a;},_0x3ef896=(_0xa42cf0,_0x37b1f2)=>(_0x5530a7,_0x2843ae)=>_0x37b1f2(_0x5530a7,_0x2843ae,_0xa42cf0);_0x70db69['CollaborationEntity']=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x20a019,_0x1a3ab6,_0x5b0ff3,_0xa65048,_0xf564a7,_0x5a6693,_0x2a81ff,_0x437463,_0x3221d6,_0x11636c,_0x383923,_0xcdc4a4,_0x3cd08c){const _0x1e66b2=_0x43a61c;super(),_0x4b178e(this,'_state$',new _0x1678b1[(_0x1e66b2(0x44b))](null)),_0x4b178e(this,_0x1e66b2(0x41a),this[_0x1e66b2(0x3a9)][_0x1e66b2(0x5dc)]()),_0x4b178e(this,'_state'),_0x4b178e(this,_0x1e66b2(0x4af),!0x1),_0x4b178e(this,_0x1e66b2(0x301),''),_0x4b178e(this,_0x1e66b2(0x28d),0x0),_0x4b178e(this,_0x1e66b2(0x55e),this['state$'][_0x1e66b2(0x4c7)](_0x1678b1['map'](_0x5ba90d=>_0x5ba90d?_0x5ba90d[_0x1e66b2(0x442)]:_0x29d72b[_0x1e66b2(0x25d)]),_0x1678b1['shareReplay'](0x1))),_0x4b178e(this,_0x1e66b2(0x4f3),!0x1),_0x4b178e(this,_0x1e66b2(0x446),[]),(this[_0x1e66b2(0x467)]=_0x20a019,this[_0x1e66b2(0x504)]=_0x1a3ab6,this[_0x1e66b2(0x493)]=_0x5b0ff3,this[_0x1e66b2(0x228)]=_0xa65048,this[_0x1e66b2(0x3e9)]=_0xf564a7,this[_0x1e66b2(0x463)]=_0x5a6693,this[_0x1e66b2(0x29b)]=_0x2a81ff,this[_0x1e66b2(0x2f6)]=_0x437463,this[_0x1e66b2(0x4e4)]=_0x3221d6,this[_0x1e66b2(0x4ea)]=_0x11636c,this['_messageService']=_0x383923,this[_0x1e66b2(0x22d)]=_0xcdc4a4,this['_singleActiveUnitService']=_0x3cd08c);}get[_0x43a61c(0x41d)](){const _0x7c3b34=_0x43a61c;return this[_0x7c3b34(0x581)];}async[_0x43a61c(0x595)](){const _0x217116=_0x43a61c;if(this[_0x217116(0x41d)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x217116(0x48d)]();}['pauseCollaboration'](){const _0x28de61=_0x43a61c;return this['_collaborationPaused']=!0x0,_0x58174a[_0x28de61(0x1ca)](()=>{const _0x5976c4=_0x28de61;this['_collaborationPaused']=!0x1,this[_0x5976c4(0x2f7)]();});}[_0x43a61c(0x4d5)](_0x34a3fd){const _0x1bd6b4=_0x43a61c;this[_0x1bd6b4(0x581)]=_0x34a3fd,this[_0x1bd6b4(0x3a9)][_0x1bd6b4(0x46c)](_0x34a3fd);}async['_init'](){const _0x3b4300=_0x43a61c;var _0x28c313;this['_updateState'](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x28c313=this[_0x3b4300(0x1f4)])==null||_0x28c313['editingUnit'](this[_0x3b4300(0x467)]),this[_0x3b4300(0x502)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x3b4300(0x467)])[_0x3b4300(0x387)](_0x3ea77c=>{const _0xf74837=_0x3b4300;this[_0xf74837(0x4e4)][_0xf74837(0x3f7)](_0xf74837(0x51d),_0xf74837(0x4ed),_0x3ea77c),_0x3ea77c===_0x4787c6[_0xf74837(0x4fb)]?(this[_0xf74837(0x4a6)]['show']({'content':this[_0xf74837(0x29b)]['t'](_0xf74837(0x51f)),'type':_0x2738af['MessageType'][_0xf74837(0x4ae)]}),this[_0xf74837(0x22d)][_0xf74837(0x478)](new _0x46ce2c[(_0xf74837(0x5e1))](this[_0xf74837(0x467)])['id'],!0x1),this[_0xf74837(0x22d)]['setShowComponents'](!0x1)):(this['_permissionService'][_0xf74837(0x478)](new _0x46ce2c[(_0xf74837(0x5e1))](this[_0xf74837(0x467)])['id'],!0x0),this[_0xf74837(0x22d)]['setShowComponents'](!0x0));})));let _0x3b7082=!0x1;return this['disposeWithMe'](this[_0x3b4300(0x504)][_0x3b4300(0x2d7)][_0x3b4300(0x387)](_0x1c6fd8=>{const _0x2e504a=_0x3b4300;_0x1c6fd8===_0x50c5ae['ONLINE']?this['_toggleOnline'](_0x3b7082):_0x1c6fd8===_0x50c5ae[_0x2e504a(0x25d)]&&(_0x3b7082=!0x0,this[_0x2e504a(0x35a)]());})),this[_0x3b4300(0x502)](this[_0x3b4300(0x504)][_0x3b4300(0x39f)][_0x3b4300(0x387)](_0x57aa4d=>{const _0x391c95=_0x3b4300;try{switch(_0x57aa4d[_0x391c95(0x5ce)]){case _0x582bb5[_0x391c95(0x240)]['NEW_CHANGESETS']:{this[_0x391c95(0x4c6)](_0x582bb5[_0x391c95(0x239)](_0x57aa4d['data']));break;}case _0x582bb5['CollaborationEvent'][_0x391c95(0x310)]:{this[_0x391c95(0x287)](_0x57aa4d[_0x391c95(0x416)]);break;}case _0x582bb5[_0x391c95(0x240)][_0x391c95(0x3d5)]:{this[_0x391c95(0x4f0)]();break;}case _0x582bb5['CollaborationEvent'][_0x391c95(0x31c)]:{this[_0x391c95(0x324)](_0x57aa4d[_0x391c95(0x416)]);break;}case _0x582bb5[_0x391c95(0x240)][_0x391c95(0x3a0)]:{this['_onFetchMissResult'](_0x57aa4d[_0x391c95(0x416)][_0x391c95(0x382)][_0x391c95(0x339)](_0x244057=>_0x582bb5[_0x391c95(0x239)](_0x244057)));break;}case _0x582bb5[_0x391c95(0x240)][_0x391c95(0x2e6)]:this[_0x391c95(0x4f0)]({'isPermissionRej':!0x0});}}catch(_0x460e28){throw console[_0x391c95(0x3da)]('Error\x20on\x20receiving\x20event',_0x460e28),_0x460e28;}})),this[_0x3b4300(0x581)];}[_0x43a61c(0x479)](){const _0x2a888e=_0x43a61c;this[_0x2a888e(0x4f3)]=!0x1;}['_lockTransition'](){const _0x3aa85b=_0x43a61c;if(this[_0x3aa85b(0x4f3)])throw new Error(_0x3aa85b(0x5be));this[_0x3aa85b(0x4f3)]=!0x0;}[_0x43a61c(0x1df)](_0x2d3302){const _0x21d143=_0x43a61c;this[_0x21d143(0x4b1)](),this['_updateState'](this[_0x21d143(0x581)]['appendMutation'](_0x2d3302)),this[_0x21d143(0x479)]();}[_0x43a61c(0x4c6)](_0x3b0e3e){const _0x4bdd99=_0x43a61c;if(!(_0x3b0e3e[_0x4bdd99(0x374)]<=this[_0x4bdd99(0x2f6)][_0x4bdd99(0x38c)](this[_0x4bdd99(0x467)]))){if(this[_0x4bdd99(0x4af)]){this[_0x4bdd99(0x446)]['push'](_0x3b0e3e);return;}this[_0x4bdd99(0x43a)](_0x3b0e3e);}}[_0x43a61c(0x2f7)](){const _0x64922d=_0x43a61c;this[_0x64922d(0x446)][_0x64922d(0x348)](_0x420a3c=>this[_0x64922d(0x43a)](_0x420a3c)),this[_0x64922d(0x446)]=[];}[_0x43a61c(0x43a)](_0xc6c0ae){const _0x32e6aa=_0x43a61c,_0x300de6=this['_compressMutationService'][_0x32e6aa(0x385)][_0x32e6aa(0x50f)](this[_0x32e6aa(0x463)][_0x32e6aa(0x385)][_0x32e6aa(0x2ad)]()[_0x32e6aa(0x4dd)])(_0xc6c0ae['mutations'],null)||_0xc6c0ae[_0x32e6aa(0x5f4)],_0x9d9162={..._0xc6c0ae,'mutations':_0x300de6};this[_0x32e6aa(0x4b1)](),this[_0x32e6aa(0x4d5)](this[_0x32e6aa(0x581)][_0x32e6aa(0x4bd)](_0x9d9162)),this['_unlockTransition']();}[_0x43a61c(0x287)](_0x2f4db3){const _0x2750c0=_0x43a61c;this[_0x2750c0(0x4b1)](),this[_0x2750c0(0x4d5)](this[_0x2750c0(0x581)]['onRemoteAck'](_0x2f4db3)),this[_0x2750c0(0x479)]();}[_0x43a61c(0x4f0)](_0x33f710){const _0x4e7d22=_0x43a61c;this[_0x4e7d22(0x4b1)](),this[_0x4e7d22(0x4d5)](this[_0x4e7d22(0x581)][_0x4e7d22(0x2f2)](_0x33f710)),this[_0x4e7d22(0x479)]();}[_0x43a61c(0x324)](_0x358cc5){const _0x267e6e=_0x43a61c;this['_lockTransition'](),this[_0x267e6e(0x4d5)](this[_0x267e6e(0x581)][_0x267e6e(0x316)](_0x358cc5)),this[_0x267e6e(0x479)]();}[_0x43a61c(0x422)](_0x926943){const _0x4bccdf=_0x43a61c;if(!(this[_0x4bccdf(0x581)]instanceof _0x27a29d))throw new TypeError(_0x4bccdf(0x32c));const _0x241253=_0x926943[_0x4bccdf(0x339)](_0x4ef377=>{const _0x4925e1=_0x4bccdf,_0x17d2ea=this[_0x4925e1(0x463)][_0x4925e1(0x385)][_0x4925e1(0x50f)](this[_0x4925e1(0x463)][_0x4925e1(0x385)]['getInterceptPoints']()[_0x4925e1(0x4dd)])(_0x4ef377[_0x4925e1(0x5f4)],null)||_0x4ef377[_0x4925e1(0x5f4)];return{..._0x4ef377,'mutations':_0x17d2ea};});this['_lockTransition'](),this[_0x4bccdf(0x4d5)](this['_state'][_0x4bccdf(0x576)](_0x241253)),this[_0x4bccdf(0x479)]();}[_0x43a61c(0x35a)](){const _0x3c60df=_0x43a61c;this['_lockTransition'](),this[_0x3c60df(0x4d5)](this[_0x3c60df(0x581)][_0x3c60df(0x278)]()),this[_0x3c60df(0x479)]();}['_toggleOnline'](_0x458454=!0x1){const _0x4e2c4b=_0x43a61c;this[_0x4e2c4b(0x4b1)](),this[_0x4e2c4b(0x4d5)](this[_0x4e2c4b(0x581)][_0x4e2c4b(0x5b7)]()),this[_0x4e2c4b(0x479)]();const _0x4bc3c2=this[_0x4e2c4b(0x581)];_0x458454&&_0x4bc3c2 instanceof _0x38eae9&&(this['_lockTransition'](),this['_updateState'](_0x4bc3c2[_0x4e2c4b(0x602)]()),this[_0x4e2c4b(0x479)]());}async[_0x43a61c(0x5da)](){return new Promise(_0x344c77=>{const _0x38ec5e=_0xa224;this[_0x38ec5e(0x504)][_0x38ec5e(0x2d7)][_0x38ec5e(0x4c7)](_0x1678b1['take'](0x1))[_0x38ec5e(0x387)](async _0x5725cb=>{const _0x39a6a0=_0x38ec5e;_0x344c77(await this[_0x39a6a0(0x3d1)](_0x5725cb===_0x50c5ae[_0x39a6a0(0x503)]));});});}['_createHandler'](){const _0x3a6e17=_0x43a61c,_0x5437ee=this[_0x3a6e17(0x467)];return{'onStateChange':(_0x25b3e9,_0x193571)=>{const _0x1c259e=_0x3a6e17;if(_0x25b3e9!==this[_0x1c259e(0x581)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x25b3e9[_0x1c259e(0x442)]+'\x0aAfter:\x20'+_0x193571[_0x1c259e(0x442)]+_0x1c259e(0x1cb)+this[_0x1c259e(0x581)][_0x1c259e(0x442)]);this[_0x1c259e(0x4d5)](_0x193571);},'onSendChangeset':_0x497569=>{const _0x175087=_0x3a6e17;_0x497569[_0x175087(0x2de)]||(_0x497569[_0x175087(0x2de)]=this['_changesetSessionId'],_0x497569[_0x175087(0x5ed)]=++this['_changesetReqId']);const _0x2d108f={'eventID':_0x582bb5[_0x175087(0x240)][_0x175087(0x413)],'data':{'unitID':_0x497569['unitID'],'unitType':this[_0x175087(0x493)],'changeset':_0x497569,'memberID':this[_0x175087(0x504)][_0x175087(0x2c8)]()}};this[_0x175087(0x504)][_0x175087(0x417)](_0x2d108f,this[_0x175087(0x467)]);},'onMissingChangesets':({from:_0x3f6d8b,to:_0x14fada})=>{const _0x4a9903=_0x3a6e17;this[_0x4a9903(0x4e4)]['debug']('[CollaborationEntity]',_0x4a9903(0x4c1)+_0x3f6d8b+_0x4a9903(0x325)+_0x14fada);const _0x1c5e48={'eventID':_0x582bb5[_0x4a9903(0x240)][_0x4a9903(0x283)],'data':{'unitID':_0x5437ee,'unitType':this[_0x4a9903(0x493)],'from':_0x3f6d8b,'to':_0x14fada}};this['session'][_0x4a9903(0x417)](_0x1c5e48,this[_0x4a9903(0x467)]);}};}async[_0x43a61c(0x3d1)](_0x57dba0){const _0xe2d374=_0x43a61c;var _0x2c246e,_0x476cc9;const _0x4f1920=await this[_0xe2d374(0x3e9)][_0xe2d374(0x5f1)](this[_0xe2d374(0x467)]),_0x361804=(_0x2c246e=_0x4f1920==null?void 0x0:_0x4f1920[_0xe2d374(0x5f4)])!=null?_0x2c246e:[],_0xb0874d=(_0x476cc9=_0x4f1920==null?void 0x0:_0x4f1920[_0xe2d374(0x4b9)])!=null?_0x476cc9:null,_0x24bdd9=!!(_0xb0874d!=null&&_0xb0874d[_0xe2d374(0x2de)])&&!!(_0xb0874d!=null&&_0xb0874d[_0xe2d374(0x5ed)]);this[_0xe2d374(0x301)]=_0x24bdd9?_0xb0874d[_0xe2d374(0x2de)]:_0x15aa1b(),this[_0xe2d374(0x28d)]=_0x24bdd9?_0xb0874d[_0xe2d374(0x5ed)]:0x0;const _0x370d64=this['unitID'];try{this[_0xe2d374(0x241)](_0xb0874d,_0x361804);}catch(_0x4ac8a4){this[_0xe2d374(0x4e4)][_0xe2d374(0x3da)](_0x4ac8a4);}const _0x54768c=this[_0xe2d374(0x56e)]();if(_0x57dba0){const _0x2c7c13=_0x411044(this[_0xe2d374(0x228)],_0x370d64,this[_0xe2d374(0x493)],_0xb0874d,_0x361804,_0x54768c);return _0x2c7c13 instanceof _0x3e6c60?_0x2c7c13[_0xe2d374(0x59f)]():(_0x2c7c13 instanceof _0xc6160b||_0x2c7c13 instanceof _0x4c9153)&&_0x2c7c13[_0xe2d374(0x3de)](),_0x2c7c13;}return this['_injector'][_0xe2d374(0x4eb)](_0x3675cd,_0x370d64,this[_0xe2d374(0x493)],_0xb0874d,_0x361804,_0x54768c);}[_0x43a61c(0x241)](_0x28f564,_0x10b940){const _0xe7edae=_0x43a61c;var _0x514c29,_0x11f5f8;const _0x22425c=this[_0xe7edae(0x463)][_0xe7edae(0x385)][_0xe7edae(0x50f)](this['_compressMutationService'][_0xe7edae(0x385)][_0xe7edae(0x2ad)]()[_0xe7edae(0x4dd)]);(_0x514c29=_0x22425c((_0x28f564==null?void 0x0:_0x28f564[_0xe7edae(0x5f4)])||[],null))==null||_0x514c29[_0xe7edae(0x348)](_0x43fd03=>this[_0xe7edae(0x4ea)][_0xe7edae(0x45c)](_0x43fd03['id'],_0x43fd03[_0xe7edae(0x559)])),(_0x11f5f8=_0x22425c(_0x10b940||[],null))==null||_0x11f5f8[_0xe7edae(0x348)](_0x11c1cd=>this[_0xe7edae(0x4ea)][_0xe7edae(0x45c)](_0x11c1cd['id'],_0x11c1cd[_0xe7edae(0x559)]));}},_0x70db69[_0x43a61c(0x274)]=_0x5a71dc([_0x3ef896(0x3,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x317)])),_0x3ef896(0x4,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x5d2)])),_0x3ef896(0x5,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x1e5)])),_0x3ef896(0x6,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x3c3)])),_0x3ef896(0x7,_0x58174a[_0x43a61c(0x409)](_0x582bb5['RevisionService'])),_0x3ef896(0x8,_0x58174a['ILogService']),_0x3ef896(0x9,_0x58174a[_0x43a61c(0x512)]),_0x3ef896(0xa,_0x130918['IMessageService']),_0x3ef896(0xb,_0x58174a[_0x43a61c(0x2a7)]),_0x3ef896(0xc,_0x58174a[_0x43a61c(0x573)](_0x181a0e))],_0x70db69[_0x43a61c(0x274)]),_0x70db69[_0x43a61c(0x56c)]=class extends _0x70db69[_0x43a61c(0x274)]{constructor(_0x1a0e34,_0x1b7e3d,_0x4d9441,_0x17eb75,_0x18ac90,_0xb44edd,_0xfd8fcd,_0x168f70,_0x51e526,_0x357a02,_0x287486,_0x561932,_0x62c5b7,_0xcb5a2a,_0x31092e,_0x52c1d8,_0x28caea){const _0x2d5968=_0x43a61c;super(_0x1a0e34,_0x4d9441,_0x1b7e3d,_0x17eb75,_0x18ac90,_0xb44edd,_0xfd8fcd,_0x168f70,_0x62c5b7,_0xcb5a2a,_0x31092e,_0x52c1d8,_0x28caea),this[_0x2d5968(0x467)]=_0x1a0e34,this[_0x2d5968(0x393)]=_0x1b7e3d,this[_0x2d5968(0x3bf)]=_0x51e526,this[_0x2d5968(0x22c)]=_0x357a02,this[_0x2d5968(0x1f1)]=_0x287486,this[_0x2d5968(0x30a)]=_0x561932;}[_0x43a61c(0x56e)](){const _0x22b565=_0x43a61c,_0x39e137=super[_0x22b565(0x56e)]();return _0x39e137['onTransformIME']=_0x2a36e3=>this[_0x22b565(0x22c)][_0x22b565(0x55c)](_0x2a36e3),_0x39e137[_0x22b565(0x3fe)]=_0x39c5e3=>this[_0x22b565(0x1f1)][_0x22b565(0x5a7)](_0x39c5e3),_0x39e137['onSyncEditingCollabCursor']=_0x13bf41=>this[_0x22b565(0x30a)][_0x22b565(0x296)](_0x13bf41),_0x39e137[_0x22b565(0x2cb)]=_0x1a3dc6=>this['_docTransformIMECacheService'][_0x22b565(0x23a)](_0x1a3dc6),_0x39e137;}async[_0x43a61c(0x48d)](){const _0x9679ae=_0x43a61c,_0x4f49a1=await super[_0x9679ae(0x48d)]();return this[_0x9679ae(0x3bf)][_0x9679ae(0x27a)][_0x9679ae(0x4c7)](_0x1678b1[_0x9679ae(0x346)](this['dispose$']))['subscribe'](_0x36c127=>{const _0xa20f75=_0x9679ae;if(_0x36c127==null)return;const {unitId:_0x393984,redoState:_0x44aab8,commandId:_0x3a2850}=_0x36c127;if(_0x393984!==this[_0xa20f75(0x467)])return;const _0x713a56={'id':_0x3a2850,'type':_0x58174a[_0xa20f75(0x30e)][_0xa20f75(0x59a)],'params':{'unitId':_0x393984,'actions':_0x44aab8[_0xa20f75(0x378)],'textRanges':null}};this['_onLocalMutation'](_0x713a56);}),_0x4f49a1;}},_0x70db69[_0x43a61c(0x56c)]=_0x5a71dc([_0x3ef896(0x3,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x3ef896(0x4,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x5d2)])),_0x3ef896(0x5,_0x58174a[_0x43a61c(0x409)](_0x582bb5['CompressMutationService'])),_0x3ef896(0x6,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x3c3)])),_0x3ef896(0x7,_0x58174a[_0x43a61c(0x409)](_0x582bb5['RevisionService'])),_0x3ef896(0x8,_0x58174a[_0x43a61c(0x409)](_0x19fc97[_0x43a61c(0x470)])),_0x3ef896(0x9,_0x58174a[_0x43a61c(0x409)](_0x144cfe)),_0x3ef896(0xa,_0x58174a[_0x43a61c(0x409)](_0x5f5364)),_0x3ef896(0xb,_0x58174a[_0x43a61c(0x409)](_0x3bf307)),_0x3ef896(0xc,_0x58174a[_0x43a61c(0x2d2)]),_0x3ef896(0xd,_0x58174a[_0x43a61c(0x512)]),_0x3ef896(0xe,_0x130918[_0x43a61c(0x423)]),_0x3ef896(0xf,_0x58174a[_0x43a61c(0x2a7)]),_0x3ef896(0x10,_0x58174a['Optional'](_0x181a0e))],_0x70db69[_0x43a61c(0x56c)]),_0x70db69['SheetCollaborationEntity']=class extends _0x70db69[_0x43a61c(0x274)]{constructor(_0x2ab83f,_0x2a569b,_0x2ed65e,_0x1fea37,_0x3ac859,_0x1f4ad9,_0x1f2b83,_0x2868e7,_0x31c9f2,_0x234737,_0x110d9e,_0x483e01,_0x47dcab,_0x5b4b41){const _0x33d219=_0x43a61c;super(_0x2ab83f,_0x2ed65e,_0x2a569b,_0x1fea37,_0x3ac859,_0x1f4ad9,_0x1f2b83,_0x2868e7,_0x234737,_0x110d9e,_0x483e01,_0x47dcab,_0x5b4b41),this[_0x33d219(0x467)]=_0x2ab83f,this[_0x33d219(0x393)]=_0x2a569b,this[_0x33d219(0x538)]=_0x31c9f2;}[_0x43a61c(0x56e)](){const _0x4b5822=_0x43a61c,_0x74f9fe=super[_0x4b5822(0x56e)]();return _0x74f9fe[_0x4b5822(0x3fe)]=_0x20fc0b=>this['_sheetTransformSelectionsService'][_0x4b5822(0x5a7)](_0x20fc0b),_0x74f9fe;}async[_0x43a61c(0x48d)](){const _0x5e95cf=_0x43a61c,_0x186ea7=await super[_0x5e95cf(0x48d)]();return this[_0x5e95cf(0x502)](this['_commandService'][_0x5e95cf(0x2ec)]((_0x3288a8,_0x4d6679)=>{const _0x29304e=_0x5e95cf;if(_0x3288a8[_0x29304e(0x393)]!==_0x58174a[_0x29304e(0x30e)][_0x29304e(0x59a)]||_0x4d6679!=null&&_0x4d6679[_0x29304e(0x5cf)]||_0x4d6679!=null&&_0x4d6679[_0x29304e(0x1d0)])return;const _0x841699=_0x3288a8['params'];if((_0x841699==null?void 0x0:_0x841699[_0x29304e(0x517)])!==this['unitID'])return;const _0x581209=_0x3288a8,_0x458d62=this[_0x29304e(0x463)][_0x29304e(0x385)]['fetchThroughInterceptors'](this[_0x29304e(0x463)]['interceptor'][_0x29304e(0x2ad)]()[_0x29304e(0x323)])([_0x581209],null)||[_0x581209];this[_0x29304e(0x1df)](_0x458d62[0x0]);})),_0x186ea7;}},_0x70db69[_0x43a61c(0x1e2)]=_0x5a71dc([_0x3ef896(0x3,_0x58174a['Inject'](_0x58174a['Injector'])),_0x3ef896(0x4,_0x58174a['Inject'](_0x70db69[_0x43a61c(0x5d2)])),_0x3ef896(0x5,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x1e5)])),_0x3ef896(0x6,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x3c3)])),_0x3ef896(0x7,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x55f)])),_0x3ef896(0x8,_0x58174a[_0x43a61c(0x409)](_0xb4edfb)),_0x3ef896(0x9,_0x58174a[_0x43a61c(0x2d2)]),_0x3ef896(0xa,_0x58174a[_0x43a61c(0x512)]),_0x3ef896(0xb,_0x130918[_0x43a61c(0x423)]),_0x3ef896(0xc,_0x58174a[_0x43a61c(0x2a7)]),_0x3ef896(0xd,_0x58174a[_0x43a61c(0x573)](_0x181a0e))],_0x70db69[_0x43a61c(0x1e2)]);var _0x5b8bc2=Object['defineProperty'],_0x295344=Object[_0x43a61c(0x33d)],_0x404d8b=(_0x39f788,_0x489dc1,_0x22680c,_0x3edf5a)=>{const _0x2d1707=_0x43a61c;for(var _0x5c8503=_0x3edf5a>0x1?void 0x0:_0x3edf5a?_0x295344(_0x489dc1,_0x22680c):_0x489dc1,_0x5bc112=_0x39f788[_0x2d1707(0x58f)]-0x1,_0x4079bd;_0x5bc112>=0x0;_0x5bc112--)(_0x4079bd=_0x39f788[_0x5bc112])&&(_0x5c8503=(_0x3edf5a?_0x4079bd(_0x489dc1,_0x22680c,_0x5c8503):_0x4079bd(_0x5c8503))||_0x5c8503);return _0x3edf5a&&_0x5c8503&&_0x5b8bc2(_0x489dc1,_0x22680c,_0x5c8503),_0x5c8503;},_0x53bdfc=(_0x350001,_0x46bf81)=>(_0x58e40e,_0x5e8050)=>_0x46bf81(_0x58e40e,_0x5e8050,_0x350001);_0x70db69[_0x43a61c(0x578)]=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x3fc4a5,_0x220512,_0x59b169){const _0x396dc5=_0x43a61c;super(),_0x4b178e(this,_0x396dc5(0x564),new Map()),_0x4b178e(this,_0x396dc5(0x59e),new _0x1678b1[(_0x396dc5(0x520))]()),(this['_injector']=_0x3fc4a5,this['_collabSessionService']=_0x220512,this[_0x396dc5(0x360)]=_0x59b169,this[_0x396dc5(0x48d)]());}[_0x43a61c(0x4b0)](){const _0x5360cf=_0x43a61c;super[_0x5360cf(0x4b0)](),this[_0x5360cf(0x564)][_0x5360cf(0x348)](_0x1acd1f=>_0x1acd1f[_0x5360cf(0x4b0)]()),this[_0x5360cf(0x564)][_0x5360cf(0x48e)]();}[_0x43a61c(0x4a7)](_0x19fdae){const _0x3820f0=_0x43a61c;var _0x556d43;return(_0x556d43=this[_0x3820f0(0x564)][_0x3820f0(0x40a)](_0x19fdae))!=null?_0x556d43:null;}[_0x43a61c(0x2c1)](_0x1b1cf7){const _0x1cf5ed=_0x43a61c,_0x474915=this['getCollabEntity'](_0x1b1cf7);return _0x474915?_0x1678b1['of'](_0x474915):this[_0x1cf5ed(0x59e)][_0x1cf5ed(0x4c7)](_0x5ab054[_0x1cf5ed(0x221)](_0x51bc68=>_0x51bc68[_0x1cf5ed(0x467)]===_0x1b1cf7));}[_0x43a61c(0x48d)](){const _0x224403=_0x43a61c;this[_0x224403(0x360)][_0x224403(0x36d)](_0x58174a[_0x224403(0x37e)][_0x224403(0x264)])[_0x224403(0x4c7)](_0x1678b1[_0x224403(0x346)](this[_0x224403(0x341)]),_0x5ab054[_0x224403(0x286)](0x10))[_0x224403(0x387)](async _0x2a3b5d=>{const _0x599c21=_0x224403,_0x1c1807=_0x2a3b5d[_0x599c21(0x231)](),_0x5250f6=await this['_startCollaboration'](_0x1c1807,_0x5f4ecc[_0x599c21(0x264)]);this[_0x599c21(0x564)][_0x599c21(0x43b)](_0x1c1807,_0x5250f6);}),this[_0x224403(0x360)][_0x224403(0x36d)](_0x58174a['UniverInstanceType'][_0x224403(0x3a1)])['pipe'](_0x1678b1[_0x224403(0x346)](this[_0x224403(0x341)]),_0x5ab054[_0x224403(0x286)](0x10))[_0x224403(0x4c7)](_0x5ab054['filter'](_0x2ae7c0=>!_0x2ae7c0['getUnitId']()[_0x224403(0x25e)]('__')))[_0x224403(0x387)](async _0x357309=>{const _0x258e32=_0x224403,_0x4caad6=_0x357309[_0x258e32(0x231)](),_0x49a394=await this[_0x258e32(0x3c1)](_0x4caad6,_0x5f4ecc[_0x258e32(0x3a1)]);this[_0x258e32(0x564)][_0x258e32(0x43b)](_0x4caad6,_0x49a394);}),_0x1678b1[_0x224403(0x3cb)](this[_0x224403(0x360)][_0x224403(0x567)](_0x58174a['UniverInstanceType']['UNIVER_SHEET']),this[_0x224403(0x360)]['getTypeOfUnitDisposed$'](_0x58174a[_0x224403(0x37e)][_0x224403(0x3a1)]))[_0x224403(0x4c7)](_0x1678b1['takeUntil'](this[_0x224403(0x341)]))[_0x224403(0x387)](_0x39c667=>{const _0x126acf=_0x224403,_0x511329=_0x39c667[_0x126acf(0x231)](),_0x32bea7=this[_0x126acf(0x564)]['get'](_0x511329);_0x32bea7&&(_0x32bea7[_0x126acf(0x4b0)](),this[_0x126acf(0x564)][_0x126acf(0x457)](_0x511329));});}async['_startCollaboration'](_0x30208f,_0x46bd21){const _0x2dd877=_0x43a61c,_0x4c532d=await this[_0x2dd877(0x3f4)][_0x2dd877(0x2b0)](_0x30208f),_0x27e21e=this[_0x2dd877(0x228)][_0x2dd877(0x4eb)](this[_0x2dd877(0x59c)](_0x46bd21),_0x30208f,_0x46bd21,_0x4c532d);return await _0x27e21e[_0x2dd877(0x595)](),this['_entityInit$'][_0x2dd877(0x46c)](_0x27e21e),_0x27e21e;}[_0x43a61c(0x59c)](_0x58a8fc){const _0x2d9dbd=_0x43a61c;switch(_0x58a8fc){case _0x5f4ecc['UNIVER_DOC']:return _0x70db69['DocCollaborationEntity'];case _0x5f4ecc[_0x2d9dbd(0x264)]:return _0x70db69[_0x2d9dbd(0x1e2)];default:throw new Error(_0x2d9dbd(0x26b)+_0x58a8fc);}}},_0x70db69[_0x43a61c(0x578)]=_0x404d8b([_0x53bdfc(0x0,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x53bdfc(0x1,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x2da)])),_0x53bdfc(0x2,_0x58174a['IUniverInstanceService'])],_0x70db69[_0x43a61c(0x578)]);const _0x5df8f9=[_0x43a61c(0x557),'jiqing500',_0x43a61c(0x487),'red300',_0x43a61c(0x587),_0x43a61c(0x246)];class _0x160cc extends _0x58174a['Disposable']{constructor(){const _0x387001=_0x43a61c;super(...arguments),_0x4b178e(this,_0x387001(0x5b4),new Map()),_0x4b178e(this,'_colorIndex',0x0);}[_0x43a61c(0x1e7)](_0x3764aa){const _0x1ac965=_0x43a61c;if(this[_0x1ac965(0x5b4)]['has'](_0x3764aa))return this[_0x1ac965(0x5b4)][_0x1ac965(0x40a)](_0x3764aa);const _0x339818=_0x5df8f9[this[_0x1ac965(0x20b)]];return this[_0x1ac965(0x20b)]=(this['_colorIndex']+0x1)%_0x5df8f9[_0x1ac965(0x58f)],this['_assignedColors'][_0x1ac965(0x43b)](_0x3764aa,_0x339818),_0x339818;}}var _0x370298=Object[_0x43a61c(0x408)],_0x4209f2=Object['getOwnPropertyDescriptor'],_0xa8b6ad=(_0x5e9f92,_0x180863,_0x190a17,_0x25cec3)=>{const _0x5ca212=_0x43a61c;for(var _0x3dcd8a=_0x25cec3>0x1?void 0x0:_0x25cec3?_0x4209f2(_0x180863,_0x190a17):_0x180863,_0x2afcdb=_0x5e9f92[_0x5ca212(0x58f)]-0x1,_0x3eda86;_0x2afcdb>=0x0;_0x2afcdb--)(_0x3eda86=_0x5e9f92[_0x2afcdb])&&(_0x3dcd8a=(_0x25cec3?_0x3eda86(_0x180863,_0x190a17,_0x3dcd8a):_0x3eda86(_0x3dcd8a))||_0x3dcd8a);return _0x25cec3&&_0x3dcd8a&&_0x370298(_0x180863,_0x190a17,_0x3dcd8a),_0x3dcd8a;},_0x17622d=(_0x17d8de,_0x2714a0)=>(_0x10d34e,_0x3cbb45)=>_0x2714a0(_0x10d34e,_0x3cbb45,_0x17d8de);const _0x175b0b=0x12c,_0x232940=0x64;let _0x1d471b=class extends _0x58174a['RxDisposable']{constructor(_0x302789,_0x2e3bfc,_0x4ed505,_0x87d1e6,_0x4f6355,_0x4ce926,_0x1d3e3c,_0x59945d,_0x337bdf){const _0x55ecbf=_0x43a61c;super(),_0x4b178e(this,'_online',!0x1),_0x4b178e(this,_0x55ecbf(0x48d),!0x1),_0x4b178e(this,_0x55ecbf(0x1d7),new _0x1678b1[(_0x55ecbf(0x44b))](new Map())),_0x4b178e(this,_0x55ecbf(0x21d),this[_0x55ecbf(0x1d7)][_0x55ecbf(0x5dc)]()),_0x4b178e(this,'_roomMembers$',new _0x1678b1[(_0x55ecbf(0x44b))]([])),_0x4b178e(this,_0x55ecbf(0x33a),this['_roomMembers$'][_0x55ecbf(0x4c7)](_0x1678b1[_0x55ecbf(0x420)](_0x175b0b))),_0x4b178e(this,'_updateLocalCursor',_0x58174a[_0x55ecbf(0x34e)](_0x286fcb=>{const _0x38ddde=_0x55ecbf,_0x48b388={'eventID':_0x582bb5[_0x38ddde(0x240)][_0x38ddde(0x4c4)],'data':{'unitID':this[_0x38ddde(0x467)],'memberID':this[_0x38ddde(0x508)][_0x38ddde(0x2c8)](),'selection':_0x2ebefe(_0x286fcb)}};this[_0x38ddde(0x508)]['send'](_0x48b388,this['unitID']);},_0x232940)),(this[_0x55ecbf(0x467)]=_0x302789,this['_session']=_0x2e3bfc,this[_0x55ecbf(0x228)]=_0x4ed505,this['_colorAssignService']=_0x87d1e6,this[_0x55ecbf(0x22b)]=_0x4f6355,this['_syncEditingCollabCursorService']=_0x4ce926,this[_0x55ecbf(0x49b)]=_0x1d3e3c,this['_univerInstanceService']=_0x59945d,this[_0x55ecbf(0x4ea)]=_0x337bdf);}get['cursorInfo'](){const _0x46fc6a=_0x43a61c;return this[_0x46fc6a(0x1d7)]['getValue']();}get[_0x43a61c(0x20d)](){const _0x44ae2f=_0x43a61c;return this[_0x44ae2f(0x568)]['getValue']();}[_0x43a61c(0x4b0)](){const _0x3978f2=_0x43a61c;super[_0x3978f2(0x4b0)](),this[_0x3978f2(0x1d7)]['next'](new Map()),this[_0x3978f2(0x1d7)][_0x3978f2(0x28e)](),this[_0x3978f2(0x568)][_0x3978f2(0x46c)]([]),this[_0x3978f2(0x568)][_0x3978f2(0x28e)]();}[_0x43a61c(0x595)](){const _0x33a37c=_0x43a61c;this[_0x33a37c(0x48d)]||(this[_0x33a37c(0x48d)]=!0x0,this['_session'][_0x33a37c(0x2d7)][_0x33a37c(0x4c7)](_0x1678b1['takeUntil'](this[_0x33a37c(0x341)]))[_0x33a37c(0x387)](_0x52f29c=>{const _0x553bb1=_0x33a37c;_0x52f29c===_0x50c5ae[_0x553bb1(0x503)]?this[_0x553bb1(0x2df)]():this[_0x553bb1(0x35a)]();}),this[_0x33a37c(0x508)]['event$'][_0x33a37c(0x4c7)](_0x1678b1[_0x33a37c(0x346)](this[_0x33a37c(0x341)]))[_0x33a37c(0x387)](_0x4eddc7=>{const _0x1de24d=_0x33a37c,_0x3322bb=_0x4eddc7[_0x1de24d(0x5ce)];_0x3322bb===_0x582bb5[_0x1de24d(0x240)][_0x1de24d(0x4c4)]&&this[_0x1de24d(0x322)](_0x4eddc7),_0x3322bb===_0x582bb5[_0x1de24d(0x240)][_0x1de24d(0x21e)]&&this['_onCursorDelete'](_0x4eddc7);}),this[_0x33a37c(0x502)](this[_0x33a37c(0x4ea)][_0x33a37c(0x2ec)](_0x220572=>{const _0x36ab5f=_0x33a37c,_0x5ddce8=_0x220572['params'];_0x5ddce8!=null&&this[_0x36ab5f(0x5f7)]&&_0x220572['id']===_0xb2a344[_0x36ab5f(0x263)]['id']&&_0x5ddce8[_0x36ab5f(0x517)]===this['unitID']&&_0x5ddce8['isEditing']===!0x1&&_0x5ddce8[_0x36ab5f(0x3b8)]['length']>0x0&&this[_0x36ab5f(0x1c3)](_0x5ddce8[_0x36ab5f(0x3b8)]);})),this[_0x33a37c(0x26c)][_0x33a37c(0x1e1)][_0x33a37c(0x4c7)](_0x1678b1[_0x33a37c(0x346)](this[_0x33a37c(0x341)]))[_0x33a37c(0x387)](_0x3466b3=>{const _0x81bf6e=_0x33a37c;if((_0x3466b3==null?void 0x0:_0x3466b3[_0x81bf6e(0x467)])!==this[_0x81bf6e(0x467)])return;const _0x89b80f={'eventID':_0x582bb5[_0x81bf6e(0x240)][_0x81bf6e(0x4c4)],'data':_0x3466b3};this[_0x81bf6e(0x322)](_0x89b80f);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2d978a=>{const _0x355e74=_0x33a37c;if(_0x2d978a[_0x355e74(0x559)]==null)return;const _0xc95494=_0x2d978a['params'];if(_0x2d978a['id']!==_0xb2a344['RichTextEditingMutation']['id']||_0xc95494['unitId']!==this[_0x355e74(0x467)])return;const _0x41ea78={'id':_0x355e74(0x3fa),'params':_0xc95494},_0x12e267=this[_0x355e74(0x51e)];for(const [_0x36b5b0,_0x597a11]of _0x12e267){const _0x2a5bdd={'id':_0x355e74(0x3fa),'params':{'unitId':this[_0x355e74(0x467)],'actions':null,'textRanges':_0x597a11['ranges']}},_0x3dd854=this['_transformService']['transformMutation'](_0x41ea78,_0x2a5bdd,!0x1);if(_0x582bb5[_0x355e74(0x5b5)](_0x3dd854))throw _0x3dd854[_0x355e74(0x3da)];_0x12e267['set'](_0x36b5b0,{..._0x597a11,'ranges':_0x3dd854[_0x355e74(0x402)]['params']['textRanges']});}queueMicrotask(()=>{const _0x609fad=_0x355e74;this[_0x609fad(0x1d7)]['next'](_0x12e267);});})));}[_0x43a61c(0x322)](_0x5d3623){const _0xe57567=_0x43a61c;var _0x1af17c,_0x514e68;const {memberID:_0xf6fc5d,selection:_0x47c67d}=_0x5d3623[_0xe57567(0x416)],_0x2f0fb9=_0x2a96bb(_0x47c67d),_0x401655=(_0x514e68=(_0x1af17c=this[_0xe57567(0x22b)]['getMember'](this[_0xe57567(0x467)],_0xf6fc5d))==null?void 0x0:_0x1af17c[_0xe57567(0x259)])!=null?_0x514e68:_0xe57567(0x3ec),_0x38ea36={'color':this[_0xe57567(0x3bb)][_0xe57567(0x1e7)](_0xf6fc5d),'name':_0x401655,'ranges':_0x2f0fb9},_0x22d8e5=this[_0xe57567(0x51e)];_0x22d8e5['set'](_0xf6fc5d,_0x38ea36),this[_0xe57567(0x1d7)][_0xe57567(0x46c)](_0x22d8e5);}[_0x43a61c(0x319)](_0x31b44d){const _0x26ad1d=_0x43a61c,{memberID:_0x14ca51}=_0x31b44d[_0x26ad1d(0x416)],_0x10aa19=this['cursorInfo'];_0x10aa19[_0x26ad1d(0x457)](_0x14ca51),this[_0x26ad1d(0x1d7)][_0x26ad1d(0x46c)](_0x10aa19);}[_0x43a61c(0x2df)](){const _0x37ac21=_0x43a61c;var _0x27b5a0;if(this[_0x37ac21(0x5f7)]=!0x0,((_0x27b5a0=this[_0x37ac21(0x360)][_0x37ac21(0x4b6)]())==null?void 0x0:_0x27b5a0[_0x37ac21(0x231)]())!==this[_0x37ac21(0x467)])return;const _0x5b5157=this['_injector'][_0x37ac21(0x40a)](_0xb2a344[_0x37ac21(0x58b)])['getDocRanges']();Array[_0x37ac21(0x5d8)](_0x5b5157)&&_0x5b5157['length']>0x0&&this[_0x37ac21(0x1c3)](_0x5b5157);}[_0x43a61c(0x35a)](){const _0x271e41=_0x43a61c;this[_0x271e41(0x5f7)]=!0x1;}};_0x1d471b=_0xa8b6ad([_0x17622d(0x2,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x17622d(0x3,_0x58174a['Inject'](_0x160cc)),_0x17622d(0x4,_0x58174a['Inject'](_0x70db69[_0x43a61c(0x37c)])),_0x17622d(0x5,_0x58174a['Inject'](_0x3bf307)),_0x17622d(0x6,_0x582bb5[_0x43a61c(0x404)]),_0x17622d(0x7,_0x58174a[_0x43a61c(0x560)]),_0x17622d(0x8,_0x58174a[_0x43a61c(0x512)])],_0x1d471b);var _0x507efd=Object[_0x43a61c(0x408)],_0x299b83=Object[_0x43a61c(0x33d)],_0x1d5145=(_0x3e8c9e,_0x23a61f,_0x20e212,_0x1a6030)=>{const _0x252c87=_0x43a61c;for(var _0x3b8e5a=_0x1a6030>0x1?void 0x0:_0x1a6030?_0x299b83(_0x23a61f,_0x20e212):_0x23a61f,_0x2e31dc=_0x3e8c9e[_0x252c87(0x58f)]-0x1,_0x1697cd;_0x2e31dc>=0x0;_0x2e31dc--)(_0x1697cd=_0x3e8c9e[_0x2e31dc])&&(_0x3b8e5a=(_0x1a6030?_0x1697cd(_0x23a61f,_0x20e212,_0x3b8e5a):_0x1697cd(_0x3b8e5a))||_0x3b8e5a);return _0x1a6030&&_0x3b8e5a&&_0x507efd(_0x23a61f,_0x20e212,_0x3b8e5a),_0x3b8e5a;},_0x18a79d=(_0x31bf47,_0x2b901c)=>(_0x370268,_0x35fca4)=>_0x2b901c(_0x370268,_0x35fca4,_0x31bf47);const _0x5967ae=0x12c,_0x1b60a3=0x64,_0x80d70=()=>{let _0x381d0a=[],_0x420be7=!0x1;return _0x5aee96=>{const _0x31fbe4=_0xa224;_0x381d0a[_0x31fbe4(0x311)](_0x5aee96),_0x420be7||(_0x420be7=!0x0,setTimeout(()=>{_0x381d0a['forEach'](_0x4e30b7=>_0x4e30b7()),_0x381d0a=[],_0x420be7=!0x1;}));};};let _0x3c2880=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x197344,_0x3960f4,_0x3a26f2,_0x46f4ff,_0x21aaab,_0x4531ce,_0x124b20,_0xd2e9c9){const _0x3c15dc=_0x43a61c;super(),_0x4b178e(this,_0x3c15dc(0x5f7),!0x1),_0x4b178e(this,'_init',!0x1),_0x4b178e(this,_0x3c15dc(0x1d7),new _0x1678b1[(_0x3c15dc(0x44b))](new Map())),_0x4b178e(this,_0x3c15dc(0x21d),this['_cursorInfo$']['asObservable']()),_0x4b178e(this,_0x3c15dc(0x568),new _0x1678b1['BehaviorSubject']([])),_0x4b178e(this,_0x3c15dc(0x33a),this['_roomMembers$'][_0x3c15dc(0x4c7)](_0x1678b1[_0x3c15dc(0x420)](_0x5967ae))),_0x4b178e(this,_0x3c15dc(0x1c3),_0x58174a[_0x3c15dc(0x34e)]((_0x467b5a,_0x278a46)=>{const _0x5c852a=_0x3c15dc,_0x5a0591={'eventID':_0x582bb5[_0x5c852a(0x240)][_0x5c852a(0x4c4)],'data':{'unitID':this[_0x5c852a(0x467)],'memberID':this['_session'][_0x5c852a(0x2c8)](),'selection':_0x5e38e3[_0x5c852a(0x412)](_0x467b5a,_0x278a46[_0x5c852a(0x490)])}};this[_0x5c852a(0x508)]['send'](_0x5a0591,this[_0x5c852a(0x467)]);},_0x1b60a3)),(this[_0x3c15dc(0x467)]=_0x197344,this[_0x3c15dc(0x508)]=_0x3960f4,this[_0x3c15dc(0x228)]=_0x3a26f2,this[_0x3c15dc(0x3bb)]=_0x46f4ff,this['_memberService']=_0x21aaab,this[_0x3c15dc(0x360)]=_0x4531ce,this[_0x3c15dc(0x4ea)]=_0x124b20,this[_0x3c15dc(0x5e5)]=_0xd2e9c9);}get[_0x43a61c(0x51e)](){const _0x30073d=_0x43a61c;return this['_cursorInfo$'][_0x30073d(0x46e)]();}get[_0x43a61c(0x20d)](){const _0x86b8a0=_0x43a61c;return this[_0x86b8a0(0x568)]['getValue']();}['dispose'](){const _0xa45acf=_0x43a61c;super[_0xa45acf(0x4b0)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0xa45acf(0x28e)](),this[_0xa45acf(0x568)][_0xa45acf(0x46c)]([]),this[_0xa45acf(0x568)][_0xa45acf(0x28e)]();}[_0x43a61c(0x595)](){const _0x45250f=_0x43a61c;this[_0x45250f(0x48d)]||(this[_0x45250f(0x48d)]=!0x0,this[_0x45250f(0x508)]['sessionStatus$'][_0x45250f(0x4c7)](_0x1678b1[_0x45250f(0x346)](this['dispose$']))[_0x45250f(0x387)](_0x334da9=>{const _0x2ae25c=_0x45250f;_0x334da9===_0x50c5ae[_0x2ae25c(0x503)]?this[_0x2ae25c(0x2df)]():this[_0x2ae25c(0x35a)]();}),this['_session']['event$'][_0x45250f(0x4c7)](_0x1678b1[_0x45250f(0x346)](this[_0x45250f(0x341)]))[_0x45250f(0x387)](_0x5677d3=>{const _0x3eeb9a=_0x45250f,_0x1f3846=_0x5677d3[_0x3eeb9a(0x5ce)];_0x1f3846===_0x582bb5[_0x3eeb9a(0x240)]['UPDATE_CURSOR']&&this[_0x3eeb9a(0x322)](_0x5677d3),_0x1f3846===_0x582bb5[_0x3eeb9a(0x240)][_0x3eeb9a(0x21e)]&&this[_0x3eeb9a(0x319)](_0x5677d3);}),this[_0x45250f(0x373)](),this[_0x45250f(0x502)](this[_0x45250f(0x4ea)]['onCommandExecuted'](_0x276cfb=>{const _0x13dcfb=_0x45250f;if(this['_online']&&_0x276cfb['id']===_0x46ce2c['SetSelectionsOperation']['id']&&_0x276cfb[_0x13dcfb(0x559)][_0x13dcfb(0x517)]===this[_0x13dcfb(0x467)]){const _0x117b65=_0x276cfb[_0x13dcfb(0x559)];this[_0x13dcfb(0x1c3)](_0x117b65[_0x13dcfb(0x2f1)],_0x117b65[_0x13dcfb(0x52b)][0x0]);}})));}[_0x43a61c(0x322)](_0x210fdd){const _0x2d8587=_0x43a61c;var _0x5c65f1,_0x341c07;const {memberID:_0x1b3234,selection:_0x55620d}=_0x210fdd[_0x2d8587(0x416)],{sheetName:_0x4844ae,range:_0x45bef0}=_0x5e38e3['deserializeRangeWithSheet'](_0x55620d),_0x4342f1={'name':(_0x341c07=(_0x5c65f1=this[_0x2d8587(0x22b)]['getMember'](this['unitID'],_0x1b3234))==null?void 0x0:_0x5c65f1['name'])!=null?_0x341c07:_0x2d8587(0x3ec),'range':this['_getMergeRange'](_0x4844ae,_0x45bef0),'sheetID':_0x4844ae,'color':this[_0x2d8587(0x3bb)]['assignAColorForMemberID'](_0x1b3234),'selection':_0x55620d},_0x280705=this[_0x2d8587(0x51e)];_0x280705[_0x2d8587(0x43b)](_0x1b3234,_0x4342f1),this['_cursorInfo$'][_0x2d8587(0x46c)](_0x280705);}[_0x43a61c(0x319)](_0x8e24db){const _0x2032ba=_0x43a61c,{memberID:_0x35598c}=_0x8e24db[_0x2032ba(0x416)],_0x7debf9=this[_0x2032ba(0x51e)];_0x7debf9['delete'](_0x35598c),this['_cursorInfo$'][_0x2032ba(0x46c)](_0x7debf9);}[_0x43a61c(0x205)](_0x4a0deb,_0x29e8fb){const _0x1b9d04=_0x43a61c;var _0x514fb4,_0x589d27;const _0x264f98=(_0x589d27=(_0x514fb4=this[_0x1b9d04(0x360)][_0x1b9d04(0x523)](this[_0x1b9d04(0x467)]))==null?void 0x0:_0x514fb4[_0x1b9d04(0x3f1)](_0x4a0deb))==null?void 0x0:_0x589d27[_0x1b9d04(0x577)]();return(_0x264f98==null?void 0x0:_0x264f98[_0x1b9d04(0x395)](_0xab0515=>_0x58174a[_0x1b9d04(0x5ea)][_0x1b9d04(0x460)](_0xab0515,_0x29e8fb)))||_0x29e8fb;}[_0x43a61c(0x373)](){const _0x4e9da1=_0x43a61c,_0x2296e9=new _0x58174a['DisposableCollection'](),_0x160a2b=_0x80d70(),_0x24568e=()=>{const _0x262d3e=_0xa224;_0x2296e9['dispose']();const _0x2c7f66=(_0x3d2060,_0xd3688e,_0x25aa0e,_0x100ec0)=>{const _0x19e798=_0xa224;let _0x3a7a36=[];switch(_0x3d2060['id']){case _0x46ce2c[_0x19e798(0x3cf)][_0x19e798(0x401)]:{_0x3a7a36=_0x46ce2c[_0x19e798(0x596)](_0x3d2060,_0x100ec0);break;}case _0x46ce2c['EffectRefRangId'][_0x19e798(0x38d)]:{_0x3a7a36=_0x46ce2c[_0x19e798(0x3b4)](_0x3d2060,_0x100ec0);break;}case _0x46ce2c[_0x19e798(0x3cf)][_0x19e798(0x49e)]:{_0x3a7a36=_0x46ce2c['handleInsertCol'](_0x3d2060,_0x100ec0);break;}case _0x46ce2c[_0x19e798(0x3cf)][_0x19e798(0x1e8)]:{_0x3a7a36=_0x46ce2c[_0x19e798(0x35e)](_0x3d2060,_0x100ec0);break;}case _0x46ce2c['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3a7a36=_0x46ce2c['handleInsertRangeMoveRight'](_0x3d2060,_0x100ec0);break;}case _0x46ce2c[_0x19e798(0x3cf)][_0x19e798(0x491)]:{_0x3a7a36=_0x46ce2c[_0x19e798(0x379)](_0x3d2060,_0x100ec0);break;}case _0x46ce2c['EffectRefRangId'][_0x19e798(0x4cc)]:{_0x3a7a36=_0x46ce2c[_0x19e798(0x234)](_0x3d2060,_0x100ec0);break;}case _0x46ce2c[_0x19e798(0x3cf)][_0x19e798(0x500)]:{_0x3a7a36=_0x46ce2c['handleIRemoveCol'](_0x3d2060,_0x100ec0);break;}case _0x46ce2c[_0x19e798(0x3cf)]['RemoveRowCommandId']:{_0x3a7a36=_0x46ce2c[_0x19e798(0x1fb)](_0x3d2060,_0x100ec0);break;}}const _0x12c041=_0x46ce2c[_0x19e798(0x570)](_0x3a7a36,_0x100ec0),_0x128b3d=this[_0x19e798(0x51e)]['get'](_0xd3688e);if(_0x128b3d&&_0x12c041){const _0x5492b6={..._0x128b3d,'range':_0x12c041};this[_0x19e798(0x51e)][_0x19e798(0x43b)](_0xd3688e,_0x5492b6),_0x160a2b(()=>{const _0x55e78c=_0x19e798,_0x16d695=this['_refRangeService'][_0x55e78c(0x349)](_0x12c041,_0x212a42=>(_0x16d695[_0x55e78c(0x4b0)](),_0x2c7f66(_0x212a42,_0xd3688e,_0x25aa0e,_0x12c041)));_0x2296e9[_0x55e78c(0x209)](_0x16d695);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x262d3e(0x348)]((_0x814675,_0x253a64)=>{const _0x1979c0=_0x262d3e,{range:_0x489b70,sheetID:_0xf2ae69}=_0x814675,_0x4c158d=this[_0x1979c0(0x5e5)]['registerRefRange'](_0x489b70,_0x1d3e93=>(_0x4c158d[_0x1979c0(0x4b0)](),_0x2c7f66(_0x1d3e93,_0x253a64,_0xf2ae69,_0x489b70)));_0x2296e9['add'](_0x4c158d);});};this[_0x4e9da1(0x502)](_0x58174a[_0x4e9da1(0x1ca)](this[_0x4e9da1(0x1d7)][_0x4e9da1(0x387)](()=>{_0x24568e();})));}[_0x43a61c(0x2df)](){const _0x529af9=_0x43a61c;var _0x435d01,_0x399f38;if(this['_online']=!0x0,((_0x435d01=this[_0x529af9(0x360)][_0x529af9(0x4b6)]())==null?void 0x0:_0x435d01[_0x529af9(0x231)]())!==this['unitID'])return;const _0x31a009=(_0x399f38=this[_0x529af9(0x228)][_0x529af9(0x40a)](_0x46ce2c[_0x529af9(0x39e)])[_0x529af9(0x513)]())==null?void 0x0:_0x399f38[0x0],_0x401509=this['_univerInstanceService'][_0x529af9(0x44c)](_0x58174a['UniverInstanceType'][_0x529af9(0x264)])['getActiveSheet']();_0x31a009&&_0x401509&&this[_0x529af9(0x1c3)](_0x401509[_0x529af9(0x34f)](),_0x31a009);}[_0x43a61c(0x35a)](){const _0x231a89=_0x43a61c;this[_0x231a89(0x5f7)]=!0x1;}};_0x3c2880=_0x1d5145([_0x18a79d(0x2,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x317)])),_0x18a79d(0x3,_0x58174a[_0x43a61c(0x409)](_0x160cc)),_0x18a79d(0x4,_0x58174a['Inject'](_0x70db69[_0x43a61c(0x37c)])),_0x18a79d(0x5,_0x58174a['IUniverInstanceService']),_0x18a79d(0x6,_0x58174a[_0x43a61c(0x512)]),_0x18a79d(0x7,_0x58174a['Inject'](_0x46ce2c[_0x43a61c(0x4f2)]))],_0x3c2880);var _0x5db552=Object[_0x43a61c(0x408)],_0x39d390=Object[_0x43a61c(0x33d)],_0x429c18=(_0x20eaac,_0x528710,_0x1bf1db,_0x13f755)=>{const _0x1ebb67=_0x43a61c;for(var _0x4f43d7=_0x13f755>0x1?void 0x0:_0x13f755?_0x39d390(_0x528710,_0x1bf1db):_0x528710,_0x3f56ca=_0x20eaac[_0x1ebb67(0x58f)]-0x1,_0x3f7dd1;_0x3f56ca>=0x0;_0x3f56ca--)(_0x3f7dd1=_0x20eaac[_0x3f56ca])&&(_0x4f43d7=(_0x13f755?_0x3f7dd1(_0x528710,_0x1bf1db,_0x4f43d7):_0x3f7dd1(_0x4f43d7))||_0x4f43d7);return _0x13f755&&_0x4f43d7&&_0x5db552(_0x528710,_0x1bf1db,_0x4f43d7),_0x4f43d7;},_0x11be4e=(_0x206240,_0x1bb42e)=>(_0x236c7d,_0x45bf85)=>_0x1bb42e(_0x236c7d,_0x45bf85,_0x206240);let _0x2dda95=class extends _0x58174a['RxDisposable']{constructor(_0x1f71de,_0x148c43,_0x532810){const _0x3c54a6=_0x43a61c;super(),_0x4b178e(this,'_entities',new Map()),_0x4b178e(this,_0x3c54a6(0x59e),new _0x1678b1['Subject']()),(this[_0x3c54a6(0x360)]=_0x1f71de,this['_injector']=_0x148c43,this[_0x3c54a6(0x3f4)]=_0x532810,this[_0x3c54a6(0x48d)]());}[_0x43a61c(0x4b0)](){const _0x1120c7=_0x43a61c;super[_0x1120c7(0x4b0)](),this[_0x1120c7(0x59e)]['complete'](),this[_0x1120c7(0x564)][_0x1120c7(0x348)](_0xae444a=>_0xae444a[_0x1120c7(0x4b0)]());}[_0x43a61c(0x55a)](_0x290fb7){const _0x393483=_0x43a61c;return this['_entities']['has'](_0x290fb7)?this[_0x393483(0x564)][_0x393483(0x40a)](_0x290fb7)[_0x393483(0x21d)]:this['_entityInit$'][_0x393483(0x4c7)](_0x1678b1['filter'](_0x23ed5a=>_0x23ed5a['unitID']===_0x290fb7),_0x1678b1[_0x393483(0x574)](_0x14a144=>_0x14a144[_0x393483(0x21d)]));}[_0x43a61c(0x48d)](){const _0x441212=_0x43a61c;this[_0x441212(0x360)][_0x441212(0x36d)](_0x58174a[_0x441212(0x37e)][_0x441212(0x264)])['pipe'](_0x1678b1[_0x441212(0x346)](this['dispose$']))[_0x441212(0x387)](async _0x36aa3f=>{const _0x44c8ab=_0x441212,_0x2b4202=_0x36aa3f[_0x44c8ab(0x231)](),_0x1af7c7=await this[_0x44c8ab(0x519)](_0x2b4202);this[_0x44c8ab(0x59e)][_0x44c8ab(0x46c)](_0x1af7c7),this['_entities']['set'](_0x2b4202,_0x1af7c7);}),this['_univerInstanceService'][_0x441212(0x36d)](_0x58174a['UniverInstanceType'][_0x441212(0x3a1)])[_0x441212(0x4c7)](_0x1678b1[_0x441212(0x346)](this[_0x441212(0x341)]))[_0x441212(0x4c7)](_0x1678b1[_0x441212(0x221)](_0x25f153=>!_0x25f153[_0x441212(0x231)]()[_0x441212(0x25e)]('__')))['subscribe'](async _0x12eced=>{const _0x10a169=_0x441212,_0x599c15=_0x12eced['getUnitId'](),_0x368a03=await this[_0x10a169(0x392)](_0x599c15);this[_0x10a169(0x59e)][_0x10a169(0x46c)](_0x368a03),this['_entities'][_0x10a169(0x43b)](_0x599c15,_0x368a03);}),_0x1678b1[_0x441212(0x3cb)](this['_univerInstanceService'][_0x441212(0x567)](_0x58174a[_0x441212(0x37e)][_0x441212(0x3a1)]),this[_0x441212(0x360)][_0x441212(0x567)](_0x58174a[_0x441212(0x37e)][_0x441212(0x264)]))[_0x441212(0x4c7)](_0x1678b1[_0x441212(0x346)](this['dispose$']))['subscribe'](_0x59ea17=>{const _0x9f83f5=_0x441212,_0x267194=_0x59ea17[_0x9f83f5(0x231)](),_0x1aef53=this[_0x9f83f5(0x564)]['get'](_0x267194);_0x1aef53&&(_0x1aef53[_0x9f83f5(0x4b0)](),this[_0x9f83f5(0x564)][_0x9f83f5(0x457)](_0x267194));});}async[_0x43a61c(0x519)](_0x230012){const _0x387ada=_0x43a61c,_0x17b2ee=await this['_collabSessionService'][_0x387ada(0x2b0)](_0x230012),_0x253566=this[_0x387ada(0x228)]['createInstance'](_0x3c2880,_0x230012,_0x17b2ee);return _0x253566[_0x387ada(0x595)](),_0x253566;}async[_0x43a61c(0x392)](_0x9658ad){const _0x5e84ac=_0x43a61c,_0x141a18=await this[_0x5e84ac(0x3f4)]['requireSession'](_0x9658ad),_0x1804f9=this[_0x5e84ac(0x228)][_0x5e84ac(0x4eb)](_0x1d471b,_0x9658ad,_0x141a18);return _0x1804f9[_0x5e84ac(0x595)](),_0x1804f9;}};_0x2dda95=_0x429c18([_0x11be4e(0x0,_0x58174a[_0x43a61c(0x560)]),_0x11be4e(0x1,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x11be4e(0x2,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x2da)]))],_0x2dda95);const _0x105ca9=0x14,_0x1d8ba9=0xc8,_0x558249=0x4,_0x396793=0x5;function _0x2b4555(_0x24ebc0,_0x509ce0){const _0x155e76=_0x43a61c;let {radius:_0x56cb23,width:_0x47d7ae,height:_0x44f4da}=_0x509ce0;_0x56cb23=_0x56cb23!=null?_0x56cb23:0x0,_0x47d7ae=_0x47d7ae!=null?_0x47d7ae:0x1e,_0x44f4da=_0x44f4da!=null?_0x44f4da:0x1e;let _0x2e87c1=0x0,_0x11c9b9=0x0,_0x1713ae=0x0;_0x2e87c1=_0x11c9b9=_0x1713ae=Math[_0x155e76(0x39c)](_0x56cb23,_0x47d7ae/0x2,_0x44f4da/0x2),_0x24ebc0['beginPath'](),_0x24ebc0['moveTo'](_0x2e87c1,0x0),_0x24ebc0[_0x155e76(0x265)](_0x47d7ae-_0x11c9b9,0x0),_0x24ebc0[_0x155e76(0x5de)](_0x47d7ae-_0x11c9b9,_0x11c9b9,_0x11c9b9,Math['PI']*0x3/0x2,0x0,!0x1),_0x24ebc0['lineTo'](_0x47d7ae,_0x44f4da-_0x1713ae),_0x24ebc0['arc'](_0x47d7ae-_0x1713ae,_0x44f4da-_0x1713ae,_0x1713ae,0x0,Math['PI']/0x2,!0x1),_0x24ebc0['lineTo'](0x0,_0x44f4da),_0x24ebc0['lineTo'](0x0,_0x2e87c1),_0x24ebc0[_0x155e76(0x5de)](_0x2e87c1,_0x2e87c1,_0x2e87c1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x24ebc0[_0x155e76(0x4fe)](),_0x509ce0['fill']&&(_0x24ebc0['save'](),_0x24ebc0[_0x155e76(0x262)]=_0x509ce0[_0x155e76(0x5ad)],_0x509ce0['fillRule']===_0x155e76(0x4fc)?_0x24ebc0[_0x155e76(0x5ad)]('evenodd'):_0x24ebc0['fill'](),_0x24ebc0['restore']());}class _0x4e8ed0 extends _0x438301[_0x43a61c(0x421)]{constructor(_0x4f7bd4,_0x57b327){const _0x4e9e49=_0x43a61c;super(_0x4f7bd4,_0x57b327),_0x4b178e(this,'color'),_0x4b178e(this,_0x4e9e49(0x2b6)),(this['color']=_0x57b327==null?void 0x0:_0x57b327[_0x4e9e49(0x2aa)],this[_0x4e9e49(0x2b6)]=_0x57b327==null?void 0x0:_0x57b327[_0x4e9e49(0x2b6)]);}static[_0x43a61c(0x52e)](_0x4ac706,_0x44af34){const _0x547366=_0x43a61c,{text:_0x34e8e0,color:_0xb52beb}=_0x44af34;_0x4ac706[_0x547366(0x38a)](),_0x4ac706[_0x547366(0x28f)]=_0x547366(0x509);const _0x3635b6=_0x4ac706['measureText'](_0x34e8e0)[_0x547366(0x3df)],_0x109986=Math[_0x547366(0x39c)](_0x3635b6+0x2*_0x558249,_0x1d8ba9);_0x2b4555(_0x4ac706,{'height':_0x105ca9,'radius':0x4,'width':_0x109986,'fill':_0xb52beb,'evented':!0x1}),_0x4ac706[_0x547366(0x262)]='#FFF';const _0x5b9f19=_0x558249,_0x24354b=_0x105ca9-_0x396793,_0x53ca7f=_0x1d8ba9-0x2*_0x558249;if(_0x3635b6>_0x53ca7f){let _0x11e2eb='',_0x1df6e1=0x0;for(const _0x208f00 of _0x34e8e0){const _0x48cd08=_0x4ac706[_0x547366(0x5d4)](_0x208f00)[_0x547366(0x3df)];if(_0x1df6e1+_0x48cd08<=_0x53ca7f-_0x4ac706[_0x547366(0x5d4)](_0x547366(0x2ca))[_0x547366(0x3df)])_0x11e2eb+=_0x208f00,_0x1df6e1+=_0x48cd08;else{_0x11e2eb+=_0x547366(0x2ca);break;}}_0x4ac706[_0x547366(0x5d9)](_0x11e2eb,_0x5b9f19,_0x24354b);}else _0x4ac706[_0x547366(0x5d9)](_0x34e8e0,_0x5b9f19,_0x24354b);_0x4ac706[_0x547366(0x300)]();}['_draw'](_0x1348a5){const _0x2101d6=_0x43a61c;_0x4e8ed0[_0x2101d6(0x52e)](_0x1348a5,this);}}const _0x36abec='collab-text-anchor-',_0x252da7='collab-text-range-',_0x165353=_0x43a61c(0x44d),_0x2ff1ce=0x6,_0x110244=1.5,_0x58ea8d=0x4,_0x2567c9=1.5,_0x47c91c='rgba(255,\x20255,\x20255,\x200.01)';class _0x589605{constructor(_0x2bf827,_0x3f48dd,_0x5dee40,_0x1403d3){const _0x34d11c=_0x43a61c;_0x4b178e(this,_0x34d11c(0x355),[]),_0x4b178e(this,_0x34d11c(0x1e4),null),_0x4b178e(this,'_textBubble',null),_0x4b178e(this,_0x34d11c(0x230),null),_0x4b178e(this,_0x34d11c(0x425),null),_0x4b178e(this,_0x34d11c(0x481),null),(this[_0x34d11c(0x295)]=_0x2bf827,this['_scene']=_0x3f48dd,this[_0x34d11c(0x5b6)]=_0x5dee40,this[_0x34d11c(0x445)]=_0x1403d3,this[_0x34d11c(0x4b7)]());}set[_0x43a61c(0x4a9)](_0x1ac446){const _0x115076=_0x43a61c;_0x1ac446?(this[_0x115076(0x230)]&&this[_0x115076(0x230)]['hide'](),this['_textBubble']&&this[_0x115076(0x1f8)]['show']()):(this[_0x115076(0x230)]&&this[_0x115076(0x230)][_0x115076(0x1de)](),this[_0x115076(0x1f8)]&&this[_0x115076(0x1f8)][_0x115076(0x2c7)]());}[_0x43a61c(0x4b0)](){const _0x52b727=_0x43a61c;for(const _0x4824b7 of this['_shapes'])_0x4824b7['dispose']();this[_0x52b727(0x1f8)]&&this[_0x52b727(0x1f8)][_0x52b727(0x4b0)](),this['_anchorDot']&&this[_0x52b727(0x230)][_0x52b727(0x4b0)](),this[_0x52b727(0x1e4)]&&this[_0x52b727(0x1e4)]['dispose'](),this[_0x52b727(0x481)]&&this[_0x52b727(0x481)]();}[_0x43a61c(0x4b7)](){const _0x2429ec=_0x43a61c;var _0x5a2153;const {_docSkeleton:_0x1cfe19,_document:_0x4d16e3}=this,{color:_0x45865f,name:_0x2730a6,ranges:_0x587282}=this[_0x2429ec(0x295)],_0x3b09cb=_0x4d16e3[_0x2429ec(0x47d)](),{docsLeft:_0x50ed4d,docsTop:_0xe78528}=_0x3b09cb,_0xd07c49=new _0x19fc97[(_0x2429ec(0x232))](_0x3b09cb,_0x1cfe19);for(const {startOffset:_0x5f4ff4,endOffset:_0x378c34,rangeType:_0x1c72fb,segmentId:_0x3180e2,segmentPage:_0x4e2a17,collapsed:_0x332175,isActive:_0x5e733f}of _0x587282){const _0x55afba=_0x1cfe19['findNodePositionByCharIndex'](_0x5f4ff4,!0x0,_0x3180e2,_0x4e2a17);let _0x28cadc=_0x1cfe19[_0x2429ec(0x358)](_0x378c34,!0x0,_0x3180e2,_0x4e2a17);if(_0x28cadc==null&&(_0x28cadc=_0x1cfe19['findNodePositionByCharIndex'](_0x378c34-0x1,!0x1,_0x3180e2,_0x4e2a17)),_0x5e733f){const {contentBoxPointGroup:_0x58a23c}=_0xd07c49['getRangePointData'](_0x28cadc,_0x28cadc);if(_0x58a23c[_0x2429ec(0x58f)]===0x0)continue;this[_0x2429ec(0x45a)](_0x45865f,_0x58a23c,_0x50ed4d,_0xe78528,_0x2730a6),this[_0x2429ec(0x481)]=this[_0x2429ec(0x4d4)]();}if(!_0x332175&&_0x55afba&&_0x28cadc){if(_0x1c72fb===_0x58174a['DOC_RANGE_TYPE'][_0x2429ec(0x57e)]){const _0x3ba7b2=new _0x19fc97[(_0x2429ec(0x366))](_0x3b09cb,_0x1cfe19),{pointGroup:_0x4c6aac}=(_0x5a2153=_0x3ba7b2[_0x2429ec(0x5a2)](_0x55afba,_0x28cadc))!=null?_0x5a2153:{};if(_0x4c6aac==null||_0x4c6aac[_0x2429ec(0x58f)]===0x0)continue;this[_0x2429ec(0x406)](_0x45865f,_0x4c6aac,_0x50ed4d,_0xe78528);}else{const {borderBoxPointGroup:_0x4d13fd}=_0xd07c49[_0x2429ec(0x5a2)](_0x55afba,_0x28cadc);if(_0x4d13fd[_0x2429ec(0x58f)]===0x0)continue;this[_0x2429ec(0x53d)](_0x45865f,_0x4d13fd,_0x50ed4d,_0xe78528);}}}}[_0x43a61c(0x45a)](_0x3231c3,_0x55a3bc,_0x2af083,_0x51b920,_0x3030ce){const _0x3b95f0=_0x43a61c,_0x124a80=this[_0x3b95f0(0x2e8)](_0x55a3bc),{left:_0x1f7351,top:_0x128c8f,height:_0x52e0a7}=_0x124a80,_0x18318e=this['_getScale'](),_0x15398b=_0x2567c9/_0x18318e,_0x1a570f=new _0x438301[(_0x3b95f0(0x2dc))](_0x36abec+_0x58174a['Tools']['generateRandomId'](_0x2ff1ce),{'left':_0x1f7351+_0x2af083-_0x15398b,'top':_0x128c8f+_0x51b920,'height':_0x52e0a7,'width':_0x110244,'fill':_0x3231c3||_0x438301['getColor'](_0x58174a[_0x3b95f0(0x3ed)]['black'],0x0),'strokeWidth':_0x15398b,'stroke':_0x47c91c,'evented':!0x0});this['_anchor']=_0x1a570f,this[_0x3b95f0(0x21f)][_0x3b95f0(0x4a1)](_0x1a570f,_0x19fc97[_0x3b95f0(0x2be)]);const _0x2eb50f=new _0x438301[(_0x3b95f0(0x2dc))](_0x36abec+_0x58174a[_0x3b95f0(0x427)][_0x3b95f0(0x51c)](_0x2ff1ce),{'left':_0x1f7351+_0x2af083-_0x15398b,'top':_0x128c8f+_0x51b920-_0x58ea8d/0x2,'height':_0x58ea8d,'width':_0x58ea8d,'fill':_0x3231c3||_0x438301[_0x3b95f0(0x5a9)](_0x58174a[_0x3b95f0(0x3ed)][_0x3b95f0(0x598)],0x0),'strokeWidth':0x0,'stroke':_0x3231c3||_0x438301[_0x3b95f0(0x5a9)](_0x58174a[_0x3b95f0(0x3ed)][_0x3b95f0(0x598)],0x0),'evented':!0x1});this[_0x3b95f0(0x230)]=_0x2eb50f,this[_0x3b95f0(0x21f)][_0x3b95f0(0x4a1)](_0x2eb50f,_0x19fc97[_0x3b95f0(0x2be)]);const _0x5abd57=new _0x4e8ed0(_0x36abec+_0x58174a[_0x3b95f0(0x427)]['generateRandomId'](_0x2ff1ce),{'left':_0x1f7351+_0x2af083-_0x15398b,'top':_0x128c8f+_0x51b920-_0x105ca9,'text':_0x3030ce,'color':_0x3231c3});this[_0x3b95f0(0x1f8)]=_0x5abd57,this[_0x3b95f0(0x21f)][_0x3b95f0(0x4a1)](_0x5abd57,_0x19fc97[_0x3b95f0(0x2be)]),this[_0x3b95f0(0x4a9)]=!0x1;}[_0x43a61c(0x4d4)](){const _0x90e1a=_0x43a61c,_0x220ead=this[_0x90e1a(0x1e4)][_0x90e1a(0x4c3)][_0x90e1a(0x29a)](()=>{this['_hover']=!0x0;}),_0x3b2a9f=this['_anchor']['onPointerLeave$'][_0x90e1a(0x29a)](()=>{const _0x1c49f7=_0x90e1a;this['_hideTimer']&&clearTimeout(this[_0x1c49f7(0x425)]),this['_hideTimer']=setTimeout(()=>{const _0x7a159b=_0x1c49f7;this[_0x7a159b(0x4a9)]=!0x1;},0x7d0);});return()=>{const _0x98a2c9=_0x90e1a;_0x220ead[_0x98a2c9(0x5f6)](),_0x3b2a9f[_0x98a2c9(0x5f6)]();};}[_0x43a61c(0x53d)](_0x4a06e6,_0x1c81aa,_0x2fa0ec,_0x2f57e3){const _0xdf335b=_0x43a61c,_0x394f75=new _0x58174a[(_0xdf335b(0x2a5))](_0x4a06e6)[_0xdf335b(0x36b)](0.2)[_0xdf335b(0x273)](),_0x1645f7=new _0x438301[(_0xdf335b(0x475))](_0x252da7+_0x58174a[_0xdf335b(0x427)]['generateRandomId'](_0x2ff1ce),{'pointsGroup':_0x1c81aa,'fill':_0x394f75||_0x438301[_0xdf335b(0x5a9)](_0x58174a[_0xdf335b(0x3ed)][_0xdf335b(0x598)],0.2),'left':_0x2fa0ec,'top':_0x2f57e3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xdf335b(0x355)][_0xdf335b(0x311)](_0x1645f7),this['_scene'][_0xdf335b(0x4a1)](_0x1645f7,_0x19fc97[_0xdf335b(0x2be)]);}[_0x43a61c(0x406)](_0x486486,_0x217f64,_0x446f08,_0x375f1c){const _0x1b8c05=_0x43a61c,_0x29cc62=new _0x58174a[(_0x1b8c05(0x2a5))](_0x486486)['setAlpha'](0.2)['toRgbString'](),_0x2f5886=new _0x438301['RegularPolygon'](_0x165353+_0x58174a['Tools'][_0x1b8c05(0x51c)](_0x2ff1ce),{'pointsGroup':_0x217f64,'fill':_0x29cc62||_0x438301[_0x1b8c05(0x5a9)](_0x58174a[_0x1b8c05(0x3ed)][_0x1b8c05(0x598)],0.2),'left':_0x446f08,'top':_0x375f1c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b8c05(0x355)]['push'](_0x2f5886),this['_scene'][_0x1b8c05(0x4a1)](_0x2f5886,_0x19fc97[_0x1b8c05(0x2be)]);}[_0x43a61c(0x2e8)](_0x1727c6){const _0x21bee6=_0x1727c6[0x0],_0x1207b8=_0x21bee6[0x0],_0x42d69f=_0x21bee6[0x2],{x:_0x1f8405,y:_0x1c9908}=_0x1207b8,{x:_0x4a56fb,y:_0x228230}=_0x42d69f;return{'left':_0x1f8405,'top':_0x1c9908,'width':_0x4a56fb-_0x1f8405,'height':_0x228230-_0x1c9908};}['_getScale'](){const _0x566e5d=_0x43a61c,{scaleX:_0x264e11,scaleY:_0x323dc7}=this['_scene'][_0x566e5d(0x2c2)]();return Math['max'](_0x264e11,_0x323dc7);}}var _0x1d23df=Object['defineProperty'],_0x4e8e4a=Object['getOwnPropertyDescriptor'],_0x9de591=(_0x3ee68e,_0x29f2ec,_0x54aa87,_0x369a0b)=>{const _0xe71d75=_0x43a61c;for(var _0xa7c49b=_0x369a0b>0x1?void 0x0:_0x369a0b?_0x4e8e4a(_0x29f2ec,_0x54aa87):_0x29f2ec,_0x23c82c=_0x3ee68e[_0xe71d75(0x58f)]-0x1,_0xf052d8;_0x23c82c>=0x0;_0x23c82c--)(_0xf052d8=_0x3ee68e[_0x23c82c])&&(_0xa7c49b=(_0x369a0b?_0xf052d8(_0x29f2ec,_0x54aa87,_0xa7c49b):_0xf052d8(_0xa7c49b))||_0xa7c49b);return _0x369a0b&&_0xa7c49b&&_0x1d23df(_0x29f2ec,_0x54aa87,_0xa7c49b),_0xa7c49b;},_0x2d6f1d=(_0x4fca07,_0x4eb606)=>(_0x3a611e,_0xd1db5c)=>_0x4eb606(_0x3a611e,_0xd1db5c,_0x4fca07);let _0x3040e6=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x1d840e,_0x42590c,_0x11be85,_0x32a98b,_0x54c4e6){const _0x543965=_0x43a61c;super(),_0x4b178e(this,_0x543965(0x474),[]),_0x4b178e(this,'_cursors',[]),(this[_0x543965(0x2d6)]=_0x1d840e,this['_docSkeletonManagerService']=_0x42590c,this[_0x543965(0x25b)]=_0x11be85,this[_0x543965(0x4ea)]=_0x32a98b,this[_0x543965(0x1c2)]=_0x54c4e6,this[_0x543965(0x48d)]());}['_init'](){const _0x56b05e=_0x43a61c,_0x2f4848=this[_0x56b05e(0x2d6)][_0x56b05e(0x517)],_0x572b5f=this['_docSkeletonManagerService'];this[_0x56b05e(0x502)](_0x1678b1[_0x56b05e(0x3bd)]([this[_0x56b05e(0x25b)][_0x56b05e(0x55a)](_0x2f4848),this[_0x56b05e(0x1c2)][_0x56b05e(0x497)]])['pipe'](_0x5ab054[_0x56b05e(0x339)](([_0x120daf,_0xa156fd])=>({'skeleton':_0x572b5f[_0x56b05e(0x2f5)](),'cursors':[..._0x120daf[_0x56b05e(0x42d)]()][_0x56b05e(0x430)](_0x1cd1bd=>({..._0x1cd1bd,'color':_0xa156fd[_0x1cd1bd['color']]}))})))[_0x56b05e(0x387)](_0x3bdda6=>{const _0x126b6f=_0x56b05e;if(this[_0x126b6f(0x207)](),_0x3bdda6){const {skeleton:_0x5ec593,cursors:_0x1891d0}=_0x3bdda6;this[_0x126b6f(0x537)](_0x5ec593,_0x1891d0);}})),this['_initResize'](),this[_0x56b05e(0x36e)]();}['_updateCollabCursors'](_0x1d3e86,_0x59555d){const _0x2590c7=_0x43a61c,{scene:_0x1d0a0a,mainComponent:_0x495657}=this[_0x2590c7(0x2d6)],_0x40c99e=_0x59555d[_0x2590c7(0x339)](_0x45bb8d=>new _0x589605(_0x45bb8d,_0x1d0a0a,_0x1d3e86,_0x495657));this[_0x2590c7(0x474)]=_0x40c99e,this[_0x2590c7(0x330)]=_0x59555d;}['_refreshCollabCursors'](){const _0x1bd69e=_0x43a61c;this[_0x1bd69e(0x207)]();const {scene:_0x349c88,mainComponent:_0x445a15}=this[_0x1bd69e(0x2d6)],_0x5738b7=this[_0x1bd69e(0x51b)][_0x1bd69e(0x2f5)](),_0x4cc7de=this[_0x1bd69e(0x330)][_0x1bd69e(0x339)](_0x85ca2c=>new _0x589605(_0x85ca2c,_0x349c88,_0x5738b7,_0x445a15));this[_0x1bd69e(0x474)]=_0x4cc7de;}[_0x43a61c(0x207)](){const _0x1a151c=_0x43a61c;this[_0x1a151c(0x474)]['forEach'](_0x2e74a5=>_0x2e74a5[_0x1a151c(0x4b0)]()),this['_cursorShapes']=[];}[_0x43a61c(0x36e)](){const _0x3dcfd3=_0x43a61c,_0x1524e3=[_0x19fc97[_0x3dcfd3(0x35b)]['id']];this[_0x3dcfd3(0x502)](this[_0x3dcfd3(0x4ea)]['onCommandExecuted'](_0x26dc6c=>{const _0x3c891c=_0x3dcfd3;_0x1524e3['includes'](_0x26dc6c['id'])&&_0x26dc6c[_0x3c891c(0x559)][_0x3c891c(0x517)]===this[_0x3c891c(0x2d6)][_0x3c891c(0x517)]&&this[_0x3c891c(0x4ab)]();}));}['_initResize'](){const _0x3cc1f9=_0x43a61c;this['disposeWithMe'](_0x58174a[_0x3cc1f9(0x4d6)](this[_0x3cc1f9(0x2d6)][_0x3cc1f9(0x27d)][_0x3cc1f9(0x2cc)])[_0x3cc1f9(0x4c7)](_0x5ab054['filter'](_0x4e98da=>_0x4e98da[_0x3cc1f9(0x393)]===_0x438301['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3cc1f9(0x2b9)]),_0x5ab054[_0x3cc1f9(0x333)](0x10))['subscribe'](()=>{const _0x24ea79=_0x3cc1f9;this[_0x24ea79(0x4ab)]();}));}};_0x3040e6=_0x9de591([_0x2d6f1d(0x1,_0x58174a[_0x43a61c(0x409)](_0xb2a344[_0x43a61c(0x50d)])),_0x2d6f1d(0x2,_0x58174a[_0x43a61c(0x409)](_0x2dda95)),_0x2d6f1d(0x3,_0x58174a[_0x43a61c(0x512)]),_0x2d6f1d(0x4,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x215)]))],_0x3040e6);const _0x38c4b7=0x1,_0x477796=1.5;class _0x383b36 extends _0x438301['Shape']{constructor(_0x1009c5,_0x4e3a25){const _0x1513a8=_0x43a61c;super(_0x1009c5,_0x4e3a25),_0x4b178e(this,_0x1513a8(0x2c3)),_0x4b178e(this,'_hovered',!0x1),_0x4b178e(this,'_range'),_0x4b178e(this,_0x1513a8(0x483),''),_0x4b178e(this,_0x1513a8(0x342),_0x1513a8(0x5e7)),_0x4b178e(this,_0x1513a8(0x5b0)),(_0x4e3a25&&this[_0x1513a8(0x3b9)](_0x4e3a25),this['onPointerEnter$'][_0x1513a8(0x29a)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x1513a8(0x29a)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x43a61c(0x3b9)](_0x331f7a){const _0x218b7f=_0x43a61c;var _0x50a70f,_0x124fb4,_0x3478d2,_0x484630,_0x5740de,_0x434f81;this[_0x218b7f(0x2c3)]=(_0x50a70f=_0x331f7a[_0x218b7f(0x2aa)])!=null?_0x50a70f:this['_color'],this[_0x218b7f(0x510)]=(_0x124fb4=_0x331f7a[_0x218b7f(0x28a)])!=null?_0x124fb4:this['_hovered'],this[_0x218b7f(0x38f)]=(_0x3478d2=_0x331f7a['range'])!=null?_0x3478d2:this['_range'],this[_0x218b7f(0x483)]=(_0x484630=_0x331f7a['name'])!=null?_0x484630:this['_name'],this[_0x218b7f(0x342)]=(_0x5740de=_0x331f7a['labelPosition'])!=null?_0x5740de:this[_0x218b7f(0x342)],this[_0x218b7f(0x5b0)]=(_0x434f81=_0x331f7a['backgroundColor'])!=null?_0x434f81:this[_0x218b7f(0x5b0)],this[_0x218b7f(0x53b)]({'width':_0x331f7a[_0x218b7f(0x3df)],'height':_0x331f7a[_0x218b7f(0x4fa)]});}['onMouseMove'](_0xcdedc4){const _0x4506a6=_0x43a61c,{row:_0x4e423,column:_0x55b898}=_0xcdedc4;if(_0x4e423>=this['_range'][_0x4506a6(0x594)]&&_0x4e423<=this[_0x4506a6(0x38f)]['endRow']&&_0x55b898>=this['_range'][_0x4506a6(0x5fa)]&&_0x55b898<=this[_0x4506a6(0x38f)]['endColumn']){this[_0x4506a6(0x3b9)]({'hovered':!0x0});return;}this[_0x4506a6(0x3b9)]({'hovered':!0x1});}[_0x43a61c(0x3ae)](_0x449cbf){return!0x1;}[_0x43a61c(0x218)](_0x442f35){const _0x41aba0=_0x43a61c;_0x438301['Rect']['drawWith'](_0x442f35,{'width':this['width'],'height':this[_0x41aba0(0x4fa)],'strokeWidth':_0x477796,'stroke':this[_0x41aba0(0x2c3)],'evented':!0x1,'fill':this[_0x41aba0(0x5b0)]}),this[_0x41aba0(0x510)]&&(_0x442f35[_0x41aba0(0x38a)](),_0x442f35[_0x41aba0(0x44e)](0x1,0x0,0x0,0x1,this[_0x41aba0(0x3df)],this[_0x41aba0(0x342)]===_0x41aba0(0x566)?0x0:-_0x105ca9),_0x4e8ed0[_0x41aba0(0x52e)](_0x442f35,{'text':this['_name'],'color':this[_0x41aba0(0x2c3)]}),_0x442f35[_0x41aba0(0x300)]());}}var _0x5b199f=Object['defineProperty'],_0x2b2d68=Object['getOwnPropertyDescriptor'],_0x27fe96=(_0x26a493,_0x3eb722,_0x346232,_0x15433f)=>{for(var _0x136872=_0x15433f>0x1?void 0x0:_0x15433f?_0x2b2d68(_0x3eb722,_0x346232):_0x3eb722,_0x1fb6f2=_0x26a493['length']-0x1,_0x29a24a;_0x1fb6f2>=0x0;_0x1fb6f2--)(_0x29a24a=_0x26a493[_0x1fb6f2])&&(_0x136872=(_0x15433f?_0x29a24a(_0x3eb722,_0x346232,_0x136872):_0x29a24a(_0x136872))||_0x136872);return _0x15433f&&_0x136872&&_0x5b199f(_0x3eb722,_0x346232,_0x136872),_0x136872;},_0x274cc5=(_0xaa3b44,_0x5b4c73)=>(_0x568f71,_0x1b7d11)=>_0x5b4c73(_0x568f71,_0x1b7d11,_0xaa3b44);const _0x41901e=0x1389;let _0x46a70c=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x540d9e,_0x6dd159,_0x46a352,_0x3c7b4d){const _0x103f22=_0x43a61c;super(),_0x4b178e(this,'_cursors',new Set()),_0x4b178e(this,_0x103f22(0x4e3),null),(this['_context']=_0x540d9e,this[_0x103f22(0x437)]=_0x6dd159,this['_collabCursorController']=_0x46a352,this[_0x103f22(0x1c2)]=_0x3c7b4d,this['_init']());}[_0x43a61c(0x48d)](){const _0x50e293=_0x43a61c;this[_0x50e293(0x437)][_0x50e293(0x3ea)][_0x50e293(0x4c7)](_0x5ab054['takeUntil'](this['dispose$']),_0x5ab054[_0x50e293(0x574)](_0x5a0c00=>{const _0x138f8d=_0x50e293;if(_0x5a0c00){const _0x26577c=_0x5a0c00[_0x138f8d(0x4e9)];return _0x1678b1[_0x138f8d(0x3bd)](this['_collabCursorController'][_0x138f8d(0x55a)](this[_0x138f8d(0x2d6)][_0x138f8d(0x517)]),this['_themeService'][_0x138f8d(0x497)])[_0x138f8d(0x4c7)](_0x5ab054[_0x138f8d(0x339)](([_0x6c0b14,_0x4ad086])=>{const _0x582874=new Map();return _0x6c0b14['forEach']((_0x12ebe2,_0x16b691)=>{const _0x670411=_0xa224;if(_0x12ebe2[_0x670411(0x56b)]===_0x26577c){const _0x3d2bda={..._0x12ebe2};_0x3d2bda[_0x670411(0x2aa)]=_0x4ad086[_0x12ebe2[_0x670411(0x2aa)]],_0x582874[_0x670411(0x43b)](_0x16b691,_0x3d2bda);}}),{'skeleton':_0x5a0c00,'cursors':_0x582874};}));}return _0x1678b1['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x322bf4,cursors:_0x449dfa})=>{const _0x3a6b52=_0x50e293;this[_0x3a6b52(0x207)](),_0x322bf4&&this[_0x3a6b52(0x537)](_0x322bf4,_0x449dfa);}),this[_0x50e293(0x437)][_0x50e293(0x3ea)][_0x50e293(0x387)](_0x57b7b9=>{const _0x47d175=_0x50e293;if(_0x57b7b9==null)return;const {skeleton:_0x3701f1}=_0x57b7b9,{scene:_0x3cf110}=this[_0x47d175(0x2d6)];_0x3cf110[_0x47d175(0x5b3)]['subscribeEvent'](_0x58174a[_0x47d175(0x34e)](_0xfc3807=>{const _0x484203=_0x47d175;var _0x3681cd,_0x349b48;const {offsetX:_0x24bf16,offsetY:_0x42def0}=_0xfc3807,{x:_0x3ec994,y:_0x37928f}=_0x3cf110[_0x484203(0x4c0)](_0x438301['Vector2']['FromArray']([_0x24bf16,_0x42def0])),{scaleX:_0x27822e,scaleY:_0x4ce2ad}=_0x3cf110['getAncestorScale'](),_0x1d517f=_0x3cf110[_0x484203(0x535)](_0x3f7d1a[_0x484203(0x52c)][_0x484203(0x46a)]),_0x7c1b6c=_0x3cf110['getVpScrollXYInfoByPosToVp'](_0x438301[_0x484203(0x4c8)]['FromArray']([_0x3ec994,_0x37928f]),_0x1d517f),_0x4e33f6=_0x3701f1[_0x484203(0x20f)](_0x24bf16,_0x42def0,_0x27822e,_0x4ce2ad,_0x7c1b6c);((_0x3681cd=this[_0x484203(0x4e3)])==null?void 0x0:_0x3681cd['column'])===_0x4e33f6[_0x484203(0x5ab)]&&((_0x349b48=this['_lastPointer'])==null?void 0x0:_0x349b48[_0x484203(0x2c6)])===_0x4e33f6[_0x484203(0x2c6)]||this['_cursors'][_0x484203(0x348)](_0x3ec5a1=>{const _0x3032f3=_0x484203;_0x3ec5a1[_0x3032f3(0x2ee)](_0x4e33f6);});},0x64));});}[_0x43a61c(0x537)](_0x2bd516,_0x7bbe09){const _0x2d60f7=_0x43a61c;var _0x4c8408;const _0x6d0555=(_0x4c8408=this[_0x2d60f7(0x437)][_0x2d60f7(0x42f)]())==null?void 0x0:_0x4c8408['skeleton'];if(!_0x6d0555)return;const _0x4e6e08=this[_0x2d60f7(0x380)]();if(!_0x4e6e08)return;this[_0x2d60f7(0x330)][_0x2d60f7(0x348)](_0x15b6b6=>{const _0x5e53cc=_0x2d60f7;_0x15b6b6[_0x5e53cc(0x396)]();});const {scene:_0x104530}=_0x4e6e08,_0x2f9d4f=_0x1e1b19(Array[_0x2d60f7(0x5eb)](_0x7bbe09[_0x2d60f7(0x42d)]()))[_0x2d60f7(0x339)](_0x575c5b=>{const _0x1f8423=_0x2d60f7,{color:_0x327f35,range:_0x89818f,name:_0x510506,selection:_0x490d36,sheetID:_0x8e5e7e}=_0x575c5b,{startColumn:_0x1a4348,startRow:_0x100afb,endColumn:_0x541f4e,endRow:_0x10b6be}=_0x89818f,_0x3469a8=_0x3f7d1a[_0x1f8423(0x428)](_0x100afb,_0x1a4348,_0x104530,_0x6d0555),_0x258d61=_0x3f7d1a[_0x1f8423(0x428)](_0x10b6be,_0x541f4e,_0x104530,_0x6d0555),{columnHeaderHeightAndMarginTop:_0x37d51a}=_0x6d0555,{startX:_0x8f1984,startY:_0x1c0d85}=_0x3469a8,{endX:_0x16ea93,endY:_0x21f315}=_0x258d61,_0x31cbb9=_0x16ea93-_0x8f1984,_0x448221=_0x21f315-_0x1c0d85,_0x2c58a0={'labelPosition':_0x1c0d85-_0x37d51a>=_0x105ca9?_0x1f8423(0x5e7):'bottom','sheetID':_0x8e5e7e,'range':_0x89818f,'color':_0x327f35,'name':_0x510506,'selection':_0x490d36,'left':_0x8f1984,'top':_0x1c0d85,'width':_0x31cbb9,'height':_0x448221,'evented':!0x1,'zIndex':_0x41901e};return new _0x383b36(_0x510506,_0x2c58a0);});_0x104530[_0x2d60f7(0x4b5)](_0x2f9d4f,_0x38c4b7),this[_0x2d60f7(0x330)]=new Set(_0x2f9d4f);}[_0x43a61c(0x207)](){const _0x222aed=_0x43a61c;var _0x32fd37;(_0x32fd37=this[_0x222aed(0x330)])==null||_0x32fd37['forEach'](_0xc6e281=>_0xc6e281[_0x222aed(0x4b0)]());}[_0x43a61c(0x380)](){const _0x1aac64=_0x43a61c;return _0x3f7d1a[_0x1aac64(0x486)](this[_0x1aac64(0x2d6)]['unit'],this['_context']);}};_0x46a70c=_0x27fe96([_0x274cc5(0x1,_0x58174a[_0x43a61c(0x409)](_0x3f7d1a[_0x43a61c(0x2ae)])),_0x274cc5(0x2,_0x58174a[_0x43a61c(0x409)](_0x2dda95)),_0x274cc5(0x3,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x215)]))],_0x46a70c);function _0x1e1b19(_0x466be9){const _0x46b9d3=_0x43a61c,_0x5f526a=new Map();return _0x466be9[_0x46b9d3(0x348)](_0xa9d524=>{const _0x510c40=_0x46b9d3;if(_0x5f526a[_0x510c40(0x238)](_0xa9d524['selection'])){const _0x3aed25=_0x5f526a[_0x510c40(0x40a)](_0xa9d524[_0x510c40(0x480)]);_0x3aed25['name']+=',\x20'+_0xa9d524[_0x510c40(0x259)];}else _0x5f526a['set'](_0xa9d524[_0x510c40(0x480)],_0xa9d524);}),Array['from'](_0x5f526a[_0x46b9d3(0x42d)]());}var _0x3fa2d8=function(){const _0x1c0697=_0x43a61c;return _0x3fa2d8=Object[_0x1c0697(0x49d)]||function(_0x5b1c2c){const _0x1f91f0=_0x1c0697;for(var _0x305db1,_0x23c44f=0x1,_0xc0c56f=arguments[_0x1f91f0(0x58f)];_0x23c44f<_0xc0c56f;_0x23c44f++){_0x305db1=arguments[_0x23c44f];for(var _0x441ee6 in _0x305db1)Object[_0x1f91f0(0x2d9)][_0x1f91f0(0x302)][_0x1f91f0(0x482)](_0x305db1,_0x441ee6)&&(_0x5b1c2c[_0x441ee6]=_0x305db1[_0x441ee6]);}return _0x5b1c2c;},_0x3fa2d8['apply'](this,arguments);},_0x39dbbf=function(_0x6fa163,_0x1eacca){const _0x506c6c=_0x43a61c;var _0x2453db={};for(var _0x1c0ce6 in _0x6fa163)Object[_0x506c6c(0x2d9)]['hasOwnProperty']['call'](_0x6fa163,_0x1c0ce6)&&_0x1eacca['indexOf'](_0x1c0ce6)<0x0&&(_0x2453db[_0x1c0ce6]=_0x6fa163[_0x1c0ce6]);if(_0x6fa163!=null&&typeof Object[_0x506c6c(0x456)]=='function'){for(var _0x5b6e24=0x0,_0x1c0ce6=Object['getOwnPropertySymbols'](_0x6fa163);_0x5b6e24<_0x1c0ce6[_0x506c6c(0x58f)];_0x5b6e24++)_0x1eacca[_0x506c6c(0x534)](_0x1c0ce6[_0x5b6e24])<0x0&&Object[_0x506c6c(0x2d9)][_0x506c6c(0x40f)][_0x506c6c(0x482)](_0x6fa163,_0x1c0ce6[_0x5b6e24])&&(_0x2453db[_0x1c0ce6[_0x5b6e24]]=_0x6fa163[_0x1c0ce6[_0x5b6e24]]);}return _0x2453db;},_0x353e93=_0x2f3423[_0x43a61c(0x27e)](function(_0x2a8b90,_0x847b63){const _0x189830=_0x43a61c;var _0x3a415f=_0x2a8b90[_0x189830(0x3dc)],_0x1e4629=_0x2a8b90['id'],_0x2e787f=_0x2a8b90[_0x189830(0x345)],_0x1601b9=_0x2a8b90[_0x189830(0x4a5)],_0x447838=_0x39dbbf(_0x2a8b90,[_0x189830(0x3dc),'id','className',_0x189830(0x4a5)]),_0x344978=_0x189830(0x31a)[_0x189830(0x436)](_0x1e4629,'\x20')[_0x189830(0x436)](_0x2e787f||'')[_0x189830(0x407)](),_0x207565=_0x2f3423[_0x189830(0x5c4)]('_'[_0x189830(0x436)](_0x5879d0()));return _0x33b88c(_0x3a415f,''['concat'](_0x1e4629),{'defIds':_0x3a415f[_0x189830(0x54b)],'idSuffix':_0x207565[_0x189830(0x558)]},_0x3fa2d8({'ref':_0x847b63,'className':_0x344978},_0x447838),_0x1601b9);});function _0x33b88c(_0x5ac763,_0x237751,_0x31ab8c,_0x4856fb,_0x3e7549){const _0xf1edd4=_0x43a61c;return _0x2f3423[_0xf1edd4(0x214)](_0x5ac763['tag'],_0x3fa2d8(_0x3fa2d8({'key':_0x237751},_0x3a6654(_0x5ac763,_0x31ab8c,_0x3e7549)),_0x4856fb),(_0x3d8fcc(_0x5ac763,_0x31ab8c)[_0xf1edd4(0x547)]||[])[_0xf1edd4(0x339)](function(_0x1e56c5,_0x45f987){const _0x48ac69=_0xf1edd4;return _0x33b88c(_0x1e56c5,''['concat'](_0x237751,'-')[_0x48ac69(0x436)](_0x5ac763[_0x48ac69(0x3f3)],'-')[_0x48ac69(0x436)](_0x45f987),_0x31ab8c,void 0x0,_0x3e7549);}));}function _0x3a6654(_0xb0db30,_0x1e805d,_0xc01350){const _0x384d1d=_0x43a61c;var _0x154d08=_0x3fa2d8({},_0xb0db30['attrs']);_0xc01350!=null&&_0xc01350[_0x384d1d(0x3cc)]&&_0x154d08[_0x384d1d(0x5ad)]===_0x384d1d(0x3cc)&&(_0x154d08['fill']=_0xc01350[_0x384d1d(0x3cc)]);var _0x222507=_0x1e805d[_0x384d1d(0x54b)];return!_0x222507||_0x222507[_0x384d1d(0x58f)]===0x0||(_0xb0db30['tag']===_0x384d1d(0x367)&&_0x154d08[_0x384d1d(0x250)]&&(_0x154d08['xlink:href']=_0x154d08[_0x384d1d(0x250)]+_0x1e805d['idSuffix']),Object[_0x384d1d(0x2d1)](_0x154d08)[_0x384d1d(0x348)](function(_0x32c819){const _0x5aa844=_0x384d1d;var _0x19d043=_0x32c819[0x0],_0x2c0cd5=_0x32c819[0x1];typeof _0x2c0cd5=='string'&&(_0x154d08[_0x19d043]=_0x2c0cd5['replace'](/url\(#(.*)\)/,_0x5aa844(0x3fb)['concat'](_0x1e805d[_0x5aa844(0x24a)],')')));})),_0x154d08;}function _0x3d8fcc(_0x50fdb4,_0x542cbf){const _0x149047=_0x43a61c;var _0x4fdc4c,_0x544f00=_0x542cbf[_0x149047(0x54b)];return!_0x544f00||_0x544f00[_0x149047(0x58f)]===0x0?_0x50fdb4:_0x50fdb4[_0x149047(0x3f3)]==='defs'&&(!((_0x4fdc4c=_0x50fdb4[_0x149047(0x547)])===null||_0x4fdc4c===void 0x0)&&_0x4fdc4c[_0x149047(0x58f)])?_0x3fa2d8(_0x3fa2d8({},_0x50fdb4),{'children':_0x50fdb4['children'][_0x149047(0x339)](function(_0x2fcc1b){const _0x335378=_0x149047;return typeof _0x2fcc1b[_0x335378(0x2eb)]['id']==_0x335378(0x233)&&_0x544f00&&_0x544f00[_0x335378(0x534)](_0x2fcc1b[_0x335378(0x2eb)]['id'])>-0x1?_0x3fa2d8(_0x3fa2d8({},_0x2fcc1b),{'attrs':_0x3fa2d8(_0x3fa2d8({},_0x2fcc1b['attrs']),{'id':_0x2fcc1b[_0x335378(0x2eb)]['id']+_0x542cbf[_0x335378(0x24a)]})}):_0x2fcc1b;})}):_0x50fdb4;}function _0x5879d0(){const _0x345a14=_0x43a61c;return Math[_0x345a14(0x328)]()[_0x345a14(0x2b2)](0x24)[_0x345a14(0x3e2)](0x2,0x8);}_0x353e93[_0x43a61c(0x4aa)]=_0x43a61c(0x375);var _0x2e9abb={'tag':_0x43a61c(0x545),'attrs':{'fill':_0x43a61c(0x36c),'viewBox':_0x43a61c(0x444),'width':_0x43a61c(0x2b3),'height':_0x43a61c(0x2b3)},'children':[{'tag':'g','attrs':{'clipPath':_0x43a61c(0x591)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x43a61c(0x43f),'strokeLinejoin':_0x43a61c(0x43f),'strokeWidth':1.2}}]},{'tag':_0x43a61c(0x25f),'attrs':{},'children':[{'tag':_0x43a61c(0x2a9),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x43a61c(0x29d),'attrs':{'fill':_0x43a61c(0x21c),'d':_0x43a61c(0x36a)}}]}]}],'defIds':[_0x43a61c(0x514)]},_0x5406f2=_0x2f3423['forwardRef'](function(_0x3efbf0,_0x504986){const _0x1f7a6e=_0x43a61c;return _0x2f3423[_0x1f7a6e(0x214)](_0x353e93,Object[_0x1f7a6e(0x49d)]({},_0x3efbf0,{'id':_0x1f7a6e(0x2b8),'ref':_0x504986,'icon':_0x2e9abb}));});_0x5406f2[_0x43a61c(0x4aa)]=_0x43a61c(0x5b1);var _0x202127={'tag':_0x43a61c(0x545),'attrs':{'fill':'none','viewBox':_0x43a61c(0x552),'width':_0x43a61c(0x2b3),'height':_0x43a61c(0x2b3)},'children':[{'tag':'g','attrs':{'clipPath':_0x43a61c(0x3aa)},'children':[{'tag':_0x43a61c(0x29d),'attrs':{'stroke':_0x43a61c(0x5ee),'d':_0x43a61c(0x222),'strokeLinecap':_0x43a61c(0x43f),'strokeLinejoin':_0x43a61c(0x43f),'strokeWidth':1.2}}]},{'tag':_0x43a61c(0x25f),'attrs':{},'children':[{'tag':_0x43a61c(0x2a9),'attrs':{'id':_0x43a61c(0x1e6)},'children':[{'tag':_0x43a61c(0x29d),'attrs':{'fill':'#fff','d':_0x43a61c(0x36a),'transform':_0x43a61c(0x1e9)}}]}]}],'defIds':[_0x43a61c(0x1e6)]},_0x145a21=_0x2f3423[_0x43a61c(0x27e)](function(_0x3c31d7,_0x3189c9){const _0x3b7473=_0x43a61c;return _0x2f3423[_0x3b7473(0x214)](_0x353e93,Object[_0x3b7473(0x49d)]({},_0x3c31d7,{'id':_0x3b7473(0x256),'ref':_0x3189c9,'icon':_0x202127}));});_0x145a21['displayName']=_0x43a61c(0x5e4);function _0x5c31e1(_0x19cf1e){const _0x67d4ff=_0x43a61c;var _0x549256,_0xf16243,_0x2d195a='';if(typeof _0x19cf1e==_0x67d4ff(0x233)||typeof _0x19cf1e==_0x67d4ff(0x4ad))_0x2d195a+=_0x19cf1e;else{if(typeof _0x19cf1e==_0x67d4ff(0x46d)){if(Array['isArray'](_0x19cf1e)){var _0x285e85=_0x19cf1e[_0x67d4ff(0x58f)];for(_0x549256=0x0;_0x549256<_0x285e85;_0x549256++)_0x19cf1e[_0x549256]&&(_0xf16243=_0x5c31e1(_0x19cf1e[_0x549256]))&&(_0x2d195a&&(_0x2d195a+='\x20'),_0x2d195a+=_0xf16243);}else{for(_0xf16243 in _0x19cf1e)_0x19cf1e[_0xf16243]&&(_0x2d195a&&(_0x2d195a+='\x20'),_0x2d195a+=_0xf16243);}}}return _0x2d195a;}function _0x115981(){const _0x291971=_0x43a61c;for(var _0xf48255,_0x4ac294,_0x150025=0x0,_0x5f5688='',_0x2eb6bf=arguments[_0x291971(0x58f)];_0x150025<_0x2eb6bf;_0x150025++)(_0xf48255=arguments[_0x150025])&&(_0x4ac294=_0x5c31e1(_0xf48255))&&(_0x5f5688&&(_0x5f5688+='\x20'),_0x5f5688+=_0x4ac294);return _0x5f5688;}const _0x34a9fb={'onlineStatusIcon':_0x43a61c(0x244),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x43a61c(0x227),'online':_0x43a61c(0x45b),'offline':_0x43a61c(0x485)};function _0x4119c6(_0x3e9518){const _0x57c69a=_0x43a61c;switch(_0x3e9518){case _0x29d72b['OFFLINE']:return _0x57c69a(0x30d);case _0x29d72b[_0x57c69a(0x291)]:return _0x57c69a(0x49a);case _0x29d72b[_0x57c69a(0x30c)]:return _0x57c69a(0x3d6);case _0x29d72b['NOT_COLLAB']:return _0x57c69a(0x5cb);case _0x29d72b[_0x57c69a(0x561)]:case _0x29d72b[_0x57c69a(0x5cd)]:return'collabStatus.syncing';case _0x29d72b[_0x57c69a(0x4a4)]:case _0x29d72b[_0x57c69a(0x4db)]:return _0x57c69a(0x438);}}function _0x25c453(_0x4a668f){const _0xf755b0=_0x43a61c,{status$:_0x3ca2f8}=_0x4a668f,_0x3419db=_0x130918[_0xf755b0(0x5d1)](_0x3ca2f8,_0x29d72b[_0xf755b0(0x551)]),_0x5c6ac8=_0x58174a['useDependency'](_0x58174a[_0xf755b0(0x3c3)]),_0x58b0e1=_0x58174a['useDependency'](_0x70db69['CollaborationSessionService']),_0x14d934=_0x3419db!==_0x29d72b[_0xf755b0(0x25d)],_0x27e760=_0x5c6ac8['t'](_0x4119c6(_0x3419db)),_0x33157c=_0x115981(_0x34a9fb[_0xf755b0(0x5aa)],{[_0x34a9fb[_0xf755b0(0x29c)]]:_0x14d934,[_0x34a9fb[_0xf755b0(0x4f4)]]:!_0x14d934}),_0x2a3fdb=_0x14d934?_0x2f3423['createElement'](_0x145a21,null):_0x2f3423[_0xf755b0(0x214)](_0x5406f2,null),_0x2e7d49=_0x2f3423[_0xf755b0(0x3ac)](()=>{_0x14d934||_0x58b0e1['reconnect']();},[_0x14d934,_0x58b0e1]);function _0x271f95(){const _0x1e52ef=_0xf755b0;return _0x2f3423[_0x1e52ef(0x214)](_0x1e52ef(0x2e1),{'className':_0x33157c,'onClick':_0x2e7d49},_0x2f3423[_0x1e52ef(0x214)]('div',{'className':_0x34a9fb[_0x1e52ef(0x4f9)]},_0x2a3fdb),_0x2f3423[_0x1e52ef(0x214)](_0x1e52ef(0x2e1),{'className':_0x34a9fb['onlineStatusTitle']},_0x27e760));}return _0x14d934?_0x271f95():_0x2f3423[_0xf755b0(0x214)](_0x2738af[_0xf755b0(0x5f5)],{'title':_0x5c6ac8['t']('collab-client.tooltip.reconnect')},_0x271f95());}var _0x1631ed=Object[_0x43a61c(0x408)],_0x2f9972=Object[_0x43a61c(0x33d)],_0x4a4153=(_0x3870d2,_0x4c1473,_0x315170,_0x5761d0)=>{for(var _0x96f696=_0x5761d0>0x1?void 0x0:_0x5761d0?_0x2f9972(_0x4c1473,_0x315170):_0x4c1473,_0x4cdb67=_0x3870d2['length']-0x1,_0x2071fb;_0x4cdb67>=0x0;_0x4cdb67--)(_0x2071fb=_0x3870d2[_0x4cdb67])&&(_0x96f696=(_0x5761d0?_0x2071fb(_0x4c1473,_0x315170,_0x96f696):_0x2071fb(_0x96f696))||_0x96f696);return _0x5761d0&&_0x96f696&&_0x1631ed(_0x4c1473,_0x315170,_0x96f696),_0x96f696;},_0x56b76d=(_0x3215b0,_0x73a35d)=>(_0xd5b893,_0x4e5d61)=>_0x73a35d(_0xd5b893,_0x4e5d61,_0x3215b0);_0x70db69[_0x43a61c(0x399)]=class extends _0x58174a[_0x43a61c(0x320)]{constructor(_0x1ece3e,_0x312576,_0x4a428d,_0x2f962f){const _0x326f07=_0x43a61c;super(),_0x4b178e(this,'_status$',new _0x1678b1[(_0x326f07(0x44b))](_0x29d72b['NOT_COLLAB'])),(this[_0x326f07(0x360)]=_0x1ece3e,this[_0x326f07(0x3f5)]=_0x312576,this[_0x326f07(0x228)]=_0x4a428d,this['_collaborationController']=_0x2f962f,this[_0x326f07(0x340)](),this[_0x326f07(0x5e8)]());}[_0x43a61c(0x5e8)](){const _0x15e201=_0x43a61c;this[_0x15e201(0x502)](this[_0x15e201(0x360)]['focused$'][_0x15e201(0x4c7)](_0x1678b1[_0x15e201(0x574)](()=>{const _0x5d9321=_0x15e201,_0x3257cc=this[_0x5d9321(0x360)][_0x5d9321(0x4b6)]();return _0x3257cc?this[_0x5d9321(0x2f4)][_0x5d9321(0x2c1)](_0x3257cc['getUnitId']()):_0x1678b1['of'](null);}),_0x1678b1['switchMap'](_0x81d61e=>_0x81d61e?_0x81d61e['status$']:_0x1678b1['of'](_0x29d72b['NOT_COLLAB'])))['subscribe'](_0x160fdf=>{const _0x476ff7=_0x15e201;this['_status$'][_0x476ff7(0x46c)](_0x160fdf);}));}[_0x43a61c(0x340)](){const _0xad955e=_0x43a61c;this['disposeWithMe'](this[_0xad955e(0x3f5)][_0xad955e(0x335)](_0x130918['BuiltInUIPart'][_0xad955e(0x371)],()=>_0x58174a[_0xad955e(0x5db)](_0x200104({'status$':this[_0xad955e(0x3d3)][_0xad955e(0x5dc)]()}),this[_0xad955e(0x228)])));}},_0x70db69[_0x43a61c(0x399)]=_0x4a4153([_0x56b76d(0x0,_0x58174a[_0x43a61c(0x560)]),_0x56b76d(0x1,_0x130918['IUIPartsService']),_0x56b76d(0x2,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x56b76d(0x3,_0x58174a['Inject'](_0x70db69[_0x43a61c(0x578)]))],_0x70db69[_0x43a61c(0x399)]);function _0x200104(_0x143651){const {status$:_0x33d00a}=_0x143651;return function(){const _0x30a121=_0xa224;return _0x2f3423[_0x30a121(0x214)](_0x25c453,{'status$':_0x33d00a});};}const _0x5e17f4=_0x58174a[_0x43a61c(0x5c1)](_0x43a61c(0x290));var _0x28e04f=Object[_0x43a61c(0x408)],_0x10701d=Object['getOwnPropertyDescriptor'],_0x49a442=(_0x2cabcc,_0x1e39be,_0x9c205b,_0x20c671)=>{const _0x4a0163=_0x43a61c;for(var _0x163d5c=_0x20c671>0x1?void 0x0:_0x20c671?_0x10701d(_0x1e39be,_0x9c205b):_0x1e39be,_0x4eeb4a=_0x2cabcc[_0x4a0163(0x58f)]-0x1,_0x562034;_0x4eeb4a>=0x0;_0x4eeb4a--)(_0x562034=_0x2cabcc[_0x4eeb4a])&&(_0x163d5c=(_0x20c671?_0x562034(_0x1e39be,_0x9c205b,_0x163d5c):_0x562034(_0x163d5c))||_0x163d5c);return _0x20c671&&_0x163d5c&&_0x28e04f(_0x1e39be,_0x9c205b,_0x163d5c),_0x163d5c;},_0x6b97ee=(_0x1f76df,_0x1b2d7f)=>(_0x32dbf1,_0x3bb65a)=>_0x1b2d7f(_0x32dbf1,_0x3bb65a,_0x1f76df);_0x70db69['DataLoaderController']=class extends _0x58174a['RxDisposable']{constructor(_0x4979c0,_0x2eb961,_0x342021,_0x4db823,_0x58b81a,_0x1881d8){const _0x88699e=_0x43a61c;super(),this[_0x88699e(0x22a)]=_0x4979c0,this['_logService']=_0x2eb961,this[_0x88699e(0x4ea)]=_0x342021,this[_0x88699e(0x3e9)]=_0x4db823,this['_snapshotService']=_0x58b81a,_0x1881d8?_0x1881d8==null||_0x1881d8['whenReady']()[_0x88699e(0x2bd)](()=>this[_0x88699e(0x48d)]()):(this[_0x88699e(0x4e4)][_0x88699e(0x3f7)](_0x88699e(0x50c),_0x88699e(0x309)),this['_init']());}async[_0x43a61c(0x48d)](){const _0x55a445=_0x43a61c,_0x1d776c=this['_urlService'][_0x55a445(0x4e8)]('unit'),_0x17d7e3=this[_0x55a445(0x22a)][_0x55a445(0x4e8)]('type');if(!_0x1d776c||!_0x17d7e3){this[_0x55a445(0x4e4)]['debug'](_0x55a445(0x50c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x17d7e3)){case _0x5f4ecc[_0x55a445(0x264)]:{const _0x1719b2=await this[_0x55a445(0x556)](_0x1d776c);this[_0x55a445(0x5a0)](_0x1719b2);break;}case _0x5f4ecc['UNIVER_DOC']:{await this['_loadDoc'](_0x1d776c);break;}default:{this[_0x55a445(0x4e4)]['error'](_0x55a445(0x50c),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x43a61c(0x5a0)](_0x1d4990){const _0x14b858=_0x43a61c;await this[_0x14b858(0x2ce)](_0x1d4990),_0x1d4990[_0x14b858(0x550)][_0x14b858(0x4c7)](_0x1678b1[_0x14b858(0x346)](this[_0x14b858(0x341)]))[_0x14b858(0x387)](_0x2a2738=>{const _0x53c335=_0x14b858;_0x2a2738&&this[_0x53c335(0x41b)](_0x2a2738);}),this[_0x14b858(0x22a)]['urlChange$'][_0x14b858(0x4c7)](_0x1678b1['takeUntil'](this[_0x14b858(0x341)]))[_0x14b858(0x387)](()=>this[_0x14b858(0x2ce)](_0x1d4990));}[_0x43a61c(0x41b)](_0x54b4b8,_0x58454a=!0x1){const _0x1e27d4=_0x43a61c,_0x16b5ea=this[_0x1e27d4(0x22a)][_0x1e27d4(0x4e8)](_0x1e27d4(0x5d5));_0x54b4b8[_0x1e27d4(0x34f)]()!==_0x16b5ea&&this[_0x1e27d4(0x22a)][_0x1e27d4(0x1ff)](_0x1e27d4(0x5d5),_0x54b4b8[_0x1e27d4(0x34f)](),_0x58454a);}async[_0x43a61c(0x2ce)](_0x120a79){const _0x2abc62=_0x43a61c;var _0x3adb66;const _0x1ba1a1=this['_urlService'][_0x2abc62(0x4e8)](_0x2abc62(0x5d5));if(!_0x1ba1a1||!_0x120a79[_0x2abc62(0x3f1)](_0x1ba1a1)){const _0x860bdd=_0x120a79[_0x2abc62(0x2a1)]()[0x0],_0x52763a=_0x120a79[_0x2abc62(0x3f1)](_0x860bdd);if(!_0x52763a)return;this[_0x2abc62(0x41b)](_0x52763a,!0x0),await this[_0x2abc62(0x4ea)][_0x2abc62(0x45c)](_0x46ce2c[_0x2abc62(0x1ed)]['id'],{'unitId':_0x120a79['getUnitId'](),'subUnitId':_0x860bdd});return;}((_0x3adb66=_0x120a79[_0x2abc62(0x31e)]())==null?void 0x0:_0x3adb66[_0x2abc62(0x34f)]())!==_0x1ba1a1&&await this[_0x2abc62(0x4ea)][_0x2abc62(0x45c)](_0x46ce2c[_0x2abc62(0x1ed)]['id'],{'unitId':_0x120a79[_0x2abc62(0x231)](),'subUnitId':_0x1ba1a1});}async['_loadSheet'](_0x962498){const _0x1110ab=_0x43a61c;let _0x33a016=0x0;const _0x48e0eb=await this[_0x1110ab(0x3e9)][_0x1110ab(0x5f1)](_0x962498);return _0x48e0eb&&(_0x48e0eb['awaitingChangeset']||_0x48e0eb['mutations']['length']!==0x0)&&(_0x33a016=_0x48e0eb[_0x1110ab(0x586)]),_0x33a016===0x0&&this[_0x1110ab(0x4e4)]['debug'](_0x1110ab(0x50c),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x1110ab(0x43e)][_0x1110ab(0x213)](_0x962498,_0x33a016);}async[_0x43a61c(0x3bc)](_0x285b09){const _0x1fbee4=_0x43a61c;let _0x25bdd4=0x0;const _0x22371e=await this['_localCacheService'][_0x1fbee4(0x5f1)](_0x285b09);return _0x22371e&&(_0x22371e[_0x1fbee4(0x4b9)]||_0x22371e[_0x1fbee4(0x5f4)][_0x1fbee4(0x58f)]!==0x0)&&(_0x25bdd4=_0x22371e[_0x1fbee4(0x586)]),_0x25bdd4===0x0&&this[_0x1fbee4(0x4e4)][_0x1fbee4(0x3f7)](_0x1fbee4(0x50c),_0x1fbee4(0x24c)),this[_0x1fbee4(0x43e)][_0x1fbee4(0x38e)](_0x285b09,_0x25bdd4);}},_0x70db69[_0x43a61c(0x447)]=_0x49a442([_0x6b97ee(0x0,_0x5e17f4),_0x6b97ee(0x1,_0x58174a['ILogService']),_0x6b97ee(0x2,_0x58174a[_0x43a61c(0x512)]),_0x6b97ee(0x3,_0x58174a['Inject'](_0x70db69['LocalCacheService'])),_0x6b97ee(0x4,_0x58174a[_0x43a61c(0x409)](_0x582bb5[_0x43a61c(0x42a)])),_0x6b97ee(0x5,_0x58174a[_0x43a61c(0x573)](_0x49330c[_0x43a61c(0x4b2)]))],_0x70db69[_0x43a61c(0x447)]);var _0xe10723=Object['defineProperty'],_0x8ab9e7=Object[_0x43a61c(0x33d)],_0x293543=(_0x1f4a82,_0x514197,_0x285020,_0x3babce)=>{const _0x4d63f6=_0x43a61c;for(var _0x18376c=_0x3babce>0x1?void 0x0:_0x3babce?_0x8ab9e7(_0x514197,_0x285020):_0x514197,_0x125a6b=_0x1f4a82[_0x4d63f6(0x58f)]-0x1,_0x29e6e7;_0x125a6b>=0x0;_0x125a6b--)(_0x29e6e7=_0x1f4a82[_0x125a6b])&&(_0x18376c=(_0x3babce?_0x29e6e7(_0x514197,_0x285020,_0x18376c):_0x29e6e7(_0x18376c))||_0x18376c);return _0x3babce&&_0x18376c&&_0xe10723(_0x514197,_0x285020,_0x18376c),_0x18376c;},_0x1a60cc=(_0x4cc008,_0x1d55b2)=>(_0x9c50a4,_0x33a895)=>_0x1d55b2(_0x9c50a4,_0x33a895,_0x4cc008);const _0x3c172e='DEFAULT_FILE_NAME',_0x40c55b=_0x43a61c(0x3ab);let _0x21ff1b=class extends _0x58174a[_0x43a61c(0x320)]{constructor(_0x1b2668,_0x5e098e){const _0x405670=_0x43a61c;super(),this[_0x405670(0x360)]=_0x1b2668,this['_configService']=_0x5e098e,this[_0x405670(0x48d)]();}[_0x43a61c(0x48d)](){const _0x16cf9f=_0x43a61c;this[_0x16cf9f(0x502)](this[_0x16cf9f(0x360)][_0x16cf9f(0x3e8)]['subscribe'](()=>{const _0x2a0f74=_0x16cf9f;var _0xcfa741;const _0x5d6f1b=this['_univerInstanceService']['getFocusedUnit']();let _0x19aa90=(_0xcfa741=this[_0x2a0f74(0x5a5)][_0x2a0f74(0x466)](_0x3c172e))!=null?_0xcfa741:_0x40c55b;_0x5d6f1b instanceof _0x58174a[_0x2a0f74(0x571)]&&(_0x19aa90=_0x5d6f1b[_0x2a0f74(0x259)]),document[_0x2a0f74(0x5bf)]=_0x19aa90;}));}};_0x21ff1b=_0x293543([_0x1a60cc(0x0,_0x58174a[_0x43a61c(0x560)]),_0x1a60cc(0x1,_0x58174a[_0x43a61c(0x5bc)])],_0x21ff1b);var _0x17eb87=Object[_0x43a61c(0x408)],_0x4645e5=Object['getOwnPropertyDescriptor'],_0x47f98b=(_0x106f60,_0x4a53b2,_0x32e7e2,_0x9590f7)=>{for(var _0x32757c=_0x9590f7>0x1?void 0x0:_0x9590f7?_0x4645e5(_0x4a53b2,_0x32e7e2):_0x4a53b2,_0x1fdd81=_0x106f60['length']-0x1,_0x33a4e5;_0x1fdd81>=0x0;_0x1fdd81--)(_0x33a4e5=_0x106f60[_0x1fdd81])&&(_0x32757c=(_0x9590f7?_0x33a4e5(_0x4a53b2,_0x32e7e2,_0x32757c):_0x33a4e5(_0x32757c))||_0x32757c);return _0x9590f7&&_0x32757c&&_0x17eb87(_0x4a53b2,_0x32e7e2,_0x32757c),_0x32757c;},_0xdcc8c4=(_0x24086d,_0x35a8e5)=>(_0x3f5db9,_0x47f7b9)=>_0x35a8e5(_0x3f5db9,_0x47f7b9,_0x24086d);let _0x149a89=class{constructor(_0x2ca2d0,_0x213466,_0x5de0d7){const _0x5002a2=_0x43a61c;this[_0x5002a2(0x5a5)]=_0x2ca2d0,this['_httpService']=_0x213466,this['localeService']=_0x5de0d7,this[_0x5002a2(0x595)]();}[_0x43a61c(0x595)](){const _0x424bbd=_0x43a61c;this[_0x424bbd(0x540)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x39f94d,_0x4d4adc)=>_0x4d4adc(_0x39f94d)['pipe'](_0x1678b1[_0x424bbd(0x4a3)](async _0x45e18f=>{const _0x3340b5=_0x424bbd,_0x425a2b=_0x45e18f;if(_0x425a2b[_0x3340b5(0x442)]===0x191&&window[_0x3340b5(0x433)](this[_0x3340b5(0x542)]['t'](_0x3340b5(0x37b)))){const _0x3db210=window[_0x3340b5(0x249)](window[_0x3340b5(0x377)]['href']);window[_0x3340b5(0x377)]['href']=this[_0x3340b5(0x288)]()+_0x3340b5(0x39d)+_0x3db210;}return _0x425a2b;}))});}['_getLoginPath'](){const _0x50e9b7=_0x43a61c;var _0xd50fb4,_0x4fec9c;const _0x1ea36b=this[_0x50e9b7(0x5a5)]['getConfig'](_0x4a64c9),_0xc66d3c=this[_0x50e9b7(0x5a5)][_0x50e9b7(0x466)](_0x35d3c1);return(_0x4fec9c=(_0xd50fb4=_0xc66d3c==null?void 0x0:_0xc66d3c[_0x50e9b7(0x5fd)])!=null?_0xd50fb4:_0x1ea36b)!=null?_0x4fec9c:_0x14f2e9;}};_0x149a89=_0x47f98b([_0xdcc8c4(0x0,_0x58174a[_0x43a61c(0x5bc)]),_0xdcc8c4(0x1,_0x58174a[_0x43a61c(0x409)](_0x15e0bb['HTTPService'])),_0xdcc8c4(0x2,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x3c3)]))],_0x149a89);var _0x2f2fd9=Object[_0x43a61c(0x408)],_0x8a357e=Object[_0x43a61c(0x33d)],_0xea15b7=(_0x40dfe6,_0x1fb9d9,_0x5104de,_0x119087)=>{const _0x5f1d81=_0x43a61c;for(var _0x240652=_0x119087>0x1?void 0x0:_0x119087?_0x8a357e(_0x1fb9d9,_0x5104de):_0x1fb9d9,_0xec713c=_0x40dfe6[_0x5f1d81(0x58f)]-0x1,_0x154891;_0xec713c>=0x0;_0xec713c--)(_0x154891=_0x40dfe6[_0xec713c])&&(_0x240652=(_0x119087?_0x154891(_0x1fb9d9,_0x5104de,_0x240652):_0x154891(_0x240652))||_0x240652);return _0x119087&&_0x240652&&_0x2f2fd9(_0x1fb9d9,_0x5104de,_0x240652),_0x240652;},_0xf39ffb=(_0x13ea9c,_0x167cf5)=>(_0x2bf9b8,_0xb7f968)=>_0x167cf5(_0x2bf9b8,_0xb7f968,_0x13ea9c);const _0x25bfbb=_0x43a61c(0x5ec),_0x1ad45b=_0x43a61c(0x48b);_0x70db69['AuthzIoHttpService']=class extends _0x58174a[_0x43a61c(0x320)]{constructor(_0x1a8b16,_0x9cc06e){const _0x567e2e=_0x43a61c;super(),this[_0x567e2e(0x2bb)]=_0x1a8b16,this[_0x567e2e(0x5a5)]=_0x9cc06e,this[_0x567e2e(0x20a)]();}[_0x43a61c(0x20a)](){const _0x2cc6fd=_0x43a61c,_0x59c544=this;this[_0x2cc6fd(0x502)](this[_0x2cc6fd(0x2bb)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x15e0bb[_0x2cc6fd(0x34d)]({'isMatch'(_0x17fa67){const _0x11e548=_0x2cc6fd;var _0x1cd4ff;if(_0x17fa67[_0x11e548(0x3f2)]===_0x11e548(0x1d8)&&((_0x1cd4ff=_0x17fa67[_0x11e548(0x2bf)])!=null&&_0x1cd4ff['body'])){const {objectID:_0x27f10e,objectType:_0x20ed6a}=_0x17fa67[_0x11e548(0x2bf)]['body']||{};if(!_0x27f10e||_0x20ed6a===void 0x0)return!0x1;const _0x4d3a88=_0x59c544[_0x11e548(0x3a7)]()+'/'+_0x20ed6a+'/object/'+_0x27f10e+_0x11e548(0x5d7);if(_0x17fa67[_0x11e548(0x506)]===_0x4d3a88)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4a8917){const _0x12bc9f=_0x2cc6fd;var _0x3d3e63;return(_0x3d3e63=_0x4a8917[_0x12bc9f(0x2bf)])==null?void 0x0:_0x3d3e63[_0x12bc9f(0x4d2)];},'mergeParamsToRequest'(_0x43d46b,_0x49b033){const _0xde5d34=_0x2cc6fd,_0x144741=_0x59c544[_0xde5d34(0x3a7)]()+_0xde5d34(0x3a4),_0x38b137=_0x43d46b[_0xde5d34(0x529)]((_0x4da9eb,_0x4eb60c)=>{const _0x5bf182=_0xde5d34,{unitID:_0x22f7ee,objectID:_0x26e8a2,objectType:_0x1bb6b4,actions:_0x22a3e8}=_0x4eb60c;return _0x4da9eb[_0x22f7ee]||(_0x4da9eb[_0x22f7ee]={}),_0x4da9eb[_0x22f7ee][_0x26e8a2]||(_0x4da9eb[_0x22f7ee][_0x26e8a2]={'objectID':_0x26e8a2,'objectType':_0x1bb6b4,'actions':[]}),_0x4da9eb[_0x22f7ee][_0x26e8a2][_0x5bf182(0x378)]['push'](..._0x22a3e8),_0x4da9eb;},{}),_0x3c1a90=[];for(const _0x2723d9 in _0x38b137)for(const _0x36ef35 in _0x38b137[_0x2723d9]){const {actions:_0xa17b3e,objectType:_0x504ea0}=_0x38b137[_0x2723d9][_0x36ef35],_0x3b6a7a=[...new Set(_0xa17b3e)];_0x3c1a90[_0xde5d34(0x311)]({'unitID':_0x2723d9,'objectID':_0x36ef35,'objectType':_0x504ea0,'actions':_0x3b6a7a});}return new _0x15e0bb[(_0xde5d34(0x451))](_0xde5d34(0x1d8),_0x144741,{'headers':_0x49b033[_0xde5d34(0x544)],'withCredentials':_0x49b033['withCredentials'],'responseType':_0x49b033[_0xde5d34(0x1c5)],'body':{'requests':_0x3c1a90}});}},{'distributeResult'(_0x2871b2,_0x42ea7d){const {objectActions:_0x391ca2}=_0x2871b2;return _0x42ea7d['map'](_0x190f8b=>{const _0x1a83bc=_0xa224,{unitID:_0x7d321b,objectID:_0x58cf0a,actions:_0x22bd39}=_0x190f8b,_0x4b0747=_0x391ca2[_0x1a83bc(0x395)](_0x1d3f78=>_0x1d3f78[_0x1a83bc(0x467)]===_0x7d321b&&_0x1d3f78[_0x1a83bc(0x35d)]===_0x58cf0a),_0x4a218d=_0x22bd39[_0x1a83bc(0x339)](_0x222ea0=>_0x4b0747==null?void 0x0:_0x4b0747[_0x1a83bc(0x378)][_0x1a83bc(0x395)](_0x2ec6b4=>_0x2ec6b4['action']===_0x222ea0))[_0x1a83bc(0x221)](_0x422ec3=>!!_0x422ec3);return{'config':_0x190f8b,'result':{'actions':_0x4a218d,'error':_0x2871b2[_0x1a83bc(0x3da)]}};});}})}));}['_getAPIPrefixPath'](){const _0x37e7d0=_0x43a61c;var _0x4114cc,_0x4c5697;const _0x36401b=this[_0x37e7d0(0x5a5)]['getConfig'](_0x25bfbb),_0x36f5ce=this[_0x37e7d0(0x5a5)]['getConfig'](_0x35d3c1);return(_0x4c5697=(_0x4114cc=_0x36f5ce==null?void 0x0:_0x36f5ce['authzUrl'])!=null?_0x4114cc:_0x36401b)!=null?_0x4c5697:_0x1ad45b;}async[_0x43a61c(0x3d9)](_0xbd9097){const _0x264fb7=_0x43a61c,_0x414ffe=this[_0x264fb7(0x3a7)]()+'/'+_0xbd9097[_0x264fb7(0x33c)]+_0x264fb7(0x5ca);return(await this[_0x264fb7(0x2bb)][_0x264fb7(0x343)](_0x414ffe,{'body':_0xbd9097}))[_0x264fb7(0x4d2)][_0x264fb7(0x35d)]||'';}async[_0x43a61c(0x476)](_0x845800){const _0x318c18=_0x43a61c,_0x327cc1=this[_0x318c18(0x3a7)]()+_0x318c18(0x505);return(await this[_0x318c18(0x2bb)]['post'](_0x327cc1,{'body':_0x845800}))['body'][_0x318c18(0x601)];}async['update'](_0x32bb7c){const _0x575c7b=_0x43a61c,_0x548f38=this['_getAPIPrefixPath']()+'/'+_0x32bb7c[_0x575c7b(0x33c)]+_0x575c7b(0x5df)+_0x32bb7c['objectID'];await this[_0x575c7b(0x2bb)][_0x575c7b(0x27c)](_0x548f38,{'body':_0x32bb7c});}async[_0x43a61c(0x426)](_0x559521){const _0x102800=_0x43a61c,_0x2baf7a=this[_0x102800(0x3a7)]()+'/'+_0x559521[_0x102800(0x33c)]+_0x102800(0x5df)+_0x559521[_0x102800(0x35d)]+_0x102800(0x5d7);return(await this[_0x102800(0x2bb)][_0x102800(0x343)](_0x2baf7a,{'body':_0x559521}))[_0x102800(0x4d2)][_0x102800(0x378)];}async['batchAllowed'](_0x3591d9){const _0x334abb=_0x43a61c,_0x39e748=this[_0x334abb(0x3a7)]()+_0x334abb(0x3a4);return(await this[_0x334abb(0x2bb)][_0x334abb(0x343)](_0x39e748,{'body':{'requests':_0x3591d9}}))[_0x334abb(0x4d2)]['objectActions'];}async[_0x43a61c(0x4fd)](_0x32ca9b){const _0x279610=_0x43a61c,_0x4f6449=this[_0x279610(0x3a7)]()+'/'+_0x32ca9b[_0x279610(0x33c)]+_0x279610(0x31f),_0x178788=await this[_0x279610(0x2bb)][_0x279610(0x343)](_0x4f6449,{'body':_0x32ca9b});return{'roles':_0x178788['body']['roles'],'actions':_0x178788[_0x279610(0x4d2)][_0x279610(0x378)]};}async[_0x43a61c(0x484)](_0x1d4001){const _0x40e8de=_0x43a61c,_0x5abff3=this['_getAPIPrefixPath']()+_0x40e8de(0x298);await this['_HTTPService'][_0x40e8de(0x457)](_0x5abff3,{'params':{'collaboratorID':_0x1d4001[_0x40e8de(0x253)],'objectID':_0x1d4001[_0x40e8de(0x35d)],'unitID':_0x1d4001[_0x40e8de(0x467)]}});}async[_0x43a61c(0x5bb)](_0x529414){const _0x40bb99=_0x43a61c,_0x1d67fb=this[_0x40bb99(0x3a7)]()+_0x40bb99(0x298);await this[_0x40bb99(0x2bb)][_0x40bb99(0x4e5)](_0x1d67fb,{'body':_0x529414});}async[_0x43a61c(0x5dd)](_0x1e5c02){const _0x18226b=_0x43a61c,_0x66cf2=this[_0x18226b(0x3a7)]()+_0x18226b(0x298);await this[_0x18226b(0x2bb)][_0x18226b(0x343)](_0x66cf2,{'body':_0x1e5c02});}async['listCollaborators'](_0x1f8b7f){const _0x2f4e96=_0x43a61c,_0x3a523f=this[_0x2f4e96(0x3a7)]()+_0x2f4e96(0x298);return(await this[_0x2f4e96(0x2bb)][_0x2f4e96(0x40a)](_0x3a523f,{'params':{'objectID':_0x1f8b7f['objectID'],'unitID':_0x1f8b7f[_0x2f4e96(0x467)]}}))['body'][_0x2f4e96(0x563)];}async[_0x43a61c(0x4a2)](_0x5c74cc){const _0x5c7ef5=_0x43a61c,_0x216d93=this[_0x5c7ef5(0x3a7)]()+'/collaborator';await this[_0x5c7ef5(0x2bb)][_0x5c7ef5(0x27c)](_0x216d93,{'body':_0x5c74cc});}},_0x70db69[_0x43a61c(0x285)]=_0xea15b7([_0xf39ffb(0x0,_0x58174a[_0x43a61c(0x409)](_0x15e0bb['HTTPService'])),_0xf39ffb(0x1,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x5bc)]))],_0x70db69[_0x43a61c(0x285)]);var _0x1f936f=Object[_0x43a61c(0x408)],_0x345586=Object[_0x43a61c(0x33d)],_0x1f2966=(_0x1a0787,_0xd97d22,_0x1c98ba,_0x4b2de0)=>{const _0x35de25=_0x43a61c;for(var _0x4af0f1=_0x4b2de0>0x1?void 0x0:_0x4b2de0?_0x345586(_0xd97d22,_0x1c98ba):_0xd97d22,_0x3e7014=_0x1a0787[_0x35de25(0x58f)]-0x1,_0x3b1718;_0x3e7014>=0x0;_0x3e7014--)(_0x3b1718=_0x1a0787[_0x3e7014])&&(_0x4af0f1=(_0x4b2de0?_0x3b1718(_0xd97d22,_0x1c98ba,_0x4af0f1):_0x3b1718(_0x4af0f1))||_0x4af0f1);return _0x4b2de0&&_0x4af0f1&&_0x1f936f(_0xd97d22,_0x1c98ba,_0x4af0f1),_0x4af0f1;},_0x2646e2=(_0x2e4eb2,_0x373834)=>(_0x134183,_0x1f377b)=>_0x373834(_0x134183,_0x1f377b,_0x2e4eb2);let _0x342ebd=class{constructor(_0x2a0b1e){const _0x2ce97c=_0x43a61c;this[_0x2ce97c(0x540)]=_0x2a0b1e,this['_initRequestHeader']();}[_0x43a61c(0x473)](){const _0x407580=_0x43a61c;this[_0x407580(0x540)][_0x407580(0x32b)]({'interceptor':(_0x2823fd,_0xf6d448)=>{const _0x15a43b=_0x407580,_0x1abdc1=_0x2823fd[_0x15a43b(0x544)],_0x161506=_0x544def[_0x15a43b(0x5a6)]();return _0x161506&&_0x1abdc1['set']('x-univer-host',_0x161506),_0xf6d448(_0x2823fd);}});}};_0x342ebd=_0x1f2966([_0x2646e2(0x0,_0x58174a[_0x43a61c(0x409)](_0x15e0bb[_0x43a61c(0x59b)]))],_0x342ebd);var _0x239eb3=Object[_0x43a61c(0x408)],_0x4c672c=Object[_0x43a61c(0x33d)],_0x4f5c58=(_0x4863b5,_0x1d8441,_0x1cdd14,_0x4a215e)=>{const _0x219875=_0x43a61c;for(var _0x3eee25=_0x4a215e>0x1?void 0x0:_0x4a215e?_0x4c672c(_0x1d8441,_0x1cdd14):_0x1d8441,_0x1d6046=_0x4863b5[_0x219875(0x58f)]-0x1,_0x447de0;_0x1d6046>=0x0;_0x1d6046--)(_0x447de0=_0x4863b5[_0x1d6046])&&(_0x3eee25=(_0x4a215e?_0x447de0(_0x1d8441,_0x1cdd14,_0x3eee25):_0x447de0(_0x3eee25))||_0x3eee25);return _0x4a215e&&_0x3eee25&&_0x239eb3(_0x1d8441,_0x1cdd14,_0x3eee25),_0x3eee25;},_0x4fb7d1=(_0x578825,_0x51f000)=>(_0x26b5f8,_0x117953)=>_0x51f000(_0x26b5f8,_0x117953,_0x578825);const _0xf93147=[_0x43a61c(0x388),_0x43a61c(0x390),_0x43a61c(0x4b4),_0x43a61c(0x555),_0x43a61c(0x549)],_0x230cae=0x5*0x400*0x400,_0x4535aa=_0x43a61c(0x5fb),_0x1d0cd5='/universer-api/stream/file/upload',_0x410c20='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x10afdb='/universer-api/file/{fileID}/sign-url';_0x70db69[_0x43a61c(0x525)]=class{constructor(_0x2dc47c,_0x32bcfc,_0x2e99bf){const _0x4a9cd3=_0x43a61c;_0x4b178e(this,_0x4a9cd3(0x54f),0x0),_0x4b178e(this,'_change$',new _0x1678b1['Subject']()),_0x4b178e(this,_0x4a9cd3(0x548),this[_0x4a9cd3(0x2d8)]),_0x4b178e(this,_0x4a9cd3(0x1fa),new Map()),(this[_0x4a9cd3(0x540)]=_0x2dc47c,this[_0x4a9cd3(0x5a5)]=_0x32bcfc,this[_0x4a9cd3(0x360)]=_0x2e99bf);}[_0x43a61c(0x299)](_0x23cad4){const _0xe2279b=_0x43a61c;this[_0xe2279b(0x54f)]=_0x23cad4,this[_0xe2279b(0x2d8)][_0xe2279b(0x46c)](_0x23cad4);}[_0x43a61c(0x554)](_0xeba07c,_0x5a0ed0){const _0xd29794=_0x43a61c;if(_0x5a0ed0===_0x3fc772['ImageSourceType']['BASE64']){const _0x515454=new Image();return _0x515454[_0xd29794(0x50e)]=_0xeba07c,_0x515454;}return this[_0xd29794(0x1fa)][_0xd29794(0x40a)](_0xeba07c);}[_0x43a61c(0x4f7)](_0x21590,_0x3145e3,_0x43a6ee){const _0x3447bb=_0x43a61c;_0x3145e3===_0x3fc772[_0x3447bb(0x337)][_0x3447bb(0x2cf)]||_0x43a6ee==null||this['_imageSourceCache'][_0x3447bb(0x43b)](_0x21590,_0x43a6ee);}async[_0x43a61c(0x29e)](_0x3db0c0){const _0x184144=_0x43a61c;try{const _0x590241=this['_replaceFileID'](this[_0x184144(0x1c1)](),''+_0x3db0c0),_0x1aea21=(await this['_httpService']['get'](_0x590241))[_0x184144(0x4d2)];if(_0x1aea21['error']&&_0x1aea21[_0x184144(0x3da)]['code']===_0x1a4391['OK']){const _0x41faa6=new URL(_0x1aea21[_0x184144(0x506)],this['_getDownloadEndpointURL']())[_0x184144(0x2b2)]();return Promise[_0x184144(0x46f)](_0x41faa6);}return Promise[_0x184144(0x590)](_0x1aea21[_0x184144(0x3da)]);}catch(_0x1b4b7f){return Promise[_0x184144(0x590)](_0x1b4b7f);}}async[_0x43a61c(0x315)](_0x40850e){const _0x5d46dc=_0x43a61c;let _0x50b60d='';if(!_0xf93147['includes'](_0x40850e[_0x5d46dc(0x393)]))return this[_0x5d46dc(0x336)](),Promise[_0x5d46dc(0x590)](new Error(_0x3fc772['ImageUploadStatusType'][_0x5d46dc(0x3f9)]));if(_0x40850e['size']>_0x230cae)return this[_0x5d46dc(0x336)](),Promise[_0x5d46dc(0x590)](new Error(_0x3fc772[_0x5d46dc(0x501)][_0x5d46dc(0x2fc)]));try{const _0x156cb6=new FormData();_0x156cb6[_0x5d46dc(0x3af)]('file',_0x40850e);const _0x4b129d=this[_0x5d46dc(0x360)][_0x5d46dc(0x4b6)](),_0x5363d6=_0x4b129d==null?void 0x0:_0x4b129d[_0x5d46dc(0x231)]();if(!_0x5363d6)throw new Error(_0x5d46dc(0x202));const _0x247228=this['_getUploadFileURL']()+_0x5d46dc(0x2d5)+_0x40850e[_0x5d46dc(0x359)][_0x5d46dc(0x2b2)]()+'&source='+_0x508834[_0x5d46dc(0x225)]+_0x5d46dc(0x415)+encodeURIComponent(_0x5363d6),_0x22ab56=await(await fetch(_0x247228,{'method':'POST','body':_0x156cb6}))[_0x5d46dc(0x47f)]();if(typeof _0x22ab56['FileId']!='string')return this[_0x5d46dc(0x336)](),Promise[_0x5d46dc(0x590)](new Error(_0x3fc772[_0x5d46dc(0x501)][_0x5d46dc(0x531)]));_0x50b60d=_0x22ab56[_0x5d46dc(0x332)];}catch{return this['_decreaseWaiting'](),Promise[_0x5d46dc(0x590)](new Error(_0x3fc772[_0x5d46dc(0x501)]['ERROR_IMAGE']));}return new Promise((_0x2a98a4,_0x57f802)=>{const _0x3d4cfd=_0x5d46dc,_0x4cf244=new FileReader();_0x4cf244[_0x3d4cfd(0x279)](_0x40850e),_0x4cf244['onload']=_0x55e335=>{const _0x746e0c=_0x3d4cfd;var _0x9e0192;const _0x3d199b=(_0x9e0192=_0x55e335[_0x746e0c(0x57d)])==null?void 0x0:_0x9e0192['result'];if(_0x3d199b==null){this[_0x746e0c(0x336)](),_0x57f802(new Error(_0x3fc772['ImageUploadStatusType'][_0x746e0c(0x531)]));return;}const _0x29189d=_0x58174a[_0x746e0c(0x427)][_0x746e0c(0x51c)](0x6);_0x2a98a4({'imageId':_0x29189d,'imageSourceType':_0x3fc772['ImageSourceType'][_0x746e0c(0x603)],'source':_0x50b60d,'base64Cache':_0x3d199b,'status':_0x3fc772[_0x746e0c(0x501)][_0x746e0c(0x4df)]}),this['_decreaseWaiting']();};});}[_0x43a61c(0x210)](){const _0x1656f6=_0x43a61c;var _0x55a091,_0x344fc5;const _0x3cb717=this['_configService'][_0x1656f6(0x466)](_0x4535aa),_0x21c963=this['_configService'][_0x1656f6(0x466)](_0x35d3c1);return(_0x344fc5=(_0x55a091=_0x21c963==null?void 0x0:_0x21c963[_0x1656f6(0x4f1)])!=null?_0x55a091:_0x3cb717)!=null?_0x344fc5:_0x1d0cd5;}[_0x43a61c(0x1c1)](){const _0x2fab20=_0x43a61c;var _0x53ffcc,_0x597281;const _0x403f7b=this[_0x2fab20(0x5a5)]['getConfig'](_0x410c20),_0x15255a=this['_configService'][_0x2fab20(0x466)](_0x35d3c1);return(_0x597281=(_0x53ffcc=_0x15255a==null?void 0x0:_0x15255a[_0x2fab20(0x42b)])!=null?_0x53ffcc:_0x403f7b)!=null?_0x597281:_0x10afdb;}[_0x43a61c(0x28b)](){const _0x53ea02=_0x43a61c;var _0x1680ad;const _0x52ac38=this[_0x53ea02(0x5a5)]['getConfig'](_0x35d3c1);return(_0x1680ad=_0x52ac38==null?void 0x0:_0x52ac38[_0x53ea02(0x3be)])!=null?_0x1680ad:location['origin'];}[_0x43a61c(0x592)](_0x4fe311,_0x23ddeb){const _0x8754ec=_0x43a61c;return _0x4fe311['replace'](_0x8754ec(0x5e0),_0x23ddeb);}[_0x43a61c(0x336)](){const _0x129d3e=_0x43a61c;this[_0x129d3e(0x54f)]-=0x1,this[_0x129d3e(0x2d8)]['next'](this['_waitCount']);}},_0x70db69[_0x43a61c(0x525)]=_0x4f5c58([_0x4fb7d1(0x0,_0x58174a[_0x43a61c(0x409)](_0x15e0bb[_0x43a61c(0x59b)])),_0x4fb7d1(0x1,_0x58174a[_0x43a61c(0x5bc)]),_0x4fb7d1(0x2,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x560)]))],_0x70db69[_0x43a61c(0x525)]);var _0x101a3b=Object[_0x43a61c(0x408)],_0x4a6e82=Object[_0x43a61c(0x33d)],_0x8df6c3=(_0x36897b,_0x4757ca,_0x25f091,_0x445f39)=>{for(var _0x2bee4e=_0x445f39>0x1?void 0x0:_0x445f39?_0x4a6e82(_0x4757ca,_0x25f091):_0x4757ca,_0x4b5b0d=_0x36897b['length']-0x1,_0xded045;_0x4b5b0d>=0x0;_0x4b5b0d--)(_0xded045=_0x36897b[_0x4b5b0d])&&(_0x2bee4e=(_0x445f39?_0xded045(_0x4757ca,_0x25f091,_0x2bee4e):_0xded045(_0x2bee4e))||_0x2bee4e);return _0x445f39&&_0x2bee4e&&_0x101a3b(_0x4757ca,_0x25f091,_0x2bee4e),_0x2bee4e;},_0x54711e=(_0x1316c5,_0x3b6d68)=>(_0xb3cc77,_0x1c139e)=>_0x3b6d68(_0xb3cc77,_0x1c139e,_0x1316c5);let _0x2ad20d=class extends _0x58174a[_0x43a61c(0x389)]{constructor(_0x442682,_0x3ec049,_0x10cc82,_0x5149b3,_0x555938){const _0x139fe9=_0x43a61c;super(),this[_0x139fe9(0x228)]=_0x442682,this['_univerInstanceService']=_0x3ec049,this[_0x139fe9(0x22d)]=_0x10cc82,this[_0x139fe9(0x3eb)]=_0x5149b3,this[_0x139fe9(0x29b)]=_0x555938,this[_0x139fe9(0x48f)](),this['_initCloseConn']();}[_0x43a61c(0x5cc)](){const _0x3bfa5b=_0x43a61c,_0x2d6d35=async _0x83a880=>{const _0x36c1d5=_0xa224;(await this[_0x36c1d5(0x3eb)][_0x36c1d5(0x2b0)](_0x83a880))[_0x36c1d5(0x39f)][_0x36c1d5(0x4c7)](_0x5ab054[_0x36c1d5(0x221)](_0x3c48e5=>_0x3c48e5[_0x36c1d5(0x5ce)]===_0x582bb5[_0x36c1d5(0x240)][_0x36c1d5(0x3e7)]),_0x5ab054[_0x36c1d5(0x346)](this[_0x36c1d5(0x341)]))[_0x36c1d5(0x387)](_0xad31c5=>{const _0x29a9f4=_0x36c1d5,_0x127960=_0xad31c5,{reason:_0x3bab49}=_0x127960[_0x29a9f4(0x416)];this[_0x29a9f4(0x228)][_0x29a9f4(0x40a)](_0x130918[_0x29a9f4(0x423)])[_0x29a9f4(0x1de)]({'type':_0x2738af[_0x29a9f4(0x5ac)]['Error'],'content':this[_0x29a9f4(0x29b)]['t'](_0x29a9f4(0x2e9))+'('+_0x3bab49+')'}),this[_0x29a9f4(0x22d)]['updatePermissionPoint'](new _0x46ce2c[(_0x29a9f4(0x5e1))](_0x83a880)['id'],!0x1),this[_0x29a9f4(0x3eb)][_0x29a9f4(0x3e4)](_0x83a880);});};_0x1678b1[_0x3bfa5b(0x3cb)](this[_0x3bfa5b(0x360)][_0x3bfa5b(0x36d)](_0x58174a[_0x3bfa5b(0x37e)][_0x3bfa5b(0x264)]),this[_0x3bfa5b(0x360)]['getTypeOfUnitAdded$'](_0x58174a['UniverInstanceType'][_0x3bfa5b(0x3a1)]))[_0x3bfa5b(0x4c7)](_0x5ab054[_0x3bfa5b(0x339)](_0x5cd820=>_0x5cd820[_0x3bfa5b(0x231)]()),_0x5ab054['filter'](_0x500e7a=>!_0x58174a['isInternalEditorID'](_0x500e7a)),_0x5ab054[_0x3bfa5b(0x346)](this[_0x3bfa5b(0x341)]))[_0x3bfa5b(0x387)](_0x3d0278=>{_0x2d6d35(_0x3d0278);});}[_0x43a61c(0x48f)](){const _0x5590ae=_0x43a61c,_0x7ff063=async _0x2178bc=>{const _0x47524b=_0xa224;(await this['_collaborationSessionService']['requireSession'](_0x2178bc))[_0x47524b(0x39f)][_0x47524b(0x4c7)](_0x5ab054[_0x47524b(0x221)](_0x340d44=>_0x340d44[_0x47524b(0x5ce)]===_0x582bb5[_0x47524b(0x240)]['UPDATE_PERMISSION_OBJ']),_0x5ab054[_0x47524b(0x346)](this['dispose$']))[_0x47524b(0x387)](_0x378632=>{const _0x5d0733=_0x47524b,_0x1632d1=_0x378632,{objectId:_0x41a3dc}=_0x1632d1[_0x5d0733(0x416)],_0x4b27b4=this[_0x5d0733(0x228)][_0x5d0733(0x40a)](_0x3f7d1a[_0x5d0733(0x47a)]);_0x41a3dc===_0x2178bc?_0x4b27b4[_0x5d0733(0x4b8)](_0x2178bc):_0x4b27b4['refreshPermission'](_0x2178bc,_0x41a3dc);});};_0x1678b1[_0x5590ae(0x3cb)](this[_0x5590ae(0x360)]['getTypeOfUnitAdded$'](_0x58174a[_0x5590ae(0x37e)][_0x5590ae(0x264)]),this[_0x5590ae(0x360)][_0x5590ae(0x36d)](_0x58174a[_0x5590ae(0x37e)][_0x5590ae(0x3a1)]))[_0x5590ae(0x4c7)](_0x5ab054['map'](_0x649c8d=>_0x649c8d['getUnitId']()),_0x5ab054['filter'](_0x2770d7=>!_0x58174a[_0x5590ae(0x269)](_0x2770d7)),_0x5ab054['takeUntil'](this[_0x5590ae(0x341)]))[_0x5590ae(0x387)](_0xadd699=>{_0x7ff063(_0xadd699);});}};_0x2ad20d=_0x8df6c3([_0x54711e(0x0,_0x58174a['Inject'](_0x58174a[_0x43a61c(0x317)])),_0x54711e(0x1,_0x58174a[_0x43a61c(0x560)]),_0x54711e(0x2,_0x58174a[_0x43a61c(0x2a7)]),_0x54711e(0x3,_0x58174a[_0x43a61c(0x409)](_0x70db69[_0x43a61c(0x2da)])),_0x54711e(0x4,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x3c3)]))],_0x2ad20d);var _0x2ecc75=Object[_0x43a61c(0x408)],_0xcf9521=Object['getOwnPropertyDescriptor'],_0x5925b0=(_0x1946a9,_0xc17acd,_0x96dd02,_0x5c96cb)=>{for(var _0x40197d=_0x5c96cb>0x1?void 0x0:_0x5c96cb?_0xcf9521(_0xc17acd,_0x96dd02):_0xc17acd,_0x33c99f=_0x1946a9['length']-0x1,_0x1a48c6;_0x33c99f>=0x0;_0x33c99f--)(_0x1a48c6=_0x1946a9[_0x33c99f])&&(_0x40197d=(_0x5c96cb?_0x1a48c6(_0xc17acd,_0x96dd02,_0x40197d):_0x1a48c6(_0x40197d))||_0x40197d);return _0x5c96cb&&_0x40197d&&_0x2ecc75(_0xc17acd,_0x96dd02,_0x40197d),_0x40197d;},_0xd9e439=(_0x59bc7d,_0x1363ee)=>(_0x2d4871,_0x342469)=>_0x1363ee(_0x2d4871,_0x342469,_0x59bc7d);_0x70db69['SnapshotServerOverHTTPService']=class{constructor(_0x5bc12f,_0x576f3a){const _0x23ed1d=_0x43a61c;this[_0x23ed1d(0x5a5)]=_0x5bc12f,this[_0x23ed1d(0x540)]=_0x576f3a;}async[_0x43a61c(0x3b0)](_0x4532ed,_0x28cdc8){const _0x49e0c3=_0x43a61c;var _0x765774;const {unitID:_0x74d81c,type:_0x46e14b,revision:_0x49938c=0x0}=_0x28cdc8,_0x401cb6=this[_0x49e0c3(0x261)]()+'/'+_0x46e14b+_0x49e0c3(0x2f9)+_0x74d81c+_0x49e0c3(0x3ba)+_0x49938c,_0x2e12ef=(await this[_0x49e0c3(0x540)]['get'](_0x401cb6))[_0x49e0c3(0x4d2)],_0x49c1b0=(_0x765774=_0x2e12ef[_0x49e0c3(0x2ab)])==null?void 0x0:_0x765774[_0x49e0c3(0x47b)];if(_0x49c1b0){const _0x245710=_0x49c1b0==null?void 0x0:_0x49c1b0[_0x49e0c3(0x1f0)],_0x8baade=_0x582bb5['textEncoder'][_0x49e0c3(0x26f)](_0x582bb5['b64DecodeUnicode'](_0x245710));_0x49c1b0[_0x49e0c3(0x1f0)]=_0x8baade,Object[_0x49e0c3(0x2d1)](_0x49c1b0[_0x49e0c3(0x294)])['forEach'](([,_0x291e13])=>{const _0x595a35=_0x49e0c3,_0x42f02b=_0x291e13[_0x595a35(0x1f0)],_0x1906dc=_0x582bb5[_0x595a35(0x543)][_0x595a35(0x26f)](_0x582bb5[_0x595a35(0x350)](_0x42f02b));_0x291e13['originalMeta']=_0x1906dc;});}return _0x2e12ef;}async[_0x43a61c(0x528)](_0xec7eeb,_0x264d2a){const _0x553497=_0x43a61c,{unitID:_0x2505ab,type:_0x2aa31a,blockID:_0x3c27f5}=_0x264d2a,_0x185113=this['_getAPIPrefix']()+'/'+_0x2aa31a+_0x553497(0x2f9)+_0x2505ab+'/block/'+_0x3c27f5;return(await this[_0x553497(0x540)]['get'](_0x185113))[_0x553497(0x4d2)];}async[_0x43a61c(0x3b6)](_0x594d56,_0x39ac63){const _0x37d112=_0x43a61c,{unitID:_0x551944,type:_0x2ff04f,blockID:_0x122d9c}=_0x39ac63,_0x84f6a0=this[_0x37d112(0x293)]()+'/block/'+_0x2ff04f+_0x37d112(0x2f9)+_0x551944+_0x37d112(0x23f)+_0x122d9c;return(await this[_0x37d112(0x540)][_0x37d112(0x40a)](_0x84f6a0))[_0x37d112(0x4d2)];}async[_0x43a61c(0x431)](_0x5c3de5,_0x5e1a57){const _0x1976ef=_0x43a61c,{unitID:_0xa6d96,type:_0x3296bf,from:_0x45963a,to:_0x5bb5f3}=_0x5e1a57,_0x294a55=this[_0x1976ef(0x293)]()+'/'+_0x3296bf+_0x1976ef(0x2f9)+_0xa6d96+'/fetchmissing?from='+_0x45963a+_0x1976ef(0x303)+_0x5bb5f3;return(await this[_0x1976ef(0x540)][_0x1976ef(0x40a)](_0x294a55))[_0x1976ef(0x4d2)];}[_0x43a61c(0x261)](){const _0x401528=_0x43a61c;var _0x913c9b;return(_0x913c9b=this[_0x401528(0x5a5)][_0x401528(0x466)](_0x586ede))!=null?_0x913c9b:this[_0x401528(0x293)]();}[_0x43a61c(0x293)](){const _0x27f9c7=_0x43a61c;var _0x26d580,_0x2f18a6;const _0x387240=this[_0x27f9c7(0x5a5)]['getConfig'](_0x55c873),_0x15bf58=this[_0x27f9c7(0x5a5)]['getConfig'](_0x35d3c1);return(_0x2f18a6=(_0x26d580=_0x15bf58==null?void 0x0:_0x15bf58[_0x27f9c7(0x4e6)])!=null?_0x26d580:_0x387240)!=null?_0x2f18a6:_0x138034;}async['getResourcesRequest'](_0x592e4c,_0x2ee57d){const _0x6cb555=_0x43a61c,_0x188f97='/universer-api/snapshot/'+_0x2ee57d[_0x6cb555(0x393)]+_0x6cb555(0x2f9)+_0x2ee57d[_0x6cb555(0x467)]+_0x6cb555(0x1d4);return(await this[_0x6cb555(0x540)][_0x6cb555(0x40a)](_0x188f97,{'params':{'resourceId':JSON[_0x6cb555(0x2ea)](_0x2ee57d[_0x6cb555(0x495)])}}))['body'];}[_0x43a61c(0x2af)](){const _0x1b0a13=_0x43a61c;throw new Error(_0x1b0a13(0x3c0));}[_0x43a61c(0x1dd)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43a61c(0x3ee)](){const _0x387605=_0x43a61c;throw new Error(_0x387605(0x3c0));}[_0x43a61c(0x386)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x43a61c(0x410)](){const _0x5755d3=_0x43a61c;throw new Error(_0x5755d3(0x3c0));}},_0x70db69[_0x43a61c(0x584)]=_0x5925b0([_0xd9e439(0x0,_0x58174a[_0x43a61c(0x5bc)]),_0xd9e439(0x1,_0x58174a['Inject'](_0x15e0bb[_0x43a61c(0x59b)]))],_0x70db69[_0x43a61c(0x584)]);var _0x172495=Object[_0x43a61c(0x408)],_0x2a9df5=Object['getOwnPropertyDescriptor'],_0x53ee6f=(_0x5bc400,_0x4b23e9,_0x34a389,_0x3cd568)=>{const _0x44ff3c=_0x43a61c;for(var _0x4db602=_0x3cd568>0x1?void 0x0:_0x3cd568?_0x2a9df5(_0x4b23e9,_0x34a389):_0x4b23e9,_0x2853d2=_0x5bc400[_0x44ff3c(0x58f)]-0x1,_0x512387;_0x2853d2>=0x0;_0x2853d2--)(_0x512387=_0x5bc400[_0x2853d2])&&(_0x4db602=(_0x3cd568?_0x512387(_0x4b23e9,_0x34a389,_0x4db602):_0x512387(_0x4db602))||_0x4db602);return _0x3cd568&&_0x4db602&&_0x172495(_0x4b23e9,_0x34a389,_0x4db602),_0x4db602;},_0x385524=(_0x5799d4,_0x493a30)=>(_0x2e75b5,_0x4e5161)=>_0x493a30(_0x2e75b5,_0x4e5161,_0x5799d4);let _0x4d160c=class extends _0x58174a[_0x43a61c(0x5a4)]{constructor(_0x17a6e9,_0x583a60,_0x107f2e,_0x5cf546,_0x51c069){const _0x3eb209=_0x43a61c;super(_0x17a6e9,_0x583a60,_0x107f2e),this[_0x3eb209(0x49b)]=_0x5cf546,this['_logService']=_0x51c069;}[_0x43a61c(0x4c2)](_0x4c57b1,_0x138591){const _0x1c79f0=_0x43a61c,_0x2c7143=this[_0x1c79f0(0x33f)](_0x4c57b1);if(_0x2c7143)try{const _0x3905ed=this['_transformStack'](_0x2c7143,_0x138591);this[_0x1c79f0(0x588)](_0x4c57b1,_0x3905ed);}catch(_0x56c29d){this['_logService'][_0x1c79f0(0x3da)](_0x1c79f0(0x440),_0x56c29d),this[_0x1c79f0(0x30b)](_0x4c57b1);}const _0x2d2996=this[_0x1c79f0(0x562)](_0x4c57b1);if(_0x2d2996)try{const _0x488be9=this[_0x1c79f0(0x334)](_0x2d2996,_0x138591);this[_0x1c79f0(0x579)](_0x4c57b1,_0x488be9);}catch(_0x598a5f){this[_0x1c79f0(0x4e4)][_0x1c79f0(0x3da)](_0x598a5f),this[_0x1c79f0(0x526)](_0x4c57b1);}}['_clearUndo'](_0x549988){const _0x30bd8f=_0x43a61c,_0x586f2e=this[_0x30bd8f(0x33f)](_0x549988);_0x586f2e&&(_0x586f2e[_0x30bd8f(0x58f)]=0x0,this['_updateStatus']());}[_0x43a61c(0x526)](_0x28aed4){const _0x1f18ac=_0x43a61c,_0xb5e0ee=this['_getRedoStack'](_0x28aed4);_0xb5e0ee&&(_0xb5e0ee[_0x1f18ac(0x58f)]=0x0,this[_0x1f18ac(0x397)]());}[_0x43a61c(0x588)](_0x2201de,_0xdbb171){const _0x28f982=_0x43a61c;this['_undoStacks'][_0x28f982(0x43b)](_0x2201de,_0xdbb171),this['_updateStatus']();}[_0x43a61c(0x579)](_0xf04b9b,_0x5add62){const _0x9e398b=_0x43a61c;this['_redoStacks'][_0x9e398b(0x43b)](_0xf04b9b,_0x5add62),this[_0x9e398b(0x397)]();}['_transformStack'](_0xc2249c,_0xa07d9){const _0x313552=_0x43a61c,_0x512d92=[];let _0x366390=_0xa07d9,_0x4c2066=_0xa07d9;for(let _0x185c85=_0xc2249c['length']-0x1;_0x185c85>=0x0;_0x185c85--){const {unitID:_0x38e34c,undoMutations:_0x191d92,redoMutations:_0xd5f2dd}=_0xc2249c[_0x185c85],_0x2b2926=this[_0x313552(0x49b)]['transformMutationsWithChangeset'](_0x366390,_0x191d92),_0x16373f=this[_0x313552(0x49b)][_0x313552(0x2c0)](_0x4c2066,_0xd5f2dd);if(_0x582bb5[_0x313552(0x1fe)](_0x2b2926)||_0x582bb5['isTransformMutationsWithChangesetFailure'](_0x16373f)){this[_0x313552(0x4e4)]['error'](_0x313552(0x440),_0x313552(0x3e3),_0x2b2926,_0x16373f);break;}_0x366390=_0x2b2926[_0x313552(0x354)],_0x4c2066=_0x16373f[_0x313552(0x354)],_0x512d92[_0x313552(0x311)]({'unitID':_0x38e34c,'undoMutations':_0x2b2926['m2Prime'],'redoMutations':_0x16373f[_0x313552(0x402)]});}return _0x512d92[_0x313552(0x3f0)]();}};_0x4d160c=_0x53ee6f([_0x385524(0x0,_0x58174a[_0x43a61c(0x560)]),_0x385524(0x1,_0x58174a['ICommandService']),_0x385524(0x2,_0x58174a['IContextService']),_0x385524(0x3,_0x582bb5['ITransformService']),_0x385524(0x4,_0x58174a[_0x43a61c(0x2d2)])],_0x4d160c);class _0x427bf2 extends _0x58174a[_0x43a61c(0x389)]{constructor(){const _0x57d359=_0x43a61c;super(),_0x4b178e(this,'urlChange$'),this[_0x57d359(0x2d0)]=_0x1678b1[_0x57d359(0x252)](window,'popstate')['pipe'](_0x1678b1[_0x57d359(0x346)](this[_0x57d359(0x341)]),_0x1678b1[_0x57d359(0x527)](0x1),_0x1678b1[_0x57d359(0x2b4)](void 0x0));}[_0x43a61c(0x1ff)](_0x23d231,_0x5bcfa2,_0x250396=!0x1){const _0x15eb31=_0x43a61c,_0xddb3b5=new URL(window[_0x15eb31(0x377)][_0x15eb31(0x5c2)]);_0xddb3b5[_0x15eb31(0x52f)]['set'](_0x23d231,_0x5bcfa2),_0x250396?window[_0x15eb31(0x3a6)]['replaceState']('','',_0xddb3b5[_0x15eb31(0x2b2)]()):window[_0x15eb31(0x3a6)]['pushState']('','',_0xddb3b5[_0x15eb31(0x2b2)]());}[_0x43a61c(0x361)](_0x204cff,_0x26bdf9=!0x1){const _0x186144=_0x43a61c,_0x4a7729=new URL(window[_0x186144(0x377)][_0x186144(0x5c2)]);_0x4a7729[_0x186144(0x52f)][_0x186144(0x457)](_0x204cff),_0x26bdf9?window['history']['replaceState']('','',_0x4a7729[_0x186144(0x2b2)]()):window[_0x186144(0x3a6)][_0x186144(0x289)]('','',_0x4a7729[_0x186144(0x2b2)]());}[_0x43a61c(0x4e8)](_0x1dabaa){const _0x5a0ff6=_0x43a61c;var _0x4c4e2f;return(_0x4c4e2f=new URL(window[_0x5a0ff6(0x377)][_0x5a0ff6(0x5c2)])[_0x5a0ff6(0x52f)]['get'](_0x1dabaa))!=null?_0x4c4e2f:void 0x0;}}var _0x183cd9=Object[_0x43a61c(0x408)],_0x1d9955=Object[_0x43a61c(0x33d)],_0x3fe291=(_0x1cf92c,_0x42845d,_0x3c3e0f)=>_0x42845d in _0x1cf92c?_0x183cd9(_0x1cf92c,_0x42845d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c3e0f}):_0x1cf92c[_0x42845d]=_0x3c3e0f,_0x42d091=(_0x2792f7,_0x4cee29,_0x5a30e5,_0x351a29)=>{const _0x151f92=_0x43a61c;for(var _0x144596=_0x351a29>0x1?void 0x0:_0x351a29?_0x1d9955(_0x4cee29,_0x5a30e5):_0x4cee29,_0x132bfd=_0x2792f7[_0x151f92(0x58f)]-0x1,_0x1d3011;_0x132bfd>=0x0;_0x132bfd--)(_0x1d3011=_0x2792f7[_0x132bfd])&&(_0x144596=(_0x351a29?_0x1d3011(_0x4cee29,_0x5a30e5,_0x144596):_0x1d3011(_0x144596))||_0x144596);return _0x351a29&&_0x144596&&_0x183cd9(_0x4cee29,_0x5a30e5,_0x144596),_0x144596;},_0x4e0a49=(_0x6bd944,_0x2ffa97)=>(_0x5f0d63,_0x3f43b4)=>_0x2ffa97(_0x5f0d63,_0x3f43b4,_0x6bd944),_0x5b2e03=(_0x180f6b,_0x444663,_0x39d421)=>_0x3fe291(_0x180f6b,_0x444663+'',_0x39d421);const _0x15a2c5='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x70db69[_0x43a61c(0x4d8)]=class extends _0x58174a[_0x43a61c(0x511)]{constructor(_0x1bcdd4=_0xfc5311,_0x407660,_0x5cb91d,_0x4ed73e,_0x47af52){const _0xccfe8c=_0x43a61c;super(),this[_0xccfe8c(0x496)]=_0x1bcdd4,this[_0xccfe8c(0x4e4)]=_0x407660,this[_0xccfe8c(0x4d9)]=_0x5cb91d,this[_0xccfe8c(0x228)]=_0x4ed73e,this[_0xccfe8c(0x5a5)]=_0x47af52;const {..._0x57c272}=this['_config'];this[_0xccfe8c(0x5a5)][_0xccfe8c(0x5f2)](_0x35d3c1,_0x57c272);}[_0x43a61c(0x3d2)](){const _0x340da0=_0x43a61c;this['_registerDependencies'](),_0x58174a[_0x340da0(0x55b)](this[_0x340da0(0x228)],[[_0x2dda95],[_0x70db69['DataLoaderController']],[_0x2ad20d]]);}[_0x43a61c(0x204)](){const _0x30aa5b=_0x43a61c;_0x58174a[_0x30aa5b(0x55b)](this[_0x30aa5b(0x228)],[[_0x21ff1b]]);}[_0x43a61c(0x32e)](){const _0x3e7fc3=_0x43a61c;this[_0x3e7fc3(0x41f)]();}['_registerDependencies'](){const _0x3188d0=_0x43a61c;var _0x4fc6b3,_0x347c56,_0x196611,_0x4f997e;this['_injector'][_0x3188d0(0x238)](_0x58174a[_0x3188d0(0x58c)])&&this[_0x3188d0(0x4e4)][_0x3188d0(0x3da)]('[UniverCollaborationClientPlugin]',_0x3188d0(0x5ae));let _0x1ff714=[[_0x58174a[_0x3188d0(0x58c)],{'useClass':_0x4d160c}],[_0x70db69['CollaborationSessionService']],[_0x160cc],[_0x15e0bb[_0x3188d0(0x59b)]],[_0x5e17f4,{'useClass':_0x427bf2}],[_0x70db69['MemberService']],[_0x70db69[_0x3188d0(0x5d2)]],[_0x15e0bb[_0x3188d0(0x59d)]],[_0xb4edfb],[_0x5f5364],[_0x144cfe],[_0x3bf307],[_0x149a89],[_0x342ebd],[_0x1d571b],[_0x2ad20d],[_0x2e85b9,{'useClass':(_0x347c56=(_0x4fc6b3=this['_config'])==null?void 0x0:_0x4fc6b3['socketService'])!=null?_0x347c56:_0x70db69[_0x3188d0(0x4e7)]}],[_0x15e0bb[_0x3188d0(0x3e6)],{'useClass':_0x15e0bb['XHRHTTPImplementation']}],[_0x582bb5[_0x3188d0(0x448)],{'useClass':_0x70db69[_0x3188d0(0x584)]}],[_0x58174a[_0x3188d0(0x275)],{'useClass':_0x70db69[_0x3188d0(0x285)]}],[_0x3fc772[_0x3188d0(0x5a3)],{'useClass':_0x70db69[_0x3188d0(0x525)]}],[_0x70db69['CollaborationController']],[_0x70db69[_0x3188d0(0x447)]],[_0x70db69[_0x3188d0(0x399)]],[_0x21ff1b],[_0x2dda95]];(_0x196611=this['_config'])!=null&&_0x196611[_0x3188d0(0x3c4)]&&_0x1ff714[_0x3188d0(0x311)]([_0x181a0e,{'useClass':_0x1f9c8a}]),_0x1ff714=_0x58174a[_0x3188d0(0x1fc)](_0x1ff714,(_0x4f997e=this[_0x3188d0(0x496)])==null?void 0x0:_0x4f997e[_0x3188d0(0x47e)]),_0x1ff714['forEach'](_0x3d704a=>this['_injector'][_0x3188d0(0x209)](_0x3d704a)),this[_0x3188d0(0x4cd)]();}[_0x43a61c(0x41f)](){const _0x1b7624=_0x43a61c;this[_0x1b7624(0x502)](this['_renderManagerService'][_0x1b7624(0x4de)](_0x58174a[_0x1b7624(0x37e)]['UNIVER_DOC'],[_0x3040e6])),this[_0x1b7624(0x502)](this[_0x1b7624(0x4d9)][_0x1b7624(0x4de)](_0x58174a[_0x1b7624(0x37e)]['UNIVER_SHEET'],[_0x46a70c]));}[_0x43a61c(0x4cd)](){const _0x131128=_0x43a61c;var _0x5d2d05,_0x493fcd;this[_0x131128(0x228)][_0x131128(0x40a)](_0x15e0bb[_0x131128(0x59b)])[_0x131128(0x32b)]({'priority':0x14,'interceptor':_0x15e0bb[_0x131128(0x1cf)]({'maxParallel':0x6})}),this[_0x131128(0x228)][_0x131128(0x40a)](_0x342ebd),(_0x5d2d05=this[_0x131128(0x496)])!=null&&_0x5d2d05[_0x131128(0x5c3)]||this[_0x131128(0x228)][_0x131128(0x40a)](_0x70db69[_0x131128(0x5d2)])['disableLocalCache'](),(_0x493fcd=this[_0x131128(0x496)])!=null&&_0x493fcd[_0x131128(0x201)]&&this[_0x131128(0x228)][_0x131128(0x40a)](_0x149a89),this['_injector'][_0x131128(0x40a)](_0x70db69[_0x131128(0x578)]),this[_0x131128(0x228)][_0x131128(0x238)](_0x70db69['DesktopCollaborationStatusDisplayController'])&&this[_0x131128(0x228)][_0x131128(0x40a)](_0x70db69['DesktopCollaborationStatusDisplayController']);}},_0x5b2e03(_0x70db69[_0x43a61c(0x4d8)],_0x43a61c(0x4d1),_0x15a2c5),_0x70db69['UniverCollaborationClientPlugin']=_0x42d091([_0x58174a[_0x43a61c(0x1f2)](_0x582bb5[_0x43a61c(0x32a)]),_0x4e0a49(0x1,_0x58174a[_0x43a61c(0x2d2)]),_0x4e0a49(0x2,_0x438301[_0x43a61c(0x4da)]),_0x4e0a49(0x3,_0x58174a[_0x43a61c(0x409)](_0x58174a[_0x43a61c(0x317)])),_0x4e0a49(0x4,_0x58174a[_0x43a61c(0x5bc)])],_0x70db69['UniverCollaborationClientPlugin']),_0x70db69[_0x43a61c(0x5ec)]=_0x25bfbb,_0x70db69[_0x43a61c(0x54e)]=_0x265b44,_0x70db69[_0x43a61c(0x21a)]=_0xfd5edc,_0x70db69[_0x43a61c(0x1eb)]=_0x29d72b,_0x70db69[_0x43a61c(0x3c7)]=_0x25c453,_0x70db69[_0x43a61c(0x58d)]=_0x1d571b,_0x70db69['HEARTBEAT_INTERVAL_KEY']=_0x581f57,_0x70db69[_0x43a61c(0x20c)]=_0x38ea5f,_0x70db69[_0x43a61c(0x1c7)]=_0x2e85b9,_0x70db69[_0x43a61c(0x38b)]=_0x5e17f4,_0x70db69[_0x43a61c(0x4e2)]=_0x2e59f5,_0x70db69[_0x43a61c(0x1ea)]=_0x4a64c9,_0x70db69['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x57d96,_0x70db69['SEND_CHANGESET_TIMEOUT_KEY']=_0x34edd4,_0x70db69[_0x43a61c(0x338)]=_0x55c873,_0x70db69[_0x43a61c(0x40c)]=_0x586ede,_0x70db69[_0x43a61c(0x37d)]=_0x50c5ae,_0x70db69[_0x43a61c(0x5a8)]=_0x383b36,_0x70db69[_0x43a61c(0x22f)]=_0x427bf2,_0x70db69[_0x43a61c(0x318)]=_0xa914ff,_0x70db69[_0x43a61c(0x1e0)]=_0x29fb06,Object[_0x43a61c(0x408)](_0x70db69,Symbol[_0x43a61c(0x23c)],{'value':'Module'});}));
1
+ (function(_0x2ca49a,_0x21e243){const _0x1cd055=_0xe8fd,_0x3cca11=_0x2ca49a();while(!![]){try{const _0x3a0bf1=parseInt(_0x1cd055(0x36a))/0x1*(-parseInt(_0x1cd055(0x45f))/0x2)+-parseInt(_0x1cd055(0x27b))/0x3+parseInt(_0x1cd055(0x21b))/0x4+-parseInt(_0x1cd055(0x50f))/0x5+parseInt(_0x1cd055(0x341))/0x6*(-parseInt(_0x1cd055(0x450))/0x7)+parseInt(_0x1cd055(0x31d))/0x8+parseInt(_0x1cd055(0x325))/0x9;if(_0x3a0bf1===_0x21e243)break;else _0x3cca11['push'](_0x3cca11['shift']());}catch(_0x24b2fa){_0x3cca11['push'](_0x3cca11['shift']());}}}(_0x4fa7,0x9b57a),function(_0xff4418,_0x264d50){const _0x4665c1=_0xe8fd;typeof exports==_0x4665c1(0x210)&&typeof module<'u'?_0x264d50(exports,require('@univerjs/core'),require(_0x4665c1(0x1c6)),require(_0x4665c1(0x448)),require(_0x4665c1(0x2af)),require(_0x4665c1(0x36c)),require(_0x4665c1(0x313)),require('@univerjs-pro/collaboration'),require(_0x4665c1(0x20a)),require(_0x4665c1(0x281)),require(_0x4665c1(0x25d)),require(_0x4665c1(0x584)),require('@univerjs/docs'),require(_0x4665c1(0x38c)),require('@univerjs/engine-formula'),require(_0x4665c1(0x3a3)),require('react'),require(_0x4665c1(0x17c)),require(_0x4665c1(0x466))):typeof define=='function'&&define['amd']?define([_0x4665c1(0x4c9),'@univerjs/core',_0x4665c1(0x1c6),_0x4665c1(0x448),_0x4665c1(0x2af),'@univerjs/ui',_0x4665c1(0x313),_0x4665c1(0x344),_0x4665c1(0x20a),'@univerjs/docs-ui','@univerjs/sheets',_0x4665c1(0x584),_0x4665c1(0x246),_0x4665c1(0x38c),'@univerjs/engine-formula','@univerjs/sheets-ui',_0x4665c1(0x15e),_0x4665c1(0x17c),_0x4665c1(0x466)],_0x264d50):(_0xff4418=typeof globalThis<'u'?globalThis:_0xff4418||self,_0x264d50(_0xff4418[_0x4665c1(0x587)]={},_0xff4418[_0x4665c1(0x1c1)],_0xff4418[_0x4665c1(0x1c6)],_0xff4418[_0x4665c1(0x1c6)][_0x4665c1(0x2d1)],_0xff4418[_0x4665c1(0x327)],_0xff4418[_0x4665c1(0x1fc)],_0xff4418[_0x4665c1(0x294)],_0xff4418[_0x4665c1(0x2dd)],_0xff4418[_0x4665c1(0x4f7)],_0xff4418[_0x4665c1(0x39e)],_0xff4418[_0x4665c1(0x232)],_0xff4418['UniverEngineRender'],_0xff4418['UniverDocs'],_0xff4418['UniverDrawing'],_0xff4418['UniverEngineFormula'],_0xff4418[_0x4665c1(0x2b6)],_0xff4418[_0x4665c1(0x461)],_0xff4418[_0x4665c1(0x166)],_0xff4418[_0x4665c1(0x543)]));}(this,function(_0x4fdbaf,_0x29630e,_0x17e48c,_0x56098d,_0x2d4ff4,_0x279664,_0x1f6627,_0x2a6d3d,_0x2baadb,_0x214ea6,_0x5decb0,_0x37c548,_0x31abfa,_0x97788b,_0x5b4502,_0x30e2ba,_0xf902af,_0xa2266f,_0x4b1b03){'use strict';const _0x5f56c6=_0xe8fd;var _0xf13ceb=Object[_0x5f56c6(0x17a)],_0x4f3cc0=(_0xf1ac72,_0x2934c9,_0x11b125)=>_0x2934c9 in _0xf1ac72?_0xf13ceb(_0xf1ac72,_0x2934c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11b125}):_0xf1ac72[_0x2934c9]=_0x11b125,_0x48f470=(_0x2d04c3,_0x38b4e5,_0x3f01ab)=>_0x4f3cc0(_0x2d04c3,typeof _0x38b4e5!=_0x5f56c6(0x3b7)?_0x38b4e5+'':_0x38b4e5,_0x3f01ab);const _0x93d6f0='SNAPSHOT_SERVER_URL_KEY',_0x46da86='/universer-api/snapshot',_0x5242a1=_0x5f56c6(0x3e2),_0x467be1='SEND_CHANGESET_TIMEOUT',_0x4650c3=_0x5f56c6(0x3e3),_0x56f7d8='ws://127.0.0.1:8000/universer-api/comb/connect',_0x17ca3f=_0x5f56c6(0x331),_0x3b0121=_0x5f56c6(0x499),_0xd6482f=_0x5f56c6(0x353),_0x5831f1=_0x5f56c6(0x3c4),_0x513a4c=_0x5f56c6(0x1b1),_0x17fed4=_0x5f56c6(0x231),_0x550a35=_0x5f56c6(0x318),_0xb53a80=_0x5f56c6(0x322);var _0x5c7736=(_0x308948=>(_0x308948[_0x308948[_0x5f56c6(0x4ac)]=0x0]=_0x5f56c6(0x4ac),_0x308948[_0x308948['OK']=0x1]='OK',_0x308948[_0x308948[_0x5f56c6(0x15f)]=0x2]=_0x5f56c6(0x15f),_0x308948[_0x308948[_0x5f56c6(0x361)]=0x3]=_0x5f56c6(0x361),_0x308948[_0x308948[_0x5f56c6(0x509)]=0x4]=_0x5f56c6(0x509),_0x308948[_0x308948[_0x5f56c6(0x355)]=0x5]=_0x5f56c6(0x355),_0x308948[_0x308948[_0x5f56c6(0x370)]=0x6]=_0x5f56c6(0x370),_0x308948[_0x308948['INVALID_ARGUMENT']=0x7]=_0x5f56c6(0x194),_0x308948[_0x308948[_0x5f56c6(0x55b)]=0x8]=_0x5f56c6(0x55b),_0x308948[_0x308948[_0x5f56c6(0x27f)]=0x9]='COMPLETION_FINISHED',_0x308948[_0x308948['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5f56c6(0x377),_0x308948[_0x308948[_0x5f56c6(0x497)]=0x1771]=_0x5f56c6(0x497),_0x308948[_0x308948[_0x5f56c6(0x2fc)]=0x1772]=_0x5f56c6(0x2fc),_0x308948[_0x308948['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5f56c6(0x3c3),_0x308948[_0x308948[_0x5f56c6(0x2ff)]=0x1b59]='APPLY_REJECT',_0x308948[_0x308948['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x308948[_0x308948[_0x5f56c6(0x3f3)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x308948[_0x308948['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5f56c6(0x2ce),_0x308948[_0x308948[_0x5f56c6(0x49c)]=0x1b5d]=_0x5f56c6(0x49c),_0x308948[_0x308948[_0x5f56c6(0x54a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x308948[_0x308948[_0x5f56c6(0x38d)]=0x2329]=_0x5f56c6(0x38d),_0x308948[_0x308948[_0x5f56c6(0x4a7)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x308948[_0x308948[_0x5f56c6(0x458)]=0x232b]=_0x5f56c6(0x458),_0x308948[_0x308948['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5f56c6(0x1a3),_0x308948[_0x308948[_0x5f56c6(0x3df)]=0x232d]=_0x5f56c6(0x3df),_0x308948[_0x308948[_0x5f56c6(0x437)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x308948[_0x308948[_0x5f56c6(0x1a9)]=0x2712]=_0x5f56c6(0x1a9),_0x308948[_0x308948[_0x5f56c6(0x304)]=0x2713]=_0x5f56c6(0x304),_0x308948[_0x308948[_0x5f56c6(0x409)]=0x2714]=_0x5f56c6(0x409),_0x308948[_0x308948[_0x5f56c6(0x4cf)]=-0x1]='UNRECOGNIZED',_0x308948))(_0x5c7736||{}),_0x48039f=(_0xc20a31=>(_0xc20a31[_0xc20a31['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0xc20a31[_0xc20a31['UNIVER_DOC']=0x1]=_0x5f56c6(0x540),_0xc20a31[_0xc20a31[_0x5f56c6(0x4b4)]=0x2]='UNIVER_SHEET',_0xc20a31[_0xc20a31[_0x5f56c6(0x469)]=0x3]='UNIVER_SLIDE',_0xc20a31[_0xc20a31['UNIVER_PROJECT']=0x4]=_0x5f56c6(0x541),_0xc20a31[_0xc20a31[_0x5f56c6(0x4cf)]=-0x1]=_0x5f56c6(0x4cf),_0xc20a31))(_0x48039f||{}),_0x118155=(_0x3bc60c=>(_0x3bc60c[_0x3bc60c[_0x5f56c6(0x187)]=0x0]=_0x5f56c6(0x187),_0x3bc60c[_0x3bc60c[_0x5f56c6(0x1d2)]=0x1]=_0x5f56c6(0x1d2),_0x3bc60c[_0x3bc60c['JOIN']=0x2]=_0x5f56c6(0x4f5),_0x3bc60c[_0x3bc60c['LEAVE']=0x3]=_0x5f56c6(0x415),_0x3bc60c[_0x3bc60c[_0x5f56c6(0x560)]=0x4]=_0x5f56c6(0x560),_0x3bc60c[_0x3bc60c[_0x5f56c6(0x391)]=0x5]=_0x5f56c6(0x391),_0x3bc60c[_0x3bc60c[_0x5f56c6(0x29b)]=0x6]=_0x5f56c6(0x29b),_0x3bc60c[_0x3bc60c['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3bc60c))(_0x118155||{}),_0xa05499=(_0x11f8f1=>(_0x11f8f1[_0x11f8f1[_0x5f56c6(0x236)]=0x0]=_0x5f56c6(0x236),_0x11f8f1[_0x11f8f1['OK']=0x1]='OK',_0x11f8f1[_0x11f8f1[_0x5f56c6(0x37f)]=0x2]='FAIL',_0x11f8f1[_0x11f8f1[_0x5f56c6(0x4cf)]=-0x1]=_0x5f56c6(0x4cf),_0x11f8f1))(_0xa05499||{}),_0x26c986=(_0x3e6dd9=>(_0x3e6dd9[_0x3e6dd9[_0x5f56c6(0x32f)]=0x0]=_0x5f56c6(0x32f),_0x3e6dd9[_0x3e6dd9[_0x5f56c6(0x2ef)]=0x1]='HttpImport',_0x3e6dd9[_0x3e6dd9[_0x5f56c6(0x208)]=0x2]=_0x5f56c6(0x208),_0x3e6dd9[_0x3e6dd9['UnitEmbedded']=0x3]=_0x5f56c6(0x21a),_0x3e6dd9[_0x3e6dd9[_0x5f56c6(0x15b)]=0x4]=_0x5f56c6(0x15b),_0x3e6dd9[_0x3e6dd9[_0x5f56c6(0x4cf)]=-0x1]=_0x5f56c6(0x4cf),_0x3e6dd9))(_0x26c986||{});const _0x1573c4='collaboration-client.config',_0x2bff4b={};function _0x4377b7(_0x956f21){const _0x3e86d9=_0x5f56c6;var _0xe66cc1,_0x25e9eb,_0x50482e,_0x421c9e,_0x2d10e4;const _0x1d6b1e=_0x956f21[_0x3e86d9(0x54c)],_0x1ecc87=JSON[_0x3e86d9(0x3fb)](_0x1d6b1e);switch(_0x1ecc87[_0x3e86d9(0x16d)]){case _0x118155[_0x3e86d9(0x391)]:case _0x118155[_0x3e86d9(0x1d2)]:{const _0x356e9c=_0x1ecc87['infoRsp'];return{..._0x1ecc87,'data':_0x356e9c,'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};}case _0x118155['JOIN']:{const _0x20c869=_0x1ecc87['joinRsp'];return{..._0x1ecc87,'data':_0x20c869,'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};}case _0x118155[_0x3e86d9(0x29b)]:{const _0x160c75=_0x1ecc87['collaMsg'];switch(_0x160c75[_0x3e86d9(0x256)]){case _0x2a6d3d[_0x3e86d9(0x56e)]['PERMISSION_REJ']:return{..._0x1ecc87,'data':{..._0x160c75,'data':(_0xe66cc1=_0x160c75[_0x3e86d9(0x2cf)])==null?void 0x0:_0xe66cc1['cs']},'cmd':_0x1ecc87['cmd']};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x51c)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':(_0x25e9eb=_0x160c75['csAckEvent'])==null?void 0x0:_0x25e9eb['cs']},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x433)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':(_0x50482e=_0x160c75[_0x3e86d9(0x216)])==null?void 0x0:_0x50482e['cs']},'cmd':_0x1ecc87['cmd']};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x3fd)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':(_0x421c9e=_0x160c75['csRejEvent'])==null?void 0x0:_0x421c9e['cs']},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x306)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':(_0x2d10e4=_0x160c75[_0x3e86d9(0x319)])==null?void 0x0:_0x2d10e4['cs']},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x40a)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x4e6)]},'cmd':_0x1ecc87['cmd']};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x311)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x2d3)]},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d['CollaborationEvent'][_0x3e86d9(0x2c5)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x419)]},'cmd':_0x1ecc87['cmd']};case _0x2a6d3d[_0x3e86d9(0x56e)]['LIVESHARE_NEW_HOST']:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x254)]},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x493)]:case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x2bf)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75['liveShareOperation']},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)]['LIVESHARE_TERMINATE']:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x254)]},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)]['MSG_FOR_ERROR']:return{..._0x1ecc87,'data':_0x160c75,'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x559)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x2e2)]},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d['CollaborationEvent'][_0x3e86d9(0x2f4)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x1d0)]},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};case _0x2a6d3d[_0x3e86d9(0x56e)][_0x3e86d9(0x34b)]:return{..._0x1ecc87,'data':{..._0x160c75,'data':_0x160c75[_0x3e86d9(0x56f)]},'cmd':_0x1ecc87[_0x3e86d9(0x16d)]};default:return _0x1ecc87;}}default:return _0x1ecc87;}}function _0x14f3c4(_0x2e1964){const _0x2bcde2=_0x5f56c6;switch(_0x2e1964[_0x2bcde2(0x16d)]){case _0x118155[_0x2bcde2(0x391)]:case _0x118155[_0x2bcde2(0x1d2)]:return JSON[_0x2bcde2(0x4a4)]({'cmd':_0x2e1964[_0x2bcde2(0x16d)],'routeKey':_0x2e1964['routeKey']});case _0x118155[_0x2bcde2(0x560)]:{let _0x4c0912;switch(_0x2e1964[_0x2bcde2(0x54c)][_0x2bcde2(0x256)]){case _0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x40a)]:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x40a)],'updateCursorEvent':_0x2e1964[_0x2bcde2(0x54c)]['data']};break;}case _0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x2c5)]:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x2c5)],'leaveEvent':_0x2e1964[_0x2bcde2(0x54c)][_0x2bcde2(0x54c)]};break;}case _0x2a6d3d['CollaborationEvent']['USERS_ENTER']:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)]['USERS_ENTER'],'joinEvent':_0x2e1964[_0x2bcde2(0x54c)][_0x2bcde2(0x54c)]};break;}case _0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x3e5)]:{_0x4c0912={'eventID':_0x2a6d3d['CollaborationEvent'][_0x2bcde2(0x3e5)],'liveShareNewHost':_0x2e1964['data'][_0x2bcde2(0x54c)]};break;}case _0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x2bf)]:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x2bf)],'liveShareOperation':_0x2e1964[_0x2bcde2(0x54c)][_0x2bcde2(0x54c)]};break;}case _0x2a6d3d['CollaborationEvent'][_0x2bcde2(0x453)]:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x453)],'liveShareTerminate':_0x2e1964[_0x2bcde2(0x54c)][_0x2bcde2(0x54c)]};break;}case _0x2a6d3d[_0x2bcde2(0x56e)][_0x2bcde2(0x290)]:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x2e1964['data'][_0x2bcde2(0x54c)]};break;}case _0x2a6d3d[_0x2bcde2(0x56e)]['LIVESHARE_FETCH_OPERATIONS']:{_0x4c0912={'eventID':_0x2a6d3d[_0x2bcde2(0x56e)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x4c0912={'eventID':_0x2e1964['data'][_0x2bcde2(0x256)]};}return JSON[_0x2bcde2(0x4a4)]({'cmd':_0x2e1964[_0x2bcde2(0x16d)],'routeKey':_0x2e1964['routeKey'],'collaMsg':_0x4c0912});}case _0x118155[_0x2bcde2(0x4f5)]:return JSON[_0x2bcde2(0x4a4)]({'cmd':_0x2e1964['cmd'],'routeKey':_0x2e1964[_0x2bcde2(0x330)],'joinReq':_0x2e1964[_0x2bcde2(0x54c)]});case _0x118155[_0x2bcde2(0x415)]:return JSON[_0x2bcde2(0x4a4)]({'cmd':_0x2e1964['cmd'],'routeKey':_0x2e1964[_0x2bcde2(0x330)],'leaveReq':_0x2e1964[_0x2bcde2(0x54c)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x3c4008=Object[_0x5f56c6(0x17a)],_0x785791=Object[_0x5f56c6(0x47e)],_0x3faff7=(_0x5a7dd6,_0x4eb065,_0x1a2d57,_0x4b7fc7)=>{const _0x2f4d8e=_0x5f56c6;for(var _0x225ad4=_0x4b7fc7>0x1?void 0x0:_0x4b7fc7?_0x785791(_0x4eb065,_0x1a2d57):_0x4eb065,_0x5c1d31=_0x5a7dd6[_0x2f4d8e(0x47d)]-0x1,_0x169360;_0x5c1d31>=0x0;_0x5c1d31--)(_0x169360=_0x5a7dd6[_0x5c1d31])&&(_0x225ad4=(_0x4b7fc7?_0x169360(_0x4eb065,_0x1a2d57,_0x225ad4):_0x169360(_0x225ad4))||_0x225ad4);return _0x4b7fc7&&_0x225ad4&&_0x3c4008(_0x4eb065,_0x1a2d57,_0x225ad4),_0x225ad4;},_0x160155=(_0x5010d7,_0x5f56c9)=>(_0x45b5a1,_0x1d282b)=>_0x5f56c9(_0x45b5a1,_0x1d282b,_0x5010d7);const _0x24f2a6=_0x29630e[_0x5f56c6(0x284)]('univer-pro.collaboration-client-socket-service');function _0x1e45df(_0x5cbfa3,_0x7daeb5,_0x333a30){const _0x5642c1=_0x5f56c6;return _0x5cbfa3+'/'+_0x7daeb5+'/unit/'+_0x333a30+_0x5642c1(0x553);}_0x4fdbaf['CollaborationSocketService']=class extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(_0x241f3e,_0x57bd17,_0xad2947,_0x45efd7,_0x522311){const _0x59c33d=_0x5f56c6;super(),this[_0x59c33d(0x30e)]=_0x241f3e,this['_ws']=_0x57bd17,this[_0x59c33d(0x4e8)]=_0xad2947,this[_0x59c33d(0x3ac)]=_0x45efd7,this[_0x59c33d(0x237)]=_0x522311;}[_0x5f56c6(0x2c3)](_0x1ef5b9){const _0x477950=_0x5f56c6,_0x39c4ec=this[_0x477950(0x2f3)]['createSocket'](_0x1ef5b9);if(!_0x39c4ec)throw new Error(_0x477950(0x53a));const _0x34b854=new _0x29630e[(_0x477950(0x2ea))](),_0x495746=new _0x17e48c[(_0x477950(0x3be))]();_0x34b854['add'](_0x39c4ec['close$'][_0x477950(0x18a)](_0x488cd1=>_0x495746[_0x477950(0x17b)](_0x488cd1))),_0x34b854['add'](_0x29630e[_0x477950(0x1cd)](()=>_0x495746['complete']()));const _0x583b69=new _0x17e48c[(_0x477950(0x3be))]();_0x34b854[_0x477950(0x54b)](_0x39c4ec[_0x477950(0x55a)][_0x477950(0x18a)](_0x429ddb=>_0x583b69[_0x477950(0x17b)](_0x429ddb))),_0x34b854[_0x477950(0x54b)](_0x29630e[_0x477950(0x1cd)](()=>_0x583b69[_0x477950(0x423)]()));const _0x1a39e1=new _0x17e48c[(_0x477950(0x3be))]();_0x34b854['add'](_0x39c4ec['message$'][_0x477950(0x18a)](_0x28066b=>{const _0x36571b=_0x477950,_0x1c2e13=_0x4377b7(_0x28066b);_0x1a39e1[_0x36571b(0x17b)](_0x1c2e13);})),_0x34b854['add'](_0x29630e[_0x477950(0x1cd)](()=>_0x1a39e1[_0x477950(0x423)]()));let _0x504714;const _0x50ee14=()=>{const _0x1ccd3d=_0x477950;_0x583b69[_0x1ccd3d(0x17b)](new Event(_0x1ccd3d(0x378))),_0x495746[_0x1ccd3d(0x17b)](new CloseEvent(_0x1ccd3d(0x378))),_0x504714[_0x1ccd3d(0x3ca)]();};return _0x504714={'memberID':'','close$':_0x495746[_0x477950(0x2ac)](),'error$':_0x583b69[_0x477950(0x2ac)](),'open$':_0x39c4ec[_0x477950(0x547)],'message$':_0x1a39e1['asObservable'](),'send':_0x416def=>{const _0x310ad7=_0x477950;if(_0x416def['cmd']===_0x118155[_0x310ad7(0x560)]){if(_0x416def[_0x310ad7(0x54c)][_0x310ad7(0x256)]===_0x2a6d3d[_0x310ad7(0x56e)][_0x310ad7(0x25b)]){this[_0x310ad7(0x2cb)](_0x504714,_0x416def[_0x310ad7(0x54c)])['catch'](_0x1b6501=>{const _0x4000ce=_0x310ad7;this[_0x4000ce(0x3ac)][_0x4000ce(0x1fe)](_0x1b6501),_0x50ee14();});return;}if(_0x416def[_0x310ad7(0x54c)][_0x310ad7(0x256)]===_0x2a6d3d[_0x310ad7(0x56e)]['FETCH_MISSING']){const _0x593bba=_0x416def[_0x310ad7(0x54c)];this['_fetchMissChangesets'](_0x593bba)[_0x310ad7(0x4c3)](_0x10bf27=>{const _0x271c28=_0x310ad7;_0x1a39e1[_0x271c28(0x17b)]({'cmd':_0x118155[_0x271c28(0x29b)],'code':_0xa05499['OK'],'routeKey':_0x593bba[_0x271c28(0x54c)]['unitID'],'routeType':'','data':{'eventID':_0x2a6d3d[_0x271c28(0x56e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x10bf27}}});})[_0x310ad7(0x3b5)](_0x25c275=>{this['_logService']['error'](_0x25c275),_0x50ee14();});return;}}_0x39c4ec[_0x310ad7(0x16b)](_0x14f3c4(_0x416def));},'close':()=>{const _0x458064=_0x477950;_0x39c4ec['close'](),_0x34b854[_0x458064(0x1b8)]();}},_0x504714;}async[_0x5f56c6(0x2cb)](_0x4711bd,_0x3e1119){const _0x3e54d2=_0x5f56c6;var _0x26e027,_0x29fa4a;const {unitType:_0x121adc,unitID:_0x4e628a,changeset:_0x2a0412}=_0x3e1119[_0x3e54d2(0x54c)],_0x5e79ed={'unitID':_0x4e628a,'memberID':_0x4711bd[_0x3e54d2(0x4d4)],'type':_0x121adc,'changeset':_0x2a6d3d[_0x3e54d2(0x2ca)](_0x2a0412)},_0x1a3d9d=this[_0x3e54d2(0x4e8)][_0x3e54d2(0x1e0)](_0x513a4c),_0x461196=this['_configService'][_0x3e54d2(0x1e0)](_0x1573c4),_0xed8bc7=_0x1e45df((_0x29fa4a=(_0x26e027=_0x461196==null?void 0x0:_0x461196['collabSubmitChangesetUrl'])!=null?_0x26e027:_0x1a3d9d)!=null?_0x29fa4a:_0x17fed4,_0x121adc,_0x4e628a);try{await this[_0x3e54d2(0x30e)]['post'](_0xed8bc7,{'body':_0x5e79ed});}catch(_0x2592cc){throw this[_0x3e54d2(0x3ac)][_0x3e54d2(0x1fe)](_0x3e54d2(0x225),_0x3e54d2(0x2ec)),_0x2592cc;}}async[_0x5f56c6(0x3cc)](_0x24d8c2){const _0x8025a=_0x5f56c6,{unitID:_0x36abad,from:_0x1b1ce7,to:_0x3f59a4,unitType:_0x4905ce}=_0x24d8c2[_0x8025a(0x54c)];return(await this[_0x8025a(0x237)][_0x8025a(0x451)]({'metadata':void 0x0},{'unitID':_0x36abad,'type':_0x4905ce,'from':_0x1b1ce7,'to':_0x3f59a4}))[_0x8025a(0x1a5)];}},_0x4fdbaf[_0x5f56c6(0x17d)]=_0x3faff7([_0x160155(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x1f6627[_0x5f56c6(0x195)])),_0x160155(0x1,_0x29630e['Inject'](_0x1f6627['WebSocketService'])),_0x160155(0x2,_0x29630e[_0x5f56c6(0x34d)]),_0x160155(0x3,_0x29630e[_0x5f56c6(0x478)]),_0x160155(0x4,_0x2a6d3d['ISnapshotServerService'])],_0x4fdbaf[_0x5f56c6(0x17d)]);const _0x3d7395=_0x5f56c6(0x2bb);function _0x5854e3(_0x5f4815){const _0x36e311=_0x5f56c6;return JSON[_0x36e311(0x4a4)](_0x5f4815)[_0x36e311(0x47d)];}class _0x4fa0d0{constructor(){const _0x3f12fc=_0x5f56c6;_0x48f470(this,_0x3f12fc(0x417),new _0x17e48c[(_0x3f12fc(0x3be))]()),_0x48f470(this,_0x3f12fc(0x24f),this[_0x3f12fc(0x417)][_0x3f12fc(0x2ac)]());}['onCommentUpdate'](_0xbc5472){const _0x32121f=_0x5f56c6;this[_0x32121f(0x417)][_0x32121f(0x17b)](_0xbc5472);}}var _0x2b754a=Object[_0x5f56c6(0x17a)],_0x3d404b=Object[_0x5f56c6(0x47e)],_0x5c01f5=(_0x529a36,_0x54ca75,_0x219a89,_0x58a25a)=>{const _0x3f7862=_0x5f56c6;for(var _0x47be0a=_0x58a25a>0x1?void 0x0:_0x58a25a?_0x3d404b(_0x54ca75,_0x219a89):_0x54ca75,_0x5fd688=_0x529a36[_0x3f7862(0x47d)]-0x1,_0x124e4f;_0x5fd688>=0x0;_0x5fd688--)(_0x124e4f=_0x529a36[_0x5fd688])&&(_0x47be0a=(_0x58a25a?_0x124e4f(_0x54ca75,_0x219a89,_0x47be0a):_0x124e4f(_0x47be0a))||_0x47be0a);return _0x58a25a&&_0x47be0a&&_0x2b754a(_0x54ca75,_0x219a89,_0x47be0a),_0x47be0a;},_0x30a45e=(_0x2a67df,_0x27a3f7)=>(_0x24750b,_0x3b3cf0)=>_0x27a3f7(_0x24750b,_0x3b3cf0,_0x2a67df);_0x4fdbaf['MemberService']=class extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(_0x17f0b6,_0x4b42f9){const _0x7f9372=_0x5f56c6;super(),_0x48f470(this,_0x7f9372(0x2a8),new Map()),(this['_univerInstanceService']=_0x17f0b6,this['_userManagerService']=_0x4b42f9,this[_0x7f9372(0x52f)](_0x29630e[_0x7f9372(0x1cd)](_0x17e48c[_0x7f9372(0x268)](this['_univerInstanceService'][_0x7f9372(0x407)](_0x29630e[_0x7f9372(0x438)][_0x7f9372(0x4b4)])[_0x7f9372(0x300)](_0x56098d[_0x7f9372(0x239)](_0x5c626a=>_0x5c626a[_0x7f9372(0x1a2)]())),this[_0x7f9372(0x434)][_0x7f9372(0x407)](_0x29630e[_0x7f9372(0x438)][_0x7f9372(0x540)])[_0x7f9372(0x300)](_0x56098d[_0x7f9372(0x239)](_0x1e8ba2=>_0x1e8ba2[_0x7f9372(0x1a2)]())),this[_0x7f9372(0x434)][_0x7f9372(0x407)](_0x29630e['UniverInstanceType'][_0x7f9372(0x469)])[_0x7f9372(0x300)](_0x56098d['map'](_0x5e4a77=>_0x5e4a77[_0x7f9372(0x1a2)]())))[_0x7f9372(0x18a)](_0x158860=>this[_0x7f9372(0x40e)](_0x158860)))));}['setCurrentUser'](_0x34cc2c){const _0xb25315=_0x5f56c6;this[_0xb25315(0x396)][_0xb25315(0x175)](_0x34cc2c);}[_0x5f56c6(0x2c4)](){const _0x4c6ab3=_0x5f56c6;return this[_0x4c6ab3(0x396)][_0x4c6ab3(0x2c4)]();}[_0x5f56c6(0x383)](_0x28d450,_0x1996a6){const _0x3935ab=_0x5f56c6;let _0x8548bb=this[_0x3935ab(0x2a8)][_0x3935ab(0x44d)](_0x28d450);_0x8548bb||(_0x8548bb=new _0x1c4380(),this[_0x3935ab(0x2a8)][_0x3935ab(0x4f1)](_0x28d450,_0x8548bb)),_0x8548bb[_0x3935ab(0x383)](_0x1996a6);}['removeMember'](_0x205313,_0x395af5){const _0x528928=_0x5f56c6,_0x3f9396=this[_0x528928(0x2a8)]['get'](_0x205313);_0x3f9396&&_0x3f9396[_0x528928(0x4ba)](_0x395af5);}['getRoom'](_0x1aeb38){const _0x335622=_0x5f56c6;return this[_0x335622(0x2a8)][_0x335622(0x44d)](_0x1aeb38);}['getMember'](_0x10b886,_0x398d72){const _0x2b2321=_0x5f56c6,_0x3eebad=this[_0x2b2321(0x2a8)][_0x2b2321(0x44d)](_0x10b886);if(_0x3eebad)return _0x3eebad[_0x2b2321(0x30c)](_0x398d72);}['_removeRoom'](_0x277343){const _0x437d99=_0x5f56c6,_0x1157cf=this[_0x437d99(0x2a8)][_0x437d99(0x44d)](_0x277343);_0x1157cf&&(_0x1157cf['dispose'](),this[_0x437d99(0x2a8)]['delete'](_0x277343));}[_0x5f56c6(0x1b8)](){const _0xdf7f55=_0x5f56c6;this[_0xdf7f55(0x2a8)]['forEach'](_0x3c87d1=>_0x3c87d1[_0xdf7f55(0x1b8)]()),this[_0xdf7f55(0x2a8)]['clear']();}},_0x4fdbaf[_0x5f56c6(0x2b3)]=_0x5c01f5([_0x30a45e(0x0,_0x29630e['IUniverInstanceService']),_0x30a45e(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x1ab)]))],_0x4fdbaf[_0x5f56c6(0x2b3)]);class _0x1c4380 extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(){super(...arguments),_0x48f470(this,'_members',new Map());}[_0x5f56c6(0x1b8)](){const _0xef26c1=_0x5f56c6;this['_members'][_0xef26c1(0x185)]();}[_0x5f56c6(0x383)](_0x5b4def){const _0x32d28d=_0x5f56c6;this[_0x32d28d(0x19f)]['set'](_0x5b4def['memberID'],_0x5b4def);}[_0x5f56c6(0x4ba)](_0x53b03b){const _0x1105ff=_0x5f56c6;this['_members'][_0x1105ff(0x340)](_0x53b03b);}[_0x5f56c6(0x30c)](_0x126a10){const _0x214429=_0x5f56c6;return this[_0x214429(0x19f)][_0x214429(0x44d)](_0x126a10);}[_0x5f56c6(0x46e)](){const _0xecdbe7=_0x5f56c6;return Array[_0xecdbe7(0x2b9)](this[_0xecdbe7(0x19f)][_0xecdbe7(0x182)]());}}var _0x4767e3=Object[_0x5f56c6(0x17a)],_0x21b28d=Object[_0x5f56c6(0x47e)],_0x25d4ae=(_0x29f66a,_0x4cd179,_0x7b88dc,_0x3f9dae)=>{const _0x628660=_0x5f56c6;for(var _0x31cfde=_0x3f9dae>0x1?void 0x0:_0x3f9dae?_0x21b28d(_0x4cd179,_0x7b88dc):_0x4cd179,_0x1953cd=_0x29f66a[_0x628660(0x47d)]-0x1,_0x204ad6;_0x1953cd>=0x0;_0x1953cd--)(_0x204ad6=_0x29f66a[_0x1953cd])&&(_0x31cfde=(_0x3f9dae?_0x204ad6(_0x4cd179,_0x7b88dc,_0x31cfde):_0x204ad6(_0x31cfde))||_0x31cfde);return _0x3f9dae&&_0x31cfde&&_0x4767e3(_0x4cd179,_0x7b88dc,_0x31cfde),_0x31cfde;},_0x301af7=(_0x233872,_0x24178a)=>(_0x158495,_0x3b64a1)=>_0x24178a(_0x158495,_0x3b64a1,_0x233872),_0x90155=(_0x5e8559=>(_0x5e8559[_0x5e8559[_0x5f56c6(0x204)]=0x0]='IDLE',_0x5e8559[_0x5e8559['JOINING']=0x1]='JOINING',_0x5e8559[_0x5e8559[_0x5f56c6(0x385)]=0x2]='OFFLINE',_0x5e8559[_0x5e8559[_0x5f56c6(0x4c5)]=0x3]=_0x5f56c6(0x4c5),_0x5e8559))(_0x90155||{});_0x4fdbaf['CollaborationSession']=class extends _0x29630e['RxDisposable']{constructor(_0x1eb6b9,_0x519807,_0x37de1d,_0x404d0b,_0x1621e2,_0x59c422,_0x3ca0fb,_0x6409d3,_0x56cb66,_0x5c151d){const _0x587ce5=_0x5f56c6;super(),_0x48f470(this,'_sessionStatus$',new _0x17e48c[(_0x587ce5(0x38b))](0x0)),_0x48f470(this,'sessionStatus$',this[_0x587ce5(0x4d6)][_0x587ce5(0x2ac)]()),_0x48f470(this,_0x587ce5(0x315),new _0x17e48c[(_0x587ce5(0x3be))]()),_0x48f470(this,_0x587ce5(0x574),this[_0x587ce5(0x315)]['asObservable']()),_0x48f470(this,_0x587ce5(0x41f)),_0x48f470(this,_0x587ce5(0x3a6)),_0x48f470(this,_0x587ce5(0x44c)),_0x48f470(this,_0x587ce5(0x38e),!0x1),_0x48f470(this,_0x587ce5(0x4b6),null),(this[_0x587ce5(0x585)]=_0x1eb6b9,this[_0x587ce5(0x3ac)]=_0x37de1d,this[_0x587ce5(0x22e)]=_0x404d0b,this[_0x587ce5(0x3a9)]=_0x1621e2,this[_0x587ce5(0x4e8)]=_0x59c422,this[_0x587ce5(0x375)]=_0x3ca0fb,this[_0x587ce5(0x521)]=_0x6409d3,this[_0x587ce5(0x312)]=_0x56cb66,this[_0x587ce5(0x1be)]=_0x5c151d,this[_0x587ce5(0x38e)]=!!this[_0x587ce5(0x1be)],_0x519807[_0x587ce5(0x300)](_0x17e48c[_0x587ce5(0x47a)](this[_0x587ce5(0x3ce)]))['subscribe'](_0x1a2d9b=>{const _0x33d071=_0x587ce5;var _0x1268b6;typeof _0x1a2d9b>'u'||(this['_socket']=_0x1a2d9b,_0x1a2d9b?(this[_0x33d071(0x1ba)](_0x1a2d9b),this[_0x33d071(0x3a6)]=_0x1a2d9b[_0x33d071(0x39c)][_0x33d071(0x18a)](_0x477777=>{const _0x59710c=_0x33d071;_0x477777[_0x59710c(0x330)]===this['_unitID']&&this[_0x59710c(0x535)](_0x477777);})):(this[_0x33d071(0x432)](),this[_0x33d071(0x4d6)][_0x33d071(0x17b)](0x2),(_0x1268b6=this[_0x33d071(0x3a6)])==null||_0x1268b6[_0x33d071(0x349)](),this[_0x33d071(0x3a6)]=null));}),this[_0x587ce5(0x52f)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x28210c=_0x587ce5;var _0x1a6fba;(_0x1a6fba=this[_0x28210c(0x41f)])==null||_0x1a6fba['send']({'cmd':_0x118155[_0x28210c(0x415)],'data':{'roomID':this[_0x28210c(0x585)]}});})));}get[_0x5f56c6(0x595)](){return this['_sessionStatus$']['getValue']();}[_0x5f56c6(0x474)](){const _0x364a0a=_0x5f56c6;var _0x97686b,_0x480167;return(_0x480167=(_0x97686b=this[_0x364a0a(0x41f)])==null?void 0x0:_0x97686b['memberID'])!=null?_0x480167:null;}[_0x5f56c6(0x1b8)](){const _0x466647=_0x5f56c6;super[_0x466647(0x1b8)](),this['dispose$']['next'](),this[_0x466647(0x3ce)]['complete']();}[_0x5f56c6(0x3ca)](){const _0x8e86cf=_0x5f56c6;var _0x2f252f,_0x57c873;this[_0x8e86cf(0x432)](),(_0x2f252f=this[_0x8e86cf(0x41f)])==null||_0x2f252f[_0x8e86cf(0x16b)]({'cmd':_0x118155[_0x8e86cf(0x415)],'data':{'roomID':this[_0x8e86cf(0x585)]}}),(_0x57c873=this[_0x8e86cf(0x41f)])==null||_0x57c873['close'](),this['_event$']['complete'](),this[_0x8e86cf(0x4d6)][_0x8e86cf(0x423)](),this[_0x8e86cf(0x1b8)]();}['_onCombEvent'](_0x132311){const _0x49fbfa=_0x5f56c6;_0x132311[_0x49fbfa(0x16d)]===_0x118155[_0x49fbfa(0x4f5)]?this[_0x49fbfa(0x2c9)](_0x132311):_0x132311[_0x49fbfa(0x16d)]===_0x118155[_0x49fbfa(0x29b)]&&this[_0x49fbfa(0x272)](_0x132311);}[_0x5f56c6(0x1ba)](_0x46a29f){const _0x29f06f=_0x5f56c6;this['_sessionStatus$'][_0x29f06f(0x17b)](0x1),_0x46a29f[_0x29f06f(0x16b)]({'cmd':_0x118155[_0x29f06f(0x4f5)],'routeKey':this[_0x29f06f(0x585)],'routeType':'','data':{'rooms':[{'roomID':this[_0x29f06f(0x585)]}]}});}[_0x5f56c6(0x2c9)](_0x45d767){const _0x231662=_0x5f56c6;var _0x506fb0;if(_0x45d767[_0x231662(0x513)]===_0xa05499[_0x231662(0x37f)]){this[_0x231662(0x3a9)][_0x231662(0x2e8)]({'type':_0x2d4ff4[_0x231662(0x2c7)][_0x231662(0x1c9)],'content':this[_0x231662(0x375)]['t'](_0x231662(0x29c))}),this[_0x231662(0x4d6)]['next'](0x2);return;}this[_0x231662(0x4d6)][_0x231662(0x17b)](0x3);const _0x33519f=(_0x506fb0=_0x45d767['data'][_0x231662(0x3d5)][this['_unitID']])==null?void 0x0:_0x506fb0[_0x231662(0x591)];_0x33519f&&_0x33519f[_0x231662(0x57d)](_0x29d7f6=>this[_0x231662(0x521)][_0x231662(0x383)](this['_unitID'],_0x29d7f6));}[_0x5f56c6(0x272)](_0x2bc1be){const _0x2b10fa=_0x5f56c6;try{const _0x3e195f=_0x2bc1be[_0x2b10fa(0x54c)];switch(_0x3e195f['eventID']){case _0x2a6d3d['CollaborationEvent'][_0x2b10fa(0x311)]:this['_onUserJoin'](_0x3e195f),this[_0x2b10fa(0x315)][_0x2b10fa(0x17b)](_0x3e195f);break;case _0x2a6d3d[_0x2b10fa(0x56e)][_0x2b10fa(0x2c5)]:this[_0x2b10fa(0x2f9)](_0x3e195f),this[_0x2b10fa(0x315)]['next'](_0x3e195f);break;case _0x2a6d3d[_0x2b10fa(0x56e)]['CHANGESET_ACK']:case _0x2a6d3d['CollaborationEvent'][_0x2b10fa(0x306)]:this[_0x2b10fa(0x57c)](),this['_clearCollaborationTimeoutTimer'](),this[_0x2b10fa(0x315)][_0x2b10fa(0x17b)](_0x3e195f);break;case _0x2a6d3d['CollaborationEvent'][_0x2b10fa(0x552)]:this[_0x2b10fa(0x3ac)][_0x2b10fa(0x1fe)](_0x2b10fa(0x23c)+JSON['stringify'](_0x3e195f)),this[_0x2b10fa(0x315)]['next'](_0x3e195f);break;case _0x2a6d3d[_0x2b10fa(0x56e)][_0x2b10fa(0x559)]:this['_commentService'][_0x2b10fa(0x4ad)](_0x3e195f[_0x2b10fa(0x54c)]),this[_0x2b10fa(0x315)][_0x2b10fa(0x17b)](_0x3e195f);break;default:this[_0x2b10fa(0x315)][_0x2b10fa(0x17b)](_0x3e195f);}}catch(_0x339bd1){this[_0x2b10fa(0x3ac)][_0x2b10fa(0x1fe)](_0x339bd1,_0x2bc1be);}}['_onUserJoin'](_0x6c73e8){const _0x33f5dd=_0x5f56c6;this['_memberService'][_0x33f5dd(0x383)](this[_0x33f5dd(0x585)],_0x6c73e8[_0x33f5dd(0x54c)]);}[_0x5f56c6(0x2f9)](_0x2066df){const _0x5e8024=_0x5f56c6;this['_memberService'][_0x5e8024(0x4ba)](this[_0x5e8024(0x585)],_0x2066df[_0x5e8024(0x54c)][_0x5e8024(0x4d4)]);}async['send'](_0x37bb16,_0x55b47e){const _0x437d27=_0x5f56c6;if(this[_0x437d27(0x595)]!==0x3||!this['_socket'])throw new Error(_0x437d27(0x56d));try{_0x37bb16['eventID']===_0x2a6d3d[_0x437d27(0x56e)][_0x437d27(0x25b)]&&(this[_0x437d27(0x577)](),this[_0x437d27(0x522)](_0x37bb16)),this[_0x437d27(0x41f)][_0x437d27(0x16b)]({'cmd':_0x118155['INGEST'],'routeKey':_0x55b47e,'routeType':'','data':_0x37bb16});}catch(_0x121230){this['_logService']['error'](_0x121230);}}[_0x5f56c6(0x577)](){const _0x237362=_0x5f56c6;var _0x267846;this[_0x237362(0x44c)]=window[_0x237362(0x262)](()=>{const _0x138693=_0x237362;this[_0x138693(0x44c)]=null,this[_0x138693(0x3a9)][_0x138693(0x2e8)]({'type':_0x2d4ff4[_0x138693(0x2c7)][_0x138693(0x27c)],'content':this[_0x138693(0x375)]['t'](_0x138693(0x3f8))});},(_0x267846=this['_configService'][_0x237362(0x1e0)](_0x3b0121))!=null?_0x267846:0x4e20);}[_0x5f56c6(0x1c0)](){const _0x48f407=_0x5f56c6;this[_0x48f407(0x44c)]&&(clearTimeout(this[_0x48f407(0x44c)]),this['_collaborationTimeoutTimer']=null);}[_0x5f56c6(0x522)](_0x49f4e1){const _0x3b3427=_0x5f56c6;if(!this['_shouldReportTelemetry'])return;const {data:_0x3be58b}=_0x49f4e1,{unitID:_0x18ed54,changeset:_0x34bb18}=_0x3be58b,{mutations:_0x48dacc,type:_0xf16c2c}=_0x34bb18;this[_0x3b3427(0x4b6)]={'unitId':_0x18ed54,'type':_0xf16c2c,'startTime':performance[_0x3b3427(0x1c4)](),'stopTime':0x0,'duration':0x0,'size':_0x5854e3(_0x48dacc)};}[_0x5f56c6(0x57c)](){const _0x31b515=_0x5f56c6;if(this[_0x31b515(0x38e)]){if(!this[_0x31b515(0x4b6)]){this[_0x31b515(0x3ac)]['error']('[CollaborationSession]',_0x31b515(0x1c5));return;}this[_0x31b515(0x4b6)][_0x31b515(0x429)]=performance[_0x31b515(0x1c4)](),this['_telemetryInfo'][_0x31b515(0x3e9)]=this[_0x31b515(0x4b6)][_0x31b515(0x429)]-this[_0x31b515(0x4b6)]['startTime'],this['_telemetryService'][_0x31b515(0x29a)](_0x3d7395,this[_0x31b515(0x4b6)]),this[_0x31b515(0x4b6)]=null;}}[_0x5f56c6(0x432)](){this['_telemetryInfo']=null;}},_0x4fdbaf[_0x5f56c6(0x3c8)]=_0x25d4ae([_0x301af7(0x2,_0x29630e[_0x5f56c6(0x478)]),_0x301af7(0x3,_0x279664[_0x5f56c6(0x50a)]),_0x301af7(0x4,_0x279664[_0x5f56c6(0x24d)]),_0x301af7(0x5,_0x29630e[_0x5f56c6(0x34d)]),_0x301af7(0x6,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)])),_0x301af7(0x7,_0x29630e['Inject'](_0x4fdbaf[_0x5f56c6(0x2b3)])),_0x301af7(0x8,_0x29630e['Inject'](_0x4fa0d0)),_0x301af7(0x9,_0x29630e[_0x5f56c6(0x20f)](_0x2baadb[_0x5f56c6(0x15a)]))],_0x4fdbaf[_0x5f56c6(0x3c8)]);var _0x196252=Object[_0x5f56c6(0x17a)],_0x418f55=Object['getOwnPropertyDescriptor'],_0x223a4d=(_0x44ebaf,_0x3e0b31,_0x133947,_0x36b637)=>{const _0x4354cd=_0x5f56c6;for(var _0x177904=_0x36b637>0x1?void 0x0:_0x36b637?_0x418f55(_0x3e0b31,_0x133947):_0x3e0b31,_0x8daae5=_0x44ebaf[_0x4354cd(0x47d)]-0x1,_0x4547fd;_0x8daae5>=0x0;_0x8daae5--)(_0x4547fd=_0x44ebaf[_0x8daae5])&&(_0x177904=(_0x36b637?_0x4547fd(_0x3e0b31,_0x133947,_0x177904):_0x4547fd(_0x177904))||_0x177904);return _0x36b637&&_0x177904&&_0x196252(_0x3e0b31,_0x133947,_0x177904),_0x177904;},_0x20a90d=(_0xde5c51,_0x5efc88)=>(_0x50dadc,_0x2baf19)=>_0x5efc88(_0x50dadc,_0x2baf19,_0xde5c51);_0x4fdbaf[_0x5f56c6(0x580)]=class extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(_0x291e2e,_0x4c8e8c,_0x250b54,_0x2ab5b7,_0x122909,_0xdf031b){const _0x33a85c=_0x5f56c6;super(),_0x48f470(this,'_socket$',new _0x17e48c[(_0x33a85c(0x38b))](void 0x0)),_0x48f470(this,_0x33a85c(0x309),this[_0x33a85c(0x338)]['asObservable']()),_0x48f470(this,_0x33a85c(0x1a7),null),_0x48f470(this,_0x33a85c(0x2aa),new Map()),_0x48f470(this,'_status$',new _0x17e48c[(_0x33a85c(0x38b))](_0x90155['IDLE'])),_0x48f470(this,_0x33a85c(0x46c),this[_0x33a85c(0x190)][_0x33a85c(0x2ac)]()),_0x48f470(this,_0x33a85c(0x1e9),!0x1),_0x48f470(this,_0x33a85c(0x292)),_0x48f470(this,_0x33a85c(0x36b),0x0),_0x48f470(this,_0x33a85c(0x305)),_0x48f470(this,_0x33a85c(0x39f)),(this[_0x33a85c(0x3cf)]=_0x291e2e,this[_0x33a85c(0x375)]=_0x4c8e8c,this['_messageService']=_0x250b54,this['_logService']=_0x2ab5b7,this[_0x33a85c(0x4e8)]=_0x122909,this[_0x33a85c(0x515)]=_0xdf031b,this[_0x33a85c(0x360)]());}get['_socket'](){return this['_socket$']['getValue']();}[_0x5f56c6(0x360)](){const _0x58e7b2=_0x5f56c6;this[_0x58e7b2(0x58a)](),this[_0x58e7b2(0x39a)]();}[_0x5f56c6(0x1b8)](){const _0x21819a=_0x5f56c6;super['dispose'](),this[_0x21819a(0x2aa)][_0x21819a(0x57d)](_0x18365e=>_0x18365e['dispose']()),this[_0x21819a(0x2aa)]['clear'](),this[_0x21819a(0x190)]['complete']();}async[_0x5f56c6(0x494)](_0x3f5613){const _0xf2f2fa=_0x5f56c6;if(this['_sessions'][_0xf2f2fa(0x55c)](_0x3f5613))return this['_sessions'][_0xf2f2fa(0x44d)](_0x3f5613);this['_tryEnsureSocket']();const _0x3ac94d=this[_0xf2f2fa(0x3cf)][_0xf2f2fa(0x445)](_0x4fdbaf[_0xf2f2fa(0x3c8)],_0x3f5613,this[_0xf2f2fa(0x338)][_0xf2f2fa(0x2ac)]());return this['_sessions']['set'](_0x3f5613,_0x3ac94d),_0x3ac94d;}[_0x5f56c6(0x43e)](_0x2fa82c){const _0x5a04ed=_0x5f56c6;var _0x45ffb4;const _0x5b0082=this[_0x5a04ed(0x2aa)][_0x5a04ed(0x44d)](_0x2fa82c);_0x5b0082&&(this[_0x5a04ed(0x2aa)][_0x5a04ed(0x340)](_0x2fa82c),_0x5b0082[_0x5a04ed(0x3ca)]()),this[_0x5a04ed(0x2aa)][_0x5a04ed(0x4b5)]||(_0x45ffb4=this[_0x5a04ed(0x41f)])==null||_0x45ffb4[_0x5a04ed(0x3ca)]();}[_0x5f56c6(0x22b)](){const _0x55fb53=_0x5f56c6;this[_0x55fb53(0x36b)]=0x0,this[_0x55fb53(0x292)]!=null&&(clearTimeout(this[_0x55fb53(0x292)]),this[_0x55fb53(0x292)]=null),this[_0x55fb53(0x472)]();}[_0x5f56c6(0x2e3)](){const _0x45501e=_0x5f56c6;var _0x189f78,_0x4a54d0;const _0x5b1c6b=this[_0x45501e(0x4e8)]['getConfig'](_0x4650c3),_0x1cf4cf=this[_0x45501e(0x4e8)]['getConfig'](_0x1573c4),_0x199a31=(_0x4a54d0=(_0x189f78=_0x1cf4cf==null?void 0x0:_0x1cf4cf[_0x45501e(0x2e5)])!=null?_0x189f78:_0x5b1c6b)!=null?_0x4a54d0:_0x56f7d8,_0x2bf97a=this[_0x45501e(0x515)][_0x45501e(0x2c3)](_0x199a31);return this['_candidateSocket']=_0x2bf97a,_0x2bf97a;}[_0x5f56c6(0x2fb)](){const _0x9d7109=_0x5f56c6;var _0x40038d,_0x1e828c;try{const _0x4fa5cd=(_0x1e828c=(_0x40038d=this[_0x9d7109(0x41f)])!=null?_0x40038d:this[_0x9d7109(0x1a7)])!=null?_0x1e828c:this['_createSocket']();if(_0x4fa5cd){const _0x4b9971=_0x4fa5cd[_0x9d7109(0x16b)];_0x4fa5cd['send']=_0x1b292c=>(this[_0x9d7109(0x4b9)](),_0x4b9971[_0x9d7109(0x257)](_0x4fa5cd,[_0x1b292c])),_0x4fa5cd[_0x9d7109(0x39c)][_0x9d7109(0x18a)](_0x5aed54=>this[_0x9d7109(0x45e)](_0x4fa5cd,_0x5aed54)),_0x4fa5cd[_0x9d7109(0x55a)][_0x9d7109(0x300)](_0x56098d['take'](0x1))[_0x9d7109(0x18a)](_0x1c0934=>this[_0x9d7109(0x3ac)][_0x9d7109(0x1fe)](_0x9d7109(0x4f0),_0x1c0934)),_0x4fa5cd['open$'][_0x9d7109(0x300)](_0x56098d[_0x9d7109(0x19a)](0x1))[_0x9d7109(0x18a)](()=>{const _0x4a7ba1=_0x9d7109;this[_0x4a7ba1(0x158)](_0x4fa5cd);}),_0x4fa5cd[_0x9d7109(0x442)][_0x9d7109(0x300)](_0x56098d[_0x9d7109(0x19a)](0x1))[_0x9d7109(0x18a)](_0x44b5a6=>{const _0x3ef113=_0x9d7109;this[_0x3ef113(0x3ac)][_0x3ef113(0x2fa)](_0x3ef113(0x565),_0x3ef113(0x165),_0x44b5a6),this[_0x3ef113(0x3f2)]();});}}catch(_0x56fa16){this[_0x9d7109(0x3ac)][_0x9d7109(0x1fe)](_0x56fa16),this[_0x9d7109(0x3f2)]();}}[_0x5f56c6(0x158)](_0x1ff29d){const _0xc914ec=_0x5f56c6;this[_0xc914ec(0x3ac)]['debug'](_0xc914ec(0x565),_0xc914ec(0x3a2)),_0x1ff29d['send']({'cmd':_0x118155[_0xc914ec(0x1d2)]}),this[_0xc914ec(0x4b9)]();}[_0x5f56c6(0x58a)](){const _0x583937=_0x5f56c6;window['addEventListener']('offline',()=>this[_0x583937(0x4f9)]());}[_0x5f56c6(0x4f9)](){const _0x580ad7=_0x5f56c6;this[_0x580ad7(0x1e9)]=!0x1,this[_0x580ad7(0x1a7)]=null,this['_status$']['next'](_0x90155[_0x580ad7(0x385)]),this['_socket$'][_0x580ad7(0x17b)](null),this[_0x580ad7(0x3ed)](),this['_clearHeartbeatTimer']();}[_0x5f56c6(0x3f2)](){const _0x45eb75=_0x5f56c6;var _0xece88c;this[_0x45eb75(0x4f9)](),this[_0x45eb75(0x36b)]<((_0xece88c=this[_0x45eb75(0x4e8)][_0x45eb75(0x1e0)](_0xd6482f))!=null?_0xece88c:0x3)?(this[_0x45eb75(0x3a9)][_0x45eb75(0x2e8)]({'key':_0x45eb75(0x486),'type':_0x2d4ff4['MessageType']['Warning'],'content':this[_0x45eb75(0x375)]['t']('session.will-retry')}),this[_0x45eb75(0x472)]()):this[_0x45eb75(0x3a9)][_0x45eb75(0x2e8)]({'key':_0x45eb75(0x486),'type':_0x2d4ff4[_0x45eb75(0x2c7)]['Error'],'content':this[_0x45eb75(0x375)]['t'](_0x45eb75(0x3d6))});}['_listenToOnlineEvent'](){const _0x5349ba=_0x5f56c6,_0x308f08=()=>{const _0x4b1ece=_0xe8fd;this['_socket']||this[_0x4b1ece(0x22b)]();},_0x5d6fa5=()=>{const _0x4bc45b=_0xe8fd;this[_0x4bc45b(0x41f)]||document[_0x4bc45b(0x25c)]===_0x4bc45b(0x4e9)||this['reconnect']();};window[_0x5349ba(0x1df)]('online',_0x308f08),document[_0x5349ba(0x1df)](_0x5349ba(0x37b),_0x5d6fa5);}[_0x5f56c6(0x472)](){const _0xe70949=_0x5f56c6;var _0x332d17;const _0x110e9e=this['_retryCount'],_0x5c09c1=this[_0xe70949(0x4e8)][_0xe70949(0x1e0)](_0x1573c4),_0xa3d89b=_0x110e9e===0x0?0x0:((_0x332d17=_0x5c09c1==null?void 0x0:_0x5c09c1[_0xe70949(0x374)])!=null?_0x332d17:0x4e20)*0x2**_0x110e9e;this[_0xe70949(0x292)]=window[_0xe70949(0x262)](()=>{const _0x5beaeb=_0xe70949;clearTimeout(this['_retryConnectingTimer']),this[_0x5beaeb(0x292)]=null,this[_0x5beaeb(0x2fb)]();},_0xa3d89b),this['_retryCount']+=0x1;}[_0x5f56c6(0x45e)](_0x1ff901,_0x18e217){const _0x804009=_0x5f56c6,{cmd:_0x2d952e}=_0x18e217;_0x2d952e===_0x118155[_0x804009(0x1d2)]&&!this['_socketReady']&&(_0x1ff901[_0x804009(0x4d4)]=_0x18e217[_0x804009(0x54c)][_0x804009(0x4d4)],this[_0x804009(0x338)][_0x804009(0x17b)](_0x1ff901),this[_0x804009(0x190)][_0x804009(0x17b)](_0x90155['ONLINE']),this[_0x804009(0x1e9)]=!0x0,this['_candidateSocket']=null),_0x2d952e===_0x118155[_0x804009(0x391)]&&this[_0x804009(0x3ed)](),this['_rescheduleHeartbeat']();}[_0x5f56c6(0x4b9)](){const _0x4e84b9=_0x5f56c6;var _0x3d5c9d;this[_0x4e84b9(0x280)](),this[_0x4e84b9(0x305)]=window[_0x4e84b9(0x262)](()=>this[_0x4e84b9(0x31c)](),(_0x3d5c9d=this[_0x4e84b9(0x4e8)]['getConfig'](_0x17ca3f))!=null?_0x3d5c9d:0x7530);}[_0x5f56c6(0x31c)](){const _0x530f64=_0x5f56c6;this[_0x530f64(0x41f)][_0x530f64(0x16b)]({'cmd':_0x118155[_0x530f64(0x391)]}),this[_0x530f64(0x267)]();}[_0x5f56c6(0x267)](){const _0xca216b=_0x5f56c6;var _0xd20fdc;this['_timeoutTimer']=window[_0xca216b(0x262)](()=>this['_onConnectionFailed'](),(_0xd20fdc=this['_configService'][_0xca216b(0x1e0)](_0x3b0121))!=null?_0xd20fdc:0x4e20);}[_0x5f56c6(0x280)](){const _0x16991c=_0x5f56c6;this[_0x16991c(0x305)]!=null&&(clearTimeout(this[_0x16991c(0x305)]),this[_0x16991c(0x305)]=null);}[_0x5f56c6(0x3ed)](){const _0xbe2ae5=_0x5f56c6;this[_0xbe2ae5(0x39f)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x4fdbaf['CollaborationSessionService']=_0x223a4d([_0x20a90d(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x20a90d(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)])),_0x20a90d(0x2,_0x279664[_0x5f56c6(0x24d)]),_0x20a90d(0x3,_0x29630e[_0x5f56c6(0x478)]),_0x20a90d(0x4,_0x29630e[_0x5f56c6(0x34d)]),_0x20a90d(0x5,_0x24f2a6)],_0x4fdbaf[_0x5f56c6(0x580)]);for(var _0x4b03b3=[],_0x59bf5a=0x0;_0x59bf5a<0x100;++_0x59bf5a)_0x4b03b3['push']((_0x59bf5a+0x100)[_0x5f56c6(0x468)](0x10)['slice'](0x1));function _0x949fe5(_0x8cf2ea,_0x4ec52c=0x0){const _0x3d09ff=_0x5f56c6;return(_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x0]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x1]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x2]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x3]]+'-'+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x4]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x5]]+'-'+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x6]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x7]]+'-'+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x8]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0x9]]+'-'+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0xa]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0xb]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0xc]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0xd]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0xe]]+_0x4b03b3[_0x8cf2ea[_0x4ec52c+0xf]])[_0x3d09ff(0x30f)]();}var _0x5987d6,_0x1bda84=new Uint8Array(0x10);function _0x85cf89(){const _0x1ad270=_0x5f56c6;if(!_0x5987d6&&(_0x5987d6=typeof crypto<'u'&&crypto[_0x1ad270(0x2f8)]&&crypto['getRandomValues'][_0x1ad270(0x4bc)](crypto),!_0x5987d6))throw new Error(_0x1ad270(0x29f));return _0x5987d6(_0x1bda84);}var _0x8ebaa=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x5f56c6(0x4ae)][_0x5f56c6(0x4bc)](crypto);const _0xb6f691={'randomUUID':_0x8ebaa};function _0x16ee13(_0x275a5a,_0xcffb9,_0xba2cce){const _0x37d84b=_0x5f56c6;if(_0xb6f691['randomUUID']&&!_0xcffb9&&!_0x275a5a)return _0xb6f691[_0x37d84b(0x4ae)]();_0x275a5a=_0x275a5a||{};var _0x900ed2=_0x275a5a[_0x37d84b(0x3c9)]||(_0x275a5a[_0x37d84b(0x21f)]||_0x85cf89)();return _0x900ed2[0x6]=_0x900ed2[0x6]&0xf|0x40,_0x900ed2[0x8]=_0x900ed2[0x8]&0x3f|0x80,_0x949fe5(_0x900ed2);}var _0x7e2e11=Object[_0x5f56c6(0x17a)],_0x1d017f=Object[_0x5f56c6(0x47e)],_0x12f0c7=(_0x5d285b,_0x294c73,_0x2395c6,_0x1e30ca)=>{const _0x2b2a89=_0x5f56c6;for(var _0x5358b1=_0x1e30ca>0x1?void 0x0:_0x1e30ca?_0x1d017f(_0x294c73,_0x2395c6):_0x294c73,_0x4c8504=_0x5d285b[_0x2b2a89(0x47d)]-0x1,_0x46cd02;_0x4c8504>=0x0;_0x4c8504--)(_0x46cd02=_0x5d285b[_0x4c8504])&&(_0x5358b1=(_0x1e30ca?_0x46cd02(_0x294c73,_0x2395c6,_0x5358b1):_0x46cd02(_0x5358b1))||_0x5358b1);return _0x1e30ca&&_0x5358b1&&_0x7e2e11(_0x294c73,_0x2395c6,_0x5358b1),_0x5358b1;},_0x104583=(_0x369426,_0x199bbe)=>(_0x29f443,_0x45bb66)=>_0x199bbe(_0x29f443,_0x45bb66,_0x369426);let _0x403af6=class{constructor(_0xaf32c5,_0x55b5ab,_0x4bc653){const _0x15a62d=_0x5f56c6;this['_injector']=_0xaf32c5,this[_0x15a62d(0x4ab)]=_0x55b5ab,this[_0x15a62d(0x576)]=_0x4bc653;}[_0x5f56c6(0x29e)](_0xac6cd8){const _0x14a2a1=_0x5f56c6;this[_0x14a2a1(0x2cd)](_0xac6cd8),this['_transformPreviousActiveRange'](_0xac6cd8);}['transformRemoteChangeset'](_0x4a5be1){const _0x3faff2=_0x5f56c6,{unitID:_0x51009d}=_0x4a5be1,_0x489558=this[_0x3faff2(0x576)][_0x3faff2(0x2f1)](_0x51009d)[_0x3faff2(0x2fe)](_0x214ea6[_0x3faff2(0x212)]),{redoCache:_0x33c6bc}=_0x489558['getUndoRedoMutationParamsCache']();if(_0x33c6bc[_0x3faff2(0x47d)]===0x0)return _0x4a5be1;let _0x2cbb1b=_0x29630e[_0x3faff2(0x4a1)]['deepClone'](_0x4a5be1[_0x3faff2(0x288)][0x0]);for(let _0x561f1d=0x0;_0x561f1d<_0x33c6bc[_0x3faff2(0x47d)];_0x561f1d++){const _0x324e89={'id':_0x3faff2(0x23d),'params':{..._0x33c6bc[_0x561f1d]}},_0x5794dc=this[_0x3faff2(0x4ab)]['transformMutation'](_0x2cbb1b,_0x324e89,!0x1);if(_0x2a6d3d[_0x3faff2(0x1db)](_0x5794dc))throw _0x5794dc['error'];_0x2cbb1b=_0x5794dc[_0x3faff2(0x1dc)];}return{..._0x29630e['Tools'][_0x3faff2(0x2a5)](_0x4a5be1),'mutations':[_0x2cbb1b]};}[_0x5f56c6(0x2cd)](_0xe76ecf){const _0x243c1c=_0x5f56c6,{unitID:_0xdccad9}=_0xe76ecf,_0x523e4d=this[_0x243c1c(0x576)][_0x243c1c(0x2f1)](_0xdccad9)[_0x243c1c(0x2fe)](_0x214ea6['DocIMEInputManagerService']),{undoCache:_0x19d0ae,redoCache:_0x1afdb9}=_0x523e4d[_0x243c1c(0x20c)]();if(_0x19d0ae[_0x243c1c(0x47d)]===0x0||_0x1afdb9['length']===0x0)return;const _0x4885c6=[],_0x14a5f1=[];let _0x33a12f=_0x29630e['Tools'][_0x243c1c(0x2a5)](_0xe76ecf['mutations'][0x0]),_0xf0937d=_0x29630e[_0x243c1c(0x4a1)]['deepClone'](_0xe76ecf[_0x243c1c(0x288)][0x0]);for(let _0x1d95bf=_0x19d0ae['length']-0x1;_0x1d95bf>=0x0;_0x1d95bf--){const _0x2f104e={'id':_0x243c1c(0x23d),'params':{..._0x19d0ae[_0x1d95bf]}},_0xd3bb27={'id':'doc.mutation.rich-text-editing','params':{..._0x1afdb9[_0x1d95bf]}},_0x59b6da=this[_0x243c1c(0x4ab)][_0x243c1c(0x506)](_0x33a12f,_0x2f104e,!0x1),_0xc0b896=this[_0x243c1c(0x4ab)][_0x243c1c(0x506)](_0xf0937d,_0xd3bb27,!0x1);if(_0x2a6d3d[_0x243c1c(0x1db)](_0x59b6da))throw _0x59b6da[_0x243c1c(0x1fe)];if(_0x2a6d3d[_0x243c1c(0x1db)](_0xc0b896))throw _0xc0b896[_0x243c1c(0x1fe)];_0x4885c6[_0x243c1c(0x49b)](_0x59b6da[_0x243c1c(0x3fc)]['params']),_0x14a5f1[_0x243c1c(0x49b)](_0xc0b896[_0x243c1c(0x3fc)][_0x243c1c(0x1ee)]),_0x33a12f=_0x59b6da[_0x243c1c(0x1dc)],_0xf0937d=_0xc0b896[_0x243c1c(0x1dc)];}_0x523e4d['setUndoRedoMutationParamsCache']({'undoCache':_0x4885c6,'redoCache':_0x14a5f1});}[_0x5f56c6(0x3da)](_0x2dbeba){const _0x2ee58e=_0x5f56c6,{unitID:_0x55e925}=_0x2dbeba,_0x7d23b=this[_0x2ee58e(0x576)][_0x2ee58e(0x2f1)](_0x55e925)[_0x2ee58e(0x2fe)](_0x214ea6['DocIMEInputManagerService']),_0x44498e=_0x7d23b['getActiveRange']();if(_0x44498e==null)return;const _0x57b8a0=[{'id':_0x2ee58e(0x23d),'params':{'unitId':_0x2dbeba[_0x2ee58e(0x586)],'actions':null,'textRanges':[_0x44498e]}}],_0x12268e=this[_0x2ee58e(0x4ab)][_0x2ee58e(0x4bd)](_0x2dbeba,_0x57b8a0);if(!_0x2a6d3d[_0x2ee58e(0x578)](_0x12268e))throw _0x12268e['error'];const _0x1c168f=_0x12268e[_0x2ee58e(0x3fc)][0x0][_0x2ee58e(0x1ee)][_0x2ee58e(0x589)];Array[_0x2ee58e(0x400)](_0x1c168f)&&_0x1c168f[_0x2ee58e(0x47d)]&&_0x7d23b[_0x2ee58e(0x253)](_0x1c168f[0x0]);}};_0x403af6=_0x12f0c7([_0x104583(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x104583(0x1,_0x2a6d3d[_0x5f56c6(0x172)]),_0x104583(0x2,_0x37c548['IRenderManagerService'])],_0x403af6);var _0x5b87fc=Object['defineProperty'],_0x109f7a=Object['getOwnPropertyDescriptor'],_0x48d8fc=(_0x9dab03,_0xa41fb,_0x47b4fd,_0x5aa4b1)=>{const _0x333969=_0x5f56c6;for(var _0x2e0298=_0x5aa4b1>0x1?void 0x0:_0x5aa4b1?_0x109f7a(_0xa41fb,_0x47b4fd):_0xa41fb,_0x33036e=_0x9dab03[_0x333969(0x47d)]-0x1,_0xa7ee3;_0x33036e>=0x0;_0x33036e--)(_0xa7ee3=_0x9dab03[_0x33036e])&&(_0x2e0298=(_0x5aa4b1?_0xa7ee3(_0xa41fb,_0x47b4fd,_0x2e0298):_0xa7ee3(_0x2e0298))||_0x2e0298);return _0x5aa4b1&&_0x2e0298&&_0x5b87fc(_0xa41fb,_0x47b4fd,_0x2e0298),_0x2e0298;},_0x2b8c79=(_0x58d6fb,_0x27e1fd)=>(_0x106339,_0x2d749a)=>_0x27e1fd(_0x106339,_0x2d749a,_0x58d6fb);_0x4fdbaf[_0x5f56c6(0x1d8)]=class extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(_0x39bc54,_0x32c1c5,_0x57c167,_0x1744ba,_0x31b908){const _0x48cb42=_0x5f56c6;super(),_0x48f470(this,_0x48cb42(0x224),new Map()),_0x48f470(this,_0x48cb42(0x491),new Map()),_0x48f470(this,'_disabled',!0x1),(this[_0x48cb42(0x4e8)]=_0x39bc54,this[_0x48cb42(0x1e3)]=_0x32c1c5,this[_0x48cb42(0x22e)]=_0x57c167,this[_0x48cb42(0x375)]=_0x1744ba,this[_0x48cb42(0x4e2)]=_0x31b908,this[_0x48cb42(0x3b9)]());}['disableLocalCache'](){const _0x3f6e01=_0x5f56c6;this[_0x3f6e01(0x4d2)]=!0x0;}[_0x5f56c6(0x484)](){const _0x15e916=_0x5f56c6;this[_0x15e916(0x4d2)]=!0x1;}['dispose'](){const _0x1c9cc9=_0x5f56c6;this[_0x1c9cc9(0x2d8)]()[_0x1c9cc9(0x4c3)](()=>super[_0x1c9cc9(0x1b8)]());}async['loadOfflineData'](_0xa6121d){const _0x24e99c=_0x5f56c6;return this[_0x24e99c(0x4d2)]?null:this['_localStorageService'][_0x24e99c(0x1d4)](_0x148cfe(_0xa6121d));}async[_0x5f56c6(0x34f)](_0x123672,_0x14ef42){const _0x403034=_0x5f56c6;return!!this['_localStorageService'][_0x403034(0x23a)](_0x123672,_0x14ef42);}[_0x5f56c6(0x242)](_0x4cbbf7,_0xeda1fd,_0x105319,_0x1ef0f4){const _0x107a19=_0x5f56c6,_0x434f65=this['_revisionService'][_0x107a19(0x174)](_0x4cbbf7);this['_cachedData'][_0x107a19(0x4f1)](_0x4cbbf7,{'unitID':_0x4cbbf7,'type':_0xeda1fd,'awaitingChangeset':_0x105319,'mutations':_0x1ef0f4,'rev':_0x434f65}),this['_saveTaskMap']['has'](_0x4cbbf7)||this[_0x107a19(0x45d)](_0x4cbbf7);}[_0x5f56c6(0x45d)](_0x25d230){const _0x20c2be=_0x5f56c6,_0x427469=this[_0x20c2be(0x452)]();_0x427469===0x0?this[_0x20c2be(0x1ef)](_0x25d230):this[_0x20c2be(0x491)][_0x20c2be(0x4f1)](_0x25d230,setTimeout(()=>this[_0x20c2be(0x1ef)](_0x25d230),_0x427469));}[_0x5f56c6(0x452)](){var _0x25e537;return(_0x25e537=this['_configService']['getConfig'](_0x5831f1))!=null?_0x25e537:0x3e8;}['_saveCache'](_0x21343b){const _0x2ed007=_0x5f56c6,_0x6717da=this[_0x2ed007(0x491)][_0x2ed007(0x44d)](_0x21343b);return _0x6717da!==void 0x0&&window[_0x2ed007(0x1f7)](_0x6717da),this[_0x2ed007(0x1e3)]['setItem'](_0x148cfe(_0x21343b),this[_0x2ed007(0x224)][_0x2ed007(0x44d)](_0x21343b))[_0x2ed007(0x4c3)](()=>this[_0x2ed007(0x491)][_0x2ed007(0x340)](_0x21343b));}async[_0x5f56c6(0x2d8)](){const _0x248a07=_0x5f56c6,_0x58aef3=[];this['_saveTaskMap'][_0x248a07(0x57d)]((_0x23016e,_0x50ad8a)=>{const _0xd00ef7=_0x248a07;window[_0xd00ef7(0x1f7)](_0x23016e),_0x58aef3[_0xd00ef7(0x476)](this[_0xd00ef7(0x1ef)](_0x50ad8a)['then'](()=>{const _0x3fb3ae=_0xd00ef7;this[_0x3fb3ae(0x491)][_0x3fb3ae(0x340)](_0x50ad8a);}));}),await Promise['all'](_0x58aef3);}[_0x5f56c6(0x3b9)](){const _0x452ad0=_0x5f56c6;this[_0x452ad0(0x52f)](this[_0x452ad0(0x22e)][_0x452ad0(0x3e4)](()=>{const _0x4797f7=_0x452ad0;if(this[_0x4797f7(0x491)][_0x4797f7(0x4b5)])return this[_0x4797f7(0x375)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x4fdbaf[_0x5f56c6(0x1d8)]=_0x48d8fc([_0x2b8c79(0x0,_0x29630e[_0x5f56c6(0x34d)]),_0x2b8c79(0x1,_0x29630e[_0x5f56c6(0x238)]),_0x2b8c79(0x2,_0x279664[_0x5f56c6(0x50a)]),_0x2b8c79(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)])),_0x2b8c79(0x4,_0x29630e['Inject'](_0x2a6d3d['RevisionService']))],_0x4fdbaf['LocalCacheService']);function _0x148cfe(_0x59fe8c){const _0x631dbd=_0x5f56c6;return _0x631dbd(0x4dc)+_0x59fe8c;}var _0x2a5233=Object[_0x5f56c6(0x17a)],_0x2f89b7=Object['getOwnPropertyDescriptor'],_0x501a3c=(_0x5b1487,_0x2720a1,_0x236c7d,_0x61237d)=>{const _0x3ffc6b=_0x5f56c6;for(var _0x53011e=_0x61237d>0x1?void 0x0:_0x61237d?_0x2f89b7(_0x2720a1,_0x236c7d):_0x2720a1,_0x3860e0=_0x5b1487[_0x3ffc6b(0x47d)]-0x1,_0x5e885a;_0x3860e0>=0x0;_0x3860e0--)(_0x5e885a=_0x5b1487[_0x3860e0])&&(_0x53011e=(_0x61237d?_0x5e885a(_0x2720a1,_0x236c7d,_0x53011e):_0x5e885a(_0x53011e))||_0x53011e);return _0x61237d&&_0x53011e&&_0x2a5233(_0x2720a1,_0x236c7d,_0x53011e),_0x53011e;},_0x45ffd1=(_0x51828a,_0x26be80)=>(_0x763bc8,_0x3e0171)=>_0x26be80(_0x763bc8,_0x3e0171,_0x51828a);function _0x55d94a(_0x29a748){const _0x4b0dc5=_0x5f56c6,{unitID:_0x1b8fcc,mutations:_0x4b3f87}=_0x29a748;return{'unitId':_0x1b8fcc,'subUnitId':_0x4b3f87[0x0][_0x4b0dc5(0x1ee)]['subUnitId']};}let _0x300a71=class{constructor(_0x24aa2b,_0x4aaf98,_0x3f953c){const _0x38e210=_0x5f56c6;this[_0x38e210(0x3cf)]=_0x24aa2b,this['_transformService']=_0x4aaf98,this[_0x38e210(0x564)]=_0x3f953c;}[_0x5f56c6(0x250)](_0x1553e9){const _0x3538f1=_0x5f56c6;var _0x3aa2c8,_0x52d6d2,_0x180647,_0x2ee43d;const _0x5034b1=this['_injector']['get'](_0x5decb0[_0x3538f1(0x15d)]),{unitId:_0x598579,subUnitId:_0x2ea688}=_0x55d94a(_0x1553e9),_0x4fb23c=_0x5034b1[_0x3538f1(0x58d)](_0x598579)['getCurrentSelections'](),_0x1f7310=(_0x52d6d2=(_0x3aa2c8=this['_instanceService'][_0x3538f1(0x2de)](_0x598579))==null?void 0x0:_0x3aa2c8[_0x3538f1(0x582)]())==null?void 0x0:_0x52d6d2[_0x3538f1(0x15c)]();if(_0x4fb23c[_0x3538f1(0x47d)]===0x0||!_0x598579||!_0x2ea688)return;const _0x2407ad=[{'id':_0x5decb0['SetSelectionsOperation']['id'],'params':{'unitId':_0x598579,'subUnitId':_0x1f7310,'selections':_0x29630e[_0x3538f1(0x4a1)][_0x3538f1(0x2a5)](_0x4fb23c)}}],_0x501533=this[_0x3538f1(0x4ab)]['transformMutationsWithChangeset'](_0x1553e9,_0x2407ad);if(!_0x2a6d3d[_0x3538f1(0x578)](_0x501533))throw _0x501533[_0x3538f1(0x1fe)];const _0x2df8fa=(_0x2ee43d=(_0x180647=_0x501533['m2Prime'][0x0])==null?void 0x0:_0x180647[_0x3538f1(0x1ee)])==null?void 0x0:_0x2ee43d[_0x3538f1(0x551)];if(Array['isArray'](_0x2df8fa)&&_0x2df8fa[_0x3538f1(0x47d)]){if(_0x2df8fa[_0x3538f1(0x47d)]===_0x2407ad[0x0][_0x3538f1(0x1ee)]['selections'][_0x3538f1(0x47d)]&&_0x2df8fa['every']((_0xfce12d,_0x223820)=>_0x29630e['Rectangle'][_0x3538f1(0x34a)](_0xfce12d['range'],_0x2407ad[0x0][_0x3538f1(0x1ee)][_0x3538f1(0x551)][_0x223820]['range'])))return;this['_injector'][_0x3538f1(0x44d)](_0x29630e[_0x3538f1(0x1a4)])[_0x3538f1(0x180)](_0x5decb0[_0x3538f1(0x3aa)]['id'],{'unitId':_0x598579,'subUnitId':_0x1f7310,'selections':_0x2df8fa});}}};_0x300a71=_0x501a3c([_0x45ffd1(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e['Injector'])),_0x45ffd1(0x1,_0x2a6d3d[_0x5f56c6(0x172)]),_0x45ffd1(0x2,_0x29630e['IUniverInstanceService'])],_0x300a71);const _0x5bb5e3=_0x29630e[_0x5f56c6(0x284)](_0x5f56c6(0x28a));var _0x414a7e=(_0x288729=>(_0x288729[_0x288729[_0x5f56c6(0x531)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x288729[_0x288729['OTHER_CLIENTS_EDITING']=0x1]=_0x5f56c6(0x3ff),_0x288729))(_0x414a7e||{});const _0x32ff5d=0x7530,_0x41e7a3=_0x5f56c6(0x3eb);class _0x1b825f extends _0x29630e['Disposable']{constructor(){const _0x8b04fc=_0x5f56c6;super(),_0x48f470(this,'_id',_0x29630e[_0x8b04fc(0x4a1)][_0x8b04fc(0x2d5)]()),_0x48f470(this,_0x8b04fc(0x393),new Set()),_0x48f470(this,_0x8b04fc(0x3e1),new Map()),_0x48f470(this,'_heartbeatTimer',null),_0x48f470(this,_0x8b04fc(0x558),new Map()),_0x48f470(this,_0x8b04fc(0x511),new Map()),this[_0x8b04fc(0x436)]();}[_0x5f56c6(0x1b8)](){const _0x57ea4c=_0x5f56c6;super[_0x57ea4c(0x1b8)](),this['_clearOtherTimers'][_0x57ea4c(0x57d)]((_0x3438be,_0x4629d7)=>this['_removeClearOtherTimer'](_0x4629d7)),this[_0x57ea4c(0x3e6)]&&window[_0x57ea4c(0x41e)](this[_0x57ea4c(0x3e6)]);}[_0x5f56c6(0x485)](_0x1d3cda){const _0x2b7460=_0x5f56c6;return this['_ensureSubject'](_0x1d3cda)['pipe'](_0x17e48c[_0x2b7460(0x356)]());}[_0x5f56c6(0x348)](_0x37dbd1){const _0x11845c=_0x5f56c6;this['_selfUnitIDs'][_0x11845c(0x4b5)]===0x0&&this[_0x11845c(0x4b0)](),this[_0x11845c(0x393)]['add'](_0x37dbd1),this[_0x11845c(0x526)]({'type':0x0,'memberID':this[_0x11845c(0x1c7)],'unitIDs':[_0x37dbd1],'isForwarded':!0x1});}[_0x5f56c6(0x3b1)](_0x22564f){const _0x3a549c=_0x5f56c6;this[_0x3a549c(0x393)]['delete'](_0x22564f),this[_0x3a549c(0x393)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x3a549c(0x41e)](this[_0x3a549c(0x3e6)]);}[_0x5f56c6(0x436)](){const _0x251395=_0x5f56c6;this[_0x251395(0x52f)](_0x29630e['toDisposable'](_0x17e48c[_0x251395(0x18b)](window,_0x251395(0x372))[_0x251395(0x18a)](_0x24b03a=>{const _0x45e6e9=_0x251395;if(_0x24b03a[_0x45e6e9(0x404)]!==_0x41e7a3||!_0x24b03a['newValue'])return;const _0x351f3c=JSON[_0x45e6e9(0x3fb)](_0x24b03a[_0x45e6e9(0x4f2)]);this[_0x45e6e9(0x4b7)](_0x351f3c);}))),window[_0x251395(0x1df)]('unload',()=>this[_0x251395(0x526)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x251395(0x2b9)](this[_0x251395(0x393)])}));}[_0x5f56c6(0x4b7)](_0x35d101){const _0x11dcc2=_0x5f56c6;switch(_0x35d101[_0x11dcc2(0x566)]){case 0x0:this[_0x11dcc2(0x3c2)](_0x35d101);break;case 0x1:this[_0x11dcc2(0x18d)](_0x35d101);break;case 0x2:this[_0x11dcc2(0x487)](_0x35d101);break;}}['_handleJoinEvent'](_0x43e853){const _0x390368=_0x5f56c6,{unitIDs:_0xe275f0,memberID:_0x277fe4,isForwarded:_0x26d563}=_0x43e853;_0xe275f0['forEach'](_0x4790ab=>{const _0x299e59=_0xe8fd;if(!_0x26d563&&this[_0x299e59(0x3e1)][_0x299e59(0x55c)](_0x4790ab)&&this[_0x299e59(0x27e)](_0x4790ab)[_0x299e59(0x17b)](0x1),!this['_unitOnClients'][_0x299e59(0x55c)](_0x4790ab)||!this['_unitOnClients'][_0x299e59(0x44d)](_0x4790ab)[_0x299e59(0x55c)](_0x277fe4)){const _0x5ad58f=this['_unitOnClients']['get'](_0x4790ab)||new Set();_0x5ad58f['add'](_0x277fe4),this[_0x299e59(0x3e1)][_0x299e59(0x4f1)](_0x4790ab,_0x5ad58f),this[_0x299e59(0x40c)](_0x277fe4);}}),_0x26d563||this[_0x390368(0x526)]({'type':0x0,'memberID':this[_0x390368(0x1c7)],'unitIDs':[...this[_0x390368(0x393)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2a94bc){const _0x122c46=_0x5f56c6;this['_removeClearOtherTimer'](_0x2a94bc);const _0x5090a2=window['setTimeout'](()=>{const _0x517e90=_0xe8fd;this[_0x517e90(0x3e1)][_0x517e90(0x57d)](_0x322211=>{const _0x3a7115=_0x517e90;_0x322211[_0x3a7115(0x340)](_0x2a94bc);});},_0x32ff5d*0x2);this[_0x122c46(0x558)]['set'](_0x2a94bc,_0x5090a2);}[_0x5f56c6(0x3ef)](_0x334c67){const _0x54aa9b=_0x5f56c6;if(this[_0x54aa9b(0x558)][_0x54aa9b(0x55c)](_0x334c67)){const _0x7255ac=this[_0x54aa9b(0x558)][_0x54aa9b(0x44d)](_0x334c67);_0x7255ac&&window['clearTimeout'](_0x7255ac),this[_0x54aa9b(0x558)][_0x54aa9b(0x4f1)](_0x334c67,null);}}[_0x5f56c6(0x18d)](_0x9a1147){const {memberID:_0x13b82b,unitIDs:_0x591d61}=_0x9a1147;_0x591d61['forEach'](_0x1450a2=>{const _0x529fee=_0xe8fd;var _0x13610b;const _0x8e15fe=this[_0x529fee(0x3e1)][_0x529fee(0x44d)](_0x1450a2);_0x8e15fe&&(_0x8e15fe['delete'](_0x13b82b),(_0x13610b=this['_ensureSubject'](_0x1450a2))==null||_0x13610b[_0x529fee(0x17b)](_0x8e15fe[_0x529fee(0x4b5)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x13b82b);}['_handleHeartbeatEvent'](_0x17caf7){const _0x2ca0c3=_0x5f56c6;this[_0x2ca0c3(0x40c)](_0x17caf7[_0x2ca0c3(0x4d4)]);}[_0x5f56c6(0x526)](_0x1d3f38){const _0x4edc3b=_0x5f56c6;localStorage[_0x4edc3b(0x23a)](_0x41e7a3,JSON[_0x4edc3b(0x4a4)](_0x1d3f38));}['_scheduleHeartbeat'](){const _0x2b68d0=_0x5f56c6;this[_0x2b68d0(0x3e6)]=window[_0x2b68d0(0x19e)](()=>{const _0x2090f9=_0x2b68d0;this[_0x2090f9(0x526)]({'type':0x2,'memberID':this[_0x2090f9(0x1c7)]});},_0x32ff5d);}['_ensureSubject'](_0x39e0fd){const _0x49d17a=_0x5f56c6;return this[_0x49d17a(0x511)]['has'](_0x39e0fd)||this['_unitStatus'][_0x49d17a(0x4f1)](_0x39e0fd,new _0x17e48c[(_0x49d17a(0x38b))](0x0)),this['_unitStatus']['get'](_0x39e0fd);}}function _0x27f38b(_0x1b7cc2){const _0x167b54=_0x5f56c6;let _0x38bfad='';for(const _0x3149b9 of _0x1b7cc2){const {startOffset:_0x2962ed,endOffset:_0x35e85d,isActive:_0xe75576,rangeType:_0x26cb3e,segmentId:_0xd50c15,segmentPage:_0x4cd217}=_0x3149b9;_0x38bfad[_0x167b54(0x47d)]&&(_0x38bfad+=','),_0x38bfad+=_0x2962ed+':'+_0x35e85d+':'+(_0xe75576?'1':'0')+':'+_0x26cb3e+':'+_0xd50c15+':'+_0x4cd217;}return _0x38bfad;}function _0x5b1833(_0x56ad8d){const _0x1cd8b7=_0x5f56c6,_0xa18616=_0x56ad8d[_0x1cd8b7(0x28e)](','),_0x5a614e=[];for(const _0x597cb6 of _0xa18616){const [_0x29c310,_0x233493,_0x18a4f7,_0x412def,_0x5f478c,_0x37f492]=_0x597cb6[_0x1cd8b7(0x28e)](':');_0x5a614e[_0x1cd8b7(0x476)]({'startOffset':Number(_0x29c310),'endOffset':Number(_0x233493),'collapsed':_0x29c310===_0x233493,'isActive':_0x18a4f7==='1','rangeType':_0x412def===_0x29630e['DOC_RANGE_TYPE'][_0x1cd8b7(0x539)]?_0x29630e['DOC_RANGE_TYPE'][_0x1cd8b7(0x539)]:_0x29630e[_0x1cd8b7(0x58c)]['RECT'],'segmentId':typeof _0x5f478c=='string'?String(_0x5f478c):'','segmentPage':Number(_0x37f492!=null?_0x37f492:-0x1)});}return _0x5a614e[_0x1cd8b7(0x317)](_0x4f5ac0=>_0x4f5ac0[_0x1cd8b7(0x2dc)])||(_0x5a614e[0x0]['isActive']=!0x0),_0x5a614e;}class _0x4247e7 extends _0x29630e[_0x5f56c6(0x213)]{constructor(){const _0x508efb=_0x5f56c6;super(...arguments),_0x48f470(this,_0x508efb(0x52b),new _0x17e48c[(_0x508efb(0x38b))](null)),_0x48f470(this,_0x508efb(0x21e),this['_collabCursorState$'][_0x508efb(0x2ac)]());}['syncEditingCollabCursor'](_0x231d73){const _0x3a4b76=_0x5f56c6,{unitID:_0xffb094,memberID:_0x12183c,textRanges:_0x1a018c}=_0x231d73,_0x113d6e=_0x27f38b(_0x1a018c);if(_0x113d6e==='')return;const _0xe09704={'unitID':_0xffb094,'memberID':_0x12183c,'selection':_0x113d6e};this[_0x3a4b76(0x52b)][_0x3a4b76(0x17b)](_0xe09704);}}var _0x3192d3=Object['defineProperty'],_0x303937=Object[_0x5f56c6(0x47e)],_0x16852b=(_0x8d456f,_0x4f11a5,_0x520d63,_0xdfc916)=>{const _0x770f12=_0x5f56c6;for(var _0x2a88f5=_0xdfc916>0x1?void 0x0:_0xdfc916?_0x303937(_0x4f11a5,_0x520d63):_0x4f11a5,_0x484a64=_0x8d456f[_0x770f12(0x47d)]-0x1,_0x48c119;_0x484a64>=0x0;_0x484a64--)(_0x48c119=_0x8d456f[_0x484a64])&&(_0x2a88f5=(_0xdfc916?_0x48c119(_0x4f11a5,_0x520d63,_0x2a88f5):_0x48c119(_0x2a88f5))||_0x2a88f5);return _0xdfc916&&_0x2a88f5&&_0x3192d3(_0x4f11a5,_0x520d63,_0x2a88f5),_0x2a88f5;},_0xd83f36=(_0x4a989d,_0x584def)=>(_0xe1893c,_0x5e80ea)=>_0x584def(_0xe1893c,_0x5e80ea,_0x4a989d);let _0x1e6df8=class{constructor(_0x5cd2d2,_0x893127){const _0x34db82=_0x5f56c6;this['_injector']=_0x5cd2d2,this[_0x34db82(0x4ab)]=_0x893127;}[_0x5f56c6(0x250)](_0xfeb077){const _0x5283a9=_0x5f56c6;var _0x1b8a7b;const _0x78f630=this[_0x5283a9(0x3cf)][_0x5283a9(0x44d)](_0x31abfa['DocSelectionManagerService']),_0x47703d=(_0x1b8a7b=_0x78f630[_0x5283a9(0x4c6)]())!=null?_0x1b8a7b:[];if(_0x47703d[_0x5283a9(0x47d)]===0x0)return;const _0x594bae=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xfeb077['unitID'],'actions':null,'textRanges':_0x47703d}}],_0x520565=this[_0x5283a9(0x4ab)]['transformMutationsWithChangeset'](_0xfeb077,_0x594bae);if(!_0x2a6d3d[_0x5283a9(0x578)](_0x520565))throw _0x520565['error'];const _0x3ca2aa=_0x520565[_0x5283a9(0x3fc)][0x0][_0x5283a9(0x1ee)]['textRanges'];Array[_0x5283a9(0x400)](_0x3ca2aa)&&_0x3ca2aa[_0x5283a9(0x47d)]&&_0x78f630[_0x5283a9(0x1b7)](_0x3ca2aa,!0x1);}};_0x1e6df8=_0x16852b([_0xd83f36(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0xd83f36(0x1,_0x2a6d3d[_0x5f56c6(0x172)])],_0x1e6df8);const _0x280d70=new Set([_0x5decb0[_0x5f56c6(0x247)]['id']]);function _0x29b2fb(_0x7eef11,_0x51fa3a,_0x34ba6e,_0x36a16c,_0x537ace){const _0x28dfe5=_0x5f56c6;var _0x6160e7,_0x2ea4f7,_0x4fba4c,_0x434eaf;const _0x32917d=[];for(const _0x33aedd of _0x7eef11)if(_0x280d70['has'](_0x33aedd['id'])){if(_0x32917d['length']>0x0)break;_0x32917d[_0x28dfe5(0x476)](_0x33aedd);break;}else _0x32917d[_0x28dfe5(0x476)](_0x33aedd);const _0x557b58=(_0x2ea4f7=(_0x6160e7=_0x537ace['getCurrentUser']())==null?void 0x0:_0x6160e7[_0x28dfe5(0x18e)])!=null?_0x2ea4f7:_0x28dfe5(0x251),_0x1479e5=(_0x434eaf=(_0x4fba4c=_0x537ace['getCurrentUser']())==null?void 0x0:_0x4fba4c[_0x28dfe5(0x4d4)])!=null?_0x434eaf:'unknown';return{'changeset':{'unitID':_0x51fa3a,'type':_0x2a6d3d['mapDocumentTypeToUniverType'](_0x34ba6e[_0x28dfe5(0x193)](_0x51fa3a)),'baseRev':_0x36a16c['getCurrentRevOfUnit'](_0x51fa3a),'revision':0x0,'userID':_0x557b58,'memberID':_0x1479e5,'mutations':_0x32917d},'pendingMutations':_0x7eef11[_0x28dfe5(0x480)](_0x32917d[_0x28dfe5(0x47d)])};}function _0x3c99ad(_0xb89505,_0x21f506,_0x565158,_0xd99329,_0x310d91){const _0x348366=_0x5f56c6;var _0x30fef7,_0x4799e5,_0x410db2,_0x49dfae;const _0x5b15b9=[_0xb89505[_0x348366(0x2a4)]((_0x414cda,_0x3fc82c)=>{const _0x5bdf0f=_0x348366;var _0x13ca52;const {id:_0x43a67f}=_0x414cda,{id:_0x28a1d5,type:_0x3cb81e}=_0x3fc82c,_0x2b9ef9=(_0x13ca52=_0x414cda[_0x5bdf0f(0x1ee)])!=null?_0x13ca52:{'actions':null},_0x21d16d=_0x3fc82c[_0x5bdf0f(0x1ee)];if(_0x43a67f&&_0x43a67f!==_0x28a1d5)throw new Error(_0x5bdf0f(0x3b6)+_0x43a67f+_0x5bdf0f(0x1ca)+_0x28a1d5+'.');return{..._0x414cda,'id':_0x28a1d5,'type':_0x3cb81e,'params':{'unitId':_0x21d16d['unitId'],'textRanges':_0x21d16d[_0x5bdf0f(0x589)],'actions':_0x29630e['JSONX'][_0x5bdf0f(0x4d3)](_0x2b9ef9[_0x5bdf0f(0x4b2)],_0x21d16d[_0x5bdf0f(0x4b2)])}};},{})],_0x4dbdb9=(_0x4799e5=(_0x30fef7=_0x310d91['getCurrentUser']())==null?void 0x0:_0x30fef7[_0x348366(0x18e)])!=null?_0x4799e5:_0x348366(0x251),_0x1cd289=(_0x49dfae=(_0x410db2=_0x310d91[_0x348366(0x2c4)]())==null?void 0x0:_0x410db2[_0x348366(0x4d4)])!=null?_0x49dfae:_0x348366(0x251);return{'changeset':{'unitID':_0x21f506,'type':_0x2a6d3d[_0x348366(0x1a1)](_0x565158[_0x348366(0x193)](_0x21f506)),'baseRev':_0xd99329[_0x348366(0x174)](_0x21f506),'revision':0x0,'userID':_0x4dbdb9,'memberID':_0x1cd289,'mutations':_0x5b15b9},'pendingMutations':[]};}function _0xc9c824(_0x3d6356,_0x219519){const _0x2a3508=_0x5f56c6,_0x5390ee=new _0x17e48c[(_0x2a3508(0x362))](0x1);return setTimeout(()=>_0x5390ee[_0x2a3508(0x17b)](_0x219519),_0x3d6356),_0x5390ee[_0x2a3508(0x2ac)]()[_0x2a3508(0x300)](_0x17e48c[_0x2a3508(0x19a)](0x1));}const _0x1cb65b={'id':_0x5decb0[_0x5f56c6(0x1b5)]['id'],'type':_0x29630e['CommandType'][_0x5f56c6(0x25e)],'params':{}};var _0x9997f7=Object[_0x5f56c6(0x17a)],_0x261946=Object[_0x5f56c6(0x47e)],_0x2c2fb2=(_0x299323,_0xf027ad,_0x2f548f,_0x5a3bb1)=>{for(var _0x3b75a3=_0x5a3bb1>0x1?void 0x0:_0x5a3bb1?_0x261946(_0xf027ad,_0x2f548f):_0xf027ad,_0x323af6=_0x299323['length']-0x1,_0x36719d;_0x323af6>=0x0;_0x323af6--)(_0x36719d=_0x299323[_0x323af6])&&(_0x3b75a3=(_0x5a3bb1?_0x36719d(_0xf027ad,_0x2f548f,_0x3b75a3):_0x36719d(_0x3b75a3))||_0x3b75a3);return _0x5a3bb1&&_0x3b75a3&&_0x9997f7(_0xf027ad,_0x2f548f,_0x3b75a3),_0x3b75a3;},_0x5538dd=(_0x66be06,_0x215c25)=>(_0x5ce1f3,_0x5f3468)=>_0x215c25(_0x5ce1f3,_0x5f3468,_0x66be06),_0x4cac76=(_0x425c55=>(_0x425c55[_0x5f56c6(0x352)]='not_collab',_0x425c55[_0x5f56c6(0x2bd)]=_0x5f56c6(0x568),_0x425c55['PENDING']=_0x5f56c6(0x179),_0x425c55[_0x5f56c6(0x53f)]=_0x5f56c6(0x56c),_0x425c55['AWAITING_WITH_PENDING']=_0x5f56c6(0x4ed),_0x425c55[_0x5f56c6(0x1ae)]=_0x5f56c6(0x1d1),_0x425c55[_0x5f56c6(0x479)]=_0x5f56c6(0x3f5),_0x425c55[_0x5f56c6(0x385)]=_0x5f56c6(0x571),_0x425c55))(_0x4cac76||{});const _0x4d761d=0xea60;class _0x253515{constructor(_0x8de892,_0x58d6d4,_0x5357af,_0x3815b0,_0x26cc17,_0x3be569,_0x4f592f,_0x2d8018,_0x4d1a96){const _0x49e01d=_0x5f56c6;_0x48f470(this,_0x49e01d(0x3a1),null),_0x48f470(this,_0x49e01d(0x31a),[]),(this[_0x49e01d(0x586)]=_0x8de892,this['type']=_0x58d6d4,this[_0x49e01d(0x2a2)]=_0x26cc17,this[_0x49e01d(0x2a7)]=_0x3be569,this[_0x49e01d(0x19c)]=_0x4f592f,this[_0x49e01d(0x4e2)]=_0x2d8018,this['_localCacheService']=_0x4d1a96,this[_0x49e01d(0x3a1)]=_0x5357af,this[_0x49e01d(0x31a)]=_0x3815b0);}[_0x5f56c6(0x2da)](_0x2cf7d3){const _0x465f58=_0x5f56c6,_0x3113a9=this['_revisionService']['getCurrentRevOfUnit'](this[_0x465f58(0x586)]);return _0x2cf7d3['revision']>_0x3113a9+0x1?(this[_0x465f58(0x2a2)][_0x465f58(0x339)]({'from':_0x3113a9,'to':_0x2cf7d3['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4d5571){const _0x302259=_0x5f56c6;this[_0x302259(0x19c)][_0x302259(0x1c3)](this[_0x302259(0x586)],_0x4d5571);}[_0x5f56c6(0x3bc)](_0x4107eb){const _0x506a8b=_0x5f56c6;var _0x274612,_0x14e1e8;(_0x14e1e8=(_0x274612=this[_0x506a8b(0x2a2)])[_0x506a8b(0x3c7)])==null||_0x14e1e8['call'](_0x274612,_0x4107eb);}[_0x5f56c6(0x332)](_0x279607){const _0x2b936a=_0x5f56c6;var _0x49f8b9,_0x3c860d;return(_0x3c860d=(_0x49f8b9=this[_0x2b936a(0x2a2)])[_0x2b936a(0x279)])==null?void 0x0:_0x3c860d[_0x2b936a(0x424)](_0x49f8b9,_0x279607);}['_transformRemoteChangesetByIMECache'](_0x422ca3){const _0x1be070=_0x5f56c6;var _0x1c1f70,_0x7909ab,_0x16d1c4;return(_0x16d1c4=(_0x7909ab=(_0x1c1f70=this[_0x1be070(0x2a2)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x7909ab[_0x1be070(0x424)](_0x1c1f70,_0x422ca3))!=null?_0x16d1c4:_0x422ca3;}[_0x5f56c6(0x45a)](_0x5388ce){const _0x25165c=_0x5f56c6;var _0x283f27,_0x5f3118;if(this[_0x25165c(0x566)]===_0x48039f[_0x25165c(0x540)]){const {unitID:_0x4fbc94,mutations:_0x4ced71,memberID:_0x5171c5}=_0x5388ce,_0x3f8a34=_0x4ced71[0x0][_0x25165c(0x1ee)]['textRanges'];Array[_0x25165c(0x400)](_0x3f8a34)&&_0x3f8a34[_0x25165c(0x47d)]>0x0&&((_0x5f3118=(_0x283f27=this[_0x25165c(0x2a2)])['onSyncEditingCollabCursor'])==null||_0x5f3118[_0x25165c(0x424)](_0x283f27,{'unitID':_0x4fbc94,'memberID':_0x5171c5,'textRanges':_0x3f8a34}));}}[_0x5f56c6(0x430)](){const _0x4d4ecb=_0x5f56c6;this[_0x4d4ecb(0x206)]['updateOfflineData'](this[_0x4d4ecb(0x586)],this[_0x4d4ecb(0x566)],this[_0x4d4ecb(0x3a1)],this['_pendingMutations']);}[_0x5f56c6(0x4df)](){const _0x505b59=_0x5f56c6;return this[_0x505b59(0x4e2)][_0x505b59(0x174)](this[_0x505b59(0x586)]);}[_0x5f56c6(0x302)](){const _0x205366=_0x5f56c6;this[_0x205366(0x4e2)][_0x205366(0x222)](this[_0x205366(0x586)]);}['_executeRemoteChangeset'](_0x5e12d0){const _0x449a81=_0x5f56c6;var _0x2f1d93;const _0x4c1b9e=this['_transformRemoteChangesetByIMECache'](_0x5e12d0),_0x1f3e39=_0x29630e[_0x449a81(0x359)](_0x4c1b9e[_0x449a81(0x288)],this['_commandService'],{'fromCollab':!0x0});if(!_0x1f3e39['result'])throw _0x1f3e39[_0x449a81(0x1fe)]instanceof Error?_0x1f3e39[_0x449a81(0x1fe)]:new Error((_0x2f1d93=_0x1f3e39['error'])!=null?_0x2f1d93:_0x449a81(0x273));this[_0x449a81(0x332)](_0x4c1b9e),this[_0x449a81(0x4ea)](_0x5e12d0),this[_0x449a81(0x3bc)](_0x4c1b9e),this[_0x449a81(0x45a)](_0x4c1b9e),this[_0x449a81(0x302)]();}}let _0x5155d3=class extends _0x253515{constructor(_0xd2ec29,_0x242079,_0x42b9e0,_0x11e250,_0x300373,_0x3731bb,_0x46c74a,_0x948485,_0x3957a6,_0xb13d4a){const _0xeff5e5=_0x5f56c6;super(_0xd2ec29,_0x242079,null,[],_0x42b9e0,_0x948485,_0x46c74a,_0x11e250,_0x300373),_0x48f470(this,_0xeff5e5(0x4ce),_0xeff5e5(0x568)),(this[_0xeff5e5(0x3cf)]=_0x3731bb,this['_logService']=_0x3957a6,this[_0xeff5e5(0x4ab)]=_0xb13d4a);}[_0x5f56c6(0x1fa)](_0x28490f){const _0xcb9f11=_0x5f56c6,_0xa05699=this['_injector'][_0xcb9f11(0x445)](_0x3703c2,this[_0xcb9f11(0x586)],this[_0xcb9f11(0x566)],[_0x28490f],this['_handler']);return _0xa05699[_0xcb9f11(0x399)](),_0xa05699[_0xcb9f11(0x430)](),_0xa05699;}[_0x5f56c6(0x39b)](_0x3fbec5){const _0x136e6c=_0x5f56c6;if(this[_0x136e6c(0x2da)](_0x3fbec5))return this[_0x136e6c(0x3cf)][_0x136e6c(0x445)](_0x5699b0,this['unitID'],this['type'],null,[],null,[_0x3fbec5],this['_handler']);try{const _0x163d37=this[_0x136e6c(0x4ab)][_0x136e6c(0x4bd)](_0x3fbec5,[_0x1cb65b]);if(_0x2a6d3d[_0x136e6c(0x578)](_0x163d37)){const {c1Prime:_0x3d46c8}=_0x163d37;return this[_0x136e6c(0x1f5)](_0x3d46c8),this;}throw _0x163d37[_0x136e6c(0x1fe)];}catch(_0x5c24f0){return this[_0x136e6c(0x3ac)][_0x136e6c(0x1fe)](_0x5c24f0),this['_onConflict'](!0x1);}}['_onConflict'](_0x49a9c3){const _0x428db5=_0x5f56c6;return this['_injector']['createInstance'](_0x4d9b5e,this[_0x428db5(0x586)],this[_0x428db5(0x566)],null,[],this[_0x428db5(0x2a2)],_0x49a9c3);}[_0x5f56c6(0x53b)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x597891=_0x5f56c6;throw new Error(_0x597891(0x455));}[_0x5f56c6(0x46f)](){return this;}[_0x5f56c6(0x57f)](){const _0x5d628f=_0x5f56c6;return this[_0x5d628f(0x3cf)]['createInstance'](_0x5bba0f,this[_0x5d628f(0x586)],this[_0x5d628f(0x566)],null,[],this[_0x5d628f(0x2a2)]);}[_0x5f56c6(0x37a)](){return this;}[_0x5f56c6(0x4ec)](){const _0x9eaaba=_0x5f56c6;throw new Error(_0x9eaaba(0x454));}[_0x5f56c6(0x230)](){const _0xd022c4=_0x5f56c6,_0x353897=this[_0xd022c4(0x4e2)][_0xd022c4(0x174)](this['unitID']);return this[_0xd022c4(0x2a2)][_0xd022c4(0x339)]({'from':_0x353897,'to':0x0}),this['_injector'][_0xd022c4(0x445)](_0x5699b0,this[_0xd022c4(0x586)],this[_0xd022c4(0x566)],null,[],null,[],this['_handler']);}};_0x5155d3=_0x2c2fb2([_0x5538dd(0x3,_0x29630e['Inject'](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x5538dd(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x5538dd(0x5,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x3c6)])),_0x5538dd(0x6,_0x29630e[_0x5f56c6(0x394)]),_0x5538dd(0x7,_0x29630e[_0x5f56c6(0x1a4)]),_0x5538dd(0x8,_0x29630e[_0x5f56c6(0x478)]),_0x5538dd(0x9,_0x2a6d3d[_0x5f56c6(0x172)])],_0x5155d3);let _0x3703c2=class extends _0x253515{constructor(_0x2d4ac0,_0x1ea75d,_0x4ed7d1,_0x49e9d7,_0x2b1776,_0x504c50,_0x43555d,_0x5aee64,_0x55bacf,_0x417950,_0x16e3b0,_0x346248,_0x5363ff,_0x431ccf){const _0x59add1=_0x5f56c6;super(_0x2d4ac0,_0x1ea75d,null,_0x4ed7d1,_0x49e9d7,_0x417950,_0x431ccf,_0x504c50,_0x43555d),_0x48f470(this,_0x59add1(0x4ce),_0x59add1(0x179)),_0x48f470(this,_0x59add1(0x214),null),_0x48f470(this,'_sendingTimer',null),(this[_0x59add1(0x3cf)]=_0x2b1776,this[_0x59add1(0x521)]=_0x5aee64,this[_0x59add1(0x3ac)]=_0x55bacf,this['_configService']=_0x16e3b0,this['_transformService']=_0x346248,this['_univerInstanceService']=_0x5363ff);}[_0x5f56c6(0x1fa)](_0x598ee5){const _0x845492=_0x5f56c6;return this[_0x845492(0x31a)][_0x845492(0x476)](_0x598ee5),this[_0x845492(0x430)](),this;}[_0x5f56c6(0x39b)](_0x5145c7){const _0x178fdf=_0x5f56c6;if(this[_0x178fdf(0x2da)](_0x5145c7))return this['_clearScheduledTask'](),this[_0x178fdf(0x3cf)][_0x178fdf(0x445)](_0x5699b0,this[_0x178fdf(0x586)],this[_0x178fdf(0x566)],null,this[_0x178fdf(0x31a)],null,[_0x5145c7],this[_0x178fdf(0x2a2)]);try{const _0x23032b=this['_transformService'][_0x178fdf(0x4bd)](_0x5145c7,this['_pendingMutations']);if(_0x2a6d3d[_0x178fdf(0x578)](_0x23032b)){const {c1Prime:_0x122746,m2Prime:_0x4397f6}=_0x23032b;this['_executeRemoteChangeset'](_0x122746);const _0x32f6c6=this['_injector'][_0x178fdf(0x445)](_0x3703c2,this[_0x178fdf(0x586)],this[_0x178fdf(0x566)],_0x4397f6,this[_0x178fdf(0x2a2)]);return this['_clearScheduledTask'](),_0x32f6c6[_0x178fdf(0x399)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x178fdf(0x286)]()-this[_0x178fdf(0x214)]):this['_getSendChangesetTimeout']()),_0x32f6c6;}throw _0x23032b[_0x178fdf(0x1fe)];}catch(_0x20f0a0){return this['_logService'][_0x178fdf(0x1fe)](_0x20f0a0),this[_0x178fdf(0x1e6)](!0x1);}}[_0x5f56c6(0x53b)](){const _0x2fc1a7=_0x5f56c6;throw new Error(_0x2fc1a7(0x52e));}[_0x5f56c6(0x4fa)](){const _0x4b9fbe=_0x5f56c6;throw new Error(_0x4b9fbe(0x1d7));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x8092bc=_0x5f56c6;return this[_0x8092bc(0x44e)](),this['_injector']['createInstance'](_0x5bba0f,this[_0x8092bc(0x586)],this[_0x8092bc(0x566)],null,this[_0x8092bc(0x31a)],this[_0x8092bc(0x2a2)]);}[_0x5f56c6(0x37a)](){return this;}[_0x5f56c6(0x399)](_0x4a318a){const _0x5a7194=_0x5f56c6,_0x3197a1=_0x4a318a!=null?_0x4a318a:this[_0x5a7194(0x51e)]();this['_scheduleTimestamp']=new Date()[_0x5a7194(0x286)](),this[_0x5a7194(0x3e7)]=window[_0x5a7194(0x262)](()=>{const _0xf2cd93=_0x5a7194;this[_0xf2cd93(0x44e)]();let _0x1ccab7=null;switch(this[_0xf2cd93(0x566)]){case _0x48039f['UNIVER_SHEET']:{_0x1ccab7=_0x29b2fb(this[_0xf2cd93(0x31a)],this['unitID'],this[_0xf2cd93(0x434)],this[_0xf2cd93(0x4e2)],this[_0xf2cd93(0x521)]);break;}case _0x48039f[_0xf2cd93(0x540)]:{this[_0xf2cd93(0x31a)]['every'](_0x4f068a=>_0x4f068a['id']===_0x31abfa['RichTextEditingMutation']['id'])?_0x1ccab7=_0x3c99ad(this[_0xf2cd93(0x31a)],this[_0xf2cd93(0x586)],this[_0xf2cd93(0x434)],this[_0xf2cd93(0x4e2)],this['_memberService']):_0x1ccab7=_0x29b2fb(this[_0xf2cd93(0x31a)],this[_0xf2cd93(0x586)],this[_0xf2cd93(0x434)],this[_0xf2cd93(0x4e2)],this['_memberService']);break;}default:throw new Error(_0xf2cd93(0x58e)+this[_0xf2cd93(0x566)]+_0xf2cd93(0x4a5));}const {changeset:_0x39e150,pendingMutations:_0x4996ed}=_0x1ccab7;this['_handler']['onSendChangeset'](_0x39e150);const _0x270ed8=_0x4996ed[_0xf2cd93(0x47d)]?this[_0xf2cd93(0x3cf)][_0xf2cd93(0x445)](_0x4dc360,this[_0xf2cd93(0x586)],this[_0xf2cd93(0x566)],_0x39e150,_0x4996ed,this[_0xf2cd93(0x2a2)],void 0x0):this['_injector'][_0xf2cd93(0x445)](_0x2edaec,this[_0xf2cd93(0x586)],this[_0xf2cd93(0x566)],_0x39e150,this[_0xf2cd93(0x2a2)]);_0x270ed8['_updateLocalCache'](),this[_0xf2cd93(0x2a2)][_0xf2cd93(0x220)](this,_0x270ed8);},_0x3197a1);}[_0x5f56c6(0x51e)](){const _0x213a12=_0x5f56c6;var _0x4a4fd9;const _0x394c9b=this[_0x213a12(0x4e8)][_0x213a12(0x1e0)](_0x1573c4);return(_0x4a4fd9=_0x394c9b==null?void 0x0:_0x394c9b[_0x213a12(0x33a)])!=null?_0x4a4fd9:0x7d0;}[_0x5f56c6(0x4ec)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x33fce6=_0x5f56c6;this[_0x33fce6(0x3e7)]!=null&&(clearTimeout(this[_0x33fce6(0x3e7)]),this['_sendingTimer']=null);}['_onConflict'](_0x4f1be7){const _0x288eff=_0x5f56c6;return this[_0x288eff(0x44e)](),this['_injector'][_0x288eff(0x445)](_0x4d9b5e,this[_0x288eff(0x586)],this[_0x288eff(0x566)],null,this[_0x288eff(0x31a)],this[_0x288eff(0x2a2)],_0x4f1be7);}};_0x3703c2=_0x2c2fb2([_0x5538dd(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x5538dd(0x5,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d['RevisionService'])),_0x5538dd(0x6,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf['LocalCacheService'])),_0x5538dd(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf['MemberService'])),_0x5538dd(0x8,_0x29630e[_0x5f56c6(0x478)]),_0x5538dd(0x9,_0x29630e[_0x5f56c6(0x1a4)]),_0x5538dd(0xa,_0x29630e[_0x5f56c6(0x34d)]),_0x5538dd(0xb,_0x2a6d3d[_0x5f56c6(0x172)]),_0x5538dd(0xc,_0x29630e[_0x5f56c6(0x441)]),_0x5538dd(0xd,_0x29630e['IUndoRedoService'])],_0x3703c2);let _0x2edaec=class extends _0x253515{constructor(_0x3a11f6,_0x17edcd,_0x196de6,_0x32ef8,_0x1e02ac,_0xb9fe93,_0x200cb3,_0x5208a6,_0x319223,_0x46250c,_0x1c3b9a){const _0x5ebc43=_0x5f56c6;super(_0x3a11f6,_0x17edcd,_0x196de6,[],_0x32ef8,_0x5208a6,_0x1c3b9a,_0xb9fe93,_0x200cb3),_0x48f470(this,_0x5ebc43(0x4ce),_0x5ebc43(0x56c)),_0x48f470(this,_0x5ebc43(0x4a3),0x0),_0x48f470(this,_0x5ebc43(0x459)),_0x48f470(this,_0x5ebc43(0x524)),(this[_0x5ebc43(0x3cf)]=_0x1e02ac,this[_0x5ebc43(0x3ac)]=_0x319223,this[_0x5ebc43(0x4ab)]=_0x46250c);}[_0x5f56c6(0x1fa)](_0x143927){const _0x24ca42=_0x5f56c6;this[_0x24ca42(0x44e)]();const _0x158e7b=this[_0x24ca42(0x3cf)][_0x24ca42(0x445)](_0x4dc360,this['unitID'],this[_0x24ca42(0x566)],this[_0x24ca42(0x3a1)],[_0x143927],this['_handler'],this[_0x24ca42(0x459)]);return _0x158e7b[_0x24ca42(0x430)](),_0x158e7b;}['onRemoteChangeset'](_0x3b997c){const _0x51aa75=_0x5f56c6;if(this[_0x51aa75(0x2da)](_0x3b997c))return this[_0x51aa75(0x44e)](),this[_0x51aa75(0x3cf)][_0x51aa75(0x445)](_0x5699b0,this['unitID'],this[_0x51aa75(0x566)],this[_0x51aa75(0x3a1)],[],null,[_0x3b997c],this[_0x51aa75(0x2a2)]);try{const _0x54300f=this[_0x51aa75(0x4ab)]['transformChangesets']([_0x3b997c],[this[_0x51aa75(0x3a1)]],!0x1);if(_0x2a6d3d[_0x51aa75(0x2ad)](_0x54300f)){const {c1Prime:_0x22a385,c2Prime:_0x394e37}=_0x54300f;this[_0x51aa75(0x1f5)](_0x22a385[0x0]),_0x394e37[0x0][_0x51aa75(0x3de)]=this[_0x51aa75(0x4df)](),this[_0x51aa75(0x44e)]();const _0x36595b=this[_0x51aa75(0x3cf)]['createInstance'](_0x2edaec,this['unitID'],this[_0x51aa75(0x566)],_0x394e37[0x0],this[_0x51aa75(0x2a2)]);return _0x36595b[_0x51aa75(0x430)](),_0x36595b;}return this['_onConflict'](!0x1);}catch(_0x3946ba){return this['_logService']['error'](_0x3946ba),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x3f4fd5){const _0x19b29d=_0x5f56c6;this[_0x19b29d(0x44e)]();const _0x29915c=this[_0x19b29d(0x4e2)][_0x19b29d(0x174)](this[_0x19b29d(0x586)]);if(_0x3f4fd5[_0x19b29d(0x27a)]<_0x29915c-0x1)return this;if(this[_0x19b29d(0x2da)](_0x3f4fd5))return this['_injector'][_0x19b29d(0x445)](_0x5699b0,this[_0x19b29d(0x586)],this[_0x19b29d(0x566)],null,[],this[_0x19b29d(0x3a1)],[],this[_0x19b29d(0x2a2)]);this['_incrementRevisionNumber']();const _0x560508=this[_0x19b29d(0x3cf)][_0x19b29d(0x445)](_0x5155d3,this[_0x19b29d(0x586)],this[_0x19b29d(0x566)],this[_0x19b29d(0x2a2)]);return _0x560508['_updateLocalCache'](),_0x560508;}[_0x5f56c6(0x4fa)](_0x3f3083){return this['_onConflict'](!!(_0x3f3083!=null&&_0x3f3083['isPermissionRej']));}[_0x5f56c6(0x46f)](_0x17fa3f){const _0x4a047d=_0x5f56c6;return this[_0x4a047d(0x4a3)]>_0x4d761d?this[_0x4a047d(0x57f)]():(this[_0x4a047d(0x459)]=_0xc9c824(this['_resendTimeout'],{'timeout':this[_0x4a047d(0x4a3)],'reqId':_0x17fa3f['reqId']}),this['_sender']=this[_0x4a047d(0x459)][_0x4a047d(0x18a)](({reqId:_0x289c2a,timeout:_0x445b87})=>{this['_resendWithTimeout'](_0x289c2a,_0x445b87);}),this);}['toggleOffline'](){const _0x4240c4=_0x5f56c6;return this[_0x4240c4(0x44e)](),this[_0x4240c4(0x3cf)]['createInstance'](_0x5bba0f,this[_0x4240c4(0x586)],this['type'],this['_awaitingChangeset'],[],this['_handler']);}[_0x5f56c6(0x37a)](){return this;}[_0x5f56c6(0x4ec)](){const _0x2d0692=_0x5f56c6;this[_0x2d0692(0x2a2)][_0x2d0692(0x1cf)](this[_0x2d0692(0x3a1)]);}[_0x5f56c6(0x1e6)](_0x51f5e2){const _0x151956=_0x5f56c6;return this['_clearScheduledTask'](),this['_injector'][_0x151956(0x445)](_0x4d9b5e,this[_0x151956(0x586)],this[_0x151956(0x566)],this['_awaitingChangeset'],[],this[_0x151956(0x2a2)],_0x51f5e2);}[_0x5f56c6(0x408)](_0xbd8fff,_0x35bef6){const _0x2b49a2=_0x5f56c6;var _0x1a6248;_0xbd8fff===((_0x1a6248=this['_awaitingChangeset'])==null?void 0x0:_0x1a6248[_0x2b49a2(0x277)])&&(this[_0x2b49a2(0x4ec)](),this['_resendTimeout']=_0x35bef6===0x0?0x3e8:_0x35bef6*0x2);}[_0x5f56c6(0x44e)](){const _0x40e292=_0x5f56c6;var _0x2f8d39;(_0x2f8d39=this[_0x40e292(0x524)])==null||_0x2f8d39[_0x40e292(0x349)](),this['_resendTimeout']=0x0;}};_0x2edaec=_0x2c2fb2([_0x5538dd(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e['Injector'])),_0x5538dd(0x5,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x5538dd(0x6,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x5538dd(0x7,_0x29630e[_0x5f56c6(0x1a4)]),_0x5538dd(0x8,_0x29630e[_0x5f56c6(0x478)]),_0x5538dd(0x9,_0x2a6d3d[_0x5f56c6(0x172)]),_0x5538dd(0xa,_0x29630e[_0x5f56c6(0x394)])],_0x2edaec);let _0x4dc360=class extends _0x253515{constructor(_0x29d41b,_0x2ab075,_0x60f87c,_0x19b6d4,_0x15903c,_0x3e4a41,_0x233fbc,_0x323734,_0x1b154d,_0x4f6f9e,_0x4b4c96,_0x5e9f6d,_0x166b5a){const _0x4b434f=_0x5f56c6;super(_0x29d41b,_0x2ab075,_0x60f87c,_0x19b6d4,_0x15903c,_0x4f6f9e,_0x166b5a,_0x323734,_0x1b154d),_0x48f470(this,_0x4b434f(0x4ce),'awaiting_with_pending'),_0x48f470(this,_0x4b434f(0x4a3),0x0),_0x48f470(this,_0x4b434f(0x459)),_0x48f470(this,'_sender'),(this[_0x4b434f(0x3cf)]=_0x233fbc,this[_0x4b434f(0x3ac)]=_0x4b4c96,this[_0x4b434f(0x4ab)]=_0x5e9f6d,_0x3e4a41&&(this[_0x4b434f(0x459)]=_0x3e4a41,this['_sender']=this[_0x4b434f(0x459)][_0x4b434f(0x18a)](({reqId:_0x51bbd3,timeout:_0x321dc1})=>{this['_resendWithTimeout'](_0x51bbd3,_0x321dc1);})));}[_0x5f56c6(0x1fa)](_0x4763eb){return this['_pendingMutations']['push'](_0x4763eb),this;}[_0x5f56c6(0x39b)](_0x17c3f2){const _0xf1b4ec=_0x5f56c6;if(this[_0xf1b4ec(0x2da)](_0x17c3f2))return this[_0xf1b4ec(0x44e)](),this[_0xf1b4ec(0x3cf)][_0xf1b4ec(0x445)](_0x5699b0,this[_0xf1b4ec(0x586)],this[_0xf1b4ec(0x566)],this[_0xf1b4ec(0x3a1)],this[_0xf1b4ec(0x31a)],null,[_0x17c3f2],this[_0xf1b4ec(0x2a2)]);try{const _0x2fb28f=this[_0xf1b4ec(0x4ab)][_0xf1b4ec(0x31f)]([_0x17c3f2],[this[_0xf1b4ec(0x3a1)]],!0x1);if(_0x2a6d3d['isTransformChangesetsSuccess'](_0x2fb28f)){const {c1Prime:_0x179b0e,c2Prime:_0xdd1f56}=_0x2fb28f,_0x588b91=this[_0xf1b4ec(0x4ab)]['transformMutationsWithChangeset'](_0x179b0e[0x0],this['_pendingMutations']);if(_0x2a6d3d[_0xf1b4ec(0x578)](_0x588b91)){const {c1Prime:_0x5de29f,m2Prime:_0x1fed79}=_0x588b91;return this[_0xf1b4ec(0x1f5)](_0x5de29f),_0xdd1f56[0x0][_0xf1b4ec(0x3de)]=this[_0xf1b4ec(0x4df)](),this[_0xf1b4ec(0x44e)](),this['_injector']['createInstance'](_0x4dc360,this[_0xf1b4ec(0x586)],this[_0xf1b4ec(0x566)],_0xdd1f56[0x0],_0x1fed79,this['_handler'],void 0x0);}throw _0x588b91[_0xf1b4ec(0x1fe)];}throw _0x2fb28f[_0xf1b4ec(0x1fe)];}catch(_0x1d3257){return this[_0xf1b4ec(0x3ac)][_0xf1b4ec(0x1fe)](_0x1d3257),this['_onConflict'](!0x1);}}[_0x5f56c6(0x53b)](_0x2f803d){const _0x1b196d=_0x5f56c6;if(this[_0x1b196d(0x44e)](),this['_checkMissing'](_0x2f803d))return this[_0x1b196d(0x3cf)][_0x1b196d(0x445)](_0x5699b0,this[_0x1b196d(0x586)],this[_0x1b196d(0x566)],null,this['_pendingMutations'],this[_0x1b196d(0x3a1)],[],this['_handler']);this[_0x1b196d(0x302)]();const _0x267d64=this[_0x1b196d(0x3cf)][_0x1b196d(0x445)](_0x3703c2,this[_0x1b196d(0x586)],this[_0x1b196d(0x566)],this[_0x1b196d(0x31a)],this['_handler']);return _0x267d64['_schedule'](),_0x267d64[_0x1b196d(0x430)](),_0x267d64;}[_0x5f56c6(0x4fa)](_0x4c000e){const _0x54cdda=_0x5f56c6;return this[_0x54cdda(0x1e6)](!!(_0x4c000e!=null&&_0x4c000e[_0x54cdda(0x39d)]));}[_0x5f56c6(0x46f)](_0x26867f){const _0x52ca54=_0x5f56c6;return this[_0x52ca54(0x4a3)]>_0x4d761d?this[_0x52ca54(0x57f)]():(this['_resendTimer']=_0xc9c824(this[_0x52ca54(0x4a3)],{'timeout':this[_0x52ca54(0x4a3)],'reqId':_0x26867f[_0x52ca54(0x277)]}),this[_0x52ca54(0x524)]=this['_resendTimer']['subscribe'](({reqId:_0x118104,timeout:_0x316c19})=>{const _0xc24362=_0x52ca54;this[_0xc24362(0x408)](_0x118104,_0x316c19);}),this);}[_0x5f56c6(0x57f)](){const _0xb7dff3=_0x5f56c6;return this[_0xb7dff3(0x44e)](),this[_0xb7dff3(0x3cf)][_0xb7dff3(0x445)](_0x5bba0f,this[_0xb7dff3(0x586)],this[_0xb7dff3(0x566)],this[_0xb7dff3(0x3a1)],this['_pendingMutations'],this[_0xb7dff3(0x2a2)]);}[_0x5f56c6(0x37a)](){return this;}[_0x5f56c6(0x4ec)](){const _0x1093cb=_0x5f56c6;this[_0x1093cb(0x2a2)][_0x1093cb(0x1cf)](this[_0x1093cb(0x3a1)]);}[_0x5f56c6(0x1e6)](_0xdac855){const _0x2885a8=_0x5f56c6;return this[_0x2885a8(0x44e)](),this[_0x2885a8(0x3cf)][_0x2885a8(0x445)](_0x4d9b5e,this['unitID'],this[_0x2885a8(0x566)],null,this[_0x2885a8(0x31a)],this[_0x2885a8(0x2a2)],_0xdac855);}[_0x5f56c6(0x408)](_0x5b1f50,_0x45c024){const _0x3b07f3=_0x5f56c6;var _0x3bff6d;_0x5b1f50===((_0x3bff6d=this['_awaitingChangeset'])==null?void 0x0:_0x3bff6d[_0x3b07f3(0x277)])&&(this[_0x3b07f3(0x4ec)](),this[_0x3b07f3(0x4a3)]=_0x45c024===0x0?0x3e8:_0x45c024*0x2);}[_0x5f56c6(0x44e)](){const _0x15f7d6=_0x5f56c6;var _0x3f2fb6;(_0x3f2fb6=this[_0x15f7d6(0x524)])==null||_0x3f2fb6[_0x15f7d6(0x349)](),this[_0x15f7d6(0x4a3)]=0x0;}};_0x4dc360=_0x2c2fb2([_0x5538dd(0x6,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x3c6)])),_0x5538dd(0x7,_0x29630e['Inject'](_0x2a6d3d['RevisionService'])),_0x5538dd(0x8,_0x29630e['Inject'](_0x4fdbaf['LocalCacheService'])),_0x5538dd(0x9,_0x29630e[_0x5f56c6(0x1a4)]),_0x5538dd(0xa,_0x29630e[_0x5f56c6(0x478)]),_0x5538dd(0xb,_0x2a6d3d[_0x5f56c6(0x172)]),_0x5538dd(0xc,_0x29630e[_0x5f56c6(0x394)])],_0x4dc360);let _0x4d9b5e=class extends _0x253515{constructor(_0x3bff07,_0x2e7ac0,_0x3f4cc8,_0x416185,_0x4c02ac,_0x3b75c=!0x1,_0x4b8bbf,_0x1be76f,_0x473c59,_0x17cb08,_0x5dd079,_0x2086f4,_0x33a793){const _0x2ab5b4=_0x5f56c6;super(_0x3bff07,_0x2e7ac0,_0x3f4cc8,_0x416185,_0x4c02ac,_0x1be76f,_0x473c59,_0x5dd079,_0x17cb08),_0x48f470(this,_0x2ab5b4(0x4ce),_0x2ab5b4(0x3f5)),(this[_0x2ab5b4(0x542)]=_0x3b75c,this[_0x2ab5b4(0x495)]=_0x4b8bbf,this[_0x2ab5b4(0x375)]=_0x2086f4,this[_0x2ab5b4(0x261)]=_0x33a793,this[_0x2ab5b4(0x4de)](),this[_0x2ab5b4(0x4bb)](),this[_0x2ab5b4(0x3ec)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x5f56c6(0x53b)](){return this;}[_0x5f56c6(0x4fa)](){return this;}[_0x5f56c6(0x46f)](){return this;}[_0x5f56c6(0x57f)](){return this;}[_0x5f56c6(0x37a)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x57ce22=_0x5f56c6;this['_localCacheService'][_0x57ce22(0x242)](this[_0x57ce22(0x586)],this[_0x57ce22(0x566)],null,[]);}[_0x5f56c6(0x4de)](){const _0x412712=_0x5f56c6;this['_isPermissionRej']?this[_0x412712(0x261)][_0x412712(0x2e8)]({'title':this[_0x412712(0x375)]['t'](_0x412712(0x28d)),'content':this['_localeService']['t']('permission.content'),'type':_0x412712(0x1fe),'duration':0x0}):this[_0x412712(0x261)][_0x412712(0x2e8)]({'title':this[_0x412712(0x375)]['t'](_0x412712(0x1cb)),'content':this[_0x412712(0x375)]['t'](_0x412712(0x24b)),'type':_0x412712(0x1fe),'duration':0x0});}[_0x5f56c6(0x3ec)](){const _0xdc2f6f=_0x5f56c6;this['_permissionService'][_0xdc2f6f(0x48a)](new _0x5decb0[(_0xdc2f6f(0x43a))](this[_0xdc2f6f(0x586)])['id'],!0x1);}};_0x4d9b5e=_0x2c2fb2([_0x5538dd(0x6,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x1b0)])),_0x5538dd(0x7,_0x29630e['ICommandService']),_0x5538dd(0x8,_0x29630e['IUndoRedoService']),_0x5538dd(0x9,_0x29630e['Inject'](_0x4fdbaf['LocalCacheService'])),_0x5538dd(0xa,_0x29630e['Inject'](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x5538dd(0xb,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)])),_0x5538dd(0xc,_0x279664[_0x5f56c6(0x562)])],_0x4d9b5e);let _0x5bba0f=class extends _0x253515{constructor(_0x48a61d,_0x5275d8,_0x3cd2cd,_0x5c3783,_0x4fcfa9,_0x4fffd8,_0x22ab2f,_0x12e06e,_0x1a3f5a,_0x103154){const _0x141df5=_0x5f56c6;super(_0x48a61d,_0x5275d8,_0x3cd2cd,_0x5c3783,_0x4fcfa9,_0x1a3f5a,_0x103154,_0x22ab2f,_0x12e06e),_0x48f470(this,_0x141df5(0x4ce),_0x141df5(0x571)),this[_0x141df5(0x3cf)]=_0x4fffd8;}[_0x5f56c6(0x1fa)](_0x3d2072){const _0x4c93b1=_0x5f56c6;return this[_0x4c93b1(0x31a)][_0x4c93b1(0x476)](_0x3d2072),this[_0x4c93b1(0x430)](),this;}[_0x5f56c6(0x39b)](_0x5ef849){const _0x48585e=_0x5f56c6;throw new Error(_0x48585e(0x2a9));}[_0x5f56c6(0x53b)](){const _0x484b67=_0x5f56c6;throw new Error(_0x484b67(0x420));}[_0x5f56c6(0x4fa)](){const _0x5e75dc=_0x5f56c6;throw new Error(_0x5e75dc(0x21d));}['onRemoteRetry'](){return this;}[_0x5f56c6(0x57f)](){return this;}[_0x5f56c6(0x37a)](){const {_injector:_0x137d26,_pendingMutations:_0x23e9e6,_awaitingChangeset:_0x1ef730,unitID:_0x3c75c7,_handler:_0x2ef714,type:_0x12f933}=this,_0x4f4a51=_0x427588(_0x137d26,_0x3c75c7,_0x12f933,_0x1ef730,_0x23e9e6,_0x2ef714);return _0x4f4a51 instanceof _0x3703c2?_0x4f4a51['_schedule']():(_0x4f4a51 instanceof _0x4dc360||_0x4f4a51 instanceof _0x2edaec)&&_0x4f4a51['resend'](),_0x4f4a51;}['resend'](){const _0x5507dd=_0x5f56c6;throw new Error(_0x5507dd(0x51d));}};_0x5bba0f=_0x2c2fb2([_0x5538dd(0x5,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x3c6)])),_0x5538dd(0x6,_0x29630e['Inject'](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x5538dd(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x5538dd(0x8,_0x29630e[_0x5f56c6(0x1a4)]),_0x5538dd(0x9,_0x29630e[_0x5f56c6(0x394)])],_0x5bba0f);let _0x5699b0=class extends _0x253515{constructor(_0x59a99c,_0x166f45,_0x9d5683,_0x417d3d,_0x13a840,_0x4b0d6d,_0x383ef9,_0x773c68,_0x54a08e,_0x492509,_0x2fe4c2,_0x22ba5c,_0x4e93f9,_0x4070f2){const _0xefb480=_0x5f56c6;super(_0x59a99c,_0x166f45,_0x9d5683,_0x417d3d,_0x383ef9,_0x22ba5c,_0x4e93f9,_0x54a08e,_0x492509),_0x48f470(this,_0xefb480(0x4ce),_0xefb480(0x1d1)),(this[_0xefb480(0x1b4)]=_0x13a840,this[_0xefb480(0x504)]=_0x4b0d6d,this[_0xefb480(0x3cf)]=_0x773c68,this['_logService']=_0x2fe4c2,this[_0xefb480(0x4ab)]=_0x4070f2);}[_0x5f56c6(0x26f)](_0x581b23){const _0x3f0b7d=_0x5f56c6;try{const _0x2e153e=[..._0x581b23,...this[_0x3f0b7d(0x504)]],_0x4856b7=[this['_awaitingChangeset']||this[_0x3f0b7d(0x1b4)]][_0x3f0b7d(0x324)](_0x22f906=>!!_0x22f906);let _0x57146d,_0x45f944;if(_0x4856b7[_0x3f0b7d(0x47d)]){const _0x1fe05a=this['_transformService']['transformChangesets'](_0x2e153e,_0x4856b7,!0x1);if(!_0x2a6d3d[_0x3f0b7d(0x2ad)](_0x1fe05a))throw _0x1fe05a[_0x3f0b7d(0x1fe)];_0x57146d=_0x1fe05a[_0x3f0b7d(0x33c)],_0x45f944=_0x1fe05a[_0x3f0b7d(0x2f6)];}else _0x57146d=_0x2e153e,_0x45f944=[];let _0x2fe7be=this[_0x3f0b7d(0x31a)];_0x57146d[_0x3f0b7d(0x57d)](_0x4fb6ff=>{const _0x5b5934=_0x3f0b7d;let _0x309dbf;if(_0x2fe7be[_0x5b5934(0x47d)]){const _0x58091a=this[_0x5b5934(0x4ab)]['transformMutationsWithChangeset'](_0x4fb6ff,_0x2fe7be);if(!_0x2a6d3d[_0x5b5934(0x578)](_0x58091a))throw _0x58091a[_0x5b5934(0x1fe)];_0x309dbf=_0x58091a[_0x5b5934(0x33c)],_0x2fe7be=_0x58091a[_0x5b5934(0x3fc)];}else _0x309dbf=_0x4fb6ff;this['_executeRemoteChangeset'](_0x309dbf);}),this[_0x3f0b7d(0x1b4)]&&this[_0x3f0b7d(0x302)](),this['_awaitingChangeset']&&_0x45f944[_0x3f0b7d(0x47d)]&&(_0x45f944[0x0][_0x3f0b7d(0x3de)]=this[_0x3f0b7d(0x4df)]());let _0x5a05bf;if(this[_0x3f0b7d(0x3a1)]&&_0x2fe7be[_0x3f0b7d(0x47d)]!==0x0)_0x5a05bf=this[_0x3f0b7d(0x3cf)][_0x3f0b7d(0x445)](_0x4dc360,this[_0x3f0b7d(0x586)],this['type'],_0x45f944[0x0],_0x2fe7be,this[_0x3f0b7d(0x2a2)],void 0x0);else{if(this[_0x3f0b7d(0x3a1)]&&_0x2fe7be[_0x3f0b7d(0x47d)]===0x0)_0x45f944[0x0][_0x3f0b7d(0x3de)]=this[_0x3f0b7d(0x4df)](),_0x5a05bf=this[_0x3f0b7d(0x3cf)]['createInstance'](_0x2edaec,this[_0x3f0b7d(0x586)],this['type'],_0x45f944[0x0],this[_0x3f0b7d(0x2a2)]);else{if(_0x2fe7be['length']!==0x0){const _0x510268=this[_0x3f0b7d(0x3cf)][_0x3f0b7d(0x445)](_0x3703c2,this[_0x3f0b7d(0x586)],this['type'],_0x2fe7be,this[_0x3f0b7d(0x2a2)]);_0x510268[_0x3f0b7d(0x399)](),_0x5a05bf=_0x510268;}else _0x5a05bf=this[_0x3f0b7d(0x3cf)]['createInstance'](_0x5155d3,this[_0x3f0b7d(0x586)],this[_0x3f0b7d(0x566)],this[_0x3f0b7d(0x2a2)]);}}return _0x5a05bf['_updateLocalCache'](),_0x5a05bf;}catch(_0x3151fa){return this[_0x3f0b7d(0x3ac)][_0x3f0b7d(0x1fe)](_0x3f0b7d(0x30a),_0x3f0b7d(0x53e),_0x3151fa),this[_0x3f0b7d(0x3cf)]['createInstance'](_0x4d9b5e,this[_0x3f0b7d(0x586)],this[_0x3f0b7d(0x566)],this['_awaitingChangeset'],this[_0x3f0b7d(0x31a)],this['_handler'],!0x1);}}[_0x5f56c6(0x4ec)](){const _0x28b838=_0x5f56c6;throw new Error(_0x28b838(0x1f3));}[_0x5f56c6(0x1fa)](_0x213bc5){const _0x4c409a=_0x5f56c6;return this[_0x4c409a(0x31a)][_0x4c409a(0x476)](_0x213bc5),this;}[_0x5f56c6(0x39b)](_0x27f6ce){const _0x54b967=_0x5f56c6;return this[_0x54b967(0x504)]['push'](_0x27f6ce),this;}[_0x5f56c6(0x53b)](_0xa27f25){const _0x6c2d87=_0x5f56c6;if(this[_0x6c2d87(0x3a1)])return this[_0x6c2d87(0x1b4)]=this[_0x6c2d87(0x3a1)],this['_awaitingChangeset']=null,this;throw new Error(_0x6c2d87(0x346));}[_0x5f56c6(0x4fa)](_0x4074c3){const _0x6624b7=_0x5f56c6;return this[_0x6624b7(0x1e6)](!!(_0x4074c3!=null&&_0x4074c3[_0x6624b7(0x39d)]));}[_0x5f56c6(0x46f)](){return this;}[_0x5f56c6(0x57f)](){const _0x8392be=_0x5f56c6;return this[_0x8392be(0x3cf)][_0x8392be(0x445)](_0x5bba0f,this['unitID'],this[_0x8392be(0x566)],this[_0x8392be(0x3a1)],this['_pendingMutations'],this[_0x8392be(0x2a2)]);}[_0x5f56c6(0x37a)](){return this;}[_0x5f56c6(0x1e6)](_0xf9c0ca){const _0x52e0c7=_0x5f56c6;return this[_0x52e0c7(0x3cf)][_0x52e0c7(0x445)](_0x4d9b5e,this[_0x52e0c7(0x586)],this['type'],this['_awaitingChangeset'],this[_0x52e0c7(0x31a)],this[_0x52e0c7(0x2a2)],_0xf9c0ca);}};_0x5699b0=_0x2c2fb2([_0x5538dd(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x5538dd(0x8,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x5538dd(0x9,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x5538dd(0xa,_0x29630e[_0x5f56c6(0x478)]),_0x5538dd(0xb,_0x29630e['ICommandService']),_0x5538dd(0xc,_0x29630e['IUndoRedoService']),_0x5538dd(0xd,_0x2a6d3d['ITransformService'])],_0x5699b0);function _0x427588(_0x279752,_0x3c8a01,_0x57200a,_0x17a37e,_0x406312,_0x43c5e0){const _0xc70cd8=_0x5f56c6;return _0x17a37e&&_0x406312[_0xc70cd8(0x47d)]?_0x279752[_0xc70cd8(0x445)](_0x4dc360,_0x3c8a01,_0x57200a,_0x17a37e,_0x406312,_0x43c5e0,void 0x0):_0x17a37e?_0x279752[_0xc70cd8(0x445)](_0x2edaec,_0x3c8a01,_0x57200a,_0x17a37e,_0x43c5e0):_0x406312[_0xc70cd8(0x47d)]?_0x279752[_0xc70cd8(0x445)](_0x3703c2,_0x3c8a01,_0x57200a,_0x406312,_0x43c5e0):_0x279752[_0xc70cd8(0x445)](_0x5155d3,_0x3c8a01,_0x57200a,_0x43c5e0);}var _0x4f9f93=Object[_0x5f56c6(0x17a)],_0x24ab5f=Object['getOwnPropertyDescriptor'],_0x4a2925=(_0x548c28,_0x41d7b7,_0x1bf30b,_0x7e8aef)=>{for(var _0x156e1d=_0x7e8aef>0x1?void 0x0:_0x7e8aef?_0x24ab5f(_0x41d7b7,_0x1bf30b):_0x41d7b7,_0x17eb14=_0x548c28['length']-0x1,_0x158017;_0x17eb14>=0x0;_0x17eb14--)(_0x158017=_0x548c28[_0x17eb14])&&(_0x156e1d=(_0x7e8aef?_0x158017(_0x41d7b7,_0x1bf30b,_0x156e1d):_0x158017(_0x156e1d))||_0x156e1d);return _0x7e8aef&&_0x156e1d&&_0x4f9f93(_0x41d7b7,_0x1bf30b,_0x156e1d),_0x156e1d;},_0x50dd3b=(_0x5735f3,_0x4ee524)=>(_0x2ae466,_0x4edb2c)=>_0x4ee524(_0x2ae466,_0x4edb2c,_0x5735f3);_0x4fdbaf[_0x5f56c6(0x26a)]=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0x45ff70,_0x124390,_0x505c2a,_0x41029a,_0x156858,_0x3214dd,_0xbfeaa8,_0x243197,_0x249b46,_0x6e6a6d,_0x9b4e16,_0x3c7fc8,_0x45f052){const _0x50f1d4=_0x5f56c6;super(),_0x48f470(this,_0x50f1d4(0x427),new _0x17e48c[(_0x50f1d4(0x38b))](null)),_0x48f470(this,_0x50f1d4(0x287),this[_0x50f1d4(0x427)]['asObservable']()),_0x48f470(this,_0x50f1d4(0x152)),_0x48f470(this,'_collaborationPaused',!0x1),_0x48f470(this,_0x50f1d4(0x49e),''),_0x48f470(this,_0x50f1d4(0x4d5),0x0),_0x48f470(this,_0x50f1d4(0x46c),this[_0x50f1d4(0x287)][_0x50f1d4(0x300)](_0x17e48c['map'](_0x4ca694=>_0x4ca694?_0x4ca694[_0x50f1d4(0x4ce)]:_0x4cac76[_0x50f1d4(0x385)]),_0x17e48c['shareReplay'](0x1))),_0x48f470(this,_0x50f1d4(0x418),!0x1),_0x48f470(this,_0x50f1d4(0x299),[]),(this[_0x50f1d4(0x586)]=_0x45ff70,this[_0x50f1d4(0x54d)]=_0x124390,this[_0x50f1d4(0x164)]=_0x505c2a,this[_0x50f1d4(0x3cf)]=_0x41029a,this['_localCacheService']=_0x156858,this[_0x50f1d4(0x2be)]=_0x3214dd,this[_0x50f1d4(0x375)]=_0xbfeaa8,this[_0x50f1d4(0x4e2)]=_0x243197,this[_0x50f1d4(0x3ac)]=_0x249b46,this[_0x50f1d4(0x2a7)]=_0x6e6a6d,this[_0x50f1d4(0x3a9)]=_0x9b4e16,this['_permissionService']=_0x3c7fc8,this['_singleActiveUnitService']=_0x45f052);}get['state'](){const _0x320577=_0x5f56c6;return this[_0x320577(0x152)];}async[_0x5f56c6(0x3bb)](){const _0x3e3902=_0x5f56c6;if(this[_0x3e3902(0x153)])throw new Error(_0x3e3902(0x4f4));await this[_0x3e3902(0x436)]();}[_0x5f56c6(0x3b8)](){const _0x10f029=_0x5f56c6;return this[_0x10f029(0x544)]=!0x0,_0x29630e[_0x10f029(0x1cd)](()=>{const _0xfff7de=_0x10f029;this[_0xfff7de(0x544)]=!0x1,this[_0xfff7de(0x48f)]();});}[_0x5f56c6(0x4e3)](_0x42fb81){const _0x2b7088=_0x5f56c6;this[_0x2b7088(0x152)]=_0x42fb81,this[_0x2b7088(0x427)][_0x2b7088(0x17b)](_0x42fb81);}async[_0x5f56c6(0x436)](){const _0x3bf427=_0x5f56c6;var _0x181cff;this[_0x3bf427(0x4e3)](await this['_createInitialState']()),this[_0x3bf427(0x3d2)]&&((_0x181cff=this[_0x3bf427(0x3d2)])==null||_0x181cff[_0x3bf427(0x348)](this[_0x3bf427(0x586)]),this['disposeWithMe'](this[_0x3bf427(0x3d2)][_0x3bf427(0x485)](this[_0x3bf427(0x586)])[_0x3bf427(0x18a)](_0x2dd44e=>{const _0x4cbf0a=_0x3bf427;this['_logService'][_0x4cbf0a(0x2fa)]('[CollaborationEntity]',_0x4cbf0a(0x416),_0x2dd44e),_0x2dd44e===_0x414a7e[_0x4cbf0a(0x3ff)]?(this[_0x4cbf0a(0x3a9)]['show']({'content':this[_0x4cbf0a(0x375)]['t'](_0x4cbf0a(0x323)),'type':_0x2d4ff4[_0x4cbf0a(0x2c7)]['Warning']}),this[_0x4cbf0a(0x495)][_0x4cbf0a(0x48a)](new _0x5decb0[(_0x4cbf0a(0x43a))](this[_0x4cbf0a(0x586)])['id'],!0x1),this[_0x4cbf0a(0x495)][_0x4cbf0a(0x18c)](!0x1)):(this[_0x4cbf0a(0x495)][_0x4cbf0a(0x48a)](new _0x5decb0[(_0x4cbf0a(0x43a))](this[_0x4cbf0a(0x586)])['id'],!0x0),this['_permissionService'][_0x4cbf0a(0x18c)](!0x0));})));let _0x432959=!0x1;return this['disposeWithMe'](this['session'][_0x3bf427(0x3e0)][_0x3bf427(0x18a)](_0x6a1fac=>{const _0xb3bf5d=_0x3bf427;_0x6a1fac===_0x90155[_0xb3bf5d(0x4c5)]?this[_0xb3bf5d(0x243)](_0x432959):_0x6a1fac===_0x90155['OFFLINE']&&(_0x432959=!0x0,this[_0xb3bf5d(0x14f)]());})),this[_0x3bf427(0x52f)](this[_0x3bf427(0x54d)][_0x3bf427(0x574)][_0x3bf427(0x18a)](_0x83a504=>{const _0x10d180=_0x3bf427;try{switch(_0x83a504[_0x10d180(0x256)]){case _0x2a6d3d['CollaborationEvent'][_0x10d180(0x433)]:{this[_0x10d180(0x17f)](_0x2a6d3d['parseProtocolChangeset'](_0x83a504[_0x10d180(0x54c)]));break;}case _0x2a6d3d['CollaborationEvent'][_0x10d180(0x51c)]:{this[_0x10d180(0x425)](_0x83a504['data']);break;}case _0x2a6d3d[_0x10d180(0x56e)][_0x10d180(0x3fd)]:{this[_0x10d180(0x3f0)]();break;}case _0x2a6d3d['CollaborationEvent'][_0x10d180(0x306)]:{this[_0x10d180(0x3b0)](_0x83a504['data']);break;}case _0x2a6d3d[_0x10d180(0x56e)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x10d180(0x3a8)](_0x83a504[_0x10d180(0x54c)][_0x10d180(0x1a5)][_0x10d180(0x239)](_0x2d1952=>_0x2a6d3d[_0x10d180(0x518)](_0x2d1952)));break;}case _0x2a6d3d[_0x10d180(0x56e)][_0x10d180(0x19b)]:this[_0x10d180(0x3f0)]({'isPermissionRej':!0x0});}}catch(_0xd7658e){throw console[_0x10d180(0x1fe)]('Error\x20on\x20receiving\x20event',_0xd7658e),_0xd7658e;}})),this['_state'];}[_0x5f56c6(0x32c)](){const _0x422364=_0x5f56c6;this[_0x422364(0x418)]=!0x1;}[_0x5f56c6(0x471)](){const _0x2b9ed2=_0x5f56c6;if(this['_transitionLocked'])throw new Error(_0x2b9ed2(0x2d2));this[_0x2b9ed2(0x418)]=!0x0;}[_0x5f56c6(0x53c)](_0x488879){const _0x5dd3f2=_0x5f56c6;this['_lockTransition'](),this[_0x5dd3f2(0x4e3)](this[_0x5dd3f2(0x152)][_0x5dd3f2(0x1fa)](_0x488879)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x1e27ce){const _0xed9ab0=_0x5f56c6;if(!(_0x1e27ce[_0xed9ab0(0x27a)]<=this['_revisionService'][_0xed9ab0(0x174)](this[_0xed9ab0(0x586)]))){if(this[_0xed9ab0(0x544)]){this['_remoteChangesetQueue'][_0xed9ab0(0x476)](_0x1e27ce);return;}this[_0xed9ab0(0x3b3)](_0x1e27ce);}}['_exhaustRemoteChangesetQueue'](){const _0x41a295=_0x5f56c6;this['_remoteChangesetQueue'][_0x41a295(0x57d)](_0xd97032=>this[_0x41a295(0x3b3)](_0xd97032)),this[_0x41a295(0x299)]=[];}[_0x5f56c6(0x3b3)](_0x5bb038){const _0xdedeb4=_0x5f56c6,_0x257423=this['_compressMutationService'][_0xdedeb4(0x545)]['fetchThroughInterceptors'](this[_0xdedeb4(0x2be)][_0xdedeb4(0x545)][_0xdedeb4(0x529)]()[_0xdedeb4(0x270)])(_0x5bb038[_0xdedeb4(0x288)],null)||_0x5bb038[_0xdedeb4(0x288)],_0x4a084f={..._0x5bb038,'mutations':_0x257423};this['_lockTransition'](),this[_0xdedeb4(0x4e3)](this[_0xdedeb4(0x152)][_0xdedeb4(0x39b)](_0x4a084f)),this[_0xdedeb4(0x32c)]();}[_0x5f56c6(0x425)](_0x3a0b03){const _0x3bba1a=_0x5f56c6;this[_0x3bba1a(0x471)](),this['_updateState'](this[_0x3bba1a(0x152)][_0x3bba1a(0x53b)](_0x3a0b03)),this[_0x3bba1a(0x32c)]();}[_0x5f56c6(0x3f0)](_0x4678ce){const _0x5707a4=_0x5f56c6;this[_0x5707a4(0x471)](),this[_0x5707a4(0x4e3)](this['_state'][_0x5707a4(0x4fa)](_0x4678ce)),this[_0x5707a4(0x32c)]();}[_0x5f56c6(0x3b0)](_0x5d1329){const _0x520acf=_0x5f56c6;this[_0x520acf(0x471)](),this[_0x520acf(0x4e3)](this[_0x520acf(0x152)][_0x520acf(0x46f)](_0x5d1329)),this[_0x520acf(0x32c)]();}[_0x5f56c6(0x3a8)](_0x251e75){const _0x1dde33=_0x5f56c6;if(!(this[_0x1dde33(0x152)]instanceof _0x5699b0))throw new TypeError(_0x1dde33(0x215));const _0x4d8312=_0x251e75[_0x1dde33(0x239)](_0x3cba0a=>{const _0x4a58bc=_0x1dde33,_0x8f42fe=this[_0x4a58bc(0x2be)]['interceptor'][_0x4a58bc(0x4e1)](this[_0x4a58bc(0x2be)][_0x4a58bc(0x545)]['getInterceptPoints']()[_0x4a58bc(0x270)])(_0x3cba0a['mutations'],null)||_0x3cba0a[_0x4a58bc(0x288)];return{..._0x3cba0a,'mutations':_0x8f42fe};});this[_0x1dde33(0x471)](),this[_0x1dde33(0x4e3)](this[_0x1dde33(0x152)][_0x1dde33(0x26f)](_0x4d8312)),this[_0x1dde33(0x32c)]();}[_0x5f56c6(0x14f)](){const _0x1589d3=_0x5f56c6;this[_0x1589d3(0x471)](),this[_0x1589d3(0x4e3)](this['_state']['toggleOffline']()),this[_0x1589d3(0x32c)]();}[_0x5f56c6(0x243)](_0x59dbb5=!0x1){const _0x2524d5=_0x5f56c6;this[_0x2524d5(0x471)](),this['_updateState'](this['_state'][_0x2524d5(0x37a)]()),this[_0x2524d5(0x32c)]();const _0x319523=this['_state'];_0x59dbb5&&_0x319523 instanceof _0x5155d3&&(this[_0x2524d5(0x471)](),this['_updateState'](_0x319523[_0x2524d5(0x230)]()),this[_0x2524d5(0x32c)]());}async[_0x5f56c6(0x357)](){return new Promise(_0x282e67=>{const _0x33b3ec=_0xe8fd;this[_0x33b3ec(0x54d)]['sessionStatus$'][_0x33b3ec(0x300)](_0x17e48c['take'](0x1))['subscribe'](async _0x395a97=>{const _0x397b76=_0x33b3ec;_0x282e67(await this['_createInitialStateImpl'](_0x395a97===_0x90155[_0x397b76(0x4c5)]));});});}[_0x5f56c6(0x4e7)](){const _0x4098cb=this['unitID'];return{'onStateChange':(_0x65800e,_0x6099f0)=>{const _0x290ee4=_0xe8fd;if(_0x65800e!==this['_state'])throw new Error(_0x290ee4(0x22d)+_0x65800e[_0x290ee4(0x4ce)]+_0x290ee4(0x48c)+_0x6099f0[_0x290ee4(0x4ce)]+_0x290ee4(0x2a0)+this[_0x290ee4(0x152)]['status']);this[_0x290ee4(0x4e3)](_0x6099f0);},'onSendChangeset':_0x33ed15=>{const _0x1fa5bd=_0xe8fd;_0x33ed15['sid']||(_0x33ed15[_0x1fa5bd(0x592)]=this[_0x1fa5bd(0x49e)],_0x33ed15[_0x1fa5bd(0x277)]=++this[_0x1fa5bd(0x4d5)]);const _0x57d5ae={'eventID':_0x2a6d3d[_0x1fa5bd(0x56e)][_0x1fa5bd(0x25b)],'data':{'unitID':_0x33ed15['unitID'],'unitType':this[_0x1fa5bd(0x164)],'changeset':_0x33ed15,'memberID':this[_0x1fa5bd(0x54d)][_0x1fa5bd(0x474)]()}};this[_0x1fa5bd(0x54d)][_0x1fa5bd(0x16b)](_0x57d5ae,this[_0x1fa5bd(0x586)]);},'onMissingChangesets':({from:_0x39f126,to:_0x1c70d4})=>{const _0x56a709=_0xe8fd;this[_0x56a709(0x3ac)]['debug'](_0x56a709(0x48b),'fetching\x20missing\x20changesets\x20from\x20'+_0x39f126+_0x56a709(0x154)+_0x1c70d4);const _0x5dca5c={'eventID':_0x2a6d3d[_0x56a709(0x56e)][_0x56a709(0x16c)],'data':{'unitID':_0x4098cb,'unitType':this[_0x56a709(0x164)],'from':_0x39f126,'to':_0x1c70d4}};this['session'][_0x56a709(0x16b)](_0x5dca5c,this['unitID']);}};}async[_0x5f56c6(0x4fd)](_0x4079a0){const _0x218df0=_0x5f56c6;var _0x597b03,_0x1385f5;const _0x4c975a=await this[_0x218df0(0x206)]['loadOfflineData'](this['unitID']),_0x51f296=(_0x597b03=_0x4c975a==null?void 0x0:_0x4c975a[_0x218df0(0x288)])!=null?_0x597b03:[],_0x50b83a=(_0x1385f5=_0x4c975a==null?void 0x0:_0x4c975a[_0x218df0(0x567)])!=null?_0x1385f5:null,_0x35e6e3=!!(_0x50b83a!=null&&_0x50b83a[_0x218df0(0x592)])&&!!(_0x50b83a!=null&&_0x50b83a[_0x218df0(0x277)]);this[_0x218df0(0x49e)]=_0x35e6e3?_0x50b83a['sid']:_0x16ee13(),this[_0x218df0(0x4d5)]=_0x35e6e3?_0x50b83a['reqId']:0x0;const _0x5b7d23=this[_0x218df0(0x586)];try{this['_replayCachedMutations'](_0x50b83a,_0x51f296);}catch(_0x14b250){this[_0x218df0(0x3ac)][_0x218df0(0x1fe)](_0x14b250);}const _0x15843b=this[_0x218df0(0x4e7)]();if(_0x4079a0){const _0x3ec70f=_0x427588(this['_injector'],_0x5b7d23,this['_type'],_0x50b83a,_0x51f296,_0x15843b);return _0x3ec70f instanceof _0x3703c2?_0x3ec70f[_0x218df0(0x399)]():(_0x3ec70f instanceof _0x4dc360||_0x3ec70f instanceof _0x2edaec)&&_0x3ec70f[_0x218df0(0x4ec)](),_0x3ec70f;}return this[_0x218df0(0x3cf)][_0x218df0(0x445)](_0x5bba0f,_0x5b7d23,this['_type'],_0x50b83a,_0x51f296,_0x15843b);}['_replayCachedMutations'](_0x7cdf98,_0x1bac52){const _0x141034=_0x5f56c6;var _0x5c5f71,_0x5ef567;const _0x3927e6=this[_0x141034(0x2be)][_0x141034(0x545)][_0x141034(0x4e1)](this[_0x141034(0x2be)][_0x141034(0x545)][_0x141034(0x529)]()[_0x141034(0x270)]);(_0x5c5f71=_0x3927e6((_0x7cdf98==null?void 0x0:_0x7cdf98['mutations'])||[],null))==null||_0x5c5f71[_0x141034(0x57d)](_0x2c4fd2=>this['_commandService'][_0x141034(0x180)](_0x2c4fd2['id'],_0x2c4fd2[_0x141034(0x1ee)])),(_0x5ef567=_0x3927e6(_0x1bac52||[],null))==null||_0x5ef567[_0x141034(0x57d)](_0x3750cb=>this[_0x141034(0x2a7)][_0x141034(0x180)](_0x3750cb['id'],_0x3750cb[_0x141034(0x1ee)]));}},_0x4fdbaf[_0x5f56c6(0x26a)]=_0x4a2925([_0x50dd3b(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x50dd3b(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x50dd3b(0x5,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d['CompressMutationService'])),_0x50dd3b(0x6,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)])),_0x50dd3b(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x50dd3b(0x8,_0x29630e[_0x5f56c6(0x478)]),_0x50dd3b(0x9,_0x29630e[_0x5f56c6(0x1a4)]),_0x50dd3b(0xa,_0x279664[_0x5f56c6(0x24d)]),_0x50dd3b(0xb,_0x29630e['IPermissionService']),_0x50dd3b(0xc,_0x29630e[_0x5f56c6(0x20f)](_0x5bb5e3))],_0x4fdbaf['CollaborationEntity']),_0x4fdbaf[_0x5f56c6(0x151)]=class extends _0x4fdbaf[_0x5f56c6(0x26a)]{constructor(_0x8e9845,_0x1e2bc8,_0x27c06d,_0x55dd52,_0x184c9b,_0xf3664b,_0x474f97,_0x3d49a3,_0x5760b2,_0x15a524,_0x1325e2,_0x4738a6,_0xe31bca,_0xf26380,_0x3597cc,_0x2f23c6,_0x2d06bb){const _0x550a61=_0x5f56c6;super(_0x8e9845,_0x27c06d,_0x1e2bc8,_0x55dd52,_0x184c9b,_0xf3664b,_0x474f97,_0x3d49a3,_0xe31bca,_0xf26380,_0x3597cc,_0x2f23c6,_0x2d06bb),this['unitID']=_0x8e9845,this[_0x550a61(0x566)]=_0x1e2bc8,this[_0x550a61(0x171)]=_0x5760b2,this[_0x550a61(0x387)]=_0x15a524,this[_0x550a61(0x55e)]=_0x1325e2,this[_0x550a61(0x583)]=_0x4738a6;}[_0x5f56c6(0x4e7)](){const _0x51091a=_0x5f56c6,_0xfd7d00=super['_createHandler']();return _0xfd7d00[_0x51091a(0x279)]=_0x4b72f2=>this['_docTransformIMECacheService'][_0x51091a(0x29e)](_0x4b72f2),_0xfd7d00[_0x51091a(0x3c7)]=_0x3ea21d=>this[_0x51091a(0x55e)]['transformSelections'](_0x3ea21d),_0xfd7d00['onSyncEditingCollabCursor']=_0x4bb686=>this[_0x51091a(0x583)]['syncEditingCollabCursor'](_0x4bb686),_0xfd7d00[_0x51091a(0x519)]=_0x540a3b=>this[_0x51091a(0x387)][_0x51091a(0x198)](_0x540a3b),_0xfd7d00;}async[_0x5f56c6(0x436)](){const _0x2edac3=_0x5f56c6,_0x4cb8c6=await super[_0x2edac3(0x436)]();return this['_docStateChangeManagerService'][_0x2edac3(0x4b1)][_0x2edac3(0x300)](_0x17e48c[_0x2edac3(0x47a)](this['dispose$']))[_0x2edac3(0x18a)](_0x234a8e=>{const _0x403446=_0x2edac3;if(_0x234a8e==null)return;const {unitId:_0x58b61f,redoState:_0x2c3d11,commandId:_0x4003fa}=_0x234a8e;if(_0x58b61f!==this[_0x403446(0x586)])return;const _0x514488={'id':_0x4003fa,'type':_0x29630e['CommandType'][_0x403446(0x25e)],'params':{'unitId':_0x58b61f,'actions':_0x2c3d11[_0x403446(0x4b2)],'textRanges':null}};this[_0x403446(0x53c)](_0x514488);}),_0x4cb8c6;}},_0x4fdbaf['DocCollaborationEntity']=_0x4a2925([_0x50dd3b(0x3,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x3c6)])),_0x50dd3b(0x4,_0x29630e['Inject'](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x50dd3b(0x5,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x2ab)])),_0x50dd3b(0x6,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)])),_0x50dd3b(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x50dd3b(0x8,_0x29630e[_0x5f56c6(0x1d9)](_0x214ea6['DocStateChangeManagerService'])),_0x50dd3b(0x9,_0x29630e[_0x5f56c6(0x1d9)](_0x403af6)),_0x50dd3b(0xa,_0x29630e[_0x5f56c6(0x1d9)](_0x1e6df8)),_0x50dd3b(0xb,_0x29630e[_0x5f56c6(0x1d9)](_0x4247e7)),_0x50dd3b(0xc,_0x29630e[_0x5f56c6(0x478)]),_0x50dd3b(0xd,_0x29630e[_0x5f56c6(0x1a4)]),_0x50dd3b(0xe,_0x279664[_0x5f56c6(0x24d)]),_0x50dd3b(0xf,_0x29630e[_0x5f56c6(0x1b0)]),_0x50dd3b(0x10,_0x29630e[_0x5f56c6(0x20f)](_0x5bb5e3))],_0x4fdbaf[_0x5f56c6(0x151)]),_0x4fdbaf[_0x5f56c6(0x496)]=class extends _0x4fdbaf[_0x5f56c6(0x26a)]{constructor(_0x6f63f8,_0x445069,_0x48184d,_0x1f7a28,_0x2ba9bd,_0x4ed386,_0x5293b6,_0x398d8e,_0x347a8e,_0xeea254,_0x1885d0,_0x118488,_0x44781a,_0x4ee80d){const _0x54d79d=_0x5f56c6;super(_0x6f63f8,_0x48184d,_0x445069,_0x1f7a28,_0x2ba9bd,_0x4ed386,_0x5293b6,_0x398d8e,_0xeea254,_0x1885d0,_0x118488,_0x44781a,_0x4ee80d),this['unitID']=_0x6f63f8,this[_0x54d79d(0x566)]=_0x445069,this[_0x54d79d(0x1a8)]=_0x347a8e;}[_0x5f56c6(0x4e7)](){const _0x1b5ad1=_0x5f56c6,_0x1e4168=super[_0x1b5ad1(0x4e7)]();return _0x1e4168['onTransformSelections']=_0x3e4424=>this[_0x1b5ad1(0x1a8)][_0x1b5ad1(0x250)](_0x3e4424),_0x1e4168;}async[_0x5f56c6(0x436)](){const _0x265dca=_0x5f56c6,_0x97c9cf=await super[_0x265dca(0x436)]();return this[_0x265dca(0x52f)](this[_0x265dca(0x2a7)][_0x265dca(0x373)]((_0x5e740d,_0x3d1d2)=>{const _0x18d9b3=_0x265dca;if(_0x5e740d[_0x18d9b3(0x566)]!==_0x29630e[_0x18d9b3(0x314)][_0x18d9b3(0x25e)]||_0x3d1d2!=null&&_0x3d1d2[_0x18d9b3(0x3d4)]||_0x3d1d2!=null&&_0x3d1d2[_0x18d9b3(0x2c2)])return;const _0x2d9e42=_0x5e740d['params'];if((_0x2d9e42==null?void 0x0:_0x2d9e42[_0x18d9b3(0x546)])!==this['unitID'])return;const _0xb66fe=_0x5e740d,_0x3f9a57=this[_0x18d9b3(0x2be)][_0x18d9b3(0x545)][_0x18d9b3(0x4e1)](this['_compressMutationService'][_0x18d9b3(0x545)][_0x18d9b3(0x529)]()['COMPRESS_MUTATION_SEND'])([_0xb66fe],null)||[_0xb66fe];this['_onLocalMutation'](_0x3f9a57[0x0]);})),_0x97c9cf;}},_0x4fdbaf['SheetCollaborationEntity']=_0x4a2925([_0x50dd3b(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x50dd3b(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x50dd3b(0x5,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d['CompressMutationService'])),_0x50dd3b(0x6,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x285)])),_0x50dd3b(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x4cb)])),_0x50dd3b(0x8,_0x29630e[_0x5f56c6(0x1d9)](_0x300a71)),_0x50dd3b(0x9,_0x29630e[_0x5f56c6(0x478)]),_0x50dd3b(0xa,_0x29630e[_0x5f56c6(0x1a4)]),_0x50dd3b(0xb,_0x279664[_0x5f56c6(0x24d)]),_0x50dd3b(0xc,_0x29630e[_0x5f56c6(0x1b0)]),_0x50dd3b(0xd,_0x29630e[_0x5f56c6(0x20f)](_0x5bb5e3))],_0x4fdbaf[_0x5f56c6(0x496)]);var _0x12ab00=Object[_0x5f56c6(0x17a)],_0x347df0=Object[_0x5f56c6(0x47e)],_0x4c57b7=(_0x56d9f6,_0x5030d2,_0x4863a4,_0x3bc0e3)=>{const _0x274833=_0x5f56c6;for(var _0x3573db=_0x3bc0e3>0x1?void 0x0:_0x3bc0e3?_0x347df0(_0x5030d2,_0x4863a4):_0x5030d2,_0x3882e4=_0x56d9f6[_0x274833(0x47d)]-0x1,_0x49c8a4;_0x3882e4>=0x0;_0x3882e4--)(_0x49c8a4=_0x56d9f6[_0x3882e4])&&(_0x3573db=(_0x3bc0e3?_0x49c8a4(_0x5030d2,_0x4863a4,_0x3573db):_0x49c8a4(_0x3573db))||_0x3573db);return _0x3bc0e3&&_0x3573db&&_0x12ab00(_0x5030d2,_0x4863a4,_0x3573db),_0x3573db;},_0x9de50e=(_0x474cab,_0x4985b6)=>(_0x244858,_0x633c6b)=>_0x4985b6(_0x244858,_0x633c6b,_0x474cab);_0x4fdbaf[_0x5f56c6(0x405)]=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0xaf7103,_0xc88d74,_0x1e6423){const _0x29a176=_0x5f56c6;super(),_0x48f470(this,_0x29a176(0x2eb),new Map()),_0x48f470(this,_0x29a176(0x2d4),new _0x17e48c[(_0x29a176(0x3be))]()),(this[_0x29a176(0x3cf)]=_0xaf7103,this[_0x29a176(0x379)]=_0xc88d74,this['_univerInstanceService']=_0x1e6423,this['_init']());}['dispose'](){const _0x46a46a=_0x5f56c6;super[_0x46a46a(0x1b8)](),this[_0x46a46a(0x2eb)]['forEach'](_0xfbc638=>_0xfbc638[_0x46a46a(0x1b8)]()),this[_0x46a46a(0x2eb)][_0x46a46a(0x185)]();}['getCollabEntity'](_0x2a9f19){const _0x435aac=_0x5f56c6;var _0x37a0f7;return(_0x37a0f7=this[_0x435aac(0x2eb)][_0x435aac(0x44d)](_0x2a9f19))!=null?_0x37a0f7:null;}[_0x5f56c6(0x301)](_0x254998){const _0x58fd3c=_0x5f56c6,_0x2b1d25=this['getCollabEntity'](_0x254998);return _0x2b1d25?_0x17e48c['of'](_0x2b1d25):this[_0x58fd3c(0x2d4)]['pipe'](_0x56098d[_0x58fd3c(0x324)](_0x29d44c=>_0x29d44c[_0x58fd3c(0x586)]===_0x254998));}[_0x5f56c6(0x436)](){const _0x44b5c9=_0x5f56c6;this[_0x44b5c9(0x434)]['getTypeOfUnitAdded$'](_0x29630e['UniverInstanceType'][_0x44b5c9(0x4b4)])[_0x44b5c9(0x300)](_0x17e48c['takeUntil'](this['dispose$']),_0x56098d[_0x44b5c9(0x2c1)](0x10))[_0x44b5c9(0x18a)](async _0x29169f=>{const _0x448303=_0x44b5c9,_0x5a1dfd=_0x29169f['getUnitId'](),_0x39a06c=await this['_startCollaboration'](_0x5a1dfd,_0x48039f[_0x448303(0x4b4)]);this['_entities'][_0x448303(0x4f1)](_0x5a1dfd,_0x39a06c);}),this['_univerInstanceService'][_0x44b5c9(0x3dc)](_0x29630e[_0x44b5c9(0x438)][_0x44b5c9(0x540)])[_0x44b5c9(0x300)](_0x17e48c[_0x44b5c9(0x47a)](this[_0x44b5c9(0x3ce)]),_0x56098d['delay'](0x10))['pipe'](_0x56098d['filter'](_0x44b10d=>!_0x44b10d['getUnitId']()['startsWith']('__')))[_0x44b5c9(0x18a)](async _0x4d1644=>{const _0x419a6c=_0x44b5c9,_0x32ccf7=_0x4d1644['getUnitId'](),_0x7d704f=await this[_0x419a6c(0x4d0)](_0x32ccf7,_0x48039f[_0x419a6c(0x540)]);this['_entities']['set'](_0x32ccf7,_0x7d704f);}),_0x17e48c['merge'](this['_univerInstanceService'][_0x44b5c9(0x407)](_0x29630e['UniverInstanceType'][_0x44b5c9(0x4b4)]),this[_0x44b5c9(0x434)][_0x44b5c9(0x407)](_0x29630e[_0x44b5c9(0x438)]['UNIVER_DOC']))[_0x44b5c9(0x300)](_0x17e48c['takeUntil'](this['dispose$']))['subscribe'](_0x1a0c83=>{const _0x515989=_0x44b5c9,_0x3ead47=_0x1a0c83[_0x515989(0x1a2)](),_0x117c44=this[_0x515989(0x2eb)]['get'](_0x3ead47);_0x117c44&&(_0x117c44[_0x515989(0x1b8)](),this[_0x515989(0x2eb)][_0x515989(0x340)](_0x3ead47));});}async[_0x5f56c6(0x4d0)](_0x296699,_0x365a7f){const _0x3797b8=_0x5f56c6,_0x57f382=await this[_0x3797b8(0x379)]['requireSession'](_0x296699),_0x3f7789=this['_injector'][_0x3797b8(0x445)](this[_0x3797b8(0x1f9)](_0x365a7f),_0x296699,_0x365a7f,_0x57f382);return await _0x3f7789[_0x3797b8(0x3bb)](),this['_entityInit$']['next'](_0x3f7789),_0x3f7789;}['_getCtorByUniverType'](_0x2af3ef){const _0x32fac1=_0x5f56c6;switch(_0x2af3ef){case _0x48039f[_0x32fac1(0x540)]:return _0x4fdbaf[_0x32fac1(0x151)];case _0x48039f[_0x32fac1(0x4b4)]:return _0x4fdbaf[_0x32fac1(0x496)];default:throw new Error(_0x32fac1(0x20b)+_0x2af3ef);}}},_0x4fdbaf[_0x5f56c6(0x405)]=_0x4c57b7([_0x9de50e(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e['Injector'])),_0x9de50e(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf['CollaborationSessionService'])),_0x9de50e(0x2,_0x29630e[_0x5f56c6(0x441)])],_0x4fdbaf[_0x5f56c6(0x405)]);const _0x35448a=[_0x5f56c6(0x57b),_0x5f56c6(0x2df),'verdancy600',_0x5f56c6(0x498),'blue400','gold400'];class _0x9c53bd extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(){const _0x3d5306=_0x5f56c6;super(...arguments),_0x48f470(this,'_assignedColors',new Map()),_0x48f470(this,_0x3d5306(0x31e),0x0);}[_0x5f56c6(0x51f)](_0x23643f){const _0xe935d0=_0x5f56c6;if(this[_0xe935d0(0x169)][_0xe935d0(0x55c)](_0x23643f))return this['_assignedColors'][_0xe935d0(0x44d)](_0x23643f);const _0x5d3a30=_0x35448a[this[_0xe935d0(0x31e)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x35448a[_0xe935d0(0x47d)],this[_0xe935d0(0x169)][_0xe935d0(0x4f1)](_0x23643f,_0x5d3a30),_0x5d3a30;}}var _0x53bf70=Object[_0x5f56c6(0x17a)],_0x1d58ac=Object[_0x5f56c6(0x47e)],_0x4a2678=(_0xcd0ca3,_0xb45155,_0x5bc22e,_0x1b1101)=>{const _0x25d1b5=_0x5f56c6;for(var _0x158485=_0x1b1101>0x1?void 0x0:_0x1b1101?_0x1d58ac(_0xb45155,_0x5bc22e):_0xb45155,_0xa3e0ea=_0xcd0ca3[_0x25d1b5(0x47d)]-0x1,_0x3e117e;_0xa3e0ea>=0x0;_0xa3e0ea--)(_0x3e117e=_0xcd0ca3[_0xa3e0ea])&&(_0x158485=(_0x1b1101?_0x3e117e(_0xb45155,_0x5bc22e,_0x158485):_0x3e117e(_0x158485))||_0x158485);return _0x1b1101&&_0x158485&&_0x53bf70(_0xb45155,_0x5bc22e,_0x158485),_0x158485;},_0x12fb6c=(_0x10e783,_0x2b0e12)=>(_0x4f9071,_0x5cd93a)=>_0x2b0e12(_0x4f9071,_0x5cd93a,_0x10e783);const _0x36a0cc=0x12c,_0x4b174f=0x64;let _0x40bde1=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0x4cb542,_0x40119d,_0xc34a1a,_0x3b3002,_0x11ea5a,_0x574974,_0x4c4fa6,_0x4cf48b,_0x3ff7d8){const _0x975e0e=_0x5f56c6;super(),_0x48f470(this,_0x975e0e(0x4da),!0x1),_0x48f470(this,_0x975e0e(0x436),!0x1),_0x48f470(this,_0x975e0e(0x264),new _0x17e48c[(_0x975e0e(0x38b))](new Map())),_0x48f470(this,_0x975e0e(0x4db),this[_0x975e0e(0x264)][_0x975e0e(0x2ac)]()),_0x48f470(this,_0x975e0e(0x47c),new _0x17e48c['BehaviorSubject']([])),_0x48f470(this,'roomMembers$',this[_0x975e0e(0x47c)]['pipe'](_0x17e48c[_0x975e0e(0x36e)](_0x36a0cc))),_0x48f470(this,'_updateLocalCursor',_0x29630e[_0x975e0e(0x528)](_0x371788=>{const _0x1caa0e=_0x975e0e,_0x28b2b={'eventID':_0x2a6d3d['CollaborationEvent'][_0x1caa0e(0x40a)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x1caa0e(0x474)](),'selection':_0x27f38b(_0x371788)}};this['_session'][_0x1caa0e(0x16b)](_0x28b2b,this['unitID']);},_0x4b174f)),(this['unitID']=_0x4cb542,this['_session']=_0x40119d,this[_0x975e0e(0x3cf)]=_0xc34a1a,this[_0x975e0e(0x48d)]=_0x3b3002,this['_memberService']=_0x11ea5a,this['_syncEditingCollabCursorService']=_0x574974,this['_transformService']=_0x4c4fa6,this['_univerInstanceService']=_0x4cf48b,this[_0x975e0e(0x2a7)]=_0x3ff7d8);}get['cursorInfo'](){const _0x2ae806=_0x5f56c6;return this[_0x2ae806(0x264)][_0x2ae806(0x32b)]();}get[_0x5f56c6(0x4e4)](){const _0x1341c0=_0x5f56c6;return this[_0x1341c0(0x47c)]['getValue']();}[_0x5f56c6(0x1b8)](){const _0x3d57a3=_0x5f56c6;super[_0x3d57a3(0x1b8)](),this[_0x3d57a3(0x264)][_0x3d57a3(0x17b)](new Map()),this[_0x3d57a3(0x264)][_0x3d57a3(0x423)](),this['_roomMembers$'][_0x3d57a3(0x17b)]([]),this[_0x3d57a3(0x47c)]['complete']();}[_0x5f56c6(0x3bb)](){const _0x256f58=_0x5f56c6;this[_0x256f58(0x436)]||(this['_init']=!0x0,this[_0x256f58(0x41d)][_0x256f58(0x3e0)][_0x256f58(0x300)](_0x17e48c['takeUntil'](this[_0x256f58(0x3ce)]))[_0x256f58(0x18a)](_0x3db54e=>{const _0x2e35e9=_0x256f58;_0x3db54e===_0x90155[_0x2e35e9(0x4c5)]?this[_0x2e35e9(0x243)]():this['_toggleOffline']();}),this[_0x256f58(0x41d)][_0x256f58(0x574)][_0x256f58(0x300)](_0x17e48c['takeUntil'](this['dispose$']))[_0x256f58(0x18a)](_0x338548=>{const _0x598bc2=_0x256f58,_0x3db80b=_0x338548[_0x598bc2(0x256)];_0x3db80b===_0x2a6d3d[_0x598bc2(0x56e)][_0x598bc2(0x40a)]&&this[_0x598bc2(0x3f4)](_0x338548),_0x3db80b===_0x2a6d3d[_0x598bc2(0x56e)][_0x598bc2(0x2c5)]&&this['_onCursorDelete'](_0x338548);}),this['disposeWithMe'](this[_0x256f58(0x2a7)][_0x256f58(0x373)](_0x19773e=>{const _0x56af30=_0x256f58,_0x4a6add=_0x19773e[_0x56af30(0x1ee)];_0x4a6add!=null&&this[_0x56af30(0x4da)]&&_0x19773e['id']===_0x31abfa['SetTextSelectionsOperation']['id']&&_0x4a6add['unitId']===this[_0x56af30(0x586)]&&_0x4a6add['isEditing']===!0x1&&_0x4a6add['ranges'][_0x56af30(0x47d)]>0x0&&this[_0x56af30(0x22f)](_0x4a6add[_0x56af30(0x336)]);})),this[_0x256f58(0x42b)][_0x256f58(0x21e)][_0x256f58(0x300)](_0x17e48c[_0x256f58(0x47a)](this[_0x256f58(0x3ce)]))[_0x256f58(0x18a)](_0x20bd8c=>{const _0x4e3b5e=_0x256f58;if((_0x20bd8c==null?void 0x0:_0x20bd8c[_0x4e3b5e(0x586)])!==this[_0x4e3b5e(0x586)])return;const _0x7c3cb5={'eventID':_0x2a6d3d[_0x4e3b5e(0x56e)][_0x4e3b5e(0x40a)],'data':_0x20bd8c};this['_onCursorUpdate'](_0x7c3cb5);}),this['disposeWithMe'](this[_0x256f58(0x2a7)][_0x256f58(0x373)](_0x2058dc=>{const _0x297e5f=_0x256f58;if(_0x2058dc[_0x297e5f(0x1ee)]==null)return;const _0x5781e0=_0x2058dc[_0x297e5f(0x1ee)];if(_0x2058dc['id']!==_0x31abfa[_0x297e5f(0x3f9)]['id']||_0x5781e0[_0x297e5f(0x546)]!==this['unitID'])return;const _0x298352={'id':_0x297e5f(0x23d),'params':_0x5781e0},_0x4f619b=this['cursorInfo'];for(const [_0x536559,_0x58f81f]of _0x4f619b){const _0x31bbec={'id':_0x297e5f(0x23d),'params':{'unitId':this[_0x297e5f(0x586)],'actions':null,'textRanges':_0x58f81f[_0x297e5f(0x336)]}},_0x18b50b=this[_0x297e5f(0x4ab)][_0x297e5f(0x506)](_0x298352,_0x31bbec,!0x1);if(_0x2a6d3d[_0x297e5f(0x1db)](_0x18b50b))throw _0x18b50b[_0x297e5f(0x1fe)];_0x4f619b[_0x297e5f(0x4f1)](_0x536559,{..._0x58f81f,'ranges':_0x18b50b[_0x297e5f(0x3fc)][_0x297e5f(0x1ee)][_0x297e5f(0x589)]});}queueMicrotask(()=>{const _0xf23c44=_0x297e5f;this[_0xf23c44(0x264)][_0xf23c44(0x17b)](_0x4f619b);});})));}[_0x5f56c6(0x3f4)](_0x35c0ca){const _0xd56d3e=_0x5f56c6;var _0x45135a,_0x45244a;const {memberID:_0x35ac1f,selection:_0x5d27ee}=_0x35c0ca[_0xd56d3e(0x54c)],_0x5594f5=_0x5b1833(_0x5d27ee),_0x56e979=(_0x45244a=(_0x45135a=this['_memberService'][_0xd56d3e(0x30c)](this[_0xd56d3e(0x586)],_0x35ac1f))==null?void 0x0:_0x45135a[_0xd56d3e(0x244)])!=null?_0x45244a:_0xd56d3e(0x188),_0x340433={'color':this[_0xd56d3e(0x48d)][_0xd56d3e(0x51f)](_0x35ac1f),'name':_0x56e979,'ranges':_0x5594f5},_0x4510a9=this[_0xd56d3e(0x1e7)];_0x4510a9[_0xd56d3e(0x4f1)](_0x35ac1f,_0x340433),this[_0xd56d3e(0x264)]['next'](_0x4510a9);}[_0x5f56c6(0x4aa)](_0x2c9a65){const _0x213119=_0x5f56c6,{memberID:_0x58db01}=_0x2c9a65[_0x213119(0x54c)],_0x36c1b5=this[_0x213119(0x1e7)];_0x36c1b5[_0x213119(0x340)](_0x58db01),this[_0x213119(0x264)][_0x213119(0x17b)](_0x36c1b5);}['_toggleOnline'](){const _0x58bf94=_0x5f56c6;var _0x5e40be;if(this[_0x58bf94(0x4da)]=!0x0,((_0x5e40be=this[_0x58bf94(0x434)]['getFocusedUnit']())==null?void 0x0:_0x5e40be[_0x58bf94(0x1a2)]())!==this[_0x58bf94(0x586)])return;const _0x1f8a13=this[_0x58bf94(0x3cf)]['get'](_0x31abfa[_0x58bf94(0x43b)])[_0x58bf94(0x4c6)]();Array[_0x58bf94(0x400)](_0x1f8a13)&&_0x1f8a13[_0x58bf94(0x47d)]>0x0&&this[_0x58bf94(0x22f)](_0x1f8a13);}[_0x5f56c6(0x14f)](){const _0x4d0400=_0x5f56c6;this[_0x4d0400(0x4da)]=!0x1;}};_0x40bde1=_0x4a2678([_0x12fb6c(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x12fb6c(0x3,_0x29630e['Inject'](_0x9c53bd)),_0x12fb6c(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x2b3)])),_0x12fb6c(0x5,_0x29630e[_0x5f56c6(0x1d9)](_0x4247e7)),_0x12fb6c(0x6,_0x2a6d3d[_0x5f56c6(0x172)]),_0x12fb6c(0x7,_0x29630e[_0x5f56c6(0x441)]),_0x12fb6c(0x8,_0x29630e[_0x5f56c6(0x1a4)])],_0x40bde1);var _0x301cf2=Object['defineProperty'],_0x590aa1=Object[_0x5f56c6(0x47e)],_0x44ecbf=(_0x5934ae,_0xa8f6fb,_0x5cf0c3,_0xf05402)=>{for(var _0x5a2ba6=_0xf05402>0x1?void 0x0:_0xf05402?_0x590aa1(_0xa8f6fb,_0x5cf0c3):_0xa8f6fb,_0x1f697f=_0x5934ae['length']-0x1,_0x4bbb2c;_0x1f697f>=0x0;_0x1f697f--)(_0x4bbb2c=_0x5934ae[_0x1f697f])&&(_0x5a2ba6=(_0xf05402?_0x4bbb2c(_0xa8f6fb,_0x5cf0c3,_0x5a2ba6):_0x4bbb2c(_0x5a2ba6))||_0x5a2ba6);return _0xf05402&&_0x5a2ba6&&_0x301cf2(_0xa8f6fb,_0x5cf0c3,_0x5a2ba6),_0x5a2ba6;},_0x19ba67=(_0x27dc90,_0x1eb143)=>(_0x28ddf0,_0x1a12a7)=>_0x1eb143(_0x28ddf0,_0x1a12a7,_0x27dc90);const _0x231e03=0x12c,_0x2011f5=0x64,_0x4bb089=()=>{let _0x124911=[],_0x3c8a4d=!0x1;return _0x1213d7=>{const _0x3cd042=_0xe8fd;_0x124911[_0x3cd042(0x476)](_0x1213d7),_0x3c8a4d||(_0x3c8a4d=!0x0,setTimeout(()=>{const _0x305f21=_0x3cd042;_0x124911[_0x305f21(0x57d)](_0x5da3ba=>_0x5da3ba()),_0x124911=[],_0x3c8a4d=!0x1;}));};};let _0x326662=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0x2288a3,_0x2a3466,_0x161418,_0xff84f1,_0x3bdf40,_0x3e5e8e,_0x4e86f3,_0x3f5297){const _0x12fcb7=_0x5f56c6;super(),_0x48f470(this,_0x12fcb7(0x4da),!0x1),_0x48f470(this,_0x12fcb7(0x436),!0x1),_0x48f470(this,_0x12fcb7(0x264),new _0x17e48c[(_0x12fcb7(0x38b))](new Map())),_0x48f470(this,'cursorInfo$',this[_0x12fcb7(0x264)][_0x12fcb7(0x2ac)]()),_0x48f470(this,_0x12fcb7(0x47c),new _0x17e48c[(_0x12fcb7(0x38b))]([])),_0x48f470(this,'roomMembers$',this[_0x12fcb7(0x47c)][_0x12fcb7(0x300)](_0x17e48c['debounceTime'](_0x231e03))),_0x48f470(this,_0x12fcb7(0x22f),_0x29630e['debounce']((_0x4160be,_0x1834ff)=>{const _0x28f7b3=_0x12fcb7,_0x68f5f6={'eventID':_0x2a6d3d[_0x28f7b3(0x56e)][_0x28f7b3(0x40a)],'data':{'unitID':this[_0x28f7b3(0x586)],'memberID':this[_0x28f7b3(0x41d)][_0x28f7b3(0x474)](),'selection':_0x5b4502[_0x28f7b3(0x449)](_0x4160be,_0x1834ff['range'])}};this['_session'][_0x28f7b3(0x16b)](_0x68f5f6,this[_0x28f7b3(0x586)]);},_0x2011f5)),(this[_0x12fcb7(0x586)]=_0x2288a3,this[_0x12fcb7(0x41d)]=_0x2a3466,this[_0x12fcb7(0x3cf)]=_0x161418,this[_0x12fcb7(0x48d)]=_0xff84f1,this[_0x12fcb7(0x521)]=_0x3bdf40,this[_0x12fcb7(0x434)]=_0x3e5e8e,this[_0x12fcb7(0x2a7)]=_0x4e86f3,this['_refRangeService']=_0x3f5297);}get[_0x5f56c6(0x1e7)](){const _0x38918b=_0x5f56c6;return this[_0x38918b(0x264)]['getValue']();}get[_0x5f56c6(0x4e4)](){const _0x280d37=_0x5f56c6;return this[_0x280d37(0x47c)][_0x280d37(0x32b)]();}[_0x5f56c6(0x1b8)](){const _0x4a90e9=_0x5f56c6;super[_0x4a90e9(0x1b8)](),this[_0x4a90e9(0x264)][_0x4a90e9(0x17b)](new Map()),this[_0x4a90e9(0x264)][_0x4a90e9(0x423)](),this[_0x4a90e9(0x47c)]['next']([]),this[_0x4a90e9(0x47c)][_0x4a90e9(0x423)]();}['init'](){const _0x4df563=_0x5f56c6;this[_0x4df563(0x436)]||(this[_0x4df563(0x436)]=!0x0,this['_session'][_0x4df563(0x3e0)][_0x4df563(0x300)](_0x17e48c[_0x4df563(0x47a)](this[_0x4df563(0x3ce)]))[_0x4df563(0x18a)](_0x449211=>{const _0x31702a=_0x4df563;_0x449211===_0x90155[_0x31702a(0x4c5)]?this[_0x31702a(0x243)]():this['_toggleOffline']();}),this[_0x4df563(0x41d)][_0x4df563(0x574)][_0x4df563(0x300)](_0x17e48c[_0x4df563(0x47a)](this['dispose$']))['subscribe'](_0x362792=>{const _0x1f328c=_0x4df563,_0x505752=_0x362792['eventID'];_0x505752===_0x2a6d3d[_0x1f328c(0x56e)][_0x1f328c(0x40a)]&&this[_0x1f328c(0x3f4)](_0x362792),_0x505752===_0x2a6d3d[_0x1f328c(0x56e)]['USERS_LEAVE']&&this[_0x1f328c(0x4aa)](_0x362792);}),this[_0x4df563(0x45c)](),this[_0x4df563(0x52f)](this['_commandService'][_0x4df563(0x373)](_0x2ed12b=>{const _0x253e19=_0x4df563;if(this[_0x253e19(0x4da)]&&_0x2ed12b['id']===_0x5decb0[_0x253e19(0x3aa)]['id']&&_0x2ed12b[_0x253e19(0x1ee)][_0x253e19(0x546)]===this[_0x253e19(0x586)]){const _0x3942b2=_0x2ed12b['params'];this[_0x253e19(0x22f)](_0x3942b2[_0x253e19(0x512)],_0x3942b2[_0x253e19(0x551)][0x0]);}})));}['_onCursorUpdate'](_0x4cc938){const _0x57e4f6=_0x5f56c6;var _0x3069a2,_0x2caaa9;const {memberID:_0x321c23,selection:_0x413f75}=_0x4cc938[_0x57e4f6(0x54c)],{sheetName:_0x2f05ea,range:_0x2e29d3}=_0x5b4502[_0x57e4f6(0x1b9)](_0x413f75),_0x19b3b8={'name':(_0x2caaa9=(_0x3069a2=this[_0x57e4f6(0x521)][_0x57e4f6(0x30c)](this[_0x57e4f6(0x586)],_0x321c23))==null?void 0x0:_0x3069a2['name'])!=null?_0x2caaa9:'Unknown\x20user','range':this['_getMergeRange'](_0x2f05ea,_0x2e29d3),'sheetID':_0x2f05ea,'color':this['_colorAssignService'][_0x57e4f6(0x51f)](_0x321c23),'selection':_0x413f75},_0x2ea6b6=this[_0x57e4f6(0x1e7)];_0x2ea6b6[_0x57e4f6(0x4f1)](_0x321c23,_0x19b3b8),this[_0x57e4f6(0x264)]['next'](_0x2ea6b6);}[_0x5f56c6(0x4aa)](_0x249727){const _0x1a5b4f=_0x5f56c6,{memberID:_0x4cabd6}=_0x249727['data'],_0x4ac36c=this[_0x1a5b4f(0x1e7)];_0x4ac36c[_0x1a5b4f(0x340)](_0x4cabd6),this['_cursorInfo$']['next'](_0x4ac36c);}['_getMergeRange'](_0x23f16c,_0x148fdf){const _0x57da31=_0x5f56c6;var _0x208545,_0x5153ca;const _0x28e210=(_0x5153ca=(_0x208545=this[_0x57da31(0x434)]['getUniverSheetInstance'](this[_0x57da31(0x586)]))==null?void 0x0:_0x208545[_0x57da31(0x41a)](_0x23f16c))==null?void 0x0:_0x5153ca[_0x57da31(0x1bf)]();return(_0x28e210==null?void 0x0:_0x28e210[_0x57da31(0x2b0)](_0x1dde9e=>_0x29630e[_0x57da31(0x4a9)][_0x57da31(0x3bf)](_0x1dde9e,_0x148fdf)))||_0x148fdf;}['_onRefRangeChange'](){const _0x31de80=_0x5f56c6,_0x156883=new _0x29630e['DisposableCollection'](),_0x4589a2=_0x4bb089(),_0x532a6c=()=>{const _0x3e7013=_0xe8fd;_0x156883['dispose']();const _0x343cd4=(_0x1e7127,_0x24a64e,_0x276675,_0xcc19d)=>{const _0x19fcc8=_0xe8fd;let _0x447da5=[];switch(_0x1e7127['id']){case _0x5decb0[_0x19fcc8(0x1eb)]['DeleteRangeMoveLeftCommandId']:{_0x447da5=_0x5decb0[_0x19fcc8(0x554)](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)][_0x19fcc8(0x55f)]:{_0x447da5=_0x5decb0['handleDeleteRangeMoveUp'](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)]['InsertColCommandId']:{_0x447da5=_0x5decb0[_0x19fcc8(0x326)](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)]['InsertRangeMoveDownCommandId']:{_0x447da5=_0x5decb0[_0x19fcc8(0x1b3)](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)][_0x19fcc8(0x347)]:{_0x447da5=_0x5decb0[_0x19fcc8(0x527)](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)]['InsertRowCommandId']:{_0x447da5=_0x5decb0['handleInsertRow'](_0x1e7127,_0xcc19d);break;}case _0x5decb0['EffectRefRangId']['MoveRangeCommandId']:{_0x447da5=_0x5decb0[_0x19fcc8(0x4a8)](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)]['RemoveColCommandId']:{_0x447da5=_0x5decb0[_0x19fcc8(0x47f)](_0x1e7127,_0xcc19d);break;}case _0x5decb0[_0x19fcc8(0x1eb)][_0x19fcc8(0x192)]:{_0x447da5=_0x5decb0[_0x19fcc8(0x530)](_0x1e7127,_0xcc19d);break;}}const _0x216f7c=_0x5decb0[_0x19fcc8(0x29d)](_0x447da5,_0xcc19d),_0x4c1f70=this[_0x19fcc8(0x1e7)][_0x19fcc8(0x44d)](_0x24a64e);if(_0x4c1f70&&_0x216f7c){const _0x4d6756={..._0x4c1f70,'range':_0x216f7c};this[_0x19fcc8(0x1e7)][_0x19fcc8(0x4f1)](_0x24a64e,_0x4d6756),_0x4589a2(()=>{const _0x52dc38=_0x19fcc8,_0x11965c=this[_0x52dc38(0x2ae)][_0x52dc38(0x4a6)](_0x216f7c,_0x1f5b08=>(_0x11965c[_0x52dc38(0x1b8)](),_0x343cd4(_0x1f5b08,_0x24a64e,_0x276675,_0x216f7c)));_0x156883[_0x52dc38(0x54b)](_0x11965c);});}return{'redos':[],'undos':[]};};this[_0x3e7013(0x1e7)][_0x3e7013(0x57d)]((_0x22ad42,_0x13f90e)=>{const _0x30afd4=_0x3e7013,{range:_0x51922c,sheetID:_0x5bc6b6}=_0x22ad42,_0x458cc8=this[_0x30afd4(0x2ae)][_0x30afd4(0x4a6)](_0x51922c,_0x152d4d=>(_0x458cc8[_0x30afd4(0x1b8)](),_0x343cd4(_0x152d4d,_0x13f90e,_0x5bc6b6,_0x51922c)));_0x156883[_0x30afd4(0x54b)](_0x458cc8);});};this[_0x31de80(0x52f)](_0x29630e[_0x31de80(0x1cd)](this[_0x31de80(0x264)][_0x31de80(0x18a)](()=>{_0x532a6c();})));}[_0x5f56c6(0x243)](){const _0x38fa40=_0x5f56c6;var _0x7eec5,_0x4e4584;if(this[_0x38fa40(0x4da)]=!0x0,((_0x7eec5=this[_0x38fa40(0x434)][_0x38fa40(0x594)]())==null?void 0x0:_0x7eec5['getUnitId']())!==this[_0x38fa40(0x586)])return;const _0x1ff995=(_0x4e4584=this[_0x38fa40(0x3cf)][_0x38fa40(0x44d)](_0x5decb0[_0x38fa40(0x15d)])[_0x38fa40(0x2fd)]())==null?void 0x0:_0x4e4584[0x0],_0x3b75fd=this[_0x38fa40(0x434)][_0x38fa40(0x160)](_0x29630e[_0x38fa40(0x438)]['UNIVER_SHEET'])[_0x38fa40(0x582)]();_0x1ff995&&_0x3b75fd&&this[_0x38fa40(0x22f)](_0x3b75fd[_0x38fa40(0x15c)](),_0x1ff995);}['_toggleOffline'](){this['_online']=!0x1;}};_0x326662=_0x44ecbf([_0x19ba67(0x2,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x3c6)])),_0x19ba67(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x9c53bd)),_0x19ba67(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x2b3)])),_0x19ba67(0x5,_0x29630e['IUniverInstanceService']),_0x19ba67(0x6,_0x29630e[_0x5f56c6(0x1a4)]),_0x19ba67(0x7,_0x29630e[_0x5f56c6(0x1d9)](_0x5decb0[_0x5f56c6(0x1f0)]))],_0x326662);var _0x2ce046=Object['defineProperty'],_0x346853=Object['getOwnPropertyDescriptor'],_0xf1b61d=(_0x5c068c,_0x561aad,_0x2fc755,_0x2beb27)=>{const _0xbd0231=_0x5f56c6;for(var _0x4bebe8=_0x2beb27>0x1?void 0x0:_0x2beb27?_0x346853(_0x561aad,_0x2fc755):_0x561aad,_0x255164=_0x5c068c[_0xbd0231(0x47d)]-0x1,_0x31910e;_0x255164>=0x0;_0x255164--)(_0x31910e=_0x5c068c[_0x255164])&&(_0x4bebe8=(_0x2beb27?_0x31910e(_0x561aad,_0x2fc755,_0x4bebe8):_0x31910e(_0x4bebe8))||_0x4bebe8);return _0x2beb27&&_0x4bebe8&&_0x2ce046(_0x561aad,_0x2fc755,_0x4bebe8),_0x4bebe8;},_0x227f4d=(_0x29dbd9,_0x3ed39b)=>(_0x51d0fd,_0x22a18c)=>_0x3ed39b(_0x51d0fd,_0x22a18c,_0x29dbd9);let _0x335c52=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0x18633a,_0x113bd3,_0x250586){const _0x46d89e=_0x5f56c6;super(),_0x48f470(this,'_entities',new Map()),_0x48f470(this,_0x46d89e(0x2d4),new _0x17e48c[(_0x46d89e(0x3be))]()),(this['_univerInstanceService']=_0x18633a,this['_injector']=_0x113bd3,this[_0x46d89e(0x379)]=_0x250586,this['_init']());}[_0x5f56c6(0x1b8)](){const _0x4f00f8=_0x5f56c6;super[_0x4f00f8(0x1b8)](),this[_0x4f00f8(0x2d4)][_0x4f00f8(0x423)](),this[_0x4f00f8(0x2eb)]['forEach'](_0x5ce850=>_0x5ce850[_0x4f00f8(0x1b8)]());}[_0x5f56c6(0x4fb)](_0x4fbdea){const _0x3b3716=_0x5f56c6;return this['_entities'][_0x3b3716(0x55c)](_0x4fbdea)?this[_0x3b3716(0x2eb)]['get'](_0x4fbdea)[_0x3b3716(0x4db)]:this[_0x3b3716(0x2d4)][_0x3b3716(0x300)](_0x17e48c[_0x3b3716(0x324)](_0x5c17d2=>_0x5c17d2[_0x3b3716(0x586)]===_0x4fbdea),_0x17e48c[_0x3b3716(0x42c)](_0x3ea3ad=>_0x3ea3ad[_0x3b3716(0x4db)]));}['_init'](){const _0xf08d2=_0x5f56c6;this[_0xf08d2(0x434)]['getTypeOfUnitAdded$'](_0x29630e[_0xf08d2(0x438)][_0xf08d2(0x4b4)])[_0xf08d2(0x300)](_0x17e48c[_0xf08d2(0x47a)](this[_0xf08d2(0x3ce)]))[_0xf08d2(0x18a)](async _0x2af0e2=>{const _0x4d338b=_0xf08d2,_0x3d11b0=_0x2af0e2['getUnitId'](),_0x24d7ec=await this[_0x4d338b(0x202)](_0x3d11b0);this[_0x4d338b(0x2d4)][_0x4d338b(0x17b)](_0x24d7ec),this[_0x4d338b(0x2eb)][_0x4d338b(0x4f1)](_0x3d11b0,_0x24d7ec);}),this[_0xf08d2(0x434)][_0xf08d2(0x3dc)](_0x29630e[_0xf08d2(0x438)][_0xf08d2(0x540)])['pipe'](_0x17e48c[_0xf08d2(0x47a)](this[_0xf08d2(0x3ce)]))[_0xf08d2(0x300)](_0x17e48c['filter'](_0x3a61ef=>!_0x3a61ef['getUnitId']()[_0xf08d2(0x1bd)]('__')))[_0xf08d2(0x18a)](async _0x503640=>{const _0x59d57b=_0xf08d2,_0x20c42b=_0x503640[_0x59d57b(0x1a2)](),_0x3aedbe=await this[_0x59d57b(0x4b3)](_0x20c42b);this[_0x59d57b(0x2d4)]['next'](_0x3aedbe),this[_0x59d57b(0x2eb)][_0x59d57b(0x4f1)](_0x20c42b,_0x3aedbe);}),_0x17e48c[_0xf08d2(0x268)](this[_0xf08d2(0x434)][_0xf08d2(0x407)](_0x29630e[_0xf08d2(0x438)][_0xf08d2(0x540)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x29630e[_0xf08d2(0x438)][_0xf08d2(0x4b4)]))[_0xf08d2(0x300)](_0x17e48c['takeUntil'](this[_0xf08d2(0x3ce)]))[_0xf08d2(0x18a)](_0x3db1d4=>{const _0x23bbde=_0xf08d2,_0x3de553=_0x3db1d4[_0x23bbde(0x1a2)](),_0xc74963=this[_0x23bbde(0x2eb)][_0x23bbde(0x44d)](_0x3de553);_0xc74963&&(_0xc74963[_0x23bbde(0x1b8)](),this['_entities'][_0x23bbde(0x340)](_0x3de553));});}async[_0x5f56c6(0x202)](_0x2d42f4){const _0x170a52=_0x5f56c6,_0x424406=await this[_0x170a52(0x379)][_0x170a52(0x494)](_0x2d42f4),_0x3f559c=this[_0x170a52(0x3cf)][_0x170a52(0x445)](_0x326662,_0x2d42f4,_0x424406);return _0x3f559c['init'](),_0x3f559c;}async['_startDocCollabCursor'](_0x49fa34){const _0x162492=_0x5f56c6,_0x7988f7=await this[_0x162492(0x379)][_0x162492(0x494)](_0x49fa34),_0x4c208e=this[_0x162492(0x3cf)]['createInstance'](_0x40bde1,_0x49fa34,_0x7988f7);return _0x4c208e[_0x162492(0x3bb)](),_0x4c208e;}};_0x335c52=_0xf1b61d([_0x227f4d(0x0,_0x29630e['IUniverInstanceService']),_0x227f4d(0x1,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x3c6)])),_0x227f4d(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x580)]))],_0x335c52);const _0x5f0a09=0x14,_0x3ecd90=0xc8,_0x42ff88=0x4,_0x552fc6=0x5;function _0x40b94c(_0x364246,_0x55d8a2){const _0x10f4ca=_0x5f56c6;let {radius:_0x4beb5a,width:_0x31b6ba,height:_0x1a7699}=_0x55d8a2;_0x4beb5a=_0x4beb5a!=null?_0x4beb5a:0x0,_0x31b6ba=_0x31b6ba!=null?_0x31b6ba:0x1e,_0x1a7699=_0x1a7699!=null?_0x1a7699:0x1e;let _0x2f0687=0x0,_0x411e61=0x0,_0x4ea974=0x0;_0x2f0687=_0x411e61=_0x4ea974=Math['min'](_0x4beb5a,_0x31b6ba/0x2,_0x1a7699/0x2),_0x364246[_0x10f4ca(0x477)](),_0x364246[_0x10f4ca(0x20d)](_0x2f0687,0x0),_0x364246['lineTo'](_0x31b6ba-_0x411e61,0x0),_0x364246['arc'](_0x31b6ba-_0x411e61,_0x411e61,_0x411e61,Math['PI']*0x3/0x2,0x0,!0x1),_0x364246[_0x10f4ca(0x1e5)](_0x31b6ba,_0x1a7699-_0x4ea974),_0x364246[_0x10f4ca(0x275)](_0x31b6ba-_0x4ea974,_0x1a7699-_0x4ea974,_0x4ea974,0x0,Math['PI']/0x2,!0x1),_0x364246[_0x10f4ca(0x1e5)](0x0,_0x1a7699),_0x364246[_0x10f4ca(0x1e5)](0x0,_0x2f0687),_0x364246[_0x10f4ca(0x275)](_0x2f0687,_0x2f0687,_0x2f0687,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x364246[_0x10f4ca(0x44b)](),_0x55d8a2[_0x10f4ca(0x4d9)]&&(_0x364246[_0x10f4ca(0x32a)](),_0x364246['fillStyle']=_0x55d8a2['fill'],_0x55d8a2[_0x10f4ca(0x178)]==='evenodd'?_0x364246['fill'](_0x10f4ca(0x17e)):_0x364246[_0x10f4ca(0x4d9)](),_0x364246[_0x10f4ca(0x590)]());}class _0x25e89f extends _0x37c548[_0x5f56c6(0x410)]{constructor(_0x12bfe2,_0x594539){const _0x477ecb=_0x5f56c6;super(_0x12bfe2,_0x594539),_0x48f470(this,'color'),_0x48f470(this,_0x477ecb(0x1d3)),(this[_0x477ecb(0x457)]=_0x594539==null?void 0x0:_0x594539[_0x477ecb(0x457)],this[_0x477ecb(0x1d3)]=_0x594539==null?void 0x0:_0x594539[_0x477ecb(0x1d3)]);}static[_0x5f56c6(0x2ee)](_0x58d1d5,_0x456f3e){const _0x54dd49=_0x5f56c6,{text:_0x1a6347,color:_0x1d1f65}=_0x456f3e;_0x58d1d5[_0x54dd49(0x32a)](),_0x58d1d5[_0x54dd49(0x1af)]=_0x54dd49(0x221);const _0x49f0fb=_0x58d1d5['measureText'](_0x1a6347)[_0x54dd49(0x368)],_0x152dc9=Math['min'](_0x49f0fb+0x2*_0x42ff88,_0x3ecd90);_0x40b94c(_0x58d1d5,{'height':_0x5f0a09,'radius':0x4,'width':_0x152dc9,'fill':_0x1d1f65,'evented':!0x1}),_0x58d1d5[_0x54dd49(0x384)]=_0x54dd49(0x57a);const _0x4e9811=_0x42ff88,_0x4d756a=_0x5f0a09-_0x552fc6,_0x4f5f2d=_0x3ecd90-0x2*_0x42ff88;if(_0x49f0fb>_0x4f5f2d){let _0x59e732='',_0x1c6027=0x0;for(const _0x5f0f02 of _0x1a6347){const _0x8957f=_0x58d1d5[_0x54dd49(0x1ed)](_0x5f0f02)['width'];if(_0x1c6027+_0x8957f<=_0x4f5f2d-_0x58d1d5['measureText'](_0x54dd49(0x241))[_0x54dd49(0x368)])_0x59e732+=_0x5f0f02,_0x1c6027+=_0x8957f;else{_0x59e732+=_0x54dd49(0x241);break;}}_0x58d1d5['fillText'](_0x59e732,_0x4e9811,_0x4d756a);}else _0x58d1d5[_0x54dd49(0x203)](_0x1a6347,_0x4e9811,_0x4d756a);_0x58d1d5[_0x54dd49(0x590)]();}[_0x5f56c6(0x36d)](_0x438436){_0x25e89f['drawWith'](_0x438436,this);}}const _0x4129a8=_0x5f56c6(0x3a5),_0x30ce42='collab-text-range-',_0x5a1aa1=_0x5f56c6(0x45b),_0xf46776=0x6,_0x30f8ca=1.5,_0x45c28a=0x4,_0x550f06=1.5,_0x43fd54=_0x5f56c6(0x34e);class _0x1f326f{constructor(_0x13ce71,_0x4a2e95,_0x312300,_0x7c55bb){const _0x1c0291=_0x5f56c6;_0x48f470(this,_0x1c0291(0x369),[]),_0x48f470(this,_0x1c0291(0x197),null),_0x48f470(this,_0x1c0291(0x390),null),_0x48f470(this,_0x1c0291(0x320),null),_0x48f470(this,'_hideTimer',null),_0x48f470(this,_0x1c0291(0x199),null),(this[_0x1c0291(0x505)]=_0x13ce71,this[_0x1c0291(0x3af)]=_0x4a2e95,this['_docSkeleton']=_0x312300,this[_0x1c0291(0x502)]=_0x7c55bb,this['_render']());}set[_0x5f56c6(0x533)](_0x40f2be){const _0x179d7e=_0x5f56c6;_0x40f2be?(this[_0x179d7e(0x320)]&&this['_anchorDot'][_0x179d7e(0x548)](),this[_0x179d7e(0x390)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x179d7e(0x390)][_0x179d7e(0x548)]());}[_0x5f56c6(0x1b8)](){const _0x294b50=_0x5f56c6;for(const _0x2ff0e3 of this[_0x294b50(0x369)])_0x2ff0e3[_0x294b50(0x1b8)]();this[_0x294b50(0x390)]&&this['_textBubble']['dispose'](),this[_0x294b50(0x320)]&&this[_0x294b50(0x320)][_0x294b50(0x1b8)](),this['_anchor']&&this[_0x294b50(0x197)][_0x294b50(0x1b8)](),this[_0x294b50(0x199)]&&this[_0x294b50(0x199)]();}[_0x5f56c6(0x259)](){const _0x1deeb8=_0x5f56c6;var _0x207689;const {_docSkeleton:_0x27e642,_document:_0x4d3f01}=this,{color:_0x352f94,name:_0x3e29c9,ranges:_0x5bb168}=this['_cursor'],_0x16cbe5=_0x4d3f01[_0x1deeb8(0x501)](),{docsLeft:_0x414ddf,docsTop:_0x519057}=_0x16cbe5,_0x2c849e=new _0x214ea6[(_0x1deeb8(0x1f4))](_0x16cbe5,_0x27e642);for(const {startOffset:_0x1833ef,endOffset:_0x23dc10,rangeType:_0x4552a5,segmentId:_0xd5ac81,segmentPage:_0x5c1c04,collapsed:_0x394b20,isActive:_0x744402}of _0x5bb168){const _0x3695f=_0x27e642[_0x1deeb8(0x532)](_0x1833ef,!0x0,_0xd5ac81,_0x5c1c04);let _0x1ba218=_0x27e642[_0x1deeb8(0x532)](_0x23dc10,!0x0,_0xd5ac81,_0x5c1c04);if(_0x1ba218==null&&(_0x1ba218=_0x27e642[_0x1deeb8(0x532)](_0x23dc10-0x1,!0x1,_0xd5ac81,_0x5c1c04)),_0x744402){const {contentBoxPointGroup:_0x35d3a0}=_0x2c849e[_0x1deeb8(0x296)](_0x1ba218,_0x1ba218);if(_0x35d3a0['length']===0x0)continue;this[_0x1deeb8(0x263)](_0x352f94,_0x35d3a0,_0x414ddf,_0x519057,_0x3e29c9),this[_0x1deeb8(0x199)]=this[_0x1deeb8(0x40d)]();}if(!_0x394b20&&_0x3695f&&_0x1ba218){if(_0x4552a5===_0x29630e[_0x1deeb8(0x58c)]['RECT']){const _0x28de50=new _0x214ea6[(_0x1deeb8(0x398))](_0x16cbe5,_0x27e642),{pointGroup:_0xe9e467}=(_0x207689=_0x28de50[_0x1deeb8(0x296)](_0x3695f,_0x1ba218))!=null?_0x207689:{};if(_0xe9e467==null||_0xe9e467[_0x1deeb8(0x47d)]===0x0)continue;this[_0x1deeb8(0x2b8)](_0x352f94,_0xe9e467,_0x414ddf,_0x519057);}else{const {borderBoxPointGroup:_0xcdeb3d}=_0x2c849e[_0x1deeb8(0x296)](_0x3695f,_0x1ba218);if(_0xcdeb3d['length']===0x0)continue;this['_drawTextRange'](_0x352f94,_0xcdeb3d,_0x414ddf,_0x519057);}}}}['_drawAnchor'](_0x4c58be,_0x44f20d,_0x3b58c8,_0x1a0bcb,_0x6a884c){const _0x16cc7c=_0x5f56c6,_0x4a7eff=this[_0x16cc7c(0x1ff)](_0x44f20d),{left:_0x3502e3,top:_0x760b84,height:_0x5e4875}=_0x4a7eff,_0x25fe19=this[_0x16cc7c(0x2f7)](),_0x5ad886=_0x550f06/_0x25fe19,_0x26a6a1=new _0x37c548[(_0x16cc7c(0x50e))](_0x4129a8+_0x29630e['Tools'][_0x16cc7c(0x2d5)](_0xf46776),{'left':_0x3502e3+_0x3b58c8-_0x5ad886,'top':_0x760b84+_0x1a0bcb,'height':_0x5e4875,'width':_0x30f8ca,'fill':_0x4c58be||_0x37c548[_0x16cc7c(0x310)](_0x29630e[_0x16cc7c(0x260)][_0x16cc7c(0x500)],0x0),'strokeWidth':_0x5ad886,'stroke':_0x43fd54,'evented':!0x0});this['_anchor']=_0x26a6a1,this[_0x16cc7c(0x3af)][_0x16cc7c(0x4f8)](_0x26a6a1,_0x214ea6[_0x16cc7c(0x291)]);const _0xc41041=new _0x37c548['Rect'](_0x4129a8+_0x29630e['Tools'][_0x16cc7c(0x2d5)](_0xf46776),{'left':_0x3502e3+_0x3b58c8-_0x5ad886,'top':_0x760b84+_0x1a0bcb-_0x45c28a/0x2,'height':_0x45c28a,'width':_0x45c28a,'fill':_0x4c58be||_0x37c548[_0x16cc7c(0x310)](_0x29630e['COLORS'][_0x16cc7c(0x500)],0x0),'strokeWidth':0x0,'stroke':_0x4c58be||_0x37c548['getColor'](_0x29630e[_0x16cc7c(0x260)][_0x16cc7c(0x500)],0x0),'evented':!0x1});this[_0x16cc7c(0x320)]=_0xc41041,this[_0x16cc7c(0x3af)][_0x16cc7c(0x4f8)](_0xc41041,_0x214ea6['TEXT_RANGE_LAYER_INDEX']);const _0x18394c=new _0x25e89f(_0x4129a8+_0x29630e[_0x16cc7c(0x4a1)][_0x16cc7c(0x2d5)](_0xf46776),{'left':_0x3502e3+_0x3b58c8-_0x5ad886,'top':_0x760b84+_0x1a0bcb-_0x5f0a09,'text':_0x6a884c,'color':_0x4c58be});this[_0x16cc7c(0x390)]=_0x18394c,this[_0x16cc7c(0x3af)][_0x16cc7c(0x4f8)](_0x18394c,_0x214ea6[_0x16cc7c(0x291)]),this['_hover']=!0x1;}['_handleHover'](){const _0x5068d7=_0x5f56c6,_0x34c1d7=this[_0x5068d7(0x197)][_0x5068d7(0x200)][_0x5068d7(0x3cd)](()=>{const _0x30b0ff=_0x5068d7;this[_0x30b0ff(0x533)]=!0x0;}),_0x227679=this[_0x5068d7(0x197)][_0x5068d7(0x412)][_0x5068d7(0x3cd)](()=>{const _0x2237da=_0x5068d7;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x2237da(0x2ed)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x580837=_0x5068d7;_0x34c1d7[_0x580837(0x349)](),_0x227679['unsubscribe']();};}['_drawTextRange'](_0x284602,_0x32651d,_0x5715f2,_0x18d25c){const _0x3e7f23=_0x5f56c6,_0x450fa1=new _0x29630e['ColorKit'](_0x284602)['setAlpha'](0.2)[_0x3e7f23(0x456)](),_0x21242d=new _0x37c548[(_0x3e7f23(0x514))](_0x30ce42+_0x29630e[_0x3e7f23(0x4a1)][_0x3e7f23(0x2d5)](_0xf46776),{'pointsGroup':_0x32651d,'fill':_0x450fa1||_0x37c548['getColor'](_0x29630e['COLORS'][_0x3e7f23(0x500)],0.2),'left':_0x5715f2,'top':_0x18d25c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e7f23(0x369)]['push'](_0x21242d),this[_0x3e7f23(0x3af)][_0x3e7f23(0x4f8)](_0x21242d,_0x214ea6['TEXT_RANGE_LAYER_INDEX']);}[_0x5f56c6(0x2b8)](_0x336554,_0x4b725e,_0x51170d,_0x143d64){const _0x28921e=_0x5f56c6,_0x5c78f3=new _0x29630e[(_0x28921e(0x252))](_0x336554)[_0x28921e(0x510)](0.2)[_0x28921e(0x456)](),_0x337d5e=new _0x37c548[(_0x28921e(0x514))](_0x5a1aa1+_0x29630e[_0x28921e(0x4a1)][_0x28921e(0x2d5)](_0xf46776),{'pointsGroup':_0x4b725e,'fill':_0x5c78f3||_0x37c548['getColor'](_0x29630e[_0x28921e(0x260)]['black'],0.2),'left':_0x51170d,'top':_0x143d64,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x28921e(0x369)]['push'](_0x337d5e),this[_0x28921e(0x3af)][_0x28921e(0x4f8)](_0x337d5e,_0x214ea6[_0x28921e(0x291)]);}['_getAnchorBounding'](_0x2d0597){const _0x23cf47=_0x2d0597[0x0],_0x1d4128=_0x23cf47[0x0],_0x1111ae=_0x23cf47[0x2],{x:_0x266d5e,y:_0x5d1cf6}=_0x1d4128,{x:_0xfbc425,y:_0xdfc7cb}=_0x1111ae;return{'left':_0x266d5e,'top':_0x5d1cf6,'width':_0xfbc425-_0x266d5e,'height':_0xdfc7cb-_0x5d1cf6};}[_0x5f56c6(0x2f7)](){const _0x4a79a4=_0x5f56c6,{scaleX:_0x206e54,scaleY:_0x586730}=this[_0x4a79a4(0x3af)][_0x4a79a4(0x4ef)]();return Math[_0x4a79a4(0x217)](_0x206e54,_0x586730);}}var _0x54ab37=Object['defineProperty'],_0x2138ae=Object[_0x5f56c6(0x47e)],_0xe3cbc5=(_0x261e3a,_0x523ce9,_0x21b459,_0x52e3df)=>{const _0xbed307=_0x5f56c6;for(var _0x9f2974=_0x52e3df>0x1?void 0x0:_0x52e3df?_0x2138ae(_0x523ce9,_0x21b459):_0x523ce9,_0x152d3e=_0x261e3a[_0xbed307(0x47d)]-0x1,_0xb0f412;_0x152d3e>=0x0;_0x152d3e--)(_0xb0f412=_0x261e3a[_0x152d3e])&&(_0x9f2974=(_0x52e3df?_0xb0f412(_0x523ce9,_0x21b459,_0x9f2974):_0xb0f412(_0x9f2974))||_0x9f2974);return _0x52e3df&&_0x9f2974&&_0x54ab37(_0x523ce9,_0x21b459,_0x9f2974),_0x9f2974;},_0x17a71a=(_0x46ae1e,_0xcb0aee)=>(_0x4cdd22,_0x3c0ead)=>_0xcb0aee(_0x4cdd22,_0x3c0ead,_0x46ae1e);let _0xe3da1a=class extends _0x29630e['RxDisposable']{constructor(_0xc15acc,_0x31f1c1,_0x2487a6,_0xd58c74,_0x39a109){const _0x3d72ad=_0x5f56c6;super(),_0x48f470(this,_0x3d72ad(0x381),[]),_0x48f470(this,_0x3d72ad(0x207),[]),(this[_0x3d72ad(0x2e4)]=_0xc15acc,this['_docSkeletonManagerService']=_0x31f1c1,this[_0x3d72ad(0x354)]=_0x2487a6,this[_0x3d72ad(0x2a7)]=_0xd58c74,this[_0x3d72ad(0x389)]=_0x39a109,this[_0x3d72ad(0x436)]());}['_init'](){const _0x279101=_0x5f56c6,_0x2cf0f7=this[_0x279101(0x2e4)]['unitId'],_0x25339b=this[_0x279101(0x2d7)];this[_0x279101(0x52f)](_0x17e48c['combineLatest']([this[_0x279101(0x354)][_0x279101(0x4fb)](_0x2cf0f7),this['_themeService']['currentTheme$']])['pipe'](_0x56098d[_0x279101(0x239)](([_0x4e2a31,_0x39a743])=>({'skeleton':_0x25339b[_0x279101(0x50b)](),'cursors':[..._0x4e2a31[_0x279101(0x182)]()][_0x279101(0x3c1)](_0x1e1b32=>({..._0x1e1b32,'color':_0x39a743[_0x1e1b32[_0x279101(0x457)]]}))})))[_0x279101(0x18a)](_0x29f728=>{const _0x72b8b7=_0x279101;if(this[_0x72b8b7(0x184)](),_0x29f728){const {skeleton:_0x3b9b39,cursors:_0x388c2c}=_0x29f728;this[_0x72b8b7(0x443)](_0x3b9b39,_0x388c2c);}})),this['_initResize'](),this[_0x279101(0x2ba)]();}[_0x5f56c6(0x443)](_0x45a55e,_0xca806a){const _0x4754dd=_0x5f56c6,{scene:_0x2a22b3,mainComponent:_0x40b4b4}=this[_0x4754dd(0x2e4)],_0x1bfdf7=_0xca806a['map'](_0x1a4772=>new _0x1f326f(_0x1a4772,_0x2a22b3,_0x45a55e,_0x40b4b4));this['_cursorShapes']=_0x1bfdf7,this[_0x4754dd(0x207)]=_0xca806a;}[_0x5f56c6(0x289)](){const _0x1ff374=_0x5f56c6;this[_0x1ff374(0x184)]();const {scene:_0x222993,mainComponent:_0x4b5ab4}=this[_0x1ff374(0x2e4)],_0x28b5d2=this[_0x1ff374(0x2d7)][_0x1ff374(0x50b)](),_0x4168b2=this[_0x1ff374(0x207)]['map'](_0x3f4f6f=>new _0x1f326f(_0x3f4f6f,_0x222993,_0x28b5d2,_0x4b5ab4));this[_0x1ff374(0x381)]=_0x4168b2;}[_0x5f56c6(0x184)](){const _0x1ca2cb=_0x5f56c6;this['_cursorShapes'][_0x1ca2cb(0x57d)](_0x262f57=>_0x262f57[_0x1ca2cb(0x1b8)]()),this[_0x1ca2cb(0x381)]=[];}[_0x5f56c6(0x2ba)](){const _0x1b1ad4=_0x5f56c6,_0x5716d3=[_0x214ea6['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x1b1ad4(0x2a7)][_0x1b1ad4(0x373)](_0x3065aa=>{const _0x404de0=_0x1b1ad4;_0x5716d3[_0x404de0(0x3ba)](_0x3065aa['id'])&&_0x3065aa[_0x404de0(0x1ee)][_0x404de0(0x546)]===this['_context'][_0x404de0(0x546)]&&this[_0x404de0(0x289)]();}));}['_initResize'](){const _0x29373a=_0x5f56c6;this['disposeWithMe'](_0x29630e[_0x29373a(0x517)](this[_0x29373a(0x2e4)][_0x29373a(0x28c)][_0x29373a(0x55d)])[_0x29373a(0x300)](_0x56098d['filter'](_0x54fd14=>_0x54fd14[_0x29373a(0x566)]===_0x37c548[_0x29373a(0x380)][_0x29373a(0x1de)]),_0x56098d['throttleTime'](0x10))[_0x29373a(0x18a)](()=>{const _0x4b41ac=_0x29373a;this[_0x4b41ac(0x289)]();}));}};_0xe3da1a=_0xe3cbc5([_0x17a71a(0x1,_0x29630e['Inject'](_0x31abfa[_0x5f56c6(0x364)])),_0x17a71a(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x335c52)),_0x17a71a(0x3,_0x29630e[_0x5f56c6(0x1a4)]),_0x17a71a(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e['ThemeService']))],_0xe3da1a);const _0x5622a4=0x1,_0x542a31=1.5;class _0x2b4d87 extends _0x37c548['Shape']{constructor(_0xf37512,_0x49fc5e){const _0x8bf512=_0x5f56c6;super(_0xf37512,_0x49fc5e),_0x48f470(this,_0x8bf512(0x191)),_0x48f470(this,'_hovered',!0x1),_0x48f470(this,_0x8bf512(0x295)),_0x48f470(this,_0x8bf512(0x21c),''),_0x48f470(this,_0x8bf512(0x33e),_0x8bf512(0x226)),_0x48f470(this,_0x8bf512(0x388)),(_0x49fc5e&&this[_0x8bf512(0x1f2)](_0x49fc5e),this[_0x8bf512(0x200)]['subscribeEvent'](()=>this[_0x8bf512(0x1f2)]({'hovered':!0x0})),this['onPointerLeave$'][_0x8bf512(0x3cd)](()=>this[_0x8bf512(0x1f2)]({'hovered':!0x1})));}[_0x5f56c6(0x1f2)](_0x5e7855){const _0x512b20=_0x5f56c6;var _0x4c6351,_0x549530,_0x2a04d2,_0x4b9436,_0x1f8306,_0xb75df3;this[_0x512b20(0x191)]=(_0x4c6351=_0x5e7855[_0x512b20(0x457)])!=null?_0x4c6351:this['_color'],this[_0x512b20(0x24a)]=(_0x549530=_0x5e7855['hovered'])!=null?_0x549530:this[_0x512b20(0x24a)],this[_0x512b20(0x295)]=(_0x2a04d2=_0x5e7855['range'])!=null?_0x2a04d2:this[_0x512b20(0x295)],this[_0x512b20(0x21c)]=(_0x4b9436=_0x5e7855[_0x512b20(0x244)])!=null?_0x4b9436:this[_0x512b20(0x21c)],this[_0x512b20(0x33e)]=(_0x1f8306=_0x5e7855[_0x512b20(0x4bf)])!=null?_0x1f8306:this[_0x512b20(0x33e)],this[_0x512b20(0x388)]=(_0xb75df3=_0x5e7855[_0x512b20(0x428)])!=null?_0xb75df3:this[_0x512b20(0x388)],this[_0x512b20(0x1e1)]({'width':_0x5e7855[_0x512b20(0x368)],'height':_0x5e7855[_0x512b20(0x3ee)]});}[_0x5f56c6(0x467)](_0x2f0a8d){const _0x4ede4b=_0x5f56c6,{row:_0xb94999,column:_0x4cb9b4}=_0x2f0a8d;if(_0xb94999>=this['_range']['startRow']&&_0xb94999<=this['_range']['endRow']&&_0x4cb9b4>=this[_0x4ede4b(0x295)][_0x4ede4b(0x3ea)]&&_0x4cb9b4<=this['_range'][_0x4ede4b(0x523)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4ede4b(0x1f2)]({'hovered':!0x1});}[_0x5f56c6(0x447)](_0x5e6c58){return!0x1;}[_0x5f56c6(0x36d)](_0x3c4b2e){const _0x18e646=_0x5f56c6;_0x37c548[_0x18e646(0x50e)][_0x18e646(0x2ee)](_0x3c4b2e,{'width':this[_0x18e646(0x368)],'height':this[_0x18e646(0x3ee)],'strokeWidth':_0x542a31,'stroke':this[_0x18e646(0x191)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x18e646(0x24a)]&&(_0x3c4b2e[_0x18e646(0x32a)](),_0x3c4b2e[_0x18e646(0x42a)](0x1,0x0,0x0,0x1,this[_0x18e646(0x368)],this[_0x18e646(0x33e)]==='bottom'?0x0:-_0x5f0a09),_0x25e89f[_0x18e646(0x2ee)](_0x3c4b2e,{'text':this['_name'],'color':this[_0x18e646(0x191)]}),_0x3c4b2e[_0x18e646(0x590)]());}}var _0x2e6bd3=Object[_0x5f56c6(0x17a)],_0x5519f0=Object['getOwnPropertyDescriptor'],_0x230297=(_0x12e200,_0x316763,_0x2b66db,_0x2086a1)=>{const _0x2b04fd=_0x5f56c6;for(var _0x744ef1=_0x2086a1>0x1?void 0x0:_0x2086a1?_0x5519f0(_0x316763,_0x2b66db):_0x316763,_0x4f520f=_0x12e200[_0x2b04fd(0x47d)]-0x1,_0x396bc9;_0x4f520f>=0x0;_0x4f520f--)(_0x396bc9=_0x12e200[_0x4f520f])&&(_0x744ef1=(_0x2086a1?_0x396bc9(_0x316763,_0x2b66db,_0x744ef1):_0x396bc9(_0x744ef1))||_0x744ef1);return _0x2086a1&&_0x744ef1&&_0x2e6bd3(_0x316763,_0x2b66db,_0x744ef1),_0x744ef1;},_0x14bc2d=(_0x12cdfe,_0x5bb886)=>(_0x36f7fb,_0x3670d6)=>_0x5bb886(_0x36f7fb,_0x3670d6,_0x12cdfe);const _0x19189d=0x1389;let _0x1abaed=class extends _0x29630e['RxDisposable']{constructor(_0x41576e,_0x465826,_0xd84507,_0x5040d6){const _0x2c1d19=_0x5f56c6;super(),_0x48f470(this,_0x2c1d19(0x207),new Set()),_0x48f470(this,_0x2c1d19(0x44a),null),(this[_0x2c1d19(0x2e4)]=_0x41576e,this[_0x2c1d19(0x23f)]=_0x465826,this[_0x2c1d19(0x354)]=_0xd84507,this['_themeService']=_0x5040d6,this[_0x2c1d19(0x436)]());}[_0x5f56c6(0x436)](){const _0x35b6b4=_0x5f56c6;this[_0x35b6b4(0x23f)][_0x35b6b4(0x4e5)][_0x35b6b4(0x300)](_0x56098d[_0x35b6b4(0x47a)](this[_0x35b6b4(0x3ce)]),_0x56098d[_0x35b6b4(0x42c)](_0x138628=>{const _0x29af0a=_0x35b6b4;if(_0x138628){const _0x201600=_0x138628['sheetId'];return _0x17e48c['combineLatest'](this[_0x29af0a(0x354)][_0x29af0a(0x4fb)](this[_0x29af0a(0x2e4)][_0x29af0a(0x546)]),this[_0x29af0a(0x389)][_0x29af0a(0x33f)])[_0x29af0a(0x300)](_0x56098d[_0x29af0a(0x239)](([_0x470f6f,_0x529d7b])=>{const _0x58145d=_0x29af0a,_0x187462=new Map();return _0x470f6f[_0x58145d(0x57d)]((_0x5405f9,_0xb0c4c4)=>{const _0x2fd81a=_0x58145d;if(_0x5405f9[_0x2fd81a(0x3b4)]===_0x201600){const _0x51a81a={..._0x5405f9};_0x51a81a['color']=_0x529d7b[_0x5405f9[_0x2fd81a(0x457)]],_0x187462[_0x2fd81a(0x4f1)](_0xb0c4c4,_0x51a81a);}}),{'skeleton':_0x138628,'cursors':_0x187462};}));}return _0x17e48c['of']({'skeleton':null,'cursors':new Map()});}))[_0x35b6b4(0x18a)](({skeleton:_0x371d3a,cursors:_0x381f69})=>{const _0x3d2ec7=_0x35b6b4;this[_0x3d2ec7(0x184)](),_0x371d3a&&this['_updateCollabCursors'](_0x371d3a,_0x381f69);}),this[_0x35b6b4(0x23f)][_0x35b6b4(0x4e5)]['subscribe'](_0x52a0d1=>{const _0x3f7df1=_0x35b6b4;if(_0x52a0d1==null)return;const {skeleton:_0x231ca6}=_0x52a0d1,{scene:_0x4e3a5d}=this['_context'];_0x4e3a5d[_0x3f7df1(0x51b)]['subscribeEvent'](_0x29630e[_0x3f7df1(0x528)](_0x1372f3=>{const _0x410d3c=_0x3f7df1;var _0x35e214,_0x5c773b;const {offsetX:_0x206a4b,offsetY:_0xed7d83}=_0x1372f3,{x:_0x470f39,y:_0x33fd18}=_0x4e3a5d[_0x410d3c(0x3fe)](_0x37c548[_0x410d3c(0x328)]['FromArray']([_0x206a4b,_0xed7d83])),{scaleX:_0x30c0e9,scaleY:_0x6034ba}=_0x4e3a5d[_0x410d3c(0x4ef)](),_0x2d8e86=_0x4e3a5d['getViewport'](_0x30e2ba[_0x410d3c(0x228)][_0x410d3c(0x1d5)]),_0x2a030d=_0x4e3a5d[_0x410d3c(0x227)](_0x37c548[_0x410d3c(0x328)][_0x410d3c(0x1e2)]([_0x470f39,_0x33fd18]),_0x2d8e86),_0x5c09b7=_0x231ca6[_0x410d3c(0x2b1)](_0x206a4b,_0xed7d83,_0x30c0e9,_0x6034ba,_0x2a030d);((_0x35e214=this['_lastPointer'])==null?void 0x0:_0x35e214['column'])===_0x5c09b7[_0x410d3c(0x1aa)]&&((_0x5c773b=this['_lastPointer'])==null?void 0x0:_0x5c773b[_0x410d3c(0x4a0)])===_0x5c09b7[_0x410d3c(0x4a0)]||this[_0x410d3c(0x207)][_0x410d3c(0x57d)](_0x8ac32a=>{const _0x26fef7=_0x410d3c;_0x8ac32a[_0x26fef7(0x467)](_0x5c09b7);});},0x64));});}[_0x5f56c6(0x443)](_0x2c418e,_0x1028a7){const _0x546d52=_0x5f56c6;var _0x4d1e6d;const _0x245284=(_0x4d1e6d=this[_0x546d52(0x23f)][_0x546d52(0x32d)]())==null?void 0x0:_0x4d1e6d[_0x546d52(0x2d0)];if(!_0x245284)return;const _0x3f5671=this[_0x546d52(0x1ad)]();if(!_0x3f5671)return;this[_0x546d52(0x207)][_0x546d52(0x57d)](_0x3a425f=>{_0x3a425f['makeDirty']();});const {scene:_0x3a0a99}=_0x3f5671,_0x50c427=_0x4f0d39(Array[_0x546d52(0x2b9)](_0x1028a7[_0x546d52(0x182)]()))[_0x546d52(0x239)](_0x70a283=>{const _0x557461=_0x546d52,{color:_0x4c4252,range:_0x3e6aac,name:_0x493b16,selection:_0x2842b6,sheetID:_0x416393}=_0x70a283,{startColumn:_0x186b89,startRow:_0x21d468,endColumn:_0x3ea50b,endRow:_0x577711}=_0x3e6aac,_0x294a6e=_0x30e2ba[_0x557461(0x41b)](_0x21d468,_0x186b89,_0x3a0a99,_0x245284),_0x3657bb=_0x30e2ba['getCoordByCell'](_0x577711,_0x3ea50b,_0x3a0a99,_0x245284),{columnHeaderHeightAndMarginTop:_0x3ec7ad}=_0x245284,{startX:_0xaa69c,startY:_0x3ce8c8}=_0x294a6e,{endX:_0x558532,endY:_0x174c09}=_0x3657bb,_0xab95cf=_0x558532-_0xaa69c,_0x24a44e=_0x174c09-_0x3ce8c8,_0x3ad5ae={'labelPosition':_0x3ce8c8-_0x3ec7ad>=_0x5f0a09?_0x557461(0x226):'bottom','sheetID':_0x416393,'range':_0x3e6aac,'color':_0x4c4252,'name':_0x493b16,'selection':_0x2842b6,'left':_0xaa69c,'top':_0x3ce8c8,'width':_0xab95cf,'height':_0x24a44e,'evented':!0x1,'zIndex':_0x19189d};return new _0x2b4d87(_0x493b16,_0x3ad5ae);});_0x3a0a99[_0x546d52(0x44f)](_0x50c427,_0x5622a4),this[_0x546d52(0x207)]=new Set(_0x50c427);}[_0x5f56c6(0x184)](){const _0x401db1=_0x5f56c6;var _0x5d7af1;(_0x5d7af1=this[_0x401db1(0x207)])==null||_0x5d7af1[_0x401db1(0x57d)](_0x188532=>_0x188532[_0x401db1(0x1b8)]());}[_0x5f56c6(0x1ad)](){const _0x53a068=_0x5f56c6;return _0x30e2ba['getSheetObject'](this['_context']['unit'],this[_0x53a068(0x2e4)]);}};_0x1abaed=_0x230297([_0x14bc2d(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x30e2ba[_0x5f56c6(0x2e7)])),_0x14bc2d(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x335c52)),_0x14bc2d(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x1dd)]))],_0x1abaed);function _0x4f0d39(_0x7d78cf){const _0x15cd9d=_0x5f56c6,_0x11fc7b=new Map();return _0x7d78cf[_0x15cd9d(0x57d)](_0x1fd662=>{const _0xe9b456=_0x15cd9d;if(_0x11fc7b['has'](_0x1fd662['selection'])){const _0x43f1fb=_0x11fc7b[_0xe9b456(0x44d)](_0x1fd662['selection']);_0x43f1fb[_0xe9b456(0x244)]+=',\x20'+_0x1fd662[_0xe9b456(0x244)];}else _0x11fc7b[_0xe9b456(0x4f1)](_0x1fd662['selection'],_0x1fd662);}),Array[_0x15cd9d(0x2b9)](_0x11fc7b[_0x15cd9d(0x182)]());}var _0x8d3ee=function(){const _0x3c7e15=_0x5f56c6;return _0x8d3ee=Object[_0x3c7e15(0x3f7)]||function(_0x805950){const _0xd35a62=_0x3c7e15;for(var _0xd6f92c,_0x4bb269=0x1,_0x2fe1a3=arguments[_0xd35a62(0x47d)];_0x4bb269<_0x2fe1a3;_0x4bb269++){_0xd6f92c=arguments[_0x4bb269];for(var _0x2ae59c in _0xd6f92c)Object[_0xd35a62(0x19d)][_0xd35a62(0x413)][_0xd35a62(0x424)](_0xd6f92c,_0x2ae59c)&&(_0x805950[_0x2ae59c]=_0xd6f92c[_0x2ae59c]);}return _0x805950;},_0x8d3ee[_0x3c7e15(0x257)](this,arguments);},_0x256be7=function(_0x5a37b1,_0x370601){const _0x5b0d56=_0x5f56c6;var _0x32ca65={};for(var _0x16d11c in _0x5a37b1)Object['prototype'][_0x5b0d56(0x413)][_0x5b0d56(0x424)](_0x5a37b1,_0x16d11c)&&_0x370601['indexOf'](_0x16d11c)<0x0&&(_0x32ca65[_0x16d11c]=_0x5a37b1[_0x16d11c]);if(_0x5a37b1!=null&&typeof Object[_0x5b0d56(0x58b)]=='function'){for(var _0x41d163=0x0,_0x16d11c=Object[_0x5b0d56(0x58b)](_0x5a37b1);_0x41d163<_0x16d11c[_0x5b0d56(0x47d)];_0x41d163++)_0x370601['indexOf'](_0x16d11c[_0x41d163])<0x0&&Object[_0x5b0d56(0x19d)]['propertyIsEnumerable'][_0x5b0d56(0x424)](_0x5a37b1,_0x16d11c[_0x41d163])&&(_0x32ca65[_0x16d11c[_0x41d163]]=_0x5a37b1[_0x16d11c[_0x41d163]]);}return _0x32ca65;},_0x41b95b=_0xf902af[_0x5f56c6(0x245)](function(_0x3c1ee3,_0xbc9b31){const _0x45261c=_0x5f56c6;var _0x133135=_0x3c1ee3[_0x45261c(0x25a)],_0x14f993=_0x3c1ee3['id'],_0x31d935=_0x3c1ee3[_0x45261c(0x3a0)],_0x1819b5=_0x3c1ee3[_0x45261c(0x168)],_0x209d7b=_0x256be7(_0x3c1ee3,[_0x45261c(0x25a),'id',_0x45261c(0x3a0),_0x45261c(0x168)]),_0x4c603e=_0x45261c(0x2e9)[_0x45261c(0x2e6)](_0x14f993,'\x20')[_0x45261c(0x2e6)](_0x31d935||'')[_0x45261c(0x43c)](),_0x5ead95=_0xf902af[_0x45261c(0x397)]('_'[_0x45261c(0x2e6)](_0x3a472f()));return _0x48e96d(_0x133135,''[_0x45261c(0x2e6)](_0x14f993),{'defIds':_0x133135[_0x45261c(0x593)],'idSuffix':_0x5ead95[_0x45261c(0x265)]},_0x8d3ee({'ref':_0xbc9b31,'className':_0x4c603e},_0x209d7b),_0x1819b5);});function _0x48e96d(_0x175b8e,_0x57689a,_0x15ce53,_0x475329,_0x28d337){const _0xb87cf3=_0x5f56c6;return _0xf902af['createElement'](_0x175b8e[_0xb87cf3(0x508)],_0x8d3ee(_0x8d3ee({'key':_0x57689a},_0x39bc4a(_0x175b8e,_0x15ce53,_0x28d337)),_0x475329),(_0x3976da(_0x175b8e,_0x15ce53)['children']||[])['map'](function(_0x3bc8d6,_0x350da6){const _0x1e34f9=_0xb87cf3;return _0x48e96d(_0x3bc8d6,''[_0x1e34f9(0x2e6)](_0x57689a,'-')[_0x1e34f9(0x2e6)](_0x175b8e[_0x1e34f9(0x508)],'-')[_0x1e34f9(0x2e6)](_0x350da6),_0x15ce53,void 0x0,_0x28d337);}));}function _0x39bc4a(_0x17ec3c,_0x44d0f2,_0x3293cf){const _0x14d598=_0x5f56c6;var _0x5338f6=_0x8d3ee({},_0x17ec3c[_0x14d598(0x37e)]);_0x3293cf!=null&&_0x3293cf[_0x14d598(0x463)]&&_0x5338f6[_0x14d598(0x4d9)]===_0x14d598(0x463)&&(_0x5338f6[_0x14d598(0x4d9)]=_0x3293cf[_0x14d598(0x463)]);var _0x534850=_0x44d0f2[_0x14d598(0x593)];return!_0x534850||_0x534850[_0x14d598(0x47d)]===0x0||(_0x17ec3c[_0x14d598(0x508)]===_0x14d598(0x48e)&&_0x5338f6[_0x14d598(0x307)]&&(_0x5338f6[_0x14d598(0x307)]=_0x5338f6[_0x14d598(0x307)]+_0x44d0f2[_0x14d598(0x1bb)]),Object[_0x14d598(0x35e)](_0x5338f6)['forEach'](function(_0x48d0d9){const _0x2849b4=_0x14d598;var _0x3dab81=_0x48d0d9[0x0],_0x21fb8b=_0x48d0d9[0x1];typeof _0x21fb8b==_0x2849b4(0x556)&&(_0x5338f6[_0x3dab81]=_0x21fb8b['replace'](/url\(#(.*)\)/,_0x2849b4(0x38a)[_0x2849b4(0x2e6)](_0x44d0f2[_0x2849b4(0x1bb)],')')));})),_0x5338f6;}function _0x3976da(_0x1ef421,_0x4f4f08){const _0x7e112d=_0x5f56c6;var _0x38aaf3,_0x3390f5=_0x4f4f08[_0x7e112d(0x593)];return!_0x3390f5||_0x3390f5[_0x7e112d(0x47d)]===0x0?_0x1ef421:_0x1ef421['tag']===_0x7e112d(0x1cc)&&(!((_0x38aaf3=_0x1ef421['children'])===null||_0x38aaf3===void 0x0)&&_0x38aaf3['length'])?_0x8d3ee(_0x8d3ee({},_0x1ef421),{'children':_0x1ef421[_0x7e112d(0x335)][_0x7e112d(0x239)](function(_0x55151a){const _0x12648d=_0x7e112d;return typeof _0x55151a[_0x12648d(0x37e)]['id']==_0x12648d(0x556)&&_0x3390f5&&_0x3390f5[_0x12648d(0x16a)](_0x55151a[_0x12648d(0x37e)]['id'])>-0x1?_0x8d3ee(_0x8d3ee({},_0x55151a),{'attrs':_0x8d3ee(_0x8d3ee({},_0x55151a['attrs']),{'id':_0x55151a['attrs']['id']+_0x4f4f08[_0x12648d(0x1bb)]})}):_0x55151a;})}):_0x1ef421;}function _0x3a472f(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x41b95b[_0x5f56c6(0x40b)]=_0x5f56c6(0x24e);var _0x31dc23={'tag':'svg','attrs':{'fill':_0x5f56c6(0x2e1),'viewBox':_0x5f56c6(0x4c7),'width':_0x5f56c6(0x470),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5f56c6(0x2d6)},'children':[{'tag':_0x5f56c6(0x58f),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x5f56c6(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x5f56c6(0x1cc),'attrs':{},'children':[{'tag':_0x5f56c6(0x183),'attrs':{'id':_0x5f56c6(0x4af)},'children':[{'tag':_0x5f56c6(0x58f),'attrs':{'fill':_0x5f56c6(0x365),'d':_0x5f56c6(0x3e8)}}]}]}],'defIds':[_0x5f56c6(0x4af)]},_0x9f82e3=_0xf902af['forwardRef'](function(_0x422393,_0xecb27d){const _0x294312=_0x5f56c6;return _0xf902af[_0x294312(0x278)](_0x41b95b,Object[_0x294312(0x3f7)]({},_0x422393,{'id':_0x294312(0x47b),'ref':_0xecb27d,'icon':_0x31dc23}));});_0x9f82e3[_0x5f56c6(0x40b)]=_0x5f56c6(0x30b);var _0x2f4e41={'tag':_0x5f56c6(0x2f2),'attrs':{'fill':_0x5f56c6(0x2e1),'viewBox':_0x5f56c6(0x4ee),'width':_0x5f56c6(0x470),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5f56c6(0x2c8)},'children':[{'tag':_0x5f56c6(0x58f),'attrs':{'stroke':_0x5f56c6(0x4b8),'d':_0x5f56c6(0x3d1),'strokeLinecap':'round','strokeLinejoin':_0x5f56c6(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x5f56c6(0x1cc),'attrs':{},'children':[{'tag':_0x5f56c6(0x183),'attrs':{'id':_0x5f56c6(0x16e)},'children':[{'tag':'path','attrs':{'fill':_0x5f56c6(0x365),'d':_0x5f56c6(0x3e8),'transform':_0x5f56c6(0x371)}}]}]}],'defIds':[_0x5f56c6(0x16e)]},_0x35b21c=_0xf902af[_0x5f56c6(0x245)](function(_0x4c8eaf,_0x5c885c){const _0x2d790e=_0x5f56c6;return _0xf902af[_0x2d790e(0x278)](_0x41b95b,Object['assign']({},_0x4c8eaf,{'id':_0x2d790e(0x2c6),'ref':_0x5c885c,'icon':_0x2f4e41}));});_0x35b21c[_0x5f56c6(0x40b)]=_0x5f56c6(0x155);function _0xd125e9(_0x2dd920){const _0x412975=_0x5f56c6;var _0x47cb5c,_0x4b019a,_0x548131='';if(typeof _0x2dd920==_0x412975(0x556)||typeof _0x2dd920=='number')_0x548131+=_0x2dd920;else{if(typeof _0x2dd920==_0x412975(0x210)){if(Array[_0x412975(0x400)](_0x2dd920)){var _0x534147=_0x2dd920[_0x412975(0x47d)];for(_0x47cb5c=0x0;_0x47cb5c<_0x534147;_0x47cb5c++)_0x2dd920[_0x47cb5c]&&(_0x4b019a=_0xd125e9(_0x2dd920[_0x47cb5c]))&&(_0x548131&&(_0x548131+='\x20'),_0x548131+=_0x4b019a);}else{for(_0x4b019a in _0x2dd920)_0x2dd920[_0x4b019a]&&(_0x548131&&(_0x548131+='\x20'),_0x548131+=_0x4b019a);}}}return _0x548131;}function _0x4f2541(){const _0x338829=_0x5f56c6;for(var _0x44593e,_0x3ed689,_0x283d88=0x0,_0x3e43ed='',_0x7d32a3=arguments[_0x338829(0x47d)];_0x283d88<_0x7d32a3;_0x283d88++)(_0x44593e=arguments[_0x283d88])&&(_0x3ed689=_0xd125e9(_0x44593e))&&(_0x3e43ed&&(_0x3e43ed+='\x20'),_0x3e43ed+=_0x3ed689);return _0x3e43ed;}const _0x4aec9d={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x5f56c6(0x53d),'onlineStatus':_0x5f56c6(0x33b),'online':'univer-online','offline':_0x5f56c6(0x581)};function _0x44be0c(_0x463c9a){const _0x2ee77e=_0x5f56c6;switch(_0x463c9a){case _0x4cac76[_0x2ee77e(0x385)]:return _0x2ee77e(0x24c);case _0x4cac76['CONFLICT']:return _0x2ee77e(0x269);case _0x4cac76[_0x2ee77e(0x1ae)]:return'collabStatus.fetchMiss';case _0x4cac76[_0x2ee77e(0x352)]:return _0x2ee77e(0x50c);case _0x4cac76[_0x2ee77e(0x53f)]:case _0x4cac76[_0x2ee77e(0x35f)]:return'collabStatus.syncing';case _0x4cac76[_0x2ee77e(0x2bd)]:case _0x4cac76[_0x2ee77e(0x229)]:return _0x2ee77e(0x249);}}function _0x4cc35e(_0xec5c3f){const _0x3270b9=_0x5f56c6,{status$:_0x5b417a}=_0xec5c3f,_0x2a25e6=_0x279664[_0x3270b9(0x33d)](_0x5b417a,_0x4cac76[_0x3270b9(0x352)]),_0x4a1d05=_0x29630e[_0x3270b9(0x573)](_0x29630e[_0x3270b9(0x285)]),_0xe230aa=_0x29630e[_0x3270b9(0x573)](_0x4fdbaf[_0x3270b9(0x580)]),_0x2be350=_0x2a25e6!==_0x4cac76['OFFLINE'],_0x5a09d4=_0x4a1d05['t'](_0x44be0c(_0x2a25e6)),_0x4e62ab=_0x4f2541(_0x4aec9d[_0x3270b9(0x3d3)],{[_0x4aec9d['online']]:_0x2be350,[_0x4aec9d['offline']]:!_0x2be350}),_0x335fdb=_0x2be350?_0xf902af[_0x3270b9(0x278)](_0x35b21c,null):_0xf902af['createElement'](_0x9f82e3,null),_0x5b864a=_0xf902af['useCallback'](()=>{const _0x2900ae=_0x3270b9;_0x2be350||_0xe230aa[_0x2900ae(0x22b)]();},[_0x2be350,_0xe230aa]);function _0x3d0d7d(){const _0x51cb85=_0x3270b9;return _0xf902af['createElement']('div',{'className':_0x4e62ab,'onClick':_0x5b864a},_0xf902af['createElement'](_0x51cb85(0x40f),{'className':_0x4aec9d[_0x51cb85(0x363)]},_0x335fdb),_0xf902af['createElement']('div',{'className':_0x4aec9d[_0x51cb85(0x282)]},_0x5a09d4));}return _0x2be350?_0x3d0d7d():_0xf902af[_0x3270b9(0x278)](_0x2d4ff4[_0x3270b9(0x28b)],{'title':_0x4a1d05['t'](_0x3270b9(0x297))},_0x3d0d7d());}var _0x34809e=Object[_0x5f56c6(0x17a)],_0x429e12=Object[_0x5f56c6(0x47e)],_0x4ccdb6=(_0xbb0377,_0x503748,_0x376946,_0xdb7ce0)=>{const _0x49d3f4=_0x5f56c6;for(var _0x173175=_0xdb7ce0>0x1?void 0x0:_0xdb7ce0?_0x429e12(_0x503748,_0x376946):_0x503748,_0x188fd2=_0xbb0377[_0x49d3f4(0x47d)]-0x1,_0x313d55;_0x188fd2>=0x0;_0x188fd2--)(_0x313d55=_0xbb0377[_0x188fd2])&&(_0x173175=(_0xdb7ce0?_0x313d55(_0x503748,_0x376946,_0x173175):_0x313d55(_0x173175))||_0x173175);return _0xdb7ce0&&_0x173175&&_0x34809e(_0x503748,_0x376946,_0x173175),_0x173175;},_0x477ee4=(_0x27fe4d,_0x485c4c)=>(_0x500447,_0x3052c9)=>_0x485c4c(_0x500447,_0x3052c9,_0x27fe4d);_0x4fdbaf[_0x5f56c6(0x2e0)]=class extends _0x29630e['Disposable']{constructor(_0x2edb62,_0x261d06,_0x178bb3,_0x460584){const _0x383105=_0x5f56c6;super(),_0x48f470(this,'_status$',new _0x17e48c[(_0x383105(0x38b))](_0x4cac76['NOT_COLLAB'])),(this[_0x383105(0x434)]=_0x2edb62,this[_0x383105(0x435)]=_0x261d06,this[_0x383105(0x3cf)]=_0x178bb3,this[_0x383105(0x156)]=_0x460584,this['_initStatusComponent'](),this[_0x383105(0x555)]());}[_0x5f56c6(0x555)](){const _0x2b5ade=_0x5f56c6;this[_0x2b5ade(0x52f)](this[_0x2b5ade(0x434)]['focused$']['pipe'](_0x17e48c[_0x2b5ade(0x42c)](()=>{const _0x128dd8=_0x2b5ade,_0x298c11=this[_0x128dd8(0x434)][_0x128dd8(0x594)]();return _0x298c11?this['_collaborationController'][_0x128dd8(0x301)](_0x298c11['getUnitId']()):_0x17e48c['of'](null);}),_0x17e48c[_0x2b5ade(0x42c)](_0x415c2f=>_0x415c2f?_0x415c2f['status$']:_0x17e48c['of'](_0x4cac76[_0x2b5ade(0x352)])))[_0x2b5ade(0x18a)](_0x56f75e=>{const _0x4a3a96=_0x2b5ade;this[_0x4a3a96(0x190)][_0x4a3a96(0x17b)](_0x56f75e);}));}[_0x5f56c6(0x3c5)](){const _0x3188c4=_0x5f56c6;this[_0x3188c4(0x52f)](this['_uiPartsService']['registerComponent'](_0x279664['BuiltInUIPart']['HEADER_MENU'],()=>_0x29630e[_0x3188c4(0x1d6)](_0x1b2638({'status$':this['_status$'][_0x3188c4(0x2ac)]()}),this[_0x3188c4(0x3cf)])));}},_0x4fdbaf[_0x5f56c6(0x2e0)]=_0x4ccdb6([_0x477ee4(0x0,_0x29630e[_0x5f56c6(0x441)]),_0x477ee4(0x1,_0x279664[_0x5f56c6(0x42f)]),_0x477ee4(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x477ee4(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x405)]))],_0x4fdbaf[_0x5f56c6(0x2e0)]);function _0x1b2638(_0x1b2b5d){const {status$:_0x132529}=_0x1b2b5d;return function(){const _0x5e7bf3=_0xe8fd;return _0xf902af[_0x5e7bf3(0x278)](_0x4cc35e,{'status$':_0x132529});};}const _0x558a6e=_0x29630e[_0x5f56c6(0x284)](_0x5f56c6(0x3c0));var _0x4b927d=Object['defineProperty'],_0x218482=Object[_0x5f56c6(0x47e)],_0x536ba9=(_0x35ffe5,_0x4ea7af,_0x83a723,_0x439149)=>{const _0x150982=_0x5f56c6;for(var _0x43613b=_0x439149>0x1?void 0x0:_0x439149?_0x218482(_0x4ea7af,_0x83a723):_0x4ea7af,_0x406a30=_0x35ffe5[_0x150982(0x47d)]-0x1,_0x1dba27;_0x406a30>=0x0;_0x406a30--)(_0x1dba27=_0x35ffe5[_0x406a30])&&(_0x43613b=(_0x439149?_0x1dba27(_0x4ea7af,_0x83a723,_0x43613b):_0x1dba27(_0x43613b))||_0x43613b);return _0x439149&&_0x43613b&&_0x4b927d(_0x4ea7af,_0x83a723,_0x43613b),_0x43613b;},_0x433333=(_0x128008,_0x59bdbd)=>(_0x12f32e,_0x457ab6)=>_0x59bdbd(_0x12f32e,_0x457ab6,_0x128008);_0x4fdbaf[_0x5f56c6(0x38f)]=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0x599acf,_0x9a7b05,_0x2d8f91,_0x10ff69,_0x2d9a97,_0x56ed37){const _0x4e819a=_0x5f56c6;super(),this[_0x4e819a(0x52c)]=_0x599acf,this[_0x4e819a(0x3ac)]=_0x9a7b05,this[_0x4e819a(0x2a7)]=_0x2d8f91,this['_localCacheService']=_0x10ff69,this[_0x4e819a(0x2a3)]=_0x2d9a97,_0x56ed37?_0x56ed37==null||_0x56ed37[_0x4e819a(0x1e4)]()['then'](()=>this[_0x4e819a(0x436)]()):(this[_0x4e819a(0x3ac)][_0x4e819a(0x2fa)](_0x4e819a(0x482),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x4e819a(0x436)]());}async[_0x5f56c6(0x436)](){const _0x5d86fa=_0x5f56c6,_0x9be867=this[_0x5d86fa(0x52c)][_0x5d86fa(0x2bc)](_0x5d86fa(0x3cb)),_0x3c4a28=this[_0x5d86fa(0x52c)][_0x5d86fa(0x2bc)](_0x5d86fa(0x566));if(!_0x9be867||!_0x3c4a28){this[_0x5d86fa(0x3ac)][_0x5d86fa(0x2fa)](_0x5d86fa(0x482),_0x5d86fa(0x520));return;}switch(Number(_0x3c4a28)){case _0x48039f['UNIVER_SHEET']:{const _0x2cbfc0=await this[_0x5d86fa(0x4c4)](_0x9be867);this['_setupSubUnitSync'](_0x2cbfc0);break;}case _0x48039f[_0x5d86fa(0x540)]:{await this['_loadDoc'](_0x9be867);break;}default:{this[_0x5d86fa(0x3ac)][_0x5d86fa(0x1fe)](_0x5d86fa(0x482),_0x5d86fa(0x538));break;}}}async[_0x5f56c6(0x35b)](_0x2e9c21){const _0x1baba1=_0x5f56c6;await this[_0x1baba1(0x2b5)](_0x2e9c21),_0x2e9c21[_0x1baba1(0x211)][_0x1baba1(0x300)](_0x17e48c[_0x1baba1(0x47a)](this[_0x1baba1(0x3ce)]))[_0x1baba1(0x18a)](_0x2504d6=>{const _0x24f54b=_0x1baba1;_0x2504d6&&this[_0x24f54b(0x177)](_0x2504d6);}),this[_0x1baba1(0x52c)][_0x1baba1(0x2b4)][_0x1baba1(0x300)](_0x17e48c['takeUntil'](this['dispose$']))[_0x1baba1(0x18a)](()=>this[_0x1baba1(0x2b5)](_0x2e9c21));}[_0x5f56c6(0x177)](_0x3f57b3,_0x342b64=!0x1){const _0x3c4cf6=_0x5f56c6,_0x239f17=this[_0x3c4cf6(0x52c)][_0x3c4cf6(0x2bc)](_0x3c4cf6(0x1f1));_0x3f57b3[_0x3c4cf6(0x15c)]()!==_0x239f17&&this[_0x3c4cf6(0x52c)][_0x3c4cf6(0x196)](_0x3c4cf6(0x1f1),_0x3f57b3['getSheetId'](),_0x342b64);}async['_updateSubUnitFromURLParams'](_0x274ba9){const _0x13585e=_0x5f56c6;var _0x4d2212;const _0x232b8e=this[_0x13585e(0x52c)]['getParam'](_0x13585e(0x1f1));if(!_0x232b8e||!_0x274ba9['getSheetBySheetId'](_0x232b8e)){const _0x4d10a1=_0x274ba9[_0x13585e(0x56a)]()[0x0],_0x421c57=_0x274ba9['getSheetBySheetId'](_0x4d10a1);if(!_0x421c57)return;this[_0x13585e(0x177)](_0x421c57,!0x0),await this['_commandService']['executeCommand'](_0x5decb0[_0x13585e(0x4d1)]['id'],{'unitId':_0x274ba9[_0x13585e(0x1a2)](),'subUnitId':_0x4d10a1});return;}((_0x4d2212=_0x274ba9['getActiveSheet']())==null?void 0x0:_0x4d2212[_0x13585e(0x15c)]())!==_0x232b8e&&await this[_0x13585e(0x2a7)][_0x13585e(0x180)](_0x5decb0[_0x13585e(0x4d1)]['id'],{'unitId':_0x274ba9[_0x13585e(0x1a2)](),'subUnitId':_0x232b8e});}async[_0x5f56c6(0x4c4)](_0x408d43){const _0x5e1d49=_0x5f56c6;let _0x59ce2a=0x0;const _0x252b4a=await this['_localCacheService'][_0x5e1d49(0x549)](_0x408d43);return _0x252b4a&&(_0x252b4a[_0x5e1d49(0x567)]||_0x252b4a['mutations'][_0x5e1d49(0x47d)]!==0x0)&&(_0x59ce2a=_0x252b4a['rev']),_0x59ce2a===0x0&&this[_0x5e1d49(0x3ac)][_0x5e1d49(0x2fa)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x5e1d49(0x503)](_0x408d43,_0x59ce2a);}async[_0x5f56c6(0x26c)](_0x964d53){const _0x282734=_0x5f56c6;let _0x470e28=0x0;const _0x3aa856=await this['_localCacheService'][_0x282734(0x549)](_0x964d53);return _0x3aa856&&(_0x3aa856[_0x282734(0x567)]||_0x3aa856[_0x282734(0x288)][_0x282734(0x47d)]!==0x0)&&(_0x470e28=_0x3aa856['rev']),_0x470e28===0x0&&this[_0x282734(0x3ac)][_0x282734(0x2fa)](_0x282734(0x482),_0x282734(0x1da)),this[_0x282734(0x2a3)][_0x282734(0x219)](_0x964d53,_0x470e28);}},_0x4fdbaf[_0x5f56c6(0x38f)]=_0x536ba9([_0x433333(0x0,_0x558a6e),_0x433333(0x1,_0x29630e['ILogService']),_0x433333(0x2,_0x29630e[_0x5f56c6(0x1a4)]),_0x433333(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x4fdbaf[_0x5f56c6(0x1d8)])),_0x433333(0x4,_0x29630e[_0x5f56c6(0x1d9)](_0x2a6d3d[_0x5f56c6(0x4d8)])),_0x433333(0x5,_0x29630e[_0x5f56c6(0x20f)](_0xa2266f[_0x5f56c6(0x36f)]))],_0x4fdbaf[_0x5f56c6(0x38f)]);var _0x54496f=Object[_0x5f56c6(0x17a)],_0x1e7605=Object[_0x5f56c6(0x47e)],_0x424562=(_0x20bbdb,_0x453a57,_0x37362c,_0x292337)=>{const _0x5e7d41=_0x5f56c6;for(var _0x12db8e=_0x292337>0x1?void 0x0:_0x292337?_0x1e7605(_0x453a57,_0x37362c):_0x453a57,_0x5f061f=_0x20bbdb[_0x5e7d41(0x47d)]-0x1,_0x4929b8;_0x5f061f>=0x0;_0x5f061f--)(_0x4929b8=_0x20bbdb[_0x5f061f])&&(_0x12db8e=(_0x292337?_0x4929b8(_0x453a57,_0x37362c,_0x12db8e):_0x4929b8(_0x12db8e))||_0x12db8e);return _0x292337&&_0x12db8e&&_0x54496f(_0x453a57,_0x37362c,_0x12db8e),_0x12db8e;},_0x30f65f=(_0xe35bd0,_0xb17674)=>(_0x3b2d8a,_0x3ae465)=>_0xb17674(_0x3b2d8a,_0x3ae465,_0xe35bd0);const _0xe9a0f6=_0x5f56c6(0x537),_0x5a7125=_0x5f56c6(0x2c0);let _0x20f8f4=class extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(_0x6c8701,_0x2449d9){const _0x551026=_0x5f56c6;super(),this[_0x551026(0x434)]=_0x6c8701,this[_0x551026(0x4e8)]=_0x2449d9,this['_init']();}[_0x5f56c6(0x436)](){const _0x3fce38=_0x5f56c6;this[_0x3fce38(0x52f)](this['_univerInstanceService'][_0x3fce38(0x18f)][_0x3fce38(0x18a)](()=>{const _0x8a6abf=_0x3fce38;var _0x196ddd;const _0xf8b4f7=this[_0x8a6abf(0x434)][_0x8a6abf(0x594)]();let _0x47c714=(_0x196ddd=this[_0x8a6abf(0x4e8)]['getConfig'](_0xe9a0f6))!=null?_0x196ddd:_0x5a7125;_0xf8b4f7 instanceof _0x29630e[_0x8a6abf(0x579)]&&(_0x47c714=_0xf8b4f7[_0x8a6abf(0x244)]),document['title']=_0x47c714;}));}};_0x20f8f4=_0x424562([_0x30f65f(0x0,_0x29630e[_0x5f56c6(0x441)]),_0x30f65f(0x1,_0x29630e[_0x5f56c6(0x34d)])],_0x20f8f4);var _0x50f828=Object[_0x5f56c6(0x17a)],_0x26a24d=Object[_0x5f56c6(0x47e)],_0xd69ff4=(_0x449e19,_0xffacdd,_0x41b22c,_0x3d9714)=>{for(var _0x412bbf=_0x3d9714>0x1?void 0x0:_0x3d9714?_0x26a24d(_0xffacdd,_0x41b22c):_0xffacdd,_0x2fa617=_0x449e19['length']-0x1,_0x10c3c7;_0x2fa617>=0x0;_0x2fa617--)(_0x10c3c7=_0x449e19[_0x2fa617])&&(_0x412bbf=(_0x3d9714?_0x10c3c7(_0xffacdd,_0x41b22c,_0x412bbf):_0x10c3c7(_0x412bbf))||_0x412bbf);return _0x3d9714&&_0x412bbf&&_0x50f828(_0xffacdd,_0x41b22c,_0x412bbf),_0x412bbf;},_0x52aa34=(_0x590bc0,_0x12aafd)=>(_0x2476a9,_0x371c81)=>_0x12aafd(_0x2476a9,_0x371c81,_0x590bc0);let _0x33b992=class{constructor(_0x18a4cf,_0x101089,_0x5f01b4){const _0x3ac21d=_0x5f56c6;this[_0x3ac21d(0x4e8)]=_0x18a4cf,this['_httpService']=_0x101089,this[_0x3ac21d(0x42e)]=_0x5f01b4,this[_0x3ac21d(0x3bb)]();}['init'](){const _0x448940=_0x5f56c6;this['_httpService'][_0x448940(0x3f1)]({'priority':0x1,'interceptor':(_0x39df0c,_0x30f01f)=>_0x30f01f(_0x39df0c)[_0x448940(0x300)](_0x17e48c[_0x448940(0x3db)](async _0xcfff5d=>{const _0x4a71c2=_0x448940,_0x18b96d=_0xcfff5d;if(_0x18b96d[_0x4a71c2(0x4ce)]===0x191&&window[_0x4a71c2(0x329)](this[_0x4a71c2(0x42e)]['t'](_0x4a71c2(0x342)))){const _0x555e2e=window[_0x4a71c2(0x550)](window[_0x4a71c2(0x2db)][_0x4a71c2(0x3ab)]);window[_0x4a71c2(0x2db)][_0x4a71c2(0x3ab)]=this[_0x4a71c2(0x4ff)]()+_0x4a71c2(0x343)+_0x555e2e;}return _0x18b96d;}))});}[_0x5f56c6(0x4ff)](){const _0x3d3d71=_0x5f56c6;var _0x384772,_0x40ee58;const _0x4f700b=this[_0x3d3d71(0x4e8)][_0x3d3d71(0x1e0)](_0x550a35),_0x54ba10=this[_0x3d3d71(0x4e8)][_0x3d3d71(0x1e0)](_0x1573c4);return(_0x40ee58=(_0x384772=_0x54ba10==null?void 0x0:_0x54ba10['loginUrlKey'])!=null?_0x384772:_0x4f700b)!=null?_0x40ee58:_0xb53a80;}};_0x33b992=_0xd69ff4([_0x52aa34(0x0,_0x29630e['IConfigService']),_0x52aa34(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x1f6627[_0x5f56c6(0x195)])),_0x52aa34(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x285)]))],_0x33b992);var _0x50db61=Object[_0x5f56c6(0x17a)],_0xca52b1=Object[_0x5f56c6(0x47e)],_0x30ca2b=(_0x1184fd,_0x567744,_0x37696d,_0x1c2157)=>{for(var _0x43a6af=_0x1c2157>0x1?void 0x0:_0x1c2157?_0xca52b1(_0x567744,_0x37696d):_0x567744,_0x5643be=_0x1184fd['length']-0x1,_0x25ff03;_0x5643be>=0x0;_0x5643be--)(_0x25ff03=_0x1184fd[_0x5643be])&&(_0x43a6af=(_0x1c2157?_0x25ff03(_0x567744,_0x37696d,_0x43a6af):_0x25ff03(_0x43a6af))||_0x43a6af);return _0x1c2157&&_0x43a6af&&_0x50db61(_0x567744,_0x37696d,_0x43a6af),_0x43a6af;},_0x34fc86=(_0x1600d9,_0x2ef913)=>(_0x37643c,_0xa3cddd)=>_0x2ef913(_0x37643c,_0xa3cddd,_0x1600d9);const _0x8cedfd=_0x5f56c6(0x233),_0x4158f4=_0x5f56c6(0x1c8);_0x4fdbaf[_0x5f56c6(0x162)]=class extends _0x29630e[_0x5f56c6(0x1b6)]{constructor(_0x2a6596,_0x2b79bb){const _0x38ca32=_0x5f56c6;super(),this[_0x38ca32(0x333)]=_0x2a6596,this[_0x38ca32(0x4e8)]=_0x2b79bb,this[_0x38ca32(0x3a7)]();}[_0x5f56c6(0x3a7)](){const _0x4d3d55=_0x5f56c6,_0x52e2a5=this;this[_0x4d3d55(0x52f)](this[_0x4d3d55(0x333)][_0x4d3d55(0x3f1)]({'priority':0x3e7,'interceptor':_0x1f6627[_0x4d3d55(0x1e8)]({'isMatch'(_0x2d4721){const _0x42fbc1=_0x4d3d55;var _0x301084;if(_0x2d4721['method']===_0x42fbc1(0x43f)&&((_0x301084=_0x2d4721[_0x42fbc1(0x4e0)])!=null&&_0x301084[_0x42fbc1(0x4be)])){const {objectID:_0x2cc360,objectType:_0xb8ee5c}=_0x2d4721[_0x42fbc1(0x4e0)][_0x42fbc1(0x4be)]||{};if(!_0x2cc360||_0xb8ee5c===void 0x0)return!0x1;const _0x31822c=_0x52e2a5[_0x42fbc1(0x266)]()+'/'+_0xb8ee5c+'/object/'+_0x2cc360+'/allowed';if(_0x2d4721['url']===_0x31822c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5885de){const _0x216bea=_0x4d3d55;var _0x3afbcf;return(_0x3afbcf=_0x5885de[_0x216bea(0x4e0)])==null?void 0x0:_0x3afbcf['body'];},'mergeParamsToRequest'(_0x52abd2,_0x1c7b9e){const _0x148136=_0x4d3d55,_0x1fbed7=_0x52e2a5[_0x148136(0x266)]()+_0x148136(0x4c0),_0x58b4db=_0x52abd2['reduce']((_0x559ba0,_0x5164f0)=>{const _0x168377=_0x148136,{unitID:_0x4b8003,objectID:_0xa7fc56,objectType:_0x4379cb,actions:_0x851d7}=_0x5164f0;return _0x559ba0[_0x4b8003]||(_0x559ba0[_0x4b8003]={}),_0x559ba0[_0x4b8003][_0xa7fc56]||(_0x559ba0[_0x4b8003][_0xa7fc56]={'objectID':_0xa7fc56,'objectType':_0x4379cb,'actions':[]}),_0x559ba0[_0x4b8003][_0xa7fc56][_0x168377(0x4b2)][_0x168377(0x476)](..._0x851d7),_0x559ba0;},{}),_0x3780cd=[];for(const _0x44f095 in _0x58b4db)for(const _0x57800e in _0x58b4db[_0x44f095]){const {actions:_0x4842ef,objectType:_0x1ec12d}=_0x58b4db[_0x44f095][_0x57800e],_0x5f4fbb=[...new Set(_0x4842ef)];_0x3780cd['push']({'unitID':_0x44f095,'objectID':_0x57800e,'objectType':_0x1ec12d,'actions':_0x5f4fbb});}return new _0x1f6627[(_0x148136(0x173))](_0x148136(0x43f),_0x1fbed7,{'headers':_0x1c7b9e[_0x148136(0x25f)],'withCredentials':_0x1c7b9e[_0x148136(0x205)],'responseType':_0x1c7b9e[_0x148136(0x28f)],'body':{'requests':_0x3780cd}});}},{'distributeResult'(_0x55cd4b,_0x3961f6){const {objectActions:_0x13e7bf}=_0x55cd4b;return _0x3961f6['map'](_0x363bdf=>{const _0x49c832=_0xe8fd,{unitID:_0x3b0b9e,objectID:_0x273d9d,actions:_0x338fbe}=_0x363bdf,_0x19b0e8=_0x13e7bf[_0x49c832(0x2b0)](_0x5e8bfd=>_0x5e8bfd[_0x49c832(0x586)]===_0x3b0b9e&&_0x5e8bfd[_0x49c832(0x26b)]===_0x273d9d),_0x20513b=_0x338fbe[_0x49c832(0x239)](_0x519146=>_0x19b0e8==null?void 0x0:_0x19b0e8[_0x49c832(0x4b2)][_0x49c832(0x2b0)](_0x45c18a=>_0x45c18a[_0x49c832(0x49f)]===_0x519146))[_0x49c832(0x324)](_0x2ef7ee=>!!_0x2ef7ee);return{'config':_0x363bdf,'result':{'actions':_0x20513b,'error':_0x55cd4b[_0x49c832(0x1fe)]}};});}})}));}[_0x5f56c6(0x266)](){const _0x23ce29=_0x5f56c6;var _0x2010c6,_0x40319f;const _0x485219=this[_0x23ce29(0x4e8)]['getConfig'](_0x8cedfd),_0x4c72f2=this[_0x23ce29(0x4e8)][_0x23ce29(0x1e0)](_0x1573c4);return(_0x40319f=(_0x2010c6=_0x4c72f2==null?void 0x0:_0x4c72f2['authzUrl'])!=null?_0x2010c6:_0x485219)!=null?_0x40319f:_0x4158f4;}async['create'](_0x49082a){const _0xd9d7d2=_0x5f56c6,_0x1a7485=this['_getAPIPrefixPath']()+'/'+_0x49082a[_0xd9d7d2(0x2b2)]+'/object';return(await this[_0xd9d7d2(0x333)][_0xd9d7d2(0x351)](_0x1a7485,{'body':_0x49082a}))['body'][_0xd9d7d2(0x26b)]||'';}async[_0x5f56c6(0x440)](_0x32c700){const _0xd38261=_0x5f56c6,_0x4e98d0=this[_0xd38261(0x266)]()+'/-/object/list';return(await this[_0xd38261(0x333)]['post'](_0x4e98d0,{'body':_0x32c700}))[_0xd38261(0x4be)][_0xd38261(0x464)];}async[_0x5f56c6(0x563)](_0x2f8bf3){const _0x348752=_0x5f56c6,_0x1d0586=this[_0x348752(0x266)]()+'/'+_0x2f8bf3[_0x348752(0x2b2)]+'/object/'+_0x2f8bf3['objectID'];await this['_HTTPService'][_0x348752(0x490)](_0x1d0586,{'body':_0x2f8bf3});}async['allowed'](_0x5c7c5c){const _0x396734=_0x5f56c6,_0x106d10=this[_0x396734(0x266)]()+'/'+_0x5c7c5c[_0x396734(0x2b2)]+'/object/'+_0x5c7c5c[_0x396734(0x26b)]+_0x396734(0x473);return(await this[_0x396734(0x333)][_0x396734(0x351)](_0x106d10,{'body':_0x5c7c5c}))[_0x396734(0x4be)][_0x396734(0x4b2)];}async[_0x5f56c6(0x30d)](_0x57aa36){const _0x4be63b=_0x5f56c6,_0x4283f5=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x4be63b(0x333)][_0x4be63b(0x351)](_0x4283f5,{'body':{'requests':_0x57aa36}}))['body'][_0x4be63b(0x1a0)];}async[_0x5f56c6(0x201)](_0x6f8bc8){const _0x18f721=_0x5f56c6,_0x454e20=this['_getAPIPrefixPath']()+'/'+_0x6f8bc8[_0x18f721(0x2b2)]+_0x18f721(0x56b),_0x4d5d07=await this[_0x18f721(0x333)]['post'](_0x454e20,{'body':_0x6f8bc8});return{'roles':_0x4d5d07[_0x18f721(0x4be)]['roles'],'actions':_0x4d5d07['body'][_0x18f721(0x4b2)]};}async['deleteCollaborator'](_0x53d237){const _0x3f69f3=_0x5f56c6,_0x59cbfb=this[_0x3f69f3(0x266)]()+_0x3f69f3(0x46a);await this[_0x3f69f3(0x333)]['delete'](_0x59cbfb,{'params':{'collaboratorID':_0x53d237[_0x3f69f3(0x271)],'objectID':_0x53d237[_0x3f69f3(0x26b)],'unitID':_0x53d237[_0x3f69f3(0x586)]}});}async[_0x5f56c6(0x163)](_0x51317e){const _0x39a813=_0x5f56c6,_0x5f57df=this[_0x39a813(0x266)]()+_0x39a813(0x46a);await this[_0x39a813(0x333)][_0x39a813(0x588)](_0x5f57df,{'body':_0x51317e});}async[_0x5f56c6(0x557)](_0x26170f){const _0x1f0664=_0x5f56c6,_0x2d12ce=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1f0664(0x333)]['post'](_0x2d12ce,{'body':_0x26170f});}async['listCollaborators'](_0x1a975d){const _0x3197e6=_0x5f56c6,_0x3167ac=this[_0x3197e6(0x266)]()+_0x3197e6(0x46a);return(await this[_0x3197e6(0x333)][_0x3197e6(0x44d)](_0x3167ac,{'params':{'objectID':_0x1a975d[_0x3197e6(0x26b)],'unitID':_0x1a975d[_0x3197e6(0x586)]}}))[_0x3197e6(0x4be)][_0x3197e6(0x1f6)];}async[_0x5f56c6(0x382)](_0x41eecd){const _0x20f47e=_0x5f56c6,_0x3849fc=this[_0x20f47e(0x266)]()+_0x20f47e(0x46a);await this[_0x20f47e(0x333)][_0x20f47e(0x490)](_0x3849fc,{'body':_0x41eecd});}},_0x4fdbaf[_0x5f56c6(0x162)]=_0x30ca2b([_0x34fc86(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x1f6627['HTTPService'])),_0x34fc86(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e['IConfigService']))],_0x4fdbaf[_0x5f56c6(0x162)]);var _0x339687=Object[_0x5f56c6(0x17a)],_0x31f7d8=Object[_0x5f56c6(0x47e)],_0x4e6024=(_0x2d8ac1,_0x3b7f7a,_0x2ce98e,_0x572522)=>{const _0x60e039=_0x5f56c6;for(var _0xcb9f8e=_0x572522>0x1?void 0x0:_0x572522?_0x31f7d8(_0x3b7f7a,_0x2ce98e):_0x3b7f7a,_0x35d259=_0x2d8ac1[_0x60e039(0x47d)]-0x1,_0x44ac68;_0x35d259>=0x0;_0x35d259--)(_0x44ac68=_0x2d8ac1[_0x35d259])&&(_0xcb9f8e=(_0x572522?_0x44ac68(_0x3b7f7a,_0x2ce98e,_0xcb9f8e):_0x44ac68(_0xcb9f8e))||_0xcb9f8e);return _0x572522&&_0xcb9f8e&&_0x339687(_0x3b7f7a,_0x2ce98e,_0xcb9f8e),_0xcb9f8e;},_0x4d3257=(_0x1c52ab,_0x4e5ed3)=>(_0x1db35b,_0x1fb4d8)=>_0x4e5ed3(_0x1db35b,_0x1fb4d8,_0x1c52ab);let _0xdcde98=class{constructor(_0xb8b765){const _0x2a4d52=_0x5f56c6;this['_httpService']=_0xb8b765,this[_0x2a4d52(0x575)]();}['_initRequestHeader'](){const _0x1a47b2=_0x5f56c6;this[_0x1a47b2(0x46b)]['registerHTTPInterceptor']({'interceptor':(_0x4d68c1,_0x24db34)=>{const _0x34e128=_0x1a47b2,_0x258df4=_0x4d68c1[_0x34e128(0x25f)],_0x5e9673=_0x4b1b03[_0x34e128(0x4eb)]();return _0x5e9673&&_0x258df4[_0x34e128(0x4f1)](_0x34e128(0x34c),_0x5e9673),_0x24db34(_0x4d68c1);}});}};_0xdcde98=_0x4e6024([_0x4d3257(0x0,_0x29630e['Inject'](_0x1f6627[_0x5f56c6(0x195)]))],_0xdcde98);var _0x2889c5=Object[_0x5f56c6(0x17a)],_0x3dec4c=Object['getOwnPropertyDescriptor'],_0x2082c1=(_0x19aadb,_0x4dfcee,_0x577c37,_0x13d086)=>{const _0x10a1c4=_0x5f56c6;for(var _0x186d0b=_0x13d086>0x1?void 0x0:_0x13d086?_0x3dec4c(_0x4dfcee,_0x577c37):_0x4dfcee,_0x4eadb5=_0x19aadb[_0x10a1c4(0x47d)]-0x1,_0x473dfc;_0x4eadb5>=0x0;_0x4eadb5--)(_0x473dfc=_0x19aadb[_0x4eadb5])&&(_0x186d0b=(_0x13d086?_0x473dfc(_0x4dfcee,_0x577c37,_0x186d0b):_0x473dfc(_0x186d0b))||_0x186d0b);return _0x13d086&&_0x186d0b&&_0x2889c5(_0x4dfcee,_0x577c37,_0x186d0b),_0x186d0b;},_0x55d5e2=(_0x4d55c8,_0x46027c)=>(_0x166d6f,_0xc23705)=>_0x46027c(_0x166d6f,_0xc23705,_0x4d55c8);const _0x3be6d0=[_0x5f56c6(0x37d),_0x5f56c6(0x1ec),'image/jpg','image/gif',_0x5f56c6(0x367)],_0x2a3cf6=0x5*0x400*0x400,_0x2e3790=_0x5f56c6(0x403),_0x4dfb3c='/universer-api/stream/file/upload',_0x494dbf=_0x5f56c6(0x1ac),_0x29682e='/universer-api/file/{fileID}/sign-url';_0x4fdbaf['ImageIoService']=class{constructor(_0x11949e,_0x2f8410,_0x4befad){const _0x5f41f5=_0x5f56c6;_0x48f470(this,_0x5f41f5(0x22a),0x0),_0x48f470(this,_0x5f41f5(0x376),new _0x17e48c[(_0x5f41f5(0x3be))]()),_0x48f470(this,_0x5f41f5(0x218),this['_change$']),_0x48f470(this,_0x5f41f5(0x258),new Map()),(this[_0x5f41f5(0x46b)]=_0x11949e,this[_0x5f41f5(0x4e8)]=_0x2f8410,this['_univerInstanceService']=_0x4befad);}[_0x5f56c6(0x488)](_0x4ac521){const _0x545205=_0x5f56c6;this['_waitCount']=_0x4ac521,this[_0x545205(0x376)][_0x545205(0x17b)](_0x4ac521);}[_0x5f56c6(0x489)](_0x5c5f97,_0x200a76){const _0xb01518=_0x5f56c6;if(_0x200a76===_0x97788b[_0xb01518(0x1fb)][_0xb01518(0x572)]){const _0x11aede=new Image();return _0x11aede[_0xb01518(0x3d0)]=_0x5c5f97,_0x11aede;}return this[_0xb01518(0x258)][_0xb01518(0x44d)](_0x5c5f97);}[_0x5f56c6(0x35c)](_0x32f7f8,_0x1fcbc0,_0x23778e){const _0x483191=_0x5f56c6;_0x1fcbc0===_0x97788b[_0x483191(0x1fb)][_0x483191(0x572)]||_0x23778e==null||this[_0x483191(0x258)][_0x483191(0x4f1)](_0x32f7f8,_0x23778e);}async[_0x5f56c6(0x1b2)](_0x485e0a){const _0xe57087=_0x5f56c6;try{const _0x2eb2c6=this['_replaceFileID'](this['_getSignURL'](),''+_0x485e0a),_0x5da6d1=(await this[_0xe57087(0x46b)][_0xe57087(0x44d)](_0x2eb2c6))[_0xe57087(0x4be)];if(_0x5da6d1[_0xe57087(0x1fe)]&&_0x5da6d1[_0xe57087(0x1fe)][_0xe57087(0x513)]===_0x5c7736['OK']){const _0x54bd9b=new URL(_0x5da6d1[_0xe57087(0x3b2)],this[_0xe57087(0x4f6)]())['toString']();return Promise[_0xe57087(0x1ce)](_0x54bd9b);}return Promise['reject'](_0x5da6d1[_0xe57087(0x1fe)]);}catch(_0x14d381){return Promise[_0xe57087(0x2f5)](_0x14d381);}}async[_0x5f56c6(0x439)](_0x1aad0c){const _0x3d21b4=_0x5f56c6;let _0x438447='';if(!_0x3be6d0[_0x3d21b4(0x3ba)](_0x1aad0c[_0x3d21b4(0x566)]))return this[_0x3d21b4(0x2f0)](),Promise[_0x3d21b4(0x2f5)](new Error(_0x97788b['ImageUploadStatusType'][_0x3d21b4(0x3f6)]));if(_0x1aad0c[_0x3d21b4(0x4b5)]>_0x2a3cf6)return this[_0x3d21b4(0x2f0)](),Promise[_0x3d21b4(0x2f5)](new Error(_0x97788b[_0x3d21b4(0x27d)]['ERROR_EXCEED_SIZE']));try{const _0x476512=new FormData();_0x476512[_0x3d21b4(0x3dd)]('file',_0x1aad0c);const _0x3059a8=this[_0x3d21b4(0x434)]['getFocusedUnit'](),_0x19cc3f=_0x3059a8==null?void 0x0:_0x3059a8[_0x3d21b4(0x1a2)]();if(!_0x19cc3f)throw new Error(_0x3d21b4(0x3d7));const _0xe8074f=this[_0x3d21b4(0x293)]()+_0x3d21b4(0x4fc)+_0x1aad0c[_0x3d21b4(0x4b5)]['toString']()+'&source='+_0x26c986['UnitEmbedded']+_0x3d21b4(0x283)+encodeURIComponent(_0x19cc3f),_0x3c12ec=await(await fetch(_0xe8074f,{'method':_0x3d21b4(0x43f),'body':_0x476512}))[_0x3d21b4(0x42d)]();if(typeof _0x3c12ec['FileId']!=_0x3d21b4(0x556))return this[_0x3d21b4(0x2f0)](),Promise['reject'](new Error(_0x97788b[_0x3d21b4(0x27d)][_0x3d21b4(0x321)]));_0x438447=_0x3c12ec[_0x3d21b4(0x49a)];}catch{return this[_0x3d21b4(0x2f0)](),Promise[_0x3d21b4(0x2f5)](new Error(_0x97788b['ImageUploadStatusType'][_0x3d21b4(0x321)]));}return new Promise((_0x370565,_0x50b0ee)=>{const _0xbdfe6e=new FileReader();_0xbdfe6e['readAsDataURL'](_0x1aad0c),_0xbdfe6e['onload']=_0x2ff745=>{const _0x56c14f=_0xe8fd;var _0x166aff;const _0x43a5ca=(_0x166aff=_0x2ff745[_0x56c14f(0x337)])==null?void 0x0:_0x166aff[_0x56c14f(0x240)];if(_0x43a5ca==null){this['_decreaseWaiting'](),_0x50b0ee(new Error(_0x97788b['ImageUploadStatusType'][_0x56c14f(0x321)]));return;}const _0x226107=_0x29630e[_0x56c14f(0x4a1)][_0x56c14f(0x2d5)](0x6);_0x370565({'imageId':_0x226107,'imageSourceType':_0x97788b[_0x56c14f(0x1fb)][_0x56c14f(0x4cc)],'source':_0x438447,'base64Cache':_0x43a5ca,'status':_0x97788b[_0x56c14f(0x27d)][_0x56c14f(0x51a)]}),this[_0x56c14f(0x2f0)]();};});}[_0x5f56c6(0x293)](){const _0x19180a=_0x5f56c6;var _0x1e493e,_0xe28360;const _0x29e94f=this[_0x19180a(0x4e8)]['getConfig'](_0x2e3790),_0x3d8627=this['_configService']['getConfig'](_0x1573c4);return(_0xe28360=(_0x1e493e=_0x3d8627==null?void 0x0:_0x3d8627['uploadFileServerUrl'])!=null?_0x1e493e:_0x29e94f)!=null?_0xe28360:_0x4dfb3c;}[_0x5f56c6(0x32e)](){const _0x2b899b=_0x5f56c6;var _0x48d933,_0x20a601;const _0x386f3e=this[_0x2b899b(0x4e8)][_0x2b899b(0x1e0)](_0x494dbf),_0x2b325a=this['_configService'][_0x2b899b(0x1e0)](_0x1573c4);return(_0x20a601=(_0x48d933=_0x2b325a==null?void 0x0:_0x2b325a[_0x2b899b(0x431)])!=null?_0x48d933:_0x386f3e)!=null?_0x20a601:_0x29682e;}[_0x5f56c6(0x4f6)](){const _0x3fc191=_0x5f56c6;var _0x597d46;const _0x548d2c=this['_configService'][_0x3fc191(0x1e0)](_0x1573c4);return(_0x597d46=_0x548d2c==null?void 0x0:_0x548d2c[_0x3fc191(0x234)])!=null?_0x597d46:location[_0x3fc191(0x358)];}[_0x5f56c6(0x16f)](_0x544f56,_0x5c6b25){const _0x58c96b=_0x5f56c6;return _0x544f56['replace'](_0x58c96b(0x536),_0x5c6b25);}[_0x5f56c6(0x2f0)](){const _0x2ec0c5=_0x5f56c6;this[_0x2ec0c5(0x22a)]-=0x1,this[_0x2ec0c5(0x376)][_0x2ec0c5(0x17b)](this[_0x2ec0c5(0x22a)]);}},_0x4fdbaf[_0x5f56c6(0x525)]=_0x2082c1([_0x55d5e2(0x0,_0x29630e[_0x5f56c6(0x1d9)](_0x1f6627[_0x5f56c6(0x195)])),_0x55d5e2(0x1,_0x29630e['IConfigService']),_0x55d5e2(0x2,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e['IUniverInstanceService']))],_0x4fdbaf[_0x5f56c6(0x525)]);var _0x419a39=Object[_0x5f56c6(0x17a)],_0x41213f=Object[_0x5f56c6(0x47e)],_0x2271ce=(_0xe5acc4,_0x297928,_0x4029b1,_0x2092c9)=>{const _0x3884ba=_0x5f56c6;for(var _0x479bb2=_0x2092c9>0x1?void 0x0:_0x2092c9?_0x41213f(_0x297928,_0x4029b1):_0x297928,_0x41b9e9=_0xe5acc4[_0x3884ba(0x47d)]-0x1,_0x590eaf;_0x41b9e9>=0x0;_0x41b9e9--)(_0x590eaf=_0xe5acc4[_0x41b9e9])&&(_0x479bb2=(_0x2092c9?_0x590eaf(_0x297928,_0x4029b1,_0x479bb2):_0x590eaf(_0x479bb2))||_0x479bb2);return _0x2092c9&&_0x479bb2&&_0x419a39(_0x297928,_0x4029b1,_0x479bb2),_0x479bb2;},_0x5c6734=(_0xc56eac,_0x5cc861)=>(_0x91d124,_0x283ae8)=>_0x5cc861(_0x91d124,_0x283ae8,_0xc56eac);let _0x36dcd5=class extends _0x29630e[_0x5f56c6(0x213)]{constructor(_0x4c5634,_0x3adadc,_0x25db72,_0x486ed3,_0x373644){const _0x44d52e=_0x5f56c6;super(),this[_0x44d52e(0x3cf)]=_0x4c5634,this['_univerInstanceService']=_0x3adadc,this['_permissionService']=_0x25db72,this[_0x44d52e(0x402)]=_0x486ed3,this[_0x44d52e(0x375)]=_0x373644,this[_0x44d52e(0x23b)](),this[_0x44d52e(0x35d)]();}[_0x5f56c6(0x35d)](){const _0x5c5406=_0x5f56c6,_0x1304c9=async _0x275469=>{const _0x4d9e5f=_0xe8fd;(await this[_0x4d9e5f(0x402)]['requireSession'](_0x275469))[_0x4d9e5f(0x574)][_0x4d9e5f(0x300)](_0x56098d[_0x4d9e5f(0x324)](_0x5b42b5=>_0x5b42b5[_0x4d9e5f(0x256)]===_0x2a6d3d[_0x4d9e5f(0x56e)][_0x4d9e5f(0x34b)]),_0x56098d['takeUntil'](this[_0x4d9e5f(0x3ce)]))[_0x4d9e5f(0x18a)](_0x31de53=>{const _0x2ef08c=_0x4d9e5f,_0x54f3ce=_0x31de53,{reason:_0x108ddf}=_0x54f3ce[_0x2ef08c(0x54c)];this[_0x2ef08c(0x3cf)][_0x2ef08c(0x44d)](_0x279664[_0x2ef08c(0x24d)])[_0x2ef08c(0x2e8)]({'type':_0x2d4ff4[_0x2ef08c(0x2c7)][_0x2ef08c(0x27c)],'content':this[_0x2ef08c(0x375)]['t'](_0x2ef08c(0x411))+'('+_0x108ddf+')'}),this[_0x2ef08c(0x495)][_0x2ef08c(0x48a)](new _0x5decb0['WorkbookEditablePermission'](_0x275469)['id'],!0x1),this[_0x2ef08c(0x402)][_0x2ef08c(0x43e)](_0x275469);});};_0x17e48c['merge'](this[_0x5c5406(0x434)][_0x5c5406(0x3dc)](_0x29630e[_0x5c5406(0x438)]['UNIVER_SHEET']),this[_0x5c5406(0x434)][_0x5c5406(0x3dc)](_0x29630e['UniverInstanceType'][_0x5c5406(0x540)]))['pipe'](_0x56098d[_0x5c5406(0x239)](_0x258fd3=>_0x258fd3[_0x5c5406(0x1a2)]()),_0x56098d[_0x5c5406(0x324)](_0x3a5b9b=>!_0x29630e[_0x5c5406(0x401)](_0x3a5b9b)),_0x56098d[_0x5c5406(0x47a)](this['dispose$']))[_0x5c5406(0x18a)](_0x19f9c2=>{_0x1304c9(_0x19f9c2);});}[_0x5f56c6(0x23b)](){const _0x2ec750=_0x5f56c6,_0x58044b=async _0x4c0d76=>{const _0x4699d4=_0xe8fd;(await this[_0x4699d4(0x402)][_0x4699d4(0x494)](_0x4c0d76))[_0x4699d4(0x574)][_0x4699d4(0x300)](_0x56098d[_0x4699d4(0x324)](_0x3fb3d2=>_0x3fb3d2[_0x4699d4(0x256)]===_0x2a6d3d[_0x4699d4(0x56e)]['UPDATE_PERMISSION_OBJ']),_0x56098d[_0x4699d4(0x47a)](this['dispose$']))['subscribe'](_0x2bffe0=>{const _0x538778=_0x4699d4,_0x3a28f2=_0x2bffe0,{objectId:_0x1e3119}=_0x3a28f2[_0x538778(0x54c)],_0x5e7d9d=this['_injector']['get'](_0x30e2ba[_0x538778(0x170)]);_0x1e3119===_0x4c0d76?_0x5e7d9d[_0x538778(0x298)](_0x4c0d76):_0x5e7d9d['refreshPermission'](_0x4c0d76,_0x1e3119);});};_0x17e48c['merge'](this[_0x2ec750(0x434)][_0x2ec750(0x3dc)](_0x29630e['UniverInstanceType'][_0x2ec750(0x4b4)]),this[_0x2ec750(0x434)][_0x2ec750(0x3dc)](_0x29630e[_0x2ec750(0x438)][_0x2ec750(0x540)]))['pipe'](_0x56098d[_0x2ec750(0x239)](_0x31b5e7=>_0x31b5e7[_0x2ec750(0x1a2)]()),_0x56098d[_0x2ec750(0x324)](_0x211fbb=>!_0x29630e['isInternalEditorID'](_0x211fbb)),_0x56098d[_0x2ec750(0x47a)](this[_0x2ec750(0x3ce)]))['subscribe'](_0x157633=>{_0x58044b(_0x157633);});}};_0x36dcd5=_0x2271ce([_0x5c6734(0x0,_0x29630e['Inject'](_0x29630e['Injector'])),_0x5c6734(0x1,_0x29630e[_0x5f56c6(0x441)]),_0x5c6734(0x2,_0x29630e[_0x5f56c6(0x1b0)]),_0x5c6734(0x3,_0x29630e['Inject'](_0x4fdbaf[_0x5f56c6(0x580)])),_0x5c6734(0x4,_0x29630e['Inject'](_0x29630e[_0x5f56c6(0x285)]))],_0x36dcd5);var _0x51515f=Object[_0x5f56c6(0x17a)],_0x295efb=Object[_0x5f56c6(0x47e)],_0x2239ab=(_0x1c77ed,_0x113f0a,_0x4ae73a,_0x13939c)=>{const _0x2483fc=_0x5f56c6;for(var _0x26c43d=_0x13939c>0x1?void 0x0:_0x13939c?_0x295efb(_0x113f0a,_0x4ae73a):_0x113f0a,_0x146677=_0x1c77ed[_0x2483fc(0x47d)]-0x1,_0x2e3c0a;_0x146677>=0x0;_0x146677--)(_0x2e3c0a=_0x1c77ed[_0x146677])&&(_0x26c43d=(_0x13939c?_0x2e3c0a(_0x113f0a,_0x4ae73a,_0x26c43d):_0x2e3c0a(_0x26c43d))||_0x26c43d);return _0x13939c&&_0x26c43d&&_0x51515f(_0x113f0a,_0x4ae73a,_0x26c43d),_0x26c43d;},_0x59f169=(_0x2a951c,_0xf293ff)=>(_0x547864,_0x3c5085)=>_0xf293ff(_0x547864,_0x3c5085,_0x2a951c);_0x4fdbaf[_0x5f56c6(0x308)]=class{constructor(_0x48a849,_0xcc0906){const _0x10342a=_0x5f56c6;this[_0x10342a(0x4e8)]=_0x48a849,this[_0x10342a(0x46b)]=_0xcc0906;}async[_0x5f56c6(0x334)](_0x963398,_0x453d15){const _0x54dcb5=_0x5f56c6;var _0x3d2369;const {unitID:_0x1ebbaa,type:_0x3cb74a,revision:_0x25490c=0x0}=_0x453d15,_0x7151e1=this[_0x54dcb5(0x446)]()+'/'+_0x3cb74a+_0x54dcb5(0x1a6)+_0x1ebbaa+_0x54dcb5(0x444)+_0x25490c,_0x3f0cac=(await this[_0x54dcb5(0x46b)][_0x54dcb5(0x44d)](_0x7151e1))[_0x54dcb5(0x4be)],_0x18009d=(_0x3d2369=_0x3f0cac['snapshot'])==null?void 0x0:_0x3d2369[_0x54dcb5(0x157)];if(_0x18009d){const _0x23c402=_0x18009d==null?void 0x0:_0x18009d[_0x54dcb5(0x54f)],_0x4cb98a=_0x2a6d3d[_0x54dcb5(0x46d)][_0x54dcb5(0x26e)](_0x2a6d3d[_0x54dcb5(0x516)](_0x23c402));_0x18009d[_0x54dcb5(0x54f)]=_0x4cb98a,Object[_0x54dcb5(0x35e)](_0x18009d['sheets'])[_0x54dcb5(0x57d)](([,_0x3b017b])=>{const _0x5bd9cb=_0x54dcb5,_0x4e0df9=_0x3b017b[_0x5bd9cb(0x54f)],_0x232533=_0x2a6d3d[_0x5bd9cb(0x46d)][_0x5bd9cb(0x26e)](_0x2a6d3d[_0x5bd9cb(0x516)](_0x4e0df9));_0x3b017b['originalMeta']=_0x232533;});}return _0x3f0cac;}async['getSheetBlock'](_0x28c8c5,_0xd659a5){const _0x278ef0=_0x5f56c6,{unitID:_0x55372f,type:_0x380c53,blockID:_0x1a411f}=_0xd659a5,_0x23ee7b=this[_0x278ef0(0x4c2)]()+'/'+_0x380c53+'/unit/'+_0x55372f+_0x278ef0(0x41c)+_0x1a411f;return(await this[_0x278ef0(0x46b)][_0x278ef0(0x44d)](_0x23ee7b))[_0x278ef0(0x4be)];}async[_0x5f56c6(0x22c)](_0x549718,_0x2478e6){const _0x14e8e6=_0x5f56c6,{unitID:_0x567ce3,type:_0x566a6a,blockID:_0x403ecb}=_0x2478e6,_0x2eb323=this[_0x14e8e6(0x4c2)]()+'/block/'+_0x566a6a+_0x14e8e6(0x1a6)+_0x567ce3+_0x14e8e6(0x41c)+_0x403ecb;return(await this['_httpService'][_0x14e8e6(0x44d)](_0x2eb323))[_0x14e8e6(0x4be)];}async['fetchMissingChangesets'](_0x1fd6ea,_0x4b2131){const _0x57edd0=_0x5f56c6,{unitID:_0x2a4a02,type:_0x3a4c78,from:_0x22c32c,to:_0x574066}=_0x4b2131,_0x1ef95f=this['_getAPIPrefix']()+'/'+_0x3a4c78+_0x57edd0(0x1a6)+_0x2a4a02+_0x57edd0(0x462)+_0x22c32c+'&to='+_0x574066;return(await this[_0x57edd0(0x46b)][_0x57edd0(0x44d)](_0x1ef95f))[_0x57edd0(0x4be)];}[_0x5f56c6(0x446)](){const _0x36bb0a=_0x5f56c6;var _0x4a7c09;return(_0x4a7c09=this[_0x36bb0a(0x4e8)]['getConfig'](_0x5242a1))!=null?_0x4a7c09:this[_0x36bb0a(0x4c2)]();}[_0x5f56c6(0x4c2)](){const _0x36a878=_0x5f56c6;var _0xde7b11,_0x2c44c2;const _0x38b7fe=this['_configService']['getConfig'](_0x93d6f0),_0x2e85f5=this['_configService'][_0x36a878(0x1e0)](_0x1573c4);return(_0x2c44c2=(_0xde7b11=_0x2e85f5==null?void 0x0:_0x2e85f5[_0x36a878(0x43d)])!=null?_0xde7b11:_0x38b7fe)!=null?_0x2c44c2:_0x46da86;}async[_0x5f56c6(0x223)](_0xd1bea2,_0x26625c){const _0x10ee9b=_0x5f56c6,_0x4aeb46=_0x10ee9b(0x569)+_0x26625c[_0x10ee9b(0x566)]+_0x10ee9b(0x1a6)+_0x26625c[_0x10ee9b(0x586)]+_0x10ee9b(0x248);return(await this[_0x10ee9b(0x46b)][_0x10ee9b(0x44d)](_0x4aeb46,{'params':{'resourceId':JSON[_0x10ee9b(0x4a4)](_0x26625c['resourceIDs'])}}))[_0x10ee9b(0x4be)];}[_0x5f56c6(0x316)](){const _0x5c0208=_0x5f56c6;throw new Error(_0x5c0208(0x3bd));}[_0x5f56c6(0x50d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5f56c6(0x49d)](){const _0xd3d8a7=_0x5f56c6;throw new Error(_0xd3d8a7(0x3bd));}[_0x5f56c6(0x303)](){const _0x47dfec=_0x5f56c6;throw new Error(_0x47dfec(0x3bd));}[_0x5f56c6(0x20e)](){const _0x302aab=_0x5f56c6;throw new Error(_0x302aab(0x3bd));}},_0x4fdbaf['SnapshotServerOverHTTPService']=_0x2239ab([_0x59f169(0x0,_0x29630e[_0x5f56c6(0x34d)]),_0x59f169(0x1,_0x29630e[_0x5f56c6(0x1d9)](_0x1f6627['HTTPService']))],_0x4fdbaf[_0x5f56c6(0x308)]);var _0x30ed9c=Object[_0x5f56c6(0x17a)],_0x4399cb=Object[_0x5f56c6(0x47e)],_0x53fde3=(_0x353941,_0x408319,_0x1258de,_0x180444)=>{const _0x1aa7b8=_0x5f56c6;for(var _0x5346e1=_0x180444>0x1?void 0x0:_0x180444?_0x4399cb(_0x408319,_0x1258de):_0x408319,_0x375bf8=_0x353941[_0x1aa7b8(0x47d)]-0x1,_0x34fbb0;_0x375bf8>=0x0;_0x375bf8--)(_0x34fbb0=_0x353941[_0x375bf8])&&(_0x5346e1=(_0x180444?_0x34fbb0(_0x408319,_0x1258de,_0x5346e1):_0x34fbb0(_0x5346e1))||_0x5346e1);return _0x180444&&_0x5346e1&&_0x30ed9c(_0x408319,_0x1258de,_0x5346e1),_0x5346e1;},_0x180e4d=(_0x43d417,_0x1337b9)=>(_0x29ca07,_0x1274de)=>_0x1337b9(_0x29ca07,_0x1274de,_0x43d417);let _0x5eb668=class extends _0x29630e[_0x5f56c6(0x465)]{constructor(_0x1e6570,_0x4dc58f,_0x3bb150,_0xabdb2,_0x262f59){const _0x4b3154=_0x5f56c6;super(_0x1e6570,_0x4dc58f,_0x3bb150),this[_0x4b3154(0x4ab)]=_0xabdb2,this['_logService']=_0x262f59;}['transformUndoRedo'](_0x2f6419,_0x4654cd){const _0x1c83b2=_0x5f56c6,_0x445cf3=this[_0x1c83b2(0x2d9)](_0x2f6419);if(_0x445cf3)try{const _0x210248=this[_0x1c83b2(0x4cd)](_0x445cf3,_0x4654cd);this[_0x1c83b2(0x386)](_0x2f6419,_0x210248);}catch(_0x477013){this[_0x1c83b2(0x3ac)][_0x1c83b2(0x1fe)](_0x1c83b2(0x414),_0x477013),this['_clearUndo'](_0x2f6419);}const _0x260a46=this[_0x1c83b2(0x4fe)](_0x2f6419);if(_0x260a46)try{const _0x52e65f=this[_0x1c83b2(0x4cd)](_0x260a46,_0x4654cd);this[_0x1c83b2(0x2a6)](_0x2f6419,_0x52e65f);}catch(_0x217fc0){this['_logService'][_0x1c83b2(0x1fe)](_0x217fc0),this[_0x1c83b2(0x3d9)](_0x2f6419);}}[_0x5f56c6(0x2a1)](_0x33cbee){const _0x3f0022=_0x5f56c6,_0x17a556=this['_getUndoStack'](_0x33cbee);_0x17a556&&(_0x17a556[_0x3f0022(0x47d)]=0x0,this[_0x3f0022(0x274)]());}['_clearRedo'](_0x225e5d){const _0x43433b=_0x5f56c6,_0x47dc50=this[_0x43433b(0x4fe)](_0x225e5d);_0x47dc50&&(_0x47dc50[_0x43433b(0x47d)]=0x0,this[_0x43433b(0x274)]());}['_substituteUndoStack'](_0x55c3d0,_0x4b3c01){const _0x213db3=_0x5f56c6;this[_0x213db3(0x161)][_0x213db3(0x4f1)](_0x55c3d0,_0x4b3c01),this['_updateStatus']();}[_0x5f56c6(0x2a6)](_0x448a58,_0x229fb3){const _0x4212e9=_0x5f56c6;this[_0x4212e9(0x255)][_0x4212e9(0x4f1)](_0x448a58,_0x229fb3),this[_0x4212e9(0x274)]();}[_0x5f56c6(0x4cd)](_0x2c8c17,_0x149b85){const _0x525290=_0x5f56c6,_0x4426db=[];let _0xdf2163=_0x149b85,_0x197817=_0x149b85;for(let _0x1f0d26=_0x2c8c17[_0x525290(0x47d)]-0x1;_0x1f0d26>=0x0;_0x1f0d26--){const {unitID:_0x62c5cc,undoMutations:_0x4ebdb0,redoMutations:_0x1d6d8f}=_0x2c8c17[_0x1f0d26],_0x2123ae=this[_0x525290(0x4ab)]['transformMutationsWithChangeset'](_0xdf2163,_0x4ebdb0),_0x351356=this['_transformService']['transformMutationsWithChangeset'](_0x197817,_0x1d6d8f);if(_0x2a6d3d['isTransformMutationsWithChangesetFailure'](_0x2123ae)||_0x2a6d3d[_0x525290(0x54e)](_0x351356)){this['_logService'][_0x525290(0x1fe)](_0x525290(0x414),_0x525290(0x426),_0x2123ae,_0x351356);break;}_0xdf2163=_0x2123ae[_0x525290(0x33c)],_0x197817=_0x351356[_0x525290(0x33c)],_0x4426db[_0x525290(0x476)]({'unitID':_0x62c5cc,'undoMutations':_0x2123ae[_0x525290(0x3fc)],'redoMutations':_0x351356[_0x525290(0x3fc)]});}return _0x4426db['reverse']();}};_0x5eb668=_0x53fde3([_0x180e4d(0x0,_0x29630e[_0x5f56c6(0x441)]),_0x180e4d(0x1,_0x29630e[_0x5f56c6(0x1a4)]),_0x180e4d(0x2,_0x29630e[_0x5f56c6(0x3a4)]),_0x180e4d(0x3,_0x2a6d3d[_0x5f56c6(0x172)]),_0x180e4d(0x4,_0x29630e[_0x5f56c6(0x478)])],_0x5eb668);class _0xf6fcab extends _0x29630e[_0x5f56c6(0x213)]{constructor(){const _0x13a599=_0x5f56c6;super(),_0x48f470(this,_0x13a599(0x2b4)),this[_0x13a599(0x2b4)]=_0x17e48c[_0x13a599(0x18b)](window,'popstate')[_0x13a599(0x300)](_0x17e48c[_0x13a599(0x47a)](this[_0x13a599(0x3ce)]),_0x17e48c[_0x13a599(0x395)](0x1),_0x17e48c[_0x13a599(0x1c2)](void 0x0));}['setParam'](_0x1f8628,_0x1dc459,_0x1a4082=!0x1){const _0x1f2f02=_0x5f56c6,_0x3e94ca=new URL(window[_0x1f2f02(0x2db)][_0x1f2f02(0x3ab)]);_0x3e94ca['searchParams'][_0x1f2f02(0x4f1)](_0x1f8628,_0x1dc459),_0x1a4082?window[_0x1f2f02(0x2b7)]['replaceState']('','',_0x3e94ca['toString']()):window[_0x1f2f02(0x2b7)][_0x1f2f02(0x31b)]('','',_0x3e94ca[_0x1f2f02(0x468)]());}[_0x5f56c6(0x23e)](_0x2536b5,_0x47fc45=!0x1){const _0x3db9fe=_0x5f56c6,_0x9dd865=new URL(window[_0x3db9fe(0x2db)]['href']);_0x9dd865['searchParams'][_0x3db9fe(0x340)](_0x2536b5),_0x47fc45?window['history'][_0x3db9fe(0x209)]('','',_0x9dd865[_0x3db9fe(0x468)]()):window[_0x3db9fe(0x2b7)][_0x3db9fe(0x31b)]('','',_0x9dd865['toString']());}[_0x5f56c6(0x2bc)](_0x467eea){const _0x3fe256=_0x5f56c6;var _0x41e675;return(_0x41e675=new URL(window[_0x3fe256(0x2db)][_0x3fe256(0x3ab)])[_0x3fe256(0x392)][_0x3fe256(0x44d)](_0x467eea))!=null?_0x41e675:void 0x0;}}var _0x3e5268=Object[_0x5f56c6(0x17a)],_0x500936=Object['getOwnPropertyDescriptor'],_0x98753=(_0x61446,_0x54d9ad,_0x97781c)=>_0x54d9ad in _0x61446?_0x3e5268(_0x61446,_0x54d9ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x97781c}):_0x61446[_0x54d9ad]=_0x97781c,_0x26b343=(_0x14f9da,_0x2e87aa,_0x4070b3,_0x8a7cc0)=>{for(var _0x4d18e2=_0x8a7cc0>0x1?void 0x0:_0x8a7cc0?_0x500936(_0x2e87aa,_0x4070b3):_0x2e87aa,_0x23e5f7=_0x14f9da['length']-0x1,_0x14dce0;_0x23e5f7>=0x0;_0x23e5f7--)(_0x14dce0=_0x14f9da[_0x23e5f7])&&(_0x4d18e2=(_0x8a7cc0?_0x14dce0(_0x2e87aa,_0x4070b3,_0x4d18e2):_0x14dce0(_0x4d18e2))||_0x4d18e2);return _0x8a7cc0&&_0x4d18e2&&_0x3e5268(_0x2e87aa,_0x4070b3,_0x4d18e2),_0x4d18e2;},_0x28beaf=(_0x3dcd32,_0x28a3a4)=>(_0x4a7e08,_0x1a8a45)=>_0x28a3a4(_0x4a7e08,_0x1a8a45,_0x3dcd32),_0x587b46=(_0x5719b3,_0x5e41fd,_0x46de8e)=>_0x98753(_0x5719b3,_0x5e41fd+'',_0x46de8e);const _0x35f945=_0x5f56c6(0x176);_0x4fdbaf[_0x5f56c6(0x150)]=class extends _0x29630e[_0x5f56c6(0x1bc)]{constructor(_0x56d877=_0x2bff4b,_0x632a5e,_0xdbd08f,_0xab7813,_0x304dee){const _0x459354=_0x5f56c6;super(),this[_0x459354(0x181)]=_0x56d877,this[_0x459354(0x3ac)]=_0x632a5e,this[_0x459354(0x576)]=_0xdbd08f,this['_injector']=_0xab7813,this[_0x459354(0x4e8)]=_0x304dee;const {..._0x409cda}=this['_config'];this[_0x459354(0x4e8)]['setConfig'](_0x1573c4,_0x409cda);}[_0x5f56c6(0x3ae)](){const _0x492269=_0x5f56c6;this[_0x492269(0x3fa)](),this[_0x492269(0x235)]();}[_0x5f56c6(0x4c1)](){const _0x5dc7d4=_0x5f56c6;_0x29630e[_0x5dc7d4(0x4c8)](this[_0x5dc7d4(0x3cf)],[[_0x20f8f4]]);}[_0x5f56c6(0x350)](){const _0x4cb0ce=_0x5f56c6;this[_0x4cb0ce(0x3ad)]();}[_0x5f56c6(0x3fa)](){const _0x1fe96f=_0x5f56c6;var _0x1088f2,_0x3afa36,_0x18c657,_0x4c6993;this['_injector'][_0x1fe96f(0x55c)](_0x29630e[_0x1fe96f(0x394)])&&this[_0x1fe96f(0x3ac)][_0x1fe96f(0x1fe)](_0x1fe96f(0x460),_0x1fe96f(0x483));const _0x7e73f2=[[_0x29630e[_0x1fe96f(0x394)],{'useClass':_0x5eb668}],[_0x4fdbaf[_0x1fe96f(0x580)]],[_0x9c53bd],[_0x558a6e,{'useClass':_0xf6fcab}],[_0x4fdbaf[_0x1fe96f(0x2b3)]],[_0x4fdbaf[_0x1fe96f(0x1d8)]],[_0x1f6627[_0x1fe96f(0x1fd)]],[_0x300a71],[_0x1e6df8],[_0x403af6],[_0x4247e7],[_0x33b992],[_0xdcde98],[_0x4fa0d0],[_0x36dcd5],[_0x24f2a6,{'useClass':(_0x3afa36=(_0x1088f2=this[_0x1fe96f(0x181)])==null?void 0x0:_0x1088f2[_0x1fe96f(0x37c)])!=null?_0x3afa36:_0x4fdbaf['CollaborationSocketService']}],[_0x2a6d3d[_0x1fe96f(0x422)],{'useClass':_0x4fdbaf[_0x1fe96f(0x308)]}],[_0x29630e[_0x1fe96f(0x406)],{'useClass':_0x4fdbaf[_0x1fe96f(0x162)]}],[_0x97788b[_0x1fe96f(0x4dd)],{'useClass':_0x4fdbaf[_0x1fe96f(0x525)]}],[_0x4fdbaf[_0x1fe96f(0x405)]],[_0x4fdbaf[_0x1fe96f(0x38f)]],[_0x4fdbaf[_0x1fe96f(0x2e0)]],[_0x20f8f4],[_0x335c52]];(_0x18c657=this[_0x1fe96f(0x181)])!=null&&_0x18c657[_0x1fe96f(0x3d8)]&&_0x7e73f2['push']([_0x5bb5e3,{'useClass':_0x1b825f}]),_0x29630e[_0x1fe96f(0x561)](this[_0x1fe96f(0x3cf)],_0x29630e[_0x1fe96f(0x4d7)](_0x7e73f2,(_0x4c6993=this[_0x1fe96f(0x181)])==null?void 0x0:_0x4c6993[_0x1fe96f(0x475)]));}[_0x5f56c6(0x3ad)](){const _0x5aced7=_0x5f56c6;this[_0x5aced7(0x52f)](this['_renderManagerService']['registerRenderModule'](_0x29630e[_0x5aced7(0x438)][_0x5aced7(0x540)],[_0xe3da1a])),this['disposeWithMe'](this[_0x5aced7(0x576)][_0x5aced7(0x507)](_0x29630e[_0x5aced7(0x438)][_0x5aced7(0x4b4)],[_0x1abaed]));}['_initDependencies'](){const _0x3ca513=_0x5f56c6;var _0x443931,_0x4e244e;this['_injector'][_0x3ca513(0x44d)](_0x1f6627[_0x3ca513(0x195)])[_0x3ca513(0x3f1)]({'priority':0x14,'interceptor':_0x1f6627['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x443931=this[_0x3ca513(0x181)])!=null&&_0x443931[_0x3ca513(0x492)]||this[_0x3ca513(0x3cf)][_0x3ca513(0x44d)](_0x4fdbaf['LocalCacheService'])[_0x3ca513(0x167)](),(_0x4e244e=this[_0x3ca513(0x181)])!=null&&_0x4e244e['enableAuthServer']&&_0x29630e[_0x3ca513(0x4c8)](this['_injector'],[[_0x33b992]]),_0x29630e[_0x3ca513(0x4c8)](this[_0x3ca513(0x3cf)],[[_0xdcde98],[_0x335c52],[_0x4fdbaf[_0x3ca513(0x38f)]],[_0x4fdbaf[_0x3ca513(0x405)]],[_0x4fdbaf[_0x3ca513(0x2e0)]],[_0x36dcd5]]);}},_0x587b46(_0x4fdbaf[_0x5f56c6(0x150)],_0x5f56c6(0x421),_0x35f945),_0x4fdbaf[_0x5f56c6(0x150)]=_0x26b343([_0x29630e[_0x5f56c6(0x481)](_0x2a6d3d[_0x5f56c6(0x35a)],_0x1f6627['UniverNetworkPlugin']),_0x28beaf(0x1,_0x29630e[_0x5f56c6(0x478)]),_0x28beaf(0x2,_0x37c548[_0x5f56c6(0x276)]),_0x28beaf(0x3,_0x29630e[_0x5f56c6(0x1d9)](_0x29630e[_0x5f56c6(0x3c6)])),_0x28beaf(0x4,_0x29630e[_0x5f56c6(0x34d)])],_0x4fdbaf['UniverCollaborationClientPlugin']),_0x4fdbaf['AUTHZ_URL_KEY']=_0x8cedfd,_0x4fdbaf[_0x5f56c6(0x534)]=_0x513a4c,_0x4fdbaf[_0x5f56c6(0x159)]=_0x4650c3,_0x4fdbaf['CollaborationStatus']=_0x4cac76,_0x4fdbaf[_0x5f56c6(0x4f3)]=_0x4cc35e,_0x4fdbaf['CommentService']=_0x4fa0d0,_0x4fdbaf[_0x5f56c6(0x1ea)]=_0x17ca3f,_0x4fdbaf[_0x5f56c6(0x1f8)]=_0x3b0121,_0x4fdbaf[_0x5f56c6(0x570)]=_0x24f2a6,_0x4fdbaf[_0x5f56c6(0x52a)]=_0x558a6e,_0x4fdbaf[_0x5f56c6(0x366)]=_0x5831f1,_0x4fdbaf[_0x5f56c6(0x318)]=_0x550a35,_0x4fdbaf[_0x5f56c6(0x4a2)]=_0xd6482f,_0x4fdbaf[_0x5f56c6(0x57e)]=_0x467be1,_0x4fdbaf[_0x5f56c6(0x186)]=_0x93d6f0,_0x4fdbaf['SNAPSHOT_URL_KEY']=_0x5242a1,_0x4fdbaf['SessionStatus']=_0x90155,_0x4fdbaf[_0x5f56c6(0x189)]=_0x2b4d87,_0x4fdbaf[_0x5f56c6(0x26d)]=_0xf6fcab,_0x4fdbaf[_0x5f56c6(0x52d)]=_0x4377b7,_0x4fdbaf[_0x5f56c6(0x345)]=_0x14f3c4,Object[_0x5f56c6(0x17a)](_0x4fdbaf,Symbol['toStringTag'],{'value':_0x5f56c6(0x4ca)});}));function _0xe8fd(_0x1172a4,_0x13835b){const _0x4fa71c=_0x4fa7();return _0xe8fd=function(_0xe8fd7e,_0x5f349e){_0xe8fd7e=_0xe8fd7e-0x14f;let _0x540950=_0x4fa71c[_0xe8fd7e];return _0x540950;},_0xe8fd(_0x1172a4,_0x13835b);}function _0x4fa7(){const _0x4fa7ea=['beginPath','ILogService','CONFLICT','takeUntil','off-line-single','_roomMembers$','length','getOwnPropertyDescriptor','handleIRemoveCol','slice','DependentOn','[DataLoaderController]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','enableLocalCache','getUnitStatus$','collaboration-session-retry','_handleHeartbeatEvent','setWaitCount','getImageSourceCache','updatePermissionPoint','[CollaborationEntity]','\x0aAfter:\x20','_colorAssignService','use','_exhaustRemoteChangesetQueue','put','_saveTaskMap','enableOfflineEditing','LIVESHARE_FETCH_OPERATIONS','requireSession','_permissionService','SheetCollaborationEntity','SNAPSHOT_INVALID_SNAPSHOT','red300','HEARTBEAT_TIMEOUT','FileId','unshift','APPLY_DUPLICATED','saveChangeset','_changesetSessionId','action','row','Tools','RETRY_CONNECTING_MAX_COUNT_KEY','_resendTimeout','stringify','\x20in\x20_schedule.','registerRefRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleMoveRange','Rectangle','_onCursorDelete','_transformService','UNDEFINED','onCommentUpdate','randomUUID','off-line-single_clip0_910_343','_scheduleHeartbeat','docStateChange$','actions','_startDocCollabCursor','UNIVER_SHEET','size','_telemetryInfo','_handleEvent','currentColor','_rescheduleHeartbeat','removeMember','_clearLocalCache','bind','transformMutationsWithChangeset','body','labelPosition','/-/object/-/batch_allowed','onReady','_getAPIPrefix','then','_loadSheet','ONLINE','getDocRanges','0\x200\x2016\x2016','touchDependencies','exports','Module','RevisionService','UUID','_transformStack','status','UNRECOGNIZED','_startCollaboration','SetWorksheetActivateCommand','_disabled','compose','memberID','_changesetReqId','_sessionStatus$','mergeOverrideWithDependencies','SnapshotService','fill','_online','cursorInfo$','unit-cache-','IImageIoService','_showConflictNotification','_getCurrentRevision','requestParams','fetchThroughInterceptors','_revisionService','_updateState','roomMembers','currentSkeleton$','updateCursorEvent','_createHandler','_configService','hidden','_transformUndoredo','getAttachHeader','resend','awaiting_with_pending','0\x200\x2017\x2016','getAncestorScale','[CollaborationSessionService]:\x20socket\x20error','set','newValue','CollaborationStatusDisplay','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','JOIN','_getDownloadEndpointURL','UniverTelemetry','addObject','_onOffline','onRemoteRej','getCollabCursors$','?size=','_createInitialStateImpl','_getRedoStack','_getLoginPath','black','getOffsetConfig','_document','loadSheet','_queuedRemoteChangesets','_cursor','transformMutation','registerRenderModule','tag','NOT_FOUND','IBeforeCloseService','getSkeleton','collabStatus.notCollab','saveSheetBlock','Rect','1553985UlgFFC','setAlpha','_unitStatus','subUnitId','code','RegularPolygon','_socketService','b64DecodeUnicode','fromEventSubject','parseProtocolChangeset','onTransformRemoteChangesetByIMECache','SUCCUSS','onPointerMove$','CHANGESET_ACK','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSendChangesetTimeout','assignAColorForMemberID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_memberService','_startTelemetryCollaborationNewChangeset','endColumn','_sender','ImageIoService','_send','handleInsertRangeMoveRight','debounce','getInterceptPoints','IURLService','_collabCursorState$','_urlService','deserializeToCombResponse','[PendingState]:\x20received\x20acknowledgement.','disposeWithMe','handleIRemoveRow','NO_OTHER_CLIENTS_EDITING','findNodePositionByCharIndex','_hover','COLLAB_SUBMIT_CHANGESET_URL_KEY','_onCombEvent','{fileID}','DEFAULT_FILE_NAME','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TEXT','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onRemoteAck','_onLocalMutation','univer-online-status-title','failed\x20to\x20apply\x20missed\x20changesets!','AWAITING','UNIVER_DOC','UNIVER_PROJECT','_isPermissionRej','UniverLicense','_collaborationPaused','interceptor','unitId','open$','hide','loadOfflineData','CONNECTOR_DATA_TOO_LARGE','add','data','session','isTransformMutationsWithChangesetFailure','originalMeta','encodeURIComponent','selections','MSG_FOR_ERROR','/new_changes','handleDeleteRangeMoveLeft','_initStatusListener','string','createCollaborator','_clearOtherTimers','COMMENT_UPDATE','error$','TOO_MANY_REQUESTS','has','onTransformChange$','_docTransformSelectionsService','DeleteRangeMoveUpCommandId','INGEST','registerDependencies','INotificationService','update','_instanceService','[CollaborationSessionService]','type','awaitingChangeset','synced','/universer-api/snapshot/','getUnhiddenWorksheets','/role','awaiting','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','CollaborationEvent','shouldCloseConn','ICollaborationSocketService','offline','BASE64','useDependency','event$','_initRequestHeader','_renderManagerService','_scheduleCollaborationTimeoutTimer','isTransformMutationsWithChangesetSuccess','Workbook','#FFF','purple300','_stopTelemetryCollaborationNewChangeset','forEach','SEND_CHANGESET_TIMEOUT_KEY','toggleOffline','CollaborationSessionService','univer-offline','getActiveSheet','_docSyncEditingCollabCursorService','@univerjs/engine-render','_unitID','unitID','UniverCollaborationClient','patch','textRanges','_listenToOfflineEvent','getOwnPropertySymbols','DOC_RANGE_TYPE','getWorkbookSelections','[PendingState]:\x20unhandled\x20univer\x20type:\x20','path','restore','members','sid','defIds','getFocusedUnit','sessionStatus','_toggleOffline','UniverCollaborationClientPlugin','DocCollaborationEntity','_state','state','\x20to\x20','OnLineSingle','_collaborationController','workbook','_onConnectionOpen','COLLAB_WEB_SOCKET_URL_KEY','ITelemetryService','UnitSnapshot','getSheetId','SheetsSelectionsService','react','INTERNAL_ERROR','getCurrentUnitForType','_undoStacks','AuthzIoHttpService','updateCollaborator','_type','socket\x20close','UniverRpc','disableLocalCache','extend','_assignedColors','indexOf','send','FETCH_MISSING','cmd','on-line-single_clip0_910_349','_replaceFileID','SheetPermissionInitController','_docStateChangeManagerService','ITransformService','HTTPRequest','getCurrentRevOfUnit','setCurrentUser','UNIVER_COLLABORATION_CLIENT_PLUGIN','_updateURLWithCurrentState','fillRule','pending','defineProperty','next','@univerjs/rpc','CollaborationSocketService','evenodd','_onRemoteChangeset','executeCommand','_config','values','clipPath','_removeCollabCursors','clear','SNAPSHOT_SERVER_URL_KEY','UNKNOWN_CMD','Unknown\x20user','SheetCollabCursorShape','subscribe','fromEvent','setShowComponents','_handleLeaveEvent','userID','focused$','_status$','_color','RemoveRowCommandId','getUnitType','INVALID_ARGUMENT','HTTPService','setParam','_anchor','transformRemoteChangeset','_eventUnsubscribe','take','PERMISSION_REJ','_undoRedoService','prototype','setInterval','_members','objectActions','mapDocumentTypeToUniverType','getUnitId','LICENSE_EXPORT_SIZE_EXCEEDED','ICommandService','changesets','/unit/','_candidateSocket','_sheetTransformSelectionsService','YUUMI_URL_COL_OUT_OF_RANGE','column','UserManagerService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_getSheetObject','FETCH_MISS','font','IPermissionService','COLLAB_SUBMIT_CHANGESET_URL','getImage','handleInsertRangeMoveDown','_acknowledgedAwaitingChangeset','EmptyMutation','Disposable','replaceTextRanges','dispose','deserializeRangeWithSheet','_joinRoom','idSuffix','Plugin','startsWith','_telemetryService','getMergeData','_clearCollaborationTimeoutTimer','UniverCore','mapTo','transformUndoRedo','now','telemetry\x20info\x20is\x20not\x20initialized','rxjs','_id','/universer-api/authz','Warning','\x20-\x20','conflict.title','defs','toDisposable','resolve','onSendChangeset','updatePermissionObjEvent','fetch_missing','HELLO','text','getItem','VIEW_MAIN','connectInjector','[PendingState]:\x20received\x20rejection.','LocalCacheService','Inject','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','isTransformMutationFailure','m1Prime','ThemeService','resize','addEventListener','getConfig','transformByState','FromArray','_localStorageService','whenReady','lineTo','_onConflict','cursorInfo','MergeInterceptorFactory','_socketReady','HEARTBEAT_INTERVAL_KEY','EffectRefRangId','image/jpeg','measureText','params','_saveCache','RefRangeService','subunit','setShapeProps','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','NodePositionConvertToCursor','_executeRemoteChangeset','collaborators','clearTimeout','HEARTBEAT_TIMEOUT_KEY','_getCtorByUniverType','appendMutation','ImageSourceType','UniverUi','WebSocketService','error','_getAnchorBounding','onPointerEnter$','listRoles','_startSheetCollabCursor','fillText','IDLE','withCredentials','_localCacheService','_cursors','HttpExport','replaceState','@univerjs/telemetry','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getUndoRedoMutationParamsCache','moveTo','getLatestCsReqIdBySid','Optional','object','activeSheet$','DocIMEInputManagerService','RxDisposable','_scheduleTimestamp','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','newCsEvent','max','change$','loadDoc','UnitEmbedded','4404728sNYXIf','_name','[OfflineState]:\x20received\x20rejection.','collabCursorState$','rng','onStateChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','incrementRevOfUnit','getResourcesRequest','_cachedData','[CollaborationSession]','top','getVpScrollXYInfoByPosToVp','VIEWPORT_KEY','PENDING','_waitCount','reconnect','getDeserializedSheetBlock','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_beforeCloseService','_updateLocalCursor','fetchMiss','/universer-api/comb','UniverSheets','AUTHZ_URL_KEY','downloadEndpointUrl','_initDependencies','UNKNOWN_CODE','_snapshotServerService','ILocalStorageService','map','setItem','_initUnitPermissionChange','save\x20fail\x20reason\x20is\x20','doc.mutation.rich-text-editing','removeParam','_sheetSkeletonManagerService','result','...','updateOfflineData','_toggleOnline','name','forwardRef','@univerjs/docs','InsertSheetMutation','/resources','collabStatus.synced','_hovered','conflict.content','collabStatus.offline','IMessageService','UniverIcon','commentUpdate$','transformSelections','unknown','ColorKit','setActiveRange','liveShareNewHost','_redoStacks','eventID','apply','_imageSourceCache','_render','icon','SUBMIT_CHANGESET','visibilityState','@univerjs/sheets','MUTATION','headers','COLORS','_notificationService','setTimeout','_drawAnchor','_cursorInfo$','current','_getAPIPrefixPath','_waitForHeartbeatResponse','merge','collabStatus.conflict','CollaborationEntity','objectID','_loadDoc','WebURLService','encode','onMissedChangesetFetched','COMPRESS_MUTATION_APPLY','collaboratorID','_onRecvEvent','[CollaborationState]:\x20apply\x20error!','_updateStatus','arc','IRenderManagerService','reqId','createElement','onTransformIME','revision','641364gFwcMy','Error','ImageUploadStatusType','_ensureSubject','COMPLETION_FINISHED','_clearHeartbeatTimer','@univerjs/docs-ui','onlineStatusTitle','&assign=','createIdentifier','LocaleService','getTime','state$','mutations','_refreshCollabCursors','univer-pro.collaboration-client.single-active-unit-service','Tooltip','engine','permission.title','split','responseType','LIVESHARE_REQUEST_HOST','TEXT_RANGE_LAYER_INDEX','_retryConnectingTimer','_getUploadFileURL','UniverNetwork','_range','getRangePointData','collab-client.tooltip.reconnect','initWorkbookPermissionChange','_remoteChangesetQueue','capture','RECV','session.room-full','runRefRangeMutations','transformIMECache','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','\x0aCurrent:\x20','_clearUndo','_handler','_snapshotService','reduce','deepClone','_substituteRedoStack','_commandService','_roomMembers','[OfflineState]:\x20received\x20changeset.','_sessions','CompressMutationService','asObservable','isTransformChangesetsSuccess','_refRangeService','@univerjs/design','find','getCellPositionByOffset','objectType','MemberService','urlChange$','_updateSubUnitFromURLParams','UniverSheetsUi','history','_drawRectRange','from','_initCommandExecutedListener','collaboration_new_changeset','getParam','SYNCED','_compressMutationService','LIVESHARE_OPERATION','Univer','delay','onlyLocal','createSocket','getCurrentUser','USERS_LEAVE','on-line-single','MessageType','url(#on-line-single_clip0_910_349)','_onJoinRoomEvent','parseChangesetToProtocol','_submitChangeset','round','_transformUndoRedoStack','APPLY_PERMISSION_DENIED','permissionRejEvent','skeleton','operators','[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.','joinEvent','_entityInit$','generateRandomId','url(#off-line-single_clip0_910_343)','_docSkeletonManagerService','exhaustSavingTask','_getUndoStack','_checkMissing','location','isActive','UniverCollaboration','getUnit','jiqing500','DesktopCollaborationStatusDisplayController','none','commentUpdateEvent','_createSocket','_context','collabWebSocketUrl','concat','SheetSkeletonManagerService','show','univerjs-icon\x20univerjs-icon-','DisposableCollection','_entities','submit\x20changeset\x20error!','_hideTimer','drawWith','HttpImport','_decreaseWaiting','getRenderById','svg','_ws','UPDATE_PERMISSION_OBJ','reject','c2Prime','_getScale','getRandomValues','_onUserLeave','debug','_tryEnsureSocket','SNAPSHOT_HAS_BEEN_REMOVED','getCurrentSelections','with','APPLY_REJECT','pipe','getCollabEntity$','_incrementRevisionNumber','copyFileMeta','YUUMI_RATE_OVER_LIMIT','_sendHeartbeatTimer','CHANGESET_SHOULD_RETRY','xlink:href','SnapshotServerOverHTTPService','socket$','[FetchMissState]','OffLineSingle','getMember','batchAllowed','_http','toLowerCase','getColor','USERS_ENTER','_commentService','@univerjs/network','CommandType','_event$','saveSnapshot','some','LOGIN_URL_KEY','csShouldRetryEvent','_pendingMutations','pushState','_sendHeartbeat','4791712QClRIi','_colorIndex','transformChangesets','_anchorDot','ERROR_IMAGE','/universer-api/oidc/authpage','collaboration.single-unit.warning','filter','5356845jytHrS','handleInsertCol','UniverDesign','Vector2','confirm','save','getValue','_unlockTransition','getCurrent','_getSignURL','Undefined','routeKey','HEARTBEAT_INTERVAL','_transformIMECache','_HTTPService','getUnitOnRev','children','ranges','target','_socket$','onMissingChangesets','sendChangesetTimeout','univer-online-status','c1Prime','useObservable','_labelPosition','currentTheme$','delete','4149474dwVxSI','auth.needGotoLoginAlert','?url=','@univerjs-pro/collaboration','serializeCombRequest','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','InsertRangeMoveRightCommandId','editingUnit','unsubscribe','equals','SHOULD_CLOSE_CONN','x-univer-host','IConfigService','rgba(255,\x20255,\x20255,\x200.01)','saveOfflineData','onRendered','post','NOT_COLLAB','RETRY_CONNECTING_MAX_COUNT','_collabCursorController','UNAUTHENTICATED','distinctUntilChanged','_createInitialState','origin','sequenceExecute','UniverCollaborationPlugin','_setupSubUnitSync','addImageSourceCache','_initCloseConn','entries','AWAITING_WITH_PENDING','_initEventListeners','PERMISSION_DENIED','ReplaySubject','onlineStatusIcon','DocSkeletonManagerService','#fff','LOCAL_CACHE_INTERVAL_KEY','image/bmp','width','_shapes','15lOXdZb','_retryCount','@univerjs/ui','_draw','debounceTime','IRemoteInstanceService','ALREADY_EXISTS','translate(.97)','storage','onCommandExecuted','retryConnectingInterval','_localeService','_change$','CHANGESET_REVISION_CONFILICT','connection\x20error','_collabSessionService','toggleOnline','visibilitychange','socketService','image/png','attrs','FAIL','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_cursorShapes','putCollaborators','updateMember','fillStyle','OFFLINE','_substituteUndoStack','_docTransformIMECacheService','_backgroundColor','_themeService','url(#$1','BehaviorSubject','@univerjs/drawing','LICENSE_MAX_UNITS_EXCEEDED','_shouldReportTelemetry','DataLoaderController','_textBubble','HEARTBEAT','searchParams','_selfUnitIDs','IUndoRedoService','shareReplay','_userManagerService','useRef','NodePositionConvertToRectRange','_schedule','_listenToOnlineEvent','onRemoteChangeset','message$','isPermissionRej','UniverDocsUi','_timeoutTimer','className','_awaitingChangeset','socket\x20open.','@univerjs/sheets-ui','IContextService','collab-text-anchor-','_socketMessageSubscription','_initMergeInterceptor','_onFetchMissResult','_messageService','SetSelectionsOperation','href','_logService','_registerRenderDependencies','onStarting','_scene','_onRemoteRetry','disposeUnit','url','_applyRemoteChangeset','sheetID','catch','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','symbol','pauseCollaboration','_setupBeforeClosingHandler','includes','init','_transformSelections','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Subject','contains','uni.network.url-service','flatMap','_handleJoinEvent','ENSURE_SNAPSHOT_EXECUTION','LOCAL_CACHE_INTERVAL','_initStatusComponent','Injector','onTransformSelections','CollaborationSession','random','close','unit','_fetchMissChangesets','subscribeEvent','dispose$','_injector','src','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','_singleActiveUnitService','onlineStatus','fromCollab','roomInfos','session.connection-failed','unitId\x20is\x20not\x20found','enableSingleActiveInstanceLock','_clearRedo','_transformPreviousActiveRange','concatMap','getTypeOfUnitAdded$','append','baseRev','LICENSE_DISTRO_REJECTED','sessionStatus$','_unitOnClients','SNAPSHOT_URL_KEY','COLLAB_WEB_SOCKET_URL','registerBeforeClose','LIVESHARE_NEW_HOST','_heartbeatTimer','_sendingTimer','M0\x200H16V16H0z','duration','startColumn','ACTIVE_UNIT_EVENT_CHANNEL','_disableEditing','_clearTimeoutTimer','height','_removeClearOtherTimer','_onRemoteRejected','registerHTTPInterceptor','_onConnectionFailed','APPLY_REVISION_CONFILICT','_onCursorUpdate','conflict','ERROR_IMAGE_TYPE','assign','session.collaboration-timeout','RichTextEditingMutation','_registerDependencies','parse','m2Prime','CHANGESET_REJ','getRelativeToViewportCoord','OTHER_CLIENTS_EDITING','isArray','isInternalEditorID','_collaborationSessionService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','key','CollaborationController','IAuthzIoService','getTypeOfUnitDisposed$','_resendWithTimeout','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','displayName','_scheduleClearOtherTimer','_handleHover','_removeRoom','div','Shape','collaboration.closeRoom','onPointerLeave$','hasOwnProperty','[CollaborationUndoRedoService]','LEAVE','editing\x20status\x20changed\x20to','_commentUpdate$','_transitionLocked','leaveEvent','getSheetBySheetId','getCoordByCell','/block/','_session','clearInterval','_socket','[OfflineState]:\x20received\x20acknowledgement.','pluginName','ISnapshotServerService','complete','call','_onRemoteACK','transformStack\x20failed!','_state$','backgroundColor','stopTime','transform','_syncEditingCollabCursorService','switchMap','json','localeService','IUIPartsService','_updateLocalCache','signUrlServerUrl','_throwTelemetryCollaborationNewChangeset','NEW_CHANGESETS','_univerInstanceService','_uiPartsService','_init','YUUMI_UNABLE_LOAD_URL','UniverInstanceType','saveImage','WorkbookEditablePermission','DocSelectionManagerService','trim','snapshotServerUrl','closeSession','POST','list','IUniverInstanceService','close$','_updateCollabCursors','/rev/','createInstance','_getSnapshotAPIPrefix','triggerDblclick','rxjs/operators','serializeRangeWithSheet','_lastPointer','closePath','_collaborationTimeoutTimer','get','_clearScheduledTask','addObjects','7dZiMPB','fetchMissingChangesets','_getSaveTimeout','LIVESHARE_TERMINATE','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[SyncedState]:\x20received\x20rejection.','toRgbString','color','LICENSE_IMPORT_SIZE_EXCEEDED','_resendTimer','_syncEditingCollabCursor','collab-rect-range-','_onRefRangeChange','_scheduleSaving','_onMessage','59054RjXxxR','[UniverCollaborationClientPlugin]','React','/fetchmissing?from=','colorChannel1','objects','LocalUndoRedoService','@univerjs-pro/license','onMouseMove','toString','UNIVER_SLIDE','/collaborator','_httpService','status$','textEncoder','getAllMembers','onRemoteRetry','1em','_lockTransition','_tryReconnect','/allowed','getMemberID','override','push'];_0x4fa7=function(){return _0x4fa7ea;};return _0x4fa7();}