@univerjs-pro/collaboration-client 0.3.0 → 0.4.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5448(_0x2c6472,_0x238c31){const _0x2e97c1=_0x2e97();return _0x5448=function(_0x544853,_0x127254){_0x544853=_0x544853-0x188;let _0x38c5b3=_0x2e97c1[_0x544853];return _0x38c5b3;},_0x5448(_0x2c6472,_0x238c31);}function _0x2e97(){const _0x2a5261=['_injector','_scheduleCollaborationTimeoutTimer','transformStack\x20failed!','unit','parseProtocolChangeset','_submitChangeset','off-line-single_clip0_910_343','/allowed','roomMembers$','ALREADY_EXISTS','_transformRemoteChangesetByIMECache','_setupSubUnitSync','_startDocCollabCursor','_members','InsertSheetMutation','UniverCollaborationPlugin','awaiting','OTHER_CLIENTS_EDITING','onRendered','AUTHZ_URL_KEY','LifecycleStages','collab-text-range-','setTimeout','throttleTime','_clearTimeoutTimer','WorkbookEditablePermission','routeKey','IUIPartsService','FromArray','SetSelectionsOperation','EXCHANGE_SIGN_URL_SERVER_URL_KEY','clear','getSkeleton','_docTransformSelectionsService','_showConflictNotification','_colorAssignService','type','transformByState','_color','LIVESHARE_FETCH_OPERATIONS','_transformUndoRedoStack','DocSelectionManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','attrs','_commandService','UniverCollaborationClientPlugin','Error','_replaceFileID','removeMember','capture','\x0aCurrent:\x20','UNRECOGNIZED','state$','getDocRanges','Inject','getUniverSheetInstance','collabCursorState$','getCurrentSelections','_transitionLocked','M0\x200H16V16H0z','UUID','liveShareOperation','liveShareNewHost','getDeserializedSheetBlock','url(#$1','onSendChangeset','idSuffix','eventID','onCommentUpdate','column','_document','fetching\x20missing\x20changesets\x20from\x20','_transformSelections','_cursorShapes','LIVESHARE_TERMINATE','currentColor','univer-online','_drawAnchor','transformIMECache','_ensureSubject','COMPRESS_MUTATION_SEND','ImageIoService','event$','_onRemoteRejected','getOwnPropertySymbols','next','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleDeleteRangeMoveUp','NOT_COLLAB','HEADER_MENU','isValidRectRange','HEARTBEAT_INTERVAL_KEY','toggleOffline','\x20to\x20','width','saveImage','RefRangeService','closeSession','cmd','UniverLicense','toString','has','post','toggleOnline','DocIMEInputManagerService','collaboratorID','operators','includes','1078170ewBdct','fillText','_assignedColors','onRemoteAck','fromEvent','image/jpeg','BehaviorSubject','LOGIN_URL_KEY','_sessionStatus$','INGEST','@univerjs/telemetry','MUTATION','POST','encode','_exhaustRemoteChangesetQueue','_anchor','synced','call','getConfig','&assign=','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','UNIVER_SLIDE','110256AeDCKZ','_onCursorUpdate','appendMutation','_snapshotServerService','onSyncEditingCollabCursor','RECV','conflict','getUnhiddenWorksheets','dispose$','_decreaseWaiting','_loadDoc','_drawTextRange','confirm','doc.mutation.rich-text-editing','getRoom','[CollaborationState]:\x20apply\x20error!','_cursor','_updateLocalCursor','SEND_CHANGESET_TIMEOUT','saveSnapshot','endRow','_onConnectionFailed','filter','UniverInstanceType','_collaborationController','ILocalStorageService','_telemetryInfo','[SyncedState]:\x20received\x20acknowledgement.','triggerDblclick','isTransformChangesetsSuccess','ImageUploadStatusType','onRemoteChangeset','_initStatusComponent','collabSubmitChangesetUrl','transformUndoRedo','awaiting_with_pending','InsertRangeMoveDownCommandId','_substituteUndoStack','_updateSubUnitFromURLParams','Disposable','SNAPSHOT_URL_KEY','_onConflict','_candidateSocket','makeDirty','_substituteRedoStack','_notificationService','then','_saveTaskMap','createSocket','parse','round','generateRandomId','onTransformRemoteChangesetByIMECache','IDLE','AWAITING','split','collab-client.tooltip.reconnect','OnLifecycle','getUnitStatus$','_onUserLeave','m1Prime','beginPath','getMemberID','getTime','isTransformMutationsWithChangesetFailure','_onCursorDelete','SessionStatus','_createInitialStateImpl','name','registerOnClose','prototype','string','JSONX','_range','UniverDrawing','listRoles','csAckEvent','now','SNAPSHOT_SERVER_URL_KEY','/-/object/-/batch_allowed','_entityInit$','_sendHeartbeatTimer','getActiveSheet','transformMutationsWithChangeset','AuthzIoHttpService','compose','transformSelections','session.will-retry','deleteCollaborator','getCurrent','_http','TEXT_RANGE_LAYER_INDEX','removeParam','ThresholdInterceptorFactory','collaborators','_syncEditingCollabCursorService','_onRefRangeChange','CONFLICT','loadDoc','clsx','Rect','RemoveColCommandId','_tryEnsureSocket','_docTransformIMECacheService','hide','CONNECTOR_DATA_TOO_LARGE','sequenceExecute','[CollaborationSessionService]','SNAPSHOT_HAS_BEEN_REMOVED','FETCH_MISS','visibilitychange','icon','delete','_tryReconnect','isTransformMutationsWithChangesetSuccess','entries','rev','measureText','ERROR_IMAGE','find','createCollaborator','BuiltInUIPart','?url=','DocCollaborationEntity','_getAPIPrefixPath','[CollaborationSession]','forwardRef','\x20-\x20','size','OnLineSingle','@univerjs/engine-render','SUCCUSS','[OfflineState]:\x20received\x20rejection.','_onLocalMutation','_clearScheduledTask','objectID','_handler','FAIL','m2Prime','_selfUnitIDs','DEFAULT_FILE_NAME','storage','_initCommandExecutedListener','_transformPreviousActiveRange','_compressMutationService','[DataLoaderController]','div','_toggleOffline','CollaborationSocketService','0\x200\x2017\x2016','/universer-api/snapshot/','LIVESHARE_REQUEST_HOST','_event$','on-line-single','@univerjs/sheets','NOT_FOUND','_getMergeRange','_joinRoom','_getSaveTimeout','_updateStatus','31384tptnsn','_getDownloadEndpointURL','_roomMembers','RETRY_CONNECTING_MAX_COUNT','url(#on-line-single_clip0_910_349)','handleIRemoveCol','allowed','_onRemoteACK','serializeCombRequest','@univerjs/ui','disableLocalCache','getSheetId','getUnit','retryConnectingInterval','SheetSkeletonManagerService','@univerjs/rpc','_clearUndo','setWaitCount','YUUMI_RATE_OVER_LIMIT','fillRule','/block/','_schedule','getRangePointData','@univerjs/network','defs','INTERNAL_ERROR','localeService','uni.network.url-service','send','React','assignAColorForMemberID','_syncEditingCollabCursor','getMember','_getSnapshotAPIPrefix','roomMembers','debug','_init','takeUntil','_name','stopTime','baseRev','revision','_collabSessionService','Ready','11640nMcAQj','sendChangesetTimeout','history','UNDEFINED','_scheduleTimestamp','exports','asObservable','/-/object/list','toDisposable','getCurrentRevOfUnit','replace','NEW_CHANGESETS','getRelativeToViewportCoord','drawWith','_createSocket','updateOfflineData','univer-online-status-title','shareReplay','InsertRowCommandId','CollaborationController','color','urlChange$','debounce','addEventListener','4415751OuPToI','_sheetSkeletonManagerService','3JvyOYC','_acknowledgedAwaitingChangeset','UniverTelemetry','UNIVER_DOC','_stopTelemetryCollaborationNewChangeset','_drawRectRange','_updateLocalCache','_disabled','_listenToOfflineEvent','_httpService','BASE64','csRejEvent','Starting','status$','_startSheetCollabCursor','_clearHeartbeatTimer','/universer-api/snapshot','data','values','not_collab','HTTPRequest','CHANGESET_REVISION_CONFILICT','arc','SetWorksheetActivateCommand','isInternalEditorID','_rescheduleHeartbeat','status','_textBubble','UniverCollaboration','_status$','HELLO','_docSkeleton','height','_instanceService','show','LocalCacheService','collab-text-anchor-','_getRedoStack','getCellPositionByOffset','ThemeService','textRanges','PSEUDO_FETCH_MISSING_RESULT','useDependency','MergeInterceptorFactory','WebSocketService','_state$','INVALID_ARGUMENT','_retryConnectingTimer','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_handleEvent','_commentUpdate$','interceptor','LIVESHARE_OPERATION','slice','reconnect','LEAVE','_online','UniverIcon','_removeClearOtherTimer','SnapshotServerOverHTTPService','/fetchmissing?from=','clearInterval','offline','unit-cache-','getColor','blue400','evenodd','random','getAncestorScale','getValue','UniverNetwork','collabStatus.notCollab','fromCollab','pending','_onRemoteChangeset','_refRangeService','_roomMembers$','_pendingMutations','getImageSourceCache','/collaborator','/unit/','_initStatusListener','HEARTBEAT_INTERVAL','_change$','RevisionService','/role','red300','DependentOn','take','PENDING','CollaborationEntity','VIEW_MAIN','add','CollaborationEvent','TOO_MANY_REQUESTS','sessionStatus$','sessionStatus','getActiveRange','engine','_docStateChangeManagerService','0\x200\x2016\x2016','Optional','apply','updateCursorEvent','_univerInstanceService','_collaborationPaused','_startTelemetryCollaborationNewChangeset','onPointerEnter$','_logService','_collaborationTimeoutTimer','_waitCount','IAuthzIoService','OffLineSingle','_getCurrentRevision','_state','CollaborationSessionService','LICENSE_DISTRO_REJECTED','resend','_refreshCollabCursors','_waitForHeartbeatResponse','DocSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getFocusedUnit','ISnapshotServerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Shape','1em','LocaleService','startRow','current','createInstance','from','subUnitId','_handleHeartbeatEvent','univer-pro.collaboration-client-socket-service','CHANGESET_REJ','Error\x20on\x20receiving\x20event','[CollaborationSessionService]:\x20socket\x20error','_redoStacks','IMessageService','Steady','HEARTBEAT','permissionRejEvent','getUnitId','put','MSG_FOR_ERROR','Injector','SNAPSHOT_INVALID_SNAPSHOT','_memberService','IRenderManagerService','collabStatus.offline','CHANGESET_ACK','_scene','objectType','getOwnPropertyDescriptor','_renderManagerService','_getAPIPrefix','mutations','SHOULD_CLOSE_CONN','_transformService','_scheduleClearOtherTimer','onRemoteRej','_userManagerService','_socket','joinEvent','UNIVER_PROJECT','serializeRangeWithSheet','_localeService','catch','executeCommand','getCoordByCell','startsWith','Tooltip','IUndoRedoService','workbook','_clearRedo','univerjs-icon\x20univerjs-icon-','handleInsertRangeMoveDown','@univerjs/docs-ui','EffectRefRangId','DesktopCollaborationStatusDisplayController','merge','concat','unitId\x20is\x20not\x20found','body','getUnitType','LICENSE_EXPORT_SIZE_EXCEEDED','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_telemetryService','_initRequestHeader','children','roles','ICommandService','addObject','_heartbeatTimer','_unitID','@univerjs-pro/license','conflict.title','_initMergeInterceptor','tag','_throwTelemetryCollaborationNewChangeset','UniverUi','message$','onMouseMove','IBeforeCloseService','rgba(255,\x20255,\x20255,\x200.01)','range','_localStorageService','registerRenderModule','onStateChange','json','runRefRangeMutations','clearTimeout','ColorKit','USERS_ENTER','8BgwTPw','_handleJoinEvent','setParam','_onUserJoin','indexOf','addObjects','getMergeData','FileId','UPDATE_PERMISSION_OBJ','handleInsertCol','className','ICollaborationSocketService','session.connection-failed','XHRHTTPImplementation','DeleteRangeMoveLeftCommandId','collabStatus.syncing','_shapes','combineLatest','all','getResourcesRequest','update','rxjs/operators','_initResize','COMPLETION_FINISHED','Subject','deserializeRangeWithSheet','_unitOnClients','exhaustSavingTask','session.collaboration-timeout','collaboration-session-retry','_transformIMECache','univer-online-status','_registerRenderDependencies','debounceTime','AWAITING_WITH_PENDING','IImageIoService','_timeoutTimer','onMissingChangesets','_scheduleHeartbeat','_loadSheet','onload','b64DecodeUnicode','_revisionService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','RegularPolygon','handleIRemoveRow','switchMap','set','useObservable','loadOfflineData','[CollaborationEntity]','_unitStatus','getAttachHeader','setAlpha','_startCollaboration','_cachedData','subscribeEvent','open$','endColumn','_singleActiveUnitService','IPermissionService','mergeOverrideWithDependencies','_setupBeforeClosingHandler','use','_scheduleSaving','APPLY_REVISION_CONFILICT','_hover','startTime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','HTTPService','_colorIndex','with','getOffsetConfig','every','title','_labelPosition','joinRsp','_executeRemoteChangeset','getParam','Tools','_isPermissionRej','resize','_draw','3630921QKzRkF','RemoveRowCommandId','transformChangesets','COMPRESS_MUTATION_APPLY','[OfflineState]:\x20received\x20changeset.','_socketService','hidden','@univerjs-pro/collaboration','black','subunit','signUrlServerUrl','CommandType','YUUMI_URL_COL_OUT_OF_RANGE','setConfig','telemetry\x20info\x20is\x20not\x20initialized','snapshot','TRANSFORM_CHANGE_OBSERVABLE_TYPE','close$','_ws','_socket$','Unknown\x20user','_getSheetObject','session.room-full','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','useRef','_initCloseConn','getInterceptPoints','_hovered','encodeURIComponent','UniverEngineFormula','getCurrentUnitForType','reject','pushState','CollaborationSession','CollaborationStatusDisplay','getTypeOfUnitAdded$','findNodePositionByCharIndex','ws://127.0.0.1:8000/universer-api/comb/connect','on-line-single_clip0_910_349','_cursorInfo$','reduce','editing\x20status\x20changed\x20to','listCollaborators','_anchorDot','_getSendChangesetTimeout','getCurrentUser','change$','subscribe','onTransformSelections','@univerjs/drawing','editingUnit','deepClone','\x0aAfter:\x20','getCollabCursors$','max','setShapeProps','_cursors','session','addImageSourceCache','collaboration.closeRoom','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitDisposed$','withCredentials','univer-online-status-icon','_id','_initUnitPermissionChange','_collabCursorState$','concatMap','cursorInfo$','JOIN','/resources','map','ITelemetryService','univer-offline','IURLService','_removeRoom','append','DocStateChangeManagerService','NO_OTHER_CLIENTS_EDITING','pipe','location','getCollabEntity','mapTo','c1Prime','@univerjs/docs','UPDATE_CURSOR','get','reverse','transformRemoteChangeset','_snapshotService','_updateURLWithCurrentState','flatMap','_saveCache','USERS_LEAVE','min','replaceState','WebURLService','_uiPartsService','none','isArray','1985PoNCNW','/new_changes','code','connectInjector','enableOfflineEditing','syncEditingCollabCursor','extend','_sendingTimer','commentUpdate$','_onFetchMissResult','setCurrentUser','top','restore','[SyncedState]:\x20received\x20rejection.','_getSignURL','result','getWorkbookSelections','text','_permissionService','memberID','_docSyncEditingCollabCursorService','22TnlCVA','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','unshift','currentSkeleton$','rxjs','getImage','dispose','loadSheet','_configService','roomInfos','createElement','_getUndoStack','duration','unitId','object','collaboration-client.offline-data-not-saved','uploadFileServerUrl','createIdentifier','_incrementRevisionNumber','_eventUnsubscribe','onPointerMove$','save\x20fail\x20reason\x20is\x20','length','react','APPLY_NON_SEQUENTIAL_REVISION','downloadEndpointUrl','forEach','init','saveSheetBlock','_createInitialState','_disableEditing','_queuedRemoteChangesets','svg','_config','_initModules','/universer-api/comb','members','_sessions','online','NodePositionConvertToRectRange','UserManagerService','startColumn','Rectangle','selections','_context','COMMENT_UPDATE','_render','_send','_urlService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','unitID','[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.','_entities','clipPath','getSheetBySheetId','LICENSE_IMPORT_SIZE_EXCEEDED','requestParams','method','action','delay','resourceIDs','ONLINE','getSheetBlock','onTransformIME','onlineStatus','[FetchMissState]','error','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','isActive','Module','selection','_hideTimer','socketService','#fff','/object/','fill','params','isEditing','UNIVER_SHEET','FETCH_MISSING','stringify','updatePermissionPoint','JOINING','RxDisposable','contains','_sheetTransformSelectionsService','/universer-api/oidc/authpage','COLORS','push','fetchMissingChangesets','_docSkeletonManagerService','onMissedChangesetFetched','ranges','OFFLINE','INotificationService','_updateCollabCursors','authzUrl','_onRecvEvent','resolve','\x20in\x20_schedule.','_sendHeartbeat','image/jpg','...','UniverSheetsUi','&to=','state','skeleton','infoRsp','copyFileMeta','MessageType','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_messageService','_updateState','Warning','amd','defIds','@univerjs/sheets-ui','hasOwnProperty','_toggleOnline','trim','@univerjs/engine-formula','url','handleDeleteRangeMoveLeft','whenReady','socket$','onPointerLeave$','href','UniverSheets','some','complete','_createHandler','VIEWPORT_KEY','PERMISSION_REJ','updateMember','_socketMessageSubscription','pauseCollaboration','_lockTransition','Vector2','_imageSourceCache','save','error$','/universer-api/file/{fileID}/sign-url','transformMutation','fetchMiss','_session','fetch_missing','lineTo','registerRefRange','_socketReady','changesets','LIVESHARE_NEW_HOST','mapDocumentTypeToUniverType','_handleHover','bottom','collab-rect-range-','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','hovered','path','disposeUnit','_unlockTransition','assign','UNIVER_UNKNOWN','origin','2213864zefarS','_collaborationSessionService','setInterval','CompressMutationService','focused$','getCollabEntity$','_onCombEvent','onCommandExecuted','_lastPointer','xlink:href','DataLoaderController','ImageSourceType','objectActions','_HTTPService','function','x-univer-host','_onConnectionOpen','HEARTBEAT_TIMEOUT_KEY','_collabCursorController','fillStyle','onlyLocal','SEND_CHANGESET_TIMEOUT_KEY','Workbook','getItem','_handleLeaveEvent','registerHTTPInterceptor','visibilityState','_localCacheService','247zdbrzl','SheetsSelectionsService','_registerDependencies','unsubscribe','_retryCount','SheetCollaborationEntity','ILogService','DeleteRangeMoveUpCommandId','_onMessage','_type','toRgbString','override','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','userID','disposeWithMe','close','textEncoder','HttpExport','_clearCollaborationTimeoutTimer','SUBMIT_CHANGESET','displayName','registerBeforeClose','PERMISSION_DENIED','_undoRedoService','_clearLocalCache','defineProperty','_applyRemoteChangeset','IConfigService','unknown','CollaborationStatus','UniverDocsUi','IRemoteInstanceService','InsertColCommandId','RichTextEditingMutation','_fetchMissChangesets','_checkMissing','IUniverInstanceService','ITransformService','colorChannel1','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_PERMISSION_DENIED','APPLY_REJECT','enableSingleActiveInstanceLock','originalMeta','fetchThroughInterceptors','awaitingChangeset','_themeService','getRenderById','enableAuthServer','actions','_listenToOnlineEvent','Plugin','handleInsertRow','_backgroundColor','CommentService','_transformStack','@univerjs/design','UniverDesign','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20rejection.','row','labelPosition','onlineStatusTitle','_commentService','_remoteChangesetQueue','onStarting','UniverEngineRender','Undefined','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','currentTheme$','commentUpdateEvent','_getCtorByUniverType','batchAllowed','UNAUTHENTICATED','SetTextSelectionsOperation','_onOffline','_onJoinRoomEvent','putCollaborators','cursorInfo','_initEventListeners','UnitEmbedded','LOCAL_CACHE_INTERVAL','SheetCollabCursorShape','_undoStacks','@univerjs/core','UNKNOWN_CODE','_shouldReportTelemetry','UnitSnapshot','_replayCachedMutations','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','requireSession','deserializeToCombResponse','_getUploadFileURL','distinctUntilChanged','_getScale','collabStatus.conflict','isPermissionRej','key','_clearOtherTimers','SnapshotService','SetDocZoomRatioOperation','socket\x20open.','getUndoRedoMutationParamsCache','_removeCollabCursors','setItem','8VwHvGs','_awaitingChangeset'];_0x2e97=function(){return _0x2a5261;};return _0x2e97();}(function(_0x5a0fee,_0x59fe4d){const _0x4350fc=_0x5448,_0x4a713f=_0x5a0fee();while(!![]){try{const _0x4be613=-parseInt(_0x4350fc(0x4cb))/0x1*(parseInt(_0x4350fc(0x1b9))/0x2)+parseInt(_0x4350fc(0x1ff))/0x3*(parseInt(_0x4350fc(0x446))/0x4)+parseInt(_0x4350fc(0x38d))/0x5*(parseInt(_0x4350fc(0x1e5))/0x6)+-parseInt(_0x4350fc(0x329))/0x7+-parseInt(_0x4350fc(0x2d6))/0x8*(parseInt(_0x4350fc(0x1fd))/0x9)+-parseInt(_0x4350fc(0x539))/0xa*(-parseInt(_0x4350fc(0x3a2))/0xb)+-parseInt(_0x4350fc(0x54f))/0xc*(-parseInt(_0x4350fc(0x462))/0xd);if(_0x4be613===_0x59fe4d)break;else _0x4a713f['push'](_0x4a713f['shift']());}catch(_0x2c6339){_0x4a713f['push'](_0x4a713f['shift']());}}}(_0x2e97,0x8d59e),function(_0x28ceb3,_0xa80526){const _0x2f93f4=_0x5448;typeof exports==_0x2f93f4(0x3b0)&&typeof module<'u'?_0xa80526(exports,require('@univerjs/core'),require('rxjs'),require(_0x2f93f4(0x2eb)),require(_0x2f93f4(0x49a)),require(_0x2f93f4(0x1c2)),require(_0x2f93f4(0x1d0)),require(_0x2f93f4(0x330)),require(_0x2f93f4(0x543)),require(_0x2f93f4(0x37d)),require(_0x2f93f4(0x2b1)),require(_0x2f93f4(0x1b3)),require('@univerjs/engine-render'),require(_0x2f93f4(0x35a)),require(_0x2f93f4(0x41b)),require(_0x2f93f4(0x417)),require(_0x2f93f4(0x3b9)),require(_0x2f93f4(0x5b2)),require(_0x2f93f4(0x1c8)),require('@univerjs-pro/license')):typeof define==_0x2f93f4(0x454)&&define[_0x2f93f4(0x415)]?define([_0x2f93f4(0x1ea),_0x2f93f4(0x4b6),_0x2f93f4(0x3a6),_0x2f93f4(0x2eb),_0x2f93f4(0x49a),'@univerjs/ui','@univerjs/network',_0x2f93f4(0x330),_0x2f93f4(0x543),_0x2f93f4(0x37d),_0x2f93f4(0x2b1),_0x2f93f4(0x1b3),_0x2f93f4(0x19b),_0x2f93f4(0x35a),_0x2f93f4(0x41b),_0x2f93f4(0x417),_0x2f93f4(0x3b9),'clsx',_0x2f93f4(0x1c8),_0x2f93f4(0x2c3)],_0xa80526):(_0x28ceb3=typeof globalThis<'u'?globalThis:_0x28ceb3||self,_0xa80526(_0x28ceb3['UniverCollaborationClient']={},_0x28ceb3['UniverCore'],_0x28ceb3[_0x2f93f4(0x3a6)],_0x28ceb3['rxjs'][_0x2f93f4(0x537)],_0x28ceb3[_0x2f93f4(0x49b)],_0x28ceb3[_0x2f93f4(0x2c8)],_0x28ceb3[_0x2f93f4(0x245)],_0x28ceb3[_0x2f93f4(0x21b)],_0x28ceb3[_0x2f93f4(0x201)],_0x28ceb3['UniverDocs'],_0x28ceb3[_0x2f93f4(0x480)],_0x28ceb3[_0x2f93f4(0x422)],_0x28ceb3[_0x2f93f4(0x4a4)],_0x28ceb3[_0x2f93f4(0x599)],_0x28ceb3[_0x2f93f4(0x346)],_0x28ceb3[_0x2f93f4(0x40a)],_0x28ceb3[_0x2f93f4(0x1d6)],_0x28ceb3[_0x2f93f4(0x5b2)],_0x28ceb3['UniverRpc'],_0x28ceb3[_0x2f93f4(0x530)]));}(this,function(_0x2010a0,_0x5821d4,_0x2fad13,_0xbf2513,_0x2997c5,_0x32b063,_0x19a2cc,_0xf29ce7,_0x67c0c9,_0xc13db5,_0x1123f9,_0x872f07,_0x33b476,_0x2b5006,_0x5c27f4,_0x15b72e,_0x5036b4,_0x46648e,_0x1d2bd4,_0x1c126e){'use strict';const _0x2b1dc8=_0x5448;var _0x3d9f47=Object[_0x2b1dc8(0x47b)],_0x2d3a89=(_0xe8eb12,_0x513441,_0xc8dd41)=>_0x513441 in _0xe8eb12?_0x3d9f47(_0xe8eb12,_0x513441,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc8dd41}):_0xe8eb12[_0x513441]=_0xc8dd41,_0x58b0b3=(_0x31d12e,_0x1e8cd2,_0x4d9574)=>_0x2d3a89(_0x31d12e,typeof _0x1e8cd2!='symbol'?_0x1e8cd2+'':_0x1e8cd2,_0x4d9574);const _0x22f28d=_0x2b1dc8(0x59d),_0x34b7c6=_0x2b1dc8(0x20f),_0x5457b5=_0x2b1dc8(0x577),_0x97fb7f=_0x2b1dc8(0x561),_0x26584f='COLLAB_WEB_SOCKET_URL',_0x1f0f9f=_0x2b1dc8(0x34e),_0x28f4bb=_0x2b1dc8(0x251),_0x58f797='HEARTBEAT_TIMEOUT',_0x183075=_0x2b1dc8(0x1bc),_0x120b3c=_0x2b1dc8(0x4b3),_0x5d7118='COLLAB_SUBMIT_CHANGESET_URL',_0x49b93d=_0x2b1dc8(0x3c5),_0x4036af=_0x2b1dc8(0x540),_0x5525d8=_0x2b1dc8(0x3f9);var _0x37b011=(_0x525b0a=>(_0x525b0a[_0x525b0a['UNDEFINED']=0x0]=_0x2b1dc8(0x1e8),_0x525b0a[_0x525b0a['OK']=0x1]='OK',_0x525b0a[_0x525b0a[_0x2b1dc8(0x1d2)]=0x2]=_0x2b1dc8(0x1d2),_0x525b0a[_0x525b0a[_0x2b1dc8(0x478)]=0x3]='PERMISSION_DENIED',_0x525b0a[_0x525b0a[_0x2b1dc8(0x1b4)]=0x4]=_0x2b1dc8(0x1b4),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4ab)]=0x5]=_0x2b1dc8(0x4ab),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4d6)]=0x6]=_0x2b1dc8(0x4d6),_0x525b0a[_0x525b0a[_0x2b1dc8(0x22d)]=0x7]=_0x2b1dc8(0x22d),_0x525b0a[_0x525b0a['TOO_MANY_REQUESTS']=0x8]=_0x2b1dc8(0x25d),_0x525b0a[_0x525b0a[_0x2b1dc8(0x2ed)]=0x9]=_0x2b1dc8(0x2ed),_0x525b0a[_0x525b0a[_0x2b1dc8(0x214)]=0x1389]=_0x2b1dc8(0x214),_0x525b0a[_0x525b0a[_0x2b1dc8(0x292)]=0x1771]=_0x2b1dc8(0x292),_0x525b0a[_0x525b0a[_0x2b1dc8(0x5bb)]=0x1772]=_0x2b1dc8(0x5bb),_0x525b0a[_0x525b0a[_0x2b1dc8(0x48b)]=0x1b59]=_0x2b1dc8(0x48b),_0x525b0a[_0x525b0a[_0x2b1dc8(0x3ba)]=0x1b5a]=_0x2b1dc8(0x3ba),_0x525b0a[_0x525b0a[_0x2b1dc8(0x317)]=0x1b5b]=_0x2b1dc8(0x317),_0x525b0a[_0x525b0a[_0x2b1dc8(0x48a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x525b0a[_0x525b0a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2b1dc8(0x5b8),_0x525b0a[_0x525b0a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x525b0a[_0x525b0a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2b1dc8(0x27b),_0x525b0a[_0x525b0a[_0x2b1dc8(0x3d9)]=0x232b]=_0x2b1dc8(0x3d9),_0x525b0a[_0x525b0a[_0x2b1dc8(0x2b9)]=0x232c]=_0x2b1dc8(0x2b9),_0x525b0a[_0x525b0a[_0x2b1dc8(0x273)]=0x232d]=_0x2b1dc8(0x273),_0x525b0a[_0x525b0a['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x525b0a[_0x525b0a[_0x2b1dc8(0x335)]=0x2712]=_0x2b1dc8(0x335),_0x525b0a[_0x525b0a[_0x2b1dc8(0x1cb)]=0x2713]=_0x2b1dc8(0x1cb),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4f7)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x525b0a[_0x525b0a['UNRECOGNIZED']=-0x1]=_0x2b1dc8(0x500),_0x525b0a))(_0x37b011||{}),_0x25ecad=(_0x494b37=>(_0x494b37[_0x494b37[_0x2b1dc8(0x444)]=0x0]='UNIVER_UNKNOWN',_0x494b37[_0x494b37[_0x2b1dc8(0x202)]=0x1]='UNIVER_DOC',_0x494b37[_0x494b37['UNIVER_SHEET']=0x2]=_0x2b1dc8(0x3f1),_0x494b37[_0x494b37[_0x2b1dc8(0x54e)]=0x3]='UNIVER_SLIDE',_0x494b37[_0x494b37[_0x2b1dc8(0x2a4)]=0x4]=_0x2b1dc8(0x2a4),_0x494b37[_0x494b37[_0x2b1dc8(0x500)]=-0x1]='UNRECOGNIZED',_0x494b37))(_0x25ecad||{}),_0x42427d=(_0x4aba08=>(_0x4aba08[_0x4aba08['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x4aba08[_0x4aba08[_0x2b1dc8(0x21d)]=0x1]=_0x2b1dc8(0x21d),_0x4aba08[_0x4aba08[_0x2b1dc8(0x36e)]=0x2]=_0x2b1dc8(0x36e),_0x4aba08[_0x4aba08[_0x2b1dc8(0x236)]=0x3]='LEAVE',_0x4aba08[_0x4aba08[_0x2b1dc8(0x542)]=0x4]='INGEST',_0x4aba08[_0x4aba08[_0x2b1dc8(0x28c)]=0x5]='HEARTBEAT',_0x4aba08[_0x4aba08[_0x2b1dc8(0x554)]=0x6]='RECV',_0x4aba08[_0x4aba08[_0x2b1dc8(0x500)]=-0x1]=_0x2b1dc8(0x500),_0x4aba08))(_0x42427d||{}),_0x175fd1=(_0x1d0b86=>(_0x1d0b86[_0x1d0b86['UNKNOWN_CODE']=0x0]=_0x2b1dc8(0x4b7),_0x1d0b86[_0x1d0b86['OK']=0x1]='OK',_0x1d0b86[_0x1d0b86[_0x2b1dc8(0x1a2)]=0x2]=_0x2b1dc8(0x1a2),_0x1d0b86[_0x1d0b86['UNRECOGNIZED']=-0x1]=_0x2b1dc8(0x500),_0x1d0b86))(_0x175fd1||{}),_0xe85c2c=(_0x46ba0f=>(_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x4a5)]=0x0]=_0x2b1dc8(0x4a5),_0x46ba0f[_0x46ba0f['HttpImport']=0x1]='HttpImport',_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x473)]=0x2]=_0x2b1dc8(0x473),_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x4b2)]=0x3]=_0x2b1dc8(0x4b2),_0x46ba0f[_0x46ba0f['UnitSnapshot']=0x4]=_0x2b1dc8(0x4b9),_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x500)]=-0x1]=_0x2b1dc8(0x500),_0x46ba0f))(_0xe85c2c||{});const _0x451f80='collaboration-client.config',_0x10e363={};function _0x411e41(_0x29aa6e){const _0x3ace5a=_0x2b1dc8;var _0x252cbc,_0x129d71,_0x5b17e5,_0x5e1c86;const _0x101b15=_0x29aa6e['data'],_0x5d94aa=JSON[_0x3ace5a(0x580)](_0x101b15);switch(_0x5d94aa[_0x3ace5a(0x52f)]){case _0x42427d[_0x3ace5a(0x28c)]:case _0x42427d[_0x3ace5a(0x21d)]:{const _0x51df3d=_0x5d94aa[_0x3ace5a(0x40e)];return{..._0x5d94aa,'data':_0x51df3d,'cmd':_0x5d94aa['cmd']};}case _0x42427d[_0x3ace5a(0x36e)]:{const _0x4e0ede=_0x5d94aa[_0x3ace5a(0x322)];return{..._0x5d94aa,'data':_0x4e0ede,'cmd':_0x5d94aa['cmd']};}case _0x42427d['RECV']:{const _0x37020c=_0x5d94aa['collaMsg'];switch(_0x37020c[_0x3ace5a(0x510)]){case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x427)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x252cbc=_0x37020c[_0x3ace5a(0x28d)])==null?void 0x0:_0x252cbc['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7['CollaborationEvent'][_0x3ace5a(0x296)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x129d71=_0x37020c[_0x3ace5a(0x59b)])==null?void 0x0:_0x129d71['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x1f0)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x5b17e5=_0x37020c['newCsEvent'])==null?void 0x0:_0x5b17e5['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x286)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x5e1c86=_0x37020c[_0x3ace5a(0x20a)])==null?void 0x0:_0x5e1c86['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x37e)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x266)]},'cmd':_0x5d94aa['cmd']};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x2d5)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x2a3)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x386)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['leaveEvent']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_NEW_HOST']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50b)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_FETCH_OPERATIONS']:case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_OPERATION']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50a)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x517)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50b)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x290)]:return{..._0x5d94aa,'data':_0x37020c,'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x4a8)]},'cmd':_0x5d94aa['cmd']};case _0xf29ce7[_0x3ace5a(0x25c)]['UPDATE_PERMISSION_OBJ']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['updatePermissionObjEvent']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x29d)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['shouldCloseConn']},'cmd':_0x5d94aa['cmd']};default:return _0x5d94aa;}}default:return _0x5d94aa;}}function _0x4d079d(_0x17f648){const _0x4b609c=_0x2b1dc8;switch(_0x17f648[_0x4b609c(0x52f)]){case _0x42427d[_0x4b609c(0x28c)]:case _0x42427d[_0x4b609c(0x21d)]:return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)]});case _0x42427d[_0x4b609c(0x542)]:{let _0x5b345c;switch(_0x17f648['data']['eventID']){case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x37e)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x17f648['data'][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x386)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x386)],'leaveEvent':_0x17f648[_0x4b609c(0x210)]['data']};break;}case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x2d5)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x2d5)],'joinEvent':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x439)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x439)],'liveShareNewHost':_0x17f648[_0x4b609c(0x210)]['data']};break;}case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x233)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x233)],'liveShareOperation':_0x17f648['data'][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x517)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x517)],'liveShareTerminate':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x1b0)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x1b0)],'liveShareRequestHost':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x4f4)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x4f4)]};break;}default:_0x5b345c={'eventID':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x510)]};}return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'collaMsg':_0x5b345c});}case _0x42427d[_0x4b609c(0x36e)]:return JSON['stringify']({'cmd':_0x17f648['cmd'],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'joinReq':_0x17f648[_0x4b609c(0x210)]});case _0x42427d[_0x4b609c(0x236)]:return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'leaveReq':_0x17f648[_0x4b609c(0x210)]});default:throw new Error(_0x4b609c(0x2ba));}}var _0x432a66=Object['defineProperty'],_0x5d3dde=Object[_0x2b1dc8(0x299)],_0x3a4eed=(_0x4ff49e,_0x1bb341,_0x3686c5,_0x400f59)=>{for(var _0x2b57ce=_0x400f59>0x1?void 0x0:_0x400f59?_0x5d3dde(_0x1bb341,_0x3686c5):_0x1bb341,_0x9faeee=_0x4ff49e['length']-0x1,_0x51f7f4;_0x9faeee>=0x0;_0x9faeee--)(_0x51f7f4=_0x4ff49e[_0x9faeee])&&(_0x2b57ce=(_0x400f59?_0x51f7f4(_0x1bb341,_0x3686c5,_0x2b57ce):_0x51f7f4(_0x2b57ce))||_0x2b57ce);return _0x400f59&&_0x2b57ce&&_0x432a66(_0x1bb341,_0x3686c5,_0x2b57ce),_0x2b57ce;},_0x430528=(_0x2bfb46,_0xab1bcb)=>(_0x5bc90a,_0x1aedee)=>_0xab1bcb(_0x5bc90a,_0x1aedee,_0x2bfb46);const _0x5c41db=_0x5821d4[_0x2b1dc8(0x3b3)](_0x2b1dc8(0x285));function _0x594960(_0x664fda,_0x119b46,_0x3e2f0f){const _0x1d34da=_0x2b1dc8;return _0x664fda+'/'+_0x119b46+_0x1d34da(0x24f)+_0x3e2f0f+_0x1d34da(0x38e);}_0x2010a0[_0x2b1dc8(0x1ad)]=class extends _0x5821d4['Disposable']{constructor(_0x389b22,_0x4b064b,_0x3ca8d3,_0x1c4289,_0x1eae7a){const _0x2e7453=_0x2b1dc8;super(),this[_0x2e7453(0x5a9)]=_0x389b22,this[_0x2e7453(0x33b)]=_0x4b064b,this[_0x2e7453(0x3aa)]=_0x3ca8d3,this[_0x2e7453(0x26b)]=_0x1c4289,this[_0x2e7453(0x552)]=_0x1eae7a;}[_0x2b1dc8(0x57f)](_0x4a4984){const _0x10ce16=_0x2b1dc8,_0x2abff7=this[_0x10ce16(0x33b)][_0x10ce16(0x57f)](_0x4a4984);if(!_0x2abff7)throw new Error(_0x10ce16(0x3a3));const _0x30b8e7=new _0x5821d4['DisposableCollection'](),_0x478600=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7[_0x10ce16(0x33a)][_0x10ce16(0x358)](_0x51541e=>_0x478600[_0x10ce16(0x522)](_0x51541e))),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4[_0x10ce16(0x1ed)](()=>_0x478600[_0x10ce16(0x424)]()));const _0x38b6c6=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7[_0x10ce16(0x42f)]['subscribe'](_0x4b7c20=>_0x38b6c6[_0x10ce16(0x522)](_0x4b7c20))),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4['toDisposable'](()=>_0x38b6c6['complete']()));const _0x3a5d57=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7['message$'][_0x10ce16(0x358)](_0x196930=>{const _0xce1710=_0x10ce16,_0x1f0f6e=_0x411e41(_0x196930);_0x3a5d57[_0xce1710(0x522)](_0x1f0f6e);})),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4[_0x10ce16(0x1ed)](()=>_0x3a5d57[_0x10ce16(0x424)]()));let _0x5b8d97;const _0x48d0e7=()=>{const _0x5a8bc0=_0x10ce16;_0x38b6c6[_0x5a8bc0(0x522)](new Event('connection\x20error')),_0x478600['next'](new CloseEvent('connection\x20error')),_0x5b8d97[_0x5a8bc0(0x471)]();};return _0x5b8d97={'memberID':'','close$':_0x478600[_0x10ce16(0x1eb)](),'error$':_0x38b6c6[_0x10ce16(0x1eb)](),'open$':_0x2abff7['open$'],'message$':_0x3a5d57[_0x10ce16(0x1eb)](),'send':_0x50eb71=>{const _0x265149=_0x10ce16;if(_0x50eb71[_0x265149(0x52f)]===_0x42427d['INGEST']){if(_0x50eb71[_0x265149(0x210)]['eventID']===_0xf29ce7[_0x265149(0x25c)][_0x265149(0x475)]){this['_submitChangeset'](_0x5b8d97,_0x50eb71[_0x265149(0x210)])[_0x265149(0x2a7)](_0x3ccecc=>{const _0x4659d9=_0x265149;this[_0x4659d9(0x26b)][_0x4659d9(0x3e4)](_0x3ccecc),_0x48d0e7();});return;}if(_0x50eb71[_0x265149(0x210)][_0x265149(0x510)]===_0xf29ce7[_0x265149(0x25c)]['FETCH_MISSING']){const _0x5ce1a8=_0x50eb71[_0x265149(0x210)];this[_0x265149(0x484)](_0x5ce1a8)[_0x265149(0x57d)](_0x3cb6a4=>{const _0x4c823a=_0x265149;_0x3a5d57[_0x4c823a(0x522)]({'cmd':_0x42427d[_0x4c823a(0x554)],'code':_0x175fd1['OK'],'routeKey':_0x5ce1a8[_0x4c823a(0x210)]['unitID'],'routeType':'','data':{'eventID':_0xf29ce7['CollaborationEvent'][_0x4c823a(0x228)],'data':{'changesets':_0x3cb6a4}}});})[_0x265149(0x2a7)](_0x3b655d=>{const _0x3b581d=_0x265149;this[_0x3b581d(0x26b)]['error'](_0x3b655d),_0x48d0e7();});return;}}_0x2abff7[_0x265149(0x1d5)](_0x4d079d(_0x50eb71));},'close':()=>{const _0x1d003a=_0x10ce16;_0x2abff7[_0x1d003a(0x471)](),_0x30b8e7[_0x1d003a(0x3a8)]();}},_0x5b8d97;}async[_0x2b1dc8(0x4d2)](_0x1f3fbb,_0x46c3af){const _0x79e4f7=_0x2b1dc8;var _0x3f7788,_0x19e645;const {unitType:_0x45b55c,unitID:_0x265258,changeset:_0x49a2fe}=_0x46c3af[_0x79e4f7(0x210)],_0x13af76={'unitID':_0x265258,'memberID':_0x1f3fbb[_0x79e4f7(0x3a0)],'type':_0x45b55c,'changeset':_0xf29ce7['parseChangesetToProtocol'](_0x49a2fe)},_0x4fc89e=this[_0x79e4f7(0x3aa)][_0x79e4f7(0x54b)](_0x5d7118),_0x4687d7=this[_0x79e4f7(0x3aa)][_0x79e4f7(0x54b)](_0x451f80),_0xb60948=_0x594960((_0x19e645=(_0x3f7788=_0x4687d7==null?void 0x0:_0x4687d7[_0x79e4f7(0x570)])!=null?_0x3f7788:_0x4fc89e)!=null?_0x19e645:_0x49b93d,_0x45b55c,_0x265258);try{await this[_0x79e4f7(0x5a9)][_0x79e4f7(0x533)](_0xb60948,{'body':_0x13af76});}catch(_0x2f54cc){throw this[_0x79e4f7(0x26b)]['error'](_0x79e4f7(0x196),'submit\x20changeset\x20error!'),_0x2f54cc;}}async['_fetchMissChangesets'](_0x1958ed){const _0x4d39a8=_0x2b1dc8,{unitID:_0x1f1662,from:_0xd83867,to:_0x15f133,unitType:_0x37253b}=_0x1958ed[_0x4d39a8(0x210)];return(await this[_0x4d39a8(0x552)][_0x4d39a8(0x3fc)]({'metadata':void 0x0},{'unitID':_0x1f1662,'type':_0x37253b,'from':_0xd83867,'to':_0x15f133}))[_0x4d39a8(0x438)];}},_0x2010a0[_0x2b1dc8(0x1ad)]=_0x3a4eed([_0x430528(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x31b)])),_0x430528(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x22b)])),_0x430528(0x2,_0x5821d4['IConfigService']),_0x430528(0x3,_0x5821d4['ILogService']),_0x430528(0x4,_0xf29ce7['ISnapshotServerService'])],_0x2010a0[_0x2b1dc8(0x1ad)]);const _0x2fd828='collaboration_new_changeset';function _0xa4b6f2(_0x33194d){const _0x2d5dce=_0x2b1dc8;return JSON[_0x2d5dce(0x3f3)](_0x33194d)['length'];}class _0x4bccc8{constructor(){const _0x28e205=_0x2b1dc8;_0x58b0b3(this,'_commentUpdate$',new _0x2fad13[(_0x28e205(0x2ee))]()),_0x58b0b3(this,_0x28e205(0x395),this['_commentUpdate$'][_0x28e205(0x1eb)]());}[_0x2b1dc8(0x511)](_0x53cf17){const _0x23b01c=_0x2b1dc8;this[_0x23b01c(0x231)][_0x23b01c(0x522)](_0x53cf17);}}var _0x42b82f=Object['defineProperty'],_0x3d0f2f=Object[_0x2b1dc8(0x299)],_0x480508=(_0x9f63af,_0x3951b7,_0x1abee8,_0x368223)=>{const _0x4db89a=_0x2b1dc8;for(var _0x37d226=_0x368223>0x1?void 0x0:_0x368223?_0x3d0f2f(_0x3951b7,_0x1abee8):_0x3951b7,_0x2da5c4=_0x9f63af[_0x4db89a(0x3b8)]-0x1,_0x250507;_0x2da5c4>=0x0;_0x2da5c4--)(_0x250507=_0x9f63af[_0x2da5c4])&&(_0x37d226=(_0x368223?_0x250507(_0x3951b7,_0x1abee8,_0x37d226):_0x250507(_0x37d226))||_0x37d226);return _0x368223&&_0x37d226&&_0x42b82f(_0x3951b7,_0x1abee8,_0x37d226),_0x37d226;},_0x3260c1=(_0x3c99a0,_0x173bc1)=>(_0x3a05ea,_0x33c595)=>_0x173bc1(_0x3a05ea,_0x33c595,_0x3c99a0);let _0x35f626=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x56ffb4,_0x246777){const _0x527b59=_0x2b1dc8;super(),_0x58b0b3(this,_0x527b59(0x1bb),new Map()),(this['_univerInstanceService']=_0x56ffb4,this['_userManagerService']=_0x246777,this[_0x527b59(0x470)](_0x5821d4[_0x527b59(0x1ed)](_0x2fad13[_0x527b59(0x2b4)](this[_0x527b59(0x267)][_0x527b59(0x366)](_0x5821d4['UniverInstanceType'][_0x527b59(0x3f1)])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0x3acfae=>_0x3acfae[_0x527b59(0x28e)]())),this[_0x527b59(0x267)][_0x527b59(0x366)](_0x5821d4[_0x527b59(0x566)][_0x527b59(0x202)])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0xa9b07d=>_0xa9b07d['getUnitId']())),this[_0x527b59(0x267)]['getTypeOfUnitDisposed$'](_0x5821d4['UniverInstanceType']['UNIVER_SLIDE'])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0x3ef398=>_0x3ef398[_0x527b59(0x28e)]())))[_0x527b59(0x358)](_0x248b59=>this[_0x527b59(0x374)](_0x248b59)))));}[_0x2b1dc8(0x397)](_0xc567d1){const _0x3cccff=_0x2b1dc8;this[_0x3cccff(0x2a1)][_0x3cccff(0x397)](_0xc567d1);}['getCurrentUser'](){const _0x21da3c=_0x2b1dc8;return this[_0x21da3c(0x2a1)][_0x21da3c(0x356)]();}[_0x2b1dc8(0x428)](_0x474796,_0x3c9962){const _0x3bf39f=_0x2b1dc8;let _0x2e4be7=this[_0x3bf39f(0x1bb)][_0x3bf39f(0x37f)](_0x474796);_0x2e4be7||(_0x2e4be7=new _0x3cb511(),this[_0x3bf39f(0x1bb)][_0x3bf39f(0x305)](_0x474796,_0x2e4be7)),_0x2e4be7[_0x3bf39f(0x428)](_0x3c9962);}[_0x2b1dc8(0x4fd)](_0x3963c3,_0x35fc50){const _0x15acca=_0x2b1dc8,_0x31c799=this[_0x15acca(0x1bb)][_0x15acca(0x37f)](_0x3963c3);_0x31c799&&_0x31c799[_0x15acca(0x4fd)](_0x35fc50);}[_0x2b1dc8(0x55d)](_0x20e69b){const _0x28ff32=_0x2b1dc8;return this[_0x28ff32(0x1bb)][_0x28ff32(0x37f)](_0x20e69b);}[_0x2b1dc8(0x1d9)](_0x26ea3d,_0x5452e8){const _0x3dbab3=_0x2b1dc8,_0x4bfe30=this[_0x3dbab3(0x1bb)][_0x3dbab3(0x37f)](_0x26ea3d);if(_0x4bfe30)return _0x4bfe30[_0x3dbab3(0x1d9)](_0x5452e8);}['_removeRoom'](_0x4c0884){const _0x30f736=_0x2b1dc8,_0x103978=this[_0x30f736(0x1bb)][_0x30f736(0x37f)](_0x4c0884);_0x103978&&(_0x103978[_0x30f736(0x3a8)](),this['_roomMembers']['delete'](_0x4c0884));}[_0x2b1dc8(0x3a8)](){const _0x34cddc=_0x2b1dc8;this[_0x34cddc(0x1bb)][_0x34cddc(0x3bc)](_0x40f0aa=>_0x40f0aa[_0x34cddc(0x3a8)]()),this[_0x34cddc(0x1bb)][_0x34cddc(0x4ec)]();}};_0x35f626=_0x480508([_0x3260c1(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x3260c1(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x3ca)]))],_0x35f626);class _0x3cb511 extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x3afc16=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x3afc16(0x4da),new Map());}[_0x2b1dc8(0x3a8)](){const _0x500cfd=_0x2b1dc8;this[_0x500cfd(0x4da)][_0x500cfd(0x4ec)]();}['updateMember'](_0x5d4d89){const _0x5e371b=_0x2b1dc8;this[_0x5e371b(0x4da)][_0x5e371b(0x305)](_0x5d4d89[_0x5e371b(0x3a0)],_0x5d4d89);}[_0x2b1dc8(0x4fd)](_0x567927){const _0x5135e1=_0x2b1dc8;this[_0x5135e1(0x4da)]['delete'](_0x567927);}[_0x2b1dc8(0x1d9)](_0x54d846){const _0x82297b=_0x2b1dc8;return this[_0x82297b(0x4da)]['get'](_0x54d846);}}var _0x15d830=Object[_0x2b1dc8(0x47b)],_0x21bab0=Object[_0x2b1dc8(0x299)],_0x3dd3c6=(_0x1322b2,_0x53f144,_0x4dd46e,_0x5e15b5)=>{const _0x3cda5b=_0x2b1dc8;for(var _0x73e057=_0x5e15b5>0x1?void 0x0:_0x5e15b5?_0x21bab0(_0x53f144,_0x4dd46e):_0x53f144,_0x485715=_0x1322b2[_0x3cda5b(0x3b8)]-0x1,_0x211f2a;_0x485715>=0x0;_0x485715--)(_0x211f2a=_0x1322b2[_0x485715])&&(_0x73e057=(_0x5e15b5?_0x211f2a(_0x53f144,_0x4dd46e,_0x73e057):_0x211f2a(_0x73e057))||_0x73e057);return _0x5e15b5&&_0x73e057&&_0x15d830(_0x53f144,_0x4dd46e,_0x73e057),_0x73e057;},_0x210328=(_0x3914bd,_0x174db9)=>(_0x23d79,_0x5c8ad9)=>_0x174db9(_0x23d79,_0x5c8ad9,_0x3914bd),_0x58e615=(_0xf2cc1d=>(_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x584)]=0x0]=_0x2b1dc8(0x584),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x3f5)]=0x1]=_0x2b1dc8(0x3f5),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x400)]=0x2]=_0x2b1dc8(0x400),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x3df)]=0x3]=_0x2b1dc8(0x3df),_0xf2cc1d))(_0x58e615||{});_0x2010a0['CollaborationSession']=class extends _0x5821d4['RxDisposable']{constructor(_0x56ab13,_0xd28db4,_0x369ded,_0xaa38f4,_0x321443,_0x150a65,_0x506f26,_0x1198bc,_0x30049e,_0x1ca362){const _0x42a14d=_0x2b1dc8;super(),_0x58b0b3(this,_0x42a14d(0x541),new _0x2fad13['BehaviorSubject'](0x0)),_0x58b0b3(this,_0x42a14d(0x25e),this['_sessionStatus$'][_0x42a14d(0x1eb)]()),_0x58b0b3(this,_0x42a14d(0x1b1),new _0x2fad13[(_0x42a14d(0x2ee))]()),_0x58b0b3(this,_0x42a14d(0x51f),this[_0x42a14d(0x1b1)]['asObservable']()),_0x58b0b3(this,_0x42a14d(0x2a2)),_0x58b0b3(this,_0x42a14d(0x429)),_0x58b0b3(this,_0x42a14d(0x26c)),_0x58b0b3(this,_0x42a14d(0x4b8),!0x1),_0x58b0b3(this,_0x42a14d(0x569),null),(this['_unitID']=_0x56ab13,this[_0x42a14d(0x26b)]=_0x369ded,this['_beforeCloseService']=_0xaa38f4,this['_messageService']=_0x321443,this[_0x42a14d(0x3aa)]=_0x150a65,this[_0x42a14d(0x2a6)]=_0x506f26,this[_0x42a14d(0x293)]=_0x1198bc,this[_0x42a14d(0x4a1)]=_0x30049e,this[_0x42a14d(0x2bb)]=_0x1ca362,this[_0x42a14d(0x4b8)]=!!this[_0x42a14d(0x2bb)],_0xd28db4['pipe'](_0x2fad13[_0x42a14d(0x1de)](this[_0x42a14d(0x557)]))[_0x42a14d(0x358)](_0xb37d15=>{const _0x5ec401=_0x42a14d;var _0x53569d;typeof _0xb37d15>'u'||(this[_0x5ec401(0x2a2)]=_0xb37d15,_0xb37d15?(this[_0x5ec401(0x1b6)](_0xb37d15),this[_0x5ec401(0x429)]=_0xb37d15[_0x5ec401(0x2c9)]['subscribe'](_0xeea2ca=>{const _0x389046=_0x5ec401;_0xeea2ca[_0x389046(0x4e7)]===this[_0x389046(0x2c2)]&&this[_0x389046(0x44c)](_0xeea2ca);})):(this[_0x5ec401(0x2c7)](),this[_0x5ec401(0x541)]['next'](0x2),(_0x53569d=this[_0x5ec401(0x429)])==null||_0x53569d[_0x5ec401(0x465)](),this[_0x5ec401(0x429)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x42a14d(0x594)](()=>{const _0x26b88b=_0x42a14d;var _0x2ccf50;(_0x2ccf50=this[_0x26b88b(0x2a2)])==null||_0x2ccf50[_0x26b88b(0x1d5)]({'cmd':_0x42427d[_0x26b88b(0x236)],'data':{'roomID':this['_unitID']}});})));}get[_0x2b1dc8(0x25f)](){const _0xddcd4e=_0x2b1dc8;return this[_0xddcd4e(0x541)][_0xddcd4e(0x244)]();}[_0x2b1dc8(0x58d)](){const _0x41f298=_0x2b1dc8;var _0x298f20,_0x365572;return(_0x365572=(_0x298f20=this[_0x41f298(0x2a2)])==null?void 0x0:_0x298f20[_0x41f298(0x3a0)])!=null?_0x365572:null;}[_0x2b1dc8(0x3a8)](){const _0x14eead=_0x2b1dc8;super[_0x14eead(0x3a8)](),this[_0x14eead(0x557)][_0x14eead(0x522)](),this[_0x14eead(0x557)][_0x14eead(0x424)]();}[_0x2b1dc8(0x471)](){const _0x212baa=_0x2b1dc8;var _0x2fd059,_0x2ee9bf;this[_0x212baa(0x2c7)](),(_0x2fd059=this[_0x212baa(0x2a2)])==null||_0x2fd059[_0x212baa(0x1d5)]({'cmd':_0x42427d['LEAVE'],'data':{'roomID':this[_0x212baa(0x2c2)]}}),(_0x2ee9bf=this[_0x212baa(0x2a2)])==null||_0x2ee9bf[_0x212baa(0x471)](),this[_0x212baa(0x1b1)][_0x212baa(0x424)](),this[_0x212baa(0x541)][_0x212baa(0x424)](),this[_0x212baa(0x3a8)]();}[_0x2b1dc8(0x44c)](_0x1ccc4f){const _0x44ef4f=_0x2b1dc8;_0x1ccc4f['cmd']===_0x42427d[_0x44ef4f(0x36e)]?this[_0x44ef4f(0x4ae)](_0x1ccc4f):_0x1ccc4f[_0x44ef4f(0x52f)]===_0x42427d[_0x44ef4f(0x554)]&&this[_0x44ef4f(0x404)](_0x1ccc4f);}[_0x2b1dc8(0x1b6)](_0x401965){const _0x52f897=_0x2b1dc8;this[_0x52f897(0x541)][_0x52f897(0x522)](0x1),_0x401965[_0x52f897(0x1d5)]({'cmd':_0x42427d[_0x52f897(0x36e)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2b1dc8(0x4ae)](_0x2104d4){const _0xc462fb=_0x2b1dc8;var _0x4a605b;if(_0x2104d4[_0xc462fb(0x38f)]===_0x175fd1[_0xc462fb(0x1a2)]){this['_messageService'][_0xc462fb(0x221)]({'type':_0x2997c5['MessageType'][_0xc462fb(0x414)],'content':this[_0xc462fb(0x2a6)]['t'](_0xc462fb(0x33f))}),this[_0xc462fb(0x541)][_0xc462fb(0x522)](0x2);return;}this[_0xc462fb(0x541)][_0xc462fb(0x522)](0x3);const _0x4102d7=(_0x4a605b=_0x2104d4[_0xc462fb(0x210)][_0xc462fb(0x3ab)][this[_0xc462fb(0x2c2)]])==null?void 0x0:_0x4a605b[_0xc462fb(0x3c6)];_0x4102d7&&_0x4102d7[_0xc462fb(0x3bc)](_0x26e4e8=>this[_0xc462fb(0x293)][_0xc462fb(0x428)](this[_0xc462fb(0x2c2)],_0x26e4e8));}[_0x2b1dc8(0x404)](_0x371a21){const _0x28ab33=_0x2b1dc8;try{const _0x135a6e=_0x371a21[_0x28ab33(0x210)];switch(_0x135a6e['eventID']){case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x2d5)]:this['_onUserJoin'](_0x135a6e),this['_event$'][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x386)]:this[_0x28ab33(0x58a)](_0x135a6e),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x296)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x28ab33(0x474)](),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x290)]:this[_0x28ab33(0x26b)]['error'](_0x28ab33(0x3b7)+JSON[_0x28ab33(0x3f3)](_0x135a6e)),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x3cf)]:this[_0x28ab33(0x4a1)][_0x28ab33(0x511)](_0x135a6e['data']),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;default:this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);}}catch(_0x2ec36e){this[_0x28ab33(0x26b)][_0x28ab33(0x3e4)](_0x2ec36e,_0x371a21);}}[_0x2b1dc8(0x2d9)](_0x35eb32){const _0x364cff=_0x2b1dc8;this[_0x364cff(0x293)][_0x364cff(0x428)](this[_0x364cff(0x2c2)],_0x35eb32[_0x364cff(0x210)]);}[_0x2b1dc8(0x58a)](_0x298c52){const _0x37d4d3=_0x2b1dc8;this['_memberService'][_0x37d4d3(0x4fd)](this[_0x37d4d3(0x2c2)],_0x298c52[_0x37d4d3(0x210)]['memberID']);}async[_0x2b1dc8(0x1d5)](_0x3ef6c7,_0x21d7c6){const _0x285f42=_0x2b1dc8;if(this[_0x285f42(0x25f)]!==0x3||!this['_socket'])throw new Error(_0x285f42(0x340));try{_0x3ef6c7[_0x285f42(0x510)]===_0xf29ce7['CollaborationEvent'][_0x285f42(0x475)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x285f42(0x269)](_0x3ef6c7)),this[_0x285f42(0x2a2)][_0x285f42(0x1d5)]({'cmd':_0x42427d[_0x285f42(0x542)],'routeKey':_0x21d7c6,'routeType':'','data':_0x3ef6c7});}catch(_0x29a9a0){this[_0x285f42(0x26b)][_0x285f42(0x3e4)](_0x29a9a0);}}[_0x2b1dc8(0x4ce)](){const _0x146f1b=_0x2b1dc8;var _0x4801b8;this[_0x146f1b(0x26c)]=window[_0x146f1b(0x4e3)](()=>{const _0x1e7d47=_0x146f1b;this[_0x1e7d47(0x26c)]=null,this['_messageService'][_0x1e7d47(0x221)]({'type':_0x2997c5[_0x1e7d47(0x410)][_0x1e7d47(0x4fb)],'content':this[_0x1e7d47(0x2a6)]['t'](_0x1e7d47(0x2f2))});},(_0x4801b8=this[_0x146f1b(0x3aa)][_0x146f1b(0x54b)](_0x58f797))!=null?_0x4801b8:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0xd1445d=_0x2b1dc8;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0xd1445d(0x26c)]),this[_0xd1445d(0x26c)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x579998){const _0x55ebc2=_0x2b1dc8;if(!this[_0x55ebc2(0x4b8)])return;const {data:_0x1b43f2}=_0x579998,{unitID:_0x2acde6,changeset:_0x4ce582}=_0x1b43f2,{mutations:_0xb65c6d,type:_0x2faae2}=_0x4ce582;this[_0x55ebc2(0x569)]={'unitId':_0x2acde6,'type':_0x2faae2,'startTime':performance[_0x55ebc2(0x59c)](),'stopTime':0x0,'duration':0x0,'size':_0xa4b6f2(_0xb65c6d)};}[_0x2b1dc8(0x203)](){const _0x37e587=_0x2b1dc8;if(this['_shouldReportTelemetry']){if(!this[_0x37e587(0x569)]){this['_logService'][_0x37e587(0x3e4)](_0x37e587(0x196),_0x37e587(0x337));return;}this[_0x37e587(0x569)]['stopTime']=performance[_0x37e587(0x59c)](),this[_0x37e587(0x569)][_0x37e587(0x3ae)]=this[_0x37e587(0x569)][_0x37e587(0x1e0)]-this[_0x37e587(0x569)][_0x37e587(0x319)],this[_0x37e587(0x2bb)][_0x37e587(0x4fe)](_0x2fd828,this[_0x37e587(0x569)]),this[_0x37e587(0x569)]=null;}}[_0x2b1dc8(0x2c7)](){const _0x4f9d87=_0x2b1dc8;this[_0x4f9d87(0x569)]=null;}},_0x2010a0[_0x2b1dc8(0x34a)]=_0x3dd3c6([_0x210328(0x2,_0x5821d4['ILogService']),_0x210328(0x3,_0x32b063[_0x2b1dc8(0x2cb)]),_0x210328(0x4,_0x32b063[_0x2b1dc8(0x28a)]),_0x210328(0x5,_0x5821d4[_0x2b1dc8(0x47d)]),_0x210328(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x210328(0x7,_0x5821d4['Inject'](_0x35f626)),_0x210328(0x8,_0x5821d4['Inject'](_0x4bccc8)),_0x210328(0x9,_0x5821d4['Optional'](_0x67c0c9[_0x2b1dc8(0x371)]))],_0x2010a0[_0x2b1dc8(0x34a)]);var _0x4d8b23=Object[_0x2b1dc8(0x47b)],_0xa8ef83=Object[_0x2b1dc8(0x299)],_0x13b428=(_0x524817,_0x41088b,_0x15475f,_0x1932d8)=>{const _0x56376f=_0x2b1dc8;for(var _0xa12d0=_0x1932d8>0x1?void 0x0:_0x1932d8?_0xa8ef83(_0x41088b,_0x15475f):_0x41088b,_0xa6302f=_0x524817[_0x56376f(0x3b8)]-0x1,_0x43aa5f;_0xa6302f>=0x0;_0xa6302f--)(_0x43aa5f=_0x524817[_0xa6302f])&&(_0xa12d0=(_0x1932d8?_0x43aa5f(_0x41088b,_0x15475f,_0xa12d0):_0x43aa5f(_0xa12d0))||_0xa12d0);return _0x1932d8&&_0xa12d0&&_0x4d8b23(_0x41088b,_0x15475f,_0xa12d0),_0xa12d0;},_0x1daf99=(_0x1058e1,_0x4e1996)=>(_0x1cc35d,_0x12d7d3)=>_0x4e1996(_0x1cc35d,_0x12d7d3,_0x1058e1);_0x2010a0[_0x2b1dc8(0x272)]=class extends _0x5821d4['Disposable']{constructor(_0x1eb6ba,_0x44927a,_0x2615ae,_0x2b2af1,_0x231250,_0x500201){const _0x21bda3=_0x2b1dc8;super(),_0x58b0b3(this,_0x21bda3(0x33c),new _0x2fad13['BehaviorSubject'](void 0x0)),_0x58b0b3(this,_0x21bda3(0x41f),this[_0x21bda3(0x33c)][_0x21bda3(0x1eb)]()),_0x58b0b3(this,_0x21bda3(0x579),null),_0x58b0b3(this,_0x21bda3(0x3c7),new Map()),_0x58b0b3(this,_0x21bda3(0x21c),new _0x2fad13['BehaviorSubject'](_0x58e615[_0x21bda3(0x584)])),_0x58b0b3(this,_0x21bda3(0x20c),this[_0x21bda3(0x21c)][_0x21bda3(0x1eb)]()),_0x58b0b3(this,_0x21bda3(0x437),!0x1),_0x58b0b3(this,_0x21bda3(0x22e)),_0x58b0b3(this,_0x21bda3(0x466),0x0),_0x58b0b3(this,'_sendHeartbeatTimer'),_0x58b0b3(this,_0x21bda3(0x2fa)),(this[_0x21bda3(0x4cd)]=_0x1eb6ba,this['_localeService']=_0x44927a,this[_0x21bda3(0x412)]=_0x2615ae,this[_0x21bda3(0x26b)]=_0x2b2af1,this['_configService']=_0x231250,this[_0x21bda3(0x32e)]=_0x500201,this[_0x21bda3(0x4b1)]());}get[_0x2b1dc8(0x2a2)](){const _0xb135d4=_0x2b1dc8;return this[_0xb135d4(0x33c)][_0xb135d4(0x244)]();}[_0x2b1dc8(0x4b1)](){const _0x4f4a38=_0x2b1dc8;this[_0x4f4a38(0x207)](),this[_0x4f4a38(0x494)]();}[_0x2b1dc8(0x3a8)](){const _0x298fc6=_0x2b1dc8;super[_0x298fc6(0x3a8)](),this[_0x298fc6(0x3c7)][_0x298fc6(0x3bc)](_0x36cee2=>_0x36cee2[_0x298fc6(0x3a8)]()),this[_0x298fc6(0x3c7)]['clear'](),this[_0x298fc6(0x21c)][_0x298fc6(0x424)]();}async[_0x2b1dc8(0x4bc)](_0x582bfb){const _0x1f8a1f=_0x2b1dc8;if(this[_0x1f8a1f(0x3c7)][_0x1f8a1f(0x532)](_0x582bfb))return this[_0x1f8a1f(0x3c7)][_0x1f8a1f(0x37f)](_0x582bfb);this[_0x1f8a1f(0x5b5)]();const _0x49f32a=this[_0x1f8a1f(0x4cd)][_0x1f8a1f(0x281)](_0x2010a0[_0x1f8a1f(0x34a)],_0x582bfb,this[_0x1f8a1f(0x33c)][_0x1f8a1f(0x1eb)]());return this[_0x1f8a1f(0x3c7)]['set'](_0x582bfb,_0x49f32a),_0x49f32a;}[_0x2b1dc8(0x52e)](_0x247904){const _0x864135=_0x2b1dc8;var _0x31202e;const _0x4c9902=this[_0x864135(0x3c7)][_0x864135(0x37f)](_0x247904);_0x4c9902&&(this[_0x864135(0x3c7)][_0x864135(0x189)](_0x247904),_0x4c9902[_0x864135(0x471)]()),this[_0x864135(0x3c7)][_0x864135(0x199)]||(_0x31202e=this['_socket'])==null||_0x31202e[_0x864135(0x471)]();}['reconnect'](){const _0x435edb=_0x2b1dc8;this[_0x435edb(0x466)]=0x0,this[_0x435edb(0x22e)]!=null&&(clearTimeout(this[_0x435edb(0x22e)]),this[_0x435edb(0x22e)]=null),this[_0x435edb(0x18a)]();}['_createSocket'](){const _0x1cb903=_0x2b1dc8;var _0x589f2c,_0x4ed916;const _0x5069db=this[_0x1cb903(0x3aa)][_0x1cb903(0x54b)](_0x26584f),_0x56b8c2=this['_configService'][_0x1cb903(0x54b)](_0x451f80),_0xdcb216=(_0x4ed916=(_0x589f2c=_0x56b8c2==null?void 0x0:_0x56b8c2['collabWebSocketUrl'])!=null?_0x589f2c:_0x5069db)!=null?_0x4ed916:_0x1f0f9f,_0x4dfbba=this[_0x1cb903(0x32e)]['createSocket'](_0xdcb216);return this[_0x1cb903(0x579)]=_0x4dfbba,_0x4dfbba;}[_0x2b1dc8(0x5b5)](){const _0x59e0f8=_0x2b1dc8;var _0x525085,_0x2a0521;try{const _0x407c95=(_0x2a0521=(_0x525085=this['_socket'])!=null?_0x525085:this[_0x59e0f8(0x579)])!=null?_0x2a0521:this[_0x59e0f8(0x1f3)]();if(_0x407c95){const _0x4077bc=_0x407c95[_0x59e0f8(0x1d5)];_0x407c95[_0x59e0f8(0x1d5)]=_0x3235b5=>(this[_0x59e0f8(0x218)](),_0x4077bc[_0x59e0f8(0x265)](_0x407c95,[_0x3235b5])),_0x407c95[_0x59e0f8(0x2c9)][_0x59e0f8(0x358)](_0x15c8aa=>this[_0x59e0f8(0x46a)](_0x407c95,_0x15c8aa)),_0x407c95['error$']['pipe'](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](_0xfd1652=>this[_0x59e0f8(0x26b)][_0x59e0f8(0x3e4)](_0x59e0f8(0x288),_0xfd1652)),_0x407c95[_0x59e0f8(0x30f)][_0x59e0f8(0x378)](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](()=>{const _0x5ccec4=_0x59e0f8;this[_0x5ccec4(0x456)](_0x407c95);}),_0x407c95['close$'][_0x59e0f8(0x378)](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](_0x4d8223=>{const _0x10ded5=_0x59e0f8;this[_0x10ded5(0x26b)]['debug'](_0x10ded5(0x5ba),'socket\x20close',_0x4d8223),this[_0x10ded5(0x564)]();});}}catch(_0x52e577){this[_0x59e0f8(0x26b)][_0x59e0f8(0x3e4)](_0x52e577),this[_0x59e0f8(0x564)]();}}[_0x2b1dc8(0x456)](_0xfc37c0){const _0x59b247=_0x2b1dc8;this[_0x59b247(0x26b)]['debug'](_0x59b247(0x5ba),_0x59b247(0x4c7)),_0xfc37c0[_0x59b247(0x1d5)]({'cmd':_0x42427d['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x24983c=_0x2b1dc8;window[_0x24983c(0x1fc)]('offline',()=>this[_0x24983c(0x4ad)]());}['_onOffline'](){const _0x3b3e3f=_0x2b1dc8;this['_socketReady']=!0x1,this[_0x3b3e3f(0x579)]=null,this[_0x3b3e3f(0x21c)][_0x3b3e3f(0x522)](_0x58e615[_0x3b3e3f(0x400)]),this[_0x3b3e3f(0x33c)][_0x3b3e3f(0x522)](null),this[_0x3b3e3f(0x4e5)](),this[_0x3b3e3f(0x20e)]();}['_onConnectionFailed'](){const _0x4f0f41=_0x2b1dc8;var _0x5da1f0;this[_0x4f0f41(0x4ad)](),this[_0x4f0f41(0x466)]<((_0x5da1f0=this[_0x4f0f41(0x3aa)][_0x4f0f41(0x54b)](_0x183075))!=null?_0x5da1f0:0x3)?(this[_0x4f0f41(0x412)]['show']({'key':_0x4f0f41(0x2f3),'type':_0x2997c5[_0x4f0f41(0x410)][_0x4f0f41(0x414)],'content':this[_0x4f0f41(0x2a6)]['t'](_0x4f0f41(0x5a6))}),this[_0x4f0f41(0x18a)]()):this[_0x4f0f41(0x412)][_0x4f0f41(0x221)]({'key':_0x4f0f41(0x2f3),'type':_0x2997c5[_0x4f0f41(0x410)][_0x4f0f41(0x4fb)],'content':this[_0x4f0f41(0x2a6)]['t'](_0x4f0f41(0x2e2))});}[_0x2b1dc8(0x494)](){const _0x49b299=_0x2b1dc8,_0x501235=()=>{const _0x103662=_0x5448;this['_socket']||this[_0x103662(0x235)]();},_0x49dd78=()=>{const _0x2b3980=_0x5448;this['_socket']||document[_0x2b3980(0x460)]===_0x2b3980(0x32f)||this[_0x2b3980(0x235)]();};window[_0x49b299(0x1fc)](_0x49b299(0x3c8),_0x501235),document[_0x49b299(0x1fc)](_0x49b299(0x5bd),_0x49dd78);}['_tryReconnect'](){const _0x18a2cd=_0x2b1dc8;var _0x4a462e;const _0x516310=this[_0x18a2cd(0x466)],_0x259936=this[_0x18a2cd(0x3aa)]['getConfig'](_0x451f80),_0x269c48=_0x516310===0x0?0x0:((_0x4a462e=_0x259936==null?void 0x0:_0x259936[_0x18a2cd(0x1c6)])!=null?_0x4a462e:0x4e20)*0x2**_0x516310;this[_0x18a2cd(0x22e)]=window[_0x18a2cd(0x4e3)](()=>{const _0x59155e=_0x18a2cd;clearTimeout(this[_0x59155e(0x22e)]),this[_0x59155e(0x22e)]=null,this[_0x59155e(0x5b5)]();},_0x269c48),this[_0x18a2cd(0x466)]+=0x1;}[_0x2b1dc8(0x46a)](_0x5324b7,_0x26ec94){const _0xe471ef=_0x2b1dc8,{cmd:_0x51a041}=_0x26ec94;_0x51a041===_0x42427d['HELLO']&&!this[_0xe471ef(0x437)]&&(_0x5324b7[_0xe471ef(0x3a0)]=_0x26ec94[_0xe471ef(0x210)]['memberID'],this[_0xe471ef(0x33c)][_0xe471ef(0x522)](_0x5324b7),this[_0xe471ef(0x21c)][_0xe471ef(0x522)](_0x58e615[_0xe471ef(0x3df)]),this[_0xe471ef(0x437)]=!0x0,this[_0xe471ef(0x579)]=null),_0x51a041===_0x42427d['HEARTBEAT']&&this[_0xe471ef(0x4e5)](),this['_rescheduleHeartbeat']();}[_0x2b1dc8(0x218)](){const _0x47d6e9=_0x2b1dc8;var _0x533382;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x47d6e9(0x4e3)](()=>this[_0x47d6e9(0x407)](),(_0x533382=this[_0x47d6e9(0x3aa)][_0x47d6e9(0x54b)](_0x28f4bb))!=null?_0x533382:0x7530);}['_sendHeartbeat'](){const _0x133792=_0x2b1dc8;this['_socket']['send']({'cmd':_0x42427d[_0x133792(0x28c)]}),this[_0x133792(0x276)]();}[_0x2b1dc8(0x276)](){const _0x21cda4=_0x2b1dc8;var _0x3591c0;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x21cda4(0x564)](),(_0x3591c0=this[_0x21cda4(0x3aa)]['getConfig'](_0x58f797))!=null?_0x3591c0:0x4e20);}[_0x2b1dc8(0x20e)](){const _0x35ddc0=_0x2b1dc8;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x35ddc0(0x5a0)]),this[_0x35ddc0(0x5a0)]=null);}[_0x2b1dc8(0x4e5)](){const _0x19a9e3=_0x2b1dc8;this[_0x19a9e3(0x2fa)]!=null&&(clearTimeout(this[_0x19a9e3(0x2fa)]),this[_0x19a9e3(0x2fa)]=null);}},_0x2010a0['CollaborationSessionService']=_0x13b428([_0x1daf99(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x1daf99(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['LocaleService'])),_0x1daf99(0x2,_0x32b063['IMessageService']),_0x1daf99(0x3,_0x5821d4[_0x2b1dc8(0x468)]),_0x1daf99(0x4,_0x5821d4[_0x2b1dc8(0x47d)]),_0x1daf99(0x5,_0x5c41db)],_0x2010a0[_0x2b1dc8(0x272)]);var _0xf47dc0=Object['defineProperty'],_0x1f8753=Object[_0x2b1dc8(0x299)],_0xfd997a=(_0x3f684d,_0x18f7d6,_0x4ee699,_0x2bbefa)=>{const _0xcf5f86=_0x2b1dc8;for(var _0x3dcab0=_0x2bbefa>0x1?void 0x0:_0x2bbefa?_0x1f8753(_0x18f7d6,_0x4ee699):_0x18f7d6,_0x3b70a9=_0x3f684d[_0xcf5f86(0x3b8)]-0x1,_0x51a578;_0x3b70a9>=0x0;_0x3b70a9--)(_0x51a578=_0x3f684d[_0x3b70a9])&&(_0x3dcab0=(_0x2bbefa?_0x51a578(_0x18f7d6,_0x4ee699,_0x3dcab0):_0x51a578(_0x3dcab0))||_0x3dcab0);return _0x2bbefa&&_0x3dcab0&&_0xf47dc0(_0x18f7d6,_0x4ee699,_0x3dcab0),_0x3dcab0;},_0x29cc74=(_0x601de7,_0xb6eaa3)=>(_0x436f95,_0x76a984)=>_0xb6eaa3(_0x436f95,_0x76a984,_0x601de7);let _0x203e1e=class{constructor(_0x98ef67,_0x486cdc,_0x5a4d40){const _0x2c6def=_0x2b1dc8;this[_0x2c6def(0x4cd)]=_0x98ef67,this[_0x2c6def(0x29e)]=_0x486cdc,this[_0x2c6def(0x29a)]=_0x5a4d40;}[_0x2b1dc8(0x51b)](_0x5ab77d){const _0x5c5871=_0x2b1dc8;this[_0x5c5871(0x4f5)](_0x5ab77d),this[_0x5c5871(0x1a8)](_0x5ab77d);}[_0x2b1dc8(0x381)](_0x114fbc){const _0x47b755=_0x2b1dc8,{unitID:_0x2748a4}=_0x114fbc,_0x4d2810=this['_renderManagerService'][_0x47b755(0x491)](_0x2748a4)['with'](_0x1123f9[_0x47b755(0x535)]),{redoCache:_0x1bb043}=_0x4d2810[_0x47b755(0x4c8)]();if(_0x1bb043[_0x47b755(0x3b8)]===0x0)return _0x114fbc;let _0x42542c=_0x5821d4[_0x47b755(0x325)][_0x47b755(0x35c)](_0x114fbc[_0x47b755(0x29c)][0x0]);for(let _0x42d0a5=0x0;_0x42d0a5<_0x1bb043[_0x47b755(0x3b8)];_0x42d0a5++){const _0x4bbc6b={'id':_0x47b755(0x55c),'params':{..._0x1bb043[_0x42d0a5]}},_0xee83c0=this[_0x47b755(0x29e)]['transformMutation'](_0x42542c,_0x4bbc6b,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0xee83c0))throw _0xee83c0['error'];_0x42542c=_0xee83c0[_0x47b755(0x58b)];}return{..._0x5821d4['Tools'][_0x47b755(0x35c)](_0x114fbc),'mutations':[_0x42542c]};}[_0x2b1dc8(0x4f5)](_0x2aea10){const _0x2dc828=_0x2b1dc8,{unitID:_0xdf01c0}=_0x2aea10,_0x40957a=this[_0x2dc828(0x29a)][_0x2dc828(0x491)](_0xdf01c0)[_0x2dc828(0x31d)](_0x1123f9[_0x2dc828(0x535)]),{undoCache:_0x3314a7,redoCache:_0x3869f4}=_0x40957a[_0x2dc828(0x4c8)]();if(_0x3314a7['length']===0x0||_0x3869f4[_0x2dc828(0x3b8)]===0x0)return;const _0x3a4f8b=[],_0x534461=[];let _0x27cbf5=_0x5821d4[_0x2dc828(0x325)][_0x2dc828(0x35c)](_0x2aea10['mutations'][0x0]),_0x39e14=_0x5821d4[_0x2dc828(0x325)][_0x2dc828(0x35c)](_0x2aea10['mutations'][0x0]);for(let _0x29a48d=_0x3314a7[_0x2dc828(0x3b8)]-0x1;_0x29a48d>=0x0;_0x29a48d--){const _0x5e37c8={'id':_0x2dc828(0x55c),'params':{..._0x3314a7[_0x29a48d]}},_0x1aaf5a={'id':_0x2dc828(0x55c),'params':{..._0x3869f4[_0x29a48d]}},_0x540bd4=this[_0x2dc828(0x29e)][_0x2dc828(0x431)](_0x27cbf5,_0x5e37c8,!0x1),_0x544e4e=this['_transformService'][_0x2dc828(0x431)](_0x39e14,_0x1aaf5a,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0x540bd4))throw _0x540bd4[_0x2dc828(0x3e4)];if(_0xf29ce7['isTransformMutationFailure'](_0x544e4e))throw _0x544e4e[_0x2dc828(0x3e4)];_0x3a4f8b['unshift'](_0x540bd4[_0x2dc828(0x1a3)][_0x2dc828(0x3ef)]),_0x534461[_0x2dc828(0x3a4)](_0x544e4e[_0x2dc828(0x1a3)][_0x2dc828(0x3ef)]),_0x27cbf5=_0x540bd4[_0x2dc828(0x58b)],_0x39e14=_0x544e4e[_0x2dc828(0x58b)];}_0x40957a['setUndoRedoMutationParamsCache']({'undoCache':_0x3a4f8b,'redoCache':_0x534461});}[_0x2b1dc8(0x1a8)](_0x2c66b2){const _0x2cce67=_0x2b1dc8,{unitID:_0xddf06a}=_0x2c66b2,_0x186ba0=this[_0x2cce67(0x29a)]['getRenderById'](_0xddf06a)[_0x2cce67(0x31d)](_0x1123f9[_0x2cce67(0x535)]),_0x564896=_0x186ba0[_0x2cce67(0x260)]();if(_0x564896==null)return;const _0x55d3d5=[{'id':_0x2cce67(0x55c),'params':{'unitId':_0x2c66b2[_0x2cce67(0x3d4)],'actions':null,'textRanges':[_0x564896]}}],_0xfac2f4=this[_0x2cce67(0x29e)][_0x2cce67(0x5a2)](_0x2c66b2,_0x55d3d5);if(!_0xf29ce7[_0x2cce67(0x18b)](_0xfac2f4))throw _0xfac2f4[_0x2cce67(0x3e4)];const _0x484799=_0xfac2f4[_0x2cce67(0x1a3)][0x0]['params'][_0x2cce67(0x227)];Array[_0x2cce67(0x38c)](_0x484799)&&_0x484799[_0x2cce67(0x3b8)]&&_0x186ba0['setActiveRange'](_0x484799[0x0]);}};_0x203e1e=_0xfd997a([_0x29cc74(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x29cc74(0x1,_0xf29ce7[_0x2b1dc8(0x487)]),_0x29cc74(0x2,_0x33b476[_0x2b1dc8(0x294)])],_0x203e1e);var _0x310c8d=Object['defineProperty'],_0x4fa6b7=Object[_0x2b1dc8(0x299)],_0x465e7d=(_0x31e8d6,_0x1a0cdf,_0x104ca5,_0x2016ec)=>{const _0x85d923=_0x2b1dc8;for(var _0x13fe04=_0x2016ec>0x1?void 0x0:_0x2016ec?_0x4fa6b7(_0x1a0cdf,_0x104ca5):_0x1a0cdf,_0x20b43c=_0x31e8d6[_0x85d923(0x3b8)]-0x1,_0x703c03;_0x20b43c>=0x0;_0x20b43c--)(_0x703c03=_0x31e8d6[_0x20b43c])&&(_0x13fe04=(_0x2016ec?_0x703c03(_0x1a0cdf,_0x104ca5,_0x13fe04):_0x703c03(_0x13fe04))||_0x13fe04);return _0x2016ec&&_0x13fe04&&_0x310c8d(_0x1a0cdf,_0x104ca5,_0x13fe04),_0x13fe04;},_0x3e8d6d=(_0x2d1191,_0x6e3445)=>(_0x51a550,_0xc391e1)=>_0x6e3445(_0x51a550,_0xc391e1,_0x2d1191);_0x2010a0[_0x2b1dc8(0x222)]=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x292cfe,_0x3d392c,_0x3ef3b7,_0x13cb3d,_0x434326){const _0x97459b=_0x2b1dc8;super(),_0x58b0b3(this,_0x97459b(0x30d),new Map()),_0x58b0b3(this,_0x97459b(0x57e),new Map()),_0x58b0b3(this,_0x97459b(0x206),!0x1),(this['_configService']=_0x292cfe,this['_localStorageService']=_0x3d392c,this['_beforeCloseService']=_0x3ef3b7,this[_0x97459b(0x2a6)]=_0x13cb3d,this[_0x97459b(0x300)]=_0x434326,this[_0x97459b(0x314)]());}['disableLocalCache'](){const _0x1dc80f=_0x2b1dc8;this[_0x1dc80f(0x206)]=!0x0;}['enableLocalCache'](){const _0x255ecf=_0x2b1dc8;this[_0x255ecf(0x206)]=!0x1;}[_0x2b1dc8(0x3a8)](){const _0x17a1a3=_0x2b1dc8;this['exhaustSavingTask']()[_0x17a1a3(0x57d)](()=>super[_0x17a1a3(0x3a8)]());}async['loadOfflineData'](_0x4431ee){const _0x12e6e0=_0x2b1dc8;return this[_0x12e6e0(0x206)]?null:this[_0x12e6e0(0x2ce)][_0x12e6e0(0x45d)](_0x4c1a63(_0x4431ee));}async['saveOfflineData'](_0x1c1d70,_0x455a6e){const _0x59f8d1=_0x2b1dc8;return!!this[_0x59f8d1(0x2ce)][_0x59f8d1(0x4ca)](_0x1c1d70,_0x455a6e);}[_0x2b1dc8(0x1f4)](_0x156248,_0x448f35,_0x556eba,_0x56d00f){const _0x49c3a3=_0x2b1dc8,_0x6bab7d=this['_revisionService'][_0x49c3a3(0x1ee)](_0x156248);this[_0x49c3a3(0x30d)][_0x49c3a3(0x305)](_0x156248,{'unitID':_0x156248,'type':_0x448f35,'awaitingChangeset':_0x556eba,'mutations':_0x56d00f,'rev':_0x6bab7d}),this['_saveTaskMap']['has'](_0x156248)||this[_0x49c3a3(0x316)](_0x156248);}['_scheduleSaving'](_0x556109){const _0x5a1f62=_0x2b1dc8,_0x1b0016=this[_0x5a1f62(0x1b7)]();_0x1b0016===0x0?this[_0x5a1f62(0x385)](_0x556109):this['_saveTaskMap'][_0x5a1f62(0x305)](_0x556109,setTimeout(()=>this[_0x5a1f62(0x385)](_0x556109),_0x1b0016));}[_0x2b1dc8(0x1b7)](){const _0xf7bd54=_0x2b1dc8;var _0x4058fb;return(_0x4058fb=this[_0xf7bd54(0x3aa)][_0xf7bd54(0x54b)](_0x120b3c))!=null?_0x4058fb:0x3e8;}[_0x2b1dc8(0x385)](_0x44f9d4){const _0x2224d3=_0x2b1dc8,_0x421253=this[_0x2224d3(0x57e)][_0x2224d3(0x37f)](_0x44f9d4);return _0x421253!==void 0x0&&window[_0x2224d3(0x2d3)](_0x421253),this[_0x2224d3(0x2ce)][_0x2224d3(0x4ca)](_0x4c1a63(_0x44f9d4),this['_cachedData'][_0x2224d3(0x37f)](_0x44f9d4))['then'](()=>this[_0x2224d3(0x57e)][_0x2224d3(0x189)](_0x44f9d4));}async[_0x2b1dc8(0x2f1)](){const _0x1c3323=_0x2b1dc8,_0x81c4e=[];this[_0x1c3323(0x57e)]['forEach']((_0x140808,_0x362f0c)=>{const _0x4587f8=_0x1c3323;window[_0x4587f8(0x2d3)](_0x140808),_0x81c4e[_0x4587f8(0x3fb)](this['_saveCache'](_0x362f0c)[_0x4587f8(0x57d)](()=>{const _0x2da516=_0x4587f8;this[_0x2da516(0x57e)][_0x2da516(0x189)](_0x362f0c);}));}),await Promise[_0x1c3323(0x2e8)](_0x81c4e);}[_0x2b1dc8(0x314)](){const _0x3c725f=_0x2b1dc8;this['disposeWithMe'](this['_beforeCloseService'][_0x3c725f(0x477)](()=>{const _0x182ee8=_0x3c725f;if(this[_0x182ee8(0x57e)]['size'])return this[_0x182ee8(0x2a6)]['t'](_0x182ee8(0x3b1));}));}},_0x2010a0['LocalCacheService']=_0x465e7d([_0x3e8d6d(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x3e8d6d(0x1,_0x5821d4[_0x2b1dc8(0x568)]),_0x3e8d6d(0x2,_0x32b063[_0x2b1dc8(0x2cb)]),_0x3e8d6d(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x3e8d6d(0x4,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)]))],_0x2010a0[_0x2b1dc8(0x222)]);function _0x4c1a63(_0x1be848){const _0x45f1f5=_0x2b1dc8;return _0x45f1f5(0x23e)+_0x1be848;}var _0x250493=Object['defineProperty'],_0x2e2a57=Object[_0x2b1dc8(0x299)],_0x32fdc1=(_0x55db64,_0x23ffda,_0x5507ef,_0x3d56c1)=>{const _0x284130=_0x2b1dc8;for(var _0x3a209e=_0x3d56c1>0x1?void 0x0:_0x3d56c1?_0x2e2a57(_0x23ffda,_0x5507ef):_0x23ffda,_0x3dd336=_0x55db64[_0x284130(0x3b8)]-0x1,_0x493c88;_0x3dd336>=0x0;_0x3dd336--)(_0x493c88=_0x55db64[_0x3dd336])&&(_0x3a209e=(_0x3d56c1?_0x493c88(_0x23ffda,_0x5507ef,_0x3a209e):_0x493c88(_0x3a209e))||_0x3a209e);return _0x3d56c1&&_0x3a209e&&_0x250493(_0x23ffda,_0x5507ef,_0x3a209e),_0x3a209e;},_0x148caa=(_0x107ab3,_0x39e392)=>(_0xe83ef2,_0x4fef8a)=>_0x39e392(_0xe83ef2,_0x4fef8a,_0x107ab3);function _0x25c284(_0x230ba2){const _0x277e7d=_0x2b1dc8,{unitID:_0x1d947f,mutations:_0x322863}=_0x230ba2;return{'unitId':_0x1d947f,'subUnitId':_0x322863[0x0][_0x277e7d(0x3ef)]['subUnitId']};}let _0x22d44e=class{constructor(_0x42e242,_0x376905,_0x1859bf){const _0x170ff8=_0x2b1dc8;this[_0x170ff8(0x4cd)]=_0x42e242,this[_0x170ff8(0x29e)]=_0x376905,this[_0x170ff8(0x220)]=_0x1859bf;}['transformSelections'](_0x5ac49b){const _0x31ac5d=_0x2b1dc8;var _0x21d0a4,_0x5efd06,_0x5ed30a,_0x27f778;const _0x530214=this[_0x31ac5d(0x4cd)][_0x31ac5d(0x37f)](_0x872f07[_0x31ac5d(0x463)]),{unitId:_0x22a75b,subUnitId:_0x5d9a13}=_0x25c284(_0x5ac49b),_0x5c873b=_0x530214[_0x31ac5d(0x39d)](_0x22a75b)[_0x31ac5d(0x506)](),_0x1f0a11=(_0x5efd06=(_0x21d0a4=this['_instanceService'][_0x31ac5d(0x1c5)](_0x22a75b))==null?void 0x0:_0x21d0a4[_0x31ac5d(0x5a1)]())==null?void 0x0:_0x5efd06[_0x31ac5d(0x1c4)]();if(_0x5c873b[_0x31ac5d(0x3b8)]===0x0||!_0x22a75b||!_0x5d9a13)return;const _0x1028fc=[{'id':_0x872f07['SetSelectionsOperation']['id'],'params':{'unitId':_0x22a75b,'subUnitId':_0x1f0a11,'selections':_0x5821d4[_0x31ac5d(0x325)][_0x31ac5d(0x35c)](_0x5c873b)}}],_0x1aeee9=this[_0x31ac5d(0x29e)][_0x31ac5d(0x5a2)](_0x5ac49b,_0x1028fc);if(!_0xf29ce7['isTransformMutationsWithChangesetSuccess'](_0x1aeee9))throw _0x1aeee9[_0x31ac5d(0x3e4)];const _0x2c8bc2=(_0x27f778=(_0x5ed30a=_0x1aeee9[_0x31ac5d(0x1a3)][0x0])==null?void 0x0:_0x5ed30a[_0x31ac5d(0x3ef)])==null?void 0x0:_0x27f778[_0x31ac5d(0x3cd)];Array['isArray'](_0x2c8bc2)&&_0x2c8bc2['length']&&this['_injector'][_0x31ac5d(0x37f)](_0x5821d4[_0x31ac5d(0x2bf)])[_0x31ac5d(0x2a8)](_0x872f07[_0x31ac5d(0x4ea)]['id'],{'unitId':_0x22a75b,'subUnitId':_0x1f0a11,'selections':_0x2c8bc2});}};_0x22d44e=_0x32fdc1([_0x148caa(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x148caa(0x1,_0xf29ce7[_0x2b1dc8(0x487)]),_0x148caa(0x2,_0x5821d4[_0x2b1dc8(0x486)])],_0x22d44e);const _0x4442df=_0x5821d4['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x100820=(_0x224665=>(_0x224665[_0x224665['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2b1dc8(0x377),_0x224665[_0x224665['OTHER_CLIENTS_EDITING']=0x1]=_0x2b1dc8(0x4de),_0x224665))(_0x100820||{});const _0x4af0b2=0x7530,_0x2fa35b='ACTIVE_UNIT_EVENT_CHANNEL';class _0x2dacc4 extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x40f3b0=_0x2b1dc8;super(),_0x58b0b3(this,_0x40f3b0(0x369),_0x5821d4['Tools']['generateRandomId']()),_0x58b0b3(this,_0x40f3b0(0x1a4),new Set()),_0x58b0b3(this,'_unitOnClients',new Map()),_0x58b0b3(this,_0x40f3b0(0x2c1),null),_0x58b0b3(this,_0x40f3b0(0x4c4),new Map()),_0x58b0b3(this,_0x40f3b0(0x309),new Map()),this[_0x40f3b0(0x1dd)]();}['dispose'](){const _0x5864c5=_0x2b1dc8;super[_0x5864c5(0x3a8)](),this['_clearOtherTimers'][_0x5864c5(0x3bc)]((_0x4d2182,_0x51a160)=>this[_0x5864c5(0x239)](_0x51a160)),this[_0x5864c5(0x2c1)]&&window[_0x5864c5(0x23c)](this['_heartbeatTimer']);}[_0x2b1dc8(0x589)](_0x59813c){const _0x4eef68=_0x2b1dc8;return this[_0x4eef68(0x51c)](_0x59813c)[_0x4eef68(0x378)](_0x2fad13[_0x4eef68(0x4bf)]());}[_0x2b1dc8(0x35b)](_0x4edca4){const _0x3493c5=_0x2b1dc8;this[_0x3493c5(0x1a4)][_0x3493c5(0x199)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3493c5(0x1a4)][_0x3493c5(0x25b)](_0x4edca4),this[_0x3493c5(0x3d1)]({'type':0x0,'memberID':this[_0x3493c5(0x369)],'unitIDs':[_0x4edca4],'isForwarded':!0x1});}[_0x2b1dc8(0x441)](_0x59c365){const _0x4750ff=_0x2b1dc8;this['_selfUnitIDs']['delete'](_0x59c365),this[_0x4750ff(0x1a4)][_0x4750ff(0x199)]===0x0&&this[_0x4750ff(0x2c1)]&&window[_0x4750ff(0x23c)](this['_heartbeatTimer']);}[_0x2b1dc8(0x1dd)](){const _0x3e2e69=_0x2b1dc8;this[_0x3e2e69(0x470)](_0x5821d4[_0x3e2e69(0x1ed)](_0x2fad13['fromEvent'](window,_0x3e2e69(0x1a6))['subscribe'](_0x18243b=>{const _0x240c3a=_0x3e2e69;if(_0x18243b[_0x240c3a(0x4c3)]!==_0x2fa35b||!_0x18243b['newValue'])return;const _0xe1bc0d=JSON[_0x240c3a(0x580)](_0x18243b['newValue']);this[_0x240c3a(0x230)](_0xe1bc0d);}))),window[_0x3e2e69(0x1fc)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3e2e69(0x369)],'unitIDs':Array[_0x3e2e69(0x282)](this[_0x3e2e69(0x1a4)])}));}['_handleEvent'](_0x3fde03){const _0x430d5d=_0x2b1dc8;switch(_0x3fde03[_0x430d5d(0x4f1)]){case 0x0:this[_0x430d5d(0x2d7)](_0x3fde03);break;case 0x1:this[_0x430d5d(0x45e)](_0x3fde03);break;case 0x2:this['_handleHeartbeatEvent'](_0x3fde03);break;}}[_0x2b1dc8(0x2d7)](_0x74cb7a){const _0x38520f=_0x2b1dc8,{unitIDs:_0x1e2bb8,memberID:_0x4c1beb,isForwarded:_0x271980}=_0x74cb7a;_0x1e2bb8[_0x38520f(0x3bc)](_0x224546=>{const _0x2fd465=_0x38520f;if(!_0x271980&&this[_0x2fd465(0x2f0)][_0x2fd465(0x532)](_0x224546)&&this[_0x2fd465(0x51c)](_0x224546)[_0x2fd465(0x522)](0x1),!this[_0x2fd465(0x2f0)]['has'](_0x224546)||!this[_0x2fd465(0x2f0)]['get'](_0x224546)['has'](_0x4c1beb)){const _0x5a3a9b=this[_0x2fd465(0x2f0)][_0x2fd465(0x37f)](_0x224546)||new Set();_0x5a3a9b[_0x2fd465(0x25b)](_0x4c1beb),this[_0x2fd465(0x2f0)][_0x2fd465(0x305)](_0x224546,_0x5a3a9b),this[_0x2fd465(0x29f)](_0x4c1beb);}}),_0x271980||this[_0x38520f(0x3d1)]({'type':0x0,'memberID':this[_0x38520f(0x369)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2b1dc8(0x29f)](_0x15acac){const _0x54cac7=_0x2b1dc8;this[_0x54cac7(0x239)](_0x15acac);const _0x4fff25=window[_0x54cac7(0x4e3)](()=>{const _0x371539=_0x54cac7;this[_0x371539(0x2f0)]['forEach'](_0x26c22b=>{const _0xabf6d2=_0x371539;_0x26c22b[_0xabf6d2(0x189)](_0x15acac);});},_0x4af0b2*0x2);this[_0x54cac7(0x4c4)][_0x54cac7(0x305)](_0x15acac,_0x4fff25);}[_0x2b1dc8(0x239)](_0x5c083){const _0x383e02=_0x2b1dc8;if(this[_0x383e02(0x4c4)][_0x383e02(0x532)](_0x5c083)){const _0x1c665b=this[_0x383e02(0x4c4)]['get'](_0x5c083);_0x1c665b&&window['clearTimeout'](_0x1c665b),this[_0x383e02(0x4c4)][_0x383e02(0x305)](_0x5c083,null);}}[_0x2b1dc8(0x45e)](_0x5ba744){const {memberID:_0x13ead9,unitIDs:_0x40fa45}=_0x5ba744;_0x40fa45['forEach'](_0x13a93c=>{const _0x518fc9=_0x5448;var _0x157222;const _0x163dc9=this[_0x518fc9(0x2f0)][_0x518fc9(0x37f)](_0x13a93c);_0x163dc9&&(_0x163dc9[_0x518fc9(0x189)](_0x13ead9),(_0x157222=this[_0x518fc9(0x51c)](_0x13a93c))==null||_0x157222[_0x518fc9(0x522)](_0x163dc9['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x13ead9);}[_0x2b1dc8(0x284)](_0x23bb8c){const _0x21c46a=_0x2b1dc8;this['_scheduleClearOtherTimer'](_0x23bb8c[_0x21c46a(0x3a0)]);}['_send'](_0x5593d){const _0x42d845=_0x2b1dc8;localStorage['setItem'](_0x2fa35b,JSON[_0x42d845(0x3f3)](_0x5593d));}[_0x2b1dc8(0x2fc)](){const _0x163fa5=_0x2b1dc8;this[_0x163fa5(0x2c1)]=window[_0x163fa5(0x448)](()=>{const _0x466107=_0x163fa5;this[_0x466107(0x3d1)]({'type':0x2,'memberID':this['_id']});},_0x4af0b2);}[_0x2b1dc8(0x51c)](_0x534892){const _0xab4476=_0x2b1dc8;return this[_0xab4476(0x309)]['has'](_0x534892)||this[_0xab4476(0x309)][_0xab4476(0x305)](_0x534892,new _0x2fad13['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x534892);}}function _0x2338f2(_0x3cd5a7){let _0x39c97a='';for(const _0x5651ee of _0x3cd5a7){const {startOffset:_0x229241,endOffset:_0x26018b,isActive:_0x581de1}=_0x5651ee;_0x39c97a['length']&&(_0x39c97a+=','),_0x39c97a+=_0x229241+':'+_0x26018b+':'+(_0x581de1?'1':'0');}return _0x39c97a;}function _0x357da9(_0x2e8a98){const _0xa9a155=_0x2b1dc8,_0x2b701c=_0x2e8a98[_0xa9a155(0x586)](','),_0x5f4c00=[];for(const _0x444c9b of _0x2b701c){const [_0x81047,_0x370327,_0x5a3f0f]=_0x444c9b[_0xa9a155(0x586)](':');_0x5f4c00['push']({'startOffset':Number(_0x81047),'endOffset':Number(_0x370327),'collapsed':_0x81047===_0x370327,'isActive':_0x5a3f0f==='1'});}return _0x5f4c00[_0xa9a155(0x423)](_0x19d540=>_0x19d540[_0xa9a155(0x3e7)])||(_0x5f4c00[0x0][_0xa9a155(0x3e7)]=!0x0),_0x5f4c00;}class _0x4ce206 extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(){const _0x2739b2=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x2739b2(0x36b),new _0x2fad13[(_0x2739b2(0x53f))](null)),_0x58b0b3(this,'collabCursorState$',this['_collabCursorState$'][_0x2739b2(0x1eb)]());}[_0x2b1dc8(0x392)](_0x49b0b2){const _0x25be10=_0x2b1dc8,{unitID:_0x5e3e1e,memberID:_0x42848c,textRanges:_0x358b94}=_0x49b0b2,_0x105d05=_0x2338f2(_0x358b94),_0x5101d2={'unitID':_0x5e3e1e,'memberID':_0x42848c,'selection':_0x105d05};this[_0x25be10(0x36b)][_0x25be10(0x522)](_0x5101d2);}}var _0x14585d=Object['defineProperty'],_0x5b3185=Object['getOwnPropertyDescriptor'],_0x293ced=(_0x4faa11,_0x23359e,_0x3b99df,_0x40a069)=>{const _0x50b502=_0x2b1dc8;for(var _0x5c4c57=_0x40a069>0x1?void 0x0:_0x40a069?_0x5b3185(_0x23359e,_0x3b99df):_0x23359e,_0x59e239=_0x4faa11[_0x50b502(0x3b8)]-0x1,_0x39e9d2;_0x59e239>=0x0;_0x59e239--)(_0x39e9d2=_0x4faa11[_0x59e239])&&(_0x5c4c57=(_0x40a069?_0x39e9d2(_0x23359e,_0x3b99df,_0x5c4c57):_0x39e9d2(_0x5c4c57))||_0x5c4c57);return _0x40a069&&_0x5c4c57&&_0x14585d(_0x23359e,_0x3b99df,_0x5c4c57),_0x5c4c57;},_0x5ace0d=(_0x83c069,_0x462a87)=>(_0x574c5a,_0x177735)=>_0x462a87(_0x574c5a,_0x177735,_0x83c069);let _0x493ead=class{constructor(_0x163450,_0xca30b3){const _0xc10421=_0x2b1dc8;this[_0xc10421(0x4cd)]=_0x163450,this['_transformService']=_0xca30b3;}['transformSelections'](_0xd03440){const _0xff6478=_0x2b1dc8;var _0x3af576;const _0x250a69=this[_0xff6478(0x4cd)][_0xff6478(0x37f)](_0xc13db5[_0xff6478(0x4f6)]),_0x305209=(_0x3af576=_0x250a69[_0xff6478(0x502)]())!=null?_0x3af576:[];if(_0x305209[_0xff6478(0x3b8)]===0x0)return;const _0x4c903e=[{'id':_0xff6478(0x55c),'params':{'unitId':_0xd03440['unitID'],'actions':null,'textRanges':_0x305209}}],_0x13bf84=this[_0xff6478(0x29e)][_0xff6478(0x5a2)](_0xd03440,_0x4c903e);if(!_0xf29ce7[_0xff6478(0x18b)](_0x13bf84))throw _0x13bf84[_0xff6478(0x3e4)];const _0x47542d=_0x13bf84[_0xff6478(0x1a3)][0x0][_0xff6478(0x3ef)][_0xff6478(0x227)];Array[_0xff6478(0x38c)](_0x47542d)&&_0x47542d[_0xff6478(0x3b8)]&&_0x250a69['replaceTextRanges'](_0x47542d,!0x1);}};_0x493ead=_0x293ced([_0x5ace0d(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x5ace0d(0x1,_0xf29ce7[_0x2b1dc8(0x487)])],_0x493ead);const _0x412590=new Set([_0x872f07[_0x2b1dc8(0x4db)]['id']]);function _0x47f654(_0x39996c,_0x564506,_0x261cba,_0x58d773,_0x14d348){const _0x19c54f=_0x2b1dc8;var _0x802bd7,_0x16fd88,_0x4ff8a5,_0xdb8383;const _0x1589d8=[];for(const _0x43f3fe of _0x39996c)if(_0x412590[_0x19c54f(0x532)](_0x43f3fe['id'])){if(_0x1589d8[_0x19c54f(0x3b8)]>0x0)break;_0x1589d8[_0x19c54f(0x3fb)](_0x43f3fe);break;}else _0x1589d8[_0x19c54f(0x3fb)](_0x43f3fe);const _0xe7ecb3=(_0x16fd88=(_0x802bd7=_0x14d348[_0x19c54f(0x356)]())==null?void 0x0:_0x802bd7['userID'])!=null?_0x16fd88:_0x19c54f(0x47e),_0x4a4a3e=(_0xdb8383=(_0x4ff8a5=_0x14d348[_0x19c54f(0x356)]())==null?void 0x0:_0x4ff8a5[_0x19c54f(0x3a0)])!=null?_0xdb8383:'unknown';return{'changeset':{'unitID':_0x564506,'type':_0xf29ce7[_0x19c54f(0x43a)](_0x261cba['getUnitType'](_0x564506)),'baseRev':_0x58d773[_0x19c54f(0x1ee)](_0x564506),'revision':0x0,'userID':_0xe7ecb3,'memberID':_0x4a4a3e,'mutations':_0x1589d8},'pendingMutations':_0x39996c[_0x19c54f(0x234)](_0x1589d8[_0x19c54f(0x3b8)])};}function _0x4079e3(_0x193128,_0xdaa6d5,_0x14383e,_0x4e155a,_0x19f0aa){const _0x531f72=_0x2b1dc8;var _0x166c8c,_0x4a2292,_0x140e00,_0x35e80b;const _0x20b146=[_0x193128[_0x531f72(0x351)]((_0x17897f,_0x2d0ad5)=>{const _0x4af391=_0x531f72;var _0xfffbfb;const {id:_0x20d933}=_0x17897f,{id:_0x36ff5b,type:_0x22cd33}=_0x2d0ad5,_0x21fce6=(_0xfffbfb=_0x17897f[_0x4af391(0x3ef)])!=null?_0xfffbfb:{'actions':null},_0x1085fc=_0x2d0ad5[_0x4af391(0x3ef)];if(_0x20d933&&_0x20d933!==_0x36ff5b)throw new Error(_0x4af391(0x46e)+_0x20d933+_0x4af391(0x198)+_0x36ff5b+'.');return{..._0x17897f,'id':_0x36ff5b,'type':_0x22cd33,'params':{'unitId':_0x1085fc[_0x4af391(0x3af)],'textRanges':_0x1085fc['textRanges'],'actions':_0x5821d4[_0x4af391(0x597)][_0x4af391(0x5a4)](_0x21fce6[_0x4af391(0x493)],_0x1085fc[_0x4af391(0x493)])}};},{})],_0x33d5cc=(_0x4a2292=(_0x166c8c=_0x19f0aa[_0x531f72(0x356)]())==null?void 0x0:_0x166c8c[_0x531f72(0x46f)])!=null?_0x4a2292:'unknown',_0x54b1ee=(_0x35e80b=(_0x140e00=_0x19f0aa['getCurrentUser']())==null?void 0x0:_0x140e00['memberID'])!=null?_0x35e80b:'unknown';return{'changeset':{'unitID':_0xdaa6d5,'type':_0xf29ce7[_0x531f72(0x43a)](_0x14383e[_0x531f72(0x2b8)](_0xdaa6d5)),'baseRev':_0x4e155a['getCurrentRevOfUnit'](_0xdaa6d5),'revision':0x0,'userID':_0x33d5cc,'memberID':_0x54b1ee,'mutations':_0x20b146},'pendingMutations':[]};}const _0x28d154={'id':_0x872f07['EmptyMutation']['id'],'type':_0x5821d4[_0x2b1dc8(0x334)][_0x2b1dc8(0x544)],'params':{}};var _0x3cf485=Object[_0x2b1dc8(0x47b)],_0x3fa2a4=Object['getOwnPropertyDescriptor'],_0x1d43bf=(_0x478e5e,_0x5ce355,_0x2ee697,_0x14ed7d)=>{const _0x2b8aae=_0x2b1dc8;for(var _0x1d48a1=_0x14ed7d>0x1?void 0x0:_0x14ed7d?_0x3fa2a4(_0x5ce355,_0x2ee697):_0x5ce355,_0x2d3806=_0x478e5e[_0x2b8aae(0x3b8)]-0x1,_0x20f599;_0x2d3806>=0x0;_0x2d3806--)(_0x20f599=_0x478e5e[_0x2d3806])&&(_0x1d48a1=(_0x14ed7d?_0x20f599(_0x5ce355,_0x2ee697,_0x1d48a1):_0x20f599(_0x1d48a1))||_0x1d48a1);return _0x14ed7d&&_0x1d48a1&&_0x3cf485(_0x5ce355,_0x2ee697,_0x1d48a1),_0x1d48a1;},_0x396334=(_0x251529,_0x476a43)=>(_0x369e90,_0x2642c8)=>_0x476a43(_0x369e90,_0x2642c8,_0x251529),_0x109234=(_0x41a160=>(_0x41a160[_0x2b1dc8(0x525)]=_0x2b1dc8(0x212),_0x41a160['SYNCED']=_0x2b1dc8(0x549),_0x41a160[_0x2b1dc8(0x258)]='pending',_0x41a160[_0x2b1dc8(0x585)]=_0x2b1dc8(0x4dd),_0x41a160[_0x2b1dc8(0x2f8)]='awaiting_with_pending',_0x41a160['FETCH_MISS']=_0x2b1dc8(0x434),_0x41a160[_0x2b1dc8(0x5b0)]='conflict',_0x41a160['OFFLINE']=_0x2b1dc8(0x23d),_0x41a160))(_0x109234||{});class _0x80c12c{constructor(_0x3b2f7c,_0xe5feea,_0x440816,_0x5561ef,_0x3f7c2d,_0x3d7085,_0x2b6dd4,_0x4e9772,_0x5f46b8){const _0x506550=_0x2b1dc8;_0x58b0b3(this,_0x506550(0x4cc),null),_0x58b0b3(this,_0x506550(0x24c),[]),(this[_0x506550(0x3d4)]=_0x3b2f7c,this[_0x506550(0x4f1)]=_0xe5feea,this['_handler']=_0x3f7c2d,this[_0x506550(0x4f9)]=_0x3d7085,this[_0x506550(0x479)]=_0x2b6dd4,this[_0x506550(0x300)]=_0x4e9772,this[_0x506550(0x461)]=_0x5f46b8,this[_0x506550(0x4cc)]=_0x440816,this['_pendingMutations']=_0x5561ef);}['_checkMissing'](_0x170390){const _0xe90d97=_0x2b1dc8,_0x27b470=this[_0xe90d97(0x300)][_0xe90d97(0x1ee)](this[_0xe90d97(0x3d4)]);return _0x170390[_0xe90d97(0x1e2)]>_0x27b470+0x1?(this[_0xe90d97(0x1a1)][_0xe90d97(0x2fb)]({'from':_0x27b470,'to':_0x170390[_0xe90d97(0x1e2)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x31f942){const _0x3c18bc=_0x2b1dc8;this[_0x3c18bc(0x479)]['transformUndoRedo'](this['unitID'],_0x31f942);}[_0x2b1dc8(0x515)](_0x5ed29f){const _0x5f2356=_0x2b1dc8;var _0x521623,_0x1f4c5c;(_0x1f4c5c=(_0x521623=this[_0x5f2356(0x1a1)])[_0x5f2356(0x359)])==null||_0x1f4c5c[_0x5f2356(0x54a)](_0x521623,_0x5ed29f);}['_transformIMECache'](_0x54ab2e){const _0xa8a83d=_0x2b1dc8;var _0x2d63b5,_0x99bbd6;return(_0x99bbd6=(_0x2d63b5=this[_0xa8a83d(0x1a1)])['onTransformIME'])==null?void 0x0:_0x99bbd6[_0xa8a83d(0x54a)](_0x2d63b5,_0x54ab2e);}[_0x2b1dc8(0x4d7)](_0x221dcb){const _0xa54d37=_0x2b1dc8;var _0x459a8e,_0x43ee06,_0x1bebb4;return(_0x1bebb4=(_0x43ee06=(_0x459a8e=this[_0xa54d37(0x1a1)])[_0xa54d37(0x583)])==null?void 0x0:_0x43ee06[_0xa54d37(0x54a)](_0x459a8e,_0x221dcb))!=null?_0x1bebb4:_0x221dcb;}[_0x2b1dc8(0x1d8)](_0xbeef94){const _0x2e4d60=_0x2b1dc8;var _0x200122,_0x4b3fda;if(this[_0x2e4d60(0x4f1)]===_0x25ecad[_0x2e4d60(0x202)]){const {unitID:_0x40d9a2,mutations:_0x5f5828,memberID:_0x319cdc}=_0xbeef94,_0x3a449a=_0x5f5828[0x0]['params']['textRanges'];Array[_0x2e4d60(0x38c)](_0x3a449a)&&_0x3a449a[_0x2e4d60(0x3b8)]>0x0&&((_0x4b3fda=(_0x200122=this[_0x2e4d60(0x1a1)])[_0x2e4d60(0x553)])==null||_0x4b3fda[_0x2e4d60(0x54a)](_0x200122,{'unitID':_0x40d9a2,'memberID':_0x319cdc,'textRanges':_0x3a449a}));}}['_updateLocalCache'](){const _0x45d9b3=_0x2b1dc8;this[_0x45d9b3(0x461)][_0x45d9b3(0x1f4)](this['unitID'],this[_0x45d9b3(0x4f1)],this[_0x45d9b3(0x4cc)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x48a25f=_0x2b1dc8;return this[_0x48a25f(0x300)][_0x48a25f(0x1ee)](this[_0x48a25f(0x3d4)]);}[_0x2b1dc8(0x3b4)](){const _0x4d129a=_0x2b1dc8;this[_0x4d129a(0x300)]['incrementRevOfUnit'](this[_0x4d129a(0x3d4)]);}['_executeRemoteChangeset'](_0x518e89){const _0x1ab4a3=_0x2b1dc8;var _0x221290;const _0x24f703=this[_0x1ab4a3(0x4d7)](_0x518e89),_0x179a86=_0x5821d4[_0x1ab4a3(0x5b9)](_0x24f703['mutations'],this[_0x1ab4a3(0x4f9)],{'fromCollab':!0x0});if(!_0x179a86[_0x1ab4a3(0x39c)])throw _0x179a86[_0x1ab4a3(0x3e4)]instanceof Error?_0x179a86[_0x1ab4a3(0x3e4)]:new Error((_0x221290=_0x179a86[_0x1ab4a3(0x3e4)])!=null?_0x221290:_0x1ab4a3(0x55e));this[_0x1ab4a3(0x2f4)](_0x24f703),this['_transformUndoredo'](_0x518e89),this[_0x1ab4a3(0x515)](_0x24f703),this['_syncEditingCollabCursor'](_0x24f703),this[_0x1ab4a3(0x3b4)]();}}let _0x26314f=class extends _0x80c12c{constructor(_0x5aa94f,_0x3b6242,_0xac7639,_0x576cb1,_0xf1cf40,_0x2f7fdc,_0x34969e,_0x28c5cf,_0x324ad5,_0x55ccdd){const _0x4a2a83=_0x2b1dc8;super(_0x5aa94f,_0x3b6242,null,[],_0xac7639,_0x28c5cf,_0x34969e,_0x576cb1,_0xf1cf40),_0x58b0b3(this,_0x4a2a83(0x219),_0x4a2a83(0x549)),(this[_0x4a2a83(0x4cd)]=_0x2f7fdc,this[_0x4a2a83(0x26b)]=_0x324ad5,this['_transformService']=_0x55ccdd);}[_0x2b1dc8(0x551)](_0x44c889){const _0x42b588=_0x2b1dc8,_0x42136d=this[_0x42b588(0x4cd)][_0x42b588(0x281)](_0x1e758c,this[_0x42b588(0x3d4)],this[_0x42b588(0x4f1)],[_0x44c889],this[_0x42b588(0x1a1)]);return _0x42136d[_0x42b588(0x1ce)](),_0x42136d[_0x42b588(0x205)](),_0x42136d;}['onRemoteChangeset'](_0x144510){const _0x15e348=_0x2b1dc8;if(this['_checkMissing'](_0x144510))return this[_0x15e348(0x4cd)][_0x15e348(0x281)](_0x1ca0b2,this['unitID'],this['type'],null,[],null,[_0x144510],this[_0x15e348(0x1a1)]);try{const _0x18192e=this['_transformService'][_0x15e348(0x5a2)](_0x144510,[_0x28d154]);if(_0xf29ce7[_0x15e348(0x18b)](_0x18192e)){const {c1Prime:_0x192bf2}=_0x18192e;return this[_0x15e348(0x323)](_0x192bf2),this;}throw _0x18192e['error'];}catch(_0xa108e){return this['_logService']['error'](_0xa108e),this[_0x15e348(0x578)](!0x1);}}[_0x2b1dc8(0x578)](_0x1bc771){const _0x28e2cd=_0x2b1dc8;return this[_0x28e2cd(0x4cd)][_0x28e2cd(0x281)](_0x4d2dc0,this['unitID'],this[_0x28e2cd(0x4f1)],null,[],this[_0x28e2cd(0x1a1)],_0x1bc771);}[_0x2b1dc8(0x53c)](){const _0x5327a0=_0x2b1dc8;throw new Error(_0x5327a0(0x56a));}[_0x2b1dc8(0x2a0)](){const _0xaef502=_0x2b1dc8;throw new Error(_0xaef502(0x39a));}[_0x2b1dc8(0x529)](){const _0x528290=_0x2b1dc8;return this[_0x528290(0x4cd)]['createInstance'](_0x4421df,this['unitID'],this['type'],null,[],this[_0x528290(0x1a1)]);}['toggleOnline'](){return this;}[_0x2b1dc8(0x274)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x244f6e=_0x2b1dc8,_0x12b5d3=this[_0x244f6e(0x300)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x244f6e(0x1a1)]['onMissingChangesets']({'from':_0x12b5d3,'to':0x0}),this[_0x244f6e(0x4cd)]['createInstance'](_0x1ca0b2,this['unitID'],this[_0x244f6e(0x4f1)],null,[],null,[],this[_0x244f6e(0x1a1)]);}};_0x26314f=_0x1d43bf([_0x396334(0x3,_0x5821d4['Inject'](_0xf29ce7['RevisionService'])),_0x396334(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0xf29ce7[_0x2b1dc8(0x487)])],_0x26314f);let _0x1e758c=class extends _0x80c12c{constructor(_0x44c17f,_0x10c8cb,_0x2e7a43,_0x4705e8,_0x967b8b,_0x1dcb61,_0x451d03,_0xe0ee82,_0x58c3fd,_0x37aabf,_0x5b4e9b,_0x166105,_0x20fbc6,_0x1941fb){const _0x43287f=_0x2b1dc8;super(_0x44c17f,_0x10c8cb,null,_0x2e7a43,_0x4705e8,_0x37aabf,_0x1941fb,_0x1dcb61,_0x451d03),_0x58b0b3(this,_0x43287f(0x219),_0x43287f(0x248)),_0x58b0b3(this,_0x43287f(0x1e9),null),_0x58b0b3(this,_0x43287f(0x394),null),(this[_0x43287f(0x4cd)]=_0x967b8b,this[_0x43287f(0x293)]=_0xe0ee82,this[_0x43287f(0x26b)]=_0x58c3fd,this[_0x43287f(0x3aa)]=_0x5b4e9b,this[_0x43287f(0x29e)]=_0x166105,this[_0x43287f(0x267)]=_0x20fbc6);}[_0x2b1dc8(0x551)](_0x299a2c){const _0x25916d=_0x2b1dc8;return this[_0x25916d(0x24c)][_0x25916d(0x3fb)](_0x299a2c),this[_0x25916d(0x205)](),this;}[_0x2b1dc8(0x56e)](_0x2629e2){const _0x34071a=_0x2b1dc8;if(this[_0x34071a(0x485)](_0x2629e2))return this['_clearScheduledTask'](),this['_injector'][_0x34071a(0x281)](_0x1ca0b2,this[_0x34071a(0x3d4)],this[_0x34071a(0x4f1)],null,this[_0x34071a(0x24c)],null,[_0x2629e2],this['_handler']);try{const _0x38baa8=this['_transformService'][_0x34071a(0x5a2)](_0x2629e2,this[_0x34071a(0x24c)]);if(_0xf29ce7[_0x34071a(0x18b)](_0x38baa8)){const {c1Prime:_0x561a72,m2Prime:_0x474016}=_0x38baa8;this[_0x34071a(0x323)](_0x561a72);const _0x57cf98=this[_0x34071a(0x4cd)][_0x34071a(0x281)](_0x1e758c,this['unitID'],this[_0x34071a(0x4f1)],_0x474016,this[_0x34071a(0x1a1)]);return this[_0x34071a(0x19f)](),_0x57cf98['_schedule'](this[_0x34071a(0x1e9)]?Math[_0x34071a(0x35f)](0x0,new Date()[_0x34071a(0x58e)]()-this[_0x34071a(0x1e9)]):this['_getSendChangesetTimeout']()),_0x57cf98;}throw _0x38baa8[_0x34071a(0x3e4)];}catch(_0x39cae8){return this['_logService'][_0x34071a(0x3e4)](_0x39cae8),this[_0x34071a(0x578)](!0x1);}}[_0x2b1dc8(0x53c)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2b1dc8(0x2a0)](){const _0x44b8a5=_0x2b1dc8;throw new Error(_0x44b8a5(0x49d));}[_0x2b1dc8(0x529)](){const _0x16b78b=_0x2b1dc8;return this[_0x16b78b(0x19f)](),this[_0x16b78b(0x4cd)]['createInstance'](_0x4421df,this[_0x16b78b(0x3d4)],this[_0x16b78b(0x4f1)],null,this['_pendingMutations'],this[_0x16b78b(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x1ce)](_0x35d4c5){const _0x53933a=_0x2b1dc8,_0x30f180=_0x35d4c5!=null?_0x35d4c5:this[_0x53933a(0x355)]();this['_scheduleTimestamp']=new Date()[_0x53933a(0x58e)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x138b01=_0x53933a;this['_clearScheduledTask']();let _0x479a44=null;switch(this[_0x138b01(0x4f1)]){case _0x25ecad['UNIVER_SHEET']:{_0x479a44=_0x47f654(this[_0x138b01(0x24c)],this['unitID'],this[_0x138b01(0x267)],this[_0x138b01(0x300)],this[_0x138b01(0x293)]);break;}case _0x25ecad[_0x138b01(0x202)]:{this[_0x138b01(0x24c)][_0x138b01(0x31f)](_0x59d4c0=>_0x59d4c0['id']===_0xc13db5['RichTextEditingMutation']['id'])?_0x479a44=_0x4079e3(this['_pendingMutations'],this[_0x138b01(0x3d4)],this[_0x138b01(0x267)],this[_0x138b01(0x300)],this['_memberService']):_0x479a44=_0x47f654(this[_0x138b01(0x24c)],this['unitID'],this['_univerInstanceService'],this[_0x138b01(0x300)],this['_memberService']);break;}default:throw new Error(_0x138b01(0x22f)+this['type']+_0x138b01(0x406));}const {changeset:_0x1876cd,pendingMutations:_0x3d3b4a}=_0x479a44;this[_0x138b01(0x1a1)][_0x138b01(0x50e)](_0x1876cd);const _0x52002a=_0x3d3b4a[_0x138b01(0x3b8)]?this[_0x138b01(0x4cd)]['createInstance'](_0x576a65,this[_0x138b01(0x3d4)],this[_0x138b01(0x4f1)],_0x1876cd,_0x3d3b4a,this[_0x138b01(0x1a1)]):this['_injector'][_0x138b01(0x281)](_0x248727,this['unitID'],this['type'],_0x1876cd,this[_0x138b01(0x1a1)]);_0x52002a[_0x138b01(0x205)](),this[_0x138b01(0x1a1)][_0x138b01(0x2d0)](this,_0x52002a);},_0x30f180);}[_0x2b1dc8(0x355)](){const _0x2731ea=_0x2b1dc8;var _0x4686af;const _0x35656f=this[_0x2731ea(0x3aa)][_0x2731ea(0x54b)](_0x451f80);return(_0x4686af=_0x35656f==null?void 0x0:_0x35656f[_0x2731ea(0x1e6)])!=null?_0x4686af:0x7d0;}[_0x2b1dc8(0x274)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x19f)](){const _0x598138=_0x2b1dc8;this[_0x598138(0x394)]!=null&&(clearTimeout(this[_0x598138(0x394)]),this[_0x598138(0x394)]=null);}['_onConflict'](_0x571143){const _0x2e18f6=_0x2b1dc8;return this[_0x2e18f6(0x19f)](),this[_0x2e18f6(0x4cd)][_0x2e18f6(0x281)](_0x4d2dc0,this['unitID'],this['type'],null,this[_0x2e18f6(0x24c)],this[_0x2e18f6(0x1a1)],_0x571143);}};_0x1e758c=_0x1d43bf([_0x396334(0x4,_0x5821d4['Inject'](_0x5821d4['Injector'])),_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7['RevisionService'])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0xa,_0x5821d4['IConfigService']),_0x396334(0xb,_0xf29ce7[_0x2b1dc8(0x487)]),_0x396334(0xc,_0x5821d4[_0x2b1dc8(0x486)]),_0x396334(0xd,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x1e758c);let _0x248727=class extends _0x80c12c{constructor(_0x36667d,_0x4ee252,_0x19f747,_0x412e65,_0x5fbeb1,_0x4fc120,_0x19281a,_0x29cf43,_0x271eb7,_0x42e1ab,_0x120ddb){const _0x444a8c=_0x2b1dc8;super(_0x36667d,_0x4ee252,_0x19f747,[],_0x412e65,_0x29cf43,_0x120ddb,_0x4fc120,_0x19281a),_0x58b0b3(this,_0x444a8c(0x219),_0x444a8c(0x4dd)),(this[_0x444a8c(0x4cd)]=_0x5fbeb1,this[_0x444a8c(0x26b)]=_0x271eb7,this[_0x444a8c(0x29e)]=_0x42e1ab);}[_0x2b1dc8(0x551)](_0x43fe40){const _0x408b88=_0x2b1dc8,_0x4d7353=this['_injector'][_0x408b88(0x281)](_0x576a65,this[_0x408b88(0x3d4)],this['type'],this['_awaitingChangeset'],[_0x43fe40],this[_0x408b88(0x1a1)]);return _0x4d7353['_updateLocalCache'](),_0x4d7353;}[_0x2b1dc8(0x56e)](_0x4e1e39){const _0x1b38a9=_0x2b1dc8;if(this[_0x1b38a9(0x485)](_0x4e1e39))return this[_0x1b38a9(0x4cd)][_0x1b38a9(0x281)](_0x1ca0b2,this['unitID'],this['type'],this[_0x1b38a9(0x4cc)],[],null,[_0x4e1e39],this['_handler']);try{const _0x4b6bd5=this[_0x1b38a9(0x29e)][_0x1b38a9(0x32b)]([_0x4e1e39],[this['_awaitingChangeset']],!0x1);if(_0xf29ce7[_0x1b38a9(0x56c)](_0x4b6bd5)){const {c1Prime:_0x19c3ad,c2Prime:_0x11a690}=_0x4b6bd5;this[_0x1b38a9(0x323)](_0x19c3ad[0x0]),_0x11a690[0x0][_0x1b38a9(0x1e1)]=this['_getCurrentRevision']();const _0x3462ce=this[_0x1b38a9(0x4cd)][_0x1b38a9(0x281)](_0x248727,this[_0x1b38a9(0x3d4)],this[_0x1b38a9(0x4f1)],_0x11a690[0x0],this[_0x1b38a9(0x1a1)]);return _0x3462ce['_updateLocalCache'](),_0x3462ce;}return this[_0x1b38a9(0x578)](!0x1);}catch(_0xf0a500){return this[_0x1b38a9(0x26b)][_0x1b38a9(0x3e4)](_0xf0a500),this[_0x1b38a9(0x578)](!0x1);}}[_0x2b1dc8(0x53c)](_0x117364){const _0x59abc9=_0x2b1dc8,_0x529f62=this[_0x59abc9(0x300)][_0x59abc9(0x1ee)](this[_0x59abc9(0x3d4)]);if(_0x117364[_0x59abc9(0x1e2)]<_0x529f62-0x1)return this;if(this[_0x59abc9(0x485)](_0x117364))return this['_injector'][_0x59abc9(0x281)](_0x1ca0b2,this['unitID'],this['type'],null,[],this[_0x59abc9(0x4cc)],[],this[_0x59abc9(0x1a1)]);this['_incrementRevisionNumber']();const _0x2f25ee=this[_0x59abc9(0x4cd)][_0x59abc9(0x281)](_0x26314f,this['unitID'],this[_0x59abc9(0x4f1)],this[_0x59abc9(0x1a1)]);return _0x2f25ee[_0x59abc9(0x205)](),_0x2f25ee;}[_0x2b1dc8(0x2a0)](_0x21495d){const _0x351523=_0x2b1dc8;return this[_0x351523(0x578)](!!(_0x21495d!=null&&_0x21495d[_0x351523(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x4e7334=_0x2b1dc8;return this['_injector'][_0x4e7334(0x281)](_0x4421df,this[_0x4e7334(0x3d4)],this['type'],this['_awaitingChangeset'],[],this[_0x4e7334(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){const _0xa33a9d=_0x2b1dc8;this[_0xa33a9d(0x1a1)][_0xa33a9d(0x50e)](this[_0xa33a9d(0x4cc)]);}[_0x2b1dc8(0x578)](_0x16113e){const _0x2b23ff=_0x2b1dc8;return this['_injector'][_0x2b23ff(0x281)](_0x4d2dc0,this['unitID'],this[_0x2b23ff(0x4f1)],this['_awaitingChangeset'],[],this['_handler'],_0x16113e);}};_0x248727=_0x1d43bf([_0x396334(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x5,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0xf29ce7['ITransformService']),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x248727);let _0x576a65=class extends _0x80c12c{constructor(_0x130349,_0xe41cd8,_0x32cd96,_0x5dbd04,_0x4d789e,_0x4b817b,_0x36f6b0,_0x225b20,_0x59417e,_0x3dd4e5,_0x35f740,_0x5948d1){const _0x3c0981=_0x2b1dc8;super(_0x130349,_0xe41cd8,_0x32cd96,_0x5dbd04,_0x4d789e,_0x59417e,_0x5948d1,_0x36f6b0,_0x225b20),_0x58b0b3(this,_0x3c0981(0x219),_0x3c0981(0x572)),(this['_injector']=_0x4b817b,this[_0x3c0981(0x26b)]=_0x3dd4e5,this['_transformService']=_0x35f740);}[_0x2b1dc8(0x551)](_0x2b4484){const _0x84bc5b=_0x2b1dc8;return this[_0x84bc5b(0x24c)][_0x84bc5b(0x3fb)](_0x2b4484),this;}['onRemoteChangeset'](_0x1c2a0d){const _0x2a82b0=_0x2b1dc8;if(this[_0x2a82b0(0x485)](_0x1c2a0d))return this[_0x2a82b0(0x4cd)]['createInstance'](_0x1ca0b2,this['unitID'],this[_0x2a82b0(0x4f1)],this['_awaitingChangeset'],this[_0x2a82b0(0x24c)],null,[_0x1c2a0d],this[_0x2a82b0(0x1a1)]);try{const _0x35f157=this[_0x2a82b0(0x29e)]['transformChangesets']([_0x1c2a0d],[this['_awaitingChangeset']],!0x1);if(_0xf29ce7[_0x2a82b0(0x56c)](_0x35f157)){const {c1Prime:_0x38f2b8,c2Prime:_0x468305}=_0x35f157,_0x3b9b15=this[_0x2a82b0(0x29e)][_0x2a82b0(0x5a2)](_0x38f2b8[0x0],this[_0x2a82b0(0x24c)]);if(_0xf29ce7[_0x2a82b0(0x18b)](_0x3b9b15)){const {c1Prime:_0x4fe2eb,m2Prime:_0x1131f8}=_0x3b9b15;return this['_executeRemoteChangeset'](_0x4fe2eb),_0x468305[0x0]['baseRev']=this[_0x2a82b0(0x270)](),this[_0x2a82b0(0x4cd)][_0x2a82b0(0x281)](_0x576a65,this[_0x2a82b0(0x3d4)],this[_0x2a82b0(0x4f1)],_0x468305[0x0],_0x1131f8,this['_handler']);}throw _0x3b9b15[_0x2a82b0(0x3e4)];}throw _0x35f157['error'];}catch(_0x4ab814){return this[_0x2a82b0(0x26b)][_0x2a82b0(0x3e4)](_0x4ab814),this['_onConflict'](!0x1);}}[_0x2b1dc8(0x53c)](_0x2adf10){const _0x282a95=_0x2b1dc8;if(this[_0x282a95(0x485)](_0x2adf10))return this[_0x282a95(0x4cd)]['createInstance'](_0x1ca0b2,this[_0x282a95(0x3d4)],this['type'],null,this[_0x282a95(0x24c)],this[_0x282a95(0x4cc)],[],this[_0x282a95(0x1a1)]);this[_0x282a95(0x3b4)]();const _0x46df6f=this[_0x282a95(0x4cd)]['createInstance'](_0x1e758c,this['unitID'],this[_0x282a95(0x4f1)],this[_0x282a95(0x24c)],this[_0x282a95(0x1a1)]);return _0x46df6f[_0x282a95(0x1ce)](),_0x46df6f[_0x282a95(0x205)](),_0x46df6f;}[_0x2b1dc8(0x2a0)](_0x5eee53){const _0x47b790=_0x2b1dc8;return this[_0x47b790(0x578)](!!(_0x5eee53!=null&&_0x5eee53[_0x47b790(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x2455ad=_0x2b1dc8;return this[_0x2455ad(0x4cd)][_0x2455ad(0x281)](_0x4421df,this[_0x2455ad(0x3d4)],this[_0x2455ad(0x4f1)],this[_0x2455ad(0x4cc)],this[_0x2455ad(0x24c)],this[_0x2455ad(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){const _0x575bc4=_0x2b1dc8;this[_0x575bc4(0x1a1)][_0x575bc4(0x50e)](this['_awaitingChangeset']);}[_0x2b1dc8(0x578)](_0x31c31d){const _0x2c2b33=_0x2b1dc8;return this['_injector'][_0x2c2b33(0x281)](_0x4d2dc0,this['unitID'],this[_0x2c2b33(0x4f1)],null,this[_0x2c2b33(0x24c)],this[_0x2c2b33(0x1a1)],_0x31c31d);}};_0x576a65=_0x1d43bf([_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x6,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0['LocalCacheService'])),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0xa,_0xf29ce7[_0x2b1dc8(0x487)]),_0x396334(0xb,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x576a65);let _0x4d2dc0=class extends _0x80c12c{constructor(_0x137e9c,_0x4f65f5,_0x2920b3,_0x3fa6fb,_0x43616c,_0x272426=!0x1,_0x469a42,_0x2a4f8,_0x57bb8e,_0x318983,_0x265b0f,_0x1898e3,_0x5006df){const _0xfec939=_0x2b1dc8;super(_0x137e9c,_0x4f65f5,_0x2920b3,_0x3fa6fb,_0x43616c,_0x2a4f8,_0x57bb8e,_0x265b0f,_0x318983),_0x58b0b3(this,_0xfec939(0x219),_0xfec939(0x555)),(this['_isPermissionRej']=_0x272426,this[_0xfec939(0x39f)]=_0x469a42,this[_0xfec939(0x2a6)]=_0x1898e3,this[_0xfec939(0x57c)]=_0x5006df,this[_0xfec939(0x4ef)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2b1dc8(0x56e)](){return this;}[_0x2b1dc8(0x53c)](){return this;}[_0x2b1dc8(0x2a0)](){return this;}[_0x2b1dc8(0x529)](){return this;}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x47a)](){const _0x56f383=_0x2b1dc8;this['_localCacheService'][_0x56f383(0x1f4)](this['unitID'],this[_0x56f383(0x4f1)],null,[]);}[_0x2b1dc8(0x4ef)](){const _0x193555=_0x2b1dc8;this[_0x193555(0x326)]?this[_0x193555(0x57c)][_0x193555(0x221)]({'title':this[_0x193555(0x2a6)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}):this[_0x193555(0x57c)][_0x193555(0x221)]({'title':this[_0x193555(0x2a6)]['t'](_0x193555(0x2c4)),'content':this[_0x193555(0x2a6)]['t']('conflict.content'),'type':_0x193555(0x3e4),'duration':0x0});}[_0x2b1dc8(0x3c0)](){const _0x1f63d6=_0x2b1dc8;this[_0x1f63d6(0x39f)][_0x1f63d6(0x3f4)](new _0x872f07[(_0x1f63d6(0x4e6))](this['unitID'])['id'],!0x1);}};_0x4d2dc0=_0x1d43bf([_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['IPermissionService'])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0x9,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0xb,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['LocaleService'])),_0x396334(0xc,_0x32b063[_0x2b1dc8(0x401)])],_0x4d2dc0);let _0x4421df=class extends _0x80c12c{constructor(_0x163a0e,_0xd9319,_0x3cedd4,_0x4ae58a,_0x233e72,_0x2b8629,_0x4d71e0,_0x65605c,_0x5c490d,_0x1053d9){const _0x37df31=_0x2b1dc8;super(_0x163a0e,_0xd9319,_0x3cedd4,_0x4ae58a,_0x233e72,_0x5c490d,_0x1053d9,_0x4d71e0,_0x65605c),_0x58b0b3(this,_0x37df31(0x219),_0x37df31(0x23d)),this['_injector']=_0x2b8629;}[_0x2b1dc8(0x551)](_0xa37514){const _0x5e57f4=_0x2b1dc8;return this[_0x5e57f4(0x24c)][_0x5e57f4(0x3fb)](_0xa37514),this['_updateLocalCache'](),this;}[_0x2b1dc8(0x56e)](_0x3b14c2){const _0x2c34dd=_0x2b1dc8;throw new Error(_0x2c34dd(0x32d));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2b1dc8(0x2a0)](){const _0x271664=_0x2b1dc8;throw new Error(_0x271664(0x19d));}[_0x2b1dc8(0x529)](){return this;}[_0x2b1dc8(0x534)](){const _0x40690b=_0x2b1dc8,{_injector:_0x364fef,_pendingMutations:_0xd16280,_awaitingChangeset:_0x48a604,unitID:_0x1a033b,_handler:_0x1337fa,type:_0x3c3d25}=this,_0x223c90=_0x2b7a9a(_0x364fef,_0x1a033b,_0x3c3d25,_0x48a604,_0xd16280,_0x1337fa);return _0x223c90 instanceof _0x1e758c?_0x223c90[_0x40690b(0x1ce)]():(_0x223c90 instanceof _0x576a65||_0x223c90 instanceof _0x248727)&&_0x223c90['resend'](),_0x223c90;}[_0x2b1dc8(0x274)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x4421df=_0x1d43bf([_0x396334(0x5,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x4421df);let _0x1ca0b2=class extends _0x80c12c{constructor(_0x305341,_0x29b9eb,_0xdf1549,_0x5a89de,_0x2a2a36,_0x4c3c78,_0xf5d857,_0x46251b,_0x34c5c9,_0x3d47f6,_0x4febe3,_0x360ac0,_0x183d68,_0x384d58){const _0x29076c=_0x2b1dc8;super(_0x305341,_0x29b9eb,_0xdf1549,_0x5a89de,_0xf5d857,_0x360ac0,_0x183d68,_0x34c5c9,_0x3d47f6),_0x58b0b3(this,_0x29076c(0x219),_0x29076c(0x434)),(this[_0x29076c(0x200)]=_0x2a2a36,this[_0x29076c(0x3c1)]=_0x4c3c78,this[_0x29076c(0x4cd)]=_0x46251b,this['_logService']=_0x4febe3,this[_0x29076c(0x29e)]=_0x384d58);}['onMissedChangesetFetched'](_0x40c4e4){const _0x575a1a=_0x2b1dc8;try{const _0x3baac0=[..._0x40c4e4,...this[_0x575a1a(0x3c1)]],_0x30c276=[this[_0x575a1a(0x4cc)]||this['_acknowledgedAwaitingChangeset']][_0x575a1a(0x565)](_0x57eb98=>!!_0x57eb98);let _0x8e0445,_0x41d735;if(_0x30c276[_0x575a1a(0x3b8)]){const _0x5157a5=this[_0x575a1a(0x29e)]['transformChangesets'](_0x3baac0,_0x30c276,!0x1);if(!_0xf29ce7[_0x575a1a(0x56c)](_0x5157a5))throw _0x5157a5['error'];_0x8e0445=_0x5157a5['c1Prime'],_0x41d735=_0x5157a5['c2Prime'];}else _0x8e0445=_0x3baac0,_0x41d735=[];let _0x589b70=this[_0x575a1a(0x24c)];_0x8e0445[_0x575a1a(0x3bc)](_0x4ac41a=>{const _0x5be0ac=_0x575a1a;let _0x42897d;if(_0x589b70[_0x5be0ac(0x3b8)]){const _0x4f06fb=this['_transformService'][_0x5be0ac(0x5a2)](_0x4ac41a,_0x589b70);if(!_0xf29ce7['isTransformMutationsWithChangesetSuccess'](_0x4f06fb))throw _0x4f06fb[_0x5be0ac(0x3e4)];_0x42897d=_0x4f06fb[_0x5be0ac(0x37c)],_0x589b70=_0x4f06fb['m2Prime'];}else _0x42897d=_0x4ac41a;this['_executeRemoteChangeset'](_0x42897d);}),this['_acknowledgedAwaitingChangeset']&&this[_0x575a1a(0x3b4)](),this['_awaitingChangeset']&&_0x41d735[_0x575a1a(0x3b8)]&&(_0x41d735[0x0][_0x575a1a(0x1e1)]=this['_getCurrentRevision']());let _0x42a8bf;if(this['_awaitingChangeset']&&_0x589b70[_0x575a1a(0x3b8)]!==0x0)_0x42a8bf=this[_0x575a1a(0x4cd)]['createInstance'](_0x576a65,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x41d735[0x0],_0x589b70,this[_0x575a1a(0x1a1)]);else{if(this[_0x575a1a(0x4cc)]&&_0x589b70[_0x575a1a(0x3b8)]===0x0)_0x41d735[0x0]['baseRev']=this[_0x575a1a(0x270)](),_0x42a8bf=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x248727,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x41d735[0x0],this[_0x575a1a(0x1a1)]);else{if(_0x589b70[_0x575a1a(0x3b8)]!==0x0){const _0x520d07=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x1e758c,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x589b70,this[_0x575a1a(0x1a1)]);_0x520d07[_0x575a1a(0x1ce)](),_0x42a8bf=_0x520d07;}else _0x42a8bf=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x26314f,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],this[_0x575a1a(0x1a1)]);}}return _0x42a8bf[_0x575a1a(0x205)](),_0x42a8bf;}catch(_0x4c620b){return this['_logService'][_0x575a1a(0x3e4)](_0x575a1a(0x3e3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4c620b),this['_injector']['createInstance'](_0x4d2dc0,this[_0x575a1a(0x3d4)],this['type'],this[_0x575a1a(0x4cc)],this['_pendingMutations'],this[_0x575a1a(0x1a1)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x551)](_0x219beb){const _0x35c07a=_0x2b1dc8;return this['_pendingMutations'][_0x35c07a(0x3fb)](_0x219beb),this;}['onRemoteChangeset'](_0x189d53){const _0x586044=_0x2b1dc8;return this[_0x586044(0x3c1)][_0x586044(0x3fb)](_0x189d53),this;}[_0x2b1dc8(0x53c)](_0x81a649){const _0x457726=_0x2b1dc8;if(this[_0x457726(0x4cc)])return this['_acknowledgedAwaitingChangeset']=this[_0x457726(0x4cc)],this[_0x457726(0x4cc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2b1dc8(0x2a0)](_0x123237){const _0x57c0f3=_0x2b1dc8;return this[_0x57c0f3(0x578)](!!(_0x123237!=null&&_0x123237[_0x57c0f3(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x376ad6=_0x2b1dc8;return this[_0x376ad6(0x4cd)][_0x376ad6(0x281)](_0x4421df,this[_0x376ad6(0x3d4)],this[_0x376ad6(0x4f1)],this[_0x376ad6(0x4cc)],this[_0x376ad6(0x24c)],this['_handler']);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x578)](_0x279fa6){const _0xc266c4=_0x2b1dc8;return this[_0xc266c4(0x4cd)][_0xc266c4(0x281)](_0x4d2dc0,this[_0xc266c4(0x3d4)],this['type'],this[_0xc266c4(0x4cc)],this[_0xc266c4(0x24c)],this['_handler'],_0x279fa6);}};_0x1ca0b2=_0x1d43bf([_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x8,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0xb,_0x5821d4['ICommandService']),_0x396334(0xc,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0xd,_0xf29ce7['ITransformService'])],_0x1ca0b2);function _0x2b7a9a(_0x3fcce4,_0x3ce5da,_0x4b148b,_0x491e4f,_0x3b65e4,_0x506d2b){const _0x1919e1=_0x2b1dc8;return _0x491e4f&&_0x3b65e4[_0x1919e1(0x3b8)]?_0x3fcce4['createInstance'](_0x576a65,_0x3ce5da,_0x4b148b,_0x491e4f,_0x3b65e4,_0x506d2b):_0x491e4f?_0x3fcce4['createInstance'](_0x248727,_0x3ce5da,_0x4b148b,_0x491e4f,_0x506d2b):_0x3b65e4['length']?_0x3fcce4[_0x1919e1(0x281)](_0x1e758c,_0x3ce5da,_0x4b148b,_0x3b65e4,_0x506d2b):_0x3fcce4[_0x1919e1(0x281)](_0x26314f,_0x3ce5da,_0x4b148b,_0x506d2b);}var _0xdf79d2=Object[_0x2b1dc8(0x47b)],_0x538204=Object['getOwnPropertyDescriptor'],_0x4c63cf=(_0x125c7d,_0x569cf3,_0x507de2,_0x4d4dda)=>{for(var _0x149f8d=_0x4d4dda>0x1?void 0x0:_0x4d4dda?_0x538204(_0x569cf3,_0x507de2):_0x569cf3,_0x1549d9=_0x125c7d['length']-0x1,_0x542ed4;_0x1549d9>=0x0;_0x1549d9--)(_0x542ed4=_0x125c7d[_0x1549d9])&&(_0x149f8d=(_0x4d4dda?_0x542ed4(_0x569cf3,_0x507de2,_0x149f8d):_0x542ed4(_0x149f8d))||_0x149f8d);return _0x4d4dda&&_0x149f8d&&_0xdf79d2(_0x569cf3,_0x507de2,_0x149f8d),_0x149f8d;},_0x2f750f=(_0xf324f9,_0x27fa82)=>(_0x9bd275,_0x4ad3b2)=>_0x27fa82(_0x9bd275,_0x4ad3b2,_0xf324f9);_0x2010a0[_0x2b1dc8(0x259)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x1b92ee,_0x2b5d0c,_0x33d4a5,_0x5851fd,_0x39dcbf,_0x361ce6,_0x4d639d,_0x1e8699,_0x118bf5,_0x57a96a,_0x51752c,_0x35529e,_0x38d38d){const _0x550a94=_0x2b1dc8;super(),_0x58b0b3(this,_0x550a94(0x22c),new _0x2fad13[(_0x550a94(0x53f))](null)),_0x58b0b3(this,_0x550a94(0x501),this[_0x550a94(0x22c)][_0x550a94(0x1eb)]()),_0x58b0b3(this,_0x550a94(0x271)),_0x58b0b3(this,'_collaborationPaused',!0x1),_0x58b0b3(this,_0x550a94(0x20c),this['state$']['pipe'](_0x2fad13[_0x550a94(0x370)](_0x297ae3=>_0x297ae3?_0x297ae3['status']:_0x109234[_0x550a94(0x400)]),_0x2fad13[_0x550a94(0x1f6)](0x1))),_0x58b0b3(this,'_transitionLocked',!0x1),_0x58b0b3(this,_0x550a94(0x4a2),[]),(this['unitID']=_0x1b92ee,this['session']=_0x2b5d0c,this[_0x550a94(0x46b)]=_0x33d4a5,this[_0x550a94(0x4cd)]=_0x5851fd,this[_0x550a94(0x461)]=_0x39dcbf,this[_0x550a94(0x1a9)]=_0x361ce6,this[_0x550a94(0x2a6)]=_0x4d639d,this['_revisionService']=_0x1e8699,this[_0x550a94(0x26b)]=_0x118bf5,this[_0x550a94(0x4f9)]=_0x57a96a,this[_0x550a94(0x412)]=_0x51752c,this[_0x550a94(0x39f)]=_0x35529e,this[_0x550a94(0x311)]=_0x38d38d);}get[_0x2b1dc8(0x40c)](){const _0x2cdffb=_0x2b1dc8;return this[_0x2cdffb(0x271)];}async[_0x2b1dc8(0x3bd)](){const _0x2f2f62=_0x2b1dc8;if(this[_0x2f2f62(0x40c)])throw new Error(_0x2f2f62(0x31a));await this[_0x2f2f62(0x1dd)]();}[_0x2b1dc8(0x42a)](){const _0x370c79=_0x2b1dc8;return this[_0x370c79(0x268)]=!0x0,_0x5821d4['toDisposable'](()=>{const _0x276f99=_0x370c79;this[_0x276f99(0x268)]=!0x1,this[_0x276f99(0x547)]();});}[_0x2b1dc8(0x413)](_0x46d351){const _0x5517df=_0x2b1dc8;this[_0x5517df(0x271)]=_0x46d351,this['_state$']['next'](_0x46d351);}async['_init'](){const _0x546392=_0x2b1dc8;var _0x266b0a;this[_0x546392(0x413)](await this[_0x546392(0x3bf)]()),this[_0x546392(0x311)]&&((_0x266b0a=this['_singleActiveUnitService'])==null||_0x266b0a[_0x546392(0x35b)](this[_0x546392(0x3d4)]),this[_0x546392(0x470)](this['_singleActiveUnitService'][_0x546392(0x589)](this[_0x546392(0x3d4)])[_0x546392(0x358)](_0x5b3968=>{const _0x17a987=_0x546392;this[_0x17a987(0x26b)]['debug'](_0x17a987(0x308),_0x17a987(0x352),_0x5b3968),_0x5b3968===_0x100820[_0x17a987(0x4de)]?(this[_0x17a987(0x412)][_0x17a987(0x221)]({'content':this[_0x17a987(0x2a6)]['t']('collaboration.single-unit.warning'),'type':_0x2997c5['MessageType'][_0x17a987(0x414)]}),this['_permissionService'][_0x17a987(0x3f4)](new _0x872f07[(_0x17a987(0x4e6))](this[_0x17a987(0x3d4)])['id'],!0x1)):this['_permissionService'][_0x17a987(0x3f4)](new _0x872f07[(_0x17a987(0x4e6))](this[_0x17a987(0x3d4)])['id'],!0x0);})));let _0x345ebd=!0x1;return this['disposeWithMe'](this['session'][_0x546392(0x25e)][_0x546392(0x358)](_0x3926c8=>{const _0x7339cc=_0x546392;_0x3926c8===_0x58e615[_0x7339cc(0x3df)]?this[_0x7339cc(0x419)](_0x345ebd):_0x3926c8===_0x58e615[_0x7339cc(0x400)]&&(_0x345ebd=!0x0,this[_0x7339cc(0x1ac)]());})),this[_0x546392(0x470)](this[_0x546392(0x362)][_0x546392(0x51f)][_0x546392(0x358)](_0x2e4a83=>{const _0x44bc9b=_0x546392;try{switch(_0x2e4a83['eventID']){case _0xf29ce7[_0x44bc9b(0x25c)]['NEW_CHANGESETS']:{this[_0x44bc9b(0x249)](_0xf29ce7[_0x44bc9b(0x4d1)](_0x2e4a83[_0x44bc9b(0x210)]));break;}case _0xf29ce7['CollaborationEvent'][_0x44bc9b(0x296)]:{this[_0x44bc9b(0x1c0)](_0x2e4a83['data']);break;}case _0xf29ce7[_0x44bc9b(0x25c)]['CHANGESET_REJ']:{this[_0x44bc9b(0x520)]();break;}case _0xf29ce7['CollaborationEvent'][_0x44bc9b(0x228)]:{this[_0x44bc9b(0x396)](_0x2e4a83[_0x44bc9b(0x210)][_0x44bc9b(0x438)]['map'](_0x31bb89=>_0xf29ce7[_0x44bc9b(0x4d1)](_0x31bb89)));break;}case _0xf29ce7[_0x44bc9b(0x25c)][_0x44bc9b(0x427)]:this[_0x44bc9b(0x520)]({'isPermissionRej':!0x0});}}catch(_0x340fb0){throw console[_0x44bc9b(0x3e4)](_0x44bc9b(0x287),_0x340fb0),_0x340fb0;}})),this[_0x546392(0x271)];}[_0x2b1dc8(0x442)](){const _0x458b50=_0x2b1dc8;this[_0x458b50(0x507)]=!0x1;}[_0x2b1dc8(0x42b)](){const _0x280b94=_0x2b1dc8;if(this[_0x280b94(0x507)])throw new Error(_0x280b94(0x3d5));this[_0x280b94(0x507)]=!0x0;}[_0x2b1dc8(0x19e)](_0xfff50){const _0x50b704=_0x2b1dc8;this['_lockTransition'](),this[_0x50b704(0x413)](this[_0x50b704(0x271)][_0x50b704(0x551)](_0xfff50)),this['_unlockTransition']();}[_0x2b1dc8(0x249)](_0x358ffd){const _0x272d82=_0x2b1dc8;if(!(_0x358ffd[_0x272d82(0x1e2)]<=this[_0x272d82(0x300)][_0x272d82(0x1ee)](this[_0x272d82(0x3d4)]))){if(this[_0x272d82(0x268)]){this['_remoteChangesetQueue'][_0x272d82(0x3fb)](_0x358ffd);return;}this[_0x272d82(0x47c)](_0x358ffd);}}[_0x2b1dc8(0x547)](){const _0x4a0899=_0x2b1dc8;this[_0x4a0899(0x4a2)]['forEach'](_0x3c2e3f=>this['_applyRemoteChangeset'](_0x3c2e3f)),this[_0x4a0899(0x4a2)]=[];}[_0x2b1dc8(0x47c)](_0xe40999){const _0x32fc61=_0x2b1dc8,_0x2b1068=this[_0x32fc61(0x1a9)][_0x32fc61(0x232)][_0x32fc61(0x48e)](this[_0x32fc61(0x1a9)]['interceptor'][_0x32fc61(0x343)]()[_0x32fc61(0x32c)])(_0xe40999['mutations'],null)||_0xe40999[_0x32fc61(0x29c)],_0x30e907={..._0xe40999,'mutations':_0x2b1068};this[_0x32fc61(0x42b)](),this[_0x32fc61(0x413)](this[_0x32fc61(0x271)]['onRemoteChangeset'](_0x30e907)),this[_0x32fc61(0x442)]();}[_0x2b1dc8(0x1c0)](_0x1b1652){const _0x444e1b=_0x2b1dc8;this[_0x444e1b(0x42b)](),this[_0x444e1b(0x413)](this[_0x444e1b(0x271)][_0x444e1b(0x53c)](_0x1b1652)),this[_0x444e1b(0x442)]();}['_onRemoteRejected'](_0x37e477){const _0x2b02be=_0x2b1dc8;this[_0x2b02be(0x42b)](),this[_0x2b02be(0x413)](this[_0x2b02be(0x271)][_0x2b02be(0x2a0)](_0x37e477)),this[_0x2b02be(0x442)]();}[_0x2b1dc8(0x396)](_0x8fd471){const _0x280a4f=_0x2b1dc8;if(!(this['_state']instanceof _0x1ca0b2))throw new TypeError(_0x280a4f(0x411));const _0x33aa4e=_0x8fd471['map'](_0x20cea6=>{const _0x275581=_0x280a4f,_0x1c921f=this[_0x275581(0x1a9)]['interceptor'][_0x275581(0x48e)](this[_0x275581(0x1a9)]['interceptor']['getInterceptPoints']()[_0x275581(0x32c)])(_0x20cea6['mutations'],null)||_0x20cea6[_0x275581(0x29c)];return{..._0x20cea6,'mutations':_0x1c921f};});this[_0x280a4f(0x42b)](),this[_0x280a4f(0x413)](this[_0x280a4f(0x271)][_0x280a4f(0x3fe)](_0x33aa4e)),this['_unlockTransition']();}[_0x2b1dc8(0x1ac)](){const _0x4c85f0=_0x2b1dc8;this[_0x4c85f0(0x42b)](),this[_0x4c85f0(0x413)](this[_0x4c85f0(0x271)][_0x4c85f0(0x529)]()),this['_unlockTransition']();}['_toggleOnline'](_0xa05df6=!0x1){const _0x16224b=_0x2b1dc8;this[_0x16224b(0x42b)](),this[_0x16224b(0x413)](this[_0x16224b(0x271)][_0x16224b(0x534)]()),this['_unlockTransition']();const _0x577506=this[_0x16224b(0x271)];_0xa05df6&&_0x577506 instanceof _0x26314f&&(this[_0x16224b(0x42b)](),this[_0x16224b(0x413)](_0x577506[_0x16224b(0x432)]()),this[_0x16224b(0x442)]());}async[_0x2b1dc8(0x3bf)](){return new Promise(_0x1c1307=>{const _0x4f0c75=_0x5448;this[_0x4f0c75(0x362)][_0x4f0c75(0x25e)][_0x4f0c75(0x378)](_0x2fad13[_0x4f0c75(0x257)](0x1))[_0x4f0c75(0x358)](async _0x588c80=>{const _0x9dbc31=_0x4f0c75;_0x1c1307(await this[_0x9dbc31(0x592)](_0x588c80===_0x58e615['ONLINE']));});});}['_createHandler'](){const _0x5edc7b=this['unitID'];return{'onStateChange':(_0x12c441,_0x15391d)=>{const _0x3ffefa=_0x5448;if(_0x12c441!==this[_0x3ffefa(0x271)])throw new Error(_0x3ffefa(0x3e6)+_0x12c441['status']+_0x3ffefa(0x35d)+_0x15391d[_0x3ffefa(0x219)]+_0x3ffefa(0x4ff)+this['_state'][_0x3ffefa(0x219)]);this[_0x3ffefa(0x413)](_0x15391d);},'onSendChangeset':_0xdc1d6b=>{const _0x24967d=_0x5448,_0x282520={'eventID':_0xf29ce7[_0x24967d(0x25c)][_0x24967d(0x475)],'data':{'unitID':_0xdc1d6b[_0x24967d(0x3d4)],'unitType':this[_0x24967d(0x46b)],'changeset':_0xdc1d6b,'memberID':this[_0x24967d(0x362)][_0x24967d(0x58d)]()}};this['session']['send'](_0x282520,this['unitID']);},'onMissingChangesets':({from:_0x2cd089,to:_0x20672b})=>{const _0x3ac4b5=_0x5448;this[_0x3ac4b5(0x26b)][_0x3ac4b5(0x1dc)]('[CollaborationEntity]',_0x3ac4b5(0x514)+_0x2cd089+_0x3ac4b5(0x52a)+_0x20672b);const _0x10519b={'eventID':_0xf29ce7['CollaborationEvent'][_0x3ac4b5(0x3f2)],'data':{'unitID':_0x5edc7b,'unitType':this[_0x3ac4b5(0x46b)],'from':_0x2cd089,'to':_0x20672b}};this[_0x3ac4b5(0x362)][_0x3ac4b5(0x1d5)](_0x10519b,this['unitID']);}};}async[_0x2b1dc8(0x592)](_0x56358b){const _0x23a254=_0x2b1dc8;var _0x90ad58,_0x26f8d1;const _0x42bcf6=await this['_localCacheService'][_0x23a254(0x307)](this[_0x23a254(0x3d4)]),_0xd08c92=(_0x90ad58=_0x42bcf6==null?void 0x0:_0x42bcf6[_0x23a254(0x29c)])!=null?_0x90ad58:[],_0x614919=(_0x26f8d1=_0x42bcf6==null?void 0x0:_0x42bcf6[_0x23a254(0x48f)])!=null?_0x26f8d1:null,_0xc0f380=this[_0x23a254(0x3d4)];try{this['_replayCachedMutations'](_0x614919,_0xd08c92);}catch(_0x300398){this['_logService'][_0x23a254(0x3e4)](_0x300398);}const _0x5bceda=this['_createHandler']();if(_0x56358b){const _0x416cc2=_0x2b7a9a(this['_injector'],_0xc0f380,this[_0x23a254(0x46b)],_0x614919,_0xd08c92,_0x5bceda);return _0x416cc2 instanceof _0x1e758c?_0x416cc2[_0x23a254(0x1ce)]():(_0x416cc2 instanceof _0x576a65||_0x416cc2 instanceof _0x248727)&&_0x416cc2[_0x23a254(0x274)](),_0x416cc2;}return this[_0x23a254(0x4cd)][_0x23a254(0x281)](_0x4421df,_0xc0f380,this[_0x23a254(0x46b)],_0x614919,_0xd08c92,_0x5bceda);}[_0x2b1dc8(0x4ba)](_0x14a2d3,_0x57ccf4){const _0x1db588=_0x2b1dc8;var _0x268d6a,_0x111c5d;const _0x41c014=this['_compressMutationService'][_0x1db588(0x232)][_0x1db588(0x48e)](this[_0x1db588(0x1a9)][_0x1db588(0x232)][_0x1db588(0x343)]()['COMPRESS_MUTATION_APPLY']);(_0x268d6a=_0x41c014((_0x14a2d3==null?void 0x0:_0x14a2d3['mutations'])||[],null))==null||_0x268d6a[_0x1db588(0x3bc)](_0x150340=>this['_commandService'][_0x1db588(0x2a8)](_0x150340['id'],_0x150340['params'])),(_0x111c5d=_0x41c014(_0x57ccf4||[],null))==null||_0x111c5d[_0x1db588(0x3bc)](_0x30db5f=>this['_commandService'][_0x1db588(0x2a8)](_0x30db5f['id'],_0x30db5f[_0x1db588(0x3ef)]));}},_0x2010a0[_0x2b1dc8(0x259)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x2f750f(0x8,_0x5821d4['ILogService']),_0x2f750f(0x9,_0x5821d4['ICommandService']),_0x2f750f(0xa,_0x32b063['IMessageService']),_0x2f750f(0xb,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0xc,_0x5821d4['Optional'](_0x4442df))],_0x2010a0[_0x2b1dc8(0x259)]),_0x2010a0[_0x2b1dc8(0x194)]=class extends _0x2010a0['CollaborationEntity']{constructor(_0x386351,_0x2ab738,_0x2f30a2,_0x99f746,_0x3b1a15,_0x1868f4,_0x24b5e8,_0x7aedc,_0x297186,_0x3f29ee,_0x26f8ae,_0xaf8ec4,_0x546e49,_0x15ffaf,_0x36da34,_0x2aa7dc,_0x5eebae){const _0x1cf08e=_0x2b1dc8;super(_0x386351,_0x2f30a2,_0x2ab738,_0x99f746,_0x3b1a15,_0x1868f4,_0x24b5e8,_0x7aedc,_0x546e49,_0x15ffaf,_0x36da34,_0x2aa7dc,_0x5eebae),this[_0x1cf08e(0x3d4)]=_0x386351,this['type']=_0x2ab738,this[_0x1cf08e(0x262)]=_0x297186,this[_0x1cf08e(0x5b6)]=_0x3f29ee,this[_0x1cf08e(0x4ee)]=_0x26f8ae,this[_0x1cf08e(0x3a1)]=_0xaf8ec4;}['_createHandler'](){const _0x3175c1=_0x2b1dc8,_0x3a863f=super[_0x3175c1(0x425)]();return _0x3a863f[_0x3175c1(0x3e1)]=_0x5dbb87=>this[_0x3175c1(0x5b6)][_0x3175c1(0x51b)](_0x5dbb87),_0x3a863f['onTransformSelections']=_0x531c84=>this[_0x3175c1(0x4ee)]['transformSelections'](_0x531c84),_0x3a863f[_0x3175c1(0x553)]=_0x5936d0=>this['_docSyncEditingCollabCursorService'][_0x3175c1(0x392)](_0x5936d0),_0x3a863f[_0x3175c1(0x583)]=_0x32767e=>this[_0x3175c1(0x5b6)][_0x3175c1(0x381)](_0x32767e),_0x3a863f;}async[_0x2b1dc8(0x1dd)](){const _0x13ae49=_0x2b1dc8,_0x280c4e=await super[_0x13ae49(0x1dd)]();return this[_0x13ae49(0x470)](this[_0x13ae49(0x4f9)][_0x13ae49(0x44d)]((_0x39c486,_0x7302ba)=>{const _0x13dd3d=_0x13ae49;if(_0x39c486['type']!==_0x5821d4[_0x13dd3d(0x334)][_0x13dd3d(0x544)]||_0x7302ba!=null&&_0x7302ba[_0x13dd3d(0x247)]||_0x7302ba!=null&&_0x7302ba[_0x13dd3d(0x45a)])return;const _0x29dd76=_0x39c486[_0x13dd3d(0x3ef)];if((_0x29dd76==null?void 0x0:_0x29dd76[_0x13dd3d(0x3af)])!==this[_0x13dd3d(0x3d4)])return;let _0x12d4d6=_0x39c486;if(_0x12d4d6['id']===_0xc13db5['RichTextEditingMutation']['id']){const _0xd3b0e6=_0x12d4d6['params'];_0x12d4d6={'id':_0xc13db5[_0x13dd3d(0x483)]['id'],'type':_0x5821d4[_0x13dd3d(0x334)][_0x13dd3d(0x544)],'params':{'unitId':_0xd3b0e6[_0x13dd3d(0x3af)],'actions':_0xd3b0e6[_0x13dd3d(0x493)],'textRanges':null}};}const _0x54dbdd=this[_0x13dd3d(0x1a9)][_0x13dd3d(0x232)][_0x13dd3d(0x48e)](this[_0x13dd3d(0x1a9)]['interceptor'][_0x13dd3d(0x343)]()['COMPRESS_MUTATION_SEND'])([_0x12d4d6],null)||[_0x12d4d6];this[_0x13dd3d(0x19e)](_0x54dbdd[0x0]);})),_0x280c4e;}},_0x2010a0[_0x2b1dc8(0x194)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7['RevisionService'])),_0x2f750f(0x8,_0x5821d4[_0x2b1dc8(0x503)](_0x1123f9[_0x2b1dc8(0x376)])),_0x2f750f(0x9,_0x5821d4[_0x2b1dc8(0x503)](_0x203e1e)),_0x2f750f(0xa,_0x5821d4[_0x2b1dc8(0x503)](_0x493ead)),_0x2f750f(0xb,_0x5821d4[_0x2b1dc8(0x503)](_0x4ce206)),_0x2f750f(0xc,_0x5821d4[_0x2b1dc8(0x468)]),_0x2f750f(0xd,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x2f750f(0xe,_0x32b063[_0x2b1dc8(0x28a)]),_0x2f750f(0xf,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0x10,_0x5821d4[_0x2b1dc8(0x264)](_0x4442df))],_0x2010a0[_0x2b1dc8(0x194)]),_0x2010a0['SheetCollaborationEntity']=class extends _0x2010a0[_0x2b1dc8(0x259)]{constructor(_0x25f146,_0x13fdd2,_0x2e5890,_0x54e259,_0x20564b,_0x11c87d,_0x4e3ae8,_0x31470c,_0x125a19,_0x22239a,_0x5d8d23,_0xb12989,_0x22425c,_0x2d0c94){const _0x5adce7=_0x2b1dc8;super(_0x25f146,_0x2e5890,_0x13fdd2,_0x54e259,_0x20564b,_0x11c87d,_0x4e3ae8,_0x31470c,_0x22239a,_0x5d8d23,_0xb12989,_0x22425c,_0x2d0c94),this[_0x5adce7(0x3d4)]=_0x25f146,this[_0x5adce7(0x4f1)]=_0x13fdd2,this[_0x5adce7(0x3f8)]=_0x125a19;}[_0x2b1dc8(0x425)](){const _0x5ab740=_0x2b1dc8,_0x5c055e=super['_createHandler']();return _0x5c055e[_0x5ab740(0x359)]=_0x1c51fc=>this[_0x5ab740(0x3f8)][_0x5ab740(0x5a5)](_0x1c51fc),_0x5c055e;}async['_init'](){const _0x3cc8e=_0x2b1dc8,_0x5e56b4=await super[_0x3cc8e(0x1dd)]();return this[_0x3cc8e(0x470)](this[_0x3cc8e(0x4f9)][_0x3cc8e(0x44d)]((_0x1bc973,_0x32c9bb)=>{const _0x23c5f5=_0x3cc8e;if(_0x1bc973[_0x23c5f5(0x4f1)]!==_0x5821d4[_0x23c5f5(0x334)][_0x23c5f5(0x544)]||_0x32c9bb!=null&&_0x32c9bb[_0x23c5f5(0x247)]||_0x32c9bb!=null&&_0x32c9bb[_0x23c5f5(0x45a)])return;const _0x52070=_0x1bc973[_0x23c5f5(0x3ef)];if((_0x52070==null?void 0x0:_0x52070[_0x23c5f5(0x3af)])!==this[_0x23c5f5(0x3d4)])return;const _0x37cbf1=_0x1bc973,_0x2c10f0=this['_compressMutationService'][_0x23c5f5(0x232)][_0x23c5f5(0x48e)](this[_0x23c5f5(0x1a9)]['interceptor'][_0x23c5f5(0x343)]()[_0x23c5f5(0x51d)])([_0x37cbf1],null)||[_0x37cbf1];this[_0x23c5f5(0x19e)](_0x2c10f0[0x0]);})),_0x5e56b4;}},_0x2010a0[_0x2b1dc8(0x467)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x2f750f(0x8,_0x5821d4[_0x2b1dc8(0x503)](_0x22d44e)),_0x2f750f(0x9,_0x5821d4[_0x2b1dc8(0x468)]),_0x2f750f(0xa,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x2f750f(0xb,_0x32b063[_0x2b1dc8(0x28a)]),_0x2f750f(0xc,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0xd,_0x5821d4['Optional'](_0x4442df))],_0x2010a0[_0x2b1dc8(0x467)]);var _0x29c097=Object[_0x2b1dc8(0x47b)],_0x2beca1=Object['getOwnPropertyDescriptor'],_0x1f670f=(_0x5f22b0,_0x3c54e4,_0x3881f5,_0x5d635e)=>{const _0x2727e4=_0x2b1dc8;for(var _0x233ab2=_0x5d635e>0x1?void 0x0:_0x5d635e?_0x2beca1(_0x3c54e4,_0x3881f5):_0x3c54e4,_0x432baf=_0x5f22b0[_0x2727e4(0x3b8)]-0x1,_0x3958b4;_0x432baf>=0x0;_0x432baf--)(_0x3958b4=_0x5f22b0[_0x432baf])&&(_0x233ab2=(_0x5d635e?_0x3958b4(_0x3c54e4,_0x3881f5,_0x233ab2):_0x3958b4(_0x233ab2))||_0x233ab2);return _0x5d635e&&_0x233ab2&&_0x29c097(_0x3c54e4,_0x3881f5,_0x233ab2),_0x233ab2;},_0x55a6b6=(_0x48fd07,_0x3d10af)=>(_0x699525,_0x12fd2b)=>_0x3d10af(_0x699525,_0x12fd2b,_0x48fd07);_0x2010a0[_0x2b1dc8(0x1f8)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x41c2c1,_0x32684d,_0x830468){const _0x39bb81=_0x2b1dc8;super(),_0x58b0b3(this,'_entities',new Map()),_0x58b0b3(this,_0x39bb81(0x59f),new _0x2fad13['Subject']()),(this[_0x39bb81(0x4cd)]=_0x41c2c1,this[_0x39bb81(0x1e3)]=_0x32684d,this['_univerInstanceService']=_0x830468,this[_0x39bb81(0x1dd)]());}['dispose'](){const _0x285174=_0x2b1dc8;super[_0x285174(0x3a8)](),this['_entities'][_0x285174(0x3bc)](_0x38837f=>_0x38837f[_0x285174(0x3a8)]()),this['_entities'][_0x285174(0x4ec)]();}[_0x2b1dc8(0x37a)](_0x23a5e6){const _0x1e23c9=_0x2b1dc8;var _0xa9fa22;return(_0xa9fa22=this[_0x1e23c9(0x3d6)]['get'](_0x23a5e6))!=null?_0xa9fa22:null;}[_0x2b1dc8(0x44b)](_0x5f18a7){const _0x369ede=_0x2b1dc8,_0x109497=this[_0x369ede(0x37a)](_0x5f18a7);return _0x109497?_0x2fad13['of'](_0x109497):this[_0x369ede(0x59f)][_0x369ede(0x378)](_0xbf2513['filter'](_0x3d0523=>_0x3d0523[_0x369ede(0x3d4)]===_0x5f18a7));}['_init'](){const _0x5d30be=_0x2b1dc8;this[_0x5d30be(0x267)][_0x5d30be(0x34c)](_0x5821d4['UniverInstanceType'][_0x5d30be(0x3f1)])['pipe'](_0x2fad13[_0x5d30be(0x1de)](this[_0x5d30be(0x557)]),_0xbf2513['delay'](0x10))[_0x5d30be(0x358)](async _0x2492b8=>{const _0x17a1bf=_0x5d30be,_0x31b6c2=_0x2492b8[_0x17a1bf(0x28e)](),_0x2cae3e=await this['_startCollaboration'](_0x31b6c2,_0x25ecad['UNIVER_SHEET']);this['_entities'][_0x17a1bf(0x305)](_0x31b6c2,_0x2cae3e);}),this[_0x5d30be(0x267)][_0x5d30be(0x34c)](_0x5821d4['UniverInstanceType'][_0x5d30be(0x202)])[_0x5d30be(0x378)](_0x2fad13[_0x5d30be(0x1de)](this[_0x5d30be(0x557)]),_0xbf2513[_0x5d30be(0x3dd)](0x10))['pipe'](_0xbf2513['filter'](_0x2e1d3d=>!_0x2e1d3d[_0x5d30be(0x28e)]()[_0x5d30be(0x2aa)]('__')))[_0x5d30be(0x358)](async _0x5b13f1=>{const _0x32411b=_0x5d30be,_0x482086=_0x5b13f1[_0x32411b(0x28e)](),_0x2d9ad3=await this[_0x32411b(0x30c)](_0x482086,_0x25ecad['UNIVER_DOC']);this['_entities'][_0x32411b(0x305)](_0x482086,_0x2d9ad3);}),_0x2fad13['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5821d4[_0x5d30be(0x566)][_0x5d30be(0x3f1)]),this['_univerInstanceService'][_0x5d30be(0x366)](_0x5821d4[_0x5d30be(0x566)][_0x5d30be(0x202)]))[_0x5d30be(0x378)](_0x2fad13[_0x5d30be(0x1de)](this['dispose$']))['subscribe'](_0x15a97b=>{const _0xf63c3f=_0x5d30be,_0x353b95=_0x15a97b[_0xf63c3f(0x28e)](),_0x50c9e7=this[_0xf63c3f(0x3d6)][_0xf63c3f(0x37f)](_0x353b95);_0x50c9e7&&(_0x50c9e7[_0xf63c3f(0x3a8)](),this['_entities'][_0xf63c3f(0x189)](_0x353b95));});}async[_0x2b1dc8(0x30c)](_0x16ad3a,_0x577314){const _0x1727dd=_0x2b1dc8,_0x4eee5d=await this[_0x1727dd(0x1e3)]['requireSession'](_0x16ad3a),_0x46ea74=this[_0x1727dd(0x4cd)][_0x1727dd(0x281)](this[_0x1727dd(0x4a9)](_0x577314),_0x16ad3a,_0x577314,_0x4eee5d);return await _0x46ea74[_0x1727dd(0x3bd)](),this['_entityInit$'][_0x1727dd(0x522)](_0x46ea74),_0x46ea74;}['_getCtorByUniverType'](_0x41beba){const _0x2d613f=_0x2b1dc8;switch(_0x41beba){case _0x25ecad['UNIVER_DOC']:return _0x2010a0[_0x2d613f(0x194)];case _0x25ecad[_0x2d613f(0x3f1)]:return _0x2010a0['SheetCollaborationEntity'];default:throw new Error(_0x2d613f(0x301)+_0x41beba);}}},_0x2010a0['CollaborationController']=_0x1f670f([_0x55a6b6(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x55a6b6(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x272)])),_0x55a6b6(0x2,_0x5821d4['IUniverInstanceService'])],_0x2010a0[_0x2b1dc8(0x1f8)]);const _0x279b8f=['purple300','jiqing500','verdancy600',_0x2b1dc8(0x255),_0x2b1dc8(0x240),'gold400'];class _0x38f88a extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x16944b=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x16944b(0x53b),new Map()),_0x58b0b3(this,_0x16944b(0x31c),0x0);}[_0x2b1dc8(0x1d7)](_0x117c71){const _0x6b7254=_0x2b1dc8;if(this['_assignedColors'][_0x6b7254(0x532)](_0x117c71))return this[_0x6b7254(0x53b)][_0x6b7254(0x37f)](_0x117c71);const _0xf26a5a=_0x279b8f[this[_0x6b7254(0x31c)]];return this[_0x6b7254(0x31c)]=(this['_colorIndex']+0x1)%_0x279b8f['length'],this['_assignedColors'][_0x6b7254(0x305)](_0x117c71,_0xf26a5a),_0xf26a5a;}}var _0x2cf266=Object['defineProperty'],_0xdec0d4=Object['getOwnPropertyDescriptor'],_0x19ae0f=(_0x241544,_0x1a64cd,_0x38a206,_0x218a8c)=>{for(var _0xe1bebb=_0x218a8c>0x1?void 0x0:_0x218a8c?_0xdec0d4(_0x1a64cd,_0x38a206):_0x1a64cd,_0x3c8172=_0x241544['length']-0x1,_0x153c49;_0x3c8172>=0x0;_0x3c8172--)(_0x153c49=_0x241544[_0x3c8172])&&(_0xe1bebb=(_0x218a8c?_0x153c49(_0x1a64cd,_0x38a206,_0xe1bebb):_0x153c49(_0xe1bebb))||_0xe1bebb);return _0x218a8c&&_0xe1bebb&&_0x2cf266(_0x1a64cd,_0x38a206,_0xe1bebb),_0xe1bebb;},_0x240408=(_0x467515,_0x316103)=>(_0x428244,_0x49ea44)=>_0x316103(_0x428244,_0x49ea44,_0x467515);const _0x3238d6=0x12c,_0x30e498=0x64,_0x4bddf8=()=>{let _0x34dc43=[],_0x3fdc97=!0x1;return _0x44664a=>{const _0x1c4a2a=_0x5448;_0x34dc43[_0x1c4a2a(0x3fb)](_0x44664a),_0x3fdc97||(_0x3fdc97=!0x0,setTimeout(()=>{_0x34dc43['forEach'](_0x4a2ebb=>_0x4a2ebb()),_0x34dc43=[],_0x3fdc97=!0x1;}));};};let _0x5b5ed2=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x40c63a,_0xefe44b,_0x5ae84,_0x28dfed,_0x515076,_0x8a0e2a,_0x34400c,_0xdfbc6d){const _0x2487ec=_0x2b1dc8;super(),_0x58b0b3(this,'_online',!0x1),_0x58b0b3(this,_0x2487ec(0x1dd),!0x1),_0x58b0b3(this,'_cursorInfo$',new _0x2fad13[(_0x2487ec(0x53f))](new Map())),_0x58b0b3(this,_0x2487ec(0x36d),this[_0x2487ec(0x350)][_0x2487ec(0x1eb)]()),_0x58b0b3(this,'_roomMembers$',new _0x2fad13[(_0x2487ec(0x53f))]([])),_0x58b0b3(this,_0x2487ec(0x4d5),this[_0x2487ec(0x24b)]['pipe'](_0x2fad13[_0x2487ec(0x2f7)](_0x3238d6))),_0x58b0b3(this,_0x2487ec(0x560),_0x5821d4[_0x2487ec(0x1fb)]((_0x197dbe,_0x4644d4)=>{const _0x5c7ebd=_0x2487ec,_0x53e25d={'eventID':_0xf29ce7[_0x5c7ebd(0x25c)][_0x5c7ebd(0x37e)],'data':{'unitID':this[_0x5c7ebd(0x3d4)],'memberID':this[_0x5c7ebd(0x433)][_0x5c7ebd(0x58d)](),'selection':_0x5c27f4[_0x5c7ebd(0x2a5)](_0x197dbe,_0x4644d4[_0x5c7ebd(0x2cd)])}};this[_0x5c7ebd(0x433)][_0x5c7ebd(0x1d5)](_0x53e25d,this[_0x5c7ebd(0x3d4)]);},_0x30e498)),(this[_0x2487ec(0x3d4)]=_0x40c63a,this[_0x2487ec(0x433)]=_0xefe44b,this[_0x2487ec(0x4cd)]=_0x5ae84,this['_colorAssignService']=_0x28dfed,this[_0x2487ec(0x293)]=_0x515076,this[_0x2487ec(0x267)]=_0x8a0e2a,this[_0x2487ec(0x4f9)]=_0x34400c,this[_0x2487ec(0x24a)]=_0xdfbc6d);}get[_0x2b1dc8(0x4b0)](){const _0x5bf783=_0x2b1dc8;return this[_0x5bf783(0x350)][_0x5bf783(0x244)]();}get['roomMembers'](){const _0x1894f1=_0x2b1dc8;return this[_0x1894f1(0x24b)][_0x1894f1(0x244)]();}['dispose'](){const _0x36778a=_0x2b1dc8;super[_0x36778a(0x3a8)](),this[_0x36778a(0x350)]['next'](new Map()),this[_0x36778a(0x350)][_0x36778a(0x424)](),this[_0x36778a(0x24b)][_0x36778a(0x522)]([]),this[_0x36778a(0x24b)][_0x36778a(0x424)]();}['init'](){const _0x152b47=_0x2b1dc8;this[_0x152b47(0x1dd)]||(this[_0x152b47(0x1dd)]=!0x0,this[_0x152b47(0x433)][_0x152b47(0x25e)]['pipe'](_0x2fad13[_0x152b47(0x1de)](this['dispose$']))['subscribe'](_0x1dd843=>{const _0x4f20bf=_0x152b47;_0x1dd843===_0x58e615[_0x4f20bf(0x3df)]?this[_0x4f20bf(0x419)]():this[_0x4f20bf(0x1ac)]();}),this[_0x152b47(0x433)][_0x152b47(0x51f)][_0x152b47(0x378)](_0x2fad13['takeUntil'](this[_0x152b47(0x557)]))['subscribe'](_0x355ec0=>{const _0x4cd51b=_0x152b47,_0xde5ed6=_0x355ec0['eventID'];_0xde5ed6===_0xf29ce7[_0x4cd51b(0x25c)]['UPDATE_CURSOR']&&this[_0x4cd51b(0x550)](_0x355ec0),_0xde5ed6===_0xf29ce7['CollaborationEvent'][_0x4cd51b(0x386)]&&this[_0x4cd51b(0x590)](_0x355ec0);}),this[_0x152b47(0x5af)](),this[_0x152b47(0x470)](this[_0x152b47(0x4f9)][_0x152b47(0x44d)](_0x50ca93=>{const _0x3fad8a=_0x152b47;if(this[_0x3fad8a(0x237)]&&_0x50ca93['id']===_0x872f07['SetSelectionsOperation']['id']&&_0x50ca93[_0x3fad8a(0x3ef)][_0x3fad8a(0x3af)]===this[_0x3fad8a(0x3d4)]){const _0x25c2b4=_0x50ca93['params'];this['_updateLocalCursor'](_0x25c2b4[_0x3fad8a(0x283)],_0x25c2b4[_0x3fad8a(0x3cd)][0x0]);}})));}[_0x2b1dc8(0x550)](_0x246746){const _0x2f86f9=_0x2b1dc8;var _0x53e3e2,_0x247039;const {memberID:_0x40100a,selection:_0x56b774}=_0x246746['data'],{sheetName:_0x4ae0cc,range:_0x45530c}=_0x5c27f4[_0x2f86f9(0x2ef)](_0x56b774),_0x3bbafb={'name':(_0x247039=(_0x53e3e2=this[_0x2f86f9(0x293)]['getMember'](this[_0x2f86f9(0x3d4)],_0x40100a))==null?void 0x0:_0x53e3e2['name'])!=null?_0x247039:_0x2f86f9(0x33d),'range':this[_0x2f86f9(0x1b5)](_0x4ae0cc,_0x45530c),'sheetID':_0x4ae0cc,'color':this[_0x2f86f9(0x4f0)][_0x2f86f9(0x1d7)](_0x40100a),'selection':_0x56b774},_0x3eb2ca=this[_0x2f86f9(0x4b0)];_0x3eb2ca['set'](_0x40100a,_0x3bbafb),this[_0x2f86f9(0x350)][_0x2f86f9(0x522)](_0x3eb2ca);}[_0x2b1dc8(0x590)](_0x2fd459){const _0x27e2e6=_0x2b1dc8,{memberID:_0x40ffd6}=_0x2fd459['data'],_0x2b3f1b=this[_0x27e2e6(0x4b0)];_0x2b3f1b['delete'](_0x40ffd6),this['_cursorInfo$'][_0x27e2e6(0x522)](_0x2b3f1b);}[_0x2b1dc8(0x1b5)](_0x522dd5,_0x2bf8c0){const _0x4893b0=_0x2b1dc8;var _0x4c779c,_0x26f4b6;const _0xe0c139=(_0x26f4b6=(_0x4c779c=this[_0x4893b0(0x267)][_0x4893b0(0x504)](this[_0x4893b0(0x3d4)]))==null?void 0x0:_0x4c779c['getSheetBySheetId'](_0x522dd5))==null?void 0x0:_0x26f4b6[_0x4893b0(0x2dc)]();return(_0xe0c139==null?void 0x0:_0xe0c139['find'](_0x3b7003=>_0x5821d4[_0x4893b0(0x3cc)][_0x4893b0(0x3f7)](_0x3b7003,_0x2bf8c0)))||_0x2bf8c0;}[_0x2b1dc8(0x5af)](){const _0x4c3579=_0x2b1dc8,_0x2f707e=new _0x5821d4['DisposableCollection'](),_0x5a6836=_0x4bddf8(),_0xce0dd7=()=>{const _0x2bea9a=_0x5448;_0x2f707e[_0x2bea9a(0x3a8)]();const _0x3ab056=(_0x346f4f,_0x153180,_0x4ba982,_0x580a37)=>{const _0x414cb3=_0x2bea9a;let _0x4f4375=[];switch(_0x346f4f['id']){case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x2e4)]:{_0x4f4375=_0x872f07[_0x414cb3(0x41d)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x469)]:{_0x4f4375=_0x872f07[_0x414cb3(0x524)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x482)]:{_0x4f4375=_0x872f07[_0x414cb3(0x2df)](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId'][_0x414cb3(0x573)]:{_0x4f4375=_0x872f07[_0x414cb3(0x2b0)](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x4f4375=_0x872f07['handleInsertRangeMoveRight'](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId'][_0x414cb3(0x1f7)]:{_0x4f4375=_0x872f07[_0x414cb3(0x496)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)]['MoveRangeCommandId']:{_0x4f4375=_0x872f07['handleMoveRange'](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x5b4)]:{_0x4f4375=_0x872f07[_0x414cb3(0x1be)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x32a)]:{_0x4f4375=_0x872f07[_0x414cb3(0x303)](_0x346f4f,_0x580a37);break;}}const _0x5c90d7=_0x872f07[_0x414cb3(0x2d2)](_0x4f4375,_0x580a37),_0x5e5dc1=this[_0x414cb3(0x4b0)][_0x414cb3(0x37f)](_0x153180);if(_0x5e5dc1&&_0x5c90d7){const _0x2dca0={..._0x5e5dc1,'range':_0x5c90d7};this[_0x414cb3(0x4b0)][_0x414cb3(0x305)](_0x153180,_0x2dca0),_0x5a6836(()=>{const _0x23e63b=_0x414cb3,_0x10487b=this['_refRangeService']['registerRefRange'](_0x5c90d7,_0x1dc33c=>(_0x10487b[_0x23e63b(0x3a8)](),_0x3ab056(_0x1dc33c,_0x153180,_0x4ba982,_0x5c90d7)));_0x2f707e[_0x23e63b(0x25b)](_0x10487b);});}return{'redos':[],'undos':[]};};this[_0x2bea9a(0x4b0)]['forEach']((_0x2d4aa8,_0x340d0f)=>{const _0x464163=_0x2bea9a,{range:_0x157a99,sheetID:_0x584aba}=_0x2d4aa8,_0x42a3ce=this[_0x464163(0x24a)][_0x464163(0x436)](_0x157a99,_0x5eaa3b=>(_0x42a3ce[_0x464163(0x3a8)](),_0x3ab056(_0x5eaa3b,_0x340d0f,_0x584aba,_0x157a99)));_0x2f707e['add'](_0x42a3ce);});};this[_0x4c3579(0x470)](_0x5821d4[_0x4c3579(0x1ed)](this[_0x4c3579(0x350)]['subscribe'](()=>{_0xce0dd7();})));}[_0x2b1dc8(0x419)](){const _0x2f5982=_0x2b1dc8;var _0x30451f,_0x5b3f30;if(this['_online']=!0x0,((_0x30451f=this[_0x2f5982(0x267)]['getFocusedUnit']())==null?void 0x0:_0x30451f['getUnitId']())!==this[_0x2f5982(0x3d4)])return;const _0x1e6da9=(_0x5b3f30=this[_0x2f5982(0x4cd)]['get'](_0x872f07[_0x2f5982(0x463)])[_0x2f5982(0x506)]())==null?void 0x0:_0x5b3f30[0x0],_0xc9478=this[_0x2f5982(0x267)][_0x2f5982(0x347)](_0x5821d4[_0x2f5982(0x566)][_0x2f5982(0x3f1)])[_0x2f5982(0x5a1)]();_0x1e6da9&&_0xc9478&&this[_0x2f5982(0x560)](_0xc9478[_0x2f5982(0x1c4)](),_0x1e6da9);}['_toggleOffline'](){const _0x40f776=_0x2b1dc8;this[_0x40f776(0x237)]=!0x1;}};_0x5b5ed2=_0x19ae0f([_0x240408(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x240408(0x3,_0x5821d4['Inject'](_0x38f88a)),_0x240408(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x240408(0x5,_0x5821d4['IUniverInstanceService']),_0x240408(0x6,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x240408(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x872f07[_0x2b1dc8(0x52d)]))],_0x5b5ed2);var _0x56710a=Object[_0x2b1dc8(0x47b)],_0x17d2ff=Object[_0x2b1dc8(0x299)],_0x356a35=(_0x20b692,_0x10abd2,_0x2773ca,_0x3c1e22)=>{const _0x11eb0a=_0x2b1dc8;for(var _0x23747e=_0x3c1e22>0x1?void 0x0:_0x3c1e22?_0x17d2ff(_0x10abd2,_0x2773ca):_0x10abd2,_0x5c9503=_0x20b692[_0x11eb0a(0x3b8)]-0x1,_0x52538c;_0x5c9503>=0x0;_0x5c9503--)(_0x52538c=_0x20b692[_0x5c9503])&&(_0x23747e=(_0x3c1e22?_0x52538c(_0x10abd2,_0x2773ca,_0x23747e):_0x52538c(_0x23747e))||_0x23747e);return _0x3c1e22&&_0x23747e&&_0x56710a(_0x10abd2,_0x2773ca,_0x23747e),_0x23747e;},_0x4bc69a=(_0x4f59db,_0x38a9ea)=>(_0x11fc2b,_0x23164e)=>_0x38a9ea(_0x11fc2b,_0x23164e,_0x4f59db);const _0x4bd513=0x12c,_0x151b86=0x64;let _0x357ca5=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x4f6d92,_0x4e5197,_0x4f6eda,_0x33ee14,_0x47f15c,_0x36cacd,_0x3b777f,_0x3f1769,_0x23979b){const _0x6153da=_0x2b1dc8;super(),_0x58b0b3(this,_0x6153da(0x237),!0x1),_0x58b0b3(this,_0x6153da(0x1dd),!0x1),_0x58b0b3(this,'_cursorInfo$',new _0x2fad13[(_0x6153da(0x53f))](new Map())),_0x58b0b3(this,_0x6153da(0x36d),this[_0x6153da(0x350)][_0x6153da(0x1eb)]()),_0x58b0b3(this,_0x6153da(0x24b),new _0x2fad13[(_0x6153da(0x53f))]([])),_0x58b0b3(this,'roomMembers$',this['_roomMembers$'][_0x6153da(0x378)](_0x2fad13[_0x6153da(0x2f7)](_0x4bd513))),_0x58b0b3(this,_0x6153da(0x560),_0x5821d4['debounce'](_0x5e50ee=>{const _0x3f2949=_0x6153da,_0x4a2619={'eventID':_0xf29ce7[_0x3f2949(0x25c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3f2949(0x433)][_0x3f2949(0x58d)](),'selection':_0x2338f2(_0x5e50ee)}};this[_0x3f2949(0x433)][_0x3f2949(0x1d5)](_0x4a2619,this[_0x3f2949(0x3d4)]);},_0x151b86)),(this[_0x6153da(0x3d4)]=_0x4f6d92,this['_session']=_0x4e5197,this['_injector']=_0x4f6eda,this['_colorAssignService']=_0x33ee14,this[_0x6153da(0x293)]=_0x47f15c,this[_0x6153da(0x5ae)]=_0x36cacd,this[_0x6153da(0x29e)]=_0x3b777f,this['_univerInstanceService']=_0x3f1769,this[_0x6153da(0x4f9)]=_0x23979b);}get['cursorInfo'](){const _0x28daa2=_0x2b1dc8;return this['_cursorInfo$'][_0x28daa2(0x244)]();}get[_0x2b1dc8(0x1db)](){const _0xd40881=_0x2b1dc8;return this[_0xd40881(0x24b)]['getValue']();}[_0x2b1dc8(0x3a8)](){const _0x38a631=_0x2b1dc8;super['dispose'](),this[_0x38a631(0x350)][_0x38a631(0x522)](new Map()),this[_0x38a631(0x350)][_0x38a631(0x424)](),this['_roomMembers$'][_0x38a631(0x522)]([]),this[_0x38a631(0x24b)][_0x38a631(0x424)]();}['init'](){const _0x3d127f=_0x2b1dc8;this[_0x3d127f(0x1dd)]||(this[_0x3d127f(0x1dd)]=!0x0,this[_0x3d127f(0x433)][_0x3d127f(0x25e)][_0x3d127f(0x378)](_0x2fad13[_0x3d127f(0x1de)](this['dispose$']))[_0x3d127f(0x358)](_0x375374=>{const _0x3a5418=_0x3d127f;_0x375374===_0x58e615['ONLINE']?this[_0x3a5418(0x419)]():this[_0x3a5418(0x1ac)]();}),this[_0x3d127f(0x433)][_0x3d127f(0x51f)]['pipe'](_0x2fad13[_0x3d127f(0x1de)](this[_0x3d127f(0x557)]))[_0x3d127f(0x358)](_0x1b2aa1=>{const _0x3c60f4=_0x3d127f,_0x4806e7=_0x1b2aa1[_0x3c60f4(0x510)];_0x4806e7===_0xf29ce7[_0x3c60f4(0x25c)][_0x3c60f4(0x37e)]&&this[_0x3c60f4(0x550)](_0x1b2aa1),_0x4806e7===_0xf29ce7[_0x3c60f4(0x25c)][_0x3c60f4(0x386)]&&this[_0x3c60f4(0x590)](_0x1b2aa1);}),this[_0x3d127f(0x470)](this[_0x3d127f(0x4f9)][_0x3d127f(0x44d)](_0x4a116b=>{const _0x4f2408=_0x3d127f,_0x2aa8a3=_0x4a116b['params'];_0x2aa8a3!=null&&this[_0x4f2408(0x237)]&&_0x4a116b['id']===_0xc13db5[_0x4f2408(0x4ac)]['id']&&_0x2aa8a3[_0x4f2408(0x3af)]===this['unitID']&&_0x2aa8a3[_0x4f2408(0x3f0)]===!0x1&&this[_0x4f2408(0x560)](_0x2aa8a3[_0x4f2408(0x3ff)]);})),this[_0x3d127f(0x5ae)][_0x3d127f(0x505)][_0x3d127f(0x378)](_0x2fad13[_0x3d127f(0x1de)](this[_0x3d127f(0x557)]))['subscribe'](_0xf99ea=>{const _0x26d6ce=_0x3d127f;if((_0xf99ea==null?void 0x0:_0xf99ea['unitID'])!==this[_0x26d6ce(0x3d4)])return;const _0x3d28ef={'eventID':_0xf29ce7[_0x26d6ce(0x25c)][_0x26d6ce(0x37e)],'data':_0xf99ea};this[_0x26d6ce(0x550)](_0x3d28ef);}),this['disposeWithMe'](this[_0x3d127f(0x4f9)][_0x3d127f(0x44d)](_0x965dc3=>{const _0x3d3cac=_0x3d127f;if(_0x965dc3[_0x3d3cac(0x3ef)]==null)return;const _0x2f4244=_0x965dc3['params'];if(_0x965dc3['id']!==_0xc13db5[_0x3d3cac(0x483)]['id']||_0x2f4244[_0x3d3cac(0x3af)]!==this[_0x3d3cac(0x3d4)])return;const _0x14dcda={'id':_0x3d3cac(0x55c),'params':_0x2f4244},_0x4a1640=this[_0x3d3cac(0x4b0)];for(const [_0x2fc3bf,_0x3c3701]of _0x4a1640){const _0x983d60={'id':_0x3d3cac(0x55c),'params':{'unitId':this[_0x3d3cac(0x3d4)],'actions':null,'textRanges':_0x3c3701[_0x3d3cac(0x3ff)]}},_0x513f9b=this['_transformService'][_0x3d3cac(0x431)](_0x14dcda,_0x983d60,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0x513f9b))throw _0x513f9b['error'];_0x4a1640[_0x3d3cac(0x305)](_0x2fc3bf,{..._0x3c3701,'ranges':_0x513f9b[_0x3d3cac(0x1a3)][_0x3d3cac(0x3ef)][_0x3d3cac(0x227)]});}queueMicrotask(()=>{const _0x24f039=_0x3d3cac;this['_cursorInfo$'][_0x24f039(0x522)](_0x4a1640);});})));}['_onCursorUpdate'](_0x520431){const _0x5ddae6=_0x2b1dc8;var _0x51a698,_0x93244f;const {memberID:_0x53da65,selection:_0x274b20}=_0x520431[_0x5ddae6(0x210)],_0x186765=_0x357da9(_0x274b20),_0x127b90=(_0x93244f=(_0x51a698=this['_memberService'][_0x5ddae6(0x1d9)](this[_0x5ddae6(0x3d4)],_0x53da65))==null?void 0x0:_0x51a698[_0x5ddae6(0x593)])!=null?_0x93244f:'Unknown\x20user',_0x399d8f={'color':this[_0x5ddae6(0x4f0)][_0x5ddae6(0x1d7)](_0x53da65),'name':_0x127b90,'ranges':_0x186765},_0x9dc901=this[_0x5ddae6(0x4b0)];_0x9dc901[_0x5ddae6(0x305)](_0x53da65,_0x399d8f),this['_cursorInfo$'][_0x5ddae6(0x522)](_0x9dc901);}[_0x2b1dc8(0x590)](_0x171e75){const _0xf3108c=_0x2b1dc8,{memberID:_0x45cd5f}=_0x171e75[_0xf3108c(0x210)],_0x2ce6a4=this[_0xf3108c(0x4b0)];_0x2ce6a4[_0xf3108c(0x189)](_0x45cd5f),this['_cursorInfo$']['next'](_0x2ce6a4);}[_0x2b1dc8(0x419)](){const _0x5ca56e=_0x2b1dc8;var _0x191dac;if(this[_0x5ca56e(0x237)]=!0x0,((_0x191dac=this[_0x5ca56e(0x267)][_0x5ca56e(0x279)]())==null?void 0x0:_0x191dac[_0x5ca56e(0x28e)]())!==this[_0x5ca56e(0x3d4)])return;const _0x148199=this['_injector'][_0x5ca56e(0x37f)](_0xc13db5['DocSelectionManagerService'])[_0x5ca56e(0x502)]();Array[_0x5ca56e(0x38c)](_0x148199)&&_0x148199[_0x5ca56e(0x3b8)]>0x0&&this[_0x5ca56e(0x560)](_0x148199);}[_0x2b1dc8(0x1ac)](){this['_online']=!0x1;}};_0x357ca5=_0x356a35([_0x4bc69a(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x4bc69a(0x3,_0x5821d4['Inject'](_0x38f88a)),_0x4bc69a(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x4bc69a(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x4ce206)),_0x4bc69a(0x6,_0xf29ce7['ITransformService']),_0x4bc69a(0x7,_0x5821d4[_0x2b1dc8(0x486)]),_0x4bc69a(0x8,_0x5821d4[_0x2b1dc8(0x2bf)])],_0x357ca5);var _0x9c2806=Object['defineProperty'],_0x19e8e2=Object[_0x2b1dc8(0x299)],_0x75d19e=(_0x4b1c80,_0xe77f77,_0x55c180,_0x35aef4)=>{const _0x27f31e=_0x2b1dc8;for(var _0x2ebd57=_0x35aef4>0x1?void 0x0:_0x35aef4?_0x19e8e2(_0xe77f77,_0x55c180):_0xe77f77,_0x182959=_0x4b1c80[_0x27f31e(0x3b8)]-0x1,_0xfede6f;_0x182959>=0x0;_0x182959--)(_0xfede6f=_0x4b1c80[_0x182959])&&(_0x2ebd57=(_0x35aef4?_0xfede6f(_0xe77f77,_0x55c180,_0x2ebd57):_0xfede6f(_0x2ebd57))||_0x2ebd57);return _0x35aef4&&_0x2ebd57&&_0x9c2806(_0xe77f77,_0x55c180,_0x2ebd57),_0x2ebd57;},_0x54c743=(_0x1007e5,_0x584533)=>(_0x4e3372,_0x576b7f)=>_0x584533(_0x4e3372,_0x576b7f,_0x1007e5);let _0x3ae120=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x504a35,_0x5d1244,_0x12548e){const _0x361e55=_0x2b1dc8;super(),_0x58b0b3(this,_0x361e55(0x3d6),new Map()),_0x58b0b3(this,'_entityInit$',new _0x2fad13[(_0x361e55(0x2ee))]()),(this[_0x361e55(0x267)]=_0x504a35,this[_0x361e55(0x4cd)]=_0x5d1244,this['_collabSessionService']=_0x12548e,this[_0x361e55(0x1dd)]());}['dispose'](){const _0x228e6a=_0x2b1dc8;super[_0x228e6a(0x3a8)](),this[_0x228e6a(0x59f)][_0x228e6a(0x424)](),this[_0x228e6a(0x3d6)]['forEach'](_0x3b7d5b=>_0x3b7d5b['dispose']());}[_0x2b1dc8(0x35e)](_0x58c463){const _0x4994ce=_0x2b1dc8;return this[_0x4994ce(0x3d6)]['has'](_0x58c463)?this['_entities']['get'](_0x58c463)[_0x4994ce(0x36d)]:this[_0x4994ce(0x59f)][_0x4994ce(0x378)](_0x2fad13[_0x4994ce(0x565)](_0x44ec55=>_0x44ec55[_0x4994ce(0x3d4)]===_0x58c463),_0x2fad13[_0x4994ce(0x304)](_0xb986b5=>_0xb986b5[_0x4994ce(0x36d)]));}[_0x2b1dc8(0x1dd)](){const _0x59206a=_0x2b1dc8;this[_0x59206a(0x267)]['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x59206a(0x3f1)])[_0x59206a(0x378)](_0x2fad13[_0x59206a(0x1de)](this[_0x59206a(0x557)]))[_0x59206a(0x358)](async _0x465451=>{const _0x4b0a28=_0x59206a,_0x126532=_0x465451[_0x4b0a28(0x28e)](),_0x108a2c=await this['_startSheetCollabCursor'](_0x126532);this[_0x4b0a28(0x59f)][_0x4b0a28(0x522)](_0x108a2c),this[_0x4b0a28(0x3d6)][_0x4b0a28(0x305)](_0x126532,_0x108a2c);}),this[_0x59206a(0x267)]['getTypeOfUnitAdded$'](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x202)])[_0x59206a(0x378)](_0x2fad13['takeUntil'](this[_0x59206a(0x557)]))['pipe'](_0x2fad13[_0x59206a(0x565)](_0xacb260=>!_0xacb260[_0x59206a(0x28e)]()[_0x59206a(0x2aa)]('__')))[_0x59206a(0x358)](async _0x316290=>{const _0x51fa6a=_0x59206a,_0x5646d9=_0x316290[_0x51fa6a(0x28e)](),_0x3c6e70=await this[_0x51fa6a(0x4d9)](_0x5646d9);this['_entityInit$'][_0x51fa6a(0x522)](_0x3c6e70),this[_0x51fa6a(0x3d6)][_0x51fa6a(0x305)](_0x5646d9,_0x3c6e70);}),_0x2fad13[_0x59206a(0x2b4)](this['_univerInstanceService'][_0x59206a(0x366)](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x202)]),this['_univerInstanceService'][_0x59206a(0x366)](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x3f1)]))[_0x59206a(0x378)](_0x2fad13[_0x59206a(0x1de)](this[_0x59206a(0x557)]))['subscribe'](_0x416da8=>{const _0x4b9a18=_0x59206a,_0xbeed29=_0x416da8[_0x4b9a18(0x28e)](),_0x3639fe=this[_0x4b9a18(0x3d6)][_0x4b9a18(0x37f)](_0xbeed29);_0x3639fe&&(_0x3639fe[_0x4b9a18(0x3a8)](),this['_entities'][_0x4b9a18(0x189)](_0xbeed29));});}async[_0x2b1dc8(0x20d)](_0x286190){const _0x1fc778=_0x2b1dc8,_0x4e3442=await this[_0x1fc778(0x1e3)][_0x1fc778(0x4bc)](_0x286190),_0x4861fd=this['_injector']['createInstance'](_0x5b5ed2,_0x286190,_0x4e3442);return _0x4861fd[_0x1fc778(0x3bd)](),_0x4861fd;}async[_0x2b1dc8(0x4d9)](_0x277204){const _0x2ee20a=_0x2b1dc8,_0x38c86c=await this[_0x2ee20a(0x1e3)][_0x2ee20a(0x4bc)](_0x277204),_0x13be34=this[_0x2ee20a(0x4cd)][_0x2ee20a(0x281)](_0x357ca5,_0x277204,_0x38c86c);return _0x13be34[_0x2ee20a(0x3bd)](),_0x13be34;}};_0x3ae120=_0x75d19e([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4[_0x2b1dc8(0x4e1)][_0x2b1dc8(0x20b)],_0x3ae120),_0x54c743(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x54c743(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x54c743(0x2,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x272)]))],_0x3ae120);const _0x134c72=0x14,_0x4c3566=0xc8,_0x547863=0x4,_0xb6b009=0x5;function _0x41811e(_0x324518,_0x19e1b8){const _0x38fd1=_0x2b1dc8;let {radius:_0x40bc94,width:_0x56e231,height:_0x1fc874}=_0x19e1b8;_0x40bc94=_0x40bc94!=null?_0x40bc94:0x0,_0x56e231=_0x56e231!=null?_0x56e231:0x1e,_0x1fc874=_0x1fc874!=null?_0x1fc874:0x1e;let _0x53b479=0x0,_0x3bc6e8=0x0,_0x447b12=0x0;_0x53b479=_0x3bc6e8=_0x447b12=Math[_0x38fd1(0x387)](_0x40bc94,_0x56e231/0x2,_0x1fc874/0x2),_0x324518[_0x38fd1(0x58c)](),_0x324518['moveTo'](_0x53b479,0x0),_0x324518[_0x38fd1(0x435)](_0x56e231-_0x3bc6e8,0x0),_0x324518['arc'](_0x56e231-_0x3bc6e8,_0x3bc6e8,_0x3bc6e8,Math['PI']*0x3/0x2,0x0,!0x1),_0x324518['lineTo'](_0x56e231,_0x1fc874-_0x447b12),_0x324518[_0x38fd1(0x215)](_0x56e231-_0x447b12,_0x1fc874-_0x447b12,_0x447b12,0x0,Math['PI']/0x2,!0x1),_0x324518[_0x38fd1(0x435)](0x0,_0x1fc874),_0x324518[_0x38fd1(0x435)](0x0,_0x53b479),_0x324518[_0x38fd1(0x215)](_0x53b479,_0x53b479,_0x53b479,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x324518['closePath'](),_0x19e1b8['fill']&&(_0x324518[_0x38fd1(0x42e)](),_0x324518[_0x38fd1(0x459)]=_0x19e1b8['fill'],_0x19e1b8[_0x38fd1(0x1cc)]==='evenodd'?_0x324518[_0x38fd1(0x3ee)](_0x38fd1(0x241)):_0x324518[_0x38fd1(0x3ee)](),_0x324518[_0x38fd1(0x399)]());}class _0x4ac80a extends _0x33b476[_0x2b1dc8(0x27c)]{constructor(_0x5a49b4,_0x4a0adb){const _0x255f94=_0x2b1dc8;super(_0x5a49b4,_0x4a0adb),_0x58b0b3(this,_0x255f94(0x1f9)),_0x58b0b3(this,_0x255f94(0x39e)),(this['color']=_0x4a0adb==null?void 0x0:_0x4a0adb[_0x255f94(0x1f9)],this[_0x255f94(0x39e)]=_0x4a0adb==null?void 0x0:_0x4a0adb['text']);}static['drawWith'](_0x4f865d,_0x1a5369){const _0x4fe773=_0x2b1dc8,{text:_0x36609d,color:_0x4cef3c}=_0x1a5369;_0x4f865d[_0x4fe773(0x42e)](),_0x4f865d['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x472525=_0x4f865d['measureText'](_0x36609d)[_0x4fe773(0x52b)],_0x44c718=Math[_0x4fe773(0x387)](_0x472525+0x2*_0x547863,_0x4c3566);_0x41811e(_0x4f865d,{'height':_0x134c72,'radius':0x4,'width':_0x44c718,'fill':_0x4cef3c,'evented':!0x1}),_0x4f865d['fillStyle']='#FFF';const _0x5544fc=_0x547863,_0x6a390d=_0x134c72-_0xb6b009,_0x129903=_0x4c3566-0x2*_0x547863;if(_0x472525>_0x129903){let _0x1adc9b='',_0x3f8b44=0x0;for(const _0x5c12fd of _0x36609d){const _0x4f8da7=_0x4f865d['measureText'](_0x5c12fd)[_0x4fe773(0x52b)];if(_0x3f8b44+_0x4f8da7<=_0x129903-_0x4f865d[_0x4fe773(0x18e)](_0x4fe773(0x409))['width'])_0x1adc9b+=_0x5c12fd,_0x3f8b44+=_0x4f8da7;else{_0x1adc9b+=_0x4fe773(0x409);break;}}_0x4f865d['fillText'](_0x1adc9b,_0x5544fc,_0x6a390d);}else _0x4f865d[_0x4fe773(0x53a)](_0x36609d,_0x5544fc,_0x6a390d);_0x4f865d[_0x4fe773(0x399)]();}['_draw'](_0x44d6a4){_0x4ac80a['drawWith'](_0x44d6a4,this);}}const _0xcd42bb=_0x2b1dc8(0x223),_0x46a752=_0x2b1dc8(0x4e2),_0x469d0c=_0x2b1dc8(0x43d),_0x3e86c1=0x6,_0x1289a4=1.5,_0x44f44f=0x4,_0xaac269=1.5,_0xbc0d8d=_0x2b1dc8(0x2cc);class _0x1b1542{constructor(_0x1ee8e6,_0x1d1345,_0x27d20b,_0x4610aa){const _0x5938af=_0x2b1dc8;_0x58b0b3(this,_0x5938af(0x2e6),[]),_0x58b0b3(this,'_anchor',null),_0x58b0b3(this,_0x5938af(0x21a),null),_0x58b0b3(this,_0x5938af(0x354),null),_0x58b0b3(this,'_hideTimer',null),_0x58b0b3(this,_0x5938af(0x3b5),null),(this[_0x5938af(0x55f)]=_0x1ee8e6,this[_0x5938af(0x297)]=_0x1d1345,this[_0x5938af(0x21e)]=_0x27d20b,this[_0x5938af(0x513)]=_0x4610aa,this[_0x5938af(0x3d0)]());}set[_0x2b1dc8(0x318)](_0x4015dd){const _0x118d80=_0x2b1dc8;_0x4015dd?(this[_0x118d80(0x354)]&&this[_0x118d80(0x354)]['hide'](),this[_0x118d80(0x21a)]&&this[_0x118d80(0x21a)][_0x118d80(0x221)]()):(this[_0x118d80(0x354)]&&this[_0x118d80(0x354)][_0x118d80(0x221)](),this[_0x118d80(0x21a)]&&this[_0x118d80(0x21a)][_0x118d80(0x5b7)]());}[_0x2b1dc8(0x3a8)](){const _0xe4fcd1=_0x2b1dc8;for(const _0x2354bc of this['_shapes'])_0x2354bc[_0xe4fcd1(0x3a8)]();this['_textBubble']&&this[_0xe4fcd1(0x21a)]['dispose'](),this[_0xe4fcd1(0x354)]&&this['_anchorDot'][_0xe4fcd1(0x3a8)](),this[_0xe4fcd1(0x548)]&&this[_0xe4fcd1(0x548)][_0xe4fcd1(0x3a8)](),this['_eventUnsubscribe']&&this[_0xe4fcd1(0x3b5)]();}[_0x2b1dc8(0x3d0)](){const _0x18a67e=_0x2b1dc8;var _0x1dc4ad;const {_docSkeleton:_0x222df5,_document:_0x2c03b4}=this,{color:_0x18484c,name:_0x4fb0b3,ranges:_0x426e57}=this[_0x18a67e(0x55f)],_0x925983=_0x2c03b4[_0x18a67e(0x31e)](),{docsLeft:_0x196e4c,docsTop:_0x19eaa8}=_0x925983,_0x410b53=new _0x1123f9['NodePositionConvertToCursor'](_0x925983,_0x222df5);for(const {startOffset:_0x2ea2dd,endOffset:_0x2ceaaf,collapsed:_0x39a014,isActive:_0x24106f}of _0x426e57){const _0x125ed8=_0x222df5[_0x18a67e(0x34d)](_0x2ea2dd),_0x235854=_0x222df5[_0x18a67e(0x34d)](_0x2ceaaf);if(_0x24106f){const {contentBoxPointGroup:_0x55ffa0}=_0x410b53['getRangePointData'](_0x235854,_0x235854);if(_0x55ffa0['length']===0x0)continue;this[_0x18a67e(0x51a)](_0x18484c,_0x55ffa0,_0x196e4c,_0x19eaa8,_0x4fb0b3),this[_0x18a67e(0x3b5)]=this[_0x18a67e(0x43b)]();}if(!_0x39a014&&_0x125ed8&&_0x235854){if(_0x1123f9[_0x18a67e(0x527)](_0x125ed8,_0x235854)){const _0x598ef5=new _0x1123f9[(_0x18a67e(0x3c9))](_0x925983,_0x222df5),{pointGroup:_0x4bf9e5}=(_0x1dc4ad=_0x598ef5[_0x18a67e(0x1cf)](_0x125ed8,_0x235854))!=null?_0x1dc4ad:{};if(_0x4bf9e5==null||_0x4bf9e5[_0x18a67e(0x3b8)]===0x0)continue;this[_0x18a67e(0x204)](_0x18484c,_0x4bf9e5,_0x196e4c,_0x19eaa8);}else{const {contentBoxPointGroup:_0x603e9d}=_0x410b53[_0x18a67e(0x1cf)](_0x125ed8,_0x235854);if(_0x603e9d['length']===0x0)continue;this[_0x18a67e(0x55a)](_0x18484c,_0x603e9d,_0x196e4c,_0x19eaa8);}}}}[_0x2b1dc8(0x51a)](_0x2e6869,_0x162c10,_0x538dbf,_0x526ebb,_0xc16b58){const _0x2c20ee=_0x2b1dc8,_0x4b6c69=this['_getAnchorBounding'](_0x162c10),{left:_0x2a666c,top:_0x416287,height:_0x125d16}=_0x4b6c69,_0x10e33c=this[_0x2c20ee(0x4c0)](),_0x21435=_0xaac269/_0x10e33c,_0x58a97d=new _0x33b476['Rect'](_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb,'height':_0x125d16,'width':_0x1289a4,'fill':_0x2e6869||_0x33b476[_0x2c20ee(0x23f)](_0x5821d4[_0x2c20ee(0x3fa)][_0x2c20ee(0x331)],0x0),'strokeWidth':_0x21435,'stroke':_0xbc0d8d,'evented':!0x0});this['_anchor']=_0x58a97d,this[_0x2c20ee(0x297)][_0x2c20ee(0x2c0)](_0x58a97d,_0x1123f9[_0x2c20ee(0x5aa)]);const _0x3710e5=new _0x33b476[(_0x2c20ee(0x5b3))](_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb-_0x44f44f/0x2,'height':_0x44f44f,'width':_0x44f44f,'fill':_0x2e6869||_0x33b476[_0x2c20ee(0x23f)](_0x5821d4['COLORS'][_0x2c20ee(0x331)],0x0),'strokeWidth':0x0,'stroke':_0x2e6869||_0x33b476['getColor'](_0x5821d4[_0x2c20ee(0x3fa)][_0x2c20ee(0x331)],0x0),'evented':!0x1});this[_0x2c20ee(0x354)]=_0x3710e5,this['_scene']['addObject'](_0x3710e5,_0x1123f9['TEXT_RANGE_LAYER_INDEX']);const _0x3f9de8=new _0x4ac80a(_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb-_0x134c72,'text':_0xc16b58,'color':_0x2e6869});this['_textBubble']=_0x3f9de8,this[_0x2c20ee(0x297)]['addObject'](_0x3f9de8,_0x1123f9[_0x2c20ee(0x5aa)]),this['_hover']=!0x1;}['_handleHover'](){const _0xccdfdf=_0x2b1dc8,_0x39a4f4=this[_0xccdfdf(0x548)][_0xccdfdf(0x26a)][_0xccdfdf(0x30e)](()=>{this['_hover']=!0x0;}),_0x49374b=this[_0xccdfdf(0x548)][_0xccdfdf(0x420)][_0xccdfdf(0x30e)](()=>{const _0x34223b=_0xccdfdf;this[_0x34223b(0x3ea)]&&clearTimeout(this[_0x34223b(0x3ea)]),this[_0x34223b(0x3ea)]=setTimeout(()=>{const _0x4a8844=_0x34223b;this[_0x4a8844(0x318)]=!0x1;},0x7d0);});return()=>{const _0x510011=_0xccdfdf;_0x39a4f4[_0x510011(0x465)](),_0x49374b[_0x510011(0x465)]();};}['_drawTextRange'](_0x52717a,_0x6d4f18,_0x4add6c,_0x35593e){const _0x322be6=_0x2b1dc8,_0x1aa8ca=new _0x5821d4['ColorKit'](_0x52717a)[_0x322be6(0x30b)](0.2)[_0x322be6(0x46c)](),_0x1aaa48=new _0x33b476[(_0x322be6(0x302))](_0x46a752+_0x5821d4['Tools'][_0x322be6(0x582)](_0x3e86c1),{'pointsGroup':_0x6d4f18,'fill':_0x1aa8ca||_0x33b476[_0x322be6(0x23f)](_0x5821d4[_0x322be6(0x3fa)][_0x322be6(0x331)],0.2),'left':_0x4add6c,'top':_0x35593e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x322be6(0x2e6)][_0x322be6(0x3fb)](_0x1aaa48),this[_0x322be6(0x297)]['addObject'](_0x1aaa48,_0x1123f9[_0x322be6(0x5aa)]);}['_drawRectRange'](_0x51db07,_0x31d43b,_0x137fb1,_0x1bc96){const _0xfe517e=_0x2b1dc8,_0x7b1b3b=new _0x5821d4[(_0xfe517e(0x2d4))](_0x51db07)[_0xfe517e(0x30b)](0.2)[_0xfe517e(0x46c)](),_0xe873ef=new _0x33b476[(_0xfe517e(0x302))](_0x469d0c+_0x5821d4[_0xfe517e(0x325)][_0xfe517e(0x582)](_0x3e86c1),{'pointsGroup':_0x31d43b,'fill':_0x7b1b3b||_0x33b476[_0xfe517e(0x23f)](_0x5821d4[_0xfe517e(0x3fa)]['black'],0.2),'left':_0x137fb1,'top':_0x1bc96,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xfe517e(0x2e6)]['push'](_0xe873ef),this[_0xfe517e(0x297)][_0xfe517e(0x2c0)](_0xe873ef,_0x1123f9['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1c430d){const _0x2ecb9a=_0x1c430d[0x0],_0x519f55=_0x2ecb9a[0x0],_0x16efa5=_0x2ecb9a[0x2],{x:_0x1cae8c,y:_0x295a68}=_0x519f55,{x:_0x2751cd,y:_0x712132}=_0x16efa5;return{'left':_0x1cae8c,'top':_0x295a68,'width':_0x2751cd-_0x1cae8c,'height':_0x712132-_0x295a68};}[_0x2b1dc8(0x4c0)](){const _0x579447=_0x2b1dc8,{scaleX:_0x102e7f,scaleY:_0x539b4f}=this['_scene'][_0x579447(0x243)]();return Math[_0x579447(0x35f)](_0x102e7f,_0x539b4f);}}var _0x805158=Object['defineProperty'],_0x2e8c1d=Object[_0x2b1dc8(0x299)],_0x13cb59=(_0x309afa,_0xbf0a03,_0x2f93f7,_0x48d5d8)=>{const _0x2610c1=_0x2b1dc8;for(var _0x3434aa=_0x48d5d8>0x1?void 0x0:_0x48d5d8?_0x2e8c1d(_0xbf0a03,_0x2f93f7):_0xbf0a03,_0x579f79=_0x309afa[_0x2610c1(0x3b8)]-0x1,_0x1ef227;_0x579f79>=0x0;_0x579f79--)(_0x1ef227=_0x309afa[_0x579f79])&&(_0x3434aa=(_0x48d5d8?_0x1ef227(_0xbf0a03,_0x2f93f7,_0x3434aa):_0x1ef227(_0x3434aa))||_0x3434aa);return _0x48d5d8&&_0x3434aa&&_0x805158(_0xbf0a03,_0x2f93f7,_0x3434aa),_0x3434aa;},_0x537ae=(_0x408249,_0x3e0eeb)=>(_0x49bbc3,_0x4d52a2)=>_0x3e0eeb(_0x49bbc3,_0x4d52a2,_0x408249);let _0x273e10=class extends _0x5821d4['RxDisposable']{constructor(_0x495c2d,_0x1fe902,_0x21b99e,_0x21ebee,_0x2686cd){const _0x5c8d1e=_0x2b1dc8;super(),_0x58b0b3(this,'_cursorShapes',[]),_0x58b0b3(this,_0x5c8d1e(0x361),[]),(this['_context']=_0x495c2d,this[_0x5c8d1e(0x3fd)]=_0x1fe902,this[_0x5c8d1e(0x458)]=_0x21b99e,this[_0x5c8d1e(0x4f9)]=_0x21ebee,this['_themeService']=_0x2686cd,this[_0x5c8d1e(0x1dd)]());}[_0x2b1dc8(0x1dd)](){const _0x243044=_0x2b1dc8,_0x328283=this[_0x243044(0x3ce)]['unitId'],_0x2feea1=this['_docSkeletonManagerService'];this[_0x243044(0x470)](_0x2fad13[_0x243044(0x2e7)]([this[_0x243044(0x458)]['getCollabCursors$'](_0x328283),this[_0x243044(0x490)][_0x243044(0x4a7)]])[_0x243044(0x378)](_0xbf2513[_0x243044(0x370)](([_0x46b1a9,_0x4d4125])=>({'skeleton':_0x2feea1[_0x243044(0x4ed)](),'cursors':[..._0x46b1a9[_0x243044(0x211)]()][_0x243044(0x384)](_0x3f715b=>({..._0x3f715b,'color':_0x4d4125[_0x3f715b[_0x243044(0x1f9)]]}))})))[_0x243044(0x358)](_0x417659=>{const _0xfc9c2f=_0x243044;if(this[_0xfc9c2f(0x4c9)](),_0x417659){const {skeleton:_0x2dbd7b,cursors:_0x21b115}=_0x417659;this[_0xfc9c2f(0x402)](_0x2dbd7b,_0x21b115);}})),this[_0x243044(0x2ec)](),this['_initCommandExecutedListener']();}[_0x2b1dc8(0x402)](_0x4fe15b,_0x42ec11){const _0x292eac=_0x2b1dc8,{scene:_0xcc20c1,mainComponent:_0x3972fe}=this[_0x292eac(0x3ce)],_0x4d984d=_0x42ec11[_0x292eac(0x370)](_0x5c7cd8=>new _0x1b1542(_0x5c7cd8,_0xcc20c1,_0x4fe15b,_0x3972fe));this[_0x292eac(0x516)]=_0x4d984d,this[_0x292eac(0x361)]=_0x42ec11;}[_0x2b1dc8(0x275)](){const _0x49b22c=_0x2b1dc8;this[_0x49b22c(0x4c9)]();const {scene:_0xc66360,mainComponent:_0xa8f5b5}=this[_0x49b22c(0x3ce)],_0x55e9cf=this[_0x49b22c(0x3fd)][_0x49b22c(0x4ed)](),_0x54f88d=this[_0x49b22c(0x361)]['map'](_0x4920c9=>new _0x1b1542(_0x4920c9,_0xc66360,_0x55e9cf,_0xa8f5b5));this['_cursorShapes']=_0x54f88d;}[_0x2b1dc8(0x4c9)](){const _0x474693=_0x2b1dc8;this[_0x474693(0x516)][_0x474693(0x3bc)](_0x5993bd=>_0x5993bd[_0x474693(0x3a8)]()),this[_0x474693(0x516)]=[];}[_0x2b1dc8(0x1a7)](){const _0x4d9b00=_0x2b1dc8,_0x5aeb0d=[_0x1123f9[_0x4d9b00(0x4c6)]['id']];this[_0x4d9b00(0x470)](this[_0x4d9b00(0x4f9)][_0x4d9b00(0x44d)](_0xdae325=>{const _0x6d4c3a=_0x4d9b00;_0x5aeb0d['includes'](_0xdae325['id'])&&_0xdae325[_0x6d4c3a(0x3ef)][_0x6d4c3a(0x3af)]===this[_0x6d4c3a(0x3ce)][_0x6d4c3a(0x3af)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x5a335e=_0x2b1dc8;this[_0x5a335e(0x470)](_0x5821d4['fromEventSubject'](this[_0x5a335e(0x3ce)][_0x5a335e(0x261)]['onTransformChange$'])[_0x5a335e(0x378)](_0xbf2513[_0x5a335e(0x565)](_0x4ef671=>_0x4ef671[_0x5a335e(0x4f1)]===_0x33b476[_0x5a335e(0x339)][_0x5a335e(0x327)]),_0xbf2513[_0x5a335e(0x4e4)](0x10))[_0x5a335e(0x358)](()=>{const _0x5c7042=_0x5a335e;this[_0x5c7042(0x275)]();}));}};_0x273e10=_0x13cb59([_0x5821d4['OnLifecycle'](_0x5821d4['LifecycleStages'][_0x2b1dc8(0x28b)],_0x273e10),_0x537ae(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0xc13db5[_0x2b1dc8(0x277)])),_0x537ae(0x2,_0x5821d4['Inject'](_0x3ae120)),_0x537ae(0x3,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x537ae(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x226)]))],_0x273e10);const _0x64c63b=0x1,_0x49efb0=1.5;class _0x22df64 extends _0x33b476[_0x2b1dc8(0x27c)]{constructor(_0x3b8769,_0x2b5d32){const _0x316a50=_0x2b1dc8;super(_0x3b8769,_0x2b5d32),_0x58b0b3(this,'_color'),_0x58b0b3(this,_0x316a50(0x344),!0x1),_0x58b0b3(this,_0x316a50(0x598)),_0x58b0b3(this,'_name',''),_0x58b0b3(this,_0x316a50(0x321),_0x316a50(0x398)),_0x58b0b3(this,_0x316a50(0x497)),(_0x2b5d32&&this[_0x316a50(0x360)](_0x2b5d32),this[_0x316a50(0x26a)][_0x316a50(0x30e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x316a50(0x420)][_0x316a50(0x30e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2b1dc8(0x360)](_0x2bdfb4){const _0x12ca4d=_0x2b1dc8;var _0x9c9c76,_0x50edc9,_0x9ba5d3,_0x5e52bc,_0x285646,_0x54813f;this[_0x12ca4d(0x4f3)]=(_0x9c9c76=_0x2bdfb4[_0x12ca4d(0x1f9)])!=null?_0x9c9c76:this[_0x12ca4d(0x4f3)],this['_hovered']=(_0x50edc9=_0x2bdfb4[_0x12ca4d(0x43f)])!=null?_0x50edc9:this['_hovered'],this[_0x12ca4d(0x598)]=(_0x9ba5d3=_0x2bdfb4['range'])!=null?_0x9ba5d3:this[_0x12ca4d(0x598)],this[_0x12ca4d(0x1df)]=(_0x5e52bc=_0x2bdfb4[_0x12ca4d(0x593)])!=null?_0x5e52bc:this[_0x12ca4d(0x1df)],this['_labelPosition']=(_0x285646=_0x2bdfb4[_0x12ca4d(0x49f)])!=null?_0x285646:this[_0x12ca4d(0x321)],this[_0x12ca4d(0x497)]=(_0x54813f=_0x2bdfb4['backgroundColor'])!=null?_0x54813f:this[_0x12ca4d(0x497)],this[_0x12ca4d(0x4f2)]({'width':_0x2bdfb4[_0x12ca4d(0x52b)],'height':_0x2bdfb4[_0x12ca4d(0x21f)]});}[_0x2b1dc8(0x2ca)](_0x41c1a2){const _0x4153ae=_0x2b1dc8,{row:_0x5a12ac,column:_0x3715d3}=_0x41c1a2;if(_0x5a12ac>=this[_0x4153ae(0x598)][_0x4153ae(0x27f)]&&_0x5a12ac<=this['_range'][_0x4153ae(0x563)]&&_0x3715d3>=this['_range'][_0x4153ae(0x3cb)]&&_0x3715d3<=this[_0x4153ae(0x598)][_0x4153ae(0x310)]){this[_0x4153ae(0x360)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2b1dc8(0x56b)](_0x2e3fcd){return!0x1;}[_0x2b1dc8(0x328)](_0x453e5e){const _0x3eed85=_0x2b1dc8;_0x33b476[_0x3eed85(0x5b3)][_0x3eed85(0x1f2)](_0x453e5e,{'width':this[_0x3eed85(0x52b)],'height':this['height'],'strokeWidth':_0x49efb0,'stroke':this[_0x3eed85(0x4f3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3eed85(0x344)]&&(_0x453e5e[_0x3eed85(0x42e)](),_0x453e5e['transform'](0x1,0x0,0x0,0x1,this[_0x3eed85(0x52b)],this[_0x3eed85(0x321)]==='bottom'?0x0:-_0x134c72),_0x4ac80a[_0x3eed85(0x1f2)](_0x453e5e,{'text':this[_0x3eed85(0x1df)],'color':this[_0x3eed85(0x4f3)]}),_0x453e5e[_0x3eed85(0x399)]());}}var _0x39b69a=Object[_0x2b1dc8(0x47b)],_0x4d0ee8=Object[_0x2b1dc8(0x299)],_0x321021=(_0x1012de,_0x44453b,_0x596936,_0x4ff457)=>{for(var _0x32ecba=_0x4ff457>0x1?void 0x0:_0x4ff457?_0x4d0ee8(_0x44453b,_0x596936):_0x44453b,_0x28c642=_0x1012de['length']-0x1,_0x44913b;_0x28c642>=0x0;_0x28c642--)(_0x44913b=_0x1012de[_0x28c642])&&(_0x32ecba=(_0x4ff457?_0x44913b(_0x44453b,_0x596936,_0x32ecba):_0x44913b(_0x32ecba))||_0x32ecba);return _0x4ff457&&_0x32ecba&&_0x39b69a(_0x44453b,_0x596936,_0x32ecba),_0x32ecba;},_0x5e30af=(_0x11c7c9,_0x51a40a)=>(_0x52b080,_0x487c51)=>_0x51a40a(_0x52b080,_0x487c51,_0x11c7c9);const _0x140af5=0x1389;let _0x1264b5=class extends _0x5821d4['RxDisposable']{constructor(_0x23c6b7,_0x2a8049,_0x42fecd,_0x4cb0b0){const _0x1f9b80=_0x2b1dc8;super(),_0x58b0b3(this,_0x1f9b80(0x361),new Set()),_0x58b0b3(this,_0x1f9b80(0x44e),null),(this[_0x1f9b80(0x3ce)]=_0x23c6b7,this[_0x1f9b80(0x1fe)]=_0x2a8049,this['_collabCursorController']=_0x42fecd,this[_0x1f9b80(0x490)]=_0x4cb0b0,this[_0x1f9b80(0x1dd)]());}[_0x2b1dc8(0x1dd)](){const _0x48a1ca=_0x2b1dc8;this[_0x48a1ca(0x1fe)][_0x48a1ca(0x3a5)]['pipe'](_0xbf2513[_0x48a1ca(0x1de)](this['dispose$']),_0xbf2513[_0x48a1ca(0x304)](_0x452bb6=>{const _0x3e2f67=_0x48a1ca;if(_0x452bb6){const _0x32cbb2=_0x452bb6['sheetId'];return _0x2fad13['combineLatest'](this['_collabCursorController'][_0x3e2f67(0x35e)](this[_0x3e2f67(0x3ce)][_0x3e2f67(0x3af)]),this[_0x3e2f67(0x490)][_0x3e2f67(0x4a7)])[_0x3e2f67(0x378)](_0xbf2513[_0x3e2f67(0x370)](([_0x3a2c01,_0x474628])=>{const _0x543277=_0x3e2f67,_0x3eb47b=new Map();return _0x3a2c01[_0x543277(0x3bc)]((_0x18e954,_0x3d87c9)=>{const _0x39190f=_0x543277;if(_0x18e954['sheetID']===_0x32cbb2){const _0x5c9e82={..._0x18e954};_0x5c9e82[_0x39190f(0x1f9)]=_0x474628[_0x18e954[_0x39190f(0x1f9)]],_0x3eb47b[_0x39190f(0x305)](_0x3d87c9,_0x5c9e82);}}),{'skeleton':_0x452bb6,'cursors':_0x3eb47b};}));}return _0x2fad13['of']({'skeleton':null,'cursors':new Map()});}))[_0x48a1ca(0x358)](({skeleton:_0x43ba46,cursors:_0x2c12a4})=>{const _0x4ba117=_0x48a1ca;this['_removeCollabCursors'](),_0x43ba46&&this[_0x4ba117(0x402)](_0x43ba46,_0x2c12a4);}),this[_0x48a1ca(0x1fe)]['currentSkeleton$']['subscribe'](_0x58ee42=>{const _0x471eaf=_0x48a1ca;if(_0x58ee42==null)return;const {skeleton:_0x5a18a7}=_0x58ee42,{scene:_0x3fd56c}=this['_context'];_0x3fd56c[_0x471eaf(0x3b6)][_0x471eaf(0x30e)](_0x5821d4[_0x471eaf(0x1fb)](_0x22fa89=>{const _0x593cfd=_0x471eaf;var _0x6d9c66,_0x361f8d;const {offsetX:_0x3703e4,offsetY:_0x5e8b61}=_0x22fa89,{x:_0x3eb848,y:_0x4ffa6c}=_0x3fd56c[_0x593cfd(0x1f1)](_0x33b476[_0x593cfd(0x42c)][_0x593cfd(0x4e9)]([_0x3703e4,_0x5e8b61])),{scaleX:_0x3bb285,scaleY:_0x4099c3}=_0x3fd56c['getAncestorScale'](),_0x5430d6=_0x3fd56c['getViewport'](_0x15b72e[_0x593cfd(0x426)][_0x593cfd(0x25a)]),_0x1bb1d8=_0x3fd56c['getVpScrollXYInfoByPosToVp'](_0x33b476['Vector2'][_0x593cfd(0x4e9)]([_0x3eb848,_0x4ffa6c]),_0x5430d6),_0x59fa81=_0x5a18a7[_0x593cfd(0x225)](_0x3703e4,_0x5e8b61,_0x3bb285,_0x4099c3,_0x1bb1d8);((_0x6d9c66=this['_lastPointer'])==null?void 0x0:_0x6d9c66[_0x593cfd(0x512)])===_0x59fa81[_0x593cfd(0x512)]&&((_0x361f8d=this[_0x593cfd(0x44e)])==null?void 0x0:_0x361f8d[_0x593cfd(0x49e)])===_0x59fa81[_0x593cfd(0x49e)]||this['_cursors'][_0x593cfd(0x3bc)](_0xd0591f=>{const _0x1ed043=_0x593cfd;_0xd0591f[_0x1ed043(0x2ca)](_0x59fa81);});},0x64));});}[_0x2b1dc8(0x402)](_0x537b42,_0xf9518c){const _0x56367a=_0x2b1dc8;var _0x62d8f;const _0x980467=(_0x62d8f=this[_0x56367a(0x1fe)][_0x56367a(0x5a8)]())==null?void 0x0:_0x62d8f[_0x56367a(0x40d)];if(!_0x980467)return;const _0x551f70=this[_0x56367a(0x33e)]();if(!_0x551f70)return;this['_cursors'][_0x56367a(0x3bc)](_0x394ff2=>{const _0xf98e34=_0x56367a;_0x394ff2[_0xf98e34(0x57a)]();});const {scene:_0x26974f}=_0x551f70,_0x5eecfb=_0xa5681(Array['from'](_0xf9518c[_0x56367a(0x211)]()))[_0x56367a(0x370)](_0x575a34=>{const _0x5c0de7=_0x56367a,{color:_0x3db3b8,range:_0x55bdf4,name:_0x40041d,selection:_0x17e2bd,sheetID:_0x532241}=_0x575a34,{startColumn:_0x2bc374,startRow:_0x576efc,endColumn:_0x33b1bd,endRow:_0x36edec}=_0x55bdf4,_0x233f96=_0x15b72e[_0x5c0de7(0x2a9)](_0x576efc,_0x2bc374,_0x26974f,_0x980467),_0x1916bd=_0x15b72e[_0x5c0de7(0x2a9)](_0x36edec,_0x33b1bd,_0x26974f,_0x980467),{columnHeaderHeightAndMarginTop:_0x30252d}=_0x980467,{startX:_0x35aebe,startY:_0x45092f}=_0x233f96,{endX:_0x432479,endY:_0x4719d1}=_0x1916bd,_0x21970e=_0x432479-_0x35aebe,_0x528b72=_0x4719d1-_0x45092f,_0x1e7ba7={'labelPosition':_0x45092f-_0x30252d>=_0x134c72?'top':_0x5c0de7(0x43c),'sheetID':_0x532241,'range':_0x55bdf4,'color':_0x3db3b8,'name':_0x40041d,'selection':_0x17e2bd,'left':_0x35aebe,'top':_0x45092f,'width':_0x21970e,'height':_0x528b72,'evented':!0x1,'zIndex':_0x140af5};return new _0x22df64(_0x40041d,_0x1e7ba7);});_0x26974f[_0x56367a(0x2db)](_0x5eecfb,_0x64c63b),this[_0x56367a(0x361)]=new Set(_0x5eecfb);}['_removeCollabCursors'](){const _0x28b3a=_0x2b1dc8;var _0x47ea0a;(_0x47ea0a=this[_0x28b3a(0x361)])==null||_0x47ea0a[_0x28b3a(0x3bc)](_0x2ff74c=>_0x2ff74c['dispose']());}[_0x2b1dc8(0x33e)](){const _0x2e9792=_0x2b1dc8;return _0x15b72e['getSheetObject'](this['_context'][_0x2e9792(0x4d0)],this[_0x2e9792(0x3ce)]);}};_0x1264b5=_0x321021([_0x5e30af(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x15b72e[_0x2b1dc8(0x1c7)])),_0x5e30af(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x3ae120)),_0x5e30af(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['ThemeService']))],_0x1264b5);function _0xa5681(_0x1f5a9a){const _0x183cfc=_0x2b1dc8,_0x45f11b=new Map();return _0x1f5a9a[_0x183cfc(0x3bc)](_0x21f106=>{const _0xe2f739=_0x183cfc;if(_0x45f11b[_0xe2f739(0x532)](_0x21f106['selection'])){const _0x39fce4=_0x45f11b[_0xe2f739(0x37f)](_0x21f106['selection']);_0x39fce4['name']+=',\x20'+_0x21f106['name'];}else _0x45f11b['set'](_0x21f106[_0xe2f739(0x3e9)],_0x21f106);}),Array[_0x183cfc(0x282)](_0x45f11b[_0x183cfc(0x211)]());}var _0x365dc1=function(){const _0x2cd21a=_0x2b1dc8;return _0x365dc1=Object[_0x2cd21a(0x443)]||function(_0x1ecb72){const _0xb9c803=_0x2cd21a;for(var _0x5744d4,_0x1ae193=0x1,_0x2d4466=arguments[_0xb9c803(0x3b8)];_0x1ae193<_0x2d4466;_0x1ae193++){_0x5744d4=arguments[_0x1ae193];for(var _0x1d12f1 in _0x5744d4)Object['prototype'][_0xb9c803(0x418)][_0xb9c803(0x54a)](_0x5744d4,_0x1d12f1)&&(_0x1ecb72[_0x1d12f1]=_0x5744d4[_0x1d12f1]);}return _0x1ecb72;},_0x365dc1[_0x2cd21a(0x265)](this,arguments);},_0x320e20=function(_0x27ed81,_0x1db31c){const _0x218e0a=_0x2b1dc8;var _0x31d70f={};for(var _0x185636 in _0x27ed81)Object[_0x218e0a(0x595)][_0x218e0a(0x418)][_0x218e0a(0x54a)](_0x27ed81,_0x185636)&&_0x1db31c[_0x218e0a(0x2da)](_0x185636)<0x0&&(_0x31d70f[_0x185636]=_0x27ed81[_0x185636]);if(_0x27ed81!=null&&typeof Object[_0x218e0a(0x521)]=='function'){for(var _0x9c791=0x0,_0x185636=Object[_0x218e0a(0x521)](_0x27ed81);_0x9c791<_0x185636[_0x218e0a(0x3b8)];_0x9c791++)_0x1db31c['indexOf'](_0x185636[_0x9c791])<0x0&&Object[_0x218e0a(0x595)]['propertyIsEnumerable'][_0x218e0a(0x54a)](_0x27ed81,_0x185636[_0x9c791])&&(_0x31d70f[_0x185636[_0x9c791]]=_0x27ed81[_0x185636[_0x9c791]]);}return _0x31d70f;},_0x1a3f96=_0x5036b4[_0x2b1dc8(0x197)](function(_0x23da48,_0xbb73f4){const _0x37834f=_0x2b1dc8;var _0x29b235=_0x23da48[_0x37834f(0x188)],_0x499260=_0x23da48['id'],_0x41a34f=_0x23da48[_0x37834f(0x2e0)],_0xb1e2fb=_0x23da48[_0x37834f(0x393)],_0xea4e=_0x320e20(_0x23da48,['icon','id',_0x37834f(0x2e0),_0x37834f(0x393)]),_0x453505=_0x37834f(0x2af)[_0x37834f(0x2b5)](_0x499260,'\x20')['concat'](_0x41a34f||'')[_0x37834f(0x41a)](),_0x3a6fca=_0x5036b4[_0x37834f(0x341)]('_'[_0x37834f(0x2b5)](_0x501cde()));return _0xbdeab4(_0x29b235,''[_0x37834f(0x2b5)](_0x499260),{'defIds':_0x29b235['defIds'],'idSuffix':_0x3a6fca[_0x37834f(0x280)]},_0x365dc1({'ref':_0xbb73f4,'className':_0x453505},_0xea4e),_0xb1e2fb);});function _0xbdeab4(_0x483e06,_0x5ca37c,_0x114650,_0x24a3aa,_0x271337){const _0x45489f=_0x2b1dc8;return _0x5036b4[_0x45489f(0x3ac)](_0x483e06[_0x45489f(0x2c6)],_0x365dc1(_0x365dc1({'key':_0x5ca37c},_0x32c8e4(_0x483e06,_0x114650,_0x271337)),_0x24a3aa),(_0x11731c(_0x483e06,_0x114650)['children']||[])[_0x45489f(0x370)](function(_0x2cac3c,_0x1d2356){const _0x34ea5f=_0x45489f;return _0xbdeab4(_0x2cac3c,''[_0x34ea5f(0x2b5)](_0x5ca37c,'-')['concat'](_0x483e06[_0x34ea5f(0x2c6)],'-')['concat'](_0x1d2356),_0x114650,void 0x0,_0x271337);}));}function _0x32c8e4(_0x2947f5,_0x1416c6,_0x3a488e){const _0x4284fd=_0x2b1dc8;var _0x245f55=_0x365dc1({},_0x2947f5[_0x4284fd(0x4f8)]);_0x3a488e!=null&&_0x3a488e[_0x4284fd(0x488)]&&_0x245f55[_0x4284fd(0x3ee)]==='colorChannel1'&&(_0x245f55[_0x4284fd(0x3ee)]=_0x3a488e[_0x4284fd(0x488)]);var _0x399eb1=_0x1416c6[_0x4284fd(0x416)];return!_0x399eb1||_0x399eb1[_0x4284fd(0x3b8)]===0x0||(_0x2947f5['tag']===_0x4284fd(0x315)&&_0x245f55['xlink:href']&&(_0x245f55[_0x4284fd(0x44f)]=_0x245f55['xlink:href']+_0x1416c6[_0x4284fd(0x50f)]),Object[_0x4284fd(0x18c)](_0x245f55)[_0x4284fd(0x3bc)](function(_0x273002){const _0x4d3521=_0x4284fd;var _0x4521fe=_0x273002[0x0],_0x2a6862=_0x273002[0x1];typeof _0x2a6862==_0x4d3521(0x596)&&(_0x245f55[_0x4521fe]=_0x2a6862[_0x4d3521(0x1ef)](/url\(#(.*)\)/,_0x4d3521(0x50d)[_0x4d3521(0x2b5)](_0x1416c6[_0x4d3521(0x50f)],')')));})),_0x245f55;}function _0x11731c(_0x4315c9,_0x6490b){const _0xfb782b=_0x2b1dc8;var _0x1df07c,_0x3b6d23=_0x6490b[_0xfb782b(0x416)];return!_0x3b6d23||_0x3b6d23[_0xfb782b(0x3b8)]===0x0?_0x4315c9:_0x4315c9[_0xfb782b(0x2c6)]===_0xfb782b(0x1d1)&&(!((_0x1df07c=_0x4315c9[_0xfb782b(0x2bd)])===null||_0x1df07c===void 0x0)&&_0x1df07c[_0xfb782b(0x3b8)])?_0x365dc1(_0x365dc1({},_0x4315c9),{'children':_0x4315c9[_0xfb782b(0x2bd)][_0xfb782b(0x370)](function(_0x3ff066){const _0x327314=_0xfb782b;return typeof _0x3ff066[_0x327314(0x4f8)]['id']==_0x327314(0x596)&&_0x3b6d23&&_0x3b6d23[_0x327314(0x2da)](_0x3ff066['attrs']['id'])>-0x1?_0x365dc1(_0x365dc1({},_0x3ff066),{'attrs':_0x365dc1(_0x365dc1({},_0x3ff066[_0x327314(0x4f8)]),{'id':_0x3ff066['attrs']['id']+_0x6490b[_0x327314(0x50f)]})}):_0x3ff066;})}):_0x4315c9;}function _0x501cde(){const _0x3fe6e8=_0x2b1dc8;return Math[_0x3fe6e8(0x242)]()[_0x3fe6e8(0x531)](0x24)['substring'](0x2,0x8);}_0x1a3f96['displayName']=_0x2b1dc8(0x238);var _0x533df6={'tag':_0x2b1dc8(0x3c2),'attrs':{'fill':_0x2b1dc8(0x38b),'viewBox':_0x2b1dc8(0x263),'width':_0x2b1dc8(0x27d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'stroke':'currentColor','d':_0x2b1dc8(0x54d),'strokeLinecap':_0x2b1dc8(0x581),'strokeLinejoin':_0x2b1dc8(0x581),'strokeWidth':1.2}}]},{'tag':_0x2b1dc8(0x1d1),'attrs':{},'children':[{'tag':_0x2b1dc8(0x3d7),'attrs':{'id':_0x2b1dc8(0x4d3)},'children':[{'tag':'path','attrs':{'fill':_0x2b1dc8(0x3ec),'d':_0x2b1dc8(0x508)}}]}]}],'defIds':[_0x2b1dc8(0x4d3)]},_0x10e767=_0x5036b4[_0x2b1dc8(0x197)](function(_0xb28613,_0x40bd57){return _0x5036b4['createElement'](_0x1a3f96,Object['assign']({},_0xb28613,{'id':'off-line-single','ref':_0x40bd57,'icon':_0x533df6}));});_0x10e767[_0x2b1dc8(0x476)]=_0x2b1dc8(0x26f);var _0x3cee83={'tag':_0x2b1dc8(0x3c2),'attrs':{'fill':'none','viewBox':_0x2b1dc8(0x1ae),'width':'1em','height':_0x2b1dc8(0x27d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2b1dc8(0x1bd)},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'stroke':_0x2b1dc8(0x518),'d':_0x2b1dc8(0x43e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2b1dc8(0x1d1),'attrs':{},'children':[{'tag':_0x2b1dc8(0x3d7),'attrs':{'id':_0x2b1dc8(0x34f)},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'fill':_0x2b1dc8(0x3ec),'d':_0x2b1dc8(0x508),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2b1dc8(0x34f)]},_0x4535b5=_0x5036b4[_0x2b1dc8(0x197)](function(_0x123790,_0x3593da){const _0x2e6fb5=_0x2b1dc8;return _0x5036b4[_0x2e6fb5(0x3ac)](_0x1a3f96,Object[_0x2e6fb5(0x443)]({},_0x123790,{'id':_0x2e6fb5(0x1b2),'ref':_0x3593da,'icon':_0x3cee83}));});_0x4535b5['displayName']=_0x2b1dc8(0x19a);const _0x2bdd54={'onlineStatusIcon':_0x2b1dc8(0x368),'onlineStatusTitle':_0x2b1dc8(0x1f5),'onlineStatus':_0x2b1dc8(0x2f5),'online':_0x2b1dc8(0x519),'offline':_0x2b1dc8(0x372)};function _0x51d39f(_0xc767d){const _0x18060c=_0x2b1dc8;switch(_0xc767d){case _0x109234['OFFLINE']:return _0x18060c(0x295);case _0x109234['CONFLICT']:return _0x18060c(0x4c1);case _0x109234[_0x18060c(0x5bc)]:return'collabStatus.fetchMiss';case _0x109234['NOT_COLLAB']:return _0x18060c(0x246);case _0x109234[_0x18060c(0x258)]:case _0x109234[_0x18060c(0x585)]:case _0x109234['AWAITING_WITH_PENDING']:return _0x18060c(0x2e5);case _0x109234['SYNCED']:return'collabStatus.synced';}}function _0xf6cf50(_0x38290b){const _0x146dd4=_0x2b1dc8,{status$:_0x5df171}=_0x38290b,_0x297cc5=_0x32b063[_0x146dd4(0x306)](_0x5df171,_0x109234[_0x146dd4(0x525)]),_0x1d4daa=_0x5821d4[_0x146dd4(0x229)](_0x5821d4[_0x146dd4(0x27e)]),_0x52bcf4=_0x5821d4[_0x146dd4(0x229)](_0x2010a0[_0x146dd4(0x272)]),_0x1e6a2b=_0x297cc5!==_0x109234[_0x146dd4(0x400)],_0x513b00=_0x1d4daa['t'](_0x51d39f(_0x297cc5)),_0xc9dc7c=_0x46648e(_0x2bdd54[_0x146dd4(0x3e2)],{[_0x2bdd54[_0x146dd4(0x3c8)]]:_0x1e6a2b,[_0x2bdd54[_0x146dd4(0x23d)]]:!_0x1e6a2b}),_0xe9df26=_0x1e6a2b?_0x5036b4[_0x146dd4(0x3ac)](_0x4535b5,null):_0x5036b4[_0x146dd4(0x3ac)](_0x10e767,null),_0x599624=_0x5036b4['useCallback'](()=>{const _0x3933f7=_0x146dd4;_0x1e6a2b||_0x52bcf4[_0x3933f7(0x235)]();},[_0x1e6a2b,_0x52bcf4]);function _0x3d174d(){const _0x213acf=_0x146dd4;return _0x5036b4[_0x213acf(0x3ac)](_0x213acf(0x1ab),{'className':_0xc9dc7c,'onClick':_0x599624},_0x5036b4['createElement'](_0x213acf(0x1ab),{'className':_0x2bdd54['onlineStatusIcon']},_0xe9df26),_0x5036b4['createElement'](_0x213acf(0x1ab),{'className':_0x2bdd54[_0x213acf(0x4a0)]},_0x513b00));}return _0x1e6a2b?_0x3d174d():_0x5036b4[_0x146dd4(0x3ac)](_0x2997c5[_0x146dd4(0x2ab)],{'title':_0x1d4daa['t'](_0x146dd4(0x587))},_0x3d174d());}var _0x404338=Object[_0x2b1dc8(0x47b)],_0x3d4fea=Object[_0x2b1dc8(0x299)],_0x3ba70e=(_0x575cce,_0x1c0ebc,_0xb9cc6c,_0x449814)=>{const _0x44fbf0=_0x2b1dc8;for(var _0xd9ce24=_0x449814>0x1?void 0x0:_0x449814?_0x3d4fea(_0x1c0ebc,_0xb9cc6c):_0x1c0ebc,_0x55c47c=_0x575cce[_0x44fbf0(0x3b8)]-0x1,_0x2339f7;_0x55c47c>=0x0;_0x55c47c--)(_0x2339f7=_0x575cce[_0x55c47c])&&(_0xd9ce24=(_0x449814?_0x2339f7(_0x1c0ebc,_0xb9cc6c,_0xd9ce24):_0x2339f7(_0xd9ce24))||_0xd9ce24);return _0x449814&&_0xd9ce24&&_0x404338(_0x1c0ebc,_0xb9cc6c,_0xd9ce24),_0xd9ce24;},_0x58e372=(_0x191e64,_0x2ccb57)=>(_0xe01489,_0x455157)=>_0x2ccb57(_0xe01489,_0x455157,_0x191e64);_0x2010a0[_0x2b1dc8(0x2b3)]=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x312334,_0x78b0f2,_0x1f9d93,_0x13ae92){const _0x2b2e94=_0x2b1dc8;super(),_0x58b0b3(this,_0x2b2e94(0x21c),new _0x2fad13['BehaviorSubject'](_0x109234[_0x2b2e94(0x525)])),(this[_0x2b2e94(0x267)]=_0x312334,this[_0x2b2e94(0x38a)]=_0x78b0f2,this['_injector']=_0x1f9d93,this['_collaborationController']=_0x13ae92,this[_0x2b2e94(0x56f)](),this[_0x2b2e94(0x250)]());}[_0x2b1dc8(0x250)](){const _0x18aee3=_0x2b1dc8;this[_0x18aee3(0x470)](this[_0x18aee3(0x267)][_0x18aee3(0x44a)][_0x18aee3(0x378)](_0x2fad13[_0x18aee3(0x304)](()=>{const _0x275071=_0x18aee3,_0xeef935=this[_0x275071(0x267)][_0x275071(0x279)]();return _0xeef935?this[_0x275071(0x567)][_0x275071(0x44b)](_0xeef935['getUnitId']()):_0x2fad13['of'](null);}),_0x2fad13[_0x18aee3(0x304)](_0x24a756=>_0x24a756?_0x24a756[_0x18aee3(0x20c)]:_0x2fad13['of'](_0x109234['NOT_COLLAB'])))[_0x18aee3(0x358)](_0x553e0c=>{const _0x43e4b4=_0x18aee3;this[_0x43e4b4(0x21c)][_0x43e4b4(0x522)](_0x553e0c);}));}[_0x2b1dc8(0x56f)](){const _0x27cea0=_0x2b1dc8;this[_0x27cea0(0x470)](this['_uiPartsService']['registerComponent'](_0x32b063[_0x27cea0(0x192)][_0x27cea0(0x526)],()=>_0x5821d4[_0x27cea0(0x390)](_0x40b6e2({'status$':this['_status$'][_0x27cea0(0x1eb)]()}),this['_injector'])));}},_0x2010a0[_0x2b1dc8(0x2b3)]=_0x3ba70e([_0x58e372(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x58e372(0x1,_0x32b063[_0x2b1dc8(0x4e8)]),_0x58e372(0x2,_0x5821d4['Inject'](_0x5821d4['Injector'])),_0x58e372(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x1f8)]))],_0x2010a0['DesktopCollaborationStatusDisplayController']);function _0x40b6e2(_0x377d71){const {status$:_0x51348b}=_0x377d71;return function(){const _0xa8336b=_0x5448;return _0x5036b4[_0xa8336b(0x3ac)](_0xf6cf50,{'status$':_0x51348b});};}const _0x3b25ce=_0x5821d4[_0x2b1dc8(0x3b3)](_0x2b1dc8(0x1d4));var _0x3f114e=Object[_0x2b1dc8(0x47b)],_0x12efb7=Object[_0x2b1dc8(0x299)],_0x850c2c=(_0x47f5f0,_0x3ca395,_0x174349,_0x2e5b04)=>{const _0x9bc48f=_0x2b1dc8;for(var _0x4800b=_0x2e5b04>0x1?void 0x0:_0x2e5b04?_0x12efb7(_0x3ca395,_0x174349):_0x3ca395,_0x1d5a4a=_0x47f5f0[_0x9bc48f(0x3b8)]-0x1,_0x1829f4;_0x1d5a4a>=0x0;_0x1d5a4a--)(_0x1829f4=_0x47f5f0[_0x1d5a4a])&&(_0x4800b=(_0x2e5b04?_0x1829f4(_0x3ca395,_0x174349,_0x4800b):_0x1829f4(_0x4800b))||_0x4800b);return _0x2e5b04&&_0x4800b&&_0x3f114e(_0x3ca395,_0x174349,_0x4800b),_0x4800b;},_0x1fcd11=(_0x3b1cde,_0x34ce04)=>(_0xf36903,_0x279a15)=>_0x34ce04(_0xf36903,_0x279a15,_0x3b1cde);_0x2010a0[_0x2b1dc8(0x450)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x481c8a,_0x252098,_0x3eb87d,_0xe915e3,_0x2e67c6,_0x34e810){const _0x4509fe=_0x2b1dc8;super(),this[_0x4509fe(0x3d2)]=_0x481c8a,this[_0x4509fe(0x26b)]=_0x252098,this[_0x4509fe(0x4f9)]=_0x3eb87d,this[_0x4509fe(0x461)]=_0xe915e3,this[_0x4509fe(0x382)]=_0x2e67c6,_0x34e810?_0x34e810==null||_0x34e810[_0x4509fe(0x41e)]()[_0x4509fe(0x57d)](()=>this[_0x4509fe(0x1dd)]()):(this[_0x4509fe(0x26b)][_0x4509fe(0x1dc)](_0x4509fe(0x1aa),_0x4509fe(0x523)),this[_0x4509fe(0x1dd)]());}async[_0x2b1dc8(0x1dd)](){const _0x10d4dc=_0x2b1dc8,_0x3cd9b4=this[_0x10d4dc(0x3d2)][_0x10d4dc(0x324)](_0x10d4dc(0x4d0)),_0x229d0c=this[_0x10d4dc(0x3d2)]['getParam'](_0x10d4dc(0x4f1));if(!_0x3cd9b4||!_0x229d0c){this['_logService']['debug'](_0x10d4dc(0x1aa),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x229d0c)){case _0x25ecad[_0x10d4dc(0x3f1)]:{const _0x6dd27a=await this[_0x10d4dc(0x2fd)](_0x3cd9b4);this[_0x10d4dc(0x4d8)](_0x6dd27a);break;}case _0x25ecad[_0x10d4dc(0x202)]:{await this[_0x10d4dc(0x559)](_0x3cd9b4);break;}default:{this[_0x10d4dc(0x26b)][_0x10d4dc(0x3e4)](_0x10d4dc(0x1aa),_0x10d4dc(0x4bb));break;}}}async[_0x2b1dc8(0x4d8)](_0x335cf1){const _0x5c50c3=_0x2b1dc8;await this[_0x5c50c3(0x575)](_0x335cf1),_0x335cf1['activeSheet$'][_0x5c50c3(0x378)](_0x2fad13[_0x5c50c3(0x1de)](this['dispose$']))[_0x5c50c3(0x358)](_0x1a62a1=>{const _0x289884=_0x5c50c3;_0x1a62a1&&this[_0x289884(0x383)](_0x1a62a1);}),this[_0x5c50c3(0x3d2)][_0x5c50c3(0x1fa)]['pipe'](_0x2fad13[_0x5c50c3(0x1de)](this[_0x5c50c3(0x557)]))[_0x5c50c3(0x358)](()=>this[_0x5c50c3(0x575)](_0x335cf1));}[_0x2b1dc8(0x383)](_0x125e2e,_0x5a288f=!0x1){const _0x715056=_0x2b1dc8,_0x9fdf15=this[_0x715056(0x3d2)]['getParam'](_0x715056(0x332));_0x125e2e[_0x715056(0x1c4)]()!==_0x9fdf15&&this[_0x715056(0x3d2)][_0x715056(0x2d8)](_0x715056(0x332),_0x125e2e[_0x715056(0x1c4)](),_0x5a288f);}async['_updateSubUnitFromURLParams'](_0x1894a1){const _0x23f6a3=_0x2b1dc8;var _0x21b69a;const _0x5eb5aa=this[_0x23f6a3(0x3d2)][_0x23f6a3(0x324)](_0x23f6a3(0x332));if(!_0x5eb5aa||!_0x1894a1['getSheetBySheetId'](_0x5eb5aa)){const _0x962128=_0x1894a1[_0x23f6a3(0x556)]()[0x0],_0xf095f0=_0x1894a1[_0x23f6a3(0x3d8)](_0x962128);if(!_0xf095f0)return;this[_0x23f6a3(0x383)](_0xf095f0,!0x0),await this[_0x23f6a3(0x4f9)]['executeCommand'](_0x872f07[_0x23f6a3(0x216)]['id'],{'unitId':_0x1894a1[_0x23f6a3(0x28e)](),'subUnitId':_0x962128});return;}((_0x21b69a=_0x1894a1['getActiveSheet']())==null?void 0x0:_0x21b69a[_0x23f6a3(0x1c4)]())!==_0x5eb5aa&&await this[_0x23f6a3(0x4f9)][_0x23f6a3(0x2a8)](_0x872f07[_0x23f6a3(0x216)]['id'],{'unitId':_0x1894a1['getUnitId'](),'subUnitId':_0x5eb5aa});}async[_0x2b1dc8(0x2fd)](_0x1d1fa0){const _0x753516=_0x2b1dc8;let _0x33c168=0x0;const _0x1d5c83=await this[_0x753516(0x461)][_0x753516(0x307)](_0x1d1fa0);return _0x1d5c83&&(_0x1d5c83[_0x753516(0x48f)]||_0x1d5c83[_0x753516(0x29c)][_0x753516(0x3b8)]!==0x0)&&(_0x33c168=_0x1d5c83[_0x753516(0x18d)]),_0x33c168===0x0&&this[_0x753516(0x26b)][_0x753516(0x1dc)](_0x753516(0x1aa),_0x753516(0x3e5)),this[_0x753516(0x382)][_0x753516(0x3a9)](_0x1d1fa0,_0x33c168);}async[_0x2b1dc8(0x559)](_0x378987){const _0xfb9b33=_0x2b1dc8;let _0x597e39=0x0;const _0x50ab94=await this['_localCacheService'][_0xfb9b33(0x307)](_0x378987);return _0x50ab94&&(_0x50ab94['awaitingChangeset']||_0x50ab94[_0xfb9b33(0x29c)][_0xfb9b33(0x3b8)]!==0x0)&&(_0x597e39=_0x50ab94[_0xfb9b33(0x18d)]),_0x597e39===0x0&&this[_0xfb9b33(0x26b)][_0xfb9b33(0x1dc)]('[DataLoaderController]',_0xfb9b33(0x3e5)),this[_0xfb9b33(0x382)][_0xfb9b33(0x5b1)](_0x378987,_0x597e39);}},_0x2010a0[_0x2b1dc8(0x450)]=_0x850c2c([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4[_0x2b1dc8(0x4e1)][_0x2b1dc8(0x20b)],_0x2010a0[_0x2b1dc8(0x450)]),_0x1fcd11(0x0,_0x3b25ce),_0x1fcd11(0x1,_0x5821d4[_0x2b1dc8(0x468)]),_0x1fcd11(0x2,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x1fcd11(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x1fcd11(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x4c5)])),_0x1fcd11(0x5,_0x5821d4[_0x2b1dc8(0x264)](_0x1d2bd4[_0x2b1dc8(0x481)]))],_0x2010a0[_0x2b1dc8(0x450)]);var _0x2d3343=Object['defineProperty'],_0x1829be=Object[_0x2b1dc8(0x299)],_0x3d574f=(_0x1bcffe,_0x1c062c,_0x1967a0,_0x4dca03)=>{const _0x4c44f5=_0x2b1dc8;for(var _0x4429c7=_0x4dca03>0x1?void 0x0:_0x4dca03?_0x1829be(_0x1c062c,_0x1967a0):_0x1c062c,_0xb6b0a1=_0x1bcffe[_0x4c44f5(0x3b8)]-0x1,_0x28091e;_0xb6b0a1>=0x0;_0xb6b0a1--)(_0x28091e=_0x1bcffe[_0xb6b0a1])&&(_0x4429c7=(_0x4dca03?_0x28091e(_0x1c062c,_0x1967a0,_0x4429c7):_0x28091e(_0x4429c7))||_0x4429c7);return _0x4dca03&&_0x4429c7&&_0x2d3343(_0x1c062c,_0x1967a0,_0x4429c7),_0x4429c7;},_0xcccb84=(_0x3fa712,_0x39eedc)=>(_0x45a770,_0x3fd9b9)=>_0x39eedc(_0x45a770,_0x3fd9b9,_0x3fa712);const _0x5796e3=_0x2b1dc8(0x1a5),_0x195931='Univer';let _0x592f9e=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x18ea18,_0x2fa089){const _0x48d82b=_0x2b1dc8;super(),this[_0x48d82b(0x267)]=_0x18ea18,this['_configService']=_0x2fa089,this[_0x48d82b(0x1dd)]();}[_0x2b1dc8(0x1dd)](){const _0x57d90f=_0x2b1dc8;this[_0x57d90f(0x470)](_0x5821d4[_0x57d90f(0x1ed)](this[_0x57d90f(0x267)][_0x57d90f(0x44a)]['subscribe'](()=>{const _0x20cb43=_0x57d90f;var _0x5be1d8;const _0x590bae=this[_0x20cb43(0x267)][_0x20cb43(0x279)]();let _0x530c4d=(_0x5be1d8=this[_0x20cb43(0x3aa)][_0x20cb43(0x54b)](_0x5796e3))!=null?_0x5be1d8:_0x195931;_0x590bae instanceof _0x5821d4[_0x20cb43(0x45c)]&&(_0x530c4d=_0x590bae[_0x20cb43(0x593)]),document[_0x20cb43(0x320)]=_0x530c4d;})));}};_0x592f9e=_0x3d574f([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4['LifecycleStages'][_0x2b1dc8(0x1e4)],_0x592f9e),_0xcccb84(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0xcccb84(0x1,_0x5821d4['IConfigService'])],_0x592f9e);var _0x1eb891=Object['defineProperty'],_0x43ba00=Object['getOwnPropertyDescriptor'],_0x464913=(_0x5c4314,_0x1a6261,_0x556d77,_0x1fbf92)=>{const _0x83c90c=_0x2b1dc8;for(var _0x20e97c=_0x1fbf92>0x1?void 0x0:_0x1fbf92?_0x43ba00(_0x1a6261,_0x556d77):_0x1a6261,_0x37d150=_0x5c4314[_0x83c90c(0x3b8)]-0x1,_0x37e857;_0x37d150>=0x0;_0x37d150--)(_0x37e857=_0x5c4314[_0x37d150])&&(_0x20e97c=(_0x1fbf92?_0x37e857(_0x1a6261,_0x556d77,_0x20e97c):_0x37e857(_0x20e97c))||_0x20e97c);return _0x1fbf92&&_0x20e97c&&_0x1eb891(_0x1a6261,_0x556d77,_0x20e97c),_0x20e97c;},_0x350c37=(_0x4a858a,_0x249812)=>(_0x388437,_0x20cbd4)=>_0x249812(_0x388437,_0x20cbd4,_0x4a858a);let _0x36375a=class{constructor(_0xe75417,_0x1e1946,_0x31f797){const _0x212012=_0x2b1dc8;this[_0x212012(0x3aa)]=_0xe75417,this[_0x212012(0x208)]=_0x1e1946,this[_0x212012(0x1d3)]=_0x31f797,this['init']();}[_0x2b1dc8(0x3bd)](){const _0x270c6b=_0x2b1dc8;this[_0x270c6b(0x208)][_0x270c6b(0x45f)]({'priority':0x1,'interceptor':(_0x20bb70,_0x1264e9)=>_0x1264e9(_0x20bb70)[_0x270c6b(0x378)](_0x2fad13[_0x270c6b(0x36c)](async _0x114e22=>{const _0x5d5404=_0x270c6b,_0x304f86=_0x114e22;if(_0x304f86[_0x5d5404(0x219)]===0x191&&window[_0x5d5404(0x55b)](this[_0x5d5404(0x1d3)]['t']('auth.needGotoLoginAlert'))){const _0x94b676=window[_0x5d5404(0x345)](window[_0x5d5404(0x379)]['href']);window[_0x5d5404(0x379)][_0x5d5404(0x421)]=this['_getLoginPath']()+_0x5d5404(0x193)+_0x94b676;}return _0x304f86;}))});}['_getLoginPath'](){const _0x15ebf7=_0x2b1dc8;var _0x35597d,_0x5b98d3;const _0x3e69a2=this[_0x15ebf7(0x3aa)][_0x15ebf7(0x54b)](_0x4036af),_0xbdd01e=this[_0x15ebf7(0x3aa)][_0x15ebf7(0x54b)](_0x451f80);return(_0x5b98d3=(_0x35597d=_0xbdd01e==null?void 0x0:_0xbdd01e['loginUrlKey'])!=null?_0x35597d:_0x3e69a2)!=null?_0x5b98d3:_0x5525d8;}};_0x36375a=_0x464913([_0x350c37(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x350c37(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService'])),_0x350c37(0x2,_0x5821d4['Inject'](_0x5821d4['LocaleService']))],_0x36375a);var _0x2458f7=Object[_0x2b1dc8(0x47b)],_0xf7fe0d=Object[_0x2b1dc8(0x299)],_0xbecdb0=(_0x449e47,_0x227f8b,_0x391d62,_0x49954d)=>{const _0x3fb187=_0x2b1dc8;for(var _0x308b99=_0x49954d>0x1?void 0x0:_0x49954d?_0xf7fe0d(_0x227f8b,_0x391d62):_0x227f8b,_0x2a2ede=_0x449e47[_0x3fb187(0x3b8)]-0x1,_0x1c9412;_0x2a2ede>=0x0;_0x2a2ede--)(_0x1c9412=_0x449e47[_0x2a2ede])&&(_0x308b99=(_0x49954d?_0x1c9412(_0x227f8b,_0x391d62,_0x308b99):_0x1c9412(_0x308b99))||_0x308b99);return _0x49954d&&_0x308b99&&_0x2458f7(_0x227f8b,_0x391d62,_0x308b99),_0x308b99;},_0x2b3ea9=(_0x1a83db,_0x55a2f9)=>(_0x21ec38,_0x4a3c98)=>_0x55a2f9(_0x21ec38,_0x4a3c98,_0x1a83db);const _0x338186=_0x2b1dc8(0x4e0),_0xb848c2='/universer-api/authz';_0x2010a0['AuthzIoHttpService']=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x4ec081,_0x56cf1d){const _0x2ac599=_0x2b1dc8;super(),this[_0x2ac599(0x453)]=_0x4ec081,this[_0x2ac599(0x3aa)]=_0x56cf1d,this['_initMergeInterceptor']();}[_0x2b1dc8(0x2c5)](){const _0x480a3e=_0x2b1dc8,_0x5327f1=this;this['disposeWithMe'](this[_0x480a3e(0x453)][_0x480a3e(0x45f)]({'priority':0x3e7,'interceptor':_0x19a2cc[_0x480a3e(0x22a)]({'isMatch'(_0x36051b){const _0x11be2c=_0x480a3e;var _0x1b4bda;if(_0x36051b[_0x11be2c(0x3db)]===_0x11be2c(0x545)&&((_0x1b4bda=_0x36051b['requestParams'])!=null&&_0x1b4bda[_0x11be2c(0x2b7)])){const {objectID:_0x2c5903,objectType:_0x32c90a}=_0x36051b[_0x11be2c(0x3da)][_0x11be2c(0x2b7)]||{};if(!_0x2c5903||_0x32c90a===void 0x0)return!0x1;const _0x236e4d=_0x5327f1[_0x11be2c(0x195)]()+'/'+_0x32c90a+_0x11be2c(0x3ed)+_0x2c5903+_0x11be2c(0x4d4);if(_0x36051b[_0x11be2c(0x41c)]===_0x236e4d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12c75d){const _0x2f4206=_0x480a3e;var _0x4f5fa4;return(_0x4f5fa4=_0x12c75d[_0x2f4206(0x3da)])==null?void 0x0:_0x4f5fa4[_0x2f4206(0x2b7)];},'mergeParamsToRequest'(_0x3905c2,_0x1f18ff){const _0x518627=_0x480a3e,_0x1aba22=_0x5327f1[_0x518627(0x195)]()+_0x518627(0x59e),_0x402919=_0x3905c2[_0x518627(0x351)]((_0x3cfac5,_0x1cc31a)=>{const _0x5bed04=_0x518627,{unitID:_0x3e79d6,objectID:_0x35e21,objectType:_0x18b62f,actions:_0x36175b}=_0x1cc31a;return _0x3cfac5[_0x3e79d6]||(_0x3cfac5[_0x3e79d6]={}),_0x3cfac5[_0x3e79d6][_0x35e21]||(_0x3cfac5[_0x3e79d6][_0x35e21]={'objectID':_0x35e21,'objectType':_0x18b62f,'actions':[]}),_0x3cfac5[_0x3e79d6][_0x35e21]['actions'][_0x5bed04(0x3fb)](..._0x36175b),_0x3cfac5;},{}),_0x26d1fd=[];for(const _0x419a8e in _0x402919)for(const _0x4ffafc in _0x402919[_0x419a8e]){const {actions:_0x25abe8,objectType:_0x41912e}=_0x402919[_0x419a8e][_0x4ffafc],_0x2539d6=[...new Set(_0x25abe8)];_0x26d1fd['push']({'unitID':_0x419a8e,'objectID':_0x4ffafc,'objectType':_0x41912e,'actions':_0x2539d6});}return new _0x19a2cc[(_0x518627(0x213))](_0x518627(0x545),_0x1aba22,{'headers':_0x1f18ff['headers'],'withCredentials':_0x1f18ff[_0x518627(0x367)],'responseType':_0x1f18ff['responseType'],'body':{'requests':_0x26d1fd}});}},{'distributeResult'(_0x3fbb24,_0x2d1b7f){const _0x5561cb=_0x480a3e,{objectActions:_0x540e2e}=_0x3fbb24;return _0x2d1b7f[_0x5561cb(0x370)](_0xe9e8e4=>{const _0x4bb8c0=_0x5561cb,{unitID:_0x5724fd,objectID:_0x2f61dc,actions:_0x5a29f7}=_0xe9e8e4,_0x2a0d59=_0x540e2e['find'](_0xa23782=>_0xa23782[_0x4bb8c0(0x3d4)]===_0x5724fd&&_0xa23782[_0x4bb8c0(0x1a0)]===_0x2f61dc),_0x3f820b=_0x5a29f7[_0x4bb8c0(0x370)](_0x36a162=>_0x2a0d59==null?void 0x0:_0x2a0d59[_0x4bb8c0(0x493)][_0x4bb8c0(0x190)](_0x55f62a=>_0x55f62a[_0x4bb8c0(0x3dc)]===_0x36a162))[_0x4bb8c0(0x565)](_0x19bec1=>!!_0x19bec1);return{'config':_0xe9e8e4,'result':{'actions':_0x3f820b,'error':_0x3fbb24['error']}};});}})}));}[_0x2b1dc8(0x195)](){const _0x190552=_0x2b1dc8;var _0x1ecb71,_0x5c3a0c;const _0x5206ad=this[_0x190552(0x3aa)][_0x190552(0x54b)](_0x338186),_0x2e551b=this[_0x190552(0x3aa)][_0x190552(0x54b)](_0x451f80);return(_0x5c3a0c=(_0x1ecb71=_0x2e551b==null?void 0x0:_0x2e551b[_0x190552(0x403)])!=null?_0x1ecb71:_0x5206ad)!=null?_0x5c3a0c:_0xb848c2;}async['create'](_0x1e39bf){const _0x1ec6fd=_0x2b1dc8,_0xe4c15d=this['_getAPIPrefixPath']()+'/'+_0x1e39bf[_0x1ec6fd(0x298)]+'/object';return(await this[_0x1ec6fd(0x453)]['post'](_0xe4c15d,{'body':_0x1e39bf}))[_0x1ec6fd(0x2b7)][_0x1ec6fd(0x1a0)]||'';}async['list'](_0x2f8157){const _0x590cb1=_0x2b1dc8,_0x1d51cf=this[_0x590cb1(0x195)]()+_0x590cb1(0x1ec);return(await this['_HTTPService'][_0x590cb1(0x533)](_0x1d51cf,{'body':_0x2f8157}))[_0x590cb1(0x2b7)]['objects'];}async[_0x2b1dc8(0x2ea)](_0x1ee5ee){const _0x3ab4b=_0x2b1dc8,_0x415f5=this[_0x3ab4b(0x195)]()+'/'+_0x1ee5ee[_0x3ab4b(0x298)]+_0x3ab4b(0x3ed)+_0x1ee5ee[_0x3ab4b(0x1a0)];await this['_HTTPService']['put'](_0x415f5,{'body':_0x1ee5ee});}async[_0x2b1dc8(0x1bf)](_0x543ad7){const _0x216e25=_0x2b1dc8,_0x438d2d=this[_0x216e25(0x195)]()+'/'+_0x543ad7[_0x216e25(0x298)]+_0x216e25(0x3ed)+_0x543ad7[_0x216e25(0x1a0)]+_0x216e25(0x4d4);return(await this[_0x216e25(0x453)][_0x216e25(0x533)](_0x438d2d,{'body':_0x543ad7}))['body'][_0x216e25(0x493)];}async[_0x2b1dc8(0x4aa)](_0x31020b){const _0x2d9a11=_0x2b1dc8,_0x1fbc0b=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x2d9a11(0x453)][_0x2d9a11(0x533)](_0x1fbc0b,{'body':{'requests':_0x31020b}}))[_0x2d9a11(0x2b7)][_0x2d9a11(0x452)];}async[_0x2b1dc8(0x59a)](_0x324fc0){const _0x2f592e=_0x2b1dc8,_0x255c8b=this[_0x2f592e(0x195)]()+'/'+_0x324fc0[_0x2f592e(0x298)]+_0x2f592e(0x254),_0x3efa5c=await this[_0x2f592e(0x453)][_0x2f592e(0x533)](_0x255c8b,{'body':_0x324fc0});return{'roles':_0x3efa5c['body'][_0x2f592e(0x2be)],'actions':_0x3efa5c['body'][_0x2f592e(0x493)]};}async[_0x2b1dc8(0x5a7)](_0x24c32e){const _0x4ef5d6=_0x2b1dc8,_0x597eef=this[_0x4ef5d6(0x195)]()+'/collaborator';await this[_0x4ef5d6(0x453)][_0x4ef5d6(0x189)](_0x597eef,{'params':{'collaboratorID':_0x24c32e[_0x4ef5d6(0x536)],'objectID':_0x24c32e[_0x4ef5d6(0x1a0)],'unitID':_0x24c32e[_0x4ef5d6(0x3d4)]}});}async['updateCollaborator'](_0x433c17){const _0x42d6d0=_0x2b1dc8,_0x12f689=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x42d6d0(0x453)]['patch'](_0x12f689,{'body':_0x433c17});}async[_0x2b1dc8(0x191)](_0xb5af24){const _0x4ba67c=_0x2b1dc8,_0x35f0c3=this[_0x4ba67c(0x195)]()+'/collaborator';await this[_0x4ba67c(0x453)][_0x4ba67c(0x533)](_0x35f0c3,{'body':_0xb5af24});}async[_0x2b1dc8(0x353)](_0x18c10f){const _0x3b2cbf=_0x2b1dc8,_0x4c6d45=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x3b2cbf(0x453)][_0x3b2cbf(0x37f)](_0x4c6d45,{'params':{'objectID':_0x18c10f[_0x3b2cbf(0x1a0)],'unitID':_0x18c10f[_0x3b2cbf(0x3d4)]}}))[_0x3b2cbf(0x2b7)][_0x3b2cbf(0x5ad)];}async[_0x2b1dc8(0x4af)](_0x363f4e){const _0x4b18e8=_0x2b1dc8,_0x5bb21b=this[_0x4b18e8(0x195)]()+_0x4b18e8(0x24e);await this[_0x4b18e8(0x453)][_0x4b18e8(0x28f)](_0x5bb21b,{'body':_0x363f4e});}},_0x2010a0[_0x2b1dc8(0x5a3)]=_0xbecdb0([_0x2b3ea9(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService'])),_0x2b3ea9(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['IConfigService']))],_0x2010a0['AuthzIoHttpService']);var _0xbd2595=Object[_0x2b1dc8(0x47b)],_0x5a46c4=Object[_0x2b1dc8(0x299)],_0x154a1a=(_0x20f0d4,_0x182e54,_0x394f4f,_0x16efd3)=>{const _0x53f184=_0x2b1dc8;for(var _0xa281d3=_0x16efd3>0x1?void 0x0:_0x16efd3?_0x5a46c4(_0x182e54,_0x394f4f):_0x182e54,_0x4adf5c=_0x20f0d4[_0x53f184(0x3b8)]-0x1,_0xf425f6;_0x4adf5c>=0x0;_0x4adf5c--)(_0xf425f6=_0x20f0d4[_0x4adf5c])&&(_0xa281d3=(_0x16efd3?_0xf425f6(_0x182e54,_0x394f4f,_0xa281d3):_0xf425f6(_0xa281d3))||_0xa281d3);return _0x16efd3&&_0xa281d3&&_0xbd2595(_0x182e54,_0x394f4f,_0xa281d3),_0xa281d3;},_0x277f14=(_0x549da6,_0x159e60)=>(_0x50ef63,_0x1acb9d)=>_0x159e60(_0x50ef63,_0x1acb9d,_0x549da6);let _0x1e0133=class{constructor(_0x5a1659){const _0x1d333b=_0x2b1dc8;this['_httpService']=_0x5a1659,this[_0x1d333b(0x2bc)]();}[_0x2b1dc8(0x2bc)](){const _0x200ca3=_0x2b1dc8;this[_0x200ca3(0x208)][_0x200ca3(0x45f)]({'interceptor':(_0x3a3b56,_0x329d30)=>{const _0x8da02c=_0x200ca3,_0x78e529=_0x3a3b56['headers'],_0x5014a7=_0x1c126e[_0x8da02c(0x30a)]();return _0x5014a7&&_0x78e529[_0x8da02c(0x305)](_0x8da02c(0x455),_0x5014a7),_0x329d30(_0x3a3b56);}});}};_0x1e0133=_0x154a1a([_0x277f14(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService']))],_0x1e0133);var _0x4e40e8=Object[_0x2b1dc8(0x47b)],_0x5662a7=Object[_0x2b1dc8(0x299)],_0x476d61=(_0xa272bb,_0x49c232,_0x351c70,_0x5567f6)=>{const _0x484d13=_0x2b1dc8;for(var _0x34e0ff=_0x5567f6>0x1?void 0x0:_0x5567f6?_0x5662a7(_0x49c232,_0x351c70):_0x49c232,_0x3a9241=_0xa272bb[_0x484d13(0x3b8)]-0x1,_0x193bfd;_0x3a9241>=0x0;_0x3a9241--)(_0x193bfd=_0xa272bb[_0x3a9241])&&(_0x34e0ff=(_0x5567f6?_0x193bfd(_0x49c232,_0x351c70,_0x34e0ff):_0x193bfd(_0x34e0ff))||_0x34e0ff);return _0x5567f6&&_0x34e0ff&&_0x4e40e8(_0x49c232,_0x351c70,_0x34e0ff),_0x34e0ff;},_0x204a98=(_0x22f7a0,_0x36568c)=>(_0x1781fb,_0x66405e)=>_0x36568c(_0x1781fb,_0x66405e,_0x22f7a0);const _0xf3cd32=['image/png',_0x2b1dc8(0x53e),_0x2b1dc8(0x408),'image/gif','image/bmp'],_0x55ef15=0x5*0x400*0x400,_0x22f4e0=_0x2b1dc8(0x278),_0x1cefdb='/universer-api/stream/file/upload',_0xf00546=_0x2b1dc8(0x4eb),_0x41175a=_0x2b1dc8(0x430);_0x2010a0['ImageIoService']=class{constructor(_0x1d2de9,_0x3a30d5,_0x3af8cf){const _0x2f168e=_0x2b1dc8;_0x58b0b3(this,_0x2f168e(0x26d),0x0),_0x58b0b3(this,_0x2f168e(0x252),new _0x2fad13[(_0x2f168e(0x2ee))]()),_0x58b0b3(this,_0x2f168e(0x357),this[_0x2f168e(0x252)]),_0x58b0b3(this,_0x2f168e(0x42d),new Map()),(this[_0x2f168e(0x208)]=_0x1d2de9,this[_0x2f168e(0x3aa)]=_0x3a30d5,this[_0x2f168e(0x267)]=_0x3af8cf);}[_0x2b1dc8(0x1ca)](_0x5c06f5){const _0x825c4=_0x2b1dc8;this[_0x825c4(0x26d)]=_0x5c06f5,this['_change$'][_0x825c4(0x522)](_0x5c06f5);}[_0x2b1dc8(0x24d)](_0x1acc3a,_0xa70e2c){const _0x3f4406=_0x2b1dc8;if(_0xa70e2c===_0x2b5006[_0x3f4406(0x451)][_0x3f4406(0x209)]){const _0x7778e1=new Image();return _0x7778e1['src']=_0x1acc3a,_0x7778e1;}return this['_imageSourceCache']['get'](_0x1acc3a);}[_0x2b1dc8(0x363)](_0x597038,_0x4762fc,_0x9979f5){const _0x5a5762=_0x2b1dc8;_0x4762fc===_0x2b5006['ImageSourceType']['BASE64']||_0x9979f5==null||this['_imageSourceCache'][_0x5a5762(0x305)](_0x597038,_0x9979f5);}async[_0x2b1dc8(0x3a7)](_0xf62a56){const _0x35f232=_0x2b1dc8;try{const _0x4b9adc=this[_0x35f232(0x4fc)](this['_getSignURL'](),''+_0xf62a56),_0x31a92c=(await this[_0x35f232(0x208)]['get'](_0x4b9adc))['body'];if(_0x31a92c['error']&&_0x31a92c['error'][_0x35f232(0x38f)]===_0x37b011['OK']){const _0x2cf5c6=new URL(_0x31a92c['url'],this['_getDownloadEndpointURL']())[_0x35f232(0x531)]();return Promise[_0x35f232(0x405)](_0x2cf5c6);}return Promise[_0x35f232(0x348)](_0x31a92c[_0x35f232(0x3e4)]);}catch(_0x1ef05d){return Promise[_0x35f232(0x348)](_0x1ef05d);}}async[_0x2b1dc8(0x52c)](_0xfe9482){const _0x380383=_0x2b1dc8;let _0xbb5ad1='';if(!_0xf3cd32[_0x380383(0x538)](_0xfe9482[_0x380383(0x4f1)]))return this[_0x380383(0x558)](),Promise[_0x380383(0x348)](new Error(_0x2b5006[_0x380383(0x56d)]['ERROR_IMAGE_TYPE']));if(_0xfe9482[_0x380383(0x199)]>_0x55ef15)return this['_decreaseWaiting'](),Promise[_0x380383(0x348)](new Error(_0x2b5006['ImageUploadStatusType'][_0x380383(0x49c)]));try{const _0x45986c=new FormData();_0x45986c[_0x380383(0x375)]('file',_0xfe9482);const _0x343e54=this['_univerInstanceService'][_0x380383(0x279)](),_0x440f40=_0x343e54==null?void 0x0:_0x343e54[_0x380383(0x28e)]();if(!_0x440f40)throw new Error(_0x380383(0x2b6));const _0x3dd992=this['_getUploadFileURL']()+'?size='+_0xfe9482[_0x380383(0x199)]['toString']()+'&source='+_0xe85c2c[_0x380383(0x4b2)]+_0x380383(0x54c)+encodeURIComponent(_0x440f40),_0x416f5f=await(await fetch(_0x3dd992,{'method':'POST','body':_0x45986c}))[_0x380383(0x2d1)]();if(typeof _0x416f5f[_0x380383(0x2dd)]!=_0x380383(0x596))return this[_0x380383(0x558)](),Promise['reject'](new Error(_0x2b5006['ImageUploadStatusType'][_0x380383(0x18f)]));_0xbb5ad1=_0x416f5f[_0x380383(0x2dd)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2b5006[_0x380383(0x56d)]['ERROR_IMAGE']));}return new Promise((_0x401f56,_0x4c47f5)=>{const _0x1f2f21=_0x380383,_0x52b452=new FileReader();_0x52b452['readAsDataURL'](_0xfe9482),_0x52b452[_0x1f2f21(0x2fe)]=_0x509575=>{const _0x26051a=_0x1f2f21;var _0x35a410;const _0x3f4b8e=(_0x35a410=_0x509575['target'])==null?void 0x0:_0x35a410[_0x26051a(0x39c)];if(_0x3f4b8e==null){this[_0x26051a(0x558)](),_0x4c47f5(new Error(_0x2b5006['ImageUploadStatusType'][_0x26051a(0x18f)]));return;}const _0x256a14=_0x5821d4[_0x26051a(0x325)][_0x26051a(0x582)](0x6);_0x401f56({'imageId':_0x256a14,'imageSourceType':_0x2b5006['ImageSourceType'][_0x26051a(0x509)],'source':_0xbb5ad1,'base64Cache':_0x3f4b8e,'status':_0x2b5006[_0x26051a(0x56d)][_0x26051a(0x19c)]}),this[_0x26051a(0x558)]();};});}[_0x2b1dc8(0x4be)](){const _0x560e6d=_0x2b1dc8;var _0x5d8501,_0x43f0e0;const _0x4eda29=this['_configService']['getConfig'](_0x22f4e0),_0x39e25c=this[_0x560e6d(0x3aa)][_0x560e6d(0x54b)](_0x451f80);return(_0x43f0e0=(_0x5d8501=_0x39e25c==null?void 0x0:_0x39e25c[_0x560e6d(0x3b2)])!=null?_0x5d8501:_0x4eda29)!=null?_0x43f0e0:_0x1cefdb;}[_0x2b1dc8(0x39b)](){const _0x185a31=_0x2b1dc8;var _0x4a6de6,_0x5668cd;const _0x1a2272=this[_0x185a31(0x3aa)][_0x185a31(0x54b)](_0xf00546),_0x4c2634=this[_0x185a31(0x3aa)]['getConfig'](_0x451f80);return(_0x5668cd=(_0x4a6de6=_0x4c2634==null?void 0x0:_0x4c2634[_0x185a31(0x333)])!=null?_0x4a6de6:_0x1a2272)!=null?_0x5668cd:_0x41175a;}[_0x2b1dc8(0x1ba)](){const _0x4d6068=_0x2b1dc8;var _0x3e814f;const _0x26ac50=this[_0x4d6068(0x3aa)][_0x4d6068(0x54b)](_0x451f80);return(_0x3e814f=_0x26ac50==null?void 0x0:_0x26ac50[_0x4d6068(0x3bb)])!=null?_0x3e814f:location[_0x4d6068(0x445)];}[_0x2b1dc8(0x4fc)](_0x4b46fa,_0x4b698d){const _0x4b0238=_0x2b1dc8;return _0x4b46fa[_0x4b0238(0x1ef)]('{fileID}',_0x4b698d);}[_0x2b1dc8(0x558)](){const _0x4f53a0=_0x2b1dc8;this[_0x4f53a0(0x26d)]-=0x1,this[_0x4f53a0(0x252)][_0x4f53a0(0x522)](this[_0x4f53a0(0x26d)]);}},_0x2010a0[_0x2b1dc8(0x51e)]=_0x476d61([_0x204a98(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x31b)])),_0x204a98(0x1,_0x5821d4['IConfigService']),_0x204a98(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x486)]))],_0x2010a0[_0x2b1dc8(0x51e)]);var _0x562b2c=Object[_0x2b1dc8(0x47b)],_0x1bd84a=Object[_0x2b1dc8(0x299)],_0x1f56af=(_0xa680c3,_0x5cd192,_0x2cb488,_0x311d6f)=>{for(var _0x50e24c=_0x311d6f>0x1?void 0x0:_0x311d6f?_0x1bd84a(_0x5cd192,_0x2cb488):_0x5cd192,_0x9cb72e=_0xa680c3['length']-0x1,_0x3972e0;_0x9cb72e>=0x0;_0x9cb72e--)(_0x3972e0=_0xa680c3[_0x9cb72e])&&(_0x50e24c=(_0x311d6f?_0x3972e0(_0x5cd192,_0x2cb488,_0x50e24c):_0x3972e0(_0x50e24c))||_0x50e24c);return _0x311d6f&&_0x50e24c&&_0x562b2c(_0x5cd192,_0x2cb488,_0x50e24c),_0x50e24c;},_0x2e79e8=(_0xcdb1f2,_0x25542d)=>(_0x1f77d3,_0x617bef)=>_0x25542d(_0x1f77d3,_0x617bef,_0xcdb1f2);let _0x5caecb=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x5c7b6d,_0x219a46,_0x57e760,_0x4d3a29,_0x2849ad){const _0x56b6fe=_0x2b1dc8;super(),this[_0x56b6fe(0x4cd)]=_0x5c7b6d,this[_0x56b6fe(0x267)]=_0x219a46,this[_0x56b6fe(0x39f)]=_0x57e760,this[_0x56b6fe(0x447)]=_0x4d3a29,this['_localeService']=_0x2849ad,this[_0x56b6fe(0x36a)](),this[_0x56b6fe(0x342)]();}[_0x2b1dc8(0x342)](){const _0x854e10=_0x2b1dc8,_0xfa2526=async _0x3bac74=>{const _0x37e4fd=_0x5448;(await this['_collaborationSessionService'][_0x37e4fd(0x4bc)](_0x3bac74))['event$']['pipe'](_0xbf2513[_0x37e4fd(0x565)](_0xc1672e=>_0xc1672e[_0x37e4fd(0x510)]===_0xf29ce7[_0x37e4fd(0x25c)][_0x37e4fd(0x29d)]),_0xbf2513[_0x37e4fd(0x1de)](this[_0x37e4fd(0x557)]))[_0x37e4fd(0x358)](_0x17c071=>{const _0x47bfdf=_0x37e4fd,_0x54530b=_0x17c071,{reason:_0x5a58d5}=_0x54530b[_0x47bfdf(0x210)];this[_0x47bfdf(0x4cd)][_0x47bfdf(0x37f)](_0x32b063['IMessageService'])[_0x47bfdf(0x221)]({'type':_0x2997c5[_0x47bfdf(0x410)][_0x47bfdf(0x4fb)],'content':this['_localeService']['t'](_0x47bfdf(0x364))+'('+_0x5a58d5+')'}),this[_0x47bfdf(0x39f)]['updatePermissionPoint'](new _0x872f07[(_0x47bfdf(0x4e6))](_0x3bac74)['id'],!0x1),this['_collaborationSessionService'][_0x47bfdf(0x52e)](_0x3bac74);});};_0x2fad13[_0x854e10(0x2b4)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x854e10(0x3f1)]),this[_0x854e10(0x267)]['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x854e10(0x202)]))[_0x854e10(0x378)](_0xbf2513[_0x854e10(0x370)](_0x2341f3=>_0x2341f3[_0x854e10(0x28e)]()),_0xbf2513[_0x854e10(0x565)](_0x2813cb=>!_0x5821d4[_0x854e10(0x217)](_0x2813cb)),_0xbf2513[_0x854e10(0x1de)](this['dispose$']))[_0x854e10(0x358)](_0x4cce10=>{_0xfa2526(_0x4cce10);});}[_0x2b1dc8(0x36a)](){const _0x3d8fdf=_0x2b1dc8,_0x5d7821=async _0x367654=>{const _0x351c58=_0x5448;(await this[_0x351c58(0x447)][_0x351c58(0x4bc)](_0x367654))[_0x351c58(0x51f)][_0x351c58(0x378)](_0xbf2513[_0x351c58(0x565)](_0x381567=>_0x381567['eventID']===_0xf29ce7[_0x351c58(0x25c)][_0x351c58(0x2de)]),_0xbf2513['takeUntil'](this[_0x351c58(0x557)]))[_0x351c58(0x358)](_0x4b9239=>{const _0x1fce72=_0x351c58,_0x3f0d4a=_0x4b9239,{objectId:_0x50ad62}=_0x3f0d4a[_0x1fce72(0x210)],_0x592284=this['_injector'][_0x1fce72(0x37f)](_0x15b72e['SheetPermissionInitController']);_0x50ad62===_0x367654?_0x592284['initWorkbookPermissionChange'](_0x367654):_0x592284['refreshPermission'](_0x367654,_0x50ad62);});};_0x2fad13[_0x3d8fdf(0x2b4)](this[_0x3d8fdf(0x267)][_0x3d8fdf(0x34c)](_0x5821d4[_0x3d8fdf(0x566)][_0x3d8fdf(0x3f1)]),this[_0x3d8fdf(0x267)][_0x3d8fdf(0x34c)](_0x5821d4[_0x3d8fdf(0x566)][_0x3d8fdf(0x202)]))[_0x3d8fdf(0x378)](_0xbf2513[_0x3d8fdf(0x370)](_0x1435fb=>_0x1435fb['getUnitId']()),_0xbf2513[_0x3d8fdf(0x565)](_0x12c435=>!_0x5821d4[_0x3d8fdf(0x217)](_0x12c435)),_0xbf2513[_0x3d8fdf(0x1de)](this[_0x3d8fdf(0x557)]))[_0x3d8fdf(0x358)](_0x5b1d81=>{_0x5d7821(_0x5b1d81);});}};_0x5caecb=_0x1f56af([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4['LifecycleStages']['Starting'],_0x5caecb),_0x2e79e8(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2e79e8(0x1,_0x5821d4[_0x2b1dc8(0x486)]),_0x2e79e8(0x2,_0x5821d4[_0x2b1dc8(0x312)]),_0x2e79e8(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0['CollaborationSessionService'])),_0x2e79e8(0x4,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x27e)]))],_0x5caecb);var _0x1a2fdf=Object['defineProperty'],_0x39303b=Object[_0x2b1dc8(0x299)],_0x3cc1f9=(_0x2eaa23,_0x29725c,_0x37cdf,_0x26c881)=>{const _0x5bbf59=_0x2b1dc8;for(var _0x289229=_0x26c881>0x1?void 0x0:_0x26c881?_0x39303b(_0x29725c,_0x37cdf):_0x29725c,_0x902edd=_0x2eaa23[_0x5bbf59(0x3b8)]-0x1,_0x56af06;_0x902edd>=0x0;_0x902edd--)(_0x56af06=_0x2eaa23[_0x902edd])&&(_0x289229=(_0x26c881?_0x56af06(_0x29725c,_0x37cdf,_0x289229):_0x56af06(_0x289229))||_0x289229);return _0x26c881&&_0x289229&&_0x1a2fdf(_0x29725c,_0x37cdf,_0x289229),_0x289229;},_0x22308c=(_0x33a120,_0x5e19dc)=>(_0x368404,_0x124901)=>_0x5e19dc(_0x368404,_0x124901,_0x33a120);_0x2010a0[_0x2b1dc8(0x23a)]=class{constructor(_0x4a37ba,_0x58689c){const _0x1dcdd2=_0x2b1dc8;this[_0x1dcdd2(0x3aa)]=_0x4a37ba,this[_0x1dcdd2(0x208)]=_0x58689c;}async['getUnitOnRev'](_0x5a3e3b,_0xad8337){const _0x58a33a=_0x2b1dc8;var _0x20c969;const {unitID:_0x607814,type:_0xbc3674,revision:_0x3c1bd3=0x0}=_0xad8337,_0x5efda3=this[_0x58a33a(0x1da)]()+'/'+_0xbc3674+_0x58a33a(0x24f)+_0x607814+'/rev/'+_0x3c1bd3,_0xb6d4f1=(await this['_httpService'][_0x58a33a(0x37f)](_0x5efda3))[_0x58a33a(0x2b7)],_0x3ad431=(_0x20c969=_0xb6d4f1[_0x58a33a(0x338)])==null?void 0x0:_0x20c969[_0x58a33a(0x2ad)];if(_0x3ad431){const _0x225e7f=_0x3ad431==null?void 0x0:_0x3ad431['originalMeta'],_0x3f1a90=_0xf29ce7[_0x58a33a(0x472)][_0x58a33a(0x546)](_0xf29ce7[_0x58a33a(0x2ff)](_0x225e7f));_0x3ad431[_0x58a33a(0x48d)]=_0x3f1a90,Object[_0x58a33a(0x18c)](_0x3ad431['sheets'])['forEach'](([,_0x2727ac])=>{const _0x4cc9ee=_0x58a33a,_0xea3569=_0x2727ac[_0x4cc9ee(0x48d)],_0x270489=_0xf29ce7[_0x4cc9ee(0x472)]['encode'](_0xf29ce7[_0x4cc9ee(0x2ff)](_0xea3569));_0x2727ac['originalMeta']=_0x270489;});}return _0xb6d4f1;}async[_0x2b1dc8(0x3e0)](_0x4b5cb1,_0x2a4e96){const _0x2bb373=_0x2b1dc8,{unitID:_0x5d8c30,type:_0x22dce9,blockID:_0x54f235}=_0x2a4e96,_0x290dc0=this['_getAPIPrefix']()+'/'+_0x22dce9+_0x2bb373(0x24f)+_0x5d8c30+_0x2bb373(0x1cd)+_0x54f235;return(await this[_0x2bb373(0x208)]['get'](_0x290dc0))[_0x2bb373(0x2b7)];}async[_0x2b1dc8(0x50c)](_0x14e117,_0x2c707c){const _0x26dcf9=_0x2b1dc8,{unitID:_0x17c9b5,type:_0x3eefe3,blockID:_0x4083fe}=_0x2c707c,_0x739480=this[_0x26dcf9(0x29b)]()+'/block/'+_0x3eefe3+_0x26dcf9(0x24f)+_0x17c9b5+_0x26dcf9(0x1cd)+_0x4083fe;return(await this[_0x26dcf9(0x208)][_0x26dcf9(0x37f)](_0x739480))[_0x26dcf9(0x2b7)];}async[_0x2b1dc8(0x3fc)](_0x4e46cc,_0x3c5daf){const _0x41ca94=_0x2b1dc8,{unitID:_0x41582c,type:_0x5bfe52,from:_0x2c0885,to:_0xbb2a93}=_0x3c5daf,_0x3f9c4a=this[_0x41ca94(0x29b)]()+'/'+_0x5bfe52+'/unit/'+_0x41582c+_0x41ca94(0x23b)+_0x2c0885+_0x41ca94(0x40b)+_0xbb2a93;return(await this[_0x41ca94(0x208)][_0x41ca94(0x37f)](_0x3f9c4a))[_0x41ca94(0x2b7)];}[_0x2b1dc8(0x1da)](){const _0x5317f6=_0x2b1dc8;var _0x3347d4;return(_0x3347d4=this[_0x5317f6(0x3aa)][_0x5317f6(0x54b)](_0x5457b5))!=null?_0x3347d4:this[_0x5317f6(0x29b)]();}[_0x2b1dc8(0x29b)](){const _0x58c843=_0x2b1dc8;var _0x17bb4c,_0x3e8873;const _0x34c6f8=this[_0x58c843(0x3aa)]['getConfig'](_0x22f28d),_0x27a1d6=this[_0x58c843(0x3aa)]['getConfig'](_0x451f80);return(_0x3e8873=(_0x17bb4c=_0x27a1d6==null?void 0x0:_0x27a1d6['snapshotServerUrl'])!=null?_0x17bb4c:_0x34c6f8)!=null?_0x3e8873:_0x34b7c6;}async[_0x2b1dc8(0x2e9)](_0x4ea4b5,_0x3fcf25){const _0x513319=_0x2b1dc8,_0x4b741f=_0x513319(0x1af)+_0x3fcf25['type']+_0x513319(0x24f)+_0x3fcf25[_0x513319(0x3d4)]+_0x513319(0x36f);return(await this[_0x513319(0x208)][_0x513319(0x37f)](_0x4b741f,{'params':{'resourceId':JSON[_0x513319(0x3f3)](_0x3fcf25[_0x513319(0x3de)])}}))['body'];}[_0x2b1dc8(0x562)](){const _0x546070=_0x2b1dc8;throw new Error(_0x546070(0x3d3));}[_0x2b1dc8(0x3be)](){const _0xc7fde7=_0x2b1dc8;throw new Error(_0xc7fde7(0x3d3));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2b1dc8(0x40f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x2010a0[_0x2b1dc8(0x23a)]=_0x3cc1f9([_0x22308c(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x22308c(0x1,_0x5821d4['Inject'](_0x19a2cc[_0x2b1dc8(0x31b)]))],_0x2010a0[_0x2b1dc8(0x23a)]);var _0x3b3f8a=Object[_0x2b1dc8(0x47b)],_0x2df51a=Object[_0x2b1dc8(0x299)],_0x4a1679=(_0x262045,_0x2fca8d,_0x48bff7,_0x535194)=>{const _0x192ff5=_0x2b1dc8;for(var _0x230775=_0x535194>0x1?void 0x0:_0x535194?_0x2df51a(_0x2fca8d,_0x48bff7):_0x2fca8d,_0x8ba1c9=_0x262045[_0x192ff5(0x3b8)]-0x1,_0x555eeb;_0x8ba1c9>=0x0;_0x8ba1c9--)(_0x555eeb=_0x262045[_0x8ba1c9])&&(_0x230775=(_0x535194?_0x555eeb(_0x2fca8d,_0x48bff7,_0x230775):_0x555eeb(_0x230775))||_0x230775);return _0x535194&&_0x230775&&_0x3b3f8a(_0x2fca8d,_0x48bff7,_0x230775),_0x230775;},_0x3b2886=(_0x5bbd4e,_0x3f62eb)=>(_0x40fb69,_0x5f234b)=>_0x3f62eb(_0x40fb69,_0x5f234b,_0x5bbd4e);let _0x17bd31=class extends _0x5821d4['LocalUndoRedoService']{constructor(_0x1a83d6,_0x53a104,_0xac75ab,_0x4f8e04,_0x3c2304){const _0x69fbef=_0x2b1dc8;super(_0x1a83d6,_0x53a104,_0xac75ab),this[_0x69fbef(0x29e)]=_0x4f8e04,this[_0x69fbef(0x26b)]=_0x3c2304;}[_0x2b1dc8(0x571)](_0x3661f2,_0x5768c0){const _0x2689ca=_0x2b1dc8,_0x8303a6=this[_0x2689ca(0x3ad)](_0x3661f2);if(_0x8303a6)try{const _0x558dc3=this[_0x2689ca(0x499)](_0x8303a6,_0x5768c0);this[_0x2689ca(0x574)](_0x3661f2,_0x558dc3);}catch(_0x455af9){this[_0x2689ca(0x26b)]['error']('[CollaborationUndoRedoService]',_0x455af9),this[_0x2689ca(0x1c9)](_0x3661f2);}const _0x452218=this[_0x2689ca(0x224)](_0x3661f2);if(_0x452218)try{const _0x4a5b21=this[_0x2689ca(0x499)](_0x452218,_0x5768c0);this[_0x2689ca(0x57b)](_0x3661f2,_0x4a5b21);}catch(_0x10180a){this[_0x2689ca(0x26b)][_0x2689ca(0x3e4)](_0x10180a),this['_clearRedo'](_0x3661f2);}}[_0x2b1dc8(0x1c9)](_0x571e53){const _0x11b9fc=_0x2b1dc8,_0x27265c=this['_getUndoStack'](_0x571e53);_0x27265c&&(_0x27265c[_0x11b9fc(0x3b8)]=0x0,this[_0x11b9fc(0x1b8)]());}[_0x2b1dc8(0x2ae)](_0x46ddf3){const _0x4568ba=_0x2b1dc8,_0x3a7b4e=this[_0x4568ba(0x224)](_0x46ddf3);_0x3a7b4e&&(_0x3a7b4e[_0x4568ba(0x3b8)]=0x0,this[_0x4568ba(0x1b8)]());}[_0x2b1dc8(0x574)](_0x461d5b,_0x32ef73){const _0x1d676c=_0x2b1dc8;this[_0x1d676c(0x4b5)]['set'](_0x461d5b,_0x32ef73),this[_0x1d676c(0x1b8)]();}['_substituteRedoStack'](_0x128b81,_0x3b7685){const _0x51d704=_0x2b1dc8;this[_0x51d704(0x289)]['set'](_0x128b81,_0x3b7685),this[_0x51d704(0x1b8)]();}[_0x2b1dc8(0x499)](_0x403313,_0x331f55){const _0xd4ed96=_0x2b1dc8,_0x116ecb=[];let _0x328607=_0x331f55,_0xed75ab=_0x331f55;for(let _0x3ea73f=_0x403313[_0xd4ed96(0x3b8)]-0x1;_0x3ea73f>=0x0;_0x3ea73f--){const {unitID:_0x3dd0ee,undoMutations:_0x48803c,redoMutations:_0x49ab3f}=_0x403313[_0x3ea73f],_0x37fdb9=this[_0xd4ed96(0x29e)][_0xd4ed96(0x5a2)](_0x328607,_0x48803c),_0x3c9bc6=this[_0xd4ed96(0x29e)][_0xd4ed96(0x5a2)](_0xed75ab,_0x49ab3f);if(_0xf29ce7['isTransformMutationsWithChangesetFailure'](_0x37fdb9)||_0xf29ce7[_0xd4ed96(0x58f)](_0x3c9bc6)){this[_0xd4ed96(0x26b)][_0xd4ed96(0x3e4)]('[CollaborationUndoRedoService]',_0xd4ed96(0x4cf),_0x37fdb9,_0x3c9bc6);break;}_0x328607=_0x37fdb9[_0xd4ed96(0x37c)],_0xed75ab=_0x3c9bc6['c1Prime'],_0x116ecb[_0xd4ed96(0x3fb)]({'unitID':_0x3dd0ee,'undoMutations':_0x37fdb9['m2Prime'],'redoMutations':_0x3c9bc6[_0xd4ed96(0x1a3)]});}return _0x116ecb[_0xd4ed96(0x380)]();}};_0x17bd31=_0x4a1679([_0x3b2886(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x3b2886(0x1,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x3b2886(0x2,_0x5821d4['IContextService']),_0x3b2886(0x3,_0xf29ce7[_0x2b1dc8(0x487)]),_0x3b2886(0x4,_0x5821d4[_0x2b1dc8(0x468)])],_0x17bd31);class _0x239bf7 extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(){const _0x136898=_0x2b1dc8;super(),_0x58b0b3(this,_0x136898(0x1fa)),this[_0x136898(0x1fa)]=_0x2fad13[_0x136898(0x53d)](window,'popstate')['pipe'](_0x2fad13[_0x136898(0x1de)](this[_0x136898(0x557)]),_0x2fad13[_0x136898(0x1f6)](0x1),_0x2fad13[_0x136898(0x37b)](void 0x0));}[_0x2b1dc8(0x2d8)](_0x1902b0,_0x1b0638,_0x3a1de4=!0x1){const _0x31bfcf=_0x2b1dc8,_0x29833b=new URL(window['location'][_0x31bfcf(0x421)]);_0x29833b['searchParams'][_0x31bfcf(0x305)](_0x1902b0,_0x1b0638),_0x3a1de4?window['history'][_0x31bfcf(0x388)]('','',_0x29833b[_0x31bfcf(0x531)]()):window['history'][_0x31bfcf(0x349)]('','',_0x29833b[_0x31bfcf(0x531)]());}[_0x2b1dc8(0x5ab)](_0x41c1b7,_0xbfab45=!0x1){const _0x2a6584=_0x2b1dc8,_0x58c219=new URL(window[_0x2a6584(0x379)][_0x2a6584(0x421)]);_0x58c219['searchParams'][_0x2a6584(0x189)](_0x41c1b7),_0xbfab45?window[_0x2a6584(0x1e7)]['replaceState']('','',_0x58c219['toString']()):window[_0x2a6584(0x1e7)][_0x2a6584(0x349)]('','',_0x58c219['toString']());}['getParam'](_0x43156e){const _0x31ed10=_0x2b1dc8;var _0x8bfe6d;return(_0x8bfe6d=new URL(window[_0x31ed10(0x379)][_0x31ed10(0x421)])['searchParams'][_0x31ed10(0x37f)](_0x43156e))!=null?_0x8bfe6d:void 0x0;}}var _0xeec76e=Object[_0x2b1dc8(0x47b)],_0x4be45c=Object[_0x2b1dc8(0x299)],_0x1a9121=(_0x11ea0e,_0x5a0ab6,_0x2ee661)=>_0x5a0ab6 in _0x11ea0e?_0xeec76e(_0x11ea0e,_0x5a0ab6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ee661}):_0x11ea0e[_0x5a0ab6]=_0x2ee661,_0x5c9d00=(_0x94dcf2,_0x5bfe76,_0x1e7a21,_0x583544)=>{const _0x265b5a=_0x2b1dc8;for(var _0x31ab8c=_0x583544>0x1?void 0x0:_0x583544?_0x4be45c(_0x5bfe76,_0x1e7a21):_0x5bfe76,_0x3f8082=_0x94dcf2[_0x265b5a(0x3b8)]-0x1,_0xe55fd7;_0x3f8082>=0x0;_0x3f8082--)(_0xe55fd7=_0x94dcf2[_0x3f8082])&&(_0x31ab8c=(_0x583544?_0xe55fd7(_0x5bfe76,_0x1e7a21,_0x31ab8c):_0xe55fd7(_0x31ab8c))||_0x31ab8c);return _0x583544&&_0x31ab8c&&_0xeec76e(_0x5bfe76,_0x1e7a21,_0x31ab8c),_0x31ab8c;},_0x152187=(_0x5ac015,_0xba687f)=>(_0x54cdd1,_0x4bf3b6)=>_0xba687f(_0x54cdd1,_0x4bf3b6,_0x5ac015),_0x23eae8=(_0x303c74,_0x307a03,_0x11dc25)=>_0x1a9121(_0x303c74,_0x307a03+'',_0x11dc25);const _0x474b65=_0x2b1dc8(0x489);_0x2010a0['UniverCollaborationClientPlugin']=class extends _0x5821d4[_0x2b1dc8(0x495)]{constructor(_0x46ac15=_0x10e363,_0x1673cd,_0x1478ec,_0x269e43,_0xb69c4f){const _0x5079fb=_0x2b1dc8;super(),this[_0x5079fb(0x3c3)]=_0x46ac15,this['_logService']=_0x1673cd,this[_0x5079fb(0x29a)]=_0x1478ec,this[_0x5079fb(0x4cd)]=_0x269e43,this[_0x5079fb(0x3aa)]=_0xb69c4f;const {..._0x5eb392}=this['_config'];this['_configService'][_0x5079fb(0x336)](_0x451f80,_0x5eb392);}[_0x2b1dc8(0x4a3)](){this['_registerDependencies']();}[_0x2b1dc8(0x4df)](){const _0x48f7ae=_0x2b1dc8;this[_0x48f7ae(0x2f6)]();}[_0x2b1dc8(0x464)](){const _0x370faf=_0x2b1dc8;var _0x362631,_0x5c5fd1,_0x4433a5,_0x17fa60;this[_0x370faf(0x4cd)][_0x370faf(0x532)](_0x5821d4[_0x370faf(0x2ac)])&&this['_logService'][_0x370faf(0x3e4)]('[UniverCollaborationClientPlugin]',_0x370faf(0x4a6));let _0x468f24=[[_0x5821d4['IUndoRedoService'],{'useClass':_0x17bd31}],[_0x2010a0['CollaborationSessionService']],[_0x38f88a],[_0x19a2cc[_0x370faf(0x31b)]],[_0x3b25ce,{'useClass':_0x239bf7}],[_0x35f626],[_0x2010a0[_0x370faf(0x222)]],[_0x19a2cc[_0x370faf(0x22b)]],[_0x22d44e],[_0x493ead],[_0x203e1e],[_0x4ce206],[_0x36375a],[_0x1e0133],[_0x4bccc8],[_0x5caecb],[_0x5c41db,{'useClass':(_0x5c5fd1=(_0x362631=this[_0x370faf(0x3c3)])==null?void 0x0:_0x362631[_0x370faf(0x3eb)])!=null?_0x5c5fd1:_0x2010a0[_0x370faf(0x1ad)]}],[_0x19a2cc['IHTTPImplementation'],{'useClass':_0x19a2cc[_0x370faf(0x2e3)]}],[_0xf29ce7[_0x370faf(0x27a)],{'useClass':_0x2010a0['SnapshotServerOverHTTPService']}],[_0x5821d4[_0x370faf(0x26e)],{'useClass':_0x2010a0['AuthzIoHttpService']}],[_0x2b5006[_0x370faf(0x2f9)],{'useClass':_0x2010a0[_0x370faf(0x51e)]}],[_0x2010a0[_0x370faf(0x1f8)]],[_0x2010a0[_0x370faf(0x450)]],[_0x2010a0[_0x370faf(0x2b3)]],[_0x592f9e],[_0x3ae120]];(_0x4433a5=this[_0x370faf(0x3c3)])!=null&&_0x4433a5[_0x370faf(0x48c)]&&_0x468f24[_0x370faf(0x3fb)]([_0x4442df,{'useClass':_0x2dacc4}]),_0x468f24=_0x5821d4[_0x370faf(0x313)](_0x468f24,(_0x17fa60=this[_0x370faf(0x3c3)])==null?void 0x0:_0x17fa60[_0x370faf(0x46d)]),_0x468f24[_0x370faf(0x3bc)](_0x1d81c3=>this['_injector'][_0x370faf(0x25b)](_0x1d81c3)),this['_initModules']();}['_registerRenderDependencies'](){const _0x220968=_0x2b1dc8;this[_0x220968(0x470)](this[_0x220968(0x29a)][_0x220968(0x2cf)](_0x5821d4[_0x220968(0x566)]['UNIVER_DOC'],[_0x273e10])),this[_0x220968(0x470)](this['_renderManagerService'][_0x220968(0x2cf)](_0x5821d4['UniverInstanceType'][_0x220968(0x3f1)],[_0x1264b5]));}[_0x2b1dc8(0x3c4)](){const _0x33ab46=_0x2b1dc8;var _0x4423ff,_0x54fd49;this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x19a2cc[_0x33ab46(0x31b)])[_0x33ab46(0x45f)]({'priority':0x14,'interceptor':_0x19a2cc[_0x33ab46(0x5ac)]({'maxParallel':0x6})}),this['_injector']['get'](_0x1e0133),(_0x4423ff=this[_0x33ab46(0x3c3)])!=null&&_0x4423ff[_0x33ab46(0x391)]||this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x2010a0['LocalCacheService'])[_0x33ab46(0x1c3)](),(_0x54fd49=this[_0x33ab46(0x3c3)])!=null&&_0x54fd49[_0x33ab46(0x492)]&&this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x36375a),this['_injector'][_0x33ab46(0x37f)](_0x2010a0[_0x33ab46(0x1f8)]),this[_0x33ab46(0x4cd)][_0x33ab46(0x532)](_0x2010a0[_0x33ab46(0x2b3)])&&this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x2010a0[_0x33ab46(0x2b3)]);}},_0x23eae8(_0x2010a0['UniverCollaborationClientPlugin'],'pluginName',_0x474b65),_0x2010a0[_0x2b1dc8(0x4fa)]=_0x5c9d00([_0x5821d4[_0x2b1dc8(0x256)](_0xf29ce7[_0x2b1dc8(0x4dc)]),_0x152187(0x1,_0x5821d4['ILogService']),_0x152187(0x2,_0x33b476[_0x2b1dc8(0x294)]),_0x152187(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x152187(0x4,_0x5821d4[_0x2b1dc8(0x47d)])],_0x2010a0['UniverCollaborationClientPlugin']),_0x2010a0[_0x2b1dc8(0x4e0)]=_0x338186,_0x2010a0['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x5d7118,_0x2010a0['COLLAB_WEB_SOCKET_URL_KEY']=_0x26584f,_0x2010a0[_0x2b1dc8(0x47f)]=_0x109234,_0x2010a0[_0x2b1dc8(0x34b)]=_0xf6cf50,_0x2010a0[_0x2b1dc8(0x498)]=_0x4bccc8,_0x2010a0[_0x2b1dc8(0x528)]=_0x28f4bb,_0x2010a0[_0x2b1dc8(0x457)]=_0x58f797,_0x2010a0[_0x2b1dc8(0x2e1)]=_0x5c41db,_0x2010a0[_0x2b1dc8(0x373)]=_0x3b25ce,_0x2010a0[_0x2b1dc8(0x365)]=_0x120b3c,_0x2010a0['LOGIN_URL_KEY']=_0x4036af,_0x2010a0['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x183075,_0x2010a0[_0x2b1dc8(0x45b)]=_0x97fb7f,_0x2010a0[_0x2b1dc8(0x59d)]=_0x22f28d,_0x2010a0[_0x2b1dc8(0x577)]=_0x5457b5,_0x2010a0[_0x2b1dc8(0x591)]=_0x58e615,_0x2010a0[_0x2b1dc8(0x4b4)]=_0x22df64,_0x2010a0[_0x2b1dc8(0x389)]=_0x239bf7,_0x2010a0[_0x2b1dc8(0x4bd)]=_0x411e41,_0x2010a0[_0x2b1dc8(0x1c1)]=_0x4d079d,Object[_0x2b1dc8(0x47b)](_0x2010a0,Symbol['toStringTag'],{'value':_0x2b1dc8(0x3e8)});}));
1
+ function _0x205f(_0x1cd471,_0x2b5be6){const _0x35a20a=_0x35a2();return _0x205f=function(_0x205ffa,_0x2ca731){_0x205ffa=_0x205ffa-0x8b;let _0x174981=_0x35a20a[_0x205ffa];return _0x174981;},_0x205f(_0x1cd471,_0x2b5be6);}function _0x35a2(){const _0xac9352=['Vector2','submit\x20changeset\x20error!','revision','allowed','_snapshotService','socket\x20close','catch','onStateChange','/rev/','error','_collaborationTimeoutTimer','JOINING','contains','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[SyncedState]:\x20received\x20rejection.','switchMap','OffLineSingle','url(#on-line-single_clip0_910_349)','roomMembers$','isTransformMutationFailure','HEADER_MENU','focused$','_roomMembers$','some','_userManagerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','editingUnit','src','runRefRangeMutations','_entityInit$','@univerjs/design','parseProtocolChangeset','Injector','defineProperty','NO_OTHER_CLIENTS_EDITING','disposeWithMe','_handleJoinEvent','_setupSubUnitSync','removeParam','ILocalStorageService','LOCAL_CACHE_INTERVAL_KEY','url(#off-line-single_clip0_910_343)','_docTransformSelectionsService','transformStack\x20failed!','_transformUndoRedoStack','React','selections','row','_singleActiveUnitService','_event$','_incrementRevisionNumber','rxjs','compose','onRemoteAck','onPointerEnter$','[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.','getSheetBySheetId','&source=','reconnect','USERS_ENTER','_entities','_ensureSubject','signUrlServerUrl','_initEventListeners','_exhaustRemoteChangesetQueue','apply','CONFLICT','not_collab','get','updateMember','COLORS','mergeOverrideWithDependencies','_initUnitPermissionChange','current','COMPRESS_MUTATION_SEND','/universer-api/stream/file/upload','UNIVER_SLIDE','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','collabCursorState$','getUnit','_socketService','getUnitType','COLLAB_WEB_SOCKET_URL_KEY','UPDATE_PERMISSION_OBJ','[OfflineState]:\x20received\x20acknowledgement.','getSheetId','lineTo','_shapes','round','BASE64','getOwnPropertySymbols','_clearHeartbeatTimer','UniverCore','UniverEngineRender','handleMoveRange','putCollaborators','getSheetObject','onPointerLeave$','SetDocZoomRatioOperation','CHANGESET_REVISION_CONFILICT','_id','VIEWPORT_KEY','_revisionService','UniverLicense','concatMap','_transformService','getImage','history','setWaitCount','IContextService','onSendChangeset','hasOwnProperty','put','EffectRefRangId','AuthzIoHttpService','getCollabEntity$','[SyncedState]:\x20received\x20acknowledgement.','getColor','_updateStatus','_clearUndo','LIVESHARE_NEW_HOST','_removeRoom','top','_handleEvent','drawWith','/universer-api/snapshot/','indexOf','TOO_MANY_REQUESTS','_applyRemoteChangeset','onTransformIME','_toggleOffline','startRow','_redoStacks','onCommandExecuted','[PendingState]:\x20received\x20rejection.','fillStyle','UniverRpc','HEARTBEAT','IMessageService','_socketMessageSubscription','result','_loadDoc','_sessionStatus$','_backgroundColor','SetSelectionsOperation','getMergeData','sequenceExecute','getCollabEntity','UniverCollaboration','mapDocumentTypeToUniverType','_scheduleTimestamp','toRgbString','action','transformMutationsWithChangeset','clearInterval','cursorInfo$','COMPRESS_MUTATION_APPLY','getCurrentUser','HttpImport','useRef','_logService','_sendHeartbeat','_fetchMissChangesets','_config','transformRemoteChangeset','json','isActive','_removeClearOtherTimer','open$','collaboration_new_changeset','_candidateSocket','CONNECTOR_DATA_TOO_LARGE','_updateSubUnitFromURLParams','subscribeEvent','FAIL','color','2072568Fyydzk','transform','@univerjs-pro/collaboration','_socket','makeDirty','show','PENDING','_stopTelemetryCollaborationNewChangeset','uploadFileServerUrl','_members','@univerjs/rpc','OnLineSingle','touchDependencies','/allowed','YUUMI_URL_COL_OUT_OF_RANGE','_handleLeaveEvent','collaboration-client.offline-data-not-saved','event$','isTransformMutationsWithChangesetSuccess','actions','@univerjs-pro/license','collabStatus.offline','listRoles','colorChannel1','fill','ERROR_IMAGE_TYPE','MessageType','UniverCollaborationClientPlugin','column','UniverInstanceType','status','_undoRedoService','transformSelections','flatMap','setAlpha','shareReplay','telemetry\x20info\x20is\x20not\x20initialized','ISnapshotServerService','_joinRoom','session.collaboration-timeout','_textBubble','MergeInterceptorFactory','Optional','_socket$','save','DeleteRangeMoveUpCommandId','NOT_FOUND','\x20-\x20','fromEventSubject','onRemoteChangeset','_colorAssignService','getOwnPropertyDescriptor','LocalUndoRedoService','deleteCollaborator','5UvEEuQ','AWAITING','_listenToOnlineEvent','evenodd','_color','permission.title','_commentService','@univerjs/ui','CollaborationEntity','UniverSheetsUi','newCsEvent','univer-pro.collaboration-client-socket-service','onTransformRemoteChangesetByIMECache','collaboration.closeRoom','getRenderById','transformMutation','_showConflictNotification','_state$','socket\x20open.','RemoveColCommandId','COLLAB_WEB_SOCKET_URL','@univerjs/telemetry','WebSocketService','_permissionService','DocStateChangeManagerService','getDeserializedSheetBlock','NodePositionConvertToCursor','setParam','_colorIndex','then','forEach','_sheetTransformSelectionsService','userID','getResourcesRequest','resend','FETCH_MISSING','reverse','_sendingTimer','max','onlineStatusTitle','parse','getMemberID','_updateCollabCursors','_retryConnectingTimer','_memberService','getTime','function','rev','INGEST','mapTo','onCommentUpdate','sessionStatus$','_lastPointer','Plugin','_context','CollaborationSessionService','getItem','_draw','className','_checkMissing','YUUMI_RATE_OVER_LIMIT','socket$','liveShareOperation','clearTimeout','NOT_COLLAB','_getSendChangesetTimeout','UserManagerService','origin','COMMENT_UPDATE','_transformSelections','message$','_disabled','filter','isPermissionRej','originalMeta','HEARTBEAT_TIMEOUT','_transformStack','ranges','_onRemoteChangeset','TRANSFORM_CHANGE_OBSERVABLE_TYPE','IBeforeCloseService','getUniverSheetInstance','_getSignURL','measureText','csRejEvent','assign','\x0aCurrent:\x20','amd','key','setInterval','_registerRenderDependencies','c1Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_collabSessionService','parseChangesetToProtocol','enableSingleActiveInstanceLock','collab-text-range-','CollaborationStatus','add','_getUndoStack','createIdentifier','UNIVER_SHEET','DocSelectionManagerService','trim','status$','MoveRangeCommandId','INTERNAL_ERROR','_getAPIPrefixPath','joinEvent','_executeRemoteChangeset','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_updateLocalCache','loadDoc','Univer','_getSnapshotAPIPrefix','off-line-single_clip0_910_343','activeSheet$','rxjs/operators','_unitOnClients','with','merge','ERROR_EXCEED_SIZE','objectID','[OfflineState]:\x20received\x20rejection.','image/bmp','_timeoutTimer','unshift','getMember','replaceState','_anchorDot','LICENSE_DISTRO_REJECTED','incrementRevOfUnit','UNRECOGNIZED','symbol','ACTIVE_UNIT_EVENT_CHANNEL','findNodePositionByCharIndex','IRemoteInstanceService','_getCtorByUniverType','&to=','_substituteUndoStack','takeUntil','transformIMECache','roomMembers','params','getParam','_labelPosition','ImageIoService','fillText','_cursors','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_drawRectRange','append','@univerjs/engine-formula','SYNCED','_startCollaboration','UniverUi','_session','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','currentColor','clear','_beforeCloseService','_transformPreviousActiveRange','UniverDocs','children','OTHER_CLIENTS_EDITING','UNIVER_PROJECT','doc.mutation.rich-text-editing','_initResize','_drawTextRange','SNAPSHOT_HAS_BEEN_REMOVED','moveTo','@univerjs/docs-ui','icon','from','collaboration-client.config','resourceIDs','IAuthzIoService','/role','height','_univerInstanceService','SNAPSHOT_URL_KEY','synced','backgroundColor','APPLY_PERMISSION_DENIED','VIEW_MAIN','enableAuthServer','COLLAB_SUBMIT_CHANGESET_URL_KEY','fromCollab','conflict.title','SnapshotService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','session.will-retry','exports','debug','_onConnectionOpen','HEARTBEAT_INTERVAL_KEY','generateRandomId','subscribe','includes','/unit/','Inject','\x20to\x20','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','encode','text','_initMergeInterceptor','_onCursorUpdate','PERMISSION_DENIED','_disableEditing','UniverTelemetry','distinctUntilChanged','_saveCache','getCurrentUnitForType','collabStatus.conflict','@univerjs/drawing','CollaborationSocketService','call','readAsDataURL','LIVESHARE_TERMINATE','SheetCollaborationEntity','_getCurrentRevision','_type','toString','CollaborationEvent','_http','InsertRangeMoveRightCommandId','_unitStatus','RevisionService','state$','@univerjs/docs','ColorKit','offline','shouldCloseConn','selection','_updateState','PERMISSION_REJ','COMPLETION_FINISHED','/object/','transformChangesets','DocSkeletonManagerService','_initCloseConn','_getAnchorBounding','_updateURLWithCurrentState','assignAColorForMemberID','eventID','DesktopCollaborationStatusDisplayController','handleInsertRangeMoveRight','unit-cache-','_scheduleCollaborationTimeoutTimer','CollaborationController','SEND_CHANGESET_TIMEOUT','beginPath','currentSkeleton$','getActiveSheet','_startTelemetryCollaborationNewChangeset','bottom','getImageSourceCache','min','_scheduleSaving','length','_waitForHeartbeatResponse','createSocket','restore','connection\x20error','unitId\x20is\x20not\x20found','localeService','change$','_getSheetObject','useDependency','storage','_imageSourceCache','_saveTaskMap','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_DOC','_tryEnsureSocket','unsubscribe','_createInitialStateImpl','textEncoder','onlyLocal','_toggleOnline','Subject','LICENSE_MAX_UNITS_EXCEEDED','onReady','isArray','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','saveImage','createCollaborator','getSkeleton','_remoteChangesetQueue','_httpService','_cachedData','getFocusedUnit','/object','onMouseMove','capture','[CollaborationSessionService]','image/gif','_range','getSheetBlock','_urlService','body','LocaleService','startTime','/universer-api/comb','updateCursorEvent','_handleHeartbeatEvent','number','error$','_setupBeforeClosingHandler','_heartbeatTimer','DEFAULT_FILE_NAME','_handler','addImageSourceCache','visibilitychange','textRanges','univer-pro.collaboration-client.single-active-unit-service','getDocRanges','loginUrlKey','engine','onMissedChangesetFetched','forwardRef','useObservable','_transformRemoteChangesetByIMECache','_snapshotServerService','_startDocCollabCursor','InsertRangeMoveDownCommandId','use','div','_change$','collabStatus.fetchMiss','Undefined','1em','ALREADY_EXISTS','[UniverCollaborationClientPlugin]','_name','_initStatusComponent','fillRule','/universer-api/authz','arc','UPDATE_CURSOR','url(#$1','0\x200\x2016\x2016','ONLINE','/resources','Error\x20on\x20receiving\x20event','conflict.content','off-line-single','_selfUnitIDs','m2Prime','_collaborationSessionService','memberID','prototype','registerRenderModule','extend','USERS_LEAVE','[PendingState]:\x20received\x20acknowledgement.','_telemetryInfo','handleDeleteRangeMoveUp','/universer-api/oidc/authpage','478386SHBiRZ','collaboratorID','asObservable','enableLocalCache','operators','updatePermissionObjEvent','throttleTime','getValue','DocCollaborationEntity','replaceTextRanges','AWAITING_WITH_PENDING','toggleOffline','_clearScheduledTask','m1Prime','_getAPIPrefix','values','SnapshotServerOverHTTPService','handleDeleteRangeMoveLeft','useCallback','reject','ThemeService','gold400','univer-online-status','_loadSheet','post','isValidRectRange','withCredentials','cmd','_init','_onRemoteRejected','getCurrentSelections','_cursorShapes','save\x20fail\x20reason\x20is\x20','_syncEditingCollabCursor','_pendingMutations','loadOfflineData','collabStatus.syncing','getTypeOfUnitDisposed$','ILogService','startColumn','hovered','...','SUCCUSS','awaitingChangeset','setCurrentUser','tag','_retryCount','getAncestorScale','onlineStatus','_cursorInfo$','black','UNIVER_UNKNOWN','session','_collaborationController','onPointerMove$','\x0aAfter:\x20','_state','/universer-api/file/{fileID}/sign-url','registerHTTPInterceptor','unitId','x-univer-host','PSEUDO_FETCH_MISSING_RESULT','list','visibilityState','onTransformSelections','ITransformService','toggleOnline','_schedule','isEditing','_getRedoStack','getWorkbookSelections','UniverDrawing','Tools','disposeUnit','_clearTimeoutTimer','/universer-api/snapshot','fetching\x20missing\x20changesets\x20from\x20','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','replace','_onConflict','debounce','724829zyVcjH','_onUserLeave','_createInitialState','univer-online-status-title','_registerDependencies','HTTPService','UnitSnapshot','getUnitOnRev','SheetCollabCursorShape','getActiveRange','IDLE','_eventUnsubscribe','Warning','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','HELLO','_commentUpdate$','onRemoteRej','_createSocket','LIVESHARE_REQUEST_HOST','WorkbookEditablePermission','_tryReconnect','getInterceptPoints','init','CollaborationStatusDisplay','ImageUploadStatusType','_listenToOfflineEvent','sessionStatus','listCollaborators','_scene','_createHandler','onMissingChangesets','clipPath','split','online','APPLY_REVISION_CONFILICT','InsertColCommandId','transformByState','session.room-full','_transitionLocked','getCellPositionByOffset','getVpScrollXYInfoByPosToVp','now','resize','M0\x200H16V16H0z','updateOfflineData','sheetID','_socketReady','15430gJZpIg','getUnitId','executeCommand','@univerjs/sheets-ui','deepClone','RemoveRowCommandId','idSuffix','@univerjs/engine-render','create','SheetsSelectionsService','concat','appendMutation','_localeService','_ws','_compressMutationService','_getLoginPath','joinRsp','SNAPSHOT_INVALID_SNAPSHOT','push','objectType','UNKNOWN_CMD','LOGIN_URL_KEY','_initStatusListener','DisposableCollection','close$','onload','_assignedColors','addObject','awaiting','_onRefRangeChange','SheetPermissionInitController','_initModules','LICENSE_EXPORT_SIZE_EXCEEDED','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration-session-retry','_online','csAckEvent','DependentOn','searchParams','_startSheetCollabCursor','displayName','_onMessage','_getUploadFileURL','image/jpeg','getOffsetConfig','collab-text-anchor-','setUndoRedoMutationParamsCache','onStarting','INVALID_ARGUMENT','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','#fff','target','_cursor','commentUpdate$','isInternalEditorID','setTimeout','_onRecvEvent','CollaborationSession','_onLocalMutation','BehaviorSubject','registerComponent','unitID','ITelemetryService','Workbook','ThresholdInterceptorFactory','FileId','RETRY_CONNECTING_MAX_COUNT','[FetchMissState]','_drawAnchor','stopTime','_onUserJoin','LIVESHARE_FETCH_OPERATIONS','CHANGESET_ACK','font','LEAVE','IConfigService','subUnitId','getUnitStatus$','RichTextEditingMutation','data','sheetId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','SUBMIT_CHANGESET','IPermissionService','_onFetchMissResult','_awaitingChangeset','isTransformChangesetsSuccess','/collaborator','?size=','serializeRangeWithSheet','_collabCursorController','_initCommandExecutedListener','onTransformChange$','AUTHZ_URL_KEY','_onRemoteACK','_onOffline','next','complete','_queuedRemoteChangesets','every','all','INotificationService','201MEjFbv','href','_HTTPService','string','_removeCollabCursors','_onJoinRoomEvent','_updateLocalCursor','DataLoaderController','_clearOtherTimers','unknown','has','on-line-single_clip0_910_349','_scheduleClearOtherTimer','url','set','_lockTransition','APPLY_NON_SEQUENTIAL_REVISION','_decreaseWaiting','_render','permission.content','stringify','_isPermissionRej','CompressMutationService','title','entries','getConfig','_instanceService','_onCombEvent','DeleteRangeMoveLeftCommandId','removeMember','_uiPartsService','_docTransformIMECacheService','_configService','attrs','defIds','CommandType','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','dispose$','getCollabCursors$','requestParams','_replayCachedMutations','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','registerBeforeClose','UnitEmbedded','ws://127.0.0.1:8000/universer-api/comb/connect','Error','exhaustSavingTask','IUniverInstanceService','verdancy600','deserializeToCombResponse','updateCollaborator','map','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','path','fetch_missing','fetchThroughInterceptors','xlink:href','UNKNOWN_CODE','handleIRemoveCol','confirm','_hideTimer','_collaborationPaused','code','_undoStacks','workbook','_getMergeRange','createElement','_scheduleHeartbeat','_sendHeartbeatTimer','setActiveRange','_sheetSkeletonManagerService','b64DecodeUnicode','image/png','_messageService','updatePermissionPoint','_transformUndoredo','closePath','collaMsg','?url=','fetchMiss','univer-online','name','urlChange$','_syncEditingCollabCursorService','conflict','UNAUTHENTICATED','substring','NEW_CHANGESETS','@univerjs/core','HttpExport','transformUndoRedo','_localCacheService','downloadEndpointUrl','YUUMI_UNABLE_LOAD_URL','_sessions','saveChangeset','endColumn','CHANGESET_REJ','_onCursorDelete','isTransformMutationsWithChangesetFailure','_status$','_rescheduleHeartbeat','take','saveSheetBlock','patch','toDisposable','0\x200\x2017\x2016','sendChangesetTimeout','WebURLService','IUndoRedoService','_commandService','SEND_CHANGESET_TIMEOUT_KEY','[DataLoaderController]','file','OFFLINE','rgba(255,\x20255,\x20255,\x200.01)','currentTheme$','collabSubmitChangesetUrl','TEXT_RANGE_LAYER_INDEX','5055198PTScwc','state','socketService','[OfflineState]:\x20received\x20changeset.','RefRangeService','_handleHover','purple300','_send','loadSheet','UUID','type','_waitCount','IImageIoService','sheets','registerOnClose','_replaceFileID','XHRHTTPImplementation','_docStateChangeManagerService','triggerDblclick','_unlockTransition','_getScale','IURLService','_roomMembers','subunit','_initRequestHeader','headers','encodeURIComponent','SetWorksheetActivateCommand','createInstance','FromArray','APPLY_REJECT','_renderManagerService','LIVESHARE_OPERATION','syncEditingCollabCursor','_injector','_unitID','_anchor','red300','range','addObjects','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/sheets','objects','_clearRedo','getCurrentRevOfUnit','initWorkbookPermissionChange','resolve','LocalCacheService','pending','getUndoRedoMutationParamsCache','SHOULD_CLOSE_CONN','YUUMI_SUBSCRIPTION_NOT_FOUND','collaborators','whenReady','IRenderManagerService','defs','RECV','_hover','UniverIcon','_collabCursorState$','changesets','snapshotServerUrl','2033160guWDaB','fetchMissingChangesets','saveSnapshot','JOIN','send','c2Prime','hide','_transformIMECache','dispose','slice','_getDownloadEndpointURL','onSyncEditingCollabCursor','UniverDocsUi','#FFF','getRangePointData','unit','closeSession','_throwTelemetryCollaborationNewChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','ERROR_IMAGE','jiqing500','delete','POST','[CollaborationSession]','RxDisposable','setShapeProps','size','_telemetryService','none','newValue','batchAllowed','width','ICommandService','_refreshCollabCursors','location','UniverNetwork','responseType','find','_onConnectionFailed','_docSkeletonManagerService','Module','fromEvent','/-/object/-/batch_allowed','Disposable','reduce','RETRY_CONNECTING_MAX_COUNT_KEY','_shouldReportTelemetry','[CollaborationEntity]','/block/','_hovered','ImageSourceType','@univerjs/network','routeKey','pipe','close','IUIPartsService','handleIRemoveRow','_refRangeService','setItem','baseRev','interceptor','_notificationService','_localStorageService','addEventListener','HEARTBEAT_TIMEOUT_KEY','18526446oxIQFI','react','debounceTime','cursorInfo','collab-client.tooltip.reconnect','_themeService','pluginName','MSG_FOR_ERROR','RegularPolygon','getTypeOfUnitAdded$','ICollaborationSocketService','authzUrl','getCurrent','mutations','SNAPSHOT_SERVER_URL_KEY','commentUpdateEvent','members','collabStatus.notCollab','startsWith','translate(.97)','Rect','delay','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_acknowledgedAwaitingChangeset','_getSaveTimeout','MUTATION','awaiting_with_pending'];_0x35a2=function(){return _0xac9352;};return _0x35a2();}(function(_0xaaf93a,_0x1be2ef){const _0xb017e9=_0x205f,_0x3b8de9=_0xaaf93a();while(!![]){try{const _0x15eb8a=parseInt(_0xb017e9(0x17c))/0x1+parseInt(_0xb017e9(0x1fc))/0x2*(-parseInt(_0xb017e9(0x263))/0x3)+-parseInt(_0xb017e9(0x424))/0x4*(parseInt(_0xb017e9(0x45a))/0x5)+-parseInt(_0xb017e9(0x2da))/0x6+parseInt(_0xb017e9(0x1cd))/0x7+-parseInt(_0xb017e9(0x318))/0x8+parseInt(_0xb017e9(0x359))/0x9;if(_0x15eb8a===_0x1be2ef)break;else _0x3b8de9['push'](_0x3b8de9['shift']());}catch(_0x51dff6){_0x3b8de9['push'](_0x3b8de9['shift']());}}}(_0x35a2,0x7c31e),function(_0x14cc72,_0x2e82e4){const _0x1e02bc=_0x205f;typeof exports=='object'&&typeof module<'u'?_0x2e82e4(exports,require(_0x1e02bc(0x2bb)),require(_0x1e02bc(0x3a7)),require('rxjs/operators'),require(_0x1e02bc(0x392)),require(_0x1e02bc(0x461)),require(_0x1e02bc(0x34b)),require(_0x1e02bc(0x426)),require(_0x1e02bc(0x46f)),require(_0x1e02bc(0xfa)),require(_0x1e02bc(0xc0)),require(_0x1e02bc(0x303)),require(_0x1e02bc(0x203)),require(_0x1e02bc(0xeb)),require(_0x1e02bc(0xac)),require('@univerjs/sheets-ui'),require(_0x1e02bc(0x35a)),require(_0x1e02bc(0x42e)),require(_0x1e02bc(0x438))):typeof define==_0x1e02bc(0x488)&&define[_0x1e02bc(0x4b1)]?define([_0x1e02bc(0xd5),_0x1e02bc(0x2bb),_0x1e02bc(0x3a7),_0x1e02bc(0x4cf),'@univerjs/design',_0x1e02bc(0x461),_0x1e02bc(0x34b),_0x1e02bc(0x426),_0x1e02bc(0x46f),_0x1e02bc(0xfa),_0x1e02bc(0xc0),_0x1e02bc(0x303),_0x1e02bc(0x203),_0x1e02bc(0xeb),'@univerjs/engine-formula',_0x1e02bc(0x1ff),_0x1e02bc(0x35a),_0x1e02bc(0x42e),_0x1e02bc(0x438)],_0x2e82e4):(_0x14cc72=typeof globalThis<'u'?globalThis:_0x14cc72||self,_0x2e82e4(_0x14cc72['UniverCollaborationClient']={},_0x14cc72[_0x1e02bc(0x3d0)],_0x14cc72[_0x1e02bc(0x3a7)],_0x14cc72[_0x1e02bc(0x3a7)][_0x1e02bc(0x180)],_0x14cc72['UniverDesign'],_0x14cc72[_0x1e02bc(0xaf)],_0x14cc72[_0x1e02bc(0x33b)],_0x14cc72[_0x1e02bc(0x408)],_0x14cc72[_0x1e02bc(0xe6)],_0x14cc72[_0x1e02bc(0xb7)],_0x14cc72[_0x1e02bc(0x324)],_0x14cc72['UniverSheets'],_0x14cc72[_0x1e02bc(0x3d1)],_0x14cc72[_0x1e02bc(0x1c3)],_0x14cc72['UniverEngineFormula'],_0x14cc72[_0x1e02bc(0x463)],_0x14cc72[_0x1e02bc(0x3a1)],_0x14cc72[_0x1e02bc(0x3fc)],_0x14cc72[_0x1e02bc(0x3db)]));}(this,function(_0x4c8f94,_0x20df93,_0x284d0,_0x3e7ea3,_0x3206ad,_0x40b1aa,_0x581b3b,_0x55cc56,_0x54d2b5,_0x280e9c,_0x3b39ef,_0x5dce24,_0x1ff35a,_0x1e0c7c,_0x32a48b,_0xf53409,_0x3aba2d,_0x264084,_0x505c0c){'use strict';const _0x144fb0=_0x205f;var _0x9fada5=Object[_0x144fb0(0x395)],_0x209389=(_0x9c03e3,_0x590012,_0x2d0dea)=>_0x590012 in _0x9c03e3?_0x9fada5(_0x9c03e3,_0x590012,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d0dea}):_0x9c03e3[_0x590012]=_0x2d0dea,_0x3e782f=(_0x2eb10d,_0x7b904e,_0x278d31)=>_0x209389(_0x2eb10d,typeof _0x7b904e!=_0x144fb0(0x99)?_0x7b904e+'':_0x7b904e,_0x278d31);const _0x241bd8=_0x144fb0(0x367),_0x534440=_0x144fb0(0x1c7),_0xa047ec=_0x144fb0(0xc9),_0x456d0e=_0x144fb0(0x10f),_0x3c9b9d=_0x144fb0(0x46e),_0x6d4581=_0x144fb0(0x28f),_0x4ffc98='HEARTBEAT_INTERVAL',_0x16ecf3=_0x144fb0(0x4a5),_0x30e871=_0x144fb0(0x23e),_0x1a11f9='LOCAL_CACHE_INTERVAL',_0x546840='COLLAB_SUBMIT_CHANGESET_URL',_0xa3e801=_0x144fb0(0x144),_0x57c1a6=_0x144fb0(0x211),_0x4650cd=_0x144fb0(0x17b);var _0xe677c3=(_0x4c1893=>(_0x4c1893[_0x4c1893['UNDEFINED']=0x0]='UNDEFINED',_0x4c1893[_0x4c1893['OK']=0x1]='OK',_0x4c1893[_0x4c1893[_0x144fb0(0x4c4)]=0x2]=_0x144fb0(0x4c4),_0x4c1893[_0x4c1893[_0x144fb0(0xe4)]=0x3]=_0x144fb0(0xe4),_0x4c1893[_0x4c1893[_0x144fb0(0x452)]=0x4]=_0x144fb0(0x452),_0x4c1893[_0x4c1893['UNAUTHENTICATED']=0x5]=_0x144fb0(0x2b8),_0x4c1893[_0x4c1893[_0x144fb0(0x161)]=0x6]=_0x144fb0(0x161),_0x4c1893[_0x4c1893[_0x144fb0(0x22c)]=0x7]=_0x144fb0(0x22c),_0x4c1893[_0x4c1893[_0x144fb0(0x3f3)]=0x8]=_0x144fb0(0x3f3),_0x4c1893[_0x4c1893[_0x144fb0(0x101)]=0x9]='COMPLETION_FINISHED',_0x4c1893[_0x4c1893['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x144fb0(0x3d7),_0x4c1893[_0x4c1893[_0x144fb0(0x20d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4c1893[_0x4c1893[_0x144fb0(0xbe)]=0x1772]=_0x144fb0(0xbe),_0x4c1893[_0x4c1893['APPLY_REJECT']=0x1b59]=_0x144fb0(0x2f8),_0x4c1893[_0x4c1893[_0x144fb0(0x273)]=0x1b5a]=_0x144fb0(0x273),_0x4c1893[_0x4c1893[_0x144fb0(0x1ef)]=0x1b5b]=_0x144fb0(0x1ef),_0x4c1893[_0x4c1893[_0x144fb0(0xcc)]=0x1b5c]=_0x144fb0(0xcc),_0x4c1893[_0x4c1893['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x144fb0(0x41f),_0x4c1893[_0x4c1893[_0x144fb0(0x12e)]=0x2329]=_0x144fb0(0x12e),_0x4c1893[_0x4c1893[_0x144fb0(0xa9)]=0x232a]=_0x144fb0(0xa9),_0x4c1893[_0x4c1893[_0x144fb0(0x32a)]=0x232b]=_0x144fb0(0x32a),_0x4c1893[_0x4c1893[_0x144fb0(0x21c)]=0x232c]=_0x144fb0(0x21c),_0x4c1893[_0x4c1893[_0x144fb0(0x96)]=0x232d]=_0x144fb0(0x96),_0x4c1893[_0x4c1893[_0x144fb0(0x2c0)]=0x2711]=_0x144fb0(0x2c0),_0x4c1893[_0x4c1893[_0x144fb0(0x432)]=0x2712]=_0x144fb0(0x432),_0x4c1893[_0x4c1893[_0x144fb0(0x496)]=0x2713]=_0x144fb0(0x496),_0x4c1893[_0x4c1893['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x144fb0(0x30d),_0x4c1893[_0x4c1893[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x4c1893))(_0xe677c3||{}),_0x3dff5a=(_0x4244cc=>(_0x4244cc[_0x4244cc['UNIVER_UNKNOWN']=0x0]=_0x144fb0(0x1af),_0x4244cc[_0x4244cc[_0x144fb0(0x126)]=0x1]=_0x144fb0(0x126),_0x4244cc[_0x4244cc[_0x144fb0(0x4bf)]=0x2]=_0x144fb0(0x4bf),_0x4244cc[_0x4244cc[_0x144fb0(0x3c0)]=0x3]='UNIVER_SLIDE',_0x4244cc[_0x4244cc[_0x144fb0(0xba)]=0x4]=_0x144fb0(0xba),_0x4244cc[_0x4244cc['UNRECOGNIZED']=-0x1]=_0x144fb0(0x98),_0x4244cc))(_0x3dff5a||{}),_0x360af6=(_0x56f7b9=>(_0x56f7b9[_0x56f7b9['UNKNOWN_CMD']=0x0]=_0x144fb0(0x210),_0x56f7b9[_0x56f7b9[_0x144fb0(0x1db)]=0x1]=_0x144fb0(0x1db),_0x56f7b9[_0x56f7b9[_0x144fb0(0x31b)]=0x2]=_0x144fb0(0x31b),_0x56f7b9[_0x56f7b9[_0x144fb0(0x246)]=0x3]='LEAVE',_0x56f7b9[_0x56f7b9[_0x144fb0(0x48a)]=0x4]='INGEST',_0x56f7b9[_0x56f7b9[_0x144fb0(0x3fd)]=0x5]=_0x144fb0(0x3fd),_0x56f7b9[_0x56f7b9['RECV']=0x6]=_0x144fb0(0x312),_0x56f7b9[_0x56f7b9[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x56f7b9))(_0x360af6||{}),_0x535ff4=(_0x115204=>(_0x115204[_0x115204[_0x144fb0(0x29c)]=0x0]='UNKNOWN_CODE',_0x115204[_0x115204['OK']=0x1]='OK',_0x115204[_0x115204[_0x144fb0(0x422)]=0x2]=_0x144fb0(0x422),_0x115204[_0x115204[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x115204))(_0x535ff4||{}),_0x1b99f2=(_0x279b4b=>(_0x279b4b[_0x279b4b[_0x144fb0(0x15f)]=0x0]=_0x144fb0(0x15f),_0x279b4b[_0x279b4b[_0x144fb0(0x412)]=0x1]='HttpImport',_0x279b4b[_0x279b4b[_0x144fb0(0x2bc)]=0x2]=_0x144fb0(0x2bc),_0x279b4b[_0x279b4b[_0x144fb0(0x28e)]=0x3]=_0x144fb0(0x28e),_0x279b4b[_0x279b4b[_0x144fb0(0x1d3)]=0x4]='UnitSnapshot',_0x279b4b[_0x279b4b[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x279b4b))(_0x1b99f2||{});const _0x53057b=_0x144fb0(0xc3),_0x391b0e={};function _0x441743(_0x2cae97){const _0x2d67de=_0x144fb0;var _0x1b4ba0,_0x57f02d,_0x422203,_0x1808ab;const _0x5b8748=_0x2cae97['data'],_0x4c3953=JSON[_0x2d67de(0x482)](_0x5b8748);switch(_0x4c3953[_0x2d67de(0x197)]){case _0x360af6[_0x2d67de(0x3fd)]:case _0x360af6[_0x2d67de(0x1db)]:{const _0x4d31d6=_0x4c3953['infoRsp'];return{..._0x4c3953,'data':_0x4d31d6,'cmd':_0x4c3953[_0x2d67de(0x197)]};}case _0x360af6[_0x2d67de(0x31b)]:{const _0xf7b7f2=_0x4c3953[_0x2d67de(0x20c)];return{..._0x4c3953,'data':_0xf7b7f2,'cmd':_0x4c3953[_0x2d67de(0x197)]};}case _0x360af6[_0x2d67de(0x312)]:{const _0x36e19a=_0x4c3953[_0x2d67de(0x2b0)];switch(_0x36e19a[_0x2d67de(0x109)]){case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x100)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x1b4ba0=_0x36e19a['permissionRejEvent'])==null?void 0x0:_0x1b4ba0['cs']},'cmd':_0x4c3953['cmd']};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x244)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x57f02d=_0x36e19a[_0x2d67de(0x220)])==null?void 0x0:_0x57f02d['cs']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x2ba)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x422203=_0x36e19a[_0x2d67de(0x464)])==null?void 0x0:_0x422203['cs']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x2c4)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x1808ab=_0x36e19a[_0x2d67de(0x4ae)])==null?void 0x0:_0x1808ab['cs']},'cmd':_0x4c3953['cmd']};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x168)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x145)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x3af)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x4c6)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x177)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a['leaveEvent']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x3ec)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a['liveShareNewHost']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x243)]:case _0x55cc56['CollaborationEvent'][_0x2d67de(0x2fa)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x498)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0xef)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a['liveShareNewHost']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x360)]:return{..._0x4c3953,'data':_0x36e19a,'cmd':_0x4c3953['cmd']};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x49e)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x368)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x3c7)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x181)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x30c)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0xfd)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};default:return _0x4c3953;}}default:return _0x4c3953;}}function _0x2d1c74(_0x34338d){const _0x3b40e3=_0x144fb0;switch(_0x34338d[_0x3b40e3(0x197)]){case _0x360af6[_0x3b40e3(0x3fd)]:case _0x360af6['HELLO']:return JSON['stringify']({'cmd':_0x34338d[_0x3b40e3(0x197)],'routeKey':_0x34338d[_0x3b40e3(0x34c)]});case _0x360af6['INGEST']:{let _0x5d7663;switch(_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x109)]){case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x168)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x168)],'updateCursorEvent':_0x34338d['data']['data']};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x177)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)]['USERS_LEAVE'],'leaveEvent':_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x3af)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x3af)],'joinEvent':_0x34338d['data'][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x3ec)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x34338d[_0x3b40e3(0x24b)]['data']};break;}case _0x55cc56['CollaborationEvent'][_0x3b40e3(0x2fa)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x2fa)],'liveShareOperation':_0x34338d[_0x3b40e3(0x24b)]['data']};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0xef)]:{_0x5d7663={'eventID':_0x55cc56['CollaborationEvent'][_0x3b40e3(0xef)],'liveShareTerminate':_0x34338d['data'][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x1df)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x1df)],'liveShareRequestHost':_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x243)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5d7663={'eventID':_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x109)]};}return JSON[_0x3b40e3(0x277)]({'cmd':_0x34338d[_0x3b40e3(0x197)],'routeKey':_0x34338d['routeKey'],'collaMsg':_0x5d7663});}case _0x360af6[_0x3b40e3(0x31b)]:return JSON[_0x3b40e3(0x277)]({'cmd':_0x34338d[_0x3b40e3(0x197)],'routeKey':_0x34338d[_0x3b40e3(0x34c)],'joinReq':_0x34338d[_0x3b40e3(0x24b)]});case _0x360af6[_0x3b40e3(0x246)]:return JSON[_0x3b40e3(0x277)]({'cmd':_0x34338d['cmd'],'routeKey':_0x34338d[_0x3b40e3(0x34c)],'leaveReq':_0x34338d[_0x3b40e3(0x24b)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x200581=Object['defineProperty'],_0x3b1e79=Object[_0x144fb0(0x457)],_0x1d5d6c=(_0x55666f,_0x1e7702,_0x3cb725,_0x336d24)=>{const _0x8e164=_0x144fb0;for(var _0x175df0=_0x336d24>0x1?void 0x0:_0x336d24?_0x3b1e79(_0x1e7702,_0x3cb725):_0x1e7702,_0x32902d=_0x55666f[_0x8e164(0x118)]-0x1,_0x382969;_0x32902d>=0x0;_0x32902d--)(_0x382969=_0x55666f[_0x32902d])&&(_0x175df0=(_0x336d24?_0x382969(_0x1e7702,_0x3cb725,_0x175df0):_0x382969(_0x175df0))||_0x175df0);return _0x336d24&&_0x175df0&&_0x200581(_0x1e7702,_0x3cb725,_0x175df0),_0x175df0;},_0x1f3355=(_0x2cdb0b,_0x37a813)=>(_0x281d8,_0x598df0)=>_0x37a813(_0x281d8,_0x598df0,_0x2cdb0b);const _0x194337=_0x20df93[_0x144fb0(0x4be)](_0x144fb0(0x465));function _0x4c0dff(_0xcbc0fe,_0x3da153,_0x1045b9){return _0xcbc0fe+'/'+_0x3da153+'/unit/'+_0x1045b9+'/new_changes';}_0x4c8f94[_0x144fb0(0xec)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x28ba54,_0x1b7352,_0x200361,_0x2f37e6,_0x5a7054){const _0x354ea7=_0x144fb0;super(),this['_http']=_0x28ba54,this[_0x354ea7(0x209)]=_0x1b7352,this[_0x354ea7(0x283)]=_0x200361,this[_0x354ea7(0x414)]=_0x2f37e6,this[_0x354ea7(0x158)]=_0x5a7054;}[_0x144fb0(0x11a)](_0xaa3c1){const _0x88f0de=_0x144fb0,_0x2503b8=this[_0x88f0de(0x209)][_0x88f0de(0x11a)](_0xaa3c1);if(!_0x2503b8)throw new Error(_0x88f0de(0x131));const _0x354ad9=new _0x20df93[(_0x88f0de(0x213))](),_0x1fe6b6=new _0x284d0[(_0x88f0de(0x12d))]();_0x354ad9['add'](_0x2503b8['close$'][_0x88f0de(0xda)](_0x33f3c3=>_0x1fe6b6[_0x88f0de(0x25d)](_0x33f3c3))),_0x354ad9[_0x88f0de(0x4bc)](_0x20df93[_0x88f0de(0x2cc)](()=>_0x1fe6b6[_0x88f0de(0x25e)]()));const _0x4af016=new _0x284d0[(_0x88f0de(0x12d))]();_0x354ad9[_0x88f0de(0x4bc)](_0x2503b8[_0x88f0de(0x148)]['subscribe'](_0x5db899=>_0x4af016[_0x88f0de(0x25d)](_0x5db899))),_0x354ad9[_0x88f0de(0x4bc)](_0x20df93['toDisposable'](()=>_0x4af016[_0x88f0de(0x25e)]()));const _0x56a8fa=new _0x284d0[(_0x88f0de(0x12d))]();_0x354ad9[_0x88f0de(0x4bc)](_0x2503b8[_0x88f0de(0x4a0)][_0x88f0de(0xda)](_0x1974f3=>{const _0x54f469=_0x88f0de,_0x5b742c=_0x441743(_0x1974f3);_0x56a8fa[_0x54f469(0x25d)](_0x5b742c);})),_0x354ad9[_0x88f0de(0x4bc)](_0x20df93[_0x88f0de(0x2cc)](()=>_0x56a8fa[_0x88f0de(0x25e)]()));let _0x38d7bf;const _0x3664da=()=>{const _0x4a0682=_0x88f0de;_0x4af016[_0x4a0682(0x25d)](new Event(_0x4a0682(0x11c))),_0x1fe6b6['next'](new CloseEvent(_0x4a0682(0x11c))),_0x38d7bf['close']();};return _0x38d7bf={'memberID':'','close$':_0x1fe6b6[_0x88f0de(0x17e)](),'error$':_0x4af016['asObservable'](),'open$':_0x2503b8[_0x88f0de(0x41c)],'message$':_0x56a8fa[_0x88f0de(0x17e)](),'send':_0x7f6304=>{const _0x577491=_0x88f0de;if(_0x7f6304[_0x577491(0x197)]===_0x360af6[_0x577491(0x48a)]){if(_0x7f6304[_0x577491(0x24b)][_0x577491(0x109)]===_0x55cc56[_0x577491(0xf4)][_0x577491(0x24f)]){this['_submitChangeset'](_0x38d7bf,_0x7f6304['data'])[_0x577491(0x37a)](_0x43254e=>{const _0x401c74=_0x577491;this[_0x401c74(0x414)][_0x401c74(0x37d)](_0x43254e),_0x3664da();});return;}if(_0x7f6304[_0x577491(0x24b)][_0x577491(0x109)]===_0x55cc56['CollaborationEvent'][_0x577491(0x47d)]){const _0x123eb3=_0x7f6304[_0x577491(0x24b)];this['_fetchMissChangesets'](_0x123eb3)[_0x577491(0x477)](_0x11b203=>{const _0x9d1ecf=_0x577491;_0x56a8fa[_0x9d1ecf(0x25d)]({'cmd':_0x360af6[_0x9d1ecf(0x312)],'code':_0x535ff4['OK'],'routeKey':_0x123eb3[_0x9d1ecf(0x24b)][_0x9d1ecf(0x239)],'routeType':'','data':{'eventID':_0x55cc56[_0x9d1ecf(0xf4)][_0x9d1ecf(0x1b9)],'data':{'changesets':_0x11b203}}});})[_0x577491(0x37a)](_0x39dfad=>{const _0x145868=_0x577491;this['_logService'][_0x145868(0x37d)](_0x39dfad),_0x3664da();});return;}}_0x2503b8[_0x577491(0x31c)](_0x2d1c74(_0x7f6304));},'close':()=>{const _0x16e6e1=_0x88f0de;_0x2503b8[_0x16e6e1(0x34e)](),_0x354ad9[_0x16e6e1(0x320)]();}},_0x38d7bf;}async['_submitChangeset'](_0x315386,_0x4f4fd1){const _0xa47fd4=_0x144fb0;var _0x5a59dd,_0x4ad031;const {unitType:_0x392d9a,unitID:_0x4bf2fb,changeset:_0x36580b}=_0x4f4fd1[_0xa47fd4(0x24b)],_0x5500aa={'unitID':_0x4bf2fb,'memberID':_0x315386['memberID'],'type':_0x392d9a,'changeset':_0x55cc56[_0xa47fd4(0x4b8)](_0x36580b)},_0x368f0b=this[_0xa47fd4(0x283)][_0xa47fd4(0x27c)](_0x546840),_0x409f29=this[_0xa47fd4(0x283)]['getConfig'](_0x53057b),_0x8c9bf0=_0x4c0dff((_0x4ad031=(_0x5a59dd=_0x409f29==null?void 0x0:_0x409f29[_0xa47fd4(0x2d8)])!=null?_0x5a59dd:_0x368f0b)!=null?_0x4ad031:_0xa3e801,_0x392d9a,_0x4bf2fb);try{await this[_0xa47fd4(0xf5)][_0xa47fd4(0x194)](_0x8c9bf0,{'body':_0x5500aa});}catch(_0x3322c2){throw this[_0xa47fd4(0x414)][_0xa47fd4(0x37d)](_0xa47fd4(0x32f),_0xa47fd4(0x375)),_0x3322c2;}}async[_0x144fb0(0x416)](_0x1c190b){const _0x3283e9=_0x144fb0,{unitID:_0x51953f,from:_0x5e0eca,to:_0xe276aa,unitType:_0x467e0e}=_0x1c190b[_0x3283e9(0x24b)];return(await this[_0x3283e9(0x158)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x51953f,'type':_0x467e0e,'from':_0x5e0eca,'to':_0xe276aa}))[_0x3283e9(0x316)];}},_0x4c8f94[_0x144fb0(0xec)]=_0x1d5d6c([_0x1f3355(0x0,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)])),_0x1f3355(0x1,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x470)])),_0x1f3355(0x2,_0x20df93[_0x144fb0(0x247)]),_0x1f3355(0x3,_0x20df93[_0x144fb0(0x1a2)]),_0x1f3355(0x4,_0x55cc56[_0x144fb0(0x449)])],_0x4c8f94[_0x144fb0(0xec)]);const _0x4ca916=_0x144fb0(0x41d);function _0x4edee0(_0xf1a9a6){const _0x4c1307=_0x144fb0;return JSON[_0x4c1307(0x277)](_0xf1a9a6)['length'];}class _0x2d13b9{constructor(){const _0x631508=_0x144fb0;_0x3e782f(this,'_commentUpdate$',new _0x284d0[(_0x631508(0x12d))]()),_0x3e782f(this,_0x631508(0x231),this[_0x631508(0x1dc)][_0x631508(0x17e)]());}['onCommentUpdate'](_0x43db49){const _0x385d0f=_0x144fb0;this['_commentUpdate$'][_0x385d0f(0x25d)](_0x43db49);}}var _0x36dca0=Object[_0x144fb0(0x395)],_0x6fcddb=Object[_0x144fb0(0x457)],_0x4a5349=(_0x36050b,_0x134a15,_0x58e2d8,_0x22d4ea)=>{const _0x119772=_0x144fb0;for(var _0x1a69ff=_0x22d4ea>0x1?void 0x0:_0x22d4ea?_0x6fcddb(_0x134a15,_0x58e2d8):_0x134a15,_0x201d9f=_0x36050b[_0x119772(0x118)]-0x1,_0x5a5f5b;_0x201d9f>=0x0;_0x201d9f--)(_0x5a5f5b=_0x36050b[_0x201d9f])&&(_0x1a69ff=(_0x22d4ea?_0x5a5f5b(_0x134a15,_0x58e2d8,_0x1a69ff):_0x5a5f5b(_0x1a69ff))||_0x1a69ff);return _0x22d4ea&&_0x1a69ff&&_0x36dca0(_0x134a15,_0x58e2d8,_0x1a69ff),_0x1a69ff;},_0x2bfd12=(_0x323b0c,_0x1a92b1)=>(_0x201cd6,_0x410610)=>_0x1a92b1(_0x201cd6,_0x410610,_0x323b0c);let _0x513006=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x3f713b,_0x4be1ca){const _0x23cfa9=_0x144fb0;super(),_0x3e782f(this,_0x23cfa9(0x2f0),new Map()),(this[_0x23cfa9(0xc8)]=_0x3f713b,this[_0x23cfa9(0x38c)]=_0x4be1ca,this[_0x23cfa9(0x397)](_0x20df93[_0x23cfa9(0x2cc)](_0x284d0['merge'](this[_0x23cfa9(0xc8)][_0x23cfa9(0x1a1)](_0x20df93['UniverInstanceType'][_0x23cfa9(0x4bf)])[_0x23cfa9(0x34d)](_0x3e7ea3[_0x23cfa9(0x296)](_0x1e4ce4=>_0x1e4ce4[_0x23cfa9(0x1fd)]())),this['_univerInstanceService'][_0x23cfa9(0x1a1)](_0x20df93[_0x23cfa9(0x441)][_0x23cfa9(0x126)])[_0x23cfa9(0x34d)](_0x3e7ea3[_0x23cfa9(0x296)](_0x55819b=>_0x55819b[_0x23cfa9(0x1fd)]())),this['_univerInstanceService'][_0x23cfa9(0x1a1)](_0x20df93[_0x23cfa9(0x441)][_0x23cfa9(0x3c0)])[_0x23cfa9(0x34d)](_0x3e7ea3['map'](_0x2bf633=>_0x2bf633[_0x23cfa9(0x1fd)]())))[_0x23cfa9(0xda)](_0x337113=>this[_0x23cfa9(0x3ed)](_0x337113)))));}[_0x144fb0(0x1a8)](_0x4a8911){const _0x324697=_0x144fb0;this[_0x324697(0x38c)]['setCurrentUser'](_0x4a8911);}['getCurrentUser'](){const _0x3052b3=_0x144fb0;return this[_0x3052b3(0x38c)][_0x3052b3(0x411)]();}[_0x144fb0(0x3b9)](_0x5c5c91,_0x4c1dcf){const _0x494e1d=_0x144fb0;let _0x5e52c7=this[_0x494e1d(0x2f0)]['get'](_0x5c5c91);_0x5e52c7||(_0x5e52c7=new _0x52019b(),this[_0x494e1d(0x2f0)][_0x494e1d(0x271)](_0x5c5c91,_0x5e52c7)),_0x5e52c7[_0x494e1d(0x3b9)](_0x4c1dcf);}[_0x144fb0(0x280)](_0xc80015,_0x1736c3){const _0x3c60c9=_0x144fb0,_0x4d0466=this['_roomMembers'][_0x3c60c9(0x3b8)](_0xc80015);_0x4d0466&&_0x4d0466['removeMember'](_0x1736c3);}['getRoom'](_0x3b4abf){const _0x549e49=_0x144fb0;return this[_0x549e49(0x2f0)]['get'](_0x3b4abf);}[_0x144fb0(0x93)](_0x3b0006,_0x13e39b){const _0x4fe92e=_0x144fb0,_0x5afdc7=this[_0x4fe92e(0x2f0)][_0x4fe92e(0x3b8)](_0x3b0006);if(_0x5afdc7)return _0x5afdc7[_0x4fe92e(0x93)](_0x13e39b);}['_removeRoom'](_0xd1c992){const _0x40090c=_0x144fb0,_0x482b35=this['_roomMembers'][_0x40090c(0x3b8)](_0xd1c992);_0x482b35&&(_0x482b35[_0x40090c(0x320)](),this[_0x40090c(0x2f0)]['delete'](_0xd1c992));}[_0x144fb0(0x320)](){const _0x45af9e=_0x144fb0;this['_roomMembers'][_0x45af9e(0x478)](_0x434eed=>_0x434eed[_0x45af9e(0x320)]()),this[_0x45af9e(0x2f0)][_0x45af9e(0xb4)]();}};_0x513006=_0x4a5349([_0x2bfd12(0x0,_0x20df93['IUniverInstanceService']),_0x2bfd12(0x1,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x49c)]))],_0x513006);class _0x52019b extends _0x20df93[_0x144fb0(0x343)]{constructor(){const _0x475173=_0x144fb0;super(...arguments),_0x3e782f(this,_0x475173(0x42d),new Map());}[_0x144fb0(0x320)](){const _0xd40c4b=_0x144fb0;this['_members'][_0xd40c4b(0xb4)]();}[_0x144fb0(0x3b9)](_0x1163c3){const _0x4ab0bc=_0x144fb0;this[_0x4ab0bc(0x42d)][_0x4ab0bc(0x271)](_0x1163c3[_0x4ab0bc(0x173)],_0x1163c3);}[_0x144fb0(0x280)](_0x5922e0){const _0x1cabcf=_0x144fb0;this[_0x1cabcf(0x42d)][_0x1cabcf(0x32d)](_0x5922e0);}[_0x144fb0(0x93)](_0x306614){const _0x194c98=_0x144fb0;return this[_0x194c98(0x42d)][_0x194c98(0x3b8)](_0x306614);}}var _0x3616b3=Object['defineProperty'],_0x15632b=Object['getOwnPropertyDescriptor'],_0x107985=(_0x466821,_0x2d022e,_0x5b7248,_0x3e599d)=>{for(var _0x54156f=_0x3e599d>0x1?void 0x0:_0x3e599d?_0x15632b(_0x2d022e,_0x5b7248):_0x2d022e,_0x5babda=_0x466821['length']-0x1,_0xdc89d9;_0x5babda>=0x0;_0x5babda--)(_0xdc89d9=_0x466821[_0x5babda])&&(_0x54156f=(_0x3e599d?_0xdc89d9(_0x2d022e,_0x5b7248,_0x54156f):_0xdc89d9(_0x54156f))||_0x54156f);return _0x3e599d&&_0x54156f&&_0x3616b3(_0x2d022e,_0x5b7248,_0x54156f),_0x54156f;},_0x17aa41=(_0x22c98b,_0x13245e)=>(_0x4711a0,_0xfc9967)=>_0x13245e(_0x4711a0,_0xfc9967,_0x22c98b),_0x4d48e1=(_0x59bcbb=>(_0x59bcbb[_0x59bcbb[_0x144fb0(0x1d7)]=0x0]=_0x144fb0(0x1d7),_0x59bcbb[_0x59bcbb[_0x144fb0(0x37f)]=0x1]=_0x144fb0(0x37f),_0x59bcbb[_0x59bcbb['OFFLINE']=0x2]=_0x144fb0(0x2d5),_0x59bcbb[_0x59bcbb[_0x144fb0(0x16b)]=0x3]=_0x144fb0(0x16b),_0x59bcbb))(_0x4d48e1||{});_0x4c8f94['CollaborationSession']=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x339a8b,_0x1db55b,_0x22fc74,_0x527125,_0xd7a384,_0x3fc79e,_0x2d8b31,_0x199426,_0x31e1e1,_0x107e1e){const _0x3a67cf=_0x144fb0;super(),_0x3e782f(this,_0x3a67cf(0x402),new _0x284d0['BehaviorSubject'](0x0)),_0x3e782f(this,_0x3a67cf(0x48d),this[_0x3a67cf(0x402)][_0x3a67cf(0x17e)]()),_0x3e782f(this,_0x3a67cf(0x3a5),new _0x284d0[(_0x3a67cf(0x12d))]()),_0x3e782f(this,_0x3a67cf(0x435),this[_0x3a67cf(0x3a5)][_0x3a67cf(0x17e)]()),_0x3e782f(this,_0x3a67cf(0x427)),_0x3e782f(this,_0x3a67cf(0x3ff)),_0x3e782f(this,_0x3a67cf(0x37e)),_0x3e782f(this,_0x3a67cf(0x346),!0x1),_0x3e782f(this,_0x3a67cf(0x179),null),(this['_unitID']=_0x339a8b,this[_0x3a67cf(0x414)]=_0x22fc74,this[_0x3a67cf(0xb5)]=_0x527125,this[_0x3a67cf(0x2ac)]=_0xd7a384,this[_0x3a67cf(0x283)]=_0x3fc79e,this['_localeService']=_0x2d8b31,this[_0x3a67cf(0x486)]=_0x199426,this[_0x3a67cf(0x460)]=_0x31e1e1,this[_0x3a67cf(0x333)]=_0x107e1e,this[_0x3a67cf(0x346)]=!!this['_telemetryService'],_0x1db55b['pipe'](_0x284d0[_0x3a67cf(0xa0)](this['dispose$']))['subscribe'](_0x4ff9be=>{const _0x4eb460=_0x3a67cf;var _0x2263da;typeof _0x4ff9be>'u'||(this['_socket']=_0x4ff9be,_0x4ff9be?(this[_0x4eb460(0x44a)](_0x4ff9be),this[_0x4eb460(0x3ff)]=_0x4ff9be[_0x4eb460(0x4a0)][_0x4eb460(0xda)](_0xbbeaae=>{const _0x2c495f=_0x4eb460;_0xbbeaae[_0x2c495f(0x34c)]===this[_0x2c495f(0x2fd)]&&this['_onCombEvent'](_0xbbeaae);})):(this[_0x4eb460(0x329)](),this[_0x4eb460(0x402)][_0x4eb460(0x25d)](0x2),(_0x2263da=this[_0x4eb460(0x3ff)])==null||_0x2263da[_0x4eb460(0x128)](),this[_0x4eb460(0x3ff)]=null));}),this[_0x3a67cf(0x397)](this[_0x3a67cf(0xb5)][_0x3a67cf(0x2e8)](()=>{const _0x10afca=_0x3a67cf;var _0x2dc313;(_0x2dc313=this[_0x10afca(0x427)])==null||_0x2dc313[_0x10afca(0x31c)]({'cmd':_0x360af6[_0x10afca(0x246)],'data':{'roomID':this[_0x10afca(0x2fd)]}});})));}get[_0x144fb0(0x1e7)](){const _0x30a150=_0x144fb0;return this['_sessionStatus$'][_0x30a150(0x183)]();}[_0x144fb0(0x483)](){const _0x37247b=_0x144fb0;var _0x425387,_0xd9c009;return(_0xd9c009=(_0x425387=this[_0x37247b(0x427)])==null?void 0x0:_0x425387[_0x37247b(0x173)])!=null?_0xd9c009:null;}[_0x144fb0(0x320)](){const _0x190e52=_0x144fb0;super['dispose'](),this['dispose$']['next'](),this['dispose$'][_0x190e52(0x25e)]();}['close'](){const _0x401f87=_0x144fb0;var _0x4ab8fa,_0x156c4e;this[_0x401f87(0x329)](),(_0x4ab8fa=this[_0x401f87(0x427)])==null||_0x4ab8fa[_0x401f87(0x31c)]({'cmd':_0x360af6[_0x401f87(0x246)],'data':{'roomID':this[_0x401f87(0x2fd)]}}),(_0x156c4e=this[_0x401f87(0x427)])==null||_0x156c4e[_0x401f87(0x34e)](),this[_0x401f87(0x3a5)]['complete'](),this['_sessionStatus$'][_0x401f87(0x25e)](),this[_0x401f87(0x320)]();}[_0x144fb0(0x27e)](_0x5b57c6){const _0x328944=_0x144fb0;_0x5b57c6[_0x328944(0x197)]===_0x360af6['JOIN']?this['_onJoinRoomEvent'](_0x5b57c6):_0x5b57c6['cmd']===_0x360af6[_0x328944(0x312)]&&this['_onRecvEvent'](_0x5b57c6);}[_0x144fb0(0x44a)](_0x439683){const _0x197cba=_0x144fb0;this[_0x197cba(0x402)][_0x197cba(0x25d)](0x1),_0x439683[_0x197cba(0x31c)]({'cmd':_0x360af6[_0x197cba(0x31b)],'routeKey':this[_0x197cba(0x2fd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x197cba(0x2fd)]}]}});}[_0x144fb0(0x268)](_0x58fd86){const _0x96166d=_0x144fb0;var _0xd4354c;if(_0x58fd86['code']===_0x535ff4[_0x96166d(0x422)]){this[_0x96166d(0x2ac)]['show']({'type':_0x3206ad['MessageType'][_0x96166d(0x1d9)],'content':this[_0x96166d(0x208)]['t'](_0x96166d(0x1f2))}),this[_0x96166d(0x402)][_0x96166d(0x25d)](0x2);return;}this[_0x96166d(0x402)][_0x96166d(0x25d)](0x3);const _0x4bc1d8=(_0xd4354c=_0x58fd86['data']['roomInfos'][this[_0x96166d(0x2fd)]])==null?void 0x0:_0xd4354c[_0x96166d(0x369)];_0x4bc1d8&&_0x4bc1d8['forEach'](_0x19b0fc=>this[_0x96166d(0x486)][_0x96166d(0x3b9)](this[_0x96166d(0x2fd)],_0x19b0fc));}[_0x144fb0(0x234)](_0x290f2e){const _0x3f65df=_0x144fb0;try{const _0x4ced66=_0x290f2e[_0x3f65df(0x24b)];switch(_0x4ced66[_0x3f65df(0x109)]){case _0x55cc56['CollaborationEvent'][_0x3f65df(0x3af)]:this[_0x3f65df(0x242)](_0x4ced66),this[_0x3f65df(0x3a5)][_0x3f65df(0x25d)](_0x4ced66);break;case _0x55cc56[_0x3f65df(0xf4)][_0x3f65df(0x177)]:this['_onUserLeave'](_0x4ced66),this['_event$'][_0x3f65df(0x25d)](_0x4ced66);break;case _0x55cc56['CollaborationEvent'][_0x3f65df(0x244)]:this[_0x3f65df(0x42b)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x3f65df(0x25d)](_0x4ced66);break;case _0x55cc56['CollaborationEvent'][_0x3f65df(0x360)]:this[_0x3f65df(0x414)][_0x3f65df(0x37d)](_0x3f65df(0x19c)+JSON['stringify'](_0x4ced66)),this[_0x3f65df(0x3a5)]['next'](_0x4ced66);break;case _0x55cc56['CollaborationEvent']['COMMENT_UPDATE']:this[_0x3f65df(0x460)][_0x3f65df(0x48c)](_0x4ced66[_0x3f65df(0x24b)]),this['_event$']['next'](_0x4ced66);break;default:this[_0x3f65df(0x3a5)][_0x3f65df(0x25d)](_0x4ced66);}}catch(_0x538996){this[_0x3f65df(0x414)][_0x3f65df(0x37d)](_0x538996,_0x290f2e);}}[_0x144fb0(0x242)](_0x1dca12){const _0x5d0524=_0x144fb0;this['_memberService'][_0x5d0524(0x3b9)](this[_0x5d0524(0x2fd)],_0x1dca12[_0x5d0524(0x24b)]);}[_0x144fb0(0x1ce)](_0x5ed030){const _0x3127c8=_0x144fb0;this[_0x3127c8(0x486)][_0x3127c8(0x280)](this['_unitID'],_0x5ed030['data'][_0x3127c8(0x173)]);}async['send'](_0x5043a2,_0x34d0b5){const _0x49acf6=_0x144fb0;if(this['sessionStatus']!==0x3||!this[_0x49acf6(0x427)])throw new Error(_0x49acf6(0x38d));try{_0x5043a2[_0x49acf6(0x109)]===_0x55cc56['CollaborationEvent'][_0x49acf6(0x24f)]&&(this[_0x49acf6(0x10d)](),this[_0x49acf6(0x113)](_0x5043a2)),this[_0x49acf6(0x427)]['send']({'cmd':_0x360af6['INGEST'],'routeKey':_0x34d0b5,'routeType':'','data':_0x5043a2});}catch(_0x5697ee){this[_0x49acf6(0x414)]['error'](_0x5697ee);}}[_0x144fb0(0x10d)](){const _0x19c144=_0x144fb0;var _0xbd3e1;this[_0x19c144(0x37e)]=window[_0x19c144(0x233)](()=>{const _0x4cd42a=_0x19c144;this[_0x4cd42a(0x37e)]=null,this[_0x4cd42a(0x2ac)]['show']({'type':_0x3206ad['MessageType']['Error'],'content':this[_0x4cd42a(0x208)]['t'](_0x4cd42a(0x44b))});},(_0xbd3e1=this[_0x19c144(0x283)][_0x19c144(0x27c)](_0x16ecf3))!=null?_0xbd3e1:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x3bb628=_0x144fb0;this[_0x3bb628(0x37e)]&&(clearTimeout(this[_0x3bb628(0x37e)]),this[_0x3bb628(0x37e)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x3d1d53){const _0x16e7cd=_0x144fb0;if(!this[_0x16e7cd(0x346)])return;const {data:_0x4e6b93}=_0x3d1d53,{unitID:_0x14a4ad,changeset:_0xca276c}=_0x4e6b93,{mutations:_0x33c3e4,type:_0x4e53fb}=_0xca276c;this[_0x16e7cd(0x179)]={'unitId':_0x14a4ad,'type':_0x4e53fb,'startTime':performance[_0x16e7cd(0x1f6)](),'stopTime':0x0,'duration':0x0,'size':_0x4edee0(_0x33c3e4)};}[_0x144fb0(0x42b)](){const _0x1ae2a6=_0x144fb0;if(this[_0x1ae2a6(0x346)]){if(!this[_0x1ae2a6(0x179)]){this[_0x1ae2a6(0x414)][_0x1ae2a6(0x37d)](_0x1ae2a6(0x32f),_0x1ae2a6(0x448));return;}this[_0x1ae2a6(0x179)][_0x1ae2a6(0x241)]=performance['now'](),this[_0x1ae2a6(0x179)]['duration']=this['_telemetryInfo'][_0x1ae2a6(0x241)]-this['_telemetryInfo'][_0x1ae2a6(0x143)],this[_0x1ae2a6(0x333)][_0x1ae2a6(0x13b)](_0x4ca916,this[_0x1ae2a6(0x179)]),this[_0x1ae2a6(0x179)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},_0x4c8f94[_0x144fb0(0x235)]=_0x107985([_0x17aa41(0x2,_0x20df93[_0x144fb0(0x1a2)]),_0x17aa41(0x3,_0x40b1aa['IBeforeCloseService']),_0x17aa41(0x4,_0x40b1aa[_0x144fb0(0x3fe)]),_0x17aa41(0x5,_0x20df93['IConfigService']),_0x17aa41(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x17aa41(0x7,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0x17aa41(0x8,_0x20df93['Inject'](_0x2d13b9)),_0x17aa41(0x9,_0x20df93[_0x144fb0(0x44e)](_0x54d2b5[_0x144fb0(0x23a)]))],_0x4c8f94['CollaborationSession']);var _0xd7b217=Object[_0x144fb0(0x395)],_0x1a1139=Object[_0x144fb0(0x457)],_0x5e97e1=(_0x4b3695,_0x10dbf7,_0x274041,_0x541ece)=>{const _0x5465c0=_0x144fb0;for(var _0x163f41=_0x541ece>0x1?void 0x0:_0x541ece?_0x1a1139(_0x10dbf7,_0x274041):_0x10dbf7,_0x2edf98=_0x4b3695[_0x5465c0(0x118)]-0x1,_0x2f75f7;_0x2edf98>=0x0;_0x2edf98--)(_0x2f75f7=_0x4b3695[_0x2edf98])&&(_0x163f41=(_0x541ece?_0x2f75f7(_0x10dbf7,_0x274041,_0x163f41):_0x2f75f7(_0x163f41))||_0x163f41);return _0x541ece&&_0x163f41&&_0xd7b217(_0x10dbf7,_0x274041,_0x163f41),_0x163f41;},_0x3a1e06=(_0x15d17d,_0x439b21)=>(_0x3ca2db,_0x4a3852)=>_0x439b21(_0x3ca2db,_0x4a3852,_0x15d17d);_0x4c8f94[_0x144fb0(0x491)]=class extends _0x20df93['Disposable']{constructor(_0x23ff0e,_0x58d011,_0x31b136,_0x3a8932,_0x3f6763,_0xfa4077){const _0x167b76=_0x144fb0;super(),_0x3e782f(this,'_socket$',new _0x284d0['BehaviorSubject'](void 0x0)),_0x3e782f(this,_0x167b76(0x497),this[_0x167b76(0x44f)][_0x167b76(0x17e)]()),_0x3e782f(this,_0x167b76(0x41e),null),_0x3e782f(this,'_sessions',new Map()),_0x3e782f(this,'_status$',new _0x284d0[(_0x167b76(0x237))](_0x4d48e1[_0x167b76(0x1d7)])),_0x3e782f(this,_0x167b76(0x4c2),this[_0x167b76(0x2c7)][_0x167b76(0x17e)]()),_0x3e782f(this,_0x167b76(0x1fb),!0x1),_0x3e782f(this,'_retryConnectingTimer'),_0x3e782f(this,'_retryCount',0x0),_0x3e782f(this,_0x167b76(0x2a7)),_0x3e782f(this,'_timeoutTimer'),(this[_0x167b76(0x2fc)]=_0x23ff0e,this[_0x167b76(0x208)]=_0x58d011,this[_0x167b76(0x2ac)]=_0x31b136,this[_0x167b76(0x414)]=_0x3a8932,this['_configService']=_0x3f6763,this[_0x167b76(0x3c4)]=_0xfa4077,this[_0x167b76(0x3b3)]());}get[_0x144fb0(0x427)](){const _0x20033d=_0x144fb0;return this[_0x20033d(0x44f)][_0x20033d(0x183)]();}[_0x144fb0(0x3b3)](){const _0x713295=_0x144fb0;this['_listenToOfflineEvent'](),this[_0x713295(0x45c)]();}['dispose'](){const _0x181dc5=_0x144fb0;super[_0x181dc5(0x320)](),this[_0x181dc5(0x2c1)][_0x181dc5(0x478)](_0x33dee0=>_0x33dee0[_0x181dc5(0x320)]()),this[_0x181dc5(0x2c1)]['clear'](),this[_0x181dc5(0x2c7)][_0x181dc5(0x25e)]();}async[_0x144fb0(0x24e)](_0x3031f7){const _0x34748a=_0x144fb0;if(this[_0x34748a(0x2c1)][_0x34748a(0x26d)](_0x3031f7))return this[_0x34748a(0x2c1)][_0x34748a(0x3b8)](_0x3031f7);this['_tryEnsureSocket']();const _0x30909d=this['_injector'][_0x34748a(0x2f6)](_0x4c8f94['CollaborationSession'],_0x3031f7,this[_0x34748a(0x44f)]['asObservable']());return this[_0x34748a(0x2c1)]['set'](_0x3031f7,_0x30909d),_0x30909d;}[_0x144fb0(0x328)](_0x286823){const _0xff6a2f=_0x144fb0;var _0x594f11;const _0x31f123=this[_0xff6a2f(0x2c1)]['get'](_0x286823);_0x31f123&&(this[_0xff6a2f(0x2c1)][_0xff6a2f(0x32d)](_0x286823),_0x31f123[_0xff6a2f(0x34e)]()),this[_0xff6a2f(0x2c1)][_0xff6a2f(0x332)]||(_0x594f11=this['_socket'])==null||_0x594f11[_0xff6a2f(0x34e)]();}[_0x144fb0(0x3ae)](){const _0x7ba4cf=_0x144fb0;this[_0x7ba4cf(0x1aa)]=0x0,this[_0x7ba4cf(0x485)]!=null&&(clearTimeout(this[_0x7ba4cf(0x485)]),this[_0x7ba4cf(0x485)]=null),this[_0x7ba4cf(0x1e1)]();}[_0x144fb0(0x1de)](){const _0x512c2c=_0x144fb0;var _0x349ba7,_0x23bb65;const _0x37a932=this[_0x512c2c(0x283)]['getConfig'](_0x3c9b9d),_0x45dc3d=this[_0x512c2c(0x283)][_0x512c2c(0x27c)](_0x53057b),_0x23d16c=(_0x23bb65=(_0x349ba7=_0x45dc3d==null?void 0x0:_0x45dc3d['collabWebSocketUrl'])!=null?_0x349ba7:_0x37a932)!=null?_0x23bb65:_0x6d4581,_0x5eddb8=this[_0x512c2c(0x3c4)][_0x512c2c(0x11a)](_0x23d16c);return this[_0x512c2c(0x41e)]=_0x5eddb8,_0x5eddb8;}[_0x144fb0(0x127)](){const _0x40ea6d=_0x144fb0;var _0x75cc3b,_0x2e53be;try{const _0x5b2db9=(_0x2e53be=(_0x75cc3b=this[_0x40ea6d(0x427)])!=null?_0x75cc3b:this[_0x40ea6d(0x41e)])!=null?_0x2e53be:this[_0x40ea6d(0x1de)]();if(_0x5b2db9){const _0x33ba45=_0x5b2db9[_0x40ea6d(0x31c)];_0x5b2db9[_0x40ea6d(0x31c)]=_0x1667de=>(this['_rescheduleHeartbeat'](),_0x33ba45[_0x40ea6d(0x3b5)](_0x5b2db9,[_0x1667de])),_0x5b2db9[_0x40ea6d(0x4a0)]['subscribe'](_0x375bc9=>this[_0x40ea6d(0x225)](_0x5b2db9,_0x375bc9)),_0x5b2db9[_0x40ea6d(0x148)][_0x40ea6d(0x34d)](_0x3e7ea3[_0x40ea6d(0x2c9)](0x1))[_0x40ea6d(0xda)](_0x1f870a=>this[_0x40ea6d(0x414)][_0x40ea6d(0x37d)]('[CollaborationSessionService]:\x20socket\x20error',_0x1f870a)),_0x5b2db9['open$'][_0x40ea6d(0x34d)](_0x3e7ea3[_0x40ea6d(0x2c9)](0x1))[_0x40ea6d(0xda)](()=>{const _0x1bd87e=_0x40ea6d;this[_0x1bd87e(0xd7)](_0x5b2db9);}),_0x5b2db9[_0x40ea6d(0x214)][_0x40ea6d(0x34d)](_0x3e7ea3['take'](0x1))[_0x40ea6d(0xda)](_0x5980a9=>{const _0xe76264=_0x40ea6d;this[_0xe76264(0x414)][_0xe76264(0xd6)](_0xe76264(0x13c),_0xe76264(0x379),_0x5980a9),this[_0xe76264(0x33e)]();});}}catch(_0x518eab){this[_0x40ea6d(0x414)][_0x40ea6d(0x37d)](_0x518eab),this[_0x40ea6d(0x33e)]();}}[_0x144fb0(0xd7)](_0x3fac52){const _0x5e5cb6=_0x144fb0;this[_0x5e5cb6(0x414)][_0x5e5cb6(0xd6)](_0x5e5cb6(0x13c),_0x5e5cb6(0x46c)),_0x3fac52[_0x5e5cb6(0x31c)]({'cmd':_0x360af6[_0x5e5cb6(0x1db)]}),this[_0x5e5cb6(0x2c8)]();}[_0x144fb0(0x1e6)](){const _0x542271=_0x144fb0;window['addEventListener'](_0x542271(0xfc),()=>this[_0x542271(0x25c)]());}[_0x144fb0(0x25c)](){const _0x4d0086=_0x144fb0;this['_socketReady']=!0x1,this[_0x4d0086(0x41e)]=null,this[_0x4d0086(0x2c7)][_0x4d0086(0x25d)](_0x4d48e1['OFFLINE']),this[_0x4d0086(0x44f)][_0x4d0086(0x25d)](null),this[_0x4d0086(0x1c6)](),this[_0x4d0086(0x3cf)]();}[_0x144fb0(0x33e)](){const _0x539acd=_0x144fb0;var _0x58986d;this['_onOffline'](),this[_0x539acd(0x1aa)]<((_0x58986d=this['_configService'][_0x539acd(0x27c)](_0x30e871))!=null?_0x58986d:0x3)?(this[_0x539acd(0x2ac)][_0x539acd(0x429)]({'key':_0x539acd(0x21e),'type':_0x3206ad[_0x539acd(0x43e)]['Warning'],'content':this[_0x539acd(0x208)]['t'](_0x539acd(0xd4))}),this[_0x539acd(0x1e1)]()):this[_0x539acd(0x2ac)]['show']({'key':_0x539acd(0x21e),'type':_0x3206ad['MessageType'][_0x539acd(0x290)],'content':this[_0x539acd(0x208)]['t']('session.connection-failed')});}[_0x144fb0(0x45c)](){const _0x22af28=_0x144fb0,_0x5d86c5=()=>{const _0x4c3b14=_0x205f;this[_0x4c3b14(0x427)]||this[_0x4c3b14(0x3ae)]();},_0x429d0d=()=>{const _0x39f218=_0x205f;this[_0x39f218(0x427)]||document[_0x39f218(0x1bb)]==='hidden'||this[_0x39f218(0x3ae)]();};window[_0x22af28(0x357)](_0x22af28(0x1ee),_0x5d86c5),document['addEventListener'](_0x22af28(0x14e),_0x429d0d);}[_0x144fb0(0x1e1)](){const _0x47bc01=_0x144fb0;var _0x1e6504;const _0x51d06a=this['_retryCount'],_0x4c4881=this['_configService'][_0x47bc01(0x27c)](_0x53057b),_0x516188=_0x51d06a===0x0?0x0:((_0x1e6504=_0x4c4881==null?void 0x0:_0x4c4881['retryConnectingInterval'])!=null?_0x1e6504:0x4e20)*0x2**_0x51d06a;this['_retryConnectingTimer']=window[_0x47bc01(0x233)](()=>{const _0x4d32b0=_0x47bc01;clearTimeout(this[_0x4d32b0(0x485)]),this['_retryConnectingTimer']=null,this[_0x4d32b0(0x127)]();},_0x516188),this['_retryCount']+=0x1;}['_onMessage'](_0x5cb69a,_0x41f06f){const _0x5f1523=_0x144fb0,{cmd:_0x2fb57f}=_0x41f06f;_0x2fb57f===_0x360af6[_0x5f1523(0x1db)]&&!this[_0x5f1523(0x1fb)]&&(_0x5cb69a[_0x5f1523(0x173)]=_0x41f06f[_0x5f1523(0x24b)][_0x5f1523(0x173)],this[_0x5f1523(0x44f)][_0x5f1523(0x25d)](_0x5cb69a),this['_status$']['next'](_0x4d48e1[_0x5f1523(0x16b)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x2fb57f===_0x360af6[_0x5f1523(0x3fd)]&&this[_0x5f1523(0x1c6)](),this[_0x5f1523(0x2c8)]();}[_0x144fb0(0x2c8)](){const _0x54a887=_0x144fb0;var _0x25a571;this[_0x54a887(0x3cf)](),this['_sendHeartbeatTimer']=window[_0x54a887(0x233)](()=>this[_0x54a887(0x415)](),(_0x25a571=this[_0x54a887(0x283)][_0x54a887(0x27c)](_0x4ffc98))!=null?_0x25a571:0x7530);}[_0x144fb0(0x415)](){const _0x31ea07=_0x144fb0;this[_0x31ea07(0x427)][_0x31ea07(0x31c)]({'cmd':_0x360af6[_0x31ea07(0x3fd)]}),this[_0x31ea07(0x119)]();}[_0x144fb0(0x119)](){const _0x242d84=_0x144fb0;var _0x349d23;this[_0x242d84(0x91)]=window[_0x242d84(0x233)](()=>this[_0x242d84(0x33e)](),(_0x349d23=this[_0x242d84(0x283)][_0x242d84(0x27c)](_0x16ecf3))!=null?_0x349d23:0x4e20);}[_0x144fb0(0x3cf)](){const _0x4e2e68=_0x144fb0;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4e2e68(0x2a7)]),this[_0x4e2e68(0x2a7)]=null);}[_0x144fb0(0x1c6)](){const _0x293a1f=_0x144fb0;this[_0x293a1f(0x91)]!=null&&(clearTimeout(this[_0x293a1f(0x91)]),this[_0x293a1f(0x91)]=null);}},_0x4c8f94[_0x144fb0(0x491)]=_0x5e97e1([_0x3a1e06(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x3a1e06(0x1,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x3a1e06(0x2,_0x40b1aa[_0x144fb0(0x3fe)]),_0x3a1e06(0x3,_0x20df93[_0x144fb0(0x1a2)]),_0x3a1e06(0x4,_0x20df93[_0x144fb0(0x247)]),_0x3a1e06(0x5,_0x194337)],_0x4c8f94[_0x144fb0(0x491)]);var _0x41606f=Object[_0x144fb0(0x395)],_0x433de5=Object[_0x144fb0(0x457)],_0x5a7070=(_0xec2c06,_0x31c124,_0x3fa4af,_0x495a0a)=>{const _0x412585=_0x144fb0;for(var _0x20a617=_0x495a0a>0x1?void 0x0:_0x495a0a?_0x433de5(_0x31c124,_0x3fa4af):_0x31c124,_0x310e97=_0xec2c06[_0x412585(0x118)]-0x1,_0x2d2cc9;_0x310e97>=0x0;_0x310e97--)(_0x2d2cc9=_0xec2c06[_0x310e97])&&(_0x20a617=(_0x495a0a?_0x2d2cc9(_0x31c124,_0x3fa4af,_0x20a617):_0x2d2cc9(_0x20a617))||_0x20a617);return _0x495a0a&&_0x20a617&&_0x41606f(_0x31c124,_0x3fa4af,_0x20a617),_0x20a617;},_0x1f1028=(_0x56cb26,_0x5b2a4e)=>(_0x37d7bc,_0x1faabd)=>_0x5b2a4e(_0x37d7bc,_0x1faabd,_0x56cb26);let _0x57c1cf=class{constructor(_0x7e20d3,_0x5f0003,_0x54bfe1){const _0x5a3c0e=_0x144fb0;this[_0x5a3c0e(0x2fc)]=_0x7e20d3,this[_0x5a3c0e(0x3dd)]=_0x5f0003,this[_0x5a3c0e(0x2f9)]=_0x54bfe1;}[_0x144fb0(0xa1)](_0x214703){const _0x4faaeb=_0x144fb0;this[_0x4faaeb(0x3a0)](_0x214703),this[_0x4faaeb(0xb6)](_0x214703);}[_0x144fb0(0x418)](_0x461f88){const _0xfcea0d=_0x144fb0,{unitID:_0x2895a0}=_0x461f88,_0x52ef49=this[_0xfcea0d(0x2f9)][_0xfcea0d(0x468)](_0x2895a0)[_0xfcea0d(0x8b)](_0x3b39ef['DocIMEInputManagerService']),{redoCache:_0x1b97f0}=_0x52ef49[_0xfcea0d(0x30b)]();if(_0x1b97f0[_0xfcea0d(0x118)]===0x0)return _0x461f88;let _0x38f67e=_0x20df93[_0xfcea0d(0x1c4)][_0xfcea0d(0x200)](_0x461f88[_0xfcea0d(0x366)][0x0]);for(let _0x56d24d=0x0;_0x56d24d<_0x1b97f0[_0xfcea0d(0x118)];_0x56d24d++){const _0x1c641f={'id':_0xfcea0d(0xbb),'params':{..._0x1b97f0[_0x56d24d]}},_0x516417=this[_0xfcea0d(0x3dd)][_0xfcea0d(0x469)](_0x38f67e,_0x1c641f,!0x1);if(_0x55cc56[_0xfcea0d(0x387)](_0x516417))throw _0x516417['error'];_0x38f67e=_0x516417[_0xfcea0d(0x189)];}return{..._0x20df93[_0xfcea0d(0x1c4)][_0xfcea0d(0x200)](_0x461f88),'mutations':[_0x38f67e]};}[_0x144fb0(0x3a0)](_0x4e30cf){const _0x272453=_0x144fb0,{unitID:_0x23bac7}=_0x4e30cf,_0x536310=this[_0x272453(0x2f9)][_0x272453(0x468)](_0x23bac7)[_0x272453(0x8b)](_0x3b39ef['DocIMEInputManagerService']),{undoCache:_0x539302,redoCache:_0x18cceb}=_0x536310['getUndoRedoMutationParamsCache']();if(_0x539302['length']===0x0||_0x18cceb[_0x272453(0x118)]===0x0)return;const _0x5f009e=[],_0x20dc90=[];let _0x4e34d3=_0x20df93['Tools'][_0x272453(0x200)](_0x4e30cf[_0x272453(0x366)][0x0]),_0x1fe011=_0x20df93[_0x272453(0x1c4)]['deepClone'](_0x4e30cf[_0x272453(0x366)][0x0]);for(let _0x4e7604=_0x539302['length']-0x1;_0x4e7604>=0x0;_0x4e7604--){const _0x129931={'id':'doc.mutation.rich-text-editing','params':{..._0x539302[_0x4e7604]}},_0x561031={'id':'doc.mutation.rich-text-editing','params':{..._0x18cceb[_0x4e7604]}},_0x584d17=this[_0x272453(0x3dd)][_0x272453(0x469)](_0x4e34d3,_0x129931,!0x1),_0x670229=this[_0x272453(0x3dd)]['transformMutation'](_0x1fe011,_0x561031,!0x1);if(_0x55cc56[_0x272453(0x387)](_0x584d17))throw _0x584d17[_0x272453(0x37d)];if(_0x55cc56['isTransformMutationFailure'](_0x670229))throw _0x670229[_0x272453(0x37d)];_0x5f009e['unshift'](_0x584d17[_0x272453(0x171)][_0x272453(0xa3)]),_0x20dc90[_0x272453(0x92)](_0x670229[_0x272453(0x171)][_0x272453(0xa3)]),_0x4e34d3=_0x584d17[_0x272453(0x189)],_0x1fe011=_0x670229[_0x272453(0x189)];}_0x536310[_0x272453(0x22a)]({'undoCache':_0x5f009e,'redoCache':_0x20dc90});}[_0x144fb0(0xb6)](_0x1d7531){const _0x3ea6ce=_0x144fb0,{unitID:_0xd39cfa}=_0x1d7531,_0x35d8ba=this[_0x3ea6ce(0x2f9)]['getRenderById'](_0xd39cfa)[_0x3ea6ce(0x8b)](_0x3b39ef['DocIMEInputManagerService']),_0x1966b2=_0x35d8ba[_0x3ea6ce(0x1d6)]();if(_0x1966b2==null)return;const _0x495c86=[{'id':_0x3ea6ce(0xbb),'params':{'unitId':_0x1d7531[_0x3ea6ce(0x239)],'actions':null,'textRanges':[_0x1966b2]}}],_0x4bcc58=this[_0x3ea6ce(0x3dd)]['transformMutationsWithChangeset'](_0x1d7531,_0x495c86);if(!_0x55cc56[_0x3ea6ce(0x436)](_0x4bcc58))throw _0x4bcc58[_0x3ea6ce(0x37d)];const _0x3552ef=_0x4bcc58[_0x3ea6ce(0x171)][0x0][_0x3ea6ce(0xa3)][_0x3ea6ce(0x14f)];Array[_0x3ea6ce(0x130)](_0x3552ef)&&_0x3552ef[_0x3ea6ce(0x118)]&&_0x35d8ba[_0x3ea6ce(0x2a8)](_0x3552ef[0x0]);}};_0x57c1cf=_0x5a7070([_0x1f1028(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x1f1028(0x1,_0x55cc56[_0x144fb0(0x1bd)]),_0x1f1028(0x2,_0x1ff35a[_0x144fb0(0x310)])],_0x57c1cf);var _0x42022a=Object[_0x144fb0(0x395)],_0x259491=Object[_0x144fb0(0x457)],_0x2d0945=(_0x169bf1,_0x596778,_0x1406c2,_0x418e1d)=>{const _0x3be2dd=_0x144fb0;for(var _0x4de9cd=_0x418e1d>0x1?void 0x0:_0x418e1d?_0x259491(_0x596778,_0x1406c2):_0x596778,_0x11cdb0=_0x169bf1[_0x3be2dd(0x118)]-0x1,_0x23510c;_0x11cdb0>=0x0;_0x11cdb0--)(_0x23510c=_0x169bf1[_0x11cdb0])&&(_0x4de9cd=(_0x418e1d?_0x23510c(_0x596778,_0x1406c2,_0x4de9cd):_0x23510c(_0x4de9cd))||_0x4de9cd);return _0x418e1d&&_0x4de9cd&&_0x42022a(_0x596778,_0x1406c2,_0x4de9cd),_0x4de9cd;},_0x52e744=(_0x2914c1,_0x1813f1)=>(_0x3266f7,_0x338bac)=>_0x1813f1(_0x3266f7,_0x338bac,_0x2914c1);_0x4c8f94[_0x144fb0(0x309)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x34d4d5,_0xd124fe,_0x576cc9,_0x4222da,_0xc94ee){const _0xeeeee7=_0x144fb0;super(),_0x3e782f(this,_0xeeeee7(0x137),new Map()),_0x3e782f(this,'_saveTaskMap',new Map()),_0x3e782f(this,'_disabled',!0x1),(this[_0xeeeee7(0x283)]=_0x34d4d5,this['_localStorageService']=_0xd124fe,this[_0xeeeee7(0xb5)]=_0x576cc9,this[_0xeeeee7(0x208)]=_0x4222da,this[_0xeeeee7(0x3da)]=_0xc94ee,this[_0xeeeee7(0x149)]());}['disableLocalCache'](){const _0x4cf6a4=_0x144fb0;this[_0x4cf6a4(0x4a1)]=!0x0;}[_0x144fb0(0x17f)](){this['_disabled']=!0x1;}[_0x144fb0(0x320)](){const _0x38be92=_0x144fb0;this['exhaustSavingTask']()[_0x38be92(0x477)](()=>super['dispose']());}async[_0x144fb0(0x19f)](_0x46bcc5){const _0x456fa5=_0x144fb0;return this[_0x456fa5(0x4a1)]?null:this[_0x456fa5(0x356)][_0x456fa5(0x492)](_0x4e6216(_0x46bcc5));}async['saveOfflineData'](_0x269e5c,_0x5bf1a6){const _0x4e67c9=_0x144fb0;return!!this[_0x4e67c9(0x356)][_0x4e67c9(0x352)](_0x269e5c,_0x5bf1a6);}[_0x144fb0(0x1f9)](_0x48ef59,_0x4ae530,_0x78b834,_0x36a1ae){const _0x404f59=_0x144fb0,_0x167e4e=this[_0x404f59(0x3da)][_0x404f59(0x306)](_0x48ef59);this[_0x404f59(0x137)]['set'](_0x48ef59,{'unitID':_0x48ef59,'type':_0x4ae530,'awaitingChangeset':_0x78b834,'mutations':_0x36a1ae,'rev':_0x167e4e}),this['_saveTaskMap'][_0x404f59(0x26d)](_0x48ef59)||this['_scheduleSaving'](_0x48ef59);}[_0x144fb0(0x117)](_0x49dee9){const _0x462972=_0x144fb0,_0x5b2e92=this[_0x462972(0x371)]();_0x5b2e92===0x0?this[_0x462972(0xe8)](_0x49dee9):this[_0x462972(0x124)]['set'](_0x49dee9,setTimeout(()=>this[_0x462972(0xe8)](_0x49dee9),_0x5b2e92));}['_getSaveTimeout'](){const _0x665233=_0x144fb0;var _0x149604;return(_0x149604=this[_0x665233(0x283)][_0x665233(0x27c)](_0x1a11f9))!=null?_0x149604:0x3e8;}['_saveCache'](_0x2b3225){const _0x1f8f30=_0x144fb0,_0xe386c4=this[_0x1f8f30(0x124)]['get'](_0x2b3225);return _0xe386c4!==void 0x0&&window[_0x1f8f30(0x499)](_0xe386c4),this[_0x1f8f30(0x356)][_0x1f8f30(0x352)](_0x4e6216(_0x2b3225),this['_cachedData'][_0x1f8f30(0x3b8)](_0x2b3225))[_0x1f8f30(0x477)](()=>this['_saveTaskMap'][_0x1f8f30(0x32d)](_0x2b3225));}async[_0x144fb0(0x291)](){const _0x3d6149=_0x144fb0,_0x59d6a4=[];this['_saveTaskMap'][_0x3d6149(0x478)]((_0x126dda,_0x40defb)=>{const _0x2e7850=_0x3d6149;window[_0x2e7850(0x499)](_0x126dda),_0x59d6a4['push'](this['_saveCache'](_0x40defb)[_0x2e7850(0x477)](()=>{const _0x30ca49=_0x2e7850;this[_0x30ca49(0x124)]['delete'](_0x40defb);}));}),await Promise[_0x3d6149(0x261)](_0x59d6a4);}[_0x144fb0(0x149)](){const _0x21997d=_0x144fb0;this[_0x21997d(0x397)](this[_0x21997d(0xb5)][_0x21997d(0x28d)](()=>{const _0x835bd8=_0x21997d;if(this[_0x835bd8(0x124)][_0x835bd8(0x332)])return this[_0x835bd8(0x208)]['t'](_0x835bd8(0x434));}));}},_0x4c8f94[_0x144fb0(0x309)]=_0x2d0945([_0x52e744(0x0,_0x20df93[_0x144fb0(0x247)]),_0x52e744(0x1,_0x20df93[_0x144fb0(0x39b)]),_0x52e744(0x2,_0x40b1aa[_0x144fb0(0x4aa)]),_0x52e744(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x52e744(0x4,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService']))],_0x4c8f94[_0x144fb0(0x309)]);function _0x4e6216(_0x323508){const _0x3fec98=_0x144fb0;return _0x3fec98(0x10c)+_0x323508;}var _0x36203a=Object[_0x144fb0(0x395)],_0x28bed0=Object['getOwnPropertyDescriptor'],_0x5346ba=(_0x3c45af,_0x1e5a8f,_0x59d943,_0x470666)=>{for(var _0x3be351=_0x470666>0x1?void 0x0:_0x470666?_0x28bed0(_0x1e5a8f,_0x59d943):_0x1e5a8f,_0x5c0d4f=_0x3c45af['length']-0x1,_0x407781;_0x5c0d4f>=0x0;_0x5c0d4f--)(_0x407781=_0x3c45af[_0x5c0d4f])&&(_0x3be351=(_0x470666?_0x407781(_0x1e5a8f,_0x59d943,_0x3be351):_0x407781(_0x3be351))||_0x3be351);return _0x470666&&_0x3be351&&_0x36203a(_0x1e5a8f,_0x59d943,_0x3be351),_0x3be351;},_0x19640e=(_0x19ed08,_0x48d9f4)=>(_0x3d1cf7,_0x417120)=>_0x48d9f4(_0x3d1cf7,_0x417120,_0x19ed08);function _0x3d6113(_0x361437){const _0x241a68=_0x144fb0,{unitID:_0x3e5ab5,mutations:_0xb95c5d}=_0x361437;return{'unitId':_0x3e5ab5,'subUnitId':_0xb95c5d[0x0][_0x241a68(0xa3)][_0x241a68(0x248)]};}let _0x44b9f8=class{constructor(_0x5528cd,_0x3c340,_0x51fb68){const _0x15cb50=_0x144fb0;this[_0x15cb50(0x2fc)]=_0x5528cd,this[_0x15cb50(0x3dd)]=_0x3c340,this['_instanceService']=_0x51fb68;}[_0x144fb0(0x444)](_0x2251c5){const _0x4e7f95=_0x144fb0;var _0x3b9d15,_0x28811b,_0x316c2e,_0x149751;const _0x1c9a04=this[_0x4e7f95(0x2fc)]['get'](_0x5dce24[_0x4e7f95(0x205)]),{unitId:_0x346a10,subUnitId:_0x2136c3}=_0x3d6113(_0x2251c5),_0xa5f302=_0x1c9a04[_0x4e7f95(0x1c2)](_0x346a10)['getCurrentSelections'](),_0x2ee500=(_0x28811b=(_0x3b9d15=this[_0x4e7f95(0x27d)][_0x4e7f95(0x3c3)](_0x346a10))==null?void 0x0:_0x3b9d15[_0x4e7f95(0x112)]())==null?void 0x0:_0x28811b[_0x4e7f95(0x3c9)]();if(_0xa5f302[_0x4e7f95(0x118)]===0x0||!_0x346a10||!_0x2136c3)return;const _0x3207bd=[{'id':_0x5dce24['SetSelectionsOperation']['id'],'params':{'unitId':_0x346a10,'subUnitId':_0x2ee500,'selections':_0x20df93[_0x4e7f95(0x1c4)][_0x4e7f95(0x200)](_0xa5f302)}}],_0x2ea90a=this['_transformService'][_0x4e7f95(0x40d)](_0x2251c5,_0x3207bd);if(!_0x55cc56[_0x4e7f95(0x436)](_0x2ea90a))throw _0x2ea90a[_0x4e7f95(0x37d)];const _0x317474=(_0x149751=(_0x316c2e=_0x2ea90a['m2Prime'][0x0])==null?void 0x0:_0x316c2e[_0x4e7f95(0xa3)])==null?void 0x0:_0x149751[_0x4e7f95(0x3a2)];Array[_0x4e7f95(0x130)](_0x317474)&&_0x317474[_0x4e7f95(0x118)]&&this[_0x4e7f95(0x2fc)][_0x4e7f95(0x3b8)](_0x20df93[_0x4e7f95(0x338)])[_0x4e7f95(0x1fe)](_0x5dce24['SetSelectionsOperation']['id'],{'unitId':_0x346a10,'subUnitId':_0x2ee500,'selections':_0x317474});}};_0x44b9f8=_0x5346ba([_0x19640e(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x19640e(0x1,_0x55cc56[_0x144fb0(0x1bd)]),_0x19640e(0x2,_0x20df93['IUniverInstanceService'])],_0x44b9f8);const _0x3977df=_0x20df93[_0x144fb0(0x4be)](_0x144fb0(0x150));var _0x4b0976=(_0x2395f0=>(_0x2395f0[_0x2395f0[_0x144fb0(0x396)]=0x0]=_0x144fb0(0x396),_0x2395f0[_0x2395f0[_0x144fb0(0xb9)]=0x1]=_0x144fb0(0xb9),_0x2395f0))(_0x4b0976||{});const _0x38a4d4=0x7530,_0x2a1472=_0x144fb0(0x9a);class _0x4e8c93 extends _0x20df93[_0x144fb0(0x343)]{constructor(){const _0x3ff4b7=_0x144fb0;super(),_0x3e782f(this,_0x3ff4b7(0x3d8),_0x20df93[_0x3ff4b7(0x1c4)][_0x3ff4b7(0xd9)]()),_0x3e782f(this,'_selfUnitIDs',new Set()),_0x3e782f(this,_0x3ff4b7(0x4d0),new Map()),_0x3e782f(this,_0x3ff4b7(0x14a),null),_0x3e782f(this,'_clearOtherTimers',new Map()),_0x3e782f(this,_0x3ff4b7(0xf7),new Map()),this[_0x3ff4b7(0x198)]();}[_0x144fb0(0x320)](){const _0x5e8b7a=_0x144fb0;super[_0x5e8b7a(0x320)](),this[_0x5e8b7a(0x26b)][_0x5e8b7a(0x478)]((_0x55ffdc,_0x1a4e65)=>this[_0x5e8b7a(0x41b)](_0x1a4e65)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x5e8b7a(0x14a)]);}[_0x144fb0(0x249)](_0x421d39){const _0x264ba9=_0x144fb0;return this[_0x264ba9(0x3b1)](_0x421d39)[_0x264ba9(0x34d)](_0x284d0[_0x264ba9(0xe7)]());}[_0x144fb0(0x38e)](_0x2d4a40){const _0x3143f1=_0x144fb0;this[_0x3143f1(0x170)][_0x3143f1(0x332)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3143f1(0x170)][_0x3143f1(0x4bc)](_0x2d4a40),this[_0x3143f1(0x2e1)]({'type':0x0,'memberID':this[_0x3143f1(0x3d8)],'unitIDs':[_0x2d4a40],'isForwarded':!0x1});}[_0x144fb0(0x1c5)](_0x5b1f9c){const _0x1dbcc7=_0x144fb0;this['_selfUnitIDs'][_0x1dbcc7(0x32d)](_0x5b1f9c),this['_selfUnitIDs'][_0x1dbcc7(0x332)]===0x0&&this[_0x1dbcc7(0x14a)]&&window[_0x1dbcc7(0x40e)](this[_0x1dbcc7(0x14a)]);}[_0x144fb0(0x198)](){const _0x233d60=_0x144fb0;this[_0x233d60(0x397)](_0x20df93[_0x233d60(0x2cc)](_0x284d0[_0x233d60(0x341)](window,_0x233d60(0x122))[_0x233d60(0xda)](_0x3c047d=>{const _0x28391e=_0x233d60;if(_0x3c047d[_0x28391e(0x4b2)]!==_0x2a1472||!_0x3c047d[_0x28391e(0x335)])return;const _0x3f8b17=JSON['parse'](_0x3c047d[_0x28391e(0x335)]);this[_0x28391e(0x3ef)](_0x3f8b17);}))),window[_0x233d60(0x357)]('unload',()=>this[_0x233d60(0x2e1)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x233d60(0xc2)](this[_0x233d60(0x170)])}));}['_handleEvent'](_0x458f51){const _0x18de1f=_0x144fb0;switch(_0x458f51[_0x18de1f(0x2e4)]){case 0x0:this[_0x18de1f(0x398)](_0x458f51);break;case 0x1:this['_handleLeaveEvent'](_0x458f51);break;case 0x2:this[_0x18de1f(0x146)](_0x458f51);break;}}[_0x144fb0(0x398)](_0x592685){const _0x148251=_0x144fb0,{unitIDs:_0x1ae5a2,memberID:_0x442521,isForwarded:_0x34a660}=_0x592685;_0x1ae5a2[_0x148251(0x478)](_0x1c2121=>{const _0x1101f2=_0x148251;if(!_0x34a660&&this[_0x1101f2(0x4d0)][_0x1101f2(0x26d)](_0x1c2121)&&this[_0x1101f2(0x3b1)](_0x1c2121)[_0x1101f2(0x25d)](0x1),!this[_0x1101f2(0x4d0)]['has'](_0x1c2121)||!this[_0x1101f2(0x4d0)]['get'](_0x1c2121)[_0x1101f2(0x26d)](_0x442521)){const _0x1ca759=this['_unitOnClients'][_0x1101f2(0x3b8)](_0x1c2121)||new Set();_0x1ca759[_0x1101f2(0x4bc)](_0x442521),this[_0x1101f2(0x4d0)][_0x1101f2(0x271)](_0x1c2121,_0x1ca759),this['_scheduleClearOtherTimer'](_0x442521);}}),_0x34a660||this[_0x148251(0x2e1)]({'type':0x0,'memberID':this[_0x148251(0x3d8)],'unitIDs':[...this[_0x148251(0x170)]],'isForwarded':!0x0});}[_0x144fb0(0x26f)](_0x4292a3){const _0x5a5831=_0x144fb0;this[_0x5a5831(0x41b)](_0x4292a3);const _0x5530d3=window[_0x5a5831(0x233)](()=>{const _0x556307=_0x5a5831;this[_0x556307(0x4d0)][_0x556307(0x478)](_0x7bd165=>{_0x7bd165['delete'](_0x4292a3);});},_0x38a4d4*0x2);this[_0x5a5831(0x26b)]['set'](_0x4292a3,_0x5530d3);}[_0x144fb0(0x41b)](_0x522dd2){const _0x175ef2=_0x144fb0;if(this[_0x175ef2(0x26b)][_0x175ef2(0x26d)](_0x522dd2)){const _0x17ea2c=this[_0x175ef2(0x26b)][_0x175ef2(0x3b8)](_0x522dd2);_0x17ea2c&&window[_0x175ef2(0x499)](_0x17ea2c),this['_clearOtherTimers'][_0x175ef2(0x271)](_0x522dd2,null);}}[_0x144fb0(0x433)](_0x7bcc7){const _0x271750=_0x144fb0,{memberID:_0x8d4e57,unitIDs:_0x33b15d}=_0x7bcc7;_0x33b15d[_0x271750(0x478)](_0x2258ce=>{const _0x404db8=_0x271750;var _0x37eada;const _0x51ef96=this[_0x404db8(0x4d0)][_0x404db8(0x3b8)](_0x2258ce);_0x51ef96&&(_0x51ef96[_0x404db8(0x32d)](_0x8d4e57),(_0x37eada=this[_0x404db8(0x3b1)](_0x2258ce))==null||_0x37eada['next'](_0x51ef96[_0x404db8(0x332)]===0x0?0x0:0x1));}),this[_0x271750(0x41b)](_0x8d4e57);}[_0x144fb0(0x146)](_0xaca352){this['_scheduleClearOtherTimer'](_0xaca352['memberID']);}[_0x144fb0(0x2e1)](_0x32c198){const _0x3da8a8=_0x144fb0;localStorage[_0x3da8a8(0x352)](_0x2a1472,JSON['stringify'](_0x32c198));}[_0x144fb0(0x2a6)](){const _0x68d7a4=_0x144fb0;this[_0x68d7a4(0x14a)]=window[_0x68d7a4(0x4b3)](()=>{const _0x460048=_0x68d7a4;this[_0x460048(0x2e1)]({'type':0x2,'memberID':this['_id']});},_0x38a4d4);}[_0x144fb0(0x3b1)](_0x50997d){const _0x31e7a2=_0x144fb0;return this['_unitStatus'][_0x31e7a2(0x26d)](_0x50997d)||this[_0x31e7a2(0xf7)][_0x31e7a2(0x271)](_0x50997d,new _0x284d0['BehaviorSubject'](0x0)),this[_0x31e7a2(0xf7)][_0x31e7a2(0x3b8)](_0x50997d);}}function _0x3f4458(_0x47b606){let _0x32135e='';for(const _0x446d5b of _0x47b606){const {startOffset:_0x45623d,endOffset:_0x5c86bc,isActive:_0xdbda74}=_0x446d5b;_0x32135e['length']&&(_0x32135e+=','),_0x32135e+=_0x45623d+':'+_0x5c86bc+':'+(_0xdbda74?'1':'0');}return _0x32135e;}function _0x161949(_0x2439b3){const _0x1499a8=_0x144fb0,_0x51caba=_0x2439b3[_0x1499a8(0x1ed)](','),_0x5e55fa=[];for(const _0x540b0e of _0x51caba){const [_0x445b2d,_0x8d223f,_0x5b07b3]=_0x540b0e[_0x1499a8(0x1ed)](':');_0x5e55fa[_0x1499a8(0x20e)]({'startOffset':Number(_0x445b2d),'endOffset':Number(_0x8d223f),'collapsed':_0x445b2d===_0x8d223f,'isActive':_0x5b07b3==='1'});}return _0x5e55fa[_0x1499a8(0x38b)](_0xc2ff73=>_0xc2ff73[_0x1499a8(0x41a)])||(_0x5e55fa[0x0][_0x1499a8(0x41a)]=!0x0),_0x5e55fa;}class _0x1ab040 extends _0x20df93[_0x144fb0(0x330)]{constructor(){const _0x421e5e=_0x144fb0;super(...arguments),_0x3e782f(this,_0x421e5e(0x315),new _0x284d0['BehaviorSubject'](null)),_0x3e782f(this,_0x421e5e(0x3c2),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x55ac7d){const _0x3bef4b=_0x144fb0,{unitID:_0x23f105,memberID:_0x54c391,textRanges:_0x3faf70}=_0x55ac7d,_0x2a5bcb=_0x3f4458(_0x3faf70),_0x58cec9={'unitID':_0x23f105,'memberID':_0x54c391,'selection':_0x2a5bcb};this[_0x3bef4b(0x315)][_0x3bef4b(0x25d)](_0x58cec9);}}var _0x200748=Object[_0x144fb0(0x395)],_0x55e961=Object[_0x144fb0(0x457)],_0x685b19=(_0x494042,_0x40950d,_0x2910d7,_0x1a41bd)=>{const _0x1e5f26=_0x144fb0;for(var _0x3e292f=_0x1a41bd>0x1?void 0x0:_0x1a41bd?_0x55e961(_0x40950d,_0x2910d7):_0x40950d,_0x4533b7=_0x494042[_0x1e5f26(0x118)]-0x1,_0xf0bdeb;_0x4533b7>=0x0;_0x4533b7--)(_0xf0bdeb=_0x494042[_0x4533b7])&&(_0x3e292f=(_0x1a41bd?_0xf0bdeb(_0x40950d,_0x2910d7,_0x3e292f):_0xf0bdeb(_0x3e292f))||_0x3e292f);return _0x1a41bd&&_0x3e292f&&_0x200748(_0x40950d,_0x2910d7,_0x3e292f),_0x3e292f;},_0xffb6da=(_0xf9a897,_0x1ed911)=>(_0x210079,_0x3bd43c)=>_0x1ed911(_0x210079,_0x3bd43c,_0xf9a897);let _0x5d5342=class{constructor(_0x5d013f,_0x3cb73c){const _0x85085a=_0x144fb0;this[_0x85085a(0x2fc)]=_0x5d013f,this[_0x85085a(0x3dd)]=_0x3cb73c;}['transformSelections'](_0x3ebab5){const _0x3ac7e8=_0x144fb0;var _0x1060d4;const _0x1f517a=this[_0x3ac7e8(0x2fc)]['get'](_0x280e9c[_0x3ac7e8(0x4c0)]),_0x5958d9=(_0x1060d4=_0x1f517a[_0x3ac7e8(0x151)]())!=null?_0x1060d4:[];if(_0x5958d9[_0x3ac7e8(0x118)]===0x0)return;const _0x372fc4=[{'id':_0x3ac7e8(0xbb),'params':{'unitId':_0x3ebab5[_0x3ac7e8(0x239)],'actions':null,'textRanges':_0x5958d9}}],_0x25abe2=this[_0x3ac7e8(0x3dd)][_0x3ac7e8(0x40d)](_0x3ebab5,_0x372fc4);if(!_0x55cc56['isTransformMutationsWithChangesetSuccess'](_0x25abe2))throw _0x25abe2[_0x3ac7e8(0x37d)];const _0x10c295=_0x25abe2[_0x3ac7e8(0x171)][0x0][_0x3ac7e8(0xa3)][_0x3ac7e8(0x14f)];Array['isArray'](_0x10c295)&&_0x10c295[_0x3ac7e8(0x118)]&&_0x1f517a[_0x3ac7e8(0x185)](_0x10c295,!0x1);}};_0x5d5342=_0x685b19([_0xffb6da(0x0,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0xffb6da(0x1,_0x55cc56['ITransformService'])],_0x5d5342);const _0x2abaea=new Set([_0x5dce24['InsertSheetMutation']['id']]);function _0x2d1d58(_0x1c8bc4,_0x239988,_0x5c9756,_0x1bb0ea,_0x4be355){const _0x45a20f=_0x144fb0;var _0x1e1926,_0x4febd1,_0x2db92d,_0x137cd6;const _0x38756a=[];for(const _0x6cc84a of _0x1c8bc4)if(_0x2abaea[_0x45a20f(0x26d)](_0x6cc84a['id'])){if(_0x38756a['length']>0x0)break;_0x38756a[_0x45a20f(0x20e)](_0x6cc84a);break;}else _0x38756a[_0x45a20f(0x20e)](_0x6cc84a);const _0x4b4ae9=(_0x4febd1=(_0x1e1926=_0x4be355['getCurrentUser']())==null?void 0x0:_0x1e1926[_0x45a20f(0x47a)])!=null?_0x4febd1:_0x45a20f(0x26c),_0x191bb7=(_0x137cd6=(_0x2db92d=_0x4be355[_0x45a20f(0x411)]())==null?void 0x0:_0x2db92d[_0x45a20f(0x173)])!=null?_0x137cd6:'unknown';return{'changeset':{'unitID':_0x239988,'type':_0x55cc56[_0x45a20f(0x409)](_0x5c9756[_0x45a20f(0x3c5)](_0x239988)),'baseRev':_0x1bb0ea[_0x45a20f(0x306)](_0x239988),'revision':0x0,'userID':_0x4b4ae9,'memberID':_0x191bb7,'mutations':_0x38756a},'pendingMutations':_0x1c8bc4[_0x45a20f(0x321)](_0x38756a[_0x45a20f(0x118)])};}function _0x5db712(_0x223bdd,_0x9b982d,_0x33ca99,_0x28d65d,_0x34a989){const _0x23b032=_0x144fb0;var _0x5aa663,_0xa089f9,_0x533909,_0x35f261;const _0x46cfbb=[_0x223bdd[_0x23b032(0x344)]((_0x4ef8a1,_0x4c34b7)=>{const _0x5afe96=_0x23b032;var _0x1859f3;const {id:_0x34a3d5}=_0x4ef8a1,{id:_0x38ff4e,type:_0x1703b9}=_0x4c34b7,_0x31d8b6=(_0x1859f3=_0x4ef8a1['params'])!=null?_0x1859f3:{'actions':null},_0x11db53=_0x4c34b7[_0x5afe96(0xa3)];if(_0x34a3d5&&_0x34a3d5!==_0x38ff4e)throw new Error(_0x5afe96(0x36f)+_0x34a3d5+_0x5afe96(0x453)+_0x38ff4e+'.');return{..._0x4ef8a1,'id':_0x38ff4e,'type':_0x1703b9,'params':{'unitId':_0x11db53[_0x5afe96(0x1b7)],'textRanges':_0x11db53[_0x5afe96(0x14f)],'actions':_0x20df93['JSONX'][_0x5afe96(0x3a8)](_0x31d8b6[_0x5afe96(0x437)],_0x11db53[_0x5afe96(0x437)])}};},{})],_0x12f3b4=(_0xa089f9=(_0x5aa663=_0x34a989[_0x23b032(0x411)]())==null?void 0x0:_0x5aa663[_0x23b032(0x47a)])!=null?_0xa089f9:_0x23b032(0x26c),_0x134845=(_0x35f261=(_0x533909=_0x34a989[_0x23b032(0x411)]())==null?void 0x0:_0x533909['memberID'])!=null?_0x35f261:_0x23b032(0x26c);return{'changeset':{'unitID':_0x9b982d,'type':_0x55cc56[_0x23b032(0x409)](_0x33ca99[_0x23b032(0x3c5)](_0x9b982d)),'baseRev':_0x28d65d[_0x23b032(0x306)](_0x9b982d),'revision':0x0,'userID':_0x12f3b4,'memberID':_0x134845,'mutations':_0x46cfbb},'pendingMutations':[]};}const _0x5d6206={'id':_0x5dce24['EmptyMutation']['id'],'type':_0x20df93[_0x144fb0(0x286)][_0x144fb0(0x372)],'params':{}};var _0x93857f=Object[_0x144fb0(0x395)],_0xf89646=Object['getOwnPropertyDescriptor'],_0x5a9e03=(_0x53dfb8,_0x244ee6,_0x55733d,_0x22565d)=>{const _0x291838=_0x144fb0;for(var _0x34be70=_0x22565d>0x1?void 0x0:_0x22565d?_0xf89646(_0x244ee6,_0x55733d):_0x244ee6,_0x2a44d4=_0x53dfb8[_0x291838(0x118)]-0x1,_0x2a9f46;_0x2a44d4>=0x0;_0x2a44d4--)(_0x2a9f46=_0x53dfb8[_0x2a44d4])&&(_0x34be70=(_0x22565d?_0x2a9f46(_0x244ee6,_0x55733d,_0x34be70):_0x2a9f46(_0x34be70))||_0x34be70);return _0x22565d&&_0x34be70&&_0x93857f(_0x244ee6,_0x55733d,_0x34be70),_0x34be70;},_0xbe94c7=(_0xe1d3f2,_0x2943a2)=>(_0x1f5dd7,_0x192447)=>_0x2943a2(_0x1f5dd7,_0x192447,_0xe1d3f2),_0x5d3e7e=(_0x36b4f9=>(_0x36b4f9[_0x144fb0(0x49a)]=_0x144fb0(0x3b7),_0x36b4f9[_0x144fb0(0xad)]=_0x144fb0(0xca),_0x36b4f9[_0x144fb0(0x42a)]='pending',_0x36b4f9['AWAITING']=_0x144fb0(0x218),_0x36b4f9[_0x144fb0(0x186)]=_0x144fb0(0x373),_0x36b4f9['FETCH_MISS']=_0x144fb0(0x299),_0x36b4f9[_0x144fb0(0x3b6)]='conflict',_0x36b4f9[_0x144fb0(0x2d5)]=_0x144fb0(0xfc),_0x36b4f9))(_0x5d3e7e||{});class _0x30b9a8{constructor(_0x1a048f,_0x188b07,_0x2036d0,_0x24b1df,_0x3ea776,_0x4ee268,_0x4ac303,_0x4e09f6,_0xdf7702){const _0x3c52f3=_0x144fb0;_0x3e782f(this,_0x3c52f3(0x252),null),_0x3e782f(this,_0x3c52f3(0x19e),[]),(this[_0x3c52f3(0x239)]=_0x1a048f,this[_0x3c52f3(0x2e4)]=_0x188b07,this['_handler']=_0x3ea776,this[_0x3c52f3(0x2d1)]=_0x4ee268,this[_0x3c52f3(0x443)]=_0x4ac303,this['_revisionService']=_0x4e09f6,this[_0x3c52f3(0x2be)]=_0xdf7702,this[_0x3c52f3(0x252)]=_0x2036d0,this[_0x3c52f3(0x19e)]=_0x24b1df);}[_0x144fb0(0x495)](_0x141103){const _0x55959e=_0x144fb0,_0xcd15a1=this[_0x55959e(0x3da)][_0x55959e(0x306)](this[_0x55959e(0x239)]);return _0x141103[_0x55959e(0x376)]>_0xcd15a1+0x1?(this[_0x55959e(0x14c)][_0x55959e(0x1eb)]({'from':_0xcd15a1,'to':_0x141103[_0x55959e(0x376)]-0x1}),!0x0):!0x1;}[_0x144fb0(0x2ae)](_0x7392dd){const _0x485e1d=_0x144fb0;this['_undoRedoService'][_0x485e1d(0x2bd)](this[_0x485e1d(0x239)],_0x7392dd);}[_0x144fb0(0x49f)](_0xcd3ab2){const _0x415f58=_0x144fb0;var _0x1624b5,_0x17a4cf;(_0x17a4cf=(_0x1624b5=this[_0x415f58(0x14c)])[_0x415f58(0x1bc)])==null||_0x17a4cf[_0x415f58(0xed)](_0x1624b5,_0xcd3ab2);}['_transformIMECache'](_0x209538){const _0x2c5205=_0x144fb0;var _0x56e9ba,_0x37c08e;return(_0x37c08e=(_0x56e9ba=this[_0x2c5205(0x14c)])['onTransformIME'])==null?void 0x0:_0x37c08e[_0x2c5205(0xed)](_0x56e9ba,_0x209538);}[_0x144fb0(0x157)](_0x5ac663){const _0x48b27b=_0x144fb0;var _0x322606,_0x1851ab,_0x15196e;return(_0x15196e=(_0x1851ab=(_0x322606=this[_0x48b27b(0x14c)])[_0x48b27b(0x466)])==null?void 0x0:_0x1851ab[_0x48b27b(0xed)](_0x322606,_0x5ac663))!=null?_0x15196e:_0x5ac663;}['_syncEditingCollabCursor'](_0x11c5a5){const _0x16e741=_0x144fb0;var _0x39443b,_0x5b443d;if(this['type']===_0x3dff5a['UNIVER_DOC']){const {unitID:_0x6f5db7,mutations:_0x40b717,memberID:_0x41b1f8}=_0x11c5a5,_0x4a63be=_0x40b717[0x0][_0x16e741(0xa3)][_0x16e741(0x14f)];Array[_0x16e741(0x130)](_0x4a63be)&&_0x4a63be['length']>0x0&&((_0x5b443d=(_0x39443b=this['_handler'])[_0x16e741(0x323)])==null||_0x5b443d[_0x16e741(0xed)](_0x39443b,{'unitID':_0x6f5db7,'memberID':_0x41b1f8,'textRanges':_0x4a63be}));}}[_0x144fb0(0x4c9)](){const _0x1dd248=_0x144fb0;this[_0x1dd248(0x2be)]['updateOfflineData'](this[_0x1dd248(0x239)],this[_0x1dd248(0x2e4)],this[_0x1dd248(0x252)],this['_pendingMutations']);}[_0x144fb0(0xf1)](){const _0x441b64=_0x144fb0;return this['_revisionService'][_0x441b64(0x306)](this[_0x441b64(0x239)]);}[_0x144fb0(0x3a6)](){const _0x345973=_0x144fb0;this[_0x345973(0x3da)][_0x345973(0x97)](this[_0x345973(0x239)]);}[_0x144fb0(0x4c7)](_0x5c665e){const _0x38aa9c=_0x144fb0;var _0x1d0b1d;const _0x3a5eea=this[_0x38aa9c(0x157)](_0x5c665e),_0x480c78=_0x20df93[_0x38aa9c(0x406)](_0x3a5eea[_0x38aa9c(0x366)],this[_0x38aa9c(0x2d1)],{'fromCollab':!0x0});if(!_0x480c78[_0x38aa9c(0x400)])throw _0x480c78['error']instanceof Error?_0x480c78[_0x38aa9c(0x37d)]:new Error((_0x1d0b1d=_0x480c78[_0x38aa9c(0x37d)])!=null?_0x1d0b1d:'[CollaborationState]:\x20apply\x20error!');this[_0x38aa9c(0x31f)](_0x3a5eea),this[_0x38aa9c(0x2ae)](_0x5c665e),this[_0x38aa9c(0x49f)](_0x3a5eea),this[_0x38aa9c(0x19d)](_0x3a5eea),this['_incrementRevisionNumber']();}}let _0x495f7c=class extends _0x30b9a8{constructor(_0x5b75a2,_0x4780f,_0x5ab34d,_0x5eb4ee,_0x2e7fa8,_0x18a268,_0x52492c,_0x38a729,_0x5234d4,_0x49d50e){const _0x57f06b=_0x144fb0;super(_0x5b75a2,_0x4780f,null,[],_0x5ab34d,_0x38a729,_0x52492c,_0x5eb4ee,_0x2e7fa8),_0x3e782f(this,_0x57f06b(0x442),_0x57f06b(0xca)),(this['_injector']=_0x18a268,this[_0x57f06b(0x414)]=_0x5234d4,this[_0x57f06b(0x3dd)]=_0x49d50e);}[_0x144fb0(0x207)](_0x4bd9da){const _0x4a8553=_0x144fb0,_0x4834f5=this[_0x4a8553(0x2fc)][_0x4a8553(0x2f6)](_0x4ae15d,this[_0x4a8553(0x239)],this[_0x4a8553(0x2e4)],[_0x4bd9da],this[_0x4a8553(0x14c)]);return _0x4834f5[_0x4a8553(0x1bf)](),_0x4834f5['_updateLocalCache'](),_0x4834f5;}[_0x144fb0(0x455)](_0x4cd558){const _0x5cab6d=_0x144fb0;if(this[_0x5cab6d(0x495)](_0x4cd558))return this[_0x5cab6d(0x2fc)][_0x5cab6d(0x2f6)](_0x4b3f93,this['unitID'],this[_0x5cab6d(0x2e4)],null,[],null,[_0x4cd558],this[_0x5cab6d(0x14c)]);try{const _0x145a0c=this[_0x5cab6d(0x3dd)][_0x5cab6d(0x40d)](_0x4cd558,[_0x5d6206]);if(_0x55cc56[_0x5cab6d(0x436)](_0x145a0c)){const {c1Prime:_0x1ef66d}=_0x145a0c;return this[_0x5cab6d(0x4c7)](_0x1ef66d),this;}throw _0x145a0c[_0x5cab6d(0x37d)];}catch(_0x1c24e2){return this[_0x5cab6d(0x414)]['error'](_0x1c24e2),this[_0x5cab6d(0x1cb)](!0x1);}}[_0x144fb0(0x1cb)](_0x43f967){const _0x58e727=_0x144fb0;return this[_0x58e727(0x2fc)][_0x58e727(0x2f6)](_0x3a479a,this['unitID'],this[_0x58e727(0x2e4)],null,[],this[_0x58e727(0x14c)],_0x43f967);}[_0x144fb0(0x3a9)](){const _0x250c76=_0x144fb0;throw new Error(_0x250c76(0x3e8));}[_0x144fb0(0x1dd)](){const _0x3ccb32=_0x144fb0;throw new Error(_0x3ccb32(0x382));}['toggleOffline'](){const _0x5e67f6=_0x144fb0;return this[_0x5e67f6(0x2fc)][_0x5e67f6(0x2f6)](_0x44c69c,this[_0x5e67f6(0x239)],this['type'],null,[],this[_0x5e67f6(0x14c)]);}[_0x144fb0(0x1be)](){return this;}['resend'](){const _0x37dce7=_0x144fb0;throw new Error(_0x37dce7(0x381));}[_0x144fb0(0x2b2)](){const _0x472cce=_0x144fb0,_0x1b0411=this[_0x472cce(0x3da)]['getCurrentRevOfUnit'](this[_0x472cce(0x239)]);return this['_handler']['onMissingChangesets']({'from':_0x1b0411,'to':0x0}),this[_0x472cce(0x2fc)][_0x472cce(0x2f6)](_0x4b3f93,this[_0x472cce(0x239)],this[_0x472cce(0x2e4)],null,[],null,[],this['_handler']);}};_0x495f7c=_0x5a9e03([_0xbe94c7(0x3,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0x4,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0xbe94c7(0x6,_0x20df93['IUndoRedoService']),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0x9,_0x55cc56[_0x144fb0(0x1bd)])],_0x495f7c);let _0x4ae15d=class extends _0x30b9a8{constructor(_0xfc9c48,_0x4f9211,_0x45a696,_0x40ddc9,_0x2f8160,_0x293e0a,_0x1f6bb9,_0x2826e4,_0x30f7e7,_0x194172,_0x1d9832,_0x13b700,_0xc0ba4d,_0xac1adc){const _0x454566=_0x144fb0;super(_0xfc9c48,_0x4f9211,null,_0x45a696,_0x40ddc9,_0x194172,_0xac1adc,_0x293e0a,_0x1f6bb9),_0x3e782f(this,_0x454566(0x442),_0x454566(0x30a)),_0x3e782f(this,'_scheduleTimestamp',null),_0x3e782f(this,_0x454566(0x47f),null),(this[_0x454566(0x2fc)]=_0x2f8160,this['_memberService']=_0x2826e4,this[_0x454566(0x414)]=_0x30f7e7,this[_0x454566(0x283)]=_0x1d9832,this[_0x454566(0x3dd)]=_0x13b700,this[_0x454566(0xc8)]=_0xc0ba4d);}['appendMutation'](_0x3e7b0b){const _0x4ad403=_0x144fb0;return this[_0x4ad403(0x19e)][_0x4ad403(0x20e)](_0x3e7b0b),this['_updateLocalCache'](),this;}[_0x144fb0(0x455)](_0x30b42a){const _0x222013=_0x144fb0;if(this[_0x222013(0x495)](_0x30b42a))return this[_0x222013(0x188)](),this['_injector'][_0x222013(0x2f6)](_0x4b3f93,this[_0x222013(0x239)],this['type'],null,this['_pendingMutations'],null,[_0x30b42a],this[_0x222013(0x14c)]);try{const _0x54b529=this['_transformService'][_0x222013(0x40d)](_0x30b42a,this[_0x222013(0x19e)]);if(_0x55cc56[_0x222013(0x436)](_0x54b529)){const {c1Prime:_0x4f89fd,m2Prime:_0x59bc93}=_0x54b529;this[_0x222013(0x4c7)](_0x4f89fd);const _0x182de3=this[_0x222013(0x2fc)][_0x222013(0x2f6)](_0x4ae15d,this[_0x222013(0x239)],this[_0x222013(0x2e4)],_0x59bc93,this[_0x222013(0x14c)]);return this[_0x222013(0x188)](),_0x182de3['_schedule'](this[_0x222013(0x40a)]?Math[_0x222013(0x480)](0x0,new Date()[_0x222013(0x487)]()-this[_0x222013(0x40a)]):this[_0x222013(0x49b)]()),_0x182de3;}throw _0x54b529[_0x222013(0x37d)];}catch(_0x371883){return this[_0x222013(0x414)][_0x222013(0x37d)](_0x371883),this[_0x222013(0x1cb)](!0x1);}}['onRemoteAck'](){const _0x3944f7=_0x144fb0;throw new Error(_0x3944f7(0x178));}[_0x144fb0(0x1dd)](){const _0x127ff6=_0x144fb0;throw new Error(_0x127ff6(0x3fa));}[_0x144fb0(0x187)](){const _0x323e67=_0x144fb0;return this[_0x323e67(0x188)](),this[_0x323e67(0x2fc)][_0x323e67(0x2f6)](_0x44c69c,this[_0x323e67(0x239)],this[_0x323e67(0x2e4)],null,this[_0x323e67(0x19e)],this[_0x323e67(0x14c)]);}[_0x144fb0(0x1be)](){return this;}['_schedule'](_0xb749a0){const _0x46cc8a=_0x144fb0,_0x579139=_0xb749a0!=null?_0xb749a0:this[_0x46cc8a(0x49b)]();this['_scheduleTimestamp']=new Date()[_0x46cc8a(0x487)](),this[_0x46cc8a(0x47f)]=window[_0x46cc8a(0x233)](()=>{const _0x107238=_0x46cc8a;this[_0x107238(0x188)]();let _0x53a063=null;switch(this['type']){case _0x3dff5a[_0x107238(0x4bf)]:{_0x53a063=_0x2d1d58(this['_pendingMutations'],this['unitID'],this[_0x107238(0xc8)],this[_0x107238(0x3da)],this[_0x107238(0x486)]);break;}case _0x3dff5a[_0x107238(0x126)]:{this['_pendingMutations'][_0x107238(0x260)](_0x46e4c8=>_0x46e4c8['id']===_0x280e9c['RichTextEditingMutation']['id'])?_0x53a063=_0x5db712(this['_pendingMutations'],this[_0x107238(0x239)],this[_0x107238(0xc8)],this['_revisionService'],this[_0x107238(0x486)]):_0x53a063=_0x2d1d58(this[_0x107238(0x19e)],this[_0x107238(0x239)],this[_0x107238(0xc8)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x107238(0xd3)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x421a85,pendingMutations:_0x5d9ed4}=_0x53a063;this[_0x107238(0x14c)][_0x107238(0x3e2)](_0x421a85);const _0x4bf139=_0x5d9ed4[_0x107238(0x118)]?this[_0x107238(0x2fc)]['createInstance'](_0x189a45,this[_0x107238(0x239)],this[_0x107238(0x2e4)],_0x421a85,_0x5d9ed4,this[_0x107238(0x14c)]):this[_0x107238(0x2fc)][_0x107238(0x2f6)](_0xaa98f9,this[_0x107238(0x239)],this['type'],_0x421a85,this['_handler']);_0x4bf139['_updateLocalCache'](),this[_0x107238(0x14c)][_0x107238(0x37b)](this,_0x4bf139);},_0x579139);}[_0x144fb0(0x49b)](){const _0xeebdae=_0x144fb0;var _0x6a2b32;const _0x1e229e=this[_0xeebdae(0x283)][_0xeebdae(0x27c)](_0x53057b);return(_0x6a2b32=_0x1e229e==null?void 0x0:_0x1e229e[_0xeebdae(0x2ce)])!=null?_0x6a2b32:0x7d0;}[_0x144fb0(0x47c)](){const _0x504d88=_0x144fb0;throw new Error(_0x504d88(0x1da));}[_0x144fb0(0x188)](){const _0x1e9d01=_0x144fb0;this[_0x1e9d01(0x47f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e9d01(0x47f)]=null);}[_0x144fb0(0x1cb)](_0x59a011){const _0x2a6871=_0x144fb0;return this[_0x2a6871(0x188)](),this[_0x2a6871(0x2fc)][_0x2a6871(0x2f6)](_0x3a479a,this[_0x2a6871(0x239)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x59a011);}};_0x4ae15d=_0x5a9e03([_0xbe94c7(0x4,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService'])),_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0x9,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0xa,_0x20df93[_0x144fb0(0x247)]),_0xbe94c7(0xb,_0x55cc56[_0x144fb0(0x1bd)]),_0xbe94c7(0xc,_0x20df93['IUniverInstanceService']),_0xbe94c7(0xd,_0x20df93[_0x144fb0(0x2d0)])],_0x4ae15d);let _0xaa98f9=class extends _0x30b9a8{constructor(_0x68c213,_0x235837,_0x24f98a,_0x86b4a8,_0x1ecdbd,_0x2c2db0,_0x1672e0,_0x1ea546,_0x4a9c37,_0x49bb20,_0x35d97b){const _0x9b380c=_0x144fb0;super(_0x68c213,_0x235837,_0x24f98a,[],_0x86b4a8,_0x1ea546,_0x35d97b,_0x2c2db0,_0x1672e0),_0x3e782f(this,'status','awaiting'),(this[_0x9b380c(0x2fc)]=_0x1ecdbd,this[_0x9b380c(0x414)]=_0x4a9c37,this[_0x9b380c(0x3dd)]=_0x49bb20);}[_0x144fb0(0x207)](_0x430f8a){const _0x295b09=_0x144fb0,_0x207c72=this[_0x295b09(0x2fc)]['createInstance'](_0x189a45,this[_0x295b09(0x239)],this[_0x295b09(0x2e4)],this[_0x295b09(0x252)],[_0x430f8a],this['_handler']);return _0x207c72[_0x295b09(0x4c9)](),_0x207c72;}[_0x144fb0(0x455)](_0x2da277){const _0x53ab86=_0x144fb0;if(this[_0x53ab86(0x495)](_0x2da277))return this[_0x53ab86(0x2fc)][_0x53ab86(0x2f6)](_0x4b3f93,this[_0x53ab86(0x239)],this[_0x53ab86(0x2e4)],this[_0x53ab86(0x252)],[],null,[_0x2da277],this[_0x53ab86(0x14c)]);try{const _0x5b6470=this[_0x53ab86(0x3dd)][_0x53ab86(0x103)]([_0x2da277],[this['_awaitingChangeset']],!0x1);if(_0x55cc56['isTransformChangesetsSuccess'](_0x5b6470)){const {c1Prime:_0x35938f,c2Prime:_0x1362b1}=_0x5b6470;this[_0x53ab86(0x4c7)](_0x35938f[0x0]),_0x1362b1[0x0]['baseRev']=this[_0x53ab86(0xf1)]();const _0x3d75a9=this[_0x53ab86(0x2fc)][_0x53ab86(0x2f6)](_0xaa98f9,this[_0x53ab86(0x239)],this['type'],_0x1362b1[0x0],this[_0x53ab86(0x14c)]);return _0x3d75a9[_0x53ab86(0x4c9)](),_0x3d75a9;}return this[_0x53ab86(0x1cb)](!0x1);}catch(_0x211dca){return this[_0x53ab86(0x414)][_0x53ab86(0x37d)](_0x211dca),this[_0x53ab86(0x1cb)](!0x1);}}[_0x144fb0(0x3a9)](_0x45fb9e){const _0x7d7614=_0x144fb0,_0xe04933=this[_0x7d7614(0x3da)]['getCurrentRevOfUnit'](this[_0x7d7614(0x239)]);if(_0x45fb9e[_0x7d7614(0x376)]<_0xe04933-0x1)return this;if(this[_0x7d7614(0x495)](_0x45fb9e))return this[_0x7d7614(0x2fc)][_0x7d7614(0x2f6)](_0x4b3f93,this[_0x7d7614(0x239)],this[_0x7d7614(0x2e4)],null,[],this[_0x7d7614(0x252)],[],this[_0x7d7614(0x14c)]);this[_0x7d7614(0x3a6)]();const _0x2b29e4=this[_0x7d7614(0x2fc)]['createInstance'](_0x495f7c,this[_0x7d7614(0x239)],this[_0x7d7614(0x2e4)],this[_0x7d7614(0x14c)]);return _0x2b29e4[_0x7d7614(0x4c9)](),_0x2b29e4;}[_0x144fb0(0x1dd)](_0x3d3ac2){const _0x4b49b9=_0x144fb0;return this[_0x4b49b9(0x1cb)](!!(_0x3d3ac2!=null&&_0x3d3ac2['isPermissionRej']));}['toggleOffline'](){const _0x5025d4=_0x144fb0;return this[_0x5025d4(0x2fc)]['createInstance'](_0x44c69c,this['unitID'],this[_0x5025d4(0x2e4)],this[_0x5025d4(0x252)],[],this[_0x5025d4(0x14c)]);}[_0x144fb0(0x1be)](){return this;}[_0x144fb0(0x47c)](){const _0x1fce4c=_0x144fb0;this[_0x1fce4c(0x14c)]['onSendChangeset'](this[_0x1fce4c(0x252)]);}[_0x144fb0(0x1cb)](_0x2a70f9){const _0x3cceaf=_0x144fb0;return this[_0x3cceaf(0x2fc)][_0x3cceaf(0x2f6)](_0x3a479a,this[_0x3cceaf(0x239)],this[_0x3cceaf(0x2e4)],this[_0x3cceaf(0x252)],[],this[_0x3cceaf(0x14c)],_0x2a70f9);}};_0xaa98f9=_0x5a9e03([_0xbe94c7(0x4,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x7,_0x20df93['ICommandService']),_0xbe94c7(0x8,_0x20df93['ILogService']),_0xbe94c7(0x9,_0x55cc56[_0x144fb0(0x1bd)]),_0xbe94c7(0xa,_0x20df93[_0x144fb0(0x2d0)])],_0xaa98f9);let _0x189a45=class extends _0x30b9a8{constructor(_0x4444de,_0x287ad0,_0x12835b,_0xda9b76,_0x30320b,_0x54a5cc,_0x37cb9c,_0x32d081,_0x23ff32,_0x17bb82,_0x5a9524,_0x5b496a){const _0x5b87bc=_0x144fb0;super(_0x4444de,_0x287ad0,_0x12835b,_0xda9b76,_0x30320b,_0x23ff32,_0x5b496a,_0x37cb9c,_0x32d081),_0x3e782f(this,_0x5b87bc(0x442),_0x5b87bc(0x373)),(this[_0x5b87bc(0x2fc)]=_0x54a5cc,this[_0x5b87bc(0x414)]=_0x17bb82,this[_0x5b87bc(0x3dd)]=_0x5a9524);}['appendMutation'](_0x3576bc){const _0x355f3e=_0x144fb0;return this[_0x355f3e(0x19e)][_0x355f3e(0x20e)](_0x3576bc),this;}[_0x144fb0(0x455)](_0x39edf9){const _0x21fe74=_0x144fb0;if(this[_0x21fe74(0x495)](_0x39edf9))return this[_0x21fe74(0x2fc)][_0x21fe74(0x2f6)](_0x4b3f93,this[_0x21fe74(0x239)],this[_0x21fe74(0x2e4)],this[_0x21fe74(0x252)],this['_pendingMutations'],null,[_0x39edf9],this[_0x21fe74(0x14c)]);try{const _0x1af28b=this[_0x21fe74(0x3dd)][_0x21fe74(0x103)]([_0x39edf9],[this[_0x21fe74(0x252)]],!0x1);if(_0x55cc56['isTransformChangesetsSuccess'](_0x1af28b)){const {c1Prime:_0x1b9969,c2Prime:_0x260a0f}=_0x1af28b,_0x55ee10=this[_0x21fe74(0x3dd)]['transformMutationsWithChangeset'](_0x1b9969[0x0],this['_pendingMutations']);if(_0x55cc56[_0x21fe74(0x436)](_0x55ee10)){const {c1Prime:_0x3cf2d7,m2Prime:_0x3c12bc}=_0x55ee10;return this['_executeRemoteChangeset'](_0x3cf2d7),_0x260a0f[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x21fe74(0x2fc)][_0x21fe74(0x2f6)](_0x189a45,this[_0x21fe74(0x239)],this['type'],_0x260a0f[0x0],_0x3c12bc,this['_handler']);}throw _0x55ee10[_0x21fe74(0x37d)];}throw _0x1af28b['error'];}catch(_0xac2b1f){return this[_0x21fe74(0x414)][_0x21fe74(0x37d)](_0xac2b1f),this['_onConflict'](!0x1);}}[_0x144fb0(0x3a9)](_0x359646){const _0x5ebebc=_0x144fb0;if(this[_0x5ebebc(0x495)](_0x359646))return this[_0x5ebebc(0x2fc)][_0x5ebebc(0x2f6)](_0x4b3f93,this[_0x5ebebc(0x239)],this[_0x5ebebc(0x2e4)],null,this[_0x5ebebc(0x19e)],this['_awaitingChangeset'],[],this['_handler']);this[_0x5ebebc(0x3a6)]();const _0x23ce71=this['_injector'][_0x5ebebc(0x2f6)](_0x4ae15d,this['unitID'],this[_0x5ebebc(0x2e4)],this[_0x5ebebc(0x19e)],this['_handler']);return _0x23ce71['_schedule'](),_0x23ce71[_0x5ebebc(0x4c9)](),_0x23ce71;}[_0x144fb0(0x1dd)](_0x326747){const _0x127368=_0x144fb0;return this[_0x127368(0x1cb)](!!(_0x326747!=null&&_0x326747['isPermissionRej']));}[_0x144fb0(0x187)](){const _0x2c43c5=_0x144fb0;return this[_0x2c43c5(0x2fc)][_0x2c43c5(0x2f6)](_0x44c69c,this['unitID'],this[_0x2c43c5(0x2e4)],this[_0x2c43c5(0x252)],this[_0x2c43c5(0x19e)],this[_0x2c43c5(0x14c)]);}[_0x144fb0(0x1be)](){return this;}[_0x144fb0(0x47c)](){const _0x911442=_0x144fb0;this[_0x911442(0x14c)][_0x911442(0x3e2)](this[_0x911442(0x252)]);}[_0x144fb0(0x1cb)](_0x59131e){const _0x55bf3e=_0x144fb0;return this[_0x55bf3e(0x2fc)]['createInstance'](_0x3a479a,this[_0x55bf3e(0x239)],this[_0x55bf3e(0x2e4)],null,this[_0x55bf3e(0x19e)],this['_handler'],_0x59131e);}};_0x189a45=_0x5a9e03([_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService'])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94['LocalCacheService'])),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x9,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0xa,_0x55cc56[_0x144fb0(0x1bd)]),_0xbe94c7(0xb,_0x20df93[_0x144fb0(0x2d0)])],_0x189a45);let _0x3a479a=class extends _0x30b9a8{constructor(_0x19f694,_0x33e6ea,_0x10cb9,_0x45bdd2,_0xdf6a70,_0xedb9d5=!0x1,_0x15c050,_0x624746,_0x1f89a1,_0x177e52,_0x2dbc1c,_0x4cf587,_0x375196){const _0x4f6571=_0x144fb0;super(_0x19f694,_0x33e6ea,_0x10cb9,_0x45bdd2,_0xdf6a70,_0x624746,_0x1f89a1,_0x2dbc1c,_0x177e52),_0x3e782f(this,'status',_0x4f6571(0x2b7)),(this[_0x4f6571(0x278)]=_0xedb9d5,this[_0x4f6571(0x471)]=_0x15c050,this[_0x4f6571(0x208)]=_0x4cf587,this['_notificationService']=_0x375196,this[_0x4f6571(0x46a)](),this['_clearLocalCache'](),this[_0x4f6571(0xe5)]());}[_0x144fb0(0x207)](){return this;}[_0x144fb0(0x455)](){return this;}[_0x144fb0(0x3a9)](){return this;}[_0x144fb0(0x1dd)](){return this;}[_0x144fb0(0x187)](){return this;}[_0x144fb0(0x1be)](){return this;}[_0x144fb0(0x47c)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x1b83fe=_0x144fb0;this[_0x1b83fe(0x2be)][_0x1b83fe(0x1f9)](this[_0x1b83fe(0x239)],this[_0x1b83fe(0x2e4)],null,[]);}[_0x144fb0(0x46a)](){const _0x3ecb97=_0x144fb0;this[_0x3ecb97(0x278)]?this[_0x3ecb97(0x355)]['show']({'title':this[_0x3ecb97(0x208)]['t'](_0x3ecb97(0x45f)),'content':this[_0x3ecb97(0x208)]['t'](_0x3ecb97(0x276)),'type':_0x3ecb97(0x37d),'duration':0x0}):this['_notificationService'][_0x3ecb97(0x429)]({'title':this['_localeService']['t'](_0x3ecb97(0xd1)),'content':this[_0x3ecb97(0x208)]['t'](_0x3ecb97(0x16e)),'type':_0x3ecb97(0x37d),'duration':0x0});}['_disableEditing'](){const _0xc4459=_0x144fb0;this[_0xc4459(0x471)][_0xc4459(0x2ad)](new _0x5dce24['WorkbookEditablePermission'](this[_0xc4459(0x239)])['id'],!0x1);}};_0x3a479a=_0x5a9e03([_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93['IPermissionService'])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x2d0)]),_0xbe94c7(0x9,_0x20df93['Inject'](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0xa,_0x20df93['Inject'](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0xb,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0xbe94c7(0xc,_0x40b1aa[_0x144fb0(0x262)])],_0x3a479a);let _0x44c69c=class extends _0x30b9a8{constructor(_0x53a563,_0x1f39dc,_0x29e24f,_0x5990e3,_0x8d3d19,_0x1726bc,_0x3c5a75,_0x38c7b4,_0x169e9d,_0x149db1){const _0x98c94e=_0x144fb0;super(_0x53a563,_0x1f39dc,_0x29e24f,_0x5990e3,_0x8d3d19,_0x169e9d,_0x149db1,_0x3c5a75,_0x38c7b4),_0x3e782f(this,_0x98c94e(0x442),_0x98c94e(0xfc)),this['_injector']=_0x1726bc;}[_0x144fb0(0x207)](_0x460c22){const _0x9af5cd=_0x144fb0;return this[_0x9af5cd(0x19e)][_0x9af5cd(0x20e)](_0x460c22),this[_0x9af5cd(0x4c9)](),this;}['onRemoteChangeset'](_0x40d47d){const _0x483197=_0x144fb0;throw new Error(_0x483197(0x2dd));}['onRemoteAck'](){const _0x2725fe=_0x144fb0;throw new Error(_0x2725fe(0x3c8));}[_0x144fb0(0x1dd)](){const _0x2fcdd6=_0x144fb0;throw new Error(_0x2fcdd6(0x8f));}[_0x144fb0(0x187)](){return this;}[_0x144fb0(0x1be)](){const _0x43bec5=_0x144fb0,{_injector:_0x2f761f,_pendingMutations:_0x201a1b,_awaitingChangeset:_0x422767,unitID:_0x5ed830,_handler:_0x17e7a7,type:_0x590114}=this,_0x2a0c00=_0x45d61b(_0x2f761f,_0x5ed830,_0x590114,_0x422767,_0x201a1b,_0x17e7a7);return _0x2a0c00 instanceof _0x4ae15d?_0x2a0c00[_0x43bec5(0x1bf)]():(_0x2a0c00 instanceof _0x189a45||_0x2a0c00 instanceof _0xaa98f9)&&_0x2a0c00['resend'](),_0x2a0c00;}[_0x144fb0(0x47c)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x44c69c=_0x5a9e03([_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x6,_0x20df93['Inject'](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x9,_0x20df93['IUndoRedoService'])],_0x44c69c);let _0x4b3f93=class extends _0x30b9a8{constructor(_0x4c65f5,_0x2c913f,_0x1745c7,_0x495a59,_0x4cddba,_0x426b4e,_0xc9fe0f,_0x18fdc7,_0x246b70,_0x347280,_0x518caf,_0x1b4aa8,_0x2ff5c6,_0x5b90b9){const _0x3a7861=_0x144fb0;super(_0x4c65f5,_0x2c913f,_0x1745c7,_0x495a59,_0xc9fe0f,_0x1b4aa8,_0x2ff5c6,_0x246b70,_0x347280),_0x3e782f(this,_0x3a7861(0x442),_0x3a7861(0x299)),(this[_0x3a7861(0x370)]=_0x4cddba,this[_0x3a7861(0x25f)]=_0x426b4e,this[_0x3a7861(0x2fc)]=_0x18fdc7,this[_0x3a7861(0x414)]=_0x518caf,this[_0x3a7861(0x3dd)]=_0x5b90b9);}[_0x144fb0(0x154)](_0x7a6749){const _0x2ec899=_0x144fb0;try{const _0x4ea29a=[..._0x7a6749,...this['_queuedRemoteChangesets']],_0x459e4d=[this[_0x2ec899(0x252)]||this['_acknowledgedAwaitingChangeset']][_0x2ec899(0x4a2)](_0x8c44da=>!!_0x8c44da);let _0x492b16,_0x1c1356;if(_0x459e4d[_0x2ec899(0x118)]){const _0x2a1166=this['_transformService']['transformChangesets'](_0x4ea29a,_0x459e4d,!0x1);if(!_0x55cc56[_0x2ec899(0x253)](_0x2a1166))throw _0x2a1166['error'];_0x492b16=_0x2a1166['c1Prime'],_0x1c1356=_0x2a1166[_0x2ec899(0x31d)];}else _0x492b16=_0x4ea29a,_0x1c1356=[];let _0x3a711f=this[_0x2ec899(0x19e)];_0x492b16['forEach'](_0xb7c60=>{const _0x262893=_0x2ec899;let _0x299e2b;if(_0x3a711f[_0x262893(0x118)]){const _0x3513f9=this[_0x262893(0x3dd)][_0x262893(0x40d)](_0xb7c60,_0x3a711f);if(!_0x55cc56['isTransformMutationsWithChangesetSuccess'](_0x3513f9))throw _0x3513f9[_0x262893(0x37d)];_0x299e2b=_0x3513f9[_0x262893(0x4b5)],_0x3a711f=_0x3513f9['m2Prime'];}else _0x299e2b=_0xb7c60;this[_0x262893(0x4c7)](_0x299e2b);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x2ec899(0x252)]&&_0x1c1356['length']&&(_0x1c1356[0x0][_0x2ec899(0x353)]=this['_getCurrentRevision']());let _0x183d2e;if(this[_0x2ec899(0x252)]&&_0x3a711f['length']!==0x0)_0x183d2e=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x189a45,this[_0x2ec899(0x239)],this[_0x2ec899(0x2e4)],_0x1c1356[0x0],_0x3a711f,this[_0x2ec899(0x14c)]);else{if(this[_0x2ec899(0x252)]&&_0x3a711f[_0x2ec899(0x118)]===0x0)_0x1c1356[0x0][_0x2ec899(0x353)]=this[_0x2ec899(0xf1)](),_0x183d2e=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0xaa98f9,this['unitID'],this[_0x2ec899(0x2e4)],_0x1c1356[0x0],this[_0x2ec899(0x14c)]);else{if(_0x3a711f['length']!==0x0){const _0x275ecb=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x4ae15d,this['unitID'],this['type'],_0x3a711f,this[_0x2ec899(0x14c)]);_0x275ecb['_schedule'](),_0x183d2e=_0x275ecb;}else _0x183d2e=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x495f7c,this[_0x2ec899(0x239)],this[_0x2ec899(0x2e4)],this['_handler']);}}return _0x183d2e[_0x2ec899(0x4c9)](),_0x183d2e;}catch(_0x5f579a){return this[_0x2ec899(0x414)][_0x2ec899(0x37d)](_0x2ec899(0x23f),_0x2ec899(0x125),_0x5f579a),this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x3a479a,this[_0x2ec899(0x239)],this[_0x2ec899(0x2e4)],this[_0x2ec899(0x252)],this[_0x2ec899(0x19e)],this['_handler'],!0x1);}}[_0x144fb0(0x47c)](){const _0x553373=_0x144fb0;throw new Error(_0x553373(0x24d));}[_0x144fb0(0x207)](_0x3a62ec){const _0x31ae72=_0x144fb0;return this[_0x31ae72(0x19e)][_0x31ae72(0x20e)](_0x3a62ec),this;}[_0x144fb0(0x455)](_0xc2b436){const _0x380e38=_0x144fb0;return this[_0x380e38(0x25f)][_0x380e38(0x20e)](_0xc2b436),this;}[_0x144fb0(0x3a9)](_0x47330d){const _0x17b600=_0x144fb0;if(this[_0x17b600(0x252)])return this['_acknowledgedAwaitingChangeset']=this[_0x17b600(0x252)],this[_0x17b600(0x252)]=null,this;throw new Error(_0x17b600(0x4b6));}[_0x144fb0(0x1dd)](_0x18dda3){const _0x545def=_0x144fb0;return this['_onConflict'](!!(_0x18dda3!=null&&_0x18dda3[_0x545def(0x4a3)]));}[_0x144fb0(0x187)](){const _0x1c4321=_0x144fb0;return this['_injector'][_0x1c4321(0x2f6)](_0x44c69c,this[_0x1c4321(0x239)],this[_0x1c4321(0x2e4)],this[_0x1c4321(0x252)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x144fb0(0x1cb)](_0x39e4d7){const _0x4682f4=_0x144fb0;return this[_0x4682f4(0x2fc)][_0x4682f4(0x2f6)](_0x3a479a,this[_0x4682f4(0x239)],this['type'],this[_0x4682f4(0x252)],this[_0x4682f4(0x19e)],this[_0x4682f4(0x14c)],_0x39e4d7);}};_0x4b3f93=_0x5a9e03([_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x8,_0x20df93['Inject'](_0x55cc56['RevisionService'])),_0xbe94c7(0x9,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0xa,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0xb,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0xc,_0x20df93[_0x144fb0(0x2d0)]),_0xbe94c7(0xd,_0x55cc56['ITransformService'])],_0x4b3f93);function _0x45d61b(_0x3ef9d3,_0x344fce,_0x3fe061,_0x2252b3,_0x1c3ed7,_0x56f451){const _0x12f44a=_0x144fb0;return _0x2252b3&&_0x1c3ed7[_0x12f44a(0x118)]?_0x3ef9d3[_0x12f44a(0x2f6)](_0x189a45,_0x344fce,_0x3fe061,_0x2252b3,_0x1c3ed7,_0x56f451):_0x2252b3?_0x3ef9d3[_0x12f44a(0x2f6)](_0xaa98f9,_0x344fce,_0x3fe061,_0x2252b3,_0x56f451):_0x1c3ed7[_0x12f44a(0x118)]?_0x3ef9d3['createInstance'](_0x4ae15d,_0x344fce,_0x3fe061,_0x1c3ed7,_0x56f451):_0x3ef9d3[_0x12f44a(0x2f6)](_0x495f7c,_0x344fce,_0x3fe061,_0x56f451);}var _0x3ca8e2=Object[_0x144fb0(0x395)],_0x5e34a8=Object['getOwnPropertyDescriptor'],_0x50fae8=(_0x413929,_0x23f399,_0x25444c,_0x594cd8)=>{const _0x6e401=_0x144fb0;for(var _0x41df72=_0x594cd8>0x1?void 0x0:_0x594cd8?_0x5e34a8(_0x23f399,_0x25444c):_0x23f399,_0x4a9602=_0x413929[_0x6e401(0x118)]-0x1,_0x55308d;_0x4a9602>=0x0;_0x4a9602--)(_0x55308d=_0x413929[_0x4a9602])&&(_0x41df72=(_0x594cd8?_0x55308d(_0x23f399,_0x25444c,_0x41df72):_0x55308d(_0x41df72))||_0x41df72);return _0x594cd8&&_0x41df72&&_0x3ca8e2(_0x23f399,_0x25444c,_0x41df72),_0x41df72;},_0x7d90d4=(_0x4a9aa3,_0x3028bf)=>(_0x4aca87,_0x34e615)=>_0x3028bf(_0x4aca87,_0x34e615,_0x4a9aa3);_0x4c8f94['CollaborationEntity']=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x2e21b1,_0x1b2dce,_0x5c040f,_0x3c5bb6,_0x872e44,_0x232715,_0x57ed90,_0x8262f9,_0x1cfdad,_0x4ad183,_0x4573fd,_0x39e44f,_0x1d83af){const _0x4e16af=_0x144fb0;super(),_0x3e782f(this,_0x4e16af(0x46b),new _0x284d0[(_0x4e16af(0x237))](null)),_0x3e782f(this,_0x4e16af(0xf9),this['_state$'][_0x4e16af(0x17e)]()),_0x3e782f(this,_0x4e16af(0x1b4)),_0x3e782f(this,_0x4e16af(0x2a0),!0x1),_0x3e782f(this,_0x4e16af(0x4c2),this[_0x4e16af(0xf9)][_0x4e16af(0x34d)](_0x284d0[_0x4e16af(0x296)](_0x7a1e60=>_0x7a1e60?_0x7a1e60[_0x4e16af(0x442)]:_0x5d3e7e[_0x4e16af(0x2d5)]),_0x284d0[_0x4e16af(0x447)](0x1))),_0x3e782f(this,'_transitionLocked',!0x1),_0x3e782f(this,_0x4e16af(0x135),[]),(this[_0x4e16af(0x239)]=_0x2e21b1,this[_0x4e16af(0x1b0)]=_0x1b2dce,this[_0x4e16af(0xf2)]=_0x5c040f,this[_0x4e16af(0x2fc)]=_0x3c5bb6,this[_0x4e16af(0x2be)]=_0x872e44,this[_0x4e16af(0x20a)]=_0x232715,this['_localeService']=_0x57ed90,this[_0x4e16af(0x3da)]=_0x8262f9,this[_0x4e16af(0x414)]=_0x1cfdad,this[_0x4e16af(0x2d1)]=_0x4ad183,this[_0x4e16af(0x2ac)]=_0x4573fd,this[_0x4e16af(0x471)]=_0x39e44f,this[_0x4e16af(0x3a4)]=_0x1d83af);}get[_0x144fb0(0x2db)](){const _0x652911=_0x144fb0;return this[_0x652911(0x1b4)];}async['init'](){const _0x42e3a2=_0x144fb0;if(this['state'])throw new Error(_0x42e3a2(0xb1));await this[_0x42e3a2(0x198)]();}['pauseCollaboration'](){const _0x47e531=_0x144fb0;return this[_0x47e531(0x2a0)]=!0x0,_0x20df93['toDisposable'](()=>{const _0x19afca=_0x47e531;this[_0x19afca(0x2a0)]=!0x1,this[_0x19afca(0x3b4)]();});}['_updateState'](_0x35792a){const _0x2cede7=_0x144fb0;this[_0x2cede7(0x1b4)]=_0x35792a,this[_0x2cede7(0x46b)]['next'](_0x35792a);}async[_0x144fb0(0x198)](){const _0x24898e=_0x144fb0;var _0x578025;this['_updateState'](await this[_0x24898e(0x1cf)]()),this[_0x24898e(0x3a4)]&&((_0x578025=this[_0x24898e(0x3a4)])==null||_0x578025[_0x24898e(0x38e)](this[_0x24898e(0x239)]),this[_0x24898e(0x397)](this[_0x24898e(0x3a4)]['getUnitStatus$'](this[_0x24898e(0x239)])[_0x24898e(0xda)](_0xbdd597=>{const _0x135032=_0x24898e;this['_logService']['debug'](_0x135032(0x347),'editing\x20status\x20changed\x20to',_0xbdd597),_0xbdd597===_0x4b0976[_0x135032(0xb9)]?(this['_messageService'][_0x135032(0x429)]({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':_0x3206ad[_0x135032(0x43e)]['Warning']}),this[_0x135032(0x471)][_0x135032(0x2ad)](new _0x5dce24['WorkbookEditablePermission'](this[_0x135032(0x239)])['id'],!0x1)):this['_permissionService'][_0x135032(0x2ad)](new _0x5dce24[(_0x135032(0x1e0))](this[_0x135032(0x239)])['id'],!0x0);})));let _0x420089=!0x1;return this[_0x24898e(0x397)](this['session'][_0x24898e(0x48d)]['subscribe'](_0x1eafac=>{const _0x2e3ef5=_0x24898e;_0x1eafac===_0x4d48e1[_0x2e3ef5(0x16b)]?this['_toggleOnline'](_0x420089):_0x1eafac===_0x4d48e1['OFFLINE']&&(_0x420089=!0x0,this['_toggleOffline']());})),this[_0x24898e(0x397)](this[_0x24898e(0x1b0)][_0x24898e(0x435)][_0x24898e(0xda)](_0x3b739b=>{const _0x112d0b=_0x24898e;try{switch(_0x3b739b[_0x112d0b(0x109)]){case _0x55cc56[_0x112d0b(0xf4)][_0x112d0b(0x2ba)]:{this[_0x112d0b(0x4a8)](_0x55cc56['parseProtocolChangeset'](_0x3b739b[_0x112d0b(0x24b)]));break;}case _0x55cc56[_0x112d0b(0xf4)][_0x112d0b(0x244)]:{this[_0x112d0b(0x25b)](_0x3b739b[_0x112d0b(0x24b)]);break;}case _0x55cc56['CollaborationEvent']['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x55cc56[_0x112d0b(0xf4)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x112d0b(0x251)](_0x3b739b[_0x112d0b(0x24b)][_0x112d0b(0x316)][_0x112d0b(0x296)](_0xd57277=>_0x55cc56[_0x112d0b(0x393)](_0xd57277)));break;}case _0x55cc56[_0x112d0b(0xf4)][_0x112d0b(0x100)]:this[_0x112d0b(0x199)]({'isPermissionRej':!0x0});}}catch(_0x54660f){throw console[_0x112d0b(0x37d)](_0x112d0b(0x16d),_0x54660f),_0x54660f;}})),this[_0x24898e(0x1b4)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3517b0=_0x144fb0;if(this[_0x3517b0(0x1f3)])throw new Error(_0x3517b0(0x3ab));this[_0x3517b0(0x1f3)]=!0x0;}['_onLocalMutation'](_0x2a5e13){const _0x3cf2a8=_0x144fb0;this[_0x3cf2a8(0x272)](),this[_0x3cf2a8(0xff)](this[_0x3cf2a8(0x1b4)]['appendMutation'](_0x2a5e13)),this[_0x3cf2a8(0x2ed)]();}[_0x144fb0(0x4a8)](_0x232a10){const _0x52e4e5=_0x144fb0;if(!(_0x232a10[_0x52e4e5(0x376)]<=this[_0x52e4e5(0x3da)]['getCurrentRevOfUnit'](this['unitID']))){if(this['_collaborationPaused']){this[_0x52e4e5(0x135)][_0x52e4e5(0x20e)](_0x232a10);return;}this[_0x52e4e5(0x3f4)](_0x232a10);}}[_0x144fb0(0x3b4)](){const _0x2f10ea=_0x144fb0;this['_remoteChangesetQueue'][_0x2f10ea(0x478)](_0x4a5f2a=>this[_0x2f10ea(0x3f4)](_0x4a5f2a)),this[_0x2f10ea(0x135)]=[];}[_0x144fb0(0x3f4)](_0x433cde){const _0xa1561f=_0x144fb0,_0x10bc2f=this[_0xa1561f(0x20a)][_0xa1561f(0x354)][_0xa1561f(0x29a)](this[_0xa1561f(0x20a)][_0xa1561f(0x354)][_0xa1561f(0x1e2)]()['COMPRESS_MUTATION_APPLY'])(_0x433cde[_0xa1561f(0x366)],null)||_0x433cde[_0xa1561f(0x366)],_0x17b4f3={..._0x433cde,'mutations':_0x10bc2f};this[_0xa1561f(0x272)](),this[_0xa1561f(0xff)](this[_0xa1561f(0x1b4)]['onRemoteChangeset'](_0x17b4f3)),this['_unlockTransition']();}[_0x144fb0(0x25b)](_0x1a2dab){const _0x12e293=_0x144fb0;this[_0x12e293(0x272)](),this[_0x12e293(0xff)](this[_0x12e293(0x1b4)]['onRemoteAck'](_0x1a2dab)),this[_0x12e293(0x2ed)]();}['_onRemoteRejected'](_0x2d09c9){const _0x166ed8=_0x144fb0;this[_0x166ed8(0x272)](),this['_updateState'](this[_0x166ed8(0x1b4)]['onRemoteRej'](_0x2d09c9)),this['_unlockTransition']();}[_0x144fb0(0x251)](_0x3e3eda){const _0x352326=_0x144fb0;if(!(this[_0x352326(0x1b4)]instanceof _0x4b3f93))throw new TypeError(_0x352326(0x297));const _0x17f07c=_0x3e3eda[_0x352326(0x296)](_0x4090cd=>{const _0x1c3633=_0x352326,_0x2a3a30=this[_0x1c3633(0x20a)][_0x1c3633(0x354)][_0x1c3633(0x29a)](this[_0x1c3633(0x20a)]['interceptor']['getInterceptPoints']()[_0x1c3633(0x410)])(_0x4090cd[_0x1c3633(0x366)],null)||_0x4090cd[_0x1c3633(0x366)];return{..._0x4090cd,'mutations':_0x2a3a30};});this[_0x352326(0x272)](),this[_0x352326(0xff)](this['_state'][_0x352326(0x154)](_0x17f07c)),this[_0x352326(0x2ed)]();}[_0x144fb0(0x3f6)](){const _0x596957=_0x144fb0;this[_0x596957(0x272)](),this[_0x596957(0xff)](this['_state'][_0x596957(0x187)]()),this[_0x596957(0x2ed)]();}[_0x144fb0(0x12c)](_0x5aead1=!0x1){const _0x4922da=_0x144fb0;this[_0x4922da(0x272)](),this[_0x4922da(0xff)](this[_0x4922da(0x1b4)]['toggleOnline']()),this[_0x4922da(0x2ed)]();const _0x10d5ee=this[_0x4922da(0x1b4)];_0x5aead1&&_0x10d5ee instanceof _0x495f7c&&(this[_0x4922da(0x272)](),this[_0x4922da(0xff)](_0x10d5ee[_0x4922da(0x2b2)]()),this[_0x4922da(0x2ed)]());}async[_0x144fb0(0x1cf)](){return new Promise(_0x38d8ee=>{const _0x93a23=_0x205f;this[_0x93a23(0x1b0)]['sessionStatus$']['pipe'](_0x284d0[_0x93a23(0x2c9)](0x1))['subscribe'](async _0x3ca3eb=>{const _0x6c7f94=_0x93a23;_0x38d8ee(await this[_0x6c7f94(0x129)](_0x3ca3eb===_0x4d48e1[_0x6c7f94(0x16b)]));});});}[_0x144fb0(0x1ea)](){const _0x5e67e2=_0x144fb0,_0x12ede7=this[_0x5e67e2(0x239)];return{'onStateChange':(_0x2964c4,_0x5dabe8)=>{const _0x55a0f4=_0x5e67e2;if(_0x2964c4!==this[_0x55a0f4(0x1b4)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2964c4['status']+_0x55a0f4(0x1b3)+_0x5dabe8['status']+_0x55a0f4(0x4b0)+this[_0x55a0f4(0x1b4)][_0x55a0f4(0x442)]);this['_updateState'](_0x5dabe8);},'onSendChangeset':_0x42115d=>{const _0x4f16d5=_0x5e67e2,_0x3c435c={'eventID':_0x55cc56[_0x4f16d5(0xf4)][_0x4f16d5(0x24f)],'data':{'unitID':_0x42115d[_0x4f16d5(0x239)],'unitType':this[_0x4f16d5(0xf2)],'changeset':_0x42115d,'memberID':this[_0x4f16d5(0x1b0)][_0x4f16d5(0x483)]()}};this[_0x4f16d5(0x1b0)][_0x4f16d5(0x31c)](_0x3c435c,this[_0x4f16d5(0x239)]);},'onMissingChangesets':({from:_0x23acee,to:_0x23bb18})=>{const _0xf29b29=_0x5e67e2;this[_0xf29b29(0x414)][_0xf29b29(0xd6)](_0xf29b29(0x347),_0xf29b29(0x1c8)+_0x23acee+_0xf29b29(0xde)+_0x23bb18);const _0x10aab0={'eventID':_0x55cc56[_0xf29b29(0xf4)][_0xf29b29(0x47d)],'data':{'unitID':_0x12ede7,'unitType':this[_0xf29b29(0xf2)],'from':_0x23acee,'to':_0x23bb18}};this[_0xf29b29(0x1b0)][_0xf29b29(0x31c)](_0x10aab0,this[_0xf29b29(0x239)]);}};}async['_createInitialStateImpl'](_0x2ea5b9){const _0x56454b=_0x144fb0;var _0x3a89fa,_0x578c23;const _0x156aaf=await this[_0x56454b(0x2be)][_0x56454b(0x19f)](this[_0x56454b(0x239)]),_0x44342d=(_0x3a89fa=_0x156aaf==null?void 0x0:_0x156aaf[_0x56454b(0x366)])!=null?_0x3a89fa:[],_0x1e0d37=(_0x578c23=_0x156aaf==null?void 0x0:_0x156aaf[_0x56454b(0x1a7)])!=null?_0x578c23:null,_0x3706c9=this[_0x56454b(0x239)];try{this[_0x56454b(0x28b)](_0x1e0d37,_0x44342d);}catch(_0x20be1e){this[_0x56454b(0x414)][_0x56454b(0x37d)](_0x20be1e);}const _0x52285d=this[_0x56454b(0x1ea)]();if(_0x2ea5b9){const _0x1176ed=_0x45d61b(this[_0x56454b(0x2fc)],_0x3706c9,this[_0x56454b(0xf2)],_0x1e0d37,_0x44342d,_0x52285d);return _0x1176ed instanceof _0x4ae15d?_0x1176ed[_0x56454b(0x1bf)]():(_0x1176ed instanceof _0x189a45||_0x1176ed instanceof _0xaa98f9)&&_0x1176ed[_0x56454b(0x47c)](),_0x1176ed;}return this[_0x56454b(0x2fc)][_0x56454b(0x2f6)](_0x44c69c,_0x3706c9,this[_0x56454b(0xf2)],_0x1e0d37,_0x44342d,_0x52285d);}['_replayCachedMutations'](_0x39d754,_0x2e4533){const _0x446b4a=_0x144fb0;var _0x1680fd,_0x4f1ba9;const _0x243060=this[_0x446b4a(0x20a)][_0x446b4a(0x354)][_0x446b4a(0x29a)](this[_0x446b4a(0x20a)][_0x446b4a(0x354)][_0x446b4a(0x1e2)]()[_0x446b4a(0x410)]);(_0x1680fd=_0x243060((_0x39d754==null?void 0x0:_0x39d754[_0x446b4a(0x366)])||[],null))==null||_0x1680fd[_0x446b4a(0x478)](_0x4c7c7b=>this[_0x446b4a(0x2d1)]['executeCommand'](_0x4c7c7b['id'],_0x4c7c7b[_0x446b4a(0xa3)])),(_0x4f1ba9=_0x243060(_0x2e4533||[],null))==null||_0x4f1ba9[_0x446b4a(0x478)](_0x1dda46=>this[_0x446b4a(0x2d1)][_0x446b4a(0x1fe)](_0x1dda46['id'],_0x1dda46[_0x446b4a(0xa3)]));}},_0x4c8f94[_0x144fb0(0x462)]=_0x50fae8([_0x7d90d4(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x7d90d4(0x4,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94['LocalCacheService'])),_0x7d90d4(0x5,_0x20df93['Inject'](_0x55cc56['CompressMutationService'])),_0x7d90d4(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x7d90d4(0x7,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0x7d90d4(0x8,_0x20df93['ILogService']),_0x7d90d4(0x9,_0x20df93['ICommandService']),_0x7d90d4(0xa,_0x40b1aa[_0x144fb0(0x3fe)]),_0x7d90d4(0xb,_0x20df93[_0x144fb0(0x250)]),_0x7d90d4(0xc,_0x20df93[_0x144fb0(0x44e)](_0x3977df))],_0x4c8f94['CollaborationEntity']),_0x4c8f94[_0x144fb0(0x184)]=class extends _0x4c8f94[_0x144fb0(0x462)]{constructor(_0x509115,_0x11206,_0x11c7b4,_0x2e746d,_0x489ab0,_0x363197,_0x59e25e,_0x4664be,_0x220ff6,_0x48ffbd,_0x3c6dfd,_0x3f4da0,_0x4b1dd7,_0x52c051,_0x1015a0,_0x10a105,_0x28838e){const _0x4b9297=_0x144fb0;super(_0x509115,_0x11c7b4,_0x11206,_0x2e746d,_0x489ab0,_0x363197,_0x59e25e,_0x4664be,_0x4b1dd7,_0x52c051,_0x1015a0,_0x10a105,_0x28838e),this[_0x4b9297(0x239)]=_0x509115,this[_0x4b9297(0x2e4)]=_0x11206,this[_0x4b9297(0x2eb)]=_0x220ff6,this['_docTransformIMECacheService']=_0x48ffbd,this[_0x4b9297(0x39e)]=_0x3c6dfd,this['_docSyncEditingCollabCursorService']=_0x3f4da0;}[_0x144fb0(0x1ea)](){const _0x22286f=_0x144fb0,_0x164995=super[_0x22286f(0x1ea)]();return _0x164995[_0x22286f(0x3f5)]=_0x40317c=>this[_0x22286f(0x282)][_0x22286f(0xa1)](_0x40317c),_0x164995[_0x22286f(0x1bc)]=_0x516618=>this['_docTransformSelectionsService'][_0x22286f(0x444)](_0x516618),_0x164995[_0x22286f(0x323)]=_0x5ac22c=>this['_docSyncEditingCollabCursorService'][_0x22286f(0x2fb)](_0x5ac22c),_0x164995['onTransformRemoteChangesetByIMECache']=_0xb5119b=>this['_docTransformIMECacheService'][_0x22286f(0x418)](_0xb5119b),_0x164995;}async[_0x144fb0(0x198)](){const _0x109e82=_0x144fb0,_0x5c9a4f=await super['_init']();return this['disposeWithMe'](this[_0x109e82(0x2d1)]['onCommandExecuted']((_0x28e13f,_0x294fa2)=>{const _0x272dc5=_0x109e82;if(_0x28e13f[_0x272dc5(0x2e4)]!==_0x20df93[_0x272dc5(0x286)][_0x272dc5(0x372)]||_0x294fa2!=null&&_0x294fa2[_0x272dc5(0xd0)]||_0x294fa2!=null&&_0x294fa2['onlyLocal'])return;const _0x1d44da=_0x28e13f[_0x272dc5(0xa3)];if((_0x1d44da==null?void 0x0:_0x1d44da[_0x272dc5(0x1b7)])!==this['unitID'])return;let _0x22bde4=_0x28e13f;if(_0x22bde4['id']===_0x280e9c[_0x272dc5(0x24a)]['id']){const _0x4148fa=_0x22bde4['params'];_0x22bde4={'id':_0x280e9c[_0x272dc5(0x24a)]['id'],'type':_0x20df93['CommandType'][_0x272dc5(0x372)],'params':{'unitId':_0x4148fa[_0x272dc5(0x1b7)],'actions':_0x4148fa[_0x272dc5(0x437)],'textRanges':null}};}const _0x43ff3f=this[_0x272dc5(0x20a)][_0x272dc5(0x354)][_0x272dc5(0x29a)](this['_compressMutationService'][_0x272dc5(0x354)][_0x272dc5(0x1e2)]()[_0x272dc5(0x3be)])([_0x22bde4],null)||[_0x22bde4];this[_0x272dc5(0x236)](_0x43ff3f[0x0]);})),_0x5c9a4f;}},_0x4c8f94[_0x144fb0(0x184)]=_0x50fae8([_0x7d90d4(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x7d90d4(0x4,_0x20df93['Inject'](_0x4c8f94[_0x144fb0(0x309)])),_0x7d90d4(0x5,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0x279)])),_0x7d90d4(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x7d90d4(0x7,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0x7d90d4(0x8,_0x20df93[_0x144fb0(0xdd)](_0x3b39ef[_0x144fb0(0x472)])),_0x7d90d4(0x9,_0x20df93['Inject'](_0x57c1cf)),_0x7d90d4(0xa,_0x20df93['Inject'](_0x5d5342)),_0x7d90d4(0xb,_0x20df93['Inject'](_0x1ab040)),_0x7d90d4(0xc,_0x20df93[_0x144fb0(0x1a2)]),_0x7d90d4(0xd,_0x20df93[_0x144fb0(0x338)]),_0x7d90d4(0xe,_0x40b1aa[_0x144fb0(0x3fe)]),_0x7d90d4(0xf,_0x20df93[_0x144fb0(0x250)]),_0x7d90d4(0x10,_0x20df93[_0x144fb0(0x44e)](_0x3977df))],_0x4c8f94['DocCollaborationEntity']),_0x4c8f94[_0x144fb0(0xf0)]=class extends _0x4c8f94[_0x144fb0(0x462)]{constructor(_0x525b5b,_0x4430e2,_0x5f5a7f,_0x150a21,_0x1b89ab,_0x4d0c50,_0x606082,_0x51145c,_0x531640,_0x498954,_0x87211c,_0x175082,_0x528859,_0x6028a4){const _0x50c9b7=_0x144fb0;super(_0x525b5b,_0x5f5a7f,_0x4430e2,_0x150a21,_0x1b89ab,_0x4d0c50,_0x606082,_0x51145c,_0x498954,_0x87211c,_0x175082,_0x528859,_0x6028a4),this[_0x50c9b7(0x239)]=_0x525b5b,this[_0x50c9b7(0x2e4)]=_0x4430e2,this[_0x50c9b7(0x479)]=_0x531640;}[_0x144fb0(0x1ea)](){const _0x5f3b0a=_0x144fb0,_0x59a48f=super[_0x5f3b0a(0x1ea)]();return _0x59a48f[_0x5f3b0a(0x1bc)]=_0xf9b5e6=>this[_0x5f3b0a(0x479)]['transformSelections'](_0xf9b5e6),_0x59a48f;}async[_0x144fb0(0x198)](){const _0x1901ed=_0x144fb0,_0x458cf8=await super[_0x1901ed(0x198)]();return this[_0x1901ed(0x397)](this['_commandService'][_0x1901ed(0x3f9)]((_0x384c87,_0x5ce854)=>{const _0x717be5=_0x1901ed;if(_0x384c87[_0x717be5(0x2e4)]!==_0x20df93[_0x717be5(0x286)]['MUTATION']||_0x5ce854!=null&&_0x5ce854['fromCollab']||_0x5ce854!=null&&_0x5ce854[_0x717be5(0x12b)])return;const _0x27d218=_0x384c87['params'];if((_0x27d218==null?void 0x0:_0x27d218['unitId'])!==this['unitID'])return;const _0x40b1ce=_0x384c87,_0x3af6c1=this[_0x717be5(0x20a)][_0x717be5(0x354)][_0x717be5(0x29a)](this[_0x717be5(0x20a)][_0x717be5(0x354)][_0x717be5(0x1e2)]()['COMPRESS_MUTATION_SEND'])([_0x40b1ce],null)||[_0x40b1ce];this[_0x717be5(0x236)](_0x3af6c1[0x0]);})),_0x458cf8;}},_0x4c8f94['SheetCollaborationEntity']=_0x50fae8([_0x7d90d4(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x7d90d4(0x4,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0x7d90d4(0x5,_0x20df93['Inject'](_0x55cc56[_0x144fb0(0x279)])),_0x7d90d4(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x7d90d4(0x7,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService'])),_0x7d90d4(0x8,_0x20df93[_0x144fb0(0xdd)](_0x44b9f8)),_0x7d90d4(0x9,_0x20df93[_0x144fb0(0x1a2)]),_0x7d90d4(0xa,_0x20df93[_0x144fb0(0x338)]),_0x7d90d4(0xb,_0x40b1aa[_0x144fb0(0x3fe)]),_0x7d90d4(0xc,_0x20df93['IPermissionService']),_0x7d90d4(0xd,_0x20df93[_0x144fb0(0x44e)](_0x3977df))],_0x4c8f94[_0x144fb0(0xf0)]);var _0x580d17=Object[_0x144fb0(0x395)],_0x1b4e22=Object['getOwnPropertyDescriptor'],_0x4ad47c=(_0x3f3454,_0xc525c7,_0x2aa651,_0x5973cc)=>{const _0x5731a0=_0x144fb0;for(var _0x58a3d6=_0x5973cc>0x1?void 0x0:_0x5973cc?_0x1b4e22(_0xc525c7,_0x2aa651):_0xc525c7,_0x3be75a=_0x3f3454[_0x5731a0(0x118)]-0x1,_0x4dcf61;_0x3be75a>=0x0;_0x3be75a--)(_0x4dcf61=_0x3f3454[_0x3be75a])&&(_0x58a3d6=(_0x5973cc?_0x4dcf61(_0xc525c7,_0x2aa651,_0x58a3d6):_0x4dcf61(_0x58a3d6))||_0x58a3d6);return _0x5973cc&&_0x58a3d6&&_0x580d17(_0xc525c7,_0x2aa651,_0x58a3d6),_0x58a3d6;},_0x2d5c8c=(_0x1ecc57,_0x515767)=>(_0x4caa98,_0x4e38b6)=>_0x515767(_0x4caa98,_0x4e38b6,_0x1ecc57);_0x4c8f94[_0x144fb0(0x10e)]=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x5d3df1,_0xb25b73,_0x4fbbac){const _0x5a61c3=_0x144fb0;super(),_0x3e782f(this,_0x5a61c3(0x3b0),new Map()),_0x3e782f(this,_0x5a61c3(0x391),new _0x284d0[(_0x5a61c3(0x12d))]()),(this[_0x5a61c3(0x2fc)]=_0x5d3df1,this[_0x5a61c3(0x4b7)]=_0xb25b73,this[_0x5a61c3(0xc8)]=_0x4fbbac,this['_init']());}[_0x144fb0(0x320)](){const _0x51bd7b=_0x144fb0;super[_0x51bd7b(0x320)](),this[_0x51bd7b(0x3b0)][_0x51bd7b(0x478)](_0x597664=>_0x597664[_0x51bd7b(0x320)]()),this[_0x51bd7b(0x3b0)][_0x51bd7b(0xb4)]();}[_0x144fb0(0x407)](_0x220dd9){const _0x42e738=_0x144fb0;var _0x20f3f0;return(_0x20f3f0=this[_0x42e738(0x3b0)]['get'](_0x220dd9))!=null?_0x20f3f0:null;}['getCollabEntity$'](_0x5e432d){const _0xb9c35d=_0x144fb0,_0xebbdb0=this[_0xb9c35d(0x407)](_0x5e432d);return _0xebbdb0?_0x284d0['of'](_0xebbdb0):this[_0xb9c35d(0x391)][_0xb9c35d(0x34d)](_0x3e7ea3['filter'](_0x5789f0=>_0x5789f0['unitID']===_0x5e432d));}[_0x144fb0(0x198)](){const _0x48d0c0=_0x144fb0;this[_0x48d0c0(0xc8)][_0x48d0c0(0x362)](_0x20df93['UniverInstanceType'][_0x48d0c0(0x4bf)])[_0x48d0c0(0x34d)](_0x284d0['takeUntil'](this[_0x48d0c0(0x288)]),_0x3e7ea3[_0x48d0c0(0x36e)](0x10))['subscribe'](async _0xc2fece=>{const _0x4c7017=_0x48d0c0,_0x1d8ee1=_0xc2fece[_0x4c7017(0x1fd)](),_0x110663=await this[_0x4c7017(0xae)](_0x1d8ee1,_0x3dff5a[_0x4c7017(0x4bf)]);this[_0x4c7017(0x3b0)]['set'](_0x1d8ee1,_0x110663);}),this[_0x48d0c0(0xc8)][_0x48d0c0(0x362)](_0x20df93[_0x48d0c0(0x441)][_0x48d0c0(0x126)])['pipe'](_0x284d0[_0x48d0c0(0xa0)](this[_0x48d0c0(0x288)]),_0x3e7ea3[_0x48d0c0(0x36e)](0x10))[_0x48d0c0(0x34d)](_0x3e7ea3[_0x48d0c0(0x4a2)](_0x3b553a=>!_0x3b553a['getUnitId']()['startsWith']('__')))[_0x48d0c0(0xda)](async _0x395fb5=>{const _0x2cdca9=_0x48d0c0,_0x34b517=_0x395fb5[_0x2cdca9(0x1fd)](),_0x13701d=await this[_0x2cdca9(0xae)](_0x34b517,_0x3dff5a['UNIVER_DOC']);this[_0x2cdca9(0x3b0)][_0x2cdca9(0x271)](_0x34b517,_0x13701d);}),_0x284d0[_0x48d0c0(0x8c)](this['_univerInstanceService'][_0x48d0c0(0x1a1)](_0x20df93['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x20df93[_0x48d0c0(0x441)][_0x48d0c0(0x126)]))[_0x48d0c0(0x34d)](_0x284d0[_0x48d0c0(0xa0)](this[_0x48d0c0(0x288)]))[_0x48d0c0(0xda)](_0x187256=>{const _0x27491d=_0x48d0c0,_0x44e134=_0x187256['getUnitId'](),_0x5b12c8=this['_entities'][_0x27491d(0x3b8)](_0x44e134);_0x5b12c8&&(_0x5b12c8['dispose'](),this[_0x27491d(0x3b0)][_0x27491d(0x32d)](_0x44e134));});}async[_0x144fb0(0xae)](_0x2c89e1,_0x49bbec){const _0x3d9943=_0x144fb0,_0xf778be=await this[_0x3d9943(0x4b7)][_0x3d9943(0x24e)](_0x2c89e1),_0x48e8df=this['_injector']['createInstance'](this[_0x3d9943(0x9d)](_0x49bbec),_0x2c89e1,_0x49bbec,_0xf778be);return await _0x48e8df[_0x3d9943(0x1e3)](),this[_0x3d9943(0x391)][_0x3d9943(0x25d)](_0x48e8df),_0x48e8df;}[_0x144fb0(0x9d)](_0x4904ad){const _0x5a6a4b=_0x144fb0;switch(_0x4904ad){case _0x3dff5a[_0x5a6a4b(0x126)]:return _0x4c8f94[_0x5a6a4b(0x184)];case _0x3dff5a[_0x5a6a4b(0x4bf)]:return _0x4c8f94[_0x5a6a4b(0xf0)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4904ad);}}},_0x4c8f94['CollaborationController']=_0x4ad47c([_0x2d5c8c(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x2d5c8c(0x1,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x491)])),_0x2d5c8c(0x2,_0x20df93[_0x144fb0(0x292)])],_0x4c8f94[_0x144fb0(0x10e)]);const _0x21fa97=[_0x144fb0(0x2e0),_0x144fb0(0x32c),_0x144fb0(0x293),_0x144fb0(0x2ff),'blue400',_0x144fb0(0x191)];class _0x402c47 extends _0x20df93[_0x144fb0(0x343)]{constructor(){const _0x3c2de3=_0x144fb0;super(...arguments),_0x3e782f(this,_0x3c2de3(0x216),new Map()),_0x3e782f(this,_0x3c2de3(0x476),0x0);}[_0x144fb0(0x108)](_0xd82e66){const _0xdcb706=_0x144fb0;if(this[_0xdcb706(0x216)][_0xdcb706(0x26d)](_0xd82e66))return this[_0xdcb706(0x216)][_0xdcb706(0x3b8)](_0xd82e66);const _0x1cebc1=_0x21fa97[this[_0xdcb706(0x476)]];return this[_0xdcb706(0x476)]=(this[_0xdcb706(0x476)]+0x1)%_0x21fa97['length'],this['_assignedColors'][_0xdcb706(0x271)](_0xd82e66,_0x1cebc1),_0x1cebc1;}}var _0x27aec5=Object[_0x144fb0(0x395)],_0x37e27b=Object[_0x144fb0(0x457)],_0x4f4570=(_0x33464f,_0x3cbbc7,_0x22ca74,_0x599821)=>{const _0x34fb4e=_0x144fb0;for(var _0x41b97b=_0x599821>0x1?void 0x0:_0x599821?_0x37e27b(_0x3cbbc7,_0x22ca74):_0x3cbbc7,_0x438542=_0x33464f[_0x34fb4e(0x118)]-0x1,_0x398add;_0x438542>=0x0;_0x438542--)(_0x398add=_0x33464f[_0x438542])&&(_0x41b97b=(_0x599821?_0x398add(_0x3cbbc7,_0x22ca74,_0x41b97b):_0x398add(_0x41b97b))||_0x41b97b);return _0x599821&&_0x41b97b&&_0x27aec5(_0x3cbbc7,_0x22ca74,_0x41b97b),_0x41b97b;},_0x49c543=(_0x36d098,_0x5f05c1)=>(_0x4cad2e,_0x94d3fb)=>_0x5f05c1(_0x4cad2e,_0x94d3fb,_0x36d098);const _0x36fcce=0x12c,_0x44e139=0x64;let _0x46da6f=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x3ec57d,_0x2c9125,_0x2da59b,_0x34d8e8,_0x16cd10,_0x43755d,_0x7d1ea6,_0x148872,_0x4e9d87){const _0x43b025=_0x144fb0;super(),_0x3e782f(this,_0x43b025(0x21f),!0x1),_0x3e782f(this,_0x43b025(0x198),!0x1),_0x3e782f(this,'_cursorInfo$',new _0x284d0[(_0x43b025(0x237))](new Map())),_0x3e782f(this,_0x43b025(0x40f),this[_0x43b025(0x1ad)][_0x43b025(0x17e)]()),_0x3e782f(this,_0x43b025(0x38a),new _0x284d0[(_0x43b025(0x237))]([])),_0x3e782f(this,_0x43b025(0x386),this['_roomMembers$']['pipe'](_0x284d0[_0x43b025(0x35b)](_0x36fcce))),_0x3e782f(this,_0x43b025(0x269),_0x20df93[_0x43b025(0x1cc)](_0xde08d7=>{const _0x281110=_0x43b025,_0x54f8aa={'eventID':_0x55cc56[_0x281110(0xf4)][_0x281110(0x168)],'data':{'unitID':this[_0x281110(0x239)],'memberID':this[_0x281110(0xb0)][_0x281110(0x483)](),'selection':_0x3f4458(_0xde08d7)}};this[_0x281110(0xb0)]['send'](_0x54f8aa,this[_0x281110(0x239)]);},_0x44e139)),(this[_0x43b025(0x239)]=_0x3ec57d,this[_0x43b025(0xb0)]=_0x2c9125,this[_0x43b025(0x2fc)]=_0x2da59b,this[_0x43b025(0x456)]=_0x34d8e8,this[_0x43b025(0x486)]=_0x16cd10,this[_0x43b025(0x2b6)]=_0x43755d,this[_0x43b025(0x3dd)]=_0x7d1ea6,this[_0x43b025(0xc8)]=_0x148872,this[_0x43b025(0x2d1)]=_0x4e9d87);}get[_0x144fb0(0x35c)](){const _0x5e8aeb=_0x144fb0;return this[_0x5e8aeb(0x1ad)][_0x5e8aeb(0x183)]();}get[_0x144fb0(0xa2)](){const _0x3d4725=_0x144fb0;return this[_0x3d4725(0x38a)][_0x3d4725(0x183)]();}['dispose'](){const _0x21841c=_0x144fb0;super[_0x21841c(0x320)](),this['_cursorInfo$']['next'](new Map()),this[_0x21841c(0x1ad)][_0x21841c(0x25e)](),this[_0x21841c(0x38a)][_0x21841c(0x25d)]([]),this[_0x21841c(0x38a)][_0x21841c(0x25e)]();}[_0x144fb0(0x1e3)](){const _0x5cbd47=_0x144fb0;this[_0x5cbd47(0x198)]||(this[_0x5cbd47(0x198)]=!0x0,this['_session'][_0x5cbd47(0x48d)][_0x5cbd47(0x34d)](_0x284d0[_0x5cbd47(0xa0)](this[_0x5cbd47(0x288)]))['subscribe'](_0x3110a5=>{const _0x8eff8b=_0x5cbd47;_0x3110a5===_0x4d48e1['ONLINE']?this[_0x8eff8b(0x12c)]():this['_toggleOffline']();}),this['_session']['event$'][_0x5cbd47(0x34d)](_0x284d0['takeUntil'](this[_0x5cbd47(0x288)]))[_0x5cbd47(0xda)](_0x44c92d=>{const _0x79d2b8=_0x5cbd47,_0x5db569=_0x44c92d[_0x79d2b8(0x109)];_0x5db569===_0x55cc56[_0x79d2b8(0xf4)][_0x79d2b8(0x168)]&&this[_0x79d2b8(0xe3)](_0x44c92d),_0x5db569===_0x55cc56[_0x79d2b8(0xf4)][_0x79d2b8(0x177)]&&this[_0x79d2b8(0x2c5)](_0x44c92d);}),this['disposeWithMe'](this[_0x5cbd47(0x2d1)]['onCommandExecuted'](_0x37b129=>{const _0x3df3b8=_0x5cbd47,_0x251f31=_0x37b129[_0x3df3b8(0xa3)];_0x251f31!=null&&this[_0x3df3b8(0x21f)]&&_0x37b129['id']===_0x280e9c['SetTextSelectionsOperation']['id']&&_0x251f31[_0x3df3b8(0x1b7)]===this['unitID']&&_0x251f31[_0x3df3b8(0x1c0)]===!0x1&&this[_0x3df3b8(0x269)](_0x251f31['ranges']);})),this[_0x5cbd47(0x2b6)]['collabCursorState$'][_0x5cbd47(0x34d)](_0x284d0['takeUntil'](this[_0x5cbd47(0x288)]))['subscribe'](_0xe1dbbf=>{const _0xffae94=_0x5cbd47;if((_0xe1dbbf==null?void 0x0:_0xe1dbbf['unitID'])!==this[_0xffae94(0x239)])return;const _0xed4fe0={'eventID':_0x55cc56[_0xffae94(0xf4)][_0xffae94(0x168)],'data':_0xe1dbbf};this['_onCursorUpdate'](_0xed4fe0);}),this['disposeWithMe'](this[_0x5cbd47(0x2d1)][_0x5cbd47(0x3f9)](_0x42952d=>{const _0x1f6c9f=_0x5cbd47;if(_0x42952d[_0x1f6c9f(0xa3)]==null)return;const _0x55adb8=_0x42952d[_0x1f6c9f(0xa3)];if(_0x42952d['id']!==_0x280e9c[_0x1f6c9f(0x24a)]['id']||_0x55adb8[_0x1f6c9f(0x1b7)]!==this[_0x1f6c9f(0x239)])return;const _0xf573cf={'id':'doc.mutation.rich-text-editing','params':_0x55adb8},_0x48d87d=this[_0x1f6c9f(0x35c)];for(const [_0x4675e5,_0x5ac168]of _0x48d87d){const _0x41ba56={'id':_0x1f6c9f(0xbb),'params':{'unitId':this[_0x1f6c9f(0x239)],'actions':null,'textRanges':_0x5ac168[_0x1f6c9f(0x4a7)]}},_0x36064d=this[_0x1f6c9f(0x3dd)][_0x1f6c9f(0x469)](_0xf573cf,_0x41ba56,!0x1);if(_0x55cc56['isTransformMutationFailure'](_0x36064d))throw _0x36064d[_0x1f6c9f(0x37d)];_0x48d87d[_0x1f6c9f(0x271)](_0x4675e5,{..._0x5ac168,'ranges':_0x36064d['m2Prime'][_0x1f6c9f(0xa3)][_0x1f6c9f(0x14f)]});}queueMicrotask(()=>{const _0x5f4aa5=_0x1f6c9f;this[_0x5f4aa5(0x1ad)][_0x5f4aa5(0x25d)](_0x48d87d);});})));}[_0x144fb0(0xe3)](_0x48a64f){const _0x5525ee=_0x144fb0;var _0x12af10,_0x538bcb;const {memberID:_0x54cb83,selection:_0x4be0e4}=_0x48a64f[_0x5525ee(0x24b)],_0x4f82ee=_0x161949(_0x4be0e4),_0x327b4d=(_0x538bcb=(_0x12af10=this[_0x5525ee(0x486)][_0x5525ee(0x93)](this['unitID'],_0x54cb83))==null?void 0x0:_0x12af10[_0x5525ee(0x2b4)])!=null?_0x538bcb:'Unknown\x20user',_0x3b401c={'color':this['_colorAssignService'][_0x5525ee(0x108)](_0x54cb83),'name':_0x327b4d,'ranges':_0x4f82ee},_0x46bffc=this[_0x5525ee(0x35c)];_0x46bffc[_0x5525ee(0x271)](_0x54cb83,_0x3b401c),this['_cursorInfo$'][_0x5525ee(0x25d)](_0x46bffc);}[_0x144fb0(0x2c5)](_0x437b7b){const _0x1a87e2=_0x144fb0,{memberID:_0x50174a}=_0x437b7b[_0x1a87e2(0x24b)],_0x102bf6=this[_0x1a87e2(0x35c)];_0x102bf6[_0x1a87e2(0x32d)](_0x50174a),this[_0x1a87e2(0x1ad)][_0x1a87e2(0x25d)](_0x102bf6);}[_0x144fb0(0x12c)](){const _0x375d1d=_0x144fb0;var _0x108117;if(this[_0x375d1d(0x21f)]=!0x0,((_0x108117=this[_0x375d1d(0xc8)][_0x375d1d(0x138)]())==null?void 0x0:_0x108117[_0x375d1d(0x1fd)]())!==this[_0x375d1d(0x239)])return;const _0x554577=this[_0x375d1d(0x2fc)][_0x375d1d(0x3b8)](_0x280e9c['DocSelectionManagerService'])[_0x375d1d(0x151)]();Array[_0x375d1d(0x130)](_0x554577)&&_0x554577[_0x375d1d(0x118)]>0x0&&this['_updateLocalCursor'](_0x554577);}[_0x144fb0(0x3f6)](){this['_online']=!0x1;}};_0x46da6f=_0x4f4570([_0x49c543(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x49c543(0x3,_0x20df93[_0x144fb0(0xdd)](_0x402c47)),_0x49c543(0x4,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0x49c543(0x5,_0x20df93[_0x144fb0(0xdd)](_0x1ab040)),_0x49c543(0x6,_0x55cc56[_0x144fb0(0x1bd)]),_0x49c543(0x7,_0x20df93[_0x144fb0(0x292)]),_0x49c543(0x8,_0x20df93[_0x144fb0(0x338)])],_0x46da6f);var _0x4ff2f8=Object[_0x144fb0(0x395)],_0x67a454=Object[_0x144fb0(0x457)],_0x3afc70=(_0x2c641a,_0x2fb6b2,_0x5106ad,_0x173b75)=>{const _0x3bf8b4=_0x144fb0;for(var _0x1315e2=_0x173b75>0x1?void 0x0:_0x173b75?_0x67a454(_0x2fb6b2,_0x5106ad):_0x2fb6b2,_0x5506b3=_0x2c641a[_0x3bf8b4(0x118)]-0x1,_0x57910f;_0x5506b3>=0x0;_0x5506b3--)(_0x57910f=_0x2c641a[_0x5506b3])&&(_0x1315e2=(_0x173b75?_0x57910f(_0x2fb6b2,_0x5106ad,_0x1315e2):_0x57910f(_0x1315e2))||_0x1315e2);return _0x173b75&&_0x1315e2&&_0x4ff2f8(_0x2fb6b2,_0x5106ad,_0x1315e2),_0x1315e2;},_0x3a353f=(_0x1caee8,_0xad3109)=>(_0x27ea51,_0x2e359f)=>_0xad3109(_0x27ea51,_0x2e359f,_0x1caee8);const _0x59d817=0x12c,_0x127e9c=0x64,_0x2b8a0f=()=>{let _0x469057=[],_0x4d1f26=!0x1;return _0x1a6209=>{const _0x3e4469=_0x205f;_0x469057[_0x3e4469(0x20e)](_0x1a6209),_0x4d1f26||(_0x4d1f26=!0x0,setTimeout(()=>{_0x469057['forEach'](_0x4750a5=>_0x4750a5()),_0x469057=[],_0x4d1f26=!0x1;}));};};let _0x3e98cd=class extends _0x20df93['RxDisposable']{constructor(_0x78fe8f,_0x420fcc,_0x4e3dd3,_0x527424,_0x3b2cb0,_0x316997,_0x25cbd2,_0xbb591c){const _0x1e7891=_0x144fb0;super(),_0x3e782f(this,_0x1e7891(0x21f),!0x1),_0x3e782f(this,_0x1e7891(0x198),!0x1),_0x3e782f(this,_0x1e7891(0x1ad),new _0x284d0[(_0x1e7891(0x237))](new Map())),_0x3e782f(this,'cursorInfo$',this['_cursorInfo$'][_0x1e7891(0x17e)]()),_0x3e782f(this,_0x1e7891(0x38a),new _0x284d0[(_0x1e7891(0x237))]([])),_0x3e782f(this,_0x1e7891(0x386),this[_0x1e7891(0x38a)]['pipe'](_0x284d0[_0x1e7891(0x35b)](_0x59d817))),_0x3e782f(this,_0x1e7891(0x269),_0x20df93[_0x1e7891(0x1cc)]((_0x4810aa,_0x3b7c20)=>{const _0x4801af=_0x1e7891,_0x26f166={'eventID':_0x55cc56['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x4801af(0x239)],'memberID':this[_0x4801af(0xb0)]['getMemberID'](),'selection':_0x32a48b[_0x4801af(0x256)](_0x4810aa,_0x3b7c20[_0x4801af(0x300)])}};this[_0x4801af(0xb0)][_0x4801af(0x31c)](_0x26f166,this[_0x4801af(0x239)]);},_0x127e9c)),(this['unitID']=_0x78fe8f,this[_0x1e7891(0xb0)]=_0x420fcc,this[_0x1e7891(0x2fc)]=_0x4e3dd3,this['_colorAssignService']=_0x527424,this[_0x1e7891(0x486)]=_0x3b2cb0,this[_0x1e7891(0xc8)]=_0x316997,this[_0x1e7891(0x2d1)]=_0x25cbd2,this[_0x1e7891(0x351)]=_0xbb591c);}get[_0x144fb0(0x35c)](){const _0x3cd244=_0x144fb0;return this[_0x3cd244(0x1ad)][_0x3cd244(0x183)]();}get[_0x144fb0(0xa2)](){const _0x2aea31=_0x144fb0;return this[_0x2aea31(0x38a)][_0x2aea31(0x183)]();}[_0x144fb0(0x320)](){const _0x36c98e=_0x144fb0;super[_0x36c98e(0x320)](),this[_0x36c98e(0x1ad)]['next'](new Map()),this[_0x36c98e(0x1ad)]['complete'](),this[_0x36c98e(0x38a)]['next']([]),this[_0x36c98e(0x38a)][_0x36c98e(0x25e)]();}['init'](){const _0x4ae208=_0x144fb0;this['_init']||(this[_0x4ae208(0x198)]=!0x0,this[_0x4ae208(0xb0)]['sessionStatus$']['pipe'](_0x284d0['takeUntil'](this[_0x4ae208(0x288)]))['subscribe'](_0x22ef43=>{const _0x4c7825=_0x4ae208;_0x22ef43===_0x4d48e1[_0x4c7825(0x16b)]?this[_0x4c7825(0x12c)]():this[_0x4c7825(0x3f6)]();}),this['_session'][_0x4ae208(0x435)][_0x4ae208(0x34d)](_0x284d0[_0x4ae208(0xa0)](this[_0x4ae208(0x288)]))[_0x4ae208(0xda)](_0x4567b7=>{const _0x16b794=_0x4ae208,_0x4f316c=_0x4567b7[_0x16b794(0x109)];_0x4f316c===_0x55cc56['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4567b7),_0x4f316c===_0x55cc56[_0x16b794(0xf4)]['USERS_LEAVE']&&this[_0x16b794(0x2c5)](_0x4567b7);}),this['_onRefRangeChange'](),this[_0x4ae208(0x397)](this[_0x4ae208(0x2d1)][_0x4ae208(0x3f9)](_0x2447f7=>{const _0x45723a=_0x4ae208;if(this[_0x45723a(0x21f)]&&_0x2447f7['id']===_0x5dce24[_0x45723a(0x404)]['id']&&_0x2447f7[_0x45723a(0xa3)]['unitId']===this['unitID']){const _0x5d38fd=_0x2447f7['params'];this['_updateLocalCursor'](_0x5d38fd[_0x45723a(0x248)],_0x5d38fd[_0x45723a(0x3a2)][0x0]);}})));}[_0x144fb0(0xe3)](_0x467f28){const _0xc2ed9f=_0x144fb0;var _0x14a1bf,_0x27ec99;const {memberID:_0x48ab5d,selection:_0x460bcb}=_0x467f28[_0xc2ed9f(0x24b)],{sheetName:_0x5b605b,range:_0x1d1053}=_0x32a48b['deserializeRangeWithSheet'](_0x460bcb),_0x38ae03={'name':(_0x27ec99=(_0x14a1bf=this['_memberService'][_0xc2ed9f(0x93)](this[_0xc2ed9f(0x239)],_0x48ab5d))==null?void 0x0:_0x14a1bf['name'])!=null?_0x27ec99:'Unknown\x20user','range':this[_0xc2ed9f(0x2a4)](_0x5b605b,_0x1d1053),'sheetID':_0x5b605b,'color':this[_0xc2ed9f(0x456)][_0xc2ed9f(0x108)](_0x48ab5d),'selection':_0x460bcb},_0x5e28f5=this[_0xc2ed9f(0x35c)];_0x5e28f5['set'](_0x48ab5d,_0x38ae03),this[_0xc2ed9f(0x1ad)][_0xc2ed9f(0x25d)](_0x5e28f5);}[_0x144fb0(0x2c5)](_0x58d173){const _0x41044e=_0x144fb0,{memberID:_0x8b28d7}=_0x58d173[_0x41044e(0x24b)],_0x58b6b6=this[_0x41044e(0x35c)];_0x58b6b6['delete'](_0x8b28d7),this[_0x41044e(0x1ad)][_0x41044e(0x25d)](_0x58b6b6);}['_getMergeRange'](_0x51dcb2,_0x2d4d4a){const _0x24ca19=_0x144fb0;var _0x3ecb15,_0x7d021c;const _0x3684fc=(_0x7d021c=(_0x3ecb15=this['_univerInstanceService'][_0x24ca19(0x4ab)](this['unitID']))==null?void 0x0:_0x3ecb15[_0x24ca19(0x3ac)](_0x51dcb2))==null?void 0x0:_0x7d021c[_0x24ca19(0x405)]();return(_0x3684fc==null?void 0x0:_0x3684fc[_0x24ca19(0x33d)](_0x2a500d=>_0x20df93['Rectangle'][_0x24ca19(0x380)](_0x2a500d,_0x2d4d4a)))||_0x2d4d4a;}[_0x144fb0(0x219)](){const _0x26bd86=_0x144fb0,_0x514a08=new _0x20df93[(_0x26bd86(0x213))](),_0x255e61=_0x2b8a0f(),_0x288360=()=>{const _0x130014=_0x26bd86;_0x514a08[_0x130014(0x320)]();const _0x56594f=(_0x105f9c,_0x412185,_0x3765e9,_0x4e884f)=>{const _0x5c2db1=_0x130014;let _0xce39b0=[];switch(_0x105f9c['id']){case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x27f)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x18d)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x451)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x17a)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x1f0)]:{_0xce39b0=_0x5dce24['handleInsertCol'](_0x105f9c,_0x4e884f);break;}case _0x5dce24['EffectRefRangId'][_0x5c2db1(0x15a)]:{_0xce39b0=_0x5dce24['handleInsertRangeMoveDown'](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0xf6)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x10b)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)]['InsertRowCommandId']:{_0xce39b0=_0x5dce24['handleInsertRow'](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x4c3)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x3d2)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x46d)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x29d)](_0x105f9c,_0x4e884f);break;}case _0x5dce24['EffectRefRangId'][_0x5c2db1(0x201)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x350)](_0x105f9c,_0x4e884f);break;}}const _0x1bd80d=_0x5dce24[_0x5c2db1(0x390)](_0xce39b0,_0x4e884f),_0x1006cc=this[_0x5c2db1(0x35c)]['get'](_0x412185);if(_0x1006cc&&_0x1bd80d){const _0x35e4b5={..._0x1006cc,'range':_0x1bd80d};this['cursorInfo'][_0x5c2db1(0x271)](_0x412185,_0x35e4b5),_0x255e61(()=>{const _0x13262e=_0x5c2db1,_0x4c8c1c=this['_refRangeService']['registerRefRange'](_0x1bd80d,_0x11f209=>(_0x4c8c1c['dispose'](),_0x56594f(_0x11f209,_0x412185,_0x3765e9,_0x1bd80d)));_0x514a08[_0x13262e(0x4bc)](_0x4c8c1c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x130014(0x478)]((_0x5ce4ce,_0x365d10)=>{const _0x268200=_0x130014,{range:_0x4ea229,sheetID:_0x704232}=_0x5ce4ce,_0x1c1bab=this[_0x268200(0x351)]['registerRefRange'](_0x4ea229,_0x2fd954=>(_0x1c1bab[_0x268200(0x320)](),_0x56594f(_0x2fd954,_0x365d10,_0x704232,_0x4ea229)));_0x514a08[_0x268200(0x4bc)](_0x1c1bab);});};this[_0x26bd86(0x397)](_0x20df93['toDisposable'](this[_0x26bd86(0x1ad)][_0x26bd86(0xda)](()=>{_0x288360();})));}[_0x144fb0(0x12c)](){const _0x14ce03=_0x144fb0;var _0x42fe64,_0x188513;if(this[_0x14ce03(0x21f)]=!0x0,((_0x42fe64=this['_univerInstanceService'][_0x14ce03(0x138)]())==null?void 0x0:_0x42fe64[_0x14ce03(0x1fd)]())!==this[_0x14ce03(0x239)])return;const _0x416942=(_0x188513=this[_0x14ce03(0x2fc)][_0x14ce03(0x3b8)](_0x5dce24[_0x14ce03(0x205)])[_0x14ce03(0x19a)]())==null?void 0x0:_0x188513[0x0],_0x2b136b=this[_0x14ce03(0xc8)][_0x14ce03(0xe9)](_0x20df93[_0x14ce03(0x441)][_0x14ce03(0x4bf)])['getActiveSheet']();_0x416942&&_0x2b136b&&this[_0x14ce03(0x269)](_0x2b136b[_0x14ce03(0x3c9)](),_0x416942);}[_0x144fb0(0x3f6)](){const _0x1851cd=_0x144fb0;this[_0x1851cd(0x21f)]=!0x1;}};_0x3e98cd=_0x3afc70([_0x3a353f(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x3a353f(0x3,_0x20df93[_0x144fb0(0xdd)](_0x402c47)),_0x3a353f(0x4,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0x3a353f(0x5,_0x20df93[_0x144fb0(0x292)]),_0x3a353f(0x6,_0x20df93[_0x144fb0(0x338)]),_0x3a353f(0x7,_0x20df93['Inject'](_0x5dce24[_0x144fb0(0x2de)]))],_0x3e98cd);var _0x559282=Object[_0x144fb0(0x395)],_0x4e272a=Object[_0x144fb0(0x457)],_0x20c5d1=(_0x3ce7a2,_0x264e06,_0x51f37c,_0x5ba8cc)=>{const _0x4474b9=_0x144fb0;for(var _0x26cb65=_0x5ba8cc>0x1?void 0x0:_0x5ba8cc?_0x4e272a(_0x264e06,_0x51f37c):_0x264e06,_0x172b64=_0x3ce7a2[_0x4474b9(0x118)]-0x1,_0x3ab2ff;_0x172b64>=0x0;_0x172b64--)(_0x3ab2ff=_0x3ce7a2[_0x172b64])&&(_0x26cb65=(_0x5ba8cc?_0x3ab2ff(_0x264e06,_0x51f37c,_0x26cb65):_0x3ab2ff(_0x26cb65))||_0x26cb65);return _0x5ba8cc&&_0x26cb65&&_0x559282(_0x264e06,_0x51f37c,_0x26cb65),_0x26cb65;},_0x590907=(_0x4ddc65,_0x211168)=>(_0x1b1d32,_0x2a136b)=>_0x211168(_0x1b1d32,_0x2a136b,_0x4ddc65);let _0x297695=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x179c82,_0x351185,_0x55cedf){const _0x5e53a5=_0x144fb0;super(),_0x3e782f(this,_0x5e53a5(0x3b0),new Map()),_0x3e782f(this,_0x5e53a5(0x391),new _0x284d0[(_0x5e53a5(0x12d))]()),(this[_0x5e53a5(0xc8)]=_0x179c82,this['_injector']=_0x351185,this[_0x5e53a5(0x4b7)]=_0x55cedf,this[_0x5e53a5(0x198)]());}[_0x144fb0(0x320)](){const _0x165c19=_0x144fb0;super[_0x165c19(0x320)](),this[_0x165c19(0x391)]['complete'](),this[_0x165c19(0x3b0)][_0x165c19(0x478)](_0x707ae0=>_0x707ae0['dispose']());}[_0x144fb0(0x289)](_0xdcbb03){const _0x2d8748=_0x144fb0;return this[_0x2d8748(0x3b0)][_0x2d8748(0x26d)](_0xdcbb03)?this[_0x2d8748(0x3b0)][_0x2d8748(0x3b8)](_0xdcbb03)[_0x2d8748(0x40f)]:this[_0x2d8748(0x391)][_0x2d8748(0x34d)](_0x284d0[_0x2d8748(0x4a2)](_0x3939b4=>_0x3939b4['unitID']===_0xdcbb03),_0x284d0[_0x2d8748(0x383)](_0x3dde71=>_0x3dde71['cursorInfo$']));}[_0x144fb0(0x198)](){const _0x5a7c2a=_0x144fb0;this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x362)](_0x20df93[_0x5a7c2a(0x441)][_0x5a7c2a(0x4bf)])['pipe'](_0x284d0[_0x5a7c2a(0xa0)](this[_0x5a7c2a(0x288)]))[_0x5a7c2a(0xda)](async _0x3f3815=>{const _0x47493=_0x5a7c2a,_0x33f6c9=_0x3f3815[_0x47493(0x1fd)](),_0x3aee7f=await this[_0x47493(0x223)](_0x33f6c9);this['_entityInit$']['next'](_0x3aee7f),this[_0x47493(0x3b0)][_0x47493(0x271)](_0x33f6c9,_0x3aee7f);}),this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x362)](_0x20df93[_0x5a7c2a(0x441)]['UNIVER_DOC'])[_0x5a7c2a(0x34d)](_0x284d0[_0x5a7c2a(0xa0)](this['dispose$']))[_0x5a7c2a(0x34d)](_0x284d0[_0x5a7c2a(0x4a2)](_0x25edad=>!_0x25edad['getUnitId']()[_0x5a7c2a(0x36b)]('__')))[_0x5a7c2a(0xda)](async _0xa67bf6=>{const _0x32e03e=_0x5a7c2a,_0x1b8d3f=_0xa67bf6[_0x32e03e(0x1fd)](),_0x522506=await this[_0x32e03e(0x159)](_0x1b8d3f);this[_0x32e03e(0x391)][_0x32e03e(0x25d)](_0x522506),this['_entities'][_0x32e03e(0x271)](_0x1b8d3f,_0x522506);}),_0x284d0[_0x5a7c2a(0x8c)](this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x1a1)](_0x20df93[_0x5a7c2a(0x441)][_0x5a7c2a(0x126)]),this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x1a1)](_0x20df93[_0x5a7c2a(0x441)][_0x5a7c2a(0x4bf)]))[_0x5a7c2a(0x34d)](_0x284d0['takeUntil'](this[_0x5a7c2a(0x288)]))[_0x5a7c2a(0xda)](_0x3d41d0=>{const _0x55b6f2=_0x5a7c2a,_0x4c4e98=_0x3d41d0['getUnitId'](),_0x19f066=this[_0x55b6f2(0x3b0)][_0x55b6f2(0x3b8)](_0x4c4e98);_0x19f066&&(_0x19f066[_0x55b6f2(0x320)](),this[_0x55b6f2(0x3b0)][_0x55b6f2(0x32d)](_0x4c4e98));});}async['_startSheetCollabCursor'](_0x4274ae){const _0xc9f24c=_0x144fb0,_0x26bf5b=await this[_0xc9f24c(0x4b7)][_0xc9f24c(0x24e)](_0x4274ae),_0x5be08a=this[_0xc9f24c(0x2fc)][_0xc9f24c(0x2f6)](_0x3e98cd,_0x4274ae,_0x26bf5b);return _0x5be08a[_0xc9f24c(0x1e3)](),_0x5be08a;}async[_0x144fb0(0x159)](_0xb415a){const _0x180436=_0x144fb0,_0x2cedb4=await this[_0x180436(0x4b7)][_0x180436(0x24e)](_0xb415a),_0x113bdf=this['_injector'][_0x180436(0x2f6)](_0x46da6f,_0xb415a,_0x2cedb4);return _0x113bdf[_0x180436(0x1e3)](),_0x113bdf;}};_0x297695=_0x20c5d1([_0x590907(0x0,_0x20df93[_0x144fb0(0x292)]),_0x590907(0x1,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x590907(0x2,_0x20df93['Inject'](_0x4c8f94['CollaborationSessionService']))],_0x297695);const _0x6a963a=0x14,_0x2bd738=0xc8,_0x19fa35=0x4,_0x4d6665=0x5;function _0x9a4a7c(_0x3fde36,_0x2dfd92){const _0x5567b4=_0x144fb0;let {radius:_0x2562d8,width:_0x27cf61,height:_0x466dac}=_0x2dfd92;_0x2562d8=_0x2562d8!=null?_0x2562d8:0x0,_0x27cf61=_0x27cf61!=null?_0x27cf61:0x1e,_0x466dac=_0x466dac!=null?_0x466dac:0x1e;let _0x54cfc8=0x0,_0x212237=0x0,_0x16975e=0x0;_0x54cfc8=_0x212237=_0x16975e=Math[_0x5567b4(0x116)](_0x2562d8,_0x27cf61/0x2,_0x466dac/0x2),_0x3fde36[_0x5567b4(0x110)](),_0x3fde36[_0x5567b4(0xbf)](_0x54cfc8,0x0),_0x3fde36[_0x5567b4(0x3ca)](_0x27cf61-_0x212237,0x0),_0x3fde36[_0x5567b4(0x167)](_0x27cf61-_0x212237,_0x212237,_0x212237,Math['PI']*0x3/0x2,0x0,!0x1),_0x3fde36[_0x5567b4(0x3ca)](_0x27cf61,_0x466dac-_0x16975e),_0x3fde36[_0x5567b4(0x167)](_0x27cf61-_0x16975e,_0x466dac-_0x16975e,_0x16975e,0x0,Math['PI']/0x2,!0x1),_0x3fde36[_0x5567b4(0x3ca)](0x0,_0x466dac),_0x3fde36[_0x5567b4(0x3ca)](0x0,_0x54cfc8),_0x3fde36['arc'](_0x54cfc8,_0x54cfc8,_0x54cfc8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3fde36[_0x5567b4(0x2af)](),_0x2dfd92[_0x5567b4(0x43c)]&&(_0x3fde36[_0x5567b4(0x450)](),_0x3fde36[_0x5567b4(0x3fb)]=_0x2dfd92['fill'],_0x2dfd92[_0x5567b4(0x165)]===_0x5567b4(0x45d)?_0x3fde36[_0x5567b4(0x43c)](_0x5567b4(0x45d)):_0x3fde36[_0x5567b4(0x43c)](),_0x3fde36[_0x5567b4(0x11b)]());}class _0x33c884 extends _0x1ff35a['Shape']{constructor(_0x1bae8e,_0x2f354d){const _0x8f2ea1=_0x144fb0;super(_0x1bae8e,_0x2f354d),_0x3e782f(this,_0x8f2ea1(0x423)),_0x3e782f(this,_0x8f2ea1(0xe1)),(this[_0x8f2ea1(0x423)]=_0x2f354d==null?void 0x0:_0x2f354d[_0x8f2ea1(0x423)],this[_0x8f2ea1(0xe1)]=_0x2f354d==null?void 0x0:_0x2f354d[_0x8f2ea1(0xe1)]);}static[_0x144fb0(0x3f0)](_0x4e13e8,_0x2ab5a9){const _0x579a86=_0x144fb0,{text:_0x6a5f71,color:_0x42a0e4}=_0x2ab5a9;_0x4e13e8[_0x579a86(0x450)](),_0x4e13e8[_0x579a86(0x245)]=_0x579a86(0x4c8);const _0x37a24b=_0x4e13e8[_0x579a86(0x4ad)](_0x6a5f71)[_0x579a86(0x337)],_0x4644c2=Math['min'](_0x37a24b+0x2*_0x19fa35,_0x2bd738);_0x9a4a7c(_0x4e13e8,{'height':_0x6a963a,'radius':0x4,'width':_0x4644c2,'fill':_0x42a0e4,'evented':!0x1}),_0x4e13e8[_0x579a86(0x3fb)]=_0x579a86(0x325);const _0x116b6a=_0x19fa35,_0x4fce19=_0x6a963a-_0x4d6665,_0x38e57e=_0x2bd738-0x2*_0x19fa35;if(_0x37a24b>_0x38e57e){let _0x238b0a='',_0x4e6bd7=0x0;for(const _0x16c289 of _0x6a5f71){const _0x4ca74e=_0x4e13e8[_0x579a86(0x4ad)](_0x16c289)[_0x579a86(0x337)];if(_0x4e6bd7+_0x4ca74e<=_0x38e57e-_0x4e13e8[_0x579a86(0x4ad)](_0x579a86(0x1a5))[_0x579a86(0x337)])_0x238b0a+=_0x16c289,_0x4e6bd7+=_0x4ca74e;else{_0x238b0a+=_0x579a86(0x1a5);break;}}_0x4e13e8[_0x579a86(0xa7)](_0x238b0a,_0x116b6a,_0x4fce19);}else _0x4e13e8['fillText'](_0x6a5f71,_0x116b6a,_0x4fce19);_0x4e13e8[_0x579a86(0x11b)]();}[_0x144fb0(0x493)](_0x192bfb){const _0x4b3e01=_0x144fb0;_0x33c884[_0x4b3e01(0x3f0)](_0x192bfb,this);}}const _0x4367a0=_0x144fb0(0x229),_0xcbdac6=_0x144fb0(0x4ba),_0x5768f1='collab-rect-range-',_0x246196=0x6,_0x370a2d=1.5,_0x3e448a=0x4,_0x539f7e=1.5,_0x362036=_0x144fb0(0x2d6);class _0x2226fc{constructor(_0x19303d,_0x1a1ed4,_0x5e7f93,_0x3c9817){const _0x38e537=_0x144fb0;_0x3e782f(this,_0x38e537(0x3cb),[]),_0x3e782f(this,_0x38e537(0x2fe),null),_0x3e782f(this,_0x38e537(0x44c),null),_0x3e782f(this,_0x38e537(0x95),null),_0x3e782f(this,_0x38e537(0x29f),null),_0x3e782f(this,_0x38e537(0x1d8),null),(this['_cursor']=_0x19303d,this[_0x38e537(0x1e9)]=_0x1a1ed4,this['_docSkeleton']=_0x5e7f93,this['_document']=_0x3c9817,this[_0x38e537(0x275)]());}set[_0x144fb0(0x313)](_0x2740f0){const _0x552596=_0x144fb0;_0x2740f0?(this[_0x552596(0x95)]&&this[_0x552596(0x95)][_0x552596(0x31e)](),this[_0x552596(0x44c)]&&this[_0x552596(0x44c)]['show']()):(this[_0x552596(0x95)]&&this[_0x552596(0x95)][_0x552596(0x429)](),this[_0x552596(0x44c)]&&this[_0x552596(0x44c)]['hide']());}[_0x144fb0(0x320)](){const _0x10a00f=_0x144fb0;for(const _0x33e90f of this['_shapes'])_0x33e90f['dispose']();this[_0x10a00f(0x44c)]&&this[_0x10a00f(0x44c)]['dispose'](),this[_0x10a00f(0x95)]&&this[_0x10a00f(0x95)]['dispose'](),this[_0x10a00f(0x2fe)]&&this[_0x10a00f(0x2fe)][_0x10a00f(0x320)](),this[_0x10a00f(0x1d8)]&&this['_eventUnsubscribe']();}['_render'](){const _0x28f382=_0x144fb0;var _0x3e3fd9;const {_docSkeleton:_0x1020e3,_document:_0x2730ca}=this,{color:_0x5bd645,name:_0x287c6f,ranges:_0x11d6af}=this[_0x28f382(0x230)],_0x3eee8a=_0x2730ca[_0x28f382(0x228)](),{docsLeft:_0x88fb2c,docsTop:_0xc27d33}=_0x3eee8a,_0xd48055=new _0x3b39ef[(_0x28f382(0x474))](_0x3eee8a,_0x1020e3);for(const {startOffset:_0x23bba7,endOffset:_0x18ff3b,collapsed:_0x3420a7,isActive:_0x1ede37}of _0x11d6af){const _0x2ae635=_0x1020e3['findNodePositionByCharIndex'](_0x23bba7),_0xfdc105=_0x1020e3[_0x28f382(0x9b)](_0x18ff3b);if(_0x1ede37){const {contentBoxPointGroup:_0x168c17}=_0xd48055['getRangePointData'](_0xfdc105,_0xfdc105);if(_0x168c17[_0x28f382(0x118)]===0x0)continue;this['_drawAnchor'](_0x5bd645,_0x168c17,_0x88fb2c,_0xc27d33,_0x287c6f),this[_0x28f382(0x1d8)]=this[_0x28f382(0x2df)]();}if(!_0x3420a7&&_0x2ae635&&_0xfdc105){if(_0x3b39ef[_0x28f382(0x195)](_0x2ae635,_0xfdc105)){const _0x3de491=new _0x3b39ef['NodePositionConvertToRectRange'](_0x3eee8a,_0x1020e3),{pointGroup:_0x598988}=(_0x3e3fd9=_0x3de491[_0x28f382(0x326)](_0x2ae635,_0xfdc105))!=null?_0x3e3fd9:{};if(_0x598988==null||_0x598988['length']===0x0)continue;this[_0x28f382(0xaa)](_0x5bd645,_0x598988,_0x88fb2c,_0xc27d33);}else{const {contentBoxPointGroup:_0x3d5fd0}=_0xd48055['getRangePointData'](_0x2ae635,_0xfdc105);if(_0x3d5fd0[_0x28f382(0x118)]===0x0)continue;this[_0x28f382(0xbd)](_0x5bd645,_0x3d5fd0,_0x88fb2c,_0xc27d33);}}}}[_0x144fb0(0x240)](_0x3543f3,_0x5de9dc,_0xaa8797,_0x42e931,_0x118f77){const _0x19d380=_0x144fb0,_0x482299=this[_0x19d380(0x106)](_0x5de9dc),{left:_0x63b11e,top:_0x59340a,height:_0x568c1c}=_0x482299,_0x3c15fa=this['_getScale'](),_0xe79e6d=_0x539f7e/_0x3c15fa,_0xf1d915=new _0x1ff35a[(_0x19d380(0x36d))](_0x4367a0+_0x20df93[_0x19d380(0x1c4)][_0x19d380(0xd9)](_0x246196),{'left':_0x63b11e+_0xaa8797-_0xe79e6d,'top':_0x59340a+_0x42e931,'height':_0x568c1c,'width':_0x370a2d,'fill':_0x3543f3||_0x1ff35a['getColor'](_0x20df93[_0x19d380(0x3ba)]['black'],0x0),'strokeWidth':_0xe79e6d,'stroke':_0x362036,'evented':!0x0});this[_0x19d380(0x2fe)]=_0xf1d915,this['_scene'][_0x19d380(0x217)](_0xf1d915,_0x3b39ef[_0x19d380(0x2d9)]);const _0x4a2f91=new _0x1ff35a['Rect'](_0x4367a0+_0x20df93[_0x19d380(0x1c4)]['generateRandomId'](_0x246196),{'left':_0x63b11e+_0xaa8797-_0xe79e6d,'top':_0x59340a+_0x42e931-_0x3e448a/0x2,'height':_0x3e448a,'width':_0x3e448a,'fill':_0x3543f3||_0x1ff35a['getColor'](_0x20df93[_0x19d380(0x3ba)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x3543f3||_0x1ff35a['getColor'](_0x20df93['COLORS'][_0x19d380(0x1ae)],0x0),'evented':!0x1});this[_0x19d380(0x95)]=_0x4a2f91,this['_scene'][_0x19d380(0x217)](_0x4a2f91,_0x3b39ef[_0x19d380(0x2d9)]);const _0x3a9414=new _0x33c884(_0x4367a0+_0x20df93[_0x19d380(0x1c4)][_0x19d380(0xd9)](_0x246196),{'left':_0x63b11e+_0xaa8797-_0xe79e6d,'top':_0x59340a+_0x42e931-_0x6a963a,'text':_0x118f77,'color':_0x3543f3});this[_0x19d380(0x44c)]=_0x3a9414,this[_0x19d380(0x1e9)]['addObject'](_0x3a9414,_0x3b39ef[_0x19d380(0x2d9)]),this[_0x19d380(0x313)]=!0x1;}[_0x144fb0(0x2df)](){const _0x5600db=_0x144fb0,_0x4d12d9=this['_anchor']['onPointerEnter$'][_0x5600db(0x421)](()=>{const _0xd29e37=_0x5600db;this[_0xd29e37(0x313)]=!0x0;}),_0x452fed=this[_0x5600db(0x2fe)]['onPointerLeave$'][_0x5600db(0x421)](()=>{const _0x2dbbc3=_0x5600db;this['_hideTimer']&&clearTimeout(this[_0x2dbbc3(0x29f)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4bac66=_0x5600db;_0x4d12d9['unsubscribe'](),_0x452fed[_0x4bac66(0x128)]();};}[_0x144fb0(0xbd)](_0x19c170,_0x260e6d,_0x5ab8e1,_0x3802ae){const _0x285078=_0x144fb0,_0x3b25e8=new _0x20df93[(_0x285078(0xfb))](_0x19c170)[_0x285078(0x446)](0.2)[_0x285078(0x40b)](),_0xefdcd7=new _0x1ff35a[(_0x285078(0x361))](_0xcbdac6+_0x20df93['Tools']['generateRandomId'](_0x246196),{'pointsGroup':_0x260e6d,'fill':_0x3b25e8||_0x1ff35a[_0x285078(0x3e9)](_0x20df93[_0x285078(0x3ba)]['black'],0.2),'left':_0x5ab8e1,'top':_0x3802ae,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x285078(0x3cb)][_0x285078(0x20e)](_0xefdcd7),this[_0x285078(0x1e9)][_0x285078(0x217)](_0xefdcd7,_0x3b39ef['TEXT_RANGE_LAYER_INDEX']);}[_0x144fb0(0xaa)](_0x554b2d,_0x442bf8,_0x4b270c,_0x5c1239){const _0x32f0e6=_0x144fb0,_0x82351c=new _0x20df93[(_0x32f0e6(0xfb))](_0x554b2d)['setAlpha'](0.2)[_0x32f0e6(0x40b)](),_0x2d7e4c=new _0x1ff35a[(_0x32f0e6(0x361))](_0x5768f1+_0x20df93[_0x32f0e6(0x1c4)][_0x32f0e6(0xd9)](_0x246196),{'pointsGroup':_0x442bf8,'fill':_0x82351c||_0x1ff35a[_0x32f0e6(0x3e9)](_0x20df93[_0x32f0e6(0x3ba)][_0x32f0e6(0x1ae)],0.2),'left':_0x4b270c,'top':_0x5c1239,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32f0e6(0x3cb)]['push'](_0x2d7e4c),this[_0x32f0e6(0x1e9)][_0x32f0e6(0x217)](_0x2d7e4c,_0x3b39ef[_0x32f0e6(0x2d9)]);}[_0x144fb0(0x106)](_0x2c1b26){const _0x18f771=_0x2c1b26[0x0],_0x4581e1=_0x18f771[0x0],_0x30012a=_0x18f771[0x2],{x:_0x3c1f1e,y:_0x505c94}=_0x4581e1,{x:_0x98c3d3,y:_0x41b7c6}=_0x30012a;return{'left':_0x3c1f1e,'top':_0x505c94,'width':_0x98c3d3-_0x3c1f1e,'height':_0x41b7c6-_0x505c94};}[_0x144fb0(0x2ee)](){const _0x2c256e=_0x144fb0,{scaleX:_0x2e769,scaleY:_0x2228f0}=this[_0x2c256e(0x1e9)]['getAncestorScale']();return Math[_0x2c256e(0x480)](_0x2e769,_0x2228f0);}}var _0x3f67c7=Object[_0x144fb0(0x395)],_0xe0a14a=Object[_0x144fb0(0x457)],_0x1ef824=(_0x59c59f,_0xcc0cbc,_0x502f93,_0x1181ec)=>{for(var _0x25a407=_0x1181ec>0x1?void 0x0:_0x1181ec?_0xe0a14a(_0xcc0cbc,_0x502f93):_0xcc0cbc,_0x3cc871=_0x59c59f['length']-0x1,_0x3c5459;_0x3cc871>=0x0;_0x3cc871--)(_0x3c5459=_0x59c59f[_0x3cc871])&&(_0x25a407=(_0x1181ec?_0x3c5459(_0xcc0cbc,_0x502f93,_0x25a407):_0x3c5459(_0x25a407))||_0x25a407);return _0x1181ec&&_0x25a407&&_0x3f67c7(_0xcc0cbc,_0x502f93,_0x25a407),_0x25a407;},_0x3779a3=(_0x5285ce,_0x8477c9)=>(_0x312c76,_0x5237af)=>_0x8477c9(_0x312c76,_0x5237af,_0x5285ce);let _0x10cc5e=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x422035,_0x5ce52d,_0x47fed1,_0x1b4b27,_0x54cecb){const _0x3edd62=_0x144fb0;super(),_0x3e782f(this,_0x3edd62(0x19b),[]),_0x3e782f(this,_0x3edd62(0xa8),[]),(this[_0x3edd62(0x490)]=_0x422035,this[_0x3edd62(0x33f)]=_0x5ce52d,this['_collabCursorController']=_0x47fed1,this[_0x3edd62(0x2d1)]=_0x1b4b27,this[_0x3edd62(0x35e)]=_0x54cecb,this['_init']());}['_init'](){const _0xd13a25=_0x144fb0,_0x2de294=this['_context'][_0xd13a25(0x1b7)],_0x565b24=this[_0xd13a25(0x33f)];this['disposeWithMe'](_0x284d0['combineLatest']([this[_0xd13a25(0x257)]['getCollabCursors$'](_0x2de294),this[_0xd13a25(0x35e)][_0xd13a25(0x2d7)]])[_0xd13a25(0x34d)](_0x3e7ea3[_0xd13a25(0x296)](([_0x3f4eda,_0x2154b1])=>({'skeleton':_0x565b24[_0xd13a25(0x134)](),'cursors':[..._0x3f4eda[_0xd13a25(0x18b)]()][_0xd13a25(0x445)](_0x388456=>({..._0x388456,'color':_0x2154b1[_0x388456[_0xd13a25(0x423)]]}))})))[_0xd13a25(0xda)](_0x3274f8=>{const _0x24b995=_0xd13a25;if(this[_0x24b995(0x267)](),_0x3274f8){const {skeleton:_0xc1898b,cursors:_0x5e3c36}=_0x3274f8;this[_0x24b995(0x484)](_0xc1898b,_0x5e3c36);}})),this[_0xd13a25(0xbc)](),this[_0xd13a25(0x258)]();}[_0x144fb0(0x484)](_0x2dbc72,_0x3fbeba){const _0x31e732=_0x144fb0,{scene:_0x2fa01d,mainComponent:_0x3f40a9}=this['_context'],_0x266686=_0x3fbeba[_0x31e732(0x296)](_0x4945df=>new _0x2226fc(_0x4945df,_0x2fa01d,_0x2dbc72,_0x3f40a9));this[_0x31e732(0x19b)]=_0x266686,this[_0x31e732(0xa8)]=_0x3fbeba;}[_0x144fb0(0x339)](){const _0xb9aa16=_0x144fb0;this[_0xb9aa16(0x267)]();const {scene:_0x2eb3ad,mainComponent:_0x3a641f}=this['_context'],_0x3ad12d=this[_0xb9aa16(0x33f)][_0xb9aa16(0x134)](),_0x39f0df=this['_cursors'][_0xb9aa16(0x296)](_0x46144a=>new _0x2226fc(_0x46144a,_0x2eb3ad,_0x3ad12d,_0x3a641f));this[_0xb9aa16(0x19b)]=_0x39f0df;}[_0x144fb0(0x267)](){const _0x53fa5a=_0x144fb0;this['_cursorShapes'][_0x53fa5a(0x478)](_0x48f554=>_0x48f554[_0x53fa5a(0x320)]()),this[_0x53fa5a(0x19b)]=[];}[_0x144fb0(0x258)](){const _0x4130a4=_0x144fb0,_0x2577d1=[_0x3b39ef[_0x4130a4(0x3d6)]['id']];this['disposeWithMe'](this['_commandService'][_0x4130a4(0x3f9)](_0x45b2b6=>{const _0x5d064b=_0x4130a4;_0x2577d1[_0x5d064b(0xdb)](_0x45b2b6['id'])&&_0x45b2b6[_0x5d064b(0xa3)][_0x5d064b(0x1b7)]===this[_0x5d064b(0x490)]['unitId']&&this[_0x5d064b(0x339)]();}));}['_initResize'](){const _0x35bb09=_0x144fb0;this['disposeWithMe'](_0x20df93[_0x35bb09(0x454)](this['_context'][_0x35bb09(0x153)][_0x35bb09(0x259)])[_0x35bb09(0x34d)](_0x3e7ea3[_0x35bb09(0x4a2)](_0x18f770=>_0x18f770['type']===_0x1ff35a[_0x35bb09(0x4a9)][_0x35bb09(0x1f7)]),_0x3e7ea3[_0x35bb09(0x182)](0x10))[_0x35bb09(0xda)](()=>{const _0x5e832c=_0x35bb09;this[_0x5e832c(0x339)]();}));}};_0x10cc5e=_0x1ef824([_0x3779a3(0x1,_0x20df93[_0x144fb0(0xdd)](_0x280e9c[_0x144fb0(0x104)])),_0x3779a3(0x2,_0x20df93[_0x144fb0(0xdd)](_0x297695)),_0x3779a3(0x3,_0x20df93[_0x144fb0(0x338)]),_0x3779a3(0x4,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x190)]))],_0x10cc5e);const _0x48b74e=0x1,_0x507eb3=1.5;class _0x128851 extends _0x1ff35a['Shape']{constructor(_0x5caf59,_0x431e21){const _0x114d10=_0x144fb0;super(_0x5caf59,_0x431e21),_0x3e782f(this,_0x114d10(0x45e)),_0x3e782f(this,_0x114d10(0x349),!0x1),_0x3e782f(this,_0x114d10(0x13e)),_0x3e782f(this,_0x114d10(0x163),''),_0x3e782f(this,_0x114d10(0xa5),_0x114d10(0x3ee)),_0x3e782f(this,'_backgroundColor'),(_0x431e21&&this[_0x114d10(0x331)](_0x431e21),this[_0x114d10(0x3aa)][_0x114d10(0x421)](()=>this[_0x114d10(0x331)]({'hovered':!0x0})),this[_0x114d10(0x3d5)]['subscribeEvent'](()=>this[_0x114d10(0x331)]({'hovered':!0x1})));}['setShapeProps'](_0x22d4bf){const _0x2f7ca0=_0x144fb0;var _0x4a5994,_0x1c3b32,_0x59e4ba,_0x2905bd,_0xa57f20,_0x30358f;this['_color']=(_0x4a5994=_0x22d4bf[_0x2f7ca0(0x423)])!=null?_0x4a5994:this[_0x2f7ca0(0x45e)],this[_0x2f7ca0(0x349)]=(_0x1c3b32=_0x22d4bf[_0x2f7ca0(0x1a4)])!=null?_0x1c3b32:this['_hovered'],this[_0x2f7ca0(0x13e)]=(_0x59e4ba=_0x22d4bf['range'])!=null?_0x59e4ba:this[_0x2f7ca0(0x13e)],this[_0x2f7ca0(0x163)]=(_0x2905bd=_0x22d4bf[_0x2f7ca0(0x2b4)])!=null?_0x2905bd:this[_0x2f7ca0(0x163)],this['_labelPosition']=(_0xa57f20=_0x22d4bf['labelPosition'])!=null?_0xa57f20:this[_0x2f7ca0(0xa5)],this['_backgroundColor']=(_0x30358f=_0x22d4bf[_0x2f7ca0(0xcb)])!=null?_0x30358f:this[_0x2f7ca0(0x403)],this[_0x2f7ca0(0x1f1)]({'width':_0x22d4bf[_0x2f7ca0(0x337)],'height':_0x22d4bf['height']});}[_0x144fb0(0x13a)](_0x162336){const _0x4c68a4=_0x144fb0,{row:_0x9a4ade,column:_0x3a718e}=_0x162336;if(_0x9a4ade>=this[_0x4c68a4(0x13e)][_0x4c68a4(0x3f7)]&&_0x9a4ade<=this['_range']['endRow']&&_0x3a718e>=this[_0x4c68a4(0x13e)][_0x4c68a4(0x1a3)]&&_0x3a718e<=this[_0x4c68a4(0x13e)][_0x4c68a4(0x2c3)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4c68a4(0x331)]({'hovered':!0x1});}[_0x144fb0(0x2ec)](_0x206db8){return!0x1;}[_0x144fb0(0x493)](_0x487660){const _0x5151c7=_0x144fb0;_0x1ff35a[_0x5151c7(0x36d)][_0x5151c7(0x3f0)](_0x487660,{'width':this['width'],'height':this[_0x5151c7(0xc7)],'strokeWidth':_0x507eb3,'stroke':this[_0x5151c7(0x45e)],'evented':!0x1,'fill':this[_0x5151c7(0x403)]}),this[_0x5151c7(0x349)]&&(_0x487660[_0x5151c7(0x450)](),_0x487660[_0x5151c7(0x425)](0x1,0x0,0x0,0x1,this[_0x5151c7(0x337)],this['_labelPosition']===_0x5151c7(0x114)?0x0:-_0x6a963a),_0x33c884[_0x5151c7(0x3f0)](_0x487660,{'text':this[_0x5151c7(0x163)],'color':this[_0x5151c7(0x45e)]}),_0x487660['restore']());}}var _0x51061b=Object['defineProperty'],_0x329e73=Object[_0x144fb0(0x457)],_0x422072=(_0xc26b50,_0x55be7d,_0x212c58,_0x13fecd)=>{const _0x5092fd=_0x144fb0;for(var _0x5bddb0=_0x13fecd>0x1?void 0x0:_0x13fecd?_0x329e73(_0x55be7d,_0x212c58):_0x55be7d,_0x1ec9eb=_0xc26b50[_0x5092fd(0x118)]-0x1,_0x462609;_0x1ec9eb>=0x0;_0x1ec9eb--)(_0x462609=_0xc26b50[_0x1ec9eb])&&(_0x5bddb0=(_0x13fecd?_0x462609(_0x55be7d,_0x212c58,_0x5bddb0):_0x462609(_0x5bddb0))||_0x5bddb0);return _0x13fecd&&_0x5bddb0&&_0x51061b(_0x55be7d,_0x212c58,_0x5bddb0),_0x5bddb0;},_0x31e32c=(_0x27483e,_0x42d326)=>(_0x157829,_0x3eed61)=>_0x42d326(_0x157829,_0x3eed61,_0x27483e);const _0x5c43d8=0x1389;let _0x2b682d=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x1b3d26,_0x14ac3a,_0xeb011c,_0x3df875){const _0x3dc08f=_0x144fb0;super(),_0x3e782f(this,_0x3dc08f(0xa8),new Set()),_0x3e782f(this,_0x3dc08f(0x48e),null),(this[_0x3dc08f(0x490)]=_0x1b3d26,this[_0x3dc08f(0x2a9)]=_0x14ac3a,this[_0x3dc08f(0x257)]=_0xeb011c,this[_0x3dc08f(0x35e)]=_0x3df875,this[_0x3dc08f(0x198)]());}[_0x144fb0(0x198)](){const _0x202771=_0x144fb0;this['_sheetSkeletonManagerService'][_0x202771(0x111)][_0x202771(0x34d)](_0x3e7ea3[_0x202771(0xa0)](this[_0x202771(0x288)]),_0x3e7ea3[_0x202771(0x383)](_0x4aa6e6=>{const _0x4bed3a=_0x202771;if(_0x4aa6e6){const _0x46ce9f=_0x4aa6e6[_0x4bed3a(0x24c)];return _0x284d0['combineLatest'](this[_0x4bed3a(0x257)][_0x4bed3a(0x289)](this[_0x4bed3a(0x490)][_0x4bed3a(0x1b7)]),this[_0x4bed3a(0x35e)][_0x4bed3a(0x2d7)])['pipe'](_0x3e7ea3[_0x4bed3a(0x296)](([_0x437b82,_0x18c478])=>{const _0x5e07db=_0x4bed3a,_0x423e74=new Map();return _0x437b82[_0x5e07db(0x478)]((_0x2deacc,_0x470fa9)=>{const _0x5cebab=_0x5e07db;if(_0x2deacc[_0x5cebab(0x1fa)]===_0x46ce9f){const _0x299fb3={..._0x2deacc};_0x299fb3[_0x5cebab(0x423)]=_0x18c478[_0x2deacc[_0x5cebab(0x423)]],_0x423e74[_0x5cebab(0x271)](_0x470fa9,_0x299fb3);}}),{'skeleton':_0x4aa6e6,'cursors':_0x423e74};}));}return _0x284d0['of']({'skeleton':null,'cursors':new Map()});}))[_0x202771(0xda)](({skeleton:_0x375a76,cursors:_0x4299aa})=>{const _0x2526e2=_0x202771;this[_0x2526e2(0x267)](),_0x375a76&&this[_0x2526e2(0x484)](_0x375a76,_0x4299aa);}),this[_0x202771(0x2a9)][_0x202771(0x111)]['subscribe'](_0x29f50b=>{const _0x46e10b=_0x202771;if(_0x29f50b==null)return;const {skeleton:_0x2ad333}=_0x29f50b,{scene:_0x584f0a}=this[_0x46e10b(0x490)];_0x584f0a[_0x46e10b(0x1b2)][_0x46e10b(0x421)](_0x20df93[_0x46e10b(0x1cc)](_0x2bc3eb=>{const _0x5425dd=_0x46e10b;var _0x45c014,_0x13ba17;const {offsetX:_0x5cce99,offsetY:_0x4afbdc}=_0x2bc3eb,{x:_0x326f61,y:_0x1804c8}=_0x584f0a['getRelativeToViewportCoord'](_0x1ff35a[_0x5425dd(0x374)]['FromArray']([_0x5cce99,_0x4afbdc])),{scaleX:_0x4a2470,scaleY:_0x5cce14}=_0x584f0a[_0x5425dd(0x1ab)](),_0xac8f02=_0x584f0a['getViewport'](_0xf53409[_0x5425dd(0x3d9)][_0x5425dd(0xcd)]),_0xe53e04=_0x584f0a[_0x5425dd(0x1f5)](_0x1ff35a['Vector2'][_0x5425dd(0x2f7)]([_0x326f61,_0x1804c8]),_0xac8f02),_0x542821=_0x2ad333[_0x5425dd(0x1f4)](_0x5cce99,_0x4afbdc,_0x4a2470,_0x5cce14,_0xe53e04);((_0x45c014=this[_0x5425dd(0x48e)])==null?void 0x0:_0x45c014['column'])===_0x542821[_0x5425dd(0x440)]&&((_0x13ba17=this[_0x5425dd(0x48e)])==null?void 0x0:_0x13ba17[_0x5425dd(0x3a3)])===_0x542821[_0x5425dd(0x3a3)]||this[_0x5425dd(0xa8)][_0x5425dd(0x478)](_0x4aeb67=>{_0x4aeb67['onMouseMove'](_0x542821);});},0x64));});}[_0x144fb0(0x484)](_0x3cb232,_0x7e2ee8){const _0x2918ec=_0x144fb0;var _0x4ff0c7;const _0x539ec7=(_0x4ff0c7=this[_0x2918ec(0x2a9)][_0x2918ec(0x365)]())==null?void 0x0:_0x4ff0c7['skeleton'];if(!_0x539ec7)return;const _0x44189f=this[_0x2918ec(0x120)]();if(!_0x44189f)return;this['_cursors'][_0x2918ec(0x478)](_0x46a3fd=>{const _0x14a0be=_0x2918ec;_0x46a3fd[_0x14a0be(0x428)]();});const {scene:_0x15c3f4}=_0x44189f,_0x1e0e31=_0x52ee29(Array['from'](_0x7e2ee8[_0x2918ec(0x18b)]()))[_0x2918ec(0x296)](_0x172b47=>{const _0x4810b2=_0x2918ec,{color:_0x452de0,range:_0x2811d4,name:_0x31c213,selection:_0x5cf537,sheetID:_0x5211f8}=_0x172b47,{startColumn:_0xeae94b,startRow:_0x4e1091,endColumn:_0x468181,endRow:_0x3bdb6a}=_0x2811d4,_0x3aadcb=_0xf53409['getCoordByCell'](_0x4e1091,_0xeae94b,_0x15c3f4,_0x539ec7),_0x598ae8=_0xf53409['getCoordByCell'](_0x3bdb6a,_0x468181,_0x15c3f4,_0x539ec7),{columnHeaderHeightAndMarginTop:_0x6a1f}=_0x539ec7,{startX:_0x5c8196,startY:_0x45b235}=_0x3aadcb,{endX:_0x17c5ae,endY:_0x2aad38}=_0x598ae8,_0x409b72=_0x17c5ae-_0x5c8196,_0x3aea2d=_0x2aad38-_0x45b235,_0x325a3f={'labelPosition':_0x45b235-_0x6a1f>=_0x6a963a?_0x4810b2(0x3ee):_0x4810b2(0x114),'sheetID':_0x5211f8,'range':_0x2811d4,'color':_0x452de0,'name':_0x31c213,'selection':_0x5cf537,'left':_0x5c8196,'top':_0x45b235,'width':_0x409b72,'height':_0x3aea2d,'evented':!0x1,'zIndex':_0x5c43d8};return new _0x128851(_0x31c213,_0x325a3f);});_0x15c3f4[_0x2918ec(0x301)](_0x1e0e31,_0x48b74e),this[_0x2918ec(0xa8)]=new Set(_0x1e0e31);}[_0x144fb0(0x267)](){const _0x1d9402=_0x144fb0;var _0x107a23;(_0x107a23=this[_0x1d9402(0xa8)])==null||_0x107a23[_0x1d9402(0x478)](_0x48af9b=>_0x48af9b['dispose']());}[_0x144fb0(0x120)](){const _0x23c6f8=_0x144fb0;return _0xf53409[_0x23c6f8(0x3d4)](this[_0x23c6f8(0x490)][_0x23c6f8(0x327)],this[_0x23c6f8(0x490)]);}};_0x2b682d=_0x422072([_0x31e32c(0x1,_0x20df93[_0x144fb0(0xdd)](_0xf53409['SheetSkeletonManagerService'])),_0x31e32c(0x2,_0x20df93[_0x144fb0(0xdd)](_0x297695)),_0x31e32c(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x190)]))],_0x2b682d);function _0x52ee29(_0x595d3d){const _0x3d4cf8=_0x144fb0,_0xad3298=new Map();return _0x595d3d[_0x3d4cf8(0x478)](_0x5d5a57=>{const _0x1a2fa0=_0x3d4cf8;if(_0xad3298[_0x1a2fa0(0x26d)](_0x5d5a57[_0x1a2fa0(0xfe)])){const _0x24c2c7=_0xad3298[_0x1a2fa0(0x3b8)](_0x5d5a57[_0x1a2fa0(0xfe)]);_0x24c2c7[_0x1a2fa0(0x2b4)]+=',\x20'+_0x5d5a57[_0x1a2fa0(0x2b4)];}else _0xad3298['set'](_0x5d5a57['selection'],_0x5d5a57);}),Array[_0x3d4cf8(0xc2)](_0xad3298[_0x3d4cf8(0x18b)]());}var _0x91d0b4=function(){const _0xb722ed=_0x144fb0;return _0x91d0b4=Object[_0xb722ed(0x4af)]||function(_0x37d64c){const _0x580431=_0xb722ed;for(var _0x29ed61,_0x50e2f0=0x1,_0x57a756=arguments['length'];_0x50e2f0<_0x57a756;_0x50e2f0++){_0x29ed61=arguments[_0x50e2f0];for(var _0x2da96e in _0x29ed61)Object['prototype'][_0x580431(0x3e3)][_0x580431(0xed)](_0x29ed61,_0x2da96e)&&(_0x37d64c[_0x2da96e]=_0x29ed61[_0x2da96e]);}return _0x37d64c;},_0x91d0b4['apply'](this,arguments);},_0x1cf045=function(_0x15f11d,_0x699583){const _0x3fefd4=_0x144fb0;var _0x3a72e7={};for(var _0x53375b in _0x15f11d)Object[_0x3fefd4(0x174)][_0x3fefd4(0x3e3)]['call'](_0x15f11d,_0x53375b)&&_0x699583[_0x3fefd4(0x3f2)](_0x53375b)<0x0&&(_0x3a72e7[_0x53375b]=_0x15f11d[_0x53375b]);if(_0x15f11d!=null&&typeof Object[_0x3fefd4(0x3ce)]==_0x3fefd4(0x488)){for(var _0x6df6bc=0x0,_0x53375b=Object[_0x3fefd4(0x3ce)](_0x15f11d);_0x6df6bc<_0x53375b['length'];_0x6df6bc++)_0x699583[_0x3fefd4(0x3f2)](_0x53375b[_0x6df6bc])<0x0&&Object[_0x3fefd4(0x174)]['propertyIsEnumerable'][_0x3fefd4(0xed)](_0x15f11d,_0x53375b[_0x6df6bc])&&(_0x3a72e7[_0x53375b[_0x6df6bc]]=_0x15f11d[_0x53375b[_0x6df6bc]]);}return _0x3a72e7;},_0x56942f=_0x3aba2d[_0x144fb0(0x155)](function(_0x43ce35,_0x2b3ba5){const _0x7dd2eb=_0x144fb0;var _0xf3518f=_0x43ce35[_0x7dd2eb(0xc1)],_0x2f7217=_0x43ce35['id'],_0x23546f=_0x43ce35[_0x7dd2eb(0x494)],_0x326441=_0x43ce35[_0x7dd2eb(0x176)],_0x42f17b=_0x1cf045(_0x43ce35,['icon','id',_0x7dd2eb(0x494),_0x7dd2eb(0x176)]),_0xec41ed='univerjs-icon\x20univerjs-icon-'['concat'](_0x2f7217,'\x20')['concat'](_0x23546f||'')[_0x7dd2eb(0x4c1)](),_0xc9542d=_0x3aba2d[_0x7dd2eb(0x413)]('_'[_0x7dd2eb(0x206)](_0x331e33()));return _0x45c417(_0xf3518f,''[_0x7dd2eb(0x206)](_0x2f7217),{'defIds':_0xf3518f[_0x7dd2eb(0x285)],'idSuffix':_0xc9542d[_0x7dd2eb(0x3bd)]},_0x91d0b4({'ref':_0x2b3ba5,'className':_0xec41ed},_0x42f17b),_0x326441);});function _0x45c417(_0x3a0cc7,_0x2446fa,_0x368763,_0x4d9126,_0x14d4db){const _0x26b5c3=_0x144fb0;return _0x3aba2d['createElement'](_0x3a0cc7[_0x26b5c3(0x1a9)],_0x91d0b4(_0x91d0b4({'key':_0x2446fa},_0x2c7df2(_0x3a0cc7,_0x368763,_0x14d4db)),_0x4d9126),(_0x1fffcc(_0x3a0cc7,_0x368763)[_0x26b5c3(0xb8)]||[])[_0x26b5c3(0x296)](function(_0x187c08,_0x103894){const _0x5840f9=_0x26b5c3;return _0x45c417(_0x187c08,''[_0x5840f9(0x206)](_0x2446fa,'-')[_0x5840f9(0x206)](_0x3a0cc7[_0x5840f9(0x1a9)],'-')[_0x5840f9(0x206)](_0x103894),_0x368763,void 0x0,_0x14d4db);}));}function _0x2c7df2(_0x5ab37f,_0x4159e5,_0x40e2a2){const _0x52a1c0=_0x144fb0;var _0x11bfa3=_0x91d0b4({},_0x5ab37f[_0x52a1c0(0x284)]);_0x40e2a2!=null&&_0x40e2a2['colorChannel1']&&_0x11bfa3[_0x52a1c0(0x43c)]==='colorChannel1'&&(_0x11bfa3['fill']=_0x40e2a2[_0x52a1c0(0x43b)]);var _0x35c121=_0x4159e5[_0x52a1c0(0x285)];return!_0x35c121||_0x35c121[_0x52a1c0(0x118)]===0x0||(_0x5ab37f[_0x52a1c0(0x1a9)]===_0x52a1c0(0x15b)&&_0x11bfa3['xlink:href']&&(_0x11bfa3[_0x52a1c0(0x29b)]=_0x11bfa3['xlink:href']+_0x4159e5[_0x52a1c0(0x202)]),Object[_0x52a1c0(0x27b)](_0x11bfa3)[_0x52a1c0(0x478)](function(_0x84098d){const _0x121e60=_0x52a1c0;var _0x28b65b=_0x84098d[0x0],_0x207cbb=_0x84098d[0x1];typeof _0x207cbb==_0x121e60(0x266)&&(_0x11bfa3[_0x28b65b]=_0x207cbb['replace'](/url\(#(.*)\)/,_0x121e60(0x169)[_0x121e60(0x206)](_0x4159e5[_0x121e60(0x202)],')')));})),_0x11bfa3;}function _0x1fffcc(_0x459f34,_0x25876f){const _0x349b99=_0x144fb0;var _0x171f99,_0x4f4f38=_0x25876f[_0x349b99(0x285)];return!_0x4f4f38||_0x4f4f38[_0x349b99(0x118)]===0x0?_0x459f34:_0x459f34[_0x349b99(0x1a9)]==='defs'&&(!((_0x171f99=_0x459f34['children'])===null||_0x171f99===void 0x0)&&_0x171f99['length'])?_0x91d0b4(_0x91d0b4({},_0x459f34),{'children':_0x459f34[_0x349b99(0xb8)][_0x349b99(0x296)](function(_0x1b51d2){const _0x34ef7c=_0x349b99;return typeof _0x1b51d2['attrs']['id']==_0x34ef7c(0x266)&&_0x4f4f38&&_0x4f4f38[_0x34ef7c(0x3f2)](_0x1b51d2[_0x34ef7c(0x284)]['id'])>-0x1?_0x91d0b4(_0x91d0b4({},_0x1b51d2),{'attrs':_0x91d0b4(_0x91d0b4({},_0x1b51d2[_0x34ef7c(0x284)]),{'id':_0x1b51d2['attrs']['id']+_0x25876f[_0x34ef7c(0x202)]})}):_0x1b51d2;})}):_0x459f34;}function _0x331e33(){const _0x4240ba=_0x144fb0;return Math['random']()[_0x4240ba(0xf3)](0x24)[_0x4240ba(0x2b9)](0x2,0x8);}_0x56942f[_0x144fb0(0x224)]=_0x144fb0(0x314);var _0x7d1cc0={'tag':'svg','attrs':{'fill':_0x144fb0(0x334),'viewBox':_0x144fb0(0x16a),'width':_0x144fb0(0x160),'height':_0x144fb0(0x160)},'children':[{'tag':'g','attrs':{'clipPath':_0x144fb0(0x39d)},'children':[{'tag':_0x144fb0(0x298),'attrs':{'stroke':'currentColor','d':_0x144fb0(0x22d),'strokeLinecap':_0x144fb0(0x3cc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x144fb0(0x311),'attrs':{},'children':[{'tag':_0x144fb0(0x1ec),'attrs':{'id':_0x144fb0(0x4cd)},'children':[{'tag':_0x144fb0(0x298),'attrs':{'fill':'#fff','d':_0x144fb0(0x1f8)}}]}]}],'defIds':[_0x144fb0(0x4cd)]},_0x24e843=_0x3aba2d[_0x144fb0(0x155)](function(_0x2ad54b,_0x539e6b){const _0x408788=_0x144fb0;return _0x3aba2d['createElement'](_0x56942f,Object['assign']({},_0x2ad54b,{'id':_0x408788(0x16f),'ref':_0x539e6b,'icon':_0x7d1cc0}));});_0x24e843['displayName']=_0x144fb0(0x384);var _0x55150c={'tag':'svg','attrs':{'fill':_0x144fb0(0x334),'viewBox':_0x144fb0(0x2cd),'width':_0x144fb0(0x160),'height':_0x144fb0(0x160)},'children':[{'tag':'g','attrs':{'clipPath':_0x144fb0(0x385)},'children':[{'tag':_0x144fb0(0x298),'attrs':{'stroke':_0x144fb0(0xb3),'d':_0x144fb0(0x3c1),'strokeLinecap':_0x144fb0(0x3cc),'strokeLinejoin':_0x144fb0(0x3cc),'strokeWidth':1.2}}]},{'tag':_0x144fb0(0x311),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x144fb0(0x26e)},'children':[{'tag':'path','attrs':{'fill':_0x144fb0(0x22e),'d':_0x144fb0(0x1f8),'transform':_0x144fb0(0x36c)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x440894=_0x3aba2d[_0x144fb0(0x155)](function(_0x4411ce,_0x420bf2){const _0x51a461=_0x144fb0;return _0x3aba2d[_0x51a461(0x2a5)](_0x56942f,Object[_0x51a461(0x4af)]({},_0x4411ce,{'id':'on-line-single','ref':_0x420bf2,'icon':_0x55150c}));});_0x440894['displayName']=_0x144fb0(0x42f);function _0x1be222(_0x50b79){const _0x3baf17=_0x144fb0;var _0x3674ce,_0x522fde,_0x192cec='';if(typeof _0x50b79==_0x3baf17(0x266)||typeof _0x50b79==_0x3baf17(0x147))_0x192cec+=_0x50b79;else{if(typeof _0x50b79=='object'){if(Array['isArray'](_0x50b79)){var _0x202e0b=_0x50b79['length'];for(_0x3674ce=0x0;_0x3674ce<_0x202e0b;_0x3674ce++)_0x50b79[_0x3674ce]&&(_0x522fde=_0x1be222(_0x50b79[_0x3674ce]))&&(_0x192cec&&(_0x192cec+='\x20'),_0x192cec+=_0x522fde);}else{for(_0x522fde in _0x50b79)_0x50b79[_0x522fde]&&(_0x192cec&&(_0x192cec+='\x20'),_0x192cec+=_0x522fde);}}}return _0x192cec;}function _0x1903e1(){const _0x3534cc=_0x144fb0;for(var _0x27a966,_0x4d3944,_0x316ca4=0x0,_0x565b21='',_0x33bb34=arguments[_0x3534cc(0x118)];_0x316ca4<_0x33bb34;_0x316ca4++)(_0x27a966=arguments[_0x316ca4])&&(_0x4d3944=_0x1be222(_0x27a966))&&(_0x565b21&&(_0x565b21+='\x20'),_0x565b21+=_0x4d3944);return _0x565b21;}const _0x399c3a={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x144fb0(0x1d0),'onlineStatus':_0x144fb0(0x192),'online':_0x144fb0(0x2b3),'offline':'univer-offline'};function _0x228f66(_0x465fb3){const _0x4cd96a=_0x144fb0;switch(_0x465fb3){case _0x5d3e7e[_0x4cd96a(0x2d5)]:return _0x4cd96a(0x439);case _0x5d3e7e[_0x4cd96a(0x3b6)]:return _0x4cd96a(0xea);case _0x5d3e7e['FETCH_MISS']:return _0x4cd96a(0x15e);case _0x5d3e7e[_0x4cd96a(0x49a)]:return _0x4cd96a(0x36a);case _0x5d3e7e[_0x4cd96a(0x42a)]:case _0x5d3e7e[_0x4cd96a(0x45b)]:case _0x5d3e7e['AWAITING_WITH_PENDING']:return _0x4cd96a(0x1a0);case _0x5d3e7e[_0x4cd96a(0xad)]:return'collabStatus.synced';}}function _0x2b690e(_0x18b400){const _0x27b52a=_0x144fb0,{status$:_0x1ce113}=_0x18b400,_0xd2fe6b=_0x40b1aa[_0x27b52a(0x156)](_0x1ce113,_0x5d3e7e[_0x27b52a(0x49a)]),_0x5063f3=_0x20df93[_0x27b52a(0x121)](_0x20df93[_0x27b52a(0x142)]),_0x2109e4=_0x20df93[_0x27b52a(0x121)](_0x4c8f94['CollaborationSessionService']),_0x1dc3dd=_0xd2fe6b!==_0x5d3e7e[_0x27b52a(0x2d5)],_0x450fbc=_0x5063f3['t'](_0x228f66(_0xd2fe6b)),_0x40c386=_0x1903e1(_0x399c3a[_0x27b52a(0x1ac)],{[_0x399c3a['online']]:_0x1dc3dd,[_0x399c3a[_0x27b52a(0xfc)]]:!_0x1dc3dd}),_0x5f3427=_0x1dc3dd?_0x3aba2d[_0x27b52a(0x2a5)](_0x440894,null):_0x3aba2d[_0x27b52a(0x2a5)](_0x24e843,null),_0x4e2478=_0x3aba2d[_0x27b52a(0x18e)](()=>{const _0x33214a=_0x27b52a;_0x1dc3dd||_0x2109e4[_0x33214a(0x3ae)]();},[_0x1dc3dd,_0x2109e4]);function _0x2a19e9(){const _0x174431=_0x27b52a;return _0x3aba2d['createElement'](_0x174431(0x15c),{'className':_0x40c386,'onClick':_0x4e2478},_0x3aba2d[_0x174431(0x2a5)]('div',{'className':_0x399c3a['onlineStatusIcon']},_0x5f3427),_0x3aba2d[_0x174431(0x2a5)](_0x174431(0x15c),{'className':_0x399c3a[_0x174431(0x481)]},_0x450fbc));}return _0x1dc3dd?_0x2a19e9():_0x3aba2d[_0x27b52a(0x2a5)](_0x3206ad['Tooltip'],{'title':_0x5063f3['t'](_0x27b52a(0x35d))},_0x2a19e9());}var _0x411e26=Object[_0x144fb0(0x395)],_0x57182c=Object[_0x144fb0(0x457)],_0x163779=(_0x29e75b,_0xf3c63c,_0x9b7993,_0x1834d8)=>{const _0x584536=_0x144fb0;for(var _0x3ad572=_0x1834d8>0x1?void 0x0:_0x1834d8?_0x57182c(_0xf3c63c,_0x9b7993):_0xf3c63c,_0x52a939=_0x29e75b[_0x584536(0x118)]-0x1,_0x5acd43;_0x52a939>=0x0;_0x52a939--)(_0x5acd43=_0x29e75b[_0x52a939])&&(_0x3ad572=(_0x1834d8?_0x5acd43(_0xf3c63c,_0x9b7993,_0x3ad572):_0x5acd43(_0x3ad572))||_0x3ad572);return _0x1834d8&&_0x3ad572&&_0x411e26(_0xf3c63c,_0x9b7993,_0x3ad572),_0x3ad572;},_0x1f5215=(_0x16e36a,_0x39c6fb)=>(_0x3da3af,_0x28b6c4)=>_0x39c6fb(_0x3da3af,_0x28b6c4,_0x16e36a);_0x4c8f94[_0x144fb0(0x10a)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x3ba1a0,_0x3e247e,_0x164e5e,_0x3f30d9){const _0x3081c9=_0x144fb0;super(),_0x3e782f(this,'_status$',new _0x284d0[(_0x3081c9(0x237))](_0x5d3e7e[_0x3081c9(0x49a)])),(this['_univerInstanceService']=_0x3ba1a0,this[_0x3081c9(0x281)]=_0x3e247e,this[_0x3081c9(0x2fc)]=_0x164e5e,this[_0x3081c9(0x1b1)]=_0x3f30d9,this[_0x3081c9(0x164)](),this[_0x3081c9(0x212)]());}[_0x144fb0(0x212)](){const _0x3e1ccd=_0x144fb0;this[_0x3e1ccd(0x397)](this[_0x3e1ccd(0xc8)][_0x3e1ccd(0x389)][_0x3e1ccd(0x34d)](_0x284d0[_0x3e1ccd(0x383)](()=>{const _0x45e0cc=_0x3e1ccd,_0x4fe0e6=this[_0x45e0cc(0xc8)][_0x45e0cc(0x138)]();return _0x4fe0e6?this['_collaborationController'][_0x45e0cc(0x3e7)](_0x4fe0e6[_0x45e0cc(0x1fd)]()):_0x284d0['of'](null);}),_0x284d0['switchMap'](_0x3988b0=>_0x3988b0?_0x3988b0[_0x3e1ccd(0x4c2)]:_0x284d0['of'](_0x5d3e7e[_0x3e1ccd(0x49a)])))[_0x3e1ccd(0xda)](_0x1852ac=>{const _0x2ca603=_0x3e1ccd;this[_0x2ca603(0x2c7)][_0x2ca603(0x25d)](_0x1852ac);}));}[_0x144fb0(0x164)](){const _0x33c00c=_0x144fb0;this['disposeWithMe'](this[_0x33c00c(0x281)][_0x33c00c(0x238)](_0x40b1aa['BuiltInUIPart'][_0x33c00c(0x388)],()=>_0x20df93['connectInjector'](_0x169888({'status$':this[_0x33c00c(0x2c7)]['asObservable']()}),this['_injector'])));}},_0x4c8f94[_0x144fb0(0x10a)]=_0x163779([_0x1f5215(0x0,_0x20df93[_0x144fb0(0x292)]),_0x1f5215(0x1,_0x40b1aa[_0x144fb0(0x34f)]),_0x1f5215(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x1f5215(0x3,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x10e)]))],_0x4c8f94[_0x144fb0(0x10a)]);function _0x169888(_0x5ea02d){const {status$:_0x530eb9}=_0x5ea02d;return function(){const _0x1593af=_0x205f;return _0x3aba2d[_0x1593af(0x2a5)](_0x2b690e,{'status$':_0x530eb9});};}const _0x22cd46=_0x20df93[_0x144fb0(0x4be)]('uni.network.url-service');var _0x511cd4=Object[_0x144fb0(0x395)],_0x3b5697=Object['getOwnPropertyDescriptor'],_0x1a4390=(_0x5da5be,_0x17ebdc,_0x4f14eb,_0x550185)=>{const _0x274c53=_0x144fb0;for(var _0x237705=_0x550185>0x1?void 0x0:_0x550185?_0x3b5697(_0x17ebdc,_0x4f14eb):_0x17ebdc,_0x59e404=_0x5da5be[_0x274c53(0x118)]-0x1,_0x31f1a1;_0x59e404>=0x0;_0x59e404--)(_0x31f1a1=_0x5da5be[_0x59e404])&&(_0x237705=(_0x550185?_0x31f1a1(_0x17ebdc,_0x4f14eb,_0x237705):_0x31f1a1(_0x237705))||_0x237705);return _0x550185&&_0x237705&&_0x511cd4(_0x17ebdc,_0x4f14eb,_0x237705),_0x237705;},_0x1d6a92=(_0x11a5e6,_0x5286bd)=>(_0x1dff7b,_0x20029f)=>_0x5286bd(_0x1dff7b,_0x20029f,_0x11a5e6);_0x4c8f94['DataLoaderController']=class extends _0x20df93['RxDisposable']{constructor(_0x23c613,_0x39f1b1,_0x491d5f,_0x38fbbd,_0x4ecc4a,_0x5075fd){const _0xc658c4=_0x144fb0;super(),this[_0xc658c4(0x140)]=_0x23c613,this[_0xc658c4(0x414)]=_0x39f1b1,this[_0xc658c4(0x2d1)]=_0x491d5f,this['_localCacheService']=_0x38fbbd,this[_0xc658c4(0x378)]=_0x4ecc4a,_0x5075fd?_0x5075fd==null||_0x5075fd[_0xc658c4(0x30f)]()['then'](()=>this[_0xc658c4(0x198)]()):(this['_logService'][_0xc658c4(0xd6)](_0xc658c4(0x2d3),_0xc658c4(0x302)),this['_init']());}async[_0x144fb0(0x198)](){const _0x25285e=_0x144fb0,_0x397ac2=this[_0x25285e(0x140)][_0x25285e(0xa4)](_0x25285e(0x327)),_0x5a8b86=this['_urlService'][_0x25285e(0xa4)](_0x25285e(0x2e4));if(!_0x397ac2||!_0x5a8b86){this[_0x25285e(0x414)]['debug'](_0x25285e(0x2d3),_0x25285e(0xb2));return;}switch(Number(_0x5a8b86)){case _0x3dff5a[_0x25285e(0x4bf)]:{const _0x4e20be=await this[_0x25285e(0x193)](_0x397ac2);this[_0x25285e(0x399)](_0x4e20be);break;}case _0x3dff5a[_0x25285e(0x126)]:{await this[_0x25285e(0x401)](_0x397ac2);break;}default:{this['_logService'][_0x25285e(0x37d)](_0x25285e(0x2d3),_0x25285e(0x21d));break;}}}async[_0x144fb0(0x399)](_0x3e7b32){const _0x281413=_0x144fb0;await this['_updateSubUnitFromURLParams'](_0x3e7b32),_0x3e7b32[_0x281413(0x4ce)][_0x281413(0x34d)](_0x284d0[_0x281413(0xa0)](this[_0x281413(0x288)]))[_0x281413(0xda)](_0x31b897=>{const _0x318050=_0x281413;_0x31b897&&this[_0x318050(0x107)](_0x31b897);}),this[_0x281413(0x140)][_0x281413(0x2b5)][_0x281413(0x34d)](_0x284d0[_0x281413(0xa0)](this['dispose$']))[_0x281413(0xda)](()=>this[_0x281413(0x420)](_0x3e7b32));}[_0x144fb0(0x107)](_0x10c1c0,_0x15a970=!0x1){const _0x285a81=_0x144fb0,_0xc97224=this[_0x285a81(0x140)]['getParam'](_0x285a81(0x2f1));_0x10c1c0['getSheetId']()!==_0xc97224&&this[_0x285a81(0x140)][_0x285a81(0x475)](_0x285a81(0x2f1),_0x10c1c0[_0x285a81(0x3c9)](),_0x15a970);}async[_0x144fb0(0x420)](_0x2ee0b3){const _0x2b484a=_0x144fb0;var _0xcb510;const _0x35aa08=this[_0x2b484a(0x140)][_0x2b484a(0xa4)](_0x2b484a(0x2f1));if(!_0x35aa08||!_0x2ee0b3[_0x2b484a(0x3ac)](_0x35aa08)){const _0x2d7dc9=_0x2ee0b3['getUnhiddenWorksheets']()[0x0],_0x20f96b=_0x2ee0b3[_0x2b484a(0x3ac)](_0x2d7dc9);if(!_0x20f96b)return;this[_0x2b484a(0x107)](_0x20f96b,!0x0),await this[_0x2b484a(0x2d1)][_0x2b484a(0x1fe)](_0x5dce24[_0x2b484a(0x2f5)]['id'],{'unitId':_0x2ee0b3[_0x2b484a(0x1fd)](),'subUnitId':_0x2d7dc9});return;}((_0xcb510=_0x2ee0b3[_0x2b484a(0x112)]())==null?void 0x0:_0xcb510['getSheetId']())!==_0x35aa08&&await this[_0x2b484a(0x2d1)][_0x2b484a(0x1fe)](_0x5dce24[_0x2b484a(0x2f5)]['id'],{'unitId':_0x2ee0b3[_0x2b484a(0x1fd)](),'subUnitId':_0x35aa08});}async[_0x144fb0(0x193)](_0x28c9aa){const _0x2d1ec3=_0x144fb0;let _0x4c6318=0x0;const _0x38517d=await this['_localCacheService'][_0x2d1ec3(0x19f)](_0x28c9aa);return _0x38517d&&(_0x38517d[_0x2d1ec3(0x1a7)]||_0x38517d[_0x2d1ec3(0x366)][_0x2d1ec3(0x118)]!==0x0)&&(_0x4c6318=_0x38517d[_0x2d1ec3(0x489)]),_0x4c6318===0x0&&this['_logService'][_0x2d1ec3(0xd6)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2d1ec3(0x378)][_0x2d1ec3(0x2e2)](_0x28c9aa,_0x4c6318);}async['_loadDoc'](_0x33ad0f){const _0x1d4439=_0x144fb0;let _0x5b9df9=0x0;const _0x671769=await this[_0x1d4439(0x2be)][_0x1d4439(0x19f)](_0x33ad0f);return _0x671769&&(_0x671769[_0x1d4439(0x1a7)]||_0x671769[_0x1d4439(0x366)][_0x1d4439(0x118)]!==0x0)&&(_0x5b9df9=_0x671769['rev']),_0x5b9df9===0x0&&this[_0x1d4439(0x414)][_0x1d4439(0xd6)](_0x1d4439(0x2d3),_0x1d4439(0xdf)),this[_0x1d4439(0x378)][_0x1d4439(0x4ca)](_0x33ad0f,_0x5b9df9);}},_0x4c8f94[_0x144fb0(0x26a)]=_0x1a4390([_0x1d6a92(0x0,_0x22cd46),_0x1d6a92(0x1,_0x20df93['ILogService']),_0x1d6a92(0x2,_0x20df93[_0x144fb0(0x338)]),_0x1d6a92(0x3,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94['LocalCacheService'])),_0x1d6a92(0x4,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xd2)])),_0x1d6a92(0x5,_0x20df93['Optional'](_0x264084[_0x144fb0(0x9c)]))],_0x4c8f94[_0x144fb0(0x26a)]);var _0x10ee22=Object[_0x144fb0(0x395)],_0x227796=Object['getOwnPropertyDescriptor'],_0x46bf57=(_0x30d6e1,_0x5a14fd,_0x2fe9ad,_0x47a47a)=>{const _0x854a98=_0x144fb0;for(var _0x2e0719=_0x47a47a>0x1?void 0x0:_0x47a47a?_0x227796(_0x5a14fd,_0x2fe9ad):_0x5a14fd,_0x31015a=_0x30d6e1[_0x854a98(0x118)]-0x1,_0x39a107;_0x31015a>=0x0;_0x31015a--)(_0x39a107=_0x30d6e1[_0x31015a])&&(_0x2e0719=(_0x47a47a?_0x39a107(_0x5a14fd,_0x2fe9ad,_0x2e0719):_0x39a107(_0x2e0719))||_0x2e0719);return _0x47a47a&&_0x2e0719&&_0x10ee22(_0x5a14fd,_0x2fe9ad,_0x2e0719),_0x2e0719;},_0x242d4f=(_0xbd353f,_0x4f42e1)=>(_0x3347fb,_0x5ee391)=>_0x4f42e1(_0x3347fb,_0x5ee391,_0xbd353f);const _0x46017c=_0x144fb0(0x14b),_0x236086=_0x144fb0(0x4cb);let _0x43a9b6=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x566e65,_0x239f15){const _0x742028=_0x144fb0;super(),this['_univerInstanceService']=_0x566e65,this[_0x742028(0x283)]=_0x239f15,this[_0x742028(0x198)]();}['_init'](){const _0x209d0c=_0x144fb0;this[_0x209d0c(0x397)](this['_univerInstanceService']['focused$'][_0x209d0c(0xda)](()=>{const _0x4bf121=_0x209d0c;var _0x47f8e7;const _0x4a4d04=this['_univerInstanceService']['getFocusedUnit']();let _0x2fe8a5=(_0x47f8e7=this['_configService'][_0x4bf121(0x27c)](_0x46017c))!=null?_0x47f8e7:_0x236086;_0x4a4d04 instanceof _0x20df93[_0x4bf121(0x23b)]&&(_0x2fe8a5=_0x4a4d04[_0x4bf121(0x2b4)]),document[_0x4bf121(0x27a)]=_0x2fe8a5;}));}};_0x43a9b6=_0x46bf57([_0x242d4f(0x0,_0x20df93[_0x144fb0(0x292)]),_0x242d4f(0x1,_0x20df93['IConfigService'])],_0x43a9b6);var _0x50acde=Object['defineProperty'],_0x12c026=Object[_0x144fb0(0x457)],_0x15b921=(_0x33be9f,_0x7bf847,_0x5712d4,_0x4c0f4b)=>{const _0x51c902=_0x144fb0;for(var _0x23bbc8=_0x4c0f4b>0x1?void 0x0:_0x4c0f4b?_0x12c026(_0x7bf847,_0x5712d4):_0x7bf847,_0x3dbb22=_0x33be9f[_0x51c902(0x118)]-0x1,_0x503a38;_0x3dbb22>=0x0;_0x3dbb22--)(_0x503a38=_0x33be9f[_0x3dbb22])&&(_0x23bbc8=(_0x4c0f4b?_0x503a38(_0x7bf847,_0x5712d4,_0x23bbc8):_0x503a38(_0x23bbc8))||_0x23bbc8);return _0x4c0f4b&&_0x23bbc8&&_0x50acde(_0x7bf847,_0x5712d4,_0x23bbc8),_0x23bbc8;},_0x190cb9=(_0x3b5f5d,_0xf40c8e)=>(_0x524b77,_0x325cf3)=>_0xf40c8e(_0x524b77,_0x325cf3,_0x3b5f5d);let _0x41e9e1=class{constructor(_0x50bf6d,_0xd3a75f,_0x4b2c61){const _0x2250f9=_0x144fb0;this[_0x2250f9(0x283)]=_0x50bf6d,this['_httpService']=_0xd3a75f,this[_0x2250f9(0x11e)]=_0x4b2c61,this['init']();}[_0x144fb0(0x1e3)](){const _0xa81698=_0x144fb0;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x125135,_0x3dac08)=>_0x3dac08(_0x125135)[_0xa81698(0x34d)](_0x284d0[_0xa81698(0x3dc)](async _0x489a00=>{const _0x57c7f3=_0xa81698,_0x45de62=_0x489a00;if(_0x45de62['status']===0x191&&window[_0x57c7f3(0x29e)](this[_0x57c7f3(0x11e)]['t']('auth.needGotoLoginAlert'))){const _0x351991=window[_0x57c7f3(0x2f4)](window[_0x57c7f3(0x33a)][_0x57c7f3(0x264)]);window[_0x57c7f3(0x33a)][_0x57c7f3(0x264)]=this[_0x57c7f3(0x20b)]()+_0x57c7f3(0x2b1)+_0x351991;}return _0x45de62;}))});}[_0x144fb0(0x20b)](){const _0x4f5354=_0x144fb0;var _0x52ab99,_0x2c655d;const _0x9caad8=this[_0x4f5354(0x283)]['getConfig'](_0x57c1a6),_0x4d1253=this[_0x4f5354(0x283)][_0x4f5354(0x27c)](_0x53057b);return(_0x2c655d=(_0x52ab99=_0x4d1253==null?void 0x0:_0x4d1253[_0x4f5354(0x152)])!=null?_0x52ab99:_0x9caad8)!=null?_0x2c655d:_0x4650cd;}};_0x41e9e1=_0x15b921([_0x190cb9(0x0,_0x20df93['IConfigService']),_0x190cb9(0x1,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)])),_0x190cb9(0x2,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x142)]))],_0x41e9e1);var _0x34262b=Object['defineProperty'],_0x1b36e0=Object[_0x144fb0(0x457)],_0x3de421=(_0xba31d0,_0x5183c7,_0x25ab26,_0x5f2473)=>{for(var _0x18cdeb=_0x5f2473>0x1?void 0x0:_0x5f2473?_0x1b36e0(_0x5183c7,_0x25ab26):_0x5183c7,_0x76efb7=_0xba31d0['length']-0x1,_0x598d3d;_0x76efb7>=0x0;_0x76efb7--)(_0x598d3d=_0xba31d0[_0x76efb7])&&(_0x18cdeb=(_0x5f2473?_0x598d3d(_0x5183c7,_0x25ab26,_0x18cdeb):_0x598d3d(_0x18cdeb))||_0x18cdeb);return _0x5f2473&&_0x18cdeb&&_0x34262b(_0x5183c7,_0x25ab26,_0x18cdeb),_0x18cdeb;},_0x5e23e6=(_0xc88a67,_0xd9e06c)=>(_0x3b9651,_0x5519f1)=>_0xd9e06c(_0x3b9651,_0x5519f1,_0xc88a67);const _0x3a861f='AUTHZ_URL_KEY',_0x504a28=_0x144fb0(0x166);_0x4c8f94[_0x144fb0(0x3e6)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x36e83b,_0x158c53){const _0x730b29=_0x144fb0;super(),this['_HTTPService']=_0x36e83b,this[_0x730b29(0x283)]=_0x158c53,this[_0x730b29(0xe2)]();}[_0x144fb0(0xe2)](){const _0x14b301=_0x144fb0,_0x16f4cd=this;this[_0x14b301(0x397)](this[_0x14b301(0x265)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x581b3b[_0x14b301(0x44d)]({'isMatch'(_0x43e7e4){const _0x510fe0=_0x14b301;var _0x4f4358;if(_0x43e7e4['method']===_0x510fe0(0x32e)&&((_0x4f4358=_0x43e7e4[_0x510fe0(0x28a)])!=null&&_0x4f4358['body'])){const {objectID:_0x274807,objectType:_0x45a868}=_0x43e7e4[_0x510fe0(0x28a)][_0x510fe0(0x141)]||{};if(!_0x274807||_0x45a868===void 0x0)return!0x1;const _0x38d77d=_0x16f4cd['_getAPIPrefixPath']()+'/'+_0x45a868+'/object/'+_0x274807+'/allowed';if(_0x43e7e4[_0x510fe0(0x270)]===_0x38d77d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x52a74e){const _0x10683f=_0x14b301;var _0x1a67d0;return(_0x1a67d0=_0x52a74e[_0x10683f(0x28a)])==null?void 0x0:_0x1a67d0['body'];},'mergeParamsToRequest'(_0x352ee7,_0x4e8c36){const _0x4dcba1=_0x14b301,_0x4bbc76=_0x16f4cd[_0x4dcba1(0x4c5)]()+_0x4dcba1(0x342),_0x2f303e=_0x352ee7['reduce']((_0x404dda,_0x3cfd56)=>{const _0xb0b101=_0x4dcba1,{unitID:_0x4ad487,objectID:_0x277325,objectType:_0x38ec69,actions:_0x15c5a9}=_0x3cfd56;return _0x404dda[_0x4ad487]||(_0x404dda[_0x4ad487]={}),_0x404dda[_0x4ad487][_0x277325]||(_0x404dda[_0x4ad487][_0x277325]={'objectID':_0x277325,'objectType':_0x38ec69,'actions':[]}),_0x404dda[_0x4ad487][_0x277325][_0xb0b101(0x437)][_0xb0b101(0x20e)](..._0x15c5a9),_0x404dda;},{}),_0x4210d7=[];for(const _0x6ea60e in _0x2f303e)for(const _0x5263cd in _0x2f303e[_0x6ea60e]){const {actions:_0x2953e7,objectType:_0x3549da}=_0x2f303e[_0x6ea60e][_0x5263cd],_0xf7411c=[...new Set(_0x2953e7)];_0x4210d7[_0x4dcba1(0x20e)]({'unitID':_0x6ea60e,'objectID':_0x5263cd,'objectType':_0x3549da,'actions':_0xf7411c});}return new _0x581b3b['HTTPRequest'](_0x4dcba1(0x32e),_0x4bbc76,{'headers':_0x4e8c36[_0x4dcba1(0x2f3)],'withCredentials':_0x4e8c36[_0x4dcba1(0x196)],'responseType':_0x4e8c36[_0x4dcba1(0x33c)],'body':{'requests':_0x4210d7}});}},{'distributeResult'(_0x3c3866,_0x7b9d41){const _0x386760=_0x14b301,{objectActions:_0x442684}=_0x3c3866;return _0x7b9d41[_0x386760(0x296)](_0x156ef3=>{const _0x9cd127=_0x386760,{unitID:_0x1f22d8,objectID:_0x4dce63,actions:_0x261d49}=_0x156ef3,_0x3d2ca6=_0x442684[_0x9cd127(0x33d)](_0x592353=>_0x592353[_0x9cd127(0x239)]===_0x1f22d8&&_0x592353[_0x9cd127(0x8e)]===_0x4dce63),_0x23ca85=_0x261d49[_0x9cd127(0x296)](_0x4a0fd7=>_0x3d2ca6==null?void 0x0:_0x3d2ca6['actions'][_0x9cd127(0x33d)](_0xe88b3=>_0xe88b3[_0x9cd127(0x40c)]===_0x4a0fd7))['filter'](_0x5d6c6f=>!!_0x5d6c6f);return{'config':_0x156ef3,'result':{'actions':_0x23ca85,'error':_0x3c3866[_0x9cd127(0x37d)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5531ab=_0x144fb0;var _0x191134,_0x5061b4;const _0x499f7d=this[_0x5531ab(0x283)][_0x5531ab(0x27c)](_0x3a861f),_0x47fd54=this['_configService']['getConfig'](_0x53057b);return(_0x5061b4=(_0x191134=_0x47fd54==null?void 0x0:_0x47fd54[_0x5531ab(0x364)])!=null?_0x191134:_0x499f7d)!=null?_0x5061b4:_0x504a28;}async[_0x144fb0(0x204)](_0x4b1f15){const _0x18a2b7=_0x144fb0,_0x1aac24=this[_0x18a2b7(0x4c5)]()+'/'+_0x4b1f15[_0x18a2b7(0x20f)]+_0x18a2b7(0x139);return(await this[_0x18a2b7(0x265)]['post'](_0x1aac24,{'body':_0x4b1f15}))[_0x18a2b7(0x141)]['objectID']||'';}async[_0x144fb0(0x1ba)](_0x63bc6d){const _0x5bb6b1=_0x144fb0,_0x2a4221=this[_0x5bb6b1(0x4c5)]()+'/-/object/list';return(await this[_0x5bb6b1(0x265)]['post'](_0x2a4221,{'body':_0x63bc6d}))['body'][_0x5bb6b1(0x304)];}async['update'](_0x164db6){const _0x5523b6=_0x144fb0,_0x50aeaf=this['_getAPIPrefixPath']()+'/'+_0x164db6[_0x5523b6(0x20f)]+_0x5523b6(0x102)+_0x164db6[_0x5523b6(0x8e)];await this['_HTTPService']['put'](_0x50aeaf,{'body':_0x164db6});}async[_0x144fb0(0x377)](_0x322c7d){const _0x3bb201=_0x144fb0,_0x482337=this[_0x3bb201(0x4c5)]()+'/'+_0x322c7d['objectType']+_0x3bb201(0x102)+_0x322c7d[_0x3bb201(0x8e)]+_0x3bb201(0x431);return(await this[_0x3bb201(0x265)][_0x3bb201(0x194)](_0x482337,{'body':_0x322c7d}))[_0x3bb201(0x141)][_0x3bb201(0x437)];}async[_0x144fb0(0x336)](_0x189b6d){const _0x2476f9=_0x144fb0,_0x4d9198=this[_0x2476f9(0x4c5)]()+_0x2476f9(0x342);return(await this[_0x2476f9(0x265)][_0x2476f9(0x194)](_0x4d9198,{'body':{'requests':_0x189b6d}}))[_0x2476f9(0x141)]['objectActions'];}async[_0x144fb0(0x43a)](_0x45246){const _0x2394c1=_0x144fb0,_0x320318=this[_0x2394c1(0x4c5)]()+'/'+_0x45246[_0x2394c1(0x20f)]+_0x2394c1(0xc6),_0x13b2c2=await this[_0x2394c1(0x265)][_0x2394c1(0x194)](_0x320318,{'body':_0x45246});return{'roles':_0x13b2c2['body']['roles'],'actions':_0x13b2c2[_0x2394c1(0x141)]['actions']};}async[_0x144fb0(0x459)](_0xd9b1a7){const _0x1160de=_0x144fb0,_0xf50c55=this[_0x1160de(0x4c5)]()+_0x1160de(0x254);await this[_0x1160de(0x265)][_0x1160de(0x32d)](_0xf50c55,{'params':{'collaboratorID':_0xd9b1a7[_0x1160de(0x17d)],'objectID':_0xd9b1a7['objectID'],'unitID':_0xd9b1a7[_0x1160de(0x239)]}});}async[_0x144fb0(0x295)](_0x4899a8){const _0x5bba01=_0x144fb0,_0x5f4af7=this['_getAPIPrefixPath']()+_0x5bba01(0x254);await this[_0x5bba01(0x265)][_0x5bba01(0x2cb)](_0x5f4af7,{'body':_0x4899a8});}async[_0x144fb0(0x133)](_0x1479eb){const _0x39c8d6=_0x144fb0,_0xe02dd5=this['_getAPIPrefixPath']()+_0x39c8d6(0x254);await this[_0x39c8d6(0x265)]['post'](_0xe02dd5,{'body':_0x1479eb});}async[_0x144fb0(0x1e8)](_0xf4e5c0){const _0xc14ae=_0x144fb0,_0x2da585=this[_0xc14ae(0x4c5)]()+_0xc14ae(0x254);return(await this[_0xc14ae(0x265)][_0xc14ae(0x3b8)](_0x2da585,{'params':{'objectID':_0xf4e5c0[_0xc14ae(0x8e)],'unitID':_0xf4e5c0[_0xc14ae(0x239)]}}))['body'][_0xc14ae(0x30e)];}async[_0x144fb0(0x3d3)](_0x2c6a7b){const _0x27e198=_0x144fb0,_0x1a227a=this['_getAPIPrefixPath']()+_0x27e198(0x254);await this[_0x27e198(0x265)][_0x27e198(0x3e4)](_0x1a227a,{'body':_0x2c6a7b});}},_0x4c8f94[_0x144fb0(0x3e6)]=_0x3de421([_0x5e23e6(0x0,_0x20df93['Inject'](_0x581b3b['HTTPService'])),_0x5e23e6(0x1,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x247)]))],_0x4c8f94[_0x144fb0(0x3e6)]);var _0x2f1633=Object[_0x144fb0(0x395)],_0x487f89=Object[_0x144fb0(0x457)],_0xf681d2=(_0x119721,_0x519d1a,_0x32a687,_0x3ae782)=>{const _0x5b3aab=_0x144fb0;for(var _0x3d0218=_0x3ae782>0x1?void 0x0:_0x3ae782?_0x487f89(_0x519d1a,_0x32a687):_0x519d1a,_0x15bd58=_0x119721[_0x5b3aab(0x118)]-0x1,_0x3c7b01;_0x15bd58>=0x0;_0x15bd58--)(_0x3c7b01=_0x119721[_0x15bd58])&&(_0x3d0218=(_0x3ae782?_0x3c7b01(_0x519d1a,_0x32a687,_0x3d0218):_0x3c7b01(_0x3d0218))||_0x3d0218);return _0x3ae782&&_0x3d0218&&_0x2f1633(_0x519d1a,_0x32a687,_0x3d0218),_0x3d0218;},_0x48ed7f=(_0x461283,_0x53e969)=>(_0x11865e,_0x303ad6)=>_0x53e969(_0x11865e,_0x303ad6,_0x461283);let _0x223987=class{constructor(_0x5517b0){this['_httpService']=_0x5517b0,this['_initRequestHeader']();}[_0x144fb0(0x2f2)](){const _0x42c89b=_0x144fb0;this[_0x42c89b(0x136)][_0x42c89b(0x1b6)]({'interceptor':(_0x4f1e44,_0x462e74)=>{const _0xc9c223=_0x42c89b,_0x2fb2d4=_0x4f1e44[_0xc9c223(0x2f3)],_0x2fab00=_0x505c0c['getAttachHeader']();return _0x2fab00&&_0x2fb2d4[_0xc9c223(0x271)](_0xc9c223(0x1b8),_0x2fab00),_0x462e74(_0x4f1e44);}});}};_0x223987=_0xf681d2([_0x48ed7f(0x0,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)]))],_0x223987);var _0x32f01a=Object['defineProperty'],_0x3d807f=Object['getOwnPropertyDescriptor'],_0x42aa89=(_0x155419,_0x1243eb,_0xc4b188,_0x438f9b)=>{for(var _0x8ceaa0=_0x438f9b>0x1?void 0x0:_0x438f9b?_0x3d807f(_0x1243eb,_0xc4b188):_0x1243eb,_0x47baa0=_0x155419['length']-0x1,_0x131a52;_0x47baa0>=0x0;_0x47baa0--)(_0x131a52=_0x155419[_0x47baa0])&&(_0x8ceaa0=(_0x438f9b?_0x131a52(_0x1243eb,_0xc4b188,_0x8ceaa0):_0x131a52(_0x8ceaa0))||_0x8ceaa0);return _0x438f9b&&_0x8ceaa0&&_0x32f01a(_0x1243eb,_0xc4b188,_0x8ceaa0),_0x8ceaa0;},_0x41e24=(_0x2e8970,_0xa6eb8e)=>(_0x2f1039,_0x1f652c)=>_0xa6eb8e(_0x2f1039,_0x1f652c,_0x2e8970);const _0x1716d5=[_0x144fb0(0x2ab),_0x144fb0(0x227),'image/jpg',_0x144fb0(0x13d),_0x144fb0(0x90)],_0x10e387=0x5*0x400*0x400,_0xc05462=_0x144fb0(0x1c9),_0xb984cf=_0x144fb0(0x3bf),_0x1c4578='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0xb9f95c=_0x144fb0(0x1b5);_0x4c8f94['ImageIoService']=class{constructor(_0x2d4e99,_0x55909b,_0x584a9e){const _0x20af37=_0x144fb0;_0x3e782f(this,_0x20af37(0x2e5),0x0),_0x3e782f(this,_0x20af37(0x15d),new _0x284d0['Subject']()),_0x3e782f(this,_0x20af37(0x11f),this[_0x20af37(0x15d)]),_0x3e782f(this,_0x20af37(0x123),new Map()),(this['_httpService']=_0x2d4e99,this['_configService']=_0x55909b,this[_0x20af37(0xc8)]=_0x584a9e);}[_0x144fb0(0x3e0)](_0x28abfe){const _0x17cca3=_0x144fb0;this[_0x17cca3(0x2e5)]=_0x28abfe,this[_0x17cca3(0x15d)]['next'](_0x28abfe);}[_0x144fb0(0x115)](_0x44dfc0,_0x44a871){const _0x56f6f9=_0x144fb0;if(_0x44a871===_0x1e0c7c[_0x56f6f9(0x34a)]['BASE64']){const _0x4600d3=new Image();return _0x4600d3[_0x56f6f9(0x38f)]=_0x44dfc0,_0x4600d3;}return this['_imageSourceCache']['get'](_0x44dfc0);}[_0x144fb0(0x14d)](_0xcae7a7,_0x5e2553,_0xef26ef){const _0x2097ce=_0x144fb0;_0x5e2553===_0x1e0c7c[_0x2097ce(0x34a)][_0x2097ce(0x3cd)]||_0xef26ef==null||this[_0x2097ce(0x123)][_0x2097ce(0x271)](_0xcae7a7,_0xef26ef);}async[_0x144fb0(0x3de)](_0x10922d){const _0x44f51e=_0x144fb0;try{const _0x1d8684=this['_replaceFileID'](this[_0x44f51e(0x4ac)](),''+_0x10922d),_0x4c8e26=(await this['_httpService'][_0x44f51e(0x3b8)](_0x1d8684))[_0x44f51e(0x141)];if(_0x4c8e26[_0x44f51e(0x37d)]&&_0x4c8e26[_0x44f51e(0x37d)][_0x44f51e(0x2a1)]===_0xe677c3['OK']){const _0x2029be=new URL(_0x4c8e26['url'],this[_0x44f51e(0x322)]())[_0x44f51e(0xf3)]();return Promise[_0x44f51e(0x308)](_0x2029be);}return Promise[_0x44f51e(0x18f)](_0x4c8e26[_0x44f51e(0x37d)]);}catch(_0xdbdcd8){return Promise[_0x44f51e(0x18f)](_0xdbdcd8);}}async[_0x144fb0(0x132)](_0x1f5499){const _0x54e1e5=_0x144fb0;let _0x7a3bea='';if(!_0x1716d5[_0x54e1e5(0xdb)](_0x1f5499['type']))return this[_0x54e1e5(0x274)](),Promise[_0x54e1e5(0x18f)](new Error(_0x1e0c7c[_0x54e1e5(0x1e5)][_0x54e1e5(0x43d)]));if(_0x1f5499[_0x54e1e5(0x332)]>_0x10e387)return this[_0x54e1e5(0x274)](),Promise[_0x54e1e5(0x18f)](new Error(_0x1e0c7c['ImageUploadStatusType'][_0x54e1e5(0x8d)]));try{const _0x13edfb=new FormData();_0x13edfb[_0x54e1e5(0xab)](_0x54e1e5(0x2d4),_0x1f5499);const _0x3d461f=this[_0x54e1e5(0xc8)][_0x54e1e5(0x138)](),_0x1f0a00=_0x3d461f==null?void 0x0:_0x3d461f[_0x54e1e5(0x1fd)]();if(!_0x1f0a00)throw new Error(_0x54e1e5(0x11d));const _0x2240b2=this[_0x54e1e5(0x226)]()+_0x54e1e5(0x255)+_0x1f5499['size'][_0x54e1e5(0xf3)]()+_0x54e1e5(0x3ad)+_0x1b99f2['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1f0a00),_0x35d298=await(await fetch(_0x2240b2,{'method':_0x54e1e5(0x32e),'body':_0x13edfb}))[_0x54e1e5(0x419)]();if(typeof _0x35d298[_0x54e1e5(0x23d)]!='string')return this[_0x54e1e5(0x274)](),Promise['reject'](new Error(_0x1e0c7c[_0x54e1e5(0x1e5)][_0x54e1e5(0x32b)]));_0x7a3bea=_0x35d298[_0x54e1e5(0x23d)];}catch{return this['_decreaseWaiting'](),Promise[_0x54e1e5(0x18f)](new Error(_0x1e0c7c[_0x54e1e5(0x1e5)][_0x54e1e5(0x32b)]));}return new Promise((_0x14ae7e,_0x32ca12)=>{const _0xc4a5cf=_0x54e1e5,_0x33c06c=new FileReader();_0x33c06c[_0xc4a5cf(0xee)](_0x1f5499),_0x33c06c[_0xc4a5cf(0x215)]=_0x29974f=>{const _0x134b74=_0xc4a5cf;var _0x4fb0ca;const _0x660394=(_0x4fb0ca=_0x29974f[_0x134b74(0x22f)])==null?void 0x0:_0x4fb0ca[_0x134b74(0x400)];if(_0x660394==null){this['_decreaseWaiting'](),_0x32ca12(new Error(_0x1e0c7c[_0x134b74(0x1e5)][_0x134b74(0x32b)]));return;}const _0x32b1e0=_0x20df93[_0x134b74(0x1c4)]['generateRandomId'](0x6);_0x14ae7e({'imageId':_0x32b1e0,'imageSourceType':_0x1e0c7c[_0x134b74(0x34a)][_0x134b74(0x2e3)],'source':_0x7a3bea,'base64Cache':_0x660394,'status':_0x1e0c7c['ImageUploadStatusType'][_0x134b74(0x1a6)]}),this['_decreaseWaiting']();};});}[_0x144fb0(0x226)](){const _0x33289d=_0x144fb0;var _0xd2e3fe,_0x516071;const _0x3a371d=this[_0x33289d(0x283)]['getConfig'](_0xc05462),_0xa0dd75=this[_0x33289d(0x283)][_0x33289d(0x27c)](_0x53057b);return(_0x516071=(_0xd2e3fe=_0xa0dd75==null?void 0x0:_0xa0dd75[_0x33289d(0x42c)])!=null?_0xd2e3fe:_0x3a371d)!=null?_0x516071:_0xb984cf;}['_getSignURL'](){const _0x59d22f=_0x144fb0;var _0x3c4709,_0x3abb08;const _0x19727d=this[_0x59d22f(0x283)][_0x59d22f(0x27c)](_0x1c4578),_0x1ffeca=this[_0x59d22f(0x283)][_0x59d22f(0x27c)](_0x53057b);return(_0x3abb08=(_0x3c4709=_0x1ffeca==null?void 0x0:_0x1ffeca[_0x59d22f(0x3b2)])!=null?_0x3c4709:_0x19727d)!=null?_0x3abb08:_0xb9f95c;}[_0x144fb0(0x322)](){const _0x34170b=_0x144fb0;var _0x3f77b3;const _0x136293=this[_0x34170b(0x283)]['getConfig'](_0x53057b);return(_0x3f77b3=_0x136293==null?void 0x0:_0x136293[_0x34170b(0x2bf)])!=null?_0x3f77b3:location[_0x34170b(0x49d)];}[_0x144fb0(0x2e9)](_0x56ddf5,_0x4bdc53){const _0x5cd504=_0x144fb0;return _0x56ddf5[_0x5cd504(0x1ca)]('{fileID}',_0x4bdc53);}['_decreaseWaiting'](){const _0xeb3d67=_0x144fb0;this[_0xeb3d67(0x2e5)]-=0x1,this[_0xeb3d67(0x15d)][_0xeb3d67(0x25d)](this[_0xeb3d67(0x2e5)]);}},_0x4c8f94[_0x144fb0(0xa6)]=_0x42aa89([_0x41e24(0x0,_0x20df93['Inject'](_0x581b3b[_0x144fb0(0x1d2)])),_0x41e24(0x1,_0x20df93[_0x144fb0(0x247)]),_0x41e24(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93['IUniverInstanceService']))],_0x4c8f94[_0x144fb0(0xa6)]);var _0x228763=Object[_0x144fb0(0x395)],_0x45d606=Object[_0x144fb0(0x457)],_0x87968c=(_0x1dcf2e,_0x606c14,_0x295a80,_0x34dc2a)=>{const _0x59fa02=_0x144fb0;for(var _0x110865=_0x34dc2a>0x1?void 0x0:_0x34dc2a?_0x45d606(_0x606c14,_0x295a80):_0x606c14,_0x49c970=_0x1dcf2e[_0x59fa02(0x118)]-0x1,_0x43f7b9;_0x49c970>=0x0;_0x49c970--)(_0x43f7b9=_0x1dcf2e[_0x49c970])&&(_0x110865=(_0x34dc2a?_0x43f7b9(_0x606c14,_0x295a80,_0x110865):_0x43f7b9(_0x110865))||_0x110865);return _0x34dc2a&&_0x110865&&_0x228763(_0x606c14,_0x295a80,_0x110865),_0x110865;},_0xf205a2=(_0x12af0d,_0x20f2a3)=>(_0x29aef1,_0x24f880)=>_0x20f2a3(_0x29aef1,_0x24f880,_0x12af0d);let _0x55aa0a=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x217912,_0x2bf750,_0x175d09,_0x3a8f74,_0x402d73){const _0x7ddccb=_0x144fb0;super(),this[_0x7ddccb(0x2fc)]=_0x217912,this[_0x7ddccb(0xc8)]=_0x2bf750,this['_permissionService']=_0x175d09,this['_collaborationSessionService']=_0x3a8f74,this[_0x7ddccb(0x208)]=_0x402d73,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x144fb0(0x105)](){const _0x43083a=_0x144fb0,_0x1f4f25=async _0x227719=>{const _0x5ad353=_0x205f;(await this[_0x5ad353(0x172)][_0x5ad353(0x24e)](_0x227719))[_0x5ad353(0x435)][_0x5ad353(0x34d)](_0x3e7ea3['filter'](_0x581574=>_0x581574['eventID']===_0x55cc56[_0x5ad353(0xf4)][_0x5ad353(0x30c)]),_0x3e7ea3['takeUntil'](this[_0x5ad353(0x288)]))[_0x5ad353(0xda)](_0x16ec44=>{const _0xa8e7e2=_0x5ad353,_0x33d4cb=_0x16ec44,{reason:_0x4266d6}=_0x33d4cb['data'];this[_0xa8e7e2(0x2fc)][_0xa8e7e2(0x3b8)](_0x40b1aa[_0xa8e7e2(0x3fe)])[_0xa8e7e2(0x429)]({'type':_0x3206ad[_0xa8e7e2(0x43e)][_0xa8e7e2(0x290)],'content':this[_0xa8e7e2(0x208)]['t'](_0xa8e7e2(0x467))+'('+_0x4266d6+')'}),this[_0xa8e7e2(0x471)][_0xa8e7e2(0x2ad)](new _0x5dce24[(_0xa8e7e2(0x1e0))](_0x227719)['id'],!0x1),this[_0xa8e7e2(0x172)][_0xa8e7e2(0x328)](_0x227719);});};_0x284d0[_0x43083a(0x8c)](this[_0x43083a(0xc8)]['getTypeOfUnitAdded$'](_0x20df93[_0x43083a(0x441)][_0x43083a(0x4bf)]),this['_univerInstanceService'][_0x43083a(0x362)](_0x20df93[_0x43083a(0x441)][_0x43083a(0x126)]))[_0x43083a(0x34d)](_0x3e7ea3[_0x43083a(0x296)](_0x4d6863=>_0x4d6863[_0x43083a(0x1fd)]()),_0x3e7ea3[_0x43083a(0x4a2)](_0x33627f=>!_0x20df93[_0x43083a(0x232)](_0x33627f)),_0x3e7ea3[_0x43083a(0xa0)](this[_0x43083a(0x288)]))[_0x43083a(0xda)](_0x56fa2c=>{_0x1f4f25(_0x56fa2c);});}[_0x144fb0(0x3bc)](){const _0x495002=_0x144fb0,_0x1d774a=async _0x22836f=>{const _0x4085de=_0x205f;(await this[_0x4085de(0x172)]['requireSession'](_0x22836f))[_0x4085de(0x435)][_0x4085de(0x34d)](_0x3e7ea3[_0x4085de(0x4a2)](_0xfe690e=>_0xfe690e[_0x4085de(0x109)]===_0x55cc56['CollaborationEvent'][_0x4085de(0x3c7)]),_0x3e7ea3[_0x4085de(0xa0)](this['dispose$']))[_0x4085de(0xda)](_0x54ad15=>{const _0x788d88=_0x4085de,_0x5d676c=_0x54ad15,{objectId:_0x1ea4bb}=_0x5d676c[_0x788d88(0x24b)],_0x31e916=this[_0x788d88(0x2fc)][_0x788d88(0x3b8)](_0xf53409[_0x788d88(0x21a)]);_0x1ea4bb===_0x22836f?_0x31e916[_0x788d88(0x307)](_0x22836f):_0x31e916['refreshPermission'](_0x22836f,_0x1ea4bb);});};_0x284d0[_0x495002(0x8c)](this[_0x495002(0xc8)][_0x495002(0x362)](_0x20df93[_0x495002(0x441)][_0x495002(0x4bf)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x20df93['UniverInstanceType'][_0x495002(0x126)]))[_0x495002(0x34d)](_0x3e7ea3[_0x495002(0x296)](_0x4eeb14=>_0x4eeb14[_0x495002(0x1fd)]()),_0x3e7ea3[_0x495002(0x4a2)](_0x5d8f73=>!_0x20df93['isInternalEditorID'](_0x5d8f73)),_0x3e7ea3[_0x495002(0xa0)](this[_0x495002(0x288)]))[_0x495002(0xda)](_0x390992=>{_0x1d774a(_0x390992);});}};_0x55aa0a=_0x87968c([_0xf205a2(0x0,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0xf205a2(0x1,_0x20df93[_0x144fb0(0x292)]),_0xf205a2(0x2,_0x20df93['IPermissionService']),_0xf205a2(0x3,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x491)])),_0xf205a2(0x4,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)]))],_0x55aa0a);var _0x1bd018=Object[_0x144fb0(0x395)],_0x2126a9=Object['getOwnPropertyDescriptor'],_0x3a7afd=(_0x2adccb,_0x3e9f45,_0x1a9f20,_0xc00ca0)=>{const _0x7ce8fc=_0x144fb0;for(var _0x464c4d=_0xc00ca0>0x1?void 0x0:_0xc00ca0?_0x2126a9(_0x3e9f45,_0x1a9f20):_0x3e9f45,_0x514e8b=_0x2adccb[_0x7ce8fc(0x118)]-0x1,_0x11f70d;_0x514e8b>=0x0;_0x514e8b--)(_0x11f70d=_0x2adccb[_0x514e8b])&&(_0x464c4d=(_0xc00ca0?_0x11f70d(_0x3e9f45,_0x1a9f20,_0x464c4d):_0x11f70d(_0x464c4d))||_0x464c4d);return _0xc00ca0&&_0x464c4d&&_0x1bd018(_0x3e9f45,_0x1a9f20,_0x464c4d),_0x464c4d;},_0x5bc719=(_0x4d9acc,_0x4eb48c)=>(_0x220477,_0x3d20eb)=>_0x4eb48c(_0x220477,_0x3d20eb,_0x4d9acc);_0x4c8f94['SnapshotServerOverHTTPService']=class{constructor(_0x3ef5ac,_0x3e8f33){const _0x1c0850=_0x144fb0;this[_0x1c0850(0x283)]=_0x3ef5ac,this[_0x1c0850(0x136)]=_0x3e8f33;}async[_0x144fb0(0x1d4)](_0x3a7380,_0x30e7b3){const _0x319b13=_0x144fb0;var _0x2aeae3;const {unitID:_0xf27c49,type:_0x386234,revision:_0x3bb868=0x0}=_0x30e7b3,_0x2281cc=this[_0x319b13(0x4cc)]()+'/'+_0x386234+_0x319b13(0xdc)+_0xf27c49+_0x319b13(0x37c)+_0x3bb868,_0xf0db0a=(await this[_0x319b13(0x136)][_0x319b13(0x3b8)](_0x2281cc))[_0x319b13(0x141)],_0x1e23fb=(_0x2aeae3=_0xf0db0a['snapshot'])==null?void 0x0:_0x2aeae3[_0x319b13(0x2a3)];if(_0x1e23fb){const _0x141121=_0x1e23fb==null?void 0x0:_0x1e23fb[_0x319b13(0x4a4)],_0x54aad0=_0x55cc56[_0x319b13(0x12a)][_0x319b13(0xe0)](_0x55cc56[_0x319b13(0x2aa)](_0x141121));_0x1e23fb[_0x319b13(0x4a4)]=_0x54aad0,Object[_0x319b13(0x27b)](_0x1e23fb[_0x319b13(0x2e7)])[_0x319b13(0x478)](([,_0x90d0aa])=>{const _0x3abfe4=_0x319b13,_0x520e31=_0x90d0aa['originalMeta'],_0x1a930a=_0x55cc56[_0x3abfe4(0x12a)]['encode'](_0x55cc56[_0x3abfe4(0x2aa)](_0x520e31));_0x90d0aa[_0x3abfe4(0x4a4)]=_0x1a930a;});}return _0xf0db0a;}async[_0x144fb0(0x13f)](_0x4f597b,_0x4d4c6f){const _0x271e44=_0x144fb0,{unitID:_0xeffba9,type:_0x510739,blockID:_0x165a91}=_0x4d4c6f,_0x4bfb6e=this[_0x271e44(0x18a)]()+'/'+_0x510739+_0x271e44(0xdc)+_0xeffba9+'/block/'+_0x165a91;return(await this['_httpService'][_0x271e44(0x3b8)](_0x4bfb6e))[_0x271e44(0x141)];}async[_0x144fb0(0x473)](_0xaa1599,_0x440ad2){const _0x4b47ea=_0x144fb0,{unitID:_0x34bfa4,type:_0xbd8be3,blockID:_0x164a90}=_0x440ad2,_0x3fdd0b=this['_getAPIPrefix']()+'/block/'+_0xbd8be3+_0x4b47ea(0xdc)+_0x34bfa4+_0x4b47ea(0x348)+_0x164a90;return(await this[_0x4b47ea(0x136)]['get'](_0x3fdd0b))[_0x4b47ea(0x141)];}async[_0x144fb0(0x319)](_0x59b7aa,_0x2f4d80){const _0x29e603=_0x144fb0,{unitID:_0x3a804b,type:_0x5cd2e2,from:_0x26ddc0,to:_0x302102}=_0x2f4d80,_0x28f96a=this['_getAPIPrefix']()+'/'+_0x5cd2e2+_0x29e603(0xdc)+_0x3a804b+'/fetchmissing?from='+_0x26ddc0+_0x29e603(0x9e)+_0x302102;return(await this[_0x29e603(0x136)][_0x29e603(0x3b8)](_0x28f96a))[_0x29e603(0x141)];}[_0x144fb0(0x4cc)](){const _0x5d325c=_0x144fb0;var _0x2f2397;return(_0x2f2397=this[_0x5d325c(0x283)][_0x5d325c(0x27c)](_0xa047ec))!=null?_0x2f2397:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x12462a=_0x144fb0;var _0x2e7eb2,_0x15ec5c;const _0x42f22b=this[_0x12462a(0x283)][_0x12462a(0x27c)](_0x241bd8),_0x11f91d=this['_configService']['getConfig'](_0x53057b);return(_0x15ec5c=(_0x2e7eb2=_0x11f91d==null?void 0x0:_0x11f91d[_0x12462a(0x317)])!=null?_0x2e7eb2:_0x42f22b)!=null?_0x15ec5c:_0x534440;}async[_0x144fb0(0x47b)](_0x289c75,_0x595f94){const _0x135966=_0x144fb0,_0x3ae35b=_0x135966(0x3f1)+_0x595f94[_0x135966(0x2e4)]+_0x135966(0xdc)+_0x595f94[_0x135966(0x239)]+_0x135966(0x16c);return(await this[_0x135966(0x136)][_0x135966(0x3b8)](_0x3ae35b,{'params':{'resourceId':JSON['stringify'](_0x595f94[_0x135966(0xc4)])}}))[_0x135966(0x141)];}[_0x144fb0(0x31a)](){const _0x3ba35e=_0x144fb0;throw new Error(_0x3ba35e(0x287));}[_0x144fb0(0x2ca)](){const _0x58b893=_0x144fb0;throw new Error(_0x58b893(0x287));}[_0x144fb0(0x2c2)](){const _0x139d14=_0x144fb0;throw new Error(_0x139d14(0x287));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x4c8f94[_0x144fb0(0x18c)]=_0x3a7afd([_0x5bc719(0x0,_0x20df93[_0x144fb0(0x247)]),_0x5bc719(0x1,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)]))],_0x4c8f94[_0x144fb0(0x18c)]);var _0x88636f=Object['defineProperty'],_0x4b560=Object['getOwnPropertyDescriptor'],_0x296bb7=(_0x341d48,_0x4438a5,_0x67d0cc,_0xd6b680)=>{const _0x32a916=_0x144fb0;for(var _0x3452e7=_0xd6b680>0x1?void 0x0:_0xd6b680?_0x4b560(_0x4438a5,_0x67d0cc):_0x4438a5,_0x3259fc=_0x341d48[_0x32a916(0x118)]-0x1,_0x429e3c;_0x3259fc>=0x0;_0x3259fc--)(_0x429e3c=_0x341d48[_0x3259fc])&&(_0x3452e7=(_0xd6b680?_0x429e3c(_0x4438a5,_0x67d0cc,_0x3452e7):_0x429e3c(_0x3452e7))||_0x3452e7);return _0xd6b680&&_0x3452e7&&_0x88636f(_0x4438a5,_0x67d0cc,_0x3452e7),_0x3452e7;},_0x16bd9b=(_0x251060,_0x2bfa19)=>(_0x80c268,_0x3dd044)=>_0x2bfa19(_0x80c268,_0x3dd044,_0x251060);let _0x2dc26f=class extends _0x20df93[_0x144fb0(0x458)]{constructor(_0x2eb6c4,_0x21a1bb,_0x2870be,_0x5a7eb2,_0x274548){const _0x197923=_0x144fb0;super(_0x2eb6c4,_0x21a1bb,_0x2870be),this[_0x197923(0x3dd)]=_0x5a7eb2,this[_0x197923(0x414)]=_0x274548;}[_0x144fb0(0x2bd)](_0x469ecb,_0x279b2b){const _0x5d966b=_0x144fb0,_0x273b0e=this['_getUndoStack'](_0x469ecb);if(_0x273b0e)try{const _0x56b123=this[_0x5d966b(0x4a6)](_0x273b0e,_0x279b2b);this[_0x5d966b(0x9f)](_0x469ecb,_0x56b123);}catch(_0x4bde80){this[_0x5d966b(0x414)]['error']('[CollaborationUndoRedoService]',_0x4bde80),this[_0x5d966b(0x3eb)](_0x469ecb);}const _0x1f3256=this[_0x5d966b(0x1c1)](_0x469ecb);if(_0x1f3256)try{const _0x2f09ac=this['_transformStack'](_0x1f3256,_0x279b2b);this['_substituteRedoStack'](_0x469ecb,_0x2f09ac);}catch(_0x5498a3){this['_logService'][_0x5d966b(0x37d)](_0x5498a3),this['_clearRedo'](_0x469ecb);}}[_0x144fb0(0x3eb)](_0x35ee75){const _0x42a041=_0x144fb0,_0x28670e=this[_0x42a041(0x4bd)](_0x35ee75);_0x28670e&&(_0x28670e[_0x42a041(0x118)]=0x0,this[_0x42a041(0x3ea)]());}[_0x144fb0(0x305)](_0x26cacb){const _0x48c403=_0x144fb0,_0x406d8e=this['_getRedoStack'](_0x26cacb);_0x406d8e&&(_0x406d8e['length']=0x0,this[_0x48c403(0x3ea)]());}[_0x144fb0(0x9f)](_0x3daf28,_0x3060fd){const _0x2ab639=_0x144fb0;this[_0x2ab639(0x2a2)][_0x2ab639(0x271)](_0x3daf28,_0x3060fd),this[_0x2ab639(0x3ea)]();}['_substituteRedoStack'](_0x3c46e8,_0x5a5b4f){const _0x6625e0=_0x144fb0;this[_0x6625e0(0x3f8)][_0x6625e0(0x271)](_0x3c46e8,_0x5a5b4f),this['_updateStatus']();}[_0x144fb0(0x4a6)](_0x4440a1,_0x1ce351){const _0xbf4c6c=_0x144fb0,_0x35cb53=[];let _0x2fdcc1=_0x1ce351,_0x1f0c19=_0x1ce351;for(let _0x3903cf=_0x4440a1['length']-0x1;_0x3903cf>=0x0;_0x3903cf--){const {unitID:_0x4c7ce5,undoMutations:_0x308717,redoMutations:_0x5462cd}=_0x4440a1[_0x3903cf],_0x50a949=this[_0xbf4c6c(0x3dd)][_0xbf4c6c(0x40d)](_0x2fdcc1,_0x308717),_0x411642=this[_0xbf4c6c(0x3dd)][_0xbf4c6c(0x40d)](_0x1f0c19,_0x5462cd);if(_0x55cc56[_0xbf4c6c(0x2c6)](_0x50a949)||_0x55cc56['isTransformMutationsWithChangesetFailure'](_0x411642)){this[_0xbf4c6c(0x414)][_0xbf4c6c(0x37d)]('[CollaborationUndoRedoService]',_0xbf4c6c(0x39f),_0x50a949,_0x411642);break;}_0x2fdcc1=_0x50a949[_0xbf4c6c(0x4b5)],_0x1f0c19=_0x411642['c1Prime'],_0x35cb53[_0xbf4c6c(0x20e)]({'unitID':_0x4c7ce5,'undoMutations':_0x50a949[_0xbf4c6c(0x171)],'redoMutations':_0x411642[_0xbf4c6c(0x171)]});}return _0x35cb53[_0xbf4c6c(0x47e)]();}};_0x2dc26f=_0x296bb7([_0x16bd9b(0x0,_0x20df93[_0x144fb0(0x292)]),_0x16bd9b(0x1,_0x20df93[_0x144fb0(0x338)]),_0x16bd9b(0x2,_0x20df93[_0x144fb0(0x3e1)]),_0x16bd9b(0x3,_0x55cc56['ITransformService']),_0x16bd9b(0x4,_0x20df93['ILogService'])],_0x2dc26f);class _0x3b6a43 extends _0x20df93[_0x144fb0(0x330)]{constructor(){const _0x2b1eae=_0x144fb0;super(),_0x3e782f(this,'urlChange$'),this[_0x2b1eae(0x2b5)]=_0x284d0[_0x2b1eae(0x341)](window,'popstate')[_0x2b1eae(0x34d)](_0x284d0[_0x2b1eae(0xa0)](this[_0x2b1eae(0x288)]),_0x284d0[_0x2b1eae(0x447)](0x1),_0x284d0[_0x2b1eae(0x48b)](void 0x0));}[_0x144fb0(0x475)](_0x1204b2,_0x48ce2e,_0x45659b=!0x1){const _0x323768=_0x144fb0,_0x18ac61=new URL(window['location'][_0x323768(0x264)]);_0x18ac61[_0x323768(0x222)][_0x323768(0x271)](_0x1204b2,_0x48ce2e),_0x45659b?window[_0x323768(0x3df)][_0x323768(0x94)]('','',_0x18ac61[_0x323768(0xf3)]()):window[_0x323768(0x3df)]['pushState']('','',_0x18ac61[_0x323768(0xf3)]());}[_0x144fb0(0x39a)](_0x25633d,_0x4c1afd=!0x1){const _0x262621=_0x144fb0,_0x4e2b10=new URL(window[_0x262621(0x33a)][_0x262621(0x264)]);_0x4e2b10[_0x262621(0x222)][_0x262621(0x32d)](_0x25633d),_0x4c1afd?window[_0x262621(0x3df)][_0x262621(0x94)]('','',_0x4e2b10['toString']()):window['history']['pushState']('','',_0x4e2b10[_0x262621(0xf3)]());}[_0x144fb0(0xa4)](_0x192707){const _0x48c1f5=_0x144fb0;var _0xff231b;return(_0xff231b=new URL(window[_0x48c1f5(0x33a)][_0x48c1f5(0x264)])[_0x48c1f5(0x222)][_0x48c1f5(0x3b8)](_0x192707))!=null?_0xff231b:void 0x0;}}var _0x300a5f=Object[_0x144fb0(0x395)],_0x35ad9d=Object['getOwnPropertyDescriptor'],_0x29a0a1=(_0xfffcea,_0x363bfe,_0x10d1c4)=>_0x363bfe in _0xfffcea?_0x300a5f(_0xfffcea,_0x363bfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10d1c4}):_0xfffcea[_0x363bfe]=_0x10d1c4,_0x15cc85=(_0xd6f816,_0x153f65,_0x152004,_0x2d8899)=>{for(var _0x36d9aa=_0x2d8899>0x1?void 0x0:_0x2d8899?_0x35ad9d(_0x153f65,_0x152004):_0x153f65,_0x5953cf=_0xd6f816['length']-0x1,_0x3f1dbe;_0x5953cf>=0x0;_0x5953cf--)(_0x3f1dbe=_0xd6f816[_0x5953cf])&&(_0x36d9aa=(_0x2d8899?_0x3f1dbe(_0x153f65,_0x152004,_0x36d9aa):_0x3f1dbe(_0x36d9aa))||_0x36d9aa);return _0x2d8899&&_0x36d9aa&&_0x300a5f(_0x153f65,_0x152004,_0x36d9aa),_0x36d9aa;},_0x4ce01d=(_0x29e613,_0x24e2f7)=>(_0x24a3ca,_0x173df2)=>_0x24e2f7(_0x24a3ca,_0x173df2,_0x29e613),_0x48b619=(_0x3f7dba,_0xefe5be,_0x318fa2)=>_0x29a0a1(_0x3f7dba,_0xefe5be+'',_0x318fa2);const _0xbcfb1a='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x4c8f94[_0x144fb0(0x43f)]=class extends _0x20df93[_0x144fb0(0x48f)]{constructor(_0x479590=_0x391b0e,_0x4c51b8,_0x1c32a2,_0x3f9f96,_0x35f07c){const _0x4b8da3=_0x144fb0;super(),this[_0x4b8da3(0x417)]=_0x479590,this['_logService']=_0x4c51b8,this[_0x4b8da3(0x2f9)]=_0x1c32a2,this[_0x4b8da3(0x2fc)]=_0x3f9f96,this[_0x4b8da3(0x283)]=_0x35f07c;const {..._0x3012f8}=this[_0x4b8da3(0x417)];this[_0x4b8da3(0x283)]['setConfig'](_0x53057b,_0x3012f8);}[_0x144fb0(0x22b)](){const _0x5585f4=_0x144fb0;this['_registerDependencies'](),_0x20df93['touchDependencies'](this[_0x5585f4(0x2fc)],[[_0x297695],[_0x4c8f94[_0x5585f4(0x26a)]],[_0x55aa0a]]);}[_0x144fb0(0x12f)](){const _0x54fd81=_0x144fb0;_0x20df93[_0x54fd81(0x430)](this['_injector'],[[_0x43a9b6]]);}['onRendered'](){const _0x35ab15=_0x144fb0;this[_0x35ab15(0x4b4)]();}[_0x144fb0(0x1d1)](){const _0x1d1141=_0x144fb0;var _0x9f257,_0x5ed578,_0x260d2b,_0x5dc5c5;this[_0x1d1141(0x2fc)][_0x1d1141(0x26d)](_0x20df93[_0x1d1141(0x2d0)])&&this['_logService']['error'](_0x1d1141(0x162),_0x1d1141(0x28c));let _0x11d1e2=[[_0x20df93[_0x1d1141(0x2d0)],{'useClass':_0x2dc26f}],[_0x4c8f94[_0x1d1141(0x491)]],[_0x402c47],[_0x581b3b[_0x1d1141(0x1d2)]],[_0x22cd46,{'useClass':_0x3b6a43}],[_0x513006],[_0x4c8f94[_0x1d1141(0x309)]],[_0x581b3b['WebSocketService']],[_0x44b9f8],[_0x5d5342],[_0x57c1cf],[_0x1ab040],[_0x41e9e1],[_0x223987],[_0x2d13b9],[_0x55aa0a],[_0x194337,{'useClass':(_0x5ed578=(_0x9f257=this[_0x1d1141(0x417)])==null?void 0x0:_0x9f257[_0x1d1141(0x2dc)])!=null?_0x5ed578:_0x4c8f94[_0x1d1141(0xec)]}],[_0x581b3b['IHTTPImplementation'],{'useClass':_0x581b3b[_0x1d1141(0x2ea)]}],[_0x55cc56[_0x1d1141(0x449)],{'useClass':_0x4c8f94[_0x1d1141(0x18c)]}],[_0x20df93[_0x1d1141(0xc5)],{'useClass':_0x4c8f94['AuthzIoHttpService']}],[_0x1e0c7c[_0x1d1141(0x2e6)],{'useClass':_0x4c8f94[_0x1d1141(0xa6)]}],[_0x4c8f94[_0x1d1141(0x10e)]],[_0x4c8f94[_0x1d1141(0x26a)]],[_0x4c8f94[_0x1d1141(0x10a)]],[_0x43a9b6],[_0x297695]];(_0x260d2b=this[_0x1d1141(0x417)])!=null&&_0x260d2b[_0x1d1141(0x4b9)]&&_0x11d1e2[_0x1d1141(0x20e)]([_0x3977df,{'useClass':_0x4e8c93}]),_0x11d1e2=_0x20df93[_0x1d1141(0x3bb)](_0x11d1e2,(_0x5dc5c5=this[_0x1d1141(0x417)])==null?void 0x0:_0x5dc5c5['override']),_0x11d1e2[_0x1d1141(0x478)](_0x4e2f9e=>this[_0x1d1141(0x2fc)][_0x1d1141(0x4bc)](_0x4e2f9e)),this[_0x1d1141(0x21b)]();}[_0x144fb0(0x4b4)](){const _0x14b5ee=_0x144fb0;this['disposeWithMe'](this['_renderManagerService'][_0x14b5ee(0x175)](_0x20df93[_0x14b5ee(0x441)]['UNIVER_DOC'],[_0x10cc5e])),this['disposeWithMe'](this['_renderManagerService'][_0x14b5ee(0x175)](_0x20df93[_0x14b5ee(0x441)][_0x14b5ee(0x4bf)],[_0x2b682d]));}[_0x144fb0(0x21b)](){const _0x3b88c8=_0x144fb0;var _0x5a253e,_0x27df84;this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x581b3b['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x581b3b[_0x3b88c8(0x23c)]({'maxParallel':0x6})}),this['_injector'][_0x3b88c8(0x3b8)](_0x223987),(_0x5a253e=this[_0x3b88c8(0x417)])!=null&&_0x5a253e['enableOfflineEditing']||this[_0x3b88c8(0x2fc)]['get'](_0x4c8f94[_0x3b88c8(0x309)])['disableLocalCache'](),(_0x27df84=this[_0x3b88c8(0x417)])!=null&&_0x27df84[_0x3b88c8(0xce)]&&this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x41e9e1),this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x4c8f94[_0x3b88c8(0x10e)]),this['_injector'][_0x3b88c8(0x26d)](_0x4c8f94[_0x3b88c8(0x10a)])&&this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x4c8f94[_0x3b88c8(0x10a)]);}},_0x48b619(_0x4c8f94[_0x144fb0(0x43f)],_0x144fb0(0x35f),_0xbcfb1a),_0x4c8f94[_0x144fb0(0x43f)]=_0x15cc85([_0x20df93[_0x144fb0(0x221)](_0x55cc56['UniverCollaborationPlugin']),_0x4ce01d(0x1,_0x20df93[_0x144fb0(0x1a2)]),_0x4ce01d(0x2,_0x1ff35a[_0x144fb0(0x310)]),_0x4ce01d(0x3,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0x4ce01d(0x4,_0x20df93[_0x144fb0(0x247)])],_0x4c8f94[_0x144fb0(0x43f)]),_0x4c8f94[_0x144fb0(0x25a)]=_0x3a861f,_0x4c8f94[_0x144fb0(0xcf)]=_0x546840,_0x4c8f94[_0x144fb0(0x3c6)]=_0x3c9b9d,_0x4c8f94[_0x144fb0(0x4bb)]=_0x5d3e7e,_0x4c8f94[_0x144fb0(0x1e4)]=_0x2b690e,_0x4c8f94['CommentService']=_0x2d13b9,_0x4c8f94[_0x144fb0(0xd8)]=_0x4ffc98,_0x4c8f94[_0x144fb0(0x358)]=_0x16ecf3,_0x4c8f94[_0x144fb0(0x363)]=_0x194337,_0x4c8f94[_0x144fb0(0x2ef)]=_0x22cd46,_0x4c8f94[_0x144fb0(0x39c)]=_0x1a11f9,_0x4c8f94[_0x144fb0(0x211)]=_0x57c1a6,_0x4c8f94[_0x144fb0(0x345)]=_0x30e871,_0x4c8f94[_0x144fb0(0x2d2)]=_0x456d0e,_0x4c8f94[_0x144fb0(0x367)]=_0x241bd8,_0x4c8f94[_0x144fb0(0xc9)]=_0xa047ec,_0x4c8f94['SessionStatus']=_0x4d48e1,_0x4c8f94[_0x144fb0(0x1d5)]=_0x128851,_0x4c8f94[_0x144fb0(0x2cf)]=_0x3b6a43,_0x4c8f94[_0x144fb0(0x294)]=_0x441743,_0x4c8f94['serializeCombRequest']=_0x2d1c74,Object[_0x144fb0(0x395)](_0x4c8f94,Symbol['toStringTag'],{'value':_0x144fb0(0x340)});}));