@univerjs-pro/collaboration-client 0.2.11 → 0.2.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.
Files changed (29) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/locale/en-US.json +5 -0
  4. package/lib/locale/ru-RU.json +5 -0
  5. package/lib/locale/vi-VN.json +5 -0
  6. package/lib/locale/zh-CN.json +11 -6
  7. package/lib/locale/zh-TW.json +5 -0
  8. package/lib/types/config/config.d.ts +1 -1
  9. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -1
  10. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -1
  11. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -1
  12. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -9
  13. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +87 -0
  14. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -2
  15. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +4 -88
  16. package/lib/types/controllers/config.schema.d.ts +5 -0
  17. package/lib/types/controllers/telemetry.d.ts +11 -0
  18. package/lib/types/index.d.ts +4 -3
  19. package/lib/types/locale/zh-CN.d.ts +5 -0
  20. package/lib/types/plugin.d.ts +3 -2
  21. package/lib/types/services/collaboration-session/collaboration-session.d.ts +59 -0
  22. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +16 -58
  23. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +3 -1
  24. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +3 -2
  25. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
  26. package/lib/types/services/socket/collaboration-socket.service.d.ts +5 -5
  27. package/lib/types/services/url/url.service.d.ts +1 -1
  28. package/lib/umd/index.js +1 -1
  29. package/package.json +36 -31
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x35a8(){const _0x69e97b=['onStarting','ws://127.0.0.1:8000/universer-api/comb/connect','parse','serializeDocRange','rev','src','getCurrent','hasOwnProperty','_localStorageService','_onMessage','_timeoutTimer','_ws','_startDocCollabCursor','filter','_collaborationController','INGEST','_acknowledgedAwaitingChangeset','getOwnPropertySymbols','objectActions','permission.content','onTransformIME','getCurrentUnitForType','title','putCollaborators','updatePermissionPoint','debounceTime','assign','_init','JOINING','combineLatest','href','_createHandler','_name','headers','objectID','SEND_CHANGESET_TIMEOUT','eventID','COLLAB_WEB_SOCKET_URL_KEY','loadDoc','_startSheetCollabCursor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','m2Prime','jiqing500','setTimeout','unit','stringify','CollaborationSessionService','_unlockTransition','WebSocketService','_onCursorDelete','none','@univerjs/design','compose','DataLoaderController','SYNCED','LIVESHARE_REQUEST_HOST','svg','LICENSE_IMPORT_SIZE_EXCEEDED','_onFetchMissResult','@univerjs-pro/collaboration','_initStatusComponent','&assign=','_clearCollaborationTimeoutTimer','_docSkeletonManagerService','startRow','indexOf','merge','SEND_CHANGESET_TIMEOUT_KEY','event$','LICENSE_EXPORT_SIZE_EXCEEDED','3016sHIbti','collaboration.closeRoom','_commentUpdate$','_collaborationSessionService','setShapeProps','forEach','_refRangeService','blue400','complete','getInterceptPoints','pending','@univerjs/docs','@univerjs/sheets-ui','_remoteChangesetQueue','_event$','@univerjs/drawing','transformIMECache','saveSheetBlock','_scheduleSaving','roles','_drawTextRange','enableAuthServer','getAncestorScale','BASE64','userID','includes','@univerjs/ui','handleInsertRow','className','_status$','SNAPSHOT_HAS_BEEN_REMOVED','_startCollaboration','onlineStatusTitle','_textBubble','/fetchmissing?from=','registerRefRange','backgroundColor','from','UniverCollaboration','close$','c1Prime','Ready','_sessions','_onCombEvent','UNIVER_PROJECT','CHANGESET_REJ','shareReplay','_http','_sendHeartbeatTimer','displayName','@univerjs/sheets','collab-text-anchor-','create','_logService','_range','_state$','on-line-single','CONFLICT','_drawRectRange','_replayCachedMutations','SheetCollabCursorShape','permissionRejEvent','ColorKit','error','interceptor','IMEInputManagerService','Vector2','clearInterval','forwardRef','isInternalEditorID','toStringTag','listCollaborators','black','setCurrentUser','initWorkbookPermissionChange','CollaborationSession','_permissionService','USERS_LEAVE','_docTransformIMECacheService','currentColor','close','unitId\x20is\x20not\x20found','CompressMutationService','SHOULD_CLOSE_CONN','Steady','getValue','map','clipPath','_schedule','{fileID}','target','body','_snapshotService','PENDING','_drawAnchor','mapDocumentTypeToUniverType','size','updatePermissionObjEvent','slice','commentUpdateEvent','_loadSheet','isEditing','_handleHeartbeatEvent','TRANSFORM_CHANGE_OBSERVABLE_TYPE','code','/role','HTTPService','ACTIVE_UNIT_EVENT_CHANNEL','_selfUnitIDs','editingUnit','handleInsertRangeMoveRight','newValue','getUniverSheetInstance','updateOfflineData','FETCH_MISS','Error\x20on\x20receiving\x20event','_initResize','_checkMissing','_showConflictNotification','RemoveRowCommandId','closePath','onlineStatusIcon','onSendChangeset','Inject','_initStatusListener','_themeService','fillText','transformChangesets','InsertSheetMutation','currentSkeleton$','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','responseType','_collabCursorState$','labelPosition','icon','syncEditingCollabCursor','OnLineSingle','getCurrentRevForDocument','SnapshotServerOverHTTPService','LocalUndoRedoService','onTransformSelections','unsubscribe','MessageType','unshift','_socketReady','HttpImport','toggleOffline','_assignedColors','_getAPIPrefix','DisposableCollection','_clearHeartbeatTimer','session.room-full','_roomMembers$','fetching\x20missing\x20changesets\x20from\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','HEARTBEAT_TIMEOUT_KEY','_fetchMissChangesets','loadOfflineData','/new_changes','_getSheetObject','fill','Injector','csRejEvent','COLORS','_handleLeaveEvent','onMissedChangesetFetched','TEXT_RANGE_LAYER_INDEX','serializeCombRequest','getCollabCursors$','liveShareNewHost','clear','_retryCount','trim','_onRefRangeChange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','defineProperty','failed\x20to\x20apply\x20missed\x20changesets!','getMergeData','objectType','debounce','_userManagerService','IConfigService','toRgbString','getConfig','auth.needGotoLoginAlert','LIVESHARE_TERMINATE','parseChangesetToProtocol','uni.network.url-service','_handleHover','deserializeRangeWithSheet','Rect','_hovered','isTransformMutationsWithChangesetSuccess','baseRev','values','[CollaborationUndoRedoService]','_onConnectionOpen','_getLoginPath','_handleJoinEvent','onRemoteChangeset','init','COLLAB_SUBMIT_CHANGESET_URL','list','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ranges','image/gif','actions','_revisionService','some','m1Prime','unitId','_getUploadFileURL','_sheetSkeletonManagerService','getRoom','_setupSubUnitSync','getSheetObject','method','_incrementRevisionNumber','HEARTBEAT_INTERVAL_KEY','ImageSourceType','/object','history','addImageSourceCache','SnapshotService','_getSaveTimeout','[CollaborationEntity]','reverse','UUID','catch','2856aVobzh','conflict.title','path','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_transformRemoteChangesetByIMECache','_univerInstanceService','_updateURLWithCurrentState','purple300','_scheduleTimestamp','snapshot','_initCommandExecutedListener','_anchor','RegularPolygon','MUTATION','[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.','TOO_MANY_REQUESTS','defIds','min','_clearLocalCache','joinEvent','column','on-line-single_clip0_910_349','getUnitOnRev','collabStatus.notCollab','getCurrentSelections','fetchMissingChangesets','unknown','IBeforeCloseService','_waitForHeartbeatResponse','sheetId','LIVESHARE_FETCH_OPERATIONS','OffLineSingle','offline','red300','onTransformRemoteChangesetByIMECache','_scene','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','IPermissionService','&source=','getMemberID','ALREADY_EXISTS','requireSession','onCommentUpdate','UniverRpc','registerRenderModule','_getCtorByUniverType','_onConnectionFailed','div','synced','permission.title','Optional','_HTTPService','getRelativeToViewportCoord','_memberService','saveImage','UniverIcon','_messageService','collab-text-range-','enableOfflineEditing','disableLocalCache','IRenderManagerService','DocStateChangeManagerService','getVpScrollXYInfoByPosToVp','ThresholdInterceptorFactory','urlChange$','colorChannel1','getUnitStatus$','onlyLocal','LifecycleStages','[CollaborationState]:\x20apply\x20error!','subunit','_onUserLeave','AuthzIoHttpService','IContextService','UNIVER_SLIDE','_cursorShapes','UniverSheets','width','awaitingChangeset','ILogService','sessionStatus','Undefined','_scheduleReconnection','transformUndoRedo','updateCursorEvent','loadSheet','gold400','/universer-api/file/{fileID}/sign-url','attrs','UPDATE_PERMISSION_OBJ','ICollaborationSocketService','COMPRESS_MUTATION_SEND','pauseCollaboration','isTransformMutationFailure','getActiveSheet','connectInjector','_clearOtherTimers','connection\x20error','Starting','_disabled','cursorInfo$','getFocusedUnit','LocaleService','beginPath','_shapes','getParam','onStateChange','@univerjs/network','debug','collabStatus.offline','_updateState','drawWith','_hover','univer-online','getSheetId','DesktopCollaborationStatusDisplayController','UniverCollaborationClient','UniverNetwork','throttleTime','_session','getCollabEntity$','_awaitingChangeset','_members','UniverDrawing','newCsEvent','round','1em','_pendingMutations','_transformUndoredo','symbol','concatMap','HEARTBEAT','post','_getSignURL','current','url(#$1','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getViewport','saveChangeset','switchMap','reduce','_isPermissionRej','[DataLoaderController]','registerComponent','_rescheduleHeartbeatEvent','univer-online-status-icon','0\x200\x2016\x2016','isActive','_clearRedo','handleMoveRange','message$','_localeService','YUUMI_URL_COL_OUT_OF_RANGE','SetSelectionsOperation','[SyncedState]:\x20received\x20rejection.','textRanges','lineTo','_sendHeartbeat','_change$','activeSheet$','takeUntil','_singleActiveUnitService','_updateLocalCache','object','_collaborationPaused','_render','EffectRefRangId','_localCacheService','UnitSnapshot','_decreaseWaiting','getUnitType','listRoles','INVALID_ARGUMENT','extend','socket\x20close','_urlService','_getScale','commentUpdate$','deleteCollaborator','JSONX','_toggleOnline','ICommandService','ITransformService','getCurrentUser','PERMISSION_REJ','not_collab','_backgroundColor','CONNECTOR_DATA_TOO_LARGE','@univerjs/core','getResourcesRequest','_scheduleHeartbeat','contains','_waitCount','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collabCursorController','_type','status','liveShareOperation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LOGIN_URL_KEY','\x0aAfter:\x20','distinctUntilChanged','registerBeforeClose','_colorIndex','fromEventSubject','_sendingTimer','dispose$','ImageUploadStatusType','_lockTransition','collaboration.single-unit.warning','image/jpeg','file','fromCollab','push','ERROR_EXCEED_SIZE','INotificationService','update','8500fCyxep','BuiltInUIPart','univer-pro.collaboration-client.single-active-unit-service','addObject','subscribeEvent','AWAITING_WITH_PENDING','state','_entityInit$','selections','_commandService','Error','/-/object/list','HEADER_MENU','then','APPLY_PERMISSION_DENIED','add','APPLY_REJECT','createElement','useRef','selection','Plugin','focused$','_hideTimer','idSuffix','_getUndoStack','font','IDLE','fillStyle','collabStatus.conflict','removeParam','createSocket','_onLocalMutation','AUTHZ_URL_KEY','split','_transformUndoRedoStack','OnLifecycle','getColor','UniverUi','HEARTBEAT_INTERVAL','rxjs','json','_getRedoStack','/universer-api/oidc/authpage','[CollaborationSessionService]','_executeRemoteChangeset','_sheetTransformSelectionsService','createIdentifier','confirm','@univerjs/engine-formula','COMPRESS_MUTATION_APPLY','RETRY_CONNECTING_INTERVAL','next','open$','_registerDependencies','USERS_ENTER','_httpService','APPLY_REVISION_CONFILICT','cmd','HttpExport','getUndoRedoMutationParamsCache','row','verdancy600','univer-online-status','text','_docSyncEditingCollabCursorService','_applyRemoteChangeset','_registerRenderDependencies','788358FHKemo','exports','getOwnPropertyDescriptor','show','_docStateChangeManagerService','_state','url(#on-line-single_clip0_910_349)','hide','transformSelections','_cursorInfo$','_updateLocalCursor','transformRemoteChangeset','b64DecodeUnicode','_socket','getSheetBlock','YUUMI_UNABLE_LOAD_URL','_color','pipe','onSyncEditingCollabCursor','awaiting_with_pending','_setupBeforeClosingHandler','[CollaborationSession]','max','startsWith','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]','unit-cache-','endRow','transformMutationsWithChangeset','findNodePositionByCharIndex','InsertRangeMoveDownCommandId','changesets','JOIN','ThemeService','_unitID','UniverCollaborationClientPlugin','_cursor','UNRECOGNIZED','SheetCollaborationEntity','mutations','memberID','mapTo','/universer-api/authz','appendMutation','collabStatus.synced','createCollaborator','_heartbeatTimer','univer-offline','NOT_COLLAB','NEW_CHANGESETS','_config','ISnapshotServerService','UnitEmbedded','status$','collaboratorID','/rev/','XHRHTTPImplementation','BehaviorSubject','InsertColCommandId','IRemoteInstanceService','tag','function','location','_entities','defs','MSG_FOR_ERROR','_cursors','CHANGESET_ACK','getUnitId','NO_OTHER_CLIENTS_EDITING','length','use','_undoRedoService','hovered','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','c2Prime','IUIPartsService','LEAVE','CollaborationSocketService','_socketService','onRemoteRej','restore','updateMember','reject','getCellPositionByOffset','_id','_getAPIPrefixPath','IImageIoService','sheets','M0\x200H16V16H0z','string','toDisposable','isArray','_substituteRedoStack','LIVESHARE_NEW_HOST','leaveEvent','UNIVER_SHEET','CommandType','RemoveColCommandId','subUnitId','getSheetBySheetId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onRemoteChangeset','toggleOnline','range','replaceTextRanges','image/png','closeSession','getCoordByCell','_getMergeRange','_removeRoom','online','Warning','getItem','_onUserJoin','_initCloseConn','find','engine','has','_scheduleClearOtherTimer','put','sessionStatus$','amd','YUUMI_RATE_OVER_LIMIT','IAuthzIoService','_saveCache','url','readAsDataURL','measureText','getDocRanges','triggerDblclick','POST','objects','SheetPermissionInitController','[PendingState]:\x20received\x20acknowledgement.','asObservable','/allowed','save\x20fail\x20reason\x20is\x20','conflict','csAckEvent','getUnhiddenWorksheets','_clearUndo','onMouseMove','searchParams','ERROR_IMAGE_TYPE','moveTo','unitID','roomInfos','_uiPartsService','ERROR_IMAGE','onRemoteAck','params','SetDocZoomRatioOperation','_collabSessionService','subscribe','unload','bottom','setParam','UNKNOWN_CODE','UNIVER_COLLABORATION_CLIENT_PLUGIN','UNIVER_DOC','localeService','getWorkbookSelections','378955nHZsSQ','_createInitialState','HEARTBEAT_TIMEOUT','UNKNOWN_CMD','_updateCollabCursors','disposeWithMe','SheetSkeletonManagerService','apply','_joinRoom','ImageIoService','handleDeleteRangeMoveLeft','image/bmp','handleIRemoveCol','7518960MJdFbN','_disableEditing','save','#fff','934493XTecdH','type','66YprRmy','currentTheme$','_commentService','/unit/','1443LgZnrJ','IUniverInstanceService','[PendingState]:\x20received\x20rejection.','univerjs-icon\x20univerjs-icon-','_context','entries','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CHANGESET_REVISION_CONFILICT','session.collaboration-timeout','pushState','createInstance','textEncoder','fillRule','getTypeOfUnitAdded$','Univer','joinRsp','Disposable','_substituteUndoStack','...','lodash','UniverEngineRender','_toggleOffline','setItem','_socketMessageSubscription','OTHER_CLIENTS_EDITING','SUCCUSS','FileId','toString','_transformPreviousActiveRange','SUBMIT_CHANGESET','NOT_FOUND','withCredentials','editing\x20status\x20changed\x20to','allowed','_unitOnClients','deserializeToCombResponse','handleDeleteRangeMoveUp','top','RETRY_CONNECTING_MAX_COUNT','fetchThroughInterceptors','onPointerLeave$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','LICENSE_MAX_UNITS_EXCEEDED','session.will-retry','InsertRangeMoveRightCommandId','UniverInstanceType','HTTPRequest','collaboration-client.offline-data-not-saved','onCommandExecuted','_createSocket','exhaustSavingTask','url(#off-line-single_clip0_910_343)','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchorDot','_transformService','_submitChangeset','UNIVER_UNKNOWN','incrementRevForDocument','_queuedRemoteChangesets','CollaborationStatusDisplay','_removeCollabCursors','propertyIsEnumerable','get','/-/object/-/batch_allowed','clsx','7432gHrOYB','_refreshCollabCursors','_draw','height','children','storage','FromArray','_exhaustRemoteChangesetQueue','popstate','INTERNAL_ERROR','RxDisposable','encodeURIComponent','clearTimeout','_initModules','SNAPSHOT_URL_KEY','_onRemoteRejected','RECV','_redoStacks','fetch_missing','Workbook','getTypeOfUnitDisposed$','_removeClearOtherTimer','concat','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','_imageSourceCache','getMember','translate(.97)','color','_transformIMECache','FETCH_MISSING','_onCursorUpdate','LocalCacheService','cursorInfo','getSkeleton','RefRangeService','data','_transformStack','CollaborationController','_saveTaskMap','UPDATE_CURSOR','_compressMutationService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','transformMutation','RevisionService','UniverDesign','_transitionLocked','UNDEFINED','_tryEnsureSocket','_getCurrentRevision','_handler','operators','_sessionStatus$','arc','onlineStatus','_injector','replaceState','_unitStatus','_getSnapshotAPIPrefix','_replaceFileID','_retryConnectingTimer','_initMergeInterceptor','react','saveSnapshot','_syncEditingCollabCursorService','pluginName','collabCursorState$','isValidRectRange','socketService','delay','routeKey','_transformSelections','WorkbookEditablePermission','_online','socket\x20open.','isTransformChangesetsSuccess','FAIL','_clearTimeoutTimer','/collaborator','_labelPosition','_getSendChangesetTimeout','getCollabEntity','\x20to\x20','NodePositionConvertToRectRange','addEventListener','doc.mutation.rich-text-editing','CommentService','UNAUTHENTICATED','call','_updateSubUnitFromURLParams','_createInitialStateImpl','getOffsetConfig','_notificationService','_undoStacks','HELLO','prototype','parseProtocolChangeset','refreshPermission','collaborators','set','Subject','transformStack\x20failed!','DependentOn','IURLService','name','PSEUDO_FETCH_MISSING_RESULT','all','_onRemoteACK','_socket$','SheetsSelectionsService','send','[CollaborationSessionService]:\x20socket\x20error','isPermissionRej','off-line-single_clip0_910_343','_docTransformSelectionsService','LIVESHARE_OPERATION','delete','collaMsg','_loadDoc','/object/','_roomMembers','flatMap','roomMembers','_onConflict','session','?size=','lodash/debounce','9691sDsMXj','/universer-api/snapshot','CollaborationEvent','batchAllowed','0\x200\x2017\x2016','originalMeta','SetWorksheetActivateCommand','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','VIEWPORT_KEY','IUndoRedoService','RichTextEditingMutation','generateRandomId','_ensureSubject','_renderManagerService','_snapshotServerService','replace','fromEvent','executeCommand','startColumn','useObservable','_eventUnsubscribe','onPointerEnter$','resourceIDs','_handleEvent','action','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','xlink:href','ONLINE','_cachedData','image/jpg','&to=','Shape','DeleteRangeMoveLeftCommandId','VIEW_MAIN','SessionStatus','@univerjs/rpc','makeDirty','OFFLINE','UniverEngineFormula','getImageSourceCache','IMessageService','MergeInterceptorFactory','_updateStatus','SNAPSHOT_SERVER_URL_KEY','registerHTTPInterceptor','_send','take','assignAColorForMemberID','_configService','state$','_collaborationTimeoutTimer','error$','getRangePointData','Tools','dispose','result','resend','_initUnitPermissionChange','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20received\x20changeset.','resolve','_onRecvEvent','deepClone','removeMember','_lastPointer','_onJoinRoomEvent','AWAITING','NodePositionConvertToCursor','requestParams','setActiveRange','_clearScheduledTask','[OfflineState]:\x20received\x20acknowledgement.','onPointerMove$','_colorAssignService'];_0x35a8=function(){return _0x69e97b;};return _0x35a8();}function _0x41fb(_0x38ffd3,_0x30735d){const _0x35a872=_0x35a8();return _0x41fb=function(_0x41fb05,_0x13f88a){_0x41fb05=_0x41fb05-0x1f1;let _0x1fb893=_0x35a872[_0x41fb05];return _0x1fb893;},_0x41fb(_0x38ffd3,_0x30735d);}(function(_0x42b2d1,_0x341e2f){const _0x2d7596=_0x41fb,_0x25d506=_0x42b2d1();while(!![]){try{const _0x373a15=-parseInt(_0x2d7596(0x375))/0x1+-parseInt(_0x2d7596(0x2c0))/0x2+-parseInt(_0x2d7596(0x37b))/0x3*(-parseInt(_0x2d7596(0x3bc))/0x4)+-parseInt(_0x2d7596(0x364))/0x5*(parseInt(_0x2d7596(0x377))/0x6)+-parseInt(_0x2d7596(0x5b2))/0x7*(-parseInt(_0x2d7596(0x4cc))/0x8)+parseInt(_0x2d7596(0x371))/0x9+-parseInt(_0x2d7596(0x27d))/0xa*(-parseInt(_0x2d7596(0x43c))/0xb);if(_0x373a15===_0x341e2f)break;else _0x25d506['push'](_0x25d506['shift']());}catch(_0x4389be){_0x25d506['push'](_0x25d506['shift']());}}}(_0x35a8,0x729b7),function(_0x3550a3,_0x1c5195){const _0x1168f7=_0x41fb;typeof exports==_0x1168f7(0x247)&&typeof module<'u'?_0x1c5195(exports,require('@univerjs/core'),require('@univerjs/sheets'),require(_0x1168f7(0x4b9)),require(_0x1168f7(0x4e6)),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators'),require(_0x1168f7(0x4d7)),require('@univerjs/network'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require(_0x1168f7(0x2ad)),require(_0x1168f7(0x43b)),require('@univerjs/sheets-ui'),require(_0x1168f7(0x3fb)),require(_0x1168f7(0x3bb)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x1168f7(0x33b)]?define([_0x1168f7(0x2c1),_0x1168f7(0x260),_0x1168f7(0x4fe),_0x1168f7(0x4b9),'@univerjs/ui',_0x1168f7(0x4c1),_0x1168f7(0x2a4),'rxjs/operators',_0x1168f7(0x4d7),_0x1168f7(0x20f),_0x1168f7(0x4db),'@univerjs/engine-render','@univerjs/engine-formula',_0x1168f7(0x43b),_0x1168f7(0x4d8),'react',_0x1168f7(0x3bb),_0x1168f7(0x45f)],_0x1c5195):(_0x3550a3=typeof globalThis<'u'?globalThis:_0x3550a3||self,_0x1c5195(_0x3550a3[_0x1168f7(0x218)]={},_0x3550a3['UniverCore'],_0x3550a3[_0x1168f7(0x5fe)],_0x3550a3[_0x1168f7(0x3ea)],_0x3550a3[_0x1168f7(0x2a2)],_0x3550a3[_0x1168f7(0x4f2)],_0x3550a3[_0x1168f7(0x2a4)],_0x3550a3[_0x1168f7(0x2a4)][_0x1168f7(0x3f0)],_0x3550a3['UniverDocs'],_0x3550a3[_0x1168f7(0x219)],_0x3550a3[_0x1168f7(0x21f)],_0x3550a3[_0x1168f7(0x38f)],_0x3550a3[_0x1168f7(0x462)],_0x3550a3[_0x1168f7(0x38e)][_0x1168f7(0x580)],_0x3550a3['UniverSheetsUi'],_0x3550a3['React'],_0x3550a3[_0x1168f7(0x3bb)],_0x3550a3[_0x1168f7(0x5dd)]));}(this,function(_0x2c3354,_0x2015b3,_0x3d1b6a,_0x54ac63,_0x44b766,_0x106736,_0x345abe,_0x2cc613,_0xbcf55e,_0x485f8b,_0x17c816,_0x572a63,_0x3096c0,_0x533449,_0x467ed8,_0x100763,_0x55b2c5,_0x43c42f){'use strict';const _0x3b3960=_0x41fb;var _0x2ef5ef=Object['defineProperty'],_0x2777ef=(_0x3a2c59,_0x13e557,_0x4639e7)=>_0x13e557 in _0x3a2c59?_0x2ef5ef(_0x3a2c59,_0x13e557,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4639e7}):_0x3a2c59[_0x13e557]=_0x4639e7,_0x385cfe=(_0x5722a4,_0x1ac53a,_0x314025)=>_0x2777ef(_0x5722a4,typeof _0x1ac53a!=_0x3b3960(0x225)?_0x1ac53a+'':_0x1ac53a,_0x314025);const _0x2c5950=_0x3b3960(0x467),_0x58a23f=_0x3b3960(0x43d),_0x5648aa=_0x3b3960(0x3ca),_0x5cb8bb=_0x3b3960(0x4a9),_0x332c44='COLLAB_WEB_SOCKET_URL',_0x55e528=_0x3b3960(0x487),_0x879d7e=_0x3b3960(0x2a3),_0x816b9c=_0x3b3960(0x366),_0x11fd51=_0x3b3960(0x2af),_0xb1acb=_0x3b3960(0x3a1),_0x3f1ca0='LOCAL_CACHE_INTERVAL',_0x3c7827=_0x3b3960(0x596),_0x38f1bf='/universer-api/comb',_0x4f5e36=_0x3b3960(0x26b),_0x1df3cc=_0x3b3960(0x2a7);var _0x48be91=(_0x5d546e=>(_0x5d546e[_0x5d546e[_0x3b3960(0x3ec)]=0x0]='UNDEFINED',_0x5d546e[_0x5d546e['OK']=0x1]='OK',_0x5d546e[_0x5d546e[_0x3b3960(0x3c5)]=0x2]=_0x3b3960(0x3c5),_0x5d546e[_0x5d546e['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x5d546e[_0x5d546e[_0x3b3960(0x399)]=0x4]=_0x3b3960(0x399),_0x5d546e[_0x5d546e[_0x3b3960(0x414)]=0x5]=_0x3b3960(0x414),_0x5d546e[_0x5d546e[_0x3b3960(0x5da)]=0x6]='ALREADY_EXISTS',_0x5d546e[_0x5d546e[_0x3b3960(0x250)]=0x7]='INVALID_ARGUMENT',_0x5d546e[_0x5d546e[_0x3b3960(0x5c1)]=0x8]=_0x3b3960(0x5c1),_0x5d546e[_0x5d546e[_0x3b3960(0x54e)]=0x9]=_0x3b3960(0x54e),_0x5d546e[_0x5d546e[_0x3b3960(0x382)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5d546e[_0x5d546e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b3960(0x54f),_0x5d546e[_0x5d546e[_0x3b3960(0x4ea)]=0x1772]=_0x3b3960(0x4ea),_0x5d546e[_0x5d546e['APPLY_REJECT']=0x1b59]=_0x3b3960(0x28d),_0x5d546e[_0x5d546e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5d546e[_0x5d546e[_0x3b3960(0x2b5)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5d546e[_0x5d546e[_0x3b3960(0x28b)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5d546e[_0x5d546e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3b3960(0x25f),_0x5d546e[_0x5d546e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b3960(0x3a5),_0x5d546e[_0x5d546e[_0x3b3960(0x22c)]=0x232a]=_0x3b3960(0x22c),_0x5d546e[_0x5d546e[_0x3b3960(0x4bf)]=0x232b]=_0x3b3960(0x4bf),_0x5d546e[_0x5d546e[_0x3b3960(0x4cb)]=0x232c]=_0x3b3960(0x4cb),_0x5d546e[_0x5d546e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5d546e[_0x5d546e[_0x3b3960(0x2cf)]=0x2711]=_0x3b3960(0x2cf),_0x5d546e[_0x5d546e[_0x3b3960(0x23c)]=0x2712]=_0x3b3960(0x23c),_0x5d546e[_0x5d546e[_0x3b3960(0x33c)]=0x2713]=_0x3b3960(0x33c),_0x5d546e[_0x5d546e[_0x3b3960(0x30b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5d546e[_0x5d546e[_0x3b3960(0x2e5)]=-0x1]=_0x3b3960(0x2e5),_0x5d546e))(_0x48be91||{}),_0x32a37d=(_0x3d5e51=>(_0x3d5e51[_0x3d5e51['UNIVER_UNKNOWN']=0x0]=_0x3b3960(0x3b3),_0x3d5e51[_0x3d5e51['UNIVER_DOC']=0x1]=_0x3b3960(0x361),_0x3d5e51[_0x3d5e51['UNIVER_SHEET']=0x2]=_0x3b3960(0x321),_0x3d5e51[_0x3d5e51[_0x3b3960(0x5fc)]=0x3]=_0x3b3960(0x5fc),_0x3d5e51[_0x3d5e51['UNIVER_PROJECT']=0x4]=_0x3b3960(0x4f8),_0x3d5e51[_0x3d5e51[_0x3b3960(0x2e5)]=-0x1]=_0x3b3960(0x2e5),_0x3d5e51))(_0x32a37d||{}),_0x52c13b=(_0x1a8c63=>(_0x1a8c63[_0x1a8c63[_0x3b3960(0x367)]=0x0]='UNKNOWN_CMD',_0x1a8c63[_0x1a8c63['HELLO']=0x1]=_0x3b3960(0x41b),_0x1a8c63[_0x1a8c63[_0x3b3960(0x2e0)]=0x2]='JOIN',_0x1a8c63[_0x1a8c63['LEAVE']=0x3]=_0x3b3960(0x30e),_0x1a8c63[_0x1a8c63['INGEST']=0x4]=_0x3b3960(0x495),_0x1a8c63[_0x1a8c63[_0x3b3960(0x227)]=0x5]=_0x3b3960(0x227),_0x1a8c63[_0x1a8c63[_0x3b3960(0x3cc)]=0x6]='RECV',_0x1a8c63[_0x1a8c63['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1a8c63))(_0x52c13b||{}),_0x1a4aa5=(_0xc9ed68=>(_0xc9ed68[_0xc9ed68[_0x3b3960(0x35f)]=0x0]=_0x3b3960(0x35f),_0xc9ed68[_0xc9ed68['OK']=0x1]='OK',_0xc9ed68[_0xc9ed68[_0x3b3960(0x409)]=0x2]=_0x3b3960(0x409),_0xc9ed68[_0xc9ed68[_0x3b3960(0x2e5)]=-0x1]='UNRECOGNIZED',_0xc9ed68))(_0x1a4aa5||{}),_0x5d29eb=(_0x243b10=>(_0x243b10[_0x243b10[_0x3b3960(0x1f5)]=0x0]='Undefined',_0x243b10[_0x243b10[_0x3b3960(0x55e)]=0x1]=_0x3b3960(0x55e),_0x243b10[_0x243b10[_0x3b3960(0x2b7)]=0x2]=_0x3b3960(0x2b7),_0x243b10[_0x243b10[_0x3b3960(0x2f4)]=0x3]=_0x3b3960(0x2f4),_0x243b10[_0x243b10[_0x3b3960(0x24c)]=0x4]=_0x3b3960(0x24c),_0x243b10[_0x243b10['UNRECOGNIZED']=-0x1]=_0x3b3960(0x2e5),_0x243b10))(_0x5d29eb||{}),_0xf30dce=Object[_0x3b3960(0x57c)],_0x421ec5=Object[_0x3b3960(0x2c2)],_0x33b66c=(_0x2a233c,_0x53b85b,_0x371f60,_0x24502c)=>{const _0xdffae1=_0x3b3960;for(var _0x37cade=_0x24502c>0x1?void 0x0:_0x24502c?_0x421ec5(_0x53b85b,_0x371f60):_0x53b85b,_0x23cdb9=_0x2a233c[_0xdffae1(0x306)]-0x1,_0xdc36fd;_0x23cdb9>=0x0;_0x23cdb9--)(_0xdc36fd=_0x2a233c[_0x23cdb9])&&(_0x37cade=(_0x24502c?_0xdc36fd(_0x53b85b,_0x371f60,_0x37cade):_0xdc36fd(_0x37cade))||_0x37cade);return _0x24502c&&_0x37cade&&_0xf30dce(_0x53b85b,_0x371f60,_0x37cade),_0x37cade;},_0x1a1067=(_0x972612,_0x25fe23)=>(_0x5a56da,_0x557c6b)=>_0x25fe23(_0x5a56da,_0x557c6b,_0x972612);let _0x25752c=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x2afb1f,_0x2c3f5f){const _0xc9ab77=_0x3b3960;super(),_0x385cfe(this,'_roomMembers',new Map()),(this[_0xc9ab77(0x5b7)]=_0x2afb1f,this[_0xc9ab77(0x581)]=_0x2c3f5f,this[_0xc9ab77(0x369)](_0x2015b3[_0xc9ab77(0x31c)](_0x345abe[_0xc9ab77(0x4c8)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x321)])[_0xc9ab77(0x2d1)](_0x2cc613[_0xc9ab77(0x522)](_0x349564=>_0x349564['getUnitId']())),this[_0xc9ab77(0x5b7)][_0xc9ab77(0x3d0)](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x361)])[_0xc9ab77(0x2d1)](_0x2cc613[_0xc9ab77(0x522)](_0x3ae045=>_0x3ae045[_0xc9ab77(0x304)]())),this[_0xc9ab77(0x5b7)][_0xc9ab77(0x3d0)](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x5fc)])[_0xc9ab77(0x2d1)](_0x2cc613['map'](_0x568993=>_0x568993['getUnitId']())))[_0xc9ab77(0x35b)](_0x4fa9b4=>this[_0xc9ab77(0x32f)](_0x4fa9b4)))));}[_0x3b3960(0x515)](_0x21271b){const _0x561ccc=_0x3b3960;this['_userManagerService'][_0x561ccc(0x515)](_0x21271b);}[_0x3b3960(0x25b)](){const _0x4b4817=_0x3b3960;return this[_0x4b4817(0x581)][_0x4b4817(0x25b)]();}[_0x3b3960(0x313)](_0x250e63,_0x3cb663){const _0x2317c8=_0x3b3960;let _0x3daf4b=this[_0x2317c8(0x435)][_0x2317c8(0x3b9)](_0x250e63);_0x3daf4b||(_0x3daf4b=new _0x23b80c(),this[_0x2317c8(0x435)][_0x2317c8(0x420)](_0x250e63,_0x3daf4b)),_0x3daf4b[_0x2317c8(0x313)](_0x3cb663);}[_0x3b3960(0x47b)](_0x2ddff5,_0x4bc053){const _0xae9904=_0x3b3960,_0x169280=this[_0xae9904(0x435)][_0xae9904(0x3b9)](_0x2ddff5);_0x169280&&_0x169280[_0xae9904(0x47b)](_0x4bc053);}[_0x3b3960(0x5a2)](_0x9cf32d){const _0x44e0b4=_0x3b3960;return this[_0x44e0b4(0x435)][_0x44e0b4(0x3b9)](_0x9cf32d);}[_0x3b3960(0x3d6)](_0x955c6b,_0x51daee){const _0x18a4f5=_0x3b3960,_0xd646f6=this[_0x18a4f5(0x435)][_0x18a4f5(0x3b9)](_0x955c6b);if(_0xd646f6)return _0xd646f6[_0x18a4f5(0x3d6)](_0x51daee);}[_0x3b3960(0x32f)](_0xb84a40){const _0x39e9d0=_0x3b3960,_0x53cbd1=this[_0x39e9d0(0x435)][_0x39e9d0(0x3b9)](_0xb84a40);_0x53cbd1&&(_0x53cbd1[_0x39e9d0(0x472)](),this[_0x39e9d0(0x435)]['delete'](_0xb84a40));}[_0x3b3960(0x472)](){const _0x567e65=_0x3b3960;this[_0x567e65(0x435)][_0x567e65(0x4d1)](_0x5988e2=>_0x5988e2[_0x567e65(0x472)]()),this[_0x567e65(0x435)]['clear']();}};_0x25752c=_0x33b66c([_0x1a1067(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x1a1067(0x1,_0x2015b3['Inject'](_0x2015b3['UserManagerService']))],_0x25752c);class _0x23b80c extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0xe0fe29=_0x3b3960;super(...arguments),_0x385cfe(this,_0xe0fe29(0x21e),new Map());}['dispose'](){const _0x527e04=_0x3b3960;this[_0x527e04(0x21e)][_0x527e04(0x577)]();}[_0x3b3960(0x313)](_0x4ad660){const _0x10867a=_0x3b3960;this[_0x10867a(0x21e)][_0x10867a(0x420)](_0x4ad660[_0x10867a(0x2e8)],_0x4ad660);}[_0x3b3960(0x47b)](_0x36e19a){const _0x172c77=_0x3b3960;this['_members'][_0x172c77(0x431)](_0x36e19a);}['getMember'](_0x35361b){const _0x34e436=_0x3b3960;return this[_0x34e436(0x21e)][_0x34e436(0x3b9)](_0x35361b);}}function _0x5040c3(_0x1dc420){const _0x53561a=_0x3b3960;var _0x429b64,_0x230381,_0x4f1581,_0xee867;const _0x20a9b3=_0x1dc420[_0x53561a(0x3e0)],_0x311d42=JSON[_0x53561a(0x488)](_0x20a9b3);switch(_0x311d42[_0x53561a(0x2b6)]){case _0x52c13b[_0x53561a(0x227)]:case _0x52c13b[_0x53561a(0x41b)]:{const _0x18781d=_0x311d42['infoRsp'];return{..._0x311d42,'data':_0x18781d,'cmd':_0x311d42[_0x53561a(0x2b6)]};}case _0x52c13b[_0x53561a(0x2e0)]:{const _0x520380=_0x311d42[_0x53561a(0x38a)];return{..._0x311d42,'data':_0x520380,'cmd':_0x311d42['cmd']};}case _0x52c13b[_0x53561a(0x3cc)]:{const _0x3f836a=_0x311d42[_0x53561a(0x432)];switch(_0x3f836a['eventID']){case _0x106736[_0x53561a(0x43e)][_0x53561a(0x25c)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x429b64=_0x3f836a[_0x53561a(0x509)])==null?void 0x0:_0x429b64['cs']},'cmd':_0x311d42['cmd']};case _0x106736['CollaborationEvent'][_0x53561a(0x303)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x230381=_0x3f836a[_0x53561a(0x34c)])==null?void 0x0:_0x230381['cs']},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x2f1)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x4f1581=_0x3f836a[_0x53561a(0x220)])==null?void 0x0:_0x4f1581['cs']},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x4f9)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0xee867=_0x3f836a[_0x53561a(0x56f)])==null?void 0x0:_0xee867['cs']},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x3e4)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x1f8)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736['CollaborationEvent'][_0x53561a(0x2b3)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x5c5)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['USERS_LEAVE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x320)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x31f)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x576)]},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)]['LIVESHARE_FETCH_OPERATIONS']:case _0x106736[_0x53561a(0x43e)][_0x53561a(0x430)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x269)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['LIVESHARE_TERMINATE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x576)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x301)]:return{..._0x311d42,'data':_0x3f836a,'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['COMMENT_UPDATE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x52f)]},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)]['UPDATE_PERMISSION_OBJ']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x52d)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736['CollaborationEvent'][_0x53561a(0x51f)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a['shouldCloseConn']},'cmd':_0x311d42['cmd']};default:return _0x311d42;}}default:return _0x311d42;}}function _0x5a449f(_0x259d17){const _0x401036=_0x3b3960;switch(_0x259d17['cmd']){case _0x52c13b[_0x401036(0x227)]:case _0x52c13b[_0x401036(0x41b)]:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17[_0x401036(0x2b6)],'routeKey':_0x259d17[_0x401036(0x403)]});case _0x52c13b['INGEST']:{let _0x48c038;switch(_0x259d17[_0x401036(0x3e0)][_0x401036(0x4aa)]){case _0x106736[_0x401036(0x43e)][_0x401036(0x3e4)]:{_0x48c038={'eventID':_0x106736['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x259d17['data'][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)]['USERS_LEAVE']:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x519)],'leaveEvent':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x2b3)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x2b3)],'joinEvent':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)]['LIVESHARE_NEW_HOST']:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x31f)],'liveShareNewHost':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x430)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x430)],'liveShareOperation':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x586)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x586)],'liveShareTerminate':_0x259d17['data'][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x4bd)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x4bd)],'liveShareRequestHost':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x5d0)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x5d0)]};break;}default:_0x48c038={'eventID':_0x259d17[_0x401036(0x3e0)][_0x401036(0x4aa)]};}return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17['cmd'],'routeKey':_0x259d17['routeKey'],'collaMsg':_0x48c038});}case _0x52c13b['JOIN']:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17['cmd'],'routeKey':_0x259d17[_0x401036(0x403)],'joinReq':_0x259d17[_0x401036(0x3e0)]});case _0x52c13b[_0x401036(0x30e)]:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17[_0x401036(0x2b6)],'routeKey':_0x259d17[_0x401036(0x403)],'leaveReq':_0x259d17[_0x401036(0x3e0)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0xef4f6b=Object['defineProperty'],_0x12515a=Object[_0x3b3960(0x2c2)],_0x11da3d=(_0x64a6db,_0x32f11d,_0x49d203,_0xe38ad7)=>{const _0x1d5cda=_0x3b3960;for(var _0x1cea5e=_0xe38ad7>0x1?void 0x0:_0xe38ad7?_0x12515a(_0x32f11d,_0x49d203):_0x32f11d,_0x10eba4=_0x64a6db[_0x1d5cda(0x306)]-0x1,_0x4df395;_0x10eba4>=0x0;_0x10eba4--)(_0x4df395=_0x64a6db[_0x10eba4])&&(_0x1cea5e=(_0xe38ad7?_0x4df395(_0x32f11d,_0x49d203,_0x1cea5e):_0x4df395(_0x1cea5e))||_0x1cea5e);return _0xe38ad7&&_0x1cea5e&&_0xef4f6b(_0x32f11d,_0x49d203,_0x1cea5e),_0x1cea5e;},_0x4eb1f1=(_0x732899,_0x29cdfc)=>(_0x3c69b0,_0x3ad534)=>_0x29cdfc(_0x3c69b0,_0x3ad534,_0x732899);const _0x1bd205=_0x2015b3['createIdentifier'](_0x3b3960(0x2d8));function _0x42ed5d(_0x25a30c,_0x12c8cc,_0x225256){const _0x360b01=_0x3b3960;return _0x25a30c+'/'+_0x12c8cc+_0x360b01(0x37a)+_0x225256+_0x360b01(0x56b);}_0x2c3354['CollaborationSocketService']=class{constructor(_0x1d4d5a,_0x394b06,_0xa5d022,_0x3c520e,_0x36a20a){const _0x2fd89b=_0x3b3960;this['_http']=_0x1d4d5a,this[_0x2fd89b(0x491)]=_0x394b06,this[_0x2fd89b(0x46c)]=_0xa5d022,this[_0x2fd89b(0x501)]=_0x3c520e,this[_0x2fd89b(0x44a)]=_0x36a20a;}[_0x3b3960(0x29b)](_0x471cbc){const _0x2b8fc6=_0x3b3960,_0xc6faf0=this[_0x2b8fc6(0x491)][_0x2b8fc6(0x29b)](_0x471cbc);if(!_0xc6faf0)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x6d368e=new _0x2015b3[(_0x2b8fc6(0x562))](),_0x30c477=new _0x345abe['Subject']();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3['toDisposable'](_0xc6faf0[_0x2b8fc6(0x4f3)][_0x2b8fc6(0x35b)](_0x5db61b=>_0x30c477[_0x2b8fc6(0x2b0)](_0x5db61b)))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x30c477[_0x2b8fc6(0x4d4)]()));const _0x1e1d75=new _0x345abe[(_0x2b8fc6(0x421))]();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3['toDisposable'](_0xc6faf0[_0x2b8fc6(0x46f)]['subscribe'](_0x8ad56e=>_0x1e1d75[_0x2b8fc6(0x2b0)](_0x8ad56e)))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x1e1d75[_0x2b8fc6(0x4d4)]()));const _0x4cd710=new _0x345abe['Subject']();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](_0xc6faf0[_0x2b8fc6(0x23a)][_0x2b8fc6(0x35b)](_0x1e35ae=>{const _0x2e041f=_0x2b8fc6,_0x4b9eb3=_0x5040c3(_0x1e35ae);_0x4cd710[_0x2e041f(0x2b0)](_0x4b9eb3);}))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x4cd710[_0x2b8fc6(0x4d4)]()));const _0x155322=()=>{const _0x65ea89=_0x2b8fc6;_0x1e1d75[_0x65ea89(0x2b0)](new Event(_0x65ea89(0x205))),_0x30c477[_0x65ea89(0x2b0)](new CloseEvent(_0x65ea89(0x205))),_0x499caa[_0x65ea89(0x51c)]();},_0x499caa={'memberID':'','close$':_0x30c477[_0x2b8fc6(0x348)](),'error$':_0x1e1d75[_0x2b8fc6(0x348)](),'open$':_0xc6faf0[_0x2b8fc6(0x2b1)],'message$':_0x4cd710[_0x2b8fc6(0x348)](),'send':_0x3345c2=>{const _0x474872=_0x2b8fc6;if(_0x3345c2['cmd']===_0x52c13b[_0x474872(0x495)]){if(_0x3345c2['data']['eventID']===_0x106736['CollaborationEvent'][_0x474872(0x398)]){this[_0x474872(0x3b2)](_0x499caa,_0x3345c2[_0x474872(0x3e0)])[_0x474872(0x5b1)](_0x3b2454=>{const _0x574035=_0x474872;this[_0x574035(0x501)][_0x574035(0x50b)](_0x3b2454),_0x155322();});return;}if(_0x3345c2[_0x474872(0x3e0)][_0x474872(0x4aa)]===_0x106736[_0x474872(0x43e)][_0x474872(0x3da)]){const _0x259ca3=_0x3345c2[_0x474872(0x3e0)];this[_0x474872(0x569)](_0x259ca3)[_0x474872(0x28a)](_0x148ed1=>{const _0x309f29=_0x474872;_0x4cd710[_0x309f29(0x2b0)]({'cmd':_0x52c13b[_0x309f29(0x3cc)],'code':_0x1a4aa5['OK'],'routeKey':_0x259ca3[_0x309f29(0x3e0)][_0x309f29(0x353)],'routeType':'','data':{'eventID':_0x106736[_0x309f29(0x43e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x148ed1}}});})[_0x474872(0x5b1)](_0x2215ac=>{const _0x54c8a3=_0x474872;this[_0x54c8a3(0x501)][_0x54c8a3(0x50b)](_0x2215ac),_0x155322();});return;}}_0xc6faf0['send'](_0x5a449f(_0x3345c2));},'close':()=>{const _0x3ecd3c=_0x2b8fc6;_0xc6faf0[_0x3ecd3c(0x51c)](),_0x6d368e['dispose']();}};return _0x499caa;}async[_0x3b3960(0x3b2)](_0x249623,_0xe3a4d9){const _0x337ffb=_0x3b3960;var _0xe06dc7;const {unitType:_0xa1cd0e,unitID:_0x46aa33,changeset:_0x3c89e7}=_0xe3a4d9[_0x337ffb(0x3e0)],_0x1653ab={'unitID':_0x46aa33,'memberID':_0x249623[_0x337ffb(0x2e8)],'type':_0xa1cd0e,'changeset':_0x106736[_0x337ffb(0x587)](_0x3c89e7)},_0x39d21a=_0x42ed5d((_0xe06dc7=this[_0x337ffb(0x46c)][_0x337ffb(0x584)](_0x3c7827))!=null?_0xe06dc7:_0x38f1bf,_0xa1cd0e,_0x46aa33);try{await this[_0x337ffb(0x4fb)]['post'](_0x39d21a,{'body':_0x1653ab});}catch(_0x20ac1c){throw this[_0x337ffb(0x501)][_0x337ffb(0x50b)](_0x337ffb(0x2d5),'submit\x20changeset\x20error!'),_0x20ac1c;}}async['_fetchMissChangesets'](_0x58b9f6){const _0x369f1e=_0x3b3960,{unitID:_0x2299b6,from:_0x41b6c2,to:_0x36a8b3,unitType:_0x2a7a07}=_0x58b9f6[_0x369f1e(0x3e0)];return(await this[_0x369f1e(0x44a)][_0x369f1e(0x5cb)]({'metadata':void 0x0},{'unitID':_0x2299b6,'type':_0x2a7a07,'from':_0x41b6c2,'to':_0x36a8b3}))[_0x369f1e(0x2df)];}},_0x2c3354[_0x3b3960(0x30f)]=_0x11da3d([_0x4eb1f1(0x0,_0x2015b3['Inject'](_0x485f8b['HTTPService'])),_0x4eb1f1(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b['WebSocketService'])),_0x4eb1f1(0x2,_0x2015b3[_0x3b3960(0x582)]),_0x4eb1f1(0x3,_0x2015b3[_0x3b3960(0x1f3)]),_0x4eb1f1(0x4,_0x106736[_0x3b3960(0x2f3)])],_0x2c3354['CollaborationSocketService']);class _0x3f4b4d{constructor(){const _0x31096c=_0x3b3960;_0x385cfe(this,_0x31096c(0x4ce),new _0x345abe[(_0x31096c(0x421))]()),_0x385cfe(this,_0x31096c(0x255),this[_0x31096c(0x4ce)][_0x31096c(0x348)]());}[_0x3b3960(0x5dc)](_0x5dafd2){this['_commentUpdate$']['next'](_0x5dafd2);}}var _0x54019f=Object['defineProperty'],_0x5d7009=Object[_0x3b3960(0x2c2)],_0x503bad=(_0x9ff261,_0x586e77,_0x213c16,_0x130302)=>{const _0x35f4c0=_0x3b3960;for(var _0x53ed7c=_0x130302>0x1?void 0x0:_0x130302?_0x5d7009(_0x586e77,_0x213c16):_0x586e77,_0x1e07b7=_0x9ff261[_0x35f4c0(0x306)]-0x1,_0x3810d8;_0x1e07b7>=0x0;_0x1e07b7--)(_0x3810d8=_0x9ff261[_0x1e07b7])&&(_0x53ed7c=(_0x130302?_0x3810d8(_0x586e77,_0x213c16,_0x53ed7c):_0x3810d8(_0x53ed7c))||_0x53ed7c);return _0x130302&&_0x53ed7c&&_0x54019f(_0x586e77,_0x213c16,_0x53ed7c),_0x53ed7c;},_0xa0f261=(_0x41fcdc,_0x1848f6)=>(_0x3a439b,_0x102982)=>_0x1848f6(_0x3a439b,_0x102982,_0x41fcdc),_0x510b8a=(_0xb10bbe=>(_0xb10bbe[_0xb10bbe[_0x3b3960(0x297)]=0x0]=_0x3b3960(0x297),_0xb10bbe[_0xb10bbe[_0x3b3960(0x4a2)]=0x1]=_0x3b3960(0x4a2),_0xb10bbe[_0xb10bbe['OFFLINE']=0x2]=_0x3b3960(0x461),_0xb10bbe[_0xb10bbe[_0x3b3960(0x457)]=0x3]='ONLINE',_0xb10bbe))(_0x510b8a||{});_0x2c3354[_0x3b3960(0x517)]=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x146e89,_0x3fe1a9,_0x2d11bb,_0x258316,_0x1c8463,_0x4a78a7,_0x5a1e7b,_0xfe1135,_0x4398e5){const _0x2b74e0=_0x3b3960;super(),_0x385cfe(this,_0x2b74e0(0x3f1),new _0x345abe[(_0x2b74e0(0x2f9))](0x0)),_0x385cfe(this,'sessionStatus$',this['_sessionStatus$']['asObservable']()),_0x385cfe(this,_0x2b74e0(0x4da),new _0x345abe[(_0x2b74e0(0x421))]()),_0x385cfe(this,_0x2b74e0(0x4ca),this['_event$'][_0x2b74e0(0x348)]()),_0x385cfe(this,_0x2b74e0(0x2cd)),_0x385cfe(this,_0x2b74e0(0x392)),_0x385cfe(this,_0x2b74e0(0x46e)),(this[_0x2b74e0(0x2e2)]=_0x146e89,this[_0x2b74e0(0x501)]=_0x2d11bb,this['_beforeCloseService']=_0x258316,this[_0x2b74e0(0x5ea)]=_0x1c8463,this[_0x2b74e0(0x46c)]=_0x4a78a7,this['_localeService']=_0x5a1e7b,this[_0x2b74e0(0x5e7)]=_0xfe1135,this[_0x2b74e0(0x379)]=_0x4398e5,_0x3fe1a9[_0x2b74e0(0x2d1)](_0x2cc613[_0x2b74e0(0x244)](this[_0x2b74e0(0x272)]))[_0x2b74e0(0x35b)](_0x438774=>{const _0x4a825c=_0x2b74e0;var _0x84e43;typeof _0x438774>'u'||(this[_0x4a825c(0x2cd)]=_0x438774,_0x438774?(this[_0x4a825c(0x36c)](_0x438774),this[_0x4a825c(0x392)]=this[_0x4a825c(0x2cd)]['message$'][_0x4a825c(0x35b)](_0x4bf8fb=>{const _0x210549=_0x4a825c;_0x4bf8fb[_0x210549(0x403)]===this[_0x210549(0x2e2)]&&this[_0x210549(0x4f7)](_0x4bf8fb);})):(this[_0x4a825c(0x3f1)][_0x4a825c(0x2b0)](0x2),(_0x84e43=this[_0x4a825c(0x392)])==null||_0x84e43[_0x4a825c(0x55a)](),this[_0x4a825c(0x392)]=null));}),this[_0x2b74e0(0x369)](this[_0x2b74e0(0x3d4)]['registerOnClose'](()=>{const _0xdc3eab=_0x2b74e0;var _0x5e51bb;(_0x5e51bb=this[_0xdc3eab(0x2cd)])==null||_0x5e51bb[_0xdc3eab(0x42b)]({'cmd':_0x52c13b[_0xdc3eab(0x30e)],'data':{'roomID':this[_0xdc3eab(0x2e2)]}});})));}get[_0x3b3960(0x1f4)](){const _0x4065f9=_0x3b3960;return this['_sessionStatus$'][_0x4065f9(0x521)]();}['getMemberID'](){const _0x4b8ace=_0x3b3960;var _0x31de17,_0x2b5af1;return(_0x2b5af1=(_0x31de17=this[_0x4b8ace(0x2cd)])==null?void 0x0:_0x31de17[_0x4b8ace(0x2e8)])!=null?_0x2b5af1:null;}[_0x3b3960(0x472)](){const _0x4c7d0e=_0x3b3960;super[_0x4c7d0e(0x472)](),this[_0x4c7d0e(0x272)][_0x4c7d0e(0x2b0)](),this[_0x4c7d0e(0x272)][_0x4c7d0e(0x4d4)]();}[_0x3b3960(0x51c)](){const _0x5c22d9=_0x3b3960;var _0x1f58ae,_0x22c0c4;(_0x1f58ae=this['_socket'])==null||_0x1f58ae['send']({'cmd':_0x52c13b['LEAVE'],'data':{'roomID':this[_0x5c22d9(0x2e2)]}}),this[_0x5c22d9(0x4da)]['complete'](),this['_sessionStatus$']['complete'](),(_0x22c0c4=this[_0x5c22d9(0x2cd)])==null||_0x22c0c4[_0x5c22d9(0x51c)](),this['dispose']();}[_0x3b3960(0x4f7)](_0x24260f){const _0x400ce3=_0x3b3960;_0x24260f[_0x400ce3(0x2b6)]===_0x52c13b['JOIN']?this['_onJoinRoomEvent'](_0x24260f):_0x24260f[_0x400ce3(0x2b6)]===_0x52c13b[_0x400ce3(0x3cc)]&&this[_0x400ce3(0x479)](_0x24260f);}['_joinRoom'](_0x1744eb){const _0x465af9=_0x3b3960;this[_0x465af9(0x3f1)]['next'](0x1),_0x1744eb[_0x465af9(0x42b)]({'cmd':_0x52c13b[_0x465af9(0x2e0)],'routeKey':this[_0x465af9(0x2e2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x465af9(0x2e2)]}]}});}[_0x3b3960(0x47d)](_0x2fa6f9){const _0x8ed447=_0x3b3960;var _0x23f271;if(_0x2fa6f9[_0x8ed447(0x534)]===_0x1a4aa5[_0x8ed447(0x409)]){this['_messageService'][_0x8ed447(0x2c3)]({'type':_0x54ac63[_0x8ed447(0x55b)]['Warning'],'content':this[_0x8ed447(0x23b)]['t'](_0x8ed447(0x564))}),this[_0x8ed447(0x3f1)][_0x8ed447(0x2b0)](0x2);return;}this[_0x8ed447(0x3f1)][_0x8ed447(0x2b0)](0x3);const _0xfcb624=(_0x23f271=_0x2fa6f9[_0x8ed447(0x3e0)][_0x8ed447(0x354)][this[_0x8ed447(0x2e2)]])==null?void 0x0:_0x23f271['members'];_0xfcb624&&_0xfcb624[_0x8ed447(0x4d1)](_0x255575=>this[_0x8ed447(0x5e7)][_0x8ed447(0x313)](this[_0x8ed447(0x2e2)],_0x255575));}['_onRecvEvent'](_0x3839e0){const _0x15bad5=_0x3b3960;try{const _0x12f9cd=_0x3839e0[_0x15bad5(0x3e0)];switch(_0x12f9cd[_0x15bad5(0x4aa)]){case _0x106736[_0x15bad5(0x43e)][_0x15bad5(0x2b3)]:this[_0x15bad5(0x333)](_0x12f9cd),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736['CollaborationEvent'][_0x15bad5(0x519)]:this[_0x15bad5(0x5f9)](_0x12f9cd),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)][_0x15bad5(0x303)]:this[_0x15bad5(0x4c4)](),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)]['MSG_FOR_ERROR']:this[_0x15bad5(0x501)][_0x15bad5(0x50b)](_0x15bad5(0x34a)+JSON[_0x15bad5(0x4b3)](_0x12f9cd)),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)]['COMMENT_UPDATE']:this[_0x15bad5(0x379)][_0x15bad5(0x5dc)](_0x12f9cd[_0x15bad5(0x3e0)]),this['_event$']['next'](_0x12f9cd);break;default:this[_0x15bad5(0x4da)]['next'](_0x12f9cd);}}catch(_0x233714){this[_0x15bad5(0x501)][_0x15bad5(0x50b)](_0x233714,_0x3839e0);}}['_onUserJoin'](_0x22fbab){const _0x311966=_0x3b3960;this[_0x311966(0x5e7)][_0x311966(0x313)](this[_0x311966(0x2e2)],_0x22fbab[_0x311966(0x3e0)]);}[_0x3b3960(0x5f9)](_0xe4d99b){const _0x464e47=_0x3b3960;this[_0x464e47(0x5e7)]['removeMember'](this[_0x464e47(0x2e2)],_0xe4d99b[_0x464e47(0x3e0)][_0x464e47(0x2e8)]);}async['send'](_0x229cfd,_0x38a096){const _0xfcbab2=_0x3b3960;if(this[_0xfcbab2(0x1f4)]!==0x3||!this['_socket'])throw new Error(_0xfcbab2(0x26a));try{_0x229cfd[_0xfcbab2(0x4aa)]===_0x106736[_0xfcbab2(0x43e)][_0xfcbab2(0x2f1)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0xfcbab2(0x42b)]({'cmd':_0x52c13b[_0xfcbab2(0x495)],'routeKey':_0x38a096,'routeType':'','data':_0x229cfd});}catch(_0x1495e8){this[_0xfcbab2(0x501)]['error'](_0x1495e8);}}['_scheduleCollaborationTimeoutTimer'](){const _0x213183=_0x3b3960;var _0x15a6a1;this[_0x213183(0x46e)]=window[_0x213183(0x4b1)](()=>{const _0x2e7675=_0x213183;this[_0x2e7675(0x46e)]=null,this[_0x2e7675(0x5ea)][_0x2e7675(0x2c3)]({'type':_0x54ac63['MessageType'][_0x2e7675(0x287)],'content':this[_0x2e7675(0x23b)]['t'](_0x2e7675(0x383))});},(_0x15a6a1=this[_0x213183(0x46c)][_0x213183(0x584)](_0x816b9c))!=null?_0x15a6a1:0x2710);}[_0x3b3960(0x4c4)](){const _0x109ea7=_0x3b3960;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x109ea7(0x46e)]),this[_0x109ea7(0x46e)]=null);}},_0x2c3354[_0x3b3960(0x517)]=_0x503bad([_0xa0f261(0x2,_0x2015b3['ILogService']),_0xa0f261(0x3,_0x44b766[_0x3b3960(0x5cd)]),_0xa0f261(0x4,_0x44b766['IMessageService']),_0xa0f261(0x5,_0x2015b3[_0x3b3960(0x582)]),_0xa0f261(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0xa0f261(0x7,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0xa0f261(0x8,_0x2015b3['Inject'](_0x3f4b4d))],_0x2c3354[_0x3b3960(0x517)]),_0x2c3354['CollaborationSessionService']=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x1650a4,_0x1c762d,_0x31022f,_0x51f152,_0x1d0076,_0x95890c){const _0x4719dc=_0x3b3960;super(),_0x385cfe(this,'_socket$',new _0x345abe['BehaviorSubject'](void 0x0)),_0x385cfe(this,_0x4719dc(0x4f6),new Map()),_0x385cfe(this,_0x4719dc(0x4e9),new _0x345abe[(_0x4719dc(0x2f9))](0x0)),_0x385cfe(this,_0x4719dc(0x2f5),this['_status$'][_0x4719dc(0x348)]()),_0x385cfe(this,'_socketReady',!0x1),_0x385cfe(this,_0x4719dc(0x4fc)),_0x385cfe(this,_0x4719dc(0x490)),_0x385cfe(this,_0x4719dc(0x3f9)),_0x385cfe(this,_0x4719dc(0x578),0x0),(this['_injector']=_0x1650a4,this[_0x4719dc(0x23b)]=_0x1c762d,this[_0x4719dc(0x5ea)]=_0x31022f,this[_0x4719dc(0x501)]=_0x51f152,this['_configService']=_0x1d0076,this[_0x4719dc(0x310)]=_0x95890c);}get[_0x3b3960(0x2cd)](){const _0xb2bbe6=_0x3b3960;return this['_socket$'][_0xb2bbe6(0x521)]();}[_0x3b3960(0x472)](){const _0x3b4705=_0x3b3960;super['dispose'](),this[_0x3b4705(0x4f6)]['forEach'](_0x2e135d=>_0x2e135d[_0x3b4705(0x472)]()),this[_0x3b4705(0x4f6)][_0x3b4705(0x577)](),this[_0x3b4705(0x4e9)][_0x3b4705(0x4d4)]();}async[_0x3b3960(0x5db)](_0x5837a7){const _0x141567=_0x3b3960;if(this[_0x141567(0x4f6)]['has'](_0x5837a7))return this[_0x141567(0x4f6)][_0x141567(0x3b9)](_0x5837a7);this[_0x141567(0x3ed)]();const _0x382101=this[_0x141567(0x3f4)]['createInstance'](_0x2c3354[_0x141567(0x517)],_0x5837a7,this['_socket$'][_0x141567(0x348)]());return this[_0x141567(0x4f6)][_0x141567(0x420)](_0x5837a7,_0x382101),_0x382101;}[_0x3b3960(0x32c)](_0xa246cc){const _0x2b2959=_0x3b3960;var _0x19c389;const _0x42c4e6=this[_0x2b2959(0x4f6)][_0x2b2959(0x3b9)](_0xa246cc);_0x42c4e6&&(this['_sessions']['delete'](_0xa246cc),_0x42c4e6['close']()),this[_0x2b2959(0x4f6)][_0x2b2959(0x52c)]||(_0x19c389=this[_0x2b2959(0x2cd)])==null||_0x19c389[_0x2b2959(0x51c)]();}[_0x3b3960(0x3ac)](){const _0x35b4c4=_0x3b3960;var _0x51b169;const _0x1d2b7f=(_0x51b169=this[_0x35b4c4(0x46c)][_0x35b4c4(0x584)](_0x332c44))!=null?_0x51b169:_0x55e528;return this['_socketService'][_0x35b4c4(0x29b)](_0x1d2b7f);}['_tryEnsureSocket'](){const _0xbe8e3e=_0x3b3960;try{const _0x462bbe=this[_0xbe8e3e(0x3ac)]();if(_0x462bbe){const _0x1a19ea=_0x462bbe[_0xbe8e3e(0x42b)];_0x462bbe['send']=_0x70c19d=>(this['_rescheduleHeartbeatEvent'](),_0x1a19ea['apply'](_0x462bbe,[_0x70c19d])),_0x462bbe[_0xbe8e3e(0x23a)][_0xbe8e3e(0x35b)](_0x5af25f=>this['_onMessage'](_0x462bbe,_0x5af25f)),_0x462bbe['error$']['pipe'](_0x2cc613[_0xbe8e3e(0x46a)](0x1))[_0xbe8e3e(0x35b)](_0x4ebd7a=>this[_0xbe8e3e(0x501)][_0xbe8e3e(0x50b)](_0xbe8e3e(0x42c),_0x4ebd7a)),_0x462bbe['open$'][_0xbe8e3e(0x2d1)](_0x2cc613['take'](0x1))[_0xbe8e3e(0x35b)](()=>{const _0x1457d5=_0xbe8e3e;this[_0x1457d5(0x591)](_0x462bbe);}),_0x462bbe[_0xbe8e3e(0x4f3)][_0xbe8e3e(0x2d1)](_0x2cc613[_0xbe8e3e(0x46a)](0x1))[_0xbe8e3e(0x35b)](_0x5dfde1=>{const _0xa64dfe=_0xbe8e3e;this[_0xa64dfe(0x501)][_0xa64dfe(0x210)](_0xa64dfe(0x2a8),_0xa64dfe(0x252),_0x5dfde1),this['_onConnectionFailed']();});}}catch(_0x2e532b){this[_0xbe8e3e(0x501)][_0xbe8e3e(0x50b)](_0x2e532b),this[_0xbe8e3e(0x5e0)]();}}[_0x3b3960(0x591)](_0x2ec0f1){const _0x245e91=_0x3b3960;this[_0x245e91(0x501)]['debug']('[CollaborationSessionService]',_0x245e91(0x407)),_0x2ec0f1['send']({'cmd':_0x52c13b['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x3b3960(0x5e0)](){const _0x45bf04=_0x3b3960;var _0x10a173;this[_0x45bf04(0x4e9)][_0x45bf04(0x2b0)](0x2),this[_0x45bf04(0x429)][_0x45bf04(0x2b0)](null),this[_0x45bf04(0x40a)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x45bf04(0x578)]<((_0x10a173=this['_configService'][_0x45bf04(0x584)](_0xb1acb))!=null?_0x10a173:0x3)?(this[_0x45bf04(0x1f6)](this[_0x45bf04(0x578)]),this[_0x45bf04(0x578)]+=0x1):this['_messageService'][_0x45bf04(0x2c3)]({'type':_0x54ac63[_0x45bf04(0x55b)][_0x45bf04(0x287)],'content':this[_0x45bf04(0x23b)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x49d7c3){const _0x54ea8c=_0x3b3960;var _0x2e6056;const _0x56ca26=((_0x2e6056=this['_configService']['getConfig'](_0x11fd51))!=null?_0x2e6056:0x4e20)*0x2**_0x49d7c3;this[_0x54ea8c(0x5ea)][_0x54ea8c(0x2c3)]({'type':_0x54ac63[_0x54ea8c(0x55b)]['Warning'],'content':this[_0x54ea8c(0x23b)]['t'](_0x54ea8c(0x3a6))}),this[_0x54ea8c(0x3f9)]=setTimeout(()=>{const _0x250f44=_0x54ea8c;this['_tryEnsureSocket'](),clearTimeout(this[_0x250f44(0x3f9)]),this[_0x250f44(0x3f9)]=null;},_0x56ca26);}[_0x3b3960(0x234)](){const _0x7c2cca=_0x3b3960;var _0x4d09be;this[_0x7c2cca(0x563)](),this[_0x7c2cca(0x4fc)]=setTimeout(()=>this[_0x7c2cca(0x241)](),(_0x4d09be=this[_0x7c2cca(0x46c)][_0x7c2cca(0x584)](_0x879d7e))!=null?_0x4d09be:0x7530);}[_0x3b3960(0x241)](){const _0xe6f073=_0x3b3960;this[_0xe6f073(0x2cd)]['send']({'cmd':_0x52c13b[_0xe6f073(0x227)]}),this[_0xe6f073(0x5ce)]();}['_waitForHeartbeatResponse'](){const _0x34e3cc=_0x3b3960;var _0x4b912f;this[_0x34e3cc(0x490)]=setTimeout(()=>this[_0x34e3cc(0x5e0)](),(_0x4b912f=this[_0x34e3cc(0x46c)][_0x34e3cc(0x584)](_0x816b9c))!=null?_0x4b912f:0x2710);}[_0x3b3960(0x48f)](_0x5ce4fe,_0xafd618){const _0x5ac593=_0x3b3960,{cmd:_0x48cc24}=_0xafd618;_0x48cc24===_0x52c13b[_0x5ac593(0x41b)]&&!this[_0x5ac593(0x55d)]&&(_0x5ce4fe['memberID']=_0xafd618[_0x5ac593(0x3e0)]['memberID'],this[_0x5ac593(0x429)][_0x5ac593(0x2b0)](_0x5ce4fe),this['_status$'][_0x5ac593(0x2b0)](0x3),this[_0x5ac593(0x55d)]=!0x0),_0x48cc24===_0x52c13b[_0x5ac593(0x227)]&&this[_0x5ac593(0x40a)](),this[_0x5ac593(0x234)]();}[_0x3b3960(0x563)](){const _0x1aeb2b=_0x3b3960;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aeb2b(0x4fc)]),this[_0x1aeb2b(0x4fc)]=null);}[_0x3b3960(0x40a)](){const _0x40201a=_0x3b3960;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x40201a(0x490)]),this[_0x40201a(0x490)]=null);}},_0x2c3354[_0x3b3960(0x4b4)]=_0x503bad([_0xa0f261(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0xa0f261(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0xa0f261(0x2,_0x44b766['IMessageService']),_0xa0f261(0x3,_0x2015b3['ILogService']),_0xa0f261(0x4,_0x2015b3[_0x3b3960(0x582)]),_0xa0f261(0x5,_0x1bd205)],_0x2c3354[_0x3b3960(0x4b4)]);var _0x77a193=Object[_0x3b3960(0x57c)],_0x463060=Object['getOwnPropertyDescriptor'],_0x44f983=(_0x134b07,_0x59b8d2,_0x6957d5,_0xeb19d0)=>{for(var _0x5c1e42=_0xeb19d0>0x1?void 0x0:_0xeb19d0?_0x463060(_0x59b8d2,_0x6957d5):_0x59b8d2,_0x953809=_0x134b07['length']-0x1,_0x313460;_0x953809>=0x0;_0x953809--)(_0x313460=_0x134b07[_0x953809])&&(_0x5c1e42=(_0xeb19d0?_0x313460(_0x59b8d2,_0x6957d5,_0x5c1e42):_0x313460(_0x5c1e42))||_0x5c1e42);return _0xeb19d0&&_0x5c1e42&&_0x77a193(_0x59b8d2,_0x6957d5,_0x5c1e42),_0x5c1e42;},_0x3eceb8=(_0xd0e175,_0x48bcbd)=>(_0x1b6cca,_0x31396f)=>_0x48bcbd(_0x1b6cca,_0x31396f,_0xd0e175);_0x2c3354[_0x3b3960(0x3dc)]=class extends _0x2015b3['Disposable']{constructor(_0x25b20d,_0x33e2bc,_0x4b8095,_0x3f6164,_0x4cd67a){const _0x59d32d=_0x3b3960;super(),_0x385cfe(this,'_cachedData',new Map()),_0x385cfe(this,_0x59d32d(0x3e3),new Map()),_0x385cfe(this,_0x59d32d(0x207),!0x1),(this[_0x59d32d(0x46c)]=_0x25b20d,this['_localStorageService']=_0x33e2bc,this['_beforeCloseService']=_0x4b8095,this[_0x59d32d(0x23b)]=_0x3f6164,this['_revisionService']=_0x4cd67a,this[_0x59d32d(0x2d4)]());}[_0x3b3960(0x5ed)](){const _0x2cf7bd=_0x3b3960;this[_0x2cf7bd(0x207)]=!0x0;}['enableLocalCache'](){const _0x35076d=_0x3b3960;this[_0x35076d(0x207)]=!0x1;}['dispose'](){const _0x289e0a=_0x3b3960;this[_0x289e0a(0x3ad)]()['then'](()=>super[_0x289e0a(0x472)]());}async[_0x3b3960(0x56a)](_0x484427){const _0x47cabb=_0x3b3960;return this[_0x47cabb(0x207)]?null:this[_0x47cabb(0x48e)][_0x47cabb(0x332)](_0x1f9b64(_0x484427));}async['saveOfflineData'](_0x26397e,_0xbc1e09){const _0x5cfcf3=_0x3b3960;return!!this[_0x5cfcf3(0x48e)][_0x5cfcf3(0x391)](_0x26397e,_0xbc1e09);}[_0x3b3960(0x53d)](_0x179259,_0x206213,_0x9c2f7f,_0x44c135){const _0x36e5ce=_0x3b3960,_0x4b473b=this[_0x36e5ce(0x59c)]['getCurrentRevForDocument'](_0x179259);this['_cachedData'][_0x36e5ce(0x420)](_0x179259,{'unitID':_0x179259,'type':_0x206213,'awaitingChangeset':_0x9c2f7f,'mutations':_0x44c135,'rev':_0x4b473b}),this[_0x36e5ce(0x3e3)][_0x36e5ce(0x337)](_0x179259)||this[_0x36e5ce(0x4de)](_0x179259);}[_0x3b3960(0x4de)](_0x534ab8){const _0x5bea55=_0x3b3960,_0x2934cd=this[_0x5bea55(0x5ad)]();_0x2934cd===0x0?this['_saveCache'](_0x534ab8):this['_saveTaskMap']['set'](_0x534ab8,setTimeout(()=>this[_0x5bea55(0x33e)](_0x534ab8),_0x2934cd));}[_0x3b3960(0x5ad)](){const _0x1fc311=_0x3b3960;var _0x4b350d;return(_0x4b350d=this[_0x1fc311(0x46c)][_0x1fc311(0x584)](_0x3f1ca0))!=null?_0x4b350d:0x3e8;}[_0x3b3960(0x33e)](_0x174882){const _0x35fc0e=_0x3b3960,_0x158f82=this['_saveTaskMap'][_0x35fc0e(0x3b9)](_0x174882);return _0x158f82!==void 0x0&&window[_0x35fc0e(0x3c8)](_0x158f82),this[_0x35fc0e(0x48e)][_0x35fc0e(0x391)](_0x1f9b64(_0x174882),this[_0x35fc0e(0x458)][_0x35fc0e(0x3b9)](_0x174882))['then'](()=>this[_0x35fc0e(0x3e3)][_0x35fc0e(0x431)](_0x174882));}async['exhaustSavingTask'](){const _0x362adb=_0x3b3960,_0x34ac38=[];this['_saveTaskMap'][_0x362adb(0x4d1)]((_0x372f12,_0x23be35)=>{const _0x21afc4=_0x362adb;window['clearTimeout'](_0x372f12),_0x34ac38[_0x21afc4(0x279)](this[_0x21afc4(0x33e)](_0x23be35)[_0x21afc4(0x28a)](()=>{const _0x54da38=_0x21afc4;this[_0x54da38(0x3e3)][_0x54da38(0x431)](_0x23be35);}));}),await Promise[_0x362adb(0x427)](_0x34ac38);}['_setupBeforeClosingHandler'](){const _0x434396=_0x3b3960;this['disposeWithMe'](this['_beforeCloseService'][_0x434396(0x26e)](()=>{const _0xf3180f=_0x434396;if(this[_0xf3180f(0x3e3)][_0xf3180f(0x52c)])return this[_0xf3180f(0x23b)]['t'](_0xf3180f(0x3aa));}));}},_0x2c3354[_0x3b3960(0x3dc)]=_0x44f983([_0x3eceb8(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x3eceb8(0x1,_0x2015b3['ILocalStorageService']),_0x3eceb8(0x2,_0x44b766[_0x3b3960(0x5cd)]),_0x3eceb8(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x3eceb8(0x4,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)]))],_0x2c3354[_0x3b3960(0x3dc)]);function _0x1f9b64(_0x51682d){const _0x45f2df=_0x3b3960;return _0x45f2df(0x2da)+_0x51682d;}const _0x55925e=_0x2015b3[_0x3b3960(0x2ab)](_0x3b3960(0x27f));var _0x2d9e3c=(_0x968f93=>(_0x968f93[_0x968f93[_0x3b3960(0x305)]=0x0]=_0x3b3960(0x305),_0x968f93[_0x968f93[_0x3b3960(0x393)]=0x1]=_0x3b3960(0x393),_0x968f93))(_0x2d9e3c||{});const _0x564307=0x7530,_0x1a148e=_0x3b3960(0x537);class _0x200347 extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0x1aa4c2=_0x3b3960;super(),_0x385cfe(this,_0x1aa4c2(0x316),_0x2015b3[_0x1aa4c2(0x471)][_0x1aa4c2(0x447)]()),_0x385cfe(this,_0x1aa4c2(0x538),new Set()),_0x385cfe(this,_0x1aa4c2(0x39d),new Map()),_0x385cfe(this,_0x1aa4c2(0x2ee),null),_0x385cfe(this,'_clearOtherTimers',new Map()),_0x385cfe(this,_0x1aa4c2(0x3f6),new Map()),this[_0x1aa4c2(0x4a1)]();}[_0x3b3960(0x472)](){const _0x178120=_0x3b3960;super['dispose'](),this[_0x178120(0x204)][_0x178120(0x4d1)]((_0x2b24e0,_0x1bd30c)=>this[_0x178120(0x3d1)](_0x1bd30c)),this[_0x178120(0x2ee)]&&window[_0x178120(0x50f)](this['_heartbeatTimer']);}[_0x3b3960(0x5f4)](_0x3f1869){const _0x2493ca=_0x3b3960;return this[_0x2493ca(0x448)](_0x3f1869)['pipe'](_0x345abe[_0x2493ca(0x26d)]());}[_0x3b3960(0x539)](_0x57f170){const _0x6523df=_0x3b3960;this[_0x6523df(0x538)]['size']===0x0&&this[_0x6523df(0x262)](),this['_selfUnitIDs'][_0x6523df(0x28c)](_0x57f170),this[_0x6523df(0x469)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57f170],'isForwarded':!0x1});}['disposeUnit'](_0x3f28d2){const _0x154043=_0x3b3960;this[_0x154043(0x538)][_0x154043(0x431)](_0x3f28d2),this[_0x154043(0x538)][_0x154043(0x52c)]===0x0&&this['_heartbeatTimer']&&window[_0x154043(0x50f)](this[_0x154043(0x2ee)]);}['_init'](){const _0x3eb890=_0x3b3960;this[_0x3eb890(0x369)](_0x2015b3[_0x3eb890(0x31c)](_0x345abe[_0x3eb890(0x44c)](window,_0x3eb890(0x3c1))[_0x3eb890(0x35b)](_0x3a6b7c=>{const _0x22c92c=_0x3eb890;if(_0x3a6b7c['key']!==_0x1a148e||!_0x3a6b7c[_0x22c92c(0x53b)])return;const _0x2ac098=JSON[_0x22c92c(0x488)](_0x3a6b7c[_0x22c92c(0x53b)]);this[_0x22c92c(0x453)](_0x2ac098);}))),window[_0x3eb890(0x411)](_0x3eb890(0x35c),()=>this['_send']({'type':0x1,'memberID':this[_0x3eb890(0x316)],'unitIDs':Array[_0x3eb890(0x4f1)](this[_0x3eb890(0x538)])}));}[_0x3b3960(0x453)](_0x3370cf){const _0x24e9e0=_0x3b3960;switch(_0x3370cf['type']){case 0x0:this[_0x24e9e0(0x593)](_0x3370cf);break;case 0x1:this[_0x24e9e0(0x571)](_0x3370cf);break;case 0x2:this[_0x24e9e0(0x532)](_0x3370cf);break;}}[_0x3b3960(0x593)](_0x41579a){const _0x21f400=_0x3b3960,{unitIDs:_0xf8b40b,memberID:_0x35cc3c,isForwarded:_0xff0959}=_0x41579a;_0xf8b40b[_0x21f400(0x4d1)](_0x2151e9=>{const _0xf8f2a1=_0x21f400;if(!_0xff0959&&this['_unitOnClients'][_0xf8f2a1(0x337)](_0x2151e9)&&this['_ensureSubject'](_0x2151e9)[_0xf8f2a1(0x2b0)](0x1),!this[_0xf8f2a1(0x39d)][_0xf8f2a1(0x337)](_0x2151e9)||!this[_0xf8f2a1(0x39d)]['get'](_0x2151e9)['has'](_0x35cc3c)){const _0x32eeca=this[_0xf8f2a1(0x39d)][_0xf8f2a1(0x3b9)](_0x2151e9)||new Set();_0x32eeca['add'](_0x35cc3c),this[_0xf8f2a1(0x39d)]['set'](_0x2151e9,_0x32eeca),this['_scheduleClearOtherTimer'](_0x35cc3c);}}),_0xff0959||this[_0x21f400(0x469)]({'type':0x0,'memberID':this[_0x21f400(0x316)],'unitIDs':[...this[_0x21f400(0x538)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2bbe91){const _0x26e150=_0x3b3960;this[_0x26e150(0x3d1)](_0x2bbe91);const _0x1101cc=window[_0x26e150(0x4b1)](()=>{this['_unitOnClients']['forEach'](_0x149454=>{const _0xb60376=_0x41fb;_0x149454[_0xb60376(0x431)](_0x2bbe91);});},_0x564307*0x2);this[_0x26e150(0x204)][_0x26e150(0x420)](_0x2bbe91,_0x1101cc);}[_0x3b3960(0x3d1)](_0x2b7e93){const _0x1aee61=_0x3b3960;if(this['_clearOtherTimers'][_0x1aee61(0x337)](_0x2b7e93)){const _0x4de246=this[_0x1aee61(0x204)][_0x1aee61(0x3b9)](_0x2b7e93);_0x4de246&&window[_0x1aee61(0x3c8)](_0x4de246),this['_clearOtherTimers'][_0x1aee61(0x420)](_0x2b7e93,null);}}['_handleLeaveEvent'](_0x117f57){const _0x3681c0=_0x3b3960,{memberID:_0x40f25a,unitIDs:_0x3596ef}=_0x117f57;_0x3596ef[_0x3681c0(0x4d1)](_0x50487d=>{const _0xb162e5=_0x3681c0;var _0x92d461;const _0x1819d9=this['_unitOnClients'][_0xb162e5(0x3b9)](_0x50487d);_0x1819d9&&(_0x1819d9[_0xb162e5(0x431)](_0x40f25a),(_0x92d461=this[_0xb162e5(0x448)](_0x50487d))==null||_0x92d461[_0xb162e5(0x2b0)](_0x1819d9[_0xb162e5(0x52c)]===0x0?0x0:0x1));}),this[_0x3681c0(0x3d1)](_0x40f25a);}[_0x3b3960(0x532)](_0x3ec417){const _0x5b0d43=_0x3b3960;this[_0x5b0d43(0x338)](_0x3ec417['memberID']);}[_0x3b3960(0x469)](_0x58640e){const _0xe41dfa=_0x3b3960;localStorage[_0xe41dfa(0x391)](_0x1a148e,JSON['stringify'](_0x58640e));}[_0x3b3960(0x262)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x1feb3f=_0x41fb;this[_0x1feb3f(0x469)]({'type':0x2,'memberID':this['_id']});},_0x564307);}[_0x3b3960(0x448)](_0x44b175){const _0x12d245=_0x3b3960;return this[_0x12d245(0x3f6)][_0x12d245(0x337)](_0x44b175)||this[_0x12d245(0x3f6)]['set'](_0x44b175,new _0x345abe['BehaviorSubject'](0x0)),this[_0x12d245(0x3f6)]['get'](_0x44b175);}}var _0x5a57bf=Object[_0x3b3960(0x57c)],_0x2c7519=Object[_0x3b3960(0x2c2)],_0x5d91a9=(_0x2ad29e,_0x14a13c,_0x5bce75,_0x5d9193)=>{const _0x559a3b=_0x3b3960;for(var _0x1a3af9=_0x5d9193>0x1?void 0x0:_0x5d9193?_0x2c7519(_0x14a13c,_0x5bce75):_0x14a13c,_0x39206e=_0x2ad29e[_0x559a3b(0x306)]-0x1,_0x33dbde;_0x39206e>=0x0;_0x39206e--)(_0x33dbde=_0x2ad29e[_0x39206e])&&(_0x1a3af9=(_0x5d9193?_0x33dbde(_0x14a13c,_0x5bce75,_0x1a3af9):_0x33dbde(_0x1a3af9))||_0x1a3af9);return _0x5d9193&&_0x1a3af9&&_0x5a57bf(_0x14a13c,_0x5bce75,_0x1a3af9),_0x1a3af9;},_0xc5274e=(_0x4d221b,_0x4226cb)=>(_0x41999c,_0x421a84)=>_0x4226cb(_0x41999c,_0x421a84,_0x4d221b);let _0x3d8f9f=class{constructor(_0x50455c,_0x528053){const _0x100b05=_0x3b3960;this[_0x100b05(0x3f4)]=_0x50455c,this[_0x100b05(0x3b1)]=_0x528053;}[_0x3b3960(0x4dc)](_0x16b881){const _0xe5d73f=_0x3b3960;this[_0xe5d73f(0x29f)](_0x16b881),this[_0xe5d73f(0x397)](_0x16b881);}[_0x3b3960(0x2cb)](_0x21645b){const _0x4b6149=_0x3b3960,_0x581298=this[_0x4b6149(0x3f4)]['get'](_0xbcf55e[_0x4b6149(0x50d)]),{redoCache:_0xf73320}=_0x581298[_0x4b6149(0x2b8)]();if(_0xf73320['length']===0x0)return _0x21645b;let _0x560767=_0x2015b3[_0x4b6149(0x471)][_0x4b6149(0x47a)](_0x21645b[_0x4b6149(0x2e7)][0x0]);for(let _0x4338b6=0x0;_0x4338b6<_0xf73320[_0x4b6149(0x306)];_0x4338b6++){const _0x552866={'id':_0x4b6149(0x412),'params':{..._0xf73320[_0x4338b6]}},_0x1f079e=this['_transformService']['transformMutation'](_0x560767,_0x552866,!0x1);if(_0x106736['isTransformMutationFailure'](_0x1f079e))throw _0x1f079e['error'];_0x560767=_0x1f079e[_0x4b6149(0x59e)];}return{..._0x2015b3[_0x4b6149(0x471)][_0x4b6149(0x47a)](_0x21645b),'mutations':[_0x560767]};}[_0x3b3960(0x29f)](_0x421af7){const _0x8d5e99=_0x3b3960,_0x27a6ad=this['_injector'][_0x8d5e99(0x3b9)](_0xbcf55e[_0x8d5e99(0x50d)]),{undoCache:_0x3df1b0,redoCache:_0x2dcd94}=_0x27a6ad[_0x8d5e99(0x2b8)]();if(_0x3df1b0['length']===0x0||_0x2dcd94[_0x8d5e99(0x306)]===0x0)return;const _0x19e4f2=[],_0x303eae=[];let _0x1cdaeb=_0x2015b3[_0x8d5e99(0x471)][_0x8d5e99(0x47a)](_0x421af7['mutations'][0x0]),_0x1f679f=_0x2015b3[_0x8d5e99(0x471)][_0x8d5e99(0x47a)](_0x421af7[_0x8d5e99(0x2e7)][0x0]);for(let _0x3c5ffd=_0x3df1b0['length']-0x1;_0x3c5ffd>=0x0;_0x3c5ffd--){const _0x42bb30={'id':_0x8d5e99(0x412),'params':{..._0x3df1b0[_0x3c5ffd]}},_0x29e4a5={'id':_0x8d5e99(0x412),'params':{..._0x2dcd94[_0x3c5ffd]}},_0x114f6b=this[_0x8d5e99(0x3b1)][_0x8d5e99(0x3e8)](_0x1cdaeb,_0x42bb30,!0x1),_0xeb6c61=this[_0x8d5e99(0x3b1)][_0x8d5e99(0x3e8)](_0x1f679f,_0x29e4a5,!0x1);if(_0x106736[_0x8d5e99(0x201)](_0x114f6b))throw _0x114f6b[_0x8d5e99(0x50b)];if(_0x106736['isTransformMutationFailure'](_0xeb6c61))throw _0xeb6c61[_0x8d5e99(0x50b)];_0x19e4f2['unshift'](_0x114f6b[_0x8d5e99(0x4af)][_0x8d5e99(0x358)]),_0x303eae[_0x8d5e99(0x55c)](_0xeb6c61[_0x8d5e99(0x4af)][_0x8d5e99(0x358)]),_0x1cdaeb=_0x114f6b['m1Prime'],_0x1f679f=_0xeb6c61['m1Prime'];}_0x27a6ad['setUndoRedoMutationParamsCache']({'undoCache':_0x19e4f2,'redoCache':_0x303eae});}[_0x3b3960(0x397)](_0x5c2976){const _0x41a44b=_0x3b3960,_0x3b4eb8=this[_0x41a44b(0x3f4)][_0x41a44b(0x3b9)](_0xbcf55e[_0x41a44b(0x50d)]),_0x13ed3b=_0x3b4eb8['getActiveRange']();if(_0x13ed3b==null)return;const _0x3dd311=[{'id':_0x41a44b(0x412),'params':{'unitId':_0x5c2976[_0x41a44b(0x353)],'actions':null,'textRanges':[_0x13ed3b]}}],_0x479e92=this[_0x41a44b(0x3b1)][_0x41a44b(0x2dc)](_0x5c2976,_0x3dd311);if(!_0x106736[_0x41a44b(0x58d)](_0x479e92))throw _0x479e92[_0x41a44b(0x50b)];const _0x40bc27=_0x479e92[_0x41a44b(0x4af)][0x0][_0x41a44b(0x358)][_0x41a44b(0x23f)];Array['isArray'](_0x40bc27)&&_0x40bc27['length']&&_0x3b4eb8[_0x41a44b(0x481)](_0x40bc27[0x0]);}};_0x3d8f9f=_0x5d91a9([_0xc5274e(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0xc5274e(0x1,_0x106736['ITransformService'])],_0x3d8f9f);var _0x1e0fd3=Object['defineProperty'],_0x47689c=Object['getOwnPropertyDescriptor'],_0x9a1023=(_0x354136,_0x1332f8,_0x1ffe2c,_0x3bae13)=>{const _0xfc5122=_0x3b3960;for(var _0x5a2342=_0x3bae13>0x1?void 0x0:_0x3bae13?_0x47689c(_0x1332f8,_0x1ffe2c):_0x1332f8,_0x1786bc=_0x354136[_0xfc5122(0x306)]-0x1,_0x2d8f28;_0x1786bc>=0x0;_0x1786bc--)(_0x2d8f28=_0x354136[_0x1786bc])&&(_0x5a2342=(_0x3bae13?_0x2d8f28(_0x1332f8,_0x1ffe2c,_0x5a2342):_0x2d8f28(_0x5a2342))||_0x5a2342);return _0x3bae13&&_0x5a2342&&_0x1e0fd3(_0x1332f8,_0x1ffe2c,_0x5a2342),_0x5a2342;},_0x4fd8f2=(_0x19d617,_0x1ab56d)=>(_0x56d045,_0x2f8521)=>_0x1ab56d(_0x56d045,_0x2f8521,_0x19d617);let _0x27cbd7=class{constructor(_0x3c3797,_0x1b304c){const _0x4b4de8=_0x3b3960;this[_0x4b4de8(0x3f4)]=_0x3c3797,this[_0x4b4de8(0x3b1)]=_0x1b304c;}[_0x3b3960(0x2c8)](_0x4bfd25){const _0x3ed5fd=_0x3b3960;var _0x2509d4;const _0xd91344=this[_0x3ed5fd(0x3f4)][_0x3ed5fd(0x3b9)](_0xbcf55e['TextSelectionManagerService']),_0x7017f4=(_0x2509d4=_0xd91344[_0x3ed5fd(0x342)]())!=null?_0x2509d4:[],_0x237ef0=_0x7017f4==null?void 0x0:_0x7017f4['map'](_0xbcf55e[_0x3ed5fd(0x489)]);if(_0x237ef0[_0x3ed5fd(0x306)]===0x0)return;const _0x59ee19=[{'id':_0x3ed5fd(0x412),'params':{'unitId':_0x4bfd25[_0x3ed5fd(0x353)],'actions':null,'textRanges':_0x237ef0}}],_0x4d4bdd=this[_0x3ed5fd(0x3b1)][_0x3ed5fd(0x2dc)](_0x4bfd25,_0x59ee19);if(!_0x106736[_0x3ed5fd(0x58d)](_0x4d4bdd))throw _0x4d4bdd['error'];const _0x50db41=_0x4d4bdd['m2Prime'][0x0][_0x3ed5fd(0x358)][_0x3ed5fd(0x23f)];Array[_0x3ed5fd(0x31d)](_0x50db41)&&_0x50db41[_0x3ed5fd(0x306)]&&_0xd91344[_0x3ed5fd(0x32a)](_0x50db41,!0x1);}};_0x27cbd7=_0x9a1023([_0x4fd8f2(0x0,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x4fd8f2(0x1,_0x106736[_0x3b3960(0x25a)])],_0x27cbd7);function _0x2763e1(_0x1b02b0){const _0x1f201b=_0x3b3960;let _0x2ace6a='';for(const _0x47b37e of _0x1b02b0){const {startOffset:_0x2be21c,endOffset:_0x28d7d3,isActive:_0x10c66c}=_0x47b37e;_0x2ace6a[_0x1f201b(0x306)]&&(_0x2ace6a+=','),_0x2ace6a+=_0x2be21c+':'+_0x28d7d3+':'+(_0x10c66c?'1':'0');}return _0x2ace6a;}function _0x3d4548(_0x536803){const _0x3bc8e2=_0x3b3960,_0x55f4ab=_0x536803[_0x3bc8e2(0x29e)](','),_0x40db8c=[];for(const _0x750722 of _0x55f4ab){const [_0xac00fe,_0x535265,_0x4ef4f7]=_0x750722[_0x3bc8e2(0x29e)](':');_0x40db8c[_0x3bc8e2(0x279)]({'startOffset':Number(_0xac00fe),'endOffset':Number(_0x535265),'collapsed':_0xac00fe===_0x535265,'isActive':_0x4ef4f7==='1'});}return _0x40db8c[_0x3bc8e2(0x59d)](_0x4d7728=>_0x4d7728[_0x3bc8e2(0x237)])||(_0x40db8c[0x0][_0x3bc8e2(0x237)]=!0x0),_0x40db8c;}class _0x474519 extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(){const _0x52ea1a=_0x3b3960;super(...arguments),_0x385cfe(this,_0x52ea1a(0x551),new _0x345abe[(_0x52ea1a(0x2f9))](null)),_0x385cfe(this,_0x52ea1a(0x3ff),this[_0x52ea1a(0x551)][_0x52ea1a(0x348)]());}[_0x3b3960(0x554)](_0x1c9769){const _0xcb360f=_0x3b3960,{unitID:_0x55262d,memberID:_0x34cbce,textRanges:_0x5ede5c}=_0x1c9769,_0x2ea6e5=_0x2763e1(_0x5ede5c),_0x56ded8={'unitID':_0x55262d,'memberID':_0x34cbce,'selection':_0x2ea6e5};this[_0xcb360f(0x551)][_0xcb360f(0x2b0)](_0x56ded8);}}var _0x301f1c=Object[_0x3b3960(0x57c)],_0x526fda=Object['getOwnPropertyDescriptor'],_0x30f0ed=(_0x1d6b89,_0x33d9fa,_0x3dd736,_0x1498ad)=>{const _0x1c946b=_0x3b3960;for(var _0x6fde78=_0x1498ad>0x1?void 0x0:_0x1498ad?_0x526fda(_0x33d9fa,_0x3dd736):_0x33d9fa,_0x186602=_0x1d6b89[_0x1c946b(0x306)]-0x1,_0x3149e2;_0x186602>=0x0;_0x186602--)(_0x3149e2=_0x1d6b89[_0x186602])&&(_0x6fde78=(_0x1498ad?_0x3149e2(_0x33d9fa,_0x3dd736,_0x6fde78):_0x3149e2(_0x6fde78))||_0x6fde78);return _0x1498ad&&_0x6fde78&&_0x301f1c(_0x33d9fa,_0x3dd736,_0x6fde78),_0x6fde78;},_0x4368d2=(_0xef3e18,_0xa2999d)=>(_0xdc0796,_0x5b631b)=>_0xa2999d(_0xdc0796,_0x5b631b,_0xef3e18);function _0x363e07(_0x1ad963){const _0x2b672b=_0x3b3960,{unitID:_0x555dd8,mutations:_0xcd29f6}=_0x1ad963;return{'unitId':_0x555dd8,'subUnitId':_0xcd29f6[0x0][_0x2b672b(0x358)][_0x2b672b(0x324)]};}let _0x319b0c=class{constructor(_0x407f62,_0x23c1a8){const _0x50b712=_0x3b3960;this['_injector']=_0x407f62,this[_0x50b712(0x3b1)]=_0x23c1a8;}[_0x3b3960(0x2c8)](_0x2aad70){const _0x2f3d65=_0x3b3960;var _0x224307,_0x1b1c91,_0x2002e6;const _0x222f49=this[_0x2f3d65(0x3f4)][_0x2f3d65(0x3b9)](_0x3d1b6a[_0x2f3d65(0x42a)]),{unitId:_0x2049fd,subUnitId:_0x537a59}=_0x363e07(_0x2aad70),_0x561662=_0x222f49[_0x2f3d65(0x363)](_0x2049fd)['getCurrentSelections']();if(_0x561662[_0x2f3d65(0x306)]===0x0||!_0x2049fd||!_0x537a59)return;const _0x6e159b=[{'id':_0x3d1b6a[_0x2f3d65(0x23d)]['id'],'params':{'unitId':_0x2049fd,'subUnitId':_0x537a59,'selections':_0x2015b3[_0x2f3d65(0x471)]['deepClone'](_0x561662)}}],_0xceb172=this[_0x2f3d65(0x3b1)][_0x2f3d65(0x2dc)](_0x2aad70,_0x6e159b);if(!_0x106736['isTransformMutationsWithChangesetSuccess'](_0xceb172))throw _0xceb172[_0x2f3d65(0x50b)];const _0x500377=(_0x2002e6=(_0x1b1c91=(_0x224307=_0xceb172[_0x2f3d65(0x4af)][0x0])==null?void 0x0:_0x224307[_0x2f3d65(0x358)])==null?void 0x0:_0x1b1c91[_0x2f3d65(0x285)])!=null?_0x2002e6:_0x561662;Array[_0x2f3d65(0x31d)](_0x500377)&&_0x500377[_0x2f3d65(0x306)]&&this[_0x2f3d65(0x3f4)][_0x2f3d65(0x3b9)](_0x2015b3[_0x2f3d65(0x259)])[_0x2f3d65(0x44d)](_0x3d1b6a[_0x2f3d65(0x23d)]['id'],{'unitId':_0x2049fd,'subUnitId':_0x537a59,'selections':_0x500377});}};_0x319b0c=_0x30f0ed([_0x4368d2(0x0,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x4368d2(0x1,_0x106736[_0x3b3960(0x25a)])],_0x319b0c);const _0xa95be5=new Set([_0x3d1b6a[_0x3b3960(0x54c)]['id']]);function _0x3f4fdd(_0x52969a,_0x7d4087,_0x176550,_0x578d2b,_0x16cdbe){const _0x1b7182=_0x3b3960;var _0x1a4466,_0x26528a,_0x3348bd,_0x67ec1c;const _0x2efc69=[];for(const _0x11b0f1 of _0x52969a)if(_0xa95be5[_0x1b7182(0x337)](_0x11b0f1['id'])){if(_0x2efc69[_0x1b7182(0x306)]>0x0)break;_0x2efc69[_0x1b7182(0x279)](_0x11b0f1);break;}else _0x2efc69[_0x1b7182(0x279)](_0x11b0f1);const _0xf8e4bc=(_0x26528a=(_0x1a4466=_0x16cdbe[_0x1b7182(0x25b)]())==null?void 0x0:_0x1a4466['userID'])!=null?_0x26528a:_0x1b7182(0x5cc),_0x5e17c2=(_0x67ec1c=(_0x3348bd=_0x16cdbe[_0x1b7182(0x25b)]())==null?void 0x0:_0x3348bd[_0x1b7182(0x2e8)])!=null?_0x67ec1c:_0x1b7182(0x5cc);return{'changeset':{'unitID':_0x7d4087,'type':_0x106736[_0x1b7182(0x52b)](_0x176550[_0x1b7182(0x24e)](_0x7d4087)),'baseRev':_0x578d2b[_0x1b7182(0x556)](_0x7d4087),'revision':0x0,'userID':_0xf8e4bc,'memberID':_0x5e17c2,'mutations':_0x2efc69},'pendingMutations':_0x52969a[_0x1b7182(0x52e)](_0x2efc69[_0x1b7182(0x306)])};}function _0x54f293(_0x5281d3,_0x313168,_0x57bc8f,_0x515741,_0x25ea2d){const _0x2eb86d=_0x3b3960;var _0xd24528,_0x255b09,_0x5773eb,_0xcb0a25;const _0x5116ac=[_0x5281d3[_0x2eb86d(0x230)]((_0x25e295,_0x9cc2f9)=>{const _0xff81eb=_0x2eb86d;var _0x55f409;const {id:_0x3a7d5c}=_0x25e295,{id:_0x3c6b7a,type:_0x137e1e}=_0x9cc2f9,_0x191674=(_0x55f409=_0x25e295[_0xff81eb(0x358)])!=null?_0x55f409:{'actions':null},_0x2753f8=_0x9cc2f9[_0xff81eb(0x358)];if(_0x3a7d5c&&_0x3a7d5c!==_0x3c6b7a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3a7d5c+'\x20-\x20'+_0x3c6b7a+'.');return{..._0x25e295,'id':_0x3c6b7a,'type':_0x137e1e,'params':{'unitId':_0x2753f8['unitId'],'textRanges':_0x2753f8['textRanges'],'actions':_0x2015b3[_0xff81eb(0x257)][_0xff81eb(0x4ba)](_0x191674[_0xff81eb(0x59b)],_0x2753f8[_0xff81eb(0x59b)])}};},{})],_0x45c58e=(_0x255b09=(_0xd24528=_0x25ea2d[_0x2eb86d(0x25b)]())==null?void 0x0:_0xd24528[_0x2eb86d(0x4e4)])!=null?_0x255b09:_0x2eb86d(0x5cc),_0x5eb333=(_0xcb0a25=(_0x5773eb=_0x25ea2d['getCurrentUser']())==null?void 0x0:_0x5773eb['memberID'])!=null?_0xcb0a25:_0x2eb86d(0x5cc);return{'changeset':{'unitID':_0x313168,'type':_0x106736[_0x2eb86d(0x52b)](_0x57bc8f[_0x2eb86d(0x24e)](_0x313168)),'baseRev':_0x515741[_0x2eb86d(0x556)](_0x313168),'revision':0x0,'userID':_0x45c58e,'memberID':_0x5eb333,'mutations':_0x5116ac},'pendingMutations':[]};}const _0x20d280={'id':_0x3d1b6a['EmptyMutation']['id'],'type':_0x2015b3['CommandType']['MUTATION'],'params':{}};var _0x46eabf=Object[_0x3b3960(0x57c)],_0x3297d4=Object[_0x3b3960(0x2c2)],_0x2f90f8=(_0x2f8dc4,_0x1bac49,_0xb8b090,_0x36530f)=>{for(var _0x255bc5=_0x36530f>0x1?void 0x0:_0x36530f?_0x3297d4(_0x1bac49,_0xb8b090):_0x1bac49,_0x471512=_0x2f8dc4['length']-0x1,_0x338967;_0x471512>=0x0;_0x471512--)(_0x338967=_0x2f8dc4[_0x471512])&&(_0x255bc5=(_0x36530f?_0x338967(_0x1bac49,_0xb8b090,_0x255bc5):_0x338967(_0x255bc5))||_0x255bc5);return _0x36530f&&_0x255bc5&&_0x46eabf(_0x1bac49,_0xb8b090,_0x255bc5),_0x255bc5;},_0x108b1a=(_0x3688f6,_0x501da1)=>(_0x4dc955,_0x2dc4de)=>_0x501da1(_0x4dc955,_0x2dc4de,_0x3688f6),_0xe45813=(_0x1c1dbb=>(_0x1c1dbb['NOT_COLLAB']=_0x3b3960(0x25d),_0x1c1dbb['SYNCED']=_0x3b3960(0x5e2),_0x1c1dbb[_0x3b3960(0x529)]='pending',_0x1c1dbb['AWAITING']='awaiting',_0x1c1dbb[_0x3b3960(0x282)]='awaiting_with_pending',_0x1c1dbb['FETCH_MISS']=_0x3b3960(0x3ce),_0x1c1dbb[_0x3b3960(0x505)]=_0x3b3960(0x34b),_0x1c1dbb['OFFLINE']=_0x3b3960(0x5d2),_0x1c1dbb))(_0xe45813||{});class _0x1e4aa1{constructor(_0x2784f3,_0x9b39e2,_0xb319c3,_0xe96531,_0x50b687,_0x425456,_0x520982,_0xe67cb4,_0x38e830){const _0x45a70b=_0x3b3960;_0x385cfe(this,'_awaitingChangeset',null),_0x385cfe(this,_0x45a70b(0x223),[]),(this[_0x45a70b(0x353)]=_0x2784f3,this[_0x45a70b(0x376)]=_0x9b39e2,this[_0x45a70b(0x3ef)]=_0x50b687,this[_0x45a70b(0x286)]=_0x425456,this[_0x45a70b(0x308)]=_0x520982,this[_0x45a70b(0x59c)]=_0xe67cb4,this[_0x45a70b(0x24b)]=_0x38e830,this[_0x45a70b(0x21d)]=_0xb319c3,this[_0x45a70b(0x223)]=_0xe96531);}[_0x3b3960(0x541)](_0x18bf06){const _0x112752=_0x3b3960,_0x32e216=this[_0x112752(0x59c)]['getCurrentRevForDocument'](this[_0x112752(0x353)]);return _0x18bf06[_0x112752(0x3e7)]>_0x32e216+0x1?(this['_handler']['onMissingChangesets']({'from':_0x32e216,'to':_0x18bf06[_0x112752(0x3e7)]-0x1}),!0x0):!0x1;}[_0x3b3960(0x224)](_0x109779){const _0x76d41f=_0x3b3960;this['_undoRedoService']['transformUndoRedo'](this[_0x76d41f(0x353)],_0x109779);}['_transformSelections'](_0x325037){const _0x33e50b=_0x3b3960;var _0x53b124,_0x3eafd7;(_0x3eafd7=(_0x53b124=this['_handler'])['onTransformSelections'])==null||_0x3eafd7[_0x33e50b(0x415)](_0x53b124,_0x325037);}[_0x3b3960(0x3d9)](_0x34f190){const _0x359496=_0x3b3960;var _0x18ebcb,_0xeb5515;return(_0xeb5515=(_0x18ebcb=this['_handler'])[_0x359496(0x49a)])==null?void 0x0:_0xeb5515[_0x359496(0x415)](_0x18ebcb,_0x34f190);}[_0x3b3960(0x5b6)](_0x4c3c23){const _0x12082e=_0x3b3960;var _0x18c2fd,_0x37ff74,_0x393007;return(_0x393007=(_0x37ff74=(_0x18c2fd=this[_0x12082e(0x3ef)])[_0x12082e(0x5d4)])==null?void 0x0:_0x37ff74[_0x12082e(0x415)](_0x18c2fd,_0x4c3c23))!=null?_0x393007:_0x4c3c23;}['_syncEditingCollabCursor'](_0x33fcf2){const _0x13eca0=_0x3b3960;var _0x302d96,_0x3e3ab9;if(this[_0x13eca0(0x376)]===_0x32a37d[_0x13eca0(0x361)]){const {unitID:_0x9c4c33,mutations:_0x396051,memberID:_0x42df38}=_0x33fcf2,_0x533473=_0x396051[0x0][_0x13eca0(0x358)][_0x13eca0(0x23f)];Array[_0x13eca0(0x31d)](_0x533473)&&_0x533473[_0x13eca0(0x306)]>0x0&&((_0x3e3ab9=(_0x302d96=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x3e3ab9[_0x13eca0(0x415)](_0x302d96,{'unitID':_0x9c4c33,'memberID':_0x42df38,'textRanges':_0x533473}));}}[_0x3b3960(0x246)](){const _0x4c04d7=_0x3b3960;this[_0x4c04d7(0x24b)][_0x4c04d7(0x53d)](this[_0x4c04d7(0x353)],this[_0x4c04d7(0x376)],this['_awaitingChangeset'],this[_0x4c04d7(0x223)]);}[_0x3b3960(0x3ee)](){const _0x28f002=_0x3b3960;return this['_revisionService'][_0x28f002(0x556)](this[_0x28f002(0x353)]);}[_0x3b3960(0x5a6)](){const _0x2bcf83=_0x3b3960;this['_revisionService'][_0x2bcf83(0x3b4)](this[_0x2bcf83(0x353)]);}['_executeRemoteChangeset'](_0x58694){const _0x307e51=_0x3b3960;var _0x1bba30;const _0xcc4ef7=this['_transformRemoteChangesetByIMECache'](_0x58694),_0x1c896c=_0x2015b3['sequenceExecute'](_0xcc4ef7[_0x307e51(0x2e7)],this['_commandService'],{'fromCollab':!0x0});if(!_0x1c896c[_0x307e51(0x473)])throw _0x1c896c['error']instanceof Error?_0x1c896c[_0x307e51(0x50b)]:new Error((_0x1bba30=_0x1c896c[_0x307e51(0x50b)])!=null?_0x1bba30:_0x307e51(0x5f7));this['_transformIMECache'](_0xcc4ef7),this['_transformUndoredo'](_0x58694),this[_0x307e51(0x404)](_0xcc4ef7),this['_syncEditingCollabCursor'](_0xcc4ef7),this[_0x307e51(0x5a6)]();}}let _0x51907c=class extends _0x1e4aa1{constructor(_0x5c4b3a,_0x3adbdf,_0x50427f,_0x2e68f,_0x22283f,_0x2cf407,_0x1eacd4,_0x8a3e6f,_0x443de4,_0x5be05a){const _0x54fec9=_0x3b3960;super(_0x5c4b3a,_0x3adbdf,null,[],_0x50427f,_0x8a3e6f,_0x1eacd4,_0x2e68f,_0x22283f),_0x385cfe(this,_0x54fec9(0x268),_0x54fec9(0x5e2)),(this['_injector']=_0x2cf407,this[_0x54fec9(0x501)]=_0x443de4,this['_transformService']=_0x5be05a);}[_0x3b3960(0x2eb)](_0x5201c7){const _0x1f99bf=_0x3b3960,_0xc58ea3=this[_0x1f99bf(0x3f4)][_0x1f99bf(0x385)](_0x977b19,this[_0x1f99bf(0x353)],this[_0x1f99bf(0x376)],[_0x5201c7],this[_0x1f99bf(0x3ef)]);return _0xc58ea3[_0x1f99bf(0x524)](),_0xc58ea3['_updateLocalCache'](),_0xc58ea3;}['onRemoteChangeset'](_0x1c1797){const _0x221146=_0x3b3960;if(this[_0x221146(0x541)](_0x1c1797))return this[_0x221146(0x3f4)][_0x221146(0x385)](_0x1f1e9a,this[_0x221146(0x353)],this[_0x221146(0x376)],null,[],null,[_0x1c1797],this[_0x221146(0x3ef)]);try{const _0x529d69=this[_0x221146(0x3b1)][_0x221146(0x2dc)](_0x1c1797,[_0x20d280]);if(_0x106736[_0x221146(0x58d)](_0x529d69)){const {c1Prime:_0x5040f6}=_0x529d69;return this[_0x221146(0x2a9)](_0x5040f6),this;}throw _0x529d69[_0x221146(0x50b)];}catch(_0x13fcd1){return this['_logService'][_0x221146(0x50b)](_0x13fcd1),this[_0x221146(0x438)](!0x1);}}[_0x3b3960(0x438)](_0x4d2625){const _0x3dba8a=_0x3b3960;return this[_0x3dba8a(0x3f4)][_0x3dba8a(0x385)](_0x3132e7,this[_0x3dba8a(0x353)],this[_0x3dba8a(0x376)],null,[],this['_handler'],_0x4d2625);}[_0x3b3960(0x357)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x594828=_0x3b3960;throw new Error(_0x594828(0x23e));}[_0x3b3960(0x55f)](){const _0x58b95d=_0x3b3960;return this['_injector']['createInstance'](_0x3a6b9d,this[_0x58b95d(0x353)],this[_0x58b95d(0x376)],null,[],this[_0x58b95d(0x3ef)]);}['toggleOnline'](){return this;}[_0x3b3960(0x474)](){const _0x4ebe1a=_0x3b3960;throw new Error(_0x4ebe1a(0x567));}};_0x51907c=_0x2f90f8([_0x108b1a(0x3,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354['LocalCacheService'])),_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3['IUndoRedoService']),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x106736[_0x3b3960(0x25a)])],_0x51907c);let _0x977b19=class extends _0x1e4aa1{constructor(_0x35b685,_0x4be914,_0x18da74,_0x2557ac,_0x4c8878,_0x5ba697,_0x1d42d7,_0x2a3993,_0x3e8004,_0x3635bd,_0x1c276f,_0x29def6,_0xd68029,_0x1d7fae){const _0x4a37a9=_0x3b3960;super(_0x35b685,_0x4be914,null,_0x18da74,_0x2557ac,_0x3635bd,_0x1d7fae,_0x5ba697,_0x1d42d7),_0x385cfe(this,'status',_0x4a37a9(0x4d6)),_0x385cfe(this,_0x4a37a9(0x5ba),null),_0x385cfe(this,_0x4a37a9(0x271),null),(this[_0x4a37a9(0x3f4)]=_0x4c8878,this['_memberService']=_0x2a3993,this[_0x4a37a9(0x501)]=_0x3e8004,this[_0x4a37a9(0x46c)]=_0x1c276f,this[_0x4a37a9(0x3b1)]=_0x29def6,this[_0x4a37a9(0x5b7)]=_0xd68029);}[_0x3b3960(0x2eb)](_0x35f912){const _0x5127d1=_0x3b3960;return this['_pendingMutations'][_0x5127d1(0x279)](_0x35f912),this[_0x5127d1(0x246)](),this;}['onRemoteChangeset'](_0x45ea75){const _0x48bb75=_0x3b3960;if(this[_0x48bb75(0x541)](_0x45ea75))return this[_0x48bb75(0x482)](),this['_injector']['createInstance'](_0x1f1e9a,this[_0x48bb75(0x353)],this[_0x48bb75(0x376)],null,this[_0x48bb75(0x223)],null,[_0x45ea75],this[_0x48bb75(0x3ef)]);try{const _0x48c732=this[_0x48bb75(0x3b1)][_0x48bb75(0x2dc)](_0x45ea75,this[_0x48bb75(0x223)]);if(_0x106736[_0x48bb75(0x58d)](_0x48c732)){const {c1Prime:_0x154f9c,m2Prime:_0x5995ae}=_0x48c732;this[_0x48bb75(0x2a9)](_0x154f9c);const _0x10015e=this['_injector']['createInstance'](_0x977b19,this[_0x48bb75(0x353)],this[_0x48bb75(0x376)],_0x5995ae,this[_0x48bb75(0x3ef)]);return this[_0x48bb75(0x482)](),_0x10015e[_0x48bb75(0x524)](this[_0x48bb75(0x5ba)]?Math[_0x48bb75(0x2d6)](0x0,new Date()['getTime']()-this[_0x48bb75(0x5ba)]):this['_getSendChangesetTimeout']()),_0x10015e;}throw _0x48c732[_0x48bb75(0x50b)];}catch(_0x2997e5){return this['_logService']['error'](_0x2997e5),this['_onConflict'](!0x1);}}[_0x3b3960(0x357)](){const _0x17aac2=_0x3b3960;throw new Error(_0x17aac2(0x347));}[_0x3b3960(0x311)](){const _0x242e5f=_0x3b3960;throw new Error(_0x242e5f(0x37d));}[_0x3b3960(0x55f)](){const _0x4b00de=_0x3b3960;return this['_clearScheduledTask'](),this['_injector'][_0x4b00de(0x385)](_0x3a6b9d,this['unitID'],this[_0x4b00de(0x376)],null,this[_0x4b00de(0x223)],this[_0x4b00de(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x524)](_0x2a8c3b){const _0xec9f20=_0x3b3960;_0x2a8c3b=_0x2a8c3b!=null?_0x2a8c3b:this[_0xec9f20(0x40d)](),this[_0xec9f20(0x5ba)]=new Date()['getTime'](),this[_0xec9f20(0x271)]=setTimeout(()=>{const _0x3ba981=_0xec9f20;this[_0x3ba981(0x482)]();let _0x51113b=null;switch(this[_0x3ba981(0x376)]){case _0x32a37d[_0x3ba981(0x321)]:{_0x51113b=_0x3f4fdd(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this[_0x3ba981(0x5b7)],this[_0x3ba981(0x59c)],this[_0x3ba981(0x5e7)]);break;}case _0x32a37d[_0x3ba981(0x361)]:{this[_0x3ba981(0x223)]['every'](_0x4197a6=>_0x4197a6['id']===_0xbcf55e[_0x3ba981(0x446)]['id'])?_0x51113b=_0x54f293(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this['_univerInstanceService'],this[_0x3ba981(0x59c)],this['_memberService']):_0x51113b=_0x3f4fdd(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this['_univerInstanceService'],this[_0x3ba981(0x59c)],this[_0x3ba981(0x5e7)]);break;}default:throw new Error(_0x3ba981(0x5b5)+this[_0x3ba981(0x376)]+'\x20in\x20_schedule.');}const {changeset:_0x43137e,pendingMutations:_0x573be3}=_0x51113b;this[_0x3ba981(0x3ef)]['onSendChangeset'](_0x43137e);const _0x4c4dd5=_0x573be3[_0x3ba981(0x306)]?this['_injector'][_0x3ba981(0x385)](_0x270522,this['unitID'],this['type'],_0x43137e,_0x573be3,this[_0x3ba981(0x3ef)]):this['_injector'][_0x3ba981(0x385)](_0x25747b,this[_0x3ba981(0x353)],this['type'],_0x43137e,this[_0x3ba981(0x3ef)]);_0x4c4dd5[_0x3ba981(0x246)](),this[_0x3ba981(0x3ef)][_0x3ba981(0x20e)](this,_0x4c4dd5);},_0x2a8c3b);}[_0x3b3960(0x40d)](){const _0x48d198=_0x3b3960;var _0x5c9c27;return(_0x5c9c27=this[_0x48d198(0x46c)][_0x48d198(0x584)](_0x5cb8bb))!=null?_0x5c9c27:0x7d0;}[_0x3b3960(0x474)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x15ca4e=_0x3b3960;this[_0x15ca4e(0x271)]!=null&&(clearTimeout(this[_0x15ca4e(0x271)]),this[_0x15ca4e(0x271)]=null);}[_0x3b3960(0x438)](_0xe0999f){const _0x31d12f=_0x3b3960;return this[_0x31d12f(0x482)](),this['_injector'][_0x31d12f(0x385)](_0x3132e7,this[_0x31d12f(0x353)],this[_0x31d12f(0x376)],null,this[_0x31d12f(0x223)],this[_0x31d12f(0x3ef)],_0xe0999f);}};_0x977b19=_0x2f90f8([_0x108b1a(0x4,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x582)]),_0x108b1a(0xb,_0x106736[_0x3b3960(0x25a)]),_0x108b1a(0xc,_0x2015b3['IUniverInstanceService']),_0x108b1a(0xd,_0x2015b3[_0x3b3960(0x445)])],_0x977b19);let _0x25747b=class extends _0x1e4aa1{constructor(_0x59b3b2,_0x534b93,_0x5686c1,_0x4c09ea,_0x2dcd57,_0x536c0a,_0x55c06d,_0x4390f8,_0x180da1,_0x4495ec,_0x4e0c9e){const _0x47de9d=_0x3b3960;super(_0x59b3b2,_0x534b93,_0x5686c1,[],_0x4c09ea,_0x4390f8,_0x4e0c9e,_0x536c0a,_0x55c06d),_0x385cfe(this,_0x47de9d(0x268),'awaiting'),(this[_0x47de9d(0x3f4)]=_0x2dcd57,this[_0x47de9d(0x501)]=_0x180da1,this[_0x47de9d(0x3b1)]=_0x4495ec);}[_0x3b3960(0x2eb)](_0x5dbee2){const _0x202eba=_0x3b3960,_0x268cfa=this[_0x202eba(0x3f4)][_0x202eba(0x385)](_0x270522,this[_0x202eba(0x353)],this[_0x202eba(0x376)],this[_0x202eba(0x21d)],[_0x5dbee2],this[_0x202eba(0x3ef)]);return _0x268cfa[_0x202eba(0x246)](),_0x268cfa;}[_0x3b3960(0x594)](_0x52b870){const _0x3a831e=_0x3b3960;if(this[_0x3a831e(0x541)](_0x52b870))return this['_injector'][_0x3a831e(0x385)](_0x1f1e9a,this['unitID'],this[_0x3a831e(0x376)],this[_0x3a831e(0x21d)],[],null,[_0x52b870],this[_0x3a831e(0x3ef)]);try{const _0x730f4b=this[_0x3a831e(0x3b1)]['transformChangesets']([_0x52b870],[this[_0x3a831e(0x21d)]],!0x1);if(_0x106736[_0x3a831e(0x408)](_0x730f4b)){const {c1Prime:_0x57a309,c2Prime:_0x382f88}=_0x730f4b;this[_0x3a831e(0x2a9)](_0x57a309[0x0]),_0x382f88[0x0][_0x3a831e(0x58e)]=this[_0x3a831e(0x3ee)]();const _0x49477c=this[_0x3a831e(0x3f4)][_0x3a831e(0x385)](_0x25747b,this[_0x3a831e(0x353)],this[_0x3a831e(0x376)],_0x382f88[0x0],this[_0x3a831e(0x3ef)]);return _0x49477c[_0x3a831e(0x246)](),_0x49477c;}return this[_0x3a831e(0x438)](!0x1);}catch(_0x2c0086){return this['_logService'][_0x3a831e(0x50b)](_0x2c0086),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x36582f){const _0x279192=_0x3b3960,_0x296b73=this[_0x279192(0x59c)][_0x279192(0x556)](this[_0x279192(0x353)]);if(_0x36582f[_0x279192(0x3e7)]<_0x296b73-0x1)return this;if(this[_0x279192(0x541)](_0x36582f))return this[_0x279192(0x3f4)][_0x279192(0x385)](_0x1f1e9a,this[_0x279192(0x353)],this['type'],null,[],this[_0x279192(0x21d)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2789ff=this[_0x279192(0x3f4)][_0x279192(0x385)](_0x51907c,this[_0x279192(0x353)],this[_0x279192(0x376)],this[_0x279192(0x3ef)]);return _0x2789ff[_0x279192(0x246)](),_0x2789ff;}[_0x3b3960(0x311)](_0x1b973f){const _0x3114f0=_0x3b3960;return this[_0x3114f0(0x438)](!!(_0x1b973f!=null&&_0x1b973f[_0x3114f0(0x42d)]));}['toggleOffline'](){const _0x23c9d5=_0x3b3960;return this['_injector'][_0x23c9d5(0x385)](_0x3a6b9d,this[_0x23c9d5(0x353)],this[_0x23c9d5(0x376)],this[_0x23c9d5(0x21d)],[],this[_0x23c9d5(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){const _0x1c2667=_0x3b3960;this[_0x1c2667(0x3ef)][_0x1c2667(0x546)](this[_0x1c2667(0x21d)]);}['_onConflict'](_0x54bd43){const _0x3e70c8=_0x3b3960;return this[_0x3e70c8(0x3f4)][_0x3e70c8(0x385)](_0x3132e7,this[_0x3e70c8(0x353)],this[_0x3e70c8(0x376)],this[_0x3e70c8(0x21d)],[],this[_0x3e70c8(0x3ef)],_0x54bd43);}};_0x25747b=_0x2f90f8([_0x108b1a(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x5,_0x2015b3['Inject'](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x106736['ITransformService']),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x445)])],_0x25747b);let _0x270522=class extends _0x1e4aa1{constructor(_0x200de2,_0x304870,_0xc4d797,_0x5d1b84,_0x181914,_0x47918a,_0x3fa431,_0x37381b,_0x1361dd,_0x37e7c3,_0x51f599,_0x4e44fe){const _0x5035d9=_0x3b3960;super(_0x200de2,_0x304870,_0xc4d797,_0x5d1b84,_0x181914,_0x1361dd,_0x4e44fe,_0x3fa431,_0x37381b),_0x385cfe(this,_0x5035d9(0x268),_0x5035d9(0x2d3)),(this[_0x5035d9(0x3f4)]=_0x47918a,this[_0x5035d9(0x501)]=_0x37e7c3,this[_0x5035d9(0x3b1)]=_0x51f599);}[_0x3b3960(0x2eb)](_0x47fb2a){const _0xcb14f8=_0x3b3960;return this[_0xcb14f8(0x223)][_0xcb14f8(0x279)](_0x47fb2a),this;}[_0x3b3960(0x594)](_0x3e0b84){const _0x966109=_0x3b3960;if(this[_0x966109(0x541)](_0x3e0b84))return this[_0x966109(0x3f4)][_0x966109(0x385)](_0x1f1e9a,this[_0x966109(0x353)],this[_0x966109(0x376)],this[_0x966109(0x21d)],this[_0x966109(0x223)],null,[_0x3e0b84],this['_handler']);try{const _0x389d05=this[_0x966109(0x3b1)][_0x966109(0x54b)]([_0x3e0b84],[this[_0x966109(0x21d)]],!0x1);if(_0x106736[_0x966109(0x408)](_0x389d05)){const {c1Prime:_0x3e3807,c2Prime:_0x4d90ef}=_0x389d05,_0x216120=this[_0x966109(0x3b1)][_0x966109(0x2dc)](_0x3e3807[0x0],this[_0x966109(0x223)]);if(_0x106736[_0x966109(0x58d)](_0x216120)){const {c1Prime:_0x531ffc,m2Prime:_0x10e51c}=_0x216120;return this[_0x966109(0x2a9)](_0x531ffc),_0x4d90ef[0x0][_0x966109(0x58e)]=this[_0x966109(0x3ee)](),this[_0x966109(0x3f4)]['createInstance'](_0x270522,this[_0x966109(0x353)],this[_0x966109(0x376)],_0x4d90ef[0x0],_0x10e51c,this['_handler']);}throw _0x216120[_0x966109(0x50b)];}throw _0x389d05[_0x966109(0x50b)];}catch(_0x483b33){return this[_0x966109(0x501)][_0x966109(0x50b)](_0x483b33),this[_0x966109(0x438)](!0x1);}}[_0x3b3960(0x357)](_0x415def){const _0x556d25=_0x3b3960;if(this[_0x556d25(0x541)](_0x415def))return this['_injector'][_0x556d25(0x385)](_0x1f1e9a,this[_0x556d25(0x353)],this[_0x556d25(0x376)],null,this[_0x556d25(0x223)],this[_0x556d25(0x21d)],[],this['_handler']);this[_0x556d25(0x5a6)]();const _0x2a4101=this[_0x556d25(0x3f4)]['createInstance'](_0x977b19,this[_0x556d25(0x353)],this[_0x556d25(0x376)],this[_0x556d25(0x223)],this['_handler']);return _0x2a4101['_schedule'](),_0x2a4101['_updateLocalCache'](),_0x2a4101;}[_0x3b3960(0x311)](_0x52c661){const _0x6c363d=_0x3b3960;return this[_0x6c363d(0x438)](!!(_0x52c661!=null&&_0x52c661[_0x6c363d(0x42d)]));}[_0x3b3960(0x55f)](){const _0x592168=_0x3b3960;return this[_0x592168(0x3f4)]['createInstance'](_0x3a6b9d,this['unitID'],this['type'],this[_0x592168(0x21d)],this['_pendingMutations'],this[_0x592168(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){const _0x362a8c=_0x3b3960;this[_0x362a8c(0x3ef)][_0x362a8c(0x546)](this[_0x362a8c(0x21d)]);}[_0x3b3960(0x438)](_0x11b425){const _0x9c7dff=_0x3b3960;return this[_0x9c7dff(0x3f4)][_0x9c7dff(0x385)](_0x3132e7,this[_0x9c7dff(0x353)],this[_0x9c7dff(0x376)],null,this[_0x9c7dff(0x223)],this[_0x9c7dff(0x3ef)],_0x11b425);}};_0x270522=_0x2f90f8([_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x7,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x1f3)]),_0x108b1a(0xa,_0x106736[_0x3b3960(0x25a)]),_0x108b1a(0xb,_0x2015b3[_0x3b3960(0x445)])],_0x270522);let _0x3132e7=class extends _0x1e4aa1{constructor(_0x246c90,_0x5b4db0,_0x221524,_0x4c8d84,_0x340e98,_0x38af2b=!0x1,_0x107f8a,_0x18416f,_0x319aab,_0x5298f1,_0x3be85f,_0x52e731,_0x18c1a8){const _0xd08c46=_0x3b3960;super(_0x246c90,_0x5b4db0,_0x221524,_0x4c8d84,_0x340e98,_0x18416f,_0x319aab,_0x3be85f,_0x5298f1),_0x385cfe(this,'status',_0xd08c46(0x34b)),(this[_0xd08c46(0x231)]=_0x38af2b,this[_0xd08c46(0x518)]=_0x107f8a,this[_0xd08c46(0x23b)]=_0x52e731,this[_0xd08c46(0x419)]=_0x18c1a8,this[_0xd08c46(0x542)](),this['_clearLocalCache'](),this[_0xd08c46(0x372)]());}[_0x3b3960(0x2eb)](){return this;}[_0x3b3960(0x594)](){return this;}[_0x3b3960(0x357)](){return this;}[_0x3b3960(0x311)](){return this;}[_0x3b3960(0x55f)](){return this;}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b3960(0x5c4)](){const _0x3f1fb0=_0x3b3960;this[_0x3f1fb0(0x24b)]['updateOfflineData'](this[_0x3f1fb0(0x353)],this['type'],null,[]);}[_0x3b3960(0x542)](){const _0x39282b=_0x3b3960;this[_0x39282b(0x231)]?this[_0x39282b(0x419)][_0x39282b(0x2c3)]({'title':this[_0x39282b(0x23b)]['t'](_0x39282b(0x5e3)),'content':this[_0x39282b(0x23b)]['t'](_0x39282b(0x499)),'type':_0x39282b(0x50b),'duration':0x0}):this[_0x39282b(0x419)]['show']({'title':this[_0x39282b(0x23b)]['t'](_0x39282b(0x5b3)),'content':this[_0x39282b(0x23b)]['t']('conflict.content'),'type':_0x39282b(0x50b),'duration':0x0});}[_0x3b3960(0x372)](){const _0x2b8702=_0x3b3960;this[_0x2b8702(0x518)][_0x2b8702(0x49e)](new _0x3d1b6a[(_0x2b8702(0x405))](this[_0x2b8702(0x353)])['id'],!0x1);}};_0x3132e7=_0x2f90f8([_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x5d7)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x445)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0xb,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x108b1a(0xc,_0x44b766[_0x3b3960(0x27b)])],_0x3132e7);let _0x3a6b9d=class extends _0x1e4aa1{constructor(_0x2be94d,_0x5469cd,_0x110f5d,_0x327270,_0x25dccb,_0x38775a,_0x20c04f,_0x357377,_0x2605f4,_0x34fcf0){const _0x56ccb9=_0x3b3960;super(_0x2be94d,_0x5469cd,_0x110f5d,_0x327270,_0x25dccb,_0x2605f4,_0x34fcf0,_0x20c04f,_0x357377),_0x385cfe(this,_0x56ccb9(0x268),_0x56ccb9(0x5d2)),this[_0x56ccb9(0x3f4)]=_0x38775a;}[_0x3b3960(0x2eb)](_0x1f1839){const _0x2e0b36=_0x3b3960;return this[_0x2e0b36(0x223)][_0x2e0b36(0x279)](_0x1f1839),this['_updateLocalCache'](),this;}[_0x3b3960(0x594)](_0xb38988){const _0x18af3d=_0x3b3960;throw new Error(_0x18af3d(0x477));}[_0x3b3960(0x357)](){const _0x192b6f=_0x3b3960;throw new Error(_0x192b6f(0x483));}[_0x3b3960(0x311)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3b3960(0x55f)](){return this;}[_0x3b3960(0x328)](){const _0x59250d=_0x3b3960,{_injector:_0x1eef37,_pendingMutations:_0x1864fa,_awaitingChangeset:_0x46a692,unitID:_0x5bf1fa,_handler:_0x4f151d,type:_0x589a39}=this,_0x2d1603=_0x3fc11b(_0x1eef37,_0x5bf1fa,_0x589a39,_0x46a692,_0x1864fa,_0x4f151d);return _0x2d1603 instanceof _0x977b19?_0x2d1603[_0x59250d(0x524)]():(_0x2d1603 instanceof _0x270522||_0x2d1603 instanceof _0x25747b)&&_0x2d1603[_0x59250d(0x474)](),_0x2d1603;}[_0x3b3960(0x474)](){const _0x22b6bf=_0x3b3960;throw new Error(_0x22b6bf(0x3e6));}};_0x3a6b9d=_0x2f90f8([_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x445)])],_0x3a6b9d);let _0x1f1e9a=class extends _0x1e4aa1{constructor(_0x9ac8a9,_0x379767,_0x22fa3d,_0x478687,_0x5d6755,_0x48921a,_0x4c9cea,_0x3d899e,_0xdcc0ff,_0x56c643,_0x25d718,_0x29e325,_0x1c6c6d,_0x28c2d4){const _0x5d3c1c=_0x3b3960;super(_0x9ac8a9,_0x379767,_0x22fa3d,_0x478687,_0x4c9cea,_0x29e325,_0x1c6c6d,_0xdcc0ff,_0x56c643),_0x385cfe(this,_0x5d3c1c(0x268),_0x5d3c1c(0x3ce)),(this[_0x5d3c1c(0x496)]=_0x5d6755,this[_0x5d3c1c(0x3b5)]=_0x48921a,this[_0x5d3c1c(0x3f4)]=_0x3d899e,this[_0x5d3c1c(0x501)]=_0x25d718,this['_transformService']=_0x28c2d4);}[_0x3b3960(0x572)](_0x42eb38){const _0x431cee=_0x3b3960;try{const _0x529f63=[..._0x42eb38,...this[_0x431cee(0x3b5)]],_0xfa6284=[this[_0x431cee(0x21d)]||this[_0x431cee(0x496)]][_0x431cee(0x493)](_0x2c4566=>!!_0x2c4566);let _0x45660c,_0x442c08;if(_0xfa6284[_0x431cee(0x306)]){const _0x4a2f28=this[_0x431cee(0x3b1)][_0x431cee(0x54b)](_0x529f63,_0xfa6284,!0x1);if(!_0x106736[_0x431cee(0x408)](_0x4a2f28))throw _0x4a2f28[_0x431cee(0x50b)];_0x45660c=_0x4a2f28[_0x431cee(0x4f4)],_0x442c08=_0x4a2f28[_0x431cee(0x30c)];}else _0x45660c=_0x529f63,_0x442c08=[];let _0x253ee3=this[_0x431cee(0x223)];_0x45660c[_0x431cee(0x4d1)](_0x6b1b0d=>{const _0x4a4e4a=_0x431cee;let _0x5cf880;if(_0x253ee3[_0x4a4e4a(0x306)]){const _0x446409=this['_transformService'][_0x4a4e4a(0x2dc)](_0x6b1b0d,_0x253ee3);if(!_0x106736[_0x4a4e4a(0x58d)](_0x446409))throw _0x446409[_0x4a4e4a(0x50b)];_0x5cf880=_0x446409['c1Prime'],_0x253ee3=_0x446409[_0x4a4e4a(0x4af)];}else _0x5cf880=_0x6b1b0d;this[_0x4a4e4a(0x2a9)](_0x5cf880);}),this[_0x431cee(0x496)]&&this[_0x431cee(0x5a6)](),this[_0x431cee(0x21d)]&&_0x442c08[_0x431cee(0x306)]&&(_0x442c08[0x0][_0x431cee(0x58e)]=this[_0x431cee(0x3ee)]());let _0x5f032a;if(this[_0x431cee(0x21d)]&&_0x253ee3[_0x431cee(0x306)]!==0x0)_0x5f032a=this[_0x431cee(0x3f4)]['createInstance'](_0x270522,this['unitID'],this['type'],_0x442c08[0x0],_0x253ee3,this[_0x431cee(0x3ef)]);else{if(this[_0x431cee(0x21d)]&&_0x253ee3['length']===0x0)_0x442c08[0x0][_0x431cee(0x58e)]=this[_0x431cee(0x3ee)](),_0x5f032a=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x25747b,this[_0x431cee(0x353)],this[_0x431cee(0x376)],_0x442c08[0x0],this[_0x431cee(0x3ef)]);else{if(_0x253ee3[_0x431cee(0x306)]!==0x0){const _0x3a95d0=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x977b19,this['unitID'],this[_0x431cee(0x376)],_0x253ee3,this[_0x431cee(0x3ef)]);_0x3a95d0[_0x431cee(0x524)](),_0x5f032a=_0x3a95d0;}else _0x5f032a=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x51907c,this[_0x431cee(0x353)],this['type'],this[_0x431cee(0x3ef)]);}}return _0x5f032a[_0x431cee(0x246)](),_0x5f032a;}catch(_0x257d81){return this[_0x431cee(0x501)][_0x431cee(0x50b)]('[FetchMissState]',_0x431cee(0x57d),_0x257d81),this[_0x431cee(0x3f4)]['createInstance'](_0x3132e7,this[_0x431cee(0x353)],this[_0x431cee(0x376)],this[_0x431cee(0x21d)],this['_pendingMutations'],this[_0x431cee(0x3ef)],!0x1);}}[_0x3b3960(0x474)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b3960(0x2eb)](_0x3165ff){const _0xf9f57b=_0x3b3960;return this[_0xf9f57b(0x223)][_0xf9f57b(0x279)](_0x3165ff),this;}[_0x3b3960(0x594)](_0x559930){const _0x45bb3a=_0x3b3960;return this[_0x45bb3a(0x3b5)][_0x45bb3a(0x279)](_0x559930),this;}[_0x3b3960(0x357)](_0x24fe6a){const _0xc2ac88=_0x3b3960;if(this[_0xc2ac88(0x21d)])return this['_acknowledgedAwaitingChangeset']=this[_0xc2ac88(0x21d)],this[_0xc2ac88(0x21d)]=null,this;throw new Error(_0xc2ac88(0x3a4));}['onRemoteRej'](_0x4f26bc){const _0x44e31d=_0x3b3960;return this[_0x44e31d(0x438)](!!(_0x4f26bc!=null&&_0x4f26bc[_0x44e31d(0x42d)]));}[_0x3b3960(0x55f)](){const _0x530618=_0x3b3960;return this[_0x530618(0x3f4)]['createInstance'](_0x3a6b9d,this[_0x530618(0x353)],this[_0x530618(0x376)],this[_0x530618(0x21d)],this[_0x530618(0x223)],this[_0x530618(0x3ef)]);}[_0x3b3960(0x328)](){return this;}['_onConflict'](_0x38d4a3){const _0x4b2478=_0x3b3960;return this[_0x4b2478(0x3f4)][_0x4b2478(0x385)](_0x3132e7,this['unitID'],this[_0x4b2478(0x376)],this['_awaitingChangeset'],this[_0x4b2478(0x223)],this[_0x4b2478(0x3ef)],_0x38d4a3);}};_0x1f1e9a=_0x2f90f8([_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x1f3)]),_0x108b1a(0xb,_0x2015b3['ICommandService']),_0x108b1a(0xc,_0x2015b3[_0x3b3960(0x445)]),_0x108b1a(0xd,_0x106736[_0x3b3960(0x25a)])],_0x1f1e9a);function _0x3fc11b(_0x59fabe,_0x3686ff,_0x443260,_0x59dc4f,_0x3444bd,_0x4fa73d){const _0x4ba9d2=_0x3b3960;return _0x59dc4f&&_0x3444bd[_0x4ba9d2(0x306)]?_0x59fabe[_0x4ba9d2(0x385)](_0x270522,_0x3686ff,_0x443260,_0x59dc4f,_0x3444bd,_0x4fa73d):_0x59dc4f?_0x59fabe[_0x4ba9d2(0x385)](_0x25747b,_0x3686ff,_0x443260,_0x59dc4f,_0x4fa73d):_0x3444bd[_0x4ba9d2(0x306)]?_0x59fabe[_0x4ba9d2(0x385)](_0x977b19,_0x3686ff,_0x443260,_0x3444bd,_0x4fa73d):_0x59fabe[_0x4ba9d2(0x385)](_0x51907c,_0x3686ff,_0x443260,_0x4fa73d);}var _0x3e6c42=Object[_0x3b3960(0x57c)],_0xeff16f=Object[_0x3b3960(0x2c2)],_0x525818=(_0x56f830,_0x29e43d,_0x42b0c7,_0x2429e9)=>{const _0x248c89=_0x3b3960;for(var _0x4a5cc4=_0x2429e9>0x1?void 0x0:_0x2429e9?_0xeff16f(_0x29e43d,_0x42b0c7):_0x29e43d,_0x4f4876=_0x56f830[_0x248c89(0x306)]-0x1,_0xf3aa43;_0x4f4876>=0x0;_0x4f4876--)(_0xf3aa43=_0x56f830[_0x4f4876])&&(_0x4a5cc4=(_0x2429e9?_0xf3aa43(_0x29e43d,_0x42b0c7,_0x4a5cc4):_0xf3aa43(_0x4a5cc4))||_0x4a5cc4);return _0x2429e9&&_0x4a5cc4&&_0x3e6c42(_0x29e43d,_0x42b0c7,_0x4a5cc4),_0x4a5cc4;},_0x138926=(_0xe0857d,_0x5d8b01)=>(_0x29184b,_0x179033)=>_0x5d8b01(_0x29184b,_0x179033,_0xe0857d);_0x2c3354[_0x3b3960(0x3e2)]=class extends _0x2015b3['RxDisposable']{constructor(_0x54730b,_0x3e8a01,_0x1d287c){const _0x2bc666=_0x3b3960;super(),_0x385cfe(this,_0x2bc666(0x2ff),new Map()),_0x385cfe(this,_0x2bc666(0x284),new _0x345abe[(_0x2bc666(0x421))]()),(this[_0x2bc666(0x3f4)]=_0x54730b,this[_0x2bc666(0x35a)]=_0x3e8a01,this['_univerInstanceService']=_0x1d287c,this[_0x2bc666(0x4a1)]());}['dispose'](){const _0x876d97=_0x3b3960;super[_0x876d97(0x472)](),this['_entities'][_0x876d97(0x4d1)](_0x20b1fe=>_0x20b1fe[_0x876d97(0x472)]()),this[_0x876d97(0x2ff)][_0x876d97(0x577)]();}[_0x3b3960(0x40e)](_0x474292){const _0x4918d2=_0x3b3960;var _0x2922c4;return(_0x2922c4=this[_0x4918d2(0x2ff)]['get'](_0x474292))!=null?_0x2922c4:null;}[_0x3b3960(0x21c)](_0x3f3e3a){const _0x48ebbf=_0x3b3960,_0x5d6cca=this[_0x48ebbf(0x40e)](_0x3f3e3a);return _0x5d6cca?_0x345abe['of'](_0x5d6cca):this[_0x48ebbf(0x284)][_0x48ebbf(0x2d1)](_0x2cc613[_0x48ebbf(0x493)](_0x174720=>_0x174720['unitID']===_0x3f3e3a));}['_init'](){const _0x533400=_0x3b3960;this[_0x533400(0x5b7)][_0x533400(0x388)](_0x2015b3['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]),_0x2cc613[_0x533400(0x402)](0x10))['subscribe'](async _0xaa0fcb=>{const _0x2bc082=_0x533400,_0x3c8054=_0xaa0fcb['getUnitId'](),_0x2e092d=await this[_0x2bc082(0x4eb)](_0x3c8054,_0x32a37d['UNIVER_SHEET']);this[_0x2bc082(0x2ff)]['set'](_0x3c8054,_0x2e092d);}),this[_0x533400(0x5b7)]['getTypeOfUnitAdded$'](_0x2015b3['UniverInstanceType'][_0x533400(0x361)])['pipe'](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]),_0x2cc613['delay'](0x10))[_0x533400(0x2d1)](_0x2cc613[_0x533400(0x493)](_0x28578b=>!_0x28578b[_0x533400(0x304)]()[_0x533400(0x2d7)]('__')))[_0x533400(0x35b)](async _0x4a9fbe=>{const _0x43b755=_0x533400,_0x2d79a0=_0x4a9fbe[_0x43b755(0x304)](),_0x3347bb=await this['_startCollaboration'](_0x2d79a0,_0x32a37d['UNIVER_DOC']);this[_0x43b755(0x2ff)][_0x43b755(0x420)](_0x2d79a0,_0x3347bb);}),_0x345abe['merge'](this[_0x533400(0x5b7)][_0x533400(0x3d0)](_0x2015b3[_0x533400(0x3a8)][_0x533400(0x321)]),this[_0x533400(0x5b7)][_0x533400(0x3d0)](_0x2015b3[_0x533400(0x3a8)]['UNIVER_DOC']))[_0x533400(0x2d1)](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]))[_0x533400(0x35b)](_0x269dad=>{const _0x290307=_0x533400,_0x4df1f6=_0x269dad[_0x290307(0x304)](),_0x5b009c=this['_entities'][_0x290307(0x3b9)](_0x4df1f6);_0x5b009c&&(_0x5b009c[_0x290307(0x472)](),this[_0x290307(0x2ff)][_0x290307(0x431)](_0x4df1f6));});}async['_startCollaboration'](_0x404514,_0x1ec39f){const _0x1546c3=_0x3b3960,_0xd6fa9e=await this[_0x1546c3(0x35a)][_0x1546c3(0x5db)](_0x404514),_0x583bc9=this['_injector'][_0x1546c3(0x385)](this[_0x1546c3(0x5df)](_0x1ec39f),_0x404514,_0x1ec39f,_0xd6fa9e);return await _0x583bc9[_0x1546c3(0x595)](),this[_0x1546c3(0x284)][_0x1546c3(0x2b0)](_0x583bc9),_0x583bc9;}[_0x3b3960(0x5df)](_0x4b3c95){const _0x4a99ba=_0x3b3960;switch(_0x4b3c95){case _0x32a37d[_0x4a99ba(0x361)]:return _0x1e6df4;case _0x32a37d['UNIVER_SHEET']:return _0x2c3354[_0x4a99ba(0x2e6)];default:throw new Error(_0x4a99ba(0x5d6)+_0x4b3c95);}}},_0x2c3354[_0x3b3960(0x3e2)]=_0x525818([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x206)],_0x2c3354[_0x3b3960(0x3e2)]),_0x138926(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2c3354['CollaborationSessionService'])),_0x138926(0x2,_0x2015b3['IUniverInstanceService'])],_0x2c3354[_0x3b3960(0x3e2)]);let _0x4e565d=class extends _0x2015b3['RxDisposable']{constructor(_0x1bc658,_0x15f084,_0x1f68c5,_0x42b041,_0x41cc67,_0x8f3450,_0x6ed2d8,_0x440f0b,_0x398b6f,_0x13a1d1,_0x5d9388,_0x360724,_0x57d566){const _0xa95638=_0x3b3960;super(),_0x385cfe(this,_0xa95638(0x503),new _0x345abe[(_0xa95638(0x2f9))](null)),_0x385cfe(this,_0xa95638(0x46d),this['_state$'][_0xa95638(0x348)]()),_0x385cfe(this,_0xa95638(0x2c5)),_0x385cfe(this,'_collaborationPaused',!0x1),_0x385cfe(this,'status$',this[_0xa95638(0x46d)]['pipe'](_0x2cc613[_0xa95638(0x522)](_0x1f58e1=>_0x1f58e1?_0x1f58e1['status']:_0xe45813['OFFLINE']),_0x2cc613[_0xa95638(0x4fa)](0x1))),_0x385cfe(this,_0xa95638(0x3eb),!0x1),_0x385cfe(this,_0xa95638(0x4d9),[]),(this['unitID']=_0x1bc658,this[_0xa95638(0x267)]=_0x15f084,this[_0xa95638(0x21b)]=_0x1f68c5,this[_0xa95638(0x3f4)]=_0x42b041,this[_0xa95638(0x24b)]=_0x41cc67,this[_0xa95638(0x3e5)]=_0x8f3450,this[_0xa95638(0x23b)]=_0x6ed2d8,this['_revisionService']=_0x440f0b,this[_0xa95638(0x501)]=_0x398b6f,this[_0xa95638(0x286)]=_0x13a1d1,this[_0xa95638(0x5ea)]=_0x5d9388,this[_0xa95638(0x518)]=_0x360724,this[_0xa95638(0x245)]=_0x57d566);}get[_0x3b3960(0x283)](){const _0xa9f018=_0x3b3960;return this[_0xa9f018(0x2c5)];}async[_0x3b3960(0x595)](){const _0xe90c86=_0x3b3960;if(this[_0xe90c86(0x283)])throw new Error(_0xe90c86(0x326));await this[_0xe90c86(0x4a1)]();}[_0x3b3960(0x200)](){const _0xd90574=_0x3b3960;return this[_0xd90574(0x248)]=!0x0,_0x2015b3['toDisposable'](()=>{const _0x3340b7=_0xd90574;this[_0x3340b7(0x248)]=!0x1,this[_0x3340b7(0x3c3)]();});}[_0x3b3960(0x212)](_0x264360){const _0x5e06d8=_0x3b3960;this[_0x5e06d8(0x2c5)]=_0x264360,this[_0x5e06d8(0x503)][_0x5e06d8(0x2b0)](_0x264360);}async[_0x3b3960(0x4a1)](){const _0x136bde=_0x3b3960;var _0x1e5797;return this[_0x136bde(0x212)](await this[_0x136bde(0x365)]()),this[_0x136bde(0x245)]&&((_0x1e5797=this['_singleActiveUnitService'])==null||_0x1e5797[_0x136bde(0x539)](this[_0x136bde(0x353)]),this[_0x136bde(0x369)](_0x2015b3['toDisposable'](this['_singleActiveUnitService'][_0x136bde(0x5f4)](this[_0x136bde(0x353)])[_0x136bde(0x35b)](_0x2e38cf=>{const _0x1f1b7b=_0x136bde;this[_0x1f1b7b(0x501)][_0x1f1b7b(0x210)](_0x1f1b7b(0x5ae),_0x1f1b7b(0x39b),_0x2e38cf),_0x2e38cf===_0x2d9e3c[_0x1f1b7b(0x393)]?(this[_0x1f1b7b(0x5ea)][_0x1f1b7b(0x2c3)]({'content':this['_localeService']['t'](_0x1f1b7b(0x275)),'type':_0x54ac63['MessageType'][_0x1f1b7b(0x331)]}),this[_0x1f1b7b(0x518)]['updatePermissionPoint'](new _0x3d1b6a[(_0x1f1b7b(0x405))](this[_0x1f1b7b(0x353)])['id'],!0x1)):this[_0x1f1b7b(0x518)][_0x1f1b7b(0x49e)](new _0x3d1b6a['WorkbookEditablePermission'](this[_0x1f1b7b(0x353)])['id'],!0x0);})))),this['disposeWithMe'](_0x2015b3[_0x136bde(0x31c)](this['_session']['sessionStatus$']['subscribe'](_0x4539da=>{const _0x4566b2=_0x136bde;_0x4539da===_0x510b8a[_0x4566b2(0x457)]?this['_toggleOnline']():_0x4539da===_0x510b8a[_0x4566b2(0x461)]&&this['_toggleOffline']();}))),this[_0x136bde(0x369)](_0x2015b3[_0x136bde(0x31c)](this[_0x136bde(0x21b)][_0x136bde(0x4ca)][_0x136bde(0x35b)](_0x142c95=>{const _0x51e25c=_0x136bde;try{switch(_0x142c95[_0x51e25c(0x4aa)]){case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x2f1)]:{this[_0x51e25c(0x327)](_0x106736[_0x51e25c(0x41d)](_0x142c95[_0x51e25c(0x3e0)]));break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x303)]:{this[_0x51e25c(0x428)](_0x142c95[_0x51e25c(0x3e0)]);break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x4f9)]:{this['_onRemoteRejected']();break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x426)]:{this[_0x51e25c(0x4c0)](_0x142c95[_0x51e25c(0x3e0)][_0x51e25c(0x2df)][_0x51e25c(0x522)](_0x3584fe=>_0x106736[_0x51e25c(0x41d)](_0x3584fe)));break;}case _0x106736[_0x51e25c(0x43e)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x4136f8){throw console[_0x51e25c(0x50b)](_0x51e25c(0x53f),_0x4136f8),_0x4136f8;}}))),this[_0x136bde(0x2c5)];}[_0x3b3960(0x4b5)](){const _0x641a48=_0x3b3960;this[_0x641a48(0x3eb)]=!0x1;}['_lockTransition'](){const _0x18f855=_0x3b3960;if(this[_0x18f855(0x3eb)])throw new Error(_0x18f855(0x5c0));this[_0x18f855(0x3eb)]=!0x0;}[_0x3b3960(0x29c)](_0x349b30){const _0x482cd8=_0x3b3960;this[_0x482cd8(0x274)](),this[_0x482cd8(0x212)](this[_0x482cd8(0x2c5)][_0x482cd8(0x2eb)](_0x349b30)),this[_0x482cd8(0x4b5)]();}[_0x3b3960(0x327)](_0x52550f){const _0x381bba=_0x3b3960;if(!(_0x52550f['revision']<=this[_0x381bba(0x59c)][_0x381bba(0x556)](this[_0x381bba(0x353)]))){if(this[_0x381bba(0x248)]){this['_remoteChangesetQueue']['push'](_0x52550f);return;}this['_applyRemoteChangeset'](_0x52550f);}}[_0x3b3960(0x3c3)](){const _0x1cac59=_0x3b3960;this['_remoteChangesetQueue'][_0x1cac59(0x4d1)](_0x596772=>this['_applyRemoteChangeset'](_0x596772)),this[_0x1cac59(0x4d9)]=[];}[_0x3b3960(0x2be)](_0x28ca20){const _0x2ceedb=_0x3b3960,_0x43211b=this[_0x2ceedb(0x3e5)][_0x2ceedb(0x50c)][_0x2ceedb(0x3a2)](this[_0x2ceedb(0x3e5)][_0x2ceedb(0x50c)][_0x2ceedb(0x4d5)]()[_0x2ceedb(0x2ae)])(_0x28ca20[_0x2ceedb(0x2e7)],null)||_0x28ca20['mutations'],_0x2523e7={..._0x28ca20,'mutations':_0x43211b};this[_0x2ceedb(0x274)](),this[_0x2ceedb(0x212)](this['_state'][_0x2ceedb(0x594)](_0x2523e7)),this['_unlockTransition']();}[_0x3b3960(0x428)](_0x23742b){const _0x2c18d6=_0x3b3960;this[_0x2c18d6(0x274)](),this[_0x2c18d6(0x212)](this[_0x2c18d6(0x2c5)]['onRemoteAck'](_0x23742b)),this[_0x2c18d6(0x4b5)]();}[_0x3b3960(0x3cb)](_0x451759){const _0x448abd=_0x3b3960;this[_0x448abd(0x274)](),this[_0x448abd(0x212)](this[_0x448abd(0x2c5)][_0x448abd(0x311)](_0x451759)),this[_0x448abd(0x4b5)]();}[_0x3b3960(0x4c0)](_0x6e7f9e){const _0x3ad0f1=_0x3b3960;if(!(this[_0x3ad0f1(0x2c5)]instanceof _0x1f1e9a))throw new TypeError(_0x3ad0f1(0x4ae));const _0x47c31e=_0x6e7f9e[_0x3ad0f1(0x522)](_0x6a9dd0=>{const _0x3fef82=_0x3ad0f1,_0x15aab6=this['_compressMutationService'][_0x3fef82(0x50c)][_0x3fef82(0x3a2)](this[_0x3fef82(0x3e5)]['interceptor'][_0x3fef82(0x4d5)]()['COMPRESS_MUTATION_APPLY'])(_0x6a9dd0[_0x3fef82(0x2e7)],null)||_0x6a9dd0[_0x3fef82(0x2e7)];return{..._0x6a9dd0,'mutations':_0x15aab6};});this['_lockTransition'](),this[_0x3ad0f1(0x212)](this[_0x3ad0f1(0x2c5)][_0x3ad0f1(0x572)](_0x47c31e)),this[_0x3ad0f1(0x4b5)]();}['_toggleOffline'](){const _0x21ddb3=_0x3b3960;this[_0x21ddb3(0x274)](),this[_0x21ddb3(0x212)](this['_state']['toggleOffline']()),this[_0x21ddb3(0x4b5)]();}[_0x3b3960(0x258)](){const _0x280939=_0x3b3960;this['_lockTransition'](),this['_updateState'](this[_0x280939(0x2c5)]['toggleOnline']()),this[_0x280939(0x4b5)]();}async[_0x3b3960(0x365)](){return new Promise(_0x4c04d6=>{const _0x543f0f=_0x41fb;this['_session']['sessionStatus$'][_0x543f0f(0x2d1)](_0x2cc613[_0x543f0f(0x46a)](0x1))[_0x543f0f(0x35b)](async _0x50c121=>{const _0x1db049=_0x543f0f;_0x4c04d6(await this[_0x1db049(0x417)](_0x50c121===_0x510b8a[_0x1db049(0x457)]));});});}[_0x3b3960(0x4a5)](){const _0xd572a5=this['unitID'];return{'onStateChange':(_0x450dbe,_0x15d353)=>{const _0x5ab441=_0x41fb;if(_0x450dbe!==this[_0x5ab441(0x2c5)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x450dbe[_0x5ab441(0x268)]+_0x5ab441(0x26c)+_0x15d353['status']+'\x0aCurrent:\x20'+this[_0x5ab441(0x2c5)][_0x5ab441(0x268)]);this[_0x5ab441(0x212)](_0x15d353);},'onSendChangeset':_0x10a1fc=>{const _0x4d4e72=_0x41fb,_0x38f359={'eventID':_0x106736[_0x4d4e72(0x43e)][_0x4d4e72(0x398)],'data':{'unitID':_0x10a1fc['unitID'],'unitType':this[_0x4d4e72(0x267)],'changeset':_0x10a1fc,'memberID':this['_session']['getMemberID']()}};this[_0x4d4e72(0x21b)][_0x4d4e72(0x42b)](_0x38f359,this[_0x4d4e72(0x353)]);},'onMissingChangesets':({from:_0x488394,to:_0x2bcdd2})=>{const _0x5ccf0e=_0x41fb;this['_logService'][_0x5ccf0e(0x210)](_0x5ccf0e(0x5ae),_0x5ccf0e(0x566)+_0x488394+_0x5ccf0e(0x40f)+_0x2bcdd2);const _0x3ff58b={'eventID':_0x106736['CollaborationEvent'][_0x5ccf0e(0x3da)],'data':{'unitID':_0xd572a5,'unitType':this[_0x5ccf0e(0x267)],'from':_0x488394,'to':_0x2bcdd2}};this[_0x5ccf0e(0x21b)]['send'](_0x3ff58b,this[_0x5ccf0e(0x353)]);}};}async['_createInitialStateImpl'](_0x81fa6c){const _0xa6b1a2=_0x3b3960;var _0xff15c5,_0x2c3e99;const _0x11549b=await this['_localCacheService'][_0xa6b1a2(0x56a)](this[_0xa6b1a2(0x353)]),_0x2b51c1=(_0xff15c5=_0x11549b==null?void 0x0:_0x11549b['mutations'])!=null?_0xff15c5:[],_0x54fd73=(_0x2c3e99=_0x11549b==null?void 0x0:_0x11549b[_0xa6b1a2(0x1f2)])!=null?_0x2c3e99:null,_0x37b269=this[_0xa6b1a2(0x353)];try{this[_0xa6b1a2(0x507)](_0x54fd73,_0x2b51c1);}catch(_0x4d20b9){this[_0xa6b1a2(0x501)][_0xa6b1a2(0x50b)](_0x4d20b9);}const _0x5d7112=this['_createHandler']();if(_0x81fa6c){const _0x2c8601=_0x3fc11b(this['_injector'],_0x37b269,this['_type'],_0x54fd73,_0x2b51c1,_0x5d7112);return _0x2c8601 instanceof _0x977b19?_0x2c8601[_0xa6b1a2(0x524)]():(_0x2c8601 instanceof _0x270522||_0x2c8601 instanceof _0x25747b)&&_0x2c8601[_0xa6b1a2(0x474)](),_0x2c8601;}return this['_injector'][_0xa6b1a2(0x385)](_0x3a6b9d,_0x37b269,this['_type'],_0x54fd73,_0x2b51c1,_0x5d7112);}['_replayCachedMutations'](_0x23a3de,_0xad18d7){const _0x198a30=_0x3b3960;var _0x5668fa,_0x2ab2c5;const _0x3d8df0=this[_0x198a30(0x3e5)][_0x198a30(0x50c)]['fetchThroughInterceptors'](this[_0x198a30(0x3e5)]['interceptor'][_0x198a30(0x4d5)]()[_0x198a30(0x2ae)]);(_0x5668fa=_0x3d8df0((_0x23a3de==null?void 0x0:_0x23a3de['mutations'])||[],null))==null||_0x5668fa[_0x198a30(0x4d1)](_0x503b37=>this['_commandService'][_0x198a30(0x44d)](_0x503b37['id'],_0x503b37['params'])),(_0x2ab2c5=_0x3d8df0(_0xad18d7||[],null))==null||_0x2ab2c5['forEach'](_0x58f152=>this['_commandService'][_0x198a30(0x44d)](_0x58f152['id'],_0x58f152[_0x198a30(0x358)]));}};_0x4e565d=_0x525818([_0x138926(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x51e)])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x138926(0x7,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x138926(0x8,_0x2015b3[_0x3b3960(0x1f3)]),_0x138926(0x9,_0x2015b3[_0x3b3960(0x259)]),_0x138926(0xa,_0x44b766['IMessageService']),_0x138926(0xb,_0x2015b3['IPermissionService']),_0x138926(0xc,_0x2015b3[_0x3b3960(0x5e4)](_0x55925e))],_0x4e565d);let _0x1e6df4=class extends _0x4e565d{constructor(_0x7d5afe,_0x98e30a,_0xee6422,_0x51eea2,_0x52096b,_0x20d1ae,_0x2504c9,_0x334ec7,_0x4ed500,_0x9d6835,_0x2ef582,_0x25acf3,_0x5b858c,_0xd26b74,_0x3f5b41,_0x3f39ac,_0x2a40f2){const _0x3f1f55=_0x3b3960;super(_0x7d5afe,_0x98e30a,_0xee6422,_0x51eea2,_0x52096b,_0x20d1ae,_0x2504c9,_0x334ec7,_0x5b858c,_0xd26b74,_0x3f5b41,_0x3f39ac,_0x2a40f2),this[_0x3f1f55(0x353)]=_0x7d5afe,this[_0x3f1f55(0x376)]=_0x98e30a,this[_0x3f1f55(0x439)]=_0xee6422,this[_0x3f1f55(0x2c4)]=_0x4ed500,this[_0x3f1f55(0x51a)]=_0x9d6835,this[_0x3f1f55(0x42f)]=_0x2ef582,this[_0x3f1f55(0x2bd)]=_0x25acf3;}['_createHandler'](){const _0x336ba9=_0x3b3960,_0x2ecab8=super['_createHandler']();return _0x2ecab8['onTransformIME']=_0x5510e3=>this[_0x336ba9(0x51a)][_0x336ba9(0x4dc)](_0x5510e3),_0x2ecab8[_0x336ba9(0x559)]=_0x8d0130=>this[_0x336ba9(0x42f)][_0x336ba9(0x2c8)](_0x8d0130),_0x2ecab8[_0x336ba9(0x2d2)]=_0x3e3e9f=>this[_0x336ba9(0x2bd)]['syncEditingCollabCursor'](_0x3e3e9f),_0x2ecab8['onTransformRemoteChangesetByIMECache']=_0x28f2d7=>this[_0x336ba9(0x51a)][_0x336ba9(0x2cb)](_0x28f2d7),_0x2ecab8;}async['_init'](){const _0x52d2cd=_0x3b3960,_0x4256ec=await super[_0x52d2cd(0x4a1)]();return this[_0x52d2cd(0x369)](this[_0x52d2cd(0x286)]['onCommandExecuted']((_0x55e828,_0x283ad6)=>{const _0x226a11=_0x52d2cd;if(_0x55e828['type']!==_0x2015b3['CommandType'][_0x226a11(0x5bf)]||_0x283ad6!=null&&_0x283ad6[_0x226a11(0x278)]||_0x283ad6!=null&&_0x283ad6[_0x226a11(0x5f5)])return;const _0x5b36d5=_0x55e828[_0x226a11(0x358)];if((_0x5b36d5==null?void 0x0:_0x5b36d5[_0x226a11(0x59f)])!==this[_0x226a11(0x353)])return;let _0x3eb975=_0x55e828;if(_0x3eb975['id']===_0xbcf55e['RichTextEditingMutation']['id']){const _0xe1ca0b=_0x3eb975[_0x226a11(0x358)];_0x3eb975={'id':_0xbcf55e[_0x226a11(0x446)]['id'],'type':_0x2015b3['CommandType'][_0x226a11(0x5bf)],'params':{'unitId':_0xe1ca0b[_0x226a11(0x59f)],'actions':_0xe1ca0b['actions'],'textRanges':null}};}const _0x30c522=this['_compressMutationService'][_0x226a11(0x50c)]['fetchThroughInterceptors'](this[_0x226a11(0x3e5)][_0x226a11(0x50c)][_0x226a11(0x4d5)]()[_0x226a11(0x1ff)])([_0x3eb975],null)||[_0x3eb975];this['_onLocalMutation'](_0x30c522[0x0]);})),_0x4256ec;}};_0x1e6df4=_0x525818([_0x138926(0x3,_0x2015b3['Inject'](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736['CompressMutationService'])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x138926(0x7,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x138926(0x8,_0x2015b3[_0x3b3960(0x547)](_0xbcf55e[_0x3b3960(0x5ef)])),_0x138926(0x9,_0x2015b3['Inject'](_0x3d8f9f)),_0x138926(0xa,_0x2015b3[_0x3b3960(0x547)](_0x27cbd7)),_0x138926(0xb,_0x2015b3[_0x3b3960(0x547)](_0x474519)),_0x138926(0xc,_0x2015b3['ILogService']),_0x138926(0xd,_0x2015b3[_0x3b3960(0x259)]),_0x138926(0xe,_0x44b766[_0x3b3960(0x464)]),_0x138926(0xf,_0x2015b3[_0x3b3960(0x5d7)]),_0x138926(0x10,_0x2015b3['Optional'](_0x55925e))],_0x1e6df4),_0x2c3354[_0x3b3960(0x2e6)]=class extends _0x4e565d{constructor(_0x2024fe,_0x317641,_0x88a929,_0x57de1a,_0x26b3fc,_0x35070e,_0x490610,_0x56614f,_0x493d04,_0x5a7048,_0x3a672c,_0x1addce,_0x52b3d7,_0x436de1){const _0xf7386=_0x3b3960;super(_0x2024fe,_0x317641,_0x88a929,_0x57de1a,_0x26b3fc,_0x35070e,_0x490610,_0x56614f,_0x5a7048,_0x3a672c,_0x1addce,_0x52b3d7,_0x436de1),this[_0xf7386(0x353)]=_0x2024fe,this[_0xf7386(0x376)]=_0x317641,this['session']=_0x88a929,this[_0xf7386(0x2aa)]=_0x493d04;}[_0x3b3960(0x4a5)](){const _0x36815c=_0x3b3960,_0x510a39=super['_createHandler']();return _0x510a39[_0x36815c(0x559)]=_0x55384c=>this[_0x36815c(0x2aa)][_0x36815c(0x2c8)](_0x55384c),_0x510a39;}async[_0x3b3960(0x4a1)](){const _0x1279ed=_0x3b3960,_0x518288=await super[_0x1279ed(0x4a1)]();return this[_0x1279ed(0x369)](this['_commandService'][_0x1279ed(0x3ab)]((_0x3b66a4,_0x29b15b)=>{const _0x48b0f7=_0x1279ed;if(_0x3b66a4[_0x48b0f7(0x376)]!==_0x2015b3[_0x48b0f7(0x322)][_0x48b0f7(0x5bf)]||_0x29b15b!=null&&_0x29b15b[_0x48b0f7(0x278)]||_0x29b15b!=null&&_0x29b15b[_0x48b0f7(0x5f5)])return;const _0x2ef729=_0x3b66a4[_0x48b0f7(0x358)];if((_0x2ef729==null?void 0x0:_0x2ef729[_0x48b0f7(0x59f)])!==this[_0x48b0f7(0x353)])return;const _0x271117=_0x3b66a4,_0x4925cf=this['_compressMutationService'][_0x48b0f7(0x50c)][_0x48b0f7(0x3a2)](this[_0x48b0f7(0x3e5)][_0x48b0f7(0x50c)][_0x48b0f7(0x4d5)]()[_0x48b0f7(0x1ff)])([_0x271117],null)||[_0x271117];this[_0x48b0f7(0x29c)](_0x4925cf[0x0]);})),_0x518288;}},_0x2c3354[_0x3b3960(0x2e6)]=_0x525818([_0x138926(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x51e)])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['LocaleService'])),_0x138926(0x7,_0x2015b3['Inject'](_0x106736[_0x3b3960(0x3e9)])),_0x138926(0x8,_0x2015b3['Inject'](_0x319b0c)),_0x138926(0x9,_0x2015b3[_0x3b3960(0x1f3)]),_0x138926(0xa,_0x2015b3['ICommandService']),_0x138926(0xb,_0x44b766[_0x3b3960(0x464)]),_0x138926(0xc,_0x2015b3[_0x3b3960(0x5d7)]),_0x138926(0xd,_0x2015b3[_0x3b3960(0x5e4)](_0x55925e))],_0x2c3354[_0x3b3960(0x2e6)]);const _0x1905a0=[_0x3b3960(0x5b9),_0x3b3960(0x4b0),_0x3b3960(0x2ba),_0x3b3960(0x5d3),_0x3b3960(0x4d3),_0x3b3960(0x1fa)];class _0x258d12 extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0x3c7c77=_0x3b3960;super(...arguments),_0x385cfe(this,_0x3c7c77(0x560),new Map()),_0x385cfe(this,_0x3c7c77(0x26f),0x0);}[_0x3b3960(0x46b)](_0x2c6fcd){const _0x2aa0a1=_0x3b3960;if(this[_0x2aa0a1(0x560)][_0x2aa0a1(0x337)](_0x2c6fcd))return this['_assignedColors'][_0x2aa0a1(0x3b9)](_0x2c6fcd);const _0x2bbd71=_0x1905a0[this[_0x2aa0a1(0x26f)]];return this[_0x2aa0a1(0x26f)]=(this['_colorIndex']+0x1)%_0x1905a0[_0x2aa0a1(0x306)],this[_0x2aa0a1(0x560)]['set'](_0x2c6fcd,_0x2bbd71),_0x2bbd71;}}var _0x3a2d48=Object[_0x3b3960(0x57c)],_0x206c60=Object['getOwnPropertyDescriptor'],_0x1d4a10=(_0xd092ef,_0x1f86bd,_0x1ddd73,_0x325633)=>{for(var _0x29f94d=_0x325633>0x1?void 0x0:_0x325633?_0x206c60(_0x1f86bd,_0x1ddd73):_0x1f86bd,_0x2f4c3c=_0xd092ef['length']-0x1,_0xba053a;_0x2f4c3c>=0x0;_0x2f4c3c--)(_0xba053a=_0xd092ef[_0x2f4c3c])&&(_0x29f94d=(_0x325633?_0xba053a(_0x1f86bd,_0x1ddd73,_0x29f94d):_0xba053a(_0x29f94d))||_0x29f94d);return _0x325633&&_0x29f94d&&_0x3a2d48(_0x1f86bd,_0x1ddd73,_0x29f94d),_0x29f94d;},_0x37f67e=(_0x3f0ac3,_0x47bfd8)=>(_0x4a6864,_0xe92a8d)=>_0x47bfd8(_0x4a6864,_0xe92a8d,_0x3f0ac3);const _0x5edb86=0x12c,_0x278497=0x64,_0xbdb66f=()=>{let _0xd40d68=[],_0x35c80b=!0x1;return _0x540ca3=>{const _0x3b3054=_0x41fb;_0xd40d68[_0x3b3054(0x279)](_0x540ca3),_0x35c80b||(_0x35c80b=!0x0,setTimeout(()=>{const _0x29114d=_0x3b3054;_0xd40d68[_0x29114d(0x4d1)](_0x48344e=>_0x48344e()),_0xd40d68=[],_0x35c80b=!0x1;}));};};let _0x4fb84c=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x482b48,_0x4605e8,_0x44432b,_0x53ca42,_0x24ed14,_0x2d26f1,_0x52a7af,_0x25f2f2){const _0x565f0b=_0x3b3960;super(),_0x385cfe(this,_0x565f0b(0x406),!0x1),_0x385cfe(this,_0x565f0b(0x4a1),!0x1),_0x385cfe(this,'_cursorInfo$',new _0x345abe[(_0x565f0b(0x2f9))](new Map())),_0x385cfe(this,'cursorInfo$',this[_0x565f0b(0x2c9)][_0x565f0b(0x348)]()),_0x385cfe(this,'_roomMembers$',new _0x345abe[(_0x565f0b(0x2f9))]([])),_0x385cfe(this,'roomMembers$',this[_0x565f0b(0x565)][_0x565f0b(0x2d1)](_0x345abe[_0x565f0b(0x49f)](_0x5edb86))),_0x385cfe(this,_0x565f0b(0x2ca),_0x533449((_0x2fe71b,_0x537d96)=>{const _0x2ab4d2=_0x565f0b,_0x1a2f9b={'eventID':_0x106736[_0x2ab4d2(0x43e)][_0x2ab4d2(0x3e4)],'data':{'unitID':this['unitID'],'memberID':this[_0x2ab4d2(0x21b)][_0x2ab4d2(0x5d9)](),'selection':_0x3096c0['serializeRangeWithSheet'](_0x2fe71b,_0x537d96[_0x2ab4d2(0x329)])}};this['_session'][_0x2ab4d2(0x42b)](_0x1a2f9b,this[_0x2ab4d2(0x353)]);},_0x278497)),(this[_0x565f0b(0x353)]=_0x482b48,this['_session']=_0x4605e8,this[_0x565f0b(0x3f4)]=_0x44432b,this[_0x565f0b(0x485)]=_0x53ca42,this['_memberService']=_0x24ed14,this[_0x565f0b(0x5b7)]=_0x2d26f1,this[_0x565f0b(0x286)]=_0x52a7af,this[_0x565f0b(0x4d2)]=_0x25f2f2);}get[_0x3b3960(0x3dd)](){const _0x7b28cb=_0x3b3960;return this[_0x7b28cb(0x2c9)][_0x7b28cb(0x521)]();}get['roomMembers'](){const _0x7661d2=_0x3b3960;return this[_0x7661d2(0x565)][_0x7661d2(0x521)]();}[_0x3b3960(0x472)](){const _0x64a182=_0x3b3960;super[_0x64a182(0x472)](),this[_0x64a182(0x2c9)][_0x64a182(0x2b0)](new Map()),this[_0x64a182(0x2c9)][_0x64a182(0x4d4)](),this[_0x64a182(0x565)][_0x64a182(0x2b0)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x5b27c6=_0x3b3960;this[_0x5b27c6(0x4a1)]||(this[_0x5b27c6(0x4a1)]=!0x0,this['_session'][_0x5b27c6(0x33a)][_0x5b27c6(0x2d1)](_0x345abe['takeUntil'](this[_0x5b27c6(0x272)]))[_0x5b27c6(0x35b)](_0x432642=>{const _0x53477f=_0x5b27c6;_0x432642===_0x510b8a[_0x53477f(0x457)]?this[_0x53477f(0x258)]():this[_0x53477f(0x390)]();}),this[_0x5b27c6(0x21b)][_0x5b27c6(0x4ca)][_0x5b27c6(0x2d1)](_0x345abe['takeUntil'](this[_0x5b27c6(0x272)]))[_0x5b27c6(0x35b)](_0x594cb0=>{const _0x41c26d=_0x5b27c6,_0x12f894=_0x594cb0[_0x41c26d(0x4aa)];_0x12f894===_0x106736[_0x41c26d(0x43e)][_0x41c26d(0x3e4)]&&this[_0x41c26d(0x3db)](_0x594cb0),_0x12f894===_0x106736['CollaborationEvent']['USERS_LEAVE']&&this[_0x41c26d(0x4b7)](_0x594cb0);}),this[_0x5b27c6(0x57a)](),this[_0x5b27c6(0x369)](this[_0x5b27c6(0x286)][_0x5b27c6(0x3ab)](_0x33e671=>{const _0x237efc=_0x5b27c6;if(this[_0x237efc(0x406)]&&_0x33e671['id']===_0x3d1b6a[_0x237efc(0x23d)]['id']&&_0x33e671['params'][_0x237efc(0x59f)]===this[_0x237efc(0x353)]){const _0x272683=_0x33e671[_0x237efc(0x358)];this[_0x237efc(0x2ca)](_0x272683[_0x237efc(0x324)],_0x272683[_0x237efc(0x285)][0x0]);}})));}[_0x3b3960(0x3db)](_0x501ed5){const _0x5bffc9=_0x3b3960;var _0x2af6f9,_0x22e798;const {memberID:_0x17250e,selection:_0x22ab48}=_0x501ed5[_0x5bffc9(0x3e0)],{sheetName:_0x1dc37b,range:_0x58bde3}=_0x3096c0[_0x5bffc9(0x58a)](_0x22ab48),_0x8d0c74={'name':(_0x22e798=(_0x2af6f9=this['_memberService'][_0x5bffc9(0x3d6)](this[_0x5bffc9(0x353)],_0x17250e))==null?void 0x0:_0x2af6f9[_0x5bffc9(0x425)])!=null?_0x22e798:_0x5bffc9(0x30a),'range':this[_0x5bffc9(0x32e)](_0x1dc37b,_0x58bde3),'sheetID':_0x1dc37b,'color':this['_colorAssignService'][_0x5bffc9(0x46b)](_0x17250e),'selection':_0x22ab48},_0x5de72d=this[_0x5bffc9(0x3dd)];_0x5de72d[_0x5bffc9(0x420)](_0x17250e,_0x8d0c74),this['_cursorInfo$'][_0x5bffc9(0x2b0)](_0x5de72d);}[_0x3b3960(0x4b7)](_0x501190){const _0x298af7=_0x3b3960,{memberID:_0x282877}=_0x501190[_0x298af7(0x3e0)],_0x1b6ace=this[_0x298af7(0x3dd)];_0x1b6ace[_0x298af7(0x431)](_0x282877),this[_0x298af7(0x2c9)][_0x298af7(0x2b0)](_0x1b6ace);}[_0x3b3960(0x32e)](_0x402159,_0x2773ba){const _0x1b91b0=_0x3b3960;var _0x55c77f,_0x1d0daa;const _0x38b569=(_0x1d0daa=(_0x55c77f=this[_0x1b91b0(0x5b7)][_0x1b91b0(0x53c)](this[_0x1b91b0(0x353)]))==null?void 0x0:_0x55c77f['getSheetBySheetId'](_0x402159))==null?void 0x0:_0x1d0daa[_0x1b91b0(0x57e)]();return(_0x38b569==null?void 0x0:_0x38b569[_0x1b91b0(0x335)](_0x414ed5=>_0x2015b3['Rectangle'][_0x1b91b0(0x263)](_0x414ed5,_0x2773ba)))||_0x2773ba;}[_0x3b3960(0x57a)](){const _0x1016ce=_0x3b3960,_0x4dbbba=new _0x2015b3['DisposableCollection'](),_0x3411fc=_0xbdb66f(),_0x3a5c6d=()=>{const _0x7f7aa6=_0x41fb;_0x4dbbba['dispose']();const _0x586792=(_0x4e8ed8,_0x53ad5d,_0x292953,_0x48bbfd)=>{const _0x4586ec=_0x41fb;let _0x2c26c6=[];switch(_0x4e8ed8['id']){case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x45c)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x36e)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['DeleteRangeMoveUpCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x39f)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a['EffectRefRangId'][_0x4586ec(0x2fa)]:{_0x2c26c6=_0x3d1b6a['handleInsertCol'](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x2de)]:{_0x2c26c6=_0x3d1b6a['handleInsertRangeMoveDown'](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x3a7)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x53a)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['InsertRowCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x4e7)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['MoveRangeCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x239)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x323)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x370)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x543)]:{_0x2c26c6=_0x3d1b6a['handleIRemoveRow'](_0x4e8ed8,_0x48bbfd);break;}}const _0x164500=_0x3d1b6a['runRefRangeMutations'](_0x2c26c6,_0x48bbfd),_0x3177f5=this[_0x4586ec(0x3dd)][_0x4586ec(0x3b9)](_0x53ad5d);if(_0x3177f5&&_0x164500){const _0x408897={..._0x3177f5,'range':_0x164500};this['cursorInfo'][_0x4586ec(0x420)](_0x53ad5d,_0x408897),_0x3411fc(()=>{const _0x12661f=_0x4586ec,_0x1647a2=this[_0x12661f(0x4d2)][_0x12661f(0x4ef)](_0x164500,_0x4297b7=>(_0x1647a2[_0x12661f(0x472)](),_0x586792(_0x4297b7,_0x53ad5d,_0x292953,_0x164500)));_0x4dbbba[_0x12661f(0x28c)](_0x1647a2);});}return{'redos':[],'undos':[]};};this[_0x7f7aa6(0x3dd)][_0x7f7aa6(0x4d1)]((_0x42e491,_0x57c202)=>{const _0x12e873=_0x7f7aa6,{range:_0x48127b,sheetID:_0x4e8f10}=_0x42e491,_0x3d4840=this[_0x12e873(0x4d2)]['registerRefRange'](_0x48127b,_0x382b48=>(_0x3d4840[_0x12e873(0x472)](),_0x586792(_0x382b48,_0x57c202,_0x4e8f10,_0x48127b)));_0x4dbbba[_0x12e873(0x28c)](_0x3d4840);});};this['disposeWithMe'](_0x2015b3[_0x1016ce(0x31c)](this[_0x1016ce(0x2c9)]['subscribe'](()=>{_0x3a5c6d();})));}[_0x3b3960(0x258)](){const _0x45b0f0=_0x3b3960;var _0x3f6156,_0x2526cd;if(this[_0x45b0f0(0x406)]=!0x0,((_0x3f6156=this[_0x45b0f0(0x5b7)][_0x45b0f0(0x209)]())==null?void 0x0:_0x3f6156['getUnitId']())!==this[_0x45b0f0(0x353)])return;const _0x350394=(_0x2526cd=this[_0x45b0f0(0x3f4)][_0x45b0f0(0x3b9)](_0x3d1b6a['SheetsSelectionsService'])[_0x45b0f0(0x5ca)]())==null?void 0x0:_0x2526cd[0x0],_0x408c60=this[_0x45b0f0(0x5b7)][_0x45b0f0(0x49b)](_0x2015b3[_0x45b0f0(0x3a8)][_0x45b0f0(0x321)])[_0x45b0f0(0x202)]();_0x350394&&_0x408c60&&this['_updateLocalCursor'](_0x408c60[_0x45b0f0(0x216)](),_0x350394);}['_toggleOffline'](){const _0x263a99=_0x3b3960;this[_0x263a99(0x406)]=!0x1;}};_0x4fb84c=_0x1d4a10([_0x37f67e(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x37f67e(0x3,_0x2015b3[_0x3b3960(0x547)](_0x258d12)),_0x37f67e(0x4,_0x2015b3['Inject'](_0x25752c)),_0x37f67e(0x5,_0x2015b3[_0x3b3960(0x37c)]),_0x37f67e(0x6,_0x2015b3[_0x3b3960(0x259)]),_0x37f67e(0x7,_0x2015b3[_0x3b3960(0x547)](_0x3d1b6a[_0x3b3960(0x3df)]))],_0x4fb84c);var _0x1163c9=Object[_0x3b3960(0x57c)],_0x3ed434=Object[_0x3b3960(0x2c2)],_0x462ee0=(_0x3bdf6f,_0x577983,_0x177ec2,_0x38e2f1)=>{const _0x3cf9f5=_0x3b3960;for(var _0x2f5c18=_0x38e2f1>0x1?void 0x0:_0x38e2f1?_0x3ed434(_0x577983,_0x177ec2):_0x577983,_0x486451=_0x3bdf6f[_0x3cf9f5(0x306)]-0x1,_0x56d101;_0x486451>=0x0;_0x486451--)(_0x56d101=_0x3bdf6f[_0x486451])&&(_0x2f5c18=(_0x38e2f1?_0x56d101(_0x577983,_0x177ec2,_0x2f5c18):_0x56d101(_0x2f5c18))||_0x2f5c18);return _0x38e2f1&&_0x2f5c18&&_0x1163c9(_0x577983,_0x177ec2,_0x2f5c18),_0x2f5c18;},_0x3f3164=(_0x28d239,_0x351153)=>(_0x389a6e,_0x530f0f)=>_0x351153(_0x389a6e,_0x530f0f,_0x28d239);const _0x1ebcb1=0x12c,_0x26764a=0x64;let _0x1d861e=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x5ea786,_0x549c33,_0x2c50fa,_0x2a21ec,_0x452089,_0x35eee4,_0x450366,_0x327c17,_0x108aaa){const _0x459883=_0x3b3960;super(),_0x385cfe(this,_0x459883(0x406),!0x1),_0x385cfe(this,_0x459883(0x4a1),!0x1),_0x385cfe(this,_0x459883(0x2c9),new _0x345abe[(_0x459883(0x2f9))](new Map())),_0x385cfe(this,_0x459883(0x208),this[_0x459883(0x2c9)]['asObservable']()),_0x385cfe(this,'_roomMembers$',new _0x345abe[(_0x459883(0x2f9))]([])),_0x385cfe(this,'roomMembers$',this['_roomMembers$'][_0x459883(0x2d1)](_0x345abe[_0x459883(0x49f)](_0x1ebcb1))),_0x385cfe(this,_0x459883(0x2ca),_0x533449(_0x33153a=>{const _0x33313b=_0x459883,_0x4a1113={'eventID':_0x106736['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x33313b(0x21b)]['getMemberID'](),'selection':_0x2763e1(_0x33153a)}};this[_0x33313b(0x21b)][_0x33313b(0x42b)](_0x4a1113,this[_0x33313b(0x353)]);},_0x26764a)),(this[_0x459883(0x353)]=_0x5ea786,this[_0x459883(0x21b)]=_0x549c33,this['_injector']=_0x2c50fa,this[_0x459883(0x485)]=_0x2a21ec,this[_0x459883(0x5e7)]=_0x452089,this[_0x459883(0x3fd)]=_0x35eee4,this['_transformService']=_0x450366,this[_0x459883(0x5b7)]=_0x327c17,this[_0x459883(0x286)]=_0x108aaa);}get['cursorInfo'](){const _0x17b094=_0x3b3960;return this[_0x17b094(0x2c9)][_0x17b094(0x521)]();}get[_0x3b3960(0x437)](){const _0x5e3c4f=_0x3b3960;return this[_0x5e3c4f(0x565)]['getValue']();}[_0x3b3960(0x472)](){const _0x2c1704=_0x3b3960;super[_0x2c1704(0x472)](),this['_cursorInfo$'][_0x2c1704(0x2b0)](new Map()),this['_cursorInfo$'][_0x2c1704(0x4d4)](),this[_0x2c1704(0x565)][_0x2c1704(0x2b0)]([]),this[_0x2c1704(0x565)][_0x2c1704(0x4d4)]();}[_0x3b3960(0x595)](){const _0x278fd9=_0x3b3960;this[_0x278fd9(0x4a1)]||(this[_0x278fd9(0x4a1)]=!0x0,this[_0x278fd9(0x21b)][_0x278fd9(0x33a)][_0x278fd9(0x2d1)](_0x345abe[_0x278fd9(0x244)](this['dispose$']))[_0x278fd9(0x35b)](_0x54bfb4=>{const _0x5a1ea9=_0x278fd9;_0x54bfb4===_0x510b8a['ONLINE']?this['_toggleOnline']():this[_0x5a1ea9(0x390)]();}),this[_0x278fd9(0x21b)][_0x278fd9(0x4ca)][_0x278fd9(0x2d1)](_0x345abe['takeUntil'](this[_0x278fd9(0x272)]))[_0x278fd9(0x35b)](_0x32cd76=>{const _0x1d89af=_0x278fd9,_0x48308a=_0x32cd76['eventID'];_0x48308a===_0x106736[_0x1d89af(0x43e)][_0x1d89af(0x3e4)]&&this[_0x1d89af(0x3db)](_0x32cd76),_0x48308a===_0x106736[_0x1d89af(0x43e)]['USERS_LEAVE']&&this[_0x1d89af(0x4b7)](_0x32cd76);}),this[_0x278fd9(0x369)](this['_commandService'][_0x278fd9(0x3ab)](_0x6c88eb=>{const _0x2c27a7=_0x278fd9,_0x44d24b=_0x6c88eb[_0x2c27a7(0x358)];_0x44d24b!=null&&this['_online']&&_0x6c88eb['id']===_0xbcf55e['SetTextSelectionsOperation']['id']&&_0x44d24b[_0x2c27a7(0x59f)]===this[_0x2c27a7(0x353)]&&_0x44d24b[_0x2c27a7(0x531)]===!0x1&&this[_0x2c27a7(0x2ca)](_0x44d24b[_0x2c27a7(0x599)]);})),this[_0x278fd9(0x3fd)][_0x278fd9(0x3ff)][_0x278fd9(0x2d1)](_0x345abe[_0x278fd9(0x244)](this['dispose$']))[_0x278fd9(0x35b)](_0x282bb4=>{const _0x29d5ff=_0x278fd9;if((_0x282bb4==null?void 0x0:_0x282bb4[_0x29d5ff(0x353)])!==this[_0x29d5ff(0x353)])return;const _0x10386a={'eventID':_0x106736[_0x29d5ff(0x43e)][_0x29d5ff(0x3e4)],'data':_0x282bb4};this[_0x29d5ff(0x3db)](_0x10386a);}),this['disposeWithMe'](this['_commandService'][_0x278fd9(0x3ab)](_0x38b836=>{const _0x3992b9=_0x278fd9;if(_0x38b836[_0x3992b9(0x358)]==null)return;const _0x18348d=_0x38b836[_0x3992b9(0x358)];if(_0x38b836['id']!==_0xbcf55e[_0x3992b9(0x446)]['id']||_0x18348d[_0x3992b9(0x59f)]!==this[_0x3992b9(0x353)])return;const _0x31daca={'id':'doc.mutation.rich-text-editing','params':_0x18348d},_0x22f34c=this[_0x3992b9(0x3dd)];for(const [_0x4aa401,_0x5cdf64]of _0x22f34c){const _0x31314c={'id':_0x3992b9(0x412),'params':{'unitId':this[_0x3992b9(0x353)],'actions':null,'textRanges':_0x5cdf64[_0x3992b9(0x599)]}},_0x482626=this[_0x3992b9(0x3b1)][_0x3992b9(0x3e8)](_0x31daca,_0x31314c,!0x1);if(_0x106736[_0x3992b9(0x201)](_0x482626))throw _0x482626[_0x3992b9(0x50b)];_0x22f34c[_0x3992b9(0x420)](_0x4aa401,{..._0x5cdf64,'ranges':_0x482626[_0x3992b9(0x4af)][_0x3992b9(0x358)][_0x3992b9(0x23f)]});}queueMicrotask(()=>{const _0x4fd95a=_0x3992b9;this[_0x4fd95a(0x2c9)][_0x4fd95a(0x2b0)](_0x22f34c);});})));}[_0x3b3960(0x3db)](_0x57a90e){const _0x3cae38=_0x3b3960;var _0x12d78c,_0x511926;const {memberID:_0x655aac,selection:_0x5b63be}=_0x57a90e[_0x3cae38(0x3e0)],_0x2c7689=_0x3d4548(_0x5b63be),_0x13e575=(_0x511926=(_0x12d78c=this[_0x3cae38(0x5e7)]['getMember'](this[_0x3cae38(0x353)],_0x655aac))==null?void 0x0:_0x12d78c[_0x3cae38(0x425)])!=null?_0x511926:_0x3cae38(0x30a),_0x4fc502={'color':this[_0x3cae38(0x485)][_0x3cae38(0x46b)](_0x655aac),'name':_0x13e575,'ranges':_0x2c7689},_0x547fab=this[_0x3cae38(0x3dd)];_0x547fab[_0x3cae38(0x420)](_0x655aac,_0x4fc502),this[_0x3cae38(0x2c9)]['next'](_0x547fab);}['_onCursorDelete'](_0x42cac6){const _0x28eed6=_0x3b3960,{memberID:_0x3b6e06}=_0x42cac6['data'],_0x58b63e=this['cursorInfo'];_0x58b63e[_0x28eed6(0x431)](_0x3b6e06),this[_0x28eed6(0x2c9)][_0x28eed6(0x2b0)](_0x58b63e);}[_0x3b3960(0x258)](){const _0x10e593=_0x3b3960;var _0x43989a;if(this[_0x10e593(0x406)]=!0x0,((_0x43989a=this[_0x10e593(0x5b7)]['getFocusedUnit']())==null?void 0x0:_0x43989a[_0x10e593(0x304)]())!==this[_0x10e593(0x353)])return;const _0x24cc7b=this['_injector'][_0x10e593(0x3b9)](_0xbcf55e['TextSelectionManagerService'])[_0x10e593(0x342)](),_0x28bcda=_0x24cc7b==null?void 0x0:_0x24cc7b['map'](_0xbcf55e['serializeDocRange']);Array[_0x10e593(0x31d)](_0x28bcda)&&_0x28bcda[_0x10e593(0x306)]>0x0&&this['_updateLocalCursor'](_0x28bcda);}['_toggleOffline'](){const _0x577d03=_0x3b3960;this[_0x577d03(0x406)]=!0x1;}};_0x1d861e=_0x462ee0([_0x3f3164(0x2,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x3f3164(0x3,_0x2015b3['Inject'](_0x258d12)),_0x3f3164(0x4,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0x3f3164(0x5,_0x2015b3[_0x3b3960(0x547)](_0x474519)),_0x3f3164(0x6,_0x106736[_0x3b3960(0x25a)]),_0x3f3164(0x7,_0x2015b3[_0x3b3960(0x37c)]),_0x3f3164(0x8,_0x2015b3['ICommandService'])],_0x1d861e);var _0x363764=Object[_0x3b3960(0x57c)],_0xf4900c=Object['getOwnPropertyDescriptor'],_0x15ade7=(_0x1f94a9,_0x2f1c22,_0x390163,_0x27574c)=>{const _0x3f8c2d=_0x3b3960;for(var _0x377ca3=_0x27574c>0x1?void 0x0:_0x27574c?_0xf4900c(_0x2f1c22,_0x390163):_0x2f1c22,_0x48df63=_0x1f94a9[_0x3f8c2d(0x306)]-0x1,_0x4b2c4a;_0x48df63>=0x0;_0x48df63--)(_0x4b2c4a=_0x1f94a9[_0x48df63])&&(_0x377ca3=(_0x27574c?_0x4b2c4a(_0x2f1c22,_0x390163,_0x377ca3):_0x4b2c4a(_0x377ca3))||_0x377ca3);return _0x27574c&&_0x377ca3&&_0x363764(_0x2f1c22,_0x390163,_0x377ca3),_0x377ca3;},_0x2478e6=(_0xff3785,_0x18ddb1)=>(_0xd7188b,_0x58d8be)=>_0x18ddb1(_0xd7188b,_0x58d8be,_0xff3785);let _0x2a0bf9=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x5334da,_0x3a2102,_0x34a7cb){const _0x4f24d5=_0x3b3960;super(),_0x385cfe(this,'_entities',new Map()),_0x385cfe(this,_0x4f24d5(0x284),new _0x345abe[(_0x4f24d5(0x421))]()),(this[_0x4f24d5(0x5b7)]=_0x5334da,this[_0x4f24d5(0x3f4)]=_0x3a2102,this[_0x4f24d5(0x35a)]=_0x34a7cb,this[_0x4f24d5(0x4a1)]());}[_0x3b3960(0x472)](){const _0x5143b9=_0x3b3960;super[_0x5143b9(0x472)](),this[_0x5143b9(0x284)][_0x5143b9(0x4d4)](),this[_0x5143b9(0x2ff)]['forEach'](_0x24617c=>_0x24617c[_0x5143b9(0x472)]());}[_0x3b3960(0x575)](_0x45524d){const _0x3a9620=_0x3b3960;return this['_entities'][_0x3a9620(0x337)](_0x45524d)?this['_entities']['get'](_0x45524d)[_0x3a9620(0x208)]:this['_entityInit$'][_0x3a9620(0x2d1)](_0x345abe[_0x3a9620(0x493)](_0x191aa1=>_0x191aa1['unitID']===_0x45524d),_0x345abe['switchMap'](_0x1ba257=>_0x1ba257[_0x3a9620(0x208)]));}['_init'](){const _0x3cae25=_0x3b3960;this[_0x3cae25(0x5b7)][_0x3cae25(0x388)](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x321)])[_0x3cae25(0x2d1)](_0x345abe[_0x3cae25(0x244)](this[_0x3cae25(0x272)]))[_0x3cae25(0x35b)](async _0x29f3ab=>{const _0x30841d=_0x3cae25,_0x1bf3f5=_0x29f3ab[_0x30841d(0x304)](),_0x5f195a=await this[_0x30841d(0x4ad)](_0x1bf3f5);this['_entityInit$']['next'](_0x5f195a),this[_0x30841d(0x2ff)][_0x30841d(0x420)](_0x1bf3f5,_0x5f195a);}),this[_0x3cae25(0x5b7)]['getTypeOfUnitAdded$'](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x361)])['pipe'](_0x345abe['takeUntil'](this[_0x3cae25(0x272)]))[_0x3cae25(0x2d1)](_0x345abe[_0x3cae25(0x493)](_0x2d24b4=>!_0x2d24b4['getUnitId']()[_0x3cae25(0x2d7)]('__')))[_0x3cae25(0x35b)](async _0x5a2f0b=>{const _0x3711d1=_0x3cae25,_0x352e7c=_0x5a2f0b['getUnitId'](),_0x54acbd=await this['_startDocCollabCursor'](_0x352e7c);this['_entityInit$'][_0x3711d1(0x2b0)](_0x54acbd),this[_0x3711d1(0x2ff)][_0x3711d1(0x420)](_0x352e7c,_0x54acbd);}),_0x345abe[_0x3cae25(0x4c8)](this['_univerInstanceService'][_0x3cae25(0x3d0)](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x361)]),this[_0x3cae25(0x5b7)]['getTypeOfUnitDisposed$'](_0x2015b3['UniverInstanceType'][_0x3cae25(0x321)]))[_0x3cae25(0x2d1)](_0x345abe['takeUntil'](this[_0x3cae25(0x272)]))[_0x3cae25(0x35b)](_0x382165=>{const _0x48cf3d=_0x3cae25,_0x57c7fc=_0x382165[_0x48cf3d(0x304)](),_0x4c02b0=this[_0x48cf3d(0x2ff)]['get'](_0x57c7fc);_0x4c02b0&&(_0x4c02b0[_0x48cf3d(0x472)](),this[_0x48cf3d(0x2ff)]['delete'](_0x57c7fc));});}async[_0x3b3960(0x4ad)](_0x599724){const _0x530596=_0x3b3960,_0x12c35e=await this['_collabSessionService'][_0x530596(0x5db)](_0x599724),_0xcad150=this['_injector'][_0x530596(0x385)](_0x4fb84c,_0x599724,_0x12c35e);return _0xcad150['init'](),_0xcad150;}async[_0x3b3960(0x492)](_0x2bc7dc){const _0x5d1ef7=_0x3b3960,_0x504f6d=await this['_collabSessionService']['requireSession'](_0x2bc7dc),_0x2f3218=this[_0x5d1ef7(0x3f4)][_0x5d1ef7(0x385)](_0x1d861e,_0x2bc7dc,_0x504f6d);return _0x2f3218[_0x5d1ef7(0x595)](),_0x2f3218;}};_0x2a0bf9=_0x15ade7([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3['LifecycleStages'][_0x3b3960(0x206)],_0x2a0bf9),_0x2478e6(0x0,_0x2015b3['IUniverInstanceService']),_0x2478e6(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x2478e6(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x4b4)]))],_0x2a0bf9);const _0x5c9f4b=0x14,_0x4b792f=0xc8,_0x6aa0fe=0x4,_0x5a936d=0x5;function _0x3dc4d3(_0x254f51,_0x201982){const _0x16c98b=_0x3b3960;let {radius:_0x26b9cb,width:_0x5a1fec,height:_0x26384d}=_0x201982;_0x26b9cb=_0x26b9cb!=null?_0x26b9cb:0x0,_0x5a1fec=_0x5a1fec!=null?_0x5a1fec:0x1e,_0x26384d=_0x26384d!=null?_0x26384d:0x1e;let _0x555dce=0x0,_0xf16623=0x0,_0x5b7101=0x0;_0x555dce=_0xf16623=_0x5b7101=Math[_0x16c98b(0x5c3)](_0x26b9cb,_0x5a1fec/0x2,_0x26384d/0x2),_0x254f51[_0x16c98b(0x20b)](),_0x254f51[_0x16c98b(0x352)](_0x555dce,0x0),_0x254f51['lineTo'](_0x5a1fec-_0xf16623,0x0),_0x254f51[_0x16c98b(0x3f2)](_0x5a1fec-_0xf16623,_0xf16623,_0xf16623,Math['PI']*0x3/0x2,0x0,!0x1),_0x254f51['lineTo'](_0x5a1fec,_0x26384d-_0x5b7101),_0x254f51[_0x16c98b(0x3f2)](_0x5a1fec-_0x5b7101,_0x26384d-_0x5b7101,_0x5b7101,0x0,Math['PI']/0x2,!0x1),_0x254f51[_0x16c98b(0x240)](0x0,_0x26384d),_0x254f51['lineTo'](0x0,_0x555dce),_0x254f51['arc'](_0x555dce,_0x555dce,_0x555dce,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x254f51[_0x16c98b(0x544)](),_0x201982[_0x16c98b(0x56d)]&&(_0x254f51[_0x16c98b(0x373)](),_0x254f51[_0x16c98b(0x298)]=_0x201982[_0x16c98b(0x56d)],_0x201982[_0x16c98b(0x387)]==='evenodd'?_0x254f51[_0x16c98b(0x56d)]('evenodd'):_0x254f51['fill'](),_0x254f51[_0x16c98b(0x312)]());}class _0x4b8b68 extends _0x572a63[_0x3b3960(0x45b)]{constructor(_0x4622ce,_0x5cb4ed){const _0x5a6ab5=_0x3b3960;super(_0x4622ce,_0x5cb4ed),_0x385cfe(this,_0x5a6ab5(0x3d8)),_0x385cfe(this,'text'),(this[_0x5a6ab5(0x3d8)]=_0x5cb4ed==null?void 0x0:_0x5cb4ed[_0x5a6ab5(0x3d8)],this['text']=_0x5cb4ed==null?void 0x0:_0x5cb4ed[_0x5a6ab5(0x2bc)]);}static['drawWith'](_0x79cbbf,_0x3d641a){const _0x1983bd=_0x3b3960,{text:_0x229b41,color:_0x36cc42}=_0x3d641a;_0x79cbbf[_0x1983bd(0x373)](),_0x79cbbf[_0x1983bd(0x296)]=_0x1983bd(0x3af);const _0x24f40c=_0x79cbbf[_0x1983bd(0x341)](_0x229b41)[_0x1983bd(0x1f1)],_0x4ca790=Math[_0x1983bd(0x5c3)](_0x24f40c+0x2*_0x6aa0fe,_0x4b792f);_0x3dc4d3(_0x79cbbf,{'height':_0x5c9f4b,'radius':0x4,'width':_0x4ca790,'fill':_0x36cc42,'evented':!0x1}),_0x79cbbf[_0x1983bd(0x298)]='#FFF';const _0x2e800c=_0x6aa0fe,_0x6da844=_0x5c9f4b-_0x5a936d,_0x3da514=_0x4b792f-0x2*_0x6aa0fe;if(_0x24f40c>_0x3da514){let _0x3bb616='',_0x50c3e9=0x0;for(const _0x46377c of _0x229b41){const _0x404ced=_0x79cbbf['measureText'](_0x46377c)['width'];if(_0x50c3e9+_0x404ced<=_0x3da514-_0x79cbbf[_0x1983bd(0x341)](_0x1983bd(0x38d))['width'])_0x3bb616+=_0x46377c,_0x50c3e9+=_0x404ced;else{_0x3bb616+=_0x1983bd(0x38d);break;}}_0x79cbbf['fillText'](_0x3bb616,_0x2e800c,_0x6da844);}else _0x79cbbf[_0x1983bd(0x54a)](_0x229b41,_0x2e800c,_0x6da844);_0x79cbbf[_0x1983bd(0x312)]();}[_0x3b3960(0x3be)](_0x4ad81f){const _0x2ff865=_0x3b3960;_0x4b8b68[_0x2ff865(0x213)](_0x4ad81f,this);}}const _0x53019b=0x1,_0x3752f5=1.5;class _0x87739a extends _0x572a63[_0x3b3960(0x45b)]{constructor(_0x51fff3,_0x184fc9){const _0x4fd8a2=_0x3b3960;super(_0x51fff3,_0x184fc9),_0x385cfe(this,_0x4fd8a2(0x2d0)),_0x385cfe(this,_0x4fd8a2(0x58c),!0x1),_0x385cfe(this,_0x4fd8a2(0x502)),_0x385cfe(this,'_name',''),_0x385cfe(this,_0x4fd8a2(0x40c),_0x4fd8a2(0x3a0)),_0x385cfe(this,'_backgroundColor'),(_0x184fc9&&this[_0x4fd8a2(0x4d0)](_0x184fc9),this[_0x4fd8a2(0x451)][_0x4fd8a2(0x281)](()=>this[_0x4fd8a2(0x4d0)]({'hovered':!0x0})),this[_0x4fd8a2(0x3a3)][_0x4fd8a2(0x281)](()=>this[_0x4fd8a2(0x4d0)]({'hovered':!0x1})));}['setShapeProps'](_0x4b28ad){const _0x45823a=_0x3b3960;var _0x122e51,_0x495c60,_0x5c0304,_0x5ded68,_0x24d32f,_0x37fdc1;this[_0x45823a(0x2d0)]=(_0x122e51=_0x4b28ad[_0x45823a(0x3d8)])!=null?_0x122e51:this[_0x45823a(0x2d0)],this['_hovered']=(_0x495c60=_0x4b28ad[_0x45823a(0x309)])!=null?_0x495c60:this['_hovered'],this[_0x45823a(0x502)]=(_0x5c0304=_0x4b28ad['range'])!=null?_0x5c0304:this['_range'],this[_0x45823a(0x4a6)]=(_0x5ded68=_0x4b28ad['name'])!=null?_0x5ded68:this['_name'],this[_0x45823a(0x40c)]=(_0x24d32f=_0x4b28ad[_0x45823a(0x552)])!=null?_0x24d32f:this[_0x45823a(0x40c)],this[_0x45823a(0x25e)]=(_0x37fdc1=_0x4b28ad[_0x45823a(0x4f0)])!=null?_0x37fdc1:this[_0x45823a(0x25e)],this['transformByState']({'width':_0x4b28ad['width'],'height':_0x4b28ad['height']});}[_0x3b3960(0x34f)](_0x341985){const _0x48e27c=_0x3b3960,{row:_0xf736ec,column:_0x200231}=_0x341985;if(_0xf736ec>=this[_0x48e27c(0x502)][_0x48e27c(0x4c6)]&&_0xf736ec<=this['_range'][_0x48e27c(0x2db)]&&_0x200231>=this[_0x48e27c(0x502)][_0x48e27c(0x44e)]&&_0x200231<=this[_0x48e27c(0x502)]['endColumn']){this[_0x48e27c(0x4d0)]({'hovered':!0x0});return;}this[_0x48e27c(0x4d0)]({'hovered':!0x1});}[_0x3b3960(0x343)](_0x146f6d){return!0x1;}[_0x3b3960(0x3be)](_0x56bee2){const _0x114f69=_0x3b3960;_0x572a63[_0x114f69(0x58b)]['drawWith'](_0x56bee2,{'width':this[_0x114f69(0x1f1)],'height':this[_0x114f69(0x3bf)],'strokeWidth':_0x3752f5,'stroke':this[_0x114f69(0x2d0)],'evented':!0x1,'fill':this[_0x114f69(0x25e)]}),this['_hovered']&&(_0x56bee2[_0x114f69(0x373)](),_0x56bee2['transform'](0x1,0x0,0x0,0x1,this[_0x114f69(0x1f1)],this['_labelPosition']===_0x114f69(0x35d)?0x0:-_0x5c9f4b),_0x4b8b68['drawWith'](_0x56bee2,{'text':this[_0x114f69(0x4a6)],'color':this[_0x114f69(0x2d0)]}),_0x56bee2[_0x114f69(0x312)]());}}var _0xf000a=Object[_0x3b3960(0x57c)],_0x3a68d3=Object[_0x3b3960(0x2c2)],_0x30e1d9=(_0x3adab1,_0x19727e,_0x4a40aa,_0x329780)=>{const _0x1306fc=_0x3b3960;for(var _0x1174fa=_0x329780>0x1?void 0x0:_0x329780?_0x3a68d3(_0x19727e,_0x4a40aa):_0x19727e,_0x48d10a=_0x3adab1[_0x1306fc(0x306)]-0x1,_0x3ef8c0;_0x48d10a>=0x0;_0x48d10a--)(_0x3ef8c0=_0x3adab1[_0x48d10a])&&(_0x1174fa=(_0x329780?_0x3ef8c0(_0x19727e,_0x4a40aa,_0x1174fa):_0x3ef8c0(_0x1174fa))||_0x1174fa);return _0x329780&&_0x1174fa&&_0xf000a(_0x19727e,_0x4a40aa,_0x1174fa),_0x1174fa;},_0x111fb2=(_0x4b05a4,_0x8a5968)=>(_0x31fa48,_0x42fb79)=>_0x8a5968(_0x31fa48,_0x42fb79,_0x4b05a4);const _0x337777=0x1389;let _0x1928ed=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x3ba791,_0x31d1bb,_0x54c19b,_0x538fd4){const _0x5932a4=_0x3b3960;super(),_0x385cfe(this,_0x5932a4(0x302),new Set()),_0x385cfe(this,_0x5932a4(0x47c),null),(this[_0x5932a4(0x37f)]=_0x3ba791,this['_sheetSkeletonManagerService']=_0x31d1bb,this[_0x5932a4(0x266)]=_0x54c19b,this[_0x5932a4(0x549)]=_0x538fd4,this[_0x5932a4(0x4a1)]());}[_0x3b3960(0x4a1)](){const _0x3de5bb=_0x3b3960;this[_0x3de5bb(0x5a1)][_0x3de5bb(0x54d)][_0x3de5bb(0x2d1)](_0x2cc613[_0x3de5bb(0x244)](this[_0x3de5bb(0x272)]),_0x2cc613[_0x3de5bb(0x22f)](_0x2c9309=>{const _0x2f03ca=_0x3de5bb;if(_0x2c9309){const _0x33ac7e=_0x2c9309[_0x2f03ca(0x5cf)];return _0x345abe[_0x2f03ca(0x4a3)](this['_collabCursorController']['getCollabCursors$'](this[_0x2f03ca(0x37f)][_0x2f03ca(0x59f)]),this['_themeService'][_0x2f03ca(0x378)])[_0x2f03ca(0x2d1)](_0x2cc613[_0x2f03ca(0x522)](([_0x583d37,_0x385bde])=>{const _0x5b1f8f=_0x2f03ca,_0x7e95ff=new Map();return _0x583d37[_0x5b1f8f(0x4d1)]((_0x111c3f,_0x5ea19a)=>{const _0x4b7c73=_0x5b1f8f;if(_0x111c3f['sheetID']===_0x33ac7e){const _0xb48e8c={..._0x111c3f};_0xb48e8c[_0x4b7c73(0x3d8)]=_0x385bde[_0x111c3f['color']],_0x7e95ff[_0x4b7c73(0x420)](_0x5ea19a,_0xb48e8c);}}),{'skeleton':_0x2c9309,'cursors':_0x7e95ff};}));}return _0x345abe['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x44847a,cursors:_0x125307})=>{const _0x3670f1=_0x3de5bb;this['_removeCollabCursors'](),_0x44847a&&this[_0x3670f1(0x368)](_0x44847a,_0x125307);}),this['_sheetSkeletonManagerService'][_0x3de5bb(0x54d)][_0x3de5bb(0x35b)](_0x3b78c1=>{const _0x1fc1d1=_0x3de5bb;if(_0x3b78c1==null)return;const {skeleton:_0x4dd2dd}=_0x3b78c1,{scene:_0x3b595b}=this['_context'];_0x3b595b[_0x1fc1d1(0x484)]['subscribeEvent'](_0x533449(_0x350827=>{const _0x1af75e=_0x1fc1d1;var _0x557412,_0x21ed9c;const {offsetX:_0x54224c,offsetY:_0x13697b}=_0x350827,{x:_0x23fb87,y:_0x23abb8}=_0x3b595b[_0x1af75e(0x5e6)](_0x572a63[_0x1af75e(0x50e)][_0x1af75e(0x3c2)]([_0x54224c,_0x13697b])),{scaleX:_0x544fe6,scaleY:_0x1335e5}=_0x3b595b[_0x1af75e(0x4e2)](),_0x23dd6d=_0x3b595b[_0x1af75e(0x22d)](_0x467ed8[_0x1af75e(0x444)][_0x1af75e(0x45d)]),_0x34cb22=_0x3b595b[_0x1af75e(0x5f0)](_0x572a63[_0x1af75e(0x50e)][_0x1af75e(0x3c2)]([_0x23fb87,_0x23abb8]),_0x23dd6d),_0x41bbae=_0x4dd2dd[_0x1af75e(0x315)](_0x54224c,_0x13697b,_0x544fe6,_0x1335e5,_0x34cb22);((_0x557412=this[_0x1af75e(0x47c)])==null?void 0x0:_0x557412[_0x1af75e(0x5c6)])===_0x41bbae[_0x1af75e(0x5c6)]&&((_0x21ed9c=this[_0x1af75e(0x47c)])==null?void 0x0:_0x21ed9c[_0x1af75e(0x2b9)])===_0x41bbae[_0x1af75e(0x2b9)]||this[_0x1af75e(0x302)][_0x1af75e(0x4d1)](_0x1acd47=>{const _0x2a3ae7=_0x1af75e;_0x1acd47[_0x2a3ae7(0x34f)](_0x41bbae);});},0x64));});}[_0x3b3960(0x368)](_0x49d1ac,_0x3c087a){const _0xf0738=_0x3b3960;var _0x4c9c52;const _0x3c9ef6=(_0x4c9c52=this[_0xf0738(0x5a1)][_0xf0738(0x48c)]())==null?void 0x0:_0x4c9c52['skeleton'];if(!_0x3c9ef6)return;const _0x117cc6=this[_0xf0738(0x56c)]();if(!_0x117cc6)return;this['_cursors'][_0xf0738(0x4d1)](_0x2dbc61=>{const _0x4071df=_0xf0738;_0x2dbc61[_0x4071df(0x460)]();});const {scene:_0x19396c}=_0x117cc6,_0x2d06a5=_0x4d0c83(Array['from'](_0x3c087a['values']()))[_0xf0738(0x522)](_0xaa150d=>{const _0x32ddd3=_0xf0738,{color:_0x1f824f,range:_0x3f48c7,name:_0x3a0a2b,selection:_0x396cc3,sheetID:_0x285bc0}=_0xaa150d,{startColumn:_0x299f04,startRow:_0x42d749,endColumn:_0x17a74c,endRow:_0x543523}=_0x3f48c7,_0x29e056=_0x467ed8[_0x32ddd3(0x32d)](_0x42d749,_0x299f04,_0x19396c,_0x3c9ef6),_0x1fb14b=_0x467ed8[_0x32ddd3(0x32d)](_0x543523,_0x17a74c,_0x19396c,_0x3c9ef6),{columnHeaderHeightAndMarginTop:_0x4777e4}=_0x3c9ef6,{startX:_0x4bef8b,startY:_0x3d3695}=_0x29e056,{endX:_0x115bfd,endY:_0x451d9e}=_0x1fb14b,_0x5de8ef=_0x115bfd-_0x4bef8b,_0x2b94b6=_0x451d9e-_0x3d3695,_0x3721a6={'labelPosition':_0x3d3695-_0x4777e4>=_0x5c9f4b?_0x32ddd3(0x3a0):_0x32ddd3(0x35d),'sheetID':_0x285bc0,'range':_0x3f48c7,'color':_0x1f824f,'name':_0x3a0a2b,'selection':_0x396cc3,'left':_0x4bef8b,'top':_0x3d3695,'width':_0x5de8ef,'height':_0x2b94b6,'evented':!0x1,'zIndex':_0x337777};return new _0x87739a(_0x3a0a2b,_0x3721a6);});_0x19396c['addObjects'](_0x2d06a5,_0x53019b),this[_0xf0738(0x302)]=new Set(_0x2d06a5);}[_0x3b3960(0x3b7)](){const _0x219e51=_0x3b3960;var _0x4df546;(_0x4df546=this[_0x219e51(0x302)])==null||_0x4df546[_0x219e51(0x4d1)](_0x2ef93a=>_0x2ef93a[_0x219e51(0x472)]());}['_getSheetObject'](){const _0x56bde6=_0x3b3960;return _0x467ed8[_0x56bde6(0x5a4)](this[_0x56bde6(0x37f)][_0x56bde6(0x4b2)],this[_0x56bde6(0x37f)]);}};_0x1928ed=_0x30e1d9([_0x111fb2(0x1,_0x2015b3[_0x3b3960(0x547)](_0x467ed8[_0x3b3960(0x36a)])),_0x111fb2(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2a0bf9)),_0x111fb2(0x3,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x2e1)]))],_0x1928ed);function _0x4d0c83(_0x40d01e){const _0x2e190a=_0x3b3960,_0x5c7e8f=new Map();return _0x40d01e[_0x2e190a(0x4d1)](_0xe75a93=>{const _0x22c562=_0x2e190a;if(_0x5c7e8f['has'](_0xe75a93['selection'])){const _0x34d303=_0x5c7e8f[_0x22c562(0x3b9)](_0xe75a93[_0x22c562(0x290)]);_0x34d303['name']+=',\x20'+_0xe75a93[_0x22c562(0x425)];}else _0x5c7e8f['set'](_0xe75a93[_0x22c562(0x290)],_0xe75a93);}),Array[_0x2e190a(0x4f1)](_0x5c7e8f[_0x2e190a(0x58f)]());}var _0x2d705d=function(){const _0x19c476=_0x3b3960;return _0x2d705d=Object[_0x19c476(0x4a0)]||function(_0x232eca){const _0x1e3f7a=_0x19c476;for(var _0x5bd294,_0x13c097=0x1,_0x2f9dad=arguments[_0x1e3f7a(0x306)];_0x13c097<_0x2f9dad;_0x13c097++){_0x5bd294=arguments[_0x13c097];for(var _0x2770c1 in _0x5bd294)Object[_0x1e3f7a(0x41c)][_0x1e3f7a(0x48d)]['call'](_0x5bd294,_0x2770c1)&&(_0x232eca[_0x2770c1]=_0x5bd294[_0x2770c1]);}return _0x232eca;},_0x2d705d[_0x19c476(0x36b)](this,arguments);},_0x3ce73d=function(_0x3ffde3,_0x1cd802){const _0x1901cd=_0x3b3960;var _0x36f4e8={};for(var _0x4e4b00 in _0x3ffde3)Object[_0x1901cd(0x41c)]['hasOwnProperty'][_0x1901cd(0x415)](_0x3ffde3,_0x4e4b00)&&_0x1cd802[_0x1901cd(0x4c7)](_0x4e4b00)<0x0&&(_0x36f4e8[_0x4e4b00]=_0x3ffde3[_0x4e4b00]);if(_0x3ffde3!=null&&typeof Object[_0x1901cd(0x497)]==_0x1901cd(0x2fd)){for(var _0x56d6f7=0x0,_0x4e4b00=Object[_0x1901cd(0x497)](_0x3ffde3);_0x56d6f7<_0x4e4b00[_0x1901cd(0x306)];_0x56d6f7++)_0x1cd802[_0x1901cd(0x4c7)](_0x4e4b00[_0x56d6f7])<0x0&&Object[_0x1901cd(0x41c)][_0x1901cd(0x3b8)][_0x1901cd(0x415)](_0x3ffde3,_0x4e4b00[_0x56d6f7])&&(_0x36f4e8[_0x4e4b00[_0x56d6f7]]=_0x3ffde3[_0x4e4b00[_0x56d6f7]]);}return _0x36f4e8;},_0x195f69=_0x100763['forwardRef'](function(_0x24b347,_0x2ccd0c){const _0x4c196c=_0x3b3960;var _0x3b5670=_0x24b347[_0x4c196c(0x553)],_0x4c8c80=_0x24b347['id'],_0x5e342c=_0x24b347[_0x4c196c(0x4e8)],_0x3ac224=_0x24b347[_0x4c196c(0x251)],_0x10ca5a=_0x3ce73d(_0x24b347,[_0x4c196c(0x553),'id',_0x4c196c(0x4e8),_0x4c196c(0x251)]),_0x1d7acd=_0x4c196c(0x37e)[_0x4c196c(0x3d2)](_0x4c8c80,'\x20')[_0x4c196c(0x3d2)](_0x5e342c||'')[_0x4c196c(0x579)](),_0x1ec277=_0x100763[_0x4c196c(0x28f)]('_'[_0x4c196c(0x3d2)](_0x23077b()));return _0x1449f3(_0x3b5670,''[_0x4c196c(0x3d2)](_0x4c8c80),{'defIds':_0x3b5670[_0x4c196c(0x5c2)],'idSuffix':_0x1ec277[_0x4c196c(0x22a)]},_0x2d705d({'ref':_0x2ccd0c,'className':_0x1d7acd},_0x10ca5a),_0x3ac224);});function _0x1449f3(_0x42cb03,_0x347bd1,_0x3dad65,_0x28b567,_0x42d2dc){const _0x3a431b=_0x3b3960;return _0x100763[_0x3a431b(0x28e)](_0x42cb03[_0x3a431b(0x2fc)],_0x2d705d(_0x2d705d({'key':_0x347bd1},_0x4176d2(_0x42cb03,_0x3dad65,_0x42d2dc)),_0x28b567),(_0x2c223b(_0x42cb03,_0x3dad65)[_0x3a431b(0x3c0)]||[])[_0x3a431b(0x522)](function(_0x19c496,_0x34e3bd){const _0x9aec5f=_0x3a431b;return _0x1449f3(_0x19c496,''[_0x9aec5f(0x3d2)](_0x347bd1,'-')[_0x9aec5f(0x3d2)](_0x42cb03[_0x9aec5f(0x2fc)],'-')[_0x9aec5f(0x3d2)](_0x34e3bd),_0x3dad65,void 0x0,_0x42d2dc);}));}function _0x4176d2(_0x42db2d,_0x11faee,_0xe4defa){const _0x516e3c=_0x3b3960;var _0x7c00ec=_0x2d705d({},_0x42db2d['attrs']);_0xe4defa!=null&&_0xe4defa['colorChannel1']&&_0x7c00ec[_0x516e3c(0x56d)]===_0x516e3c(0x5f3)&&(_0x7c00ec[_0x516e3c(0x56d)]=_0xe4defa[_0x516e3c(0x5f3)]);var _0x385546=_0x11faee[_0x516e3c(0x5c2)];return!_0x385546||_0x385546[_0x516e3c(0x306)]===0x0||(_0x42db2d[_0x516e3c(0x2fc)]===_0x516e3c(0x307)&&_0x7c00ec['xlink:href']&&(_0x7c00ec['xlink:href']=_0x7c00ec[_0x516e3c(0x456)]+_0x11faee[_0x516e3c(0x294)]),Object[_0x516e3c(0x380)](_0x7c00ec)[_0x516e3c(0x4d1)](function(_0x470e4b){const _0xc2aa44=_0x516e3c;var _0x3c1b32=_0x470e4b[0x0],_0x315a2b=_0x470e4b[0x1];typeof _0x315a2b=='string'&&(_0x7c00ec[_0x3c1b32]=_0x315a2b[_0xc2aa44(0x44b)](/url\(#(.*)\)/,_0xc2aa44(0x22b)['concat'](_0x11faee['idSuffix'],')')));})),_0x7c00ec;}function _0x2c223b(_0x5bd2f2,_0xf202c7){const _0x5db701=_0x3b3960;var _0x43628f,_0xbe44e1=_0xf202c7[_0x5db701(0x5c2)];return!_0xbe44e1||_0xbe44e1[_0x5db701(0x306)]===0x0?_0x5bd2f2:_0x5bd2f2[_0x5db701(0x2fc)]===_0x5db701(0x300)&&(!((_0x43628f=_0x5bd2f2['children'])===null||_0x43628f===void 0x0)&&_0x43628f['length'])?_0x2d705d(_0x2d705d({},_0x5bd2f2),{'children':_0x5bd2f2[_0x5db701(0x3c0)]['map'](function(_0x1a1f44){const _0x36da79=_0x5db701;return typeof _0x1a1f44[_0x36da79(0x1fc)]['id']=='string'&&_0xbe44e1&&_0xbe44e1['indexOf'](_0x1a1f44[_0x36da79(0x1fc)]['id'])>-0x1?_0x2d705d(_0x2d705d({},_0x1a1f44),{'attrs':_0x2d705d(_0x2d705d({},_0x1a1f44[_0x36da79(0x1fc)]),{'id':_0x1a1f44[_0x36da79(0x1fc)]['id']+_0xf202c7[_0x36da79(0x294)]})}):_0x1a1f44;})}):_0x5bd2f2;}function _0x23077b(){const _0x4861f3=_0x3b3960;return Math['random']()[_0x4861f3(0x396)](0x24)['substring'](0x2,0x8);}_0x195f69[_0x3b3960(0x4fd)]=_0x3b3960(0x5e9);var _0x2eff4c={'tag':_0x3b3960(0x4be),'attrs':{'fill':_0x3b3960(0x4b8),'viewBox':_0x3b3960(0x236),'width':_0x3b3960(0x222),'height':_0x3b3960(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b3960(0x3ae)},'children':[{'tag':'path','attrs':{'stroke':_0x3b3960(0x51b),'d':_0x3b3960(0x455),'strokeLinecap':_0x3b3960(0x221),'strokeLinejoin':_0x3b3960(0x221),'strokeWidth':1.2}}]},{'tag':_0x3b3960(0x300),'attrs':{},'children':[{'tag':_0x3b3960(0x523),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3b3960(0x5b4),'attrs':{'fill':_0x3b3960(0x374),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3b3960(0x42e)]},_0x258e90=_0x100763[_0x3b3960(0x510)](function(_0x14538d,_0x1cbd5f){const _0x8e13bb=_0x3b3960;return _0x100763[_0x8e13bb(0x28e)](_0x195f69,Object[_0x8e13bb(0x4a0)]({},_0x14538d,{'id':'off-line-single','ref':_0x1cbd5f,'icon':_0x2eff4c}));});_0x258e90['displayName']=_0x3b3960(0x5d1);var _0x2ee4b3={'tag':_0x3b3960(0x4be),'attrs':{'fill':_0x3b3960(0x4b8),'viewBox':_0x3b3960(0x440),'width':_0x3b3960(0x222),'height':_0x3b3960(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b3960(0x2c6)},'children':[{'tag':'path','attrs':{'stroke':_0x3b3960(0x51b),'d':_0x3b3960(0x443),'strokeLinecap':'round','strokeLinejoin':_0x3b3960(0x221),'strokeWidth':1.2}}]},{'tag':_0x3b3960(0x300),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x3b3960(0x374),'d':_0x3b3960(0x31a),'transform':_0x3b3960(0x3d7)}}]}]}],'defIds':[_0x3b3960(0x5c7)]},_0xc787f=_0x100763[_0x3b3960(0x510)](function(_0x275788,_0x49c863){const _0x259352=_0x3b3960;return _0x100763[_0x259352(0x28e)](_0x195f69,Object['assign']({},_0x275788,{'id':_0x259352(0x504),'ref':_0x49c863,'icon':_0x2ee4b3}));});_0xc787f[_0x3b3960(0x4fd)]=_0x3b3960(0x555);const _0x217031={'onlineStatusIcon':_0x3b3960(0x235),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3b3960(0x2bb),'online':_0x3b3960(0x215),'offline':_0x3b3960(0x2ef)};function _0x1ad69b(_0x41c212){const _0x446845=_0x3b3960;switch(_0x41c212){case _0xe45813[_0x446845(0x461)]:return _0x446845(0x211);case _0xe45813[_0x446845(0x505)]:return _0x446845(0x299);case _0xe45813[_0x446845(0x53e)]:return'collabStatus.fetchMiss';case _0xe45813[_0x446845(0x2f0)]:return _0x446845(0x5c9);case _0xe45813['PENDING']:case _0xe45813[_0x446845(0x47e)]:case _0xe45813[_0x446845(0x282)]:return'collabStatus.syncing';case _0xe45813[_0x446845(0x4bc)]:return _0x446845(0x2ec);}}function _0x1c24e3(_0x228cbd){const _0x249605=_0x3b3960,{status$:_0x2d9288}=_0x228cbd,_0x16c4fa=_0x44b766[_0x249605(0x44f)](_0x2d9288,_0xe45813[_0x249605(0x2f0)]),_0xa6a082=_0x2015b3['useDependency'](_0x2015b3[_0x249605(0x20a)]),_0x33a91c=_0x16c4fa!==_0xe45813[_0x249605(0x461)],_0x5168d3=_0xa6a082['t'](_0x1ad69b(_0x16c4fa)),_0x53449a=_0x55b2c5(_0x217031[_0x249605(0x3f3)],{[_0x217031[_0x249605(0x330)]]:_0x33a91c,[_0x217031[_0x249605(0x5d2)]]:!_0x33a91c}),_0x398e2e=_0x33a91c?_0x100763[_0x249605(0x28e)](_0xc787f,null):_0x100763[_0x249605(0x28e)](_0x258e90,null);return _0x100763['createElement'](_0x249605(0x5e1),{'className':_0x53449a},_0x100763[_0x249605(0x28e)](_0x249605(0x5e1),{'className':_0x217031[_0x249605(0x545)]},_0x398e2e),_0x100763[_0x249605(0x28e)](_0x249605(0x5e1),{'className':_0x217031[_0x249605(0x4ec)]},_0x5168d3));}var _0x113116=Object[_0x3b3960(0x57c)],_0x2bc15a=Object[_0x3b3960(0x2c2)],_0x236220=(_0x282d24,_0x16847b,_0x1d1541,_0xda4424)=>{const _0x28cfc0=_0x3b3960;for(var _0x50a0bd=_0xda4424>0x1?void 0x0:_0xda4424?_0x2bc15a(_0x16847b,_0x1d1541):_0x16847b,_0x330701=_0x282d24[_0x28cfc0(0x306)]-0x1,_0x3b254c;_0x330701>=0x0;_0x330701--)(_0x3b254c=_0x282d24[_0x330701])&&(_0x50a0bd=(_0xda4424?_0x3b254c(_0x16847b,_0x1d1541,_0x50a0bd):_0x3b254c(_0x50a0bd))||_0x50a0bd);return _0xda4424&&_0x50a0bd&&_0x113116(_0x16847b,_0x1d1541,_0x50a0bd),_0x50a0bd;},_0x1e57d9=(_0x11eebf,_0x2f7f43)=>(_0x18dc2b,_0x46d599)=>_0x2f7f43(_0x18dc2b,_0x46d599,_0x11eebf);_0x2c3354[_0x3b3960(0x217)]=class extends _0x2015b3['Disposable']{constructor(_0x18acdb,_0x5a055e,_0x33d56d,_0x2d1aa4){const _0x34d341=_0x3b3960;super(),_0x385cfe(this,'_status$',new _0x345abe[(_0x34d341(0x2f9))](_0xe45813['NOT_COLLAB'])),(this['_univerInstanceService']=_0x18acdb,this[_0x34d341(0x355)]=_0x5a055e,this['_injector']=_0x33d56d,this[_0x34d341(0x494)]=_0x2d1aa4,this[_0x34d341(0x4c2)](),this[_0x34d341(0x548)]());}[_0x3b3960(0x4c2)](){const _0x47b71f=_0x3b3960;this[_0x47b71f(0x369)](this[_0x47b71f(0x355)][_0x47b71f(0x233)](_0x44b766[_0x47b71f(0x27e)][_0x47b71f(0x289)],()=>_0x2015b3[_0x47b71f(0x203)](_0x19accd({'status$':this[_0x47b71f(0x4e9)][_0x47b71f(0x348)]()}),this[_0x47b71f(0x3f4)])));}[_0x3b3960(0x548)](){const _0x45b50f=_0x3b3960;this[_0x45b50f(0x369)](_0x2015b3[_0x45b50f(0x31c)](this[_0x45b50f(0x5b7)][_0x45b50f(0x292)][_0x45b50f(0x2d1)](_0x345abe[_0x45b50f(0x22f)](()=>{const _0x2dfd70=_0x45b50f,_0x26870f=this[_0x2dfd70(0x5b7)]['getFocusedUnit']();return _0x26870f?this[_0x2dfd70(0x494)][_0x2dfd70(0x21c)](_0x26870f[_0x2dfd70(0x304)]()):_0x345abe['of'](null);}),_0x345abe['switchMap'](_0x25242c=>_0x25242c?_0x25242c[_0x45b50f(0x2f5)]:_0x345abe['of'](_0xe45813[_0x45b50f(0x2f0)])))[_0x45b50f(0x35b)](_0x26d112=>{const _0x514efd=_0x45b50f;this[_0x514efd(0x4e9)][_0x514efd(0x2b0)](_0x26d112);})));}},_0x2c3354['DesktopCollaborationStatusDisplayController']=_0x236220([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x206)],_0x2c3354[_0x3b3960(0x217)]),_0x1e57d9(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x1e57d9(0x1,_0x44b766[_0x3b3960(0x30d)]),_0x1e57d9(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x1e57d9(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3e2)]))],_0x2c3354['DesktopCollaborationStatusDisplayController']);function _0x19accd(_0x539f8d){const {status$:_0x17a38c}=_0x539f8d;return function(){const _0x1fcfa7=_0x41fb;return _0x100763[_0x1fcfa7(0x28e)](_0x1c24e3,{'status$':_0x17a38c});};}const _0xaa3b19=_0x2015b3['createIdentifier'](_0x3b3960(0x588));var _0x1ae63f=Object[_0x3b3960(0x57c)],_0x1b80a5=Object['getOwnPropertyDescriptor'],_0x1b556a=(_0x111bb8,_0xc28a79,_0xcac6be,_0x22f2b5)=>{const _0x1471f5=_0x3b3960;for(var _0x1d8bdf=_0x22f2b5>0x1?void 0x0:_0x22f2b5?_0x1b80a5(_0xc28a79,_0xcac6be):_0xc28a79,_0x642bd5=_0x111bb8[_0x1471f5(0x306)]-0x1,_0x5a2bc4;_0x642bd5>=0x0;_0x642bd5--)(_0x5a2bc4=_0x111bb8[_0x642bd5])&&(_0x1d8bdf=(_0x22f2b5?_0x5a2bc4(_0xc28a79,_0xcac6be,_0x1d8bdf):_0x5a2bc4(_0x1d8bdf))||_0x1d8bdf);return _0x22f2b5&&_0x1d8bdf&&_0x1ae63f(_0xc28a79,_0xcac6be,_0x1d8bdf),_0x1d8bdf;},_0xa77b75=(_0x544e64,_0x586b75)=>(_0x107cac,_0x3cc651)=>_0x586b75(_0x107cac,_0x3cc651,_0x544e64);_0x2c3354[_0x3b3960(0x4bb)]=class extends _0x2015b3['RxDisposable']{constructor(_0x689a41,_0x9048af,_0x3cd0dd,_0x3fe512,_0x490cc5,_0x4ebbc3){const _0x481543=_0x3b3960;super(),this['_urlService']=_0x689a41,this[_0x481543(0x501)]=_0x9048af,this[_0x481543(0x286)]=_0x3cd0dd,this[_0x481543(0x24b)]=_0x3fe512,this[_0x481543(0x528)]=_0x490cc5,_0x4ebbc3?_0x4ebbc3==null||_0x4ebbc3['whenReady']()[_0x481543(0x28a)](()=>this[_0x481543(0x4a1)]()):(this['_logService']['debug'](_0x481543(0x232),_0x481543(0x57b)),this['_init']());}async[_0x3b3960(0x4a1)](){const _0x234abb=_0x3b3960,_0x43f082=this[_0x234abb(0x253)]['getParam'](_0x234abb(0x4b2)),_0x51280f=this['_urlService'][_0x234abb(0x20d)]('type');if(!_0x43f082||!_0x51280f){this[_0x234abb(0x501)][_0x234abb(0x210)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x51280f)){case _0x32a37d[_0x234abb(0x321)]:{const _0x2822ea=await this[_0x234abb(0x530)](_0x43f082);this[_0x234abb(0x5a3)](_0x2822ea);break;}case _0x32a37d[_0x234abb(0x361)]:{await this[_0x234abb(0x433)](_0x43f082);break;}default:{this['_logService'][_0x234abb(0x50b)](_0x234abb(0x232),_0x234abb(0x265));break;}}}async[_0x3b3960(0x5a3)](_0x1e9819){const _0x57f404=_0x3b3960;await this[_0x57f404(0x416)](_0x1e9819),_0x1e9819[_0x57f404(0x243)][_0x57f404(0x2d1)](_0x345abe[_0x57f404(0x244)](this[_0x57f404(0x272)]))['subscribe'](_0x3d2d3b=>{const _0x503de0=_0x57f404;_0x3d2d3b&&this[_0x503de0(0x5b8)](_0x3d2d3b);}),this[_0x57f404(0x253)][_0x57f404(0x5f2)][_0x57f404(0x2d1)](_0x345abe[_0x57f404(0x244)](this[_0x57f404(0x272)]))[_0x57f404(0x35b)](()=>this[_0x57f404(0x416)](_0x1e9819));}[_0x3b3960(0x5b8)](_0x163a01,_0x362c8e=!0x1){const _0x1c8ceb=_0x3b3960,_0x5e0f72=this[_0x1c8ceb(0x253)][_0x1c8ceb(0x20d)]('subunit');_0x163a01[_0x1c8ceb(0x216)]()!==_0x5e0f72&&this[_0x1c8ceb(0x253)][_0x1c8ceb(0x35e)](_0x1c8ceb(0x5f8),_0x163a01[_0x1c8ceb(0x216)](),_0x362c8e);}async[_0x3b3960(0x416)](_0x19fc37){const _0x224d15=_0x3b3960;var _0x4bd0d5;const _0x5ce432=this['_urlService']['getParam']('subunit');if(!_0x5ce432||!_0x19fc37[_0x224d15(0x325)](_0x5ce432)){const _0x351dc4=_0x19fc37[_0x224d15(0x34d)]()[0x0],_0x34aceb=_0x19fc37[_0x224d15(0x325)](_0x351dc4);if(!_0x34aceb)return;this['_updateURLWithCurrentState'](_0x34aceb,!0x0),await this[_0x224d15(0x286)][_0x224d15(0x44d)](_0x3d1b6a[_0x224d15(0x442)]['id'],{'unitId':_0x19fc37['getUnitId'](),'subUnitId':_0x351dc4});return;}((_0x4bd0d5=_0x19fc37[_0x224d15(0x202)]())==null?void 0x0:_0x4bd0d5[_0x224d15(0x216)]())!==_0x5ce432&&await this['_commandService'][_0x224d15(0x44d)](_0x3d1b6a[_0x224d15(0x442)]['id'],{'unitId':_0x19fc37[_0x224d15(0x304)](),'subUnitId':_0x5ce432});}async[_0x3b3960(0x530)](_0x1684ac){const _0x59bb6d=_0x3b3960;let _0x36febb=0x0;const _0xc931c2=await this[_0x59bb6d(0x24b)][_0x59bb6d(0x56a)](_0x1684ac);return _0xc931c2&&(_0xc931c2[_0x59bb6d(0x1f2)]||_0xc931c2[_0x59bb6d(0x2e7)][_0x59bb6d(0x306)]!==0x0)&&(_0x36febb=_0xc931c2[_0x59bb6d(0x48a)]),_0x36febb===0x0&&this[_0x59bb6d(0x501)][_0x59bb6d(0x210)](_0x59bb6d(0x232),_0x59bb6d(0x598)),this[_0x59bb6d(0x528)][_0x59bb6d(0x1f9)](_0x1684ac,_0x36febb);}async[_0x3b3960(0x433)](_0x10fbcf){const _0x3c8c00=_0x3b3960;let _0x564d0c=0x0;const _0x3af582=await this['_localCacheService']['loadOfflineData'](_0x10fbcf);return _0x3af582&&(_0x3af582[_0x3c8c00(0x1f2)]||_0x3af582[_0x3c8c00(0x2e7)][_0x3c8c00(0x306)]!==0x0)&&(_0x564d0c=_0x3af582[_0x3c8c00(0x48a)]),_0x564d0c===0x0&&this[_0x3c8c00(0x501)][_0x3c8c00(0x210)](_0x3c8c00(0x232),_0x3c8c00(0x598)),this[_0x3c8c00(0x528)][_0x3c8c00(0x4ac)](_0x10fbcf,_0x564d0c);}},_0x2c3354['DataLoaderController']=_0x1b556a([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)]['Starting'],_0x2c3354[_0x3b3960(0x4bb)]),_0xa77b75(0x0,_0xaa3b19),_0xa77b75(0x1,_0x2015b3[_0x3b3960(0x1f3)]),_0xa77b75(0x2,_0x2015b3[_0x3b3960(0x259)]),_0xa77b75(0x3,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0xa77b75(0x4,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x5ac)])),_0xa77b75(0x5,_0x2015b3['Optional'](_0x43c42f[_0x3b3960(0x2fb)]))],_0x2c3354[_0x3b3960(0x4bb)]);var _0x23c483=Object[_0x3b3960(0x57c)],_0x46f96b=Object[_0x3b3960(0x2c2)],_0x36b7f9=(_0x5a6ecd,_0x2ca6db,_0x1480db,_0x5d172b)=>{const _0x9ac003=_0x3b3960;for(var _0x18a845=_0x5d172b>0x1?void 0x0:_0x5d172b?_0x46f96b(_0x2ca6db,_0x1480db):_0x2ca6db,_0x397fe4=_0x5a6ecd[_0x9ac003(0x306)]-0x1,_0x325ed0;_0x397fe4>=0x0;_0x397fe4--)(_0x325ed0=_0x5a6ecd[_0x397fe4])&&(_0x18a845=(_0x5d172b?_0x325ed0(_0x2ca6db,_0x1480db,_0x18a845):_0x325ed0(_0x18a845))||_0x18a845);return _0x5d172b&&_0x18a845&&_0x23c483(_0x2ca6db,_0x1480db,_0x18a845),_0x18a845;},_0x2a846c=(_0x3f920c,_0x194679)=>(_0x3042c4,_0x3c30e1)=>_0x194679(_0x3042c4,_0x3c30e1,_0x3f920c);const _0x2a4d7b='DEFAULT_FILE_NAME',_0x7f12f0=_0x3b3960(0x389);let _0x25c571=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x18b053,_0x279a90){const _0x1b7387=_0x3b3960;super(),this[_0x1b7387(0x5b7)]=_0x18b053,this[_0x1b7387(0x46c)]=_0x279a90,this[_0x1b7387(0x4a1)]();}['_init'](){const _0xdf72a9=_0x3b3960;this[_0xdf72a9(0x369)](_0x2015b3[_0xdf72a9(0x31c)](this[_0xdf72a9(0x5b7)][_0xdf72a9(0x292)]['subscribe'](()=>{const _0x43a392=_0xdf72a9;var _0x509c96;const _0x401099=this[_0x43a392(0x5b7)][_0x43a392(0x209)]();let _0x304649=(_0x509c96=this[_0x43a392(0x46c)][_0x43a392(0x584)](_0x2a4d7b))!=null?_0x509c96:_0x7f12f0;_0x401099 instanceof _0x2015b3[_0x43a392(0x3cf)]&&(_0x304649=_0x401099[_0x43a392(0x425)]),document[_0x43a392(0x49c)]=_0x304649;})));}};_0x25c571=_0x36b7f9([_0x2015b3['OnLifecycle'](_0x2015b3['LifecycleStages'][_0x3b3960(0x4f5)],_0x25c571),_0x2a846c(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x2a846c(0x1,_0x2015b3['IConfigService'])],_0x25c571);var _0xae2fc6=Object[_0x3b3960(0x57c)],_0x492edf=Object['getOwnPropertyDescriptor'],_0x546f93=(_0x1c2ac4,_0x3c1f0d,_0x1e5d75,_0x55ddd1)=>{const _0x3ec883=_0x3b3960;for(var _0x26563c=_0x55ddd1>0x1?void 0x0:_0x55ddd1?_0x492edf(_0x3c1f0d,_0x1e5d75):_0x3c1f0d,_0x42369b=_0x1c2ac4[_0x3ec883(0x306)]-0x1,_0x36a73b;_0x42369b>=0x0;_0x42369b--)(_0x36a73b=_0x1c2ac4[_0x42369b])&&(_0x26563c=(_0x55ddd1?_0x36a73b(_0x3c1f0d,_0x1e5d75,_0x26563c):_0x36a73b(_0x26563c))||_0x26563c);return _0x55ddd1&&_0x26563c&&_0xae2fc6(_0x3c1f0d,_0x1e5d75,_0x26563c),_0x26563c;},_0x485a42=(_0x381a48,_0x4c7769)=>(_0x11b1a6,_0x2fac4e)=>_0x4c7769(_0x11b1a6,_0x2fac4e,_0x381a48);_0x2c3354[_0x3b3960(0x557)]=class{constructor(_0x2d2378,_0x516f52){const _0x5c8250=_0x3b3960;this[_0x5c8250(0x46c)]=_0x2d2378,this[_0x5c8250(0x2b4)]=_0x516f52;}async[_0x3b3960(0x5c8)](_0x433320,_0x22329b){const _0xda93dd=_0x3b3960;var _0x1d1179;const {unitID:_0x2194f3,type:_0x4f79a0,revision:_0x42d20a=0x0}=_0x22329b,_0x18f7ad=this[_0xda93dd(0x3f7)]()+'/'+_0x4f79a0+_0xda93dd(0x37a)+_0x2194f3+_0xda93dd(0x2f7)+_0x42d20a,_0x248026=(await this[_0xda93dd(0x2b4)]['get'](_0x18f7ad))[_0xda93dd(0x527)],_0x3a71d5=(_0x1d1179=_0x248026[_0xda93dd(0x5bb)])==null?void 0x0:_0x1d1179['workbook'];if(_0x3a71d5){const _0x2ea0d8=_0x3a71d5==null?void 0x0:_0x3a71d5[_0xda93dd(0x441)],_0xa457e3=_0x106736[_0xda93dd(0x386)]['encode'](_0x106736[_0xda93dd(0x2cc)](_0x2ea0d8));_0x3a71d5[_0xda93dd(0x441)]=_0xa457e3,Object[_0xda93dd(0x380)](_0x3a71d5[_0xda93dd(0x319)])[_0xda93dd(0x4d1)](([,_0xcffb80])=>{const _0x1c4c0a=_0xda93dd,_0x445534=_0xcffb80[_0x1c4c0a(0x441)],_0x69f281=_0x106736['textEncoder']['encode'](_0x106736[_0x1c4c0a(0x2cc)](_0x445534));_0xcffb80[_0x1c4c0a(0x441)]=_0x69f281;});}return _0x248026;}async[_0x3b3960(0x2ce)](_0x57b3f2,_0xae8057){const _0x46cfc8=_0x3b3960,{unitID:_0x1208dd,type:_0x270c03,blockID:_0x3c108d}=_0xae8057,_0x14938f=this['_getAPIPrefix']()+'/'+_0x270c03+_0x46cfc8(0x37a)+_0x1208dd+'/block/'+_0x3c108d;return(await this[_0x46cfc8(0x2b4)][_0x46cfc8(0x3b9)](_0x14938f))[_0x46cfc8(0x527)];}async['fetchMissingChangesets'](_0x14f7c4,_0xce8a37){const _0x27596c=_0x3b3960,{unitID:_0x446d9f,type:_0x437193,from:_0x18fc60,to:_0x1ca39a}=_0xce8a37,_0x39b17d=this[_0x27596c(0x561)]()+'/'+_0x437193+_0x27596c(0x37a)+_0x446d9f+_0x27596c(0x4ee)+_0x18fc60+_0x27596c(0x45a)+_0x1ca39a;return(await this['_httpService'][_0x27596c(0x3b9)](_0x39b17d))[_0x27596c(0x527)];}[_0x3b3960(0x3f7)](){const _0x1f0512=_0x3b3960;var _0x47557a;return(_0x47557a=this['_configService'][_0x1f0512(0x584)](_0x5648aa))!=null?_0x47557a:this[_0x1f0512(0x561)]();}[_0x3b3960(0x561)](){const _0x40d64c=_0x3b3960;var _0x446053;return(_0x446053=this['_configService'][_0x40d64c(0x584)](_0x2c5950))!=null?_0x446053:_0x58a23f;}async[_0x3b3960(0x261)](_0xcd271c,_0xebf4){const _0x3a5504=_0x3b3960,_0xd20712='/universer-api/snapshot/'+_0xebf4[_0x3a5504(0x376)]+_0x3a5504(0x37a)+_0xebf4['unitID']+'/resources';return(await this[_0x3a5504(0x2b4)][_0x3a5504(0x3b9)](_0xd20712,{'params':{'resourceId':JSON[_0x3a5504(0x4b3)](_0xebf4[_0x3a5504(0x452)])}}))['body'];}[_0x3b3960(0x3fc)](){const _0x2acffe=_0x3b3960;throw new Error(_0x2acffe(0x3d3));}[_0x3b3960(0x4dd)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b3960(0x22e)](){const _0x3cd4cb=_0x3b3960;throw new Error(_0x3cd4cb(0x3d3));}},_0x2c3354[_0x3b3960(0x557)]=_0x546f93([_0x485a42(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x485a42(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b[_0x3b3960(0x536)]))],_0x2c3354[_0x3b3960(0x557)]);var _0x5f5631=Object[_0x3b3960(0x57c)],_0x56f379=Object['getOwnPropertyDescriptor'],_0x1dae86=(_0x2894fb,_0x30e743,_0x29b936,_0x1fc101)=>{const _0x35a33a=_0x3b3960;for(var _0x2fd3e4=_0x1fc101>0x1?void 0x0:_0x1fc101?_0x56f379(_0x30e743,_0x29b936):_0x30e743,_0x40ec11=_0x2894fb[_0x35a33a(0x306)]-0x1,_0x5048af;_0x40ec11>=0x0;_0x40ec11--)(_0x5048af=_0x2894fb[_0x40ec11])&&(_0x2fd3e4=(_0x1fc101?_0x5048af(_0x30e743,_0x29b936,_0x2fd3e4):_0x5048af(_0x2fd3e4))||_0x2fd3e4);return _0x1fc101&&_0x2fd3e4&&_0x5f5631(_0x30e743,_0x29b936,_0x2fd3e4),_0x2fd3e4;},_0xed0974=(_0x1c1f7d,_0x179065)=>(_0x920726,_0x5ad12d)=>_0x179065(_0x920726,_0x5ad12d,_0x1c1f7d);let _0x448505=class extends _0x2015b3[_0x3b3960(0x558)]{constructor(_0x372dc5,_0xf6675d,_0x220bb3,_0xe4dbb7,_0x4734e5){const _0x121a3a=_0x3b3960;super(_0x372dc5,_0xf6675d,_0x220bb3),this[_0x121a3a(0x3b1)]=_0xe4dbb7,this[_0x121a3a(0x501)]=_0x4734e5;}[_0x3b3960(0x1f7)](_0x41e106,_0x1b69d2){const _0x11dab7=_0x3b3960,_0x111ec4=this[_0x11dab7(0x295)](_0x41e106);if(_0x111ec4)try{const _0x3e625f=this['_transformStack'](_0x111ec4,_0x1b69d2);this[_0x11dab7(0x38c)](_0x41e106,_0x3e625f);}catch(_0xe5be41){this[_0x11dab7(0x501)][_0x11dab7(0x50b)](_0x11dab7(0x590),_0xe5be41),this['_clearUndo'](_0x41e106);}const _0x4b3828=this[_0x11dab7(0x2a6)](_0x41e106);if(_0x4b3828)try{const _0x238b8b=this[_0x11dab7(0x3e1)](_0x4b3828,_0x1b69d2);this[_0x11dab7(0x31e)](_0x41e106,_0x238b8b);}catch(_0x20294d){this['_logService'][_0x11dab7(0x50b)](_0x20294d),this[_0x11dab7(0x238)](_0x41e106);}}[_0x3b3960(0x34e)](_0x2c2d83){const _0x1c25ba=_0x3b3960,_0x57c409=this[_0x1c25ba(0x295)](_0x2c2d83);_0x57c409&&(_0x57c409[_0x1c25ba(0x306)]=0x0,this[_0x1c25ba(0x466)]());}['_clearRedo'](_0x4360d7){const _0x1d222c=this['_getRedoStack'](_0x4360d7);_0x1d222c&&(_0x1d222c['length']=0x0,this['_updateStatus']());}[_0x3b3960(0x38c)](_0x3d7db7,_0x1ffcc3){const _0x3ca071=_0x3b3960;this[_0x3ca071(0x41a)][_0x3ca071(0x420)](_0x3d7db7,_0x1ffcc3),this[_0x3ca071(0x466)]();}[_0x3b3960(0x31e)](_0xd67088,_0x2dd476){const _0x30c03c=_0x3b3960;this[_0x30c03c(0x3cd)][_0x30c03c(0x420)](_0xd67088,_0x2dd476),this[_0x30c03c(0x466)]();}['_transformStack'](_0x11c09e,_0x32fdac){const _0x33c995=_0x3b3960,_0x7a03dc=[];let _0x480782=_0x32fdac,_0x5726ac=_0x32fdac;for(let _0x5e4980=_0x11c09e[_0x33c995(0x306)]-0x1;_0x5e4980>=0x0;_0x5e4980--){const {unitID:_0x197f3b,undoMutations:_0x8af4d5,redoMutations:_0x58e680}=_0x11c09e[_0x5e4980],_0x877ed4=this[_0x33c995(0x3b1)]['transformMutationsWithChangeset'](_0x480782,_0x8af4d5),_0x51dbe6=this[_0x33c995(0x3b1)]['transformMutationsWithChangeset'](_0x5726ac,_0x58e680);if(_0x106736['isTransformMutationsWithChangesetFailure'](_0x877ed4)||_0x106736[_0x33c995(0x476)](_0x51dbe6)){this[_0x33c995(0x501)]['error'](_0x33c995(0x590),_0x33c995(0x422),_0x877ed4,_0x51dbe6);break;}_0x480782=_0x877ed4['c1Prime'],_0x5726ac=_0x51dbe6[_0x33c995(0x4f4)],_0x7a03dc[_0x33c995(0x279)]({'unitID':_0x197f3b,'undoMutations':_0x877ed4['m2Prime'],'redoMutations':_0x51dbe6[_0x33c995(0x4af)]});}return _0x7a03dc[_0x33c995(0x5af)]();}};_0x448505=_0x1dae86([_0xed0974(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0xed0974(0x1,_0x2015b3[_0x3b3960(0x259)]),_0xed0974(0x2,_0x2015b3[_0x3b3960(0x5fb)]),_0xed0974(0x3,_0x106736[_0x3b3960(0x25a)]),_0xed0974(0x4,_0x2015b3['ILogService'])],_0x448505);class _0x3e5f32 extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(){const _0x577438=_0x3b3960;super(),_0x385cfe(this,_0x577438(0x5f2)),this[_0x577438(0x5f2)]=_0x345abe[_0x577438(0x44c)](window,_0x577438(0x3c4))[_0x577438(0x2d1)](_0x345abe[_0x577438(0x244)](this[_0x577438(0x272)]),_0x345abe[_0x577438(0x4fa)](0x1),_0x345abe[_0x577438(0x2e9)](void 0x0));}['setParam'](_0x37253c,_0x11c91c,_0x374288=!0x1){const _0xc12f8b=_0x3b3960,_0x3588fe=new URL(window[_0xc12f8b(0x2fe)][_0xc12f8b(0x4a4)]);_0x3588fe['searchParams'][_0xc12f8b(0x420)](_0x37253c,_0x11c91c),_0x374288?window[_0xc12f8b(0x5aa)][_0xc12f8b(0x3f5)]('','',_0x3588fe[_0xc12f8b(0x396)]()):window[_0xc12f8b(0x5aa)][_0xc12f8b(0x384)]('','',_0x3588fe[_0xc12f8b(0x396)]());}[_0x3b3960(0x29a)](_0x3adc6f,_0x200eb1=!0x1){const _0x5f5054=_0x3b3960,_0x4e1e49=new URL(window[_0x5f5054(0x2fe)][_0x5f5054(0x4a4)]);_0x4e1e49[_0x5f5054(0x350)][_0x5f5054(0x431)](_0x3adc6f),_0x200eb1?window['history'][_0x5f5054(0x3f5)]('','',_0x4e1e49[_0x5f5054(0x396)]()):window[_0x5f5054(0x5aa)][_0x5f5054(0x384)]('','',_0x4e1e49[_0x5f5054(0x396)]());}[_0x3b3960(0x20d)](_0x3a741b){const _0x22a836=_0x3b3960;var _0x80a51e;return(_0x80a51e=new URL(window[_0x22a836(0x2fe)][_0x22a836(0x4a4)])['searchParams'][_0x22a836(0x3b9)](_0x3a741b))!=null?_0x80a51e:void 0x0;}}const _0x131898=_0x3b3960(0x4ff),_0x1f6b36=_0x3b3960(0x5eb),_0x2847ea='collab-rect-range-',_0x4fdd90=0x6,_0x24bd1e=1.5,_0x27743b=0x4,_0x9a8852=1.5,_0x2f10cf='rgba(255,\x20255,\x20255,\x200.01)';class _0x134409{constructor(_0xf8485a,_0x4f1343,_0x488762,_0x1f817f){const _0x2250c8=_0x3b3960;_0x385cfe(this,_0x2250c8(0x20c),[]),_0x385cfe(this,'_anchor',null),_0x385cfe(this,_0x2250c8(0x4ed),null),_0x385cfe(this,_0x2250c8(0x3b0),null),_0x385cfe(this,'_hideTimer',null),_0x385cfe(this,'_eventUnsubscribe',null),(this[_0x2250c8(0x2e4)]=_0xf8485a,this[_0x2250c8(0x5d5)]=_0x4f1343,this['_docSkeleton']=_0x488762,this['_document']=_0x1f817f,this[_0x2250c8(0x249)]());}set[_0x3b3960(0x214)](_0x2a24d5){const _0x367ba0=_0x3b3960;_0x2a24d5?(this['_anchorDot']&&this['_anchorDot'][_0x367ba0(0x2c7)](),this[_0x367ba0(0x4ed)]&&this[_0x367ba0(0x4ed)][_0x367ba0(0x2c3)]()):(this[_0x367ba0(0x3b0)]&&this[_0x367ba0(0x3b0)][_0x367ba0(0x2c3)](),this['_textBubble']&&this[_0x367ba0(0x4ed)]['hide']());}['dispose'](){const _0x21a518=_0x3b3960;for(const _0x5be8bb of this[_0x21a518(0x20c)])_0x5be8bb['dispose']();this[_0x21a518(0x4ed)]&&this[_0x21a518(0x4ed)][_0x21a518(0x472)](),this['_anchorDot']&&this[_0x21a518(0x3b0)]['dispose'](),this[_0x21a518(0x5bd)]&&this[_0x21a518(0x5bd)]['dispose'](),this[_0x21a518(0x450)]&&this[_0x21a518(0x450)]();}[_0x3b3960(0x249)](){const _0x3ec383=_0x3b3960;var _0x521f2;const {_docSkeleton:_0x6843ac,_document:_0x196648}=this,{color:_0x2ced16,name:_0x3324e3,ranges:_0x46f78e}=this[_0x3ec383(0x2e4)],_0x309e21=_0x196648[_0x3ec383(0x418)](),{docsLeft:_0x3af97e,docsTop:_0x45b075}=_0x309e21,_0x3460cf=new _0x572a63[(_0x3ec383(0x47f))](_0x309e21,_0x6843ac);for(const {startOffset:_0x18d93e,endOffset:_0x19e7f2,collapsed:_0x4e3af6,isActive:_0x3eb97e}of _0x46f78e){const _0x4f91f8=_0x6843ac['findNodePositionByCharIndex'](_0x18d93e),_0x10622c=_0x6843ac[_0x3ec383(0x2dd)](_0x19e7f2);if(_0x3eb97e){const {contentBoxPointGroup:_0x6b0489}=_0x3460cf[_0x3ec383(0x470)](_0x10622c,_0x10622c);if(_0x6b0489[_0x3ec383(0x306)]===0x0)continue;this[_0x3ec383(0x52a)](_0x2ced16,_0x6b0489,_0x3af97e,_0x45b075,_0x3324e3),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x4e3af6&&_0x4f91f8&&_0x10622c){if(_0x572a63[_0x3ec383(0x400)](_0x4f91f8,_0x10622c)){const _0x6c3434=new _0x572a63[(_0x3ec383(0x410))](_0x309e21,_0x6843ac),{pointGroup:_0x2e8480}=(_0x521f2=_0x6c3434[_0x3ec383(0x470)](_0x4f91f8,_0x10622c))!=null?_0x521f2:{};if(_0x2e8480==null||_0x2e8480[_0x3ec383(0x306)]===0x0)continue;this['_drawRectRange'](_0x2ced16,_0x2e8480,_0x3af97e,_0x45b075);}else{const {contentBoxPointGroup:_0x2cf259}=_0x3460cf[_0x3ec383(0x470)](_0x4f91f8,_0x10622c);if(_0x2cf259['length']===0x0)continue;this[_0x3ec383(0x4e0)](_0x2ced16,_0x2cf259,_0x3af97e,_0x45b075);}}}}[_0x3b3960(0x52a)](_0x9177ca,_0x45287a,_0x174623,_0xaeaa31,_0x53a4e4){const _0x4180f7=_0x3b3960,_0x145f82=this['_getAnchorBounding'](_0x45287a),{left:_0x275358,top:_0x3ec727,height:_0x3d619c}=_0x145f82,_0x593238=this[_0x4180f7(0x254)](),_0x4a7218=_0x9a8852/_0x593238,_0x2810aa=new _0x572a63[(_0x4180f7(0x58b))](_0x131898+_0x2015b3[_0x4180f7(0x471)][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31,'height':_0x3d619c,'width':_0x24bd1e,'fill':_0x9177ca||_0x572a63['getColor'](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'strokeWidth':_0x4a7218,'stroke':_0x2f10cf,'evented':!0x0});this[_0x4180f7(0x5bd)]=_0x2810aa,this['_scene']['addObject'](_0x2810aa,_0x572a63[_0x4180f7(0x573)]);const _0x25e4ba=new _0x572a63['Rect'](_0x131898+_0x2015b3[_0x4180f7(0x471)][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31-_0x27743b/0x2,'height':_0x27743b,'width':_0x27743b,'fill':_0x9177ca||_0x572a63['getColor'](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'strokeWidth':0x0,'stroke':_0x9177ca||_0x572a63[_0x4180f7(0x2a1)](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'evented':!0x1});this[_0x4180f7(0x3b0)]=_0x25e4ba,this[_0x4180f7(0x5d5)]['addObject'](_0x25e4ba,_0x572a63[_0x4180f7(0x573)]);const _0x4d2e61=new _0x4b8b68(_0x131898+_0x2015b3['Tools'][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31-_0x5c9f4b,'text':_0x53a4e4,'color':_0x9177ca});this['_textBubble']=_0x4d2e61,this[_0x4180f7(0x5d5)]['addObject'](_0x4d2e61,_0x572a63['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x3b3960(0x589)](){const _0x140389=_0x3b3960,_0x41b6fc=this[_0x140389(0x5bd)][_0x140389(0x451)]['subscribeEvent'](()=>{const _0x3617ff=_0x140389;this[_0x3617ff(0x214)]=!0x0;}),_0x1e7794=this['_anchor']['onPointerLeave$'][_0x140389(0x281)](()=>{const _0x5258f6=_0x140389;this[_0x5258f6(0x293)]&&clearTimeout(this[_0x5258f6(0x293)]),this[_0x5258f6(0x293)]=setTimeout(()=>{const _0x1d231a=_0x5258f6;this[_0x1d231a(0x214)]=!0x1;},0x7d0);});return()=>{const _0x24f117=_0x140389;_0x41b6fc['unsubscribe'](),_0x1e7794[_0x24f117(0x55a)]();};}[_0x3b3960(0x4e0)](_0x56ae32,_0x23f843,_0xad9b4f,_0x5bc09b){const _0x2a793c=_0x3b3960,_0x422466=new _0x2015b3[(_0x2a793c(0x50a))](_0x56ae32)['setAlpha'](0.2)['toRgbString'](),_0xa0a5cb=new _0x572a63[(_0x2a793c(0x5be))](_0x1f6b36+_0x2015b3['Tools'][_0x2a793c(0x447)](_0x4fdd90),{'pointsGroup':_0x23f843,'fill':_0x422466||_0x572a63[_0x2a793c(0x2a1)](_0x2015b3[_0x2a793c(0x570)][_0x2a793c(0x514)],0.2),'left':_0xad9b4f,'top':_0x5bc09b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a793c(0x20c)][_0x2a793c(0x279)](_0xa0a5cb),this[_0x2a793c(0x5d5)][_0x2a793c(0x280)](_0xa0a5cb,_0x572a63['TEXT_RANGE_LAYER_INDEX']);}[_0x3b3960(0x506)](_0xc983ba,_0x9dd17c,_0x540411,_0x1200ce){const _0x4a5ad4=_0x3b3960,_0x368058=new _0x2015b3[(_0x4a5ad4(0x50a))](_0xc983ba)['setAlpha'](0.2)[_0x4a5ad4(0x583)](),_0x51974a=new _0x572a63['RegularPolygon'](_0x2847ea+_0x2015b3['Tools'][_0x4a5ad4(0x447)](_0x4fdd90),{'pointsGroup':_0x9dd17c,'fill':_0x368058||_0x572a63[_0x4a5ad4(0x2a1)](_0x2015b3[_0x4a5ad4(0x570)][_0x4a5ad4(0x514)],0.2),'left':_0x540411,'top':_0x1200ce,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a5ad4(0x20c)]['push'](_0x51974a),this[_0x4a5ad4(0x5d5)]['addObject'](_0x51974a,_0x572a63['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x361b49){const _0x48b054=_0x361b49[0x0],_0x555fa=_0x48b054[0x0],_0x16c371=_0x48b054[0x2],{x:_0x45c882,y:_0x573934}=_0x555fa,{x:_0x412f29,y:_0x56d445}=_0x16c371;return{'left':_0x45c882,'top':_0x573934,'width':_0x412f29-_0x45c882,'height':_0x56d445-_0x573934};}[_0x3b3960(0x254)](){const _0x2d6cb5=_0x3b3960,{scaleX:_0x426897,scaleY:_0x58956d}=this[_0x2d6cb5(0x5d5)]['getAncestorScale']();return Math[_0x2d6cb5(0x2d6)](_0x426897,_0x58956d);}}var _0x2366bf=Object[_0x3b3960(0x57c)],_0x5277a2=Object[_0x3b3960(0x2c2)],_0x5e6a89=(_0x10e7e0,_0x268f98,_0x14fad7,_0x5e1925)=>{const _0x231eea=_0x3b3960;for(var _0x3968f3=_0x5e1925>0x1?void 0x0:_0x5e1925?_0x5277a2(_0x268f98,_0x14fad7):_0x268f98,_0x5500dd=_0x10e7e0[_0x231eea(0x306)]-0x1,_0x520403;_0x5500dd>=0x0;_0x5500dd--)(_0x520403=_0x10e7e0[_0x5500dd])&&(_0x3968f3=(_0x5e1925?_0x520403(_0x268f98,_0x14fad7,_0x3968f3):_0x520403(_0x3968f3))||_0x3968f3);return _0x5e1925&&_0x3968f3&&_0x2366bf(_0x268f98,_0x14fad7,_0x3968f3),_0x3968f3;},_0x2b1866=(_0x40bd69,_0x2b5ed6)=>(_0x59d8f1,_0x6d3ede)=>_0x2b5ed6(_0x59d8f1,_0x6d3ede,_0x40bd69);let _0x304928=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x37de76,_0x38ff79,_0x2b92a1,_0x2ac4b0,_0x39246c){const _0x5a57c2=_0x3b3960;super(),_0x385cfe(this,_0x5a57c2(0x5fd),[]),_0x385cfe(this,_0x5a57c2(0x302),[]),(this[_0x5a57c2(0x37f)]=_0x37de76,this[_0x5a57c2(0x4c5)]=_0x38ff79,this['_collabCursorController']=_0x2b92a1,this[_0x5a57c2(0x286)]=_0x2ac4b0,this[_0x5a57c2(0x549)]=_0x39246c,this[_0x5a57c2(0x4a1)]());}[_0x3b3960(0x4a1)](){const _0x59be52=_0x3b3960,_0x288cd3=this[_0x59be52(0x37f)][_0x59be52(0x59f)],_0x2f754f=this[_0x59be52(0x4c5)];this[_0x59be52(0x369)](_0x345abe[_0x59be52(0x4a3)]([this[_0x59be52(0x266)]['getCollabCursors$'](_0x288cd3),this[_0x59be52(0x549)]['currentTheme$']])[_0x59be52(0x2d1)](_0x2cc613[_0x59be52(0x522)](([_0x41dd35,_0xe62def])=>({'skeleton':_0x2f754f[_0x59be52(0x3de)](),'cursors':[..._0x41dd35[_0x59be52(0x58f)]()][_0x59be52(0x436)](_0xeeceb0=>({..._0xeeceb0,'color':_0xe62def[_0xeeceb0[_0x59be52(0x3d8)]]}))})))[_0x59be52(0x35b)](_0x12f15d=>{const _0x3a499b=_0x59be52;if(this[_0x3a499b(0x3b7)](),_0x12f15d){const {skeleton:_0x283c16,cursors:_0x3a4c47}=_0x12f15d;this[_0x3a499b(0x368)](_0x283c16,_0x3a4c47);}})),this[_0x59be52(0x540)](),this[_0x59be52(0x5bc)]();}['_updateCollabCursors'](_0x55e891,_0xb41ff6){const _0x2d8e1e=_0x3b3960,{scene:_0x5ae8fd,mainComponent:_0x1e8c2e}=this[_0x2d8e1e(0x37f)],_0x4fd2f8=_0xb41ff6[_0x2d8e1e(0x522)](_0x344611=>new _0x134409(_0x344611,_0x5ae8fd,_0x55e891,_0x1e8c2e));this['_cursorShapes']=_0x4fd2f8,this[_0x2d8e1e(0x302)]=_0xb41ff6;}[_0x3b3960(0x3bd)](){const _0x2bb8ae=_0x3b3960;this[_0x2bb8ae(0x3b7)]();const {scene:_0x44bf0f,mainComponent:_0x211732}=this[_0x2bb8ae(0x37f)],_0x87f55c=this[_0x2bb8ae(0x4c5)][_0x2bb8ae(0x3de)](),_0x47272b=this[_0x2bb8ae(0x302)]['map'](_0x6b9e44=>new _0x134409(_0x6b9e44,_0x44bf0f,_0x87f55c,_0x211732));this[_0x2bb8ae(0x5fd)]=_0x47272b;}[_0x3b3960(0x3b7)](){const _0x3ee73f=_0x3b3960;this[_0x3ee73f(0x5fd)][_0x3ee73f(0x4d1)](_0x478124=>_0x478124[_0x3ee73f(0x472)]()),this[_0x3ee73f(0x5fd)]=[];}[_0x3b3960(0x5bc)](){const _0x26effe=_0x3b3960,_0x5054e6=[_0xbcf55e[_0x26effe(0x359)]['id']];this['disposeWithMe'](this['_commandService'][_0x26effe(0x3ab)](_0x215a62=>{const _0x52952c=_0x26effe;_0x5054e6[_0x52952c(0x4e5)](_0x215a62['id'])&&_0x215a62[_0x52952c(0x358)]['unitId']===this['_context'][_0x52952c(0x59f)]&&this[_0x52952c(0x3bd)]();}));}[_0x3b3960(0x540)](){const _0x3375ee=_0x3b3960;this[_0x3375ee(0x369)](_0x2015b3[_0x3375ee(0x270)](this[_0x3375ee(0x37f)][_0x3375ee(0x336)]['onTransformChange$'])[_0x3375ee(0x2d1)](_0x2cc613[_0x3375ee(0x493)](_0x464406=>_0x464406[_0x3375ee(0x376)]===_0x572a63[_0x3375ee(0x533)]['resize']),_0x2cc613[_0x3375ee(0x21a)](0x10))[_0x3375ee(0x35b)](()=>{const _0x5ec3b5=_0x3375ee;this[_0x5ec3b5(0x3bd)]();}));}};_0x304928=_0x5e6a89([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x520)],_0x304928),_0x2b1866(0x1,_0x2015b3[_0x3b3960(0x547)](_0xbcf55e['DocSkeletonManagerService'])),_0x2b1866(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2a0bf9)),_0x2b1866(0x3,_0x2015b3[_0x3b3960(0x259)]),_0x2b1866(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x2e1)]))],_0x304928);var _0x1bd4c8=Object['defineProperty'],_0x23fc68=Object[_0x3b3960(0x2c2)],_0x2a7515=(_0x1408e2,_0x7f2edc,_0x3a6dc8,_0xd35801)=>{const _0x20afb3=_0x3b3960;for(var _0x6407a5=_0xd35801>0x1?void 0x0:_0xd35801?_0x23fc68(_0x7f2edc,_0x3a6dc8):_0x7f2edc,_0x52042d=_0x1408e2[_0x20afb3(0x306)]-0x1,_0x179858;_0x52042d>=0x0;_0x52042d--)(_0x179858=_0x1408e2[_0x52042d])&&(_0x6407a5=(_0xd35801?_0x179858(_0x7f2edc,_0x3a6dc8,_0x6407a5):_0x179858(_0x6407a5))||_0x6407a5);return _0xd35801&&_0x6407a5&&_0x1bd4c8(_0x7f2edc,_0x3a6dc8,_0x6407a5),_0x6407a5;},_0x321032=(_0x224b03,_0x30d43c)=>(_0x52beb6,_0xc30b9f)=>_0x30d43c(_0x52beb6,_0xc30b9f,_0x224b03);let _0x371f23=class{constructor(_0x85b1d5,_0x18d793,_0x2eb116){const _0x3fddf0=_0x3b3960;this[_0x3fddf0(0x46c)]=_0x85b1d5,this[_0x3fddf0(0x2b4)]=_0x18d793,this['localeService']=_0x2eb116,this[_0x3fddf0(0x595)]();}[_0x3b3960(0x595)](){const _0x4d7e53=_0x3b3960;this[_0x4d7e53(0x2b4)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x426f7e,_0xf11e51)=>_0xf11e51(_0x426f7e)['pipe'](_0x345abe[_0x4d7e53(0x226)](async _0x48f09b=>{const _0x2fdf4b=_0x4d7e53,_0x226d7e=_0x48f09b;if(_0x226d7e[_0x2fdf4b(0x268)]===0x191&&window[_0x2fdf4b(0x2ac)](this[_0x2fdf4b(0x362)]['t'](_0x2fdf4b(0x585)))){const _0x2cc7c2=window[_0x2fdf4b(0x3c7)](window['location']['href']);window['location'][_0x2fdf4b(0x4a4)]=this['_getLoginPath']()+'?url='+_0x2cc7c2;}return _0x226d7e;}))});}[_0x3b3960(0x592)](){const _0x1d14ab=_0x3b3960;var _0x124e61;return(_0x124e61=this['_configService'][_0x1d14ab(0x584)](_0x4f5e36))!=null?_0x124e61:_0x1df3cc;}};_0x371f23=_0x2a7515([_0x321032(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x321032(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b[_0x3b3960(0x536)])),_0x321032(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['LocaleService']))],_0x371f23);var _0x32378c=Object['defineProperty'],_0x5a00c5=Object['getOwnPropertyDescriptor'],_0x537450=(_0x3c10f3,_0x147970,_0x478753,_0x124bf8)=>{const _0x53dfcb=_0x3b3960;for(var _0x537970=_0x124bf8>0x1?void 0x0:_0x124bf8?_0x5a00c5(_0x147970,_0x478753):_0x147970,_0x57f49e=_0x3c10f3[_0x53dfcb(0x306)]-0x1,_0x5725af;_0x57f49e>=0x0;_0x57f49e--)(_0x5725af=_0x3c10f3[_0x57f49e])&&(_0x537970=(_0x124bf8?_0x5725af(_0x147970,_0x478753,_0x537970):_0x5725af(_0x537970))||_0x537970);return _0x124bf8&&_0x537970&&_0x32378c(_0x147970,_0x478753,_0x537970),_0x537970;},_0x350d64=(_0x2c6f03,_0x5a1847)=>(_0x5a76cc,_0xbd9cea)=>_0x5a1847(_0x5a76cc,_0xbd9cea,_0x2c6f03);const _0xe6c904=_0x3b3960(0x29d),_0x3dff80=_0x3b3960(0x2ea);_0x2c3354[_0x3b3960(0x5fa)]=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x2e023c,_0x43f3d4){const _0x502c29=_0x3b3960;super(),this[_0x502c29(0x5e5)]=_0x2e023c,this[_0x502c29(0x46c)]=_0x43f3d4,this[_0x502c29(0x3fa)]();}['_initMergeInterceptor'](){const _0x5ae47d=_0x3b3960,_0x58e0ca=this;this[_0x5ae47d(0x369)](this[_0x5ae47d(0x5e5)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x485f8b[_0x5ae47d(0x465)]({'isMatch'(_0x29bfb){const _0x195fd0=_0x5ae47d;var _0x2d299d;if(_0x29bfb[_0x195fd0(0x5a5)]===_0x195fd0(0x344)&&((_0x2d299d=_0x29bfb[_0x195fd0(0x480)])!=null&&_0x2d299d[_0x195fd0(0x527)])){const {objectID:_0x24abc7,objectType:_0x5a7fec}=_0x29bfb['requestParams'][_0x195fd0(0x527)]||{};if(!_0x24abc7||_0x5a7fec===void 0x0)return!0x1;const _0x3f60cf=_0x58e0ca[_0x195fd0(0x317)]()+'/'+_0x5a7fec+_0x195fd0(0x434)+_0x24abc7+_0x195fd0(0x349);if(_0x29bfb[_0x195fd0(0x33f)]===_0x3f60cf)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x55d12c){const _0x34a85b=_0x5ae47d;var _0xd1ec3f;return(_0xd1ec3f=_0x55d12c[_0x34a85b(0x480)])==null?void 0x0:_0xd1ec3f[_0x34a85b(0x527)];},'mergeParamsToRequest'(_0x70bc5a,_0x2ff0b3){const _0x2ec71b=_0x5ae47d,_0x465ffa=_0x58e0ca['_getAPIPrefixPath']()+_0x2ec71b(0x3ba),_0x3299d0=_0x70bc5a['reduce']((_0x544d4c,_0x4b5f8d)=>{const _0x41ecc2=_0x2ec71b,{unitID:_0x4cccc9,objectID:_0x5c745a,objectType:_0x534eb1,actions:_0x5d9355}=_0x4b5f8d;return _0x544d4c[_0x4cccc9]||(_0x544d4c[_0x4cccc9]={}),_0x544d4c[_0x4cccc9][_0x5c745a]||(_0x544d4c[_0x4cccc9][_0x5c745a]={'objectID':_0x5c745a,'objectType':_0x534eb1,'actions':[]}),_0x544d4c[_0x4cccc9][_0x5c745a][_0x41ecc2(0x59b)][_0x41ecc2(0x279)](..._0x5d9355),_0x544d4c;},{}),_0x3d7d23=[];for(const _0x4bc6bd in _0x3299d0)for(const _0x29178b in _0x3299d0[_0x4bc6bd]){const {actions:_0x123ca0,objectType:_0x150292}=_0x3299d0[_0x4bc6bd][_0x29178b],_0x15434b=[...new Set(_0x123ca0)];_0x3d7d23[_0x2ec71b(0x279)]({'unitID':_0x4bc6bd,'objectID':_0x29178b,'objectType':_0x150292,'actions':_0x15434b});}return new _0x485f8b[(_0x2ec71b(0x3a9))](_0x2ec71b(0x344),_0x465ffa,{'headers':_0x2ff0b3[_0x2ec71b(0x4a7)],'withCredentials':_0x2ff0b3[_0x2ec71b(0x39a)],'responseType':_0x2ff0b3[_0x2ec71b(0x550)],'body':{'requests':_0x3d7d23}});}},{'distributeResult'(_0x36a4f2,_0x324426){const _0x2c11f4=_0x5ae47d,{objectActions:_0x285e82}=_0x36a4f2;return _0x324426[_0x2c11f4(0x522)](_0x329d1e=>{const _0x21d4b1=_0x2c11f4,{unitID:_0x4e147e,objectID:_0x8e6679,actions:_0x33091c}=_0x329d1e,_0x353165=_0x285e82[_0x21d4b1(0x335)](_0xa959f5=>_0xa959f5[_0x21d4b1(0x353)]===_0x4e147e&&_0xa959f5[_0x21d4b1(0x4a8)]===_0x8e6679),_0x5b6a8e=_0x33091c[_0x21d4b1(0x522)](_0x51135e=>_0x353165==null?void 0x0:_0x353165[_0x21d4b1(0x59b)][_0x21d4b1(0x335)](_0x13c9b6=>_0x13c9b6[_0x21d4b1(0x454)]===_0x51135e))[_0x21d4b1(0x493)](_0x3763bc=>!!_0x3763bc);return{'config':_0x329d1e,'result':{'actions':_0x5b6a8e,'error':_0x36a4f2[_0x21d4b1(0x50b)]}};});}})}));}[_0x3b3960(0x317)](){const _0x229a89=_0x3b3960;var _0x24cd2c;return(_0x24cd2c=this[_0x229a89(0x46c)][_0x229a89(0x584)](_0xe6c904))!=null?_0x24cd2c:_0x3dff80;}async[_0x3b3960(0x500)](_0x4acebc){const _0x19f71a=_0x3b3960,_0x3c2029=this[_0x19f71a(0x317)]()+'/'+_0x4acebc['objectType']+_0x19f71a(0x5a9);return(await this['_HTTPService'][_0x19f71a(0x228)](_0x3c2029,{'body':_0x4acebc}))[_0x19f71a(0x527)]['objectID']||'';}async[_0x3b3960(0x597)](_0x45aa40){const _0x24c778=_0x3b3960,_0x4b7a1c=this[_0x24c778(0x317)]()+_0x24c778(0x288);return(await this[_0x24c778(0x5e5)][_0x24c778(0x228)](_0x4b7a1c,{'body':_0x45aa40}))[_0x24c778(0x527)][_0x24c778(0x345)];}async[_0x3b3960(0x27c)](_0xd15edb){const _0x285914=_0x3b3960,_0x2c5b8c=this[_0x285914(0x317)]()+'/'+_0xd15edb[_0x285914(0x57f)]+'/object/'+_0xd15edb[_0x285914(0x4a8)];await this['_HTTPService'][_0x285914(0x339)](_0x2c5b8c,{'body':_0xd15edb});}async[_0x3b3960(0x39c)](_0x58cbfd){const _0x147a20=_0x3b3960,_0x8b69c6=this[_0x147a20(0x317)]()+'/'+_0x58cbfd[_0x147a20(0x57f)]+_0x147a20(0x434)+_0x58cbfd[_0x147a20(0x4a8)]+'/allowed';return(await this[_0x147a20(0x5e5)]['post'](_0x8b69c6,{'body':_0x58cbfd}))[_0x147a20(0x527)]['actions'];}async[_0x3b3960(0x43f)](_0x4b2e19){const _0xe1f6ea=_0x3b3960,_0x50846d=this[_0xe1f6ea(0x317)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0xe1f6ea(0x228)](_0x50846d,{'body':{'requests':_0x4b2e19}}))[_0xe1f6ea(0x527)][_0xe1f6ea(0x498)];}async[_0x3b3960(0x24f)](_0x301ae7){const _0xfea4fa=_0x3b3960,_0x359c35=this[_0xfea4fa(0x317)]()+'/'+_0x301ae7[_0xfea4fa(0x57f)]+_0xfea4fa(0x535),_0x58ec19=await this[_0xfea4fa(0x5e5)]['post'](_0x359c35,{'body':_0x301ae7});return{'roles':_0x58ec19[_0xfea4fa(0x527)][_0xfea4fa(0x4df)],'actions':_0x58ec19[_0xfea4fa(0x527)][_0xfea4fa(0x59b)]};}async[_0x3b3960(0x256)](_0x4e78c9){const _0x3abe92=_0x3b3960,_0x4bb4ea=this[_0x3abe92(0x317)]()+_0x3abe92(0x40b);await this['_HTTPService'][_0x3abe92(0x431)](_0x4bb4ea,{'params':{'collaboratorID':_0x4e78c9[_0x3abe92(0x2f6)],'objectID':_0x4e78c9[_0x3abe92(0x4a8)],'unitID':_0x4e78c9[_0x3abe92(0x353)]}});}async['updateCollaborator'](_0x5651b1){const _0x28b5b1=_0x3b3960,_0x111c37=this['_getAPIPrefixPath']()+_0x28b5b1(0x40b);await this['_HTTPService']['patch'](_0x111c37,{'body':_0x5651b1});}async[_0x3b3960(0x2ed)](_0x7ced5e){const _0x436121=_0x3b3960,_0x3830f3=this[_0x436121(0x317)]()+'/collaborator';await this[_0x436121(0x5e5)]['post'](_0x3830f3,{'body':_0x7ced5e});}async[_0x3b3960(0x513)](_0x41b8ed){const _0x1629c3=_0x3b3960,_0x2c8114=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x1629c3(0x3b9)](_0x2c8114,{'params':{'objectID':_0x41b8ed['objectID'],'unitID':_0x41b8ed[_0x1629c3(0x353)]}}))[_0x1629c3(0x527)][_0x1629c3(0x41f)];}async[_0x3b3960(0x49d)](_0xa89641){const _0x395883=_0x3b3960,_0x82c15f=this[_0x395883(0x317)]()+_0x395883(0x40b);await this[_0x395883(0x5e5)][_0x395883(0x339)](_0x82c15f,{'body':_0xa89641});}},_0x2c3354[_0x3b3960(0x5fa)]=_0x537450([_0x350d64(0x0,_0x2015b3['Inject'](_0x485f8b[_0x3b3960(0x536)])),_0x350d64(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x582)]))],_0x2c3354[_0x3b3960(0x5fa)]);var _0x48f36c=Object[_0x3b3960(0x57c)],_0x2a1827=Object[_0x3b3960(0x2c2)],_0x253b27=(_0x4436cf,_0x1a9590,_0x1687c6,_0x5d8b79)=>{const _0x741cd6=_0x3b3960;for(var _0x3fccae=_0x5d8b79>0x1?void 0x0:_0x5d8b79?_0x2a1827(_0x1a9590,_0x1687c6):_0x1a9590,_0x21b6a3=_0x4436cf[_0x741cd6(0x306)]-0x1,_0x505d62;_0x21b6a3>=0x0;_0x21b6a3--)(_0x505d62=_0x4436cf[_0x21b6a3])&&(_0x3fccae=(_0x5d8b79?_0x505d62(_0x1a9590,_0x1687c6,_0x3fccae):_0x505d62(_0x3fccae))||_0x3fccae);return _0x5d8b79&&_0x3fccae&&_0x48f36c(_0x1a9590,_0x1687c6,_0x3fccae),_0x3fccae;},_0x2a4c33=(_0x492ffe,_0x2914c7)=>(_0x927fd,_0x5526ed)=>_0x2914c7(_0x927fd,_0x5526ed,_0x492ffe);const _0xed7207=[_0x3b3960(0x32b),_0x3b3960(0x276),_0x3b3960(0x459),_0x3b3960(0x59a),_0x3b3960(0x36f)],_0x4fef26=0x5*0x400*0x400,_0x471ff0='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x53c78f='/universer-api/stream/file/upload',_0xe6854b='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x5ccb89=_0x3b3960(0x1fb);_0x2c3354[_0x3b3960(0x36d)]=class{constructor(_0x572903,_0x4e256,_0x191c76){const _0x2c4dcb=_0x3b3960;_0x385cfe(this,'_waitCount',0x0),_0x385cfe(this,_0x2c4dcb(0x242),new _0x345abe[(_0x2c4dcb(0x421))]()),_0x385cfe(this,'change$',this[_0x2c4dcb(0x242)]),_0x385cfe(this,_0x2c4dcb(0x3d5),new Map()),(this['_httpService']=_0x572903,this[_0x2c4dcb(0x46c)]=_0x4e256,this[_0x2c4dcb(0x5b7)]=_0x191c76);}['setWaitCount'](_0x5a5474){const _0x6a9da1=_0x3b3960;this[_0x6a9da1(0x264)]=_0x5a5474,this['_change$'][_0x6a9da1(0x2b0)](_0x5a5474);}[_0x3b3960(0x463)](_0x55fa24,_0x37a244){const _0x5bb480=_0x3b3960;if(_0x37a244===_0x17c816['ImageSourceType'][_0x5bb480(0x4e3)]){const _0x2b681a=new Image();return _0x2b681a[_0x5bb480(0x48b)]=_0x55fa24,_0x2b681a;}return this[_0x5bb480(0x3d5)]['get'](_0x55fa24);}[_0x3b3960(0x5ab)](_0x274b47,_0x25ffd7,_0x2bbec4){const _0x54854c=_0x3b3960;_0x25ffd7===_0x17c816['ImageSourceType'][_0x54854c(0x4e3)]||_0x2bbec4==null||this[_0x54854c(0x3d5)]['set'](_0x274b47,_0x2bbec4);}async['getImage'](_0x32791b){const _0x1f0bba=_0x3b3960;try{const _0x4f3ce7=this['_replaceFileID'](this[_0x1f0bba(0x229)](),''+_0x32791b),_0x73cc94=(await this[_0x1f0bba(0x2b4)]['get'](_0x4f3ce7))['body'];return _0x73cc94['error']&&_0x73cc94[_0x1f0bba(0x50b)][_0x1f0bba(0x534)]===_0x48be91['OK']?Promise[_0x1f0bba(0x478)](_0x73cc94[_0x1f0bba(0x33f)]):Promise[_0x1f0bba(0x314)](_0x73cc94[_0x1f0bba(0x50b)]);}catch(_0x367c96){return Promise[_0x1f0bba(0x314)](_0x367c96);}}async[_0x3b3960(0x5e8)](_0x2405ab){const _0xd568c5=_0x3b3960;let _0x50425f='';if(!_0xed7207[_0xd568c5(0x4e5)](_0x2405ab['type']))return this['_decreaseWaiting'](),Promise[_0xd568c5(0x314)](new Error(_0x17c816['ImageUploadStatusType'][_0xd568c5(0x351)]));if(_0x2405ab[_0xd568c5(0x52c)]>_0x4fef26)return this[_0xd568c5(0x24d)](),Promise[_0xd568c5(0x314)](new Error(_0x17c816[_0xd568c5(0x273)][_0xd568c5(0x27a)]));try{const _0x1ddc66=new FormData();_0x1ddc66['append'](_0xd568c5(0x277),_0x2405ab);const _0x1817f9=this[_0xd568c5(0x5b7)][_0xd568c5(0x209)](),_0x5c3cf8=_0x1817f9==null?void 0x0:_0x1817f9[_0xd568c5(0x304)]();if(!_0x5c3cf8)throw new Error(_0xd568c5(0x51d));const _0xbe7567=this[_0xd568c5(0x5a0)]()+_0xd568c5(0x43a)+_0x2405ab['size'][_0xd568c5(0x396)]()+_0xd568c5(0x5d8)+_0x5d29eb['UnitEmbedded']+_0xd568c5(0x4c3)+encodeURIComponent(_0x5c3cf8),_0x46cde4=await(await fetch(_0xbe7567,{'method':_0xd568c5(0x344),'body':_0x1ddc66}))[_0xd568c5(0x2a5)]();if(typeof _0x46cde4[_0xd568c5(0x395)]!=_0xd568c5(0x31b))return this[_0xd568c5(0x24d)](),Promise[_0xd568c5(0x314)](new Error(_0x17c816['ImageUploadStatusType'][_0xd568c5(0x356)]));_0x50425f=_0x46cde4[_0xd568c5(0x395)];}catch{return this[_0xd568c5(0x24d)](),Promise['reject'](new Error(_0x17c816[_0xd568c5(0x273)]['ERROR_IMAGE']));}return new Promise((_0x5e05ab,_0x329a0d)=>{const _0x407fe5=_0xd568c5,_0x29fd8b=new FileReader();_0x29fd8b[_0x407fe5(0x340)](_0x2405ab),_0x29fd8b['onload']=_0x98e739=>{const _0xbb308f=_0x407fe5;var _0x485515;const _0x178f1f=(_0x485515=_0x98e739[_0xbb308f(0x526)])==null?void 0x0:_0x485515[_0xbb308f(0x473)];if(_0x178f1f==null){this[_0xbb308f(0x24d)](),_0x329a0d(new Error(_0x17c816[_0xbb308f(0x273)][_0xbb308f(0x356)]));return;}const _0x11d712=_0x2015b3['Tools'][_0xbb308f(0x447)](0x6);_0x5e05ab({'imageId':_0x11d712,'imageSourceType':_0x17c816[_0xbb308f(0x5a8)][_0xbb308f(0x5b0)],'source':_0x50425f,'base64Cache':_0x178f1f,'status':_0x17c816[_0xbb308f(0x273)][_0xbb308f(0x394)]}),this[_0xbb308f(0x24d)]();};});}['_getUploadFileURL'](){const _0x1bdde8=_0x3b3960;var _0x1b0a77;return(_0x1b0a77=this[_0x1bdde8(0x46c)][_0x1bdde8(0x584)](_0x471ff0))!=null?_0x1b0a77:_0x53c78f;}[_0x3b3960(0x229)](){const _0x5796b5=_0x3b3960;var _0x191f2d;return(_0x191f2d=this[_0x5796b5(0x46c)]['getConfig'](_0xe6854b))!=null?_0x191f2d:_0x5ccb89;}[_0x3b3960(0x3f8)](_0x14c238,_0x4eb377){const _0x3aae55=_0x3b3960;return _0x14c238[_0x3aae55(0x44b)](_0x3aae55(0x525),_0x4eb377);}[_0x3b3960(0x24d)](){const _0x373e33=_0x3b3960;this[_0x373e33(0x264)]-=0x1,this[_0x373e33(0x242)]['next'](this['_waitCount']);}},_0x2c3354[_0x3b3960(0x36d)]=_0x253b27([_0x2a4c33(0x0,_0x2015b3[_0x3b3960(0x547)](_0x485f8b['HTTPService'])),_0x2a4c33(0x1,_0x2015b3[_0x3b3960(0x582)]),_0x2a4c33(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x37c)]))],_0x2c3354[_0x3b3960(0x36d)]);var _0x3eb043=Object[_0x3b3960(0x57c)],_0x23e8ad=Object[_0x3b3960(0x2c2)],_0x5af5c8=(_0x222a5a,_0x23a248,_0x17f86b,_0x43aa09)=>{const _0x2fb0b6=_0x3b3960;for(var _0x34c7e4=_0x43aa09>0x1?void 0x0:_0x43aa09?_0x23e8ad(_0x23a248,_0x17f86b):_0x23a248,_0x206298=_0x222a5a[_0x2fb0b6(0x306)]-0x1,_0xaa7d9f;_0x206298>=0x0;_0x206298--)(_0xaa7d9f=_0x222a5a[_0x206298])&&(_0x34c7e4=(_0x43aa09?_0xaa7d9f(_0x23a248,_0x17f86b,_0x34c7e4):_0xaa7d9f(_0x34c7e4))||_0x34c7e4);return _0x43aa09&&_0x34c7e4&&_0x3eb043(_0x23a248,_0x17f86b,_0x34c7e4),_0x34c7e4;},_0x2122a9=(_0x3b4a11,_0x130585)=>(_0x270862,_0x35d715)=>_0x130585(_0x270862,_0x35d715,_0x3b4a11);let _0x592c62=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x575086,_0x45677b,_0x5995aa,_0xb3de95,_0x2b7796){const _0x54529f=_0x3b3960;super(),this[_0x54529f(0x3f4)]=_0x575086,this[_0x54529f(0x5b7)]=_0x45677b,this[_0x54529f(0x518)]=_0x5995aa,this[_0x54529f(0x4cf)]=_0xb3de95,this[_0x54529f(0x23b)]=_0x2b7796,this[_0x54529f(0x475)](),this[_0x54529f(0x334)]();}[_0x3b3960(0x334)](){const _0x193f9a=_0x3b3960,_0x5e7b8a=async _0x1362e8=>{const _0x55eec9=_0x41fb;(await this[_0x55eec9(0x4cf)]['requireSession'](_0x1362e8))[_0x55eec9(0x4ca)][_0x55eec9(0x2d1)](_0x2cc613[_0x55eec9(0x493)](_0x5e0c65=>_0x5e0c65[_0x55eec9(0x4aa)]===_0x106736[_0x55eec9(0x43e)][_0x55eec9(0x51f)]),_0x2cc613['takeUntil'](this['dispose$']))[_0x55eec9(0x35b)](_0x588bb9=>{const _0x56bdfd=_0x55eec9,_0x50ffda=_0x588bb9,{reason:_0x5b2344}=_0x50ffda[_0x56bdfd(0x3e0)];this[_0x56bdfd(0x3f4)][_0x56bdfd(0x3b9)](_0x44b766['IMessageService'])['show']({'type':_0x54ac63['MessageType'][_0x56bdfd(0x287)],'content':this['_localeService']['t'](_0x56bdfd(0x4cd))+'('+_0x5b2344+')'}),this[_0x56bdfd(0x518)][_0x56bdfd(0x49e)](new _0x3d1b6a['WorkbookEditablePermission'](_0x1362e8)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x1362e8);});};_0x345abe['merge'](this['_univerInstanceService'][_0x193f9a(0x388)](_0x2015b3[_0x193f9a(0x3a8)][_0x193f9a(0x321)]),this[_0x193f9a(0x5b7)][_0x193f9a(0x388)](_0x2015b3[_0x193f9a(0x3a8)][_0x193f9a(0x361)]))[_0x193f9a(0x2d1)](_0x2cc613[_0x193f9a(0x522)](_0x5f2672=>_0x5f2672['getUnitId']()),_0x2cc613[_0x193f9a(0x493)](_0x2017ea=>!_0x2015b3[_0x193f9a(0x511)](_0x2017ea)),_0x2cc613[_0x193f9a(0x244)](this[_0x193f9a(0x272)]))['subscribe'](_0x13c446=>{_0x5e7b8a(_0x13c446);});}[_0x3b3960(0x475)](){const _0x51f85d=_0x3b3960,_0x3ad3aa=async _0x5d27e1=>{const _0x80f832=_0x41fb;(await this[_0x80f832(0x4cf)][_0x80f832(0x5db)](_0x5d27e1))[_0x80f832(0x4ca)][_0x80f832(0x2d1)](_0x2cc613[_0x80f832(0x493)](_0x336cb5=>_0x336cb5[_0x80f832(0x4aa)]===_0x106736[_0x80f832(0x43e)][_0x80f832(0x1fd)]),_0x2cc613[_0x80f832(0x244)](this[_0x80f832(0x272)]))['subscribe'](_0x21f60e=>{const _0x403ce1=_0x80f832,_0x1da38d=_0x21f60e,{objectId:_0x2e6ad7}=_0x1da38d[_0x403ce1(0x3e0)],_0x185542=this['_injector'][_0x403ce1(0x3b9)](_0x467ed8[_0x403ce1(0x346)]);_0x2e6ad7===_0x5d27e1?_0x185542[_0x403ce1(0x516)](_0x5d27e1):_0x185542[_0x403ce1(0x41e)](_0x5d27e1,_0x2e6ad7);});};_0x345abe[_0x51f85d(0x4c8)](this[_0x51f85d(0x5b7)][_0x51f85d(0x388)](_0x2015b3['UniverInstanceType'][_0x51f85d(0x321)]),this[_0x51f85d(0x5b7)][_0x51f85d(0x388)](_0x2015b3['UniverInstanceType']['UNIVER_DOC']))[_0x51f85d(0x2d1)](_0x2cc613[_0x51f85d(0x522)](_0x302e99=>_0x302e99[_0x51f85d(0x304)]()),_0x2cc613[_0x51f85d(0x493)](_0x48c80f=>!_0x2015b3[_0x51f85d(0x511)](_0x48c80f)),_0x2cc613['takeUntil'](this[_0x51f85d(0x272)]))[_0x51f85d(0x35b)](_0x4ce521=>{_0x3ad3aa(_0x4ce521);});}};_0x592c62=_0x5af5c8([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)]['Starting'],_0x592c62),_0x2122a9(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x2122a9(0x1,_0x2015b3[_0x3b3960(0x37c)]),_0x2122a9(0x2,_0x2015b3[_0x3b3960(0x5d7)]),_0x2122a9(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x4b4)])),_0x2122a9(0x4,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x20a)]))],_0x592c62);var _0x2305c0=Object[_0x3b3960(0x57c)],_0x134975=Object[_0x3b3960(0x2c2)],_0x4958cc=(_0x443314,_0xe3f5be,_0x1bdcbc)=>_0xe3f5be in _0x443314?_0x2305c0(_0x443314,_0xe3f5be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bdcbc}):_0x443314[_0xe3f5be]=_0x1bdcbc,_0xec63d=(_0x2e6bc1,_0x4d1167,_0xc0456d,_0x235160)=>{const _0x22b7b3=_0x3b3960;for(var _0x349a6f=_0x235160>0x1?void 0x0:_0x235160?_0x134975(_0x4d1167,_0xc0456d):_0x4d1167,_0x16562c=_0x2e6bc1[_0x22b7b3(0x306)]-0x1,_0x9572aa;_0x16562c>=0x0;_0x16562c--)(_0x9572aa=_0x2e6bc1[_0x16562c])&&(_0x349a6f=(_0x235160?_0x9572aa(_0x4d1167,_0xc0456d,_0x349a6f):_0x9572aa(_0x349a6f))||_0x349a6f);return _0x235160&&_0x349a6f&&_0x2305c0(_0x4d1167,_0xc0456d,_0x349a6f),_0x349a6f;},_0x4da9df=(_0x18cfd1,_0x570522)=>(_0x1f2207,_0x963a4a)=>_0x570522(_0x1f2207,_0x963a4a,_0x18cfd1),_0x3c3399=(_0x550116,_0x257b9a,_0x5a6b00)=>_0x4958cc(_0x550116,_0x257b9a+'',_0x5a6b00);const _0x16de06=_0x3b3960(0x360);_0x2c3354[_0x3b3960(0x2e3)]=class extends _0x2015b3[_0x3b3960(0x291)]{constructor(_0x1b4484,_0x3786a1,_0x429ae8,_0x207adb){const _0x40c0e6=_0x3b3960;super(),this['_config']=_0x1b4484,this[_0x40c0e6(0x501)]=_0x3786a1,this[_0x40c0e6(0x449)]=_0x429ae8,this[_0x40c0e6(0x3f4)]=_0x207adb;}[_0x3b3960(0x486)](){const _0x29577a=_0x3b3960;this[_0x29577a(0x2b2)]();}['onRendered'](){const _0xb6da62=_0x3b3960;this[_0xb6da62(0x2bf)]();}[_0x3b3960(0x2b2)](){const _0x227833=_0x3b3960;var _0x35970e,_0x1e28f7,_0x47eac0,_0x2b68f0;this['_injector'][_0x227833(0x337)](_0x2015b3[_0x227833(0x445)])&&this[_0x227833(0x501)]['error'](_0x227833(0x2d9),_0x227833(0x381));let _0x56c905=[[_0x2015b3[_0x227833(0x445)],{'useClass':_0x448505}],[_0x2c3354['CollaborationSessionService']],[_0x258d12],[_0x485f8b[_0x227833(0x536)]],[_0xaa3b19,{'useClass':_0x3e5f32}],[_0x25752c],[_0x2c3354[_0x227833(0x3dc)]],[_0x485f8b[_0x227833(0x4b6)]],[_0x319b0c],[_0x27cbd7],[_0x3d8f9f],[_0x474519],[_0x371f23],[_0x3f4b4d],[_0x592c62],[_0x1bd205,{'useClass':(_0x1e28f7=(_0x35970e=this[_0x227833(0x2f2)])==null?void 0x0:_0x35970e[_0x227833(0x401)])!=null?_0x1e28f7:_0x2c3354['CollaborationSocketService']}],[_0x485f8b['IHTTPImplementation'],{'useClass':_0x485f8b[_0x227833(0x2f8)]}],[_0x106736[_0x227833(0x2f3)],{'useClass':_0x2c3354[_0x227833(0x557)]}],[_0x2015b3[_0x227833(0x33d)],{'useClass':_0x2c3354['AuthzIoHttpService']}],[_0x17c816[_0x227833(0x318)],{'useClass':_0x2c3354[_0x227833(0x36d)]}],[_0x2c3354[_0x227833(0x3e2)]],[_0x2c3354[_0x227833(0x4bb)]],[_0x2c3354[_0x227833(0x217)]],[_0x25c571],[_0x2a0bf9]];(_0x47eac0=this[_0x227833(0x2f2)])!=null&&_0x47eac0['enableSingleActiveInstanceLock']&&_0x56c905[_0x227833(0x279)]([_0x55925e,{'useClass':_0x200347}]),_0x56c905=_0x2015b3['mergeOverrideWithDependencies'](_0x56c905,(_0x2b68f0=this[_0x227833(0x2f2)])==null?void 0x0:_0x2b68f0['override']),_0x56c905[_0x227833(0x4d1)](_0xeb21d7=>this[_0x227833(0x3f4)][_0x227833(0x28c)](_0xeb21d7)),this[_0x227833(0x3c9)]();}[_0x3b3960(0x2bf)](){const _0x567c43=_0x3b3960;this['disposeWithMe'](this[_0x567c43(0x449)][_0x567c43(0x5de)](_0x2015b3[_0x567c43(0x3a8)][_0x567c43(0x361)],[_0x304928])),this[_0x567c43(0x369)](this[_0x567c43(0x449)]['registerRenderModule'](_0x2015b3['UniverInstanceType'][_0x567c43(0x321)],[_0x1928ed]));}['_initModules'](){const _0x2165bc=_0x3b3960;var _0x75604e,_0x384ffd;this[_0x2165bc(0x3f4)]['get'](_0x485f8b[_0x2165bc(0x536)])[_0x2165bc(0x468)]({'priority':0x14,'interceptor':_0x485f8b[_0x2165bc(0x5f1)]({'maxParallel':0x6})}),(_0x75604e=this[_0x2165bc(0x2f2)])!=null&&_0x75604e[_0x2165bc(0x5ec)]||this[_0x2165bc(0x3f4)][_0x2165bc(0x3b9)](_0x2c3354[_0x2165bc(0x3dc)])[_0x2165bc(0x5ed)](),(_0x384ffd=this[_0x2165bc(0x2f2)])!=null&&_0x384ffd[_0x2165bc(0x4e1)]&&this[_0x2165bc(0x3f4)][_0x2165bc(0x3b9)](_0x371f23);}},_0x3c3399(_0x2c3354['UniverCollaborationClientPlugin'],_0x3b3960(0x3fe),_0x16de06),_0x2c3354[_0x3b3960(0x2e3)]=_0xec63d([_0x2015b3[_0x3b3960(0x423)](_0x106736['UniverCollaborationPlugin']),_0x4da9df(0x1,_0x2015b3['ILogService']),_0x4da9df(0x2,_0x572a63[_0x3b3960(0x5ee)]),_0x4da9df(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector']))],_0x2c3354[_0x3b3960(0x2e3)]),_0x2c3354[_0x3b3960(0x29d)]=_0xe6c904,_0x2c3354['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x3c7827,_0x2c3354[_0x3b3960(0x4ab)]=_0x332c44,_0x2c3354['CollaborationStatus']=_0xe45813,_0x2c3354[_0x3b3960(0x3b6)]=_0x1c24e3,_0x2c3354[_0x3b3960(0x413)]=_0x3f4b4d,_0x2c3354[_0x3b3960(0x5a7)]=_0x879d7e,_0x2c3354[_0x3b3960(0x568)]=_0x816b9c,_0x2c3354[_0x3b3960(0x1fe)]=_0x1bd205,_0x2c3354[_0x3b3960(0x424)]=_0xaa3b19,_0x2c3354['LOCAL_CACHE_INTERVAL_KEY']=_0x3f1ca0,_0x2c3354[_0x3b3960(0x26b)]=_0x4f5e36,_0x2c3354[_0x3b3960(0x4c9)]=_0x5cb8bb,_0x2c3354[_0x3b3960(0x467)]=_0x2c5950,_0x2c3354[_0x3b3960(0x3ca)]=_0x5648aa,_0x2c3354[_0x3b3960(0x45e)]=_0x510b8a,_0x2c3354[_0x3b3960(0x508)]=_0x87739a,_0x2c3354['WebURLService']=_0x3e5f32,_0x2c3354[_0x3b3960(0x39e)]=_0x5040c3,_0x2c3354[_0x3b3960(0x574)]=_0x5a449f,Object[_0x3b3960(0x57c)](_0x2c3354,Symbol[_0x3b3960(0x512)],{'value':'Module'});}));
1
+ function _0x3242(_0x3d34f1,_0x177d6e){const _0x41204f=_0x4120();return _0x3242=function(_0x324287,_0x5eac9d){_0x324287=_0x324287-0x115;let _0x25395e=_0x41204f[_0x324287];return _0x25395e;},_0x3242(_0x3d34f1,_0x177d6e);}function _0x4120(){const _0xe92048=['rev','HELLO','_onMessage','debug','m2Prime','substring','newValue','transformIMECache','React','HEARTBEAT_TIMEOUT_KEY','FileId','permission.content','onSendChangeset','_remoteChangesetQueue','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_shouldReportTelemetry','_removeCollabCursors','serializeCombRequest','SUCCUSS','_tryEnsureSocket','IAuthzIoService','_queuedRemoteChangesets','_timeoutTimer','_online','blue400','_state','_onConnectionOpen','_removeRoom','reconnect','Optional','_startDocCollabCursor','/role','actions','SEND_CHANGESET_TIMEOUT','[PendingState]:\x20received\x20rejection.','deserializeToCombResponse','shareReplay','onSyncEditingCollabCursor','urlChange$','UniverInstanceType','getActiveRange','_status$','popstate','_initStatusListener','UPDATE_CURSOR','assignAColorForMemberID','_undoStacks','SUBMIT_CHANGESET','selections','_collabCursorController','_handleJoinEvent','c1Prime','duration','UniverCollaborationPlugin','liveShareNewHost','collaboration-client.offline-data-not-saved','off-line-single','parseChangesetToProtocol','collaboration_new_changeset','univerjs-icon\x20univerjs-icon-','collabStatus.notCollab','_unitOnClients','transformStack\x20failed!','_collabCursorState$','toRgbString','IRenderManagerService','_handleEvent','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','editing\x20status\x20changed\x20to','saveImage','send','getUniverSheetInstance','from','_saveTaskMap','_send','Error','_incrementRevisionNumber','sessionStatus','collaborators','sheetId','SetTextSelectionsOperation','_getSendChangesetTimeout','setCurrentUser','isPermissionRej','_renderManagerService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_cachedData','_replaceFileID','startTime','_scheduleSaving','updateCollaborator','UPDATE_PERMISSION_OBJ','UniverCore','_onRemoteACK','push','removeMember','disableLocalCache','ISnapshotServerService','UnitEmbedded','getOwnPropertyDescriptor','hovered','LIVESHARE_REQUEST_HOST','addEventListener','CollaborationSocketService','_labelPosition','LocalUndoRedoService','apply','_socket$','_localCacheService','b64DecodeUnicode','COLORS','submit\x20changeset\x20error!','_initCloseConn','RETRY_CONNECTING_INTERVAL_KEY','measureText','setInterval','useDependency','3048471ZiCZyY','BASE64','add','_type','find','encode','univer-offline','PERMISSION_REJ','InsertRangeMoveDownCommandId','univer-online-status','_loadDoc','awaiting','replace','FAIL','[CollaborationState]:\x20apply\x20error!','_transformUndoRedoStack','_docTransformSelectionsService','cursorInfo$','_updateStatus','parseProtocolChangeset','_sendingTimer','getUnitType','_transformRemoteChangesetByIMECache','session.connection-failed','string','univer-online-status-icon','_createHandler','_configService','onlineStatusTitle','takeUntil','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_collaborationSessionService','_startSheetCollabCursor','unload','CONNECTOR_DATA_TOO_LARGE','commentUpdate$','_stopTelemetryCollaborationNewChangeset','connectInjector','file','MessageType','_id','DocIMEInputManagerService','_refreshCollabCursors','result','LocaleService','getRelativeToViewportCoord','history','parse','0\x200\x2017\x2016','onPointerMove$','_executeRemoteChangeset','_disableEditing','objectActions','onlyLocal','UNKNOWN_CODE','lodash/debounce','fill','@univerjs/drawing','MoveRangeCommandId','@univerjs/docs-ui','_registerDependencies','connection\x20error','generateRandomId','_onConflict','_startTelemetryCollaborationNewChangeset','call','NodePositionConvertToRectRange','_colorIndex','/allowed','changesets','sequenceExecute','addObjects','RefRangeService','onPointerLeave$','RichTextEditingMutation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','createCollaborator','useCallback','rxjs','_updateSubUnitFromURLParams','IRemoteInstanceService','failed\x20to\x20apply\x20missed\x20changesets!','DEFAULT_FILE_NAME','ImageIoService','textEncoder','_getMergeRange','JOIN','_snapshotService','_socket','_urlService','_unlockTransition','image/png','XHRHTTPImplementation','_startCollaboration','getActiveSheet','/universer-api/authz','isValidRectRange','state','_transformUndoredo','replaceState','get','_listenToOfflineEvent','[CollaborationSession]','transformByState','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','red300','APPLY_REVISION_CONFILICT','registerRenderModule','_telemetryService','_lockTransition','_transformPreviousActiveRange','_scheduleTimestamp','univer-pro.collaboration-client-socket-service','DocStateChangeManagerService','LIVESHARE_OPERATION','_handler','DataLoaderController','_onFetchMissResult','NO_OTHER_CLIENTS_EDITING','requestParams','_initResize','target','reject','liveShareOperation','debounce','onStarting','type','assign','color','AuthzIoHttpService','range','_getAPIPrefixPath','_hovered','session.collaboration-timeout','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SLIDE','objectID','subscribeEvent','state$','[CollaborationUndoRedoService]','trim','/resources','onRemoteRej','subscribe','clear','on-line-single_clip0_910_349','_scheduleCollaborationTimeoutTimer','@univerjs/sheets-ui','_awaitingChangeset','unknown','COMPRESS_MUTATION_APPLY','Shape','getImageSourceCache','reverse','onTransformRemoteChangesetByIMECache','editingUnit','text','_collabSessionService','_sessionStatus$','COMPLETION_FINISHED','Starting','INGEST','disposeWithMe','SheetSkeletonManagerService','_cursors','LEAVE','isArray','_entityInit$','onMouseMove','slice','awaitingChangeset','headers','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','458642YNKPUt','onStateChange','_handleLeaveEvent','row','UniverCollaborationClientPlugin','YUUMI_RATE_OVER_LIMIT','not_collab','includes','YUUMI_UNABLE_LOAD_URL','current','VIEW_MAIN','fetchMissingChangesets','then','body','doc.mutation.rich-text-editing','getCurrentUser','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collabStatus.offline','_syncEditingCollabCursorService','_sessions','getAncestorScale','symbol','/object/','pushState','LICENSE_DISTRO_REJECTED','collaboratorID','TOO_MANY_REQUESTS','RegularPolygon','registerHTTPInterceptor','_substituteUndoStack','USERS_ENTER','font','onMissedChangesetFetched','fromCollab','[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.','onRemoteAck','create','filter','clipPath','override','CollaborationEvent','exhaustSavingTask','params','_drawRectRange','displayName','_onRemoteRejected','newCsEvent','Rectangle','_onJoinRoomEvent','IHTTPImplementation','name','pipe','UNAUTHENTICATED','_substituteRedoStack','_localStorageService','3EmZuKt','_colorAssignService','delete','code','ERROR_IMAGE_TYPE','height','OFFLINE','removeEventListener','transformSelections','transformUndoRedo','1867160iIrJmF','MergeInterceptorFactory','members','handleMoveRange','PERMISSION_DENIED','Steady','getMemberID','_createInitialState','sessionStatus$','_docTransformIMECacheService','error','transformChangesets','beginPath','getOwnPropertySymbols','contains','clsx','revision','resize','SNAPSHOT_INVALID_SNAPSHOT','allowed','eventID','?url=','#fff','drawWith','ColorKit','/new_changes','currentTheme$','_onOffline','sheetID','rxjs/operators','unshift','offline','_scheduleClearOtherTimer','_httpService','_isPermissionRej','[DataLoaderController]','_http','_snapshotServerService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','COLLAB_SUBMIT_CHANGESET_URL','_session','focused$','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','_docSkeletonManagerService','csRejEvent','throttleTime','CHANGESET_REVISION_CONFILICT','useRef','dispose$','_clearOtherTimers','selection','UNIVER_PROJECT','Inject','jiqing500','getCoordByCell','unitID','skeleton','_initModules','_loadSheet','_clearRedo','_onConnectionFailed','collab-text-anchor-','top','univer-online-status-title','merge','_roomMembers$','_messageService','createElement','@univerjs/engine-render','update','_getSignURL','@univerjs/core','listCollaborators','toString','_initUnitPermissionChange','close','@univerjs/ui','_createInitialStateImpl','fillRule','UnitSnapshot','src','_eventUnsubscribe','event$','_handleHover','UniverDocs','_updateState','disposeUnit','_getCtorByUniverType','_getRedoStack','subunit','updateMember','_onLocalMutation','HEARTBEAT_INTERVAL','LICENSE_MAX_UNITS_EXCEEDED','@univerjs/sheets','_scheduleHeartbeat','IUIPartsService','status','_getScale','VIEWPORT_KEY','key','indexOf','_assignedColors','_unitID','_updateLocalCache','CollaborationController','getMember','_updateLocalCursor','deserializeRangeWithSheet','deleteCollaborator','_init','setItem','getCurrentRevForDocument','updatePermissionObjEvent','registerOnClose','/collaborator','executeCommand','location','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','delay','baseRev','_cursorShapes','conflict.title','asObservable','mergeOverrideWithDependencies','_cursorInfo$','socket\x20open.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_toggleOffline','COLLAB_SUBMIT_CHANGESET_URL_KEY','collab-rect-range-','stopTime','JSONX','idSuffix','_updateCollabCursors','collaboration-session-retry','_textBubble','defIds','UNIVER_UNKNOWN','url','_clearUndo','_change$','_lastPointer','fromEvent','updateCursorEvent','isTransformMutationFailure','_onCursorUpdate','getColor','M0\x200H16V16H0z','\x20to\x20','currentSkeleton$','_onRemoteChangeset','enableOfflineEditing','textRanges','infoRsp','AWAITING','getUndoRedoMutationParamsCache','ThemeService','length','SnapshotServerOverHTTPService','_onRecvEvent','Workbook','ThresholdInterceptorFactory','PENDING','_name','map','collaboration.single-unit.warning','_acknowledgedAwaitingChangeset','arc','_disabled','with','width','onCommentUpdate','726174GJaAHd','onTransformChange$','children','set','setAlpha','_roomMembers','svg','_handleHeartbeatEvent','distinctUntilChanged','getCollabEntity','LOGIN_URL_KEY','registerBeforeClose','synced','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_decreaseWaiting','interceptor','getItem','rgba(255,\x20255,\x20255,\x200.01)','_retryCount','mapTo','UniverTelemetry','_getSaveTimeout','memberID','handleInsertCol','black','_collaborationTimeoutTimer','setActiveRange','createSocket','href','now','complete','json','loadOfflineData','addObject','HEADER_MENU','/-/object/-/batch_allowed','_undoRedoService','fetchThroughInterceptors','_getSnapshotAPIPrefix','_singleActiveUnitService','_transformIMECache','take','isTransformMutationsWithChangesetSuccess','on-line-single','error$','put','Rect','JOINING','924759cHubce','[CollaborationEntity]','FromArray','MSG_FOR_ERROR','#FFF','ImageUploadStatusType','max','_memberService','SheetCollaborationEntity','_sendHeartbeat','OnLifecycle','appendMutation','collab-text-range-','IDLE','/universer-api/snapshot/','initWorkbookPermissionChange','_getSheetObject','CollaborationSession','getRenderById','endColumn','_anchor','Plugin','getImage','responseType','HttpImport','bottom','conflict','@univerjs/engine-formula','USERS_LEAVE','enableSingleActiveInstanceLock','_saveCache','APPLY_PERMISSION_DENIED','makeDirty','socket$','_transformSelections','translate(.97)','COMMENT_UPDATE','getUnitOnRev','UniverCollaborationClient','LOCAL_CACHE_INTERVAL_KEY','_imageSourceCache','DisposableCollection','getResourcesRequest','RevisionService','DependentOn','collabStatus.synced','handleDeleteRangeMoveUp','loadDoc','Undefined','_docSyncEditingCollabCursorService','[SyncedState]:\x20received\x20acknowledgement.','handleInsertRow','colorChannel1','backgroundColor','ERROR_EXCEED_SIZE','batchAllowed','SetDocZoomRatioOperation','Tools','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','IBeforeCloseService','setWaitCount','_exhaustRemoteChangesetQueue','clearInterval','save\x20fail\x20reason\x20is\x20','status$','/rev/','[FetchMissState]','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','/block/','registerRefRange','UniverCollaboration','/-/object/list','FETCH_MISSING','getConfig','saveSnapshot','setUndoRedoMutationParamsCache','dispose','_rescheduleHeartbeat','saveSheetBlock','Univer','uni.network.url-service','getSheetBlock','xlink:href','_collaborationController','NodePositionConvertToCursor','runRefRangeMutations','_collaborationPaused','_syncEditingCollabCursor','_removeClearOtherTimer','resend','[SyncedState]:\x20received\x20rejection.','_waitForHeartbeatResponse','Module','defs','defineProperty','BehaviorSubject','_getUploadFileURL','transformMutation','DocSelectionManagerService','SetSelectionsOperation','_injector','_onRefRangeChange','className','&assign=','clearTimeout','RemoveRowCommandId','OffLineSingle','operators','createIdentifier','_scene','method','readAsDataURL','HEARTBEAT','switchMap','_getLoginPath','collabStatus.syncing','[UniverCollaborationClientPlugin]','getSkeleton','url(#on-line-single_clip0_910_349)','IConfigService','_transformStack','searchParams','_getAnchorBounding','_uiPartsService','LIVESHARE_FETCH_OPERATIONS','enableAuthServer','_transformService','session','deepClone','incrementRevForDocument','_drawTextRange','POST','UNIVER_DOC','_onUserLeave','SNAPSHOT_HAS_BEEN_REMOVED','HEARTBEAT_TIMEOUT','refreshPermission','compose','getCollabEntity$','some','onCommandExecuted','prototype','_socketService','CollaborationEntity','TEXT_RANGE_LAYER_INDEX','HTTPRequest','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','forwardRef','_heartbeatTimer','EffectRefRangId','transformMutationsWithChangeset','fillStyle','snapshot','getUnitStatus$','collaboration-client.config','collab-client.tooltip.reconnect','isTransformChangesetsSuccess','_event$','DocSkeletonManagerService','cmd','syncEditingCollabCursor','getUnitId','_render','routeKey','cursorInfo','_waitCount','size','_permissionService','useObservable','objects','UNIVER_SHEET','path','_state$','IImageIoService','every','sheets','div','post','InsertRowCommandId','getFocusedUnit','_entities','reduce','_getCurrentRevision','/unit/','1em','RECV','CHANGESET_REJ','DeleteRangeMoveLeftCommandId','function','univer-online','getUnhiddenWorksheets','_notificationService','\x0aAfter:\x20','Disposable','has','_docSkeleton','SNAPSHOT_SERVER_URL_KEY','handleDeleteRangeMoveLeft','random','unitId','/universer-api/snapshot','_commentUpdate$','_initStatusComponent','INotificationService','IUniverInstanceService','INVALID_ARGUMENT','ICommandService','_onCursorDelete','createInstance','YUUMI_URL_COL_OUT_OF_RANGE','COLLAB_WEB_SOCKET_URL_KEY','_themeService','_joinRoom','_document','_range','_userManagerService','_clearScheduledTask','image/jpg','unitId\x20is\x20not\x20found','_commentService','userID','UniverIcon','combineLatest','hide','unit-cache-','LICENSE_IMPORT_SIZE_EXCEEDED','_localeService','_initCommandExecutedListener','MUTATION','requireSession','_clearCollaborationTimeoutTimer','roomInfos','getRangePointData','purple300','0\x200\x2016\x2016','RemoveColCommandId','...','next','_showConflictNotification','open$','SnapshotService','ERROR_IMAGE','@univerjs/design','Tooltip','_getAPIPrefix','entries','CompressMutationService','off-line-single_clip0_910_343','verdancy600','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','serializeRangeWithSheet','_ensureSubject','UniverEngineRender','NOT_FOUND','onRemoteChangeset','closeSession','activeSheet$','onlineStatusIcon','close$','toggleOffline','addImageSourceCache','Ready','_updateURLWithCurrentState','setConfig','AWAITING_WITH_PENDING','stringify','56lDROQA','APPLY_REJECT','LIVESHARE_TERMINATE','list','telemetry\x20info\x20is\x20not\x20initialized','ITelemetryService','getDocRanges','_members','append','icon','SYNCED','Warning','triggerDblclick','attrs','getCollabCursors$','RETRY_CONNECTING_MAX_COUNT_KEY','isEditing','DesktopCollaborationStatusDisplayController','getCurrentSelections','getSheetId','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','currentColor','_transitionLocked','forEach','Subject','UNIVER_COLLABORATION_CLIENT_PLUGIN','UNRECOGNIZED','_commandService','onTransformSelections','_onUserJoin','_clearLocalCache','_unitStatus','YUUMI_SUBSCRIPTION_NOT_FOUND','getInterceptPoints','round','_submitChangeset','mutations','online','setTimeout','message$','_socketMessageSubscription','_beforeCloseService','4195035JqlPyg','permissionRejEvent','onPointerEnter$','none','_logService','PSEUDO_FETCH_MISSING_RESULT','getValue','\x20in\x20_schedule.','c2Prime','_drawAnchor','image/jpeg','DocCollaborationEntity','_socketReady','transform','labelPosition','@univerjs/rpc','roomMembers$','[CollaborationSessionService]','InsertSheetMutation','CommandType','listRoles','conflict.content','lineTo','_sendHeartbeatTimer','onload','CollaborationSessionService','toggleOnline','_pendingMutations','_anchorDot','WorkbookEditablePermission','NEW_CHANGESETS','_color','_univerInstanceService','getCurrent','evenodd','_sheetSkeletonManagerService','data','/universer-api/comb','IUndoRedoService','toDisposable','_clearHeartbeatTimer','min','onlineStatus','updateOfflineData','_draw','_candidateSocket','pluginName','replaceTextRanges','_shapes','setParam','_getUndoStack','SNAPSHOT_URL_KEY','getParam','fromEventSubject','_throwTelemetryCollaborationNewChangeset','collabStatus.conflict','save','init','findNodePositionByCharIndex','UniverSheetsUi','8bvDbYB','HttpExport','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','extend','ALREADY_EXISTS','_compressMutationService','confirm','setShapeProps','ranges','&source=','joinRsp','concat','_backgroundColor','getTypeOfUnitAdded$','image/bmp','_hideTimer','LIVESHARE_NEW_HOST','storage','moveTo','Injector','COMPRESS_MUTATION_SEND','_HTTPService','_toggleOnline','tag','getCurrentUnitForType','commentUpdateEvent','/universer-api/file/{fileID}/sign-url','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetTransformSelectionsService','SheetCollabCursorShape','LocalCacheService','m1Prime','onMissingChangesets','UniverDocsUi','LifecycleStages','catch','_selfUnitIDs','RxDisposable','originalMeta','_tryReconnect','[PendingState]:\x20received\x20acknowledgement.','getSheetBySheetId','_context','CollaborationStatusDisplay','APPLY_NON_SEQUENTIAL_REVISION','toStringTag','_retryConnectingTimer','FETCH_MISS','react','socketService','fetch_missing','handleInsertRangeMoveDown','split','saveChangeset','transformRemoteChangeset','localeService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_revisionService','@univerjs-pro/collaboration','url(#off-line-single_clip0_910_343)','ILogService','ILocalStorageService','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','IMessageService','_checkMissing','startsWith','debounceTime','_onCombEvent','updatePermissionPoint','lodash','hasOwnProperty','awaiting_with_pending','collabStatus.fetchMiss','_hover','@univerjs/telemetry','amd','_telemetryInfo','values','pending','14711070jzvRoO','getTypeOfUnitDisposed$','roomMembers','ImageSourceType','UniverUi','IPermissionService','ITransformService','_registerRenderDependencies','_clearTimeoutTimer','fetching\x20missing\x20changesets\x20from\x20','unit','image/gif','mapDocumentTypeToUniverType','_setupBeforeClosingHandler','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','column','restore','_schedule','_fetchMissChangesets','@univerjs/docs','_listenToOnlineEvent','SheetPermissionInitController','{fileID}','title','SetWorksheetActivateCommand','_docStateChangeManagerService','CHANGESET_ACK','_initMergeInterceptor','isInternalEditorID','collabCursorState$','objectType','_applyRemoteChangeset','handleIRemoveCol','UniverDrawing','NOT_COLLAB','SHOULD_CLOSE_CONN','_config','Unknown\x20user','getViewport','removeParam','ONLINE','_refRangeService','HTTPService','isTransformMutationsWithChangesetFailure','getRoom','getTime','UNKNOWN_CMD','OTHER_CLIENTS_EDITING','unsubscribe','show'];_0x4120=function(){return _0xe92048;};return _0x4120();}(function(_0x31114d,_0x2a6816){const _0x11b25d=_0x3242,_0x37db2a=_0x31114d();while(!![]){try{const _0x3d1cb6=parseInt(_0x11b25d(0x52f))/0x1*(parseInt(_0x11b25d(0x4f8))/0x2)+parseInt(_0x11b25d(0x1e5))/0x3+-parseInt(_0x11b25d(0x539))/0x4+-parseInt(_0x11b25d(0x319))/0x5+parseInt(_0x11b25d(0x1b5))/0x6*(-parseInt(_0x11b25d(0x2ef))/0x7)+parseInt(_0x11b25d(0x355))/0x8*(parseInt(_0x11b25d(0x44b))/0x9)+parseInt(_0x11b25d(0x3a4))/0xa;if(_0x3d1cb6===_0x2a6816)break;else _0x37db2a['push'](_0x37db2a['shift']());}catch(_0x3dd087){_0x37db2a['push'](_0x37db2a['shift']());}}}(_0x4120,0x81e2d),function(_0x5d3e6e,_0x38363d){const _0x4735e4=_0x3242;typeof exports=='object'&&typeof module<'u'?_0x38363d(exports,require('@univerjs/core'),require('rxjs'),require(_0x4735e4(0x125)),require(_0x4735e4(0x2d7)),require(_0x4735e4(0x154)),require('@univerjs/network'),require(_0x4735e4(0x38f)),require(_0x4735e4(0x39f)),require('@univerjs/docs'),require(_0x4735e4(0x166)),require('@univerjs/docs-ui'),require(_0x4735e4(0x14c)),require('@univerjs/drawing'),require(_0x4735e4(0x200)),require(_0x4735e4(0x482)),require('@univerjs/sheets-ui'),require(_0x4735e4(0x385)),require(_0x4735e4(0x117)),require(_0x4735e4(0x328))):typeof define==_0x4735e4(0x2a1)&&define[_0x4735e4(0x3a0)]?define(['exports',_0x4735e4(0x14f),_0x4735e4(0x499),_0x4735e4(0x125),_0x4735e4(0x2d7),_0x4735e4(0x154),'@univerjs/network',_0x4735e4(0x38f),_0x4735e4(0x39f),_0x4735e4(0x3b7),_0x4735e4(0x166),_0x4735e4(0x486),'@univerjs/engine-render',_0x4735e4(0x484),'@univerjs/engine-formula',_0x4735e4(0x482),_0x4735e4(0x4de),_0x4735e4(0x385),_0x4735e4(0x117),_0x4735e4(0x328)],_0x38363d):(_0x5d3e6e=typeof globalThis<'u'?globalThis:_0x5d3e6e||self,_0x38363d(_0x5d3e6e[_0x4735e4(0x20b)]={},_0x5d3e6e[_0x4735e4(0x432)],_0x5d3e6e[_0x4735e4(0x499)],_0x5d3e6e['rxjs'][_0x4735e4(0x250)],_0x5d3e6e['UniverDesign'],_0x5d3e6e[_0x4735e4(0x3a8)],_0x5d3e6e['UniverNetwork'],_0x5d3e6e[_0x4735e4(0x22b)],_0x5d3e6e[_0x4735e4(0x1c9)],_0x5d3e6e[_0x4735e4(0x15c)],_0x5d3e6e['UniverSheets'],_0x5d3e6e[_0x4735e4(0x376)],_0x5d3e6e[_0x4735e4(0x2e1)],_0x5d3e6e[_0x4735e4(0x3c5)],_0x5d3e6e['UniverEngineFormula'],_0x5d3e6e[_0x4735e4(0x39a)][_0x4735e4(0x4c7)],_0x5d3e6e[_0x4735e4(0x354)],_0x5d3e6e[_0x4735e4(0x3de)],_0x5d3e6e['clsx'],_0x5d3e6e['UniverRpc']));}(this,function(_0x2509f1,_0x3eca57,_0x199df4,_0x46f2f0,_0xf694dc,_0x2ede89,_0x1c2884,_0x1474a0,_0x257ca1,_0x5a15a4,_0x9f218b,_0x58059b,_0x29e386,_0x2a024d,_0x2568c2,_0x7f76a4,_0x346aeb,_0x2b3f02,_0x4b450e,_0x2b3044){'use strict';const _0x3e84f8=_0x3242;var _0x15be70=Object[_0x3e84f8(0x243)],_0x530d6e=(_0x2a040e,_0xfbd25f,_0x46500c)=>_0xfbd25f in _0x2a040e?_0x15be70(_0x2a040e,_0xfbd25f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46500c}):_0x2a040e[_0xfbd25f]=_0x46500c,_0x1de933=(_0x3b741a,_0x5d04a6,_0x3568c8)=>_0x530d6e(_0x3b741a,typeof _0x5d04a6!=_0x3e84f8(0x50d)?_0x5d04a6+'':_0x5d04a6,_0x3568c8);const _0x3ec466='SNAPSHOT_SERVER_URL_KEY',_0xd20306=_0x3e84f8(0x2ad),_0x48129e=_0x3e84f8(0x34c),_0x3580e7=_0x3e84f8(0x3f7),_0x2e0e5e='COLLAB_WEB_SOCKET_URL',_0x640fc5='ws://127.0.0.1:8000/universer-api/comb/connect',_0x14a4f4=_0x3e84f8(0x164),_0x4d3ef7=_0x3e84f8(0x26c),_0x276e46='RETRY_CONNECTING_INTERVAL',_0x424e1f='RETRY_CONNECTING_MAX_COUNT',_0x55047c='LOCAL_CACHE_INTERVAL',_0x11b9bd=_0x3e84f8(0x12f),_0x19d6d8=_0x3e84f8(0x33e),_0x14e0af=_0x3e84f8(0x1bf),_0x3bbd51='/universer-api/oidc/authpage';var _0x121659=(_0x400f94=>(_0x400f94[_0x400f94['UNDEFINED']=0x0]='UNDEFINED',_0x400f94[_0x400f94['OK']=0x1]='OK',_0x400f94[_0x400f94['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x400f94[_0x400f94[_0x3e84f8(0x53d)]=0x3]=_0x3e84f8(0x53d),_0x400f94[_0x400f94[_0x3e84f8(0x2e2)]=0x4]=_0x3e84f8(0x2e2),_0x400f94[_0x400f94[_0x3e84f8(0x52c)]=0x5]=_0x3e84f8(0x52c),_0x400f94[_0x400f94[_0x3e84f8(0x359)]=0x6]=_0x3e84f8(0x359),_0x400f94[_0x400f94[_0x3e84f8(0x2b2)]=0x7]=_0x3e84f8(0x2b2),_0x400f94[_0x400f94[_0x3e84f8(0x512)]=0x8]=_0x3e84f8(0x512),_0x400f94[_0x400f94[_0x3e84f8(0x4ea)]=0x9]=_0x3e84f8(0x4ea),_0x400f94[_0x400f94['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3e84f8(0x136),_0x400f94[_0x400f94[_0x3e84f8(0x11a)]=0x1771]=_0x3e84f8(0x11a),_0x400f94[_0x400f94[_0x3e84f8(0x26b)]=0x1772]=_0x3e84f8(0x26b),_0x400f94[_0x400f94['APPLY_REJECT']=0x1b59]=_0x3e84f8(0x2f0),_0x400f94[_0x400f94[_0x3e84f8(0x381)]=0x1b5a]=_0x3e84f8(0x381),_0x400f94[_0x400f94[_0x3e84f8(0x4b5)]=0x1b5b]=_0x3e84f8(0x4b5),_0x400f94[_0x400f94[_0x3e84f8(0x204)]=0x1b5c]=_0x3e84f8(0x204),_0x400f94[_0x400f94['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3e84f8(0x46d),_0x400f94[_0x400f94['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3e84f8(0x165),_0x400f94[_0x400f94[_0x3e84f8(0x277)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x400f94[_0x400f94[_0x3e84f8(0x2c6)]=0x232b]=_0x3e84f8(0x2c6),_0x400f94[_0x400f94[_0x3e84f8(0x4d1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x400f94[_0x400f94[_0x3e84f8(0x510)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x400f94[_0x400f94[_0x3e84f8(0x500)]=0x2711]=_0x3e84f8(0x500),_0x400f94[_0x400f94[_0x3e84f8(0x2b6)]=0x2712]=_0x3e84f8(0x2b6),_0x400f94[_0x400f94[_0x3e84f8(0x4fd)]=0x2713]=_0x3e84f8(0x4fd),_0x400f94[_0x400f94[_0x3e84f8(0x30f)]=0x2714]=_0x3e84f8(0x30f),_0x400f94[_0x400f94[_0x3e84f8(0x309)]=-0x1]=_0x3e84f8(0x309),_0x400f94))(_0x121659||{}),_0x588a36=(_0x374077=>(_0x374077[_0x374077[_0x3e84f8(0x192)]=0x0]=_0x3e84f8(0x192),_0x374077[_0x374077[_0x3e84f8(0x269)]=0x1]='UNIVER_DOC',_0x374077[_0x374077[_0x3e84f8(0x28f)]=0x2]=_0x3e84f8(0x28f),_0x374077[_0x374077[_0x3e84f8(0x4d2)]=0x3]=_0x3e84f8(0x4d2),_0x374077[_0x374077[_0x3e84f8(0x13b)]=0x4]='UNIVER_PROJECT',_0x374077[_0x374077[_0x3e84f8(0x309)]=-0x1]=_0x3e84f8(0x309),_0x374077))(_0x588a36||{}),_0x2c56e2=(_0x2acd9f=>(_0x2acd9f[_0x2acd9f[_0x3e84f8(0x3d2)]=0x0]=_0x3e84f8(0x3d2),_0x2acd9f[_0x2acd9f['HELLO']=0x1]=_0x3e84f8(0x3d7),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x4a1)]=0x2]=_0x3e84f8(0x4a1),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x4f0)]=0x3]=_0x3e84f8(0x4f0),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x4ec)]=0x4]=_0x3e84f8(0x4ec),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x255)]=0x5]=_0x3e84f8(0x255),_0x2acd9f[_0x2acd9f[_0x3e84f8(0x29e)]=0x6]='RECV',_0x2acd9f[_0x2acd9f[_0x3e84f8(0x309)]=-0x1]='UNRECOGNIZED',_0x2acd9f))(_0x2c56e2||{}),_0x4c0f4a=(_0x10dae5=>(_0x10dae5[_0x10dae5[_0x3e84f8(0x481)]=0x0]=_0x3e84f8(0x481),_0x10dae5[_0x10dae5['OK']=0x1]='OK',_0x10dae5[_0x10dae5['FAIL']=0x2]='FAIL',_0x10dae5[_0x10dae5[_0x3e84f8(0x309)]=-0x1]=_0x3e84f8(0x309),_0x10dae5))(_0x4c0f4a||{}),_0x39a188=(_0x42aa35=>(_0x42aa35[_0x42aa35['Undefined']=0x0]=_0x3e84f8(0x215),_0x42aa35[_0x42aa35[_0x3e84f8(0x1fd)]=0x1]='HttpImport',_0x42aa35[_0x42aa35[_0x3e84f8(0x356)]=0x2]=_0x3e84f8(0x356),_0x42aa35[_0x42aa35[_0x3e84f8(0x438)]=0x3]=_0x3e84f8(0x438),_0x42aa35[_0x42aa35['UnitSnapshot']=0x4]=_0x3e84f8(0x157),_0x42aa35[_0x42aa35['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x42aa35))(_0x39a188||{});function _0x588539(_0x592a2a){const _0x29fda5=_0x3e84f8;var _0x8e4b8a,_0xb4d034,_0xe78a86,_0xcca33a;const _0x470673=_0x592a2a[_0x29fda5(0x33d)],_0x1b7fcd=JSON[_0x29fda5(0x47a)](_0x470673);switch(_0x1b7fcd[_0x29fda5(0x284)]){case _0x2c56e2[_0x29fda5(0x255)]:case _0x2c56e2['HELLO']:{const _0x4b4e2d=_0x1b7fcd[_0x29fda5(0x1a2)];return{..._0x1b7fcd,'data':_0x4b4e2d,'cmd':_0x1b7fcd[_0x29fda5(0x284)]};}case _0x2c56e2[_0x29fda5(0x4a1)]:{const _0x319a68=_0x1b7fcd[_0x29fda5(0x35f)];return{..._0x1b7fcd,'data':_0x319a68,'cmd':_0x1b7fcd['cmd']};}case _0x2c56e2[_0x29fda5(0x29e)]:{const _0x2148f8=_0x1b7fcd['collaMsg'];switch(_0x2148f8[_0x29fda5(0x11c)]){case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x452)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0x8e4b8a=_0x2148f8[_0x29fda5(0x31a)])==null?void 0x0:_0x8e4b8a['cs']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x3be)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0xb4d034=_0x2148f8['csAckEvent'])==null?void 0x0:_0xb4d034['cs']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0['CollaborationEvent'][_0x29fda5(0x337)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0xe78a86=_0x2148f8[_0x29fda5(0x526)])==null?void 0x0:_0xe78a86['cs']},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x29f)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':(_0xcca33a=_0x2148f8[_0x29fda5(0x134)])==null?void 0x0:_0xcca33a['cs']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)]['UPDATE_CURSOR']:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x198)]},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x516)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['joinEvent']},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x201)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['leaveEvent']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x365)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x40c)]},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x261)]:case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x4bd)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x4c6)]},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x2f1)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['liveShareNewHost']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0['CollaborationEvent'][_0x29fda5(0x1e8)]:return{..._0x1b7fcd,'data':_0x2148f8,'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0[_0x29fda5(0x520)][_0x29fda5(0x209)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x36e)]},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};case _0x1474a0['CollaborationEvent'][_0x29fda5(0x431)]:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8[_0x29fda5(0x179)]},'cmd':_0x1b7fcd['cmd']};case _0x1474a0[_0x29fda5(0x520)]['SHOULD_CLOSE_CONN']:return{..._0x1b7fcd,'data':{..._0x2148f8,'data':_0x2148f8['shouldCloseConn']},'cmd':_0x1b7fcd[_0x29fda5(0x284)]};default:return _0x1b7fcd;}}default:return _0x1b7fcd;}}function _0x40c916(_0x5b69f2){const _0x411ebc=_0x3e84f8;switch(_0x5b69f2['cmd']){case _0x2c56e2[_0x411ebc(0x255)]:case _0x2c56e2[_0x411ebc(0x3d7)]:return JSON['stringify']({'cmd':_0x5b69f2[_0x411ebc(0x284)],'routeKey':_0x5b69f2['routeKey']});case _0x2c56e2[_0x411ebc(0x4ec)]:{let _0x3c7cec;switch(_0x5b69f2[_0x411ebc(0x33d)]['eventID']){case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x402)]:{_0x3c7cec={'eventID':_0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x402)],'updateCursorEvent':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0['CollaborationEvent'][_0x411ebc(0x201)]:{_0x3c7cec={'eventID':_0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x201)],'leaveEvent':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)]['USERS_ENTER']:{_0x3c7cec={'eventID':_0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x516)],'joinEvent':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)]['LIVESHARE_NEW_HOST']:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x365)],'liveShareNewHost':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x4bd)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x4bd)],'liveShareOperation':_0x5b69f2[_0x411ebc(0x33d)]['data']};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x2f1)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x2f1)],'liveShareTerminate':_0x5b69f2['data'][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x43b)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x43b)],'liveShareRequestHost':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x33d)]};break;}case _0x1474a0[_0x411ebc(0x520)][_0x411ebc(0x261)]:{_0x3c7cec={'eventID':_0x1474a0['CollaborationEvent'][_0x411ebc(0x261)]};break;}default:_0x3c7cec={'eventID':_0x5b69f2[_0x411ebc(0x33d)][_0x411ebc(0x11c)]};}return JSON[_0x411ebc(0x2ee)]({'cmd':_0x5b69f2[_0x411ebc(0x284)],'routeKey':_0x5b69f2[_0x411ebc(0x288)],'collaMsg':_0x3c7cec});}case _0x2c56e2[_0x411ebc(0x4a1)]:return JSON[_0x411ebc(0x2ee)]({'cmd':_0x5b69f2['cmd'],'routeKey':_0x5b69f2[_0x411ebc(0x288)],'joinReq':_0x5b69f2['data']});case _0x2c56e2[_0x411ebc(0x4f0)]:return JSON[_0x411ebc(0x2ee)]({'cmd':_0x5b69f2[_0x411ebc(0x284)],'routeKey':_0x5b69f2[_0x411ebc(0x288)],'leaveReq':_0x5b69f2['data']});default:throw new Error(_0x411ebc(0x508));}}var _0x4f5cb9=Object[_0x3e84f8(0x243)],_0x363018=Object[_0x3e84f8(0x439)],_0x113178=(_0x3aa472,_0x5d7ccd,_0x1d8b30,_0x23e786)=>{for(var _0x25ad6f=_0x23e786>0x1?void 0x0:_0x23e786?_0x363018(_0x5d7ccd,_0x1d8b30):_0x5d7ccd,_0x5589da=_0x3aa472['length']-0x1,_0x369c28;_0x5589da>=0x0;_0x5589da--)(_0x369c28=_0x3aa472[_0x5589da])&&(_0x25ad6f=(_0x23e786?_0x369c28(_0x5d7ccd,_0x1d8b30,_0x25ad6f):_0x369c28(_0x25ad6f))||_0x25ad6f);return _0x23e786&&_0x25ad6f&&_0x4f5cb9(_0x5d7ccd,_0x1d8b30,_0x25ad6f),_0x25ad6f;},_0x12522c=(_0x36417b,_0x2f22f4)=>(_0x4d6e8e,_0x4ba615)=>_0x2f22f4(_0x4d6e8e,_0x4ba615,_0x36417b);const _0x484b9f=_0x3eca57[_0x3e84f8(0x251)](_0x3e84f8(0x4bb));function _0x8fa044(_0x3a9430,_0x3dc574,_0x2f0618){const _0x43ebb2=_0x3e84f8;return _0x3a9430+'/'+_0x3dc574+_0x43ebb2(0x29c)+_0x2f0618+_0x43ebb2(0x121);}_0x2509f1['CollaborationSocketService']=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x3486cc,_0x83e9e0,_0x3b2228,_0x2551ed,_0xe4fe5b){const _0x103724=_0x3e84f8;super(),this[_0x103724(0x12c)]=_0x3486cc,this['_ws']=_0x83e9e0,this['_configService']=_0x3b2228,this[_0x103724(0x31d)]=_0x2551ed,this[_0x103724(0x12d)]=_0xe4fe5b;}[_0x3e84f8(0x1d0)](_0x43e8c1){const _0x3d8fe0=_0x3e84f8,_0xd9ca2c=this['_ws'][_0x3d8fe0(0x1d0)](_0x43e8c1);if(!_0xd9ca2c)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1f6fd0=new _0x3eca57[(_0x3d8fe0(0x20e))](),_0x4fa577=new _0x199df4[(_0x3d8fe0(0x307))]();_0x1f6fd0[_0x3d8fe0(0x44d)](_0xd9ca2c[_0x3d8fe0(0x2e7)]['subscribe'](_0x3c7606=>_0x4fa577[_0x3d8fe0(0x2d2)](_0x3c7606))),_0x1f6fd0[_0x3d8fe0(0x44d)](_0x3eca57[_0x3d8fe0(0x340)](()=>_0x4fa577[_0x3d8fe0(0x1d3)]()));const _0x377239=new _0x199df4[(_0x3d8fe0(0x307))]();_0x1f6fd0[_0x3d8fe0(0x44d)](_0xd9ca2c[_0x3d8fe0(0x1e1)]['subscribe'](_0x432e47=>_0x377239[_0x3d8fe0(0x2d2)](_0x432e47))),_0x1f6fd0[_0x3d8fe0(0x44d)](_0x3eca57['toDisposable'](()=>_0x377239[_0x3d8fe0(0x1d3)]()));const _0x182b00=new _0x199df4['Subject']();_0x1f6fd0['add'](_0xd9ca2c[_0x3d8fe0(0x316)][_0x3d8fe0(0x4da)](_0x3d7fb3=>{const _0x3d173d=_0x588539(_0x3d7fb3);_0x182b00['next'](_0x3d173d);})),_0x1f6fd0[_0x3d8fe0(0x44d)](_0x3eca57[_0x3d8fe0(0x340)](()=>_0x182b00['complete']()));let _0x5a7b3b;const _0xdb9fb4=()=>{const _0x1ae2b5=_0x3d8fe0;_0x377239[_0x1ae2b5(0x2d2)](new Event(_0x1ae2b5(0x488))),_0x4fa577['next'](new CloseEvent(_0x1ae2b5(0x488))),_0x5a7b3b['close']();};return _0x5a7b3b={'memberID':'','close$':_0x4fa577[_0x3d8fe0(0x183)](),'error$':_0x377239[_0x3d8fe0(0x183)](),'open$':_0xd9ca2c[_0x3d8fe0(0x2d4)],'message$':_0x182b00[_0x3d8fe0(0x183)](),'send':_0x1d0448=>{const _0x443be2=_0x3d8fe0;if(_0x1d0448[_0x443be2(0x284)]===_0x2c56e2[_0x443be2(0x4ec)]){if(_0x1d0448[_0x443be2(0x33d)][_0x443be2(0x11c)]===_0x1474a0[_0x443be2(0x520)]['SUBMIT_CHANGESET']){this[_0x443be2(0x312)](_0x5a7b3b,_0x1d0448[_0x443be2(0x33d)])[_0x443be2(0x378)](_0x2d2568=>{const _0x905df8=_0x443be2;this[_0x905df8(0x31d)][_0x905df8(0x543)](_0x2d2568),_0xdb9fb4();});return;}if(_0x1d0448[_0x443be2(0x33d)][_0x443be2(0x11c)]===_0x1474a0[_0x443be2(0x520)][_0x443be2(0x22d)]){const _0x5a362a=_0x1d0448['data'];this['_fetchMissChangesets'](_0x5a362a)[_0x443be2(0x504)](_0x41af08=>{const _0x334c52=_0x443be2;_0x182b00[_0x334c52(0x2d2)]({'cmd':_0x2c56e2['RECV'],'code':_0x4c0f4a['OK'],'routeKey':_0x5a362a[_0x334c52(0x33d)][_0x334c52(0x13f)],'routeType':'','data':{'eventID':_0x1474a0['CollaborationEvent'][_0x334c52(0x31e)],'data':{'changesets':_0x41af08}}});})[_0x443be2(0x378)](_0x271dba=>{const _0x369811=_0x443be2;this['_logService'][_0x369811(0x543)](_0x271dba),_0xdb9fb4();});return;}}_0xd9ca2c[_0x443be2(0x41c)](_0x40c916(_0x1d0448));},'close':()=>{const _0x46593d=_0x3d8fe0;_0xd9ca2c[_0x46593d(0x153)](),_0x1f6fd0[_0x46593d(0x231)]();}},_0x5a7b3b;}async[_0x3e84f8(0x312)](_0x365a52,_0x4a554b){const _0x3aae15=_0x3e84f8;var _0x287638;const {unitType:_0x456319,unitID:_0x41b2c7,changeset:_0x1a238f}=_0x4a554b[_0x3aae15(0x33d)],_0x3f56eb={'unitID':_0x41b2c7,'memberID':_0x365a52[_0x3aae15(0x1cb)],'type':_0x456319,'changeset':_0x1474a0[_0x3aae15(0x40f)](_0x1a238f)},_0x14b25c=_0x8fa044((_0x287638=this[_0x3aae15(0x466)]['getConfig'](_0x11b9bd))!=null?_0x287638:_0x19d6d8,_0x456319,_0x41b2c7);try{await this[_0x3aae15(0x12c)][_0x3aae15(0x296)](_0x14b25c,{'body':_0x3f56eb});}catch(_0x4ce169){throw this[_0x3aae15(0x31d)]['error'](_0x3aae15(0x4b1),_0x3aae15(0x445)),_0x4ce169;}}async[_0x3e84f8(0x3b6)](_0x1b87bb){const _0x462c00=_0x3e84f8,{unitID:_0xcda16a,from:_0x349ba4,to:_0x33af28,unitType:_0x4a527f}=_0x1b87bb[_0x462c00(0x33d)];return(await this[_0x462c00(0x12d)][_0x462c00(0x503)]({'metadata':void 0x0},{'unitID':_0xcda16a,'type':_0x4a527f,'from':_0x349ba4,'to':_0x33af28}))[_0x462c00(0x490)];}},_0x2509f1[_0x3e84f8(0x43d)]=_0x113178([_0x12522c(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884[_0x3e84f8(0x3ce)])),_0x12522c(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884['WebSocketService'])),_0x12522c(0x2,_0x3eca57[_0x3e84f8(0x25c)]),_0x12522c(0x3,_0x3eca57['ILogService']),_0x12522c(0x4,_0x1474a0[_0x3e84f8(0x437)])],_0x2509f1['CollaborationSocketService']);const _0x5075d6=_0x3e84f8(0x410);function _0x59c7e3(_0x4e5b6d){const _0x531564=_0x3e84f8;return JSON['stringify'](_0x4e5b6d)[_0x531564(0x1a6)];}class _0x1c6422{constructor(){const _0xa123cd=_0x3e84f8;_0x1de933(this,_0xa123cd(0x2ae),new _0x199df4[(_0xa123cd(0x307))]()),_0x1de933(this,_0xa123cd(0x46e),this['_commentUpdate$'][_0xa123cd(0x183)]());}[_0x3e84f8(0x1b4)](_0x2869aa){const _0x103a71=_0x3e84f8;this[_0x103a71(0x2ae)]['next'](_0x2869aa);}}var _0x407f80=Object[_0x3e84f8(0x243)],_0x27bcf4=Object[_0x3e84f8(0x439)],_0x153085=(_0x284084,_0x3892dc,_0xfe51ff,_0x218d70)=>{const _0x49d47d=_0x3e84f8;for(var _0x2b7c09=_0x218d70>0x1?void 0x0:_0x218d70?_0x27bcf4(_0x3892dc,_0xfe51ff):_0x3892dc,_0x4b5096=_0x284084[_0x49d47d(0x1a6)]-0x1,_0x7669cc;_0x4b5096>=0x0;_0x4b5096--)(_0x7669cc=_0x284084[_0x4b5096])&&(_0x2b7c09=(_0x218d70?_0x7669cc(_0x3892dc,_0xfe51ff,_0x2b7c09):_0x7669cc(_0x2b7c09))||_0x2b7c09);return _0x218d70&&_0x2b7c09&&_0x407f80(_0x3892dc,_0xfe51ff,_0x2b7c09),_0x2b7c09;},_0x57210c=(_0x3fbdf3,_0x2f7009)=>(_0x1b64cf,_0x21eb40)=>_0x2f7009(_0x1b64cf,_0x21eb40,_0x3fbdf3);let _0x5df92e=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x2abce,_0x491579){const _0x3f5ce7=_0x3e84f8;super(),_0x1de933(this,_0x3f5ce7(0x1ba),new Map()),(this[_0x3f5ce7(0x339)]=_0x2abce,this['_userManagerService']=_0x491579,this[_0x3f5ce7(0x4ed)](_0x3eca57[_0x3f5ce7(0x340)](_0x199df4[_0x3f5ce7(0x148)](this[_0x3f5ce7(0x339)][_0x3f5ce7(0x3a5)](_0x3eca57['UniverInstanceType']['UNIVER_SHEET'])[_0x3f5ce7(0x52b)](_0x46f2f0[_0x3f5ce7(0x1ad)](_0x4d77bd=>_0x4d77bd['getUnitId']())),this[_0x3f5ce7(0x339)]['getTypeOfUnitDisposed$'](_0x3eca57[_0x3f5ce7(0x3fd)][_0x3f5ce7(0x269)])[_0x3f5ce7(0x52b)](_0x46f2f0['map'](_0x5ac6cc=>_0x5ac6cc[_0x3f5ce7(0x286)]())),this['_univerInstanceService'][_0x3f5ce7(0x3a5)](_0x3eca57[_0x3f5ce7(0x3fd)][_0x3f5ce7(0x4d2)])[_0x3f5ce7(0x52b)](_0x46f2f0[_0x3f5ce7(0x1ad)](_0x5be102=>_0x5be102[_0x3f5ce7(0x286)]())))['subscribe'](_0x1bf140=>this[_0x3f5ce7(0x3f1)](_0x1bf140)))));}[_0x3e84f8(0x428)](_0x3c1f1e){const _0x528b3a=_0x3e84f8;this[_0x528b3a(0x2bc)]['setCurrentUser'](_0x3c1f1e);}[_0x3e84f8(0x507)](){const _0x1c2507=_0x3e84f8;return this[_0x1c2507(0x2bc)][_0x1c2507(0x507)]();}[_0x3e84f8(0x162)](_0x19ecc1,_0x3050de){const _0x1fed1b=_0x3e84f8;let _0x4e9690=this[_0x1fed1b(0x1ba)][_0x1fed1b(0x4af)](_0x19ecc1);_0x4e9690||(_0x4e9690=new _0x214de7(),this[_0x1fed1b(0x1ba)]['set'](_0x19ecc1,_0x4e9690)),_0x4e9690[_0x1fed1b(0x162)](_0x3050de);}[_0x3e84f8(0x435)](_0x2500ed,_0x4d0377){const _0x551d3f=_0x3e84f8,_0x382e45=this[_0x551d3f(0x1ba)][_0x551d3f(0x4af)](_0x2500ed);_0x382e45&&_0x382e45[_0x551d3f(0x435)](_0x4d0377);}[_0x3e84f8(0x3d0)](_0x5e2c90){const _0x35ee0b=_0x3e84f8;return this[_0x35ee0b(0x1ba)][_0x35ee0b(0x4af)](_0x5e2c90);}[_0x3e84f8(0x172)](_0x36324a,_0x5b0d7d){const _0x14d06c=_0x3e84f8,_0xc9eb26=this['_roomMembers'][_0x14d06c(0x4af)](_0x36324a);if(_0xc9eb26)return _0xc9eb26[_0x14d06c(0x172)](_0x5b0d7d);}[_0x3e84f8(0x3f1)](_0x5cdaf0){const _0x417e0f=_0x3e84f8,_0x48ecfd=this[_0x417e0f(0x1ba)][_0x417e0f(0x4af)](_0x5cdaf0);_0x48ecfd&&(_0x48ecfd[_0x417e0f(0x231)](),this[_0x417e0f(0x1ba)][_0x417e0f(0x531)](_0x5cdaf0));}[_0x3e84f8(0x231)](){const _0x40edc4=_0x3e84f8;this[_0x40edc4(0x1ba)][_0x40edc4(0x306)](_0x31dc50=>_0x31dc50[_0x40edc4(0x231)]()),this[_0x40edc4(0x1ba)][_0x40edc4(0x4db)]();}};_0x5df92e=_0x153085([_0x57210c(0x0,_0x3eca57['IUniverInstanceService']),_0x57210c(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['UserManagerService']))],_0x5df92e);class _0x214de7 extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(){const _0x4bc0f5=_0x3e84f8;super(...arguments),_0x1de933(this,_0x4bc0f5(0x2f6),new Map());}[_0x3e84f8(0x231)](){const _0x565e82=_0x3e84f8;this[_0x565e82(0x2f6)]['clear']();}[_0x3e84f8(0x162)](_0x4b32fc){const _0xbde22e=_0x3e84f8;this['_members'][_0xbde22e(0x1b8)](_0x4b32fc[_0xbde22e(0x1cb)],_0x4b32fc);}[_0x3e84f8(0x435)](_0x292621){const _0x362cac=_0x3e84f8;this['_members'][_0x362cac(0x531)](_0x292621);}[_0x3e84f8(0x172)](_0x4dbe28){const _0x4b53af=_0x3e84f8;return this['_members'][_0x4b53af(0x4af)](_0x4dbe28);}}var _0x21d5ce=Object[_0x3e84f8(0x243)],_0x1de96a=Object[_0x3e84f8(0x439)],_0x259844=(_0x54126b,_0x33458c,_0x4e97ce,_0x6873ef)=>{const _0x13a540=_0x3e84f8;for(var _0x24d2c8=_0x6873ef>0x1?void 0x0:_0x6873ef?_0x1de96a(_0x33458c,_0x4e97ce):_0x33458c,_0x4eeea9=_0x54126b[_0x13a540(0x1a6)]-0x1,_0x23215f;_0x4eeea9>=0x0;_0x4eeea9--)(_0x23215f=_0x54126b[_0x4eeea9])&&(_0x24d2c8=(_0x6873ef?_0x23215f(_0x33458c,_0x4e97ce,_0x24d2c8):_0x23215f(_0x24d2c8))||_0x24d2c8);return _0x6873ef&&_0x24d2c8&&_0x21d5ce(_0x33458c,_0x4e97ce,_0x24d2c8),_0x24d2c8;},_0x5c74fa=(_0x3a2a94,_0x5a30e2)=>(_0x509337,_0x14254d)=>_0x5a30e2(_0x509337,_0x14254d,_0x3a2a94),_0x39f403=(_0x2f0a3a=>(_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x1f2)]=0x0]='IDLE',_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x1e4)]=0x1]='JOINING',_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x535)]=0x2]=_0x3e84f8(0x535),_0x2f0a3a[_0x2f0a3a[_0x3e84f8(0x3cc)]=0x3]=_0x3e84f8(0x3cc),_0x2f0a3a))(_0x39f403||{});_0x2509f1[_0x3e84f8(0x1f6)]=class extends _0x3eca57['RxDisposable']{constructor(_0x33d4be,_0x4233ce,_0x1cee48,_0x3fc549,_0x513e49,_0x4cf44c,_0x5cd6fe,_0x18757d,_0x4b7e0a,_0x5d0ca8){const _0x82d874=_0x3e84f8;super(),_0x1de933(this,_0x82d874(0x4e9),new _0x199df4[(_0x82d874(0x244))](0x0)),_0x1de933(this,'sessionStatus$',this[_0x82d874(0x4e9)][_0x82d874(0x183)]()),_0x1de933(this,_0x82d874(0x282),new _0x199df4[(_0x82d874(0x307))]()),_0x1de933(this,_0x82d874(0x15a),this['_event$'][_0x82d874(0x183)]()),_0x1de933(this,_0x82d874(0x4a3)),_0x1de933(this,_0x82d874(0x317)),_0x1de933(this,'_collaborationTimeoutTimer'),_0x1de933(this,_0x82d874(0x3e5),!0x1),_0x1de933(this,'_telemetryInfo',null),(this[_0x82d874(0x16f)]=_0x33d4be,this['_logService']=_0x1cee48,this['_beforeCloseService']=_0x3fc549,this[_0x82d874(0x14a)]=_0x513e49,this[_0x82d874(0x466)]=_0x4cf44c,this[_0x82d874(0x2c7)]=_0x5cd6fe,this[_0x82d874(0x1ec)]=_0x18757d,this[_0x82d874(0x2c0)]=_0x4b7e0a,this['_telemetryService']=_0x5d0ca8,this['_shouldReportTelemetry']=!!this[_0x82d874(0x4b7)],_0x4233ce[_0x82d874(0x52b)](_0x199df4[_0x82d874(0x468)](this['dispose$']))[_0x82d874(0x4da)](_0x228dd6=>{const _0x4c485a=_0x82d874;var _0x2f60d3;typeof _0x228dd6>'u'||(this[_0x4c485a(0x4a3)]=_0x228dd6,_0x228dd6?(this[_0x4c485a(0x2b9)](_0x228dd6),this['_socketMessageSubscription']=_0x228dd6[_0x4c485a(0x316)][_0x4c485a(0x4da)](_0x3df310=>{const _0x2d9dd1=_0x4c485a;_0x3df310[_0x2d9dd1(0x288)]===this[_0x2d9dd1(0x16f)]&&this[_0x2d9dd1(0x398)](_0x3df310);})):(this[_0x4c485a(0x34f)](),this[_0x4c485a(0x4e9)]['next'](0x2),(_0x2f60d3=this['_socketMessageSubscription'])==null||_0x2f60d3[_0x4c485a(0x3d4)](),this[_0x4c485a(0x317)]=null));}),this[_0x82d874(0x4ed)](this['_beforeCloseService'][_0x82d874(0x17a)](()=>{const _0x2f9acb=_0x82d874;var _0x3ad064;(_0x3ad064=this[_0x2f9acb(0x4a3)])==null||_0x3ad064[_0x2f9acb(0x41c)]({'cmd':_0x2c56e2[_0x2f9acb(0x4f0)],'data':{'roomID':this[_0x2f9acb(0x16f)]}});})));}get['sessionStatus'](){const _0x1febf7=_0x3e84f8;return this[_0x1febf7(0x4e9)][_0x1febf7(0x31f)]();}[_0x3e84f8(0x53f)](){const _0x41c078=_0x3e84f8;var _0x3b638f,_0x4dbe51;return(_0x4dbe51=(_0x3b638f=this[_0x41c078(0x4a3)])==null?void 0x0:_0x3b638f[_0x41c078(0x1cb)])!=null?_0x4dbe51:null;}[_0x3e84f8(0x231)](){const _0x16a846=_0x3e84f8;super[_0x16a846(0x231)](),this['dispose$'][_0x16a846(0x2d2)](),this['dispose$'][_0x16a846(0x1d3)]();}['close'](){const _0x4d589c=_0x3e84f8;var _0x342331,_0x2dfbfb;this[_0x4d589c(0x34f)](),(_0x342331=this[_0x4d589c(0x4a3)])==null||_0x342331['send']({'cmd':_0x2c56e2[_0x4d589c(0x4f0)],'data':{'roomID':this[_0x4d589c(0x16f)]}}),(_0x2dfbfb=this[_0x4d589c(0x4a3)])==null||_0x2dfbfb[_0x4d589c(0x153)](),this['_event$']['complete'](),this['_sessionStatus$'][_0x4d589c(0x1d3)](),this[_0x4d589c(0x231)]();}[_0x3e84f8(0x398)](_0x3da5ae){const _0x551269=_0x3e84f8;_0x3da5ae[_0x551269(0x284)]===_0x2c56e2['JOIN']?this['_onJoinRoomEvent'](_0x3da5ae):_0x3da5ae[_0x551269(0x284)]===_0x2c56e2[_0x551269(0x29e)]&&this[_0x551269(0x1a8)](_0x3da5ae);}[_0x3e84f8(0x2b9)](_0x1a5f63){const _0x28ad1e=_0x3e84f8;this[_0x28ad1e(0x4e9)]['next'](0x1),_0x1a5f63['send']({'cmd':_0x2c56e2[_0x28ad1e(0x4a1)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x28ad1e(0x16f)]}]}});}[_0x3e84f8(0x528)](_0x4a0c11){const _0x4dee5f=_0x3e84f8;var _0x52721a;if(_0x4a0c11[_0x4dee5f(0x532)]===_0x4c0f4a[_0x4dee5f(0x458)]){this[_0x4dee5f(0x14a)][_0x4dee5f(0x3d5)]({'type':_0xf694dc[_0x4dee5f(0x472)]['Warning'],'content':this[_0x4dee5f(0x2c7)]['t']('session.room-full')}),this[_0x4dee5f(0x4e9)][_0x4dee5f(0x2d2)](0x2);return;}this[_0x4dee5f(0x4e9)][_0x4dee5f(0x2d2)](0x3);const _0x4fc76d=(_0x52721a=_0x4a0c11['data'][_0x4dee5f(0x2cc)][this['_unitID']])==null?void 0x0:_0x52721a[_0x4dee5f(0x53b)];_0x4fc76d&&_0x4fc76d[_0x4dee5f(0x306)](_0x3d6aed=>this[_0x4dee5f(0x1ec)][_0x4dee5f(0x162)](this[_0x4dee5f(0x16f)],_0x3d6aed));}['_onRecvEvent'](_0x2af009){const _0x26edf6=_0x3e84f8;try{const _0x4f8ccd=_0x2af009['data'];switch(_0x4f8ccd[_0x26edf6(0x11c)]){case _0x1474a0[_0x26edf6(0x520)][_0x26edf6(0x516)]:this[_0x26edf6(0x30c)](_0x4f8ccd),this[_0x26edf6(0x282)][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0[_0x26edf6(0x520)][_0x26edf6(0x201)]:this[_0x26edf6(0x26a)](_0x4f8ccd),this[_0x26edf6(0x282)][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0[_0x26edf6(0x520)][_0x26edf6(0x3be)]:this[_0x26edf6(0x46f)](),this[_0x26edf6(0x2cb)](),this['_event$'][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0[_0x26edf6(0x520)]['MSG_FOR_ERROR']:this[_0x26edf6(0x31d)][_0x26edf6(0x543)](_0x26edf6(0x224)+JSON[_0x26edf6(0x2ee)](_0x4f8ccd)),this['_event$'][_0x26edf6(0x2d2)](_0x4f8ccd);break;case _0x1474a0['CollaborationEvent'][_0x26edf6(0x209)]:this[_0x26edf6(0x2c0)][_0x26edf6(0x1b4)](_0x4f8ccd[_0x26edf6(0x33d)]),this['_event$'][_0x26edf6(0x2d2)](_0x4f8ccd);break;default:this[_0x26edf6(0x282)][_0x26edf6(0x2d2)](_0x4f8ccd);}}catch(_0x135c6f){this[_0x26edf6(0x31d)][_0x26edf6(0x543)](_0x135c6f,_0x2af009);}}[_0x3e84f8(0x30c)](_0x572d0d){const _0xd5d516=_0x3e84f8;this[_0xd5d516(0x1ec)][_0xd5d516(0x162)](this[_0xd5d516(0x16f)],_0x572d0d['data']);}['_onUserLeave'](_0xd2a1dd){const _0x41f04b=_0x3e84f8;this[_0x41f04b(0x1ec)][_0x41f04b(0x435)](this[_0x41f04b(0x16f)],_0xd2a1dd[_0x41f04b(0x33d)][_0x41f04b(0x1cb)]);}async[_0x3e84f8(0x41c)](_0x12c553,_0x58c9c0){const _0x448f06=_0x3e84f8;if(this[_0x448f06(0x423)]!==0x3||!this[_0x448f06(0x4a3)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x12c553[_0x448f06(0x11c)]===_0x1474a0[_0x448f06(0x520)][_0x448f06(0x405)]&&(this[_0x448f06(0x4dd)](),this['_startTelemetryCollaborationNewChangeset'](_0x12c553)),this[_0x448f06(0x4a3)][_0x448f06(0x41c)]({'cmd':_0x2c56e2[_0x448f06(0x4ec)],'routeKey':_0x58c9c0,'routeType':'','data':_0x12c553});}catch(_0x3b0ef5){this[_0x448f06(0x31d)][_0x448f06(0x543)](_0x3b0ef5);}}['_scheduleCollaborationTimeoutTimer'](){const _0x49e88e=_0x3e84f8;var _0x13fbcf;this[_0x49e88e(0x1ce)]=window[_0x49e88e(0x315)](()=>{const _0xf89743=_0x49e88e;this['_collaborationTimeoutTimer']=null,this[_0xf89743(0x14a)][_0xf89743(0x3d5)]({'type':_0xf694dc[_0xf89743(0x472)][_0xf89743(0x421)],'content':this[_0xf89743(0x2c7)]['t'](_0xf89743(0x4d0))});},(_0x13fbcf=this[_0x49e88e(0x466)][_0x49e88e(0x22e)](_0x4d3ef7))!=null?_0x13fbcf:0x4e20);}[_0x3e84f8(0x2cb)](){const _0x3ff365=_0x3e84f8;this[_0x3ff365(0x1ce)]&&(clearTimeout(this[_0x3ff365(0x1ce)]),this[_0x3ff365(0x1ce)]=null);}[_0x3e84f8(0x48b)](_0x23b378){const _0x88266=_0x3e84f8;if(!this[_0x88266(0x3e5)])return;const {data:_0x1bf163}=_0x23b378,{unitID:_0x241a9b,changeset:_0x5d0091}=_0x1bf163,{mutations:_0x59af77,type:_0x37ef65}=_0x5d0091;this[_0x88266(0x3a1)]={'unitId':_0x241a9b,'type':_0x37ef65,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x59c7e3(_0x59af77)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x30932b=_0x3e84f8;if(this[_0x30932b(0x3e5)]){if(!this[_0x30932b(0x3a1)]){this[_0x30932b(0x31d)][_0x30932b(0x543)](_0x30932b(0x4b1),_0x30932b(0x2f3));return;}this[_0x30932b(0x3a1)][_0x30932b(0x18b)]=performance[_0x30932b(0x1d2)](),this[_0x30932b(0x3a1)][_0x30932b(0x40a)]=this[_0x30932b(0x3a1)]['stopTime']-this[_0x30932b(0x3a1)][_0x30932b(0x42e)],this[_0x30932b(0x4b7)]['capture'](_0x5075d6,this[_0x30932b(0x3a1)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x35f37d=_0x3e84f8;this[_0x35f37d(0x3a1)]=null;}},_0x2509f1[_0x3e84f8(0x1f6)]=_0x259844([_0x5c74fa(0x2,_0x3eca57[_0x3e84f8(0x391)]),_0x5c74fa(0x3,_0x2ede89['IBeforeCloseService']),_0x5c74fa(0x4,_0x2ede89[_0x3e84f8(0x394)]),_0x5c74fa(0x5,_0x3eca57[_0x3e84f8(0x25c)]),_0x5c74fa(0x6,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)])),_0x5c74fa(0x7,_0x3eca57['Inject'](_0x5df92e)),_0x5c74fa(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x1c6422)),_0x5c74fa(0x9,_0x3eca57[_0x3e84f8(0x3f3)](_0x257ca1[_0x3e84f8(0x2f4)]))],_0x2509f1[_0x3e84f8(0x1f6)]);var _0x3b24d0=Object[_0x3e84f8(0x243)],_0x3b1a34=Object['getOwnPropertyDescriptor'],_0xb79613=(_0x4bab46,_0x1ab6c6,_0x1c7ba8,_0x4f15f5)=>{const _0x217af5=_0x3e84f8;for(var _0x477a8f=_0x4f15f5>0x1?void 0x0:_0x4f15f5?_0x3b1a34(_0x1ab6c6,_0x1c7ba8):_0x1ab6c6,_0x14da9b=_0x4bab46[_0x217af5(0x1a6)]-0x1,_0x57c295;_0x14da9b>=0x0;_0x14da9b--)(_0x57c295=_0x4bab46[_0x14da9b])&&(_0x477a8f=(_0x4f15f5?_0x57c295(_0x1ab6c6,_0x1c7ba8,_0x477a8f):_0x57c295(_0x477a8f))||_0x477a8f);return _0x4f15f5&&_0x477a8f&&_0x3b24d0(_0x1ab6c6,_0x1c7ba8,_0x477a8f),_0x477a8f;},_0x8d7f88=(_0x1dcca5,_0x2ca24f)=>(_0x1db838,_0x5895dc)=>_0x2ca24f(_0x1db838,_0x5895dc,_0x1dcca5);_0x2509f1[_0x3e84f8(0x332)]=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x4accc3,_0x208ab9,_0x3b2399,_0x43f559,_0x48de7d,_0x752a4b){const _0x4fdc70=_0x3e84f8;super(),_0x1de933(this,_0x4fdc70(0x441),new _0x199df4[(_0x4fdc70(0x244))](void 0x0)),_0x1de933(this,_0x4fdc70(0x206),this[_0x4fdc70(0x441)]['asObservable']()),_0x1de933(this,_0x4fdc70(0x346),null),_0x1de933(this,_0x4fdc70(0x50b),new Map()),_0x1de933(this,'_status$',new _0x199df4[(_0x4fdc70(0x244))](_0x39f403[_0x4fdc70(0x1f2)])),_0x1de933(this,'status$',this[_0x4fdc70(0x3ff)][_0x4fdc70(0x183)]()),_0x1de933(this,_0x4fdc70(0x325),!0x1),_0x1de933(this,_0x4fdc70(0x383)),_0x1de933(this,_0x4fdc70(0x1c7),0x0),_0x1de933(this,_0x4fdc70(0x330)),_0x1de933(this,_0x4fdc70(0x3ec)),(this[_0x4fdc70(0x249)]=_0x4accc3,this[_0x4fdc70(0x2c7)]=_0x208ab9,this['_messageService']=_0x3b2399,this[_0x4fdc70(0x31d)]=_0x43f559,this[_0x4fdc70(0x466)]=_0x48de7d,this[_0x4fdc70(0x273)]=_0x752a4b);}get[_0x3e84f8(0x4a3)](){const _0x139661=_0x3e84f8;return this[_0x139661(0x441)][_0x139661(0x31f)]();}[_0x3e84f8(0x231)](){const _0x5e905b=_0x3e84f8;super['dispose'](),this[_0x5e905b(0x50b)][_0x5e905b(0x306)](_0x2c180c=>_0x2c180c[_0x5e905b(0x231)]()),this[_0x5e905b(0x50b)]['clear'](),this[_0x5e905b(0x3ff)]['complete']();}async[_0x3e84f8(0x2ca)](_0x1bc9f6){const _0x4d2011=_0x3e84f8;if(this['_sessions'][_0x4d2011(0x2a7)](_0x1bc9f6))return this[_0x4d2011(0x50b)]['get'](_0x1bc9f6);this[_0x4d2011(0x3e9)]();const _0x310f14=this['_injector']['createInstance'](_0x2509f1['CollaborationSession'],_0x1bc9f6,this[_0x4d2011(0x441)][_0x4d2011(0x183)]());return this[_0x4d2011(0x50b)][_0x4d2011(0x1b8)](_0x1bc9f6,_0x310f14),_0x310f14;}[_0x3e84f8(0x2e4)](_0x1f23bd){const _0x20e09e=_0x3e84f8;var _0x51880f;const _0x2e0404=this[_0x20e09e(0x50b)][_0x20e09e(0x4af)](_0x1f23bd);_0x2e0404&&(this['_sessions']['delete'](_0x1f23bd),_0x2e0404[_0x20e09e(0x153)]()),this[_0x20e09e(0x50b)]['size']||(_0x51880f=this[_0x20e09e(0x4a3)])==null||_0x51880f[_0x20e09e(0x153)]();}[_0x3e84f8(0x3f2)](){const _0x2506f4=_0x3e84f8;this[_0x2506f4(0x1c7)]=0x0,this[_0x2506f4(0x383)]!=null&&(clearTimeout(this[_0x2506f4(0x383)]),this[_0x2506f4(0x383)]=null),this[_0x2506f4(0x37c)]();}['_createSocket'](){const _0x2958bf=_0x3e84f8;var _0x4b2ebb;const _0x1a2681=(_0x4b2ebb=this[_0x2958bf(0x466)][_0x2958bf(0x22e)](_0x2e0e5e))!=null?_0x4b2ebb:_0x640fc5,_0x173c1e=this[_0x2958bf(0x273)][_0x2958bf(0x1d0)](_0x1a2681);return this[_0x2958bf(0x346)]=_0x173c1e,_0x173c1e;}[_0x3e84f8(0x3e9)](){const _0x3ee741=_0x3e84f8;var _0x5c3536,_0xf47da8;try{const _0x9ad06=(_0xf47da8=(_0x5c3536=this[_0x3ee741(0x4a3)])!=null?_0x5c3536:this['_candidateSocket'])!=null?_0xf47da8:this['_createSocket']();if(_0x9ad06){const _0xb6bc91=_0x9ad06[_0x3ee741(0x41c)];_0x9ad06[_0x3ee741(0x41c)]=_0x2b3c71=>(this[_0x3ee741(0x232)](),_0xb6bc91[_0x3ee741(0x440)](_0x9ad06,[_0x2b3c71])),_0x9ad06[_0x3ee741(0x316)][_0x3ee741(0x4da)](_0x4dbfda=>this[_0x3ee741(0x3d8)](_0x9ad06,_0x4dbfda)),_0x9ad06[_0x3ee741(0x1e1)][_0x3ee741(0x52b)](_0x46f2f0['take'](0x1))[_0x3ee741(0x4da)](_0x5313bf=>this[_0x3ee741(0x31d)][_0x3ee741(0x543)]('[CollaborationSessionService]:\x20socket\x20error',_0x5313bf)),_0x9ad06['open$'][_0x3ee741(0x52b)](_0x46f2f0['take'](0x1))[_0x3ee741(0x4da)](()=>{this['_onConnectionOpen'](_0x9ad06);}),_0x9ad06[_0x3ee741(0x2e7)]['pipe'](_0x46f2f0[_0x3ee741(0x1de)](0x1))[_0x3ee741(0x4da)](_0x36923d=>{const _0x482391=_0x3ee741;this[_0x482391(0x31d)][_0x482391(0x3d9)](_0x482391(0x32a),'socket\x20close',_0x36923d),this[_0x482391(0x144)]();});}}catch(_0x21d29e){this[_0x3ee741(0x31d)][_0x3ee741(0x543)](_0x21d29e),this[_0x3ee741(0x144)]();}}[_0x3e84f8(0x3f0)](_0x57686e){const _0x50ef97=_0x3e84f8;this[_0x50ef97(0x31d)][_0x50ef97(0x3d9)]('[CollaborationSessionService]',_0x50ef97(0x186)),_0x57686e[_0x50ef97(0x41c)]({'cmd':_0x2c56e2[_0x50ef97(0x3d7)]}),this['_rescheduleHeartbeat'](),this[_0x50ef97(0x4b0)]();}[_0x3e84f8(0x4b0)](){const _0x3b11f2=_0x3e84f8,_0xf261d=()=>{const _0x110156=_0x3242;this[_0x110156(0x123)](),this[_0x110156(0x3b8)](),window[_0x110156(0x536)](_0x110156(0x127),_0xf261d);};window[_0x3b11f2(0x43c)](_0x3b11f2(0x127),_0xf261d);}[_0x3e84f8(0x123)](){const _0x11876d=_0x3e84f8;this[_0x11876d(0x325)]=!0x1,this['_status$']['next'](_0x39f403[_0x11876d(0x535)]),this[_0x11876d(0x441)][_0x11876d(0x2d2)](null),this[_0x11876d(0x3ac)](),this[_0x11876d(0x341)]();}[_0x3e84f8(0x144)](){const _0x3d4aa8=_0x3e84f8;var _0x20ad49;this[_0x3d4aa8(0x123)](),this[_0x3d4aa8(0x1c7)]<((_0x20ad49=this['_configService']['getConfig'](_0x424e1f))!=null?_0x20ad49:0x3)?(this[_0x3d4aa8(0x14a)][_0x3d4aa8(0x3d5)]({'key':_0x3d4aa8(0x18f),'type':_0xf694dc[_0x3d4aa8(0x472)][_0x3d4aa8(0x2fa)],'content':this[_0x3d4aa8(0x2c7)]['t']('session.will-retry')}),this[_0x3d4aa8(0x37c)]()):(this[_0x3d4aa8(0x14a)][_0x3d4aa8(0x3d5)]({'key':_0x3d4aa8(0x18f),'type':_0xf694dc[_0x3d4aa8(0x472)][_0x3d4aa8(0x421)],'content':this['_localeService']['t'](_0x3d4aa8(0x462))}),this[_0x3d4aa8(0x3b8)]());}[_0x3e84f8(0x3b8)](){const _0x1ea8ca=_0x3e84f8,_0x577367=()=>{const _0x42a53c=_0x3242;this[_0x42a53c(0x3f2)](),window[_0x42a53c(0x536)](_0x42a53c(0x314),_0x577367);};window[_0x1ea8ca(0x43c)](_0x1ea8ca(0x314),_0x577367),this[_0x1ea8ca(0x441)][_0x1ea8ca(0x52b)](_0x46f2f0[_0x1ea8ca(0x51d)](_0x174602=>!!_0x174602),_0x46f2f0[_0x1ea8ca(0x1de)](0x1))[_0x1ea8ca(0x4da)](()=>{const _0x3325f0=_0x1ea8ca;window[_0x3325f0(0x536)]('online',_0x577367);});}[_0x3e84f8(0x37c)](){const _0x3e0d82=_0x3e84f8;var _0x46c31e;const _0x47a5f5=this[_0x3e0d82(0x1c7)],_0xf70137=_0x47a5f5===0x0?0x0:((_0x46c31e=this[_0x3e0d82(0x466)][_0x3e0d82(0x22e)](_0x276e46))!=null?_0x46c31e:0x4e20)*0x2**_0x47a5f5;this[_0x3e0d82(0x383)]=window['setTimeout'](()=>{const _0x3fa73d=_0x3e0d82;clearTimeout(this[_0x3fa73d(0x383)]),this['_retryConnectingTimer']=null,this[_0x3fa73d(0x3e9)]();},_0xf70137),this[_0x3e0d82(0x1c7)]+=0x1;}[_0x3e84f8(0x3d8)](_0x247c6c,_0xe0f9e7){const _0x1b8117=_0x3e84f8,{cmd:_0x6f78c}=_0xe0f9e7;_0x6f78c===_0x2c56e2[_0x1b8117(0x3d7)]&&!this[_0x1b8117(0x325)]&&(_0x247c6c[_0x1b8117(0x1cb)]=_0xe0f9e7['data']['memberID'],this['_socket$'][_0x1b8117(0x2d2)](_0x247c6c),this[_0x1b8117(0x3ff)][_0x1b8117(0x2d2)](_0x39f403[_0x1b8117(0x3cc)]),this['_socketReady']=!0x0,this[_0x1b8117(0x346)]=null),_0x6f78c===_0x2c56e2['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x1b8117(0x232)]();}[_0x3e84f8(0x232)](){const _0x5d2c63=_0x3e84f8;var _0x2e04c0;this[_0x5d2c63(0x341)](),this['_sendHeartbeatTimer']=window[_0x5d2c63(0x315)](()=>this['_sendHeartbeat'](),(_0x2e04c0=this[_0x5d2c63(0x466)][_0x5d2c63(0x22e)](_0x14a4f4))!=null?_0x2e04c0:0x7530);}[_0x3e84f8(0x1ee)](){const _0x1c9f29=_0x3e84f8;this[_0x1c9f29(0x4a3)][_0x1c9f29(0x41c)]({'cmd':_0x2c56e2['HEARTBEAT']}),this[_0x1c9f29(0x240)]();}[_0x3e84f8(0x240)](){const _0x13d305=_0x3e84f8;var _0x415767;this[_0x13d305(0x3ec)]=window[_0x13d305(0x315)](()=>this[_0x13d305(0x144)](),(_0x415767=this[_0x13d305(0x466)][_0x13d305(0x22e)](_0x4d3ef7))!=null?_0x415767:0x4e20);}[_0x3e84f8(0x341)](){const _0x3a4b59=_0x3e84f8;this[_0x3a4b59(0x330)]!=null&&(clearTimeout(this[_0x3a4b59(0x330)]),this['_sendHeartbeatTimer']=null);}[_0x3e84f8(0x3ac)](){const _0x4ec255=_0x3e84f8;this[_0x4ec255(0x3ec)]!=null&&(clearTimeout(this[_0x4ec255(0x3ec)]),this[_0x4ec255(0x3ec)]=null);}},_0x2509f1[_0x3e84f8(0x332)]=_0xb79613([_0x8d7f88(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x8d7f88(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x8d7f88(0x2,_0x2ede89['IMessageService']),_0x8d7f88(0x3,_0x3eca57[_0x3e84f8(0x391)]),_0x8d7f88(0x4,_0x3eca57[_0x3e84f8(0x25c)]),_0x8d7f88(0x5,_0x484b9f)],_0x2509f1[_0x3e84f8(0x332)]);var _0x5cb0ec=Object[_0x3e84f8(0x243)],_0x5b63c5=Object[_0x3e84f8(0x439)],_0x3515c7=(_0x3fde08,_0x1b41ba,_0x38c198,_0x42c373)=>{const _0x5019ca=_0x3e84f8;for(var _0x2de4a2=_0x42c373>0x1?void 0x0:_0x42c373?_0x5b63c5(_0x1b41ba,_0x38c198):_0x1b41ba,_0x588b15=_0x3fde08[_0x5019ca(0x1a6)]-0x1,_0x9676f8;_0x588b15>=0x0;_0x588b15--)(_0x9676f8=_0x3fde08[_0x588b15])&&(_0x2de4a2=(_0x42c373?_0x9676f8(_0x1b41ba,_0x38c198,_0x2de4a2):_0x9676f8(_0x2de4a2))||_0x2de4a2);return _0x42c373&&_0x2de4a2&&_0x5cb0ec(_0x1b41ba,_0x38c198,_0x2de4a2),_0x2de4a2;},_0x30f3eb=(_0x18513d,_0x558814)=>(_0xb23e79,_0x49098a)=>_0x558814(_0xb23e79,_0x49098a,_0x18513d);let _0xd6db42=class{constructor(_0x4bce44,_0x101ff1,_0x196e12){const _0xb33281=_0x3e84f8;this['_injector']=_0x4bce44,this[_0xb33281(0x263)]=_0x101ff1,this[_0xb33281(0x42a)]=_0x196e12;}[_0x3e84f8(0x3dd)](_0x3c56f5){const _0x5f535d=_0x3e84f8;this[_0x5f535d(0x45a)](_0x3c56f5),this['_transformPreviousActiveRange'](_0x3c56f5);}[_0x3e84f8(0x38b)](_0x2447e2){const _0x543be6=_0x3e84f8,{unitID:_0xa23b3}=_0x2447e2,_0x259266=this[_0x543be6(0x42a)][_0x543be6(0x1f7)](_0xa23b3)[_0x543be6(0x1b2)](_0x58059b[_0x543be6(0x474)]),{redoCache:_0x32539f}=_0x259266[_0x543be6(0x1a4)]();if(_0x32539f[_0x543be6(0x1a6)]===0x0)return _0x2447e2;let _0x4c2fcd=_0x3eca57[_0x543be6(0x21e)]['deepClone'](_0x2447e2[_0x543be6(0x313)][0x0]);for(let _0x29a196=0x0;_0x29a196<_0x32539f[_0x543be6(0x1a6)];_0x29a196++){const _0x256743={'id':_0x543be6(0x506),'params':{..._0x32539f[_0x29a196]}},_0x279933=this[_0x543be6(0x263)][_0x543be6(0x246)](_0x4c2fcd,_0x256743,!0x1);if(_0x1474a0[_0x543be6(0x199)](_0x279933))throw _0x279933[_0x543be6(0x543)];_0x4c2fcd=_0x279933[_0x543be6(0x374)];}return{..._0x3eca57[_0x543be6(0x21e)]['deepClone'](_0x2447e2),'mutations':[_0x4c2fcd]};}[_0x3e84f8(0x45a)](_0xba8c7){const _0x2375b1=_0x3e84f8,{unitID:_0x26f96a}=_0xba8c7,_0x48bac7=this['_renderManagerService'][_0x2375b1(0x1f7)](_0x26f96a)[_0x2375b1(0x1b2)](_0x58059b['DocIMEInputManagerService']),{undoCache:_0x4042e1,redoCache:_0x213e9e}=_0x48bac7[_0x2375b1(0x1a4)]();if(_0x4042e1['length']===0x0||_0x213e9e[_0x2375b1(0x1a6)]===0x0)return;const _0x5ca2ac=[],_0x2a5a62=[];let _0x468b3a=_0x3eca57[_0x2375b1(0x21e)][_0x2375b1(0x265)](_0xba8c7[_0x2375b1(0x313)][0x0]),_0x10e007=_0x3eca57[_0x2375b1(0x21e)][_0x2375b1(0x265)](_0xba8c7['mutations'][0x0]);for(let _0x2b914c=_0x4042e1[_0x2375b1(0x1a6)]-0x1;_0x2b914c>=0x0;_0x2b914c--){const _0x1f0e45={'id':'doc.mutation.rich-text-editing','params':{..._0x4042e1[_0x2b914c]}},_0x110a85={'id':_0x2375b1(0x506),'params':{..._0x213e9e[_0x2b914c]}},_0x3c3f49=this[_0x2375b1(0x263)][_0x2375b1(0x246)](_0x468b3a,_0x1f0e45,!0x1),_0x5a7574=this['_transformService'][_0x2375b1(0x246)](_0x10e007,_0x110a85,!0x1);if(_0x1474a0[_0x2375b1(0x199)](_0x3c3f49))throw _0x3c3f49[_0x2375b1(0x543)];if(_0x1474a0[_0x2375b1(0x199)](_0x5a7574))throw _0x5a7574[_0x2375b1(0x543)];_0x5ca2ac['unshift'](_0x3c3f49['m2Prime'][_0x2375b1(0x522)]),_0x2a5a62[_0x2375b1(0x126)](_0x5a7574['m2Prime'][_0x2375b1(0x522)]),_0x468b3a=_0x3c3f49[_0x2375b1(0x374)],_0x10e007=_0x5a7574[_0x2375b1(0x374)];}_0x48bac7[_0x2375b1(0x230)]({'undoCache':_0x5ca2ac,'redoCache':_0x2a5a62});}[_0x3e84f8(0x4b9)](_0x38948f){const _0x45e7cb=_0x3e84f8,{unitID:_0x481154}=_0x38948f,_0x5a78b7=this[_0x45e7cb(0x42a)]['getRenderById'](_0x481154)[_0x45e7cb(0x1b2)](_0x58059b[_0x45e7cb(0x474)]),_0xb7b26c=_0x5a78b7[_0x45e7cb(0x3fe)]();if(_0xb7b26c==null)return;const _0x4242d4=[{'id':_0x45e7cb(0x506),'params':{'unitId':_0x38948f[_0x45e7cb(0x13f)],'actions':null,'textRanges':[_0xb7b26c]}}],_0x300b05=this['_transformService'][_0x45e7cb(0x27b)](_0x38948f,_0x4242d4);if(!_0x1474a0[_0x45e7cb(0x1df)](_0x300b05))throw _0x300b05['error'];const _0x5d4429=_0x300b05['m2Prime'][0x0][_0x45e7cb(0x522)][_0x45e7cb(0x1a1)];Array[_0x45e7cb(0x4f1)](_0x5d4429)&&_0x5d4429[_0x45e7cb(0x1a6)]&&_0x5a78b7[_0x45e7cb(0x1cf)](_0x5d4429[0x0]);}};_0xd6db42=_0x3515c7([_0x30f3eb(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x30f3eb(0x1,_0x1474a0[_0x3e84f8(0x3aa)]),_0x30f3eb(0x2,_0x29e386[_0x3e84f8(0x417)])],_0xd6db42);var _0x5c3a8a=Object[_0x3e84f8(0x243)],_0xac3277=Object[_0x3e84f8(0x439)],_0x52f689=(_0x4bb3e4,_0x19859d,_0x5d9c44,_0x1665f5)=>{const _0x303676=_0x3e84f8;for(var _0x388e4f=_0x1665f5>0x1?void 0x0:_0x1665f5?_0xac3277(_0x19859d,_0x5d9c44):_0x19859d,_0xe141e=_0x4bb3e4[_0x303676(0x1a6)]-0x1,_0x24cf82;_0xe141e>=0x0;_0xe141e--)(_0x24cf82=_0x4bb3e4[_0xe141e])&&(_0x388e4f=(_0x1665f5?_0x24cf82(_0x19859d,_0x5d9c44,_0x388e4f):_0x24cf82(_0x388e4f))||_0x388e4f);return _0x1665f5&&_0x388e4f&&_0x5c3a8a(_0x19859d,_0x5d9c44,_0x388e4f),_0x388e4f;},_0x11682c=(_0x50da3d,_0x2a5e8f)=>(_0x1633c3,_0x3ff22d)=>_0x2a5e8f(_0x1633c3,_0x3ff22d,_0x50da3d);_0x2509f1['LocalCacheService']=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x5974f3,_0x14e3d9,_0x5085d9,_0x5d1e92,_0x10c26c){const _0x4b088a=_0x3e84f8;super(),_0x1de933(this,_0x4b088a(0x42c),new Map()),_0x1de933(this,_0x4b088a(0x41f),new Map()),_0x1de933(this,_0x4b088a(0x1b1),!0x1),(this['_configService']=_0x5974f3,this[_0x4b088a(0x52e)]=_0x14e3d9,this[_0x4b088a(0x318)]=_0x5085d9,this[_0x4b088a(0x2c7)]=_0x5d1e92,this[_0x4b088a(0x38e)]=_0x10c26c,this[_0x4b088a(0x3b1)]());}[_0x3e84f8(0x436)](){const _0xb60015=_0x3e84f8;this[_0xb60015(0x1b1)]=!0x0;}['enableLocalCache'](){const _0x551b7f=_0x3e84f8;this[_0x551b7f(0x1b1)]=!0x1;}[_0x3e84f8(0x231)](){const _0x4d778b=_0x3e84f8;this[_0x4d778b(0x521)]()[_0x4d778b(0x504)](()=>super[_0x4d778b(0x231)]());}async[_0x3e84f8(0x1d5)](_0x1bfff9){const _0xa74683=_0x3e84f8;return this[_0xa74683(0x1b1)]?null:this[_0xa74683(0x52e)][_0xa74683(0x1c5)](_0x144825(_0x1bfff9));}async['saveOfflineData'](_0x5f198e,_0x6c7a8b){const _0x7633e5=_0x3e84f8;return!!this[_0x7633e5(0x52e)]['setItem'](_0x5f198e,_0x6c7a8b);}['updateOfflineData'](_0x3444d7,_0xfb30a2,_0x1e3221,_0x39701b){const _0x464296=_0x3e84f8,_0x1b7d8c=this[_0x464296(0x38e)][_0x464296(0x178)](_0x3444d7);this[_0x464296(0x42c)][_0x464296(0x1b8)](_0x3444d7,{'unitID':_0x3444d7,'type':_0xfb30a2,'awaitingChangeset':_0x1e3221,'mutations':_0x39701b,'rev':_0x1b7d8c}),this['_saveTaskMap']['has'](_0x3444d7)||this[_0x464296(0x42f)](_0x3444d7);}[_0x3e84f8(0x42f)](_0xbb5e4c){const _0x97be0e=_0x3e84f8,_0x1dbc98=this[_0x97be0e(0x1ca)]();_0x1dbc98===0x0?this[_0x97be0e(0x203)](_0xbb5e4c):this[_0x97be0e(0x41f)][_0x97be0e(0x1b8)](_0xbb5e4c,setTimeout(()=>this['_saveCache'](_0xbb5e4c),_0x1dbc98));}[_0x3e84f8(0x1ca)](){const _0xac4202=_0x3e84f8;var _0xd70ca5;return(_0xd70ca5=this[_0xac4202(0x466)][_0xac4202(0x22e)](_0x55047c))!=null?_0xd70ca5:0x3e8;}[_0x3e84f8(0x203)](_0x3b1f3a){const _0x3cb54d=_0x3e84f8,_0x16ed1e=this['_saveTaskMap'][_0x3cb54d(0x4af)](_0x3b1f3a);return _0x16ed1e!==void 0x0&&window[_0x3cb54d(0x24d)](_0x16ed1e),this[_0x3cb54d(0x52e)][_0x3cb54d(0x177)](_0x144825(_0x3b1f3a),this['_cachedData'][_0x3cb54d(0x4af)](_0x3b1f3a))[_0x3cb54d(0x504)](()=>this[_0x3cb54d(0x41f)][_0x3cb54d(0x531)](_0x3b1f3a));}async[_0x3e84f8(0x521)](){const _0x30bfdf=_0x3e84f8,_0x182b79=[];this[_0x30bfdf(0x41f)][_0x30bfdf(0x306)]((_0x2d2e37,_0x227994)=>{const _0xeefb6d=_0x30bfdf;window[_0xeefb6d(0x24d)](_0x2d2e37),_0x182b79[_0xeefb6d(0x434)](this[_0xeefb6d(0x203)](_0x227994)['then'](()=>{const _0x30274e=_0xeefb6d;this[_0x30274e(0x41f)][_0x30274e(0x531)](_0x227994);}));}),await Promise['all'](_0x182b79);}[_0x3e84f8(0x3b1)](){const _0x37791f=_0x3e84f8;this[_0x37791f(0x4ed)](this[_0x37791f(0x318)][_0x37791f(0x1c0)](()=>{const _0x1b7a3e=_0x37791f;if(this['_saveTaskMap'][_0x1b7a3e(0x28b)])return this[_0x1b7a3e(0x2c7)]['t'](_0x1b7a3e(0x40d));}));}},_0x2509f1['LocalCacheService']=_0x52f689([_0x11682c(0x0,_0x3eca57[_0x3e84f8(0x25c)]),_0x11682c(0x1,_0x3eca57[_0x3e84f8(0x392)]),_0x11682c(0x2,_0x2ede89[_0x3e84f8(0x220)]),_0x11682c(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x11682c(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)]))],_0x2509f1[_0x3e84f8(0x373)]);function _0x144825(_0x340879){const _0x1a9f1c=_0x3e84f8;return _0x1a9f1c(0x2c5)+_0x340879;}var _0x14fb21=Object[_0x3e84f8(0x243)],_0x591908=Object[_0x3e84f8(0x439)],_0xbbafa5=(_0x2bad3f,_0x30b181,_0x1a7411,_0xf3d99c)=>{const _0x8b10b9=_0x3e84f8;for(var _0x4d01e2=_0xf3d99c>0x1?void 0x0:_0xf3d99c?_0x591908(_0x30b181,_0x1a7411):_0x30b181,_0x15648c=_0x2bad3f[_0x8b10b9(0x1a6)]-0x1,_0x2e9eec;_0x15648c>=0x0;_0x15648c--)(_0x2e9eec=_0x2bad3f[_0x15648c])&&(_0x4d01e2=(_0xf3d99c?_0x2e9eec(_0x30b181,_0x1a7411,_0x4d01e2):_0x2e9eec(_0x4d01e2))||_0x4d01e2);return _0xf3d99c&&_0x4d01e2&&_0x14fb21(_0x30b181,_0x1a7411,_0x4d01e2),_0x4d01e2;},_0xafd83=(_0x29de47,_0x34b72d)=>(_0x46f4df,_0x17d6c7)=>_0x34b72d(_0x46f4df,_0x17d6c7,_0x29de47);function _0x2afc8d(_0x1ef8ef){const _0x169334=_0x3e84f8,{unitID:_0x2caa7f,mutations:_0x351621}=_0x1ef8ef;return{'unitId':_0x2caa7f,'subUnitId':_0x351621[0x0][_0x169334(0x522)]['subUnitId']};}let _0x322a21=class{constructor(_0x560e60,_0x244b14,_0x3dd8a4){this['_injector']=_0x560e60,this['_transformService']=_0x244b14,this['_instanceService']=_0x3dd8a4;}['transformSelections'](_0x58985e){const _0x1e74b1=_0x3e84f8;var _0x3a38cc,_0xda9287,_0xc42cf9,_0x4be2a3,_0xc9473a;const _0x1055fc=this['_injector'][_0x1e74b1(0x4af)](_0x9f218b['SheetsSelectionsService']),{unitId:_0x19176f,subUnitId:_0x14a4d2}=_0x2afc8d(_0x58985e),_0x1a4e84=_0x1055fc['getWorkbookSelections'](_0x19176f)[_0x1e74b1(0x301)](),_0x9f457b=(_0xda9287=(_0x3a38cc=this['_instanceService']['getUnit'](_0x19176f))==null?void 0x0:_0x3a38cc['getActiveSheet']())==null?void 0x0:_0xda9287[_0x1e74b1(0x302)]();if(_0x1a4e84[_0x1e74b1(0x1a6)]===0x0||!_0x19176f||!_0x14a4d2)return;const _0x47ca90=[{'id':_0x9f218b[_0x1e74b1(0x248)]['id'],'params':{'unitId':_0x19176f,'subUnitId':_0x9f457b,'selections':_0x3eca57[_0x1e74b1(0x21e)][_0x1e74b1(0x265)](_0x1a4e84)}}],_0x4fcc7f=this[_0x1e74b1(0x263)][_0x1e74b1(0x27b)](_0x58985e,_0x47ca90);if(!_0x1474a0['isTransformMutationsWithChangesetSuccess'](_0x4fcc7f))throw _0x4fcc7f[_0x1e74b1(0x543)];const _0x47e380=(_0xc9473a=(_0x4be2a3=(_0xc42cf9=_0x4fcc7f[_0x1e74b1(0x3da)][0x0])==null?void 0x0:_0xc42cf9[_0x1e74b1(0x522)])==null?void 0x0:_0x4be2a3[_0x1e74b1(0x406)])!=null?_0xc9473a:_0x1a4e84;Array[_0x1e74b1(0x4f1)](_0x47e380)&&_0x47e380[_0x1e74b1(0x1a6)]&&this[_0x1e74b1(0x249)][_0x1e74b1(0x4af)](_0x3eca57[_0x1e74b1(0x2b3)])[_0x1e74b1(0x17c)](_0x9f218b[_0x1e74b1(0x248)]['id'],{'unitId':_0x19176f,'subUnitId':_0x14a4d2,'selections':_0x47e380});}};_0x322a21=_0xbbafa5([_0xafd83(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0xafd83(0x1,_0x1474a0[_0x3e84f8(0x3aa)]),_0xafd83(0x2,_0x3eca57['IUniverInstanceService'])],_0x322a21);const _0x39225f=_0x3eca57[_0x3e84f8(0x251)]('univer-pro.collaboration-client.single-active-unit-service');var _0x25e60f=(_0x45867b=>(_0x45867b[_0x45867b['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3e84f8(0x4c1),_0x45867b[_0x45867b[_0x3e84f8(0x3d3)]=0x1]=_0x3e84f8(0x3d3),_0x45867b))(_0x25e60f||{});const _0x5c56c2=0x7530,_0x5d8ef3='ACTIVE_UNIT_EVENT_CHANNEL';class _0x1bad77 extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(){const _0x302c57=_0x3e84f8;super(),_0x1de933(this,_0x302c57(0x473),_0x3eca57[_0x302c57(0x21e)][_0x302c57(0x489)]()),_0x1de933(this,'_selfUnitIDs',new Set()),_0x1de933(this,_0x302c57(0x413),new Map()),_0x1de933(this,_0x302c57(0x279),null),_0x1de933(this,_0x302c57(0x139),new Map()),_0x1de933(this,_0x302c57(0x30e),new Map()),this[_0x302c57(0x176)]();}[_0x3e84f8(0x231)](){const _0x382191=_0x3e84f8;super[_0x382191(0x231)](),this[_0x382191(0x139)]['forEach']((_0x5ddb5b,_0x5ac5e3)=>this[_0x382191(0x23d)](_0x5ac5e3)),this[_0x382191(0x279)]&&window[_0x382191(0x223)](this[_0x382191(0x279)]);}[_0x3e84f8(0x27e)](_0x14b5e4){const _0x2ff470=_0x3e84f8;return this['_ensureSubject'](_0x14b5e4)['pipe'](_0x199df4[_0x2ff470(0x1bd)]());}[_0x3e84f8(0x4e6)](_0x1df912){const _0x420fb7=_0x3e84f8;this[_0x420fb7(0x379)][_0x420fb7(0x28b)]===0x0&&this[_0x420fb7(0x167)](),this['_selfUnitIDs'][_0x420fb7(0x44d)](_0x1df912),this[_0x420fb7(0x420)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1df912],'isForwarded':!0x1});}[_0x3e84f8(0x15e)](_0x185b50){const _0x1eb714=_0x3e84f8;this[_0x1eb714(0x379)]['delete'](_0x185b50),this[_0x1eb714(0x379)][_0x1eb714(0x28b)]===0x0&&this[_0x1eb714(0x279)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x3e84f8(0x176)](){const _0x48716b=_0x3e84f8;this[_0x48716b(0x4ed)](_0x3eca57[_0x48716b(0x340)](_0x199df4[_0x48716b(0x197)](window,_0x48716b(0x366))[_0x48716b(0x4da)](_0x32f4ef=>{const _0x519ac0=_0x48716b;if(_0x32f4ef[_0x519ac0(0x16c)]!==_0x5d8ef3||!_0x32f4ef[_0x519ac0(0x3dc)])return;const _0x190621=JSON[_0x519ac0(0x47a)](_0x32f4ef[_0x519ac0(0x3dc)]);this[_0x519ac0(0x418)](_0x190621);}))),window['addEventListener'](_0x48716b(0x46c),()=>this[_0x48716b(0x420)]({'type':0x1,'memberID':this[_0x48716b(0x473)],'unitIDs':Array[_0x48716b(0x41e)](this[_0x48716b(0x379)])}));}[_0x3e84f8(0x418)](_0x272c15){const _0x9ed315=_0x3e84f8;switch(_0x272c15[_0x9ed315(0x4c9)]){case 0x0:this[_0x9ed315(0x408)](_0x272c15);break;case 0x1:this[_0x9ed315(0x4fa)](_0x272c15);break;case 0x2:this['_handleHeartbeatEvent'](_0x272c15);break;}}['_handleJoinEvent'](_0x42f64c){const _0xd2ce85=_0x3e84f8,{unitIDs:_0x4b62e8,memberID:_0x526718,isForwarded:_0x4d94b8}=_0x42f64c;_0x4b62e8[_0xd2ce85(0x306)](_0x611f9e=>{const _0x7b3865=_0xd2ce85;if(!_0x4d94b8&&this['_unitOnClients']['has'](_0x611f9e)&&this[_0x7b3865(0x2e0)](_0x611f9e)[_0x7b3865(0x2d2)](0x1),!this[_0x7b3865(0x413)][_0x7b3865(0x2a7)](_0x611f9e)||!this[_0x7b3865(0x413)][_0x7b3865(0x4af)](_0x611f9e)[_0x7b3865(0x2a7)](_0x526718)){const _0x1f8fc3=this[_0x7b3865(0x413)]['get'](_0x611f9e)||new Set();_0x1f8fc3[_0x7b3865(0x44d)](_0x526718),this[_0x7b3865(0x413)]['set'](_0x611f9e,_0x1f8fc3),this['_scheduleClearOtherTimer'](_0x526718);}}),_0x4d94b8||this[_0xd2ce85(0x420)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xd2ce85(0x379)]],'isForwarded':!0x0});}[_0x3e84f8(0x128)](_0x33c5da){const _0xb95003=_0x3e84f8;this[_0xb95003(0x23d)](_0x33c5da);const _0x286456=window['setTimeout'](()=>{const _0x579983=_0xb95003;this[_0x579983(0x413)][_0x579983(0x306)](_0x2e270e=>{const _0x3bc980=_0x579983;_0x2e270e[_0x3bc980(0x531)](_0x33c5da);});},_0x5c56c2*0x2);this[_0xb95003(0x139)][_0xb95003(0x1b8)](_0x33c5da,_0x286456);}[_0x3e84f8(0x23d)](_0x512e9c){const _0x39ce9b=_0x3e84f8;if(this['_clearOtherTimers']['has'](_0x512e9c)){const _0x3a293d=this[_0x39ce9b(0x139)]['get'](_0x512e9c);_0x3a293d&&window[_0x39ce9b(0x24d)](_0x3a293d),this[_0x39ce9b(0x139)][_0x39ce9b(0x1b8)](_0x512e9c,null);}}['_handleLeaveEvent'](_0x517069){const _0xbdf052=_0x3e84f8,{memberID:_0x252695,unitIDs:_0x3f21d5}=_0x517069;_0x3f21d5[_0xbdf052(0x306)](_0x4219b3=>{const _0x504691=_0xbdf052;var _0x7fc5fe;const _0x12a459=this[_0x504691(0x413)][_0x504691(0x4af)](_0x4219b3);_0x12a459&&(_0x12a459[_0x504691(0x531)](_0x252695),(_0x7fc5fe=this[_0x504691(0x2e0)](_0x4219b3))==null||_0x7fc5fe['next'](_0x12a459[_0x504691(0x28b)]===0x0?0x0:0x1));}),this[_0xbdf052(0x23d)](_0x252695);}[_0x3e84f8(0x1bc)](_0x49e5a9){const _0x1c16d5=_0x3e84f8;this[_0x1c16d5(0x128)](_0x49e5a9['memberID']);}[_0x3e84f8(0x420)](_0x54963b){const _0x6bf876=_0x3e84f8;localStorage[_0x6bf876(0x177)](_0x5d8ef3,JSON[_0x6bf876(0x2ee)](_0x54963b));}['_scheduleHeartbeat'](){const _0x4e1e96=_0x3e84f8;this[_0x4e1e96(0x279)]=window[_0x4e1e96(0x449)](()=>{const _0xd588e3=_0x4e1e96;this[_0xd588e3(0x420)]({'type':0x2,'memberID':this['_id']});},_0x5c56c2);}[_0x3e84f8(0x2e0)](_0x353fed){const _0x370441=_0x3e84f8;return this[_0x370441(0x30e)][_0x370441(0x2a7)](_0x353fed)||this[_0x370441(0x30e)]['set'](_0x353fed,new _0x199df4[(_0x370441(0x244))](0x0)),this['_unitStatus']['get'](_0x353fed);}}function _0x2d22be(_0x3b725){const _0x19525f=_0x3e84f8;let _0xbb678b='';for(const _0x17fe3f of _0x3b725){const {startOffset:_0x22623d,endOffset:_0x2d9375,isActive:_0x5376ce}=_0x17fe3f;_0xbb678b[_0x19525f(0x1a6)]&&(_0xbb678b+=','),_0xbb678b+=_0x22623d+':'+_0x2d9375+':'+(_0x5376ce?'1':'0');}return _0xbb678b;}function _0x17e635(_0xf68e59){const _0x2296f2=_0x3e84f8,_0x58db9b=_0xf68e59['split'](','),_0x1cae2a=[];for(const _0x3caa4c of _0x58db9b){const [_0xc44fff,_0x1302f1,_0x4842fc]=_0x3caa4c[_0x2296f2(0x389)](':');_0x1cae2a[_0x2296f2(0x434)]({'startOffset':Number(_0xc44fff),'endOffset':Number(_0x1302f1),'collapsed':_0xc44fff===_0x1302f1,'isActive':_0x4842fc==='1'});}return _0x1cae2a[_0x2296f2(0x270)](_0xb8a0b0=>_0xb8a0b0['isActive'])||(_0x1cae2a[0x0]['isActive']=!0x0),_0x1cae2a;}class _0x2436eb extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(){const _0x38386a=_0x3e84f8;super(...arguments),_0x1de933(this,_0x38386a(0x415),new _0x199df4['BehaviorSubject'](null)),_0x1de933(this,_0x38386a(0x3c1),this[_0x38386a(0x415)][_0x38386a(0x183)]());}['syncEditingCollabCursor'](_0x3a74b8){const _0x5dca99=_0x3e84f8,{unitID:_0x565afa,memberID:_0x258575,textRanges:_0x324797}=_0x3a74b8,_0x6e4bb4=_0x2d22be(_0x324797),_0x5b00c5={'unitID':_0x565afa,'memberID':_0x258575,'selection':_0x6e4bb4};this[_0x5dca99(0x415)]['next'](_0x5b00c5);}}var _0x4cb80f=Object[_0x3e84f8(0x243)],_0x244476=Object[_0x3e84f8(0x439)],_0x23bf96=(_0x2291f9,_0x429101,_0x29d92a,_0x241523)=>{const _0x4e21c2=_0x3e84f8;for(var _0x289159=_0x241523>0x1?void 0x0:_0x241523?_0x244476(_0x429101,_0x29d92a):_0x429101,_0x152e50=_0x2291f9[_0x4e21c2(0x1a6)]-0x1,_0xcdd2f5;_0x152e50>=0x0;_0x152e50--)(_0xcdd2f5=_0x2291f9[_0x152e50])&&(_0x289159=(_0x241523?_0xcdd2f5(_0x429101,_0x29d92a,_0x289159):_0xcdd2f5(_0x289159))||_0x289159);return _0x241523&&_0x289159&&_0x4cb80f(_0x429101,_0x29d92a,_0x289159),_0x289159;},_0x1c824c=(_0x4e06b5,_0x239df2)=>(_0x4c5ee3,_0x121966)=>_0x239df2(_0x4c5ee3,_0x121966,_0x4e06b5);let _0x1fbfda=class{constructor(_0x30c456,_0xb15bcf){const _0x2ce444=_0x3e84f8;this[_0x2ce444(0x249)]=_0x30c456,this[_0x2ce444(0x263)]=_0xb15bcf;}[_0x3e84f8(0x537)](_0x223433){const _0x388a0c=_0x3e84f8;var _0x3bfcc2;const _0x30f788=this[_0x388a0c(0x249)]['get'](_0x5a15a4[_0x388a0c(0x247)]),_0x2bfa28=(_0x3bfcc2=_0x30f788[_0x388a0c(0x2f5)]())!=null?_0x3bfcc2:[];if(_0x2bfa28['length']===0x0)return;const _0xf8f89f=[{'id':_0x388a0c(0x506),'params':{'unitId':_0x223433[_0x388a0c(0x13f)],'actions':null,'textRanges':_0x2bfa28}}],_0x5aef07=this['_transformService'][_0x388a0c(0x27b)](_0x223433,_0xf8f89f);if(!_0x1474a0['isTransformMutationsWithChangesetSuccess'](_0x5aef07))throw _0x5aef07[_0x388a0c(0x543)];const _0x573eea=_0x5aef07[_0x388a0c(0x3da)][0x0]['params']['textRanges'];Array[_0x388a0c(0x4f1)](_0x573eea)&&_0x573eea['length']&&_0x30f788[_0x388a0c(0x348)](_0x573eea,!0x1);}};_0x1fbfda=_0x23bf96([_0x1c824c(0x0,_0x3eca57['Inject'](_0x3eca57['Injector'])),_0x1c824c(0x1,_0x1474a0[_0x3e84f8(0x3aa)])],_0x1fbfda);const _0x2ebfc7=new Set([_0x9f218b[_0x3e84f8(0x32b)]['id']]);function _0x14af56(_0x3120e9,_0x77e837,_0x59ecc4,_0x420dac,_0x4e5630){const _0x349f07=_0x3e84f8;var _0x10dcc4,_0x301297,_0xeea1a6,_0x2596a6;const _0x45c31d=[];for(const _0x4d5e88 of _0x3120e9)if(_0x2ebfc7['has'](_0x4d5e88['id'])){if(_0x45c31d[_0x349f07(0x1a6)]>0x0)break;_0x45c31d[_0x349f07(0x434)](_0x4d5e88);break;}else _0x45c31d[_0x349f07(0x434)](_0x4d5e88);const _0x1eb19b=(_0x301297=(_0x10dcc4=_0x4e5630['getCurrentUser']())==null?void 0x0:_0x10dcc4['userID'])!=null?_0x301297:'unknown',_0xcfbe7=(_0x2596a6=(_0xeea1a6=_0x4e5630[_0x349f07(0x507)]())==null?void 0x0:_0xeea1a6[_0x349f07(0x1cb)])!=null?_0x2596a6:_0x349f07(0x4e0);return{'changeset':{'unitID':_0x77e837,'type':_0x1474a0[_0x349f07(0x3b0)](_0x59ecc4[_0x349f07(0x460)](_0x77e837)),'baseRev':_0x420dac['getCurrentRevForDocument'](_0x77e837),'revision':0x0,'userID':_0x1eb19b,'memberID':_0xcfbe7,'mutations':_0x45c31d},'pendingMutations':_0x3120e9[_0x349f07(0x4f4)](_0x45c31d[_0x349f07(0x1a6)])};}function _0x200bd1(_0x45fecf,_0x34aac0,_0x46e18a,_0x1c7af9,_0x9890ae){const _0x1f2bcf=_0x3e84f8;var _0x4f9fed,_0x18aa8c,_0xbfb22c,_0x40db34;const _0xad6613=[_0x45fecf[_0x1f2bcf(0x29a)]((_0x2f23c4,_0x2572a1)=>{const _0x560587=_0x1f2bcf;var _0x35a62a;const {id:_0x2a8b5f}=_0x2f23c4,{id:_0x343978,type:_0x2c55e2}=_0x2572a1,_0x5bf135=(_0x35a62a=_0x2f23c4[_0x560587(0x522)])!=null?_0x35a62a:{'actions':null},_0x203b4f=_0x2572a1[_0x560587(0x522)];if(_0x2a8b5f&&_0x2a8b5f!==_0x343978)throw new Error(_0x560587(0x419)+_0x2a8b5f+'\x20-\x20'+_0x343978+'.');return{..._0x2f23c4,'id':_0x343978,'type':_0x2c55e2,'params':{'unitId':_0x203b4f['unitId'],'textRanges':_0x203b4f['textRanges'],'actions':_0x3eca57[_0x560587(0x18c)][_0x560587(0x26e)](_0x5bf135[_0x560587(0x3f6)],_0x203b4f['actions'])}};},{})],_0x3645bc=(_0x18aa8c=(_0x4f9fed=_0x9890ae['getCurrentUser']())==null?void 0x0:_0x4f9fed[_0x1f2bcf(0x2c1)])!=null?_0x18aa8c:_0x1f2bcf(0x4e0),_0x11f848=(_0x40db34=(_0xbfb22c=_0x9890ae['getCurrentUser']())==null?void 0x0:_0xbfb22c[_0x1f2bcf(0x1cb)])!=null?_0x40db34:_0x1f2bcf(0x4e0);return{'changeset':{'unitID':_0x34aac0,'type':_0x1474a0[_0x1f2bcf(0x3b0)](_0x46e18a[_0x1f2bcf(0x460)](_0x34aac0)),'baseRev':_0x1c7af9[_0x1f2bcf(0x178)](_0x34aac0),'revision':0x0,'userID':_0x3645bc,'memberID':_0x11f848,'mutations':_0xad6613},'pendingMutations':[]};}const _0x528ed9={'id':_0x9f218b['EmptyMutation']['id'],'type':_0x3eca57[_0x3e84f8(0x32c)]['MUTATION'],'params':{}};var _0x793f6d=Object['defineProperty'],_0x4e7913=Object['getOwnPropertyDescriptor'],_0x17b63f=(_0x2c00ea,_0x3ead92,_0x4ec9b9,_0x588971)=>{const _0x3c6f32=_0x3e84f8;for(var _0x5707d8=_0x588971>0x1?void 0x0:_0x588971?_0x4e7913(_0x3ead92,_0x4ec9b9):_0x3ead92,_0x5e8687=_0x2c00ea[_0x3c6f32(0x1a6)]-0x1,_0x1b89d3;_0x5e8687>=0x0;_0x5e8687--)(_0x1b89d3=_0x2c00ea[_0x5e8687])&&(_0x5707d8=(_0x588971?_0x1b89d3(_0x3ead92,_0x4ec9b9,_0x5707d8):_0x1b89d3(_0x5707d8))||_0x5707d8);return _0x588971&&_0x5707d8&&_0x793f6d(_0x3ead92,_0x4ec9b9,_0x5707d8),_0x5707d8;},_0x66e8c4=(_0x1a82d1,_0x54dd15)=>(_0x57db21,_0x7ceaae)=>_0x54dd15(_0x57db21,_0x7ceaae,_0x1a82d1),_0x4bd68c=(_0x297a7c=>(_0x297a7c[_0x3e84f8(0x3c6)]=_0x3e84f8(0x4fe),_0x297a7c[_0x3e84f8(0x2f9)]=_0x3e84f8(0x1c1),_0x297a7c[_0x3e84f8(0x1ab)]=_0x3e84f8(0x3a3),_0x297a7c[_0x3e84f8(0x1a3)]=_0x3e84f8(0x456),_0x297a7c[_0x3e84f8(0x2ed)]=_0x3e84f8(0x39c),_0x297a7c[_0x3e84f8(0x384)]=_0x3e84f8(0x387),_0x297a7c['CONFLICT']=_0x3e84f8(0x1ff),_0x297a7c[_0x3e84f8(0x535)]='offline',_0x297a7c))(_0x4bd68c||{});class _0x3c556b{constructor(_0x574ffc,_0x58e07c,_0x2d4f9e,_0x52c2d7,_0x4663f5,_0x387c46,_0x227d79,_0x25b4e6,_0x5ef576){const _0x87006c=_0x3e84f8;_0x1de933(this,_0x87006c(0x4df),null),_0x1de933(this,_0x87006c(0x334),[]),(this[_0x87006c(0x13f)]=_0x574ffc,this['type']=_0x58e07c,this[_0x87006c(0x4be)]=_0x4663f5,this[_0x87006c(0x30a)]=_0x387c46,this[_0x87006c(0x1d9)]=_0x227d79,this['_revisionService']=_0x25b4e6,this[_0x87006c(0x442)]=_0x5ef576,this['_awaitingChangeset']=_0x2d4f9e,this[_0x87006c(0x334)]=_0x52c2d7);}[_0x3e84f8(0x395)](_0x390775){const _0x7fe952=_0x3e84f8,_0x5298a3=this[_0x7fe952(0x38e)]['getCurrentRevForDocument'](this[_0x7fe952(0x13f)]);return _0x390775['revision']>_0x5298a3+0x1?(this['_handler'][_0x7fe952(0x375)]({'from':_0x5298a3,'to':_0x390775['revision']-0x1}),!0x0):!0x1;}[_0x3e84f8(0x4ad)](_0x27e4e0){const _0x30a267=_0x3e84f8;this[_0x30a267(0x1d9)][_0x30a267(0x538)](this[_0x30a267(0x13f)],_0x27e4e0);}[_0x3e84f8(0x207)](_0x3c3501){const _0x4b66c7=_0x3e84f8;var _0x12fb1d,_0x576a06;(_0x576a06=(_0x12fb1d=this[_0x4b66c7(0x4be)])[_0x4b66c7(0x30b)])==null||_0x576a06[_0x4b66c7(0x48c)](_0x12fb1d,_0x3c3501);}[_0x3e84f8(0x1dd)](_0x25129d){const _0x5b3949=_0x3e84f8;var _0x484bc3,_0x568c45;return(_0x568c45=(_0x484bc3=this['_handler'])['onTransformIME'])==null?void 0x0:_0x568c45[_0x5b3949(0x48c)](_0x484bc3,_0x25129d);}[_0x3e84f8(0x461)](_0x1dae7b){const _0x52994f=_0x3e84f8;var _0x60a754,_0x2c8549,_0x25f25e;return(_0x25f25e=(_0x2c8549=(_0x60a754=this[_0x52994f(0x4be)])[_0x52994f(0x4e5)])==null?void 0x0:_0x2c8549['call'](_0x60a754,_0x1dae7b))!=null?_0x25f25e:_0x1dae7b;}[_0x3e84f8(0x23c)](_0x31c9f1){const _0x236394=_0x3e84f8;var _0x589898,_0x529b81;if(this[_0x236394(0x4c9)]===_0x588a36[_0x236394(0x269)]){const {unitID:_0x3d1790,mutations:_0x26035f,memberID:_0x272d7c}=_0x31c9f1,_0x236e8a=_0x26035f[0x0][_0x236394(0x522)][_0x236394(0x1a1)];Array[_0x236394(0x4f1)](_0x236e8a)&&_0x236e8a[_0x236394(0x1a6)]>0x0&&((_0x529b81=(_0x589898=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x529b81[_0x236394(0x48c)](_0x589898,{'unitID':_0x3d1790,'memberID':_0x272d7c,'textRanges':_0x236e8a}));}}[_0x3e84f8(0x170)](){const _0x1311bb=_0x3e84f8;this[_0x1311bb(0x442)][_0x1311bb(0x344)](this[_0x1311bb(0x13f)],this[_0x1311bb(0x4c9)],this['_awaitingChangeset'],this[_0x1311bb(0x334)]);}['_getCurrentRevision'](){const _0x1fde57=_0x3e84f8;return this[_0x1fde57(0x38e)][_0x1fde57(0x178)](this[_0x1fde57(0x13f)]);}['_incrementRevisionNumber'](){const _0x3b4b76=_0x3e84f8;this[_0x3b4b76(0x38e)][_0x3b4b76(0x266)](this['unitID']);}['_executeRemoteChangeset'](_0x4ac9ab){const _0x4ceebf=_0x3e84f8;var _0x39d599;const _0x1af30b=this['_transformRemoteChangesetByIMECache'](_0x4ac9ab),_0x1e2d47=_0x3eca57[_0x4ceebf(0x491)](_0x1af30b['mutations'],this[_0x4ceebf(0x30a)],{'fromCollab':!0x0});if(!_0x1e2d47[_0x4ceebf(0x476)])throw _0x1e2d47['error']instanceof Error?_0x1e2d47[_0x4ceebf(0x543)]:new Error((_0x39d599=_0x1e2d47[_0x4ceebf(0x543)])!=null?_0x39d599:_0x4ceebf(0x459));this['_transformIMECache'](_0x1af30b),this[_0x4ceebf(0x4ad)](_0x4ac9ab),this[_0x4ceebf(0x207)](_0x1af30b),this['_syncEditingCollabCursor'](_0x1af30b),this[_0x4ceebf(0x422)]();}}let _0x400828=class extends _0x3c556b{constructor(_0x101c90,_0xd921bb,_0x473662,_0x266b2e,_0x362b26,_0x385af3,_0x3c7bd3,_0x19ad99,_0x200f31,_0x4f5dc6){const _0x15878a=_0x3e84f8;super(_0x101c90,_0xd921bb,null,[],_0x473662,_0x19ad99,_0x3c7bd3,_0x266b2e,_0x362b26),_0x1de933(this,_0x15878a(0x169),_0x15878a(0x1c1)),(this['_injector']=_0x385af3,this[_0x15878a(0x31d)]=_0x200f31,this[_0x15878a(0x263)]=_0x4f5dc6);}['appendMutation'](_0x471e4d){const _0x52e65=_0x3e84f8,_0xd2fd86=this['_injector'][_0x52e65(0x2b5)](_0x5f5d23,this[_0x52e65(0x13f)],this[_0x52e65(0x4c9)],[_0x471e4d],this['_handler']);return _0xd2fd86[_0x52e65(0x3b5)](),_0xd2fd86[_0x52e65(0x170)](),_0xd2fd86;}[_0x3e84f8(0x2e3)](_0x411233){const _0x49df76=_0x3e84f8;if(this[_0x49df76(0x395)](_0x411233))return this[_0x49df76(0x249)]['createInstance'](_0x3d21ae,this[_0x49df76(0x13f)],this['type'],null,[],null,[_0x411233],this[_0x49df76(0x4be)]);try{const _0x99cf6c=this[_0x49df76(0x263)][_0x49df76(0x27b)](_0x411233,[_0x528ed9]);if(_0x1474a0[_0x49df76(0x1df)](_0x99cf6c)){const {c1Prime:_0x3e246c}=_0x99cf6c;return this[_0x49df76(0x47d)](_0x3e246c),this;}throw _0x99cf6c['error'];}catch(_0x28b2a8){return this[_0x49df76(0x31d)][_0x49df76(0x543)](_0x28b2a8),this[_0x49df76(0x48a)](!0x1);}}['_onConflict'](_0x379bdd){const _0x402f91=_0x3e84f8;return this[_0x402f91(0x249)][_0x402f91(0x2b5)](_0x35c7cc,this[_0x402f91(0x13f)],this[_0x402f91(0x4c9)],null,[],this[_0x402f91(0x4be)],_0x379bdd);}[_0x3e84f8(0x51b)](){const _0x45ae45=_0x3e84f8;throw new Error(_0x45ae45(0x217));}[_0x3e84f8(0x4d9)](){const _0xa47771=_0x3e84f8;throw new Error(_0xa47771(0x23f));}[_0x3e84f8(0x2e8)](){const _0x4a221d=_0x3e84f8;return this[_0x4a221d(0x249)][_0x4a221d(0x2b5)](_0x3f060c,this['unitID'],this[_0x4a221d(0x4c9)],null,[],this[_0x4a221d(0x4be)]);}[_0x3e84f8(0x333)](){return this;}[_0x3e84f8(0x23e)](){const _0xdcf8ef=_0x3e84f8;throw new Error(_0xdcf8ef(0x3b2));}['fetchMiss'](){const _0x3169a7=_0x3e84f8,_0x43af52=this[_0x3169a7(0x38e)][_0x3169a7(0x178)](this[_0x3169a7(0x13f)]);return this[_0x3169a7(0x4be)][_0x3169a7(0x375)]({'from':_0x43af52,'to':0x0}),this[_0x3169a7(0x249)]['createInstance'](_0x3d21ae,this[_0x3169a7(0x13f)],this[_0x3169a7(0x4c9)],null,[],null,[],this[_0x3169a7(0x4be)]);}};_0x400828=_0x17b63f([_0x66e8c4(0x3,_0x3eca57['Inject'](_0x1474a0['RevisionService'])),_0x66e8c4(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1['LocalCacheService'])),_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x33f)]),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0x9,_0x1474a0[_0x3e84f8(0x3aa)])],_0x400828);let _0x5f5d23=class extends _0x3c556b{constructor(_0x7e923c,_0x3fa4eb,_0x3ff6ae,_0x25c654,_0x33bb3b,_0x25d341,_0x5cede5,_0x3cbbba,_0xe7636c,_0x3b2445,_0x5f5389,_0x337937,_0x4bebfd,_0x2ed4f3){const _0x23a8a4=_0x3e84f8;super(_0x7e923c,_0x3fa4eb,null,_0x3ff6ae,_0x25c654,_0x3b2445,_0x2ed4f3,_0x25d341,_0x5cede5),_0x1de933(this,_0x23a8a4(0x169),_0x23a8a4(0x3a3)),_0x1de933(this,_0x23a8a4(0x4ba),null),_0x1de933(this,_0x23a8a4(0x45f),null),(this[_0x23a8a4(0x249)]=_0x33bb3b,this[_0x23a8a4(0x1ec)]=_0x3cbbba,this[_0x23a8a4(0x31d)]=_0xe7636c,this[_0x23a8a4(0x466)]=_0x5f5389,this[_0x23a8a4(0x263)]=_0x337937,this['_univerInstanceService']=_0x4bebfd);}[_0x3e84f8(0x1f0)](_0x5a51b3){const _0x38180e=_0x3e84f8;return this[_0x38180e(0x334)][_0x38180e(0x434)](_0x5a51b3),this[_0x38180e(0x170)](),this;}['onRemoteChangeset'](_0x219f4c){const _0x5e855c=_0x3e84f8;if(this[_0x5e855c(0x395)](_0x219f4c))return this[_0x5e855c(0x2bd)](),this['_injector'][_0x5e855c(0x2b5)](_0x3d21ae,this[_0x5e855c(0x13f)],this[_0x5e855c(0x4c9)],null,this[_0x5e855c(0x334)],null,[_0x219f4c],this[_0x5e855c(0x4be)]);try{const _0x45330b=this[_0x5e855c(0x263)][_0x5e855c(0x27b)](_0x219f4c,this[_0x5e855c(0x334)]);if(_0x1474a0[_0x5e855c(0x1df)](_0x45330b)){const {c1Prime:_0x41a3b7,m2Prime:_0x4874e9}=_0x45330b;this[_0x5e855c(0x47d)](_0x41a3b7);const _0x1a5fc6=this[_0x5e855c(0x249)][_0x5e855c(0x2b5)](_0x5f5d23,this[_0x5e855c(0x13f)],this[_0x5e855c(0x4c9)],_0x4874e9,this[_0x5e855c(0x4be)]);return this[_0x5e855c(0x2bd)](),_0x1a5fc6[_0x5e855c(0x3b5)](this[_0x5e855c(0x4ba)]?Math[_0x5e855c(0x1eb)](0x0,new Date()[_0x5e855c(0x3d1)]()-this[_0x5e855c(0x4ba)]):this[_0x5e855c(0x427)]()),_0x1a5fc6;}throw _0x45330b[_0x5e855c(0x543)];}catch(_0x41af70){return this['_logService'][_0x5e855c(0x543)](_0x41af70),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x26906e=_0x3e84f8;throw new Error(_0x26906e(0x37d));}[_0x3e84f8(0x4d9)](){const _0x3d149d=_0x3e84f8;throw new Error(_0x3d149d(0x3f8));}['toggleOffline'](){const _0x23544f=_0x3e84f8;return this['_clearScheduledTask'](),this[_0x23544f(0x249)][_0x23544f(0x2b5)](_0x3f060c,this['unitID'],this[_0x23544f(0x4c9)],null,this[_0x23544f(0x334)],this['_handler']);}['toggleOnline'](){return this;}[_0x3e84f8(0x3b5)](_0x41850b){const _0x421127=_0x3e84f8,_0xfdd4ce=_0x41850b!=null?_0x41850b:this[_0x421127(0x427)]();this[_0x421127(0x4ba)]=new Date()[_0x421127(0x3d1)](),this['_sendingTimer']=window[_0x421127(0x315)](()=>{const _0x1889b3=_0x421127;this[_0x1889b3(0x2bd)]();let _0x3a2ab7=null;switch(this[_0x1889b3(0x4c9)]){case _0x588a36[_0x1889b3(0x28f)]:{_0x3a2ab7=_0x14af56(this[_0x1889b3(0x334)],this[_0x1889b3(0x13f)],this[_0x1889b3(0x339)],this[_0x1889b3(0x38e)],this[_0x1889b3(0x1ec)]);break;}case _0x588a36[_0x1889b3(0x269)]:{this[_0x1889b3(0x334)][_0x1889b3(0x293)](_0x4f3634=>_0x4f3634['id']===_0x5a15a4[_0x1889b3(0x495)]['id'])?_0x3a2ab7=_0x200bd1(this[_0x1889b3(0x334)],this[_0x1889b3(0x13f)],this[_0x1889b3(0x339)],this['_revisionService'],this['_memberService']):_0x3a2ab7=_0x14af56(this[_0x1889b3(0x334)],this['unitID'],this[_0x1889b3(0x339)],this['_revisionService'],this[_0x1889b3(0x1ec)]);break;}default:throw new Error(_0x1889b3(0x496)+this[_0x1889b3(0x4c9)]+_0x1889b3(0x320));}const {changeset:_0x110e3f,pendingMutations:_0x27567e}=_0x3a2ab7;this['_handler'][_0x1889b3(0x3e2)](_0x110e3f);const _0x3dbdc6=_0x27567e[_0x1889b3(0x1a6)]?this[_0x1889b3(0x249)][_0x1889b3(0x2b5)](_0x5018e3,this[_0x1889b3(0x13f)],this[_0x1889b3(0x4c9)],_0x110e3f,_0x27567e,this[_0x1889b3(0x4be)]):this[_0x1889b3(0x249)]['createInstance'](_0x22fd24,this[_0x1889b3(0x13f)],this[_0x1889b3(0x4c9)],_0x110e3f,this['_handler']);_0x3dbdc6[_0x1889b3(0x170)](),this[_0x1889b3(0x4be)][_0x1889b3(0x4f9)](this,_0x3dbdc6);},_0xfdd4ce);}[_0x3e84f8(0x427)](){const _0x37c092=_0x3e84f8;var _0x51439d;return(_0x51439d=this[_0x37c092(0x466)][_0x37c092(0x22e)](_0x3580e7))!=null?_0x51439d:0x7d0;}[_0x3e84f8(0x23e)](){const _0x492732=_0x3e84f8;throw new Error(_0x492732(0x17e));}[_0x3e84f8(0x2bd)](){const _0x3c8768=_0x3e84f8;this[_0x3c8768(0x45f)]!=null&&(clearTimeout(this[_0x3c8768(0x45f)]),this[_0x3c8768(0x45f)]=null);}[_0x3e84f8(0x48a)](_0xe65e51){const _0x5e0ad9=_0x3e84f8;return this[_0x5e0ad9(0x2bd)](),this['_injector'][_0x5e0ad9(0x2b5)](_0x35c7cc,this[_0x5e0ad9(0x13f)],this[_0x5e0ad9(0x4c9)],null,this[_0x5e0ad9(0x334)],this['_handler'],_0xe65e51);}};_0x5f5d23=_0x17b63f([_0x66e8c4(0x4,_0x3eca57['Inject'](_0x3eca57['Injector'])),_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x5df92e)),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0xa,_0x3eca57[_0x3e84f8(0x25c)]),_0x66e8c4(0xb,_0x1474a0[_0x3e84f8(0x3aa)]),_0x66e8c4(0xc,_0x3eca57[_0x3e84f8(0x2b1)]),_0x66e8c4(0xd,_0x3eca57[_0x3e84f8(0x33f)])],_0x5f5d23);let _0x22fd24=class extends _0x3c556b{constructor(_0x2efb0e,_0x2f7790,_0xa45e3f,_0x2ba5e4,_0x2d37b2,_0x34a164,_0x551598,_0x3a6e17,_0x4ab52b,_0x5ea894,_0x1e29f6){const _0x1ba069=_0x3e84f8;super(_0x2efb0e,_0x2f7790,_0xa45e3f,[],_0x2ba5e4,_0x3a6e17,_0x1e29f6,_0x34a164,_0x551598),_0x1de933(this,_0x1ba069(0x169),_0x1ba069(0x456)),(this[_0x1ba069(0x249)]=_0x2d37b2,this[_0x1ba069(0x31d)]=_0x4ab52b,this[_0x1ba069(0x263)]=_0x5ea894);}[_0x3e84f8(0x1f0)](_0x10b281){const _0x1dd200=_0x3e84f8,_0x57fb81=this[_0x1dd200(0x249)]['createInstance'](_0x5018e3,this['unitID'],this['type'],this[_0x1dd200(0x4df)],[_0x10b281],this['_handler']);return _0x57fb81[_0x1dd200(0x170)](),_0x57fb81;}[_0x3e84f8(0x2e3)](_0x12b867){const _0x1ec367=_0x3e84f8;if(this[_0x1ec367(0x395)](_0x12b867))return this[_0x1ec367(0x249)][_0x1ec367(0x2b5)](_0x3d21ae,this[_0x1ec367(0x13f)],this[_0x1ec367(0x4c9)],this['_awaitingChangeset'],[],null,[_0x12b867],this[_0x1ec367(0x4be)]);try{const _0x557b77=this[_0x1ec367(0x263)]['transformChangesets']([_0x12b867],[this['_awaitingChangeset']],!0x1);if(_0x1474a0['isTransformChangesetsSuccess'](_0x557b77)){const {c1Prime:_0x21a396,c2Prime:_0x173692}=_0x557b77;this['_executeRemoteChangeset'](_0x21a396[0x0]),_0x173692[0x0]['baseRev']=this[_0x1ec367(0x29b)]();const _0x5832ed=this[_0x1ec367(0x249)]['createInstance'](_0x22fd24,this[_0x1ec367(0x13f)],this[_0x1ec367(0x4c9)],_0x173692[0x0],this['_handler']);return _0x5832ed['_updateLocalCache'](),_0x5832ed;}return this[_0x1ec367(0x48a)](!0x1);}catch(_0x36ab90){return this[_0x1ec367(0x31d)][_0x1ec367(0x543)](_0x36ab90),this['_onConflict'](!0x1);}}[_0x3e84f8(0x51b)](_0x11c775){const _0x5f262c=_0x3e84f8,_0x20e48c=this[_0x5f262c(0x38e)][_0x5f262c(0x178)](this['unitID']);if(_0x11c775[_0x5f262c(0x118)]<_0x20e48c-0x1)return this;if(this[_0x5f262c(0x395)](_0x11c775))return this[_0x5f262c(0x249)][_0x5f262c(0x2b5)](_0x3d21ae,this['unitID'],this[_0x5f262c(0x4c9)],null,[],this[_0x5f262c(0x4df)],[],this[_0x5f262c(0x4be)]);this['_incrementRevisionNumber']();const _0x443c43=this['_injector'][_0x5f262c(0x2b5)](_0x400828,this[_0x5f262c(0x13f)],this['type'],this[_0x5f262c(0x4be)]);return _0x443c43[_0x5f262c(0x170)](),_0x443c43;}['onRemoteRej'](_0x2fbfd9){const _0x49ce3b=_0x3e84f8;return this[_0x49ce3b(0x48a)](!!(_0x2fbfd9!=null&&_0x2fbfd9[_0x49ce3b(0x429)]));}[_0x3e84f8(0x2e8)](){const _0x5602e8=_0x3e84f8;return this[_0x5602e8(0x249)][_0x5602e8(0x2b5)](_0x3f060c,this[_0x5602e8(0x13f)],this[_0x5602e8(0x4c9)],this['_awaitingChangeset'],[],this['_handler']);}[_0x3e84f8(0x333)](){return this;}[_0x3e84f8(0x23e)](){const _0x19989c=_0x3e84f8;this['_handler'][_0x19989c(0x3e2)](this[_0x19989c(0x4df)]);}[_0x3e84f8(0x48a)](_0xec8dce){const _0x60bf9=_0x3e84f8;return this[_0x60bf9(0x249)]['createInstance'](_0x35c7cc,this[_0x60bf9(0x13f)],this[_0x60bf9(0x4c9)],this['_awaitingChangeset'],[],this[_0x60bf9(0x4be)],_0xec8dce);}};_0x22fd24=_0x17b63f([_0x66e8c4(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0['RevisionService'])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0x9,_0x1474a0[_0x3e84f8(0x3aa)]),_0x66e8c4(0xa,_0x3eca57['IUndoRedoService'])],_0x22fd24);let _0x5018e3=class extends _0x3c556b{constructor(_0x43c0fd,_0x4dd1a0,_0x276971,_0xf5efd6,_0x3bb5ca,_0x3285da,_0x4a0305,_0x17839b,_0x125928,_0x26466d,_0x427a83,_0x41f8b3){const _0x48c5b6=_0x3e84f8;super(_0x43c0fd,_0x4dd1a0,_0x276971,_0xf5efd6,_0x3bb5ca,_0x125928,_0x41f8b3,_0x4a0305,_0x17839b),_0x1de933(this,_0x48c5b6(0x169),_0x48c5b6(0x39c)),(this[_0x48c5b6(0x249)]=_0x3285da,this['_logService']=_0x26466d,this[_0x48c5b6(0x263)]=_0x427a83);}[_0x3e84f8(0x1f0)](_0x2abcd7){return this['_pendingMutations']['push'](_0x2abcd7),this;}[_0x3e84f8(0x2e3)](_0x420e90){const _0x27be5f=_0x3e84f8;if(this[_0x27be5f(0x395)](_0x420e90))return this[_0x27be5f(0x249)][_0x27be5f(0x2b5)](_0x3d21ae,this[_0x27be5f(0x13f)],this['type'],this[_0x27be5f(0x4df)],this[_0x27be5f(0x334)],null,[_0x420e90],this[_0x27be5f(0x4be)]);try{const _0x27e8aa=this[_0x27be5f(0x263)][_0x27be5f(0x544)]([_0x420e90],[this[_0x27be5f(0x4df)]],!0x1);if(_0x1474a0['isTransformChangesetsSuccess'](_0x27e8aa)){const {c1Prime:_0x2ea8d4,c2Prime:_0x4d898d}=_0x27e8aa,_0x463ac0=this['_transformService'][_0x27be5f(0x27b)](_0x2ea8d4[0x0],this[_0x27be5f(0x334)]);if(_0x1474a0[_0x27be5f(0x1df)](_0x463ac0)){const {c1Prime:_0x6a32b0,m2Prime:_0x18cfa7}=_0x463ac0;return this[_0x27be5f(0x47d)](_0x6a32b0),_0x4d898d[0x0]['baseRev']=this[_0x27be5f(0x29b)](),this['_injector']['createInstance'](_0x5018e3,this['unitID'],this[_0x27be5f(0x4c9)],_0x4d898d[0x0],_0x18cfa7,this[_0x27be5f(0x4be)]);}throw _0x463ac0[_0x27be5f(0x543)];}throw _0x27e8aa['error'];}catch(_0x389c80){return this[_0x27be5f(0x31d)][_0x27be5f(0x543)](_0x389c80),this['_onConflict'](!0x1);}}[_0x3e84f8(0x51b)](_0x1d88c3){const _0x511530=_0x3e84f8;if(this[_0x511530(0x395)](_0x1d88c3))return this[_0x511530(0x249)]['createInstance'](_0x3d21ae,this['unitID'],this[_0x511530(0x4c9)],null,this['_pendingMutations'],this[_0x511530(0x4df)],[],this[_0x511530(0x4be)]);this[_0x511530(0x422)]();const _0x4cc073=this['_injector'][_0x511530(0x2b5)](_0x5f5d23,this[_0x511530(0x13f)],this['type'],this['_pendingMutations'],this[_0x511530(0x4be)]);return _0x4cc073[_0x511530(0x3b5)](),_0x4cc073['_updateLocalCache'](),_0x4cc073;}['onRemoteRej'](_0x4d34b7){const _0x46a6fd=_0x3e84f8;return this[_0x46a6fd(0x48a)](!!(_0x4d34b7!=null&&_0x4d34b7['isPermissionRej']));}[_0x3e84f8(0x2e8)](){const _0x383ab8=_0x3e84f8;return this['_injector'][_0x383ab8(0x2b5)](_0x3f060c,this['unitID'],this[_0x383ab8(0x4c9)],this[_0x383ab8(0x4df)],this[_0x383ab8(0x334)],this[_0x383ab8(0x4be)]);}['toggleOnline'](){return this;}[_0x3e84f8(0x23e)](){const _0x175e13=_0x3e84f8;this[_0x175e13(0x4be)][_0x175e13(0x3e2)](this[_0x175e13(0x4df)]);}[_0x3e84f8(0x48a)](_0x41cea9){const _0x250039=_0x3e84f8;return this[_0x250039(0x249)]['createInstance'](_0x35c7cc,this[_0x250039(0x13f)],this[_0x250039(0x4c9)],null,this[_0x250039(0x334)],this['_handler'],_0x41cea9);}};_0x5018e3=_0x17b63f([_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0xa,_0x1474a0[_0x3e84f8(0x3aa)]),_0x66e8c4(0xb,_0x3eca57[_0x3e84f8(0x33f)])],_0x5018e3);let _0x35c7cc=class extends _0x3c556b{constructor(_0x49d393,_0x4fb005,_0x46dd82,_0xfb0f6b,_0x1a3247,_0x5ef0f6=!0x1,_0xd5bc63,_0x1a757f,_0x1afea1,_0xcf9be7,_0x49ec2f,_0x131f8f,_0x360985){const _0x1653a1=_0x3e84f8;super(_0x49d393,_0x4fb005,_0x46dd82,_0xfb0f6b,_0x1a3247,_0x1a757f,_0x1afea1,_0x49ec2f,_0xcf9be7),_0x1de933(this,_0x1653a1(0x169),_0x1653a1(0x1ff)),(this[_0x1653a1(0x12a)]=_0x5ef0f6,this[_0x1653a1(0x28c)]=_0xd5bc63,this[_0x1653a1(0x2c7)]=_0x131f8f,this[_0x1653a1(0x2a4)]=_0x360985,this['_showConflictNotification'](),this[_0x1653a1(0x30d)](),this[_0x1653a1(0x47e)]());}[_0x3e84f8(0x1f0)](){return this;}[_0x3e84f8(0x2e3)](){return this;}['onRemoteAck'](){return this;}[_0x3e84f8(0x4d9)](){return this;}[_0x3e84f8(0x2e8)](){return this;}[_0x3e84f8(0x333)](){return this;}['resend'](){const _0xd211c7=_0x3e84f8;throw new Error(_0xd211c7(0x4f7));}[_0x3e84f8(0x30d)](){const _0x51debe=_0x3e84f8;this[_0x51debe(0x442)][_0x51debe(0x344)](this[_0x51debe(0x13f)],this['type'],null,[]);}[_0x3e84f8(0x2d3)](){const _0xfb65df=_0x3e84f8;this[_0xfb65df(0x12a)]?this['_notificationService'][_0xfb65df(0x3d5)]({'title':this[_0xfb65df(0x2c7)]['t']('permission.title'),'content':this[_0xfb65df(0x2c7)]['t'](_0xfb65df(0x3e1)),'type':_0xfb65df(0x543),'duration':0x0}):this[_0xfb65df(0x2a4)][_0xfb65df(0x3d5)]({'title':this[_0xfb65df(0x2c7)]['t'](_0xfb65df(0x182)),'content':this['_localeService']['t'](_0xfb65df(0x32e)),'type':_0xfb65df(0x543),'duration':0x0});}[_0x3e84f8(0x47e)](){const _0x3e4ec8=_0x3e84f8;this['_permissionService'][_0x3e4ec8(0x399)](new _0x9f218b[(_0x3e4ec8(0x336))](this[_0x3e4ec8(0x13f)])['id'],!0x1);}};_0x35c7cc=_0x17b63f([_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['IPermissionService'])),_0x66e8c4(0x7,_0x3eca57['ICommandService']),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x33f)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0xa,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0xb,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x66e8c4(0xc,_0x2ede89[_0x3e84f8(0x2b0)])],_0x35c7cc);let _0x3f060c=class extends _0x3c556b{constructor(_0xf22b10,_0x506ade,_0x2319ef,_0x482686,_0x5b1f6e,_0x14b92d,_0x16ccef,_0x5074ce,_0x43c8bf,_0x20873f){const _0x47b19d=_0x3e84f8;super(_0xf22b10,_0x506ade,_0x2319ef,_0x482686,_0x5b1f6e,_0x43c8bf,_0x20873f,_0x16ccef,_0x5074ce),_0x1de933(this,_0x47b19d(0x169),_0x47b19d(0x127)),this['_injector']=_0x14b92d;}['appendMutation'](_0x205a2e){const _0x3f8fd0=_0x3e84f8;return this['_pendingMutations'][_0x3f8fd0(0x434)](_0x205a2e),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x16f75d){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x3e84f8(0x4d9)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3e84f8(0x2e8)](){return this;}[_0x3e84f8(0x333)](){const _0x88c234=_0x3e84f8,{_injector:_0x5e02ab,_pendingMutations:_0x41ac12,_awaitingChangeset:_0x2860d4,unitID:_0x3b3590,_handler:_0x4c2c35,type:_0x4a6fc4}=this,_0x637a13=_0x53f727(_0x5e02ab,_0x3b3590,_0x4a6fc4,_0x2860d4,_0x41ac12,_0x4c2c35);return _0x637a13 instanceof _0x5f5d23?_0x637a13['_schedule']():(_0x637a13 instanceof _0x5018e3||_0x637a13 instanceof _0x22fd24)&&_0x637a13[_0x88c234(0x23e)](),_0x637a13;}[_0x3e84f8(0x23e)](){const _0x4e1c88=_0x3e84f8;throw new Error(_0x4e1c88(0x3e4));}};_0x3f060c=_0x17b63f([_0x66e8c4(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x66e8c4(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x33f)])],_0x3f060c);let _0x3d21ae=class extends _0x3c556b{constructor(_0x54f41d,_0xb0457a,_0x128c0a,_0x3a4533,_0x17bc82,_0x310342,_0x3a8db2,_0x1a6e1b,_0x2b2739,_0x482a17,_0x5416fa,_0x73f5b9,_0x12d42b,_0x58ab5f){const _0x4ce41b=_0x3e84f8;super(_0x54f41d,_0xb0457a,_0x128c0a,_0x3a4533,_0x3a8db2,_0x73f5b9,_0x12d42b,_0x2b2739,_0x482a17),_0x1de933(this,_0x4ce41b(0x169),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x17bc82,this[_0x4ce41b(0x3eb)]=_0x310342,this[_0x4ce41b(0x249)]=_0x1a6e1b,this[_0x4ce41b(0x31d)]=_0x5416fa,this[_0x4ce41b(0x263)]=_0x58ab5f);}[_0x3e84f8(0x518)](_0x5604c0){const _0x233ccf=_0x3e84f8;try{const _0x2f0ec0=[..._0x5604c0,...this['_queuedRemoteChangesets']],_0x299557=[this['_awaitingChangeset']||this[_0x233ccf(0x1af)]][_0x233ccf(0x51d)](_0x5a33af=>!!_0x5a33af);let _0x3c3567,_0x114dc0;if(_0x299557['length']){const _0x49634c=this[_0x233ccf(0x263)]['transformChangesets'](_0x2f0ec0,_0x299557,!0x1);if(!_0x1474a0[_0x233ccf(0x281)](_0x49634c))throw _0x49634c[_0x233ccf(0x543)];_0x3c3567=_0x49634c['c1Prime'],_0x114dc0=_0x49634c[_0x233ccf(0x321)];}else _0x3c3567=_0x2f0ec0,_0x114dc0=[];let _0x48135c=this[_0x233ccf(0x334)];_0x3c3567[_0x233ccf(0x306)](_0x4cc23c=>{const _0x1597cf=_0x233ccf;let _0x2260e0;if(_0x48135c[_0x1597cf(0x1a6)]){const _0xf670cd=this['_transformService'][_0x1597cf(0x27b)](_0x4cc23c,_0x48135c);if(!_0x1474a0[_0x1597cf(0x1df)](_0xf670cd))throw _0xf670cd[_0x1597cf(0x543)];_0x2260e0=_0xf670cd[_0x1597cf(0x409)],_0x48135c=_0xf670cd['m2Prime'];}else _0x2260e0=_0x4cc23c;this['_executeRemoteChangeset'](_0x2260e0);}),this[_0x233ccf(0x1af)]&&this[_0x233ccf(0x422)](),this['_awaitingChangeset']&&_0x114dc0[_0x233ccf(0x1a6)]&&(_0x114dc0[0x0][_0x233ccf(0x180)]=this[_0x233ccf(0x29b)]());let _0x56ebec;if(this[_0x233ccf(0x4df)]&&_0x48135c[_0x233ccf(0x1a6)]!==0x0)_0x56ebec=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x5018e3,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],_0x114dc0[0x0],_0x48135c,this[_0x233ccf(0x4be)]);else{if(this[_0x233ccf(0x4df)]&&_0x48135c[_0x233ccf(0x1a6)]===0x0)_0x114dc0[0x0]['baseRev']=this[_0x233ccf(0x29b)](),_0x56ebec=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x22fd24,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],_0x114dc0[0x0],this['_handler']);else{if(_0x48135c[_0x233ccf(0x1a6)]!==0x0){const _0x20c330=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x5f5d23,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],_0x48135c,this[_0x233ccf(0x4be)]);_0x20c330[_0x233ccf(0x3b5)](),_0x56ebec=_0x20c330;}else _0x56ebec=this[_0x233ccf(0x249)][_0x233ccf(0x2b5)](_0x400828,this[_0x233ccf(0x13f)],this['type'],this[_0x233ccf(0x4be)]);}}return _0x56ebec[_0x233ccf(0x170)](),_0x56ebec;}catch(_0x47e54e){return this[_0x233ccf(0x31d)]['error'](_0x233ccf(0x227),_0x233ccf(0x49c),_0x47e54e),this['_injector'][_0x233ccf(0x2b5)](_0x35c7cc,this[_0x233ccf(0x13f)],this[_0x233ccf(0x4c9)],this[_0x233ccf(0x4df)],this[_0x233ccf(0x334)],this[_0x233ccf(0x4be)],!0x1);}}[_0x3e84f8(0x23e)](){const _0xa37ff=_0x3e84f8;throw new Error(_0xa37ff(0x228));}['appendMutation'](_0x13c9c7){const _0x40afbe=_0x3e84f8;return this[_0x40afbe(0x334)]['push'](_0x13c9c7),this;}[_0x3e84f8(0x2e3)](_0x339157){const _0x28372f=_0x3e84f8;return this[_0x28372f(0x3eb)][_0x28372f(0x434)](_0x339157),this;}[_0x3e84f8(0x51b)](_0x940d69){const _0x43e154=_0x3e84f8;if(this[_0x43e154(0x4df)])return this[_0x43e154(0x1af)]=this[_0x43e154(0x4df)],this[_0x43e154(0x4df)]=null,this;throw new Error(_0x43e154(0x42b));}['onRemoteRej'](_0x5aee35){const _0x3a2bfb=_0x3e84f8;return this[_0x3a2bfb(0x48a)](!!(_0x5aee35!=null&&_0x5aee35[_0x3a2bfb(0x429)]));}['toggleOffline'](){const _0x27d9cc=_0x3e84f8;return this[_0x27d9cc(0x249)][_0x27d9cc(0x2b5)](_0x3f060c,this[_0x27d9cc(0x13f)],this['type'],this[_0x27d9cc(0x4df)],this['_pendingMutations'],this[_0x27d9cc(0x4be)]);}[_0x3e84f8(0x333)](){return this;}[_0x3e84f8(0x48a)](_0x202307){const _0x33ed43=_0x3e84f8;return this[_0x33ed43(0x249)][_0x33ed43(0x2b5)](_0x35c7cc,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x33ed43(0x334)],this['_handler'],_0x202307);}};_0x3d21ae=_0x17b63f([_0x66e8c4(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x66e8c4(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x66e8c4(0x9,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x66e8c4(0xa,_0x3eca57[_0x3e84f8(0x391)]),_0x66e8c4(0xb,_0x3eca57[_0x3e84f8(0x2b3)]),_0x66e8c4(0xc,_0x3eca57[_0x3e84f8(0x33f)]),_0x66e8c4(0xd,_0x1474a0[_0x3e84f8(0x3aa)])],_0x3d21ae);function _0x53f727(_0x54f448,_0x127ae9,_0x3425ee,_0x412cc6,_0x1eb5e9,_0x132afa){const _0x2c994c=_0x3e84f8;return _0x412cc6&&_0x1eb5e9[_0x2c994c(0x1a6)]?_0x54f448[_0x2c994c(0x2b5)](_0x5018e3,_0x127ae9,_0x3425ee,_0x412cc6,_0x1eb5e9,_0x132afa):_0x412cc6?_0x54f448[_0x2c994c(0x2b5)](_0x22fd24,_0x127ae9,_0x3425ee,_0x412cc6,_0x132afa):_0x1eb5e9[_0x2c994c(0x1a6)]?_0x54f448[_0x2c994c(0x2b5)](_0x5f5d23,_0x127ae9,_0x3425ee,_0x1eb5e9,_0x132afa):_0x54f448[_0x2c994c(0x2b5)](_0x400828,_0x127ae9,_0x3425ee,_0x132afa);}var _0x7d80fb=Object[_0x3e84f8(0x243)],_0x224a0d=Object[_0x3e84f8(0x439)],_0x493d58=(_0x154cdc,_0x4bc367,_0x3afe53,_0x1bdf0e)=>{const _0x511c57=_0x3e84f8;for(var _0x5f5e0d=_0x1bdf0e>0x1?void 0x0:_0x1bdf0e?_0x224a0d(_0x4bc367,_0x3afe53):_0x4bc367,_0x38cd90=_0x154cdc[_0x511c57(0x1a6)]-0x1,_0x2c2c9c;_0x38cd90>=0x0;_0x38cd90--)(_0x2c2c9c=_0x154cdc[_0x38cd90])&&(_0x5f5e0d=(_0x1bdf0e?_0x2c2c9c(_0x4bc367,_0x3afe53,_0x5f5e0d):_0x2c2c9c(_0x5f5e0d))||_0x5f5e0d);return _0x1bdf0e&&_0x5f5e0d&&_0x7d80fb(_0x4bc367,_0x3afe53,_0x5f5e0d),_0x5f5e0d;},_0x3394e7=(_0x532890,_0x355e78)=>(_0x18427f,_0x4c55c7)=>_0x355e78(_0x18427f,_0x4c55c7,_0x532890);_0x2509f1['CollaborationEntity']=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x33d69a,_0x425038,_0x71d33e,_0xa922b7,_0x543a05,_0x3ea494,_0x229db8,_0x9c3648,_0x4f6d79,_0x549a47,_0x9f38b5,_0x551c30,_0xfd5b9e){const _0x20a1fe=_0x3e84f8;super(),_0x1de933(this,_0x20a1fe(0x291),new _0x199df4[(_0x20a1fe(0x244))](null)),_0x1de933(this,_0x20a1fe(0x4d5),this[_0x20a1fe(0x291)]['asObservable']()),_0x1de933(this,_0x20a1fe(0x3ef)),_0x1de933(this,_0x20a1fe(0x23b),!0x1),_0x1de933(this,_0x20a1fe(0x225),this['state$'][_0x20a1fe(0x52b)](_0x199df4[_0x20a1fe(0x1ad)](_0x4165f6=>_0x4165f6?_0x4165f6[_0x20a1fe(0x169)]:_0x4bd68c['OFFLINE']),_0x199df4['shareReplay'](0x1))),_0x1de933(this,_0x20a1fe(0x305),!0x1),_0x1de933(this,_0x20a1fe(0x3e3),[]),(this[_0x20a1fe(0x13f)]=_0x33d69a,this[_0x20a1fe(0x264)]=_0x425038,this['_type']=_0x71d33e,this[_0x20a1fe(0x249)]=_0xa922b7,this[_0x20a1fe(0x442)]=_0x543a05,this[_0x20a1fe(0x35a)]=_0x3ea494,this[_0x20a1fe(0x2c7)]=_0x229db8,this[_0x20a1fe(0x38e)]=_0x9c3648,this['_logService']=_0x4f6d79,this[_0x20a1fe(0x30a)]=_0x549a47,this[_0x20a1fe(0x14a)]=_0x9f38b5,this['_permissionService']=_0x551c30,this[_0x20a1fe(0x1dc)]=_0xfd5b9e);}get[_0x3e84f8(0x4ac)](){const _0x14f57b=_0x3e84f8;return this[_0x14f57b(0x3ef)];}async[_0x3e84f8(0x352)](){const _0x54381d=_0x3e84f8;if(this['state'])throw new Error(_0x54381d(0x1c2));await this[_0x54381d(0x176)]();}['pauseCollaboration'](){const _0x3ba557=_0x3e84f8;return this[_0x3ba557(0x23b)]=!0x0,_0x3eca57['toDisposable'](()=>{const _0x1fca09=_0x3ba557;this[_0x1fca09(0x23b)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x3e84f8(0x15d)](_0xd36caf){const _0x394665=_0x3e84f8;this[_0x394665(0x3ef)]=_0xd36caf,this[_0x394665(0x291)][_0x394665(0x2d2)](_0xd36caf);}async[_0x3e84f8(0x176)](){const _0x421623=_0x3e84f8;var _0x2f3516;this[_0x421623(0x15d)](await this[_0x421623(0x540)]()),this[_0x421623(0x1dc)]&&((_0x2f3516=this[_0x421623(0x1dc)])==null||_0x2f3516[_0x421623(0x4e6)](this[_0x421623(0x13f)]),this[_0x421623(0x4ed)](this[_0x421623(0x1dc)][_0x421623(0x27e)](this['unitID'])[_0x421623(0x4da)](_0x2a962b=>{const _0xf6b20c=_0x421623;this[_0xf6b20c(0x31d)]['debug']('[CollaborationEntity]',_0xf6b20c(0x41a),_0x2a962b),_0x2a962b===_0x25e60f[_0xf6b20c(0x3d3)]?(this[_0xf6b20c(0x14a)][_0xf6b20c(0x3d5)]({'content':this[_0xf6b20c(0x2c7)]['t'](_0xf6b20c(0x1ae)),'type':_0xf694dc['MessageType']['Warning']}),this[_0xf6b20c(0x28c)][_0xf6b20c(0x399)](new _0x9f218b['WorkbookEditablePermission'](this[_0xf6b20c(0x13f)])['id'],!0x1)):this[_0xf6b20c(0x28c)][_0xf6b20c(0x399)](new _0x9f218b[(_0xf6b20c(0x336))](this[_0xf6b20c(0x13f)])['id'],!0x0);})));let _0x4a47db=!0x1;return this[_0x421623(0x4ed)](this[_0x421623(0x264)][_0x421623(0x541)]['subscribe'](_0x6b4ee=>{const _0x4562b1=_0x421623;_0x6b4ee===_0x39f403['ONLINE']?this['_toggleOnline'](_0x4a47db):_0x6b4ee===_0x39f403['OFFLINE']&&(_0x4a47db=!0x0,this[_0x4562b1(0x188)]());})),this[_0x421623(0x4ed)](this[_0x421623(0x264)][_0x421623(0x15a)][_0x421623(0x4da)](_0x177247=>{const _0x36a472=_0x421623;try{switch(_0x177247[_0x36a472(0x11c)]){case _0x1474a0[_0x36a472(0x520)]['NEW_CHANGESETS']:{this[_0x36a472(0x19f)](_0x1474a0[_0x36a472(0x45e)](_0x177247[_0x36a472(0x33d)]));break;}case _0x1474a0['CollaborationEvent'][_0x36a472(0x3be)]:{this[_0x36a472(0x433)](_0x177247[_0x36a472(0x33d)]);break;}case _0x1474a0[_0x36a472(0x520)][_0x36a472(0x29f)]:{this[_0x36a472(0x525)]();break;}case _0x1474a0['CollaborationEvent'][_0x36a472(0x31e)]:{this['_onFetchMissResult'](_0x177247[_0x36a472(0x33d)]['changesets'][_0x36a472(0x1ad)](_0x18c144=>_0x1474a0[_0x36a472(0x45e)](_0x18c144)));break;}case _0x1474a0['CollaborationEvent'][_0x36a472(0x452)]:this[_0x36a472(0x525)]({'isPermissionRej':!0x0});}}catch(_0x400ec8){throw console[_0x36a472(0x543)]('Error\x20on\x20receiving\x20event',_0x400ec8),_0x400ec8;}})),this[_0x421623(0x3ef)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x3e84f8(0x4b8)](){const _0x340a2e=_0x3e84f8;if(this[_0x340a2e(0x305)])throw new Error(_0x340a2e(0x51a));this[_0x340a2e(0x305)]=!0x0;}['_onLocalMutation'](_0x3293f1){const _0x4bb267=_0x3e84f8;this[_0x4bb267(0x4b8)](),this['_updateState'](this[_0x4bb267(0x3ef)][_0x4bb267(0x1f0)](_0x3293f1)),this[_0x4bb267(0x4a5)]();}['_onRemoteChangeset'](_0x35bd52){const _0x36a8dd=_0x3e84f8;if(!(_0x35bd52[_0x36a8dd(0x118)]<=this[_0x36a8dd(0x38e)][_0x36a8dd(0x178)](this[_0x36a8dd(0x13f)]))){if(this[_0x36a8dd(0x23b)]){this[_0x36a8dd(0x3e3)][_0x36a8dd(0x434)](_0x35bd52);return;}this[_0x36a8dd(0x3c3)](_0x35bd52);}}[_0x3e84f8(0x222)](){const _0x3d228b=_0x3e84f8;this[_0x3d228b(0x3e3)][_0x3d228b(0x306)](_0x2075e1=>this[_0x3d228b(0x3c3)](_0x2075e1)),this[_0x3d228b(0x3e3)]=[];}['_applyRemoteChangeset'](_0x131308){const _0x3ddaad=_0x3e84f8,_0x6fbc6c=this[_0x3ddaad(0x35a)][_0x3ddaad(0x1c4)]['fetchThroughInterceptors'](this[_0x3ddaad(0x35a)][_0x3ddaad(0x1c4)][_0x3ddaad(0x310)]()[_0x3ddaad(0x4e1)])(_0x131308[_0x3ddaad(0x313)],null)||_0x131308[_0x3ddaad(0x313)],_0x2545c8={..._0x131308,'mutations':_0x6fbc6c};this[_0x3ddaad(0x4b8)](),this[_0x3ddaad(0x15d)](this[_0x3ddaad(0x3ef)][_0x3ddaad(0x2e3)](_0x2545c8)),this[_0x3ddaad(0x4a5)]();}['_onRemoteACK'](_0x57ff7f){const _0x159399=_0x3e84f8;this['_lockTransition'](),this['_updateState'](this[_0x159399(0x3ef)]['onRemoteAck'](_0x57ff7f)),this[_0x159399(0x4a5)]();}['_onRemoteRejected'](_0x5039ae){const _0x3776e9=_0x3e84f8;this['_lockTransition'](),this['_updateState'](this[_0x3776e9(0x3ef)]['onRemoteRej'](_0x5039ae)),this['_unlockTransition']();}[_0x3e84f8(0x4c0)](_0x394478){const _0x5ca04e=_0x3e84f8;if(!(this[_0x5ca04e(0x3ef)]instanceof _0x3d21ae))throw new TypeError(_0x5ca04e(0x12e));const _0x9a3e6c=_0x394478[_0x5ca04e(0x1ad)](_0x566e6d=>{const _0x446ea=_0x5ca04e,_0x428abc=this[_0x446ea(0x35a)][_0x446ea(0x1c4)]['fetchThroughInterceptors'](this[_0x446ea(0x35a)][_0x446ea(0x1c4)][_0x446ea(0x310)]()['COMPRESS_MUTATION_APPLY'])(_0x566e6d[_0x446ea(0x313)],null)||_0x566e6d[_0x446ea(0x313)];return{..._0x566e6d,'mutations':_0x428abc};});this[_0x5ca04e(0x4b8)](),this[_0x5ca04e(0x15d)](this[_0x5ca04e(0x3ef)][_0x5ca04e(0x518)](_0x9a3e6c)),this[_0x5ca04e(0x4a5)]();}[_0x3e84f8(0x188)](){const _0x437f0d=_0x3e84f8;this[_0x437f0d(0x4b8)](),this[_0x437f0d(0x15d)](this[_0x437f0d(0x3ef)][_0x437f0d(0x2e8)]()),this[_0x437f0d(0x4a5)]();}[_0x3e84f8(0x36b)](_0xe56709=!0x1){const _0x169ea0=_0x3e84f8;this['_lockTransition'](),this['_updateState'](this[_0x169ea0(0x3ef)][_0x169ea0(0x333)]()),this[_0x169ea0(0x4a5)]();const _0x49108c=this[_0x169ea0(0x3ef)];_0xe56709&&_0x49108c instanceof _0x400828&&(this['_lockTransition'](),this[_0x169ea0(0x15d)](_0x49108c['fetchMiss']()),this['_unlockTransition']());}async[_0x3e84f8(0x540)](){return new Promise(_0xf4986b=>{const _0x463ed0=_0x3242;this[_0x463ed0(0x264)][_0x463ed0(0x541)][_0x463ed0(0x52b)](_0x199df4[_0x463ed0(0x1de)](0x1))[_0x463ed0(0x4da)](async _0x3cbf80=>{const _0x3f222a=_0x463ed0;_0xf4986b(await this[_0x3f222a(0x155)](_0x3cbf80===_0x39f403['ONLINE']));});});}[_0x3e84f8(0x465)](){const _0x48ad3f=this['unitID'];return{'onStateChange':(_0xd45400,_0x1e0c8b)=>{const _0x12804e=_0x3242;if(_0xd45400!==this[_0x12804e(0x3ef)])throw new Error(_0x12804e(0x2de)+_0xd45400[_0x12804e(0x169)]+_0x12804e(0x2a5)+_0x1e0c8b[_0x12804e(0x169)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x12804e(0x15d)](_0x1e0c8b);},'onSendChangeset':_0x2604ac=>{const _0x4df307=_0x3242,_0x18eaad={'eventID':_0x1474a0[_0x4df307(0x520)][_0x4df307(0x405)],'data':{'unitID':_0x2604ac['unitID'],'unitType':this[_0x4df307(0x44e)],'changeset':_0x2604ac,'memberID':this[_0x4df307(0x264)][_0x4df307(0x53f)]()}};this[_0x4df307(0x264)][_0x4df307(0x41c)](_0x18eaad,this[_0x4df307(0x13f)]);},'onMissingChangesets':({from:_0x3ceae1,to:_0x5ce62c})=>{const _0x18103f=_0x3242;this[_0x18103f(0x31d)][_0x18103f(0x3d9)](_0x18103f(0x1e6),_0x18103f(0x3ad)+_0x3ceae1+_0x18103f(0x19d)+_0x5ce62c);const _0x202157={'eventID':_0x1474a0[_0x18103f(0x520)]['FETCH_MISSING'],'data':{'unitID':_0x48ad3f,'unitType':this['_type'],'from':_0x3ceae1,'to':_0x5ce62c}};this['session'][_0x18103f(0x41c)](_0x202157,this[_0x18103f(0x13f)]);}};}async[_0x3e84f8(0x155)](_0x561814){const _0x2b6d6f=_0x3e84f8;var _0x22d558,_0xa17578;const _0x36ef04=await this[_0x2b6d6f(0x442)]['loadOfflineData'](this['unitID']),_0x56f070=(_0x22d558=_0x36ef04==null?void 0x0:_0x36ef04['mutations'])!=null?_0x22d558:[],_0x113362=(_0xa17578=_0x36ef04==null?void 0x0:_0x36ef04[_0x2b6d6f(0x4f5)])!=null?_0xa17578:null,_0x261181=this[_0x2b6d6f(0x13f)];try{this['_replayCachedMutations'](_0x113362,_0x56f070);}catch(_0x3db04f){this[_0x2b6d6f(0x31d)][_0x2b6d6f(0x543)](_0x3db04f);}const _0x523608=this['_createHandler']();if(_0x561814){const _0x430fe3=_0x53f727(this[_0x2b6d6f(0x249)],_0x261181,this[_0x2b6d6f(0x44e)],_0x113362,_0x56f070,_0x523608);return _0x430fe3 instanceof _0x5f5d23?_0x430fe3[_0x2b6d6f(0x3b5)]():(_0x430fe3 instanceof _0x5018e3||_0x430fe3 instanceof _0x22fd24)&&_0x430fe3[_0x2b6d6f(0x23e)](),_0x430fe3;}return this['_injector'][_0x2b6d6f(0x2b5)](_0x3f060c,_0x261181,this['_type'],_0x113362,_0x56f070,_0x523608);}['_replayCachedMutations'](_0x4bd624,_0x401efa){const _0xdf50ce=_0x3e84f8;var _0xd30187,_0x44914c;const _0x11fa2f=this[_0xdf50ce(0x35a)]['interceptor'][_0xdf50ce(0x1da)](this['_compressMutationService'][_0xdf50ce(0x1c4)][_0xdf50ce(0x310)]()[_0xdf50ce(0x4e1)]);(_0xd30187=_0x11fa2f((_0x4bd624==null?void 0x0:_0x4bd624['mutations'])||[],null))==null||_0xd30187[_0xdf50ce(0x306)](_0x3cbc8b=>this[_0xdf50ce(0x30a)][_0xdf50ce(0x17c)](_0x3cbc8b['id'],_0x3cbc8b[_0xdf50ce(0x522)])),(_0x44914c=_0x11fa2f(_0x401efa||[],null))==null||_0x44914c[_0xdf50ce(0x306)](_0x59a7c6=>this[_0xdf50ce(0x30a)][_0xdf50ce(0x17c)](_0x59a7c6['id'],_0x59a7c6[_0xdf50ce(0x522)]));}},_0x2509f1[_0x3e84f8(0x274)]=_0x493d58([_0x3394e7(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x3394e7(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x3394e7(0x5,_0x3eca57['Inject'](_0x1474a0[_0x3e84f8(0x2db)])),_0x3394e7(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x477)])),_0x3394e7(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x3394e7(0x8,_0x3eca57[_0x3e84f8(0x391)]),_0x3394e7(0x9,_0x3eca57['ICommandService']),_0x3394e7(0xa,_0x2ede89['IMessageService']),_0x3394e7(0xb,_0x3eca57[_0x3e84f8(0x3a9)]),_0x3394e7(0xc,_0x3eca57[_0x3e84f8(0x3f3)](_0x39225f))],_0x2509f1['CollaborationEntity']),_0x2509f1[_0x3e84f8(0x324)]=class extends _0x2509f1[_0x3e84f8(0x274)]{constructor(_0x5516ee,_0x2792c0,_0x4ebf08,_0x100d13,_0x16b010,_0x35392f,_0x1c9a59,_0x21f2a4,_0x3f32e1,_0xcc7b3a,_0xe35957,_0x1c48c5,_0x538435,_0x10fa10,_0x2659b4,_0x3a0a33,_0x53cb5c){const _0x324209=_0x3e84f8;super(_0x5516ee,_0x4ebf08,_0x2792c0,_0x100d13,_0x16b010,_0x35392f,_0x1c9a59,_0x21f2a4,_0x538435,_0x10fa10,_0x2659b4,_0x3a0a33,_0x53cb5c),this[_0x324209(0x13f)]=_0x5516ee,this[_0x324209(0x4c9)]=_0x2792c0,this[_0x324209(0x3bd)]=_0x3f32e1,this[_0x324209(0x542)]=_0xcc7b3a,this['_docTransformSelectionsService']=_0xe35957,this[_0x324209(0x216)]=_0x1c48c5;}[_0x3e84f8(0x465)](){const _0x302241=_0x3e84f8,_0x48296e=super[_0x302241(0x465)]();return _0x48296e['onTransformIME']=_0x20b784=>this[_0x302241(0x542)][_0x302241(0x3dd)](_0x20b784),_0x48296e[_0x302241(0x30b)]=_0x4bbb41=>this[_0x302241(0x45b)]['transformSelections'](_0x4bbb41),_0x48296e[_0x302241(0x3fb)]=_0x5a9aa3=>this[_0x302241(0x216)][_0x302241(0x285)](_0x5a9aa3),_0x48296e[_0x302241(0x4e5)]=_0x5e8ad2=>this[_0x302241(0x542)][_0x302241(0x38b)](_0x5e8ad2),_0x48296e;}async[_0x3e84f8(0x176)](){const _0x515f47=_0x3e84f8,_0x20d2ef=await super['_init']();return this[_0x515f47(0x4ed)](this[_0x515f47(0x30a)][_0x515f47(0x271)]((_0x5ab4c4,_0x3fa284)=>{const _0x43936e=_0x515f47;if(_0x5ab4c4[_0x43936e(0x4c9)]!==_0x3eca57[_0x43936e(0x32c)][_0x43936e(0x2c9)]||_0x3fa284!=null&&_0x3fa284[_0x43936e(0x519)]||_0x3fa284!=null&&_0x3fa284['onlyLocal'])return;const _0xf95a49=_0x5ab4c4[_0x43936e(0x522)];if((_0xf95a49==null?void 0x0:_0xf95a49['unitId'])!==this['unitID'])return;let _0x658497=_0x5ab4c4;if(_0x658497['id']===_0x5a15a4[_0x43936e(0x495)]['id']){const _0x570a8c=_0x658497[_0x43936e(0x522)];_0x658497={'id':_0x5a15a4[_0x43936e(0x495)]['id'],'type':_0x3eca57['CommandType'][_0x43936e(0x2c9)],'params':{'unitId':_0x570a8c['unitId'],'actions':_0x570a8c[_0x43936e(0x3f6)],'textRanges':null}};}const _0x70d626=this[_0x43936e(0x35a)][_0x43936e(0x1c4)][_0x43936e(0x1da)](this['_compressMutationService'][_0x43936e(0x1c4)][_0x43936e(0x310)]()[_0x43936e(0x369)])([_0x658497],null)||[_0x658497];this[_0x43936e(0x163)](_0x70d626[0x0]);})),_0x20d2ef;}},_0x2509f1[_0x3e84f8(0x324)]=_0x493d58([_0x3394e7(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x3394e7(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x3394e7(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0['CompressMutationService'])),_0x3394e7(0x6,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['LocaleService'])),_0x3394e7(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x3394e7(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x58059b[_0x3e84f8(0x4bc)])),_0x3394e7(0x9,_0x3eca57[_0x3e84f8(0x13c)](_0xd6db42)),_0x3394e7(0xa,_0x3eca57[_0x3e84f8(0x13c)](_0x1fbfda)),_0x3394e7(0xb,_0x3eca57[_0x3e84f8(0x13c)](_0x2436eb)),_0x3394e7(0xc,_0x3eca57[_0x3e84f8(0x391)]),_0x3394e7(0xd,_0x3eca57[_0x3e84f8(0x2b3)]),_0x3394e7(0xe,_0x2ede89[_0x3e84f8(0x394)]),_0x3394e7(0xf,_0x3eca57[_0x3e84f8(0x3a9)]),_0x3394e7(0x10,_0x3eca57[_0x3e84f8(0x3f3)](_0x39225f))],_0x2509f1['DocCollaborationEntity']),_0x2509f1['SheetCollaborationEntity']=class extends _0x2509f1[_0x3e84f8(0x274)]{constructor(_0x3eefe7,_0x3cb3d4,_0x51b298,_0x1b1416,_0x3e3548,_0x3dcd69,_0x1e4a53,_0x511399,_0x222630,_0x32273d,_0xc6ba0e,_0x4609b7,_0x39234f,_0x1f70c5){const _0x3fc4de=_0x3e84f8;super(_0x3eefe7,_0x51b298,_0x3cb3d4,_0x1b1416,_0x3e3548,_0x3dcd69,_0x1e4a53,_0x511399,_0x32273d,_0xc6ba0e,_0x4609b7,_0x39234f,_0x1f70c5),this[_0x3fc4de(0x13f)]=_0x3eefe7,this[_0x3fc4de(0x4c9)]=_0x3cb3d4,this['_sheetTransformSelectionsService']=_0x222630;}[_0x3e84f8(0x465)](){const _0x1e3624=_0x3e84f8,_0x5624de=super[_0x1e3624(0x465)]();return _0x5624de[_0x1e3624(0x30b)]=_0x2d4453=>this[_0x1e3624(0x371)][_0x1e3624(0x537)](_0x2d4453),_0x5624de;}async[_0x3e84f8(0x176)](){const _0x1cc76b=_0x3e84f8,_0xadeab0=await super[_0x1cc76b(0x176)]();return this[_0x1cc76b(0x4ed)](this[_0x1cc76b(0x30a)][_0x1cc76b(0x271)]((_0x1a1ba5,_0x985ffb)=>{const _0x1cbf09=_0x1cc76b;if(_0x1a1ba5[_0x1cbf09(0x4c9)]!==_0x3eca57['CommandType']['MUTATION']||_0x985ffb!=null&&_0x985ffb[_0x1cbf09(0x519)]||_0x985ffb!=null&&_0x985ffb[_0x1cbf09(0x480)])return;const _0x429cbb=_0x1a1ba5[_0x1cbf09(0x522)];if((_0x429cbb==null?void 0x0:_0x429cbb[_0x1cbf09(0x2ac)])!==this['unitID'])return;const _0x50dc81=_0x1a1ba5,_0x19e3eb=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x1cbf09(0x35a)][_0x1cbf09(0x1c4)][_0x1cbf09(0x310)]()[_0x1cbf09(0x369)])([_0x50dc81],null)||[_0x50dc81];this['_onLocalMutation'](_0x19e3eb[0x0]);})),_0xadeab0;}},_0x2509f1[_0x3e84f8(0x1ed)]=_0x493d58([_0x3394e7(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x3394e7(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x3394e7(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x2db)])),_0x3394e7(0x6,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)])),_0x3394e7(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x210)])),_0x3394e7(0x8,_0x3eca57[_0x3e84f8(0x13c)](_0x322a21)),_0x3394e7(0x9,_0x3eca57[_0x3e84f8(0x391)]),_0x3394e7(0xa,_0x3eca57[_0x3e84f8(0x2b3)]),_0x3394e7(0xb,_0x2ede89['IMessageService']),_0x3394e7(0xc,_0x3eca57[_0x3e84f8(0x3a9)]),_0x3394e7(0xd,_0x3eca57[_0x3e84f8(0x3f3)](_0x39225f))],_0x2509f1['SheetCollaborationEntity']);var _0xc0da08=Object[_0x3e84f8(0x243)],_0x4d69c6=Object[_0x3e84f8(0x439)],_0x3b070a=(_0x2b80ce,_0x579770,_0x5badde,_0x23ad53)=>{const _0x570e50=_0x3e84f8;for(var _0x3776db=_0x23ad53>0x1?void 0x0:_0x23ad53?_0x4d69c6(_0x579770,_0x5badde):_0x579770,_0xaaae02=_0x2b80ce[_0x570e50(0x1a6)]-0x1,_0x272f12;_0xaaae02>=0x0;_0xaaae02--)(_0x272f12=_0x2b80ce[_0xaaae02])&&(_0x3776db=(_0x23ad53?_0x272f12(_0x579770,_0x5badde,_0x3776db):_0x272f12(_0x3776db))||_0x3776db);return _0x23ad53&&_0x3776db&&_0xc0da08(_0x579770,_0x5badde,_0x3776db),_0x3776db;},_0x2429e3=(_0x47309a,_0x244c0f)=>(_0x45005a,_0xca835f)=>_0x244c0f(_0x45005a,_0xca835f,_0x47309a);_0x2509f1[_0x3e84f8(0x171)]=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x4b46c9,_0x50f2dc,_0x3899e5){const _0x47ba04=_0x3e84f8;super(),_0x1de933(this,_0x47ba04(0x299),new Map()),_0x1de933(this,_0x47ba04(0x4f2),new _0x199df4['Subject']()),(this['_injector']=_0x4b46c9,this[_0x47ba04(0x4e8)]=_0x50f2dc,this[_0x47ba04(0x339)]=_0x3899e5,this[_0x47ba04(0x176)]());}[_0x3e84f8(0x231)](){const _0x32afbc=_0x3e84f8;super[_0x32afbc(0x231)](),this[_0x32afbc(0x299)][_0x32afbc(0x306)](_0x62e05a=>_0x62e05a[_0x32afbc(0x231)]()),this[_0x32afbc(0x299)][_0x32afbc(0x4db)]();}[_0x3e84f8(0x1be)](_0x470ad8){const _0x183cc2=_0x3e84f8;var _0x434119;return(_0x434119=this['_entities'][_0x183cc2(0x4af)](_0x470ad8))!=null?_0x434119:null;}[_0x3e84f8(0x26f)](_0x2e9fef){const _0x227c8d=_0x3e84f8,_0x24e2ea=this[_0x227c8d(0x1be)](_0x2e9fef);return _0x24e2ea?_0x199df4['of'](_0x24e2ea):this[_0x227c8d(0x4f2)][_0x227c8d(0x52b)](_0x46f2f0[_0x227c8d(0x51d)](_0x3c995c=>_0x3c995c[_0x227c8d(0x13f)]===_0x2e9fef));}[_0x3e84f8(0x176)](){const _0x54ab44=_0x3e84f8;this[_0x54ab44(0x339)][_0x54ab44(0x362)](_0x3eca57[_0x54ab44(0x3fd)]['UNIVER_SHEET'])[_0x54ab44(0x52b)](_0x199df4[_0x54ab44(0x468)](this['dispose$']),_0x46f2f0[_0x54ab44(0x17f)](0x10))[_0x54ab44(0x4da)](async _0x45c115=>{const _0x5a34f5=_0x54ab44,_0x13aa1d=_0x45c115['getUnitId'](),_0x17d675=await this['_startCollaboration'](_0x13aa1d,_0x588a36['UNIVER_SHEET']);this[_0x5a34f5(0x299)]['set'](_0x13aa1d,_0x17d675);}),this[_0x54ab44(0x339)][_0x54ab44(0x362)](_0x3eca57['UniverInstanceType'][_0x54ab44(0x269)])['pipe'](_0x199df4['takeUntil'](this['dispose$']),_0x46f2f0[_0x54ab44(0x17f)](0x10))['pipe'](_0x46f2f0['filter'](_0x13a551=>!_0x13a551[_0x54ab44(0x286)]()[_0x54ab44(0x396)]('__')))[_0x54ab44(0x4da)](async _0x108374=>{const _0x198d7c=_0x54ab44,_0x3c089b=_0x108374[_0x198d7c(0x286)](),_0x2f0e8f=await this[_0x198d7c(0x4a8)](_0x3c089b,_0x588a36[_0x198d7c(0x269)]);this[_0x198d7c(0x299)][_0x198d7c(0x1b8)](_0x3c089b,_0x2f0e8f);}),_0x199df4[_0x54ab44(0x148)](this[_0x54ab44(0x339)][_0x54ab44(0x3a5)](_0x3eca57[_0x54ab44(0x3fd)][_0x54ab44(0x28f)]),this[_0x54ab44(0x339)][_0x54ab44(0x3a5)](_0x3eca57['UniverInstanceType'][_0x54ab44(0x269)]))[_0x54ab44(0x52b)](_0x199df4[_0x54ab44(0x468)](this['dispose$']))[_0x54ab44(0x4da)](_0xbb2754=>{const _0x5242c9=_0x54ab44,_0x17edb9=_0xbb2754[_0x5242c9(0x286)](),_0x1d0465=this['_entities'][_0x5242c9(0x4af)](_0x17edb9);_0x1d0465&&(_0x1d0465[_0x5242c9(0x231)](),this[_0x5242c9(0x299)][_0x5242c9(0x531)](_0x17edb9));});}async['_startCollaboration'](_0x58454f,_0x2094ef){const _0x261106=_0x3e84f8,_0x2be2e8=await this['_collabSessionService'][_0x261106(0x2ca)](_0x58454f),_0x236f4b=this[_0x261106(0x249)]['createInstance'](this[_0x261106(0x15f)](_0x2094ef),_0x58454f,_0x2094ef,_0x2be2e8);return await _0x236f4b['init'](),this[_0x261106(0x4f2)][_0x261106(0x2d2)](_0x236f4b),_0x236f4b;}['_getCtorByUniverType'](_0x1c961a){const _0x1cac62=_0x3e84f8;switch(_0x1c961a){case _0x588a36['UNIVER_DOC']:return _0x2509f1[_0x1cac62(0x324)];case _0x588a36[_0x1cac62(0x28f)]:return _0x2509f1['SheetCollaborationEntity'];default:throw new Error(_0x1cac62(0x21f)+_0x1c961a);}}},_0x2509f1['CollaborationController']=_0x3b070a([_0x2429e3(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0x2429e3(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x332)])),_0x2429e3(0x2,_0x3eca57[_0x3e84f8(0x2b1)])],_0x2509f1[_0x3e84f8(0x171)]);const _0x143b00=[_0x3e84f8(0x2ce),_0x3e84f8(0x13d),_0x3e84f8(0x2dd),_0x3e84f8(0x4b4),_0x3e84f8(0x3ee),'gold400'];class _0x29d267 extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(){const _0x4549b7=_0x3e84f8;super(...arguments),_0x1de933(this,_0x4549b7(0x16e),new Map()),_0x1de933(this,_0x4549b7(0x48e),0x0);}[_0x3e84f8(0x403)](_0x598f49){const _0x15a1da=_0x3e84f8;if(this[_0x15a1da(0x16e)][_0x15a1da(0x2a7)](_0x598f49))return this[_0x15a1da(0x16e)]['get'](_0x598f49);const _0x3f1048=_0x143b00[this[_0x15a1da(0x48e)]];return this[_0x15a1da(0x48e)]=(this[_0x15a1da(0x48e)]+0x1)%_0x143b00[_0x15a1da(0x1a6)],this[_0x15a1da(0x16e)][_0x15a1da(0x1b8)](_0x598f49,_0x3f1048),_0x3f1048;}}var _0x74a1a8=Object[_0x3e84f8(0x243)],_0x4cfb88=Object[_0x3e84f8(0x439)],_0x1c37ec=(_0x35da26,_0x3a85ba,_0x59993a,_0x46dcaf)=>{const _0x553a7d=_0x3e84f8;for(var _0x538013=_0x46dcaf>0x1?void 0x0:_0x46dcaf?_0x4cfb88(_0x3a85ba,_0x59993a):_0x3a85ba,_0x50912c=_0x35da26[_0x553a7d(0x1a6)]-0x1,_0x2ad234;_0x50912c>=0x0;_0x50912c--)(_0x2ad234=_0x35da26[_0x50912c])&&(_0x538013=(_0x46dcaf?_0x2ad234(_0x3a85ba,_0x59993a,_0x538013):_0x2ad234(_0x538013))||_0x538013);return _0x46dcaf&&_0x538013&&_0x74a1a8(_0x3a85ba,_0x59993a,_0x538013),_0x538013;},_0x17cacb=(_0x31d9de,_0x15ba1f)=>(_0x3f1aec,_0x56740d)=>_0x15ba1f(_0x3f1aec,_0x56740d,_0x31d9de);const _0x668fad=0x12c,_0x18d423=0x64,_0x5b224e=()=>{let _0x2fa4f1=[],_0x599d70=!0x1;return _0x48efc7=>{const _0x5d6408=_0x3242;_0x2fa4f1[_0x5d6408(0x434)](_0x48efc7),_0x599d70||(_0x599d70=!0x0,setTimeout(()=>{const _0x486f89=_0x5d6408;_0x2fa4f1[_0x486f89(0x306)](_0x315113=>_0x315113()),_0x2fa4f1=[],_0x599d70=!0x1;}));};};let _0x380593=class extends _0x3eca57['RxDisposable']{constructor(_0x1d0757,_0x20572e,_0x477f97,_0x138578,_0x368150,_0x3fac99,_0xc1dbea,_0x187e56){const _0x2b9035=_0x3e84f8;super(),_0x1de933(this,_0x2b9035(0x3ed),!0x1),_0x1de933(this,_0x2b9035(0x176),!0x1),_0x1de933(this,_0x2b9035(0x185),new _0x199df4[(_0x2b9035(0x244))](new Map())),_0x1de933(this,_0x2b9035(0x45c),this[_0x2b9035(0x185)]['asObservable']()),_0x1de933(this,_0x2b9035(0x149),new _0x199df4['BehaviorSubject']([])),_0x1de933(this,_0x2b9035(0x329),this[_0x2b9035(0x149)][_0x2b9035(0x52b)](_0x199df4[_0x2b9035(0x397)](_0x668fad))),_0x1de933(this,_0x2b9035(0x173),_0x7f76a4((_0x2532d4,_0x3600ad)=>{const _0x229273=_0x2b9035,_0x29dbbc={'eventID':_0x1474a0[_0x229273(0x520)][_0x229273(0x402)],'data':{'unitID':this[_0x229273(0x13f)],'memberID':this[_0x229273(0x130)]['getMemberID'](),'selection':_0x2568c2[_0x229273(0x2df)](_0x2532d4,_0x3600ad[_0x229273(0x4cd)])}};this[_0x229273(0x130)][_0x229273(0x41c)](_0x29dbbc,this[_0x229273(0x13f)]);},_0x18d423)),(this['unitID']=_0x1d0757,this[_0x2b9035(0x130)]=_0x20572e,this[_0x2b9035(0x249)]=_0x477f97,this[_0x2b9035(0x530)]=_0x138578,this['_memberService']=_0x368150,this['_univerInstanceService']=_0x3fac99,this[_0x2b9035(0x30a)]=_0xc1dbea,this[_0x2b9035(0x3cd)]=_0x187e56);}get['cursorInfo'](){const _0x3ce7cc=_0x3e84f8;return this[_0x3ce7cc(0x185)][_0x3ce7cc(0x31f)]();}get[_0x3e84f8(0x3a6)](){const _0x9bfd7e=_0x3e84f8;return this['_roomMembers$'][_0x9bfd7e(0x31f)]();}['dispose'](){const _0x3ceb5e=_0x3e84f8;super[_0x3ceb5e(0x231)](),this[_0x3ceb5e(0x185)][_0x3ceb5e(0x2d2)](new Map()),this[_0x3ceb5e(0x185)][_0x3ceb5e(0x1d3)](),this[_0x3ceb5e(0x149)][_0x3ceb5e(0x2d2)]([]),this[_0x3ceb5e(0x149)]['complete']();}['init'](){const _0x973e83=_0x3e84f8;this[_0x973e83(0x176)]||(this['_init']=!0x0,this[_0x973e83(0x130)][_0x973e83(0x541)]['pipe'](_0x199df4[_0x973e83(0x468)](this[_0x973e83(0x138)]))['subscribe'](_0x44528d=>{const _0x11a4c3=_0x973e83;_0x44528d===_0x39f403['ONLINE']?this[_0x11a4c3(0x36b)]():this[_0x11a4c3(0x188)]();}),this[_0x973e83(0x130)]['event$']['pipe'](_0x199df4[_0x973e83(0x468)](this[_0x973e83(0x138)]))[_0x973e83(0x4da)](_0x4d3c8c=>{const _0x57d5b1=_0x973e83,_0x5b9329=_0x4d3c8c[_0x57d5b1(0x11c)];_0x5b9329===_0x1474a0[_0x57d5b1(0x520)][_0x57d5b1(0x402)]&&this['_onCursorUpdate'](_0x4d3c8c),_0x5b9329===_0x1474a0[_0x57d5b1(0x520)]['USERS_LEAVE']&&this[_0x57d5b1(0x2b4)](_0x4d3c8c);}),this['_onRefRangeChange'](),this[_0x973e83(0x4ed)](this[_0x973e83(0x30a)][_0x973e83(0x271)](_0x59a871=>{const _0x5396c2=_0x973e83;if(this[_0x5396c2(0x3ed)]&&_0x59a871['id']===_0x9f218b[_0x5396c2(0x248)]['id']&&_0x59a871['params'][_0x5396c2(0x2ac)]===this[_0x5396c2(0x13f)]){const _0x3c17eb=_0x59a871['params'];this[_0x5396c2(0x173)](_0x3c17eb['subUnitId'],_0x3c17eb[_0x5396c2(0x406)][0x0]);}})));}['_onCursorUpdate'](_0x352013){const _0x5126a7=_0x3e84f8;var _0x58e073,_0x57c9cb;const {memberID:_0x40b5bb,selection:_0x1165ae}=_0x352013[_0x5126a7(0x33d)],{sheetName:_0x11d430,range:_0x4e1798}=_0x2568c2[_0x5126a7(0x174)](_0x1165ae),_0x51f864={'name':(_0x57c9cb=(_0x58e073=this[_0x5126a7(0x1ec)]['getMember'](this[_0x5126a7(0x13f)],_0x40b5bb))==null?void 0x0:_0x58e073[_0x5126a7(0x52a)])!=null?_0x57c9cb:_0x5126a7(0x3c9),'range':this[_0x5126a7(0x4a0)](_0x11d430,_0x4e1798),'sheetID':_0x11d430,'color':this[_0x5126a7(0x530)][_0x5126a7(0x403)](_0x40b5bb),'selection':_0x1165ae},_0x3dfa5a=this[_0x5126a7(0x289)];_0x3dfa5a[_0x5126a7(0x1b8)](_0x40b5bb,_0x51f864),this[_0x5126a7(0x185)][_0x5126a7(0x2d2)](_0x3dfa5a);}[_0x3e84f8(0x2b4)](_0x5334f4){const _0x33e7d1=_0x3e84f8,{memberID:_0x5c3e28}=_0x5334f4['data'],_0x58c6aa=this[_0x33e7d1(0x289)];_0x58c6aa['delete'](_0x5c3e28),this[_0x33e7d1(0x185)]['next'](_0x58c6aa);}['_getMergeRange'](_0x2c48e9,_0x472286){const _0x1ddbbd=_0x3e84f8;var _0x22edf3,_0x38dabb;const _0x1db39b=(_0x38dabb=(_0x22edf3=this['_univerInstanceService'][_0x1ddbbd(0x41d)](this[_0x1ddbbd(0x13f)]))==null?void 0x0:_0x22edf3[_0x1ddbbd(0x37e)](_0x2c48e9))==null?void 0x0:_0x38dabb['getMergeData']();return(_0x1db39b==null?void 0x0:_0x1db39b[_0x1ddbbd(0x44f)](_0x164111=>_0x3eca57[_0x1ddbbd(0x527)][_0x1ddbbd(0x116)](_0x164111,_0x472286)))||_0x472286;}[_0x3e84f8(0x24a)](){const _0x3070de=_0x3e84f8,_0x3b50a1=new _0x3eca57[(_0x3070de(0x20e))](),_0x3a39bf=_0x5b224e(),_0x475fae=()=>{const _0x3af61f=_0x3070de;_0x3b50a1['dispose']();const _0x4cea91=(_0x3ead2b,_0x5227d7,_0x55fe00,_0x4e1c3c)=>{const _0x5c8b79=_0x3242;let _0xd968f9=[];switch(_0x3ead2b['id']){case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x2a0)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x2aa)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)]['DeleteRangeMoveUpCommandId']:{_0xd968f9=_0x9f218b[_0x5c8b79(0x213)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)]['InsertColCommandId']:{_0xd968f9=_0x9f218b[_0x5c8b79(0x1cc)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x453)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x388)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)]['InsertRangeMoveRightCommandId']:{_0xd968f9=_0x9f218b['handleInsertRangeMoveRight'](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x297)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x218)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x485)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x53c)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b['EffectRefRangId'][_0x5c8b79(0x2d0)]:{_0xd968f9=_0x9f218b[_0x5c8b79(0x3c4)](_0x3ead2b,_0x4e1c3c);break;}case _0x9f218b[_0x5c8b79(0x27a)][_0x5c8b79(0x24e)]:{_0xd968f9=_0x9f218b['handleIRemoveRow'](_0x3ead2b,_0x4e1c3c);break;}}const _0x2537f5=_0x9f218b[_0x5c8b79(0x23a)](_0xd968f9,_0x4e1c3c),_0x10f24e=this['cursorInfo']['get'](_0x5227d7);if(_0x10f24e&&_0x2537f5){const _0x4cd233={..._0x10f24e,'range':_0x2537f5};this[_0x5c8b79(0x289)][_0x5c8b79(0x1b8)](_0x5227d7,_0x4cd233),_0x3a39bf(()=>{const _0x5296a7=_0x5c8b79,_0x14e06d=this[_0x5296a7(0x3cd)][_0x5296a7(0x22a)](_0x2537f5,_0x1cbbfc=>(_0x14e06d[_0x5296a7(0x231)](),_0x4cea91(_0x1cbbfc,_0x5227d7,_0x55fe00,_0x2537f5)));_0x3b50a1[_0x5296a7(0x44d)](_0x14e06d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3af61f(0x306)]((_0x179913,_0x2c7850)=>{const _0x58e126=_0x3af61f,{range:_0x4fa478,sheetID:_0x2b3c26}=_0x179913,_0x27ebb1=this['_refRangeService'][_0x58e126(0x22a)](_0x4fa478,_0x2a6093=>(_0x27ebb1[_0x58e126(0x231)](),_0x4cea91(_0x2a6093,_0x2c7850,_0x2b3c26,_0x4fa478)));_0x3b50a1[_0x58e126(0x44d)](_0x27ebb1);});};this['disposeWithMe'](_0x3eca57[_0x3070de(0x340)](this[_0x3070de(0x185)][_0x3070de(0x4da)](()=>{_0x475fae();})));}[_0x3e84f8(0x36b)](){const _0x51d295=_0x3e84f8;var _0x27e048,_0x3557b3;if(this[_0x51d295(0x3ed)]=!0x0,((_0x27e048=this['_univerInstanceService'][_0x51d295(0x298)]())==null?void 0x0:_0x27e048[_0x51d295(0x286)]())!==this[_0x51d295(0x13f)])return;const _0x46cafa=(_0x3557b3=this['_injector']['get'](_0x9f218b['SheetsSelectionsService'])[_0x51d295(0x301)]())==null?void 0x0:_0x3557b3[0x0],_0x1bd338=this[_0x51d295(0x339)][_0x51d295(0x36d)](_0x3eca57['UniverInstanceType'][_0x51d295(0x28f)])['getActiveSheet']();_0x46cafa&&_0x1bd338&&this['_updateLocalCursor'](_0x1bd338[_0x51d295(0x302)](),_0x46cafa);}['_toggleOffline'](){this['_online']=!0x1;}};_0x380593=_0x1c37ec([_0x17cacb(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x17cacb(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x29d267)),_0x17cacb(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x5df92e)),_0x17cacb(0x5,_0x3eca57[_0x3e84f8(0x2b1)]),_0x17cacb(0x6,_0x3eca57[_0x3e84f8(0x2b3)]),_0x17cacb(0x7,_0x3eca57[_0x3e84f8(0x13c)](_0x9f218b[_0x3e84f8(0x493)]))],_0x380593);var _0x48a602=Object[_0x3e84f8(0x243)],_0x901f46=Object[_0x3e84f8(0x439)],_0xabbe23=(_0xec41a,_0x1ee975,_0x1971e3,_0x7b9fe4)=>{const _0x5aa502=_0x3e84f8;for(var _0xf14d62=_0x7b9fe4>0x1?void 0x0:_0x7b9fe4?_0x901f46(_0x1ee975,_0x1971e3):_0x1ee975,_0x585373=_0xec41a[_0x5aa502(0x1a6)]-0x1,_0x301e71;_0x585373>=0x0;_0x585373--)(_0x301e71=_0xec41a[_0x585373])&&(_0xf14d62=(_0x7b9fe4?_0x301e71(_0x1ee975,_0x1971e3,_0xf14d62):_0x301e71(_0xf14d62))||_0xf14d62);return _0x7b9fe4&&_0xf14d62&&_0x48a602(_0x1ee975,_0x1971e3,_0xf14d62),_0xf14d62;},_0xf5146b=(_0x5121e6,_0x2d9529)=>(_0x1af565,_0x9713c8)=>_0x2d9529(_0x1af565,_0x9713c8,_0x5121e6);const _0x349d85=0x12c,_0x4e5015=0x64;let _0x23da87=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x9ef61e,_0x5281c4,_0x1e82d7,_0x2ec0c5,_0x1b46d7,_0x4162c5,_0x2b4980,_0x1b642f,_0x4997e4){const _0x303f10=_0x3e84f8;super(),_0x1de933(this,_0x303f10(0x3ed),!0x1),_0x1de933(this,_0x303f10(0x176),!0x1),_0x1de933(this,_0x303f10(0x185),new _0x199df4[(_0x303f10(0x244))](new Map())),_0x1de933(this,_0x303f10(0x45c),this[_0x303f10(0x185)][_0x303f10(0x183)]()),_0x1de933(this,_0x303f10(0x149),new _0x199df4[(_0x303f10(0x244))]([])),_0x1de933(this,'roomMembers$',this[_0x303f10(0x149)][_0x303f10(0x52b)](_0x199df4['debounceTime'](_0x349d85))),_0x1de933(this,_0x303f10(0x173),_0x7f76a4(_0x5dffb5=>{const _0x1706ff=_0x303f10,_0x34a12={'eventID':_0x1474a0[_0x1706ff(0x520)][_0x1706ff(0x402)],'data':{'unitID':this[_0x1706ff(0x13f)],'memberID':this[_0x1706ff(0x130)][_0x1706ff(0x53f)](),'selection':_0x2d22be(_0x5dffb5)}};this['_session'][_0x1706ff(0x41c)](_0x34a12,this[_0x1706ff(0x13f)]);},_0x4e5015)),(this[_0x303f10(0x13f)]=_0x9ef61e,this[_0x303f10(0x130)]=_0x5281c4,this[_0x303f10(0x249)]=_0x1e82d7,this[_0x303f10(0x530)]=_0x2ec0c5,this[_0x303f10(0x1ec)]=_0x1b46d7,this[_0x303f10(0x50a)]=_0x4162c5,this[_0x303f10(0x263)]=_0x2b4980,this[_0x303f10(0x339)]=_0x1b642f,this[_0x303f10(0x30a)]=_0x4997e4);}get[_0x3e84f8(0x289)](){const _0x15b731=_0x3e84f8;return this[_0x15b731(0x185)][_0x15b731(0x31f)]();}get[_0x3e84f8(0x3a6)](){const _0x3b53f6=_0x3e84f8;return this[_0x3b53f6(0x149)][_0x3b53f6(0x31f)]();}[_0x3e84f8(0x231)](){const _0x2c6c6d=_0x3e84f8;super[_0x2c6c6d(0x231)](),this[_0x2c6c6d(0x185)][_0x2c6c6d(0x2d2)](new Map()),this[_0x2c6c6d(0x185)][_0x2c6c6d(0x1d3)](),this[_0x2c6c6d(0x149)][_0x2c6c6d(0x2d2)]([]),this[_0x2c6c6d(0x149)][_0x2c6c6d(0x1d3)]();}[_0x3e84f8(0x352)](){const _0x280870=_0x3e84f8;this['_init']||(this['_init']=!0x0,this[_0x280870(0x130)]['sessionStatus$'][_0x280870(0x52b)](_0x199df4[_0x280870(0x468)](this['dispose$']))['subscribe'](_0x31a24b=>{const _0x76bd8e=_0x280870;_0x31a24b===_0x39f403[_0x76bd8e(0x3cc)]?this['_toggleOnline']():this[_0x76bd8e(0x188)]();}),this['_session']['event$']['pipe'](_0x199df4[_0x280870(0x468)](this[_0x280870(0x138)]))[_0x280870(0x4da)](_0x375cb8=>{const _0x1a12c8=_0x280870,_0x34fb7e=_0x375cb8[_0x1a12c8(0x11c)];_0x34fb7e===_0x1474a0[_0x1a12c8(0x520)][_0x1a12c8(0x402)]&&this['_onCursorUpdate'](_0x375cb8),_0x34fb7e===_0x1474a0[_0x1a12c8(0x520)]['USERS_LEAVE']&&this[_0x1a12c8(0x2b4)](_0x375cb8);}),this[_0x280870(0x4ed)](this[_0x280870(0x30a)]['onCommandExecuted'](_0x7b0a4=>{const _0xe89b1c=_0x280870,_0x221424=_0x7b0a4[_0xe89b1c(0x522)];_0x221424!=null&&this[_0xe89b1c(0x3ed)]&&_0x7b0a4['id']===_0x5a15a4[_0xe89b1c(0x426)]['id']&&_0x221424[_0xe89b1c(0x2ac)]===this[_0xe89b1c(0x13f)]&&_0x221424[_0xe89b1c(0x2ff)]===!0x1&&this[_0xe89b1c(0x173)](_0x221424[_0xe89b1c(0x35d)]);})),this[_0x280870(0x50a)][_0x280870(0x3c1)]['pipe'](_0x199df4[_0x280870(0x468)](this[_0x280870(0x138)]))[_0x280870(0x4da)](_0x4e9585=>{const _0x13abd0=_0x280870;if((_0x4e9585==null?void 0x0:_0x4e9585[_0x13abd0(0x13f)])!==this[_0x13abd0(0x13f)])return;const _0x417ef9={'eventID':_0x1474a0[_0x13abd0(0x520)][_0x13abd0(0x402)],'data':_0x4e9585};this[_0x13abd0(0x19a)](_0x417ef9);}),this[_0x280870(0x4ed)](this[_0x280870(0x30a)][_0x280870(0x271)](_0x15a6f3=>{const _0x2e88d5=_0x280870;if(_0x15a6f3['params']==null)return;const _0x236924=_0x15a6f3['params'];if(_0x15a6f3['id']!==_0x5a15a4[_0x2e88d5(0x495)]['id']||_0x236924[_0x2e88d5(0x2ac)]!==this[_0x2e88d5(0x13f)])return;const _0x358860={'id':_0x2e88d5(0x506),'params':_0x236924},_0x1c5b15=this['cursorInfo'];for(const [_0x4d7d7b,_0x134b04]of _0x1c5b15){const _0x52b634={'id':_0x2e88d5(0x506),'params':{'unitId':this[_0x2e88d5(0x13f)],'actions':null,'textRanges':_0x134b04[_0x2e88d5(0x35d)]}},_0x4753c1=this[_0x2e88d5(0x263)][_0x2e88d5(0x246)](_0x358860,_0x52b634,!0x1);if(_0x1474a0[_0x2e88d5(0x199)](_0x4753c1))throw _0x4753c1[_0x2e88d5(0x543)];_0x1c5b15[_0x2e88d5(0x1b8)](_0x4d7d7b,{..._0x134b04,'ranges':_0x4753c1['m2Prime'][_0x2e88d5(0x522)][_0x2e88d5(0x1a1)]});}queueMicrotask(()=>{const _0x364917=_0x2e88d5;this['_cursorInfo$'][_0x364917(0x2d2)](_0x1c5b15);});})));}[_0x3e84f8(0x19a)](_0x587482){const _0x1da244=_0x3e84f8;var _0x299e17,_0x1a8ce3;const {memberID:_0x63909e,selection:_0x28c8a9}=_0x587482[_0x1da244(0x33d)],_0x226b34=_0x17e635(_0x28c8a9),_0x481f0b=(_0x1a8ce3=(_0x299e17=this['_memberService'][_0x1da244(0x172)](this['unitID'],_0x63909e))==null?void 0x0:_0x299e17[_0x1da244(0x52a)])!=null?_0x1a8ce3:_0x1da244(0x3c9),_0x698eb={'color':this[_0x1da244(0x530)]['assignAColorForMemberID'](_0x63909e),'name':_0x481f0b,'ranges':_0x226b34},_0x280b5b=this['cursorInfo'];_0x280b5b[_0x1da244(0x1b8)](_0x63909e,_0x698eb),this[_0x1da244(0x185)]['next'](_0x280b5b);}[_0x3e84f8(0x2b4)](_0xc40c46){const _0x4e2684=_0x3e84f8,{memberID:_0x5a6fae}=_0xc40c46['data'],_0x3c34b8=this[_0x4e2684(0x289)];_0x3c34b8[_0x4e2684(0x531)](_0x5a6fae),this[_0x4e2684(0x185)][_0x4e2684(0x2d2)](_0x3c34b8);}[_0x3e84f8(0x36b)](){const _0x1252ef=_0x3e84f8;var _0x28de0a;if(this[_0x1252ef(0x3ed)]=!0x0,((_0x28de0a=this['_univerInstanceService'][_0x1252ef(0x298)]())==null?void 0x0:_0x28de0a[_0x1252ef(0x286)]())!==this[_0x1252ef(0x13f)])return;const _0x44780c=this[_0x1252ef(0x249)][_0x1252ef(0x4af)](_0x5a15a4[_0x1252ef(0x247)])[_0x1252ef(0x2f5)]();Array[_0x1252ef(0x4f1)](_0x44780c)&&_0x44780c[_0x1252ef(0x1a6)]>0x0&&this[_0x1252ef(0x173)](_0x44780c);}['_toggleOffline'](){this['_online']=!0x1;}};_0x23da87=_0xabbe23([_0xf5146b(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57['Injector'])),_0xf5146b(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x29d267)),_0xf5146b(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x5df92e)),_0xf5146b(0x5,_0x3eca57[_0x3e84f8(0x13c)](_0x2436eb)),_0xf5146b(0x6,_0x1474a0['ITransformService']),_0xf5146b(0x7,_0x3eca57['IUniverInstanceService']),_0xf5146b(0x8,_0x3eca57[_0x3e84f8(0x2b3)])],_0x23da87);var _0x58d990=Object[_0x3e84f8(0x243)],_0x56ad79=Object[_0x3e84f8(0x439)],_0x4183b1=(_0x25abfa,_0x58a97f,_0x27b84f,_0x59b11e)=>{const _0x5c4c44=_0x3e84f8;for(var _0x3457cc=_0x59b11e>0x1?void 0x0:_0x59b11e?_0x56ad79(_0x58a97f,_0x27b84f):_0x58a97f,_0x346b6e=_0x25abfa[_0x5c4c44(0x1a6)]-0x1,_0x4febef;_0x346b6e>=0x0;_0x346b6e--)(_0x4febef=_0x25abfa[_0x346b6e])&&(_0x3457cc=(_0x59b11e?_0x4febef(_0x58a97f,_0x27b84f,_0x3457cc):_0x4febef(_0x3457cc))||_0x3457cc);return _0x59b11e&&_0x3457cc&&_0x58d990(_0x58a97f,_0x27b84f,_0x3457cc),_0x3457cc;},_0x4732a7=(_0x33b54d,_0x2676b9)=>(_0x4d6ad8,_0x370be3)=>_0x2676b9(_0x4d6ad8,_0x370be3,_0x33b54d);let _0x1fb14c=class extends _0x3eca57['RxDisposable']{constructor(_0x103fa9,_0xb26e01,_0x58f442){const _0x5a3382=_0x3e84f8;super(),_0x1de933(this,_0x5a3382(0x299),new Map()),_0x1de933(this,_0x5a3382(0x4f2),new _0x199df4[(_0x5a3382(0x307))]()),(this[_0x5a3382(0x339)]=_0x103fa9,this[_0x5a3382(0x249)]=_0xb26e01,this['_collabSessionService']=_0x58f442,this[_0x5a3382(0x176)]());}[_0x3e84f8(0x231)](){const _0x95807c=_0x3e84f8;super[_0x95807c(0x231)](),this['_entityInit$'][_0x95807c(0x1d3)](),this[_0x95807c(0x299)][_0x95807c(0x306)](_0x32ff4a=>_0x32ff4a['dispose']());}[_0x3e84f8(0x2fd)](_0x3db88d){const _0x3a9877=_0x3e84f8;return this[_0x3a9877(0x299)][_0x3a9877(0x2a7)](_0x3db88d)?this['_entities'][_0x3a9877(0x4af)](_0x3db88d)['cursorInfo$']:this[_0x3a9877(0x4f2)][_0x3a9877(0x52b)](_0x199df4[_0x3a9877(0x51d)](_0x3b93a5=>_0x3b93a5[_0x3a9877(0x13f)]===_0x3db88d),_0x199df4[_0x3a9877(0x256)](_0x16e40d=>_0x16e40d[_0x3a9877(0x45c)]));}[_0x3e84f8(0x176)](){const _0x31e4f8=_0x3e84f8;this['_univerInstanceService'][_0x31e4f8(0x362)](_0x3eca57[_0x31e4f8(0x3fd)][_0x31e4f8(0x28f)])[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x468)](this['dispose$']))[_0x31e4f8(0x4da)](async _0x18befc=>{const _0x407de3=_0x31e4f8,_0x399f80=_0x18befc[_0x407de3(0x286)](),_0x561560=await this['_startSheetCollabCursor'](_0x399f80);this[_0x407de3(0x4f2)]['next'](_0x561560),this[_0x407de3(0x299)][_0x407de3(0x1b8)](_0x399f80,_0x561560);}),this['_univerInstanceService'][_0x31e4f8(0x362)](_0x3eca57[_0x31e4f8(0x3fd)][_0x31e4f8(0x269)])[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x468)](this['dispose$']))[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x51d)](_0x29e12e=>!_0x29e12e['getUnitId']()['startsWith']('__')))[_0x31e4f8(0x4da)](async _0x225b17=>{const _0x2589aa=_0x31e4f8,_0x983811=_0x225b17['getUnitId'](),_0x19ae07=await this[_0x2589aa(0x3f4)](_0x983811);this['_entityInit$'][_0x2589aa(0x2d2)](_0x19ae07),this['_entities'][_0x2589aa(0x1b8)](_0x983811,_0x19ae07);}),_0x199df4[_0x31e4f8(0x148)](this['_univerInstanceService'][_0x31e4f8(0x3a5)](_0x3eca57[_0x31e4f8(0x3fd)][_0x31e4f8(0x269)]),this[_0x31e4f8(0x339)][_0x31e4f8(0x3a5)](_0x3eca57['UniverInstanceType'][_0x31e4f8(0x28f)]))[_0x31e4f8(0x52b)](_0x199df4[_0x31e4f8(0x468)](this[_0x31e4f8(0x138)]))[_0x31e4f8(0x4da)](_0x1f0d44=>{const _0x1c8819=_0x31e4f8,_0x4551b4=_0x1f0d44[_0x1c8819(0x286)](),_0x21b5a3=this[_0x1c8819(0x299)][_0x1c8819(0x4af)](_0x4551b4);_0x21b5a3&&(_0x21b5a3['dispose'](),this[_0x1c8819(0x299)][_0x1c8819(0x531)](_0x4551b4));});}async[_0x3e84f8(0x46b)](_0x458013){const _0x4693c5=_0x3e84f8,_0x25314c=await this[_0x4693c5(0x4e8)][_0x4693c5(0x2ca)](_0x458013),_0x6954a0=this['_injector'][_0x4693c5(0x2b5)](_0x380593,_0x458013,_0x25314c);return _0x6954a0['init'](),_0x6954a0;}async[_0x3e84f8(0x3f4)](_0x3da3ac){const _0xefa6f2=_0x3e84f8,_0x25a922=await this[_0xefa6f2(0x4e8)]['requireSession'](_0x3da3ac),_0x108e3b=this[_0xefa6f2(0x249)]['createInstance'](_0x23da87,_0x3da3ac,_0x25a922);return _0x108e3b[_0xefa6f2(0x352)](),_0x108e3b;}};_0x1fb14c=_0x4183b1([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57['LifecycleStages'][_0x3e84f8(0x4eb)],_0x1fb14c),_0x4732a7(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x4732a7(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x4732a7(0x2,_0x3eca57['Inject'](_0x2509f1[_0x3e84f8(0x332)]))],_0x1fb14c);const _0x10a292=0x14,_0x23912b=0xc8,_0x4ed291=0x4,_0x330d3c=0x5;function _0x2b3881(_0x263081,_0x519a2c){const _0xcc9c92=_0x3e84f8;let {radius:_0x4b34b7,width:_0x220d6f,height:_0x21bb15}=_0x519a2c;_0x4b34b7=_0x4b34b7!=null?_0x4b34b7:0x0,_0x220d6f=_0x220d6f!=null?_0x220d6f:0x1e,_0x21bb15=_0x21bb15!=null?_0x21bb15:0x1e;let _0x365684=0x0,_0xf83037=0x0,_0x58ee8b=0x0;_0x365684=_0xf83037=_0x58ee8b=Math[_0xcc9c92(0x342)](_0x4b34b7,_0x220d6f/0x2,_0x21bb15/0x2),_0x263081[_0xcc9c92(0x545)](),_0x263081[_0xcc9c92(0x367)](_0x365684,0x0),_0x263081[_0xcc9c92(0x32f)](_0x220d6f-_0xf83037,0x0),_0x263081['arc'](_0x220d6f-_0xf83037,_0xf83037,_0xf83037,Math['PI']*0x3/0x2,0x0,!0x1),_0x263081['lineTo'](_0x220d6f,_0x21bb15-_0x58ee8b),_0x263081[_0xcc9c92(0x1b0)](_0x220d6f-_0x58ee8b,_0x21bb15-_0x58ee8b,_0x58ee8b,0x0,Math['PI']/0x2,!0x1),_0x263081['lineTo'](0x0,_0x21bb15),_0x263081['lineTo'](0x0,_0x365684),_0x263081[_0xcc9c92(0x1b0)](_0x365684,_0x365684,_0x365684,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x263081['closePath'](),_0x519a2c[_0xcc9c92(0x483)]&&(_0x263081[_0xcc9c92(0x351)](),_0x263081[_0xcc9c92(0x27c)]=_0x519a2c[_0xcc9c92(0x483)],_0x519a2c[_0xcc9c92(0x156)]==='evenodd'?_0x263081[_0xcc9c92(0x483)](_0xcc9c92(0x33b)):_0x263081[_0xcc9c92(0x483)](),_0x263081[_0xcc9c92(0x3b4)]());}class _0x11a31 extends _0x29e386[_0x3e84f8(0x4e2)]{constructor(_0x34bbc0,_0x2e0b93){const _0x4f9b9e=_0x3e84f8;super(_0x34bbc0,_0x2e0b93),_0x1de933(this,'color'),_0x1de933(this,_0x4f9b9e(0x4e7)),(this[_0x4f9b9e(0x4cb)]=_0x2e0b93==null?void 0x0:_0x2e0b93[_0x4f9b9e(0x4cb)],this[_0x4f9b9e(0x4e7)]=_0x2e0b93==null?void 0x0:_0x2e0b93[_0x4f9b9e(0x4e7)]);}static[_0x3e84f8(0x11f)](_0x3b0682,_0x39f670){const _0x3d6bd3=_0x3e84f8,{text:_0x30efed,color:_0x530630}=_0x39f670;_0x3b0682[_0x3d6bd3(0x351)](),_0x3b0682[_0x3d6bd3(0x517)]=_0x3d6bd3(0x370);const _0x586a02=_0x3b0682[_0x3d6bd3(0x448)](_0x30efed)[_0x3d6bd3(0x1b3)],_0x598223=Math['min'](_0x586a02+0x2*_0x4ed291,_0x23912b);_0x2b3881(_0x3b0682,{'height':_0x10a292,'radius':0x4,'width':_0x598223,'fill':_0x530630,'evented':!0x1}),_0x3b0682['fillStyle']=_0x3d6bd3(0x1e9);const _0x4cfa7d=_0x4ed291,_0x4de797=_0x10a292-_0x330d3c,_0x14745a=_0x23912b-0x2*_0x4ed291;if(_0x586a02>_0x14745a){let _0x34df3f='',_0x4dbd2b=0x0;for(const _0x5049d6 of _0x30efed){const _0x4753e5=_0x3b0682[_0x3d6bd3(0x448)](_0x5049d6)['width'];if(_0x4dbd2b+_0x4753e5<=_0x14745a-_0x3b0682[_0x3d6bd3(0x448)](_0x3d6bd3(0x2d1))[_0x3d6bd3(0x1b3)])_0x34df3f+=_0x5049d6,_0x4dbd2b+=_0x4753e5;else{_0x34df3f+=_0x3d6bd3(0x2d1);break;}}_0x3b0682['fillText'](_0x34df3f,_0x4cfa7d,_0x4de797);}else _0x3b0682['fillText'](_0x30efed,_0x4cfa7d,_0x4de797);_0x3b0682[_0x3d6bd3(0x3b4)]();}[_0x3e84f8(0x345)](_0x552c75){_0x11a31['drawWith'](_0x552c75,this);}}const _0x1a2191=0x1,_0x4f986a=1.5;class _0x677fb extends _0x29e386[_0x3e84f8(0x4e2)]{constructor(_0x477b67,_0x507a94){const _0xd328c=_0x3e84f8;super(_0x477b67,_0x507a94),_0x1de933(this,_0xd328c(0x338)),_0x1de933(this,_0xd328c(0x4cf),!0x1),_0x1de933(this,_0xd328c(0x2bb)),_0x1de933(this,'_name',''),_0x1de933(this,'_labelPosition',_0xd328c(0x146)),_0x1de933(this,'_backgroundColor'),(_0x507a94&&this[_0xd328c(0x35c)](_0x507a94),this[_0xd328c(0x31b)]['subscribeEvent'](()=>this[_0xd328c(0x35c)]({'hovered':!0x0})),this[_0xd328c(0x494)]['subscribeEvent'](()=>this[_0xd328c(0x35c)]({'hovered':!0x1})));}[_0x3e84f8(0x35c)](_0x39c56d){const _0x6dd665=_0x3e84f8;var _0x5d79ae,_0x24e926,_0x4b3d78,_0x283cd0,_0x5b143e,_0x32a14d;this[_0x6dd665(0x338)]=(_0x5d79ae=_0x39c56d[_0x6dd665(0x4cb)])!=null?_0x5d79ae:this['_color'],this[_0x6dd665(0x4cf)]=(_0x24e926=_0x39c56d[_0x6dd665(0x43a)])!=null?_0x24e926:this[_0x6dd665(0x4cf)],this[_0x6dd665(0x2bb)]=(_0x4b3d78=_0x39c56d[_0x6dd665(0x4cd)])!=null?_0x4b3d78:this[_0x6dd665(0x2bb)],this['_name']=(_0x283cd0=_0x39c56d[_0x6dd665(0x52a)])!=null?_0x283cd0:this[_0x6dd665(0x1ac)],this[_0x6dd665(0x43e)]=(_0x5b143e=_0x39c56d[_0x6dd665(0x327)])!=null?_0x5b143e:this[_0x6dd665(0x43e)],this[_0x6dd665(0x361)]=(_0x32a14d=_0x39c56d[_0x6dd665(0x21a)])!=null?_0x32a14d:this[_0x6dd665(0x361)],this[_0x6dd665(0x4b2)]({'width':_0x39c56d[_0x6dd665(0x1b3)],'height':_0x39c56d[_0x6dd665(0x534)]});}[_0x3e84f8(0x4f3)](_0x5ab1d4){const _0x4f465c=_0x3e84f8,{row:_0x549fa9,column:_0x1c3bd7}=_0x5ab1d4;if(_0x549fa9>=this[_0x4f465c(0x2bb)]['startRow']&&_0x549fa9<=this[_0x4f465c(0x2bb)]['endRow']&&_0x1c3bd7>=this[_0x4f465c(0x2bb)]['startColumn']&&_0x1c3bd7<=this['_range'][_0x4f465c(0x1f8)]){this[_0x4f465c(0x35c)]({'hovered':!0x0});return;}this[_0x4f465c(0x35c)]({'hovered':!0x1});}[_0x3e84f8(0x2fb)](_0x5e369c){return!0x1;}[_0x3e84f8(0x345)](_0x3e3737){const _0x3208b6=_0x3e84f8;_0x29e386[_0x3208b6(0x1e3)][_0x3208b6(0x11f)](_0x3e3737,{'width':this[_0x3208b6(0x1b3)],'height':this[_0x3208b6(0x534)],'strokeWidth':_0x4f986a,'stroke':this[_0x3208b6(0x338)],'evented':!0x1,'fill':this[_0x3208b6(0x361)]}),this['_hovered']&&(_0x3e3737[_0x3208b6(0x351)](),_0x3e3737[_0x3208b6(0x326)](0x1,0x0,0x0,0x1,this[_0x3208b6(0x1b3)],this[_0x3208b6(0x43e)]===_0x3208b6(0x1fe)?0x0:-_0x10a292),_0x11a31[_0x3208b6(0x11f)](_0x3e3737,{'text':this['_name'],'color':this[_0x3208b6(0x338)]}),_0x3e3737[_0x3208b6(0x3b4)]());}}var _0x4fd88a=Object[_0x3e84f8(0x243)],_0x1ad23b=Object['getOwnPropertyDescriptor'],_0x141e00=(_0x26d8b8,_0x3d8416,_0x962129,_0x5f1b13)=>{const _0x428c29=_0x3e84f8;for(var _0x1f6f64=_0x5f1b13>0x1?void 0x0:_0x5f1b13?_0x1ad23b(_0x3d8416,_0x962129):_0x3d8416,_0x4a107c=_0x26d8b8[_0x428c29(0x1a6)]-0x1,_0x1b703d;_0x4a107c>=0x0;_0x4a107c--)(_0x1b703d=_0x26d8b8[_0x4a107c])&&(_0x1f6f64=(_0x5f1b13?_0x1b703d(_0x3d8416,_0x962129,_0x1f6f64):_0x1b703d(_0x1f6f64))||_0x1f6f64);return _0x5f1b13&&_0x1f6f64&&_0x4fd88a(_0x3d8416,_0x962129,_0x1f6f64),_0x1f6f64;},_0x5a7e34=(_0x48150a,_0x591dce)=>(_0x24d710,_0x3f7f00)=>_0x591dce(_0x24d710,_0x3f7f00,_0x48150a);const _0x19043c=0x1389;let _0x4d9935=class extends _0x3eca57['RxDisposable']{constructor(_0x4b94b8,_0x2dc91f,_0x2fa9fa,_0x3d5b0b){const _0x39026c=_0x3e84f8;super(),_0x1de933(this,'_cursors',new Set()),_0x1de933(this,_0x39026c(0x196),null),(this[_0x39026c(0x37f)]=_0x4b94b8,this[_0x39026c(0x33c)]=_0x2dc91f,this[_0x39026c(0x407)]=_0x2fa9fa,this[_0x39026c(0x2b8)]=_0x3d5b0b,this[_0x39026c(0x176)]());}[_0x3e84f8(0x176)](){const _0x20154d=_0x3e84f8;this['_sheetSkeletonManagerService'][_0x20154d(0x19e)]['pipe'](_0x46f2f0[_0x20154d(0x468)](this['dispose$']),_0x46f2f0[_0x20154d(0x256)](_0x1282e7=>{const _0x20cf2c=_0x20154d;if(_0x1282e7){const _0x23f2e4=_0x1282e7[_0x20cf2c(0x425)];return _0x199df4['combineLatest'](this[_0x20cf2c(0x407)][_0x20cf2c(0x2fd)](this[_0x20cf2c(0x37f)]['unitId']),this[_0x20cf2c(0x2b8)][_0x20cf2c(0x122)])[_0x20cf2c(0x52b)](_0x46f2f0[_0x20cf2c(0x1ad)](([_0x2798bb,_0x5efcbd])=>{const _0x178f90=new Map();return _0x2798bb['forEach']((_0x30cd59,_0x16a550)=>{const _0x116da4=_0x3242;if(_0x30cd59[_0x116da4(0x124)]===_0x23f2e4){const _0xe1e121={..._0x30cd59};_0xe1e121['color']=_0x5efcbd[_0x30cd59[_0x116da4(0x4cb)]],_0x178f90[_0x116da4(0x1b8)](_0x16a550,_0xe1e121);}}),{'skeleton':_0x1282e7,'cursors':_0x178f90};}));}return _0x199df4['of']({'skeleton':null,'cursors':new Map()});}))[_0x20154d(0x4da)](({skeleton:_0x484956,cursors:_0x53a1b9})=>{const _0x25a8e9=_0x20154d;this[_0x25a8e9(0x3e6)](),_0x484956&&this[_0x25a8e9(0x18e)](_0x484956,_0x53a1b9);}),this[_0x20154d(0x33c)]['currentSkeleton$'][_0x20154d(0x4da)](_0x2f6e68=>{const _0xd389e6=_0x20154d;if(_0x2f6e68==null)return;const {skeleton:_0xee1654}=_0x2f6e68,{scene:_0x1ed8ff}=this[_0xd389e6(0x37f)];_0x1ed8ff[_0xd389e6(0x47c)][_0xd389e6(0x4d4)](_0x7f76a4(_0x5a762a=>{const _0x509102=_0xd389e6;var _0x34a246,_0x3c621b;const {offsetX:_0x48b596,offsetY:_0x54e42c}=_0x5a762a,{x:_0x5b9d61,y:_0x5a3980}=_0x1ed8ff[_0x509102(0x478)](_0x29e386['Vector2'][_0x509102(0x1e7)]([_0x48b596,_0x54e42c])),{scaleX:_0x5572f1,scaleY:_0x9cc6fb}=_0x1ed8ff[_0x509102(0x50c)](),_0x5c571f=_0x1ed8ff[_0x509102(0x3ca)](_0x346aeb[_0x509102(0x16b)][_0x509102(0x502)]),_0x5e2e99=_0x1ed8ff['getVpScrollXYInfoByPosToVp'](_0x29e386['Vector2'][_0x509102(0x1e7)]([_0x5b9d61,_0x5a3980]),_0x5c571f),_0x4315c6=_0xee1654['getCellPositionByOffset'](_0x48b596,_0x54e42c,_0x5572f1,_0x9cc6fb,_0x5e2e99);((_0x34a246=this['_lastPointer'])==null?void 0x0:_0x34a246[_0x509102(0x3b3)])===_0x4315c6[_0x509102(0x3b3)]&&((_0x3c621b=this[_0x509102(0x196)])==null?void 0x0:_0x3c621b[_0x509102(0x4fb)])===_0x4315c6[_0x509102(0x4fb)]||this[_0x509102(0x4ef)][_0x509102(0x306)](_0x43f38e=>{const _0x518dcc=_0x509102;_0x43f38e[_0x518dcc(0x4f3)](_0x4315c6);});},0x64));});}[_0x3e84f8(0x18e)](_0x59f0fe,_0x1fc848){const _0x52e17e=_0x3e84f8;var _0x3e9ebd;const _0x3c68ea=(_0x3e9ebd=this[_0x52e17e(0x33c)][_0x52e17e(0x33a)]())==null?void 0x0:_0x3e9ebd[_0x52e17e(0x140)];if(!_0x3c68ea)return;const _0x5aa1b3=this[_0x52e17e(0x1f5)]();if(!_0x5aa1b3)return;this[_0x52e17e(0x4ef)][_0x52e17e(0x306)](_0x395b44=>{const _0x2b53ee=_0x52e17e;_0x395b44[_0x2b53ee(0x205)]();});const {scene:_0x21b6f0}=_0x5aa1b3,_0x143704=_0x4c1950(Array[_0x52e17e(0x41e)](_0x1fc848[_0x52e17e(0x3a2)]()))[_0x52e17e(0x1ad)](_0x2dc0a7=>{const _0x36b8fa=_0x52e17e,{color:_0x45f80f,range:_0x5eb2f6,name:_0x191fd9,selection:_0x37fdca,sheetID:_0x378fc8}=_0x2dc0a7,{startColumn:_0x129846,startRow:_0x4ff87a,endColumn:_0x16b920,endRow:_0x43f370}=_0x5eb2f6,_0x5cef7d=_0x346aeb['getCoordByCell'](_0x4ff87a,_0x129846,_0x21b6f0,_0x3c68ea),_0x52b984=_0x346aeb[_0x36b8fa(0x13e)](_0x43f370,_0x16b920,_0x21b6f0,_0x3c68ea),{columnHeaderHeightAndMarginTop:_0x50fc5f}=_0x3c68ea,{startX:_0x4d8cb0,startY:_0xcf4424}=_0x5cef7d,{endX:_0x393d5f,endY:_0x5739a9}=_0x52b984,_0x4709f7=_0x393d5f-_0x4d8cb0,_0x386c7f=_0x5739a9-_0xcf4424,_0x193cd9={'labelPosition':_0xcf4424-_0x50fc5f>=_0x10a292?_0x36b8fa(0x146):_0x36b8fa(0x1fe),'sheetID':_0x378fc8,'range':_0x5eb2f6,'color':_0x45f80f,'name':_0x191fd9,'selection':_0x37fdca,'left':_0x4d8cb0,'top':_0xcf4424,'width':_0x4709f7,'height':_0x386c7f,'evented':!0x1,'zIndex':_0x19043c};return new _0x677fb(_0x191fd9,_0x193cd9);});_0x21b6f0[_0x52e17e(0x492)](_0x143704,_0x1a2191),this[_0x52e17e(0x4ef)]=new Set(_0x143704);}[_0x3e84f8(0x3e6)](){const _0xe0b5c=_0x3e84f8;var _0x2db0cc;(_0x2db0cc=this[_0xe0b5c(0x4ef)])==null||_0x2db0cc[_0xe0b5c(0x306)](_0x2b5be9=>_0x2b5be9[_0xe0b5c(0x231)]());}[_0x3e84f8(0x1f5)](){const _0x274c93=_0x3e84f8;return _0x346aeb['getSheetObject'](this['_context'][_0x274c93(0x3ae)],this[_0x274c93(0x37f)]);}};_0x4d9935=_0x141e00([_0x5a7e34(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x346aeb[_0x3e84f8(0x4ee)])),_0x5a7e34(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x1fb14c)),_0x5a7e34(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x1a5)]))],_0x4d9935);function _0x4c1950(_0x2eb7f4){const _0x4149d9=_0x3e84f8,_0x1e8221=new Map();return _0x2eb7f4[_0x4149d9(0x306)](_0x548f23=>{const _0x3e01a1=_0x4149d9;if(_0x1e8221[_0x3e01a1(0x2a7)](_0x548f23[_0x3e01a1(0x13a)])){const _0x5d3985=_0x1e8221[_0x3e01a1(0x4af)](_0x548f23[_0x3e01a1(0x13a)]);_0x5d3985[_0x3e01a1(0x52a)]+=',\x20'+_0x548f23[_0x3e01a1(0x52a)];}else _0x1e8221['set'](_0x548f23['selection'],_0x548f23);}),Array['from'](_0x1e8221[_0x4149d9(0x3a2)]());}var _0x1bcb4a=function(){const _0xa8173e=_0x3e84f8;return _0x1bcb4a=Object['assign']||function(_0x5d00be){const _0x42639f=_0x3242;for(var _0x2cd8d8,_0x3fbe73=0x1,_0x5de969=arguments[_0x42639f(0x1a6)];_0x3fbe73<_0x5de969;_0x3fbe73++){_0x2cd8d8=arguments[_0x3fbe73];for(var _0x258d00 in _0x2cd8d8)Object['prototype'][_0x42639f(0x39b)][_0x42639f(0x48c)](_0x2cd8d8,_0x258d00)&&(_0x5d00be[_0x258d00]=_0x2cd8d8[_0x258d00]);}return _0x5d00be;},_0x1bcb4a[_0xa8173e(0x440)](this,arguments);},_0x496380=function(_0x7abeb2,_0x31a919){const _0x118b13=_0x3e84f8;var _0x446f63={};for(var _0x553082 in _0x7abeb2)Object[_0x118b13(0x272)][_0x118b13(0x39b)]['call'](_0x7abeb2,_0x553082)&&_0x31a919[_0x118b13(0x16d)](_0x553082)<0x0&&(_0x446f63[_0x553082]=_0x7abeb2[_0x553082]);if(_0x7abeb2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2463c9=0x0,_0x553082=Object[_0x118b13(0x115)](_0x7abeb2);_0x2463c9<_0x553082[_0x118b13(0x1a6)];_0x2463c9++)_0x31a919[_0x118b13(0x16d)](_0x553082[_0x2463c9])<0x0&&Object[_0x118b13(0x272)]['propertyIsEnumerable'][_0x118b13(0x48c)](_0x7abeb2,_0x553082[_0x2463c9])&&(_0x446f63[_0x553082[_0x2463c9]]=_0x7abeb2[_0x553082[_0x2463c9]]);}return _0x446f63;},_0x4e5e5b=_0x2b3f02['forwardRef'](function(_0x24e5d6,_0x10d0a8){const _0x168d0a=_0x3e84f8;var _0x469c54=_0x24e5d6[_0x168d0a(0x2f8)],_0x1e506b=_0x24e5d6['id'],_0x314697=_0x24e5d6['className'],_0x2df842=_0x24e5d6[_0x168d0a(0x358)],_0x1da037=_0x496380(_0x24e5d6,[_0x168d0a(0x2f8),'id',_0x168d0a(0x24b),_0x168d0a(0x358)]),_0x44a803=_0x168d0a(0x411)[_0x168d0a(0x360)](_0x1e506b,'\x20')[_0x168d0a(0x360)](_0x314697||'')[_0x168d0a(0x4d7)](),_0x7c4b4e=_0x2b3f02[_0x168d0a(0x137)]('_'[_0x168d0a(0x360)](_0x457770()));return _0x44e28b(_0x469c54,''[_0x168d0a(0x360)](_0x1e506b),{'defIds':_0x469c54[_0x168d0a(0x191)],'idSuffix':_0x7c4b4e[_0x168d0a(0x501)]},_0x1bcb4a({'ref':_0x10d0a8,'className':_0x44a803},_0x1da037),_0x2df842);});function _0x44e28b(_0x55af5e,_0x2b47ae,_0x5adc09,_0x4201ba,_0x502ea2){const _0x129eed=_0x3e84f8;return _0x2b3f02[_0x129eed(0x14b)](_0x55af5e[_0x129eed(0x36c)],_0x1bcb4a(_0x1bcb4a({'key':_0x2b47ae},_0x5ab4e1(_0x55af5e,_0x5adc09,_0x502ea2)),_0x4201ba),(_0x52a72d(_0x55af5e,_0x5adc09)['children']||[])[_0x129eed(0x1ad)](function(_0x446654,_0x197ca2){const _0x2b5932=_0x129eed;return _0x44e28b(_0x446654,''['concat'](_0x2b47ae,'-')[_0x2b5932(0x360)](_0x55af5e[_0x2b5932(0x36c)],'-')['concat'](_0x197ca2),_0x5adc09,void 0x0,_0x502ea2);}));}function _0x5ab4e1(_0x6bceda,_0xf46b01,_0x3d8d0f){const _0x303117=_0x3e84f8;var _0x1ee3a7=_0x1bcb4a({},_0x6bceda[_0x303117(0x2fc)]);_0x3d8d0f!=null&&_0x3d8d0f[_0x303117(0x219)]&&_0x1ee3a7[_0x303117(0x483)]===_0x303117(0x219)&&(_0x1ee3a7[_0x303117(0x483)]=_0x3d8d0f[_0x303117(0x219)]);var _0x46eddb=_0xf46b01['defIds'];return!_0x46eddb||_0x46eddb[_0x303117(0x1a6)]===0x0||(_0x6bceda['tag']==='use'&&_0x1ee3a7[_0x303117(0x237)]&&(_0x1ee3a7[_0x303117(0x237)]=_0x1ee3a7['xlink:href']+_0xf46b01[_0x303117(0x18d)]),Object['entries'](_0x1ee3a7)[_0x303117(0x306)](function(_0x3eb263){var _0x476b6a=_0x3eb263[0x0],_0x541faa=_0x3eb263[0x1];typeof _0x541faa=='string'&&(_0x1ee3a7[_0x476b6a]=_0x541faa['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0xf46b01['idSuffix'],')')));})),_0x1ee3a7;}function _0x52a72d(_0x49491d,_0x58c469){const _0x2d9452=_0x3e84f8;var _0x339227,_0x51509c=_0x58c469[_0x2d9452(0x191)];return!_0x51509c||_0x51509c[_0x2d9452(0x1a6)]===0x0?_0x49491d:_0x49491d['tag']==='defs'&&(!((_0x339227=_0x49491d[_0x2d9452(0x1b7)])===null||_0x339227===void 0x0)&&_0x339227[_0x2d9452(0x1a6)])?_0x1bcb4a(_0x1bcb4a({},_0x49491d),{'children':_0x49491d[_0x2d9452(0x1b7)][_0x2d9452(0x1ad)](function(_0x4d8a2b){const _0xc9f6f=_0x2d9452;return typeof _0x4d8a2b[_0xc9f6f(0x2fc)]['id']==_0xc9f6f(0x463)&&_0x51509c&&_0x51509c[_0xc9f6f(0x16d)](_0x4d8a2b[_0xc9f6f(0x2fc)]['id'])>-0x1?_0x1bcb4a(_0x1bcb4a({},_0x4d8a2b),{'attrs':_0x1bcb4a(_0x1bcb4a({},_0x4d8a2b[_0xc9f6f(0x2fc)]),{'id':_0x4d8a2b[_0xc9f6f(0x2fc)]['id']+_0x58c469[_0xc9f6f(0x18d)]})}):_0x4d8a2b;})}):_0x49491d;}function _0x457770(){const _0x9f37d2=_0x3e84f8;return Math[_0x9f37d2(0x2ab)]()[_0x9f37d2(0x151)](0x24)[_0x9f37d2(0x3db)](0x2,0x8);}_0x4e5e5b[_0x3e84f8(0x524)]=_0x3e84f8(0x2c2);var _0x27e7f8={'tag':_0x3e84f8(0x1bb),'attrs':{'fill':'none','viewBox':_0x3e84f8(0x2cf),'width':_0x3e84f8(0x29d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3e84f8(0x390)},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'stroke':_0x3e84f8(0x304),'d':_0x3e84f8(0x132),'strokeLinecap':_0x3e84f8(0x311),'strokeLinejoin':_0x3e84f8(0x311),'strokeWidth':1.2}}]},{'tag':_0x3e84f8(0x242),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'fill':_0x3e84f8(0x11e),'d':_0x3e84f8(0x19c)}}]}]}],'defIds':[_0x3e84f8(0x2dc)]},_0x5dd05b=_0x2b3f02[_0x3e84f8(0x278)](function(_0xd9b66b,_0x138308){const _0x14b3c4=_0x3e84f8;return _0x2b3f02['createElement'](_0x4e5e5b,Object[_0x14b3c4(0x4ca)]({},_0xd9b66b,{'id':_0x14b3c4(0x40e),'ref':_0x138308,'icon':_0x27e7f8}));});_0x5dd05b['displayName']=_0x3e84f8(0x24f);var _0x59a786={'tag':_0x3e84f8(0x1bb),'attrs':{'fill':_0x3e84f8(0x31c),'viewBox':_0x3e84f8(0x47b),'width':_0x3e84f8(0x29d),'height':_0x3e84f8(0x29d)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e84f8(0x25b)},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'stroke':_0x3e84f8(0x304),'d':_0x3e84f8(0x393),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3e84f8(0x242),'attrs':{},'children':[{'tag':_0x3e84f8(0x51e),'attrs':{'id':_0x3e84f8(0x4dc)},'children':[{'tag':_0x3e84f8(0x290),'attrs':{'fill':_0x3e84f8(0x11e),'d':_0x3e84f8(0x19c),'transform':_0x3e84f8(0x208)}}]}]}],'defIds':[_0x3e84f8(0x4dc)]},_0x423869=_0x2b3f02[_0x3e84f8(0x278)](function(_0x26f900,_0x1c6db5){const _0x3d210d=_0x3e84f8;return _0x2b3f02['createElement'](_0x4e5e5b,Object[_0x3d210d(0x4ca)]({},_0x26f900,{'id':_0x3d210d(0x1e0),'ref':_0x1c6db5,'icon':_0x59a786}));});_0x423869[_0x3e84f8(0x524)]='OnLineSingle';const _0x369528={'onlineStatusIcon':_0x3e84f8(0x464),'onlineStatusTitle':_0x3e84f8(0x147),'onlineStatus':_0x3e84f8(0x454),'online':_0x3e84f8(0x2a2),'offline':_0x3e84f8(0x451)};function _0x2a1322(_0x20cef1){const _0x50a4ae=_0x3e84f8;switch(_0x20cef1){case _0x4bd68c[_0x50a4ae(0x535)]:return _0x50a4ae(0x509);case _0x4bd68c['CONFLICT']:return _0x50a4ae(0x350);case _0x4bd68c[_0x50a4ae(0x384)]:return _0x50a4ae(0x39d);case _0x4bd68c[_0x50a4ae(0x3c6)]:return _0x50a4ae(0x412);case _0x4bd68c[_0x50a4ae(0x1ab)]:case _0x4bd68c[_0x50a4ae(0x1a3)]:case _0x4bd68c[_0x50a4ae(0x2ed)]:return _0x50a4ae(0x258);case _0x4bd68c[_0x50a4ae(0x2f9)]:return _0x50a4ae(0x212);}}function _0x352a6e(_0x209098){const _0x562e95=_0x3e84f8,{status$:_0x2cfb8c}=_0x209098,_0xbfce78=_0x2ede89[_0x562e95(0x28d)](_0x2cfb8c,_0x4bd68c[_0x562e95(0x3c6)]),_0x18a696=_0x3eca57[_0x562e95(0x44a)](_0x3eca57[_0x562e95(0x477)]),_0x34f4b1=_0x3eca57[_0x562e95(0x44a)](_0x2509f1[_0x562e95(0x332)]),_0x575339=_0xbfce78!==_0x4bd68c[_0x562e95(0x535)],_0x365044=_0x18a696['t'](_0x2a1322(_0xbfce78)),_0xbc7ac6=_0x4b450e(_0x369528[_0x562e95(0x343)],{[_0x369528[_0x562e95(0x314)]]:_0x575339,[_0x369528[_0x562e95(0x127)]]:!_0x575339}),_0x596a7d=_0x575339?_0x2b3f02[_0x562e95(0x14b)](_0x423869,null):_0x2b3f02['createElement'](_0x5dd05b,null),_0x2dd308=_0x2b3f02[_0x562e95(0x498)](()=>{const _0x3aa60b=_0x562e95;_0x575339||_0x34f4b1[_0x3aa60b(0x3f2)]();},[_0x575339,_0x34f4b1]);function _0x48227a(){const _0x156c10=_0x562e95;return _0x2b3f02['createElement']('div',{'className':_0xbc7ac6,'onClick':_0x2dd308},_0x2b3f02['createElement'](_0x156c10(0x295),{'className':_0x369528[_0x156c10(0x2e6)]},_0x596a7d),_0x2b3f02['createElement'](_0x156c10(0x295),{'className':_0x369528[_0x156c10(0x467)]},_0x365044));}return _0x575339?_0x48227a():_0x2b3f02[_0x562e95(0x14b)](_0xf694dc[_0x562e95(0x2d8)],{'title':_0x18a696['t'](_0x562e95(0x280))},_0x48227a());}var _0x5f1ec7=Object[_0x3e84f8(0x243)],_0x294e71=Object[_0x3e84f8(0x439)],_0x3302a2=(_0xe003d8,_0x5eefc9,_0x24745b,_0x20ea36)=>{const _0x261daa=_0x3e84f8;for(var _0x220d07=_0x20ea36>0x1?void 0x0:_0x20ea36?_0x294e71(_0x5eefc9,_0x24745b):_0x5eefc9,_0x2d82d1=_0xe003d8[_0x261daa(0x1a6)]-0x1,_0xbeb73e;_0x2d82d1>=0x0;_0x2d82d1--)(_0xbeb73e=_0xe003d8[_0x2d82d1])&&(_0x220d07=(_0x20ea36?_0xbeb73e(_0x5eefc9,_0x24745b,_0x220d07):_0xbeb73e(_0x220d07))||_0x220d07);return _0x20ea36&&_0x220d07&&_0x5f1ec7(_0x5eefc9,_0x24745b,_0x220d07),_0x220d07;},_0x25fec0=(_0x578ed4,_0x4e0747)=>(_0x590ec8,_0x5c0291)=>_0x4e0747(_0x590ec8,_0x5c0291,_0x578ed4);_0x2509f1[_0x3e84f8(0x300)]=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x689103,_0x27e74b,_0x3b37a2,_0x25dc4d){const _0x49da18=_0x3e84f8;super(),_0x1de933(this,_0x49da18(0x3ff),new _0x199df4[(_0x49da18(0x244))](_0x4bd68c[_0x49da18(0x3c6)])),(this[_0x49da18(0x339)]=_0x689103,this[_0x49da18(0x260)]=_0x27e74b,this['_injector']=_0x3b37a2,this[_0x49da18(0x238)]=_0x25dc4d,this[_0x49da18(0x2af)](),this[_0x49da18(0x401)]());}[_0x3e84f8(0x401)](){const _0x347334=_0x3e84f8;this[_0x347334(0x4ed)](this[_0x347334(0x339)][_0x347334(0x131)]['pipe'](_0x199df4[_0x347334(0x256)](()=>{const _0x4316d4=_0x347334,_0x978408=this[_0x4316d4(0x339)]['getFocusedUnit']();return _0x978408?this[_0x4316d4(0x238)][_0x4316d4(0x26f)](_0x978408[_0x4316d4(0x286)]()):_0x199df4['of'](null);}),_0x199df4[_0x347334(0x256)](_0x551b63=>_0x551b63?_0x551b63[_0x347334(0x225)]:_0x199df4['of'](_0x4bd68c[_0x347334(0x3c6)])))[_0x347334(0x4da)](_0x2a2066=>{const _0x5e8d97=_0x347334;this[_0x5e8d97(0x3ff)][_0x5e8d97(0x2d2)](_0x2a2066);}));}[_0x3e84f8(0x2af)](){const _0x1ef437=_0x3e84f8;this[_0x1ef437(0x4ed)](this[_0x1ef437(0x260)]['registerComponent'](_0x2ede89['BuiltInUIPart'][_0x1ef437(0x1d7)],()=>_0x3eca57[_0x1ef437(0x470)](_0x23e810({'status$':this['_status$'][_0x1ef437(0x183)]()}),this[_0x1ef437(0x249)])));}},_0x2509f1[_0x3e84f8(0x300)]=_0x3302a2([_0x25fec0(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x25fec0(0x1,_0x2ede89[_0x3e84f8(0x168)]),_0x25fec0(0x2,_0x3eca57['Inject'](_0x3eca57['Injector'])),_0x25fec0(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x171)]))],_0x2509f1[_0x3e84f8(0x300)]);function _0x23e810(_0x4a57d5){const {status$:_0x5e805d}=_0x4a57d5;return function(){const _0x59fde8=_0x3242;return _0x2b3f02[_0x59fde8(0x14b)](_0x352a6e,{'status$':_0x5e805d});};}const _0xd144bd=_0x3eca57['createIdentifier'](_0x3e84f8(0x235));var _0x14d98d=Object[_0x3e84f8(0x243)],_0x235553=Object[_0x3e84f8(0x439)],_0x4e0f5a=(_0x3d9f63,_0x2b7534,_0xf6cb93,_0x44d2e6)=>{const _0x5b6995=_0x3e84f8;for(var _0x46a45a=_0x44d2e6>0x1?void 0x0:_0x44d2e6?_0x235553(_0x2b7534,_0xf6cb93):_0x2b7534,_0x14c047=_0x3d9f63[_0x5b6995(0x1a6)]-0x1,_0x3ea887;_0x14c047>=0x0;_0x14c047--)(_0x3ea887=_0x3d9f63[_0x14c047])&&(_0x46a45a=(_0x44d2e6?_0x3ea887(_0x2b7534,_0xf6cb93,_0x46a45a):_0x3ea887(_0x46a45a))||_0x46a45a);return _0x44d2e6&&_0x46a45a&&_0x14d98d(_0x2b7534,_0xf6cb93,_0x46a45a),_0x46a45a;},_0x359087=(_0x31b04c,_0x200e75)=>(_0xf6d122,_0x2915fb)=>_0x200e75(_0xf6d122,_0x2915fb,_0x31b04c);_0x2509f1[_0x3e84f8(0x4bf)]=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x3bc42e,_0x2a2198,_0x18577f,_0x437b5d,_0x42f2d0,_0x579867){const _0x37bf19=_0x3e84f8;super(),this['_urlService']=_0x3bc42e,this['_logService']=_0x2a2198,this['_commandService']=_0x18577f,this[_0x37bf19(0x442)]=_0x437b5d,this['_snapshotService']=_0x42f2d0,_0x579867?_0x579867==null||_0x579867['whenReady']()[_0x37bf19(0x504)](()=>this[_0x37bf19(0x176)]()):(this[_0x37bf19(0x31d)][_0x37bf19(0x3d9)](_0x37bf19(0x12b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x37bf19(0x176)]());}async[_0x3e84f8(0x176)](){const _0x1324c2=_0x3e84f8,_0x212714=this[_0x1324c2(0x4a4)][_0x1324c2(0x34d)]('unit'),_0x2b7836=this[_0x1324c2(0x4a4)][_0x1324c2(0x34d)]('type');if(!_0x212714||!_0x2b7836){this[_0x1324c2(0x31d)][_0x1324c2(0x3d9)](_0x1324c2(0x12b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2b7836)){case _0x588a36[_0x1324c2(0x28f)]:{const _0x5543d8=await this[_0x1324c2(0x142)](_0x212714);this['_setupSubUnitSync'](_0x5543d8);break;}case _0x588a36[_0x1324c2(0x269)]:{await this['_loadDoc'](_0x212714);break;}default:{this[_0x1324c2(0x31d)][_0x1324c2(0x543)](_0x1324c2(0x12b),_0x1324c2(0x187));break;}}}async['_setupSubUnitSync'](_0x2d82a5){const _0x435476=_0x3e84f8;await this[_0x435476(0x49a)](_0x2d82a5),_0x2d82a5[_0x435476(0x2e5)][_0x435476(0x52b)](_0x199df4['takeUntil'](this['dispose$']))[_0x435476(0x4da)](_0x511829=>{_0x511829&&this['_updateURLWithCurrentState'](_0x511829);}),this[_0x435476(0x4a4)][_0x435476(0x3fc)][_0x435476(0x52b)](_0x199df4['takeUntil'](this[_0x435476(0x138)]))[_0x435476(0x4da)](()=>this[_0x435476(0x49a)](_0x2d82a5));}['_updateURLWithCurrentState'](_0x15bcc3,_0x1cec05=!0x1){const _0x5f81ec=_0x3e84f8,_0x43ec8a=this[_0x5f81ec(0x4a4)]['getParam'](_0x5f81ec(0x161));_0x15bcc3['getSheetId']()!==_0x43ec8a&&this['_urlService']['setParam'](_0x5f81ec(0x161),_0x15bcc3[_0x5f81ec(0x302)](),_0x1cec05);}async[_0x3e84f8(0x49a)](_0x5029d8){const _0x4bdbe1=_0x3e84f8;var _0x390e01;const _0x2dd88e=this[_0x4bdbe1(0x4a4)][_0x4bdbe1(0x34d)](_0x4bdbe1(0x161));if(!_0x2dd88e||!_0x5029d8[_0x4bdbe1(0x37e)](_0x2dd88e)){const _0x5607a4=_0x5029d8[_0x4bdbe1(0x2a3)]()[0x0],_0x26d3e9=_0x5029d8[_0x4bdbe1(0x37e)](_0x5607a4);if(!_0x26d3e9)return;this[_0x4bdbe1(0x2eb)](_0x26d3e9,!0x0),await this[_0x4bdbe1(0x30a)]['executeCommand'](_0x9f218b['SetWorksheetActivateCommand']['id'],{'unitId':_0x5029d8['getUnitId'](),'subUnitId':_0x5607a4});return;}((_0x390e01=_0x5029d8[_0x4bdbe1(0x4a9)]())==null?void 0x0:_0x390e01[_0x4bdbe1(0x302)]())!==_0x2dd88e&&await this[_0x4bdbe1(0x30a)][_0x4bdbe1(0x17c)](_0x9f218b[_0x4bdbe1(0x3bc)]['id'],{'unitId':_0x5029d8[_0x4bdbe1(0x286)](),'subUnitId':_0x2dd88e});}async[_0x3e84f8(0x142)](_0x31a4a0){const _0x75f70e=_0x3e84f8;let _0x3cce6e=0x0;const _0x36e174=await this[_0x75f70e(0x442)]['loadOfflineData'](_0x31a4a0);return _0x36e174&&(_0x36e174[_0x75f70e(0x4f5)]||_0x36e174[_0x75f70e(0x313)][_0x75f70e(0x1a6)]!==0x0)&&(_0x3cce6e=_0x36e174[_0x75f70e(0x3d6)]),_0x3cce6e===0x0&&this[_0x75f70e(0x31d)][_0x75f70e(0x3d9)](_0x75f70e(0x12b),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x31a4a0,_0x3cce6e);}async[_0x3e84f8(0x455)](_0x4af6e5){const _0x266866=_0x3e84f8;let _0x1c4f7f=0x0;const _0x4db6c7=await this[_0x266866(0x442)][_0x266866(0x1d5)](_0x4af6e5);return _0x4db6c7&&(_0x4db6c7['awaitingChangeset']||_0x4db6c7[_0x266866(0x313)]['length']!==0x0)&&(_0x1c4f7f=_0x4db6c7[_0x266866(0x3d6)]),_0x1c4f7f===0x0&&this[_0x266866(0x31d)][_0x266866(0x3d9)]('[DataLoaderController]',_0x266866(0x38d)),this[_0x266866(0x4a2)][_0x266866(0x214)](_0x4af6e5,_0x1c4f7f);}},_0x2509f1[_0x3e84f8(0x4bf)]=_0x4e0f5a([_0x3eca57['OnLifecycle'](_0x3eca57[_0x3e84f8(0x377)][_0x3e84f8(0x4eb)],_0x2509f1[_0x3e84f8(0x4bf)]),_0x359087(0x0,_0xd144bd),_0x359087(0x1,_0x3eca57[_0x3e84f8(0x391)]),_0x359087(0x2,_0x3eca57['ICommandService']),_0x359087(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1[_0x3e84f8(0x373)])),_0x359087(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x1474a0[_0x3e84f8(0x2d5)])),_0x359087(0x5,_0x3eca57[_0x3e84f8(0x3f3)](_0x2b3044[_0x3e84f8(0x49b)]))],_0x2509f1[_0x3e84f8(0x4bf)]);var _0x374249=Object['defineProperty'],_0x368361=Object[_0x3e84f8(0x439)],_0x38207f=(_0x1891c5,_0x4ee11b,_0x2bfe93,_0x4caab9)=>{const _0x5b3850=_0x3e84f8;for(var _0x3676ee=_0x4caab9>0x1?void 0x0:_0x4caab9?_0x368361(_0x4ee11b,_0x2bfe93):_0x4ee11b,_0x3b18ca=_0x1891c5[_0x5b3850(0x1a6)]-0x1,_0x4325d7;_0x3b18ca>=0x0;_0x3b18ca--)(_0x4325d7=_0x1891c5[_0x3b18ca])&&(_0x3676ee=(_0x4caab9?_0x4325d7(_0x4ee11b,_0x2bfe93,_0x3676ee):_0x4325d7(_0x3676ee))||_0x3676ee);return _0x4caab9&&_0x3676ee&&_0x374249(_0x4ee11b,_0x2bfe93,_0x3676ee),_0x3676ee;},_0x33d75f=(_0x12572f,_0x71fbc)=>(_0x10a6c5,_0x310664)=>_0x71fbc(_0x10a6c5,_0x310664,_0x12572f);const _0x141b2d=_0x3e84f8(0x49d),_0x45dee9=_0x3e84f8(0x234);let _0x495f33=class extends _0x3eca57['Disposable']{constructor(_0x1a2b52,_0x5e6e5b){const _0x17f95c=_0x3e84f8;super(),this[_0x17f95c(0x339)]=_0x1a2b52,this['_configService']=_0x5e6e5b,this['_init']();}['_init'](){const _0x16dc9e=_0x3e84f8;this['disposeWithMe'](_0x3eca57[_0x16dc9e(0x340)](this[_0x16dc9e(0x339)]['focused$'][_0x16dc9e(0x4da)](()=>{const _0x11d25e=_0x16dc9e;var _0x1a5357;const _0x1db00d=this[_0x11d25e(0x339)][_0x11d25e(0x298)]();let _0x457433=(_0x1a5357=this[_0x11d25e(0x466)][_0x11d25e(0x22e)](_0x141b2d))!=null?_0x1a5357:_0x45dee9;_0x1db00d instanceof _0x3eca57[_0x11d25e(0x1a9)]&&(_0x457433=_0x1db00d[_0x11d25e(0x52a)]),document[_0x11d25e(0x3bb)]=_0x457433;})));}};_0x495f33=_0x38207f([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57[_0x3e84f8(0x377)][_0x3e84f8(0x2ea)],_0x495f33),_0x33d75f(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x33d75f(0x1,_0x3eca57['IConfigService'])],_0x495f33);var _0x108153=Object[_0x3e84f8(0x243)],_0x2b7e46=Object[_0x3e84f8(0x439)],_0x213777=(_0x14aa0b,_0x22bbdc,_0x5af95c,_0xea1db)=>{const _0x30d0e4=_0x3e84f8;for(var _0x24e741=_0xea1db>0x1?void 0x0:_0xea1db?_0x2b7e46(_0x22bbdc,_0x5af95c):_0x22bbdc,_0x4f0d81=_0x14aa0b[_0x30d0e4(0x1a6)]-0x1,_0xb16eac;_0x4f0d81>=0x0;_0x4f0d81--)(_0xb16eac=_0x14aa0b[_0x4f0d81])&&(_0x24e741=(_0xea1db?_0xb16eac(_0x22bbdc,_0x5af95c,_0x24e741):_0xb16eac(_0x24e741))||_0x24e741);return _0xea1db&&_0x24e741&&_0x108153(_0x22bbdc,_0x5af95c,_0x24e741),_0x24e741;},_0x19126c=(_0x48c7d5,_0x41700a)=>(_0x4ddedc,_0x5e9fe7)=>_0x41700a(_0x4ddedc,_0x5e9fe7,_0x48c7d5);_0x2509f1[_0x3e84f8(0x1a7)]=class{constructor(_0xdedb7e,_0x44a2d8){const _0x476910=_0x3e84f8;this[_0x476910(0x466)]=_0xdedb7e,this['_httpService']=_0x44a2d8;}async[_0x3e84f8(0x20a)](_0x3b9343,_0x558168){const _0x2d479a=_0x3e84f8;var _0x5cdaba;const {unitID:_0x3882af,type:_0x2f06a5,revision:_0x21bd6d=0x0}=_0x558168,_0x407c0d=this[_0x2d479a(0x1db)]()+'/'+_0x2f06a5+_0x2d479a(0x29c)+_0x3882af+_0x2d479a(0x226)+_0x21bd6d,_0x17a88a=(await this[_0x2d479a(0x129)][_0x2d479a(0x4af)](_0x407c0d))[_0x2d479a(0x505)],_0x565c9d=(_0x5cdaba=_0x17a88a[_0x2d479a(0x27d)])==null?void 0x0:_0x5cdaba['workbook'];if(_0x565c9d){const _0x34b7a7=_0x565c9d==null?void 0x0:_0x565c9d['originalMeta'],_0x497a2d=_0x1474a0[_0x2d479a(0x49f)]['encode'](_0x1474a0[_0x2d479a(0x443)](_0x34b7a7));_0x565c9d[_0x2d479a(0x37b)]=_0x497a2d,Object[_0x2d479a(0x2da)](_0x565c9d[_0x2d479a(0x294)])['forEach'](([,_0x22109b])=>{const _0x3584a7=_0x2d479a,_0x579263=_0x22109b['originalMeta'],_0x56f76a=_0x1474a0[_0x3584a7(0x49f)][_0x3584a7(0x450)](_0x1474a0[_0x3584a7(0x443)](_0x579263));_0x22109b[_0x3584a7(0x37b)]=_0x56f76a;});}return _0x17a88a;}async[_0x3e84f8(0x236)](_0x37b687,_0x1c7e7b){const _0x287278=_0x3e84f8,{unitID:_0x1cc170,type:_0x3d279f,blockID:_0x6f0df}=_0x1c7e7b,_0x5d22f9=this['_getAPIPrefix']()+'/'+_0x3d279f+'/unit/'+_0x1cc170+_0x287278(0x229)+_0x6f0df;return(await this[_0x287278(0x129)]['get'](_0x5d22f9))['body'];}async[_0x3e84f8(0x503)](_0xe81f6c,_0x2df19b){const _0x369b95=_0x3e84f8,{unitID:_0x40b092,type:_0x4e71b9,from:_0x1f0d57,to:_0x2ac1cc}=_0x2df19b,_0x5678e8=this[_0x369b95(0x2d9)]()+'/'+_0x4e71b9+_0x369b95(0x29c)+_0x40b092+'/fetchmissing?from='+_0x1f0d57+'&to='+_0x2ac1cc;return(await this[_0x369b95(0x129)]['get'](_0x5678e8))[_0x369b95(0x505)];}[_0x3e84f8(0x1db)](){const _0x103256=_0x3e84f8;var _0x2a2a12;return(_0x2a2a12=this['_configService']['getConfig'](_0x48129e))!=null?_0x2a2a12:this[_0x103256(0x2d9)]();}['_getAPIPrefix'](){const _0x450664=_0x3e84f8;var _0x4969a6;return(_0x4969a6=this[_0x450664(0x466)]['getConfig'](_0x3ec466))!=null?_0x4969a6:_0xd20306;}async[_0x3e84f8(0x20f)](_0x1b8e60,_0x4b7732){const _0x5af1b8=_0x3e84f8,_0xaafbab=_0x5af1b8(0x1f3)+_0x4b7732[_0x5af1b8(0x4c9)]+_0x5af1b8(0x29c)+_0x4b7732['unitID']+_0x5af1b8(0x4d8);return(await this[_0x5af1b8(0x129)][_0x5af1b8(0x4af)](_0xaafbab,{'params':{'resourceId':JSON[_0x5af1b8(0x2ee)](_0x4b7732['resourceIDs'])}}))['body'];}[_0x3e84f8(0x22f)](){const _0x298f25=_0x3e84f8;throw new Error(_0x298f25(0x4b3));}[_0x3e84f8(0x233)](){const _0x43c7f9=_0x3e84f8;throw new Error(_0x43c7f9(0x4b3));}[_0x3e84f8(0x38a)](){const _0x1e5801=_0x3e84f8;throw new Error(_0x1e5801(0x4b3));}},_0x2509f1[_0x3e84f8(0x1a7)]=_0x213777([_0x19126c(0x0,_0x3eca57[_0x3e84f8(0x25c)]),_0x19126c(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884[_0x3e84f8(0x3ce)]))],_0x2509f1[_0x3e84f8(0x1a7)]);var _0x512a5a=Object['defineProperty'],_0x1e957b=Object[_0x3e84f8(0x439)],_0x2f958e=(_0x2f014c,_0x9a6277,_0x349feb,_0x3beb71)=>{const _0x1c5796=_0x3e84f8;for(var _0x42bf45=_0x3beb71>0x1?void 0x0:_0x3beb71?_0x1e957b(_0x9a6277,_0x349feb):_0x9a6277,_0xfb371=_0x2f014c[_0x1c5796(0x1a6)]-0x1,_0x2253ff;_0xfb371>=0x0;_0xfb371--)(_0x2253ff=_0x2f014c[_0xfb371])&&(_0x42bf45=(_0x3beb71?_0x2253ff(_0x9a6277,_0x349feb,_0x42bf45):_0x2253ff(_0x42bf45))||_0x42bf45);return _0x3beb71&&_0x42bf45&&_0x512a5a(_0x9a6277,_0x349feb,_0x42bf45),_0x42bf45;},_0x5dc62b=(_0x379b56,_0x1353a4)=>(_0x4d9604,_0x526dcc)=>_0x1353a4(_0x4d9604,_0x526dcc,_0x379b56);let _0x142f05=class extends _0x3eca57[_0x3e84f8(0x43f)]{constructor(_0x1625db,_0x388156,_0x5d3227,_0x9942ff,_0x4c5b47){super(_0x1625db,_0x388156,_0x5d3227),this['_transformService']=_0x9942ff,this['_logService']=_0x4c5b47;}[_0x3e84f8(0x538)](_0x18b56b,_0x4765af){const _0x4765e3=_0x3e84f8,_0x53ef51=this[_0x4765e3(0x34b)](_0x18b56b);if(_0x53ef51)try{const _0x5d83c5=this['_transformStack'](_0x53ef51,_0x4765af);this[_0x4765e3(0x515)](_0x18b56b,_0x5d83c5);}catch(_0x1262c1){this['_logService']['error'](_0x4765e3(0x4d6),_0x1262c1),this[_0x4765e3(0x194)](_0x18b56b);}const _0x47892a=this[_0x4765e3(0x160)](_0x18b56b);if(_0x47892a)try{const _0x23ea7d=this[_0x4765e3(0x25d)](_0x47892a,_0x4765af);this[_0x4765e3(0x52d)](_0x18b56b,_0x23ea7d);}catch(_0x1b4f2b){this[_0x4765e3(0x31d)]['error'](_0x1b4f2b),this['_clearRedo'](_0x18b56b);}}['_clearUndo'](_0x2bdf41){const _0x18d1f7=_0x3e84f8,_0x465c34=this[_0x18d1f7(0x34b)](_0x2bdf41);_0x465c34&&(_0x465c34['length']=0x0,this['_updateStatus']());}[_0x3e84f8(0x143)](_0x1c04ec){const _0x5635d5=_0x3e84f8,_0xad50f8=this['_getRedoStack'](_0x1c04ec);_0xad50f8&&(_0xad50f8[_0x5635d5(0x1a6)]=0x0,this[_0x5635d5(0x45d)]());}[_0x3e84f8(0x515)](_0x701b8f,_0x3b00e1){const _0x47f32b=_0x3e84f8;this[_0x47f32b(0x404)]['set'](_0x701b8f,_0x3b00e1),this[_0x47f32b(0x45d)]();}[_0x3e84f8(0x52d)](_0x57dad4,_0x50fe06){const _0x562210=_0x3e84f8;this['_redoStacks'][_0x562210(0x1b8)](_0x57dad4,_0x50fe06),this[_0x562210(0x45d)]();}[_0x3e84f8(0x25d)](_0x5f23cf,_0x11ae59){const _0x234eae=_0x3e84f8,_0x5b4dec=[];let _0x3499d4=_0x11ae59,_0x4ae743=_0x11ae59;for(let _0x63f6be=_0x5f23cf['length']-0x1;_0x63f6be>=0x0;_0x63f6be--){const {unitID:_0x1f8f3d,undoMutations:_0x1b6509,redoMutations:_0x2da7df}=_0x5f23cf[_0x63f6be],_0x1d8e13=this[_0x234eae(0x263)]['transformMutationsWithChangeset'](_0x3499d4,_0x1b6509),_0x5023ff=this['_transformService'][_0x234eae(0x27b)](_0x4ae743,_0x2da7df);if(_0x1474a0[_0x234eae(0x3cf)](_0x1d8e13)||_0x1474a0[_0x234eae(0x3cf)](_0x5023ff)){this[_0x234eae(0x31d)][_0x234eae(0x543)](_0x234eae(0x4d6),_0x234eae(0x414),_0x1d8e13,_0x5023ff);break;}_0x3499d4=_0x1d8e13[_0x234eae(0x409)],_0x4ae743=_0x5023ff[_0x234eae(0x409)],_0x5b4dec[_0x234eae(0x434)]({'unitID':_0x1f8f3d,'undoMutations':_0x1d8e13[_0x234eae(0x3da)],'redoMutations':_0x5023ff['m2Prime']});}return _0x5b4dec[_0x234eae(0x4e4)]();}};_0x142f05=_0x2f958e([_0x5dc62b(0x0,_0x3eca57[_0x3e84f8(0x2b1)]),_0x5dc62b(0x1,_0x3eca57[_0x3e84f8(0x2b3)]),_0x5dc62b(0x2,_0x3eca57['IContextService']),_0x5dc62b(0x3,_0x1474a0[_0x3e84f8(0x3aa)]),_0x5dc62b(0x4,_0x3eca57[_0x3e84f8(0x391)])],_0x142f05);class _0x506bde extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(){const _0x2ac30f=_0x3e84f8;super(),_0x1de933(this,'urlChange$'),this['urlChange$']=_0x199df4['fromEvent'](window,_0x2ac30f(0x400))[_0x2ac30f(0x52b)](_0x199df4['takeUntil'](this['dispose$']),_0x199df4[_0x2ac30f(0x3fa)](0x1),_0x199df4[_0x2ac30f(0x1c8)](void 0x0));}[_0x3e84f8(0x34a)](_0xba7fc1,_0x3a182b,_0x4ecf55=!0x1){const _0x2d6b64=_0x3e84f8,_0x1ef2d5=new URL(window[_0x2d6b64(0x17d)]['href']);_0x1ef2d5[_0x2d6b64(0x25e)][_0x2d6b64(0x1b8)](_0xba7fc1,_0x3a182b),_0x4ecf55?window[_0x2d6b64(0x479)][_0x2d6b64(0x4ae)]('','',_0x1ef2d5['toString']()):window['history'][_0x2d6b64(0x50f)]('','',_0x1ef2d5['toString']());}[_0x3e84f8(0x3cb)](_0xa68f38,_0x4c1b85=!0x1){const _0x518a8e=_0x3e84f8,_0x38c458=new URL(window[_0x518a8e(0x17d)][_0x518a8e(0x1d1)]);_0x38c458[_0x518a8e(0x25e)]['delete'](_0xa68f38),_0x4c1b85?window[_0x518a8e(0x479)][_0x518a8e(0x4ae)]('','',_0x38c458[_0x518a8e(0x151)]()):window[_0x518a8e(0x479)][_0x518a8e(0x50f)]('','',_0x38c458[_0x518a8e(0x151)]());}['getParam'](_0x3e292e){const _0x3c7343=_0x3e84f8;var _0x26b53e;return(_0x26b53e=new URL(window[_0x3c7343(0x17d)][_0x3c7343(0x1d1)])['searchParams']['get'](_0x3e292e))!=null?_0x26b53e:void 0x0;}}const _0x2938a5=_0x3e84f8(0x145),_0x3e7950=_0x3e84f8(0x1f1),_0x3e013f=_0x3e84f8(0x18a),_0x53c3f5=0x6,_0x30546e=1.5,_0x3f9d24=0x4,_0x473921=1.5,_0x143714=_0x3e84f8(0x1c6);class _0x4720aa{constructor(_0x32edc3,_0x50c40c,_0x4b6146,_0x32e46f){const _0x57d22f=_0x3e84f8;_0x1de933(this,'_shapes',[]),_0x1de933(this,_0x57d22f(0x1f9),null),_0x1de933(this,'_textBubble',null),_0x1de933(this,'_anchorDot',null),_0x1de933(this,_0x57d22f(0x364),null),_0x1de933(this,'_eventUnsubscribe',null),(this['_cursor']=_0x32edc3,this[_0x57d22f(0x252)]=_0x50c40c,this[_0x57d22f(0x2a8)]=_0x4b6146,this[_0x57d22f(0x2ba)]=_0x32e46f,this[_0x57d22f(0x287)]());}set[_0x3e84f8(0x39e)](_0x1ff561){const _0x522c52=_0x3e84f8;_0x1ff561?(this[_0x522c52(0x335)]&&this[_0x522c52(0x335)]['hide'](),this[_0x522c52(0x190)]&&this['_textBubble']['show']()):(this[_0x522c52(0x335)]&&this[_0x522c52(0x335)][_0x522c52(0x3d5)](),this[_0x522c52(0x190)]&&this[_0x522c52(0x190)][_0x522c52(0x2c4)]());}[_0x3e84f8(0x231)](){const _0x21b35d=_0x3e84f8;for(const _0x1a71d7 of this[_0x21b35d(0x349)])_0x1a71d7['dispose']();this[_0x21b35d(0x190)]&&this[_0x21b35d(0x190)]['dispose'](),this[_0x21b35d(0x335)]&&this['_anchorDot'][_0x21b35d(0x231)](),this['_anchor']&&this[_0x21b35d(0x1f9)][_0x21b35d(0x231)](),this[_0x21b35d(0x159)]&&this[_0x21b35d(0x159)]();}['_render'](){const _0x521a3e=_0x3e84f8;var _0x332628;const {_docSkeleton:_0x4b0acf,_document:_0x149b54}=this,{color:_0x14b710,name:_0x22877d,ranges:_0x4219af}=this['_cursor'],_0x1197d9=_0x149b54['getOffsetConfig'](),{docsLeft:_0x530549,docsTop:_0x1b5946}=_0x1197d9,_0x522ebe=new _0x58059b[(_0x521a3e(0x239))](_0x1197d9,_0x4b0acf);for(const {startOffset:_0x4ff864,endOffset:_0xbc5db9,collapsed:_0x3c65b1,isActive:_0x4f236e}of _0x4219af){const _0x1cde4e=_0x4b0acf[_0x521a3e(0x353)](_0x4ff864),_0x98bcbf=_0x4b0acf['findNodePositionByCharIndex'](_0xbc5db9);if(_0x4f236e){const {contentBoxPointGroup:_0x36eb86}=_0x522ebe[_0x521a3e(0x2cd)](_0x98bcbf,_0x98bcbf);if(_0x36eb86['length']===0x0)continue;this[_0x521a3e(0x322)](_0x14b710,_0x36eb86,_0x530549,_0x1b5946,_0x22877d),this[_0x521a3e(0x159)]=this[_0x521a3e(0x15b)]();}if(!_0x3c65b1&&_0x1cde4e&&_0x98bcbf){if(_0x58059b[_0x521a3e(0x4ab)](_0x1cde4e,_0x98bcbf)){const _0x4d68ac=new _0x58059b[(_0x521a3e(0x48d))](_0x1197d9,_0x4b0acf),{pointGroup:_0x46d3d5}=(_0x332628=_0x4d68ac[_0x521a3e(0x2cd)](_0x1cde4e,_0x98bcbf))!=null?_0x332628:{};if(_0x46d3d5==null||_0x46d3d5['length']===0x0)continue;this[_0x521a3e(0x523)](_0x14b710,_0x46d3d5,_0x530549,_0x1b5946);}else{const {contentBoxPointGroup:_0x17b5b7}=_0x522ebe[_0x521a3e(0x2cd)](_0x1cde4e,_0x98bcbf);if(_0x17b5b7[_0x521a3e(0x1a6)]===0x0)continue;this['_drawTextRange'](_0x14b710,_0x17b5b7,_0x530549,_0x1b5946);}}}}[_0x3e84f8(0x322)](_0x322c57,_0x630acc,_0x180840,_0x48c88f,_0x5e505f){const _0x1eb27f=_0x3e84f8,_0x452eb5=this['_getAnchorBounding'](_0x630acc),{left:_0x457676,top:_0x2d4add,height:_0x2d2b9f}=_0x452eb5,_0x9ea9cd=this[_0x1eb27f(0x16a)](),_0x4f839e=_0x473921/_0x9ea9cd,_0x5b6a44=new _0x29e386[(_0x1eb27f(0x1e3))](_0x2938a5+_0x3eca57[_0x1eb27f(0x21e)][_0x1eb27f(0x489)](_0x53c3f5),{'left':_0x457676+_0x180840-_0x4f839e,'top':_0x2d4add+_0x48c88f,'height':_0x2d2b9f,'width':_0x30546e,'fill':_0x322c57||_0x29e386[_0x1eb27f(0x19b)](_0x3eca57['COLORS']['black'],0x0),'strokeWidth':_0x4f839e,'stroke':_0x143714,'evented':!0x0});this[_0x1eb27f(0x1f9)]=_0x5b6a44,this[_0x1eb27f(0x252)][_0x1eb27f(0x1d6)](_0x5b6a44,_0x58059b['TEXT_RANGE_LAYER_INDEX']);const _0x47d972=new _0x29e386[(_0x1eb27f(0x1e3))](_0x2938a5+_0x3eca57[_0x1eb27f(0x21e)][_0x1eb27f(0x489)](_0x53c3f5),{'left':_0x457676+_0x180840-_0x4f839e,'top':_0x2d4add+_0x48c88f-_0x3f9d24/0x2,'height':_0x3f9d24,'width':_0x3f9d24,'fill':_0x322c57||_0x29e386[_0x1eb27f(0x19b)](_0x3eca57[_0x1eb27f(0x444)][_0x1eb27f(0x1cd)],0x0),'strokeWidth':0x0,'stroke':_0x322c57||_0x29e386[_0x1eb27f(0x19b)](_0x3eca57[_0x1eb27f(0x444)][_0x1eb27f(0x1cd)],0x0),'evented':!0x1});this[_0x1eb27f(0x335)]=_0x47d972,this[_0x1eb27f(0x252)][_0x1eb27f(0x1d6)](_0x47d972,_0x58059b[_0x1eb27f(0x275)]);const _0x55a0ee=new _0x11a31(_0x2938a5+_0x3eca57['Tools'][_0x1eb27f(0x489)](_0x53c3f5),{'left':_0x457676+_0x180840-_0x4f839e,'top':_0x2d4add+_0x48c88f-_0x10a292,'text':_0x5e505f,'color':_0x322c57});this[_0x1eb27f(0x190)]=_0x55a0ee,this[_0x1eb27f(0x252)][_0x1eb27f(0x1d6)](_0x55a0ee,_0x58059b['TEXT_RANGE_LAYER_INDEX']),this[_0x1eb27f(0x39e)]=!0x1;}[_0x3e84f8(0x15b)](){const _0xdb1d68=_0x3e84f8,_0x242068=this[_0xdb1d68(0x1f9)][_0xdb1d68(0x31b)][_0xdb1d68(0x4d4)](()=>{const _0x293acb=_0xdb1d68;this[_0x293acb(0x39e)]=!0x0;}),_0x479446=this[_0xdb1d68(0x1f9)][_0xdb1d68(0x494)][_0xdb1d68(0x4d4)](()=>{const _0xbd77c7=_0xdb1d68;this['_hideTimer']&&clearTimeout(this[_0xbd77c7(0x364)]),this[_0xbd77c7(0x364)]=setTimeout(()=>{const _0x34f401=_0xbd77c7;this[_0x34f401(0x39e)]=!0x1;},0x7d0);});return()=>{const _0x21cc74=_0xdb1d68;_0x242068[_0x21cc74(0x3d4)](),_0x479446[_0x21cc74(0x3d4)]();};}[_0x3e84f8(0x267)](_0x32d188,_0x43962a,_0x154ae7,_0x158255){const _0x4200d0=_0x3e84f8,_0x4ef487=new _0x3eca57[(_0x4200d0(0x120))](_0x32d188)[_0x4200d0(0x1b9)](0.2)[_0x4200d0(0x416)](),_0x4f8f1e=new _0x29e386[(_0x4200d0(0x513))](_0x3e7950+_0x3eca57[_0x4200d0(0x21e)][_0x4200d0(0x489)](_0x53c3f5),{'pointsGroup':_0x43962a,'fill':_0x4ef487||_0x29e386['getColor'](_0x3eca57[_0x4200d0(0x444)]['black'],0.2),'left':_0x154ae7,'top':_0x158255,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4f8f1e),this[_0x4200d0(0x252)][_0x4200d0(0x1d6)](_0x4f8f1e,_0x58059b[_0x4200d0(0x275)]);}[_0x3e84f8(0x523)](_0x5a2c81,_0x5151e2,_0x3866c1,_0x1cc5fe){const _0x1cd1bf=_0x3e84f8,_0x45c890=new _0x3eca57[(_0x1cd1bf(0x120))](_0x5a2c81)[_0x1cd1bf(0x1b9)](0.2)[_0x1cd1bf(0x416)](),_0x1b1cc3=new _0x29e386['RegularPolygon'](_0x3e013f+_0x3eca57[_0x1cd1bf(0x21e)]['generateRandomId'](_0x53c3f5),{'pointsGroup':_0x5151e2,'fill':_0x45c890||_0x29e386[_0x1cd1bf(0x19b)](_0x3eca57[_0x1cd1bf(0x444)][_0x1cd1bf(0x1cd)],0.2),'left':_0x3866c1,'top':_0x1cc5fe,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1b1cc3),this[_0x1cd1bf(0x252)][_0x1cd1bf(0x1d6)](_0x1b1cc3,_0x58059b['TEXT_RANGE_LAYER_INDEX']);}[_0x3e84f8(0x25f)](_0x4dcb9e){const _0x53ef6a=_0x4dcb9e[0x0],_0x4dc366=_0x53ef6a[0x0],_0x6f5c92=_0x53ef6a[0x2],{x:_0x3b51ce,y:_0x277d83}=_0x4dc366,{x:_0x10ecd6,y:_0x2fd295}=_0x6f5c92;return{'left':_0x3b51ce,'top':_0x277d83,'width':_0x10ecd6-_0x3b51ce,'height':_0x2fd295-_0x277d83};}['_getScale'](){const _0x4431f8=_0x3e84f8,{scaleX:_0x1abd7f,scaleY:_0x30dcee}=this['_scene'][_0x4431f8(0x50c)]();return Math[_0x4431f8(0x1eb)](_0x1abd7f,_0x30dcee);}}var _0x170b52=Object['defineProperty'],_0x24cca1=Object[_0x3e84f8(0x439)],_0x3322ea=(_0x245d5c,_0x41e25d,_0x42233c,_0x3afed9)=>{const _0x8ff757=_0x3e84f8;for(var _0x32fe64=_0x3afed9>0x1?void 0x0:_0x3afed9?_0x24cca1(_0x41e25d,_0x42233c):_0x41e25d,_0x244d8d=_0x245d5c[_0x8ff757(0x1a6)]-0x1,_0x2c4866;_0x244d8d>=0x0;_0x244d8d--)(_0x2c4866=_0x245d5c[_0x244d8d])&&(_0x32fe64=(_0x3afed9?_0x2c4866(_0x41e25d,_0x42233c,_0x32fe64):_0x2c4866(_0x32fe64))||_0x32fe64);return _0x3afed9&&_0x32fe64&&_0x170b52(_0x41e25d,_0x42233c,_0x32fe64),_0x32fe64;},_0x28534b=(_0xf1f9e,_0x372e65)=>(_0x49b400,_0x11ae24)=>_0x372e65(_0x49b400,_0x11ae24,_0xf1f9e);let _0x19948e=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0x306b90,_0x54c7c9,_0x3eadaa,_0x45813d,_0x39d451){const _0x1fff73=_0x3e84f8;super(),_0x1de933(this,'_cursorShapes',[]),_0x1de933(this,_0x1fff73(0x4ef),[]),(this[_0x1fff73(0x37f)]=_0x306b90,this[_0x1fff73(0x133)]=_0x54c7c9,this['_collabCursorController']=_0x3eadaa,this[_0x1fff73(0x30a)]=_0x45813d,this[_0x1fff73(0x2b8)]=_0x39d451,this[_0x1fff73(0x176)]());}['_init'](){const _0x1c6dde=_0x3e84f8,_0x2df632=this[_0x1c6dde(0x37f)][_0x1c6dde(0x2ac)],_0x12cde2=this[_0x1c6dde(0x133)];this[_0x1c6dde(0x4ed)](_0x199df4[_0x1c6dde(0x2c3)]([this[_0x1c6dde(0x407)]['getCollabCursors$'](_0x2df632),this[_0x1c6dde(0x2b8)]['currentTheme$']])[_0x1c6dde(0x52b)](_0x46f2f0[_0x1c6dde(0x1ad)](([_0x247f35,_0x198677])=>({'skeleton':_0x12cde2[_0x1c6dde(0x25a)](),'cursors':[..._0x247f35[_0x1c6dde(0x3a2)]()]['flatMap'](_0x58dea2=>({..._0x58dea2,'color':_0x198677[_0x58dea2[_0x1c6dde(0x4cb)]]}))})))['subscribe'](_0x167e22=>{const _0xfe800e=_0x1c6dde;if(this[_0xfe800e(0x3e6)](),_0x167e22){const {skeleton:_0x10270d,cursors:_0x1e396c}=_0x167e22;this[_0xfe800e(0x18e)](_0x10270d,_0x1e396c);}})),this[_0x1c6dde(0x4c3)](),this[_0x1c6dde(0x2c8)]();}[_0x3e84f8(0x18e)](_0x1f0859,_0x248642){const _0x3ea653=_0x3e84f8,{scene:_0x3ef0b6,mainComponent:_0x52ac4b}=this[_0x3ea653(0x37f)],_0x3f8d87=_0x248642[_0x3ea653(0x1ad)](_0x550dae=>new _0x4720aa(_0x550dae,_0x3ef0b6,_0x1f0859,_0x52ac4b));this[_0x3ea653(0x181)]=_0x3f8d87,this[_0x3ea653(0x4ef)]=_0x248642;}[_0x3e84f8(0x475)](){const _0x5b832e=_0x3e84f8;this[_0x5b832e(0x3e6)]();const {scene:_0x102be9,mainComponent:_0x1b05ee}=this[_0x5b832e(0x37f)],_0x363fe8=this[_0x5b832e(0x133)]['getSkeleton'](),_0x1b3c71=this['_cursors'][_0x5b832e(0x1ad)](_0x2eae15=>new _0x4720aa(_0x2eae15,_0x102be9,_0x363fe8,_0x1b05ee));this[_0x5b832e(0x181)]=_0x1b3c71;}['_removeCollabCursors'](){const _0x1165cd=_0x3e84f8;this[_0x1165cd(0x181)][_0x1165cd(0x306)](_0x45ea15=>_0x45ea15['dispose']()),this['_cursorShapes']=[];}[_0x3e84f8(0x2c8)](){const _0x4f947e=_0x3e84f8,_0x20834d=[_0x58059b[_0x4f947e(0x21d)]['id']];this[_0x4f947e(0x4ed)](this[_0x4f947e(0x30a)][_0x4f947e(0x271)](_0x30970a=>{const _0x53b6a4=_0x4f947e;_0x20834d[_0x53b6a4(0x4ff)](_0x30970a['id'])&&_0x30970a['params'][_0x53b6a4(0x2ac)]===this[_0x53b6a4(0x37f)][_0x53b6a4(0x2ac)]&&this[_0x53b6a4(0x475)]();}));}[_0x3e84f8(0x4c3)](){const _0x59a17c=_0x3e84f8;this[_0x59a17c(0x4ed)](_0x3eca57[_0x59a17c(0x34e)](this[_0x59a17c(0x37f)]['engine'][_0x59a17c(0x1b6)])[_0x59a17c(0x52b)](_0x46f2f0['filter'](_0x4e4d33=>_0x4e4d33[_0x59a17c(0x4c9)]===_0x29e386[_0x59a17c(0x469)][_0x59a17c(0x119)]),_0x46f2f0[_0x59a17c(0x135)](0x10))['subscribe'](()=>{const _0x3ba856=_0x59a17c;this[_0x3ba856(0x475)]();}));}};_0x19948e=_0x3322ea([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57[_0x3e84f8(0x377)][_0x3e84f8(0x53e)],_0x19948e),_0x28534b(0x1,_0x3eca57['Inject'](_0x5a15a4[_0x3e84f8(0x283)])),_0x28534b(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x1fb14c)),_0x28534b(0x3,_0x3eca57[_0x3e84f8(0x2b3)]),_0x28534b(0x4,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x1a5)]))],_0x19948e);var _0x5bf126=Object[_0x3e84f8(0x243)],_0x36cdfc=Object['getOwnPropertyDescriptor'],_0x3b359e=(_0x54d18f,_0x2870b5,_0x16d024,_0x3069ce)=>{for(var _0x32be5e=_0x3069ce>0x1?void 0x0:_0x3069ce?_0x36cdfc(_0x2870b5,_0x16d024):_0x2870b5,_0x2c648=_0x54d18f['length']-0x1,_0x184762;_0x2c648>=0x0;_0x2c648--)(_0x184762=_0x54d18f[_0x2c648])&&(_0x32be5e=(_0x3069ce?_0x184762(_0x2870b5,_0x16d024,_0x32be5e):_0x184762(_0x32be5e))||_0x32be5e);return _0x3069ce&&_0x32be5e&&_0x5bf126(_0x2870b5,_0x16d024,_0x32be5e),_0x32be5e;},_0x5e225e=(_0x838718,_0x1f6330)=>(_0x228b66,_0x47ad83)=>_0x1f6330(_0x228b66,_0x47ad83,_0x838718);let _0x367805=class{constructor(_0xbfc705,_0x56d6f3,_0x1640f3){const _0xe6bc3=_0x3e84f8;this['_configService']=_0xbfc705,this[_0xe6bc3(0x129)]=_0x56d6f3,this[_0xe6bc3(0x38c)]=_0x1640f3,this[_0xe6bc3(0x352)]();}[_0x3e84f8(0x352)](){const _0x26dd6e=_0x3e84f8;this[_0x26dd6e(0x129)][_0x26dd6e(0x514)]({'priority':0x1,'interceptor':(_0x1ae3c9,_0x29e2)=>_0x29e2(_0x1ae3c9)[_0x26dd6e(0x52b)](_0x199df4['concatMap'](async _0x5ea016=>{const _0x2dd69a=_0x26dd6e,_0x33d9af=_0x5ea016;if(_0x33d9af['status']===0x191&&window[_0x2dd69a(0x35b)](this[_0x2dd69a(0x38c)]['t']('auth.needGotoLoginAlert'))){const _0x2761e7=window['encodeURIComponent'](window[_0x2dd69a(0x17d)][_0x2dd69a(0x1d1)]);window[_0x2dd69a(0x17d)][_0x2dd69a(0x1d1)]=this[_0x2dd69a(0x257)]()+_0x2dd69a(0x11d)+_0x2761e7;}return _0x33d9af;}))});}[_0x3e84f8(0x257)](){const _0x469744=_0x3e84f8;var _0x154af2;return(_0x154af2=this['_configService'][_0x469744(0x22e)](_0x14e0af))!=null?_0x154af2:_0x3bbd51;}};_0x367805=_0x3b359e([_0x5e225e(0x0,_0x3eca57[_0x3e84f8(0x25c)]),_0x5e225e(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884['HTTPService'])),_0x5e225e(0x2,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)]))],_0x367805);var _0x5b076a=Object['defineProperty'],_0x31cee5=Object[_0x3e84f8(0x439)],_0x201b29=(_0x88faed,_0x5ee90e,_0x26cc45,_0x21d2dd)=>{const _0x39a2e7=_0x3e84f8;for(var _0x556ded=_0x21d2dd>0x1?void 0x0:_0x21d2dd?_0x31cee5(_0x5ee90e,_0x26cc45):_0x5ee90e,_0x506a44=_0x88faed[_0x39a2e7(0x1a6)]-0x1,_0x2a1f64;_0x506a44>=0x0;_0x506a44--)(_0x2a1f64=_0x88faed[_0x506a44])&&(_0x556ded=(_0x21d2dd?_0x2a1f64(_0x5ee90e,_0x26cc45,_0x556ded):_0x2a1f64(_0x556ded))||_0x556ded);return _0x21d2dd&&_0x556ded&&_0x5b076a(_0x5ee90e,_0x26cc45,_0x556ded),_0x556ded;},_0x43fec1=(_0x2d1c11,_0x2554ad)=>(_0xc1bb0e,_0x581faa)=>_0x2554ad(_0xc1bb0e,_0x581faa,_0x2d1c11);const _0x5d08cd='AUTHZ_URL_KEY',_0xc2536f=_0x3e84f8(0x4aa);_0x2509f1['AuthzIoHttpService']=class extends _0x3eca57[_0x3e84f8(0x2a6)]{constructor(_0x57c090,_0x37b1cf){const _0x25c2a2=_0x3e84f8;super(),this[_0x25c2a2(0x36a)]=_0x57c090,this['_configService']=_0x37b1cf,this[_0x25c2a2(0x3bf)]();}[_0x3e84f8(0x3bf)](){const _0x209509=_0x3e84f8,_0x3c2920=this;this['disposeWithMe'](this[_0x209509(0x36a)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x1c2884[_0x209509(0x53a)]({'isMatch'(_0x38f0d9){const _0x160247=_0x209509;var _0x58246e;if(_0x38f0d9[_0x160247(0x253)]==='POST'&&((_0x58246e=_0x38f0d9[_0x160247(0x4c2)])!=null&&_0x58246e[_0x160247(0x505)])){const {objectID:_0xa8f74,objectType:_0x3d1338}=_0x38f0d9['requestParams']['body']||{};if(!_0xa8f74||_0x3d1338===void 0x0)return!0x1;const _0x2d2ed4=_0x3c2920[_0x160247(0x4ce)]()+'/'+_0x3d1338+_0x160247(0x50e)+_0xa8f74+_0x160247(0x48f);if(_0x38f0d9[_0x160247(0x193)]===_0x2d2ed4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5103f8){const _0x580dc5=_0x209509;var _0x5517c3;return(_0x5517c3=_0x5103f8[_0x580dc5(0x4c2)])==null?void 0x0:_0x5517c3[_0x580dc5(0x505)];},'mergeParamsToRequest'(_0x107c32,_0x24056e){const _0x5c1013=_0x209509,_0xc5c00d=_0x3c2920[_0x5c1013(0x4ce)]()+_0x5c1013(0x1d8),_0x496471=_0x107c32[_0x5c1013(0x29a)]((_0x172896,_0xf09e7f)=>{const _0x3353fd=_0x5c1013,{unitID:_0x351114,objectID:_0x39f559,objectType:_0x220595,actions:_0x5a2f67}=_0xf09e7f;return _0x172896[_0x351114]||(_0x172896[_0x351114]={}),_0x172896[_0x351114][_0x39f559]||(_0x172896[_0x351114][_0x39f559]={'objectID':_0x39f559,'objectType':_0x220595,'actions':[]}),_0x172896[_0x351114][_0x39f559][_0x3353fd(0x3f6)]['push'](..._0x5a2f67),_0x172896;},{}),_0x203d68=[];for(const _0x19641f in _0x496471)for(const _0x186c95 in _0x496471[_0x19641f]){const {actions:_0x4f97cd,objectType:_0x1f7949}=_0x496471[_0x19641f][_0x186c95],_0x3ffc1b=[...new Set(_0x4f97cd)];_0x203d68[_0x5c1013(0x434)]({'unitID':_0x19641f,'objectID':_0x186c95,'objectType':_0x1f7949,'actions':_0x3ffc1b});}return new _0x1c2884[(_0x5c1013(0x276))](_0x5c1013(0x268),_0xc5c00d,{'headers':_0x24056e[_0x5c1013(0x4f6)],'withCredentials':_0x24056e['withCredentials'],'responseType':_0x24056e[_0x5c1013(0x1fc)],'body':{'requests':_0x203d68}});}},{'distributeResult'(_0x36f5a2,_0x41fd04){const _0x3e3c00=_0x209509,{objectActions:_0x15717f}=_0x36f5a2;return _0x41fd04[_0x3e3c00(0x1ad)](_0x287c24=>{const _0x142924=_0x3e3c00,{unitID:_0xa35b40,objectID:_0x45a364,actions:_0x39acbb}=_0x287c24,_0x5f247c=_0x15717f['find'](_0x5d8aac=>_0x5d8aac[_0x142924(0x13f)]===_0xa35b40&&_0x5d8aac[_0x142924(0x4d3)]===_0x45a364),_0x36c44e=_0x39acbb[_0x142924(0x1ad)](_0x2806ff=>_0x5f247c==null?void 0x0:_0x5f247c[_0x142924(0x3f6)][_0x142924(0x44f)](_0x495159=>_0x495159['action']===_0x2806ff))[_0x142924(0x51d)](_0x5cd106=>!!_0x5cd106);return{'config':_0x287c24,'result':{'actions':_0x36c44e,'error':_0x36f5a2[_0x142924(0x543)]}};});}})}));}[_0x3e84f8(0x4ce)](){const _0x3f3695=_0x3e84f8;var _0x419999;return(_0x419999=this[_0x3f3695(0x466)][_0x3f3695(0x22e)](_0x5d08cd))!=null?_0x419999:_0xc2536f;}async[_0x3e84f8(0x51c)](_0xea3354){const _0x41e760=_0x3e84f8,_0x33130f=this[_0x41e760(0x4ce)]()+'/'+_0xea3354['objectType']+'/object';return(await this[_0x41e760(0x36a)][_0x41e760(0x296)](_0x33130f,{'body':_0xea3354}))['body'][_0x41e760(0x4d3)]||'';}async[_0x3e84f8(0x2f2)](_0x47fbe1){const _0xb908ae=_0x3e84f8,_0x374acc=this['_getAPIPrefixPath']()+_0xb908ae(0x22c);return(await this[_0xb908ae(0x36a)][_0xb908ae(0x296)](_0x374acc,{'body':_0x47fbe1}))[_0xb908ae(0x505)][_0xb908ae(0x28e)];}async[_0x3e84f8(0x14d)](_0x26b602){const _0x3f9466=_0x3e84f8,_0x1e902d=this['_getAPIPrefixPath']()+'/'+_0x26b602[_0x3f9466(0x3c2)]+'/object/'+_0x26b602[_0x3f9466(0x4d3)];await this['_HTTPService'][_0x3f9466(0x1e2)](_0x1e902d,{'body':_0x26b602});}async[_0x3e84f8(0x11b)](_0x4e794c){const _0xa30aed=_0x3e84f8,_0x183204=this[_0xa30aed(0x4ce)]()+'/'+_0x4e794c[_0xa30aed(0x3c2)]+_0xa30aed(0x50e)+_0x4e794c[_0xa30aed(0x4d3)]+_0xa30aed(0x48f);return(await this[_0xa30aed(0x36a)]['post'](_0x183204,{'body':_0x4e794c}))[_0xa30aed(0x505)][_0xa30aed(0x3f6)];}async[_0x3e84f8(0x21c)](_0x4f1dfc){const _0x8228a4=_0x3e84f8,_0x34dccd=this['_getAPIPrefixPath']()+_0x8228a4(0x1d8);return(await this[_0x8228a4(0x36a)]['post'](_0x34dccd,{'body':{'requests':_0x4f1dfc}}))[_0x8228a4(0x505)][_0x8228a4(0x47f)];}async[_0x3e84f8(0x32d)](_0x41bf51){const _0x811141=_0x3e84f8,_0x1b9ca8=this[_0x811141(0x4ce)]()+'/'+_0x41bf51[_0x811141(0x3c2)]+_0x811141(0x3f5),_0x2715a3=await this[_0x811141(0x36a)][_0x811141(0x296)](_0x1b9ca8,{'body':_0x41bf51});return{'roles':_0x2715a3[_0x811141(0x505)]['roles'],'actions':_0x2715a3['body'][_0x811141(0x3f6)]};}async[_0x3e84f8(0x175)](_0xcc4154){const _0x4cbdad=_0x3e84f8,_0x504afb=this[_0x4cbdad(0x4ce)]()+_0x4cbdad(0x17b);await this[_0x4cbdad(0x36a)]['delete'](_0x504afb,{'params':{'collaboratorID':_0xcc4154[_0x4cbdad(0x511)],'objectID':_0xcc4154[_0x4cbdad(0x4d3)],'unitID':_0xcc4154[_0x4cbdad(0x13f)]}});}async[_0x3e84f8(0x430)](_0x26d67a){const _0x4e7a1e=_0x3e84f8,_0x2e1b19=this[_0x4e7a1e(0x4ce)]()+_0x4e7a1e(0x17b);await this[_0x4e7a1e(0x36a)]['patch'](_0x2e1b19,{'body':_0x26d67a});}async[_0x3e84f8(0x497)](_0x20f76b){const _0x446e67=_0x3e84f8,_0x3736e5=this[_0x446e67(0x4ce)]()+'/collaborator';await this[_0x446e67(0x36a)][_0x446e67(0x296)](_0x3736e5,{'body':_0x20f76b});}async[_0x3e84f8(0x150)](_0x228617){const _0x2f2426=_0x3e84f8,_0x47d11a=this['_getAPIPrefixPath']()+_0x2f2426(0x17b);return(await this[_0x2f2426(0x36a)][_0x2f2426(0x4af)](_0x47d11a,{'params':{'objectID':_0x228617[_0x2f2426(0x4d3)],'unitID':_0x228617[_0x2f2426(0x13f)]}}))[_0x2f2426(0x505)][_0x2f2426(0x424)];}async['putCollaborators'](_0x17729d){const _0x3a387b=_0x3e84f8,_0xe24f7=this[_0x3a387b(0x4ce)]()+'/collaborator';await this['_HTTPService']['put'](_0xe24f7,{'body':_0x17729d});}},_0x2509f1[_0x3e84f8(0x4cc)]=_0x201b29([_0x43fec1(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884[_0x3e84f8(0x3ce)])),_0x43fec1(0x1,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x25c)]))],_0x2509f1[_0x3e84f8(0x4cc)]);var _0x3950ee=Object[_0x3e84f8(0x243)],_0x449c3f=Object['getOwnPropertyDescriptor'],_0x5143bf=(_0x5cb2d7,_0x2b686a,_0x23a605,_0xc6b517)=>{const _0x4838a3=_0x3e84f8;for(var _0x1d0849=_0xc6b517>0x1?void 0x0:_0xc6b517?_0x449c3f(_0x2b686a,_0x23a605):_0x2b686a,_0x5e7edc=_0x5cb2d7[_0x4838a3(0x1a6)]-0x1,_0x8dc339;_0x5e7edc>=0x0;_0x5e7edc--)(_0x8dc339=_0x5cb2d7[_0x5e7edc])&&(_0x1d0849=(_0xc6b517?_0x8dc339(_0x2b686a,_0x23a605,_0x1d0849):_0x8dc339(_0x1d0849))||_0x1d0849);return _0xc6b517&&_0x1d0849&&_0x3950ee(_0x2b686a,_0x23a605,_0x1d0849),_0x1d0849;},_0x2110cf=(_0x38cd7f,_0x1065ea)=>(_0x5e1375,_0x225195)=>_0x1065ea(_0x5e1375,_0x225195,_0x38cd7f);const _0x32df5c=[_0x3e84f8(0x4a6),_0x3e84f8(0x323),_0x3e84f8(0x2be),_0x3e84f8(0x3af),_0x3e84f8(0x363)],_0x44c774=0x5*0x400*0x400,_0x415728=_0x3e84f8(0x303),_0x8ddd14='/universer-api/stream/file/upload',_0x4d6544='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x398a77=_0x3e84f8(0x36f);_0x2509f1['ImageIoService']=class{constructor(_0x513b35,_0x50d3fe,_0x1523f4){const _0xae56c=_0x3e84f8;_0x1de933(this,_0xae56c(0x28a),0x0),_0x1de933(this,_0xae56c(0x195),new _0x199df4[(_0xae56c(0x307))]()),_0x1de933(this,'change$',this[_0xae56c(0x195)]),_0x1de933(this,_0xae56c(0x20d),new Map()),(this[_0xae56c(0x129)]=_0x513b35,this[_0xae56c(0x466)]=_0x50d3fe,this[_0xae56c(0x339)]=_0x1523f4);}[_0x3e84f8(0x221)](_0x5e63f8){const _0x1e92fa=_0x3e84f8;this['_waitCount']=_0x5e63f8,this[_0x1e92fa(0x195)][_0x1e92fa(0x2d2)](_0x5e63f8);}[_0x3e84f8(0x4e3)](_0x1d2f8b,_0x21c17f){const _0x312a9d=_0x3e84f8;if(_0x21c17f===_0x2a024d[_0x312a9d(0x3a7)]['BASE64']){const _0x579f76=new Image();return _0x579f76[_0x312a9d(0x158)]=_0x1d2f8b,_0x579f76;}return this[_0x312a9d(0x20d)]['get'](_0x1d2f8b);}[_0x3e84f8(0x2e9)](_0x16b44d,_0x3774b7,_0x52f2d0){const _0x417970=_0x3e84f8;_0x3774b7===_0x2a024d['ImageSourceType'][_0x417970(0x44c)]||_0x52f2d0==null||this[_0x417970(0x20d)][_0x417970(0x1b8)](_0x16b44d,_0x52f2d0);}async[_0x3e84f8(0x1fb)](_0x56e7b6){const _0x18bac2=_0x3e84f8;try{const _0x29b5af=this[_0x18bac2(0x42d)](this[_0x18bac2(0x14e)](),''+_0x56e7b6),_0x5b6171=(await this['_httpService'][_0x18bac2(0x4af)](_0x29b5af))[_0x18bac2(0x505)];return _0x5b6171['error']&&_0x5b6171[_0x18bac2(0x543)][_0x18bac2(0x532)]===_0x121659['OK']?Promise['resolve'](_0x5b6171[_0x18bac2(0x193)]):Promise[_0x18bac2(0x4c5)](_0x5b6171[_0x18bac2(0x543)]);}catch(_0x3f82ae){return Promise[_0x18bac2(0x4c5)](_0x3f82ae);}}async[_0x3e84f8(0x41b)](_0x34a4b9){const _0x49094b=_0x3e84f8;let _0x260628='';if(!_0x32df5c[_0x49094b(0x4ff)](_0x34a4b9[_0x49094b(0x4c9)]))return this[_0x49094b(0x1c3)](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)][_0x49094b(0x533)]));if(_0x34a4b9[_0x49094b(0x28b)]>_0x44c774)return this[_0x49094b(0x1c3)](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)][_0x49094b(0x21b)]));try{const _0x294b2b=new FormData();_0x294b2b[_0x49094b(0x2f7)](_0x49094b(0x471),_0x34a4b9);const _0x1d4a76=this[_0x49094b(0x339)][_0x49094b(0x298)](),_0x26902a=_0x1d4a76==null?void 0x0:_0x1d4a76[_0x49094b(0x286)]();if(!_0x26902a)throw new Error(_0x49094b(0x2bf));const _0x27552c=this[_0x49094b(0x245)]()+'?size='+_0x34a4b9['size'][_0x49094b(0x151)]()+_0x49094b(0x35e)+_0x39a188[_0x49094b(0x438)]+_0x49094b(0x24c)+encodeURIComponent(_0x26902a),_0x13af20=await(await fetch(_0x27552c,{'method':_0x49094b(0x268),'body':_0x294b2b}))[_0x49094b(0x1d4)]();if(typeof _0x13af20['FileId']!='string')return this['_decreaseWaiting'](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)][_0x49094b(0x2d6)]));_0x260628=_0x13af20[_0x49094b(0x3e0)];}catch{return this[_0x49094b(0x1c3)](),Promise[_0x49094b(0x4c5)](new Error(_0x2a024d[_0x49094b(0x1ea)]['ERROR_IMAGE']));}return new Promise((_0x7ea7d1,_0x2719ab)=>{const _0x5a1682=_0x49094b,_0x3b06c8=new FileReader();_0x3b06c8[_0x5a1682(0x254)](_0x34a4b9),_0x3b06c8[_0x5a1682(0x331)]=_0x39ddb6=>{const _0x57a9c3=_0x5a1682;var _0x2989f4;const _0x7d9229=(_0x2989f4=_0x39ddb6[_0x57a9c3(0x4c4)])==null?void 0x0:_0x2989f4['result'];if(_0x7d9229==null){this[_0x57a9c3(0x1c3)](),_0x2719ab(new Error(_0x2a024d['ImageUploadStatusType'][_0x57a9c3(0x2d6)]));return;}const _0x19f678=_0x3eca57[_0x57a9c3(0x21e)][_0x57a9c3(0x489)](0x6);_0x7ea7d1({'imageId':_0x19f678,'imageSourceType':_0x2a024d[_0x57a9c3(0x3a7)]['UUID'],'source':_0x260628,'base64Cache':_0x7d9229,'status':_0x2a024d['ImageUploadStatusType'][_0x57a9c3(0x3e8)]}),this[_0x57a9c3(0x1c3)]();};});}['_getUploadFileURL'](){const _0x420fa5=_0x3e84f8;var _0x5fcf1b;return(_0x5fcf1b=this[_0x420fa5(0x466)][_0x420fa5(0x22e)](_0x415728))!=null?_0x5fcf1b:_0x8ddd14;}[_0x3e84f8(0x14e)](){const _0x48d6b0=_0x3e84f8;var _0x45d928;return(_0x45d928=this[_0x48d6b0(0x466)][_0x48d6b0(0x22e)](_0x4d6544))!=null?_0x45d928:_0x398a77;}[_0x3e84f8(0x42d)](_0x3329ce,_0x47f3b7){const _0x24406f=_0x3e84f8;return _0x3329ce[_0x24406f(0x457)](_0x24406f(0x3ba),_0x47f3b7);}[_0x3e84f8(0x1c3)](){const _0x1352ac=_0x3e84f8;this[_0x1352ac(0x28a)]-=0x1,this[_0x1352ac(0x195)][_0x1352ac(0x2d2)](this[_0x1352ac(0x28a)]);}},_0x2509f1['ImageIoService']=_0x5143bf([_0x2110cf(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x1c2884['HTTPService'])),_0x2110cf(0x1,_0x3eca57['IConfigService']),_0x2110cf(0x2,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x2b1)]))],_0x2509f1[_0x3e84f8(0x49e)]);var _0x15566a=Object[_0x3e84f8(0x243)],_0x471a81=Object[_0x3e84f8(0x439)],_0x18f1b9=(_0x3777af,_0x478247,_0x5e7b1a,_0x3e64c1)=>{const _0x4aa342=_0x3e84f8;for(var _0x3057ac=_0x3e64c1>0x1?void 0x0:_0x3e64c1?_0x471a81(_0x478247,_0x5e7b1a):_0x478247,_0x2fb5f1=_0x3777af[_0x4aa342(0x1a6)]-0x1,_0x2ee8fe;_0x2fb5f1>=0x0;_0x2fb5f1--)(_0x2ee8fe=_0x3777af[_0x2fb5f1])&&(_0x3057ac=(_0x3e64c1?_0x2ee8fe(_0x478247,_0x5e7b1a,_0x3057ac):_0x2ee8fe(_0x3057ac))||_0x3057ac);return _0x3e64c1&&_0x3057ac&&_0x15566a(_0x478247,_0x5e7b1a,_0x3057ac),_0x3057ac;},_0xbe2a30=(_0x5ddc79,_0x131b37)=>(_0x451fb8,_0x25bc12)=>_0x131b37(_0x451fb8,_0x25bc12,_0x5ddc79);let _0x18b628=class extends _0x3eca57[_0x3e84f8(0x37a)]{constructor(_0xc31e08,_0x50929f,_0x52aca6,_0x4de141,_0x406dba){const _0x31cf34=_0x3e84f8;super(),this['_injector']=_0xc31e08,this['_univerInstanceService']=_0x50929f,this[_0x31cf34(0x28c)]=_0x52aca6,this['_collaborationSessionService']=_0x4de141,this[_0x31cf34(0x2c7)]=_0x406dba,this[_0x31cf34(0x152)](),this[_0x31cf34(0x446)]();}[_0x3e84f8(0x446)](){const _0x4234fb=_0x3e84f8,_0x346a8c=async _0x9b978d=>{const _0x5cb978=_0x3242;(await this[_0x5cb978(0x46a)][_0x5cb978(0x2ca)](_0x9b978d))[_0x5cb978(0x15a)][_0x5cb978(0x52b)](_0x46f2f0[_0x5cb978(0x51d)](_0x449493=>_0x449493['eventID']===_0x1474a0[_0x5cb978(0x520)][_0x5cb978(0x3c7)]),_0x46f2f0['takeUntil'](this[_0x5cb978(0x138)]))[_0x5cb978(0x4da)](_0x4615c2=>{const _0x3639cf=_0x5cb978,_0x3f1a39=_0x4615c2,{reason:_0x203bb7}=_0x3f1a39[_0x3639cf(0x33d)];this[_0x3639cf(0x249)][_0x3639cf(0x4af)](_0x2ede89[_0x3639cf(0x394)])['show']({'type':_0xf694dc[_0x3639cf(0x472)]['Error'],'content':this[_0x3639cf(0x2c7)]['t']('collaboration.closeRoom')+'('+_0x203bb7+')'}),this[_0x3639cf(0x28c)]['updatePermissionPoint'](new _0x9f218b[(_0x3639cf(0x336))](_0x9b978d)['id'],!0x1),this['_collaborationSessionService'][_0x3639cf(0x2e4)](_0x9b978d);});};_0x199df4[_0x4234fb(0x148)](this[_0x4234fb(0x339)][_0x4234fb(0x362)](_0x3eca57[_0x4234fb(0x3fd)][_0x4234fb(0x28f)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3eca57[_0x4234fb(0x3fd)][_0x4234fb(0x269)]))['pipe'](_0x46f2f0[_0x4234fb(0x1ad)](_0x3376d6=>_0x3376d6[_0x4234fb(0x286)]()),_0x46f2f0[_0x4234fb(0x51d)](_0x86d6f5=>!_0x3eca57[_0x4234fb(0x3c0)](_0x86d6f5)),_0x46f2f0[_0x4234fb(0x468)](this[_0x4234fb(0x138)]))[_0x4234fb(0x4da)](_0xfeec23=>{_0x346a8c(_0xfeec23);});}[_0x3e84f8(0x152)](){const _0x3d355f=_0x3e84f8,_0x1be495=async _0x41bce8=>{const _0xc8508e=_0x3242;(await this[_0xc8508e(0x46a)][_0xc8508e(0x2ca)](_0x41bce8))['event$'][_0xc8508e(0x52b)](_0x46f2f0[_0xc8508e(0x51d)](_0x13dfe1=>_0x13dfe1[_0xc8508e(0x11c)]===_0x1474a0['CollaborationEvent'][_0xc8508e(0x431)]),_0x46f2f0['takeUntil'](this[_0xc8508e(0x138)]))[_0xc8508e(0x4da)](_0x28f804=>{const _0x86d00=_0xc8508e,_0x7147=_0x28f804,{objectId:_0x5e74ca}=_0x7147[_0x86d00(0x33d)],_0x579409=this[_0x86d00(0x249)]['get'](_0x346aeb[_0x86d00(0x3b9)]);_0x5e74ca===_0x41bce8?_0x579409[_0x86d00(0x1f4)](_0x41bce8):_0x579409[_0x86d00(0x26d)](_0x41bce8,_0x5e74ca);});};_0x199df4['merge'](this[_0x3d355f(0x339)]['getTypeOfUnitAdded$'](_0x3eca57[_0x3d355f(0x3fd)][_0x3d355f(0x28f)]),this[_0x3d355f(0x339)]['getTypeOfUnitAdded$'](_0x3eca57[_0x3d355f(0x3fd)][_0x3d355f(0x269)]))[_0x3d355f(0x52b)](_0x46f2f0[_0x3d355f(0x1ad)](_0x49b61e=>_0x49b61e[_0x3d355f(0x286)]()),_0x46f2f0['filter'](_0x160610=>!_0x3eca57[_0x3d355f(0x3c0)](_0x160610)),_0x46f2f0[_0x3d355f(0x468)](this['dispose$']))[_0x3d355f(0x4da)](_0x39cd12=>{_0x1be495(_0x39cd12);});}};_0x18b628=_0x18f1b9([_0x3eca57[_0x3e84f8(0x1ef)](_0x3eca57[_0x3e84f8(0x377)]['Starting'],_0x18b628),_0xbe2a30(0x0,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0xbe2a30(0x1,_0x3eca57[_0x3e84f8(0x2b1)]),_0xbe2a30(0x2,_0x3eca57[_0x3e84f8(0x3a9)]),_0xbe2a30(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x2509f1['CollaborationSessionService'])),_0xbe2a30(0x4,_0x3eca57['Inject'](_0x3eca57[_0x3e84f8(0x477)]))],_0x18b628);const _0x1dc639=_0x3e84f8(0x27f);var _0x251f6e=Object[_0x3e84f8(0x243)],_0x158f5c=Object[_0x3e84f8(0x439)],_0x2cf9f5=(_0x5c5500,_0x37a2b1,_0x1d3f3c)=>_0x37a2b1 in _0x5c5500?_0x251f6e(_0x5c5500,_0x37a2b1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3f3c}):_0x5c5500[_0x37a2b1]=_0x1d3f3c,_0x5bfd05=(_0x4b5148,_0x1edbcb,_0x508133,_0x5de38f)=>{for(var _0x491ac0=_0x5de38f>0x1?void 0x0:_0x5de38f?_0x158f5c(_0x1edbcb,_0x508133):_0x1edbcb,_0x3bcd18=_0x4b5148['length']-0x1,_0x5f384b;_0x3bcd18>=0x0;_0x3bcd18--)(_0x5f384b=_0x4b5148[_0x3bcd18])&&(_0x491ac0=(_0x5de38f?_0x5f384b(_0x1edbcb,_0x508133,_0x491ac0):_0x5f384b(_0x491ac0))||_0x491ac0);return _0x5de38f&&_0x491ac0&&_0x251f6e(_0x1edbcb,_0x508133,_0x491ac0),_0x491ac0;},_0x14b702=(_0x10f11f,_0x4a5816)=>(_0x3b4d51,_0x46a1b9)=>_0x4a5816(_0x3b4d51,_0x46a1b9,_0x10f11f),_0x2ac310=(_0x5e4682,_0x3d905b,_0x104c58)=>_0x2cf9f5(_0x5e4682,_0x3d905b+'',_0x104c58);const _0x3ecf66=_0x3e84f8(0x308);_0x2509f1[_0x3e84f8(0x4fc)]=class extends _0x3eca57[_0x3e84f8(0x1fa)]{constructor(_0x34f59a={},_0x457f24,_0x5a083a,_0x36a44b,_0xb32d4e){const _0x5cf98f=_0x3e84f8;super(),this[_0x5cf98f(0x3c8)]=_0x34f59a,this[_0x5cf98f(0x31d)]=_0x457f24,this[_0x5cf98f(0x42a)]=_0x5a083a,this['_injector']=_0x36a44b,this[_0x5cf98f(0x466)]=_0xb32d4e;const {..._0x4886c1}=this[_0x5cf98f(0x3c8)];this['_configService'][_0x5cf98f(0x2ec)](_0x1dc639,_0x4886c1);}[_0x3e84f8(0x4c8)](){const _0x39732c=_0x3e84f8;this[_0x39732c(0x487)]();}['onRendered'](){const _0x35c653=_0x3e84f8;this[_0x35c653(0x3ab)]();}[_0x3e84f8(0x487)](){const _0x4b31e0=_0x3e84f8;var _0x499f2d,_0x3b3513,_0x2b9c17,_0x3ac50;this[_0x4b31e0(0x249)][_0x4b31e0(0x2a7)](_0x3eca57[_0x4b31e0(0x33f)])&&this[_0x4b31e0(0x31d)][_0x4b31e0(0x543)](_0x4b31e0(0x259),_0x4b31e0(0x357));let _0x31c57e=[[_0x3eca57[_0x4b31e0(0x33f)],{'useClass':_0x142f05}],[_0x2509f1[_0x4b31e0(0x332)]],[_0x29d267],[_0x1c2884['HTTPService']],[_0xd144bd,{'useClass':_0x506bde}],[_0x5df92e],[_0x2509f1[_0x4b31e0(0x373)]],[_0x1c2884['WebSocketService']],[_0x322a21],[_0x1fbfda],[_0xd6db42],[_0x2436eb],[_0x367805],[_0x1c6422],[_0x18b628],[_0x484b9f,{'useClass':(_0x3b3513=(_0x499f2d=this[_0x4b31e0(0x3c8)])==null?void 0x0:_0x499f2d[_0x4b31e0(0x386)])!=null?_0x3b3513:_0x2509f1['CollaborationSocketService']}],[_0x1c2884[_0x4b31e0(0x529)],{'useClass':_0x1c2884[_0x4b31e0(0x4a7)]}],[_0x1474a0[_0x4b31e0(0x437)],{'useClass':_0x2509f1[_0x4b31e0(0x1a7)]}],[_0x3eca57[_0x4b31e0(0x3ea)],{'useClass':_0x2509f1[_0x4b31e0(0x4cc)]}],[_0x2a024d[_0x4b31e0(0x292)],{'useClass':_0x2509f1['ImageIoService']}],[_0x2509f1[_0x4b31e0(0x171)]],[_0x2509f1[_0x4b31e0(0x4bf)]],[_0x2509f1[_0x4b31e0(0x300)]],[_0x495f33],[_0x1fb14c]];(_0x2b9c17=this[_0x4b31e0(0x3c8)])!=null&&_0x2b9c17[_0x4b31e0(0x202)]&&_0x31c57e[_0x4b31e0(0x434)]([_0x39225f,{'useClass':_0x1bad77}]),_0x31c57e=_0x3eca57[_0x4b31e0(0x184)](_0x31c57e,(_0x3ac50=this[_0x4b31e0(0x3c8)])==null?void 0x0:_0x3ac50[_0x4b31e0(0x51f)]),_0x31c57e[_0x4b31e0(0x306)](_0x596b7f=>this[_0x4b31e0(0x249)][_0x4b31e0(0x44d)](_0x596b7f)),this[_0x4b31e0(0x141)]();}[_0x3e84f8(0x3ab)](){const _0x5a3b9d=_0x3e84f8;this[_0x5a3b9d(0x4ed)](this['_renderManagerService'][_0x5a3b9d(0x4b6)](_0x3eca57[_0x5a3b9d(0x3fd)][_0x5a3b9d(0x269)],[_0x19948e])),this[_0x5a3b9d(0x4ed)](this[_0x5a3b9d(0x42a)]['registerRenderModule'](_0x3eca57[_0x5a3b9d(0x3fd)]['UNIVER_SHEET'],[_0x4d9935]));}[_0x3e84f8(0x141)](){const _0x5f04d8=_0x3e84f8;var _0x490127,_0xf2dc8d;this['_injector']['get'](_0x1c2884['HTTPService'])[_0x5f04d8(0x514)]({'priority':0x14,'interceptor':_0x1c2884[_0x5f04d8(0x1aa)]({'maxParallel':0x6})}),(_0x490127=this[_0x5f04d8(0x3c8)])!=null&&_0x490127[_0x5f04d8(0x1a0)]||this[_0x5f04d8(0x249)][_0x5f04d8(0x4af)](_0x2509f1[_0x5f04d8(0x373)])['disableLocalCache'](),(_0xf2dc8d=this['_config'])!=null&&_0xf2dc8d[_0x5f04d8(0x262)]&&this[_0x5f04d8(0x249)][_0x5f04d8(0x4af)](_0x367805),this[_0x5f04d8(0x249)][_0x5f04d8(0x4af)](_0x2509f1[_0x5f04d8(0x171)]),this[_0x5f04d8(0x249)][_0x5f04d8(0x2a7)](_0x2509f1[_0x5f04d8(0x300)])&&this[_0x5f04d8(0x249)]['get'](_0x2509f1[_0x5f04d8(0x300)]);}},_0x2ac310(_0x2509f1[_0x3e84f8(0x4fc)],_0x3e84f8(0x347),_0x3ecf66),_0x2509f1['UniverCollaborationClientPlugin']=_0x5bfd05([_0x3eca57[_0x3e84f8(0x211)](_0x1474a0[_0x3e84f8(0x40b)]),_0x14b702(0x1,_0x3eca57[_0x3e84f8(0x391)]),_0x14b702(0x2,_0x29e386[_0x3e84f8(0x417)]),_0x14b702(0x3,_0x3eca57[_0x3e84f8(0x13c)](_0x3eca57[_0x3e84f8(0x368)])),_0x14b702(0x4,_0x3eca57[_0x3e84f8(0x25c)])],_0x2509f1[_0x3e84f8(0x4fc)]),_0x2509f1['AUTHZ_URL_KEY']=_0x5d08cd,_0x2509f1[_0x3e84f8(0x189)]=_0x11b9bd,_0x2509f1[_0x3e84f8(0x2b7)]=_0x2e0e5e,_0x2509f1['CollaborationStatus']=_0x4bd68c,_0x2509f1[_0x3e84f8(0x380)]=_0x352a6e,_0x2509f1['CommentService']=_0x1c6422,_0x2509f1['HEARTBEAT_INTERVAL_KEY']=_0x14a4f4,_0x2509f1[_0x3e84f8(0x3df)]=_0x4d3ef7,_0x2509f1['ICollaborationSocketService']=_0x484b9f,_0x2509f1['IURLService']=_0xd144bd,_0x2509f1[_0x3e84f8(0x20c)]=_0x55047c,_0x2509f1[_0x3e84f8(0x1bf)]=_0x14e0af,_0x2509f1[_0x3e84f8(0x447)]=_0x276e46,_0x2509f1[_0x3e84f8(0x2fe)]=_0x424e1f,_0x2509f1['SEND_CHANGESET_TIMEOUT_KEY']=_0x3580e7,_0x2509f1[_0x3e84f8(0x2a9)]=_0x3ec466,_0x2509f1[_0x3e84f8(0x34c)]=_0x48129e,_0x2509f1['SessionStatus']=_0x39f403,_0x2509f1[_0x3e84f8(0x372)]=_0x677fb,_0x2509f1['WebURLService']=_0x506bde,_0x2509f1[_0x3e84f8(0x3f9)]=_0x588539,_0x2509f1[_0x3e84f8(0x3e7)]=_0x40c916,Object[_0x3e84f8(0x243)](_0x2509f1,Symbol[_0x3e84f8(0x382)],{'value':_0x3e84f8(0x241)});}));