@univerjs-pro/collaboration-client 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +32 -0
- package/lib/locale/ru-RU.json +32 -0
- package/lib/locale/zh-CN.json +32 -0
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +17 -8
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +5 -5
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +29 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +31 -0
- package/lib/umd/index.js +1 -1
- package/package.json +28 -25
- package/lib/types/locale/index.d.ts +0 -2
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function _0x4733(_0x3775e2,_0x35ff5f){const _0x4b7e7e=_0x4b7e();return _0x4733=function(_0x47337a,_0x25140b){_0x47337a=_0x47337a-0xbb;let _0x202488=_0x4b7e7e[_0x47337a];return _0x202488;},_0x4733(_0x3775e2,_0x35ff5f);}function _0x4b7e(){const _0x2b7dec=['data','getRelativeCoord','UniverSheets','getActiveSheet','csRejEvent','_document','arc','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_roomMembers$','_transformIMECache','_onRefRangeChange','UniverCollaboration','getConfig','mapTo','Edit\x20conflicts','getViewport','_type','clear','_hover','getScrollXYByRelativeCoords','auth.needGotoLoginAlert','conflict','\x20to\x20','CollaborationStatusDisplay','FromArray','appendMutation','currentSkeleton$','RevisionService','collabStatus.offline','code','handleInsertRangeMoveRight','hasOwnProperty','_pendingMutations','_submitChangeset','LIVESHARE_OPERATION','addObject','getParam','_handler','serializeTextRange','activeSheet$','@wendellhu/redi/react-bindings','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','generateRandomId','_saveTaskMap','LocaleService','_loadSheet','DocSkeletonManagerService','top','onPointerEnterObserver','IUniverInstanceService','requireSession','_unlockTransition','show','_localCacheService','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_socket$','getUnitId','getCollabEntity$','COLLAB_SUBMIT_CHANGESET_URL','selections','Disposable','skeleton','userID','getCoordByCell','InsertRowCommandId','replaceTextRanges','set','Warning','asObservable','_incrementRevisionNumber','DesktopCollaborationStatusDisplayController','selection','workbook','_sheetSkeletonManagerService','_univerPermissionService','searchParams','unitId','529304LPPNGW','removeParam','collaboration-client','submit\x20changeset\x20error!','rgba(255,\x20255,\x20255,\x200.01)','_removeCollabCursors','_color','joinEvent','measureText','some','sessionStatus','RxDisposable','getCurrentRevForDocument','_createInitialState','/universer-api/comb','[OfflineState]:\x20received\x20rejection.','toggleOnline','MSG_FOR_ERROR','_unitID','_event$','onlineStatusIcon','_snapshotService','fetching\x20missing\x20changesets\x20from\x20','getTime','object','onTransformIME','IContextService','socket\x20close','_onRemoteACK','_getSaveTimeout','IMEInputManagerService','65196eipiim','trim','_draw','IUIPartsService','_session','take','_revisionService','rev','getFocusedUnit','_handleHeartbeatEvent','open$','RETRY_CONNECTING_MAX_COUNT','getMergeData','revision','react','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','_entities','Shape','_scheduleCollaborationTimeoutTimer','max','@univerjs-pro/collaboration','m1Prime','_members','substring','originalMeta','已保存','conflict.title','Subject','RegularPolygon','black','status','EffectRefRangId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','handleIRemoveRow','RichTextEditingMutation','univer-pro.collaboration-client-socket-service','UNIVER_SLIDE','sessionStatus$','save','_injector','_exhaustRemoteChangesetQueue','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_singleActiveUnitService','resourceIDs','283032kadyUk','fromEvent','Connection\x20failed,\x20please\x20check\x20your\x20network.','Tools','_updateStatus','/resources','_onRecvEvent','call','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','transform','collabStatus.fetchMiss','LocalCacheService','1141tIgHZL','_updateURLWithCurrentState','_currentUser','loadDoc','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketMessageSubscription','_refRangeService','unshift','_init','operators','syncEditingCollabCursor','_getSendChangesetTimeout','DataLoaderController','entries','_state','catch','@univerjs/engine-formula','[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.','event$','session','_getScale','_socketReady','_onCursorDelete','forEach','Inject','add','tag','saveSnapshot','send','distinctUntilChanged','awaitingChangeset','LEAVE','_updateLocalCursor','amd','UniverIcon','_sheetTransformSelectionsService','rxjs/operators','1em','clearTimeout','Error','collaborationUniverTypes','_getCtorByUniverType','_schedule','BuiltInUIPart','socketService','_timeoutTimer','next','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','state','dispose$','_clearUndo','override','_updateSubUnitFromURLParams','_name','_beforeCloseService','loadOfflineData','transformUndoRedo','onlineStatusTitle','unit','rxjs','getCurrentUnitForType','OnLifecycle','isTransformChangesetsSuccess','onMissedChangesetFetched','0\x200\x2016\x2016','enableOfflineEditing','getUndoRedoMutationParamsCache','setCurrentUser','updateMember','RefRangeService','_getDocObject','mergeOverrideWithDependencies','setParam','_onRemoteRejected','close','IRenderManagerService','_getUndoStack','IUndoRedoService','[OfflineState]:\x20received\x20acknowledgement.','Starting','_transformService','CHANGESET_REJ','IDLE','url(#$1','_collaborationTimeoutTimer','parse','pauseCollaboration','url(#off-line-single_clip0_910_343)','unknown','@univerjs/network','_retryCount','name','LifecycleStages','_loadDoc','getCurrent','/universer-api/oidc/authpage','UniverEngineFormula','PENDING','filter','onRemoteAck','InsertSheetMutation','fillText','_snapshotServerService','transformIMECache','handleMoveRange','mapDocumentTypeToUniverType','reverse','post','then','_docTransformIMECacheService','createIdentifier','removeMember','type','remove','combineLatest','AWAITING','getOffsetConfig','[PendingState]:\x20received\x20rejection.','_colorIndex','collabCursorState$','#fff','newValue','sheets','getAncestorScale','[CollaborationSessionService]','Injector','assignAColorForMemberID','_scheduleReconnection','_transformUndoredo','[FetchMissState]','[OfflineState]:\x20received\x20changeset.','isEditing','blue400','onMouseMove','协同房间已满,你的编辑将在本地保存','doc.mutation.rich-text-editing','@univerjs/engine-render','storage','_onCursorUpdate','delay','registerOnClose','_onConflict','length','FAIL','_clearOtherTimers','onPointerLeaveObserver','_scheduleTimestamp','_urlService','handleIRemoveCol','_undoStacks','b64DecodeUnicode','_applyRemoteChangeset','UniverRpc','getItem','univer-pro.collaboration-client.single-active-unit-service','executeCommand','[CollaborationUndoRedoService]','size','_tryEnsureSocket','_scheduleHeartbeat','_startSheetCollabCursor','_drawRange','_transformUndoRedoStack','_lastPointer','runRefRangeMutations','_startDocCollabCursor','_docSkeletonManagerService','UNKNOWN_CMD','handleInsertRow','1912McDTPO','_cachedData','Module','_onUserLeave','enableLocalCache','zhCN','saveOfflineData','InsertRangeMoveDownCommandId','off-line-single','CollaborationClientPlugin','MoveRangeCommandId','IBeforeCloseService','hide','_saveCache','TEXT_RANGE_LAYER_INDEX','eventID','_socketService','transformMutation','error$','div','encode','font','@univerjs/sheets-ui','_handleEvent','c1Prime','debug','registerRefRange','RECV','InsertColCommandId','fetchThroughInterceptors','_initModules','disposeWithMe','LIVESHARE_REQUEST_HOST','conflict.content','?url=','setShapeProps','serializeCombRequest','@univerjs/design','_substituteUndoStack','prototype','split','round','_labelPosition','_scheduleSaving','subunit','addEventListener','CollaborationEvent','AWAITING_WITH_PENDING','_cursors','_clearTimeoutTimer','_substituteRedoStack','dispose','_renderManagerService','_disableEditing','_selfUnitIDs','collabStatus.conflict','isActive','subscribe','textRanges','path','_eventUnsubscribe','_render','startsWith','Univer','_onJoinRoomEvent','all','toRgbString','includes','_scene','LIVESHARE_FETCH_OPERATIONS','_collabSessionService','saveSheetBlock','_sessionStatus$','_initStatusListener','_createInitialStateImpl','_assignedColors','LIVESHARE_NEW_HOST','roomMembers$','LIVESHARE_TERMINATE','_ensureSubject','ranges','Optional','INGEST','collab-text-range-','COLLAB_WEB_SOCKET_URL_KEY','SEND_CHANGESET_TIMEOUT_KEY','clipPath','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COMPRESS_MUTATION_APPLY','transformMutationsWithChangeset','getUnitStatus$','ONLINE','COMPRESS_MUTATION_SEND','unsubscribe','UNIVER_SHEET','_onUserJoin','LOGIN_URL_KEY','textEncoder','svg','key','toString','reduce','@wendellhu/redi','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','translate(.97)','_transformRemoteChangesetByIMECache','COLORS','memberID','fetchMissingChangesets','FETCH_MISSING','USERS_LEAVE','_getLoginPath','isTransformMutationFailure','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','pluginName','_hideTimer','SelectionManagerService','exports','565065ivECZL','_socket','SYNCED','members','CollaborationSocketService','VIEWPORT_KEY','[PendingState]:\x20received\x20acknowledgement.','parseProtocolChangeset','getColor','routeKey','fill','USERS_ENTER','shareReplay','UniverDesign','_removeRoom','synced','_transformPreviousActiveRange','SetWorksheetActivateCommand','popstate','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','_onFetchMissResult','leaveEvent','UNKNOWN_CODE','defineProperty','SetSelectionsOperation','height','_shapes','roomInfos','baseRev','delete','onTransformSelections','connectInjector','init','concat','parseChangesetToProtocol','_handleHover','668492avMTJi','handleInsertCol','incrementRevForDocument','_clearScheduledTask','snapshot','handleDeleteRangeMoveLeft','UniverCore','session.room-full','_rescheduleHeartbeatEvent','[SyncedState]:\x20received\x20rejection.','unitID','_localeService','className','_send','cursorInfo','newCsEvent','_startCollaboration','_createSocket','transformByState','on-line-single_clip0_910_349','NO_OTHER_CLIENTS_EDITING','Vector2','_updateCollabCursors','lodash/debounce','location','setEditable','changesets','_id','univer-online','_removeClearOtherTimer','_lockTransition','JOINING','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','_anchor','href','transformSelections','params','_toggleOffline','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','contains','registerBeforeClose','_getAPIPrefixPath','onTransformRemoteChangesetByIMECache','collaboration-client.offline-data-not-saved','正在同步服务端数据...','fetch_missing','_sendHeartbeat','_configService','_onMessage','IRemoteInstanceService','function','_logService','updateOfflineData','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','roomMembers','_getAnchorBounding','_joinRoom','TextX','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','_syncEditingCollabCursor','_cursorInfo$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','row','univer-online-status','off-line-single_clip0_910_343','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','_disabled','_getCurrentRevision','218107LHmCGV','takeUntil','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_unitStatus','restore','HEARTBEAT_INTERVAL','bottom','onRemoteRej','replace','connection\x20error','_docTransformSelectionsService','collab-text-anchor-','onSendChangeset','getMemberID','UniverDocs','_textBubble','React','currentTheme$','10SbqwVH','confirm','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getRangePointData','_setupSubUnitSync','XHRHTTPImplementation','/rev/','_sendingTimer','use','_retryConnectingTimer','/unit/','invoke','_compressMutationService','CollaborationSessionService','width','transformRemoteChangeset','xlink:href','uni.network.url-service','onMissingChangesets','useObservable','本地文件','verdancy600','RemoveRowCommandId','OTHER_CLIENTS_EDITING','getValue','values','handleInsertRangeMoveDown','IConfigService','transformChangesets','BehaviorSubject','_anchorDot','_config','body','_onCombEvent','debounce','transformStack\x20failed!','findNodePositionByCharIndex','save\x20fail\x20reason\x20is\x20','_getSheetObject','clsx','currentColor','univerjs-icon\x20univerjs-icon-','fromCollab','CHANGESET_ACK','SUBMIT_CHANGESET','保存中...','extend','on-line-single','_acknowledgedAwaitingChangeset','[SyncedState]:\x20received\x20acknowledgement.','_showConflictNotification','pushState','apply','HEARTBEAT','createElement','[CollaborationEntity]','_httpService','useDependency','_updateLocalCache','_cursor','handleDeleteRangeMoveUp','debounceTime','switchMap','setItem','replaceState','INotificationService','colorChannel1','_clearCollaborationTimeoutTimer','VIEW_MAIN','IHTTPImplementation','_remoteChangesetQueue','registerHTTPInterceptor','ACTIVE_UNIT_EVENT_CHANNEL','evenodd','from','/new_changes','useRef','Syncing\x20server\x20data...','OnLineSingle','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','_commandService','onCommandExecuted','SNAPSHOT_SERVER_URL_KEY','result','getMember','color','whenReady','getUniverSheetInstance','_status$','UNRECOGNIZED','UNIVER_UNKNOWN','_unitOnClients','_sessions','isTransformMutationsWithChangesetFailure','DisposableCollection','mutations','_collaborationController','_collabCursorState$','JOIN','NEW_CHANGESETS','UniverInstanceType','isArray','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','saveChangeset','UniverUi','_clearRedo','ColorKit','_awaitingChangeset','getUnitOnRev','triggerDblclick','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_transitionLocked','_executeRemoteChangeset','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','getCollabCursors$','_transformSelections','getUnitType','range','_memberService','jiqing500','SEND_CHANGESET_TIMEOUT','defs','_http','_themeService','getSheetId','HTTPService','ThemeService','_range','\x0aCurrent:\x20','UniverEngineRender','_state$','@univerjs/sheets','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_undoRedoService','WebSocketService','map','UniverCollaborationClient','_localStorageService','cmd','online','OFFLINE','Steady','NodePositionConvertToCursor','univer-online-status-icon','updateCursorEvent','assign','enableAuthServer','_collaborationPaused','_exhaustSavingTask','_collabCursorController','get','getCellPositionByOffset','RETRY_CONNECTING_INTERVAL','_scheduleClearOtherTimer','@univerjs/rpc','_clearHeartbeatTimer','@univerjs/docs','toStringTag','onStateChange','m2Prime','_messageService','focused$','NOT_COLLAB','DEFAULT_FILE_NAME','_docSkeleton','TextSelectionManagerService','_colorAssignService','current','getSheetBySheetId','_waitForHeartbeatResponse','_onLocalMutation','_heartbeatTimer','createInstance','enUS','_online','_univerInstanceService','_checkMissing','ISnapshotServerService','getTypeOfUnitDisposed$','fillStyle','UPDATE_CURSOR','complete','red300','_sendHeartbeatTimer','subUnitId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','state$','COLLAB_SUBMIT_CHANGESET_URL_KEY','setTimeout','stringify','serializeRangeWithSheet','DocStateChangeManagerService','pending','awaiting','...','Rectangle','_onConnectionFailed','DeleteRangeMoveLeftCommandId','RemoveColCommandId','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','getTypeOfUnitAdded$','getOwnPropertySymbols','_docStateChangeManagerService','clearInterval','CollaborationController','CONFLICT','toggleOffline','HELLO','forwardRef','ILocalStorageService','_clearLocalCache','ILogService','getDocObject','UniverPermissionService','_syncEditingCollabCursorService','hovered','getResourcesRequest','indexOf','collaMsg','MessageType','awaiting_with_pending','min','offline','cursorInfo$','slice','_getRedoStack','isTransformMutationsWithChangesetSuccess','toDisposable','deepClone','LocalUndoRedoService','DeleteRangeMoveUpCommandId','urlChange$','flatMap','icon','makeDirty','[DataLoaderController]','text','_handleLeaveEvent','80ajlbsI','createSocket','UniverNetwork','displayName','concatMap','closePath','@univerjs/core','defIds','resend','_updateState','_createHandler','_entityInit$','_uiPartsService','editing\x20status\x20changed\x20to','_docSyncEditingCollabCursorService','_toggleOnline','push','SessionStatus','getInterceptPoints','pipe','ICommandService','/block/','children','_hovered','_roomMembers','lineTo','idSuffix','deserializeRangeWithSheet','collabStatus.syncing','_setupBeforeClosingHandler','Synced','_queuedRemoteChangesets','_drawAnchor','Ready','disableLocalCache','symbol','Unknown\x20user','ITransformService','gold400','has','0\x200\x2017\x2016','collaboration.single-unit.warning','getCurrentUser','IMessageService','interceptor','COLLAB_WEB_SOCKET_URL','@univerjs/ui','error','[CollaborationState]:\x20apply\x20error!','Syncing...','onRemoteChangeset','liveShareNewHost','_getMergeRange','_replayCachedMutations','status$','Rect','SheetSkeletonManagerService','_onRemoteChangeset','onSyncEditingCollabCursor','getSelections','merge','getSheetBlock','session.will-retry','_transformStack','UNIVER_DOC','setActiveRange','HEADER_MENU','history','message$','CollaborationSession','localeService','连接失败,请检查你的网络','sheetID','/fetchmissing?from=','actions','attrs','drawWith'];_0x4b7e=function(){return _0x2b7dec;};return _0x4b7e();}(function(_0x1c15d7,_0x459cae){const _0x51d39d=_0x4733,_0x20e6dd=_0x1c15d7();while(!![]){try{const _0x3ed8b2=parseInt(_0x51d39d(0x1b7))/0x1+-parseInt(_0x51d39d(0x351))/0x2+parseInt(_0x51d39d(0x39c))/0x3+-parseInt(_0x51d39d(0x173))/0x4+-parseInt(_0x51d39d(0x2b7))/0x5*(-parseInt(_0x51d39d(0x370))/0x6)+parseInt(_0x51d39d(0x3a8))/0x7*(parseInt(_0x51d39d(0xd9))/0x8)+-parseInt(_0x51d39d(0x14f))/0x9*(-parseInt(_0x51d39d(0x1c9))/0xa);if(_0x3ed8b2===_0x459cae)break;else _0x20e6dd['push'](_0x20e6dd['shift']());}catch(_0x5ddfe2){_0x20e6dd['push'](_0x20e6dd['shift']());}}}(_0x4b7e,0x26272),function(_0x2881f0,_0x3d8471){const _0x4a5e9b=_0x4733;typeof exports==_0x4a5e9b(0x369)&&typeof module<'u'?_0x3d8471(exports,require(_0x4a5e9b(0x2bd)),require(_0x4a5e9b(0xfe)),require(_0x4a5e9b(0x2e5)),require(_0x4a5e9b(0x384)),require('@wendellhu/redi'),require('rxjs'),require(_0x4a5e9b(0x3cc)),require(_0x4a5e9b(0x265)),require(_0x4a5e9b(0x401)),require(_0x4a5e9b(0x24c)),require(_0x4a5e9b(0x3b8)),require('lodash/debounce'),require(_0x4a5e9b(0x430)),require(_0x4a5e9b(0xef)),require(_0x4a5e9b(0x32c)),require(_0x4a5e9b(0x37e)),require(_0x4a5e9b(0x1f0)),require(_0x4a5e9b(0x263))):typeof define=='function'&&define[_0x4a5e9b(0x3c9)]?define([_0x4a5e9b(0x14e),_0x4a5e9b(0x2bd),_0x4a5e9b(0xfe),_0x4a5e9b(0x2e5),_0x4a5e9b(0x384),_0x4a5e9b(0x13f),_0x4a5e9b(0x3e3),_0x4a5e9b(0x3cc),_0x4a5e9b(0x265),_0x4a5e9b(0x401),_0x4a5e9b(0x24c),'@univerjs/engine-formula',_0x4a5e9b(0x18a),_0x4a5e9b(0x430),'@univerjs/sheets-ui','@wendellhu/redi/react-bindings',_0x4a5e9b(0x37e),_0x4a5e9b(0x1f0),_0x4a5e9b(0x263)],_0x3d8471):(_0x2881f0=typeof globalThis<'u'?globalThis:_0x2881f0||self,_0x3d8471(_0x2881f0[_0x4a5e9b(0x251)]={},_0x2881f0[_0x4a5e9b(0x179)],_0x2881f0[_0x4a5e9b(0x15c)],_0x2881f0[_0x4a5e9b(0x231)],_0x2881f0[_0x4a5e9b(0x30f)],_0x2881f0[_0x4a5e9b(0x13f)],_0x2881f0['rxjs'],_0x2881f0[_0x4a5e9b(0x3e3)][_0x4a5e9b(0x3b1)],_0x2881f0[_0x4a5e9b(0x1c5)],_0x2881f0[_0x4a5e9b(0x2b9)],_0x2881f0[_0x4a5e9b(0x306)],_0x2881f0[_0x4a5e9b(0x408)],_0x2881f0['lodash'][_0x4a5e9b(0x1eb)],_0x2881f0[_0x4a5e9b(0x24a)],_0x2881f0['UniverSheetsUi'],_0x2881f0['@wendellhu/redi/react-bindings'],_0x2881f0[_0x4a5e9b(0x1c7)],_0x2881f0[_0x4a5e9b(0x1f0)],_0x2881f0[_0x4a5e9b(0xc8)]));}(this,function(_0x588091,_0x1b3401,_0x350456,_0x47170c,_0x30a695,_0x5c7b32,_0x414952,_0x3151c5,_0x54860c,_0x2b3eab,_0x51f05a,_0x446c2d,_0x2c0384,_0x24a900,_0x3c430e,_0x5396c4,_0x2abb2f,_0x167f4a,_0xce538){'use strict';const _0x72f170=_0x4733;var _0x46af82=Object[_0x72f170(0x166)],_0x19b809=(_0xd449e3,_0x1d1063,_0x30cdc2)=>_0x1d1063 in _0xd449e3?_0x46af82(_0xd449e3,_0x1d1063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30cdc2}):_0xd449e3[_0x1d1063]=_0x30cdc2,_0x51e1d8=(_0x4a8174,_0x499eab,_0x2881e9)=>(_0x19b809(_0x4a8174,typeof _0x499eab!=_0x72f170(0x2da)?_0x499eab+'':_0x499eab,_0x2881e9),_0x2881e9),_0x15f489,_0x2b3b4b=(_0x245c64=>(_0x245c64[_0x245c64[_0x72f170(0x223)]=0x0]=_0x72f170(0x223),_0x245c64[_0x245c64['UNIVER_DOC']=0x1]=_0x72f170(0x2f7),_0x245c64[_0x245c64[_0x72f170(0x137)]=0x2]=_0x72f170(0x137),_0x245c64[_0x245c64[_0x72f170(0x394)]=0x3]=_0x72f170(0x394),_0x245c64[_0x245c64['UNRECOGNIZED']=-0x1]=_0x72f170(0x222),_0x245c64))(_0x2b3b4b||{}),_0x1da09a=(_0x31f609=>(_0x31f609[_0x31f609[_0x72f170(0xd7)]=0x0]='UNKNOWN_CMD',_0x31f609[_0x31f609['HELLO']=0x1]='HELLO',_0x31f609[_0x31f609[_0x72f170(0x22b)]=0x2]=_0x72f170(0x22b),_0x31f609[_0x31f609[_0x72f170(0x3c7)]=0x3]=_0x72f170(0x3c7),_0x31f609[_0x31f609[_0x72f170(0x12b)]=0x4]='INGEST',_0x31f609[_0x31f609[_0x72f170(0x1fe)]=0x5]=_0x72f170(0x1fe),_0x31f609[_0x31f609[_0x72f170(0xf4)]=0x6]=_0x72f170(0xf4),_0x31f609[_0x31f609[_0x72f170(0x222)]=-0x1]='UNRECOGNIZED',_0x31f609))(_0x1da09a||{}),_0x527bb7=(_0x3122d6=>(_0x3122d6[_0x3122d6[_0x72f170(0x165)]=0x0]=_0x72f170(0x165),_0x3122d6[_0x3122d6['OK']=0x1]='OK',_0x3122d6[_0x3122d6[_0x72f170(0xbf)]=0x2]=_0x72f170(0xbf),_0x3122d6[_0x3122d6[_0x72f170(0x222)]=-0x1]=_0x72f170(0x222),_0x3122d6))(_0x527bb7||{}),_0x55138e=(_0x55f50b,_0x3af339,_0x24098c,_0x5f09da)=>{const _0x1d77de=_0x72f170;for(var _0x1977b3=_0x3af339,_0x1934b8=_0x55f50b[_0x1d77de(0xbe)]-0x1,_0x4ec7d8;_0x1934b8>=0x0;_0x1934b8--)(_0x4ec7d8=_0x55f50b[_0x1934b8])&&(_0x1977b3=_0x4ec7d8(_0x1977b3)||_0x1977b3);return _0x1977b3;},_0x2a1bf0=(_0x20ed9d,_0x4c3065)=>(_0x5eaa11,_0x5da68b)=>_0x4c3065(_0x5eaa11,_0x5da68b,_0x20ed9d);let _0x3f8747=class extends _0x1b3401[_0x72f170(0x340)]{constructor(_0x1e5c6f){const _0x44c0be=_0x72f170;super(),_0x51e1d8(this,_0x44c0be(0x2cf),new Map()),_0x51e1d8(this,_0x44c0be(0x3aa),null),(this[_0x44c0be(0x278)]=_0x1e5c6f,this[_0x44c0be(0xf8)](_0x1b3401[_0x44c0be(0x2ac)](_0x414952[_0x44c0be(0x2f3)](this[_0x44c0be(0x278)][_0x44c0be(0x27b)](_0x1b3401[_0x44c0be(0x22d)][_0x44c0be(0x137)])[_0x44c0be(0x2ca)](_0x3151c5[_0x44c0be(0x250)](_0x3363b9=>_0x3363b9[_0x44c0be(0x33c)]())),this[_0x44c0be(0x278)][_0x44c0be(0x27b)](_0x1b3401[_0x44c0be(0x22d)]['UNIVER_DOC'])[_0x44c0be(0x2ca)](_0x3151c5[_0x44c0be(0x250)](_0x352fe2=>_0x352fe2[_0x44c0be(0x33c)]())),this['_univerInstanceService'][_0x44c0be(0x27b)](_0x1b3401[_0x44c0be(0x22d)][_0x44c0be(0x394)])[_0x44c0be(0x2ca)](_0x3151c5[_0x44c0be(0x250)](_0x3379da=>_0x3379da['getUnitId']())))['subscribe'](_0x3ce0b9=>this['_removeRoom'](_0x3ce0b9)))));}[_0x72f170(0x3eb)](_0x5c2678){const _0x43ba00=_0x72f170;this[_0x43ba00(0x3aa)]=_0x5c2678;}[_0x72f170(0x2e1)](){const _0x4b9477=_0x72f170;return this[_0x4b9477(0x3aa)];}['updateMember'](_0x37742d,_0x29c022){const _0x46937a=_0x72f170;let _0x1e802c=this[_0x46937a(0x2cf)][_0x46937a(0x25f)](_0x37742d);_0x1e802c||(_0x1e802c=new _0x50e3c2(),this[_0x46937a(0x2cf)][_0x46937a(0x346)](_0x37742d,_0x1e802c)),_0x1e802c[_0x46937a(0x3ec)](_0x29c022);}[_0x72f170(0x417)](_0x2cf7cd,_0x336726){const _0x419674=_0x72f170,_0x29e09c=this['_roomMembers'][_0x419674(0x25f)](_0x2cf7cd);_0x29e09c&&_0x29e09c[_0x419674(0x417)](_0x336726);}['getRoom'](_0x194b0a){const _0x1b6573=_0x72f170;return this['_roomMembers'][_0x1b6573(0x25f)](_0x194b0a);}[_0x72f170(0x21d)](_0x39446e,_0x1539ec){const _0x28b59c=_0x72f170,_0x11b405=this[_0x28b59c(0x2cf)][_0x28b59c(0x25f)](_0x39446e);if(_0x11b405)return _0x11b405['getMember'](_0x1539ec);}[_0x72f170(0x15d)](_0x2fedd0){const _0x463d98=_0x72f170,_0x1e83f0=this[_0x463d98(0x2cf)][_0x463d98(0x25f)](_0x2fedd0);_0x1e83f0&&(_0x1e83f0[_0x463d98(0x10c)](),this[_0x463d98(0x2cf)][_0x463d98(0x16c)](_0x2fedd0));}['dispose'](){const _0x47e815=_0x72f170;this['_roomMembers'][_0x47e815(0x3bf)](_0x5a7a4e=>_0x5a7a4e[_0x47e815(0x10c)]()),this[_0x47e815(0x2cf)][_0x47e815(0x315)]();}};_0x3f8747=_0x55138e([_0x2a1bf0(0x0,_0x1b3401[_0x72f170(0x335)])],_0x3f8747);class _0x50e3c2 extends _0x1b3401['Disposable']{constructor(){const _0x482c8b=_0x72f170;super(...arguments),_0x51e1d8(this,_0x482c8b(0x386),new Map());}[_0x72f170(0x10c)](){const _0x389063=_0x72f170;this[_0x389063(0x386)][_0x389063(0x315)]();}['updateMember'](_0x1d9660){const _0x5f2243=_0x72f170;this[_0x5f2243(0x386)][_0x5f2243(0x346)](_0x1d9660[_0x5f2243(0x144)],_0x1d9660);}[_0x72f170(0x417)](_0x244e1e){const _0x56c94a=_0x72f170;this[_0x56c94a(0x386)][_0x56c94a(0x16c)](_0x244e1e);}['getMember'](_0x5bca1c){const _0x446c84=_0x72f170;return this['_members'][_0x446c84(0x25f)](_0x5bca1c);}}function _0x18d27e(_0x3f876e){const _0xa12e3f=_0x72f170;var _0xa379f5,_0xe283bb,_0x451de2;const _0x15996f=_0x3f876e[_0xa12e3f(0x304)],_0x3daf63=JSON[_0xa12e3f(0x3fd)](_0x15996f);switch(_0x3daf63['cmd']){case _0x1da09a[_0xa12e3f(0x1fe)]:case _0x1da09a[_0xa12e3f(0x298)]:{const _0x13b926=_0x3daf63['infoRsp'];return{..._0x3daf63,'data':_0x13b926,'cmd':_0x3daf63[_0xa12e3f(0x253)]};}case _0x1da09a['JOIN']:{const _0xec9f73=_0x3daf63['joinRsp'];return{..._0x3daf63,'data':_0xec9f73,'cmd':_0x3daf63[_0xa12e3f(0x253)]};}case _0x1da09a[_0xa12e3f(0xf4)]:{const _0xddf16d=_0x3daf63[_0xa12e3f(0x2a3)];switch(_0xddf16d[_0xa12e3f(0xe8)]){case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x1f4)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':(_0xa379f5=_0xddf16d['csAckEvent'])==null?void 0x0:_0xa379f5['cs']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)]['NEW_CHANGESETS']:return{..._0x3daf63,'data':{..._0xddf16d,'data':(_0xe283bb=_0xddf16d[_0xa12e3f(0x182)])==null?void 0x0:_0xe283bb['cs']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695['CollaborationEvent'][_0xa12e3f(0x3f9)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':(_0x451de2=_0xddf16d[_0xa12e3f(0x308)])==null?void 0x0:_0x451de2['cs']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x27d)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x259)]},'cmd':_0x3daf63['cmd']};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x15a)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x358)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695['CollaborationEvent']['USERS_LEAVE']:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x164)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x125)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x2ea)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x11e)]:case _0x30a695[_0xa12e3f(0x107)]['LIVESHARE_OPERATION']:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d['liveShareOperation']},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x127)]:return{..._0x3daf63,'data':{..._0xddf16d,'data':_0xddf16d[_0xa12e3f(0x2ea)]},'cmd':_0x3daf63[_0xa12e3f(0x253)]};case _0x30a695[_0xa12e3f(0x107)][_0xa12e3f(0x362)]:return{..._0x3daf63,'data':_0xddf16d,'cmd':_0x3daf63[_0xa12e3f(0x253)]};default:return _0x3daf63;}}default:return _0x3daf63;}}function _0x4ec68d(_0x123c1e){const _0x1bda5d=_0x72f170;switch(_0x123c1e[_0x1bda5d(0x253)]){case _0x1da09a[_0x1bda5d(0x1fe)]:case _0x1da09a['HELLO']:return JSON[_0x1bda5d(0x286)]({'cmd':_0x123c1e[_0x1bda5d(0x253)],'routeKey':_0x123c1e[_0x1bda5d(0x158)]});case _0x1da09a['INGEST']:{let _0x20f266;switch(_0x123c1e['data'][_0x1bda5d(0xe8)]){case _0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x27d)]:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x27d)],'updateCursorEvent':_0x123c1e['data'][_0x1bda5d(0x304)]};break;}case _0x30a695[_0x1bda5d(0x107)]['USERS_LEAVE']:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x147)],'leaveEvent':_0x123c1e[_0x1bda5d(0x304)][_0x1bda5d(0x304)]};break;}case _0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x15a)]:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x15a)],'joinEvent':_0x123c1e['data'][_0x1bda5d(0x304)]};break;}case _0x30a695['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x20f266={'eventID':_0x30a695['CollaborationEvent'][_0x1bda5d(0x125)],'liveShareNewHost':_0x123c1e['data'][_0x1bda5d(0x304)]};break;}case _0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x326)]:{_0x20f266={'eventID':_0x30a695['CollaborationEvent'][_0x1bda5d(0x326)],'liveShareOperation':_0x123c1e[_0x1bda5d(0x304)]['data']};break;}case _0x30a695[_0x1bda5d(0x107)]['LIVESHARE_TERMINATE']:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x127)],'liveShareTerminate':_0x123c1e[_0x1bda5d(0x304)]['data']};break;}case _0x30a695['CollaborationEvent'][_0x1bda5d(0xf9)]:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x123c1e[_0x1bda5d(0x304)]['data']};break;}case _0x30a695[_0x1bda5d(0x107)]['LIVESHARE_FETCH_OPERATIONS']:{_0x20f266={'eventID':_0x30a695[_0x1bda5d(0x107)][_0x1bda5d(0x11e)]};break;}default:_0x20f266={'eventID':_0x123c1e[_0x1bda5d(0x304)][_0x1bda5d(0xe8)]};}return JSON['stringify']({'cmd':_0x123c1e[_0x1bda5d(0x253)],'routeKey':_0x123c1e['routeKey'],'collaMsg':_0x20f266});}case _0x1da09a[_0x1bda5d(0x22b)]:return JSON[_0x1bda5d(0x286)]({'cmd':_0x123c1e['cmd'],'routeKey':_0x123c1e[_0x1bda5d(0x158)],'joinReq':_0x123c1e[_0x1bda5d(0x304)]});case _0x1da09a[_0x1bda5d(0x3c7)]:return JSON[_0x1bda5d(0x286)]({'cmd':_0x123c1e['cmd'],'routeKey':_0x123c1e[_0x1bda5d(0x158)],'leaveReq':_0x123c1e[_0x1bda5d(0x304)]});default:throw new Error(_0x1bda5d(0x24d));}}var _0x1d2dec=(_0x5be7cf,_0x466296,_0x16f20b,_0x4fa324)=>{const _0x8e3ec6=_0x72f170;for(var _0xc1242a=_0x466296,_0x57117c=_0x5be7cf[_0x8e3ec6(0xbe)]-0x1,_0x4680ef;_0x57117c>=0x0;_0x57117c--)(_0x4680ef=_0x5be7cf[_0x57117c])&&(_0xc1242a=_0x4680ef(_0xc1242a)||_0xc1242a);return _0xc1242a;},_0x30369f=(_0x36404e,_0x3c59d3)=>(_0x4ef3bb,_0x1029dc)=>_0x3c59d3(_0x4ef3bb,_0x1029dc,_0x36404e);const _0x1083e0=_0x5c7b32[_0x72f170(0x416)](_0x72f170(0x393)),_0x202f36=_0x72f170(0x33e),_0x37c10e=_0x72f170(0x35f);function _0x5a4f95(_0x3a0bb1,_0x44e5a6,_0x3ecaed){const _0x5284fc=_0x72f170;return _0x3a0bb1+'/'+_0x44e5a6+'/unit/'+_0x3ecaed+_0x5284fc(0x214);}_0x588091[_0x72f170(0x153)]=class{constructor(_0x11d9b0,_0x4f2c94,_0x2a70b0,_0x20504b,_0x15c875){const _0x23f524=_0x72f170;this[_0x23f524(0x243)]=_0x11d9b0,this['_ws']=_0x4f2c94,this[_0x23f524(0x1a2)]=_0x2a70b0,this[_0x23f524(0x1a6)]=_0x20504b,this[_0x23f524(0x40e)]=_0x15c875;}[_0x72f170(0x2b8)](_0x10f78f){const _0x59535d=_0x72f170,_0x2ca3e0=this['_ws']['createSocket'](_0x10f78f);if(!_0x2ca3e0)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1d39ed=new _0x1b3401[(_0x59535d(0x227))](),_0x4146d0=new _0x414952['Subject']();_0x1d39ed['add'](_0x1b3401[_0x59535d(0x2ac)](_0x2ca3e0['close$'][_0x59535d(0x112)](_0x36c2fb=>_0x4146d0[_0x59535d(0x3d6)](_0x36c2fb)))),_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401[_0x59535d(0x2ac)](()=>_0x4146d0[_0x59535d(0x27e)]()));const _0x5e6211=new _0x414952[(_0x59535d(0x38b))]();_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401[_0x59535d(0x2ac)](_0x2ca3e0[_0x59535d(0xeb)][_0x59535d(0x112)](_0x13a8b5=>_0x5e6211[_0x59535d(0x3d6)](_0x13a8b5)))),_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401['toDisposable'](()=>_0x5e6211[_0x59535d(0x27e)]()));const _0x24fb68=new _0x414952[(_0x59535d(0x38b))]();_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401['toDisposable'](_0x2ca3e0[_0x59535d(0x2fb)][_0x59535d(0x112)](_0x15f16=>{const _0x2fed4c=_0x59535d,_0x474bf8=_0x18d27e(_0x15f16);_0x24fb68[_0x2fed4c(0x3d6)](_0x474bf8);}))),_0x1d39ed[_0x59535d(0x3c1)](_0x1b3401[_0x59535d(0x2ac)](()=>_0x24fb68[_0x59535d(0x27e)]()));const _0x2f4ee6=()=>{const _0x567084=_0x59535d;_0x5e6211[_0x567084(0x3d6)](new Event(_0x567084(0x1c0))),_0x4146d0['next'](new CloseEvent('connection\x20error')),_0x55847b['close']();},_0x55847b={'memberID':'','close$':_0x4146d0[_0x59535d(0x348)](),'error$':_0x5e6211[_0x59535d(0x348)](),'open$':_0x2ca3e0['open$'],'message$':_0x24fb68[_0x59535d(0x348)](),'send':_0x1e6f1f=>{const _0x156a85=_0x59535d;if(_0x1e6f1f[_0x156a85(0x253)]===_0x1da09a[_0x156a85(0x12b)]){if(_0x1e6f1f[_0x156a85(0x304)][_0x156a85(0xe8)]===_0x30a695[_0x156a85(0x107)][_0x156a85(0x1f5)]){this['_submitChangeset'](_0x55847b,_0x1e6f1f[_0x156a85(0x304)])['catch'](_0x4d9008=>{const _0x16902b=_0x156a85;this[_0x16902b(0x1a6)][_0x16902b(0x2e6)](_0x4d9008),_0x2f4ee6();});return;}if(_0x1e6f1f[_0x156a85(0x304)][_0x156a85(0xe8)]===_0x30a695[_0x156a85(0x107)][_0x156a85(0x146)]){const _0x4edb83=_0x1e6f1f[_0x156a85(0x304)];this['_fetchMissChangesets'](_0x4edb83)[_0x156a85(0x414)](_0xd649f9=>{const _0x531f40=_0x156a85;_0x24fb68[_0x531f40(0x3d6)]({'cmd':_0x1da09a['RECV'],'code':_0x527bb7['OK'],'routeKey':_0x4edb83['data'][_0x531f40(0x17d)],'routeType':'','data':{'eventID':_0x30a695[_0x531f40(0x107)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xd649f9}}});})[_0x156a85(0x3b7)](_0x18d6a7=>{const _0x4da640=_0x156a85;this[_0x4da640(0x1a6)][_0x4da640(0x2e6)](_0x18d6a7),_0x2f4ee6();});return;}}_0x2ca3e0[_0x156a85(0x3c4)](_0x4ec68d(_0x1e6f1f));},'close':()=>{const _0x35930b=_0x59535d;_0x2ca3e0[_0x35930b(0x3f2)](),_0x1d39ed[_0x35930b(0x10c)]();}};return _0x55847b;}async[_0x72f170(0x325)](_0x4082db,_0x548311){const _0x2daf4c=_0x72f170;var _0x14de7e;const {unitType:_0x176906,unitID:_0x4c820e,changeset:_0x75fe50}=_0x548311[_0x2daf4c(0x304)],_0x373a55={'unitID':_0x4c820e,'memberID':_0x4082db[_0x2daf4c(0x144)],'type':_0x176906,'changeset':_0x30a695[_0x2daf4c(0x171)](_0x75fe50)},_0x2dbba7=_0x5a4f95((_0x14de7e=this[_0x2daf4c(0x1a2)]['getConfig'](_0x202f36))!=null?_0x14de7e:_0x37c10e,_0x176906,_0x4c820e);try{await this['_http'][_0x2daf4c(0x413)](_0x2dbba7,{'body':_0x373a55});}catch(_0x417072){throw this[_0x2daf4c(0x1a6)][_0x2daf4c(0x2e6)]('[CollaborationSession]',_0x2daf4c(0x354)),_0x417072;}}async['_fetchMissChangesets'](_0x327535){const _0xcbaef5=_0x72f170,{unitID:_0x41c701,from:_0x2fb087,to:_0x30fa19,unitType:_0x1fd82c}=_0x327535[_0xcbaef5(0x304)];return(await this[_0xcbaef5(0x40e)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x41c701,'type':_0x1fd82c,'from':_0x2fb087,'to':_0x30fa19}))[_0xcbaef5(0x18d)];}},_0x588091['CollaborationSocketService']=_0x1d2dec([_0x30369f(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x2b3eab[_0x72f170(0x246)])),_0x30369f(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x2b3eab['WebSocketService'])),_0x30369f(0x2,_0x1b3401[_0x72f170(0x1e4)]),_0x30369f(0x3,_0x1b3401[_0x72f170(0x29c)]),_0x30369f(0x4,_0x1b3401[_0x72f170(0x27a)])],_0x588091[_0x72f170(0x153)]);var _0x4ec6dc=(_0x5c4911,_0x23803d,_0x5f5090,_0x4d0e10)=>{const _0x596ba2=_0x72f170;for(var _0x6e1eb0=_0x23803d,_0x15d91b=_0x5c4911[_0x596ba2(0xbe)]-0x1,_0x24722d;_0x15d91b>=0x0;_0x15d91b--)(_0x24722d=_0x5c4911[_0x15d91b])&&(_0x6e1eb0=_0x24722d(_0x6e1eb0)||_0x6e1eb0);return _0x6e1eb0;},_0x903a07=(_0x2ec0b5,_0x575929)=>(_0x7277e0,_0x5047c1)=>_0x575929(_0x7277e0,_0x5047c1,_0x2ec0b5),_0x4457b3=(_0x3fb6d0=>(_0x3fb6d0[_0x3fb6d0[_0x72f170(0x3fa)]=0x0]=_0x72f170(0x3fa),_0x3fb6d0[_0x3fb6d0['JOINING']=0x1]=_0x72f170(0x192),_0x3fb6d0[_0x3fb6d0['OFFLINE']=0x2]=_0x72f170(0x255),_0x3fb6d0[_0x3fb6d0['ONLINE']=0x3]='ONLINE',_0x3fb6d0))(_0x4457b3||{});const _0x575e39=_0x72f170(0x2e4),_0x323e3c='ws://127.0.0.1:8000/universer-api/comb/connect',_0x5d723c=_0x72f170(0x1bc),_0x433e9c=0x7530,_0x855346='HEARTBEAT_TIMEOUT',_0x5f5a4b=0x2710,_0x4c9d62=_0x72f170(0x261),_0xde0e3f=0x4e20,_0x4e5356=_0x72f170(0x37b),_0x2f694c=0x3;_0x588091[_0x72f170(0x2fc)]=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x3c4aa5,_0x185ad1,_0x106842,_0xaf72d1,_0x1489c6,_0x20f79d,_0x4aaa46,_0x27cab8){const _0x444114=_0x72f170;super(),_0x51e1d8(this,_0x444114(0x121),new _0x414952[(_0x444114(0x1e6))](0x0)),_0x51e1d8(this,'sessionStatus$',this[_0x444114(0x121)][_0x444114(0x348)]()),_0x51e1d8(this,'_event$',new _0x414952[(_0x444114(0x38b))]()),_0x51e1d8(this,_0x444114(0x3ba),this[_0x444114(0x364)][_0x444114(0x348)]()),_0x51e1d8(this,_0x444114(0x150)),_0x51e1d8(this,_0x444114(0x3ad)),_0x51e1d8(this,_0x444114(0x3fc)),(this[_0x444114(0x363)]=_0x3c4aa5,this['_logService']=_0x106842,this[_0x444114(0x3de)]=_0xaf72d1,this['_messageService']=_0x1489c6,this['_configService']=_0x20f79d,this[_0x444114(0x17e)]=_0x4aaa46,this[_0x444114(0x23f)]=_0x27cab8,_0x185ad1[_0x444114(0x2ca)](_0x3151c5[_0x444114(0x1b8)](this[_0x444114(0x3d9)]))[_0x444114(0x112)](_0x2d277e=>{const _0x22bc76=_0x444114;var _0x2938a2;typeof _0x2d277e>'u'||(this[_0x22bc76(0x150)]=_0x2d277e,_0x2d277e?(this[_0x22bc76(0x1ab)](_0x2d277e),this[_0x22bc76(0x3ad)]=this[_0x22bc76(0x150)][_0x22bc76(0x2fb)][_0x22bc76(0x112)](_0x451ee6=>{const _0x4b94a0=_0x22bc76;_0x451ee6[_0x4b94a0(0x158)]===this['_unitID']&&this[_0x4b94a0(0x1ea)](_0x451ee6);})):(this[_0x22bc76(0x121)][_0x22bc76(0x3d6)](0x2),(_0x2938a2=this[_0x22bc76(0x3ad)])==null||_0x2938a2[_0x22bc76(0x136)](),this['_socketMessageSubscription']=null));}),this[_0x444114(0xf8)](this[_0x444114(0x3de)][_0x444114(0xbc)](()=>{const _0x1eab2e=_0x444114;var _0x39d147;(_0x39d147=this[_0x1eab2e(0x150)])==null||_0x39d147[_0x1eab2e(0x3c4)]({'cmd':_0x1da09a[_0x1eab2e(0x3c7)],'data':{'roomID':this[_0x1eab2e(0x363)]}});})));}get[_0x72f170(0x35b)](){const _0x51094e=_0x72f170;return this['_sessionStatus$'][_0x51094e(0x1e1)]();}[_0x72f170(0x1c4)](){const _0x1294bf=_0x72f170;var _0x312ccd,_0x344417;return(_0x344417=(_0x312ccd=this[_0x1294bf(0x150)])==null?void 0x0:_0x312ccd[_0x1294bf(0x144)])!=null?_0x344417:null;}[_0x72f170(0x10c)](){const _0x1ae2ee=_0x72f170;super[_0x1ae2ee(0x10c)](),this[_0x1ae2ee(0x3d9)][_0x1ae2ee(0x3d6)](),this['dispose$'][_0x1ae2ee(0x27e)]();}['_onCombEvent'](_0x448958){const _0x596349=_0x72f170;_0x448958['cmd']===_0x1da09a[_0x596349(0x22b)]?this[_0x596349(0x119)](_0x448958):_0x448958['cmd']===_0x1da09a['RECV']&&this[_0x596349(0x3a2)](_0x448958);}[_0x72f170(0x1ab)](_0x23223f){const _0x584d08=_0x72f170;this[_0x584d08(0x121)][_0x584d08(0x3d6)](0x1),_0x23223f[_0x584d08(0x3c4)]({'cmd':_0x1da09a['JOIN'],'routeKey':this[_0x584d08(0x363)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x72f170(0x119)](_0x51b1b9){const _0xd5899a=_0x72f170;var _0x595c7b;if(_0x51b1b9[_0xd5899a(0x321)]===_0x527bb7[_0xd5899a(0xbf)]){this[_0xd5899a(0x269)]['show']({'type':_0x350456[_0xd5899a(0x2a4)][_0xd5899a(0x347)],'content':this['_localeService']['t'](_0xd5899a(0x17a))}),this['_sessionStatus$']['next'](0x2);return;}this[_0xd5899a(0x121)]['next'](0x3);const _0x4f2aaa=(_0x595c7b=_0x51b1b9[_0xd5899a(0x304)][_0xd5899a(0x16a)][this[_0xd5899a(0x363)]])==null?void 0x0:_0x595c7b[_0xd5899a(0x152)];_0x4f2aaa&&_0x4f2aaa[_0xd5899a(0x3bf)](_0x1ec53=>this[_0xd5899a(0x23f)][_0xd5899a(0x3ec)](this[_0xd5899a(0x363)],_0x1ec53));}[_0x72f170(0x3a2)](_0x2cad16){const _0x26e39b=_0x72f170;try{const _0x4a9a14=_0x2cad16[_0x26e39b(0x304)];switch(_0x4a9a14[_0x26e39b(0xe8)]){case _0x30a695[_0x26e39b(0x107)][_0x26e39b(0x15a)]:this[_0x26e39b(0x138)](_0x4a9a14),this[_0x26e39b(0x364)][_0x26e39b(0x3d6)](_0x4a9a14);break;case _0x30a695[_0x26e39b(0x107)][_0x26e39b(0x147)]:this[_0x26e39b(0xdc)](_0x4a9a14),this[_0x26e39b(0x364)]['next'](_0x4a9a14);break;case _0x30a695[_0x26e39b(0x107)][_0x26e39b(0x1f4)]:this[_0x26e39b(0x20c)](),this[_0x26e39b(0x364)]['next'](_0x4a9a14);break;case _0x30a695['CollaborationEvent'][_0x26e39b(0x362)]:this[_0x26e39b(0x1a6)][_0x26e39b(0x2e6)](_0x26e39b(0x1ee)+JSON[_0x26e39b(0x286)](_0x4a9a14)),this[_0x26e39b(0x364)]['next'](_0x4a9a14);break;default:this[_0x26e39b(0x364)][_0x26e39b(0x3d6)](_0x4a9a14);}}catch(_0x38bd8c){this[_0x26e39b(0x1a6)][_0x26e39b(0x2e6)](_0x38bd8c,_0x2cad16);}}[_0x72f170(0x138)](_0x535701){const _0x48e03a=_0x72f170;this['_memberService'][_0x48e03a(0x3ec)](this[_0x48e03a(0x363)],_0x535701[_0x48e03a(0x304)]);}[_0x72f170(0xdc)](_0x1de2e2){const _0x9799b=_0x72f170;this[_0x9799b(0x23f)][_0x9799b(0x417)](this[_0x9799b(0x363)],_0x1de2e2[_0x9799b(0x304)]['memberID']);}async['send'](_0x14248f,_0x368e83){const _0x2ae7be=_0x72f170;if(this['sessionStatus']!==0x3||!this[_0x2ae7be(0x150)])throw new Error(_0x2ae7be(0x1b9));try{_0x14248f['eventID']===_0x30a695['CollaborationEvent'][_0x2ae7be(0x22c)]&&this[_0x2ae7be(0x382)](),this[_0x2ae7be(0x150)]['send']({'cmd':_0x1da09a[_0x2ae7be(0x12b)],'routeKey':_0x368e83,'routeType':'','data':_0x14248f});}catch(_0x280afa){this[_0x2ae7be(0x1a6)]['error'](_0x280afa);}}[_0x72f170(0x382)](){const _0x2fc5e9=_0x72f170;var _0x527608;this[_0x2fc5e9(0x3fc)]=window[_0x2fc5e9(0x285)](()=>{const _0x4daa88=_0x2fc5e9;this[_0x4daa88(0x3fc)]=null,this['_messageService'][_0x4daa88(0x338)]({'type':_0x350456[_0x4daa88(0x2a4)][_0x4daa88(0x3cf)],'content':this[_0x4daa88(0x17e)]['t']('session.collaboration-timeout')});},(_0x527608=this['_configService']['getConfig'](_0x855346))!=null?_0x527608:_0x5f5a4b);}['_clearCollaborationTimeoutTimer'](){const _0x56c81e=_0x72f170;this[_0x56c81e(0x3fc)]&&(clearTimeout(this[_0x56c81e(0x3fc)]),this[_0x56c81e(0x3fc)]=null);}},_0x588091['CollaborationSession']=_0x4ec6dc([_0x903a07(0x2,_0x1b3401[_0x72f170(0x29c)]),_0x903a07(0x3,_0x47170c[_0x72f170(0xe4)]),_0x903a07(0x4,_0x47170c[_0x72f170(0x2e2)]),_0x903a07(0x5,_0x1b3401[_0x72f170(0x1e4)]),_0x903a07(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x903a07(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x3f8747))],_0x588091[_0x72f170(0x2fc)]),_0x588091['CollaborationSessionService']=class extends _0x1b3401[_0x72f170(0x340)]{constructor(_0x2147f6,_0x115a64,_0x184353,_0x11dd1c,_0x29501b,_0x23e3e9){const _0x2fadf6=_0x72f170;super(),_0x51e1d8(this,_0x2fadf6(0x33b),new _0x414952[(_0x2fadf6(0x1e6))](void 0x0)),_0x51e1d8(this,_0x2fadf6(0x225),new Map()),_0x51e1d8(this,_0x2fadf6(0x221),new _0x414952[(_0x2fadf6(0x1e6))](0x0)),_0x51e1d8(this,'status$',this['_status$']['asObservable']()),_0x51e1d8(this,_0x2fadf6(0x3bd),!0x1),_0x51e1d8(this,_0x2fadf6(0x280)),_0x51e1d8(this,'_timeoutTimer'),_0x51e1d8(this,'_retryConnectingTimer'),_0x51e1d8(this,_0x2fadf6(0x402),0x0),(this[_0x2fadf6(0x397)]=_0x2147f6,this['_localeService']=_0x115a64,this[_0x2fadf6(0x269)]=_0x184353,this[_0x2fadf6(0x1a6)]=_0x11dd1c,this[_0x2fadf6(0x1a2)]=_0x29501b,this[_0x2fadf6(0xe9)]=_0x23e3e9);}get[_0x72f170(0x150)](){const _0x121dab=_0x72f170;return this[_0x121dab(0x33b)][_0x121dab(0x1e1)]();}['dispose'](){const _0x3f7baa=_0x72f170;super[_0x3f7baa(0x10c)](),this[_0x3f7baa(0x225)][_0x3f7baa(0x3bf)](_0x204638=>_0x204638[_0x3f7baa(0x10c)]()),this[_0x3f7baa(0x225)]['clear'](),this[_0x3f7baa(0x221)][_0x3f7baa(0x27e)]();}async[_0x72f170(0x336)](_0x2ed0d5){const _0x181625=_0x72f170;if(this['_sessions'][_0x181625(0x2de)](_0x2ed0d5))return this[_0x181625(0x225)]['get'](_0x2ed0d5);this[_0x181625(0xce)]();const _0x5cc090=this[_0x181625(0x397)]['createInstance'](_0x588091['CollaborationSession'],_0x2ed0d5,this[_0x181625(0x33b)][_0x181625(0x348)]());return this[_0x181625(0x225)][_0x181625(0x346)](_0x2ed0d5,_0x5cc090),_0x5cc090;}[_0x72f170(0x184)](){const _0x17b9c9=_0x72f170;var _0x133c13;const _0x1171ad=(_0x133c13=this[_0x17b9c9(0x1a2)][_0x17b9c9(0x310)](_0x575e39))!=null?_0x133c13:_0x323e3c;return this[_0x17b9c9(0xe9)][_0x17b9c9(0x2b8)](_0x1171ad);}['_tryEnsureSocket'](){const _0x76ac3c=_0x72f170;try{const _0x5c199b=this[_0x76ac3c(0x184)]();if(_0x5c199b){const _0x5510ed=_0x5c199b[_0x76ac3c(0x3c4)];_0x5c199b[_0x76ac3c(0x3c4)]=_0x577473=>(this[_0x76ac3c(0x17b)](),_0x5510ed[_0x76ac3c(0x1fd)](_0x5c199b,[_0x577473])),_0x5c199b[_0x76ac3c(0x2fb)][_0x76ac3c(0x112)](_0x5e716d=>this[_0x76ac3c(0x1a3)](_0x5c199b,_0x5e716d)),_0x5c199b[_0x76ac3c(0xeb)][_0x76ac3c(0x2ca)](_0x3151c5['take'](0x1))[_0x76ac3c(0x112)](_0xc04a0a=>this[_0x76ac3c(0x1a6)][_0x76ac3c(0x2e6)]('[CollaborationSessionService]:\x20socket\x20error',_0xc04a0a)),_0x5c199b[_0x76ac3c(0x37a)]['pipe'](_0x3151c5[_0x76ac3c(0x375)](0x1))[_0x76ac3c(0x112)](()=>{this['_onConnectionOpen'](_0x5c199b);}),_0x5c199b['close$'][_0x76ac3c(0x2ca)](_0x3151c5[_0x76ac3c(0x375)](0x1))[_0x76ac3c(0x112)](_0x2c0e16=>{const _0x4c0cbd=_0x76ac3c;this[_0x4c0cbd(0x1a6)][_0x4c0cbd(0xf2)]('[CollaborationSessionService]',_0x4c0cbd(0x36c),_0x2c0e16),this['_onConnectionFailed']();});}}catch(_0x12ecaf){this['_logService']['error'](_0x12ecaf),this[_0x76ac3c(0x28d)]();}}['_onConnectionOpen'](_0x1b9caa){const _0x31b2c2=_0x72f170;this[_0x31b2c2(0x1a6)][_0x31b2c2(0xf2)](_0x31b2c2(0x424),'socket\x20open.'),_0x1b9caa[_0x31b2c2(0x3c4)]({'cmd':_0x1da09a[_0x31b2c2(0x298)]}),this[_0x31b2c2(0x17b)]();}[_0x72f170(0x28d)](){const _0x47c2da=_0x72f170;var _0x2af522;this[_0x47c2da(0x221)][_0x47c2da(0x3d6)](0x2),this[_0x47c2da(0x33b)][_0x47c2da(0x3d6)](null),this[_0x47c2da(0x10a)](),this[_0x47c2da(0x264)](),this[_0x47c2da(0x3bd)]=!0x1,this[_0x47c2da(0x402)]<((_0x2af522=this['_configService'][_0x47c2da(0x310)](_0x4e5356))!=null?_0x2af522:_0x2f694c)?(this['_scheduleReconnection'](this['_retryCount']),this[_0x47c2da(0x402)]+=0x1):this['_messageService'][_0x47c2da(0x338)]({'type':_0x350456[_0x47c2da(0x2a4)][_0x47c2da(0x3cf)],'content':this[_0x47c2da(0x17e)]['t']('session.connection-failed')});}[_0x72f170(0x427)](_0x5f10d4){const _0x385853=_0x72f170;var _0x257a97;const _0x4ac3ef=((_0x257a97=this[_0x385853(0x1a2)]['getConfig'](_0x4c9d62))!=null?_0x257a97:_0xde0e3f)*0x2**_0x5f10d4;this[_0x385853(0x269)][_0x385853(0x338)]({'type':_0x350456[_0x385853(0x2a4)][_0x385853(0x347)],'content':this[_0x385853(0x17e)]['t'](_0x385853(0x2f5))}),this[_0x385853(0x1d2)]=setTimeout(()=>{const _0x3674ee=_0x385853;this[_0x3674ee(0xce)](),clearTimeout(this[_0x3674ee(0x1d2)]),this[_0x3674ee(0x1d2)]=null;},_0x4ac3ef);}[_0x72f170(0x17b)](){const _0x5730c9=_0x72f170;var _0x5230ec;this['_clearHeartbeatTimer'](),this[_0x5730c9(0x280)]=setTimeout(()=>this[_0x5730c9(0x1a1)](),(_0x5230ec=this[_0x5730c9(0x1a2)][_0x5730c9(0x310)](_0x5d723c))!=null?_0x5230ec:_0x433e9c);}['_sendHeartbeat'](){const _0x48115a=_0x72f170;this[_0x48115a(0x150)][_0x48115a(0x3c4)]({'cmd':_0x1da09a[_0x48115a(0x1fe)]}),this[_0x48115a(0x272)]();}[_0x72f170(0x272)](){const _0x51a3fd=_0x72f170;var _0x4c8ff5;this['_timeoutTimer']=setTimeout(()=>this[_0x51a3fd(0x28d)](),(_0x4c8ff5=this[_0x51a3fd(0x1a2)][_0x51a3fd(0x310)](_0x855346))!=null?_0x4c8ff5:_0x5f5a4b);}[_0x72f170(0x1a3)](_0x41d243,_0x3bcf6a){const _0x26d186=_0x72f170,{cmd:_0x1159ef}=_0x3bcf6a;_0x1159ef===_0x1da09a['HELLO']&&!this[_0x26d186(0x3bd)]&&(_0x41d243[_0x26d186(0x144)]=_0x3bcf6a[_0x26d186(0x304)][_0x26d186(0x144)],this[_0x26d186(0x33b)][_0x26d186(0x3d6)](_0x41d243),this[_0x26d186(0x221)][_0x26d186(0x3d6)](0x3),this[_0x26d186(0x3bd)]=!0x0),_0x1159ef===_0x1da09a[_0x26d186(0x1fe)]&&this[_0x26d186(0x10a)](),this['_rescheduleHeartbeatEvent']();}[_0x72f170(0x264)](){const _0x313ee6=_0x72f170;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x313ee6(0x280)]),this[_0x313ee6(0x280)]=null);}[_0x72f170(0x10a)](){const _0x2f211e=_0x72f170;this[_0x2f211e(0x3d5)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2f211e(0x3d5)]=null);}},_0x588091[_0x72f170(0x1d6)]=_0x4ec6dc([_0x903a07(0x0,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x903a07(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x903a07(0x2,_0x47170c['IMessageService']),_0x903a07(0x3,_0x1b3401[_0x72f170(0x29c)]),_0x903a07(0x4,_0x1b3401[_0x72f170(0x1e4)]),_0x903a07(0x5,_0x1083e0)],_0x588091['CollaborationSessionService']);var _0x7701e4=(_0x3c3470,_0x57e5dc,_0x323976,_0x1604b3)=>{const _0x569b1a=_0x72f170;for(var _0x29aba6=_0x57e5dc,_0x1c9ad8=_0x3c3470[_0x569b1a(0xbe)]-0x1,_0x75a79c;_0x1c9ad8>=0x0;_0x1c9ad8--)(_0x75a79c=_0x3c3470[_0x1c9ad8])&&(_0x29aba6=_0x75a79c(_0x29aba6)||_0x29aba6);return _0x29aba6;},_0x2c73ec=(_0x1f708e,_0x4fd38a)=>(_0x2f4520,_0x20f195)=>_0x4fd38a(_0x2f4520,_0x20f195,_0x1f708e);const _0x33701a='LOCAL_CACHE_INTERVAL',_0x335856=0x3e8;_0x588091[_0x72f170(0x3a7)]=class extends _0x1b3401[_0x72f170(0x340)]{constructor(_0x398342,_0x5b5b69,_0x154f0d,_0x4198db,_0x47878a){const _0x7eff4f=_0x72f170;super(),_0x51e1d8(this,_0x7eff4f(0xda),new Map()),_0x51e1d8(this,_0x7eff4f(0x32f),new Map()),_0x51e1d8(this,'_disabled',!0x1),(this['_configService']=_0x398342,this[_0x7eff4f(0x252)]=_0x5b5b69,this[_0x7eff4f(0x3de)]=_0x154f0d,this[_0x7eff4f(0x17e)]=_0x4198db,this['_revisionService']=_0x47878a,this['_setupBeforeClosingHandler']());}[_0x72f170(0x2d9)](){this['_disabled']=!0x0;}[_0x72f170(0xdd)](){this['_disabled']=!0x1;}[_0x72f170(0x10c)](){const _0x13f35b=_0x72f170;this[_0x13f35b(0x25d)]()[_0x13f35b(0x414)](()=>super[_0x13f35b(0x10c)]());}async[_0x72f170(0x3df)](_0x2abdaa){const _0x24e401=_0x72f170;return this[_0x24e401(0x1b5)]?null:this['_localStorageService'][_0x24e401(0xc9)](_0x3b3fa0(_0x2abdaa));}async[_0x72f170(0xdf)](_0x1294f1,_0x42553c){return!!this['_localStorageService']['setItem'](_0x1294f1,_0x42553c);}[_0x72f170(0x1a7)](_0xddb8b5,_0x1e01fc,_0x3aeb3e,_0x1d7534){const _0x4091fa=_0x72f170,_0x42104b=this[_0x4091fa(0x376)][_0x4091fa(0x35d)](_0xddb8b5);this[_0x4091fa(0xda)][_0x4091fa(0x346)](_0xddb8b5,{'unitID':_0xddb8b5,'type':_0x1e01fc,'awaitingChangeset':_0x3aeb3e,'mutations':_0x1d7534,'rev':_0x42104b}),this[_0x4091fa(0x32f)][_0x4091fa(0x2de)](_0xddb8b5)||this[_0x4091fa(0x104)](_0xddb8b5);}[_0x72f170(0x104)](_0x488afc){const _0x35533d=_0x72f170,_0x26d5fc=this[_0x35533d(0x36e)]();_0x26d5fc===0x0?this[_0x35533d(0xe6)](_0x488afc):this['_saveTaskMap']['set'](_0x488afc,setTimeout(()=>this[_0x35533d(0xe6)](_0x488afc),_0x26d5fc));}[_0x72f170(0x36e)](){const _0x479e65=_0x72f170;var _0x27000b;return(_0x27000b=this[_0x479e65(0x1a2)][_0x479e65(0x310)](_0x33701a))!=null?_0x27000b:_0x335856;}[_0x72f170(0xe6)](_0x513c8c){const _0x23a3aa=_0x72f170,_0x55d794=this['_saveTaskMap']['get'](_0x513c8c);return _0x55d794!==void 0x0&&window[_0x23a3aa(0x3ce)](_0x55d794),this[_0x23a3aa(0x252)][_0x23a3aa(0x208)](_0x3b3fa0(_0x513c8c),this['_cachedData'][_0x23a3aa(0x25f)](_0x513c8c))[_0x23a3aa(0x414)](()=>this[_0x23a3aa(0x32f)]['delete'](_0x513c8c));}async[_0x72f170(0x25d)](){const _0x4f8518=_0x72f170,_0x3773cb=[];this[_0x4f8518(0x32f)][_0x4f8518(0x3bf)]((_0x1863bb,_0x4a41ee)=>{const _0x24060=_0x4f8518;window[_0x24060(0x3ce)](_0x1863bb),_0x3773cb[_0x24060(0x2c7)](this[_0x24060(0xe6)](_0x4a41ee)[_0x24060(0x414)](()=>{const _0x31ce99=_0x24060;this[_0x31ce99(0x32f)][_0x31ce99(0x16c)](_0x4a41ee);}));}),await Promise[_0x4f8518(0x11a)](_0x3773cb);}[_0x72f170(0x2d4)](){const _0x4a5ca9=_0x72f170;this['disposeWithMe'](this['_beforeCloseService'][_0x4a5ca9(0x19b)](()=>{const _0x1a6984=_0x4a5ca9;if(this[_0x1a6984(0x32f)][_0x1a6984(0xcd)])return this[_0x1a6984(0x17e)]['t'](_0x1a6984(0x19e));}));}},_0x588091[_0x72f170(0x3a7)]=_0x7701e4([_0x2c73ec(0x0,_0x1b3401[_0x72f170(0x1e4)]),_0x2c73ec(0x1,_0x1b3401[_0x72f170(0x29a)]),_0x2c73ec(0x2,_0x47170c[_0x72f170(0xe4)]),_0x2c73ec(0x3,_0x5c7b32['Inject'](_0x1b3401['LocaleService'])),_0x2c73ec(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)]))],_0x588091['LocalCacheService']);function _0x3b3fa0(_0x16d1db){return'unit-cache-'+_0x16d1db;}const _0x345c46=_0x5c7b32['createIdentifier'](_0x72f170(0xca));var _0x215e18=(_0x2eb1d5=>(_0x2eb1d5[_0x2eb1d5[_0x72f170(0x187)]=0x0]=_0x72f170(0x187),_0x2eb1d5[_0x2eb1d5[_0x72f170(0x1e0)]=0x1]=_0x72f170(0x1e0),_0x2eb1d5))(_0x215e18||{});const _0x2ab6cc=0x7530,_0x3d96db=_0x72f170(0x211);class _0x502148 extends _0x1b3401[_0x72f170(0x340)]{constructor(){const _0x48f146=_0x72f170;super(),_0x51e1d8(this,_0x48f146(0x18e),_0x1b3401[_0x48f146(0x39f)][_0x48f146(0x32e)]()),_0x51e1d8(this,_0x48f146(0x10f),new Set()),_0x51e1d8(this,_0x48f146(0x224),new Map()),_0x51e1d8(this,'_heartbeatTimer',null),_0x51e1d8(this,_0x48f146(0xc0),new Map()),_0x51e1d8(this,'_unitStatus',new Map()),this[_0x48f146(0x3b0)]();}['dispose'](){const _0x25224e=_0x72f170;super[_0x25224e(0x10c)](),this[_0x25224e(0xc0)][_0x25224e(0x3bf)]((_0x384851,_0x36b876)=>this[_0x25224e(0x190)](_0x36b876)),this[_0x25224e(0x274)]&&window[_0x25224e(0x294)](this[_0x25224e(0x274)]);}[_0x72f170(0x133)](_0x7aecf5){const _0x27596f=_0x72f170;return this['_ensureSubject'](_0x7aecf5)[_0x27596f(0x2ca)](_0x414952[_0x27596f(0x3c5)]());}['editingUnit'](_0x30acab){const _0x1cb400=_0x72f170;this[_0x1cb400(0x10f)]['size']===0x0&&this[_0x1cb400(0xcf)](),this[_0x1cb400(0x10f)][_0x1cb400(0x3c1)](_0x30acab),this[_0x1cb400(0x180)]({'type':0x0,'memberID':this[_0x1cb400(0x18e)],'unitID':_0x30acab});}['disposeUnit'](_0x10bb21){const _0x389ce6=_0x72f170;this[_0x389ce6(0x10f)][_0x389ce6(0x16c)](_0x10bb21),this['_selfUnitIDs'][_0x389ce6(0xcd)]===0x0&&this['_heartbeatTimer']&&window[_0x389ce6(0x294)](this[_0x389ce6(0x274)]);}['_init'](){const _0x719348=_0x72f170;this[_0x719348(0xf8)](_0x1b3401[_0x719348(0x2ac)](_0x414952[_0x719348(0x39d)](window,_0x719348(0x431))[_0x719348(0x112)](_0x5ad107=>{const _0x48a7ef=_0x719348;if(_0x5ad107[_0x48a7ef(0x13c)]!==_0x3d96db||!_0x5ad107[_0x48a7ef(0x421)])return;const _0x20a907=JSON[_0x48a7ef(0x3fd)](_0x5ad107[_0x48a7ef(0x421)]);this[_0x48a7ef(0xf0)](_0x20a907);}))),window[_0x719348(0x106)]('unload',()=>this[_0x719348(0x180)]({'type':0x1,'memberID':this[_0x719348(0x18e)],'unitIDs':Array[_0x719348(0x213)](this[_0x719348(0x10f)])}));}[_0x72f170(0xf0)](_0x270a50){const _0x4f6a6c=_0x72f170;switch(_0x270a50[_0x4f6a6c(0x418)]){case 0x0:this['_handleJoinEvent'](_0x270a50);break;case 0x1:this[_0x4f6a6c(0x2b6)](_0x270a50);break;case 0x2:this[_0x4f6a6c(0x379)](_0x270a50);break;}}['_handleJoinEvent'](_0x5a223d){const _0x2003b1=_0x72f170,{unitID:_0x3c944f,memberID:_0x2a30ee}=_0x5a223d;if(!this['_unitOnClients'][_0x2003b1(0x2de)](_0x3c944f)||!this[_0x2003b1(0x224)][_0x2003b1(0x25f)](_0x3c944f)['has'](_0x2a30ee)){const _0x290cfd=this[_0x2003b1(0x224)][_0x2003b1(0x25f)](_0x3c944f)||new Set();_0x290cfd[_0x2003b1(0x3c1)](_0x2a30ee),this[_0x2003b1(0x224)][_0x2003b1(0x346)](_0x3c944f,_0x290cfd),this[_0x2003b1(0x262)](_0x2a30ee),this[_0x2003b1(0x180)]({'type':0x0,'memberID':this[_0x2003b1(0x18e)],'unitID':_0x3c944f});}else this[_0x2003b1(0x128)](_0x3c944f)[_0x2003b1(0x3d6)](0x1);}[_0x72f170(0x262)](_0x31f8e4){this['_removeClearOtherTimer'](_0x31f8e4);const _0x2c94c9=window['setTimeout'](()=>{const _0x3745dc=_0x4733;this[_0x3745dc(0x224)]['forEach'](_0x18fdde=>{const _0x21d247=_0x3745dc;_0x18fdde[_0x21d247(0x16c)](_0x31f8e4);});},_0x2ab6cc*0x2);this['_clearOtherTimers']['set'](_0x31f8e4,_0x2c94c9);}['_removeClearOtherTimer'](_0x343c1f){const _0x54e88f=_0x72f170;if(this[_0x54e88f(0xc0)][_0x54e88f(0x2de)](_0x343c1f)){const _0x3a2429=this[_0x54e88f(0xc0)][_0x54e88f(0x25f)](_0x343c1f);_0x3a2429&&window['clearTimeout'](_0x3a2429),this[_0x54e88f(0xc0)][_0x54e88f(0x346)](_0x343c1f,null);}}[_0x72f170(0x2b6)](_0xeabc4a){const _0x3666a0=_0x72f170,{memberID:_0x52d946,unitIDs:_0x5880ab}=_0xeabc4a;_0x5880ab[_0x3666a0(0x3bf)](_0x493142=>{const _0xc1741=_0x3666a0;var _0x5f5d05;const _0xb6bd70=this[_0xc1741(0x224)][_0xc1741(0x25f)](_0x493142);_0xb6bd70&&(_0xb6bd70[_0xc1741(0x16c)](_0x52d946),(_0x5f5d05=this['_ensureSubject'](_0x493142))==null||_0x5f5d05['next'](_0xb6bd70[_0xc1741(0xcd)]===0x0?0x0:0x1));}),this[_0x3666a0(0x190)](_0x52d946);}[_0x72f170(0x379)](_0x294302){const _0x204b8c=_0x72f170;this[_0x204b8c(0x262)](_0x294302['memberID']);}[_0x72f170(0x180)](_0x2f520a){const _0x340403=_0x72f170;localStorage[_0x340403(0x208)](_0x3d96db,JSON[_0x340403(0x286)](_0x2f520a));}[_0x72f170(0xcf)](){const _0x24d8ae=_0x72f170;this[_0x24d8ae(0x274)]=window['setInterval'](()=>{const _0x2124c3=_0x24d8ae;this[_0x2124c3(0x180)]({'type':0x2,'memberID':this[_0x2124c3(0x18e)]});},_0x2ab6cc);}[_0x72f170(0x128)](_0x4b9944){const _0x555411=_0x72f170;return this['_unitStatus']['has'](_0x4b9944)||this[_0x555411(0x1ba)][_0x555411(0x346)](_0x4b9944,new _0x414952[(_0x555411(0x1e6))](0x0)),this['_unitStatus'][_0x555411(0x25f)](_0x4b9944);}}var _0x2f97fb=(_0x51fb0c,_0x1f770f,_0x2f7447,_0x647592)=>{const _0x3b44b8=_0x72f170;for(var _0x454d21=_0x1f770f,_0x15202b=_0x51fb0c[_0x3b44b8(0xbe)]-0x1,_0x2d6853;_0x15202b>=0x0;_0x15202b--)(_0x2d6853=_0x51fb0c[_0x15202b])&&(_0x454d21=_0x2d6853(_0x454d21)||_0x454d21);return _0x454d21;},_0x341c78=(_0x2c6775,_0x320594)=>(_0x4becb8,_0x1d9793)=>_0x320594(_0x4becb8,_0x1d9793,_0x2c6775);let _0x1a629c=class{constructor(_0xc13ad0,_0x263301){const _0x1752cb=_0x72f170;this[_0x1752cb(0x397)]=_0xc13ad0,this[_0x1752cb(0x3f8)]=_0x263301;}[_0x72f170(0x40f)](_0x719a5c){const _0x1cf1a1=_0x72f170;this['_transformUndoRedoStack'](_0x719a5c),this[_0x1cf1a1(0x15f)](_0x719a5c);}[_0x72f170(0x1d8)](_0x4cf5e4){const _0xb357b3=_0x72f170,_0x572ecc=this['_injector'][_0xb357b3(0x25f)](_0x54860c[_0xb357b3(0x36f)]),{redoCache:_0x28f86d}=_0x572ecc[_0xb357b3(0x3ea)]();if(_0x28f86d[_0xb357b3(0xbe)]===0x0)return _0x4cf5e4;let _0xec03bd=_0x1b3401[_0xb357b3(0x39f)][_0xb357b3(0x2ad)](_0x4cf5e4['mutations'][0x0]);for(let _0x3a9072=0x0;_0x3a9072<_0x28f86d[_0xb357b3(0xbe)];_0x3a9072++){const _0x2304db={'id':_0xb357b3(0x42f),'params':{..._0x28f86d[_0x3a9072]}},_0x1238d2=this[_0xb357b3(0x3f8)]['transformMutation'](_0xec03bd,_0x2304db,!0x1);if(_0x30a695[_0xb357b3(0x149)](_0x1238d2))throw _0x1238d2[_0xb357b3(0x2e6)];_0xec03bd=_0x1238d2[_0xb357b3(0x385)];}return{..._0x1b3401[_0xb357b3(0x39f)][_0xb357b3(0x2ad)](_0x4cf5e4),'mutations':[_0xec03bd]};}[_0x72f170(0xd2)](_0x1f91bb){const _0x946217=_0x72f170,_0x404c95=this[_0x946217(0x397)][_0x946217(0x25f)](_0x54860c[_0x946217(0x36f)]),{undoCache:_0x179cbc,redoCache:_0x4d3bc7}=_0x404c95[_0x946217(0x3ea)]();if(_0x179cbc[_0x946217(0xbe)]===0x0||_0x4d3bc7['length']===0x0)return;const _0x4dd8e8=[],_0x2ba86b=[];let _0x40e8d7=_0x1b3401[_0x946217(0x39f)][_0x946217(0x2ad)](_0x1f91bb['mutations'][0x0]),_0x430c29=_0x1b3401['Tools'][_0x946217(0x2ad)](_0x1f91bb['mutations'][0x0]);for(let _0x6d4bf4=_0x179cbc[_0x946217(0xbe)]-0x1;_0x6d4bf4>=0x0;_0x6d4bf4--){const _0x514f83={'id':_0x946217(0x42f),'params':{..._0x179cbc[_0x6d4bf4]}},_0x293d32={'id':_0x946217(0x42f),'params':{..._0x4d3bc7[_0x6d4bf4]}},_0x30ef54=this[_0x946217(0x3f8)]['transformMutation'](_0x40e8d7,_0x514f83,!0x1),_0x1b12e9=this[_0x946217(0x3f8)][_0x946217(0xea)](_0x430c29,_0x293d32,!0x1);if(_0x30a695[_0x946217(0x149)](_0x30ef54))throw _0x30ef54[_0x946217(0x2e6)];if(_0x30a695['isTransformMutationFailure'](_0x1b12e9))throw _0x1b12e9[_0x946217(0x2e6)];_0x4dd8e8['unshift'](_0x30ef54[_0x946217(0x268)][_0x946217(0x197)]),_0x2ba86b[_0x946217(0x3af)](_0x1b12e9[_0x946217(0x268)]['params']),_0x40e8d7=_0x30ef54[_0x946217(0x385)],_0x430c29=_0x1b12e9['m1Prime'];}_0x404c95['setUndoRedoMutationParamsCache']({'undoCache':_0x4dd8e8,'redoCache':_0x2ba86b});}[_0x72f170(0x15f)](_0x79fa10){const _0xac53d0=_0x72f170,_0x59fee8=this[_0xac53d0(0x397)]['get'](_0x54860c[_0xac53d0(0x36f)]),_0x51a65d=_0x59fee8['getActiveRange']();if(_0x51a65d==null)return;const _0x2feea1=[{'id':_0xac53d0(0x42f),'params':{'unitId':_0x79fa10[_0xac53d0(0x17d)],'actions':[],'textRanges':[_0x51a65d]}}],_0x48ce4a=this['_transformService'][_0xac53d0(0x132)](_0x79fa10,_0x2feea1);if(!_0x30a695[_0xac53d0(0x2ab)](_0x48ce4a))throw _0x48ce4a[_0xac53d0(0x2e6)];const _0x48e336=_0x48ce4a[_0xac53d0(0x268)][0x0][_0xac53d0(0x197)][_0xac53d0(0x113)];Array['isArray'](_0x48e336)&&_0x48e336[_0xac53d0(0xbe)]&&_0x59fee8[_0xac53d0(0x2f8)](_0x48e336[0x0]);}};_0x1a629c=_0x2f97fb([_0x341c78(0x0,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x341c78(0x1,_0x30a695[_0x72f170(0x2dc)])],_0x1a629c);var _0x75b11b=(_0x39ca3a,_0x9bad3a,_0x7f6aea,_0x359da7)=>{const _0x2983bc=_0x72f170;for(var _0x10e740=_0x9bad3a,_0x5ca64c=_0x39ca3a[_0x2983bc(0xbe)]-0x1,_0x1351c2;_0x5ca64c>=0x0;_0x5ca64c--)(_0x1351c2=_0x39ca3a[_0x5ca64c])&&(_0x10e740=_0x1351c2(_0x10e740)||_0x10e740);return _0x10e740;},_0x56f40f=(_0x5c1975,_0x153b33)=>(_0x23c311,_0x254d1a)=>_0x153b33(_0x23c311,_0x254d1a,_0x5c1975);let _0x1505a5=class{constructor(_0x15646b,_0x561f1d){this['_injector']=_0x15646b,this['_transformService']=_0x561f1d;}[_0x72f170(0x196)](_0x3a15cb){const _0x5be384=_0x72f170;var _0x95d99e;const _0xa66f03=this[_0x5be384(0x397)]['get'](_0x54860c[_0x5be384(0x26e)]),_0x2aa2ec=(_0x95d99e=_0xa66f03[_0x5be384(0x2f2)]())!=null?_0x95d99e:[],_0x561e95=_0x2aa2ec==null?void 0x0:_0x2aa2ec[_0x5be384(0x250)](_0x54860c[_0x5be384(0x32a)]);if(_0x561e95[_0x5be384(0xbe)]===0x0)return;const _0x39278d=[{'id':_0x5be384(0x42f),'params':{'unitId':_0x3a15cb[_0x5be384(0x17d)],'actions':[],'textRanges':_0x561e95}}],_0xff7372=this[_0x5be384(0x3f8)][_0x5be384(0x132)](_0x3a15cb,_0x39278d);if(!_0x30a695[_0x5be384(0x2ab)](_0xff7372))throw _0xff7372['error'];const _0x3f92ac=_0xff7372['m2Prime'][0x0][_0x5be384(0x197)][_0x5be384(0x113)];Array[_0x5be384(0x22e)](_0x3f92ac)&&_0x3f92ac[_0x5be384(0xbe)]&&_0xa66f03[_0x5be384(0x345)](_0x3f92ac,!0x1);}};_0x1505a5=_0x75b11b([_0x56f40f(0x0,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x56f40f(0x1,_0x30a695['ITransformService'])],_0x1505a5);function _0xbfbaaa(_0x258eae){const _0x8283ce=_0x72f170;let _0x49ffd2='';for(const _0x2764b5 of _0x258eae){const {startOffset:_0x39f12e,endOffset:_0x3ec633,isActive:_0x55245b}=_0x2764b5;_0x49ffd2[_0x8283ce(0xbe)]&&(_0x49ffd2+=','),_0x49ffd2+=_0x39f12e+':'+_0x3ec633+':'+(_0x55245b?'1':'0');}return _0x49ffd2;}function _0x9114c9(_0x518084){const _0x5ae58c=_0x72f170,_0x975acb=_0x518084[_0x5ae58c(0x101)](','),_0xdab2f3=[];for(const _0x2ed54d of _0x975acb){const [_0x502c58,_0xfa05e,_0x5857cb]=_0x2ed54d[_0x5ae58c(0x101)](':');_0xdab2f3[_0x5ae58c(0x2c7)]({'startOffset':Number(_0x502c58),'endOffset':Number(_0xfa05e),'collapsed':_0x502c58===_0xfa05e,'isActive':_0x5857cb==='1'});}return _0xdab2f3[_0x5ae58c(0x35a)](_0x4e2e50=>_0x4e2e50[_0x5ae58c(0x111)])||(_0xdab2f3[0x0][_0x5ae58c(0x111)]=!0x0),_0xdab2f3;}class _0x21c0b5 extends _0x1b3401['RxDisposable']{constructor(){const _0x301dc6=_0x72f170;super(...arguments),_0x51e1d8(this,_0x301dc6(0x22a),new _0x414952[(_0x301dc6(0x1e6))](null)),_0x51e1d8(this,_0x301dc6(0x41f),this[_0x301dc6(0x22a)][_0x301dc6(0x348)]());}[_0x72f170(0x3b2)](_0x1ba9ce){const _0x3692e6=_0x72f170,{unitID:_0x5452a3,memberID:_0x464789,textRanges:_0x1dd842}=_0x1ba9ce,_0x2ad981=_0xbfbaaa(_0x1dd842),_0x2c33a2={'unitID':_0x5452a3,'memberID':_0x464789,'selection':_0x2ad981};this[_0x3692e6(0x22a)][_0x3692e6(0x3d6)](_0x2c33a2);}}var _0x4317d1=(_0x591ef6,_0x534a82,_0x3edc37,_0x449e27)=>{const _0x3ebc98=_0x72f170;for(var _0xc56bd7=_0x534a82,_0x3c871e=_0x591ef6[_0x3ebc98(0xbe)]-0x1,_0x5c167b;_0x3c871e>=0x0;_0x3c871e--)(_0x5c167b=_0x591ef6[_0x3c871e])&&(_0xc56bd7=_0x5c167b(_0xc56bd7)||_0xc56bd7);return _0xc56bd7;},_0x560cc3=(_0x4497da,_0x26971c)=>(_0x24a47c,_0x36fbaa)=>_0x26971c(_0x24a47c,_0x36fbaa,_0x4497da);let _0x211af0=class{constructor(_0x1863e2,_0x3192bc){const _0xfc78f8=_0x72f170;this[_0xfc78f8(0x397)]=_0x1863e2,this[_0xfc78f8(0x3f8)]=_0x3192bc;}[_0x72f170(0x196)](_0x401d80){const _0x2efd54=_0x72f170;var _0x1cbce9,_0x6dda65,_0x251a95,_0x1cb56c;const _0x37ab22=this['_injector'][_0x2efd54(0x25f)](_0x51f05a[_0x2efd54(0x14d)]),{pluginName:_0xf1d163,unitId:_0x23a78f,sheetId:_0x1fa24f}=_0x37ab22[_0x2efd54(0x406)]()||{},_0x19f016=(_0x1cbce9=_0x37ab22[_0x2efd54(0x2f2)]())!=null?_0x1cbce9:[];if(_0x19f016[_0x2efd54(0xbe)]===0x0||!_0xf1d163||!_0x23a78f||!_0x1fa24f)return;const _0x1cfc9d=[{'id':_0x51f05a[_0x2efd54(0x167)]['id'],'params':{'unitId':_0x23a78f,'subUnitId':_0x1fa24f,'pluginName':_0xf1d163,'selections':_0x1b3401[_0x2efd54(0x39f)]['deepClone'](_0x19f016)}}],_0x596862=this['_transformService'][_0x2efd54(0x132)](_0x401d80,_0x1cfc9d);if(!_0x30a695['isTransformMutationsWithChangesetSuccess'](_0x596862))throw _0x596862[_0x2efd54(0x2e6)];const _0x2f5500=(_0x1cb56c=(_0x251a95=(_0x6dda65=_0x596862[_0x2efd54(0x268)][0x0])==null?void 0x0:_0x6dda65[_0x2efd54(0x197)])==null?void 0x0:_0x251a95['selections'])!=null?_0x1cb56c:_0x19f016;Array['isArray'](_0x2f5500)&&_0x2f5500[_0x2efd54(0xbe)]&&this['_injector']['get'](_0x1b3401['ICommandService'])['executeCommand'](_0x51f05a['SetSelectionsOperation']['id'],{'unitId':_0x23a78f,'subUnitId':_0x1fa24f,'pluginName':_0xf1d163,'selections':_0x2f5500});}};_0x211af0=_0x4317d1([_0x560cc3(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x560cc3(0x1,_0x30a695[_0x72f170(0x2dc)])],_0x211af0);const _0x2c64f1=new Set([_0x51f05a[_0x72f170(0x40c)]['id']]);function _0x1ef1f3(_0x3c033c,_0x1a2084,_0x51b56d,_0x5d86c0,_0x5f4ff3){const _0x5fd269=_0x72f170;var _0x486352,_0x410951,_0x4c4752,_0x93d30c;const _0x5c09ec=[];for(const _0x17426c of _0x3c033c)if(_0x2c64f1[_0x5fd269(0x2de)](_0x17426c['id'])){if(_0x5c09ec['length']>0x0)break;_0x5c09ec[_0x5fd269(0x2c7)](_0x17426c);break;}else _0x5c09ec[_0x5fd269(0x2c7)](_0x17426c);const _0x19301d=(_0x410951=(_0x486352=_0x5f4ff3['getCurrentUser']())==null?void 0x0:_0x486352[_0x5fd269(0x342)])!=null?_0x410951:_0x5fd269(0x400),_0x28c656=(_0x93d30c=(_0x4c4752=_0x5f4ff3[_0x5fd269(0x2e1)]())==null?void 0x0:_0x4c4752[_0x5fd269(0x144)])!=null?_0x93d30c:_0x5fd269(0x400);return{'changeset':{'unitID':_0x1a2084,'type':_0x30a695[_0x5fd269(0x411)](_0x51b56d[_0x5fd269(0x23d)](_0x1a2084)),'baseRev':_0x5d86c0['getCurrentRevForDocument'](_0x1a2084),'revision':0x0,'userID':_0x19301d,'memberID':_0x28c656,'mutations':_0x5c09ec},'pendingMutations':_0x3c033c[_0x5fd269(0x2a9)](_0x5c09ec[_0x5fd269(0xbe)])};}function _0x191741(_0x1e75ae,_0x2744b2,_0x38a562,_0x3a0954,_0x3d0dda){const _0x586afd=_0x72f170;var _0x28cbf3,_0x530a8f,_0x32d85c,_0x3ce003;const _0x289113=[_0x1e75ae[_0x586afd(0x13e)]((_0x5db2d7,_0x17b7b7)=>{const _0x1c5cc3=_0x586afd;var _0x3b18ba;const {id:_0x48e0ef}=_0x5db2d7,{id:_0x596443,type:_0x19c87a}=_0x17b7b7,_0x3765fe=(_0x3b18ba=_0x5db2d7['params'])!=null?_0x3b18ba:{'actions':[]},_0xa67456=_0x17b7b7[_0x1c5cc3(0x197)];if(_0x48e0ef&&_0x48e0ef!==_0x596443)throw new Error(_0x1c5cc3(0x30b)+_0x48e0ef+'\x20-\x20'+_0x596443+'.');return{..._0x5db2d7,'id':_0x596443,'type':_0x19c87a,'params':{'unitId':_0xa67456[_0x1c5cc3(0x350)],'textRanges':_0xa67456[_0x1c5cc3(0x113)],'actions':_0x1b3401[_0x1c5cc3(0x1ac)]['compose'](_0x3765fe[_0x1c5cc3(0x301)],_0xa67456['actions'])}};},{})],_0x13ffb2=(_0x530a8f=(_0x28cbf3=_0x3d0dda[_0x586afd(0x2e1)]())==null?void 0x0:_0x28cbf3[_0x586afd(0x342)])!=null?_0x530a8f:_0x586afd(0x400),_0xb4b921=(_0x3ce003=(_0x32d85c=_0x3d0dda[_0x586afd(0x2e1)]())==null?void 0x0:_0x32d85c['memberID'])!=null?_0x3ce003:_0x586afd(0x400);return{'changeset':{'unitID':_0x2744b2,'type':_0x30a695[_0x586afd(0x411)](_0x38a562['getUnitType'](_0x2744b2)),'baseRev':_0x3a0954['getCurrentRevForDocument'](_0x2744b2),'revision':0x0,'userID':_0x13ffb2,'memberID':_0xb4b921,'mutations':_0x289113},'pendingMutations':[]};}var _0x2d92ac=(_0x3d4cd4,_0x38ab59,_0x407f7e,_0x34d866)=>{const _0xbc5af2=_0x72f170;for(var _0x4624f3=_0x38ab59,_0x26f934=_0x3d4cd4[_0xbc5af2(0xbe)]-0x1,_0x5d9ff4;_0x26f934>=0x0;_0x26f934--)(_0x5d9ff4=_0x3d4cd4[_0x26f934])&&(_0x4624f3=_0x5d9ff4(_0x4624f3)||_0x4624f3);return _0x4624f3;},_0x3d5183=(_0x4c429b,_0x431fdc)=>(_0x4bd2ee,_0x2cfc9c)=>_0x431fdc(_0x4bd2ee,_0x2cfc9c,_0x4c429b);const _0x4d10b3=_0x72f170(0x241),_0x46ffdc=0x7d0;var _0x3a3bdf=(_0x200754=>(_0x200754[_0x72f170(0x26b)]='not_collab',_0x200754[_0x72f170(0x151)]=_0x72f170(0x15e),_0x200754[_0x72f170(0x409)]=_0x72f170(0x289),_0x200754[_0x72f170(0x41b)]=_0x72f170(0x28a),_0x200754[_0x72f170(0x108)]=_0x72f170(0x2a5),_0x200754['FETCH_MISS']='fetch_missing',_0x200754[_0x72f170(0x296)]=_0x72f170(0x319),_0x200754['OFFLINE']=_0x72f170(0x2a7),_0x200754))(_0x3a3bdf||{});class _0x39adef{constructor(_0x32efba,_0x5b7987,_0x5eec45,_0x19be7f,_0x2dd77b,_0x5423,_0x4f759b,_0x3f9539,_0x1865ef){const _0x2d9ed1=_0x72f170;_0x51e1d8(this,'_awaitingChangeset',null),_0x51e1d8(this,_0x2d9ed1(0x324),[]),(this[_0x2d9ed1(0x17d)]=_0x32efba,this[_0x2d9ed1(0x418)]=_0x5b7987,this['_handler']=_0x2dd77b,this[_0x2d9ed1(0x219)]=_0x5423,this['_undoRedoService']=_0x4f759b,this[_0x2d9ed1(0x376)]=_0x3f9539,this['_localCacheService']=_0x1865ef,this[_0x2d9ed1(0x234)]=_0x5eec45,this[_0x2d9ed1(0x324)]=_0x19be7f);}[_0x72f170(0x279)](_0x4b109b){const _0x443e8e=_0x72f170,_0x59bbef=this['_revisionService'][_0x443e8e(0x35d)](this['unitID']);return _0x4b109b[_0x443e8e(0x37d)]>_0x59bbef+0x1?(this[_0x443e8e(0x329)][_0x443e8e(0x1db)]({'from':_0x59bbef,'to':_0x4b109b[_0x443e8e(0x37d)]-0x1}),!0x0):!0x1;}[_0x72f170(0x428)](_0x4c9a56){const _0x5c6134=_0x72f170;this[_0x5c6134(0x24e)]['transformUndoRedo'](this[_0x5c6134(0x17d)],_0x4c9a56);}[_0x72f170(0x23c)](_0x25a901){const _0x2285f1=_0x72f170;var _0x271fd9,_0x5ce0c3;(_0x5ce0c3=(_0x271fd9=this[_0x2285f1(0x329)])[_0x2285f1(0x16d)])==null||_0x5ce0c3[_0x2285f1(0x3a3)](_0x271fd9,_0x25a901);}[_0x72f170(0x30d)](_0x21e8f3){const _0x4f7a8d=_0x72f170;var _0x878b4b,_0x5c392a;return(_0x5c392a=(_0x878b4b=this[_0x4f7a8d(0x329)])[_0x4f7a8d(0x36a)])==null?void 0x0:_0x5c392a[_0x4f7a8d(0x3a3)](_0x878b4b,_0x21e8f3);}['_transformRemoteChangesetByIMECache'](_0x360590){const _0x15beb1=_0x72f170;var _0x55740f,_0x6c45a8,_0x5507e1;return(_0x5507e1=(_0x6c45a8=(_0x55740f=this[_0x15beb1(0x329)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x6c45a8[_0x15beb1(0x3a3)](_0x55740f,_0x360590))!=null?_0x5507e1:_0x360590;}[_0x72f170(0x1ae)](_0x9983e8){const _0x2e1551=_0x72f170;var _0x4cbfde,_0xe7ab24;if(this[_0x2e1551(0x418)]===_0x2b3b4b[_0x2e1551(0x2f7)]){const {unitID:_0x3ba728,mutations:_0x3e94e6,memberID:_0x4adf76}=_0x9983e8,_0xd7c299=_0x3e94e6[0x0][_0x2e1551(0x197)][_0x2e1551(0x113)];Array[_0x2e1551(0x22e)](_0xd7c299)&&_0xd7c299[_0x2e1551(0xbe)]>0x0&&((_0xe7ab24=(_0x4cbfde=this[_0x2e1551(0x329)])[_0x2e1551(0x2f1)])==null||_0xe7ab24[_0x2e1551(0x3a3)](_0x4cbfde,{'unitID':_0x3ba728,'memberID':_0x4adf76,'textRanges':_0xd7c299}));}}[_0x72f170(0x203)](){const _0x2c6331=_0x72f170;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x2c6331(0x418)],this[_0x2c6331(0x234)],this[_0x2c6331(0x324)]);}['_getCurrentRevision'](){const _0x294ee6=_0x72f170;return this[_0x294ee6(0x376)][_0x294ee6(0x35d)](this[_0x294ee6(0x17d)]);}['_incrementRevisionNumber'](){const _0x486c59=_0x72f170;this[_0x486c59(0x376)][_0x486c59(0x175)](this[_0x486c59(0x17d)]);}[_0x72f170(0x239)](_0x573861){const _0x484737=_0x72f170;var _0x4cf557;const _0x378ece=this[_0x484737(0x142)](_0x573861),_0x154020=_0x1b3401['sequenceExecute'](_0x378ece['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x154020[_0x484737(0x21c)])throw _0x154020[_0x484737(0x2e6)]instanceof Error?_0x154020[_0x484737(0x2e6)]:new Error((_0x4cf557=_0x154020[_0x484737(0x2e6)])!=null?_0x4cf557:_0x484737(0x2e7));this[_0x484737(0x30d)](_0x378ece),this[_0x484737(0x428)](_0x573861),this['_transformSelections'](_0x378ece),this[_0x484737(0x1ae)](_0x378ece),this[_0x484737(0x349)]();}}let _0x1c5522=class extends _0x39adef{constructor(_0x5269ca,_0x4e7352,_0x3ef82e,_0x4ce20b,_0x405efe,_0x6cd5df,_0x4a0b37,_0x13b6dd,_0x532a58){super(_0x5269ca,_0x4e7352,null,[],_0x3ef82e,_0x13b6dd,_0x4a0b37,_0x4ce20b,_0x405efe),_0x51e1d8(this,'status','synced'),(this['_injector']=_0x6cd5df,this['_logService']=_0x532a58);}[_0x72f170(0x31d)](_0x2749b1){const _0x37b85f=_0x72f170,_0x2c2df3=this['_injector'][_0x37b85f(0x275)](_0x20573d,this[_0x37b85f(0x17d)],this['type'],[_0x2749b1],this[_0x37b85f(0x329)]);return _0x2c2df3[_0x37b85f(0x3d2)](),_0x2c2df3[_0x37b85f(0x203)](),_0x2c2df3;}[_0x72f170(0x2e9)](_0x13a1c1){const _0x340642=_0x72f170;if(this[_0x340642(0x279)](_0x13a1c1))return this['_injector'][_0x340642(0x275)](_0x6d27fb,this[_0x340642(0x17d)],this[_0x340642(0x418)],null,[],null,[_0x13a1c1],this[_0x340642(0x329)]);try{return this[_0x340642(0x239)](_0x13a1c1),this;}catch(_0x28c48b){return this[_0x340642(0x1a6)]['error'](_0x340642(0x237),_0x28c48b),this;}}[_0x72f170(0x40b)](){const _0x38f3ee=_0x72f170;throw new Error(_0x38f3ee(0x1fa));}['onRemoteRej'](){const _0x1d145a=_0x72f170;throw new Error(_0x1d145a(0x17c));}[_0x72f170(0x297)](){const _0x4f36b1=_0x72f170;return this[_0x4f36b1(0x397)][_0x4f36b1(0x275)](_0xb2d7cf,this['unitID'],this[_0x4f36b1(0x418)],null,[],this[_0x4f36b1(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x3a60b1=_0x72f170;throw new Error(_0x3a60b1(0x140));}};_0x1c5522=_0x2d92ac([_0x3d5183(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x4,_0x5c7b32['Inject'](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x3d5183(0x6,_0x1b3401['IUndoRedoService']),_0x3d5183(0x7,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x29c)])],_0x1c5522);let _0x20573d=class extends _0x39adef{constructor(_0x12d70f,_0x55d86e,_0x31ec75,_0x46a44c,_0x33813f,_0x241b05,_0x346e00,_0x14d53d,_0xe319ae,_0x339a23,_0x2cc9dd,_0x2f2b28,_0x54ab74,_0x5f4eb5){const _0x1b3b8c=_0x72f170;super(_0x12d70f,_0x55d86e,null,_0x31ec75,_0x46a44c,_0x339a23,_0x5f4eb5,_0x241b05,_0x346e00),_0x51e1d8(this,'status',_0x1b3b8c(0x289)),_0x51e1d8(this,_0x1b3b8c(0xc2),null),_0x51e1d8(this,_0x1b3b8c(0x1d0),null),(this['_injector']=_0x33813f,this[_0x1b3b8c(0x23f)]=_0x14d53d,this[_0x1b3b8c(0x1a6)]=_0xe319ae,this[_0x1b3b8c(0x1a2)]=_0x2cc9dd,this[_0x1b3b8c(0x3f8)]=_0x2f2b28,this['_univerInstanceService']=_0x54ab74);}[_0x72f170(0x31d)](_0x3885f6){const _0x53cfd2=_0x72f170;return this[_0x53cfd2(0x324)][_0x53cfd2(0x2c7)](_0x3885f6),this[_0x53cfd2(0x203)](),this;}[_0x72f170(0x2e9)](_0x5089e8){const _0x4cc57a=_0x72f170;if(this['_checkMissing'](_0x5089e8))return this['_clearScheduledTask'](),this[_0x4cc57a(0x397)][_0x4cc57a(0x275)](_0x6d27fb,this[_0x4cc57a(0x17d)],this['type'],null,this[_0x4cc57a(0x324)],null,[_0x5089e8],this['_handler']);try{const _0x3cfeb5=this[_0x4cc57a(0x3f8)][_0x4cc57a(0x132)](_0x5089e8,this[_0x4cc57a(0x324)]);if(_0x30a695[_0x4cc57a(0x2ab)](_0x3cfeb5)){const {c1Prime:_0x2f037d,m2Prime:_0x25a98e}=_0x3cfeb5;this[_0x4cc57a(0x239)](_0x2f037d);const _0x1fe1f2=this[_0x4cc57a(0x397)]['createInstance'](_0x20573d,this[_0x4cc57a(0x17d)],this[_0x4cc57a(0x418)],_0x25a98e,this['_handler']);return this[_0x4cc57a(0x176)](),_0x1fe1f2['_schedule'](this['_scheduleTimestamp']?Math[_0x4cc57a(0x383)](0x0,new Date()[_0x4cc57a(0x368)]()-this[_0x4cc57a(0xc2)]):this[_0x4cc57a(0x3b3)]()),_0x1fe1f2;}throw _0x3cfeb5[_0x4cc57a(0x2e6)];}catch(_0x37d1fc){return this[_0x4cc57a(0x1a6)][_0x4cc57a(0x2e6)](_0x37d1fc),this['_onConflict']();}}[_0x72f170(0x40b)](){const _0x3939b4=_0x72f170;throw new Error(_0x3939b4(0x155));}['onRemoteRej'](){const _0x280541=_0x72f170;throw new Error(_0x280541(0x41d));}[_0x72f170(0x297)](){const _0x54e17f=_0x72f170;return this[_0x54e17f(0x176)](),this[_0x54e17f(0x397)][_0x54e17f(0x275)](_0xb2d7cf,this[_0x54e17f(0x17d)],this[_0x54e17f(0x418)],null,this['_pendingMutations'],this['_handler']);}[_0x72f170(0x361)](){return this;}['_schedule'](_0x55c264){const _0x3e9e0c=_0x72f170;_0x55c264=_0x55c264!=null?_0x55c264:this[_0x3e9e0c(0x3b3)](),this['_scheduleTimestamp']=new Date()[_0x3e9e0c(0x368)](),this[_0x3e9e0c(0x1d0)]=setTimeout(()=>{const _0x339e34=_0x3e9e0c;this['_clearScheduledTask']();let _0x229728=null;switch(this[_0x339e34(0x418)]){case _0x2b3b4b[_0x339e34(0x137)]:{_0x229728=_0x1ef1f3(this['_pendingMutations'],this[_0x339e34(0x17d)],this[_0x339e34(0x278)],this[_0x339e34(0x376)],this['_memberService']);break;}case _0x2b3b4b[_0x339e34(0x2f7)]:{_0x229728=_0x191741(this['_pendingMutations'],this[_0x339e34(0x17d)],this[_0x339e34(0x278)],this[_0x339e34(0x376)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x339e34(0x418)]+'\x20in\x20_schedule.');}const {changeset:_0x4c8f0f,pendingMutations:_0x426877}=_0x229728;this[_0x339e34(0x329)][_0x339e34(0x1c3)](_0x4c8f0f);const _0xf82303=_0x426877[_0x339e34(0xbe)]?this[_0x339e34(0x397)]['createInstance'](_0xcf58a3,this[_0x339e34(0x17d)],this['type'],_0x4c8f0f,_0x426877,this[_0x339e34(0x329)]):this['_injector']['createInstance'](_0x1f25e3,this[_0x339e34(0x17d)],this['type'],_0x4c8f0f,this[_0x339e34(0x329)]);_0xf82303[_0x339e34(0x203)](),this[_0x339e34(0x329)][_0x339e34(0x267)](this,_0xf82303);},_0x55c264);}[_0x72f170(0x3b3)](){var _0x171563;return(_0x171563=this['_configService']['getConfig'](_0x4d10b3))!=null?_0x171563:_0x46ffdc;}[_0x72f170(0x2bf)](){const _0x2109b3=_0x72f170;throw new Error(_0x2109b3(0x3ac));}[_0x72f170(0x176)](){const _0x217640=_0x72f170;this[_0x217640(0x1d0)]!=null&&(clearTimeout(this[_0x217640(0x1d0)]),this[_0x217640(0x1d0)]=null);}[_0x72f170(0xbd)](){const _0x3a00bf=_0x72f170;return this[_0x3a00bf(0x176)](),this[_0x3a00bf(0x397)][_0x3a00bf(0x275)](_0x40fd05,this['unitID'],this[_0x3a00bf(0x418)],null,this[_0x3a00bf(0x324)],this['_handler']);}};_0x20573d=_0x2d92ac([_0x3d5183(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x7,_0x5c7b32['Inject'](_0x3f8747)),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0x9,_0x1b3401['ICommandService']),_0x3d5183(0xa,_0x1b3401[_0x72f170(0x1e4)]),_0x3d5183(0xb,_0x30a695['ITransformService']),_0x3d5183(0xc,_0x1b3401['IUniverInstanceService']),_0x3d5183(0xd,_0x1b3401['IUndoRedoService'])],_0x20573d);let _0x1f25e3=class extends _0x39adef{constructor(_0x16fd73,_0x3769ad,_0x5b3933,_0x18010c,_0x410b8e,_0x5cac88,_0x21eaeb,_0x3ffafa,_0x89fc22,_0x4e9663,_0x186c25){const _0x51f32e=_0x72f170;super(_0x16fd73,_0x3769ad,_0x5b3933,[],_0x18010c,_0x3ffafa,_0x186c25,_0x5cac88,_0x21eaeb),_0x51e1d8(this,_0x51f32e(0x38e),_0x51f32e(0x28a)),(this[_0x51f32e(0x397)]=_0x410b8e,this[_0x51f32e(0x1a6)]=_0x89fc22,this[_0x51f32e(0x3f8)]=_0x4e9663);}['appendMutation'](_0x22ad00){const _0x2632c9=_0x72f170,_0x233415=this[_0x2632c9(0x397)][_0x2632c9(0x275)](_0xcf58a3,this[_0x2632c9(0x17d)],this[_0x2632c9(0x418)],this['_awaitingChangeset'],[_0x22ad00],this['_handler']);return _0x233415['_updateLocalCache'](),_0x233415;}[_0x72f170(0x2e9)](_0x5f4ba4){const _0x545fbb=_0x72f170;if(this[_0x545fbb(0x279)](_0x5f4ba4))return this[_0x545fbb(0x397)]['createInstance'](_0x6d27fb,this[_0x545fbb(0x17d)],this[_0x545fbb(0x418)],this[_0x545fbb(0x234)],[],null,[_0x5f4ba4],this['_handler']);try{const _0x185bee=this['_transformService'][_0x545fbb(0x1e5)]([_0x5f4ba4],[this['_awaitingChangeset']],!0x1);if(_0x30a695[_0x545fbb(0x3e6)](_0x185bee)){const {c1Prime:_0xfdf17e,c2Prime:_0x179014}=_0x185bee;this['_executeRemoteChangeset'](_0xfdf17e[0x0]),_0x179014[0x0][_0x545fbb(0x16b)]=this['_getCurrentRevision']();const _0x1ddd66=this[_0x545fbb(0x397)][_0x545fbb(0x275)](_0x1f25e3,this[_0x545fbb(0x17d)],this[_0x545fbb(0x418)],_0x179014[0x0],this[_0x545fbb(0x329)]);return _0x1ddd66[_0x545fbb(0x203)](),_0x1ddd66;}return this[_0x545fbb(0xbd)]();}catch(_0x1b5b3a){return this['_logService'][_0x545fbb(0x2e6)](_0x1b5b3a),this[_0x545fbb(0xbd)]();}}[_0x72f170(0x40b)](_0xa10605){const _0x3a530d=_0x72f170,_0x1e3e8a=this['_revisionService']['getCurrentRevForDocument'](this[_0x3a530d(0x17d)]);if(_0xa10605['revision']<_0x1e3e8a-0x1)return this;if(this[_0x3a530d(0x279)](_0xa10605))return this['_injector'][_0x3a530d(0x275)](_0x6d27fb,this['unitID'],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x3a530d(0x329)]);this[_0x3a530d(0x349)]();const _0x47efee=this[_0x3a530d(0x397)][_0x3a530d(0x275)](_0x1c5522,this['unitID'],this[_0x3a530d(0x418)],this['_handler']);return _0x47efee[_0x3a530d(0x203)](),_0x47efee;}[_0x72f170(0x1be)](){const _0x3dc891=_0x72f170;return this[_0x3dc891(0xbd)]();}['toggleOffline'](){const _0x39ecad=_0x72f170;return this[_0x39ecad(0x397)][_0x39ecad(0x275)](_0xb2d7cf,this[_0x39ecad(0x17d)],this[_0x39ecad(0x418)],this['_awaitingChangeset'],[],this[_0x39ecad(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x567ad0=_0x72f170;this[_0x567ad0(0x329)][_0x567ad0(0x1c3)](this['_awaitingChangeset']);}['_onConflict'](){const _0x1d1eca=_0x72f170;return this[_0x1d1eca(0x397)][_0x1d1eca(0x275)](_0x40fd05,this['unitID'],this[_0x1d1eca(0x418)],this[_0x1d1eca(0x234)],[],this[_0x1d1eca(0x329)]);}};_0x1f25e3=_0x2d92ac([_0x3d5183(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x7,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0x9,_0x30a695['ITransformService']),_0x3d5183(0xa,_0x1b3401['IUndoRedoService'])],_0x1f25e3);let _0xcf58a3=class extends _0x39adef{constructor(_0x146bf6,_0x599135,_0x65f35,_0x3e7de7,_0x47da92,_0x2f3eb2,_0x34b7e2,_0x3280f9,_0x42a1b5,_0x1af030,_0xcf0ac5,_0x87f7f8){const _0x47d76c=_0x72f170;super(_0x146bf6,_0x599135,_0x65f35,_0x3e7de7,_0x47da92,_0x42a1b5,_0x87f7f8,_0x34b7e2,_0x3280f9),_0x51e1d8(this,'status',_0x47d76c(0x2a5)),(this['_injector']=_0x2f3eb2,this['_logService']=_0x1af030,this[_0x47d76c(0x3f8)]=_0xcf0ac5);}[_0x72f170(0x31d)](_0x2f794b){const _0x163ec9=_0x72f170;return this['_pendingMutations'][_0x163ec9(0x2c7)](_0x2f794b),this;}['onRemoteChangeset'](_0x4cc668){const _0x37bdce=_0x72f170;if(this[_0x37bdce(0x279)](_0x4cc668))return this['_injector']['createInstance'](_0x6d27fb,this[_0x37bdce(0x17d)],this[_0x37bdce(0x418)],this[_0x37bdce(0x234)],this[_0x37bdce(0x324)],null,[_0x4cc668],this[_0x37bdce(0x329)]);try{const _0xa40576=this['_transformService'][_0x37bdce(0x1e5)]([_0x4cc668],[this[_0x37bdce(0x234)]],!0x1);if(_0x30a695[_0x37bdce(0x3e6)](_0xa40576)){const {c1Prime:_0x6c141c,c2Prime:_0x26fca3}=_0xa40576,_0x23d085=this[_0x37bdce(0x3f8)][_0x37bdce(0x132)](_0x6c141c[0x0],this[_0x37bdce(0x324)]);if(_0x30a695['isTransformMutationsWithChangesetSuccess'](_0x23d085)){const {c1Prime:_0x36a98f,m2Prime:_0x2ab8fd}=_0x23d085;return this[_0x37bdce(0x239)](_0x36a98f),_0x26fca3[0x0][_0x37bdce(0x16b)]=this[_0x37bdce(0x1b6)](),this[_0x37bdce(0x397)][_0x37bdce(0x275)](_0xcf58a3,this['unitID'],this[_0x37bdce(0x418)],_0x26fca3[0x0],_0x2ab8fd,this[_0x37bdce(0x329)]);}throw _0x23d085[_0x37bdce(0x2e6)];}throw _0xa40576['error'];}catch(_0x1146b7){return this[_0x37bdce(0x1a6)]['error'](_0x1146b7),this[_0x37bdce(0xbd)]();}}['onRemoteAck'](_0x5791de){const _0xf71190=_0x72f170;if(this['_checkMissing'](_0x5791de))return this[_0xf71190(0x397)][_0xf71190(0x275)](_0x6d27fb,this[_0xf71190(0x17d)],this[_0xf71190(0x418)],null,this[_0xf71190(0x324)],this[_0xf71190(0x234)],[],this[_0xf71190(0x329)]);this[_0xf71190(0x349)]();const _0x18ca09=this['_injector'][_0xf71190(0x275)](_0x20573d,this[_0xf71190(0x17d)],this['type'],this['_pendingMutations'],this[_0xf71190(0x329)]);return _0x18ca09[_0xf71190(0x3d2)](),_0x18ca09[_0xf71190(0x203)](),_0x18ca09;}['onRemoteRej'](){const _0x2eedb0=_0x72f170;return this[_0x2eedb0(0xbd)]();}[_0x72f170(0x297)](){const _0x4774ea=_0x72f170;return this[_0x4774ea(0x397)][_0x4774ea(0x275)](_0xb2d7cf,this[_0x4774ea(0x17d)],this[_0x4774ea(0x418)],this['_awaitingChangeset'],this[_0x4774ea(0x324)],this[_0x4774ea(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x5c808b=_0x72f170;this['_handler'][_0x5c808b(0x1c3)](this[_0x5c808b(0x234)]);}[_0x72f170(0xbd)](){const _0x2b83a5=_0x72f170;return this[_0x2b83a5(0x397)][_0x2b83a5(0x275)](_0x40fd05,this[_0x2b83a5(0x17d)],this[_0x2b83a5(0x418)],null,this['_pendingMutations'],this['_handler']);}};_0xcf58a3=_0x2d92ac([_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x6,_0x5c7b32['Inject'](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x7,_0x5c7b32['Inject'](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x9,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0xa,_0x30a695[_0x72f170(0x2dc)]),_0x3d5183(0xb,_0x1b3401[_0x72f170(0x3f5)])],_0xcf58a3);let _0x40fd05=class extends _0x39adef{constructor(_0x3de21c,_0x24d5ba,_0x13a103,_0xa528c4,_0x379f56,_0x4461ab,_0x17fc73,_0x2c3ca1,_0x588632,_0x5e7036,_0x278426,_0x370688){const _0x543c99=_0x72f170;super(_0x3de21c,_0x24d5ba,_0x13a103,_0xa528c4,_0x379f56,_0x17fc73,_0x2c3ca1,_0x5e7036,_0x588632),_0x51e1d8(this,_0x543c99(0x38e),_0x543c99(0x319)),(this[_0x543c99(0x34e)]=_0x4461ab,this['_localeService']=_0x278426,this['_notificationService']=_0x370688,this[_0x543c99(0x1fb)](),this['_clearLocalCache'](),this[_0x543c99(0x10e)]());}[_0x72f170(0x31d)](){return this;}[_0x72f170(0x2e9)](){return this;}[_0x72f170(0x40b)](){return this;}[_0x72f170(0x1be)](){return this;}[_0x72f170(0x297)](){return this;}[_0x72f170(0x361)](){return this;}[_0x72f170(0x2bf)](){const _0x377304=_0x72f170;throw new Error(_0x377304(0x390));}[_0x72f170(0x29b)](){const _0x47cd9a=_0x72f170;this['_localCacheService'][_0x47cd9a(0x1a7)](this[_0x47cd9a(0x17d)],this['type'],null,[]);}['_showConflictNotification'](){const _0x1fb0ab=_0x72f170;this['_notificationService'][_0x1fb0ab(0x338)]({'title':this['_localeService']['t'](_0x1fb0ab(0x38a)),'content':this[_0x1fb0ab(0x17e)]['t'](_0x1fb0ab(0xfa)),'type':_0x1fb0ab(0x2e6),'duration':0x0});}[_0x72f170(0x10e)](){const _0x238370=_0x72f170;this['_univerPermissionService']['setEditable'](this[_0x238370(0x17d)],!0x1);}};_0x40fd05=_0x2d92ac([_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x29e)])),_0x3d5183(0x6,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x7,_0x1b3401[_0x72f170(0x3f5)]),_0x3d5183(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x588091['LocalCacheService'])),_0x3d5183(0x9,_0x5c7b32['Inject'](_0x30a695['RevisionService'])),_0x3d5183(0xa,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x3d5183(0xb,_0x47170c[_0x72f170(0x20a)])],_0x40fd05);let _0xb2d7cf=class extends _0x39adef{constructor(_0x5e1586,_0x29663f,_0x306f3b,_0xfb13f3,_0x259ec9,_0x5ac1d9,_0x1d97a6,_0x4c7278,_0x502dd1,_0x2efa39){const _0xb4b272=_0x72f170;super(_0x5e1586,_0x29663f,_0x306f3b,_0xfb13f3,_0x259ec9,_0x502dd1,_0x2efa39,_0x1d97a6,_0x4c7278),_0x51e1d8(this,_0xb4b272(0x38e),_0xb4b272(0x2a7)),this[_0xb4b272(0x397)]=_0x5ac1d9;}[_0x72f170(0x31d)](_0x177f24){const _0x119e6=_0x72f170;return this[_0x119e6(0x324)][_0x119e6(0x2c7)](_0x177f24),this['_updateLocalCache'](),this;}[_0x72f170(0x2e9)](_0x3a7a2e){const _0x157c49=_0x72f170;throw new Error(_0x157c49(0x42a));}[_0x72f170(0x40b)](){const _0x4bf2a7=_0x72f170;throw new Error(_0x4bf2a7(0x3f6));}[_0x72f170(0x1be)](){const _0x51a9f9=_0x72f170;throw new Error(_0x51a9f9(0x360));}[_0x72f170(0x297)](){return this;}[_0x72f170(0x361)](){const _0x1d3993=_0x72f170,{_injector:_0x117377,_pendingMutations:_0x391b5c,_awaitingChangeset:_0x1e80b8,unitID:_0x1d2fb6,_handler:_0x54cc8f,type:_0x25e1cf}=this,_0x144aee=_0x534446(_0x117377,_0x1d2fb6,_0x25e1cf,_0x1e80b8,_0x391b5c,_0x54cc8f);return _0x144aee instanceof _0x20573d?_0x144aee[_0x1d3993(0x3d2)]():(_0x144aee instanceof _0xcf58a3||_0x144aee instanceof _0x1f25e3)&&_0x144aee[_0x1d3993(0x2bf)](),_0x144aee;}[_0x72f170(0x2bf)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0xb2d7cf=_0x2d92ac([_0x3d5183(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x6,_0x5c7b32['Inject'](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x3d5183(0x8,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0x9,_0x1b3401[_0x72f170(0x3f5)])],_0xb2d7cf);let _0x6d27fb=class extends _0x39adef{constructor(_0x3e0020,_0x3b5d0b,_0x449409,_0x73abe4,_0x53079e,_0x240f12,_0x226e53,_0x19ca40,_0x4a72f0,_0x541cd6,_0xb6c0c2,_0x26c717,_0x14d6f5,_0x3eda4d){const _0x113762=_0x72f170;super(_0x3e0020,_0x3b5d0b,_0x449409,_0x73abe4,_0x226e53,_0x26c717,_0x14d6f5,_0x4a72f0,_0x541cd6),_0x51e1d8(this,_0x113762(0x38e),_0x113762(0x1a0)),(this['_acknowledgedAwaitingChangeset']=_0x53079e,this[_0x113762(0x2d6)]=_0x240f12,this[_0x113762(0x397)]=_0x19ca40,this['_logService']=_0xb6c0c2,this[_0x113762(0x3f8)]=_0x3eda4d);}[_0x72f170(0x3e7)](_0x81ddf1){const _0x24feec=_0x72f170;try{const _0x1b1b4a=[..._0x81ddf1,...this[_0x24feec(0x2d6)]],_0x2464d4=[this[_0x24feec(0x234)]||this[_0x24feec(0x1f9)]][_0x24feec(0x40a)](_0x4b0c8f=>!!_0x4b0c8f);let _0x32a775,_0x967f45;if(_0x2464d4[_0x24feec(0xbe)]){const _0x48765c=this[_0x24feec(0x3f8)][_0x24feec(0x1e5)](_0x1b1b4a,_0x2464d4,!0x1);if(!_0x30a695['isTransformChangesetsSuccess'](_0x48765c))throw _0x48765c[_0x24feec(0x2e6)];_0x32a775=_0x48765c[_0x24feec(0xf1)],_0x967f45=_0x48765c['c2Prime'];}else _0x32a775=_0x1b1b4a,_0x967f45=[];let _0xdd09d3=this[_0x24feec(0x324)];_0x32a775[_0x24feec(0x3bf)](_0x436bb1=>{const _0x2799ef=_0x24feec;let _0x234175;if(_0xdd09d3[_0x2799ef(0xbe)]){const _0x4c9cbb=this[_0x2799ef(0x3f8)][_0x2799ef(0x132)](_0x436bb1,_0xdd09d3);if(!_0x30a695['isTransformMutationsWithChangesetSuccess'](_0x4c9cbb))throw _0x4c9cbb['error'];_0x234175=_0x4c9cbb[_0x2799ef(0xf1)],_0xdd09d3=_0x4c9cbb[_0x2799ef(0x268)];}else _0x234175=_0x436bb1;this[_0x2799ef(0x239)](_0x234175);}),this[_0x24feec(0x1f9)]&&this[_0x24feec(0x349)](),this['_awaitingChangeset']&&_0x967f45['length']&&(_0x967f45[0x0]['baseRev']=this[_0x24feec(0x1b6)]());let _0x48d612;if(this[_0x24feec(0x234)]&&_0xdd09d3[_0x24feec(0xbe)]!==0x0)_0x48d612=this[_0x24feec(0x397)][_0x24feec(0x275)](_0xcf58a3,this[_0x24feec(0x17d)],this[_0x24feec(0x418)],_0x967f45[0x0],_0xdd09d3,this['_handler']);else{if(this[_0x24feec(0x234)]&&_0xdd09d3[_0x24feec(0xbe)]===0x0)_0x967f45[0x0][_0x24feec(0x16b)]=this[_0x24feec(0x1b6)](),_0x48d612=this['_injector'][_0x24feec(0x275)](_0x1f25e3,this['unitID'],this['type'],_0x967f45[0x0],this[_0x24feec(0x329)]);else{if(_0xdd09d3[_0x24feec(0xbe)]!==0x0){const _0x25e412=this[_0x24feec(0x397)][_0x24feec(0x275)](_0x20573d,this['unitID'],this[_0x24feec(0x418)],_0xdd09d3,this['_handler']);_0x25e412[_0x24feec(0x3d2)](),_0x48d612=_0x25e412;}else _0x48d612=this[_0x24feec(0x397)]['createInstance'](_0x1c5522,this[_0x24feec(0x17d)],this[_0x24feec(0x418)],this[_0x24feec(0x329)]);}}return _0x48d612[_0x24feec(0x203)](),_0x48d612;}catch(_0x351f7b){return this[_0x24feec(0x1a6)][_0x24feec(0x2e6)](_0x24feec(0x429),'failed\x20to\x20apply\x20missed\x20changesets!',_0x351f7b),this['_injector'][_0x24feec(0x275)](_0x40fd05,this[_0x24feec(0x17d)],this[_0x24feec(0x418)],this[_0x24feec(0x234)],this[_0x24feec(0x324)],this[_0x24feec(0x329)]);}}[_0x72f170(0x2bf)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x72f170(0x31d)](_0x197e86){const _0x308688=_0x72f170;return this[_0x308688(0x324)]['push'](_0x197e86),this;}[_0x72f170(0x2e9)](_0x2a0ee6){const _0x2a0e72=_0x72f170;return this[_0x2a0e72(0x2d6)]['push'](_0x2a0ee6),this;}[_0x72f170(0x40b)](_0x1aa5f1){const _0x180e2c=_0x72f170;if(this[_0x180e2c(0x234)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0x180e2c(0x234)]=null,this;throw new Error(_0x180e2c(0x399));}[_0x72f170(0x1be)](){return this['_onConflict']();}['toggleOffline'](){const _0x4fc46d=_0x72f170;return this[_0x4fc46d(0x397)]['createInstance'](_0xb2d7cf,this['unitID'],this[_0x4fc46d(0x418)],this[_0x4fc46d(0x234)],this[_0x4fc46d(0x324)],this[_0x4fc46d(0x329)]);}[_0x72f170(0x361)](){return this;}[_0x72f170(0xbd)](){const _0x234c8c=_0x72f170;return this[_0x234c8c(0x397)]['createInstance'](_0x40fd05,this['unitID'],this[_0x234c8c(0x418)],this[_0x234c8c(0x234)],this[_0x234c8c(0x324)],this[_0x234c8c(0x329)]);}};_0x6d27fb=_0x2d92ac([_0x3d5183(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x3d5183(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x3d5183(0x9,_0x5c7b32['Inject'](_0x588091['LocalCacheService'])),_0x3d5183(0xa,_0x1b3401[_0x72f170(0x29c)]),_0x3d5183(0xb,_0x1b3401[_0x72f170(0x2cb)]),_0x3d5183(0xc,_0x1b3401['IUndoRedoService']),_0x3d5183(0xd,_0x30a695[_0x72f170(0x2dc)])],_0x6d27fb);function _0x534446(_0x2ed83a,_0x2252c2,_0x2aa654,_0x4c4e99,_0x42b8b5,_0x4b64b6){const _0x4a3523=_0x72f170;return _0x4c4e99&&_0x42b8b5['length']?_0x2ed83a[_0x4a3523(0x275)](_0xcf58a3,_0x2252c2,_0x2aa654,_0x4c4e99,_0x42b8b5,_0x4b64b6):_0x4c4e99?_0x2ed83a[_0x4a3523(0x275)](_0x1f25e3,_0x2252c2,_0x2aa654,_0x4c4e99,_0x4b64b6):_0x42b8b5[_0x4a3523(0xbe)]?_0x2ed83a[_0x4a3523(0x275)](_0x20573d,_0x2252c2,_0x2aa654,_0x42b8b5,_0x4b64b6):_0x2ed83a[_0x4a3523(0x275)](_0x1c5522,_0x2252c2,_0x2aa654,_0x4b64b6);}var _0x16deca=(_0x1091ac,_0x3fd7e6,_0x50fe27,_0x1a4afb)=>{const _0x2e3f2a=_0x72f170;for(var _0x279e3d=_0x3fd7e6,_0x2d14ab=_0x1091ac[_0x2e3f2a(0xbe)]-0x1,_0x54e97a;_0x2d14ab>=0x0;_0x2d14ab--)(_0x54e97a=_0x1091ac[_0x2d14ab])&&(_0x279e3d=_0x54e97a(_0x279e3d)||_0x279e3d);return _0x279e3d;},_0x2783dd=(_0x44bff3,_0x19e110)=>(_0x2350a4,_0xbcbca0)=>_0x19e110(_0x2350a4,_0xbcbca0,_0x44bff3);_0x588091['CollaborationController']=class extends _0x1b3401['RxDisposable']{constructor(_0x2eeb8d,_0x52890a,_0x3b5d8e){const _0x4ec36f=_0x72f170;super(),_0x51e1d8(this,_0x4ec36f(0x380),new Map()),_0x51e1d8(this,_0x4ec36f(0x2c2),new _0x414952[(_0x4ec36f(0x38b))]()),(this[_0x4ec36f(0x397)]=_0x2eeb8d,this['_collabSessionService']=_0x52890a,this[_0x4ec36f(0x278)]=_0x3b5d8e,this[_0x4ec36f(0x3b0)]());}[_0x72f170(0x10c)](){const _0x15f08d=_0x72f170;super['dispose'](),this[_0x15f08d(0x380)]['forEach'](_0x47bc6d=>_0x47bc6d[_0x15f08d(0x10c)]()),this[_0x15f08d(0x380)][_0x15f08d(0x315)]();}['getCollabEntity'](_0x4fea86){const _0x47e7e1=_0x72f170;var _0x452de9;return(_0x452de9=this['_entities'][_0x47e7e1(0x25f)](_0x4fea86))!=null?_0x452de9:null;}[_0x72f170(0x33d)](_0x351c83){const _0x2ba0e4=_0x72f170,_0x499bd9=this['getCollabEntity'](_0x351c83);return _0x499bd9?_0x414952['of'](_0x499bd9):this[_0x2ba0e4(0x2c2)]['pipe'](_0x3151c5[_0x2ba0e4(0x40a)](_0x1b6410=>_0x1b6410['unitID']===_0x351c83));}['_init'](){const _0x2d9d54=_0x72f170;this[_0x2d9d54(0x278)]['getTypeOfUnitAdded$'](_0x1b3401[_0x2d9d54(0x22d)][_0x2d9d54(0x137)])[_0x2d9d54(0x2ca)](_0x414952[_0x2d9d54(0x1b8)](this['dispose$']),_0x3151c5[_0x2d9d54(0xbb)](0x10))[_0x2d9d54(0x112)](async _0x14af1d=>{const _0x5879d8=_0x2d9d54,_0x3c27e1=_0x14af1d[_0x5879d8(0x33c)](),_0x3040aa=await this['_startCollaboration'](_0x3c27e1,_0x2b3b4b[_0x5879d8(0x137)]);this[_0x5879d8(0x380)][_0x5879d8(0x346)](_0x3c27e1,_0x3040aa);}),this[_0x2d9d54(0x278)][_0x2d9d54(0x291)](_0x1b3401[_0x2d9d54(0x22d)]['UNIVER_DOC'])['pipe'](_0x414952[_0x2d9d54(0x1b8)](this['dispose$']),_0x3151c5['delay'](0x10))['pipe'](_0x3151c5[_0x2d9d54(0x40a)](_0x5caa84=>!_0x5caa84[_0x2d9d54(0x33c)]()[_0x2d9d54(0x117)]('__')))[_0x2d9d54(0x112)](async _0x5471ea=>{const _0x274b16=_0x2d9d54,_0x3ca157=_0x5471ea[_0x274b16(0x33c)](),_0x4a0611=await this[_0x274b16(0x183)](_0x3ca157,_0x2b3b4b[_0x274b16(0x2f7)]);this[_0x274b16(0x380)][_0x274b16(0x346)](_0x3ca157,_0x4a0611);}),_0x414952[_0x2d9d54(0x2f3)](this['_univerInstanceService'][_0x2d9d54(0x27b)](_0x1b3401[_0x2d9d54(0x22d)]['UNIVER_SHEET']),this[_0x2d9d54(0x278)][_0x2d9d54(0x27b)](_0x1b3401[_0x2d9d54(0x22d)][_0x2d9d54(0x2f7)]))['pipe'](_0x414952[_0x2d9d54(0x1b8)](this[_0x2d9d54(0x3d9)]))['subscribe'](_0x4e25a7=>{const _0x450def=_0x2d9d54,_0x272b7c=_0x4e25a7[_0x450def(0x33c)](),_0xee9a65=this[_0x450def(0x380)]['get'](_0x272b7c);_0xee9a65&&(_0xee9a65[_0x450def(0x10c)](),this['_entities']['delete'](_0x272b7c));});}async[_0x72f170(0x183)](_0x54389e,_0x198a21){const _0x5c3871=_0x72f170,_0x222d03=await this['_collabSessionService']['requireSession'](_0x54389e),_0x7f49eb=this[_0x5c3871(0x397)]['createInstance'](this[_0x5c3871(0x3d1)](_0x198a21),_0x54389e,_0x198a21,_0x222d03);return await _0x7f49eb[_0x5c3871(0x16f)](),this[_0x5c3871(0x2c2)][_0x5c3871(0x3d6)](_0x7f49eb),_0x7f49eb;}[_0x72f170(0x3d1)](_0x3760f7){const _0x5f53aa=_0x72f170;switch(_0x3760f7){case _0x2b3b4b[_0x5f53aa(0x2f7)]:return _0x132eb1;case _0x2b3b4b[_0x5f53aa(0x137)]:return _0x519d58;default:throw new Error(_0x5f53aa(0x32d)+_0x3760f7);}}},_0x588091[_0x72f170(0x295)]=_0x16deca([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401['LifecycleStages']['Starting'],_0x588091[_0x72f170(0x295)]),_0x2783dd(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x2783dd(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x1d6)])),_0x2783dd(0x2,_0x1b3401[_0x72f170(0x335)])],_0x588091[_0x72f170(0x295)]);let _0x1c81d4=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x11f585,_0x3c1bff,_0x58f767,_0x560686,_0x16d060,_0x2e1941,_0x638466,_0x3e34f3,_0x3a898c,_0x358757,_0x45360b,_0x2172fa,_0x5d5204){const _0x5821ea=_0x72f170;super(),_0x51e1d8(this,_0x5821ea(0x24b),new _0x414952[(_0x5821ea(0x1e6))](null)),_0x51e1d8(this,_0x5821ea(0x283),this[_0x5821ea(0x24b)][_0x5821ea(0x348)]()),_0x51e1d8(this,_0x5821ea(0x3b6)),_0x51e1d8(this,_0x5821ea(0x25c),!0x1),_0x51e1d8(this,_0x5821ea(0x2ed),this[_0x5821ea(0x283)][_0x5821ea(0x2ca)](_0x3151c5[_0x5821ea(0x250)](_0x4c8aa5=>_0x4c8aa5?_0x4c8aa5[_0x5821ea(0x38e)]:_0x3a3bdf[_0x5821ea(0x255)]),_0x3151c5['shareReplay'](0x1))),_0x51e1d8(this,'_transitionLocked',!0x1),_0x51e1d8(this,'_remoteChangesetQueue',[]),(this[_0x5821ea(0x17d)]=_0x11f585,this[_0x5821ea(0x314)]=_0x3c1bff,this[_0x5821ea(0x374)]=_0x58f767,this[_0x5821ea(0x397)]=_0x560686,this[_0x5821ea(0x339)]=_0x16d060,this[_0x5821ea(0x34e)]=_0x2e1941,this[_0x5821ea(0x1d5)]=_0x638466,this[_0x5821ea(0x17e)]=_0x3e34f3,this[_0x5821ea(0x376)]=_0x3a898c,this[_0x5821ea(0x1a6)]=_0x358757,this[_0x5821ea(0x219)]=_0x45360b,this['_messageService']=_0x2172fa,this[_0x5821ea(0x39a)]=_0x5d5204);}get['state'](){return this['_state'];}async[_0x72f170(0x16f)](){const _0x42f025=_0x72f170;if(this[_0x42f025(0x3d8)])throw new Error(_0x42f025(0x14a));await this[_0x42f025(0x3b0)]();}[_0x72f170(0x3fe)](){const _0x3245e6=_0x72f170;return this[_0x3245e6(0x25c)]=!0x0,_0x1b3401['toDisposable'](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x72f170(0x2c0)](_0x77274f){const _0x2a8fab=_0x72f170;this[_0x2a8fab(0x3b6)]=_0x77274f,this['_state$'][_0x2a8fab(0x3d6)](_0x77274f);}async['_init'](){const _0x5bbfc3=_0x72f170;var _0xb6fe43;return this[_0x5bbfc3(0x2c0)](await this[_0x5bbfc3(0x35e)]()),this[_0x5bbfc3(0x39a)]&&((_0xb6fe43=this[_0x5bbfc3(0x39a)])==null||_0xb6fe43['editingUnit'](this[_0x5bbfc3(0x17d)]),this[_0x5bbfc3(0xf8)](_0x1b3401[_0x5bbfc3(0x2ac)](this[_0x5bbfc3(0x39a)]['getUnitStatus$'](this[_0x5bbfc3(0x17d)])[_0x5bbfc3(0x112)](_0x40eb41=>{const _0x2f9bf4=_0x5bbfc3;this['_logService']['debug']('[CollaborationEntity]',_0x2f9bf4(0x2c4),_0x40eb41),_0x40eb41===_0x215e18[_0x2f9bf4(0x1e0)]?(this['_messageService'][_0x2f9bf4(0x338)]({'content':this[_0x2f9bf4(0x17e)]['t'](_0x2f9bf4(0x2e0)),'type':_0x350456[_0x2f9bf4(0x2a4)][_0x2f9bf4(0x347)]}),this[_0x2f9bf4(0x34e)][_0x2f9bf4(0x18c)](this['unitID'],!0x1)):this[_0x2f9bf4(0x34e)][_0x2f9bf4(0x18c)](this['unitID'],!0x0);})))),this[_0x5bbfc3(0xf8)](_0x1b3401['toDisposable'](this['_session'][_0x5bbfc3(0x395)][_0x5bbfc3(0x112)](_0x282a1c=>{const _0x2c6bcd=_0x5bbfc3;_0x282a1c===_0x4457b3[_0x2c6bcd(0x134)]?this[_0x2c6bcd(0x2c6)]():_0x282a1c===_0x4457b3['OFFLINE']&&this[_0x2c6bcd(0x198)]();}))),this[_0x5bbfc3(0xf8)](_0x1b3401[_0x5bbfc3(0x2ac)](this[_0x5bbfc3(0x374)][_0x5bbfc3(0x3ba)]['subscribe'](_0x10e1a3=>{const _0x20dded=_0x5bbfc3;try{const _0x5a9508=_0x10e1a3[_0x20dded(0xe8)];_0x5a9508===_0x30a695[_0x20dded(0x107)]['NEW_CHANGESETS']?this['_onRemoteChangeset'](_0x30a695[_0x20dded(0x156)](_0x10e1a3[_0x20dded(0x304)])):_0x5a9508===_0x30a695[_0x20dded(0x107)]['CHANGESET_ACK']?this[_0x20dded(0x36d)](_0x10e1a3[_0x20dded(0x304)]):_0x5a9508===_0x30a695[_0x20dded(0x107)][_0x20dded(0x3f9)]?this['_onRemoteRejected']():_0x5a9508===_0x30a695[_0x20dded(0x107)]['PSEUDO_FETCH_MISSING_RESULT']&&this[_0x20dded(0x163)](_0x10e1a3[_0x20dded(0x304)][_0x20dded(0x18d)]['map'](_0xa747d1=>_0x30a695[_0x20dded(0x156)](_0xa747d1)));}catch(_0x20640c){throw console['error']('Error\x20on\x20receiving\x20event',_0x20640c),_0x20640c;}}))),this[_0x5bbfc3(0x3b6)];}[_0x72f170(0x337)](){const _0x831a0f=_0x72f170;this[_0x831a0f(0x238)]=!0x1;}['_lockTransition'](){const _0x9cba95=_0x72f170;if(this[_0x9cba95(0x238)])throw new Error(_0x9cba95(0x3b9));this[_0x9cba95(0x238)]=!0x0;}['_onLocalMutation'](_0x40aa6a){const _0x5b6c38=_0x72f170;this['_lockTransition'](),this[_0x5b6c38(0x2c0)](this['_state'][_0x5b6c38(0x31d)](_0x40aa6a)),this[_0x5b6c38(0x337)]();}[_0x72f170(0x2f0)](_0x4e5f47){const _0x1ca754=_0x72f170;if(!(_0x4e5f47['revision']<=this[_0x1ca754(0x376)][_0x1ca754(0x35d)](this[_0x1ca754(0x17d)]))){if(this[_0x1ca754(0x25c)]){this[_0x1ca754(0x20f)]['push'](_0x4e5f47);return;}this[_0x1ca754(0xc7)](_0x4e5f47);}}[_0x72f170(0x398)](){const _0x403e14=_0x72f170;this[_0x403e14(0x20f)]['forEach'](_0x59c1bf=>this[_0x403e14(0xc7)](_0x59c1bf)),this['_remoteChangesetQueue']=[];}[_0x72f170(0xc7)](_0x3280c8){const _0x52fdc9=_0x72f170,_0x56cad5=this[_0x52fdc9(0x1d5)][_0x52fdc9(0x2e3)][_0x52fdc9(0xf6)](this[_0x52fdc9(0x1d5)]['interceptor'][_0x52fdc9(0x2c9)]()[_0x52fdc9(0x131)])(_0x3280c8[_0x52fdc9(0x228)],null)||_0x3280c8[_0x52fdc9(0x228)],_0x30e59d={..._0x3280c8,'mutations':_0x56cad5};this[_0x52fdc9(0x191)](),this[_0x52fdc9(0x2c0)](this[_0x52fdc9(0x3b6)][_0x52fdc9(0x2e9)](_0x30e59d)),this[_0x52fdc9(0x337)]();}['_onRemoteACK'](_0xf30ebd){const _0x1c21d1=_0x72f170;this[_0x1c21d1(0x191)](),this['_updateState'](this[_0x1c21d1(0x3b6)]['onRemoteAck'](_0xf30ebd)),this[_0x1c21d1(0x337)]();}[_0x72f170(0x3f1)](){const _0x5a4757=_0x72f170;this['_lockTransition'](),this[_0x5a4757(0x2c0)](this[_0x5a4757(0x3b6)][_0x5a4757(0x1be)]()),this[_0x5a4757(0x337)]();}[_0x72f170(0x163)](_0x4a3ff3){const _0x575dbc=_0x72f170;if(!(this['_state']instanceof _0x6d27fb))throw new TypeError(_0x575dbc(0x1b0));const _0x525419=_0x4a3ff3[_0x575dbc(0x250)](_0x5800e0=>{const _0xdbf39a=_0x575dbc,_0x4b4109=this[_0xdbf39a(0x1d5)][_0xdbf39a(0x2e3)]['fetchThroughInterceptors'](this[_0xdbf39a(0x1d5)][_0xdbf39a(0x2e3)][_0xdbf39a(0x2c9)]()[_0xdbf39a(0x131)])(_0x5800e0[_0xdbf39a(0x228)],null)||_0x5800e0[_0xdbf39a(0x228)];return{..._0x5800e0,'mutations':_0x4b4109};});this[_0x575dbc(0x191)](),this[_0x575dbc(0x2c0)](this[_0x575dbc(0x3b6)]['onMissedChangesetFetched'](_0x525419)),this['_unlockTransition']();}[_0x72f170(0x198)](){const _0x3ba7c7=_0x72f170;this[_0x3ba7c7(0x191)](),this[_0x3ba7c7(0x2c0)](this[_0x3ba7c7(0x3b6)][_0x3ba7c7(0x297)]()),this[_0x3ba7c7(0x337)]();}[_0x72f170(0x2c6)](){const _0x26586f=_0x72f170;this[_0x26586f(0x191)](),this[_0x26586f(0x2c0)](this['_state'][_0x26586f(0x361)]()),this[_0x26586f(0x337)]();}async[_0x72f170(0x35e)](){return new Promise(_0x15d34d=>{const _0x2cf08e=_0x4733;this[_0x2cf08e(0x374)][_0x2cf08e(0x395)][_0x2cf08e(0x2ca)](_0x3151c5[_0x2cf08e(0x375)](0x1))[_0x2cf08e(0x112)](async _0x434819=>{const _0xd19b5a=_0x2cf08e;_0x15d34d(await this[_0xd19b5a(0x123)](_0x434819===_0x4457b3['ONLINE']));});});}['_createHandler'](){const _0x2e54b3=_0x72f170,_0x23f10a=this[_0x2e54b3(0x17d)];return{'onStateChange':(_0x5a70fd,_0x532349)=>{const _0x305716=_0x2e54b3;if(_0x5a70fd!==this[_0x305716(0x3b6)])throw new Error(_0x305716(0x33a)+_0x5a70fd['status']+'\x0aAfter:\x20'+_0x532349[_0x305716(0x38e)]+_0x305716(0x249)+this[_0x305716(0x3b6)][_0x305716(0x38e)]);this[_0x305716(0x2c0)](_0x532349);},'onSendChangeset':_0x2d5cb3=>{const _0x3a7eb7=_0x2e54b3,_0x4e6bf9={'eventID':_0x30a695['CollaborationEvent'][_0x3a7eb7(0x1f5)],'data':{'unitID':_0x2d5cb3[_0x3a7eb7(0x17d)],'unitType':this[_0x3a7eb7(0x314)],'changeset':_0x2d5cb3,'memberID':this[_0x3a7eb7(0x374)]['getMemberID']()}};this['_session']['send'](_0x4e6bf9,this[_0x3a7eb7(0x17d)]);},'onMissingChangesets':({from:_0xd43dd0,to:_0x542241})=>{const _0xa3901d=_0x2e54b3;this[_0xa3901d(0x1a6)][_0xa3901d(0xf2)](_0xa3901d(0x200),_0xa3901d(0x367)+_0xd43dd0+_0xa3901d(0x31a)+_0x542241);const _0x3ed9bb={'eventID':_0x30a695[_0xa3901d(0x107)][_0xa3901d(0x146)],'data':{'unitID':_0x23f10a,'unitType':this[_0xa3901d(0x314)],'from':_0xd43dd0,'to':_0x542241}};this[_0xa3901d(0x374)][_0xa3901d(0x3c4)](_0x3ed9bb,this['unitID']);}};}async[_0x72f170(0x123)](_0x1ded3f){const _0x9cb2e1=_0x72f170;var _0x52077c,_0x36661c;const _0x3c5d11=await this[_0x9cb2e1(0x339)][_0x9cb2e1(0x3df)](this['unitID']),_0x1d8259=(_0x52077c=_0x3c5d11==null?void 0x0:_0x3c5d11[_0x9cb2e1(0x228)])!=null?_0x52077c:[],_0x318747=(_0x36661c=_0x3c5d11==null?void 0x0:_0x3c5d11[_0x9cb2e1(0x3c6)])!=null?_0x36661c:null,_0x563a9c=this[_0x9cb2e1(0x17d)];try{this[_0x9cb2e1(0x2ec)](_0x318747,_0x1d8259);}catch(_0x9f288b){this[_0x9cb2e1(0x1a6)][_0x9cb2e1(0x2e6)](_0x9f288b);}const _0x25b065=this['_createHandler']();if(_0x1ded3f){const _0x3d22ab=_0x534446(this['_injector'],_0x563a9c,this[_0x9cb2e1(0x314)],_0x318747,_0x1d8259,_0x25b065);return _0x3d22ab instanceof _0x20573d?_0x3d22ab[_0x9cb2e1(0x3d2)]():(_0x3d22ab instanceof _0xcf58a3||_0x3d22ab instanceof _0x1f25e3)&&_0x3d22ab[_0x9cb2e1(0x2bf)](),_0x3d22ab;}return this[_0x9cb2e1(0x397)][_0x9cb2e1(0x275)](_0xb2d7cf,_0x563a9c,this[_0x9cb2e1(0x314)],_0x318747,_0x1d8259,_0x25b065);}[_0x72f170(0x2ec)](_0x468107,_0x39b670){const _0x3a6194=_0x72f170;var _0x359d3d,_0x2bdee7;const _0x2da650=this[_0x3a6194(0x1d5)]['interceptor']['fetchThroughInterceptors'](this[_0x3a6194(0x1d5)][_0x3a6194(0x2e3)][_0x3a6194(0x2c9)]()[_0x3a6194(0x131)]);(_0x359d3d=_0x2da650((_0x468107==null?void 0x0:_0x468107['mutations'])||[],null))==null||_0x359d3d[_0x3a6194(0x3bf)](_0x521204=>this[_0x3a6194(0x219)][_0x3a6194(0xcb)](_0x521204['id'],_0x521204[_0x3a6194(0x197)])),(_0x2bdee7=_0x2da650(_0x39b670||[],null))==null||_0x2bdee7[_0x3a6194(0x3bf)](_0x176da6=>this['_commandService'][_0x3a6194(0xcb)](_0x176da6['id'],_0x176da6[_0x3a6194(0x197)]));}};_0x1c81d4=_0x16deca([_0x2783dd(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x2783dd(0x4,_0x5c7b32['Inject'](_0x588091[_0x72f170(0x3a7)])),_0x2783dd(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x29e)])),_0x2783dd(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['CompressMutationService'])),_0x2783dd(0x7,_0x5c7b32['Inject'](_0x1b3401[_0x72f170(0x330)])),_0x2783dd(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x2783dd(0x9,_0x1b3401[_0x72f170(0x29c)]),_0x2783dd(0xa,_0x1b3401[_0x72f170(0x2cb)]),_0x2783dd(0xb,_0x47170c['IMessageService']),_0x2783dd(0xc,_0x5c7b32[_0x72f170(0x12a)](_0x345c46))],_0x1c81d4);let _0x132eb1=class extends _0x1c81d4{constructor(_0x23b967,_0x4f0de9,_0x4c4c76,_0x1848cd,_0x2cc60a,_0x23397f,_0x2449e7,_0x3c4710,_0x4bd863,_0x515f42,_0x20d3a1,_0x34ffb6,_0xa0a8ed,_0x3d3028,_0x3ae5dc,_0x4d868f,_0x423b57){const _0x1f25f0=_0x72f170;super(_0x23b967,_0x4f0de9,_0x4c4c76,_0x1848cd,_0x2cc60a,_0x23397f,_0x2449e7,_0x3c4710,_0x4bd863,_0x3d3028,_0x3ae5dc,_0x4d868f,_0x423b57),this['unitID']=_0x23b967,this[_0x1f25f0(0x418)]=_0x4f0de9,this[_0x1f25f0(0x3bb)]=_0x4c4c76,this[_0x1f25f0(0x293)]=_0x515f42,this[_0x1f25f0(0x415)]=_0x20d3a1,this[_0x1f25f0(0x1c1)]=_0x34ffb6,this['_docSyncEditingCollabCursorService']=_0xa0a8ed;}['_createHandler'](){const _0x4418bf=_0x72f170,_0x3343e9=super[_0x4418bf(0x2c1)]();return _0x3343e9[_0x4418bf(0x36a)]=_0x46788e=>this[_0x4418bf(0x415)]['transformIMECache'](_0x46788e),_0x3343e9[_0x4418bf(0x16d)]=_0x5bfd55=>this[_0x4418bf(0x1c1)][_0x4418bf(0x196)](_0x5bfd55),_0x3343e9[_0x4418bf(0x2f1)]=_0x5e8a63=>this[_0x4418bf(0x2c5)][_0x4418bf(0x3b2)](_0x5e8a63),_0x3343e9[_0x4418bf(0x19d)]=_0x215744=>this[_0x4418bf(0x415)][_0x4418bf(0x1d8)](_0x215744),_0x3343e9;}async['_init'](){const _0x28ac8c=_0x72f170,_0x1b5d23=await super[_0x28ac8c(0x3b0)]();return this[_0x28ac8c(0x293)]['docStateChange$'][_0x28ac8c(0x2ca)](_0x414952[_0x28ac8c(0x1b8)](this[_0x28ac8c(0x3d9)]))[_0x28ac8c(0x112)](_0x33de78=>{const _0x336016=_0x28ac8c;if(_0x33de78==null)return;const {unitId:_0xa4656b,redoState:_0x420173,commandId:_0x4be807}=_0x33de78;if(_0xa4656b!==this[_0x336016(0x17d)])return;const _0xdc3e86={'id':_0x4be807,'type':_0x1b3401['CommandType']['MUTATION'],'params':{'unitId':_0xa4656b,'actions':_0x420173[_0x336016(0x301)],'textRanges':null}};this['_onLocalMutation'](_0xdc3e86);}),_0x1b5d23;}};_0x132eb1=_0x16deca([_0x2783dd(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x2783dd(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x2783dd(0x5,_0x5c7b32['Inject'](_0x1b3401[_0x72f170(0x29e)])),_0x2783dd(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['CompressMutationService'])),_0x2783dd(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401['LocaleService'])),_0x2783dd(0x8,_0x5c7b32['Inject'](_0x30a695['RevisionService'])),_0x2783dd(0x9,_0x5c7b32['Inject'](_0x54860c[_0x72f170(0x288)])),_0x2783dd(0xa,_0x5c7b32[_0x72f170(0x3c0)](_0x1a629c)),_0x2783dd(0xb,_0x5c7b32[_0x72f170(0x3c0)](_0x1505a5)),_0x2783dd(0xc,_0x5c7b32[_0x72f170(0x3c0)](_0x21c0b5)),_0x2783dd(0xd,_0x1b3401[_0x72f170(0x29c)]),_0x2783dd(0xe,_0x1b3401[_0x72f170(0x2cb)]),_0x2783dd(0xf,_0x47170c[_0x72f170(0x2e2)]),_0x2783dd(0x10,_0x5c7b32[_0x72f170(0x12a)](_0x345c46))],_0x132eb1);let _0x519d58=class extends _0x1c81d4{constructor(_0x465b4f,_0x20f6e7,_0x3a8866,_0x60c313,_0x40b58c,_0x4138cd,_0x2cb17e,_0x5d0b1c,_0x345357,_0x19ca5d,_0x4cafd8,_0x415343,_0x4d44c4,_0x120bf0){const _0x2fab22=_0x72f170;super(_0x465b4f,_0x20f6e7,_0x3a8866,_0x60c313,_0x40b58c,_0x4138cd,_0x2cb17e,_0x5d0b1c,_0x345357,_0x4cafd8,_0x415343,_0x4d44c4,_0x120bf0),this[_0x2fab22(0x17d)]=_0x465b4f,this[_0x2fab22(0x418)]=_0x20f6e7,this[_0x2fab22(0x3bb)]=_0x3a8866,this[_0x2fab22(0x3cb)]=_0x19ca5d;}['_createHandler'](){const _0xcbbdfc=_0x72f170,_0x38d101=super[_0xcbbdfc(0x2c1)]();return _0x38d101[_0xcbbdfc(0x16d)]=_0x3af499=>this[_0xcbbdfc(0x3cb)][_0xcbbdfc(0x196)](_0x3af499),_0x38d101;}async['_init'](){const _0x387d0f=_0x72f170,_0xa9f817=await super[_0x387d0f(0x3b0)]();return this[_0x387d0f(0xf8)](this[_0x387d0f(0x219)][_0x387d0f(0x21a)]((_0x558efc,_0x5e3dc6)=>{const _0x283254=_0x387d0f;if(_0x558efc[_0x283254(0x418)]!==_0x1b3401['CommandType']['MUTATION']||_0x5e3dc6!=null&&_0x5e3dc6[_0x283254(0x1f3)]||_0x5e3dc6!=null&&_0x5e3dc6['onlyLocal'])return;const _0x3a583f=_0x558efc['params'];if((_0x3a583f==null?void 0x0:_0x3a583f[_0x283254(0x350)])!==this[_0x283254(0x17d)])return;const _0x5ab0a9=_0x558efc,_0x45a33d=this[_0x283254(0x1d5)][_0x283254(0x2e3)]['fetchThroughInterceptors'](this[_0x283254(0x1d5)][_0x283254(0x2e3)][_0x283254(0x2c9)]()[_0x283254(0x135)])([_0x5ab0a9],null)||[_0x5ab0a9];this[_0x283254(0x273)](_0x45a33d[0x0]);})),_0xa9f817;}};_0x519d58=_0x16deca([_0x2783dd(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x2783dd(0x4,_0x5c7b32['Inject'](_0x588091['LocalCacheService'])),_0x2783dd(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x29e)])),_0x2783dd(0x6,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['CompressMutationService'])),_0x2783dd(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)])),_0x2783dd(0x8,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695[_0x72f170(0x31f)])),_0x2783dd(0x9,_0x5c7b32[_0x72f170(0x3c0)](_0x211af0)),_0x2783dd(0xa,_0x1b3401[_0x72f170(0x29c)]),_0x2783dd(0xb,_0x1b3401['ICommandService']),_0x2783dd(0xc,_0x47170c[_0x72f170(0x2e2)]),_0x2783dd(0xd,_0x5c7b32[_0x72f170(0x12a)](_0x345c46))],_0x519d58);const _0x17ff65=['purple300',_0x72f170(0x240),_0x72f170(0x1de),_0x72f170(0x27f),_0x72f170(0x42c),_0x72f170(0x2dd)];class _0x239e9b extends _0x1b3401['Disposable']{constructor(){const _0x103ade=_0x72f170;super(...arguments),_0x51e1d8(this,_0x103ade(0x124),new Map()),_0x51e1d8(this,_0x103ade(0x41e),0x0);}[_0x72f170(0x426)](_0x3548ae){const _0x41ed1c=_0x72f170;if(this['_assignedColors']['has'](_0x3548ae))return this[_0x41ed1c(0x124)][_0x41ed1c(0x25f)](_0x3548ae);const _0x529259=_0x17ff65[this['_colorIndex']];return this[_0x41ed1c(0x41e)]=(this[_0x41ed1c(0x41e)]+0x1)%_0x17ff65[_0x41ed1c(0xbe)],this[_0x41ed1c(0x124)][_0x41ed1c(0x346)](_0x3548ae,_0x529259),_0x529259;}}var _0x525fc4=(_0x5ec4be,_0x1b7c5a,_0x3ce6de,_0x5337e5)=>{const _0x5dcaa0=_0x72f170;for(var _0x572434=_0x1b7c5a,_0x3c13bf=_0x5ec4be[_0x5dcaa0(0xbe)]-0x1,_0x374040;_0x3c13bf>=0x0;_0x3c13bf--)(_0x374040=_0x5ec4be[_0x3c13bf])&&(_0x572434=_0x374040(_0x572434)||_0x572434);return _0x572434;},_0xaa0c89=(_0x30e3f0,_0x56e42c)=>(_0x47ee9a,_0x361805)=>_0x56e42c(_0x47ee9a,_0x361805,_0x30e3f0);const _0x41c75f=0x12c,_0x11c469=0x64,_0x861e22=()=>{let _0x5304f8=[],_0x2bbb40=!0x1;return _0x20bfb5=>{const _0x267b3b=_0x4733;_0x5304f8[_0x267b3b(0x2c7)](_0x20bfb5),_0x2bbb40||(_0x2bbb40=!0x0,setTimeout(()=>{const _0x382fdc=_0x267b3b;_0x5304f8[_0x382fdc(0x3bf)](_0x3ef0a6=>_0x3ef0a6()),_0x5304f8=[],_0x2bbb40=!0x1;}));};};let _0x5ad150=class extends _0x1b3401['RxDisposable']{constructor(_0x9c897e,_0x3ea48e,_0x6b8d,_0x10dbcf,_0x38dd56,_0x4d31ab,_0x9f3175,_0xf9739c){const _0x45f79f=_0x72f170;super(),_0x51e1d8(this,_0x45f79f(0x277),!0x1),_0x51e1d8(this,_0x45f79f(0x3b0),!0x1),_0x51e1d8(this,'_cursorInfo$',new _0x414952[(_0x45f79f(0x1e6))](new Map())),_0x51e1d8(this,_0x45f79f(0x2a8),this['_cursorInfo$'][_0x45f79f(0x348)]()),_0x51e1d8(this,'_roomMembers$',new _0x414952[(_0x45f79f(0x1e6))]([])),_0x51e1d8(this,_0x45f79f(0x126),this[_0x45f79f(0x30c)][_0x45f79f(0x2ca)](_0x414952[_0x45f79f(0x206)](_0x41c75f))),_0x51e1d8(this,_0x45f79f(0x3c8),_0x2c0384((_0x2ddd53,_0x174443)=>{const _0x74f492=_0x45f79f,_0x157b3f={'eventID':_0x30a695[_0x74f492(0x107)][_0x74f492(0x27d)],'data':{'unitID':this[_0x74f492(0x17d)],'memberID':this[_0x74f492(0x374)][_0x74f492(0x1c4)](),'selection':_0x446c2d[_0x74f492(0x287)](_0x2ddd53,_0x174443[_0x74f492(0x23e)])}};this[_0x74f492(0x374)][_0x74f492(0x3c4)](_0x157b3f,this[_0x74f492(0x17d)]);},_0x11c469)),(this[_0x45f79f(0x17d)]=_0x9c897e,this[_0x45f79f(0x374)]=_0x3ea48e,this['_injector']=_0x6b8d,this[_0x45f79f(0x26f)]=_0x10dbcf,this[_0x45f79f(0x23f)]=_0x38dd56,this[_0x45f79f(0x278)]=_0x4d31ab,this[_0x45f79f(0x219)]=_0x9f3175,this['_refRangeService']=_0xf9739c);}get[_0x72f170(0x181)](){const _0x4602a0=_0x72f170;return this['_cursorInfo$'][_0x4602a0(0x1e1)]();}get[_0x72f170(0x1a9)](){const _0x39286e=_0x72f170;return this[_0x39286e(0x30c)][_0x39286e(0x1e1)]();}[_0x72f170(0x10c)](){const _0x46be19=_0x72f170;super['dispose'](),this['_cursorInfo$'][_0x46be19(0x3d6)](new Map()),this[_0x46be19(0x1af)][_0x46be19(0x27e)](),this[_0x46be19(0x30c)][_0x46be19(0x3d6)]([]),this[_0x46be19(0x30c)][_0x46be19(0x27e)]();}[_0x72f170(0x16f)](){const _0x472581=_0x72f170;this[_0x472581(0x3b0)]||(this[_0x472581(0x3b0)]=!0x0,this[_0x472581(0x374)][_0x472581(0x395)][_0x472581(0x2ca)](_0x414952['takeUntil'](this[_0x472581(0x3d9)]))[_0x472581(0x112)](_0x3eafb1=>{const _0x53d9d3=_0x472581;_0x3eafb1===_0x4457b3[_0x53d9d3(0x134)]?this['_toggleOnline']():this[_0x53d9d3(0x198)]();}),this[_0x472581(0x374)]['event$'][_0x472581(0x2ca)](_0x414952[_0x472581(0x1b8)](this[_0x472581(0x3d9)]))[_0x472581(0x112)](_0x5c7599=>{const _0x4e0045=_0x472581,_0x1b43d1=_0x5c7599[_0x4e0045(0xe8)];_0x1b43d1===_0x30a695[_0x4e0045(0x107)]['UPDATE_CURSOR']&&this[_0x4e0045(0x432)](_0x5c7599),_0x1b43d1===_0x30a695[_0x4e0045(0x107)][_0x4e0045(0x147)]&&this[_0x4e0045(0x3be)](_0x5c7599);}),this[_0x472581(0x30e)](),this[_0x472581(0xf8)](this[_0x472581(0x219)]['onCommandExecuted'](_0x47dca6=>{const _0x143a86=_0x472581;if(this[_0x143a86(0x277)]&&_0x47dca6['id']===_0x51f05a[_0x143a86(0x167)]['id']&&_0x47dca6[_0x143a86(0x197)][_0x143a86(0x350)]===this[_0x143a86(0x17d)]){const _0x5a37d6=_0x47dca6[_0x143a86(0x197)];this['_updateLocalCursor'](_0x5a37d6[_0x143a86(0x281)],_0x5a37d6[_0x143a86(0x33f)][0x0]);}})));}[_0x72f170(0x432)](_0x2b000e){const _0x1466fc=_0x72f170;var _0x52dae3,_0x2ba282;const {memberID:_0x32e055,selection:_0x262916}=_0x2b000e[_0x1466fc(0x304)],{sheetName:_0x5f04c3,range:_0x4f1e95}=_0x446c2d[_0x1466fc(0x2d2)](_0x262916),_0xd69443={'name':(_0x2ba282=(_0x52dae3=this['_memberService'][_0x1466fc(0x21d)](this[_0x1466fc(0x17d)],_0x32e055))==null?void 0x0:_0x52dae3[_0x1466fc(0x403)])!=null?_0x2ba282:_0x1466fc(0x2db),'range':this['_getMergeRange'](_0x5f04c3,_0x4f1e95),'sheetID':_0x5f04c3,'color':this[_0x1466fc(0x26f)][_0x1466fc(0x426)](_0x32e055),'selection':_0x262916},_0x41b193=this[_0x1466fc(0x181)];_0x41b193[_0x1466fc(0x346)](_0x32e055,_0xd69443),this[_0x1466fc(0x1af)][_0x1466fc(0x3d6)](_0x41b193);}['_onCursorDelete'](_0xe4724a){const _0x3464df=_0x72f170,{memberID:_0x5d99d1}=_0xe4724a['data'],_0x28c2ba=this['cursorInfo'];_0x28c2ba[_0x3464df(0x16c)](_0x5d99d1),this[_0x3464df(0x1af)][_0x3464df(0x3d6)](_0x28c2ba);}[_0x72f170(0x2eb)](_0x165789,_0x242194){const _0x26007b=_0x72f170;var _0xb8b8d2,_0x1e8c60;const _0x13f82d=(_0x1e8c60=(_0xb8b8d2=this[_0x26007b(0x278)][_0x26007b(0x220)](this['unitID']))==null?void 0x0:_0xb8b8d2[_0x26007b(0x271)](_0x165789))==null?void 0x0:_0x1e8c60[_0x26007b(0x37c)]();return(_0x13f82d==null?void 0x0:_0x13f82d['find'](_0x14cad2=>_0x1b3401[_0x26007b(0x28c)][_0x26007b(0x19a)](_0x14cad2,_0x242194)))||_0x242194;}['_onRefRangeChange'](){const _0x13f683=_0x72f170,_0x317f45=new _0x1b3401[(_0x13f683(0x227))](),_0x1c507e=_0x861e22(),_0x4b5b5d=()=>{const _0x4c82d9=_0x13f683;_0x317f45[_0x4c82d9(0x10c)]();const _0x11e5f1=(_0x4e9740,_0x5dfb8a,_0x243d9f,_0x44b407)=>{const _0x1c8492=_0x4c82d9;let _0x1ddbad=[];switch(_0x4e9740['id']){case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x28e)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x178)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x2af)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x205)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0xf5)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x174)](_0x4e9740,_0x44b407);break;}case _0x51f05a['EffectRefRangId'][_0x1c8492(0xe0)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x1e3)](_0x4e9740,_0x44b407);break;}case _0x51f05a['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1ddbad=_0x51f05a[_0x1c8492(0x322)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x344)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0xd8)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0xe3)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x410)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x28f)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0xc4)](_0x4e9740,_0x44b407);break;}case _0x51f05a[_0x1c8492(0x38f)][_0x1c8492(0x1df)]:{_0x1ddbad=_0x51f05a[_0x1c8492(0x391)](_0x4e9740,_0x44b407);break;}}const _0x5316ef=_0x51f05a[_0x1c8492(0xd4)](_0x1ddbad,_0x44b407),_0x58f147=this[_0x1c8492(0x181)][_0x1c8492(0x25f)](_0x5dfb8a);if(_0x58f147&&_0x5316ef){const _0x3b04a3={..._0x58f147,'range':_0x5316ef};this[_0x1c8492(0x181)]['set'](_0x5dfb8a,_0x3b04a3),_0x1c507e(()=>{const _0x329657=_0x1c8492,_0x24e24b=this[_0x329657(0x3ae)][_0x329657(0xf3)](_0x5316ef,_0x27235c=>(_0x24e24b[_0x329657(0x10c)](),_0x11e5f1(_0x27235c,_0x5dfb8a,_0x243d9f,_0x5316ef)));_0x317f45[_0x329657(0x3c1)](_0x24e24b);});}return{'redos':[],'undos':[]};};this[_0x4c82d9(0x181)][_0x4c82d9(0x3bf)]((_0x4bf7d5,_0x367be9)=>{const _0x2b8b5c=_0x4c82d9,{range:_0x35b3d8,sheetID:_0xb95694}=_0x4bf7d5,_0x5d1b55=this['_refRangeService'][_0x2b8b5c(0xf3)](_0x35b3d8,_0x2010e8=>(_0x5d1b55[_0x2b8b5c(0x10c)](),_0x11e5f1(_0x2010e8,_0x367be9,_0xb95694,_0x35b3d8)));_0x317f45['add'](_0x5d1b55);});};this[_0x13f683(0xf8)](_0x1b3401[_0x13f683(0x2ac)](this['_cursorInfo$'][_0x13f683(0x112)](()=>{_0x4b5b5d();})));}[_0x72f170(0x2c6)](){const _0x2d771e=_0x72f170;var _0x6d3998,_0x48e3f1;if(this[_0x2d771e(0x277)]=!0x0,((_0x6d3998=this[_0x2d771e(0x278)][_0x2d771e(0x378)]())==null?void 0x0:_0x6d3998[_0x2d771e(0x33c)]())!==this['unitID'])return;const _0x5c9256=(_0x48e3f1=this[_0x2d771e(0x397)][_0x2d771e(0x25f)](_0x51f05a[_0x2d771e(0x14d)])[_0x2d771e(0x2f2)]())==null?void 0x0:_0x48e3f1[0x0];_0x5c9256&&this[_0x2d771e(0x3c8)](this['_univerInstanceService'][_0x2d771e(0x3e4)](_0x1b3401[_0x2d771e(0x22d)]['UNIVER_SHEET'])['getActiveSheet']()[_0x2d771e(0x245)](),_0x5c9256);}[_0x72f170(0x198)](){const _0x2f05a3=_0x72f170;this[_0x2f05a3(0x277)]=!0x1;}};_0x5ad150=_0x525fc4([_0xaa0c89(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0xaa0c89(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x239e9b)),_0xaa0c89(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x3f8747)),_0xaa0c89(0x5,_0x1b3401[_0x72f170(0x335)]),_0xaa0c89(0x6,_0x1b3401[_0x72f170(0x2cb)]),_0xaa0c89(0x7,_0x5c7b32[_0x72f170(0x3c0)](_0x51f05a[_0x72f170(0x3ed)]))],_0x5ad150);var _0x1c3db3=(_0x141834,_0x3caf44,_0x114dea,_0x4c2458)=>{const _0x4ad5b5=_0x72f170;for(var _0x39f6da=_0x3caf44,_0x37f069=_0x141834[_0x4ad5b5(0xbe)]-0x1,_0x1843cd;_0x37f069>=0x0;_0x37f069--)(_0x1843cd=_0x141834[_0x37f069])&&(_0x39f6da=_0x1843cd(_0x39f6da)||_0x39f6da);return _0x39f6da;},_0x1db506=(_0x2e71d9,_0xa3e36a)=>(_0x39892c,_0x584f49)=>_0xa3e36a(_0x39892c,_0x584f49,_0x2e71d9);const _0x3f97bc=0x12c,_0xfb1b0=0x64;let _0x1cbd9f=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x4516a9,_0x1001cd,_0x16b8a2,_0x4e5900,_0x2fd287,_0x32bc36,_0x35afa4,_0x623de1,_0x45b665){const _0x8c4351=_0x72f170;super(),_0x51e1d8(this,'_online',!0x1),_0x51e1d8(this,'_init',!0x1),_0x51e1d8(this,_0x8c4351(0x1af),new _0x414952[(_0x8c4351(0x1e6))](new Map())),_0x51e1d8(this,'cursorInfo$',this[_0x8c4351(0x1af)][_0x8c4351(0x348)]()),_0x51e1d8(this,_0x8c4351(0x30c),new _0x414952[(_0x8c4351(0x1e6))]([])),_0x51e1d8(this,_0x8c4351(0x126),this['_roomMembers$'][_0x8c4351(0x2ca)](_0x414952[_0x8c4351(0x206)](_0x3f97bc))),_0x51e1d8(this,_0x8c4351(0x3c8),_0x2c0384(_0x320eaf=>{const _0x38dbb8=_0x8c4351,_0x2eefc0={'eventID':_0x30a695[_0x38dbb8(0x107)][_0x38dbb8(0x27d)],'data':{'unitID':this['unitID'],'memberID':this[_0x38dbb8(0x374)][_0x38dbb8(0x1c4)](),'selection':_0xbfbaaa(_0x320eaf)}};this[_0x38dbb8(0x374)][_0x38dbb8(0x3c4)](_0x2eefc0,this[_0x38dbb8(0x17d)]);},_0xfb1b0)),(this['unitID']=_0x4516a9,this['_session']=_0x1001cd,this[_0x8c4351(0x397)]=_0x16b8a2,this['_colorAssignService']=_0x4e5900,this[_0x8c4351(0x23f)]=_0x2fd287,this[_0x8c4351(0x29f)]=_0x32bc36,this[_0x8c4351(0x3f8)]=_0x35afa4,this[_0x8c4351(0x278)]=_0x623de1,this[_0x8c4351(0x219)]=_0x45b665);}get[_0x72f170(0x181)](){const _0x4832ce=_0x72f170;return this[_0x4832ce(0x1af)]['getValue']();}get['roomMembers'](){const _0x102cff=_0x72f170;return this[_0x102cff(0x30c)]['getValue']();}['dispose'](){const _0x1afb30=_0x72f170;super['dispose'](),this[_0x1afb30(0x1af)][_0x1afb30(0x3d6)](new Map()),this[_0x1afb30(0x1af)][_0x1afb30(0x27e)](),this[_0x1afb30(0x30c)][_0x1afb30(0x3d6)]([]),this[_0x1afb30(0x30c)]['complete']();}[_0x72f170(0x16f)](){const _0x57242a=_0x72f170;this['_init']||(this[_0x57242a(0x3b0)]=!0x0,this['_session'][_0x57242a(0x395)][_0x57242a(0x2ca)](_0x414952[_0x57242a(0x1b8)](this[_0x57242a(0x3d9)]))[_0x57242a(0x112)](_0x19f1d1=>{const _0x3400c8=_0x57242a;_0x19f1d1===_0x4457b3['ONLINE']?this[_0x3400c8(0x2c6)]():this[_0x3400c8(0x198)]();}),this[_0x57242a(0x374)]['event$'][_0x57242a(0x2ca)](_0x414952[_0x57242a(0x1b8)](this[_0x57242a(0x3d9)]))[_0x57242a(0x112)](_0x2ca6e3=>{const _0x22a5c4=_0x57242a,_0x226583=_0x2ca6e3['eventID'];_0x226583===_0x30a695[_0x22a5c4(0x107)][_0x22a5c4(0x27d)]&&this['_onCursorUpdate'](_0x2ca6e3),_0x226583===_0x30a695[_0x22a5c4(0x107)]['USERS_LEAVE']&&this[_0x22a5c4(0x3be)](_0x2ca6e3);}),this['disposeWithMe'](this[_0x57242a(0x219)]['onCommandExecuted'](_0x246ad5=>{const _0x1ca9de=_0x57242a,_0x514356=_0x246ad5[_0x1ca9de(0x197)];_0x514356!=null&&this[_0x1ca9de(0x277)]&&_0x246ad5['id']===_0x54860c['SetTextSelectionsOperation']['id']&&_0x514356[_0x1ca9de(0x350)]===this[_0x1ca9de(0x17d)]&&_0x514356[_0x1ca9de(0x42b)]===!0x1&&this[_0x1ca9de(0x3c8)](_0x514356[_0x1ca9de(0x129)]);})),this[_0x57242a(0x29f)][_0x57242a(0x41f)][_0x57242a(0x2ca)](_0x414952['takeUntil'](this[_0x57242a(0x3d9)]))['subscribe'](_0x165475=>{const _0x43bf8a=_0x57242a;if((_0x165475==null?void 0x0:_0x165475[_0x43bf8a(0x17d)])!==this[_0x43bf8a(0x17d)])return;const _0x34e022={'eventID':_0x30a695['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x165475};this[_0x43bf8a(0x432)](_0x34e022);}),this[_0x57242a(0xf8)](this[_0x57242a(0x219)][_0x57242a(0x21a)](_0xd4f6f9=>{const _0x108240=_0x57242a;if(_0xd4f6f9[_0x108240(0x197)]==null)return;const _0x31cc07=_0xd4f6f9[_0x108240(0x197)];if(_0xd4f6f9['id']!==_0x54860c[_0x108240(0x392)]['id']||_0x31cc07[_0x108240(0x350)]!==this[_0x108240(0x17d)])return;const _0x4ebb2e={'id':_0x108240(0x42f),'params':_0x31cc07},_0xf5fc4f=this['cursorInfo'];for(const [_0x5f57c2,_0x496130]of _0xf5fc4f){const _0x43c8c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x108240(0x17d)],'actions':[],'textRanges':_0x496130[_0x108240(0x129)]}},_0x55aef5=this[_0x108240(0x3f8)]['transformMutation'](_0x4ebb2e,_0x43c8c7,!0x1);if(_0x30a695[_0x108240(0x149)](_0x55aef5))throw _0x55aef5[_0x108240(0x2e6)];_0xf5fc4f[_0x108240(0x346)](_0x5f57c2,{..._0x496130,'ranges':_0x55aef5[_0x108240(0x268)][_0x108240(0x197)][_0x108240(0x113)]});}queueMicrotask(()=>{const _0x49a4bc=_0x108240;this['_cursorInfo$'][_0x49a4bc(0x3d6)](_0xf5fc4f);});})));}['_onCursorUpdate'](_0x53c7ae){const _0x486802=_0x72f170;var _0x552b3c,_0x4cefd6;const {memberID:_0x20eb68,selection:_0x290c9a}=_0x53c7ae['data'],_0x2714f1=_0x9114c9(_0x290c9a),_0x3e60e6=(_0x4cefd6=(_0x552b3c=this['_memberService'][_0x486802(0x21d)](this['unitID'],_0x20eb68))==null?void 0x0:_0x552b3c[_0x486802(0x403)])!=null?_0x4cefd6:_0x486802(0x2db),_0x179c11={'color':this[_0x486802(0x26f)][_0x486802(0x426)](_0x20eb68),'name':_0x3e60e6,'ranges':_0x2714f1},_0xa266c=this[_0x486802(0x181)];_0xa266c[_0x486802(0x346)](_0x20eb68,_0x179c11),this[_0x486802(0x1af)][_0x486802(0x3d6)](_0xa266c);}['_onCursorDelete'](_0x5316ed){const _0x29ab12=_0x72f170,{memberID:_0x231b37}=_0x5316ed[_0x29ab12(0x304)],_0x575bc2=this[_0x29ab12(0x181)];_0x575bc2[_0x29ab12(0x16c)](_0x231b37),this[_0x29ab12(0x1af)][_0x29ab12(0x3d6)](_0x575bc2);}[_0x72f170(0x2c6)](){const _0x594898=_0x72f170;var _0x366372;if(this[_0x594898(0x277)]=!0x0,((_0x366372=this[_0x594898(0x278)][_0x594898(0x378)]())==null?void 0x0:_0x366372['getUnitId']())!==this[_0x594898(0x17d)])return;const _0x29e523=this[_0x594898(0x397)]['get'](_0x54860c['TextSelectionManagerService'])[_0x594898(0x2f2)](),_0x3217d8=_0x29e523==null?void 0x0:_0x29e523[_0x594898(0x250)](_0x54860c['serializeTextRange']);Array['isArray'](_0x3217d8)&&_0x3217d8[_0x594898(0xbe)]>0x0&&this[_0x594898(0x3c8)](_0x3217d8);}[_0x72f170(0x198)](){this['_online']=!0x1;}};_0x1cbd9f=_0x1c3db3([_0x1db506(0x2,_0x5c7b32['Inject'](_0x5c7b32[_0x72f170(0x425)])),_0x1db506(0x3,_0x5c7b32['Inject'](_0x239e9b)),_0x1db506(0x4,_0x5c7b32['Inject'](_0x3f8747)),_0x1db506(0x5,_0x5c7b32[_0x72f170(0x3c0)](_0x21c0b5)),_0x1db506(0x6,_0x30a695[_0x72f170(0x2dc)]),_0x1db506(0x7,_0x1b3401['IUniverInstanceService']),_0x1db506(0x8,_0x1b3401['ICommandService'])],_0x1cbd9f);var _0x2949c4=(_0x266e6c,_0x3c405a,_0x522c35,_0x1674a5)=>{for(var _0x41c09e=_0x3c405a,_0x3e9c14=_0x266e6c['length']-0x1,_0xf87458;_0x3e9c14>=0x0;_0x3e9c14--)(_0xf87458=_0x266e6c[_0x3e9c14])&&(_0x41c09e=_0xf87458(_0x41c09e)||_0x41c09e);return _0x41c09e;},_0x5edc2f=(_0xf97196,_0x22ccac)=>(_0x26ca7c,_0x4ab9a1)=>_0x22ccac(_0x26ca7c,_0x4ab9a1,_0xf97196);let _0x16c4ba=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x3ebb09,_0x5052bc,_0x5f27ac){const _0x22b93c=_0x72f170;super(),_0x51e1d8(this,_0x22b93c(0x380),new Map()),_0x51e1d8(this,'_entityInit$',new _0x414952[(_0x22b93c(0x38b))]()),(this[_0x22b93c(0x278)]=_0x3ebb09,this[_0x22b93c(0x397)]=_0x5052bc,this[_0x22b93c(0x11f)]=_0x5f27ac,this[_0x22b93c(0x3b0)]());}[_0x72f170(0x10c)](){const _0x248ab6=_0x72f170;super['dispose'](),this[_0x248ab6(0x2c2)][_0x248ab6(0x27e)](),this['_entities'][_0x248ab6(0x3bf)](_0x233256=>_0x233256[_0x248ab6(0x10c)]());}[_0x72f170(0x23b)](_0x311a2e){const _0xf753a3=_0x72f170;return this[_0xf753a3(0x380)][_0xf753a3(0x2de)](_0x311a2e)?this[_0xf753a3(0x380)][_0xf753a3(0x25f)](_0x311a2e)[_0xf753a3(0x2a8)]:this[_0xf753a3(0x2c2)][_0xf753a3(0x2ca)](_0x414952[_0xf753a3(0x40a)](_0x3cb136=>_0x3cb136[_0xf753a3(0x17d)]===_0x311a2e),_0x414952[_0xf753a3(0x207)](_0x12a632=>_0x12a632['cursorInfo$']));}[_0x72f170(0x3b0)](){const _0x25c3f0=_0x72f170;this[_0x25c3f0(0x278)][_0x25c3f0(0x291)](_0x1b3401[_0x25c3f0(0x22d)]['UNIVER_SHEET'])[_0x25c3f0(0x2ca)](_0x414952[_0x25c3f0(0x1b8)](this[_0x25c3f0(0x3d9)]))['subscribe'](async _0x53a6f2=>{const _0x433a50=_0x25c3f0,_0x8990dc=_0x53a6f2[_0x433a50(0x33c)](),_0x134201=await this[_0x433a50(0xd0)](_0x8990dc);this[_0x433a50(0x2c2)]['next'](_0x134201),this['_entities'][_0x433a50(0x346)](_0x8990dc,_0x134201);}),this[_0x25c3f0(0x278)][_0x25c3f0(0x291)](_0x1b3401[_0x25c3f0(0x22d)][_0x25c3f0(0x2f7)])[_0x25c3f0(0x2ca)](_0x414952[_0x25c3f0(0x1b8)](this[_0x25c3f0(0x3d9)]))['pipe'](_0x414952[_0x25c3f0(0x40a)](_0x1c0f0f=>!_0x1c0f0f[_0x25c3f0(0x33c)]()[_0x25c3f0(0x117)]('__')))[_0x25c3f0(0x112)](async _0x42ae75=>{const _0x259f19=_0x25c3f0,_0x227fb8=_0x42ae75[_0x259f19(0x33c)](),_0x20df97=await this['_startDocCollabCursor'](_0x227fb8);this[_0x259f19(0x2c2)][_0x259f19(0x3d6)](_0x20df97),this[_0x259f19(0x380)][_0x259f19(0x346)](_0x227fb8,_0x20df97);}),_0x414952['merge'](this[_0x25c3f0(0x278)][_0x25c3f0(0x27b)](_0x1b3401[_0x25c3f0(0x22d)][_0x25c3f0(0x2f7)]),this[_0x25c3f0(0x278)][_0x25c3f0(0x27b)](_0x1b3401[_0x25c3f0(0x22d)]['UNIVER_SHEET']))[_0x25c3f0(0x2ca)](_0x414952[_0x25c3f0(0x1b8)](this[_0x25c3f0(0x3d9)]))[_0x25c3f0(0x112)](_0x7fc65e=>{const _0x44f4b3=_0x25c3f0,_0xfeb755=_0x7fc65e[_0x44f4b3(0x33c)](),_0x4b15f1=this[_0x44f4b3(0x380)]['get'](_0xfeb755);_0x4b15f1&&(_0x4b15f1[_0x44f4b3(0x10c)](),this[_0x44f4b3(0x380)][_0x44f4b3(0x16c)](_0xfeb755));});}async[_0x72f170(0xd0)](_0x5ae2eb){const _0x5ecaf0=_0x72f170,_0x3da0bd=await this['_collabSessionService'][_0x5ecaf0(0x336)](_0x5ae2eb),_0x225bf2=this[_0x5ecaf0(0x397)]['createInstance'](_0x5ad150,_0x5ae2eb,_0x3da0bd);return _0x225bf2[_0x5ecaf0(0x16f)](),_0x225bf2;}async[_0x72f170(0xd5)](_0x3d934a){const _0x104a2f=_0x72f170,_0x122f93=await this[_0x104a2f(0x11f)][_0x104a2f(0x336)](_0x3d934a),_0x461c87=this['_injector']['createInstance'](_0x1cbd9f,_0x3d934a,_0x122f93);return _0x461c87[_0x104a2f(0x16f)](),_0x461c87;}};_0x16c4ba=_0x2949c4([_0x1b3401['OnLifecycle'](_0x1b3401[_0x72f170(0x404)][_0x72f170(0x3f7)],_0x16c4ba),_0x5edc2f(0x0,_0x1b3401[_0x72f170(0x335)]),_0x5edc2f(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32[_0x72f170(0x425)])),_0x5edc2f(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x1d6)]))],_0x16c4ba);const _0xe76e1b=0x14,_0x14aa67=0xc8,_0x5740f6=0x4,_0x3d1383=0x5;function _0x2577c2(_0x34da36,_0x1e9ef6){const _0x2613b8=_0x72f170;let {radius:_0x488fa9,width:_0x53978e,height:_0x201bbc}=_0x1e9ef6;_0x488fa9=_0x488fa9!=null?_0x488fa9:0x0,_0x53978e=_0x53978e!=null?_0x53978e:0x1e,_0x201bbc=_0x201bbc!=null?_0x201bbc:0x1e;let _0x5e4302=0x0,_0x51b5a6=0x0,_0x25039c=0x0;_0x5e4302=_0x51b5a6=_0x25039c=Math[_0x2613b8(0x2a6)](_0x488fa9,_0x53978e/0x2,_0x201bbc/0x2),_0x34da36['beginPath'](),_0x34da36['moveTo'](_0x5e4302,0x0),_0x34da36[_0x2613b8(0x2d0)](_0x53978e-_0x51b5a6,0x0),_0x34da36[_0x2613b8(0x30a)](_0x53978e-_0x51b5a6,_0x51b5a6,_0x51b5a6,Math['PI']*0x3/0x2,0x0,!0x1),_0x34da36[_0x2613b8(0x2d0)](_0x53978e,_0x201bbc-_0x25039c),_0x34da36[_0x2613b8(0x30a)](_0x53978e-_0x25039c,_0x201bbc-_0x25039c,_0x25039c,0x0,Math['PI']/0x2,!0x1),_0x34da36[_0x2613b8(0x2d0)](0x0,_0x201bbc),_0x34da36[_0x2613b8(0x2d0)](0x0,_0x5e4302),_0x34da36[_0x2613b8(0x30a)](_0x5e4302,_0x5e4302,_0x5e4302,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34da36[_0x2613b8(0x2bc)](),_0x1e9ef6['fill']&&(_0x34da36['save'](),_0x34da36[_0x2613b8(0x27c)]=_0x1e9ef6[_0x2613b8(0x159)],_0x1e9ef6['fillRule']==='evenodd'?_0x34da36[_0x2613b8(0x159)](_0x2613b8(0x212)):_0x34da36[_0x2613b8(0x159)](),_0x34da36['restore']());}class _0x2d908c extends _0x24a900['Shape']{constructor(_0x45275e,_0x5363dd){const _0x399b46=_0x72f170;super(_0x45275e,_0x5363dd),_0x51e1d8(this,_0x399b46(0x21e)),_0x51e1d8(this,_0x399b46(0x2b5)),(this[_0x399b46(0x21e)]=_0x5363dd==null?void 0x0:_0x5363dd[_0x399b46(0x21e)],this['text']=_0x5363dd==null?void 0x0:_0x5363dd['text']);}static[_0x72f170(0x303)](_0x672154,_0x5475ff){const _0x5468f3=_0x72f170,{text:_0x2bbf0d,color:_0x94eacb}=_0x5475ff;_0x672154[_0x5468f3(0x396)](),_0x672154[_0x5468f3(0xee)]=_0x5468f3(0x1cb);const _0x22d39c=_0x672154['measureText'](_0x2bbf0d)[_0x5468f3(0x1d7)],_0x192043=Math[_0x5468f3(0x2a6)](_0x22d39c+0x2*_0x5740f6,_0x14aa67);_0x2577c2(_0x672154,{'height':_0xe76e1b,'radius':0x4,'width':_0x192043,'fill':_0x94eacb,'evented':!0x1}),_0x672154['fillStyle']='#FFF';const _0xcb094f=_0x5740f6,_0x472c28=_0xe76e1b-_0x3d1383,_0x9d75af=_0x14aa67-0x2*_0x5740f6;if(_0x22d39c>_0x9d75af){let _0xedd78b='',_0x4069a0=0x0;for(const _0x12049a of _0x2bbf0d){const _0x573c0b=_0x672154[_0x5468f3(0x359)](_0x12049a)[_0x5468f3(0x1d7)];if(_0x4069a0+_0x573c0b<=_0x9d75af-_0x672154[_0x5468f3(0x359)](_0x5468f3(0x28b))[_0x5468f3(0x1d7)])_0xedd78b+=_0x12049a,_0x4069a0+=_0x573c0b;else{_0xedd78b+=_0x5468f3(0x28b);break;}}_0x672154['fillText'](_0xedd78b,_0xcb094f,_0x472c28);}else _0x672154[_0x5468f3(0x40d)](_0x2bbf0d,_0xcb094f,_0x472c28);_0x672154[_0x5468f3(0x1bb)]();}[_0x72f170(0x372)](_0x2f69de){const _0x1cddeb=_0x72f170;_0x2d908c[_0x1cddeb(0x303)](_0x2f69de,this);}}const _0x4084be=0x1,_0x136d31=1.5;class _0x38c714 extends _0x24a900[_0x72f170(0x381)]{constructor(_0x4c6e84,_0x38cae4){const _0x10a462=_0x72f170;super(_0x4c6e84,_0x38cae4),_0x51e1d8(this,_0x10a462(0x357)),_0x51e1d8(this,_0x10a462(0x2ce),!0x1),_0x51e1d8(this,'_range'),_0x51e1d8(this,_0x10a462(0x3dd),''),_0x51e1d8(this,_0x10a462(0x103),'top'),(_0x38cae4&&this[_0x10a462(0xfc)](_0x38cae4),this['onPointerEnterObserver'][_0x10a462(0x3c1)](()=>this[_0x10a462(0xfc)]({'hovered':!0x0})),this[_0x10a462(0xc1)]['add'](()=>this[_0x10a462(0xfc)]({'hovered':!0x1})));}[_0x72f170(0xfc)](_0x2d1117){const _0x5b510d=_0x72f170;var _0x2a2988,_0x281609,_0x546f26,_0x405567,_0x3881d0;this['_color']=(_0x2a2988=_0x2d1117[_0x5b510d(0x21e)])!=null?_0x2a2988:this[_0x5b510d(0x357)],this[_0x5b510d(0x2ce)]=(_0x281609=_0x2d1117[_0x5b510d(0x2a0)])!=null?_0x281609:this[_0x5b510d(0x2ce)],this[_0x5b510d(0x248)]=(_0x546f26=_0x2d1117[_0x5b510d(0x23e)])!=null?_0x546f26:this[_0x5b510d(0x248)],this[_0x5b510d(0x3dd)]=(_0x405567=_0x2d1117['name'])!=null?_0x405567:this[_0x5b510d(0x3dd)],this[_0x5b510d(0x103)]=(_0x3881d0=_0x2d1117['labelPosition'])!=null?_0x3881d0:this['_labelPosition'],this[_0x5b510d(0x185)]({'width':_0x2d1117[_0x5b510d(0x1d7)],'height':_0x2d1117[_0x5b510d(0x168)]});}[_0x72f170(0x42d)](_0x4c5dcd){const _0x296069=_0x72f170,{row:_0x161b4f,column:_0x127f81}=_0x4c5dcd;if(_0x161b4f>=this[_0x296069(0x248)]['startRow']&&_0x161b4f<=this['_range']['endRow']&&_0x127f81>=this[_0x296069(0x248)]['startColumn']&&_0x127f81<=this[_0x296069(0x248)]['endColumn']){this[_0x296069(0xfc)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x72f170(0x236)](_0xfb6f5b){return!0x1;}[_0x72f170(0x372)](_0x52b52c){const _0x2b4c55=_0x72f170;_0x24a900[_0x2b4c55(0x2ee)][_0x2b4c55(0x303)](_0x52b52c,{'width':this['width'],'height':this[_0x2b4c55(0x168)],'strokeWidth':_0x136d31,'stroke':this[_0x2b4c55(0x357)],'evented':!0x1}),this['_hovered']&&(_0x52b52c[_0x2b4c55(0x396)](),_0x52b52c[_0x2b4c55(0x3a5)](0x1,0x0,0x0,0x1,this['width'],this[_0x2b4c55(0x103)]===_0x2b4c55(0x1bd)?0x0:-_0xe76e1b),_0x2d908c[_0x2b4c55(0x303)](_0x52b52c,{'text':this[_0x2b4c55(0x3dd)],'color':this['_color']}),_0x52b52c[_0x2b4c55(0x1bb)]());}}var _0xe46c5f=(_0x79ed88,_0x9ea320,_0x9eeabc,_0x47e825)=>{const _0x2f181e=_0x72f170;for(var _0x47237d=_0x9ea320,_0x240a60=_0x79ed88[_0x2f181e(0xbe)]-0x1,_0x51de72;_0x240a60>=0x0;_0x240a60--)(_0x51de72=_0x79ed88[_0x240a60])&&(_0x47237d=_0x51de72(_0x47237d)||_0x47237d);return _0x47237d;},_0x648114=(_0x25c2be,_0x3ef1f1)=>(_0x3ad0da,_0xc07d21)=>_0x3ef1f1(_0x3ad0da,_0xc07d21,_0x25c2be);let _0x26bb41=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0xebff5e,_0x4a5968,_0x5045a6,_0x4df501,_0x557ebf){const _0x2d4b46=_0x72f170;super(),_0x51e1d8(this,_0x2d4b46(0x109),new Set()),_0x51e1d8(this,_0x2d4b46(0xd3),null),(this[_0x2d4b46(0x25e)]=_0xebff5e,this[_0x2d4b46(0x278)]=_0x4a5968,this['_renderManagerService']=_0x5045a6,this['_sheetSkeletonManagerService']=_0x4df501,this[_0x2d4b46(0x244)]=_0x557ebf,this['_init']());}[_0x72f170(0x3b0)](){const _0x565bbb=_0x72f170;this[_0x565bbb(0x34d)][_0x565bbb(0x31e)]['pipe'](_0x3151c5['takeUntil'](this['dispose$']),_0x3151c5[_0x565bbb(0x207)](_0xe7e8a7=>{const _0x41d001=_0x565bbb;if(_0xe7e8a7){const _0x5743f2=_0xe7e8a7['sheetId'];return _0x414952[_0x41d001(0x41a)](this[_0x41d001(0x25e)][_0x41d001(0x23b)](_0xe7e8a7[_0x41d001(0x350)]),this[_0x41d001(0x244)][_0x41d001(0x1c8)])[_0x41d001(0x2ca)](_0x3151c5[_0x41d001(0x250)](([_0x1bd1a8,_0x536662])=>{const _0x3736b3=_0x41d001,_0x2be1fc=new Map();return _0x1bd1a8[_0x3736b3(0x3bf)]((_0x2b7ba8,_0x1c4d8f)=>{const _0x4510ed=_0x3736b3;if(_0x2b7ba8[_0x4510ed(0x2ff)]===_0x5743f2){const _0xa331e5={..._0x2b7ba8};_0xa331e5[_0x4510ed(0x21e)]=_0x536662[_0x2b7ba8[_0x4510ed(0x21e)]],_0x2be1fc[_0x4510ed(0x346)](_0x1c4d8f,_0xa331e5);}}),{'skeleton':_0xe7e8a7,'cursors':_0x2be1fc};}));}return _0x414952['of']({'skeleton':null,'cursors':new Map()});}))[_0x565bbb(0x112)](({skeleton:_0x501519,cursors:_0x49dc23})=>{const _0x1bf16f=_0x565bbb;this[_0x1bf16f(0x356)](),_0x501519&&this['_updateCollabCursors'](_0x501519,_0x49dc23);}),this[_0x565bbb(0x34d)][_0x565bbb(0x31e)][_0x565bbb(0x112)](_0x40e761=>{const _0x5414a4=_0x565bbb;if(_0x40e761==null)return;const {unitId:_0x3a45ee,skeleton:_0x6d3fa9}=_0x40e761,_0x46ac65=this[_0x5414a4(0x10d)]['getRenderById'](_0x3a45ee);if(_0x46ac65==null)return;const {scene:_0x25dafe}=_0x46ac65;_0x25dafe['onPointerMoveObserver'][_0x5414a4(0x3c1)](_0x2c0384(_0x4ea05b=>{const _0x8e5c39=_0x5414a4;var _0xb98976,_0x139e90;const {offsetX:_0x2c5525,offsetY:_0x314a48}=_0x4ea05b,{x:_0x22fb73,y:_0x3cc17a}=_0x25dafe[_0x8e5c39(0x305)](_0x24a900[_0x8e5c39(0x188)][_0x8e5c39(0x31c)]([_0x2c5525,_0x314a48])),{scaleX:_0x541f1c,scaleY:_0xd45524}=_0x25dafe['getAncestorScale'](),_0x215cdb=_0x25dafe[_0x8e5c39(0x313)](_0x3c430e[_0x8e5c39(0x154)][_0x8e5c39(0x20d)]),_0x28f267=_0x25dafe[_0x8e5c39(0x317)](_0x24a900[_0x8e5c39(0x188)]['FromArray']([_0x22fb73,_0x3cc17a]),_0x215cdb),_0x473e7e=_0x6d3fa9[_0x8e5c39(0x260)](_0x2c5525,_0x314a48,_0x541f1c,_0xd45524,_0x28f267);((_0xb98976=this[_0x8e5c39(0xd3)])==null?void 0x0:_0xb98976['column'])===_0x473e7e['column']&&((_0x139e90=this['_lastPointer'])==null?void 0x0:_0x139e90[_0x8e5c39(0x1b1)])===_0x473e7e[_0x8e5c39(0x1b1)]||this['_cursors'][_0x8e5c39(0x3bf)](_0x58ab45=>{const _0x44c419=_0x8e5c39;_0x58ab45[_0x44c419(0x42d)](_0x473e7e);});},0x64));});}[_0x72f170(0x189)](_0x5b33e7,_0x4b0237){const _0x216356=_0x72f170;var _0xce444d;const _0x19d01a=(_0xce444d=this[_0x216356(0x34d)][_0x216356(0x406)]())==null?void 0x0:_0xce444d[_0x216356(0x341)];if(!_0x19d01a)return;const _0xaf3254=this[_0x216356(0x1ef)]();if(!_0xaf3254)return;this['_cursors']['forEach'](_0x79f1ef=>{const _0x5cf7e4=_0x216356;_0x79f1ef[_0x5cf7e4(0x2b3)]();});const {scene:_0x4d2eda}=_0xaf3254,_0x2247db=_0x4ebf97(Array[_0x216356(0x213)](_0x4b0237[_0x216356(0x1e2)]()))[_0x216356(0x250)](_0x449a02=>{const _0x114f16=_0x216356,{color:_0x311e91,range:_0x55480a,name:_0x42e7f8,selection:_0x9adfde,sheetID:_0x1ce55b}=_0x449a02,{startColumn:_0x3da37e,startRow:_0x43b9aa,endColumn:_0x482686,endRow:_0x5e5dac}=_0x55480a,_0x39ddf9=_0x3c430e[_0x114f16(0x343)](_0x43b9aa,_0x3da37e,_0x4d2eda,_0x19d01a),_0x393d99=_0x3c430e[_0x114f16(0x343)](_0x5e5dac,_0x482686,_0x4d2eda,_0x19d01a),{columnHeaderHeightAndMarginTop:_0x29b90c}=_0x19d01a,{startX:_0x4b6f15,startY:_0x275357}=_0x39ddf9,{endX:_0x5a9bd8,endY:_0xd19b5b}=_0x393d99,_0x19b9d2=_0x5a9bd8-_0x4b6f15,_0x34d4d3=_0xd19b5b-_0x275357,_0x5be05b={'labelPosition':_0x275357-_0x29b90c>=_0xe76e1b?_0x114f16(0x333):_0x114f16(0x1bd),'sheetID':_0x1ce55b,'range':_0x55480a,'color':_0x311e91,'name':_0x42e7f8,'selection':_0x9adfde,'left':_0x4b6f15,'top':_0x275357,'width':_0x19b9d2,'height':_0x34d4d3,'evented':!0x1};return new _0x38c714(_0x42e7f8,_0x5be05b);});_0x4d2eda['addObjects'](_0x2247db,_0x4084be),this[_0x216356(0x109)]=new Set(_0x2247db);}[_0x72f170(0x356)](){const _0x3fa588=_0x72f170;var _0x40e407;(_0x40e407=this[_0x3fa588(0x109)])==null||_0x40e407[_0x3fa588(0x3bf)](_0x46e6d1=>_0x46e6d1[_0x3fa588(0x10c)]());}[_0x72f170(0x1ef)](){const _0x2cae97=_0x72f170;return _0x3c430e['getSheetObject'](this[_0x2cae97(0x278)],this[_0x2cae97(0x10d)]);}};_0x26bb41=_0xe46c5f([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401[_0x72f170(0x404)][_0x72f170(0x256)],_0x26bb41),_0x648114(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x16c4ba)),_0x648114(0x1,_0x1b3401[_0x72f170(0x335)]),_0x648114(0x2,_0x24a900[_0x72f170(0x3f3)]),_0x648114(0x3,_0x5c7b32['Inject'](_0x3c430e[_0x72f170(0x2ef)])),_0x648114(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x247)]))],_0x26bb41);function _0x4ebf97(_0x365aaa){const _0x537fb3=_0x72f170,_0x34f3cd=new Map();return _0x365aaa['forEach'](_0x327202=>{const _0x1abd92=_0x4733;if(_0x34f3cd[_0x1abd92(0x2de)](_0x327202[_0x1abd92(0x34b)])){const _0x1a97a2=_0x34f3cd[_0x1abd92(0x25f)](_0x327202[_0x1abd92(0x34b)]);_0x1a97a2['name']+=',\x20'+_0x327202['name'];}else _0x34f3cd['set'](_0x327202[_0x1abd92(0x34b)],_0x327202);}),Array[_0x537fb3(0x213)](_0x34f3cd['values']());}var _0x257c51=function(){const _0x542863=_0x72f170;return _0x257c51=Object[_0x542863(0x25a)]||function(_0x2b1fa2){const _0x359432=_0x542863;for(var _0xbd9fb5,_0x4c4821=0x1,_0x3f785d=arguments['length'];_0x4c4821<_0x3f785d;_0x4c4821++){_0xbd9fb5=arguments[_0x4c4821];for(var _0x477dda in _0xbd9fb5)Object[_0x359432(0x100)][_0x359432(0x323)][_0x359432(0x3a3)](_0xbd9fb5,_0x477dda)&&(_0x2b1fa2[_0x477dda]=_0xbd9fb5[_0x477dda]);}return _0x2b1fa2;},_0x257c51[_0x542863(0x1fd)](this,arguments);},_0x1bf748=function(_0x5e64d1,_0x5b2739){const _0x20fc48=_0x72f170;var _0x36fb22={};for(var _0x17de85 in _0x5e64d1)Object[_0x20fc48(0x100)][_0x20fc48(0x323)][_0x20fc48(0x3a3)](_0x5e64d1,_0x17de85)&&_0x5b2739['indexOf'](_0x17de85)<0x0&&(_0x36fb22[_0x17de85]=_0x5e64d1[_0x17de85]);if(_0x5e64d1!=null&&typeof Object[_0x20fc48(0x292)]==_0x20fc48(0x1a5)){for(var _0x49eb68=0x0,_0x17de85=Object['getOwnPropertySymbols'](_0x5e64d1);_0x49eb68<_0x17de85[_0x20fc48(0xbe)];_0x49eb68++)_0x5b2739[_0x20fc48(0x2a2)](_0x17de85[_0x49eb68])<0x0&&Object[_0x20fc48(0x100)]['propertyIsEnumerable'][_0x20fc48(0x3a3)](_0x5e64d1,_0x17de85[_0x49eb68])&&(_0x36fb22[_0x17de85[_0x49eb68]]=_0x5e64d1[_0x17de85[_0x49eb68]]);}return _0x36fb22;},_0x29fc60=_0x2abb2f['forwardRef'](function(_0x2110fd,_0x4ee516){const _0x458d63=_0x72f170;var _0x32ce08=_0x2110fd['icon'],_0x39017a=_0x2110fd['id'],_0x3e3a19=_0x2110fd[_0x458d63(0x17f)],_0x50c856=_0x2110fd[_0x458d63(0x1f7)],_0x36fc10=_0x1bf748(_0x2110fd,[_0x458d63(0x2b2),'id','className',_0x458d63(0x1f7)]),_0x47cca7=_0x458d63(0x1f2)['concat'](_0x39017a,'\x20')[_0x458d63(0x170)](_0x3e3a19||'')[_0x458d63(0x371)](),_0x119bf2=_0x2abb2f[_0x458d63(0x215)]('_'[_0x458d63(0x170)](_0x1a4fa5()));return _0x53a8c7(_0x32ce08,''[_0x458d63(0x170)](_0x39017a),{'defIds':_0x32ce08['defIds'],'idSuffix':_0x119bf2[_0x458d63(0x270)]},_0x257c51({'ref':_0x4ee516,'className':_0x47cca7},_0x36fc10),_0x50c856);});function _0x53a8c7(_0x2ecde0,_0x154ce0,_0x16ada0,_0xe373fe,_0x136d5f){const _0x1f9a36=_0x72f170;return _0x2abb2f['createElement'](_0x2ecde0[_0x1f9a36(0x3c2)],_0x257c51(_0x257c51({'key':_0x154ce0},_0x4e7848(_0x2ecde0,_0x16ada0,_0x136d5f)),_0xe373fe),(_0x5c5aab(_0x2ecde0,_0x16ada0)[_0x1f9a36(0x2cd)]||[])[_0x1f9a36(0x250)](function(_0x1bc159,_0x281f69){const _0x2b7911=_0x1f9a36;return _0x53a8c7(_0x1bc159,''[_0x2b7911(0x170)](_0x154ce0,'-')[_0x2b7911(0x170)](_0x2ecde0[_0x2b7911(0x3c2)],'-')[_0x2b7911(0x170)](_0x281f69),_0x16ada0,void 0x0,_0x136d5f);}));}function _0x4e7848(_0x3ecbb6,_0x2390c8,_0x34d241){const _0x1505e8=_0x72f170;var _0x36b409=_0x257c51({},_0x3ecbb6['attrs']);_0x34d241!=null&&_0x34d241[_0x1505e8(0x20b)]&&_0x36b409[_0x1505e8(0x159)]===_0x1505e8(0x20b)&&(_0x36b409[_0x1505e8(0x159)]=_0x34d241['colorChannel1']);var _0x43ed16=_0x2390c8[_0x1505e8(0x2be)];return!_0x43ed16||_0x43ed16[_0x1505e8(0xbe)]===0x0||(_0x3ecbb6['tag']===_0x1505e8(0x1d1)&&_0x36b409[_0x1505e8(0x1d9)]&&(_0x36b409[_0x1505e8(0x1d9)]=_0x36b409[_0x1505e8(0x1d9)]+_0x2390c8[_0x1505e8(0x2d1)]),Object['entries'](_0x36b409)[_0x1505e8(0x3bf)](function(_0x166a96){const _0x5f13ed=_0x1505e8;var _0x2f26df=_0x166a96[0x0],_0x3f88d0=_0x166a96[0x1];typeof _0x3f88d0=='string'&&(_0x36b409[_0x2f26df]=_0x3f88d0[_0x5f13ed(0x1bf)](/url\(#(.*)\)/,_0x5f13ed(0x3fb)['concat'](_0x2390c8[_0x5f13ed(0x2d1)],')')));})),_0x36b409;}function _0x5c5aab(_0x173044,_0x1e2cbf){const _0xc10b64=_0x72f170;var _0xdd10d9,_0x39d662=_0x1e2cbf[_0xc10b64(0x2be)];return!_0x39d662||_0x39d662[_0xc10b64(0xbe)]===0x0?_0x173044:_0x173044['tag']===_0xc10b64(0x242)&&(!((_0xdd10d9=_0x173044['children'])===null||_0xdd10d9===void 0x0)&&_0xdd10d9[_0xc10b64(0xbe)])?_0x257c51(_0x257c51({},_0x173044),{'children':_0x173044['children'][_0xc10b64(0x250)](function(_0x2a4700){const _0x785467=_0xc10b64;return typeof _0x2a4700[_0x785467(0x302)]['id']=='string'&&_0x39d662&&_0x39d662[_0x785467(0x2a2)](_0x2a4700['attrs']['id'])>-0x1?_0x257c51(_0x257c51({},_0x2a4700),{'attrs':_0x257c51(_0x257c51({},_0x2a4700[_0x785467(0x302)]),{'id':_0x2a4700['attrs']['id']+_0x1e2cbf[_0x785467(0x2d1)]})}):_0x2a4700;})}):_0x173044;}function _0x1a4fa5(){const _0x50547e=_0x72f170;return Math['random']()[_0x50547e(0x13d)](0x24)[_0x50547e(0x387)](0x2,0x8);}_0x29fc60[_0x72f170(0x2ba)]=_0x72f170(0x3ca);var _0x50ca98={'tag':_0x72f170(0x13b),'attrs':{'fill':'none','viewBox':_0x72f170(0x3e8),'width':'1em','height':_0x72f170(0x3cd)},'children':[{'tag':'g','attrs':{'clipPath':_0x72f170(0x3ff)},'children':[{'tag':_0x72f170(0x114),'attrs':{'stroke':_0x72f170(0x1f1),'d':_0x72f170(0x1b4),'strokeLinecap':_0x72f170(0x102),'strokeLinejoin':_0x72f170(0x102),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x72f170(0x12f),'attrs':{'id':_0x72f170(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x72f170(0x420),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x72f170(0x1b3)]},_0x5a6176=_0x2abb2f[_0x72f170(0x299)](function(_0x516ffb,_0x844ff1){const _0x28b5ba=_0x72f170;return _0x2abb2f['createElement'](_0x29fc60,Object[_0x28b5ba(0x25a)]({},_0x516ffb,{'id':_0x28b5ba(0xe1),'ref':_0x844ff1,'icon':_0x50ca98}));});_0x5a6176[_0x72f170(0x2ba)]='OffLineSingle';var _0x1c9bd2={'tag':_0x72f170(0x13b),'attrs':{'fill':'none','viewBox':_0x72f170(0x2df),'width':'1em','height':_0x72f170(0x3cd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x72f170(0x1f1),'d':_0x72f170(0x23a),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x72f170(0x242),'attrs':{},'children':[{'tag':_0x72f170(0x12f),'attrs':{'id':_0x72f170(0x186)},'children':[{'tag':'path','attrs':{'fill':_0x72f170(0x420),'d':'M0\x200H16V16H0z','transform':_0x72f170(0x141)}}]}]}],'defIds':[_0x72f170(0x186)]},_0x58eaa7=_0x2abb2f[_0x72f170(0x299)](function(_0x264612,_0x34a437){const _0x5eb5f2=_0x72f170;return _0x2abb2f[_0x5eb5f2(0x1ff)](_0x29fc60,Object[_0x5eb5f2(0x25a)]({},_0x264612,{'id':_0x5eb5f2(0x1f8),'ref':_0x34a437,'icon':_0x1c9bd2}));});_0x58eaa7['displayName']=_0x72f170(0x217);const _0x5f1593={'onlineStatusIcon':_0x72f170(0x258),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x72f170(0x1b2),'online':_0x72f170(0x18f),'offline':'univer-offline'};function _0x4ab2a9(_0x525738){const _0x57506d=_0x72f170;switch(_0x525738){case _0x3a3bdf[_0x57506d(0x255)]:return _0x57506d(0x320);case _0x3a3bdf[_0x57506d(0x296)]:return _0x57506d(0x110);case _0x3a3bdf['FETCH_MISS']:return _0x57506d(0x3a6);case _0x3a3bdf[_0x57506d(0x26b)]:return'collabStatus.notCollab';case _0x3a3bdf[_0x57506d(0x409)]:case _0x3a3bdf[_0x57506d(0x41b)]:case _0x3a3bdf[_0x57506d(0x108)]:return _0x57506d(0x2d3);case _0x3a3bdf[_0x57506d(0x151)]:return'collabStatus.synced';}}function _0x27a980(_0x5adf38){const _0x23ed45=_0x72f170,{status$:_0x64fc68}=_0x5adf38,_0x51e032=_0x47170c[_0x23ed45(0x1dc)](_0x64fc68,_0x3a3bdf['NOT_COLLAB']),_0x1d1e66=_0x5396c4[_0x23ed45(0x202)](_0x1b3401[_0x23ed45(0x330)]),_0x23303e=_0x51e032!==_0x3a3bdf[_0x23ed45(0x255)],_0x6aca23=_0x1d1e66['t'](_0x4ab2a9(_0x51e032)),_0x50b30e=_0x167f4a(_0x5f1593['onlineStatus'],{[_0x5f1593[_0x23ed45(0x254)]]:_0x23303e,[_0x5f1593[_0x23ed45(0x2a7)]]:!_0x23303e}),_0x5ea34b=_0x23303e?_0x2abb2f['createElement'](_0x58eaa7,null):_0x2abb2f[_0x23ed45(0x1ff)](_0x5a6176,null);return _0x2abb2f['createElement'](_0x23ed45(0xec),{'className':_0x50b30e},_0x2abb2f['createElement'](_0x23ed45(0xec),{'className':_0x5f1593[_0x23ed45(0x365)]},_0x5ea34b),_0x2abb2f[_0x23ed45(0x1ff)](_0x23ed45(0xec),{'className':_0x5f1593[_0x23ed45(0x3e1)]},_0x6aca23));}var _0x285c50=(_0x262808,_0x40cc44,_0x33eea2,_0xf8fb0c)=>{const _0x61eae6=_0x72f170;for(var _0x2f74ad=_0x40cc44,_0x3990f2=_0x262808[_0x61eae6(0xbe)]-0x1,_0x567283;_0x3990f2>=0x0;_0x3990f2--)(_0x567283=_0x262808[_0x3990f2])&&(_0x2f74ad=_0x567283(_0x2f74ad)||_0x2f74ad);return _0x2f74ad;},_0x539b53=(_0x481894,_0x43814c)=>(_0x430cf8,_0x5f45bb)=>_0x43814c(_0x430cf8,_0x5f45bb,_0x481894);_0x588091[_0x72f170(0x34a)]=class extends _0x1b3401['Disposable']{constructor(_0x4cda94,_0x3ada9d,_0x1700ee,_0x4a2be0){const _0x4de01a=_0x72f170;super(),_0x51e1d8(this,_0x4de01a(0x221),new _0x414952['BehaviorSubject'](_0x3a3bdf['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4cda94,this[_0x4de01a(0x2c3)]=_0x3ada9d,this[_0x4de01a(0x397)]=_0x1700ee,this[_0x4de01a(0x229)]=_0x4a2be0,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x1a516b=_0x72f170;this[_0x1a516b(0xf8)](this['_uiPartsService']['registerComponent'](_0x47170c[_0x1a516b(0x3d3)][_0x1a516b(0x2f9)],()=>_0x5396c4[_0x1a516b(0x16e)](_0xb710f4({'status$':this[_0x1a516b(0x221)][_0x1a516b(0x348)]()}),this['_injector'])));}[_0x72f170(0x122)](){const _0x58cca3=_0x72f170;this[_0x58cca3(0xf8)](_0x1b3401[_0x58cca3(0x2ac)](this[_0x58cca3(0x278)][_0x58cca3(0x26a)]['pipe'](_0x414952[_0x58cca3(0x207)](()=>{const _0x1d607b=_0x58cca3,_0x4f2970=this[_0x1d607b(0x278)][_0x1d607b(0x378)]();return _0x4f2970?this[_0x1d607b(0x229)][_0x1d607b(0x33d)](_0x4f2970[_0x1d607b(0x33c)]()):_0x414952['of'](null);}),_0x414952[_0x58cca3(0x207)](_0x1867ca=>_0x1867ca?_0x1867ca[_0x58cca3(0x2ed)]:_0x414952['of'](_0x3a3bdf['NOT_COLLAB'])))[_0x58cca3(0x112)](_0x2abbe7=>{const _0x116a4f=_0x58cca3;this['_status$'][_0x116a4f(0x3d6)](_0x2abbe7);})));}},_0x588091['DesktopCollaborationStatusDisplayController']=_0x285c50([_0x1b3401['OnLifecycle'](_0x1b3401[_0x72f170(0x404)]['Starting'],_0x588091[_0x72f170(0x34a)]),_0x539b53(0x0,_0x1b3401[_0x72f170(0x335)]),_0x539b53(0x1,_0x47170c[_0x72f170(0x373)]),_0x539b53(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x539b53(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x295)]))],_0x588091[_0x72f170(0x34a)]);function _0xb710f4(_0x1ec5b6){const {status$:_0x485e58}=_0x1ec5b6;return function(){const _0x555511=_0x4733;return _0x2abb2f[_0x555511(0x1ff)](_0x27a980,{'status$':_0x485e58});};}const _0x159654=_0x5c7b32[_0x72f170(0x416)](_0x72f170(0x1da));var _0x3aca43=(_0x4ac5aa,_0x5326a0,_0x4eeebe,_0x49798f)=>{const _0x15a91e=_0x72f170;for(var _0x21881b=_0x5326a0,_0x10d1f9=_0x4ac5aa[_0x15a91e(0xbe)]-0x1,_0x216a28;_0x10d1f9>=0x0;_0x10d1f9--)(_0x216a28=_0x4ac5aa[_0x10d1f9])&&(_0x21881b=_0x216a28(_0x21881b)||_0x21881b);return _0x21881b;},_0x58466e=(_0x3f93f2,_0x3100e1)=>(_0x22351a,_0x4d8131)=>_0x3100e1(_0x22351a,_0x4d8131,_0x3f93f2);_0x588091[_0x72f170(0x3b4)]=class extends _0x1b3401['RxDisposable']{constructor(_0x496898,_0x5b7210,_0x14cb69,_0x3f5028,_0x3d5cf9,_0x69a37){const _0x496d68=_0x72f170;super(),this[_0x496d68(0xc3)]=_0x496898,this['_logService']=_0x5b7210,this[_0x496d68(0x219)]=_0x14cb69,this[_0x496d68(0x339)]=_0x3f5028,this[_0x496d68(0x366)]=_0x3d5cf9,_0x69a37?_0x69a37==null||_0x69a37[_0x496d68(0x21f)]()[_0x496d68(0x414)](()=>this[_0x496d68(0x3b0)]()):(this[_0x496d68(0x1a6)][_0x496d68(0xf2)](_0x496d68(0x2b4),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x496d68(0x3b0)]());}async['_init'](){const _0xe7806a=_0x72f170,_0xb75565=this[_0xe7806a(0xc3)]['getParam'](_0xe7806a(0x3e2)),_0x1736f8=this['_urlService'][_0xe7806a(0x328)](_0xe7806a(0x418));if(!_0xb75565||!_0x1736f8){this[_0xe7806a(0x1a6)][_0xe7806a(0xf2)]('[DataLoaderController]',_0xe7806a(0x282));return;}switch(Number(_0x1736f8)){case _0x2b3b4b['UNIVER_SHEET']:{const _0x2197d6=await this[_0xe7806a(0x331)](_0xb75565);this['_setupSubUnitSync'](_0x2197d6);break;}case _0x2b3b4b[_0xe7806a(0x2f7)]:{await this['_loadDoc'](_0xb75565);break;}default:{this[_0xe7806a(0x1a6)][_0xe7806a(0x2e6)]('[DataLoaderController]',_0xe7806a(0x130));break;}}}async[_0x72f170(0x1cd)](_0x259912){const _0x4b19b2=_0x72f170;await this[_0x4b19b2(0x3dc)](_0x259912),_0x259912[_0x4b19b2(0x32b)][_0x4b19b2(0x2ca)](_0x414952[_0x4b19b2(0x1b8)](this[_0x4b19b2(0x3d9)]))[_0x4b19b2(0x112)](_0x4f149a=>{const _0x302b49=_0x4b19b2;_0x4f149a&&this[_0x302b49(0x3a9)](_0x4f149a);}),this[_0x4b19b2(0xc3)][_0x4b19b2(0x2b0)][_0x4b19b2(0x2ca)](_0x414952[_0x4b19b2(0x1b8)](this[_0x4b19b2(0x3d9)]))['subscribe'](()=>this[_0x4b19b2(0x3dc)](_0x259912));}[_0x72f170(0x3a9)](_0x4a8778,_0x43f1df=!0x1){const _0x161e61=_0x72f170,_0x5335cf=this[_0x161e61(0xc3)][_0x161e61(0x328)]('subunit');_0x4a8778[_0x161e61(0x245)]()!==_0x5335cf&&this[_0x161e61(0xc3)][_0x161e61(0x3f0)](_0x161e61(0x105),_0x4a8778[_0x161e61(0x245)](),_0x43f1df);}async[_0x72f170(0x3dc)](_0x3e8a0a){const _0x593c02=_0x72f170,_0x3ba842=this[_0x593c02(0xc3)][_0x593c02(0x328)](_0x593c02(0x105));if(!_0x3ba842||!_0x3e8a0a[_0x593c02(0x271)](_0x3ba842)){this[_0x593c02(0x3a9)](_0x3e8a0a['getActiveSheet'](),!0x0);return;}_0x3e8a0a[_0x593c02(0x307)]()[_0x593c02(0x245)]()!==_0x3ba842&&await this[_0x593c02(0x219)]['executeCommand'](_0x51f05a[_0x593c02(0x160)]['id'],{'unitId':_0x3e8a0a[_0x593c02(0x33c)](),'subUnitId':_0x3ba842});}async['_loadSheet'](_0x3936ea){const _0x2eed01=_0x72f170;let _0x10b314=0x0;const _0x4414f0=await this[_0x2eed01(0x339)][_0x2eed01(0x3df)](_0x3936ea);return _0x4414f0&&(_0x4414f0[_0x2eed01(0x3c6)]||_0x4414f0['mutations'][_0x2eed01(0xbe)]!==0x0)&&(_0x10b314=_0x4414f0[_0x2eed01(0x377)]),_0x10b314===0x0&&this[_0x2eed01(0x1a6)][_0x2eed01(0xf2)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2eed01(0x366)]['loadSheet'](_0x3936ea,_0x10b314);}async[_0x72f170(0x405)](_0x26dea8){const _0x8e9c1c=_0x72f170;let _0x568ca6=0x0;const _0x552047=await this[_0x8e9c1c(0x339)][_0x8e9c1c(0x3df)](_0x26dea8);return _0x552047&&(_0x552047[_0x8e9c1c(0x3c6)]||_0x552047[_0x8e9c1c(0x228)]['length']!==0x0)&&(_0x568ca6=_0x552047['rev']),_0x568ca6===0x0&&this['_logService'][_0x8e9c1c(0xf2)](_0x8e9c1c(0x2b4),_0x8e9c1c(0x22f)),this['_snapshotService'][_0x8e9c1c(0x3ab)](_0x26dea8,_0x568ca6);}},_0x588091[_0x72f170(0x3b4)]=_0x3aca43([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401[_0x72f170(0x404)]['Starting'],_0x588091['DataLoaderController']),_0x58466e(0x0,_0x159654),_0x58466e(0x1,_0x1b3401['ILogService']),_0x58466e(0x2,_0x1b3401[_0x72f170(0x2cb)]),_0x58466e(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x588091[_0x72f170(0x3a7)])),_0x58466e(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x30a695['SnapshotService'])),_0x58466e(0x5,_0x5c7b32[_0x72f170(0x12a)](_0xce538[_0x72f170(0x1a4)]))],_0x588091['DataLoaderController']);var _0x2253ab=(_0x50efc2,_0x2d6ad0,_0x41a6c0,_0x182afe)=>{const _0x3ccaf6=_0x72f170;for(var _0x12fc84=_0x2d6ad0,_0x1c9b88=_0x50efc2[_0x3ccaf6(0xbe)]-0x1,_0x4c7ba6;_0x1c9b88>=0x0;_0x1c9b88--)(_0x4c7ba6=_0x50efc2[_0x1c9b88])&&(_0x12fc84=_0x4c7ba6(_0x12fc84)||_0x12fc84);return _0x12fc84;},_0x2c120f=(_0x47811a,_0x4e2906)=>(_0x51f898,_0x5b0003)=>_0x4e2906(_0x51f898,_0x5b0003,_0x47811a);const _0x534228=_0x72f170(0x26c),_0x48dd98=_0x72f170(0x118);let _0x1e047e=class extends _0x1b3401['Disposable']{constructor(_0x2434a0,_0x13c141){const _0x5cc5b1=_0x72f170;super(),this['_univerInstanceService']=_0x2434a0,this['_configService']=_0x13c141,this[_0x5cc5b1(0x3b0)]();}[_0x72f170(0x3b0)](){const _0xca0dd9=_0x72f170;this[_0xca0dd9(0xf8)](_0x1b3401['toDisposable'](this[_0xca0dd9(0x278)][_0xca0dd9(0x26a)][_0xca0dd9(0x112)](()=>{const _0x570fc5=_0xca0dd9;var _0x14b77d;const _0x568db8=this[_0x570fc5(0x278)][_0x570fc5(0x378)]();let _0x508376=(_0x14b77d=this['_configService'][_0x570fc5(0x310)](_0x534228))!=null?_0x14b77d:_0x48dd98;_0x568db8 instanceof _0x1b3401['Workbook']&&(_0x508376=_0x568db8[_0x570fc5(0x403)]),document['title']=_0x508376;})));}};_0x1e047e=_0x2253ab([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401[_0x72f170(0x404)][_0x72f170(0x2d8)],_0x1e047e),_0x2c120f(0x0,_0x1b3401['IUniverInstanceService']),_0x2c120f(0x1,_0x1b3401['IConfigService'])],_0x1e047e);const _0x588fab={'collabStatus':{'fetchMiss':_0x72f170(0x19f),'conflict':'编辑冲突','notCollab':_0x72f170(0x1dd),'synced':_0x72f170(0x389),'syncing':_0x72f170(0x1f6),'offline':'编辑将在本地保存'},'session':{'connection-failed':_0x72f170(0x2fe),'will-retry':'连接失败,将在一会儿之后重试','room-full':_0x72f170(0x42e),'collaboration-timeout':'服务器未响应你的协同请求,你的编辑将在本地保存'},'conflict':{'title':'协同冲突','content':_0x72f170(0x3d7)},'collaboration':{'single-unit':{'warning':_0x72f170(0x199)}},'auth':{'needGotoLoginAlert':_0x72f170(0x1a8)}};var _0x4b4207=(_0x46c2fb,_0x1ea0ae,_0x4bf9ad,_0x5d0237)=>{const _0x1b0e61=_0x72f170;for(var _0x5a3893=_0x1ea0ae,_0x1d12a6=_0x46c2fb[_0x1b0e61(0xbe)]-0x1,_0x3bf162;_0x1d12a6>=0x0;_0x1d12a6--)(_0x3bf162=_0x46c2fb[_0x1d12a6])&&(_0x5a3893=_0x3bf162(_0x5a3893)||_0x5a3893);return _0x5a3893;},_0x51d23b=(_0xeb0012,_0x12b077)=>(_0x5cd0b0,_0x5e6620)=>_0x12b077(_0x5cd0b0,_0x5e6620,_0xeb0012);const _0x256873='SNAPSHOT_SERVER_URL_KEY',_0x19f043='/universer-api/snapshot';let _0x4748a6=class{constructor(_0x176820,_0x12e4d4){const _0x389287=_0x72f170;this[_0x389287(0x1a2)]=_0x176820,this[_0x389287(0x201)]=_0x12e4d4;}async[_0x72f170(0x235)](_0x41bd23,_0x34227a){const _0x596d73=_0x72f170;var _0x4e892b;const {unitID:_0x1c2916,type:_0x258aa7,revision:_0x289b7b=0x0}=_0x34227a,_0x9611d4=this[_0x596d73(0x19c)]()+'/'+_0x258aa7+_0x596d73(0x1d3)+_0x1c2916+_0x596d73(0x1cf)+(_0x289b7b===0x1?0x0:_0x289b7b),_0x38bd84=(await this[_0x596d73(0x201)][_0x596d73(0x25f)](_0x9611d4))[_0x596d73(0x1e9)],_0x2e5c9e=(_0x4e892b=_0x38bd84[_0x596d73(0x177)])==null?void 0x0:_0x4e892b[_0x596d73(0x34c)];if(_0x2e5c9e){const _0x18a1e3=_0x2e5c9e==null?void 0x0:_0x2e5c9e[_0x596d73(0x388)],_0x95c543=_0x1b3401['textEncoder'][_0x596d73(0xed)](_0x1b3401[_0x596d73(0xc6)](_0x18a1e3));_0x2e5c9e[_0x596d73(0x388)]=_0x95c543,Object[_0x596d73(0x3b5)](_0x2e5c9e[_0x596d73(0x422)])[_0x596d73(0x3bf)](([,_0x3df12d])=>{const _0x34eacc=_0x596d73,_0xfae7d8=_0x3df12d[_0x34eacc(0x388)],_0x11beb4=_0x1b3401[_0x34eacc(0x13a)]['encode'](_0x1b3401[_0x34eacc(0xc6)](_0xfae7d8));_0x3df12d[_0x34eacc(0x388)]=_0x11beb4;});}return _0x38bd84;}async[_0x72f170(0x2f4)](_0x46eed6,_0x3ffc95){const _0x6ab602=_0x72f170,{unitID:_0x19513f,type:_0x55c3a2,blockID:_0x104c87}=_0x3ffc95,_0x4b782f=this[_0x6ab602(0x19c)]()+'/'+_0x55c3a2+'/unit/'+_0x19513f+_0x6ab602(0x2cc)+_0x104c87;return(await this[_0x6ab602(0x201)][_0x6ab602(0x25f)](_0x4b782f))['body'];}async[_0x72f170(0x145)](_0x4e2198,_0x3facb8){const _0x5d8901=_0x72f170,{unitID:_0x497995,type:_0x38cadf,from:_0x14543f,to:_0x3c9b39}=_0x3facb8,_0x2ddfc6=this[_0x5d8901(0x19c)]()+'/'+_0x38cadf+_0x5d8901(0x1d3)+_0x497995+_0x5d8901(0x300)+_0x14543f+'&to='+_0x3c9b39;return(await this[_0x5d8901(0x201)][_0x5d8901(0x25f)](_0x2ddfc6))[_0x5d8901(0x1e9)];}[_0x72f170(0x19c)](){var _0x2b09c8;return(_0x2b09c8=this['_configService']['getConfig'](_0x256873))!=null?_0x2b09c8:_0x19f043;}async[_0x72f170(0x2a1)](_0xd3b970,_0x44ff3e){const _0x438fbe=_0x72f170,_0x432226='/universer-api/snapshot/'+_0x44ff3e[_0x438fbe(0x418)]+_0x438fbe(0x1d3)+_0x44ff3e[_0x438fbe(0x17d)]+_0x438fbe(0x3a1);return(await this[_0x438fbe(0x201)][_0x438fbe(0x25f)](_0x432226,{'params':{'resourceId':JSON['stringify'](_0x44ff3e[_0x438fbe(0x39b)])}}))[_0x438fbe(0x1e9)];}[_0x72f170(0x3c3)](){const _0x5e4fa3=_0x72f170;throw new Error(_0x5e4fa3(0x3a4));}[_0x72f170(0x120)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x72f170(0x230)](){const _0x1a2fde=_0x72f170;throw new Error(_0x1a2fde(0x3a4));}};_0x4748a6=_0x4b4207([_0x51d23b(0x0,_0x1b3401[_0x72f170(0x1e4)]),_0x51d23b(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x2b3eab[_0x72f170(0x246)]))],_0x4748a6);var _0x12e6f4=(_0xceaa57,_0x30cdf8,_0x34c5f0,_0x1b4560)=>{for(var _0x9a7d65=_0x30cdf8,_0x4bb1c4=_0xceaa57['length']-0x1,_0x519975;_0x4bb1c4>=0x0;_0x4bb1c4--)(_0x519975=_0xceaa57[_0x4bb1c4])&&(_0x9a7d65=_0x519975(_0x9a7d65)||_0x9a7d65);return _0x9a7d65;},_0x28f285=(_0x1181d7,_0x43065f)=>(_0x4d2f6e,_0x3b819f)=>_0x43065f(_0x4d2f6e,_0x3b819f,_0x1181d7);let _0x2ff833=class extends _0x1b3401[_0x72f170(0x2ae)]{constructor(_0x242fc4,_0x563e81,_0x51004a,_0x39e7d0,_0x4bb9b0){const _0xddb3a7=_0x72f170;super(_0x242fc4,_0x563e81,_0x51004a),this[_0xddb3a7(0x3f8)]=_0x39e7d0,this[_0xddb3a7(0x1a6)]=_0x4bb9b0;}[_0x72f170(0x3e0)](_0x4f30ad,_0x2e6824){const _0x4ab4a8=_0x72f170,_0x4b4d94=this['_getUndoStack'](_0x4f30ad);if(_0x4b4d94)try{const _0x5d4dfd=this[_0x4ab4a8(0x2f6)](_0x4b4d94,_0x2e6824);this[_0x4ab4a8(0xff)](_0x4f30ad,_0x5d4dfd);}catch(_0x3f7279){this[_0x4ab4a8(0x1a6)][_0x4ab4a8(0x2e6)]('[CollaborationUndoRedoService]',_0x3f7279),this[_0x4ab4a8(0x3da)](_0x4f30ad);}const _0x4b4d9d=this[_0x4ab4a8(0x2aa)](_0x4f30ad);if(_0x4b4d9d)try{const _0x2e1417=this[_0x4ab4a8(0x2f6)](_0x4b4d9d,_0x2e6824);this[_0x4ab4a8(0x10b)](_0x4f30ad,_0x2e1417);}catch(_0x504888){this['_logService'][_0x4ab4a8(0x2e6)](_0x504888),this[_0x4ab4a8(0x232)](_0x4f30ad);}}[_0x72f170(0x3da)](_0x2e29bd){const _0x5c7cb0=_0x72f170,_0x58b119=this[_0x5c7cb0(0x3f4)](_0x2e29bd);_0x58b119&&(_0x58b119['length']=0x0,this[_0x5c7cb0(0x3a0)]());}[_0x72f170(0x232)](_0x28bd7d){const _0x4845ef=_0x72f170,_0x3aa482=this['_getRedoStack'](_0x28bd7d);_0x3aa482&&(_0x3aa482[_0x4845ef(0xbe)]=0x0,this[_0x4845ef(0x3a0)]());}[_0x72f170(0xff)](_0x2c60b5,_0x36dd1a){const _0x5197ff=_0x72f170;this[_0x5197ff(0xc5)][_0x5197ff(0x346)](_0x2c60b5,_0x36dd1a),this['_updateStatus']();}[_0x72f170(0x10b)](_0x5f2f1b,_0x136f5b){this['_redoStacks']['set'](_0x5f2f1b,_0x136f5b),this['_updateStatus']();}[_0x72f170(0x2f6)](_0x4c6d61,_0x420e07){const _0x15f870=_0x72f170,_0x175007=[];let _0x1e9660=_0x420e07,_0x2ac037=_0x420e07;for(let _0x2a08d2=_0x4c6d61[_0x15f870(0xbe)]-0x1;_0x2a08d2>=0x0;_0x2a08d2--){const {unitID:_0x344105,undoMutations:_0x5b9582,redoMutations:_0x3d49a2}=_0x4c6d61[_0x2a08d2],_0x573674=this[_0x15f870(0x3f8)][_0x15f870(0x132)](_0x1e9660,_0x5b9582),_0x235da6=this[_0x15f870(0x3f8)][_0x15f870(0x132)](_0x2ac037,_0x3d49a2);if(_0x30a695[_0x15f870(0x226)](_0x573674)||_0x30a695['isTransformMutationsWithChangesetFailure'](_0x235da6)){this[_0x15f870(0x1a6)][_0x15f870(0x2e6)](_0x15f870(0xcc),_0x15f870(0x1ec),_0x573674,_0x235da6);break;}_0x1e9660=_0x573674['c1Prime'],_0x2ac037=_0x235da6['c1Prime'],_0x175007['push']({'unitID':_0x344105,'undoMutations':_0x573674['m2Prime'],'redoMutations':_0x235da6[_0x15f870(0x268)]});}return _0x175007[_0x15f870(0x412)]();}};_0x2ff833=_0x12e6f4([_0x28f285(0x0,_0x1b3401[_0x72f170(0x335)]),_0x28f285(0x1,_0x1b3401['ICommandService']),_0x28f285(0x2,_0x1b3401[_0x72f170(0x36b)]),_0x28f285(0x3,_0x30a695[_0x72f170(0x2dc)]),_0x28f285(0x4,_0x1b3401[_0x72f170(0x29c)])],_0x2ff833);class _0xd91f6d extends _0x1b3401[_0x72f170(0x35c)]{constructor(){const _0x431fc7=_0x72f170;super(),_0x51e1d8(this,_0x431fc7(0x2b0)),this[_0x431fc7(0x2b0)]=_0x414952['fromEvent'](window,_0x431fc7(0x161))['pipe'](_0x414952['takeUntil'](this['dispose$']),_0x414952[_0x431fc7(0x15b)](0x1),_0x414952[_0x431fc7(0x311)](void 0x0));}[_0x72f170(0x3f0)](_0x211cf2,_0x5aba2a,_0x302953=!0x1){const _0x3a1ec0=_0x72f170,_0x13aebc=new URL(window[_0x3a1ec0(0x18b)][_0x3a1ec0(0x195)]);_0x13aebc['searchParams'][_0x3a1ec0(0x346)](_0x211cf2,_0x5aba2a),_0x302953?window[_0x3a1ec0(0x2fa)][_0x3a1ec0(0x209)]('','',_0x13aebc[_0x3a1ec0(0x13d)]()):window[_0x3a1ec0(0x2fa)][_0x3a1ec0(0x1fc)]('','',_0x13aebc[_0x3a1ec0(0x13d)]());}[_0x72f170(0x352)](_0x16b546,_0x254a7c=!0x1){const _0x5a3e=_0x72f170,_0x194cdd=new URL(window[_0x5a3e(0x18b)]['href']);_0x194cdd[_0x5a3e(0x34f)][_0x5a3e(0x16c)](_0x16b546),_0x254a7c?window[_0x5a3e(0x2fa)][_0x5a3e(0x209)]('','',_0x194cdd[_0x5a3e(0x13d)]()):window[_0x5a3e(0x2fa)][_0x5a3e(0x1fc)]('','',_0x194cdd[_0x5a3e(0x13d)]());}[_0x72f170(0x328)](_0x56f05f){const _0x23e5f0=_0x72f170;var _0x4f758a;return(_0x4f758a=new URL(window[_0x23e5f0(0x18b)]['href'])[_0x23e5f0(0x34f)][_0x23e5f0(0x25f)](_0x56f05f))!=null?_0x4f758a:void 0x0;}}const _0x3c7281=_0x72f170(0x1c2),_0x502986=_0x72f170(0x12c),_0xa9bee3=0x6,_0x3bcbcd=1.5,_0x3621ef=0x4,_0x3a3862=1.5,_0x23f052=_0x72f170(0x355);class _0x3df4b6{constructor(_0x23c682,_0x5047b1,_0xebffb9,_0x39523d){const _0xc86a5a=_0x72f170;_0x51e1d8(this,'_shapes',[]),_0x51e1d8(this,'_anchor',null),_0x51e1d8(this,'_textBubble',null),_0x51e1d8(this,_0xc86a5a(0x1e7),null),_0x51e1d8(this,_0xc86a5a(0x14c),null),_0x51e1d8(this,'_eventUnsubscribe',null),(this[_0xc86a5a(0x204)]=_0x23c682,this['_scene']=_0x5047b1,this[_0xc86a5a(0x26d)]=_0xebffb9,this[_0xc86a5a(0x309)]=_0x39523d,this[_0xc86a5a(0x116)]());}set[_0x72f170(0x316)](_0xdfeb33){const _0x361e55=_0x72f170;_0xdfeb33?(this['_anchorDot']&&this[_0x361e55(0x1e7)][_0x361e55(0xe5)](),this[_0x361e55(0x1c6)]&&this['_textBubble']['show']()):(this[_0x361e55(0x1e7)]&&this['_anchorDot'][_0x361e55(0x338)](),this[_0x361e55(0x1c6)]&&this['_textBubble'][_0x361e55(0xe5)]());}[_0x72f170(0x10c)](){const _0xcf08d8=_0x72f170;for(const _0x56df62 of this['_shapes'])_0x56df62[_0xcf08d8(0x10c)]();this[_0xcf08d8(0x1c6)]&&this[_0xcf08d8(0x1c6)][_0xcf08d8(0x10c)](),this['_anchorDot']&&this[_0xcf08d8(0x1e7)]['dispose'](),this['_anchor']&&this[_0xcf08d8(0x194)][_0xcf08d8(0x10c)](),this[_0xcf08d8(0x115)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3e878a=_0x72f170,{_docSkeleton:_0xb3375f,_document:_0x2b8091}=this,{color:_0x462fc6,name:_0x5714a6,ranges:_0x1c851c}=this[_0x3e878a(0x204)],_0x3e6ed8=_0x2b8091[_0x3e878a(0x41c)](),{docsLeft:_0x5c8913,docsTop:_0x1dbc50}=_0x3e6ed8,_0x5531b5=new _0x24a900[(_0x3e878a(0x257))](_0x3e6ed8,_0xb3375f);for(const {startOffset:_0x3d9f07,endOffset:_0x537a78,collapsed:_0x5b1d48,isActive:_0xfed8f6}of _0x1c851c){const _0x3d771e=_0xb3375f[_0x3e878a(0x1ed)](_0x3d9f07),_0x189285=_0xb3375f[_0x3e878a(0x1ed)](_0x537a78);if(_0xfed8f6){const {contentBoxPointGroup:_0x476d94}=_0x5531b5[_0x3e878a(0x1cc)](_0x189285,_0x189285);if(_0x476d94[_0x3e878a(0xbe)]===0x0)continue;this[_0x3e878a(0x2d7)](_0x462fc6,_0x476d94,_0x5c8913,_0x1dbc50,_0x5714a6),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x5b1d48){const {contentBoxPointGroup:_0x43d93c}=_0x5531b5['getRangePointData'](_0x3d771e,_0x189285);if(_0x43d93c[_0x3e878a(0xbe)]===0x0)continue;this[_0x3e878a(0xd1)](_0x462fc6,_0x43d93c,_0x5c8913,_0x1dbc50);}}}[_0x72f170(0x2d7)](_0x1a1323,_0x33fe88,_0x19e9c1,_0x4b4711,_0x3cc03b){const _0x311a76=_0x72f170,_0x3ddd38=this[_0x311a76(0x1aa)](_0x33fe88),{left:_0x1e50d1,top:_0x33fce6,height:_0xd16da0}=_0x3ddd38,_0x5530c9=this[_0x311a76(0x3bc)](),_0x4c2daf=_0x3a3862/_0x5530c9,_0x5248a3=new _0x24a900[(_0x311a76(0x2ee))](_0x3c7281+_0x1b3401[_0x311a76(0x39f)][_0x311a76(0x32e)](_0xa9bee3),{'left':_0x1e50d1+_0x19e9c1-_0x4c2daf,'top':_0x33fce6+_0x4b4711,'height':_0xd16da0,'width':_0x3bcbcd,'fill':_0x1a1323||_0x24a900['getColor'](_0x1b3401[_0x311a76(0x143)][_0x311a76(0x38d)],0x0),'strokeWidth':_0x4c2daf,'stroke':_0x23f052,'evented':!0x0});this[_0x311a76(0x194)]=_0x5248a3,this['_scene'][_0x311a76(0x327)](_0x5248a3,_0x24a900['TEXT_RANGE_LAYER_INDEX']);const _0x24741e=new _0x24a900['Rect'](_0x3c7281+_0x1b3401[_0x311a76(0x39f)][_0x311a76(0x32e)](_0xa9bee3),{'left':_0x1e50d1+_0x19e9c1-_0x4c2daf,'top':_0x33fce6+_0x4b4711-_0x3621ef/0x2,'height':_0x3621ef,'width':_0x3621ef,'fill':_0x1a1323||_0x24a900[_0x311a76(0x157)](_0x1b3401[_0x311a76(0x143)][_0x311a76(0x38d)],0x0),'strokeWidth':0x0,'stroke':_0x1a1323||_0x24a900[_0x311a76(0x157)](_0x1b3401['COLORS'][_0x311a76(0x38d)],0x0),'evented':!0x1});this['_anchorDot']=_0x24741e,this[_0x311a76(0x11d)][_0x311a76(0x327)](_0x24741e,_0x24a900[_0x311a76(0xe7)]);const _0x45b6a3=new _0x2d908c(_0x3c7281+_0x1b3401[_0x311a76(0x39f)][_0x311a76(0x32e)](_0xa9bee3),{'left':_0x1e50d1+_0x19e9c1-_0x4c2daf,'top':_0x33fce6+_0x4b4711-_0xe76e1b,'text':_0x3cc03b,'color':_0x1a1323});this[_0x311a76(0x1c6)]=_0x45b6a3,this['_scene'][_0x311a76(0x327)](_0x45b6a3,_0x24a900[_0x311a76(0xe7)]),this['_hover']=!0x1;}[_0x72f170(0x172)](){const _0x476bbf=_0x72f170,_0x2284df=this[_0x476bbf(0x194)][_0x476bbf(0x334)][_0x476bbf(0x3c1)](()=>{const _0x23f3bd=_0x476bbf;this[_0x23f3bd(0x316)]=!0x0;}),_0x17ff3a=this[_0x476bbf(0x194)][_0x476bbf(0xc1)][_0x476bbf(0x3c1)](()=>{const _0x45b160=_0x476bbf;this[_0x45b160(0x14c)]&&clearTimeout(this['_hideTimer']),this[_0x45b160(0x14c)]=setTimeout(()=>{const _0x2f7295=_0x45b160;this[_0x2f7295(0x316)]=!0x1;},0x7d0);});return()=>{const _0x1f029a=_0x476bbf;var _0x22e113,_0x82cb2f;(_0x22e113=this[_0x1f029a(0x194)])==null||_0x22e113['onPointerEnterObserver'][_0x1f029a(0x419)](_0x2284df),(_0x82cb2f=this[_0x1f029a(0x194)])==null||_0x82cb2f[_0x1f029a(0xc1)][_0x1f029a(0x419)](_0x17ff3a);};}[_0x72f170(0xd1)](_0x3d4bcb,_0x402e3f,_0xcac117,_0x2f9c93){const _0x1ef113=_0x72f170,_0x1d2fea=new _0x1b3401[(_0x1ef113(0x233))](_0x3d4bcb)['setAlpha'](0.2)[_0x1ef113(0x11b)](),_0x18118d=new _0x24a900[(_0x1ef113(0x38c))](_0x502986+_0x1b3401[_0x1ef113(0x39f)][_0x1ef113(0x32e)](_0xa9bee3),{'pointsGroup':_0x402e3f,'fill':_0x1d2fea||_0x24a900[_0x1ef113(0x157)](_0x1b3401[_0x1ef113(0x143)][_0x1ef113(0x38d)],0.2),'left':_0xcac117,'top':_0x2f9c93,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ef113(0x169)][_0x1ef113(0x2c7)](_0x18118d),this[_0x1ef113(0x11d)]['addObject'](_0x18118d,_0x24a900[_0x1ef113(0xe7)]);}[_0x72f170(0x1aa)](_0x5b2352){const _0x460a92=_0x5b2352[0x0],_0x4fdcdf=_0x460a92[0x0],_0x7f72e7=_0x460a92[0x2],{x:_0x2b8f0f,y:_0x16ec89}=_0x4fdcdf,{x:_0x175752,y:_0x2540a4}=_0x7f72e7;return{'left':_0x2b8f0f,'top':_0x16ec89,'width':_0x175752-_0x2b8f0f,'height':_0x2540a4-_0x16ec89};}['_getScale'](){const _0x433f89=_0x72f170,{scaleX:_0x27eca5,scaleY:_0x5d49b3}=this[_0x433f89(0x11d)][_0x433f89(0x423)]();return Math[_0x433f89(0x383)](_0x27eca5,_0x5d49b3);}}var _0x372152=(_0x976448,_0x379980,_0xd5f30e,_0x147f59)=>{const _0x54a7bc=_0x72f170;for(var _0x3fadfc=_0x379980,_0x2ed2ef=_0x976448[_0x54a7bc(0xbe)]-0x1,_0x55c949;_0x2ed2ef>=0x0;_0x2ed2ef--)(_0x55c949=_0x976448[_0x2ed2ef])&&(_0x3fadfc=_0x55c949(_0x3fadfc)||_0x3fadfc);return _0x3fadfc;},_0x42d0f7=(_0x136881,_0x8545b1)=>(_0xef9b03,_0x1d657d)=>_0x8545b1(_0xef9b03,_0x1d657d,_0x136881);let _0x3bebf7=class extends _0x1b3401[_0x72f170(0x35c)]{constructor(_0x5f925,_0x508748,_0x422c69,_0x5f0de3,_0x2b0071){const _0x58701b=_0x72f170;super(),_0x51e1d8(this,'_cursors',[]),(this['_collabCursorController']=_0x5f925,this['_univerInstanceService']=_0x508748,this[_0x58701b(0x10d)]=_0x422c69,this[_0x58701b(0xd6)]=_0x5f0de3,this[_0x58701b(0x244)]=_0x2b0071,this[_0x58701b(0x3b0)]());}[_0x72f170(0x3b0)](){const _0x336668=_0x72f170;this[_0x336668(0xd6)][_0x336668(0x31e)]['pipe'](_0x3151c5[_0x336668(0x1b8)](this[_0x336668(0x3d9)]),_0x3151c5[_0x336668(0x207)](_0x111a3a=>{const _0x10e955=_0x336668;if(_0x111a3a){const {unitId:_0x44a008}=_0x111a3a;return _0x414952[_0x10e955(0x41a)](this[_0x10e955(0x25e)][_0x10e955(0x23b)](_0x44a008),this[_0x10e955(0x244)][_0x10e955(0x1c8)])[_0x10e955(0x2ca)](_0x3151c5[_0x10e955(0x250)](([_0x38bb6a,_0x4a2623])=>({'skeleton':_0x111a3a,'cursors':[..._0x38bb6a['values']()][_0x10e955(0x2b1)](_0x4df5df=>({..._0x4df5df,'color':_0x4a2623[_0x4df5df['color']]}))})));}return _0x414952['of']({'skeleton':null,'cursors':[]});}))[_0x336668(0x112)](({skeleton:_0x5f5290,cursors:_0xe481ae})=>{const _0x20f51d=_0x336668;this['_removeCollabCursors'](),_0x5f5290&&this[_0x20f51d(0x189)](_0x5f5290[_0x20f51d(0x341)],_0xe481ae);});}[_0x72f170(0x189)](_0x52e5bb,_0x3d77ea){const _0x345b79=_0x72f170,_0x3d2c3a=this[_0x345b79(0x3ee)]();if(_0x3d2c3a==null)return;const {scene:_0x1edfd2,document:_0x2fc04a}=_0x3d2c3a,_0x7df044=_0x3d77ea[_0x345b79(0x250)](_0x15d640=>new _0x3df4b6(_0x15d640,_0x1edfd2,_0x52e5bb,_0x2fc04a));this[_0x345b79(0x109)]=_0x7df044;}[_0x72f170(0x356)](){const _0x39d8f5=_0x72f170;this['_cursors'][_0x39d8f5(0x3bf)](_0x30c779=>_0x30c779[_0x39d8f5(0x10c)]()),this[_0x39d8f5(0x109)]=[];}[_0x72f170(0x3ee)](){const _0x3016cc=_0x72f170;return _0x54860c[_0x3016cc(0x29d)](this['_univerInstanceService'],this[_0x3016cc(0x10d)]);}};_0x3bebf7=_0x372152([_0x1b3401[_0x72f170(0x3e5)](_0x1b3401['LifecycleStages']['Steady'],_0x3bebf7),_0x42d0f7(0x0,_0x5c7b32[_0x72f170(0x3c0)](_0x16c4ba)),_0x42d0f7(0x1,_0x1b3401[_0x72f170(0x335)]),_0x42d0f7(0x2,_0x24a900[_0x72f170(0x3f3)]),_0x42d0f7(0x3,_0x5c7b32[_0x72f170(0x3c0)](_0x54860c[_0x72f170(0x332)])),_0x42d0f7(0x4,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401['ThemeService']))],_0x3bebf7);var _0x474aee=(_0x3caac9,_0x4fa296,_0x4fe607,_0x32ffe0)=>{const _0x73e352=_0x72f170;for(var _0xaa971a=_0x4fa296,_0x2c0803=_0x3caac9[_0x73e352(0xbe)]-0x1,_0x4ad022;_0x2c0803>=0x0;_0x2c0803--)(_0x4ad022=_0x3caac9[_0x2c0803])&&(_0xaa971a=_0x4ad022(_0xaa971a)||_0xaa971a);return _0xaa971a;},_0x4d01bc=(_0x2e8df0,_0x51284a)=>(_0x4e15f9,_0x3cfc5d)=>_0x51284a(_0x4e15f9,_0x3cfc5d,_0x2e8df0);const _0x3395c8=_0x72f170(0x139),_0x334f37=_0x72f170(0x407);let _0x2f5fe9=class{constructor(_0x17500e,_0x8a45e0,_0x56b77e){const _0x3e419d=_0x72f170;this[_0x3e419d(0x1a2)]=_0x17500e,this[_0x3e419d(0x201)]=_0x8a45e0,this['localeService']=_0x56b77e,this[_0x3e419d(0x16f)]();}['init'](){const _0x599df9=_0x72f170;this[_0x599df9(0x201)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x36208b,_0x41904b)=>_0x41904b(_0x36208b)[_0x599df9(0x2ca)](_0x414952[_0x599df9(0x2bb)](async _0x3106a3=>{const _0x4ecb2f=_0x599df9;if(_0x3106a3[_0x4ecb2f(0x38e)]===0x191&&window[_0x4ecb2f(0x1ca)](this[_0x4ecb2f(0x2fd)]['t'](_0x4ecb2f(0x318)))){const _0x2e089d=window['encodeURIComponent'](window['location'][_0x4ecb2f(0x195)]);window['location'][_0x4ecb2f(0x195)]=this[_0x4ecb2f(0x148)]()+_0x4ecb2f(0xfb)+_0x2e089d;}return _0x3106a3;}))});}[_0x72f170(0x148)](){const _0x53f997=_0x72f170;var _0x1cedf8;return(_0x1cedf8=this[_0x53f997(0x1a2)][_0x53f997(0x310)](_0x3395c8))!=null?_0x1cedf8:_0x334f37;}};_0x2f5fe9=_0x474aee([_0x4d01bc(0x0,_0x1b3401[_0x72f170(0x1e4)]),_0x4d01bc(0x1,_0x5c7b32['Inject'](_0x2b3eab['HTTPService'])),_0x4d01bc(0x2,_0x5c7b32[_0x72f170(0x3c0)](_0x1b3401[_0x72f170(0x330)]))],_0x2f5fe9);var _0x259b4a=(_0x4b3d30,_0x49a8ad,_0x53efd7,_0x227269)=>{const _0x49510e=_0x72f170;for(var _0xd09767=_0x49a8ad,_0x433dc5=_0x4b3d30[_0x49510e(0xbe)]-0x1,_0x580259;_0x433dc5>=0x0;_0x433dc5--)(_0x580259=_0x4b3d30[_0x433dc5])&&(_0xd09767=_0x580259(_0xd09767)||_0xd09767);return _0xd09767;},_0x410205=(_0x41bcab,_0x134e63)=>(_0x3f788a,_0x5f1915)=>_0x134e63(_0x3f788a,_0x5f1915,_0x41bcab);const _0x566ed2=_0x72f170(0x353);_0x588091[_0x72f170(0xe2)]=(_0x15f489=class extends _0x1b3401['Plugin']{constructor(_0x55461f,_0x4f021c,_0x679c8b){const _0x597da9=_0x72f170;super(),this[_0x597da9(0x1e8)]=_0x55461f,this[_0x597da9(0x397)]=_0x4f021c,this['_localeService']=_0x679c8b,this[_0x597da9(0x17e)]['load']({'zhCN':_0x588fab});}['onStarting'](_0x37f115){const _0x112d2b=_0x72f170;var _0x410f0d,_0x5455f7,_0x311ba4,_0x4989ce,_0x26ce36;_0x37f115[_0x112d2b(0x1bf)]([_0x1b3401[_0x112d2b(0x3f5)],{'useClass':_0x2ff833}]);let _0x4bea56=[[_0x588091[_0x112d2b(0x1d6)]],[_0x239e9b],[_0x2b3eab[_0x112d2b(0x246)]],[_0x159654,{'useClass':_0xd91f6d}],[_0x3f8747],[_0x588091[_0x112d2b(0x3a7)]],[_0x2b3eab[_0x112d2b(0x24f)]],[_0x211af0],[_0x1505a5],[_0x1a629c],[_0x21c0b5],[_0x2f5fe9],[_0x1083e0,{'useClass':(_0x5455f7=(_0x410f0d=this[_0x112d2b(0x1e8)])==null?void 0x0:_0x410f0d[_0x112d2b(0x3d4)])!=null?_0x5455f7:_0x588091[_0x112d2b(0x153)]}],[_0x2b3eab[_0x112d2b(0x20e)],{'useClass':_0x2b3eab[_0x112d2b(0x1ce)]}],[_0x1b3401[_0x112d2b(0x27a)],{'useClass':_0x4748a6}],[_0x588091[_0x112d2b(0x295)]],[_0x588091['DataLoaderController']],[_0x588091[_0x112d2b(0x34a)]],[_0x1e047e],[_0x16c4ba]];(_0x311ba4=this[_0x112d2b(0x1e8)])!=null&&_0x311ba4['enableSingleActiveInstanceLock']&&_0x4bea56[_0x112d2b(0x2c7)]([_0x345c46,{'useClass':_0x502148}]),((_0x4989ce=this[_0x112d2b(0x1e8)])==null?void 0x0:_0x4989ce['collaborationUniverTypes'])==null||this[_0x112d2b(0x1e8)][_0x112d2b(0x3d0)][_0x112d2b(0x11c)](_0x1b3401[_0x112d2b(0x22d)][_0x112d2b(0x137)])?_0x4bea56[_0x112d2b(0x2c7)]([_0x26bb41]):this[_0x112d2b(0x1e8)]['collaborationUniverTypes'][_0x112d2b(0x11c)](_0x1b3401[_0x112d2b(0x22d)][_0x112d2b(0x2f7)])&&_0x4bea56[_0x112d2b(0x2c7)]([_0x3bebf7]),_0x4bea56=_0x1b3401[_0x112d2b(0x3ef)](_0x4bea56,(_0x26ce36=this[_0x112d2b(0x1e8)])==null?void 0x0:_0x26ce36[_0x112d2b(0x3db)]),_0x4bea56[_0x112d2b(0x3bf)](_0x54ee96=>_0x37f115['add'](_0x54ee96)),_0x37f115[_0x112d2b(0x25f)](_0x2b3eab[_0x112d2b(0x246)])[_0x112d2b(0x210)]({'priority':0x14,'interceptor':_0x37f115[_0x112d2b(0x1d4)](_0x2b3eab['ThresholdInterceptorFactory'],{'maxParallel':0x6})}),this[_0x112d2b(0xf7)]();}[_0x72f170(0xf7)](){const _0x203ec1=_0x72f170;var _0x25d6a5,_0x181655;(_0x25d6a5=this[_0x203ec1(0x1e8)])!=null&&_0x25d6a5[_0x203ec1(0x3e9)]||this[_0x203ec1(0x397)][_0x203ec1(0x25f)](_0x588091[_0x203ec1(0x3a7)])[_0x203ec1(0x2d9)](),(_0x181655=this['_config'])!=null&&_0x181655[_0x203ec1(0x25b)]&&this[_0x203ec1(0x397)][_0x203ec1(0x25f)](_0x2f5fe9);}},_0x51e1d8(_0x15f489,_0x72f170(0x14b),_0x566ed2),_0x15f489),_0x588091['CollaborationClientPlugin']=_0x259b4a([_0x410205(0x1,_0x5c7b32[_0x72f170(0x3c0)](_0x5c7b32['Injector'])),_0x410205(0x2,_0x5c7b32['Inject'](_0x1b3401[_0x72f170(0x330)]))],_0x588091[_0x72f170(0xe2)]);const _0x2c0824={'collabStatus':{'fetchMiss':_0x72f170(0x216),'conflict':_0x72f170(0x312),'notCollab':'Local\x20file','synced':_0x72f170(0x2d5),'syncing':_0x72f170(0x2e8),'offline':_0x72f170(0x193)},'session':{'connection-failed':_0x72f170(0x39e),'will-retry':_0x72f170(0x218),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x72f170(0x1ad)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x72f170(0x37f)},'collaboration':{'single-unit':{'warning':_0x72f170(0x290)}},'auth':{'needGotoLoginAlert':_0x72f170(0x162)}};_0x588091[_0x72f170(0x284)]=_0x202f36,_0x588091[_0x72f170(0x12d)]=_0x575e39,_0x588091['CollaborationStatus']=_0x3a3bdf,_0x588091[_0x72f170(0x31b)]=_0x27a980,_0x588091['HEARTBEAT_INTERVAL_KEY']=_0x5d723c,_0x588091['HEARTBEAT_TIMEOUT_KEY']=_0x855346,_0x588091['ICollaborationSocketService']=_0x1083e0,_0x588091['IURLService']=_0x159654,_0x588091['LOCAL_CACHE_INTERVAL_KEY']=_0x33701a,_0x588091[_0x72f170(0x139)]=_0x3395c8,_0x588091[_0x72f170(0x12e)]=_0x4d10b3,_0x588091[_0x72f170(0x21b)]=_0x256873,_0x588091[_0x72f170(0x2c8)]=_0x4457b3,_0x588091['WebURLService']=_0xd91f6d,_0x588091['deserializeToCombResponse']=_0x18d27e,_0x588091[_0x72f170(0x276)]=_0x2c0824,_0x588091[_0x72f170(0xfd)]=_0x4ec68d,_0x588091[_0x72f170(0xde)]=_0x588fab,Object[_0x72f170(0x166)](_0x588091,Symbol[_0x72f170(0x266)],{'value':_0x72f170(0xdb)});}));
|
1
|
+
function _0x3f00(_0x1dc1ff,_0x6e399){const _0x4912fb=_0x4912();return _0x3f00=function(_0x3f009f,_0x591f33){_0x3f009f=_0x3f009f-0x129;let _0xcfc9f6=_0x4912fb[_0x3f009f];return _0xcfc9f6;},_0x3f00(_0x1dc1ff,_0x6e399);}function _0x4912(){const _0x39c5e5=['_renderManagerService','getRenderById','MSG_FOR_ERROR','getAncestorScale','univer-pro.collaboration-client.single-active-unit-service','unitId','BehaviorSubject','AuthzIoHttpService','_anchorDot','29218nTUomN','makeDirty','addObject','unitID','_session','dispose$','_initModules','submit\x20changeset\x20error!','_unitID','compose','_localCacheService','_sendHeartbeatTimer','UniverNetwork','getMemberID','_onRemoteACK','font','getActiveRange','_docTransformSelectionsService','next','7QCymNp','_selfUnitIDs','SNAPSHOT_INVALID_SNAPSHOT','save','_textBubble','name','HEARTBEAT','DataLoaderController','[CollaborationEntity]','PENDING','clsx','Ready','status','transformMutation','workbook','LICENSE_MAX_UNITS_EXCEEDED','from','univerjs-icon\x20univerjs-icon-','listCollaborators','Vector2','IBeforeCloseService','getDocObject','_cursorInfo$','image/jpg','runRefRangeMutations','_onFetchMissResult','stringify','_colorAssignService','memberID','eventID','/collaborator','some','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','displayName','_onUserJoin','unknown','save\x20fail\x20reason\x20is\x20','Module','interceptor','/universer-api/snapshot/','_syncEditingCollabCursor','restore','conflict','transformStack\x20failed!','univer-online-status-title','OnLineSingle','_id','getImage','UniverEngineFormula','_handleHover','getTime','_online','rxjs','InsertRowCommandId','_socketService','session.connection-failed','_memberService','UniverDrawing','_send','UniverUi','_getSaveTimeout','getTypeOfUnitDisposed$','_updateLocalCursor','attrs','session','#FFF','purple300','[OfflineState]:\x20received\x20acknowledgement.','conflict.content','_onRefRangeChange','RxDisposable','getConfig','amd','_messageService','userID','_getCtorByUniverType','auth.needGotoLoginAlert','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_transitionLocked','?size=','Unknown\x20user','connection\x20error','selections','addEventListener','_range','ILocalStorageService','operators','_createHandler','_startSheetCollabCursor','HELLO','loadOfflineData','bottom','_updateStatus','ACTIVE_UNIT_EVENT_CHANNEL','onSendChangeset','_acknowledgedAwaitingChangeset','CollaborationStatus','push','collabStatus.conflict','[SyncedState]:\x20received\x20rejection.','_onConflict','collab-text-range-','/new_changes','enableAuthServer','reject','_localeService','beginPath','assign','setActiveRange','_loadDoc','@wendellhu/redi','NOT_FOUND','m1Prime','UNDEFINED','switchMap','NEW_CHANGESETS','ImageSourceType','...','_replaceFileID','_startDocCollabCursor','popstate','_loadSheet','UniverCollaborationClient','getCollabCursors$','APPLY_PERMISSION_DENIED','removeParam','_getMergeRange','_setupSubUnitSync','file','FETCH_MISS','COMPRESS_MUTATION_APPLY','_saveCache','createCollaborator','getCurrentUnitForType','&to=','fillRule','RETRY_CONNECTING_MAX_COUNT','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_scene','_collaborationController','connectInjector','_getRedoStack','FromArray','delay','addObjects','WebURLService','OTHER_CLIENTS_EDITING','ThemeService','_sheetSkeletonManagerService','width','isTransformChangesetsSuccess','_name','_waitCount','socket\x20close','xlink:href','[SyncedState]:\x20received\x20acknowledgement.','XHRHTTPImplementation','SYNCED','close','values','registerRefRange','_roomMembers','cursorInfo','onPointerEnterObserver','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getOwnPropertySymbols','objectID','getUnitType','@univerjs/design','replaceState','_hideTimer','UNAUTHENTICATED','collaboration-client.offline-data-not-saved','ranges','_assignedColors','getCurrent','_transformService','UUID','isEditing','textEncoder','_lockTransition','substring','USERS_LEAVE','getCoordByCell','onMouseMove','message$','M0\x200H16V16H0z','LocalUndoRedoService','getSheetId','complete','@univerjs/sheets','idSuffix','cmd','/resources','setInterval','revision','fetch_missing','Disposable','_commandService','_getSignURL','LIVESHARE_NEW_HOST','\x0aCurrent:\x20','_sessionStatus$','putCollaborators','merge','OFFLINE','2012XpVcFx','4376OXhGLq','SetTextSelectionsOperation','b64DecodeUnicode','CollaborationClientPlugin','_collabSessionService','routeKey','current','LIVESHARE_FETCH_OPERATIONS','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','resend','LOCAL_CACHE_INTERVAL','/universer-api/stream/file/upload','hasOwnProperty','indexOf','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','MUTATION','ERROR_IMAGE','_setupBeforeClosingHandler','code','\x20to\x20','_transformUndoRedoStack','saveImage','ALREADY_EXISTS','_color','HEARTBEAT_TIMEOUT_KEY','APPLY_REVISION_CONFILICT','_hovered','_currentUser','_type','registerComponent','getActiveSheet','DesktopCollaborationStatusDisplayController','Warning','_scheduleClearOtherTimer','children','CollaborationStatusDisplay','handleInsertCol','_tryEnsureSocket','LIVESHARE_TERMINATE','693shiDpd','EffectRefRangId','_initStatusListener','get','conflict.title','_handler','includes','svg','_change$','/allowed','JOIN','SelectionManagerService','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_createInitialStateImpl','isPermissionRej','sequenceExecute','FETCH_MISSING','_getSendChangesetTimeout','onlineStatusIcon','mutations','PERMISSION_DENIED','arc','_http','ILogService','_permissionService','batchAllowed','hide','onlineStatus','handleIRemoveCol','originalMeta','OnLifecycle','unsubscribe','transformSelections','_transformSelections','registerHTTPInterceptor','ICommandService','className','CHANGESET_REJ','fetchMissingChangesets','column','getRoom','Injector','Optional','subscribe','[CollaborationUndoRedoService]','liveShareNewHost','replaceTextRanges','blue400','_configService','docStateChange$','updateCollaborator','@univerjs/docs','_singleActiveUnitService','csRejEvent','filter','objectType','json','setItem','/-/object/-/batch_allowed','onRemoteAck','UNKNOWN_CMD','saveOfflineData','storage','_updateState','data','editing\x20status\x20changed\x20to','LOCAL_CACHE_INTERVAL_KEY','forwardRef','enableLocalCache','setAlpha','collabStatus.notCollab','fill','combineLatest','CollaborationSessionService','_onCombEvent','status$','_unlockTransition','_getDocObject','UniverEngineRender','params','_clearTimeoutTimer','IImageIoService','call','_init','_onRemoteChangeset','toString','_httpService','synced','INVALID_ARGUMENT','_createSocket','SetSelectionsOperation','_updateSubUnitFromURLParams','getSelections','/block/','top','UNIVER_SLIDE','TOO_MANY_REQUESTS','rxjs/operators','apply','SheetSkeletonManagerService','@univerjs/rpc','parse','newValue','objectActions','getInterceptPoints','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','dispose','remove','_onRecvEvent','_toggleOffline','div','APPLY_REJECT','executeCommand','VIEW_MAIN','Subject','RegularPolygon','put','takeUntil','_getAPIPrefixPath','useObservable','Rect','permissionRejEvent','_isPermissionRej','members','transformUndoRedo','_univerInstanceService','fetchThroughInterceptors','_clearRedo','shareReplay','_undoStacks','roles','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','UniverInstanceType','getOffsetConfig','handleInsertRow','generateRandomId','_handleLeaveEvent','@univerjs/engine-formula','_getLoginPath','SNAPSHOT_SERVER_URL_KEY','error','JOINING','COLORS','_beforeCloseService','_drawRange','fromCollab','assignAColorForMemberID','_getAnchorBounding','CollaborationSession','session.room-full','_handleEvent','incrementRevForDocument','onPointerLeaveObserver','BASE64','INotificationService','_decreaseWaiting','React','collabStatus.syncing','handleDeleteRangeMoveLeft','_draw','_initStatusComponent','getItem','sheetID','onCommandExecuted','unit','getUnitId','readAsDataURL','href','propertyIsEnumerable','awaitingChangeset','lineTo','target','serializeTextRange','parseProtocolChangeset','ImageUploadStatusType','currentColor','onTransformIME','UNRECOGNIZED','defIds','_HTTPService','_sendingTimer','_state$','0\x200\x2016\x2016','SUCCUSS','_replayCachedMutations','getUndoRedoMutationParamsCache','DeleteRangeMoveLeftCommandId','appendMutation','_cachedData','_scheduleReconnection','_compressMutationService','subUnitId','deserializeToCombResponse','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','startRow','_fetchMissChangesets','COLLAB_WEB_SOCKET_URL_KEY','getCollabEntity$','getCollabEntity','univer-online-status-icon','DisposableCollection','_handleHeartbeatEvent','_labelPosition','/object','IMEInputManagerService','IMessageService','useRef','moveTo','transform','_roomMembers$','pushState','_imageSourceCache','/unit/','IPermissionService','saveSheetBlock','_refRangeService','CollaborationEvent','UNIVER_DOC','_event$','Starting','_awaitingChangeset','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','show','_updateLocalCache','has','defs','patch','_substituteRedoStack','@univerjs/engine-render','removeMember','_removeCollabCursors','LocalCacheService','IConfigService','setWaitCount','?url=','_heartbeatTimer','_transformIMECache','getResourcesRequest','_executeRemoteChangeset','RemoveRowCommandId','_clearCollaborationTimeoutTimer','CHANGESET_ACK','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','_onCursorUpdate','path','@univerjs/core','find','512265prXYSL','online','HEARTBEAT_INTERVAL','@univerjs/sheets-ui','FAIL','skeleton','AWAITING','_updateCollabCursors','_updateURLWithCurrentState','transformRemoteChangeset','isArray','toggleOnline','image/png','handleInsertRangeMoveDown','onRemoteChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','_createInitialState','_socket$','extend','endRow','_applyRemoteChangeset','c1Prime','url(#$1','_onConnectionFailed','post','off-line-single_clip0_910_343','type','collabCursorState$','range','state','map','SnapshotService','getRangePointData','createInstance','evenodd','resourceIDs','height','_socketMessageSubscription','getScrollXYByRelativeCoords','_exhaustRemoteChangesetQueue','deleteCollaborator','concatMap','TEXT_RANGE_LAYER_INDEX','urlChange$','max','RemoveColCommandId','MoveRangeCommandId','_waitForHeartbeatResponse','icon','title','_getUndoStack','verdancy600','getImageSourceCache','textRanges','deepClone','_getScale','_getUploadFileURL','HEARTBEAT_INTERVAL_KEY','onTransformSelections','session.will-retry','socketService','UniverCore','create','roomMembers$','[OfflineState]:\x20received\x20rejection.','UniverCollaboration','_cursor','exports','InsertColCommandId','toDisposable','Shape','row','LOGIN_URL_KEY','collabStatus.offline','\x20in\x20_schedule.','disposeUnit','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','disableLocalCache','_queuedRemoteChangesets','_timeoutTimer','send','sessionStatus$','reduce','_scheduleSaving','HEARTBEAT_TIMEOUT','fetching\x20missing\x20changesets\x20from\x20','saveChangeset','NO_OTHER_CLIENTS_EDITING','_substituteUndoStack','_collaborationPaused','findNodePositionByCharIndex','drawWith','serializeRangeWithSheet','min','_shapes','_onMessage','getSheetBySheetId','replace','_sessions','searchParams','debug','CommandType','_docStateChangeManagerService','hovered','_uiPartsService','IUIPartsService','UNKNOWN_CODE','use','CONFLICT','location','_removeRoom','rgba(255,\x20255,\x20255,\x200.01)','toRgbString','permission.content','[DataLoaderController]','startColumn','unload','debounce','_drawAnchor','_retryConnectingTimer','_members','_remoteChangesetQueue','_onJoinRoomEvent','_notificationService','distinctUntilChanged','[CollaborationSession]','onMissedChangesetFetched','@univerjs/drawing','UniverSheets','Plugin','@univerjs-pro/collaboration','failed\x20to\x20apply\x20missed\x20changesets!','parseChangesetToProtocol','IDLE','[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','_handleJoinEvent','on-line-single','addImageSourceCache','createElement','append','1397090pkoPOR','RichTextEditingMutation','onload','state$','_status$','_transformUndoredo','RECV','_pendingMutations','size','getColor','UNIVER_SHEET','handleIRemoveRow','closePath','WorkbookEditablePermission','getUnitStatus$','mergeOverrideWithDependencies','getSheetObject','handleMoveRange','loadSheet','TextSelectionManagerService','sheetId','collaMsg','_eventUnsubscribe','updateOfflineData','_removeClearOtherTimer','1em','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearOtherTimers','override','_clearScheduledTask','awaiting_with_pending','contains','Univer','@wendellhu/redi/react-bindings','_revisionService','_retryCount','@univerjs/ui','RETRY_CONNECTING_INTERVAL','CHANGESET_REVISION_CONFILICT','event$','requireSession','SEND_CHANGESET_TIMEOUT_KEY','LIVESHARE_REQUEST_HOST','411888qxQBPN','UNIVER_UNKNOWN','measureText','SetWorksheetActivateCommand','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','entries','NOT_COLLAB','getValue','onTransformRemoteChangesetByIMECache','clearTimeout','_rescheduleHeartbeatEvent','_onRemoteRejected','FileId','_colorIndex','ISnapshotServerService','/universer-api/file/{fileID}/sign-url','_clearHeartbeatTimer','_ensureSubject','_render','on-line-single_clip0_910_349','Error','DEFAULT_FILE_NAME','getCurrentRevForDocument','COLLAB_SUBMIT_CHANGESET_URL_KEY','Inject','COLLAB_SUBMIT_CHANGESET_URL','pending','_lastPointer','_snapshotService','_onUserLeave','clear','2905gDbUyB','LocaleService','SUBMIT_CHANGESET','serializeCombRequest','onSyncEditingCollabCursor','380124yvbNVp','clearInterval','black','IUndoRedoService','_transformStack','/universer-api/authz','_showConflictNotification','PERMISSION_REJ','init','collab-text-anchor-','5nuVvul','_docSkeletonManagerService','_scheduleTimestamp','forEach','_saveTaskMap','permission.title','_onCursorDelete','_getCurrentRevision','onMissingChangesets','fillStyle','createIdentifier','_undoRedoService','_sendHeartbeat','_submitChangeset','_exhaustSavingTask','InsertRangeMoveDownCommandId','Steady','INGEST','_unitOnClients','_onConnectionOpen','transformMutationsWithChangeset','ERROR_EXCEED_SIZE','HTTPService','clipPath','univer-offline','delete','[FetchMissState]','UPDATE_CURSOR','\x20-\x20','onPointerMoveObserver','Tools','[CollaborationSessionService]','c2Prime','getFocusedUnit','_docSyncEditingCollabCursorService','lodash','handleInsertRangeMoveRight','AWAITING_WITH_PENDING','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','currentSkeleton$','src','_collabCursorController','setParam','VIEWPORT_KEY','_socketReady','MessageType','fillText','debounceTime','localeService','_getSheetObject','image/gif','concat','isTransformMutationFailure','getCurrentUser','listRoles','ThresholdInterceptorFactory','_disableEditing','_schedule','history','cursorInfo$','doc.mutation.rich-text-editing','all','_disabled','_entityInit$','list','subunit','EXCHANGE_SIGN_URL_SERVER_URL_KEY','leaveEvent','currentTheme$','_onLocalMutation','_syncEditingCollabCursorService','_startCollaboration','roomInfos','isTransformMutationsWithChangesetFailure','onStarting','_socket','actions','11nPXMfM','onRemoteRej','editingUnit','_joinRoom','deserializeRangeWithSheet','IURLService','BuiltInUIPart','m2Prime','flatMap','_incrementRevisionNumber','_docTransformIMECacheService','liveShareOperation','_logService','_snapshotServerService','change$','awaiting','off-line-single','ONLINE','isActive','_hover','_state','infoRsp','USERS_ENTER','updatePermissionPoint','getParam','ITransformService','trim','setUndoRedoMutationParamsCache','_transformRemoteChangesetByIMECache','getTypeOfUnitAdded$','/universer-api/snapshot','whenReady','9znBZeB','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMember','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_unitStatus','_themeService','setShapeProps','set','selection','add','tag','roomMembers','_transformPreviousActiveRange','focused$','enableOfflineEditing','toggleOffline','_ws','length','loadDoc','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CONNECTOR_DATA_TOO_LARGE','_config','syncEditingCollabCursor','\x0aAfter:\x20','lodash/debounce','baseRev','_toggleOnline','take','disposeWithMe','_collabCursorState$','open$','rev','allowed','unshift','offline','LIVESHARE_OPERATION','text','transformChangesets','body','collaboration.single-unit.warning','#fff','none','random','onStateChange','_cursors','CompressMutationService','useDependency','fromEvent','IUniverInstanceService','createSocket','then','registerOnClose','/-/object/list','image/bmp','_clearUndo','DeleteRangeMoveUpCommandId','[CollaborationState]:\x20apply\x20error!','NodePositionConvertToCursor','isTransformMutationsWithChangesetSuccess','enableSingleActiveInstanceLock','_injector','LEAVE','string','collabStatus.fetchMiss','prototype','function','asObservable','_urlService','ERROR_IMAGE_TYPE','not_collab','_collaborationTimeoutTimer','_anchor','transformByState','CollaborationSocketService','_docSkeleton','ColorKit','round','PSEUDO_FETCH_MISSING_RESULT','updateMember','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','WebSocketService','color','RevisionService','collabStatus.synced','LifecycleStages','POST','@univerjs/network','getUniverSheetInstance','pipe','colorChannel1','/role','objects','_localStorageService','CollaborationController','jiqing500','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','labelPosition','translate(.97)','encode','_checkMissing','COMPRESS_MUTATION_SEND','saveSnapshot'];_0x4912=function(){return _0x39c5e5;};return _0x4912();}(function(_0xc57b44,_0x2f7ec3){const _0x1dbd92=_0x3f00,_0x5184e8=_0xc57b44();while(!![]){try{const _0x21f0c8=-parseInt(_0x1dbd92(0x447))/0x1*(-parseInt(_0x1dbd92(0x434))/0x2)+-parseInt(_0x1dbd92(0x17b))/0x3*(-parseInt(_0x1dbd92(0x153))/0x4)+parseInt(_0x1dbd92(0x358))/0x5*(-parseInt(_0x1dbd92(0x32a))/0x6)+parseInt(_0x1dbd92(0x349))/0x7*(-parseInt(_0x1dbd92(0x154))/0x8)+-parseInt(_0x1dbd92(0x3c5))/0x9*(-parseInt(_0x1dbd92(0x2ff))/0xa)+-parseInt(_0x1dbd92(0x3a5))/0xb*(-parseInt(_0x1dbd92(0x34e))/0xc)+parseInt(_0x1dbd92(0x272))/0xd;if(_0x21f0c8===_0x2f7ec3)break;else _0x5184e8['push'](_0x5184e8['shift']());}catch(_0x55cc31){_0x5184e8['push'](_0x5184e8['shift']());}}}(_0x4912,0x209da),function(_0x3bd12a,_0x1c55b2){const _0x476b89=_0x3f00;typeof exports=='object'&&typeof module<'u'?_0x1c55b2(exports,require(_0x476b89(0x270)),require(_0x476b89(0x143)),require(_0x476b89(0x12d)),require(_0x476b89(0x323)),require('@univerjs-pro/collaboration'),require(_0x476b89(0x4b5)),require('rxjs'),require(_0x476b89(0x1dc)),require(_0x476b89(0x1ae)),require(_0x476b89(0x41b)),require(_0x476b89(0x2f1)),require('@univerjs/engine-formula'),require('lodash/debounce'),require(_0x476b89(0x25f)),require('@univerjs/sheets-ui'),require(_0x476b89(0x320)),require('react'),require(_0x476b89(0x451)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x476b89(0x48f)]?define([_0x476b89(0x2b5),_0x476b89(0x270),_0x476b89(0x143),'@univerjs/design',_0x476b89(0x323),_0x476b89(0x2f4),_0x476b89(0x4b5),'rxjs',_0x476b89(0x1dc),_0x476b89(0x1ae),_0x476b89(0x41b),_0x476b89(0x2f1),_0x476b89(0x204),_0x476b89(0x3dd),_0x476b89(0x25f),_0x476b89(0x275),_0x476b89(0x320),'react','clsx',_0x476b89(0x1df)],_0x1c55b2):(_0x3bd12a=typeof globalThis<'u'?globalThis:_0x3bd12a||self,_0x1c55b2(_0x3bd12a[_0x476b89(0x4c1)]={},_0x3bd12a[_0x476b89(0x2af)],_0x3bd12a[_0x476b89(0x2f2)],_0x3bd12a['UniverDesign'],_0x3bd12a[_0x476b89(0x482)],_0x3bd12a[_0x476b89(0x2b3)],_0x3bd12a[_0x476b89(0x4b5)],_0x3bd12a[_0x476b89(0x47b)],_0x3bd12a['rxjs'][_0x476b89(0x49d)],_0x3bd12a['UniverDocs'],_0x3bd12a[_0x476b89(0x440)],_0x3bd12a[_0x476b89(0x480)],_0x3bd12a[_0x476b89(0x477)],_0x3bd12a[_0x476b89(0x37b)][_0x476b89(0x2e7)],_0x3bd12a[_0x476b89(0x1c9)],_0x3bd12a['UniverSheetsUi'],_0x3bd12a[_0x476b89(0x320)],_0x3bd12a[_0x476b89(0x217)],_0x3bd12a['clsx'],_0x3bd12a['UniverRpc']));}(this,function(_0x5bd0fe,_0x40aff1,_0x361837,_0x4ae90e,_0x4f2827,_0x57eaa4,_0x58498f,_0x3171f1,_0x32d0c5,_0xc138e5,_0x12f0de,_0x3ce361,_0x44757f,_0x57a849,_0x1fd8d9,_0x39fa2f,_0x423c0e,_0x2def2a,_0x373f90,_0x33ffd7){'use strict';const _0x50a247=_0x3f00;var _0x51c741=Object['defineProperty'],_0x1ac24e=(_0x52a2c7,_0x165070,_0x233186)=>_0x165070 in _0x52a2c7?_0x51c741(_0x52a2c7,_0x165070,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x233186}):_0x52a2c7[_0x165070]=_0x233186,_0x22b1a2=(_0x3dcf38,_0x128595,_0x3e26bd)=>(_0x1ac24e(_0x3dcf38,typeof _0x128595!='symbol'?_0x128595+'':_0x128595,_0x3e26bd),_0x3e26bd),_0x2e1c24,_0x580026=(_0x51c462=>(_0x51c462[_0x51c462[_0x50a247(0x4b8)]=0x0]='UNDEFINED',_0x51c462[_0x51c462['OK']=0x1]='OK',_0x51c462[_0x51c462['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x51c462[_0x51c462[_0x50a247(0x18f)]=0x3]=_0x50a247(0x18f),_0x51c462[_0x51c462[_0x50a247(0x4b6)]=0x4]=_0x50a247(0x4b6),_0x51c462[_0x51c462[_0x50a247(0x130)]=0x5]=_0x50a247(0x130),_0x51c462[_0x51c462[_0x50a247(0x16a)]=0x6]=_0x50a247(0x16a),_0x51c462[_0x51c462[_0x50a247(0x1d3)]=0x7]=_0x50a247(0x1d3),_0x51c462[_0x51c462[_0x50a247(0x1db)]=0x8]='TOO_MANY_REQUESTS',_0x51c462[_0x51c462[_0x50a247(0x325)]=0x1389]=_0x50a247(0x325),_0x51c462[_0x51c462[_0x50a247(0x449)]=0x1771]=_0x50a247(0x449),_0x51c462[_0x51c462[_0x50a247(0x1ea)]=0x1b59]=_0x50a247(0x1ea),_0x51c462[_0x51c462['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x51c462[_0x51c462[_0x50a247(0x16d)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x51c462[_0x51c462['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x50a247(0x4c3),_0x51c462[_0x51c462[_0x50a247(0x3d9)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x51c462[_0x51c462[_0x50a247(0x456)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51c462[_0x51c462[_0x50a247(0x424)]=0x232a]=_0x50a247(0x424),_0x51c462[_0x51c462['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x51c462[_0x51c462[_0x50a247(0x281)]=0x232c]=_0x50a247(0x281),_0x51c462[_0x51c462['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x51c462[_0x51c462[_0x50a247(0x22c)]=-0x1]=_0x50a247(0x22c),_0x51c462))(_0x580026||{}),_0x4cf902=(_0x481a69=>(_0x481a69[_0x481a69[_0x50a247(0x32b)]=0x0]=_0x50a247(0x32b),_0x481a69[_0x481a69[_0x50a247(0x254)]=0x1]='UNIVER_DOC',_0x481a69[_0x481a69[_0x50a247(0x309)]=0x2]=_0x50a247(0x309),_0x481a69[_0x481a69['UNIVER_SLIDE']=0x3]=_0x50a247(0x1da),_0x481a69[_0x481a69[_0x50a247(0x22c)]=-0x1]=_0x50a247(0x22c),_0x481a69))(_0x4cf902||{}),_0x546f87=(_0x66ef0c=>(_0x66ef0c[_0x66ef0c[_0x50a247(0x1b7)]=0x0]='UNKNOWN_CMD',_0x66ef0c[_0x66ef0c[_0x50a247(0x4a0)]=0x1]=_0x50a247(0x4a0),_0x66ef0c[_0x66ef0c['JOIN']=0x2]=_0x50a247(0x185),_0x66ef0c[_0x66ef0c[_0x50a247(0x402)]=0x3]='LEAVE',_0x66ef0c[_0x66ef0c['INGEST']=0x4]=_0x50a247(0x369),_0x66ef0c[_0x66ef0c[_0x50a247(0x44d)]=0x5]=_0x50a247(0x44d),_0x66ef0c[_0x66ef0c[_0x50a247(0x305)]=0x6]=_0x50a247(0x305),_0x66ef0c[_0x66ef0c['UNRECOGNIZED']=-0x1]=_0x50a247(0x22c),_0x66ef0c))(_0x546f87||{}),_0x3257cd=(_0x3f422d=>(_0x3f422d[_0x3f422d['UNKNOWN_CODE']=0x0]=_0x50a247(0x2dc),_0x3f422d[_0x3f422d['OK']=0x1]='OK',_0x3f422d[_0x3f422d['FAIL']=0x2]=_0x50a247(0x276),_0x3f422d[_0x3f422d[_0x50a247(0x22c)]=-0x1]=_0x50a247(0x22c),_0x3f422d))(_0x3257cd||{}),_0x570165=(_0x5cf440,_0xd94224,_0x362959,_0x2210a3)=>{const _0x19fb07=_0x50a247;for(var _0xe8197c=_0xd94224,_0x5817b2=_0x5cf440[_0x19fb07(0x3d6)]-0x1,_0x11ffc4;_0x5817b2>=0x0;_0x5817b2--)(_0x11ffc4=_0x5cf440[_0x5817b2])&&(_0xe8197c=_0x11ffc4(_0xe8197c)||_0xe8197c);return _0xe8197c;},_0x4c5284=(_0x5e2c2e,_0x351353)=>(_0x4373fd,_0xb5dc88)=>_0x351353(_0x4373fd,_0xb5dc88,_0x5e2c2e);let _0x370285=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x1e0fc8){const _0x110f3f=_0x50a247;super(),_0x22b1a2(this,'_roomMembers',new Map()),_0x22b1a2(this,'_currentUser',null),(this[_0x110f3f(0x1f8)]=_0x1e0fc8,this[_0x110f3f(0x3e1)](_0x40aff1[_0x110f3f(0x2b7)](_0x3171f1[_0x110f3f(0x151)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40aff1[_0x110f3f(0x1ff)]['UNIVER_SHEET'])[_0x110f3f(0x41d)](_0x32d0c5[_0x110f3f(0x290)](_0x5a2eaa=>_0x5a2eaa[_0x110f3f(0x220)]())),this[_0x110f3f(0x1f8)]['getTypeOfUnitDisposed$'](_0x40aff1[_0x110f3f(0x1ff)][_0x110f3f(0x254)])[_0x110f3f(0x41d)](_0x32d0c5['map'](_0x4a28d9=>_0x4a28d9['getUnitId']())),this['_univerInstanceService'][_0x110f3f(0x484)](_0x40aff1[_0x110f3f(0x1ff)][_0x110f3f(0x1da)])[_0x110f3f(0x41d)](_0x32d0c5[_0x110f3f(0x290)](_0x32b3b2=>_0x32b3b2[_0x110f3f(0x220)]())))[_0x110f3f(0x1a6)](_0x518715=>this[_0x110f3f(0x2e0)](_0x518715)))));}['setCurrentUser'](_0x1f3684){const _0x8a7196=_0x50a247;this[_0x8a7196(0x16f)]=_0x1f3684;}[_0x50a247(0x38d)](){const _0x5d5ce8=_0x50a247;return this[_0x5d5ce8(0x16f)];}[_0x50a247(0x413)](_0x4ef25d,_0x29f630){const _0x3e6c30=_0x50a247;let _0x44350e=this[_0x3e6c30(0x4e8)]['get'](_0x4ef25d);_0x44350e||(_0x44350e=new _0x23a441(),this[_0x3e6c30(0x4e8)][_0x3e6c30(0x3cc)](_0x4ef25d,_0x44350e)),_0x44350e[_0x3e6c30(0x413)](_0x29f630);}['removeMember'](_0x1e103d,_0x42f25d){const _0x52ecf8=_0x50a247,_0x4c7831=this[_0x52ecf8(0x4e8)][_0x52ecf8(0x17e)](_0x1e103d);_0x4c7831&&_0x4c7831[_0x52ecf8(0x260)](_0x42f25d);}[_0x50a247(0x1a3)](_0x40886d){const _0x25b41a=_0x50a247;return this[_0x25b41a(0x4e8)][_0x25b41a(0x17e)](_0x40886d);}[_0x50a247(0x3c7)](_0x5aee9f,_0x51bc97){const _0x3b09eb=_0x50a247,_0x234693=this[_0x3b09eb(0x4e8)]['get'](_0x5aee9f);if(_0x234693)return _0x234693[_0x3b09eb(0x3c7)](_0x51bc97);}[_0x50a247(0x2e0)](_0x48794b){const _0x27c81a=_0x50a247,_0x596e9b=this[_0x27c81a(0x4e8)][_0x27c81a(0x17e)](_0x48794b);_0x596e9b&&(_0x596e9b[_0x27c81a(0x1e5)](),this[_0x27c81a(0x4e8)][_0x27c81a(0x371)](_0x48794b));}['dispose'](){const _0x2bda1d=_0x50a247;this[_0x2bda1d(0x4e8)][_0x2bda1d(0x35b)](_0x549f24=>_0x549f24[_0x2bda1d(0x1e5)]()),this[_0x2bda1d(0x4e8)][_0x2bda1d(0x348)]();}};_0x370285=_0x570165([_0x4c5284(0x0,_0x40aff1[_0x50a247(0x3f5)])],_0x370285);class _0x23a441 extends _0x40aff1['Disposable']{constructor(){const _0x294648=_0x50a247;super(...arguments),_0x22b1a2(this,_0x294648(0x2ea),new Map());}[_0x50a247(0x1e5)](){const _0x3368f7=_0x50a247;this[_0x3368f7(0x2ea)][_0x3368f7(0x348)]();}[_0x50a247(0x413)](_0x4bd7e8){const _0x251dfd=_0x50a247;this[_0x251dfd(0x2ea)][_0x251dfd(0x3cc)](_0x4bd7e8['memberID'],_0x4bd7e8);}['removeMember'](_0x45b466){const _0x27b4d1=_0x50a247;this['_members'][_0x27b4d1(0x371)](_0x45b466);}[_0x50a247(0x3c7)](_0x23e11f){const _0x3101cf=_0x50a247;return this['_members'][_0x3101cf(0x17e)](_0x23e11f);}}function _0x22048b(_0x14cdcb){const _0x21ed60=_0x50a247;var _0x3e0a26,_0x1eed14,_0x2b7511,_0x1cc096;const _0x2e0972=_0x14cdcb[_0x21ed60(0x1bb)],_0x2816ce=JSON[_0x21ed60(0x1e0)](_0x2e0972);switch(_0x2816ce[_0x21ed60(0x145)]){case _0x546f87['HEARTBEAT']:case _0x546f87[_0x21ed60(0x4a0)]:{const _0x3c8387=_0x2816ce[_0x21ed60(0x3ba)];return{..._0x2816ce,'data':_0x3c8387,'cmd':_0x2816ce[_0x21ed60(0x145)]};}case _0x546f87[_0x21ed60(0x185)]:{const _0x1bee84=_0x2816ce['joinRsp'];return{..._0x2816ce,'data':_0x1bee84,'cmd':_0x2816ce[_0x21ed60(0x145)]};}case _0x546f87[_0x21ed60(0x305)]:{const _0x46d104=_0x2816ce[_0x21ed60(0x314)];switch(_0x46d104[_0x21ed60(0x464)]){case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x355)]:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x3e0a26=_0x46d104[_0x21ed60(0x1f4)])==null?void 0x0:_0x3e0a26['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)]['CHANGESET_ACK']:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x1eed14=_0x46d104['csAckEvent'])==null?void 0x0:_0x1eed14['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x4ba)]:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x2b7511=_0x46d104['newCsEvent'])==null?void 0x0:_0x2b7511['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x1a0)]:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x1cc096=_0x46d104[_0x21ed60(0x1b0)])==null?void 0x0:_0x1cc096['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104['updateCursorEvent']},'cmd':_0x2816ce['cmd']};case _0x57eaa4['CollaborationEvent'][_0x21ed60(0x3bb)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104['joinEvent']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x13b)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104[_0x21ed60(0x39b)]},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x14d)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104['liveShareNewHost']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)]['LIVESHARE_FETCH_OPERATIONS']:case _0x57eaa4['CollaborationEvent'][_0x21ed60(0x3e8)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104[_0x21ed60(0x3b0)]},'cmd':_0x2816ce['cmd']};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x17a)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104[_0x21ed60(0x1a8)]},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x42d)]:return{..._0x2816ce,'data':_0x46d104,'cmd':_0x2816ce['cmd']};default:return _0x2816ce;}}default:return _0x2816ce;}}function _0xf6958b(_0x40d657){const _0x508b27=_0x50a247;switch(_0x40d657['cmd']){case _0x546f87['HEARTBEAT']:case _0x546f87['HELLO']:return JSON['stringify']({'cmd':_0x40d657['cmd'],'routeKey':_0x40d657[_0x508b27(0x159)]});case _0x546f87[_0x508b27(0x369)]:{let _0x9a1459;switch(_0x40d657[_0x508b27(0x1bb)]['eventID']){case _0x57eaa4['CollaborationEvent'][_0x508b27(0x373)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x373)],'updateCursorEvent':_0x40d657['data'][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)]['USERS_LEAVE']:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x13b)],'leaveEvent':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)][_0x508b27(0x3bb)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x3bb)],'joinEvent':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)][_0x508b27(0x14d)]:{_0x9a1459={'eventID':_0x57eaa4['CollaborationEvent'][_0x508b27(0x14d)],'liveShareNewHost':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4['CollaborationEvent'][_0x508b27(0x3e8)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x3e8)],'liveShareOperation':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)]['LIVESHARE_TERMINATE']:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4['CollaborationEvent'][_0x508b27(0x329)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x329)],'liveShareRequestHost':_0x40d657['data'][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)]['LIVESHARE_FETCH_OPERATIONS']:{_0x9a1459={'eventID':_0x57eaa4['CollaborationEvent'][_0x508b27(0x15b)]};break;}default:_0x9a1459={'eventID':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x464)]};}return JSON[_0x508b27(0x461)]({'cmd':_0x40d657['cmd'],'routeKey':_0x40d657[_0x508b27(0x159)],'collaMsg':_0x9a1459});}case _0x546f87[_0x508b27(0x185)]:return JSON[_0x508b27(0x461)]({'cmd':_0x40d657[_0x508b27(0x145)],'routeKey':_0x40d657[_0x508b27(0x159)],'joinReq':_0x40d657[_0x508b27(0x1bb)]});case _0x546f87[_0x508b27(0x402)]:return JSON[_0x508b27(0x461)]({'cmd':_0x40d657[_0x508b27(0x145)],'routeKey':_0x40d657[_0x508b27(0x159)],'leaveReq':_0x40d657[_0x508b27(0x1bb)]});default:throw new Error(_0x508b27(0x467));}}var _0x540b52=(_0x1621d3,_0x3dbe12,_0x252079,_0x2f56a7)=>{const _0x1e1db6=_0x50a247;for(var _0x27eee0=_0x3dbe12,_0x404d9c=_0x1621d3[_0x1e1db6(0x3d6)]-0x1,_0x37f906;_0x404d9c>=0x0;_0x404d9c--)(_0x37f906=_0x1621d3[_0x404d9c])&&(_0x27eee0=_0x37f906(_0x27eee0)||_0x27eee0);return _0x27eee0;},_0xbe36b8=(_0x37e5b1,_0x421e3a)=>(_0x12d552,_0x2aeca8)=>_0x421e3a(_0x12d552,_0x2aeca8,_0x37e5b1);const _0x2196f2=_0x58498f[_0x50a247(0x362)]('univer-pro.collaboration-client-socket-service'),_0x1c96e6=_0x50a247(0x343),_0x44547a='/universer-api/comb';function _0x4fa4bc(_0x93fb8a,_0x59b1e3,_0x51a3de){const _0x49597a=_0x50a247;return _0x93fb8a+'/'+_0x59b1e3+_0x49597a(0x24f)+_0x51a3de+_0x49597a(0x4ad);}_0x5bd0fe[_0x50a247(0x40e)]=class{constructor(_0x15e620,_0x331c67,_0x3090f6,_0x58020a,_0x2a984b){const _0x1b521c=_0x50a247;this[_0x1b521c(0x191)]=_0x15e620,this[_0x1b521c(0x3d5)]=_0x331c67,this[_0x1b521c(0x1ab)]=_0x3090f6,this['_logService']=_0x58020a,this['_snapshotServerService']=_0x2a984b;}[_0x50a247(0x3f6)](_0x32bb70){const _0x426c89=_0x50a247,_0x418a78=this['_ws'][_0x426c89(0x3f6)](_0x32bb70);if(!_0x418a78)throw new Error(_0x426c89(0x3d8));const _0x54f812=new _0x40aff1[(_0x426c89(0x243))](),_0xb6b722=new _0x3171f1[(_0x426c89(0x1ed))]();_0x54f812[_0x426c89(0x3ce)](_0x40aff1[_0x426c89(0x2b7)](_0x418a78['close$'][_0x426c89(0x1a6)](_0x1286c3=>_0xb6b722[_0x426c89(0x446)](_0x1286c3)))),_0x54f812[_0x426c89(0x3ce)](_0x40aff1['toDisposable'](()=>_0xb6b722[_0x426c89(0x142)]()));const _0x54c2da=new _0x3171f1[(_0x426c89(0x1ed))]();_0x54f812['add'](_0x40aff1[_0x426c89(0x2b7)](_0x418a78['error$'][_0x426c89(0x1a6)](_0x3e4367=>_0x54c2da[_0x426c89(0x446)](_0x3e4367)))),_0x54f812[_0x426c89(0x3ce)](_0x40aff1[_0x426c89(0x2b7)](()=>_0x54c2da['complete']()));const _0xfd00d7=new _0x3171f1[(_0x426c89(0x1ed))]();_0x54f812[_0x426c89(0x3ce)](_0x40aff1['toDisposable'](_0x418a78['message$']['subscribe'](_0x39b20c=>{const _0x54defa=_0x22048b(_0x39b20c);_0xfd00d7['next'](_0x54defa);}))),_0x54f812[_0x426c89(0x3ce)](_0x40aff1['toDisposable'](()=>_0xfd00d7['complete']()));const _0x33e5d8=()=>{const _0x50e1c2=_0x426c89;_0x54c2da[_0x50e1c2(0x446)](new Event(_0x50e1c2(0x498))),_0xb6b722[_0x50e1c2(0x446)](new CloseEvent('connection\x20error')),_0x1cd0b3[_0x50e1c2(0x4e5)]();},_0x1cd0b3={'memberID':'','close$':_0xb6b722[_0x426c89(0x407)](),'error$':_0x54c2da[_0x426c89(0x407)](),'open$':_0x418a78[_0x426c89(0x3e3)],'message$':_0xfd00d7[_0x426c89(0x407)](),'send':_0x4bce94=>{const _0x42b17e=_0x426c89;if(_0x4bce94[_0x42b17e(0x145)]===_0x546f87['INGEST']){if(_0x4bce94[_0x42b17e(0x1bb)][_0x42b17e(0x464)]===_0x57eaa4[_0x42b17e(0x253)][_0x42b17e(0x34b)]){this[_0x42b17e(0x365)](_0x1cd0b3,_0x4bce94[_0x42b17e(0x1bb)])['catch'](_0x15ddc5=>{const _0x445719=_0x42b17e;this[_0x445719(0x3b1)]['error'](_0x15ddc5),_0x33e5d8();});return;}if(_0x4bce94['data'][_0x42b17e(0x464)]===_0x57eaa4[_0x42b17e(0x253)][_0x42b17e(0x18b)]){const _0x3d79e9=_0x4bce94[_0x42b17e(0x1bb)];this[_0x42b17e(0x23e)](_0x3d79e9)[_0x42b17e(0x3f7)](_0x462ad8=>{const _0x5c80f7=_0x42b17e;_0xfd00d7[_0x5c80f7(0x446)]({'cmd':_0x546f87[_0x5c80f7(0x305)],'code':_0x3257cd['OK'],'routeKey':_0x3d79e9['data'][_0x5c80f7(0x437)],'routeType':'','data':{'eventID':_0x57eaa4['CollaborationEvent'][_0x5c80f7(0x412)],'data':{'changesets':_0x462ad8}}});})['catch'](_0x286010=>{const _0x5a561b=_0x42b17e;this[_0x5a561b(0x3b1)][_0x5a561b(0x207)](_0x286010),_0x33e5d8();});return;}}_0x418a78[_0x42b17e(0x2c2)](_0xf6958b(_0x4bce94));},'close':()=>{const _0x1797fc=_0x426c89;_0x418a78[_0x1797fc(0x4e5)](),_0x54f812[_0x1797fc(0x1e5)]();}};return _0x1cd0b3;}async[_0x50a247(0x365)](_0x592307,_0x467c5f){const _0x57d3c7=_0x50a247;var _0x5c7b0f;const {unitType:_0x227950,unitID:_0x518e95,changeset:_0x50554d}=_0x467c5f[_0x57d3c7(0x1bb)],_0xdc3c4d={'unitID':_0x518e95,'memberID':_0x592307[_0x57d3c7(0x463)],'type':_0x227950,'changeset':_0x57eaa4[_0x57d3c7(0x2f6)](_0x50554d)},_0x717515=_0x4fa4bc((_0x5c7b0f=this[_0x57d3c7(0x1ab)][_0x57d3c7(0x48e)](_0x1c96e6))!=null?_0x5c7b0f:_0x44547a,_0x227950,_0x518e95);try{await this[_0x57d3c7(0x191)][_0x57d3c7(0x28a)](_0x717515,{'body':_0xdc3c4d});}catch(_0x4582d7){throw this[_0x57d3c7(0x3b1)][_0x57d3c7(0x207)](_0x57d3c7(0x2ef),_0x57d3c7(0x43b)),_0x4582d7;}}async[_0x50a247(0x23e)](_0x49880b){const _0x11fe09=_0x50a247,{unitID:_0x227b66,from:_0x392700,to:_0x1521e4,unitType:_0x26eec7}=_0x49880b[_0x11fe09(0x1bb)];return(await this[_0x11fe09(0x3b2)][_0x11fe09(0x1a1)]({'metadata':void 0x0},{'unitID':_0x227b66,'type':_0x26eec7,'from':_0x392700,'to':_0x1521e4}))['changesets'];}},_0x5bd0fe[_0x50a247(0x40e)]=_0x540b52([_0xbe36b8(0x0,_0x58498f['Inject'](_0x12f0de[_0x50a247(0x36e)])),_0xbe36b8(0x1,_0x58498f[_0x50a247(0x342)](_0x12f0de['WebSocketService'])),_0xbe36b8(0x2,_0x40aff1[_0x50a247(0x263)]),_0xbe36b8(0x3,_0x40aff1[_0x50a247(0x192)]),_0xbe36b8(0x4,_0x40aff1['ISnapshotServerService'])],_0x5bd0fe['CollaborationSocketService']);var _0x2d924d=(_0x7d2330,_0x4fe1f1,_0x1967fe,_0x56200e)=>{const _0x5a2e6a=_0x50a247;for(var _0x2c6d47=_0x4fe1f1,_0x31236a=_0x7d2330[_0x5a2e6a(0x3d6)]-0x1,_0x5060f6;_0x31236a>=0x0;_0x31236a--)(_0x5060f6=_0x7d2330[_0x31236a])&&(_0x2c6d47=_0x5060f6(_0x2c6d47)||_0x2c6d47);return _0x2c6d47;},_0xbf4057=(_0x5d74f3,_0x3e642a)=>(_0x5be0b4,_0x13a393)=>_0x3e642a(_0x5be0b4,_0x13a393,_0x5d74f3),_0x2d7bdc=(_0x1664bb=>(_0x1664bb[_0x1664bb['IDLE']=0x0]=_0x50a247(0x2f7),_0x1664bb[_0x1664bb[_0x50a247(0x208)]=0x1]=_0x50a247(0x208),_0x1664bb[_0x1664bb[_0x50a247(0x152)]=0x2]=_0x50a247(0x152),_0x1664bb[_0x1664bb[_0x50a247(0x3b6)]=0x3]='ONLINE',_0x1664bb))(_0x2d7bdc||{});const _0x5ab995='COLLAB_WEB_SOCKET_URL',_0x4d9266='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4af75e=_0x50a247(0x274),_0xdbc7db=0x7530,_0x998910=_0x50a247(0x2c6),_0x37e3ce=0x2710,_0x1ef9cc=_0x50a247(0x324),_0x96462c=0x4e20,_0x734dc9=_0x50a247(0x4cf),_0x2474de=0x3;_0x5bd0fe[_0x50a247(0x20f)]=class extends _0x40aff1['RxDisposable']{constructor(_0x4b7870,_0x576768,_0x755bb1,_0x35483c,_0xa4931d,_0x2e6ba1,_0x243877,_0x22cfcc){const _0x3d42a0=_0x50a247;super(),_0x22b1a2(this,'_sessionStatus$',new _0x3171f1[(_0x3d42a0(0x431))](0x0)),_0x22b1a2(this,'sessionStatus$',this[_0x3d42a0(0x14f)][_0x3d42a0(0x407)]()),_0x22b1a2(this,_0x3d42a0(0x255),new _0x3171f1[(_0x3d42a0(0x1ed))]()),_0x22b1a2(this,_0x3d42a0(0x326),this[_0x3d42a0(0x255)][_0x3d42a0(0x407)]()),_0x22b1a2(this,'_socket'),_0x22b1a2(this,_0x3d42a0(0x297)),_0x22b1a2(this,_0x3d42a0(0x40b)),(this[_0x3d42a0(0x43c)]=_0x4b7870,this[_0x3d42a0(0x3b1)]=_0x755bb1,this['_beforeCloseService']=_0x35483c,this['_messageService']=_0xa4931d,this[_0x3d42a0(0x1ab)]=_0x2e6ba1,this['_localeService']=_0x243877,this[_0x3d42a0(0x47f)]=_0x22cfcc,_0x576768[_0x3d42a0(0x41d)](_0x32d0c5['takeUntil'](this['dispose$']))[_0x3d42a0(0x1a6)](_0x5b265f=>{const _0x55e2a1=_0x3d42a0;var _0x5c3e23;typeof _0x5b265f>'u'||(this['_socket']=_0x5b265f,_0x5b265f?(this['_joinRoom'](_0x5b265f),this['_socketMessageSubscription']=this[_0x55e2a1(0x3a3)]['message$'][_0x55e2a1(0x1a6)](_0x3a98aa=>{const _0x349a7e=_0x55e2a1;_0x3a98aa[_0x349a7e(0x159)]===this[_0x349a7e(0x43c)]&&this[_0x349a7e(0x1c5)](_0x3a98aa);})):(this['_sessionStatus$'][_0x55e2a1(0x446)](0x2),(_0x5c3e23=this['_socketMessageSubscription'])==null||_0x5c3e23[_0x55e2a1(0x19a)](),this[_0x55e2a1(0x297)]=null));}),this[_0x3d42a0(0x3e1)](this[_0x3d42a0(0x20a)][_0x3d42a0(0x3f8)](()=>{const _0x5c6cc3=_0x3d42a0;var _0x7b7059;(_0x7b7059=this['_socket'])==null||_0x7b7059[_0x5c6cc3(0x2c2)]({'cmd':_0x546f87[_0x5c6cc3(0x402)],'data':{'roomID':this[_0x5c6cc3(0x43c)]}});})));}get['sessionStatus'](){const _0x11dfff=_0x50a247;return this[_0x11dfff(0x14f)][_0x11dfff(0x331)]();}[_0x50a247(0x441)](){const _0x504a33=_0x50a247;var _0x33d50b,_0x5f4c7d;return(_0x5f4c7d=(_0x33d50b=this['_socket'])==null?void 0x0:_0x33d50b[_0x504a33(0x463)])!=null?_0x5f4c7d:null;}[_0x50a247(0x1e5)](){const _0x3d5620=_0x50a247;super['dispose'](),this['dispose$'][_0x3d5620(0x446)](),this[_0x3d5620(0x439)][_0x3d5620(0x142)]();}[_0x50a247(0x1c5)](_0x29d322){const _0x4139cf=_0x50a247;_0x29d322[_0x4139cf(0x145)]===_0x546f87['JOIN']?this[_0x4139cf(0x2ec)](_0x29d322):_0x29d322['cmd']===_0x546f87[_0x4139cf(0x305)]&&this[_0x4139cf(0x1e7)](_0x29d322);}[_0x50a247(0x3a8)](_0x481472){const _0x252c44=_0x50a247;this[_0x252c44(0x14f)][_0x252c44(0x446)](0x1),_0x481472[_0x252c44(0x2c2)]({'cmd':_0x546f87[_0x252c44(0x185)],'routeKey':this[_0x252c44(0x43c)],'routeType':'','data':{'rooms':[{'roomID':this[_0x252c44(0x43c)]}]}});}['_onJoinRoomEvent'](_0x46c845){const _0x3bfa9c=_0x50a247;var _0x4e9ac7;if(_0x46c845[_0x3bfa9c(0x166)]===_0x3257cd[_0x3bfa9c(0x276)]){this[_0x3bfa9c(0x490)][_0x3bfa9c(0x259)]({'type':_0x4ae90e[_0x3bfa9c(0x385)][_0x3bfa9c(0x174)],'content':this['_localeService']['t'](_0x3bfa9c(0x210))}),this[_0x3bfa9c(0x14f)][_0x3bfa9c(0x446)](0x2);return;}this[_0x3bfa9c(0x14f)]['next'](0x3);const _0x5069d0=(_0x4e9ac7=_0x46c845['data'][_0x3bfa9c(0x3a0)][this[_0x3bfa9c(0x43c)]])==null?void 0x0:_0x4e9ac7[_0x3bfa9c(0x1f6)];_0x5069d0&&_0x5069d0[_0x3bfa9c(0x35b)](_0x762285=>this[_0x3bfa9c(0x47f)][_0x3bfa9c(0x413)](this['_unitID'],_0x762285));}[_0x50a247(0x1e7)](_0x5673eb){const _0x612eed=_0x50a247;try{const _0x39c338=_0x5673eb[_0x612eed(0x1bb)];switch(_0x39c338['eventID']){case _0x57eaa4['CollaborationEvent'][_0x612eed(0x3bb)]:this[_0x612eed(0x469)](_0x39c338),this[_0x612eed(0x255)]['next'](_0x39c338);break;case _0x57eaa4['CollaborationEvent'][_0x612eed(0x13b)]:this[_0x612eed(0x347)](_0x39c338),this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);break;case _0x57eaa4[_0x612eed(0x253)][_0x612eed(0x26c)]:this['_clearCollaborationTimeoutTimer'](),this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);break;case _0x57eaa4[_0x612eed(0x253)][_0x612eed(0x42d)]:this[_0x612eed(0x3b1)][_0x612eed(0x207)](_0x612eed(0x46b)+JSON[_0x612eed(0x461)](_0x39c338)),this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);break;default:this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);}}catch(_0x4c0966){this['_logService']['error'](_0x4c0966,_0x5673eb);}}[_0x50a247(0x469)](_0x4accfa){const _0x167458=_0x50a247;this[_0x167458(0x47f)][_0x167458(0x413)](this['_unitID'],_0x4accfa[_0x167458(0x1bb)]);}[_0x50a247(0x347)](_0x3d94d5){const _0x25c74f=_0x50a247;this[_0x25c74f(0x47f)][_0x25c74f(0x260)](this['_unitID'],_0x3d94d5[_0x25c74f(0x1bb)][_0x25c74f(0x463)]);}async['send'](_0x1c9bf5,_0x3b4b44){const _0x4ce482=_0x50a247;if(this['sessionStatus']!==0x3||!this[_0x4ce482(0x3a3)])throw new Error(_0x4ce482(0x15c));try{_0x1c9bf5['eventID']===_0x57eaa4[_0x4ce482(0x253)][_0x4ce482(0x4ba)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4ce482(0x3a3)][_0x4ce482(0x2c2)]({'cmd':_0x546f87[_0x4ce482(0x369)],'routeKey':_0x3b4b44,'routeType':'','data':_0x1c9bf5});}catch(_0x3da52d){this[_0x4ce482(0x3b1)][_0x4ce482(0x207)](_0x3da52d);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3bb6c6=_0x50a247;var _0x2f57ec;this[_0x3bb6c6(0x40b)]=window['setTimeout'](()=>{const _0x4120bc=_0x3bb6c6;this[_0x4120bc(0x40b)]=null,this[_0x4120bc(0x490)][_0x4120bc(0x259)]({'type':_0x4ae90e[_0x4120bc(0x385)][_0x4120bc(0x33e)],'content':this[_0x4120bc(0x4b0)]['t']('session.collaboration-timeout')});},(_0x2f57ec=this[_0x3bb6c6(0x1ab)][_0x3bb6c6(0x48e)](_0x998910))!=null?_0x2f57ec:_0x37e3ce);}[_0x50a247(0x26b)](){const _0x4f082f=_0x50a247;this[_0x4f082f(0x40b)]&&(clearTimeout(this[_0x4f082f(0x40b)]),this[_0x4f082f(0x40b)]=null);}},_0x5bd0fe[_0x50a247(0x20f)]=_0x2d924d([_0xbf4057(0x2,_0x40aff1['ILogService']),_0xbf4057(0x3,_0x4f2827[_0x50a247(0x45b)]),_0xbf4057(0x4,_0x4f2827[_0x50a247(0x248)]),_0xbf4057(0x5,_0x40aff1['IConfigService']),_0xbf4057(0x6,_0x58498f['Inject'](_0x40aff1['LocaleService'])),_0xbf4057(0x7,_0x58498f[_0x50a247(0x342)](_0x370285))],_0x5bd0fe[_0x50a247(0x20f)]),_0x5bd0fe['CollaborationSessionService']=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x206568,_0xece270,_0x4dfdbf,_0x1c6e63,_0x29e684,_0x42a7a0){const _0x7b303e=_0x50a247;super(),_0x22b1a2(this,_0x7b303e(0x283),new _0x3171f1[(_0x7b303e(0x431))](void 0x0)),_0x22b1a2(this,_0x7b303e(0x2d4),new Map()),_0x22b1a2(this,_0x7b303e(0x303),new _0x3171f1[(_0x7b303e(0x431))](0x0)),_0x22b1a2(this,_0x7b303e(0x1c6),this[_0x7b303e(0x303)][_0x7b303e(0x407)]()),_0x22b1a2(this,_0x7b303e(0x384),!0x1),_0x22b1a2(this,'_sendHeartbeatTimer'),_0x22b1a2(this,_0x7b303e(0x2c1)),_0x22b1a2(this,'_retryConnectingTimer'),_0x22b1a2(this,_0x7b303e(0x322),0x0),(this[_0x7b303e(0x401)]=_0x206568,this[_0x7b303e(0x4b0)]=_0xece270,this[_0x7b303e(0x490)]=_0x4dfdbf,this[_0x7b303e(0x3b1)]=_0x1c6e63,this[_0x7b303e(0x1ab)]=_0x29e684,this[_0x7b303e(0x47d)]=_0x42a7a0);}get[_0x50a247(0x3a3)](){const _0x3cba2c=_0x50a247;return this[_0x3cba2c(0x283)][_0x3cba2c(0x331)]();}[_0x50a247(0x1e5)](){const _0x2ded7a=_0x50a247;super[_0x2ded7a(0x1e5)](),this[_0x2ded7a(0x2d4)][_0x2ded7a(0x35b)](_0x1ac57f=>_0x1ac57f[_0x2ded7a(0x1e5)]()),this['_sessions'][_0x2ded7a(0x348)](),this[_0x2ded7a(0x303)][_0x2ded7a(0x142)]();}async[_0x50a247(0x327)](_0x256853){const _0x2446c6=_0x50a247;if(this[_0x2446c6(0x2d4)][_0x2446c6(0x25b)](_0x256853))return this[_0x2446c6(0x2d4)][_0x2446c6(0x17e)](_0x256853);this['_tryEnsureSocket']();const _0x273a12=this[_0x2446c6(0x401)][_0x2446c6(0x293)](_0x5bd0fe[_0x2446c6(0x20f)],_0x256853,this['_socket$'][_0x2446c6(0x407)]());return this['_sessions'][_0x2446c6(0x3cc)](_0x256853,_0x273a12),_0x273a12;}['_createSocket'](){const _0x360b8a=_0x50a247;var _0x5a8e3d;const _0x1c2c3c=(_0x5a8e3d=this[_0x360b8a(0x1ab)][_0x360b8a(0x48e)](_0x5ab995))!=null?_0x5a8e3d:_0x4d9266;return this[_0x360b8a(0x47d)]['createSocket'](_0x1c2c3c);}[_0x50a247(0x179)](){const _0x5cb610=_0x50a247;try{const _0x2bde6a=this[_0x5cb610(0x1d4)]();if(_0x2bde6a){const _0x5b805c=_0x2bde6a[_0x5cb610(0x2c2)];_0x2bde6a['send']=_0x61b436=>(this['_rescheduleHeartbeatEvent'](),_0x5b805c[_0x5cb610(0x1dd)](_0x2bde6a,[_0x61b436])),_0x2bde6a[_0x5cb610(0x13e)][_0x5cb610(0x1a6)](_0x472cc0=>this['_onMessage'](_0x2bde6a,_0x472cc0)),_0x2bde6a['error$']['pipe'](_0x32d0c5[_0x5cb610(0x3e0)](0x1))[_0x5cb610(0x1a6)](_0x3a15c2=>this[_0x5cb610(0x3b1)][_0x5cb610(0x207)]('[CollaborationSessionService]:\x20socket\x20error',_0x3a15c2)),_0x2bde6a[_0x5cb610(0x3e3)][_0x5cb610(0x41d)](_0x32d0c5[_0x5cb610(0x3e0)](0x1))[_0x5cb610(0x1a6)](()=>{const _0xc1e93=_0x5cb610;this[_0xc1e93(0x36b)](_0x2bde6a);}),_0x2bde6a['close$'][_0x5cb610(0x41d)](_0x32d0c5[_0x5cb610(0x3e0)](0x1))[_0x5cb610(0x1a6)](_0x53194d=>{const _0x3d853a=_0x5cb610;this[_0x3d853a(0x3b1)][_0x3d853a(0x2d6)](_0x3d853a(0x377),_0x3d853a(0x4e0),_0x53194d),this[_0x3d853a(0x289)]();});}}catch(_0x5415ed){this['_logService'][_0x5cb610(0x207)](_0x5415ed),this[_0x5cb610(0x289)]();}}['_onConnectionOpen'](_0x174dd8){const _0x3c9ccc=_0x50a247;this[_0x3c9ccc(0x3b1)][_0x3c9ccc(0x2d6)](_0x3c9ccc(0x377),'socket\x20open.'),_0x174dd8[_0x3c9ccc(0x2c2)]({'cmd':_0x546f87[_0x3c9ccc(0x4a0)]}),this['_rescheduleHeartbeatEvent']();}[_0x50a247(0x289)](){const _0x3424ec=_0x50a247;var _0x3d43d7;this[_0x3424ec(0x303)]['next'](0x2),this['_socket$'][_0x3424ec(0x446)](null),this[_0x3424ec(0x1cb)](),this[_0x3424ec(0x33a)](),this[_0x3424ec(0x384)]=!0x1,this['_retryCount']<((_0x3d43d7=this[_0x3424ec(0x1ab)]['getConfig'](_0x734dc9))!=null?_0x3d43d7:_0x2474de)?(this[_0x3424ec(0x238)](this[_0x3424ec(0x322)]),this['_retryCount']+=0x1):this[_0x3424ec(0x490)]['show']({'type':_0x4ae90e[_0x3424ec(0x385)][_0x3424ec(0x33e)],'content':this['_localeService']['t'](_0x3424ec(0x47e))});}[_0x50a247(0x238)](_0x220f5a){const _0x2c2742=_0x50a247;var _0x19321c;const _0x5099ca=((_0x19321c=this[_0x2c2742(0x1ab)][_0x2c2742(0x48e)](_0x1ef9cc))!=null?_0x19321c:_0x96462c)*0x2**_0x220f5a;this[_0x2c2742(0x490)]['show']({'type':_0x4ae90e[_0x2c2742(0x385)][_0x2c2742(0x174)],'content':this[_0x2c2742(0x4b0)]['t'](_0x2c2742(0x2ad))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x654aa2=_0x2c2742;this['_tryEnsureSocket'](),clearTimeout(this[_0x654aa2(0x2e9)]),this[_0x654aa2(0x2e9)]=null;},_0x5099ca);}['_rescheduleHeartbeatEvent'](){const _0x20316d=_0x50a247;var _0x4d443d;this[_0x20316d(0x33a)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x20316d(0x364)](),(_0x4d443d=this[_0x20316d(0x1ab)][_0x20316d(0x48e)](_0x4af75e))!=null?_0x4d443d:_0xdbc7db);}[_0x50a247(0x364)](){const _0x112463=_0x50a247;this[_0x112463(0x3a3)][_0x112463(0x2c2)]({'cmd':_0x546f87['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x50a247(0x2a1)](){const _0x531425=_0x50a247;var _0x4e5db8;this['_timeoutTimer']=setTimeout(()=>this[_0x531425(0x289)](),(_0x4e5db8=this[_0x531425(0x1ab)]['getConfig'](_0x998910))!=null?_0x4e5db8:_0x37e3ce);}[_0x50a247(0x2d1)](_0x509bdc,_0x50191d){const _0x2f8822=_0x50a247,{cmd:_0x23bf78}=_0x50191d;_0x23bf78===_0x546f87[_0x2f8822(0x4a0)]&&!this[_0x2f8822(0x384)]&&(_0x509bdc[_0x2f8822(0x463)]=_0x50191d[_0x2f8822(0x1bb)][_0x2f8822(0x463)],this[_0x2f8822(0x283)][_0x2f8822(0x446)](_0x509bdc),this[_0x2f8822(0x303)][_0x2f8822(0x446)](0x3),this[_0x2f8822(0x384)]=!0x0),_0x23bf78===_0x546f87[_0x2f8822(0x44d)]&&this[_0x2f8822(0x1cb)](),this[_0x2f8822(0x334)]();}['_clearHeartbeatTimer'](){const _0x566eed=_0x50a247;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x566eed(0x43f)]),this[_0x566eed(0x43f)]=null);}[_0x50a247(0x1cb)](){const _0x3ca103=_0x50a247;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3ca103(0x2c1)]),this[_0x3ca103(0x2c1)]=null);}},_0x5bd0fe['CollaborationSessionService']=_0x2d924d([_0xbf4057(0x0,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0xbf4057(0x1,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x34a)])),_0xbf4057(0x2,_0x4f2827[_0x50a247(0x248)]),_0xbf4057(0x3,_0x40aff1[_0x50a247(0x192)]),_0xbf4057(0x4,_0x40aff1['IConfigService']),_0xbf4057(0x5,_0x2196f2)],_0x5bd0fe['CollaborationSessionService']);var _0x630979=(_0x16ee8e,_0x53b9f3,_0x1e9ba6,_0x379a96)=>{const _0x26ac9c=_0x50a247;for(var _0x39359e=_0x53b9f3,_0x112b39=_0x16ee8e[_0x26ac9c(0x3d6)]-0x1,_0x2e4a67;_0x112b39>=0x0;_0x112b39--)(_0x2e4a67=_0x16ee8e[_0x112b39])&&(_0x39359e=_0x2e4a67(_0x39359e)||_0x39359e);return _0x39359e;},_0xa68f7c=(_0x11870f,_0x4c7535)=>(_0x59dfac,_0xfcd843)=>_0x4c7535(_0x59dfac,_0xfcd843,_0x11870f);const _0x1e91d6=_0x50a247(0x15e),_0x585661=0x3e8;_0x5bd0fe[_0x50a247(0x262)]=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x49fb16,_0x24dba3,_0x2d80ae,_0x540c0b,_0x32a96d){const _0x357fb4=_0x50a247;super(),_0x22b1a2(this,_0x357fb4(0x237),new Map()),_0x22b1a2(this,_0x357fb4(0x35c),new Map()),_0x22b1a2(this,_0x357fb4(0x396),!0x1),(this[_0x357fb4(0x1ab)]=_0x49fb16,this[_0x357fb4(0x421)]=_0x24dba3,this[_0x357fb4(0x20a)]=_0x2d80ae,this[_0x357fb4(0x4b0)]=_0x540c0b,this['_revisionService']=_0x32a96d,this[_0x357fb4(0x165)]());}[_0x50a247(0x2bf)](){this['_disabled']=!0x0;}[_0x50a247(0x1bf)](){const _0x54d380=_0x50a247;this[_0x54d380(0x396)]=!0x1;}['dispose'](){const _0x231df3=_0x50a247;this[_0x231df3(0x366)]()[_0x231df3(0x3f7)](()=>super['dispose']());}async['loadOfflineData'](_0x4baad7){const _0x29aa7b=_0x50a247;return this[_0x29aa7b(0x396)]?null:this[_0x29aa7b(0x421)][_0x29aa7b(0x21c)](_0x404013(_0x4baad7));}async[_0x50a247(0x1b8)](_0x1913ed,_0xfa0368){const _0x5c0274=_0x50a247;return!!this['_localStorageService'][_0x5c0274(0x1b4)](_0x1913ed,_0xfa0368);}[_0x50a247(0x316)](_0x3f71ad,_0x3bce9b,_0x12db1c,_0x4ffc35){const _0x182844=_0x50a247,_0xfa4762=this['_revisionService'][_0x182844(0x340)](_0x3f71ad);this[_0x182844(0x237)][_0x182844(0x3cc)](_0x3f71ad,{'unitID':_0x3f71ad,'type':_0x3bce9b,'awaitingChangeset':_0x12db1c,'mutations':_0x4ffc35,'rev':_0xfa4762}),this[_0x182844(0x35c)][_0x182844(0x25b)](_0x3f71ad)||this[_0x182844(0x2c5)](_0x3f71ad);}[_0x50a247(0x2c5)](_0x57b034){const _0x16536f=_0x50a247,_0x3c2eff=this[_0x16536f(0x483)]();_0x3c2eff===0x0?this['_saveCache'](_0x57b034):this[_0x16536f(0x35c)][_0x16536f(0x3cc)](_0x57b034,setTimeout(()=>this[_0x16536f(0x4ca)](_0x57b034),_0x3c2eff));}[_0x50a247(0x483)](){const _0x5a51a4=_0x50a247;var _0x1500c0;return(_0x1500c0=this['_configService'][_0x5a51a4(0x48e)](_0x1e91d6))!=null?_0x1500c0:_0x585661;}['_saveCache'](_0x131823){const _0x34deeb=_0x50a247,_0x12d455=this[_0x34deeb(0x35c)]['get'](_0x131823);return _0x12d455!==void 0x0&&window[_0x34deeb(0x333)](_0x12d455),this['_localStorageService']['setItem'](_0x404013(_0x131823),this[_0x34deeb(0x237)][_0x34deeb(0x17e)](_0x131823))[_0x34deeb(0x3f7)](()=>this['_saveTaskMap']['delete'](_0x131823));}async['_exhaustSavingTask'](){const _0x3a4ce5=_0x50a247,_0xcf270=[];this['_saveTaskMap']['forEach']((_0x3fa1ab,_0x30fa7c)=>{const _0x492053=_0x3f00;window['clearTimeout'](_0x3fa1ab),_0xcf270[_0x492053(0x4a8)](this[_0x492053(0x4ca)](_0x30fa7c)[_0x492053(0x3f7)](()=>{const _0xbba9ff=_0x492053;this[_0xbba9ff(0x35c)][_0xbba9ff(0x371)](_0x30fa7c);}));}),await Promise[_0x3a4ce5(0x395)](_0xcf270);}['_setupBeforeClosingHandler'](){const _0x50dc8e=_0x50a247;this[_0x50dc8e(0x3e1)](this[_0x50dc8e(0x20a)]['registerBeforeClose'](()=>{const _0x4fd6dd=_0x50dc8e;if(this[_0x4fd6dd(0x35c)][_0x4fd6dd(0x307)])return this['_localeService']['t'](_0x4fd6dd(0x131));}));}},_0x5bd0fe[_0x50a247(0x262)]=_0x630979([_0xa68f7c(0x0,_0x40aff1[_0x50a247(0x263)]),_0xa68f7c(0x1,_0x40aff1[_0x50a247(0x49c)]),_0xa68f7c(0x2,_0x4f2827['IBeforeCloseService']),_0xa68f7c(0x3,_0x58498f[_0x50a247(0x342)](_0x40aff1['LocaleService'])),_0xa68f7c(0x4,_0x58498f['Inject'](_0x57eaa4[_0x50a247(0x417)]))],_0x5bd0fe[_0x50a247(0x262)]);function _0x404013(_0x2eeecb){return'unit-cache-'+_0x2eeecb;}const _0x4f8e2c=_0x58498f[_0x50a247(0x362)](_0x50a247(0x42f));var _0x1e11de=(_0xc75992=>(_0xc75992[_0xc75992[_0x50a247(0x2c9)]=0x0]=_0x50a247(0x2c9),_0xc75992[_0xc75992['OTHER_CLIENTS_EDITING']=0x1]=_0x50a247(0x4d9),_0xc75992))(_0x1e11de||{});const _0x2ab3f9=0x7530,_0xe4b02f=_0x50a247(0x4a4);class _0xc3d60c extends _0x40aff1[_0x50a247(0x14a)]{constructor(){const _0x154e9f=_0x50a247;super(),_0x22b1a2(this,_0x154e9f(0x475),_0x40aff1[_0x154e9f(0x376)][_0x154e9f(0x202)]()),_0x22b1a2(this,_0x154e9f(0x448),new Set()),_0x22b1a2(this,_0x154e9f(0x36a),new Map()),_0x22b1a2(this,_0x154e9f(0x266),null),_0x22b1a2(this,_0x154e9f(0x31a),new Map()),_0x22b1a2(this,_0x154e9f(0x3c9),new Map()),this[_0x154e9f(0x1ce)]();}['dispose'](){const _0x28e2e7=_0x50a247;super[_0x28e2e7(0x1e5)](),this[_0x28e2e7(0x31a)]['forEach']((_0x3ad01a,_0x271da6)=>this['_removeClearOtherTimer'](_0x271da6)),this[_0x28e2e7(0x266)]&&window[_0x28e2e7(0x34f)](this[_0x28e2e7(0x266)]);}[_0x50a247(0x30d)](_0xb2e4d6){const _0x39d618=_0x50a247;return this[_0x39d618(0x33b)](_0xb2e4d6)[_0x39d618(0x41d)](_0x3171f1[_0x39d618(0x2ee)]());}[_0x50a247(0x3a7)](_0x36aa4c){const _0x6351e9=_0x50a247;this['_selfUnitIDs'][_0x6351e9(0x307)]===0x0&&this['_scheduleHeartbeat'](),this[_0x6351e9(0x448)][_0x6351e9(0x3ce)](_0x36aa4c),this[_0x6351e9(0x481)]({'type':0x0,'memberID':this[_0x6351e9(0x475)],'unitID':_0x36aa4c});}[_0x50a247(0x2bd)](_0x3d0587){const _0x311e1b=_0x50a247;this['_selfUnitIDs']['delete'](_0x3d0587),this['_selfUnitIDs'][_0x311e1b(0x307)]===0x0&&this['_heartbeatTimer']&&window[_0x311e1b(0x34f)](this['_heartbeatTimer']);}[_0x50a247(0x1ce)](){const _0x519141=_0x50a247;this[_0x519141(0x3e1)](_0x40aff1['toDisposable'](_0x3171f1[_0x519141(0x3f4)](window,_0x519141(0x1b9))[_0x519141(0x1a6)](_0x8d8a81=>{const _0x5abd03=_0x519141;if(_0x8d8a81['key']!==_0xe4b02f||!_0x8d8a81[_0x5abd03(0x1e1)])return;const _0x228e9e=JSON[_0x5abd03(0x1e0)](_0x8d8a81[_0x5abd03(0x1e1)]);this[_0x5abd03(0x211)](_0x228e9e);}))),window[_0x519141(0x49a)](_0x519141(0x2e6),()=>this[_0x519141(0x481)]({'type':0x1,'memberID':this[_0x519141(0x475)],'unitIDs':Array[_0x519141(0x457)](this[_0x519141(0x448)])}));}[_0x50a247(0x211)](_0x31845a){const _0x7bc3cb=_0x50a247;switch(_0x31845a[_0x7bc3cb(0x28c)]){case 0x0:this[_0x7bc3cb(0x2fa)](_0x31845a);break;case 0x1:this[_0x7bc3cb(0x203)](_0x31845a);break;case 0x2:this[_0x7bc3cb(0x244)](_0x31845a);break;}}['_handleJoinEvent'](_0x5530e8){const _0x5021ee=_0x50a247,{unitID:_0x413db1,memberID:_0x40c2f9}=_0x5530e8;if(!this['_unitOnClients'][_0x5021ee(0x25b)](_0x413db1)||!this[_0x5021ee(0x36a)][_0x5021ee(0x17e)](_0x413db1)[_0x5021ee(0x25b)](_0x40c2f9)){const _0x119431=this[_0x5021ee(0x36a)][_0x5021ee(0x17e)](_0x413db1)||new Set();_0x119431[_0x5021ee(0x3ce)](_0x40c2f9),this[_0x5021ee(0x36a)]['set'](_0x413db1,_0x119431),this[_0x5021ee(0x175)](_0x40c2f9),this['_send']({'type':0x0,'memberID':this[_0x5021ee(0x475)],'unitID':_0x413db1});}else this[_0x5021ee(0x33b)](_0x413db1)[_0x5021ee(0x446)](0x1);}['_scheduleClearOtherTimer'](_0x4da3da){const _0x2b732e=_0x50a247;this[_0x2b732e(0x317)](_0x4da3da);const _0x4bdf96=window['setTimeout'](()=>{const _0x539a12=_0x2b732e;this[_0x539a12(0x36a)][_0x539a12(0x35b)](_0x119724=>{_0x119724['delete'](_0x4da3da);});},_0x2ab3f9*0x2);this[_0x2b732e(0x31a)][_0x2b732e(0x3cc)](_0x4da3da,_0x4bdf96);}[_0x50a247(0x317)](_0xd315d1){const _0x8bcd7c=_0x50a247;if(this[_0x8bcd7c(0x31a)][_0x8bcd7c(0x25b)](_0xd315d1)){const _0x42e6cc=this['_clearOtherTimers'][_0x8bcd7c(0x17e)](_0xd315d1);_0x42e6cc&&window[_0x8bcd7c(0x333)](_0x42e6cc),this[_0x8bcd7c(0x31a)][_0x8bcd7c(0x3cc)](_0xd315d1,null);}}[_0x50a247(0x203)](_0x639fac){const _0x57b11b=_0x50a247,{memberID:_0x9c77a8,unitIDs:_0x3499b5}=_0x639fac;_0x3499b5[_0x57b11b(0x35b)](_0x2909e7=>{const _0x9e0885=_0x57b11b;var _0x4baef2;const _0x8900af=this[_0x9e0885(0x36a)][_0x9e0885(0x17e)](_0x2909e7);_0x8900af&&(_0x8900af['delete'](_0x9c77a8),(_0x4baef2=this[_0x9e0885(0x33b)](_0x2909e7))==null||_0x4baef2[_0x9e0885(0x446)](_0x8900af[_0x9e0885(0x307)]===0x0?0x0:0x1));}),this[_0x57b11b(0x317)](_0x9c77a8);}[_0x50a247(0x244)](_0x228787){const _0x28a7c7=_0x50a247;this['_scheduleClearOtherTimer'](_0x228787[_0x28a7c7(0x463)]);}[_0x50a247(0x481)](_0xc8b67b){const _0x220183=_0x50a247;localStorage[_0x220183(0x1b4)](_0xe4b02f,JSON['stringify'](_0xc8b67b));}['_scheduleHeartbeat'](){const _0x31f611=_0x50a247;this[_0x31f611(0x266)]=window[_0x31f611(0x147)](()=>{const _0x5b7db1=_0x31f611;this[_0x5b7db1(0x481)]({'type':0x2,'memberID':this[_0x5b7db1(0x475)]});},_0x2ab3f9);}['_ensureSubject'](_0x45f29c){const _0x58f8c=_0x50a247;return this['_unitStatus']['has'](_0x45f29c)||this[_0x58f8c(0x3c9)][_0x58f8c(0x3cc)](_0x45f29c,new _0x3171f1[(_0x58f8c(0x431))](0x0)),this[_0x58f8c(0x3c9)][_0x58f8c(0x17e)](_0x45f29c);}}var _0x1a6e57=(_0x5e29ed,_0xe379be,_0x49e063,_0x3427da)=>{const _0x31b422=_0x50a247;for(var _0x5d4518=_0xe379be,_0x59683a=_0x5e29ed[_0x31b422(0x3d6)]-0x1,_0x1a1e51;_0x59683a>=0x0;_0x59683a--)(_0x1a1e51=_0x5e29ed[_0x59683a])&&(_0x5d4518=_0x1a1e51(_0x5d4518)||_0x5d4518);return _0x5d4518;},_0x433404=(_0x441530,_0x3dfd87)=>(_0x55b6fb,_0x13ffa3)=>_0x3dfd87(_0x55b6fb,_0x13ffa3,_0x441530);let _0x2b1054=class{constructor(_0x16544b,_0x29d3a6){const _0x2e6861=_0x50a247;this['_injector']=_0x16544b,this[_0x2e6861(0x135)]=_0x29d3a6;}['transformIMECache'](_0x2d9da9){const _0x4280f7=_0x50a247;this[_0x4280f7(0x168)](_0x2d9da9),this['_transformPreviousActiveRange'](_0x2d9da9);}[_0x50a247(0x27b)](_0x1a0bcc){const _0x482ecb=_0x50a247,_0x3b94a3=this[_0x482ecb(0x401)][_0x482ecb(0x17e)](_0xc138e5['IMEInputManagerService']),{redoCache:_0x1a1f2d}=_0x3b94a3[_0x482ecb(0x234)]();if(_0x1a1f2d['length']===0x0)return _0x1a0bcc;let _0x33526c=_0x40aff1[_0x482ecb(0x376)][_0x482ecb(0x2a8)](_0x1a0bcc[_0x482ecb(0x18e)][0x0]);for(let _0x2f104a=0x0;_0x2f104a<_0x1a1f2d[_0x482ecb(0x3d6)];_0x2f104a++){const _0x42792b={'id':_0x482ecb(0x394),'params':{..._0x1a1f2d[_0x2f104a]}},_0x2b7b11=this[_0x482ecb(0x135)][_0x482ecb(0x454)](_0x33526c,_0x42792b,!0x1);if(_0x57eaa4['isTransformMutationFailure'](_0x2b7b11))throw _0x2b7b11[_0x482ecb(0x207)];_0x33526c=_0x2b7b11[_0x482ecb(0x4b7)];}return{..._0x40aff1['Tools'][_0x482ecb(0x2a8)](_0x1a0bcc),'mutations':[_0x33526c]};}['_transformUndoRedoStack'](_0x13a0e){const _0xabac5e=_0x50a247,_0x255f5b=this[_0xabac5e(0x401)][_0xabac5e(0x17e)](_0xc138e5[_0xabac5e(0x247)]),{undoCache:_0xb4b9c0,redoCache:_0x5caaac}=_0x255f5b['getUndoRedoMutationParamsCache']();if(_0xb4b9c0[_0xabac5e(0x3d6)]===0x0||_0x5caaac[_0xabac5e(0x3d6)]===0x0)return;const _0x579eac=[],_0x3c683e=[];let _0x39f17f=_0x40aff1[_0xabac5e(0x376)][_0xabac5e(0x2a8)](_0x13a0e[_0xabac5e(0x18e)][0x0]),_0x19aee6=_0x40aff1[_0xabac5e(0x376)]['deepClone'](_0x13a0e[_0xabac5e(0x18e)][0x0]);for(let _0x30534e=_0xb4b9c0['length']-0x1;_0x30534e>=0x0;_0x30534e--){const _0x1d58c2={'id':_0xabac5e(0x394),'params':{..._0xb4b9c0[_0x30534e]}},_0x325ecf={'id':_0xabac5e(0x394),'params':{..._0x5caaac[_0x30534e]}},_0x2dbb9a=this['_transformService'][_0xabac5e(0x454)](_0x39f17f,_0x1d58c2,!0x1),_0x16aa90=this['_transformService'][_0xabac5e(0x454)](_0x19aee6,_0x325ecf,!0x1);if(_0x57eaa4[_0xabac5e(0x38c)](_0x2dbb9a))throw _0x2dbb9a[_0xabac5e(0x207)];if(_0x57eaa4[_0xabac5e(0x38c)](_0x16aa90))throw _0x16aa90[_0xabac5e(0x207)];_0x579eac[_0xabac5e(0x3e6)](_0x2dbb9a[_0xabac5e(0x3ac)]['params']),_0x3c683e['unshift'](_0x16aa90[_0xabac5e(0x3ac)][_0xabac5e(0x1ca)]),_0x39f17f=_0x2dbb9a[_0xabac5e(0x4b7)],_0x19aee6=_0x16aa90['m1Prime'];}_0x255f5b[_0xabac5e(0x3c0)]({'undoCache':_0x579eac,'redoCache':_0x3c683e});}[_0x50a247(0x3d1)](_0x1a40bb){const _0x95d777=_0x50a247,_0x1b6f78=this[_0x95d777(0x401)]['get'](_0xc138e5[_0x95d777(0x247)]),_0x2c9373=_0x1b6f78[_0x95d777(0x444)]();if(_0x2c9373==null)return;const _0x38e07c=[{'id':_0x95d777(0x394),'params':{'unitId':_0x1a40bb['unitID'],'actions':null,'textRanges':[_0x2c9373]}}],_0x138755=this[_0x95d777(0x135)][_0x95d777(0x36c)](_0x1a40bb,_0x38e07c);if(!_0x57eaa4[_0x95d777(0x3ff)](_0x138755))throw _0x138755[_0x95d777(0x207)];const _0x555235=_0x138755[_0x95d777(0x3ac)][0x0]['params'][_0x95d777(0x2a7)];Array['isArray'](_0x555235)&&_0x555235[_0x95d777(0x3d6)]&&_0x1b6f78[_0x95d777(0x4b3)](_0x555235[0x0]);}};_0x2b1054=_0x1a6e57([_0x433404(0x0,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x433404(0x1,_0x57eaa4[_0x50a247(0x3be)])],_0x2b1054);var _0x25aa54=(_0x1dc7b2,_0x1bd6e4,_0x2b2c4f,_0x438d87)=>{for(var _0x48a223=_0x1bd6e4,_0x1fb00d=_0x1dc7b2['length']-0x1,_0xfa4723;_0x1fb00d>=0x0;_0x1fb00d--)(_0xfa4723=_0x1dc7b2[_0x1fb00d])&&(_0x48a223=_0xfa4723(_0x48a223)||_0x48a223);return _0x48a223;},_0x3af5b6=(_0x4d0251,_0x2579c7)=>(_0x3a2833,_0x5db612)=>_0x2579c7(_0x3a2833,_0x5db612,_0x4d0251);let _0x58ad03=class{constructor(_0x4595c5,_0x20e75a){const _0x3cc970=_0x50a247;this[_0x3cc970(0x401)]=_0x4595c5,this[_0x3cc970(0x135)]=_0x20e75a;}[_0x50a247(0x19b)](_0x376af6){const _0x1ed7e1=_0x50a247;var _0x4ba2ac;const _0x16f71c=this[_0x1ed7e1(0x401)][_0x1ed7e1(0x17e)](_0xc138e5[_0x1ed7e1(0x312)]),_0x58c07f=(_0x4ba2ac=_0x16f71c[_0x1ed7e1(0x1d7)]())!=null?_0x4ba2ac:[],_0x43bd75=_0x58c07f==null?void 0x0:_0x58c07f[_0x1ed7e1(0x290)](_0xc138e5['serializeTextRange']);if(_0x43bd75[_0x1ed7e1(0x3d6)]===0x0)return;const _0x1c74ae=[{'id':_0x1ed7e1(0x394),'params':{'unitId':_0x376af6[_0x1ed7e1(0x437)],'actions':null,'textRanges':_0x43bd75}}],_0x4d671f=this[_0x1ed7e1(0x135)][_0x1ed7e1(0x36c)](_0x376af6,_0x1c74ae);if(!_0x57eaa4[_0x1ed7e1(0x3ff)](_0x4d671f))throw _0x4d671f[_0x1ed7e1(0x207)];const _0x3caab9=_0x4d671f[_0x1ed7e1(0x3ac)][0x0][_0x1ed7e1(0x1ca)]['textRanges'];Array[_0x1ed7e1(0x27c)](_0x3caab9)&&_0x3caab9['length']&&_0x16f71c[_0x1ed7e1(0x1a9)](_0x3caab9,!0x1);}};_0x58ad03=_0x25aa54([_0x3af5b6(0x0,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x3af5b6(0x1,_0x57eaa4[_0x50a247(0x3be)])],_0x58ad03);function _0x9ee440(_0x5427f8){let _0x3a7af0='';for(const _0x128602 of _0x5427f8){const {startOffset:_0x35f379,endOffset:_0x13c49f,isActive:_0x30c0a6}=_0x128602;_0x3a7af0['length']&&(_0x3a7af0+=','),_0x3a7af0+=_0x35f379+':'+_0x13c49f+':'+(_0x30c0a6?'1':'0');}return _0x3a7af0;}function _0x3e9600(_0x4aeea1){const _0x91cbae=_0x50a247,_0x512d7e=_0x4aeea1['split'](','),_0x213442=[];for(const _0x2830e5 of _0x512d7e){const [_0x591771,_0x1a9b96,_0x2311bd]=_0x2830e5['split'](':');_0x213442['push']({'startOffset':Number(_0x591771),'endOffset':Number(_0x1a9b96),'collapsed':_0x591771===_0x1a9b96,'isActive':_0x2311bd==='1'});}return _0x213442[_0x91cbae(0x466)](_0x450185=>_0x450185[_0x91cbae(0x3b7)])||(_0x213442[0x0][_0x91cbae(0x3b7)]=!0x0),_0x213442;}class _0x59e101 extends _0x40aff1[_0x50a247(0x48d)]{constructor(){const _0x25e252=_0x50a247;super(...arguments),_0x22b1a2(this,_0x25e252(0x3e2),new _0x3171f1['BehaviorSubject'](null)),_0x22b1a2(this,_0x25e252(0x28d),this['_collabCursorState$'][_0x25e252(0x407)]());}[_0x50a247(0x3db)](_0x5f1238){const _0x2004ea=_0x50a247,{unitID:_0x44cb84,memberID:_0x186366,textRanges:_0x162fbd}=_0x5f1238,_0x19cb4e=_0x9ee440(_0x162fbd),_0x217cd8={'unitID':_0x44cb84,'memberID':_0x186366,'selection':_0x19cb4e};this[_0x2004ea(0x3e2)][_0x2004ea(0x446)](_0x217cd8);}}var _0x1a5e24=(_0x192114,_0x450244,_0xd1bda4,_0x213f39)=>{for(var _0x3aac17=_0x450244,_0x132211=_0x192114['length']-0x1,_0x15dc76;_0x132211>=0x0;_0x132211--)(_0x15dc76=_0x192114[_0x132211])&&(_0x3aac17=_0x15dc76(_0x3aac17)||_0x3aac17);return _0x3aac17;},_0x531a54=(_0x4e4b11,_0x47e42c)=>(_0x30eaf5,_0x111f9b)=>_0x47e42c(_0x30eaf5,_0x111f9b,_0x4e4b11);let _0x30b6af=class{constructor(_0x385c85,_0x42de07){const _0x3418de=_0x50a247;this[_0x3418de(0x401)]=_0x385c85,this[_0x3418de(0x135)]=_0x42de07;}[_0x50a247(0x19b)](_0x34a6d9){const _0x1051b2=_0x50a247;var _0x1838ad,_0x28c933,_0x41b305,_0x28b7b8;const _0x1bae42=this[_0x1051b2(0x401)][_0x1051b2(0x17e)](_0x361837[_0x1051b2(0x186)]),{pluginName:_0x1a7d76,unitId:_0x33bbe2,sheetId:_0x182c26}=_0x1bae42[_0x1051b2(0x134)]()||{},_0x4a27c1=(_0x1838ad=_0x1bae42[_0x1051b2(0x1d7)]())!=null?_0x1838ad:[];if(_0x4a27c1[_0x1051b2(0x3d6)]===0x0||!_0x1a7d76||!_0x33bbe2||!_0x182c26)return;const _0x342976=[{'id':_0x361837[_0x1051b2(0x1d5)]['id'],'params':{'unitId':_0x33bbe2,'subUnitId':_0x182c26,'pluginName':_0x1a7d76,'selections':_0x40aff1[_0x1051b2(0x376)][_0x1051b2(0x2a8)](_0x4a27c1)}}],_0x4e5ed6=this['_transformService']['transformMutationsWithChangeset'](_0x34a6d9,_0x342976);if(!_0x57eaa4['isTransformMutationsWithChangesetSuccess'](_0x4e5ed6))throw _0x4e5ed6[_0x1051b2(0x207)];const _0x4a3ba1=(_0x28b7b8=(_0x41b305=(_0x28c933=_0x4e5ed6['m2Prime'][0x0])==null?void 0x0:_0x28c933[_0x1051b2(0x1ca)])==null?void 0x0:_0x41b305[_0x1051b2(0x499)])!=null?_0x28b7b8:_0x4a27c1;Array['isArray'](_0x4a3ba1)&&_0x4a3ba1['length']&&this[_0x1051b2(0x401)][_0x1051b2(0x17e)](_0x40aff1[_0x1051b2(0x19e)])[_0x1051b2(0x1eb)](_0x361837[_0x1051b2(0x1d5)]['id'],{'unitId':_0x33bbe2,'subUnitId':_0x182c26,'pluginName':_0x1a7d76,'selections':_0x4a3ba1});}};_0x30b6af=_0x1a5e24([_0x531a54(0x0,_0x58498f['Inject'](_0x58498f['Injector'])),_0x531a54(0x1,_0x57eaa4[_0x50a247(0x3be)])],_0x30b6af);const _0x5b0099=new Set([_0x361837['InsertSheetMutation']['id']]);function _0x42b3a8(_0x4b70ec,_0x5d80a6,_0x6ac5bb,_0x32db52,_0x1dcbfc){const _0x69d477=_0x50a247;var _0x2e114c,_0x136920,_0x3dd75b,_0x55565d;const _0x4b1a1c=[];for(const _0x52a2c9 of _0x4b70ec)if(_0x5b0099[_0x69d477(0x25b)](_0x52a2c9['id'])){if(_0x4b1a1c[_0x69d477(0x3d6)]>0x0)break;_0x4b1a1c[_0x69d477(0x4a8)](_0x52a2c9);break;}else _0x4b1a1c[_0x69d477(0x4a8)](_0x52a2c9);const _0x14ee4f=(_0x136920=(_0x2e114c=_0x1dcbfc[_0x69d477(0x38d)]())==null?void 0x0:_0x2e114c['userID'])!=null?_0x136920:_0x69d477(0x46a),_0x843c90=(_0x55565d=(_0x3dd75b=_0x1dcbfc['getCurrentUser']())==null?void 0x0:_0x3dd75b[_0x69d477(0x463)])!=null?_0x55565d:_0x69d477(0x46a);return{'changeset':{'unitID':_0x5d80a6,'type':_0x57eaa4['mapDocumentTypeToUniverType'](_0x6ac5bb[_0x69d477(0x12c)](_0x5d80a6)),'baseRev':_0x32db52[_0x69d477(0x340)](_0x5d80a6),'revision':0x0,'userID':_0x14ee4f,'memberID':_0x843c90,'mutations':_0x4b1a1c},'pendingMutations':_0x4b70ec['slice'](_0x4b1a1c[_0x69d477(0x3d6)])};}function _0x1d8e48(_0x1b4e68,_0x2be1d4,_0xc5ec5d,_0x4de508,_0x357dae){const _0x1b2161=_0x50a247;var _0x17bdd3,_0x518e44,_0x1ae2ca,_0x2756b6;const _0x212950=[_0x1b4e68[_0x1b2161(0x2c4)]((_0x2fdcc6,_0x3f0bad)=>{const _0x595c1c=_0x1b2161;var _0x2f77a4;const {id:_0x371dfa}=_0x2fdcc6,{id:_0x2826c0,type:_0x24d3e4}=_0x3f0bad,_0x1b9397=(_0x2f77a4=_0x2fdcc6[_0x595c1c(0x1ca)])!=null?_0x2f77a4:{'actions':null},_0x134107=_0x3f0bad[_0x595c1c(0x1ca)];if(_0x371dfa&&_0x371dfa!==_0x2826c0)throw new Error(_0x595c1c(0x129)+_0x371dfa+_0x595c1c(0x374)+_0x2826c0+'.');return{..._0x2fdcc6,'id':_0x2826c0,'type':_0x24d3e4,'params':{'unitId':_0x134107[_0x595c1c(0x430)],'textRanges':_0x134107[_0x595c1c(0x2a7)],'actions':_0x40aff1['JSONX'][_0x595c1c(0x43d)](_0x1b9397[_0x595c1c(0x3a4)],_0x134107[_0x595c1c(0x3a4)])}};},{})],_0x1f4acd=(_0x518e44=(_0x17bdd3=_0x357dae[_0x1b2161(0x38d)]())==null?void 0x0:_0x17bdd3[_0x1b2161(0x491)])!=null?_0x518e44:_0x1b2161(0x46a),_0xdd190b=(_0x2756b6=(_0x1ae2ca=_0x357dae[_0x1b2161(0x38d)]())==null?void 0x0:_0x1ae2ca[_0x1b2161(0x463)])!=null?_0x2756b6:'unknown';return{'changeset':{'unitID':_0x2be1d4,'type':_0x57eaa4['mapDocumentTypeToUniverType'](_0xc5ec5d['getUnitType'](_0x2be1d4)),'baseRev':_0x4de508[_0x1b2161(0x340)](_0x2be1d4),'revision':0x0,'userID':_0x1f4acd,'memberID':_0xdd190b,'mutations':_0x212950},'pendingMutations':[]};}var _0x15fb27=(_0x17bbdf,_0x4d6df0,_0x548636,_0x5a1c07)=>{const _0x5d0c77=_0x50a247;for(var _0x11299b=_0x4d6df0,_0x990fea=_0x17bbdf[_0x5d0c77(0x3d6)]-0x1,_0x1095f5;_0x990fea>=0x0;_0x990fea--)(_0x1095f5=_0x17bbdf[_0x990fea])&&(_0x11299b=_0x1095f5(_0x11299b)||_0x11299b);return _0x11299b;},_0x383c29=(_0x4aa50e,_0x27d9b0)=>(_0x2179fc,_0x2eb156)=>_0x27d9b0(_0x2179fc,_0x2eb156,_0x4aa50e);const _0x275aff='SEND_CHANGESET_TIMEOUT',_0x5c0c0a=0x7d0;var _0x2dad21=(_0x2dc3d9=>(_0x2dc3d9[_0x50a247(0x330)]=_0x50a247(0x40a),_0x2dc3d9[_0x50a247(0x4e4)]=_0x50a247(0x1d2),_0x2dc3d9['PENDING']='pending',_0x2dc3d9[_0x50a247(0x278)]=_0x50a247(0x3b4),_0x2dc3d9[_0x50a247(0x37d)]='awaiting_with_pending',_0x2dc3d9[_0x50a247(0x4c8)]=_0x50a247(0x149),_0x2dc3d9[_0x50a247(0x2de)]='conflict',_0x2dc3d9['OFFLINE']=_0x50a247(0x3e7),_0x2dc3d9))(_0x2dad21||{});class _0x2073ee{constructor(_0x5c2665,_0x484c75,_0x540336,_0x5dd97b,_0x1a7e44,_0x37f007,_0x55e444,_0x30ec09,_0x530a31){const _0x5beecb=_0x50a247;_0x22b1a2(this,_0x5beecb(0x257),null),_0x22b1a2(this,'_pendingMutations',[]),(this[_0x5beecb(0x437)]=_0x5c2665,this[_0x5beecb(0x28c)]=_0x484c75,this[_0x5beecb(0x180)]=_0x1a7e44,this[_0x5beecb(0x14b)]=_0x37f007,this[_0x5beecb(0x363)]=_0x55e444,this[_0x5beecb(0x321)]=_0x30ec09,this['_localCacheService']=_0x530a31,this[_0x5beecb(0x257)]=_0x540336,this[_0x5beecb(0x306)]=_0x5dd97b);}[_0x50a247(0x428)](_0x928b82){const _0x28647a=_0x50a247,_0x14cf98=this[_0x28647a(0x321)][_0x28647a(0x340)](this[_0x28647a(0x437)]);return _0x928b82[_0x28647a(0x148)]>_0x14cf98+0x1?(this[_0x28647a(0x180)][_0x28647a(0x360)]({'from':_0x14cf98,'to':_0x928b82['revision']-0x1}),!0x0):!0x1;}[_0x50a247(0x304)](_0x1719ea){const _0xb06114=_0x50a247;this['_undoRedoService']['transformUndoRedo'](this[_0xb06114(0x437)],_0x1719ea);}[_0x50a247(0x19c)](_0x524272){const _0x48f5cf=_0x50a247;var _0x1aa038,_0x3dd6f5;(_0x3dd6f5=(_0x1aa038=this[_0x48f5cf(0x180)])['onTransformSelections'])==null||_0x3dd6f5['call'](_0x1aa038,_0x524272);}[_0x50a247(0x267)](_0x364ace){const _0x2f6332=_0x50a247;var _0x5ac1ff,_0x259e60;return(_0x259e60=(_0x5ac1ff=this['_handler'])[_0x2f6332(0x22b)])==null?void 0x0:_0x259e60[_0x2f6332(0x1cd)](_0x5ac1ff,_0x364ace);}['_transformRemoteChangesetByIMECache'](_0x429253){const _0x2b19a4=_0x50a247;var _0x4e14a7,_0x21a125,_0x250e52;return(_0x250e52=(_0x21a125=(_0x4e14a7=this['_handler'])[_0x2b19a4(0x332)])==null?void 0x0:_0x21a125['call'](_0x4e14a7,_0x429253))!=null?_0x250e52:_0x429253;}[_0x50a247(0x46f)](_0x1b0093){const _0x41f0b7=_0x50a247;var _0x1234fb,_0x5b09eb;if(this[_0x41f0b7(0x28c)]===_0x4cf902['UNIVER_DOC']){const {unitID:_0x1ede64,mutations:_0x5a76f4,memberID:_0x5ab4f8}=_0x1b0093,_0x4b6510=_0x5a76f4[0x0][_0x41f0b7(0x1ca)][_0x41f0b7(0x2a7)];Array[_0x41f0b7(0x27c)](_0x4b6510)&&_0x4b6510['length']>0x0&&((_0x5b09eb=(_0x1234fb=this[_0x41f0b7(0x180)])[_0x41f0b7(0x34d)])==null||_0x5b09eb[_0x41f0b7(0x1cd)](_0x1234fb,{'unitID':_0x1ede64,'memberID':_0x5ab4f8,'textRanges':_0x4b6510}));}}['_updateLocalCache'](){const _0x336f17=_0x50a247;this[_0x336f17(0x43e)][_0x336f17(0x316)](this[_0x336f17(0x437)],this[_0x336f17(0x28c)],this[_0x336f17(0x257)],this['_pendingMutations']);}[_0x50a247(0x35f)](){const _0x1cf632=_0x50a247;return this[_0x1cf632(0x321)][_0x1cf632(0x340)](this[_0x1cf632(0x437)]);}[_0x50a247(0x3ae)](){const _0x2ffd0f=_0x50a247;this[_0x2ffd0f(0x321)][_0x2ffd0f(0x212)](this[_0x2ffd0f(0x437)]);}[_0x50a247(0x269)](_0xc69a33){const _0x3fae26=_0x50a247;var _0x2a89ce;const _0x318472=this[_0x3fae26(0x3c1)](_0xc69a33),_0x5a1c98=_0x40aff1[_0x3fae26(0x18a)](_0x318472[_0x3fae26(0x18e)],this[_0x3fae26(0x14b)],{'fromCollab':!0x0});if(!_0x5a1c98['result'])throw _0x5a1c98[_0x3fae26(0x207)]instanceof Error?_0x5a1c98[_0x3fae26(0x207)]:new Error((_0x2a89ce=_0x5a1c98[_0x3fae26(0x207)])!=null?_0x2a89ce:_0x3fae26(0x3fd));this['_transformIMECache'](_0x318472),this[_0x3fae26(0x304)](_0xc69a33),this[_0x3fae26(0x19c)](_0x318472),this['_syncEditingCollabCursor'](_0x318472),this['_incrementRevisionNumber']();}}let _0x440104=class extends _0x2073ee{constructor(_0x1ea8a2,_0x5abd40,_0xccc3ed,_0x2edbe3,_0x8d8c7b,_0x55d4e5,_0x492926,_0x559929,_0x57c232){const _0x221367=_0x50a247;super(_0x1ea8a2,_0x5abd40,null,[],_0xccc3ed,_0x559929,_0x492926,_0x2edbe3,_0x8d8c7b),_0x22b1a2(this,_0x221367(0x453),_0x221367(0x1d2)),(this[_0x221367(0x401)]=_0x55d4e5,this[_0x221367(0x3b1)]=_0x57c232);}[_0x50a247(0x236)](_0x371ac2){const _0x5518e9=_0x50a247,_0x4746c7=this[_0x5518e9(0x401)]['createInstance'](_0x2b5aac,this[_0x5518e9(0x437)],this[_0x5518e9(0x28c)],[_0x371ac2],this[_0x5518e9(0x180)]);return _0x4746c7['_schedule'](),_0x4746c7['_updateLocalCache'](),_0x4746c7;}[_0x50a247(0x280)](_0x213e7e){const _0x112f0e=_0x50a247;if(this[_0x112f0e(0x428)](_0x213e7e))return this[_0x112f0e(0x401)]['createInstance'](_0x3725d2,this[_0x112f0e(0x437)],this[_0x112f0e(0x28c)],null,[],null,[_0x213e7e],this[_0x112f0e(0x180)]);try{return this['_executeRemoteChangeset'](_0x213e7e),this;}catch(_0x31b3f7){return this[_0x112f0e(0x3b1)][_0x112f0e(0x207)](_0x112f0e(0x187),_0x31b3f7),this;}}[_0x50a247(0x1b6)](){const _0xa5fb47=_0x50a247;throw new Error(_0xa5fb47(0x4e2));}[_0x50a247(0x3a6)](){const _0x3acff7=_0x50a247;throw new Error(_0x3acff7(0x4aa));}['toggleOffline'](){const _0x41f8fc=_0x50a247;return this[_0x41f8fc(0x401)][_0x41f8fc(0x293)](_0x79ae46,this[_0x41f8fc(0x437)],this[_0x41f8fc(0x28c)],null,[],this[_0x41f8fc(0x180)]);}['toggleOnline'](){return this;}[_0x50a247(0x15d)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x440104=_0x15fb27([_0x383c29(0x3,_0x58498f['Inject'](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x4,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0x5,_0x58498f['Inject'](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x6,_0x40aff1['IUndoRedoService']),_0x383c29(0x7,_0x40aff1['ICommandService']),_0x383c29(0x8,_0x40aff1[_0x50a247(0x192)])],_0x440104);let _0x2b5aac=class extends _0x2073ee{constructor(_0x8c6758,_0xdef023,_0x142efc,_0x3ef609,_0x13d4fb,_0x22ba22,_0x30e320,_0x4f46ea,_0x33d663,_0xc3aead,_0x55bd4b,_0xe8dce1,_0x353308,_0x638c61){const _0x14b844=_0x50a247;super(_0x8c6758,_0xdef023,null,_0x142efc,_0x3ef609,_0xc3aead,_0x638c61,_0x22ba22,_0x30e320),_0x22b1a2(this,_0x14b844(0x453),_0x14b844(0x344)),_0x22b1a2(this,'_scheduleTimestamp',null),_0x22b1a2(this,'_sendingTimer',null),(this[_0x14b844(0x401)]=_0x13d4fb,this[_0x14b844(0x47f)]=_0x4f46ea,this[_0x14b844(0x3b1)]=_0x33d663,this['_configService']=_0x55bd4b,this[_0x14b844(0x135)]=_0xe8dce1,this['_univerInstanceService']=_0x353308);}[_0x50a247(0x236)](_0x528679){const _0x25db5f=_0x50a247;return this[_0x25db5f(0x306)]['push'](_0x528679),this[_0x25db5f(0x25a)](),this;}['onRemoteChangeset'](_0x4f693d){const _0x28c73a=_0x50a247;if(this[_0x28c73a(0x428)](_0x4f693d))return this[_0x28c73a(0x31c)](),this[_0x28c73a(0x401)][_0x28c73a(0x293)](_0x3725d2,this[_0x28c73a(0x437)],this[_0x28c73a(0x28c)],null,this[_0x28c73a(0x306)],null,[_0x4f693d],this[_0x28c73a(0x180)]);try{const _0x30ed13=this[_0x28c73a(0x135)][_0x28c73a(0x36c)](_0x4f693d,this[_0x28c73a(0x306)]);if(_0x57eaa4[_0x28c73a(0x3ff)](_0x30ed13)){const {c1Prime:_0x451142,m2Prime:_0xd8149e}=_0x30ed13;this[_0x28c73a(0x269)](_0x451142);const _0x3f2cd8=this[_0x28c73a(0x401)][_0x28c73a(0x293)](_0x2b5aac,this['unitID'],this[_0x28c73a(0x28c)],_0xd8149e,this[_0x28c73a(0x180)]);return this[_0x28c73a(0x31c)](),_0x3f2cd8[_0x28c73a(0x391)](this[_0x28c73a(0x35a)]?Math[_0x28c73a(0x29e)](0x0,new Date()[_0x28c73a(0x479)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x3f2cd8;}throw _0x30ed13['error'];}catch(_0x1a0980){return this['_logService'][_0x28c73a(0x207)](_0x1a0980),this['_onConflict'](!0x1);}}[_0x50a247(0x1b6)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x50a247(0x3a6)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x50a247(0x3d4)](){const _0x1d16c8=_0x50a247;return this['_clearScheduledTask'](),this[_0x1d16c8(0x401)][_0x1d16c8(0x293)](_0x79ae46,this['unitID'],this[_0x1d16c8(0x28c)],null,this[_0x1d16c8(0x306)],this[_0x1d16c8(0x180)]);}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x391)](_0x350d77){const _0x393653=_0x50a247;_0x350d77=_0x350d77!=null?_0x350d77:this['_getSendChangesetTimeout'](),this[_0x393653(0x35a)]=new Date()[_0x393653(0x479)](),this['_sendingTimer']=setTimeout(()=>{const _0x407dd0=_0x393653;this[_0x407dd0(0x31c)]();let _0x51bdb7=null;switch(this[_0x407dd0(0x28c)]){case _0x4cf902[_0x407dd0(0x309)]:{_0x51bdb7=_0x42b3a8(this[_0x407dd0(0x306)],this[_0x407dd0(0x437)],this[_0x407dd0(0x1f8)],this['_revisionService'],this[_0x407dd0(0x47f)]);break;}case _0x4cf902[_0x407dd0(0x254)]:{_0x51bdb7=_0x1d8e48(this[_0x407dd0(0x306)],this[_0x407dd0(0x437)],this[_0x407dd0(0x1f8)],this[_0x407dd0(0x321)],this[_0x407dd0(0x47f)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x407dd0(0x28c)]+_0x407dd0(0x2bc));}const {changeset:_0x5b48a3,pendingMutations:_0x395451}=_0x51bdb7;this[_0x407dd0(0x180)][_0x407dd0(0x4a5)](_0x5b48a3);const _0x44e94e=_0x395451[_0x407dd0(0x3d6)]?this[_0x407dd0(0x401)][_0x407dd0(0x293)](_0x395896,this[_0x407dd0(0x437)],this['type'],_0x5b48a3,_0x395451,this[_0x407dd0(0x180)]):this[_0x407dd0(0x401)][_0x407dd0(0x293)](_0x2a6e62,this[_0x407dd0(0x437)],this['type'],_0x5b48a3,this[_0x407dd0(0x180)]);_0x44e94e[_0x407dd0(0x25a)](),this['_handler'][_0x407dd0(0x3f0)](this,_0x44e94e);},_0x350d77);}[_0x50a247(0x18c)](){const _0x57cd12=_0x50a247;var _0x24ad2a;return(_0x24ad2a=this[_0x57cd12(0x1ab)][_0x57cd12(0x48e)](_0x275aff))!=null?_0x24ad2a:_0x5c0c0a;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x50a247(0x31c)](){const _0x59e7ec=_0x50a247;this[_0x59e7ec(0x22f)]!=null&&(clearTimeout(this[_0x59e7ec(0x22f)]),this['_sendingTimer']=null);}[_0x50a247(0x4ab)](_0x56a646){const _0x3b29d9=_0x50a247;return this['_clearScheduledTask'](),this['_injector'][_0x3b29d9(0x293)](_0x36f45f,this[_0x3b29d9(0x437)],this[_0x3b29d9(0x28c)],null,this[_0x3b29d9(0x306)],this['_handler'],_0x56a646);}};_0x2b5aac=_0x15fb27([_0x383c29(0x4,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['LocalCacheService'])),_0x383c29(0x7,_0x58498f[_0x50a247(0x342)](_0x370285)),_0x383c29(0x8,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0x9,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0xa,_0x40aff1['IConfigService']),_0x383c29(0xb,_0x57eaa4[_0x50a247(0x3be)]),_0x383c29(0xc,_0x40aff1[_0x50a247(0x3f5)]),_0x383c29(0xd,_0x40aff1['IUndoRedoService'])],_0x2b5aac);let _0x2a6e62=class extends _0x2073ee{constructor(_0x384abd,_0x43cc44,_0x55fb3b,_0x556cff,_0x2d2225,_0x1ce5af,_0x1269a5,_0x27c3a1,_0x4bbbb7,_0x4391af,_0x7f7ddc){const _0x4416bd=_0x50a247;super(_0x384abd,_0x43cc44,_0x55fb3b,[],_0x556cff,_0x27c3a1,_0x7f7ddc,_0x1ce5af,_0x1269a5),_0x22b1a2(this,_0x4416bd(0x453),_0x4416bd(0x3b4)),(this['_injector']=_0x2d2225,this[_0x4416bd(0x3b1)]=_0x4bbbb7,this[_0x4416bd(0x135)]=_0x4391af);}[_0x50a247(0x236)](_0x24aaa2){const _0x15f486=_0x50a247,_0x1b3714=this[_0x15f486(0x401)]['createInstance'](_0x395896,this[_0x15f486(0x437)],this[_0x15f486(0x28c)],this[_0x15f486(0x257)],[_0x24aaa2],this[_0x15f486(0x180)]);return _0x1b3714['_updateLocalCache'](),_0x1b3714;}[_0x50a247(0x280)](_0x20fd56){const _0x2ae727=_0x50a247;if(this[_0x2ae727(0x428)](_0x20fd56))return this[_0x2ae727(0x401)][_0x2ae727(0x293)](_0x3725d2,this[_0x2ae727(0x437)],this['type'],this['_awaitingChangeset'],[],null,[_0x20fd56],this['_handler']);try{const _0x8459be=this['_transformService'][_0x2ae727(0x3ea)]([_0x20fd56],[this[_0x2ae727(0x257)]],!0x1);if(_0x57eaa4[_0x2ae727(0x4dd)](_0x8459be)){const {c1Prime:_0x3cb1bd,c2Prime:_0x53dc69}=_0x8459be;this[_0x2ae727(0x269)](_0x3cb1bd[0x0]),_0x53dc69[0x0][_0x2ae727(0x3de)]=this['_getCurrentRevision']();const _0x344bf6=this[_0x2ae727(0x401)][_0x2ae727(0x293)](_0x2a6e62,this[_0x2ae727(0x437)],this[_0x2ae727(0x28c)],_0x53dc69[0x0],this['_handler']);return _0x344bf6[_0x2ae727(0x25a)](),_0x344bf6;}return this['_onConflict'](!0x1);}catch(_0x2b243f){return this[_0x2ae727(0x3b1)]['error'](_0x2b243f),this['_onConflict'](!0x1);}}[_0x50a247(0x1b6)](_0x57d255){const _0x29f3be=_0x50a247,_0x5a1057=this['_revisionService'][_0x29f3be(0x340)](this[_0x29f3be(0x437)]);if(_0x57d255[_0x29f3be(0x148)]<_0x5a1057-0x1)return this;if(this['_checkMissing'](_0x57d255))return this[_0x29f3be(0x401)][_0x29f3be(0x293)](_0x3725d2,this[_0x29f3be(0x437)],this['type'],null,[],this[_0x29f3be(0x257)],[],this[_0x29f3be(0x180)]);this[_0x29f3be(0x3ae)]();const _0x17d0d3=this[_0x29f3be(0x401)]['createInstance'](_0x440104,this[_0x29f3be(0x437)],this['type'],this[_0x29f3be(0x180)]);return _0x17d0d3[_0x29f3be(0x25a)](),_0x17d0d3;}[_0x50a247(0x3a6)](_0x2ff59a){const _0x5be989=_0x50a247;return this[_0x5be989(0x4ab)](!!(_0x2ff59a!=null&&_0x2ff59a[_0x5be989(0x189)]));}[_0x50a247(0x3d4)](){const _0x22c3b9=_0x50a247;return this[_0x22c3b9(0x401)][_0x22c3b9(0x293)](_0x79ae46,this[_0x22c3b9(0x437)],this[_0x22c3b9(0x28c)],this[_0x22c3b9(0x257)],[],this[_0x22c3b9(0x180)]);}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x15d)](){const _0xdb4109=_0x50a247;this[_0xdb4109(0x180)][_0xdb4109(0x4a5)](this[_0xdb4109(0x257)]);}[_0x50a247(0x4ab)](_0x515a67){const _0x42f540=_0x50a247;return this['_injector'][_0x42f540(0x293)](_0x36f45f,this[_0x42f540(0x437)],this['type'],this[_0x42f540(0x257)],[],this[_0x42f540(0x180)],_0x515a67);}};_0x2a6e62=_0x15fb27([_0x383c29(0x4,_0x58498f['Inject'](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x6,_0x58498f['Inject'](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0x7,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0x8,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0x9,_0x57eaa4['ITransformService']),_0x383c29(0xa,_0x40aff1['IUndoRedoService'])],_0x2a6e62);let _0x395896=class extends _0x2073ee{constructor(_0x113712,_0x5b0f33,_0x52fe0b,_0x28f466,_0x462c42,_0x7cc415,_0x29d4d9,_0xbfcb64,_0x441a5d,_0x47c206,_0x41fad1,_0x306e7f){const _0x28a866=_0x50a247;super(_0x113712,_0x5b0f33,_0x52fe0b,_0x28f466,_0x462c42,_0x441a5d,_0x306e7f,_0x29d4d9,_0xbfcb64),_0x22b1a2(this,_0x28a866(0x453),_0x28a866(0x31d)),(this[_0x28a866(0x401)]=_0x7cc415,this['_logService']=_0x47c206,this[_0x28a866(0x135)]=_0x41fad1);}['appendMutation'](_0x37be05){const _0x189178=_0x50a247;return this[_0x189178(0x306)]['push'](_0x37be05),this;}[_0x50a247(0x280)](_0x378355){const _0x1a324e=_0x50a247;if(this['_checkMissing'](_0x378355))return this[_0x1a324e(0x401)]['createInstance'](_0x3725d2,this[_0x1a324e(0x437)],this['type'],this[_0x1a324e(0x257)],this[_0x1a324e(0x306)],null,[_0x378355],this[_0x1a324e(0x180)]);try{const _0x311e24=this[_0x1a324e(0x135)][_0x1a324e(0x3ea)]([_0x378355],[this['_awaitingChangeset']],!0x1);if(_0x57eaa4[_0x1a324e(0x4dd)](_0x311e24)){const {c1Prime:_0xd4dd4e,c2Prime:_0x2e6b17}=_0x311e24,_0x190dd8=this['_transformService'][_0x1a324e(0x36c)](_0xd4dd4e[0x0],this[_0x1a324e(0x306)]);if(_0x57eaa4[_0x1a324e(0x3ff)](_0x190dd8)){const {c1Prime:_0x5d6466,m2Prime:_0x42c76c}=_0x190dd8;return this[_0x1a324e(0x269)](_0x5d6466),_0x2e6b17[0x0][_0x1a324e(0x3de)]=this[_0x1a324e(0x35f)](),this[_0x1a324e(0x401)]['createInstance'](_0x395896,this['unitID'],this[_0x1a324e(0x28c)],_0x2e6b17[0x0],_0x42c76c,this[_0x1a324e(0x180)]);}throw _0x190dd8[_0x1a324e(0x207)];}throw _0x311e24[_0x1a324e(0x207)];}catch(_0x4d261c){return this['_logService']['error'](_0x4d261c),this[_0x1a324e(0x4ab)](!0x1);}}[_0x50a247(0x1b6)](_0x1ecad6){const _0x140818=_0x50a247;if(this[_0x140818(0x428)](_0x1ecad6))return this[_0x140818(0x401)]['createInstance'](_0x3725d2,this[_0x140818(0x437)],this[_0x140818(0x28c)],null,this[_0x140818(0x306)],this[_0x140818(0x257)],[],this[_0x140818(0x180)]);this[_0x140818(0x3ae)]();const _0x5cd52a=this['_injector'][_0x140818(0x293)](_0x2b5aac,this[_0x140818(0x437)],this['type'],this[_0x140818(0x306)],this[_0x140818(0x180)]);return _0x5cd52a[_0x140818(0x391)](),_0x5cd52a['_updateLocalCache'](),_0x5cd52a;}['onRemoteRej'](_0x3817ac){const _0x4f6a0c=_0x50a247;return this['_onConflict'](!!(_0x3817ac!=null&&_0x3817ac[_0x4f6a0c(0x189)]));}[_0x50a247(0x3d4)](){const _0x25a7e3=_0x50a247;return this['_injector'][_0x25a7e3(0x293)](_0x79ae46,this[_0x25a7e3(0x437)],this[_0x25a7e3(0x28c)],this[_0x25a7e3(0x257)],this[_0x25a7e3(0x306)],this[_0x25a7e3(0x180)]);}['toggleOnline'](){return this;}[_0x50a247(0x15d)](){const _0x3e97a5=_0x50a247;this[_0x3e97a5(0x180)][_0x3e97a5(0x4a5)](this[_0x3e97a5(0x257)]);}[_0x50a247(0x4ab)](_0x1b6ce4){const _0x3237f5=_0x50a247;return this[_0x3237f5(0x401)][_0x3237f5(0x293)](_0x36f45f,this['unitID'],this[_0x3237f5(0x28c)],null,this[_0x3237f5(0x306)],this[_0x3237f5(0x180)],_0x1b6ce4);}};_0x395896=_0x15fb27([_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x7,_0x58498f['Inject'](_0x5bd0fe['LocalCacheService'])),_0x383c29(0x8,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0x9,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0xa,_0x57eaa4[_0x50a247(0x3be)]),_0x383c29(0xb,_0x40aff1[_0x50a247(0x351)])],_0x395896);let _0x36f45f=class extends _0x2073ee{constructor(_0x4e85f3,_0x511d45,_0x3e668d,_0x299634,_0x293d79,_0x3ff6e2=!0x1,_0x5893f4,_0x19774e,_0x347932,_0x3b6ddf,_0x4b7fe2,_0x28101e,_0x54295e){const _0x3403f5=_0x50a247;super(_0x4e85f3,_0x511d45,_0x3e668d,_0x299634,_0x293d79,_0x19774e,_0x347932,_0x4b7fe2,_0x3b6ddf),_0x22b1a2(this,_0x3403f5(0x453),_0x3403f5(0x471)),(this[_0x3403f5(0x1f5)]=_0x3ff6e2,this[_0x3403f5(0x193)]=_0x5893f4,this[_0x3403f5(0x4b0)]=_0x28101e,this['_notificationService']=_0x54295e,this[_0x3403f5(0x354)](),this['_clearLocalCache'](),this[_0x3403f5(0x390)]());}['appendMutation'](){return this;}[_0x50a247(0x280)](){return this;}['onRemoteAck'](){return this;}[_0x50a247(0x3a6)](){return this;}[_0x50a247(0x3d4)](){return this;}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x15d)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x34e002=_0x50a247;this[_0x34e002(0x43e)][_0x34e002(0x316)](this[_0x34e002(0x437)],this[_0x34e002(0x28c)],null,[]);}[_0x50a247(0x354)](){const _0x2a14ca=_0x50a247;this[_0x2a14ca(0x1f5)]?this['_notificationService']['show']({'title':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x35d)),'content':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x2e3)),'type':'error','duration':0x0}):this[_0x2a14ca(0x2ed)]['show']({'title':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x17f)),'content':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x48b)),'type':'error','duration':0x0});}[_0x50a247(0x390)](){const _0x574673=_0x50a247;this[_0x574673(0x193)][_0x574673(0x3bc)](new _0x361837[(_0x574673(0x30c))](this[_0x574673(0x437)])['id'],!0x1);}};_0x36f45f=_0x15fb27([_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x250)])),_0x383c29(0x7,_0x40aff1['ICommandService']),_0x383c29(0x8,_0x40aff1[_0x50a247(0x351)]),_0x383c29(0x9,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0xa,_0x58498f[_0x50a247(0x342)](_0x57eaa4['RevisionService'])),_0x383c29(0xb,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x34a)])),_0x383c29(0xc,_0x4f2827[_0x50a247(0x215)])],_0x36f45f);let _0x79ae46=class extends _0x2073ee{constructor(_0x12fc80,_0xc40662,_0x2843e0,_0x2ec2ba,_0x9d26c4,_0x3f9cea,_0x5caa33,_0x5a27c6,_0x7e6a73,_0x5051ab){const _0x144cd5=_0x50a247;super(_0x12fc80,_0xc40662,_0x2843e0,_0x2ec2ba,_0x9d26c4,_0x7e6a73,_0x5051ab,_0x5caa33,_0x5a27c6),_0x22b1a2(this,_0x144cd5(0x453),'offline'),this[_0x144cd5(0x401)]=_0x3f9cea;}[_0x50a247(0x236)](_0x851f87){const _0x1bf2f8=_0x50a247;return this['_pendingMutations'][_0x1bf2f8(0x4a8)](_0x851f87),this['_updateLocalCache'](),this;}[_0x50a247(0x280)](_0x3bf0d9){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x50a247(0x1b6)](){const _0x38d99e=_0x50a247;throw new Error(_0x38d99e(0x48a));}[_0x50a247(0x3a6)](){const _0x358c04=_0x50a247;throw new Error(_0x358c04(0x2b2));}[_0x50a247(0x3d4)](){return this;}['toggleOnline'](){const _0x45a2ff=_0x50a247,{_injector:_0x95fe72,_pendingMutations:_0x45009d,_awaitingChangeset:_0xf857c3,unitID:_0x5db411,_handler:_0x4c2739,type:_0x5d3408}=this,_0x13aca7=_0x47e08a(_0x95fe72,_0x5db411,_0x5d3408,_0xf857c3,_0x45009d,_0x4c2739);return _0x13aca7 instanceof _0x2b5aac?_0x13aca7['_schedule']():(_0x13aca7 instanceof _0x395896||_0x13aca7 instanceof _0x2a6e62)&&_0x13aca7[_0x45a2ff(0x15d)](),_0x13aca7;}[_0x50a247(0x15d)](){const _0x369895=_0x50a247;throw new Error(_0x369895(0x4d0));}};_0x79ae46=_0x15fb27([_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x57eaa4['RevisionService'])),_0x383c29(0x7,_0x58498f['Inject'](_0x5bd0fe['LocalCacheService'])),_0x383c29(0x8,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0x9,_0x40aff1[_0x50a247(0x351)])],_0x79ae46);let _0x3725d2=class extends _0x2073ee{constructor(_0x14c092,_0x12fee9,_0x2ffb37,_0x119dd1,_0x33dc6f,_0x4dda29,_0x801ad9,_0xa2e760,_0x34614c,_0x43aa2b,_0x411191,_0x459cb0,_0x4e00c2,_0x373492){const _0x3f10fd=_0x50a247;super(_0x14c092,_0x12fee9,_0x2ffb37,_0x119dd1,_0x801ad9,_0x459cb0,_0x4e00c2,_0x34614c,_0x43aa2b),_0x22b1a2(this,_0x3f10fd(0x453),_0x3f10fd(0x149)),(this[_0x3f10fd(0x4a6)]=_0x33dc6f,this['_queuedRemoteChangesets']=_0x4dda29,this[_0x3f10fd(0x401)]=_0xa2e760,this[_0x3f10fd(0x3b1)]=_0x411191,this[_0x3f10fd(0x135)]=_0x373492);}['onMissedChangesetFetched'](_0x2d9638){const _0x27a812=_0x50a247;try{const _0x3dc4c1=[..._0x2d9638,...this[_0x27a812(0x2c0)]],_0x23e303=[this['_awaitingChangeset']||this[_0x27a812(0x4a6)]][_0x27a812(0x1b1)](_0xb8d739=>!!_0xb8d739);let _0x1a9339,_0x151d32;if(_0x23e303['length']){const _0x2a25c2=this[_0x27a812(0x135)][_0x27a812(0x3ea)](_0x3dc4c1,_0x23e303,!0x1);if(!_0x57eaa4[_0x27a812(0x4dd)](_0x2a25c2))throw _0x2a25c2[_0x27a812(0x207)];_0x1a9339=_0x2a25c2[_0x27a812(0x287)],_0x151d32=_0x2a25c2[_0x27a812(0x378)];}else _0x1a9339=_0x3dc4c1,_0x151d32=[];let _0x456b3e=this[_0x27a812(0x306)];_0x1a9339[_0x27a812(0x35b)](_0x5962f1=>{const _0x924a1a=_0x27a812;let _0x5c9699;if(_0x456b3e[_0x924a1a(0x3d6)]){const _0x342d2f=this[_0x924a1a(0x135)]['transformMutationsWithChangeset'](_0x5962f1,_0x456b3e);if(!_0x57eaa4[_0x924a1a(0x3ff)](_0x342d2f))throw _0x342d2f[_0x924a1a(0x207)];_0x5c9699=_0x342d2f[_0x924a1a(0x287)],_0x456b3e=_0x342d2f[_0x924a1a(0x3ac)];}else _0x5c9699=_0x5962f1;this['_executeRemoteChangeset'](_0x5c9699);}),this[_0x27a812(0x4a6)]&&this[_0x27a812(0x3ae)](),this[_0x27a812(0x257)]&&_0x151d32[_0x27a812(0x3d6)]&&(_0x151d32[0x0][_0x27a812(0x3de)]=this['_getCurrentRevision']());let _0xeb9e4b;if(this[_0x27a812(0x257)]&&_0x456b3e[_0x27a812(0x3d6)]!==0x0)_0xeb9e4b=this[_0x27a812(0x401)][_0x27a812(0x293)](_0x395896,this[_0x27a812(0x437)],this['type'],_0x151d32[0x0],_0x456b3e,this['_handler']);else{if(this['_awaitingChangeset']&&_0x456b3e['length']===0x0)_0x151d32[0x0][_0x27a812(0x3de)]=this[_0x27a812(0x35f)](),_0xeb9e4b=this[_0x27a812(0x401)][_0x27a812(0x293)](_0x2a6e62,this[_0x27a812(0x437)],this[_0x27a812(0x28c)],_0x151d32[0x0],this[_0x27a812(0x180)]);else{if(_0x456b3e['length']!==0x0){const _0x43aa6d=this[_0x27a812(0x401)]['createInstance'](_0x2b5aac,this[_0x27a812(0x437)],this['type'],_0x456b3e,this[_0x27a812(0x180)]);_0x43aa6d[_0x27a812(0x391)](),_0xeb9e4b=_0x43aa6d;}else _0xeb9e4b=this[_0x27a812(0x401)][_0x27a812(0x293)](_0x440104,this[_0x27a812(0x437)],this['type'],this[_0x27a812(0x180)]);}}return _0xeb9e4b[_0x27a812(0x25a)](),_0xeb9e4b;}catch(_0x3216d1){return this[_0x27a812(0x3b1)][_0x27a812(0x207)](_0x27a812(0x372),_0x27a812(0x2f5),_0x3216d1),this['_injector']['createInstance'](_0x36f45f,this['unitID'],this[_0x27a812(0x28c)],this[_0x27a812(0x257)],this[_0x27a812(0x306)],this[_0x27a812(0x180)],!0x1);}}['resend'](){const _0x51e0f0=_0x50a247;throw new Error(_0x51e0f0(0x494));}['appendMutation'](_0x37942a){const _0x16f8fb=_0x50a247;return this['_pendingMutations'][_0x16f8fb(0x4a8)](_0x37942a),this;}[_0x50a247(0x280)](_0x4d9840){const _0x1059f5=_0x50a247;return this[_0x1059f5(0x2c0)][_0x1059f5(0x4a8)](_0x4d9840),this;}[_0x50a247(0x1b6)](_0x298993){const _0x22b75c=_0x50a247;if(this[_0x22b75c(0x257)])return this[_0x22b75c(0x4a6)]=this[_0x22b75c(0x257)],this[_0x22b75c(0x257)]=null,this;throw new Error(_0x22b75c(0x23c));}['onRemoteRej'](_0x9d26a8){const _0x321de1=_0x50a247;return this[_0x321de1(0x4ab)](!!(_0x9d26a8!=null&&_0x9d26a8['isPermissionRej']));}['toggleOffline'](){const _0x4efb6b=_0x50a247;return this['_injector']['createInstance'](_0x79ae46,this[_0x4efb6b(0x437)],this['type'],this[_0x4efb6b(0x257)],this[_0x4efb6b(0x306)],this[_0x4efb6b(0x180)]);}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x4ab)](_0x1a3935){const _0x480744=_0x50a247;return this[_0x480744(0x401)][_0x480744(0x293)](_0x36f45f,this['unitID'],this[_0x480744(0x28c)],this['_awaitingChangeset'],this[_0x480744(0x306)],this['_handler'],_0x1a3935);}};_0x3725d2=_0x15fb27([_0x383c29(0x7,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x8,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x9,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0xa,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0xb,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0xc,_0x40aff1[_0x50a247(0x351)]),_0x383c29(0xd,_0x57eaa4[_0x50a247(0x3be)])],_0x3725d2);function _0x47e08a(_0x3ab5c7,_0x5aefa8,_0x3e7ff9,_0x3dff6b,_0x5503e7,_0x49f49a){const _0x10a205=_0x50a247;return _0x3dff6b&&_0x5503e7[_0x10a205(0x3d6)]?_0x3ab5c7['createInstance'](_0x395896,_0x5aefa8,_0x3e7ff9,_0x3dff6b,_0x5503e7,_0x49f49a):_0x3dff6b?_0x3ab5c7[_0x10a205(0x293)](_0x2a6e62,_0x5aefa8,_0x3e7ff9,_0x3dff6b,_0x49f49a):_0x5503e7[_0x10a205(0x3d6)]?_0x3ab5c7[_0x10a205(0x293)](_0x2b5aac,_0x5aefa8,_0x3e7ff9,_0x5503e7,_0x49f49a):_0x3ab5c7['createInstance'](_0x440104,_0x5aefa8,_0x3e7ff9,_0x49f49a);}var _0xac1bae=(_0x441b79,_0x4c5bb4,_0x422ecb,_0x36298e)=>{const _0x452a34=_0x50a247;for(var _0x3d6fec=_0x4c5bb4,_0x3fd686=_0x441b79[_0x452a34(0x3d6)]-0x1,_0x2f1122;_0x3fd686>=0x0;_0x3fd686--)(_0x2f1122=_0x441b79[_0x3fd686])&&(_0x3d6fec=_0x2f1122(_0x3d6fec)||_0x3d6fec);return _0x3d6fec;},_0x4c4bd3=(_0x110ed0,_0x343dab)=>(_0xded47a,_0x555555)=>_0x343dab(_0xded47a,_0x555555,_0x110ed0);_0x5bd0fe[_0x50a247(0x422)]=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x5aa23d,_0xb15135,_0x5c3a36){const _0x4e635a=_0x50a247;super(),_0x22b1a2(this,_0x4e635a(0x2f9),new Map()),_0x22b1a2(this,_0x4e635a(0x397),new _0x3171f1[(_0x4e635a(0x1ed))]()),(this[_0x4e635a(0x401)]=_0x5aa23d,this[_0x4e635a(0x158)]=_0xb15135,this[_0x4e635a(0x1f8)]=_0x5c3a36,this[_0x4e635a(0x1ce)]());}[_0x50a247(0x1e5)](){const _0x170f73=_0x50a247;super['dispose'](),this[_0x170f73(0x2f9)][_0x170f73(0x35b)](_0x4770ed=>_0x4770ed[_0x170f73(0x1e5)]()),this[_0x170f73(0x2f9)][_0x170f73(0x348)]();}[_0x50a247(0x241)](_0x35a611){const _0x54c196=_0x50a247;var _0x731758;return(_0x731758=this[_0x54c196(0x2f9)][_0x54c196(0x17e)](_0x35a611))!=null?_0x731758:null;}[_0x50a247(0x240)](_0x59cb44){const _0x90353c=_0x50a247,_0x2a471a=this[_0x90353c(0x241)](_0x59cb44);return _0x2a471a?_0x3171f1['of'](_0x2a471a):this[_0x90353c(0x397)][_0x90353c(0x41d)](_0x32d0c5['filter'](_0x2cd692=>_0x2cd692[_0x90353c(0x437)]===_0x59cb44));}[_0x50a247(0x1ce)](){const _0x95c00b=_0x50a247;this[_0x95c00b(0x1f8)]['getTypeOfUnitAdded$'](_0x40aff1[_0x95c00b(0x1ff)][_0x95c00b(0x309)])['pipe'](_0x3171f1[_0x95c00b(0x1f0)](this[_0x95c00b(0x439)]),_0x32d0c5['delay'](0x10))[_0x95c00b(0x1a6)](async _0x428f28=>{const _0x26baac=_0x95c00b,_0x56d734=_0x428f28[_0x26baac(0x220)](),_0x455010=await this[_0x26baac(0x39f)](_0x56d734,_0x4cf902['UNIVER_SHEET']);this['_entities'][_0x26baac(0x3cc)](_0x56d734,_0x455010);}),this[_0x95c00b(0x1f8)][_0x95c00b(0x3c2)](_0x40aff1['UniverInstanceType'][_0x95c00b(0x254)])[_0x95c00b(0x41d)](_0x3171f1[_0x95c00b(0x1f0)](this[_0x95c00b(0x439)]),_0x32d0c5[_0x95c00b(0x4d6)](0x10))['pipe'](_0x32d0c5[_0x95c00b(0x1b1)](_0xf837c6=>!_0xf837c6[_0x95c00b(0x220)]()['startsWith']('__')))[_0x95c00b(0x1a6)](async _0xa09e8a=>{const _0x47155a=_0x95c00b,_0x42fa82=_0xa09e8a['getUnitId'](),_0x7e7388=await this[_0x47155a(0x39f)](_0x42fa82,_0x4cf902[_0x47155a(0x254)]);this['_entities'][_0x47155a(0x3cc)](_0x42fa82,_0x7e7388);}),_0x3171f1[_0x95c00b(0x151)](this[_0x95c00b(0x1f8)][_0x95c00b(0x484)](_0x40aff1[_0x95c00b(0x1ff)][_0x95c00b(0x309)]),this['_univerInstanceService'][_0x95c00b(0x484)](_0x40aff1[_0x95c00b(0x1ff)][_0x95c00b(0x254)]))[_0x95c00b(0x41d)](_0x3171f1[_0x95c00b(0x1f0)](this[_0x95c00b(0x439)]))['subscribe'](_0x253953=>{const _0x1fc035=_0x95c00b,_0x4b15d2=_0x253953[_0x1fc035(0x220)](),_0x2c8bf6=this[_0x1fc035(0x2f9)][_0x1fc035(0x17e)](_0x4b15d2);_0x2c8bf6&&(_0x2c8bf6['dispose'](),this['_entities'][_0x1fc035(0x371)](_0x4b15d2));});}async[_0x50a247(0x39f)](_0xd5e44b,_0x2e164d){const _0x1404ca=_0x50a247,_0x27490f=await this[_0x1404ca(0x158)][_0x1404ca(0x327)](_0xd5e44b),_0x5adffe=this[_0x1404ca(0x401)][_0x1404ca(0x293)](this['_getCtorByUniverType'](_0x2e164d),_0xd5e44b,_0x2e164d,_0x27490f);return await _0x5adffe[_0x1404ca(0x356)](),this[_0x1404ca(0x397)][_0x1404ca(0x446)](_0x5adffe),_0x5adffe;}[_0x50a247(0x492)](_0x34cf80){const _0x5e9350=_0x50a247;switch(_0x34cf80){case _0x4cf902['UNIVER_DOC']:return _0x124e54;case _0x4cf902['UNIVER_SHEET']:return _0x10966b;default:throw new Error(_0x5e9350(0x1e4)+_0x34cf80);}}},_0x5bd0fe[_0x50a247(0x422)]=_0xac1bae([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5bd0fe[_0x50a247(0x422)]),_0x4c4bd3(0x0,_0x58498f['Inject'](_0x58498f['Injector'])),_0x4c4bd3(0x1,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x1c4)])),_0x4c4bd3(0x2,_0x40aff1['IUniverInstanceService'])],_0x5bd0fe['CollaborationController']);let _0x3325f9=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x18c50d,_0xc7c386,_0x106c2e,_0x4bb0d0,_0x3cd6d8,_0x134a44,_0x2efe58,_0x182e60,_0x1b4c35,_0xfe72e5,_0x336b5b,_0xeeed60,_0x4af608){const _0x539dbb=_0x50a247;super(),_0x22b1a2(this,'_state$',new _0x3171f1[(_0x539dbb(0x431))](null)),_0x22b1a2(this,_0x539dbb(0x302),this[_0x539dbb(0x230)][_0x539dbb(0x407)]()),_0x22b1a2(this,_0x539dbb(0x3b9)),_0x22b1a2(this,_0x539dbb(0x2cb),!0x1),_0x22b1a2(this,_0x539dbb(0x1c6),this['state$']['pipe'](_0x32d0c5[_0x539dbb(0x290)](_0x1c4fc9=>_0x1c4fc9?_0x1c4fc9['status']:_0x2dad21['OFFLINE']),_0x32d0c5['shareReplay'](0x1))),_0x22b1a2(this,'_transitionLocked',!0x1),_0x22b1a2(this,_0x539dbb(0x2eb),[]),(this[_0x539dbb(0x437)]=_0x18c50d,this[_0x539dbb(0x170)]=_0xc7c386,this[_0x539dbb(0x438)]=_0x106c2e,this[_0x539dbb(0x401)]=_0x4bb0d0,this[_0x539dbb(0x43e)]=_0x3cd6d8,this[_0x539dbb(0x239)]=_0x134a44,this['_localeService']=_0x2efe58,this['_revisionService']=_0x182e60,this[_0x539dbb(0x3b1)]=_0x1b4c35,this['_commandService']=_0xfe72e5,this[_0x539dbb(0x490)]=_0x336b5b,this['_permissionService']=_0xeeed60,this[_0x539dbb(0x1af)]=_0x4af608);}get[_0x50a247(0x28f)](){return this['_state'];}async['init'](){const _0x47992d=_0x50a247;if(this[_0x47992d(0x28f)])throw new Error(_0x47992d(0x414));await this['_init']();}['pauseCollaboration'](){const _0x56e656=_0x50a247;return this[_0x56e656(0x2cb)]=!0x0,_0x40aff1[_0x56e656(0x2b7)](()=>{const _0x746e64=_0x56e656;this[_0x746e64(0x2cb)]=!0x1,this[_0x746e64(0x299)]();});}[_0x50a247(0x1ba)](_0x2454ab){const _0x152177=_0x50a247;this[_0x152177(0x3b9)]=_0x2454ab,this[_0x152177(0x230)][_0x152177(0x446)](_0x2454ab);}async[_0x50a247(0x1ce)](){const _0x554c85=_0x50a247;var _0x484aa4;return this['_updateState'](await this[_0x554c85(0x282)]()),this[_0x554c85(0x1af)]&&((_0x484aa4=this[_0x554c85(0x1af)])==null||_0x484aa4[_0x554c85(0x3a7)](this[_0x554c85(0x437)]),this['disposeWithMe'](_0x40aff1[_0x554c85(0x2b7)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x554c85(0x437)])[_0x554c85(0x1a6)](_0x29e7e6=>{const _0x1b1bea=_0x554c85;this[_0x1b1bea(0x3b1)][_0x1b1bea(0x2d6)]('[CollaborationEntity]',_0x1b1bea(0x1bc),_0x29e7e6),_0x29e7e6===_0x1e11de[_0x1b1bea(0x4d9)]?(this[_0x1b1bea(0x490)]['show']({'content':this['_localeService']['t'](_0x1b1bea(0x3ec)),'type':_0x4ae90e[_0x1b1bea(0x385)][_0x1b1bea(0x174)]}),this[_0x1b1bea(0x193)][_0x1b1bea(0x3bc)](new _0x361837[(_0x1b1bea(0x30c))](this[_0x1b1bea(0x437)])['id'],!0x1)):this[_0x1b1bea(0x193)][_0x1b1bea(0x3bc)](new _0x361837['WorkbookEditablePermission'](this[_0x1b1bea(0x437)])['id'],!0x0);})))),this['disposeWithMe'](_0x40aff1[_0x554c85(0x2b7)](this[_0x554c85(0x438)][_0x554c85(0x2c3)][_0x554c85(0x1a6)](_0x59516b=>{const _0x45d2c9=_0x554c85;_0x59516b===_0x2d7bdc[_0x45d2c9(0x3b6)]?this[_0x45d2c9(0x3df)]():_0x59516b===_0x2d7bdc[_0x45d2c9(0x152)]&&this[_0x45d2c9(0x1e8)]();}))),this['disposeWithMe'](_0x40aff1[_0x554c85(0x2b7)](this['_session'][_0x554c85(0x326)]['subscribe'](_0x456596=>{const _0x3595d6=_0x554c85;try{switch(_0x456596[_0x3595d6(0x464)]){case _0x57eaa4['CollaborationEvent']['NEW_CHANGESETS']:{this[_0x3595d6(0x1cf)](_0x57eaa4[_0x3595d6(0x228)](_0x456596[_0x3595d6(0x1bb)]));break;}case _0x57eaa4[_0x3595d6(0x253)][_0x3595d6(0x26c)]:{this[_0x3595d6(0x442)](_0x456596['data']);break;}case _0x57eaa4[_0x3595d6(0x253)][_0x3595d6(0x1a0)]:{this[_0x3595d6(0x335)]();break;}case _0x57eaa4['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x456596[_0x3595d6(0x1bb)]['changesets']['map'](_0x581d7c=>_0x57eaa4[_0x3595d6(0x228)](_0x581d7c)));break;}case _0x57eaa4[_0x3595d6(0x253)]['PERMISSION_REJ']:this[_0x3595d6(0x335)]({'isPermissionRej':!0x0});}}catch(_0x45e333){throw console['error']('Error\x20on\x20receiving\x20event',_0x45e333),_0x45e333;}}))),this[_0x554c85(0x3b9)];}[_0x50a247(0x1c7)](){this['_transitionLocked']=!0x1;}[_0x50a247(0x139)](){const _0x412ea9=_0x50a247;if(this[_0x412ea9(0x495)])throw new Error(_0x412ea9(0x2f8));this[_0x412ea9(0x495)]=!0x0;}[_0x50a247(0x39d)](_0x39eb25){const _0x1fce76=_0x50a247;this[_0x1fce76(0x139)](),this[_0x1fce76(0x1ba)](this[_0x1fce76(0x3b9)]['appendMutation'](_0x39eb25)),this[_0x1fce76(0x1c7)]();}[_0x50a247(0x1cf)](_0x2e4297){const _0xe97ba7=_0x50a247;if(!(_0x2e4297[_0xe97ba7(0x148)]<=this['_revisionService'][_0xe97ba7(0x340)](this[_0xe97ba7(0x437)]))){if(this[_0xe97ba7(0x2cb)]){this[_0xe97ba7(0x2eb)][_0xe97ba7(0x4a8)](_0x2e4297);return;}this[_0xe97ba7(0x286)](_0x2e4297);}}[_0x50a247(0x299)](){const _0xee3b67=_0x50a247;this[_0xee3b67(0x2eb)][_0xee3b67(0x35b)](_0x54a052=>this[_0xee3b67(0x286)](_0x54a052)),this[_0xee3b67(0x2eb)]=[];}[_0x50a247(0x286)](_0x4f45af){const _0x2282ba=_0x50a247,_0x3337ef=this[_0x2282ba(0x239)][_0x2282ba(0x46d)][_0x2282ba(0x1f9)](this['_compressMutationService'][_0x2282ba(0x46d)][_0x2282ba(0x1e3)]()[_0x2282ba(0x4c9)])(_0x4f45af[_0x2282ba(0x18e)],null)||_0x4f45af[_0x2282ba(0x18e)],_0x50d1bc={..._0x4f45af,'mutations':_0x3337ef};this['_lockTransition'](),this[_0x2282ba(0x1ba)](this[_0x2282ba(0x3b9)][_0x2282ba(0x280)](_0x50d1bc)),this['_unlockTransition']();}[_0x50a247(0x442)](_0x5f4f47){const _0x2d3e99=_0x50a247;this[_0x2d3e99(0x139)](),this[_0x2d3e99(0x1ba)](this[_0x2d3e99(0x3b9)][_0x2d3e99(0x1b6)](_0x5f4f47)),this[_0x2d3e99(0x1c7)]();}[_0x50a247(0x335)](_0x380fb0){const _0x42779e=_0x50a247;this[_0x42779e(0x139)](),this['_updateState'](this[_0x42779e(0x3b9)][_0x42779e(0x3a6)](_0x380fb0)),this[_0x42779e(0x1c7)]();}[_0x50a247(0x460)](_0x405469){const _0x4697fe=_0x50a247;if(!(this['_state']instanceof _0x3725d2))throw new TypeError(_0x4697fe(0x162));const _0x38c1d1=_0x405469[_0x4697fe(0x290)](_0x37fd7e=>{const _0x13f18b=_0x4697fe,_0x89e2e=this[_0x13f18b(0x239)][_0x13f18b(0x46d)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x13f18b(0x46d)]['getInterceptPoints']()[_0x13f18b(0x4c9)])(_0x37fd7e[_0x13f18b(0x18e)],null)||_0x37fd7e['mutations'];return{..._0x37fd7e,'mutations':_0x89e2e};});this[_0x4697fe(0x139)](),this[_0x4697fe(0x1ba)](this[_0x4697fe(0x3b9)][_0x4697fe(0x2f0)](_0x38c1d1)),this[_0x4697fe(0x1c7)]();}[_0x50a247(0x1e8)](){const _0xae21d2=_0x50a247;this[_0xae21d2(0x139)](),this[_0xae21d2(0x1ba)](this['_state'][_0xae21d2(0x3d4)]()),this[_0xae21d2(0x1c7)]();}[_0x50a247(0x3df)](){const _0x5957cf=_0x50a247;this['_lockTransition'](),this['_updateState'](this['_state'][_0x5957cf(0x27d)]()),this[_0x5957cf(0x1c7)]();}async[_0x50a247(0x282)](){return new Promise(_0x2e36b9=>{const _0xb58094=_0x3f00;this['_session'][_0xb58094(0x2c3)]['pipe'](_0x32d0c5['take'](0x1))[_0xb58094(0x1a6)](async _0x2cf2c9=>{_0x2e36b9(await this['_createInitialStateImpl'](_0x2cf2c9===_0x2d7bdc['ONLINE']));});});}['_createHandler'](){const _0x54ab23=this['unitID'];return{'onStateChange':(_0x52d5f1,_0x1d2aff)=>{const _0x9ddc37=_0x3f00;if(_0x52d5f1!==this[_0x9ddc37(0x3b9)])throw new Error(_0x9ddc37(0x3c8)+_0x52d5f1['status']+_0x9ddc37(0x3dc)+_0x1d2aff[_0x9ddc37(0x453)]+_0x9ddc37(0x14e)+this[_0x9ddc37(0x3b9)][_0x9ddc37(0x453)]);this['_updateState'](_0x1d2aff);},'onSendChangeset':_0x381f30=>{const _0x3d3af8=_0x3f00,_0x3ddd00={'eventID':_0x57eaa4[_0x3d3af8(0x253)][_0x3d3af8(0x34b)],'data':{'unitID':_0x381f30['unitID'],'unitType':this[_0x3d3af8(0x170)],'changeset':_0x381f30,'memberID':this['_session'][_0x3d3af8(0x441)]()}};this['_session']['send'](_0x3ddd00,this[_0x3d3af8(0x437)]);},'onMissingChangesets':({from:_0xdec7d,to:_0x149e79})=>{const _0xb23ed=_0x3f00;this['_logService'][_0xb23ed(0x2d6)](_0xb23ed(0x44f),_0xb23ed(0x2c7)+_0xdec7d+_0xb23ed(0x167)+_0x149e79);const _0x58fa71={'eventID':_0x57eaa4[_0xb23ed(0x253)][_0xb23ed(0x18b)],'data':{'unitID':_0x54ab23,'unitType':this['_type'],'from':_0xdec7d,'to':_0x149e79}};this[_0xb23ed(0x438)][_0xb23ed(0x2c2)](_0x58fa71,this[_0xb23ed(0x437)]);}};}async[_0x50a247(0x188)](_0x3d2250){const _0x3922a5=_0x50a247;var _0x5f4515,_0x17aa1c;const _0x1cdb93=await this['_localCacheService'][_0x3922a5(0x4a1)](this[_0x3922a5(0x437)]),_0x3ca8ff=(_0x5f4515=_0x1cdb93==null?void 0x0:_0x1cdb93[_0x3922a5(0x18e)])!=null?_0x5f4515:[],_0x23ede7=(_0x17aa1c=_0x1cdb93==null?void 0x0:_0x1cdb93[_0x3922a5(0x224)])!=null?_0x17aa1c:null,_0x2870c1=this['unitID'];try{this[_0x3922a5(0x233)](_0x23ede7,_0x3ca8ff);}catch(_0x864a29){this['_logService'][_0x3922a5(0x207)](_0x864a29);}const _0x253d3e=this[_0x3922a5(0x49e)]();if(_0x3d2250){const _0x38f37f=_0x47e08a(this[_0x3922a5(0x401)],_0x2870c1,this[_0x3922a5(0x170)],_0x23ede7,_0x3ca8ff,_0x253d3e);return _0x38f37f instanceof _0x2b5aac?_0x38f37f[_0x3922a5(0x391)]():(_0x38f37f instanceof _0x395896||_0x38f37f instanceof _0x2a6e62)&&_0x38f37f['resend'](),_0x38f37f;}return this[_0x3922a5(0x401)][_0x3922a5(0x293)](_0x79ae46,_0x2870c1,this[_0x3922a5(0x170)],_0x23ede7,_0x3ca8ff,_0x253d3e);}['_replayCachedMutations'](_0x1db610,_0x5d6b98){const _0xe528bf=_0x50a247;var _0x2bfe19,_0x1e2927;const _0x525017=this[_0xe528bf(0x239)][_0xe528bf(0x46d)][_0xe528bf(0x1f9)](this[_0xe528bf(0x239)]['interceptor'][_0xe528bf(0x1e3)]()['COMPRESS_MUTATION_APPLY']);(_0x2bfe19=_0x525017((_0x1db610==null?void 0x0:_0x1db610[_0xe528bf(0x18e)])||[],null))==null||_0x2bfe19['forEach'](_0x5cc901=>this[_0xe528bf(0x14b)][_0xe528bf(0x1eb)](_0x5cc901['id'],_0x5cc901[_0xe528bf(0x1ca)])),(_0x1e2927=_0x525017(_0x5d6b98||[],null))==null||_0x1e2927['forEach'](_0x46bb48=>this[_0xe528bf(0x14b)][_0xe528bf(0x1eb)](_0x46bb48['id'],_0x46bb48[_0xe528bf(0x1ca)]));}};_0x3325f9=_0xac1bae([_0x4c4bd3(0x3,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x4c4bd3(0x4,_0x58498f['Inject'](_0x5bd0fe['LocalCacheService'])),_0x4c4bd3(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x3f2)])),_0x4c4bd3(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x34a)])),_0x4c4bd3(0x7,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x4c4bd3(0x8,_0x40aff1['ILogService']),_0x4c4bd3(0x9,_0x40aff1[_0x50a247(0x19e)]),_0x4c4bd3(0xa,_0x4f2827[_0x50a247(0x248)]),_0x4c4bd3(0xb,_0x40aff1[_0x50a247(0x250)]),_0x4c4bd3(0xc,_0x58498f[_0x50a247(0x1a5)](_0x4f8e2c))],_0x3325f9);let _0x124e54=class extends _0x3325f9{constructor(_0x183d69,_0x5040cb,_0x3101c8,_0x714945,_0xb446a7,_0x4a1f6a,_0x2217a6,_0x4f2f8c,_0x573151,_0x306395,_0x49c909,_0x46ca33,_0x2d04d4,_0x4bfec5,_0x59a95d,_0x3ba5fe,_0x4dbf05){const _0x20b89b=_0x50a247;super(_0x183d69,_0x5040cb,_0x3101c8,_0x714945,_0xb446a7,_0x4a1f6a,_0x2217a6,_0x4f2f8c,_0x2d04d4,_0x4bfec5,_0x59a95d,_0x3ba5fe,_0x4dbf05),this['unitID']=_0x183d69,this['type']=_0x5040cb,this[_0x20b89b(0x487)]=_0x3101c8,this[_0x20b89b(0x2d8)]=_0x573151,this['_docTransformIMECacheService']=_0x306395,this[_0x20b89b(0x445)]=_0x49c909,this[_0x20b89b(0x37a)]=_0x46ca33;}[_0x50a247(0x49e)](){const _0x2ef894=_0x50a247,_0xda0b81=super[_0x2ef894(0x49e)]();return _0xda0b81['onTransformIME']=_0x5c7744=>this[_0x2ef894(0x3af)]['transformIMECache'](_0x5c7744),_0xda0b81['onTransformSelections']=_0x328fcc=>this[_0x2ef894(0x445)][_0x2ef894(0x19b)](_0x328fcc),_0xda0b81[_0x2ef894(0x34d)]=_0x178e5e=>this['_docSyncEditingCollabCursorService'][_0x2ef894(0x3db)](_0x178e5e),_0xda0b81[_0x2ef894(0x332)]=_0x56d5e1=>this['_docTransformIMECacheService'][_0x2ef894(0x27b)](_0x56d5e1),_0xda0b81;}async['_init'](){const _0x5644f5=_0x50a247,_0x2e1c22=await super[_0x5644f5(0x1ce)]();return this[_0x5644f5(0x2d8)][_0x5644f5(0x1ac)][_0x5644f5(0x41d)](_0x3171f1['takeUntil'](this[_0x5644f5(0x439)]))[_0x5644f5(0x1a6)](_0x40114f=>{const _0x3590f9=_0x5644f5;if(_0x40114f==null)return;const {unitId:_0x26fb47,redoState:_0x126d5c,commandId:_0x535c36}=_0x40114f;if(_0x26fb47!==this[_0x3590f9(0x437)])return;const _0x2ab5ad={'id':_0x535c36,'type':_0x40aff1['CommandType'][_0x3590f9(0x163)],'params':{'unitId':_0x26fb47,'actions':_0x126d5c['actions'],'textRanges':null}};this['_onLocalMutation'](_0x2ab5ad);}),_0x2e1c22;}};_0x124e54=_0xac1bae([_0x4c4bd3(0x3,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x4c4bd3(0x4,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x4c4bd3(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4['CompressMutationService'])),_0x4c4bd3(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1['LocaleService'])),_0x4c4bd3(0x7,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x4c4bd3(0x8,_0x58498f['Inject'](_0xc138e5['DocStateChangeManagerService'])),_0x4c4bd3(0x9,_0x58498f[_0x50a247(0x342)](_0x2b1054)),_0x4c4bd3(0xa,_0x58498f['Inject'](_0x58ad03)),_0x4c4bd3(0xb,_0x58498f['Inject'](_0x59e101)),_0x4c4bd3(0xc,_0x40aff1[_0x50a247(0x192)]),_0x4c4bd3(0xd,_0x40aff1[_0x50a247(0x19e)]),_0x4c4bd3(0xe,_0x4f2827[_0x50a247(0x248)]),_0x4c4bd3(0xf,_0x40aff1[_0x50a247(0x250)]),_0x4c4bd3(0x10,_0x58498f[_0x50a247(0x1a5)](_0x4f8e2c))],_0x124e54);let _0x10966b=class extends _0x3325f9{constructor(_0x4c272a,_0x34fbcf,_0x2136f9,_0x21e92d,_0x56ffae,_0x1dff88,_0x2d3550,_0x511ec4,_0x4476f4,_0x4a5586,_0x2bffc6,_0x1468de,_0x3c5c29,_0x221df6){const _0x394359=_0x50a247;super(_0x4c272a,_0x34fbcf,_0x2136f9,_0x21e92d,_0x56ffae,_0x1dff88,_0x2d3550,_0x511ec4,_0x4a5586,_0x2bffc6,_0x1468de,_0x3c5c29,_0x221df6),this['unitID']=_0x4c272a,this[_0x394359(0x28c)]=_0x34fbcf,this[_0x394359(0x487)]=_0x2136f9,this['_sheetTransformSelectionsService']=_0x4476f4;}[_0x50a247(0x49e)](){const _0x31a35e=_0x50a247,_0x4008c1=super['_createHandler']();return _0x4008c1[_0x31a35e(0x2ac)]=_0x5a9719=>this['_sheetTransformSelectionsService']['transformSelections'](_0x5a9719),_0x4008c1;}async['_init'](){const _0x1041ee=_0x50a247,_0x34a02c=await super[_0x1041ee(0x1ce)]();return this[_0x1041ee(0x3e1)](this[_0x1041ee(0x14b)]['onCommandExecuted']((_0x2e5001,_0x15dda8)=>{const _0x5619c2=_0x1041ee;if(_0x2e5001[_0x5619c2(0x28c)]!==_0x40aff1[_0x5619c2(0x2d7)][_0x5619c2(0x163)]||_0x15dda8!=null&&_0x15dda8[_0x5619c2(0x20c)]||_0x15dda8!=null&&_0x15dda8['onlyLocal'])return;const _0x182c8b=_0x2e5001[_0x5619c2(0x1ca)];if((_0x182c8b==null?void 0x0:_0x182c8b[_0x5619c2(0x430)])!==this['unitID'])return;const _0x23eccf=_0x2e5001,_0x2b413a=this['_compressMutationService'][_0x5619c2(0x46d)]['fetchThroughInterceptors'](this[_0x5619c2(0x239)]['interceptor']['getInterceptPoints']()[_0x5619c2(0x429)])([_0x23eccf],null)||[_0x23eccf];this['_onLocalMutation'](_0x2b413a[0x0]);})),_0x34a02c;}};_0x10966b=_0xac1bae([_0x4c4bd3(0x3,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x4c4bd3(0x4,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['LocalCacheService'])),_0x4c4bd3(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x3f2)])),_0x4c4bd3(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1['LocaleService'])),_0x4c4bd3(0x7,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x4c4bd3(0x8,_0x58498f[_0x50a247(0x342)](_0x30b6af)),_0x4c4bd3(0x9,_0x40aff1['ILogService']),_0x4c4bd3(0xa,_0x40aff1[_0x50a247(0x19e)]),_0x4c4bd3(0xb,_0x4f2827[_0x50a247(0x248)]),_0x4c4bd3(0xc,_0x40aff1[_0x50a247(0x250)]),_0x4c4bd3(0xd,_0x58498f[_0x50a247(0x1a5)](_0x4f8e2c))],_0x10966b);const _0x4c4686=[_0x50a247(0x489),_0x50a247(0x423),_0x50a247(0x2a5),'red300',_0x50a247(0x1aa),'gold400'];class _0x410bf1 extends _0x40aff1[_0x50a247(0x14a)]{constructor(){const _0x4b8941=_0x50a247;super(...arguments),_0x22b1a2(this,'_assignedColors',new Map()),_0x22b1a2(this,_0x4b8941(0x337),0x0);}[_0x50a247(0x20d)](_0x485dd2){const _0x101fa7=_0x50a247;if(this['_assignedColors'][_0x101fa7(0x25b)](_0x485dd2))return this[_0x101fa7(0x133)][_0x101fa7(0x17e)](_0x485dd2);const _0x33f610=_0x4c4686[this[_0x101fa7(0x337)]];return this[_0x101fa7(0x337)]=(this[_0x101fa7(0x337)]+0x1)%_0x4c4686[_0x101fa7(0x3d6)],this['_assignedColors'][_0x101fa7(0x3cc)](_0x485dd2,_0x33f610),_0x33f610;}}var _0x30deb3=(_0x2eaa26,_0x27828f,_0x258e87,_0x5c351b)=>{const _0x2166ad=_0x50a247;for(var _0x2b0c74=_0x27828f,_0x3c2422=_0x2eaa26[_0x2166ad(0x3d6)]-0x1,_0x28bb1f;_0x3c2422>=0x0;_0x3c2422--)(_0x28bb1f=_0x2eaa26[_0x3c2422])&&(_0x2b0c74=_0x28bb1f(_0x2b0c74)||_0x2b0c74);return _0x2b0c74;},_0x28f305=(_0x1389b0,_0x5de909)=>(_0xc9bddc,_0x5edffc)=>_0x5de909(_0xc9bddc,_0x5edffc,_0x1389b0);const _0x365354=0x12c,_0x4299f4=0x64,_0xad752a=()=>{let _0x2c2f6d=[],_0x2ceda6=!0x1;return _0xd2ade=>{const _0x52bb9b=_0x3f00;_0x2c2f6d[_0x52bb9b(0x4a8)](_0xd2ade),_0x2ceda6||(_0x2ceda6=!0x0,setTimeout(()=>{const _0x2f1385=_0x52bb9b;_0x2c2f6d[_0x2f1385(0x35b)](_0x5cf259=>_0x5cf259()),_0x2c2f6d=[],_0x2ceda6=!0x1;}));};};let _0x2a24e0=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x2488e8,_0x29774c,_0x41a835,_0x41e1be,_0x1d725f,_0x5afbf3,_0x8ce89b,_0x55a4f0){const _0x3cf8e9=_0x50a247;super(),_0x22b1a2(this,_0x3cf8e9(0x47a),!0x1),_0x22b1a2(this,_0x3cf8e9(0x1ce),!0x1),_0x22b1a2(this,_0x3cf8e9(0x45d),new _0x3171f1[(_0x3cf8e9(0x431))](new Map())),_0x22b1a2(this,_0x3cf8e9(0x393),this[_0x3cf8e9(0x45d)]['asObservable']()),_0x22b1a2(this,_0x3cf8e9(0x24c),new _0x3171f1[(_0x3cf8e9(0x431))]([])),_0x22b1a2(this,_0x3cf8e9(0x2b1),this[_0x3cf8e9(0x24c)][_0x3cf8e9(0x41d)](_0x3171f1['debounceTime'](_0x365354))),_0x22b1a2(this,_0x3cf8e9(0x485),_0x57a849((_0xa14963,_0x52250d)=>{const _0x20ecd2=_0x3cf8e9,_0x5e5431={'eventID':_0x57eaa4[_0x20ecd2(0x253)][_0x20ecd2(0x373)],'data':{'unitID':this[_0x20ecd2(0x437)],'memberID':this[_0x20ecd2(0x438)][_0x20ecd2(0x441)](),'selection':_0x44757f[_0x20ecd2(0x2ce)](_0xa14963,_0x52250d['range'])}};this[_0x20ecd2(0x438)]['send'](_0x5e5431,this['unitID']);},_0x4299f4)),(this[_0x3cf8e9(0x437)]=_0x2488e8,this[_0x3cf8e9(0x438)]=_0x29774c,this[_0x3cf8e9(0x401)]=_0x41a835,this[_0x3cf8e9(0x462)]=_0x41e1be,this[_0x3cf8e9(0x47f)]=_0x1d725f,this[_0x3cf8e9(0x1f8)]=_0x5afbf3,this[_0x3cf8e9(0x14b)]=_0x8ce89b,this['_refRangeService']=_0x55a4f0);}get[_0x50a247(0x4e9)](){const _0x30817d=_0x50a247;return this[_0x30817d(0x45d)][_0x30817d(0x331)]();}get[_0x50a247(0x3d0)](){const _0x5ea177=_0x50a247;return this[_0x5ea177(0x24c)]['getValue']();}['dispose'](){const _0x29631b=_0x50a247;super[_0x29631b(0x1e5)](),this['_cursorInfo$']['next'](new Map()),this[_0x29631b(0x45d)][_0x29631b(0x142)](),this[_0x29631b(0x24c)][_0x29631b(0x446)]([]),this['_roomMembers$'][_0x29631b(0x142)]();}[_0x50a247(0x356)](){const _0x2db162=_0x50a247;this[_0x2db162(0x1ce)]||(this['_init']=!0x0,this['_session'][_0x2db162(0x2c3)][_0x2db162(0x41d)](_0x3171f1[_0x2db162(0x1f0)](this[_0x2db162(0x439)]))[_0x2db162(0x1a6)](_0x1d97a9=>{const _0x5ce8e3=_0x2db162;_0x1d97a9===_0x2d7bdc[_0x5ce8e3(0x3b6)]?this[_0x5ce8e3(0x3df)]():this[_0x5ce8e3(0x1e8)]();}),this[_0x2db162(0x438)][_0x2db162(0x326)][_0x2db162(0x41d)](_0x3171f1['takeUntil'](this['dispose$']))['subscribe'](_0x3c3d87=>{const _0x313428=_0x2db162,_0x14ae6a=_0x3c3d87['eventID'];_0x14ae6a===_0x57eaa4[_0x313428(0x253)][_0x313428(0x373)]&&this[_0x313428(0x26e)](_0x3c3d87),_0x14ae6a===_0x57eaa4[_0x313428(0x253)][_0x313428(0x13b)]&&this[_0x313428(0x35e)](_0x3c3d87);}),this['_onRefRangeChange'](),this[_0x2db162(0x3e1)](this['_commandService'][_0x2db162(0x21e)](_0xf34f38=>{const _0xfaf256=_0x2db162;if(this[_0xfaf256(0x47a)]&&_0xf34f38['id']===_0x361837[_0xfaf256(0x1d5)]['id']&&_0xf34f38[_0xfaf256(0x1ca)]['unitId']===this[_0xfaf256(0x437)]){const _0x67dbcc=_0xf34f38[_0xfaf256(0x1ca)];this['_updateLocalCursor'](_0x67dbcc[_0xfaf256(0x23a)],_0x67dbcc[_0xfaf256(0x499)][0x0]);}})));}[_0x50a247(0x26e)](_0x279042){const _0x3885ea=_0x50a247;var _0x4b5496,_0x375980;const {memberID:_0x27cf53,selection:_0x45c1ca}=_0x279042[_0x3885ea(0x1bb)],{sheetName:_0x1e410a,range:_0x34a01f}=_0x44757f[_0x3885ea(0x3a9)](_0x45c1ca),_0x23493f={'name':(_0x375980=(_0x4b5496=this[_0x3885ea(0x47f)]['getMember'](this[_0x3885ea(0x437)],_0x27cf53))==null?void 0x0:_0x4b5496[_0x3885ea(0x44c)])!=null?_0x375980:'Unknown\x20user','range':this[_0x3885ea(0x4c5)](_0x1e410a,_0x34a01f),'sheetID':_0x1e410a,'color':this[_0x3885ea(0x462)][_0x3885ea(0x20d)](_0x27cf53),'selection':_0x45c1ca},_0x37a120=this['cursorInfo'];_0x37a120[_0x3885ea(0x3cc)](_0x27cf53,_0x23493f),this['_cursorInfo$']['next'](_0x37a120);}[_0x50a247(0x35e)](_0x458767){const _0x3a6c21=_0x50a247,{memberID:_0x39ec1f}=_0x458767[_0x3a6c21(0x1bb)],_0x1444f6=this[_0x3a6c21(0x4e9)];_0x1444f6[_0x3a6c21(0x371)](_0x39ec1f),this['_cursorInfo$'][_0x3a6c21(0x446)](_0x1444f6);}[_0x50a247(0x4c5)](_0x53b005,_0x7dae98){const _0x2e946e=_0x50a247;var _0x329e05,_0x17d76e;const _0x5bd497=(_0x17d76e=(_0x329e05=this[_0x2e946e(0x1f8)][_0x2e946e(0x41c)](this['unitID']))==null?void 0x0:_0x329e05[_0x2e946e(0x2d2)](_0x53b005))==null?void 0x0:_0x17d76e['getMergeData']();return(_0x5bd497==null?void 0x0:_0x5bd497[_0x2e946e(0x271)](_0x314436=>_0x40aff1['Rectangle'][_0x2e946e(0x31e)](_0x314436,_0x7dae98)))||_0x7dae98;}[_0x50a247(0x48c)](){const _0x5b6b65=_0x50a247,_0x455eef=new _0x40aff1[(_0x5b6b65(0x243))](),_0x574da8=_0xad752a(),_0x33e1c5=()=>{const _0x50f452=_0x5b6b65;_0x455eef[_0x50f452(0x1e5)]();const _0x9bc2f4=(_0x378b5a,_0x4015ed,_0x4075aa,_0x386c6c)=>{const _0x4330f5=_0x50f452;let _0x51f3ff=[];switch(_0x378b5a['id']){case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x235)]:{_0x51f3ff=_0x361837[_0x4330f5(0x219)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x3fc)]:{_0x51f3ff=_0x361837['handleDeleteRangeMoveUp'](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x2b6)]:{_0x51f3ff=_0x361837[_0x4330f5(0x178)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x367)]:{_0x51f3ff=_0x361837[_0x4330f5(0x27f)](_0x378b5a,_0x386c6c);break;}case _0x361837['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x51f3ff=_0x361837[_0x4330f5(0x37c)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x47c)]:{_0x51f3ff=_0x361837[_0x4330f5(0x201)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x2a0)]:{_0x51f3ff=_0x361837[_0x4330f5(0x310)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x29f)]:{_0x51f3ff=_0x361837[_0x4330f5(0x197)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x26a)]:{_0x51f3ff=_0x361837[_0x4330f5(0x30a)](_0x378b5a,_0x386c6c);break;}}const _0x2e8bba=_0x361837[_0x4330f5(0x45f)](_0x51f3ff,_0x386c6c),_0x1d264d=this[_0x4330f5(0x4e9)][_0x4330f5(0x17e)](_0x4015ed);if(_0x1d264d&&_0x2e8bba){const _0x2afed7={..._0x1d264d,'range':_0x2e8bba};this['cursorInfo'][_0x4330f5(0x3cc)](_0x4015ed,_0x2afed7),_0x574da8(()=>{const _0x3bab35=_0x4330f5,_0x36338f=this[_0x3bab35(0x252)][_0x3bab35(0x4e7)](_0x2e8bba,_0x37096d=>(_0x36338f[_0x3bab35(0x1e5)](),_0x9bc2f4(_0x37096d,_0x4015ed,_0x4075aa,_0x2e8bba)));_0x455eef['add'](_0x36338f);});}return{'redos':[],'undos':[]};};this[_0x50f452(0x4e9)][_0x50f452(0x35b)]((_0x5c44ce,_0x5d15fa)=>{const _0x1e03ca=_0x50f452,{range:_0x1766c4,sheetID:_0x1d4ee1}=_0x5c44ce,_0x11d932=this[_0x1e03ca(0x252)][_0x1e03ca(0x4e7)](_0x1766c4,_0xfd4e1=>(_0x11d932[_0x1e03ca(0x1e5)](),_0x9bc2f4(_0xfd4e1,_0x5d15fa,_0x1d4ee1,_0x1766c4)));_0x455eef[_0x1e03ca(0x3ce)](_0x11d932);});};this[_0x5b6b65(0x3e1)](_0x40aff1[_0x5b6b65(0x2b7)](this[_0x5b6b65(0x45d)]['subscribe'](()=>{_0x33e1c5();})));}['_toggleOnline'](){const _0x51d1ac=_0x50a247;var _0x926e11,_0x24600d;if(this[_0x51d1ac(0x47a)]=!0x0,((_0x926e11=this[_0x51d1ac(0x1f8)][_0x51d1ac(0x379)]())==null?void 0x0:_0x926e11[_0x51d1ac(0x220)]())!==this[_0x51d1ac(0x437)])return;const _0x2bf352=(_0x24600d=this[_0x51d1ac(0x401)][_0x51d1ac(0x17e)](_0x361837[_0x51d1ac(0x186)])[_0x51d1ac(0x1d7)]())==null?void 0x0:_0x24600d[0x0];_0x2bf352&&this[_0x51d1ac(0x485)](this[_0x51d1ac(0x1f8)][_0x51d1ac(0x4cc)](_0x40aff1[_0x51d1ac(0x1ff)]['UNIVER_SHEET'])[_0x51d1ac(0x172)]()[_0x51d1ac(0x141)](),_0x2bf352);}[_0x50a247(0x1e8)](){const _0x5901e4=_0x50a247;this[_0x5901e4(0x47a)]=!0x1;}};_0x2a24e0=_0x30deb3([_0x28f305(0x2,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x28f305(0x3,_0x58498f[_0x50a247(0x342)](_0x410bf1)),_0x28f305(0x4,_0x58498f[_0x50a247(0x342)](_0x370285)),_0x28f305(0x5,_0x40aff1[_0x50a247(0x3f5)]),_0x28f305(0x6,_0x40aff1[_0x50a247(0x19e)]),_0x28f305(0x7,_0x58498f['Inject'](_0x361837['RefRangeService']))],_0x2a24e0);var _0x8b8e3d=(_0x4c4b6c,_0x12bf62,_0x3bd5c,_0x96216c)=>{const _0x4a51df=_0x50a247;for(var _0xabfef2=_0x12bf62,_0x33f84f=_0x4c4b6c[_0x4a51df(0x3d6)]-0x1,_0x49c702;_0x33f84f>=0x0;_0x33f84f--)(_0x49c702=_0x4c4b6c[_0x33f84f])&&(_0xabfef2=_0x49c702(_0xabfef2)||_0xabfef2);return _0xabfef2;},_0x146289=(_0x242008,_0x406ce6)=>(_0x1f1ec6,_0xd64b2)=>_0x406ce6(_0x1f1ec6,_0xd64b2,_0x242008);const _0xb89371=0x12c,_0x29b7f1=0x64;let _0x467a78=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x323b61,_0x4cadd2,_0x1a89c9,_0x11836f,_0x37282d,_0x1d1fb4,_0x5b032c,_0x4a1737,_0x5563b3){const _0xc43b21=_0x50a247;super(),_0x22b1a2(this,_0xc43b21(0x47a),!0x1),_0x22b1a2(this,_0xc43b21(0x1ce),!0x1),_0x22b1a2(this,'_cursorInfo$',new _0x3171f1['BehaviorSubject'](new Map())),_0x22b1a2(this,'cursorInfo$',this['_cursorInfo$'][_0xc43b21(0x407)]()),_0x22b1a2(this,_0xc43b21(0x24c),new _0x3171f1[(_0xc43b21(0x431))]([])),_0x22b1a2(this,'roomMembers$',this[_0xc43b21(0x24c)]['pipe'](_0x3171f1[_0xc43b21(0x387)](_0xb89371))),_0x22b1a2(this,_0xc43b21(0x485),_0x57a849(_0x45ba2d=>{const _0x397c7a=_0xc43b21,_0x56b926={'eventID':_0x57eaa4[_0x397c7a(0x253)][_0x397c7a(0x373)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x397c7a(0x441)](),'selection':_0x9ee440(_0x45ba2d)}};this[_0x397c7a(0x438)]['send'](_0x56b926,this['unitID']);},_0x29b7f1)),(this[_0xc43b21(0x437)]=_0x323b61,this[_0xc43b21(0x438)]=_0x4cadd2,this[_0xc43b21(0x401)]=_0x1a89c9,this['_colorAssignService']=_0x11836f,this['_memberService']=_0x37282d,this[_0xc43b21(0x39e)]=_0x1d1fb4,this[_0xc43b21(0x135)]=_0x5b032c,this[_0xc43b21(0x1f8)]=_0x4a1737,this['_commandService']=_0x5563b3);}get[_0x50a247(0x4e9)](){const _0x124b42=_0x50a247;return this['_cursorInfo$'][_0x124b42(0x331)]();}get['roomMembers'](){const _0x887eaa=_0x50a247;return this[_0x887eaa(0x24c)][_0x887eaa(0x331)]();}['dispose'](){const _0x5714f8=_0x50a247;super[_0x5714f8(0x1e5)](),this[_0x5714f8(0x45d)][_0x5714f8(0x446)](new Map()),this[_0x5714f8(0x45d)]['complete'](),this[_0x5714f8(0x24c)]['next']([]),this[_0x5714f8(0x24c)][_0x5714f8(0x142)]();}['init'](){const _0x131cdf=_0x50a247;this[_0x131cdf(0x1ce)]||(this[_0x131cdf(0x1ce)]=!0x0,this[_0x131cdf(0x438)]['sessionStatus$'][_0x131cdf(0x41d)](_0x3171f1[_0x131cdf(0x1f0)](this[_0x131cdf(0x439)]))[_0x131cdf(0x1a6)](_0x244766=>{const _0x1a50b4=_0x131cdf;_0x244766===_0x2d7bdc[_0x1a50b4(0x3b6)]?this['_toggleOnline']():this[_0x1a50b4(0x1e8)]();}),this[_0x131cdf(0x438)][_0x131cdf(0x326)]['pipe'](_0x3171f1['takeUntil'](this[_0x131cdf(0x439)]))['subscribe'](_0x8f93d8=>{const _0x551c70=_0x131cdf,_0x32343e=_0x8f93d8[_0x551c70(0x464)];_0x32343e===_0x57eaa4[_0x551c70(0x253)][_0x551c70(0x373)]&&this[_0x551c70(0x26e)](_0x8f93d8),_0x32343e===_0x57eaa4[_0x551c70(0x253)][_0x551c70(0x13b)]&&this[_0x551c70(0x35e)](_0x8f93d8);}),this[_0x131cdf(0x3e1)](this[_0x131cdf(0x14b)][_0x131cdf(0x21e)](_0x3134ef=>{const _0x4e0df1=_0x131cdf,_0xd1592b=_0x3134ef[_0x4e0df1(0x1ca)];_0xd1592b!=null&&this[_0x4e0df1(0x47a)]&&_0x3134ef['id']===_0xc138e5[_0x4e0df1(0x155)]['id']&&_0xd1592b['unitId']===this[_0x4e0df1(0x437)]&&_0xd1592b[_0x4e0df1(0x137)]===!0x1&&this[_0x4e0df1(0x485)](_0xd1592b[_0x4e0df1(0x132)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x131cdf(0x41d)](_0x3171f1['takeUntil'](this[_0x131cdf(0x439)]))[_0x131cdf(0x1a6)](_0x53eb41=>{const _0x55b332=_0x131cdf;if((_0x53eb41==null?void 0x0:_0x53eb41[_0x55b332(0x437)])!==this[_0x55b332(0x437)])return;const _0x1562ca={'eventID':_0x57eaa4[_0x55b332(0x253)][_0x55b332(0x373)],'data':_0x53eb41};this[_0x55b332(0x26e)](_0x1562ca);}),this[_0x131cdf(0x3e1)](this[_0x131cdf(0x14b)][_0x131cdf(0x21e)](_0x458889=>{const _0x4740f1=_0x131cdf;if(_0x458889[_0x4740f1(0x1ca)]==null)return;const _0x5b360b=_0x458889[_0x4740f1(0x1ca)];if(_0x458889['id']!==_0xc138e5[_0x4740f1(0x300)]['id']||_0x5b360b[_0x4740f1(0x430)]!==this['unitID'])return;const _0x51cd2b={'id':'doc.mutation.rich-text-editing','params':_0x5b360b},_0x4eddf7=this['cursorInfo'];for(const [_0xfc4c4f,_0x112b41]of _0x4eddf7){const _0x54bb4d={'id':_0x4740f1(0x394),'params':{'unitId':this[_0x4740f1(0x437)],'actions':null,'textRanges':_0x112b41['ranges']}},_0x1144b=this[_0x4740f1(0x135)][_0x4740f1(0x454)](_0x51cd2b,_0x54bb4d,!0x1);if(_0x57eaa4[_0x4740f1(0x38c)](_0x1144b))throw _0x1144b[_0x4740f1(0x207)];_0x4eddf7[_0x4740f1(0x3cc)](_0xfc4c4f,{..._0x112b41,'ranges':_0x1144b[_0x4740f1(0x3ac)]['params'][_0x4740f1(0x2a7)]});}queueMicrotask(()=>{const _0x26d936=_0x4740f1;this[_0x26d936(0x45d)]['next'](_0x4eddf7);});})));}[_0x50a247(0x26e)](_0x4d2e57){const _0x3331ae=_0x50a247;var _0x3a59cb,_0xe2dfea;const {memberID:_0xf9ab04,selection:_0x17f329}=_0x4d2e57[_0x3331ae(0x1bb)],_0x5e57a9=_0x3e9600(_0x17f329),_0x1cccc9=(_0xe2dfea=(_0x3a59cb=this[_0x3331ae(0x47f)]['getMember'](this[_0x3331ae(0x437)],_0xf9ab04))==null?void 0x0:_0x3a59cb[_0x3331ae(0x44c)])!=null?_0xe2dfea:_0x3331ae(0x497),_0x36eccc={'color':this[_0x3331ae(0x462)][_0x3331ae(0x20d)](_0xf9ab04),'name':_0x1cccc9,'ranges':_0x5e57a9},_0x34d666=this[_0x3331ae(0x4e9)];_0x34d666[_0x3331ae(0x3cc)](_0xf9ab04,_0x36eccc),this[_0x3331ae(0x45d)][_0x3331ae(0x446)](_0x34d666);}[_0x50a247(0x35e)](_0x1a6004){const _0x4c0d0d=_0x50a247,{memberID:_0x5edbbe}=_0x1a6004[_0x4c0d0d(0x1bb)],_0x3d1710=this[_0x4c0d0d(0x4e9)];_0x3d1710[_0x4c0d0d(0x371)](_0x5edbbe),this['_cursorInfo$'][_0x4c0d0d(0x446)](_0x3d1710);}[_0x50a247(0x3df)](){const _0x2c6ce0=_0x50a247;var _0x2ef60b;if(this['_online']=!0x0,((_0x2ef60b=this[_0x2c6ce0(0x1f8)][_0x2c6ce0(0x379)]())==null?void 0x0:_0x2ef60b[_0x2c6ce0(0x220)]())!==this[_0x2c6ce0(0x437)])return;const _0x45b7cf=this['_injector']['get'](_0xc138e5[_0x2c6ce0(0x312)])[_0x2c6ce0(0x1d7)](),_0xfaed39=_0x45b7cf==null?void 0x0:_0x45b7cf['map'](_0xc138e5[_0x2c6ce0(0x227)]);Array[_0x2c6ce0(0x27c)](_0xfaed39)&&_0xfaed39[_0x2c6ce0(0x3d6)]>0x0&&this[_0x2c6ce0(0x485)](_0xfaed39);}[_0x50a247(0x1e8)](){const _0x1db68f=_0x50a247;this[_0x1db68f(0x47a)]=!0x1;}};_0x467a78=_0x8b8e3d([_0x146289(0x2,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x146289(0x3,_0x58498f[_0x50a247(0x342)](_0x410bf1)),_0x146289(0x4,_0x58498f[_0x50a247(0x342)](_0x370285)),_0x146289(0x5,_0x58498f[_0x50a247(0x342)](_0x59e101)),_0x146289(0x6,_0x57eaa4[_0x50a247(0x3be)]),_0x146289(0x7,_0x40aff1[_0x50a247(0x3f5)]),_0x146289(0x8,_0x40aff1['ICommandService'])],_0x467a78);var _0x16ca22=(_0x464dc2,_0x35ef5e,_0x4b45cc,_0x3b8e57)=>{for(var _0x5a0ac9=_0x35ef5e,_0x214bc9=_0x464dc2['length']-0x1,_0x286bd7;_0x214bc9>=0x0;_0x214bc9--)(_0x286bd7=_0x464dc2[_0x214bc9])&&(_0x5a0ac9=_0x286bd7(_0x5a0ac9)||_0x5a0ac9);return _0x5a0ac9;},_0x2b0522=(_0x39e99a,_0x332cd9)=>(_0xb10e86,_0x3f75ec)=>_0x332cd9(_0xb10e86,_0x3f75ec,_0x39e99a);let _0x5300e0=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x48996d,_0x2ecc64,_0x30ef7f){const _0x2a897e=_0x50a247;super(),_0x22b1a2(this,_0x2a897e(0x2f9),new Map()),_0x22b1a2(this,_0x2a897e(0x397),new _0x3171f1[(_0x2a897e(0x1ed))]()),(this[_0x2a897e(0x1f8)]=_0x48996d,this[_0x2a897e(0x401)]=_0x2ecc64,this[_0x2a897e(0x158)]=_0x30ef7f,this[_0x2a897e(0x1ce)]());}[_0x50a247(0x1e5)](){const _0x576529=_0x50a247;super[_0x576529(0x1e5)](),this[_0x576529(0x397)][_0x576529(0x142)](),this[_0x576529(0x2f9)]['forEach'](_0x5b1fd3=>_0x5b1fd3[_0x576529(0x1e5)]());}[_0x50a247(0x4c2)](_0x197a30){const _0x1edd3e=_0x50a247;return this[_0x1edd3e(0x2f9)][_0x1edd3e(0x25b)](_0x197a30)?this[_0x1edd3e(0x2f9)][_0x1edd3e(0x17e)](_0x197a30)[_0x1edd3e(0x393)]:this[_0x1edd3e(0x397)][_0x1edd3e(0x41d)](_0x3171f1[_0x1edd3e(0x1b1)](_0x35b38a=>_0x35b38a[_0x1edd3e(0x437)]===_0x197a30),_0x3171f1[_0x1edd3e(0x4b9)](_0x5c2715=>_0x5c2715[_0x1edd3e(0x393)]));}[_0x50a247(0x1ce)](){const _0x2a9a25=_0x50a247;this[_0x2a9a25(0x1f8)][_0x2a9a25(0x3c2)](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x309)])[_0x2a9a25(0x41d)](_0x3171f1[_0x2a9a25(0x1f0)](this[_0x2a9a25(0x439)]))['subscribe'](async _0x199f6e=>{const _0x275900=_0x2a9a25,_0x8c336e=_0x199f6e[_0x275900(0x220)](),_0x378e65=await this[_0x275900(0x49f)](_0x8c336e);this[_0x275900(0x397)]['next'](_0x378e65),this[_0x275900(0x2f9)][_0x275900(0x3cc)](_0x8c336e,_0x378e65);}),this[_0x2a9a25(0x1f8)][_0x2a9a25(0x3c2)](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x254)])['pipe'](_0x3171f1[_0x2a9a25(0x1f0)](this['dispose$']))[_0x2a9a25(0x41d)](_0x3171f1[_0x2a9a25(0x1b1)](_0x1dce56=>!_0x1dce56[_0x2a9a25(0x220)]()['startsWith']('__')))[_0x2a9a25(0x1a6)](async _0x143d0a=>{const _0x3f5d74=_0x2a9a25,_0x42fa30=_0x143d0a[_0x3f5d74(0x220)](),_0x52d902=await this[_0x3f5d74(0x4be)](_0x42fa30);this[_0x3f5d74(0x397)]['next'](_0x52d902),this['_entities']['set'](_0x42fa30,_0x52d902);}),_0x3171f1[_0x2a9a25(0x151)](this[_0x2a9a25(0x1f8)]['getTypeOfUnitDisposed$'](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x254)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x309)]))['pipe'](_0x3171f1[_0x2a9a25(0x1f0)](this[_0x2a9a25(0x439)]))[_0x2a9a25(0x1a6)](_0x3afe69=>{const _0x495be5=_0x2a9a25,_0x13a87b=_0x3afe69['getUnitId'](),_0x26c283=this[_0x495be5(0x2f9)][_0x495be5(0x17e)](_0x13a87b);_0x26c283&&(_0x26c283[_0x495be5(0x1e5)](),this[_0x495be5(0x2f9)][_0x495be5(0x371)](_0x13a87b));});}async['_startSheetCollabCursor'](_0x3a0c02){const _0x307429=_0x50a247,_0x3b9cda=await this[_0x307429(0x158)][_0x307429(0x327)](_0x3a0c02),_0x140e66=this[_0x307429(0x401)][_0x307429(0x293)](_0x2a24e0,_0x3a0c02,_0x3b9cda);return _0x140e66[_0x307429(0x356)](),_0x140e66;}async[_0x50a247(0x4be)](_0x5241e0){const _0x35e07b=_0x50a247,_0x183164=await this[_0x35e07b(0x158)]['requireSession'](_0x5241e0),_0x3f2515=this[_0x35e07b(0x401)]['createInstance'](_0x467a78,_0x5241e0,_0x183164);return _0x3f2515[_0x35e07b(0x356)](),_0x3f2515;}};_0x5300e0=_0x16ca22([_0x40aff1['OnLifecycle'](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5300e0),_0x2b0522(0x0,_0x40aff1['IUniverInstanceService']),_0x2b0522(0x1,_0x58498f['Inject'](_0x58498f['Injector'])),_0x2b0522(0x2,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['CollaborationSessionService']))],_0x5300e0);const _0x193e62=0x14,_0x400d5c=0xc8,_0x969c2d=0x4,_0x204fda=0x5;function _0x1a50b7(_0x19fc1f,_0xc63aee){const _0x529783=_0x50a247;let {radius:_0x5eb03d,width:_0x31772b,height:_0x34b7cc}=_0xc63aee;_0x5eb03d=_0x5eb03d!=null?_0x5eb03d:0x0,_0x31772b=_0x31772b!=null?_0x31772b:0x1e,_0x34b7cc=_0x34b7cc!=null?_0x34b7cc:0x1e;let _0x376124=0x0,_0x23203a=0x0,_0x2ed3bd=0x0;_0x376124=_0x23203a=_0x2ed3bd=Math[_0x529783(0x2cf)](_0x5eb03d,_0x31772b/0x2,_0x34b7cc/0x2),_0x19fc1f[_0x529783(0x4b1)](),_0x19fc1f[_0x529783(0x24a)](_0x376124,0x0),_0x19fc1f[_0x529783(0x225)](_0x31772b-_0x23203a,0x0),_0x19fc1f[_0x529783(0x190)](_0x31772b-_0x23203a,_0x23203a,_0x23203a,Math['PI']*0x3/0x2,0x0,!0x1),_0x19fc1f[_0x529783(0x225)](_0x31772b,_0x34b7cc-_0x2ed3bd),_0x19fc1f[_0x529783(0x190)](_0x31772b-_0x2ed3bd,_0x34b7cc-_0x2ed3bd,_0x2ed3bd,0x0,Math['PI']/0x2,!0x1),_0x19fc1f[_0x529783(0x225)](0x0,_0x34b7cc),_0x19fc1f[_0x529783(0x225)](0x0,_0x376124),_0x19fc1f['arc'](_0x376124,_0x376124,_0x376124,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x19fc1f[_0x529783(0x30b)](),_0xc63aee[_0x529783(0x1c2)]&&(_0x19fc1f[_0x529783(0x44a)](),_0x19fc1f[_0x529783(0x361)]=_0xc63aee['fill'],_0xc63aee[_0x529783(0x4ce)]===_0x529783(0x294)?_0x19fc1f[_0x529783(0x1c2)]('evenodd'):_0x19fc1f['fill'](),_0x19fc1f[_0x529783(0x470)]());}class _0x205814 extends _0x1fd8d9[_0x50a247(0x2b8)]{constructor(_0x2a8bdd,_0x2acfd6){const _0x234f45=_0x50a247;super(_0x2a8bdd,_0x2acfd6),_0x22b1a2(this,_0x234f45(0x416)),_0x22b1a2(this,_0x234f45(0x3e9)),(this[_0x234f45(0x416)]=_0x2acfd6==null?void 0x0:_0x2acfd6[_0x234f45(0x416)],this['text']=_0x2acfd6==null?void 0x0:_0x2acfd6[_0x234f45(0x3e9)]);}static[_0x50a247(0x2cd)](_0x178f32,_0x5ab757){const _0x27d442=_0x50a247,{text:_0x5a1747,color:_0x1f3098}=_0x5ab757;_0x178f32[_0x27d442(0x44a)](),_0x178f32[_0x27d442(0x443)]=_0x27d442(0x258);const _0x31930f=_0x178f32[_0x27d442(0x32c)](_0x5a1747)[_0x27d442(0x4dc)],_0x229b98=Math[_0x27d442(0x2cf)](_0x31930f+0x2*_0x969c2d,_0x400d5c);_0x1a50b7(_0x178f32,{'height':_0x193e62,'radius':0x4,'width':_0x229b98,'fill':_0x1f3098,'evented':!0x1}),_0x178f32[_0x27d442(0x361)]=_0x27d442(0x488);const _0x279ffd=_0x969c2d,_0x2e46f0=_0x193e62-_0x204fda,_0x28c1df=_0x400d5c-0x2*_0x969c2d;if(_0x31930f>_0x28c1df){let _0x5188ee='',_0xfea8c3=0x0;for(const _0x32cb79 of _0x5a1747){const _0x2f08de=_0x178f32[_0x27d442(0x32c)](_0x32cb79)[_0x27d442(0x4dc)];if(_0xfea8c3+_0x2f08de<=_0x28c1df-_0x178f32['measureText'](_0x27d442(0x4bc))[_0x27d442(0x4dc)])_0x5188ee+=_0x32cb79,_0xfea8c3+=_0x2f08de;else{_0x5188ee+=_0x27d442(0x4bc);break;}}_0x178f32[_0x27d442(0x386)](_0x5188ee,_0x279ffd,_0x2e46f0);}else _0x178f32[_0x27d442(0x386)](_0x5a1747,_0x279ffd,_0x2e46f0);_0x178f32[_0x27d442(0x470)]();}[_0x50a247(0x21a)](_0x43de17){_0x205814['drawWith'](_0x43de17,this);}}const _0x532287=0x1,_0x23b69e=1.5;class _0x5cbf30 extends _0x1fd8d9[_0x50a247(0x2b8)]{constructor(_0x44ace9,_0xb9bd1d){const _0x586153=_0x50a247;super(_0x44ace9,_0xb9bd1d),_0x22b1a2(this,_0x586153(0x16b)),_0x22b1a2(this,_0x586153(0x16e),!0x1),_0x22b1a2(this,'_range'),_0x22b1a2(this,_0x586153(0x4de),''),_0x22b1a2(this,_0x586153(0x245),_0x586153(0x1d9)),(_0xb9bd1d&&this[_0x586153(0x3cb)](_0xb9bd1d),this[_0x586153(0x4ea)][_0x586153(0x3ce)](()=>this[_0x586153(0x3cb)]({'hovered':!0x0})),this[_0x586153(0x213)][_0x586153(0x3ce)](()=>this[_0x586153(0x3cb)]({'hovered':!0x1})));}[_0x50a247(0x3cb)](_0x44b459){const _0x321a77=_0x50a247;var _0x46ce03,_0x1b088c,_0x385072,_0x446b06,_0x5e9d4c;this[_0x321a77(0x16b)]=(_0x46ce03=_0x44b459[_0x321a77(0x416)])!=null?_0x46ce03:this['_color'],this[_0x321a77(0x16e)]=(_0x1b088c=_0x44b459[_0x321a77(0x2d9)])!=null?_0x1b088c:this['_hovered'],this[_0x321a77(0x49b)]=(_0x385072=_0x44b459[_0x321a77(0x28e)])!=null?_0x385072:this[_0x321a77(0x49b)],this['_name']=(_0x446b06=_0x44b459['name'])!=null?_0x446b06:this[_0x321a77(0x4de)],this[_0x321a77(0x245)]=(_0x5e9d4c=_0x44b459[_0x321a77(0x425)])!=null?_0x5e9d4c:this[_0x321a77(0x245)],this[_0x321a77(0x40d)]({'width':_0x44b459[_0x321a77(0x4dc)],'height':_0x44b459['height']});}['onMouseMove'](_0x4b6b19){const _0x2bfb22=_0x50a247,{row:_0x4092cb,column:_0xb52300}=_0x4b6b19;if(_0x4092cb>=this[_0x2bfb22(0x49b)][_0x2bfb22(0x23d)]&&_0x4092cb<=this[_0x2bfb22(0x49b)][_0x2bfb22(0x285)]&&_0xb52300>=this[_0x2bfb22(0x49b)][_0x2bfb22(0x2e5)]&&_0xb52300<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x4ecc48){return!0x1;}[_0x50a247(0x21a)](_0x4b4959){const _0x4072d1=_0x50a247;_0x1fd8d9[_0x4072d1(0x1f3)]['drawWith'](_0x4b4959,{'width':this[_0x4072d1(0x4dc)],'height':this[_0x4072d1(0x296)],'strokeWidth':_0x23b69e,'stroke':this[_0x4072d1(0x16b)],'evented':!0x1}),this[_0x4072d1(0x16e)]&&(_0x4b4959[_0x4072d1(0x44a)](),_0x4b4959[_0x4072d1(0x24b)](0x1,0x0,0x0,0x1,this[_0x4072d1(0x4dc)],this[_0x4072d1(0x245)]===_0x4072d1(0x4a2)?0x0:-_0x193e62),_0x205814[_0x4072d1(0x2cd)](_0x4b4959,{'text':this['_name'],'color':this[_0x4072d1(0x16b)]}),_0x4b4959['restore']());}}var _0x5637bb=(_0x4ea9a0,_0x225651,_0x5ebd8e,_0x20de4b)=>{const _0x15390e=_0x50a247;for(var _0x443e11=_0x225651,_0x5a3fde=_0x4ea9a0[_0x15390e(0x3d6)]-0x1,_0x13688c;_0x5a3fde>=0x0;_0x5a3fde--)(_0x13688c=_0x4ea9a0[_0x5a3fde])&&(_0x443e11=_0x13688c(_0x443e11)||_0x443e11);return _0x443e11;},_0x27eb69=(_0x2f8eef,_0x26f2ba)=>(_0x43d863,_0x19f0f7)=>_0x26f2ba(_0x43d863,_0x19f0f7,_0x2f8eef);let _0x49a7f8=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x59c643,_0x1755be,_0x1e2b79,_0x8452d,_0x4ec0f3){const _0x269c8e=_0x50a247;super(),_0x22b1a2(this,_0x269c8e(0x3f1),new Set()),_0x22b1a2(this,_0x269c8e(0x345),null),(this[_0x269c8e(0x381)]=_0x59c643,this[_0x269c8e(0x1f8)]=_0x1755be,this[_0x269c8e(0x42b)]=_0x1e2b79,this['_sheetSkeletonManagerService']=_0x8452d,this[_0x269c8e(0x3ca)]=_0x4ec0f3,this['_init']());}['_init'](){const _0x22947e=_0x50a247;this[_0x22947e(0x4db)][_0x22947e(0x37f)]['pipe'](_0x32d0c5[_0x22947e(0x1f0)](this['dispose$']),_0x32d0c5[_0x22947e(0x4b9)](_0x3350c1=>{const _0x579442=_0x22947e;if(_0x3350c1){const _0x3f9622=_0x3350c1[_0x579442(0x313)];return _0x3171f1[_0x579442(0x1c3)](this[_0x579442(0x381)][_0x579442(0x4c2)](_0x3350c1[_0x579442(0x430)]),this['_themeService']['currentTheme$'])[_0x579442(0x41d)](_0x32d0c5[_0x579442(0x290)](([_0x38650b,_0x27813d])=>{const _0x5b748a=new Map();return _0x38650b['forEach']((_0x4aba83,_0x3ae7be)=>{const _0x25f93=_0x3f00;if(_0x4aba83[_0x25f93(0x21d)]===_0x3f9622){const _0x4c7000={..._0x4aba83};_0x4c7000['color']=_0x27813d[_0x4aba83['color']],_0x5b748a[_0x25f93(0x3cc)](_0x3ae7be,_0x4c7000);}}),{'skeleton':_0x3350c1,'cursors':_0x5b748a};}));}return _0x3171f1['of']({'skeleton':null,'cursors':new Map()});}))[_0x22947e(0x1a6)](({skeleton:_0x1475f1,cursors:_0x47618d})=>{const _0x3c2e43=_0x22947e;this[_0x3c2e43(0x261)](),_0x1475f1&&this['_updateCollabCursors'](_0x1475f1,_0x47618d);}),this[_0x22947e(0x4db)][_0x22947e(0x37f)][_0x22947e(0x1a6)](_0x947f75=>{const _0x4a3bb2=_0x22947e;if(_0x947f75==null)return;const {unitId:_0xcde179,skeleton:_0x3d8973}=_0x947f75,_0x376352=this[_0x4a3bb2(0x42b)][_0x4a3bb2(0x42c)](_0xcde179);if(_0x376352==null)return;const {scene:_0x4c9231}=_0x376352;_0x4c9231[_0x4a3bb2(0x375)]['add'](_0x57a849(_0x1b4491=>{const _0x22bffa=_0x4a3bb2;var _0x4a56a5,_0x2ec6ae;const {offsetX:_0x4c6451,offsetY:_0x80e33}=_0x1b4491,{x:_0x37a2b9,y:_0x5f58e5}=_0x4c9231['getRelativeCoord'](_0x1fd8d9[_0x22bffa(0x45a)][_0x22bffa(0x4d5)]([_0x4c6451,_0x80e33])),{scaleX:_0x2f3ba8,scaleY:_0xc0fa4f}=_0x4c9231[_0x22bffa(0x42e)](),_0x1ba549=_0x4c9231['getViewport'](_0x39fa2f[_0x22bffa(0x383)][_0x22bffa(0x1ec)]),_0x5e5979=_0x4c9231[_0x22bffa(0x298)](_0x1fd8d9[_0x22bffa(0x45a)][_0x22bffa(0x4d5)]([_0x37a2b9,_0x5f58e5]),_0x1ba549),_0x3e1923=_0x3d8973['getCellPositionByOffset'](_0x4c6451,_0x80e33,_0x2f3ba8,_0xc0fa4f,_0x5e5979);((_0x4a56a5=this['_lastPointer'])==null?void 0x0:_0x4a56a5[_0x22bffa(0x1a2)])===_0x3e1923[_0x22bffa(0x1a2)]&&((_0x2ec6ae=this[_0x22bffa(0x345)])==null?void 0x0:_0x2ec6ae[_0x22bffa(0x2b9)])===_0x3e1923[_0x22bffa(0x2b9)]||this['_cursors'][_0x22bffa(0x35b)](_0x1888b4=>{const _0x237b57=_0x22bffa;_0x1888b4[_0x237b57(0x13d)](_0x3e1923);});},0x64));});}[_0x50a247(0x279)](_0x116e91,_0x50c180){const _0x2a4dd2=_0x50a247;var _0x4fbe3;const _0x9cee5f=(_0x4fbe3=this['_sheetSkeletonManagerService'][_0x2a4dd2(0x134)]())==null?void 0x0:_0x4fbe3[_0x2a4dd2(0x277)];if(!_0x9cee5f)return;const _0x128d79=this[_0x2a4dd2(0x389)]();if(!_0x128d79)return;this[_0x2a4dd2(0x3f1)][_0x2a4dd2(0x35b)](_0x5ede74=>{const _0x144e72=_0x2a4dd2;_0x5ede74[_0x144e72(0x435)]();});const {scene:_0x1e07ec}=_0x128d79,_0x2bb2bf=_0x2db494(Array[_0x2a4dd2(0x457)](_0x50c180[_0x2a4dd2(0x4e6)]()))[_0x2a4dd2(0x290)](_0x3ee6e9=>{const _0x4e95dd=_0x2a4dd2,{color:_0x4ea527,range:_0x2a2ffd,name:_0x283d71,selection:_0x12580d,sheetID:_0x37fa52}=_0x3ee6e9,{startColumn:_0x524487,startRow:_0x11e746,endColumn:_0x393e20,endRow:_0x2dcf3a}=_0x2a2ffd,_0x589acc=_0x39fa2f[_0x4e95dd(0x13c)](_0x11e746,_0x524487,_0x1e07ec,_0x9cee5f),_0x807f27=_0x39fa2f['getCoordByCell'](_0x2dcf3a,_0x393e20,_0x1e07ec,_0x9cee5f),{columnHeaderHeightAndMarginTop:_0xfbfa74}=_0x9cee5f,{startX:_0x511e2b,startY:_0x49eb10}=_0x589acc,{endX:_0x827119,endY:_0x3d163b}=_0x807f27,_0x10aa71=_0x827119-_0x511e2b,_0x53702c=_0x3d163b-_0x49eb10,_0xf217a8={'labelPosition':_0x49eb10-_0xfbfa74>=_0x193e62?'top':_0x4e95dd(0x4a2),'sheetID':_0x37fa52,'range':_0x2a2ffd,'color':_0x4ea527,'name':_0x283d71,'selection':_0x12580d,'left':_0x511e2b,'top':_0x49eb10,'width':_0x10aa71,'height':_0x53702c,'evented':!0x1};return new _0x5cbf30(_0x283d71,_0xf217a8);});_0x1e07ec[_0x2a4dd2(0x4d7)](_0x2bb2bf,_0x532287),this['_cursors']=new Set(_0x2bb2bf);}[_0x50a247(0x261)](){const _0x7d839e=_0x50a247;var _0x5d03c6;(_0x5d03c6=this[_0x7d839e(0x3f1)])==null||_0x5d03c6[_0x7d839e(0x35b)](_0x467d6a=>_0x467d6a[_0x7d839e(0x1e5)]());}[_0x50a247(0x389)](){const _0x27e7a2=_0x50a247;return _0x39fa2f[_0x27e7a2(0x30f)](this[_0x27e7a2(0x1f8)],this[_0x27e7a2(0x42b)]);}};_0x49a7f8=_0x5637bb([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x368)],_0x49a7f8),_0x27eb69(0x0,_0x58498f[_0x50a247(0x342)](_0x5300e0)),_0x27eb69(0x1,_0x40aff1['IUniverInstanceService']),_0x27eb69(0x2,_0x1fd8d9['IRenderManagerService']),_0x27eb69(0x3,_0x58498f[_0x50a247(0x342)](_0x39fa2f[_0x50a247(0x1de)])),_0x27eb69(0x4,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x4da)]))],_0x49a7f8);function _0x2db494(_0x252b46){const _0x2abc82=_0x50a247,_0xbbb28=new Map();return _0x252b46[_0x2abc82(0x35b)](_0xa07b83=>{const _0x166f79=_0x2abc82;if(_0xbbb28['has'](_0xa07b83[_0x166f79(0x3cd)])){const _0x416849=_0xbbb28[_0x166f79(0x17e)](_0xa07b83[_0x166f79(0x3cd)]);_0x416849['name']+=',\x20'+_0xa07b83['name'];}else _0xbbb28[_0x166f79(0x3cc)](_0xa07b83[_0x166f79(0x3cd)],_0xa07b83);}),Array[_0x2abc82(0x457)](_0xbbb28[_0x2abc82(0x4e6)]());}var _0x195feb=function(){const _0x25922f=_0x50a247;return _0x195feb=Object[_0x25922f(0x4b2)]||function(_0x3fdcdf){const _0x1e5c25=_0x25922f;for(var _0x4f67a8,_0x2350af=0x1,_0x42c136=arguments[_0x1e5c25(0x3d6)];_0x2350af<_0x42c136;_0x2350af++){_0x4f67a8=arguments[_0x2350af];for(var _0x182789 in _0x4f67a8)Object[_0x1e5c25(0x405)][_0x1e5c25(0x160)][_0x1e5c25(0x1cd)](_0x4f67a8,_0x182789)&&(_0x3fdcdf[_0x182789]=_0x4f67a8[_0x182789]);}return _0x3fdcdf;},_0x195feb['apply'](this,arguments);},_0x27d4fc=function(_0x211154,_0x39ff02){const _0x44d4ff=_0x50a247;var _0x3beef3={};for(var _0x1995c6 in _0x211154)Object[_0x44d4ff(0x405)][_0x44d4ff(0x160)]['call'](_0x211154,_0x1995c6)&&_0x39ff02['indexOf'](_0x1995c6)<0x0&&(_0x3beef3[_0x1995c6]=_0x211154[_0x1995c6]);if(_0x211154!=null&&typeof Object[_0x44d4ff(0x12a)]==_0x44d4ff(0x406)){for(var _0x35d369=0x0,_0x1995c6=Object[_0x44d4ff(0x12a)](_0x211154);_0x35d369<_0x1995c6[_0x44d4ff(0x3d6)];_0x35d369++)_0x39ff02[_0x44d4ff(0x161)](_0x1995c6[_0x35d369])<0x0&&Object[_0x44d4ff(0x405)][_0x44d4ff(0x223)][_0x44d4ff(0x1cd)](_0x211154,_0x1995c6[_0x35d369])&&(_0x3beef3[_0x1995c6[_0x35d369]]=_0x211154[_0x1995c6[_0x35d369]]);}return _0x3beef3;},_0x2dd61b=_0x2def2a['forwardRef'](function(_0x370555,_0x2a1d28){const _0x3e4288=_0x50a247;var _0x1599dd=_0x370555[_0x3e4288(0x2a2)],_0x206c58=_0x370555['id'],_0x194303=_0x370555[_0x3e4288(0x19f)],_0xd35ce7=_0x370555[_0x3e4288(0x284)],_0x4bce0b=_0x27d4fc(_0x370555,['icon','id','className',_0x3e4288(0x284)]),_0x1429be=_0x3e4288(0x458)[_0x3e4288(0x38b)](_0x206c58,'\x20')['concat'](_0x194303||'')[_0x3e4288(0x3bf)](),_0x325632=_0x2def2a[_0x3e4288(0x249)]('_'[_0x3e4288(0x38b)](_0xb71058()));return _0x52065a(_0x1599dd,''[_0x3e4288(0x38b)](_0x206c58),{'defIds':_0x1599dd[_0x3e4288(0x22d)],'idSuffix':_0x325632[_0x3e4288(0x15a)]},_0x195feb({'ref':_0x2a1d28,'className':_0x1429be},_0x4bce0b),_0xd35ce7);});function _0x52065a(_0xfc3955,_0x196c2f,_0x19991c,_0x1a900d,_0x2af57e){const _0x206780=_0x50a247;return _0x2def2a[_0x206780(0x2fd)](_0xfc3955[_0x206780(0x3cf)],_0x195feb(_0x195feb({'key':_0x196c2f},_0x1f833f(_0xfc3955,_0x19991c,_0x2af57e)),_0x1a900d),(_0x2f78ce(_0xfc3955,_0x19991c)[_0x206780(0x176)]||[])[_0x206780(0x290)](function(_0x466f8d,_0x30d2a2){const _0x21d73a=_0x206780;return _0x52065a(_0x466f8d,''['concat'](_0x196c2f,'-')[_0x21d73a(0x38b)](_0xfc3955[_0x21d73a(0x3cf)],'-')[_0x21d73a(0x38b)](_0x30d2a2),_0x19991c,void 0x0,_0x2af57e);}));}function _0x1f833f(_0x260bd7,_0x16f696,_0x2da75f){const _0x447256=_0x50a247;var _0xd9fde=_0x195feb({},_0x260bd7[_0x447256(0x486)]);_0x2da75f!=null&&_0x2da75f[_0x447256(0x41e)]&&_0xd9fde[_0x447256(0x1c2)]==='colorChannel1'&&(_0xd9fde[_0x447256(0x1c2)]=_0x2da75f['colorChannel1']);var _0x2b8e44=_0x16f696[_0x447256(0x22d)];return!_0x2b8e44||_0x2b8e44[_0x447256(0x3d6)]===0x0||(_0x260bd7[_0x447256(0x3cf)]===_0x447256(0x2dd)&&_0xd9fde[_0x447256(0x4e1)]&&(_0xd9fde[_0x447256(0x4e1)]=_0xd9fde[_0x447256(0x4e1)]+_0x16f696[_0x447256(0x144)]),Object['entries'](_0xd9fde)[_0x447256(0x35b)](function(_0x1d4ebc){const _0x18660c=_0x447256;var _0x2e6ea1=_0x1d4ebc[0x0],_0x3140f6=_0x1d4ebc[0x1];typeof _0x3140f6==_0x18660c(0x403)&&(_0xd9fde[_0x2e6ea1]=_0x3140f6[_0x18660c(0x2d3)](/url\(#(.*)\)/,_0x18660c(0x288)[_0x18660c(0x38b)](_0x16f696[_0x18660c(0x144)],')')));})),_0xd9fde;}function _0x2f78ce(_0x18bbe5,_0x1e8331){const _0x41f821=_0x50a247;var _0x298703,_0x28f801=_0x1e8331[_0x41f821(0x22d)];return!_0x28f801||_0x28f801[_0x41f821(0x3d6)]===0x0?_0x18bbe5:_0x18bbe5['tag']==='defs'&&(!((_0x298703=_0x18bbe5[_0x41f821(0x176)])===null||_0x298703===void 0x0)&&_0x298703[_0x41f821(0x3d6)])?_0x195feb(_0x195feb({},_0x18bbe5),{'children':_0x18bbe5[_0x41f821(0x176)]['map'](function(_0x2e1613){const _0x55e630=_0x41f821;return typeof _0x2e1613[_0x55e630(0x486)]['id']==_0x55e630(0x403)&&_0x28f801&&_0x28f801[_0x55e630(0x161)](_0x2e1613[_0x55e630(0x486)]['id'])>-0x1?_0x195feb(_0x195feb({},_0x2e1613),{'attrs':_0x195feb(_0x195feb({},_0x2e1613[_0x55e630(0x486)]),{'id':_0x2e1613[_0x55e630(0x486)]['id']+_0x1e8331['idSuffix']})}):_0x2e1613;})}):_0x18bbe5;}function _0xb71058(){const _0x28cdf8=_0x50a247;return Math[_0x28cdf8(0x3ef)]()[_0x28cdf8(0x1d0)](0x24)[_0x28cdf8(0x13a)](0x2,0x8);}_0x2dd61b[_0x50a247(0x468)]='UniverIcon';var _0x33dd2e={'tag':'svg','attrs':{'fill':_0x50a247(0x3ee),'viewBox':_0x50a247(0x231),'width':_0x50a247(0x318),'height':_0x50a247(0x318)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x50a247(0x26f),'attrs':{'stroke':'currentColor','d':_0x50a247(0x26d),'strokeLinecap':'round','strokeLinejoin':_0x50a247(0x411),'strokeWidth':1.2}}]},{'tag':_0x50a247(0x25c),'attrs':{},'children':[{'tag':_0x50a247(0x36f),'attrs':{'id':_0x50a247(0x28b)},'children':[{'tag':_0x50a247(0x26f),'attrs':{'fill':_0x50a247(0x3ed),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x2bc0d2=_0x2def2a['forwardRef'](function(_0x485bfe,_0x112f5a){const _0x119d65=_0x50a247;return _0x2def2a['createElement'](_0x2dd61b,Object[_0x119d65(0x4b2)]({},_0x485bfe,{'id':_0x119d65(0x3b5),'ref':_0x112f5a,'icon':_0x33dd2e}));});_0x2bc0d2[_0x50a247(0x468)]='OffLineSingle';var _0x15022a={'tag':_0x50a247(0x182),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x50a247(0x318),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x50a247(0x26f),'attrs':{'stroke':_0x50a247(0x22a),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x50a247(0x411),'strokeLinejoin':_0x50a247(0x411),'strokeWidth':1.2}}]},{'tag':_0x50a247(0x25c),'attrs':{},'children':[{'tag':_0x50a247(0x36f),'attrs':{'id':_0x50a247(0x33d)},'children':[{'tag':_0x50a247(0x26f),'attrs':{'fill':_0x50a247(0x3ed),'d':_0x50a247(0x13f),'transform':_0x50a247(0x426)}}]}]}],'defIds':[_0x50a247(0x33d)]},_0x3c562a=_0x2def2a[_0x50a247(0x1be)](function(_0x48a4d0,_0x41b5b3){const _0x39aed7=_0x50a247;return _0x2def2a[_0x39aed7(0x2fd)](_0x2dd61b,Object[_0x39aed7(0x4b2)]({},_0x48a4d0,{'id':_0x39aed7(0x2fb),'ref':_0x41b5b3,'icon':_0x15022a}));});_0x3c562a[_0x50a247(0x468)]=_0x50a247(0x474);const _0x162c1b={'onlineStatusIcon':_0x50a247(0x242),'onlineStatusTitle':_0x50a247(0x473),'onlineStatus':'univer-online-status','online':'univer-online','offline':_0x50a247(0x370)};function _0x446f5c(_0x22b562){const _0x4088b7=_0x50a247;switch(_0x22b562){case _0x2dad21['OFFLINE']:return _0x4088b7(0x2bb);case _0x2dad21['CONFLICT']:return _0x4088b7(0x4a9);case _0x2dad21['FETCH_MISS']:return _0x4088b7(0x404);case _0x2dad21[_0x4088b7(0x330)]:return _0x4088b7(0x1c1);case _0x2dad21[_0x4088b7(0x450)]:case _0x2dad21['AWAITING']:case _0x2dad21[_0x4088b7(0x37d)]:return _0x4088b7(0x218);case _0x2dad21['SYNCED']:return _0x4088b7(0x418);}}function _0x90e5a(_0x466adb){const _0x2fbbe4=_0x50a247,{status$:_0x5df909}=_0x466adb,_0x35f964=_0x4f2827[_0x2fbbe4(0x1f2)](_0x5df909,_0x2dad21[_0x2fbbe4(0x330)]),_0xedd82c=_0x423c0e[_0x2fbbe4(0x3f3)](_0x40aff1[_0x2fbbe4(0x34a)]),_0x262caa=_0x35f964!==_0x2dad21[_0x2fbbe4(0x152)],_0x13d764=_0xedd82c['t'](_0x446f5c(_0x35f964)),_0x7d1f09=_0x373f90(_0x162c1b[_0x2fbbe4(0x196)],{[_0x162c1b[_0x2fbbe4(0x273)]]:_0x262caa,[_0x162c1b['offline']]:!_0x262caa}),_0x5f3b32=_0x262caa?_0x2def2a[_0x2fbbe4(0x2fd)](_0x3c562a,null):_0x2def2a[_0x2fbbe4(0x2fd)](_0x2bc0d2,null);return _0x2def2a[_0x2fbbe4(0x2fd)](_0x2fbbe4(0x1e9),{'className':_0x7d1f09},_0x2def2a[_0x2fbbe4(0x2fd)](_0x2fbbe4(0x1e9),{'className':_0x162c1b[_0x2fbbe4(0x18d)]},_0x5f3b32),_0x2def2a[_0x2fbbe4(0x2fd)](_0x2fbbe4(0x1e9),{'className':_0x162c1b['onlineStatusTitle']},_0x13d764));}var _0x1f0744=(_0x4107f4,_0x3e0dd4,_0xa817e4,_0x33bce4)=>{for(var _0x5e1ed6=_0x3e0dd4,_0xd487b4=_0x4107f4['length']-0x1,_0x117a3b;_0xd487b4>=0x0;_0xd487b4--)(_0x117a3b=_0x4107f4[_0xd487b4])&&(_0x5e1ed6=_0x117a3b(_0x5e1ed6)||_0x5e1ed6);return _0x5e1ed6;},_0x36d057=(_0x2ba230,_0x49f2df)=>(_0x27b52b,_0x5736a4)=>_0x49f2df(_0x27b52b,_0x5736a4,_0x2ba230);_0x5bd0fe['DesktopCollaborationStatusDisplayController']=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x1e3afd,_0x4b8ea7,_0x559296,_0x3632ac){const _0x189fc2=_0x50a247;super(),_0x22b1a2(this,_0x189fc2(0x303),new _0x3171f1[(_0x189fc2(0x431))](_0x2dad21[_0x189fc2(0x330)])),(this[_0x189fc2(0x1f8)]=_0x1e3afd,this[_0x189fc2(0x2da)]=_0x4b8ea7,this['_injector']=_0x559296,this[_0x189fc2(0x4d2)]=_0x3632ac,this[_0x189fc2(0x21b)](),this[_0x189fc2(0x17d)]());}[_0x50a247(0x21b)](){const _0x2fec40=_0x50a247;this[_0x2fec40(0x3e1)](this[_0x2fec40(0x2da)][_0x2fec40(0x171)](_0x4f2827[_0x2fec40(0x3ab)]['HEADER_MENU'],()=>_0x423c0e[_0x2fec40(0x4d3)](_0x455d4a({'status$':this[_0x2fec40(0x303)]['asObservable']()}),this[_0x2fec40(0x401)])));}[_0x50a247(0x17d)](){const _0x25bcd3=_0x50a247;this[_0x25bcd3(0x3e1)](_0x40aff1[_0x25bcd3(0x2b7)](this[_0x25bcd3(0x1f8)][_0x25bcd3(0x3d2)][_0x25bcd3(0x41d)](_0x3171f1[_0x25bcd3(0x4b9)](()=>{const _0x24cebb=_0x25bcd3,_0x2f1b4c=this['_univerInstanceService']['getFocusedUnit']();return _0x2f1b4c?this[_0x24cebb(0x4d2)][_0x24cebb(0x240)](_0x2f1b4c[_0x24cebb(0x220)]()):_0x3171f1['of'](null);}),_0x3171f1[_0x25bcd3(0x4b9)](_0x313fbc=>_0x313fbc?_0x313fbc[_0x25bcd3(0x1c6)]:_0x3171f1['of'](_0x2dad21['NOT_COLLAB'])))[_0x25bcd3(0x1a6)](_0x4c0e52=>{const _0x28eaa0=_0x25bcd3;this[_0x28eaa0(0x303)][_0x28eaa0(0x446)](_0x4c0e52);})));}},_0x5bd0fe[_0x50a247(0x173)]=_0x1f0744([_0x40aff1['OnLifecycle'](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5bd0fe['DesktopCollaborationStatusDisplayController']),_0x36d057(0x0,_0x40aff1[_0x50a247(0x3f5)]),_0x36d057(0x1,_0x4f2827[_0x50a247(0x2db)]),_0x36d057(0x2,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x36d057(0x3,_0x58498f['Inject'](_0x5bd0fe[_0x50a247(0x422)]))],_0x5bd0fe[_0x50a247(0x173)]);function _0x455d4a(_0x3fa53d){const {status$:_0x461de1}=_0x3fa53d;return function(){const _0x5d175e=_0x3f00;return _0x2def2a[_0x5d175e(0x2fd)](_0x90e5a,{'status$':_0x461de1});};}const _0x2f336e=_0x58498f['createIdentifier']('uni.network.url-service');var _0x4a1f04=(_0x16784a,_0x3a27ad,_0x1f20ce,_0x4a37ce)=>{const _0x43f24b=_0x50a247;for(var _0x496de4=_0x3a27ad,_0x2789b7=_0x16784a[_0x43f24b(0x3d6)]-0x1,_0x1d70e2;_0x2789b7>=0x0;_0x2789b7--)(_0x1d70e2=_0x16784a[_0x2789b7])&&(_0x496de4=_0x1d70e2(_0x496de4)||_0x496de4);return _0x496de4;},_0x5c1771=(_0x456b6c,_0x288351)=>(_0x547697,_0xd9323b)=>_0x288351(_0x547697,_0xd9323b,_0x456b6c);_0x5bd0fe[_0x50a247(0x44e)]=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x276183,_0x30e013,_0x3e597c,_0xd936e,_0x4e8863,_0x32929a){const _0x784afd=_0x50a247;super(),this[_0x784afd(0x408)]=_0x276183,this[_0x784afd(0x3b1)]=_0x30e013,this['_commandService']=_0x3e597c,this[_0x784afd(0x43e)]=_0xd936e,this['_snapshotService']=_0x4e8863,_0x32929a?_0x32929a==null||_0x32929a[_0x784afd(0x3c4)]()[_0x784afd(0x3f7)](()=>this[_0x784afd(0x1ce)]()):(this['_logService'][_0x784afd(0x2d6)](_0x784afd(0x2e4),_0x784afd(0x32e)),this[_0x784afd(0x1ce)]());}async[_0x50a247(0x1ce)](){const _0x333a9e=_0x50a247,_0x2d5ac3=this[_0x333a9e(0x408)][_0x333a9e(0x3bd)](_0x333a9e(0x21f)),_0x1777bd=this[_0x333a9e(0x408)][_0x333a9e(0x3bd)]('type');if(!_0x2d5ac3||!_0x1777bd){this['_logService'][_0x333a9e(0x2d6)](_0x333a9e(0x2e4),_0x333a9e(0x319));return;}switch(Number(_0x1777bd)){case _0x4cf902[_0x333a9e(0x309)]:{const _0x1ee06c=await this['_loadSheet'](_0x2d5ac3);this[_0x333a9e(0x4c6)](_0x1ee06c);break;}case _0x4cf902[_0x333a9e(0x254)]:{await this['_loadDoc'](_0x2d5ac3);break;}default:{this[_0x333a9e(0x3b1)][_0x333a9e(0x207)](_0x333a9e(0x2e4),_0x333a9e(0x3c6));break;}}}async[_0x50a247(0x4c6)](_0x52cd75){const _0x57d505=_0x50a247;await this['_updateSubUnitFromURLParams'](_0x52cd75),_0x52cd75['activeSheet$'][_0x57d505(0x41d)](_0x3171f1['takeUntil'](this[_0x57d505(0x439)]))[_0x57d505(0x1a6)](_0x4c3b5b=>{const _0x2b191b=_0x57d505;_0x4c3b5b&&this[_0x2b191b(0x27a)](_0x4c3b5b);}),this[_0x57d505(0x408)][_0x57d505(0x29d)][_0x57d505(0x41d)](_0x3171f1[_0x57d505(0x1f0)](this[_0x57d505(0x439)]))[_0x57d505(0x1a6)](()=>this['_updateSubUnitFromURLParams'](_0x52cd75));}[_0x50a247(0x27a)](_0x389de1,_0x3bcb57=!0x1){const _0x19079e=_0x50a247,_0x932350=this[_0x19079e(0x408)][_0x19079e(0x3bd)](_0x19079e(0x399));_0x389de1[_0x19079e(0x141)]()!==_0x932350&&this[_0x19079e(0x408)]['setParam'](_0x19079e(0x399),_0x389de1[_0x19079e(0x141)](),_0x3bcb57);}async[_0x50a247(0x1d6)](_0xaa41f2){const _0x1c9416=_0x50a247,_0x2ce7cd=this[_0x1c9416(0x408)][_0x1c9416(0x3bd)](_0x1c9416(0x399));if(!_0x2ce7cd||!_0xaa41f2[_0x1c9416(0x2d2)](_0x2ce7cd)){this[_0x1c9416(0x27a)](_0xaa41f2[_0x1c9416(0x172)](),!0x0);return;}_0xaa41f2[_0x1c9416(0x172)]()[_0x1c9416(0x141)]()!==_0x2ce7cd&&await this['_commandService'][_0x1c9416(0x1eb)](_0x361837[_0x1c9416(0x32d)]['id'],{'unitId':_0xaa41f2[_0x1c9416(0x220)](),'subUnitId':_0x2ce7cd});}async[_0x50a247(0x4c0)](_0x4fce71){const _0x1e1903=_0x50a247;let _0x27c42b=0x0;const _0x4fd459=await this[_0x1e1903(0x43e)][_0x1e1903(0x4a1)](_0x4fce71);return _0x4fd459&&(_0x4fd459[_0x1e1903(0x224)]||_0x4fd459['mutations'][_0x1e1903(0x3d6)]!==0x0)&&(_0x27c42b=_0x4fd459[_0x1e1903(0x3e4)]),_0x27c42b===0x0&&this[_0x1e1903(0x3b1)][_0x1e1903(0x2d6)](_0x1e1903(0x2e4),_0x1e1903(0x2be)),this[_0x1e1903(0x346)][_0x1e1903(0x311)](_0x4fce71,_0x27c42b);}async[_0x50a247(0x4b4)](_0x13218d){const _0x55674b=_0x50a247;let _0x379a68=0x0;const _0x2f1041=await this[_0x55674b(0x43e)][_0x55674b(0x4a1)](_0x13218d);return _0x2f1041&&(_0x2f1041['awaitingChangeset']||_0x2f1041[_0x55674b(0x18e)][_0x55674b(0x3d6)]!==0x0)&&(_0x379a68=_0x2f1041['rev']),_0x379a68===0x0&&this['_logService'][_0x55674b(0x2d6)](_0x55674b(0x2e4),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x55674b(0x346)][_0x55674b(0x3d7)](_0x13218d,_0x379a68);}},_0x5bd0fe['DataLoaderController']=_0x4a1f04([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5bd0fe['DataLoaderController']),_0x5c1771(0x0,_0x2f336e),_0x5c1771(0x1,_0x40aff1['ILogService']),_0x5c1771(0x2,_0x40aff1[_0x50a247(0x19e)]),_0x5c1771(0x3,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['LocalCacheService'])),_0x5c1771(0x4,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x291)])),_0x5c1771(0x5,_0x58498f[_0x50a247(0x1a5)](_0x33ffd7['IRemoteInstanceService']))],_0x5bd0fe['DataLoaderController']);var _0x41d050=(_0x5c6750,_0x3fd9ac,_0x46e835,_0x49c8aa)=>{const _0x418136=_0x50a247;for(var _0x37edb5=_0x3fd9ac,_0xd6f334=_0x5c6750[_0x418136(0x3d6)]-0x1,_0x5818ac;_0xd6f334>=0x0;_0xd6f334--)(_0x5818ac=_0x5c6750[_0xd6f334])&&(_0x37edb5=_0x5818ac(_0x37edb5)||_0x37edb5);return _0x37edb5;},_0x5c9870=(_0x15bfa4,_0x41a085)=>(_0x5eccdc,_0x202287)=>_0x41a085(_0x5eccdc,_0x202287,_0x15bfa4);const _0xc3401c=_0x50a247(0x33f),_0x49adde=_0x50a247(0x31f);let _0x3e17e9=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x488cc4,_0x4e158a){const _0x432fc6=_0x50a247;super(),this[_0x432fc6(0x1f8)]=_0x488cc4,this[_0x432fc6(0x1ab)]=_0x4e158a,this[_0x432fc6(0x1ce)]();}[_0x50a247(0x1ce)](){const _0x470001=_0x50a247;this[_0x470001(0x3e1)](_0x40aff1[_0x470001(0x2b7)](this[_0x470001(0x1f8)]['focused$'][_0x470001(0x1a6)](()=>{const _0x58d454=_0x470001;var _0x4b9d7a;const _0x2e2e31=this['_univerInstanceService']['getFocusedUnit']();let _0x4add0b=(_0x4b9d7a=this[_0x58d454(0x1ab)][_0x58d454(0x48e)](_0xc3401c))!=null?_0x4b9d7a:_0x49adde;_0x2e2e31 instanceof _0x40aff1['Workbook']&&(_0x4add0b=_0x2e2e31[_0x58d454(0x44c)]),document[_0x58d454(0x2a3)]=_0x4add0b;})));}};_0x3e17e9=_0x41d050([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x452)],_0x3e17e9),_0x5c9870(0x0,_0x40aff1['IUniverInstanceService']),_0x5c9870(0x1,_0x40aff1[_0x50a247(0x263)])],_0x3e17e9);var _0x4c3ddf=(_0x7fd61e,_0x2605d5,_0x57e84a,_0x8501ba)=>{const _0x240637=_0x50a247;for(var _0xdca86c=_0x2605d5,_0xb09337=_0x7fd61e[_0x240637(0x3d6)]-0x1,_0x3b5da7;_0xb09337>=0x0;_0xb09337--)(_0x3b5da7=_0x7fd61e[_0xb09337])&&(_0xdca86c=_0x3b5da7(_0xdca86c)||_0xdca86c);return _0xdca86c;},_0x1c030e=(_0x436c39,_0xfc4975)=>(_0x41a333,_0x5c7e39)=>_0xfc4975(_0x41a333,_0x5c7e39,_0x436c39);const _0x4ebe18='SNAPSHOT_SERVER_URL_KEY',_0x213400=_0x50a247(0x3c3);let _0x567b8d=class{constructor(_0x2b10e5,_0x56e7d4){const _0x3639fb=_0x50a247;this[_0x3639fb(0x1ab)]=_0x2b10e5,this[_0x3639fb(0x1d1)]=_0x56e7d4;}async['getUnitOnRev'](_0x33ffe3,_0x22efe6){const _0x4dc4d8=_0x50a247;var _0x280d54;const {unitID:_0x39b021,type:_0x2a551f,revision:_0x1d8013=0x0}=_0x22efe6,_0x35ba3f=this[_0x4dc4d8(0x1f1)]()+'/'+_0x2a551f+_0x4dc4d8(0x24f)+_0x39b021+'/rev/'+(_0x1d8013===0x1?0x0:_0x1d8013),_0x4b90f3=(await this[_0x4dc4d8(0x1d1)][_0x4dc4d8(0x17e)](_0x35ba3f))['body'],_0x385058=(_0x280d54=_0x4b90f3['snapshot'])==null?void 0x0:_0x280d54[_0x4dc4d8(0x455)];if(_0x385058){const _0x1da625=_0x385058==null?void 0x0:_0x385058[_0x4dc4d8(0x198)],_0x575406=_0x40aff1[_0x4dc4d8(0x138)][_0x4dc4d8(0x427)](_0x40aff1['b64DecodeUnicode'](_0x1da625));_0x385058['originalMeta']=_0x575406,Object[_0x4dc4d8(0x32f)](_0x385058['sheets'])[_0x4dc4d8(0x35b)](([,_0x24c9b9])=>{const _0x1a74b8=_0x4dc4d8,_0x57dc9f=_0x24c9b9[_0x1a74b8(0x198)],_0x2d062a=_0x40aff1['textEncoder']['encode'](_0x40aff1[_0x1a74b8(0x156)](_0x57dc9f));_0x24c9b9[_0x1a74b8(0x198)]=_0x2d062a;});}return _0x4b90f3;}async['getSheetBlock'](_0x3a6d39,_0x1d7140){const _0x26c219=_0x50a247,{unitID:_0x522c15,type:_0x3bdb67,blockID:_0x535aaa}=_0x1d7140,_0xfd2594=this[_0x26c219(0x1f1)]()+'/'+_0x3bdb67+_0x26c219(0x24f)+_0x522c15+_0x26c219(0x1d8)+_0x535aaa;return(await this[_0x26c219(0x1d1)][_0x26c219(0x17e)](_0xfd2594))['body'];}async[_0x50a247(0x1a1)](_0x1c6c78,_0x19e0fc){const _0x2620a0=_0x50a247,{unitID:_0x5e4788,type:_0xd343bc,from:_0x4fad57,to:_0x249325}=_0x19e0fc,_0x39acf1=this[_0x2620a0(0x1f1)]()+'/'+_0xd343bc+'/unit/'+_0x5e4788+'/fetchmissing?from='+_0x4fad57+_0x2620a0(0x4cd)+_0x249325;return(await this[_0x2620a0(0x1d1)]['get'](_0x39acf1))[_0x2620a0(0x3eb)];}[_0x50a247(0x1f1)](){const _0x5f4c22=_0x50a247;var _0x185df0;return(_0x185df0=this[_0x5f4c22(0x1ab)][_0x5f4c22(0x48e)](_0x4ebe18))!=null?_0x185df0:_0x213400;}async[_0x50a247(0x268)](_0xda3ba0,_0x2ce786){const _0x3fb6a7=_0x50a247,_0x3d6e16=_0x3fb6a7(0x46e)+_0x2ce786[_0x3fb6a7(0x28c)]+'/unit/'+_0x2ce786[_0x3fb6a7(0x437)]+_0x3fb6a7(0x146);return(await this[_0x3fb6a7(0x1d1)][_0x3fb6a7(0x17e)](_0x3d6e16,{'params':{'resourceId':JSON[_0x3fb6a7(0x461)](_0x2ce786[_0x3fb6a7(0x295)])}}))[_0x3fb6a7(0x3eb)];}[_0x50a247(0x42a)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x50a247(0x251)](){const _0x5328e4=_0x50a247;throw new Error(_0x5328e4(0x1fe));}[_0x50a247(0x2c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x567b8d=_0x4c3ddf([_0x1c030e(0x0,_0x40aff1[_0x50a247(0x263)]),_0x1c030e(0x1,_0x58498f[_0x50a247(0x342)](_0x12f0de[_0x50a247(0x36e)]))],_0x567b8d);var _0x2c1c10=(_0x2c79dd,_0xdd6fcd,_0x3bf2a0,_0x125fc3)=>{const _0x57e832=_0x50a247;for(var _0x5dbb6e=_0xdd6fcd,_0x55f009=_0x2c79dd[_0x57e832(0x3d6)]-0x1,_0x2e379e;_0x55f009>=0x0;_0x55f009--)(_0x2e379e=_0x2c79dd[_0x55f009])&&(_0x5dbb6e=_0x2e379e(_0x5dbb6e)||_0x5dbb6e);return _0x5dbb6e;},_0x5a5de4=(_0x564c41,_0x1a0633)=>(_0x31e49b,_0x522153)=>_0x1a0633(_0x31e49b,_0x522153,_0x564c41);let _0x1f13f8=class extends _0x40aff1[_0x50a247(0x140)]{constructor(_0x290f9a,_0x5583e8,_0xdccb1a,_0x52eb1c,_0x3efdd7){const _0x4b759d=_0x50a247;super(_0x290f9a,_0x5583e8,_0xdccb1a),this[_0x4b759d(0x135)]=_0x52eb1c,this[_0x4b759d(0x3b1)]=_0x3efdd7;}[_0x50a247(0x1f7)](_0x2eed8d,_0x2f168e){const _0x2c9e90=_0x50a247,_0x113b07=this[_0x2c9e90(0x2a4)](_0x2eed8d);if(_0x113b07)try{const _0x109403=this['_transformStack'](_0x113b07,_0x2f168e);this['_substituteUndoStack'](_0x2eed8d,_0x109403);}catch(_0x1b8f85){this[_0x2c9e90(0x3b1)][_0x2c9e90(0x207)](_0x2c9e90(0x1a7),_0x1b8f85),this[_0x2c9e90(0x3fb)](_0x2eed8d);}const _0x2106a6=this[_0x2c9e90(0x4d4)](_0x2eed8d);if(_0x2106a6)try{const _0x6fde0e=this[_0x2c9e90(0x352)](_0x2106a6,_0x2f168e);this[_0x2c9e90(0x25e)](_0x2eed8d,_0x6fde0e);}catch(_0x27ebf3){this['_logService'][_0x2c9e90(0x207)](_0x27ebf3),this[_0x2c9e90(0x1fa)](_0x2eed8d);}}[_0x50a247(0x3fb)](_0x27d6d9){const _0x1dd04f=_0x50a247,_0x5b2222=this[_0x1dd04f(0x2a4)](_0x27d6d9);_0x5b2222&&(_0x5b2222['length']=0x0,this[_0x1dd04f(0x4a3)]());}[_0x50a247(0x1fa)](_0x22f726){const _0x5976a1=_0x50a247,_0x4bf89b=this[_0x5976a1(0x4d4)](_0x22f726);_0x4bf89b&&(_0x4bf89b[_0x5976a1(0x3d6)]=0x0,this[_0x5976a1(0x4a3)]());}[_0x50a247(0x2ca)](_0x5ece25,_0x18c0d5){const _0x2455cd=_0x50a247;this[_0x2455cd(0x1fc)][_0x2455cd(0x3cc)](_0x5ece25,_0x18c0d5),this[_0x2455cd(0x4a3)]();}['_substituteRedoStack'](_0x349bbf,_0x1dc6d1){this['_redoStacks']['set'](_0x349bbf,_0x1dc6d1),this['_updateStatus']();}['_transformStack'](_0x44131a,_0x3535e0){const _0x3ef89b=_0x50a247,_0x54121a=[];let _0x3733f1=_0x3535e0,_0x2b5027=_0x3535e0;for(let _0x3c0668=_0x44131a['length']-0x1;_0x3c0668>=0x0;_0x3c0668--){const {unitID:_0x3b3f24,undoMutations:_0x566afe,redoMutations:_0x44d7f0}=_0x44131a[_0x3c0668],_0x1065d8=this[_0x3ef89b(0x135)][_0x3ef89b(0x36c)](_0x3733f1,_0x566afe),_0x3fdde0=this[_0x3ef89b(0x135)]['transformMutationsWithChangeset'](_0x2b5027,_0x44d7f0);if(_0x57eaa4['isTransformMutationsWithChangesetFailure'](_0x1065d8)||_0x57eaa4[_0x3ef89b(0x3a1)](_0x3fdde0)){this[_0x3ef89b(0x3b1)]['error'](_0x3ef89b(0x1a7),_0x3ef89b(0x472),_0x1065d8,_0x3fdde0);break;}_0x3733f1=_0x1065d8[_0x3ef89b(0x287)],_0x2b5027=_0x3fdde0[_0x3ef89b(0x287)],_0x54121a['push']({'unitID':_0x3b3f24,'undoMutations':_0x1065d8[_0x3ef89b(0x3ac)],'redoMutations':_0x3fdde0[_0x3ef89b(0x3ac)]});}return _0x54121a['reverse']();}};_0x1f13f8=_0x2c1c10([_0x5a5de4(0x0,_0x40aff1[_0x50a247(0x3f5)]),_0x5a5de4(0x1,_0x40aff1[_0x50a247(0x19e)]),_0x5a5de4(0x2,_0x40aff1['IContextService']),_0x5a5de4(0x3,_0x57eaa4[_0x50a247(0x3be)]),_0x5a5de4(0x4,_0x40aff1['ILogService'])],_0x1f13f8);class _0x4be034 extends _0x40aff1[_0x50a247(0x48d)]{constructor(){const _0x346f7e=_0x50a247;super(),_0x22b1a2(this,_0x346f7e(0x29d)),this[_0x346f7e(0x29d)]=_0x3171f1[_0x346f7e(0x3f4)](window,_0x346f7e(0x4bf))['pipe'](_0x3171f1[_0x346f7e(0x1f0)](this['dispose$']),_0x3171f1[_0x346f7e(0x1fb)](0x1),_0x3171f1['mapTo'](void 0x0));}[_0x50a247(0x382)](_0x430188,_0x465b07,_0x45e14a=!0x1){const _0x3374a6=_0x50a247,_0x3c395f=new URL(window[_0x3374a6(0x2df)][_0x3374a6(0x222)]);_0x3c395f[_0x3374a6(0x2d5)][_0x3374a6(0x3cc)](_0x430188,_0x465b07),_0x45e14a?window['history'][_0x3374a6(0x12e)]('','',_0x3c395f[_0x3374a6(0x1d0)]()):window['history'][_0x3374a6(0x24d)]('','',_0x3c395f[_0x3374a6(0x1d0)]());}[_0x50a247(0x4c4)](_0x46802c,_0x2d97a0=!0x1){const _0x511676=_0x50a247,_0x5dec3f=new URL(window['location'][_0x511676(0x222)]);_0x5dec3f[_0x511676(0x2d5)][_0x511676(0x371)](_0x46802c),_0x2d97a0?window[_0x511676(0x392)]['replaceState']('','',_0x5dec3f[_0x511676(0x1d0)]()):window[_0x511676(0x392)]['pushState']('','',_0x5dec3f[_0x511676(0x1d0)]());}[_0x50a247(0x3bd)](_0x5848db){const _0x18f06b=_0x50a247;var _0x4442ba;return(_0x4442ba=new URL(window[_0x18f06b(0x2df)][_0x18f06b(0x222)])['searchParams'][_0x18f06b(0x17e)](_0x5848db))!=null?_0x4442ba:void 0x0;}}const _0x4ddbd7=_0x50a247(0x357),_0x42cdb1=_0x50a247(0x4ac),_0x1cd232=0x6,_0x553840=1.5,_0x458014=0x4,_0x533edd=1.5,_0x437293=_0x50a247(0x2e1);class _0x114165{constructor(_0x331685,_0x219905,_0x26dc38,_0x5447b3){const _0x12b87f=_0x50a247;_0x22b1a2(this,_0x12b87f(0x2d0),[]),_0x22b1a2(this,_0x12b87f(0x40c),null),_0x22b1a2(this,_0x12b87f(0x44b),null),_0x22b1a2(this,_0x12b87f(0x433),null),_0x22b1a2(this,_0x12b87f(0x12f),null),_0x22b1a2(this,_0x12b87f(0x315),null),(this[_0x12b87f(0x2b4)]=_0x331685,this[_0x12b87f(0x4d1)]=_0x219905,this[_0x12b87f(0x40f)]=_0x26dc38,this['_document']=_0x5447b3,this['_render']());}set[_0x50a247(0x3b8)](_0x30080b){const _0x1b65a6=_0x50a247;_0x30080b?(this[_0x1b65a6(0x433)]&&this['_anchorDot'][_0x1b65a6(0x195)](),this[_0x1b65a6(0x44b)]&&this[_0x1b65a6(0x44b)]['show']()):(this[_0x1b65a6(0x433)]&&this[_0x1b65a6(0x433)][_0x1b65a6(0x259)](),this[_0x1b65a6(0x44b)]&&this[_0x1b65a6(0x44b)][_0x1b65a6(0x195)]());}['dispose'](){const _0x19659e=_0x50a247;for(const _0x13c059 of this[_0x19659e(0x2d0)])_0x13c059[_0x19659e(0x1e5)]();this[_0x19659e(0x44b)]&&this['_textBubble'][_0x19659e(0x1e5)](),this[_0x19659e(0x433)]&&this[_0x19659e(0x433)][_0x19659e(0x1e5)](),this[_0x19659e(0x40c)]&&this[_0x19659e(0x40c)][_0x19659e(0x1e5)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x50a247(0x33c)](){const _0x2112a4=_0x50a247,{_docSkeleton:_0x50edda,_document:_0x329514}=this,{color:_0x2c7425,name:_0x1ac573,ranges:_0x2f1e63}=this[_0x2112a4(0x2b4)],_0x1f5252=_0x329514[_0x2112a4(0x200)](),{docsLeft:_0x5e3e26,docsTop:_0x425f23}=_0x1f5252,_0x1cf6c9=new _0x1fd8d9[(_0x2112a4(0x3fe))](_0x1f5252,_0x50edda);for(const {startOffset:_0x51eac9,endOffset:_0x4f7afe,collapsed:_0x1b44d8,isActive:_0x59a089}of _0x2f1e63){const _0x275860=_0x50edda[_0x2112a4(0x2cc)](_0x51eac9),_0x5a3cbf=_0x50edda[_0x2112a4(0x2cc)](_0x4f7afe);if(_0x59a089){const {contentBoxPointGroup:_0x3d426a}=_0x1cf6c9[_0x2112a4(0x292)](_0x5a3cbf,_0x5a3cbf);if(_0x3d426a['length']===0x0)continue;this[_0x2112a4(0x2e8)](_0x2c7425,_0x3d426a,_0x5e3e26,_0x425f23,_0x1ac573),this[_0x2112a4(0x315)]=this[_0x2112a4(0x478)]();}if(!_0x1b44d8){const {contentBoxPointGroup:_0x5e0679}=_0x1cf6c9[_0x2112a4(0x292)](_0x275860,_0x5a3cbf);if(_0x5e0679[_0x2112a4(0x3d6)]===0x0)continue;this[_0x2112a4(0x20b)](_0x2c7425,_0x5e0679,_0x5e3e26,_0x425f23);}}}['_drawAnchor'](_0x51113a,_0x1a6bb7,_0x29edda,_0x3063fb,_0x36d435){const _0x188cb3=_0x50a247,_0x131cb9=this[_0x188cb3(0x20e)](_0x1a6bb7),{left:_0x60c65d,top:_0x346aea,height:_0x820a03}=_0x131cb9,_0x4690b7=this[_0x188cb3(0x2a9)](),_0x336a99=_0x533edd/_0x4690b7,_0x4cd538=new _0x1fd8d9[(_0x188cb3(0x1f3))](_0x4ddbd7+_0x40aff1[_0x188cb3(0x376)][_0x188cb3(0x202)](_0x1cd232),{'left':_0x60c65d+_0x29edda-_0x336a99,'top':_0x346aea+_0x3063fb,'height':_0x820a03,'width':_0x553840,'fill':_0x51113a||_0x1fd8d9['getColor'](_0x40aff1[_0x188cb3(0x209)]['black'],0x0),'strokeWidth':_0x336a99,'stroke':_0x437293,'evented':!0x0});this[_0x188cb3(0x40c)]=_0x4cd538,this[_0x188cb3(0x4d1)][_0x188cb3(0x436)](_0x4cd538,_0x1fd8d9[_0x188cb3(0x29c)]);const _0x161a38=new _0x1fd8d9['Rect'](_0x4ddbd7+_0x40aff1[_0x188cb3(0x376)][_0x188cb3(0x202)](_0x1cd232),{'left':_0x60c65d+_0x29edda-_0x336a99,'top':_0x346aea+_0x3063fb-_0x458014/0x2,'height':_0x458014,'width':_0x458014,'fill':_0x51113a||_0x1fd8d9[_0x188cb3(0x308)](_0x40aff1[_0x188cb3(0x209)][_0x188cb3(0x350)],0x0),'strokeWidth':0x0,'stroke':_0x51113a||_0x1fd8d9[_0x188cb3(0x308)](_0x40aff1[_0x188cb3(0x209)][_0x188cb3(0x350)],0x0),'evented':!0x1});this[_0x188cb3(0x433)]=_0x161a38,this[_0x188cb3(0x4d1)]['addObject'](_0x161a38,_0x1fd8d9['TEXT_RANGE_LAYER_INDEX']);const _0x25fc70=new _0x205814(_0x4ddbd7+_0x40aff1[_0x188cb3(0x376)][_0x188cb3(0x202)](_0x1cd232),{'left':_0x60c65d+_0x29edda-_0x336a99,'top':_0x346aea+_0x3063fb-_0x193e62,'text':_0x36d435,'color':_0x51113a});this[_0x188cb3(0x44b)]=_0x25fc70,this[_0x188cb3(0x4d1)][_0x188cb3(0x436)](_0x25fc70,_0x1fd8d9['TEXT_RANGE_LAYER_INDEX']),this[_0x188cb3(0x3b8)]=!0x1;}[_0x50a247(0x478)](){const _0x42393a=_0x50a247,_0x4f6cff=this[_0x42393a(0x40c)]['onPointerEnterObserver']['add'](()=>{const _0x455102=_0x42393a;this[_0x455102(0x3b8)]=!0x0;}),_0xc5114b=this[_0x42393a(0x40c)][_0x42393a(0x213)]['add'](()=>{const _0x552d3b=_0x42393a;this[_0x552d3b(0x12f)]&&clearTimeout(this[_0x552d3b(0x12f)]),this['_hideTimer']=setTimeout(()=>{const _0x454222=_0x552d3b;this[_0x454222(0x3b8)]=!0x1;},0x7d0);});return()=>{const _0x497851=_0x42393a;var _0x3c6c4b,_0x4ad386;(_0x3c6c4b=this[_0x497851(0x40c)])==null||_0x3c6c4b[_0x497851(0x4ea)][_0x497851(0x1e6)](_0x4f6cff),(_0x4ad386=this[_0x497851(0x40c)])==null||_0x4ad386[_0x497851(0x213)][_0x497851(0x1e6)](_0xc5114b);};}[_0x50a247(0x20b)](_0x40050c,_0x1ab6ff,_0x4e7052,_0x47f80c){const _0x2e9da1=_0x50a247,_0x113228=new _0x40aff1[(_0x2e9da1(0x410))](_0x40050c)[_0x2e9da1(0x1c0)](0.2)[_0x2e9da1(0x2e2)](),_0x4c86fc=new _0x1fd8d9[(_0x2e9da1(0x1ee))](_0x42cdb1+_0x40aff1[_0x2e9da1(0x376)][_0x2e9da1(0x202)](_0x1cd232),{'pointsGroup':_0x1ab6ff,'fill':_0x113228||_0x1fd8d9[_0x2e9da1(0x308)](_0x40aff1[_0x2e9da1(0x209)][_0x2e9da1(0x350)],0.2),'left':_0x4e7052,'top':_0x47f80c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2e9da1(0x4a8)](_0x4c86fc),this[_0x2e9da1(0x4d1)][_0x2e9da1(0x436)](_0x4c86fc,_0x1fd8d9[_0x2e9da1(0x29c)]);}['_getAnchorBounding'](_0x2f369f){const _0x45e13b=_0x2f369f[0x0],_0xdf780d=_0x45e13b[0x0],_0x424d84=_0x45e13b[0x2],{x:_0x34c128,y:_0x25f3b8}=_0xdf780d,{x:_0x504009,y:_0x16140f}=_0x424d84;return{'left':_0x34c128,'top':_0x25f3b8,'width':_0x504009-_0x34c128,'height':_0x16140f-_0x25f3b8};}[_0x50a247(0x2a9)](){const _0x525497=_0x50a247,{scaleX:_0x199932,scaleY:_0x3f8dab}=this[_0x525497(0x4d1)][_0x525497(0x42e)]();return Math['max'](_0x199932,_0x3f8dab);}}var _0x570b7d=(_0x3eb522,_0x33fcce,_0xa4f072,_0x9dd2c3)=>{const _0x712db9=_0x50a247;for(var _0x50e1d5=_0x33fcce,_0xbaff49=_0x3eb522[_0x712db9(0x3d6)]-0x1,_0x3b14c1;_0xbaff49>=0x0;_0xbaff49--)(_0x3b14c1=_0x3eb522[_0xbaff49])&&(_0x50e1d5=_0x3b14c1(_0x50e1d5)||_0x50e1d5);return _0x50e1d5;},_0x5bf8a2=(_0x1bf81c,_0x5c6438)=>(_0x55198d,_0x5248cc)=>_0x5c6438(_0x55198d,_0x5248cc,_0x1bf81c);let _0x4c0e33=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x2fa01b,_0xc6a380,_0x1f3967,_0x5e6287,_0x1ae5ec){const _0x3f1806=_0x50a247;super(),_0x22b1a2(this,_0x3f1806(0x3f1),[]),(this[_0x3f1806(0x381)]=_0x2fa01b,this[_0x3f1806(0x1f8)]=_0xc6a380,this['_renderManagerService']=_0x1f3967,this['_docSkeletonManagerService']=_0x5e6287,this[_0x3f1806(0x3ca)]=_0x1ae5ec,this[_0x3f1806(0x1ce)]());}[_0x50a247(0x1ce)](){const _0x59ffcd=_0x50a247;this[_0x59ffcd(0x359)][_0x59ffcd(0x37f)][_0x59ffcd(0x41d)](_0x32d0c5[_0x59ffcd(0x1f0)](this['dispose$']),_0x32d0c5[_0x59ffcd(0x4b9)](_0x10c9b5=>{const _0x3c655b=_0x59ffcd;if(_0x10c9b5){const {unitId:_0x5a4e56}=_0x10c9b5;return _0x3171f1[_0x3c655b(0x1c3)](this[_0x3c655b(0x381)][_0x3c655b(0x4c2)](_0x5a4e56),this[_0x3c655b(0x3ca)][_0x3c655b(0x39c)])[_0x3c655b(0x41d)](_0x32d0c5['map'](([_0x430ed5,_0xd0edd6])=>({'skeleton':_0x10c9b5,'cursors':[..._0x430ed5[_0x3c655b(0x4e6)]()][_0x3c655b(0x3ad)](_0x3a5230=>({..._0x3a5230,'color':_0xd0edd6[_0x3a5230[_0x3c655b(0x416)]]}))})));}return _0x3171f1['of']({'skeleton':null,'cursors':[]});}))[_0x59ffcd(0x1a6)](({skeleton:_0x5aecfb,cursors:_0x5b84fa})=>{const _0x243d5d=_0x59ffcd;this[_0x243d5d(0x261)](),_0x5aecfb&&this[_0x243d5d(0x279)](_0x5aecfb[_0x243d5d(0x277)],_0x5b84fa);});}[_0x50a247(0x279)](_0x201944,_0x2a478b){const _0x5bd553=_0x50a247,_0x2f0bf4=this[_0x5bd553(0x1c8)]();if(_0x2f0bf4==null)return;const {scene:_0xa88f19,document:_0x22202a}=_0x2f0bf4,_0x31b3e1=_0x2a478b[_0x5bd553(0x290)](_0x22debf=>new _0x114165(_0x22debf,_0xa88f19,_0x201944,_0x22202a));this['_cursors']=_0x31b3e1;}[_0x50a247(0x261)](){const _0x38104b=_0x50a247;this[_0x38104b(0x3f1)][_0x38104b(0x35b)](_0x35484c=>_0x35484c[_0x38104b(0x1e5)]()),this[_0x38104b(0x3f1)]=[];}[_0x50a247(0x1c8)](){const _0x5f0bc0=_0x50a247;return _0xc138e5[_0x5f0bc0(0x45c)](this[_0x5f0bc0(0x1f8)],this[_0x5f0bc0(0x42b)]);}};_0x4c0e33=_0x570b7d([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x368)],_0x4c0e33),_0x5bf8a2(0x0,_0x58498f[_0x50a247(0x342)](_0x5300e0)),_0x5bf8a2(0x1,_0x40aff1[_0x50a247(0x3f5)]),_0x5bf8a2(0x2,_0x1fd8d9['IRenderManagerService']),_0x5bf8a2(0x3,_0x58498f[_0x50a247(0x342)](_0xc138e5['DocSkeletonManagerService'])),_0x5bf8a2(0x4,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x4da)]))],_0x4c0e33);var _0x11e0f=(_0x1c5dc5,_0x13537f,_0x5e11a2,_0x5c28c1)=>{const _0x4fcda1=_0x50a247;for(var _0x26ad0e=_0x13537f,_0x3933fd=_0x1c5dc5[_0x4fcda1(0x3d6)]-0x1,_0x2cb27c;_0x3933fd>=0x0;_0x3933fd--)(_0x2cb27c=_0x1c5dc5[_0x3933fd])&&(_0x26ad0e=_0x2cb27c(_0x26ad0e)||_0x26ad0e);return _0x26ad0e;},_0x555a1f=(_0x5ca655,_0x4b6a08)=>(_0xa66aa3,_0x5a80ee)=>_0x4b6a08(_0xa66aa3,_0x5a80ee,_0x5ca655);const _0x32de45=_0x50a247(0x2ba),_0x49e685='/universer-api/oidc/authpage';let _0x1fe3bf=class{constructor(_0x31ed8d,_0x5362f0,_0x3a6f4e){const _0x3ae089=_0x50a247;this[_0x3ae089(0x1ab)]=_0x31ed8d,this[_0x3ae089(0x1d1)]=_0x5362f0,this[_0x3ae089(0x388)]=_0x3a6f4e,this[_0x3ae089(0x356)]();}['init'](){const _0x4ab4a5=_0x50a247;this['_httpService'][_0x4ab4a5(0x19d)]({'priority':0x1,'interceptor':(_0x364d2b,_0x262f1d)=>_0x262f1d(_0x364d2b)[_0x4ab4a5(0x41d)](_0x3171f1[_0x4ab4a5(0x29b)](async _0x3ac5ef=>{const _0x43dc56=_0x4ab4a5;if(_0x3ac5ef[_0x43dc56(0x453)]===0x191&&window['confirm'](this['localeService']['t'](_0x43dc56(0x493)))){const _0x6c5b23=window['encodeURIComponent'](window[_0x43dc56(0x2df)][_0x43dc56(0x222)]);window[_0x43dc56(0x2df)]['href']=this['_getLoginPath']()+_0x43dc56(0x265)+_0x6c5b23;}return _0x3ac5ef;}))});}[_0x50a247(0x205)](){const _0x25c8ee=_0x50a247;var _0x51336b;return(_0x51336b=this['_configService'][_0x25c8ee(0x48e)](_0x32de45))!=null?_0x51336b:_0x49e685;}};_0x1fe3bf=_0x11e0f([_0x555a1f(0x0,_0x40aff1[_0x50a247(0x263)]),_0x555a1f(0x1,_0x58498f[_0x50a247(0x342)](_0x12f0de[_0x50a247(0x36e)])),_0x555a1f(0x2,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x34a)]))],_0x1fe3bf);var _0x53ce7b=(_0x5b0bbd,_0x44c582,_0x3cbe6f,_0x40ab02)=>{const _0x5bed5b=_0x50a247;for(var _0x569232=_0x44c582,_0x1b2789=_0x5b0bbd[_0x5bed5b(0x3d6)]-0x1,_0x7dadd1;_0x1b2789>=0x0;_0x1b2789--)(_0x7dadd1=_0x5b0bbd[_0x1b2789])&&(_0x569232=_0x7dadd1(_0x569232)||_0x569232);return _0x569232;},_0x526546=(_0x203fde,_0x345c5e)=>(_0x5479ad,_0x384116)=>_0x345c5e(_0x5479ad,_0x384116,_0x203fde);const _0x333957='AUTHZ_URL_KEY',_0x3a0f94=_0x50a247(0x353);_0x5bd0fe['AuthzIoHttpService']=class{constructor(_0x1e9d88,_0x7528d0){const _0x4af977=_0x50a247;this['_HTTPService']=_0x1e9d88,this[_0x4af977(0x1ab)]=_0x7528d0;}[_0x50a247(0x1f1)](){const _0x35dcad=_0x50a247;var _0x4e1ebc;return(_0x4e1ebc=this[_0x35dcad(0x1ab)]['getConfig'](_0x333957))!=null?_0x4e1ebc:_0x3a0f94;}async[_0x50a247(0x2b0)](_0x58bbb7){const _0x7b2d8f=_0x50a247,_0x528b55=this[_0x7b2d8f(0x1f1)]()+'/'+_0x58bbb7[_0x7b2d8f(0x1b2)]+_0x7b2d8f(0x246);return(await this[_0x7b2d8f(0x22e)][_0x7b2d8f(0x28a)](_0x528b55,{'body':_0x58bbb7}))[_0x7b2d8f(0x3eb)][_0x7b2d8f(0x12b)]||'';}async[_0x50a247(0x398)](_0x533a8e){const _0xe4f0fd=_0x50a247,_0x37af6f=this['_getAPIPrefixPath']()+_0xe4f0fd(0x3f9);return(await this['_HTTPService'][_0xe4f0fd(0x28a)](_0x37af6f,{'body':_0x533a8e}))['body'][_0xe4f0fd(0x420)];}async['update'](_0x492d14){const _0x1816f5=_0x50a247,_0x1d84a6=this[_0x1816f5(0x1f1)]()+'/'+_0x492d14[_0x1816f5(0x1b2)]+'/object/'+_0x492d14[_0x1816f5(0x12b)];await this[_0x1816f5(0x22e)][_0x1816f5(0x1ef)](_0x1d84a6,{'body':_0x492d14});}async[_0x50a247(0x3e5)](_0x1283dc){const _0x4a99fa=_0x50a247,_0x4fee28=this['_getAPIPrefixPath']()+'/'+_0x1283dc[_0x4a99fa(0x1b2)]+'/object/'+_0x1283dc[_0x4a99fa(0x12b)]+_0x4a99fa(0x184);return(await this[_0x4a99fa(0x22e)][_0x4a99fa(0x28a)](_0x4fee28,{'body':_0x1283dc}))[_0x4a99fa(0x3eb)][_0x4a99fa(0x3a4)];}async[_0x50a247(0x194)](_0x3124f9){const _0x26168a=_0x50a247,_0x55d8bf=this[_0x26168a(0x1f1)]()+_0x26168a(0x1b5);return(await this[_0x26168a(0x22e)][_0x26168a(0x28a)](_0x55d8bf,{'body':{'requests':_0x3124f9}}))['body'][_0x26168a(0x1e2)];}async[_0x50a247(0x38e)](_0x4cd40d){const _0x4458ae=_0x50a247,_0x3b4901=this[_0x4458ae(0x1f1)]()+'/'+_0x4cd40d[_0x4458ae(0x1b2)]+_0x4458ae(0x41f),_0x3da2ae=(await this['_HTTPService'][_0x4458ae(0x28a)](_0x3b4901,{'body':_0x4cd40d}))[_0x4458ae(0x3eb)];return{'roles':_0x3da2ae[_0x4458ae(0x1fd)],'actions':_0x3da2ae['actions']};}async[_0x50a247(0x29a)](_0x2cba7f){const _0x482e28=_0x50a247,_0x3a5e44=this[_0x482e28(0x1f1)]()+_0x482e28(0x465);await this[_0x482e28(0x22e)]['delete'](_0x3a5e44,{'params':{'collaboratorID':_0x2cba7f['collaboratorID'],'objectID':_0x2cba7f['objectID'],'unitID':_0x2cba7f[_0x482e28(0x437)]}});}async[_0x50a247(0x1ad)](_0x1824f){const _0x13f777=_0x50a247,_0x1a547d=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x13f777(0x22e)][_0x13f777(0x25d)](_0x1a547d,{'body':_0x1824f});}async[_0x50a247(0x4cb)](_0xb2372){const _0x2079e4=_0x50a247,_0x53fc8f=this[_0x2079e4(0x1f1)]()+_0x2079e4(0x465);await this[_0x2079e4(0x22e)]['post'](_0x53fc8f,{'body':_0xb2372});}async[_0x50a247(0x459)](_0x16fcae){const _0x1d9c86=_0x50a247,_0x137541=this['_getAPIPrefixPath']()+_0x1d9c86(0x465);return(await this[_0x1d9c86(0x22e)][_0x1d9c86(0x17e)](_0x137541,{'params':{'objectID':_0x16fcae[_0x1d9c86(0x12b)],'unitID':_0x16fcae[_0x1d9c86(0x437)]}}))[_0x1d9c86(0x3eb)]['collaborators'];}async[_0x50a247(0x150)](_0x391cfa){const _0x1acb40=_0x50a247,_0x156e64=this[_0x1acb40(0x1f1)]()+'/collaborator';await this[_0x1acb40(0x22e)][_0x1acb40(0x1ef)](_0x156e64,{'body':_0x391cfa});}},_0x5bd0fe['AuthzIoHttpService']=_0x53ce7b([_0x526546(0x0,_0x58498f['Inject'](_0x12f0de[_0x50a247(0x36e)])),_0x526546(0x1,_0x58498f[_0x50a247(0x342)](_0x40aff1['IConfigService']))],_0x5bd0fe[_0x50a247(0x432)]);var _0x439b65=(_0x1d5a55,_0x4b7f5d,_0x1d7a59,_0xcd552b)=>{for(var _0x16d7be=_0x4b7f5d,_0x2e8791=_0x1d5a55['length']-0x1,_0x89b1f3;_0x2e8791>=0x0;_0x2e8791--)(_0x89b1f3=_0x1d5a55[_0x2e8791])&&(_0x16d7be=_0x89b1f3(_0x16d7be)||_0x16d7be);return _0x16d7be;},_0x530596=(_0x21719d,_0x465545)=>(_0x244102,_0x3fda9c)=>_0x465545(_0x244102,_0x3fda9c,_0x21719d);const _0x56a8ce=[_0x50a247(0x27e),'image/jpeg',_0x50a247(0x45e),_0x50a247(0x38a),_0x50a247(0x3fa)],_0x3c7240=0x5*0x400*0x400,_0x4db5c5=_0x50a247(0x37e),_0x368fa7=_0x50a247(0x15f),_0x4dd1d3=_0x50a247(0x39a),_0x6b473b=_0x50a247(0x339);let _0x364526=class{constructor(_0x2f0b92,_0x3559c1){const _0x576418=_0x50a247;_0x22b1a2(this,_0x576418(0x4df),0x0),_0x22b1a2(this,_0x576418(0x183),new _0x3171f1[(_0x576418(0x1ed))]()),_0x22b1a2(this,_0x576418(0x3b3),this[_0x576418(0x183)]),_0x22b1a2(this,'_imageSourceCache',new Map()),(this[_0x576418(0x1d1)]=_0x2f0b92,this['_configService']=_0x3559c1);}[_0x50a247(0x264)](_0x1c07f2){const _0x392b89=_0x50a247;this[_0x392b89(0x4df)]=_0x1c07f2,this['_change$'][_0x392b89(0x446)](_0x1c07f2);}[_0x50a247(0x2a6)](_0x64bd40,_0x4e0bdb){const _0x403b30=_0x50a247;if(_0x4e0bdb===_0x3ce361[_0x403b30(0x4bb)][_0x403b30(0x214)]){const _0x2bbd92=new Image();return _0x2bbd92[_0x403b30(0x380)]=_0x64bd40,_0x2bbd92;}return this[_0x403b30(0x24e)][_0x403b30(0x17e)](_0x64bd40);}[_0x50a247(0x2fc)](_0x5a8831,_0x1cbfa9,_0x320010){const _0x335263=_0x50a247;_0x1cbfa9===_0x3ce361[_0x335263(0x4bb)][_0x335263(0x214)]||_0x320010==null||this[_0x335263(0x24e)][_0x335263(0x3cc)](_0x5a8831,_0x320010);}async[_0x50a247(0x476)](_0x339901){const _0x4743ea=_0x50a247;try{const _0x102413=this[_0x4743ea(0x4bd)](this['_getSignURL'](),''+_0x339901),_0x33b99b=(await this[_0x4743ea(0x1d1)][_0x4743ea(0x17e)](_0x102413))[_0x4743ea(0x3eb)];return _0x33b99b['error']&&_0x33b99b[_0x4743ea(0x207)]['code']===_0x580026['OK']?Promise['resolve'](_0x33b99b['url']):Promise[_0x4743ea(0x4af)](_0x33b99b[_0x4743ea(0x207)]);}catch(_0x5ae7f5){return Promise[_0x4743ea(0x4af)](_0x5ae7f5);}}async[_0x50a247(0x169)](_0x51d179){const _0x1516b7=_0x50a247;let _0x398f8f='';if(!_0x56a8ce[_0x1516b7(0x181)](_0x51d179[_0x1516b7(0x28c)]))return this[_0x1516b7(0x216)](),Promise[_0x1516b7(0x4af)](new Error(_0x3ce361['ImageUploadStatusType'][_0x1516b7(0x409)]));if(_0x51d179['size']>_0x3c7240)return this[_0x1516b7(0x216)](),Promise[_0x1516b7(0x4af)](new Error(_0x3ce361[_0x1516b7(0x229)][_0x1516b7(0x36d)]));try{const _0x270ee9=new FormData();_0x270ee9[_0x1516b7(0x2fe)](_0x1516b7(0x4c7),_0x51d179);const _0x4b873a=this[_0x1516b7(0x2aa)]()+_0x1516b7(0x496)+_0x51d179['size']['toString'](),_0x15b5b2=await(await fetch(_0x4b873a,{'method':_0x1516b7(0x41a),'body':_0x270ee9}))[_0x1516b7(0x1b3)]();if(typeof _0x15b5b2[_0x1516b7(0x336)]!=_0x1516b7(0x403))return this[_0x1516b7(0x216)](),Promise['reject'](new Error(_0x3ce361['ImageUploadStatusType'][_0x1516b7(0x164)]));_0x398f8f=_0x15b5b2[_0x1516b7(0x336)];}catch{return this[_0x1516b7(0x216)](),Promise[_0x1516b7(0x4af)](new Error(_0x3ce361[_0x1516b7(0x229)][_0x1516b7(0x164)]));}return new Promise((_0x2ff01b,_0x390d94)=>{const _0x111185=_0x1516b7,_0x457a75=new FileReader();_0x457a75[_0x111185(0x221)](_0x51d179),_0x457a75[_0x111185(0x301)]=_0x18761d=>{const _0x55970c=_0x111185;var _0x4d0052;const _0x2a6bec=(_0x4d0052=_0x18761d[_0x55970c(0x226)])==null?void 0x0:_0x4d0052['result'];if(_0x2a6bec==null){this[_0x55970c(0x216)](),_0x390d94(new Error(_0x3ce361[_0x55970c(0x229)][_0x55970c(0x164)]));return;}const _0x480fb1=_0x40aff1['Tools'][_0x55970c(0x202)](0x6);_0x2ff01b({'imageId':_0x480fb1,'imageSourceType':_0x3ce361['ImageSourceType'][_0x55970c(0x136)],'source':_0x398f8f,'base64Cache':_0x2a6bec,'status':_0x3ce361[_0x55970c(0x229)][_0x55970c(0x232)]}),this[_0x55970c(0x216)]();};});}[_0x50a247(0x2aa)](){const _0x5bc048=_0x50a247;var _0x1050da;return(_0x1050da=this[_0x5bc048(0x1ab)]['getConfig'](_0x4db5c5))!=null?_0x1050da:_0x368fa7;}[_0x50a247(0x14c)](){const _0x96bc15=_0x50a247;var _0x49c28e;return(_0x49c28e=this[_0x96bc15(0x1ab)][_0x96bc15(0x48e)](_0x4dd1d3))!=null?_0x49c28e:_0x6b473b;}[_0x50a247(0x4bd)](_0x3e8fa8,_0x764fba){return _0x3e8fa8['replace']('{fileID}',_0x764fba);}[_0x50a247(0x216)](){const _0x3909cb=_0x50a247;this[_0x3909cb(0x4df)]-=0x1,this[_0x3909cb(0x183)][_0x3909cb(0x446)](this['_waitCount']);}};_0x364526=_0x439b65([_0x530596(0x0,_0x58498f[_0x50a247(0x342)](_0x12f0de[_0x50a247(0x36e)])),_0x530596(0x1,_0x40aff1['IConfigService'])],_0x364526);var _0x5d2b24=(_0x357ef7,_0x138e1c,_0x40a3cc,_0x39112d)=>{const _0x3afd92=_0x50a247;for(var _0x44eb3b=_0x138e1c,_0x513c7d=_0x357ef7[_0x3afd92(0x3d6)]-0x1,_0x212b23;_0x513c7d>=0x0;_0x513c7d--)(_0x212b23=_0x357ef7[_0x513c7d])&&(_0x44eb3b=_0x212b23(_0x44eb3b)||_0x44eb3b);return _0x44eb3b;},_0x455018=(_0x118077,_0x9ad5a5)=>(_0x43cba2,_0x2bbfc5)=>_0x9ad5a5(_0x43cba2,_0x2bbfc5,_0x118077);const _0x49a62f='collaboration-client';_0x5bd0fe[_0x50a247(0x157)]=(_0x2e1c24=class extends _0x40aff1[_0x50a247(0x2f3)]{constructor(_0x3c4ce1,_0x5cb451,_0x3a6693){const _0x5540e2=_0x50a247;super(),this['_config']=_0x3c4ce1,this[_0x5540e2(0x401)]=_0x5cb451,this['_localeService']=_0x3a6693;}[_0x50a247(0x3a2)](_0x53c4c2){const _0x5b2bf6=_0x50a247;var _0x159843,_0x2b4333,_0x303651,_0x23bd41,_0x3faf47;_0x53c4c2['replace']([_0x40aff1[_0x5b2bf6(0x351)],{'useClass':_0x1f13f8}]);let _0x3b15f1=[[_0x5bd0fe['CollaborationSessionService']],[_0x410bf1],[_0x12f0de['HTTPService']],[_0x2f336e,{'useClass':_0x4be034}],[_0x370285],[_0x5bd0fe[_0x5b2bf6(0x262)]],[_0x12f0de[_0x5b2bf6(0x415)]],[_0x30b6af],[_0x58ad03],[_0x2b1054],[_0x59e101],[_0x1fe3bf],[_0x2196f2,{'useClass':(_0x2b4333=(_0x159843=this[_0x5b2bf6(0x3da)])==null?void 0x0:_0x159843[_0x5b2bf6(0x2ae)])!=null?_0x2b4333:_0x5bd0fe[_0x5b2bf6(0x40e)]}],[_0x12f0de['IHTTPImplementation'],{'useClass':_0x12f0de[_0x5b2bf6(0x4e3)]}],[_0x40aff1[_0x5b2bf6(0x338)],{'useClass':_0x567b8d}],[_0x40aff1['IAuthzIoService'],{'useClass':_0x5bd0fe[_0x5b2bf6(0x432)]}],[_0x3ce361[_0x5b2bf6(0x1cc)],{'useClass':_0x364526}],[_0x5bd0fe[_0x5b2bf6(0x422)]],[_0x5bd0fe[_0x5b2bf6(0x44e)]],[_0x5bd0fe['DesktopCollaborationStatusDisplayController']],[_0x3e17e9],[_0x5300e0]];(_0x303651=this[_0x5b2bf6(0x3da)])!=null&&_0x303651[_0x5b2bf6(0x400)]&&_0x3b15f1[_0x5b2bf6(0x4a8)]([_0x4f8e2c,{'useClass':_0xc3d60c}]),((_0x23bd41=this[_0x5b2bf6(0x3da)])==null?void 0x0:_0x23bd41['collaborationUniverTypes'])==null||this[_0x5b2bf6(0x3da)]['collaborationUniverTypes']['includes'](_0x40aff1[_0x5b2bf6(0x1ff)][_0x5b2bf6(0x309)])?_0x3b15f1[_0x5b2bf6(0x4a8)]([_0x49a7f8]):this[_0x5b2bf6(0x3da)]['collaborationUniverTypes'][_0x5b2bf6(0x181)](_0x40aff1[_0x5b2bf6(0x1ff)][_0x5b2bf6(0x254)])&&_0x3b15f1[_0x5b2bf6(0x4a8)]([_0x4c0e33]),_0x3b15f1=_0x40aff1[_0x5b2bf6(0x30e)](_0x3b15f1,(_0x3faf47=this[_0x5b2bf6(0x3da)])==null?void 0x0:_0x3faf47[_0x5b2bf6(0x31b)]),_0x3b15f1['forEach'](_0x3fd7b7=>_0x53c4c2[_0x5b2bf6(0x3ce)](_0x3fd7b7)),_0x53c4c2['get'](_0x12f0de[_0x5b2bf6(0x36e)])[_0x5b2bf6(0x19d)]({'priority':0x14,'interceptor':_0x53c4c2['invoke'](_0x12f0de[_0x5b2bf6(0x38f)],{'maxParallel':0x6})}),this[_0x5b2bf6(0x43a)]();}[_0x50a247(0x43a)](){const _0x163d1a=_0x50a247;var _0xa12dde,_0x3ab6bd;(_0xa12dde=this[_0x163d1a(0x3da)])!=null&&_0xa12dde[_0x163d1a(0x3d3)]||this[_0x163d1a(0x401)][_0x163d1a(0x17e)](_0x5bd0fe[_0x163d1a(0x262)])[_0x163d1a(0x2bf)](),(_0x3ab6bd=this['_config'])!=null&&_0x3ab6bd[_0x163d1a(0x4ae)]&&this[_0x163d1a(0x401)][_0x163d1a(0x17e)](_0x1fe3bf);}},_0x22b1a2(_0x2e1c24,'pluginName',_0x49a62f),_0x2e1c24),_0x5bd0fe[_0x50a247(0x157)]=_0x5d2b24([_0x455018(0x1,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x455018(0x2,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x34a)]))],_0x5bd0fe[_0x50a247(0x157)]),_0x5bd0fe[_0x50a247(0x341)]=_0x1c96e6,_0x5bd0fe[_0x50a247(0x23f)]=_0x5ab995,_0x5bd0fe[_0x50a247(0x4a7)]=_0x2dad21,_0x5bd0fe[_0x50a247(0x177)]=_0x90e5a,_0x5bd0fe[_0x50a247(0x2ab)]=_0x4af75e,_0x5bd0fe[_0x50a247(0x16c)]=_0x998910,_0x5bd0fe['ICollaborationSocketService']=_0x2196f2,_0x5bd0fe[_0x50a247(0x3aa)]=_0x2f336e,_0x5bd0fe[_0x50a247(0x1bd)]=_0x1e91d6,_0x5bd0fe['LOGIN_URL_KEY']=_0x32de45,_0x5bd0fe[_0x50a247(0x328)]=_0x275aff,_0x5bd0fe[_0x50a247(0x206)]=_0x4ebe18,_0x5bd0fe['SessionStatus']=_0x2d7bdc,_0x5bd0fe[_0x50a247(0x4d8)]=_0x4be034,_0x5bd0fe[_0x50a247(0x23b)]=_0x22048b,_0x5bd0fe[_0x50a247(0x34c)]=_0xf6958b,Object['defineProperty'](_0x5bd0fe,Symbol['toStringTag'],{'value':_0x50a247(0x46c)});}));
|