@univerjs-pro/collaboration-client 0.4.0-alpha.0 → 0.4.0-nightly.202410121605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4c1f23=_0x4c7d;(function(_0x584523,_0x59eca4){const _0x3c939b=_0x4c7d,_0x418f4c=_0x584523();while(!![]){try{const _0x117914=parseInt(_0x3c939b(0x122))/0x1+parseInt(_0x3c939b(0x39c))/0x2+-parseInt(_0x3c939b(0x3d2))/0x3*(-parseInt(_0x3c939b(0x2d8))/0x4)+parseInt(_0x3c939b(0x2a4))/0x5*(parseInt(_0x3c939b(0x3a1))/0x6)+-parseInt(_0x3c939b(0x349))/0x7*(-parseInt(_0x3c939b(0x231))/0x8)+-parseInt(_0x3c939b(0x39b))/0x9*(-parseInt(_0x3c939b(0x18b))/0xa)+-parseInt(_0x3c939b(0x267))/0xb*(parseInt(_0x3c939b(0x2e8))/0xc);if(_0x117914===_0x59eca4)break;else _0x418f4c['push'](_0x418f4c['shift']());}catch(_0x50b02c){_0x418f4c['push'](_0x418f4c['shift']());}}}(_0x583f,0xc16f8));var qs=Object[_0x4c1f23(0x2e9)],zs=(_0x958bb9,_0x488792,_0x396ceb)=>_0x488792 in _0x958bb9?qs(_0x958bb9,_0x488792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x396ceb}):_0x958bb9[_0x488792]=_0x396ceb,l=(_0x2c576a,_0x5caf02,_0xe76fb6)=>zs(_0x2c576a,typeof _0x5caf02!=_0x4c1f23(0x12f)?_0x5caf02+'':_0x5caf02,_0xe76fb6);import{createIdentifier as _0x2d62b5,Inject as _0x321449,Disposable as _0x22db72,DisposableCollection as _0x242419,toDisposable as _0x5738c2,IConfigService as _0x4d21d1,ILogService as _0x50688a,UserManagerService as _0xc3ed3,UniverInstanceType as _0x4c91c9,IUniverInstanceService as _0x375068,LocaleService as _0x2e153b,Optional as _0x9bfc3c,RxDisposable as _0x2dacfb,Injector as _0x313fa0,Tools as _0x403f58,ILocalStorageService as _0x23441d,ICommandService as _0x265863,JSONX as _0x107e10,CommandType as _0xcd477b,IPermissionService as _0x52f39f,IUndoRedoService as _0x2fbed3,sequenceExecute as _0x2aed7d,debounce as _0x1b3960,Rectangle as _0x31476b,COLORS as _0x3ca793,ColorKit as _0x3fd1db,ThemeService as _0x6f1691,fromEventSubject as _0x46c56e,useDependency as _0x18fbb6,connectInjector as _0x538d64,Workbook as _0xa32c6e,isInternalEditorID as _0x46dc72,LocalUndoRedoService as _0x2d287d,IContextService as _0x163f08,DependentOn as _0x4869be,Plugin as _0x43f0d0,touchDependencies as _0x50ed8d,IAuthzIoService as _0x2eeda2,mergeOverrideWithDependencies as _0x1588d5}from'@univerjs/core';import{Subject as _0xacaad6,merge as _0x5de0ce,takeUntil as _0x289d57,BehaviorSubject as _0x2ec58d,distinctUntilChanged as _0x1f43e4,fromEvent as _0x1e2c02,map as _0x16d2df,shareReplay as _0xb96cea,take as _0x448807,of as _0x570d55,debounceTime as _0x3504d2,filter as _0x4c7e5a,switchMap as _0x4e9858,combineLatest as _0x4fd693,concatMap as _0x42e091,mapTo as _0x5810d1}from'rxjs';import{map as _0x3d528e,take as _0x41fec6,filter as _0x1f1135,delay as _0x160a7a,throttleTime as _0x4ac9c9,takeUntil as _0x3ae8cf,switchMap as _0x59e45c}from'rxjs/operators';import{MessageType as _0x57eb36,Tooltip as _0x465a5c}from'@univerjs/design';import{IBeforeCloseService as _0x3cc7ef,IMessageService as _0x5d3b7c,INotificationService as _0x7f7802,useObservable as _0x481936,BuiltInUIPart as _0x385326,IUIPartsService as _0x3fbc73}from'@univerjs/ui';import{HTTPService as _0x1fbfa2,WebSocketService as _0x57aa72,MergeInterceptorFactory as _0x34ac01,HTTPRequest as _0x4a19a1,IHTTPImplementation as _0x147a26,XHRHTTPImplementation as _0x5d6c50,ThresholdInterceptorFactory as _0x537a47}from'@univerjs/network';import{CollaborationEvent as _0x273d8c,parseChangesetToProtocol as _0x2b2dd8,ISnapshotServerService as _0x4c90dd,isTransformMutationFailure as _0x3737c9,isTransformMutationsWithChangesetSuccess as _0x8db330,ITransformService as _0x56767e,RevisionService as _0x5d1c03,mapDocumentTypeToUniverType as _0x53eda4,isTransformChangesetsSuccess as _0x428767,CompressMutationService as _0x2615ec,parseProtocolChangeset as _0x569e1c,SnapshotService as _0x38d13f,textEncoder as _0x2c535e,b64DecodeUnicode as _0x58e839,isTransformMutationsWithChangesetFailure as _0x54fa31,UniverCollaborationPlugin as _0x229d30}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2263bf}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x322779,RichTextEditingMutation as _0x1b2745,SetTextSelectionsOperation as _0x254038,DocSkeletonManagerService as _0x5e9e87}from'@univerjs/docs';import{DocIMEInputManagerService as _0x74964,DocStateChangeManagerService as _0x3f8e0c,NodePositionConvertToCursor as _0x2b89f0,isValidRectRange as _0x53f2b8,NodePositionConvertToRectRange as _0x459c36,TEXT_RANGE_LAYER_INDEX as _0x1c10b5,SetDocZoomRatioOperation as _0xd8bdfb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x152281,SetSelectionsOperation as _0x137748,InsertSheetMutation as _0x3f0b63,EmptyMutation as _0x489e71,WorkbookEditablePermission as _0x42c12f,RefRangeService as _0x70f3a6,EffectRefRangId as _0x5bd706,handleIRemoveRow as _0x37d328,handleIRemoveCol as _0x5ebff0,handleMoveRange as _0x104260,handleInsertRow as _0x4c71a9,handleInsertRangeMoveRight as _0x2d766e,handleInsertRangeMoveDown as _0x40cb3b,handleInsertCol as _0xb9b59c,handleDeleteRangeMoveUp as _0x362d52,handleDeleteRangeMoveLeft as _0x28d514,runRefRangeMutations as _0x12db35,SetWorksheetActivateCommand as _0x2ca650}from'@univerjs/sheets';import{IRenderManagerService as _0x3f9a6b,Shape as _0xca1f86,Rect as _0x3a075a,getColor as _0x17a368,RegularPolygon as _0x28ffa0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x58f61e,Vector2 as _0x3b739f}from'@univerjs/engine-render';import{ImageSourceType as _0x1946dd,ImageUploadStatusType as _0x1f89ce,IImageIoService as _0x74670d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2363ba,serializeRangeWithSheet as _0x48cd80}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3d1738,VIEWPORT_KEY as _0x14e392,getCoordByCell as _0x14b841,getSheetObject as _0x24a93b,SheetPermissionInitController as _0x293481}from'@univerjs/sheets-ui';import _0x1e4ea9,{forwardRef as _0x2e90f2,useRef as _0x5ed056,createElement as _0xff9a40,useCallback as _0x1d425c}from'react';function _0x583f(){const _0x5687a0=['_socketService','_lockTransition','_waitCount','updateOfflineData','removeMember','colorChannel1','reconnect','getSkeleton','cursorInfo$','_disableEditing','function','getRangePointData','status$','addObject','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','indexOf','addEventListener','toggleOffline','LIVESHARE_OPERATION','_clearScheduledTask','collaboration_new_changeset','CHANGESET_REJ','_substituteUndoStack','infoRsp','/allowed','_getSaveTimeout','_registerRenderDependencies','min','_unlockTransition','[PendingState]:\x20received\x20rejection.','YUUMI_RATE_OVER_LIMIT','_labelPosition','_docSkeleton','setCurrentUser','_revisionService','code','permission.content','history','create','207hTwWFi','228938vCtfAV','socketService','with','getMember','transformChangesets','642UCXBTx','disableLocalCache','_collabCursorController','clipPath','exhaustSavingTask','_eventUnsubscribe','PENDING','_notificationService','[CollaborationSessionService]','_executeRemoteChangeset','_setupBeforeClosingHandler','jiqing500','_clearOtherTimers','_listenToOfflineEvent','call','FileId','USERS_ENTER','location','_handleJoinEvent','...','triggerDblclick','_getUndoStack','_docSyncEditingCollabCursorService','requestParams','isPermissionRej','json','UNKNOWN_CODE','unload','_substituteRedoStack','resolve','_textBubble','InsertRangeMoveRightCommandId','_incrementRevisionNumber','_syncEditingCollabCursorService','_state$','_createSocket','_getAPIPrefixPath','_checkMissing','createElement','_clearRedo','_shouldReportTelemetry','tag','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','setTimeout','reduce','_undoRedoService','retryConnectingInterval','?url=','enableLocalCache','57RnxwCM','updateCollaborator','OFFLINE','_syncEditingCollabCursor','revision','mutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_snapshotService','onMouseMove','LIVESHARE_NEW_HOST','_sendingTimer','liveShareOperation','initWorkbookPermissionChange','NOT_COLLAB','resourceIDs','/unit/','none','_name','Error\x20on\x20receiving\x20event','UNDEFINED','values','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/snapshot','_retryConnectingTimer','FETCH_MISSING','_snapshotServerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','localeService','appendMutation','transformMutation','blue400','_initCommandExecutedListener','editingUnit','_getSendChangesetTimeout','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','#fff','getTypeOfUnitAdded$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close','_submitChangeset','[OfflineState]:\x20received\x20rejection.','getSheetBySheetId','length','_getUploadFileURL','black','OnLineSingle','getViewport','collab-text-range-','_initRequestHeader','_updateStatus','rgba(255,\x20255,\x20255,\x200.01)','UnitSnapshot','/block/','responseType','getCurrentSelections','c1Prime','JOIN','_members','sheets','closeSession','SUBMIT_CHANGESET','apply','_HTTPService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_createInitialStateImpl','getWorkbookSelections','then','_collaborationTimeoutTimer','svg','_handleEvent','gold400','unitId\x20is\x20not\x20found','_id','column','_joinRoom','event$','restore','_drawTextRange','LEAVE','_getMergeRange','OffLineSingle','MoveRangeCommandId','getParam','registerHTTPInterceptor','objectID','_compressMutationService','_shapes','_http','image/bmp','_cursor','clear','onStarting','getSheetBlock','_updateCollabCursors','_entities','status','LIVESHARE_FETCH_OPERATIONS','_getRedoStack','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','idSuffix','searchParams','[PendingState]:\x20unhandled\x20univer\x20type:\x20','INTERNAL_ERROR','getOwnPropertySymbols','updatePermissionPoint','/-/object/-/batch_allowed','/new_changes','_tryReconnect','_commentService','method','memberID','collabStatus.syncing','_telemetryInfo','transformMutationsWithChangeset','_hover','_heartbeatTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_scheduleHeartbeat','UniverIcon','_updateURLWithCurrentState','[FetchMissState]','_scheduleTimestamp','_status$','_anchorDot','image/jpeg','_collaborationPaused','getAncestorScale','Error','_removeRoom','_scene','delete','InsertRowCommandId','_sheetTransformSelectionsService','defIds','font','_onCombEvent','getRelativeToViewportCoord','_localCacheService','_waitForHeartbeatResponse','_removeClearOtherTimer','\x20to\x20','now','LICENSE_DISTRO_REJECTED','_send','saveChangeset','MUTATION','state$','UNIVER_COLLABORATION_CLIENT_PLUGIN','encode','origin','_registerDependencies','unitId','_removeCollabCursors','saveImage','_toggleOffline','duration','_getSnapshotAPIPrefix','allowed','bottom','error$','shouldCloseConn','find','generateRandomId','subunit','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','onRemoteRej','[PendingState]:\x20received\x20acknowledgement.','_fetchMissChangesets','_createHandler','_ws','editing\x20status\x20changed\x20to','_docTransformIMECacheService','onMissedChangesetFetched','asObservable','registerComponent','awaitingChangeset','fetchMiss','forEach','m2Prime','setConfig','reverse','off-line-single_clip0_910_343','[OfflineState]:\x20received\x20acknowledgement.','_onCursorUpdate','loadOfflineData','doc.mutation.rich-text-editing','prototype','sheetID','skeleton','onRemoteChangeset','UNIVER_SHEET','BASE64','range','sessionStatus','getConfig','urlChange$','SNAPSHOT_HAS_BEEN_REMOVED','enableOfflineEditing','roomMembers$','includes','message$','/-/object/list','_localeService','transformIMECache','getUniverSheetInstance','collaboration-session-retry','UNIVER_DOC','_drawAnchor','_handleHeartbeatEvent','onTransformChange$','url','494373KfsTJA','activeSheet$','name','textRanges','from','JOINING','_logService','Warning','CONFLICT','/universer-api/comb','getCellPositionByOffset','_getLoginPath','_transformUndoredo','symbol','some','_unitOnClients','_configService','getOwnPropertyDescriptor','getUnitOnRev','getActiveSheet','INGEST','_instanceService','ranges','snapshotServerUrl','_clearUndo','_socket','_replayCachedMutations','_onConnectionFailed','concat','/role','withCredentials','APPLY_PERMISSION_DENIED','compose','collaboration.single-unit.warning','[CollaborationSession]','_rescheduleHeartbeat','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_urlService','save','loginUrlKey','subscribeEvent','_pendingMutations','_updateState','_localStorageService','getTime','resize','size','_sendHeartbeat','executeCommand','round','_onRemoteACK','fetchMissingChangesets','MSG_FOR_ERROR','every','_startDocCollabCursor','USERS_LEAVE','originalMeta','_permissionService','unshift','unsubscribe','reject','show','_event$','_injector','csAckEvent','_transformStack','href','APPLY_REVISION_CONFILICT','_disabled','onCommandExecuted','_docSkeletonManagerService','_type','_getSignURL','getUndoRedoMutationParamsCache','getCurrentUser','path','_assignedColors','selections','createInstance','setActiveRange','deepClone','stopTime','COLLAB_SUBMIT_CHANGESET_URL','_getSheetObject','session','{fileID}','_refRangeService','error','_toggleOnline','clearInterval','map','verdancy600','commentUpdate$','/collaborator','src','NOT_FOUND','_onOffline','members','_initCloseConn','eventID','getUnitStatus$','close$','getCurrentRevOfUnit','roles','465830xlEJZm','_unitStatus','DeleteRangeMoveUpCommandId','replace','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','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HELLO','COMPRESS_MUTATION_SEND','incrementRevOfUnit','SEND_CHANGESET_TIMEOUT','_state','_replaceFileID','HEARTBEAT_TIMEOUT','/object/','setParam','_loadSheet','m1Prime','_onUserJoin','_onJoinRoomEvent','_transformUndoRedoStack','_httpService','_clearCollaborationTimeoutTimer','_startCollaboration','override','_hideTimer','COMPRESS_MUTATION_APPLY','_range','createSocket','pipe','getActiveRange','getSheetId','className','copyFileMeta','_onRemoteChangeset','_transformPreviousActiveRange','_userManagerService','setInterval','red300','headers','getRenderById','_getDownloadEndpointURL','_onRecvEvent','_drawRectRange','YUUMI_SUBSCRIPTION_NOT_FOUND','_stopTelemetryCollaborationNewChangeset','collabStatus.fetchMiss','_colorIndex','init','_config','onStateChange','_redoStacks','substring','_beforeCloseService','getInterceptPoints','onTransformSelections','_unitID','_saveCache','UNIVER_SLIDE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','FETCH_MISS','TOO_MANY_REQUESTS','registerRenderModule','_queuedRemoteChangesets','AWAITING','UNRECOGNIZED','[CollaborationState]:\x20apply\x20error!','session.collaboration-timeout','fromCollab','_cursorInfo$','lineTo','visibilitychange','body','type','image/jpg','_onRemoteRejected','getOffsetConfig','SHOULD_CLOSE_CONN','UNIVER_PROJECT','/object','_clearLocalCache','leaveEvent','fetch_missing','SNAPSHOT_INVALID_SNAPSHOT','univerjs-icon\x20univerjs-icon-','liveShareNewHost','HEARTBEAT','_collabSessionService','pushState','engine','dispose','hide','userID','onSyncEditingCollabCursor','newValue','max','createCollaborator','joinRsp','url(#on-line-single_clip0_910_349)','_sendHeartbeatTimer','_onFetchMissResult','_commandService','_transitionLocked','getCurrent','drawWith','unitID','_onRefRangeChange','_getCtorByUniverType','replaceState','conflict.title','syncEditingCollabCursor','_change$','transformStack\x20failed!','setShapeProps','baseRev','_initMergeInterceptor','_socket$','_remoteChangesetQueue','onTransformIME','loadSheet','_ensureSubject','_hovered','getFocusedUnit','findNodePositionByCharIndex','YUUMI_URL_COL_OUT_OF_RANGE','file','_render','offline','transformRemoteChangeset','debug','currentColor','_clearHeartbeatTimer','has','_scheduleSaving','_onUserLeave','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','UNAUTHENTICATED','subUnitId','commentUpdateEvent','RemoveColCommandId','/universer-api/snapshot/','DEFAULT_FILE_NAME','send','changesets','endRow','_imageSourceCache','div','M0\x200H16V16H0z','session.room-full','_handleHover','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','_onConflict','_initResize','catch','authzUrl','toString','resend','_telemetryService','collab-text-anchor-','collabStatus.conflict','assignAColorForMemberID','fillStyle','_sessions','EXCHANGE_SIGN_URL_SERVER_URL_KEY','confirm','SNAPSHOT_SERVER_URL_KEY','8dtDurG','_cursors','_collaborationController','onPointerEnter$','&source=','split','IDLE','visibilityState','collaboration-client.offline-data-not-saved','put','_cachedData','pauseCollaboration','next','measureText','[SyncedState]:\x20received\x20rejection.','_initUnitPermissionChange','uploadFileServerUrl','updatePermissionObjEvent','sheetId','hasOwnProperty','workbook','addImageSourceCache','closePath','disposeWithMe','x-univer-host','0\x200\x2017\x2016','_exhaustRemoteChangesetQueue','updateCursorEvent','_showConflictNotification','univer-online-status-icon','_selfUnitIDs','APPLY_REJECT','disposeUnit','_updateLocalCursor','conflict.content','getCollabEntity','readAsDataURL','string','_scheduleClearOtherTimer','_roomMembers$','collabSubmitChangesetUrl','onPointerLeave$','_online','getValue','_refreshCollabCursors','joinEvent','defs','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onlineStatusTitle','_cursorShapes','fillText','_updateSubUnitFromURLParams','dispose$','_onMessage','7876sOPuki','entries','rev','UUID','_applyRemoteChangeset','change$','moveTo','hovered','#FFF','startsWith','_colorAssignService','endColumn','onRendered','_tryEnsureSocket','CONNECTOR_DATA_TOO_LARGE','/universer-api/authz','_anchor','xlink:href','attrs','_lastPointer','getUnitType','push','addObjects','_socketReady','submit\x20changeset\x20error!','subscribe','parse','_listenToOnlineEvent','currentTheme$','_uiPartsService','_clearTimeoutTimer','_startTelemetryCollaborationNewChangeset','unit','registerRefRange','collaborators','Undefined','failed\x20to\x20apply\x20missed\x20changesets!','InsertRangeMoveDownCommandId','SNAPSHOT_URL_KEY','getImageSourceCache','_messageService','LICENSE_IMPORT_SIZE_EXCEEDED','fill','_throwTelemetryCollaborationNewChangeset','loadDoc','sessionStatus$','_acknowledgedAwaitingChangeset','HEADER_MENU','replaceTextRanges','_schedule','collab-rect-range-','_retryCount','connection\x20error','url(#off-line-single_clip0_910_343)','slice','collaboration.closeRoom','_entityInit$','_createInitialState','use','isActive','/universer-api/stream/file/upload','12165ZzPxmy','capture','APPLY_NON_SEQUENTIAL_REVISION','fetching\x20missing\x20changesets\x20from\x20','_collaborationSessionService','off-line-single','_onConnectionOpen','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','HttpExport','auth.needGotoLoginAlert','currentSkeleton$','COLLAB_WEB_SOCKET_URL','list','target','awaiting_with_pending','_initModules','_backgroundColor','online','getCollabEntity$','cursorInfo','_sheetSkeletonManagerService','row','labelPosition','transformUndoRedo','getDocRanges','ALREADY_EXISTS','PERMISSION_REJ','_session','FromArray','[SyncedState]:\x20received\x20acknowledgement.','univer-online-status','complete','result','RETRY_CONNECTING_MAX_COUNT','whenReady','_themeService','UPDATE_PERMISSION_OBJ','AUTHZ_URL_KEY','RemoveRowCommandId','FAIL','_isPermissionRej','_transformService','_getAPIPrefix','synced','saveSnapshot','_candidateSocket','_onCursorDelete','onSendChangeset','1em','updateMember','_initStatusComponent','9148UscBzD','toRgbString','_color','collab-client.tooltip.reconnect','_roomMembers','_onLocalMutation','displayName','_transformRemoteChangesetByIMECache','_getAnchorBounding','ONLINE','focused$','LIVESHARE_TERMINATE','NEW_CHANGESETS','onTransformRemoteChangesetByIMECache','extend','\x20in\x20_schedule.','27876PVTNMg','defineProperty','newCsEvent','&to=','requireSession','_memberService','getTypeOfUnitDisposed$','objectType','getResourcesRequest','ERROR_IMAGE','getUnhiddenWorksheets','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onPointerMove$','collabCursorState$','getUnit','all','setItem','_decreaseWaiting','startColumn','add','action','conflict','listCollaborators','_docTransformSelectionsService','_document','setUndoRedoMutationParamsCache','top','roomMembers','UnitEmbedded','height','[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.','_socketMessageSubscription','_context','_getCurrentRevision','registerOnClose','onlyLocal','text','color','ws://127.0.0.1:8000/universer-api/comb/connect','unknown','_univerInstanceService','socket\x20open.','saveOfflineData','_timeoutTimer','clearTimeout','cmd','SYNCED','InsertColCommandId','_initStatusListener','[CollaborationUndoRedoService]','/resources','HttpImport','/universer-api/oidc/authpage','assign','onMissingChangesets','toggleOnline','getCollabCursors$','width','PERMISSION_DENIED','evenodd','ACTIVE_UNIT_EVENT_CHANNEL','arc','RECV','YUUMI_UNABLE_LOAD_URL','random','set','_updateLocalCache','collabStatus.offline','isEditing','patch','_awaitingChangeset','_transformIMECache','startRow','removeParam','LIVESHARE_REQUEST_HOST','_renderManagerService','_loadDoc','_singleActiveUnitService','[DataLoaderController]','collabStatus.synced','setAlpha','data','Unknown\x20user','/fetchmissing?from=','_draw','actions','SUCCUSS','collabStatus.notCollab','getRoom','post','[UniverCollaborationClientPlugin]','_commentUpdate$','append','open$','_transformSelections','filter','get','3300815EeivvE','_init','_handler','transformSelections','\x0aCurrent:\x20','getUnitId','unit-cache-','onReady','_saveTaskMap','getItem','POST','state','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','onRemoteAck','_startSheetCollabCursor','uni.network.url-service','onCommentUpdate','isArray','_initEventListeners','interceptor','fetchThroughInterceptors','_handleLeaveEvent','stringify','UNIVER_UNKNOWN','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','params','onlineStatusIcon','CHANGESET_REVISION_CONFILICT','key','CHANGESET_ACK','awaiting','[CollaborationSessionService]:\x20socket\x20error','not_collab','collaboration-client.config','purple300','update','roomInfos','getMemberID','Univer','image/gif','routeKey'];_0x583f=function(){return _0x5687a0;};return _0x583f();}import _0x42940b from'clsx';import{IRemoteInstanceService as _0x51139b}from'@univerjs/rpc';import{getAttachHeader as _0x575ac8}from'@univerjs-pro/license';const dn=_0x4c1f23(0x230),fn=_0x4c1f23(0x3e8),mn=_0x4c1f23(0x28d),Oa=_0x4c1f23(0x194),gn=0x7d0,Sn=_0x4c1f23(0x2b0),pn=_0x4c1f23(0x30e),vn='HEARTBEAT_INTERVAL',In=0x7530,Ns=_0x4c1f23(0x197),Us=0x4e20,En=0x4e20,Cn=_0x4c1f23(0x2c6),bn=0x3,Tn='LOCAL_CACHE_INTERVAL',Rn=0x3e8,On=_0x4c1f23(0x175),Dn=_0x4c1f23(0x12b),wn='LOGIN_URL_KEY',Pn=_0x4c1f23(0x31c);var Ms=(_0x3c8afd=>(_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3e5)]=0x0]=_0x4c1f23(0x3e5),_0x3c8afd[_0x3c8afd['OK']=0x1]='OK',_0x3c8afd[_0x3c8afd[_0x4c1f23(0xb4)]=0x2]='INTERNAL_ERROR',_0x3c8afd[_0x3c8afd['PERMISSION_DENIED']=0x3]=_0x4c1f23(0x322),_0x3c8afd[_0x3c8afd['NOT_FOUND']=0x4]=_0x4c1f23(0x182),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x212)]=0x5]=_0x4c1f23(0x212),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2be)]=0x6]=_0x4c1f23(0x2be),_0x3c8afd[_0x3c8afd['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1c7)]=0x8]='TOO_MANY_REQUESTS',_0x3c8afd[_0x3c8afd['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x366)]=0x1389]=_0x4c1f23(0x366),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1dd)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x113)]=0x1772]=_0x4c1f23(0x113),_0x3c8afd[_0x3c8afd['APPLY_REJECT']=0x1b59]=_0x4c1f23(0x250),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2a6)]=0x1b5a]=_0x4c1f23(0x2a6),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x166)]=0x1b5b]=_0x4c1f23(0x166),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x141)]=0x1b5c]=_0x4c1f23(0x141),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x275)]=0x1f41]=_0x4c1f23(0x275),_0x3c8afd[_0x3c8afd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4c1f23(0x3e7),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3ed)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x290)]=0x232b]=_0x4c1f23(0x290),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x355)]=0x232c]=_0x4c1f23(0x355),_0x3c8afd[_0x3c8afd[_0x4c1f23(0xdc)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x327)]=0x2711]=_0x4c1f23(0x327),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x206)]=0x2712]=_0x4c1f23(0x206),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x392)]=0x2713]=_0x4c1f23(0x392),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1b6)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x3c8afd))(Ms||{}),H=(_0x193fa5=>(_0x193fa5[_0x193fa5[_0x4c1f23(0x361)]=0x0]=_0x4c1f23(0x361),_0x193fa5[_0x193fa5[_0x4c1f23(0x11d)]=0x1]=_0x4c1f23(0x11d),_0x193fa5[_0x193fa5[_0x4c1f23(0x10d)]=0x2]=_0x4c1f23(0x10d),_0x193fa5[_0x193fa5[_0x4c1f23(0x1c4)]=0x3]='UNIVER_SLIDE',_0x193fa5[_0x193fa5[_0x4c1f23(0x1d8)]=0x4]='UNIVER_PROJECT',_0x193fa5[_0x193fa5[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x193fa5))(H||{}),I=(_0x436903=>(_0x436903[_0x436903['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x436903[_0x436903['HELLO']=0x1]=_0x4c1f23(0x191),_0x436903[_0x436903[_0x4c1f23(0x86)]=0x2]='JOIN',_0x436903[_0x436903['LEAVE']=0x3]=_0x4c1f23(0x9c),_0x436903[_0x436903[_0x4c1f23(0x136)]=0x4]=_0x4c1f23(0x136),_0x436903[_0x436903['HEARTBEAT']=0x5]=_0x4c1f23(0x1e0),_0x436903[_0x436903['RECV']=0x6]='RECV',_0x436903[_0x436903['UNRECOGNIZED']=-0x1]=_0x4c1f23(0x1cb),_0x436903))(I||{}),kt=(_0x13dbbd=>(_0x13dbbd[_0x13dbbd[_0x4c1f23(0x3bb)]=0x0]=_0x4c1f23(0x3bb),_0x13dbbd[_0x13dbbd['OK']=0x1]='OK',_0x13dbbd[_0x13dbbd[_0x4c1f23(0x2cc)]=0x2]=_0x4c1f23(0x2cc),_0x13dbbd[_0x13dbbd['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x13dbbd))(kt||{}),As=(_0x14d295=>(_0x14d295[_0x14d295[_0x4c1f23(0x28a)]=0x0]=_0x4c1f23(0x28a),_0x14d295[_0x14d295[_0x4c1f23(0x31b)]=0x1]='HttpImport',_0x14d295[_0x14d295[_0x4c1f23(0x2ad)]=0x2]=_0x4c1f23(0x2ad),_0x14d295[_0x14d295['UnitEmbedded']=0x3]=_0x4c1f23(0x304),_0x14d295[_0x14d295[_0x4c1f23(0x81)]=0x4]=_0x4c1f23(0x81),_0x14d295[_0x14d295[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x14d295))(As||{});const L=_0x4c1f23(0x36c),yn={};function Nn(_0xa62d04){const _0xede628=_0x4c1f23;var _0x1fa07b,_0x255cec,_0x1627b9,_0x20807b;const _0x3b16c9=_0xa62d04[_0xede628(0x339)],_0x4112c5=JSON['parse'](_0x3b16c9);switch(_0x4112c5[_0xede628(0x315)]){case I[_0xede628(0x1e0)]:case I[_0xede628(0x191)]:{const _0x27634f=_0x4112c5[_0xede628(0x38b)];return{..._0x4112c5,'data':_0x27634f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I[_0xede628(0x86)]:{const _0x5d1b9f=_0x4112c5[_0xede628(0x1eb)];return{..._0x4112c5,'data':_0x5d1b9f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I['RECV']:{const _0x21ce19=_0x4112c5['collaMsg'];switch(_0x21ce19[_0xede628(0x186)]){case _0x273d8c[_0xede628(0x2bf)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1fa07b=_0x21ce19['permissionRejEvent'])==null?void 0x0:_0x1fa07b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x368)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x255cec=_0x21ce19[_0xede628(0x163)])==null?void 0x0:_0x255cec['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2e4)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1627b9=_0x21ce19[_0xede628(0x2ea)])==null?void 0x0:_0x1627b9['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x389)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x20807b=_0x21ce19['csRejEvent'])==null?void 0x0:_0x20807b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c['UPDATE_CURSOR']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x24c)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['USERS_ENTER']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x25e)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x15a)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1db)]},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x3db)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5['cmd']};case _0x273d8c['LIVESHARE_FETCH_OPERATIONS']:case _0x273d8c[_0xede628(0x386)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x3dd)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['LIVESHARE_TERMINATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x157)]:return{..._0x4112c5,'data':_0x21ce19,'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['COMMENT_UPDATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x214)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2c9)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x242)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x1d7)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0xee)]},'cmd':_0x4112c5['cmd']};default:return _0x4112c5;}}default:return _0x4112c5;}}function Un(_0x582c4a){const _0x2c03ad=_0x4c1f23;switch(_0x582c4a[_0x2c03ad(0x315)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)]});case I['INGEST']:{let _0x5b4dd4;switch(_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]){case _0x273d8c[_0x2c03ad(0xf2)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0xf2)],'updateCursorEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c['USERS_LEAVE']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x15a)],'leaveEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x3b1)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3b1)],'joinEvent':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c[_0x2c03ad(0x3db)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3db)],'liveShareNewHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x386)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x386)],'liveShareOperation':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x2e3)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x2e3)],'liveShareTerminate':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c['LIVESHARE_REQUEST_HOST']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x332)],'liveShareRequestHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0xae)]:{_0x5b4dd4={'eventID':_0x273d8c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5b4dd4={'eventID':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]};}return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a['routeKey'],'collaMsg':_0x5b4dd4});}case I['JOIN']:return JSON['stringify']({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'joinReq':_0x582c4a[_0x2c03ad(0x339)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'leaveReq':_0x582c4a['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object['defineProperty'],An=Object[_0x4c1f23(0x133)],Ln=(_0x50e760,_0x4acce8,_0x818c9e,_0x23b747)=>{const _0x326986=_0x4c1f23;for(var _0x3eb5f8=_0x23b747>0x1?void 0x0:_0x23b747?An(_0x4acce8,_0x818c9e):_0x4acce8,_0x58eec7=_0x50e760[_0x326986(0x78)]-0x1,_0x52772a;_0x58eec7>=0x0;_0x58eec7--)(_0x52772a=_0x50e760[_0x58eec7])&&(_0x3eb5f8=(_0x23b747?_0x52772a(_0x4acce8,_0x818c9e,_0x3eb5f8):_0x52772a(_0x3eb5f8))||_0x3eb5f8);return _0x23b747&&_0x3eb5f8&&Mn(_0x4acce8,_0x818c9e,_0x3eb5f8),_0x3eb5f8;},Re=(_0x40d5aa,_0x2ade6c)=>(_0xa9fe0c,_0x1dd474)=>_0x2ade6c(_0xa9fe0c,_0x1dd474,_0x40d5aa);const Ls=_0x2d62b5('univer-pro.collaboration-client-socket-service');function $n(_0x2a1dab,_0x42cc4c,_0x3756b7){const _0xaa23be=_0x4c1f23;return _0x2a1dab+'/'+_0x42cc4c+_0xaa23be(0x3e1)+_0x3756b7+_0xaa23be(0xb8);}let Et=class extends _0x22db72{constructor(_0x36dca4,_0x10ab30,_0x186538,_0x2f937b,_0xe172d9){const _0x71c1a5=_0x4c1f23;super(),this[_0x71c1a5(0xa5)]=_0x36dca4,this[_0x71c1a5(0xf8)]=_0x10ab30,this[_0x71c1a5(0x132)]=_0x186538,this[_0x71c1a5(0x128)]=_0x2f937b,this['_snapshotServerService']=_0xe172d9;}[_0x4c1f23(0x1a6)](_0x130798){const _0x35fb53=_0x4c1f23,_0x5ca11d=this[_0x35fb53(0xf8)][_0x35fb53(0x1a6)](_0x130798);if(!_0x5ca11d)throw new Error(_0x35fb53(0x3f5));const _0x693d5c=new _0x242419(),_0x27ff60=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d['close$']['subscribe'](_0x4a9793=>_0x27ff60[_0x35fb53(0x23d)](_0x4a9793))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x27ff60[_0x35fb53(0x2c4)]()));const _0x3d209c=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0xed)][_0x35fb53(0x280)](_0x17aa78=>_0x3d209c[_0x35fb53(0x23d)](_0x17aa78))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x3d209c[_0x35fb53(0x2c4)]()));const _0x30c9a9=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0x117)][_0x35fb53(0x280)](_0x23afd1=>{const _0x11dd24=_0x35fb53,_0x15b7b2=Nn(_0x23afd1);_0x30c9a9[_0x11dd24(0x23d)](_0x15b7b2);})),_0x693d5c['add'](_0x5738c2(()=>_0x30c9a9['complete']()));let _0x30d95a;const _0x58cbcc=()=>{const _0x14871c=_0x35fb53;_0x3d209c[_0x14871c(0x23d)](new Event(_0x14871c(0x29b))),_0x27ff60['next'](new CloseEvent(_0x14871c(0x29b))),_0x30d95a[_0x14871c(0x74)]();};return _0x30d95a={'memberID':'','close$':_0x27ff60['asObservable'](),'error$':_0x3d209c[_0x35fb53(0xfc)](),'open$':_0x5ca11d[_0x35fb53(0x345)],'message$':_0x30c9a9[_0x35fb53(0xfc)](),'send':_0x1b66cb=>{const _0x17f8fe=_0x35fb53;if(_0x1b66cb[_0x17f8fe(0x315)]===I['INGEST']){if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x8a)]){this[_0x17f8fe(0x75)](_0x30d95a,_0x1b66cb[_0x17f8fe(0x339)])[_0x17f8fe(0x224)](_0x462d26=>{const _0xe8df5b=_0x17f8fe;this[_0xe8df5b(0x128)][_0xe8df5b(0x17a)](_0x462d26),_0x58cbcc();});return;}if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x3ea)]){const _0xdd37a3=_0x1b66cb[_0x17f8fe(0x339)];this[_0x17f8fe(0xf6)](_0xdd37a3)[_0x17f8fe(0x90)](_0x4438f9=>{const _0x4458f7=_0x17f8fe;_0x30c9a9[_0x4458f7(0x23d)]({'cmd':I[_0x4458f7(0x326)],'code':kt['OK'],'routeKey':_0xdd37a3[_0x4458f7(0x339)][_0x4458f7(0x1f3)],'routeType':'','data':{'eventID':_0x273d8c['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4438f9}}});})[_0x17f8fe(0x224)](_0x236185=>{const _0x4a009f=_0x17f8fe;this[_0x4a009f(0x128)][_0x4a009f(0x17a)](_0x236185),_0x58cbcc();});return;}}_0x5ca11d[_0x17f8fe(0x218)](Un(_0x1b66cb));},'close':()=>{_0x5ca11d['close'](),_0x693d5c['dispose']();}},_0x30d95a;}async[_0x4c1f23(0x75)](_0x15b682,_0x209f55){const _0x3b8775=_0x4c1f23;var _0x3a2ad2,_0x34ecda;const {unitType:_0x2a9830,unitID:_0x1befaf,changeset:_0x244cc9}=_0x209f55[_0x3b8775(0x339)],_0x1c3fa8={'unitID':_0x1befaf,'memberID':_0x15b682['memberID'],'type':_0x2a9830,'changeset':_0x2b2dd8(_0x244cc9)},_0x3cf0b7=this[_0x3b8775(0x132)][_0x3b8775(0x111)](On),_0x5dd139=this['_configService'][_0x3b8775(0x111)](L),_0x9c7e2c=$n((_0x34ecda=(_0x3a2ad2=_0x5dd139==null?void 0x0:_0x5dd139[_0x3b8775(0x259)])!=null?_0x3a2ad2:_0x3cf0b7)!=null?_0x34ecda:Dn,_0x2a9830,_0x1befaf);try{await this['_http'][_0x3b8775(0x341)](_0x9c7e2c,{'body':_0x1c3fa8});}catch(_0x4512cb){throw this[_0x3b8775(0x128)][_0x3b8775(0x17a)](_0x3b8775(0x144),_0x3b8775(0x27f)),_0x4512cb;}}async[_0x4c1f23(0xf6)](_0x4896ac){const _0x4d9a09=_0x4c1f23,{unitID:_0x3dfd4f,from:_0x36b267,to:_0x30a705,unitType:_0x35912a}=_0x4896ac['data'];return(await this[_0x4d9a09(0x3eb)][_0x4d9a09(0x156)]({'metadata':void 0x0},{'unitID':_0x3dfd4f,'type':_0x35912a,'from':_0x36b267,'to':_0x30a705}))[_0x4d9a09(0x219)];}};Et=Ln([Re(0x0,_0x321449(_0x1fbfa2)),Re(0x1,_0x321449(_0x57aa72)),Re(0x2,_0x4d21d1),Re(0x3,_0x50688a),Re(0x4,_0x4c90dd)],Et);const jn=_0x4c1f23(0x388);function xn(_0x4e0973){const _0xebb7d3=_0x4c1f23;return JSON[_0xebb7d3(0x360)](_0x4e0973)['length'];}class $s{constructor(){const _0x307a83=_0x4c1f23;l(this,'_commentUpdate$',new _0xacaad6()),l(this,_0x307a83(0x17f),this[_0x307a83(0x343)][_0x307a83(0xfc)]());}['onCommentUpdate'](_0x497178){const _0xd10197=_0x4c1f23;this[_0xd10197(0x343)]['next'](_0x497178);}}var Hn=Object[_0x4c1f23(0x2e9)],kn=Object[_0x4c1f23(0x133)],Bn=(_0x259610,_0x45c057,_0x5b32f6,_0x2954c4)=>{const _0x3e16b8=_0x4c1f23;for(var _0x3975a5=_0x2954c4>0x1?void 0x0:_0x2954c4?kn(_0x45c057,_0x5b32f6):_0x45c057,_0x22362b=_0x259610[_0x3e16b8(0x78)]-0x1,_0x50d417;_0x22362b>=0x0;_0x22362b--)(_0x50d417=_0x259610[_0x22362b])&&(_0x3975a5=(_0x2954c4?_0x50d417(_0x45c057,_0x5b32f6,_0x3975a5):_0x50d417(_0x3975a5))||_0x3975a5);return _0x2954c4&&_0x3975a5&&Hn(_0x45c057,_0x5b32f6,_0x3975a5),_0x3975a5;},rs=(_0x472601,_0x16d3db)=>(_0x2be070,_0x1fc134)=>_0x16d3db(_0x2be070,_0x1fc134,_0x472601);let ae=class extends _0x22db72{constructor(_0x29478b,_0x413952){const _0x242e51=_0x4c1f23;super(),l(this,_0x242e51(0x2dc),new Map()),(this['_univerInstanceService']=_0x29478b,this[_0x242e51(0x1ae)]=_0x413952,this[_0x242e51(0x248)](_0x5738c2(_0x5de0ce(this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9['UNIVER_SHEET'])[_0x242e51(0x1a7)](_0x3d528e(_0x138c70=>_0x138c70[_0x242e51(0x34e)]())),this[_0x242e51(0x310)][_0x242e51(0x2ee)](_0x4c91c9[_0x242e51(0x11d)])[_0x242e51(0x1a7)](_0x3d528e(_0x54ca50=>_0x54ca50[_0x242e51(0x34e)]())),this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9[_0x242e51(0x1c4)])['pipe'](_0x3d528e(_0x243753=>_0x243753[_0x242e51(0x34e)]())))[_0x242e51(0x280)](_0xbd3083=>this[_0x242e51(0xce)](_0xbd3083)))));}[_0x4c1f23(0x395)](_0x40becd){const _0x525e6b=_0x4c1f23;this[_0x525e6b(0x1ae)][_0x525e6b(0x395)](_0x40becd);}[_0x4c1f23(0x16d)](){const _0x5537f8=_0x4c1f23;return this[_0x5537f8(0x1ae)]['getCurrentUser']();}[_0x4c1f23(0x2d6)](_0x16073a,_0x281ffc){const _0x37bffd=_0x4c1f23;let _0x508ff1=this['_roomMembers'][_0x37bffd(0x348)](_0x16073a);_0x508ff1||(_0x508ff1=new Vn(),this[_0x37bffd(0x2dc)]['set'](_0x16073a,_0x508ff1)),_0x508ff1[_0x37bffd(0x2d6)](_0x281ffc);}[_0x4c1f23(0x378)](_0x2d3327,_0x2fe043){const _0x1e95e1=_0x4c1f23,_0x46936b=this[_0x1e95e1(0x2dc)]['get'](_0x2d3327);_0x46936b&&_0x46936b[_0x1e95e1(0x378)](_0x2fe043);}[_0x4c1f23(0x340)](_0x43fc54){return this['_roomMembers']['get'](_0x43fc54);}['getMember'](_0x4dcc02,_0x37b213){const _0x43138e=_0x4c1f23,_0x4e5950=this[_0x43138e(0x2dc)]['get'](_0x4dcc02);if(_0x4e5950)return _0x4e5950[_0x43138e(0x39f)](_0x37b213);}[_0x4c1f23(0xce)](_0x5b9777){const _0x30b1c9=_0x4c1f23,_0x115f2f=this['_roomMembers']['get'](_0x5b9777);_0x115f2f&&(_0x115f2f[_0x30b1c9(0x1e4)](),this[_0x30b1c9(0x2dc)][_0x30b1c9(0xd0)](_0x5b9777));}[_0x4c1f23(0x1e4)](){const _0x47fff3=_0x4c1f23;this[_0x47fff3(0x2dc)][_0x47fff3(0x100)](_0x4e8277=>_0x4e8277[_0x47fff3(0x1e4)]()),this['_roomMembers'][_0x47fff3(0xa8)]();}};ae=Bn([rs(0x0,_0x375068),rs(0x1,_0x321449(_0xc3ed3))],ae);class Vn extends _0x22db72{constructor(){const _0x3d2095=_0x4c1f23;super(...arguments),l(this,_0x3d2095(0x87),new Map());}[_0x4c1f23(0x1e4)](){const _0xa33cb1=_0x4c1f23;this[_0xa33cb1(0x87)][_0xa33cb1(0xa8)]();}[_0x4c1f23(0x2d6)](_0x1650df){const _0x28725d=_0x4c1f23;this[_0x28725d(0x87)]['set'](_0x1650df[_0x28725d(0xbc)],_0x1650df);}['removeMember'](_0x385b58){const _0x4b7738=_0x4c1f23;this[_0x4b7738(0x87)][_0x4b7738(0xd0)](_0x385b58);}[_0x4c1f23(0x39f)](_0x43c94c){const _0x5d70f6=_0x4c1f23;return this['_members'][_0x5d70f6(0x348)](_0x43c94c);}}var Fn=Object['defineProperty'],Wn=Object[_0x4c1f23(0x133)],Gn=(_0x5d884c,_0x10f790,_0x2d69c6,_0x2572b0)=>{for(var _0x3d91bc=_0x2572b0>0x1?void 0x0:_0x2572b0?Wn(_0x10f790,_0x2d69c6):_0x10f790,_0x355d2e=_0x5d884c['length']-0x1,_0x3f10c5;_0x355d2e>=0x0;_0x355d2e--)(_0x3f10c5=_0x5d884c[_0x355d2e])&&(_0x3d91bc=(_0x2572b0?_0x3f10c5(_0x10f790,_0x2d69c6,_0x3d91bc):_0x3f10c5(_0x3d91bc))||_0x3d91bc);return _0x2572b0&&_0x3d91bc&&Fn(_0x10f790,_0x2d69c6,_0x3d91bc),_0x3d91bc;},J=(_0x44fde5,_0x49f553)=>(_0x1fc462,_0x4f3d6e)=>_0x49f553(_0x1fc462,_0x4f3d6e,_0x44fde5),G=(_0x2e7845=>(_0x2e7845[_0x2e7845[_0x4c1f23(0x237)]=0x0]='IDLE',_0x2e7845[_0x2e7845[_0x4c1f23(0x127)]=0x1]='JOINING',_0x2e7845[_0x2e7845['OFFLINE']=0x2]=_0x4c1f23(0x3d4),_0x2e7845[_0x2e7845[_0x4c1f23(0x2e1)]=0x3]=_0x4c1f23(0x2e1),_0x2e7845))(G||{});function _0x4c7d(_0xb72135,_0x28f116){const _0x583f58=_0x583f();return _0x4c7d=function(_0x4c7d20,_0xec52ac){_0x4c7d20=_0x4c7d20-0x73;let _0x238afb=_0x583f58[_0x4c7d20];return _0x238afb;},_0x4c7d(_0xb72135,_0x28f116);}let Ct=class extends _0x2dacfb{constructor(_0x376713,_0x56ae74,_0x2a9705,_0x40006f,_0x53c354,_0x4c1650,_0x1b2322,_0x291af3,_0x39f1ac,_0x25579a){const _0x55d9b2=_0x4c1f23;super(),l(this,_0x55d9b2(0x221),new _0x2ec58d(0x0)),l(this,_0x55d9b2(0x294),this['_sessionStatus$']['asObservable']()),l(this,'_event$',new _0xacaad6()),l(this,_0x55d9b2(0x99),this[_0x55d9b2(0x161)]['asObservable']()),l(this,_0x55d9b2(0x13b)),l(this,'_socketMessageSubscription'),l(this,_0x55d9b2(0x91)),l(this,_0x55d9b2(0x3c9),!0x1),l(this,_0x55d9b2(0xbe),null),(this[_0x55d9b2(0x1c2)]=_0x376713,this[_0x55d9b2(0x128)]=_0x2a9705,this['_beforeCloseService']=_0x40006f,this[_0x55d9b2(0x28f)]=_0x53c354,this[_0x55d9b2(0x132)]=_0x4c1650,this[_0x55d9b2(0x119)]=_0x1b2322,this[_0x55d9b2(0x2ed)]=_0x291af3,this[_0x55d9b2(0xba)]=_0x39f1ac,this['_telemetryService']=_0x25579a,this[_0x55d9b2(0x3c9)]=!!this[_0x55d9b2(0x228)],_0x56ae74[_0x55d9b2(0x1a7)](_0x289d57(this[_0x55d9b2(0x265)]))[_0x55d9b2(0x280)](_0x34c84f=>{const _0x322321=_0x55d9b2;var _0x1edf03;typeof _0x34c84f>'u'||(this[_0x322321(0x13b)]=_0x34c84f,_0x34c84f?(this['_joinRoom'](_0x34c84f),this[_0x322321(0x307)]=_0x34c84f[_0x322321(0x117)][_0x322321(0x280)](_0x114437=>{const _0x55c070=_0x322321;_0x114437[_0x55c070(0x373)]===this[_0x55c070(0x1c2)]&&this[_0x55c070(0xd5)](_0x114437);})):(this[_0x322321(0x292)](),this[_0x322321(0x221)]['next'](0x2),(_0x1edf03=this['_socketMessageSubscription'])==null||_0x1edf03['unsubscribe'](),this[_0x322321(0x307)]=null));}),this[_0x55d9b2(0x248)](this[_0x55d9b2(0x1bf)][_0x55d9b2(0x30a)](()=>{const _0x385b25=_0x55d9b2;var _0x42ea26;(_0x42ea26=this[_0x385b25(0x13b)])==null||_0x42ea26[_0x385b25(0x218)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x385b25(0x1c2)]}});})));}get[_0x4c1f23(0x110)](){const _0x66e913=_0x4c1f23;return this[_0x66e913(0x221)][_0x66e913(0x25c)]();}[_0x4c1f23(0x370)](){const _0x41ef16=_0x4c1f23;var _0x27c515,_0x368a78;return(_0x368a78=(_0x27c515=this[_0x41ef16(0x13b)])==null?void 0x0:_0x27c515[_0x41ef16(0xbc)])!=null?_0x368a78:null;}['dispose'](){const _0x11c284=_0x4c1f23;super[_0x11c284(0x1e4)](),this[_0x11c284(0x265)][_0x11c284(0x23d)](),this[_0x11c284(0x265)][_0x11c284(0x2c4)]();}['close'](){const _0x5bd256=_0x4c1f23;var _0x1fea9c,_0x584a53;this[_0x5bd256(0x292)](),(_0x1fea9c=this[_0x5bd256(0x13b)])==null||_0x1fea9c['send']({'cmd':I[_0x5bd256(0x9c)],'data':{'roomID':this[_0x5bd256(0x1c2)]}}),(_0x584a53=this[_0x5bd256(0x13b)])==null||_0x584a53[_0x5bd256(0x74)](),this['_event$'][_0x5bd256(0x2c4)](),this['_sessionStatus$']['complete'](),this[_0x5bd256(0x1e4)]();}['_onCombEvent'](_0x27c0b0){const _0x5e70e4=_0x4c1f23;_0x27c0b0[_0x5e70e4(0x315)]===I['JOIN']?this[_0x5e70e4(0x19d)](_0x27c0b0):_0x27c0b0[_0x5e70e4(0x315)]===I[_0x5e70e4(0x326)]&&this[_0x5e70e4(0x1b4)](_0x27c0b0);}[_0x4c1f23(0x98)](_0x3028a0){const _0x3cae92=_0x4c1f23;this['_sessionStatus$']['next'](0x1),_0x3028a0[_0x3cae92(0x218)]({'cmd':I[_0x3cae92(0x86)],'routeKey':this[_0x3cae92(0x1c2)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4c1f23(0x19d)](_0x3a4dfd){const _0x55a458=_0x4c1f23;var _0x5c1ffd;if(_0x3a4dfd[_0x55a458(0x397)]===kt[_0x55a458(0x2cc)]){this[_0x55a458(0x28f)][_0x55a458(0x160)]({'type':_0x57eb36[_0x55a458(0x129)],'content':this[_0x55a458(0x119)]['t'](_0x55a458(0x21e))}),this[_0x55a458(0x221)]['next'](0x2);return;}this[_0x55a458(0x221)][_0x55a458(0x23d)](0x3);const _0x75bf5=(_0x5c1ffd=_0x3a4dfd[_0x55a458(0x339)][_0x55a458(0x36f)][this['_unitID']])==null?void 0x0:_0x5c1ffd[_0x55a458(0x184)];_0x75bf5&&_0x75bf5[_0x55a458(0x100)](_0x5bd3f2=>this['_memberService'][_0x55a458(0x2d6)](this[_0x55a458(0x1c2)],_0x5bd3f2));}[_0x4c1f23(0x1b4)](_0x19d4ce){const _0x345f3f=_0x4c1f23;try{const _0x1fc6fa=_0x19d4ce[_0x345f3f(0x339)];switch(_0x1fc6fa[_0x345f3f(0x186)]){case _0x273d8c[_0x345f3f(0x3b1)]:this[_0x345f3f(0x19c)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x15a)]:this[_0x345f3f(0x210)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x368)]:this[_0x345f3f(0x1b7)](),this['_clearCollaborationTimeoutTimer'](),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x157)]:this[_0x345f3f(0x128)][_0x345f3f(0x17a)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x1fc6fa)),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c['COMMENT_UPDATE']:this[_0x345f3f(0xba)][_0x345f3f(0x35a)](_0x1fc6fa[_0x345f3f(0x339)]),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;default:this[_0x345f3f(0x161)]['next'](_0x1fc6fa);}}catch(_0x58fafc){this[_0x345f3f(0x128)][_0x345f3f(0x17a)](_0x58fafc,_0x19d4ce);}}['_onUserJoin'](_0x5b8a4b){const _0x1659e6=_0x4c1f23;this[_0x1659e6(0x2ed)][_0x1659e6(0x2d6)](this[_0x1659e6(0x1c2)],_0x5b8a4b['data']);}['_onUserLeave'](_0x513503){const _0x5471fd=_0x4c1f23;this[_0x5471fd(0x2ed)][_0x5471fd(0x378)](this['_unitID'],_0x513503['data']['memberID']);}async['send'](_0x8b6c7b,_0x2c40af){const _0x4c3cfd=_0x4c1f23;if(this['sessionStatus']!==0x3||!this[_0x4c3cfd(0x13b)])throw new Error(_0x4c3cfd(0x147));try{_0x8b6c7b[_0x4c3cfd(0x186)]===_0x273d8c['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4c3cfd(0x286)](_0x8b6c7b)),this[_0x4c3cfd(0x13b)][_0x4c3cfd(0x218)]({'cmd':I[_0x4c3cfd(0x136)],'routeKey':_0x2c40af,'routeType':'','data':_0x8b6c7b});}catch(_0x257b42){this['_logService']['error'](_0x257b42);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4d5dd7=_0x4c1f23;var _0x2e28bf;this[_0x4d5dd7(0x91)]=window[_0x4d5dd7(0x3cc)](()=>{const _0x39d170=_0x4d5dd7;this['_collaborationTimeoutTimer']=null,this[_0x39d170(0x28f)]['show']({'type':_0x57eb36[_0x39d170(0xcd)],'content':this[_0x39d170(0x119)]['t'](_0x39d170(0x1cd))});},(_0x2e28bf=this[_0x4d5dd7(0x132)][_0x4d5dd7(0x111)](Ns))!=null?_0x2e28bf:Us);}[_0x4c1f23(0x1a0)](){const _0x5a8f64=_0x4c1f23;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5a8f64(0x91)]),this[_0x5a8f64(0x91)]=null);}[_0x4c1f23(0x286)](_0x7888d4){const _0x38f5f5=_0x4c1f23;if(!this['_shouldReportTelemetry'])return;const {data:_0x4b3226}=_0x7888d4,{unitID:_0x3536de,changeset:_0x2ae39e}=_0x4b3226,{mutations:_0x411111,type:_0x5d0ba8}=_0x2ae39e;this[_0x38f5f5(0xbe)]={'unitId':_0x3536de,'type':_0x5d0ba8,'startTime':performance[_0x38f5f5(0xdb)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x411111)};}[_0x4c1f23(0x1b7)](){const _0x337dad=_0x4c1f23;if(this[_0x337dad(0x3c9)]){if(!this[_0x337dad(0xbe)]){this[_0x337dad(0x128)]['error'](_0x337dad(0x144),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x337dad(0xbe)][_0x337dad(0x174)]=performance['now'](),this[_0x337dad(0xbe)][_0x337dad(0xe9)]=this['_telemetryInfo']['stopTime']-this['_telemetryInfo']['startTime'],this[_0x337dad(0x228)][_0x337dad(0x2a5)](jn,this[_0x337dad(0xbe)]),this[_0x337dad(0xbe)]=null;}}[_0x4c1f23(0x292)](){const _0x485a2c=_0x4c1f23;this[_0x485a2c(0xbe)]=null;}};Ct=Gn([J(0x2,_0x50688a),J(0x3,_0x3cc7ef),J(0x4,_0x5d3b7c),J(0x5,_0x4d21d1),J(0x6,_0x321449(_0x2e153b)),J(0x7,_0x321449(ae)),J(0x8,_0x321449($s)),J(0x9,_0x9bfc3c(_0x2263bf))],Ct);var Yn=Object[_0x4c1f23(0x2e9)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x4b4d69,_0x5ac60f,_0x1a38b1,_0x3392d6)=>{const _0xf6c02a=_0x4c1f23;for(var _0x542e68=_0x3392d6>0x1?void 0x0:_0x3392d6?Kn(_0x5ac60f,_0x1a38b1):_0x5ac60f,_0xb3c961=_0x4b4d69[_0xf6c02a(0x78)]-0x1,_0x623383;_0xb3c961>=0x0;_0xb3c961--)(_0x623383=_0x4b4d69[_0xb3c961])&&(_0x542e68=(_0x3392d6?_0x623383(_0x5ac60f,_0x1a38b1,_0x542e68):_0x623383(_0x542e68))||_0x542e68);return _0x3392d6&&_0x542e68&&Yn(_0x5ac60f,_0x1a38b1,_0x542e68),_0x542e68;},de=(_0x36e9c2,_0x1c5e79)=>(_0x3b2f91,_0x11d767)=>_0x1c5e79(_0x3b2f91,_0x11d767,_0x36e9c2);let ce=class extends _0x22db72{constructor(_0x4f9df5,_0x1c3e4c,_0x2589f8,_0xab7459,_0x1abd30,_0xb4a1bd){const _0x5dcc2f=_0x4c1f23;super(),l(this,_0x5dcc2f(0x1fe),new _0x2ec58d(void 0x0)),l(this,'socket$',this[_0x5dcc2f(0x1fe)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x2d2),null),l(this,'_sessions',new Map()),l(this,_0x5dcc2f(0xc8),new _0x2ec58d(G[_0x5dcc2f(0x237)])),l(this,_0x5dcc2f(0x380),this[_0x5dcc2f(0xc8)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x27e),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x5dcc2f(0x29a),0x0),l(this,_0x5dcc2f(0x1ed)),l(this,_0x5dcc2f(0x313)),(this['_injector']=_0x4f9df5,this[_0x5dcc2f(0x119)]=_0x1c3e4c,this[_0x5dcc2f(0x28f)]=_0x2589f8,this[_0x5dcc2f(0x128)]=_0xab7459,this[_0x5dcc2f(0x132)]=_0x1abd30,this[_0x5dcc2f(0x374)]=_0xb4a1bd,this[_0x5dcc2f(0x35c)]());}get['_socket'](){const _0x3cce74=_0x4c1f23;return this['_socket$'][_0x3cce74(0x25c)]();}['_initEventListeners'](){const _0x595238=_0x4c1f23;this['_listenToOfflineEvent'](),this[_0x595238(0x282)]();}['dispose'](){const _0x1afcd3=_0x4c1f23;super[_0x1afcd3(0x1e4)](),this[_0x1afcd3(0x22d)][_0x1afcd3(0x100)](_0x584510=>_0x584510['dispose']()),this[_0x1afcd3(0x22d)]['clear'](),this[_0x1afcd3(0xc8)]['complete']();}async['requireSession'](_0x4b992c){const _0x4b8fec=_0x4c1f23;if(this[_0x4b8fec(0x22d)]['has'](_0x4b992c))return this[_0x4b8fec(0x22d)][_0x4b8fec(0x348)](_0x4b992c);this[_0x4b8fec(0x274)]();const _0x3df09e=this[_0x4b8fec(0x162)][_0x4b8fec(0x171)](Ct,_0x4b992c,this[_0x4b8fec(0x1fe)][_0x4b8fec(0xfc)]());return this[_0x4b8fec(0x22d)]['set'](_0x4b992c,_0x3df09e),_0x3df09e;}[_0x4c1f23(0x89)](_0x21dacc){const _0x189b65=_0x4c1f23;var _0x5604e5;const _0x186b34=this[_0x189b65(0x22d)][_0x189b65(0x348)](_0x21dacc);_0x186b34&&(this[_0x189b65(0x22d)][_0x189b65(0xd0)](_0x21dacc),_0x186b34[_0x189b65(0x74)]()),this[_0x189b65(0x22d)]['size']||(_0x5604e5=this['_socket'])==null||_0x5604e5[_0x189b65(0x74)]();}[_0x4c1f23(0x37a)](){const _0x4a8f00=_0x4c1f23;this[_0x4a8f00(0x29a)]=0x0,this[_0x4a8f00(0x3e9)]!=null&&(clearTimeout(this[_0x4a8f00(0x3e9)]),this[_0x4a8f00(0x3e9)]=null),this[_0x4a8f00(0xb9)]();}[_0x4c1f23(0x3c4)](){const _0x31bf00=_0x4c1f23;var _0x5db8dd,_0x23f3bf;const _0x2acfd9=this[_0x31bf00(0x132)][_0x31bf00(0x111)](Sn),_0x50e33b=this[_0x31bf00(0x132)][_0x31bf00(0x111)](L),_0x168d50=(_0x23f3bf=(_0x5db8dd=_0x50e33b==null?void 0x0:_0x50e33b['collabWebSocketUrl'])!=null?_0x5db8dd:_0x2acfd9)!=null?_0x23f3bf:pn,_0x3699c4=this[_0x31bf00(0x374)][_0x31bf00(0x1a6)](_0x168d50);return this[_0x31bf00(0x2d2)]=_0x3699c4,_0x3699c4;}[_0x4c1f23(0x274)](){const _0x17335f=_0x4c1f23;var _0x3e2582,_0x265369;try{const _0x5ed0d2=(_0x265369=(_0x3e2582=this[_0x17335f(0x13b)])!=null?_0x3e2582:this[_0x17335f(0x2d2)])!=null?_0x265369:this[_0x17335f(0x3c4)]();if(_0x5ed0d2){const _0x282f8d=_0x5ed0d2[_0x17335f(0x218)];_0x5ed0d2['send']=_0x571705=>(this[_0x17335f(0x145)](),_0x282f8d['apply'](_0x5ed0d2,[_0x571705])),_0x5ed0d2[_0x17335f(0x117)][_0x17335f(0x280)](_0x58c6e3=>this[_0x17335f(0x266)](_0x5ed0d2,_0x58c6e3)),_0x5ed0d2[_0x17335f(0xed)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x39b726=>this[_0x17335f(0x128)][_0x17335f(0x17a)](_0x17335f(0x36a),_0x39b726)),_0x5ed0d2[_0x17335f(0x345)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](()=>{this['_onConnectionOpen'](_0x5ed0d2);}),_0x5ed0d2[_0x17335f(0x188)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x4b723a=>{const _0x319ee1=_0x17335f;this[_0x319ee1(0x128)]['debug']('[CollaborationSessionService]','socket\x20close',_0x4b723a),this[_0x319ee1(0x13d)]();});}}catch(_0x4c4971){this['_logService'][_0x17335f(0x17a)](_0x4c4971),this['_onConnectionFailed']();}}[_0x4c1f23(0x2aa)](_0x983293){const _0x5acecd=_0x4c1f23;this['_logService'][_0x5acecd(0x20b)](_0x5acecd(0x3a9),_0x5acecd(0x311)),_0x983293[_0x5acecd(0x218)]({'cmd':I[_0x5acecd(0x191)]}),this[_0x5acecd(0x145)]();}[_0x4c1f23(0x3ae)](){const _0x279249=_0x4c1f23;window[_0x279249(0x384)](_0x279249(0x209),()=>this[_0x279249(0x183)]());}[_0x4c1f23(0x183)](){const _0x33eb75=_0x4c1f23;this[_0x33eb75(0x27e)]=!0x1,this[_0x33eb75(0x2d2)]=null,this[_0x33eb75(0xc8)][_0x33eb75(0x23d)](G[_0x33eb75(0x3d4)]),this[_0x33eb75(0x1fe)]['next'](null),this[_0x33eb75(0x285)](),this[_0x33eb75(0x20d)]();}['_onConnectionFailed'](){const _0x22de71=_0x4c1f23;var _0x298718;this[_0x22de71(0x183)](),this[_0x22de71(0x29a)]<((_0x298718=this['_configService']['getConfig'](Cn))!=null?_0x298718:bn)?(this['_messageService'][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36[_0x22de71(0x129)],'content':this[_0x22de71(0x119)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x22de71(0x28f)][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36['Error'],'content':this[_0x22de71(0x119)]['t']('session.connection-failed')});}[_0x4c1f23(0x282)](){const _0x2a6915=_0x4c1f23,_0x1b4797=()=>{const _0x3e8717=_0x4c7d;this['_socket']||this[_0x3e8717(0x37a)]();},_0x365c55=()=>{const _0x16dad2=_0x4c7d;this[_0x16dad2(0x13b)]||document[_0x16dad2(0x238)]==='hidden'||this[_0x16dad2(0x37a)]();};window[_0x2a6915(0x384)](_0x2a6915(0x2b6),_0x1b4797),document[_0x2a6915(0x384)](_0x2a6915(0x1d1),_0x365c55);}[_0x4c1f23(0xb9)](){const _0x86773e=_0x4c1f23;var _0x57996f;const _0x5cc163=this[_0x86773e(0x29a)],_0x5b2e5c=this[_0x86773e(0x132)][_0x86773e(0x111)](L),_0x368f75=_0x5cc163===0x0?0x0:((_0x57996f=_0x5b2e5c==null?void 0x0:_0x5b2e5c[_0x86773e(0x3cf)])!=null?_0x57996f:En)*0x2**_0x5cc163;this['_retryConnectingTimer']=window[_0x86773e(0x3cc)](()=>{clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x368f75),this['_retryCount']+=0x1;}[_0x4c1f23(0x266)](_0x586ac8,_0x435d95){const _0xed5c97=_0x4c1f23,{cmd:_0x12029a}=_0x435d95;_0x12029a===I['HELLO']&&!this['_socketReady']&&(_0x586ac8['memberID']=_0x435d95['data']['memberID'],this[_0xed5c97(0x1fe)][_0xed5c97(0x23d)](_0x586ac8),this[_0xed5c97(0xc8)][_0xed5c97(0x23d)](G[_0xed5c97(0x2e1)]),this[_0xed5c97(0x27e)]=!0x0,this['_candidateSocket']=null),_0x12029a===I[_0xed5c97(0x1e0)]&&this[_0xed5c97(0x285)](),this[_0xed5c97(0x145)]();}['_rescheduleHeartbeat'](){const _0x3edd88=_0x4c1f23;var _0x3512dd;this['_clearHeartbeatTimer'](),this[_0x3edd88(0x1ed)]=window['setTimeout'](()=>this[_0x3edd88(0x152)](),(_0x3512dd=this['_configService'][_0x3edd88(0x111)](vn))!=null?_0x3512dd:In);}[_0x4c1f23(0x152)](){const _0x304fb2=_0x4c1f23;this[_0x304fb2(0x13b)][_0x304fb2(0x218)]({'cmd':I['HEARTBEAT']}),this[_0x304fb2(0xd8)]();}[_0x4c1f23(0xd8)](){const _0x591c9c=_0x4c1f23;var _0x1ba82c;this[_0x591c9c(0x313)]=window['setTimeout'](()=>this[_0x591c9c(0x13d)](),(_0x1ba82c=this[_0x591c9c(0x132)][_0x591c9c(0x111)](Ns))!=null?_0x1ba82c:Us);}[_0x4c1f23(0x20d)](){const _0x25d89a=_0x4c1f23;this[_0x25d89a(0x1ed)]!=null&&(clearTimeout(this[_0x25d89a(0x1ed)]),this[_0x25d89a(0x1ed)]=null);}[_0x4c1f23(0x285)](){const _0x20300d=_0x4c1f23;this[_0x20300d(0x313)]!=null&&(clearTimeout(this[_0x20300d(0x313)]),this['_timeoutTimer']=null);}};ce=Xn([de(0x0,_0x321449(_0x313fa0)),de(0x1,_0x321449(_0x2e153b)),de(0x2,_0x5d3b7c),de(0x3,_0x50688a),de(0x4,_0x4d21d1),de(0x5,Ls)],ce);var Jn=Object[_0x4c1f23(0x2e9)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x49a211,_0x2351e8,_0x2dcfd1,_0x109817)=>{const _0x230caa=_0x4c1f23;for(var _0x106f69=_0x109817>0x1?void 0x0:_0x109817?qn(_0x2351e8,_0x2dcfd1):_0x2351e8,_0x2c8a05=_0x49a211[_0x230caa(0x78)]-0x1,_0xb2d8c;_0x2c8a05>=0x0;_0x2c8a05--)(_0xb2d8c=_0x49a211[_0x2c8a05])&&(_0x106f69=(_0x109817?_0xb2d8c(_0x2351e8,_0x2dcfd1,_0x106f69):_0xb2d8c(_0x106f69))||_0x106f69);return _0x109817&&_0x106f69&&Jn(_0x2351e8,_0x2dcfd1,_0x106f69),_0x106f69;},ct=(_0x29f393,_0x33f444)=>(_0x561dd1,_0x41793b)=>_0x33f444(_0x561dd1,_0x41793b,_0x29f393);let Ye=class{constructor(_0x1dc3e2,_0x52a656,_0x12817f){const _0x1c5b3d=_0x4c1f23;this[_0x1c5b3d(0x162)]=_0x1dc3e2,this['_transformService']=_0x52a656,this[_0x1c5b3d(0x333)]=_0x12817f;}[_0x4c1f23(0x11a)](_0x52617d){const _0x430673=_0x4c1f23;this[_0x430673(0x19e)](_0x52617d),this[_0x430673(0x1ad)](_0x52617d);}[_0x4c1f23(0x20a)](_0x67d63d){const _0x401b6d=_0x4c1f23,{unitID:_0x376503}=_0x67d63d,_0x1bbe29=this[_0x401b6d(0x333)]['getRenderById'](_0x376503)[_0x401b6d(0x39e)](_0x74964),{redoCache:_0x5365ea}=_0x1bbe29[_0x401b6d(0x16c)]();if(_0x5365ea[_0x401b6d(0x78)]===0x0)return _0x67d63d;let _0x4ffe9e=_0x403f58[_0x401b6d(0x173)](_0x67d63d[_0x401b6d(0x3d7)][0x0]);for(let _0x4f3ecb=0x0;_0x4f3ecb<_0x5365ea[_0x401b6d(0x78)];_0x4f3ecb++){const _0x4f20a4={'id':'doc.mutation.rich-text-editing','params':{..._0x5365ea[_0x4f3ecb]}},_0x39b69a=this['_transformService'][_0x401b6d(0x3f0)](_0x4ffe9e,_0x4f20a4,!0x1);if(_0x3737c9(_0x39b69a))throw _0x39b69a[_0x401b6d(0x17a)];_0x4ffe9e=_0x39b69a[_0x401b6d(0x19b)];}return{..._0x403f58[_0x401b6d(0x173)](_0x67d63d),'mutations':[_0x4ffe9e]};}[_0x4c1f23(0x19e)](_0x4ebc1f){const _0x598eb9=_0x4c1f23,{unitID:_0x56e6eb}=_0x4ebc1f,_0xdb3420=this[_0x598eb9(0x333)][_0x598eb9(0x1b2)](_0x56e6eb)['with'](_0x74964),{undoCache:_0x1fd2b4,redoCache:_0x23d6db}=_0xdb3420[_0x598eb9(0x16c)]();if(_0x1fd2b4[_0x598eb9(0x78)]===0x0||_0x23d6db[_0x598eb9(0x78)]===0x0)return;const _0x6f1942=[],_0x40c458=[];let _0xfe15a0=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]),_0x1323ce=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]);for(let _0x5acac1=_0x1fd2b4[_0x598eb9(0x78)]-0x1;_0x5acac1>=0x0;_0x5acac1--){const _0x226f0a={'id':_0x598eb9(0x108),'params':{..._0x1fd2b4[_0x5acac1]}},_0x2c48eb={'id':_0x598eb9(0x108),'params':{..._0x23d6db[_0x5acac1]}},_0x467359=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0xfe15a0,_0x226f0a,!0x1),_0x2a3a53=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0x1323ce,_0x2c48eb,!0x1);if(_0x3737c9(_0x467359))throw _0x467359[_0x598eb9(0x17a)];if(_0x3737c9(_0x2a3a53))throw _0x2a3a53['error'];_0x6f1942[_0x598eb9(0x15d)](_0x467359[_0x598eb9(0x101)]['params']),_0x40c458[_0x598eb9(0x15d)](_0x2a3a53[_0x598eb9(0x101)][_0x598eb9(0x364)]),_0xfe15a0=_0x467359[_0x598eb9(0x19b)],_0x1323ce=_0x2a3a53[_0x598eb9(0x19b)];}_0xdb3420[_0x598eb9(0x301)]({'undoCache':_0x6f1942,'redoCache':_0x40c458});}[_0x4c1f23(0x1ad)](_0x588559){const _0x1d1c14=_0x4c1f23,{unitID:_0x17552c}=_0x588559,_0x3c9903=this['_renderManagerService']['getRenderById'](_0x17552c)[_0x1d1c14(0x39e)](_0x74964),_0x1578e7=_0x3c9903[_0x1d1c14(0x1a8)]();if(_0x1578e7==null)return;const _0x3e2c77=[{'id':_0x1d1c14(0x108),'params':{'unitId':_0x588559[_0x1d1c14(0x1f3)],'actions':null,'textRanges':[_0x1578e7]}}],_0x30f7fe=this[_0x1d1c14(0x2ce)][_0x1d1c14(0xbf)](_0x588559,_0x3e2c77);if(!_0x8db330(_0x30f7fe))throw _0x30f7fe[_0x1d1c14(0x17a)];const _0x14fd03=_0x30f7fe[_0x1d1c14(0x101)][0x0][_0x1d1c14(0x364)]['textRanges'];Array[_0x1d1c14(0x35b)](_0x14fd03)&&_0x14fd03[_0x1d1c14(0x78)]&&_0x3c9903[_0x1d1c14(0x172)](_0x14fd03[0x0]);}};Ye=zn([ct(0x0,_0x321449(_0x313fa0)),ct(0x1,_0x56767e),ct(0x2,_0x3f9a6b)],Ye);var Zn=Object[_0x4c1f23(0x2e9)],Qn=Object[_0x4c1f23(0x133)],er=(_0x5f1311,_0x363175,_0x26e9e4,_0x12432c)=>{for(var _0x48c474=_0x12432c>0x1?void 0x0:_0x12432c?Qn(_0x363175,_0x26e9e4):_0x363175,_0x27810c=_0x5f1311['length']-0x1,_0x5cda1c;_0x27810c>=0x0;_0x27810c--)(_0x5cda1c=_0x5f1311[_0x27810c])&&(_0x48c474=(_0x12432c?_0x5cda1c(_0x363175,_0x26e9e4,_0x48c474):_0x5cda1c(_0x48c474))||_0x48c474);return _0x12432c&&_0x48c474&&Zn(_0x363175,_0x26e9e4,_0x48c474),_0x48c474;},Oe=(_0x3ca6f8,_0x54e781)=>(_0x251da9,_0x540e1b)=>_0x54e781(_0x251da9,_0x540e1b,_0x3ca6f8);let D=class extends _0x22db72{constructor(_0x46f5bc,_0x134f83,_0x43b87f,_0x3b4c77,_0xcbc34e){const _0x50b47b=_0x4c1f23;super(),l(this,'_cachedData',new Map()),l(this,_0x50b47b(0x351),new Map()),l(this,_0x50b47b(0x167),!0x1),(this[_0x50b47b(0x132)]=_0x46f5bc,this[_0x50b47b(0x14e)]=_0x134f83,this[_0x50b47b(0x1bf)]=_0x43b87f,this['_localeService']=_0x3b4c77,this[_0x50b47b(0x396)]=_0xcbc34e,this[_0x50b47b(0x3ab)]());}[_0x4c1f23(0x3a2)](){const _0x13a41f=_0x4c1f23;this[_0x13a41f(0x167)]=!0x0;}[_0x4c1f23(0x3d1)](){const _0x2e3111=_0x4c1f23;this[_0x2e3111(0x167)]=!0x1;}[_0x4c1f23(0x1e4)](){const _0x3fc0b2=_0x4c1f23;this[_0x3fc0b2(0x3a5)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x1ae000){const _0xeb88c9=_0x4c1f23;return this[_0xeb88c9(0x167)]?null:this[_0xeb88c9(0x14e)][_0xeb88c9(0x352)](os(_0x1ae000));}async[_0x4c1f23(0x312)](_0x427cd9,_0x5b9315){const _0x48736b=_0x4c1f23;return!!this['_localStorageService'][_0x48736b(0x2f8)](_0x427cd9,_0x5b9315);}[_0x4c1f23(0x377)](_0x2b47cb,_0xef1e9e,_0x1d486d,_0x2340ad){const _0x582b51=_0x4c1f23,_0x2fe0d7=this[_0x582b51(0x396)]['getCurrentRevOfUnit'](_0x2b47cb);this['_cachedData'][_0x582b51(0x329)](_0x2b47cb,{'unitID':_0x2b47cb,'type':_0xef1e9e,'awaitingChangeset':_0x1d486d,'mutations':_0x2340ad,'rev':_0x2fe0d7}),this['_saveTaskMap'][_0x582b51(0x20e)](_0x2b47cb)||this[_0x582b51(0x20f)](_0x2b47cb);}[_0x4c1f23(0x20f)](_0x213115){const _0x23b728=_0x4c1f23,_0x152f41=this['_getSaveTimeout']();_0x152f41===0x0?this[_0x23b728(0x1c3)](_0x213115):this['_saveTaskMap']['set'](_0x213115,setTimeout(()=>this[_0x23b728(0x1c3)](_0x213115),_0x152f41));}[_0x4c1f23(0x38d)](){const _0x4a926b=_0x4c1f23;var _0x492c38;return(_0x492c38=this[_0x4a926b(0x132)][_0x4a926b(0x111)](Tn))!=null?_0x492c38:Rn;}['_saveCache'](_0x9a30cd){const _0x5b6df2=_0x4c1f23,_0xfee77e=this[_0x5b6df2(0x351)]['get'](_0x9a30cd);return _0xfee77e!==void 0x0&&window['clearTimeout'](_0xfee77e),this[_0x5b6df2(0x14e)][_0x5b6df2(0x2f8)](os(_0x9a30cd),this[_0x5b6df2(0x23b)][_0x5b6df2(0x348)](_0x9a30cd))[_0x5b6df2(0x90)](()=>this[_0x5b6df2(0x351)][_0x5b6df2(0xd0)](_0x9a30cd));}async[_0x4c1f23(0x3a5)](){const _0x93b82c=_0x4c1f23,_0x5d4f7b=[];this['_saveTaskMap'][_0x93b82c(0x100)]((_0x1e4a1f,_0x41443b)=>{const _0x5df8a6=_0x93b82c;window['clearTimeout'](_0x1e4a1f),_0x5d4f7b[_0x5df8a6(0x27c)](this['_saveCache'](_0x41443b)[_0x5df8a6(0x90)](()=>{const _0x17cab9=_0x5df8a6;this[_0x17cab9(0x351)][_0x17cab9(0xd0)](_0x41443b);}));}),await Promise[_0x93b82c(0x2f7)](_0x5d4f7b);}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x12daa5=_0x4c7d;if(this['_saveTaskMap'][_0x12daa5(0x151)])return this[_0x12daa5(0x119)]['t'](_0x12daa5(0x239));}));}};D=er([Oe(0x0,_0x4d21d1),Oe(0x1,_0x23441d),Oe(0x2,_0x3cc7ef),Oe(0x3,_0x321449(_0x2e153b)),Oe(0x4,_0x321449(_0x5d1c03))],D);function os(_0x56e5b){const _0x1db1d8=_0x4c1f23;return _0x1db1d8(0x34f)+_0x56e5b;}var tr=Object[_0x4c1f23(0x2e9)],sr=Object[_0x4c1f23(0x133)],ir=(_0x7dcf06,_0x38a710,_0x44947f,_0x14f085)=>{const _0x1383d4=_0x4c1f23;for(var _0x29a1e2=_0x14f085>0x1?void 0x0:_0x14f085?sr(_0x38a710,_0x44947f):_0x38a710,_0x3b346f=_0x7dcf06[_0x1383d4(0x78)]-0x1,_0x3c6a2c;_0x3b346f>=0x0;_0x3b346f--)(_0x3c6a2c=_0x7dcf06[_0x3b346f])&&(_0x29a1e2=(_0x14f085?_0x3c6a2c(_0x38a710,_0x44947f,_0x29a1e2):_0x3c6a2c(_0x29a1e2))||_0x29a1e2);return _0x14f085&&_0x29a1e2&&tr(_0x38a710,_0x44947f,_0x29a1e2),_0x29a1e2;},ht=(_0x4f34b0,_0x361283)=>(_0x23e61e,_0x683cc9)=>_0x361283(_0x23e61e,_0x683cc9,_0x4f34b0);function nr(_0x38a887){const _0x538375=_0x4c1f23,{unitID:_0x3f565f,mutations:_0x2bf021}=_0x38a887;return{'unitId':_0x3f565f,'subUnitId':_0x2bf021[0x0][_0x538375(0x364)][_0x538375(0x213)]};}let Ke=class{constructor(_0x5d4b98,_0x208792,_0x2fc560){const _0xcdc69d=_0x4c1f23;this['_injector']=_0x5d4b98,this[_0xcdc69d(0x2ce)]=_0x208792,this[_0xcdc69d(0x137)]=_0x2fc560;}[_0x4c1f23(0x34c)](_0x30cf5e){const _0x56949e=_0x4c1f23;var _0x595825,_0x3af790,_0x35c0e6,_0x51f5ae;const _0x32be0a=this[_0x56949e(0x162)][_0x56949e(0x348)](_0x152281),{unitId:_0x44cd75,subUnitId:_0x46a82e}=nr(_0x30cf5e),_0xf2c67d=_0x32be0a[_0x56949e(0x8f)](_0x44cd75)['getCurrentSelections'](),_0x2b3e04=(_0x3af790=(_0x595825=this[_0x56949e(0x137)][_0x56949e(0x2f6)](_0x44cd75))==null?void 0x0:_0x595825[_0x56949e(0x135)]())==null?void 0x0:_0x3af790[_0x56949e(0x1a9)]();if(_0xf2c67d[_0x56949e(0x78)]===0x0||!_0x44cd75||!_0x46a82e)return;const _0x3ffa16=[{'id':_0x137748['id'],'params':{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0x403f58[_0x56949e(0x173)](_0xf2c67d)}}],_0x15cafa=this[_0x56949e(0x2ce)][_0x56949e(0xbf)](_0x30cf5e,_0x3ffa16);if(!_0x8db330(_0x15cafa))throw _0x15cafa[_0x56949e(0x17a)];const _0xc8311e=(_0x51f5ae=(_0x35c0e6=_0x15cafa['m2Prime'][0x0])==null?void 0x0:_0x35c0e6[_0x56949e(0x364)])==null?void 0x0:_0x51f5ae[_0x56949e(0x170)];Array[_0x56949e(0x35b)](_0xc8311e)&&_0xc8311e[_0x56949e(0x78)]&&this['_injector'][_0x56949e(0x348)](_0x265863)[_0x56949e(0x153)](_0x137748['id'],{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0xc8311e});}};Ke=ir([ht(0x0,_0x321449(_0x313fa0)),ht(0x1,_0x56767e),ht(0x2,_0x375068)],Ke);const tt=_0x2d62b5('univer-pro.collaboration-client.single-active-unit-service');var js=(_0x288605=>(_0x288605[_0x288605['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x288605[_0x288605[_0x4c1f23(0xf3)]=0x1]=_0x4c1f23(0xf3),_0x288605))(js||{});const as=0x7530,cs=_0x4c1f23(0x324);class rr extends _0x22db72{constructor(){const _0x14493b=_0x4c1f23;super(),l(this,_0x14493b(0x96),_0x403f58['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x14493b(0x131),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x14493b(0x3ad),new Map()),l(this,_0x14493b(0x18c),new Map()),this[_0x14493b(0x34a)]();}[_0x4c1f23(0x1e4)](){const _0x3d96b7=_0x4c1f23;super['dispose'](),this[_0x3d96b7(0x3ad)][_0x3d96b7(0x100)]((_0xda1db8,_0x5bd452)=>this[_0x3d96b7(0xd9)](_0x5bd452)),this[_0x3d96b7(0xc1)]&&window[_0x3d96b7(0x17c)](this['_heartbeatTimer']);}[_0x4c1f23(0x187)](_0xca678a){const _0x506027=_0x4c1f23;return this[_0x506027(0x202)](_0xca678a)[_0x506027(0x1a7)](_0x1f43e4());}[_0x4c1f23(0x3f3)](_0x2ccbc8){const _0x37faca=_0x4c1f23;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x37faca(0x24f)][_0x37faca(0x2fb)](_0x2ccbc8),this[_0x37faca(0xdd)]({'type':0x0,'memberID':this[_0x37faca(0x96)],'unitIDs':[_0x2ccbc8],'isForwarded':!0x1});}[_0x4c1f23(0x251)](_0x47eceb){const _0x5a3ded=_0x4c1f23;this[_0x5a3ded(0x24f)][_0x5a3ded(0xd0)](_0x47eceb),this['_selfUnitIDs'][_0x5a3ded(0x151)]===0x0&&this['_heartbeatTimer']&&window[_0x5a3ded(0x17c)](this[_0x5a3ded(0xc1)]);}[_0x4c1f23(0x34a)](){const _0x4e2975=_0x4c1f23;this['disposeWithMe'](_0x5738c2(_0x1e2c02(window,'storage')[_0x4e2975(0x280)](_0x410abc=>{const _0x1cab54=_0x4e2975;if(_0x410abc[_0x1cab54(0x367)]!==cs||!_0x410abc[_0x1cab54(0x1e8)])return;const _0x5dc432=JSON[_0x1cab54(0x281)](_0x410abc[_0x1cab54(0x1e8)]);this[_0x1cab54(0x93)](_0x5dc432);}))),window['addEventListener'](_0x4e2975(0x3bc),()=>this[_0x4e2975(0xdd)]({'type':0x1,'memberID':this[_0x4e2975(0x96)],'unitIDs':Array[_0x4e2975(0x126)](this[_0x4e2975(0x24f)])}));}[_0x4c1f23(0x93)](_0x49046b){const _0x30e14e=_0x4c1f23;switch(_0x49046b[_0x30e14e(0x1d3)]){case 0x0:this[_0x30e14e(0x3b3)](_0x49046b);break;case 0x1:this[_0x30e14e(0x35f)](_0x49046b);break;case 0x2:this[_0x30e14e(0x11f)](_0x49046b);break;}}[_0x4c1f23(0x3b3)](_0x2a704d){const _0x1d7627=_0x4c1f23,{unitIDs:_0x46037c,memberID:_0x29b6b4,isForwarded:_0x256193}=_0x2a704d;_0x46037c[_0x1d7627(0x100)](_0x5d1cf2=>{const _0x494dd5=_0x1d7627;if(!_0x256193&&this[_0x494dd5(0x131)]['has'](_0x5d1cf2)&&this[_0x494dd5(0x202)](_0x5d1cf2)[_0x494dd5(0x23d)](0x1),!this['_unitOnClients'][_0x494dd5(0x20e)](_0x5d1cf2)||!this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)[_0x494dd5(0x20e)](_0x29b6b4)){const _0x2fc01d=this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)||new Set();_0x2fc01d[_0x494dd5(0x2fb)](_0x29b6b4),this[_0x494dd5(0x131)][_0x494dd5(0x329)](_0x5d1cf2,_0x2fc01d),this[_0x494dd5(0x257)](_0x29b6b4);}}),_0x256193||this[_0x1d7627(0xdd)]({'type':0x0,'memberID':this[_0x1d7627(0x96)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c1f23(0x257)](_0x47bf1f){const _0x1da06a=_0x4c1f23;this[_0x1da06a(0xd9)](_0x47bf1f);const _0x1c1cf9=window[_0x1da06a(0x3cc)](()=>{const _0x3117f9=_0x1da06a;this[_0x3117f9(0x131)][_0x3117f9(0x100)](_0x19b342=>{const _0x8091f3=_0x3117f9;_0x19b342[_0x8091f3(0xd0)](_0x47bf1f);});},as*0x2);this['_clearOtherTimers'][_0x1da06a(0x329)](_0x47bf1f,_0x1c1cf9);}[_0x4c1f23(0xd9)](_0x549a9f){const _0x43710a=_0x4c1f23;if(this[_0x43710a(0x3ad)][_0x43710a(0x20e)](_0x549a9f)){const _0x10959f=this['_clearOtherTimers'][_0x43710a(0x348)](_0x549a9f);_0x10959f&&window[_0x43710a(0x314)](_0x10959f),this[_0x43710a(0x3ad)]['set'](_0x549a9f,null);}}[_0x4c1f23(0x35f)](_0x445bd5){const _0x859d7e=_0x4c1f23,{memberID:_0x571eed,unitIDs:_0x131fd2}=_0x445bd5;_0x131fd2[_0x859d7e(0x100)](_0x13a59b=>{const _0x174733=_0x859d7e;var _0x1fd2d4;const _0x321f16=this[_0x174733(0x131)][_0x174733(0x348)](_0x13a59b);_0x321f16&&(_0x321f16[_0x174733(0xd0)](_0x571eed),(_0x1fd2d4=this[_0x174733(0x202)](_0x13a59b))==null||_0x1fd2d4[_0x174733(0x23d)](_0x321f16[_0x174733(0x151)]===0x0?0x0:0x1));}),this[_0x859d7e(0xd9)](_0x571eed);}[_0x4c1f23(0x11f)](_0x25fd20){const _0x16182f=_0x4c1f23;this[_0x16182f(0x257)](_0x25fd20[_0x16182f(0xbc)]);}['_send'](_0x2b090e){const _0x46fbcd=_0x4c1f23;localStorage[_0x46fbcd(0x2f8)](cs,JSON[_0x46fbcd(0x360)](_0x2b090e));}[_0x4c1f23(0xc3)](){const _0x407625=_0x4c1f23;this['_heartbeatTimer']=window[_0x407625(0x1af)](()=>{const _0x231491=_0x407625;this[_0x231491(0xdd)]({'type':0x2,'memberID':this[_0x231491(0x96)]});},as);}[_0x4c1f23(0x202)](_0x4064ad){const _0x38331f=_0x4c1f23;return this[_0x38331f(0x18c)]['has'](_0x4064ad)||this[_0x38331f(0x18c)][_0x38331f(0x329)](_0x4064ad,new _0x2ec58d(0x0)),this[_0x38331f(0x18c)][_0x38331f(0x348)](_0x4064ad);}}function xs(_0x39c3bb){const _0x42d003=_0x4c1f23;let _0x58f14c='';for(const _0x9ff902 of _0x39c3bb){const {startOffset:_0x27d74b,endOffset:_0x169ca0,isActive:_0x186016}=_0x9ff902;_0x58f14c[_0x42d003(0x78)]&&(_0x58f14c+=','),_0x58f14c+=_0x27d74b+':'+_0x169ca0+':'+(_0x186016?'1':'0');}return _0x58f14c;}function or(_0x3096ca){const _0x3dd455=_0x4c1f23,_0x4c94a8=_0x3096ca['split'](','),_0x581272=[];for(const _0x47d3ca of _0x4c94a8){const [_0x133341,_0x138120,_0x31eb6a]=_0x47d3ca[_0x3dd455(0x236)](':');_0x581272['push']({'startOffset':Number(_0x133341),'endOffset':Number(_0x138120),'collapsed':_0x133341===_0x138120,'isActive':_0x31eb6a==='1'});}return _0x581272[_0x3dd455(0x130)](_0x49bb6c=>_0x49bb6c[_0x3dd455(0x2a2)])||(_0x581272[0x0]['isActive']=!0x0),_0x581272;}class Bt extends _0x2dacfb{constructor(){const _0x594772=_0x4c1f23;super(...arguments),l(this,'_collabCursorState$',new _0x2ec58d(null)),l(this,_0x594772(0x2f5),this[_0x594772(0x356)][_0x594772(0xfc)]());}[_0x4c1f23(0x1f8)](_0x8c4037){const _0x2f9923=_0x4c1f23,{unitID:_0x329e02,memberID:_0x8bb08f,textRanges:_0x74bf6c}=_0x8c4037,_0xa46049=xs(_0x74bf6c),_0x52590d={'unitID':_0x329e02,'memberID':_0x8bb08f,'selection':_0xa46049};this[_0x2f9923(0x356)][_0x2f9923(0x23d)](_0x52590d);}}var ar=Object[_0x4c1f23(0x2e9)],cr=Object[_0x4c1f23(0x133)],hr=(_0x3fd7ed,_0x672d69,_0xf9fccb,_0x249774)=>{const _0x5d043f=_0x4c1f23;for(var _0x2e8305=_0x249774>0x1?void 0x0:_0x249774?cr(_0x672d69,_0xf9fccb):_0x672d69,_0x31f8e1=_0x3fd7ed[_0x5d043f(0x78)]-0x1,_0x5c86eb;_0x31f8e1>=0x0;_0x31f8e1--)(_0x5c86eb=_0x3fd7ed[_0x31f8e1])&&(_0x2e8305=(_0x249774?_0x5c86eb(_0x672d69,_0xf9fccb,_0x2e8305):_0x5c86eb(_0x2e8305))||_0x2e8305);return _0x249774&&_0x2e8305&&ar(_0x672d69,_0xf9fccb,_0x2e8305),_0x2e8305;},hs=(_0x20ee1b,_0x355f26)=>(_0x5ab485,_0x2c4ce1)=>_0x355f26(_0x5ab485,_0x2c4ce1,_0x20ee1b);let Xe=class{constructor(_0x263a28,_0x4c6b35){const _0x285ead=_0x4c1f23;this[_0x285ead(0x162)]=_0x263a28,this[_0x285ead(0x2ce)]=_0x4c6b35;}[_0x4c1f23(0x34c)](_0x4d59d3){const _0x242d05=_0x4c1f23;var _0x15128c;const _0x52f9d0=this[_0x242d05(0x162)][_0x242d05(0x348)](_0x322779),_0x5dfba9=(_0x15128c=_0x52f9d0[_0x242d05(0x2bd)]())!=null?_0x15128c:[];if(_0x5dfba9['length']===0x0)return;const _0x1d9535=[{'id':_0x242d05(0x108),'params':{'unitId':_0x4d59d3[_0x242d05(0x1f3)],'actions':null,'textRanges':_0x5dfba9}}],_0x3d677b=this[_0x242d05(0x2ce)][_0x242d05(0xbf)](_0x4d59d3,_0x1d9535);if(!_0x8db330(_0x3d677b))throw _0x3d677b[_0x242d05(0x17a)];const _0x196680=_0x3d677b['m2Prime'][0x0]['params'][_0x242d05(0x125)];Array[_0x242d05(0x35b)](_0x196680)&&_0x196680[_0x242d05(0x78)]&&_0x52f9d0[_0x242d05(0x297)](_0x196680,!0x1);}};Xe=hr([hs(0x0,_0x321449(_0x313fa0)),hs(0x1,_0x56767e)],Xe);const lr=new Set([_0x3f0b63['id']]);function ls(_0x435cf6,_0x53188f,_0x13da7a,_0x4867dc,_0x275391){const _0xa10d72=_0x4c1f23;var _0x5ec821,_0x2ffc1b,_0x316327,_0xf9cb50;const _0x59a4b0=[];for(const _0xf7921b of _0x435cf6)if(lr[_0xa10d72(0x20e)](_0xf7921b['id'])){if(_0x59a4b0['length']>0x0)break;_0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);break;}else _0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);const _0x4c56ce=(_0x2ffc1b=(_0x5ec821=_0x275391[_0xa10d72(0x16d)]())==null?void 0x0:_0x5ec821[_0xa10d72(0x1e6)])!=null?_0x2ffc1b:_0xa10d72(0x30f),_0x5c4e48=(_0xf9cb50=(_0x316327=_0x275391['getCurrentUser']())==null?void 0x0:_0x316327[_0xa10d72(0xbc)])!=null?_0xf9cb50:_0xa10d72(0x30f);return{'changeset':{'unitID':_0x53188f,'type':_0x53eda4(_0x13da7a[_0xa10d72(0x27b)](_0x53188f)),'baseRev':_0x4867dc[_0xa10d72(0x189)](_0x53188f),'revision':0x0,'userID':_0x4c56ce,'memberID':_0x5c4e48,'mutations':_0x59a4b0},'pendingMutations':_0x435cf6[_0xa10d72(0x29d)](_0x59a4b0[_0xa10d72(0x78)])};}function _r(_0x166621,_0x3e6f54,_0x16fa09,_0x594510,_0xe78855){const _0x355e8e=_0x4c1f23;var _0x2df672,_0x49800b,_0x31b858,_0x2bcbf8;const _0x2b199b=[_0x166621[_0x355e8e(0x3cd)]((_0x27d2f2,_0x182e12)=>{const _0x4a48cb=_0x355e8e;var _0x2218b1;const {id:_0x14919a}=_0x27d2f2,{id:_0x5ea084,type:_0x2173cf}=_0x182e12,_0x477a15=(_0x2218b1=_0x27d2f2['params'])!=null?_0x2218b1:{'actions':null},_0x1b0ff5=_0x182e12[_0x4a48cb(0x364)];if(_0x14919a&&_0x14919a!==_0x5ea084)throw new Error(_0x4a48cb(0x260)+_0x14919a+'\x20-\x20'+_0x5ea084+'.');return{..._0x27d2f2,'id':_0x5ea084,'type':_0x2173cf,'params':{'unitId':_0x1b0ff5['unitId'],'textRanges':_0x1b0ff5[_0x4a48cb(0x125)],'actions':_0x107e10[_0x4a48cb(0x142)](_0x477a15[_0x4a48cb(0x33d)],_0x1b0ff5[_0x4a48cb(0x33d)])}};},{})],_0x4e125d=(_0x49800b=(_0x2df672=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x2df672['userID'])!=null?_0x49800b:_0x355e8e(0x30f),_0x37828c=(_0x2bcbf8=(_0x31b858=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x31b858['memberID'])!=null?_0x2bcbf8:_0x355e8e(0x30f);return{'changeset':{'unitID':_0x3e6f54,'type':_0x53eda4(_0x16fa09[_0x355e8e(0x27b)](_0x3e6f54)),'baseRev':_0x594510[_0x355e8e(0x189)](_0x3e6f54),'revision':0x0,'userID':_0x4e125d,'memberID':_0x37828c,'mutations':_0x2b199b},'pendingMutations':[]};}const ur={'id':_0x489e71['id'],'type':_0xcd477b[_0x4c1f23(0xdf)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x4c1f23(0x133)],le=(_0x182cf5,_0x5dd82,_0x3e35fc,_0x13a299)=>{const _0x42dbcf=_0x4c1f23;for(var _0x54fbd0=_0x13a299>0x1?void 0x0:_0x13a299?fr(_0x5dd82,_0x3e35fc):_0x5dd82,_0x57aa36=_0x182cf5[_0x42dbcf(0x78)]-0x1,_0x51700b;_0x57aa36>=0x0;_0x57aa36--)(_0x51700b=_0x182cf5[_0x57aa36])&&(_0x54fbd0=(_0x13a299?_0x51700b(_0x5dd82,_0x3e35fc,_0x54fbd0):_0x51700b(_0x54fbd0))||_0x54fbd0);return _0x13a299&&_0x54fbd0&&dr(_0x5dd82,_0x3e35fc,_0x54fbd0),_0x54fbd0;},m=(_0x267d69,_0x23c0ce)=>(_0x3ed41b,_0x5575ab)=>_0x23c0ce(_0x3ed41b,_0x5575ab,_0x267d69),w=(_0x27f830=>(_0x27f830[_0x4c1f23(0x3df)]=_0x4c1f23(0x36b),_0x27f830[_0x4c1f23(0x316)]=_0x4c1f23(0x2d0),_0x27f830[_0x4c1f23(0x3a7)]='pending',_0x27f830[_0x4c1f23(0x1ca)]=_0x4c1f23(0x369),_0x27f830['AWAITING_WITH_PENDING']=_0x4c1f23(0x2b3),_0x27f830[_0x4c1f23(0x1c6)]=_0x4c1f23(0x1dc),_0x27f830[_0x4c1f23(0x12a)]=_0x4c1f23(0x2fd),_0x27f830['OFFLINE']=_0x4c1f23(0x209),_0x27f830))(w||{});class _e{constructor(_0x494ea9,_0x904a6b,_0x37a493,_0x488a08,_0x4a673e,_0x41a300,_0x332bbe,_0x5053dd,_0x2d46b2){const _0x49ccec=_0x4c1f23;l(this,_0x49ccec(0x32e),null),l(this,_0x49ccec(0x14c),[]),(this['unitID']=_0x494ea9,this[_0x49ccec(0x1d3)]=_0x904a6b,this[_0x49ccec(0x34b)]=_0x4a673e,this[_0x49ccec(0x1ef)]=_0x41a300,this[_0x49ccec(0x3ce)]=_0x332bbe,this['_revisionService']=_0x5053dd,this[_0x49ccec(0xd7)]=_0x2d46b2,this[_0x49ccec(0x32e)]=_0x37a493,this[_0x49ccec(0x14c)]=_0x488a08);}[_0x4c1f23(0x3c6)](_0x5267b2){const _0x18004a=_0x4c1f23,_0x537c78=this[_0x18004a(0x396)][_0x18004a(0x189)](this[_0x18004a(0x1f3)]);return _0x5267b2[_0x18004a(0x3d6)]>_0x537c78+0x1?(this[_0x18004a(0x34b)][_0x18004a(0x31e)]({'from':_0x537c78,'to':_0x5267b2['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2ad504){const _0x2d94b5=_0x4c1f23;this['_undoRedoService'][_0x2d94b5(0x2bc)](this[_0x2d94b5(0x1f3)],_0x2ad504);}[_0x4c1f23(0x346)](_0x236a56){const _0x57d4b5=_0x4c1f23;var _0x4d7582,_0x522483;(_0x522483=(_0x4d7582=this[_0x57d4b5(0x34b)])[_0x57d4b5(0x1c1)])==null||_0x522483[_0x57d4b5(0x3af)](_0x4d7582,_0x236a56);}[_0x4c1f23(0x32f)](_0x46ba72){const _0x4d5cb6=_0x4c1f23;var _0x18255a,_0x2afd71;return(_0x2afd71=(_0x18255a=this[_0x4d5cb6(0x34b)])[_0x4d5cb6(0x200)])==null?void 0x0:_0x2afd71['call'](_0x18255a,_0x46ba72);}[_0x4c1f23(0x2df)](_0xb7ca14){const _0x421973=_0x4c1f23;var _0xd7e3e2,_0x2722ba,_0x57efcb;return(_0x57efcb=(_0x2722ba=(_0xd7e3e2=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2722ba[_0x421973(0x3af)](_0xd7e3e2,_0xb7ca14))!=null?_0x57efcb:_0xb7ca14;}[_0x4c1f23(0x3d5)](_0x5e7156){const _0x32f894=_0x4c1f23;var _0x2a543c,_0x2f649e;if(this[_0x32f894(0x1d3)]===H['UNIVER_DOC']){const {unitID:_0x10ffd1,mutations:_0x1de38b,memberID:_0x5811f5}=_0x5e7156,_0x8ad858=_0x1de38b[0x0][_0x32f894(0x364)]['textRanges'];Array[_0x32f894(0x35b)](_0x8ad858)&&_0x8ad858['length']>0x0&&((_0x2f649e=(_0x2a543c=this[_0x32f894(0x34b)])[_0x32f894(0x1e7)])==null||_0x2f649e[_0x32f894(0x3af)](_0x2a543c,{'unitID':_0x10ffd1,'memberID':_0x5811f5,'textRanges':_0x8ad858}));}}[_0x4c1f23(0x32a)](){const _0x774252=_0x4c1f23;this[_0x774252(0xd7)][_0x774252(0x377)](this['unitID'],this[_0x774252(0x1d3)],this[_0x774252(0x32e)],this[_0x774252(0x14c)]);}['_getCurrentRevision'](){const _0xa461ab=_0x4c1f23;return this[_0xa461ab(0x396)]['getCurrentRevOfUnit'](this[_0xa461ab(0x1f3)]);}[_0x4c1f23(0x3c1)](){const _0xe8112e=_0x4c1f23;this['_revisionService'][_0xe8112e(0x193)](this['unitID']);}[_0x4c1f23(0x3aa)](_0x3ac055){const _0x2ac698=_0x4c1f23;var _0x3757d4;const _0x3d9b45=this[_0x2ac698(0x2df)](_0x3ac055),_0x636220=_0x2aed7d(_0x3d9b45['mutations'],this[_0x2ac698(0x1ef)],{'fromCollab':!0x0});if(!_0x636220[_0x2ac698(0x2c5)])throw _0x636220[_0x2ac698(0x17a)]instanceof Error?_0x636220[_0x2ac698(0x17a)]:new Error((_0x3757d4=_0x636220[_0x2ac698(0x17a)])!=null?_0x3757d4:_0x2ac698(0x1cc));this[_0x2ac698(0x32f)](_0x3d9b45),this[_0x2ac698(0x12e)](_0x3ac055),this[_0x2ac698(0x346)](_0x3d9b45),this['_syncEditingCollabCursor'](_0x3d9b45),this[_0x2ac698(0x3c1)]();}}let Se=class extends _e{constructor(_0x1cf2d6,_0x550005,_0x11445d,_0x122506,_0x1db12d,_0x35ed5d,_0x5a59cc,_0x3f44c0,_0xbc6877,_0x3af6d9){const _0x4c8c97=_0x4c1f23;super(_0x1cf2d6,_0x550005,null,[],_0x11445d,_0x3f44c0,_0x5a59cc,_0x122506,_0x1db12d),l(this,_0x4c8c97(0xad),'synced'),(this['_injector']=_0x35ed5d,this[_0x4c8c97(0x128)]=_0xbc6877,this[_0x4c8c97(0x2ce)]=_0x3af6d9);}[_0x4c1f23(0x3ef)](_0x20102e){const _0x267814=_0x4c1f23,_0x5010db=this['_injector'][_0x267814(0x171)](K,this[_0x267814(0x1f3)],this[_0x267814(0x1d3)],[_0x20102e],this[_0x267814(0x34b)]);return _0x5010db[_0x267814(0x298)](),_0x5010db[_0x267814(0x32a)](),_0x5010db;}[_0x4c1f23(0x10c)](_0x5a8739){const _0x2321ff=_0x4c1f23;if(this['_checkMissing'](_0x5a8739))return this['_injector'][_0x2321ff(0x171)](k,this[_0x2321ff(0x1f3)],this[_0x2321ff(0x1d3)],null,[],null,[_0x5a8739],this[_0x2321ff(0x34b)]);try{const _0x52816e=this['_transformService']['transformMutationsWithChangeset'](_0x5a8739,[ur]);if(_0x8db330(_0x52816e)){const {c1Prime:_0x71a0e5}=_0x52816e;return this[_0x2321ff(0x3aa)](_0x71a0e5),this;}throw _0x52816e[_0x2321ff(0x17a)];}catch(_0x91a9e4){return this[_0x2321ff(0x128)][_0x2321ff(0x17a)](_0x91a9e4),this[_0x2321ff(0x222)](!0x1);}}[_0x4c1f23(0x222)](_0x2d7205){const _0x221b40=_0x4c1f23;return this[_0x221b40(0x162)][_0x221b40(0x171)](Q,this[_0x221b40(0x1f3)],this[_0x221b40(0x1d3)],null,[],this['_handler'],_0x2d7205);}[_0x4c1f23(0x357)](){const _0x1b4a1f=_0x4c1f23;throw new Error(_0x1b4a1f(0x2c2));}[_0x4c1f23(0xf4)](){const _0x3eaf62=_0x4c1f23;throw new Error(_0x3eaf62(0x23f));}[_0x4c1f23(0x385)](){const _0x2e0343=_0x4c1f23;return this[_0x2e0343(0x162)][_0x2e0343(0x171)](ee,this['unitID'],this[_0x2e0343(0x1d3)],null,[],this[_0x2e0343(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x3b9aa9=_0x4c1f23;throw new Error(_0x3b9aa9(0x3ec));}[_0x4c1f23(0xff)](){const _0x501cdc=_0x4c1f23,_0x5f5b4a=this['_revisionService'][_0x501cdc(0x189)](this['unitID']);return this[_0x501cdc(0x34b)][_0x501cdc(0x31e)]({'from':_0x5f5b4a,'to':0x0}),this[_0x501cdc(0x162)][_0x501cdc(0x171)](k,this[_0x501cdc(0x1f3)],this[_0x501cdc(0x1d3)],null,[],null,[],this[_0x501cdc(0x34b)]);}};Se=le([m(0x3,_0x321449(_0x5d1c03)),m(0x4,_0x321449(D)),m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x2fbed3),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e)],Se);let K=class extends _e{constructor(_0x151b5d,_0x4cee19,_0x4c0f62,_0x3faa6d,_0x4ee8e7,_0x28e173,_0x2c39e3,_0x10ce5e,_0x485fb9,_0x4fdcb0,_0x5dbadd,_0x524a88,_0x1edbe5,_0x3aae5a){const _0x334bda=_0x4c1f23;super(_0x151b5d,_0x4cee19,null,_0x4c0f62,_0x3faa6d,_0x4fdcb0,_0x3aae5a,_0x28e173,_0x2c39e3),l(this,_0x334bda(0xad),'pending'),l(this,_0x334bda(0xc7),null),l(this,'_sendingTimer',null),(this[_0x334bda(0x162)]=_0x4ee8e7,this[_0x334bda(0x2ed)]=_0x10ce5e,this['_logService']=_0x485fb9,this[_0x334bda(0x132)]=_0x5dbadd,this[_0x334bda(0x2ce)]=_0x524a88,this['_univerInstanceService']=_0x1edbe5);}[_0x4c1f23(0x3ef)](_0x2f2db1){const _0x4424b6=_0x4c1f23;return this[_0x4424b6(0x14c)][_0x4424b6(0x27c)](_0x2f2db1),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x31c93b){const _0x3616d8=_0x4c1f23;if(this[_0x3616d8(0x3c6)](_0x31c93b))return this[_0x3616d8(0x387)](),this[_0x3616d8(0x162)][_0x3616d8(0x171)](k,this[_0x3616d8(0x1f3)],this[_0x3616d8(0x1d3)],null,this['_pendingMutations'],null,[_0x31c93b],this['_handler']);try{const _0x2326fa=this['_transformService'][_0x3616d8(0xbf)](_0x31c93b,this[_0x3616d8(0x14c)]);if(_0x8db330(_0x2326fa)){const {c1Prime:_0x5660bc,m2Prime:_0x4a40cc}=_0x2326fa;this[_0x3616d8(0x3aa)](_0x5660bc);const _0x4aac19=this[_0x3616d8(0x162)][_0x3616d8(0x171)](K,this['unitID'],this[_0x3616d8(0x1d3)],_0x4a40cc,this[_0x3616d8(0x34b)]);return this[_0x3616d8(0x387)](),_0x4aac19[_0x3616d8(0x298)](this[_0x3616d8(0xc7)]?Math[_0x3616d8(0x1e9)](0x0,new Date()[_0x3616d8(0x14f)]()-this[_0x3616d8(0xc7)]):this[_0x3616d8(0x3f4)]()),_0x4aac19;}throw _0x2326fa[_0x3616d8(0x17a)];}catch(_0x15bea2){return this[_0x3616d8(0x128)][_0x3616d8(0x17a)](_0x15bea2),this[_0x3616d8(0x222)](!0x1);}}[_0x4c1f23(0x357)](){const _0x5ba2ca=_0x4c1f23;throw new Error(_0x5ba2ca(0xf5));}[_0x4c1f23(0xf4)](){const _0x193912=_0x4c1f23;throw new Error(_0x193912(0x391));}[_0x4c1f23(0x385)](){const _0x26f02d=_0x4c1f23;return this[_0x26f02d(0x387)](),this[_0x26f02d(0x162)][_0x26f02d(0x171)](ee,this[_0x26f02d(0x1f3)],this[_0x26f02d(0x1d3)],null,this[_0x26f02d(0x14c)],this['_handler']);}['toggleOnline'](){return this;}[_0x4c1f23(0x298)](_0x1c115e){const _0x18a12b=_0x4c1f23,_0x4e22d3=_0x1c115e!=null?_0x1c115e:this[_0x18a12b(0x3f4)]();this[_0x18a12b(0xc7)]=new Date()['getTime'](),this[_0x18a12b(0x3dc)]=window[_0x18a12b(0x3cc)](()=>{const _0x1c147f=_0x18a12b;this[_0x1c147f(0x387)]();let _0x412c3d=null;switch(this[_0x1c147f(0x1d3)]){case H[_0x1c147f(0x10d)]:{_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}case H[_0x1c147f(0x11d)]:{this[_0x1c147f(0x14c)][_0x1c147f(0x158)](_0xf1e36d=>_0xf1e36d['id']===_0x1b2745['id'])?_0x412c3d=_r(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this['_revisionService'],this[_0x1c147f(0x2ed)]):_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this['_univerInstanceService'],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}default:throw new Error(_0x1c147f(0xb3)+this[_0x1c147f(0x1d3)]+_0x1c147f(0x2e7));}const {changeset:_0xc35701,pendingMutations:_0x3c947c}=_0x412c3d;this[_0x1c147f(0x34b)][_0x1c147f(0x2d4)](_0xc35701);const _0x5a2105=_0x3c947c[_0x1c147f(0x78)]?this['_injector'][_0x1c147f(0x171)](X,this['unitID'],this[_0x1c147f(0x1d3)],_0xc35701,_0x3c947c,this[_0x1c147f(0x34b)]):this[_0x1c147f(0x162)][_0x1c147f(0x171)](Z,this[_0x1c147f(0x1f3)],this[_0x1c147f(0x1d3)],_0xc35701,this[_0x1c147f(0x34b)]);_0x5a2105[_0x1c147f(0x32a)](),this[_0x1c147f(0x34b)][_0x1c147f(0x1bc)](this,_0x5a2105);},_0x4e22d3);}['_getSendChangesetTimeout'](){const _0x499e63=_0x4c1f23;var _0x39679b;const _0x15c0be=this[_0x499e63(0x132)][_0x499e63(0x111)](L);return(_0x39679b=_0x15c0be==null?void 0x0:_0x15c0be['sendChangesetTimeout'])!=null?_0x39679b:gn;}['resend'](){const _0x30c51d=_0x4c1f23;throw new Error(_0x30c51d(0x362));}['_clearScheduledTask'](){const _0xcf5880=_0x4c1f23;this[_0xcf5880(0x3dc)]!=null&&(clearTimeout(this[_0xcf5880(0x3dc)]),this[_0xcf5880(0x3dc)]=null);}[_0x4c1f23(0x222)](_0x1e9691){const _0x3c3da6=_0x4c1f23;return this[_0x3c3da6(0x387)](),this['_injector'][_0x3c3da6(0x171)](Q,this[_0x3c3da6(0x1f3)],this[_0x3c3da6(0x1d3)],null,this[_0x3c3da6(0x14c)],this[_0x3c3da6(0x34b)],_0x1e9691);}};K=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x321449(ae)),m(0x8,_0x50688a),m(0x9,_0x265863),m(0xa,_0x4d21d1),m(0xb,_0x56767e),m(0xc,_0x375068),m(0xd,_0x2fbed3)],K);let Z=class extends _e{constructor(_0x22badc,_0x43dd7c,_0x1b7796,_0x1b0193,_0x32cb2e,_0xc2804a,_0x3c31cb,_0xbd5e51,_0x38ef78,_0x5b2a57,_0x28e3db){const _0xc9c97a=_0x4c1f23;super(_0x22badc,_0x43dd7c,_0x1b7796,[],_0x1b0193,_0xbd5e51,_0x28e3db,_0xc2804a,_0x3c31cb),l(this,_0xc9c97a(0xad),_0xc9c97a(0x369)),(this[_0xc9c97a(0x162)]=_0x32cb2e,this[_0xc9c97a(0x128)]=_0x38ef78,this[_0xc9c97a(0x2ce)]=_0x5b2a57);}[_0x4c1f23(0x3ef)](_0x41cab8){const _0x4b6238=_0x4c1f23,_0x47bdc7=this[_0x4b6238(0x162)]['createInstance'](X,this[_0x4b6238(0x1f3)],this['type'],this['_awaitingChangeset'],[_0x41cab8],this[_0x4b6238(0x34b)]);return _0x47bdc7['_updateLocalCache'](),_0x47bdc7;}[_0x4c1f23(0x10c)](_0x4fe864){const _0x11695c=_0x4c1f23;if(this[_0x11695c(0x3c6)](_0x4fe864))return this[_0x11695c(0x162)]['createInstance'](k,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],this[_0x11695c(0x32e)],[],null,[_0x4fe864],this[_0x11695c(0x34b)]);try{const _0x5e1b8d=this[_0x11695c(0x2ce)][_0x11695c(0x3a0)]([_0x4fe864],[this[_0x11695c(0x32e)]],!0x1);if(_0x428767(_0x5e1b8d)){const {c1Prime:_0x501c68,c2Prime:_0x3dd012}=_0x5e1b8d;this[_0x11695c(0x3aa)](_0x501c68[0x0]),_0x3dd012[0x0][_0x11695c(0x1fc)]=this[_0x11695c(0x309)]();const _0x560cbd=this[_0x11695c(0x162)][_0x11695c(0x171)](Z,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],_0x3dd012[0x0],this[_0x11695c(0x34b)]);return _0x560cbd[_0x11695c(0x32a)](),_0x560cbd;}return this[_0x11695c(0x222)](!0x1);}catch(_0x31f2f2){return this[_0x11695c(0x128)][_0x11695c(0x17a)](_0x31f2f2),this[_0x11695c(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x325984){const _0x164750=_0x4c1f23,_0x341dbe=this[_0x164750(0x396)]['getCurrentRevOfUnit'](this[_0x164750(0x1f3)]);if(_0x325984['revision']<_0x341dbe-0x1)return this;if(this['_checkMissing'](_0x325984))return this[_0x164750(0x162)][_0x164750(0x171)](k,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],null,[],this['_awaitingChangeset'],[],this[_0x164750(0x34b)]);this['_incrementRevisionNumber']();const _0x4c3399=this['_injector'][_0x164750(0x171)](Se,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],this['_handler']);return _0x4c3399[_0x164750(0x32a)](),_0x4c3399;}[_0x4c1f23(0xf4)](_0x3e9b1a){const _0x23a3a3=_0x4c1f23;return this[_0x23a3a3(0x222)](!!(_0x3e9b1a!=null&&_0x3e9b1a[_0x23a3a3(0x3b9)]));}['toggleOffline'](){const _0x437ade=_0x4c1f23;return this[_0x437ade(0x162)][_0x437ade(0x171)](ee,this[_0x437ade(0x1f3)],this[_0x437ade(0x1d3)],this[_0x437ade(0x32e)],[],this[_0x437ade(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x29eba2=_0x4c1f23;this[_0x29eba2(0x34b)][_0x29eba2(0x2d4)](this[_0x29eba2(0x32e)]);}[_0x4c1f23(0x222)](_0xe7903f){const _0x4e2cc5=_0x4c1f23;return this[_0x4e2cc5(0x162)][_0x4e2cc5(0x171)](Q,this[_0x4e2cc5(0x1f3)],this['type'],this[_0x4e2cc5(0x32e)],[],this[_0x4e2cc5(0x34b)],_0xe7903f);}};Z=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e),m(0xa,_0x2fbed3)],Z);let X=class extends _e{constructor(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x4b7607,_0x358856,_0x14fd4f,_0x400910,_0x479d5b,_0x256486,_0x451dc4){const _0x248cdb=_0x4c1f23;super(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x400910,_0x451dc4,_0x358856,_0x14fd4f),l(this,_0x248cdb(0xad),_0x248cdb(0x2b3)),(this[_0x248cdb(0x162)]=_0x4b7607,this[_0x248cdb(0x128)]=_0x479d5b,this[_0x248cdb(0x2ce)]=_0x256486);}[_0x4c1f23(0x3ef)](_0x8c8974){const _0x2852e4=_0x4c1f23;return this[_0x2852e4(0x14c)]['push'](_0x8c8974),this;}[_0x4c1f23(0x10c)](_0x32446f){const _0x258c2f=_0x4c1f23;if(this['_checkMissing'](_0x32446f))return this[_0x258c2f(0x162)]['createInstance'](k,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],this[_0x258c2f(0x32e)],this[_0x258c2f(0x14c)],null,[_0x32446f],this[_0x258c2f(0x34b)]);try{const _0x43d26b=this['_transformService'][_0x258c2f(0x3a0)]([_0x32446f],[this[_0x258c2f(0x32e)]],!0x1);if(_0x428767(_0x43d26b)){const {c1Prime:_0x350c09,c2Prime:_0x3d20f3}=_0x43d26b,_0x46e6c3=this['_transformService'][_0x258c2f(0xbf)](_0x350c09[0x0],this[_0x258c2f(0x14c)]);if(_0x8db330(_0x46e6c3)){const {c1Prime:_0x461dfc,m2Prime:_0x391063}=_0x46e6c3;return this['_executeRemoteChangeset'](_0x461dfc),_0x3d20f3[0x0]['baseRev']=this[_0x258c2f(0x309)](),this['_injector'][_0x258c2f(0x171)](X,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],_0x3d20f3[0x0],_0x391063,this[_0x258c2f(0x34b)]);}throw _0x46e6c3[_0x258c2f(0x17a)];}throw _0x43d26b[_0x258c2f(0x17a)];}catch(_0x22473e){return this[_0x258c2f(0x128)]['error'](_0x22473e),this[_0x258c2f(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x3832dc){const _0x57ff09=_0x4c1f23;if(this[_0x57ff09(0x3c6)](_0x3832dc))return this[_0x57ff09(0x162)][_0x57ff09(0x171)](k,this['unitID'],this[_0x57ff09(0x1d3)],null,this[_0x57ff09(0x14c)],this['_awaitingChangeset'],[],this['_handler']);this[_0x57ff09(0x3c1)]();const _0x4311ee=this['_injector'][_0x57ff09(0x171)](K,this[_0x57ff09(0x1f3)],this[_0x57ff09(0x1d3)],this[_0x57ff09(0x14c)],this['_handler']);return _0x4311ee[_0x57ff09(0x298)](),_0x4311ee[_0x57ff09(0x32a)](),_0x4311ee;}[_0x4c1f23(0xf4)](_0x644362){const _0x547a13=_0x4c1f23;return this[_0x547a13(0x222)](!!(_0x644362!=null&&_0x644362['isPermissionRej']));}[_0x4c1f23(0x385)](){const _0x3d26c6=_0x4c1f23;return this[_0x3d26c6(0x162)][_0x3d26c6(0x171)](ee,this[_0x3d26c6(0x1f3)],this[_0x3d26c6(0x1d3)],this[_0x3d26c6(0x32e)],this['_pendingMutations'],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x527fdf=_0x4c1f23;this[_0x527fdf(0x34b)][_0x527fdf(0x2d4)](this[_0x527fdf(0x32e)]);}[_0x4c1f23(0x222)](_0x4e9a3c){const _0x192af2=_0x4c1f23;return this[_0x192af2(0x162)][_0x192af2(0x171)](Q,this[_0x192af2(0x1f3)],this[_0x192af2(0x1d3)],null,this[_0x192af2(0x14c)],this['_handler'],_0x4e9a3c);}};X=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x50688a),m(0xa,_0x56767e),m(0xb,_0x2fbed3)],X);let Q=class extends _e{constructor(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x293360=!0x1,_0x4ec3b6,_0x568959,_0x54ec88,_0x214168,_0x5a20f2,_0x3cd3a0,_0x2e3734){const _0x129530=_0x4c1f23;super(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x568959,_0x54ec88,_0x5a20f2,_0x214168),l(this,_0x129530(0xad),_0x129530(0x2fd)),(this[_0x129530(0x2cd)]=_0x293360,this[_0x129530(0x15c)]=_0x4ec3b6,this['_localeService']=_0x3cd3a0,this[_0x129530(0x3a8)]=_0x2e3734,this['_showConflictNotification'](),this[_0x129530(0x1da)](),this[_0x129530(0x37d)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4c1f23(0x357)](){return this;}['onRemoteRej'](){return this;}[_0x4c1f23(0x385)](){return this;}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x267b4f=_0x4c1f23;throw new Error(_0x267b4f(0x220));}[_0x4c1f23(0x1da)](){const _0x452966=_0x4c1f23;this[_0x452966(0xd7)][_0x452966(0x377)](this[_0x452966(0x1f3)],this[_0x452966(0x1d3)],null,[]);}[_0x4c1f23(0x24d)](){const _0xef1b68=_0x4c1f23;this['_isPermissionRej']?this['_notificationService'][_0xef1b68(0x160)]({'title':this[_0xef1b68(0x119)]['t']('permission.title'),'content':this[_0xef1b68(0x119)]['t'](_0xef1b68(0x398)),'type':_0xef1b68(0x17a),'duration':0x0}):this[_0xef1b68(0x3a8)][_0xef1b68(0x160)]({'title':this['_localeService']['t'](_0xef1b68(0x1f7)),'content':this['_localeService']['t'](_0xef1b68(0x253)),'type':'error','duration':0x0});}[_0x4c1f23(0x37d)](){const _0xc21e08=_0x4c1f23;this[_0xc21e08(0x15c)][_0xc21e08(0xb6)](new _0x42c12f(this[_0xc21e08(0x1f3)])['id'],!0x1);}};Q=le([m(0x6,_0x321449(_0x52f39f)),m(0x7,_0x265863),m(0x8,_0x2fbed3),m(0x9,_0x321449(D)),m(0xa,_0x321449(_0x5d1c03)),m(0xb,_0x321449(_0x2e153b)),m(0xc,_0x7f7802)],Q);let ee=class extends _e{constructor(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0x25ec44,_0x4e809b,_0x453f10,_0xca638c,_0xbf7522){const _0x3db14c=_0x4c1f23;super(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0xca638c,_0xbf7522,_0x4e809b,_0x453f10),l(this,'status',_0x3db14c(0x209)),this[_0x3db14c(0x162)]=_0x25ec44;}['appendMutation'](_0x130fa4){const _0x5afcec=_0x4c1f23;return this[_0x5afcec(0x14c)][_0x5afcec(0x27c)](_0x130fa4),this[_0x5afcec(0x32a)](),this;}[_0x4c1f23(0x10c)](_0x507b95){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4864a6=_0x4c1f23;throw new Error(_0x4864a6(0x105));}[_0x4c1f23(0xf4)](){const _0x4ae662=_0x4c1f23;throw new Error(_0x4ae662(0x76));}['toggleOffline'](){return this;}[_0x4c1f23(0x31f)](){const _0x570c2b=_0x4c1f23,{_injector:_0x5975b5,_pendingMutations:_0x264191,_awaitingChangeset:_0x3a813c,unitID:_0x250ea1,_handler:_0x37f71d,type:_0x113267}=this,_0x516f2e=Hs(_0x5975b5,_0x250ea1,_0x113267,_0x3a813c,_0x264191,_0x37f71d);return _0x516f2e instanceof K?_0x516f2e[_0x570c2b(0x298)]():(_0x516f2e instanceof X||_0x516f2e instanceof Z)&&_0x516f2e['resend'](),_0x516f2e;}[_0x4c1f23(0x227)](){const _0x186aed=_0x4c1f23;throw new Error(_0x186aed(0x1c5));}};ee=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x2fbed3)],ee);let k=class extends _e{constructor(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x2adc59,_0x16d44d,_0x3b254d,_0x164c09,_0x5092c1,_0x36f7d2,_0x1a3db9,_0x3d1657,_0x456caa,_0xaa0456){const _0x346d77=_0x4c1f23;super(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x3b254d,_0x3d1657,_0x456caa,_0x5092c1,_0x36f7d2),l(this,_0x346d77(0xad),_0x346d77(0x1dc)),(this[_0x346d77(0x295)]=_0x2adc59,this[_0x346d77(0x1c9)]=_0x16d44d,this[_0x346d77(0x162)]=_0x164c09,this[_0x346d77(0x128)]=_0x1a3db9,this[_0x346d77(0x2ce)]=_0xaa0456);}['onMissedChangesetFetched'](_0x4fca33){const _0x5cbe65=_0x4c1f23;try{const _0xdd2ac5=[..._0x4fca33,...this[_0x5cbe65(0x1c9)]],_0x473da9=[this[_0x5cbe65(0x32e)]||this[_0x5cbe65(0x295)]][_0x5cbe65(0x347)](_0x46968a=>!!_0x46968a);let _0x4192b5,_0x8fc273;if(_0x473da9[_0x5cbe65(0x78)]){const _0x5aa5a7=this['_transformService'][_0x5cbe65(0x3a0)](_0xdd2ac5,_0x473da9,!0x1);if(!_0x428767(_0x5aa5a7))throw _0x5aa5a7[_0x5cbe65(0x17a)];_0x4192b5=_0x5aa5a7['c1Prime'],_0x8fc273=_0x5aa5a7['c2Prime'];}else _0x4192b5=_0xdd2ac5,_0x8fc273=[];let _0x3881ea=this['_pendingMutations'];_0x4192b5[_0x5cbe65(0x100)](_0x26baf0=>{const _0x8452f5=_0x5cbe65;let _0x581545;if(_0x3881ea[_0x8452f5(0x78)]){const _0x4a41f6=this['_transformService'][_0x8452f5(0xbf)](_0x26baf0,_0x3881ea);if(!_0x8db330(_0x4a41f6))throw _0x4a41f6[_0x8452f5(0x17a)];_0x581545=_0x4a41f6['c1Prime'],_0x3881ea=_0x4a41f6[_0x8452f5(0x101)];}else _0x581545=_0x26baf0;this[_0x8452f5(0x3aa)](_0x581545);}),this[_0x5cbe65(0x295)]&&this[_0x5cbe65(0x3c1)](),this['_awaitingChangeset']&&_0x8fc273['length']&&(_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)]());let _0x3f4245;if(this['_awaitingChangeset']&&_0x3881ea[_0x5cbe65(0x78)]!==0x0)_0x3f4245=this['_injector'][_0x5cbe65(0x171)](X,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],_0x3881ea,this[_0x5cbe65(0x34b)]);else{if(this[_0x5cbe65(0x32e)]&&_0x3881ea['length']===0x0)_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)](),_0x3f4245=this['_injector'][_0x5cbe65(0x171)](Z,this['unitID'],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],this[_0x5cbe65(0x34b)]);else{if(_0x3881ea['length']!==0x0){const _0x210769=this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](K,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x3881ea,this[_0x5cbe65(0x34b)]);_0x210769[_0x5cbe65(0x298)](),_0x3f4245=_0x210769;}else _0x3f4245=this[_0x5cbe65(0x162)]['createInstance'](Se,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x34b)]);}}return _0x3f4245[_0x5cbe65(0x32a)](),_0x3f4245;}catch(_0x282da0){return this['_logService']['error'](_0x5cbe65(0xc6),_0x5cbe65(0x28b),_0x282da0),this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](Q,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x32e)],this[_0x5cbe65(0x14c)],this[_0x5cbe65(0x34b)],!0x1);}}[_0x4c1f23(0x227)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c1f23(0x3ef)](_0x4223b6){const _0x27ef99=_0x4c1f23;return this[_0x27ef99(0x14c)][_0x27ef99(0x27c)](_0x4223b6),this;}[_0x4c1f23(0x10c)](_0x324787){const _0x290fd1=_0x4c1f23;return this[_0x290fd1(0x1c9)]['push'](_0x324787),this;}['onRemoteAck'](_0x3623d9){const _0x351ba7=_0x4c1f23;if(this['_awaitingChangeset'])return this[_0x351ba7(0x295)]=this[_0x351ba7(0x32e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c1f23(0xf4)](_0x1511f7){const _0x158849=_0x4c1f23;return this[_0x158849(0x222)](!!(_0x1511f7!=null&&_0x1511f7[_0x158849(0x3b9)]));}[_0x4c1f23(0x385)](){const _0x2c6b56=_0x4c1f23;return this[_0x2c6b56(0x162)][_0x2c6b56(0x171)](ee,this['unitID'],this[_0x2c6b56(0x1d3)],this[_0x2c6b56(0x32e)],this[_0x2c6b56(0x14c)],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x222)](_0x37f713){const _0x30edab=_0x4c1f23;return this['_injector']['createInstance'](Q,this[_0x30edab(0x1f3)],this['type'],this[_0x30edab(0x32e)],this[_0x30edab(0x14c)],this[_0x30edab(0x34b)],_0x37f713);}};k=le([m(0x7,_0x321449(_0x313fa0)),m(0x8,_0x321449(_0x5d1c03)),m(0x9,_0x321449(D)),m(0xa,_0x50688a),m(0xb,_0x265863),m(0xc,_0x2fbed3),m(0xd,_0x56767e)],k);function Hs(_0x2e4e3b,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91){const _0x433818=_0x4c1f23;return _0x2f1ac1&&_0x22b2d3['length']?_0x2e4e3b[_0x433818(0x171)](X,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91):_0x2f1ac1?_0x2e4e3b[_0x433818(0x171)](Z,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x46cf91):_0x22b2d3[_0x433818(0x78)]?_0x2e4e3b[_0x433818(0x171)](K,_0x12ef31,_0x52fb52,_0x22b2d3,_0x46cf91):_0x2e4e3b['createInstance'](Se,_0x12ef31,_0x52fb52,_0x46cf91);}var mr=Object[_0x4c1f23(0x2e9)],gr=Object[_0x4c1f23(0x133)],Vt=(_0x5c516f,_0xecbd3b,_0x2ff63d,_0x1833ea)=>{const _0x58a222=_0x4c1f23;for(var _0x5f3e5b=_0x1833ea>0x1?void 0x0:_0x1833ea?gr(_0xecbd3b,_0x2ff63d):_0xecbd3b,_0xd1c1f9=_0x5c516f[_0x58a222(0x78)]-0x1,_0x53c110;_0xd1c1f9>=0x0;_0xd1c1f9--)(_0x53c110=_0x5c516f[_0xd1c1f9])&&(_0x5f3e5b=(_0x1833ea?_0x53c110(_0xecbd3b,_0x2ff63d,_0x5f3e5b):_0x53c110(_0x5f3e5b))||_0x5f3e5b);return _0x1833ea&&_0x5f3e5b&&mr(_0xecbd3b,_0x2ff63d,_0x5f3e5b),_0x5f3e5b;},p=(_0x4233d6,_0x5265b0)=>(_0x4e575f,_0x16ed68)=>_0x5265b0(_0x4e575f,_0x16ed68,_0x4233d6);let Je=class extends _0x2dacfb{constructor(_0x3b1635,_0x216fa0,_0x52a15d,_0x48a801,_0x14895f,_0x228be4,_0x4a1766,_0x39f8ea,_0x584ae0,_0x3a5378,_0x54eeed,_0x5112ac,_0x4a58d0){const _0x3e2d53=_0x4c1f23;super(),l(this,_0x3e2d53(0x3c3),new _0x2ec58d(null)),l(this,'state$',this['_state$'][_0x3e2d53(0xfc)]()),l(this,'_state'),l(this,_0x3e2d53(0xcb),!0x1),l(this,_0x3e2d53(0x380),this[_0x3e2d53(0xe0)][_0x3e2d53(0x1a7)](_0x16d2df(_0x5a09ab=>_0x5a09ab?_0x5a09ab[_0x3e2d53(0xad)]:w[_0x3e2d53(0x3d4)]),_0xb96cea(0x1))),l(this,_0x3e2d53(0x1f0),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x3e2d53(0x1f3)]=_0x3b1635,this[_0x3e2d53(0x177)]=_0x216fa0,this['_type']=_0x52a15d,this['_injector']=_0x48a801,this[_0x3e2d53(0xd7)]=_0x14895f,this[_0x3e2d53(0xa3)]=_0x228be4,this[_0x3e2d53(0x119)]=_0x4a1766,this[_0x3e2d53(0x396)]=_0x39f8ea,this[_0x3e2d53(0x128)]=_0x584ae0,this['_commandService']=_0x3a5378,this['_messageService']=_0x54eeed,this[_0x3e2d53(0x15c)]=_0x5112ac,this[_0x3e2d53(0x335)]=_0x4a58d0);}get[_0x4c1f23(0x354)](){const _0x198ba1=_0x4c1f23;return this[_0x198ba1(0x195)];}async[_0x4c1f23(0x1ba)](){const _0x2f5f70=_0x4c1f23;if(this[_0x2f5f70(0x354)])throw new Error(_0x2f5f70(0x2f3));await this[_0x2f5f70(0x34a)]();}[_0x4c1f23(0x23c)](){const _0x4ac30a=_0x4c1f23;return this[_0x4ac30a(0xcb)]=!0x0,_0x5738c2(()=>{const _0x50f41b=_0x4ac30a;this['_collaborationPaused']=!0x1,this[_0x50f41b(0x24b)]();});}[_0x4c1f23(0x14d)](_0x880c57){const _0x474d9f=_0x4c1f23;this[_0x474d9f(0x195)]=_0x880c57,this[_0x474d9f(0x3c3)]['next'](_0x880c57);}async['_init'](){const _0x15bdd8=_0x4c1f23;var _0x1fa704;this[_0x15bdd8(0x14d)](await this[_0x15bdd8(0x2a0)]()),this[_0x15bdd8(0x335)]&&((_0x1fa704=this[_0x15bdd8(0x335)])==null||_0x1fa704['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x15bdd8(0x335)]['getUnitStatus$'](this[_0x15bdd8(0x1f3)])[_0x15bdd8(0x280)](_0x282144=>{const _0x258305=_0x15bdd8;this[_0x258305(0x128)][_0x258305(0x20b)]('[CollaborationEntity]',_0x258305(0xf9),_0x282144),_0x282144===js[_0x258305(0xf3)]?(this[_0x258305(0x28f)][_0x258305(0x160)]({'content':this[_0x258305(0x119)]['t'](_0x258305(0x143)),'type':_0x57eb36['Warning']}),this[_0x258305(0x15c)]['updatePermissionPoint'](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x1)):this[_0x258305(0x15c)][_0x258305(0xb6)](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x0);})));let _0x4193f9=!0x1;return this[_0x15bdd8(0x248)](this['session'][_0x15bdd8(0x294)][_0x15bdd8(0x280)](_0x23b041=>{const _0x4cc8ab=_0x15bdd8;_0x23b041===G[_0x4cc8ab(0x2e1)]?this[_0x4cc8ab(0x17b)](_0x4193f9):_0x23b041===G[_0x4cc8ab(0x3d4)]&&(_0x4193f9=!0x0,this[_0x4cc8ab(0xe8)]());})),this[_0x15bdd8(0x248)](this[_0x15bdd8(0x177)]['event$']['subscribe'](_0x22af5d=>{const _0x511938=_0x15bdd8;try{switch(_0x22af5d[_0x511938(0x186)]){case _0x273d8c['NEW_CHANGESETS']:{this[_0x511938(0x1ac)](_0x569e1c(_0x22af5d[_0x511938(0x339)]));break;}case _0x273d8c[_0x511938(0x368)]:{this[_0x511938(0x155)](_0x22af5d[_0x511938(0x339)]);break;}case _0x273d8c[_0x511938(0x389)]:{this['_onRemoteRejected']();break;}case _0x273d8c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x511938(0x1ee)](_0x22af5d[_0x511938(0x339)][_0x511938(0x219)][_0x511938(0x17d)](_0x56e70e=>_0x569e1c(_0x56e70e)));break;}case _0x273d8c[_0x511938(0x2bf)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1a83c4){throw console['error'](_0x511938(0x3e4),_0x1a83c4),_0x1a83c4;}})),this[_0x15bdd8(0x195)];}[_0x4c1f23(0x390)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x533c24=_0x4c1f23;if(this['_transitionLocked'])throw new Error(_0x533c24(0x306));this[_0x533c24(0x1f0)]=!0x0;}[_0x4c1f23(0x2dd)](_0x3853df){const _0x5db510=_0x4c1f23;this[_0x5db510(0x375)](),this['_updateState'](this[_0x5db510(0x195)][_0x5db510(0x3ef)](_0x3853df)),this[_0x5db510(0x390)]();}[_0x4c1f23(0x1ac)](_0x36005a){const _0x12d686=_0x4c1f23;if(!(_0x36005a['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x12d686(0x1f3)]))){if(this[_0x12d686(0xcb)]){this['_remoteChangesetQueue'][_0x12d686(0x27c)](_0x36005a);return;}this[_0x12d686(0x26b)](_0x36005a);}}[_0x4c1f23(0x24b)](){const _0x52d52f=_0x4c1f23;this[_0x52d52f(0x1ff)]['forEach'](_0x69f4bb=>this[_0x52d52f(0x26b)](_0x69f4bb)),this[_0x52d52f(0x1ff)]=[];}['_applyRemoteChangeset'](_0xf71938){const _0x287762=_0x4c1f23,_0x762128=this['_compressMutationService'][_0x287762(0x35d)][_0x287762(0x35e)](this[_0x287762(0xa3)][_0x287762(0x35d)][_0x287762(0x1c0)]()['COMPRESS_MUTATION_APPLY'])(_0xf71938[_0x287762(0x3d7)],null)||_0xf71938[_0x287762(0x3d7)],_0x77adcc={..._0xf71938,'mutations':_0x762128};this[_0x287762(0x375)](),this[_0x287762(0x14d)](this[_0x287762(0x195)][_0x287762(0x10c)](_0x77adcc)),this[_0x287762(0x390)]();}['_onRemoteACK'](_0x4804c5){const _0x1cfa21=_0x4c1f23;this[_0x1cfa21(0x375)](),this[_0x1cfa21(0x14d)](this[_0x1cfa21(0x195)][_0x1cfa21(0x357)](_0x4804c5)),this['_unlockTransition']();}[_0x4c1f23(0x1d5)](_0x58532e){const _0x54a6f7=_0x4c1f23;this[_0x54a6f7(0x375)](),this['_updateState'](this[_0x54a6f7(0x195)][_0x54a6f7(0xf4)](_0x58532e)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3401e1){const _0x407412=_0x4c1f23;if(!(this[_0x407412(0x195)]instanceof k))throw new TypeError(_0x407412(0x8d));const _0x2aff63=_0x3401e1[_0x407412(0x17d)](_0x5447e7=>{const _0xd9c56e=_0x407412,_0x4287e9=this[_0xd9c56e(0xa3)]['interceptor'][_0xd9c56e(0x35e)](this[_0xd9c56e(0xa3)][_0xd9c56e(0x35d)]['getInterceptPoints']()[_0xd9c56e(0x1a4)])(_0x5447e7[_0xd9c56e(0x3d7)],null)||_0x5447e7[_0xd9c56e(0x3d7)];return{..._0x5447e7,'mutations':_0x4287e9};});this[_0x407412(0x375)](),this[_0x407412(0x14d)](this[_0x407412(0x195)][_0x407412(0xfb)](_0x2aff63)),this[_0x407412(0x390)]();}[_0x4c1f23(0xe8)](){const _0x4e246e=_0x4c1f23;this[_0x4e246e(0x375)](),this[_0x4e246e(0x14d)](this[_0x4e246e(0x195)][_0x4e246e(0x385)]()),this[_0x4e246e(0x390)]();}[_0x4c1f23(0x17b)](_0xd51a33=!0x1){const _0x2e125c=_0x4c1f23;this['_lockTransition'](),this[_0x2e125c(0x14d)](this[_0x2e125c(0x195)][_0x2e125c(0x31f)]()),this[_0x2e125c(0x390)]();const _0x3cd207=this['_state'];_0xd51a33&&_0x3cd207 instanceof Se&&(this['_lockTransition'](),this[_0x2e125c(0x14d)](_0x3cd207[_0x2e125c(0xff)]()),this[_0x2e125c(0x390)]());}async[_0x4c1f23(0x2a0)](){return new Promise(_0x1d47c5=>{const _0x19c92c=_0x4c7d;this['session'][_0x19c92c(0x294)][_0x19c92c(0x1a7)](_0x448807(0x1))[_0x19c92c(0x280)](async _0x470a40=>{const _0x365b50=_0x19c92c;_0x1d47c5(await this['_createInitialStateImpl'](_0x470a40===G[_0x365b50(0x2e1)]));});});}[_0x4c1f23(0xf7)](){const _0x3fbadf=this['unitID'];return{'onStateChange':(_0x1ed29c,_0xf64be2)=>{const _0x2fc7c2=_0x4c7d;if(_0x1ed29c!==this[_0x2fc7c2(0x195)])throw new Error(_0x2fc7c2(0xc2)+_0x1ed29c[_0x2fc7c2(0xad)]+'\x0aAfter:\x20'+_0xf64be2['status']+_0x2fc7c2(0x34d)+this[_0x2fc7c2(0x195)]['status']);this[_0x2fc7c2(0x14d)](_0xf64be2);},'onSendChangeset':_0x312f97=>{const _0xe1e748=_0x4c7d,_0x59718c={'eventID':_0x273d8c[_0xe1e748(0x8a)],'data':{'unitID':_0x312f97[_0xe1e748(0x1f3)],'unitType':this[_0xe1e748(0x16a)],'changeset':_0x312f97,'memberID':this[_0xe1e748(0x177)][_0xe1e748(0x370)]()}};this[_0xe1e748(0x177)]['send'](_0x59718c,this['unitID']);},'onMissingChangesets':({from:_0xb13ac7,to:_0x16e8d9})=>{const _0x4fe3c3=_0x4c7d;this['_logService'][_0x4fe3c3(0x20b)]('[CollaborationEntity]',_0x4fe3c3(0x2a7)+_0xb13ac7+_0x4fe3c3(0xda)+_0x16e8d9);const _0x521960={'eventID':_0x273d8c['FETCH_MISSING'],'data':{'unitID':_0x3fbadf,'unitType':this['_type'],'from':_0xb13ac7,'to':_0x16e8d9}};this[_0x4fe3c3(0x177)][_0x4fe3c3(0x218)](_0x521960,this[_0x4fe3c3(0x1f3)]);}};}async[_0x4c1f23(0x8e)](_0x276fef){const _0x3a4707=_0x4c1f23;var _0x4c5143,_0x198010;const _0x352bd5=await this[_0x3a4707(0xd7)][_0x3a4707(0x107)](this[_0x3a4707(0x1f3)]),_0x138ec3=(_0x4c5143=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0x3d7)])!=null?_0x4c5143:[],_0x1e198c=(_0x198010=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0xfe)])!=null?_0x198010:null,_0x284ecc=this[_0x3a4707(0x1f3)];try{this[_0x3a4707(0x13c)](_0x1e198c,_0x138ec3);}catch(_0x2ac81f){this[_0x3a4707(0x128)][_0x3a4707(0x17a)](_0x2ac81f);}const _0x3bebbe=this[_0x3a4707(0xf7)]();if(_0x276fef){const _0x4a27b4=Hs(this['_injector'],_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);return _0x4a27b4 instanceof K?_0x4a27b4['_schedule']():(_0x4a27b4 instanceof X||_0x4a27b4 instanceof Z)&&_0x4a27b4['resend'](),_0x4a27b4;}return this['_injector'][_0x3a4707(0x171)](ee,_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);}['_replayCachedMutations'](_0x3e489d,_0x27ab26){const _0x215f6a=_0x4c1f23;var _0x336ab7,_0x17dc6c;const _0xa46bfb=this[_0x215f6a(0xa3)]['interceptor'][_0x215f6a(0x35e)](this[_0x215f6a(0xa3)][_0x215f6a(0x35d)][_0x215f6a(0x1c0)]()['COMPRESS_MUTATION_APPLY']);(_0x336ab7=_0xa46bfb((_0x3e489d==null?void 0x0:_0x3e489d[_0x215f6a(0x3d7)])||[],null))==null||_0x336ab7[_0x215f6a(0x100)](_0x724176=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x724176['id'],_0x724176[_0x215f6a(0x364)])),(_0x17dc6c=_0xa46bfb(_0x27ab26||[],null))==null||_0x17dc6c[_0x215f6a(0x100)](_0x437482=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x437482['id'],_0x437482[_0x215f6a(0x364)]));}};Je=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x50688a),p(0x9,_0x265863),p(0xa,_0x5d3b7c),p(0xb,_0x52f39f),p(0xc,_0x9bfc3c(tt))],Je);let bt=class extends Je{constructor(_0x523246,_0x61fb11,_0x1b1c56,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0x1b2a9b,_0x423f72,_0x4c5f53,_0x496f4e,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502){const _0x600cca=_0x4c1f23;super(_0x523246,_0x1b1c56,_0x61fb11,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502),this['unitID']=_0x523246,this[_0x600cca(0x1d3)]=_0x61fb11,this['_docStateChangeManagerService']=_0x1b2a9b,this[_0x600cca(0xfa)]=_0x423f72,this[_0x600cca(0x2ff)]=_0x4c5f53,this[_0x600cca(0x3b7)]=_0x496f4e;}[_0x4c1f23(0xf7)](){const _0x4d1aea=_0x4c1f23,_0x2828e3=super['_createHandler']();return _0x2828e3[_0x4d1aea(0x200)]=_0x26abe4=>this[_0x4d1aea(0xfa)][_0x4d1aea(0x11a)](_0x26abe4),_0x2828e3['onTransformSelections']=_0x23d784=>this[_0x4d1aea(0x2ff)][_0x4d1aea(0x34c)](_0x23d784),_0x2828e3[_0x4d1aea(0x1e7)]=_0x1b8fd1=>this[_0x4d1aea(0x3b7)][_0x4d1aea(0x1f8)](_0x1b8fd1),_0x2828e3[_0x4d1aea(0x2e5)]=_0x3b7a4f=>this['_docTransformIMECacheService'][_0x4d1aea(0x20a)](_0x3b7a4f),_0x2828e3;}async['_init'](){const _0x573210=_0x4c1f23,_0x190760=await super[_0x573210(0x34a)]();return this[_0x573210(0x248)](this[_0x573210(0x1ef)][_0x573210(0x168)]((_0x15b9d3,_0x427fda)=>{const _0xfaccb8=_0x573210;if(_0x15b9d3[_0xfaccb8(0x1d3)]!==_0xcd477b[_0xfaccb8(0xdf)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x1ce)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x30b)])return;const _0x56d019=_0x15b9d3[_0xfaccb8(0x364)];if((_0x56d019==null?void 0x0:_0x56d019['unitId'])!==this[_0xfaccb8(0x1f3)])return;let _0x42fcf1=_0x15b9d3;if(_0x42fcf1['id']===_0x1b2745['id']){const _0x2668c1=_0x42fcf1[_0xfaccb8(0x364)];_0x42fcf1={'id':_0x1b2745['id'],'type':_0xcd477b[_0xfaccb8(0xdf)],'params':{'unitId':_0x2668c1[_0xfaccb8(0xe5)],'actions':_0x2668c1['actions'],'textRanges':null}};}const _0x52487b=this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)][_0xfaccb8(0x35e)](this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)]['getInterceptPoints']()[_0xfaccb8(0x192)])([_0x42fcf1],null)||[_0x42fcf1];this[_0xfaccb8(0x2dd)](_0x52487b[0x0]);})),_0x190760;}};bt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(_0x3f8e0c)),p(0x9,_0x321449(Ye)),p(0xa,_0x321449(Xe)),p(0xb,_0x321449(Bt)),p(0xc,_0x50688a),p(0xd,_0x265863),p(0xe,_0x5d3b7c),p(0xf,_0x52f39f),p(0x10,_0x9bfc3c(tt))],bt);let Tt=class extends Je{constructor(_0x44549a,_0x308441,_0x15a7e8,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xb9057c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01){const _0x36f5ce=_0x4c1f23;super(_0x44549a,_0x15a7e8,_0x308441,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01),this['unitID']=_0x44549a,this[_0x36f5ce(0x1d3)]=_0x308441,this['_sheetTransformSelectionsService']=_0xb9057c;}[_0x4c1f23(0xf7)](){const _0x17b61f=_0x4c1f23,_0x547e41=super[_0x17b61f(0xf7)]();return _0x547e41[_0x17b61f(0x1c1)]=_0x100f11=>this[_0x17b61f(0xd2)]['transformSelections'](_0x100f11),_0x547e41;}async[_0x4c1f23(0x34a)](){const _0x7be811=_0x4c1f23,_0x16fab2=await super[_0x7be811(0x34a)]();return this[_0x7be811(0x248)](this[_0x7be811(0x1ef)][_0x7be811(0x168)]((_0x3b9a52,_0x46d1e8)=>{const _0x557ad9=_0x7be811;if(_0x3b9a52[_0x557ad9(0x1d3)]!==_0xcd477b['MUTATION']||_0x46d1e8!=null&&_0x46d1e8['fromCollab']||_0x46d1e8!=null&&_0x46d1e8[_0x557ad9(0x30b)])return;const _0x3367b6=_0x3b9a52[_0x557ad9(0x364)];if((_0x3367b6==null?void 0x0:_0x3367b6['unitId'])!==this[_0x557ad9(0x1f3)])return;const _0x12a4d2=_0x3b9a52,_0x258d12=this[_0x557ad9(0xa3)][_0x557ad9(0x35d)][_0x557ad9(0x35e)](this[_0x557ad9(0xa3)][_0x557ad9(0x35d)]['getInterceptPoints']()[_0x557ad9(0x192)])([_0x12a4d2],null)||[_0x12a4d2];this[_0x557ad9(0x2dd)](_0x258d12[0x0]);})),_0x16fab2;}};Tt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(Ke)),p(0x9,_0x50688a),p(0xa,_0x265863),p(0xb,_0x5d3b7c),p(0xc,_0x52f39f),p(0xd,_0x9bfc3c(tt))],Tt);var Sr=Object[_0x4c1f23(0x2e9)],pr=Object[_0x4c1f23(0x133)],vr=(_0x5ea452,_0x5b8582,_0x2a8813,_0x32449f)=>{for(var _0x4fdddd=_0x32449f>0x1?void 0x0:_0x32449f?pr(_0x5b8582,_0x2a8813):_0x5b8582,_0x24107b=_0x5ea452['length']-0x1,_0x2dd6d3;_0x24107b>=0x0;_0x24107b--)(_0x2dd6d3=_0x5ea452[_0x24107b])&&(_0x4fdddd=(_0x32449f?_0x2dd6d3(_0x5b8582,_0x2a8813,_0x4fdddd):_0x2dd6d3(_0x4fdddd))||_0x4fdddd);return _0x32449f&&_0x4fdddd&&Sr(_0x5b8582,_0x2a8813,_0x4fdddd),_0x4fdddd;},lt=(_0x586ca9,_0x237b3c)=>(_0x45ecdb,_0x5393d1)=>_0x237b3c(_0x45ecdb,_0x5393d1,_0x586ca9);let Ae=class extends _0x2dacfb{constructor(_0x1294cf,_0x254ad6,_0x8a4385){const _0x445a1a=_0x4c1f23;super(),l(this,_0x445a1a(0xac),new Map()),l(this,_0x445a1a(0x29f),new _0xacaad6()),(this[_0x445a1a(0x162)]=_0x1294cf,this[_0x445a1a(0x1e1)]=_0x254ad6,this[_0x445a1a(0x310)]=_0x8a4385,this[_0x445a1a(0x34a)]());}[_0x4c1f23(0x1e4)](){const _0x475f5f=_0x4c1f23;super[_0x475f5f(0x1e4)](),this[_0x475f5f(0xac)]['forEach'](_0x152876=>_0x152876[_0x475f5f(0x1e4)]()),this[_0x475f5f(0xac)][_0x475f5f(0xa8)]();}['getCollabEntity'](_0x5171e7){const _0x3432bc=_0x4c1f23;var _0x5386b9;return(_0x5386b9=this[_0x3432bc(0xac)]['get'](_0x5171e7))!=null?_0x5386b9:null;}[_0x4c1f23(0x2b7)](_0xe0951a){const _0x1f353f=_0x4c1f23,_0x12f7d3=this[_0x1f353f(0x254)](_0xe0951a);return _0x12f7d3?_0x570d55(_0x12f7d3):this[_0x1f353f(0x29f)]['pipe'](_0x1f1135(_0x45b120=>_0x45b120[_0x1f353f(0x1f3)]===_0xe0951a));}['_init'](){const _0x49e38b=_0x4c1f23;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9['UNIVER_SHEET'])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x280)](async _0x3c4be3=>{const _0x8fa491=_0x49e38b,_0x4925f9=_0x3c4be3['getUnitId'](),_0xdff029=await this[_0x8fa491(0x1a1)](_0x4925f9,H[_0x8fa491(0x10d)]);this[_0x8fa491(0xac)][_0x8fa491(0x329)](_0x4925f9,_0xdff029);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9[_0x49e38b(0x11d)])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x1a7)](_0x1f1135(_0xb7414=>!_0xb7414[_0x49e38b(0x34e)]()['startsWith']('__')))[_0x49e38b(0x280)](async _0x499e8b=>{const _0x1ad7d9=_0x49e38b,_0x268e84=_0x499e8b['getUnitId'](),_0x5f3d4a=await this['_startCollaboration'](_0x268e84,H['UNIVER_DOC']);this[_0x1ad7d9(0xac)][_0x1ad7d9(0x329)](_0x268e84,_0x5f3d4a);}),_0x5de0ce(this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x10d)]),this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x11d)]))[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]))[_0x49e38b(0x280)](_0x11b0f7=>{const _0x1ec34f=_0x49e38b,_0x1ea6f2=_0x11b0f7[_0x1ec34f(0x34e)](),_0x891344=this[_0x1ec34f(0xac)]['get'](_0x1ea6f2);_0x891344&&(_0x891344[_0x1ec34f(0x1e4)](),this[_0x1ec34f(0xac)][_0x1ec34f(0xd0)](_0x1ea6f2));});}async['_startCollaboration'](_0x4b0da8,_0x43aab9){const _0x2a5ceb=_0x4c1f23,_0x4857ea=await this['_collabSessionService']['requireSession'](_0x4b0da8),_0x5ce201=this[_0x2a5ceb(0x162)]['createInstance'](this['_getCtorByUniverType'](_0x43aab9),_0x4b0da8,_0x43aab9,_0x4857ea);return await _0x5ce201['init'](),this[_0x2a5ceb(0x29f)][_0x2a5ceb(0x23d)](_0x5ce201),_0x5ce201;}[_0x4c1f23(0x1f5)](_0x16d67f){const _0x47fa5d=_0x4c1f23;switch(_0x16d67f){case H[_0x47fa5d(0x11d)]:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x47fa5d(0x3cb)+_0x16d67f);}}};Ae=vr([lt(0x0,_0x321449(_0x313fa0)),lt(0x1,_0x321449(ce)),lt(0x2,_0x375068)],Ae);const _s=[_0x4c1f23(0x36d),_0x4c1f23(0x3ac),_0x4c1f23(0x17e),_0x4c1f23(0x1b0),_0x4c1f23(0x3f1),_0x4c1f23(0x94)];class Ft extends _0x22db72{constructor(){const _0x3ab35c=_0x4c1f23;super(...arguments),l(this,_0x3ab35c(0x16f),new Map()),l(this,'_colorIndex',0x0);}[_0x4c1f23(0x22b)](_0x3d06e9){const _0x49e0d=_0x4c1f23;if(this[_0x49e0d(0x16f)][_0x49e0d(0x20e)](_0x3d06e9))return this[_0x49e0d(0x16f)][_0x49e0d(0x348)](_0x3d06e9);const _0x227747=_s[this[_0x49e0d(0x1b9)]];return this[_0x49e0d(0x1b9)]=(this['_colorIndex']+0x1)%_s[_0x49e0d(0x78)],this[_0x49e0d(0x16f)]['set'](_0x3d06e9,_0x227747),_0x227747;}}var Ir=Object[_0x4c1f23(0x2e9)],Er=Object[_0x4c1f23(0x133)],Cr=(_0x1a0a48,_0x415acd,_0x8c44db,_0x573633)=>{for(var _0x46f60d=_0x573633>0x1?void 0x0:_0x573633?Er(_0x415acd,_0x8c44db):_0x415acd,_0x442d83=_0x1a0a48['length']-0x1,_0x46d5fb;_0x442d83>=0x0;_0x442d83--)(_0x46d5fb=_0x1a0a48[_0x442d83])&&(_0x46f60d=(_0x573633?_0x46d5fb(_0x415acd,_0x8c44db,_0x46f60d):_0x46d5fb(_0x46f60d))||_0x46f60d);return _0x573633&&_0x46f60d&&Ir(_0x415acd,_0x8c44db,_0x46f60d),_0x46f60d;},se=(_0x18d7bc,_0x45beb5)=>(_0x9ba8e6,_0x323329)=>_0x45beb5(_0x9ba8e6,_0x323329,_0x18d7bc);const br=0x12c,Tr=0x64;let Rt=class extends _0x2dacfb{constructor(_0x2e55bd,_0x1acc8b,_0x57b672,_0x92a7af,_0x189907,_0x24908d,_0x14294e,_0xdcede9,_0x368be1){const _0x360b10=_0x4c1f23;super(),l(this,'_online',!0x1),l(this,_0x360b10(0x34a),!0x1),l(this,_0x360b10(0x1cf),new _0x2ec58d(new Map())),l(this,_0x360b10(0x37c),this['_cursorInfo$'][_0x360b10(0xfc)]()),l(this,_0x360b10(0x258),new _0x2ec58d([])),l(this,_0x360b10(0x115),this[_0x360b10(0x258)][_0x360b10(0x1a7)](_0x3504d2(br))),l(this,'_updateLocalCursor',_0x1b3960(_0x5e8466=>{const _0x205559=_0x360b10,_0x40af4c={'eventID':_0x273d8c[_0x205559(0xf2)],'data':{'unitID':this[_0x205559(0x1f3)],'memberID':this['_session'][_0x205559(0x370)](),'selection':xs(_0x5e8466)}};this[_0x205559(0x2c0)]['send'](_0x40af4c,this[_0x205559(0x1f3)]);},Tr)),(this[_0x360b10(0x1f3)]=_0x2e55bd,this[_0x360b10(0x2c0)]=_0x1acc8b,this[_0x360b10(0x162)]=_0x57b672,this[_0x360b10(0x271)]=_0x92a7af,this[_0x360b10(0x2ed)]=_0x189907,this[_0x360b10(0x3c2)]=_0x24908d,this[_0x360b10(0x2ce)]=_0x14294e,this[_0x360b10(0x310)]=_0xdcede9,this[_0x360b10(0x1ef)]=_0x368be1);}get[_0x4c1f23(0x2b8)](){const _0x1fa31a=_0x4c1f23;return this['_cursorInfo$'][_0x1fa31a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x3027a2=_0x4c1f23;return this[_0x3027a2(0x258)][_0x3027a2(0x25c)]();}['dispose'](){const _0x3b940a=_0x4c1f23;super[_0x3b940a(0x1e4)](),this['_cursorInfo$'][_0x3b940a(0x23d)](new Map()),this[_0x3b940a(0x1cf)]['complete'](),this[_0x3b940a(0x258)][_0x3b940a(0x23d)]([]),this[_0x3b940a(0x258)]['complete']();}[_0x4c1f23(0x1ba)](){const _0x2defc0=_0x4c1f23;this['_init']||(this[_0x2defc0(0x34a)]=!0x0,this['_session']['sessionStatus$'][_0x2defc0(0x1a7)](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x42e5e0=>{const _0x1e2a76=_0x2defc0;_0x42e5e0===G[_0x1e2a76(0x2e1)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2defc0(0x2c0)]['event$']['pipe'](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x2f2882=>{const _0x515d0d=_0x2defc0,_0x4352b8=_0x2f2882['eventID'];_0x4352b8===_0x273d8c['UPDATE_CURSOR']&&this[_0x515d0d(0x106)](_0x2f2882),_0x4352b8===_0x273d8c[_0x515d0d(0x15a)]&&this[_0x515d0d(0x2d3)](_0x2f2882);}),this[_0x2defc0(0x248)](this['_commandService'][_0x2defc0(0x168)](_0x374d66=>{const _0xae98eb=_0x2defc0,_0x12cb14=_0x374d66[_0xae98eb(0x364)];_0x12cb14!=null&&this[_0xae98eb(0x25b)]&&_0x374d66['id']===_0x254038['id']&&_0x12cb14['unitId']===this[_0xae98eb(0x1f3)]&&_0x12cb14[_0xae98eb(0x32c)]===!0x1&&this[_0xae98eb(0x252)](_0x12cb14[_0xae98eb(0x138)]);})),this['_syncEditingCollabCursorService'][_0x2defc0(0x2f5)][_0x2defc0(0x1a7)](_0x289d57(this[_0x2defc0(0x265)]))[_0x2defc0(0x280)](_0x461033=>{const _0x27939b=_0x2defc0;if((_0x461033==null?void 0x0:_0x461033[_0x27939b(0x1f3)])!==this[_0x27939b(0x1f3)])return;const _0x60fdbe={'eventID':_0x273d8c['UPDATE_CURSOR'],'data':_0x461033};this[_0x27939b(0x106)](_0x60fdbe);}),this[_0x2defc0(0x248)](this[_0x2defc0(0x1ef)][_0x2defc0(0x168)](_0x7e57ce=>{const _0x2e1167=_0x2defc0;if(_0x7e57ce[_0x2e1167(0x364)]==null)return;const _0x2904c7=_0x7e57ce[_0x2e1167(0x364)];if(_0x7e57ce['id']!==_0x1b2745['id']||_0x2904c7[_0x2e1167(0xe5)]!==this[_0x2e1167(0x1f3)])return;const _0x551c8f={'id':'doc.mutation.rich-text-editing','params':_0x2904c7},_0x288a09=this[_0x2e1167(0x2b8)];for(const [_0x4056f0,_0x6e4384]of _0x288a09){const _0x5d3eed={'id':_0x2e1167(0x108),'params':{'unitId':this[_0x2e1167(0x1f3)],'actions':null,'textRanges':_0x6e4384[_0x2e1167(0x138)]}},_0x41aff6=this['_transformService'][_0x2e1167(0x3f0)](_0x551c8f,_0x5d3eed,!0x1);if(_0x3737c9(_0x41aff6))throw _0x41aff6[_0x2e1167(0x17a)];_0x288a09[_0x2e1167(0x329)](_0x4056f0,{..._0x6e4384,'ranges':_0x41aff6['m2Prime'][_0x2e1167(0x364)][_0x2e1167(0x125)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x288a09);});})));}[_0x4c1f23(0x106)](_0x50a203){const _0xe1d503=_0x4c1f23;var _0x122643,_0xb44630;const {memberID:_0x4f4e20,selection:_0x914011}=_0x50a203[_0xe1d503(0x339)],_0x1d8229=or(_0x914011),_0x1c2a93=(_0xb44630=(_0x122643=this[_0xe1d503(0x2ed)][_0xe1d503(0x39f)](this[_0xe1d503(0x1f3)],_0x4f4e20))==null?void 0x0:_0x122643[_0xe1d503(0x124)])!=null?_0xb44630:_0xe1d503(0x33a),_0x24ab8d={'color':this[_0xe1d503(0x271)][_0xe1d503(0x22b)](_0x4f4e20),'name':_0x1c2a93,'ranges':_0x1d8229},_0x7e3b=this[_0xe1d503(0x2b8)];_0x7e3b['set'](_0x4f4e20,_0x24ab8d),this[_0xe1d503(0x1cf)][_0xe1d503(0x23d)](_0x7e3b);}['_onCursorDelete'](_0x13e57e){const _0x217262=_0x4c1f23,{memberID:_0x2757a0}=_0x13e57e[_0x217262(0x339)],_0x1a7834=this[_0x217262(0x2b8)];_0x1a7834[_0x217262(0xd0)](_0x2757a0),this['_cursorInfo$'][_0x217262(0x23d)](_0x1a7834);}[_0x4c1f23(0x17b)](){const _0x587173=_0x4c1f23;var _0x269c29;if(this[_0x587173(0x25b)]=!0x0,((_0x269c29=this[_0x587173(0x310)][_0x587173(0x204)]())==null?void 0x0:_0x269c29['getUnitId']())!==this['unitID'])return;const _0x1071c6=this[_0x587173(0x162)][_0x587173(0x348)](_0x322779)[_0x587173(0x2bd)]();Array[_0x587173(0x35b)](_0x1071c6)&&_0x1071c6[_0x587173(0x78)]>0x0&&this[_0x587173(0x252)](_0x1071c6);}['_toggleOffline'](){this['_online']=!0x1;}};Rt=Cr([se(0x2,_0x321449(_0x313fa0)),se(0x3,_0x321449(Ft)),se(0x4,_0x321449(ae)),se(0x5,_0x321449(Bt)),se(0x6,_0x56767e),se(0x7,_0x375068),se(0x8,_0x265863)],Rt);var Rr=Object[_0x4c1f23(0x2e9)],Or=Object['getOwnPropertyDescriptor'],Dr=(_0xc7f8ab,_0x5a2923,_0x4f9df9,_0x4a60cd)=>{for(var _0x240c92=_0x4a60cd>0x1?void 0x0:_0x4a60cd?Or(_0x5a2923,_0x4f9df9):_0x5a2923,_0x4737ad=_0xc7f8ab['length']-0x1,_0x3f1f51;_0x4737ad>=0x0;_0x4737ad--)(_0x3f1f51=_0xc7f8ab[_0x4737ad])&&(_0x240c92=(_0x4a60cd?_0x3f1f51(_0x5a2923,_0x4f9df9,_0x240c92):_0x3f1f51(_0x240c92))||_0x240c92);return _0x4a60cd&&_0x240c92&&Rr(_0x5a2923,_0x4f9df9,_0x240c92),_0x240c92;},fe=(_0x4457e7,_0x5cd770)=>(_0x4587f4,_0x36459e)=>_0x5cd770(_0x4587f4,_0x36459e,_0x4457e7);const wr=0x12c,Pr=0x64,yr=()=>{let _0x2c9881=[],_0x2a843e=!0x1;return _0x4a4bfb=>{const _0x4f9cce=_0x4c7d;_0x2c9881[_0x4f9cce(0x27c)](_0x4a4bfb),_0x2a843e||(_0x2a843e=!0x0,setTimeout(()=>{const _0x12918e=_0x4f9cce;_0x2c9881[_0x12918e(0x100)](_0x308dd1=>_0x308dd1()),_0x2c9881=[],_0x2a843e=!0x1;}));};};let Ot=class extends _0x2dacfb{constructor(_0xc79435,_0x156143,_0xe57189,_0x51d1f8,_0x1d4141,_0x433352,_0x4fabe3,_0x5735c7){const _0x29c6bb=_0x4c1f23;super(),l(this,_0x29c6bb(0x25b),!0x1),l(this,'_init',!0x1),l(this,_0x29c6bb(0x1cf),new _0x2ec58d(new Map())),l(this,_0x29c6bb(0x37c),this['_cursorInfo$'][_0x29c6bb(0xfc)]()),l(this,_0x29c6bb(0x258),new _0x2ec58d([])),l(this,_0x29c6bb(0x115),this['_roomMembers$'][_0x29c6bb(0x1a7)](_0x3504d2(wr))),l(this,_0x29c6bb(0x252),_0x1b3960((_0x162e49,_0x2ca8fe)=>{const _0x17fd8a=_0x29c6bb,_0x40a4be={'eventID':_0x273d8c[_0x17fd8a(0xf2)],'data':{'unitID':this[_0x17fd8a(0x1f3)],'memberID':this['_session'][_0x17fd8a(0x370)](),'selection':_0x48cd80(_0x162e49,_0x2ca8fe[_0x17fd8a(0x10f)])}};this[_0x17fd8a(0x2c0)][_0x17fd8a(0x218)](_0x40a4be,this[_0x17fd8a(0x1f3)]);},Pr)),(this['unitID']=_0xc79435,this[_0x29c6bb(0x2c0)]=_0x156143,this[_0x29c6bb(0x162)]=_0xe57189,this[_0x29c6bb(0x271)]=_0x51d1f8,this[_0x29c6bb(0x2ed)]=_0x1d4141,this['_univerInstanceService']=_0x433352,this[_0x29c6bb(0x1ef)]=_0x4fabe3,this[_0x29c6bb(0x179)]=_0x5735c7);}get[_0x4c1f23(0x2b8)](){const _0x282d2a=_0x4c1f23;return this[_0x282d2a(0x1cf)][_0x282d2a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x1993f9=_0x4c1f23;return this[_0x1993f9(0x258)][_0x1993f9(0x25c)]();}[_0x4c1f23(0x1e4)](){const _0x39a057=_0x4c1f23;super[_0x39a057(0x1e4)](),this['_cursorInfo$'][_0x39a057(0x23d)](new Map()),this[_0x39a057(0x1cf)][_0x39a057(0x2c4)](),this[_0x39a057(0x258)][_0x39a057(0x23d)]([]),this[_0x39a057(0x258)][_0x39a057(0x2c4)]();}['init'](){const _0x14f19c=_0x4c1f23;this['_init']||(this['_init']=!0x0,this['_session'][_0x14f19c(0x294)][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x41374a=>{const _0x4a40cb=_0x14f19c;_0x41374a===G[_0x4a40cb(0x2e1)]?this['_toggleOnline']():this[_0x4a40cb(0xe8)]();}),this['_session']['event$'][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x174dd0=>{const _0x4171be=_0x14f19c,_0x33654b=_0x174dd0[_0x4171be(0x186)];_0x33654b===_0x273d8c[_0x4171be(0xf2)]&&this[_0x4171be(0x106)](_0x174dd0),_0x33654b===_0x273d8c[_0x4171be(0x15a)]&&this['_onCursorDelete'](_0x174dd0);}),this[_0x14f19c(0x1f4)](),this[_0x14f19c(0x248)](this['_commandService']['onCommandExecuted'](_0xb892cf=>{const _0x10905f=_0x14f19c;if(this[_0x10905f(0x25b)]&&_0xb892cf['id']===_0x137748['id']&&_0xb892cf[_0x10905f(0x364)][_0x10905f(0xe5)]===this[_0x10905f(0x1f3)]){const _0x4894b5=_0xb892cf[_0x10905f(0x364)];this[_0x10905f(0x252)](_0x4894b5[_0x10905f(0x213)],_0x4894b5['selections'][0x0]);}})));}[_0x4c1f23(0x106)](_0x2e6aee){const _0x5b2b0b=_0x4c1f23;var _0x7187b,_0xea928e;const {memberID:_0x381bed,selection:_0x475f1f}=_0x2e6aee[_0x5b2b0b(0x339)],{sheetName:_0x394ea4,range:_0x1c4a03}=_0x2363ba(_0x475f1f),_0x39812b={'name':(_0xea928e=(_0x7187b=this[_0x5b2b0b(0x2ed)]['getMember'](this[_0x5b2b0b(0x1f3)],_0x381bed))==null?void 0x0:_0x7187b['name'])!=null?_0xea928e:_0x5b2b0b(0x33a),'range':this[_0x5b2b0b(0x9d)](_0x394ea4,_0x1c4a03),'sheetID':_0x394ea4,'color':this[_0x5b2b0b(0x271)][_0x5b2b0b(0x22b)](_0x381bed),'selection':_0x475f1f},_0x3f742d=this[_0x5b2b0b(0x2b8)];_0x3f742d[_0x5b2b0b(0x329)](_0x381bed,_0x39812b),this[_0x5b2b0b(0x1cf)][_0x5b2b0b(0x23d)](_0x3f742d);}[_0x4c1f23(0x2d3)](_0x14dc15){const _0x4022b9=_0x4c1f23,{memberID:_0x175231}=_0x14dc15[_0x4022b9(0x339)],_0x5e922b=this[_0x4022b9(0x2b8)];_0x5e922b[_0x4022b9(0xd0)](_0x175231),this[_0x4022b9(0x1cf)]['next'](_0x5e922b);}['_getMergeRange'](_0xe207f1,_0xc7d771){const _0x56ac9e=_0x4c1f23;var _0x4c6ba8,_0x353d73;const _0x35cdf5=(_0x353d73=(_0x4c6ba8=this[_0x56ac9e(0x310)][_0x56ac9e(0x11b)](this[_0x56ac9e(0x1f3)]))==null?void 0x0:_0x4c6ba8[_0x56ac9e(0x77)](_0xe207f1))==null?void 0x0:_0x353d73['getMergeData']();return(_0x35cdf5==null?void 0x0:_0x35cdf5[_0x56ac9e(0xef)](_0xe11c55=>_0x31476b['contains'](_0xe11c55,_0xc7d771)))||_0xc7d771;}['_onRefRangeChange'](){const _0x440745=_0x4c1f23,_0x524e31=new _0x242419(),_0x2df8a0=yr(),_0xd142ff=()=>{const _0x5e6116=_0x4c7d;_0x524e31[_0x5e6116(0x1e4)]();const _0x45b39d=(_0x15be8c,_0x599ae8,_0x43839e,_0x2eaa8c)=>{const _0xe747c6=_0x5e6116;let _0x5461b3=[];switch(_0x15be8c['id']){case _0x5bd706[_0xe747c6(0x2ab)]:{_0x5461b3=_0x28d514(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x18d)]:{_0x5461b3=_0x362d52(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x317)]:{_0x5461b3=_0xb9b59c(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x28c)]:{_0x5461b3=_0x40cb3b(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x3c0)]:{_0x5461b3=_0x2d766e(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0xd1)]:{_0x5461b3=_0x4c71a9(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x9f)]:{_0x5461b3=_0x104260(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x215)]:{_0x5461b3=_0x5ebff0(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x2cb)]:{_0x5461b3=_0x37d328(_0x15be8c,_0x2eaa8c);break;}}const _0x4eaf58=_0x12db35(_0x5461b3,_0x2eaa8c),_0x125c6b=this['cursorInfo'][_0xe747c6(0x348)](_0x599ae8);if(_0x125c6b&&_0x4eaf58){const _0x1050b6={..._0x125c6b,'range':_0x4eaf58};this['cursorInfo'][_0xe747c6(0x329)](_0x599ae8,_0x1050b6),_0x2df8a0(()=>{const _0x24e5e4=_0xe747c6,_0x53ca10=this[_0x24e5e4(0x179)]['registerRefRange'](_0x4eaf58,_0x549284=>(_0x53ca10[_0x24e5e4(0x1e4)](),_0x45b39d(_0x549284,_0x599ae8,_0x43839e,_0x4eaf58)));_0x524e31['add'](_0x53ca10);});}return{'redos':[],'undos':[]};};this[_0x5e6116(0x2b8)][_0x5e6116(0x100)]((_0x1c1400,_0x53c5e5)=>{const _0x2075a2=_0x5e6116,{range:_0x535017,sheetID:_0x300d0f}=_0x1c1400,_0x142ad9=this[_0x2075a2(0x179)][_0x2075a2(0x288)](_0x535017,_0x2098e0=>(_0x142ad9[_0x2075a2(0x1e4)](),_0x45b39d(_0x2098e0,_0x53c5e5,_0x300d0f,_0x535017)));_0x524e31[_0x2075a2(0x2fb)](_0x142ad9);});};this[_0x440745(0x248)](_0x5738c2(this[_0x440745(0x1cf)]['subscribe'](()=>{_0xd142ff();})));}['_toggleOnline'](){const _0x2a226f=_0x4c1f23;var _0x8d31d7,_0x36bb1d;if(this[_0x2a226f(0x25b)]=!0x0,((_0x8d31d7=this[_0x2a226f(0x310)][_0x2a226f(0x204)]())==null?void 0x0:_0x8d31d7[_0x2a226f(0x34e)]())!==this[_0x2a226f(0x1f3)])return;const _0x31cf76=(_0x36bb1d=this['_injector']['get'](_0x152281)[_0x2a226f(0x84)]())==null?void 0x0:_0x36bb1d[0x0],_0xbb6452=this['_univerInstanceService']['getCurrentUnitForType'](_0x4c91c9[_0x2a226f(0x10d)])['getActiveSheet']();_0x31cf76&&_0xbb6452&&this[_0x2a226f(0x252)](_0xbb6452[_0x2a226f(0x1a9)](),_0x31cf76);}[_0x4c1f23(0xe8)](){const _0x10bfed=_0x4c1f23;this[_0x10bfed(0x25b)]=!0x1;}};Ot=Dr([fe(0x2,_0x321449(_0x313fa0)),fe(0x3,_0x321449(Ft)),fe(0x4,_0x321449(ae)),fe(0x5,_0x375068),fe(0x6,_0x265863),fe(0x7,_0x321449(_0x70f3a6))],Ot);var Nr=Object[_0x4c1f23(0x2e9)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x28bb23,_0x4a41dd,_0x20c7bc,_0x56c9f2)=>{const _0x3698ae=_0x4c1f23;for(var _0x1d22d4=_0x56c9f2>0x1?void 0x0:_0x56c9f2?Ur(_0x4a41dd,_0x20c7bc):_0x4a41dd,_0x20fd80=_0x28bb23[_0x3698ae(0x78)]-0x1,_0x38fe8f;_0x20fd80>=0x0;_0x20fd80--)(_0x38fe8f=_0x28bb23[_0x20fd80])&&(_0x1d22d4=(_0x56c9f2?_0x38fe8f(_0x4a41dd,_0x20c7bc,_0x1d22d4):_0x38fe8f(_0x1d22d4))||_0x1d22d4);return _0x56c9f2&&_0x1d22d4&&Nr(_0x4a41dd,_0x20c7bc,_0x1d22d4),_0x1d22d4;},_t=(_0x32faf9,_0x11aba7)=>(_0x4cc2f5,_0x40d238)=>_0x11aba7(_0x4cc2f5,_0x40d238,_0x32faf9);let pe=class extends _0x2dacfb{constructor(_0x27af0a,_0x243979,_0x536f5d){const _0x3f3887=_0x4c1f23;super(),l(this,'_entities',new Map()),l(this,_0x3f3887(0x29f),new _0xacaad6()),(this[_0x3f3887(0x310)]=_0x27af0a,this[_0x3f3887(0x162)]=_0x243979,this['_collabSessionService']=_0x536f5d,this[_0x3f3887(0x34a)]());}['dispose'](){const _0x27b095=_0x4c1f23;super['dispose'](),this[_0x27b095(0x29f)][_0x27b095(0x2c4)](),this[_0x27b095(0xac)][_0x27b095(0x100)](_0xe4ea25=>_0xe4ea25[_0x27b095(0x1e4)]());}['getCollabCursors$'](_0x76897c){const _0x3104a6=_0x4c1f23;return this[_0x3104a6(0xac)][_0x3104a6(0x20e)](_0x76897c)?this['_entities'][_0x3104a6(0x348)](_0x76897c)[_0x3104a6(0x37c)]:this[_0x3104a6(0x29f)][_0x3104a6(0x1a7)](_0x4c7e5a(_0x13afb7=>_0x13afb7['unitID']===_0x76897c),_0x4e9858(_0xcf11f=>_0xcf11f['cursorInfo$']));}[_0x4c1f23(0x34a)](){const _0x40b43e=_0x4c1f23;this[_0x40b43e(0x310)][_0x40b43e(0x3f7)](_0x4c91c9['UNIVER_SHEET'])['pipe'](_0x289d57(this[_0x40b43e(0x265)]))['subscribe'](async _0x973300=>{const _0x48e541=_0x40b43e,_0x35c5bb=_0x973300[_0x48e541(0x34e)](),_0x70c101=await this[_0x48e541(0x358)](_0x35c5bb);this[_0x48e541(0x29f)]['next'](_0x70c101),this[_0x48e541(0xac)][_0x48e541(0x329)](_0x35c5bb,_0x70c101);}),this['_univerInstanceService'][_0x40b43e(0x3f7)](_0x4c91c9[_0x40b43e(0x11d)])[_0x40b43e(0x1a7)](_0x289d57(this[_0x40b43e(0x265)]))['pipe'](_0x4c7e5a(_0x1f4455=>!_0x1f4455[_0x40b43e(0x34e)]()[_0x40b43e(0x270)]('__')))[_0x40b43e(0x280)](async _0x3f0794=>{const _0x31f37c=_0x40b43e,_0x22ba29=_0x3f0794['getUnitId'](),_0x5375b9=await this[_0x31f37c(0x159)](_0x22ba29);this[_0x31f37c(0x29f)][_0x31f37c(0x23d)](_0x5375b9),this[_0x31f37c(0xac)][_0x31f37c(0x329)](_0x22ba29,_0x5375b9);}),_0x5de0ce(this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x11d)]),this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x10d)]))['pipe'](_0x289d57(this[_0x40b43e(0x265)]))[_0x40b43e(0x280)](_0x2e517e=>{const _0x210b65=_0x40b43e,_0xa7b8dc=_0x2e517e[_0x210b65(0x34e)](),_0x42511b=this[_0x210b65(0xac)][_0x210b65(0x348)](_0xa7b8dc);_0x42511b&&(_0x42511b[_0x210b65(0x1e4)](),this[_0x210b65(0xac)][_0x210b65(0xd0)](_0xa7b8dc));});}async['_startSheetCollabCursor'](_0xae3be5){const _0x4c1b5e=_0x4c1f23,_0x24372c=await this[_0x4c1b5e(0x1e1)][_0x4c1b5e(0x2ec)](_0xae3be5),_0x5cdf84=this[_0x4c1b5e(0x162)][_0x4c1b5e(0x171)](Ot,_0xae3be5,_0x24372c);return _0x5cdf84[_0x4c1b5e(0x1ba)](),_0x5cdf84;}async['_startDocCollabCursor'](_0x514661){const _0x241722=_0x4c1f23,_0x4e61a1=await this[_0x241722(0x1e1)][_0x241722(0x2ec)](_0x514661),_0x29e735=this['_injector'][_0x241722(0x171)](Rt,_0x514661,_0x4e61a1);return _0x29e735[_0x241722(0x1ba)](),_0x29e735;}};pe=Mr([_t(0x0,_0x375068),_t(0x1,_0x321449(_0x313fa0)),_t(0x2,_0x321449(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x13801e,_0x3e27e){const _0x2fdc25=_0x4c1f23;let {radius:_0x36fa40,width:_0x440574,height:_0x1bda39}=_0x3e27e;_0x36fa40=_0x36fa40!=null?_0x36fa40:0x0,_0x440574=_0x440574!=null?_0x440574:0x1e,_0x1bda39=_0x1bda39!=null?_0x1bda39:0x1e;let _0x234fa2=0x0,_0x1e02ca=0x0,_0x34c555=0x0;_0x234fa2=_0x1e02ca=_0x34c555=Math['min'](_0x36fa40,_0x440574/0x2,_0x1bda39/0x2),_0x13801e['beginPath'](),_0x13801e[_0x2fdc25(0x26d)](_0x234fa2,0x0),_0x13801e[_0x2fdc25(0x1d0)](_0x440574-_0x1e02ca,0x0),_0x13801e['arc'](_0x440574-_0x1e02ca,_0x1e02ca,_0x1e02ca,Math['PI']*0x3/0x2,0x0,!0x1),_0x13801e['lineTo'](_0x440574,_0x1bda39-_0x34c555),_0x13801e['arc'](_0x440574-_0x34c555,_0x1bda39-_0x34c555,_0x34c555,0x0,Math['PI']/0x2,!0x1),_0x13801e[_0x2fdc25(0x1d0)](0x0,_0x1bda39),_0x13801e['lineTo'](0x0,_0x234fa2),_0x13801e[_0x2fdc25(0x325)](_0x234fa2,_0x234fa2,_0x234fa2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13801e[_0x2fdc25(0x247)](),_0x3e27e['fill']&&(_0x13801e[_0x2fdc25(0x149)](),_0x13801e[_0x2fdc25(0x22c)]=_0x3e27e[_0x2fdc25(0x291)],_0x3e27e['fillRule']===_0x2fdc25(0x323)?_0x13801e[_0x2fdc25(0x291)](_0x2fdc25(0x323)):_0x13801e[_0x2fdc25(0x291)](),_0x13801e[_0x2fdc25(0x9a)]());}class st extends _0xca1f86{constructor(_0x2dc32b,_0x3d6d4c){const _0x103f80=_0x4c1f23;super(_0x2dc32b,_0x3d6d4c),l(this,_0x103f80(0x30d)),l(this,_0x103f80(0x30c)),(this[_0x103f80(0x30d)]=_0x3d6d4c==null?void 0x0:_0x3d6d4c['color'],this['text']=_0x3d6d4c==null?void 0x0:_0x3d6d4c[_0x103f80(0x30c)]);}static[_0x4c1f23(0x1f2)](_0x5748d6,_0x2dba9e){const _0x3e4bc=_0x4c1f23,{text:_0x4604f8,color:_0x1af701}=_0x2dba9e;_0x5748d6['save'](),_0x5748d6[_0x3e4bc(0xd4)]=_0x3e4bc(0x146);const _0x13c8cc=_0x5748d6[_0x3e4bc(0x23e)](_0x4604f8)[_0x3e4bc(0x321)],_0x56aeb6=Math[_0x3e4bc(0x38f)](_0x13c8cc+0x2*ut,us);Lr(_0x5748d6,{'height':Le,'radius':0x4,'width':_0x56aeb6,'fill':_0x1af701,'evented':!0x1}),_0x5748d6[_0x3e4bc(0x22c)]=_0x3e4bc(0x26f);const _0x23c730=ut,_0x347005=Le-Ar,_0x19239f=us-0x2*ut;if(_0x13c8cc>_0x19239f){let _0x150d6f='',_0x523cc3=0x0;for(const _0xf7196b of _0x4604f8){const _0x50aeee=_0x5748d6[_0x3e4bc(0x23e)](_0xf7196b)[_0x3e4bc(0x321)];if(_0x523cc3+_0x50aeee<=_0x19239f-_0x5748d6[_0x3e4bc(0x23e)](_0x3e4bc(0x3b4))['width'])_0x150d6f+=_0xf7196b,_0x523cc3+=_0x50aeee;else{_0x150d6f+='...';break;}}_0x5748d6[_0x3e4bc(0x263)](_0x150d6f,_0x23c730,_0x347005);}else _0x5748d6[_0x3e4bc(0x263)](_0x4604f8,_0x23c730,_0x347005);_0x5748d6[_0x3e4bc(0x9a)]();}[_0x4c1f23(0x33c)](_0x4f7659){const _0xe709b=_0x4c1f23;st[_0xe709b(0x1f2)](_0x4f7659,this);}}const dt=_0x4c1f23(0x229),$r=_0x4c1f23(0x7d),jr=_0x4c1f23(0x299),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x4c1f23(0x80);class ds{constructor(_0x5ee52c,_0xce05fa,_0xa7288f,_0x2300d2){const _0x553e30=_0x4c1f23;l(this,_0x553e30(0xa4),[]),l(this,_0x553e30(0x277),null),l(this,_0x553e30(0x3bf),null),l(this,'_anchorDot',null),l(this,_0x553e30(0x1a3),null),l(this,'_eventUnsubscribe',null),(this[_0x553e30(0xa7)]=_0x5ee52c,this[_0x553e30(0xcf)]=_0xce05fa,this[_0x553e30(0x394)]=_0xa7288f,this[_0x553e30(0x300)]=_0x2300d2,this['_render']());}set[_0x4c1f23(0xc0)](_0x55652a){const _0x172dce=_0x4c1f23;_0x55652a?(this[_0x172dce(0xc9)]&&this[_0x172dce(0xc9)]['hide'](),this[_0x172dce(0x3bf)]&&this['_textBubble'][_0x172dce(0x160)]()):(this[_0x172dce(0xc9)]&&this['_anchorDot'][_0x172dce(0x160)](),this['_textBubble']&&this[_0x172dce(0x3bf)][_0x172dce(0x1e5)]());}[_0x4c1f23(0x1e4)](){const _0x3fdeb9=_0x4c1f23;for(const _0x408d4c of this[_0x3fdeb9(0xa4)])_0x408d4c[_0x3fdeb9(0x1e4)]();this[_0x3fdeb9(0x3bf)]&&this['_textBubble'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0xc9)]&&this['_anchorDot'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0x277)]&&this[_0x3fdeb9(0x277)]['dispose'](),this[_0x3fdeb9(0x3a6)]&&this[_0x3fdeb9(0x3a6)]();}[_0x4c1f23(0x208)](){const _0xb6cd2f=_0x4c1f23;var _0x305379;const {_docSkeleton:_0x4dd00b,_document:_0x216acb}=this,{color:_0xc90da5,name:_0x33ecc7,ranges:_0x17507c}=this['_cursor'],_0x2ffac9=_0x216acb[_0xb6cd2f(0x1d6)](),{docsLeft:_0x2d15bf,docsTop:_0xcbc7e1}=_0x2ffac9,_0xee16c8=new _0x2b89f0(_0x2ffac9,_0x4dd00b);for(const {startOffset:_0xf51d1,endOffset:_0x3e6bfd,collapsed:_0x33cef3,isActive:_0x39e887}of _0x17507c){const _0x2b7fd5=_0x4dd00b[_0xb6cd2f(0x205)](_0xf51d1),_0x98511=_0x4dd00b['findNodePositionByCharIndex'](_0x3e6bfd);if(_0x39e887){const {contentBoxPointGroup:_0x10eea9}=_0xee16c8['getRangePointData'](_0x98511,_0x98511);if(_0x10eea9[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x11e)](_0xc90da5,_0x10eea9,_0x2d15bf,_0xcbc7e1,_0x33ecc7),this[_0xb6cd2f(0x3a6)]=this[_0xb6cd2f(0x21f)]();}if(!_0x33cef3&&_0x2b7fd5&&_0x98511){if(_0x53f2b8(_0x2b7fd5,_0x98511)){const _0x10cf23=new _0x459c36(_0x2ffac9,_0x4dd00b),{pointGroup:_0x16a61d}=(_0x305379=_0x10cf23[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511))!=null?_0x305379:{};if(_0x16a61d==null||_0x16a61d[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x1b5)](_0xc90da5,_0x16a61d,_0x2d15bf,_0xcbc7e1);}else{const {contentBoxPointGroup:_0x35a7d1}=_0xee16c8[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511);if(_0x35a7d1[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x9b)](_0xc90da5,_0x35a7d1,_0x2d15bf,_0xcbc7e1);}}}}['_drawAnchor'](_0x56f301,_0x229d53,_0x5932c4,_0x1e54d9,_0x3bba9b){const _0x36c150=_0x4c1f23,_0x4f9e18=this[_0x36c150(0x2e0)](_0x229d53),{left:_0x4b1449,top:_0x1527d0,height:_0x1c9932}=_0x4f9e18,_0x21da14=this['_getScale'](),_0x43ed25=Hr/_0x21da14,_0xad405=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9,'height':_0x1c9932,'width':xr,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':_0x43ed25,'stroke':kr,'evented':!0x0});this[_0x36c150(0x277)]=_0xad405,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0xad405,_0x1c10b5);const _0x2cf4dc=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-ft/0x2,'height':ft,'width':ft,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':0x0,'stroke':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'evented':!0x1});this[_0x36c150(0xc9)]=_0x2cf4dc,this[_0x36c150(0xcf)]['addObject'](_0x2cf4dc,_0x1c10b5);const _0x2cfd87=new st(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-Le,'text':_0x3bba9b,'color':_0x56f301});this[_0x36c150(0x3bf)]=_0x2cfd87,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0x2cfd87,_0x1c10b5),this['_hover']=!0x1;}[_0x4c1f23(0x21f)](){const _0x3555dc=_0x4c1f23,_0x407e04=this[_0x3555dc(0x277)][_0x3555dc(0x234)][_0x3555dc(0x14b)](()=>{const _0x1a676a=_0x3555dc;this[_0x1a676a(0xc0)]=!0x0;}),_0x34602e=this['_anchor']['onPointerLeave$'][_0x3555dc(0x14b)](()=>{const _0x4b498a=_0x3555dc;this['_hideTimer']&&clearTimeout(this[_0x4b498a(0x1a3)]),this[_0x4b498a(0x1a3)]=setTimeout(()=>{const _0x2c9449=_0x4b498a;this[_0x2c9449(0xc0)]=!0x1;},0x7d0);});return()=>{const _0x17d79c=_0x3555dc;_0x407e04[_0x17d79c(0x15e)](),_0x34602e[_0x17d79c(0x15e)]();};}['_drawTextRange'](_0x3ede80,_0x3e3861,_0x4dab63,_0x3a625f){const _0x3634ce=_0x4c1f23,_0x4ab1c0=new _0x3fd1db(_0x3ede80)['setAlpha'](0.2)[_0x3634ce(0x2d9)](),_0x135542=new _0x28ffa0($r+_0x403f58[_0x3634ce(0xf0)](De),{'pointsGroup':_0x3e3861,'fill':_0x4ab1c0||_0x17a368(_0x3ca793[_0x3634ce(0x7a)],0.2),'left':_0x4dab63,'top':_0x3a625f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3634ce(0xa4)]['push'](_0x135542),this['_scene'][_0x3634ce(0x381)](_0x135542,_0x1c10b5);}[_0x4c1f23(0x1b5)](_0x353a18,_0x15a729,_0x4910db,_0x527840){const _0x15b1b4=_0x4c1f23,_0x3a4d26=new _0x3fd1db(_0x353a18)[_0x15b1b4(0x338)](0.2)['toRgbString'](),_0x1a869d=new _0x28ffa0(jr+_0x403f58[_0x15b1b4(0xf0)](De),{'pointsGroup':_0x15a729,'fill':_0x3a4d26||_0x17a368(_0x3ca793['black'],0.2),'left':_0x4910db,'top':_0x527840,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15b1b4(0xa4)][_0x15b1b4(0x27c)](_0x1a869d),this['_scene'][_0x15b1b4(0x381)](_0x1a869d,_0x1c10b5);}['_getAnchorBounding'](_0x1ac26b){const _0x356f95=_0x1ac26b[0x0],_0x40ea84=_0x356f95[0x0],_0x101e81=_0x356f95[0x2],{x:_0x4780cd,y:_0x25cd97}=_0x40ea84,{x:_0x2eef57,y:_0x34c904}=_0x101e81;return{'left':_0x4780cd,'top':_0x25cd97,'width':_0x2eef57-_0x4780cd,'height':_0x34c904-_0x25cd97};}['_getScale'](){const _0x3790d7=_0x4c1f23,{scaleX:_0x26bc9d,scaleY:_0x19009f}=this['_scene'][_0x3790d7(0xcc)]();return Math['max'](_0x26bc9d,_0x19009f);}}var Br=Object[_0x4c1f23(0x2e9)],Vr=Object[_0x4c1f23(0x133)],Fr=(_0x200eb9,_0x482ba2,_0x517d4f,_0x3aed1c)=>{const _0x3443db=_0x4c1f23;for(var _0x35826e=_0x3aed1c>0x1?void 0x0:_0x3aed1c?Vr(_0x482ba2,_0x517d4f):_0x482ba2,_0x5b5bbd=_0x200eb9[_0x3443db(0x78)]-0x1,_0x3ed591;_0x5b5bbd>=0x0;_0x5b5bbd--)(_0x3ed591=_0x200eb9[_0x5b5bbd])&&(_0x35826e=(_0x3aed1c?_0x3ed591(_0x482ba2,_0x517d4f,_0x35826e):_0x3ed591(_0x35826e))||_0x35826e);return _0x3aed1c&&_0x35826e&&Br(_0x482ba2,_0x517d4f,_0x35826e),_0x35826e;},xe=(_0x5e455d,_0x14719a)=>(_0x324b1e,_0x3197fc)=>_0x14719a(_0x324b1e,_0x3197fc,_0x5e455d);let Dt=class extends _0x2dacfb{constructor(_0x24086d,_0x150979,_0x31295b,_0x14690a,_0x2909fd){const _0x498d64=_0x4c1f23;super(),l(this,_0x498d64(0x262),[]),l(this,_0x498d64(0x232),[]),(this[_0x498d64(0x308)]=_0x24086d,this[_0x498d64(0x169)]=_0x150979,this[_0x498d64(0x3a3)]=_0x31295b,this[_0x498d64(0x1ef)]=_0x14690a,this[_0x498d64(0x2c8)]=_0x2909fd,this['_init']());}[_0x4c1f23(0x34a)](){const _0x1f5fbd=_0x4c1f23,_0x2378d2=this[_0x1f5fbd(0x308)]['unitId'],_0x2bc286=this[_0x1f5fbd(0x169)];this['disposeWithMe'](_0x4fd693([this[_0x1f5fbd(0x3a3)][_0x1f5fbd(0x320)](_0x2378d2),this['_themeService']['currentTheme$']])[_0x1f5fbd(0x1a7)](_0x3d528e(([_0xd63552,_0x2362ab])=>({'skeleton':_0x2bc286[_0x1f5fbd(0x37b)](),'cursors':[..._0xd63552['values']()]['flatMap'](_0x14bf13=>({..._0x14bf13,'color':_0x2362ab[_0x14bf13['color']]}))})))[_0x1f5fbd(0x280)](_0x478152=>{if(this['_removeCollabCursors'](),_0x478152){const {skeleton:_0x29a106,cursors:_0x8a54a5}=_0x478152;this['_updateCollabCursors'](_0x29a106,_0x8a54a5);}})),this[_0x1f5fbd(0x223)](),this[_0x1f5fbd(0x3f2)]();}['_updateCollabCursors'](_0x152c8b,_0x41c1b5){const _0x3ab880=_0x4c1f23,{scene:_0x1237a2,mainComponent:_0xd3c349}=this['_context'],_0xca0a74=_0x41c1b5[_0x3ab880(0x17d)](_0x25f661=>new ds(_0x25f661,_0x1237a2,_0x152c8b,_0xd3c349));this[_0x3ab880(0x262)]=_0xca0a74,this[_0x3ab880(0x232)]=_0x41c1b5;}['_refreshCollabCursors'](){const _0x5577e2=_0x4c1f23;this[_0x5577e2(0xe6)]();const {scene:_0x2e6763,mainComponent:_0x252e73}=this[_0x5577e2(0x308)],_0xbcf349=this['_docSkeletonManagerService'][_0x5577e2(0x37b)](),_0x3faf01=this[_0x5577e2(0x232)][_0x5577e2(0x17d)](_0x4a1b1b=>new ds(_0x4a1b1b,_0x2e6763,_0xbcf349,_0x252e73));this[_0x5577e2(0x262)]=_0x3faf01;}[_0x4c1f23(0xe6)](){const _0xef0acb=_0x4c1f23;this[_0xef0acb(0x262)][_0xef0acb(0x100)](_0x3a6273=>_0x3a6273[_0xef0acb(0x1e4)]()),this[_0xef0acb(0x262)]=[];}[_0x4c1f23(0x3f2)](){const _0x59d017=_0x4c1f23,_0x1c6fba=[_0xd8bdfb['id']];this[_0x59d017(0x248)](this[_0x59d017(0x1ef)][_0x59d017(0x168)](_0x27e53d=>{const _0x4be4a6=_0x59d017;_0x1c6fba[_0x4be4a6(0x116)](_0x27e53d['id'])&&_0x27e53d[_0x4be4a6(0x364)][_0x4be4a6(0xe5)]===this['_context'][_0x4be4a6(0xe5)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0xa126e=_0x4c1f23;this['disposeWithMe'](_0x46c56e(this[_0xa126e(0x308)][_0xa126e(0x1e3)][_0xa126e(0x120)])['pipe'](_0x1f1135(_0x1edec3=>_0x1edec3[_0xa126e(0x1d3)]===_0x58f61e[_0xa126e(0x150)]),_0x4ac9c9(0x10))[_0xa126e(0x280)](()=>{const _0x10e50a=_0xa126e;this[_0x10e50a(0x25d)]();}));}};Dt=Fr([xe(0x1,_0x321449(_0x5e9e87)),xe(0x2,_0x321449(pe)),xe(0x3,_0x265863),xe(0x4,_0x321449(_0x6f1691))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0xca1f86{constructor(_0x41a825,_0x7ca72d){const _0x1232fb=_0x4c1f23;super(_0x41a825,_0x7ca72d),l(this,_0x1232fb(0x2da)),l(this,'_hovered',!0x1),l(this,'_range'),l(this,_0x1232fb(0x3e3),''),l(this,_0x1232fb(0x393),_0x1232fb(0x302)),l(this,_0x1232fb(0x2b5)),(_0x7ca72d&&this[_0x1232fb(0x1fb)](_0x7ca72d),this[_0x1232fb(0x234)][_0x1232fb(0x14b)](()=>this[_0x1232fb(0x1fb)]({'hovered':!0x0})),this[_0x1232fb(0x25a)][_0x1232fb(0x14b)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3e24dd){const _0xd903df=_0x4c1f23;var _0x3c0e66,_0x170569,_0x4094b3,_0x29c08f,_0x42035c,_0x24f31c;this[_0xd903df(0x2da)]=(_0x3c0e66=_0x3e24dd['color'])!=null?_0x3c0e66:this[_0xd903df(0x2da)],this[_0xd903df(0x203)]=(_0x170569=_0x3e24dd[_0xd903df(0x26e)])!=null?_0x170569:this[_0xd903df(0x203)],this[_0xd903df(0x1a5)]=(_0x4094b3=_0x3e24dd['range'])!=null?_0x4094b3:this[_0xd903df(0x1a5)],this[_0xd903df(0x3e3)]=(_0x29c08f=_0x3e24dd[_0xd903df(0x124)])!=null?_0x29c08f:this['_name'],this['_labelPosition']=(_0x42035c=_0x3e24dd[_0xd903df(0x2bb)])!=null?_0x42035c:this['_labelPosition'],this[_0xd903df(0x2b5)]=(_0x24f31c=_0x3e24dd['backgroundColor'])!=null?_0x24f31c:this[_0xd903df(0x2b5)],this['transformByState']({'width':_0x3e24dd[_0xd903df(0x321)],'height':_0x3e24dd[_0xd903df(0x305)]});}[_0x4c1f23(0x3da)](_0x2308d7){const _0x54562a=_0x4c1f23,{row:_0x439db8,column:_0x3393fb}=_0x2308d7;if(_0x439db8>=this['_range'][_0x54562a(0x330)]&&_0x439db8<=this[_0x54562a(0x1a5)][_0x54562a(0x21a)]&&_0x3393fb>=this[_0x54562a(0x1a5)][_0x54562a(0x2fa)]&&_0x3393fb<=this[_0x54562a(0x1a5)][_0x54562a(0x272)]){this[_0x54562a(0x1fb)]({'hovered':!0x0});return;}this[_0x54562a(0x1fb)]({'hovered':!0x1});}[_0x4c1f23(0x3b5)](_0x52bb9e){return!0x1;}[_0x4c1f23(0x33c)](_0x5dd87b){const _0x4c2cdb=_0x4c1f23;_0x3a075a[_0x4c2cdb(0x1f2)](_0x5dd87b,{'width':this[_0x4c2cdb(0x321)],'height':this[_0x4c2cdb(0x305)],'strokeWidth':Gr,'stroke':this[_0x4c2cdb(0x2da)],'evented':!0x1,'fill':this[_0x4c2cdb(0x2b5)]}),this[_0x4c2cdb(0x203)]&&(_0x5dd87b[_0x4c2cdb(0x149)](),_0x5dd87b['transform'](0x1,0x0,0x0,0x1,this[_0x4c2cdb(0x321)],this[_0x4c2cdb(0x393)]==='bottom'?0x0:-Le),st['drawWith'](_0x5dd87b,{'text':this[_0x4c2cdb(0x3e3)],'color':this[_0x4c2cdb(0x2da)]}),_0x5dd87b[_0x4c2cdb(0x9a)]());}}var Kr=Object[_0x4c1f23(0x2e9)],Xr=Object[_0x4c1f23(0x133)],Jr=(_0xcaf088,_0x4c2798,_0x2e3e30,_0x1f66d1)=>{const _0xcd1366=_0x4c1f23;for(var _0x66997d=_0x1f66d1>0x1?void 0x0:_0x1f66d1?Xr(_0x4c2798,_0x2e3e30):_0x4c2798,_0x2faebc=_0xcaf088[_0xcd1366(0x78)]-0x1,_0x2d475c;_0x2faebc>=0x0;_0x2faebc--)(_0x2d475c=_0xcaf088[_0x2faebc])&&(_0x66997d=(_0x1f66d1?_0x2d475c(_0x4c2798,_0x2e3e30,_0x66997d):_0x2d475c(_0x66997d))||_0x66997d);return _0x1f66d1&&_0x66997d&&Kr(_0x4c2798,_0x2e3e30,_0x66997d),_0x66997d;},mt=(_0x25e0be,_0x4ad16f)=>(_0x3cea73,_0x51157c)=>_0x4ad16f(_0x3cea73,_0x51157c,_0x25e0be);const qr=0x1389;let wt=class extends _0x2dacfb{constructor(_0xb7d4a6,_0x23ee50,_0x2c50c3,_0x3a5123){const _0xd95751=_0x4c1f23;super(),l(this,_0xd95751(0x232),new Set()),l(this,_0xd95751(0x27a),null),(this[_0xd95751(0x308)]=_0xb7d4a6,this[_0xd95751(0x2b9)]=_0x23ee50,this['_collabCursorController']=_0x2c50c3,this[_0xd95751(0x2c8)]=_0x3a5123,this['_init']());}['_init'](){const _0x5c5454=_0x4c1f23;this['_sheetSkeletonManagerService'][_0x5c5454(0x2af)][_0x5c5454(0x1a7)](_0x3ae8cf(this[_0x5c5454(0x265)]),_0x59e45c(_0x526bc2=>{const _0x10007a=_0x5c5454;if(_0x526bc2){const _0x92c611=_0x526bc2[_0x10007a(0x243)];return _0x4fd693(this[_0x10007a(0x3a3)][_0x10007a(0x320)](this[_0x10007a(0x308)][_0x10007a(0xe5)]),this[_0x10007a(0x2c8)][_0x10007a(0x283)])['pipe'](_0x3d528e(([_0x4c28f6,_0x271529])=>{const _0x4fe5f2=new Map();return _0x4c28f6['forEach']((_0x366565,_0x3f7e98)=>{const _0x3d6644=_0x4c7d;if(_0x366565[_0x3d6644(0x10a)]===_0x92c611){const _0x3aa598={..._0x366565};_0x3aa598[_0x3d6644(0x30d)]=_0x271529[_0x366565[_0x3d6644(0x30d)]],_0x4fe5f2[_0x3d6644(0x329)](_0x3f7e98,_0x3aa598);}}),{'skeleton':_0x526bc2,'cursors':_0x4fe5f2};}));}return _0x570d55({'skeleton':null,'cursors':new Map()});}))[_0x5c5454(0x280)](({skeleton:_0x4ae99c,cursors:_0x263165})=>{const _0x25b2cc=_0x5c5454;this['_removeCollabCursors'](),_0x4ae99c&&this[_0x25b2cc(0xab)](_0x4ae99c,_0x263165);}),this[_0x5c5454(0x2b9)][_0x5c5454(0x2af)][_0x5c5454(0x280)](_0x521d75=>{const _0x178c7d=_0x5c5454;if(_0x521d75==null)return;const {skeleton:_0xd51fd2}=_0x521d75,{scene:_0x218b5d}=this['_context'];_0x218b5d[_0x178c7d(0x2f4)][_0x178c7d(0x14b)](_0x1b3960(_0x36c8b4=>{const _0xc244a7=_0x178c7d;var _0x672c8f,_0x293fd2;const {offsetX:_0xbb4ed2,offsetY:_0x116c64}=_0x36c8b4,{x:_0x24c9c4,y:_0x2ceb59}=_0x218b5d[_0xc244a7(0xd6)](_0x3b739f['FromArray']([_0xbb4ed2,_0x116c64])),{scaleX:_0x2831d5,scaleY:_0x3f2a4d}=_0x218b5d[_0xc244a7(0xcc)](),_0x15a40e=_0x218b5d[_0xc244a7(0x7c)](_0x14e392['VIEW_MAIN']),_0x5eb3e4=_0x218b5d['getVpScrollXYInfoByPosToVp'](_0x3b739f[_0xc244a7(0x2c1)]([_0x24c9c4,_0x2ceb59]),_0x15a40e),_0x475e62=_0xd51fd2[_0xc244a7(0x12c)](_0xbb4ed2,_0x116c64,_0x2831d5,_0x3f2a4d,_0x5eb3e4);((_0x672c8f=this['_lastPointer'])==null?void 0x0:_0x672c8f[_0xc244a7(0x97)])===_0x475e62['column']&&((_0x293fd2=this[_0xc244a7(0x27a)])==null?void 0x0:_0x293fd2[_0xc244a7(0x2ba)])===_0x475e62[_0xc244a7(0x2ba)]||this['_cursors'][_0xc244a7(0x100)](_0x408f78=>{const _0x4687f8=_0xc244a7;_0x408f78[_0x4687f8(0x3da)](_0x475e62);});},0x64));});}[_0x4c1f23(0xab)](_0x1b126f,_0xf3f0ad){const _0x5aadab=_0x4c1f23;var _0x12d946;const _0x22109a=(_0x12d946=this['_sheetSkeletonManagerService'][_0x5aadab(0x1f1)]())==null?void 0x0:_0x12d946[_0x5aadab(0x10b)];if(!_0x22109a)return;const _0x37bb38=this[_0x5aadab(0x176)]();if(!_0x37bb38)return;this[_0x5aadab(0x232)]['forEach'](_0x1bd30a=>{_0x1bd30a['makeDirty']();});const {scene:_0x56c6c2}=_0x37bb38,_0x1a213f=zr(Array['from'](_0xf3f0ad['values']()))['map'](_0x361a5d=>{const _0x16b5ca=_0x5aadab,{color:_0x3c22d0,range:_0x55a76e,name:_0x10e468,selection:_0x16bf1d,sheetID:_0x20e01c}=_0x361a5d,{startColumn:_0x15656a,startRow:_0x5ec023,endColumn:_0x575340,endRow:_0x16366a}=_0x55a76e,_0x6f75b3=_0x14b841(_0x5ec023,_0x15656a,_0x56c6c2,_0x22109a),_0x5a1026=_0x14b841(_0x16366a,_0x575340,_0x56c6c2,_0x22109a),{columnHeaderHeightAndMarginTop:_0x529303}=_0x22109a,{startX:_0x15c9a1,startY:_0x1b2911}=_0x6f75b3,{endX:_0x3c9c97,endY:_0x1ea178}=_0x5a1026,_0x3d75ee=_0x3c9c97-_0x15c9a1,_0x53200c=_0x1ea178-_0x1b2911,_0x375562={'labelPosition':_0x1b2911-_0x529303>=Le?_0x16b5ca(0x302):_0x16b5ca(0xec),'sheetID':_0x20e01c,'range':_0x55a76e,'color':_0x3c22d0,'name':_0x10e468,'selection':_0x16bf1d,'left':_0x15c9a1,'top':_0x1b2911,'width':_0x3d75ee,'height':_0x53200c,'evented':!0x1,'zIndex':qr};return new Yr(_0x10e468,_0x375562);});_0x56c6c2[_0x5aadab(0x27d)](_0x1a213f,Wr),this['_cursors']=new Set(_0x1a213f);}[_0x4c1f23(0xe6)](){const _0x325458=_0x4c1f23;var _0x351e8e;(_0x351e8e=this[_0x325458(0x232)])==null||_0x351e8e[_0x325458(0x100)](_0x393438=>_0x393438[_0x325458(0x1e4)]());}[_0x4c1f23(0x176)](){const _0x8e74c9=_0x4c1f23;return _0x24a93b(this[_0x8e74c9(0x308)]['unit'],this[_0x8e74c9(0x308)]);}};wt=Jr([mt(0x1,_0x321449(_0x3d1738)),mt(0x2,_0x321449(pe)),mt(0x3,_0x321449(_0x6f1691))],wt);function zr(_0x37503c){const _0x44054b=_0x4c1f23,_0x22ae47=new Map();return _0x37503c[_0x44054b(0x100)](_0x44e9a8=>{const _0x1de20b=_0x44054b;if(_0x22ae47['has'](_0x44e9a8[_0x1de20b(0x363)])){const _0x1bbd27=_0x22ae47[_0x1de20b(0x348)](_0x44e9a8[_0x1de20b(0x363)]);_0x1bbd27['name']+=',\x20'+_0x44e9a8[_0x1de20b(0x124)];}else _0x22ae47['set'](_0x44e9a8[_0x1de20b(0x363)],_0x44e9a8);}),Array[_0x44054b(0x126)](_0x22ae47[_0x44054b(0x3e6)]());}var N=function(){const _0x588d27=_0x4c1f23;return N=Object[_0x588d27(0x31d)]||function(_0x346e77){const _0x6bcf5f=_0x588d27;for(var _0x3c087c,_0x5ea7c9=0x1,_0xfc75e9=arguments['length'];_0x5ea7c9<_0xfc75e9;_0x5ea7c9++){_0x3c087c=arguments[_0x5ea7c9];for(var _0x2af2c5 in _0x3c087c)Object[_0x6bcf5f(0x109)][_0x6bcf5f(0x244)][_0x6bcf5f(0x3af)](_0x3c087c,_0x2af2c5)&&(_0x346e77[_0x2af2c5]=_0x3c087c[_0x2af2c5]);}return _0x346e77;},N[_0x588d27(0x8b)](this,arguments);},Zr=function(_0x8150ca,_0x2ccb5b){const _0x103820=_0x4c1f23;var _0x7c5823={};for(var _0x4ab07b in _0x8150ca)Object['prototype'][_0x103820(0x244)][_0x103820(0x3af)](_0x8150ca,_0x4ab07b)&&_0x2ccb5b[_0x103820(0x383)](_0x4ab07b)<0x0&&(_0x7c5823[_0x4ab07b]=_0x8150ca[_0x4ab07b]);if(_0x8150ca!=null&&typeof Object[_0x103820(0xb5)]==_0x103820(0x37e)){for(var _0xb2fe9c=0x0,_0x4ab07b=Object[_0x103820(0xb5)](_0x8150ca);_0xb2fe9c<_0x4ab07b['length'];_0xb2fe9c++)_0x2ccb5b[_0x103820(0x383)](_0x4ab07b[_0xb2fe9c])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x103820(0x3af)](_0x8150ca,_0x4ab07b[_0xb2fe9c])&&(_0x7c5823[_0x4ab07b[_0xb2fe9c]]=_0x8150ca[_0x4ab07b[_0xb2fe9c]]);}return _0x7c5823;},Wt=_0x2e90f2(function(_0x49ba6c,_0x3955f0){const _0x57b569=_0x4c1f23;var _0x35ad22=_0x49ba6c['icon'],_0x903635=_0x49ba6c['id'],_0x541d2c=_0x49ba6c[_0x57b569(0x1aa)],_0x82ce23=_0x49ba6c[_0x57b569(0x2e6)],_0x39b546=Zr(_0x49ba6c,['icon','id',_0x57b569(0x1aa),_0x57b569(0x2e6)]),_0x776c2a=_0x57b569(0x1de)[_0x57b569(0x13e)](_0x903635,'\x20')[_0x57b569(0x13e)](_0x541d2c||'')['trim'](),_0x581b43=_0x5ed056('_'[_0x57b569(0x13e)](to()));return ks(_0x35ad22,''['concat'](_0x903635),{'defIds':_0x35ad22[_0x57b569(0xd3)],'idSuffix':_0x581b43['current']},N({'ref':_0x3955f0,'className':_0x776c2a},_0x39b546),_0x82ce23);});function ks(_0x265f36,_0x5dd4e9,_0x5d88f3,_0x32133b,_0x566d7d){const _0x4e811c=_0x4c1f23;return _0xff9a40(_0x265f36[_0x4e811c(0x3ca)],N(N({'key':_0x5dd4e9},Qr(_0x265f36,_0x5d88f3,_0x566d7d)),_0x32133b),(eo(_0x265f36,_0x5d88f3)['children']||[])[_0x4e811c(0x17d)](function(_0x11871a,_0x271067){const _0x46e5b7=_0x4e811c;return ks(_0x11871a,''[_0x46e5b7(0x13e)](_0x5dd4e9,'-')[_0x46e5b7(0x13e)](_0x265f36[_0x46e5b7(0x3ca)],'-')['concat'](_0x271067),_0x5d88f3,void 0x0,_0x566d7d);}));}function Qr(_0x5eaa45,_0x59ba22,_0x561ad8){const _0x396ec0=_0x4c1f23;var _0x4ac996=N({},_0x5eaa45['attrs']);_0x561ad8!=null&&_0x561ad8[_0x396ec0(0x379)]&&_0x4ac996[_0x396ec0(0x291)]===_0x396ec0(0x379)&&(_0x4ac996[_0x396ec0(0x291)]=_0x561ad8['colorChannel1']);var _0xaa8075=_0x59ba22[_0x396ec0(0xd3)];return!_0xaa8075||_0xaa8075[_0x396ec0(0x78)]===0x0||(_0x5eaa45[_0x396ec0(0x3ca)]===_0x396ec0(0x2a1)&&_0x4ac996['xlink:href']&&(_0x4ac996[_0x396ec0(0x278)]=_0x4ac996[_0x396ec0(0x278)]+_0x59ba22[_0x396ec0(0xb1)]),Object[_0x396ec0(0x268)](_0x4ac996)['forEach'](function(_0x26aec5){const _0x230f1a=_0x396ec0;var _0xe364c3=_0x26aec5[0x0],_0x22db70=_0x26aec5[0x1];typeof _0x22db70==_0x230f1a(0x256)&&(_0x4ac996[_0xe364c3]=_0x22db70['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x59ba22[_0x230f1a(0xb1)],')')));})),_0x4ac996;}function eo(_0x588e9d,_0x467665){const _0x471625=_0x4c1f23;var _0x199a5d,_0x2d3085=_0x467665[_0x471625(0xd3)];return!_0x2d3085||_0x2d3085['length']===0x0?_0x588e9d:_0x588e9d[_0x471625(0x3ca)]===_0x471625(0x25f)&&(!((_0x199a5d=_0x588e9d['children'])===null||_0x199a5d===void 0x0)&&_0x199a5d[_0x471625(0x78)])?N(N({},_0x588e9d),{'children':_0x588e9d['children'][_0x471625(0x17d)](function(_0x33ca81){const _0x23dfb4=_0x471625;return typeof _0x33ca81[_0x23dfb4(0x279)]['id']==_0x23dfb4(0x256)&&_0x2d3085&&_0x2d3085[_0x23dfb4(0x383)](_0x33ca81['attrs']['id'])>-0x1?N(N({},_0x33ca81),{'attrs':N(N({},_0x33ca81[_0x23dfb4(0x279)]),{'id':_0x33ca81[_0x23dfb4(0x279)]['id']+_0x467665[_0x23dfb4(0xb1)]})}):_0x33ca81;})}):_0x588e9d;}function to(){const _0x5648bc=_0x4c1f23;return Math[_0x5648bc(0x328)]()['toString'](0x24)[_0x5648bc(0x1be)](0x2,0x8);}Wt[_0x4c1f23(0x2de)]=_0x4c1f23(0xc4);var so={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x29c)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x211),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':_0x4c1f23(0x154),'strokeWidth':1.2}}]},{'tag':_0x4c1f23(0x25f),'attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':_0x4c1f23(0x104)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Bs=_0x2e90f2(function(_0x381628,_0x9e719a){const _0x4b4765=_0x4c1f23;return _0xff9a40(Wt,Object[_0x4b4765(0x31d)]({},_0x381628,{'id':_0x4b4765(0x2a9),'ref':_0x9e719a,'icon':so}));});Bs[_0x4c1f23(0x2de)]=_0x4c1f23(0x9e);var io={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':_0x4c1f23(0x24a),'width':_0x4c1f23(0x2d5),'height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x1ec)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x18f),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Vs=_0x2e90f2(function(_0x53cc5a,_0x513ded){const _0x3ce99a=_0x4c1f23;return _0xff9a40(Wt,Object[_0x3ce99a(0x31d)]({},_0x53cc5a,{'id':'on-line-single','ref':_0x513ded,'icon':io}));});Vs[_0x4c1f23(0x2de)]=_0x4c1f23(0x7b);const no=_0x4c1f23(0x24e),ro='univer-online-status-title',oo=_0x4c1f23(0x2c3),ao='univer-online',co='univer-offline',we={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x19046c){const _0x2463d5=_0x4c1f23;switch(_0x19046c){case w[_0x2463d5(0x3d4)]:return _0x2463d5(0x32b);case w['CONFLICT']:return _0x2463d5(0x22a);case w[_0x2463d5(0x1c6)]:return _0x2463d5(0x1b8);case w[_0x2463d5(0x3df)]:return _0x2463d5(0x33f);case w['PENDING']:case w[_0x2463d5(0x1ca)]:case w['AWAITING_WITH_PENDING']:return _0x2463d5(0xbd);case w['SYNCED']:return _0x2463d5(0x337);}}function lo(_0x513031){const _0x3a06d4=_0x4c1f23,{status$:_0x13590f}=_0x513031,_0x1a3465=_0x481936(_0x13590f,w[_0x3a06d4(0x3df)]),_0x339073=_0x18fbb6(_0x2e153b),_0x203039=_0x18fbb6(ce),_0xff894c=_0x1a3465!==w[_0x3a06d4(0x3d4)],_0x3a20f8=_0x339073['t'](ho(_0x1a3465)),_0x36ee32=_0x42940b(we['onlineStatus'],{[we['online']]:_0xff894c,[we[_0x3a06d4(0x209)]]:!_0xff894c}),_0x480c1c=_0xff894c?_0x1e4ea9[_0x3a06d4(0x3c7)](Vs,null):_0x1e4ea9[_0x3a06d4(0x3c7)](Bs,null),_0x311d25=_0x1d425c(()=>{const _0x1f14b0=_0x3a06d4;_0xff894c||_0x203039[_0x1f14b0(0x37a)]();},[_0xff894c,_0x203039]);function _0x17cf92(){const _0x5d81db=_0x3a06d4;return _0x1e4ea9['createElement'](_0x5d81db(0x21c),{'className':_0x36ee32,'onClick':_0x311d25},_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x365)]},_0x480c1c),_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x261)]},_0x3a20f8));}return _0xff894c?_0x17cf92():_0x1e4ea9[_0x3a06d4(0x3c7)](_0x465a5c,{'title':_0x339073['t'](_0x3a06d4(0x2db))},_0x17cf92());}var _o=Object[_0x4c1f23(0x2e9)],uo=Object[_0x4c1f23(0x133)],fo=(_0x18b214,_0x2d3a05,_0x4c7f88,_0x2b1f3b)=>{for(var _0x11640c=_0x2b1f3b>0x1?void 0x0:_0x2b1f3b?uo(_0x2d3a05,_0x4c7f88):_0x2d3a05,_0x1c3355=_0x18b214['length']-0x1,_0x254a57;_0x1c3355>=0x0;_0x1c3355--)(_0x254a57=_0x18b214[_0x1c3355])&&(_0x11640c=(_0x2b1f3b?_0x254a57(_0x2d3a05,_0x4c7f88,_0x11640c):_0x254a57(_0x11640c))||_0x11640c);return _0x2b1f3b&&_0x11640c&&_o(_0x2d3a05,_0x4c7f88,_0x11640c),_0x11640c;},He=(_0x375278,_0x1f1169)=>(_0x2b54f6,_0x282119)=>_0x1f1169(_0x2b54f6,_0x282119,_0x375278);let Ue=class extends _0x22db72{constructor(_0x4bbe41,_0x2e5d25,_0x105acf,_0x11ac0d){const _0x4b5c9b=_0x4c1f23;super(),l(this,_0x4b5c9b(0xc8),new _0x2ec58d(w['NOT_COLLAB'])),(this[_0x4b5c9b(0x310)]=_0x4bbe41,this['_uiPartsService']=_0x2e5d25,this['_injector']=_0x105acf,this[_0x4b5c9b(0x233)]=_0x11ac0d,this[_0x4b5c9b(0x2d7)](),this[_0x4b5c9b(0x318)]());}[_0x4c1f23(0x318)](){const _0x41ac79=_0x4c1f23;this[_0x41ac79(0x248)](this[_0x41ac79(0x310)][_0x41ac79(0x2e2)][_0x41ac79(0x1a7)](_0x4e9858(()=>{const _0x228ffb=_0x41ac79,_0x3340bb=this[_0x228ffb(0x310)]['getFocusedUnit']();return _0x3340bb?this[_0x228ffb(0x233)][_0x228ffb(0x2b7)](_0x3340bb[_0x228ffb(0x34e)]()):_0x570d55(null);}),_0x4e9858(_0x2566af=>_0x2566af?_0x2566af[_0x41ac79(0x380)]:_0x570d55(w['NOT_COLLAB'])))[_0x41ac79(0x280)](_0x403240=>{const _0x536743=_0x41ac79;this['_status$'][_0x536743(0x23d)](_0x403240);}));}[_0x4c1f23(0x2d7)](){const _0x3bd6c6=_0x4c1f23;this[_0x3bd6c6(0x248)](this[_0x3bd6c6(0x284)][_0x3bd6c6(0xfd)](_0x385326[_0x3bd6c6(0x296)],()=>_0x538d64(mo({'status$':this['_status$']['asObservable']()}),this[_0x3bd6c6(0x162)])));}};Ue=fo([He(0x0,_0x375068),He(0x1,_0x3fbc73),He(0x2,_0x321449(_0x313fa0)),He(0x3,_0x321449(Ae))],Ue);function mo(_0x30089d){const {status$:_0x25c1fd}=_0x30089d;return function(){const _0x2d2e78=_0x4c7d;return _0x1e4ea9[_0x2d2e78(0x3c7)](lo,{'status$':_0x25c1fd});};}const Fs=_0x2d62b5(_0x4c1f23(0x359));var go=Object[_0x4c1f23(0x2e9)],So=Object['getOwnPropertyDescriptor'],po=(_0x2893df,_0x54fcbd,_0x36864f,_0x1386bf)=>{const _0x1afd3f=_0x4c1f23;for(var _0x165a9f=_0x1386bf>0x1?void 0x0:_0x1386bf?So(_0x54fcbd,_0x36864f):_0x54fcbd,_0x360a21=_0x2893df[_0x1afd3f(0x78)]-0x1,_0x3cb4e8;_0x360a21>=0x0;_0x360a21--)(_0x3cb4e8=_0x2893df[_0x360a21])&&(_0x165a9f=(_0x1386bf?_0x3cb4e8(_0x54fcbd,_0x36864f,_0x165a9f):_0x3cb4e8(_0x165a9f))||_0x165a9f);return _0x1386bf&&_0x165a9f&&go(_0x54fcbd,_0x36864f,_0x165a9f),_0x165a9f;},me=(_0x31a9ee,_0x4c44b7)=>(_0x2b33df,_0x5b467d)=>_0x4c44b7(_0x2b33df,_0x5b467d,_0x31a9ee);let qe=class extends _0x2dacfb{constructor(_0x245393,_0xf1fa0e,_0x59631f,_0x50becd,_0x414d9d,_0x416972){const _0x4e06e0=_0x4c1f23;super(),this[_0x4e06e0(0x148)]=_0x245393,this['_logService']=_0xf1fa0e,this['_commandService']=_0x59631f,this[_0x4e06e0(0xd7)]=_0x50becd,this[_0x4e06e0(0x3d9)]=_0x414d9d,_0x416972?_0x416972==null||_0x416972[_0x4e06e0(0x2c7)]()[_0x4e06e0(0x90)](()=>this[_0x4e06e0(0x34a)]()):(this['_logService']['debug'](_0x4e06e0(0x336),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0xc37d66=_0x4c1f23,_0x38654e=this['_urlService']['getParam'](_0xc37d66(0x287)),_0x5bf56e=this[_0xc37d66(0x148)][_0xc37d66(0xa0)](_0xc37d66(0x1d3));if(!_0x38654e||!_0x5bf56e){this[_0xc37d66(0x128)]['debug'](_0xc37d66(0x336),_0xc37d66(0x190));return;}switch(Number(_0x5bf56e)){case H[_0xc37d66(0x10d)]:{const _0x3c7178=await this[_0xc37d66(0x19a)](_0x38654e);this[_0xc37d66(0x2ac)](_0x3c7178);break;}case H[_0xc37d66(0x11d)]:{await this[_0xc37d66(0x334)](_0x38654e);break;}default:{this[_0xc37d66(0x128)][_0xc37d66(0x17a)]('[DataLoaderController]',_0xc37d66(0xb0));break;}}}async[_0x4c1f23(0x2ac)](_0x428a46){const _0x4b915e=_0x4c1f23;await this[_0x4b915e(0x264)](_0x428a46),_0x428a46[_0x4b915e(0x123)][_0x4b915e(0x1a7)](_0x289d57(this[_0x4b915e(0x265)]))[_0x4b915e(0x280)](_0x4f3229=>{const _0x3cbf16=_0x4b915e;_0x4f3229&&this[_0x3cbf16(0xc5)](_0x4f3229);}),this['_urlService'][_0x4b915e(0x112)][_0x4b915e(0x1a7)](_0x289d57(this['dispose$']))['subscribe'](()=>this[_0x4b915e(0x264)](_0x428a46));}[_0x4c1f23(0xc5)](_0x48d6ae,_0x19b97b=!0x1){const _0x2a9375=_0x4c1f23,_0x250f7c=this[_0x2a9375(0x148)][_0x2a9375(0xa0)](_0x2a9375(0xf1));_0x48d6ae[_0x2a9375(0x1a9)]()!==_0x250f7c&&this[_0x2a9375(0x148)][_0x2a9375(0x199)](_0x2a9375(0xf1),_0x48d6ae['getSheetId'](),_0x19b97b);}async['_updateSubUnitFromURLParams'](_0x13f531){const _0x2aad15=_0x4c1f23;var _0x106810;const _0x1ce14f=this[_0x2aad15(0x148)][_0x2aad15(0xa0)](_0x2aad15(0xf1));if(!_0x1ce14f||!_0x13f531['getSheetBySheetId'](_0x1ce14f)){const _0x88041d=_0x13f531[_0x2aad15(0x2f2)]()[0x0],_0x21c651=_0x13f531[_0x2aad15(0x77)](_0x88041d);if(!_0x21c651)return;this[_0x2aad15(0xc5)](_0x21c651,!0x0),await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531['getUnitId'](),'subUnitId':_0x88041d});return;}((_0x106810=_0x13f531[_0x2aad15(0x135)]())==null?void 0x0:_0x106810['getSheetId']())!==_0x1ce14f&&await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531[_0x2aad15(0x34e)](),'subUnitId':_0x1ce14f});}async[_0x4c1f23(0x19a)](_0x4d5e5d){const _0x500621=_0x4c1f23;let _0x451762=0x0;const _0xd60fda=await this[_0x500621(0xd7)]['loadOfflineData'](_0x4d5e5d);return _0xd60fda&&(_0xd60fda['awaitingChangeset']||_0xd60fda[_0x500621(0x3d7)]['length']!==0x0)&&(_0x451762=_0xd60fda['rev']),_0x451762===0x0&&this[_0x500621(0x128)][_0x500621(0x20b)](_0x500621(0x336),_0x500621(0x382)),this[_0x500621(0x3d9)][_0x500621(0x201)](_0x4d5e5d,_0x451762);}async['_loadDoc'](_0xafbb0f){const _0x56578c=_0x4c1f23;let _0xec9079=0x0;const _0x3dce5a=await this[_0x56578c(0xd7)][_0x56578c(0x107)](_0xafbb0f);return _0x3dce5a&&(_0x3dce5a['awaitingChangeset']||_0x3dce5a[_0x56578c(0x3d7)][_0x56578c(0x78)]!==0x0)&&(_0xec9079=_0x3dce5a[_0x56578c(0x269)]),_0xec9079===0x0&&this['_logService']['debug'](_0x56578c(0x336),_0x56578c(0x382)),this[_0x56578c(0x3d9)][_0x56578c(0x293)](_0xafbb0f,_0xec9079);}};qe=po([me(0x0,Fs),me(0x1,_0x50688a),me(0x2,_0x265863),me(0x3,_0x321449(D)),me(0x4,_0x321449(_0x38d13f)),me(0x5,_0x9bfc3c(_0x51139b))],qe);var vo=Object[_0x4c1f23(0x2e9)],Io=Object[_0x4c1f23(0x133)],Eo=(_0x5a47d9,_0x5ca22b,_0x29d2b9,_0x103ef9)=>{for(var _0x2a9150=_0x103ef9>0x1?void 0x0:_0x103ef9?Io(_0x5ca22b,_0x29d2b9):_0x5ca22b,_0x4846d1=_0x5a47d9['length']-0x1,_0x4e7bfb;_0x4846d1>=0x0;_0x4846d1--)(_0x4e7bfb=_0x5a47d9[_0x4846d1])&&(_0x2a9150=(_0x103ef9?_0x4e7bfb(_0x5ca22b,_0x29d2b9,_0x2a9150):_0x4e7bfb(_0x2a9150))||_0x2a9150);return _0x103ef9&&_0x2a9150&&vo(_0x5ca22b,_0x29d2b9,_0x2a9150),_0x2a9150;},fs=(_0x56c699,_0x5e42eb)=>(_0x2e1544,_0x118a2d)=>_0x5e42eb(_0x2e1544,_0x118a2d,_0x56c699);const Co=_0x4c1f23(0x217),bo=_0x4c1f23(0x371);let ze=class extends _0x22db72{constructor(_0x320960,_0x2a81ce){const _0x495c39=_0x4c1f23;super(),this[_0x495c39(0x310)]=_0x320960,this['_configService']=_0x2a81ce,this['_init']();}[_0x4c1f23(0x34a)](){const _0x2f30f1=_0x4c1f23;this[_0x2f30f1(0x248)](this[_0x2f30f1(0x310)][_0x2f30f1(0x2e2)][_0x2f30f1(0x280)](()=>{const _0x3f44bd=_0x2f30f1;var _0x5c28f7;const _0x16a849=this[_0x3f44bd(0x310)]['getFocusedUnit']();let _0x3916cf=(_0x5c28f7=this[_0x3f44bd(0x132)][_0x3f44bd(0x111)](Co))!=null?_0x5c28f7:bo;_0x16a849 instanceof _0xa32c6e&&(_0x3916cf=_0x16a849[_0x3f44bd(0x124)]),document['title']=_0x3916cf;}));}};ze=Eo([fs(0x0,_0x375068),fs(0x1,_0x4d21d1)],ze);var To=Object['defineProperty'],Ro=Object[_0x4c1f23(0x133)],Oo=(_0x52f303,_0x413bf0,_0x3cccf0,_0x56fae7)=>{const _0x38b666=_0x4c1f23;for(var _0x1192ba=_0x56fae7>0x1?void 0x0:_0x56fae7?Ro(_0x413bf0,_0x3cccf0):_0x413bf0,_0x7066e7=_0x52f303[_0x38b666(0x78)]-0x1,_0x1ecae3;_0x7066e7>=0x0;_0x7066e7--)(_0x1ecae3=_0x52f303[_0x7066e7])&&(_0x1192ba=(_0x56fae7?_0x1ecae3(_0x413bf0,_0x3cccf0,_0x1192ba):_0x1ecae3(_0x1192ba))||_0x1192ba);return _0x56fae7&&_0x1192ba&&To(_0x413bf0,_0x3cccf0,_0x1192ba),_0x1192ba;},gt=(_0x30654f,_0x57ff5d)=>(_0x1a1306,_0x5b1f5e)=>_0x57ff5d(_0x1a1306,_0x5b1f5e,_0x30654f);let Ze=class{constructor(_0x579e08,_0x4ddcbb,_0x1f92ea){const _0x93c9c2=_0x4c1f23;this[_0x93c9c2(0x132)]=_0x579e08,this[_0x93c9c2(0x19f)]=_0x4ddcbb,this[_0x93c9c2(0x3ee)]=_0x1f92ea,this[_0x93c9c2(0x1ba)]();}['init'](){const _0x476d56=_0x4c1f23;this[_0x476d56(0x19f)][_0x476d56(0xa1)]({'priority':0x1,'interceptor':(_0x125874,_0x59b099)=>_0x59b099(_0x125874)[_0x476d56(0x1a7)](_0x42e091(async _0x2a1acd=>{const _0x27cd71=_0x476d56,_0x5bd926=_0x2a1acd;if(_0x5bd926['status']===0x191&&window[_0x27cd71(0x22f)](this[_0x27cd71(0x3ee)]['t'](_0x27cd71(0x2ae)))){const _0x135dcf=window['encodeURIComponent'](window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]);window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]=this[_0x27cd71(0x12d)]()+_0x27cd71(0x3d0)+_0x135dcf;}return _0x5bd926;}))});}[_0x4c1f23(0x12d)](){const _0x505f63=_0x4c1f23;var _0x1ca43f,_0x4679dd;const _0x3b3544=this[_0x505f63(0x132)]['getConfig'](wn),_0x1858f2=this['_configService'][_0x505f63(0x111)](L);return(_0x4679dd=(_0x1ca43f=_0x1858f2==null?void 0x0:_0x1858f2[_0x505f63(0x14a)])!=null?_0x1ca43f:_0x3b3544)!=null?_0x4679dd:Pn;}};Ze=Oo([gt(0x0,_0x4d21d1),gt(0x1,_0x321449(_0x1fbfa2)),gt(0x2,_0x321449(_0x2e153b))],Ze);var Do=Object[_0x4c1f23(0x2e9)],wo=Object[_0x4c1f23(0x133)],Po=(_0x5a4a36,_0x1750b5,_0x891e87,_0x5a2079)=>{const _0x1f0489=_0x4c1f23;for(var _0x1ea626=_0x5a2079>0x1?void 0x0:_0x5a2079?wo(_0x1750b5,_0x891e87):_0x1750b5,_0x3fb4a3=_0x5a4a36[_0x1f0489(0x78)]-0x1,_0x22d94d;_0x3fb4a3>=0x0;_0x3fb4a3--)(_0x22d94d=_0x5a4a36[_0x3fb4a3])&&(_0x1ea626=(_0x5a2079?_0x22d94d(_0x1750b5,_0x891e87,_0x1ea626):_0x22d94d(_0x1ea626))||_0x1ea626);return _0x5a2079&&_0x1ea626&&Do(_0x1750b5,_0x891e87,_0x1ea626),_0x1ea626;},ms=(_0x5fc870,_0x592e9c)=>(_0x33fa57,_0xd46c5c)=>_0x592e9c(_0x33fa57,_0xd46c5c,_0x5fc870);const yo=_0x4c1f23(0x2ca),No=_0x4c1f23(0x276);let Pt=class extends _0x22db72{constructor(_0x369fd9,_0x58d2e0){const _0x102c0b=_0x4c1f23;super(),this[_0x102c0b(0x8c)]=_0x369fd9,this['_configService']=_0x58d2e0,this[_0x102c0b(0x1fd)]();}[_0x4c1f23(0x1fd)](){const _0x39624d=_0x4c1f23,_0x18ef28=this;this['disposeWithMe'](this['_HTTPService'][_0x39624d(0xa1)]({'priority':0x3e7,'interceptor':_0x34ac01({'isMatch'(_0x4b634d){const _0x2cbf7b=_0x39624d;var _0x3c599e;if(_0x4b634d[_0x2cbf7b(0xbb)]===_0x2cbf7b(0x353)&&((_0x3c599e=_0x4b634d[_0x2cbf7b(0x3b8)])!=null&&_0x3c599e[_0x2cbf7b(0x1d2)])){const {objectID:_0x382f30,objectType:_0x5ee163}=_0x4b634d[_0x2cbf7b(0x3b8)][_0x2cbf7b(0x1d2)]||{};if(!_0x382f30||_0x5ee163===void 0x0)return!0x1;const _0x4e0730=_0x18ef28[_0x2cbf7b(0x3c5)]()+'/'+_0x5ee163+_0x2cbf7b(0x198)+_0x382f30+_0x2cbf7b(0x38c);if(_0x4b634d[_0x2cbf7b(0x121)]===_0x4e0730)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x699429){const _0xde98c=_0x39624d;var _0x32c6fc;return(_0x32c6fc=_0x699429[_0xde98c(0x3b8)])==null?void 0x0:_0x32c6fc[_0xde98c(0x1d2)];},'mergeParamsToRequest'(_0x3bd169,_0xaa5dd){const _0x22a847=_0x39624d,_0x2050b4=_0x18ef28['_getAPIPrefixPath']()+_0x22a847(0xb7),_0x3aa58a=_0x3bd169[_0x22a847(0x3cd)]((_0x34f3d5,_0x302c5f)=>{const _0x365627=_0x22a847,{unitID:_0x37a769,objectID:_0x1577ae,objectType:_0x39cc37,actions:_0x1ee6c1}=_0x302c5f;return _0x34f3d5[_0x37a769]||(_0x34f3d5[_0x37a769]={}),_0x34f3d5[_0x37a769][_0x1577ae]||(_0x34f3d5[_0x37a769][_0x1577ae]={'objectID':_0x1577ae,'objectType':_0x39cc37,'actions':[]}),_0x34f3d5[_0x37a769][_0x1577ae][_0x365627(0x33d)]['push'](..._0x1ee6c1),_0x34f3d5;},{}),_0x4765de=[];for(const _0x130edf in _0x3aa58a)for(const _0x3e2586 in _0x3aa58a[_0x130edf]){const {actions:_0x5e436d,objectType:_0x568f5b}=_0x3aa58a[_0x130edf][_0x3e2586],_0x34c6d1=[...new Set(_0x5e436d)];_0x4765de[_0x22a847(0x27c)]({'unitID':_0x130edf,'objectID':_0x3e2586,'objectType':_0x568f5b,'actions':_0x34c6d1});}return new _0x4a19a1(_0x22a847(0x353),_0x2050b4,{'headers':_0xaa5dd[_0x22a847(0x1b1)],'withCredentials':_0xaa5dd[_0x22a847(0x140)],'responseType':_0xaa5dd[_0x22a847(0x83)],'body':{'requests':_0x4765de}});}},{'distributeResult'(_0x56a15c,_0x47b889){const _0x35bd2a=_0x39624d,{objectActions:_0x2957f5}=_0x56a15c;return _0x47b889[_0x35bd2a(0x17d)](_0x48a711=>{const _0x4b7a68=_0x35bd2a,{unitID:_0x471f1a,objectID:_0x28013b,actions:_0x18c9db}=_0x48a711,_0x7676aa=_0x2957f5['find'](_0x8bd79e=>_0x8bd79e[_0x4b7a68(0x1f3)]===_0x471f1a&&_0x8bd79e[_0x4b7a68(0xa2)]===_0x28013b),_0x267060=_0x18c9db[_0x4b7a68(0x17d)](_0x2d229a=>_0x7676aa==null?void 0x0:_0x7676aa[_0x4b7a68(0x33d)]['find'](_0x3e2eae=>_0x3e2eae[_0x4b7a68(0x2fc)]===_0x2d229a))['filter'](_0x44f481=>!!_0x44f481);return{'config':_0x48a711,'result':{'actions':_0x267060,'error':_0x56a15c[_0x4b7a68(0x17a)]}};});}})}));}[_0x4c1f23(0x3c5)](){const _0x2ce926=_0x4c1f23;var _0x38bc7e,_0x2a4e71;const _0x1f27ba=this[_0x2ce926(0x132)]['getConfig'](yo),_0x212f4f=this[_0x2ce926(0x132)][_0x2ce926(0x111)](L);return(_0x2a4e71=(_0x38bc7e=_0x212f4f==null?void 0x0:_0x212f4f[_0x2ce926(0x225)])!=null?_0x38bc7e:_0x1f27ba)!=null?_0x2a4e71:No;}async[_0x4c1f23(0x39a)](_0x44c123){const _0x41de4c=_0x4c1f23,_0x2ea342=this['_getAPIPrefixPath']()+'/'+_0x44c123[_0x41de4c(0x2ef)]+_0x41de4c(0x1d9);return(await this[_0x41de4c(0x8c)][_0x41de4c(0x341)](_0x2ea342,{'body':_0x44c123}))['body']['objectID']||'';}async[_0x4c1f23(0x2b1)](_0x913f15){const _0x6afd4f=_0x4c1f23,_0x262549=this['_getAPIPrefixPath']()+_0x6afd4f(0x118);return(await this[_0x6afd4f(0x8c)]['post'](_0x262549,{'body':_0x913f15}))[_0x6afd4f(0x1d2)]['objects'];}async[_0x4c1f23(0x36e)](_0x898dd8){const _0xef5e64=_0x4c1f23,_0x2b93d3=this['_getAPIPrefixPath']()+'/'+_0x898dd8[_0xef5e64(0x2ef)]+'/object/'+_0x898dd8[_0xef5e64(0xa2)];await this['_HTTPService']['put'](_0x2b93d3,{'body':_0x898dd8});}async[_0x4c1f23(0xeb)](_0x52db98){const _0x235acc=_0x4c1f23,_0x31c40f=this['_getAPIPrefixPath']()+'/'+_0x52db98[_0x235acc(0x2ef)]+_0x235acc(0x198)+_0x52db98[_0x235acc(0xa2)]+_0x235acc(0x38c);return(await this[_0x235acc(0x8c)]['post'](_0x31c40f,{'body':_0x52db98}))[_0x235acc(0x1d2)]['actions'];}async['batchAllowed'](_0x3f7c59){const _0x138d18=_0x4c1f23,_0x3b5890=this[_0x138d18(0x3c5)]()+_0x138d18(0xb7);return(await this[_0x138d18(0x8c)][_0x138d18(0x341)](_0x3b5890,{'body':{'requests':_0x3f7c59}}))[_0x138d18(0x1d2)]['objectActions'];}async['listRoles'](_0x15c0c2){const _0x50813c=_0x4c1f23,_0x5cbc44=this[_0x50813c(0x3c5)]()+'/'+_0x15c0c2[_0x50813c(0x2ef)]+_0x50813c(0x13f),_0x4ecc26=await this[_0x50813c(0x8c)][_0x50813c(0x341)](_0x5cbc44,{'body':_0x15c0c2});return{'roles':_0x4ecc26[_0x50813c(0x1d2)][_0x50813c(0x18a)],'actions':_0x4ecc26[_0x50813c(0x1d2)]['actions']};}async['deleteCollaborator'](_0x58c28a){const _0x23a693=_0x4c1f23,_0x92f122=this[_0x23a693(0x3c5)]()+_0x23a693(0x180);await this[_0x23a693(0x8c)][_0x23a693(0xd0)](_0x92f122,{'params':{'collaboratorID':_0x58c28a['collaboratorID'],'objectID':_0x58c28a['objectID'],'unitID':_0x58c28a[_0x23a693(0x1f3)]}});}async[_0x4c1f23(0x3d3)](_0x355a31){const _0x13972e=_0x4c1f23,_0x597721=this[_0x13972e(0x3c5)]()+'/collaborator';await this[_0x13972e(0x8c)][_0x13972e(0x32d)](_0x597721,{'body':_0x355a31});}async[_0x4c1f23(0x1ea)](_0x197efa){const _0x99f4db=_0x4c1f23,_0xfa1a55=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x99f4db(0x8c)]['post'](_0xfa1a55,{'body':_0x197efa});}async[_0x4c1f23(0x2fe)](_0x5951da){const _0x1fc495=_0x4c1f23,_0x378438=this[_0x1fc495(0x3c5)]()+'/collaborator';return(await this['_HTTPService'][_0x1fc495(0x348)](_0x378438,{'params':{'objectID':_0x5951da[_0x1fc495(0xa2)],'unitID':_0x5951da[_0x1fc495(0x1f3)]}}))[_0x1fc495(0x1d2)][_0x1fc495(0x289)];}async['putCollaborators'](_0x917012){const _0x2829cb=_0x4c1f23,_0x1fbe1f=this[_0x2829cb(0x3c5)]()+_0x2829cb(0x180);await this[_0x2829cb(0x8c)][_0x2829cb(0x23a)](_0x1fbe1f,{'body':_0x917012});}};Pt=Po([ms(0x0,_0x321449(_0x1fbfa2)),ms(0x1,_0x321449(_0x4d21d1))],Pt);var Uo=Object[_0x4c1f23(0x2e9)],Mo=Object[_0x4c1f23(0x133)],Ao=(_0x4c57d3,_0x1aae63,_0x5b9bd6,_0x486e15)=>{const _0x4ad00f=_0x4c1f23;for(var _0x5538a4=_0x486e15>0x1?void 0x0:_0x486e15?Mo(_0x1aae63,_0x5b9bd6):_0x1aae63,_0x352966=_0x4c57d3[_0x4ad00f(0x78)]-0x1,_0xbe6a52;_0x352966>=0x0;_0x352966--)(_0xbe6a52=_0x4c57d3[_0x352966])&&(_0x5538a4=(_0x486e15?_0xbe6a52(_0x1aae63,_0x5b9bd6,_0x5538a4):_0xbe6a52(_0x5538a4))||_0x5538a4);return _0x486e15&&_0x5538a4&&Uo(_0x1aae63,_0x5b9bd6,_0x5538a4),_0x5538a4;},Lo=(_0x46b8c9,_0x492286)=>(_0x4e9739,_0x10c7dc)=>_0x492286(_0x4e9739,_0x10c7dc,_0x46b8c9);let Qe=class{constructor(_0xab3630){const _0x3e05a1=_0x4c1f23;this[_0x3e05a1(0x19f)]=_0xab3630,this[_0x3e05a1(0x7e)]();}['_initRequestHeader'](){const _0x1ce8db=_0x4c1f23;this[_0x1ce8db(0x19f)]['registerHTTPInterceptor']({'interceptor':(_0x48eefd,_0x4ce275)=>{const _0xafd927=_0x1ce8db,_0x4cf9a9=_0x48eefd[_0xafd927(0x1b1)],_0x22fd3a=_0x575ac8();return _0x22fd3a&&_0x4cf9a9[_0xafd927(0x329)](_0xafd927(0x249),_0x22fd3a),_0x4ce275(_0x48eefd);}});}};Qe=Ao([Lo(0x0,_0x321449(_0x1fbfa2))],Qe);var $o=Object['defineProperty'],jo=Object['getOwnPropertyDescriptor'],xo=(_0x1fe0e0,_0xeeba48,_0x5e2167,_0x21cc00)=>{const _0x54995b=_0x4c1f23;for(var _0x226d7f=_0x21cc00>0x1?void 0x0:_0x21cc00?jo(_0xeeba48,_0x5e2167):_0xeeba48,_0x576b24=_0x1fe0e0[_0x54995b(0x78)]-0x1,_0x1c5933;_0x576b24>=0x0;_0x576b24--)(_0x1c5933=_0x1fe0e0[_0x576b24])&&(_0x226d7f=(_0x21cc00?_0x1c5933(_0xeeba48,_0x5e2167,_0x226d7f):_0x1c5933(_0x226d7f))||_0x226d7f);return _0x21cc00&&_0x226d7f&&$o(_0xeeba48,_0x5e2167,_0x226d7f),_0x226d7f;},St=(_0x52f609,_0x4397a8)=>(_0x5e77a8,_0x4dae57)=>_0x4397a8(_0x5e77a8,_0x4dae57,_0x52f609);const Ho=['image/png',_0x4c1f23(0xca),_0x4c1f23(0x1d4),_0x4c1f23(0x372),_0x4c1f23(0xa6)],ko=0x5*0x400*0x400,Bo=_0x4c1f23(0x3d8),Vo=_0x4c1f23(0x2a3),Fo=_0x4c1f23(0x22e),Wo='/universer-api/file/{fileID}/sign-url';let yt=class{constructor(_0x11f57b,_0x45d1b9,_0x2476db){const _0x58a533=_0x4c1f23;l(this,_0x58a533(0x376),0x0),l(this,_0x58a533(0x1f9),new _0xacaad6()),l(this,_0x58a533(0x26c),this[_0x58a533(0x1f9)]),l(this,_0x58a533(0x21b),new Map()),(this[_0x58a533(0x19f)]=_0x11f57b,this[_0x58a533(0x132)]=_0x45d1b9,this[_0x58a533(0x310)]=_0x2476db);}['setWaitCount'](_0x319468){const _0x36025d=_0x4c1f23;this['_waitCount']=_0x319468,this[_0x36025d(0x1f9)][_0x36025d(0x23d)](_0x319468);}[_0x4c1f23(0x28e)](_0x11fc23,_0x5a3c10){const _0x1d0a54=_0x4c1f23;if(_0x5a3c10===_0x1946dd[_0x1d0a54(0x10e)]){const _0x211e14=new Image();return _0x211e14[_0x1d0a54(0x181)]=_0x11fc23,_0x211e14;}return this['_imageSourceCache'][_0x1d0a54(0x348)](_0x11fc23);}[_0x4c1f23(0x246)](_0x1d3f27,_0x1022ae,_0x121c12){const _0x2cacfc=_0x4c1f23;_0x1022ae===_0x1946dd[_0x2cacfc(0x10e)]||_0x121c12==null||this[_0x2cacfc(0x21b)][_0x2cacfc(0x329)](_0x1d3f27,_0x121c12);}async['getImage'](_0x388338){const _0x57f0c0=_0x4c1f23;try{const _0xd04b4d=this[_0x57f0c0(0x196)](this[_0x57f0c0(0x16b)](),''+_0x388338),_0x2fbdd9=(await this[_0x57f0c0(0x19f)]['get'](_0xd04b4d))['body'];if(_0x2fbdd9['error']&&_0x2fbdd9['error'][_0x57f0c0(0x397)]===Ms['OK']){const _0x43331c=new URL(_0x2fbdd9[_0x57f0c0(0x121)],this[_0x57f0c0(0x1b3)]())['toString']();return Promise[_0x57f0c0(0x3be)](_0x43331c);}return Promise[_0x57f0c0(0x15f)](_0x2fbdd9[_0x57f0c0(0x17a)]);}catch(_0x4b8547){return Promise[_0x57f0c0(0x15f)](_0x4b8547);}}async[_0x4c1f23(0xe7)](_0x274d14){const _0x41d423=_0x4c1f23;let _0x476683='';if(!Ho[_0x41d423(0x116)](_0x274d14['type']))return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_IMAGE_TYPE']));if(_0x274d14['size']>ko)return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_EXCEED_SIZE']));try{const _0x28e239=new FormData();_0x28e239[_0x41d423(0x344)](_0x41d423(0x207),_0x274d14);const _0x5d2b28=this[_0x41d423(0x310)]['getFocusedUnit'](),_0x6f69fd=_0x5d2b28==null?void 0x0:_0x5d2b28[_0x41d423(0x34e)]();if(!_0x6f69fd)throw new Error(_0x41d423(0x95));const _0x17bcde=this[_0x41d423(0x79)]()+'?size='+_0x274d14[_0x41d423(0x151)]['toString']()+_0x41d423(0x235)+As[_0x41d423(0x304)]+'&assign='+encodeURIComponent(_0x6f69fd),_0x4a3e32=await(await fetch(_0x17bcde,{'method':_0x41d423(0x353),'body':_0x28e239}))[_0x41d423(0x3ba)]();if(typeof _0x4a3e32[_0x41d423(0x3b0)]!=_0x41d423(0x256))return this[_0x41d423(0x2f9)](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));_0x476683=_0x4a3e32[_0x41d423(0x3b0)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));}return new Promise((_0x536f7c,_0x2d6d34)=>{const _0xc2ee4=_0x41d423,_0x2cb691=new FileReader();_0x2cb691[_0xc2ee4(0x255)](_0x274d14),_0x2cb691['onload']=_0x272a76=>{const _0xc51e30=_0xc2ee4;var _0x39ac4f;const _0x2783ac=(_0x39ac4f=_0x272a76[_0xc51e30(0x2b2)])==null?void 0x0:_0x39ac4f[_0xc51e30(0x2c5)];if(_0x2783ac==null){this[_0xc51e30(0x2f9)](),_0x2d6d34(new Error(_0x1f89ce[_0xc51e30(0x2f1)]));return;}const _0x48903f=_0x403f58[_0xc51e30(0xf0)](0x6);_0x536f7c({'imageId':_0x48903f,'imageSourceType':_0x1946dd[_0xc51e30(0x26a)],'source':_0x476683,'base64Cache':_0x2783ac,'status':_0x1f89ce[_0xc51e30(0x33e)]}),this[_0xc51e30(0x2f9)]();};});}['_getUploadFileURL'](){const _0x19af33=_0x4c1f23;var _0xfb99d4,_0x13db58;const _0x311580=this[_0x19af33(0x132)][_0x19af33(0x111)](Bo),_0x53ebfb=this[_0x19af33(0x132)][_0x19af33(0x111)](L);return(_0x13db58=(_0xfb99d4=_0x53ebfb==null?void 0x0:_0x53ebfb[_0x19af33(0x241)])!=null?_0xfb99d4:_0x311580)!=null?_0x13db58:Vo;}['_getSignURL'](){const _0x56be6c=_0x4c1f23;var _0x4fabe8,_0x5470e7;const _0x3bab7e=this[_0x56be6c(0x132)]['getConfig'](Fo),_0x1fe6a7=this[_0x56be6c(0x132)][_0x56be6c(0x111)](L);return(_0x5470e7=(_0x4fabe8=_0x1fe6a7==null?void 0x0:_0x1fe6a7['signUrlServerUrl'])!=null?_0x4fabe8:_0x3bab7e)!=null?_0x5470e7:Wo;}[_0x4c1f23(0x1b3)](){const _0x1ea07e=_0x4c1f23;var _0x519be2;const _0x4047f8=this[_0x1ea07e(0x132)][_0x1ea07e(0x111)](L);return(_0x519be2=_0x4047f8==null?void 0x0:_0x4047f8['downloadEndpointUrl'])!=null?_0x519be2:location[_0x1ea07e(0xe3)];}[_0x4c1f23(0x196)](_0x3529d1,_0x253db9){const _0x340a07=_0x4c1f23;return _0x3529d1[_0x340a07(0x18e)](_0x340a07(0x178),_0x253db9);}[_0x4c1f23(0x2f9)](){const _0x58ca30=_0x4c1f23;this[_0x58ca30(0x376)]-=0x1,this['_change$'][_0x58ca30(0x23d)](this['_waitCount']);}};yt=xo([St(0x0,_0x321449(_0x1fbfa2)),St(0x1,_0x4d21d1),St(0x2,_0x321449(_0x375068))],yt);var Go=Object['defineProperty'],Yo=Object[_0x4c1f23(0x133)],Ko=(_0x51317b,_0x582bc7,_0x3363cc,_0x2fc0d5)=>{const _0x18d4c6=_0x4c1f23;for(var _0x18ca18=_0x2fc0d5>0x1?void 0x0:_0x2fc0d5?Yo(_0x582bc7,_0x3363cc):_0x582bc7,_0x3929bb=_0x51317b[_0x18d4c6(0x78)]-0x1,_0x151fd1;_0x3929bb>=0x0;_0x3929bb--)(_0x151fd1=_0x51317b[_0x3929bb])&&(_0x18ca18=(_0x2fc0d5?_0x151fd1(_0x582bc7,_0x3363cc,_0x18ca18):_0x151fd1(_0x18ca18))||_0x18ca18);return _0x2fc0d5&&_0x18ca18&&Go(_0x582bc7,_0x3363cc,_0x18ca18),_0x18ca18;},Pe=(_0x18987c,_0x53ad4f)=>(_0x50e1a1,_0x505f4d)=>_0x53ad4f(_0x50e1a1,_0x505f4d,_0x18987c);let et=class extends _0x2dacfb{constructor(_0x9a4408,_0x5ae19d,_0x422e7a,_0x5e92e6,_0x179e4d){const _0x5ab3ad=_0x4c1f23;super(),this[_0x5ab3ad(0x162)]=_0x9a4408,this[_0x5ab3ad(0x310)]=_0x5ae19d,this[_0x5ab3ad(0x15c)]=_0x422e7a,this['_collaborationSessionService']=_0x5e92e6,this[_0x5ab3ad(0x119)]=_0x179e4d,this[_0x5ab3ad(0x240)](),this[_0x5ab3ad(0x185)]();}['_initCloseConn'](){const _0x1defeb=_0x4c1f23,_0x241736=async _0x44854b=>{const _0xef8dbb=_0x4c7d;(await this[_0xef8dbb(0x2a8)][_0xef8dbb(0x2ec)](_0x44854b))[_0xef8dbb(0x99)][_0xef8dbb(0x1a7)](_0x1f1135(_0x4fe7e2=>_0x4fe7e2[_0xef8dbb(0x186)]===_0x273d8c[_0xef8dbb(0x1d7)]),_0x3ae8cf(this['dispose$']))[_0xef8dbb(0x280)](_0x193543=>{const _0x189236=_0xef8dbb,_0x3c6a78=_0x193543,{reason:_0x19bd48}=_0x3c6a78[_0x189236(0x339)];this[_0x189236(0x162)]['get'](_0x5d3b7c)[_0x189236(0x160)]({'type':_0x57eb36[_0x189236(0xcd)],'content':this['_localeService']['t'](_0x189236(0x29e))+'('+_0x19bd48+')'}),this[_0x189236(0x15c)][_0x189236(0xb6)](new _0x42c12f(_0x44854b)['id'],!0x1),this[_0x189236(0x2a8)][_0x189236(0x89)](_0x44854b);});};_0x5de0ce(this[_0x1defeb(0x310)][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x10d)]),this['_univerInstanceService'][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x11d)]))['pipe'](_0x3d528e(_0x385708=>_0x385708[_0x1defeb(0x34e)]()),_0x1f1135(_0x3ad20f=>!_0x46dc72(_0x3ad20f)),_0x3ae8cf(this[_0x1defeb(0x265)]))[_0x1defeb(0x280)](_0x4c291a=>{_0x241736(_0x4c291a);});}[_0x4c1f23(0x240)](){const _0x3d169c=_0x4c1f23,_0x6342=async _0x37811c=>{const _0x4d4163=_0x4c7d;(await this[_0x4d4163(0x2a8)][_0x4d4163(0x2ec)](_0x37811c))[_0x4d4163(0x99)][_0x4d4163(0x1a7)](_0x1f1135(_0x487ac7=>_0x487ac7['eventID']===_0x273d8c[_0x4d4163(0x2c9)]),_0x3ae8cf(this[_0x4d4163(0x265)]))[_0x4d4163(0x280)](_0x310fd0=>{const _0xfd56fc=_0x4d4163,_0x164e2e=_0x310fd0,{objectId:_0x192fd4}=_0x164e2e[_0xfd56fc(0x339)],_0x5a0420=this['_injector']['get'](_0x293481);_0x192fd4===_0x37811c?_0x5a0420[_0xfd56fc(0x3de)](_0x37811c):_0x5a0420['refreshPermission'](_0x37811c,_0x192fd4);});};_0x5de0ce(this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9['UNIVER_SHEET']),this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9[_0x3d169c(0x11d)]))[_0x3d169c(0x1a7)](_0x3d528e(_0x172dea=>_0x172dea[_0x3d169c(0x34e)]()),_0x1f1135(_0x2982b2=>!_0x46dc72(_0x2982b2)),_0x3ae8cf(this['dispose$']))['subscribe'](_0x3ce3a9=>{_0x6342(_0x3ce3a9);});}};et=Ko([Pe(0x0,_0x321449(_0x313fa0)),Pe(0x1,_0x375068),Pe(0x2,_0x52f39f),Pe(0x3,_0x321449(ce)),Pe(0x4,_0x321449(_0x2e153b))],et);var Xo=Object[_0x4c1f23(0x2e9)],Jo=Object[_0x4c1f23(0x133)],qo=(_0x158150,_0x30b1ca,_0x35aa81,_0x2a9490)=>{const _0x44e480=_0x4c1f23;for(var _0x7d06c8=_0x2a9490>0x1?void 0x0:_0x2a9490?Jo(_0x30b1ca,_0x35aa81):_0x30b1ca,_0x317a76=_0x158150[_0x44e480(0x78)]-0x1,_0x303401;_0x317a76>=0x0;_0x317a76--)(_0x303401=_0x158150[_0x317a76])&&(_0x7d06c8=(_0x2a9490?_0x303401(_0x30b1ca,_0x35aa81,_0x7d06c8):_0x303401(_0x7d06c8))||_0x7d06c8);return _0x2a9490&&_0x7d06c8&&Xo(_0x30b1ca,_0x35aa81,_0x7d06c8),_0x7d06c8;},gs=(_0x3fe6fd,_0x2beb97)=>(_0x3fccd3,_0x2aa934)=>_0x2beb97(_0x3fccd3,_0x2aa934,_0x3fe6fd);let Nt=class{constructor(_0x2d6011,_0x2fbe54){const _0x2a349e=_0x4c1f23;this[_0x2a349e(0x132)]=_0x2d6011,this[_0x2a349e(0x19f)]=_0x2fbe54;}async[_0x4c1f23(0x134)](_0xe02aec,_0x15245b){const _0x443fda=_0x4c1f23;var _0x3716ce;const {unitID:_0x32d875,type:_0x4d8c99,revision:_0x1c3dbc=0x0}=_0x15245b,_0x5d17b7=this['_getSnapshotAPIPrefix']()+'/'+_0x4d8c99+_0x443fda(0x3e1)+_0x32d875+'/rev/'+_0x1c3dbc,_0x21b0b6=(await this[_0x443fda(0x19f)][_0x443fda(0x348)](_0x5d17b7))[_0x443fda(0x1d2)],_0x308c68=(_0x3716ce=_0x21b0b6['snapshot'])==null?void 0x0:_0x3716ce[_0x443fda(0x245)];if(_0x308c68){const _0x54942b=_0x308c68==null?void 0x0:_0x308c68[_0x443fda(0x15b)],_0x421e8b=_0x2c535e[_0x443fda(0xe2)](_0x58e839(_0x54942b));_0x308c68[_0x443fda(0x15b)]=_0x421e8b,Object['entries'](_0x308c68[_0x443fda(0x88)])[_0x443fda(0x100)](([,_0x5dad7a])=>{const _0x5d82aa=_0x443fda,_0x4d4bd5=_0x5dad7a[_0x5d82aa(0x15b)],_0x5af493=_0x2c535e[_0x5d82aa(0xe2)](_0x58e839(_0x4d4bd5));_0x5dad7a[_0x5d82aa(0x15b)]=_0x5af493;});}return _0x21b0b6;}async[_0x4c1f23(0xaa)](_0x137743,_0x16905b){const _0x2497bc=_0x4c1f23,{unitID:_0x34e997,type:_0x2361f8,blockID:_0x5b20eb}=_0x16905b,_0x53bd32=this[_0x2497bc(0x2cf)]()+'/'+_0x2361f8+_0x2497bc(0x3e1)+_0x34e997+_0x2497bc(0x82)+_0x5b20eb;return(await this[_0x2497bc(0x19f)][_0x2497bc(0x348)](_0x53bd32))['body'];}async['getDeserializedSheetBlock'](_0x4a1501,_0xb1f19){const _0xcec57d=_0x4c1f23,{unitID:_0x2a7799,type:_0x593a52,blockID:_0x23f784}=_0xb1f19,_0x329e96=this[_0xcec57d(0x2cf)]()+_0xcec57d(0x82)+_0x593a52+'/unit/'+_0x2a7799+_0xcec57d(0x82)+_0x23f784;return(await this['_httpService'][_0xcec57d(0x348)](_0x329e96))[_0xcec57d(0x1d2)];}async[_0x4c1f23(0x156)](_0x3b0eba,_0x3246cb){const _0x2b5bc1=_0x4c1f23,{unitID:_0x89e701,type:_0x448d4e,from:_0x263997,to:_0x28e48b}=_0x3246cb,_0x4447e8=this['_getAPIPrefix']()+'/'+_0x448d4e+_0x2b5bc1(0x3e1)+_0x89e701+_0x2b5bc1(0x33b)+_0x263997+_0x2b5bc1(0x2eb)+_0x28e48b;return(await this[_0x2b5bc1(0x19f)][_0x2b5bc1(0x348)](_0x4447e8))[_0x2b5bc1(0x1d2)];}[_0x4c1f23(0xea)](){const _0x26605=_0x4c1f23;var _0x5870d0;return(_0x5870d0=this[_0x26605(0x132)][_0x26605(0x111)](mn))!=null?_0x5870d0:this['_getAPIPrefix']();}[_0x4c1f23(0x2cf)](){const _0x238588=_0x4c1f23;var _0x5a0953,_0x2aa118;const _0x54a779=this['_configService']['getConfig'](dn),_0x55803b=this[_0x238588(0x132)]['getConfig'](L);return(_0x2aa118=(_0x5a0953=_0x55803b==null?void 0x0:_0x55803b[_0x238588(0x139)])!=null?_0x5a0953:_0x54a779)!=null?_0x2aa118:fn;}async[_0x4c1f23(0x2f0)](_0xe6e3ee,_0x1258f5){const _0x166c14=_0x4c1f23,_0x52d4f5=_0x166c14(0x216)+_0x1258f5[_0x166c14(0x1d3)]+_0x166c14(0x3e1)+_0x1258f5[_0x166c14(0x1f3)]+_0x166c14(0x31a);return(await this[_0x166c14(0x19f)]['get'](_0x52d4f5,{'params':{'resourceId':JSON['stringify'](_0x1258f5[_0x166c14(0x3e0)])}}))[_0x166c14(0x1d2)];}[_0x4c1f23(0x2d1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x5c1fc0=_0x4c1f23;throw new Error(_0x5c1fc0(0x73));}[_0x4c1f23(0xde)](){const _0x2ecc70=_0x4c1f23;throw new Error(_0x2ecc70(0x73));}[_0x4c1f23(0x1ab)](){const _0x3e9fd0=_0x4c1f23;throw new Error(_0x3e9fd0(0x73));}};Nt=qo([gs(0x0,_0x4d21d1),gs(0x1,_0x321449(_0x1fbfa2))],Nt);var zo=Object[_0x4c1f23(0x2e9)],Zo=Object['getOwnPropertyDescriptor'],Qo=(_0x501642,_0x19384c,_0x3704a4,_0x5f2f15)=>{const _0x18c7e6=_0x4c1f23;for(var _0x3fd2d1=_0x5f2f15>0x1?void 0x0:_0x5f2f15?Zo(_0x19384c,_0x3704a4):_0x19384c,_0x369403=_0x501642[_0x18c7e6(0x78)]-0x1,_0xb1066e;_0x369403>=0x0;_0x369403--)(_0xb1066e=_0x501642[_0x369403])&&(_0x3fd2d1=(_0x5f2f15?_0xb1066e(_0x19384c,_0x3704a4,_0x3fd2d1):_0xb1066e(_0x3fd2d1))||_0x3fd2d1);return _0x5f2f15&&_0x3fd2d1&&zo(_0x19384c,_0x3704a4,_0x3fd2d1),_0x3fd2d1;},ye=(_0x51a7d1,_0x5bf99f)=>(_0x203c44,_0x41650c)=>_0x5bf99f(_0x203c44,_0x41650c,_0x51a7d1);let Ut=class extends _0x2d287d{constructor(_0x3a01ae,_0x3ce015,_0x698998,_0x31c227,_0x3b744c){super(_0x3a01ae,_0x3ce015,_0x698998),this['_transformService']=_0x31c227,this['_logService']=_0x3b744c;}[_0x4c1f23(0x2bc)](_0xc5a02f,_0xb3b029){const _0x31df5c=_0x4c1f23,_0x1413ae=this['_getUndoStack'](_0xc5a02f);if(_0x1413ae)try{const _0x45f0d9=this['_transformStack'](_0x1413ae,_0xb3b029);this[_0x31df5c(0x38a)](_0xc5a02f,_0x45f0d9);}catch(_0x14081f){this[_0x31df5c(0x128)]['error'](_0x31df5c(0x319),_0x14081f),this[_0x31df5c(0x13a)](_0xc5a02f);}const _0x3c2374=this[_0x31df5c(0xaf)](_0xc5a02f);if(_0x3c2374)try{const _0x39c21e=this['_transformStack'](_0x3c2374,_0xb3b029);this[_0x31df5c(0x3bd)](_0xc5a02f,_0x39c21e);}catch(_0x2e98ca){this['_logService'][_0x31df5c(0x17a)](_0x2e98ca),this[_0x31df5c(0x3c8)](_0xc5a02f);}}[_0x4c1f23(0x13a)](_0x480e6d){const _0x10c3f6=_0x4c1f23,_0x1373a9=this[_0x10c3f6(0x3b6)](_0x480e6d);_0x1373a9&&(_0x1373a9[_0x10c3f6(0x78)]=0x0,this[_0x10c3f6(0x7f)]());}[_0x4c1f23(0x3c8)](_0x6148ac){const _0x52c34c=_0x4c1f23,_0x552da3=this['_getRedoStack'](_0x6148ac);_0x552da3&&(_0x552da3[_0x52c34c(0x78)]=0x0,this[_0x52c34c(0x7f)]());}[_0x4c1f23(0x38a)](_0x54c295,_0x59ed6c){const _0x47c581=_0x4c1f23;this['_undoStacks'][_0x47c581(0x329)](_0x54c295,_0x59ed6c),this[_0x47c581(0x7f)]();}[_0x4c1f23(0x3bd)](_0x573ea8,_0x2e08c2){const _0x1e6614=_0x4c1f23;this[_0x1e6614(0x1bd)][_0x1e6614(0x329)](_0x573ea8,_0x2e08c2),this['_updateStatus']();}[_0x4c1f23(0x164)](_0x326379,_0x5c2a55){const _0x209577=_0x4c1f23,_0x962588=[];let _0x2a7a9d=_0x5c2a55,_0x440239=_0x5c2a55;for(let _0x97c83b=_0x326379[_0x209577(0x78)]-0x1;_0x97c83b>=0x0;_0x97c83b--){const {unitID:_0x5bdbc5,undoMutations:_0x3a870f,redoMutations:_0x885321}=_0x326379[_0x97c83b],_0x4e0c9c=this[_0x209577(0x2ce)]['transformMutationsWithChangeset'](_0x2a7a9d,_0x3a870f),_0x219ffb=this[_0x209577(0x2ce)][_0x209577(0xbf)](_0x440239,_0x885321);if(_0x54fa31(_0x4e0c9c)||_0x54fa31(_0x219ffb)){this['_logService'][_0x209577(0x17a)](_0x209577(0x319),_0x209577(0x1fa),_0x4e0c9c,_0x219ffb);break;}_0x2a7a9d=_0x4e0c9c[_0x209577(0x85)],_0x440239=_0x219ffb['c1Prime'],_0x962588[_0x209577(0x27c)]({'unitID':_0x5bdbc5,'undoMutations':_0x4e0c9c[_0x209577(0x101)],'redoMutations':_0x219ffb['m2Prime']});}return _0x962588[_0x209577(0x103)]();}};Ut=Qo([ye(0x0,_0x375068),ye(0x1,_0x265863),ye(0x2,_0x163f08),ye(0x3,_0x56767e),ye(0x4,_0x50688a)],Ut);class ea extends _0x2dacfb{constructor(){const _0x58a577=_0x4c1f23;super(),l(this,_0x58a577(0x112)),this[_0x58a577(0x112)]=_0x1e2c02(window,'popstate')[_0x58a577(0x1a7)](_0x289d57(this[_0x58a577(0x265)]),_0xb96cea(0x1),_0x5810d1(void 0x0));}[_0x4c1f23(0x199)](_0x57b0b8,_0x27e870,_0x4a5550=!0x1){const _0x5ea994=_0x4c1f23,_0x2f0252=new URL(window['location'][_0x5ea994(0x165)]);_0x2f0252[_0x5ea994(0xb2)][_0x5ea994(0x329)](_0x57b0b8,_0x27e870),_0x4a5550?window['history']['replaceState']('','',_0x2f0252[_0x5ea994(0x226)]()):window['history']['pushState']('','',_0x2f0252['toString']());}[_0x4c1f23(0x331)](_0x31641b,_0x3a81e6=!0x1){const _0x432f92=_0x4c1f23,_0x559541=new URL(window[_0x432f92(0x3b2)][_0x432f92(0x165)]);_0x559541[_0x432f92(0xb2)]['delete'](_0x31641b),_0x3a81e6?window[_0x432f92(0x399)][_0x432f92(0x1f6)]('','',_0x559541[_0x432f92(0x226)]()):window[_0x432f92(0x399)][_0x432f92(0x1e2)]('','',_0x559541['toString']());}[_0x4c1f23(0xa0)](_0x11fd4c){const _0x21fbc9=_0x4c1f23;var _0x413502;return(_0x413502=new URL(window['location']['href'])['searchParams'][_0x21fbc9(0x348)](_0x11fd4c))!=null?_0x413502:void 0x0;}}var Ws=Object[_0x4c1f23(0x2e9)],ta=Object[_0x4c1f23(0x133)],sa=(_0x13b63d,_0xd4a9d3,_0x5b3b9d)=>_0xd4a9d3 in _0x13b63d?Ws(_0x13b63d,_0xd4a9d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3b9d}):_0x13b63d[_0xd4a9d3]=_0x5b3b9d,ia=(_0x221d4c,_0x1e6e43,_0x107220,_0x5353d4)=>{for(var _0x56cdf1=_0x5353d4>0x1?void 0x0:_0x5353d4?ta(_0x1e6e43,_0x107220):_0x1e6e43,_0x1f40f2=_0x221d4c['length']-0x1,_0x2ba653;_0x1f40f2>=0x0;_0x1f40f2--)(_0x2ba653=_0x221d4c[_0x1f40f2])&&(_0x56cdf1=(_0x5353d4?_0x2ba653(_0x1e6e43,_0x107220,_0x56cdf1):_0x2ba653(_0x56cdf1))||_0x56cdf1);return _0x5353d4&&_0x56cdf1&&Ws(_0x1e6e43,_0x107220,_0x56cdf1),_0x56cdf1;},ke=(_0x31ba63,_0x104238)=>(_0x1efcee,_0x532f53)=>_0x104238(_0x1efcee,_0x532f53,_0x31ba63),na=(_0x52eeb0,_0x4c3dc3,_0x47709d)=>sa(_0x52eeb0,_0x4c3dc3+'',_0x47709d);const ra=_0x4c1f23(0xe1);let Mt=class extends _0x43f0d0{constructor(_0x1e43d1=yn,_0x54d00d,_0x50ddb6,_0x26b044,_0x3b8d85){const _0x5c67bf=_0x4c1f23;super(),this[_0x5c67bf(0x1bb)]=_0x1e43d1,this['_logService']=_0x54d00d,this['_renderManagerService']=_0x50ddb6,this['_injector']=_0x26b044,this['_configService']=_0x3b8d85;const {..._0x173d19}=this[_0x5c67bf(0x1bb)];this[_0x5c67bf(0x132)][_0x5c67bf(0x102)](L,_0x173d19);}[_0x4c1f23(0xa9)](){const _0x4db76a=_0x4c1f23;this[_0x4db76a(0xe4)](),_0x50ed8d(this[_0x4db76a(0x162)],[[pe],[qe],[et]]);}[_0x4c1f23(0x350)](){const _0x2d9c8f=_0x4c1f23;_0x50ed8d(this[_0x2d9c8f(0x162)],[[ze]]);}[_0x4c1f23(0x273)](){const _0x596b09=_0x4c1f23;this[_0x596b09(0x38e)]();}[_0x4c1f23(0xe4)](){const _0x45b3f7=_0x4c1f23;var _0x1ccf22,_0x472eb3,_0x5ef82d,_0x1ba141;this['_injector']['has'](_0x2fbed3)&&this['_logService'][_0x45b3f7(0x17a)](_0x45b3f7(0x342),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x21af32=[[_0x2fbed3,{'useClass':Ut}],[ce],[Ft],[_0x1fbfa2],[Fs,{'useClass':ea}],[ae],[D],[_0x57aa72],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x472eb3=(_0x1ccf22=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ccf22[_0x45b3f7(0x39d)])!=null?_0x472eb3:Et}],[_0x147a26,{'useClass':_0x5d6c50}],[_0x4c90dd,{'useClass':Nt}],[_0x2eeda2,{'useClass':Pt}],[_0x74670d,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x5ef82d=this[_0x45b3f7(0x1bb)])!=null&&_0x5ef82d['enableSingleActiveInstanceLock']&&_0x21af32[_0x45b3f7(0x27c)]([tt,{'useClass':rr}]),_0x21af32=_0x1588d5(_0x21af32,(_0x1ba141=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ba141[_0x45b3f7(0x1a2)]),_0x21af32['forEach'](_0x14ea91=>this[_0x45b3f7(0x162)]['add'](_0x14ea91)),this['_initModules']();}[_0x4c1f23(0x38e)](){const _0x2de209=_0x4c1f23;this['disposeWithMe'](this[_0x2de209(0x333)]['registerRenderModule'](_0x4c91c9[_0x2de209(0x11d)],[Dt])),this['disposeWithMe'](this['_renderManagerService'][_0x2de209(0x1c8)](_0x4c91c9[_0x2de209(0x10d)],[wt]));}[_0x4c1f23(0x2b4)](){const _0x75b607=_0x4c1f23;var _0x56019d,_0x7761a1;this['_injector']['get'](_0x1fbfa2)[_0x75b607(0xa1)]({'priority':0x14,'interceptor':_0x537a47({'maxParallel':0x6})}),this['_injector'][_0x75b607(0x348)](Qe),(_0x56019d=this['_config'])!=null&&_0x56019d[_0x75b607(0x114)]||this[_0x75b607(0x162)][_0x75b607(0x348)](D)[_0x75b607(0x3a2)](),(_0x7761a1=this[_0x75b607(0x1bb)])!=null&&_0x7761a1['enableAuthServer']&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ze),this[_0x75b607(0x162)][_0x75b607(0x348)](Ae),this[_0x75b607(0x162)][_0x75b607(0x20e)](Ue)&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ue);}};na(Mt,'pluginName',ra),Mt=ia([_0x4869be(_0x229d30),ke(0x1,_0x50688a),ke(0x2,_0x3f9a6b),ke(0x3,_0x321449(_0x313fa0)),ke(0x4,_0x4d21d1)],Mt);export{yo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Fs as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ea as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
1
+ const _0x2cf6ff=_0xd63a;(function(_0x396ea2,_0x3881a0){const _0xdbef76=_0xd63a,_0x25086d=_0x396ea2();while(!![]){try{const _0x1a95b5=parseInt(_0xdbef76(0xfc))/0x1+-parseInt(_0xdbef76(0x31b))/0x2+parseInt(_0xdbef76(0x304))/0x3*(parseInt(_0xdbef76(0x2ef))/0x4)+parseInt(_0xdbef76(0x3cf))/0x5*(parseInt(_0xdbef76(0xe0))/0x6)+-parseInt(_0xdbef76(0x38e))/0x7*(-parseInt(_0xdbef76(0x2e3))/0x8)+parseInt(_0xdbef76(0x29f))/0x9*(-parseInt(_0xdbef76(0x401))/0xa)+parseInt(_0xdbef76(0x220))/0xb*(-parseInt(_0xdbef76(0x1c4))/0xc);if(_0x1a95b5===_0x3881a0)break;else _0x25086d['push'](_0x25086d['shift']());}catch(_0xd50fa7){_0x25086d['push'](_0x25086d['shift']());}}}(_0x38c5,0xda12f));var zs=Object['defineProperty'],Zs=(_0x7aa129,_0x314f3b,_0x58e409)=>_0x314f3b in _0x7aa129?zs(_0x7aa129,_0x314f3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58e409}):_0x7aa129[_0x314f3b]=_0x58e409,l=(_0xbf11bd,_0x5a791b,_0x3c77e5)=>Zs(_0xbf11bd,typeof _0x5a791b!=_0x2cf6ff(0x13b)?_0x5a791b+'':_0x5a791b,_0x3c77e5);import{createIdentifier as _0x131476,Inject as _0x11c4b2,Disposable as _0x28d30b,DisposableCollection as _0x435f5a,toDisposable as _0x57baeb,IConfigService as _0x5d22a5,ILogService as _0x58af89,UserManagerService as _0xffde51,UniverInstanceType as _0x5ba247,IUniverInstanceService as _0x3a69fb,LocaleService as _0x56c312,Optional as _0x32a7fe,RxDisposable as _0x424705,Injector as _0x3ca714,Tools as _0x3d523e,ILocalStorageService as _0x100b17,ICommandService as _0x339bfb,JSONX as _0x295634,CommandType as _0xccd063,IPermissionService as _0xbe145,IUndoRedoService as _0x55c638,sequenceExecute as _0x2a6345,debounce as _0x25bd20,Rectangle as _0x4df9d6,COLORS as _0xcac1ea,ColorKit as _0x449a4e,ThemeService as _0x156127,fromEventSubject as _0x1701f0,useDependency as _0x15d69a,connectInjector as _0x1be696,Workbook as _0x18ae05,isInternalEditorID as _0x5a1828,LocalUndoRedoService as _0x53b8f9,IContextService as _0x448680,DependentOn as _0x1044e4,Plugin as _0x4c33c6,touchDependencies as _0x34d48e,IAuthzIoService as _0x58edf4,mergeOverrideWithDependencies as _0x3d2851}from'@univerjs/core';import{Subject as _0x5ebd47,merge as _0x577df9,takeUntil as _0x5f0229,BehaviorSubject as _0xa8903e,distinctUntilChanged as _0x3c67f1,fromEvent as _0x4f5602,map as _0xe7708d,shareReplay as _0xbb5cb7,take as _0x3507ef,of as _0x1a6ece,debounceTime as _0x13e7ad,filter as _0x332bf1,switchMap as _0x42baee,combineLatest as _0xb1d5f6,concatMap as _0x20f242,mapTo as _0x17764b}from'rxjs';import{map as _0x4a2a85,take as _0x1fdc95,filter as _0x584f39,delay as _0x2972c0,throttleTime as _0x5b2033,takeUntil as _0x1cc51a,switchMap as _0xc1da79}from'rxjs/operators';import{MessageType as _0x3aebb1,Tooltip as _0x2b5e7f}from'@univerjs/design';import{IBeforeCloseService as _0x43afaa,IMessageService as _0x3d2cd0,INotificationService as _0x3cb956,useObservable as _0x34de5b,BuiltInUIPart as _0x2617bd,IUIPartsService as _0x2082c6}from'@univerjs/ui';import{HTTPService as _0xc66412,WebSocketService as _0x3b3681,MergeInterceptorFactory as _0x273707,HTTPRequest as _0x2fdb11,IHTTPImplementation as _0x447502,XHRHTTPImplementation as _0x56ea82,ThresholdInterceptorFactory as _0x41e9e4}from'@univerjs/network';import{CollaborationEvent as _0x236400,parseChangesetToProtocol as _0x527dbc,ISnapshotServerService as _0x473b7c,isTransformMutationFailure as _0x265ca1,isTransformMutationsWithChangesetSuccess as _0x61acc5,ITransformService as _0x1d81ff,RevisionService as _0x382160,mapDocumentTypeToUniverType as _0x4053f9,isTransformChangesetsSuccess as _0x535544,CompressMutationService as _0x5b8dc0,parseProtocolChangeset as _0x2f495d,SnapshotService as _0x3330fb,textEncoder as _0x55c956,b64DecodeUnicode as _0xf37c0a,isTransformMutationsWithChangesetFailure as _0x32c4b6,UniverCollaborationPlugin as _0x19cb4a}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x45254d}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x253567,RichTextEditingMutation as _0x137108,SetTextSelectionsOperation as _0x29ed30,DocSkeletonManagerService as _0x4498de}from'@univerjs/docs';import{DocIMEInputManagerService as _0x7e116c,DocStateChangeManagerService as _0x488409,NodePositionConvertToCursor as _0xd5545a,isValidRectRange as _0x32be08,NodePositionConvertToRectRange as _0x4e719a,TEXT_RANGE_LAYER_INDEX as _0x35e282,SetDocZoomRatioOperation as _0x5c3d7a}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5170b3,SetSelectionsOperation as _0xccbe27,InsertSheetMutation as _0x46f3fa,EmptyMutation as _0x2fd71f,WorkbookEditablePermission as _0x472746,RefRangeService as _0x29e128,EffectRefRangId as _0x1b652a,handleIRemoveRow as _0x33362a,handleIRemoveCol as _0x48280d,handleMoveRange as _0x20bba7,handleInsertRow as _0x3e245b,handleInsertRangeMoveRight as _0x4bb0be,handleInsertRangeMoveDown as _0x5ebf3e,handleInsertCol as _0x41eb19,handleDeleteRangeMoveUp as _0x6ffff2,handleDeleteRangeMoveLeft as _0x32c2ac,runRefRangeMutations as _0x4f2272,SetWorksheetActivateCommand as _0x1a6f76}from'@univerjs/sheets';import{IRenderManagerService as _0x45596d,Shape as _0x3224fa,Rect as _0xfe6739,getColor as _0xfc94f4,RegularPolygon as _0xfff04a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x54eff9,Vector2 as _0x57ce41}from'@univerjs/engine-render';import{ImageSourceType as _0x48f90c,ImageUploadStatusType as _0x139819,IImageIoService as _0x4fca93}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x276fac,serializeRangeWithSheet as _0x22216c}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x185e08,VIEWPORT_KEY as _0x4d1621,getCoordByCell as _0x26399,getSheetObject as _0x37206a,SheetPermissionInitController as _0x4a74e1}from'@univerjs/sheets-ui';import _0x3700dc,{forwardRef as _0x2e9a8e,useRef as _0x56832d,createElement as _0x1c6405,useCallback as _0x57b3b1}from'react';import{IRemoteInstanceService as _0x157237}from'@univerjs/rpc';import{getAttachHeader as _0x40e740}from'@univerjs-pro/license';const dn=_0x2cf6ff(0x33a),fn=_0x2cf6ff(0x18d),mn=_0x2cf6ff(0x103),Oa=_0x2cf6ff(0x372),gn=0x7d0,Sn='COLLAB_WEB_SOCKET_URL',pn='ws://127.0.0.1:8000/universer-api/comb/connect',vn=_0x2cf6ff(0x1d6),In=0x7530,Ns=_0x2cf6ff(0x299),Us=0x4e20,En=0x4e20,Cn=_0x2cf6ff(0x149),bn=0x3,Tn=_0x2cf6ff(0x24f),Rn=0x3e8,On=_0x2cf6ff(0x178),Dn=_0x2cf6ff(0x2bc),wn=_0x2cf6ff(0x274),Pn='/universer-api/oidc/authpage';var Ms=(_0x5659bc=>(_0x5659bc[_0x5659bc['UNDEFINED']=0x0]=_0x2cf6ff(0x124),_0x5659bc[_0x5659bc['OK']=0x1]='OK',_0x5659bc[_0x5659bc[_0x2cf6ff(0x21c)]=0x2]=_0x2cf6ff(0x21c),_0x5659bc[_0x5659bc[_0x2cf6ff(0x323)]=0x3]=_0x2cf6ff(0x323),_0x5659bc[_0x5659bc[_0x2cf6ff(0x36c)]=0x4]='NOT_FOUND',_0x5659bc[_0x5659bc['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x5659bc[_0x5659bc[_0x2cf6ff(0x334)]=0x6]=_0x2cf6ff(0x334),_0x5659bc[_0x5659bc[_0x2cf6ff(0x429)]=0x7]=_0x2cf6ff(0x429),_0x5659bc[_0x5659bc[_0x2cf6ff(0x3e7)]=0x8]=_0x2cf6ff(0x3e7),_0x5659bc[_0x5659bc['COMPLETION_FINISHED']=0x9]=_0x2cf6ff(0xf2),_0x5659bc[_0x5659bc[_0x2cf6ff(0x255)]=0x1389]=_0x2cf6ff(0x255),_0x5659bc[_0x5659bc['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2cf6ff(0x2a8),_0x5659bc[_0x5659bc[_0x2cf6ff(0x32e)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5659bc[_0x5659bc[_0x2cf6ff(0x254)]=0x1b59]=_0x2cf6ff(0x254),_0x5659bc[_0x5659bc[_0x2cf6ff(0x2b4)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5659bc[_0x5659bc[_0x2cf6ff(0x35e)]=0x1b5b]=_0x2cf6ff(0x35e),_0x5659bc[_0x5659bc['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2cf6ff(0x293),_0x5659bc[_0x5659bc[_0x2cf6ff(0x2f3)]=0x1f41]=_0x2cf6ff(0x2f3),_0x5659bc[_0x5659bc[_0x2cf6ff(0x11a)]=0x2329]=_0x2cf6ff(0x11a),_0x5659bc[_0x5659bc[_0x2cf6ff(0x41b)]=0x232a]=_0x2cf6ff(0x41b),_0x5659bc[_0x5659bc[_0x2cf6ff(0x22e)]=0x232b]=_0x2cf6ff(0x22e),_0x5659bc[_0x5659bc[_0x2cf6ff(0x399)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5659bc[_0x5659bc[_0x2cf6ff(0x403)]=0x232d]=_0x2cf6ff(0x403),_0x5659bc[_0x5659bc[_0x2cf6ff(0x451)]=0x2711]=_0x2cf6ff(0x451),_0x5659bc[_0x5659bc[_0x2cf6ff(0x2fa)]=0x2712]=_0x2cf6ff(0x2fa),_0x5659bc[_0x5659bc['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2cf6ff(0x2c2),_0x5659bc[_0x5659bc[_0x2cf6ff(0x331)]=0x2714]=_0x2cf6ff(0x331),_0x5659bc[_0x5659bc[_0x2cf6ff(0x427)]=-0x1]=_0x2cf6ff(0x427),_0x5659bc))(Ms||{}),H=(_0x350762=>(_0x350762[_0x350762['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x350762[_0x350762[_0x2cf6ff(0x359)]=0x1]=_0x2cf6ff(0x359),_0x350762[_0x350762[_0x2cf6ff(0x43d)]=0x2]='UNIVER_SHEET',_0x350762[_0x350762[_0x2cf6ff(0x1bc)]=0x3]='UNIVER_SLIDE',_0x350762[_0x350762['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x350762[_0x350762[_0x2cf6ff(0x427)]=-0x1]=_0x2cf6ff(0x427),_0x350762))(H||{}),I=(_0x271c4a=>(_0x271c4a[_0x271c4a[_0x2cf6ff(0x1d9)]=0x0]=_0x2cf6ff(0x1d9),_0x271c4a[_0x271c4a['HELLO']=0x1]=_0x2cf6ff(0x3fd),_0x271c4a[_0x271c4a[_0x2cf6ff(0x171)]=0x2]=_0x2cf6ff(0x171),_0x271c4a[_0x271c4a[_0x2cf6ff(0x14c)]=0x3]=_0x2cf6ff(0x14c),_0x271c4a[_0x271c4a[_0x2cf6ff(0x44b)]=0x4]='INGEST',_0x271c4a[_0x271c4a[_0x2cf6ff(0x116)]=0x5]=_0x2cf6ff(0x116),_0x271c4a[_0x271c4a[_0x2cf6ff(0x262)]=0x6]=_0x2cf6ff(0x262),_0x271c4a[_0x271c4a[_0x2cf6ff(0x427)]=-0x1]=_0x2cf6ff(0x427),_0x271c4a))(I||{}),kt=(_0x428204=>(_0x428204[_0x428204[_0x2cf6ff(0x3d8)]=0x0]=_0x2cf6ff(0x3d8),_0x428204[_0x428204['OK']=0x1]='OK',_0x428204[_0x428204[_0x2cf6ff(0x3a4)]=0x2]=_0x2cf6ff(0x3a4),_0x428204[_0x428204['UNRECOGNIZED']=-0x1]=_0x2cf6ff(0x427),_0x428204))(kt||{}),As=(_0x185874=>(_0x185874[_0x185874[_0x2cf6ff(0x3e4)]=0x0]=_0x2cf6ff(0x3e4),_0x185874[_0x185874[_0x2cf6ff(0x1c2)]=0x1]=_0x2cf6ff(0x1c2),_0x185874[_0x185874['HttpExport']=0x2]=_0x2cf6ff(0x2ae),_0x185874[_0x185874['UnitEmbedded']=0x3]=_0x2cf6ff(0x211),_0x185874[_0x185874[_0x2cf6ff(0x315)]=0x4]=_0x2cf6ff(0x315),_0x185874[_0x185874['UNRECOGNIZED']=-0x1]=_0x2cf6ff(0x427),_0x185874))(As||{});const L=_0x2cf6ff(0x12d),yn={};function Nn(_0x23f4d2){const _0x57eae3=_0x2cf6ff;var _0x2891c0,_0x2f3bd4,_0x3aba0a,_0x4a4cd9;const _0x378e97=_0x23f4d2[_0x57eae3(0x406)],_0x1303c2=JSON[_0x57eae3(0x3ba)](_0x378e97);switch(_0x1303c2[_0x57eae3(0x411)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x24540a=_0x1303c2[_0x57eae3(0x18c)];return{..._0x1303c2,'data':_0x24540a,'cmd':_0x1303c2[_0x57eae3(0x411)]};}case I[_0x57eae3(0x171)]:{const _0x337706=_0x1303c2[_0x57eae3(0x3f3)];return{..._0x1303c2,'data':_0x337706,'cmd':_0x1303c2[_0x57eae3(0x411)]};}case I['RECV']:{const _0x5baf61=_0x1303c2[_0x57eae3(0x278)];switch(_0x5baf61[_0x57eae3(0x446)]){case _0x236400[_0x57eae3(0x14e)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x2891c0=_0x5baf61[_0x57eae3(0x106)])==null?void 0x0:_0x2891c0['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x1bb)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x2f3bd4=_0x5baf61[_0x57eae3(0x35d)])==null?void 0x0:_0x2f3bd4['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['NEW_CHANGESETS']:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x3aba0a=_0x5baf61[_0x57eae3(0x37a)])==null?void 0x0:_0x3aba0a['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x18e)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x4a4cd9=_0x5baf61[_0x57eae3(0x302)])==null?void 0x0:_0x4a4cd9['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['UPDATE_CURSOR']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x2c5)]},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['USERS_ENTER']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x36f)]},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['USERS_LEAVE']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['leaveEvent']},'cmd':_0x1303c2['cmd']};case _0x236400['LIVESHARE_NEW_HOST']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['liveShareNewHost']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x135)]:case _0x236400[_0x57eae3(0x233)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x257)]},'cmd':_0x1303c2['cmd']};case _0x236400[_0x57eae3(0x3ac)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['liveShareNewHost']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x115)]:return{..._0x1303c2,'data':_0x5baf61,'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x25b)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['commentUpdateEvent']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['UPDATE_PERMISSION_OBJ']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x141)]},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['SHOULD_CLOSE_CONN']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['shouldCloseConn']},'cmd':_0x1303c2[_0x57eae3(0x411)]};default:return _0x1303c2;}}default:return _0x1303c2;}}function Un(_0x46bbd4){const _0x38b050=_0x2cf6ff;switch(_0x46bbd4[_0x38b050(0x411)]){case I['HEARTBEAT']:case I[_0x38b050(0x3fd)]:return JSON[_0x38b050(0x1ff)]({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4[_0x38b050(0x2f6)]});case I[_0x38b050(0x44b)]:{let _0x4cb720;switch(_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x446)]){case _0x236400[_0x38b050(0x3a2)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x3a2)],'updateCursorEvent':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x406)]};break;}case _0x236400['USERS_LEAVE']:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x375)],'leaveEvent':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x3e3)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x3e3)],'joinEvent':_0x46bbd4['data'][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x2f9)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x2f9)],'liveShareNewHost':_0x46bbd4['data'][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x233)]:{_0x4cb720={'eventID':_0x236400['LIVESHARE_OPERATION'],'liveShareOperation':_0x46bbd4[_0x38b050(0x406)]['data']};break;}case _0x236400[_0x38b050(0x3ac)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x3ac)],'liveShareTerminate':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x130)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x130)],'liveShareRequestHost':_0x46bbd4['data'][_0x38b050(0x406)]};break;}case _0x236400['LIVESHARE_FETCH_OPERATIONS']:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x135)]};break;}default:_0x4cb720={'eventID':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x446)]};}return JSON['stringify']({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4['routeKey'],'collaMsg':_0x4cb720});}case I[_0x38b050(0x171)]:return JSON[_0x38b050(0x1ff)]({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4[_0x38b050(0x2f6)],'joinReq':_0x46bbd4[_0x38b050(0x406)]});case I[_0x38b050(0x14c)]:return JSON[_0x38b050(0x1ff)]({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4[_0x38b050(0x2f6)],'leaveReq':_0x46bbd4[_0x38b050(0x406)]});default:throw new Error(_0x38b050(0xee));}}var Mn=Object[_0x2cf6ff(0x2d3)],An=Object[_0x2cf6ff(0x289)],Ln=(_0x22a2bc,_0x191409,_0x12f39d,_0x3492ed)=>{const _0x4324da=_0x2cf6ff;for(var _0x29cef9=_0x3492ed>0x1?void 0x0:_0x3492ed?An(_0x191409,_0x12f39d):_0x191409,_0x55ca9d=_0x22a2bc[_0x4324da(0x183)]-0x1,_0x186334;_0x55ca9d>=0x0;_0x55ca9d--)(_0x186334=_0x22a2bc[_0x55ca9d])&&(_0x29cef9=(_0x3492ed?_0x186334(_0x191409,_0x12f39d,_0x29cef9):_0x186334(_0x29cef9))||_0x29cef9);return _0x3492ed&&_0x29cef9&&Mn(_0x191409,_0x12f39d,_0x29cef9),_0x29cef9;},Re=(_0x5d6dfe,_0x7760b8)=>(_0x2f43bc,_0x457f1e)=>_0x7760b8(_0x2f43bc,_0x457f1e,_0x5d6dfe);const Ls=_0x131476('univer-pro.collaboration-client-socket-service');function $n(_0x1ea56a,_0x33231b,_0x7d81f){const _0x31cecf=_0x2cf6ff;return _0x1ea56a+'/'+_0x33231b+'/unit/'+_0x7d81f+_0x31cecf(0x2d8);}let Et=class extends _0x28d30b{constructor(_0x4ac66f,_0x4d5e08,_0x19cdee,_0x5296ae,_0xb69c3b){const _0x1b2007=_0x2cf6ff;super(),this[_0x1b2007(0x454)]=_0x4ac66f,this[_0x1b2007(0x29d)]=_0x4d5e08,this[_0x1b2007(0x17b)]=_0x19cdee,this[_0x1b2007(0x2f8)]=_0x5296ae,this[_0x1b2007(0x15d)]=_0xb69c3b;}[_0x2cf6ff(0x2eb)](_0x59630c){const _0x1cc29d=_0x2cf6ff,_0xdafaff=this[_0x1cc29d(0x29d)][_0x1cc29d(0x2eb)](_0x59630c);if(!_0xdafaff)throw new Error(_0x1cc29d(0x1f7));const _0x3c47d9=new _0x435f5a(),_0xf6261f=new _0x5ebd47();_0x3c47d9[_0x1cc29d(0x3a8)](_0xdafaff[_0x1cc29d(0x425)][_0x1cc29d(0x360)](_0x157909=>_0xf6261f['next'](_0x157909))),_0x3c47d9[_0x1cc29d(0x3a8)](_0x57baeb(()=>_0xf6261f[_0x1cc29d(0x307)]()));const _0x1b8edf=new _0x5ebd47();_0x3c47d9[_0x1cc29d(0x3a8)](_0xdafaff['error$'][_0x1cc29d(0x360)](_0xe74b61=>_0x1b8edf[_0x1cc29d(0x2ad)](_0xe74b61))),_0x3c47d9[_0x1cc29d(0x3a8)](_0x57baeb(()=>_0x1b8edf['complete']()));const _0x1eb65c=new _0x5ebd47();_0x3c47d9[_0x1cc29d(0x3a8)](_0xdafaff['message$'][_0x1cc29d(0x360)](_0x3cf5d0=>{const _0x5a9a4e=_0x1cc29d,_0x223c75=Nn(_0x3cf5d0);_0x1eb65c[_0x5a9a4e(0x2ad)](_0x223c75);})),_0x3c47d9[_0x1cc29d(0x3a8)](_0x57baeb(()=>_0x1eb65c[_0x1cc29d(0x307)]()));let _0x4c1a69;const _0x586d45=()=>{const _0x2682da=_0x1cc29d;_0x1b8edf[_0x2682da(0x2ad)](new Event(_0x2682da(0x3ce))),_0xf6261f[_0x2682da(0x2ad)](new CloseEvent('connection\x20error')),_0x4c1a69['close']();};return _0x4c1a69={'memberID':'','close$':_0xf6261f['asObservable'](),'error$':_0x1b8edf[_0x1cc29d(0x16e)](),'open$':_0xdafaff[_0x1cc29d(0x210)],'message$':_0x1eb65c['asObservable'](),'send':_0x3dd307=>{const _0x266f2d=_0x1cc29d;if(_0x3dd307['cmd']===I[_0x266f2d(0x44b)]){if(_0x3dd307['data'][_0x266f2d(0x446)]===_0x236400[_0x266f2d(0x28c)]){this['_submitChangeset'](_0x4c1a69,_0x3dd307['data'])[_0x266f2d(0x10b)](_0xcfeff6=>{const _0x3e596e=_0x266f2d;this[_0x3e596e(0x2f8)]['error'](_0xcfeff6),_0x586d45();});return;}if(_0x3dd307[_0x266f2d(0x406)][_0x266f2d(0x446)]===_0x236400['FETCH_MISSING']){const _0x513258=_0x3dd307[_0x266f2d(0x406)];this['_fetchMissChangesets'](_0x513258)[_0x266f2d(0x1ed)](_0x19ae82=>{const _0x2d8c59=_0x266f2d;_0x1eb65c['next']({'cmd':I[_0x2d8c59(0x262)],'code':kt['OK'],'routeKey':_0x513258[_0x2d8c59(0x406)]['unitID'],'routeType':'','data':{'eventID':_0x236400['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x19ae82}}});})[_0x266f2d(0x10b)](_0x8df044=>{const _0x56b78d=_0x266f2d;this[_0x56b78d(0x2f8)][_0x56b78d(0x36e)](_0x8df044),_0x586d45();});return;}}_0xdafaff[_0x266f2d(0x329)](Un(_0x3dd307));},'close':()=>{const _0x4c3ab3=_0x1cc29d;_0xdafaff[_0x4c3ab3(0x108)](),_0x3c47d9[_0x4c3ab3(0x275)]();}},_0x4c1a69;}async[_0x2cf6ff(0x42b)](_0x2f1d9b,_0x5f0b49){const _0x5aa2cc=_0x2cf6ff;var _0x6a394b,_0x44aa98;const {unitType:_0x4c5498,unitID:_0x224db3,changeset:_0x33691f}=_0x5f0b49[_0x5aa2cc(0x406)],_0x7be958={'unitID':_0x224db3,'memberID':_0x2f1d9b['memberID'],'type':_0x4c5498,'changeset':_0x527dbc(_0x33691f)},_0x167b7d=this[_0x5aa2cc(0x17b)]['getConfig'](On),_0x28af86=this[_0x5aa2cc(0x17b)][_0x5aa2cc(0x30f)](L),_0x482fef=$n((_0x44aa98=(_0x6a394b=_0x28af86==null?void 0x0:_0x28af86['collabSubmitChangesetUrl'])!=null?_0x6a394b:_0x167b7d)!=null?_0x44aa98:Dn,_0x4c5498,_0x224db3);try{await this[_0x5aa2cc(0x454)][_0x5aa2cc(0x236)](_0x482fef,{'body':_0x7be958});}catch(_0x36c3d5){throw this[_0x5aa2cc(0x2f8)][_0x5aa2cc(0x36e)](_0x5aa2cc(0x2cc),_0x5aa2cc(0x370)),_0x36c3d5;}}async[_0x2cf6ff(0x3ea)](_0x10cdaa){const _0x5b2e0d=_0x2cf6ff,{unitID:_0x267028,from:_0x398b02,to:_0x31b49b,unitType:_0x141d9d}=_0x10cdaa[_0x5b2e0d(0x406)];return(await this['_snapshotServerService'][_0x5b2e0d(0x3b0)]({'metadata':void 0x0},{'unitID':_0x267028,'type':_0x141d9d,'from':_0x398b02,'to':_0x31b49b}))[_0x5b2e0d(0x100)];}};Et=Ln([Re(0x0,_0x11c4b2(_0xc66412)),Re(0x1,_0x11c4b2(_0x3b3681)),Re(0x2,_0x5d22a5),Re(0x3,_0x58af89),Re(0x4,_0x473b7c)],Et);const jn='collaboration_new_changeset';function xn(_0x41aeb1){const _0x1c2579=_0x2cf6ff;return JSON[_0x1c2579(0x1ff)](_0x41aeb1)[_0x1c2579(0x183)];}class $s{constructor(){const _0x2ebc8c=_0x2cf6ff;l(this,_0x2ebc8c(0x223),new _0x5ebd47()),l(this,_0x2ebc8c(0x41f),this[_0x2ebc8c(0x223)]['asObservable']());}[_0x2cf6ff(0x243)](_0x14a97f){const _0x49cadd=_0x2cf6ff;this[_0x49cadd(0x223)][_0x49cadd(0x2ad)](_0x14a97f);}}var Hn=Object[_0x2cf6ff(0x2d3)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x2309c5,_0x3a1f7c,_0x3680ba,_0x53f32e)=>{for(var _0x2e82b0=_0x53f32e>0x1?void 0x0:_0x53f32e?kn(_0x3a1f7c,_0x3680ba):_0x3a1f7c,_0x288b0f=_0x2309c5['length']-0x1,_0x4d1657;_0x288b0f>=0x0;_0x288b0f--)(_0x4d1657=_0x2309c5[_0x288b0f])&&(_0x2e82b0=(_0x53f32e?_0x4d1657(_0x3a1f7c,_0x3680ba,_0x2e82b0):_0x4d1657(_0x2e82b0))||_0x2e82b0);return _0x53f32e&&_0x2e82b0&&Hn(_0x3a1f7c,_0x3680ba,_0x2e82b0),_0x2e82b0;},rs=(_0x55a966,_0x3fe3d7)=>(_0x5203f7,_0x4e3e20)=>_0x3fe3d7(_0x5203f7,_0x4e3e20,_0x55a966);let ae=class extends _0x28d30b{constructor(_0x46c7f4,_0x48d0ff){const _0x39b2df=_0x2cf6ff;super(),l(this,'_roomMembers',new Map()),(this[_0x39b2df(0xe4)]=_0x46c7f4,this[_0x39b2df(0x1bd)]=_0x48d0ff,this[_0x39b2df(0x2cd)](_0x57baeb(_0x577df9(this[_0x39b2df(0xe4)][_0x39b2df(0x1af)](_0x5ba247[_0x39b2df(0x43d)])['pipe'](_0x4a2a85(_0x4e56a2=>_0x4e56a2[_0x39b2df(0x3d4)]())),this[_0x39b2df(0xe4)][_0x39b2df(0x1af)](_0x5ba247['UNIVER_DOC'])[_0x39b2df(0x379)](_0x4a2a85(_0x1c6c1f=>_0x1c6c1f[_0x39b2df(0x3d4)]())),this[_0x39b2df(0xe4)][_0x39b2df(0x1af)](_0x5ba247['UNIVER_SLIDE'])['pipe'](_0x4a2a85(_0x32c13f=>_0x32c13f[_0x39b2df(0x3d4)]())))[_0x39b2df(0x360)](_0x474cc5=>this[_0x39b2df(0x240)](_0x474cc5)))));}['setCurrentUser'](_0x55bc56){const _0x510ed5=_0x2cf6ff;this[_0x510ed5(0x1bd)][_0x510ed5(0x219)](_0x55bc56);}[_0x2cf6ff(0x118)](){const _0x26fd1f=_0x2cf6ff;return this['_userManagerService'][_0x26fd1f(0x118)]();}[_0x2cf6ff(0x2a4)](_0x535c55,_0x2db651){const _0x219353=_0x2cf6ff;let _0x58ac57=this[_0x219353(0x32b)][_0x219353(0x19c)](_0x535c55);_0x58ac57||(_0x58ac57=new Vn(),this[_0x219353(0x32b)][_0x219353(0x138)](_0x535c55,_0x58ac57)),_0x58ac57[_0x219353(0x2a4)](_0x2db651);}[_0x2cf6ff(0x310)](_0x1574a0,_0x1df8cd){const _0x159779=_0x2cf6ff,_0x474d5c=this[_0x159779(0x32b)]['get'](_0x1574a0);_0x474d5c&&_0x474d5c[_0x159779(0x310)](_0x1df8cd);}[_0x2cf6ff(0x283)](_0x9f6d8){const _0x596aaa=_0x2cf6ff;return this['_roomMembers'][_0x596aaa(0x19c)](_0x9f6d8);}[_0x2cf6ff(0x165)](_0x34575a,_0x4ff0c6){const _0x19f91e=_0x2cf6ff,_0x52b169=this[_0x19f91e(0x32b)]['get'](_0x34575a);if(_0x52b169)return _0x52b169[_0x19f91e(0x165)](_0x4ff0c6);}[_0x2cf6ff(0x240)](_0x12b6a3){const _0x59cdae=_0x2cf6ff,_0xe2cb8c=this[_0x59cdae(0x32b)][_0x59cdae(0x19c)](_0x12b6a3);_0xe2cb8c&&(_0xe2cb8c[_0x59cdae(0x275)](),this['_roomMembers'][_0x59cdae(0x152)](_0x12b6a3));}[_0x2cf6ff(0x275)](){const _0x39666d=_0x2cf6ff;this['_roomMembers'][_0x39666d(0x198)](_0x5e07e0=>_0x5e07e0[_0x39666d(0x275)]()),this[_0x39666d(0x32b)]['clear']();}};ae=Bn([rs(0x0,_0x3a69fb),rs(0x1,_0x11c4b2(_0xffde51))],ae);class Vn extends _0x28d30b{constructor(){const _0x3e658c=_0x2cf6ff;super(...arguments),l(this,_0x3e658c(0x232),new Map());}[_0x2cf6ff(0x275)](){const _0x47ff36=_0x2cf6ff;this['_members'][_0x47ff36(0x16b)]();}[_0x2cf6ff(0x2a4)](_0x245462){const _0x55ec85=_0x2cf6ff;this[_0x55ec85(0x232)][_0x55ec85(0x138)](_0x245462['memberID'],_0x245462);}[_0x2cf6ff(0x310)](_0x1ebbc1){const _0x8c5229=_0x2cf6ff;this['_members'][_0x8c5229(0x152)](_0x1ebbc1);}[_0x2cf6ff(0x165)](_0x3511c1){const _0x286cab=_0x2cf6ff;return this['_members'][_0x286cab(0x19c)](_0x3511c1);}}var Fn=Object[_0x2cf6ff(0x2d3)],Wn=Object[_0x2cf6ff(0x289)],Gn=(_0x239cf0,_0x4dd66f,_0x56ba28,_0x30c539)=>{const _0x33df63=_0x2cf6ff;for(var _0x2dda53=_0x30c539>0x1?void 0x0:_0x30c539?Wn(_0x4dd66f,_0x56ba28):_0x4dd66f,_0x11a075=_0x239cf0[_0x33df63(0x183)]-0x1,_0x5e18bd;_0x11a075>=0x0;_0x11a075--)(_0x5e18bd=_0x239cf0[_0x11a075])&&(_0x2dda53=(_0x30c539?_0x5e18bd(_0x4dd66f,_0x56ba28,_0x2dda53):_0x5e18bd(_0x2dda53))||_0x2dda53);return _0x30c539&&_0x2dda53&&Fn(_0x4dd66f,_0x56ba28,_0x2dda53),_0x2dda53;},J=(_0x1bcdfc,_0x249fdf)=>(_0x2f1103,_0xa465f0)=>_0x249fdf(_0x2f1103,_0xa465f0,_0x1bcdfc),G=(_0x1a9a73=>(_0x1a9a73[_0x1a9a73[_0x2cf6ff(0x450)]=0x0]=_0x2cf6ff(0x450),_0x1a9a73[_0x1a9a73[_0x2cf6ff(0x169)]=0x1]=_0x2cf6ff(0x169),_0x1a9a73[_0x1a9a73['OFFLINE']=0x2]=_0x2cf6ff(0x26c),_0x1a9a73[_0x1a9a73['ONLINE']=0x3]=_0x2cf6ff(0x168),_0x1a9a73))(G||{});let Ct=class extends _0x424705{constructor(_0x1eef82,_0x54dd3c,_0x39aaf2,_0x7600ed,_0x37ca48,_0x32ade3,_0x2aebd5,_0x5a5734,_0x518e1f,_0x3b736c){const _0x209bec=_0x2cf6ff;super(),l(this,_0x209bec(0x32f),new _0xa8903e(0x0)),l(this,_0x209bec(0x3a1),this['_sessionStatus$'][_0x209bec(0x16e)]()),l(this,_0x209bec(0x40b),new _0x5ebd47()),l(this,_0x209bec(0x3d1),this['_event$'][_0x209bec(0x16e)]()),l(this,'_socket'),l(this,_0x209bec(0x3a5)),l(this,_0x209bec(0x3d2)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x209bec(0x409),null),(this[_0x209bec(0x3a6)]=_0x1eef82,this[_0x209bec(0x2f8)]=_0x39aaf2,this[_0x209bec(0x410)]=_0x7600ed,this[_0x209bec(0x358)]=_0x37ca48,this['_configService']=_0x32ade3,this['_localeService']=_0x2aebd5,this[_0x209bec(0x327)]=_0x5a5734,this[_0x209bec(0x2ca)]=_0x518e1f,this[_0x209bec(0x2b1)]=_0x3b736c,this[_0x209bec(0x2c3)]=!!this[_0x209bec(0x2b1)],_0x54dd3c['pipe'](_0x5f0229(this[_0x209bec(0x267)]))['subscribe'](_0x46124c=>{const _0x46cf6a=_0x209bec;var _0x12c004;typeof _0x46124c>'u'||(this[_0x46cf6a(0x1e9)]=_0x46124c,_0x46124c?(this[_0x46cf6a(0x2fd)](_0x46124c),this[_0x46cf6a(0x3a5)]=_0x46124c['message$'][_0x46cf6a(0x360)](_0x1f2094=>{const _0x391aee=_0x46cf6a;_0x1f2094['routeKey']===this[_0x391aee(0x3a6)]&&this[_0x391aee(0x1b3)](_0x1f2094);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$']['next'](0x2),(_0x12c004=this[_0x46cf6a(0x3a5)])==null||_0x12c004[_0x46cf6a(0x285)](),this[_0x46cf6a(0x3a5)]=null));}),this[_0x209bec(0x2cd)](this['_beforeCloseService'][_0x209bec(0x44a)](()=>{const _0x56611b=_0x209bec;var _0x380b5e;(_0x380b5e=this[_0x56611b(0x1e9)])==null||_0x380b5e[_0x56611b(0x329)]({'cmd':I[_0x56611b(0x14c)],'data':{'roomID':this['_unitID']}});})));}get[_0x2cf6ff(0x33b)](){const _0x32113a=_0x2cf6ff;return this[_0x32113a(0x32f)]['getValue']();}[_0x2cf6ff(0x2a6)](){const _0x5c8cff=_0x2cf6ff;var _0x3e0546,_0x5e698b;return(_0x5e698b=(_0x3e0546=this[_0x5c8cff(0x1e9)])==null?void 0x0:_0x3e0546[_0x5c8cff(0x288)])!=null?_0x5e698b:null;}[_0x2cf6ff(0x275)](){const _0x23e22a=_0x2cf6ff;super[_0x23e22a(0x275)](),this[_0x23e22a(0x267)][_0x23e22a(0x2ad)](),this[_0x23e22a(0x267)][_0x23e22a(0x307)]();}[_0x2cf6ff(0x108)](){const _0x2bb34f=_0x2cf6ff;var _0x112fcd,_0x108efb;this[_0x2bb34f(0x27f)](),(_0x112fcd=this[_0x2bb34f(0x1e9)])==null||_0x112fcd['send']({'cmd':I[_0x2bb34f(0x14c)],'data':{'roomID':this['_unitID']}}),(_0x108efb=this['_socket'])==null||_0x108efb[_0x2bb34f(0x108)](),this[_0x2bb34f(0x40b)][_0x2bb34f(0x307)](),this[_0x2bb34f(0x32f)]['complete'](),this[_0x2bb34f(0x275)]();}[_0x2cf6ff(0x1b3)](_0x5adce0){const _0xf720f4=_0x2cf6ff;_0x5adce0['cmd']===I[_0xf720f4(0x171)]?this[_0xf720f4(0x345)](_0x5adce0):_0x5adce0[_0xf720f4(0x411)]===I['RECV']&&this[_0xf720f4(0x438)](_0x5adce0);}['_joinRoom'](_0x3306e2){const _0x2962d0=_0x2cf6ff;this[_0x2962d0(0x32f)][_0x2962d0(0x2ad)](0x1),_0x3306e2[_0x2962d0(0x329)]({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2962d0(0x3a6)]}]}});}[_0x2cf6ff(0x345)](_0x50583e){const _0x28e1cc=_0x2cf6ff;var _0x4b600f;if(_0x50583e['code']===kt['FAIL']){this[_0x28e1cc(0x358)][_0x28e1cc(0x10c)]({'type':_0x3aebb1[_0x28e1cc(0x29b)],'content':this[_0x28e1cc(0x12c)]['t'](_0x28e1cc(0x195))}),this[_0x28e1cc(0x32f)][_0x28e1cc(0x2ad)](0x2);return;}this[_0x28e1cc(0x32f)][_0x28e1cc(0x2ad)](0x3);const _0x49729f=(_0x4b600f=_0x50583e[_0x28e1cc(0x406)][_0x28e1cc(0x1d2)][this[_0x28e1cc(0x3a6)]])==null?void 0x0:_0x4b600f[_0x28e1cc(0x3a9)];_0x49729f&&_0x49729f[_0x28e1cc(0x198)](_0x12ff50=>this[_0x28e1cc(0x327)][_0x28e1cc(0x2a4)](this['_unitID'],_0x12ff50));}[_0x2cf6ff(0x438)](_0x19b9f3){const _0x2fef1a=_0x2cf6ff;try{const _0xc97d6a=_0x19b9f3[_0x2fef1a(0x406)];switch(_0xc97d6a[_0x2fef1a(0x446)]){case _0x236400['USERS_ENTER']:this[_0x2fef1a(0x365)](_0xc97d6a),this[_0x2fef1a(0x40b)][_0x2fef1a(0x2ad)](_0xc97d6a);break;case _0x236400[_0x2fef1a(0x375)]:this[_0x2fef1a(0x189)](_0xc97d6a),this['_event$'][_0x2fef1a(0x2ad)](_0xc97d6a);break;case _0x236400[_0x2fef1a(0x1bb)]:this[_0x2fef1a(0x444)](),this[_0x2fef1a(0x1ad)](),this[_0x2fef1a(0x40b)]['next'](_0xc97d6a);break;case _0x236400[_0x2fef1a(0x115)]:this['_logService'][_0x2fef1a(0x36e)](_0x2fef1a(0x122)+JSON[_0x2fef1a(0x1ff)](_0xc97d6a)),this[_0x2fef1a(0x40b)]['next'](_0xc97d6a);break;case _0x236400['COMMENT_UPDATE']:this[_0x2fef1a(0x2ca)]['onCommentUpdate'](_0xc97d6a[_0x2fef1a(0x406)]),this['_event$'][_0x2fef1a(0x2ad)](_0xc97d6a);break;default:this[_0x2fef1a(0x40b)][_0x2fef1a(0x2ad)](_0xc97d6a);}}catch(_0x45c913){this['_logService'][_0x2fef1a(0x36e)](_0x45c913,_0x19b9f3);}}[_0x2cf6ff(0x365)](_0x4f5681){const _0x21b58d=_0x2cf6ff;this['_memberService']['updateMember'](this[_0x21b58d(0x3a6)],_0x4f5681['data']);}[_0x2cf6ff(0x189)](_0x178985){const _0x53526e=_0x2cf6ff;this[_0x53526e(0x327)][_0x53526e(0x310)](this['_unitID'],_0x178985[_0x53526e(0x406)]['memberID']);}async[_0x2cf6ff(0x329)](_0x214ef3,_0xa1853b){const _0x2fefed=_0x2cf6ff;if(this[_0x2fefed(0x33b)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x214ef3[_0x2fefed(0x446)]===_0x236400['SUBMIT_CHANGESET']&&(this[_0x2fefed(0x23a)](),this[_0x2fefed(0x369)](_0x214ef3)),this['_socket']['send']({'cmd':I[_0x2fefed(0x44b)],'routeKey':_0xa1853b,'routeType':'','data':_0x214ef3});}catch(_0x35435e){this[_0x2fefed(0x2f8)][_0x2fefed(0x36e)](_0x35435e);}}['_scheduleCollaborationTimeoutTimer'](){const _0x298381=_0x2cf6ff;var _0x2e05c3;this[_0x298381(0x3d2)]=window[_0x298381(0x128)](()=>{const _0x5cd4c3=_0x298381;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x5cd4c3(0x10c)]({'type':_0x3aebb1[_0x5cd4c3(0x276)],'content':this[_0x5cd4c3(0x12c)]['t'](_0x5cd4c3(0x26d))});},(_0x2e05c3=this[_0x298381(0x17b)][_0x298381(0x30f)](Ns))!=null?_0x2e05c3:Us);}[_0x2cf6ff(0x1ad)](){const _0x1f26a5=_0x2cf6ff;this[_0x1f26a5(0x3d2)]&&(clearTimeout(this[_0x1f26a5(0x3d2)]),this[_0x1f26a5(0x3d2)]=null);}[_0x2cf6ff(0x369)](_0x50e41a){const _0x90ea9b=_0x2cf6ff;if(!this['_shouldReportTelemetry'])return;const {data:_0x22d084}=_0x50e41a,{unitID:_0x566c85,changeset:_0x1eb44a}=_0x22d084,{mutations:_0x2fef18,type:_0x579e2a}=_0x1eb44a;this[_0x90ea9b(0x409)]={'unitId':_0x566c85,'type':_0x579e2a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':xn(_0x2fef18)};}['_stopTelemetryCollaborationNewChangeset'](){const _0xe863d3=_0x2cf6ff;if(this[_0xe863d3(0x2c3)]){if(!this[_0xe863d3(0x409)]){this[_0xe863d3(0x2f8)][_0xe863d3(0x36e)]('[CollaborationSession]',_0xe863d3(0x423));return;}this[_0xe863d3(0x409)][_0xe863d3(0x2e5)]=performance[_0xe863d3(0x381)](),this[_0xe863d3(0x409)][_0xe863d3(0x42e)]=this[_0xe863d3(0x409)][_0xe863d3(0x2e5)]-this['_telemetryInfo'][_0xe863d3(0x3e9)],this[_0xe863d3(0x2b1)][_0xe863d3(0x33d)](jn,this[_0xe863d3(0x409)]),this[_0xe863d3(0x409)]=null;}}[_0x2cf6ff(0x27f)](){const _0x96a4a2=_0x2cf6ff;this[_0x96a4a2(0x409)]=null;}};Ct=Gn([J(0x2,_0x58af89),J(0x3,_0x43afaa),J(0x4,_0x3d2cd0),J(0x5,_0x5d22a5),J(0x6,_0x11c4b2(_0x56c312)),J(0x7,_0x11c4b2(ae)),J(0x8,_0x11c4b2($s)),J(0x9,_0x32a7fe(_0x45254d))],Ct);var Yn=Object[_0x2cf6ff(0x2d3)],Kn=Object[_0x2cf6ff(0x289)],Xn=(_0x217e0c,_0x561edf,_0x516438,_0x5acde1)=>{const _0x46980c=_0x2cf6ff;for(var _0x4c2308=_0x5acde1>0x1?void 0x0:_0x5acde1?Kn(_0x561edf,_0x516438):_0x561edf,_0x502f90=_0x217e0c[_0x46980c(0x183)]-0x1,_0x5bce3f;_0x502f90>=0x0;_0x502f90--)(_0x5bce3f=_0x217e0c[_0x502f90])&&(_0x4c2308=(_0x5acde1?_0x5bce3f(_0x561edf,_0x516438,_0x4c2308):_0x5bce3f(_0x4c2308))||_0x4c2308);return _0x5acde1&&_0x4c2308&&Yn(_0x561edf,_0x516438,_0x4c2308),_0x4c2308;},de=(_0x2fd0de,_0x143254)=>(_0x13f664,_0x4a8bce)=>_0x143254(_0x13f664,_0x4a8bce,_0x2fd0de);let ce=class extends _0x28d30b{constructor(_0x505e47,_0x8161d6,_0x1e8edc,_0x2cb8aa,_0x50e665,_0x542500){const _0x560c2d=_0x2cf6ff;super(),l(this,_0x560c2d(0x174),new _0xa8903e(void 0x0)),l(this,'socket$',this[_0x560c2d(0x174)][_0x560c2d(0x16e)]()),l(this,'_candidateSocket',null),l(this,_0x560c2d(0x3f5),new Map()),l(this,_0x560c2d(0x1e4),new _0xa8903e(G[_0x560c2d(0x450)])),l(this,_0x560c2d(0x212),this[_0x560c2d(0x1e4)][_0x560c2d(0x16e)]()),l(this,_0x560c2d(0x3dc),!0x1),l(this,_0x560c2d(0x17e)),l(this,_0x560c2d(0x383),0x0),l(this,_0x560c2d(0x1cc)),l(this,_0x560c2d(0x1e2)),(this[_0x560c2d(0x249)]=_0x505e47,this[_0x560c2d(0x12c)]=_0x8161d6,this[_0x560c2d(0x358)]=_0x1e8edc,this[_0x560c2d(0x2f8)]=_0x2cb8aa,this[_0x560c2d(0x17b)]=_0x50e665,this['_socketService']=_0x542500,this['_initEventListeners']());}get['_socket'](){const _0x4ff4ff=_0x2cf6ff;return this[_0x4ff4ff(0x174)][_0x4ff4ff(0x308)]();}[_0x2cf6ff(0x184)](){const _0x1108fd=_0x2cf6ff;this[_0x1108fd(0x137)](),this[_0x1108fd(0x19a)]();}[_0x2cf6ff(0x275)](){const _0x1fdade=_0x2cf6ff;super['dispose'](),this[_0x1fdade(0x3f5)]['forEach'](_0xb64091=>_0xb64091[_0x1fdade(0x275)]()),this[_0x1fdade(0x3f5)][_0x1fdade(0x16b)](),this[_0x1fdade(0x1e4)]['complete']();}async[_0x2cf6ff(0x393)](_0x123b3b){const _0x30f552=_0x2cf6ff;if(this[_0x30f552(0x3f5)][_0x30f552(0x277)](_0x123b3b))return this['_sessions'][_0x30f552(0x19c)](_0x123b3b);this[_0x30f552(0x353)]();const _0x440e48=this[_0x30f552(0x249)][_0x30f552(0x1f3)](Ct,_0x123b3b,this[_0x30f552(0x174)][_0x30f552(0x16e)]());return this[_0x30f552(0x3f5)][_0x30f552(0x138)](_0x123b3b,_0x440e48),_0x440e48;}[_0x2cf6ff(0x170)](_0x4492fb){const _0x2c4bd7=_0x2cf6ff;var _0x5ad17f;const _0x4a163f=this[_0x2c4bd7(0x3f5)]['get'](_0x4492fb);_0x4a163f&&(this[_0x2c4bd7(0x3f5)][_0x2c4bd7(0x152)](_0x4492fb),_0x4a163f['close']()),this['_sessions'][_0x2c4bd7(0x387)]||(_0x5ad17f=this['_socket'])==null||_0x5ad17f[_0x2c4bd7(0x108)]();}[_0x2cf6ff(0x2e0)](){const _0x3ce4c0=_0x2cf6ff;this[_0x3ce4c0(0x383)]=0x0,this[_0x3ce4c0(0x17e)]!=null&&(clearTimeout(this[_0x3ce4c0(0x17e)]),this[_0x3ce4c0(0x17e)]=null),this[_0x3ce4c0(0x2de)]();}[_0x2cf6ff(0x207)](){const _0x1bb6c9=_0x2cf6ff;var _0x507a67,_0xbfa18d;const _0x3df8fe=this[_0x1bb6c9(0x17b)]['getConfig'](Sn),_0x429fed=this['_configService'][_0x1bb6c9(0x30f)](L),_0x442608=(_0xbfa18d=(_0x507a67=_0x429fed==null?void 0x0:_0x429fed[_0x1bb6c9(0x284)])!=null?_0x507a67:_0x3df8fe)!=null?_0xbfa18d:pn,_0x49193d=this[_0x1bb6c9(0x217)][_0x1bb6c9(0x2eb)](_0x442608);return this[_0x1bb6c9(0x39f)]=_0x49193d,_0x49193d;}[_0x2cf6ff(0x353)](){const _0x3c9b02=_0x2cf6ff;var _0x1a942a,_0x29ee40;try{const _0x2db5a9=(_0x29ee40=(_0x1a942a=this[_0x3c9b02(0x1e9)])!=null?_0x1a942a:this[_0x3c9b02(0x39f)])!=null?_0x29ee40:this[_0x3c9b02(0x207)]();if(_0x2db5a9){const _0x263b1f=_0x2db5a9[_0x3c9b02(0x329)];_0x2db5a9[_0x3c9b02(0x329)]=_0x49e31f=>(this['_rescheduleHeartbeat'](),_0x263b1f[_0x3c9b02(0x29e)](_0x2db5a9,[_0x49e31f])),_0x2db5a9[_0x3c9b02(0x340)]['subscribe'](_0x58a726=>this[_0x3c9b02(0x2a1)](_0x2db5a9,_0x58a726)),_0x2db5a9[_0x3c9b02(0x391)]['pipe'](_0x1fdc95(0x1))[_0x3c9b02(0x360)](_0x25d92c=>this[_0x3c9b02(0x2f8)]['error'](_0x3c9b02(0x21f),_0x25d92c)),_0x2db5a9['open$'][_0x3c9b02(0x379)](_0x1fdc95(0x1))[_0x3c9b02(0x360)](()=>{const _0x5e63e6=_0x3c9b02;this[_0x5e63e6(0x1c1)](_0x2db5a9);}),_0x2db5a9[_0x3c9b02(0x425)][_0x3c9b02(0x379)](_0x1fdc95(0x1))[_0x3c9b02(0x360)](_0x29ce76=>{const _0x3b1327=_0x3c9b02;this[_0x3b1327(0x2f8)][_0x3b1327(0x2b7)](_0x3b1327(0x378),'socket\x20close',_0x29ce76),this[_0x3b1327(0x41c)]();});}}catch(_0x21f769){this[_0x3c9b02(0x2f8)][_0x3c9b02(0x36e)](_0x21f769),this['_onConnectionFailed']();}}[_0x2cf6ff(0x1c1)](_0x35dcde){const _0x2049db=_0x2cf6ff;this[_0x2049db(0x2f8)][_0x2049db(0x2b7)]('[CollaborationSessionService]',_0x2049db(0x187)),_0x35dcde[_0x2049db(0x329)]({'cmd':I[_0x2049db(0x3fd)]}),this[_0x2049db(0x35f)]();}['_listenToOfflineEvent'](){const _0x1cd0a4=_0x2cf6ff;window[_0x1cd0a4(0x3d0)](_0x1cd0a4(0x2ac),()=>this['_onOffline']());}[_0x2cf6ff(0x42f)](){const _0x567d75=_0x2cf6ff;this[_0x567d75(0x3dc)]=!0x1,this[_0x567d75(0x39f)]=null,this[_0x567d75(0x1e4)]['next'](G[_0x567d75(0x26c)]),this[_0x567d75(0x174)]['next'](null),this['_clearTimeoutTimer'](),this[_0x567d75(0xe1)]();}['_onConnectionFailed'](){const _0x41764c=_0x2cf6ff;var _0x33093c;this['_onOffline'](),this[_0x41764c(0x383)]<((_0x33093c=this['_configService']['getConfig'](Cn))!=null?_0x33093c:bn)?(this['_messageService'][_0x41764c(0x10c)]({'key':_0x41764c(0x2d5),'type':_0x3aebb1['Warning'],'content':this['_localeService']['t'](_0x41764c(0x363))}),this[_0x41764c(0x2de)]()):this[_0x41764c(0x358)][_0x41764c(0x10c)]({'key':'collaboration-session-retry','type':_0x3aebb1['Error'],'content':this[_0x41764c(0x12c)]['t']('session.connection-failed')});}[_0x2cf6ff(0x19a)](){const _0x1305ed=_0x2cf6ff,_0x33e2e3=()=>{const _0x50f08f=_0xd63a;this[_0x50f08f(0x1e9)]||this[_0x50f08f(0x2e0)]();},_0x1456c9=()=>{const _0x49b38c=_0xd63a;this[_0x49b38c(0x1e9)]||document[_0x49b38c(0x21a)]===_0x49b38c(0x333)||this[_0x49b38c(0x2e0)]();};window['addEventListener'](_0x1305ed(0x27a),_0x33e2e3),document[_0x1305ed(0x3d0)](_0x1305ed(0x377),_0x1456c9);}[_0x2cf6ff(0x2de)](){const _0x10cb74=_0x2cf6ff;var _0x46bbad;const _0x1d6b25=this[_0x10cb74(0x383)],_0x4b589d=this[_0x10cb74(0x17b)][_0x10cb74(0x30f)](L),_0x969919=_0x1d6b25===0x0?0x0:((_0x46bbad=_0x4b589d==null?void 0x0:_0x4b589d[_0x10cb74(0xf3)])!=null?_0x46bbad:En)*0x2**_0x1d6b25;this['_retryConnectingTimer']=window[_0x10cb74(0x128)](()=>{const _0x33aaab=_0x10cb74;clearTimeout(this['_retryConnectingTimer']),this[_0x33aaab(0x17e)]=null,this['_tryEnsureSocket']();},_0x969919),this[_0x10cb74(0x383)]+=0x1;}['_onMessage'](_0x49a693,_0x4534c9){const _0x10e70d=_0x2cf6ff,{cmd:_0x188ee2}=_0x4534c9;_0x188ee2===I[_0x10e70d(0x3fd)]&&!this[_0x10e70d(0x3dc)]&&(_0x49a693[_0x10e70d(0x288)]=_0x4534c9['data']['memberID'],this[_0x10e70d(0x174)]['next'](_0x49a693),this[_0x10e70d(0x1e4)][_0x10e70d(0x2ad)](G[_0x10e70d(0x168)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x188ee2===I[_0x10e70d(0x116)]&&this[_0x10e70d(0x1a1)](),this[_0x10e70d(0x35f)]();}[_0x2cf6ff(0x35f)](){const _0xda3db8=_0x2cf6ff;var _0x1edd7f;this[_0xda3db8(0xe1)](),this['_sendHeartbeatTimer']=window[_0xda3db8(0x128)](()=>this[_0xda3db8(0x2c9)](),(_0x1edd7f=this[_0xda3db8(0x17b)][_0xda3db8(0x30f)](vn))!=null?_0x1edd7f:In);}[_0x2cf6ff(0x2c9)](){const _0x1a8927=_0x2cf6ff;this[_0x1a8927(0x1e9)][_0x1a8927(0x329)]({'cmd':I[_0x1a8927(0x116)]}),this[_0x1a8927(0x314)]();}[_0x2cf6ff(0x314)](){const _0x270b78=_0x2cf6ff;var _0x3309af;this['_timeoutTimer']=window[_0x270b78(0x128)](()=>this['_onConnectionFailed'](),(_0x3309af=this['_configService']['getConfig'](Ns))!=null?_0x3309af:Us);}[_0x2cf6ff(0xe1)](){const _0x946985=_0x2cf6ff;this[_0x946985(0x1cc)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x946985(0x1cc)]=null);}[_0x2cf6ff(0x1a1)](){const _0x260c08=_0x2cf6ff;this[_0x260c08(0x1e2)]!=null&&(clearTimeout(this[_0x260c08(0x1e2)]),this[_0x260c08(0x1e2)]=null);}};ce=Xn([de(0x0,_0x11c4b2(_0x3ca714)),de(0x1,_0x11c4b2(_0x56c312)),de(0x2,_0x3d2cd0),de(0x3,_0x58af89),de(0x4,_0x5d22a5),de(0x5,Ls)],ce);var Jn=Object[_0x2cf6ff(0x2d3)],qn=Object[_0x2cf6ff(0x289)],zn=(_0x164eee,_0x14fce1,_0x4d780f,_0x1e9833)=>{const _0x30aa4a=_0x2cf6ff;for(var _0x310a1c=_0x1e9833>0x1?void 0x0:_0x1e9833?qn(_0x14fce1,_0x4d780f):_0x14fce1,_0x5a18f4=_0x164eee[_0x30aa4a(0x183)]-0x1,_0x195c3e;_0x5a18f4>=0x0;_0x5a18f4--)(_0x195c3e=_0x164eee[_0x5a18f4])&&(_0x310a1c=(_0x1e9833?_0x195c3e(_0x14fce1,_0x4d780f,_0x310a1c):_0x195c3e(_0x310a1c))||_0x310a1c);return _0x1e9833&&_0x310a1c&&Jn(_0x14fce1,_0x4d780f,_0x310a1c),_0x310a1c;},ct=(_0x2e715b,_0x359114)=>(_0x5da717,_0x1b7f0f)=>_0x359114(_0x5da717,_0x1b7f0f,_0x2e715b);let Ye=class{constructor(_0x675ac,_0x166ff4,_0x5ecbe7){const _0x151ca4=_0x2cf6ff;this[_0x151ca4(0x249)]=_0x675ac,this[_0x151ca4(0x146)]=_0x166ff4,this[_0x151ca4(0x1d4)]=_0x5ecbe7;}[_0x2cf6ff(0x1ab)](_0x3ca1b5){const _0x485fb0=_0x2cf6ff;this['_transformUndoRedoStack'](_0x3ca1b5),this[_0x485fb0(0xde)](_0x3ca1b5);}[_0x2cf6ff(0x364)](_0x1b6d5a){const _0x179d07=_0x2cf6ff,{unitID:_0x56251c}=_0x1b6d5a,_0xa41656=this['_renderManagerService'][_0x179d07(0x354)](_0x56251c)[_0x179d07(0x443)](_0x7e116c),{redoCache:_0x210d4b}=_0xa41656[_0x179d07(0x37d)]();if(_0x210d4b[_0x179d07(0x183)]===0x0)return _0x1b6d5a;let _0x39ab79=_0x3d523e[_0x179d07(0x2b6)](_0x1b6d5a[_0x179d07(0x40d)][0x0]);for(let _0x1f5ab5=0x0;_0x1f5ab5<_0x210d4b['length'];_0x1f5ab5++){const _0x5ae9bd={'id':_0x179d07(0x1b7),'params':{..._0x210d4b[_0x1f5ab5]}},_0x8111f9=this[_0x179d07(0x146)][_0x179d07(0x279)](_0x39ab79,_0x5ae9bd,!0x1);if(_0x265ca1(_0x8111f9))throw _0x8111f9[_0x179d07(0x36e)];_0x39ab79=_0x8111f9[_0x179d07(0x3e1)];}return{..._0x3d523e[_0x179d07(0x2b6)](_0x1b6d5a),'mutations':[_0x39ab79]};}['_transformUndoRedoStack'](_0x167e22){const _0x551a36=_0x2cf6ff,{unitID:_0x306539}=_0x167e22,_0x3d7cad=this[_0x551a36(0x1d4)]['getRenderById'](_0x306539)['with'](_0x7e116c),{undoCache:_0x474e8e,redoCache:_0x214849}=_0x3d7cad['getUndoRedoMutationParamsCache']();if(_0x474e8e[_0x551a36(0x183)]===0x0||_0x214849[_0x551a36(0x183)]===0x0)return;const _0x1ad4a8=[],_0x2b355c=[];let _0x221783=_0x3d523e[_0x551a36(0x2b6)](_0x167e22[_0x551a36(0x40d)][0x0]),_0x39e471=_0x3d523e[_0x551a36(0x2b6)](_0x167e22['mutations'][0x0]);for(let _0x22f463=_0x474e8e[_0x551a36(0x183)]-0x1;_0x22f463>=0x0;_0x22f463--){const _0x39ebc1={'id':'doc.mutation.rich-text-editing','params':{..._0x474e8e[_0x22f463]}},_0x4c29f0={'id':_0x551a36(0x1b7),'params':{..._0x214849[_0x22f463]}},_0x7525b3=this[_0x551a36(0x146)][_0x551a36(0x279)](_0x221783,_0x39ebc1,!0x1),_0x2a1211=this[_0x551a36(0x146)][_0x551a36(0x279)](_0x39e471,_0x4c29f0,!0x1);if(_0x265ca1(_0x7525b3))throw _0x7525b3['error'];if(_0x265ca1(_0x2a1211))throw _0x2a1211[_0x551a36(0x36e)];_0x1ad4a8[_0x551a36(0x1b0)](_0x7525b3[_0x551a36(0x2d7)]['params']),_0x2b355c[_0x551a36(0x1b0)](_0x2a1211['m2Prime']['params']),_0x221783=_0x7525b3['m1Prime'],_0x39e471=_0x2a1211[_0x551a36(0x3e1)];}_0x3d7cad[_0x551a36(0x1fa)]({'undoCache':_0x1ad4a8,'redoCache':_0x2b355c});}['_transformPreviousActiveRange'](_0x3cf2c3){const _0xc6353b=_0x2cf6ff,{unitID:_0x52076e}=_0x3cf2c3,_0x122d1a=this[_0xc6353b(0x1d4)][_0xc6353b(0x354)](_0x52076e)[_0xc6353b(0x443)](_0x7e116c),_0x59385e=_0x122d1a['getActiveRange']();if(_0x59385e==null)return;const _0x5b0b34=[{'id':_0xc6353b(0x1b7),'params':{'unitId':_0x3cf2c3['unitID'],'actions':null,'textRanges':[_0x59385e]}}],_0x79fdf=this['_transformService'][_0xc6353b(0x1f5)](_0x3cf2c3,_0x5b0b34);if(!_0x61acc5(_0x79fdf))throw _0x79fdf['error'];const _0xa55b96=_0x79fdf[_0xc6353b(0x2d7)][0x0][_0xc6353b(0x3d6)][_0xc6353b(0x1cd)];Array[_0xc6353b(0x1da)](_0xa55b96)&&_0xa55b96['length']&&_0x122d1a[_0xc6353b(0x2bb)](_0xa55b96[0x0]);}};Ye=zn([ct(0x0,_0x11c4b2(_0x3ca714)),ct(0x1,_0x1d81ff),ct(0x2,_0x45596d)],Ye);var Zn=Object[_0x2cf6ff(0x2d3)],Qn=Object[_0x2cf6ff(0x289)],er=(_0x581cb8,_0x199821,_0x24844e,_0xb5095f)=>{for(var _0x4cded4=_0xb5095f>0x1?void 0x0:_0xb5095f?Qn(_0x199821,_0x24844e):_0x199821,_0x335034=_0x581cb8['length']-0x1,_0xd2db35;_0x335034>=0x0;_0x335034--)(_0xd2db35=_0x581cb8[_0x335034])&&(_0x4cded4=(_0xb5095f?_0xd2db35(_0x199821,_0x24844e,_0x4cded4):_0xd2db35(_0x4cded4))||_0x4cded4);return _0xb5095f&&_0x4cded4&&Zn(_0x199821,_0x24844e,_0x4cded4),_0x4cded4;},Oe=(_0x5a7f8c,_0x4f669c)=>(_0x31c7ae,_0x501a41)=>_0x4f669c(_0x31c7ae,_0x501a41,_0x5a7f8c);let D=class extends _0x28d30b{constructor(_0x45dce2,_0x5d6631,_0xe242a2,_0x25ec6c,_0x3d1e9e){const _0x281301=_0x2cf6ff;super(),l(this,'_cachedData',new Map()),l(this,'_saveTaskMap',new Map()),l(this,'_disabled',!0x1),(this[_0x281301(0x17b)]=_0x45dce2,this[_0x281301(0x349)]=_0x5d6631,this['_beforeCloseService']=_0xe242a2,this[_0x281301(0x12c)]=_0x25ec6c,this[_0x281301(0x25c)]=_0x3d1e9e,this[_0x281301(0x2f4)]());}[_0x2cf6ff(0x2df)](){const _0x58b820=_0x2cf6ff;this[_0x58b820(0x2ec)]=!0x0;}[_0x2cf6ff(0x295)](){const _0x282024=_0x2cf6ff;this[_0x282024(0x2ec)]=!0x1;}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x2cf6ff(0x1b1)](_0x4a85c4){const _0x4486a0=_0x2cf6ff;return this[_0x4486a0(0x2ec)]?null:this[_0x4486a0(0x349)][_0x4486a0(0x3b3)](os(_0x4a85c4));}async[_0x2cf6ff(0xf4)](_0xd2a9c5,_0x4c3f3d){const _0x684bdf=_0x2cf6ff;return!!this[_0x684bdf(0x349)]['setItem'](_0xd2a9c5,_0x4c3f3d);}[_0x2cf6ff(0x296)](_0x42a3f3,_0x3ba2bc,_0x5d9f66,_0x2e1dd2){const _0x11c0ae=_0x2cf6ff,_0x291dea=this['_revisionService'][_0x11c0ae(0xe9)](_0x42a3f3);this[_0x11c0ae(0x39e)]['set'](_0x42a3f3,{'unitID':_0x42a3f3,'type':_0x3ba2bc,'awaitingChangeset':_0x5d9f66,'mutations':_0x2e1dd2,'rev':_0x291dea}),this[_0x11c0ae(0x2cb)][_0x11c0ae(0x277)](_0x42a3f3)||this[_0x11c0ae(0x19d)](_0x42a3f3);}[_0x2cf6ff(0x19d)](_0x4030f3){const _0x3c5afe=_0x2cf6ff,_0x2d3d29=this[_0x3c5afe(0x16d)]();_0x2d3d29===0x0?this[_0x3c5afe(0x37c)](_0x4030f3):this[_0x3c5afe(0x2cb)]['set'](_0x4030f3,setTimeout(()=>this[_0x3c5afe(0x37c)](_0x4030f3),_0x2d3d29));}[_0x2cf6ff(0x16d)](){const _0x7f0bec=_0x2cf6ff;var _0x46432e;return(_0x46432e=this[_0x7f0bec(0x17b)][_0x7f0bec(0x30f)](Tn))!=null?_0x46432e:Rn;}[_0x2cf6ff(0x37c)](_0x29e170){const _0x50b023=_0x2cf6ff,_0x15169d=this[_0x50b023(0x2cb)][_0x50b023(0x19c)](_0x29e170);return _0x15169d!==void 0x0&&window[_0x50b023(0x40c)](_0x15169d),this['_localStorageService'][_0x50b023(0x28a)](os(_0x29e170),this[_0x50b023(0x39e)][_0x50b023(0x19c)](_0x29e170))[_0x50b023(0x1ed)](()=>this['_saveTaskMap']['delete'](_0x29e170));}async['exhaustSavingTask'](){const _0x10c262=_0x2cf6ff,_0x3094a8=[];this[_0x10c262(0x2cb)][_0x10c262(0x198)]((_0x431362,_0x22e499)=>{const _0x23b17f=_0x10c262;window[_0x23b17f(0x40c)](_0x431362),_0x3094a8[_0x23b17f(0x16c)](this[_0x23b17f(0x37c)](_0x22e499)[_0x23b17f(0x1ed)](()=>{const _0x265ea8=_0x23b17f;this[_0x265ea8(0x2cb)]['delete'](_0x22e499);}));}),await Promise['all'](_0x3094a8);}[_0x2cf6ff(0x2f4)](){const _0x27794e=_0x2cf6ff;this[_0x27794e(0x2cd)](this[_0x27794e(0x410)][_0x27794e(0x3d3)](()=>{const _0x2f428a=_0x27794e;if(this[_0x2f428a(0x2cb)]['size'])return this[_0x2f428a(0x12c)]['t']('collaboration-client.offline-data-not-saved');}));}};D=er([Oe(0x0,_0x5d22a5),Oe(0x1,_0x100b17),Oe(0x2,_0x43afaa),Oe(0x3,_0x11c4b2(_0x56c312)),Oe(0x4,_0x11c4b2(_0x382160))],D);function os(_0x134d7a){const _0xd5974b=_0x2cf6ff;return _0xd5974b(0x30e)+_0x134d7a;}var tr=Object[_0x2cf6ff(0x2d3)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x60b845,_0x1bb5f9,_0x5104a5,_0x50f798)=>{const _0x1924b3=_0x2cf6ff;for(var _0x4e1f5e=_0x50f798>0x1?void 0x0:_0x50f798?sr(_0x1bb5f9,_0x5104a5):_0x1bb5f9,_0x17c8a9=_0x60b845[_0x1924b3(0x183)]-0x1,_0x5b6114;_0x17c8a9>=0x0;_0x17c8a9--)(_0x5b6114=_0x60b845[_0x17c8a9])&&(_0x4e1f5e=(_0x50f798?_0x5b6114(_0x1bb5f9,_0x5104a5,_0x4e1f5e):_0x5b6114(_0x4e1f5e))||_0x4e1f5e);return _0x50f798&&_0x4e1f5e&&tr(_0x1bb5f9,_0x5104a5,_0x4e1f5e),_0x4e1f5e;},ht=(_0x1c2a8c,_0x4d358c)=>(_0x157f4e,_0x202ce5)=>_0x4d358c(_0x157f4e,_0x202ce5,_0x1c2a8c);function nr(_0x58bc09){const _0x1a8bb7=_0x2cf6ff,{unitID:_0x2fc8cc,mutations:_0x11aba0}=_0x58bc09;return{'unitId':_0x2fc8cc,'subUnitId':_0x11aba0[0x0][_0x1a8bb7(0x3d6)][_0x1a8bb7(0x1d3)]};}let Ke=class{constructor(_0x308836,_0x166a7a,_0x3128d7){const _0x455c6f=_0x2cf6ff;this[_0x455c6f(0x249)]=_0x308836,this[_0x455c6f(0x146)]=_0x166a7a,this[_0x455c6f(0x338)]=_0x3128d7;}[_0x2cf6ff(0x300)](_0x434291){const _0x5d98cd=_0x2cf6ff;var _0x314546,_0x1c8d94,_0x5803cd,_0x4b51c6;const _0x37feb2=this[_0x5d98cd(0x249)][_0x5d98cd(0x19c)](_0x5170b3),{unitId:_0x67df94,subUnitId:_0x20452f}=nr(_0x434291),_0x4a6e40=_0x37feb2[_0x5d98cd(0x31f)](_0x67df94)['getCurrentSelections'](),_0x272e9d=(_0x1c8d94=(_0x314546=this[_0x5d98cd(0x338)][_0x5d98cd(0x18b)](_0x67df94))==null?void 0x0:_0x314546[_0x5d98cd(0x3be)]())==null?void 0x0:_0x1c8d94[_0x5d98cd(0xe6)]();if(_0x4a6e40[_0x5d98cd(0x183)]===0x0||!_0x67df94||!_0x20452f)return;const _0x576c39=[{'id':_0xccbe27['id'],'params':{'unitId':_0x67df94,'subUnitId':_0x272e9d,'selections':_0x3d523e['deepClone'](_0x4a6e40)}}],_0x425374=this[_0x5d98cd(0x146)][_0x5d98cd(0x1f5)](_0x434291,_0x576c39);if(!_0x61acc5(_0x425374))throw _0x425374[_0x5d98cd(0x36e)];const _0x31cec7=(_0x4b51c6=(_0x5803cd=_0x425374['m2Prime'][0x0])==null?void 0x0:_0x5803cd[_0x5d98cd(0x3d6)])==null?void 0x0:_0x4b51c6['selections'];Array[_0x5d98cd(0x1da)](_0x31cec7)&&_0x31cec7[_0x5d98cd(0x183)]&&this['_injector'][_0x5d98cd(0x19c)](_0x339bfb)[_0x5d98cd(0x3aa)](_0xccbe27['id'],{'unitId':_0x67df94,'subUnitId':_0x272e9d,'selections':_0x31cec7});}};Ke=ir([ht(0x0,_0x11c4b2(_0x3ca714)),ht(0x1,_0x1d81ff),ht(0x2,_0x3a69fb)],Ke);const tt=_0x131476(_0x2cf6ff(0x1b9));var js=(_0x47bbb6=>(_0x47bbb6[_0x47bbb6['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2cf6ff(0x2e9),_0x47bbb6[_0x47bbb6['OTHER_CLIENTS_EDITING']=0x1]=_0x2cf6ff(0x3da),_0x47bbb6))(js||{});function _0x38c5(){const _0x2b2a46=['SEND_CHANGESET_TIMEOUT','conflict.title','_render','USERS_LEAVE','arc','visibilitychange','[CollaborationSessionService]','pipe','newCsEvent','[CollaborationUndoRedoService]','_saveCache','getUndoRedoMutationParamsCache','roomMembers','blue400','image/jpg','now','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_retryCount','activeSheet$','onTransformIME','_onRemoteACK','size','_redoStacks','withCredentials','_assignedColors','_getAnchorBounding','getCollabCursors$','backgroundColor','8713999rkuxcZ','_anchor','trim','error$','prototype','requireSession','univer-online-status-title','getCurrentSelections','[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.','_createHandler','toggleOnline','LICENSE_EXPORT_SIZE_EXCEEDED','_unitStatus','_singleActiveUnitService','collaboration.single-unit.warning','_hover','_cachedData','_candidateSocket','localeService','sessionStatus$','UPDATE_CURSOR','split','FAIL','_socketMessageSubscription','_unitID','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','add','members','executeCommand','_onCursorUpdate','LIVESHARE_TERMINATE','_startCollaboration','assign','searchParams','fetchMissingChangesets','SYNCED','BASE64','getItem','isActive','flatMap','skeleton','awaiting_with_pending','json','extend','parse','_updateSubUnitFromURLParams','_scene','_updateState','getActiveSheet','defs','_showConflictNotification','UNIVER_COLLABORATION_CLIENT_PLUGIN','closePath','_uiPartsService','_roomMembers$','registerHTTPInterceptor','_HTTPService','resourceIDs','currentTheme$','min','responseType','_docSkeleton','override','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','connection\x20error','5wfJFNw','addEventListener','event$','_collaborationTimeoutTimer','registerBeforeClose','getUnitId','setConfig','params','[OfflineState]:\x20received\x20rejection.','UNKNOWN_CODE','fillText','OTHER_CLIENTS_EDITING','#fff','_socketReady','_localCacheService','_cursor','headers','_transformSelections','m1Prime','loginUrlKey','USERS_ENTER','Undefined','propertyIsEnumerable','name','TOO_MANY_REQUESTS','\x0aCurrent:\x20','startTime','_fetchMissChangesets','not_collab','incrementRevOfUnit','_collabCursorController','transformByState','engine','fetching\x20missing\x20changesets\x20from\x20','slice','defIds','joinRsp','substring','_sessions','getUnitType','objectType','/allowed','row','registerComponent','/-/object/list','jiqing500','HELLO','colorChannel1','authzUrl','unit','483430KWZPPd','_substituteRedoStack','LICENSE_DISTRO_REJECTED','InsertRangeMoveRightCommandId','_disableEditing','data','/block/','sendChangesetTimeout','_telemetryInfo','collabStatus.conflict','_event$','clearTimeout','mutations','div','getSheetBlock','_beforeCloseService','cmd','hovered','_acknowledgedAwaitingChangeset','evenodd','[UniverCollaborationClientPlugin]','bottom','_id','_context','getOwnPropertySymbols','_transformStack','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_onConnectionFailed','_getCurrentRevision','type','commentUpdate$','toRgbString','location','displayName','telemetry\x20info\x20is\x20not\x20initialized','batchAllowed','close$','removeParam','UNRECOGNIZED','startsWith','INVALID_ARGUMENT','image/bmp','_submitChangeset','_transformIMECache','_cursors','duration','_onOffline','getAncestorScale','collabStatus.notCollab','_setupSubUnitSync','_handler','generateRandomId','object','_getSignURL','_substituteUndoStack','_onRecvEvent','update','_incrementRevisionNumber','FETCH_MISSING','_clearOtherTimers','UNIVER_SHEET','replace','subscribeEvent','call','endColumn','isPermissionRej','with','_stopTelemetryCollaborationNewChangeset','image/png','eventID','_permissionService','[CollaborationState]:\x20apply\x20error!','roomMembers$','registerOnClose','INGEST','auth.needGotoLoginAlert','collabStatus.fetchMiss','_docSyncEditingCollabCursorService','_getSendChangesetTimeout','IDLE','YUUMI_UNABLE_LOAD_URL','_scheduleClearOtherTimer','collaborators','_http','findNodePositionByCharIndex','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','storage','Unknown\x20user','#FFF','_eventUnsubscribe','compose','_getMergeRange','collabStatus.offline','_send','_transformPreviousActiveRange','_themeService','9188946kqVtrG','_clearHeartbeatTimer','key','univer-online','_univerInstanceService','resend','getSheetId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onStarting','getCurrentRevOfUnit','svg','/fetchmissing?from=','currentSkeleton$','_initRequestHeader','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_handleLeaveEvent','_getAPIPrefixPath','cursorInfo','COMPLETION_FINISHED','retryConnectingInterval','saveOfflineData','_createInitialStateImpl','_colorIndex','black','putCollaborators','_clearLocalCache','every','?size=','960838WrZxug','off-line-single_clip0_910_343','_initUnitPermissionChange','top','changesets','map','collaboratorID','SNAPSHOT_URL_KEY','_createInitialState','cursorInfo$','permissionRejEvent','_loadSheet','close','icon','status','catch','show','_scheduleTimestamp','CONFLICT','PENDING','_collabCursorState$','_color','onRemoteAck','_refreshCollabCursors','random','MSG_FOR_ERROR','HEARTBEAT','ERROR_EXCEED_SIZE','getCurrentUser','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','LICENSE_MAX_UNITS_EXCEEDED','_onRemoteChangeset','_waitCount','popstate','onlineStatus','path','roles','UniverIcon','save\x20fail\x20reason\x20is\x20','collab-client.tooltip.reconnect','UNDEFINED','downloadEndpointUrl','/universer-api/snapshot/','attrs','setTimeout','addObjects','_onRefRangeChange','NOT_COLLAB','_localeService','collaboration-client.config','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','getCellPositionByOffset','LIVESHARE_REQUEST_HOST','transformChangesets','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getRedoStack','_compressMutationService','LIVESHARE_FETCH_OPERATIONS','_anchorDot','_listenToOfflineEvent','set','_selfUnitIDs','_name','symbol','\x20-\x20','_lastPointer','measureText','_exhaustRemoteChangesetQueue','height','updatePermissionObjEvent','selection','collab-rect-range-','_onRemoteRejected','saveSnapshot','_transformService','workbook','_updateLocalCache','RETRY_CONNECTING_MAX_COUNT','from','_transitionLocked','LEAVE','collabStatus.synced','PERMISSION_REJ','getCurrent','subunit','_decreaseWaiting','delete','onSyncEditingCollabCursor','pauseCollaboration','_initStatusListener','interceptor','objects','/role','_collabSessionService','listCollaborators','function','onMissedChangesetFetched','_snapshotServerService','_online','_initResize','_removeClearOtherTimer','collab-text-range-','synced','fetchMiss','onlyLocal','getMember','updatePermissionPoint','result','ONLINE','JOINING','_handleEvent','clear','push','_getSaveTimeout','asObservable','transform','closeSession','JOIN','getRelativeToViewportCoord','_unlockTransition','_socket$','RemoveColCommandId','_hovered','entries','COLLAB_SUBMIT_CHANGESET_URL','unload','InsertRowCommandId','_configService','_labelPosition','_awaitingChangeset','_retryConnectingTimer','_document','lineTo','xlink:href','onTransformRemoteChangesetByIMECache','length','_initEventListeners','rgba(255,\x20255,\x20255,\x200.01)','_collaborationSessionService','socket\x20open.','/rev/','_onUserLeave','put','getUnit','infoRsp','/universer-api/snapshot','CHANGESET_REJ','_toggleOnline','history','setShapeProps','rev','init','round','session.room-full','target','_clearRedo','forEach','setInterval','_listenToOnlineEvent','sheetId','get','_scheduleSaving','_range','translate(.97)','ranges','_clearTimeoutTimer','M0\x200H16V16H0z','getOffsetConfig','concat','href','color','_entityInit$','addObject','_collaborationController','_onFetchMissResult','transformIMECache','_handleHover','_clearCollaborationTimeoutTimer','awaiting','getTypeOfUnitDisposed$','unshift','loadOfflineData','_drawAnchor','_onCombEvent','url(#$1','onSendChangeset','unknown','doc.mutation.rich-text-editing','number','univer-pro.collaboration-client.single-active-unit-service','listRoles','CHANGESET_ACK','UNIVER_SLIDE','_userManagerService','getInterceptPoints','_config','FileId','_onConnectionOpen','HttpImport','_getDownloadEndpointURL','12GLKjxl','_getUndoStack','SUCCUSS','_toggleOffline','restore','enableAuthServer','_collaborationPaused','_drawTextRange','_sendHeartbeatTimer','textRanges','failed\x20to\x20apply\x20missed\x20changesets!','patch','_startDocCollabCursor','clearInterval','roomInfos','subUnitId','_renderManagerService','onCommandExecuted','HEARTBEAT_INTERVAL','use','x-univer-host','UNKNOWN_CMD','isArray','getUniverSheetInstance','drawWith','/universer-api/file/{fileID}/sign-url','[FetchMissState]','width','_initModules','\x20in\x20_schedule.','_timeoutTimer','getCollabEntity$','_status$','url','_initMergeInterceptor','getSheetBySheetId','DEFAULT_FILE_NAME','_socket','children','_getCtorByUniverType','fillStyle','then','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','text','requestParams','some','_undoStacks','createInstance','originalMeta','transformMutationsWithChangeset','[CollaborationEntity]','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','updateCollaborator','loadSheet','setUndoRedoMutationParamsCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitAdded$','find','startColumn','stringify','getCurrentUnitForType','POST','onStateChange','url(#on-line-single_clip0_910_349)','/unit/','values','_backgroundColor','_createSocket','_applyRemoteChangeset','encodeURIComponent','_cursorShapes','_textBubble','_httpService','fetchThroughInterceptors','UPDATE_PERMISSION_OBJ','onMissingChangesets','open$','UnitEmbedded','status$','state$','_colorAssignService','actions','univerjs-icon\x20univerjs-icon-','_socketService','COMPRESS_MUTATION_SEND','setCurrentUser','visibilityState','_updateURLWithCurrentState','INTERNAL_ERROR','_clearUndo','onload','[CollaborationSessionService]:\x20socket\x20error','31846617EmQSpj','replaceState','1em','_commentUpdate$','_sendingTimer','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getParam','idSuffix','_syncEditingCollabCursorService','beginPath','moveTo','resize','getMergeData','FETCH_MISS','LICENSE_IMPORT_SIZE_EXCEEDED','getSkeleton','assignAColorForMemberID','focused$','_members','LIVESHARE_OPERATION','_startSheetCollabCursor','_getLoginPath','post','/object/','hasOwnProperty','_removeCollabCursors','_scheduleCollaborationTimeoutTimer','toString','ERROR_IMAGE','getFocusedUnit','enableSingleActiveInstanceLock','currentColor','_removeRoom','_sheetTransformSelectionsService','_transformUndoredo','onCommentUpdate','_isPermissionRej','getUnhiddenWorksheets','/universer-api/authz','font','onRemoteChangeset','_injector','image/jpeg','className','getCollabEntity','AUTHZ_URL_KEY','_scheduleHeartbeat','LOCAL_CACHE_INTERVAL','newValue','_heartbeatTimer','isEditing','objectID','APPLY_REJECT','CHANGESET_REVISION_CONFILICT','EXCHANGE_SIGN_URL_SERVER_URL_KEY','liveShareOperation','_state$','save','_checkMissing','COMMENT_UPDATE','_revisionService','createElement','fill','InsertColCommandId','_onCursorDelete','_state','RECV','_unitOnClients','/resources','FromArray','pushState','dispose$','[SyncedState]:\x20received\x20rejection.','getDocRanges','PSEUDO_FETCH_MISSING_RESULT','snapshotServerUrl','OFFLINE','session.collaboration-timeout','getUnitStatus$','max','whenReady','0\x200\x2016\x2016','setParam','includes','LOGIN_URL_KEY','dispose','Error','has','collaMsg','transformMutation','online','getTime','on-line-single_clip0_910_349','hide','encode','_throwTelemetryCollaborationNewChangeset','_drawRectRange','current','collabStatus.syncing','getRoom','collabWebSocketUrl','unsubscribe','_type','editingUnit','memberID','getOwnPropertyDescriptor','setItem','snapshot','SUBMIT_CHANGESET','_cursorInfo$','onMouseMove','_change$','unitId','permission.content','fetch_missing','APPLY_PERMISSION_DENIED','appendMutation','enableLocalCache','updateOfflineData','_sheetSkeletonManagerService','tag','HEARTBEAT_TIMEOUT','RemoveRowCommandId','Warning','_initCloseConn','_ws','apply','126cBrNUG','uni.network.url-service','_onMessage','url(#off-line-single_clip0_910_343)','urlChange$','updateMember','getUnitOnRev','getMemberID','endRow','SNAPSHOT_INVALID_SNAPSHOT','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_ensureSubject','AWAITING_WITH_PENDING','offline','next','HttpExport','session','conflict','_telemetryService','_lockTransition','_session','APPLY_NON_SEQUENTIAL_REVISION','_getAPIPrefix','deepClone','debug','_executeRemoteChangeset','_urlService','_shapes','setActiveRange','/universer-api/comb','_transformRemoteChangesetByIMECache','range','UUID','indexOf','conflict.content','YUUMI_RATE_OVER_LIMIT','_shouldReportTelemetry','/collaborator','updateCursorEvent','_pendingMutations','initWorkbookPermissionChange','transformUndoRedo','_sendHeartbeat','_commentService','_saveTaskMap','[CollaborationSession]','disposeWithMe','_updateStatus','_updateLocalCursor','column','body','state','defineProperty','_onConflict','collaboration-session-retry','fromCollab','m2Prime','/new_changes','onRendered','_draw','pending','create','_snapshotService','_tryReconnect','disableLocalCache','reconnect','saveSheetBlock','_getUploadFileURL','8UqMJVj','{fileID}','stopTime','_registerRenderDependencies','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[SyncedState]:\x20received\x20acknowledgement.','NO_OTHER_CLIENTS_EDITING','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','createSocket','_disabled','onReady','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','1843492tFtATd','title','_registerDependencies','onRemoteRej','CONNECTOR_DATA_TOO_LARGE','_setupBeforeClosingHandler','_handleHeartbeatEvent','routeKey','COMPRESS_MUTATION_APPLY','_logService','LIVESHARE_NEW_HOST','YUUMI_URL_COL_OUT_OF_RANGE','_init','_replaceFileID','_joinRoom','_initCommandExecutedListener','verdancy600','transformSelections','_refRangeService','csRejEvent','_hideTimer','6mHYcaQ','[OfflineState]:\x20received\x20acknowledgement.','replaceTextRanges','complete','getValue','_entities','/object','gold400','baseRev','_loadDoc','unit-cache-','getConfig','removeMember','getImage','reduce','&source=','_waitForHeartbeatResponse','UnitSnapshot','_getSnapshotAPIPrefix','_clearScheduledTask','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','c2Prime','AWAITING','387504Fmtmfj','_initStatusComponent','\x0aAfter:\x20','_docTransformIMECacheService','getWorkbookSelections','_imageSourceCache','getImageSourceCache','awaitingChangeset','PERMISSION_DENIED','string','toggleOffline','getRangePointData','_memberService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','send','none','_roomMembers','signUrlServerUrl','clipPath','SNAPSHOT_HAS_BEEN_REMOVED','_sessionStatus$','0\x200\x2017\x2016','YUUMI_SUBSCRIPTION_NOT_FOUND','_schedule','hidden','ALREADY_EXISTS','loadDoc','_remoteChangesetQueue','onTransformSelections','_instanceService','_onLocalMutation','SNAPSHOT_SERVER_URL_KEY','sessionStatus','filter','capture','MUTATION','_updateCollabCursors','message$','OffLineSingle','code','\x20to\x20','_queuedRemoteChangesets','_onJoinRoomEvent','DeleteRangeMoveLeftCommandId','_docSkeletonManagerService','purple300','_localStorageService','_commandService','onPointerMove$','c1Prime','/-/object/-/batch_allowed','reject','MoveRangeCommandId','_getScale','...','onlineStatusTitle','_tryEnsureSocket','getRenderById','_syncEditingCollabCursor','setAlpha','unitID','_messageService','UNIVER_DOC','disposeUnit','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[DataLoaderController]','csAckEvent','APPLY_REVISION_CONFILICT','_rescheduleHeartbeat','subscribe','OnLineSingle','revision','session.will-retry','transformRemoteChangeset','_onUserJoin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerRenderModule','selections','_startTelemetryCollaborationNewChangeset','collab-text-anchor-','_notificationService','NOT_FOUND','registerRefRange','error','joinEvent','submit\x20changeset\x20error!','confirm'];_0x38c5=function(){return _0x2b2a46;};return _0x38c5();}const as=0x7530,cs='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x28d30b{constructor(){const _0x3dae95=_0x2cf6ff;super(),l(this,_0x3dae95(0x417),_0x3d523e['generateRandomId']()),l(this,_0x3dae95(0x139),new Set()),l(this,_0x3dae95(0x263),new Map()),l(this,_0x3dae95(0x251),null),l(this,_0x3dae95(0x43c),new Map()),l(this,_0x3dae95(0x39a),new Map()),this['_init']();}[_0x2cf6ff(0x275)](){const _0x4b9c66=_0x2cf6ff;super[_0x4b9c66(0x275)](),this['_clearOtherTimers'][_0x4b9c66(0x198)]((_0x3f48fd,_0x471c81)=>this[_0x4b9c66(0x160)](_0x471c81)),this['_heartbeatTimer']&&window[_0x4b9c66(0x1d1)](this[_0x4b9c66(0x251)]);}[_0x2cf6ff(0x26e)](_0xd21e9a){const _0x3700b6=_0x2cf6ff;return this[_0x3700b6(0x2aa)](_0xd21e9a)['pipe'](_0x3c67f1());}[_0x2cf6ff(0x287)](_0x5721fc){const _0x315f3d=_0x2cf6ff;this['_selfUnitIDs']['size']===0x0&&this[_0x315f3d(0x24e)](),this[_0x315f3d(0x139)]['add'](_0x5721fc),this[_0x315f3d(0xdd)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5721fc],'isForwarded':!0x1});}[_0x2cf6ff(0x35a)](_0x534df7){const _0x749def=_0x2cf6ff;this[_0x749def(0x139)][_0x749def(0x152)](_0x534df7),this[_0x749def(0x139)][_0x749def(0x387)]===0x0&&this[_0x749def(0x251)]&&window[_0x749def(0x1d1)](this[_0x749def(0x251)]);}[_0x2cf6ff(0x2fb)](){const _0x1bdc66=_0x2cf6ff;this['disposeWithMe'](_0x57baeb(_0x4f5602(window,_0x1bdc66(0x457))[_0x1bdc66(0x360)](_0x23d687=>{const _0x167437=_0x1bdc66;if(_0x23d687[_0x167437(0xe2)]!==cs||!_0x23d687[_0x167437(0x250)])return;const _0x280c51=JSON[_0x167437(0x3ba)](_0x23d687[_0x167437(0x250)]);this['_handleEvent'](_0x280c51);}))),window['addEventListener'](_0x1bdc66(0x179),()=>this[_0x1bdc66(0xdd)]({'type':0x1,'memberID':this[_0x1bdc66(0x417)],'unitIDs':Array['from'](this[_0x1bdc66(0x139)])}));}[_0x2cf6ff(0x16a)](_0x1fa443){const _0x301e0f=_0x2cf6ff;switch(_0x1fa443[_0x301e0f(0x41e)]){case 0x0:this['_handleJoinEvent'](_0x1fa443);break;case 0x1:this[_0x301e0f(0xef)](_0x1fa443);break;case 0x2:this[_0x301e0f(0x2f5)](_0x1fa443);break;}}['_handleJoinEvent'](_0x46790c){const _0x5293a3=_0x2cf6ff,{unitIDs:_0xcda713,memberID:_0xd9d68e,isForwarded:_0x27c25a}=_0x46790c;_0xcda713[_0x5293a3(0x198)](_0x3d9ec2=>{const _0x971931=_0x5293a3;if(!_0x27c25a&&this[_0x971931(0x263)][_0x971931(0x277)](_0x3d9ec2)&&this[_0x971931(0x2aa)](_0x3d9ec2)[_0x971931(0x2ad)](0x1),!this[_0x971931(0x263)][_0x971931(0x277)](_0x3d9ec2)||!this[_0x971931(0x263)][_0x971931(0x19c)](_0x3d9ec2)[_0x971931(0x277)](_0xd9d68e)){const _0x31785e=this[_0x971931(0x263)]['get'](_0x3d9ec2)||new Set();_0x31785e[_0x971931(0x3a8)](_0xd9d68e),this[_0x971931(0x263)][_0x971931(0x138)](_0x3d9ec2,_0x31785e),this['_scheduleClearOtherTimer'](_0xd9d68e);}}),_0x27c25a||this['_send']({'type':0x0,'memberID':this[_0x5293a3(0x417)],'unitIDs':[...this[_0x5293a3(0x139)]],'isForwarded':!0x0});}[_0x2cf6ff(0x452)](_0x3f5740){const _0x2762f8=_0x2cf6ff;this[_0x2762f8(0x160)](_0x3f5740);const _0x2560b5=window[_0x2762f8(0x128)](()=>{const _0x10e6e3=_0x2762f8;this[_0x10e6e3(0x263)]['forEach'](_0x513ce5=>{const _0x3c6025=_0x10e6e3;_0x513ce5[_0x3c6025(0x152)](_0x3f5740);});},as*0x2);this[_0x2762f8(0x43c)]['set'](_0x3f5740,_0x2560b5);}['_removeClearOtherTimer'](_0x50b625){const _0x30929f=_0x2cf6ff;if(this['_clearOtherTimers']['has'](_0x50b625)){const _0x11f283=this['_clearOtherTimers'][_0x30929f(0x19c)](_0x50b625);_0x11f283&&window[_0x30929f(0x40c)](_0x11f283),this['_clearOtherTimers'][_0x30929f(0x138)](_0x50b625,null);}}[_0x2cf6ff(0xef)](_0x315640){const {memberID:_0x3f257d,unitIDs:_0x1b0472}=_0x315640;_0x1b0472['forEach'](_0x2b571e=>{const _0x1f9c3f=_0xd63a;var _0x17267c;const _0x4eebc2=this[_0x1f9c3f(0x263)][_0x1f9c3f(0x19c)](_0x2b571e);_0x4eebc2&&(_0x4eebc2[_0x1f9c3f(0x152)](_0x3f257d),(_0x17267c=this[_0x1f9c3f(0x2aa)](_0x2b571e))==null||_0x17267c['next'](_0x4eebc2[_0x1f9c3f(0x387)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x3f257d);}[_0x2cf6ff(0x2f5)](_0x398ab6){const _0x7e6010=_0x2cf6ff;this[_0x7e6010(0x452)](_0x398ab6[_0x7e6010(0x288)]);}[_0x2cf6ff(0xdd)](_0x4c31c6){const _0x34a4fe=_0x2cf6ff;localStorage['setItem'](cs,JSON[_0x34a4fe(0x1ff)](_0x4c31c6));}[_0x2cf6ff(0x24e)](){const _0x487fd1=_0x2cf6ff;this[_0x487fd1(0x251)]=window[_0x487fd1(0x199)](()=>{const _0x473b51=_0x487fd1;this[_0x473b51(0xdd)]({'type':0x2,'memberID':this['_id']});},as);}[_0x2cf6ff(0x2aa)](_0xc500b2){const _0x535ef1=_0x2cf6ff;return this['_unitStatus'][_0x535ef1(0x277)](_0xc500b2)||this[_0x535ef1(0x39a)][_0x535ef1(0x138)](_0xc500b2,new _0xa8903e(0x0)),this[_0x535ef1(0x39a)][_0x535ef1(0x19c)](_0xc500b2);}}function xs(_0xbcfd2c){let _0x2e69ce='';for(const _0x24491f of _0xbcfd2c){const {startOffset:_0x2bad0e,endOffset:_0x516835,isActive:_0x3063eb}=_0x24491f;_0x2e69ce['length']&&(_0x2e69ce+=','),_0x2e69ce+=_0x2bad0e+':'+_0x516835+':'+(_0x3063eb?'1':'0');}return _0x2e69ce;}function or(_0x35fa0c){const _0x488de9=_0x2cf6ff,_0x2aa7ee=_0x35fa0c[_0x488de9(0x3a3)](','),_0x50eda0=[];for(const _0x52e91d of _0x2aa7ee){const [_0x47fc7e,_0x165ee4,_0xd3571e]=_0x52e91d[_0x488de9(0x3a3)](':');_0x50eda0[_0x488de9(0x16c)]({'startOffset':Number(_0x47fc7e),'endOffset':Number(_0x165ee4),'collapsed':_0x47fc7e===_0x165ee4,'isActive':_0xd3571e==='1'});}return _0x50eda0[_0x488de9(0x1f1)](_0xaf2804=>_0xaf2804[_0x488de9(0x3b4)])||(_0x50eda0[0x0][_0x488de9(0x3b4)]=!0x0),_0x50eda0;}class Bt extends _0x424705{constructor(){const _0x3db98d=_0x2cf6ff;super(...arguments),l(this,_0x3db98d(0x110),new _0xa8903e(null)),l(this,'collabCursorState$',this[_0x3db98d(0x110)][_0x3db98d(0x16e)]());}['syncEditingCollabCursor'](_0xa41e5){const _0x11eed8=_0x2cf6ff,{unitID:_0x122209,memberID:_0x1dc552,textRanges:_0xc98d50}=_0xa41e5,_0x91b374=xs(_0xc98d50),_0x28619a={'unitID':_0x122209,'memberID':_0x1dc552,'selection':_0x91b374};this[_0x11eed8(0x110)]['next'](_0x28619a);}}var ar=Object[_0x2cf6ff(0x2d3)],cr=Object[_0x2cf6ff(0x289)],hr=(_0x3af35b,_0x6b030c,_0x2668ad,_0x2ff093)=>{for(var _0x2a9fea=_0x2ff093>0x1?void 0x0:_0x2ff093?cr(_0x6b030c,_0x2668ad):_0x6b030c,_0x4aef1d=_0x3af35b['length']-0x1,_0x3ec425;_0x4aef1d>=0x0;_0x4aef1d--)(_0x3ec425=_0x3af35b[_0x4aef1d])&&(_0x2a9fea=(_0x2ff093?_0x3ec425(_0x6b030c,_0x2668ad,_0x2a9fea):_0x3ec425(_0x2a9fea))||_0x2a9fea);return _0x2ff093&&_0x2a9fea&&ar(_0x6b030c,_0x2668ad,_0x2a9fea),_0x2a9fea;},hs=(_0x55b2be,_0x552131)=>(_0x3b8432,_0x5649a1)=>_0x552131(_0x3b8432,_0x5649a1,_0x55b2be);let Xe=class{constructor(_0x5b55de,_0x572b31){const _0x5e14b1=_0x2cf6ff;this[_0x5e14b1(0x249)]=_0x5b55de,this['_transformService']=_0x572b31;}[_0x2cf6ff(0x300)](_0x4c4f28){const _0x240a1a=_0x2cf6ff;var _0x314ded;const _0x5aaafc=this[_0x240a1a(0x249)][_0x240a1a(0x19c)](_0x253567),_0x1d388a=(_0x314ded=_0x5aaafc[_0x240a1a(0x269)]())!=null?_0x314ded:[];if(_0x1d388a[_0x240a1a(0x183)]===0x0)return;const _0x359147=[{'id':_0x240a1a(0x1b7),'params':{'unitId':_0x4c4f28['unitID'],'actions':null,'textRanges':_0x1d388a}}],_0x4f4e6c=this[_0x240a1a(0x146)][_0x240a1a(0x1f5)](_0x4c4f28,_0x359147);if(!_0x61acc5(_0x4f4e6c))throw _0x4f4e6c['error'];const _0x1928b6=_0x4f4e6c[_0x240a1a(0x2d7)][0x0][_0x240a1a(0x3d6)][_0x240a1a(0x1cd)];Array[_0x240a1a(0x1da)](_0x1928b6)&&_0x1928b6[_0x240a1a(0x183)]&&_0x5aaafc[_0x240a1a(0x306)](_0x1928b6,!0x1);}};Xe=hr([hs(0x0,_0x11c4b2(_0x3ca714)),hs(0x1,_0x1d81ff)],Xe);const lr=new Set([_0x46f3fa['id']]);function ls(_0x35e474,_0x396664,_0x1b764b,_0x12cb07,_0x1d833a){const _0x198c63=_0x2cf6ff;var _0x50a994,_0x50e055,_0x1477bd,_0x1ae006;const _0x5f4920=[];for(const _0x2b99f5 of _0x35e474)if(lr['has'](_0x2b99f5['id'])){if(_0x5f4920[_0x198c63(0x183)]>0x0)break;_0x5f4920[_0x198c63(0x16c)](_0x2b99f5);break;}else _0x5f4920[_0x198c63(0x16c)](_0x2b99f5);const _0x4afedb=(_0x50e055=(_0x50a994=_0x1d833a[_0x198c63(0x118)]())==null?void 0x0:_0x50a994['userID'])!=null?_0x50e055:_0x198c63(0x1b6),_0x368d01=(_0x1ae006=(_0x1477bd=_0x1d833a[_0x198c63(0x118)]())==null?void 0x0:_0x1477bd[_0x198c63(0x288)])!=null?_0x1ae006:_0x198c63(0x1b6);return{'changeset':{'unitID':_0x396664,'type':_0x4053f9(_0x1b764b[_0x198c63(0x3f6)](_0x396664)),'baseRev':_0x12cb07[_0x198c63(0xe9)](_0x396664),'revision':0x0,'userID':_0x4afedb,'memberID':_0x368d01,'mutations':_0x5f4920},'pendingMutations':_0x35e474[_0x198c63(0x3f1)](_0x5f4920[_0x198c63(0x183)])};}function _r(_0x175d9e,_0x5c2874,_0x2da6c1,_0x5ce4f9,_0x5bf855){const _0x109a41=_0x2cf6ff;var _0x4ddd89,_0x382116,_0x1e7c08,_0x187bb0;const _0x129516=[_0x175d9e[_0x109a41(0x312)]((_0x42b8f8,_0x1d4f05)=>{const _0x2f25ac=_0x109a41;var _0x212ce8;const {id:_0xd60062}=_0x42b8f8,{id:_0x1d37ae,type:_0x491bee}=_0x1d4f05,_0x1de411=(_0x212ce8=_0x42b8f8['params'])!=null?_0x212ce8:{'actions':null},_0x306af1=_0x1d4f05[_0x2f25ac(0x3d6)];if(_0xd60062&&_0xd60062!==_0x1d37ae)throw new Error(_0x2f25ac(0x382)+_0xd60062+_0x2f25ac(0x13c)+_0x1d37ae+'.');return{..._0x42b8f8,'id':_0x1d37ae,'type':_0x491bee,'params':{'unitId':_0x306af1[_0x2f25ac(0x290)],'textRanges':_0x306af1[_0x2f25ac(0x1cd)],'actions':_0x295634[_0x2f25ac(0xda)](_0x1de411[_0x2f25ac(0x215)],_0x306af1[_0x2f25ac(0x215)])}};},{})],_0xa62dc5=(_0x382116=(_0x4ddd89=_0x5bf855['getCurrentUser']())==null?void 0x0:_0x4ddd89['userID'])!=null?_0x382116:_0x109a41(0x1b6),_0x4cb5f1=(_0x187bb0=(_0x1e7c08=_0x5bf855['getCurrentUser']())==null?void 0x0:_0x1e7c08[_0x109a41(0x288)])!=null?_0x187bb0:_0x109a41(0x1b6);return{'changeset':{'unitID':_0x5c2874,'type':_0x4053f9(_0x2da6c1[_0x109a41(0x3f6)](_0x5c2874)),'baseRev':_0x5ce4f9['getCurrentRevOfUnit'](_0x5c2874),'revision':0x0,'userID':_0xa62dc5,'memberID':_0x4cb5f1,'mutations':_0x129516},'pendingMutations':[]};}const ur={'id':_0x2fd71f['id'],'type':_0xccd063[_0x2cf6ff(0x33e)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x2cf6ff(0x289)],le=(_0x409713,_0x1e60ed,_0x36df10,_0x3368c0)=>{const _0x1e83d3=_0x2cf6ff;for(var _0x37e57f=_0x3368c0>0x1?void 0x0:_0x3368c0?fr(_0x1e60ed,_0x36df10):_0x1e60ed,_0x577491=_0x409713[_0x1e83d3(0x183)]-0x1,_0x42851f;_0x577491>=0x0;_0x577491--)(_0x42851f=_0x409713[_0x577491])&&(_0x37e57f=(_0x3368c0?_0x42851f(_0x1e60ed,_0x36df10,_0x37e57f):_0x42851f(_0x37e57f))||_0x37e57f);return _0x3368c0&&_0x37e57f&&dr(_0x1e60ed,_0x36df10,_0x37e57f),_0x37e57f;},m=(_0x547118,_0x53691f)=>(_0x36782d,_0x42ba2e)=>_0x53691f(_0x36782d,_0x42ba2e,_0x547118),w=(_0x143058=>(_0x143058[_0x2cf6ff(0x12b)]=_0x2cf6ff(0x3eb),_0x143058[_0x2cf6ff(0x3b1)]=_0x2cf6ff(0x162),_0x143058[_0x2cf6ff(0x10f)]='pending',_0x143058[_0x2cf6ff(0x31a)]='awaiting',_0x143058[_0x2cf6ff(0x2ab)]=_0x2cf6ff(0x3b7),_0x143058[_0x2cf6ff(0x22d)]='fetch_missing',_0x143058[_0x2cf6ff(0x10e)]='conflict',_0x143058[_0x2cf6ff(0x26c)]=_0x2cf6ff(0x2ac),_0x143058))(w||{});class _e{constructor(_0x406d17,_0x168c23,_0x2542b8,_0x953c32,_0x5304bc,_0x2a10c1,_0x5bd242,_0x3dd447,_0xc7ea29){const _0x661bb9=_0x2cf6ff;l(this,_0x661bb9(0x17d),null),l(this,'_pendingMutations',[]),(this[_0x661bb9(0x357)]=_0x406d17,this[_0x661bb9(0x41e)]=_0x168c23,this['_handler']=_0x5304bc,this[_0x661bb9(0x34a)]=_0x2a10c1,this['_undoRedoService']=_0x5bd242,this[_0x661bb9(0x25c)]=_0x3dd447,this[_0x661bb9(0x3dd)]=_0xc7ea29,this[_0x661bb9(0x17d)]=_0x2542b8,this[_0x661bb9(0x2c6)]=_0x953c32);}[_0x2cf6ff(0x25a)](_0x36fdfa){const _0x1721e5=_0x2cf6ff,_0x177955=this[_0x1721e5(0x25c)][_0x1721e5(0xe9)](this[_0x1721e5(0x357)]);return _0x36fdfa[_0x1721e5(0x362)]>_0x177955+0x1?(this[_0x1721e5(0x433)][_0x1721e5(0x20f)]({'from':_0x177955,'to':_0x36fdfa['revision']-0x1}),!0x0):!0x1;}[_0x2cf6ff(0x242)](_0xf8574d){const _0x3e7c41=_0x2cf6ff;this['_undoRedoService']['transformUndoRedo'](this[_0x3e7c41(0x357)],_0xf8574d);}[_0x2cf6ff(0x3e0)](_0x3cbc40){var _0x4c3e10,_0x34e05f;(_0x34e05f=(_0x4c3e10=this['_handler'])['onTransformSelections'])==null||_0x34e05f['call'](_0x4c3e10,_0x3cbc40);}[_0x2cf6ff(0x42c)](_0x44e061){const _0x492ac6=_0x2cf6ff;var _0x47ce02,_0x393259;return(_0x393259=(_0x47ce02=this['_handler'])[_0x492ac6(0x385)])==null?void 0x0:_0x393259[_0x492ac6(0x440)](_0x47ce02,_0x44e061);}[_0x2cf6ff(0x2bd)](_0x48e27c){const _0x3050af=_0x2cf6ff;var _0x597a6b,_0xe77b08,_0xaefb68;return(_0xaefb68=(_0xe77b08=(_0x597a6b=this[_0x3050af(0x433)])[_0x3050af(0x182)])==null?void 0x0:_0xe77b08[_0x3050af(0x440)](_0x597a6b,_0x48e27c))!=null?_0xaefb68:_0x48e27c;}['_syncEditingCollabCursor'](_0x54ae45){const _0x2a853b=_0x2cf6ff;var _0xcc0968,_0x50e1b6;if(this[_0x2a853b(0x41e)]===H['UNIVER_DOC']){const {unitID:_0x34e72a,mutations:_0x4c3d9e,memberID:_0x6dac3f}=_0x54ae45,_0x2ca277=_0x4c3d9e[0x0][_0x2a853b(0x3d6)][_0x2a853b(0x1cd)];Array[_0x2a853b(0x1da)](_0x2ca277)&&_0x2ca277[_0x2a853b(0x183)]>0x0&&((_0x50e1b6=(_0xcc0968=this['_handler'])[_0x2a853b(0x153)])==null||_0x50e1b6[_0x2a853b(0x440)](_0xcc0968,{'unitID':_0x34e72a,'memberID':_0x6dac3f,'textRanges':_0x2ca277}));}}[_0x2cf6ff(0x148)](){const _0x4f91bd=_0x2cf6ff;this[_0x4f91bd(0x3dd)][_0x4f91bd(0x296)](this[_0x4f91bd(0x357)],this[_0x4f91bd(0x41e)],this[_0x4f91bd(0x17d)],this[_0x4f91bd(0x2c6)]);}['_getCurrentRevision'](){const _0x361956=_0x2cf6ff;return this['_revisionService'][_0x361956(0xe9)](this['unitID']);}[_0x2cf6ff(0x43a)](){const _0x4b2670=_0x2cf6ff;this[_0x4b2670(0x25c)][_0x4b2670(0x3ec)](this[_0x4b2670(0x357)]);}[_0x2cf6ff(0x2b8)](_0x1bd30a){const _0x5ddf6b=_0x2cf6ff;var _0x589e88;const _0xd40e94=this[_0x5ddf6b(0x2bd)](_0x1bd30a),_0x5d4aae=_0x2a6345(_0xd40e94[_0x5ddf6b(0x40d)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5d4aae['result'])throw _0x5d4aae[_0x5ddf6b(0x36e)]instanceof Error?_0x5d4aae[_0x5ddf6b(0x36e)]:new Error((_0x589e88=_0x5d4aae[_0x5ddf6b(0x36e)])!=null?_0x589e88:_0x5ddf6b(0x448));this[_0x5ddf6b(0x42c)](_0xd40e94),this['_transformUndoredo'](_0x1bd30a),this[_0x5ddf6b(0x3e0)](_0xd40e94),this[_0x5ddf6b(0x355)](_0xd40e94),this[_0x5ddf6b(0x43a)]();}}let Se=class extends _e{constructor(_0x37d6b9,_0x35ec4a,_0x2ed858,_0x4a9085,_0x131c0f,_0x441dcc,_0x30994b,_0x46111b,_0x3538ee,_0x1f2b2d){const _0x44e923=_0x2cf6ff;super(_0x37d6b9,_0x35ec4a,null,[],_0x2ed858,_0x46111b,_0x30994b,_0x4a9085,_0x131c0f),l(this,_0x44e923(0x10a),_0x44e923(0x162)),(this['_injector']=_0x441dcc,this[_0x44e923(0x2f8)]=_0x3538ee,this[_0x44e923(0x146)]=_0x1f2b2d);}['appendMutation'](_0x1ba0d7){const _0x9788c5=_0x2cf6ff,_0x2c77b6=this[_0x9788c5(0x249)][_0x9788c5(0x1f3)](K,this[_0x9788c5(0x357)],this[_0x9788c5(0x41e)],[_0x1ba0d7],this[_0x9788c5(0x433)]);return _0x2c77b6[_0x9788c5(0x332)](),_0x2c77b6['_updateLocalCache'](),_0x2c77b6;}['onRemoteChangeset'](_0x58728c){const _0xf96528=_0x2cf6ff;if(this[_0xf96528(0x25a)](_0x58728c))return this['_injector'][_0xf96528(0x1f3)](k,this[_0xf96528(0x357)],this[_0xf96528(0x41e)],null,[],null,[_0x58728c],this[_0xf96528(0x433)]);try{const _0x189427=this[_0xf96528(0x146)][_0xf96528(0x1f5)](_0x58728c,[ur]);if(_0x61acc5(_0x189427)){const {c1Prime:_0x4da21a}=_0x189427;return this[_0xf96528(0x2b8)](_0x4da21a),this;}throw _0x189427[_0xf96528(0x36e)];}catch(_0xf0d2e){return this[_0xf96528(0x2f8)][_0xf96528(0x36e)](_0xf0d2e),this[_0xf96528(0x2d4)](!0x1);}}['_onConflict'](_0x4d7531){const _0xc9d4e2=_0x2cf6ff;return this[_0xc9d4e2(0x249)][_0xc9d4e2(0x1f3)](Q,this[_0xc9d4e2(0x357)],this[_0xc9d4e2(0x41e)],null,[],this[_0xc9d4e2(0x433)],_0x4d7531);}[_0x2cf6ff(0x112)](){const _0x1b5ded=_0x2cf6ff;throw new Error(_0x1b5ded(0x2e8));}[_0x2cf6ff(0x2f2)](){const _0x212b3b=_0x2cf6ff;throw new Error(_0x212b3b(0x268));}[_0x2cf6ff(0x325)](){const _0x4fe2a1=_0x2cf6ff;return this[_0x4fe2a1(0x249)][_0x4fe2a1(0x1f3)](ee,this[_0x4fe2a1(0x357)],this[_0x4fe2a1(0x41e)],null,[],this[_0x4fe2a1(0x433)]);}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x812a26=_0x2cf6ff;throw new Error(_0x812a26(0x2ee));}[_0x2cf6ff(0x163)](){const _0x579d5f=_0x2cf6ff,_0x9f04fe=this[_0x579d5f(0x25c)][_0x579d5f(0xe9)](this[_0x579d5f(0x357)]);return this[_0x579d5f(0x433)][_0x579d5f(0x20f)]({'from':_0x9f04fe,'to':0x0}),this[_0x579d5f(0x249)][_0x579d5f(0x1f3)](k,this['unitID'],this[_0x579d5f(0x41e)],null,[],null,[],this[_0x579d5f(0x433)]);}};Se=le([m(0x3,_0x11c4b2(_0x382160)),m(0x4,_0x11c4b2(D)),m(0x5,_0x11c4b2(_0x3ca714)),m(0x6,_0x55c638),m(0x7,_0x339bfb),m(0x8,_0x58af89),m(0x9,_0x1d81ff)],Se);let K=class extends _e{constructor(_0x49f14a,_0x4d4e35,_0x5440a1,_0x2676ac,_0x32884a,_0x1e9c1e,_0x3f8525,_0x2c428f,_0x5c0eeb,_0x233500,_0x25de01,_0x280875,_0x332891,_0x21e31d){const _0x1f5a21=_0x2cf6ff;super(_0x49f14a,_0x4d4e35,null,_0x5440a1,_0x2676ac,_0x233500,_0x21e31d,_0x1e9c1e,_0x3f8525),l(this,'status',_0x1f5a21(0x2db)),l(this,'_scheduleTimestamp',null),l(this,_0x1f5a21(0x224),null),(this['_injector']=_0x32884a,this[_0x1f5a21(0x327)]=_0x2c428f,this[_0x1f5a21(0x2f8)]=_0x5c0eeb,this['_configService']=_0x25de01,this['_transformService']=_0x280875,this['_univerInstanceService']=_0x332891);}[_0x2cf6ff(0x294)](_0x18f7ab){const _0xd4ff7=_0x2cf6ff;return this[_0xd4ff7(0x2c6)][_0xd4ff7(0x16c)](_0x18f7ab),this[_0xd4ff7(0x148)](),this;}[_0x2cf6ff(0x248)](_0x168942){const _0x3af80b=_0x2cf6ff;if(this[_0x3af80b(0x25a)](_0x168942))return this['_clearScheduledTask'](),this[_0x3af80b(0x249)][_0x3af80b(0x1f3)](k,this[_0x3af80b(0x357)],this['type'],null,this['_pendingMutations'],null,[_0x168942],this[_0x3af80b(0x433)]);try{const _0x45393f=this[_0x3af80b(0x146)][_0x3af80b(0x1f5)](_0x168942,this[_0x3af80b(0x2c6)]);if(_0x61acc5(_0x45393f)){const {c1Prime:_0x337731,m2Prime:_0x2e9571}=_0x45393f;this[_0x3af80b(0x2b8)](_0x337731);const _0xb26fda=this[_0x3af80b(0x249)][_0x3af80b(0x1f3)](K,this[_0x3af80b(0x357)],this['type'],_0x2e9571,this['_handler']);return this[_0x3af80b(0x317)](),_0xb26fda['_schedule'](this[_0x3af80b(0x10d)]?Math['max'](0x0,new Date()[_0x3af80b(0x27b)]()-this[_0x3af80b(0x10d)]):this[_0x3af80b(0x44f)]()),_0xb26fda;}throw _0x45393f['error'];}catch(_0x1a7283){return this[_0x3af80b(0x2f8)][_0x3af80b(0x36e)](_0x1a7283),this['_onConflict'](!0x1);}}[_0x2cf6ff(0x112)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2cf6ff(0x2f2)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2cf6ff(0x325)](){const _0x556113=_0x2cf6ff;return this[_0x556113(0x317)](),this[_0x556113(0x249)]['createInstance'](ee,this[_0x556113(0x357)],this[_0x556113(0x41e)],null,this[_0x556113(0x2c6)],this['_handler']);}[_0x2cf6ff(0x398)](){return this;}['_schedule'](_0x2f3a4e){const _0x223ee9=_0x2cf6ff,_0x4402de=_0x2f3a4e!=null?_0x2f3a4e:this[_0x223ee9(0x44f)]();this[_0x223ee9(0x10d)]=new Date()['getTime'](),this[_0x223ee9(0x224)]=window[_0x223ee9(0x128)](()=>{const _0x2ee111=_0x223ee9;this['_clearScheduledTask']();let _0x2b8ddd=null;switch(this[_0x2ee111(0x41e)]){case H['UNIVER_SHEET']:{_0x2b8ddd=ls(this[_0x2ee111(0x2c6)],this[_0x2ee111(0x357)],this['_univerInstanceService'],this[_0x2ee111(0x25c)],this['_memberService']);break;}case H[_0x2ee111(0x359)]:{this[_0x2ee111(0x2c6)][_0x2ee111(0xfa)](_0x2d8e54=>_0x2d8e54['id']===_0x137108['id'])?_0x2b8ddd=_r(this[_0x2ee111(0x2c6)],this[_0x2ee111(0x357)],this[_0x2ee111(0xe4)],this[_0x2ee111(0x25c)],this[_0x2ee111(0x327)]):_0x2b8ddd=ls(this[_0x2ee111(0x2c6)],this['unitID'],this[_0x2ee111(0xe4)],this['_revisionService'],this[_0x2ee111(0x327)]);break;}default:throw new Error(_0x2ee111(0x2e7)+this[_0x2ee111(0x41e)]+_0x2ee111(0x1e1));}const {changeset:_0xd1475e,pendingMutations:_0x549de8}=_0x2b8ddd;this['_handler']['onSendChangeset'](_0xd1475e);const _0x34fd5d=_0x549de8[_0x2ee111(0x183)]?this[_0x2ee111(0x249)]['createInstance'](X,this[_0x2ee111(0x357)],this[_0x2ee111(0x41e)],_0xd1475e,_0x549de8,this[_0x2ee111(0x433)]):this[_0x2ee111(0x249)][_0x2ee111(0x1f3)](Z,this['unitID'],this['type'],_0xd1475e,this['_handler']);_0x34fd5d['_updateLocalCache'](),this[_0x2ee111(0x433)][_0x2ee111(0x202)](this,_0x34fd5d);},_0x4402de);}[_0x2cf6ff(0x44f)](){const _0x3c8094=_0x2cf6ff;var _0x1cb950;const _0x4ab780=this['_configService']['getConfig'](L);return(_0x1cb950=_0x4ab780==null?void 0x0:_0x4ab780[_0x3c8094(0x408)])!=null?_0x1cb950:gn;}[_0x2cf6ff(0xe5)](){const _0x3517ab=_0x2cf6ff;throw new Error(_0x3517ab(0x1fb));}['_clearScheduledTask'](){const _0x115ee4=_0x2cf6ff;this[_0x115ee4(0x224)]!=null&&(clearTimeout(this[_0x115ee4(0x224)]),this[_0x115ee4(0x224)]=null);}[_0x2cf6ff(0x2d4)](_0x5eeede){const _0x1f9259=_0x2cf6ff;return this[_0x1f9259(0x317)](),this[_0x1f9259(0x249)][_0x1f9259(0x1f3)](Q,this[_0x1f9259(0x357)],this[_0x1f9259(0x41e)],null,this[_0x1f9259(0x2c6)],this['_handler'],_0x5eeede);}};K=le([m(0x4,_0x11c4b2(_0x3ca714)),m(0x5,_0x11c4b2(_0x382160)),m(0x6,_0x11c4b2(D)),m(0x7,_0x11c4b2(ae)),m(0x8,_0x58af89),m(0x9,_0x339bfb),m(0xa,_0x5d22a5),m(0xb,_0x1d81ff),m(0xc,_0x3a69fb),m(0xd,_0x55c638)],K);let Z=class extends _e{constructor(_0x3b202b,_0x5bb26e,_0x30552,_0xcbd500,_0x1d188c,_0x1c86a0,_0x7be4d3,_0x28210b,_0x183d09,_0x3345e6,_0x2fa7af){const _0x4e6a3d=_0x2cf6ff;super(_0x3b202b,_0x5bb26e,_0x30552,[],_0xcbd500,_0x28210b,_0x2fa7af,_0x1c86a0,_0x7be4d3),l(this,_0x4e6a3d(0x10a),_0x4e6a3d(0x1ae)),(this[_0x4e6a3d(0x249)]=_0x1d188c,this[_0x4e6a3d(0x2f8)]=_0x183d09,this[_0x4e6a3d(0x146)]=_0x3345e6);}[_0x2cf6ff(0x294)](_0x3561c2){const _0x47a63b=_0x2cf6ff,_0x36a1b5=this[_0x47a63b(0x249)][_0x47a63b(0x1f3)](X,this[_0x47a63b(0x357)],this[_0x47a63b(0x41e)],this['_awaitingChangeset'],[_0x3561c2],this[_0x47a63b(0x433)]);return _0x36a1b5[_0x47a63b(0x148)](),_0x36a1b5;}[_0x2cf6ff(0x248)](_0x594acf){const _0x240680=_0x2cf6ff;if(this[_0x240680(0x25a)](_0x594acf))return this['_injector'][_0x240680(0x1f3)](k,this[_0x240680(0x357)],this[_0x240680(0x41e)],this[_0x240680(0x17d)],[],null,[_0x594acf],this[_0x240680(0x433)]);try{const _0x4326a1=this[_0x240680(0x146)][_0x240680(0x131)]([_0x594acf],[this['_awaitingChangeset']],!0x1);if(_0x535544(_0x4326a1)){const {c1Prime:_0xccfc2,c2Prime:_0x4ed793}=_0x4326a1;this[_0x240680(0x2b8)](_0xccfc2[0x0]),_0x4ed793[0x0][_0x240680(0x30c)]=this[_0x240680(0x41d)]();const _0x2153e6=this[_0x240680(0x249)][_0x240680(0x1f3)](Z,this[_0x240680(0x357)],this[_0x240680(0x41e)],_0x4ed793[0x0],this[_0x240680(0x433)]);return _0x2153e6[_0x240680(0x148)](),_0x2153e6;}return this['_onConflict'](!0x1);}catch(_0x4cd0d2){return this['_logService'][_0x240680(0x36e)](_0x4cd0d2),this[_0x240680(0x2d4)](!0x1);}}['onRemoteAck'](_0x231db6){const _0x4c459a=_0x2cf6ff,_0x3880b8=this['_revisionService'][_0x4c459a(0xe9)](this['unitID']);if(_0x231db6[_0x4c459a(0x362)]<_0x3880b8-0x1)return this;if(this[_0x4c459a(0x25a)](_0x231db6))return this[_0x4c459a(0x249)][_0x4c459a(0x1f3)](k,this[_0x4c459a(0x357)],this[_0x4c459a(0x41e)],null,[],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0x4440a3=this[_0x4c459a(0x249)][_0x4c459a(0x1f3)](Se,this[_0x4c459a(0x357)],this[_0x4c459a(0x41e)],this[_0x4c459a(0x433)]);return _0x4440a3['_updateLocalCache'](),_0x4440a3;}[_0x2cf6ff(0x2f2)](_0x2236b7){return this['_onConflict'](!!(_0x2236b7!=null&&_0x2236b7['isPermissionRej']));}[_0x2cf6ff(0x325)](){const _0x739a99=_0x2cf6ff;return this[_0x739a99(0x249)][_0x739a99(0x1f3)](ee,this[_0x739a99(0x357)],this[_0x739a99(0x41e)],this['_awaitingChangeset'],[],this[_0x739a99(0x433)]);}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x92d9d3=_0x2cf6ff;this[_0x92d9d3(0x433)][_0x92d9d3(0x1b5)](this[_0x92d9d3(0x17d)]);}[_0x2cf6ff(0x2d4)](_0x153deb){const _0x134358=_0x2cf6ff;return this[_0x134358(0x249)][_0x134358(0x1f3)](Q,this['unitID'],this[_0x134358(0x41e)],this[_0x134358(0x17d)],[],this['_handler'],_0x153deb);}};Z=le([m(0x4,_0x11c4b2(_0x3ca714)),m(0x5,_0x11c4b2(_0x382160)),m(0x6,_0x11c4b2(D)),m(0x7,_0x339bfb),m(0x8,_0x58af89),m(0x9,_0x1d81ff),m(0xa,_0x55c638)],Z);let X=class extends _e{constructor(_0x3fe3f8,_0x8c2ef2,_0x2f9874,_0x2797c7,_0x1cc13b,_0x7eb5f9,_0x4d7d90,_0x32529b,_0xa0e6f,_0x53372c,_0x4fbd97,_0x31896a){const _0x4f1127=_0x2cf6ff;super(_0x3fe3f8,_0x8c2ef2,_0x2f9874,_0x2797c7,_0x1cc13b,_0xa0e6f,_0x31896a,_0x4d7d90,_0x32529b),l(this,_0x4f1127(0x10a),_0x4f1127(0x3b7)),(this[_0x4f1127(0x249)]=_0x7eb5f9,this[_0x4f1127(0x2f8)]=_0x53372c,this['_transformService']=_0x4fbd97);}[_0x2cf6ff(0x294)](_0xca386){const _0xd4bfa0=_0x2cf6ff;return this[_0xd4bfa0(0x2c6)][_0xd4bfa0(0x16c)](_0xca386),this;}['onRemoteChangeset'](_0x940a64){const _0x55265e=_0x2cf6ff;if(this[_0x55265e(0x25a)](_0x940a64))return this[_0x55265e(0x249)]['createInstance'](k,this[_0x55265e(0x357)],this[_0x55265e(0x41e)],this[_0x55265e(0x17d)],this[_0x55265e(0x2c6)],null,[_0x940a64],this[_0x55265e(0x433)]);try{const _0x2ad564=this[_0x55265e(0x146)][_0x55265e(0x131)]([_0x940a64],[this[_0x55265e(0x17d)]],!0x1);if(_0x535544(_0x2ad564)){const {c1Prime:_0x3fc912,c2Prime:_0x5c1a0f}=_0x2ad564,_0x4cf813=this[_0x55265e(0x146)]['transformMutationsWithChangeset'](_0x3fc912[0x0],this[_0x55265e(0x2c6)]);if(_0x61acc5(_0x4cf813)){const {c1Prime:_0x311f10,m2Prime:_0x371929}=_0x4cf813;return this[_0x55265e(0x2b8)](_0x311f10),_0x5c1a0f[0x0]['baseRev']=this[_0x55265e(0x41d)](),this[_0x55265e(0x249)][_0x55265e(0x1f3)](X,this[_0x55265e(0x357)],this[_0x55265e(0x41e)],_0x5c1a0f[0x0],_0x371929,this[_0x55265e(0x433)]);}throw _0x4cf813['error'];}throw _0x2ad564[_0x55265e(0x36e)];}catch(_0x161026){return this[_0x55265e(0x2f8)][_0x55265e(0x36e)](_0x161026),this['_onConflict'](!0x1);}}[_0x2cf6ff(0x112)](_0x449df4){const _0x5e3b79=_0x2cf6ff;if(this[_0x5e3b79(0x25a)](_0x449df4))return this['_injector'][_0x5e3b79(0x1f3)](k,this['unitID'],this[_0x5e3b79(0x41e)],null,this[_0x5e3b79(0x2c6)],this['_awaitingChangeset'],[],this[_0x5e3b79(0x433)]);this[_0x5e3b79(0x43a)]();const _0x3f9786=this['_injector'][_0x5e3b79(0x1f3)](K,this['unitID'],this['type'],this['_pendingMutations'],this[_0x5e3b79(0x433)]);return _0x3f9786[_0x5e3b79(0x332)](),_0x3f9786['_updateLocalCache'](),_0x3f9786;}['onRemoteRej'](_0x29c03e){const _0x979a39=_0x2cf6ff;return this[_0x979a39(0x2d4)](!!(_0x29c03e!=null&&_0x29c03e[_0x979a39(0x442)]));}[_0x2cf6ff(0x325)](){const _0x4f59cc=_0x2cf6ff;return this[_0x4f59cc(0x249)][_0x4f59cc(0x1f3)](ee,this[_0x4f59cc(0x357)],this[_0x4f59cc(0x41e)],this[_0x4f59cc(0x17d)],this[_0x4f59cc(0x2c6)],this[_0x4f59cc(0x433)]);}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x9d9d29=_0x2cf6ff;this[_0x9d9d29(0x433)][_0x9d9d29(0x1b5)](this[_0x9d9d29(0x17d)]);}[_0x2cf6ff(0x2d4)](_0x2a4890){const _0xb8a1f2=_0x2cf6ff;return this[_0xb8a1f2(0x249)][_0xb8a1f2(0x1f3)](Q,this[_0xb8a1f2(0x357)],this['type'],null,this[_0xb8a1f2(0x2c6)],this[_0xb8a1f2(0x433)],_0x2a4890);}};X=le([m(0x5,_0x11c4b2(_0x3ca714)),m(0x6,_0x11c4b2(_0x382160)),m(0x7,_0x11c4b2(D)),m(0x8,_0x339bfb),m(0x9,_0x58af89),m(0xa,_0x1d81ff),m(0xb,_0x55c638)],X);let Q=class extends _e{constructor(_0x1ca78e,_0x109e21,_0x3d7ed6,_0x37d2e6,_0xd2414d,_0x5cca81=!0x1,_0x13adbd,_0x3221b7,_0x138848,_0x5730d6,_0x168397,_0x112e4f,_0xe92072){const _0x51b256=_0x2cf6ff;super(_0x1ca78e,_0x109e21,_0x3d7ed6,_0x37d2e6,_0xd2414d,_0x3221b7,_0x138848,_0x168397,_0x5730d6),l(this,_0x51b256(0x10a),_0x51b256(0x2b0)),(this[_0x51b256(0x244)]=_0x5cca81,this[_0x51b256(0x447)]=_0x13adbd,this[_0x51b256(0x12c)]=_0x112e4f,this[_0x51b256(0x36b)]=_0xe92072,this[_0x51b256(0x3c0)](),this[_0x51b256(0xf9)](),this[_0x51b256(0x405)]());}['appendMutation'](){return this;}[_0x2cf6ff(0x248)](){return this;}[_0x2cf6ff(0x112)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x45c883=_0x2cf6ff;throw new Error(_0x45c883(0x2a9));}['_clearLocalCache'](){const _0x3331b4=_0x2cf6ff;this[_0x3331b4(0x3dd)][_0x3331b4(0x296)](this['unitID'],this['type'],null,[]);}[_0x2cf6ff(0x3c0)](){const _0x24f7e6=_0x2cf6ff;this[_0x24f7e6(0x244)]?this[_0x24f7e6(0x36b)][_0x24f7e6(0x10c)]({'title':this[_0x24f7e6(0x12c)]['t']('permission.title'),'content':this[_0x24f7e6(0x12c)]['t'](_0x24f7e6(0x291)),'type':_0x24f7e6(0x36e),'duration':0x0}):this[_0x24f7e6(0x36b)][_0x24f7e6(0x10c)]({'title':this['_localeService']['t'](_0x24f7e6(0x373)),'content':this[_0x24f7e6(0x12c)]['t'](_0x24f7e6(0x2c1)),'type':_0x24f7e6(0x36e),'duration':0x0});}[_0x2cf6ff(0x405)](){const _0x323389=_0x2cf6ff;this[_0x323389(0x447)][_0x323389(0x166)](new _0x472746(this[_0x323389(0x357)])['id'],!0x1);}};Q=le([m(0x6,_0x11c4b2(_0xbe145)),m(0x7,_0x339bfb),m(0x8,_0x55c638),m(0x9,_0x11c4b2(D)),m(0xa,_0x11c4b2(_0x382160)),m(0xb,_0x11c4b2(_0x56c312)),m(0xc,_0x3cb956)],Q);let ee=class extends _e{constructor(_0x1e3911,_0x19cd96,_0x369718,_0x597d86,_0x3131ef,_0xf16be4,_0x1ce7ce,_0x4ea648,_0x28bfdf,_0x458c5d){const _0x47448c=_0x2cf6ff;super(_0x1e3911,_0x19cd96,_0x369718,_0x597d86,_0x3131ef,_0x28bfdf,_0x458c5d,_0x1ce7ce,_0x4ea648),l(this,'status',_0x47448c(0x2ac)),this[_0x47448c(0x249)]=_0xf16be4;}[_0x2cf6ff(0x294)](_0x5aa303){const _0x233e18=_0x2cf6ff;return this['_pendingMutations'][_0x233e18(0x16c)](_0x5aa303),this[_0x233e18(0x148)](),this;}[_0x2cf6ff(0x248)](_0x20ae43){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x2cf6ff(0x112)](){const _0x7cbf4c=_0x2cf6ff;throw new Error(_0x7cbf4c(0x305));}['onRemoteRej'](){const _0x5ceab3=_0x2cf6ff;throw new Error(_0x5ceab3(0x3d7));}[_0x2cf6ff(0x325)](){return this;}[_0x2cf6ff(0x398)](){const {_injector:_0xf9fa47,_pendingMutations:_0xc63cee,_awaitingChangeset:_0x59b2e9,unitID:_0x43d213,_handler:_0x302411,type:_0x14ec4d}=this,_0x1c4b8d=Hs(_0xf9fa47,_0x43d213,_0x14ec4d,_0x59b2e9,_0xc63cee,_0x302411);return _0x1c4b8d instanceof K?_0x1c4b8d['_schedule']():(_0x1c4b8d instanceof X||_0x1c4b8d instanceof Z)&&_0x1c4b8d['resend'](),_0x1c4b8d;}['resend'](){const _0x41481b=_0x2cf6ff;throw new Error(_0x41481b(0x132));}};ee=le([m(0x5,_0x11c4b2(_0x3ca714)),m(0x6,_0x11c4b2(_0x382160)),m(0x7,_0x11c4b2(D)),m(0x8,_0x339bfb),m(0x9,_0x55c638)],ee);let k=class extends _e{constructor(_0x445781,_0x564d3a,_0x4fbfdc,_0x4ff782,_0x1f496d,_0x40be2c,_0x2d1889,_0x22d98a,_0x15942f,_0x567eaa,_0x4c2c83,_0x384040,_0x2c185f,_0x4c8cb9){const _0x1e493c=_0x2cf6ff;super(_0x445781,_0x564d3a,_0x4fbfdc,_0x4ff782,_0x2d1889,_0x384040,_0x2c185f,_0x15942f,_0x567eaa),l(this,'status',_0x1e493c(0x292)),(this[_0x1e493c(0x413)]=_0x1f496d,this['_queuedRemoteChangesets']=_0x40be2c,this[_0x1e493c(0x249)]=_0x22d98a,this[_0x1e493c(0x2f8)]=_0x4c2c83,this[_0x1e493c(0x146)]=_0x4c8cb9);}[_0x2cf6ff(0x15c)](_0x5aad49){const _0x45572e=_0x2cf6ff;try{const _0x12c6f9=[..._0x5aad49,...this[_0x45572e(0x344)]],_0x4531ab=[this[_0x45572e(0x17d)]||this['_acknowledgedAwaitingChangeset']][_0x45572e(0x33c)](_0x2cb1e0=>!!_0x2cb1e0);let _0x12f9e7,_0x503d6d;if(_0x4531ab[_0x45572e(0x183)]){const _0x5319e8=this[_0x45572e(0x146)]['transformChangesets'](_0x12c6f9,_0x4531ab,!0x1);if(!_0x535544(_0x5319e8))throw _0x5319e8['error'];_0x12f9e7=_0x5319e8[_0x45572e(0x34c)],_0x503d6d=_0x5319e8[_0x45572e(0x319)];}else _0x12f9e7=_0x12c6f9,_0x503d6d=[];let _0x2e749f=this[_0x45572e(0x2c6)];_0x12f9e7[_0x45572e(0x198)](_0x12cfb8=>{const _0x2b2f52=_0x45572e;let _0x3f91db;if(_0x2e749f[_0x2b2f52(0x183)]){const _0x5e4642=this[_0x2b2f52(0x146)][_0x2b2f52(0x1f5)](_0x12cfb8,_0x2e749f);if(!_0x61acc5(_0x5e4642))throw _0x5e4642['error'];_0x3f91db=_0x5e4642[_0x2b2f52(0x34c)],_0x2e749f=_0x5e4642[_0x2b2f52(0x2d7)];}else _0x3f91db=_0x12cfb8;this[_0x2b2f52(0x2b8)](_0x3f91db);}),this[_0x45572e(0x413)]&&this[_0x45572e(0x43a)](),this[_0x45572e(0x17d)]&&_0x503d6d[_0x45572e(0x183)]&&(_0x503d6d[0x0][_0x45572e(0x30c)]=this[_0x45572e(0x41d)]());let _0x12c8a1;if(this['_awaitingChangeset']&&_0x2e749f['length']!==0x0)_0x12c8a1=this[_0x45572e(0x249)][_0x45572e(0x1f3)](X,this[_0x45572e(0x357)],this[_0x45572e(0x41e)],_0x503d6d[0x0],_0x2e749f,this[_0x45572e(0x433)]);else{if(this[_0x45572e(0x17d)]&&_0x2e749f[_0x45572e(0x183)]===0x0)_0x503d6d[0x0][_0x45572e(0x30c)]=this[_0x45572e(0x41d)](),_0x12c8a1=this['_injector'][_0x45572e(0x1f3)](Z,this[_0x45572e(0x357)],this['type'],_0x503d6d[0x0],this[_0x45572e(0x433)]);else{if(_0x2e749f['length']!==0x0){const _0x164b0f=this['_injector']['createInstance'](K,this['unitID'],this[_0x45572e(0x41e)],_0x2e749f,this[_0x45572e(0x433)]);_0x164b0f[_0x45572e(0x332)](),_0x12c8a1=_0x164b0f;}else _0x12c8a1=this['_injector'][_0x45572e(0x1f3)](Se,this[_0x45572e(0x357)],this[_0x45572e(0x41e)],this[_0x45572e(0x433)]);}}return _0x12c8a1[_0x45572e(0x148)](),_0x12c8a1;}catch(_0x5de981){return this['_logService']['error'](_0x45572e(0x1de),_0x45572e(0x1ce),_0x5de981),this[_0x45572e(0x249)][_0x45572e(0x1f3)](Q,this['unitID'],this[_0x45572e(0x41e)],this[_0x45572e(0x17d)],this[_0x45572e(0x2c6)],this[_0x45572e(0x433)],!0x1);}}[_0x2cf6ff(0xe5)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2cf6ff(0x294)](_0x33ad9c){const _0x3f739a=_0x2cf6ff;return this[_0x3f739a(0x2c6)][_0x3f739a(0x16c)](_0x33ad9c),this;}[_0x2cf6ff(0x248)](_0x9879c6){const _0x4426d1=_0x2cf6ff;return this[_0x4426d1(0x344)][_0x4426d1(0x16c)](_0x9879c6),this;}['onRemoteAck'](_0x2a054f){const _0x332f69=_0x2cf6ff;if(this[_0x332f69(0x17d)])return this[_0x332f69(0x413)]=this[_0x332f69(0x17d)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2cf6ff(0x2f2)](_0x3ad651){const _0x58c4ad=_0x2cf6ff;return this[_0x58c4ad(0x2d4)](!!(_0x3ad651!=null&&_0x3ad651[_0x58c4ad(0x442)]));}[_0x2cf6ff(0x325)](){const _0x4d35b1=_0x2cf6ff;return this['_injector'][_0x4d35b1(0x1f3)](ee,this[_0x4d35b1(0x357)],this['type'],this[_0x4d35b1(0x17d)],this[_0x4d35b1(0x2c6)],this[_0x4d35b1(0x433)]);}[_0x2cf6ff(0x398)](){return this;}['_onConflict'](_0x484fd2){const _0x36ca7f=_0x2cf6ff;return this['_injector'][_0x36ca7f(0x1f3)](Q,this['unitID'],this[_0x36ca7f(0x41e)],this[_0x36ca7f(0x17d)],this[_0x36ca7f(0x2c6)],this[_0x36ca7f(0x433)],_0x484fd2);}};k=le([m(0x7,_0x11c4b2(_0x3ca714)),m(0x8,_0x11c4b2(_0x382160)),m(0x9,_0x11c4b2(D)),m(0xa,_0x58af89),m(0xb,_0x339bfb),m(0xc,_0x55c638),m(0xd,_0x1d81ff)],k);function Hs(_0x199716,_0x555b98,_0x42ff17,_0x369d73,_0x100b0b,_0x2ea5c4){const _0x1c60da=_0x2cf6ff;return _0x369d73&&_0x100b0b[_0x1c60da(0x183)]?_0x199716['createInstance'](X,_0x555b98,_0x42ff17,_0x369d73,_0x100b0b,_0x2ea5c4):_0x369d73?_0x199716[_0x1c60da(0x1f3)](Z,_0x555b98,_0x42ff17,_0x369d73,_0x2ea5c4):_0x100b0b[_0x1c60da(0x183)]?_0x199716[_0x1c60da(0x1f3)](K,_0x555b98,_0x42ff17,_0x100b0b,_0x2ea5c4):_0x199716[_0x1c60da(0x1f3)](Se,_0x555b98,_0x42ff17,_0x2ea5c4);}var mr=Object[_0x2cf6ff(0x2d3)],gr=Object[_0x2cf6ff(0x289)],Vt=(_0x332a77,_0x1b130b,_0x327da7,_0x511c75)=>{const _0x2a57cf=_0x2cf6ff;for(var _0x2106cf=_0x511c75>0x1?void 0x0:_0x511c75?gr(_0x1b130b,_0x327da7):_0x1b130b,_0x40fb71=_0x332a77[_0x2a57cf(0x183)]-0x1,_0x10a688;_0x40fb71>=0x0;_0x40fb71--)(_0x10a688=_0x332a77[_0x40fb71])&&(_0x2106cf=(_0x511c75?_0x10a688(_0x1b130b,_0x327da7,_0x2106cf):_0x10a688(_0x2106cf))||_0x2106cf);return _0x511c75&&_0x2106cf&&mr(_0x1b130b,_0x327da7,_0x2106cf),_0x2106cf;},p=(_0x422457,_0x3e20a3)=>(_0x10ca16,_0x33b078)=>_0x3e20a3(_0x10ca16,_0x33b078,_0x422457);let Je=class extends _0x424705{constructor(_0x248da4,_0x512169,_0x3c7736,_0x4fa196,_0x5ae160,_0x43c6f1,_0x5d2538,_0xc23a96,_0x28c18f,_0x3ef013,_0x338035,_0x424fa6,_0x3b2323){const _0x5b0b86=_0x2cf6ff;super(),l(this,_0x5b0b86(0x258),new _0xa8903e(null)),l(this,'state$',this[_0x5b0b86(0x258)]['asObservable']()),l(this,_0x5b0b86(0x261)),l(this,_0x5b0b86(0x1ca),!0x1),l(this,_0x5b0b86(0x212),this[_0x5b0b86(0x213)][_0x5b0b86(0x379)](_0xe7708d(_0x5ef4c0=>_0x5ef4c0?_0x5ef4c0[_0x5b0b86(0x10a)]:w['OFFLINE']),_0xbb5cb7(0x1))),l(this,_0x5b0b86(0x14b),!0x1),l(this,_0x5b0b86(0x336),[]),(this[_0x5b0b86(0x357)]=_0x248da4,this['session']=_0x512169,this[_0x5b0b86(0x286)]=_0x3c7736,this[_0x5b0b86(0x249)]=_0x4fa196,this['_localCacheService']=_0x5ae160,this[_0x5b0b86(0x134)]=_0x43c6f1,this[_0x5b0b86(0x12c)]=_0x5d2538,this['_revisionService']=_0xc23a96,this[_0x5b0b86(0x2f8)]=_0x28c18f,this[_0x5b0b86(0x34a)]=_0x3ef013,this[_0x5b0b86(0x358)]=_0x338035,this[_0x5b0b86(0x447)]=_0x424fa6,this['_singleActiveUnitService']=_0x3b2323);}get[_0x2cf6ff(0x2d2)](){const _0x13daa3=_0x2cf6ff;return this[_0x13daa3(0x261)];}async[_0x2cf6ff(0x193)](){const _0x3feb3e=_0x2cf6ff;if(this['state'])throw new Error(_0x3feb3e(0x2ea));await this[_0x3feb3e(0x2fb)]();}[_0x2cf6ff(0x154)](){const _0x2529d5=_0x2cf6ff;return this[_0x2529d5(0x1ca)]=!0x0,_0x57baeb(()=>{const _0x2be44b=_0x2529d5;this['_collaborationPaused']=!0x1,this[_0x2be44b(0x13f)]();});}[_0x2cf6ff(0x3bd)](_0x2e4101){const _0x5042f1=_0x2cf6ff;this[_0x5042f1(0x261)]=_0x2e4101,this[_0x5042f1(0x258)][_0x5042f1(0x2ad)](_0x2e4101);}async[_0x2cf6ff(0x2fb)](){const _0x30fefd=_0x2cf6ff;var _0x5f13e0;this[_0x30fefd(0x3bd)](await this[_0x30fefd(0x104)]()),this[_0x30fefd(0x39b)]&&((_0x5f13e0=this[_0x30fefd(0x39b)])==null||_0x5f13e0['editingUnit'](this[_0x30fefd(0x357)]),this[_0x30fefd(0x2cd)](this[_0x30fefd(0x39b)][_0x30fefd(0x26e)](this[_0x30fefd(0x357)])[_0x30fefd(0x360)](_0xd6954=>{const _0x2d310b=_0x30fefd;this[_0x2d310b(0x2f8)][_0x2d310b(0x2b7)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0xd6954),_0xd6954===js['OTHER_CLIENTS_EDITING']?(this[_0x2d310b(0x358)][_0x2d310b(0x10c)]({'content':this[_0x2d310b(0x12c)]['t'](_0x2d310b(0x39c)),'type':_0x3aebb1[_0x2d310b(0x29b)]}),this[_0x2d310b(0x447)][_0x2d310b(0x166)](new _0x472746(this['unitID'])['id'],!0x1)):this[_0x2d310b(0x447)][_0x2d310b(0x166)](new _0x472746(this[_0x2d310b(0x357)])['id'],!0x0);})));let _0x1d7c3a=!0x1;return this['disposeWithMe'](this[_0x30fefd(0x2af)][_0x30fefd(0x3a1)]['subscribe'](_0x935ded=>{const _0x3930b8=_0x30fefd;_0x935ded===G[_0x3930b8(0x168)]?this['_toggleOnline'](_0x1d7c3a):_0x935ded===G[_0x3930b8(0x26c)]&&(_0x1d7c3a=!0x0,this[_0x3930b8(0x1c7)]());})),this[_0x30fefd(0x2cd)](this[_0x30fefd(0x2af)][_0x30fefd(0x3d1)][_0x30fefd(0x360)](_0x2f5003=>{const _0x378520=_0x30fefd;try{switch(_0x2f5003[_0x378520(0x446)]){case _0x236400['NEW_CHANGESETS']:{this[_0x378520(0x11b)](_0x2f495d(_0x2f5003[_0x378520(0x406)]));break;}case _0x236400[_0x378520(0x1bb)]:{this[_0x378520(0x386)](_0x2f5003[_0x378520(0x406)]);break;}case _0x236400[_0x378520(0x18e)]:{this[_0x378520(0x144)]();break;}case _0x236400[_0x378520(0x26a)]:{this['_onFetchMissResult'](_0x2f5003[_0x378520(0x406)]['changesets'][_0x378520(0x101)](_0x8e2d06=>_0x2f495d(_0x8e2d06)));break;}case _0x236400[_0x378520(0x14e)]:this[_0x378520(0x144)]({'isPermissionRej':!0x0});}}catch(_0x11959f){throw console[_0x378520(0x36e)]('Error\x20on\x20receiving\x20event',_0x11959f),_0x11959f;}})),this[_0x30fefd(0x261)];}[_0x2cf6ff(0x173)](){this['_transitionLocked']=!0x1;}[_0x2cf6ff(0x2b2)](){const _0x21f775=_0x2cf6ff;if(this[_0x21f775(0x14b)])throw new Error(_0x21f775(0x396));this[_0x21f775(0x14b)]=!0x0;}['_onLocalMutation'](_0x3e2812){const _0x3913c0=_0x2cf6ff;this[_0x3913c0(0x2b2)](),this['_updateState'](this[_0x3913c0(0x261)][_0x3913c0(0x294)](_0x3e2812)),this['_unlockTransition']();}[_0x2cf6ff(0x11b)](_0x4d9a12){const _0x43993f=_0x2cf6ff;if(!(_0x4d9a12[_0x43993f(0x362)]<=this[_0x43993f(0x25c)][_0x43993f(0xe9)](this[_0x43993f(0x357)]))){if(this[_0x43993f(0x1ca)]){this[_0x43993f(0x336)][_0x43993f(0x16c)](_0x4d9a12);return;}this[_0x43993f(0x208)](_0x4d9a12);}}[_0x2cf6ff(0x13f)](){const _0x3bf644=_0x2cf6ff;this[_0x3bf644(0x336)][_0x3bf644(0x198)](_0x5b8960=>this['_applyRemoteChangeset'](_0x5b8960)),this['_remoteChangesetQueue']=[];}[_0x2cf6ff(0x208)](_0x14aa92){const _0x440e80=_0x2cf6ff,_0x5c1770=this[_0x440e80(0x134)][_0x440e80(0x156)][_0x440e80(0x20d)](this[_0x440e80(0x134)][_0x440e80(0x156)]['getInterceptPoints']()[_0x440e80(0x2f7)])(_0x14aa92['mutations'],null)||_0x14aa92[_0x440e80(0x40d)],_0x578af9={..._0x14aa92,'mutations':_0x5c1770};this[_0x440e80(0x2b2)](),this[_0x440e80(0x3bd)](this[_0x440e80(0x261)][_0x440e80(0x248)](_0x578af9)),this['_unlockTransition']();}[_0x2cf6ff(0x386)](_0x14be5f){const _0x21877c=_0x2cf6ff;this[_0x21877c(0x2b2)](),this[_0x21877c(0x3bd)](this[_0x21877c(0x261)][_0x21877c(0x112)](_0x14be5f)),this[_0x21877c(0x173)]();}[_0x2cf6ff(0x144)](_0x5af432){const _0x5b6a6a=_0x2cf6ff;this['_lockTransition'](),this[_0x5b6a6a(0x3bd)](this[_0x5b6a6a(0x261)]['onRemoteRej'](_0x5af432)),this[_0x5b6a6a(0x173)]();}[_0x2cf6ff(0x1aa)](_0xcd1996){const _0x22bb86=_0x2cf6ff;if(!(this[_0x22bb86(0x261)]instanceof k))throw new TypeError(_0x22bb86(0x119));const _0x270e06=_0xcd1996[_0x22bb86(0x101)](_0x52033e=>{const _0xce35dd=_0x22bb86,_0xd9548e=this[_0xce35dd(0x134)][_0xce35dd(0x156)][_0xce35dd(0x20d)](this[_0xce35dd(0x134)][_0xce35dd(0x156)][_0xce35dd(0x1be)]()['COMPRESS_MUTATION_APPLY'])(_0x52033e[_0xce35dd(0x40d)],null)||_0x52033e[_0xce35dd(0x40d)];return{..._0x52033e,'mutations':_0xd9548e};});this[_0x22bb86(0x2b2)](),this['_updateState'](this[_0x22bb86(0x261)][_0x22bb86(0x15c)](_0x270e06)),this['_unlockTransition']();}[_0x2cf6ff(0x1c7)](){const _0x3de6e2=_0x2cf6ff;this[_0x3de6e2(0x2b2)](),this['_updateState'](this[_0x3de6e2(0x261)][_0x3de6e2(0x325)]()),this[_0x3de6e2(0x173)]();}[_0x2cf6ff(0x18f)](_0x30ccbe=!0x1){const _0x584616=_0x2cf6ff;this[_0x584616(0x2b2)](),this['_updateState'](this['_state'][_0x584616(0x398)]()),this['_unlockTransition']();const _0x448620=this['_state'];_0x30ccbe&&_0x448620 instanceof Se&&(this[_0x584616(0x2b2)](),this[_0x584616(0x3bd)](_0x448620[_0x584616(0x163)]()),this[_0x584616(0x173)]());}async[_0x2cf6ff(0x104)](){return new Promise(_0x176eec=>{const _0x4df62e=_0xd63a;this['session'][_0x4df62e(0x3a1)]['pipe'](_0x3507ef(0x1))[_0x4df62e(0x360)](async _0x571eac=>{const _0x4191e3=_0x4df62e;_0x176eec(await this[_0x4191e3(0xf5)](_0x571eac===G[_0x4191e3(0x168)]));});});}['_createHandler'](){const _0x296a27=this['unitID'];return{'onStateChange':(_0x26a525,_0x1915c2)=>{const _0x262ac4=_0xd63a;if(_0x26a525!==this[_0x262ac4(0x261)])throw new Error(_0x262ac4(0x1ee)+_0x26a525[_0x262ac4(0x10a)]+_0x262ac4(0x31d)+_0x1915c2[_0x262ac4(0x10a)]+_0x262ac4(0x3e8)+this[_0x262ac4(0x261)][_0x262ac4(0x10a)]);this[_0x262ac4(0x3bd)](_0x1915c2);},'onSendChangeset':_0x1b67f8=>{const _0x1e776a=_0xd63a,_0x4a6f09={'eventID':_0x236400[_0x1e776a(0x28c)],'data':{'unitID':_0x1b67f8[_0x1e776a(0x357)],'unitType':this[_0x1e776a(0x286)],'changeset':_0x1b67f8,'memberID':this[_0x1e776a(0x2af)][_0x1e776a(0x2a6)]()}};this[_0x1e776a(0x2af)][_0x1e776a(0x329)](_0x4a6f09,this[_0x1e776a(0x357)]);},'onMissingChangesets':({from:_0x11705e,to:_0x5dad54})=>{const _0x48cce4=_0xd63a;this[_0x48cce4(0x2f8)]['debug'](_0x48cce4(0x1f6),_0x48cce4(0x3f0)+_0x11705e+_0x48cce4(0x343)+_0x5dad54);const _0x180c29={'eventID':_0x236400[_0x48cce4(0x43b)],'data':{'unitID':_0x296a27,'unitType':this[_0x48cce4(0x286)],'from':_0x11705e,'to':_0x5dad54}};this[_0x48cce4(0x2af)][_0x48cce4(0x329)](_0x180c29,this['unitID']);}};}async[_0x2cf6ff(0xf5)](_0x5b73bd){const _0x2c5762=_0x2cf6ff;var _0x1b2345,_0x3d31e3;const _0x519e45=await this[_0x2c5762(0x3dd)][_0x2c5762(0x1b1)](this[_0x2c5762(0x357)]),_0x353955=(_0x1b2345=_0x519e45==null?void 0x0:_0x519e45[_0x2c5762(0x40d)])!=null?_0x1b2345:[],_0x4b3e70=(_0x3d31e3=_0x519e45==null?void 0x0:_0x519e45[_0x2c5762(0x322)])!=null?_0x3d31e3:null,_0x5dd2de=this[_0x2c5762(0x357)];try{this['_replayCachedMutations'](_0x4b3e70,_0x353955);}catch(_0x2a56b4){this[_0x2c5762(0x2f8)][_0x2c5762(0x36e)](_0x2a56b4);}const _0x1e832c=this[_0x2c5762(0x397)]();if(_0x5b73bd){const _0x5b4418=Hs(this['_injector'],_0x5dd2de,this['_type'],_0x4b3e70,_0x353955,_0x1e832c);return _0x5b4418 instanceof K?_0x5b4418[_0x2c5762(0x332)]():(_0x5b4418 instanceof X||_0x5b4418 instanceof Z)&&_0x5b4418[_0x2c5762(0xe5)](),_0x5b4418;}return this[_0x2c5762(0x249)][_0x2c5762(0x1f3)](ee,_0x5dd2de,this['_type'],_0x4b3e70,_0x353955,_0x1e832c);}['_replayCachedMutations'](_0xeec7a,_0x528502){const _0x1107fa=_0x2cf6ff;var _0x1d01f4,_0x41caa6;const _0x3d4658=this[_0x1107fa(0x134)]['interceptor'][_0x1107fa(0x20d)](this[_0x1107fa(0x134)][_0x1107fa(0x156)][_0x1107fa(0x1be)]()[_0x1107fa(0x2f7)]);(_0x1d01f4=_0x3d4658((_0xeec7a==null?void 0x0:_0xeec7a[_0x1107fa(0x40d)])||[],null))==null||_0x1d01f4['forEach'](_0x554ce3=>this[_0x1107fa(0x34a)][_0x1107fa(0x3aa)](_0x554ce3['id'],_0x554ce3[_0x1107fa(0x3d6)])),(_0x41caa6=_0x3d4658(_0x528502||[],null))==null||_0x41caa6[_0x1107fa(0x198)](_0x2eac74=>this['_commandService'][_0x1107fa(0x3aa)](_0x2eac74['id'],_0x2eac74['params']));}};Je=Vt([p(0x3,_0x11c4b2(_0x3ca714)),p(0x4,_0x11c4b2(D)),p(0x5,_0x11c4b2(_0x5b8dc0)),p(0x6,_0x11c4b2(_0x56c312)),p(0x7,_0x11c4b2(_0x382160)),p(0x8,_0x58af89),p(0x9,_0x339bfb),p(0xa,_0x3d2cd0),p(0xb,_0xbe145),p(0xc,_0x32a7fe(tt))],Je);let bt=class extends Je{constructor(_0x3b35a0,_0x4897a5,_0x9b8f21,_0x1147ab,_0xfa2f17,_0x1db84c,_0x8215cd,_0x7ec1e6,_0x53b8e0,_0x137604,_0x1d06b8,_0x6afc6c,_0x4ff1a6,_0x41977d,_0x18a334,_0x5dcb8f,_0xbac0e4){const _0x38e02a=_0x2cf6ff;super(_0x3b35a0,_0x9b8f21,_0x4897a5,_0x1147ab,_0xfa2f17,_0x1db84c,_0x8215cd,_0x7ec1e6,_0x4ff1a6,_0x41977d,_0x18a334,_0x5dcb8f,_0xbac0e4),this['unitID']=_0x3b35a0,this[_0x38e02a(0x41e)]=_0x4897a5,this['_docStateChangeManagerService']=_0x53b8e0,this[_0x38e02a(0x31e)]=_0x137604,this['_docTransformSelectionsService']=_0x1d06b8,this['_docSyncEditingCollabCursorService']=_0x6afc6c;}[_0x2cf6ff(0x397)](){const _0x3f8c03=_0x2cf6ff,_0x32ad95=super['_createHandler']();return _0x32ad95[_0x3f8c03(0x385)]=_0x3cb5ca=>this[_0x3f8c03(0x31e)][_0x3f8c03(0x1ab)](_0x3cb5ca),_0x32ad95[_0x3f8c03(0x337)]=_0xad6860=>this['_docTransformSelectionsService'][_0x3f8c03(0x300)](_0xad6860),_0x32ad95[_0x3f8c03(0x153)]=_0x1d9b0a=>this[_0x3f8c03(0x44e)]['syncEditingCollabCursor'](_0x1d9b0a),_0x32ad95[_0x3f8c03(0x182)]=_0x57d087=>this[_0x3f8c03(0x31e)][_0x3f8c03(0x364)](_0x57d087),_0x32ad95;}async[_0x2cf6ff(0x2fb)](){const _0x3014ec=_0x2cf6ff,_0xc6c355=await super[_0x3014ec(0x2fb)]();return this['disposeWithMe'](this[_0x3014ec(0x34a)][_0x3014ec(0x1d5)]((_0x13dda1,_0x38ec73)=>{const _0x29e2a0=_0x3014ec;if(_0x13dda1['type']!==_0xccd063['MUTATION']||_0x38ec73!=null&&_0x38ec73['fromCollab']||_0x38ec73!=null&&_0x38ec73[_0x29e2a0(0x164)])return;const _0x46b3f1=_0x13dda1[_0x29e2a0(0x3d6)];if((_0x46b3f1==null?void 0x0:_0x46b3f1['unitId'])!==this[_0x29e2a0(0x357)])return;let _0x4898c7=_0x13dda1;if(_0x4898c7['id']===_0x137108['id']){const _0xdf4292=_0x4898c7[_0x29e2a0(0x3d6)];_0x4898c7={'id':_0x137108['id'],'type':_0xccd063[_0x29e2a0(0x33e)],'params':{'unitId':_0xdf4292[_0x29e2a0(0x290)],'actions':_0xdf4292[_0x29e2a0(0x215)],'textRanges':null}};}const _0x43e679=this[_0x29e2a0(0x134)][_0x29e2a0(0x156)]['fetchThroughInterceptors'](this[_0x29e2a0(0x134)][_0x29e2a0(0x156)][_0x29e2a0(0x1be)]()[_0x29e2a0(0x218)])([_0x4898c7],null)||[_0x4898c7];this[_0x29e2a0(0x339)](_0x43e679[0x0]);})),_0xc6c355;}};bt=Vt([p(0x3,_0x11c4b2(_0x3ca714)),p(0x4,_0x11c4b2(D)),p(0x5,_0x11c4b2(_0x5b8dc0)),p(0x6,_0x11c4b2(_0x56c312)),p(0x7,_0x11c4b2(_0x382160)),p(0x8,_0x11c4b2(_0x488409)),p(0x9,_0x11c4b2(Ye)),p(0xa,_0x11c4b2(Xe)),p(0xb,_0x11c4b2(Bt)),p(0xc,_0x58af89),p(0xd,_0x339bfb),p(0xe,_0x3d2cd0),p(0xf,_0xbe145),p(0x10,_0x32a7fe(tt))],bt);let Tt=class extends Je{constructor(_0x50014f,_0x4af09b,_0x42e329,_0x1aec09,_0x29aa97,_0xcaf271,_0x38748c,_0x201bda,_0x4f3c5c,_0xf7b78e,_0x145535,_0x117a02,_0x12196f,_0x390bf8){const _0x5ee781=_0x2cf6ff;super(_0x50014f,_0x42e329,_0x4af09b,_0x1aec09,_0x29aa97,_0xcaf271,_0x38748c,_0x201bda,_0xf7b78e,_0x145535,_0x117a02,_0x12196f,_0x390bf8),this[_0x5ee781(0x357)]=_0x50014f,this[_0x5ee781(0x41e)]=_0x4af09b,this[_0x5ee781(0x241)]=_0x4f3c5c;}[_0x2cf6ff(0x397)](){const _0x30b79a=_0x2cf6ff,_0x1c8ab2=super[_0x30b79a(0x397)]();return _0x1c8ab2[_0x30b79a(0x337)]=_0x6ccb62=>this[_0x30b79a(0x241)][_0x30b79a(0x300)](_0x6ccb62),_0x1c8ab2;}async['_init'](){const _0x1641c4=_0x2cf6ff,_0x4af14c=await super[_0x1641c4(0x2fb)]();return this[_0x1641c4(0x2cd)](this['_commandService'][_0x1641c4(0x1d5)]((_0x15409a,_0x4084b4)=>{const _0x1e3b01=_0x1641c4;if(_0x15409a[_0x1e3b01(0x41e)]!==_0xccd063[_0x1e3b01(0x33e)]||_0x4084b4!=null&&_0x4084b4[_0x1e3b01(0x2d6)]||_0x4084b4!=null&&_0x4084b4[_0x1e3b01(0x164)])return;const _0x237a23=_0x15409a['params'];if((_0x237a23==null?void 0x0:_0x237a23[_0x1e3b01(0x290)])!==this['unitID'])return;const _0x429338=_0x15409a,_0x1be312=this['_compressMutationService'][_0x1e3b01(0x156)][_0x1e3b01(0x20d)](this['_compressMutationService']['interceptor'][_0x1e3b01(0x1be)]()[_0x1e3b01(0x218)])([_0x429338],null)||[_0x429338];this[_0x1e3b01(0x339)](_0x1be312[0x0]);})),_0x4af14c;}};Tt=Vt([p(0x3,_0x11c4b2(_0x3ca714)),p(0x4,_0x11c4b2(D)),p(0x5,_0x11c4b2(_0x5b8dc0)),p(0x6,_0x11c4b2(_0x56c312)),p(0x7,_0x11c4b2(_0x382160)),p(0x8,_0x11c4b2(Ke)),p(0x9,_0x58af89),p(0xa,_0x339bfb),p(0xb,_0x3d2cd0),p(0xc,_0xbe145),p(0xd,_0x32a7fe(tt))],Tt);var Sr=Object[_0x2cf6ff(0x2d3)],pr=Object['getOwnPropertyDescriptor'],vr=(_0x5f0979,_0xe87f13,_0x3e4f05,_0x39a9a7)=>{const _0x408c5b=_0x2cf6ff;for(var _0x27ee83=_0x39a9a7>0x1?void 0x0:_0x39a9a7?pr(_0xe87f13,_0x3e4f05):_0xe87f13,_0x374f95=_0x5f0979[_0x408c5b(0x183)]-0x1,_0x2d81f5;_0x374f95>=0x0;_0x374f95--)(_0x2d81f5=_0x5f0979[_0x374f95])&&(_0x27ee83=(_0x39a9a7?_0x2d81f5(_0xe87f13,_0x3e4f05,_0x27ee83):_0x2d81f5(_0x27ee83))||_0x27ee83);return _0x39a9a7&&_0x27ee83&&Sr(_0xe87f13,_0x3e4f05,_0x27ee83),_0x27ee83;},lt=(_0xcc1f32,_0x510b73)=>(_0x260bfe,_0x256c10)=>_0x510b73(_0x260bfe,_0x256c10,_0xcc1f32);let Ae=class extends _0x424705{constructor(_0x1a1641,_0x3a3be3,_0x5da478){const _0x2f3180=_0x2cf6ff;super(),l(this,'_entities',new Map()),l(this,_0x2f3180(0x1a7),new _0x5ebd47()),(this['_injector']=_0x1a1641,this['_collabSessionService']=_0x3a3be3,this[_0x2f3180(0xe4)]=_0x5da478,this[_0x2f3180(0x2fb)]());}[_0x2cf6ff(0x275)](){const _0x215928=_0x2cf6ff;super[_0x215928(0x275)](),this['_entities'][_0x215928(0x198)](_0x2a9952=>_0x2a9952['dispose']()),this['_entities'][_0x215928(0x16b)]();}[_0x2cf6ff(0x24c)](_0x52b1d4){var _0x294f2b;return(_0x294f2b=this['_entities']['get'](_0x52b1d4))!=null?_0x294f2b:null;}[_0x2cf6ff(0x1e3)](_0x1aa130){const _0x1dda2a=_0x2cf6ff,_0x31ec5a=this[_0x1dda2a(0x24c)](_0x1aa130);return _0x31ec5a?_0x1a6ece(_0x31ec5a):this['_entityInit$']['pipe'](_0x584f39(_0x58d7f3=>_0x58d7f3['unitID']===_0x1aa130));}[_0x2cf6ff(0x2fb)](){const _0x363a71=_0x2cf6ff;this['_univerInstanceService'][_0x363a71(0x1fc)](_0x5ba247[_0x363a71(0x43d)])[_0x363a71(0x379)](_0x5f0229(this['dispose$']),_0x2972c0(0x10))[_0x363a71(0x360)](async _0x57e9d4=>{const _0x67fabc=_0x363a71,_0x4456f9=_0x57e9d4[_0x67fabc(0x3d4)](),_0x4fbe7c=await this[_0x67fabc(0x3ad)](_0x4456f9,H['UNIVER_SHEET']);this[_0x67fabc(0x309)][_0x67fabc(0x138)](_0x4456f9,_0x4fbe7c);}),this['_univerInstanceService'][_0x363a71(0x1fc)](_0x5ba247['UNIVER_DOC'])['pipe'](_0x5f0229(this['dispose$']),_0x2972c0(0x10))[_0x363a71(0x379)](_0x584f39(_0x16a599=>!_0x16a599[_0x363a71(0x3d4)]()[_0x363a71(0x428)]('__')))[_0x363a71(0x360)](async _0x3e8bcf=>{const _0x5ba69c=_0x363a71,_0x55e329=_0x3e8bcf[_0x5ba69c(0x3d4)](),_0x4efe18=await this['_startCollaboration'](_0x55e329,H[_0x5ba69c(0x359)]);this['_entities'][_0x5ba69c(0x138)](_0x55e329,_0x4efe18);}),_0x577df9(this['_univerInstanceService'][_0x363a71(0x1af)](_0x5ba247[_0x363a71(0x43d)]),this[_0x363a71(0xe4)][_0x363a71(0x1af)](_0x5ba247[_0x363a71(0x359)]))[_0x363a71(0x379)](_0x5f0229(this[_0x363a71(0x267)]))[_0x363a71(0x360)](_0x4fadf0=>{const _0x38f7fc=_0x363a71,_0x3a52a2=_0x4fadf0['getUnitId'](),_0x2681ab=this[_0x38f7fc(0x309)][_0x38f7fc(0x19c)](_0x3a52a2);_0x2681ab&&(_0x2681ab[_0x38f7fc(0x275)](),this[_0x38f7fc(0x309)][_0x38f7fc(0x152)](_0x3a52a2));});}async[_0x2cf6ff(0x3ad)](_0x5039a5,_0xfaa27b){const _0x55d4ae=_0x2cf6ff,_0x2a4d47=await this[_0x55d4ae(0x159)][_0x55d4ae(0x393)](_0x5039a5),_0x55094c=this[_0x55d4ae(0x249)][_0x55d4ae(0x1f3)](this[_0x55d4ae(0x1eb)](_0xfaa27b),_0x5039a5,_0xfaa27b,_0x2a4d47);return await _0x55094c['init'](),this[_0x55d4ae(0x1a7)][_0x55d4ae(0x2ad)](_0x55094c),_0x55094c;}[_0x2cf6ff(0x1eb)](_0x193831){const _0x23233c=_0x2cf6ff;switch(_0x193831){case H[_0x23233c(0x359)]:return bt;case H[_0x23233c(0x43d)]:return Tt;default:throw new Error(_0x23233c(0x225)+_0x193831);}}};Ae=vr([lt(0x0,_0x11c4b2(_0x3ca714)),lt(0x1,_0x11c4b2(ce)),lt(0x2,_0x3a69fb)],Ae);const _s=[_0x2cf6ff(0x348),_0x2cf6ff(0x3fc),_0x2cf6ff(0x2ff),'red300',_0x2cf6ff(0x37f),_0x2cf6ff(0x30b)];class Ft extends _0x28d30b{constructor(){const _0x50670d=_0x2cf6ff;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x50670d(0xf6),0x0);}[_0x2cf6ff(0x230)](_0x173cfb){const _0x27ec4=_0x2cf6ff;if(this['_assignedColors']['has'](_0x173cfb))return this['_assignedColors'][_0x27ec4(0x19c)](_0x173cfb);const _0x58f282=_s[this[_0x27ec4(0xf6)]];return this['_colorIndex']=(this[_0x27ec4(0xf6)]+0x1)%_s[_0x27ec4(0x183)],this[_0x27ec4(0x38a)][_0x27ec4(0x138)](_0x173cfb,_0x58f282),_0x58f282;}}var Ir=Object['defineProperty'],Er=Object[_0x2cf6ff(0x289)],Cr=(_0x3aa025,_0x3066ed,_0x26e847,_0x4988ed)=>{for(var _0x47a7f8=_0x4988ed>0x1?void 0x0:_0x4988ed?Er(_0x3066ed,_0x26e847):_0x3066ed,_0x174e61=_0x3aa025['length']-0x1,_0x6e1f77;_0x174e61>=0x0;_0x174e61--)(_0x6e1f77=_0x3aa025[_0x174e61])&&(_0x47a7f8=(_0x4988ed?_0x6e1f77(_0x3066ed,_0x26e847,_0x47a7f8):_0x6e1f77(_0x47a7f8))||_0x47a7f8);return _0x4988ed&&_0x47a7f8&&Ir(_0x3066ed,_0x26e847,_0x47a7f8),_0x47a7f8;},se=(_0x30d58f,_0x422aee)=>(_0x57aa37,_0x420f26)=>_0x422aee(_0x57aa37,_0x420f26,_0x30d58f);const br=0x12c,Tr=0x64;let Rt=class extends _0x424705{constructor(_0x27573c,_0x3edbbf,_0x4c78c,_0x58566b,_0x2e5b3b,_0x195d46,_0xec2ad1,_0x2c17a1,_0x438a35){const _0x32167d=_0x2cf6ff;super(),l(this,'_online',!0x1),l(this,_0x32167d(0x2fb),!0x1),l(this,_0x32167d(0x28d),new _0xa8903e(new Map())),l(this,_0x32167d(0x105),this[_0x32167d(0x28d)][_0x32167d(0x16e)]()),l(this,_0x32167d(0x3c4),new _0xa8903e([])),l(this,_0x32167d(0x449),this[_0x32167d(0x3c4)][_0x32167d(0x379)](_0x13e7ad(br))),l(this,'_updateLocalCursor',_0x25bd20(_0x1b701b=>{const _0x4e418e=_0x32167d,_0x34c1ac={'eventID':_0x236400[_0x4e418e(0x3a2)],'data':{'unitID':this['unitID'],'memberID':this[_0x4e418e(0x2b3)][_0x4e418e(0x2a6)](),'selection':xs(_0x1b701b)}};this[_0x4e418e(0x2b3)][_0x4e418e(0x329)](_0x34c1ac,this[_0x4e418e(0x357)]);},Tr)),(this[_0x32167d(0x357)]=_0x27573c,this[_0x32167d(0x2b3)]=_0x3edbbf,this['_injector']=_0x4c78c,this['_colorAssignService']=_0x58566b,this[_0x32167d(0x327)]=_0x2e5b3b,this[_0x32167d(0x228)]=_0x195d46,this['_transformService']=_0xec2ad1,this[_0x32167d(0xe4)]=_0x2c17a1,this['_commandService']=_0x438a35);}get[_0x2cf6ff(0xf1)](){const _0x5ab1e0=_0x2cf6ff;return this[_0x5ab1e0(0x28d)][_0x5ab1e0(0x308)]();}get['roomMembers'](){const _0x559cbc=_0x2cf6ff;return this[_0x559cbc(0x3c4)][_0x559cbc(0x308)]();}[_0x2cf6ff(0x275)](){const _0x42e35c=_0x2cf6ff;super[_0x42e35c(0x275)](),this[_0x42e35c(0x28d)][_0x42e35c(0x2ad)](new Map()),this['_cursorInfo$'][_0x42e35c(0x307)](),this['_roomMembers$']['next']([]),this[_0x42e35c(0x3c4)][_0x42e35c(0x307)]();}[_0x2cf6ff(0x193)](){const _0x505cdf=_0x2cf6ff;this[_0x505cdf(0x2fb)]||(this[_0x505cdf(0x2fb)]=!0x0,this['_session'][_0x505cdf(0x3a1)][_0x505cdf(0x379)](_0x5f0229(this['dispose$']))['subscribe'](_0x417d9b=>{const _0x2caa16=_0x505cdf;_0x417d9b===G[_0x2caa16(0x168)]?this['_toggleOnline']():this[_0x2caa16(0x1c7)]();}),this[_0x505cdf(0x2b3)]['event$'][_0x505cdf(0x379)](_0x5f0229(this[_0x505cdf(0x267)]))[_0x505cdf(0x360)](_0x31bc1b=>{const _0x1960e0=_0x505cdf,_0xdcb43d=_0x31bc1b[_0x1960e0(0x446)];_0xdcb43d===_0x236400[_0x1960e0(0x3a2)]&&this[_0x1960e0(0x3ab)](_0x31bc1b),_0xdcb43d===_0x236400[_0x1960e0(0x375)]&&this[_0x1960e0(0x260)](_0x31bc1b);}),this['disposeWithMe'](this[_0x505cdf(0x34a)][_0x505cdf(0x1d5)](_0x4a1ab8=>{const _0x49784f=_0x505cdf,_0x240e08=_0x4a1ab8[_0x49784f(0x3d6)];_0x240e08!=null&&this['_online']&&_0x4a1ab8['id']===_0x29ed30['id']&&_0x240e08['unitId']===this[_0x49784f(0x357)]&&_0x240e08[_0x49784f(0x252)]===!0x1&&this['_updateLocalCursor'](_0x240e08[_0x49784f(0x1a0)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x505cdf(0x379)](_0x5f0229(this[_0x505cdf(0x267)]))[_0x505cdf(0x360)](_0x44abfc=>{const _0x2a2368=_0x505cdf;if((_0x44abfc==null?void 0x0:_0x44abfc[_0x2a2368(0x357)])!==this['unitID'])return;const _0x3eeab9={'eventID':_0x236400[_0x2a2368(0x3a2)],'data':_0x44abfc};this[_0x2a2368(0x3ab)](_0x3eeab9);}),this['disposeWithMe'](this[_0x505cdf(0x34a)][_0x505cdf(0x1d5)](_0x542c5c=>{const _0x294576=_0x505cdf;if(_0x542c5c[_0x294576(0x3d6)]==null)return;const _0x191e3e=_0x542c5c[_0x294576(0x3d6)];if(_0x542c5c['id']!==_0x137108['id']||_0x191e3e['unitId']!==this[_0x294576(0x357)])return;const _0xc23065={'id':_0x294576(0x1b7),'params':_0x191e3e},_0x505449=this[_0x294576(0xf1)];for(const [_0x27dd6d,_0x5212a2]of _0x505449){const _0x47ec54={'id':_0x294576(0x1b7),'params':{'unitId':this[_0x294576(0x357)],'actions':null,'textRanges':_0x5212a2[_0x294576(0x1a0)]}},_0x472576=this[_0x294576(0x146)]['transformMutation'](_0xc23065,_0x47ec54,!0x1);if(_0x265ca1(_0x472576))throw _0x472576['error'];_0x505449[_0x294576(0x138)](_0x27dd6d,{..._0x5212a2,'ranges':_0x472576[_0x294576(0x2d7)]['params']['textRanges']});}queueMicrotask(()=>{const _0x11f78d=_0x294576;this[_0x11f78d(0x28d)][_0x11f78d(0x2ad)](_0x505449);});})));}[_0x2cf6ff(0x3ab)](_0x3f0508){const _0x3fb843=_0x2cf6ff;var _0x45511d,_0x1ee323;const {memberID:_0x4c4424,selection:_0x5dc855}=_0x3f0508['data'],_0x157b61=or(_0x5dc855),_0x183392=(_0x1ee323=(_0x45511d=this[_0x3fb843(0x327)]['getMember'](this[_0x3fb843(0x357)],_0x4c4424))==null?void 0x0:_0x45511d['name'])!=null?_0x1ee323:'Unknown\x20user',_0x365e04={'color':this['_colorAssignService'][_0x3fb843(0x230)](_0x4c4424),'name':_0x183392,'ranges':_0x157b61},_0x38dd83=this[_0x3fb843(0xf1)];_0x38dd83[_0x3fb843(0x138)](_0x4c4424,_0x365e04),this[_0x3fb843(0x28d)][_0x3fb843(0x2ad)](_0x38dd83);}[_0x2cf6ff(0x260)](_0x4050ef){const _0x129439=_0x2cf6ff,{memberID:_0x4075a6}=_0x4050ef[_0x129439(0x406)],_0x5962d1=this[_0x129439(0xf1)];_0x5962d1[_0x129439(0x152)](_0x4075a6),this[_0x129439(0x28d)][_0x129439(0x2ad)](_0x5962d1);}[_0x2cf6ff(0x18f)](){const _0x1dcebf=_0x2cf6ff;var _0x967e80;if(this[_0x1dcebf(0x15e)]=!0x0,((_0x967e80=this['_univerInstanceService'][_0x1dcebf(0x23d)]())==null?void 0x0:_0x967e80[_0x1dcebf(0x3d4)]())!==this[_0x1dcebf(0x357)])return;const _0x4ea05e=this[_0x1dcebf(0x249)]['get'](_0x253567)[_0x1dcebf(0x269)]();Array[_0x1dcebf(0x1da)](_0x4ea05e)&&_0x4ea05e[_0x1dcebf(0x183)]>0x0&&this['_updateLocalCursor'](_0x4ea05e);}[_0x2cf6ff(0x1c7)](){const _0x576cdb=_0x2cf6ff;this[_0x576cdb(0x15e)]=!0x1;}};Rt=Cr([se(0x2,_0x11c4b2(_0x3ca714)),se(0x3,_0x11c4b2(Ft)),se(0x4,_0x11c4b2(ae)),se(0x5,_0x11c4b2(Bt)),se(0x6,_0x1d81ff),se(0x7,_0x3a69fb),se(0x8,_0x339bfb)],Rt);var Rr=Object[_0x2cf6ff(0x2d3)],Or=Object[_0x2cf6ff(0x289)],Dr=(_0x1f2806,_0x41cec3,_0x11d4ea,_0x6acca0)=>{const _0x562b8e=_0x2cf6ff;for(var _0x3b0186=_0x6acca0>0x1?void 0x0:_0x6acca0?Or(_0x41cec3,_0x11d4ea):_0x41cec3,_0x2cddb9=_0x1f2806[_0x562b8e(0x183)]-0x1,_0x5617ad;_0x2cddb9>=0x0;_0x2cddb9--)(_0x5617ad=_0x1f2806[_0x2cddb9])&&(_0x3b0186=(_0x6acca0?_0x5617ad(_0x41cec3,_0x11d4ea,_0x3b0186):_0x5617ad(_0x3b0186))||_0x3b0186);return _0x6acca0&&_0x3b0186&&Rr(_0x41cec3,_0x11d4ea,_0x3b0186),_0x3b0186;},fe=(_0x4ccfca,_0x3f875f)=>(_0x47bcdd,_0x46f2af)=>_0x3f875f(_0x47bcdd,_0x46f2af,_0x4ccfca);const wr=0x12c,Pr=0x64,yr=()=>{let _0x58c4b1=[],_0xdfa82b=!0x1;return _0x48adfb=>{_0x58c4b1['push'](_0x48adfb),_0xdfa82b||(_0xdfa82b=!0x0,setTimeout(()=>{const _0x417bb9=_0xd63a;_0x58c4b1[_0x417bb9(0x198)](_0x4fc9d5=>_0x4fc9d5()),_0x58c4b1=[],_0xdfa82b=!0x1;}));};};let Ot=class extends _0x424705{constructor(_0x26b95e,_0x5b9eb6,_0x1433fd,_0x26a4c1,_0x10feee,_0x1685df,_0x57c280,_0x28031d){const _0x16ec20=_0x2cf6ff;super(),l(this,_0x16ec20(0x15e),!0x1),l(this,_0x16ec20(0x2fb),!0x1),l(this,'_cursorInfo$',new _0xa8903e(new Map())),l(this,_0x16ec20(0x105),this['_cursorInfo$'][_0x16ec20(0x16e)]()),l(this,'_roomMembers$',new _0xa8903e([])),l(this,_0x16ec20(0x449),this[_0x16ec20(0x3c4)][_0x16ec20(0x379)](_0x13e7ad(wr))),l(this,'_updateLocalCursor',_0x25bd20((_0x44b984,_0x4e6325)=>{const _0x5c1eda=_0x16ec20,_0x84434a={'eventID':_0x236400[_0x5c1eda(0x3a2)],'data':{'unitID':this[_0x5c1eda(0x357)],'memberID':this[_0x5c1eda(0x2b3)][_0x5c1eda(0x2a6)](),'selection':_0x22216c(_0x44b984,_0x4e6325[_0x5c1eda(0x2be)])}};this[_0x5c1eda(0x2b3)][_0x5c1eda(0x329)](_0x84434a,this[_0x5c1eda(0x357)]);},Pr)),(this[_0x16ec20(0x357)]=_0x26b95e,this[_0x16ec20(0x2b3)]=_0x5b9eb6,this[_0x16ec20(0x249)]=_0x1433fd,this[_0x16ec20(0x214)]=_0x26a4c1,this['_memberService']=_0x10feee,this[_0x16ec20(0xe4)]=_0x1685df,this[_0x16ec20(0x34a)]=_0x57c280,this['_refRangeService']=_0x28031d);}get[_0x2cf6ff(0xf1)](){const _0x3e653b=_0x2cf6ff;return this[_0x3e653b(0x28d)][_0x3e653b(0x308)]();}get[_0x2cf6ff(0x37e)](){const _0x460731=_0x2cf6ff;return this['_roomMembers$'][_0x460731(0x308)]();}[_0x2cf6ff(0x275)](){const _0x403914=_0x2cf6ff;super['dispose'](),this[_0x403914(0x28d)][_0x403914(0x2ad)](new Map()),this[_0x403914(0x28d)]['complete'](),this[_0x403914(0x3c4)][_0x403914(0x2ad)]([]),this[_0x403914(0x3c4)][_0x403914(0x307)]();}[_0x2cf6ff(0x193)](){const _0x1a51d6=_0x2cf6ff;this[_0x1a51d6(0x2fb)]||(this['_init']=!0x0,this[_0x1a51d6(0x2b3)][_0x1a51d6(0x3a1)][_0x1a51d6(0x379)](_0x5f0229(this[_0x1a51d6(0x267)]))['subscribe'](_0x502f47=>{const _0x35dac7=_0x1a51d6;_0x502f47===G[_0x35dac7(0x168)]?this['_toggleOnline']():this[_0x35dac7(0x1c7)]();}),this[_0x1a51d6(0x2b3)][_0x1a51d6(0x3d1)]['pipe'](_0x5f0229(this['dispose$']))[_0x1a51d6(0x360)](_0x2e0f7f=>{const _0x169f2b=_0x1a51d6,_0x2b6315=_0x2e0f7f[_0x169f2b(0x446)];_0x2b6315===_0x236400['UPDATE_CURSOR']&&this[_0x169f2b(0x3ab)](_0x2e0f7f),_0x2b6315===_0x236400[_0x169f2b(0x375)]&&this[_0x169f2b(0x260)](_0x2e0f7f);}),this[_0x1a51d6(0x12a)](),this[_0x1a51d6(0x2cd)](this['_commandService']['onCommandExecuted'](_0x8e57b9=>{const _0xf17990=_0x1a51d6;if(this['_online']&&_0x8e57b9['id']===_0xccbe27['id']&&_0x8e57b9['params'][_0xf17990(0x290)]===this[_0xf17990(0x357)]){const _0x60c64f=_0x8e57b9[_0xf17990(0x3d6)];this[_0xf17990(0x2cf)](_0x60c64f[_0xf17990(0x1d3)],_0x60c64f[_0xf17990(0x368)][0x0]);}})));}[_0x2cf6ff(0x3ab)](_0x3e826e){const _0x2fe3f9=_0x2cf6ff;var _0x103305,_0xad4ab7;const {memberID:_0x1c7fef,selection:_0x1942e1}=_0x3e826e[_0x2fe3f9(0x406)],{sheetName:_0x410513,range:_0x361e1d}=_0x276fac(_0x1942e1),_0x32b1f4={'name':(_0xad4ab7=(_0x103305=this['_memberService']['getMember'](this[_0x2fe3f9(0x357)],_0x1c7fef))==null?void 0x0:_0x103305[_0x2fe3f9(0x3e6)])!=null?_0xad4ab7:_0x2fe3f9(0x458),'range':this['_getMergeRange'](_0x410513,_0x361e1d),'sheetID':_0x410513,'color':this[_0x2fe3f9(0x214)][_0x2fe3f9(0x230)](_0x1c7fef),'selection':_0x1942e1},_0x25556a=this[_0x2fe3f9(0xf1)];_0x25556a['set'](_0x1c7fef,_0x32b1f4),this[_0x2fe3f9(0x28d)][_0x2fe3f9(0x2ad)](_0x25556a);}[_0x2cf6ff(0x260)](_0x42c5da){const _0x456e51=_0x2cf6ff,{memberID:_0x478bef}=_0x42c5da[_0x456e51(0x406)],_0x5743ba=this['cursorInfo'];_0x5743ba[_0x456e51(0x152)](_0x478bef),this[_0x456e51(0x28d)][_0x456e51(0x2ad)](_0x5743ba);}[_0x2cf6ff(0xdb)](_0x12121f,_0x5e01aa){const _0x2eb402=_0x2cf6ff;var _0x977601,_0x2528e6;const _0x396bb4=(_0x2528e6=(_0x977601=this[_0x2eb402(0xe4)][_0x2eb402(0x1db)](this[_0x2eb402(0x357)]))==null?void 0x0:_0x977601['getSheetBySheetId'](_0x12121f))==null?void 0x0:_0x2528e6[_0x2eb402(0x22c)]();return(_0x396bb4==null?void 0x0:_0x396bb4['find'](_0x24f4c7=>_0x4df9d6['contains'](_0x24f4c7,_0x5e01aa)))||_0x5e01aa;}[_0x2cf6ff(0x12a)](){const _0x17da8e=_0x2cf6ff,_0x5d126a=new _0x435f5a(),_0x49a0a3=yr(),_0x14ee4e=()=>{const _0x270c3=_0xd63a;_0x5d126a['dispose']();const _0x3805e3=(_0x4df680,_0x3842e6,_0x22b060,_0x2d5fed)=>{const _0x485042=_0xd63a;let _0x2cf260=[];switch(_0x4df680['id']){case _0x1b652a[_0x485042(0x346)]:{_0x2cf260=_0x32c2ac(_0x4df680,_0x2d5fed);break;}case _0x1b652a['DeleteRangeMoveUpCommandId']:{_0x2cf260=_0x6ffff2(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x25f)]:{_0x2cf260=_0x41eb19(_0x4df680,_0x2d5fed);break;}case _0x1b652a['InsertRangeMoveDownCommandId']:{_0x2cf260=_0x5ebf3e(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x404)]:{_0x2cf260=_0x4bb0be(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x17a)]:{_0x2cf260=_0x3e245b(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x34f)]:{_0x2cf260=_0x20bba7(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x175)]:{_0x2cf260=_0x48280d(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x29a)]:{_0x2cf260=_0x33362a(_0x4df680,_0x2d5fed);break;}}const _0x581b7e=_0x4f2272(_0x2cf260,_0x2d5fed),_0x165085=this[_0x485042(0xf1)][_0x485042(0x19c)](_0x3842e6);if(_0x165085&&_0x581b7e){const _0x2e2c18={..._0x165085,'range':_0x581b7e};this[_0x485042(0xf1)][_0x485042(0x138)](_0x3842e6,_0x2e2c18),_0x49a0a3(()=>{const _0x39212f=_0x485042,_0x363d9a=this[_0x39212f(0x301)][_0x39212f(0x36d)](_0x581b7e,_0x1e1382=>(_0x363d9a[_0x39212f(0x275)](),_0x3805e3(_0x1e1382,_0x3842e6,_0x22b060,_0x581b7e)));_0x5d126a[_0x39212f(0x3a8)](_0x363d9a);});}return{'redos':[],'undos':[]};};this[_0x270c3(0xf1)][_0x270c3(0x198)]((_0x2fe65f,_0x59cdad)=>{const _0x4da329=_0x270c3,{range:_0x215254,sheetID:_0x160bd6}=_0x2fe65f,_0x190c14=this[_0x4da329(0x301)][_0x4da329(0x36d)](_0x215254,_0x29d12b=>(_0x190c14['dispose'](),_0x3805e3(_0x29d12b,_0x59cdad,_0x160bd6,_0x215254)));_0x5d126a[_0x4da329(0x3a8)](_0x190c14);});};this[_0x17da8e(0x2cd)](_0x57baeb(this[_0x17da8e(0x28d)][_0x17da8e(0x360)](()=>{_0x14ee4e();})));}[_0x2cf6ff(0x18f)](){const _0x4223b1=_0x2cf6ff;var _0x2e8e92,_0x54b434;if(this[_0x4223b1(0x15e)]=!0x0,((_0x2e8e92=this[_0x4223b1(0xe4)][_0x4223b1(0x23d)]())==null?void 0x0:_0x2e8e92['getUnitId']())!==this['unitID'])return;const _0x394bdd=(_0x54b434=this[_0x4223b1(0x249)][_0x4223b1(0x19c)](_0x5170b3)[_0x4223b1(0x395)]())==null?void 0x0:_0x54b434[0x0],_0x54fd35=this[_0x4223b1(0xe4)][_0x4223b1(0x200)](_0x5ba247[_0x4223b1(0x43d)])['getActiveSheet']();_0x394bdd&&_0x54fd35&&this[_0x4223b1(0x2cf)](_0x54fd35['getSheetId'](),_0x394bdd);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Dr([fe(0x2,_0x11c4b2(_0x3ca714)),fe(0x3,_0x11c4b2(Ft)),fe(0x4,_0x11c4b2(ae)),fe(0x5,_0x3a69fb),fe(0x6,_0x339bfb),fe(0x7,_0x11c4b2(_0x29e128))],Ot);var Nr=Object[_0x2cf6ff(0x2d3)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x4a454c,_0x315c57,_0xd3cbda,_0x5cb3c9)=>{const _0x2e89cb=_0x2cf6ff;for(var _0x1d3c80=_0x5cb3c9>0x1?void 0x0:_0x5cb3c9?Ur(_0x315c57,_0xd3cbda):_0x315c57,_0x422528=_0x4a454c[_0x2e89cb(0x183)]-0x1,_0x4b6b11;_0x422528>=0x0;_0x422528--)(_0x4b6b11=_0x4a454c[_0x422528])&&(_0x1d3c80=(_0x5cb3c9?_0x4b6b11(_0x315c57,_0xd3cbda,_0x1d3c80):_0x4b6b11(_0x1d3c80))||_0x1d3c80);return _0x5cb3c9&&_0x1d3c80&&Nr(_0x315c57,_0xd3cbda,_0x1d3c80),_0x1d3c80;},_t=(_0x49fabf,_0x20264d)=>(_0x5c891d,_0x5b49cb)=>_0x20264d(_0x5c891d,_0x5b49cb,_0x49fabf);let pe=class extends _0x424705{constructor(_0x32ff6c,_0xe334b1,_0xe76c9f){const _0x4a897d=_0x2cf6ff;super(),l(this,_0x4a897d(0x309),new Map()),l(this,_0x4a897d(0x1a7),new _0x5ebd47()),(this[_0x4a897d(0xe4)]=_0x32ff6c,this['_injector']=_0xe334b1,this[_0x4a897d(0x159)]=_0xe76c9f,this['_init']());}[_0x2cf6ff(0x275)](){const _0x191f37=_0x2cf6ff;super['dispose'](),this[_0x191f37(0x1a7)][_0x191f37(0x307)](),this[_0x191f37(0x309)]['forEach'](_0x3d6684=>_0x3d6684[_0x191f37(0x275)]());}[_0x2cf6ff(0x38c)](_0x4b8e92){const _0x48a5a5=_0x2cf6ff;return this[_0x48a5a5(0x309)][_0x48a5a5(0x277)](_0x4b8e92)?this['_entities'][_0x48a5a5(0x19c)](_0x4b8e92)['cursorInfo$']:this[_0x48a5a5(0x1a7)][_0x48a5a5(0x379)](_0x332bf1(_0x29be67=>_0x29be67[_0x48a5a5(0x357)]===_0x4b8e92),_0x42baee(_0x59d116=>_0x59d116['cursorInfo$']));}[_0x2cf6ff(0x2fb)](){const _0xeee95c=_0x2cf6ff;this[_0xeee95c(0xe4)][_0xeee95c(0x1fc)](_0x5ba247[_0xeee95c(0x43d)])[_0xeee95c(0x379)](_0x5f0229(this[_0xeee95c(0x267)]))[_0xeee95c(0x360)](async _0x4e8ca5=>{const _0x57292e=_0xeee95c,_0x1172f5=_0x4e8ca5[_0x57292e(0x3d4)](),_0x3f0312=await this[_0x57292e(0x234)](_0x1172f5);this[_0x57292e(0x1a7)]['next'](_0x3f0312),this[_0x57292e(0x309)][_0x57292e(0x138)](_0x1172f5,_0x3f0312);}),this[_0xeee95c(0xe4)][_0xeee95c(0x1fc)](_0x5ba247[_0xeee95c(0x359)])[_0xeee95c(0x379)](_0x5f0229(this['dispose$']))['pipe'](_0x332bf1(_0x433309=>!_0x433309[_0xeee95c(0x3d4)]()[_0xeee95c(0x428)]('__')))[_0xeee95c(0x360)](async _0x48f847=>{const _0x39c76d=_0xeee95c,_0x3de0c0=_0x48f847[_0x39c76d(0x3d4)](),_0xa1a9a2=await this[_0x39c76d(0x1d0)](_0x3de0c0);this[_0x39c76d(0x1a7)]['next'](_0xa1a9a2),this[_0x39c76d(0x309)][_0x39c76d(0x138)](_0x3de0c0,_0xa1a9a2);}),_0x577df9(this['_univerInstanceService'][_0xeee95c(0x1af)](_0x5ba247[_0xeee95c(0x359)]),this[_0xeee95c(0xe4)]['getTypeOfUnitDisposed$'](_0x5ba247[_0xeee95c(0x43d)]))[_0xeee95c(0x379)](_0x5f0229(this['dispose$']))['subscribe'](_0x549e42=>{const _0x35ac80=_0xeee95c,_0x2a6f04=_0x549e42[_0x35ac80(0x3d4)](),_0x697fe0=this['_entities'][_0x35ac80(0x19c)](_0x2a6f04);_0x697fe0&&(_0x697fe0['dispose'](),this[_0x35ac80(0x309)]['delete'](_0x2a6f04));});}async['_startSheetCollabCursor'](_0x305fa8){const _0x5a204f=_0x2cf6ff,_0x111ccd=await this['_collabSessionService'][_0x5a204f(0x393)](_0x305fa8),_0x43734e=this[_0x5a204f(0x249)][_0x5a204f(0x1f3)](Ot,_0x305fa8,_0x111ccd);return _0x43734e['init'](),_0x43734e;}async[_0x2cf6ff(0x1d0)](_0x3f64af){const _0x5b6e4a=_0x2cf6ff,_0x4a7002=await this['_collabSessionService']['requireSession'](_0x3f64af),_0x157fac=this['_injector'][_0x5b6e4a(0x1f3)](Rt,_0x3f64af,_0x4a7002);return _0x157fac[_0x5b6e4a(0x193)](),_0x157fac;}};pe=Mr([_t(0x0,_0x3a69fb),_t(0x1,_0x11c4b2(_0x3ca714)),_t(0x2,_0x11c4b2(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0xe03d3a,_0x2ae922){const _0xc188ef=_0x2cf6ff;let {radius:_0x2ff28a,width:_0x4a46b5,height:_0x1f9d82}=_0x2ae922;_0x2ff28a=_0x2ff28a!=null?_0x2ff28a:0x0,_0x4a46b5=_0x4a46b5!=null?_0x4a46b5:0x1e,_0x1f9d82=_0x1f9d82!=null?_0x1f9d82:0x1e;let _0x2a8e0e=0x0,_0x422297=0x0,_0x2c3e09=0x0;_0x2a8e0e=_0x422297=_0x2c3e09=Math[_0xc188ef(0x3c9)](_0x2ff28a,_0x4a46b5/0x2,_0x1f9d82/0x2),_0xe03d3a[_0xc188ef(0x229)](),_0xe03d3a[_0xc188ef(0x22a)](_0x2a8e0e,0x0),_0xe03d3a[_0xc188ef(0x180)](_0x4a46b5-_0x422297,0x0),_0xe03d3a['arc'](_0x4a46b5-_0x422297,_0x422297,_0x422297,Math['PI']*0x3/0x2,0x0,!0x1),_0xe03d3a[_0xc188ef(0x180)](_0x4a46b5,_0x1f9d82-_0x2c3e09),_0xe03d3a[_0xc188ef(0x376)](_0x4a46b5-_0x2c3e09,_0x1f9d82-_0x2c3e09,_0x2c3e09,0x0,Math['PI']/0x2,!0x1),_0xe03d3a[_0xc188ef(0x180)](0x0,_0x1f9d82),_0xe03d3a[_0xc188ef(0x180)](0x0,_0x2a8e0e),_0xe03d3a['arc'](_0x2a8e0e,_0x2a8e0e,_0x2a8e0e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe03d3a[_0xc188ef(0x3c2)](),_0x2ae922[_0xc188ef(0x25e)]&&(_0xe03d3a[_0xc188ef(0x259)](),_0xe03d3a[_0xc188ef(0x1ec)]=_0x2ae922[_0xc188ef(0x25e)],_0x2ae922['fillRule']===_0xc188ef(0x414)?_0xe03d3a['fill'](_0xc188ef(0x414)):_0xe03d3a[_0xc188ef(0x25e)](),_0xe03d3a[_0xc188ef(0x1c8)]());}class st extends _0x3224fa{constructor(_0x26ec11,_0x20b2fd){const _0xfb85c0=_0x2cf6ff;super(_0x26ec11,_0x20b2fd),l(this,'color'),l(this,_0xfb85c0(0x1ef)),(this['color']=_0x20b2fd==null?void 0x0:_0x20b2fd['color'],this[_0xfb85c0(0x1ef)]=_0x20b2fd==null?void 0x0:_0x20b2fd['text']);}static[_0x2cf6ff(0x1dc)](_0x44c25a,_0x527375){const _0xf41e81=_0x2cf6ff,{text:_0x27d6fc,color:_0x326bfc}=_0x527375;_0x44c25a[_0xf41e81(0x259)](),_0x44c25a[_0xf41e81(0x247)]=_0xf41e81(0x3cd);const _0x3f571b=_0x44c25a[_0xf41e81(0x13e)](_0x27d6fc)[_0xf41e81(0x1df)],_0x1dcd6e=Math[_0xf41e81(0x3c9)](_0x3f571b+0x2*ut,us);Lr(_0x44c25a,{'height':Le,'radius':0x4,'width':_0x1dcd6e,'fill':_0x326bfc,'evented':!0x1}),_0x44c25a['fillStyle']=_0xf41e81(0x459);const _0x28a698=ut,_0x85193b=Le-Ar,_0x53f395=us-0x2*ut;if(_0x3f571b>_0x53f395){let _0x1280b5='',_0x2ed4c4=0x0;for(const _0x4de14e of _0x27d6fc){const _0x3ea93c=_0x44c25a[_0xf41e81(0x13e)](_0x4de14e)[_0xf41e81(0x1df)];if(_0x2ed4c4+_0x3ea93c<=_0x53f395-_0x44c25a['measureText'](_0xf41e81(0x351))['width'])_0x1280b5+=_0x4de14e,_0x2ed4c4+=_0x3ea93c;else{_0x1280b5+=_0xf41e81(0x351);break;}}_0x44c25a[_0xf41e81(0x3d9)](_0x1280b5,_0x28a698,_0x85193b);}else _0x44c25a[_0xf41e81(0x3d9)](_0x27d6fc,_0x28a698,_0x85193b);_0x44c25a['restore']();}[_0x2cf6ff(0x2da)](_0x13be14){const _0x2bbebc=_0x2cf6ff;st[_0x2bbebc(0x1dc)](_0x13be14,this);}}const dt=_0x2cf6ff(0x36a),$r=_0x2cf6ff(0x161),jr=_0x2cf6ff(0x143),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x2cf6ff(0x185);class ds{constructor(_0x20844b,_0x3a5a79,_0x23f420,_0x903da){const _0x29481e=_0x2cf6ff;l(this,'_shapes',[]),l(this,_0x29481e(0x38f),null),l(this,_0x29481e(0x20b),null),l(this,_0x29481e(0x136),null),l(this,'_hideTimer',null),l(this,_0x29481e(0x45a),null),(this[_0x29481e(0x3de)]=_0x20844b,this['_scene']=_0x3a5a79,this[_0x29481e(0x3cb)]=_0x23f420,this[_0x29481e(0x17f)]=_0x903da,this[_0x29481e(0x374)]());}set['_hover'](_0xf20d97){const _0x888ba8=_0x2cf6ff;_0xf20d97?(this[_0x888ba8(0x136)]&&this[_0x888ba8(0x136)][_0x888ba8(0x27d)](),this[_0x888ba8(0x20b)]&&this['_textBubble'][_0x888ba8(0x10c)]()):(this[_0x888ba8(0x136)]&&this[_0x888ba8(0x136)][_0x888ba8(0x10c)](),this[_0x888ba8(0x20b)]&&this['_textBubble'][_0x888ba8(0x27d)]());}[_0x2cf6ff(0x275)](){const _0x423044=_0x2cf6ff;for(const _0x5c00a7 of this[_0x423044(0x2ba)])_0x5c00a7[_0x423044(0x275)]();this[_0x423044(0x20b)]&&this[_0x423044(0x20b)][_0x423044(0x275)](),this[_0x423044(0x136)]&&this['_anchorDot'][_0x423044(0x275)](),this[_0x423044(0x38f)]&&this[_0x423044(0x38f)][_0x423044(0x275)](),this['_eventUnsubscribe']&&this[_0x423044(0x45a)]();}[_0x2cf6ff(0x374)](){const _0x52db90=_0x2cf6ff;var _0xc3e04e;const {_docSkeleton:_0x388ce4,_document:_0x4c7baf}=this,{color:_0x5636ad,name:_0x39f0f9,ranges:_0x579658}=this['_cursor'],_0x23d2a4=_0x4c7baf[_0x52db90(0x1a3)](),{docsLeft:_0x4d3b25,docsTop:_0x151477}=_0x23d2a4,_0x13ff66=new _0xd5545a(_0x23d2a4,_0x388ce4);for(const {startOffset:_0x459806,endOffset:_0xe657dc,collapsed:_0x2960c0,isActive:_0x339782}of _0x579658){const _0x129698=_0x388ce4['findNodePositionByCharIndex'](_0x459806),_0x60f38e=_0x388ce4[_0x52db90(0x455)](_0xe657dc);if(_0x339782){const {contentBoxPointGroup:_0x49bdda}=_0x13ff66[_0x52db90(0x326)](_0x60f38e,_0x60f38e);if(_0x49bdda[_0x52db90(0x183)]===0x0)continue;this[_0x52db90(0x1b2)](_0x5636ad,_0x49bdda,_0x4d3b25,_0x151477,_0x39f0f9),this[_0x52db90(0x45a)]=this[_0x52db90(0x1ac)]();}if(!_0x2960c0&&_0x129698&&_0x60f38e){if(_0x32be08(_0x129698,_0x60f38e)){const _0x153801=new _0x4e719a(_0x23d2a4,_0x388ce4),{pointGroup:_0x2a6c0d}=(_0xc3e04e=_0x153801[_0x52db90(0x326)](_0x129698,_0x60f38e))!=null?_0xc3e04e:{};if(_0x2a6c0d==null||_0x2a6c0d[_0x52db90(0x183)]===0x0)continue;this[_0x52db90(0x280)](_0x5636ad,_0x2a6c0d,_0x4d3b25,_0x151477);}else{const {contentBoxPointGroup:_0x350bf8}=_0x13ff66['getRangePointData'](_0x129698,_0x60f38e);if(_0x350bf8[_0x52db90(0x183)]===0x0)continue;this[_0x52db90(0x1cb)](_0x5636ad,_0x350bf8,_0x4d3b25,_0x151477);}}}}[_0x2cf6ff(0x1b2)](_0x3e7a5f,_0x376b40,_0x323690,_0x34b90b,_0x425043){const _0x567bb7=_0x2cf6ff,_0x283782=this[_0x567bb7(0x38b)](_0x376b40),{left:_0x51a733,top:_0x4c8e97,height:_0x530ee6}=_0x283782,_0x21d06f=this[_0x567bb7(0x350)](),_0x40185e=Hr/_0x21d06f,_0x1963cd=new _0xfe6739(dt+_0x3d523e['generateRandomId'](De),{'left':_0x51a733+_0x323690-_0x40185e,'top':_0x4c8e97+_0x34b90b,'height':_0x530ee6,'width':xr,'fill':_0x3e7a5f||_0xfc94f4(_0xcac1ea['black'],0x0),'strokeWidth':_0x40185e,'stroke':kr,'evented':!0x0});this['_anchor']=_0x1963cd,this[_0x567bb7(0x3bc)][_0x567bb7(0x1a8)](_0x1963cd,_0x35e282);const _0x44998a=new _0xfe6739(dt+_0x3d523e[_0x567bb7(0x434)](De),{'left':_0x51a733+_0x323690-_0x40185e,'top':_0x4c8e97+_0x34b90b-ft/0x2,'height':ft,'width':ft,'fill':_0x3e7a5f||_0xfc94f4(_0xcac1ea['black'],0x0),'strokeWidth':0x0,'stroke':_0x3e7a5f||_0xfc94f4(_0xcac1ea[_0x567bb7(0xf7)],0x0),'evented':!0x1});this[_0x567bb7(0x136)]=_0x44998a,this[_0x567bb7(0x3bc)][_0x567bb7(0x1a8)](_0x44998a,_0x35e282);const _0x5eff28=new st(dt+_0x3d523e[_0x567bb7(0x434)](De),{'left':_0x51a733+_0x323690-_0x40185e,'top':_0x4c8e97+_0x34b90b-Le,'text':_0x425043,'color':_0x3e7a5f});this[_0x567bb7(0x20b)]=_0x5eff28,this[_0x567bb7(0x3bc)]['addObject'](_0x5eff28,_0x35e282),this[_0x567bb7(0x39d)]=!0x1;}['_handleHover'](){const _0x346d6d=_0x2cf6ff,_0x46d59a=this['_anchor']['onPointerEnter$'][_0x346d6d(0x43f)](()=>{const _0xcf1edc=_0x346d6d;this[_0xcf1edc(0x39d)]=!0x0;}),_0x339c63=this[_0x346d6d(0x38f)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x405d20=_0x346d6d;this[_0x405d20(0x303)]&&clearTimeout(this[_0x405d20(0x303)]),this[_0x405d20(0x303)]=setTimeout(()=>{const _0x1aad74=_0x405d20;this[_0x1aad74(0x39d)]=!0x1;},0x7d0);});return()=>{const _0xa6560c=_0x346d6d;_0x46d59a[_0xa6560c(0x285)](),_0x339c63[_0xa6560c(0x285)]();};}[_0x2cf6ff(0x1cb)](_0x306ccf,_0x1fa3f4,_0xd2d80a,_0x584d1b){const _0x29d16a=_0x2cf6ff,_0x1f7d1c=new _0x449a4e(_0x306ccf)[_0x29d16a(0x356)](0.2)[_0x29d16a(0x420)](),_0x22ad30=new _0xfff04a($r+_0x3d523e['generateRandomId'](De),{'pointsGroup':_0x1fa3f4,'fill':_0x1f7d1c||_0xfc94f4(_0xcac1ea[_0x29d16a(0xf7)],0.2),'left':_0xd2d80a,'top':_0x584d1b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x29d16a(0x2ba)][_0x29d16a(0x16c)](_0x22ad30),this[_0x29d16a(0x3bc)][_0x29d16a(0x1a8)](_0x22ad30,_0x35e282);}['_drawRectRange'](_0x1e7cb2,_0x4ea13e,_0xa51a59,_0x4ebfd7){const _0x372c8b=_0x2cf6ff,_0x42d9e8=new _0x449a4e(_0x1e7cb2)[_0x372c8b(0x356)](0.2)[_0x372c8b(0x420)](),_0x439a96=new _0xfff04a(jr+_0x3d523e['generateRandomId'](De),{'pointsGroup':_0x4ea13e,'fill':_0x42d9e8||_0xfc94f4(_0xcac1ea[_0x372c8b(0xf7)],0.2),'left':_0xa51a59,'top':_0x4ebfd7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x372c8b(0x2ba)][_0x372c8b(0x16c)](_0x439a96),this['_scene'][_0x372c8b(0x1a8)](_0x439a96,_0x35e282);}[_0x2cf6ff(0x38b)](_0x199159){const _0x362eda=_0x199159[0x0],_0x18353f=_0x362eda[0x0],_0x5e2d8f=_0x362eda[0x2],{x:_0x4a30ee,y:_0x217eb8}=_0x18353f,{x:_0x41e521,y:_0x53a965}=_0x5e2d8f;return{'left':_0x4a30ee,'top':_0x217eb8,'width':_0x41e521-_0x4a30ee,'height':_0x53a965-_0x217eb8};}[_0x2cf6ff(0x350)](){const _0x368c9d=_0x2cf6ff,{scaleX:_0x109222,scaleY:_0x5db178}=this[_0x368c9d(0x3bc)]['getAncestorScale']();return Math[_0x368c9d(0x26f)](_0x109222,_0x5db178);}}var Br=Object['defineProperty'],Vr=Object['getOwnPropertyDescriptor'],Fr=(_0x3c9994,_0x4784f5,_0x457a1a,_0x3def91)=>{for(var _0x35f186=_0x3def91>0x1?void 0x0:_0x3def91?Vr(_0x4784f5,_0x457a1a):_0x4784f5,_0x2bd01f=_0x3c9994['length']-0x1,_0x27c658;_0x2bd01f>=0x0;_0x2bd01f--)(_0x27c658=_0x3c9994[_0x2bd01f])&&(_0x35f186=(_0x3def91?_0x27c658(_0x4784f5,_0x457a1a,_0x35f186):_0x27c658(_0x35f186))||_0x35f186);return _0x3def91&&_0x35f186&&Br(_0x4784f5,_0x457a1a,_0x35f186),_0x35f186;},xe=(_0x183a39,_0x95d474)=>(_0x4f9938,_0x12f9b1)=>_0x95d474(_0x4f9938,_0x12f9b1,_0x183a39);let Dt=class extends _0x424705{constructor(_0x179def,_0x1c5f20,_0x19dc3a,_0x1ab89d,_0x4c8639){const _0x1ea2f8=_0x2cf6ff;super(),l(this,_0x1ea2f8(0x20a),[]),l(this,_0x1ea2f8(0x42d),[]),(this['_context']=_0x179def,this[_0x1ea2f8(0x347)]=_0x1c5f20,this[_0x1ea2f8(0x3ed)]=_0x19dc3a,this[_0x1ea2f8(0x34a)]=_0x1ab89d,this[_0x1ea2f8(0xdf)]=_0x4c8639,this[_0x1ea2f8(0x2fb)]());}[_0x2cf6ff(0x2fb)](){const _0x1de6a7=_0x2cf6ff,_0x4b69d4=this['_context'][_0x1de6a7(0x290)],_0xd9084f=this[_0x1de6a7(0x347)];this[_0x1de6a7(0x2cd)](_0xb1d5f6([this[_0x1de6a7(0x3ed)][_0x1de6a7(0x38c)](_0x4b69d4),this[_0x1de6a7(0xdf)]['currentTheme$']])['pipe'](_0x4a2a85(([_0x4defe3,_0x253441])=>({'skeleton':_0xd9084f[_0x1de6a7(0x22f)](),'cursors':[..._0x4defe3[_0x1de6a7(0x205)]()][_0x1de6a7(0x3b5)](_0x76b369=>({..._0x76b369,'color':_0x253441[_0x76b369[_0x1de6a7(0x1a6)]]}))})))[_0x1de6a7(0x360)](_0x2a1be8=>{const _0x11f486=_0x1de6a7;if(this[_0x11f486(0x239)](),_0x2a1be8){const {skeleton:_0x289c2a,cursors:_0x871c4b}=_0x2a1be8;this[_0x11f486(0x33f)](_0x289c2a,_0x871c4b);}})),this[_0x1de6a7(0x15f)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0xdf1dc2,_0x2d7366){const _0x50d6cd=_0x2cf6ff,{scene:_0x159fe8,mainComponent:_0x18b16c}=this[_0x50d6cd(0x418)],_0x3d7c82=_0x2d7366[_0x50d6cd(0x101)](_0x32c1d=>new ds(_0x32c1d,_0x159fe8,_0xdf1dc2,_0x18b16c));this[_0x50d6cd(0x20a)]=_0x3d7c82,this['_cursors']=_0x2d7366;}[_0x2cf6ff(0x113)](){const _0x1e552d=_0x2cf6ff;this[_0x1e552d(0x239)]();const {scene:_0x493130,mainComponent:_0x155af3}=this[_0x1e552d(0x418)],_0x12523f=this['_docSkeletonManagerService']['getSkeleton'](),_0x2b9f2b=this[_0x1e552d(0x42d)][_0x1e552d(0x101)](_0x124292=>new ds(_0x124292,_0x493130,_0x12523f,_0x155af3));this['_cursorShapes']=_0x2b9f2b;}['_removeCollabCursors'](){const _0x579f24=_0x2cf6ff;this[_0x579f24(0x20a)]['forEach'](_0x16ba4a=>_0x16ba4a[_0x579f24(0x275)]()),this['_cursorShapes']=[];}[_0x2cf6ff(0x2fe)](){const _0x243012=_0x2cf6ff,_0x50e8f1=[_0x5c3d7a['id']];this['disposeWithMe'](this[_0x243012(0x34a)][_0x243012(0x1d5)](_0x376e17=>{const _0x36dfec=_0x243012;_0x50e8f1['includes'](_0x376e17['id'])&&_0x376e17[_0x36dfec(0x3d6)][_0x36dfec(0x290)]===this[_0x36dfec(0x418)][_0x36dfec(0x290)]&&this[_0x36dfec(0x113)]();}));}[_0x2cf6ff(0x15f)](){const _0x31b1e2=_0x2cf6ff;this['disposeWithMe'](_0x1701f0(this['_context'][_0x31b1e2(0x3ef)]['onTransformChange$'])[_0x31b1e2(0x379)](_0x584f39(_0x36e070=>_0x36e070['type']===_0x54eff9[_0x31b1e2(0x22b)]),_0x5b2033(0x10))[_0x31b1e2(0x360)](()=>{this['_refreshCollabCursors']();}));}};Dt=Fr([xe(0x1,_0x11c4b2(_0x4498de)),xe(0x2,_0x11c4b2(pe)),xe(0x3,_0x339bfb),xe(0x4,_0x11c4b2(_0x156127))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x3224fa{constructor(_0x1de0ea,_0x30d7de){const _0x1504e8=_0x2cf6ff;super(_0x1de0ea,_0x30d7de),l(this,_0x1504e8(0x111)),l(this,_0x1504e8(0x176),!0x1),l(this,_0x1504e8(0x19e)),l(this,_0x1504e8(0x13a),''),l(this,_0x1504e8(0x17c),_0x1504e8(0xff)),l(this,_0x1504e8(0x206)),(_0x30d7de&&this['setShapeProps'](_0x30d7de),this['onPointerEnter$'][_0x1504e8(0x43f)](()=>this[_0x1504e8(0x191)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1504e8(0x43f)](()=>this[_0x1504e8(0x191)]({'hovered':!0x1})));}[_0x2cf6ff(0x191)](_0x380043){const _0x11b56e=_0x2cf6ff;var _0x3eeead,_0x4d6f7b,_0x548c60,_0xf0923c,_0x4797b9,_0x53b2c7;this[_0x11b56e(0x111)]=(_0x3eeead=_0x380043[_0x11b56e(0x1a6)])!=null?_0x3eeead:this[_0x11b56e(0x111)],this[_0x11b56e(0x176)]=(_0x4d6f7b=_0x380043[_0x11b56e(0x412)])!=null?_0x4d6f7b:this[_0x11b56e(0x176)],this[_0x11b56e(0x19e)]=(_0x548c60=_0x380043[_0x11b56e(0x2be)])!=null?_0x548c60:this[_0x11b56e(0x19e)],this[_0x11b56e(0x13a)]=(_0xf0923c=_0x380043[_0x11b56e(0x3e6)])!=null?_0xf0923c:this['_name'],this[_0x11b56e(0x17c)]=(_0x4797b9=_0x380043['labelPosition'])!=null?_0x4797b9:this['_labelPosition'],this[_0x11b56e(0x206)]=(_0x53b2c7=_0x380043[_0x11b56e(0x38d)])!=null?_0x53b2c7:this[_0x11b56e(0x206)],this[_0x11b56e(0x3ee)]({'width':_0x380043[_0x11b56e(0x1df)],'height':_0x380043[_0x11b56e(0x140)]});}[_0x2cf6ff(0x28e)](_0x231dbc){const _0x387456=_0x2cf6ff,{row:_0xfd8654,column:_0x513251}=_0x231dbc;if(_0xfd8654>=this[_0x387456(0x19e)]['startRow']&&_0xfd8654<=this[_0x387456(0x19e)][_0x387456(0x2a7)]&&_0x513251>=this[_0x387456(0x19e)][_0x387456(0x1fe)]&&_0x513251<=this['_range'][_0x387456(0x441)]){this[_0x387456(0x191)]({'hovered':!0x0});return;}this[_0x387456(0x191)]({'hovered':!0x1});}['triggerDblclick'](_0x810548){return!0x1;}[_0x2cf6ff(0x2da)](_0xbd46d9){const _0x5490e0=_0x2cf6ff;_0xfe6739['drawWith'](_0xbd46d9,{'width':this[_0x5490e0(0x1df)],'height':this[_0x5490e0(0x140)],'strokeWidth':Gr,'stroke':this[_0x5490e0(0x111)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0xbd46d9[_0x5490e0(0x259)](),_0xbd46d9[_0x5490e0(0x16f)](0x1,0x0,0x0,0x1,this['width'],this[_0x5490e0(0x17c)]===_0x5490e0(0x416)?0x0:-Le),st[_0x5490e0(0x1dc)](_0xbd46d9,{'text':this[_0x5490e0(0x13a)],'color':this[_0x5490e0(0x111)]}),_0xbd46d9[_0x5490e0(0x1c8)]());}}var Kr=Object[_0x2cf6ff(0x2d3)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x1a04ee,_0x6f4914,_0x43113f,_0x651bd3)=>{const _0x28ee1c=_0x2cf6ff;for(var _0xc09b84=_0x651bd3>0x1?void 0x0:_0x651bd3?Xr(_0x6f4914,_0x43113f):_0x6f4914,_0x20561f=_0x1a04ee[_0x28ee1c(0x183)]-0x1,_0x18d346;_0x20561f>=0x0;_0x20561f--)(_0x18d346=_0x1a04ee[_0x20561f])&&(_0xc09b84=(_0x651bd3?_0x18d346(_0x6f4914,_0x43113f,_0xc09b84):_0x18d346(_0xc09b84))||_0xc09b84);return _0x651bd3&&_0xc09b84&&Kr(_0x6f4914,_0x43113f,_0xc09b84),_0xc09b84;},mt=(_0x253472,_0x4994bc)=>(_0x129f18,_0x46d99c)=>_0x4994bc(_0x129f18,_0x46d99c,_0x253472);const qr=0x1389;let wt=class extends _0x424705{constructor(_0x5ac4b9,_0x32ffdd,_0x2b6db8,_0x2c7707){const _0x169c85=_0x2cf6ff;super(),l(this,_0x169c85(0x42d),new Set()),l(this,_0x169c85(0x13d),null),(this['_context']=_0x5ac4b9,this[_0x169c85(0x297)]=_0x32ffdd,this[_0x169c85(0x3ed)]=_0x2b6db8,this[_0x169c85(0xdf)]=_0x2c7707,this[_0x169c85(0x2fb)]());}['_init'](){const _0x16e06e=_0x2cf6ff;this['_sheetSkeletonManagerService'][_0x16e06e(0xec)][_0x16e06e(0x379)](_0x1cc51a(this[_0x16e06e(0x267)]),_0xc1da79(_0x594e69=>{const _0x19db0c=_0x16e06e;if(_0x594e69){const _0x2c5467=_0x594e69[_0x19db0c(0x19b)];return _0xb1d5f6(this['_collabCursorController']['getCollabCursors$'](this[_0x19db0c(0x418)][_0x19db0c(0x290)]),this[_0x19db0c(0xdf)][_0x19db0c(0x3c8)])['pipe'](_0x4a2a85(([_0x50bd81,_0x21fa89])=>{const _0xc6211d=new Map();return _0x50bd81['forEach']((_0x3870e9,_0x56ec9e)=>{const _0xc1ed57=_0xd63a;if(_0x3870e9['sheetID']===_0x2c5467){const _0x239a08={..._0x3870e9};_0x239a08[_0xc1ed57(0x1a6)]=_0x21fa89[_0x3870e9[_0xc1ed57(0x1a6)]],_0xc6211d[_0xc1ed57(0x138)](_0x56ec9e,_0x239a08);}}),{'skeleton':_0x594e69,'cursors':_0xc6211d};}));}return _0x1a6ece({'skeleton':null,'cursors':new Map()});}))[_0x16e06e(0x360)](({skeleton:_0x47dbed,cursors:_0x1bff3b})=>{const _0x47eaa4=_0x16e06e;this[_0x47eaa4(0x239)](),_0x47dbed&&this[_0x47eaa4(0x33f)](_0x47dbed,_0x1bff3b);}),this[_0x16e06e(0x297)][_0x16e06e(0xec)][_0x16e06e(0x360)](_0x5663e9=>{const _0x5eb1a6=_0x16e06e;if(_0x5663e9==null)return;const {skeleton:_0x181964}=_0x5663e9,{scene:_0x399fe2}=this[_0x5eb1a6(0x418)];_0x399fe2[_0x5eb1a6(0x34b)]['subscribeEvent'](_0x25bd20(_0x129914=>{const _0xdc8329=_0x5eb1a6;var _0x1469f6,_0x100c25;const {offsetX:_0x2734f8,offsetY:_0x469079}=_0x129914,{x:_0x1c3c74,y:_0x33e545}=_0x399fe2[_0xdc8329(0x172)](_0x57ce41[_0xdc8329(0x265)]([_0x2734f8,_0x469079])),{scaleX:_0x18aee6,scaleY:_0x26e5e9}=_0x399fe2[_0xdc8329(0x430)](),_0x584589=_0x399fe2['getViewport'](_0x4d1621['VIEW_MAIN']),_0x2fa25a=_0x399fe2['getVpScrollXYInfoByPosToVp'](_0x57ce41[_0xdc8329(0x265)]([_0x1c3c74,_0x33e545]),_0x584589),_0x7e7616=_0x181964[_0xdc8329(0x12f)](_0x2734f8,_0x469079,_0x18aee6,_0x26e5e9,_0x2fa25a);((_0x1469f6=this['_lastPointer'])==null?void 0x0:_0x1469f6['column'])===_0x7e7616[_0xdc8329(0x2d0)]&&((_0x100c25=this['_lastPointer'])==null?void 0x0:_0x100c25[_0xdc8329(0x3f9)])===_0x7e7616['row']||this[_0xdc8329(0x42d)][_0xdc8329(0x198)](_0x3f38c7=>{const _0x2105b6=_0xdc8329;_0x3f38c7[_0x2105b6(0x28e)](_0x7e7616);});},0x64));});}[_0x2cf6ff(0x33f)](_0x23fa7c,_0x865a67){const _0x29b614=_0x2cf6ff;var _0x331816;const _0x4fd5be=(_0x331816=this[_0x29b614(0x297)][_0x29b614(0x14f)]())==null?void 0x0:_0x331816[_0x29b614(0x3b6)];if(!_0x4fd5be)return;const _0x5be713=this['_getSheetObject']();if(!_0x5be713)return;this[_0x29b614(0x42d)][_0x29b614(0x198)](_0x2ce3e0=>{_0x2ce3e0['makeDirty']();});const {scene:_0x3cac6a}=_0x5be713,_0x40e3eb=zr(Array[_0x29b614(0x14a)](_0x865a67[_0x29b614(0x205)]()))[_0x29b614(0x101)](_0x4607a8=>{const _0x36423d=_0x29b614,{color:_0x249c7d,range:_0x4b9a9d,name:_0x494f87,selection:_0x1d4702,sheetID:_0x2741bf}=_0x4607a8,{startColumn:_0x4a92ce,startRow:_0x719f2b,endColumn:_0x2734c1,endRow:_0x29f0a3}=_0x4b9a9d,_0x2a9f57=_0x26399(_0x719f2b,_0x4a92ce,_0x3cac6a,_0x4fd5be),_0x4c2003=_0x26399(_0x29f0a3,_0x2734c1,_0x3cac6a,_0x4fd5be),{columnHeaderHeightAndMarginTop:_0x1bac9b}=_0x4fd5be,{startX:_0x3ff0c9,startY:_0x7eaa71}=_0x2a9f57,{endX:_0x47b045,endY:_0x357db7}=_0x4c2003,_0x31849c=_0x47b045-_0x3ff0c9,_0x1dd104=_0x357db7-_0x7eaa71,_0x4f0213={'labelPosition':_0x7eaa71-_0x1bac9b>=Le?_0x36423d(0xff):_0x36423d(0x416),'sheetID':_0x2741bf,'range':_0x4b9a9d,'color':_0x249c7d,'name':_0x494f87,'selection':_0x1d4702,'left':_0x3ff0c9,'top':_0x7eaa71,'width':_0x31849c,'height':_0x1dd104,'evented':!0x1,'zIndex':qr};return new Yr(_0x494f87,_0x4f0213);});_0x3cac6a[_0x29b614(0x129)](_0x40e3eb,Wr),this['_cursors']=new Set(_0x40e3eb);}['_removeCollabCursors'](){const _0x618554=_0x2cf6ff;var _0x4a4209;(_0x4a4209=this[_0x618554(0x42d)])==null||_0x4a4209[_0x618554(0x198)](_0x3e6bd6=>_0x3e6bd6[_0x618554(0x275)]());}['_getSheetObject'](){const _0x8a5912=_0x2cf6ff;return _0x37206a(this[_0x8a5912(0x418)][_0x8a5912(0x400)],this[_0x8a5912(0x418)]);}};wt=Jr([mt(0x1,_0x11c4b2(_0x185e08)),mt(0x2,_0x11c4b2(pe)),mt(0x3,_0x11c4b2(_0x156127))],wt);function zr(_0x1a584e){const _0x198344=_0x2cf6ff,_0x47fc61=new Map();return _0x1a584e['forEach'](_0x315c6a=>{const _0x582130=_0xd63a;if(_0x47fc61[_0x582130(0x277)](_0x315c6a[_0x582130(0x142)])){const _0x38b8da=_0x47fc61['get'](_0x315c6a['selection']);_0x38b8da[_0x582130(0x3e6)]+=',\x20'+_0x315c6a[_0x582130(0x3e6)];}else _0x47fc61['set'](_0x315c6a[_0x582130(0x142)],_0x315c6a);}),Array[_0x198344(0x14a)](_0x47fc61[_0x198344(0x205)]());}var N=function(){const _0x4ca536=_0x2cf6ff;return N=Object[_0x4ca536(0x3ae)]||function(_0x56d51a){const _0x22d080=_0x4ca536;for(var _0x2411e0,_0x3aff7a=0x1,_0x116831=arguments[_0x22d080(0x183)];_0x3aff7a<_0x116831;_0x3aff7a++){_0x2411e0=arguments[_0x3aff7a];for(var _0xbc139a in _0x2411e0)Object[_0x22d080(0x392)][_0x22d080(0x238)][_0x22d080(0x440)](_0x2411e0,_0xbc139a)&&(_0x56d51a[_0xbc139a]=_0x2411e0[_0xbc139a]);}return _0x56d51a;},N['apply'](this,arguments);},Zr=function(_0x164ab3,_0x2d2f87){const _0x442869=_0x2cf6ff;var _0x396360={};for(var _0x1131a4 in _0x164ab3)Object[_0x442869(0x392)][_0x442869(0x238)][_0x442869(0x440)](_0x164ab3,_0x1131a4)&&_0x2d2f87[_0x442869(0x2c0)](_0x1131a4)<0x0&&(_0x396360[_0x1131a4]=_0x164ab3[_0x1131a4]);if(_0x164ab3!=null&&typeof Object['getOwnPropertySymbols']==_0x442869(0x15b)){for(var _0x1daeda=0x0,_0x1131a4=Object[_0x442869(0x419)](_0x164ab3);_0x1daeda<_0x1131a4['length'];_0x1daeda++)_0x2d2f87['indexOf'](_0x1131a4[_0x1daeda])<0x0&&Object['prototype'][_0x442869(0x3e5)]['call'](_0x164ab3,_0x1131a4[_0x1daeda])&&(_0x396360[_0x1131a4[_0x1daeda]]=_0x164ab3[_0x1131a4[_0x1daeda]]);}return _0x396360;},Wt=_0x2e9a8e(function(_0x52d508,_0x2484fe){const _0x14958d=_0x2cf6ff;var _0x526c64=_0x52d508[_0x14958d(0x109)],_0x5ea302=_0x52d508['id'],_0x3ca03a=_0x52d508['className'],_0x424fe4=_0x52d508[_0x14958d(0x3b9)],_0x514913=Zr(_0x52d508,[_0x14958d(0x109),'id',_0x14958d(0x24b),_0x14958d(0x3b9)]),_0x239a25=_0x14958d(0x216)['concat'](_0x5ea302,'\x20')[_0x14958d(0x1a4)](_0x3ca03a||'')[_0x14958d(0x390)](),_0x34152b=_0x56832d('_'[_0x14958d(0x1a4)](to()));return ks(_0x526c64,''['concat'](_0x5ea302),{'defIds':_0x526c64['defIds'],'idSuffix':_0x34152b[_0x14958d(0x281)]},N({'ref':_0x2484fe,'className':_0x239a25},_0x514913),_0x424fe4);});function ks(_0x31c5d1,_0x42aa3c,_0x2b2ff6,_0x64b7a,_0x50952f){const _0x56ca57=_0x2cf6ff;return _0x1c6405(_0x31c5d1[_0x56ca57(0x298)],N(N({'key':_0x42aa3c},Qr(_0x31c5d1,_0x2b2ff6,_0x50952f)),_0x64b7a),(eo(_0x31c5d1,_0x2b2ff6)[_0x56ca57(0x1ea)]||[])[_0x56ca57(0x101)](function(_0x3fd2f6,_0x40b6d6){const _0x39d38d=_0x56ca57;return ks(_0x3fd2f6,''['concat'](_0x42aa3c,'-')[_0x39d38d(0x1a4)](_0x31c5d1[_0x39d38d(0x298)],'-')[_0x39d38d(0x1a4)](_0x40b6d6),_0x2b2ff6,void 0x0,_0x50952f);}));}function _0xd63a(_0xb32b59,_0x300b70){const _0x38c541=_0x38c5();return _0xd63a=function(_0xd63a75,_0x22ac62){_0xd63a75=_0xd63a75-0xda;let _0x570776=_0x38c541[_0xd63a75];return _0x570776;},_0xd63a(_0xb32b59,_0x300b70);}function Qr(_0x2e11bc,_0x204b55,_0x443bfa){const _0x1c07fe=_0x2cf6ff;var _0x11da6f=N({},_0x2e11bc[_0x1c07fe(0x127)]);_0x443bfa!=null&&_0x443bfa['colorChannel1']&&_0x11da6f['fill']==='colorChannel1'&&(_0x11da6f[_0x1c07fe(0x25e)]=_0x443bfa[_0x1c07fe(0x3fe)]);var _0x45c711=_0x204b55['defIds'];return!_0x45c711||_0x45c711[_0x1c07fe(0x183)]===0x0||(_0x2e11bc[_0x1c07fe(0x298)]===_0x1c07fe(0x1d7)&&_0x11da6f[_0x1c07fe(0x181)]&&(_0x11da6f[_0x1c07fe(0x181)]=_0x11da6f[_0x1c07fe(0x181)]+_0x204b55[_0x1c07fe(0x227)]),Object[_0x1c07fe(0x177)](_0x11da6f)['forEach'](function(_0xc09f9f){const _0xa453e9=_0x1c07fe;var _0x5848f2=_0xc09f9f[0x0],_0x3a877d=_0xc09f9f[0x1];typeof _0x3a877d==_0xa453e9(0x324)&&(_0x11da6f[_0x5848f2]=_0x3a877d['replace'](/url\(#(.*)\)/,_0xa453e9(0x1b4)[_0xa453e9(0x1a4)](_0x204b55[_0xa453e9(0x227)],')')));})),_0x11da6f;}function eo(_0x511068,_0x58596e){const _0x5ce9a8=_0x2cf6ff;var _0x5df40a,_0x4fe719=_0x58596e[_0x5ce9a8(0x3f2)];return!_0x4fe719||_0x4fe719[_0x5ce9a8(0x183)]===0x0?_0x511068:_0x511068['tag']===_0x5ce9a8(0x3bf)&&(!((_0x5df40a=_0x511068[_0x5ce9a8(0x1ea)])===null||_0x5df40a===void 0x0)&&_0x5df40a[_0x5ce9a8(0x183)])?N(N({},_0x511068),{'children':_0x511068[_0x5ce9a8(0x1ea)][_0x5ce9a8(0x101)](function(_0x37ac62){const _0x3edb53=_0x5ce9a8;return typeof _0x37ac62['attrs']['id']=='string'&&_0x4fe719&&_0x4fe719[_0x3edb53(0x2c0)](_0x37ac62[_0x3edb53(0x127)]['id'])>-0x1?N(N({},_0x37ac62),{'attrs':N(N({},_0x37ac62[_0x3edb53(0x127)]),{'id':_0x37ac62['attrs']['id']+_0x58596e[_0x3edb53(0x227)]})}):_0x37ac62;})}):_0x511068;}function to(){const _0x5d6c12=_0x2cf6ff;return Math[_0x5d6c12(0x114)]()[_0x5d6c12(0x23b)](0x24)[_0x5d6c12(0x3f4)](0x2,0x8);}Wt['displayName']=_0x2cf6ff(0x121);var so={'tag':_0x2cf6ff(0xea),'attrs':{'fill':_0x2cf6ff(0x32a),'viewBox':_0x2cf6ff(0x271),'width':_0x2cf6ff(0x222),'height':_0x2cf6ff(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cf6ff(0x2a2)},'children':[{'tag':_0x2cf6ff(0x11f),'attrs':{'stroke':_0x2cf6ff(0x23f),'d':_0x2cf6ff(0x12e),'strokeLinecap':_0x2cf6ff(0x194),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2cf6ff(0x3bf),'attrs':{},'children':[{'tag':_0x2cf6ff(0x32d),'attrs':{'id':_0x2cf6ff(0xfd)},'children':[{'tag':'path','attrs':{'fill':_0x2cf6ff(0x3db),'d':_0x2cf6ff(0x1a2)}}]}]}],'defIds':[_0x2cf6ff(0xfd)]},Bs=_0x2e9a8e(function(_0x4256bd,_0x1ccf67){const _0x5d0337=_0x2cf6ff;return _0x1c6405(Wt,Object[_0x5d0337(0x3ae)]({},_0x4256bd,{'id':'off-line-single','ref':_0x1ccf67,'icon':so}));});Bs[_0x2cf6ff(0x422)]=_0x2cf6ff(0x341);var io={'tag':_0x2cf6ff(0xea),'attrs':{'fill':'none','viewBox':_0x2cf6ff(0x330),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2cf6ff(0x203)},'children':[{'tag':_0x2cf6ff(0x11f),'attrs':{'stroke':_0x2cf6ff(0x23f),'d':_0x2cf6ff(0x3a7),'strokeLinecap':_0x2cf6ff(0x194),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2cf6ff(0x32d),'attrs':{'id':_0x2cf6ff(0x27c)},'children':[{'tag':_0x2cf6ff(0x11f),'attrs':{'fill':_0x2cf6ff(0x3db),'d':_0x2cf6ff(0x1a2),'transform':_0x2cf6ff(0x19f)}}]}]}],'defIds':[_0x2cf6ff(0x27c)]},Vs=_0x2e9a8e(function(_0x2fb375,_0x1d9df2){return _0x1c6405(Wt,Object['assign']({},_0x2fb375,{'id':'on-line-single','ref':_0x1d9df2,'icon':io}));});Vs[_0x2cf6ff(0x422)]=_0x2cf6ff(0x361);function Fs(_0x5873d6){const _0x3afb20=_0x2cf6ff;var _0x4d3d62,_0x383248,_0x573ddb='';if(typeof _0x5873d6==_0x3afb20(0x324)||typeof _0x5873d6==_0x3afb20(0x1b8))_0x573ddb+=_0x5873d6;else{if(typeof _0x5873d6==_0x3afb20(0x435)){if(Array[_0x3afb20(0x1da)](_0x5873d6)){var _0x53285c=_0x5873d6[_0x3afb20(0x183)];for(_0x4d3d62=0x0;_0x4d3d62<_0x53285c;_0x4d3d62++)_0x5873d6[_0x4d3d62]&&(_0x383248=Fs(_0x5873d6[_0x4d3d62]))&&(_0x573ddb&&(_0x573ddb+='\x20'),_0x573ddb+=_0x383248);}else{for(_0x383248 in _0x5873d6)_0x5873d6[_0x383248]&&(_0x573ddb&&(_0x573ddb+='\x20'),_0x573ddb+=_0x383248);}}}return _0x573ddb;}function no(){const _0x24fc56=_0x2cf6ff;for(var _0x53d102,_0x14e2a2,_0x2317da=0x0,_0x4881b3='',_0x2b2263=arguments[_0x24fc56(0x183)];_0x2317da<_0x2b2263;_0x2317da++)(_0x53d102=arguments[_0x2317da])&&(_0x14e2a2=Fs(_0x53d102))&&(_0x4881b3&&(_0x4881b3+='\x20'),_0x4881b3+=_0x14e2a2);return _0x4881b3;}const ro='univer-online-status-icon',oo=_0x2cf6ff(0x394),ao='univer-online-status',co=_0x2cf6ff(0xe3),ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x209169){const _0x120c1d=_0x2cf6ff;switch(_0x209169){case w[_0x120c1d(0x26c)]:return _0x120c1d(0xdc);case w[_0x120c1d(0x10e)]:return _0x120c1d(0x40a);case w[_0x120c1d(0x22d)]:return _0x120c1d(0x44d);case w['NOT_COLLAB']:return _0x120c1d(0x431);case w[_0x120c1d(0x10f)]:case w[_0x120c1d(0x31a)]:case w[_0x120c1d(0x2ab)]:return _0x120c1d(0x282);case w[_0x120c1d(0x3b1)]:return _0x120c1d(0x14d);}}function _o(_0x542fdf){const _0x1d83ec=_0x2cf6ff,{status$:_0x1de835}=_0x542fdf,_0x32342e=_0x34de5b(_0x1de835,w['NOT_COLLAB']),_0x2d5051=_0x15d69a(_0x56c312),_0x5d58b8=_0x15d69a(ce),_0x1e8bce=_0x32342e!==w[_0x1d83ec(0x26c)],_0x5ad8fc=_0x2d5051['t'](lo(_0x32342e)),_0x167962=no(we[_0x1d83ec(0x11e)],{[we['online']]:_0x1e8bce,[we[_0x1d83ec(0x2ac)]]:!_0x1e8bce}),_0x44e9f3=_0x1e8bce?_0x3700dc[_0x1d83ec(0x25d)](Vs,null):_0x3700dc[_0x1d83ec(0x25d)](Bs,null),_0x57abac=_0x57b3b1(()=>{_0x1e8bce||_0x5d58b8['reconnect']();},[_0x1e8bce,_0x5d58b8]);function _0x5627cc(){const _0x204607=_0x1d83ec;return _0x3700dc[_0x204607(0x25d)](_0x204607(0x40e),{'className':_0x167962,'onClick':_0x57abac},_0x3700dc[_0x204607(0x25d)](_0x204607(0x40e),{'className':we['onlineStatusIcon']},_0x44e9f3),_0x3700dc[_0x204607(0x25d)](_0x204607(0x40e),{'className':we[_0x204607(0x352)]},_0x5ad8fc));}return _0x1e8bce?_0x5627cc():_0x3700dc['createElement'](_0x2b5e7f,{'title':_0x2d5051['t'](_0x1d83ec(0x123))},_0x5627cc());}var uo=Object[_0x2cf6ff(0x2d3)],fo=Object['getOwnPropertyDescriptor'],mo=(_0x22a4c4,_0x420f1f,_0x1623ff,_0x54692a)=>{const _0x798779=_0x2cf6ff;for(var _0x539bda=_0x54692a>0x1?void 0x0:_0x54692a?fo(_0x420f1f,_0x1623ff):_0x420f1f,_0x5d869a=_0x22a4c4[_0x798779(0x183)]-0x1,_0xda0e69;_0x5d869a>=0x0;_0x5d869a--)(_0xda0e69=_0x22a4c4[_0x5d869a])&&(_0x539bda=(_0x54692a?_0xda0e69(_0x420f1f,_0x1623ff,_0x539bda):_0xda0e69(_0x539bda))||_0x539bda);return _0x54692a&&_0x539bda&&uo(_0x420f1f,_0x1623ff,_0x539bda),_0x539bda;},He=(_0x3ca05c,_0x414c95)=>(_0x7dcd6e,_0x237344)=>_0x414c95(_0x7dcd6e,_0x237344,_0x3ca05c);let Ue=class extends _0x28d30b{constructor(_0x1b585e,_0x3eed65,_0x7c3690,_0x57ce7e){const _0x543bf7=_0x2cf6ff;super(),l(this,_0x543bf7(0x1e4),new _0xa8903e(w['NOT_COLLAB'])),(this['_univerInstanceService']=_0x1b585e,this[_0x543bf7(0x3c3)]=_0x3eed65,this[_0x543bf7(0x249)]=_0x7c3690,this[_0x543bf7(0x1a9)]=_0x57ce7e,this[_0x543bf7(0x31c)](),this[_0x543bf7(0x155)]());}[_0x2cf6ff(0x155)](){const _0x3cb6fe=_0x2cf6ff;this[_0x3cb6fe(0x2cd)](this[_0x3cb6fe(0xe4)][_0x3cb6fe(0x231)][_0x3cb6fe(0x379)](_0x42baee(()=>{const _0x4b96fa=_0x3cb6fe,_0x2fbd71=this[_0x4b96fa(0xe4)]['getFocusedUnit']();return _0x2fbd71?this[_0x4b96fa(0x1a9)]['getCollabEntity$'](_0x2fbd71[_0x4b96fa(0x3d4)]()):_0x1a6ece(null);}),_0x42baee(_0x1ed161=>_0x1ed161?_0x1ed161[_0x3cb6fe(0x212)]:_0x1a6ece(w[_0x3cb6fe(0x12b)])))[_0x3cb6fe(0x360)](_0x1e3cee=>{const _0x667d1b=_0x3cb6fe;this['_status$'][_0x667d1b(0x2ad)](_0x1e3cee);}));}['_initStatusComponent'](){const _0x5e9f02=_0x2cf6ff;this['disposeWithMe'](this[_0x5e9f02(0x3c3)][_0x5e9f02(0x3fa)](_0x2617bd['HEADER_MENU'],()=>_0x1be696(go({'status$':this[_0x5e9f02(0x1e4)][_0x5e9f02(0x16e)]()}),this['_injector'])));}};Ue=mo([He(0x0,_0x3a69fb),He(0x1,_0x2082c6),He(0x2,_0x11c4b2(_0x3ca714)),He(0x3,_0x11c4b2(Ae))],Ue);function go(_0x4a4a0f){const {status$:_0x24c4bc}=_0x4a4a0f;return function(){const _0x452949=_0xd63a;return _0x3700dc[_0x452949(0x25d)](_o,{'status$':_0x24c4bc});};}const Ws=_0x131476(_0x2cf6ff(0x2a0));var So=Object[_0x2cf6ff(0x2d3)],po=Object[_0x2cf6ff(0x289)],vo=(_0x38f8b4,_0x18a8b5,_0x25b6a6,_0xfb3e5)=>{for(var _0x185496=_0xfb3e5>0x1?void 0x0:_0xfb3e5?po(_0x18a8b5,_0x25b6a6):_0x18a8b5,_0x22d30e=_0x38f8b4['length']-0x1,_0x170832;_0x22d30e>=0x0;_0x22d30e--)(_0x170832=_0x38f8b4[_0x22d30e])&&(_0x185496=(_0xfb3e5?_0x170832(_0x18a8b5,_0x25b6a6,_0x185496):_0x170832(_0x185496))||_0x185496);return _0xfb3e5&&_0x185496&&So(_0x18a8b5,_0x25b6a6,_0x185496),_0x185496;},me=(_0x2c5ab2,_0x8e937)=>(_0x128134,_0x533ceb)=>_0x8e937(_0x128134,_0x533ceb,_0x2c5ab2);let qe=class extends _0x424705{constructor(_0xf3388e,_0x52c522,_0x4f478e,_0x4d3538,_0x11ba2b,_0x57f8bf){const _0x45d252=_0x2cf6ff;super(),this[_0x45d252(0x2b9)]=_0xf3388e,this[_0x45d252(0x2f8)]=_0x52c522,this['_commandService']=_0x4f478e,this['_localCacheService']=_0x4d3538,this[_0x45d252(0x2dd)]=_0x11ba2b,_0x57f8bf?_0x57f8bf==null||_0x57f8bf[_0x45d252(0x270)]()[_0x45d252(0x1ed)](()=>this[_0x45d252(0x2fb)]()):(this[_0x45d252(0x2f8)]['debug'](_0x45d252(0x35c),_0x45d252(0x366)),this[_0x45d252(0x2fb)]());}async[_0x2cf6ff(0x2fb)](){const _0x2e298d=_0x2cf6ff,_0x3ae178=this[_0x2e298d(0x2b9)][_0x2e298d(0x226)](_0x2e298d(0x400)),_0x410b2c=this[_0x2e298d(0x2b9)][_0x2e298d(0x226)](_0x2e298d(0x41e));if(!_0x3ae178||!_0x410b2c){this[_0x2e298d(0x2f8)][_0x2e298d(0x2b7)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x410b2c)){case H[_0x2e298d(0x43d)]:{const _0x1f6599=await this[_0x2e298d(0x107)](_0x3ae178);this[_0x2e298d(0x432)](_0x1f6599);break;}case H['UNIVER_DOC']:{await this[_0x2e298d(0x30d)](_0x3ae178);break;}default:{this[_0x2e298d(0x2f8)][_0x2e298d(0x36e)](_0x2e298d(0x35c),_0x2e298d(0x35b));break;}}}async[_0x2cf6ff(0x432)](_0x1a4521){const _0x2c226f=_0x2cf6ff;await this[_0x2c226f(0x3bb)](_0x1a4521),_0x1a4521[_0x2c226f(0x384)][_0x2c226f(0x379)](_0x5f0229(this['dispose$']))['subscribe'](_0x213752=>{_0x213752&&this['_updateURLWithCurrentState'](_0x213752);}),this[_0x2c226f(0x2b9)][_0x2c226f(0x2a3)][_0x2c226f(0x379)](_0x5f0229(this[_0x2c226f(0x267)]))[_0x2c226f(0x360)](()=>this[_0x2c226f(0x3bb)](_0x1a4521));}[_0x2cf6ff(0x21b)](_0x4dddc7,_0x180ef=!0x1){const _0x57bb8c=_0x2cf6ff,_0x230bb3=this[_0x57bb8c(0x2b9)]['getParam'](_0x57bb8c(0x150));_0x4dddc7['getSheetId']()!==_0x230bb3&&this[_0x57bb8c(0x2b9)][_0x57bb8c(0x272)](_0x57bb8c(0x150),_0x4dddc7[_0x57bb8c(0xe6)](),_0x180ef);}async[_0x2cf6ff(0x3bb)](_0x14d769){const _0x22f06a=_0x2cf6ff;var _0x107a8f;const _0x1a83fa=this['_urlService']['getParam'](_0x22f06a(0x150));if(!_0x1a83fa||!_0x14d769[_0x22f06a(0x1e7)](_0x1a83fa)){const _0x423d34=_0x14d769[_0x22f06a(0x245)]()[0x0],_0x350e49=_0x14d769[_0x22f06a(0x1e7)](_0x423d34);if(!_0x350e49)return;this[_0x22f06a(0x21b)](_0x350e49,!0x0),await this[_0x22f06a(0x34a)][_0x22f06a(0x3aa)](_0x1a6f76['id'],{'unitId':_0x14d769[_0x22f06a(0x3d4)](),'subUnitId':_0x423d34});return;}((_0x107a8f=_0x14d769[_0x22f06a(0x3be)]())==null?void 0x0:_0x107a8f[_0x22f06a(0xe6)]())!==_0x1a83fa&&await this[_0x22f06a(0x34a)][_0x22f06a(0x3aa)](_0x1a6f76['id'],{'unitId':_0x14d769['getUnitId'](),'subUnitId':_0x1a83fa});}async[_0x2cf6ff(0x107)](_0x11af7d){const _0x2e4fa1=_0x2cf6ff;let _0x477f75=0x0;const _0xb9ad47=await this['_localCacheService'][_0x2e4fa1(0x1b1)](_0x11af7d);return _0xb9ad47&&(_0xb9ad47[_0x2e4fa1(0x322)]||_0xb9ad47[_0x2e4fa1(0x40d)][_0x2e4fa1(0x183)]!==0x0)&&(_0x477f75=_0xb9ad47[_0x2e4fa1(0x192)]),_0x477f75===0x0&&this[_0x2e4fa1(0x2f8)]['debug'](_0x2e4fa1(0x35c),_0x2e4fa1(0xe7)),this[_0x2e4fa1(0x2dd)][_0x2e4fa1(0x1f9)](_0x11af7d,_0x477f75);}async[_0x2cf6ff(0x30d)](_0x4990a6){const _0x4ac8a8=_0x2cf6ff;let _0x507e04=0x0;const _0x46c3ec=await this[_0x4ac8a8(0x3dd)]['loadOfflineData'](_0x4990a6);return _0x46c3ec&&(_0x46c3ec['awaitingChangeset']||_0x46c3ec[_0x4ac8a8(0x40d)][_0x4ac8a8(0x183)]!==0x0)&&(_0x507e04=_0x46c3ec[_0x4ac8a8(0x192)]),_0x507e04===0x0&&this[_0x4ac8a8(0x2f8)]['debug'](_0x4ac8a8(0x35c),_0x4ac8a8(0xe7)),this['_snapshotService'][_0x4ac8a8(0x335)](_0x4990a6,_0x507e04);}};qe=vo([me(0x0,Ws),me(0x1,_0x58af89),me(0x2,_0x339bfb),me(0x3,_0x11c4b2(D)),me(0x4,_0x11c4b2(_0x3330fb)),me(0x5,_0x32a7fe(_0x157237))],qe);var Io=Object[_0x2cf6ff(0x2d3)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x87df21,_0x16d0d4,_0x19ade1,_0x3b84ef)=>{const _0x2fad74=_0x2cf6ff;for(var _0x302acc=_0x3b84ef>0x1?void 0x0:_0x3b84ef?Eo(_0x16d0d4,_0x19ade1):_0x16d0d4,_0x408ddd=_0x87df21[_0x2fad74(0x183)]-0x1,_0x16c511;_0x408ddd>=0x0;_0x408ddd--)(_0x16c511=_0x87df21[_0x408ddd])&&(_0x302acc=(_0x3b84ef?_0x16c511(_0x16d0d4,_0x19ade1,_0x302acc):_0x16c511(_0x302acc))||_0x302acc);return _0x3b84ef&&_0x302acc&&Io(_0x16d0d4,_0x19ade1,_0x302acc),_0x302acc;},fs=(_0x1fe74b,_0x59b4ea)=>(_0x30382a,_0x1ad1b4)=>_0x59b4ea(_0x30382a,_0x1ad1b4,_0x1fe74b);const bo=_0x2cf6ff(0x1e8),To='Univer';let ze=class extends _0x28d30b{constructor(_0x400bc8,_0x538823){const _0x32891c=_0x2cf6ff;super(),this[_0x32891c(0xe4)]=_0x400bc8,this['_configService']=_0x538823,this['_init']();}[_0x2cf6ff(0x2fb)](){const _0x10781e=_0x2cf6ff;this[_0x10781e(0x2cd)](this[_0x10781e(0xe4)][_0x10781e(0x231)][_0x10781e(0x360)](()=>{const _0x5eacbd=_0x10781e;var _0x3889f8;const _0x2a6449=this[_0x5eacbd(0xe4)][_0x5eacbd(0x23d)]();let _0x36edda=(_0x3889f8=this[_0x5eacbd(0x17b)][_0x5eacbd(0x30f)](bo))!=null?_0x3889f8:To;_0x2a6449 instanceof _0x18ae05&&(_0x36edda=_0x2a6449[_0x5eacbd(0x3e6)]),document[_0x5eacbd(0x2f0)]=_0x36edda;}));}};ze=Co([fs(0x0,_0x3a69fb),fs(0x1,_0x5d22a5)],ze);var Ro=Object['defineProperty'],Oo=Object[_0x2cf6ff(0x289)],Do=(_0x11d0c6,_0x22795c,_0x690e13,_0x2507ec)=>{const _0x2b1696=_0x2cf6ff;for(var _0x5ffd93=_0x2507ec>0x1?void 0x0:_0x2507ec?Oo(_0x22795c,_0x690e13):_0x22795c,_0x30bffb=_0x11d0c6[_0x2b1696(0x183)]-0x1,_0x28b30c;_0x30bffb>=0x0;_0x30bffb--)(_0x28b30c=_0x11d0c6[_0x30bffb])&&(_0x5ffd93=(_0x2507ec?_0x28b30c(_0x22795c,_0x690e13,_0x5ffd93):_0x28b30c(_0x5ffd93))||_0x5ffd93);return _0x2507ec&&_0x5ffd93&&Ro(_0x22795c,_0x690e13,_0x5ffd93),_0x5ffd93;},gt=(_0x297c39,_0x13cade)=>(_0x4061c3,_0x4a5a8b)=>_0x13cade(_0x4061c3,_0x4a5a8b,_0x297c39);let Ze=class{constructor(_0x2edd25,_0x1e788a,_0x33eed5){const _0x3aecee=_0x2cf6ff;this[_0x3aecee(0x17b)]=_0x2edd25,this[_0x3aecee(0x20c)]=_0x1e788a,this[_0x3aecee(0x3a0)]=_0x33eed5,this[_0x3aecee(0x193)]();}[_0x2cf6ff(0x193)](){const _0x2002d0=_0x2cf6ff;this[_0x2002d0(0x20c)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x10c36f,_0x5d6797)=>_0x5d6797(_0x10c36f)[_0x2002d0(0x379)](_0x20f242(async _0x16dfa1=>{const _0x2c381e=_0x2002d0,_0x32b86a=_0x16dfa1;if(_0x32b86a[_0x2c381e(0x10a)]===0x191&&window[_0x2c381e(0x371)](this[_0x2c381e(0x3a0)]['t'](_0x2c381e(0x44c)))){const _0xcc2e11=window[_0x2c381e(0x209)](window[_0x2c381e(0x421)][_0x2c381e(0x1a5)]);window[_0x2c381e(0x421)]['href']=this[_0x2c381e(0x235)]()+'?url='+_0xcc2e11;}return _0x32b86a;}))});}[_0x2cf6ff(0x235)](){const _0x91b170=_0x2cf6ff;var _0x29b45f,_0x47d953;const _0x1ce00b=this['_configService'][_0x91b170(0x30f)](wn),_0x45b4d7=this[_0x91b170(0x17b)][_0x91b170(0x30f)](L);return(_0x47d953=(_0x29b45f=_0x45b4d7==null?void 0x0:_0x45b4d7[_0x91b170(0x3e2)])!=null?_0x29b45f:_0x1ce00b)!=null?_0x47d953:Pn;}};Ze=Do([gt(0x0,_0x5d22a5),gt(0x1,_0x11c4b2(_0xc66412)),gt(0x2,_0x11c4b2(_0x56c312))],Ze);var wo=Object[_0x2cf6ff(0x2d3)],Po=Object[_0x2cf6ff(0x289)],yo=(_0x3d30ae,_0x5e459a,_0x41a7c9,_0x4f16bb)=>{for(var _0x3c1aab=_0x4f16bb>0x1?void 0x0:_0x4f16bb?Po(_0x5e459a,_0x41a7c9):_0x5e459a,_0x44598b=_0x3d30ae['length']-0x1,_0xe14146;_0x44598b>=0x0;_0x44598b--)(_0xe14146=_0x3d30ae[_0x44598b])&&(_0x3c1aab=(_0x4f16bb?_0xe14146(_0x5e459a,_0x41a7c9,_0x3c1aab):_0xe14146(_0x3c1aab))||_0x3c1aab);return _0x4f16bb&&_0x3c1aab&&wo(_0x5e459a,_0x41a7c9,_0x3c1aab),_0x3c1aab;},ms=(_0x4c16ce,_0x262e1b)=>(_0xe3a2d1,_0x1c3623)=>_0x262e1b(_0xe3a2d1,_0x1c3623,_0x4c16ce);const No=_0x2cf6ff(0x24d),Uo=_0x2cf6ff(0x246);let Pt=class extends _0x28d30b{constructor(_0x9d4b60,_0x1e975f){const _0x21cd25=_0x2cf6ff;super(),this['_HTTPService']=_0x9d4b60,this[_0x21cd25(0x17b)]=_0x1e975f,this[_0x21cd25(0x1e6)]();}[_0x2cf6ff(0x1e6)](){const _0x4437dd=_0x2cf6ff,_0x4d05a7=this;this[_0x4437dd(0x2cd)](this[_0x4437dd(0x3c6)][_0x4437dd(0x3c5)]({'priority':0x3e7,'interceptor':_0x273707({'isMatch'(_0x25df96){const _0x1017fe=_0x4437dd;var _0xd28f1f;if(_0x25df96['method']===_0x1017fe(0x201)&&((_0xd28f1f=_0x25df96[_0x1017fe(0x1f0)])!=null&&_0xd28f1f['body'])){const {objectID:_0x5445e9,objectType:_0x4f4eb5}=_0x25df96['requestParams']['body']||{};if(!_0x5445e9||_0x4f4eb5===void 0x0)return!0x1;const _0x3a8cbb=_0x4d05a7['_getAPIPrefixPath']()+'/'+_0x4f4eb5+_0x1017fe(0x237)+_0x5445e9+_0x1017fe(0x3f8);if(_0x25df96[_0x1017fe(0x1e5)]===_0x3a8cbb)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2d3343){const _0x22111b=_0x4437dd;var _0xf40633;return(_0xf40633=_0x2d3343[_0x22111b(0x1f0)])==null?void 0x0:_0xf40633[_0x22111b(0x2d1)];},'mergeParamsToRequest'(_0x12d903,_0x2582ed){const _0x4891c0=_0x4437dd,_0x44751c=_0x4d05a7['_getAPIPrefixPath']()+_0x4891c0(0x34d),_0x1bfd74=_0x12d903[_0x4891c0(0x312)]((_0x543323,_0xc39378)=>{const _0x576d1f=_0x4891c0,{unitID:_0x1479d7,objectID:_0x1dc181,objectType:_0x10316b,actions:_0x9af3cd}=_0xc39378;return _0x543323[_0x1479d7]||(_0x543323[_0x1479d7]={}),_0x543323[_0x1479d7][_0x1dc181]||(_0x543323[_0x1479d7][_0x1dc181]={'objectID':_0x1dc181,'objectType':_0x10316b,'actions':[]}),_0x543323[_0x1479d7][_0x1dc181][_0x576d1f(0x215)][_0x576d1f(0x16c)](..._0x9af3cd),_0x543323;},{}),_0x26dd81=[];for(const _0x1c3da2 in _0x1bfd74)for(const _0x4f6643 in _0x1bfd74[_0x1c3da2]){const {actions:_0xf6a4b2,objectType:_0x4102f5}=_0x1bfd74[_0x1c3da2][_0x4f6643],_0x4c01c4=[...new Set(_0xf6a4b2)];_0x26dd81[_0x4891c0(0x16c)]({'unitID':_0x1c3da2,'objectID':_0x4f6643,'objectType':_0x4102f5,'actions':_0x4c01c4});}return new _0x2fdb11('POST',_0x44751c,{'headers':_0x2582ed[_0x4891c0(0x3df)],'withCredentials':_0x2582ed[_0x4891c0(0x389)],'responseType':_0x2582ed[_0x4891c0(0x3ca)],'body':{'requests':_0x26dd81}});}},{'distributeResult'(_0x3fcf41,_0x6a1dfe){const _0x15ee31=_0x4437dd,{objectActions:_0x3e0518}=_0x3fcf41;return _0x6a1dfe[_0x15ee31(0x101)](_0x1582dc=>{const _0x4b19bf=_0x15ee31,{unitID:_0x28cdba,objectID:_0x1ffe1d,actions:_0x38f780}=_0x1582dc,_0xb079cb=_0x3e0518[_0x4b19bf(0x1fd)](_0x46d291=>_0x46d291[_0x4b19bf(0x357)]===_0x28cdba&&_0x46d291[_0x4b19bf(0x253)]===_0x1ffe1d),_0x414b6b=_0x38f780[_0x4b19bf(0x101)](_0x4be596=>_0xb079cb==null?void 0x0:_0xb079cb[_0x4b19bf(0x215)][_0x4b19bf(0x1fd)](_0x5cb252=>_0x5cb252['action']===_0x4be596))[_0x4b19bf(0x33c)](_0x4417cc=>!!_0x4417cc);return{'config':_0x1582dc,'result':{'actions':_0x414b6b,'error':_0x3fcf41[_0x4b19bf(0x36e)]}};});}})}));}[_0x2cf6ff(0xf0)](){const _0x551daa=_0x2cf6ff;var _0xf991e9,_0x448165;const _0x44fbe8=this['_configService'][_0x551daa(0x30f)](No),_0x290f6f=this[_0x551daa(0x17b)][_0x551daa(0x30f)](L);return(_0x448165=(_0xf991e9=_0x290f6f==null?void 0x0:_0x290f6f[_0x551daa(0x3ff)])!=null?_0xf991e9:_0x44fbe8)!=null?_0x448165:Uo;}async[_0x2cf6ff(0x2dc)](_0x224a75){const _0x312dac=_0x2cf6ff,_0x147fbf=this[_0x312dac(0xf0)]()+'/'+_0x224a75[_0x312dac(0x3f7)]+_0x312dac(0x30a);return(await this['_HTTPService']['post'](_0x147fbf,{'body':_0x224a75}))['body']['objectID']||'';}async['list'](_0x249abd){const _0x4755e8=_0x2cf6ff,_0x1248dd=this[_0x4755e8(0xf0)]()+_0x4755e8(0x3fb);return(await this[_0x4755e8(0x3c6)][_0x4755e8(0x236)](_0x1248dd,{'body':_0x249abd}))[_0x4755e8(0x2d1)][_0x4755e8(0x157)];}async[_0x2cf6ff(0x439)](_0x3178cd){const _0x76fc26=_0x2cf6ff,_0x26653=this[_0x76fc26(0xf0)]()+'/'+_0x3178cd['objectType']+_0x76fc26(0x237)+_0x3178cd[_0x76fc26(0x253)];await this[_0x76fc26(0x3c6)][_0x76fc26(0x18a)](_0x26653,{'body':_0x3178cd});}async['allowed'](_0x261336){const _0x1b4736=_0x2cf6ff,_0x202745=this['_getAPIPrefixPath']()+'/'+_0x261336[_0x1b4736(0x3f7)]+_0x1b4736(0x237)+_0x261336[_0x1b4736(0x253)]+_0x1b4736(0x3f8);return(await this[_0x1b4736(0x3c6)][_0x1b4736(0x236)](_0x202745,{'body':_0x261336}))['body'][_0x1b4736(0x215)];}async[_0x2cf6ff(0x424)](_0x282ba7){const _0x187084=_0x2cf6ff,_0x4d5189=this['_getAPIPrefixPath']()+_0x187084(0x34d);return(await this[_0x187084(0x3c6)][_0x187084(0x236)](_0x4d5189,{'body':{'requests':_0x282ba7}}))[_0x187084(0x2d1)]['objectActions'];}async[_0x2cf6ff(0x1ba)](_0x11b876){const _0x4339f4=_0x2cf6ff,_0x190a73=this[_0x4339f4(0xf0)]()+'/'+_0x11b876['objectType']+_0x4339f4(0x158),_0x149d3c=await this['_HTTPService']['post'](_0x190a73,{'body':_0x11b876});return{'roles':_0x149d3c[_0x4339f4(0x2d1)][_0x4339f4(0x120)],'actions':_0x149d3c[_0x4339f4(0x2d1)]['actions']};}async['deleteCollaborator'](_0x569220){const _0x51e6a1=_0x2cf6ff,_0x256980=this[_0x51e6a1(0xf0)]()+_0x51e6a1(0x2c4);await this[_0x51e6a1(0x3c6)][_0x51e6a1(0x152)](_0x256980,{'params':{'collaboratorID':_0x569220[_0x51e6a1(0x102)],'objectID':_0x569220[_0x51e6a1(0x253)],'unitID':_0x569220['unitID']}});}async[_0x2cf6ff(0x1f8)](_0x40a5eb){const _0x396ca9=_0x2cf6ff,_0x1ed61d=this[_0x396ca9(0xf0)]()+'/collaborator';await this[_0x396ca9(0x3c6)][_0x396ca9(0x1cf)](_0x1ed61d,{'body':_0x40a5eb});}async['createCollaborator'](_0x42d73b){const _0x359b67=_0x2cf6ff,_0x462149=this[_0x359b67(0xf0)]()+_0x359b67(0x2c4);await this[_0x359b67(0x3c6)][_0x359b67(0x236)](_0x462149,{'body':_0x42d73b});}async[_0x2cf6ff(0x15a)](_0x1c6edb){const _0x2ca74c=_0x2cf6ff,_0xadf2d=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x2ca74c(0x3c6)][_0x2ca74c(0x19c)](_0xadf2d,{'params':{'objectID':_0x1c6edb[_0x2ca74c(0x253)],'unitID':_0x1c6edb['unitID']}}))[_0x2ca74c(0x2d1)][_0x2ca74c(0x453)];}async[_0x2cf6ff(0xf8)](_0x586929){const _0x3c57f2=_0x2cf6ff,_0x2bb4cf=this[_0x3c57f2(0xf0)]()+_0x3c57f2(0x2c4);await this[_0x3c57f2(0x3c6)]['put'](_0x2bb4cf,{'body':_0x586929});}};Pt=yo([ms(0x0,_0x11c4b2(_0xc66412)),ms(0x1,_0x11c4b2(_0x5d22a5))],Pt);var Mo=Object[_0x2cf6ff(0x2d3)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0x8feec,_0x4d45f0,_0x423478,_0x1d8bfd)=>{const _0x1e9565=_0x2cf6ff;for(var _0x2520e2=_0x1d8bfd>0x1?void 0x0:_0x1d8bfd?Ao(_0x4d45f0,_0x423478):_0x4d45f0,_0x912503=_0x8feec[_0x1e9565(0x183)]-0x1,_0x4773cd;_0x912503>=0x0;_0x912503--)(_0x4773cd=_0x8feec[_0x912503])&&(_0x2520e2=(_0x1d8bfd?_0x4773cd(_0x4d45f0,_0x423478,_0x2520e2):_0x4773cd(_0x2520e2))||_0x2520e2);return _0x1d8bfd&&_0x2520e2&&Mo(_0x4d45f0,_0x423478,_0x2520e2),_0x2520e2;},$o=(_0x566d21,_0x1a015f)=>(_0x297ecb,_0x488457)=>_0x1a015f(_0x297ecb,_0x488457,_0x566d21);let Qe=class{constructor(_0x3067e8){const _0x4f95e9=_0x2cf6ff;this[_0x4f95e9(0x20c)]=_0x3067e8,this[_0x4f95e9(0xed)]();}['_initRequestHeader'](){const _0x34f9e1=_0x2cf6ff;this[_0x34f9e1(0x20c)][_0x34f9e1(0x3c5)]({'interceptor':(_0x4e11c7,_0x4e707b)=>{const _0x516f09=_0x34f9e1,_0x59d078=_0x4e11c7[_0x516f09(0x3df)],_0x241658=_0x40e740();return _0x241658&&_0x59d078[_0x516f09(0x138)](_0x516f09(0x1d8),_0x241658),_0x4e707b(_0x4e11c7);}});}};Qe=Lo([$o(0x0,_0x11c4b2(_0xc66412))],Qe);var jo=Object[_0x2cf6ff(0x2d3)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x155d7b,_0x565081,_0x5f109e,_0x1e0ae5)=>{const _0x27fbd9=_0x2cf6ff;for(var _0x32d0bc=_0x1e0ae5>0x1?void 0x0:_0x1e0ae5?xo(_0x565081,_0x5f109e):_0x565081,_0x1d5657=_0x155d7b[_0x27fbd9(0x183)]-0x1,_0x57dae6;_0x1d5657>=0x0;_0x1d5657--)(_0x57dae6=_0x155d7b[_0x1d5657])&&(_0x32d0bc=(_0x1e0ae5?_0x57dae6(_0x565081,_0x5f109e,_0x32d0bc):_0x57dae6(_0x32d0bc))||_0x32d0bc);return _0x1e0ae5&&_0x32d0bc&&jo(_0x565081,_0x5f109e,_0x32d0bc),_0x32d0bc;},St=(_0x3ac641,_0x5a4c41)=>(_0x2e71b6,_0x525c4c)=>_0x5a4c41(_0x2e71b6,_0x525c4c,_0x3ac641);const ko=[_0x2cf6ff(0x445),_0x2cf6ff(0x24a),_0x2cf6ff(0x380),'image/gif',_0x2cf6ff(0x42a)],Bo=0x5*0x400*0x400,Vo=_0x2cf6ff(0x318),Fo='/universer-api/stream/file/upload',Wo=_0x2cf6ff(0x256),Go=_0x2cf6ff(0x1dd);let yt=class{constructor(_0x39cd11,_0x749a3,_0x42701e){const _0xe9ffe7=_0x2cf6ff;l(this,'_waitCount',0x0),l(this,_0xe9ffe7(0x28f),new _0x5ebd47()),l(this,'change$',this[_0xe9ffe7(0x28f)]),l(this,_0xe9ffe7(0x320),new Map()),(this[_0xe9ffe7(0x20c)]=_0x39cd11,this[_0xe9ffe7(0x17b)]=_0x749a3,this[_0xe9ffe7(0xe4)]=_0x42701e);}['setWaitCount'](_0x3a336d){const _0x360113=_0x2cf6ff;this[_0x360113(0x11c)]=_0x3a336d,this[_0x360113(0x28f)][_0x360113(0x2ad)](_0x3a336d);}[_0x2cf6ff(0x321)](_0x3c8f49,_0x59eb9a){const _0x271886=_0x2cf6ff;if(_0x59eb9a===_0x48f90c['BASE64']){const _0x1fc7f0=new Image();return _0x1fc7f0['src']=_0x3c8f49,_0x1fc7f0;}return this['_imageSourceCache'][_0x271886(0x19c)](_0x3c8f49);}['addImageSourceCache'](_0x3a8096,_0x515010,_0x560336){const _0x218155=_0x2cf6ff;_0x515010===_0x48f90c[_0x218155(0x3b2)]||_0x560336==null||this[_0x218155(0x320)]['set'](_0x3a8096,_0x560336);}async[_0x2cf6ff(0x311)](_0x392dbe){const _0x3ed220=_0x2cf6ff;try{const _0x39e7c3=this[_0x3ed220(0x2fc)](this['_getSignURL'](),''+_0x392dbe),_0x128f5c=(await this['_httpService'][_0x3ed220(0x19c)](_0x39e7c3))[_0x3ed220(0x2d1)];if(_0x128f5c[_0x3ed220(0x36e)]&&_0x128f5c[_0x3ed220(0x36e)][_0x3ed220(0x342)]===Ms['OK']){const _0x5ca567=new URL(_0x128f5c[_0x3ed220(0x1e5)],this[_0x3ed220(0x1c3)]())['toString']();return Promise['resolve'](_0x5ca567);}return Promise['reject'](_0x128f5c[_0x3ed220(0x36e)]);}catch(_0x3c5233){return Promise['reject'](_0x3c5233);}}async['saveImage'](_0x1e2e53){const _0x398aca=_0x2cf6ff;let _0x382892='';if(!ko[_0x398aca(0x273)](_0x1e2e53[_0x398aca(0x41e)]))return this['_decreaseWaiting'](),Promise[_0x398aca(0x34e)](new Error(_0x139819['ERROR_IMAGE_TYPE']));if(_0x1e2e53[_0x398aca(0x387)]>Bo)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x139819[_0x398aca(0x117)]));try{const _0x3ceb99=new FormData();_0x3ceb99['append']('file',_0x1e2e53);const _0x16a1ab=this[_0x398aca(0xe4)][_0x398aca(0x23d)](),_0x1ebd42=_0x16a1ab==null?void 0x0:_0x16a1ab[_0x398aca(0x3d4)]();if(!_0x1ebd42)throw new Error('unitId\x20is\x20not\x20found');const _0x4b0557=this[_0x398aca(0x2e2)]()+_0x398aca(0xfb)+_0x1e2e53[_0x398aca(0x387)][_0x398aca(0x23b)]()+_0x398aca(0x313)+As[_0x398aca(0x211)]+'&assign='+encodeURIComponent(_0x1ebd42),_0x1d7a30=await(await fetch(_0x4b0557,{'method':_0x398aca(0x201),'body':_0x3ceb99}))[_0x398aca(0x3b8)]();if(typeof _0x1d7a30[_0x398aca(0x1c0)]!=_0x398aca(0x324))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x139819[_0x398aca(0x23c)]));_0x382892=_0x1d7a30[_0x398aca(0x1c0)];}catch{return this[_0x398aca(0x151)](),Promise['reject'](new Error(_0x139819['ERROR_IMAGE']));}return new Promise((_0x5ce8c7,_0x16d08e)=>{const _0x2f5e4b=_0x398aca,_0x55e3ca=new FileReader();_0x55e3ca['readAsDataURL'](_0x1e2e53),_0x55e3ca[_0x2f5e4b(0x21e)]=_0x39f570=>{const _0x204b14=_0x2f5e4b;var _0xe74dd8;const _0x5901a7=(_0xe74dd8=_0x39f570[_0x204b14(0x196)])==null?void 0x0:_0xe74dd8[_0x204b14(0x167)];if(_0x5901a7==null){this[_0x204b14(0x151)](),_0x16d08e(new Error(_0x139819['ERROR_IMAGE']));return;}const _0x26a546=_0x3d523e[_0x204b14(0x434)](0x6);_0x5ce8c7({'imageId':_0x26a546,'imageSourceType':_0x48f90c[_0x204b14(0x2bf)],'source':_0x382892,'base64Cache':_0x5901a7,'status':_0x139819[_0x204b14(0x1c6)]}),this[_0x204b14(0x151)]();};});}[_0x2cf6ff(0x2e2)](){const _0x21e644=_0x2cf6ff;var _0x29130e,_0xe36c3a;const _0x5ac0c1=this['_configService']['getConfig'](Vo),_0x52c027=this[_0x21e644(0x17b)][_0x21e644(0x30f)](L);return(_0xe36c3a=(_0x29130e=_0x52c027==null?void 0x0:_0x52c027['uploadFileServerUrl'])!=null?_0x29130e:_0x5ac0c1)!=null?_0xe36c3a:Fo;}[_0x2cf6ff(0x436)](){const _0x2d0744=_0x2cf6ff;var _0x1333ba,_0x162181;const _0xe40233=this[_0x2d0744(0x17b)][_0x2d0744(0x30f)](Wo),_0x3c5c6f=this[_0x2d0744(0x17b)]['getConfig'](L);return(_0x162181=(_0x1333ba=_0x3c5c6f==null?void 0x0:_0x3c5c6f[_0x2d0744(0x32c)])!=null?_0x1333ba:_0xe40233)!=null?_0x162181:Go;}[_0x2cf6ff(0x1c3)](){const _0x51cf70=_0x2cf6ff;var _0x3cee93;const _0xb32de9=this['_configService']['getConfig'](L);return(_0x3cee93=_0xb32de9==null?void 0x0:_0xb32de9[_0x51cf70(0x125)])!=null?_0x3cee93:location['origin'];}[_0x2cf6ff(0x2fc)](_0x106e89,_0x930178){const _0x316378=_0x2cf6ff;return _0x106e89[_0x316378(0x43e)](_0x316378(0x2e4),_0x930178);}[_0x2cf6ff(0x151)](){const _0x30e686=_0x2cf6ff;this[_0x30e686(0x11c)]-=0x1,this[_0x30e686(0x28f)][_0x30e686(0x2ad)](this['_waitCount']);}};yt=Ho([St(0x0,_0x11c4b2(_0xc66412)),St(0x1,_0x5d22a5),St(0x2,_0x11c4b2(_0x3a69fb))],yt);var Yo=Object[_0x2cf6ff(0x2d3)],Ko=Object['getOwnPropertyDescriptor'],Xo=(_0x247a88,_0x37c500,_0x3ea36a,_0x40182f)=>{for(var _0x406fbc=_0x40182f>0x1?void 0x0:_0x40182f?Ko(_0x37c500,_0x3ea36a):_0x37c500,_0x4c2b25=_0x247a88['length']-0x1,_0x201f45;_0x4c2b25>=0x0;_0x4c2b25--)(_0x201f45=_0x247a88[_0x4c2b25])&&(_0x406fbc=(_0x40182f?_0x201f45(_0x37c500,_0x3ea36a,_0x406fbc):_0x201f45(_0x406fbc))||_0x406fbc);return _0x40182f&&_0x406fbc&&Yo(_0x37c500,_0x3ea36a,_0x406fbc),_0x406fbc;},Pe=(_0x324d9d,_0x434e11)=>(_0xc6422d,_0x31742a)=>_0x434e11(_0xc6422d,_0x31742a,_0x324d9d);let et=class extends _0x424705{constructor(_0x4f61fb,_0x4b1b87,_0x186f34,_0x4c7b7d,_0x1920f3){const _0x58adab=_0x2cf6ff;super(),this[_0x58adab(0x249)]=_0x4f61fb,this[_0x58adab(0xe4)]=_0x4b1b87,this['_permissionService']=_0x186f34,this[_0x58adab(0x186)]=_0x4c7b7d,this[_0x58adab(0x12c)]=_0x1920f3,this[_0x58adab(0xfe)](),this[_0x58adab(0x29c)]();}[_0x2cf6ff(0x29c)](){const _0x1aaed6=_0x2cf6ff,_0x1e97f8=async _0x3967d1=>{const _0x5c83c3=_0xd63a;(await this[_0x5c83c3(0x186)][_0x5c83c3(0x393)](_0x3967d1))[_0x5c83c3(0x3d1)]['pipe'](_0x584f39(_0x472357=>_0x472357['eventID']===_0x236400['SHOULD_CLOSE_CONN']),_0x1cc51a(this[_0x5c83c3(0x267)]))[_0x5c83c3(0x360)](_0x34bd8f=>{const _0x19e595=_0x5c83c3,_0x2e5b2f=_0x34bd8f,{reason:_0x254898}=_0x2e5b2f[_0x19e595(0x406)];this[_0x19e595(0x249)][_0x19e595(0x19c)](_0x3d2cd0)['show']({'type':_0x3aebb1[_0x19e595(0x276)],'content':this[_0x19e595(0x12c)]['t']('collaboration.closeRoom')+'('+_0x254898+')'}),this[_0x19e595(0x447)]['updatePermissionPoint'](new _0x472746(_0x3967d1)['id'],!0x1),this['_collaborationSessionService'][_0x19e595(0x170)](_0x3967d1);});};_0x577df9(this[_0x1aaed6(0xe4)][_0x1aaed6(0x1fc)](_0x5ba247[_0x1aaed6(0x43d)]),this[_0x1aaed6(0xe4)][_0x1aaed6(0x1fc)](_0x5ba247[_0x1aaed6(0x359)]))['pipe'](_0x4a2a85(_0x1ba3c6=>_0x1ba3c6[_0x1aaed6(0x3d4)]()),_0x584f39(_0x395806=>!_0x5a1828(_0x395806)),_0x1cc51a(this['dispose$']))[_0x1aaed6(0x360)](_0x3877f8=>{_0x1e97f8(_0x3877f8);});}['_initUnitPermissionChange'](){const _0x54fe95=_0x2cf6ff,_0x1fafef=async _0x5cc03f=>{const _0x3f4e06=_0xd63a;(await this['_collaborationSessionService'][_0x3f4e06(0x393)](_0x5cc03f))['event$'][_0x3f4e06(0x379)](_0x584f39(_0x4c83e5=>_0x4c83e5[_0x3f4e06(0x446)]===_0x236400[_0x3f4e06(0x20e)]),_0x1cc51a(this[_0x3f4e06(0x267)]))[_0x3f4e06(0x360)](_0x263360=>{const _0x3f7a2f=_0x3f4e06,_0x23407c=_0x263360,{objectId:_0xc89242}=_0x23407c[_0x3f7a2f(0x406)],_0x4bcbc3=this[_0x3f7a2f(0x249)]['get'](_0x4a74e1);_0xc89242===_0x5cc03f?_0x4bcbc3[_0x3f7a2f(0x2c7)](_0x5cc03f):_0x4bcbc3['refreshPermission'](_0x5cc03f,_0xc89242);});};_0x577df9(this[_0x54fe95(0xe4)]['getTypeOfUnitAdded$'](_0x5ba247[_0x54fe95(0x43d)]),this[_0x54fe95(0xe4)][_0x54fe95(0x1fc)](_0x5ba247['UNIVER_DOC']))[_0x54fe95(0x379)](_0x4a2a85(_0x4be1ad=>_0x4be1ad[_0x54fe95(0x3d4)]()),_0x584f39(_0xf2b18e=>!_0x5a1828(_0xf2b18e)),_0x1cc51a(this[_0x54fe95(0x267)]))[_0x54fe95(0x360)](_0x5a5002=>{_0x1fafef(_0x5a5002);});}};et=Xo([Pe(0x0,_0x11c4b2(_0x3ca714)),Pe(0x1,_0x3a69fb),Pe(0x2,_0xbe145),Pe(0x3,_0x11c4b2(ce)),Pe(0x4,_0x11c4b2(_0x56c312))],et);var Jo=Object[_0x2cf6ff(0x2d3)],qo=Object[_0x2cf6ff(0x289)],zo=(_0xbcf35f,_0x1e8976,_0x3ab607,_0x1cf1f2)=>{const _0x156fd3=_0x2cf6ff;for(var _0x216339=_0x1cf1f2>0x1?void 0x0:_0x1cf1f2?qo(_0x1e8976,_0x3ab607):_0x1e8976,_0x1146be=_0xbcf35f[_0x156fd3(0x183)]-0x1,_0x488879;_0x1146be>=0x0;_0x1146be--)(_0x488879=_0xbcf35f[_0x1146be])&&(_0x216339=(_0x1cf1f2?_0x488879(_0x1e8976,_0x3ab607,_0x216339):_0x488879(_0x216339))||_0x216339);return _0x1cf1f2&&_0x216339&&Jo(_0x1e8976,_0x3ab607,_0x216339),_0x216339;},gs=(_0x2d4127,_0x45da74)=>(_0xcc9309,_0x37bcd9)=>_0x45da74(_0xcc9309,_0x37bcd9,_0x2d4127);let Nt=class{constructor(_0xa06d20,_0x1fc40d){const _0x538428=_0x2cf6ff;this[_0x538428(0x17b)]=_0xa06d20,this[_0x538428(0x20c)]=_0x1fc40d;}async[_0x2cf6ff(0x2a5)](_0x2c7449,_0x49ed5f){const _0x1c006e=_0x2cf6ff;var _0x4cf10f;const {unitID:_0x2ee2e8,type:_0x3db45b,revision:_0x38b65=0x0}=_0x49ed5f,_0x1da95a=this[_0x1c006e(0x316)]()+'/'+_0x3db45b+'/unit/'+_0x2ee2e8+_0x1c006e(0x188)+_0x38b65,_0x4f1c6d=(await this['_httpService'][_0x1c006e(0x19c)](_0x1da95a))[_0x1c006e(0x2d1)],_0x14ba75=(_0x4cf10f=_0x4f1c6d[_0x1c006e(0x28b)])==null?void 0x0:_0x4cf10f[_0x1c006e(0x147)];if(_0x14ba75){const _0x332511=_0x14ba75==null?void 0x0:_0x14ba75[_0x1c006e(0x1f4)],_0x499382=_0x55c956[_0x1c006e(0x27e)](_0xf37c0a(_0x332511));_0x14ba75[_0x1c006e(0x1f4)]=_0x499382,Object['entries'](_0x14ba75['sheets'])[_0x1c006e(0x198)](([,_0x4608d2])=>{const _0x5b09bd=_0x1c006e,_0x2d4383=_0x4608d2[_0x5b09bd(0x1f4)],_0x29f367=_0x55c956[_0x5b09bd(0x27e)](_0xf37c0a(_0x2d4383));_0x4608d2[_0x5b09bd(0x1f4)]=_0x29f367;});}return _0x4f1c6d;}async[_0x2cf6ff(0x40f)](_0x568886,_0x3855c9){const _0x49ed43=_0x2cf6ff,{unitID:_0x1a1ee0,type:_0x29ad67,blockID:_0x3fbdf6}=_0x3855c9,_0x283781=this[_0x49ed43(0x2b5)]()+'/'+_0x29ad67+_0x49ed43(0x204)+_0x1a1ee0+_0x49ed43(0x407)+_0x3fbdf6;return(await this['_httpService'][_0x49ed43(0x19c)](_0x283781))[_0x49ed43(0x2d1)];}async['getDeserializedSheetBlock'](_0x492c49,_0x314ace){const _0x24e3fc=_0x2cf6ff,{unitID:_0x3ea973,type:_0x4a5f32,blockID:_0x315faf}=_0x314ace,_0x13b931=this[_0x24e3fc(0x2b5)]()+_0x24e3fc(0x407)+_0x4a5f32+_0x24e3fc(0x204)+_0x3ea973+_0x24e3fc(0x407)+_0x315faf;return(await this[_0x24e3fc(0x20c)]['get'](_0x13b931))['body'];}async['fetchMissingChangesets'](_0x176a8e,_0x3c5e04){const _0x3e17d9=_0x2cf6ff,{unitID:_0x2a8dae,type:_0x340799,from:_0x122041,to:_0x28a8b3}=_0x3c5e04,_0x336832=this[_0x3e17d9(0x2b5)]()+'/'+_0x340799+_0x3e17d9(0x204)+_0x2a8dae+_0x3e17d9(0xeb)+_0x122041+'&to='+_0x28a8b3;return(await this[_0x3e17d9(0x20c)][_0x3e17d9(0x19c)](_0x336832))[_0x3e17d9(0x2d1)];}[_0x2cf6ff(0x316)](){const _0x34ece4=_0x2cf6ff;var _0x34ac5a;return(_0x34ac5a=this[_0x34ece4(0x17b)][_0x34ece4(0x30f)](mn))!=null?_0x34ac5a:this[_0x34ece4(0x2b5)]();}['_getAPIPrefix'](){const _0x465b6d=_0x2cf6ff;var _0x37927f,_0x2e381b;const _0x581c9d=this[_0x465b6d(0x17b)][_0x465b6d(0x30f)](dn),_0x21a18f=this[_0x465b6d(0x17b)][_0x465b6d(0x30f)](L);return(_0x2e381b=(_0x37927f=_0x21a18f==null?void 0x0:_0x21a18f[_0x465b6d(0x26b)])!=null?_0x37927f:_0x581c9d)!=null?_0x2e381b:fn;}async['getResourcesRequest'](_0x3bc17d,_0x147fd4){const _0x5dba0d=_0x2cf6ff,_0x529368=_0x5dba0d(0x126)+_0x147fd4[_0x5dba0d(0x41e)]+_0x5dba0d(0x204)+_0x147fd4[_0x5dba0d(0x357)]+_0x5dba0d(0x264);return(await this[_0x5dba0d(0x20c)]['get'](_0x529368,{'params':{'resourceId':JSON[_0x5dba0d(0x1ff)](_0x147fd4[_0x5dba0d(0x3c7)])}}))[_0x5dba0d(0x2d1)];}[_0x2cf6ff(0x145)](){const _0x4e90b6=_0x2cf6ff;throw new Error(_0x4e90b6(0x328));}[_0x2cf6ff(0x2e1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x112ff3=_0x2cf6ff;throw new Error(_0x112ff3(0x328));}['copyFileMeta'](){const _0x1d54af=_0x2cf6ff;throw new Error(_0x1d54af(0x328));}};Nt=zo([gs(0x0,_0x5d22a5),gs(0x1,_0x11c4b2(_0xc66412))],Nt);var Zo=Object['defineProperty'],Qo=Object[_0x2cf6ff(0x289)],ea=(_0x2762b9,_0x3fea8d,_0x37fa74,_0x1e0753)=>{const _0x1ab88e=_0x2cf6ff;for(var _0x388c98=_0x1e0753>0x1?void 0x0:_0x1e0753?Qo(_0x3fea8d,_0x37fa74):_0x3fea8d,_0x559680=_0x2762b9[_0x1ab88e(0x183)]-0x1,_0x45aa6f;_0x559680>=0x0;_0x559680--)(_0x45aa6f=_0x2762b9[_0x559680])&&(_0x388c98=(_0x1e0753?_0x45aa6f(_0x3fea8d,_0x37fa74,_0x388c98):_0x45aa6f(_0x388c98))||_0x388c98);return _0x1e0753&&_0x388c98&&Zo(_0x3fea8d,_0x37fa74,_0x388c98),_0x388c98;},ye=(_0x178f06,_0x5cdc8d)=>(_0x8bc0d2,_0x5338b8)=>_0x5cdc8d(_0x8bc0d2,_0x5338b8,_0x178f06);let Ut=class extends _0x53b8f9{constructor(_0x2ed8d3,_0x2c7c69,_0x5525d7,_0x11ff65,_0x809218){const _0x15c012=_0x2cf6ff;super(_0x2ed8d3,_0x2c7c69,_0x5525d7),this[_0x15c012(0x146)]=_0x11ff65,this[_0x15c012(0x2f8)]=_0x809218;}[_0x2cf6ff(0x2c8)](_0x1125e5,_0xce821f){const _0x4233c6=_0x2cf6ff,_0x5531d7=this[_0x4233c6(0x1c5)](_0x1125e5);if(_0x5531d7)try{const _0x38ecf6=this[_0x4233c6(0x41a)](_0x5531d7,_0xce821f);this[_0x4233c6(0x437)](_0x1125e5,_0x38ecf6);}catch(_0x11fe70){this['_logService'][_0x4233c6(0x36e)]('[CollaborationUndoRedoService]',_0x11fe70),this[_0x4233c6(0x21d)](_0x1125e5);}const _0x574087=this[_0x4233c6(0x133)](_0x1125e5);if(_0x574087)try{const _0x1e6999=this[_0x4233c6(0x41a)](_0x574087,_0xce821f);this['_substituteRedoStack'](_0x1125e5,_0x1e6999);}catch(_0x595d53){this[_0x4233c6(0x2f8)][_0x4233c6(0x36e)](_0x595d53),this[_0x4233c6(0x197)](_0x1125e5);}}[_0x2cf6ff(0x21d)](_0xef76ae){const _0xea5f78=_0x2cf6ff,_0x2c8896=this[_0xea5f78(0x1c5)](_0xef76ae);_0x2c8896&&(_0x2c8896[_0xea5f78(0x183)]=0x0,this[_0xea5f78(0x2ce)]());}[_0x2cf6ff(0x197)](_0x2fdfd5){const _0x3a4f98=_0x2cf6ff,_0x51f3d3=this['_getRedoStack'](_0x2fdfd5);_0x51f3d3&&(_0x51f3d3[_0x3a4f98(0x183)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x425ee2,_0x18422e){const _0x44b346=_0x2cf6ff;this[_0x44b346(0x1f2)][_0x44b346(0x138)](_0x425ee2,_0x18422e),this[_0x44b346(0x2ce)]();}[_0x2cf6ff(0x402)](_0x37b35a,_0x2276ce){const _0x988cf7=_0x2cf6ff;this[_0x988cf7(0x388)][_0x988cf7(0x138)](_0x37b35a,_0x2276ce),this[_0x988cf7(0x2ce)]();}['_transformStack'](_0x763a28,_0x25a54a){const _0x529c08=_0x2cf6ff,_0x159873=[];let _0x36ae8e=_0x25a54a,_0x3edf9c=_0x25a54a;for(let _0x36a734=_0x763a28[_0x529c08(0x183)]-0x1;_0x36a734>=0x0;_0x36a734--){const {unitID:_0x7b31b6,undoMutations:_0x3b9770,redoMutations:_0x4e7046}=_0x763a28[_0x36a734],_0xd0643d=this['_transformService'][_0x529c08(0x1f5)](_0x36ae8e,_0x3b9770),_0x1a9b21=this[_0x529c08(0x146)]['transformMutationsWithChangeset'](_0x3edf9c,_0x4e7046);if(_0x32c4b6(_0xd0643d)||_0x32c4b6(_0x1a9b21)){this['_logService'][_0x529c08(0x36e)](_0x529c08(0x37b),'transformStack\x20failed!',_0xd0643d,_0x1a9b21);break;}_0x36ae8e=_0xd0643d[_0x529c08(0x34c)],_0x3edf9c=_0x1a9b21[_0x529c08(0x34c)],_0x159873[_0x529c08(0x16c)]({'unitID':_0x7b31b6,'undoMutations':_0xd0643d['m2Prime'],'redoMutations':_0x1a9b21['m2Prime']});}return _0x159873['reverse']();}};Ut=ea([ye(0x0,_0x3a69fb),ye(0x1,_0x339bfb),ye(0x2,_0x448680),ye(0x3,_0x1d81ff),ye(0x4,_0x58af89)],Ut);class ta extends _0x424705{constructor(){const _0x17da81=_0x2cf6ff;super(),l(this,'urlChange$'),this['urlChange$']=_0x4f5602(window,_0x17da81(0x11d))[_0x17da81(0x379)](_0x5f0229(this[_0x17da81(0x267)]),_0xbb5cb7(0x1),_0x17764b(void 0x0));}[_0x2cf6ff(0x272)](_0x3cdc0e,_0x2138b5,_0x3acb35=!0x1){const _0x20a683=_0x2cf6ff,_0x1642cb=new URL(window[_0x20a683(0x421)][_0x20a683(0x1a5)]);_0x1642cb[_0x20a683(0x3af)][_0x20a683(0x138)](_0x3cdc0e,_0x2138b5),_0x3acb35?window[_0x20a683(0x190)]['replaceState']('','',_0x1642cb[_0x20a683(0x23b)]()):window[_0x20a683(0x190)]['pushState']('','',_0x1642cb[_0x20a683(0x23b)]());}[_0x2cf6ff(0x426)](_0x5a5189,_0x54d60b=!0x1){const _0x16b340=_0x2cf6ff,_0x182db3=new URL(window[_0x16b340(0x421)][_0x16b340(0x1a5)]);_0x182db3[_0x16b340(0x3af)][_0x16b340(0x152)](_0x5a5189),_0x54d60b?window[_0x16b340(0x190)][_0x16b340(0x221)]('','',_0x182db3['toString']()):window[_0x16b340(0x190)][_0x16b340(0x266)]('','',_0x182db3[_0x16b340(0x23b)]());}[_0x2cf6ff(0x226)](_0x4c21d5){const _0x3df9bc=_0x2cf6ff;var _0x4e8e36;return(_0x4e8e36=new URL(window['location'][_0x3df9bc(0x1a5)])[_0x3df9bc(0x3af)]['get'](_0x4c21d5))!=null?_0x4e8e36:void 0x0;}}var Gs=Object[_0x2cf6ff(0x2d3)],sa=Object[_0x2cf6ff(0x289)],ia=(_0x456a18,_0x23d51f,_0x26750d)=>_0x23d51f in _0x456a18?Gs(_0x456a18,_0x23d51f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26750d}):_0x456a18[_0x23d51f]=_0x26750d,na=(_0x584a77,_0x4effd7,_0x2ebdd3,_0x48d3b8)=>{for(var _0x4cb19f=_0x48d3b8>0x1?void 0x0:_0x48d3b8?sa(_0x4effd7,_0x2ebdd3):_0x4effd7,_0x3c5716=_0x584a77['length']-0x1,_0x57235d;_0x3c5716>=0x0;_0x3c5716--)(_0x57235d=_0x584a77[_0x3c5716])&&(_0x4cb19f=(_0x48d3b8?_0x57235d(_0x4effd7,_0x2ebdd3,_0x4cb19f):_0x57235d(_0x4cb19f))||_0x4cb19f);return _0x48d3b8&&_0x4cb19f&&Gs(_0x4effd7,_0x2ebdd3,_0x4cb19f),_0x4cb19f;},ke=(_0x57fd21,_0x4df483)=>(_0x5306ad,_0x1d606c)=>_0x4df483(_0x5306ad,_0x1d606c,_0x57fd21),ra=(_0x5278de,_0x3c9022,_0x2d3b02)=>ia(_0x5278de,_0x3c9022+'',_0x2d3b02);const oa=_0x2cf6ff(0x3c1);let Mt=class extends _0x4c33c6{constructor(_0x32c6dd=yn,_0x8a12a,_0x3422d0,_0x1a6b27,_0x339bc7){const _0x15af36=_0x2cf6ff;super(),this[_0x15af36(0x1bf)]=_0x32c6dd,this[_0x15af36(0x2f8)]=_0x8a12a,this[_0x15af36(0x1d4)]=_0x3422d0,this[_0x15af36(0x249)]=_0x1a6b27,this[_0x15af36(0x17b)]=_0x339bc7;const {..._0x1b7eb1}=this[_0x15af36(0x1bf)];this['_configService'][_0x15af36(0x3d5)](L,_0x1b7eb1);}[_0x2cf6ff(0xe8)](){const _0x2fc68c=_0x2cf6ff;this[_0x2fc68c(0x2f1)](),_0x34d48e(this['_injector'],[[pe],[qe],[et]]);}[_0x2cf6ff(0x2ed)](){const _0x1a4850=_0x2cf6ff;_0x34d48e(this[_0x1a4850(0x249)],[[ze]]);}[_0x2cf6ff(0x2d9)](){const _0x5d67e5=_0x2cf6ff;this[_0x5d67e5(0x2e6)]();}[_0x2cf6ff(0x2f1)](){const _0x4688d4=_0x2cf6ff;var _0x2ff53f,_0x3e3ea2,_0x4b75cc,_0x334470;this['_injector']['has'](_0x55c638)&&this[_0x4688d4(0x2f8)][_0x4688d4(0x36e)](_0x4688d4(0x415),_0x4688d4(0x456));let _0xd1459f=[[_0x55c638,{'useClass':Ut}],[ce],[Ft],[_0xc66412],[Ws,{'useClass':ta}],[ae],[D],[_0x3b3681],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x3e3ea2=(_0x2ff53f=this['_config'])==null?void 0x0:_0x2ff53f['socketService'])!=null?_0x3e3ea2:Et}],[_0x447502,{'useClass':_0x56ea82}],[_0x473b7c,{'useClass':Nt}],[_0x58edf4,{'useClass':Pt}],[_0x4fca93,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x4b75cc=this[_0x4688d4(0x1bf)])!=null&&_0x4b75cc[_0x4688d4(0x23e)]&&_0xd1459f[_0x4688d4(0x16c)]([tt,{'useClass':rr}]),_0xd1459f=_0x3d2851(_0xd1459f,(_0x334470=this[_0x4688d4(0x1bf)])==null?void 0x0:_0x334470[_0x4688d4(0x3cc)]),_0xd1459f[_0x4688d4(0x198)](_0x241566=>this['_injector']['add'](_0x241566)),this['_initModules']();}[_0x2cf6ff(0x2e6)](){const _0x2843f9=_0x2cf6ff;this[_0x2843f9(0x2cd)](this[_0x2843f9(0x1d4)][_0x2843f9(0x367)](_0x5ba247['UNIVER_DOC'],[Dt])),this['disposeWithMe'](this['_renderManagerService'][_0x2843f9(0x367)](_0x5ba247[_0x2843f9(0x43d)],[wt]));}[_0x2cf6ff(0x1e0)](){const _0x4d447a=_0x2cf6ff;var _0x1cbe9d,_0x17a9d8;this[_0x4d447a(0x249)][_0x4d447a(0x19c)](_0xc66412)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x41e9e4({'maxParallel':0x6})}),this[_0x4d447a(0x249)][_0x4d447a(0x19c)](Qe),(_0x1cbe9d=this[_0x4d447a(0x1bf)])!=null&&_0x1cbe9d['enableOfflineEditing']||this[_0x4d447a(0x249)]['get'](D)[_0x4d447a(0x2df)](),(_0x17a9d8=this[_0x4d447a(0x1bf)])!=null&&_0x17a9d8[_0x4d447a(0x1c9)]&&this['_injector'][_0x4d447a(0x19c)](Ze),this[_0x4d447a(0x249)][_0x4d447a(0x19c)](Ae),this[_0x4d447a(0x249)]['has'](Ue)&&this[_0x4d447a(0x249)][_0x4d447a(0x19c)](Ue);}};ra(Mt,'pluginName',oa),Mt=na([_0x1044e4(_0x19cb4a),ke(0x1,_0x58af89),ke(0x2,_0x45596d),ke(0x3,_0x11c4b2(_0x3ca714)),ke(0x4,_0x5d22a5)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};