@univerjs-pro/collaboration-client 0.4.0-nightly.202410151606 → 0.4.0-nightly.202410171606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3a2165=_0x4ca1;(function(_0x4cda34,_0x3a8fff){const _0x141a1c=_0x4ca1,_0xb1554e=_0x4cda34();while(!![]){try{const _0x3882b8=-parseInt(_0x141a1c(0x2ad))/0x1+-parseInt(_0x141a1c(0x149))/0x2*(-parseInt(_0x141a1c(0x265))/0x3)+-parseInt(_0x141a1c(0x45f))/0x4+parseInt(_0x141a1c(0x148))/0x5+-parseInt(_0x141a1c(0x170))/0x6*(-parseInt(_0x141a1c(0x123))/0x7)+parseInt(_0x141a1c(0x4bc))/0x8*(-parseInt(_0x141a1c(0x35f))/0x9)+parseInt(_0x141a1c(0x11d))/0xa;if(_0x3882b8===_0x3a8fff)break;else _0xb1554e['push'](_0xb1554e['shift']());}catch(_0xe34614){_0xb1554e['push'](_0xb1554e['shift']());}}}(_0x26d6,0xc81e3));function _0x26d6(){const _0x254b95=['COMPRESS_MUTATION_APPLY','_textBubble','BuiltInUIPart','object','isTransformMutationFailure','catch','_localStorageService','6476252jBokOV','MoveRangeCommandId','UniverInstanceType','resend','_docSkeletonManagerService','socket\x20close','SYNCED','getImage','InsertColCommandId','post','serializeCombRequest','cursorInfo$','_toggleOffline','_scheduleCollaborationTimeoutTimer','createSocket','touchDependencies','ColorKit','color','roomInfos','1em','getOwnPropertySymbols','_session','removeParam','CHANGESET_ACK','_context','submit\x20changeset\x20error!','defs','onStarting','CommentService','onlyLocal','getSheetId','setAlpha','_cursorShapes','_clearScheduledTask','univer-online-status-icon','substring','Tools','FETCH_MISSING','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_clearOtherTimers','sheets','SetWorksheetActivateCommand','currentSkeleton$','RefRangeService','connection\x20error','/allowed','pluginName','COMPRESS_MUTATION_SEND','replaceState','ILogService','dispose','status','getSheetBlock','name','COLLAB_WEB_SOCKET_URL','assign','DataLoaderController','tag','hovered','updateMember','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_compressMutationService','createElement','/universer-api/snapshot/','searchParams','ImageUploadStatusType','parseChangesetToProtocol','_handleHeartbeatEvent','SessionStatus','InsertRangeMoveDownCommandId','_updateStatus','RECV','_onCursorUpdate','_disabled','init','saveSnapshot','_state','has','origin','_docTransformIMECacheService','headers','_document','routeKey','YUUMI_RATE_OVER_LIMIT','_onRecvEvent','list','Univer','Optional','ERROR_IMAGE_TYPE','SNAPSHOT_HAS_BEEN_REMOVED','collaboration.single-unit.warning','DocCollaborationEntity','handleMoveRange','12131808eylxER','_id','collabStatus.conflict','fromEventSubject','_onConflict','DeleteRangeMoveLeftCommandId','setInterval','APPLY_PERMISSION_DENIED','commentUpdate$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','createIdentifier','[CollaborationSessionService]','session.collaboration-timeout','concatMap','moveTo','OTHER_CLIENTS_EDITING','UNDEFINED','_getUploadFileURL','getUnhiddenWorksheets','closeSession','RETRY_CONNECTING_MAX_COUNT','state','_cachedData','append','_themeService','APPLY_REJECT','trim','_onRemoteRejected','_onOffline','CollaborationStatus','reduce','_notificationService','_render','_singleActiveUnitService','/resources','_getAPIPrefix','getCollabEntity','path','[CollaborationEntity]','_awaitingChangeset','userID','createInstance','toRgbString','_updateCollabCursors','SUBMIT_CHANGESET','delay','NOT_COLLAB','[CollaborationUndoRedoService]','_scheduleClearOtherTimer','ITransformService','onRendered','_labelPosition','RevisionService','_cursors','@univerjs-pro/license','getVpScrollXYInfoByPosToVp','YUUMI_SUBSCRIPTION_NOT_FOUND','selection','_scheduleSaving','debounce','IConfigService','registerHTTPInterceptor','_handleEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Module','_retryCount','_drawRectRange','location','unshift','[OfflineState]:\x20received\x20rejection.','_config','SetTextSelectionsOperation','_scheduleTimestamp','getCurrentRevOfUnit','HELLO','createCollaborator','isInternalEditorID','XHRHTTPImplementation','slice','_transformRemoteChangesetByIMECache','_HTTPService','then','filter','extend','CHANGESET_REVISION_CONFILICT','IAuthzIoService','unitId','Rectangle','_updateState','_startSheetCollabCursor','stopTime','collaboratorID','_showConflictNotification','COLORS','univer-pro.collaboration-client.single-active-unit-service','transformMutationsWithChangeset','_heartbeatTimer','members','_refreshCollabCursors','div','getCollabEntity$','_socketMessageSubscription','/universer-api/oidc/authpage','asObservable','_unitID','round','session.room-full','params','UniverCollaborationPlugin','LIVESHARE_OPERATION','Error','_configService','CollaborationSocketService','transformIMECache','LEAVE','result','UNAUTHENTICATED','_getAnchorBounding','_getUndoStack','encode','_collaborationPaused','pending','0\x200\x2017\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','show','toDisposable','RegularPolygon','setActiveRange','CollaborationEntity','\x20to\x20','downloadEndpointUrl','_send','awaiting_with_pending','fillRule','27622630NSWEOJ','_name','_setupBeforeClosingHandler','_lockTransition','runRefRangeMutations','action','42ZLbVsG','data','UNIVER_SLIDE','_hover','registerOnClose','urlChange$','_setupSubUnitSync','_cursorInfo$','_transformIMECache','POST','[PendingState]:\x20received\x20acknowledgement.','memberID','interceptor','@univerjs-pro/collaboration','visibilitychange','doc.mutation.rich-text-editing','collab-text-anchor-','confirm','body','_range','IUniverInstanceService','UniverCollaborationClientPlugin','\x20in\x20_schedule.','?url=','_createInitialState','Undefined','isValidRectRange','_selfUnitIDs','close$','delete','getOffsetConfig','baseRev','LICENSE_MAX_UNITS_EXCEEDED','width','_change$','isPermissionRej','[DataLoaderController]','4750615lntvec','587374eWPspt','_startTelemetryCollaborationNewChangeset','attrs','/new_changes','getUniverSheetInstance','create','COMMENT_UPDATE','_getAPIPrefixPath','_registerDependencies','loadOfflineData','_cursor','_toggleOnline','getUnitOnRev','collaboration-client.offline-data-not-saved','_socket$','onTransformIME','_fetchMissChangesets','dispose$','INVALID_ARGUMENT','synced','loginUrlKey','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','collabStatus.fetchMiss','off-line-single','AWAITING_WITH_PENDING','IHTTPImplementation','_transformUndoredo','setShapeProps','contains','range','disposeWithMe','_initMergeInterceptor','sheetID','&assign=','isTransformMutationsWithChangesetSuccess','CollaborationSessionService','colorChannel1','_docStateChangeManagerService','INTERNAL_ERROR','144270ewfjOX','CONFLICT','refreshPermission','blue400','getCoordByCell','_getSnapshotAPIPrefix','_unitStatus','exhaustSavingTask','MUTATION','CHANGESET_REJ','PSEUDO_FETCH_MISSING_RESULT','useRef','onPointerEnter$','_waitForHeartbeatResponse','_entities','_onCombEvent','CollaborationSession','href','onSendChangeset','JOINING','saveSheetBlock','_onRemoteChangeset','_onCursorDelete','_registerRenderDependencies','UUID','_sessions','SNAPSHOT_URL_KEY','_color','_drawAnchor','_initCommandExecutedListener','message$','SNAPSHOT_INVALID_SNAPSHOT','\x0aAfter:\x20','APPLY_NON_SEQUENTIAL_REVISION','_snapshotServerService','PENDING','set','_initStatusComponent','_uiPartsService','isTransformChangesetsSuccess','_scene','measureText','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatusIcon','_members','save','liveShareOperation','uploadFileServerUrl','getFocusedUnit','/collaborator','UNKNOWN_CMD','_sessionStatus$','_initRequestHeader','compose','_hideTimer','sessionStatus','setUndoRedoMutationParamsCache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_applyRemoteChangeset','EmptyMutation','retryConnectingInterval','_handler','ONLINE','none','text','_collabSessionService','online','LICENSE_EXPORT_SIZE_EXCEEDED','JSONX','handleDeleteRangeMoveUp','requestParams','disableLocalCache','number','_getCurrentRevision','[SyncedState]:\x20received\x20rejection.','put','getCurrent','_redoStacks','[OfflineState]:\x20received\x20changeset.','endRow','displayName','_getSheetObject','executeCommand','session','WorkbookEditablePermission','newValue','signUrlServerUrl','collaboration-session-retry','SUCCUSS','_transitionLocked','authzUrl','_permissionService','socketService','_tryEnsureSocket','values','icon','_socketService','_backgroundColor','assignAColorForMemberID','_checkMissing','restore','symbol','_localeService','LocalUndoRedoService','HTTPService','_init','collab-text-range-','_incrementRevisionNumber','getItem','startColumn','clearTimeout','sessionStatus$','toggleOnline','deserializeRangeWithSheet','defineProperty','_docTransformSelectionsService','LOGIN_URL_KEY','_substituteRedoStack','_unitOnClients','x-univer-host','_localCacheService','getParam','_shouldReportTelemetry','_startDocCollabCursor','csAckEvent','DocSkeletonManagerService','subscribe','call','getCurrentSelections','IUIPartsService','red300','_state$','rev','sequenceExecute','onMissedChangesetFetched','max','_getDownloadEndpointURL','transformRemoteChangeset','OnLineSingle','_event$','svg','prototype','IBeforeCloseService','SheetPermissionInitController','updateOfflineData','_draw','getColor','isArray','deepClone','IRenderManagerService','SHOULD_CLOSE_CONN','readAsDataURL','objectType','saveChangeset','getViewport','onReady','idSuffix','_userManagerService','size','addImageSourceCache','_onUserJoin','NodePositionConvertToRectRange','UNIVER_PROJECT','enableSingleActiveInstanceLock','_queuedRemoteChangesets','transformStack\x20failed!','_undoRedoService','eventID','onCommentUpdate','IRemoteInstanceService','beginPath','evenodd','Tooltip','RichTextEditingMutation','CONNECTOR_DATA_TOO_LARGE','UNIVER_SHEET','_collaborationTimeoutTimer','UniverIcon','_assignedColors','_getLoginPath','image/jpeg','setWaitCount','xlink:href','_updateSubUnitFromURLParams','OffLineSingle','offline','getAttachHeader','sheetId','addObject','...','_pendingMutations','PERMISSION_REJ','_clearRedo','m1Prime','LOCAL_CACHE_INTERVAL_KEY','_onRefRangeChange','_online','onload','url','toggleOffline','generateRandomId','_anchor','getActiveSheet','_syncEditingCollabCursor','getInterceptPoints','updateCollaborator','replaceTextRanges','UNIVER_UNKNOWN','onMouseMove','_replaceFileID','allowed','YUUMI_URL_COL_OUT_OF_RANGE','IUndoRedoService','getUnitStatus$','PERMISSION_DENIED','isTransformMutationsWithChangesetFailure','_roomMembers$','LIVESHARE_FETCH_OPERATIONS','loadSheet','arc','FETCH_MISS','use','/object/','ILocalStorageService','DesktopCollaborationStatusDisplayController','revision','onMissingChangesets','_initCloseConn','[CollaborationSession]','ALREADY_EXISTS','onPointerLeave$','Unknown\x20user','_loadSheet','b64DecodeUnicode','&to=','getAncestorScale','setTimeout','collabWebSocketUrl','_scheduleHeartbeat','_telemetryInfo','indexOf','WebURLService','_clearCollaborationTimeoutTimer','rxjs','_collabCursorState$','9buOvOK','_initEventListeners','_urlService','fill','min','@univerjs/sheets','_removeCollabCursors','univer-pro.collaboration-client-socket-service','/universer-api/stream/file/upload','fetchMissingChangesets','error$','_onRemoteACK','_getScale','RETRY_CONNECTING_MAX_COUNT_KEY','newCsEvent','_collaborationSessionService','textEncoder','title','IPermissionService','ImageIoService','putCollaborators','takeUntil','_transformSelections','registerBeforeClose','send','COLLAB_SUBMIT_CHANGESET_URL','_onLocalMutation','startRow','handleInsertRangeMoveDown','shareReplay','fetchThroughInterceptors','ERROR_IMAGE','/-/object/-/batch_allowed','onStateChange','Disposable','defIds','transformSelections','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','localeService','/rev/','Subject','_initUnitPermissionChange','cmd','_clearLocalCache','transform','resourceIDs','children','#FFF','replace','fillStyle','_getSignURL','setCurrentUser','OFFLINE','onSyncEditingCollabCursor','registerRefRange','labelPosition','override','all','concat','split','socket$','_getSaveTimeout','_commentUpdate$','reverse','_throwTelemetryCollaborationNewChangeset','HEARTBEAT_INTERVAL','getWorkbookSelections','findNodePositionByCharIndex','registerRenderModule','getRenderById','_startCollaboration','_telemetryService','782495tMIkYJ','SEND_CHANGESET_TIMEOUT','image/jpg','UNKNOWN_CODE','_snapshotService','joinEvent','toStringTag','enableAuthServer','setParam','drawWith','shouldCloseConn','auth.needGotoLoginAlert','ITelemetryService','UserManagerService','_messageService','VIEW_MAIN','_saveTaskMap','_sheetTransformSelectionsService','@univerjs/docs-ui','getCellPositionByOffset','CompressMutationService','mapDocumentTypeToUniverType','_memberService','permissionRejEvent','workbook','next','_refRangeService','_initResize','_removeClearOtherTimer','UnitEmbedded','hide','fromEvent','snapshot','/universer-api/snapshot','unit','_revisionService','getResourcesRequest','_updateLocalCursor','_updateURLWithCurrentState','@univerjs/engine-render','SnapshotService','enableOfflineEditing','/block/','registerComponent','syncEditingCollabCursor','updateCursorEvent','with','isActive','onTransformRemoteChangesetByIMECache','history','fetchMiss','UnitSnapshot','onRemoteAck','merge','_remoteChangesetQueue','getMergeData','add','/universer-api/file/{fileID}/sign-url','_socketReady','@univerjs/drawing','collaMsg','some','DisposableCollection','src','telemetry\x20info\x20is\x20not\x20initialized','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','SheetsSelectionsService','_collabCursorController','hasOwnProperty','code','_anchorDot','debounceTime','BehaviorSubject','mapTo','_unlockTransition','_collaborationController','from','DEFAULT_FILE_NAME','unit-cache-','_onMessage','onlineStatusTitle','/universer-api/comb','HEARTBEAT','AUTHZ_URL_KEY','_imageSourceCache','session.connection-failed','CommandType','collabStatus.offline','get','originalMeta','#fff','univer-online','liveShareNewHost','_createSocket','rgba(255,\x20255,\x20255,\x200.01)','SetDocZoomRatioOperation','LocalCacheService','_commentService','getTypeOfUnitDisposed$','failed\x20to\x20apply\x20missed\x20changesets!','getSheetBySheetId','_updateLocalCache','_substituteUndoStack','csRejEvent','patch','_transformService','@univerjs/network','RemoveColCommandId','clearInterval','url(#off-line-single_clip0_910_343)','resolve','getTypeOfUnitAdded$','CollaborationController','mutations','image/png','ThemeService','_getMergeRange','_undoStacks','lineTo','_decreaseWaiting','@univerjs/core','IImageIoService','USERS_LEAVE','_transformUndoRedoStack','whenReady','state$','COMPLETION_FINISHED','appendMutation','_onFetchMissResult','pushState','removeMember','leaveEvent','map','skeleton','apply','INGEST','[OfflineState]:\x20received\x20acknowledgement.','onRemoteChangeset','forEach','off-line-single_clip0_910_343','push','@univerjs/telemetry','roomMembers','fetch_missing','HTTPRequest','pauseCollaboration','updatePermissionPoint','height','_beforeCloseService','MergeInterceptorFactory','popstate','NOT_FOUND','onTransformSelections','_type','getConfig','getSheetObject','/object','deserializeToCombResponse','objectActions','getActiveRange','_disableEditing','UNIVER_DOC','/-/object/list','INotificationService','VIEWPORT_KEY','ranges','c1Prime','event$','infoRsp','_timeoutTimer','LIVESHARE_REQUEST_HOST','engine','@univerjs/docs','[FetchMissState]','objects','_saveCache','focused$','USERS_ENTER','9JlWaLS','_handleJoinEvent','unknown','listRoles','LICENSE_IMPORT_SIZE_EXCEEDED','column','univer-online-status-title','InsertSheetMutation','_getSendChangesetTimeout','NO_OTHER_CLIENTS_EDITING','EffectRefRangId','_acknowledgedAwaitingChangeset','every','Error\x20on\x20receiving\x20event','unload','className','_colorIndex','initWorkbookPermissionChange','SNAPSHOT_SERVER_URL_KEY','_colorAssignService','getUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','currentTheme$','HEARTBEAT_TIMEOUT_KEY','_ws','cursorInfo','_stopTelemetryCollaborationNewChangeset','reject','_status$','jiqing500','FileId','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','currentColor','_drawTextRange','collaboration.closeRoom','textRanges','getOwnPropertyDescriptor','/unit/','on-line-single_clip0_910_349','_waitCount','flatMap','MessageType','_handleHover','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','?size=','\x20-\x20','serializeRangeWithSheet','MSG_FOR_ERROR','m2Prime','addEventListener','_lastPointer','LIVESHARE_TERMINATE','_sendHeartbeat','_createInitialStateImpl','updatePermissionObjEvent','getCollabCursors$','HttpExport','setConfig','collaborators','CollaborationEvent','_transformPreviousActiveRange','COLLAB_SUBMIT_CHANGESET_URL_KEY','IMessageService','univer-online-status','_transformStack','_syncEditingCollabCursorService','_submitChangeset','/universer-api/authz','type','length','stringify','Vector2','fillText','actions','debug','HttpImport','_executeRemoteChangeset','\x0aCurrent:\x20','getUnitId','listCollaborators','Injector','sendChangesetTimeout','getDocRanges','getSkeleton','_sendHeartbeatTimer','toString','awaiting','useDependency','M0\x200H16V16H0z','forwardRef','unitId\x20is\x20not\x20found','AuthzIoHttpService','enableLocalCache','NEW_CHANGESETS','_injector','getValue','backgroundColor','HEARTBEAT_TIMEOUT','UNRECOGNIZED','bottom','getMember','_loadDoc','resize','_onConnectionFailed','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_tryReconnect','responseType','transformUndoRedo','clear','_joinRoom','collabCursorState$','BASE64','_createHandler','onTransformChange$','clipPath','SnapshotServerOverHTTPService','ImageSourceType','switchMap','SetSelectionsOperation','commentUpdateEvent','purple300','_exhaustRemoteChangesetQueue','Rect','row','getTime','DocIMEInputManagerService','_commandService','_http','setItem','black','ICommandService','RemoveRowCommandId','objectID','getUnit','handleInsertCol','awaitingChangeset','IDLE','verdancy600','_candidateSocket','find','font','collabSubmitChangesetUrl','fromCollab','editingUnit','entries','image/gif','open$','includes','top','_sendingTimer','ISnapshotServerService','onRemoteRej','UPDATE_CURSOR','incrementRevOfUnit','_clearUndo','status$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','subunit','_onUserLeave','LocaleService','collaboration_new_changeset','_onJoinRoomEvent','url(#on-line-single_clip0_910_349)','_removeRoom','[CollaborationState]:\x20apply\x20error!','HEADER_MENU','_univerInstanceService','_shapes','_roomMembers','FromArray','@univerjs/ui','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','string','getUnitType','_httpService','_retryConnectingTimer','_clearHeartbeatTimer','handleIRemoveRow','_socket','_getRedoStack','handleDeleteRangeMoveLeft','triggerDblclick','_clearTimeoutTimer','_renderManagerService','_ensureSubject','key','requireSession','subUnitId','complete','_listenToOfflineEvent','transformChangesets','UPDATE_PERMISSION_OBJ','_rescheduleHeartbeat','onPointerMove$','_entityInit$','file','activeSheet$','startTime','Inject','collabStatus.notCollab','_sheetSkeletonManagerService','function','getCurrentUser','conflict','YUUMI_UNABLE_LOAD_URL','_logService','_schedule','TOO_MANY_REQUESTS','uni.network.url-service','collaboration-client.config','FAIL','_hovered','APPLY_REVISION_CONFILICT','handleIRemoveCol','_onConnectionOpen','SheetCollaborationEntity','unitID','saveImage','transformMutation','subscribeEvent','closePath','image/bmp','TEXT_RANGE_LAYER_INDEX','ws://127.0.0.1:8000/universer-api/comb/connect','throttleTime','RxDisposable','error','_eventUnsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','now','getMemberID','pipe','handleInsertRangeMoveRight','take','JOIN','c2Prime','DeleteRangeMoveUpCommandId','deleteCollaborator','onCommandExecuted','_replayCachedMutations','Shape','unsubscribe','startsWith','close','[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.','roomMembers$','combineLatest','_initModules'];_0x26d6=function(){return _0x254b95;};return _0x26d6();}var kt=Object[_0x3a2165(0x1e2)],Bt=(_0x468774,_0x16fa68,_0x4f4766)=>_0x16fa68 in _0x468774?kt(_0x468774,_0x16fa68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f4766}):_0x468774[_0x16fa68]=_0x4f4766,d=(_0x92d239,_0x381da0,_0x50b314)=>Bt(_0x92d239,typeof _0x381da0!=_0x3a2165(0x1d5)?_0x381da0+'':_0x381da0,_0x50b314);Object['defineProperty'](exports,Symbol[_0x3a2165(0x2b3)],{'value':_0x3a2165(0xd6)});const a=require(_0x3a2165(0x325)),v=require(_0x3a2165(0x263)),E=require('rxjs/operators'),X=require('@univerjs/design'),N=require(_0x3a2165(0x40a)),P=require(_0x3a2165(0x317)),_=require(_0x3a2165(0x130)),Vt=require(_0x3a2165(0x33a)),V=require(_0x3a2165(0x359)),w=require(_0x3a2165(0x2bf)),C=require(_0x3a2165(0x26a)),R=require(_0x3a2165(0x2d4)),L=require(_0x3a2165(0x2e8)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require('react'),Wt=require('@univerjs/rpc'),Ft=require(_0x3a2165(0xcb)),ht=_0x3a2165(0x371),Gt=_0x3a2165(0x2ce),_t=_0x3a2165(0x18a),Yt=_0x3a2165(0x2ae),Kt=0x7d0,ut=_0x3a2165(0x495),Xt=_0x3a2165(0x43f),dt=_0x3a2165(0x2a6),qt=0x7530,Ve=_0x3a2165(0x3c1),St=0x4e20,zt=0x4e20,vt=_0x3a2165(0xa9),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x3a2165(0x27e),Qt=_0x3a2165(0x2fe),mt='LOGIN_URL_KEY',es=_0x3a2165(0xfc);var It=(_0x1dccf3=>(_0x1dccf3[_0x1dccf3[_0x3a2165(0xa5)]=0x0]=_0x3a2165(0xa5),_0x1dccf3[_0x1dccf3['OK']=0x1]='OK',_0x1dccf3[_0x1dccf3[_0x3a2165(0x16f)]=0x2]='INTERNAL_ERROR',_0x1dccf3[_0x1dccf3[_0x3a2165(0x246)]=0x3]='PERMISSION_DENIED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x344)]=0x4]=_0x3a2165(0x344),_0x1dccf3[_0x1dccf3['UNAUTHENTICATED']=0x5]=_0x3a2165(0x10a),_0x1dccf3[_0x1dccf3[_0x3a2165(0x255)]=0x6]=_0x3a2165(0x255),_0x1dccf3[_0x1dccf3[_0x3a2165(0x15b)]=0x7]='INVALID_ARGUMENT',_0x1dccf3[_0x1dccf3[_0x3a2165(0x42f)]=0x8]=_0x3a2165(0x42f),_0x1dccf3[_0x1dccf3[_0x3a2165(0x32b)]=0x9]=_0x3a2165(0x32b),_0x1dccf3[_0x1dccf3[_0x3a2165(0xea)]=0x1389]=_0x3a2165(0xea),_0x1dccf3[_0x1dccf3[_0x3a2165(0x18f)]=0x1771]=_0x3a2165(0x18f),_0x1dccf3[_0x1dccf3[_0x3a2165(0x4b8)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1dccf3[_0x1dccf3['APPLY_REJECT']=0x1b59]=_0x3a2165(0xae),_0x1dccf3[_0x1dccf3[_0x3a2165(0x191)]=0x1b5a]=_0x3a2165(0x191),_0x1dccf3[_0x1dccf3[_0x3a2165(0x434)]=0x1b5b]=_0x3a2165(0x434),_0x1dccf3[_0x1dccf3[_0x3a2165(0x9c)]=0x1b5c]=_0x3a2165(0x9c),_0x1dccf3[_0x1dccf3['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a2165(0x21e),_0x1dccf3[_0x1dccf3[_0x3a2165(0x143)]=0x2329]=_0x3a2165(0x143),_0x1dccf3[_0x1dccf3[_0x3a2165(0x444)]=0x232a]=_0x3a2165(0x444),_0x1dccf3[_0x1dccf3[_0x3a2165(0x363)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x1b3)]=0x232c]=_0x3a2165(0x1b3),_0x1dccf3[_0x1dccf3['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1dccf3[_0x1dccf3[_0x3a2165(0x42c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1dccf3[_0x1dccf3[_0x3a2165(0x243)]=0x2712]=_0x3a2165(0x243),_0x1dccf3[_0x1dccf3[_0x3a2165(0x4b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1dccf3[_0x1dccf3[_0x3a2165(0xcd)]=0x2714]=_0x3a2165(0xcd),_0x1dccf3[_0x1dccf3[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0x1dccf3))(It||{}),j=(_0xc4e8fb=>(_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x23f)]=0x0]=_0x3a2165(0x23f),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x34e)]=0x1]=_0x3a2165(0x34e),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x21f)]=0x2]='UNIVER_SHEET',_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x125)]=0x3]=_0x3a2165(0x125),_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x212)]=0x4]='UNIVER_PROJECT',_0xc4e8fb[_0xc4e8fb[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0xc4e8fb))(j||{}),b=(_0xd9a309=>(_0xd9a309[_0xd9a309['UNKNOWN_CMD']=0x0]=_0x3a2165(0x1a2),_0xd9a309[_0xd9a309[_0x3a2165(0xe0)]=0x1]=_0x3a2165(0xe0),_0xd9a309[_0xd9a309[_0x3a2165(0x44a)]=0x2]='JOIN',_0xd9a309[_0xd9a309[_0x3a2165(0x108)]=0x3]=_0x3a2165(0x108),_0xd9a309[_0xd9a309[_0x3a2165(0x334)]=0x4]=_0x3a2165(0x334),_0xd9a309[_0xd9a309[_0x3a2165(0x2ff)]=0x5]=_0x3a2165(0x2ff),_0xd9a309[_0xd9a309['RECV']=0x6]=_0x3a2165(0x4a6),_0xd9a309[_0xd9a309['UNRECOGNIZED']=-0x1]=_0x3a2165(0x3c2),_0xd9a309))(b||{}),We=(_0x2c6228=>(_0x2c6228[_0x2c6228[_0x3a2165(0x2b0)]=0x0]='UNKNOWN_CODE',_0x2c6228[_0x2c6228['OK']=0x1]='OK',_0x2c6228[_0x2c6228[_0x3a2165(0x432)]=0x2]=_0x3a2165(0x432),_0x2c6228[_0x2c6228[_0x3a2165(0x3c2)]=-0x1]=_0x3a2165(0x3c2),_0x2c6228))(We||{}),pt=(_0x3c9fb1=>(_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x13c)]=0x0]=_0x3a2165(0x13c),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x3ab)]=0x1]=_0x3a2165(0x3ab),_0x3c9fb1[_0x3c9fb1['HttpExport']=0x2]=_0x3a2165(0x398),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x2ca)]=0x3]=_0x3a2165(0x2ca),_0x3c9fb1[_0x3c9fb1['UnitSnapshot']=0x4]=_0x3a2165(0x2e0),_0x3c9fb1[_0x3c9fb1[_0x3a2165(0x3c2)]=-0x1]='UNRECOGNIZED',_0x3c9fb1))(pt||{});const A=_0x3a2165(0x431),ts={};function Ct(_0x29a4aa){const _0x430880=_0x3a2165;var _0x225af9,_0x52714f,_0x4f7fa2,_0x954e8c;const _0x18f088=_0x29a4aa['data'],_0x160e26=JSON['parse'](_0x18f088);switch(_0x160e26['cmd']){case b['HEARTBEAT']:case b[_0x430880(0xe0)]:{const _0x5e7a27=_0x160e26[_0x430880(0x355)];return{..._0x160e26,'data':_0x5e7a27,'cmd':_0x160e26[_0x430880(0x28f)]};}case b[_0x430880(0x44a)]:{const _0x3c96a4=_0x160e26['joinRsp'];return{..._0x160e26,'data':_0x3c96a4,'cmd':_0x160e26[_0x430880(0x28f)]};}case b[_0x430880(0x4a6)]:{const _0x50922f=_0x160e26[_0x430880(0x2e9)];switch(_0x50922f[_0x430880(0x217)]){case _[_0x430880(0x39b)][_0x430880(0x22f)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x225af9=_0x50922f[_0x430880(0x2c4)])==null?void 0x0:_0x225af9['cs']},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x476)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x52714f=_0x50922f[_0x430880(0x1ec)])==null?void 0x0:_0x52714f['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x3bd)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x4f7fa2=_0x50922f[_0x430880(0x273)])==null?void 0x0:_0x4f7fa2['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x179)]:return{..._0x160e26,'data':{..._0x50922f,'data':(_0x954e8c=_0x50922f[_0x430880(0x314)])==null?void 0x0:_0x954e8c['cs']},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)]['UPDATE_CURSOR']:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2da)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x35e)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2b2)]},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)]['USERS_LEAVE']:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x330)]},'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x112)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x309)]},'cmd':_0x160e26['cmd']};case _['CollaborationEvent'][_0x430880(0x249)]:case _[_0x430880(0x39b)][_0x430880(0x103)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x19e)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x393)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x309)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x38f)]:return{..._0x160e26,'data':_0x50922f,'cmd':_0x160e26['cmd']};case _[_0x430880(0x39b)][_0x430880(0x14f)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x3d7)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x41f)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x396)]},'cmd':_0x160e26[_0x430880(0x28f)]};case _[_0x430880(0x39b)][_0x430880(0x206)]:return{..._0x160e26,'data':{..._0x50922f,'data':_0x50922f[_0x430880(0x2b7)]},'cmd':_0x160e26[_0x430880(0x28f)]};default:return _0x160e26;}}default:return _0x160e26;}}function Et(_0x12b6aa){const _0xc6696c=_0x3a2165;switch(_0x12b6aa[_0xc6696c(0x28f)]){case b[_0xc6696c(0x2ff)]:case b[_0xc6696c(0xe0)]:return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa['cmd'],'routeKey':_0x12b6aa['routeKey']});case b[_0xc6696c(0x334)]:{let _0x5d94f8;switch(_0x12b6aa['data'][_0xc6696c(0x217)]){case _['CollaborationEvent'][_0xc6696c(0x3f8)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x3f8)],'updateCursorEvent':_0x12b6aa[_0xc6696c(0x124)]['data']};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x327)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x327)],'leaveEvent':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x35e)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x112)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x103)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x103)],'liveShareOperation':_0x12b6aa['data'][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x393)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x393)],'liveShareTerminate':_0x12b6aa['data'][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x357)]:{_0x5d94f8={'eventID':_[_0xc6696c(0x39b)][_0xc6696c(0x357)],'liveShareRequestHost':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x124)]};break;}case _[_0xc6696c(0x39b)][_0xc6696c(0x249)]:{_0x5d94f8={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5d94f8={'eventID':_0x12b6aa[_0xc6696c(0x124)][_0xc6696c(0x217)]};}return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'collaMsg':_0x5d94f8});}case b[_0xc6696c(0x44a)]:return JSON[_0xc6696c(0x3a6)]({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'joinReq':_0x12b6aa[_0xc6696c(0x124)]});case b[_0xc6696c(0x108)]:return JSON['stringify']({'cmd':_0x12b6aa[_0xc6696c(0x28f)],'routeKey':_0x12b6aa[_0xc6696c(0x4b1)],'leaveReq':_0x12b6aa[_0xc6696c(0x124)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ss=Object['defineProperty'],is=Object[_0x3a2165(0x383)],ns=(_0x556760,_0x14ba51,_0x1eb632,_0x59c842)=>{const _0x44cd1e=_0x3a2165;for(var _0x12f80f=_0x59c842>0x1?void 0x0:_0x59c842?is(_0x14ba51,_0x1eb632):_0x14ba51,_0x4dab70=_0x556760[_0x44cd1e(0x3a5)]-0x1,_0x13a685;_0x4dab70>=0x0;_0x4dab70--)(_0x13a685=_0x556760[_0x4dab70])&&(_0x12f80f=(_0x59c842?_0x13a685(_0x14ba51,_0x1eb632,_0x12f80f):_0x13a685(_0x12f80f))||_0x12f80f);return _0x59c842&&_0x12f80f&&ss(_0x14ba51,_0x1eb632,_0x12f80f),_0x12f80f;},oe=(_0x159e7d,_0x20944f)=>(_0x375f09,_0x5f072d)=>_0x20944f(_0x375f09,_0x5f072d,_0x159e7d);const Fe=a[_0x3a2165(0x9f)](_0x3a2165(0x26c));function rs(_0x2e0d4a,_0x24483f,_0x4e913e){const _0x35b93f=_0x3a2165;return _0x2e0d4a+'/'+_0x24483f+_0x35b93f(0x384)+_0x4e913e+_0x35b93f(0x14c);}exports['CollaborationSocketService']=class extends a[_0x3a2165(0x287)]{constructor(_0x45addf,_0x5e6063,_0x6f0d10,_0x1b7c9b,_0x41749f){const _0x2b61b7=_0x3a2165;super(),this['_http']=_0x45addf,this['_ws']=_0x5e6063,this[_0x2b61b7(0x105)]=_0x6f0d10,this[_0x2b61b7(0x42d)]=_0x1b7c9b,this[_0x2b61b7(0x192)]=_0x41749f;}['createSocket'](_0x11ba9f){const _0x41be86=_0x3a2165,_0x55ca57=this[_0x41be86(0x377)][_0x41be86(0x46d)](_0x11ba9f);if(!_0x55ca57)throw new Error(_0x41be86(0x40b));const _0x8fef3=new a['DisposableCollection'](),_0x158130=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57[_0x41be86(0x13f)][_0x41be86(0x1ee)](_0x4bfcb4=>_0x158130[_0x41be86(0x2c6)](_0x4bfcb4))),_0x8fef3[_0x41be86(0x2e5)](a[_0x41be86(0x114)](()=>_0x158130[_0x41be86(0x41c)]()));const _0x367c7f=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57['error$'][_0x41be86(0x1ee)](_0x31b7cf=>_0x367c7f['next'](_0x31b7cf))),_0x8fef3[_0x41be86(0x2e5)](a[_0x41be86(0x114)](()=>_0x367c7f[_0x41be86(0x41c)]()));const _0x40c145=new v[(_0x41be86(0x28d))]();_0x8fef3[_0x41be86(0x2e5)](_0x55ca57[_0x41be86(0x18e)][_0x41be86(0x1ee)](_0x517ea1=>{const _0x25b53c=_0x41be86,_0x4c7e6f=Ct(_0x517ea1);_0x40c145[_0x25b53c(0x2c6)](_0x4c7e6f);})),_0x8fef3['add'](a['toDisposable'](()=>_0x40c145[_0x41be86(0x41c)]()));let _0x4f5067;const _0x288896=()=>{const _0x414d00=_0x41be86;_0x367c7f[_0x414d00(0x2c6)](new Event(_0x414d00(0x48b))),_0x158130[_0x414d00(0x2c6)](new CloseEvent(_0x414d00(0x48b))),_0x4f5067[_0x414d00(0x453)]();};return _0x4f5067={'memberID':'','close$':_0x158130[_0x41be86(0xfd)](),'error$':_0x367c7f['asObservable'](),'open$':_0x55ca57[_0x41be86(0x3f2)],'message$':_0x40c145['asObservable'](),'send':_0x373f77=>{const _0x1a66b3=_0x41be86;if(_0x373f77[_0x1a66b3(0x28f)]===b[_0x1a66b3(0x334)]){if(_0x373f77[_0x1a66b3(0x124)]['eventID']===_['CollaborationEvent'][_0x1a66b3(0xc1)]){this[_0x1a66b3(0x3a2)](_0x4f5067,_0x373f77[_0x1a66b3(0x124)])[_0x1a66b3(0x45d)](_0x46e57d=>{const _0x2ad0a9=_0x1a66b3;this[_0x2ad0a9(0x42d)][_0x2ad0a9(0x442)](_0x46e57d),_0x288896();});return;}if(_0x373f77[_0x1a66b3(0x124)][_0x1a66b3(0x217)]===_[_0x1a66b3(0x39b)]['FETCH_MISSING']){const _0x208d73=_0x373f77[_0x1a66b3(0x124)];this[_0x1a66b3(0x159)](_0x208d73)[_0x1a66b3(0xe7)](_0x5c21d3=>{const _0x264121=_0x1a66b3;_0x40c145[_0x264121(0x2c6)]({'cmd':b['RECV'],'code':We['OK'],'routeKey':_0x208d73[_0x264121(0x124)][_0x264121(0x438)],'routeType':'','data':{'eventID':_['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5c21d3}}});})[_0x1a66b3(0x45d)](_0x3c7849=>{const _0x1a0738=_0x1a66b3;this[_0x1a0738(0x42d)]['error'](_0x3c7849),_0x288896();});return;}}_0x55ca57[_0x1a66b3(0x27d)](Et(_0x373f77));},'close':()=>{const _0x43c3e9=_0x41be86;_0x55ca57['close'](),_0x8fef3[_0x43c3e9(0x491)]();}},_0x4f5067;}async['_submitChangeset'](_0x3663a1,_0x36bf48){const _0x2b0eae=_0x3a2165;var _0x1cb50c,_0x421e1c;const {unitType:_0x5e140f,unitID:_0x1d2982,changeset:_0x36787d}=_0x36bf48[_0x2b0eae(0x124)],_0x51073d={'unitID':_0x1d2982,'memberID':_0x3663a1[_0x2b0eae(0x12e)],'type':_0x5e140f,'changeset':_[_0x2b0eae(0x4a1)](_0x36787d)},_0x40181e=this['_configService'][_0x2b0eae(0x347)](gt),_0xc786a1=this[_0x2b0eae(0x105)][_0x2b0eae(0x347)](A),_0x896d7c=rs((_0x421e1c=(_0x1cb50c=_0xc786a1==null?void 0x0:_0xc786a1[_0x2b0eae(0x3ed)])!=null?_0x1cb50c:_0x40181e)!=null?_0x421e1c:Qt,_0x5e140f,_0x1d2982);try{await this[_0x2b0eae(0x3df)][_0x2b0eae(0x468)](_0x896d7c,{'body':_0x51073d});}catch(_0x39eb8a){throw this[_0x2b0eae(0x42d)]['error'](_0x2b0eae(0x254),_0x2b0eae(0x478)),_0x39eb8a;}}async[_0x3a2165(0x159)](_0x4bb003){const _0xc0f60e=_0x3a2165,{unitID:_0x12274f,from:_0x290477,to:_0x48ff68,unitType:_0x5b8a3c}=_0x4bb003[_0xc0f60e(0x124)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x12274f,'type':_0x5b8a3c,'from':_0x290477,'to':_0x48ff68}))['changesets'];}},exports[_0x3a2165(0x106)]=ns([oe(0x0,a[_0x3a2165(0x426)](P['HTTPService'])),oe(0x1,a[_0x3a2165(0x426)](P['WebSocketService'])),oe(0x2,a[_0x3a2165(0xd1)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3a2165(0x3f6)])],exports[_0x3a2165(0x106)]);const os=_0x3a2165(0x400);function as(_0x13ac07){const _0x16e2f4=_0x3a2165;return JSON[_0x16e2f4(0x3a6)](_0x13ac07)[_0x16e2f4(0x3a5)];}class Ge{constructor(){const _0x10383c=_0x3a2165;d(this,_0x10383c(0x2a3),new v['Subject']()),d(this,_0x10383c(0x9d),this['_commentUpdate$'][_0x10383c(0xfd)]());}['onCommentUpdate'](_0x2aac1d){const _0x45630f=_0x3a2165;this[_0x45630f(0x2a3)][_0x45630f(0x2c6)](_0x2aac1d);}}var cs=Object[_0x3a2165(0x1e2)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x153b44,_0xd5777f,_0x9c09d4,_0x49732e)=>{const _0x34d4ad=_0x3a2165;for(var _0x2e42f2=_0x49732e>0x1?void 0x0:_0x49732e?ls(_0xd5777f,_0x9c09d4):_0xd5777f,_0x190847=_0x153b44[_0x34d4ad(0x3a5)]-0x1,_0x4ef504;_0x190847>=0x0;_0x190847--)(_0x4ef504=_0x153b44[_0x190847])&&(_0x2e42f2=(_0x49732e?_0x4ef504(_0xd5777f,_0x9c09d4,_0x2e42f2):_0x4ef504(_0x2e42f2))||_0x2e42f2);return _0x49732e&&_0x2e42f2&&cs(_0xd5777f,_0x9c09d4,_0x2e42f2),_0x2e42f2;},Ze=(_0x1b66bb,_0x3af97b)=>(_0x159782,_0xa86dff)=>_0x3af97b(_0x159782,_0xa86dff,_0x1b66bb);let q=class extends a[_0x3a2165(0x287)]{constructor(_0x11b56a,_0x3702a8){const _0x3cb432=_0x3a2165;super(),d(this,_0x3cb432(0x408),new Map()),(this[_0x3cb432(0x406)]=_0x11b56a,this['_userManagerService']=_0x3702a8,this[_0x3cb432(0x167)](a[_0x3cb432(0x114)](v['merge'](this[_0x3cb432(0x406)][_0x3cb432(0x30f)](a[_0x3cb432(0x461)][_0x3cb432(0x21f)])[_0x3cb432(0x447)](E[_0x3cb432(0x331)](_0x3287c3=>_0x3287c3[_0x3cb432(0x3ae)]())),this[_0x3cb432(0x406)][_0x3cb432(0x30f)](a[_0x3cb432(0x461)][_0x3cb432(0x34e)])[_0x3cb432(0x447)](E[_0x3cb432(0x331)](_0x5686b0=>_0x5686b0[_0x3cb432(0x3ae)]())),this['_univerInstanceService'][_0x3cb432(0x30f)](a[_0x3cb432(0x461)]['UNIVER_SLIDE'])['pipe'](E[_0x3cb432(0x331)](_0x53150e=>_0x53150e[_0x3cb432(0x3ae)]())))[_0x3cb432(0x1ee)](_0x3f547a=>this[_0x3cb432(0x403)](_0x3f547a)))));}[_0x3a2165(0x298)](_0x596787){const _0x12c629=_0x3a2165;this[_0x12c629(0x20d)][_0x12c629(0x298)](_0x596787);}[_0x3a2165(0x42a)](){const _0x19b6d6=_0x3a2165;return this[_0x19b6d6(0x20d)]['getCurrentUser']();}['updateMember'](_0x3117ec,_0x2f23ca){const _0x1a08b5=_0x3a2165;let _0x55dc16=this[_0x1a08b5(0x408)][_0x1a08b5(0x305)](_0x3117ec);_0x55dc16||(_0x55dc16=new _s(),this[_0x1a08b5(0x408)][_0x1a08b5(0x194)](_0x3117ec,_0x55dc16)),_0x55dc16[_0x1a08b5(0x49a)](_0x2f23ca);}[_0x3a2165(0x32f)](_0x4c8cca,_0x4ff81f){const _0x40e5c2=_0x3a2165,_0x4675e9=this[_0x40e5c2(0x408)][_0x40e5c2(0x305)](_0x4c8cca);_0x4675e9&&_0x4675e9[_0x40e5c2(0x32f)](_0x4ff81f);}['getRoom'](_0x2777c9){const _0x5e4f73=_0x3a2165;return this[_0x5e4f73(0x408)][_0x5e4f73(0x305)](_0x2777c9);}[_0x3a2165(0x3c4)](_0x46a56e,_0x5d4303){const _0xc16e63=_0x3a2165,_0x25fcc3=this[_0xc16e63(0x408)][_0xc16e63(0x305)](_0x46a56e);if(_0x25fcc3)return _0x25fcc3[_0xc16e63(0x3c4)](_0x5d4303);}[_0x3a2165(0x403)](_0x1936e4){const _0x19934c=_0x3a2165,_0x3f197a=this[_0x19934c(0x408)]['get'](_0x1936e4);_0x3f197a&&(_0x3f197a[_0x19934c(0x491)](),this[_0x19934c(0x408)]['delete'](_0x1936e4));}['dispose'](){const _0x105e59=_0x3a2165;this[_0x105e59(0x408)]['forEach'](_0x10224b=>_0x10224b['dispose']()),this[_0x105e59(0x408)][_0x105e59(0x3cc)]();}};q=hs([Ze(0x0,a[_0x3a2165(0x137)]),Ze(0x1,a['Inject'](a[_0x3a2165(0x2ba)]))],q);class _s extends a[_0x3a2165(0x287)]{constructor(){const _0x47fe22=_0x3a2165;super(...arguments),d(this,_0x47fe22(0x19c),new Map());}[_0x3a2165(0x491)](){const _0x222d9e=_0x3a2165;this[_0x222d9e(0x19c)]['clear']();}[_0x3a2165(0x49a)](_0xa5f80e){const _0x4d114f=_0x3a2165;this[_0x4d114f(0x19c)]['set'](_0xa5f80e[_0x4d114f(0x12e)],_0xa5f80e);}[_0x3a2165(0x32f)](_0x43275f){const _0x2a70c2=_0x3a2165;this[_0x2a70c2(0x19c)]['delete'](_0x43275f);}[_0x3a2165(0x3c4)](_0x2dffdd){const _0x5e0c38=_0x3a2165;return this[_0x5e0c38(0x19c)]['get'](_0x2dffdd);}}var us=Object[_0x3a2165(0x1e2)],ds=Object[_0x3a2165(0x383)],Ss=(_0x300953,_0x5da1e0,_0x9a96ac,_0x30741a)=>{const _0xb7331c=_0x3a2165;for(var _0x423e9f=_0x30741a>0x1?void 0x0:_0x30741a?ds(_0x5da1e0,_0x9a96ac):_0x5da1e0,_0x4a23d4=_0x300953[_0xb7331c(0x3a5)]-0x1,_0x1eb942;_0x4a23d4>=0x0;_0x4a23d4--)(_0x1eb942=_0x300953[_0x4a23d4])&&(_0x423e9f=(_0x30741a?_0x1eb942(_0x5da1e0,_0x9a96ac,_0x423e9f):_0x1eb942(_0x423e9f))||_0x423e9f);return _0x30741a&&_0x423e9f&&us(_0x5da1e0,_0x9a96ac,_0x423e9f),_0x423e9f;},B=(_0x525187,_0x3049b6)=>(_0x467e60,_0x1d22cc)=>_0x3049b6(_0x467e60,_0x1d22cc,_0x525187),$=(_0x52155e=>(_0x52155e[_0x52155e[_0x3a2165(0x3e8)]=0x0]='IDLE',_0x52155e[_0x52155e[_0x3a2165(0x183)]=0x1]=_0x3a2165(0x183),_0x52155e[_0x52155e[_0x3a2165(0x299)]=0x2]=_0x3a2165(0x299),_0x52155e[_0x52155e[_0x3a2165(0x1ae)]=0x3]=_0x3a2165(0x1ae),_0x52155e))($||{});exports[_0x3a2165(0x180)]=class extends a[_0x3a2165(0x441)]{constructor(_0x1a631f,_0x16d918,_0x368126,_0x128978,_0x5c112c,_0x21806b,_0x345816,_0x51ae7a,_0x55ec15,_0x54a76f){const _0x2fe09f=_0x3a2165;super(),d(this,_0x2fe09f(0x1a3),new v[(_0x2fe09f(0x2f5))](0x0)),d(this,_0x2fe09f(0x1df),this[_0x2fe09f(0x1a3)][_0x2fe09f(0xfd)]()),d(this,_0x2fe09f(0x1fb),new v[(_0x2fe09f(0x28d))]()),d(this,'event$',this[_0x2fe09f(0x1fb)][_0x2fe09f(0xfd)]()),d(this,_0x2fe09f(0x412)),d(this,_0x2fe09f(0xfb)),d(this,'_collaborationTimeoutTimer'),d(this,'_shouldReportTelemetry',!0x1),d(this,_0x2fe09f(0x25f),null),(this['_unitID']=_0x1a631f,this['_logService']=_0x368126,this[_0x2fe09f(0x341)]=_0x128978,this['_messageService']=_0x5c112c,this['_configService']=_0x21806b,this[_0x2fe09f(0x1d6)]=_0x345816,this[_0x2fe09f(0x2c3)]=_0x51ae7a,this['_commentService']=_0x55ec15,this[_0x2fe09f(0x2ac)]=_0x54a76f,this[_0x2fe09f(0x1ea)]=!!this['_telemetryService'],_0x16d918['pipe'](v[_0x2fe09f(0x27a)](this['dispose$']))[_0x2fe09f(0x1ee)](_0x15394e=>{const _0x501a5e=_0x2fe09f;var _0x120ae8;typeof _0x15394e>'u'||(this[_0x501a5e(0x412)]=_0x15394e,_0x15394e?(this[_0x501a5e(0x3cd)](_0x15394e),this[_0x501a5e(0xfb)]=_0x15394e[_0x501a5e(0x18e)][_0x501a5e(0x1ee)](_0x637c47=>{const _0x53a6d2=_0x501a5e;_0x637c47[_0x53a6d2(0x4b1)]===this['_unitID']&&this[_0x53a6d2(0x17f)](_0x637c47);})):(this[_0x501a5e(0x2a5)](),this['_sessionStatus$'][_0x501a5e(0x2c6)](0x2),(_0x120ae8=this[_0x501a5e(0xfb)])==null||_0x120ae8['unsubscribe'](),this[_0x501a5e(0xfb)]=null));}),this[_0x2fe09f(0x167)](this[_0x2fe09f(0x341)][_0x2fe09f(0x127)](()=>{const _0x4bead8=_0x2fe09f;var _0x13d099;(_0x13d099=this[_0x4bead8(0x412)])==null||_0x13d099['send']({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x3a2165(0x1a7)](){const _0x25999b=_0x3a2165;return this[_0x25999b(0x1a3)][_0x25999b(0x3bf)]();}[_0x3a2165(0x446)](){const _0x1de0d5=_0x3a2165;var _0x2c6d7d,_0x6d62e0;return(_0x6d62e0=(_0x2c6d7d=this['_socket'])==null?void 0x0:_0x2c6d7d[_0x1de0d5(0x12e)])!=null?_0x6d62e0:null;}[_0x3a2165(0x491)](){const _0x3d4087=_0x3a2165;super[_0x3d4087(0x491)](),this['dispose$'][_0x3d4087(0x2c6)](),this['dispose$']['complete']();}[_0x3a2165(0x453)](){const _0x8feb0e=_0x3a2165;var _0xa7acc1,_0x1f173a;this[_0x8feb0e(0x2a5)](),(_0xa7acc1=this['_socket'])==null||_0xa7acc1[_0x8feb0e(0x27d)]({'cmd':b[_0x8feb0e(0x108)],'data':{'roomID':this[_0x8feb0e(0xfe)]}}),(_0x1f173a=this[_0x8feb0e(0x412)])==null||_0x1f173a['close'](),this[_0x8feb0e(0x1fb)][_0x8feb0e(0x41c)](),this[_0x8feb0e(0x1a3)]['complete'](),this['dispose']();}['_onCombEvent'](_0x3d4c7c){const _0x59a221=_0x3a2165;_0x3d4c7c['cmd']===b[_0x59a221(0x44a)]?this[_0x59a221(0x401)](_0x3d4c7c):_0x3d4c7c[_0x59a221(0x28f)]===b[_0x59a221(0x4a6)]&&this[_0x59a221(0x4b3)](_0x3d4c7c);}[_0x3a2165(0x3cd)](_0x53502e){const _0x1bb7a8=_0x3a2165;this[_0x1bb7a8(0x1a3)]['next'](0x1),_0x53502e[_0x1bb7a8(0x27d)]({'cmd':b[_0x1bb7a8(0x44a)],'routeKey':this[_0x1bb7a8(0xfe)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1bb7a8(0xfe)]}]}});}[_0x3a2165(0x401)](_0x4dabb5){const _0x37b297=_0x3a2165;var _0x123a9b;if(_0x4dabb5[_0x37b297(0x2f2)]===We[_0x37b297(0x432)]){this['_messageService'][_0x37b297(0x113)]({'type':X[_0x37b297(0x388)]['Warning'],'content':this[_0x37b297(0x1d6)]['t'](_0x37b297(0x100))}),this['_sessionStatus$'][_0x37b297(0x2c6)](0x2);return;}this[_0x37b297(0x1a3)][_0x37b297(0x2c6)](0x3);const _0x110fdb=(_0x123a9b=_0x4dabb5['data'][_0x37b297(0x471)][this['_unitID']])==null?void 0x0:_0x123a9b[_0x37b297(0xf7)];_0x110fdb&&_0x110fdb[_0x37b297(0x337)](_0x48c2c7=>this[_0x37b297(0x2c3)][_0x37b297(0x49a)](this['_unitID'],_0x48c2c7));}[_0x3a2165(0x4b3)](_0x1bf2b3){const _0x36774a=_0x3a2165;try{const _0x40e9d6=_0x1bf2b3['data'];switch(_0x40e9d6[_0x36774a(0x217)]){case _[_0x36774a(0x39b)][_0x36774a(0x35e)]:this[_0x36774a(0x210)](_0x40e9d6),this[_0x36774a(0x1fb)]['next'](_0x40e9d6);break;case _[_0x36774a(0x39b)]['USERS_LEAVE']:this[_0x36774a(0x3fe)](_0x40e9d6),this[_0x36774a(0x1fb)]['next'](_0x40e9d6);break;case _['CollaborationEvent']['CHANGESET_ACK']:this[_0x36774a(0x379)](),this['_clearCollaborationTimeoutTimer'](),this[_0x36774a(0x1fb)][_0x36774a(0x2c6)](_0x40e9d6);break;case _[_0x36774a(0x39b)]['MSG_FOR_ERROR']:this[_0x36774a(0x42d)][_0x36774a(0x442)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x36774a(0x3a6)](_0x40e9d6)),this['_event$']['next'](_0x40e9d6);break;case _[_0x36774a(0x39b)][_0x36774a(0x14f)]:this[_0x36774a(0x30e)][_0x36774a(0x218)](_0x40e9d6[_0x36774a(0x124)]),this['_event$'][_0x36774a(0x2c6)](_0x40e9d6);break;default:this[_0x36774a(0x1fb)]['next'](_0x40e9d6);}}catch(_0x2b0965){this[_0x36774a(0x42d)]['error'](_0x2b0965,_0x1bf2b3);}}[_0x3a2165(0x210)](_0x2d3938){const _0xd482fe=_0x3a2165;this[_0xd482fe(0x2c3)][_0xd482fe(0x49a)](this[_0xd482fe(0xfe)],_0x2d3938['data']);}['_onUserLeave'](_0x54fe1a){const _0x432ea7=_0x3a2165;this[_0x432ea7(0x2c3)][_0x432ea7(0x32f)](this[_0x432ea7(0xfe)],_0x54fe1a[_0x432ea7(0x124)][_0x432ea7(0x12e)]);}async[_0x3a2165(0x27d)](_0x38a1df,_0x2a4b79){const _0x39228e=_0x3a2165;if(this[_0x39228e(0x1a7)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x38a1df['eventID']===_['CollaborationEvent'][_0x39228e(0xc1)]&&(this[_0x39228e(0x46c)](),this[_0x39228e(0x14a)](_0x38a1df)),this[_0x39228e(0x412)][_0x39228e(0x27d)]({'cmd':b[_0x39228e(0x334)],'routeKey':_0x2a4b79,'routeType':'','data':_0x38a1df});}catch(_0x5ecbf7){this['_logService']['error'](_0x5ecbf7);}}[_0x3a2165(0x46c)](){const _0x286c2d=_0x3a2165;var _0x1bc543;this[_0x286c2d(0x220)]=window[_0x286c2d(0x25c)](()=>{const _0x11e489=_0x286c2d;this[_0x11e489(0x220)]=null,this[_0x11e489(0x2bb)]['show']({'type':X[_0x11e489(0x388)][_0x11e489(0x104)],'content':this['_localeService']['t'](_0x11e489(0xa1))});},(_0x1bc543=this[_0x286c2d(0x105)][_0x286c2d(0x347)](Ve))!=null?_0x1bc543:St);}[_0x3a2165(0x262)](){const _0x5757f8=_0x3a2165;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5757f8(0x220)]),this[_0x5757f8(0x220)]=null);}[_0x3a2165(0x14a)](_0x22c178){if(!this['_shouldReportTelemetry'])return;const {data:_0x6e8918}=_0x22c178,{unitID:_0x53157f,changeset:_0x59b79d}=_0x6e8918,{mutations:_0x241654,type:_0x1da18a}=_0x59b79d;this['_telemetryInfo']={'unitId':_0x53157f,'type':_0x1da18a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x241654)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x119ee2=_0x3a2165;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x119ee2(0x42d)]['error'](_0x119ee2(0x254),_0x119ee2(0x2ed));return;}this['_telemetryInfo'][_0x119ee2(0xf0)]=performance[_0x119ee2(0x445)](),this[_0x119ee2(0x25f)]['duration']=this[_0x119ee2(0x25f)][_0x119ee2(0xf0)]-this['_telemetryInfo'][_0x119ee2(0x425)],this[_0x119ee2(0x2ac)]['capture'](os,this[_0x119ee2(0x25f)]),this[_0x119ee2(0x25f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=Ss([B(0x2,a['ILogService']),B(0x3,N['IBeforeCloseService']),B(0x4,N['IMessageService']),B(0x5,a[_0x3a2165(0xd1)]),B(0x6,a[_0x3a2165(0x426)](a['LocaleService'])),B(0x7,a[_0x3a2165(0x426)](q)),B(0x8,a[_0x3a2165(0x426)](Ge)),B(0x9,a[_0x3a2165(0x4b6)](Vt[_0x3a2165(0x2b9)]))],exports[_0x3a2165(0x180)]);var vs=Object[_0x3a2165(0x1e2)],fs=Object[_0x3a2165(0x383)],gs=(_0x2415ae,_0x4ee83e,_0x413de9,_0x5f4904)=>{const _0x28f962=_0x3a2165;for(var _0x1e0ead=_0x5f4904>0x1?void 0x0:_0x5f4904?fs(_0x4ee83e,_0x413de9):_0x4ee83e,_0x25cb45=_0x2415ae[_0x28f962(0x3a5)]-0x1,_0x771440;_0x25cb45>=0x0;_0x25cb45--)(_0x771440=_0x2415ae[_0x25cb45])&&(_0x1e0ead=(_0x5f4904?_0x771440(_0x4ee83e,_0x413de9,_0x1e0ead):_0x771440(_0x1e0ead))||_0x1e0ead);return _0x5f4904&&_0x1e0ead&&vs(_0x4ee83e,_0x413de9,_0x1e0ead),_0x1e0ead;},Z=(_0x3a2ee0,_0x42c3db)=>(_0x403ec5,_0x4f4358)=>_0x42c3db(_0x403ec5,_0x4f4358,_0x3a2ee0);exports[_0x3a2165(0x16c)]=class extends a[_0x3a2165(0x287)]{constructor(_0x476462,_0x511761,_0x36598e,_0x323bc2,_0x53cb0e,_0x51f4b1){const _0x1c9fd9=_0x3a2165;super(),d(this,_0x1c9fd9(0x157),new v['BehaviorSubject'](void 0x0)),d(this,_0x1c9fd9(0x2a1),this[_0x1c9fd9(0x157)][_0x1c9fd9(0xfd)]()),d(this,_0x1c9fd9(0x3ea),null),d(this,'_sessions',new Map()),d(this,_0x1c9fd9(0x37b),new v[(_0x1c9fd9(0x2f5))]($[_0x1c9fd9(0x3e8)])),d(this,_0x1c9fd9(0x3fb),this[_0x1c9fd9(0x37b)][_0x1c9fd9(0xfd)]()),d(this,_0x1c9fd9(0x2e7),!0x1),d(this,'_retryConnectingTimer'),d(this,'_retryCount',0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x1c9fd9(0x356)),(this[_0x1c9fd9(0x3be)]=_0x476462,this[_0x1c9fd9(0x1d6)]=_0x511761,this[_0x1c9fd9(0x2bb)]=_0x36598e,this['_logService']=_0x323bc2,this[_0x1c9fd9(0x105)]=_0x53cb0e,this['_socketService']=_0x51f4b1,this['_initEventListeners']());}get[_0x3a2165(0x412)](){const _0x2cf177=_0x3a2165;return this['_socket$'][_0x2cf177(0x3bf)]();}[_0x3a2165(0x266)](){const _0x2f340b=_0x3a2165;this[_0x2f340b(0x41d)](),this['_listenToOnlineEvent']();}[_0x3a2165(0x491)](){const _0x2b3598=_0x3a2165;super['dispose'](),this[_0x2b3598(0x189)][_0x2b3598(0x337)](_0x1d64f3=>_0x1d64f3['dispose']()),this[_0x2b3598(0x189)][_0x2b3598(0x3cc)](),this[_0x2b3598(0x37b)][_0x2b3598(0x41c)]();}async[_0x3a2165(0x41a)](_0x50b27f){const _0x4ccb05=_0x3a2165;if(this[_0x4ccb05(0x189)][_0x4ccb05(0x4ac)](_0x50b27f))return this[_0x4ccb05(0x189)][_0x4ccb05(0x305)](_0x50b27f);this[_0x4ccb05(0x1cd)]();const _0x5eb05b=this['_injector']['createInstance'](exports[_0x4ccb05(0x180)],_0x50b27f,this['_socket$'][_0x4ccb05(0xfd)]());return this['_sessions'][_0x4ccb05(0x194)](_0x50b27f,_0x5eb05b),_0x5eb05b;}[_0x3a2165(0xa8)](_0x283814){const _0x53d826=_0x3a2165;var _0x28d355;const _0x3a7b56=this[_0x53d826(0x189)]['get'](_0x283814);_0x3a7b56&&(this[_0x53d826(0x189)]['delete'](_0x283814),_0x3a7b56['close']()),this[_0x53d826(0x189)][_0x53d826(0x20e)]||(_0x28d355=this[_0x53d826(0x412)])==null||_0x28d355['close']();}['reconnect'](){const _0x4a5278=_0x3a2165;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x4a5278(0x40f)]),this[_0x4a5278(0x40f)]=null),this[_0x4a5278(0x3c9)]();}[_0x3a2165(0x30a)](){const _0xf75f75=_0x3a2165;var _0x22c086,_0x7e695d;const _0x20dab8=this[_0xf75f75(0x105)][_0xf75f75(0x347)](ut),_0x57103f=this[_0xf75f75(0x105)][_0xf75f75(0x347)](A),_0x5db0cb=(_0x7e695d=(_0x22c086=_0x57103f==null?void 0x0:_0x57103f[_0xf75f75(0x25d)])!=null?_0x22c086:_0x20dab8)!=null?_0x7e695d:Xt,_0x742348=this[_0xf75f75(0x1d0)][_0xf75f75(0x46d)](_0x5db0cb);return this[_0xf75f75(0x3ea)]=_0x742348,_0x742348;}[_0x3a2165(0x1cd)](){const _0x1c4aa6=_0x3a2165;var _0x5bf577,_0x454282;try{const _0x1fc8a2=(_0x454282=(_0x5bf577=this[_0x1c4aa6(0x412)])!=null?_0x5bf577:this['_candidateSocket'])!=null?_0x454282:this['_createSocket']();if(_0x1fc8a2){const _0x3e5a4a=_0x1fc8a2[_0x1c4aa6(0x27d)];_0x1fc8a2['send']=_0x563fe8=>(this[_0x1c4aa6(0x420)](),_0x3e5a4a[_0x1c4aa6(0x333)](_0x1fc8a2,[_0x563fe8])),_0x1fc8a2[_0x1c4aa6(0x18e)][_0x1c4aa6(0x1ee)](_0x3256b9=>this[_0x1c4aa6(0x2fc)](_0x1fc8a2,_0x3256b9)),_0x1fc8a2[_0x1c4aa6(0x26f)][_0x1c4aa6(0x447)](E['take'](0x1))[_0x1c4aa6(0x1ee)](_0x351e66=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x351e66)),_0x1fc8a2[_0x1c4aa6(0x3f2)][_0x1c4aa6(0x447)](E['take'](0x1))[_0x1c4aa6(0x1ee)](()=>{this['_onConnectionOpen'](_0x1fc8a2);}),_0x1fc8a2['close$'][_0x1c4aa6(0x447)](E[_0x1c4aa6(0x449)](0x1))['subscribe'](_0x1ad662=>{const _0x2f26d0=_0x1c4aa6;this['_logService'][_0x2f26d0(0x3aa)](_0x2f26d0(0xa0),_0x2f26d0(0x464),_0x1ad662),this[_0x2f26d0(0x3c7)]();});}}catch(_0x3a21da){this[_0x1c4aa6(0x42d)][_0x1c4aa6(0x442)](_0x3a21da),this[_0x1c4aa6(0x3c7)]();}}[_0x3a2165(0x436)](_0x3036e7){const _0x594b7e=_0x3a2165;this['_logService']['debug'](_0x594b7e(0xa0),'socket\x20open.'),_0x3036e7[_0x594b7e(0x27d)]({'cmd':b['HELLO']}),this[_0x594b7e(0x420)]();}['_listenToOfflineEvent'](){const _0x17d21e=_0x3a2165;window[_0x17d21e(0x391)]('offline',()=>this['_onOffline']());}[_0x3a2165(0xb1)](){const _0x42cd8b=_0x3a2165;this[_0x42cd8b(0x2e7)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x42cd8b(0x2c6)]($[_0x42cd8b(0x299)]),this[_0x42cd8b(0x157)][_0x42cd8b(0x2c6)](null),this[_0x42cd8b(0x416)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x3dd8b2=_0x3a2165;var _0x2409e9;this[_0x3dd8b2(0xb1)](),this['_retryCount']<((_0x2409e9=this[_0x3dd8b2(0x105)]['getConfig'](vt))!=null?_0x2409e9:Jt)?(this[_0x3dd8b2(0x2bb)][_0x3dd8b2(0x113)]({'key':_0x3dd8b2(0x1c7),'type':X['MessageType']['Warning'],'content':this[_0x3dd8b2(0x1d6)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x3dd8b2(0x2bb)][_0x3dd8b2(0x113)]({'key':_0x3dd8b2(0x1c7),'type':X['MessageType'][_0x3dd8b2(0x104)],'content':this[_0x3dd8b2(0x1d6)]['t'](_0x3dd8b2(0x302))});}['_listenToOnlineEvent'](){const _0x493c4b=_0x3a2165,_0x16ccc5=()=>{const _0x14e773=_0x4ca1;this[_0x14e773(0x412)]||this['reconnect']();},_0x4023ca=()=>{const _0x4ccdac=_0x4ca1;this[_0x4ccdac(0x412)]||document['visibilityState']==='hidden'||this['reconnect']();};window[_0x493c4b(0x391)](_0x493c4b(0x1b2),_0x16ccc5),document['addEventListener'](_0x493c4b(0x131),_0x4023ca);}[_0x3a2165(0x3c9)](){const _0x42ebe5=_0x3a2165;var _0x17d506;const _0x1c0f52=this[_0x42ebe5(0xd7)],_0x2d5514=this[_0x42ebe5(0x105)][_0x42ebe5(0x347)](A),_0x523cfd=_0x1c0f52===0x0?0x0:((_0x17d506=_0x2d5514==null?void 0x0:_0x2d5514[_0x42ebe5(0x1ac)])!=null?_0x17d506:zt)*0x2**_0x1c0f52;this['_retryConnectingTimer']=window[_0x42ebe5(0x25c)](()=>{const _0x52ac96=_0x42ebe5;clearTimeout(this['_retryConnectingTimer']),this[_0x52ac96(0x40f)]=null,this[_0x52ac96(0x1cd)]();},_0x523cfd),this[_0x42ebe5(0xd7)]+=0x1;}['_onMessage'](_0x31e57c,_0x293d33){const _0x3bf13f=_0x3a2165,{cmd:_0x68f1fb}=_0x293d33;_0x68f1fb===b['HELLO']&&!this[_0x3bf13f(0x2e7)]&&(_0x31e57c[_0x3bf13f(0x12e)]=_0x293d33['data']['memberID'],this['_socket$'][_0x3bf13f(0x2c6)](_0x31e57c),this['_status$'][_0x3bf13f(0x2c6)]($[_0x3bf13f(0x1ae)]),this[_0x3bf13f(0x2e7)]=!0x0,this[_0x3bf13f(0x3ea)]=null),_0x68f1fb===b[_0x3bf13f(0x2ff)]&&this[_0x3bf13f(0x416)](),this['_rescheduleHeartbeat']();}[_0x3a2165(0x420)](){const _0x32267d=_0x3a2165;var _0x28b73b;this[_0x32267d(0x410)](),this[_0x32267d(0x3b4)]=window[_0x32267d(0x25c)](()=>this[_0x32267d(0x394)](),(_0x28b73b=this[_0x32267d(0x105)][_0x32267d(0x347)](dt))!=null?_0x28b73b:qt);}[_0x3a2165(0x394)](){const _0x10cd62=_0x3a2165;this[_0x10cd62(0x412)][_0x10cd62(0x27d)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x3a2165(0x17d)](){const _0x4b2cca=_0x3a2165;var _0x2a90a6;this[_0x4b2cca(0x356)]=window[_0x4b2cca(0x25c)](()=>this[_0x4b2cca(0x3c7)](),(_0x2a90a6=this['_configService'][_0x4b2cca(0x347)](Ve))!=null?_0x2a90a6:St);}[_0x3a2165(0x410)](){const _0x44e49b=_0x3a2165;this[_0x44e49b(0x3b4)]!=null&&(clearTimeout(this[_0x44e49b(0x3b4)]),this[_0x44e49b(0x3b4)]=null);}[_0x3a2165(0x416)](){const _0x30c5f8=_0x3a2165;this[_0x30c5f8(0x356)]!=null&&(clearTimeout(this[_0x30c5f8(0x356)]),this[_0x30c5f8(0x356)]=null);}},exports[_0x3a2165(0x16c)]=gs([Z(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),Z(0x1,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3a2165(0x490)]),Z(0x4,a[_0x3a2165(0xd1)]),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x3a2165(0x1e2)],Is=Object[_0x3a2165(0x383)],ps=(_0x40ed89,_0x3428e0,_0x6f9317,_0x4682ed)=>{const _0x2b5cb3=_0x3a2165;for(var _0x218e7c=_0x4682ed>0x1?void 0x0:_0x4682ed?Is(_0x3428e0,_0x6f9317):_0x3428e0,_0x37e570=_0x40ed89[_0x2b5cb3(0x3a5)]-0x1,_0x434ed2;_0x37e570>=0x0;_0x37e570--)(_0x434ed2=_0x40ed89[_0x37e570])&&(_0x218e7c=(_0x4682ed?_0x434ed2(_0x3428e0,_0x6f9317,_0x218e7c):_0x434ed2(_0x218e7c))||_0x218e7c);return _0x4682ed&&_0x218e7c&&ms(_0x3428e0,_0x6f9317,_0x218e7c),_0x218e7c;},De=(_0x425e21,_0x37ece2)=>(_0x31ebda,_0x20a17b)=>_0x37ece2(_0x31ebda,_0x20a17b,_0x425e21);let fe=class{constructor(_0xce1ecd,_0x43c2f4,_0x4536fe){const _0x5582b3=_0x3a2165;this['_injector']=_0xce1ecd,this[_0x5582b3(0x316)]=_0x43c2f4,this['_renderManagerService']=_0x4536fe;}[_0x3a2165(0x107)](_0x5ef986){const _0x4346d7=_0x3a2165;this[_0x4346d7(0x328)](_0x5ef986),this[_0x4346d7(0x39c)](_0x5ef986);}['transformRemoteChangeset'](_0x1dc880){const _0x414440=_0x3a2165,{unitID:_0x1eef79}=_0x1dc880,_0x3a967d=this[_0x414440(0x417)][_0x414440(0x2aa)](_0x1eef79)[_0x414440(0x2db)](w[_0x414440(0x3dd)]),{redoCache:_0x481770}=_0x3a967d[_0x414440(0x373)]();if(_0x481770[_0x414440(0x3a5)]===0x0)return _0x1dc880;let _0x409745=a[_0x414440(0x483)][_0x414440(0x204)](_0x1dc880[_0x414440(0x31e)][0x0]);for(let _0x41e843=0x0;_0x41e843<_0x481770['length'];_0x41e843++){const _0x1c01e9={'id':_0x414440(0x132),'params':{..._0x481770[_0x41e843]}},_0x3a41b6=this[_0x414440(0x316)][_0x414440(0x43a)](_0x409745,_0x1c01e9,!0x1);if(_[_0x414440(0x45c)](_0x3a41b6))throw _0x3a41b6[_0x414440(0x442)];_0x409745=_0x3a41b6[_0x414440(0x231)];}return{...a[_0x414440(0x483)][_0x414440(0x204)](_0x1dc880),'mutations':[_0x409745]};}[_0x3a2165(0x328)](_0x139329){const _0x22ab1c=_0x3a2165,{unitID:_0x57bacc}=_0x139329,_0x47936b=this[_0x22ab1c(0x417)]['getRenderById'](_0x57bacc)[_0x22ab1c(0x2db)](w[_0x22ab1c(0x3dd)]),{undoCache:_0x42db13,redoCache:_0x32eea2}=_0x47936b[_0x22ab1c(0x373)]();if(_0x42db13['length']===0x0||_0x32eea2[_0x22ab1c(0x3a5)]===0x0)return;const _0x5023fd=[],_0x56e4ee=[];let _0x53df6b=a[_0x22ab1c(0x483)][_0x22ab1c(0x204)](_0x139329[_0x22ab1c(0x31e)][0x0]),_0x20dc60=a[_0x22ab1c(0x483)][_0x22ab1c(0x204)](_0x139329[_0x22ab1c(0x31e)][0x0]);for(let _0x4852d7=_0x42db13[_0x22ab1c(0x3a5)]-0x1;_0x4852d7>=0x0;_0x4852d7--){const _0x49d6b0={'id':_0x22ab1c(0x132),'params':{..._0x42db13[_0x4852d7]}},_0x35674d={'id':_0x22ab1c(0x132),'params':{..._0x32eea2[_0x4852d7]}},_0x599226=this[_0x22ab1c(0x316)][_0x22ab1c(0x43a)](_0x53df6b,_0x49d6b0,!0x1),_0x3b27a4=this['_transformService'][_0x22ab1c(0x43a)](_0x20dc60,_0x35674d,!0x1);if(_[_0x22ab1c(0x45c)](_0x599226))throw _0x599226['error'];if(_[_0x22ab1c(0x45c)](_0x3b27a4))throw _0x3b27a4['error'];_0x5023fd[_0x22ab1c(0xda)](_0x599226[_0x22ab1c(0x390)][_0x22ab1c(0x101)]),_0x56e4ee[_0x22ab1c(0xda)](_0x3b27a4[_0x22ab1c(0x390)][_0x22ab1c(0x101)]),_0x53df6b=_0x599226['m1Prime'],_0x20dc60=_0x3b27a4['m1Prime'];}_0x47936b[_0x22ab1c(0x1a8)]({'undoCache':_0x5023fd,'redoCache':_0x56e4ee});}['_transformPreviousActiveRange'](_0xd583cf){const _0xee2bfb=_0x3a2165,{unitID:_0x3e9469}=_0xd583cf,_0x5ef86c=this[_0xee2bfb(0x417)][_0xee2bfb(0x2aa)](_0x3e9469)[_0xee2bfb(0x2db)](w[_0xee2bfb(0x3dd)]),_0x67910a=_0x5ef86c[_0xee2bfb(0x34c)]();if(_0x67910a==null)return;const _0x2b2573=[{'id':_0xee2bfb(0x132),'params':{'unitId':_0xd583cf[_0xee2bfb(0x438)],'actions':null,'textRanges':[_0x67910a]}}],_0x244797=this['_transformService'][_0xee2bfb(0xf5)](_0xd583cf,_0x2b2573);if(!_[_0xee2bfb(0x16b)](_0x244797))throw _0x244797[_0xee2bfb(0x442)];const _0x10b86c=_0x244797[_0xee2bfb(0x390)][0x0][_0xee2bfb(0x101)]['textRanges'];Array[_0xee2bfb(0x203)](_0x10b86c)&&_0x10b86c[_0xee2bfb(0x3a5)]&&_0x5ef86c[_0xee2bfb(0x116)](_0x10b86c[0x0]);}};fe=ps([De(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),De(0x1,_[_0x3a2165(0xc6)]),De(0x2,R['IRenderManagerService'])],fe);var Cs=Object[_0x3a2165(0x1e2)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x10a163,_0x4740f8,_0x3afc27,_0xa30897)=>{for(var _0x2fc41f=_0xa30897>0x1?void 0x0:_0xa30897?Es(_0x4740f8,_0x3afc27):_0x4740f8,_0x198879=_0x10a163['length']-0x1,_0x38f30f;_0x198879>=0x0;_0x198879--)(_0x38f30f=_0x10a163[_0x198879])&&(_0x2fc41f=(_0xa30897?_0x38f30f(_0x4740f8,_0x3afc27,_0x2fc41f):_0x38f30f(_0x2fc41f))||_0x2fc41f);return _0xa30897&&_0x2fc41f&&Cs(_0x4740f8,_0x3afc27,_0x2fc41f),_0x2fc41f;},ae=(_0x3d42e5,_0x41d291)=>(_0x368fe1,_0x20e283)=>_0x41d291(_0x368fe1,_0x20e283,_0x3d42e5);exports[_0x3a2165(0x30d)]=class extends a['Disposable']{constructor(_0xedf4f,_0x24eed9,_0x1b62fe,_0x1910c7,_0x34dcf8){const _0x542ac7=_0x3a2165;super(),d(this,_0x542ac7(0xab),new Map()),d(this,_0x542ac7(0x2bd),new Map()),d(this,_0x542ac7(0x4a8),!0x1),(this['_configService']=_0xedf4f,this[_0x542ac7(0x45e)]=_0x24eed9,this[_0x542ac7(0x341)]=_0x1b62fe,this[_0x542ac7(0x1d6)]=_0x1910c7,this['_revisionService']=_0x34dcf8,this[_0x542ac7(0x11f)]());}[_0x3a2165(0x1b7)](){const _0x1772fb=_0x3a2165;this[_0x1772fb(0x4a8)]=!0x0;}[_0x3a2165(0x3bc)](){const _0x51f3cb=_0x3a2165;this[_0x51f3cb(0x4a8)]=!0x1;}[_0x3a2165(0x491)](){const _0x59a407=_0x3a2165;this[_0x59a407(0x177)]()[_0x59a407(0xe7)](()=>super[_0x59a407(0x491)]());}async[_0x3a2165(0x152)](_0x3e19a7){const _0x4b12b2=_0x3a2165;return this[_0x4b12b2(0x4a8)]?null:this[_0x4b12b2(0x45e)][_0x4b12b2(0x1dc)](Qe(_0x3e19a7));}async['saveOfflineData'](_0x23fb5d,_0x188066){const _0x19f01a=_0x3a2165;return!!this['_localStorageService'][_0x19f01a(0x3e0)](_0x23fb5d,_0x188066);}[_0x3a2165(0x200)](_0x25ceff,_0x2affb1,_0x2169ce,_0xde052e){const _0x4eddc5=_0x3a2165,_0x52efd4=this[_0x4eddc5(0x2d0)]['getCurrentRevOfUnit'](_0x25ceff);this['_cachedData'][_0x4eddc5(0x194)](_0x25ceff,{'unitID':_0x25ceff,'type':_0x2affb1,'awaitingChangeset':_0x2169ce,'mutations':_0xde052e,'rev':_0x52efd4}),this[_0x4eddc5(0x2bd)]['has'](_0x25ceff)||this[_0x4eddc5(0xcf)](_0x25ceff);}['_scheduleSaving'](_0x13aeb7){const _0x5751a8=_0x3a2165,_0x396b3e=this[_0x5751a8(0x2a2)]();_0x396b3e===0x0?this[_0x5751a8(0x35c)](_0x13aeb7):this[_0x5751a8(0x2bd)][_0x5751a8(0x194)](_0x13aeb7,setTimeout(()=>this[_0x5751a8(0x35c)](_0x13aeb7),_0x396b3e));}['_getSaveTimeout'](){const _0x1d5824=_0x3a2165;var _0x1056ea;return(_0x1056ea=this[_0x1d5824(0x105)][_0x1d5824(0x347)](ft))!=null?_0x1056ea:Zt;}[_0x3a2165(0x35c)](_0x5d5cca){const _0x201b37=_0x3a2165,_0x30cfe0=this[_0x201b37(0x2bd)][_0x201b37(0x305)](_0x5d5cca);return _0x30cfe0!==void 0x0&&window[_0x201b37(0x1de)](_0x30cfe0),this[_0x201b37(0x45e)][_0x201b37(0x3e0)](Qe(_0x5d5cca),this['_cachedData']['get'](_0x5d5cca))['then'](()=>this[_0x201b37(0x2bd)]['delete'](_0x5d5cca));}async['exhaustSavingTask'](){const _0x5682cf=_0x3a2165,_0x3db66e=[];this[_0x5682cf(0x2bd)]['forEach']((_0x16e7f9,_0x16fba7)=>{const _0x26aab5=_0x5682cf;window['clearTimeout'](_0x16e7f9),_0x3db66e[_0x26aab5(0x339)](this[_0x26aab5(0x35c)](_0x16fba7)['then'](()=>{const _0x4702dc=_0x26aab5;this['_saveTaskMap'][_0x4702dc(0x140)](_0x16fba7);}));}),await Promise[_0x5682cf(0x29e)](_0x3db66e);}[_0x3a2165(0x11f)](){const _0x2880da=_0x3a2165;this['disposeWithMe'](this[_0x2880da(0x341)][_0x2880da(0x27c)](()=>{const _0x161c46=_0x2880da;if(this['_saveTaskMap']['size'])return this[_0x161c46(0x1d6)]['t'](_0x161c46(0x156));}));}},exports[_0x3a2165(0x30d)]=bs([ae(0x0,a[_0x3a2165(0xd1)]),ae(0x1,a[_0x3a2165(0x24f)]),ae(0x2,N[_0x3a2165(0x1fe)]),ae(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),ae(0x4,a['Inject'](_[_0x3a2165(0xc9)]))],exports[_0x3a2165(0x30d)]);function Qe(_0x3c373d){const _0x2e0606=_0x3a2165;return _0x2e0606(0x2fb)+_0x3c373d;}var Ts=Object[_0x3a2165(0x1e2)],Rs=Object[_0x3a2165(0x383)],Os=(_0x3b3dcc,_0x3937c5,_0x44c655,_0x430259)=>{const _0x3ea421=_0x3a2165;for(var _0x582b78=_0x430259>0x1?void 0x0:_0x430259?Rs(_0x3937c5,_0x44c655):_0x3937c5,_0x6b4400=_0x3b3dcc[_0x3ea421(0x3a5)]-0x1,_0x31f958;_0x6b4400>=0x0;_0x6b4400--)(_0x31f958=_0x3b3dcc[_0x6b4400])&&(_0x582b78=(_0x430259?_0x31f958(_0x3937c5,_0x44c655,_0x582b78):_0x31f958(_0x582b78))||_0x582b78);return _0x430259&&_0x582b78&&Ts(_0x3937c5,_0x44c655,_0x582b78),_0x582b78;},ye=(_0x1c82e7,_0x37ab1b)=>(_0x373d57,_0x67ea29)=>_0x37ab1b(_0x373d57,_0x67ea29,_0x1c82e7);function Ds(_0x168086){const _0x1d918a=_0x3a2165,{unitID:_0x504e34,mutations:_0x2d2f4a}=_0x168086;return{'unitId':_0x504e34,'subUnitId':_0x2d2f4a[0x0][_0x1d918a(0x101)][_0x1d918a(0x41b)]};}let ge=class{constructor(_0x38d395,_0x37285c,_0x4dc07d){const _0x58c854=_0x3a2165;this['_injector']=_0x38d395,this[_0x58c854(0x316)]=_0x37285c,this['_instanceService']=_0x4dc07d;}[_0x3a2165(0x289)](_0x355665){const _0x24a63d=_0x3a2165;var _0xe81f94,_0x1f920c,_0x3a93f5,_0x3c6026;const _0x273467=this[_0x24a63d(0x3be)][_0x24a63d(0x305)](C[_0x24a63d(0x2ef)]),{unitId:_0x44491b,subUnitId:_0x51dfd6}=Ds(_0x355665),_0x101073=_0x273467[_0x24a63d(0x2a7)](_0x44491b)[_0x24a63d(0x1f0)](),_0x233744=(_0x1f920c=(_0xe81f94=this['_instanceService'][_0x24a63d(0x3e5)](_0x44491b))==null?void 0x0:_0xe81f94['getActiveSheet']())==null?void 0x0:_0x1f920c['getSheetId']();if(_0x101073[_0x24a63d(0x3a5)]===0x0||!_0x44491b||!_0x51dfd6)return;const _0x1c51db=[{'id':C[_0x24a63d(0x3d6)]['id'],'params':{'unitId':_0x44491b,'subUnitId':_0x233744,'selections':a[_0x24a63d(0x483)][_0x24a63d(0x204)](_0x101073)}}],_0x149135=this[_0x24a63d(0x316)][_0x24a63d(0xf5)](_0x355665,_0x1c51db);if(!_['isTransformMutationsWithChangesetSuccess'](_0x149135))throw _0x149135[_0x24a63d(0x442)];const _0x3b4f32=(_0x3c6026=(_0x3a93f5=_0x149135['m2Prime'][0x0])==null?void 0x0:_0x3a93f5[_0x24a63d(0x101)])==null?void 0x0:_0x3c6026['selections'];Array['isArray'](_0x3b4f32)&&_0x3b4f32[_0x24a63d(0x3a5)]&&this[_0x24a63d(0x3be)][_0x24a63d(0x305)](a[_0x24a63d(0x3e2)])[_0x24a63d(0x1c2)](C[_0x24a63d(0x3d6)]['id'],{'unitId':_0x44491b,'subUnitId':_0x233744,'selections':_0x3b4f32});}};ge=Os([ye(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),ye(0x1,_[_0x3a2165(0xc6)]),ye(0x2,a[_0x3a2165(0x137)])],ge);const be=a['createIdentifier'](_0x3a2165(0xf4));var bt=(_0x1578ed=>(_0x1578ed[_0x1578ed['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3a2165(0x368),_0x1578ed[_0x1578ed[_0x3a2165(0xa4)]=0x1]=_0x3a2165(0xa4),_0x1578ed))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3a2165(0x287)]{constructor(){const _0x39d659=_0x3a2165;super(),d(this,'_id',a[_0x39d659(0x483)][_0x39d659(0x238)]()),d(this,'_selfUnitIDs',new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x39d659(0xf6),null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0x39d659(0x1d9)]();}[_0x3a2165(0x491)](){const _0x438c7a=_0x3a2165;super[_0x438c7a(0x491)](),this[_0x438c7a(0x486)][_0x438c7a(0x337)]((_0x5438e5,_0x2d5ad0)=>this[_0x438c7a(0x2c9)](_0x2d5ad0)),this[_0x438c7a(0xf6)]&&window[_0x438c7a(0x319)](this['_heartbeatTimer']);}[_0x3a2165(0x245)](_0x338bba){const _0x4424b0=_0x3a2165;return this[_0x4424b0(0x418)](_0x338bba)[_0x4424b0(0x447)](v['distinctUntilChanged']());}['editingUnit'](_0x2bcecb){const _0x8d9299=_0x3a2165;this['_selfUnitIDs'][_0x8d9299(0x20e)]===0x0&&this[_0x8d9299(0x25e)](),this[_0x8d9299(0x13e)][_0x8d9299(0x2e5)](_0x2bcecb),this[_0x8d9299(0x11a)]({'type':0x0,'memberID':this[_0x8d9299(0x96)],'unitIDs':[_0x2bcecb],'isForwarded':!0x1});}['disposeUnit'](_0x113095){const _0x1309bc=_0x3a2165;this['_selfUnitIDs'][_0x1309bc(0x140)](_0x113095),this[_0x1309bc(0x13e)][_0x1309bc(0x20e)]===0x0&&this['_heartbeatTimer']&&window[_0x1309bc(0x319)](this[_0x1309bc(0xf6)]);}[_0x3a2165(0x1d9)](){const _0x3878f5=_0x3a2165;this[_0x3878f5(0x167)](a['toDisposable'](v[_0x3878f5(0x2cc)](window,'storage')[_0x3878f5(0x1ee)](_0x5d6245=>{const _0x5ede1c=_0x3878f5;if(_0x5d6245[_0x5ede1c(0x419)]!==tt||!_0x5d6245[_0x5ede1c(0x1c5)])return;const _0x5a8d8e=JSON['parse'](_0x5d6245[_0x5ede1c(0x1c5)]);this[_0x5ede1c(0xd3)](_0x5a8d8e);}))),window[_0x3878f5(0x391)](_0x3878f5(0x36d),()=>this[_0x3878f5(0x11a)]({'type':0x1,'memberID':this[_0x3878f5(0x96)],'unitIDs':Array[_0x3878f5(0x2f9)](this[_0x3878f5(0x13e)])}));}[_0x3a2165(0xd3)](_0x1cf1b8){switch(_0x1cf1b8['type']){case 0x0:this['_handleJoinEvent'](_0x1cf1b8);break;case 0x1:this['_handleLeaveEvent'](_0x1cf1b8);break;case 0x2:this['_handleHeartbeatEvent'](_0x1cf1b8);break;}}[_0x3a2165(0x360)](_0x2ebba4){const _0xfe1234=_0x3a2165,{unitIDs:_0x5306b0,memberID:_0x2a1730,isForwarded:_0x4c41d3}=_0x2ebba4;_0x5306b0[_0xfe1234(0x337)](_0x345072=>{const _0x29383c=_0xfe1234;if(!_0x4c41d3&&this[_0x29383c(0x1e6)][_0x29383c(0x4ac)](_0x345072)&&this[_0x29383c(0x418)](_0x345072)[_0x29383c(0x2c6)](0x1),!this[_0x29383c(0x1e6)]['has'](_0x345072)||!this['_unitOnClients'][_0x29383c(0x305)](_0x345072)[_0x29383c(0x4ac)](_0x2a1730)){const _0x37d811=this[_0x29383c(0x1e6)][_0x29383c(0x305)](_0x345072)||new Set();_0x37d811[_0x29383c(0x2e5)](_0x2a1730),this[_0x29383c(0x1e6)][_0x29383c(0x194)](_0x345072,_0x37d811),this[_0x29383c(0xc5)](_0x2a1730);}}),_0x4c41d3||this[_0xfe1234(0x11a)]({'type':0x0,'memberID':this[_0xfe1234(0x96)],'unitIDs':[...this[_0xfe1234(0x13e)]],'isForwarded':!0x0});}[_0x3a2165(0xc5)](_0xd6cff1){const _0x24d706=_0x3a2165;this['_removeClearOtherTimer'](_0xd6cff1);const _0x46a9ac=window[_0x24d706(0x25c)](()=>{const _0x4bbc7f=_0x24d706;this[_0x4bbc7f(0x1e6)]['forEach'](_0x455a66=>{_0x455a66['delete'](_0xd6cff1);});},et*0x2);this[_0x24d706(0x486)][_0x24d706(0x194)](_0xd6cff1,_0x46a9ac);}[_0x3a2165(0x2c9)](_0x3510d1){const _0x2c023e=_0x3a2165;if(this[_0x2c023e(0x486)][_0x2c023e(0x4ac)](_0x3510d1)){const _0x28e267=this['_clearOtherTimers'][_0x2c023e(0x305)](_0x3510d1);_0x28e267&&window[_0x2c023e(0x1de)](_0x28e267),this[_0x2c023e(0x486)][_0x2c023e(0x194)](_0x3510d1,null);}}['_handleLeaveEvent'](_0x551543){const _0x44123e=_0x3a2165,{memberID:_0x411a37,unitIDs:_0x49fdb7}=_0x551543;_0x49fdb7[_0x44123e(0x337)](_0x52de4c=>{const _0x82e0de=_0x44123e;var _0x31c5b1;const _0x358a09=this[_0x82e0de(0x1e6)][_0x82e0de(0x305)](_0x52de4c);_0x358a09&&(_0x358a09[_0x82e0de(0x140)](_0x411a37),(_0x31c5b1=this[_0x82e0de(0x418)](_0x52de4c))==null||_0x31c5b1['next'](_0x358a09[_0x82e0de(0x20e)]===0x0?0x0:0x1));}),this[_0x44123e(0x2c9)](_0x411a37);}[_0x3a2165(0x4a2)](_0x16c4c4){const _0x12bf19=_0x3a2165;this[_0x12bf19(0xc5)](_0x16c4c4[_0x12bf19(0x12e)]);}[_0x3a2165(0x11a)](_0x4d99f8){const _0x266d7e=_0x3a2165;localStorage['setItem'](tt,JSON[_0x266d7e(0x3a6)](_0x4d99f8));}[_0x3a2165(0x25e)](){const _0x508465=_0x3a2165;this[_0x508465(0xf6)]=window[_0x508465(0x9b)](()=>{const _0x4ca768=_0x508465;this[_0x4ca768(0x11a)]({'type':0x2,'memberID':this['_id']});},et);}['_ensureSubject'](_0x313fbd){const _0x183ab6=_0x3a2165;return this[_0x183ab6(0x176)][_0x183ab6(0x4ac)](_0x313fbd)||this[_0x183ab6(0x176)][_0x183ab6(0x194)](_0x313fbd,new v[(_0x183ab6(0x2f5))](0x0)),this[_0x183ab6(0x176)][_0x183ab6(0x305)](_0x313fbd);}}function Tt(_0x2d5823){const _0xd26471=_0x3a2165;let _0x30dd2a='';for(const _0x423bd7 of _0x2d5823){const {startOffset:_0x4186f7,endOffset:_0x46780a,isActive:_0x1058df}=_0x423bd7;_0x30dd2a[_0xd26471(0x3a5)]&&(_0x30dd2a+=','),_0x30dd2a+=_0x4186f7+':'+_0x46780a+':'+(_0x1058df?'1':'0');}return _0x30dd2a;}function Us(_0x5b9b4a){const _0x168daa=_0x3a2165,_0x369c0d=_0x5b9b4a['split'](','),_0x286b94=[];for(const _0x5c4317 of _0x369c0d){const [_0x1d7135,_0x3957f9,_0x52bcd9]=_0x5c4317[_0x168daa(0x2a0)](':');_0x286b94['push']({'startOffset':Number(_0x1d7135),'endOffset':Number(_0x3957f9),'collapsed':_0x1d7135===_0x3957f9,'isActive':_0x52bcd9==='1'});}return _0x286b94[_0x168daa(0x2ea)](_0x18d714=>_0x18d714[_0x168daa(0x2dc)])||(_0x286b94[0x0][_0x168daa(0x2dc)]=!0x0),_0x286b94;}class Ye extends a[_0x3a2165(0x441)]{constructor(){const _0x512083=_0x3a2165;super(...arguments),d(this,_0x512083(0x264),new v[(_0x512083(0x2f5))](null)),d(this,_0x512083(0x3ce),this[_0x512083(0x264)][_0x512083(0xfd)]());}[_0x3a2165(0x2d9)](_0x2df7b5){const _0x17849b=_0x3a2165,{unitID:_0x2082b7,memberID:_0x2f1f37,textRanges:_0x1319b0}=_0x2df7b5,_0x5836b8=Tt(_0x1319b0),_0x52374f={'unitID':_0x2082b7,'memberID':_0x2f1f37,'selection':_0x5836b8};this[_0x17849b(0x264)][_0x17849b(0x2c6)](_0x52374f);}}var Ps=Object[_0x3a2165(0x1e2)],ws=Object[_0x3a2165(0x383)],Ms=(_0x35602d,_0x211347,_0x42be4c,_0x155ac6)=>{for(var _0x15d14e=_0x155ac6>0x1?void 0x0:_0x155ac6?ws(_0x211347,_0x42be4c):_0x211347,_0x29d52e=_0x35602d['length']-0x1,_0x5bd325;_0x29d52e>=0x0;_0x29d52e--)(_0x5bd325=_0x35602d[_0x29d52e])&&(_0x15d14e=(_0x155ac6?_0x5bd325(_0x211347,_0x42be4c,_0x15d14e):_0x5bd325(_0x15d14e))||_0x15d14e);return _0x155ac6&&_0x15d14e&&Ps(_0x211347,_0x42be4c,_0x15d14e),_0x15d14e;},st=(_0x456d70,_0x571f92)=>(_0x5c90c2,_0x8b82da)=>_0x571f92(_0x5c90c2,_0x8b82da,_0x456d70);let me=class{constructor(_0x4bed70,_0x3c8625){const _0x4c4d11=_0x3a2165;this['_injector']=_0x4bed70,this[_0x4c4d11(0x316)]=_0x3c8625;}[_0x3a2165(0x289)](_0x17d1ef){const _0x1c6a4b=_0x3a2165;var _0x113346;const _0x502272=this[_0x1c6a4b(0x3be)][_0x1c6a4b(0x305)](V['DocSelectionManagerService']),_0x527179=(_0x113346=_0x502272[_0x1c6a4b(0x3b2)]())!=null?_0x113346:[];if(_0x527179[_0x1c6a4b(0x3a5)]===0x0)return;const _0x3968cc=[{'id':_0x1c6a4b(0x132),'params':{'unitId':_0x17d1ef[_0x1c6a4b(0x438)],'actions':null,'textRanges':_0x527179}}],_0x19a3a7=this[_0x1c6a4b(0x316)][_0x1c6a4b(0xf5)](_0x17d1ef,_0x3968cc);if(!_[_0x1c6a4b(0x16b)](_0x19a3a7))throw _0x19a3a7[_0x1c6a4b(0x442)];const _0x1c0abf=_0x19a3a7['m2Prime'][0x0][_0x1c6a4b(0x101)][_0x1c6a4b(0x382)];Array['isArray'](_0x1c0abf)&&_0x1c0abf[_0x1c6a4b(0x3a5)]&&_0x502272[_0x1c6a4b(0x23e)](_0x1c0abf,!0x1);}};me=Ms([st(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),st(0x1,_['ITransformService'])],me);const Ns=new Set([C[_0x3a2165(0x366)]['id']]);function it(_0x32824f,_0x51297d,_0x1ad622,_0x11ab97,_0xc811d8){const _0x26f2b0=_0x3a2165;var _0x5d7d8f,_0x78dae8,_0xeb4746,_0x4f9323;const _0x4c8ffd=[];for(const _0x35ed65 of _0x32824f)if(Ns['has'](_0x35ed65['id'])){if(_0x4c8ffd['length']>0x0)break;_0x4c8ffd[_0x26f2b0(0x339)](_0x35ed65);break;}else _0x4c8ffd[_0x26f2b0(0x339)](_0x35ed65);const _0x5489de=(_0x78dae8=(_0x5d7d8f=_0xc811d8[_0x26f2b0(0x42a)]())==null?void 0x0:_0x5d7d8f[_0x26f2b0(0xbd)])!=null?_0x78dae8:_0x26f2b0(0x361),_0x269375=(_0x4f9323=(_0xeb4746=_0xc811d8['getCurrentUser']())==null?void 0x0:_0xeb4746[_0x26f2b0(0x12e)])!=null?_0x4f9323:_0x26f2b0(0x361);return{'changeset':{'unitID':_0x51297d,'type':_[_0x26f2b0(0x2c2)](_0x1ad622[_0x26f2b0(0x40d)](_0x51297d)),'baseRev':_0x11ab97[_0x26f2b0(0xdf)](_0x51297d),'revision':0x0,'userID':_0x5489de,'memberID':_0x269375,'mutations':_0x4c8ffd},'pendingMutations':_0x32824f[_0x26f2b0(0xe4)](_0x4c8ffd['length'])};}function As(_0xae3ce8,_0x35c84b,_0x255dfc,_0x505d7e,_0x292692){const _0x12e710=_0x3a2165;var _0x4bdbea,_0x4aac46,_0x307290,_0x7347ac;const _0x3f0ac8=[_0xae3ce8[_0x12e710(0xb3)]((_0x47d338,_0x1dff0d)=>{const _0x6b9fa3=_0x12e710;var _0x2ae054;const {id:_0x5eeafc}=_0x47d338,{id:_0x45f060,type:_0xfae4b7}=_0x1dff0d,_0x477ea9=(_0x2ae054=_0x47d338[_0x6b9fa3(0x101)])!=null?_0x2ae054:{'actions':null},_0x127f3a=_0x1dff0d['params'];if(_0x5eeafc&&_0x5eeafc!==_0x45f060)throw new Error(_0x6b9fa3(0x9e)+_0x5eeafc+_0x6b9fa3(0x38d)+_0x45f060+'.');return{..._0x47d338,'id':_0x45f060,'type':_0xfae4b7,'params':{'unitId':_0x127f3a[_0x6b9fa3(0xec)],'textRanges':_0x127f3a[_0x6b9fa3(0x382)],'actions':a[_0x6b9fa3(0x1b4)][_0x6b9fa3(0x1a5)](_0x477ea9[_0x6b9fa3(0x3a9)],_0x127f3a['actions'])}};},{})],_0x39a855=(_0x4aac46=(_0x4bdbea=_0x292692[_0x12e710(0x42a)]())==null?void 0x0:_0x4bdbea[_0x12e710(0xbd)])!=null?_0x4aac46:_0x12e710(0x361),_0x2d6311=(_0x7347ac=(_0x307290=_0x292692[_0x12e710(0x42a)]())==null?void 0x0:_0x307290[_0x12e710(0x12e)])!=null?_0x7347ac:_0x12e710(0x361);return{'changeset':{'unitID':_0x35c84b,'type':_[_0x12e710(0x2c2)](_0x255dfc[_0x12e710(0x40d)](_0x35c84b)),'baseRev':_0x505d7e[_0x12e710(0xdf)](_0x35c84b),'revision':0x0,'userID':_0x39a855,'memberID':_0x2d6311,'mutations':_0x3f0ac8},'pendingMutations':[]};}const Ls={'id':C[_0x3a2165(0x1ab)]['id'],'type':a[_0x3a2165(0x303)][_0x3a2165(0x178)],'params':{}};var js=Object[_0x3a2165(0x1e2)],$s=Object[_0x3a2165(0x383)],z=(_0x59f00a,_0x210482,_0x1ef07b,_0x5bdba4)=>{const _0x35f450=_0x3a2165;for(var _0x1baaad=_0x5bdba4>0x1?void 0x0:_0x5bdba4?$s(_0x210482,_0x1ef07b):_0x210482,_0x5bc1ce=_0x59f00a[_0x35f450(0x3a5)]-0x1,_0x1bb0cd;_0x5bc1ce>=0x0;_0x5bc1ce--)(_0x1bb0cd=_0x59f00a[_0x5bc1ce])&&(_0x1baaad=(_0x5bdba4?_0x1bb0cd(_0x210482,_0x1ef07b,_0x1baaad):_0x1bb0cd(_0x1baaad))||_0x1baaad);return _0x5bdba4&&_0x1baaad&&js(_0x210482,_0x1ef07b,_0x1baaad),_0x1baaad;},g=(_0x216207,_0x36db76)=>(_0x3c1b4e,_0x191be5)=>_0x36db76(_0x3c1b4e,_0x191be5,_0x216207),y=(_0x52ed49=>(_0x52ed49['NOT_COLLAB']='not_collab',_0x52ed49['SYNCED']=_0x3a2165(0x15c),_0x52ed49[_0x3a2165(0x193)]='pending',_0x52ed49['AWAITING']=_0x3a2165(0x3b6),_0x52ed49['AWAITING_WITH_PENDING']=_0x3a2165(0x11b),_0x52ed49[_0x3a2165(0x24c)]=_0x3a2165(0x33c),_0x52ed49[_0x3a2165(0x171)]='conflict',_0x52ed49['OFFLINE']='offline',_0x52ed49))(y||{});class J{constructor(_0x468b18,_0xbed35e,_0x18d605,_0x1187ab,_0x343b69,_0x22ae51,_0x33fbfd,_0x4747b6,_0x47a870){const _0x13f935=_0x3a2165;d(this,_0x13f935(0xbc),null),d(this,_0x13f935(0x22e),[]),(this[_0x13f935(0x438)]=_0x468b18,this[_0x13f935(0x3a4)]=_0xbed35e,this['_handler']=_0x343b69,this[_0x13f935(0x3de)]=_0x22ae51,this['_undoRedoService']=_0x33fbfd,this[_0x13f935(0x2d0)]=_0x4747b6,this[_0x13f935(0x1e8)]=_0x47a870,this[_0x13f935(0xbc)]=_0x18d605,this[_0x13f935(0x22e)]=_0x1187ab);}[_0x3a2165(0x1d3)](_0x4c5879){const _0x14fd2e=_0x3a2165,_0xcc82a6=this[_0x14fd2e(0x2d0)][_0x14fd2e(0xdf)](this[_0x14fd2e(0x438)]);return _0x4c5879['revision']>_0xcc82a6+0x1?(this[_0x14fd2e(0x1ad)][_0x14fd2e(0x252)]({'from':_0xcc82a6,'to':_0x4c5879[_0x14fd2e(0x251)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x9561b5){const _0x1a8536=_0x3a2165;this[_0x1a8536(0x216)][_0x1a8536(0x3cb)](this[_0x1a8536(0x438)],_0x9561b5);}['_transformSelections'](_0x1c1d8d){const _0x4a9379=_0x3a2165;var _0x370026,_0x29ca15;(_0x29ca15=(_0x370026=this[_0x4a9379(0x1ad)])[_0x4a9379(0x345)])==null||_0x29ca15['call'](_0x370026,_0x1c1d8d);}[_0x3a2165(0x12b)](_0x10ad0a){const _0xda1150=_0x3a2165;var _0x555512,_0x238170;return(_0x238170=(_0x555512=this[_0xda1150(0x1ad)])[_0xda1150(0x158)])==null?void 0x0:_0x238170[_0xda1150(0x1ef)](_0x555512,_0x10ad0a);}[_0x3a2165(0xe5)](_0x5d015b){var _0x3e4213,_0x49d38d,_0x4377a3;return(_0x4377a3=(_0x49d38d=(_0x3e4213=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x49d38d['call'](_0x3e4213,_0x5d015b))!=null?_0x4377a3:_0x5d015b;}[_0x3a2165(0x23b)](_0x44f6f3){const _0x18ad7d=_0x3a2165;var _0x47b4df,_0x228e1f;if(this[_0x18ad7d(0x3a4)]===j[_0x18ad7d(0x34e)]){const {unitID:_0x3bdfcc,mutations:_0x102006,memberID:_0x38e790}=_0x44f6f3,_0x1303b3=_0x102006[0x0][_0x18ad7d(0x101)][_0x18ad7d(0x382)];Array[_0x18ad7d(0x203)](_0x1303b3)&&_0x1303b3['length']>0x0&&((_0x228e1f=(_0x47b4df=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x228e1f['call'](_0x47b4df,{'unitID':_0x3bdfcc,'memberID':_0x38e790,'textRanges':_0x1303b3}));}}[_0x3a2165(0x312)](){const _0x2fc374=_0x3a2165;this['_localCacheService'][_0x2fc374(0x200)](this[_0x2fc374(0x438)],this[_0x2fc374(0x3a4)],this[_0x2fc374(0xbc)],this[_0x2fc374(0x22e)]);}[_0x3a2165(0x1b9)](){const _0xa409d8=_0x3a2165;return this[_0xa409d8(0x2d0)][_0xa409d8(0xdf)](this['unitID']);}[_0x3a2165(0x1db)](){const _0x2875a7=_0x3a2165;this['_revisionService'][_0x2875a7(0x3f9)](this[_0x2875a7(0x438)]);}[_0x3a2165(0x3ac)](_0x126712){const _0x4b71b2=_0x3a2165;var _0x4a622c;const _0x4adf42=this[_0x4b71b2(0xe5)](_0x126712),_0x5ad283=a[_0x4b71b2(0x1f5)](_0x4adf42[_0x4b71b2(0x31e)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5ad283[_0x4b71b2(0x109)])throw _0x5ad283[_0x4b71b2(0x442)]instanceof Error?_0x5ad283[_0x4b71b2(0x442)]:new Error((_0x4a622c=_0x5ad283['error'])!=null?_0x4a622c:_0x4b71b2(0x404));this[_0x4b71b2(0x12b)](_0x4adf42),this[_0x4b71b2(0x163)](_0x126712),this[_0x4b71b2(0x27b)](_0x4adf42),this[_0x4b71b2(0x23b)](_0x4adf42),this[_0x4b71b2(0x1db)]();}}let se=class extends J{constructor(_0x3870ac,_0x341872,_0x1598e5,_0xf4dd61,_0x4d91a0,_0x409a2b,_0x48f9d6,_0x47dd14,_0x2a2571,_0x15a3db){const _0x408021=_0x3a2165;super(_0x3870ac,_0x341872,null,[],_0x1598e5,_0x47dd14,_0x48f9d6,_0xf4dd61,_0x4d91a0),d(this,'status',_0x408021(0x15c)),(this[_0x408021(0x3be)]=_0x409a2b,this['_logService']=_0x2a2571,this[_0x408021(0x316)]=_0x15a3db);}[_0x3a2165(0x32c)](_0x5c4d9d){const _0x2da358=_0x3a2165,_0x3179fc=this[_0x2da358(0x3be)][_0x2da358(0xbe)](x,this['unitID'],this[_0x2da358(0x3a4)],[_0x5c4d9d],this[_0x2da358(0x1ad)]);return _0x3179fc['_schedule'](),_0x3179fc[_0x2da358(0x312)](),_0x3179fc;}[_0x3a2165(0x336)](_0x2e21e1){const _0x5ab9c7=_0x3a2165;if(this[_0x5ab9c7(0x1d3)](_0x2e21e1))return this[_0x5ab9c7(0x3be)][_0x5ab9c7(0xbe)](H,this[_0x5ab9c7(0x438)],this[_0x5ab9c7(0x3a4)],null,[],null,[_0x2e21e1],this[_0x5ab9c7(0x1ad)]);try{const _0x57d7c4=this[_0x5ab9c7(0x316)][_0x5ab9c7(0xf5)](_0x2e21e1,[Ls]);if(_[_0x5ab9c7(0x16b)](_0x57d7c4)){const {c1Prime:_0x54a8cc}=_0x57d7c4;return this[_0x5ab9c7(0x3ac)](_0x54a8cc),this;}throw _0x57d7c4[_0x5ab9c7(0x442)];}catch(_0x4863a2){return this['_logService']['error'](_0x4863a2),this[_0x5ab9c7(0x99)](!0x1);}}['_onConflict'](_0x41c2fe){const _0xe4f331=_0x3a2165;return this[_0xe4f331(0x3be)]['createInstance'](F,this['unitID'],this[_0xe4f331(0x3a4)],null,[],this[_0xe4f331(0x1ad)],_0x41c2fe);}[_0x3a2165(0x2e1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3a2165(0x3f7)](){const _0x4fe676=_0x3a2165;throw new Error(_0x4fe676(0x1ba));}[_0x3a2165(0x237)](){const _0x5024bc=_0x3a2165;return this[_0x5024bc(0x3be)][_0x5024bc(0xbe)](G,this[_0x5024bc(0x438)],this['type'],null,[],this[_0x5024bc(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}['resend'](){const _0x43c402=_0x3a2165;throw new Error(_0x43c402(0x49b));}[_0x3a2165(0x2df)](){const _0x40312f=_0x3a2165,_0x5a280e=this[_0x40312f(0x2d0)]['getCurrentRevOfUnit'](this[_0x40312f(0x438)]);return this[_0x40312f(0x1ad)][_0x40312f(0x252)]({'from':_0x5a280e,'to':0x0}),this[_0x40312f(0x3be)][_0x40312f(0xbe)](H,this[_0x40312f(0x438)],this['type'],null,[],null,[],this['_handler']);}};se=z([g(0x3,a['Inject'](_[_0x3a2165(0xc9)])),g(0x4,a['Inject'](exports['LocalCacheService'])),g(0x5,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x6,a['IUndoRedoService']),g(0x7,a[_0x3a2165(0x3e2)]),g(0x8,a[_0x3a2165(0x490)]),g(0x9,_[_0x3a2165(0xc6)])],se);let x=class extends J{constructor(_0x2ab85f,_0x347fa0,_0x1567ac,_0xe39257,_0x2ee000,_0x5d3e98,_0x96b175,_0x233338,_0x98dc91,_0x2f5bee,_0x22c735,_0x59d2f5,_0x1d65a8,_0x10f8e0){const _0x965f5=_0x3a2165;super(_0x2ab85f,_0x347fa0,null,_0x1567ac,_0xe39257,_0x2f5bee,_0x10f8e0,_0x5d3e98,_0x96b175),d(this,_0x965f5(0x492),_0x965f5(0x10f)),d(this,_0x965f5(0xde),null),d(this,_0x965f5(0x3f5),null),(this[_0x965f5(0x3be)]=_0x2ee000,this[_0x965f5(0x2c3)]=_0x233338,this[_0x965f5(0x42d)]=_0x98dc91,this[_0x965f5(0x105)]=_0x22c735,this[_0x965f5(0x316)]=_0x59d2f5,this[_0x965f5(0x406)]=_0x1d65a8);}[_0x3a2165(0x32c)](_0x1b7698){const _0xf28356=_0x3a2165;return this[_0xf28356(0x22e)][_0xf28356(0x339)](_0x1b7698),this[_0xf28356(0x312)](),this;}['onRemoteChangeset'](_0x23eb26){const _0x33500b=_0x3a2165;if(this[_0x33500b(0x1d3)](_0x23eb26))return this[_0x33500b(0x480)](),this[_0x33500b(0x3be)][_0x33500b(0xbe)](H,this['unitID'],this[_0x33500b(0x3a4)],null,this[_0x33500b(0x22e)],null,[_0x23eb26],this[_0x33500b(0x1ad)]);try{const _0x942b20=this['_transformService'][_0x33500b(0xf5)](_0x23eb26,this[_0x33500b(0x22e)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x942b20)){const {c1Prime:_0x186fcb,m2Prime:_0xc86709}=_0x942b20;this[_0x33500b(0x3ac)](_0x186fcb);const _0x1cb36e=this[_0x33500b(0x3be)][_0x33500b(0xbe)](x,this[_0x33500b(0x438)],this[_0x33500b(0x3a4)],_0xc86709,this[_0x33500b(0x1ad)]);return this['_clearScheduledTask'](),_0x1cb36e[_0x33500b(0x42e)](this[_0x33500b(0xde)]?Math['max'](0x0,new Date()['getTime']()-this[_0x33500b(0xde)]):this['_getSendChangesetTimeout']()),_0x1cb36e;}throw _0x942b20['error'];}catch(_0x10b957){return this[_0x33500b(0x42d)]['error'](_0x10b957),this[_0x33500b(0x99)](!0x1);}}[_0x3a2165(0x2e1)](){const _0xfda7e4=_0x3a2165;throw new Error(_0xfda7e4(0x12d));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x3a2165(0x237)](){const _0x1c9da8=_0x3a2165;return this[_0x1c9da8(0x480)](),this[_0x1c9da8(0x3be)]['createInstance'](G,this[_0x1c9da8(0x438)],this['type'],null,this[_0x1c9da8(0x22e)],this[_0x1c9da8(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x42e)](_0x19bbed){const _0x468617=_0x3a2165,_0x4e5e8e=_0x19bbed!=null?_0x19bbed:this[_0x468617(0x367)]();this['_scheduleTimestamp']=new Date()[_0x468617(0x3dc)](),this[_0x468617(0x3f5)]=window['setTimeout'](()=>{const _0x142d43=_0x468617;this['_clearScheduledTask']();let _0xd7ccdc=null;switch(this[_0x142d43(0x3a4)]){case j[_0x142d43(0x21f)]:{_0xd7ccdc=it(this['_pendingMutations'],this['unitID'],this[_0x142d43(0x406)],this['_revisionService'],this['_memberService']);break;}case j[_0x142d43(0x34e)]:{this[_0x142d43(0x22e)][_0x142d43(0x36b)](_0x50b741=>_0x50b741['id']===V[_0x142d43(0x21d)]['id'])?_0xd7ccdc=As(this[_0x142d43(0x22e)],this[_0x142d43(0x438)],this[_0x142d43(0x406)],this['_revisionService'],this[_0x142d43(0x2c3)]):_0xd7ccdc=it(this[_0x142d43(0x22e)],this['unitID'],this[_0x142d43(0x406)],this[_0x142d43(0x2d0)],this[_0x142d43(0x2c3)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x142d43(0x139));}const {changeset:_0x5c4f36,pendingMutations:_0x25795c}=_0xd7ccdc;this['_handler'][_0x142d43(0x182)](_0x5c4f36);const _0x37f661=_0x25795c[_0x142d43(0x3a5)]?this[_0x142d43(0x3be)]['createInstance'](k,this['unitID'],this[_0x142d43(0x3a4)],_0x5c4f36,_0x25795c,this['_handler']):this['_injector'][_0x142d43(0xbe)](W,this[_0x142d43(0x438)],this[_0x142d43(0x3a4)],_0x5c4f36,this[_0x142d43(0x1ad)]);_0x37f661[_0x142d43(0x312)](),this['_handler'][_0x142d43(0x286)](this,_0x37f661);},_0x4e5e8e);}[_0x3a2165(0x367)](){const _0x1cf078=_0x3a2165;var _0x7dba7d;const _0x15f0c0=this[_0x1cf078(0x105)][_0x1cf078(0x347)](A);return(_0x7dba7d=_0x15f0c0==null?void 0x0:_0x15f0c0[_0x1cf078(0x3b1)])!=null?_0x7dba7d:Kt;}[_0x3a2165(0x462)](){const _0x1b1a5b=_0x3a2165;throw new Error(_0x1b1a5b(0x111));}['_clearScheduledTask'](){const _0x5a01b0=_0x3a2165;this[_0x5a01b0(0x3f5)]!=null&&(clearTimeout(this[_0x5a01b0(0x3f5)]),this['_sendingTimer']=null);}[_0x3a2165(0x99)](_0xba2aed){const _0x29004f=_0x3a2165;return this['_clearScheduledTask'](),this[_0x29004f(0x3be)][_0x29004f(0xbe)](F,this['unitID'],this[_0x29004f(0x3a4)],null,this[_0x29004f(0x22e)],this[_0x29004f(0x1ad)],_0xba2aed);}};x=z([g(0x4,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x5,a[_0x3a2165(0x426)](_['RevisionService'])),g(0x6,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x7,a[_0x3a2165(0x426)](q)),g(0x8,a[_0x3a2165(0x490)]),g(0x9,a[_0x3a2165(0x3e2)]),g(0xa,a[_0x3a2165(0xd1)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3a2165(0x137)]),g(0xd,a[_0x3a2165(0x244)])],x);let W=class extends J{constructor(_0x58427e,_0x44410e,_0xd6dcc8,_0x5b427e,_0x2e7798,_0x130532,_0x42300e,_0x5d4438,_0x46aa97,_0x80c756,_0x51c68a){const _0x452e78=_0x3a2165;super(_0x58427e,_0x44410e,_0xd6dcc8,[],_0x5b427e,_0x5d4438,_0x51c68a,_0x130532,_0x42300e),d(this,'status',_0x452e78(0x3b6)),(this[_0x452e78(0x3be)]=_0x2e7798,this[_0x452e78(0x42d)]=_0x46aa97,this[_0x452e78(0x316)]=_0x80c756);}[_0x3a2165(0x32c)](_0x1bdb3c){const _0x5ef90c=_0x3a2165,_0x3edbee=this[_0x5ef90c(0x3be)]['createInstance'](k,this[_0x5ef90c(0x438)],this[_0x5ef90c(0x3a4)],this['_awaitingChangeset'],[_0x1bdb3c],this[_0x5ef90c(0x1ad)]);return _0x3edbee[_0x5ef90c(0x312)](),_0x3edbee;}[_0x3a2165(0x336)](_0x5b3a3c){const _0x1d56d3=_0x3a2165;if(this[_0x1d56d3(0x1d3)](_0x5b3a3c))return this[_0x1d56d3(0x3be)][_0x1d56d3(0xbe)](H,this[_0x1d56d3(0x438)],this[_0x1d56d3(0x3a4)],this[_0x1d56d3(0xbc)],[],null,[_0x5b3a3c],this[_0x1d56d3(0x1ad)]);try{const _0x4eb159=this[_0x1d56d3(0x316)]['transformChangesets']([_0x5b3a3c],[this[_0x1d56d3(0xbc)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4eb159)){const {c1Prime:_0x5da2e4,c2Prime:_0x12e38a}=_0x4eb159;this[_0x1d56d3(0x3ac)](_0x5da2e4[0x0]),_0x12e38a[0x0]['baseRev']=this['_getCurrentRevision']();const _0x9a683b=this[_0x1d56d3(0x3be)][_0x1d56d3(0xbe)](W,this['unitID'],this[_0x1d56d3(0x3a4)],_0x12e38a[0x0],this[_0x1d56d3(0x1ad)]);return _0x9a683b[_0x1d56d3(0x312)](),_0x9a683b;}return this[_0x1d56d3(0x99)](!0x1);}catch(_0x1d318e){return this[_0x1d56d3(0x42d)][_0x1d56d3(0x442)](_0x1d318e),this['_onConflict'](!0x1);}}[_0x3a2165(0x2e1)](_0x1def1b){const _0x3e63e4=_0x3a2165,_0x228880=this['_revisionService'][_0x3e63e4(0xdf)](this[_0x3e63e4(0x438)]);if(_0x1def1b[_0x3e63e4(0x251)]<_0x228880-0x1)return this;if(this[_0x3e63e4(0x1d3)](_0x1def1b))return this[_0x3e63e4(0x3be)][_0x3e63e4(0xbe)](H,this[_0x3e63e4(0x438)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x3e63e4(0x1ad)]);this[_0x3e63e4(0x1db)]();const _0x5e2493=this['_injector']['createInstance'](se,this[_0x3e63e4(0x438)],this['type'],this[_0x3e63e4(0x1ad)]);return _0x5e2493[_0x3e63e4(0x312)](),_0x5e2493;}[_0x3a2165(0x3f7)](_0x552ae0){const _0x55c8c0=_0x3a2165;return this[_0x55c8c0(0x99)](!!(_0x552ae0!=null&&_0x552ae0[_0x55c8c0(0x146)]));}['toggleOffline'](){const _0x2d47c0=_0x3a2165;return this[_0x2d47c0(0x3be)][_0x2d47c0(0xbe)](G,this[_0x2d47c0(0x438)],this['type'],this['_awaitingChangeset'],[],this[_0x2d47c0(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x3a2165(0x99)](_0x317ef1){const _0x2bc583=_0x3a2165;return this['_injector'][_0x2bc583(0xbe)](F,this[_0x2bc583(0x438)],this['type'],this[_0x2bc583(0xbc)],[],this[_0x2bc583(0x1ad)],_0x317ef1);}};W=z([g(0x4,a[_0x3a2165(0x426)](a['Injector'])),g(0x5,a['Inject'](_[_0x3a2165(0xc9)])),g(0x6,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x7,a['ICommandService']),g(0x8,a[_0x3a2165(0x490)]),g(0x9,_[_0x3a2165(0xc6)]),g(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0x497ca7,_0x441204,_0x15cc80,_0x441a78,_0x23160e,_0x551bf5,_0x49bcbb,_0x2ea5dc,_0x3df484,_0x269890,_0x22143b,_0x15702d){const _0x484af4=_0x3a2165;super(_0x497ca7,_0x441204,_0x15cc80,_0x441a78,_0x23160e,_0x3df484,_0x15702d,_0x49bcbb,_0x2ea5dc),d(this,_0x484af4(0x492),_0x484af4(0x11b)),(this[_0x484af4(0x3be)]=_0x551bf5,this['_logService']=_0x269890,this[_0x484af4(0x316)]=_0x22143b);}[_0x3a2165(0x32c)](_0x442e4d){const _0x43decf=_0x3a2165;return this[_0x43decf(0x22e)][_0x43decf(0x339)](_0x442e4d),this;}['onRemoteChangeset'](_0x5c3d5d){const _0xcb5da9=_0x3a2165;if(this['_checkMissing'](_0x5c3d5d))return this[_0xcb5da9(0x3be)][_0xcb5da9(0xbe)](H,this['unitID'],this[_0xcb5da9(0x3a4)],this[_0xcb5da9(0xbc)],this[_0xcb5da9(0x22e)],null,[_0x5c3d5d],this[_0xcb5da9(0x1ad)]);try{const _0x3a7d84=this[_0xcb5da9(0x316)][_0xcb5da9(0x41e)]([_0x5c3d5d],[this[_0xcb5da9(0xbc)]],!0x1);if(_[_0xcb5da9(0x197)](_0x3a7d84)){const {c1Prime:_0x3a3de6,c2Prime:_0x483c9a}=_0x3a7d84,_0x34f591=this[_0xcb5da9(0x316)][_0xcb5da9(0xf5)](_0x3a3de6[0x0],this['_pendingMutations']);if(_[_0xcb5da9(0x16b)](_0x34f591)){const {c1Prime:_0x310365,m2Prime:_0x6d1b7c}=_0x34f591;return this[_0xcb5da9(0x3ac)](_0x310365),_0x483c9a[0x0][_0xcb5da9(0x142)]=this[_0xcb5da9(0x1b9)](),this[_0xcb5da9(0x3be)][_0xcb5da9(0xbe)](k,this['unitID'],this[_0xcb5da9(0x3a4)],_0x483c9a[0x0],_0x6d1b7c,this['_handler']);}throw _0x34f591[_0xcb5da9(0x442)];}throw _0x3a7d84['error'];}catch(_0x2b1fed){return this[_0xcb5da9(0x42d)]['error'](_0x2b1fed),this[_0xcb5da9(0x99)](!0x1);}}[_0x3a2165(0x2e1)](_0x1c366a){const _0x50df87=_0x3a2165;if(this['_checkMissing'](_0x1c366a))return this[_0x50df87(0x3be)][_0x50df87(0xbe)](H,this[_0x50df87(0x438)],this['type'],null,this[_0x50df87(0x22e)],this[_0x50df87(0xbc)],[],this[_0x50df87(0x1ad)]);this[_0x50df87(0x1db)]();const _0x1237f9=this[_0x50df87(0x3be)][_0x50df87(0xbe)](x,this['unitID'],this[_0x50df87(0x3a4)],this[_0x50df87(0x22e)],this['_handler']);return _0x1237f9[_0x50df87(0x42e)](),_0x1237f9[_0x50df87(0x312)](),_0x1237f9;}[_0x3a2165(0x3f7)](_0x1ff990){const _0xbea86f=_0x3a2165;return this[_0xbea86f(0x99)](!!(_0x1ff990!=null&&_0x1ff990[_0xbea86f(0x146)]));}[_0x3a2165(0x237)](){const _0x22a954=_0x3a2165;return this[_0x22a954(0x3be)][_0x22a954(0xbe)](G,this[_0x22a954(0x438)],this['type'],this[_0x22a954(0xbc)],this[_0x22a954(0x22e)],this['_handler']);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){const _0x4cce90=_0x3a2165;this[_0x4cce90(0x1ad)][_0x4cce90(0x182)](this[_0x4cce90(0xbc)]);}['_onConflict'](_0x522062){const _0xeadb36=_0x3a2165;return this[_0xeadb36(0x3be)]['createInstance'](F,this[_0xeadb36(0x438)],this['type'],null,this[_0xeadb36(0x22e)],this[_0xeadb36(0x1ad)],_0x522062);}};k=z([g(0x5,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),g(0x6,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),g(0x7,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_[_0x3a2165(0xc6)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0xbbb60a,_0x430a26,_0x593715,_0x47f283,_0x5b6f76,_0x3db5fd=!0x1,_0x38e5ad,_0x4f11e7,_0x29db6b,_0x3dadde,_0x24ce67,_0xad56fe,_0x3d6fc6){const _0x4d21b9=_0x3a2165;super(_0xbbb60a,_0x430a26,_0x593715,_0x47f283,_0x5b6f76,_0x4f11e7,_0x29db6b,_0x24ce67,_0x3dadde),d(this,_0x4d21b9(0x492),_0x4d21b9(0x42b)),(this['_isPermissionRej']=_0x3db5fd,this[_0x4d21b9(0x1cb)]=_0x38e5ad,this[_0x4d21b9(0x1d6)]=_0xad56fe,this['_notificationService']=_0x3d6fc6,this[_0x4d21b9(0xf2)](),this[_0x4d21b9(0x290)](),this[_0x4d21b9(0x34d)]());}[_0x3a2165(0x32c)](){return this;}[_0x3a2165(0x336)](){return this;}['onRemoteAck'](){return this;}[_0x3a2165(0x3f7)](){return this;}[_0x3a2165(0x237)](){return this;}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x462)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a2165(0x290)](){const _0x441a71=_0x3a2165;this['_localCacheService'][_0x441a71(0x200)](this[_0x441a71(0x438)],this[_0x441a71(0x3a4)],null,[]);}['_showConflictNotification'](){const _0x5d6a30=_0x3a2165;this['_isPermissionRej']?this[_0x5d6a30(0xb4)][_0x5d6a30(0x113)]({'title':this[_0x5d6a30(0x1d6)]['t']('permission.title'),'content':this[_0x5d6a30(0x1d6)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x5d6a30(0xb4)][_0x5d6a30(0x113)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x5d6a30(0x1d6)]['t']('conflict.content'),'type':_0x5d6a30(0x442),'duration':0x0});}['_disableEditing'](){const _0xf38f8b=_0x3a2165;this['_permissionService'][_0xf38f8b(0x33f)](new C[(_0xf38f8b(0x1c4))](this['unitID'])['id'],!0x1);}};F=z([g(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x277)])),g(0x7,a[_0x3a2165(0x3e2)]),g(0x8,a[_0x3a2165(0x244)]),g(0x9,a['Inject'](exports[_0x3a2165(0x30d)])),g(0xa,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),g(0xb,a['Inject'](a[_0x3a2165(0x3ff)])),g(0xc,N[_0x3a2165(0x350)])],F);let G=class extends J{constructor(_0x3688f4,_0x5ded04,_0xf04523,_0x4aab9c,_0x5204a4,_0x2190d6,_0x42ac7b,_0xec3d6c,_0x642853,_0xb98d44){const _0x112170=_0x3a2165;super(_0x3688f4,_0x5ded04,_0xf04523,_0x4aab9c,_0x5204a4,_0x642853,_0xb98d44,_0x42ac7b,_0xec3d6c),d(this,_0x112170(0x492),_0x112170(0x229)),this[_0x112170(0x3be)]=_0x2190d6;}[_0x3a2165(0x32c)](_0x420c4f){const _0x43721c=_0x3a2165;return this[_0x43721c(0x22e)][_0x43721c(0x339)](_0x420c4f),this[_0x43721c(0x312)](),this;}[_0x3a2165(0x336)](_0x703485){const _0x33ac64=_0x3a2165;throw new Error(_0x33ac64(0x1be));}[_0x3a2165(0x2e1)](){const _0xd91fcd=_0x3a2165;throw new Error(_0xd91fcd(0x335));}[_0x3a2165(0x3f7)](){const _0x2896a6=_0x3a2165;throw new Error(_0x2896a6(0xdb));}['toggleOffline'](){return this;}[_0x3a2165(0x1e0)](){const _0x5e1109=_0x3a2165,{_injector:_0x8ea2b0,_pendingMutations:_0x38a78b,_awaitingChangeset:_0x84e37d,unitID:_0x5d6295,_handler:_0x3fe5ad,type:_0x11aad2}=this,_0x55c2f3=Rt(_0x8ea2b0,_0x5d6295,_0x11aad2,_0x84e37d,_0x38a78b,_0x3fe5ad);return _0x55c2f3 instanceof x?_0x55c2f3[_0x5e1109(0x42e)]():(_0x55c2f3 instanceof k||_0x55c2f3 instanceof W)&&_0x55c2f3[_0x5e1109(0x462)](),_0x55c2f3;}[_0x3a2165(0x462)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};G=z([g(0x5,a['Inject'](a[_0x3a2165(0x3b0)])),g(0x6,a['Inject'](_[_0x3a2165(0xc9)])),g(0x7,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),g(0x8,a[_0x3a2165(0x3e2)]),g(0x9,a[_0x3a2165(0x244)])],G);let H=class extends J{constructor(_0x4f6708,_0xa3e38d,_0x4f2800,_0x374649,_0xad7022,_0x5b9ff1,_0x21aac5,_0x5723a7,_0x157e72,_0x45b2cb,_0x367c45,_0x10a241,_0x2240eb,_0x396124){const _0x5a446d=_0x3a2165;super(_0x4f6708,_0xa3e38d,_0x4f2800,_0x374649,_0x21aac5,_0x10a241,_0x2240eb,_0x157e72,_0x45b2cb),d(this,'status',_0x5a446d(0x33c)),(this[_0x5a446d(0x36a)]=_0xad7022,this[_0x5a446d(0x214)]=_0x5b9ff1,this[_0x5a446d(0x3be)]=_0x5723a7,this[_0x5a446d(0x42d)]=_0x367c45,this[_0x5a446d(0x316)]=_0x396124);}['onMissedChangesetFetched'](_0x1a15ed){const _0x5ab875=_0x3a2165;try{const _0x2fa622=[..._0x1a15ed,...this[_0x5ab875(0x214)]],_0xbbc837=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x5ab875(0xe8)](_0xc751ba=>!!_0xc751ba);let _0x56ab27,_0x81e4b1;if(_0xbbc837[_0x5ab875(0x3a5)]){const _0x477c8e=this['_transformService'][_0x5ab875(0x41e)](_0x2fa622,_0xbbc837,!0x1);if(!_[_0x5ab875(0x197)](_0x477c8e))throw _0x477c8e[_0x5ab875(0x442)];_0x56ab27=_0x477c8e[_0x5ab875(0x353)],_0x81e4b1=_0x477c8e[_0x5ab875(0x44b)];}else _0x56ab27=_0x2fa622,_0x81e4b1=[];let _0x31ce7b=this[_0x5ab875(0x22e)];_0x56ab27['forEach'](_0x520621=>{const _0x17303f=_0x5ab875;let _0x3793d4;if(_0x31ce7b[_0x17303f(0x3a5)]){const _0xba1dec=this[_0x17303f(0x316)][_0x17303f(0xf5)](_0x520621,_0x31ce7b);if(!_[_0x17303f(0x16b)](_0xba1dec))throw _0xba1dec['error'];_0x3793d4=_0xba1dec[_0x17303f(0x353)],_0x31ce7b=_0xba1dec['m2Prime'];}else _0x3793d4=_0x520621;this[_0x17303f(0x3ac)](_0x3793d4);}),this[_0x5ab875(0x36a)]&&this[_0x5ab875(0x1db)](),this['_awaitingChangeset']&&_0x81e4b1[_0x5ab875(0x3a5)]&&(_0x81e4b1[0x0][_0x5ab875(0x142)]=this[_0x5ab875(0x1b9)]());let _0x5c9dea;if(this[_0x5ab875(0xbc)]&&_0x31ce7b[_0x5ab875(0x3a5)]!==0x0)_0x5c9dea=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](k,this[_0x5ab875(0x438)],this['type'],_0x81e4b1[0x0],_0x31ce7b,this[_0x5ab875(0x1ad)]);else{if(this[_0x5ab875(0xbc)]&&_0x31ce7b[_0x5ab875(0x3a5)]===0x0)_0x81e4b1[0x0][_0x5ab875(0x142)]=this['_getCurrentRevision'](),_0x5c9dea=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](W,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],_0x81e4b1[0x0],this['_handler']);else{if(_0x31ce7b['length']!==0x0){const _0x3030ba=this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](x,this[_0x5ab875(0x438)],this['type'],_0x31ce7b,this['_handler']);_0x3030ba[_0x5ab875(0x42e)](),_0x5c9dea=_0x3030ba;}else _0x5c9dea=this['_injector'][_0x5ab875(0xbe)](se,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],this[_0x5ab875(0x1ad)]);}}return _0x5c9dea[_0x5ab875(0x312)](),_0x5c9dea;}catch(_0x89339d){return this[_0x5ab875(0x42d)][_0x5ab875(0x442)](_0x5ab875(0x35a),_0x5ab875(0x310),_0x89339d),this[_0x5ab875(0x3be)][_0x5ab875(0xbe)](F,this[_0x5ab875(0x438)],this[_0x5ab875(0x3a4)],this[_0x5ab875(0xbc)],this['_pendingMutations'],this[_0x5ab875(0x1ad)],!0x1);}}[_0x3a2165(0x462)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3a2165(0x32c)](_0x706c61){const _0x2bbd32=_0x3a2165;return this[_0x2bbd32(0x22e)]['push'](_0x706c61),this;}[_0x3a2165(0x336)](_0x30ef26){const _0x2e12fc=_0x3a2165;return this[_0x2e12fc(0x214)]['push'](_0x30ef26),this;}[_0x3a2165(0x2e1)](_0x7d6970){const _0x524282=_0x3a2165;if(this[_0x524282(0xbc)])return this['_acknowledgedAwaitingChangeset']=this[_0x524282(0xbc)],this[_0x524282(0xbc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3a2165(0x3f7)](_0x413127){const _0x18ff9c=_0x3a2165;return this[_0x18ff9c(0x99)](!!(_0x413127!=null&&_0x413127[_0x18ff9c(0x146)]));}['toggleOffline'](){const _0x4ff528=_0x3a2165;return this['_injector']['createInstance'](G,this['unitID'],this[_0x4ff528(0x3a4)],this[_0x4ff528(0xbc)],this['_pendingMutations'],this[_0x4ff528(0x1ad)]);}[_0x3a2165(0x1e0)](){return this;}[_0x3a2165(0x99)](_0x18f0af){const _0x45d991=_0x3a2165;return this[_0x45d991(0x3be)][_0x45d991(0xbe)](F,this[_0x45d991(0x438)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x45d991(0x1ad)],_0x18f0af);}};H=z([g(0x7,a[_0x3a2165(0x426)](a['Injector'])),g(0x8,a[_0x3a2165(0x426)](_['RevisionService'])),g(0x9,a['Inject'](exports[_0x3a2165(0x30d)])),g(0xa,a[_0x3a2165(0x490)]),g(0xb,a[_0x3a2165(0x3e2)]),g(0xc,a[_0x3a2165(0x244)]),g(0xd,_[_0x3a2165(0xc6)])],H);function Rt(_0x24e969,_0x3c5414,_0x3a02eb,_0x597601,_0x12c513,_0x37cc63){const _0xe2a7dd=_0x3a2165;return _0x597601&&_0x12c513[_0xe2a7dd(0x3a5)]?_0x24e969[_0xe2a7dd(0xbe)](k,_0x3c5414,_0x3a02eb,_0x597601,_0x12c513,_0x37cc63):_0x597601?_0x24e969[_0xe2a7dd(0xbe)](W,_0x3c5414,_0x3a02eb,_0x597601,_0x37cc63):_0x12c513['length']?_0x24e969[_0xe2a7dd(0xbe)](x,_0x3c5414,_0x3a02eb,_0x12c513,_0x37cc63):_0x24e969[_0xe2a7dd(0xbe)](se,_0x3c5414,_0x3a02eb,_0x37cc63);}var Hs=Object[_0x3a2165(0x1e2)],xs=Object[_0x3a2165(0x383)],Ke=(_0x147839,_0x45eaa3,_0x6321ae,_0x580204)=>{const _0x30950d=_0x3a2165;for(var _0x136f48=_0x580204>0x1?void 0x0:_0x580204?xs(_0x45eaa3,_0x6321ae):_0x45eaa3,_0x2e5646=_0x147839[_0x30950d(0x3a5)]-0x1,_0x4aaf05;_0x2e5646>=0x0;_0x2e5646--)(_0x4aaf05=_0x147839[_0x2e5646])&&(_0x136f48=(_0x580204?_0x4aaf05(_0x45eaa3,_0x6321ae,_0x136f48):_0x4aaf05(_0x136f48))||_0x136f48);return _0x580204&&_0x136f48&&Hs(_0x45eaa3,_0x6321ae,_0x136f48),_0x136f48;},I=(_0xd046a,_0x1a0110)=>(_0x4809e1,_0x28cd18)=>_0x1a0110(_0x4809e1,_0x28cd18,_0xd046a);exports[_0x3a2165(0x117)]=class extends a[_0x3a2165(0x441)]{constructor(_0x1a3143,_0x7442a9,_0x3a1a09,_0x224c49,_0x4e111b,_0x1190c2,_0x1bf0d0,_0x13a5ac,_0x1bece6,_0x51b462,_0x367faa,_0x5a3cbc,_0x624d63){const _0x40e016=_0x3a2165;super(),d(this,_0x40e016(0x1f3),new v[(_0x40e016(0x2f5))](null)),d(this,_0x40e016(0x32a),this['_state$']['asObservable']()),d(this,_0x40e016(0x4ab)),d(this,_0x40e016(0x10e),!0x1),d(this,_0x40e016(0x3fb),this[_0x40e016(0x32a)][_0x40e016(0x447)](v[_0x40e016(0x331)](_0x2a22c1=>_0x2a22c1?_0x2a22c1[_0x40e016(0x492)]:y[_0x40e016(0x299)]),v[_0x40e016(0x282)](0x1))),d(this,_0x40e016(0x1c9),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x40e016(0x438)]=_0x1a3143,this[_0x40e016(0x1c3)]=_0x7442a9,this[_0x40e016(0x346)]=_0x3a1a09,this[_0x40e016(0x3be)]=_0x224c49,this[_0x40e016(0x1e8)]=_0x4e111b,this[_0x40e016(0x49c)]=_0x1190c2,this['_localeService']=_0x1bf0d0,this[_0x40e016(0x2d0)]=_0x13a5ac,this[_0x40e016(0x42d)]=_0x1bece6,this[_0x40e016(0x3de)]=_0x51b462,this[_0x40e016(0x2bb)]=_0x367faa,this[_0x40e016(0x1cb)]=_0x5a3cbc,this['_singleActiveUnitService']=_0x624d63);}get[_0x3a2165(0xaa)](){const _0x327362=_0x3a2165;return this[_0x327362(0x4ab)];}async[_0x3a2165(0x4a9)](){const _0x250661=_0x3a2165;if(this[_0x250661(0xaa)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x250661(0x1d9)]();}[_0x3a2165(0x33e)](){const _0xd1da76=_0x3a2165;return this[_0xd1da76(0x10e)]=!0x0,a['toDisposable'](()=>{const _0x361e15=_0xd1da76;this[_0x361e15(0x10e)]=!0x1,this[_0x361e15(0x3d9)]();});}[_0x3a2165(0xee)](_0x4b6543){const _0x4f94c3=_0x3a2165;this[_0x4f94c3(0x4ab)]=_0x4b6543,this[_0x4f94c3(0x1f3)][_0x4f94c3(0x2c6)](_0x4b6543);}async[_0x3a2165(0x1d9)](){const _0x3eda2d=_0x3a2165;var _0x3c147b;this[_0x3eda2d(0xee)](await this[_0x3eda2d(0x13b)]()),this['_singleActiveUnitService']&&((_0x3c147b=this[_0x3eda2d(0xb6)])==null||_0x3c147b[_0x3eda2d(0x3ef)](this[_0x3eda2d(0x438)]),this[_0x3eda2d(0x167)](this[_0x3eda2d(0xb6)][_0x3eda2d(0x245)](this[_0x3eda2d(0x438)])[_0x3eda2d(0x1ee)](_0x31eb2b=>{const _0x3ac422=_0x3eda2d;this[_0x3ac422(0x42d)]['debug'](_0x3ac422(0xbb),'editing\x20status\x20changed\x20to',_0x31eb2b),_0x31eb2b===bt[_0x3ac422(0xa4)]?(this[_0x3ac422(0x2bb)][_0x3ac422(0x113)]({'content':this[_0x3ac422(0x1d6)]['t'](_0x3ac422(0x4b9)),'type':X[_0x3ac422(0x388)]['Warning']}),this['_permissionService'][_0x3ac422(0x33f)](new C[(_0x3ac422(0x1c4))](this[_0x3ac422(0x438)])['id'],!0x1)):this[_0x3ac422(0x1cb)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x3ac422(0x438)])['id'],!0x0);})));let _0xc33a61=!0x1;return this[_0x3eda2d(0x167)](this['session'][_0x3eda2d(0x1df)][_0x3eda2d(0x1ee)](_0x4b733f=>{const _0x8777e3=_0x3eda2d;_0x4b733f===$['ONLINE']?this['_toggleOnline'](_0xc33a61):_0x4b733f===$[_0x8777e3(0x299)]&&(_0xc33a61=!0x0,this[_0x8777e3(0x46b)]());})),this[_0x3eda2d(0x167)](this['session'][_0x3eda2d(0x354)][_0x3eda2d(0x1ee)](_0x43cc91=>{const _0x4f6145=_0x3eda2d;try{switch(_0x43cc91[_0x4f6145(0x217)]){case _[_0x4f6145(0x39b)][_0x4f6145(0x3bd)]:{this['_onRemoteChangeset'](_['parseProtocolChangeset'](_0x43cc91[_0x4f6145(0x124)]));break;}case _[_0x4f6145(0x39b)][_0x4f6145(0x476)]:{this[_0x4f6145(0x270)](_0x43cc91[_0x4f6145(0x124)]);break;}case _['CollaborationEvent'][_0x4f6145(0x179)]:{this[_0x4f6145(0xb0)]();break;}case _['CollaborationEvent'][_0x4f6145(0x17a)]:{this[_0x4f6145(0x32d)](_0x43cc91[_0x4f6145(0x124)]['changesets'][_0x4f6145(0x331)](_0x3f9d2a=>_['parseProtocolChangeset'](_0x3f9d2a)));break;}case _['CollaborationEvent']['PERMISSION_REJ']:this[_0x4f6145(0xb0)]({'isPermissionRej':!0x0});}}catch(_0x127739){throw console[_0x4f6145(0x442)](_0x4f6145(0x36c),_0x127739),_0x127739;}})),this[_0x3eda2d(0x4ab)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x3a2165(0x120)](){const _0x38ba4f=_0x3a2165;if(this['_transitionLocked'])throw new Error(_0x38ba4f(0x454));this[_0x38ba4f(0x1c9)]=!0x0;}[_0x3a2165(0x27f)](_0x41cac5){const _0x8d5200=_0x3a2165;this[_0x8d5200(0x120)](),this[_0x8d5200(0xee)](this[_0x8d5200(0x4ab)][_0x8d5200(0x32c)](_0x41cac5)),this[_0x8d5200(0x2f7)]();}[_0x3a2165(0x185)](_0x2af7a5){const _0x53797b=_0x3a2165;if(!(_0x2af7a5[_0x53797b(0x251)]<=this[_0x53797b(0x2d0)]['getCurrentRevOfUnit'](this[_0x53797b(0x438)]))){if(this['_collaborationPaused']){this[_0x53797b(0x2e3)]['push'](_0x2af7a5);return;}this[_0x53797b(0x1aa)](_0x2af7a5);}}[_0x3a2165(0x3d9)](){const _0x4037b8=_0x3a2165;this[_0x4037b8(0x2e3)][_0x4037b8(0x337)](_0x14feab=>this[_0x4037b8(0x1aa)](_0x14feab)),this[_0x4037b8(0x2e3)]=[];}[_0x3a2165(0x1aa)](_0x547ca3){const _0x5dae45=_0x3a2165,_0x3ce0e6=this[_0x5dae45(0x49c)][_0x5dae45(0x12f)][_0x5dae45(0x283)](this[_0x5dae45(0x49c)][_0x5dae45(0x12f)][_0x5dae45(0x23c)]()['COMPRESS_MUTATION_APPLY'])(_0x547ca3[_0x5dae45(0x31e)],null)||_0x547ca3[_0x5dae45(0x31e)],_0xe8cc5c={..._0x547ca3,'mutations':_0x3ce0e6};this[_0x5dae45(0x120)](),this[_0x5dae45(0xee)](this[_0x5dae45(0x4ab)][_0x5dae45(0x336)](_0xe8cc5c)),this[_0x5dae45(0x2f7)]();}[_0x3a2165(0x270)](_0x316337){const _0x2cf2e5=_0x3a2165;this['_lockTransition'](),this[_0x2cf2e5(0xee)](this[_0x2cf2e5(0x4ab)][_0x2cf2e5(0x2e1)](_0x316337)),this[_0x2cf2e5(0x2f7)]();}[_0x3a2165(0xb0)](_0x3a5410){const _0x5f4634=_0x3a2165;this[_0x5f4634(0x120)](),this['_updateState'](this[_0x5f4634(0x4ab)][_0x5f4634(0x3f7)](_0x3a5410)),this[_0x5f4634(0x2f7)]();}['_onFetchMissResult'](_0x54d90a){const _0x16a105=_0x3a2165;if(!(this[_0x16a105(0x4ab)]instanceof H))throw new TypeError(_0x16a105(0x3fc));const _0x1791ef=_0x54d90a['map'](_0x413487=>{const _0xfd0928=_0x16a105,_0x27541a=this[_0xfd0928(0x49c)][_0xfd0928(0x12f)][_0xfd0928(0x283)](this[_0xfd0928(0x49c)][_0xfd0928(0x12f)]['getInterceptPoints']()[_0xfd0928(0x458)])(_0x413487[_0xfd0928(0x31e)],null)||_0x413487[_0xfd0928(0x31e)];return{..._0x413487,'mutations':_0x27541a};});this[_0x16a105(0x120)](),this[_0x16a105(0xee)](this['_state'][_0x16a105(0x1f6)](_0x1791ef)),this[_0x16a105(0x2f7)]();}[_0x3a2165(0x46b)](){const _0x5beaba=_0x3a2165;this[_0x5beaba(0x120)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x5beaba(0x2f7)]();}[_0x3a2165(0x154)](_0x2ce9a7=!0x1){const _0x5cb1b5=_0x3a2165;this[_0x5cb1b5(0x120)](),this['_updateState'](this['_state'][_0x5cb1b5(0x1e0)]()),this['_unlockTransition']();const _0x46dd0a=this[_0x5cb1b5(0x4ab)];_0x2ce9a7&&_0x46dd0a instanceof se&&(this['_lockTransition'](),this['_updateState'](_0x46dd0a['fetchMiss']()),this[_0x5cb1b5(0x2f7)]());}async[_0x3a2165(0x13b)](){return new Promise(_0x530a81=>{const _0x2d2e76=_0x4ca1;this['session']['sessionStatus$'][_0x2d2e76(0x447)](v['take'](0x1))['subscribe'](async _0x147d02=>{const _0x7bc555=_0x2d2e76;_0x530a81(await this[_0x7bc555(0x395)](_0x147d02===$[_0x7bc555(0x1ae)]));});});}[_0x3a2165(0x3d0)](){const _0x39eb55=_0x3a2165,_0x96fad0=this[_0x39eb55(0x438)];return{'onStateChange':(_0x208f7f,_0x5c8d50)=>{const _0x48d11d=_0x39eb55;if(_0x208f7f!==this[_0x48d11d(0x4ab)])throw new Error(_0x48d11d(0x37e)+_0x208f7f[_0x48d11d(0x492)]+_0x48d11d(0x190)+_0x5c8d50[_0x48d11d(0x492)]+_0x48d11d(0x3ad)+this[_0x48d11d(0x4ab)][_0x48d11d(0x492)]);this['_updateState'](_0x5c8d50);},'onSendChangeset':_0x46379c=>{const _0xc36608=_0x39eb55,_0x41b0d1={'eventID':_[_0xc36608(0x39b)][_0xc36608(0xc1)],'data':{'unitID':_0x46379c[_0xc36608(0x438)],'unitType':this['_type'],'changeset':_0x46379c,'memberID':this[_0xc36608(0x1c3)][_0xc36608(0x446)]()}};this['session']['send'](_0x41b0d1,this[_0xc36608(0x438)]);},'onMissingChangesets':({from:_0x3c68ff,to:_0xe2fe08})=>{const _0x17d0de=_0x39eb55;this[_0x17d0de(0x42d)][_0x17d0de(0x3aa)](_0x17d0de(0xbb),'fetching\x20missing\x20changesets\x20from\x20'+_0x3c68ff+_0x17d0de(0x118)+_0xe2fe08);const _0x3415aa={'eventID':_[_0x17d0de(0x39b)][_0x17d0de(0x484)],'data':{'unitID':_0x96fad0,'unitType':this['_type'],'from':_0x3c68ff,'to':_0xe2fe08}};this[_0x17d0de(0x1c3)][_0x17d0de(0x27d)](_0x3415aa,this[_0x17d0de(0x438)]);}};}async['_createInitialStateImpl'](_0x35340b){const _0x45d5d7=_0x3a2165;var _0x402c44,_0x23d1d6;const _0x194508=await this[_0x45d5d7(0x1e8)][_0x45d5d7(0x152)](this[_0x45d5d7(0x438)]),_0x1fba1b=(_0x402c44=_0x194508==null?void 0x0:_0x194508['mutations'])!=null?_0x402c44:[],_0x443fb8=(_0x23d1d6=_0x194508==null?void 0x0:_0x194508[_0x45d5d7(0x3e7)])!=null?_0x23d1d6:null,_0x4907f4=this[_0x45d5d7(0x438)];try{this[_0x45d5d7(0x44f)](_0x443fb8,_0x1fba1b);}catch(_0x4b3886){this[_0x45d5d7(0x42d)][_0x45d5d7(0x442)](_0x4b3886);}const _0x159541=this[_0x45d5d7(0x3d0)]();if(_0x35340b){const _0x1bf2b5=Rt(this[_0x45d5d7(0x3be)],_0x4907f4,this[_0x45d5d7(0x346)],_0x443fb8,_0x1fba1b,_0x159541);return _0x1bf2b5 instanceof x?_0x1bf2b5[_0x45d5d7(0x42e)]():(_0x1bf2b5 instanceof k||_0x1bf2b5 instanceof W)&&_0x1bf2b5[_0x45d5d7(0x462)](),_0x1bf2b5;}return this[_0x45d5d7(0x3be)][_0x45d5d7(0xbe)](G,_0x4907f4,this[_0x45d5d7(0x346)],_0x443fb8,_0x1fba1b,_0x159541);}[_0x3a2165(0x44f)](_0x446636,_0x357834){const _0x1b3eb6=_0x3a2165;var _0x5952af,_0x5e981b;const _0x57eace=this['_compressMutationService'][_0x1b3eb6(0x12f)][_0x1b3eb6(0x283)](this[_0x1b3eb6(0x49c)][_0x1b3eb6(0x12f)]['getInterceptPoints']()[_0x1b3eb6(0x458)]);(_0x5952af=_0x57eace((_0x446636==null?void 0x0:_0x446636[_0x1b3eb6(0x31e)])||[],null))==null||_0x5952af[_0x1b3eb6(0x337)](_0x2ae1c6=>this[_0x1b3eb6(0x3de)][_0x1b3eb6(0x1c2)](_0x2ae1c6['id'],_0x2ae1c6['params'])),(_0x5e981b=_0x57eace(_0x357834||[],null))==null||_0x5e981b[_0x1b3eb6(0x337)](_0x290caf=>this['_commandService'][_0x1b3eb6(0x1c2)](_0x290caf['id'],_0x290caf[_0x1b3eb6(0x101)]));}},exports['CollaborationEntity']=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a[_0x3a2165(0x426)](exports[_0x3a2165(0x30d)])),I(0x5,a[_0x3a2165(0x426)](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a['LocaleService'])),I(0x7,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x490)]),I(0x9,a['ICommandService']),I(0xa,N[_0x3a2165(0x39e)]),I(0xb,a[_0x3a2165(0x277)]),I(0xc,a['Optional'](be))],exports[_0x3a2165(0x117)]),exports[_0x3a2165(0x4ba)]=class extends exports[_0x3a2165(0x117)]{constructor(_0xdbf58,_0x347e70,_0x4e684d,_0x5b2a2b,_0x5d432f,_0x1babaf,_0x379944,_0x48af54,_0x364bf1,_0x4746ca,_0x3562bc,_0x215074,_0x36349c,_0x313a24,_0x3c1908,_0x202f02,_0x241647){const _0x28ddd9=_0x3a2165;super(_0xdbf58,_0x4e684d,_0x347e70,_0x5b2a2b,_0x5d432f,_0x1babaf,_0x379944,_0x48af54,_0x36349c,_0x313a24,_0x3c1908,_0x202f02,_0x241647),this[_0x28ddd9(0x438)]=_0xdbf58,this['type']=_0x347e70,this[_0x28ddd9(0x16e)]=_0x364bf1,this['_docTransformIMECacheService']=_0x4746ca,this[_0x28ddd9(0x1e3)]=_0x3562bc,this[_0x28ddd9(0x374)]=_0x215074;}[_0x3a2165(0x3d0)](){const _0x55864f=_0x3a2165,_0x46a748=super['_createHandler']();return _0x46a748['onTransformIME']=_0x4d8825=>this['_docTransformIMECacheService'][_0x55864f(0x107)](_0x4d8825),_0x46a748[_0x55864f(0x345)]=_0x29dfb7=>this[_0x55864f(0x1e3)][_0x55864f(0x289)](_0x29dfb7),_0x46a748[_0x55864f(0x29a)]=_0x5e65b7=>this[_0x55864f(0x374)]['syncEditingCollabCursor'](_0x5e65b7),_0x46a748[_0x55864f(0x2dd)]=_0x4a3996=>this[_0x55864f(0x4ae)][_0x55864f(0x1f9)](_0x4a3996),_0x46a748;}async[_0x3a2165(0x1d9)](){const _0x1964d4=_0x3a2165,_0x342387=await super[_0x1964d4(0x1d9)]();return this[_0x1964d4(0x167)](this[_0x1964d4(0x3de)][_0x1964d4(0x44e)]((_0x8332b9,_0x4963bc)=>{const _0x1f8cd8=_0x1964d4;if(_0x8332b9['type']!==a[_0x1f8cd8(0x303)][_0x1f8cd8(0x178)]||_0x4963bc!=null&&_0x4963bc['fromCollab']||_0x4963bc!=null&&_0x4963bc[_0x1f8cd8(0x47c)])return;const _0x55f69e=_0x8332b9[_0x1f8cd8(0x101)];if((_0x55f69e==null?void 0x0:_0x55f69e[_0x1f8cd8(0xec)])!==this[_0x1f8cd8(0x438)])return;let _0x5ee744=_0x8332b9;if(_0x5ee744['id']===V['RichTextEditingMutation']['id']){const _0x342ce2=_0x5ee744[_0x1f8cd8(0x101)];_0x5ee744={'id':V[_0x1f8cd8(0x21d)]['id'],'type':a['CommandType'][_0x1f8cd8(0x178)],'params':{'unitId':_0x342ce2[_0x1f8cd8(0xec)],'actions':_0x342ce2[_0x1f8cd8(0x3a9)],'textRanges':null}};}const _0x3c34bf=this[_0x1f8cd8(0x49c)]['interceptor'][_0x1f8cd8(0x283)](this['_compressMutationService'][_0x1f8cd8(0x12f)][_0x1f8cd8(0x23c)]()['COMPRESS_MUTATION_SEND'])([_0x5ee744],null)||[_0x5ee744];this[_0x1f8cd8(0x27f)](_0x3c34bf[0x0]);})),_0x342387;}},exports['DocCollaborationEntity']=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a['Inject'](exports[_0x3a2165(0x30d)])),I(0x5,a['Inject'](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),I(0x7,a[_0x3a2165(0x426)](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x426)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a[_0x3a2165(0x426)](me)),I(0xb,a[_0x3a2165(0x426)](Ye)),I(0xc,a[_0x3a2165(0x490)]),I(0xd,a[_0x3a2165(0x3e2)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3a2165(0x277)]),I(0x10,a['Optional'](be))],exports['DocCollaborationEntity']),exports[_0x3a2165(0x437)]=class extends exports[_0x3a2165(0x117)]{constructor(_0xb4bcf4,_0x2444c9,_0x451195,_0x15d589,_0x4aa3e5,_0x1595c8,_0x1cb76a,_0x1fd431,_0x3fdd7e,_0x5d56cd,_0xc3d262,_0x2961b3,_0x42c59e,_0x475d83){const _0x3ecf86=_0x3a2165;super(_0xb4bcf4,_0x451195,_0x2444c9,_0x15d589,_0x4aa3e5,_0x1595c8,_0x1cb76a,_0x1fd431,_0x5d56cd,_0xc3d262,_0x2961b3,_0x42c59e,_0x475d83),this[_0x3ecf86(0x438)]=_0xb4bcf4,this[_0x3ecf86(0x3a4)]=_0x2444c9,this[_0x3ecf86(0x2be)]=_0x3fdd7e;}[_0x3a2165(0x3d0)](){const _0x2a5f78=_0x3a2165,_0x3a105d=super['_createHandler']();return _0x3a105d['onTransformSelections']=_0x282af2=>this[_0x2a5f78(0x2be)][_0x2a5f78(0x289)](_0x282af2),_0x3a105d;}async[_0x3a2165(0x1d9)](){const _0x5298aa=_0x3a2165,_0x495feb=await super[_0x5298aa(0x1d9)]();return this[_0x5298aa(0x167)](this['_commandService'][_0x5298aa(0x44e)]((_0x1615ea,_0x196edd)=>{const _0x453e8b=_0x5298aa;if(_0x1615ea[_0x453e8b(0x3a4)]!==a[_0x453e8b(0x303)][_0x453e8b(0x178)]||_0x196edd!=null&&_0x196edd[_0x453e8b(0x3ee)]||_0x196edd!=null&&_0x196edd['onlyLocal'])return;const _0x2eb5d3=_0x1615ea[_0x453e8b(0x101)];if((_0x2eb5d3==null?void 0x0:_0x2eb5d3[_0x453e8b(0xec)])!==this['unitID'])return;const _0x3f8438=_0x1615ea,_0x142c17=this['_compressMutationService'][_0x453e8b(0x12f)]['fetchThroughInterceptors'](this[_0x453e8b(0x49c)][_0x453e8b(0x12f)][_0x453e8b(0x23c)]()[_0x453e8b(0x48e)])([_0x3f8438],null)||[_0x3f8438];this[_0x453e8b(0x27f)](_0x142c17[0x0]);})),_0x495feb;}},exports[_0x3a2165(0x437)]=Ke([I(0x3,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),I(0x4,a[_0x3a2165(0x426)](exports['LocalCacheService'])),I(0x5,a[_0x3a2165(0x426)](_[_0x3a2165(0x2c1)])),I(0x6,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)])),I(0x7,a['Inject'](_[_0x3a2165(0xc9)])),I(0x8,a[_0x3a2165(0x426)](ge)),I(0x9,a[_0x3a2165(0x490)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3a2165(0x39e)]),I(0xc,a[_0x3a2165(0x277)]),I(0xd,a['Optional'](be))],exports[_0x3a2165(0x437)]);var ks=Object[_0x3a2165(0x1e2)],Bs=Object['getOwnPropertyDescriptor'],Vs=(_0xa96759,_0x7f1e7d,_0x4f6ac2,_0x520438)=>{const _0x3808c0=_0x3a2165;for(var _0x2911f6=_0x520438>0x1?void 0x0:_0x520438?Bs(_0x7f1e7d,_0x4f6ac2):_0x7f1e7d,_0x3315b6=_0xa96759[_0x3808c0(0x3a5)]-0x1,_0x1a94bf;_0x3315b6>=0x0;_0x3315b6--)(_0x1a94bf=_0xa96759[_0x3315b6])&&(_0x2911f6=(_0x520438?_0x1a94bf(_0x7f1e7d,_0x4f6ac2,_0x2911f6):_0x1a94bf(_0x2911f6))||_0x2911f6);return _0x520438&&_0x2911f6&&ks(_0x7f1e7d,_0x4f6ac2,_0x2911f6),_0x2911f6;},Ue=(_0x39a247,_0x9b9bbc)=>(_0x1c8b79,_0x49dcc1)=>_0x9b9bbc(_0x1c8b79,_0x49dcc1,_0x39a247);exports[_0x3a2165(0x31d)]=class extends a[_0x3a2165(0x441)]{constructor(_0x356130,_0x1b783b,_0x50ac4b){const _0x3bd43f=_0x3a2165;super(),d(this,_0x3bd43f(0x17e),new Map()),d(this,'_entityInit$',new v[(_0x3bd43f(0x28d))]()),(this[_0x3bd43f(0x3be)]=_0x356130,this[_0x3bd43f(0x1b1)]=_0x1b783b,this['_univerInstanceService']=_0x50ac4b,this['_init']());}[_0x3a2165(0x491)](){const _0x7fc04d=_0x3a2165;super['dispose'](),this['_entities'][_0x7fc04d(0x337)](_0x30458a=>_0x30458a[_0x7fc04d(0x491)]()),this[_0x7fc04d(0x17e)][_0x7fc04d(0x3cc)]();}[_0x3a2165(0xb9)](_0x3d8a4a){const _0x34dcc6=_0x3a2165;var _0x51a414;return(_0x51a414=this[_0x34dcc6(0x17e)][_0x34dcc6(0x305)](_0x3d8a4a))!=null?_0x51a414:null;}[_0x3a2165(0xfa)](_0x3ca0ad){const _0x519500=_0x3a2165,_0x5b04b4=this[_0x519500(0xb9)](_0x3ca0ad);return _0x5b04b4?v['of'](_0x5b04b4):this[_0x519500(0x422)]['pipe'](E[_0x519500(0xe8)](_0x3da9f6=>_0x3da9f6[_0x519500(0x438)]===_0x3ca0ad));}[_0x3a2165(0x1d9)](){const _0x23d022=_0x3a2165;this['_univerInstanceService'][_0x23d022(0x31c)](a[_0x23d022(0x461)]['UNIVER_SHEET'])[_0x23d022(0x447)](v[_0x23d022(0x27a)](this[_0x23d022(0x15a)]),E['delay'](0x10))[_0x23d022(0x1ee)](async _0x485a16=>{const _0x31af5d=_0x23d022,_0x1a5553=_0x485a16[_0x31af5d(0x3ae)](),_0x5c9bba=await this[_0x31af5d(0x2ab)](_0x1a5553,j[_0x31af5d(0x21f)]);this[_0x31af5d(0x17e)][_0x31af5d(0x194)](_0x1a5553,_0x5c9bba);}),this['_univerInstanceService'][_0x23d022(0x31c)](a[_0x23d022(0x461)][_0x23d022(0x34e)])['pipe'](v[_0x23d022(0x27a)](this[_0x23d022(0x15a)]),E[_0x23d022(0xc2)](0x10))[_0x23d022(0x447)](E['filter'](_0x27d3b7=>!_0x27d3b7[_0x23d022(0x3ae)]()['startsWith']('__')))[_0x23d022(0x1ee)](async _0x4ee5b1=>{const _0x104f36=_0x23d022,_0x18a1b8=_0x4ee5b1[_0x104f36(0x3ae)](),_0x1fbbb0=await this[_0x104f36(0x2ab)](_0x18a1b8,j[_0x104f36(0x34e)]);this[_0x104f36(0x17e)]['set'](_0x18a1b8,_0x1fbbb0);}),v[_0x23d022(0x2e2)](this['_univerInstanceService'][_0x23d022(0x30f)](a[_0x23d022(0x461)][_0x23d022(0x21f)]),this[_0x23d022(0x406)][_0x23d022(0x30f)](a[_0x23d022(0x461)][_0x23d022(0x34e)]))['pipe'](v['takeUntil'](this[_0x23d022(0x15a)]))[_0x23d022(0x1ee)](_0x17b4e7=>{const _0x4b6482=_0x23d022,_0x294ff8=_0x17b4e7[_0x4b6482(0x3ae)](),_0x5cdbc5=this[_0x4b6482(0x17e)][_0x4b6482(0x305)](_0x294ff8);_0x5cdbc5&&(_0x5cdbc5[_0x4b6482(0x491)](),this[_0x4b6482(0x17e)][_0x4b6482(0x140)](_0x294ff8));});}async['_startCollaboration'](_0x2d6515,_0x5c7d5e){const _0x13587d=_0x3a2165,_0x499ddc=await this[_0x13587d(0x1b1)][_0x13587d(0x41a)](_0x2d6515),_0x41d7b5=this[_0x13587d(0x3be)][_0x13587d(0xbe)](this['_getCtorByUniverType'](_0x5c7d5e),_0x2d6515,_0x5c7d5e,_0x499ddc);return await _0x41d7b5[_0x13587d(0x4a9)](),this[_0x13587d(0x422)]['next'](_0x41d7b5),_0x41d7b5;}['_getCtorByUniverType'](_0x530cdd){const _0x38ff55=_0x3a2165;switch(_0x530cdd){case j['UNIVER_DOC']:return exports[_0x38ff55(0x4ba)];case j['UNIVER_SHEET']:return exports[_0x38ff55(0x437)];default:throw new Error(_0x38ff55(0x1a9)+_0x530cdd);}}},exports[_0x3a2165(0x31d)]=Vs([Ue(0x0,a['Inject'](a[_0x3a2165(0x3b0)])),Ue(0x1,a[_0x3a2165(0x426)](exports[_0x3a2165(0x16c)])),Ue(0x2,a[_0x3a2165(0x137)])],exports[_0x3a2165(0x31d)]);const nt=[_0x3a2165(0x3d8),_0x3a2165(0x37c),_0x3a2165(0x3e9),_0x3a2165(0x1f2),_0x3a2165(0x173),'gold400'];class Xe extends a[_0x3a2165(0x287)]{constructor(){const _0x4d2735=_0x3a2165;super(...arguments),d(this,_0x4d2735(0x222),new Map()),d(this,_0x4d2735(0x36f),0x0);}['assignAColorForMemberID'](_0x16d31b){const _0x3fd159=_0x3a2165;if(this['_assignedColors'][_0x3fd159(0x4ac)](_0x16d31b))return this[_0x3fd159(0x222)][_0x3fd159(0x305)](_0x16d31b);const _0x43dce8=nt[this[_0x3fd159(0x36f)]];return this[_0x3fd159(0x36f)]=(this[_0x3fd159(0x36f)]+0x1)%nt[_0x3fd159(0x3a5)],this[_0x3fd159(0x222)][_0x3fd159(0x194)](_0x16d31b,_0x43dce8),_0x43dce8;}}var Ws=Object['defineProperty'],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x41e927,_0x1d7b39,_0x573ea6,_0x4d3b2e)=>{const _0x5258f6=_0x3a2165;for(var _0x1f624d=_0x4d3b2e>0x1?void 0x0:_0x4d3b2e?Fs(_0x1d7b39,_0x573ea6):_0x1d7b39,_0x3f72fb=_0x41e927[_0x5258f6(0x3a5)]-0x1,_0x46a22a;_0x3f72fb>=0x0;_0x3f72fb--)(_0x46a22a=_0x41e927[_0x3f72fb])&&(_0x1f624d=(_0x4d3b2e?_0x46a22a(_0x1d7b39,_0x573ea6,_0x1f624d):_0x46a22a(_0x1f624d))||_0x1f624d);return _0x4d3b2e&&_0x1f624d&&Ws(_0x1d7b39,_0x573ea6,_0x1f624d),_0x1f624d;},K=(_0x243917,_0x277454)=>(_0x20b568,_0x53a554)=>_0x277454(_0x20b568,_0x53a554,_0x243917);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3a2165(0x441)]{constructor(_0x16b00f,_0x4b8bd9,_0x3bd535,_0xd4047f,_0x48fac0,_0x1228bc,_0x1cc259,_0x1f8ae3,_0x4f311f){const _0x35aa5f=_0x3a2165;super(),d(this,_0x35aa5f(0x234),!0x1),d(this,_0x35aa5f(0x1d9),!0x1),d(this,_0x35aa5f(0x12a),new v[(_0x35aa5f(0x2f5))](new Map())),d(this,_0x35aa5f(0x46a),this['_cursorInfo$']['asObservable']()),d(this,_0x35aa5f(0x248),new v['BehaviorSubject']([])),d(this,_0x35aa5f(0x455),this['_roomMembers$']['pipe'](v[_0x35aa5f(0x2f4)](Ys))),d(this,_0x35aa5f(0x2d2),a[_0x35aa5f(0xd0)](_0x58559d=>{const _0x55068e=_0x35aa5f,_0x5957ac={'eventID':_['CollaborationEvent'][_0x55068e(0x3f8)],'data':{'unitID':this[_0x55068e(0x438)],'memberID':this[_0x55068e(0x474)][_0x55068e(0x446)](),'selection':Tt(_0x58559d)}};this[_0x55068e(0x474)][_0x55068e(0x27d)](_0x5957ac,this[_0x55068e(0x438)]);},Ks)),(this[_0x35aa5f(0x438)]=_0x16b00f,this[_0x35aa5f(0x474)]=_0x4b8bd9,this['_injector']=_0x3bd535,this[_0x35aa5f(0x372)]=_0xd4047f,this[_0x35aa5f(0x2c3)]=_0x48fac0,this[_0x35aa5f(0x3a1)]=_0x1228bc,this[_0x35aa5f(0x316)]=_0x1cc259,this[_0x35aa5f(0x406)]=_0x1f8ae3,this[_0x35aa5f(0x3de)]=_0x4f311f);}get[_0x3a2165(0x378)](){const _0x473485=_0x3a2165;return this[_0x473485(0x12a)]['getValue']();}get[_0x3a2165(0x33b)](){const _0x392367=_0x3a2165;return this[_0x392367(0x248)][_0x392367(0x3bf)]();}[_0x3a2165(0x491)](){const _0x47d07e=_0x3a2165;super[_0x47d07e(0x491)](),this[_0x47d07e(0x12a)]['next'](new Map()),this['_cursorInfo$'][_0x47d07e(0x41c)](),this[_0x47d07e(0x248)][_0x47d07e(0x2c6)]([]),this[_0x47d07e(0x248)][_0x47d07e(0x41c)]();}[_0x3a2165(0x4a9)](){const _0x1da71f=_0x3a2165;this[_0x1da71f(0x1d9)]||(this[_0x1da71f(0x1d9)]=!0x0,this[_0x1da71f(0x474)][_0x1da71f(0x1df)][_0x1da71f(0x447)](v[_0x1da71f(0x27a)](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x11b66a=>{const _0x2f456=_0x1da71f;_0x11b66a===$[_0x2f456(0x1ae)]?this['_toggleOnline']():this[_0x2f456(0x46b)]();}),this[_0x1da71f(0x474)][_0x1da71f(0x354)][_0x1da71f(0x447)](v[_0x1da71f(0x27a)](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x355b10=>{const _0x3a565f=_0x1da71f,_0x279cb0=_0x355b10['eventID'];_0x279cb0===_[_0x3a565f(0x39b)][_0x3a565f(0x3f8)]&&this[_0x3a565f(0x4a7)](_0x355b10),_0x279cb0===_[_0x3a565f(0x39b)][_0x3a565f(0x327)]&&this[_0x3a565f(0x186)](_0x355b10);}),this[_0x1da71f(0x167)](this['_commandService'][_0x1da71f(0x44e)](_0x5a2628=>{const _0x4f9f04=_0x1da71f,_0x3568a4=_0x5a2628[_0x4f9f04(0x101)];_0x3568a4!=null&&this[_0x4f9f04(0x234)]&&_0x5a2628['id']===V[_0x4f9f04(0xdd)]['id']&&_0x3568a4['unitId']===this['unitID']&&_0x3568a4['isEditing']===!0x1&&this[_0x4f9f04(0x2d2)](_0x3568a4['ranges']);})),this[_0x1da71f(0x3a1)]['collabCursorState$'][_0x1da71f(0x447)](v['takeUntil'](this[_0x1da71f(0x15a)]))[_0x1da71f(0x1ee)](_0x25dbe6=>{const _0x3ff65c=_0x1da71f;if((_0x25dbe6==null?void 0x0:_0x25dbe6[_0x3ff65c(0x438)])!==this[_0x3ff65c(0x438)])return;const _0x4e1a8e={'eventID':_[_0x3ff65c(0x39b)][_0x3ff65c(0x3f8)],'data':_0x25dbe6};this['_onCursorUpdate'](_0x4e1a8e);}),this[_0x1da71f(0x167)](this['_commandService'][_0x1da71f(0x44e)](_0x5009b0=>{const _0x4c759e=_0x1da71f;if(_0x5009b0[_0x4c759e(0x101)]==null)return;const _0x352aa6=_0x5009b0[_0x4c759e(0x101)];if(_0x5009b0['id']!==V[_0x4c759e(0x21d)]['id']||_0x352aa6[_0x4c759e(0xec)]!==this[_0x4c759e(0x438)])return;const _0x8e5b5a={'id':'doc.mutation.rich-text-editing','params':_0x352aa6},_0x46aa70=this[_0x4c759e(0x378)];for(const [_0x5394b4,_0x199bbb]of _0x46aa70){const _0x481037={'id':_0x4c759e(0x132),'params':{'unitId':this[_0x4c759e(0x438)],'actions':null,'textRanges':_0x199bbb[_0x4c759e(0x352)]}},_0x535b74=this[_0x4c759e(0x316)]['transformMutation'](_0x8e5b5a,_0x481037,!0x1);if(_[_0x4c759e(0x45c)](_0x535b74))throw _0x535b74['error'];_0x46aa70[_0x4c759e(0x194)](_0x5394b4,{..._0x199bbb,'ranges':_0x535b74['m2Prime'][_0x4c759e(0x101)]['textRanges']});}queueMicrotask(()=>{const _0x1ea398=_0x4c759e;this[_0x1ea398(0x12a)][_0x1ea398(0x2c6)](_0x46aa70);});})));}['_onCursorUpdate'](_0x295164){const _0x259304=_0x3a2165;var _0x2f01b0,_0x48e7cb;const {memberID:_0x3ec1c4,selection:_0x4d3cd2}=_0x295164[_0x259304(0x124)],_0x1d125d=Us(_0x4d3cd2),_0x4c0628=(_0x48e7cb=(_0x2f01b0=this[_0x259304(0x2c3)][_0x259304(0x3c4)](this[_0x259304(0x438)],_0x3ec1c4))==null?void 0x0:_0x2f01b0[_0x259304(0x494)])!=null?_0x48e7cb:_0x259304(0x257),_0x50a749={'color':this[_0x259304(0x372)][_0x259304(0x1d2)](_0x3ec1c4),'name':_0x4c0628,'ranges':_0x1d125d},_0x227ea0=this[_0x259304(0x378)];_0x227ea0[_0x259304(0x194)](_0x3ec1c4,_0x50a749),this['_cursorInfo$'][_0x259304(0x2c6)](_0x227ea0);}[_0x3a2165(0x186)](_0x39e317){const _0x162502=_0x3a2165,{memberID:_0x281f56}=_0x39e317['data'],_0x206aeb=this['cursorInfo'];_0x206aeb[_0x162502(0x140)](_0x281f56),this[_0x162502(0x12a)][_0x162502(0x2c6)](_0x206aeb);}['_toggleOnline'](){const _0x195743=_0x3a2165;var _0x52244d;if(this[_0x195743(0x234)]=!0x0,((_0x52244d=this['_univerInstanceService'][_0x195743(0x1a0)]())==null?void 0x0:_0x52244d[_0x195743(0x3ae)]())!==this[_0x195743(0x438)])return;const _0xb5c640=this[_0x195743(0x3be)][_0x195743(0x305)](V['DocSelectionManagerService'])[_0x195743(0x3b2)]();Array['isArray'](_0xb5c640)&&_0xb5c640['length']>0x0&&this[_0x195743(0x2d2)](_0xb5c640);}['_toggleOffline'](){const _0x2043d2=_0x3a2165;this[_0x2043d2(0x234)]=!0x1;}};$e=Gs([K(0x2,a['Inject'](a[_0x3a2165(0x3b0)])),K(0x3,a[_0x3a2165(0x426)](Xe)),K(0x4,a[_0x3a2165(0x426)](q)),K(0x5,a[_0x3a2165(0x426)](Ye)),K(0x6,_['ITransformService']),K(0x7,a[_0x3a2165(0x137)]),K(0x8,a[_0x3a2165(0x3e2)])],$e);var Xs=Object[_0x3a2165(0x1e2)],qs=Object[_0x3a2165(0x383)],zs=(_0x503c81,_0x412a95,_0x297af0,_0x5d197e)=>{const _0x253aa4=_0x3a2165;for(var _0x20acd2=_0x5d197e>0x1?void 0x0:_0x5d197e?qs(_0x412a95,_0x297af0):_0x412a95,_0x4949e8=_0x503c81[_0x253aa4(0x3a5)]-0x1,_0x4f144f;_0x4949e8>=0x0;_0x4949e8--)(_0x4f144f=_0x503c81[_0x4949e8])&&(_0x20acd2=(_0x5d197e?_0x4f144f(_0x412a95,_0x297af0,_0x20acd2):_0x4f144f(_0x20acd2))||_0x20acd2);return _0x5d197e&&_0x20acd2&&Xs(_0x412a95,_0x297af0,_0x20acd2),_0x20acd2;},Q=(_0x2cbb3a,_0x30270f)=>(_0x247312,_0x390a75)=>_0x30270f(_0x247312,_0x390a75,_0x2cbb3a);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x249c78=[],_0x56b842=!0x1;return _0x480446=>{const _0x2144f5=_0x4ca1;_0x249c78[_0x2144f5(0x339)](_0x480446),_0x56b842||(_0x56b842=!0x0,setTimeout(()=>{const _0x409b89=_0x2144f5;_0x249c78[_0x409b89(0x337)](_0x379212=>_0x379212()),_0x249c78=[],_0x56b842=!0x1;}));};};let He=class extends a[_0x3a2165(0x441)]{constructor(_0xbfb98e,_0x10db15,_0xcd1683,_0x1d252e,_0x2f1cfc,_0x5a6b58,_0x30069e,_0x240c46){const _0x503b4b=_0x3a2165;super(),d(this,'_online',!0x1),d(this,_0x503b4b(0x1d9),!0x1),d(this,_0x503b4b(0x12a),new v['BehaviorSubject'](new Map())),d(this,_0x503b4b(0x46a),this[_0x503b4b(0x12a)][_0x503b4b(0xfd)]()),d(this,'_roomMembers$',new v[(_0x503b4b(0x2f5))]([])),d(this,'roomMembers$',this[_0x503b4b(0x248)][_0x503b4b(0x447)](v['debounceTime'](Js))),d(this,'_updateLocalCursor',a['debounce']((_0x344f92,_0x9152ce)=>{const _0x5c9e38=_0x503b4b,_0x1f6bfc={'eventID':_[_0x5c9e38(0x39b)][_0x5c9e38(0x3f8)],'data':{'unitID':this['unitID'],'memberID':this[_0x5c9e38(0x474)][_0x5c9e38(0x446)](),'selection':Je[_0x5c9e38(0x38e)](_0x344f92,_0x9152ce[_0x5c9e38(0x166)])}};this['_session'][_0x5c9e38(0x27d)](_0x1f6bfc,this['unitID']);},Zs)),(this[_0x503b4b(0x438)]=_0xbfb98e,this['_session']=_0x10db15,this[_0x503b4b(0x3be)]=_0xcd1683,this[_0x503b4b(0x372)]=_0x1d252e,this['_memberService']=_0x2f1cfc,this[_0x503b4b(0x406)]=_0x5a6b58,this[_0x503b4b(0x3de)]=_0x30069e,this[_0x503b4b(0x2c7)]=_0x240c46);}get[_0x3a2165(0x378)](){const _0x58b304=_0x3a2165;return this['_cursorInfo$'][_0x58b304(0x3bf)]();}get[_0x3a2165(0x33b)](){const _0x586c38=_0x3a2165;return this[_0x586c38(0x248)][_0x586c38(0x3bf)]();}[_0x3a2165(0x491)](){const _0x5c1842=_0x3a2165;super[_0x5c1842(0x491)](),this['_cursorInfo$'][_0x5c1842(0x2c6)](new Map()),this[_0x5c1842(0x12a)][_0x5c1842(0x41c)](),this[_0x5c1842(0x248)]['next']([]),this[_0x5c1842(0x248)][_0x5c1842(0x41c)]();}['init'](){const _0x30ae08=_0x3a2165;this['_init']||(this[_0x30ae08(0x1d9)]=!0x0,this[_0x30ae08(0x474)]['sessionStatus$']['pipe'](v[_0x30ae08(0x27a)](this['dispose$']))['subscribe'](_0x39cdd1=>{const _0x1b56e3=_0x30ae08;_0x39cdd1===$[_0x1b56e3(0x1ae)]?this[_0x1b56e3(0x154)]():this['_toggleOffline']();}),this[_0x30ae08(0x474)][_0x30ae08(0x354)][_0x30ae08(0x447)](v[_0x30ae08(0x27a)](this[_0x30ae08(0x15a)]))[_0x30ae08(0x1ee)](_0x32edd3=>{const _0x37c1c8=_0x30ae08,_0x3e0e70=_0x32edd3[_0x37c1c8(0x217)];_0x3e0e70===_[_0x37c1c8(0x39b)][_0x37c1c8(0x3f8)]&&this[_0x37c1c8(0x4a7)](_0x32edd3),_0x3e0e70===_[_0x37c1c8(0x39b)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x32edd3);}),this[_0x30ae08(0x233)](),this['disposeWithMe'](this['_commandService'][_0x30ae08(0x44e)](_0x3f7d6e=>{const _0x182a91=_0x30ae08;if(this[_0x182a91(0x234)]&&_0x3f7d6e['id']===C[_0x182a91(0x3d6)]['id']&&_0x3f7d6e[_0x182a91(0x101)][_0x182a91(0xec)]===this['unitID']){const _0x53408c=_0x3f7d6e[_0x182a91(0x101)];this['_updateLocalCursor'](_0x53408c[_0x182a91(0x41b)],_0x53408c['selections'][0x0]);}})));}[_0x3a2165(0x4a7)](_0x1c7386){const _0x54c0b6=_0x3a2165;var _0x45331d,_0x5549a0;const {memberID:_0x33a0f8,selection:_0x33dafe}=_0x1c7386['data'],{sheetName:_0xe1a2e4,range:_0x5f1def}=Je[_0x54c0b6(0x1e1)](_0x33dafe),_0x324637={'name':(_0x5549a0=(_0x45331d=this['_memberService'][_0x54c0b6(0x3c4)](this['unitID'],_0x33a0f8))==null?void 0x0:_0x45331d[_0x54c0b6(0x494)])!=null?_0x5549a0:'Unknown\x20user','range':this['_getMergeRange'](_0xe1a2e4,_0x5f1def),'sheetID':_0xe1a2e4,'color':this[_0x54c0b6(0x372)]['assignAColorForMemberID'](_0x33a0f8),'selection':_0x33dafe},_0x5651b7=this['cursorInfo'];_0x5651b7[_0x54c0b6(0x194)](_0x33a0f8,_0x324637),this[_0x54c0b6(0x12a)][_0x54c0b6(0x2c6)](_0x5651b7);}[_0x3a2165(0x186)](_0x111830){const _0x36a2c1=_0x3a2165,{memberID:_0x3db4c6}=_0x111830[_0x36a2c1(0x124)],_0x2ee7cb=this[_0x36a2c1(0x378)];_0x2ee7cb[_0x36a2c1(0x140)](_0x3db4c6),this[_0x36a2c1(0x12a)]['next'](_0x2ee7cb);}[_0x3a2165(0x321)](_0x16927f,_0xaa13f7){const _0x251788=_0x3a2165;var _0x36fcd1,_0x3d1abb;const _0x20ffc7=(_0x3d1abb=(_0x36fcd1=this[_0x251788(0x406)][_0x251788(0x14d)](this['unitID']))==null?void 0x0:_0x36fcd1[_0x251788(0x311)](_0x16927f))==null?void 0x0:_0x3d1abb[_0x251788(0x2e4)]();return(_0x20ffc7==null?void 0x0:_0x20ffc7['find'](_0x9fa2ce=>a[_0x251788(0xed)][_0x251788(0x165)](_0x9fa2ce,_0xaa13f7)))||_0xaa13f7;}[_0x3a2165(0x233)](){const _0x2af431=_0x3a2165,_0x30f384=new a[(_0x2af431(0x2eb))](),_0x1888c7=Qs(),_0x1d7c01=()=>{const _0x31150e=_0x2af431;_0x30f384[_0x31150e(0x491)]();const _0x22e942=(_0x4e65b2,_0x1bb1c4,_0x3ec02f,_0x24bbbf)=>{const _0xd0c67=_0x31150e;let _0x3b35b8=[];switch(_0x4e65b2['id']){case C[_0xd0c67(0x369)][_0xd0c67(0x9a)]:{_0x3b35b8=C[_0xd0c67(0x414)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x44c)]:{_0x3b35b8=C[_0xd0c67(0x1b5)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId'][_0xd0c67(0x467)]:{_0x3b35b8=C[_0xd0c67(0x3e6)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x4a4)]:{_0x3b35b8=C[_0xd0c67(0x281)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3b35b8=C[_0xd0c67(0x448)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId']['InsertRowCommandId']:{_0x3b35b8=C['handleInsertRow'](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x460)]:{_0x3b35b8=C[_0xd0c67(0x4bb)](_0x4e65b2,_0x24bbbf);break;}case C[_0xd0c67(0x369)][_0xd0c67(0x318)]:{_0x3b35b8=C[_0xd0c67(0x435)](_0x4e65b2,_0x24bbbf);break;}case C['EffectRefRangId'][_0xd0c67(0x3e3)]:{_0x3b35b8=C[_0xd0c67(0x411)](_0x4e65b2,_0x24bbbf);break;}}const _0x35fd2c=C[_0xd0c67(0x121)](_0x3b35b8,_0x24bbbf),_0xe6416f=this['cursorInfo'][_0xd0c67(0x305)](_0x1bb1c4);if(_0xe6416f&&_0x35fd2c){const _0x33ce6c={..._0xe6416f,'range':_0x35fd2c};this[_0xd0c67(0x378)][_0xd0c67(0x194)](_0x1bb1c4,_0x33ce6c),_0x1888c7(()=>{const _0x3198c4=_0xd0c67,_0x33b7be=this[_0x3198c4(0x2c7)][_0x3198c4(0x29b)](_0x35fd2c,_0x17f0f8=>(_0x33b7be[_0x3198c4(0x491)](),_0x22e942(_0x17f0f8,_0x1bb1c4,_0x3ec02f,_0x35fd2c)));_0x30f384[_0x3198c4(0x2e5)](_0x33b7be);});}return{'redos':[],'undos':[]};};this[_0x31150e(0x378)]['forEach']((_0x401d2b,_0x18b871)=>{const _0x593c9d=_0x31150e,{range:_0x1c2966,sheetID:_0x397239}=_0x401d2b,_0x3769b6=this['_refRangeService'][_0x593c9d(0x29b)](_0x1c2966,_0x251a8c=>(_0x3769b6[_0x593c9d(0x491)](),_0x22e942(_0x251a8c,_0x18b871,_0x397239,_0x1c2966)));_0x30f384[_0x593c9d(0x2e5)](_0x3769b6);});};this[_0x2af431(0x167)](a[_0x2af431(0x114)](this[_0x2af431(0x12a)][_0x2af431(0x1ee)](()=>{_0x1d7c01();})));}[_0x3a2165(0x154)](){const _0x267680=_0x3a2165;var _0x1e48f2,_0x110599;if(this['_online']=!0x0,((_0x1e48f2=this[_0x267680(0x406)]['getFocusedUnit']())==null?void 0x0:_0x1e48f2['getUnitId']())!==this['unitID'])return;const _0x272651=(_0x110599=this[_0x267680(0x3be)][_0x267680(0x305)](C['SheetsSelectionsService'])[_0x267680(0x1f0)]())==null?void 0x0:_0x110599[0x0],_0x19967d=this[_0x267680(0x406)]['getCurrentUnitForType'](a[_0x267680(0x461)][_0x267680(0x21f)])[_0x267680(0x23a)]();_0x272651&&_0x19967d&&this['_updateLocalCursor'](_0x19967d['getSheetId'](),_0x272651);}[_0x3a2165(0x46b)](){const _0x2bc23d=_0x3a2165;this[_0x2bc23d(0x234)]=!0x1;}};He=zs([Q(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),Q(0x3,a[_0x3a2165(0x426)](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x3a2165(0x3e2)]),Q(0x7,a[_0x3a2165(0x426)](C[_0x3a2165(0x48a)]))],He);var ei=Object[_0x3a2165(0x1e2)],ti=Object[_0x3a2165(0x383)],si=(_0x312342,_0x17c7c1,_0xa56cf2,_0x5e6aad)=>{const _0x6c76b1=_0x3a2165;for(var _0x14e405=_0x5e6aad>0x1?void 0x0:_0x5e6aad?ti(_0x17c7c1,_0xa56cf2):_0x17c7c1,_0x5bf8f6=_0x312342[_0x6c76b1(0x3a5)]-0x1,_0x280456;_0x5bf8f6>=0x0;_0x5bf8f6--)(_0x280456=_0x312342[_0x5bf8f6])&&(_0x14e405=(_0x5e6aad?_0x280456(_0x17c7c1,_0xa56cf2,_0x14e405):_0x280456(_0x14e405))||_0x14e405);return _0x5e6aad&&_0x14e405&&ei(_0x17c7c1,_0xa56cf2,_0x14e405),_0x14e405;},Pe=(_0x1e717c,_0x2bfba4)=>(_0x58ecc7,_0x2068be)=>_0x2bfba4(_0x58ecc7,_0x2068be,_0x1e717c);let ie=class extends a[_0x3a2165(0x441)]{constructor(_0x4bb235,_0x3e055e,_0x453e1c){const _0x76f9d2=_0x3a2165;super(),d(this,_0x76f9d2(0x17e),new Map()),d(this,_0x76f9d2(0x422),new v[(_0x76f9d2(0x28d))]()),(this[_0x76f9d2(0x406)]=_0x4bb235,this[_0x76f9d2(0x3be)]=_0x3e055e,this[_0x76f9d2(0x1b1)]=_0x453e1c,this[_0x76f9d2(0x1d9)]());}[_0x3a2165(0x491)](){const _0x17e6b3=_0x3a2165;super[_0x17e6b3(0x491)](),this[_0x17e6b3(0x422)][_0x17e6b3(0x41c)](),this[_0x17e6b3(0x17e)]['forEach'](_0x313f2d=>_0x313f2d[_0x17e6b3(0x491)]());}['getCollabCursors$'](_0x3e630a){const _0x396fbb=_0x3a2165;return this[_0x396fbb(0x17e)]['has'](_0x3e630a)?this[_0x396fbb(0x17e)][_0x396fbb(0x305)](_0x3e630a)[_0x396fbb(0x46a)]:this['_entityInit$'][_0x396fbb(0x447)](v[_0x396fbb(0xe8)](_0x26c2b1=>_0x26c2b1[_0x396fbb(0x438)]===_0x3e630a),v[_0x396fbb(0x3d5)](_0x43a052=>_0x43a052[_0x396fbb(0x46a)]));}[_0x3a2165(0x1d9)](){const _0x1ea2e2=_0x3a2165;this[_0x1ea2e2(0x406)]['getTypeOfUnitAdded$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x21f)])[_0x1ea2e2(0x447)](v[_0x1ea2e2(0x27a)](this['dispose$']))['subscribe'](async _0x3e36bb=>{const _0x6cc463=_0x1ea2e2,_0x3326c7=_0x3e36bb[_0x6cc463(0x3ae)](),_0x468626=await this['_startSheetCollabCursor'](_0x3326c7);this[_0x6cc463(0x422)][_0x6cc463(0x2c6)](_0x468626),this[_0x6cc463(0x17e)]['set'](_0x3326c7,_0x468626);}),this[_0x1ea2e2(0x406)]['getTypeOfUnitAdded$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x34e)])['pipe'](v[_0x1ea2e2(0x27a)](this[_0x1ea2e2(0x15a)]))[_0x1ea2e2(0x447)](v[_0x1ea2e2(0xe8)](_0x66a8c6=>!_0x66a8c6[_0x1ea2e2(0x3ae)]()[_0x1ea2e2(0x452)]('__')))[_0x1ea2e2(0x1ee)](async _0x1fa48e=>{const _0x3bd9ea=_0x1ea2e2,_0xaea9b8=_0x1fa48e['getUnitId'](),_0x513498=await this[_0x3bd9ea(0x1eb)](_0xaea9b8);this['_entityInit$'][_0x3bd9ea(0x2c6)](_0x513498),this[_0x3bd9ea(0x17e)][_0x3bd9ea(0x194)](_0xaea9b8,_0x513498);}),v[_0x1ea2e2(0x2e2)](this[_0x1ea2e2(0x406)]['getTypeOfUnitDisposed$'](a[_0x1ea2e2(0x461)]['UNIVER_DOC']),this[_0x1ea2e2(0x406)]['getTypeOfUnitDisposed$'](a[_0x1ea2e2(0x461)][_0x1ea2e2(0x21f)]))[_0x1ea2e2(0x447)](v[_0x1ea2e2(0x27a)](this[_0x1ea2e2(0x15a)]))[_0x1ea2e2(0x1ee)](_0x2a07a5=>{const _0x3e6b0e=_0x1ea2e2,_0x5195b2=_0x2a07a5['getUnitId'](),_0x15581b=this[_0x3e6b0e(0x17e)][_0x3e6b0e(0x305)](_0x5195b2);_0x15581b&&(_0x15581b['dispose'](),this[_0x3e6b0e(0x17e)][_0x3e6b0e(0x140)](_0x5195b2));});}async[_0x3a2165(0xef)](_0x179ee6){const _0x38cd11=_0x3a2165,_0x551ce5=await this['_collabSessionService'][_0x38cd11(0x41a)](_0x179ee6),_0x1502de=this['_injector'][_0x38cd11(0xbe)](He,_0x179ee6,_0x551ce5);return _0x1502de[_0x38cd11(0x4a9)](),_0x1502de;}async[_0x3a2165(0x1eb)](_0xf81f2c){const _0x3588c1=_0x3a2165,_0x549194=await this[_0x3588c1(0x1b1)][_0x3588c1(0x41a)](_0xf81f2c),_0x52205b=this[_0x3588c1(0x3be)]['createInstance']($e,_0xf81f2c,_0x549194);return _0x52205b[_0x3588c1(0x4a9)](),_0x52205b;}};ie=si([Pe(0x0,a[_0x3a2165(0x137)]),Pe(0x1,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),Pe(0x2,a[_0x3a2165(0x426)](exports['CollaborationSessionService']))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x329eba,_0x486f80){const _0x15bf6e=_0x3a2165;let {radius:_0x27eb16,width:_0xe76b0c,height:_0x1c02fa}=_0x486f80;_0x27eb16=_0x27eb16!=null?_0x27eb16:0x0,_0xe76b0c=_0xe76b0c!=null?_0xe76b0c:0x1e,_0x1c02fa=_0x1c02fa!=null?_0x1c02fa:0x1e;let _0xdeda83=0x0,_0x2f9d0f=0x0,_0x3d77d5=0x0;_0xdeda83=_0x2f9d0f=_0x3d77d5=Math[_0x15bf6e(0x269)](_0x27eb16,_0xe76b0c/0x2,_0x1c02fa/0x2),_0x329eba[_0x15bf6e(0x21a)](),_0x329eba[_0x15bf6e(0xa3)](_0xdeda83,0x0),_0x329eba[_0x15bf6e(0x323)](_0xe76b0c-_0x2f9d0f,0x0),_0x329eba[_0x15bf6e(0x24b)](_0xe76b0c-_0x2f9d0f,_0x2f9d0f,_0x2f9d0f,Math['PI']*0x3/0x2,0x0,!0x1),_0x329eba[_0x15bf6e(0x323)](_0xe76b0c,_0x1c02fa-_0x3d77d5),_0x329eba['arc'](_0xe76b0c-_0x3d77d5,_0x1c02fa-_0x3d77d5,_0x3d77d5,0x0,Math['PI']/0x2,!0x1),_0x329eba[_0x15bf6e(0x323)](0x0,_0x1c02fa),_0x329eba[_0x15bf6e(0x323)](0x0,_0xdeda83),_0x329eba[_0x15bf6e(0x24b)](_0xdeda83,_0xdeda83,_0xdeda83,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x329eba[_0x15bf6e(0x43c)](),_0x486f80[_0x15bf6e(0x268)]&&(_0x329eba[_0x15bf6e(0x19d)](),_0x329eba[_0x15bf6e(0x296)]=_0x486f80['fill'],_0x486f80[_0x15bf6e(0x11c)]==='evenodd'?_0x329eba[_0x15bf6e(0x268)](_0x15bf6e(0x21b)):_0x329eba[_0x15bf6e(0x268)](),_0x329eba[_0x15bf6e(0x1d4)]());}class Te extends R[_0x3a2165(0x450)]{constructor(_0x464710,_0x3b09e1){const _0x40f70d=_0x3a2165;super(_0x464710,_0x3b09e1),d(this,'color'),d(this,'text'),(this[_0x40f70d(0x470)]=_0x3b09e1==null?void 0x0:_0x3b09e1[_0x40f70d(0x470)],this[_0x40f70d(0x1b0)]=_0x3b09e1==null?void 0x0:_0x3b09e1[_0x40f70d(0x1b0)]);}static[_0x3a2165(0x2b6)](_0xf99f17,_0x5767aa){const _0x2461e1=_0x3a2165,{text:_0x314858,color:_0x26acb9}=_0x5767aa;_0xf99f17['save'](),_0xf99f17[_0x2461e1(0x3ec)]=_0x2461e1(0xd5);const _0x350ed5=_0xf99f17['measureText'](_0x314858)[_0x2461e1(0x144)],_0x5d5d30=Math[_0x2461e1(0x269)](_0x350ed5+0x2*we,rt);ni(_0xf99f17,{'height':ue,'radius':0x4,'width':_0x5d5d30,'fill':_0x26acb9,'evented':!0x1}),_0xf99f17['fillStyle']=_0x2461e1(0x294);const _0x179110=we,_0x260504=ue-ii,_0x362d7b=rt-0x2*we;if(_0x350ed5>_0x362d7b){let _0x1ae793='',_0x251224=0x0;for(const _0x142d8f of _0x314858){const _0x239508=_0xf99f17[_0x2461e1(0x199)](_0x142d8f)[_0x2461e1(0x144)];if(_0x251224+_0x239508<=_0x362d7b-_0xf99f17['measureText']('...')[_0x2461e1(0x144)])_0x1ae793+=_0x142d8f,_0x251224+=_0x239508;else{_0x1ae793+=_0x2461e1(0x22d);break;}}_0xf99f17[_0x2461e1(0x3a8)](_0x1ae793,_0x179110,_0x260504);}else _0xf99f17[_0x2461e1(0x3a8)](_0x314858,_0x179110,_0x260504);_0xf99f17[_0x2461e1(0x1d4)]();}[_0x3a2165(0x201)](_0xba753f){const _0x12cd52=_0x3a2165;Te[_0x12cd52(0x2b6)](_0xba753f,this);}}const Me=_0x3a2165(0x133),ri=_0x3a2165(0x1da),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3a2165(0x30b);class ot{constructor(_0x30db04,_0x228a4b,_0x2bb644,_0x3cb043){const _0x26eb13=_0x3a2165;d(this,_0x26eb13(0x407),[]),d(this,'_anchor',null),d(this,_0x26eb13(0x459),null),d(this,'_anchorDot',null),d(this,_0x26eb13(0x1a6),null),d(this,_0x26eb13(0x443),null),(this[_0x26eb13(0x153)]=_0x30db04,this['_scene']=_0x228a4b,this['_docSkeleton']=_0x2bb644,this[_0x26eb13(0x4b0)]=_0x3cb043,this[_0x26eb13(0xb5)]());}set[_0x3a2165(0x126)](_0x3bf877){const _0x18e94f=_0x3a2165;_0x3bf877?(this['_anchorDot']&&this[_0x18e94f(0x2f3)]['hide'](),this[_0x18e94f(0x459)]&&this[_0x18e94f(0x459)][_0x18e94f(0x113)]()):(this[_0x18e94f(0x2f3)]&&this[_0x18e94f(0x2f3)][_0x18e94f(0x113)](),this[_0x18e94f(0x459)]&&this[_0x18e94f(0x459)][_0x18e94f(0x2cb)]());}[_0x3a2165(0x491)](){const _0xfc7576=_0x3a2165;for(const _0x22c969 of this[_0xfc7576(0x407)])_0x22c969[_0xfc7576(0x491)]();this[_0xfc7576(0x459)]&&this['_textBubble'][_0xfc7576(0x491)](),this[_0xfc7576(0x2f3)]&&this[_0xfc7576(0x2f3)]['dispose'](),this[_0xfc7576(0x239)]&&this[_0xfc7576(0x239)]['dispose'](),this[_0xfc7576(0x443)]&&this[_0xfc7576(0x443)]();}['_render'](){const _0x413545=_0x3a2165;var _0x1c4f38;const {_docSkeleton:_0x1deeac,_document:_0x551cad}=this,{color:_0x87c11e,name:_0x43b4ae,ranges:_0x5e4e9f}=this['_cursor'],_0x4066b2=_0x551cad[_0x413545(0x141)](),{docsLeft:_0x16e9f3,docsTop:_0x116a72}=_0x4066b2,_0xe21d9b=new w['NodePositionConvertToCursor'](_0x4066b2,_0x1deeac);for(const {startOffset:_0x34fab0,endOffset:_0x3c9857,collapsed:_0x2b8fc2,isActive:_0x3e8ba6}of _0x5e4e9f){const _0x5d6585=_0x1deeac[_0x413545(0x2a8)](_0x34fab0),_0x44e46d=_0x1deeac[_0x413545(0x2a8)](_0x3c9857);if(_0x3e8ba6){const {contentBoxPointGroup:_0x4b6cd0}=_0xe21d9b['getRangePointData'](_0x44e46d,_0x44e46d);if(_0x4b6cd0[_0x413545(0x3a5)]===0x0)continue;this[_0x413545(0x18c)](_0x87c11e,_0x4b6cd0,_0x16e9f3,_0x116a72,_0x43b4ae),this[_0x413545(0x443)]=this['_handleHover']();}if(!_0x2b8fc2&&_0x5d6585&&_0x44e46d){if(w[_0x413545(0x13d)](_0x5d6585,_0x44e46d)){const _0x49760=new w[(_0x413545(0x211))](_0x4066b2,_0x1deeac),{pointGroup:_0x462ebb}=(_0x1c4f38=_0x49760['getRangePointData'](_0x5d6585,_0x44e46d))!=null?_0x1c4f38:{};if(_0x462ebb==null||_0x462ebb[_0x413545(0x3a5)]===0x0)continue;this[_0x413545(0xd8)](_0x87c11e,_0x462ebb,_0x16e9f3,_0x116a72);}else{const {contentBoxPointGroup:_0x1f4e71}=_0xe21d9b['getRangePointData'](_0x5d6585,_0x44e46d);if(_0x1f4e71['length']===0x0)continue;this[_0x413545(0x380)](_0x87c11e,_0x1f4e71,_0x16e9f3,_0x116a72);}}}}[_0x3a2165(0x18c)](_0x380d90,_0x5dd100,_0x16b6b2,_0x53c695,_0x4c5a21){const _0x53ea46=_0x3a2165,_0x5db27a=this[_0x53ea46(0x10b)](_0x5dd100),{left:_0xbea09e,top:_0x43d978,height:_0x4bfcda}=_0x5db27a,_0x119380=this[_0x53ea46(0x271)](),_0x449061=ci/_0x119380,_0x2fe2e8=new R['Rect'](Me+a[_0x53ea46(0x483)][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695,'height':_0x4bfcda,'width':ai,'fill':_0x380d90||R[_0x53ea46(0x202)](a[_0x53ea46(0xf3)]['black'],0x0),'strokeWidth':_0x449061,'stroke':li,'evented':!0x0});this[_0x53ea46(0x239)]=_0x2fe2e8,this[_0x53ea46(0x198)][_0x53ea46(0x22c)](_0x2fe2e8,w[_0x53ea46(0x43e)]);const _0x28cd91=new R['Rect'](Me+a['Tools'][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x380d90||R['getColor'](a['COLORS'][_0x53ea46(0x3e1)],0x0),'strokeWidth':0x0,'stroke':_0x380d90||R[_0x53ea46(0x202)](a[_0x53ea46(0xf3)][_0x53ea46(0x3e1)],0x0),'evented':!0x1});this[_0x53ea46(0x2f3)]=_0x28cd91,this['_scene'][_0x53ea46(0x22c)](_0x28cd91,w[_0x53ea46(0x43e)]);const _0x146570=new Te(Me+a[_0x53ea46(0x483)][_0x53ea46(0x238)](ce),{'left':_0xbea09e+_0x16b6b2-_0x449061,'top':_0x43d978+_0x53c695-ue,'text':_0x4c5a21,'color':_0x380d90});this[_0x53ea46(0x459)]=_0x146570,this[_0x53ea46(0x198)][_0x53ea46(0x22c)](_0x146570,w[_0x53ea46(0x43e)]),this[_0x53ea46(0x126)]=!0x1;}[_0x3a2165(0x389)](){const _0xdedf68=_0x3a2165,_0x41dea9=this[_0xdedf68(0x239)][_0xdedf68(0x17c)]['subscribeEvent'](()=>{const _0x45e02a=_0xdedf68;this[_0x45e02a(0x126)]=!0x0;}),_0x7c814f=this['_anchor'][_0xdedf68(0x256)][_0xdedf68(0x43b)](()=>{const _0x29e889=_0xdedf68;this[_0x29e889(0x1a6)]&&clearTimeout(this[_0x29e889(0x1a6)]),this[_0x29e889(0x1a6)]=setTimeout(()=>{const _0x2fc5b1=_0x29e889;this[_0x2fc5b1(0x126)]=!0x1;},0x7d0);});return()=>{const _0x3585b5=_0xdedf68;_0x41dea9[_0x3585b5(0x451)](),_0x7c814f[_0x3585b5(0x451)]();};}[_0x3a2165(0x380)](_0x5443d3,_0x1172d3,_0x1e1a2f,_0x2183a6){const _0xc7b04b=_0x3a2165,_0x417025=new a[(_0xc7b04b(0x46f))](_0x5443d3)[_0xc7b04b(0x47e)](0.2)[_0xc7b04b(0xbf)](),_0x4c6dcc=new R[(_0xc7b04b(0x115))](ri+a['Tools'][_0xc7b04b(0x238)](ce),{'pointsGroup':_0x1172d3,'fill':_0x417025||R[_0xc7b04b(0x202)](a[_0xc7b04b(0xf3)][_0xc7b04b(0x3e1)],0.2),'left':_0x1e1a2f,'top':_0x2183a6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc7b04b(0x407)][_0xc7b04b(0x339)](_0x4c6dcc),this[_0xc7b04b(0x198)]['addObject'](_0x4c6dcc,w['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1bf07d,_0x1d5c41,_0x599b38,_0x3d2647){const _0x32de3f=_0x3a2165,_0x123b51=new a[(_0x32de3f(0x46f))](_0x1bf07d)[_0x32de3f(0x47e)](0.2)[_0x32de3f(0xbf)](),_0x792fa0=new R[(_0x32de3f(0x115))](oi+a['Tools']['generateRandomId'](ce),{'pointsGroup':_0x1d5c41,'fill':_0x123b51||R[_0x32de3f(0x202)](a[_0x32de3f(0xf3)][_0x32de3f(0x3e1)],0.2),'left':_0x599b38,'top':_0x3d2647,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32de3f(0x407)][_0x32de3f(0x339)](_0x792fa0),this['_scene'][_0x32de3f(0x22c)](_0x792fa0,w[_0x32de3f(0x43e)]);}[_0x3a2165(0x10b)](_0x2b7646){const _0x3f27df=_0x2b7646[0x0],_0x5bad76=_0x3f27df[0x0],_0x38c0ab=_0x3f27df[0x2],{x:_0x37422d,y:_0x2bed4e}=_0x5bad76,{x:_0x312eed,y:_0x53d53e}=_0x38c0ab;return{'left':_0x37422d,'top':_0x2bed4e,'width':_0x312eed-_0x37422d,'height':_0x53d53e-_0x2bed4e};}[_0x3a2165(0x271)](){const _0x4c0d57=_0x3a2165,{scaleX:_0x1f9614,scaleY:_0x19ee7b}=this[_0x4c0d57(0x198)][_0x4c0d57(0x25b)]();return Math[_0x4c0d57(0x1f7)](_0x1f9614,_0x19ee7b);}}var hi=Object[_0x3a2165(0x1e2)],_i=Object[_0x3a2165(0x383)],ui=(_0x274ec3,_0x5f2019,_0x81e9e2,_0x244349)=>{const _0x32d248=_0x3a2165;for(var _0x599b89=_0x244349>0x1?void 0x0:_0x244349?_i(_0x5f2019,_0x81e9e2):_0x5f2019,_0x2cb07b=_0x274ec3[_0x32d248(0x3a5)]-0x1,_0x4da862;_0x2cb07b>=0x0;_0x2cb07b--)(_0x4da862=_0x274ec3[_0x2cb07b])&&(_0x599b89=(_0x244349?_0x4da862(_0x5f2019,_0x81e9e2,_0x599b89):_0x4da862(_0x599b89))||_0x599b89);return _0x244349&&_0x599b89&&hi(_0x5f2019,_0x81e9e2,_0x599b89),_0x599b89;},de=(_0x480404,_0x3a3acc)=>(_0x3144a7,_0x545468)=>_0x3a3acc(_0x3144a7,_0x545468,_0x480404);let xe=class extends a[_0x3a2165(0x441)]{constructor(_0x49b4be,_0x48105a,_0xb47128,_0x5d5381,_0x43a418){const _0x2324f0=_0x3a2165;super(),d(this,_0x2324f0(0x47f),[]),d(this,'_cursors',[]),(this[_0x2324f0(0x477)]=_0x49b4be,this[_0x2324f0(0x463)]=_0x48105a,this[_0x2324f0(0x2f0)]=_0xb47128,this[_0x2324f0(0x3de)]=_0x5d5381,this['_themeService']=_0x43a418,this['_init']());}[_0x3a2165(0x1d9)](){const _0x3debdd=_0x3a2165,_0x5d63da=this[_0x3debdd(0x477)][_0x3debdd(0xec)],_0x16139e=this['_docSkeletonManagerService'];this[_0x3debdd(0x167)](v[_0x3debdd(0x456)]([this['_collabCursorController'][_0x3debdd(0x397)](_0x5d63da),this[_0x3debdd(0xad)]['currentTheme$']])['pipe'](E[_0x3debdd(0x331)](([_0x3917f6,_0x623986])=>({'skeleton':_0x16139e['getSkeleton'](),'cursors':[..._0x3917f6[_0x3debdd(0x1ce)]()][_0x3debdd(0x387)](_0x2efdd5=>({..._0x2efdd5,'color':_0x623986[_0x2efdd5[_0x3debdd(0x470)]]}))})))[_0x3debdd(0x1ee)](_0x521ae8=>{const _0x5edc08=_0x3debdd;if(this[_0x5edc08(0x26b)](),_0x521ae8){const {skeleton:_0x421477,cursors:_0x486a3c}=_0x521ae8;this[_0x5edc08(0xc0)](_0x421477,_0x486a3c);}})),this['_initResize'](),this[_0x3debdd(0x18d)]();}[_0x3a2165(0xc0)](_0x41d397,_0x4d2b0a){const _0x4b21cd=_0x3a2165,{scene:_0x4a0744,mainComponent:_0x33960e}=this['_context'],_0x423582=_0x4d2b0a[_0x4b21cd(0x331)](_0x2de04f=>new ot(_0x2de04f,_0x4a0744,_0x41d397,_0x33960e));this[_0x4b21cd(0x47f)]=_0x423582,this[_0x4b21cd(0xca)]=_0x4d2b0a;}[_0x3a2165(0xf8)](){const _0x250acb=_0x3a2165;this['_removeCollabCursors']();const {scene:_0x17cd41,mainComponent:_0x157601}=this[_0x250acb(0x477)],_0x2194e9=this[_0x250acb(0x463)][_0x250acb(0x3b3)](),_0x4b80b2=this[_0x250acb(0xca)][_0x250acb(0x331)](_0x428f6c=>new ot(_0x428f6c,_0x17cd41,_0x2194e9,_0x157601));this['_cursorShapes']=_0x4b80b2;}[_0x3a2165(0x26b)](){const _0x100a30=_0x3a2165;this['_cursorShapes']['forEach'](_0x359189=>_0x359189[_0x100a30(0x491)]()),this['_cursorShapes']=[];}[_0x3a2165(0x18d)](){const _0x19bc00=_0x3a2165,_0xf56de9=[w[_0x19bc00(0x30c)]['id']];this[_0x19bc00(0x167)](this['_commandService'][_0x19bc00(0x44e)](_0x555637=>{const _0x4c85fe=_0x19bc00;_0xf56de9[_0x4c85fe(0x3f3)](_0x555637['id'])&&_0x555637[_0x4c85fe(0x101)][_0x4c85fe(0xec)]===this[_0x4c85fe(0x477)]['unitId']&&this[_0x4c85fe(0xf8)]();}));}[_0x3a2165(0x2c8)](){const _0x1e55a4=_0x3a2165;this[_0x1e55a4(0x167)](a[_0x1e55a4(0x98)](this['_context'][_0x1e55a4(0x358)][_0x1e55a4(0x3d1)])[_0x1e55a4(0x447)](E['filter'](_0x42a7aa=>_0x42a7aa['type']===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1e55a4(0x3c6)]),E[_0x1e55a4(0x440)](0x10))[_0x1e55a4(0x1ee)](()=>{const _0x557e3f=_0x1e55a4;this[_0x557e3f(0xf8)]();}));}};xe=ui([de(0x1,a[_0x3a2165(0x426)](V[_0x3a2165(0x1ed)])),de(0x2,a[_0x3a2165(0x426)](ie)),de(0x3,a[_0x3a2165(0x3e2)]),de(0x4,a[_0x3a2165(0x426)](a[_0x3a2165(0x320)]))],xe);function _0x4ca1(_0x5e362e,_0x26f901){const _0x26d6f1=_0x26d6();return _0x4ca1=function(_0x4ca187,_0x4f6e50){_0x4ca187=_0x4ca187-0x96;let _0x26ddf6=_0x26d6f1[_0x4ca187];return _0x26ddf6;},_0x4ca1(_0x5e362e,_0x26f901);}const di=0x1,Si=1.5;class Ot extends R[_0x3a2165(0x450)]{constructor(_0x489341,_0x2430bc){const _0x3f90d0=_0x3a2165;super(_0x489341,_0x2430bc),d(this,'_color'),d(this,_0x3f90d0(0x433),!0x1),d(this,_0x3f90d0(0x136)),d(this,'_name',''),d(this,_0x3f90d0(0xc8),_0x3f90d0(0x3f4)),d(this,_0x3f90d0(0x1d1)),(_0x2430bc&&this[_0x3f90d0(0x164)](_0x2430bc),this[_0x3f90d0(0x17c)]['subscribeEvent'](()=>this[_0x3f90d0(0x164)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x3f90d0(0x164)]({'hovered':!0x1})));}[_0x3a2165(0x164)](_0x34cca3){const _0x4089e4=_0x3a2165;var _0x3ecee7,_0x52b7af,_0x33c1dc,_0x1feb08,_0x153c32,_0x38d676;this[_0x4089e4(0x18b)]=(_0x3ecee7=_0x34cca3[_0x4089e4(0x470)])!=null?_0x3ecee7:this[_0x4089e4(0x18b)],this[_0x4089e4(0x433)]=(_0x52b7af=_0x34cca3[_0x4089e4(0x499)])!=null?_0x52b7af:this['_hovered'],this[_0x4089e4(0x136)]=(_0x33c1dc=_0x34cca3[_0x4089e4(0x166)])!=null?_0x33c1dc:this[_0x4089e4(0x136)],this[_0x4089e4(0x11e)]=(_0x1feb08=_0x34cca3[_0x4089e4(0x494)])!=null?_0x1feb08:this[_0x4089e4(0x11e)],this[_0x4089e4(0xc8)]=(_0x153c32=_0x34cca3[_0x4089e4(0x29c)])!=null?_0x153c32:this[_0x4089e4(0xc8)],this[_0x4089e4(0x1d1)]=(_0x38d676=_0x34cca3[_0x4089e4(0x3c0)])!=null?_0x38d676:this[_0x4089e4(0x1d1)],this['transformByState']({'width':_0x34cca3['width'],'height':_0x34cca3[_0x4089e4(0x340)]});}['onMouseMove'](_0x46f4eb){const _0x57d14d=_0x3a2165,{row:_0x40c3ce,column:_0x5ea585}=_0x46f4eb;if(_0x40c3ce>=this[_0x57d14d(0x136)][_0x57d14d(0x280)]&&_0x40c3ce<=this[_0x57d14d(0x136)][_0x57d14d(0x1bf)]&&_0x5ea585>=this[_0x57d14d(0x136)][_0x57d14d(0x1dd)]&&_0x5ea585<=this[_0x57d14d(0x136)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x57d14d(0x164)]({'hovered':!0x1});}[_0x3a2165(0x415)](_0xc46c82){return!0x1;}[_0x3a2165(0x201)](_0x33a56a){const _0x553fa6=_0x3a2165;R[_0x553fa6(0x3da)][_0x553fa6(0x2b6)](_0x33a56a,{'width':this[_0x553fa6(0x144)],'height':this['height'],'strokeWidth':Si,'stroke':this[_0x553fa6(0x18b)],'evented':!0x1,'fill':this[_0x553fa6(0x1d1)]}),this[_0x553fa6(0x433)]&&(_0x33a56a[_0x553fa6(0x19d)](),_0x33a56a[_0x553fa6(0x291)](0x1,0x0,0x0,0x1,this['width'],this[_0x553fa6(0xc8)]==='bottom'?0x0:-ue),Te[_0x553fa6(0x2b6)](_0x33a56a,{'text':this[_0x553fa6(0x11e)],'color':this['_color']}),_0x33a56a['restore']());}}var vi=Object[_0x3a2165(0x1e2)],fi=Object[_0x3a2165(0x383)],gi=(_0x21b4f7,_0x60223e,_0x37d488,_0x590e11)=>{for(var _0x391aa4=_0x590e11>0x1?void 0x0:_0x590e11?fi(_0x60223e,_0x37d488):_0x60223e,_0x901424=_0x21b4f7['length']-0x1,_0x3eb349;_0x901424>=0x0;_0x901424--)(_0x3eb349=_0x21b4f7[_0x901424])&&(_0x391aa4=(_0x590e11?_0x3eb349(_0x60223e,_0x37d488,_0x391aa4):_0x3eb349(_0x391aa4))||_0x391aa4);return _0x590e11&&_0x391aa4&&vi(_0x60223e,_0x37d488,_0x391aa4),_0x391aa4;},Ae=(_0x110198,_0x2d9be5)=>(_0x2e9a86,_0xa999b)=>_0x2d9be5(_0x2e9a86,_0xa999b,_0x110198);const mi=0x1389;let ke=class extends a['RxDisposable']{constructor(_0x36e523,_0x18f412,_0xfc15c1,_0x4c2c01){const _0xdfc610=_0x3a2165;super(),d(this,_0xdfc610(0xca),new Set()),d(this,'_lastPointer',null),(this[_0xdfc610(0x477)]=_0x36e523,this[_0xdfc610(0x428)]=_0x18f412,this['_collabCursorController']=_0xfc15c1,this['_themeService']=_0x4c2c01,this[_0xdfc610(0x1d9)]());}['_init'](){const _0x11b8c3=_0x3a2165;this[_0x11b8c3(0x428)][_0x11b8c3(0x489)][_0x11b8c3(0x447)](E[_0x11b8c3(0x27a)](this[_0x11b8c3(0x15a)]),E[_0x11b8c3(0x3d5)](_0xf5bffb=>{const _0x191d79=_0x11b8c3;if(_0xf5bffb){const _0x1d31c3=_0xf5bffb[_0x191d79(0x22b)];return v[_0x191d79(0x456)](this[_0x191d79(0x2f0)][_0x191d79(0x397)](this['_context'][_0x191d79(0xec)]),this[_0x191d79(0xad)][_0x191d79(0x375)])[_0x191d79(0x447)](E[_0x191d79(0x331)](([_0xaeefd3,_0x35ccda])=>{const _0x4ee7b5=new Map();return _0xaeefd3['forEach']((_0x7b8240,_0x2bfeb8)=>{const _0x14e6cb=_0x4ca1;if(_0x7b8240[_0x14e6cb(0x169)]===_0x1d31c3){const _0x1ae863={..._0x7b8240};_0x1ae863[_0x14e6cb(0x470)]=_0x35ccda[_0x7b8240[_0x14e6cb(0x470)]],_0x4ee7b5['set'](_0x2bfeb8,_0x1ae863);}}),{'skeleton':_0xf5bffb,'cursors':_0x4ee7b5};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x11b8c3(0x1ee)](({skeleton:_0x2336ce,cursors:_0x5685fb})=>{const _0x5a107c=_0x11b8c3;this[_0x5a107c(0x26b)](),_0x2336ce&&this[_0x5a107c(0xc0)](_0x2336ce,_0x5685fb);}),this[_0x11b8c3(0x428)][_0x11b8c3(0x489)][_0x11b8c3(0x1ee)](_0x4b3595=>{const _0x2602f2=_0x11b8c3;if(_0x4b3595==null)return;const {skeleton:_0x258628}=_0x4b3595,{scene:_0x19fa20}=this['_context'];_0x19fa20[_0x2602f2(0x421)][_0x2602f2(0x43b)](a[_0x2602f2(0xd0)](_0xa331cd=>{const _0x5f5b76=_0x2602f2;var _0x4a7a0e,_0x5c13b0;const {offsetX:_0x25af83,offsetY:_0x43662a}=_0xa331cd,{x:_0x2e1e2d,y:_0x4626f2}=_0x19fa20['getRelativeToViewportCoord'](R[_0x5f5b76(0x3a7)][_0x5f5b76(0x409)]([_0x25af83,_0x43662a])),{scaleX:_0x33320d,scaleY:_0x4f0f8b}=_0x19fa20[_0x5f5b76(0x25b)](),_0x56a818=_0x19fa20[_0x5f5b76(0x20a)](te[_0x5f5b76(0x351)][_0x5f5b76(0x2bc)]),_0x4c6f10=_0x19fa20[_0x5f5b76(0xcc)](R[_0x5f5b76(0x3a7)][_0x5f5b76(0x409)]([_0x2e1e2d,_0x4626f2]),_0x56a818),_0x47d257=_0x258628[_0x5f5b76(0x2c0)](_0x25af83,_0x43662a,_0x33320d,_0x4f0f8b,_0x4c6f10);((_0x4a7a0e=this[_0x5f5b76(0x392)])==null?void 0x0:_0x4a7a0e[_0x5f5b76(0x364)])===_0x47d257[_0x5f5b76(0x364)]&&((_0x5c13b0=this[_0x5f5b76(0x392)])==null?void 0x0:_0x5c13b0['row'])===_0x47d257[_0x5f5b76(0x3db)]||this[_0x5f5b76(0xca)][_0x5f5b76(0x337)](_0x466054=>{const _0x4687f2=_0x5f5b76;_0x466054[_0x4687f2(0x240)](_0x47d257);});},0x64));});}[_0x3a2165(0xc0)](_0x193ffc,_0xdbfa79){const _0x592989=_0x3a2165;var _0x88e3e1;const _0x146c4d=(_0x88e3e1=this[_0x592989(0x428)][_0x592989(0x1bc)]())==null?void 0x0:_0x88e3e1[_0x592989(0x332)];if(!_0x146c4d)return;const _0x5bf9bf=this[_0x592989(0x1c1)]();if(!_0x5bf9bf)return;this[_0x592989(0xca)]['forEach'](_0x269272=>{_0x269272['makeDirty']();});const {scene:_0x32180a}=_0x5bf9bf,_0x420595=Ii(Array[_0x592989(0x2f9)](_0xdbfa79['values']()))[_0x592989(0x331)](_0x5b074c=>{const _0x645152=_0x592989,{color:_0x795524,range:_0x55bfe3,name:_0x24e681,selection:_0x38ba76,sheetID:_0x1984f7}=_0x5b074c,{startColumn:_0x47e0eb,startRow:_0x67d459,endColumn:_0x2412dd,endRow:_0x3ac2a7}=_0x55bfe3,_0x45fae9=te[_0x645152(0x174)](_0x67d459,_0x47e0eb,_0x32180a,_0x146c4d),_0x473154=te[_0x645152(0x174)](_0x3ac2a7,_0x2412dd,_0x32180a,_0x146c4d),{columnHeaderHeightAndMarginTop:_0x4711cb}=_0x146c4d,{startX:_0x592516,startY:_0xfaef21}=_0x45fae9,{endX:_0x2c615b,endY:_0x1ce67a}=_0x473154,_0x11d7d8=_0x2c615b-_0x592516,_0x1a8fe9=_0x1ce67a-_0xfaef21,_0x42ea7b={'labelPosition':_0xfaef21-_0x4711cb>=ue?'top':_0x645152(0x3c3),'sheetID':_0x1984f7,'range':_0x55bfe3,'color':_0x795524,'name':_0x24e681,'selection':_0x38ba76,'left':_0x592516,'top':_0xfaef21,'width':_0x11d7d8,'height':_0x1a8fe9,'evented':!0x1,'zIndex':mi};return new Ot(_0x24e681,_0x42ea7b);});_0x32180a['addObjects'](_0x420595,di),this[_0x592989(0xca)]=new Set(_0x420595);}[_0x3a2165(0x26b)](){const _0x395c94=_0x3a2165;var _0x52cdeb;(_0x52cdeb=this[_0x395c94(0xca)])==null||_0x52cdeb[_0x395c94(0x337)](_0x310893=>_0x310893['dispose']());}[_0x3a2165(0x1c1)](){const _0x34ea2c=_0x3a2165;return te[_0x34ea2c(0x348)](this[_0x34ea2c(0x477)][_0x34ea2c(0x2cf)],this[_0x34ea2c(0x477)]);}};ke=gi([Ae(0x1,a[_0x3a2165(0x426)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a['Inject'](a['ThemeService']))],ke);function Ii(_0x448399){const _0x278de3=_0x3a2165,_0x15cf13=new Map();return _0x448399['forEach'](_0x2c2a95=>{const _0x5ecd4d=_0x4ca1;if(_0x15cf13[_0x5ecd4d(0x4ac)](_0x2c2a95[_0x5ecd4d(0xce)])){const _0x29e555=_0x15cf13['get'](_0x2c2a95[_0x5ecd4d(0xce)]);_0x29e555[_0x5ecd4d(0x494)]+=',\x20'+_0x2c2a95[_0x5ecd4d(0x494)];}else _0x15cf13['set'](_0x2c2a95[_0x5ecd4d(0xce)],_0x2c2a95);}),Array['from'](_0x15cf13[_0x278de3(0x1ce)]());}var M=function(){const _0x27545c=_0x3a2165;return M=Object['assign']||function(_0x28fd78){const _0x4736e5=_0x4ca1;for(var _0x4a25c4,_0x32004c=0x1,_0x173a2a=arguments[_0x4736e5(0x3a5)];_0x32004c<_0x173a2a;_0x32004c++){_0x4a25c4=arguments[_0x32004c];for(var _0x1e71e1 in _0x4a25c4)Object[_0x4736e5(0x1fd)]['hasOwnProperty'][_0x4736e5(0x1ef)](_0x4a25c4,_0x1e71e1)&&(_0x28fd78[_0x1e71e1]=_0x4a25c4[_0x1e71e1]);}return _0x28fd78;},M[_0x27545c(0x333)](this,arguments);},pi=function(_0x438110,_0x755d87){const _0x243f24=_0x3a2165;var _0x3eb7d5={};for(var _0x449f33 in _0x438110)Object['prototype'][_0x243f24(0x2f1)][_0x243f24(0x1ef)](_0x438110,_0x449f33)&&_0x755d87[_0x243f24(0x260)](_0x449f33)<0x0&&(_0x3eb7d5[_0x449f33]=_0x438110[_0x449f33]);if(_0x438110!=null&&typeof Object[_0x243f24(0x473)]==_0x243f24(0x429)){for(var _0x216826=0x0,_0x449f33=Object['getOwnPropertySymbols'](_0x438110);_0x216826<_0x449f33['length'];_0x216826++)_0x755d87['indexOf'](_0x449f33[_0x216826])<0x0&&Object[_0x243f24(0x1fd)]['propertyIsEnumerable']['call'](_0x438110,_0x449f33[_0x216826])&&(_0x3eb7d5[_0x449f33[_0x216826]]=_0x438110[_0x449f33[_0x216826]]);}return _0x3eb7d5;},qe=U[_0x3a2165(0x3b9)](function(_0x104c2e,_0x5e474c){const _0x10c7a0=_0x3a2165;var _0xa6c755=_0x104c2e['icon'],_0x43b609=_0x104c2e['id'],_0x34982a=_0x104c2e[_0x10c7a0(0x36e)],_0x4975ad=_0x104c2e['extend'],_0x3e153f=pi(_0x104c2e,[_0x10c7a0(0x1cf),'id',_0x10c7a0(0x36e),_0x10c7a0(0xe9)]),_0xbb90b7='univerjs-icon\x20univerjs-icon-'[_0x10c7a0(0x29f)](_0x43b609,'\x20')[_0x10c7a0(0x29f)](_0x34982a||'')[_0x10c7a0(0xaf)](),_0x2533f1=U[_0x10c7a0(0x17b)]('_'['concat'](bi()));return Dt(_0xa6c755,''[_0x10c7a0(0x29f)](_0x43b609),{'defIds':_0xa6c755[_0x10c7a0(0x288)],'idSuffix':_0x2533f1['current']},M({'ref':_0x5e474c,'className':_0xbb90b7},_0x3e153f),_0x4975ad);});function Dt(_0xc58014,_0x3ac29e,_0x329ce4,_0x5ba8af,_0x28b231){const _0x1d63be=_0x3a2165;return U[_0x1d63be(0x49d)](_0xc58014[_0x1d63be(0x498)],M(M({'key':_0x3ac29e},Ci(_0xc58014,_0x329ce4,_0x28b231)),_0x5ba8af),(Ei(_0xc58014,_0x329ce4)[_0x1d63be(0x293)]||[])['map'](function(_0xf2c2e,_0x2ed7ef){const _0x2d340b=_0x1d63be;return Dt(_0xf2c2e,''[_0x2d340b(0x29f)](_0x3ac29e,'-')['concat'](_0xc58014[_0x2d340b(0x498)],'-')['concat'](_0x2ed7ef),_0x329ce4,void 0x0,_0x28b231);}));}function Ci(_0x128423,_0x3dbbe4,_0x1cfb89){const _0x55b78c=_0x3a2165;var _0x5e46bd=M({},_0x128423[_0x55b78c(0x14b)]);_0x1cfb89!=null&&_0x1cfb89[_0x55b78c(0x16d)]&&_0x5e46bd[_0x55b78c(0x268)]===_0x55b78c(0x16d)&&(_0x5e46bd[_0x55b78c(0x268)]=_0x1cfb89[_0x55b78c(0x16d)]);var _0xfce612=_0x3dbbe4['defIds'];return!_0xfce612||_0xfce612[_0x55b78c(0x3a5)]===0x0||(_0x128423['tag']===_0x55b78c(0x24d)&&_0x5e46bd[_0x55b78c(0x226)]&&(_0x5e46bd[_0x55b78c(0x226)]=_0x5e46bd['xlink:href']+_0x3dbbe4[_0x55b78c(0x20c)]),Object[_0x55b78c(0x3f0)](_0x5e46bd)[_0x55b78c(0x337)](function(_0x2ab3eb){const _0x44e29d=_0x55b78c;var _0x4a828c=_0x2ab3eb[0x0],_0x1b4607=_0x2ab3eb[0x1];typeof _0x1b4607=='string'&&(_0x5e46bd[_0x4a828c]=_0x1b4607[_0x44e29d(0x295)](/url\(#(.*)\)/,'url(#$1'[_0x44e29d(0x29f)](_0x3dbbe4[_0x44e29d(0x20c)],')')));})),_0x5e46bd;}function Ei(_0x3d62cc,_0x136178){const _0x3287b9=_0x3a2165;var _0x3b600b,_0x8324cd=_0x136178[_0x3287b9(0x288)];return!_0x8324cd||_0x8324cd[_0x3287b9(0x3a5)]===0x0?_0x3d62cc:_0x3d62cc['tag']===_0x3287b9(0x479)&&(!((_0x3b600b=_0x3d62cc[_0x3287b9(0x293)])===null||_0x3b600b===void 0x0)&&_0x3b600b[_0x3287b9(0x3a5)])?M(M({},_0x3d62cc),{'children':_0x3d62cc[_0x3287b9(0x293)][_0x3287b9(0x331)](function(_0xe5f826){const _0x22a3b9=_0x3287b9;return typeof _0xe5f826[_0x22a3b9(0x14b)]['id']==_0x22a3b9(0x40c)&&_0x8324cd&&_0x8324cd[_0x22a3b9(0x260)](_0xe5f826[_0x22a3b9(0x14b)]['id'])>-0x1?M(M({},_0xe5f826),{'attrs':M(M({},_0xe5f826['attrs']),{'id':_0xe5f826['attrs']['id']+_0x136178[_0x22a3b9(0x20c)]})}):_0xe5f826;})}):_0x3d62cc;}function bi(){const _0x27304c=_0x3a2165;return Math['random']()[_0x27304c(0x3b5)](0x24)[_0x27304c(0x482)](0x2,0x8);}qe[_0x3a2165(0x1c0)]=_0x3a2165(0x221);var Ti={'tag':_0x3a2165(0x1fc),'attrs':{'fill':_0x3a2165(0x1af),'viewBox':'0\x200\x2016\x2016','width':_0x3a2165(0x472),'height':_0x3a2165(0x472)},'children':[{'tag':'g','attrs':{'clipPath':_0x3a2165(0x31a)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'stroke':_0x3a2165(0x37f),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3a2165(0xff),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3a2165(0x479),'attrs':{},'children':[{'tag':_0x3a2165(0x3d2),'attrs':{'id':_0x3a2165(0x338)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'fill':_0x3a2165(0x307),'d':_0x3a2165(0x3b8)}}]}]}],'defIds':[_0x3a2165(0x338)]},yt=U['forwardRef'](function(_0x110327,_0xe060da){const _0x4282cf=_0x3a2165;return U[_0x4282cf(0x49d)](qe,Object['assign']({},_0x110327,{'id':_0x4282cf(0x160),'ref':_0xe060da,'icon':Ti}));});yt['displayName']=_0x3a2165(0x228);var Ri={'tag':_0x3a2165(0x1fc),'attrs':{'fill':_0x3a2165(0x1af),'viewBox':_0x3a2165(0x110),'width':_0x3a2165(0x472),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a2165(0x402)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'stroke':_0x3a2165(0x37f),'d':_0x3a2165(0x15e),'strokeLinecap':_0x3a2165(0xff),'strokeLinejoin':_0x3a2165(0xff),'strokeWidth':1.2}}]},{'tag':_0x3a2165(0x479),'attrs':{},'children':[{'tag':_0x3a2165(0x3d2),'attrs':{'id':_0x3a2165(0x385)},'children':[{'tag':_0x3a2165(0xba),'attrs':{'fill':_0x3a2165(0x307),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U['forwardRef'](function(_0x1a05dd,_0x62e7f8){const _0x56fb35=_0x3a2165;return U[_0x56fb35(0x49d)](qe,Object[_0x56fb35(0x496)]({},_0x1a05dd,{'id':'on-line-single','ref':_0x62e7f8,'icon':Ri}));});Ut[_0x3a2165(0x1c0)]=_0x3a2165(0x1fa);function Pt(_0x4c22f4){const _0x22e573=_0x3a2165;var _0x40dbfe,_0x2932b,_0x2b1bf2='';if(typeof _0x4c22f4==_0x22e573(0x40c)||typeof _0x4c22f4==_0x22e573(0x1b8))_0x2b1bf2+=_0x4c22f4;else{if(typeof _0x4c22f4==_0x22e573(0x45b)){if(Array['isArray'](_0x4c22f4)){var _0x2b9e7f=_0x4c22f4[_0x22e573(0x3a5)];for(_0x40dbfe=0x0;_0x40dbfe<_0x2b9e7f;_0x40dbfe++)_0x4c22f4[_0x40dbfe]&&(_0x2932b=Pt(_0x4c22f4[_0x40dbfe]))&&(_0x2b1bf2&&(_0x2b1bf2+='\x20'),_0x2b1bf2+=_0x2932b);}else{for(_0x2932b in _0x4c22f4)_0x4c22f4[_0x2932b]&&(_0x2b1bf2&&(_0x2b1bf2+='\x20'),_0x2b1bf2+=_0x2932b);}}}return _0x2b1bf2;}function Oi(){const _0x584077=_0x3a2165;for(var _0x4454c8,_0x3c4693,_0x4a3eb6=0x0,_0x36ae3c='',_0x26e912=arguments[_0x584077(0x3a5)];_0x4a3eb6<_0x26e912;_0x4a3eb6++)(_0x4454c8=arguments[_0x4a3eb6])&&(_0x3c4693=Pt(_0x4454c8))&&(_0x36ae3c&&(_0x36ae3c+='\x20'),_0x36ae3c+=_0x3c4693);return _0x36ae3c;}const Di=_0x3a2165(0x481),yi=_0x3a2165(0x365),Ui=_0x3a2165(0x39f),Pi=_0x3a2165(0x308),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0xa2ba04){const _0x3cec82=_0x3a2165;switch(_0xa2ba04){case y[_0x3cec82(0x299)]:return _0x3cec82(0x304);case y[_0x3cec82(0x171)]:return _0x3cec82(0x97);case y[_0x3cec82(0x24c)]:return _0x3cec82(0x15f);case y[_0x3cec82(0xc3)]:return _0x3cec82(0x427);case y['PENDING']:case y['AWAITING']:case y[_0x3cec82(0x161)]:return'collabStatus.syncing';case y[_0x3cec82(0x465)]:return'collabStatus.synced';}}function wt(_0x5c1b5a){const _0x7c2e42=_0x3a2165,{status$:_0xe7d4c}=_0x5c1b5a,_0x1fe586=N['useObservable'](_0xe7d4c,y[_0x7c2e42(0xc3)]),_0x12216a=a[_0x7c2e42(0x3b7)](a[_0x7c2e42(0x3ff)]),_0x40e9d8=a[_0x7c2e42(0x3b7)](exports[_0x7c2e42(0x16c)]),_0x262217=_0x1fe586!==y['OFFLINE'],_0x4395e0=_0x12216a['t'](Mi(_0x1fe586)),_0x197be2=Oi(le['onlineStatus'],{[le[_0x7c2e42(0x1b2)]]:_0x262217,[le[_0x7c2e42(0x229)]]:!_0x262217}),_0x4908ba=_0x262217?U['createElement'](Ut,null):U[_0x7c2e42(0x49d)](yt,null),_0x34b78d=U['useCallback'](()=>{_0x262217||_0x40e9d8['reconnect']();},[_0x262217,_0x40e9d8]);function _0x4d65fb(){const _0x3d872c=_0x7c2e42;return U[_0x3d872c(0x49d)](_0x3d872c(0xf9),{'className':_0x197be2,'onClick':_0x34b78d},U['createElement']('div',{'className':le[_0x3d872c(0x19b)]},_0x4908ba),U[_0x3d872c(0x49d)](_0x3d872c(0xf9),{'className':le[_0x3d872c(0x2fd)]},_0x4395e0));}return _0x262217?_0x4d65fb():U['createElement'](X[_0x7c2e42(0x21c)],{'title':_0x12216a['t']('collab-client.tooltip.reconnect')},_0x4d65fb());}var Ni=Object['defineProperty'],Ai=Object[_0x3a2165(0x383)],Li=(_0x5f49d2,_0x1bdaa1,_0x2d66bc,_0x191779)=>{for(var _0x5fc912=_0x191779>0x1?void 0x0:_0x191779?Ai(_0x1bdaa1,_0x2d66bc):_0x1bdaa1,_0x216778=_0x5f49d2['length']-0x1,_0x18a575;_0x216778>=0x0;_0x216778--)(_0x18a575=_0x5f49d2[_0x216778])&&(_0x5fc912=(_0x191779?_0x18a575(_0x1bdaa1,_0x2d66bc,_0x5fc912):_0x18a575(_0x5fc912))||_0x5fc912);return _0x191779&&_0x5fc912&&Ni(_0x1bdaa1,_0x2d66bc,_0x5fc912),_0x5fc912;},Se=(_0x4e4ead,_0x3e311e)=>(_0x41b549,_0x575c12)=>_0x3e311e(_0x41b549,_0x575c12,_0x4e4ead);exports[_0x3a2165(0x250)]=class extends a[_0x3a2165(0x287)]{constructor(_0x1c8eb5,_0x36fca9,_0x206fe6,_0x108846){const _0x896319=_0x3a2165;super(),d(this,_0x896319(0x37b),new v[(_0x896319(0x2f5))](y[_0x896319(0xc3)])),(this['_univerInstanceService']=_0x1c8eb5,this[_0x896319(0x196)]=_0x36fca9,this[_0x896319(0x3be)]=_0x206fe6,this[_0x896319(0x2f8)]=_0x108846,this[_0x896319(0x195)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x1180a8=_0x3a2165;this['disposeWithMe'](this[_0x1180a8(0x406)][_0x1180a8(0x35d)]['pipe'](v[_0x1180a8(0x3d5)](()=>{const _0x1795e4=_0x1180a8,_0x35af8d=this[_0x1795e4(0x406)][_0x1795e4(0x1a0)]();return _0x35af8d?this[_0x1795e4(0x2f8)]['getCollabEntity$'](_0x35af8d[_0x1795e4(0x3ae)]()):v['of'](null);}),v[_0x1180a8(0x3d5)](_0x144242=>_0x144242?_0x144242[_0x1180a8(0x3fb)]:v['of'](y['NOT_COLLAB'])))[_0x1180a8(0x1ee)](_0x421e50=>{const _0x56362e=_0x1180a8;this[_0x56362e(0x37b)][_0x56362e(0x2c6)](_0x421e50);}));}[_0x3a2165(0x195)](){const _0x12ec1e=_0x3a2165;this[_0x12ec1e(0x167)](this[_0x12ec1e(0x196)][_0x12ec1e(0x2d8)](N[_0x12ec1e(0x45a)][_0x12ec1e(0x405)],()=>a['connectInjector'](ji({'status$':this[_0x12ec1e(0x37b)][_0x12ec1e(0xfd)]()}),this[_0x12ec1e(0x3be)])));}},exports[_0x3a2165(0x250)]=Li([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x3a2165(0x1f1)]),Se(0x2,a['Inject'](a['Injector'])),Se(0x3,a[_0x3a2165(0x426)](exports[_0x3a2165(0x31d)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x5869e2){const {status$:_0x1da6b}=_0x5869e2;return function(){const _0x1cbc73=_0x4ca1;return U[_0x1cbc73(0x49d)](wt,{'status$':_0x1da6b});};}const ze=a['createIdentifier'](_0x3a2165(0x430));var $i=Object[_0x3a2165(0x1e2)],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x537c7f,_0x507f41,_0x44ea77,_0x5391a8)=>{const _0xae3d95=_0x3a2165;for(var _0x1d0250=_0x5391a8>0x1?void 0x0:_0x5391a8?Hi(_0x507f41,_0x44ea77):_0x507f41,_0x263aa2=_0x537c7f[_0xae3d95(0x3a5)]-0x1,_0x1cc876;_0x263aa2>=0x0;_0x263aa2--)(_0x1cc876=_0x537c7f[_0x263aa2])&&(_0x1d0250=(_0x5391a8?_0x1cc876(_0x507f41,_0x44ea77,_0x1d0250):_0x1cc876(_0x1d0250))||_0x1d0250);return _0x5391a8&&_0x1d0250&&$i(_0x507f41,_0x44ea77,_0x1d0250),_0x1d0250;},ee=(_0x1f8a96,_0x1ed1a6)=>(_0x332d3c,_0x48a1a6)=>_0x1ed1a6(_0x332d3c,_0x48a1a6,_0x1f8a96);exports[_0x3a2165(0x497)]=class extends a[_0x3a2165(0x441)]{constructor(_0x19973c,_0x536688,_0x5d1e66,_0x35ceb7,_0x517fa0,_0x18903f){const _0x364834=_0x3a2165;super(),this[_0x364834(0x267)]=_0x19973c,this[_0x364834(0x42d)]=_0x536688,this[_0x364834(0x3de)]=_0x5d1e66,this[_0x364834(0x1e8)]=_0x35ceb7,this[_0x364834(0x2b1)]=_0x517fa0,_0x18903f?_0x18903f==null||_0x18903f[_0x364834(0x329)]()[_0x364834(0xe7)](()=>this['_init']()):(this[_0x364834(0x42d)][_0x364834(0x3aa)](_0x364834(0x147),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x364834(0x1d9)]());}async[_0x3a2165(0x1d9)](){const _0x2883b7=_0x3a2165,_0x29262c=this['_urlService'][_0x2883b7(0x1e9)]('unit'),_0x426e8f=this['_urlService'][_0x2883b7(0x1e9)]('type');if(!_0x29262c||!_0x426e8f){this[_0x2883b7(0x42d)][_0x2883b7(0x3aa)]('[DataLoaderController]',_0x2883b7(0x3c8));return;}switch(Number(_0x426e8f)){case j['UNIVER_SHEET']:{const _0x2881af=await this[_0x2883b7(0x258)](_0x29262c);this['_setupSubUnitSync'](_0x2881af);break;}case j[_0x2883b7(0x34e)]:{await this[_0x2883b7(0x3c5)](_0x29262c);break;}default:{this[_0x2883b7(0x42d)]['error'](_0x2883b7(0x147),_0x2883b7(0xd4));break;}}}async[_0x3a2165(0x129)](_0x2d2e54){const _0x49a146=_0x3a2165;await this['_updateSubUnitFromURLParams'](_0x2d2e54),_0x2d2e54[_0x49a146(0x424)][_0x49a146(0x447)](v['takeUntil'](this[_0x49a146(0x15a)]))[_0x49a146(0x1ee)](_0x32183b=>{const _0x7d889b=_0x49a146;_0x32183b&&this[_0x7d889b(0x2d3)](_0x32183b);}),this[_0x49a146(0x267)][_0x49a146(0x128)][_0x49a146(0x447)](v[_0x49a146(0x27a)](this['dispose$']))[_0x49a146(0x1ee)](()=>this[_0x49a146(0x227)](_0x2d2e54));}[_0x3a2165(0x2d3)](_0x5bf85a,_0x99b6ef=!0x1){const _0x575b12=_0x3a2165,_0x8c1536=this['_urlService']['getParam'](_0x575b12(0x3fd));_0x5bf85a[_0x575b12(0x47d)]()!==_0x8c1536&&this[_0x575b12(0x267)][_0x575b12(0x2b5)]('subunit',_0x5bf85a[_0x575b12(0x47d)](),_0x99b6ef);}async['_updateSubUnitFromURLParams'](_0x35f64d){const _0x475d67=_0x3a2165;var _0x5125dd;const _0x983e5a=this[_0x475d67(0x267)][_0x475d67(0x1e9)](_0x475d67(0x3fd));if(!_0x983e5a||!_0x35f64d['getSheetBySheetId'](_0x983e5a)){const _0x373a98=_0x35f64d[_0x475d67(0xa7)]()[0x0],_0x434aa6=_0x35f64d['getSheetBySheetId'](_0x373a98);if(!_0x434aa6)return;this['_updateURLWithCurrentState'](_0x434aa6,!0x0),await this[_0x475d67(0x3de)][_0x475d67(0x1c2)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x35f64d[_0x475d67(0x3ae)](),'subUnitId':_0x373a98});return;}((_0x5125dd=_0x35f64d[_0x475d67(0x23a)]())==null?void 0x0:_0x5125dd[_0x475d67(0x47d)]())!==_0x983e5a&&await this['_commandService'][_0x475d67(0x1c2)](C[_0x475d67(0x488)]['id'],{'unitId':_0x35f64d[_0x475d67(0x3ae)](),'subUnitId':_0x983e5a});}async[_0x3a2165(0x258)](_0x48f7c7){const _0x3fafc1=_0x3a2165;let _0x4c0248=0x0;const _0x46c108=await this['_localCacheService']['loadOfflineData'](_0x48f7c7);return _0x46c108&&(_0x46c108[_0x3fafc1(0x3e7)]||_0x46c108[_0x3fafc1(0x31e)][_0x3fafc1(0x3a5)]!==0x0)&&(_0x4c0248=_0x46c108[_0x3fafc1(0x1f4)]),_0x4c0248===0x0&&this[_0x3fafc1(0x42d)][_0x3fafc1(0x3aa)]('[DataLoaderController]',_0x3fafc1(0x28a)),this[_0x3fafc1(0x2b1)][_0x3fafc1(0x24a)](_0x48f7c7,_0x4c0248);}async[_0x3a2165(0x3c5)](_0xb8e52c){const _0x14a115=_0x3a2165;let _0x8ae191=0x0;const _0x534f00=await this[_0x14a115(0x1e8)][_0x14a115(0x152)](_0xb8e52c);return _0x534f00&&(_0x534f00['awaitingChangeset']||_0x534f00[_0x14a115(0x31e)][_0x14a115(0x3a5)]!==0x0)&&(_0x8ae191=_0x534f00[_0x14a115(0x1f4)]),_0x8ae191===0x0&&this[_0x14a115(0x42d)][_0x14a115(0x3aa)](_0x14a115(0x147),_0x14a115(0x28a)),this['_snapshotService']['loadDoc'](_0xb8e52c,_0x8ae191);}},exports['DataLoaderController']=xi([ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x3a2165(0x3e2)]),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a[_0x3a2165(0x426)](_[_0x3a2165(0x2d5)])),ee(0x5,a[_0x3a2165(0x4b6)](Wt[_0x3a2165(0x219)]))],exports[_0x3a2165(0x497)]);var ki=Object['defineProperty'],Bi=Object[_0x3a2165(0x383)],Vi=(_0x16c208,_0x158b9e,_0xe5bfbf,_0x40656c)=>{const _0x129b8e=_0x3a2165;for(var _0x516c32=_0x40656c>0x1?void 0x0:_0x40656c?Bi(_0x158b9e,_0xe5bfbf):_0x158b9e,_0x2f9226=_0x16c208[_0x129b8e(0x3a5)]-0x1,_0xab3d0d;_0x2f9226>=0x0;_0x2f9226--)(_0xab3d0d=_0x16c208[_0x2f9226])&&(_0x516c32=(_0x40656c?_0xab3d0d(_0x158b9e,_0xe5bfbf,_0x516c32):_0xab3d0d(_0x516c32))||_0x516c32);return _0x40656c&&_0x516c32&&ki(_0x158b9e,_0xe5bfbf,_0x516c32),_0x516c32;},at=(_0x4f28a7,_0x912457)=>(_0x23fc0c,_0x5a98eb)=>_0x912457(_0x23fc0c,_0x5a98eb,_0x4f28a7);const Wi=_0x3a2165(0x2fa),Fi=_0x3a2165(0x4b5);let Ie=class extends a[_0x3a2165(0x287)]{constructor(_0x5d6ee3,_0x538fd6){const _0x1f598b=_0x3a2165;super(),this[_0x1f598b(0x406)]=_0x5d6ee3,this[_0x1f598b(0x105)]=_0x538fd6,this[_0x1f598b(0x1d9)]();}[_0x3a2165(0x1d9)](){const _0x278043=_0x3a2165;this[_0x278043(0x167)](this[_0x278043(0x406)][_0x278043(0x35d)][_0x278043(0x1ee)](()=>{const _0x2a93db=_0x278043;var _0x3f8147;const _0x39054d=this[_0x2a93db(0x406)][_0x2a93db(0x1a0)]();let _0x345323=(_0x3f8147=this['_configService'][_0x2a93db(0x347)](Wi))!=null?_0x3f8147:Fi;_0x39054d instanceof a['Workbook']&&(_0x345323=_0x39054d['name']),document[_0x2a93db(0x276)]=_0x345323;}));}};Ie=Vi([at(0x0,a[_0x3a2165(0x137)]),at(0x1,a[_0x3a2165(0xd1)])],Ie);var Gi=Object['defineProperty'],Yi=Object[_0x3a2165(0x383)],Ki=(_0x470bf0,_0x33b497,_0x114e93,_0x246013)=>{const _0xfb478=_0x3a2165;for(var _0x5501be=_0x246013>0x1?void 0x0:_0x246013?Yi(_0x33b497,_0x114e93):_0x33b497,_0x3a8dc6=_0x470bf0[_0xfb478(0x3a5)]-0x1,_0x416f9e;_0x3a8dc6>=0x0;_0x3a8dc6--)(_0x416f9e=_0x470bf0[_0x3a8dc6])&&(_0x5501be=(_0x246013?_0x416f9e(_0x33b497,_0x114e93,_0x5501be):_0x416f9e(_0x5501be))||_0x5501be);return _0x246013&&_0x5501be&&Gi(_0x33b497,_0x114e93,_0x5501be),_0x5501be;},Le=(_0x57350e,_0x35f57a)=>(_0x37cd21,_0x3087e6)=>_0x35f57a(_0x37cd21,_0x3087e6,_0x57350e);let pe=class{constructor(_0x29866b,_0x1ac639,_0x37d183){const _0x1557fb=_0x3a2165;this[_0x1557fb(0x105)]=_0x29866b,this[_0x1557fb(0x40e)]=_0x1ac639,this[_0x1557fb(0x28b)]=_0x37d183,this['init']();}[_0x3a2165(0x4a9)](){const _0x483199=_0x3a2165;this[_0x483199(0x40e)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2185b9,_0x456496)=>_0x456496(_0x2185b9)[_0x483199(0x447)](v[_0x483199(0xa2)](async _0xe0e94c=>{const _0x24e817=_0x483199,_0x59a3d0=_0xe0e94c;if(_0x59a3d0['status']===0x191&&window[_0x24e817(0x134)](this['localeService']['t'](_0x24e817(0x2b8)))){const _0x2c3852=window['encodeURIComponent'](window[_0x24e817(0xd9)][_0x24e817(0x181)]);window[_0x24e817(0xd9)][_0x24e817(0x181)]=this[_0x24e817(0x223)]()+_0x24e817(0x13a)+_0x2c3852;}return _0x59a3d0;}))});}[_0x3a2165(0x223)](){const _0x4f6cfd=_0x3a2165;var _0x11a9b3,_0x6d9bd3;const _0x2462ce=this[_0x4f6cfd(0x105)]['getConfig'](mt),_0x257cf5=this[_0x4f6cfd(0x105)][_0x4f6cfd(0x347)](A);return(_0x6d9bd3=(_0x11a9b3=_0x257cf5==null?void 0x0:_0x257cf5[_0x4f6cfd(0x15d)])!=null?_0x11a9b3:_0x2462ce)!=null?_0x6d9bd3:es;}};pe=Ki([Le(0x0,a[_0x3a2165(0xd1)]),Le(0x1,a[_0x3a2165(0x426)](P[_0x3a2165(0x1d8)])),Le(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x3ff)]))],pe);var Xi=Object[_0x3a2165(0x1e2)],qi=Object[_0x3a2165(0x383)],zi=(_0xff4e6,_0x3a0fb0,_0x210766,_0x3a6399)=>{const _0x3317c2=_0x3a2165;for(var _0x29c490=_0x3a6399>0x1?void 0x0:_0x3a6399?qi(_0x3a0fb0,_0x210766):_0x3a0fb0,_0x3d3c6a=_0xff4e6[_0x3317c2(0x3a5)]-0x1,_0x229cfc;_0x3d3c6a>=0x0;_0x3d3c6a--)(_0x229cfc=_0xff4e6[_0x3d3c6a])&&(_0x29c490=(_0x3a6399?_0x229cfc(_0x3a0fb0,_0x210766,_0x29c490):_0x229cfc(_0x29c490))||_0x29c490);return _0x3a6399&&_0x29c490&&Xi(_0x3a0fb0,_0x210766,_0x29c490),_0x29c490;},ct=(_0xd1a66e,_0x42a344)=>(_0x327a3f,_0x39d293)=>_0x42a344(_0x327a3f,_0x39d293,_0xd1a66e);const Mt=_0x3a2165(0x300),Ji=_0x3a2165(0x3a3);exports['AuthzIoHttpService']=class extends a[_0x3a2165(0x287)]{constructor(_0x4d9cf0,_0x2d04fd){const _0x2c710d=_0x3a2165;super(),this[_0x2c710d(0xe6)]=_0x4d9cf0,this[_0x2c710d(0x105)]=_0x2d04fd,this[_0x2c710d(0x168)]();}[_0x3a2165(0x168)](){const _0x2c4718=_0x3a2165,_0xc86bef=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':P[_0x2c4718(0x342)]({'isMatch'(_0x78ce26){const _0x12727d=_0x2c4718;var _0x3515c1;if(_0x78ce26['method']===_0x12727d(0x12c)&&((_0x3515c1=_0x78ce26[_0x12727d(0x1b6)])!=null&&_0x3515c1[_0x12727d(0x135)])){const {objectID:_0x3d1de1,objectType:_0x503bdc}=_0x78ce26['requestParams'][_0x12727d(0x135)]||{};if(!_0x3d1de1||_0x503bdc===void 0x0)return!0x1;const _0x3dca77=_0xc86bef[_0x12727d(0x150)]()+'/'+_0x503bdc+_0x12727d(0x24e)+_0x3d1de1+'/allowed';if(_0x78ce26[_0x12727d(0x236)]===_0x3dca77)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x532f1b){const _0x2edeed=_0x2c4718;var _0x4e4d74;return(_0x4e4d74=_0x532f1b[_0x2edeed(0x1b6)])==null?void 0x0:_0x4e4d74[_0x2edeed(0x135)];},'mergeParamsToRequest'(_0x5f41a7,_0x1b33ec){const _0x390a5a=_0x2c4718,_0x43991a=_0xc86bef[_0x390a5a(0x150)]()+_0x390a5a(0x285),_0x118474=_0x5f41a7['reduce']((_0xc8e0a2,_0x528505)=>{const _0x476622=_0x390a5a,{unitID:_0xf0ebe9,objectID:_0x341173,objectType:_0x3d6831,actions:_0x493e7f}=_0x528505;return _0xc8e0a2[_0xf0ebe9]||(_0xc8e0a2[_0xf0ebe9]={}),_0xc8e0a2[_0xf0ebe9][_0x341173]||(_0xc8e0a2[_0xf0ebe9][_0x341173]={'objectID':_0x341173,'objectType':_0x3d6831,'actions':[]}),_0xc8e0a2[_0xf0ebe9][_0x341173][_0x476622(0x3a9)][_0x476622(0x339)](..._0x493e7f),_0xc8e0a2;},{}),_0x56ebea=[];for(const _0x55bdd9 in _0x118474)for(const _0x5e448b in _0x118474[_0x55bdd9]){const {actions:_0xa75c06,objectType:_0x4bed2d}=_0x118474[_0x55bdd9][_0x5e448b],_0x283025=[...new Set(_0xa75c06)];_0x56ebea['push']({'unitID':_0x55bdd9,'objectID':_0x5e448b,'objectType':_0x4bed2d,'actions':_0x283025});}return new P[(_0x390a5a(0x33d))](_0x390a5a(0x12c),_0x43991a,{'headers':_0x1b33ec[_0x390a5a(0x4af)],'withCredentials':_0x1b33ec['withCredentials'],'responseType':_0x1b33ec[_0x390a5a(0x3ca)],'body':{'requests':_0x56ebea}});}},{'distributeResult'(_0x1b0ed9,_0xa82d97){const _0x26ef71=_0x2c4718,{objectActions:_0xf7ac29}=_0x1b0ed9;return _0xa82d97[_0x26ef71(0x331)](_0x20b972=>{const _0x5bdb44=_0x26ef71,{unitID:_0x391594,objectID:_0xb2cfeb,actions:_0x171740}=_0x20b972,_0x186be7=_0xf7ac29['find'](_0x5b4c67=>_0x5b4c67['unitID']===_0x391594&&_0x5b4c67[_0x5bdb44(0x3e4)]===_0xb2cfeb),_0x296afb=_0x171740[_0x5bdb44(0x331)](_0x433ab8=>_0x186be7==null?void 0x0:_0x186be7[_0x5bdb44(0x3a9)][_0x5bdb44(0x3eb)](_0x49d01f=>_0x49d01f[_0x5bdb44(0x122)]===_0x433ab8))[_0x5bdb44(0xe8)](_0x115f66=>!!_0x115f66);return{'config':_0x20b972,'result':{'actions':_0x296afb,'error':_0x1b0ed9[_0x5bdb44(0x442)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4212a0=_0x3a2165;var _0x5031d2,_0x2d6f28;const _0x5e8e7a=this[_0x4212a0(0x105)]['getConfig'](Mt),_0x92ad5d=this[_0x4212a0(0x105)][_0x4212a0(0x347)](A);return(_0x2d6f28=(_0x5031d2=_0x92ad5d==null?void 0x0:_0x92ad5d[_0x4212a0(0x1ca)])!=null?_0x5031d2:_0x5e8e7a)!=null?_0x2d6f28:Ji;}async[_0x3a2165(0x14e)](_0x856a61){const _0x39cec5=_0x3a2165,_0x35ad6f=this[_0x39cec5(0x150)]()+'/'+_0x856a61[_0x39cec5(0x208)]+_0x39cec5(0x349);return(await this[_0x39cec5(0xe6)][_0x39cec5(0x468)](_0x35ad6f,{'body':_0x856a61}))['body'][_0x39cec5(0x3e4)]||'';}async[_0x3a2165(0x4b4)](_0x1e43d0){const _0x25aef9=_0x3a2165,_0x1b838a=this[_0x25aef9(0x150)]()+_0x25aef9(0x34f);return(await this['_HTTPService'][_0x25aef9(0x468)](_0x1b838a,{'body':_0x1e43d0}))[_0x25aef9(0x135)][_0x25aef9(0x35b)];}async['update'](_0x318b95){const _0x5cfc3f=_0x3a2165,_0x1c27fa=this[_0x5cfc3f(0x150)]()+'/'+_0x318b95[_0x5cfc3f(0x208)]+_0x5cfc3f(0x24e)+_0x318b95[_0x5cfc3f(0x3e4)];await this['_HTTPService']['put'](_0x1c27fa,{'body':_0x318b95});}async[_0x3a2165(0x242)](_0x579b4d){const _0x54734c=_0x3a2165,_0x3ea9dc=this[_0x54734c(0x150)]()+'/'+_0x579b4d['objectType']+_0x54734c(0x24e)+_0x579b4d['objectID']+_0x54734c(0x48c);return(await this[_0x54734c(0xe6)][_0x54734c(0x468)](_0x3ea9dc,{'body':_0x579b4d}))[_0x54734c(0x135)]['actions'];}async['batchAllowed'](_0x3f5398){const _0xc0b278=_0x3a2165,_0x14b10b=this[_0xc0b278(0x150)]()+_0xc0b278(0x285);return(await this[_0xc0b278(0xe6)]['post'](_0x14b10b,{'body':{'requests':_0x3f5398}}))[_0xc0b278(0x135)][_0xc0b278(0x34b)];}async[_0x3a2165(0x362)](_0x17d9a4){const _0x87b81=_0x3a2165,_0x15870e=this[_0x87b81(0x150)]()+'/'+_0x17d9a4[_0x87b81(0x208)]+'/role',_0x39ddfc=await this[_0x87b81(0xe6)][_0x87b81(0x468)](_0x15870e,{'body':_0x17d9a4});return{'roles':_0x39ddfc[_0x87b81(0x135)]['roles'],'actions':_0x39ddfc['body'][_0x87b81(0x3a9)]};}async[_0x3a2165(0x44d)](_0x10d80c){const _0x137873=_0x3a2165,_0x56928e=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x137873(0xe6)][_0x137873(0x140)](_0x56928e,{'params':{'collaboratorID':_0x10d80c[_0x137873(0xf1)],'objectID':_0x10d80c[_0x137873(0x3e4)],'unitID':_0x10d80c[_0x137873(0x438)]}});}async[_0x3a2165(0x23d)](_0x1e35f){const _0x3fbf43=_0x3a2165,_0x19c60d=this[_0x3fbf43(0x150)]()+_0x3fbf43(0x1a1);await this[_0x3fbf43(0xe6)][_0x3fbf43(0x315)](_0x19c60d,{'body':_0x1e35f});}async[_0x3a2165(0xe1)](_0x3edebb){const _0x351171=_0x3a2165,_0x59b625=this[_0x351171(0x150)]()+_0x351171(0x1a1);await this['_HTTPService'][_0x351171(0x468)](_0x59b625,{'body':_0x3edebb});}async[_0x3a2165(0x3af)](_0x5dc5bc){const _0x3b852b=_0x3a2165,_0x40950f=this[_0x3b852b(0x150)]()+'/collaborator';return(await this['_HTTPService'][_0x3b852b(0x305)](_0x40950f,{'params':{'objectID':_0x5dc5bc['objectID'],'unitID':_0x5dc5bc['unitID']}}))[_0x3b852b(0x135)][_0x3b852b(0x39a)];}async[_0x3a2165(0x279)](_0x4109ae){const _0x5790f6=_0x3a2165,_0x4a39a8=this[_0x5790f6(0x150)]()+_0x5790f6(0x1a1);await this[_0x5790f6(0xe6)][_0x5790f6(0x1bb)](_0x4a39a8,{'body':_0x4109ae});}},exports['AuthzIoHttpService']=zi([ct(0x0,a[_0x3a2165(0x426)](P['HTTPService'])),ct(0x1,a[_0x3a2165(0x426)](a['IConfigService']))],exports[_0x3a2165(0x3bb)]);var Zi=Object[_0x3a2165(0x1e2)],Qi=Object['getOwnPropertyDescriptor'],en=(_0xf66ab5,_0x2ac4a1,_0x193bb7,_0x383e83)=>{const _0x55fbca=_0x3a2165;for(var _0x3919c8=_0x383e83>0x1?void 0x0:_0x383e83?Qi(_0x2ac4a1,_0x193bb7):_0x2ac4a1,_0x19b1f4=_0xf66ab5[_0x55fbca(0x3a5)]-0x1,_0x26896f;_0x19b1f4>=0x0;_0x19b1f4--)(_0x26896f=_0xf66ab5[_0x19b1f4])&&(_0x3919c8=(_0x383e83?_0x26896f(_0x2ac4a1,_0x193bb7,_0x3919c8):_0x26896f(_0x3919c8))||_0x3919c8);return _0x383e83&&_0x3919c8&&Zi(_0x2ac4a1,_0x193bb7,_0x3919c8),_0x3919c8;},tn=(_0x11965e,_0x59a6d9)=>(_0x5445fe,_0x3c6373)=>_0x59a6d9(_0x5445fe,_0x3c6373,_0x11965e);let Ce=class{constructor(_0x22df14){const _0x33a113=_0x3a2165;this['_httpService']=_0x22df14,this[_0x33a113(0x1a4)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xfae93e,_0x2caef6)=>{const _0x5a7907=_0x4ca1,_0x1ae030=_0xfae93e[_0x5a7907(0x4af)],_0x30d5c8=Ft[_0x5a7907(0x22a)]();return _0x30d5c8&&_0x1ae030['set'](_0x5a7907(0x1e7),_0x30d5c8),_0x2caef6(_0xfae93e);}});}};Ce=en([tn(0x0,a[_0x3a2165(0x426)](P['HTTPService']))],Ce);var sn=Object[_0x3a2165(0x1e2)],nn=Object['getOwnPropertyDescriptor'],rn=(_0x40059d,_0x4d3e7,_0x291fdb,_0xcf18fb)=>{const _0x1af97f=_0x3a2165;for(var _0x2412ed=_0xcf18fb>0x1?void 0x0:_0xcf18fb?nn(_0x4d3e7,_0x291fdb):_0x4d3e7,_0x124df7=_0x40059d[_0x1af97f(0x3a5)]-0x1,_0x2a7dd5;_0x124df7>=0x0;_0x124df7--)(_0x2a7dd5=_0x40059d[_0x124df7])&&(_0x2412ed=(_0xcf18fb?_0x2a7dd5(_0x4d3e7,_0x291fdb,_0x2412ed):_0x2a7dd5(_0x2412ed))||_0x2412ed);return _0xcf18fb&&_0x2412ed&&sn(_0x4d3e7,_0x291fdb,_0x2412ed),_0x2412ed;},je=(_0x31cb4e,_0x76535e)=>(_0xb3d490,_0x209648)=>_0x76535e(_0xb3d490,_0x209648,_0x31cb4e);const on=[_0x3a2165(0x31f),_0x3a2165(0x224),_0x3a2165(0x2af),_0x3a2165(0x3f1),_0x3a2165(0x43d)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3a2165(0x26d),hn=_0x3a2165(0x485),_n=_0x3a2165(0x2e6);exports[_0x3a2165(0x278)]=class{constructor(_0xe045cc,_0x13bbb4,_0x4c5112){const _0x468931=_0x3a2165;d(this,'_waitCount',0x0),d(this,_0x468931(0x145),new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x468931(0x301),new Map()),(this[_0x468931(0x40e)]=_0xe045cc,this[_0x468931(0x105)]=_0x13bbb4,this['_univerInstanceService']=_0x4c5112);}[_0x3a2165(0x225)](_0xc7cf45){const _0x24adb4=_0x3a2165;this[_0x24adb4(0x386)]=_0xc7cf45,this[_0x24adb4(0x145)][_0x24adb4(0x2c6)](_0xc7cf45);}['getImageSourceCache'](_0x36eed8,_0x29ed24){const _0x2cae03=_0x3a2165;if(_0x29ed24===L[_0x2cae03(0x3d4)]['BASE64']){const _0x28dd70=new Image();return _0x28dd70[_0x2cae03(0x2ec)]=_0x36eed8,_0x28dd70;}return this[_0x2cae03(0x301)][_0x2cae03(0x305)](_0x36eed8);}[_0x3a2165(0x20f)](_0x437c38,_0x910a43,_0x211ea9){const _0x57a620=_0x3a2165;_0x910a43===L[_0x57a620(0x3d4)][_0x57a620(0x3cf)]||_0x211ea9==null||this['_imageSourceCache']['set'](_0x437c38,_0x211ea9);}async[_0x3a2165(0x466)](_0x4cb8c9){const _0x17c3e1=_0x3a2165;try{const _0x4acb42=this[_0x17c3e1(0x241)](this[_0x17c3e1(0x297)](),''+_0x4cb8c9),_0x3fb65e=(await this[_0x17c3e1(0x40e)]['get'](_0x4acb42))[_0x17c3e1(0x135)];if(_0x3fb65e[_0x17c3e1(0x442)]&&_0x3fb65e[_0x17c3e1(0x442)]['code']===It['OK']){const _0x44f607=new URL(_0x3fb65e['url'],this[_0x17c3e1(0x1f8)]())[_0x17c3e1(0x3b5)]();return Promise[_0x17c3e1(0x31b)](_0x44f607);}return Promise['reject'](_0x3fb65e[_0x17c3e1(0x442)]);}catch(_0x1c83af){return Promise[_0x17c3e1(0x37a)](_0x1c83af);}}async[_0x3a2165(0x439)](_0x337cde){const _0x131d98=_0x3a2165;let _0x58a072='';if(!on[_0x131d98(0x3f3)](_0x337cde[_0x131d98(0x3a4)]))return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x4b7)]));if(_0x337cde[_0x131d98(0x20e)]>an)return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x38a)]));try{const _0x243ff6=new FormData();_0x243ff6[_0x131d98(0xac)](_0x131d98(0x423),_0x337cde);const _0x20f456=this[_0x131d98(0x406)][_0x131d98(0x1a0)](),_0xa3c261=_0x20f456==null?void 0x0:_0x20f456['getUnitId']();if(!_0xa3c261)throw new Error(_0x131d98(0x3ba));const _0x58abd3=this[_0x131d98(0xa6)]()+_0x131d98(0x38c)+_0x337cde[_0x131d98(0x20e)][_0x131d98(0x3b5)]()+'&source='+pt[_0x131d98(0x2ca)]+_0x131d98(0x16a)+encodeURIComponent(_0xa3c261),_0x4f90b9=await(await fetch(_0x58abd3,{'method':_0x131d98(0x12c),'body':_0x243ff6}))['json']();if(typeof _0x4f90b9[_0x131d98(0x37d)]!=_0x131d98(0x40c))return this[_0x131d98(0x324)](),Promise[_0x131d98(0x37a)](new Error(L[_0x131d98(0x4a0)][_0x131d98(0x284)]));_0x58a072=_0x4f90b9['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x131d98(0x37a)](new Error(L['ImageUploadStatusType'][_0x131d98(0x284)]));}return new Promise((_0x15be77,_0x23be6d)=>{const _0x28080e=_0x131d98,_0xc63b2f=new FileReader();_0xc63b2f[_0x28080e(0x207)](_0x337cde),_0xc63b2f[_0x28080e(0x235)]=_0x3a124e=>{const _0x49a3a3=_0x28080e;var _0x5949b9;const _0x168705=(_0x5949b9=_0x3a124e['target'])==null?void 0x0:_0x5949b9[_0x49a3a3(0x109)];if(_0x168705==null){this[_0x49a3a3(0x324)](),_0x23be6d(new Error(L['ImageUploadStatusType'][_0x49a3a3(0x284)]));return;}const _0x15574b=a[_0x49a3a3(0x483)]['generateRandomId'](0x6);_0x15be77({'imageId':_0x15574b,'imageSourceType':L['ImageSourceType'][_0x49a3a3(0x188)],'source':_0x58a072,'base64Cache':_0x168705,'status':L['ImageUploadStatusType'][_0x49a3a3(0x1c8)]}),this[_0x49a3a3(0x324)]();};});}[_0x3a2165(0xa6)](){const _0x21cce8=_0x3a2165;var _0x587ec7,_0x269969;const _0x2f604f=this['_configService']['getConfig'](cn),_0x299533=this['_configService'][_0x21cce8(0x347)](A);return(_0x269969=(_0x587ec7=_0x299533==null?void 0x0:_0x299533[_0x21cce8(0x19f)])!=null?_0x587ec7:_0x2f604f)!=null?_0x269969:ln;}[_0x3a2165(0x297)](){const _0xf9e931=_0x3a2165;var _0x2f0230,_0x1d8f95;const _0x2ccfc6=this['_configService'][_0xf9e931(0x347)](hn),_0x4ac56e=this[_0xf9e931(0x105)]['getConfig'](A);return(_0x1d8f95=(_0x2f0230=_0x4ac56e==null?void 0x0:_0x4ac56e[_0xf9e931(0x1c6)])!=null?_0x2f0230:_0x2ccfc6)!=null?_0x1d8f95:_n;}[_0x3a2165(0x1f8)](){const _0x2fd07b=_0x3a2165;var _0x2c9ee0;const _0x4333d9=this[_0x2fd07b(0x105)][_0x2fd07b(0x347)](A);return(_0x2c9ee0=_0x4333d9==null?void 0x0:_0x4333d9[_0x2fd07b(0x119)])!=null?_0x2c9ee0:location[_0x2fd07b(0x4ad)];}[_0x3a2165(0x241)](_0x111008,_0x3d8c9d){const _0x2e3ff2=_0x3a2165;return _0x111008[_0x2e3ff2(0x295)]('{fileID}',_0x3d8c9d);}[_0x3a2165(0x324)](){const _0x365af3=_0x3a2165;this[_0x365af3(0x386)]-=0x1,this['_change$'][_0x365af3(0x2c6)](this[_0x365af3(0x386)]);}},exports[_0x3a2165(0x278)]=rn([je(0x0,a[_0x3a2165(0x426)](P[_0x3a2165(0x1d8)])),je(0x1,a[_0x3a2165(0xd1)]),je(0x2,a[_0x3a2165(0x426)](a[_0x3a2165(0x137)]))],exports['ImageIoService']);var un=Object[_0x3a2165(0x1e2)],dn=Object[_0x3a2165(0x383)],Sn=(_0x4a61a0,_0x213915,_0x147291,_0x44ab21)=>{for(var _0x1f6d32=_0x44ab21>0x1?void 0x0:_0x44ab21?dn(_0x213915,_0x147291):_0x213915,_0x368420=_0x4a61a0['length']-0x1,_0x11d368;_0x368420>=0x0;_0x368420--)(_0x11d368=_0x4a61a0[_0x368420])&&(_0x1f6d32=(_0x44ab21?_0x11d368(_0x213915,_0x147291,_0x1f6d32):_0x11d368(_0x1f6d32))||_0x1f6d32);return _0x44ab21&&_0x1f6d32&&un(_0x213915,_0x147291,_0x1f6d32),_0x1f6d32;},he=(_0x268440,_0x3deb2e)=>(_0x1853f7,_0x8f91d1)=>_0x3deb2e(_0x1853f7,_0x8f91d1,_0x268440);let Ee=class extends a[_0x3a2165(0x441)]{constructor(_0x15f608,_0x13b7e4,_0x3bfa09,_0x228ec0,_0x86c594){const _0x4b8217=_0x3a2165;super(),this[_0x4b8217(0x3be)]=_0x15f608,this[_0x4b8217(0x406)]=_0x13b7e4,this[_0x4b8217(0x1cb)]=_0x3bfa09,this[_0x4b8217(0x274)]=_0x228ec0,this[_0x4b8217(0x1d6)]=_0x86c594,this[_0x4b8217(0x28e)](),this[_0x4b8217(0x253)]();}[_0x3a2165(0x253)](){const _0x3a2f4d=_0x3a2165,_0x50f8a5=async _0x2e7c47=>{const _0x5c266e=_0x4ca1;(await this[_0x5c266e(0x274)][_0x5c266e(0x41a)](_0x2e7c47))[_0x5c266e(0x354)]['pipe'](E[_0x5c266e(0xe8)](_0x9c4b54=>_0x9c4b54['eventID']===_[_0x5c266e(0x39b)][_0x5c266e(0x206)]),E[_0x5c266e(0x27a)](this[_0x5c266e(0x15a)]))[_0x5c266e(0x1ee)](_0x1fd8be=>{const _0x305997=_0x5c266e,_0x5b02a=_0x1fd8be,{reason:_0x513573}=_0x5b02a[_0x305997(0x124)];this['_injector']['get'](N[_0x305997(0x39e)])[_0x305997(0x113)]({'type':X['MessageType'][_0x305997(0x104)],'content':this[_0x305997(0x1d6)]['t'](_0x305997(0x381))+'('+_0x513573+')'}),this[_0x305997(0x1cb)][_0x305997(0x33f)](new C[(_0x305997(0x1c4))](_0x2e7c47)['id'],!0x1),this[_0x305997(0x274)]['closeSession'](_0x2e7c47);});};v['merge'](this['_univerInstanceService'][_0x3a2f4d(0x31c)](a[_0x3a2f4d(0x461)][_0x3a2f4d(0x21f)]),this[_0x3a2f4d(0x406)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC']))[_0x3a2f4d(0x447)](E[_0x3a2f4d(0x331)](_0x166396=>_0x166396['getUnitId']()),E['filter'](_0x2743ed=>!a[_0x3a2f4d(0xe2)](_0x2743ed)),E[_0x3a2f4d(0x27a)](this[_0x3a2f4d(0x15a)]))[_0x3a2f4d(0x1ee)](_0x5299e8=>{_0x50f8a5(_0x5299e8);});}[_0x3a2165(0x28e)](){const _0x5e6418=_0x3a2165,_0x218a81=async _0x39c67c=>{const _0x114c7d=_0x4ca1;(await this[_0x114c7d(0x274)][_0x114c7d(0x41a)](_0x39c67c))[_0x114c7d(0x354)][_0x114c7d(0x447)](E['filter'](_0x30879f=>_0x30879f['eventID']===_[_0x114c7d(0x39b)][_0x114c7d(0x41f)]),E[_0x114c7d(0x27a)](this['dispose$']))['subscribe'](_0x18cacf=>{const _0x466ed6=_0x114c7d,_0x2d1500=_0x18cacf,{objectId:_0x7c35d9}=_0x2d1500[_0x466ed6(0x124)],_0x4dc35b=this[_0x466ed6(0x3be)]['get'](te[_0x466ed6(0x1ff)]);_0x7c35d9===_0x39c67c?_0x4dc35b[_0x466ed6(0x370)](_0x39c67c):_0x4dc35b[_0x466ed6(0x172)](_0x39c67c,_0x7c35d9);});};v[_0x5e6418(0x2e2)](this[_0x5e6418(0x406)][_0x5e6418(0x31c)](a[_0x5e6418(0x461)][_0x5e6418(0x21f)]),this['_univerInstanceService'][_0x5e6418(0x31c)](a[_0x5e6418(0x461)][_0x5e6418(0x34e)]))[_0x5e6418(0x447)](E[_0x5e6418(0x331)](_0x57d32f=>_0x57d32f[_0x5e6418(0x3ae)]()),E[_0x5e6418(0xe8)](_0x9a5c99=>!a['isInternalEditorID'](_0x9a5c99)),E[_0x5e6418(0x27a)](this['dispose$']))[_0x5e6418(0x1ee)](_0x4a921f=>{_0x218a81(_0x4a921f);});}};Ee=Sn([he(0x0,a[_0x3a2165(0x426)](a[_0x3a2165(0x3b0)])),he(0x1,a[_0x3a2165(0x137)]),he(0x2,a[_0x3a2165(0x277)]),he(0x3,a[_0x3a2165(0x426)](exports[_0x3a2165(0x16c)])),he(0x4,a['Inject'](a[_0x3a2165(0x3ff)]))],Ee);var vn=Object['defineProperty'],fn=Object[_0x3a2165(0x383)],gn=(_0x24200a,_0x1e3536,_0x208693,_0x18bdd0)=>{for(var _0x1e4885=_0x18bdd0>0x1?void 0x0:_0x18bdd0?fn(_0x1e3536,_0x208693):_0x1e3536,_0x2909f8=_0x24200a['length']-0x1,_0x4eb976;_0x2909f8>=0x0;_0x2909f8--)(_0x4eb976=_0x24200a[_0x2909f8])&&(_0x1e4885=(_0x18bdd0?_0x4eb976(_0x1e3536,_0x208693,_0x1e4885):_0x4eb976(_0x1e4885))||_0x1e4885);return _0x18bdd0&&_0x1e4885&&vn(_0x1e3536,_0x208693,_0x1e4885),_0x1e4885;},lt=(_0x355162,_0xa55135)=>(_0xbdd491,_0x1bbe74)=>_0xa55135(_0xbdd491,_0x1bbe74,_0x355162);exports[_0x3a2165(0x3d3)]=class{constructor(_0x181aac,_0x8d67c6){const _0x2107eb=_0x3a2165;this[_0x2107eb(0x105)]=_0x181aac,this['_httpService']=_0x8d67c6;}async[_0x3a2165(0x155)](_0x394021,_0x599875){const _0x421b96=_0x3a2165;var _0xbb130b;const {unitID:_0x23c03d,type:_0x4150b9,revision:_0x35208c=0x0}=_0x599875,_0x2371bf=this['_getSnapshotAPIPrefix']()+'/'+_0x4150b9+'/unit/'+_0x23c03d+_0x421b96(0x28c)+_0x35208c,_0x36d9ad=(await this[_0x421b96(0x40e)][_0x421b96(0x305)](_0x2371bf))[_0x421b96(0x135)],_0x31a6d0=(_0xbb130b=_0x36d9ad[_0x421b96(0x2cd)])==null?void 0x0:_0xbb130b[_0x421b96(0x2c5)];if(_0x31a6d0){const _0x21a968=_0x31a6d0==null?void 0x0:_0x31a6d0['originalMeta'],_0x5d7c07=_[_0x421b96(0x275)]['encode'](_[_0x421b96(0x259)](_0x21a968));_0x31a6d0['originalMeta']=_0x5d7c07,Object[_0x421b96(0x3f0)](_0x31a6d0[_0x421b96(0x487)])[_0x421b96(0x337)](([,_0x1a6eb])=>{const _0x1f5658=_0x421b96,_0x60850a=_0x1a6eb[_0x1f5658(0x306)],_0x5ee78b=_[_0x1f5658(0x275)][_0x1f5658(0x10d)](_[_0x1f5658(0x259)](_0x60850a));_0x1a6eb['originalMeta']=_0x5ee78b;});}return _0x36d9ad;}async[_0x3a2165(0x493)](_0x2f46b8,_0x1b17ac){const _0x5909e8=_0x3a2165,{unitID:_0x5926b6,type:_0x1d3208,blockID:_0x24fcb5}=_0x1b17ac,_0x51fc74=this[_0x5909e8(0xb8)]()+'/'+_0x1d3208+'/unit/'+_0x5926b6+'/block/'+_0x24fcb5;return(await this[_0x5909e8(0x40e)][_0x5909e8(0x305)](_0x51fc74))[_0x5909e8(0x135)];}async[_0x3a2165(0x38b)](_0x46e395,_0x3ab55d){const _0x9dc354=_0x3a2165,{unitID:_0x212993,type:_0x50f535,blockID:_0x34884b}=_0x3ab55d,_0x21456f=this[_0x9dc354(0xb8)]()+'/block/'+_0x50f535+_0x9dc354(0x384)+_0x212993+_0x9dc354(0x2d7)+_0x34884b;return(await this[_0x9dc354(0x40e)][_0x9dc354(0x305)](_0x21456f))[_0x9dc354(0x135)];}async[_0x3a2165(0x26e)](_0x5ddd82,_0x2180d0){const _0x41efe5=_0x3a2165,{unitID:_0x49cdf1,type:_0x57dec6,from:_0x3f7b41,to:_0xbe22e0}=_0x2180d0,_0x514aac=this[_0x41efe5(0xb8)]()+'/'+_0x57dec6+_0x41efe5(0x384)+_0x49cdf1+'/fetchmissing?from='+_0x3f7b41+_0x41efe5(0x25a)+_0xbe22e0;return(await this[_0x41efe5(0x40e)][_0x41efe5(0x305)](_0x514aac))[_0x41efe5(0x135)];}[_0x3a2165(0x175)](){const _0x2e6e12=_0x3a2165;var _0x482802;return(_0x482802=this[_0x2e6e12(0x105)][_0x2e6e12(0x347)](_t))!=null?_0x482802:this['_getAPIPrefix']();}[_0x3a2165(0xb8)](){const _0x22ae62=_0x3a2165;var _0x539b20,_0x1c1e41;const _0x504ee5=this[_0x22ae62(0x105)][_0x22ae62(0x347)](ht),_0x409c25=this[_0x22ae62(0x105)]['getConfig'](A);return(_0x1c1e41=(_0x539b20=_0x409c25==null?void 0x0:_0x409c25['snapshotServerUrl'])!=null?_0x539b20:_0x504ee5)!=null?_0x1c1e41:Gt;}async[_0x3a2165(0x2d1)](_0x5e73f7,_0x48e52c){const _0x44a88e=_0x3a2165,_0x54f251=_0x44a88e(0x49e)+_0x48e52c[_0x44a88e(0x3a4)]+_0x44a88e(0x384)+_0x48e52c['unitID']+_0x44a88e(0xb7);return(await this[_0x44a88e(0x40e)][_0x44a88e(0x305)](_0x54f251,{'params':{'resourceId':JSON[_0x44a88e(0x3a6)](_0x48e52c[_0x44a88e(0x292)])}}))[_0x44a88e(0x135)];}[_0x3a2165(0x4aa)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3a2165(0x184)](){const _0x38e3e6=_0x3a2165;throw new Error(_0x38e3e6(0x2ee));}[_0x3a2165(0x209)](){const _0x330e54=_0x3a2165;throw new Error(_0x330e54(0x2ee));}['copyFileMeta'](){const _0x2d91c9=_0x3a2165;throw new Error(_0x2d91c9(0x2ee));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a[_0x3a2165(0xd1)]),lt(0x1,a['Inject'](P[_0x3a2165(0x1d8)]))],exports[_0x3a2165(0x3d3)]);var mn=Object[_0x3a2165(0x1e2)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5023a1,_0x4d2d65,_0x581d7f,_0x5c7a89)=>{const _0x1ddbd2=_0x3a2165;for(var _0x222562=_0x5c7a89>0x1?void 0x0:_0x5c7a89?In(_0x4d2d65,_0x581d7f):_0x4d2d65,_0x24e4d3=_0x5023a1[_0x1ddbd2(0x3a5)]-0x1,_0x4c7573;_0x24e4d3>=0x0;_0x24e4d3--)(_0x4c7573=_0x5023a1[_0x24e4d3])&&(_0x222562=(_0x5c7a89?_0x4c7573(_0x4d2d65,_0x581d7f,_0x222562):_0x4c7573(_0x222562))||_0x222562);return _0x5c7a89&&_0x222562&&mn(_0x4d2d65,_0x581d7f,_0x222562),_0x222562;},_e=(_0x26cdf9,_0x32d094)=>(_0x2a9d8d,_0x2c99fd)=>_0x32d094(_0x2a9d8d,_0x2c99fd,_0x26cdf9);let Be=class extends a[_0x3a2165(0x1d7)]{constructor(_0x23d347,_0x4b36db,_0xe53547,_0x783801,_0x4de4ea){const _0x55d5d2=_0x3a2165;super(_0x23d347,_0x4b36db,_0xe53547),this[_0x55d5d2(0x316)]=_0x783801,this[_0x55d5d2(0x42d)]=_0x4de4ea;}['transformUndoRedo'](_0x28716d,_0x28284d){const _0x120ad2=_0x3a2165,_0x394bba=this['_getUndoStack'](_0x28716d);if(_0x394bba)try{const _0x2462ac=this[_0x120ad2(0x3a0)](_0x394bba,_0x28284d);this[_0x120ad2(0x313)](_0x28716d,_0x2462ac);}catch(_0x3320bc){this[_0x120ad2(0x42d)][_0x120ad2(0x442)]('[CollaborationUndoRedoService]',_0x3320bc),this[_0x120ad2(0x3fa)](_0x28716d);}const _0x48b231=this['_getRedoStack'](_0x28716d);if(_0x48b231)try{const _0x402fb4=this['_transformStack'](_0x48b231,_0x28284d);this[_0x120ad2(0x1e5)](_0x28716d,_0x402fb4);}catch(_0x4be833){this[_0x120ad2(0x42d)][_0x120ad2(0x442)](_0x4be833),this[_0x120ad2(0x230)](_0x28716d);}}[_0x3a2165(0x3fa)](_0x4c43bb){const _0x2e0520=_0x3a2165,_0x43f4a2=this[_0x2e0520(0x10c)](_0x4c43bb);_0x43f4a2&&(_0x43f4a2[_0x2e0520(0x3a5)]=0x0,this[_0x2e0520(0x4a5)]());}['_clearRedo'](_0x3b7ca6){const _0xdb7b89=_0x3a2165,_0x51296f=this[_0xdb7b89(0x413)](_0x3b7ca6);_0x51296f&&(_0x51296f[_0xdb7b89(0x3a5)]=0x0,this['_updateStatus']());}[_0x3a2165(0x313)](_0x267378,_0x4765cc){const _0x419328=_0x3a2165;this[_0x419328(0x322)]['set'](_0x267378,_0x4765cc),this['_updateStatus']();}[_0x3a2165(0x1e5)](_0x44697a,_0x254463){const _0x45a23c=_0x3a2165;this[_0x45a23c(0x1bd)][_0x45a23c(0x194)](_0x44697a,_0x254463),this['_updateStatus']();}[_0x3a2165(0x3a0)](_0x5f4f22,_0x22e052){const _0x1d311a=_0x3a2165,_0x40e947=[];let _0x3e07d2=_0x22e052,_0x1c96e1=_0x22e052;for(let _0x4e2147=_0x5f4f22[_0x1d311a(0x3a5)]-0x1;_0x4e2147>=0x0;_0x4e2147--){const {unitID:_0x40e0ff,undoMutations:_0x4557d9,redoMutations:_0x2c9ad2}=_0x5f4f22[_0x4e2147],_0x54d0d0=this[_0x1d311a(0x316)]['transformMutationsWithChangeset'](_0x3e07d2,_0x4557d9),_0x302f22=this['_transformService'][_0x1d311a(0xf5)](_0x1c96e1,_0x2c9ad2);if(_[_0x1d311a(0x247)](_0x54d0d0)||_[_0x1d311a(0x247)](_0x302f22)){this[_0x1d311a(0x42d)][_0x1d311a(0x442)](_0x1d311a(0xc4),_0x1d311a(0x215),_0x54d0d0,_0x302f22);break;}_0x3e07d2=_0x54d0d0['c1Prime'],_0x1c96e1=_0x302f22[_0x1d311a(0x353)],_0x40e947[_0x1d311a(0x339)]({'unitID':_0x40e0ff,'undoMutations':_0x54d0d0[_0x1d311a(0x390)],'redoMutations':_0x302f22[_0x1d311a(0x390)]});}return _0x40e947[_0x1d311a(0x2a4)]();}};Be=pn([_e(0x0,a[_0x3a2165(0x137)]),_e(0x1,a[_0x3a2165(0x3e2)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x3a2165(0xc6)]),_e(0x4,a[_0x3a2165(0x490)])],Be);class Nt extends a['RxDisposable']{constructor(){const _0x52668d=_0x3a2165;super(),d(this,_0x52668d(0x128)),this[_0x52668d(0x128)]=v[_0x52668d(0x2cc)](window,_0x52668d(0x343))[_0x52668d(0x447)](v[_0x52668d(0x27a)](this['dispose$']),v[_0x52668d(0x282)](0x1),v[_0x52668d(0x2f6)](void 0x0));}[_0x3a2165(0x2b5)](_0xa715d3,_0x1dc084,_0x2be975=!0x1){const _0x3daafe=_0x3a2165,_0x36dfb4=new URL(window[_0x3daafe(0xd9)][_0x3daafe(0x181)]);_0x36dfb4['searchParams']['set'](_0xa715d3,_0x1dc084),_0x2be975?window[_0x3daafe(0x2de)]['replaceState']('','',_0x36dfb4[_0x3daafe(0x3b5)]()):window[_0x3daafe(0x2de)]['pushState']('','',_0x36dfb4[_0x3daafe(0x3b5)]());}[_0x3a2165(0x475)](_0x3e8444,_0x25529d=!0x1){const _0x47bc0d=_0x3a2165,_0x19befe=new URL(window[_0x47bc0d(0xd9)][_0x47bc0d(0x181)]);_0x19befe[_0x47bc0d(0x49f)][_0x47bc0d(0x140)](_0x3e8444),_0x25529d?window[_0x47bc0d(0x2de)][_0x47bc0d(0x48f)]('','',_0x19befe[_0x47bc0d(0x3b5)]()):window[_0x47bc0d(0x2de)][_0x47bc0d(0x32e)]('','',_0x19befe[_0x47bc0d(0x3b5)]());}['getParam'](_0x48449a){const _0x5b8f45=_0x3a2165;var _0x4a8470;return(_0x4a8470=new URL(window[_0x5b8f45(0xd9)]['href'])['searchParams']['get'](_0x48449a))!=null?_0x4a8470:void 0x0;}}var At=Object[_0x3a2165(0x1e2)],Cn=Object[_0x3a2165(0x383)],En=(_0x350138,_0x406411,_0x1a85ff)=>_0x406411 in _0x350138?At(_0x350138,_0x406411,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a85ff}):_0x350138[_0x406411]=_0x1a85ff,bn=(_0x42836b,_0x5ac0b4,_0x37f346,_0x1b4d47)=>{const _0x5bc49c=_0x3a2165;for(var _0x3ea560=_0x1b4d47>0x1?void 0x0:_0x1b4d47?Cn(_0x5ac0b4,_0x37f346):_0x5ac0b4,_0x1871e2=_0x42836b[_0x5bc49c(0x3a5)]-0x1,_0x3834f4;_0x1871e2>=0x0;_0x1871e2--)(_0x3834f4=_0x42836b[_0x1871e2])&&(_0x3ea560=(_0x1b4d47?_0x3834f4(_0x5ac0b4,_0x37f346,_0x3ea560):_0x3834f4(_0x3ea560))||_0x3ea560);return _0x1b4d47&&_0x3ea560&&At(_0x5ac0b4,_0x37f346,_0x3ea560),_0x3ea560;},ve=(_0x550851,_0x2ff37b)=>(_0x2a6872,_0x5d22b6)=>_0x2ff37b(_0x2a6872,_0x5d22b6,_0x550851),Tn=(_0x5524f5,_0x4bfd21,_0x459253)=>En(_0x5524f5,_0x4bfd21+'',_0x459253);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3a2165(0x138)]=class extends a['Plugin']{constructor(_0x26971e=ts,_0x542a2f,_0x420e78,_0x25491c,_0x29dafe){const _0x1a27ab=_0x3a2165;super(),this['_config']=_0x26971e,this[_0x1a27ab(0x42d)]=_0x542a2f,this[_0x1a27ab(0x417)]=_0x420e78,this['_injector']=_0x25491c,this[_0x1a27ab(0x105)]=_0x29dafe;const {..._0x3c530d}=this[_0x1a27ab(0xdc)];this[_0x1a27ab(0x105)][_0x1a27ab(0x399)](A,_0x3c530d);}[_0x3a2165(0x47a)](){const _0x3506f1=_0x3a2165;this[_0x3506f1(0x151)](),a['touchDependencies'](this[_0x3506f1(0x3be)],[[ie],[exports[_0x3506f1(0x497)]],[Ee]]);}[_0x3a2165(0x20b)](){const _0x37b024=_0x3a2165;a[_0x37b024(0x46e)](this['_injector'],[[Ie]]);}[_0x3a2165(0xc7)](){const _0x531ab8=_0x3a2165;this[_0x531ab8(0x187)]();}[_0x3a2165(0x151)](){const _0x1e2fe9=_0x3a2165;var _0x5817fe,_0x286fcb,_0x2429dc,_0x490f96;this[_0x1e2fe9(0x3be)][_0x1e2fe9(0x4ac)](a[_0x1e2fe9(0x244)])&&this['_logService'][_0x1e2fe9(0x442)]('[UniverCollaborationClientPlugin]',_0x1e2fe9(0x19a));let _0x3dc494=[[a[_0x1e2fe9(0x244)],{'useClass':Be}],[exports['CollaborationSessionService']],[Xe],[P[_0x1e2fe9(0x1d8)]],[ze,{'useClass':Nt}],[q],[exports[_0x1e2fe9(0x30d)]],[P['WebSocketService']],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x286fcb=(_0x5817fe=this['_config'])==null?void 0x0:_0x5817fe[_0x1e2fe9(0x1cc)])!=null?_0x286fcb:exports['CollaborationSocketService']}],[P[_0x1e2fe9(0x162)],{'useClass':P[_0x1e2fe9(0xe3)]}],[_[_0x1e2fe9(0x3f6)],{'useClass':exports[_0x1e2fe9(0x3d3)]}],[a[_0x1e2fe9(0xeb)],{'useClass':exports['AuthzIoHttpService']}],[L[_0x1e2fe9(0x326)],{'useClass':exports[_0x1e2fe9(0x278)]}],[exports[_0x1e2fe9(0x31d)]],[exports[_0x1e2fe9(0x497)]],[exports[_0x1e2fe9(0x250)]],[Ie],[ie]];(_0x2429dc=this[_0x1e2fe9(0xdc)])!=null&&_0x2429dc[_0x1e2fe9(0x213)]&&_0x3dc494[_0x1e2fe9(0x339)]([be,{'useClass':ys}]),_0x3dc494=a['mergeOverrideWithDependencies'](_0x3dc494,(_0x490f96=this[_0x1e2fe9(0xdc)])==null?void 0x0:_0x490f96[_0x1e2fe9(0x29d)]),_0x3dc494[_0x1e2fe9(0x337)](_0x144007=>this[_0x1e2fe9(0x3be)][_0x1e2fe9(0x2e5)](_0x144007)),this[_0x1e2fe9(0x457)]();}[_0x3a2165(0x187)](){const _0x4f0c8a=_0x3a2165;this[_0x4f0c8a(0x167)](this['_renderManagerService'][_0x4f0c8a(0x2a9)](a[_0x4f0c8a(0x461)]['UNIVER_DOC'],[xe])),this[_0x4f0c8a(0x167)](this[_0x4f0c8a(0x417)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3a2165(0x457)](){const _0x1e18ab=_0x3a2165;var _0x4ce395,_0x416851;this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](P[_0x1e18ab(0x1d8)])[_0x1e18ab(0xd2)]({'priority':0x14,'interceptor':P['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this['_injector'][_0x1e18ab(0x305)](Ce),(_0x4ce395=this[_0x1e18ab(0xdc)])!=null&&_0x4ce395[_0x1e18ab(0x2d6)]||this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](exports[_0x1e18ab(0x30d)])[_0x1e18ab(0x1b7)](),(_0x416851=this[_0x1e18ab(0xdc)])!=null&&_0x416851[_0x1e18ab(0x2b4)]&&this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](pe),this['_injector'][_0x1e18ab(0x305)](exports[_0x1e18ab(0x31d)]),this['_injector'][_0x1e18ab(0x4ac)](exports[_0x1e18ab(0x250)])&&this[_0x1e18ab(0x3be)][_0x1e18ab(0x305)](exports['DesktopCollaborationStatusDisplayController']);}},Tn(exports[_0x3a2165(0x138)],_0x3a2165(0x48d),Rn),exports[_0x3a2165(0x138)]=bn([a['DependentOn'](_[_0x3a2165(0x102)]),ve(0x1,a[_0x3a2165(0x490)]),ve(0x2,R[_0x3a2165(0x205)]),ve(0x3,a[_0x3a2165(0x426)](a['Injector'])),ve(0x4,a[_0x3a2165(0xd1)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Mt,exports[_0x3a2165(0x39d)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3a2165(0xb2)]=y,exports['CollaborationStatusDisplay']=wt,exports[_0x3a2165(0x47b)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x3a2165(0x376)]=Ve,exports['ICollaborationSocketService']=Fe,exports['IURLService']=ze,exports[_0x3a2165(0x232)]=ft,exports[_0x3a2165(0x1e4)]=mt,exports[_0x3a2165(0x272)]=vt,exports['SEND_CHANGESET_TIMEOUT_KEY']=Yt,exports[_0x3a2165(0x371)]=ht,exports[_0x3a2165(0x18a)]=_t,exports[_0x3a2165(0x4a3)]=$,exports['SheetCollabCursorShape']=Ot,exports[_0x3a2165(0x261)]=Nt,exports[_0x3a2165(0x34a)]=Ct,exports[_0x3a2165(0x469)]=Et;
1
+ 'use strict';const _0x24c410=_0x3b7c;(function(_0xabd5cf,_0x27345c){const _0x593b54=_0x3b7c,_0x315401=_0xabd5cf();while(!![]){try{const _0x4c87a6=parseInt(_0x593b54(0x42b))/0x1+parseInt(_0x593b54(0x4e2))/0x2+parseInt(_0x593b54(0x585))/0x3+-parseInt(_0x593b54(0x5a5))/0x4*(parseInt(_0x593b54(0x1dd))/0x5)+-parseInt(_0x593b54(0x4cd))/0x6+parseInt(_0x593b54(0x542))/0x7+parseInt(_0x593b54(0x2b4))/0x8*(-parseInt(_0x593b54(0x49f))/0x9);if(_0x4c87a6===_0x27345c)break;else _0x315401['push'](_0x315401['shift']());}catch(_0x5dffad){_0x315401['push'](_0x315401['shift']());}}}(_0x1183,0xa3d40));var Ft=Object[_0x24c410(0x5d0)],Gt=(_0x371224,_0x4cd725,_0x3a08e3)=>_0x4cd725 in _0x371224?Ft(_0x371224,_0x4cd725,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a08e3}):_0x371224[_0x4cd725]=_0x3a08e3,u=(_0x228334,_0x59b69d,_0xcc3292)=>Gt(_0x228334,typeof _0x59b69d!='symbol'?_0x59b69d+'':_0x59b69d,_0xcc3292);Object[_0x24c410(0x5d0)](exports,Symbol[_0x24c410(0x4ad)],{'value':_0x24c410(0x201)});const a=require(_0x24c410(0x530)),v=require(_0x24c410(0x395)),E=require(_0x24c410(0x376)),X=require(_0x24c410(0x58d)),A=require(_0x24c410(0x5db)),w=require(_0x24c410(0x593)),_=require(_0x24c410(0x21a)),Yt=require(_0x24c410(0x261)),N=require(_0x24c410(0x327)),C=require('@univerjs/sheets'),O=require(_0x24c410(0x354)),se=require('@univerjs/docs'),j=require(_0x24c410(0x318)),et=require('@univerjs/engine-formula'),te=require(_0x24c410(0x5ee)),P=require(_0x24c410(0x4ed)),Kt=require(_0x24c410(0x280)),Xt=require(_0x24c410(0x499)),St=_0x24c410(0x207),qt='/universer-api/snapshot',vt=_0x24c410(0x36c),zt=_0x24c410(0x27d),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x24c410(0x380),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x24c410(0x394),ft=0x4e20,es=0x4e20,It=_0x24c410(0x3a8),ts=0x3,pt=_0x24c410(0x47e),ss=0x3e8,Ct=_0x24c410(0x331),is='/universer-api/comb',Et=_0x24c410(0x5ca),ns='/universer-api/oidc/authpage';var bt=(_0x48935f=>(_0x48935f[_0x48935f['UNDEFINED']=0x0]=_0x24c410(0x1f7),_0x48935f[_0x48935f['OK']=0x1]='OK',_0x48935f[_0x48935f[_0x24c410(0x29c)]=0x2]='INTERNAL_ERROR',_0x48935f[_0x48935f[_0x24c410(0x503)]=0x3]=_0x24c410(0x503),_0x48935f[_0x48935f[_0x24c410(0x5b6)]=0x4]=_0x24c410(0x5b6),_0x48935f[_0x48935f[_0x24c410(0x29a)]=0x5]='UNAUTHENTICATED',_0x48935f[_0x48935f[_0x24c410(0x320)]=0x6]='ALREADY_EXISTS',_0x48935f[_0x48935f[_0x24c410(0x3ef)]=0x7]=_0x24c410(0x3ef),_0x48935f[_0x48935f[_0x24c410(0x360)]=0x8]=_0x24c410(0x360),_0x48935f[_0x48935f['COMPLETION_FINISHED']=0x9]=_0x24c410(0x407),_0x48935f[_0x48935f[_0x24c410(0x475)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x48935f[_0x48935f[_0x24c410(0x4e0)]=0x1771]=_0x24c410(0x4e0),_0x48935f[_0x48935f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x24c410(0x316),_0x48935f[_0x48935f['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x24c410(0x2e3),_0x48935f[_0x48935f[_0x24c410(0x2c9)]=0x1b59]=_0x24c410(0x2c9),_0x48935f[_0x48935f[_0x24c410(0x3c9)]=0x1b5a]=_0x24c410(0x3c9),_0x48935f[_0x48935f[_0x24c410(0x46a)]=0x1b5b]=_0x24c410(0x46a),_0x48935f[_0x48935f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x24c410(0x33b),_0x48935f[_0x48935f[_0x24c410(0x1fa)]=0x1b5d]=_0x24c410(0x1fa),_0x48935f[_0x48935f[_0x24c410(0x3c4)]=0x1f41]=_0x24c410(0x3c4),_0x48935f[_0x48935f[_0x24c410(0x233)]=0x2329]=_0x24c410(0x233),_0x48935f[_0x48935f[_0x24c410(0x385)]=0x232a]=_0x24c410(0x385),_0x48935f[_0x48935f[_0x24c410(0x447)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x48935f[_0x48935f['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x24c410(0x212),_0x48935f[_0x48935f[_0x24c410(0x361)]=0x232d]=_0x24c410(0x361),_0x48935f[_0x48935f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x24c410(0x451),_0x48935f[_0x48935f[_0x24c410(0x240)]=0x2712]=_0x24c410(0x240),_0x48935f[_0x48935f['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x48935f[_0x48935f['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x24c410(0x2ba),_0x48935f[_0x48935f[_0x24c410(0x5ae)]=-0x1]=_0x24c410(0x5ae),_0x48935f))(bt||{}),$=(_0x226069=>(_0x226069[_0x226069[_0x24c410(0x246)]=0x0]='UNIVER_UNKNOWN',_0x226069[_0x226069[_0x24c410(0x489)]=0x1]=_0x24c410(0x489),_0x226069[_0x226069[_0x24c410(0x236)]=0x2]=_0x24c410(0x236),_0x226069[_0x226069[_0x24c410(0x28f)]=0x3]='UNIVER_SLIDE',_0x226069[_0x226069[_0x24c410(0x5b1)]=0x4]=_0x24c410(0x5b1),_0x226069[_0x226069[_0x24c410(0x5ae)]=-0x1]='UNRECOGNIZED',_0x226069))($||{}),b=(_0x32da05=>(_0x32da05[_0x32da05['UNKNOWN_CMD']=0x0]=_0x24c410(0x52b),_0x32da05[_0x32da05[_0x24c410(0x303)]=0x1]='HELLO',_0x32da05[_0x32da05['JOIN']=0x2]=_0x24c410(0x5d7),_0x32da05[_0x32da05[_0x24c410(0x2f2)]=0x3]=_0x24c410(0x2f2),_0x32da05[_0x32da05['INGEST']=0x4]=_0x24c410(0x50f),_0x32da05[_0x32da05[_0x24c410(0x3d8)]=0x5]='HEARTBEAT',_0x32da05[_0x32da05[_0x24c410(0x219)]=0x6]=_0x24c410(0x219),_0x32da05[_0x32da05[_0x24c410(0x5ae)]=-0x1]=_0x24c410(0x5ae),_0x32da05))(b||{}),Ye=(_0x3d74c1=>(_0x3d74c1[_0x3d74c1['UNKNOWN_CODE']=0x0]=_0x24c410(0x4c9),_0x3d74c1[_0x3d74c1['OK']=0x1]='OK',_0x3d74c1[_0x3d74c1[_0x24c410(0x250)]=0x2]=_0x24c410(0x250),_0x3d74c1[_0x3d74c1['UNRECOGNIZED']=-0x1]=_0x24c410(0x5ae),_0x3d74c1))(Ye||{}),Tt=(_0x2461f3=>(_0x2461f3[_0x2461f3[_0x24c410(0x311)]=0x0]=_0x24c410(0x311),_0x2461f3[_0x2461f3[_0x24c410(0x358)]=0x1]='HttpImport',_0x2461f3[_0x2461f3['HttpExport']=0x2]=_0x24c410(0x302),_0x2461f3[_0x2461f3[_0x24c410(0x335)]=0x3]=_0x24c410(0x335),_0x2461f3[_0x2461f3[_0x24c410(0x4d4)]=0x4]=_0x24c410(0x4d4),_0x2461f3[_0x2461f3[_0x24c410(0x5ae)]=-0x1]=_0x24c410(0x5ae),_0x2461f3))(Tt||{});const L=_0x24c410(0x24f),rs={};function Rt(_0x5d8350){const _0x377fdf=_0x24c410;var _0x41f045,_0x16ba7f,_0x2a1219,_0x89f6af;const _0x959b3d=_0x5d8350['data'],_0x9ce7c0=JSON['parse'](_0x959b3d);switch(_0x9ce7c0[_0x377fdf(0x559)]){case b[_0x377fdf(0x3d8)]:case b[_0x377fdf(0x303)]:{const _0x21cabd=_0x9ce7c0[_0x377fdf(0x5bd)];return{..._0x9ce7c0,'data':_0x21cabd,'cmd':_0x9ce7c0[_0x377fdf(0x559)]};}case b[_0x377fdf(0x5d7)]:{const _0x22f74a=_0x9ce7c0['joinRsp'];return{..._0x9ce7c0,'data':_0x22f74a,'cmd':_0x9ce7c0['cmd']};}case b[_0x377fdf(0x219)]:{const _0x3f9031=_0x9ce7c0['collaMsg'];switch(_0x3f9031[_0x377fdf(0x3b1)]){case _['CollaborationEvent'][_0x377fdf(0x3f5)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x41f045=_0x3f9031[_0x377fdf(0x4f0)])==null?void 0x0:_0x41f045['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x297)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x16ba7f=_0x3f9031['csAckEvent'])==null?void 0x0:_0x16ba7f['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x535)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x2a1219=_0x3f9031[_0x377fdf(0x4e8)])==null?void 0x0:_0x2a1219['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x3a2)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':(_0x89f6af=_0x3f9031['csRejEvent'])==null?void 0x0:_0x89f6af['cs']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent'][_0x377fdf(0x27a)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031['updateCursorEvent']},'cmd':_0x9ce7c0['cmd']};case _['CollaborationEvent'][_0x377fdf(0x368)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x48c)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x45f)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x58b)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x2bc)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x377fdf(0x4f8)][_0x377fdf(0x292)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031['liveShareOperation']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x2bc)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x235)]:return{..._0x9ce7c0,'data':_0x3f9031,'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _[_0x377fdf(0x4f8)][_0x377fdf(0x525)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031['commentUpdateEvent']},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent'][_0x377fdf(0x43f)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x3da)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};case _['CollaborationEvent'][_0x377fdf(0x3db)]:return{..._0x9ce7c0,'data':{..._0x3f9031,'data':_0x3f9031[_0x377fdf(0x441)]},'cmd':_0x9ce7c0[_0x377fdf(0x559)]};default:return _0x9ce7c0;}}default:return _0x9ce7c0;}}function Ot(_0x37aa5b){const _0x1c4737=_0x24c410;switch(_0x37aa5b[_0x1c4737(0x559)]){case b['HEARTBEAT']:case b[_0x1c4737(0x303)]:return JSON[_0x1c4737(0x34b)]({'cmd':_0x37aa5b['cmd'],'routeKey':_0x37aa5b[_0x1c4737(0x3f9)]});case b[_0x1c4737(0x50f)]:{let _0x18a57a;switch(_0x37aa5b['data'][_0x1c4737(0x3b1)]){case _['CollaborationEvent'][_0x1c4737(0x27a)]:{_0x18a57a={'eventID':_['CollaborationEvent'][_0x1c4737(0x27a)],'updateCursorEvent':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _['CollaborationEvent'][_0x1c4737(0x45f)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x45f)],'leaveEvent':_0x37aa5b[_0x1c4737(0x486)]['data']};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x368)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x368)],'joinEvent':_0x37aa5b['data']['data']};break;}case _['CollaborationEvent'][_0x1c4737(0x4e7)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x4e7)],'liveShareNewHost':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x292)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x292)],'liveShareOperation':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x4eb)]:{_0x18a57a={'eventID':_['CollaborationEvent'][_0x1c4737(0x4eb)],'liveShareTerminate':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x4c2)]:{_0x18a57a={'eventID':_[_0x1c4737(0x4f8)][_0x1c4737(0x4c2)],'liveShareRequestHost':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x486)]};break;}case _[_0x1c4737(0x4f8)][_0x1c4737(0x24a)]:{_0x18a57a={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x18a57a={'eventID':_0x37aa5b[_0x1c4737(0x486)][_0x1c4737(0x3b1)]};}return JSON['stringify']({'cmd':_0x37aa5b[_0x1c4737(0x559)],'routeKey':_0x37aa5b['routeKey'],'collaMsg':_0x18a57a});}case b[_0x1c4737(0x5d7)]:return JSON[_0x1c4737(0x34b)]({'cmd':_0x37aa5b['cmd'],'routeKey':_0x37aa5b[_0x1c4737(0x3f9)],'joinReq':_0x37aa5b[_0x1c4737(0x486)]});case b[_0x1c4737(0x2f2)]:return JSON['stringify']({'cmd':_0x37aa5b['cmd'],'routeKey':_0x37aa5b[_0x1c4737(0x3f9)],'leaveReq':_0x37aa5b['data']});default:throw new Error(_0x1c4737(0x31a));}}var os=Object[_0x24c410(0x5d0)],as=Object[_0x24c410(0x3e3)],cs=(_0x1be08a,_0x54bb65,_0x43ae60,_0x318c74)=>{const _0x3f54cf=_0x24c410;for(var _0xd79465=_0x318c74>0x1?void 0x0:_0x318c74?as(_0x54bb65,_0x43ae60):_0x54bb65,_0x31b054=_0x1be08a[_0x3f54cf(0x25b)]-0x1,_0x346ce3;_0x31b054>=0x0;_0x31b054--)(_0x346ce3=_0x1be08a[_0x31b054])&&(_0xd79465=(_0x318c74?_0x346ce3(_0x54bb65,_0x43ae60,_0xd79465):_0x346ce3(_0xd79465))||_0xd79465);return _0x318c74&&_0xd79465&&os(_0x54bb65,_0x43ae60,_0xd79465),_0xd79465;},ae=(_0x19d330,_0x3aa7e7)=>(_0x2435d3,_0xdbd175)=>_0x3aa7e7(_0x2435d3,_0xdbd175,_0x19d330);const Ke=a['createIdentifier'](_0x24c410(0x4c0));function ls(_0x53ed34,_0x4c5149,_0x3932c3){return _0x53ed34+'/'+_0x4c5149+'/unit/'+_0x3932c3+'/new_changes';}exports[_0x24c410(0x487)]=class extends a[_0x24c410(0x2f0)]{constructor(_0x3feaaf,_0x3ea6ea,_0x51bb24,_0x45e7ca,_0x8df23d){const _0xa1009b=_0x24c410;super(),this['_http']=_0x3feaaf,this['_ws']=_0x3ea6ea,this[_0xa1009b(0x4c8)]=_0x51bb24,this[_0xa1009b(0x518)]=_0x45e7ca,this[_0xa1009b(0x288)]=_0x8df23d;}[_0x24c410(0x4c1)](_0x3ce6a){const _0x241f0d=_0x24c410,_0x53c958=this[_0x241f0d(0x435)]['createSocket'](_0x3ce6a);if(!_0x53c958)throw new Error(_0x241f0d(0x413));const _0x344906=new a[(_0x241f0d(0x46f))](),_0x5c8c5e=new v[(_0x241f0d(0x29b))]();_0x344906[_0x241f0d(0x3d0)](_0x53c958['close$'][_0x241f0d(0x359)](_0xe8625b=>_0x5c8c5e[_0x241f0d(0x4a9)](_0xe8625b))),_0x344906[_0x241f0d(0x3d0)](a[_0x241f0d(0x2ab)](()=>_0x5c8c5e[_0x241f0d(0x4a3)]()));const _0x594909=new v['Subject']();_0x344906[_0x241f0d(0x3d0)](_0x53c958[_0x241f0d(0x442)]['subscribe'](_0x5ab141=>_0x594909['next'](_0x5ab141))),_0x344906[_0x241f0d(0x3d0)](a['toDisposable'](()=>_0x594909['complete']()));const _0x151411=new v['Subject']();_0x344906[_0x241f0d(0x3d0)](_0x53c958[_0x241f0d(0x539)][_0x241f0d(0x359)](_0x5d4358=>{const _0x12146a=_0x241f0d,_0x5d8ad9=Rt(_0x5d4358);_0x151411[_0x12146a(0x4a9)](_0x5d8ad9);})),_0x344906[_0x241f0d(0x3d0)](a['toDisposable'](()=>_0x151411[_0x241f0d(0x4a3)]()));let _0x4a7d42;const _0x405435=()=>{const _0x4e6848=_0x241f0d;_0x594909[_0x4e6848(0x4a9)](new Event(_0x4e6848(0x299))),_0x5c8c5e[_0x4e6848(0x4a9)](new CloseEvent(_0x4e6848(0x299))),_0x4a7d42['close']();};return _0x4a7d42={'memberID':'','close$':_0x5c8c5e[_0x241f0d(0x343)](),'error$':_0x594909[_0x241f0d(0x343)](),'open$':_0x53c958[_0x241f0d(0x342)],'message$':_0x151411['asObservable'](),'send':_0x43e70e=>{const _0x501620=_0x241f0d;if(_0x43e70e['cmd']===b['INGEST']){if(_0x43e70e[_0x501620(0x486)]['eventID']===_[_0x501620(0x4f8)][_0x501620(0x48a)]){this[_0x501620(0x418)](_0x4a7d42,_0x43e70e['data'])[_0x501620(0x513)](_0x9a519f=>{const _0x296fe9=_0x501620;this[_0x296fe9(0x518)][_0x296fe9(0x553)](_0x9a519f),_0x405435();});return;}if(_0x43e70e[_0x501620(0x486)]['eventID']===_['CollaborationEvent'][_0x501620(0x547)]){const _0x5ce9cd=_0x43e70e[_0x501620(0x486)];this[_0x501620(0x283)](_0x5ce9cd)[_0x501620(0x33f)](_0x4c6504=>{const _0x49184a=_0x501620;_0x151411[_0x49184a(0x4a9)]({'cmd':b['RECV'],'code':Ye['OK'],'routeKey':_0x5ce9cd[_0x49184a(0x486)][_0x49184a(0x4a2)],'routeType':'','data':{'eventID':_[_0x49184a(0x4f8)][_0x49184a(0x50a)],'data':{'changesets':_0x4c6504}}});})['catch'](_0xacb8c2=>{const _0x4ce2e4=_0x501620;this[_0x4ce2e4(0x518)][_0x4ce2e4(0x553)](_0xacb8c2),_0x405435();});return;}}_0x53c958[_0x501620(0x2b6)](Ot(_0x43e70e));},'close':()=>{const _0x5c373a=_0x241f0d;_0x53c958[_0x5c373a(0x2e4)](),_0x344906['dispose']();}},_0x4a7d42;}async[_0x24c410(0x418)](_0x38df8b,_0x21fb93){const _0x361f95=_0x24c410;var _0x2bee37,_0x599341;const {unitType:_0xfbdd6,unitID:_0xe55c2,changeset:_0x524f25}=_0x21fb93[_0x361f95(0x486)],_0x489662={'unitID':_0xe55c2,'memberID':_0x38df8b[_0x361f95(0x259)],'type':_0xfbdd6,'changeset':_[_0x361f95(0x5f0)](_0x524f25)},_0x101bf5=this[_0x361f95(0x4c8)][_0x361f95(0x5bf)](Ct),_0x3cc86b=this[_0x361f95(0x4c8)][_0x361f95(0x5bf)](L),_0x280d52=ls((_0x599341=(_0x2bee37=_0x3cc86b==null?void 0x0:_0x3cc86b[_0x361f95(0x26d)])!=null?_0x2bee37:_0x101bf5)!=null?_0x599341:is,_0xfbdd6,_0xe55c2);try{await this[_0x361f95(0x454)][_0x361f95(0x264)](_0x280d52,{'body':_0x489662});}catch(_0x5822a5){throw this[_0x361f95(0x518)][_0x361f95(0x553)](_0x361f95(0x217),_0x361f95(0x4a1)),_0x5822a5;}}async['_fetchMissChangesets'](_0x536a86){const _0x19057e=_0x24c410,{unitID:_0x2b381c,from:_0x596354,to:_0x3a33f2,unitType:_0xa6e061}=_0x536a86[_0x19057e(0x486)];return(await this[_0x19057e(0x288)][_0x19057e(0x4ff)]({'metadata':void 0x0},{'unitID':_0x2b381c,'type':_0xa6e061,'from':_0x596354,'to':_0x3a33f2}))[_0x19057e(0x496)];}},exports[_0x24c410(0x487)]=cs([ae(0x0,a['Inject'](w[_0x24c410(0x238)])),ae(0x1,a[_0x24c410(0x349)](w[_0x24c410(0x1fc)])),ae(0x2,a[_0x24c410(0x1df)]),ae(0x3,a[_0x24c410(0x40f)]),ae(0x4,_['ISnapshotServerService'])],exports['CollaborationSocketService']);const hs=_0x24c410(0x430);function _s(_0x5e5442){const _0x1677f0=_0x24c410;return JSON[_0x1677f0(0x34b)](_0x5e5442)['length'];}class Xe{constructor(){const _0xcdadb1=_0x24c410;u(this,'_commentUpdate$',new v[(_0xcdadb1(0x29b))]()),u(this,_0xcdadb1(0x1d5),this[_0xcdadb1(0x3d4)]['asObservable']());}[_0x24c410(0x5f3)](_0x2a5c35){const _0x29bab2=_0x24c410;this[_0x29bab2(0x3d4)][_0x29bab2(0x4a9)](_0x2a5c35);}}var us=Object[_0x24c410(0x5d0)],ds=Object[_0x24c410(0x3e3)],Ss=(_0x14a729,_0x537248,_0x22b4a6,_0x3c7f18)=>{const _0x49cf8b=_0x24c410;for(var _0x4110eb=_0x3c7f18>0x1?void 0x0:_0x3c7f18?ds(_0x537248,_0x22b4a6):_0x537248,_0x1e0086=_0x14a729[_0x49cf8b(0x25b)]-0x1,_0x4d3c97;_0x1e0086>=0x0;_0x1e0086--)(_0x4d3c97=_0x14a729[_0x1e0086])&&(_0x4110eb=(_0x3c7f18?_0x4d3c97(_0x537248,_0x22b4a6,_0x4110eb):_0x4d3c97(_0x4110eb))||_0x4110eb);return _0x3c7f18&&_0x4110eb&&us(_0x537248,_0x22b4a6,_0x4110eb),_0x4110eb;},tt=(_0x143cc1,_0x2fd2e5)=>(_0x45af73,_0x168860)=>_0x2fd2e5(_0x45af73,_0x168860,_0x143cc1);let q=class extends a[_0x24c410(0x2f0)]{constructor(_0x44b04b,_0x585090){const _0x389f96=_0x24c410;super(),u(this,_0x389f96(0x3f7),new Map()),(this[_0x389f96(0x329)]=_0x44b04b,this[_0x389f96(0x5ad)]=_0x585090,this[_0x389f96(0x4b2)](a[_0x389f96(0x2ab)](v[_0x389f96(0x3e7)](this[_0x389f96(0x329)][_0x389f96(0x5c0)](a['UniverInstanceType'][_0x389f96(0x236)])['pipe'](E[_0x389f96(0x24d)](_0x3907ac=>_0x3907ac['getUnitId']())),this['_univerInstanceService'][_0x389f96(0x5c0)](a[_0x389f96(0x461)][_0x389f96(0x489)])['pipe'](E['map'](_0x83469e=>_0x83469e['getUnitId']())),this[_0x389f96(0x329)][_0x389f96(0x5c0)](a[_0x389f96(0x461)][_0x389f96(0x28f)])['pipe'](E[_0x389f96(0x24d)](_0x22c9e1=>_0x22c9e1[_0x389f96(0x444)]())))[_0x389f96(0x359)](_0x2532ac=>this[_0x389f96(0x45d)](_0x2532ac)))));}[_0x24c410(0x23b)](_0x688936){const _0x1ea4ec=_0x24c410;this['_userManagerService'][_0x1ea4ec(0x23b)](_0x688936);}['getCurrentUser'](){const _0x1c2d9e=_0x24c410;return this[_0x1c2d9e(0x5ad)][_0x1c2d9e(0x507)]();}[_0x24c410(0x4f7)](_0xa13f64,_0x31b671){const _0x380695=_0x24c410;let _0x3c64a6=this[_0x380695(0x3f7)][_0x380695(0x40c)](_0xa13f64);_0x3c64a6||(_0x3c64a6=new vs(),this[_0x380695(0x3f7)][_0x380695(0x48d)](_0xa13f64,_0x3c64a6)),_0x3c64a6[_0x380695(0x4f7)](_0x31b671);}[_0x24c410(0x41e)](_0x93177c,_0x36e6fa){const _0xc72691=_0x24c410,_0x3bccd7=this[_0xc72691(0x3f7)][_0xc72691(0x40c)](_0x93177c);_0x3bccd7&&_0x3bccd7['removeMember'](_0x36e6fa);}[_0x24c410(0x4e3)](_0xb83f1f){const _0x35b6e5=_0x24c410;return this[_0x35b6e5(0x3f7)]['get'](_0xb83f1f);}[_0x24c410(0x523)](_0x52ee25,_0x1ad542){const _0x3fcda8=_0x24c410,_0x1282cb=this[_0x3fcda8(0x3f7)][_0x3fcda8(0x40c)](_0x52ee25);if(_0x1282cb)return _0x1282cb[_0x3fcda8(0x523)](_0x1ad542);}[_0x24c410(0x45d)](_0x71218e){const _0x59fb1a=_0x24c410,_0x11692f=this[_0x59fb1a(0x3f7)][_0x59fb1a(0x40c)](_0x71218e);_0x11692f&&(_0x11692f[_0x59fb1a(0x54a)](),this[_0x59fb1a(0x3f7)]['delete'](_0x71218e));}['dispose'](){const _0x593821=_0x24c410;this[_0x593821(0x3f7)][_0x593821(0x202)](_0x5be706=>_0x5be706[_0x593821(0x54a)]()),this[_0x593821(0x3f7)][_0x593821(0x353)]();}};q=Ss([tt(0x0,a['IUniverInstanceService']),tt(0x1,a['Inject'](a['UserManagerService']))],q);class vs extends a[_0x24c410(0x2f0)]{constructor(){const _0x412584=_0x24c410;super(...arguments),u(this,_0x412584(0x3ae),new Map());}['dispose'](){const _0x3e87e6=_0x24c410;this['_members'][_0x3e87e6(0x353)]();}[_0x24c410(0x4f7)](_0x12dbb3){const _0x1d010e=_0x24c410;this[_0x1d010e(0x3ae)][_0x1d010e(0x48d)](_0x12dbb3[_0x1d010e(0x259)],_0x12dbb3);}[_0x24c410(0x41e)](_0x217899){this['_members']['delete'](_0x217899);}[_0x24c410(0x523)](_0x95fd6f){const _0x1fb4d4=_0x24c410;return this[_0x1fb4d4(0x3ae)][_0x1fb4d4(0x40c)](_0x95fd6f);}}var gs=Object[_0x24c410(0x5d0)],ms=Object[_0x24c410(0x3e3)],fs=(_0x3f2c49,_0x30e685,_0x3c7ae0,_0x5a35bd)=>{const _0x105a40=_0x24c410;for(var _0x39e14c=_0x5a35bd>0x1?void 0x0:_0x5a35bd?ms(_0x30e685,_0x3c7ae0):_0x30e685,_0x40abcf=_0x3f2c49[_0x105a40(0x25b)]-0x1,_0x454f5b;_0x40abcf>=0x0;_0x40abcf--)(_0x454f5b=_0x3f2c49[_0x40abcf])&&(_0x39e14c=(_0x5a35bd?_0x454f5b(_0x30e685,_0x3c7ae0,_0x39e14c):_0x454f5b(_0x39e14c))||_0x39e14c);return _0x5a35bd&&_0x39e14c&&gs(_0x30e685,_0x3c7ae0,_0x39e14c),_0x39e14c;},V=(_0x376486,_0xea2ed6)=>(_0x8bba0a,_0x1d87f)=>_0xea2ed6(_0x8bba0a,_0x1d87f,_0x376486),H=(_0x2aca4e=>(_0x2aca4e[_0x2aca4e[_0x24c410(0x434)]=0x0]=_0x24c410(0x434),_0x2aca4e[_0x2aca4e[_0x24c410(0x445)]=0x1]=_0x24c410(0x445),_0x2aca4e[_0x2aca4e[_0x24c410(0x3e9)]=0x2]=_0x24c410(0x3e9),_0x2aca4e[_0x2aca4e['ONLINE']=0x3]=_0x24c410(0x2ae),_0x2aca4e))(H||{});exports[_0x24c410(0x579)]=class extends a[_0x24c410(0x284)]{constructor(_0x270ad8,_0x4a5d2c,_0x1030a4,_0x4a199a,_0x78fbe8,_0x4b75d8,_0x3e5a75,_0x205825,_0x529c0c,_0x109b0e){const _0x453dda=_0x24c410;super(),u(this,_0x453dda(0x4b0),new v[(_0x453dda(0x39d))](0x0)),u(this,_0x453dda(0x1f2),this['_sessionStatus$']['asObservable']()),u(this,_0x453dda(0x325),new v['Subject']()),u(this,_0x453dda(0x5ba),this[_0x453dda(0x325)][_0x453dda(0x343)]()),u(this,_0x453dda(0x567)),u(this,_0x453dda(0x55e)),u(this,_0x453dda(0x37f)),u(this,_0x453dda(0x38e),!0x1),u(this,_0x453dda(0x25a),null),(this[_0x453dda(0x3fb)]=_0x270ad8,this['_logService']=_0x1030a4,this[_0x453dda(0x252)]=_0x4a199a,this[_0x453dda(0x3c7)]=_0x78fbe8,this[_0x453dda(0x4c8)]=_0x4b75d8,this['_localeService']=_0x3e5a75,this[_0x453dda(0x4a4)]=_0x205825,this[_0x453dda(0x29f)]=_0x529c0c,this[_0x453dda(0x5be)]=_0x109b0e,this[_0x453dda(0x38e)]=!!this[_0x453dda(0x5be)],_0x4a5d2c[_0x453dda(0x404)](v['takeUntil'](this['dispose$']))[_0x453dda(0x359)](_0xd7a995=>{const _0xcbfa9b=_0x453dda;var _0x305c58;typeof _0xd7a995>'u'||(this['_socket']=_0xd7a995,_0xd7a995?(this[_0xcbfa9b(0x536)](_0xd7a995),this[_0xcbfa9b(0x55e)]=_0xd7a995['message$'][_0xcbfa9b(0x359)](_0x935713=>{const _0x24a99a=_0xcbfa9b;_0x935713[_0x24a99a(0x3f9)]===this['_unitID']&&this[_0x24a99a(0x215)](_0x935713);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0xcbfa9b(0x4b0)]['next'](0x2),(_0x305c58=this['_socketMessageSubscription'])==null||_0x305c58['unsubscribe'](),this[_0xcbfa9b(0x55e)]=null));}),this['disposeWithMe'](this[_0x453dda(0x252)][_0x453dda(0x2a6)](()=>{const _0x59e4fb=_0x453dda;var _0x23fd3f;(_0x23fd3f=this[_0x59e4fb(0x567)])==null||_0x23fd3f[_0x59e4fb(0x2b6)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x24c410(0x204)](){const _0x1b16ac=_0x24c410;return this[_0x1b16ac(0x4b0)][_0x1b16ac(0x49a)]();}[_0x24c410(0x577)](){const _0x354637=_0x24c410;var _0x2715b3,_0x96f778;return(_0x96f778=(_0x2715b3=this[_0x354637(0x567)])==null?void 0x0:_0x2715b3[_0x354637(0x259)])!=null?_0x96f778:null;}['dispose'](){const _0xfea1a7=_0x24c410;super['dispose'](),this['dispose$'][_0xfea1a7(0x4a9)](),this[_0xfea1a7(0x22f)][_0xfea1a7(0x4a3)]();}[_0x24c410(0x2e4)](){const _0x3ba5f6=_0x24c410;var _0x9ace2e,_0x550055;this[_0x3ba5f6(0x459)](),(_0x9ace2e=this[_0x3ba5f6(0x567)])==null||_0x9ace2e[_0x3ba5f6(0x2b6)]({'cmd':b[_0x3ba5f6(0x2f2)],'data':{'roomID':this[_0x3ba5f6(0x3fb)]}}),(_0x550055=this[_0x3ba5f6(0x567)])==null||_0x550055[_0x3ba5f6(0x2e4)](),this[_0x3ba5f6(0x325)][_0x3ba5f6(0x4a3)](),this[_0x3ba5f6(0x4b0)][_0x3ba5f6(0x4a3)](),this[_0x3ba5f6(0x54a)]();}['_onCombEvent'](_0x4ed0ec){const _0x541223=_0x24c410;_0x4ed0ec[_0x541223(0x559)]===b[_0x541223(0x5d7)]?this[_0x541223(0x56b)](_0x4ed0ec):_0x4ed0ec[_0x541223(0x559)]===b[_0x541223(0x219)]&&this[_0x541223(0x549)](_0x4ed0ec);}['_joinRoom'](_0x3c96f8){const _0x19cdb4=_0x24c410;this[_0x19cdb4(0x4b0)][_0x19cdb4(0x4a9)](0x1),_0x3c96f8[_0x19cdb4(0x2b6)]({'cmd':b[_0x19cdb4(0x5d7)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x19cdb4(0x3fb)]}]}});}['_onJoinRoomEvent'](_0x55d5d7){const _0x3777ce=_0x24c410;var _0xfc527b;if(_0x55d5d7[_0x3777ce(0x5e4)]===Ye['FAIL']){this[_0x3777ce(0x3c7)][_0x3777ce(0x3bc)]({'type':X['MessageType']['Warning'],'content':this[_0x3777ce(0x319)]['t'](_0x3777ce(0x5dd))}),this[_0x3777ce(0x4b0)]['next'](0x2);return;}this[_0x3777ce(0x4b0)][_0x3777ce(0x4a9)](0x3);const _0x599f72=(_0xfc527b=_0x55d5d7[_0x3777ce(0x486)][_0x3777ce(0x3b9)][this['_unitID']])==null?void 0x0:_0xfc527b[_0x3777ce(0x47f)];_0x599f72&&_0x599f72['forEach'](_0x2d5494=>this[_0x3777ce(0x4a4)]['updateMember'](this['_unitID'],_0x2d5494));}[_0x24c410(0x549)](_0x4dac66){const _0x2d3def=_0x24c410;try{const _0x2fc45e=_0x4dac66[_0x2d3def(0x486)];switch(_0x2fc45e[_0x2d3def(0x3b1)]){case _[_0x2d3def(0x4f8)][_0x2d3def(0x368)]:this['_onUserJoin'](_0x2fc45e),this[_0x2d3def(0x325)][_0x2d3def(0x4a9)](_0x2fc45e);break;case _[_0x2d3def(0x4f8)][_0x2d3def(0x45f)]:this[_0x2d3def(0x39e)](_0x2fc45e),this[_0x2d3def(0x325)][_0x2d3def(0x4a9)](_0x2fc45e);break;case _['CollaborationEvent'][_0x2d3def(0x297)]:this[_0x2d3def(0x21c)](),this[_0x2d3def(0x57d)](),this['_event$']['next'](_0x2fc45e);break;case _['CollaborationEvent'][_0x2d3def(0x235)]:this['_logService']['error'](_0x2d3def(0x3b7)+JSON['stringify'](_0x2fc45e)),this['_event$'][_0x2d3def(0x4a9)](_0x2fc45e);break;case _[_0x2d3def(0x4f8)][_0x2d3def(0x525)]:this[_0x2d3def(0x29f)][_0x2d3def(0x5f3)](_0x2fc45e[_0x2d3def(0x486)]),this[_0x2d3def(0x325)][_0x2d3def(0x4a9)](_0x2fc45e);break;default:this[_0x2d3def(0x325)]['next'](_0x2fc45e);}}catch(_0x4280eb){this[_0x2d3def(0x518)]['error'](_0x4280eb,_0x4dac66);}}[_0x24c410(0x4e4)](_0x120f8e){const _0xaca110=_0x24c410;this[_0xaca110(0x4a4)][_0xaca110(0x4f7)](this[_0xaca110(0x3fb)],_0x120f8e[_0xaca110(0x486)]);}[_0x24c410(0x39e)](_0x5b9f85){const _0x437af5=_0x24c410;this['_memberService'][_0x437af5(0x41e)](this[_0x437af5(0x3fb)],_0x5b9f85[_0x437af5(0x486)][_0x437af5(0x259)]);}async[_0x24c410(0x2b6)](_0x1eee6b,_0x45a3e0){const _0x4d6369=_0x24c410;if(this[_0x4d6369(0x204)]!==0x3||!this[_0x4d6369(0x567)])throw new Error(_0x4d6369(0x550));try{_0x1eee6b['eventID']===_['CollaborationEvent'][_0x4d6369(0x48a)]&&(this[_0x4d6369(0x2ac)](),this['_startTelemetryCollaborationNewChangeset'](_0x1eee6b)),this[_0x4d6369(0x567)]['send']({'cmd':b[_0x4d6369(0x50f)],'routeKey':_0x45a3e0,'routeType':'','data':_0x1eee6b});}catch(_0x244891){this[_0x4d6369(0x518)][_0x4d6369(0x553)](_0x244891);}}['_scheduleCollaborationTimeoutTimer'](){const _0x402ff0=_0x24c410;var _0x5b0780;this[_0x402ff0(0x37f)]=window[_0x402ff0(0x387)](()=>{const _0x2ba6ac=_0x402ff0;this['_collaborationTimeoutTimer']=null,this[_0x2ba6ac(0x3c7)]['show']({'type':X['MessageType'][_0x2ba6ac(0x214)],'content':this[_0x2ba6ac(0x319)]['t'](_0x2ba6ac(0x5de))});},(_0x5b0780=this[_0x402ff0(0x4c8)][_0x402ff0(0x5bf)](Ge))!=null?_0x5b0780:ft);}[_0x24c410(0x57d)](){const _0x3068c7=_0x24c410;this[_0x3068c7(0x37f)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x24c410(0x275)](_0x432b52){const _0x4f3c2c=_0x24c410;if(!this[_0x4f3c2c(0x38e)])return;const {data:_0x28656e}=_0x432b52,{unitID:_0x176e2c,changeset:_0x366529}=_0x28656e,{mutations:_0x169467,type:_0x5a736b}=_0x366529;this[_0x4f3c2c(0x25a)]={'unitId':_0x176e2c,'type':_0x5a736b,'startTime':performance[_0x4f3c2c(0x3a7)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x169467)};}[_0x24c410(0x21c)](){const _0x1ed2ea=_0x24c410;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x1ed2ea(0x518)][_0x1ed2ea(0x553)]('[CollaborationSession]',_0x1ed2ea(0x2cc));return;}this[_0x1ed2ea(0x25a)][_0x1ed2ea(0x1ed)]=performance[_0x1ed2ea(0x3a7)](),this[_0x1ed2ea(0x25a)][_0x1ed2ea(0x40d)]=this[_0x1ed2ea(0x25a)][_0x1ed2ea(0x1ed)]-this[_0x1ed2ea(0x25a)]['startTime'],this[_0x1ed2ea(0x5be)][_0x1ed2ea(0x1e2)](hs,this[_0x1ed2ea(0x25a)]),this[_0x1ed2ea(0x25a)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x1bee8c=_0x24c410;this[_0x1bee8c(0x25a)]=null;}},exports[_0x24c410(0x579)]=fs([V(0x2,a[_0x24c410(0x40f)]),V(0x3,A[_0x24c410(0x515)]),V(0x4,A[_0x24c410(0x4b3)]),V(0x5,a[_0x24c410(0x1df)]),V(0x6,a['Inject'](a[_0x24c410(0x388)])),V(0x7,a['Inject'](q)),V(0x8,a['Inject'](Xe)),V(0x9,a['Optional'](Yt[_0x24c410(0x226)]))],exports['CollaborationSession']);var Is=Object[_0x24c410(0x5d0)],ps=Object[_0x24c410(0x3e3)],Cs=(_0x13f5f6,_0x2c5001,_0x5baa39,_0x39a781)=>{const _0x2b834c=_0x24c410;for(var _0x5ea4ef=_0x39a781>0x1?void 0x0:_0x39a781?ps(_0x2c5001,_0x5baa39):_0x2c5001,_0x24b577=_0x13f5f6[_0x2b834c(0x25b)]-0x1,_0x52e2e8;_0x24b577>=0x0;_0x24b577--)(_0x52e2e8=_0x13f5f6[_0x24b577])&&(_0x5ea4ef=(_0x39a781?_0x52e2e8(_0x2c5001,_0x5baa39,_0x5ea4ef):_0x52e2e8(_0x5ea4ef))||_0x5ea4ef);return _0x39a781&&_0x5ea4ef&&Is(_0x2c5001,_0x5baa39,_0x5ea4ef),_0x5ea4ef;},Z=(_0x5828f4,_0x1a43c4)=>(_0x465a26,_0xb5cae2)=>_0x1a43c4(_0x465a26,_0xb5cae2,_0x5828f4);exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x3fea1e,_0x5cdfb8,_0x3befdc,_0x5c33eb,_0x3ad2ad,_0x3d4d9b){const _0x258f77=_0x24c410;super(),u(this,'_socket$',new v[(_0x258f77(0x39d))](void 0x0)),u(this,'socket$',this[_0x258f77(0x4cb)]['asObservable']()),u(this,'_candidateSocket',null),u(this,_0x258f77(0x35c),new Map()),u(this,_0x258f77(0x268),new v[(_0x258f77(0x39d))](H[_0x258f77(0x434)])),u(this,_0x258f77(0x2bf),this[_0x258f77(0x268)][_0x258f77(0x343)]()),u(this,'_socketReady',!0x1),u(this,_0x258f77(0x4bb)),u(this,_0x258f77(0x381),0x0),u(this,_0x258f77(0x581)),u(this,'_timeoutTimer'),(this[_0x258f77(0x495)]=_0x3fea1e,this['_localeService']=_0x5cdfb8,this[_0x258f77(0x3c7)]=_0x3befdc,this[_0x258f77(0x518)]=_0x5c33eb,this[_0x258f77(0x4c8)]=_0x3ad2ad,this[_0x258f77(0x42c)]=_0x3d4d9b,this[_0x258f77(0x571)]());}get['_socket'](){const _0x44977d=_0x24c410;return this[_0x44977d(0x4cb)][_0x44977d(0x49a)]();}['_initEventListeners'](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x24c410(0x54a)](){const _0x31a07b=_0x24c410;super['dispose'](),this[_0x31a07b(0x35c)][_0x31a07b(0x202)](_0x1b694d=>_0x1b694d[_0x31a07b(0x54a)]()),this['_sessions'][_0x31a07b(0x353)](),this['_status$']['complete']();}async[_0x24c410(0x2b7)](_0x56a9bc){const _0x5e3a77=_0x24c410;if(this['_sessions']['has'](_0x56a9bc))return this[_0x5e3a77(0x35c)][_0x5e3a77(0x40c)](_0x56a9bc);this[_0x5e3a77(0x4ca)]();const _0x69ff8f=this[_0x5e3a77(0x495)]['createInstance'](exports[_0x5e3a77(0x579)],_0x56a9bc,this[_0x5e3a77(0x4cb)]['asObservable']());return this[_0x5e3a77(0x35c)][_0x5e3a77(0x48d)](_0x56a9bc,_0x69ff8f),_0x69ff8f;}[_0x24c410(0x28d)](_0x479551){const _0x4b2b3c=_0x24c410;var _0x21b2a0;const _0xa7cac=this['_sessions'][_0x4b2b3c(0x40c)](_0x479551);_0xa7cac&&(this[_0x4b2b3c(0x35c)]['delete'](_0x479551),_0xa7cac[_0x4b2b3c(0x2e4)]()),this['_sessions'][_0x4b2b3c(0x3b5)]||(_0x21b2a0=this[_0x4b2b3c(0x567)])==null||_0x21b2a0[_0x4b2b3c(0x2e4)]();}[_0x24c410(0x5b3)](){const _0x475c51=_0x24c410;this[_0x475c51(0x381)]=0x0,this[_0x475c51(0x4bb)]!=null&&(clearTimeout(this[_0x475c51(0x4bb)]),this[_0x475c51(0x4bb)]=null),this[_0x475c51(0x46c)]();}['_createSocket'](){const _0x1c4564=_0x24c410;var _0x11b959,_0xc35d98;const _0x25adb3=this['_configService']['getConfig'](gt),_0x2a8804=this[_0x1c4564(0x4c8)][_0x1c4564(0x5bf)](L),_0x38d885=(_0xc35d98=(_0x11b959=_0x2a8804==null?void 0x0:_0x2a8804[_0x1c4564(0x386)])!=null?_0x11b959:_0x25adb3)!=null?_0xc35d98:Zt,_0x696bf1=this[_0x1c4564(0x42c)][_0x1c4564(0x4c1)](_0x38d885);return this['_candidateSocket']=_0x696bf1,_0x696bf1;}[_0x24c410(0x4ca)](){const _0x66eb0d=_0x24c410;var _0x3dc521,_0x4544d7;try{const _0x4cf3e0=(_0x4544d7=(_0x3dc521=this[_0x66eb0d(0x567)])!=null?_0x3dc521:this[_0x66eb0d(0x56f)])!=null?_0x4544d7:this[_0x66eb0d(0x537)]();if(_0x4cf3e0){const _0x169f78=_0x4cf3e0[_0x66eb0d(0x2b6)];_0x4cf3e0[_0x66eb0d(0x2b6)]=_0x500e91=>(this[_0x66eb0d(0x5ec)](),_0x169f78['apply'](_0x4cf3e0,[_0x500e91])),_0x4cf3e0['message$'][_0x66eb0d(0x359)](_0x5134cc=>this[_0x66eb0d(0x27c)](_0x4cf3e0,_0x5134cc)),_0x4cf3e0[_0x66eb0d(0x442)][_0x66eb0d(0x404)](E[_0x66eb0d(0x2fb)](0x1))[_0x66eb0d(0x359)](_0x3cf754=>this[_0x66eb0d(0x518)][_0x66eb0d(0x553)](_0x66eb0d(0x448),_0x3cf754)),_0x4cf3e0['open$']['pipe'](E[_0x66eb0d(0x2fb)](0x1))[_0x66eb0d(0x359)](()=>{this['_onConnectionOpen'](_0x4cf3e0);}),_0x4cf3e0[_0x66eb0d(0x580)][_0x66eb0d(0x404)](E[_0x66eb0d(0x2fb)](0x1))[_0x66eb0d(0x359)](_0x3141b7=>{const _0x3b3286=_0x66eb0d;this[_0x3b3286(0x518)][_0x3b3286(0x347)](_0x3b3286(0x39b),'socket\x20close',_0x3141b7),this[_0x3b3286(0x3b6)]();});}}catch(_0x505cf2){this['_logService'][_0x66eb0d(0x553)](_0x505cf2),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x1d4971){const _0x34519d=_0x24c410;this[_0x34519d(0x518)][_0x34519d(0x347)](_0x34519d(0x39b),_0x34519d(0x3e5)),_0x1d4971[_0x34519d(0x2b6)]({'cmd':b[_0x34519d(0x303)]}),this[_0x34519d(0x5ec)]();}[_0x24c410(0x541)](){const _0x2e29a0=_0x24c410;window[_0x2e29a0(0x40a)]('offline',()=>this[_0x2e29a0(0x367)]());}['_onOffline'](){const _0x5111e3=_0x24c410;this[_0x5111e3(0x3c0)]=!0x1,this[_0x5111e3(0x56f)]=null,this['_status$'][_0x5111e3(0x4a9)](H[_0x5111e3(0x3e9)]),this[_0x5111e3(0x4cb)][_0x5111e3(0x4a9)](null),this[_0x5111e3(0x260)](),this[_0x5111e3(0x51c)]();}[_0x24c410(0x3b6)](){const _0x58dd93=_0x24c410;var _0x2ad021;this[_0x58dd93(0x367)](),this['_retryCount']<((_0x2ad021=this[_0x58dd93(0x4c8)][_0x58dd93(0x5bf)](It))!=null?_0x2ad021:ts)?(this[_0x58dd93(0x3c7)][_0x58dd93(0x3bc)]({'key':_0x58dd93(0x3b3),'type':X[_0x58dd93(0x365)][_0x58dd93(0x573)],'content':this[_0x58dd93(0x319)]['t'](_0x58dd93(0x5e1))}),this['_tryReconnect']()):this['_messageService']['show']({'key':_0x58dd93(0x3b3),'type':X[_0x58dd93(0x365)]['Error'],'content':this[_0x58dd93(0x319)]['t'](_0x58dd93(0x5b5))});}[_0x24c410(0x25e)](){const _0x1c8eb0=_0x24c410,_0x50ebcc=()=>{const _0x53f539=_0x3b7c;this[_0x53f539(0x567)]||this['reconnect']();},_0x12e1b1=()=>{const _0x21f0be=_0x3b7c;this[_0x21f0be(0x567)]||document[_0x21f0be(0x574)]===_0x21f0be(0x4a5)||this['reconnect']();};window[_0x1c8eb0(0x40a)]('online',_0x50ebcc),document[_0x1c8eb0(0x40a)](_0x1c8eb0(0x51b),_0x12e1b1);}[_0x24c410(0x46c)](){const _0x3c0f3a=_0x24c410;var _0x3cda27;const _0x465698=this[_0x3c0f3a(0x381)],_0x50a3f2=this['_configService'][_0x3c0f3a(0x5bf)](L),_0x77ec52=_0x465698===0x0?0x0:((_0x3cda27=_0x50a3f2==null?void 0x0:_0x50a3f2['retryConnectingInterval'])!=null?_0x3cda27:es)*0x2**_0x465698;this[_0x3c0f3a(0x4bb)]=window[_0x3c0f3a(0x387)](()=>{const _0x4d3403=_0x3c0f3a;clearTimeout(this[_0x4d3403(0x4bb)]),this['_retryConnectingTimer']=null,this[_0x4d3403(0x4ca)]();},_0x77ec52),this[_0x3c0f3a(0x381)]+=0x1;}['_onMessage'](_0x3e6ab6,_0x14d2e9){const _0x344bcb=_0x24c410,{cmd:_0x23b8a2}=_0x14d2e9;_0x23b8a2===b['HELLO']&&!this[_0x344bcb(0x3c0)]&&(_0x3e6ab6[_0x344bcb(0x259)]=_0x14d2e9[_0x344bcb(0x486)]['memberID'],this[_0x344bcb(0x4cb)][_0x344bcb(0x4a9)](_0x3e6ab6),this[_0x344bcb(0x268)][_0x344bcb(0x4a9)](H['ONLINE']),this[_0x344bcb(0x3c0)]=!0x0,this['_candidateSocket']=null),_0x23b8a2===b[_0x344bcb(0x3d8)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x24c410(0x5ec)](){const _0x5b6128=_0x24c410;var _0x45e0f6;this[_0x5b6128(0x51c)](),this[_0x5b6128(0x581)]=window[_0x5b6128(0x387)](()=>this['_sendHeartbeat'](),(_0x45e0f6=this[_0x5b6128(0x4c8)][_0x5b6128(0x5bf)](mt))!=null?_0x45e0f6:Qt);}[_0x24c410(0x429)](){const _0x40087d=_0x24c410;this['_socket'][_0x40087d(0x2b6)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x24c410(0x43c)](){const _0x48b2e1=_0x24c410;var _0x504cc6;this[_0x48b2e1(0x587)]=window[_0x48b2e1(0x387)](()=>this['_onConnectionFailed'](),(_0x504cc6=this['_configService'][_0x48b2e1(0x5bf)](Ge))!=null?_0x504cc6:ft);}[_0x24c410(0x51c)](){const _0x301e2b=_0x24c410;this[_0x301e2b(0x581)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x24c410(0x260)](){const _0xde3004=_0x24c410;this[_0xde3004(0x587)]!=null&&(clearTimeout(this[_0xde3004(0x587)]),this[_0xde3004(0x587)]=null);}},exports['CollaborationSessionService']=Cs([Z(0x0,a['Inject'](a[_0x24c410(0x4f6)])),Z(0x1,a[_0x24c410(0x349)](a['LocaleService'])),Z(0x2,A[_0x24c410(0x4b3)]),Z(0x3,a[_0x24c410(0x40f)]),Z(0x4,a[_0x24c410(0x1df)]),Z(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R['push']((Ue+0x100)['toString'](0x10)[_0x24c410(0x1e8)](0x1));function Es(_0x223973,_0x4b1e92=0x0){const _0x1778a7=_0x24c410;return(R[_0x223973[_0x4b1e92+0x0]]+R[_0x223973[_0x4b1e92+0x1]]+R[_0x223973[_0x4b1e92+0x2]]+R[_0x223973[_0x4b1e92+0x3]]+'-'+R[_0x223973[_0x4b1e92+0x4]]+R[_0x223973[_0x4b1e92+0x5]]+'-'+R[_0x223973[_0x4b1e92+0x6]]+R[_0x223973[_0x4b1e92+0x7]]+'-'+R[_0x223973[_0x4b1e92+0x8]]+R[_0x223973[_0x4b1e92+0x9]]+'-'+R[_0x223973[_0x4b1e92+0xa]]+R[_0x223973[_0x4b1e92+0xb]]+R[_0x223973[_0x4b1e92+0xc]]+R[_0x223973[_0x4b1e92+0xd]]+R[_0x223973[_0x4b1e92+0xe]]+R[_0x223973[_0x4b1e92+0xf]])[_0x1778a7(0x362)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x39590e=_0x24c410;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto['getRandomValues'][_0x39590e(0x424)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x24c410(0x59e)][_0x24c410(0x424)](crypto);const st={'randomUUID':Rs};function Os(_0xa83402,_0x4fef26,_0x1dc21d){const _0x431714=_0x24c410;if(st['randomUUID']&&!_0x4fef26&&!_0xa83402)return st['randomUUID']();_0xa83402=_0xa83402||{};var _0x810390=_0xa83402[_0x431714(0x247)]||(_0xa83402[_0x431714(0x3f0)]||Ts)();return _0x810390[0x6]=_0x810390[0x6]&0xf|0x40,_0x810390[0x8]=_0x810390[0x8]&0x3f|0x80,Es(_0x810390);}var Ds=Object[_0x24c410(0x5d0)],ys=Object['getOwnPropertyDescriptor'],Us=(_0x579015,_0x555265,_0x5e4954,_0x4469d3)=>{const _0x5757ed=_0x24c410;for(var _0x2751a9=_0x4469d3>0x1?void 0x0:_0x4469d3?ys(_0x555265,_0x5e4954):_0x555265,_0x5cfb4a=_0x579015[_0x5757ed(0x25b)]-0x1,_0x3cb5ce;_0x5cfb4a>=0x0;_0x5cfb4a--)(_0x3cb5ce=_0x579015[_0x5cfb4a])&&(_0x2751a9=(_0x4469d3?_0x3cb5ce(_0x555265,_0x5e4954,_0x2751a9):_0x3cb5ce(_0x2751a9))||_0x2751a9);return _0x4469d3&&_0x2751a9&&Ds(_0x555265,_0x5e4954,_0x2751a9),_0x2751a9;},Pe=(_0x2fd14e,_0x5c7c2b)=>(_0xaa91a,_0x1ce890)=>_0x5c7c2b(_0xaa91a,_0x1ce890,_0x2fd14e);let fe=class{constructor(_0x48b1e1,_0x46c92d,_0x1ea4b6){const _0x3424ea=_0x24c410;this[_0x3424ea(0x495)]=_0x48b1e1,this['_transformService']=_0x46c92d,this[_0x3424ea(0x322)]=_0x1ea4b6;}[_0x24c410(0x2f5)](_0xc71278){const _0x5ab34e=_0x24c410;this[_0x5ab34e(0x23c)](_0xc71278),this[_0x5ab34e(0x432)](_0xc71278);}[_0x24c410(0x2cb)](_0x3728f8){const _0x27fada=_0x24c410,{unitID:_0x303f8b}=_0x3728f8,_0x35c924=this[_0x27fada(0x322)][_0x27fada(0x4c7)](_0x303f8b)[_0x27fada(0x51d)](N[_0x27fada(0x1de)]),{redoCache:_0x28d9d9}=_0x35c924['getUndoRedoMutationParamsCache']();if(_0x28d9d9[_0x27fada(0x25b)]===0x0)return _0x3728f8;let _0x58e1c3=a[_0x27fada(0x45b)]['deepClone'](_0x3728f8[_0x27fada(0x4a6)][0x0]);for(let _0x528f69=0x0;_0x528f69<_0x28d9d9[_0x27fada(0x25b)];_0x528f69++){const _0x27d8c3={'id':_0x27fada(0x4fa),'params':{..._0x28d9d9[_0x528f69]}},_0x3f327e=this['_transformService'][_0x27fada(0x2c3)](_0x58e1c3,_0x27d8c3,!0x1);if(_[_0x27fada(0x37d)](_0x3f327e))throw _0x3f327e[_0x27fada(0x553)];_0x58e1c3=_0x3f327e[_0x27fada(0x58c)];}return{...a['Tools']['deepClone'](_0x3728f8),'mutations':[_0x58e1c3]};}[_0x24c410(0x23c)](_0x3b0376){const _0x3cbb58=_0x24c410,{unitID:_0xe154a9}=_0x3b0376,_0x36f2f4=this[_0x3cbb58(0x322)][_0x3cbb58(0x4c7)](_0xe154a9)['with'](N[_0x3cbb58(0x1de)]),{undoCache:_0xd314b2,redoCache:_0x49a85a}=_0x36f2f4['getUndoRedoMutationParamsCache']();if(_0xd314b2[_0x3cbb58(0x25b)]===0x0||_0x49a85a[_0x3cbb58(0x25b)]===0x0)return;const _0x328daf=[],_0x1c2945=[];let _0x2dd86d=a[_0x3cbb58(0x45b)][_0x3cbb58(0x1f5)](_0x3b0376['mutations'][0x0]),_0x2e1c43=a['Tools'][_0x3cbb58(0x1f5)](_0x3b0376['mutations'][0x0]);for(let _0x1f461d=_0xd314b2[_0x3cbb58(0x25b)]-0x1;_0x1f461d>=0x0;_0x1f461d--){const _0xc4a167={'id':_0x3cbb58(0x4fa),'params':{..._0xd314b2[_0x1f461d]}},_0x5f5a86={'id':_0x3cbb58(0x4fa),'params':{..._0x49a85a[_0x1f461d]}},_0x45f72b=this[_0x3cbb58(0x317)][_0x3cbb58(0x2c3)](_0x2dd86d,_0xc4a167,!0x1),_0x40bd79=this['_transformService'][_0x3cbb58(0x2c3)](_0x2e1c43,_0x5f5a86,!0x1);if(_[_0x3cbb58(0x37d)](_0x45f72b))throw _0x45f72b[_0x3cbb58(0x553)];if(_[_0x3cbb58(0x37d)](_0x40bd79))throw _0x40bd79['error'];_0x328daf[_0x3cbb58(0x4fe)](_0x45f72b[_0x3cbb58(0x2cd)][_0x3cbb58(0x57a)]),_0x1c2945['unshift'](_0x40bd79[_0x3cbb58(0x2cd)][_0x3cbb58(0x57a)]),_0x2dd86d=_0x45f72b['m1Prime'],_0x2e1c43=_0x40bd79['m1Prime'];}_0x36f2f4[_0x3cbb58(0x437)]({'undoCache':_0x328daf,'redoCache':_0x1c2945});}[_0x24c410(0x432)](_0x32e4c0){const _0x38e5d3=_0x24c410,{unitID:_0x3923f2}=_0x32e4c0,_0xd1dd3c=this['_renderManagerService']['getRenderById'](_0x3923f2)[_0x38e5d3(0x51d)](N['DocIMEInputManagerService']),_0x3c7312=_0xd1dd3c['getActiveRange']();if(_0x3c7312==null)return;const _0x30c510=[{'id':_0x38e5d3(0x4fa),'params':{'unitId':_0x32e4c0['unitID'],'actions':null,'textRanges':[_0x3c7312]}}],_0x456268=this[_0x38e5d3(0x317)][_0x38e5d3(0x26f)](_0x32e4c0,_0x30c510);if(!_[_0x38e5d3(0x31d)](_0x456268))throw _0x456268['error'];const _0x44e96f=_0x456268['m2Prime'][0x0][_0x38e5d3(0x57a)][_0x38e5d3(0x566)];Array['isArray'](_0x44e96f)&&_0x44e96f[_0x38e5d3(0x25b)]&&_0xd1dd3c['setActiveRange'](_0x44e96f[0x0]);}};fe=Us([Pe(0x0,a[_0x24c410(0x349)](a['Injector'])),Pe(0x1,_[_0x24c410(0x2ec)]),Pe(0x2,O[_0x24c410(0x3ca)])],fe);var Ps=Object[_0x24c410(0x5d0)],ws=Object[_0x24c410(0x3e3)],Ns=(_0x653336,_0x422cb6,_0x472081,_0x64b630)=>{for(var _0x50af1d=_0x64b630>0x1?void 0x0:_0x64b630?ws(_0x422cb6,_0x472081):_0x422cb6,_0xaeb8ab=_0x653336['length']-0x1,_0x1d7737;_0xaeb8ab>=0x0;_0xaeb8ab--)(_0x1d7737=_0x653336[_0xaeb8ab])&&(_0x50af1d=(_0x64b630?_0x1d7737(_0x422cb6,_0x472081,_0x50af1d):_0x1d7737(_0x50af1d))||_0x50af1d);return _0x64b630&&_0x50af1d&&Ps(_0x422cb6,_0x472081,_0x50af1d),_0x50af1d;},ce=(_0x22940f,_0x56dc4d)=>(_0x57d5a6,_0x143c0f)=>_0x56dc4d(_0x57d5a6,_0x143c0f,_0x22940f);function _0x3b7c(_0x39b7c9,_0x37e14d){const _0x11833d=_0x1183();return _0x3b7c=function(_0x3b7c80,_0x43ba01){_0x3b7c80=_0x3b7c80-0x1cc;let _0x19e287=_0x11833d[_0x3b7c80];return _0x19e287;},_0x3b7c(_0x39b7c9,_0x37e14d);}exports['LocalCacheService']=class extends a[_0x24c410(0x2f0)]{constructor(_0x53b994,_0x5dda55,_0x49ff3a,_0x5df385,_0x4695da){const _0x50bf5e=_0x24c410;super(),u(this,_0x50bf5e(0x5c8),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x50bf5e(0x44c),!0x1),(this[_0x50bf5e(0x4c8)]=_0x53b994,this[_0x50bf5e(0x242)]=_0x5dda55,this['_beforeCloseService']=_0x49ff3a,this[_0x50bf5e(0x319)]=_0x5df385,this[_0x50bf5e(0x2d3)]=_0x4695da,this[_0x50bf5e(0x1ec)]());}[_0x24c410(0x5c1)](){const _0x372344=_0x24c410;this[_0x372344(0x44c)]=!0x0;}['enableLocalCache'](){const _0xb6cb61=_0x24c410;this[_0xb6cb61(0x44c)]=!0x1;}[_0x24c410(0x54a)](){const _0x55fe4c=_0x24c410;this[_0x55fe4c(0x4d6)]()['then'](()=>super[_0x55fe4c(0x54a)]());}async[_0x24c410(0x38c)](_0x28c38f){const _0x55d58d=_0x24c410;return this[_0x55d58d(0x44c)]?null:this[_0x55d58d(0x242)]['getItem'](it(_0x28c38f));}async[_0x24c410(0x2a8)](_0x18a885,_0x3f035b){return!!this['_localStorageService']['setItem'](_0x18a885,_0x3f035b);}[_0x24c410(0x2c8)](_0x5843ee,_0xb08d30,_0x29be5d,_0x13b22b){const _0x37e5ec=_0x24c410,_0x117701=this[_0x37e5ec(0x2d3)]['getCurrentRevOfUnit'](_0x5843ee);this[_0x37e5ec(0x5c8)][_0x37e5ec(0x48d)](_0x5843ee,{'unitID':_0x5843ee,'type':_0xb08d30,'awaitingChangeset':_0x29be5d,'mutations':_0x13b22b,'rev':_0x117701}),this[_0x37e5ec(0x3d2)][_0x37e5ec(0x3d7)](_0x5843ee)||this[_0x37e5ec(0x417)](_0x5843ee);}[_0x24c410(0x417)](_0x5f3dca){const _0x292bfa=_0x24c410,_0xa6756d=this[_0x292bfa(0x38f)]();_0xa6756d===0x0?this[_0x292bfa(0x2ad)](_0x5f3dca):this[_0x292bfa(0x3d2)][_0x292bfa(0x48d)](_0x5f3dca,setTimeout(()=>this[_0x292bfa(0x2ad)](_0x5f3dca),_0xa6756d));}[_0x24c410(0x38f)](){const _0x1fdc9a=_0x24c410;var _0x21873b;return(_0x21873b=this[_0x1fdc9a(0x4c8)][_0x1fdc9a(0x5bf)](pt))!=null?_0x21873b:ss;}[_0x24c410(0x2ad)](_0x3ff585){const _0x59f81b=_0x24c410,_0x198365=this[_0x59f81b(0x3d2)][_0x59f81b(0x40c)](_0x3ff585);return _0x198365!==void 0x0&&window[_0x59f81b(0x476)](_0x198365),this[_0x59f81b(0x242)][_0x59f81b(0x382)](it(_0x3ff585),this['_cachedData'][_0x59f81b(0x40c)](_0x3ff585))[_0x59f81b(0x33f)](()=>this['_saveTaskMap'][_0x59f81b(0x5a3)](_0x3ff585));}async[_0x24c410(0x4d6)](){const _0x568e93=_0x24c410,_0x2285dd=[];this[_0x568e93(0x3d2)][_0x568e93(0x202)]((_0x7048c2,_0x45fca6)=>{const _0x23b83e=_0x568e93;window[_0x23b83e(0x476)](_0x7048c2),_0x2285dd[_0x23b83e(0x222)](this[_0x23b83e(0x2ad)](_0x45fca6)['then'](()=>{const _0x57088d=_0x23b83e;this[_0x57088d(0x3d2)][_0x57088d(0x5a3)](_0x45fca6);}));}),await Promise['all'](_0x2285dd);}[_0x24c410(0x1ec)](){const _0x35a741=_0x24c410;this['disposeWithMe'](this[_0x35a741(0x252)][_0x35a741(0x2bd)](()=>{const _0x37ede7=_0x35a741;if(this['_saveTaskMap'][_0x37ede7(0x3b5)])return this['_localeService']['t'](_0x37ede7(0x4ec));}));}},exports[_0x24c410(0x205)]=Ns([ce(0x0,a[_0x24c410(0x1df)]),ce(0x1,a['ILocalStorageService']),ce(0x2,A['IBeforeCloseService']),ce(0x3,a['Inject'](a[_0x24c410(0x388)])),ce(0x4,a[_0x24c410(0x349)](_[_0x24c410(0x4a7)]))],exports[_0x24c410(0x205)]);function it(_0x7917fe){const _0x4570e7=_0x24c410;return _0x4570e7(0x480)+_0x7917fe;}var Ms=Object[_0x24c410(0x5d0)],As=Object[_0x24c410(0x3e3)],Ls=(_0x51a856,_0x496b69,_0x3e269d,_0x26e4aa)=>{const _0xc00e15=_0x24c410;for(var _0x36cc8f=_0x26e4aa>0x1?void 0x0:_0x26e4aa?As(_0x496b69,_0x3e269d):_0x496b69,_0x4b79bc=_0x51a856[_0xc00e15(0x25b)]-0x1,_0x19a9d4;_0x4b79bc>=0x0;_0x4b79bc--)(_0x19a9d4=_0x51a856[_0x4b79bc])&&(_0x36cc8f=(_0x26e4aa?_0x19a9d4(_0x496b69,_0x3e269d,_0x36cc8f):_0x19a9d4(_0x36cc8f))||_0x36cc8f);return _0x26e4aa&&_0x36cc8f&&Ms(_0x496b69,_0x3e269d,_0x36cc8f),_0x36cc8f;},we=(_0x551bad,_0x1895d3)=>(_0x39c2fe,_0xfcb3be)=>_0x1895d3(_0x39c2fe,_0xfcb3be,_0x551bad);function js(_0x2086a){const _0xab84e2=_0x24c410,{unitID:_0xff38ab,mutations:_0x3ba66c}=_0x2086a;return{'unitId':_0xff38ab,'subUnitId':_0x3ba66c[0x0][_0xab84e2(0x57a)][_0xab84e2(0x4b9)]};}let Ie=class{constructor(_0x54f609,_0x2d9f0a,_0x316757){const _0x3b8567=_0x24c410;this[_0x3b8567(0x495)]=_0x54f609,this['_transformService']=_0x2d9f0a,this[_0x3b8567(0x54c)]=_0x316757;}['transformSelections'](_0x352880){const _0x86084c=_0x24c410;var _0x2dddb1,_0x522322,_0x31423d,_0x17ef19;const _0x5cad6e=this['_injector'][_0x86084c(0x40c)](C[_0x86084c(0x4ac)]),{unitId:_0x2f390d,subUnitId:_0x3475fd}=js(_0x352880),_0xe6919b=_0x5cad6e[_0x86084c(0x590)](_0x2f390d)[_0x86084c(0x1ef)](),_0x161d37=(_0x522322=(_0x2dddb1=this['_instanceService'][_0x86084c(0x423)](_0x2f390d))==null?void 0x0:_0x2dddb1['getActiveSheet']())==null?void 0x0:_0x522322[_0x86084c(0x5b7)]();if(_0xe6919b['length']===0x0||!_0x2f390d||!_0x3475fd)return;const _0x22c75e=[{'id':C[_0x86084c(0x56a)]['id'],'params':{'unitId':_0x2f390d,'subUnitId':_0x161d37,'selections':a[_0x86084c(0x45b)][_0x86084c(0x1f5)](_0xe6919b)}}],_0x178b43=this[_0x86084c(0x317)]['transformMutationsWithChangeset'](_0x352880,_0x22c75e);if(!_[_0x86084c(0x31d)](_0x178b43))throw _0x178b43[_0x86084c(0x553)];const _0x2ac734=(_0x17ef19=(_0x31423d=_0x178b43[_0x86084c(0x2cd)][0x0])==null?void 0x0:_0x31423d[_0x86084c(0x57a)])==null?void 0x0:_0x17ef19[_0x86084c(0x5b8)];Array[_0x86084c(0x2fa)](_0x2ac734)&&_0x2ac734[_0x86084c(0x25b)]&&this['_injector']['get'](a[_0x86084c(0x494)])['executeCommand'](C[_0x86084c(0x56a)]['id'],{'unitId':_0x2f390d,'subUnitId':_0x161d37,'selections':_0x2ac734});}};Ie=Ls([we(0x0,a[_0x24c410(0x349)](a['Injector'])),we(0x1,_[_0x24c410(0x2ec)]),we(0x2,a['IUniverInstanceService'])],Ie);const Re=a[_0x24c410(0x2ee)]('univer-pro.collaboration-client.single-active-unit-service');var Dt=(_0x306a8e=>(_0x306a8e[_0x306a8e[_0x24c410(0x59d)]=0x0]=_0x24c410(0x59d),_0x306a8e[_0x306a8e[_0x24c410(0x5e5)]=0x1]=_0x24c410(0x5e5),_0x306a8e))(Dt||{});const nt=0x7530,rt=_0x24c410(0x216);class $s extends a[_0x24c410(0x2f0)]{constructor(){const _0xc69008=_0x24c410;super(),u(this,_0xc69008(0x30a),a[_0xc69008(0x45b)][_0xc69008(0x497)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0xc69008(0x4d2),new Map()),u(this,_0xc69008(0x348),null),u(this,'_clearOtherTimers',new Map()),u(this,'_unitStatus',new Map()),this[_0xc69008(0x393)]();}[_0x24c410(0x54a)](){const _0x3b4613=_0x24c410;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x3b69a1,_0xb8a551)=>this[_0x3b4613(0x1d3)](_0xb8a551)),this[_0x3b4613(0x348)]&&window[_0x3b4613(0x38b)](this[_0x3b4613(0x348)]);}[_0x24c410(0x526)](_0x993541){const _0xd7fe78=_0x24c410;return this['_ensureSubject'](_0x993541)['pipe'](v[_0xd7fe78(0x52e)]());}[_0x24c410(0x582)](_0x3897e2){const _0x4383a3=_0x24c410;this[_0x4383a3(0x3cc)][_0x4383a3(0x3b5)]===0x0&&this[_0x4383a3(0x569)](),this[_0x4383a3(0x3cc)]['add'](_0x3897e2),this[_0x4383a3(0x4b7)]({'type':0x0,'memberID':this[_0x4383a3(0x30a)],'unitIDs':[_0x3897e2],'isForwarded':!0x1});}[_0x24c410(0x1db)](_0x48783a){const _0x2f5987=_0x24c410;this[_0x2f5987(0x3cc)][_0x2f5987(0x5a3)](_0x48783a),this[_0x2f5987(0x3cc)][_0x2f5987(0x3b5)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x2f5987(0x348)]);}[_0x24c410(0x393)](){const _0x8e255f=_0x24c410;this[_0x8e255f(0x4b2)](a[_0x8e255f(0x2ab)](v[_0x8e255f(0x54f)](window,_0x8e255f(0x40b))[_0x8e255f(0x359)](_0xe7fc3e=>{const _0x5ee5ee=_0x8e255f;if(_0xe7fc3e[_0x5ee5ee(0x30b)]!==rt||!_0xe7fc3e['newValue'])return;const _0x20c8bf=JSON['parse'](_0xe7fc3e['newValue']);this[_0x5ee5ee(0x267)](_0x20c8bf);}))),window[_0x8e255f(0x40a)](_0x8e255f(0x484),()=>this['_send']({'type':0x1,'memberID':this[_0x8e255f(0x30a)],'unitIDs':Array[_0x8e255f(0x229)](this[_0x8e255f(0x3cc)])}));}[_0x24c410(0x267)](_0xa55385){const _0x15c1a8=_0x24c410;switch(_0xa55385[_0x15c1a8(0x28b)]){case 0x0:this[_0x15c1a8(0x4bf)](_0xa55385);break;case 0x1:this[_0x15c1a8(0x558)](_0xa55385);break;case 0x2:this['_handleHeartbeatEvent'](_0xa55385);break;}}[_0x24c410(0x4bf)](_0x5a8311){const _0x14d6c8=_0x24c410,{unitIDs:_0x5e9948,memberID:_0x98b6a5,isForwarded:_0x223750}=_0x5a8311;_0x5e9948[_0x14d6c8(0x202)](_0x40e035=>{const _0x141dba=_0x14d6c8;if(!_0x223750&&this[_0x141dba(0x4d2)][_0x141dba(0x3d7)](_0x40e035)&&this['_ensureSubject'](_0x40e035)['next'](0x1),!this[_0x141dba(0x4d2)][_0x141dba(0x3d7)](_0x40e035)||!this[_0x141dba(0x4d2)][_0x141dba(0x40c)](_0x40e035)[_0x141dba(0x3d7)](_0x98b6a5)){const _0x45e0aa=this['_unitOnClients'][_0x141dba(0x40c)](_0x40e035)||new Set();_0x45e0aa[_0x141dba(0x3d0)](_0x98b6a5),this[_0x141dba(0x4d2)][_0x141dba(0x48d)](_0x40e035,_0x45e0aa),this['_scheduleClearOtherTimer'](_0x98b6a5);}}),_0x223750||this[_0x14d6c8(0x4b7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x14d6c8(0x3cc)]],'isForwarded':!0x0});}[_0x24c410(0x471)](_0x26ab50){const _0x2d3836=_0x24c410;this[_0x2d3836(0x1d3)](_0x26ab50);const _0x240471=window[_0x2d3836(0x387)](()=>{const _0x4136d7=_0x2d3836;this[_0x4136d7(0x4d2)][_0x4136d7(0x202)](_0x6cc278=>{const _0x4318ee=_0x4136d7;_0x6cc278[_0x4318ee(0x5a3)](_0x26ab50);});},nt*0x2);this[_0x2d3836(0x20b)]['set'](_0x26ab50,_0x240471);}[_0x24c410(0x1d3)](_0x48338c){const _0x12edca=_0x24c410;if(this['_clearOtherTimers'][_0x12edca(0x3d7)](_0x48338c)){const _0x4789d4=this['_clearOtherTimers'][_0x12edca(0x40c)](_0x48338c);_0x4789d4&&window[_0x12edca(0x476)](_0x4789d4),this[_0x12edca(0x20b)][_0x12edca(0x48d)](_0x48338c,null);}}[_0x24c410(0x558)](_0x18352c){const _0x35fe58=_0x24c410,{memberID:_0x4cea35,unitIDs:_0x4736e0}=_0x18352c;_0x4736e0[_0x35fe58(0x202)](_0x54c25a=>{const _0x32c355=_0x35fe58;var _0x541ab2;const _0x4ad3b0=this[_0x32c355(0x4d2)][_0x32c355(0x40c)](_0x54c25a);_0x4ad3b0&&(_0x4ad3b0[_0x32c355(0x5a3)](_0x4cea35),(_0x541ab2=this[_0x32c355(0x224)](_0x54c25a))==null||_0x541ab2['next'](_0x4ad3b0[_0x32c355(0x3b5)]===0x0?0x0:0x1));}),this[_0x35fe58(0x1d3)](_0x4cea35);}['_handleHeartbeatEvent'](_0x63f4e6){const _0x2632ef=_0x24c410;this[_0x2632ef(0x471)](_0x63f4e6[_0x2632ef(0x259)]);}[_0x24c410(0x4b7)](_0x1c28f1){const _0x1bb006=_0x24c410;localStorage[_0x1bb006(0x382)](rt,JSON[_0x1bb006(0x34b)](_0x1c28f1));}[_0x24c410(0x569)](){const _0x6a1e2c=_0x24c410;this['_heartbeatTimer']=window[_0x6a1e2c(0x390)](()=>{const _0x3a200d=_0x6a1e2c;this[_0x3a200d(0x4b7)]({'type':0x2,'memberID':this[_0x3a200d(0x30a)]});},nt);}[_0x24c410(0x224)](_0x170dc7){const _0x3c9e64=_0x24c410;return this[_0x3c9e64(0x54b)][_0x3c9e64(0x3d7)](_0x170dc7)||this[_0x3c9e64(0x54b)]['set'](_0x170dc7,new v[(_0x3c9e64(0x39d))](0x0)),this['_unitStatus'][_0x3c9e64(0x40c)](_0x170dc7);}}function yt(_0x4d9c38){const _0x21c1c7=_0x24c410;let _0x1cff63='';for(const _0x25cdfe of _0x4d9c38){const {startOffset:_0x57714f,endOffset:_0x1d2afa,isActive:_0xf31cd6}=_0x25cdfe;_0x1cff63[_0x21c1c7(0x25b)]&&(_0x1cff63+=','),_0x1cff63+=_0x57714f+':'+_0x1d2afa+':'+(_0xf31cd6?'1':'0');}return _0x1cff63;}function Hs(_0x1e35db){const _0x2e30b3=_0x24c410,_0x574aea=_0x1e35db['split'](','),_0x1ad807=[];for(const _0x1d8df7 of _0x574aea){const [_0x579477,_0x142059,_0x5a8fe6]=_0x1d8df7[_0x2e30b3(0x337)](':');_0x1ad807[_0x2e30b3(0x222)]({'startOffset':Number(_0x579477),'endOffset':Number(_0x142059),'collapsed':_0x579477===_0x142059,'isActive':_0x5a8fe6==='1'});}return _0x1ad807['some'](_0x408985=>_0x408985[_0x2e30b3(0x4b1)])||(_0x1ad807[0x0]['isActive']=!0x0),_0x1ad807;}class qe extends a[_0x24c410(0x284)]{constructor(){const _0x2df4f3=_0x24c410;super(...arguments),u(this,_0x2df4f3(0x1cd),new v[(_0x2df4f3(0x39d))](null)),u(this,_0x2df4f3(0x5c4),this[_0x2df4f3(0x1cd)]['asObservable']());}['syncEditingCollabCursor'](_0x1b45e0){const _0x56fa2a=_0x24c410,{unitID:_0x487af3,memberID:_0x2ce896,textRanges:_0x61d94d}=_0x1b45e0,_0x3a1c80=yt(_0x61d94d),_0x2a054b={'unitID':_0x487af3,'memberID':_0x2ce896,'selection':_0x3a1c80};this[_0x56fa2a(0x1cd)][_0x56fa2a(0x4a9)](_0x2a054b);}}var xs=Object[_0x24c410(0x5d0)],ks=Object[_0x24c410(0x3e3)],Bs=(_0x29adea,_0x345e20,_0x3c798a,_0x49c3d0)=>{const _0x100825=_0x24c410;for(var _0x335b18=_0x49c3d0>0x1?void 0x0:_0x49c3d0?ks(_0x345e20,_0x3c798a):_0x345e20,_0x5167e1=_0x29adea[_0x100825(0x25b)]-0x1,_0x43153d;_0x5167e1>=0x0;_0x5167e1--)(_0x43153d=_0x29adea[_0x5167e1])&&(_0x335b18=(_0x49c3d0?_0x43153d(_0x345e20,_0x3c798a,_0x335b18):_0x43153d(_0x335b18))||_0x335b18);return _0x49c3d0&&_0x335b18&&xs(_0x345e20,_0x3c798a,_0x335b18),_0x335b18;},ot=(_0x4d6143,_0x6049da)=>(_0x42caff,_0xbd49c3)=>_0x6049da(_0x42caff,_0xbd49c3,_0x4d6143);let pe=class{constructor(_0x11303b,_0x37526e){const _0x3356fa=_0x24c410;this[_0x3356fa(0x495)]=_0x11303b,this[_0x3356fa(0x317)]=_0x37526e;}[_0x24c410(0x5e8)](_0xcb7ecf){const _0x18c01a=_0x24c410;var _0x564aef;const _0xc32e60=this[_0x18c01a(0x495)][_0x18c01a(0x40c)](se['DocSelectionManagerService']),_0x5c59cb=(_0x564aef=_0xc32e60['getDocRanges']())!=null?_0x564aef:[];if(_0x5c59cb['length']===0x0)return;const _0x282a90=[{'id':_0x18c01a(0x4fa),'params':{'unitId':_0xcb7ecf['unitID'],'actions':null,'textRanges':_0x5c59cb}}],_0x26fdf2=this[_0x18c01a(0x317)][_0x18c01a(0x26f)](_0xcb7ecf,_0x282a90);if(!_['isTransformMutationsWithChangesetSuccess'](_0x26fdf2))throw _0x26fdf2['error'];const _0x556cbd=_0x26fdf2[_0x18c01a(0x2cd)][0x0]['params'][_0x18c01a(0x566)];Array['isArray'](_0x556cbd)&&_0x556cbd[_0x18c01a(0x25b)]&&_0xc32e60[_0x18c01a(0x31c)](_0x556cbd,!0x1);}};pe=Bs([ot(0x0,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),ot(0x1,_[_0x24c410(0x2ec)])],pe);const Vs=new Set([C[_0x24c410(0x290)]['id']]);function at(_0x580f58,_0x34ef7d,_0x2f726f,_0x328b82,_0x190be2){const _0x5a479f=_0x24c410;var _0x219c3c,_0x143bae,_0x3f83fc,_0x114cb6;const _0x344c30=[];for(const _0x2e9242 of _0x580f58)if(Vs['has'](_0x2e9242['id'])){if(_0x344c30[_0x5a479f(0x25b)]>0x0)break;_0x344c30[_0x5a479f(0x222)](_0x2e9242);break;}else _0x344c30[_0x5a479f(0x222)](_0x2e9242);const _0x15adbf=(_0x143bae=(_0x219c3c=_0x190be2[_0x5a479f(0x507)]())==null?void 0x0:_0x219c3c[_0x5a479f(0x1e4)])!=null?_0x143bae:'unknown',_0x2f351a=(_0x114cb6=(_0x3f83fc=_0x190be2[_0x5a479f(0x507)]())==null?void 0x0:_0x3f83fc['memberID'])!=null?_0x114cb6:'unknown';return{'changeset':{'unitID':_0x34ef7d,'type':_[_0x5a479f(0x4d5)](_0x2f726f['getUnitType'](_0x34ef7d)),'baseRev':_0x328b82[_0x5a479f(0x23d)](_0x34ef7d),'revision':0x0,'userID':_0x15adbf,'memberID':_0x2f351a,'mutations':_0x344c30},'pendingMutations':_0x580f58[_0x5a479f(0x1e8)](_0x344c30[_0x5a479f(0x25b)])};}function Ws(_0x1ef09e,_0xaf4617,_0x17e1b1,_0x2e59dd,_0x5bc41c){const _0x4669a3=_0x24c410;var _0x201ad6,_0x43572f,_0x13a60c,_0x16dfd1;const _0x145673=[_0x1ef09e['reduce']((_0x376fb2,_0x4b2fb0)=>{const _0x1afa90=_0x3b7c;var _0x817636;const {id:_0x29a377}=_0x376fb2,{id:_0x162159,type:_0x25ed70}=_0x4b2fb0,_0x600b49=(_0x817636=_0x376fb2['params'])!=null?_0x817636:{'actions':null},_0x1952f9=_0x4b2fb0[_0x1afa90(0x57a)];if(_0x29a377&&_0x29a377!==_0x162159)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x29a377+_0x1afa90(0x2b2)+_0x162159+'.');return{..._0x376fb2,'id':_0x162159,'type':_0x25ed70,'params':{'unitId':_0x1952f9['unitId'],'textRanges':_0x1952f9[_0x1afa90(0x566)],'actions':a[_0x1afa90(0x2fc)][_0x1afa90(0x3e1)](_0x600b49['actions'],_0x1952f9[_0x1afa90(0x599)])}};},{})],_0x265b7d=(_0x43572f=(_0x201ad6=_0x5bc41c[_0x4669a3(0x507)]())==null?void 0x0:_0x201ad6['userID'])!=null?_0x43572f:_0x4669a3(0x28e),_0x315e83=(_0x16dfd1=(_0x13a60c=_0x5bc41c[_0x4669a3(0x507)]())==null?void 0x0:_0x13a60c[_0x4669a3(0x259)])!=null?_0x16dfd1:_0x4669a3(0x28e);return{'changeset':{'unitID':_0xaf4617,'type':_['mapDocumentTypeToUniverType'](_0x17e1b1['getUnitType'](_0xaf4617)),'baseRev':_0x2e59dd[_0x4669a3(0x23d)](_0xaf4617),'revision':0x0,'userID':_0x265b7d,'memberID':_0x315e83,'mutations':_0x145673},'pendingMutations':[]};}const Fs={'id':C[_0x24c410(0x32d)]['id'],'type':a['CommandType'][_0x24c410(0x5b0)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x24c410(0x3e3)],z=(_0x24bb55,_0x3a86ae,_0x2c3fad,_0x3b926f)=>{const _0x240847=_0x24c410;for(var _0x392ab7=_0x3b926f>0x1?void 0x0:_0x3b926f?Ys(_0x3a86ae,_0x2c3fad):_0x3a86ae,_0xef2998=_0x24bb55[_0x240847(0x25b)]-0x1,_0x1a7f12;_0xef2998>=0x0;_0xef2998--)(_0x1a7f12=_0x24bb55[_0xef2998])&&(_0x392ab7=(_0x3b926f?_0x1a7f12(_0x3a86ae,_0x2c3fad,_0x392ab7):_0x1a7f12(_0x392ab7))||_0x392ab7);return _0x3b926f&&_0x392ab7&&Gs(_0x3a86ae,_0x2c3fad,_0x392ab7),_0x392ab7;},m=(_0xbd887f,_0x26da52)=>(_0xf9a421,_0x404eef)=>_0x26da52(_0xf9a421,_0x404eef,_0xbd887f),U=(_0x14a7cf=>(_0x14a7cf[_0x24c410(0x2ea)]=_0x24c410(0x1f0),_0x14a7cf[_0x24c410(0x4fb)]=_0x24c410(0x289),_0x14a7cf[_0x24c410(0x263)]=_0x24c410(0x237),_0x14a7cf['AWAITING']=_0x24c410(0x256),_0x14a7cf[_0x24c410(0x26e)]=_0x24c410(0x277),_0x14a7cf['FETCH_MISS']='fetch_missing',_0x14a7cf[_0x24c410(0x26a)]=_0x24c410(0x4fc),_0x14a7cf[_0x24c410(0x3e9)]=_0x24c410(0x231),_0x14a7cf))(U||{});class J{constructor(_0x1d78f4,_0x388641,_0xe6834f,_0x3c1299,_0x607093,_0x2ac35b,_0x5f2646,_0x22132c,_0x3ab0b0){const _0x36cac2=_0x24c410;u(this,_0x36cac2(0x575),null),u(this,_0x36cac2(0x5ea),[]),(this[_0x36cac2(0x4a2)]=_0x1d78f4,this[_0x36cac2(0x28b)]=_0x388641,this[_0x36cac2(0x5dc)]=_0x607093,this[_0x36cac2(0x2ed)]=_0x2ac35b,this[_0x36cac2(0x4b4)]=_0x5f2646,this['_revisionService']=_0x22132c,this['_localCacheService']=_0x3ab0b0,this[_0x36cac2(0x575)]=_0xe6834f,this['_pendingMutations']=_0x3c1299);}[_0x24c410(0x583)](_0x3ee99b){const _0x197ede=_0x24c410,_0x26d93b=this['_revisionService']['getCurrentRevOfUnit'](this[_0x197ede(0x4a2)]);return _0x3ee99b[_0x197ede(0x492)]>_0x26d93b+0x1?(this[_0x197ede(0x5dc)]['onMissingChangesets']({'from':_0x26d93b,'to':_0x3ee99b[_0x197ede(0x492)]-0x1}),!0x0):!0x1;}[_0x24c410(0x234)](_0x2e118f){const _0x27a61e=_0x24c410;this[_0x27a61e(0x4b4)][_0x27a61e(0x330)](this[_0x27a61e(0x4a2)],_0x2e118f);}['_transformSelections'](_0x5e3817){const _0x245bf1=_0x24c410;var _0x562a53,_0x2f3d60;(_0x2f3d60=(_0x562a53=this[_0x245bf1(0x5dc)])['onTransformSelections'])==null||_0x2f3d60[_0x245bf1(0x5a2)](_0x562a53,_0x5e3817);}[_0x24c410(0x477)](_0x484e06){const _0x1d94f0=_0x24c410;var _0x228dcb,_0x4a6ba;return(_0x4a6ba=(_0x228dcb=this[_0x1d94f0(0x5dc)])['onTransformIME'])==null?void 0x0:_0x4a6ba['call'](_0x228dcb,_0x484e06);}['_transformRemoteChangesetByIMECache'](_0x3c5cc9){const _0x122cfc=_0x24c410;var _0x20c3d3,_0x4e397c,_0x22913a;return(_0x22913a=(_0x4e397c=(_0x20c3d3=this[_0x122cfc(0x5dc)])[_0x122cfc(0x31b)])==null?void 0x0:_0x4e397c['call'](_0x20c3d3,_0x3c5cc9))!=null?_0x22913a:_0x3c5cc9;}['_syncEditingCollabCursor'](_0x54fa10){const _0x139a18=_0x24c410;var _0x1b8af9,_0x181f09;if(this[_0x139a18(0x28b)]===$[_0x139a18(0x489)]){const {unitID:_0x52b0fe,mutations:_0xf80dda,memberID:_0x4d0eed}=_0x54fa10,_0x156f8f=_0xf80dda[0x0]['params'][_0x139a18(0x566)];Array[_0x139a18(0x2fa)](_0x156f8f)&&_0x156f8f[_0x139a18(0x25b)]>0x0&&((_0x181f09=(_0x1b8af9=this['_handler'])[_0x139a18(0x255)])==null||_0x181f09[_0x139a18(0x5a2)](_0x1b8af9,{'unitID':_0x52b0fe,'memberID':_0x4d0eed,'textRanges':_0x156f8f}));}}['_updateLocalCache'](){const _0x24a250=_0x24c410;this[_0x24a250(0x2b3)]['updateOfflineData'](this[_0x24a250(0x4a2)],this['type'],this[_0x24a250(0x575)],this[_0x24a250(0x5ea)]);}[_0x24c410(0x371)](){const _0x2b679d=_0x24c410;return this[_0x2b679d(0x2d3)][_0x2b679d(0x23d)](this[_0x2b679d(0x4a2)]);}[_0x24c410(0x296)](){const _0xe706ed=_0x24c410;this[_0xe706ed(0x2d3)][_0xe706ed(0x1d7)](this[_0xe706ed(0x4a2)]);}[_0x24c410(0x37c)](_0x5008a6){const _0x1efcfd=_0x24c410;var _0x12482c;const _0x5ab176=this[_0x1efcfd(0x370)](_0x5008a6),_0x19046e=a['sequenceExecute'](_0x5ab176['mutations'],this[_0x1efcfd(0x2ed)],{'fromCollab':!0x0});if(!_0x19046e[_0x1efcfd(0x3fc)])throw _0x19046e[_0x1efcfd(0x553)]instanceof Error?_0x19046e[_0x1efcfd(0x553)]:new Error((_0x12482c=_0x19046e[_0x1efcfd(0x553)])!=null?_0x12482c:_0x1efcfd(0x572));this[_0x1efcfd(0x477)](_0x5ab176),this[_0x1efcfd(0x234)](_0x5008a6),this[_0x1efcfd(0x23f)](_0x5ab176),this[_0x1efcfd(0x1ee)](_0x5ab176),this['_incrementRevisionNumber']();}}function _0x1183(){const _0x96a64d=['isTransformMutationsWithChangesetFailure','close$','_sendHeartbeatTimer','editingUnit','_checkMissing','subscribeEvent','1590918KvGVtI','fillStyle','_timeoutTimer','_name','M0\x200H16V16H0z','lineTo','leaveEvent','m1Prime','@univerjs/design','_backgroundColor','_toggleOnline','getWorkbookSelections','_registerDependencies','deserializeRangeWithSheet','@univerjs/network','NodePositionConvertToRectRange','snapshotServerUrl','change$','currentColor','uploadFileServerUrl','actions','_context','ERROR_EXCEED_SIZE','_scheduleTimestamp','NO_OTHER_CLIENTS_EDITING','randomUUID','gold400','getUnitOnRev','put','call','delete','failed\x20to\x20apply\x20missed\x20changesets!','4qHVUdc','hovered','FileId','_getUploadFileURL','xlink:href','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collab-text-anchor-','function','_userManagerService','UNRECOGNIZED','getInterceptPoints','MUTATION','UNIVER_PROJECT','enableAuthServer','reconnect','univer-online-status-title','session.connection-failed','NOT_FOUND','getSheetId','selections','Tooltip','event$','baseRev','path','infoRsp','_telemetryService','getConfig','getTypeOfUnitDisposed$','disableLocalCache','getDocRanges','_getAPIPrefixPath','collabCursorState$','RegularPolygon','[FetchMissState]','_shapes','_cachedData','handleIRemoveRow','LOGIN_URL_KEY','Optional','/universer-api/file/{fileID}/sign-url','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','filter','_hovered','defineProperty','_snapshotService','hide','getMergeData','CommandType','unsubscribe','_collabSessionService','JOIN','/collaborator','top','HEARTBEAT_TIMEOUT_KEY','@univerjs/ui','_handler','session.room-full','session.collaboration-timeout','SheetCollaborationEntity','univer-online','session.will-retry','COMPRESS_MUTATION_SEND','TEXT_RANGE_LAYER_INDEX','code','OTHER_CLIENTS_EDITING','_change$','endRow','transformSelections','IUniverInstanceService','_pendingMutations','getSheetObject','_rescheduleHeartbeat','_disableEditing','@univerjs/sheets-ui','_changesetReqId','parseChangesetToProtocol','_updateSubUnitFromURLParams','fillRule','onCommentUpdate','snapshot','column','width','_compressMutationService','_collabCursorState$','getRelativeToViewportCoord','includes','_startCollaboration','UniverCollaborationClientPlugin','_startSheetCollabCursor','_removeClearOtherTimer','_color','commentUpdate$','getTypeOfUnitAdded$','incrementRevOfUnit','univerjs-icon\x20univerjs-icon-','RichTextEditingMutation','/universer-api/snapshot/','disposeUnit','collabStatus.fetchMiss','2909695RGJfnW','DocIMEInputManagerService','IConfigService','createElement','SheetCollabCursorShape','capture','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','userID','allowed','initWorkbookPermissionChange','UniverIcon','slice','cursorInfo$','_anchorDot','onlineStatus','_setupBeforeClosingHandler','stopTime','_syncEditingCollabCursor','getCurrentSelections','not_collab','_online','sessionStatus$','_textBubble','setConfig','deepClone','ImageSourceType','UNDEFINED','POST','_initCommandExecutedListener','APPLY_DUPLICATED','_isPermissionRej','WebSocketService','_getSendChangesetTimeout','url(#$1','InsertColCommandId','RemoveColCommandId','Module','forEach','/block/','sessionStatus','LocalCacheService','endColumn','SNAPSHOT_SERVER_URL_KEY','_onLocalMutation','collabStatus.offline','encode','_clearOtherTimers','onMissedChangesetFetched','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','session','switchMap','_initStatusComponent','_roomMembers$','LICENSE_EXPORT_SIZE_EXCEEDED','responseType','Error','_onCombEvent','ACTIVE_UNIT_EVENT_CHANNEL','[CollaborationSession]','_hideTimer','RECV','@univerjs-pro/collaboration','onPointerLeave$','_stopTelemetryCollaborationNewChangeset','batchAllowed','CollaborationStatus','sid','_uiPartsService','&source=','push','_permissionService','_ensureSubject','#FFF','ITelemetryService','createCollaborator','_createInitialStateImpl','from','_replaceFileID','registerHTTPInterceptor','EffectRefRangId','reduce','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose$','UniverCollaborationPlugin','offline','assign','LICENSE_MAX_UNITS_EXCEEDED','_transformUndoredo','MSG_FOR_ERROR','UNIVER_SHEET','pending','HTTPService','registerRenderModule','removeParam','setCurrentUser','_transformUndoRedoStack','getCurrentRevOfUnit','max','_transformSelections','YUUMI_URL_COL_OUT_OF_RANGE','[CollaborationEntity]','_localStorageService','HTTPRequest','IUIPartsService','onPointerEnter$','UNIVER_UNKNOWN','random','createInstance','_queuedRemoteChangesets','LIVESHARE_FETCH_OPERATIONS','round','setWaitCount','map','listCollaborators','collaboration-client.config','FAIL','useDependency','_beforeCloseService','unitId','_undoStacks','onSyncEditingCollabCursor','awaiting','[OfflineState]:\x20received\x20changeset.','[DataLoaderController]','memberID','_telemetryInfo','length','propertyIsEnumerable','_removeCollabCursors','_listenToOnlineEvent','create','_clearTimeoutTimer','@univerjs/telemetry','_cursors','PENDING','post','Vector2','_themeService','_handleEvent','_status$','_redoStacks','CONFLICT','getVpScrollXYInfoByPosToVp','getSheetBlock','collabSubmitChangesetUrl','AWAITING_WITH_PENDING','transformMutationsWithChangeset','_onCursorDelete','/unit/','collaborators','currentTheme$','collab-rect-range-','_startTelemetryCollaborationNewChangeset','refreshPermission','awaiting_with_pending','SessionStatus','file','UPDATE_CURSOR','selection','_onMessage','SEND_CHANGESET_TIMEOUT','none','IPermissionService','@univerjs/rpc','appendMutation','LOCAL_CACHE_INTERVAL_KEY','_fetchMissChangesets','RxDisposable','_drawRectRange','IUndoRedoService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_snapshotServerService','synced','_state','type','extend','closeSession','unknown','UNIVER_SLIDE','InsertSheetMutation','startsWith','LIVESHARE_OPERATION','0\x200\x2016\x2016','_docTransformIMECacheService','concat','_incrementRevisionNumber','CHANGESET_ACK','_exhaustRemoteChangesetQueue','connection\x20error','UNAUTHENTICATED','Subject','INTERNAL_ERROR','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_remoteChangesetQueue','_commentService','DeleteRangeMoveLeftCommandId','CollaborationSessionService','handleInsertCol','ThemeService','_docSyncEditingCollabCursorService','syncEditingCollabCursor','registerOnClose','objectID','saveOfflineData','save','resize','toDisposable','_scheduleCollaborationTimeoutTimer','_saveCache','ONLINE','_updateCollabCursors','_updateURLWithCurrentState','takeUntil','\x20-\x20','_localCacheService','1961032bsdJmG','_imageSourceCache','send','requireSession','roomMembers','flatMap','YUUMI_SUBSCRIPTION_NOT_FOUND','onload','liveShareNewHost','registerBeforeClose','_setupSubUnitSync','status$','[SyncedState]:\x20received\x20rejection.','svg','awaitingChangeset','transformMutation','getSkeleton','transformChangesets','_httpService','_getSignURL','updateOfflineData','APPLY_REJECT','resourceIDs','transformRemoteChangeset','telemetry\x20info\x20is\x20not\x20initialized','m2Prime','color','combineLatest','replace','loginUrlKey','mapTo','_revisionService','Univer','_getScale','executeCommand','saveSnapshot','getResourcesRequest','b64DecodeUnicode','Rectangle','XHRHTTPImplementation','loadSheet','_docSkeletonManagerService','0\x200\x2017\x2016','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','activeSheet$','getCurrentUnitForType','getTime','ENSURE_SNAPSHOT_EXECUTION','close','_substituteUndoStack','pauseCollaboration','colorChannel1','onSendChangeset','Shape','NOT_COLLAB','SetDocZoomRatioOperation','ITransformService','_commandService','createIdentifier','univer-offline','Disposable','_initUnitPermissionChange','LEAVE','collab-client.tooltip.reconnect','SnapshotService','transformIMECache','range','onPointerMove$','c1Prime','COLLAB_WEB_SOCKET_URL_KEY','isArray','take','JSONX','listRoles','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onlineStatusIcon','collaboratorID','docStateChange$','HttpExport','HELLO','_loadDoc','_getRedoStack','_syncEditingCollabCursorService','_clearRedo','getCoordByCell','_getAPIPrefix','_id','key','getAttachHeader','...','pluginName','sheets','IAuthzIoService','Undefined','_showConflictNotification','Workbook','useCallback','verdancy600','SNAPSHOT_HAS_BEEN_REMOVED','_transformService','@univerjs/drawing','_localeService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onTransformRemoteChangesetByIMECache','replaceTextRanges','isTransformMutationsWithChangesetSuccess','RemoveRowCommandId','conflict.title','ALREADY_EXISTS','_initRequestHeader','_renderManagerService','_onRemoteACK','collab-text-range-','_event$','_hover','@univerjs/docs-ui','\x0aCurrent:\x20','_univerInstanceService','roomMembers$','permission.title','online','EmptyMutation','/object/','getViewport','transformUndoRedo','COLLAB_SUBMIT_CHANGESET_URL','getCollabCursors$','Error\x20on\x20receiving\x20event','url(#off-line-single_clip0_910_343)','UnitEmbedded','red300','split','tag','/resources','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','&to=','_waitCount','_unlockTransition','then','onStateChange','BuiltInUIPart','open$','asObservable','collabStatus.syncing','throttleTime','body','debug','_heartbeatTimer','Inject','CompressMutationService','stringify','handleInsertRangeMoveDown','_registerRenderDependencies','OffLineSingle','toRgbString','isInternalEditorID','_initModules','_sendingTimer','clear','@univerjs/engine-render','focused$','name','use','HttpImport','subscribe','getCollabEntity$','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_sessions','purple300','CollaborationStatusDisplay','saveSheetBlock','TOO_MANY_REQUESTS','LICENSE_DISTRO_REJECTED','toLowerCase','_colorAssignService','displayName','MessageType','\x20in\x20_schedule.','_onOffline','USERS_ENTER','?size=','_drawAnchor','_clearLocalCache','SNAPSHOT_URL_KEY','Unknown\x20user','_collabCursorController','localeService','_transformRemoteChangesetByIMECache','_getCurrentRevision','arc','[PendingState]:\x20received\x20acknowledgement.','_cursorInfo$','attrs','rxjs/operators','getCurrent','onCommandExecuted','assignAColorForMemberID','sheetID','_anchor','_executeRemoteChangeset','isTransformMutationFailure','AuthzIoHttpService','_collaborationTimeoutTimer','ws://127.0.0.1:8000/universer-api/comb/connect','_retryCount','setItem','downloadEndpointUrl','handleIRemoveCol','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collabWebSocketUrl','setTimeout','LocaleService','copyFileMeta','defs','clearInterval','loadOfflineData','children','_shouldReportTelemetry','_getSaveTimeout','setInterval','href','_loadSheet','_init','HEARTBEAT_TIMEOUT','rxjs','authzUrl','fetchThroughInterceptors','/universer-api/authz','_applyRemoteChangeset','_getSheetObject','[CollaborationSessionService]','encodeURIComponent','BehaviorSubject','_onUserLeave','getFocusedUnit','debounceTime','/-/object/-/batch_allowed','CHANGESET_REJ','_entityInit$','onRemoteRej','_decreaseWaiting','_initResize','now','RETRY_CONNECTING_MAX_COUNT','sendChangesetTimeout','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_session','concatMap','editing\x20status\x20changed\x20to','_members','whenReady','putCollaborators','eventID','_type','collaboration-session-retry','row','size','_onConnectionFailed','save\x20fail\x20reason\x20is\x20','url','roomInfos','COLLAB_SUBMIT_CHANGESET_URL_KEY','triggerDblclick','show','/-/object/list','_transformStack','min','_socketReady','_getAnchorBounding','_clearScheduledTask','black','CONNECTOR_DATA_TOO_LARGE','resend','collaboration.single-unit.warning','_messageService','/rev/','APPLY_NON_SEQUENTIAL_REVISION','IRenderManagerService','[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.','_selfUnitIDs','bottom','CommentService','_createInitialState','add','action','_saveTaskMap','getCellPositionByOffset','_commentUpdate$','_drawTextRange','IRemoteInstanceService','has','HEARTBEAT','_lockTransition','updatePermissionObjEvent','SHOULD_CLOSE_CONN','trim','rgba(255,\x20255,\x20255,\x200.01)','_getUndoStack','CollaborationController','override','compose','DocCollaborationEntity','getOwnPropertyDescriptor','objectType','socket\x20open.','onlineStatusTitle','merge','_docStateChangeManagerService','OFFLINE','list','SnapshotServerOverHTTPService','reqId','_changesetSessionId','permission.content','INVALID_ARGUMENT','rng','getLatestCsReqIdBySid','WebURLService','find','[PendingState]:\x20received\x20rejection.','PERMISSION_REJ','off-line-single_clip0_910_343','_roomMembers','SheetPermissionInitController','routeKey','onRemoteAck','_unitID','result','VIEWPORT_KEY','getOffsetConfig','confirm','debounce','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','currentSkeleton$','indexOf','pipe','_docTransformSelectionsService','image/png','COMPLETION_FINISHED','pushState','ranges','addEventListener','storage','get','duration','x-univer-host','ILogService','delay','/universer-api/stream/file/upload','getColor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','univer-online-status','auth.needGotoLoginAlert','_onRemoteRejected','_scheduleSaving','_submitChangeset','[OfflineState]:\x20received\x20rejection.','ERROR_IMAGE','setAlpha','getActiveSheet','AUTHZ_URL_KEY','removeMember','WorkbookEditablePermission','fromEventSubject','requestParams','INotificationService','getUnit','bind','forwardRef','append','RETRY_CONNECTING_MAX_COUNT_KEY','headers','_sendHeartbeat','COMPRESS_MUTATION_APPLY','900172ehRcIK','_socketService','rev','_acknowledgedAwaitingChangeset','collabStatus.conflict','collaboration_new_changeset','_cursorShapes','_transformPreviousActiveRange','_entities','IDLE','_ws','mergeOverrideWithDependencies','setUndoRedoMutationParamsCache','objectActions','on-line-single_clip0_910_349','_state$','InsertRangeMoveRightCommandId','_waitForHeartbeatResponse','replaceState','_colorIndex','UPDATE_PERMISSION_OBJ','_range','shouldCloseConn','error$','urlChange$','getUnitId','JOINING','startColumn','LICENSE_IMPORT_SIZE_EXCEEDED','[CollaborationSessionService]:\x20socket\x20error','_transitionLocked','connectInjector','contains','_disabled','getSheetBySheetId','runRefRangeMutations','ColorKit','_getMergeRange','YUUMI_UNABLE_LOAD_URL','labelPosition','_replayCachedMutations','_http','onTransformIME','OnLineSingle','_scene','COLORS','_throwTelemetryCollaborationNewChangeset','_draw','Tools','url(#on-line-single_clip0_910_349)','_removeRoom','_getDownloadEndpointURL','USERS_LEAVE','DocSkeletonManagerService','UniverInstanceType','_initMergeInterceptor','state','Plugin','[UniverCollaborationClientPlugin]','textEncoder','off-line-single','getParam','_urlService','APPLY_REVISION_CONFILICT','updatePermissionPoint','_tryReconnect','_collaborationController','Rect','DisposableCollection','_sheetSkeletonManagerService','_scheduleClearOtherTimer','addImageSourceCache','onTransformSelections','_collaborationSessionService','CHANGESET_REVISION_CONFILICT','clearTimeout','_transformIMECache','init','status','shareReplay','getDeserializedSheetBlock','_updateStatus','text','LOCAL_CACHE_INTERVAL','members','unit-cache-','_onRemoteChangeset','target','FromArray','unload','SUCCUSS','data','CollaborationSocketService','[SyncedState]:\x20received\x20acknowledgement.','UNIVER_DOC','SUBMIT_CHANGESET','_refRangeService','joinEvent','set','hasOwnProperty','DocStateChangeManagerService','_schedule','_initCloseConn','revision','/allowed','ICommandService','_injector','changesets','generateRandomId','SetWorksheetActivateCommand','@univerjs-pro/license','getValue','values','withCredentials','resolve','_updateLocalCache','72lXRPCs','number','submit\x20changeset\x20error!','unitID','complete','_memberService','hidden','mutations','RevisionService','getCollabEntity','next','_labelPosition','_HTTPService','SheetsSelectionsService','toStringTag','_render','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','isActive','disposeWithMe','IMessageService','_undoRedoService','title','SEND_CHANGESET_TIMEOUT_KEY','_send','toggleOnline','subUnitId','_lastPointer','_retryConnectingTimer','toggleOffline','objects','_onCursorUpdate','_handleJoinEvent','univer-pro.collaboration-client-socket-service','createSocket','LIVESHARE_REQUEST_HOST','CollaborationEntity','unit','serializeRangeWithSheet','signUrlServerUrl','getRenderById','_configService','UNKNOWN_CODE','_tryEnsureSocket','_socket$','_updateLocalCursor','3173100ZvAKyI','AWAITING','icon','_config','#fff','_unitOnClients','fill','UnitSnapshot','mapDocumentTypeToUniverType','exhaustSavingTask','[OfflineState]:\x20received\x20acknowledgement.','DataLoaderController','isPermissionRej','_getLoginPath','image/jpg','className','_assignedColors','addObject','DesktopCollaborationStatusDisplayController','SNAPSHOT_INVALID_SNAPSHOT','subunit','2616400OHwPmu','getRoom','_onUserJoin','saveChangeset','IURLService','LIVESHARE_NEW_HOST','newCsEvent','parseProtocolChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','LIVESHARE_TERMINATE','collaboration-client.offline-data-not-saved','react','isTransformChangesetsSuccess','translate(.97)','permissionRejEvent','measureText','ISnapshotServerService','/role','EXCHANGE_SIGN_URL_SERVER_URL_KEY','interceptor','Injector','updateMember','CollaborationEvent','socketService','doc.mutation.rich-text-editing','SYNCED','conflict','registerRefRange','unshift','fetchMissingChangesets','startRow','json','onlyLocal','PERMISSION_DENIED','BASE64','UUID','HEADER_MENU','getCurrentUser','IContextService','ImageUploadStatusType','PSEUDO_FETCH_MISSING_RESULT','\x0aAfter:\x20','deserializeToCombResponse','_onConflict','onMissingChangesets','INGEST','_toggleOffline','_getSnapshotAPIPrefix','cursorInfo','catch','_onRefRangeChange','IBeforeCloseService','registerComponent','_eventUnsubscribe','_logService','_cursor','_refreshCollabCursors','visibilitychange','_clearHeartbeatTimer','with','originalMeta','_updateState','isValidRectRange','_handleHover','ICollaborationSocketService','getMember','_sheetTransformSelectionsService','COMMENT_UPDATE','getUnitStatus$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','InsertRowCommandId','setShapeProps','popstate','UNKNOWN_CMD','_collaborationPaused','SetTextSelectionsOperation','distinctUntilChanged','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','@univerjs/core','image/gif','getAncestorScale','MergeInterceptorFactory','_getCtorByUniverType','NEW_CHANGESETS','_joinRoom','_createSocket','entries','message$','handleDeleteRangeMoveLeft','reject','prototype','handleInsertRangeMoveRight','transform','fillText','onRemoteChangeset','_listenToOfflineEvent','7029281vWBveU','backgroundColor','_singleActiveUnitService','getRangePointData','[CollaborationUndoRedoService]','FETCH_MISSING','fetchMiss','_onRecvEvent','dispose','_unitStatus','_instanceService','defIds','getImage','fromEvent','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','{fileID}','drawWith','error','origin','ImageIoService','_docSkeleton','_createHandler','_handleLeaveEvent','cmd','roles','_notificationService','_onFetchMissResult','handleInsertRow','_socketMessageSubscription','string','unitId\x20is\x20not\x20found','findNodePositionByCharIndex','searchParams','handleDeleteRangeMoveUp','location','history','textRanges','_socket','state$','_scheduleHeartbeat','SetSelectionsOperation','_onJoinRoomEvent','addObjects','_clearUndo','1em','_candidateSocket','workbook','_initEventListeners','[CollaborationState]:\x20apply\x20error!','Warning','visibilityState','_awaitingChangeset','useRef','getMemberID','toString','CollaborationSession','params','_startDocCollabCursor','idSuffix','_clearCollaborationTimeoutTimer','div'];_0x1183=function(){return _0x96a64d;};return _0x1183();}let ie=class extends J{constructor(_0x2897bd,_0x3c0d19,_0x4e2fc1,_0x334928,_0x394300,_0x2111f7,_0x1a34d5,_0x37dbc2,_0x26dcd0,_0x20bfe5){const _0x2e202d=_0x24c410;super(_0x2897bd,_0x3c0d19,null,[],_0x4e2fc1,_0x37dbc2,_0x1a34d5,_0x334928,_0x394300),u(this,'status',_0x2e202d(0x289)),(this[_0x2e202d(0x495)]=_0x2111f7,this[_0x2e202d(0x518)]=_0x26dcd0,this[_0x2e202d(0x317)]=_0x20bfe5);}['appendMutation'](_0x53e9b9){const _0x3c0890=_0x24c410,_0x1326d3=this[_0x3c0890(0x495)][_0x3c0890(0x248)](k,this[_0x3c0890(0x4a2)],this[_0x3c0890(0x28b)],[_0x53e9b9],this[_0x3c0890(0x5dc)]);return _0x1326d3[_0x3c0890(0x490)](),_0x1326d3[_0x3c0890(0x49e)](),_0x1326d3;}['onRemoteChangeset'](_0x46bd70){const _0x292208=_0x24c410;if(this[_0x292208(0x583)](_0x46bd70))return this[_0x292208(0x495)][_0x292208(0x248)](x,this[_0x292208(0x4a2)],this[_0x292208(0x28b)],null,[],null,[_0x46bd70],this[_0x292208(0x5dc)]);try{const _0x16d74a=this[_0x292208(0x317)][_0x292208(0x26f)](_0x46bd70,[Fs]);if(_[_0x292208(0x31d)](_0x16d74a)){const {c1Prime:_0x486779}=_0x16d74a;return this[_0x292208(0x37c)](_0x486779),this;}throw _0x16d74a[_0x292208(0x553)];}catch(_0x720c82){return this[_0x292208(0x518)]['error'](_0x720c82),this['_onConflict'](!0x1);}}[_0x24c410(0x50d)](_0x4bafa8){const _0x2edd5a=_0x24c410;return this[_0x2edd5a(0x495)]['createInstance'](F,this[_0x2edd5a(0x4a2)],this[_0x2edd5a(0x28b)],null,[],this[_0x2edd5a(0x5dc)],_0x4bafa8);}[_0x24c410(0x3fa)](){const _0x3ed85a=_0x24c410;throw new Error(_0x3ed85a(0x488));}[_0x24c410(0x3a4)](){const _0x38610c=_0x24c410;throw new Error(_0x38610c(0x2c0));}[_0x24c410(0x4bc)](){const _0x5528fc=_0x24c410;return this[_0x5528fc(0x495)]['createInstance'](G,this[_0x5528fc(0x4a2)],this[_0x5528fc(0x28b)],null,[],this[_0x5528fc(0x5dc)]);}['toggleOnline'](){return this;}[_0x24c410(0x3c5)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x488307=_0x24c410,_0x8b0b69=this['_revisionService'][_0x488307(0x23d)](this[_0x488307(0x4a2)]);return this[_0x488307(0x5dc)][_0x488307(0x50e)]({'from':_0x8b0b69,'to':0x0}),this[_0x488307(0x495)][_0x488307(0x248)](x,this[_0x488307(0x4a2)],this['type'],null,[],null,[],this[_0x488307(0x5dc)]);}};ie=z([m(0x3,a[_0x24c410(0x349)](_[_0x24c410(0x4a7)])),m(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),m(0x5,a['Inject'](a[_0x24c410(0x4f6)])),m(0x6,a[_0x24c410(0x286)]),m(0x7,a[_0x24c410(0x494)]),m(0x8,a[_0x24c410(0x40f)]),m(0x9,_[_0x24c410(0x2ec)])],ie);let k=class extends J{constructor(_0x5b8d4a,_0x5782da,_0x324ffe,_0x5e5bcf,_0xa5658a,_0x539403,_0x427250,_0xb97181,_0x56a032,_0x53502f,_0x43a2df,_0x389286,_0x2a9b5a,_0x104006){const _0x3d56ee=_0x24c410;super(_0x5b8d4a,_0x5782da,null,_0x324ffe,_0x5e5bcf,_0x53502f,_0x104006,_0x539403,_0x427250),u(this,_0x3d56ee(0x479),_0x3d56ee(0x237)),u(this,_0x3d56ee(0x59c),null),u(this,_0x3d56ee(0x352),null),(this[_0x3d56ee(0x495)]=_0xa5658a,this[_0x3d56ee(0x4a4)]=_0xb97181,this[_0x3d56ee(0x518)]=_0x56a032,this['_configService']=_0x43a2df,this[_0x3d56ee(0x317)]=_0x389286,this[_0x3d56ee(0x329)]=_0x2a9b5a);}[_0x24c410(0x281)](_0x57177a){const _0x187c1a=_0x24c410;return this[_0x187c1a(0x5ea)][_0x187c1a(0x222)](_0x57177a),this[_0x187c1a(0x49e)](),this;}[_0x24c410(0x540)](_0x535ac1){const _0x2c4947=_0x24c410;if(this[_0x2c4947(0x583)](_0x535ac1))return this[_0x2c4947(0x3c2)](),this[_0x2c4947(0x495)][_0x2c4947(0x248)](x,this[_0x2c4947(0x4a2)],this[_0x2c4947(0x28b)],null,this[_0x2c4947(0x5ea)],null,[_0x535ac1],this[_0x2c4947(0x5dc)]);try{const _0x2fe04f=this[_0x2c4947(0x317)][_0x2c4947(0x26f)](_0x535ac1,this[_0x2c4947(0x5ea)]);if(_[_0x2c4947(0x31d)](_0x2fe04f)){const {c1Prime:_0x3329cb,m2Prime:_0x25bcf9}=_0x2fe04f;this[_0x2c4947(0x37c)](_0x3329cb);const _0x5d7a53=this['_injector'][_0x2c4947(0x248)](k,this[_0x2c4947(0x4a2)],this['type'],_0x25bcf9,this[_0x2c4947(0x5dc)]);return this[_0x2c4947(0x3c2)](),_0x5d7a53[_0x2c4947(0x490)](this[_0x2c4947(0x59c)]?Math['max'](0x0,new Date()[_0x2c4947(0x2e2)]()-this[_0x2c4947(0x59c)]):this[_0x2c4947(0x1fd)]()),_0x5d7a53;}throw _0x2fe04f[_0x2c4947(0x553)];}catch(_0x295655){return this[_0x2c4947(0x518)][_0x2c4947(0x553)](_0x295655),this[_0x2c4947(0x50d)](!0x1);}}['onRemoteAck'](){const _0x5eccdf=_0x24c410;throw new Error(_0x5eccdf(0x373));}[_0x24c410(0x3a4)](){const _0xb47d51=_0x24c410;throw new Error(_0xb47d51(0x3f4));}[_0x24c410(0x4bc)](){const _0x2d30a6=_0x24c410;return this['_clearScheduledTask'](),this['_injector'][_0x2d30a6(0x248)](G,this[_0x2d30a6(0x4a2)],this[_0x2d30a6(0x28b)],null,this['_pendingMutations'],this[_0x2d30a6(0x5dc)]);}['toggleOnline'](){return this;}['_schedule'](_0x333a59){const _0x3b14aa=_0x24c410,_0x42a60c=_0x333a59!=null?_0x333a59:this['_getSendChangesetTimeout']();this[_0x3b14aa(0x59c)]=new Date()[_0x3b14aa(0x2e2)](),this[_0x3b14aa(0x352)]=window[_0x3b14aa(0x387)](()=>{const _0x1a2c27=_0x3b14aa;this[_0x1a2c27(0x3c2)]();let _0x1d95b3=null;switch(this[_0x1a2c27(0x28b)]){case $[_0x1a2c27(0x236)]:{_0x1d95b3=at(this['_pendingMutations'],this[_0x1a2c27(0x4a2)],this['_univerInstanceService'],this[_0x1a2c27(0x2d3)],this[_0x1a2c27(0x4a4)]);break;}case $[_0x1a2c27(0x489)]:{this['_pendingMutations']['every'](_0x232659=>_0x232659['id']===se[_0x1a2c27(0x1d9)]['id'])?_0x1d95b3=Ws(this[_0x1a2c27(0x5ea)],this['unitID'],this[_0x1a2c27(0x329)],this[_0x1a2c27(0x2d3)],this[_0x1a2c27(0x4a4)]):_0x1d95b3=at(this[_0x1a2c27(0x5ea)],this[_0x1a2c27(0x4a2)],this[_0x1a2c27(0x329)],this[_0x1a2c27(0x2d3)],this[_0x1a2c27(0x4a4)]);break;}default:throw new Error(_0x1a2c27(0x3aa)+this[_0x1a2c27(0x28b)]+_0x1a2c27(0x366));}const {changeset:_0x450aab,pendingMutations:_0x3dda4a}=_0x1d95b3;this[_0x1a2c27(0x5dc)]['onSendChangeset'](_0x450aab);const _0x2b5c3e=_0x3dda4a['length']?this[_0x1a2c27(0x495)][_0x1a2c27(0x248)](B,this[_0x1a2c27(0x4a2)],this[_0x1a2c27(0x28b)],_0x450aab,_0x3dda4a,this[_0x1a2c27(0x5dc)]):this[_0x1a2c27(0x495)][_0x1a2c27(0x248)](W,this[_0x1a2c27(0x4a2)],this[_0x1a2c27(0x28b)],_0x450aab,this['_handler']);_0x2b5c3e['_updateLocalCache'](),this['_handler'][_0x1a2c27(0x340)](this,_0x2b5c3e);},_0x42a60c);}[_0x24c410(0x1fd)](){const _0x1b0739=_0x24c410;var _0x476e09;const _0x1e360a=this[_0x1b0739(0x4c8)][_0x1b0739(0x5bf)](L);return(_0x476e09=_0x1e360a==null?void 0x0:_0x1e360a[_0x1b0739(0x3a9)])!=null?_0x476e09:Jt;}[_0x24c410(0x3c5)](){const _0x436667=_0x24c410;throw new Error(_0x436667(0x401));}['_clearScheduledTask'](){const _0x3f2ba4=_0x24c410;this[_0x3f2ba4(0x352)]!=null&&(clearTimeout(this[_0x3f2ba4(0x352)]),this[_0x3f2ba4(0x352)]=null);}[_0x24c410(0x50d)](_0x159362){const _0xfa27d=_0x24c410;return this[_0xfa27d(0x3c2)](),this['_injector'][_0xfa27d(0x248)](F,this[_0xfa27d(0x4a2)],this['type'],null,this[_0xfa27d(0x5ea)],this['_handler'],_0x159362);}};k=z([m(0x4,a['Inject'](a['Injector'])),m(0x5,a['Inject'](_[_0x24c410(0x4a7)])),m(0x6,a[_0x24c410(0x349)](exports['LocalCacheService'])),m(0x7,a[_0x24c410(0x349)](q)),m(0x8,a['ILogService']),m(0x9,a[_0x24c410(0x494)]),m(0xa,a[_0x24c410(0x1df)]),m(0xb,_[_0x24c410(0x2ec)]),m(0xc,a[_0x24c410(0x5e9)]),m(0xd,a[_0x24c410(0x286)])],k);let W=class extends J{constructor(_0x43cdc7,_0x15ff69,_0x5e9ea8,_0x1e9624,_0x38f30d,_0x1f0b06,_0x17227a,_0x22a9a5,_0x24f146,_0x10d874,_0x529895){const _0x2c4d39=_0x24c410;super(_0x43cdc7,_0x15ff69,_0x5e9ea8,[],_0x1e9624,_0x22a9a5,_0x529895,_0x1f0b06,_0x17227a),u(this,_0x2c4d39(0x479),_0x2c4d39(0x256)),(this[_0x2c4d39(0x495)]=_0x38f30d,this['_logService']=_0x24f146,this['_transformService']=_0x10d874);}['appendMutation'](_0x5d09c3){const _0x584d89=_0x24c410,_0x5497c1=this[_0x584d89(0x495)]['createInstance'](B,this['unitID'],this['type'],this[_0x584d89(0x575)],[_0x5d09c3],this[_0x584d89(0x5dc)]);return _0x5497c1['_updateLocalCache'](),_0x5497c1;}[_0x24c410(0x540)](_0x2d0fc4){const _0x57d032=_0x24c410;if(this[_0x57d032(0x583)](_0x2d0fc4))return this[_0x57d032(0x495)][_0x57d032(0x248)](x,this[_0x57d032(0x4a2)],this['type'],this['_awaitingChangeset'],[],null,[_0x2d0fc4],this[_0x57d032(0x5dc)]);try{const _0x5bd918=this[_0x57d032(0x317)][_0x57d032(0x2c5)]([_0x2d0fc4],[this[_0x57d032(0x575)]],!0x1);if(_[_0x57d032(0x4ee)](_0x5bd918)){const {c1Prime:_0x2fa96d,c2Prime:_0x62bb05}=_0x5bd918;this[_0x57d032(0x37c)](_0x2fa96d[0x0]),_0x62bb05[0x0][_0x57d032(0x5bb)]=this[_0x57d032(0x371)]();const _0x545a1b=this['_injector'][_0x57d032(0x248)](W,this[_0x57d032(0x4a2)],this['type'],_0x62bb05[0x0],this[_0x57d032(0x5dc)]);return _0x545a1b[_0x57d032(0x49e)](),_0x545a1b;}return this[_0x57d032(0x50d)](!0x1);}catch(_0x27a183){return this['_logService']['error'](_0x27a183),this[_0x57d032(0x50d)](!0x1);}}[_0x24c410(0x3fa)](_0x368977){const _0x515305=_0x24c410,_0x4b1c30=this['_revisionService']['getCurrentRevOfUnit'](this[_0x515305(0x4a2)]);if(_0x368977['revision']<_0x4b1c30-0x1)return this;if(this[_0x515305(0x583)](_0x368977))return this[_0x515305(0x495)][_0x515305(0x248)](x,this[_0x515305(0x4a2)],this[_0x515305(0x28b)],null,[],this[_0x515305(0x575)],[],this[_0x515305(0x5dc)]);this['_incrementRevisionNumber']();const _0x223c2f=this[_0x515305(0x495)][_0x515305(0x248)](ie,this[_0x515305(0x4a2)],this[_0x515305(0x28b)],this[_0x515305(0x5dc)]);return _0x223c2f[_0x515305(0x49e)](),_0x223c2f;}[_0x24c410(0x3a4)](_0x5c28e9){const _0x4e5123=_0x24c410;return this[_0x4e5123(0x50d)](!!(_0x5c28e9!=null&&_0x5c28e9[_0x4e5123(0x4d9)]));}[_0x24c410(0x4bc)](){const _0x318206=_0x24c410;return this[_0x318206(0x495)]['createInstance'](G,this['unitID'],this[_0x318206(0x28b)],this[_0x318206(0x575)],[],this[_0x318206(0x5dc)]);}['toggleOnline'](){return this;}['resend'](){const _0x59141f=_0x24c410;this[_0x59141f(0x5dc)][_0x59141f(0x2e8)](this['_awaitingChangeset']);}[_0x24c410(0x50d)](_0x569911){const _0x2a23fc=_0x24c410;return this['_injector'][_0x2a23fc(0x248)](F,this['unitID'],this[_0x2a23fc(0x28b)],this[_0x2a23fc(0x575)],[],this['_handler'],_0x569911);}};W=z([m(0x4,a[_0x24c410(0x349)](a['Injector'])),m(0x5,a['Inject'](_[_0x24c410(0x4a7)])),m(0x6,a[_0x24c410(0x349)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a[_0x24c410(0x40f)]),m(0x9,_[_0x24c410(0x2ec)]),m(0xa,a[_0x24c410(0x286)])],W);let B=class extends J{constructor(_0x2b7480,_0xe92c44,_0x210079,_0x582761,_0x54d4c4,_0x5a4b3d,_0x2764f1,_0x505ee5,_0x43c947,_0x38196a,_0x5abc8c,_0x91f870){const _0x40b7cd=_0x24c410;super(_0x2b7480,_0xe92c44,_0x210079,_0x582761,_0x54d4c4,_0x43c947,_0x91f870,_0x2764f1,_0x505ee5),u(this,_0x40b7cd(0x479),_0x40b7cd(0x277)),(this[_0x40b7cd(0x495)]=_0x5a4b3d,this[_0x40b7cd(0x518)]=_0x38196a,this[_0x40b7cd(0x317)]=_0x5abc8c);}['appendMutation'](_0x5ad789){const _0x4b86ac=_0x24c410;return this[_0x4b86ac(0x5ea)][_0x4b86ac(0x222)](_0x5ad789),this;}[_0x24c410(0x540)](_0x39f412){const _0x596c01=_0x24c410;if(this[_0x596c01(0x583)](_0x39f412))return this[_0x596c01(0x495)][_0x596c01(0x248)](x,this['unitID'],this[_0x596c01(0x28b)],this['_awaitingChangeset'],this[_0x596c01(0x5ea)],null,[_0x39f412],this[_0x596c01(0x5dc)]);try{const _0x5edc23=this['_transformService'][_0x596c01(0x2c5)]([_0x39f412],[this[_0x596c01(0x575)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x5edc23)){const {c1Prime:_0x5bddaa,c2Prime:_0x3716a0}=_0x5edc23,_0x5ccd00=this[_0x596c01(0x317)][_0x596c01(0x26f)](_0x5bddaa[0x0],this['_pendingMutations']);if(_[_0x596c01(0x31d)](_0x5ccd00)){const {c1Prime:_0x242dfd,m2Prime:_0x52e049}=_0x5ccd00;return this[_0x596c01(0x37c)](_0x242dfd),_0x3716a0[0x0][_0x596c01(0x5bb)]=this[_0x596c01(0x371)](),this[_0x596c01(0x495)][_0x596c01(0x248)](B,this['unitID'],this[_0x596c01(0x28b)],_0x3716a0[0x0],_0x52e049,this[_0x596c01(0x5dc)]);}throw _0x5ccd00[_0x596c01(0x553)];}throw _0x5edc23['error'];}catch(_0x314421){return this[_0x596c01(0x518)][_0x596c01(0x553)](_0x314421),this[_0x596c01(0x50d)](!0x1);}}[_0x24c410(0x3fa)](_0x821c92){const _0x15a3c3=_0x24c410;if(this['_checkMissing'](_0x821c92))return this[_0x15a3c3(0x495)][_0x15a3c3(0x248)](x,this[_0x15a3c3(0x4a2)],this[_0x15a3c3(0x28b)],null,this[_0x15a3c3(0x5ea)],this['_awaitingChangeset'],[],this[_0x15a3c3(0x5dc)]);this['_incrementRevisionNumber']();const _0xa6ce1=this[_0x15a3c3(0x495)]['createInstance'](k,this['unitID'],this[_0x15a3c3(0x28b)],this['_pendingMutations'],this[_0x15a3c3(0x5dc)]);return _0xa6ce1[_0x15a3c3(0x490)](),_0xa6ce1[_0x15a3c3(0x49e)](),_0xa6ce1;}[_0x24c410(0x3a4)](_0x2c8779){const _0x1e97f7=_0x24c410;return this[_0x1e97f7(0x50d)](!!(_0x2c8779!=null&&_0x2c8779['isPermissionRej']));}['toggleOffline'](){const _0x5c02ac=_0x24c410;return this['_injector'][_0x5c02ac(0x248)](G,this[_0x5c02ac(0x4a2)],this[_0x5c02ac(0x28b)],this[_0x5c02ac(0x575)],this[_0x5c02ac(0x5ea)],this[_0x5c02ac(0x5dc)]);}[_0x24c410(0x4b8)](){return this;}[_0x24c410(0x3c5)](){const _0x2c2f3c=_0x24c410;this[_0x2c2f3c(0x5dc)]['onSendChangeset'](this[_0x2c2f3c(0x575)]);}['_onConflict'](_0x3262ee){const _0x4c9d8f=_0x24c410;return this[_0x4c9d8f(0x495)][_0x4c9d8f(0x248)](F,this[_0x4c9d8f(0x4a2)],this[_0x4c9d8f(0x28b)],null,this[_0x4c9d8f(0x5ea)],this['_handler'],_0x3262ee);}};B=z([m(0x5,a['Inject'](a[_0x24c410(0x4f6)])),m(0x6,a['Inject'](_[_0x24c410(0x4a7)])),m(0x7,a['Inject'](exports[_0x24c410(0x205)])),m(0x8,a[_0x24c410(0x494)]),m(0x9,a[_0x24c410(0x40f)]),m(0xa,_['ITransformService']),m(0xb,a[_0x24c410(0x286)])],B);let F=class extends J{constructor(_0x10e112,_0x3c9f53,_0x5c1b66,_0x392a14,_0x22ec13,_0x3cedda=!0x1,_0x5e1f0d,_0x39d6e0,_0x59b1e5,_0x3b82ba,_0x33c24d,_0x1694e7,_0x46c287){const _0x4c6eea=_0x24c410;super(_0x10e112,_0x3c9f53,_0x5c1b66,_0x392a14,_0x22ec13,_0x39d6e0,_0x59b1e5,_0x33c24d,_0x3b82ba),u(this,_0x4c6eea(0x479),_0x4c6eea(0x4fc)),(this['_isPermissionRej']=_0x3cedda,this[_0x4c6eea(0x223)]=_0x5e1f0d,this[_0x4c6eea(0x319)]=_0x1694e7,this['_notificationService']=_0x46c287,this[_0x4c6eea(0x312)](),this[_0x4c6eea(0x36b)](),this[_0x4c6eea(0x5ed)]());}[_0x24c410(0x281)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x24c410(0x3a4)](){return this;}[_0x24c410(0x4bc)](){return this;}['toggleOnline'](){return this;}[_0x24c410(0x3c5)](){const _0x175f08=_0x24c410;throw new Error(_0x175f08(0x22e));}[_0x24c410(0x36b)](){const _0x1dff4e=_0x24c410;this[_0x1dff4e(0x2b3)]['updateOfflineData'](this['unitID'],this['type'],null,[]);}['_showConflictNotification'](){const _0x12f3ea=_0x24c410;this[_0x12f3ea(0x1fb)]?this[_0x12f3ea(0x55b)][_0x12f3ea(0x3bc)]({'title':this['_localeService']['t'](_0x12f3ea(0x32b)),'content':this[_0x12f3ea(0x319)]['t'](_0x12f3ea(0x3ee)),'type':_0x12f3ea(0x553),'duration':0x0}):this[_0x12f3ea(0x55b)][_0x12f3ea(0x3bc)]({'title':this['_localeService']['t'](_0x12f3ea(0x31f)),'content':this[_0x12f3ea(0x319)]['t']('conflict.content'),'type':_0x12f3ea(0x553),'duration':0x0});}[_0x24c410(0x5ed)](){const _0x5303e6=_0x24c410;this[_0x5303e6(0x223)]['updatePermissionPoint'](new C[(_0x5303e6(0x41f))](this[_0x5303e6(0x4a2)])['id'],!0x1);}};F=z([m(0x6,a[_0x24c410(0x349)](a[_0x24c410(0x27f)])),m(0x7,a['ICommandService']),m(0x8,a['IUndoRedoService']),m(0x9,a['Inject'](exports[_0x24c410(0x205)])),m(0xa,a[_0x24c410(0x349)](_[_0x24c410(0x4a7)])),m(0xb,a[_0x24c410(0x349)](a[_0x24c410(0x388)])),m(0xc,A[_0x24c410(0x422)])],F);let G=class extends J{constructor(_0x4d3d64,_0x108951,_0x117332,_0x26f2c1,_0x30bb00,_0x1f6133,_0x36bbb8,_0x387bef,_0x3f701a,_0x44e436){const _0x2a6825=_0x24c410;super(_0x4d3d64,_0x108951,_0x117332,_0x26f2c1,_0x30bb00,_0x3f701a,_0x44e436,_0x36bbb8,_0x387bef),u(this,_0x2a6825(0x479),_0x2a6825(0x231)),this[_0x2a6825(0x495)]=_0x1f6133;}[_0x24c410(0x281)](_0x86858a){const _0x449f5d=_0x24c410;return this[_0x449f5d(0x5ea)][_0x449f5d(0x222)](_0x86858a),this[_0x449f5d(0x49e)](),this;}[_0x24c410(0x540)](_0x27ec85){const _0x4d6972=_0x24c410;throw new Error(_0x4d6972(0x257));}[_0x24c410(0x3fa)](){const _0x577ee0=_0x24c410;throw new Error(_0x577ee0(0x4d7));}['onRemoteRej'](){const _0x1bc6f9=_0x24c410;throw new Error(_0x1bc6f9(0x419));}[_0x24c410(0x4bc)](){return this;}[_0x24c410(0x4b8)](){const _0x30e0f3=_0x24c410,{_injector:_0x16053b,_pendingMutations:_0x415d70,_awaitingChangeset:_0x30abdf,unitID:_0xea3d79,_handler:_0x3ebd05,type:_0x1e0b40}=this,_0x40f639=Ut(_0x16053b,_0xea3d79,_0x1e0b40,_0x30abdf,_0x415d70,_0x3ebd05);return _0x40f639 instanceof k?_0x40f639[_0x30e0f3(0x490)]():(_0x40f639 instanceof B||_0x40f639 instanceof W)&&_0x40f639['resend'](),_0x40f639;}[_0x24c410(0x3c5)](){const _0x27bab7=_0x24c410;throw new Error(_0x27bab7(0x2fe));}};G=z([m(0x5,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),m(0x6,a[_0x24c410(0x349)](_['RevisionService'])),m(0x7,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),m(0x8,a[_0x24c410(0x494)]),m(0x9,a[_0x24c410(0x286)])],G);let x=class extends J{constructor(_0x4f5e3d,_0x4e3db0,_0xaf9652,_0x92ee73,_0x259ea3,_0xae6abd,_0x41ba04,_0x55df91,_0x7501bf,_0x3a0f60,_0x16628d,_0xaa3ead,_0xa49aec,_0x7614e){const _0xcc9d09=_0x24c410;super(_0x4f5e3d,_0x4e3db0,_0xaf9652,_0x92ee73,_0x41ba04,_0xaa3ead,_0xa49aec,_0x7501bf,_0x3a0f60),u(this,_0xcc9d09(0x479),'fetch_missing'),(this[_0xcc9d09(0x42e)]=_0x259ea3,this[_0xcc9d09(0x249)]=_0xae6abd,this[_0xcc9d09(0x495)]=_0x55df91,this[_0xcc9d09(0x518)]=_0x16628d,this['_transformService']=_0x7614e);}[_0x24c410(0x20c)](_0x5a85d0){const _0x56d59a=_0x24c410;try{const _0x4ab519=[..._0x5a85d0,...this['_queuedRemoteChangesets']],_0x4612d9=[this[_0x56d59a(0x575)]||this[_0x56d59a(0x42e)]][_0x56d59a(0x5ce)](_0x3c4fd5=>!!_0x3c4fd5);let _0x7af0fa,_0x3a8d3d;if(_0x4612d9[_0x56d59a(0x25b)]){const _0x2ad0e2=this[_0x56d59a(0x317)][_0x56d59a(0x2c5)](_0x4ab519,_0x4612d9,!0x1);if(!_[_0x56d59a(0x4ee)](_0x2ad0e2))throw _0x2ad0e2[_0x56d59a(0x553)];_0x7af0fa=_0x2ad0e2[_0x56d59a(0x2f8)],_0x3a8d3d=_0x2ad0e2['c2Prime'];}else _0x7af0fa=_0x4ab519,_0x3a8d3d=[];let _0x3b92ac=this['_pendingMutations'];_0x7af0fa[_0x56d59a(0x202)](_0x432221=>{const _0x546678=_0x56d59a;let _0x470425;if(_0x3b92ac[_0x546678(0x25b)]){const _0x577bf9=this[_0x546678(0x317)][_0x546678(0x26f)](_0x432221,_0x3b92ac);if(!_[_0x546678(0x31d)](_0x577bf9))throw _0x577bf9[_0x546678(0x553)];_0x470425=_0x577bf9[_0x546678(0x2f8)],_0x3b92ac=_0x577bf9['m2Prime'];}else _0x470425=_0x432221;this[_0x546678(0x37c)](_0x470425);}),this[_0x56d59a(0x42e)]&&this[_0x56d59a(0x296)](),this[_0x56d59a(0x575)]&&_0x3a8d3d[_0x56d59a(0x25b)]&&(_0x3a8d3d[0x0][_0x56d59a(0x5bb)]=this[_0x56d59a(0x371)]());let _0x18fd1b;if(this[_0x56d59a(0x575)]&&_0x3b92ac[_0x56d59a(0x25b)]!==0x0)_0x18fd1b=this[_0x56d59a(0x495)][_0x56d59a(0x248)](B,this['unitID'],this['type'],_0x3a8d3d[0x0],_0x3b92ac,this[_0x56d59a(0x5dc)]);else{if(this['_awaitingChangeset']&&_0x3b92ac[_0x56d59a(0x25b)]===0x0)_0x3a8d3d[0x0][_0x56d59a(0x5bb)]=this['_getCurrentRevision'](),_0x18fd1b=this['_injector'][_0x56d59a(0x248)](W,this[_0x56d59a(0x4a2)],this['type'],_0x3a8d3d[0x0],this[_0x56d59a(0x5dc)]);else{if(_0x3b92ac[_0x56d59a(0x25b)]!==0x0){const _0x4334dc=this['_injector']['createInstance'](k,this[_0x56d59a(0x4a2)],this[_0x56d59a(0x28b)],_0x3b92ac,this[_0x56d59a(0x5dc)]);_0x4334dc['_schedule'](),_0x18fd1b=_0x4334dc;}else _0x18fd1b=this[_0x56d59a(0x495)][_0x56d59a(0x248)](ie,this['unitID'],this[_0x56d59a(0x28b)],this[_0x56d59a(0x5dc)]);}}return _0x18fd1b['_updateLocalCache'](),_0x18fd1b;}catch(_0x17addc){return this[_0x56d59a(0x518)][_0x56d59a(0x553)](_0x56d59a(0x5c6),_0x56d59a(0x5a4),_0x17addc),this[_0x56d59a(0x495)]['createInstance'](F,this[_0x56d59a(0x4a2)],this[_0x56d59a(0x28b)],this[_0x56d59a(0x575)],this[_0x56d59a(0x5ea)],this['_handler'],!0x1);}}[_0x24c410(0x3c5)](){const _0x53db81=_0x24c410;throw new Error(_0x53db81(0x4af));}[_0x24c410(0x281)](_0x130c31){const _0x4a743a=_0x24c410;return this[_0x4a743a(0x5ea)][_0x4a743a(0x222)](_0x130c31),this;}[_0x24c410(0x540)](_0x1c73aa){const _0x295b8e=_0x24c410;return this[_0x295b8e(0x249)][_0x295b8e(0x222)](_0x1c73aa),this;}['onRemoteAck'](_0x8244c6){const _0x12464e=_0x24c410;if(this[_0x12464e(0x575)])return this[_0x12464e(0x42e)]=this['_awaitingChangeset'],this[_0x12464e(0x575)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x24c410(0x3a4)](_0x20aae4){const _0x3399b1=_0x24c410;return this[_0x3399b1(0x50d)](!!(_0x20aae4!=null&&_0x20aae4[_0x3399b1(0x4d9)]));}[_0x24c410(0x4bc)](){const _0x332ee5=_0x24c410;return this['_injector']['createInstance'](G,this[_0x332ee5(0x4a2)],this[_0x332ee5(0x28b)],this[_0x332ee5(0x575)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x24c410(0x50d)](_0x37282a){const _0x211751=_0x24c410;return this[_0x211751(0x495)][_0x211751(0x248)](F,this[_0x211751(0x4a2)],this[_0x211751(0x28b)],this[_0x211751(0x575)],this['_pendingMutations'],this[_0x211751(0x5dc)],_0x37282a);}};x=z([m(0x7,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),m(0x8,a[_0x24c410(0x349)](_['RevisionService'])),m(0x9,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),m(0xa,a[_0x24c410(0x40f)]),m(0xb,a[_0x24c410(0x494)]),m(0xc,a[_0x24c410(0x286)]),m(0xd,_[_0x24c410(0x2ec)])],x);function Ut(_0x3cef90,_0x4755c6,_0x206106,_0x3ba222,_0x3a94dc,_0x2589ff){const _0x1ce567=_0x24c410;return _0x3ba222&&_0x3a94dc[_0x1ce567(0x25b)]?_0x3cef90['createInstance'](B,_0x4755c6,_0x206106,_0x3ba222,_0x3a94dc,_0x2589ff):_0x3ba222?_0x3cef90['createInstance'](W,_0x4755c6,_0x206106,_0x3ba222,_0x2589ff):_0x3a94dc['length']?_0x3cef90[_0x1ce567(0x248)](k,_0x4755c6,_0x206106,_0x3a94dc,_0x2589ff):_0x3cef90[_0x1ce567(0x248)](ie,_0x4755c6,_0x206106,_0x2589ff);}var Ks=Object[_0x24c410(0x5d0)],Xs=Object[_0x24c410(0x3e3)],ze=(_0x630493,_0x5642da,_0xe27def,_0x53e751)=>{for(var _0x5f4b72=_0x53e751>0x1?void 0x0:_0x53e751?Xs(_0x5642da,_0xe27def):_0x5642da,_0x5ac314=_0x630493['length']-0x1,_0x5e528c;_0x5ac314>=0x0;_0x5ac314--)(_0x5e528c=_0x630493[_0x5ac314])&&(_0x5f4b72=(_0x53e751?_0x5e528c(_0x5642da,_0xe27def,_0x5f4b72):_0x5e528c(_0x5f4b72))||_0x5f4b72);return _0x53e751&&_0x5f4b72&&Ks(_0x5642da,_0xe27def,_0x5f4b72),_0x5f4b72;},I=(_0x4f1b12,_0x4edd44)=>(_0xc7fc5c,_0x18e445)=>_0x4edd44(_0xc7fc5c,_0x18e445,_0x4f1b12);exports[_0x24c410(0x4c3)]=class extends a[_0x24c410(0x284)]{constructor(_0x2926c6,_0x391b83,_0x5a7f36,_0x4c985c,_0x2012e4,_0x266ea0,_0x3ca9d2,_0x525005,_0x5d3de9,_0x7ea742,_0x1af171,_0x5c3457,_0x23617d){const _0x10a3a7=_0x24c410;super(),u(this,_0x10a3a7(0x43a),new v[(_0x10a3a7(0x39d))](null)),u(this,_0x10a3a7(0x568),this['_state$'][_0x10a3a7(0x343)]()),u(this,'_state'),u(this,_0x10a3a7(0x52c),!0x1),u(this,_0x10a3a7(0x3ed),''),u(this,_0x10a3a7(0x5ef),0x0),u(this,_0x10a3a7(0x2bf),this[_0x10a3a7(0x568)][_0x10a3a7(0x404)](v[_0x10a3a7(0x24d)](_0x1b8685=>_0x1b8685?_0x1b8685[_0x10a3a7(0x479)]:U[_0x10a3a7(0x3e9)]),v['shareReplay'](0x1))),u(this,_0x10a3a7(0x449),!0x1),u(this,_0x10a3a7(0x29e),[]),(this[_0x10a3a7(0x4a2)]=_0x2926c6,this[_0x10a3a7(0x20e)]=_0x391b83,this['_type']=_0x5a7f36,this[_0x10a3a7(0x495)]=_0x4c985c,this[_0x10a3a7(0x2b3)]=_0x2012e4,this['_compressMutationService']=_0x266ea0,this[_0x10a3a7(0x319)]=_0x3ca9d2,this[_0x10a3a7(0x2d3)]=_0x525005,this['_logService']=_0x5d3de9,this[_0x10a3a7(0x2ed)]=_0x7ea742,this[_0x10a3a7(0x3c7)]=_0x1af171,this['_permissionService']=_0x5c3457,this[_0x10a3a7(0x544)]=_0x23617d);}get['state'](){return this['_state'];}async[_0x24c410(0x478)](){const _0x823659=_0x24c410;if(this[_0x823659(0x463)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x823659(0x393)]();}[_0x24c410(0x2e6)](){const _0x3f32db=_0x24c410;return this[_0x3f32db(0x52c)]=!0x0,a[_0x3f32db(0x2ab)](()=>{const _0x479176=_0x3f32db;this['_collaborationPaused']=!0x1,this[_0x479176(0x298)]();});}[_0x24c410(0x51f)](_0x3be36e){const _0xf88607=_0x24c410;this[_0xf88607(0x28a)]=_0x3be36e,this[_0xf88607(0x43a)][_0xf88607(0x4a9)](_0x3be36e);}async[_0x24c410(0x393)](){const _0xc607a7=_0x24c410;var _0x5df4fd;this[_0xc607a7(0x51f)](await this[_0xc607a7(0x3cf)]()),this[_0xc607a7(0x544)]&&((_0x5df4fd=this['_singleActiveUnitService'])==null||_0x5df4fd[_0xc607a7(0x582)](this[_0xc607a7(0x4a2)]),this[_0xc607a7(0x4b2)](this['_singleActiveUnitService'][_0xc607a7(0x526)](this[_0xc607a7(0x4a2)])['subscribe'](_0x1e6cc2=>{const _0x4e9b41=_0xc607a7;this[_0x4e9b41(0x518)]['debug'](_0x4e9b41(0x241),_0x4e9b41(0x3ad),_0x1e6cc2),_0x1e6cc2===Dt[_0x4e9b41(0x5e5)]?(this['_messageService'][_0x4e9b41(0x3bc)]({'content':this[_0x4e9b41(0x319)]['t'](_0x4e9b41(0x3c6)),'type':X[_0x4e9b41(0x365)][_0x4e9b41(0x573)]}),this[_0x4e9b41(0x223)]['updatePermissionPoint'](new C[(_0x4e9b41(0x41f))](this[_0x4e9b41(0x4a2)])['id'],!0x1)):this[_0x4e9b41(0x223)][_0x4e9b41(0x46b)](new C[(_0x4e9b41(0x41f))](this[_0x4e9b41(0x4a2)])['id'],!0x0);})));let _0x2e732b=!0x1;return this[_0xc607a7(0x4b2)](this[_0xc607a7(0x20e)]['sessionStatus$'][_0xc607a7(0x359)](_0x52532f=>{const _0x4b1b13=_0xc607a7;_0x52532f===H[_0x4b1b13(0x2ae)]?this[_0x4b1b13(0x58f)](_0x2e732b):_0x52532f===H[_0x4b1b13(0x3e9)]&&(_0x2e732b=!0x0,this[_0x4b1b13(0x510)]());})),this[_0xc607a7(0x4b2)](this['session'][_0xc607a7(0x5ba)][_0xc607a7(0x359)](_0x25925b=>{const _0x26c0a9=_0xc607a7;try{switch(_0x25925b[_0x26c0a9(0x3b1)]){case _[_0x26c0a9(0x4f8)][_0x26c0a9(0x535)]:{this['_onRemoteChangeset'](_[_0x26c0a9(0x4e9)](_0x25925b[_0x26c0a9(0x486)]));break;}case _[_0x26c0a9(0x4f8)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x25925b['data']);break;}case _[_0x26c0a9(0x4f8)][_0x26c0a9(0x3a2)]:{this[_0x26c0a9(0x416)]();break;}case _[_0x26c0a9(0x4f8)][_0x26c0a9(0x50a)]:{this[_0x26c0a9(0x55c)](_0x25925b[_0x26c0a9(0x486)][_0x26c0a9(0x496)][_0x26c0a9(0x24d)](_0x264b77=>_['parseProtocolChangeset'](_0x264b77)));break;}case _['CollaborationEvent']['PERMISSION_REJ']:this[_0x26c0a9(0x416)]({'isPermissionRej':!0x0});}}catch(_0x4a1fba){throw console[_0x26c0a9(0x553)](_0x26c0a9(0x333),_0x4a1fba),_0x4a1fba;}})),this[_0xc607a7(0x28a)];}['_unlockTransition'](){const _0x91f2a8=_0x24c410;this[_0x91f2a8(0x449)]=!0x1;}['_lockTransition'](){const _0xa97471=_0x24c410;if(this['_transitionLocked'])throw new Error(_0xa97471(0x3cb));this['_transitionLocked']=!0x0;}[_0x24c410(0x208)](_0x10dc74){const _0x81c667=_0x24c410;this[_0x81c667(0x3d9)](),this[_0x81c667(0x51f)](this[_0x81c667(0x28a)][_0x81c667(0x281)](_0x10dc74)),this[_0x81c667(0x33e)]();}[_0x24c410(0x481)](_0x5565b9){const _0x35b1e9=_0x24c410;if(!(_0x5565b9['revision']<=this[_0x35b1e9(0x2d3)][_0x35b1e9(0x23d)](this['unitID']))){if(this[_0x35b1e9(0x52c)]){this[_0x35b1e9(0x29e)]['push'](_0x5565b9);return;}this[_0x35b1e9(0x399)](_0x5565b9);}}[_0x24c410(0x298)](){const _0x42705c=_0x24c410;this[_0x42705c(0x29e)]['forEach'](_0x32e4f3=>this[_0x42705c(0x399)](_0x32e4f3)),this[_0x42705c(0x29e)]=[];}['_applyRemoteChangeset'](_0x841868){const _0x255eef=_0x24c410,_0x2a1ade=this['_compressMutationService'][_0x255eef(0x4f5)][_0x255eef(0x397)](this['_compressMutationService'][_0x255eef(0x4f5)][_0x255eef(0x5af)]()[_0x255eef(0x42a)])(_0x841868[_0x255eef(0x4a6)],null)||_0x841868[_0x255eef(0x4a6)],_0x3f51f7={..._0x841868,'mutations':_0x2a1ade};this[_0x255eef(0x3d9)](),this[_0x255eef(0x51f)](this[_0x255eef(0x28a)]['onRemoteChangeset'](_0x3f51f7)),this[_0x255eef(0x33e)]();}[_0x24c410(0x323)](_0x3412a8){const _0x49290d=_0x24c410;this['_lockTransition'](),this[_0x49290d(0x51f)](this[_0x49290d(0x28a)][_0x49290d(0x3fa)](_0x3412a8)),this[_0x49290d(0x33e)]();}[_0x24c410(0x416)](_0x12657f){const _0x1e8288=_0x24c410;this[_0x1e8288(0x3d9)](),this[_0x1e8288(0x51f)](this['_state'][_0x1e8288(0x3a4)](_0x12657f)),this[_0x1e8288(0x33e)]();}[_0x24c410(0x55c)](_0x3d74aa){const _0x5cf266=_0x24c410;if(!(this[_0x5cf266(0x28a)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x5af620=_0x3d74aa[_0x5cf266(0x24d)](_0x516480=>{const _0xfec63a=_0x5cf266,_0x2a59b6=this[_0xfec63a(0x1cc)][_0xfec63a(0x4f5)][_0xfec63a(0x397)](this[_0xfec63a(0x1cc)][_0xfec63a(0x4f5)][_0xfec63a(0x5af)]()[_0xfec63a(0x42a)])(_0x516480[_0xfec63a(0x4a6)],null)||_0x516480[_0xfec63a(0x4a6)];return{..._0x516480,'mutations':_0x2a59b6};});this[_0x5cf266(0x3d9)](),this[_0x5cf266(0x51f)](this[_0x5cf266(0x28a)][_0x5cf266(0x20c)](_0x5af620)),this['_unlockTransition']();}[_0x24c410(0x510)](){const _0x5500b8=_0x24c410;this[_0x5500b8(0x3d9)](),this[_0x5500b8(0x51f)](this[_0x5500b8(0x28a)]['toggleOffline']()),this[_0x5500b8(0x33e)]();}['_toggleOnline'](_0x217e90=!0x1){const _0x292bf9=_0x24c410;this[_0x292bf9(0x3d9)](),this[_0x292bf9(0x51f)](this[_0x292bf9(0x28a)][_0x292bf9(0x4b8)]()),this['_unlockTransition']();const _0x22bfe6=this[_0x292bf9(0x28a)];_0x217e90&&_0x22bfe6 instanceof ie&&(this['_lockTransition'](),this[_0x292bf9(0x51f)](_0x22bfe6[_0x292bf9(0x548)]()),this[_0x292bf9(0x33e)]());}async['_createInitialState'](){return new Promise(_0xbd2667=>{const _0x28f48b=_0x3b7c;this[_0x28f48b(0x20e)][_0x28f48b(0x1f2)]['pipe'](v[_0x28f48b(0x2fb)](0x1))['subscribe'](async _0x5a34ff=>{const _0x45247d=_0x28f48b;_0xbd2667(await this[_0x45247d(0x228)](_0x5a34ff===H['ONLINE']));});});}[_0x24c410(0x557)](){const _0x35260f=_0x24c410,_0x473d4f=this[_0x35260f(0x4a2)];return{'onStateChange':(_0x2c9211,_0x3f54ee)=>{const _0xd1da5d=_0x35260f;if(_0x2c9211!==this[_0xd1da5d(0x28a)])throw new Error(_0xd1da5d(0x5aa)+_0x2c9211[_0xd1da5d(0x479)]+_0xd1da5d(0x50b)+_0x3f54ee['status']+_0xd1da5d(0x328)+this[_0xd1da5d(0x28a)]['status']);this[_0xd1da5d(0x51f)](_0x3f54ee);},'onSendChangeset':_0x20f8a4=>{const _0x5238f1=_0x35260f;_0x20f8a4[_0x5238f1(0x21f)]||(_0x20f8a4[_0x5238f1(0x21f)]=this[_0x5238f1(0x3ed)],_0x20f8a4['reqId']=++this[_0x5238f1(0x5ef)]);const _0x4adb43={'eventID':_[_0x5238f1(0x4f8)][_0x5238f1(0x48a)],'data':{'unitID':_0x20f8a4['unitID'],'unitType':this['_type'],'changeset':_0x20f8a4,'memberID':this['session'][_0x5238f1(0x577)]()}};this['session'][_0x5238f1(0x2b6)](_0x4adb43,this[_0x5238f1(0x4a2)]);},'onMissingChangesets':({from:_0x8152ae,to:_0x35c3d6})=>{const _0x2682ef=_0x35260f;this[_0x2682ef(0x518)][_0x2682ef(0x347)](_0x2682ef(0x241),'fetching\x20missing\x20changesets\x20from\x20'+_0x8152ae+'\x20to\x20'+_0x35c3d6);const _0x3def53={'eventID':_[_0x2682ef(0x4f8)]['FETCH_MISSING'],'data':{'unitID':_0x473d4f,'unitType':this[_0x2682ef(0x3b2)],'from':_0x8152ae,'to':_0x35c3d6}};this[_0x2682ef(0x20e)]['send'](_0x3def53,this[_0x2682ef(0x4a2)]);}};}async['_createInitialStateImpl'](_0x55a287){const _0x5698c7=_0x24c410;var _0x4a7606,_0xca5d09;const _0x201847=await this[_0x5698c7(0x2b3)][_0x5698c7(0x38c)](this['unitID']),_0x2984ca=(_0x4a7606=_0x201847==null?void 0x0:_0x201847['mutations'])!=null?_0x4a7606:[],_0x337b0d=(_0xca5d09=_0x201847==null?void 0x0:_0x201847[_0x5698c7(0x2c2)])!=null?_0xca5d09:null,_0x22049e=!!(_0x337b0d!=null&&_0x337b0d['sid'])&&!!(_0x337b0d!=null&&_0x337b0d[_0x5698c7(0x3ec)]);this[_0x5698c7(0x3ed)]=_0x22049e?_0x337b0d['sid']:Os(),this[_0x5698c7(0x5ef)]=_0x22049e?_0x337b0d[_0x5698c7(0x3ec)]:0x0;const _0xf09e3b=this[_0x5698c7(0x4a2)];try{this[_0x5698c7(0x453)](_0x337b0d,_0x2984ca);}catch(_0x297822){this[_0x5698c7(0x518)]['error'](_0x297822);}const _0x232463=this[_0x5698c7(0x557)]();if(_0x55a287){const _0x17ce32=Ut(this[_0x5698c7(0x495)],_0xf09e3b,this[_0x5698c7(0x3b2)],_0x337b0d,_0x2984ca,_0x232463);return _0x17ce32 instanceof k?_0x17ce32['_schedule']():(_0x17ce32 instanceof B||_0x17ce32 instanceof W)&&_0x17ce32[_0x5698c7(0x3c5)](),_0x17ce32;}return this[_0x5698c7(0x495)][_0x5698c7(0x248)](G,_0xf09e3b,this[_0x5698c7(0x3b2)],_0x337b0d,_0x2984ca,_0x232463);}['_replayCachedMutations'](_0x302d8b,_0x919ca4){const _0x3e48ee=_0x24c410;var _0x248f10,_0x5469c7;const _0x9bedbb=this[_0x3e48ee(0x1cc)][_0x3e48ee(0x4f5)][_0x3e48ee(0x397)](this[_0x3e48ee(0x1cc)][_0x3e48ee(0x4f5)]['getInterceptPoints']()[_0x3e48ee(0x42a)]);(_0x248f10=_0x9bedbb((_0x302d8b==null?void 0x0:_0x302d8b[_0x3e48ee(0x4a6)])||[],null))==null||_0x248f10[_0x3e48ee(0x202)](_0x42e8cd=>this[_0x3e48ee(0x2ed)]['executeCommand'](_0x42e8cd['id'],_0x42e8cd[_0x3e48ee(0x57a)])),(_0x5469c7=_0x9bedbb(_0x919ca4||[],null))==null||_0x5469c7[_0x3e48ee(0x202)](_0x3ba6ad=>this[_0x3e48ee(0x2ed)][_0x3e48ee(0x2d6)](_0x3ba6ad['id'],_0x3ba6ad[_0x3e48ee(0x57a)]));}},exports[_0x24c410(0x4c3)]=ze([I(0x3,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),I(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),I(0x5,a[_0x24c410(0x349)](_['CompressMutationService'])),I(0x6,a[_0x24c410(0x349)](a[_0x24c410(0x388)])),I(0x7,a[_0x24c410(0x349)](_['RevisionService'])),I(0x8,a[_0x24c410(0x40f)]),I(0x9,a[_0x24c410(0x494)]),I(0xa,A[_0x24c410(0x4b3)]),I(0xb,a[_0x24c410(0x27f)]),I(0xc,a[_0x24c410(0x5cb)](Re))],exports[_0x24c410(0x4c3)]),exports['DocCollaborationEntity']=class extends exports[_0x24c410(0x4c3)]{constructor(_0x2f3a3b,_0xa6545b,_0x543354,_0x4461a3,_0x482592,_0x1e4442,_0x535d6d,_0x3c5457,_0x3d47b8,_0x196340,_0x636d33,_0x5a494e,_0x4c9346,_0xdad508,_0x3b0da7,_0x53e75a,_0xd3c628){const _0x540423=_0x24c410;super(_0x2f3a3b,_0x543354,_0xa6545b,_0x4461a3,_0x482592,_0x1e4442,_0x535d6d,_0x3c5457,_0x4c9346,_0xdad508,_0x3b0da7,_0x53e75a,_0xd3c628),this[_0x540423(0x4a2)]=_0x2f3a3b,this[_0x540423(0x28b)]=_0xa6545b,this[_0x540423(0x3e8)]=_0x3d47b8,this[_0x540423(0x294)]=_0x196340,this[_0x540423(0x405)]=_0x636d33,this[_0x540423(0x2a4)]=_0x5a494e;}[_0x24c410(0x557)](){const _0x3cb357=_0x24c410,_0x2e6a4b=super['_createHandler']();return _0x2e6a4b[_0x3cb357(0x455)]=_0x145669=>this['_docTransformIMECacheService'][_0x3cb357(0x2f5)](_0x145669),_0x2e6a4b[_0x3cb357(0x473)]=_0x377fe2=>this[_0x3cb357(0x405)][_0x3cb357(0x5e8)](_0x377fe2),_0x2e6a4b[_0x3cb357(0x255)]=_0x2dbd57=>this[_0x3cb357(0x2a4)][_0x3cb357(0x2a5)](_0x2dbd57),_0x2e6a4b[_0x3cb357(0x31b)]=_0x59e31f=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x59e31f),_0x2e6a4b;}async[_0x24c410(0x393)](){const _0x5e5040=_0x24c410,_0x5ec5d2=await super[_0x5e5040(0x393)]();return this[_0x5e5040(0x3e8)][_0x5e5040(0x301)][_0x5e5040(0x404)](v[_0x5e5040(0x2b1)](this[_0x5e5040(0x22f)]))[_0x5e5040(0x359)](_0x3b5385=>{const _0x1f413f=_0x5e5040;if(_0x3b5385==null)return;const {unitId:_0x29c7d1,redoState:_0x3bbf3,commandId:_0x5faf4f}=_0x3b5385;if(_0x29c7d1!==this['unitID'])return;const _0x89e200={'id':_0x5faf4f,'type':a[_0x1f413f(0x5d4)][_0x1f413f(0x5b0)],'params':{'unitId':_0x29c7d1,'actions':_0x3bbf3[_0x1f413f(0x599)],'textRanges':null}};this['_onLocalMutation'](_0x89e200);}),_0x5ec5d2;}},exports[_0x24c410(0x3e2)]=ze([I(0x3,a['Inject'](a[_0x24c410(0x4f6)])),I(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a['Inject'](a['LocaleService'])),I(0x7,a[_0x24c410(0x349)](_['RevisionService'])),I(0x8,a[_0x24c410(0x349)](N[_0x24c410(0x48f)])),I(0x9,a[_0x24c410(0x349)](fe)),I(0xa,a[_0x24c410(0x349)](pe)),I(0xb,a[_0x24c410(0x349)](qe)),I(0xc,a[_0x24c410(0x40f)]),I(0xd,a[_0x24c410(0x494)]),I(0xe,A[_0x24c410(0x4b3)]),I(0xf,a[_0x24c410(0x27f)]),I(0x10,a[_0x24c410(0x5cb)](Re))],exports[_0x24c410(0x3e2)]),exports[_0x24c410(0x5df)]=class extends exports[_0x24c410(0x4c3)]{constructor(_0x2371b9,_0x57372a,_0x53d4d0,_0x29a911,_0x5f11b8,_0x143f11,_0x4ffc51,_0x2bb424,_0xdd9f1b,_0x56ea8a,_0x43f2de,_0x4b5359,_0x33d8dd,_0x15d44e){const _0xc554cf=_0x24c410;super(_0x2371b9,_0x53d4d0,_0x57372a,_0x29a911,_0x5f11b8,_0x143f11,_0x4ffc51,_0x2bb424,_0x56ea8a,_0x43f2de,_0x4b5359,_0x33d8dd,_0x15d44e),this[_0xc554cf(0x4a2)]=_0x2371b9,this[_0xc554cf(0x28b)]=_0x57372a,this[_0xc554cf(0x524)]=_0xdd9f1b;}[_0x24c410(0x557)](){const _0x434e7b=_0x24c410,_0x11ce48=super['_createHandler']();return _0x11ce48[_0x434e7b(0x473)]=_0x2d983b=>this[_0x434e7b(0x524)][_0x434e7b(0x5e8)](_0x2d983b),_0x11ce48;}async['_init'](){const _0x522b0a=_0x24c410,_0x1fba88=await super[_0x522b0a(0x393)]();return this['disposeWithMe'](this[_0x522b0a(0x2ed)][_0x522b0a(0x378)]((_0x2fca71,_0x758dd5)=>{const _0x39740d=_0x522b0a;if(_0x2fca71[_0x39740d(0x28b)]!==a[_0x39740d(0x5d4)]['MUTATION']||_0x758dd5!=null&&_0x758dd5['fromCollab']||_0x758dd5!=null&&_0x758dd5[_0x39740d(0x502)])return;const _0x4da852=_0x2fca71[_0x39740d(0x57a)];if((_0x4da852==null?void 0x0:_0x4da852[_0x39740d(0x253)])!==this[_0x39740d(0x4a2)])return;const _0x4c9112=_0x2fca71,_0x1f9f8f=this['_compressMutationService'][_0x39740d(0x4f5)][_0x39740d(0x397)](this[_0x39740d(0x1cc)]['interceptor'][_0x39740d(0x5af)]()[_0x39740d(0x5e2)])([_0x4c9112],null)||[_0x4c9112];this[_0x39740d(0x208)](_0x1f9f8f[0x0]);})),_0x1fba88;}},exports[_0x24c410(0x5df)]=ze([I(0x3,a[_0x24c410(0x349)](a['Injector'])),I(0x4,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),I(0x5,a['Inject'](_[_0x24c410(0x34a)])),I(0x6,a[_0x24c410(0x349)](a['LocaleService'])),I(0x7,a[_0x24c410(0x349)](_['RevisionService'])),I(0x8,a[_0x24c410(0x349)](Ie)),I(0x9,a[_0x24c410(0x40f)]),I(0xa,a['ICommandService']),I(0xb,A[_0x24c410(0x4b3)]),I(0xc,a[_0x24c410(0x27f)]),I(0xd,a[_0x24c410(0x5cb)](Re))],exports[_0x24c410(0x5df)]);var qs=Object['defineProperty'],zs=Object[_0x24c410(0x3e3)],Js=(_0x498288,_0x537364,_0x3e2b38,_0x51c008)=>{const _0xda2a5c=_0x24c410;for(var _0x29dc50=_0x51c008>0x1?void 0x0:_0x51c008?zs(_0x537364,_0x3e2b38):_0x537364,_0x5b1c40=_0x498288[_0xda2a5c(0x25b)]-0x1,_0x3e5e63;_0x5b1c40>=0x0;_0x5b1c40--)(_0x3e5e63=_0x498288[_0x5b1c40])&&(_0x29dc50=(_0x51c008?_0x3e5e63(_0x537364,_0x3e2b38,_0x29dc50):_0x3e5e63(_0x29dc50))||_0x29dc50);return _0x51c008&&_0x29dc50&&qs(_0x537364,_0x3e2b38,_0x29dc50),_0x29dc50;},Ne=(_0x4531d2,_0x301e29)=>(_0x368a34,_0x982f7)=>_0x301e29(_0x368a34,_0x982f7,_0x4531d2);exports[_0x24c410(0x3df)]=class extends a[_0x24c410(0x284)]{constructor(_0x1d7569,_0x2a2881,_0x192370){const _0x207e1e=_0x24c410;super(),u(this,_0x207e1e(0x433),new Map()),u(this,_0x207e1e(0x3a3),new v['Subject']()),(this[_0x207e1e(0x495)]=_0x1d7569,this[_0x207e1e(0x5d6)]=_0x2a2881,this[_0x207e1e(0x329)]=_0x192370,this[_0x207e1e(0x393)]());}['dispose'](){const _0x5917a3=_0x24c410;super[_0x5917a3(0x54a)](),this['_entities'][_0x5917a3(0x202)](_0x17f256=>_0x17f256[_0x5917a3(0x54a)]()),this['_entities']['clear']();}[_0x24c410(0x4a8)](_0x598374){const _0x38b5fc=_0x24c410;var _0x5ddfbd;return(_0x5ddfbd=this[_0x38b5fc(0x433)][_0x38b5fc(0x40c)](_0x598374))!=null?_0x5ddfbd:null;}[_0x24c410(0x35a)](_0x1adf45){const _0x2d048d=_0x24c410,_0x4308ed=this[_0x2d048d(0x4a8)](_0x1adf45);return _0x4308ed?v['of'](_0x4308ed):this['_entityInit$'][_0x2d048d(0x404)](E['filter'](_0x1a0681=>_0x1a0681[_0x2d048d(0x4a2)]===_0x1adf45));}['_init'](){const _0x135ca3=_0x24c410;this[_0x135ca3(0x329)][_0x135ca3(0x1d6)](a[_0x135ca3(0x461)][_0x135ca3(0x236)])[_0x135ca3(0x404)](v[_0x135ca3(0x2b1)](this[_0x135ca3(0x22f)]),E['delay'](0x10))[_0x135ca3(0x359)](async _0x4d8302=>{const _0x412186=_0x135ca3,_0xe2ba04=_0x4d8302[_0x412186(0x444)](),_0x3b094f=await this['_startCollaboration'](_0xe2ba04,$[_0x412186(0x236)]);this[_0x412186(0x433)][_0x412186(0x48d)](_0xe2ba04,_0x3b094f);}),this[_0x135ca3(0x329)][_0x135ca3(0x1d6)](a[_0x135ca3(0x461)][_0x135ca3(0x489)])['pipe'](v[_0x135ca3(0x2b1)](this[_0x135ca3(0x22f)]),E[_0x135ca3(0x410)](0x10))[_0x135ca3(0x404)](E[_0x135ca3(0x5ce)](_0x942c46=>!_0x942c46[_0x135ca3(0x444)]()[_0x135ca3(0x291)]('__')))[_0x135ca3(0x359)](async _0x251b0a=>{const _0x35370e=_0x135ca3,_0x556b0d=_0x251b0a[_0x35370e(0x444)](),_0x2d35a8=await this[_0x35370e(0x1d0)](_0x556b0d,$[_0x35370e(0x489)]);this[_0x35370e(0x433)][_0x35370e(0x48d)](_0x556b0d,_0x2d35a8);}),v['merge'](this[_0x135ca3(0x329)][_0x135ca3(0x5c0)](a[_0x135ca3(0x461)][_0x135ca3(0x236)]),this[_0x135ca3(0x329)][_0x135ca3(0x5c0)](a[_0x135ca3(0x461)][_0x135ca3(0x489)]))[_0x135ca3(0x404)](v[_0x135ca3(0x2b1)](this[_0x135ca3(0x22f)]))['subscribe'](_0x30bfc6=>{const _0x56e5a4=_0x135ca3,_0x15cebb=_0x30bfc6[_0x56e5a4(0x444)](),_0x1214c7=this[_0x56e5a4(0x433)][_0x56e5a4(0x40c)](_0x15cebb);_0x1214c7&&(_0x1214c7['dispose'](),this[_0x56e5a4(0x433)][_0x56e5a4(0x5a3)](_0x15cebb));});}async[_0x24c410(0x1d0)](_0x2e42b2,_0x4d00a0){const _0x48c067=_0x24c410,_0x3b0698=await this[_0x48c067(0x5d6)][_0x48c067(0x2b7)](_0x2e42b2),_0x3d29a3=this[_0x48c067(0x495)][_0x48c067(0x248)](this[_0x48c067(0x534)](_0x4d00a0),_0x2e42b2,_0x4d00a0,_0x3b0698);return await _0x3d29a3[_0x48c067(0x478)](),this[_0x48c067(0x3a3)][_0x48c067(0x4a9)](_0x3d29a3),_0x3d29a3;}[_0x24c410(0x534)](_0x3109f1){const _0x48c269=_0x24c410;switch(_0x3109f1){case $['UNIVER_DOC']:return exports[_0x48c269(0x3e2)];case $[_0x48c269(0x236)]:return exports[_0x48c269(0x5df)];default:throw new Error(_0x48c269(0x5cd)+_0x3109f1);}}},exports[_0x24c410(0x3df)]=Js([Ne(0x0,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),Ne(0x1,a['Inject'](exports[_0x24c410(0x2a1)])),Ne(0x2,a['IUniverInstanceService'])],exports[_0x24c410(0x3df)]);const ct=[_0x24c410(0x35d),'jiqing500',_0x24c410(0x315),_0x24c410(0x336),'blue400',_0x24c410(0x59f)];class Je extends a[_0x24c410(0x2f0)]{constructor(){super(...arguments),u(this,'_assignedColors',new Map()),u(this,'_colorIndex',0x0);}[_0x24c410(0x379)](_0x20ba83){const _0x578139=_0x24c410;if(this[_0x578139(0x4dd)][_0x578139(0x3d7)](_0x20ba83))return this[_0x578139(0x4dd)][_0x578139(0x40c)](_0x20ba83);const _0x3619d9=ct[this[_0x578139(0x43e)]];return this[_0x578139(0x43e)]=(this[_0x578139(0x43e)]+0x1)%ct[_0x578139(0x25b)],this[_0x578139(0x4dd)][_0x578139(0x48d)](_0x20ba83,_0x3619d9),_0x3619d9;}}var Zs=Object['defineProperty'],Qs=Object[_0x24c410(0x3e3)],ei=(_0x380c10,_0x1e0976,_0x1311b9,_0x49e963)=>{for(var _0x2a3c1f=_0x49e963>0x1?void 0x0:_0x49e963?Qs(_0x1e0976,_0x1311b9):_0x1e0976,_0x113cad=_0x380c10['length']-0x1,_0x2603c4;_0x113cad>=0x0;_0x113cad--)(_0x2603c4=_0x380c10[_0x113cad])&&(_0x2a3c1f=(_0x49e963?_0x2603c4(_0x1e0976,_0x1311b9,_0x2a3c1f):_0x2603c4(_0x2a3c1f))||_0x2a3c1f);return _0x49e963&&_0x2a3c1f&&Zs(_0x1e0976,_0x1311b9,_0x2a3c1f),_0x2a3c1f;},K=(_0x4cd48e,_0x5bb733)=>(_0x4d5ce2,_0xac42f9)=>_0x5bb733(_0x4d5ce2,_0xac42f9,_0x4cd48e);const ti=0x12c,si=0x64;let ke=class extends a[_0x24c410(0x284)]{constructor(_0x2ef132,_0x2c8e91,_0x411be9,_0xcd7ab6,_0x3544ae,_0x1eeeb4,_0x321264,_0x27e78a,_0x178391){const _0xc35d82=_0x24c410;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0xc35d82(0x374),new v[(_0xc35d82(0x39d))](new Map())),u(this,_0xc35d82(0x1e9),this[_0xc35d82(0x374)][_0xc35d82(0x343)]()),u(this,_0xc35d82(0x211),new v['BehaviorSubject']([])),u(this,'roomMembers$',this[_0xc35d82(0x211)][_0xc35d82(0x404)](v[_0xc35d82(0x3a0)](ti))),u(this,_0xc35d82(0x4cc),a[_0xc35d82(0x400)](_0x48c7b6=>{const _0xe883cc=_0xc35d82,_0x47eb39={'eventID':_[_0xe883cc(0x4f8)][_0xe883cc(0x27a)],'data':{'unitID':this[_0xe883cc(0x4a2)],'memberID':this[_0xe883cc(0x3ab)]['getMemberID'](),'selection':yt(_0x48c7b6)}};this[_0xe883cc(0x3ab)][_0xe883cc(0x2b6)](_0x47eb39,this[_0xe883cc(0x4a2)]);},si)),(this[_0xc35d82(0x4a2)]=_0x2ef132,this['_session']=_0x2c8e91,this[_0xc35d82(0x495)]=_0x411be9,this[_0xc35d82(0x363)]=_0xcd7ab6,this[_0xc35d82(0x4a4)]=_0x3544ae,this['_syncEditingCollabCursorService']=_0x1eeeb4,this[_0xc35d82(0x317)]=_0x321264,this[_0xc35d82(0x329)]=_0x27e78a,this['_commandService']=_0x178391);}get['cursorInfo'](){const _0x4c71f3=_0x24c410;return this[_0x4c71f3(0x374)][_0x4c71f3(0x49a)]();}get[_0x24c410(0x2b8)](){const _0x1d91ae=_0x24c410;return this[_0x1d91ae(0x211)][_0x1d91ae(0x49a)]();}[_0x24c410(0x54a)](){const _0x31cefa=_0x24c410;super[_0x31cefa(0x54a)](),this[_0x31cefa(0x374)][_0x31cefa(0x4a9)](new Map()),this['_cursorInfo$'][_0x31cefa(0x4a3)](),this[_0x31cefa(0x211)]['next']([]),this[_0x31cefa(0x211)]['complete']();}[_0x24c410(0x478)](){const _0xd2002f=_0x24c410;this[_0xd2002f(0x393)]||(this[_0xd2002f(0x393)]=!0x0,this['_session'][_0xd2002f(0x1f2)][_0xd2002f(0x404)](v['takeUntil'](this[_0xd2002f(0x22f)]))[_0xd2002f(0x359)](_0x85158e=>{const _0x1844f4=_0xd2002f;_0x85158e===H[_0x1844f4(0x2ae)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xd2002f(0x3ab)][_0xd2002f(0x5ba)][_0xd2002f(0x404)](v[_0xd2002f(0x2b1)](this[_0xd2002f(0x22f)]))[_0xd2002f(0x359)](_0x2f394f=>{const _0x29ddf4=_0xd2002f,_0x360d66=_0x2f394f['eventID'];_0x360d66===_[_0x29ddf4(0x4f8)][_0x29ddf4(0x27a)]&&this[_0x29ddf4(0x4be)](_0x2f394f),_0x360d66===_[_0x29ddf4(0x4f8)][_0x29ddf4(0x45f)]&&this['_onCursorDelete'](_0x2f394f);}),this[_0xd2002f(0x4b2)](this[_0xd2002f(0x2ed)]['onCommandExecuted'](_0x611a18=>{const _0x1a0c3b=_0xd2002f,_0x55148e=_0x611a18['params'];_0x55148e!=null&&this[_0x1a0c3b(0x1f1)]&&_0x611a18['id']===se[_0x1a0c3b(0x52d)]['id']&&_0x55148e['unitId']===this[_0x1a0c3b(0x4a2)]&&_0x55148e['isEditing']===!0x1&&this['_updateLocalCursor'](_0x55148e[_0x1a0c3b(0x409)]);})),this[_0xd2002f(0x306)][_0xd2002f(0x5c4)]['pipe'](v[_0xd2002f(0x2b1)](this[_0xd2002f(0x22f)]))[_0xd2002f(0x359)](_0x1e8d04=>{const _0xb1a883=_0xd2002f;if((_0x1e8d04==null?void 0x0:_0x1e8d04['unitID'])!==this[_0xb1a883(0x4a2)])return;const _0x2f03cd={'eventID':_['CollaborationEvent'][_0xb1a883(0x27a)],'data':_0x1e8d04};this[_0xb1a883(0x4be)](_0x2f03cd);}),this['disposeWithMe'](this[_0xd2002f(0x2ed)]['onCommandExecuted'](_0x3478f6=>{const _0x138618=_0xd2002f;if(_0x3478f6['params']==null)return;const _0x5e55af=_0x3478f6[_0x138618(0x57a)];if(_0x3478f6['id']!==se[_0x138618(0x1d9)]['id']||_0x5e55af[_0x138618(0x253)]!==this[_0x138618(0x4a2)])return;const _0x1e933a={'id':_0x138618(0x4fa),'params':_0x5e55af},_0x32c7f3=this[_0x138618(0x512)];for(const [_0xc7d8d5,_0x9d0be1]of _0x32c7f3){const _0x367f1e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x9d0be1[_0x138618(0x409)]}},_0x2cd1df=this[_0x138618(0x317)][_0x138618(0x2c3)](_0x1e933a,_0x367f1e,!0x1);if(_['isTransformMutationFailure'](_0x2cd1df))throw _0x2cd1df[_0x138618(0x553)];_0x32c7f3[_0x138618(0x48d)](_0xc7d8d5,{..._0x9d0be1,'ranges':_0x2cd1df['m2Prime'][_0x138618(0x57a)][_0x138618(0x566)]});}queueMicrotask(()=>{const _0x3015a4=_0x138618;this['_cursorInfo$'][_0x3015a4(0x4a9)](_0x32c7f3);});})));}['_onCursorUpdate'](_0xa38009){const _0x4e26bb=_0x24c410;var _0x210471,_0x301ca8;const {memberID:_0x27f196,selection:_0x2da470}=_0xa38009[_0x4e26bb(0x486)],_0x4dc47f=Hs(_0x2da470),_0x57738a=(_0x301ca8=(_0x210471=this['_memberService']['getMember'](this[_0x4e26bb(0x4a2)],_0x27f196))==null?void 0x0:_0x210471[_0x4e26bb(0x356)])!=null?_0x301ca8:_0x4e26bb(0x36d),_0x5a0663={'color':this[_0x4e26bb(0x363)][_0x4e26bb(0x379)](_0x27f196),'name':_0x57738a,'ranges':_0x4dc47f},_0x3f08b9=this[_0x4e26bb(0x512)];_0x3f08b9['set'](_0x27f196,_0x5a0663),this['_cursorInfo$']['next'](_0x3f08b9);}[_0x24c410(0x270)](_0x4cad34){const _0x1edd7e=_0x24c410,{memberID:_0x20b138}=_0x4cad34[_0x1edd7e(0x486)],_0x2cedb6=this[_0x1edd7e(0x512)];_0x2cedb6[_0x1edd7e(0x5a3)](_0x20b138),this[_0x1edd7e(0x374)][_0x1edd7e(0x4a9)](_0x2cedb6);}[_0x24c410(0x58f)](){const _0x58982a=_0x24c410;var _0x393dec;if(this[_0x58982a(0x1f1)]=!0x0,((_0x393dec=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x393dec[_0x58982a(0x444)]())!==this['unitID'])return;const _0x4511c9=this[_0x58982a(0x495)]['get'](se['DocSelectionManagerService'])[_0x58982a(0x5c2)]();Array[_0x58982a(0x2fa)](_0x4511c9)&&_0x4511c9[_0x58982a(0x25b)]>0x0&&this['_updateLocalCursor'](_0x4511c9);}['_toggleOffline'](){const _0x2e1b08=_0x24c410;this[_0x2e1b08(0x1f1)]=!0x1;}};ke=ei([K(0x2,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),K(0x3,a[_0x24c410(0x349)](Je)),K(0x4,a[_0x24c410(0x349)](q)),K(0x5,a[_0x24c410(0x349)](qe)),K(0x6,_[_0x24c410(0x2ec)]),K(0x7,a[_0x24c410(0x5e9)]),K(0x8,a[_0x24c410(0x494)])],ke);var ii=Object['defineProperty'],ni=Object['getOwnPropertyDescriptor'],ri=(_0x14ac49,_0x2224cd,_0xfe828e,_0x23c438)=>{const _0x3c1099=_0x24c410;for(var _0x11f2ca=_0x23c438>0x1?void 0x0:_0x23c438?ni(_0x2224cd,_0xfe828e):_0x2224cd,_0x589b63=_0x14ac49[_0x3c1099(0x25b)]-0x1,_0x4e9196;_0x589b63>=0x0;_0x589b63--)(_0x4e9196=_0x14ac49[_0x589b63])&&(_0x11f2ca=(_0x23c438?_0x4e9196(_0x2224cd,_0xfe828e,_0x11f2ca):_0x4e9196(_0x11f2ca))||_0x11f2ca);return _0x23c438&&_0x11f2ca&&ii(_0x2224cd,_0xfe828e,_0x11f2ca),_0x11f2ca;},Q=(_0x10e6b9,_0x5bf871)=>(_0x34ceed,_0x19119d)=>_0x5bf871(_0x34ceed,_0x19119d,_0x10e6b9);const oi=0x12c,ai=0x64,ci=()=>{let _0x1b8457=[],_0x55c6da=!0x1;return _0x4807a2=>{const _0x4ea1df=_0x3b7c;_0x1b8457[_0x4ea1df(0x222)](_0x4807a2),_0x55c6da||(_0x55c6da=!0x0,setTimeout(()=>{const _0x1a1efc=_0x4ea1df;_0x1b8457[_0x1a1efc(0x202)](_0x2da25c=>_0x2da25c()),_0x1b8457=[],_0x55c6da=!0x1;}));};};let Be=class extends a[_0x24c410(0x284)]{constructor(_0x3b9fac,_0x55e48b,_0x208826,_0x295ecb,_0xee6687,_0x3dd882,_0x100bf3,_0x2c9092){const _0x58185c=_0x24c410;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0x58185c(0x374),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this[_0x58185c(0x374)][_0x58185c(0x343)]()),u(this,_0x58185c(0x211),new v[(_0x58185c(0x39d))]([])),u(this,_0x58185c(0x32a),this[_0x58185c(0x211)][_0x58185c(0x404)](v['debounceTime'](oi))),u(this,_0x58185c(0x4cc),a[_0x58185c(0x400)]((_0x19cb95,_0x792477)=>{const _0x506cae=_0x58185c,_0x46d5b7={'eventID':_[_0x506cae(0x4f8)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x506cae(0x3ab)][_0x506cae(0x577)](),'selection':et[_0x506cae(0x4c5)](_0x19cb95,_0x792477['range'])}};this[_0x506cae(0x3ab)][_0x506cae(0x2b6)](_0x46d5b7,this['unitID']);},ai)),(this['unitID']=_0x3b9fac,this[_0x58185c(0x3ab)]=_0x55e48b,this[_0x58185c(0x495)]=_0x208826,this[_0x58185c(0x363)]=_0x295ecb,this[_0x58185c(0x4a4)]=_0xee6687,this['_univerInstanceService']=_0x3dd882,this[_0x58185c(0x2ed)]=_0x100bf3,this[_0x58185c(0x48b)]=_0x2c9092);}get[_0x24c410(0x512)](){const _0x14989f=_0x24c410;return this[_0x14989f(0x374)][_0x14989f(0x49a)]();}get['roomMembers'](){const _0x5cec7a=_0x24c410;return this[_0x5cec7a(0x211)][_0x5cec7a(0x49a)]();}[_0x24c410(0x54a)](){const _0x162519=_0x24c410;super['dispose'](),this[_0x162519(0x374)][_0x162519(0x4a9)](new Map()),this['_cursorInfo$'][_0x162519(0x4a3)](),this[_0x162519(0x211)][_0x162519(0x4a9)]([]),this['_roomMembers$'][_0x162519(0x4a3)]();}[_0x24c410(0x478)](){const _0x33cce7=_0x24c410;this[_0x33cce7(0x393)]||(this[_0x33cce7(0x393)]=!0x0,this['_session'][_0x33cce7(0x1f2)][_0x33cce7(0x404)](v['takeUntil'](this[_0x33cce7(0x22f)]))[_0x33cce7(0x359)](_0xd382c9=>{const _0x17a06f=_0x33cce7;_0xd382c9===H['ONLINE']?this[_0x17a06f(0x58f)]():this[_0x17a06f(0x510)]();}),this['_session'][_0x33cce7(0x5ba)][_0x33cce7(0x404)](v[_0x33cce7(0x2b1)](this['dispose$']))[_0x33cce7(0x359)](_0x2893bd=>{const _0x5b2963=_0x33cce7,_0x3ad14a=_0x2893bd[_0x5b2963(0x3b1)];_0x3ad14a===_[_0x5b2963(0x4f8)][_0x5b2963(0x27a)]&&this['_onCursorUpdate'](_0x2893bd),_0x3ad14a===_['CollaborationEvent'][_0x5b2963(0x45f)]&&this[_0x5b2963(0x270)](_0x2893bd);}),this[_0x33cce7(0x514)](),this['disposeWithMe'](this[_0x33cce7(0x2ed)][_0x33cce7(0x378)](_0x4d4b6c=>{const _0x36a8c4=_0x33cce7;if(this['_online']&&_0x4d4b6c['id']===C[_0x36a8c4(0x56a)]['id']&&_0x4d4b6c[_0x36a8c4(0x57a)][_0x36a8c4(0x253)]===this[_0x36a8c4(0x4a2)]){const _0x3ef10c=_0x4d4b6c[_0x36a8c4(0x57a)];this[_0x36a8c4(0x4cc)](_0x3ef10c[_0x36a8c4(0x4b9)],_0x3ef10c['selections'][0x0]);}})));}['_onCursorUpdate'](_0x222a8a){const _0x2622c0=_0x24c410;var _0xe5cec8,_0x298849;const {memberID:_0x4894ea,selection:_0x521798}=_0x222a8a[_0x2622c0(0x486)],{sheetName:_0x448f71,range:_0x190ae6}=et[_0x2622c0(0x592)](_0x521798),_0x4a7669={'name':(_0x298849=(_0xe5cec8=this[_0x2622c0(0x4a4)][_0x2622c0(0x523)](this[_0x2622c0(0x4a2)],_0x4894ea))==null?void 0x0:_0xe5cec8[_0x2622c0(0x356)])!=null?_0x298849:_0x2622c0(0x36d),'range':this[_0x2622c0(0x450)](_0x448f71,_0x190ae6),'sheetID':_0x448f71,'color':this[_0x2622c0(0x363)]['assignAColorForMemberID'](_0x4894ea),'selection':_0x521798},_0x17b2d3=this[_0x2622c0(0x512)];_0x17b2d3[_0x2622c0(0x48d)](_0x4894ea,_0x4a7669),this[_0x2622c0(0x374)][_0x2622c0(0x4a9)](_0x17b2d3);}[_0x24c410(0x270)](_0x5049f3){const _0x242b70=_0x24c410,{memberID:_0x3cf62a}=_0x5049f3[_0x242b70(0x486)],_0xa21216=this[_0x242b70(0x512)];_0xa21216[_0x242b70(0x5a3)](_0x3cf62a),this['_cursorInfo$'][_0x242b70(0x4a9)](_0xa21216);}[_0x24c410(0x450)](_0x460305,_0x411542){const _0x636ba2=_0x24c410;var _0x228b23,_0x318efd;const _0x1a295f=(_0x318efd=(_0x228b23=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x636ba2(0x4a2)]))==null?void 0x0:_0x228b23[_0x636ba2(0x44d)](_0x460305))==null?void 0x0:_0x318efd[_0x636ba2(0x5d3)]();return(_0x1a295f==null?void 0x0:_0x1a295f[_0x636ba2(0x3f3)](_0x2bb06c=>a[_0x636ba2(0x2da)][_0x636ba2(0x44b)](_0x2bb06c,_0x411542)))||_0x411542;}[_0x24c410(0x514)](){const _0x7827f4=_0x24c410,_0x361ffe=new a[(_0x7827f4(0x46f))](),_0x519e7c=ci(),_0x33d288=()=>{const _0x4087a5=_0x7827f4;_0x361ffe[_0x4087a5(0x54a)]();const _0xb0b9b3=(_0x5de563,_0x39f973,_0xc63e55,_0x411d6d)=>{const _0x297e30=_0x4087a5;let _0x5cff75=[];switch(_0x5de563['id']){case C[_0x297e30(0x22c)][_0x297e30(0x2a0)]:{_0x5cff75=C[_0x297e30(0x53a)](_0x5de563,_0x411d6d);break;}case C['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x5cff75=C[_0x297e30(0x563)](_0x5de563,_0x411d6d);break;}case C['EffectRefRangId'][_0x297e30(0x1ff)]:{_0x5cff75=C[_0x297e30(0x2a2)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)]['InsertRangeMoveDownCommandId']:{_0x5cff75=C[_0x297e30(0x34c)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x43b)]:{_0x5cff75=C[_0x297e30(0x53d)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x528)]:{_0x5cff75=C[_0x297e30(0x55d)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)]['MoveRangeCommandId']:{_0x5cff75=C['handleMoveRange'](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x200)]:{_0x5cff75=C[_0x297e30(0x384)](_0x5de563,_0x411d6d);break;}case C[_0x297e30(0x22c)][_0x297e30(0x31e)]:{_0x5cff75=C[_0x297e30(0x5c9)](_0x5de563,_0x411d6d);break;}}const _0x1e77d7=C[_0x297e30(0x44e)](_0x5cff75,_0x411d6d),_0xe34eb6=this[_0x297e30(0x512)][_0x297e30(0x40c)](_0x39f973);if(_0xe34eb6&&_0x1e77d7){const _0x174930={..._0xe34eb6,'range':_0x1e77d7};this[_0x297e30(0x512)]['set'](_0x39f973,_0x174930),_0x519e7c(()=>{const _0x8b452c=_0x297e30,_0x24b6c8=this[_0x8b452c(0x48b)][_0x8b452c(0x4fd)](_0x1e77d7,_0x143a1d=>(_0x24b6c8[_0x8b452c(0x54a)](),_0xb0b9b3(_0x143a1d,_0x39f973,_0xc63e55,_0x1e77d7)));_0x361ffe[_0x8b452c(0x3d0)](_0x24b6c8);});}return{'redos':[],'undos':[]};};this[_0x4087a5(0x512)][_0x4087a5(0x202)]((_0x1c0d19,_0x5bf5f8)=>{const _0x28a8cc=_0x4087a5,{range:_0x128f31,sheetID:_0x22180c}=_0x1c0d19,_0x59f063=this[_0x28a8cc(0x48b)]['registerRefRange'](_0x128f31,_0x2b99b0=>(_0x59f063[_0x28a8cc(0x54a)](),_0xb0b9b3(_0x2b99b0,_0x5bf5f8,_0x22180c,_0x128f31)));_0x361ffe[_0x28a8cc(0x3d0)](_0x59f063);});};this[_0x7827f4(0x4b2)](a[_0x7827f4(0x2ab)](this['_cursorInfo$'][_0x7827f4(0x359)](()=>{_0x33d288();})));}[_0x24c410(0x58f)](){const _0x325305=_0x24c410;var _0x5a546f,_0x31a5d2;if(this[_0x325305(0x1f1)]=!0x0,((_0x5a546f=this[_0x325305(0x329)][_0x325305(0x39f)]())==null?void 0x0:_0x5a546f[_0x325305(0x444)]())!==this['unitID'])return;const _0x42e8f6=(_0x31a5d2=this[_0x325305(0x495)]['get'](C['SheetsSelectionsService'])[_0x325305(0x1ef)]())==null?void 0x0:_0x31a5d2[0x0],_0xb7037c=this[_0x325305(0x329)][_0x325305(0x2e1)](a[_0x325305(0x461)][_0x325305(0x236)])[_0x325305(0x41c)]();_0x42e8f6&&_0xb7037c&&this[_0x325305(0x4cc)](_0xb7037c[_0x325305(0x5b7)](),_0x42e8f6);}[_0x24c410(0x510)](){const _0x27d181=_0x24c410;this[_0x27d181(0x1f1)]=!0x1;}};Be=ri([Q(0x2,a[_0x24c410(0x349)](a['Injector'])),Q(0x3,a[_0x24c410(0x349)](Je)),Q(0x4,a[_0x24c410(0x349)](q)),Q(0x5,a[_0x24c410(0x5e9)]),Q(0x6,a['ICommandService']),Q(0x7,a[_0x24c410(0x349)](C['RefRangeService']))],Be);var li=Object[_0x24c410(0x5d0)],hi=Object[_0x24c410(0x3e3)],_i=(_0x107b39,_0x786dd0,_0xb3f8b6,_0x786d5f)=>{const _0x5ac673=_0x24c410;for(var _0x36f4dc=_0x786d5f>0x1?void 0x0:_0x786d5f?hi(_0x786dd0,_0xb3f8b6):_0x786dd0,_0x44eaf9=_0x107b39[_0x5ac673(0x25b)]-0x1,_0x50c789;_0x44eaf9>=0x0;_0x44eaf9--)(_0x50c789=_0x107b39[_0x44eaf9])&&(_0x36f4dc=(_0x786d5f?_0x50c789(_0x786dd0,_0xb3f8b6,_0x36f4dc):_0x50c789(_0x36f4dc))||_0x36f4dc);return _0x786d5f&&_0x36f4dc&&li(_0x786dd0,_0xb3f8b6,_0x36f4dc),_0x36f4dc;},Me=(_0x305ff4,_0xfd7d00)=>(_0x4eacdf,_0x4ebd9a)=>_0xfd7d00(_0x4eacdf,_0x4ebd9a,_0x305ff4);let ne=class extends a['RxDisposable']{constructor(_0x5789d0,_0x289ae1,_0x33236f){const _0x51b3f3=_0x24c410;super(),u(this,_0x51b3f3(0x433),new Map()),u(this,_0x51b3f3(0x3a3),new v[(_0x51b3f3(0x29b))]()),(this['_univerInstanceService']=_0x5789d0,this[_0x51b3f3(0x495)]=_0x289ae1,this[_0x51b3f3(0x5d6)]=_0x33236f,this[_0x51b3f3(0x393)]());}[_0x24c410(0x54a)](){const _0x1be542=_0x24c410;super[_0x1be542(0x54a)](),this[_0x1be542(0x3a3)][_0x1be542(0x4a3)](),this[_0x1be542(0x433)][_0x1be542(0x202)](_0x5217d=>_0x5217d[_0x1be542(0x54a)]());}[_0x24c410(0x332)](_0x496ef5){const _0x5c1f3e=_0x24c410;return this[_0x5c1f3e(0x433)][_0x5c1f3e(0x3d7)](_0x496ef5)?this[_0x5c1f3e(0x433)][_0x5c1f3e(0x40c)](_0x496ef5)['cursorInfo$']:this[_0x5c1f3e(0x3a3)][_0x5c1f3e(0x404)](v['filter'](_0x2d4dab=>_0x2d4dab[_0x5c1f3e(0x4a2)]===_0x496ef5),v[_0x5c1f3e(0x20f)](_0x35503a=>_0x35503a['cursorInfo$']));}[_0x24c410(0x393)](){const _0x195722=_0x24c410;this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x195722(0x236)])[_0x195722(0x404)](v[_0x195722(0x2b1)](this[_0x195722(0x22f)]))[_0x195722(0x359)](async _0x144c90=>{const _0x424153=_0x195722,_0x4c004c=_0x144c90[_0x424153(0x444)](),_0x1f2c41=await this[_0x424153(0x1d2)](_0x4c004c);this[_0x424153(0x3a3)][_0x424153(0x4a9)](_0x1f2c41),this['_entities']['set'](_0x4c004c,_0x1f2c41);}),this[_0x195722(0x329)][_0x195722(0x1d6)](a[_0x195722(0x461)]['UNIVER_DOC'])[_0x195722(0x404)](v[_0x195722(0x2b1)](this['dispose$']))[_0x195722(0x404)](v[_0x195722(0x5ce)](_0x3cc4db=>!_0x3cc4db[_0x195722(0x444)]()['startsWith']('__')))['subscribe'](async _0xed5d6e=>{const _0x11d542=_0x195722,_0x1039bd=_0xed5d6e[_0x11d542(0x444)](),_0x2b5144=await this[_0x11d542(0x57b)](_0x1039bd);this[_0x11d542(0x3a3)]['next'](_0x2b5144),this['_entities']['set'](_0x1039bd,_0x2b5144);}),v[_0x195722(0x3e7)](this[_0x195722(0x329)][_0x195722(0x5c0)](a['UniverInstanceType'][_0x195722(0x489)]),this[_0x195722(0x329)]['getTypeOfUnitDisposed$'](a[_0x195722(0x461)][_0x195722(0x236)]))[_0x195722(0x404)](v[_0x195722(0x2b1)](this['dispose$']))['subscribe'](_0x22de6a=>{const _0x4b91e3=_0x195722,_0x3581b8=_0x22de6a[_0x4b91e3(0x444)](),_0x45bde1=this[_0x4b91e3(0x433)][_0x4b91e3(0x40c)](_0x3581b8);_0x45bde1&&(_0x45bde1[_0x4b91e3(0x54a)](),this['_entities'][_0x4b91e3(0x5a3)](_0x3581b8));});}async[_0x24c410(0x1d2)](_0x397e90){const _0xfc0567=_0x24c410,_0x532aa0=await this['_collabSessionService'][_0xfc0567(0x2b7)](_0x397e90),_0x232c46=this[_0xfc0567(0x495)][_0xfc0567(0x248)](Be,_0x397e90,_0x532aa0);return _0x232c46[_0xfc0567(0x478)](),_0x232c46;}async[_0x24c410(0x57b)](_0x26fcb8){const _0x28b340=_0x24c410,_0x32eba2=await this[_0x28b340(0x5d6)][_0x28b340(0x2b7)](_0x26fcb8),_0x1d4463=this[_0x28b340(0x495)][_0x28b340(0x248)](ke,_0x26fcb8,_0x32eba2);return _0x1d4463[_0x28b340(0x478)](),_0x1d4463;}};ne=_i([Me(0x0,a[_0x24c410(0x5e9)]),Me(0x1,a[_0x24c410(0x349)](a[_0x24c410(0x4f6)])),Me(0x2,a[_0x24c410(0x349)](exports[_0x24c410(0x2a1)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x240c40,_0x12f284){const _0x37f914=_0x24c410;let {radius:_0x3673ea,width:_0x18c98b,height:_0x2ad609}=_0x12f284;_0x3673ea=_0x3673ea!=null?_0x3673ea:0x0,_0x18c98b=_0x18c98b!=null?_0x18c98b:0x1e,_0x2ad609=_0x2ad609!=null?_0x2ad609:0x1e;let _0x44a90c=0x0,_0x451387=0x0,_0x79b73d=0x0;_0x44a90c=_0x451387=_0x79b73d=Math[_0x37f914(0x3bf)](_0x3673ea,_0x18c98b/0x2,_0x2ad609/0x2),_0x240c40['beginPath'](),_0x240c40['moveTo'](_0x44a90c,0x0),_0x240c40['lineTo'](_0x18c98b-_0x451387,0x0),_0x240c40[_0x37f914(0x372)](_0x18c98b-_0x451387,_0x451387,_0x451387,Math['PI']*0x3/0x2,0x0,!0x1),_0x240c40[_0x37f914(0x58a)](_0x18c98b,_0x2ad609-_0x79b73d),_0x240c40[_0x37f914(0x372)](_0x18c98b-_0x79b73d,_0x2ad609-_0x79b73d,_0x79b73d,0x0,Math['PI']/0x2,!0x1),_0x240c40['lineTo'](0x0,_0x2ad609),_0x240c40['lineTo'](0x0,_0x44a90c),_0x240c40[_0x37f914(0x372)](_0x44a90c,_0x44a90c,_0x44a90c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x240c40['closePath'](),_0x12f284[_0x37f914(0x4d3)]&&(_0x240c40[_0x37f914(0x2a9)](),_0x240c40[_0x37f914(0x586)]=_0x12f284[_0x37f914(0x4d3)],_0x12f284[_0x37f914(0x5f2)]==='evenodd'?_0x240c40[_0x37f914(0x4d3)]('evenodd'):_0x240c40[_0x37f914(0x4d3)](),_0x240c40['restore']());}class Oe extends O['Shape']{constructor(_0x29267c,_0x5664b4){const _0x36ddc4=_0x24c410;super(_0x29267c,_0x5664b4),u(this,'color'),u(this,_0x36ddc4(0x47d)),(this[_0x36ddc4(0x2ce)]=_0x5664b4==null?void 0x0:_0x5664b4[_0x36ddc4(0x2ce)],this[_0x36ddc4(0x47d)]=_0x5664b4==null?void 0x0:_0x5664b4[_0x36ddc4(0x47d)]);}static['drawWith'](_0xb05b2a,_0x3bf73c){const _0x68b83e=_0x24c410,{text:_0x4125c7,color:_0x3f7052}=_0x3bf73c;_0xb05b2a['save'](),_0xb05b2a['font']=_0x68b83e(0x527);const _0x2e74a6=_0xb05b2a[_0x68b83e(0x4f1)](_0x4125c7)[_0x68b83e(0x5f6)],_0xd57295=Math[_0x68b83e(0x3bf)](_0x2e74a6+0x2*Ae,lt);di(_0xb05b2a,{'height':de,'radius':0x4,'width':_0xd57295,'fill':_0x3f7052,'evented':!0x1}),_0xb05b2a[_0x68b83e(0x586)]=_0x68b83e(0x225);const _0xca8bc1=Ae,_0x320220=de-ui,_0x4377aa=lt-0x2*Ae;if(_0x2e74a6>_0x4377aa){let _0x10cda5='',_0x525b68=0x0;for(const _0x2eaee9 of _0x4125c7){const _0x3240ae=_0xb05b2a[_0x68b83e(0x4f1)](_0x2eaee9)[_0x68b83e(0x5f6)];if(_0x525b68+_0x3240ae<=_0x4377aa-_0xb05b2a[_0x68b83e(0x4f1)](_0x68b83e(0x30d))['width'])_0x10cda5+=_0x2eaee9,_0x525b68+=_0x3240ae;else{_0x10cda5+=_0x68b83e(0x30d);break;}}_0xb05b2a[_0x68b83e(0x53f)](_0x10cda5,_0xca8bc1,_0x320220);}else _0xb05b2a[_0x68b83e(0x53f)](_0x4125c7,_0xca8bc1,_0x320220);_0xb05b2a['restore']();}[_0x24c410(0x45a)](_0x2290e6){const _0x53a280=_0x24c410;Oe[_0x53a280(0x552)](_0x2290e6,this);}}const Le=_0x24c410(0x5ab),Si=_0x24c410(0x324),vi=_0x24c410(0x274),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x24c410(0x3dd);class ht{constructor(_0x5572f5,_0x35e70e,_0x5794d2,_0x46e951){const _0x383360=_0x24c410;u(this,_0x383360(0x5c7),[]),u(this,_0x383360(0x37b),null),u(this,_0x383360(0x1f3),null),u(this,_0x383360(0x1ea),null),u(this,_0x383360(0x218),null),u(this,_0x383360(0x517),null),(this['_cursor']=_0x5572f5,this[_0x383360(0x457)]=_0x35e70e,this[_0x383360(0x556)]=_0x5794d2,this['_document']=_0x46e951,this[_0x383360(0x4ae)]());}set[_0x24c410(0x326)](_0x32d633){const _0x13dd2f=_0x24c410;_0x32d633?(this[_0x13dd2f(0x1ea)]&&this[_0x13dd2f(0x1ea)][_0x13dd2f(0x5d2)](),this[_0x13dd2f(0x1f3)]&&this[_0x13dd2f(0x1f3)][_0x13dd2f(0x3bc)]()):(this[_0x13dd2f(0x1ea)]&&this[_0x13dd2f(0x1ea)][_0x13dd2f(0x3bc)](),this[_0x13dd2f(0x1f3)]&&this[_0x13dd2f(0x1f3)][_0x13dd2f(0x5d2)]());}[_0x24c410(0x54a)](){const _0x2130b0=_0x24c410;for(const _0x1dd49d of this[_0x2130b0(0x5c7)])_0x1dd49d[_0x2130b0(0x54a)]();this['_textBubble']&&this[_0x2130b0(0x1f3)]['dispose'](),this[_0x2130b0(0x1ea)]&&this[_0x2130b0(0x1ea)][_0x2130b0(0x54a)](),this[_0x2130b0(0x37b)]&&this['_anchor'][_0x2130b0(0x54a)](),this['_eventUnsubscribe']&&this[_0x2130b0(0x517)]();}[_0x24c410(0x4ae)](){const _0x1994cf=_0x24c410;var _0x2a8482;const {_docSkeleton:_0x387a25,_document:_0x3e469e}=this,{color:_0x10c353,name:_0xdf0776,ranges:_0x5ca937}=this[_0x1994cf(0x519)],_0x5da15a=_0x3e469e[_0x1994cf(0x3fe)](),{docsLeft:_0x5c5c1f,docsTop:_0x30882b}=_0x5da15a,_0x598945=new N['NodePositionConvertToCursor'](_0x5da15a,_0x387a25);for(const {startOffset:_0xd89f7b,endOffset:_0x593159,collapsed:_0x13cf3c,isActive:_0x2d8fc0}of _0x5ca937){const _0x1ad757=_0x387a25[_0x1994cf(0x561)](_0xd89f7b),_0x3c6525=_0x387a25[_0x1994cf(0x561)](_0x593159);if(_0x2d8fc0){const {contentBoxPointGroup:_0x4d1082}=_0x598945[_0x1994cf(0x545)](_0x3c6525,_0x3c6525);if(_0x4d1082[_0x1994cf(0x25b)]===0x0)continue;this[_0x1994cf(0x36a)](_0x10c353,_0x4d1082,_0x5c5c1f,_0x30882b,_0xdf0776),this['_eventUnsubscribe']=this[_0x1994cf(0x521)]();}if(!_0x13cf3c&&_0x1ad757&&_0x3c6525){if(N[_0x1994cf(0x520)](_0x1ad757,_0x3c6525)){const _0x38ee8c=new N[(_0x1994cf(0x594))](_0x5da15a,_0x387a25),{pointGroup:_0x467f9f}=(_0x2a8482=_0x38ee8c[_0x1994cf(0x545)](_0x1ad757,_0x3c6525))!=null?_0x2a8482:{};if(_0x467f9f==null||_0x467f9f[_0x1994cf(0x25b)]===0x0)continue;this[_0x1994cf(0x285)](_0x10c353,_0x467f9f,_0x5c5c1f,_0x30882b);}else{const {contentBoxPointGroup:_0x36cb4b}=_0x598945['getRangePointData'](_0x1ad757,_0x3c6525);if(_0x36cb4b[_0x1994cf(0x25b)]===0x0)continue;this[_0x1994cf(0x3d5)](_0x10c353,_0x36cb4b,_0x5c5c1f,_0x30882b);}}}}[_0x24c410(0x36a)](_0x1cc1e3,_0x12934e,_0x4363c1,_0x25964d,_0x33f90c){const _0x2ffab4=_0x24c410,_0x2f5020=this[_0x2ffab4(0x3c1)](_0x12934e),{left:_0xe0ea74,top:_0x3ad527,height:_0x503551}=_0x2f5020,_0x20ed7f=this[_0x2ffab4(0x2d5)](),_0x400506=mi/_0x20ed7f,_0x322ece=new O[(_0x2ffab4(0x46e))](Le+a[_0x2ffab4(0x45b)][_0x2ffab4(0x497)](le),{'left':_0xe0ea74+_0x4363c1-_0x400506,'top':_0x3ad527+_0x25964d,'height':_0x503551,'width':gi,'fill':_0x1cc1e3||O[_0x2ffab4(0x412)](a[_0x2ffab4(0x458)][_0x2ffab4(0x3c3)],0x0),'strokeWidth':_0x400506,'stroke':fi,'evented':!0x0});this[_0x2ffab4(0x37b)]=_0x322ece,this[_0x2ffab4(0x457)][_0x2ffab4(0x4de)](_0x322ece,N[_0x2ffab4(0x5e3)]);const _0x4a77ec=new O[(_0x2ffab4(0x46e))](Le+a[_0x2ffab4(0x45b)][_0x2ffab4(0x497)](le),{'left':_0xe0ea74+_0x4363c1-_0x400506,'top':_0x3ad527+_0x25964d-je/0x2,'height':je,'width':je,'fill':_0x1cc1e3||O[_0x2ffab4(0x412)](a[_0x2ffab4(0x458)][_0x2ffab4(0x3c3)],0x0),'strokeWidth':0x0,'stroke':_0x1cc1e3||O['getColor'](a[_0x2ffab4(0x458)][_0x2ffab4(0x3c3)],0x0),'evented':!0x1});this[_0x2ffab4(0x1ea)]=_0x4a77ec,this[_0x2ffab4(0x457)][_0x2ffab4(0x4de)](_0x4a77ec,N[_0x2ffab4(0x5e3)]);const _0x2ba8f5=new Oe(Le+a[_0x2ffab4(0x45b)]['generateRandomId'](le),{'left':_0xe0ea74+_0x4363c1-_0x400506,'top':_0x3ad527+_0x25964d-de,'text':_0x33f90c,'color':_0x1cc1e3});this['_textBubble']=_0x2ba8f5,this[_0x2ffab4(0x457)]['addObject'](_0x2ba8f5,N['TEXT_RANGE_LAYER_INDEX']),this[_0x2ffab4(0x326)]=!0x1;}['_handleHover'](){const _0x12b725=_0x24c410,_0x2ae6a4=this[_0x12b725(0x37b)][_0x12b725(0x245)][_0x12b725(0x584)](()=>{const _0x3fcbb9=_0x12b725;this[_0x3fcbb9(0x326)]=!0x0;}),_0x53e0a6=this[_0x12b725(0x37b)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5d6961=_0x12b725;this[_0x5d6961(0x218)]&&clearTimeout(this['_hideTimer']),this[_0x5d6961(0x218)]=setTimeout(()=>{const _0xfa3bd1=_0x5d6961;this[_0xfa3bd1(0x326)]=!0x1;},0x7d0);});return()=>{const _0x2f3f96=_0x12b725;_0x2ae6a4['unsubscribe'](),_0x53e0a6[_0x2f3f96(0x5d5)]();};}[_0x24c410(0x3d5)](_0x51ad76,_0x7c819a,_0x33e305,_0x4a21f4){const _0x475e2e=_0x24c410,_0xecbe25=new a['ColorKit'](_0x51ad76)[_0x475e2e(0x41b)](0.2)[_0x475e2e(0x34f)](),_0x465e87=new O['RegularPolygon'](Si+a['Tools'][_0x475e2e(0x497)](le),{'pointsGroup':_0x7c819a,'fill':_0xecbe25||O['getColor'](a[_0x475e2e(0x458)][_0x475e2e(0x3c3)],0.2),'left':_0x33e305,'top':_0x4a21f4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x475e2e(0x5c7)][_0x475e2e(0x222)](_0x465e87),this['_scene'][_0x475e2e(0x4de)](_0x465e87,N[_0x475e2e(0x5e3)]);}[_0x24c410(0x285)](_0x570174,_0xa4dab3,_0x838d0e,_0x585d57){const _0x210c9b=_0x24c410,_0x143288=new a[(_0x210c9b(0x44f))](_0x570174)['setAlpha'](0.2)[_0x210c9b(0x34f)](),_0x3ab16a=new O[(_0x210c9b(0x5c5))](vi+a['Tools'][_0x210c9b(0x497)](le),{'pointsGroup':_0xa4dab3,'fill':_0x143288||O[_0x210c9b(0x412)](a[_0x210c9b(0x458)]['black'],0.2),'left':_0x838d0e,'top':_0x585d57,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x210c9b(0x5c7)][_0x210c9b(0x222)](_0x3ab16a),this[_0x210c9b(0x457)]['addObject'](_0x3ab16a,N['TEXT_RANGE_LAYER_INDEX']);}[_0x24c410(0x3c1)](_0x3f9aa2){const _0xf9e6a3=_0x3f9aa2[0x0],_0x404906=_0xf9e6a3[0x0],_0x2b1349=_0xf9e6a3[0x2],{x:_0x33b28b,y:_0x1d6511}=_0x404906,{x:_0x497b73,y:_0x2b2da4}=_0x2b1349;return{'left':_0x33b28b,'top':_0x1d6511,'width':_0x497b73-_0x33b28b,'height':_0x2b2da4-_0x1d6511};}[_0x24c410(0x2d5)](){const _0x54d224=_0x24c410,{scaleX:_0x53c962,scaleY:_0x2eb07b}=this[_0x54d224(0x457)][_0x54d224(0x532)]();return Math[_0x54d224(0x23e)](_0x53c962,_0x2eb07b);}}var Ii=Object[_0x24c410(0x5d0)],pi=Object[_0x24c410(0x3e3)],Ci=(_0x160eab,_0xb7f845,_0x4a26fb,_0x2e3245)=>{const _0x5bb6be=_0x24c410;for(var _0x4b4f17=_0x2e3245>0x1?void 0x0:_0x2e3245?pi(_0xb7f845,_0x4a26fb):_0xb7f845,_0x56d0b2=_0x160eab[_0x5bb6be(0x25b)]-0x1,_0x5199ff;_0x56d0b2>=0x0;_0x56d0b2--)(_0x5199ff=_0x160eab[_0x56d0b2])&&(_0x4b4f17=(_0x2e3245?_0x5199ff(_0xb7f845,_0x4a26fb,_0x4b4f17):_0x5199ff(_0x4b4f17))||_0x4b4f17);return _0x2e3245&&_0x4b4f17&&Ii(_0xb7f845,_0x4a26fb,_0x4b4f17),_0x4b4f17;},ve=(_0x123527,_0x120f45)=>(_0x4ceab2,_0x149d24)=>_0x120f45(_0x4ceab2,_0x149d24,_0x123527);let Ve=class extends a['RxDisposable']{constructor(_0x475258,_0x128dc7,_0x5bb240,_0x21a891,_0x22d1c5){const _0x14a2eb=_0x24c410;super(),u(this,_0x14a2eb(0x431),[]),u(this,'_cursors',[]),(this[_0x14a2eb(0x59a)]=_0x475258,this[_0x14a2eb(0x2dd)]=_0x128dc7,this['_collabCursorController']=_0x5bb240,this[_0x14a2eb(0x2ed)]=_0x21a891,this[_0x14a2eb(0x266)]=_0x22d1c5,this[_0x14a2eb(0x393)]());}[_0x24c410(0x393)](){const _0x30f308=_0x24c410,_0x3b8550=this[_0x30f308(0x59a)][_0x30f308(0x253)],_0x31b2e9=this[_0x30f308(0x2dd)];this['disposeWithMe'](v[_0x30f308(0x2cf)]([this[_0x30f308(0x36e)][_0x30f308(0x332)](_0x3b8550),this[_0x30f308(0x266)][_0x30f308(0x273)]])['pipe'](E[_0x30f308(0x24d)](([_0x59bfce,_0x1e5660])=>({'skeleton':_0x31b2e9[_0x30f308(0x2c4)](),'cursors':[..._0x59bfce['values']()][_0x30f308(0x2b9)](_0x3b49d1=>({..._0x3b49d1,'color':_0x1e5660[_0x3b49d1[_0x30f308(0x2ce)]]}))})))[_0x30f308(0x359)](_0x36c259=>{const _0x5576c4=_0x30f308;if(this[_0x5576c4(0x25d)](),_0x36c259){const {skeleton:_0x4cfe43,cursors:_0x85c24e}=_0x36c259;this[_0x5576c4(0x2af)](_0x4cfe43,_0x85c24e);}})),this[_0x30f308(0x3a6)](),this[_0x30f308(0x1f9)]();}[_0x24c410(0x2af)](_0x3934de,_0x23483a){const _0x52451f=_0x24c410,{scene:_0x4b7ecb,mainComponent:_0x212ea5}=this['_context'],_0x270a9e=_0x23483a[_0x52451f(0x24d)](_0x1bb316=>new ht(_0x1bb316,_0x4b7ecb,_0x3934de,_0x212ea5));this[_0x52451f(0x431)]=_0x270a9e,this[_0x52451f(0x262)]=_0x23483a;}[_0x24c410(0x51a)](){const _0x236640=_0x24c410;this['_removeCollabCursors']();const {scene:_0x5b7461,mainComponent:_0x5013f9}=this[_0x236640(0x59a)],_0x5270db=this[_0x236640(0x2dd)][_0x236640(0x2c4)](),_0xa78cb7=this[_0x236640(0x262)][_0x236640(0x24d)](_0x2de76a=>new ht(_0x2de76a,_0x5b7461,_0x5270db,_0x5013f9));this['_cursorShapes']=_0xa78cb7;}[_0x24c410(0x25d)](){const _0x56ecc0=_0x24c410;this[_0x56ecc0(0x431)]['forEach'](_0x7adec0=>_0x7adec0[_0x56ecc0(0x54a)]()),this[_0x56ecc0(0x431)]=[];}[_0x24c410(0x1f9)](){const _0x2448d6=_0x24c410,_0xff6f8a=[N[_0x2448d6(0x2eb)]['id']];this[_0x2448d6(0x4b2)](this[_0x2448d6(0x2ed)]['onCommandExecuted'](_0x1a5c6b=>{const _0xbb707b=_0x2448d6;_0xff6f8a['includes'](_0x1a5c6b['id'])&&_0x1a5c6b[_0xbb707b(0x57a)]['unitId']===this[_0xbb707b(0x59a)][_0xbb707b(0x253)]&&this[_0xbb707b(0x51a)]();}));}[_0x24c410(0x3a6)](){const _0x3c4d72=_0x24c410;this[_0x3c4d72(0x4b2)](a[_0x3c4d72(0x420)](this[_0x3c4d72(0x59a)]['engine']['onTransformChange$'])[_0x3c4d72(0x404)](E[_0x3c4d72(0x5ce)](_0x1d7a10=>_0x1d7a10[_0x3c4d72(0x28b)]===O[_0x3c4d72(0x29d)][_0x3c4d72(0x2aa)]),E[_0x3c4d72(0x345)](0x10))[_0x3c4d72(0x359)](()=>{const _0x19f083=_0x3c4d72;this[_0x19f083(0x51a)]();}));}};Ve=Ci([ve(0x1,a[_0x24c410(0x349)](se[_0x24c410(0x460)])),ve(0x2,a[_0x24c410(0x349)](ne)),ve(0x3,a[_0x24c410(0x494)]),ve(0x4,a[_0x24c410(0x349)](a[_0x24c410(0x2a3)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x24c410(0x2e9)]{constructor(_0x1cf81c,_0x37f6ec){const _0x4e43a9=_0x24c410;super(_0x1cf81c,_0x37f6ec),u(this,_0x4e43a9(0x1d4)),u(this,_0x4e43a9(0x5cf),!0x1),u(this,'_range'),u(this,_0x4e43a9(0x588),''),u(this,_0x4e43a9(0x4aa),_0x4e43a9(0x5d9)),u(this,'_backgroundColor'),(_0x37f6ec&&this[_0x4e43a9(0x529)](_0x37f6ec),this[_0x4e43a9(0x245)]['subscribeEvent'](()=>this[_0x4e43a9(0x529)]({'hovered':!0x0})),this[_0x4e43a9(0x21b)][_0x4e43a9(0x584)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x24c410(0x529)](_0x3fa885){const _0x523452=_0x24c410;var _0x4baa0c,_0x26cc32,_0x2f40f1,_0x17fff7,_0x53a856,_0x829c92;this[_0x523452(0x1d4)]=(_0x4baa0c=_0x3fa885['color'])!=null?_0x4baa0c:this[_0x523452(0x1d4)],this[_0x523452(0x5cf)]=(_0x26cc32=_0x3fa885[_0x523452(0x5a6)])!=null?_0x26cc32:this[_0x523452(0x5cf)],this[_0x523452(0x440)]=(_0x2f40f1=_0x3fa885[_0x523452(0x2f6)])!=null?_0x2f40f1:this['_range'],this[_0x523452(0x588)]=(_0x17fff7=_0x3fa885['name'])!=null?_0x17fff7:this['_name'],this[_0x523452(0x4aa)]=(_0x53a856=_0x3fa885[_0x523452(0x452)])!=null?_0x53a856:this[_0x523452(0x4aa)],this[_0x523452(0x58e)]=(_0x829c92=_0x3fa885[_0x523452(0x543)])!=null?_0x829c92:this['_backgroundColor'],this['transformByState']({'width':_0x3fa885[_0x523452(0x5f6)],'height':_0x3fa885['height']});}['onMouseMove'](_0x4a5587){const _0x28d1c4=_0x24c410,{row:_0xa226ce,column:_0x237d55}=_0x4a5587;if(_0xa226ce>=this[_0x28d1c4(0x440)][_0x28d1c4(0x500)]&&_0xa226ce<=this[_0x28d1c4(0x440)][_0x28d1c4(0x5e7)]&&_0x237d55>=this[_0x28d1c4(0x440)][_0x28d1c4(0x446)]&&_0x237d55<=this[_0x28d1c4(0x440)][_0x28d1c4(0x206)]){this[_0x28d1c4(0x529)]({'hovered':!0x0});return;}this[_0x28d1c4(0x529)]({'hovered':!0x1});}[_0x24c410(0x3bb)](_0x203ed1){return!0x1;}[_0x24c410(0x45a)](_0x369838){const _0xeb9731=_0x24c410;O[_0xeb9731(0x46e)][_0xeb9731(0x552)](_0x369838,{'width':this[_0xeb9731(0x5f6)],'height':this['height'],'strokeWidth':bi,'stroke':this[_0xeb9731(0x1d4)],'evented':!0x1,'fill':this[_0xeb9731(0x58e)]}),this[_0xeb9731(0x5cf)]&&(_0x369838[_0xeb9731(0x2a9)](),_0x369838[_0xeb9731(0x53e)](0x1,0x0,0x0,0x1,this[_0xeb9731(0x5f6)],this['_labelPosition']===_0xeb9731(0x3cd)?0x0:-de),Oe[_0xeb9731(0x552)](_0x369838,{'text':this['_name'],'color':this[_0xeb9731(0x1d4)]}),_0x369838['restore']());}}var Ti=Object[_0x24c410(0x5d0)],Ri=Object['getOwnPropertyDescriptor'],Oi=(_0xda6190,_0x3eddcf,_0x6e90a0,_0x1921f7)=>{const _0x52bbc4=_0x24c410;for(var _0x1ebfd4=_0x1921f7>0x1?void 0x0:_0x1921f7?Ri(_0x3eddcf,_0x6e90a0):_0x3eddcf,_0x145193=_0xda6190[_0x52bbc4(0x25b)]-0x1,_0x2f9353;_0x145193>=0x0;_0x145193--)(_0x2f9353=_0xda6190[_0x145193])&&(_0x1ebfd4=(_0x1921f7?_0x2f9353(_0x3eddcf,_0x6e90a0,_0x1ebfd4):_0x2f9353(_0x1ebfd4))||_0x1ebfd4);return _0x1921f7&&_0x1ebfd4&&Ti(_0x3eddcf,_0x6e90a0,_0x1ebfd4),_0x1ebfd4;},$e=(_0x50d7b3,_0x4714c4)=>(_0x29a9a1,_0x483d94)=>_0x4714c4(_0x29a9a1,_0x483d94,_0x50d7b3);const Di=0x1389;let We=class extends a['RxDisposable']{constructor(_0x52f2c7,_0x14b28f,_0x170f3a,_0x247327){const _0xf4c1ab=_0x24c410;super(),u(this,'_cursors',new Set()),u(this,_0xf4c1ab(0x4ba),null),(this[_0xf4c1ab(0x59a)]=_0x52f2c7,this[_0xf4c1ab(0x470)]=_0x14b28f,this[_0xf4c1ab(0x36e)]=_0x170f3a,this[_0xf4c1ab(0x266)]=_0x247327,this[_0xf4c1ab(0x393)]());}['_init'](){const _0x20ab57=_0x24c410;this[_0x20ab57(0x470)][_0x20ab57(0x402)][_0x20ab57(0x404)](E[_0x20ab57(0x2b1)](this[_0x20ab57(0x22f)]),E[_0x20ab57(0x20f)](_0x32f9ca=>{const _0x30fc4c=_0x20ab57;if(_0x32f9ca){const _0x11dc87=_0x32f9ca['sheetId'];return v['combineLatest'](this[_0x30fc4c(0x36e)][_0x30fc4c(0x332)](this['_context'][_0x30fc4c(0x253)]),this[_0x30fc4c(0x266)][_0x30fc4c(0x273)])[_0x30fc4c(0x404)](E[_0x30fc4c(0x24d)](([_0x50a924,_0x24b180])=>{const _0x2a7fa6=_0x30fc4c,_0x3344ce=new Map();return _0x50a924[_0x2a7fa6(0x202)]((_0x335ab2,_0x1d90fb)=>{const _0xa69682=_0x2a7fa6;if(_0x335ab2[_0xa69682(0x37a)]===_0x11dc87){const _0xc4ddbd={..._0x335ab2};_0xc4ddbd[_0xa69682(0x2ce)]=_0x24b180[_0x335ab2[_0xa69682(0x2ce)]],_0x3344ce[_0xa69682(0x48d)](_0x1d90fb,_0xc4ddbd);}}),{'skeleton':_0x32f9ca,'cursors':_0x3344ce};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1889c5,cursors:_0x53b1b3})=>{const _0x1c0405=_0x20ab57;this[_0x1c0405(0x25d)](),_0x1889c5&&this['_updateCollabCursors'](_0x1889c5,_0x53b1b3);}),this[_0x20ab57(0x470)][_0x20ab57(0x402)][_0x20ab57(0x359)](_0x209137=>{const _0x4a7612=_0x20ab57;if(_0x209137==null)return;const {skeleton:_0x34b3ed}=_0x209137,{scene:_0x189517}=this[_0x4a7612(0x59a)];_0x189517[_0x4a7612(0x2f7)]['subscribeEvent'](a['debounce'](_0x37ca52=>{const _0x14da14=_0x4a7612;var _0x5859db,_0x2ea291;const {offsetX:_0x177c0f,offsetY:_0x122d97}=_0x37ca52,{x:_0x4509be,y:_0x350f1e}=_0x189517[_0x14da14(0x1ce)](O[_0x14da14(0x265)]['FromArray']([_0x177c0f,_0x122d97])),{scaleX:_0x3c9986,scaleY:_0x2989c8}=_0x189517[_0x14da14(0x532)](),_0x57ee70=_0x189517[_0x14da14(0x32f)](te[_0x14da14(0x3fd)]['VIEW_MAIN']),_0x400062=_0x189517[_0x14da14(0x26b)](O[_0x14da14(0x265)][_0x14da14(0x483)]([_0x4509be,_0x350f1e]),_0x57ee70),_0x29e503=_0x34b3ed[_0x14da14(0x3d3)](_0x177c0f,_0x122d97,_0x3c9986,_0x2989c8,_0x400062);((_0x5859db=this[_0x14da14(0x4ba)])==null?void 0x0:_0x5859db[_0x14da14(0x5f5)])===_0x29e503[_0x14da14(0x5f5)]&&((_0x2ea291=this[_0x14da14(0x4ba)])==null?void 0x0:_0x2ea291['row'])===_0x29e503[_0x14da14(0x3b4)]||this[_0x14da14(0x262)]['forEach'](_0x34876d=>{_0x34876d['onMouseMove'](_0x29e503);});},0x64));});}['_updateCollabCursors'](_0x41ada6,_0x3b6022){const _0x108367=_0x24c410;var _0x135b4b;const _0x3b11eb=(_0x135b4b=this['_sheetSkeletonManagerService'][_0x108367(0x377)]())==null?void 0x0:_0x135b4b['skeleton'];if(!_0x3b11eb)return;const _0x430cf5=this['_getSheetObject']();if(!_0x430cf5)return;this['_cursors'][_0x108367(0x202)](_0x233901=>{_0x233901['makeDirty']();});const {scene:_0x3bd178}=_0x430cf5,_0x6ccc32=yi(Array['from'](_0x3b6022[_0x108367(0x49b)]()))[_0x108367(0x24d)](_0x5e91b7=>{const _0x2acf8d=_0x108367,{color:_0x1dd4ea,range:_0xa98b6d,name:_0x21f569,selection:_0xe9c193,sheetID:_0x5a0315}=_0x5e91b7,{startColumn:_0x587ffa,startRow:_0x56b9b0,endColumn:_0x4b9b68,endRow:_0x38665e}=_0xa98b6d,_0x64d95d=te['getCoordByCell'](_0x56b9b0,_0x587ffa,_0x3bd178,_0x3b11eb),_0x1279c5=te[_0x2acf8d(0x308)](_0x38665e,_0x4b9b68,_0x3bd178,_0x3b11eb),{columnHeaderHeightAndMarginTop:_0x1a0c58}=_0x3b11eb,{startX:_0x3b1e84,startY:_0x51dcfd}=_0x64d95d,{endX:_0x4f5e91,endY:_0x4f7532}=_0x1279c5,_0x3c9a1f=_0x4f5e91-_0x3b1e84,_0x39ab41=_0x4f7532-_0x51dcfd,_0x357411={'labelPosition':_0x51dcfd-_0x1a0c58>=de?_0x2acf8d(0x5d9):_0x2acf8d(0x3cd),'sheetID':_0x5a0315,'range':_0xa98b6d,'color':_0x1dd4ea,'name':_0x21f569,'selection':_0xe9c193,'left':_0x3b1e84,'top':_0x51dcfd,'width':_0x3c9a1f,'height':_0x39ab41,'evented':!0x1,'zIndex':Di};return new Pt(_0x21f569,_0x357411);});_0x3bd178[_0x108367(0x56c)](_0x6ccc32,Ei),this[_0x108367(0x262)]=new Set(_0x6ccc32);}[_0x24c410(0x25d)](){const _0x366eaf=_0x24c410;var _0x2816ac;(_0x2816ac=this[_0x366eaf(0x262)])==null||_0x2816ac[_0x366eaf(0x202)](_0x294762=>_0x294762['dispose']());}[_0x24c410(0x39a)](){const _0x29fd18=_0x24c410;return te[_0x29fd18(0x5eb)](this[_0x29fd18(0x59a)][_0x29fd18(0x4c4)],this[_0x29fd18(0x59a)]);}};We=Oi([$e(0x1,a[_0x24c410(0x349)](te['SheetSkeletonManagerService'])),$e(0x2,a[_0x24c410(0x349)](ne)),$e(0x3,a[_0x24c410(0x349)](a[_0x24c410(0x2a3)]))],We);function yi(_0x38a75e){const _0x394b53=_0x24c410,_0xbe872c=new Map();return _0x38a75e[_0x394b53(0x202)](_0x102142=>{const _0x244535=_0x394b53;if(_0xbe872c[_0x244535(0x3d7)](_0x102142[_0x244535(0x27b)])){const _0x480005=_0xbe872c[_0x244535(0x40c)](_0x102142[_0x244535(0x27b)]);_0x480005[_0x244535(0x356)]+=',\x20'+_0x102142[_0x244535(0x356)];}else _0xbe872c[_0x244535(0x48d)](_0x102142[_0x244535(0x27b)],_0x102142);}),Array['from'](_0xbe872c[_0x394b53(0x49b)]());}var M=function(){const _0x505afe=_0x24c410;return M=Object[_0x505afe(0x232)]||function(_0x38679e){const _0x3684ba=_0x505afe;for(var _0x413370,_0x1a7a76=0x1,_0x21ef18=arguments['length'];_0x1a7a76<_0x21ef18;_0x1a7a76++){_0x413370=arguments[_0x1a7a76];for(var _0x3bd367 in _0x413370)Object[_0x3684ba(0x53c)][_0x3684ba(0x48e)][_0x3684ba(0x5a2)](_0x413370,_0x3bd367)&&(_0x38679e[_0x3bd367]=_0x413370[_0x3bd367]);}return _0x38679e;},M['apply'](this,arguments);},Ui=function(_0x1f0ec4,_0x2e7bbf){const _0x15c1a1=_0x24c410;var _0x3e523e={};for(var _0x9bf7dd in _0x1f0ec4)Object[_0x15c1a1(0x53c)][_0x15c1a1(0x48e)][_0x15c1a1(0x5a2)](_0x1f0ec4,_0x9bf7dd)&&_0x2e7bbf[_0x15c1a1(0x403)](_0x9bf7dd)<0x0&&(_0x3e523e[_0x9bf7dd]=_0x1f0ec4[_0x9bf7dd]);if(_0x1f0ec4!=null&&typeof Object['getOwnPropertySymbols']==_0x15c1a1(0x5ac)){for(var _0x2e08bb=0x0,_0x9bf7dd=Object['getOwnPropertySymbols'](_0x1f0ec4);_0x2e08bb<_0x9bf7dd['length'];_0x2e08bb++)_0x2e7bbf[_0x15c1a1(0x403)](_0x9bf7dd[_0x2e08bb])<0x0&&Object['prototype'][_0x15c1a1(0x25c)][_0x15c1a1(0x5a2)](_0x1f0ec4,_0x9bf7dd[_0x2e08bb])&&(_0x3e523e[_0x9bf7dd[_0x2e08bb]]=_0x1f0ec4[_0x9bf7dd[_0x2e08bb]]);}return _0x3e523e;},Ze=P[_0x24c410(0x425)](function(_0x1d7818,_0x35974a){const _0xc9cea8=_0x24c410;var _0x5645c4=_0x1d7818[_0xc9cea8(0x4cf)],_0x40b37a=_0x1d7818['id'],_0x2de351=_0x1d7818[_0xc9cea8(0x4dc)],_0x557fe9=_0x1d7818[_0xc9cea8(0x28c)],_0x160602=Ui(_0x1d7818,[_0xc9cea8(0x4cf),'id','className',_0xc9cea8(0x28c)]),_0x116d21=_0xc9cea8(0x1d8)['concat'](_0x40b37a,'\x20')[_0xc9cea8(0x295)](_0x2de351||'')[_0xc9cea8(0x3dc)](),_0x5c7e0d=P[_0xc9cea8(0x576)]('_'[_0xc9cea8(0x295)](Ni()));return wt(_0x5645c4,''[_0xc9cea8(0x295)](_0x40b37a),{'defIds':_0x5645c4['defIds'],'idSuffix':_0x5c7e0d['current']},M({'ref':_0x35974a,'className':_0x116d21},_0x160602),_0x557fe9);});function wt(_0xe5c892,_0x28f410,_0x30942a,_0x444f97,_0x274ba9){const _0x27ee97=_0x24c410;return P[_0x27ee97(0x1e0)](_0xe5c892[_0x27ee97(0x338)],M(M({'key':_0x28f410},Pi(_0xe5c892,_0x30942a,_0x274ba9)),_0x444f97),(wi(_0xe5c892,_0x30942a)[_0x27ee97(0x38d)]||[])['map'](function(_0x14a848,_0x4f4b30){const _0x3abe37=_0x27ee97;return wt(_0x14a848,''['concat'](_0x28f410,'-')['concat'](_0xe5c892[_0x3abe37(0x338)],'-')[_0x3abe37(0x295)](_0x4f4b30),_0x30942a,void 0x0,_0x274ba9);}));}function Pi(_0x509d59,_0x5112e6,_0x55231d){const _0x5818b6=_0x24c410;var _0x9160c6=M({},_0x509d59[_0x5818b6(0x375)]);_0x55231d!=null&&_0x55231d['colorChannel1']&&_0x9160c6[_0x5818b6(0x4d3)]===_0x5818b6(0x2e7)&&(_0x9160c6[_0x5818b6(0x4d3)]=_0x55231d[_0x5818b6(0x2e7)]);var _0x1cddcc=_0x5112e6[_0x5818b6(0x54d)];return!_0x1cddcc||_0x1cddcc[_0x5818b6(0x25b)]===0x0||(_0x509d59[_0x5818b6(0x338)]===_0x5818b6(0x357)&&_0x9160c6[_0x5818b6(0x5a9)]&&(_0x9160c6['xlink:href']=_0x9160c6[_0x5818b6(0x5a9)]+_0x5112e6[_0x5818b6(0x57c)]),Object[_0x5818b6(0x538)](_0x9160c6)[_0x5818b6(0x202)](function(_0x5b8179){const _0x5a7182=_0x5818b6;var _0x8bc83e=_0x5b8179[0x0],_0x2c2c04=_0x5b8179[0x1];typeof _0x2c2c04=='string'&&(_0x9160c6[_0x8bc83e]=_0x2c2c04[_0x5a7182(0x2d0)](/url\(#(.*)\)/,_0x5a7182(0x1fe)[_0x5a7182(0x295)](_0x5112e6[_0x5a7182(0x57c)],')')));})),_0x9160c6;}function wi(_0xd69de1,_0x4605b2){const _0x2346de=_0x24c410;var _0x40d892,_0x2124e4=_0x4605b2[_0x2346de(0x54d)];return!_0x2124e4||_0x2124e4[_0x2346de(0x25b)]===0x0?_0xd69de1:_0xd69de1[_0x2346de(0x338)]===_0x2346de(0x38a)&&(!((_0x40d892=_0xd69de1[_0x2346de(0x38d)])===null||_0x40d892===void 0x0)&&_0x40d892[_0x2346de(0x25b)])?M(M({},_0xd69de1),{'children':_0xd69de1[_0x2346de(0x38d)][_0x2346de(0x24d)](function(_0xf9cfe6){const _0x2d581a=_0x2346de;return typeof _0xf9cfe6[_0x2d581a(0x375)]['id']==_0x2d581a(0x55f)&&_0x2124e4&&_0x2124e4['indexOf'](_0xf9cfe6['attrs']['id'])>-0x1?M(M({},_0xf9cfe6),{'attrs':M(M({},_0xf9cfe6[_0x2d581a(0x375)]),{'id':_0xf9cfe6[_0x2d581a(0x375)]['id']+_0x4605b2[_0x2d581a(0x57c)]})}):_0xf9cfe6;})}):_0xd69de1;}function Ni(){const _0x49611b=_0x24c410;return Math[_0x49611b(0x247)]()[_0x49611b(0x578)](0x24)['substring'](0x2,0x8);}Ze[_0x24c410(0x364)]=_0x24c410(0x1e7);var Mi={'tag':'svg','attrs':{'fill':_0x24c410(0x27e),'viewBox':_0x24c410(0x293),'width':_0x24c410(0x56e),'height':_0x24c410(0x56e)},'children':[{'tag':'g','attrs':{'clipPath':_0x24c410(0x334)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'stroke':_0x24c410(0x597),'d':_0x24c410(0x2df),'strokeLinecap':_0x24c410(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x24c410(0x38a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x24c410(0x3f6)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'fill':_0x24c410(0x4d1),'d':_0x24c410(0x589)}}]}]}],'defIds':[_0x24c410(0x3f6)]},Nt=P[_0x24c410(0x425)](function(_0x256bca,_0x3e2296){const _0x1f7188=_0x24c410;return P['createElement'](Ze,Object[_0x1f7188(0x232)]({},_0x256bca,{'id':_0x1f7188(0x467),'ref':_0x3e2296,'icon':Mi}));});Nt[_0x24c410(0x364)]=_0x24c410(0x34e);var Ai={'tag':_0x24c410(0x2c1),'attrs':{'fill':_0x24c410(0x27e),'viewBox':_0x24c410(0x2de),'width':_0x24c410(0x56e),'height':_0x24c410(0x56e)},'children':[{'tag':'g','attrs':{'clipPath':_0x24c410(0x45c)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'stroke':_0x24c410(0x597),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x24c410(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x24c410(0x38a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x24c410(0x439)},'children':[{'tag':_0x24c410(0x5bc),'attrs':{'fill':_0x24c410(0x4d1),'d':_0x24c410(0x589),'transform':_0x24c410(0x4ef)}}]}]}],'defIds':[_0x24c410(0x439)]},Mt=P[_0x24c410(0x425)](function(_0x31b160,_0x1fa4f8){const _0x3d7ba0=_0x24c410;return P[_0x3d7ba0(0x1e0)](Ze,Object['assign']({},_0x31b160,{'id':'on-line-single','ref':_0x1fa4f8,'icon':Ai}));});Mt['displayName']=_0x24c410(0x456);function At(_0x5ccc50){const _0x2372f7=_0x24c410;var _0x3fa349,_0x1b14d7,_0x27c30f='';if(typeof _0x5ccc50=='string'||typeof _0x5ccc50==_0x2372f7(0x4a0))_0x27c30f+=_0x5ccc50;else{if(typeof _0x5ccc50=='object'){if(Array['isArray'](_0x5ccc50)){var _0x5e70fd=_0x5ccc50[_0x2372f7(0x25b)];for(_0x3fa349=0x0;_0x3fa349<_0x5e70fd;_0x3fa349++)_0x5ccc50[_0x3fa349]&&(_0x1b14d7=At(_0x5ccc50[_0x3fa349]))&&(_0x27c30f&&(_0x27c30f+='\x20'),_0x27c30f+=_0x1b14d7);}else{for(_0x1b14d7 in _0x5ccc50)_0x5ccc50[_0x1b14d7]&&(_0x27c30f&&(_0x27c30f+='\x20'),_0x27c30f+=_0x1b14d7);}}}return _0x27c30f;}function Li(){const _0x3e2508=_0x24c410;for(var _0x25daf3,_0x2dddaf,_0x38ad1f=0x0,_0x3a7d97='',_0x415111=arguments[_0x3e2508(0x25b)];_0x38ad1f<_0x415111;_0x38ad1f++)(_0x25daf3=arguments[_0x38ad1f])&&(_0x2dddaf=At(_0x25daf3))&&(_0x3a7d97&&(_0x3a7d97+='\x20'),_0x3a7d97+=_0x2dddaf);return _0x3a7d97;}const ji='univer-online-status-icon',$i=_0x24c410(0x5b4),Hi=_0x24c410(0x414),xi=_0x24c410(0x5e0),ki=_0x24c410(0x2ef),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x59111d){const _0x4b1354=_0x24c410;switch(_0x59111d){case U['OFFLINE']:return _0x4b1354(0x209);case U[_0x4b1354(0x26a)]:return _0x4b1354(0x42f);case U['FETCH_MISS']:return _0x4b1354(0x1dc);case U[_0x4b1354(0x2ea)]:return'collabStatus.notCollab';case U[_0x4b1354(0x263)]:case U[_0x4b1354(0x4ce)]:case U[_0x4b1354(0x26e)]:return _0x4b1354(0x344);case U[_0x4b1354(0x4fb)]:return'collabStatus.synced';}}function Lt(_0x358f82){const _0x1fc557=_0x24c410,{status$:_0x29eaed}=_0x358f82,_0x1fa7f8=A['useObservable'](_0x29eaed,U[_0x1fc557(0x2ea)]),_0x16df21=a[_0x1fc557(0x251)](a[_0x1fc557(0x388)]),_0x1c43ab=a[_0x1fc557(0x251)](exports['CollaborationSessionService']),_0xf8a0b=_0x1fa7f8!==U[_0x1fc557(0x3e9)],_0x230b2d=_0x16df21['t'](Bi(_0x1fa7f8)),_0x4bdc0f=Li(he[_0x1fc557(0x1eb)],{[he[_0x1fc557(0x32c)]]:_0xf8a0b,[he['offline']]:!_0xf8a0b}),_0xe56505=_0xf8a0b?P[_0x1fc557(0x1e0)](Mt,null):P['createElement'](Nt,null),_0x49142a=P[_0x1fc557(0x314)](()=>{const _0x2551dd=_0x1fc557;_0xf8a0b||_0x1c43ab[_0x2551dd(0x5b3)]();},[_0xf8a0b,_0x1c43ab]);function _0x45be80(){const _0x45de4d=_0x1fc557;return P[_0x45de4d(0x1e0)](_0x45de4d(0x57e),{'className':_0x4bdc0f,'onClick':_0x49142a},P[_0x45de4d(0x1e0)](_0x45de4d(0x57e),{'className':he[_0x45de4d(0x2ff)]},_0xe56505),P[_0x45de4d(0x1e0)](_0x45de4d(0x57e),{'className':he[_0x45de4d(0x3e6)]},_0x230b2d));}return _0xf8a0b?_0x45be80():P[_0x1fc557(0x1e0)](X[_0x1fc557(0x5b9)],{'title':_0x16df21['t'](_0x1fc557(0x2f3))},_0x45be80());}var Vi=Object[_0x24c410(0x5d0)],Wi=Object['getOwnPropertyDescriptor'],Fi=(_0x531b34,_0xbb8c1a,_0x45bcc6,_0x3db839)=>{for(var _0x563d78=_0x3db839>0x1?void 0x0:_0x3db839?Wi(_0xbb8c1a,_0x45bcc6):_0xbb8c1a,_0x23dd25=_0x531b34['length']-0x1,_0x97a6e6;_0x23dd25>=0x0;_0x23dd25--)(_0x97a6e6=_0x531b34[_0x23dd25])&&(_0x563d78=(_0x3db839?_0x97a6e6(_0xbb8c1a,_0x45bcc6,_0x563d78):_0x97a6e6(_0x563d78))||_0x563d78);return _0x3db839&&_0x563d78&&Vi(_0xbb8c1a,_0x45bcc6,_0x563d78),_0x563d78;},ge=(_0x4577e5,_0x512441)=>(_0x4fcb7d,_0x2ba5e3)=>_0x512441(_0x4fcb7d,_0x2ba5e3,_0x4577e5);exports[_0x24c410(0x4df)]=class extends a[_0x24c410(0x2f0)]{constructor(_0x4c2723,_0x2e9efa,_0x3822ac,_0x3c143f){const _0x168085=_0x24c410;super(),u(this,'_status$',new v['BehaviorSubject'](U[_0x168085(0x2ea)])),(this[_0x168085(0x329)]=_0x4c2723,this[_0x168085(0x220)]=_0x2e9efa,this[_0x168085(0x495)]=_0x3822ac,this[_0x168085(0x46d)]=_0x3c143f,this[_0x168085(0x210)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x4533af=_0x24c410;this[_0x4533af(0x4b2)](this[_0x4533af(0x329)][_0x4533af(0x355)][_0x4533af(0x404)](v['switchMap'](()=>{const _0xd4e302=_0x4533af,_0x2f80fa=this['_univerInstanceService'][_0xd4e302(0x39f)]();return _0x2f80fa?this[_0xd4e302(0x46d)][_0xd4e302(0x35a)](_0x2f80fa[_0xd4e302(0x444)]()):v['of'](null);}),v[_0x4533af(0x20f)](_0x444e39=>_0x444e39?_0x444e39[_0x4533af(0x2bf)]:v['of'](U[_0x4533af(0x2ea)])))[_0x4533af(0x359)](_0x4362aa=>{const _0x2bf419=_0x4533af;this[_0x2bf419(0x268)][_0x2bf419(0x4a9)](_0x4362aa);}));}[_0x24c410(0x210)](){const _0x9d353=_0x24c410;this[_0x9d353(0x4b2)](this[_0x9d353(0x220)][_0x9d353(0x516)](A[_0x9d353(0x341)][_0x9d353(0x506)],()=>a[_0x9d353(0x44a)](Gi({'status$':this[_0x9d353(0x268)][_0x9d353(0x343)]()}),this[_0x9d353(0x495)])));}},exports['DesktopCollaborationStatusDisplayController']=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A[_0x24c410(0x244)]),ge(0x2,a[_0x24c410(0x349)](a['Injector'])),ge(0x3,a[_0x24c410(0x349)](exports[_0x24c410(0x3df)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0x775bb9){const {status$:_0x3699ae}=_0x775bb9;return function(){const _0xd64e7c=_0x3b7c;return P[_0xd64e7c(0x1e0)](Lt,{'status$':_0x3699ae});};}const Qe=a[_0x24c410(0x2ee)]('uni.network.url-service');var Yi=Object[_0x24c410(0x5d0)],Ki=Object[_0x24c410(0x3e3)],Xi=(_0x7877e2,_0x4934fb,_0x310ee4,_0x54be77)=>{const _0x1b9713=_0x24c410;for(var _0x16c2e8=_0x54be77>0x1?void 0x0:_0x54be77?Ki(_0x4934fb,_0x310ee4):_0x4934fb,_0x1525ec=_0x7877e2[_0x1b9713(0x25b)]-0x1,_0x1266f5;_0x1525ec>=0x0;_0x1525ec--)(_0x1266f5=_0x7877e2[_0x1525ec])&&(_0x16c2e8=(_0x54be77?_0x1266f5(_0x4934fb,_0x310ee4,_0x16c2e8):_0x1266f5(_0x16c2e8))||_0x16c2e8);return _0x54be77&&_0x16c2e8&&Yi(_0x4934fb,_0x310ee4,_0x16c2e8),_0x16c2e8;},ee=(_0x26fae6,_0x4d9cca)=>(_0x274fb1,_0x30a377)=>_0x4d9cca(_0x274fb1,_0x30a377,_0x26fae6);exports[_0x24c410(0x4d8)]=class extends a[_0x24c410(0x284)]{constructor(_0x159a78,_0xc5f99d,_0x4889f6,_0x527bc4,_0x5a7840,_0x53e296){const _0x42c645=_0x24c410;super(),this[_0x42c645(0x469)]=_0x159a78,this[_0x42c645(0x518)]=_0xc5f99d,this[_0x42c645(0x2ed)]=_0x4889f6,this[_0x42c645(0x2b3)]=_0x527bc4,this[_0x42c645(0x5d1)]=_0x5a7840,_0x53e296?_0x53e296==null||_0x53e296[_0x42c645(0x3af)]()[_0x42c645(0x33f)](()=>this[_0x42c645(0x393)]()):(this['_logService']['debug']('[DataLoaderController]',_0x42c645(0x1e3)),this['_init']());}async[_0x24c410(0x393)](){const _0x46f57d=_0x24c410,_0x16a8e2=this[_0x46f57d(0x469)][_0x46f57d(0x468)](_0x46f57d(0x4c4)),_0x33bc52=this[_0x46f57d(0x469)][_0x46f57d(0x468)](_0x46f57d(0x28b));if(!_0x16a8e2||!_0x33bc52){this[_0x46f57d(0x518)][_0x46f57d(0x347)](_0x46f57d(0x258),_0x46f57d(0x287));return;}switch(Number(_0x33bc52)){case $['UNIVER_SHEET']:{const _0x2c3c18=await this[_0x46f57d(0x392)](_0x16a8e2);this['_setupSubUnitSync'](_0x2c3c18);break;}case $[_0x46f57d(0x489)]:{await this[_0x46f57d(0x304)](_0x16a8e2);break;}default:{this[_0x46f57d(0x518)]['error'](_0x46f57d(0x258),_0x46f57d(0x35b));break;}}}async[_0x24c410(0x2be)](_0x143526){const _0x2f9703=_0x24c410;await this[_0x2f9703(0x5f1)](_0x143526),_0x143526[_0x2f9703(0x2e0)]['pipe'](v['takeUntil'](this['dispose$']))[_0x2f9703(0x359)](_0x2c7c09=>{_0x2c7c09&&this['_updateURLWithCurrentState'](_0x2c7c09);}),this['_urlService'][_0x2f9703(0x443)][_0x2f9703(0x404)](v['takeUntil'](this[_0x2f9703(0x22f)]))['subscribe'](()=>this[_0x2f9703(0x5f1)](_0x143526));}[_0x24c410(0x2b0)](_0x22cd1a,_0x5d84a4=!0x1){const _0x4a35be=_0x24c410,_0xe820c0=this['_urlService'][_0x4a35be(0x468)](_0x4a35be(0x4e1));_0x22cd1a[_0x4a35be(0x5b7)]()!==_0xe820c0&&this['_urlService']['setParam']('subunit',_0x22cd1a[_0x4a35be(0x5b7)](),_0x5d84a4);}async[_0x24c410(0x5f1)](_0x15dd09){const _0x5c360f=_0x24c410;var _0x766f0;const _0x16e6c2=this[_0x5c360f(0x469)]['getParam'](_0x5c360f(0x4e1));if(!_0x16e6c2||!_0x15dd09['getSheetBySheetId'](_0x16e6c2)){const _0x38cccf=_0x15dd09['getUnhiddenWorksheets']()[0x0],_0x4b7d1f=_0x15dd09[_0x5c360f(0x44d)](_0x38cccf);if(!_0x4b7d1f)return;this[_0x5c360f(0x2b0)](_0x4b7d1f,!0x0),await this['_commandService']['executeCommand'](C[_0x5c360f(0x498)]['id'],{'unitId':_0x15dd09['getUnitId'](),'subUnitId':_0x38cccf});return;}((_0x766f0=_0x15dd09['getActiveSheet']())==null?void 0x0:_0x766f0[_0x5c360f(0x5b7)]())!==_0x16e6c2&&await this['_commandService'][_0x5c360f(0x2d6)](C[_0x5c360f(0x498)]['id'],{'unitId':_0x15dd09[_0x5c360f(0x444)](),'subUnitId':_0x16e6c2});}async[_0x24c410(0x392)](_0x42d001){const _0x258e6d=_0x24c410;let _0x7835e6=0x0;const _0x10dbec=await this[_0x258e6d(0x2b3)]['loadOfflineData'](_0x42d001);return _0x10dbec&&(_0x10dbec[_0x258e6d(0x2c2)]||_0x10dbec[_0x258e6d(0x4a6)][_0x258e6d(0x25b)]!==0x0)&&(_0x7835e6=_0x10dbec[_0x258e6d(0x42d)]),_0x7835e6===0x0&&this[_0x258e6d(0x518)][_0x258e6d(0x347)](_0x258e6d(0x258),_0x258e6d(0x4ea)),this[_0x258e6d(0x5d1)][_0x258e6d(0x2dc)](_0x42d001,_0x7835e6);}async['_loadDoc'](_0x1e70b6){const _0x4e4947=_0x24c410;let _0x9d724f=0x0;const _0x5c99a2=await this[_0x4e4947(0x2b3)][_0x4e4947(0x38c)](_0x1e70b6);return _0x5c99a2&&(_0x5c99a2[_0x4e4947(0x2c2)]||_0x5c99a2[_0x4e4947(0x4a6)][_0x4e4947(0x25b)]!==0x0)&&(_0x9d724f=_0x5c99a2['rev']),_0x9d724f===0x0&&this[_0x4e4947(0x518)]['debug'](_0x4e4947(0x258),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4e4947(0x5d1)]['loadDoc'](_0x1e70b6,_0x9d724f);}},exports[_0x24c410(0x4d8)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x24c410(0x40f)]),ee(0x2,a[_0x24c410(0x494)]),ee(0x3,a[_0x24c410(0x349)](exports[_0x24c410(0x205)])),ee(0x4,a[_0x24c410(0x349)](_[_0x24c410(0x2f4)])),ee(0x5,a[_0x24c410(0x5cb)](Kt[_0x24c410(0x3d6)]))],exports['DataLoaderController']);var qi=Object[_0x24c410(0x5d0)],zi=Object[_0x24c410(0x3e3)],Ji=(_0x36672e,_0x459ca8,_0x54e7ec,_0x4a1044)=>{const _0x3bf49f=_0x24c410;for(var _0x5a4464=_0x4a1044>0x1?void 0x0:_0x4a1044?zi(_0x459ca8,_0x54e7ec):_0x459ca8,_0x1c306d=_0x36672e[_0x3bf49f(0x25b)]-0x1,_0x23b44c;_0x1c306d>=0x0;_0x1c306d--)(_0x23b44c=_0x36672e[_0x1c306d])&&(_0x5a4464=(_0x4a1044?_0x23b44c(_0x459ca8,_0x54e7ec,_0x5a4464):_0x23b44c(_0x5a4464))||_0x5a4464);return _0x4a1044&&_0x5a4464&&qi(_0x459ca8,_0x54e7ec,_0x5a4464),_0x5a4464;},_t=(_0x1bd6c3,_0x1f9f36)=>(_0x2f6e9e,_0x4cef14)=>_0x1f9f36(_0x2f6e9e,_0x4cef14,_0x1bd6c3);const Zi='DEFAULT_FILE_NAME',Qi=_0x24c410(0x2d4);let Ce=class extends a[_0x24c410(0x2f0)]{constructor(_0x55f469,_0x2141a7){const _0x57ee99=_0x24c410;super(),this[_0x57ee99(0x329)]=_0x55f469,this['_configService']=_0x2141a7,this[_0x57ee99(0x393)]();}[_0x24c410(0x393)](){const _0x5b3c42=_0x24c410;this[_0x5b3c42(0x4b2)](this[_0x5b3c42(0x329)][_0x5b3c42(0x355)][_0x5b3c42(0x359)](()=>{const _0x371fa7=_0x5b3c42;var _0xade931;const _0x58b952=this[_0x371fa7(0x329)][_0x371fa7(0x39f)]();let _0x31b4b6=(_0xade931=this[_0x371fa7(0x4c8)]['getConfig'](Zi))!=null?_0xade931:Qi;_0x58b952 instanceof a[_0x371fa7(0x313)]&&(_0x31b4b6=_0x58b952['name']),document[_0x371fa7(0x4b5)]=_0x31b4b6;}));}};Ce=Ji([_t(0x0,a[_0x24c410(0x5e9)]),_t(0x1,a['IConfigService'])],Ce);var en=Object[_0x24c410(0x5d0)],tn=Object[_0x24c410(0x3e3)],sn=(_0x3ef98f,_0x146f44,_0x4f4be7,_0x1779bd)=>{const _0x580b91=_0x24c410;for(var _0x16a44d=_0x1779bd>0x1?void 0x0:_0x1779bd?tn(_0x146f44,_0x4f4be7):_0x146f44,_0x1a4bdb=_0x3ef98f[_0x580b91(0x25b)]-0x1,_0x1ff2cb;_0x1a4bdb>=0x0;_0x1a4bdb--)(_0x1ff2cb=_0x3ef98f[_0x1a4bdb])&&(_0x16a44d=(_0x1779bd?_0x1ff2cb(_0x146f44,_0x4f4be7,_0x16a44d):_0x1ff2cb(_0x16a44d))||_0x16a44d);return _0x1779bd&&_0x16a44d&&en(_0x146f44,_0x4f4be7,_0x16a44d),_0x16a44d;},He=(_0x29f2a7,_0x19a1a5)=>(_0x4b0789,_0x188c81)=>_0x19a1a5(_0x4b0789,_0x188c81,_0x29f2a7);let Ee=class{constructor(_0x2056a5,_0x40746a,_0x3f4392){const _0xe4dd94=_0x24c410;this[_0xe4dd94(0x4c8)]=_0x2056a5,this['_httpService']=_0x40746a,this['localeService']=_0x3f4392,this[_0xe4dd94(0x478)]();}['init'](){const _0x47749b=_0x24c410;this[_0x47749b(0x2c6)][_0x47749b(0x22b)]({'priority':0x1,'interceptor':(_0x23c3b9,_0x560fd6)=>_0x560fd6(_0x23c3b9)[_0x47749b(0x404)](v[_0x47749b(0x3ac)](async _0x1848f7=>{const _0x270d87=_0x47749b,_0x5e3ab6=_0x1848f7;if(_0x5e3ab6[_0x270d87(0x479)]===0x191&&window[_0x270d87(0x3ff)](this[_0x270d87(0x36f)]['t'](_0x270d87(0x415)))){const _0xf90245=window[_0x270d87(0x39c)](window[_0x270d87(0x564)][_0x270d87(0x391)]);window[_0x270d87(0x564)]['href']=this[_0x270d87(0x4da)]()+'?url='+_0xf90245;}return _0x5e3ab6;}))});}[_0x24c410(0x4da)](){const _0x200a9c=_0x24c410;var _0x436144,_0xee3ea2;const _0x2b0715=this['_configService'][_0x200a9c(0x5bf)](Et),_0x118177=this[_0x200a9c(0x4c8)]['getConfig'](L);return(_0xee3ea2=(_0x436144=_0x118177==null?void 0x0:_0x118177[_0x200a9c(0x2d1)])!=null?_0x436144:_0x2b0715)!=null?_0xee3ea2:ns;}};Ee=sn([He(0x0,a[_0x24c410(0x1df)]),He(0x1,a[_0x24c410(0x349)](w[_0x24c410(0x238)])),He(0x2,a[_0x24c410(0x349)](a[_0x24c410(0x388)]))],Ee);var nn=Object[_0x24c410(0x5d0)],rn=Object[_0x24c410(0x3e3)],on=(_0x68c620,_0x1d78e8,_0x4776a1,_0x769241)=>{for(var _0xd882be=_0x769241>0x1?void 0x0:_0x769241?rn(_0x1d78e8,_0x4776a1):_0x1d78e8,_0xd09212=_0x68c620['length']-0x1,_0x6435c6;_0xd09212>=0x0;_0xd09212--)(_0x6435c6=_0x68c620[_0xd09212])&&(_0xd882be=(_0x769241?_0x6435c6(_0x1d78e8,_0x4776a1,_0xd882be):_0x6435c6(_0xd882be))||_0xd882be);return _0x769241&&_0xd882be&&nn(_0x1d78e8,_0x4776a1,_0xd882be),_0xd882be;},ut=(_0x55ad60,_0x428b75)=>(_0x187822,_0x2e039f)=>_0x428b75(_0x187822,_0x2e039f,_0x55ad60);const jt=_0x24c410(0x41d),an=_0x24c410(0x398);exports['AuthzIoHttpService']=class extends a[_0x24c410(0x2f0)]{constructor(_0x4ea79b,_0x1b7d80){const _0x4b78a5=_0x24c410;super(),this['_HTTPService']=_0x4ea79b,this[_0x4b78a5(0x4c8)]=_0x1b7d80,this[_0x4b78a5(0x462)]();}[_0x24c410(0x462)](){const _0x146b4d=_0x24c410,_0x86990e=this;this[_0x146b4d(0x4b2)](this[_0x146b4d(0x4ab)][_0x146b4d(0x22b)]({'priority':0x3e7,'interceptor':w[_0x146b4d(0x533)]({'isMatch'(_0x5b8567){const _0x235678=_0x146b4d;var _0x17462c;if(_0x5b8567['method']===_0x235678(0x1f8)&&((_0x17462c=_0x5b8567[_0x235678(0x421)])!=null&&_0x17462c[_0x235678(0x346)])){const {objectID:_0x538bf4,objectType:_0x350fce}=_0x5b8567[_0x235678(0x421)][_0x235678(0x346)]||{};if(!_0x538bf4||_0x350fce===void 0x0)return!0x1;const _0x4d0866=_0x86990e[_0x235678(0x5c3)]()+'/'+_0x350fce+'/object/'+_0x538bf4+_0x235678(0x493);if(_0x5b8567[_0x235678(0x3b8)]===_0x4d0866)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d662b){const _0x5c5651=_0x146b4d;var _0x5e6a4b;return(_0x5e6a4b=_0x4d662b[_0x5c5651(0x421)])==null?void 0x0:_0x5e6a4b[_0x5c5651(0x346)];},'mergeParamsToRequest'(_0x195377,_0x56d392){const _0xd258a1=_0x146b4d,_0x248841=_0x86990e[_0xd258a1(0x5c3)]()+_0xd258a1(0x3a1),_0x5934b3=_0x195377[_0xd258a1(0x22d)]((_0x4c5a2a,_0x5b3cbf)=>{const _0x4e34fa=_0xd258a1,{unitID:_0x56486a,objectID:_0x2ad4ad,objectType:_0x5d5c04,actions:_0x348252}=_0x5b3cbf;return _0x4c5a2a[_0x56486a]||(_0x4c5a2a[_0x56486a]={}),_0x4c5a2a[_0x56486a][_0x2ad4ad]||(_0x4c5a2a[_0x56486a][_0x2ad4ad]={'objectID':_0x2ad4ad,'objectType':_0x5d5c04,'actions':[]}),_0x4c5a2a[_0x56486a][_0x2ad4ad][_0x4e34fa(0x599)][_0x4e34fa(0x222)](..._0x348252),_0x4c5a2a;},{}),_0x191dac=[];for(const _0x50c4de in _0x5934b3)for(const _0x7219a in _0x5934b3[_0x50c4de]){const {actions:_0x1f0b4b,objectType:_0x43bbf7}=_0x5934b3[_0x50c4de][_0x7219a],_0x499e72=[...new Set(_0x1f0b4b)];_0x191dac[_0xd258a1(0x222)]({'unitID':_0x50c4de,'objectID':_0x7219a,'objectType':_0x43bbf7,'actions':_0x499e72});}return new w[(_0xd258a1(0x243))]('POST',_0x248841,{'headers':_0x56d392['headers'],'withCredentials':_0x56d392[_0xd258a1(0x49c)],'responseType':_0x56d392[_0xd258a1(0x213)],'body':{'requests':_0x191dac}});}},{'distributeResult'(_0x4c6311,_0x45ee5c){const {objectActions:_0x50b843}=_0x4c6311;return _0x45ee5c['map'](_0x3c666f=>{const _0x3683dc=_0x3b7c,{unitID:_0x18533e,objectID:_0x2d3fe4,actions:_0x67b6f1}=_0x3c666f,_0x56c590=_0x50b843[_0x3683dc(0x3f3)](_0x2a38cf=>_0x2a38cf[_0x3683dc(0x4a2)]===_0x18533e&&_0x2a38cf['objectID']===_0x2d3fe4),_0x3c503b=_0x67b6f1[_0x3683dc(0x24d)](_0x212dee=>_0x56c590==null?void 0x0:_0x56c590[_0x3683dc(0x599)][_0x3683dc(0x3f3)](_0xfb9dce=>_0xfb9dce[_0x3683dc(0x3d1)]===_0x212dee))[_0x3683dc(0x5ce)](_0xef9627=>!!_0xef9627);return{'config':_0x3c666f,'result':{'actions':_0x3c503b,'error':_0x4c6311[_0x3683dc(0x553)]}};});}})}));}[_0x24c410(0x5c3)](){const _0x37c5ef=_0x24c410;var _0x144f0c,_0x1d1678;const _0x407c39=this[_0x37c5ef(0x4c8)][_0x37c5ef(0x5bf)](jt),_0x35cc02=this[_0x37c5ef(0x4c8)][_0x37c5ef(0x5bf)](L);return(_0x1d1678=(_0x144f0c=_0x35cc02==null?void 0x0:_0x35cc02[_0x37c5ef(0x396)])!=null?_0x144f0c:_0x407c39)!=null?_0x1d1678:an;}async[_0x24c410(0x25f)](_0x8ef275){const _0x57d7b9=_0x24c410,_0x55c074=this[_0x57d7b9(0x5c3)]()+'/'+_0x8ef275[_0x57d7b9(0x3e4)]+'/object';return(await this[_0x57d7b9(0x4ab)][_0x57d7b9(0x264)](_0x55c074,{'body':_0x8ef275}))['body'][_0x57d7b9(0x2a7)]||'';}async[_0x24c410(0x3ea)](_0x50ff46){const _0x31febf=_0x24c410,_0x18d79a=this[_0x31febf(0x5c3)]()+_0x31febf(0x3bd);return(await this[_0x31febf(0x4ab)][_0x31febf(0x264)](_0x18d79a,{'body':_0x50ff46}))[_0x31febf(0x346)][_0x31febf(0x4bd)];}async['update'](_0x42f8e4){const _0x40a65f=_0x24c410,_0x3223bc=this[_0x40a65f(0x5c3)]()+'/'+_0x42f8e4[_0x40a65f(0x3e4)]+'/object/'+_0x42f8e4['objectID'];await this[_0x40a65f(0x4ab)][_0x40a65f(0x5a1)](_0x3223bc,{'body':_0x42f8e4});}async[_0x24c410(0x1e5)](_0xfa16b1){const _0x468eee=_0x24c410,_0x4da6c8=this[_0x468eee(0x5c3)]()+'/'+_0xfa16b1['objectType']+_0x468eee(0x32e)+_0xfa16b1[_0x468eee(0x2a7)]+_0x468eee(0x493);return(await this[_0x468eee(0x4ab)][_0x468eee(0x264)](_0x4da6c8,{'body':_0xfa16b1}))['body']['actions'];}async[_0x24c410(0x21d)](_0x1f4495){const _0x36278f=_0x24c410,_0xae6af6=this['_getAPIPrefixPath']()+_0x36278f(0x3a1);return(await this[_0x36278f(0x4ab)][_0x36278f(0x264)](_0xae6af6,{'body':{'requests':_0x1f4495}}))[_0x36278f(0x346)][_0x36278f(0x438)];}async[_0x24c410(0x2fd)](_0x180c46){const _0x1786f9=_0x24c410,_0x53dbdf=this[_0x1786f9(0x5c3)]()+'/'+_0x180c46[_0x1786f9(0x3e4)]+_0x1786f9(0x4f3),_0xfdd784=await this[_0x1786f9(0x4ab)][_0x1786f9(0x264)](_0x53dbdf,{'body':_0x180c46});return{'roles':_0xfdd784[_0x1786f9(0x346)][_0x1786f9(0x55a)],'actions':_0xfdd784['body'][_0x1786f9(0x599)]};}async['deleteCollaborator'](_0x7075b){const _0x32896f=_0x24c410,_0x459edb=this['_getAPIPrefixPath']()+_0x32896f(0x5d8);await this[_0x32896f(0x4ab)][_0x32896f(0x5a3)](_0x459edb,{'params':{'collaboratorID':_0x7075b[_0x32896f(0x300)],'objectID':_0x7075b['objectID'],'unitID':_0x7075b[_0x32896f(0x4a2)]}});}async['updateCollaborator'](_0x5cac0f){const _0x142bd5=_0x24c410,_0x1245f5=this['_getAPIPrefixPath']()+_0x142bd5(0x5d8);await this[_0x142bd5(0x4ab)]['patch'](_0x1245f5,{'body':_0x5cac0f});}async[_0x24c410(0x227)](_0x30fcd7){const _0x41a87d=_0x24c410,_0xc2ea0c=this['_getAPIPrefixPath']()+_0x41a87d(0x5d8);await this[_0x41a87d(0x4ab)][_0x41a87d(0x264)](_0xc2ea0c,{'body':_0x30fcd7});}async[_0x24c410(0x24e)](_0x117966){const _0xcaf308=_0x24c410,_0x59a628=this[_0xcaf308(0x5c3)]()+_0xcaf308(0x5d8);return(await this['_HTTPService'][_0xcaf308(0x40c)](_0x59a628,{'params':{'objectID':_0x117966[_0xcaf308(0x2a7)],'unitID':_0x117966[_0xcaf308(0x4a2)]}}))[_0xcaf308(0x346)][_0xcaf308(0x272)];}async[_0x24c410(0x3b0)](_0x5e1fca){const _0x59ad74=_0x24c410,_0x1f5682=this['_getAPIPrefixPath']()+_0x59ad74(0x5d8);await this[_0x59ad74(0x4ab)]['put'](_0x1f5682,{'body':_0x5e1fca});}},exports[_0x24c410(0x37e)]=on([ut(0x0,a[_0x24c410(0x349)](w[_0x24c410(0x238)])),ut(0x1,a[_0x24c410(0x349)](a[_0x24c410(0x1df)]))],exports[_0x24c410(0x37e)]);var cn=Object[_0x24c410(0x5d0)],ln=Object[_0x24c410(0x3e3)],hn=(_0x34155d,_0x4c0a8f,_0x46caa5,_0x6c1e22)=>{const _0x3fe923=_0x24c410;for(var _0x5bb838=_0x6c1e22>0x1?void 0x0:_0x6c1e22?ln(_0x4c0a8f,_0x46caa5):_0x4c0a8f,_0x170adc=_0x34155d[_0x3fe923(0x25b)]-0x1,_0x2eac67;_0x170adc>=0x0;_0x170adc--)(_0x2eac67=_0x34155d[_0x170adc])&&(_0x5bb838=(_0x6c1e22?_0x2eac67(_0x4c0a8f,_0x46caa5,_0x5bb838):_0x2eac67(_0x5bb838))||_0x5bb838);return _0x6c1e22&&_0x5bb838&&cn(_0x4c0a8f,_0x46caa5,_0x5bb838),_0x5bb838;},_n=(_0x223da6,_0x4d82f6)=>(_0x40c0d,_0x4aca61)=>_0x4d82f6(_0x40c0d,_0x4aca61,_0x223da6);let be=class{constructor(_0x5d4139){const _0x2a25cb=_0x24c410;this[_0x2a25cb(0x2c6)]=_0x5d4139,this[_0x2a25cb(0x321)]();}[_0x24c410(0x321)](){const _0x4ed18a=_0x24c410;this['_httpService'][_0x4ed18a(0x22b)]({'interceptor':(_0x29988f,_0x327191)=>{const _0xaf5e07=_0x4ed18a,_0x3e10fc=_0x29988f[_0xaf5e07(0x428)],_0x33b5d0=Xt[_0xaf5e07(0x30c)]();return _0x33b5d0&&_0x3e10fc[_0xaf5e07(0x48d)](_0xaf5e07(0x40e),_0x33b5d0),_0x327191(_0x29988f);}});}};be=hn([_n(0x0,a[_0x24c410(0x349)](w[_0x24c410(0x238)]))],be);var un=Object[_0x24c410(0x5d0)],dn=Object[_0x24c410(0x3e3)],Sn=(_0x403955,_0x3a9d6a,_0x533ecd,_0x14a298)=>{for(var _0x252ddc=_0x14a298>0x1?void 0x0:_0x14a298?dn(_0x3a9d6a,_0x533ecd):_0x3a9d6a,_0x4d459c=_0x403955['length']-0x1,_0x2f205c;_0x4d459c>=0x0;_0x4d459c--)(_0x2f205c=_0x403955[_0x4d459c])&&(_0x252ddc=(_0x14a298?_0x2f205c(_0x3a9d6a,_0x533ecd,_0x252ddc):_0x2f205c(_0x252ddc))||_0x252ddc);return _0x14a298&&_0x252ddc&&un(_0x3a9d6a,_0x533ecd,_0x252ddc),_0x252ddc;},xe=(_0x4d559c,_0x8eca81)=>(_0x72c653,_0x4db941)=>_0x8eca81(_0x72c653,_0x4db941,_0x4d559c);const vn=[_0x24c410(0x406),'image/jpeg',_0x24c410(0x4db),_0x24c410(0x531),'image/bmp'],gn=0x5*0x400*0x400,mn=_0x24c410(0x33a),fn=_0x24c410(0x411),In=_0x24c410(0x4f4),pn=_0x24c410(0x5cc);exports['ImageIoService']=class{constructor(_0x4e09dc,_0xf9717b,_0x5c3fcf){const _0x2e4a61=_0x24c410;u(this,_0x2e4a61(0x33d),0x0),u(this,_0x2e4a61(0x5e6),new v[(_0x2e4a61(0x29b))]()),u(this,_0x2e4a61(0x596),this[_0x2e4a61(0x5e6)]),u(this,_0x2e4a61(0x2b5),new Map()),(this[_0x2e4a61(0x2c6)]=_0x4e09dc,this[_0x2e4a61(0x4c8)]=_0xf9717b,this[_0x2e4a61(0x329)]=_0x5c3fcf);}[_0x24c410(0x24c)](_0x2cad81){const _0x288677=_0x24c410;this[_0x288677(0x33d)]=_0x2cad81,this['_change$'][_0x288677(0x4a9)](_0x2cad81);}['getImageSourceCache'](_0x1d5329,_0x8ed187){const _0x5bede5=_0x24c410;if(_0x8ed187===j['ImageSourceType'][_0x5bede5(0x504)]){const _0x5aa588=new Image();return _0x5aa588['src']=_0x1d5329,_0x5aa588;}return this[_0x5bede5(0x2b5)]['get'](_0x1d5329);}[_0x24c410(0x472)](_0x41b298,_0x542c09,_0x366acf){const _0x14361a=_0x24c410;_0x542c09===j[_0x14361a(0x1f6)][_0x14361a(0x504)]||_0x366acf==null||this[_0x14361a(0x2b5)][_0x14361a(0x48d)](_0x41b298,_0x366acf);}async[_0x24c410(0x54e)](_0x4bb27b){const _0x372df5=_0x24c410;try{const _0x1ed39c=this[_0x372df5(0x22a)](this[_0x372df5(0x2c7)](),''+_0x4bb27b),_0x4f6e8e=(await this['_httpService'][_0x372df5(0x40c)](_0x1ed39c))['body'];if(_0x4f6e8e[_0x372df5(0x553)]&&_0x4f6e8e[_0x372df5(0x553)][_0x372df5(0x5e4)]===bt['OK']){const _0x3765ec=new URL(_0x4f6e8e[_0x372df5(0x3b8)],this[_0x372df5(0x45e)]())['toString']();return Promise[_0x372df5(0x49d)](_0x3765ec);}return Promise[_0x372df5(0x53b)](_0x4f6e8e[_0x372df5(0x553)]);}catch(_0x4cb98a){return Promise['reject'](_0x4cb98a);}}async['saveImage'](_0x3abcc9){const _0x52c796=_0x24c410;let _0x201c6e='';if(!vn[_0x52c796(0x1cf)](_0x3abcc9[_0x52c796(0x28b)]))return this[_0x52c796(0x3a5)](),Promise['reject'](new Error(j[_0x52c796(0x509)]['ERROR_IMAGE_TYPE']));if(_0x3abcc9[_0x52c796(0x3b5)]>gn)return this[_0x52c796(0x3a5)](),Promise[_0x52c796(0x53b)](new Error(j['ImageUploadStatusType'][_0x52c796(0x59b)]));try{const _0x5cff8f=new FormData();_0x5cff8f[_0x52c796(0x426)](_0x52c796(0x279),_0x3abcc9);const _0x466d99=this[_0x52c796(0x329)][_0x52c796(0x39f)](),_0xa1e97f=_0x466d99==null?void 0x0:_0x466d99['getUnitId']();if(!_0xa1e97f)throw new Error(_0x52c796(0x560));const _0x2431d7=this[_0x52c796(0x5a8)]()+_0x52c796(0x369)+_0x3abcc9[_0x52c796(0x3b5)][_0x52c796(0x578)]()+_0x52c796(0x221)+Tt[_0x52c796(0x335)]+'&assign='+encodeURIComponent(_0xa1e97f),_0x420ac6=await(await fetch(_0x2431d7,{'method':_0x52c796(0x1f8),'body':_0x5cff8f}))[_0x52c796(0x501)]();if(typeof _0x420ac6[_0x52c796(0x5a7)]!=_0x52c796(0x55f))return this[_0x52c796(0x3a5)](),Promise[_0x52c796(0x53b)](new Error(j[_0x52c796(0x509)][_0x52c796(0x41a)]));_0x201c6e=_0x420ac6[_0x52c796(0x5a7)];}catch{return this['_decreaseWaiting'](),Promise[_0x52c796(0x53b)](new Error(j['ImageUploadStatusType'][_0x52c796(0x41a)]));}return new Promise((_0x182a56,_0x2a6f02)=>{const _0x4ffa2d=_0x52c796,_0x4114b3=new FileReader();_0x4114b3['readAsDataURL'](_0x3abcc9),_0x4114b3[_0x4ffa2d(0x2bb)]=_0x44d9c9=>{const _0x5453ca=_0x4ffa2d;var _0x90452e;const _0x130a0c=(_0x90452e=_0x44d9c9[_0x5453ca(0x482)])==null?void 0x0:_0x90452e['result'];if(_0x130a0c==null){this[_0x5453ca(0x3a5)](),_0x2a6f02(new Error(j[_0x5453ca(0x509)][_0x5453ca(0x41a)]));return;}const _0x6ddbe7=a[_0x5453ca(0x45b)][_0x5453ca(0x497)](0x6);_0x182a56({'imageId':_0x6ddbe7,'imageSourceType':j[_0x5453ca(0x1f6)][_0x5453ca(0x505)],'source':_0x201c6e,'base64Cache':_0x130a0c,'status':j['ImageUploadStatusType'][_0x5453ca(0x485)]}),this[_0x5453ca(0x3a5)]();};});}[_0x24c410(0x5a8)](){const _0x1f2fde=_0x24c410;var _0x21f3c4,_0x550d7f;const _0x37feb3=this[_0x1f2fde(0x4c8)][_0x1f2fde(0x5bf)](mn),_0x327bc6=this[_0x1f2fde(0x4c8)][_0x1f2fde(0x5bf)](L);return(_0x550d7f=(_0x21f3c4=_0x327bc6==null?void 0x0:_0x327bc6[_0x1f2fde(0x598)])!=null?_0x21f3c4:_0x37feb3)!=null?_0x550d7f:fn;}[_0x24c410(0x2c7)](){const _0xcaf02a=_0x24c410;var _0x45d7de,_0xeace8e;const _0x287a8f=this[_0xcaf02a(0x4c8)]['getConfig'](In),_0x38c59f=this[_0xcaf02a(0x4c8)][_0xcaf02a(0x5bf)](L);return(_0xeace8e=(_0x45d7de=_0x38c59f==null?void 0x0:_0x38c59f[_0xcaf02a(0x4c6)])!=null?_0x45d7de:_0x287a8f)!=null?_0xeace8e:pn;}[_0x24c410(0x45e)](){const _0x1eed1c=_0x24c410;var _0x1a3259;const _0xabeb09=this[_0x1eed1c(0x4c8)]['getConfig'](L);return(_0x1a3259=_0xabeb09==null?void 0x0:_0xabeb09[_0x1eed1c(0x383)])!=null?_0x1a3259:location[_0x1eed1c(0x554)];}['_replaceFileID'](_0x9ed12b,_0x41c745){const _0x186f55=_0x24c410;return _0x9ed12b[_0x186f55(0x2d0)](_0x186f55(0x551),_0x41c745);}[_0x24c410(0x3a5)](){const _0x4cae8c=_0x24c410;this['_waitCount']-=0x1,this['_change$'][_0x4cae8c(0x4a9)](this['_waitCount']);}},exports[_0x24c410(0x555)]=Sn([xe(0x0,a[_0x24c410(0x349)](w[_0x24c410(0x238)])),xe(0x1,a[_0x24c410(0x1df)]),xe(0x2,a['Inject'](a['IUniverInstanceService']))],exports['ImageIoService']);var Cn=Object['defineProperty'],En=Object['getOwnPropertyDescriptor'],bn=(_0x4dd19a,_0xc867e8,_0xd0eca9,_0x4e78d4)=>{const _0xe1778c=_0x24c410;for(var _0xfa89ba=_0x4e78d4>0x1?void 0x0:_0x4e78d4?En(_0xc867e8,_0xd0eca9):_0xc867e8,_0x253881=_0x4dd19a[_0xe1778c(0x25b)]-0x1,_0x1f63ad;_0x253881>=0x0;_0x253881--)(_0x1f63ad=_0x4dd19a[_0x253881])&&(_0xfa89ba=(_0x4e78d4?_0x1f63ad(_0xc867e8,_0xd0eca9,_0xfa89ba):_0x1f63ad(_0xfa89ba))||_0xfa89ba);return _0x4e78d4&&_0xfa89ba&&Cn(_0xc867e8,_0xd0eca9,_0xfa89ba),_0xfa89ba;},_e=(_0x132e20,_0x2e5d8c)=>(_0x501781,_0x5d2f0b)=>_0x2e5d8c(_0x501781,_0x5d2f0b,_0x132e20);let Te=class extends a[_0x24c410(0x284)]{constructor(_0x2ca1f6,_0x321404,_0x3518f6,_0x45fdbc,_0x9885dd){const _0x2b1fcc=_0x24c410;super(),this[_0x2b1fcc(0x495)]=_0x2ca1f6,this['_univerInstanceService']=_0x321404,this[_0x2b1fcc(0x223)]=_0x3518f6,this[_0x2b1fcc(0x474)]=_0x45fdbc,this[_0x2b1fcc(0x319)]=_0x9885dd,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x24c410(0x491)](){const _0x6d1736=_0x24c410,_0x5b5c1f=async _0x53e1c7=>{const _0x5d8914=_0x3b7c;(await this['_collaborationSessionService']['requireSession'](_0x53e1c7))['event$'][_0x5d8914(0x404)](E['filter'](_0x54b476=>_0x54b476[_0x5d8914(0x3b1)]===_[_0x5d8914(0x4f8)][_0x5d8914(0x3db)]),E[_0x5d8914(0x2b1)](this[_0x5d8914(0x22f)]))['subscribe'](_0x36c8a4=>{const _0x3600e1=_0x5d8914,_0x2abc45=_0x36c8a4,{reason:_0x3a6ad7}=_0x2abc45[_0x3600e1(0x486)];this[_0x3600e1(0x495)][_0x3600e1(0x40c)](A[_0x3600e1(0x4b3)])[_0x3600e1(0x3bc)]({'type':X['MessageType'][_0x3600e1(0x214)],'content':this[_0x3600e1(0x319)]['t']('collaboration.closeRoom')+'('+_0x3a6ad7+')'}),this[_0x3600e1(0x223)]['updatePermissionPoint'](new C[(_0x3600e1(0x41f))](_0x53e1c7)['id'],!0x1),this[_0x3600e1(0x474)][_0x3600e1(0x28d)](_0x53e1c7);});};v['merge'](this[_0x6d1736(0x329)][_0x6d1736(0x1d6)](a[_0x6d1736(0x461)][_0x6d1736(0x236)]),this[_0x6d1736(0x329)]['getTypeOfUnitAdded$'](a[_0x6d1736(0x461)][_0x6d1736(0x489)]))[_0x6d1736(0x404)](E[_0x6d1736(0x24d)](_0x223797=>_0x223797[_0x6d1736(0x444)]()),E[_0x6d1736(0x5ce)](_0x1f56f3=>!a[_0x6d1736(0x350)](_0x1f56f3)),E['takeUntil'](this[_0x6d1736(0x22f)]))[_0x6d1736(0x359)](_0x239a61=>{_0x5b5c1f(_0x239a61);});}[_0x24c410(0x2f1)](){const _0x5f13b1=_0x24c410,_0x2adfd7=async _0x458598=>{const _0x52da08=_0x3b7c;(await this[_0x52da08(0x474)]['requireSession'](_0x458598))[_0x52da08(0x5ba)][_0x52da08(0x404)](E[_0x52da08(0x5ce)](_0x217c45=>_0x217c45[_0x52da08(0x3b1)]===_[_0x52da08(0x4f8)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this['dispose$']))[_0x52da08(0x359)](_0xa5c99f=>{const _0x430fb3=_0x52da08,_0xa93a7=_0xa5c99f,{objectId:_0x201c67}=_0xa93a7[_0x430fb3(0x486)],_0x1c8fdf=this['_injector']['get'](te[_0x430fb3(0x3f8)]);_0x201c67===_0x458598?_0x1c8fdf[_0x430fb3(0x1e6)](_0x458598):_0x1c8fdf[_0x430fb3(0x276)](_0x458598,_0x201c67);});};v[_0x5f13b1(0x3e7)](this['_univerInstanceService'][_0x5f13b1(0x1d6)](a[_0x5f13b1(0x461)][_0x5f13b1(0x236)]),this[_0x5f13b1(0x329)]['getTypeOfUnitAdded$'](a[_0x5f13b1(0x461)]['UNIVER_DOC']))[_0x5f13b1(0x404)](E[_0x5f13b1(0x24d)](_0x45b2f3=>_0x45b2f3[_0x5f13b1(0x444)]()),E[_0x5f13b1(0x5ce)](_0x3a0bc4=>!a[_0x5f13b1(0x350)](_0x3a0bc4)),E['takeUntil'](this[_0x5f13b1(0x22f)]))[_0x5f13b1(0x359)](_0x1d378f=>{_0x2adfd7(_0x1d378f);});}};Te=bn([_e(0x0,a[_0x24c410(0x349)](a['Injector'])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x24c410(0x27f)]),_e(0x3,a[_0x24c410(0x349)](exports[_0x24c410(0x2a1)])),_e(0x4,a[_0x24c410(0x349)](a[_0x24c410(0x388)]))],Te);var Tn=Object[_0x24c410(0x5d0)],Rn=Object[_0x24c410(0x3e3)],On=(_0x286f35,_0x37e16d,_0x9554ff,_0x521520)=>{for(var _0x2489cb=_0x521520>0x1?void 0x0:_0x521520?Rn(_0x37e16d,_0x9554ff):_0x37e16d,_0x116fd5=_0x286f35['length']-0x1,_0x218f87;_0x116fd5>=0x0;_0x116fd5--)(_0x218f87=_0x286f35[_0x116fd5])&&(_0x2489cb=(_0x521520?_0x218f87(_0x37e16d,_0x9554ff,_0x2489cb):_0x218f87(_0x2489cb))||_0x2489cb);return _0x521520&&_0x2489cb&&Tn(_0x37e16d,_0x9554ff,_0x2489cb),_0x2489cb;},dt=(_0x5d1715,_0x25535f)=>(_0x1cfc21,_0x799079)=>_0x25535f(_0x1cfc21,_0x799079,_0x5d1715);exports['SnapshotServerOverHTTPService']=class{constructor(_0xf9f376,_0x2d3706){const _0x2503e5=_0x24c410;this[_0x2503e5(0x4c8)]=_0xf9f376,this[_0x2503e5(0x2c6)]=_0x2d3706;}async[_0x24c410(0x5a0)](_0x3dc458,_0x201142){const _0x5c078b=_0x24c410;var _0x1bb55f;const {unitID:_0x144f55,type:_0x42ee57,revision:_0x4f86a5=0x0}=_0x201142,_0x2a31c7=this[_0x5c078b(0x511)]()+'/'+_0x42ee57+_0x5c078b(0x271)+_0x144f55+_0x5c078b(0x3c8)+_0x4f86a5,_0x295587=(await this[_0x5c078b(0x2c6)][_0x5c078b(0x40c)](_0x2a31c7))[_0x5c078b(0x346)],_0x210204=(_0x1bb55f=_0x295587[_0x5c078b(0x5f4)])==null?void 0x0:_0x1bb55f[_0x5c078b(0x570)];if(_0x210204){const _0x112ee4=_0x210204==null?void 0x0:_0x210204[_0x5c078b(0x51e)],_0x38648e=_[_0x5c078b(0x466)][_0x5c078b(0x20a)](_[_0x5c078b(0x2d9)](_0x112ee4));_0x210204[_0x5c078b(0x51e)]=_0x38648e,Object[_0x5c078b(0x538)](_0x210204[_0x5c078b(0x30f)])[_0x5c078b(0x202)](([,_0x3fe8c5])=>{const _0x52663c=_0x5c078b,_0x34cfb4=_0x3fe8c5[_0x52663c(0x51e)],_0xf12a3f=_['textEncoder'][_0x52663c(0x20a)](_['b64DecodeUnicode'](_0x34cfb4));_0x3fe8c5[_0x52663c(0x51e)]=_0xf12a3f;});}return _0x295587;}async[_0x24c410(0x26c)](_0xfbb748,_0x4f6d01){const _0x165830=_0x24c410,{unitID:_0x57488d,type:_0x1ae05e,blockID:_0x46eac8}=_0x4f6d01,_0x40a73f=this[_0x165830(0x309)]()+'/'+_0x1ae05e+'/unit/'+_0x57488d+_0x165830(0x203)+_0x46eac8;return(await this[_0x165830(0x2c6)][_0x165830(0x40c)](_0x40a73f))[_0x165830(0x346)];}async[_0x24c410(0x47b)](_0x4ccf6c,_0x50c7a2){const _0x29a19e=_0x24c410,{unitID:_0x1c07c6,type:_0x87c6f4,blockID:_0x325e87}=_0x50c7a2,_0x1ef748=this['_getAPIPrefix']()+_0x29a19e(0x203)+_0x87c6f4+_0x29a19e(0x271)+_0x1c07c6+_0x29a19e(0x203)+_0x325e87;return(await this[_0x29a19e(0x2c6)][_0x29a19e(0x40c)](_0x1ef748))['body'];}async[_0x24c410(0x4ff)](_0x37e193,_0x539375){const _0x1493b1=_0x24c410,{unitID:_0x8ceb5c,type:_0x22100d,from:_0x36b88e,to:_0x3c671f}=_0x539375,_0x5e10d9=this[_0x1493b1(0x309)]()+'/'+_0x22100d+_0x1493b1(0x271)+_0x8ceb5c+'/fetchmissing?from='+_0x36b88e+_0x1493b1(0x33c)+_0x3c671f;return(await this[_0x1493b1(0x2c6)][_0x1493b1(0x40c)](_0x5e10d9))[_0x1493b1(0x346)];}['_getSnapshotAPIPrefix'](){const _0x146e49=_0x24c410;var _0xe0691d;return(_0xe0691d=this[_0x146e49(0x4c8)][_0x146e49(0x5bf)](vt))!=null?_0xe0691d:this[_0x146e49(0x309)]();}[_0x24c410(0x309)](){const _0x5b93ee=_0x24c410;var _0x4186c4,_0x4f4a6d;const _0x2be5fe=this[_0x5b93ee(0x4c8)]['getConfig'](St),_0x303c74=this['_configService'][_0x5b93ee(0x5bf)](L);return(_0x4f4a6d=(_0x4186c4=_0x303c74==null?void 0x0:_0x303c74[_0x5b93ee(0x595)])!=null?_0x4186c4:_0x2be5fe)!=null?_0x4f4a6d:qt;}async[_0x24c410(0x2d8)](_0x4cc1f2,_0x546de4){const _0x3b4ad4=_0x24c410,_0x5944a6=_0x3b4ad4(0x1da)+_0x546de4['type']+_0x3b4ad4(0x271)+_0x546de4[_0x3b4ad4(0x4a2)]+_0x3b4ad4(0x339);return(await this[_0x3b4ad4(0x2c6)][_0x3b4ad4(0x40c)](_0x5944a6,{'params':{'resourceId':JSON[_0x3b4ad4(0x34b)](_0x546de4[_0x3b4ad4(0x2ca)])}}))[_0x3b4ad4(0x346)];}[_0x24c410(0x2d7)](){const _0x56e87b=_0x24c410;throw new Error(_0x56e87b(0x52f));}[_0x24c410(0x35f)](){const _0x5b729b=_0x24c410;throw new Error(_0x5b729b(0x52f));}[_0x24c410(0x4e5)](){const _0x213a0a=_0x24c410;throw new Error(_0x213a0a(0x52f));}[_0x24c410(0x389)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x24c410(0x3f1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x24c410(0x3eb)]=On([dt(0x0,a[_0x24c410(0x1df)]),dt(0x1,a[_0x24c410(0x349)](w['HTTPService']))],exports[_0x24c410(0x3eb)]);var Dn=Object[_0x24c410(0x5d0)],yn=Object[_0x24c410(0x3e3)],Un=(_0x214b8d,_0x4e69bf,_0x5ca3f2,_0x26429a)=>{const _0x4c6988=_0x24c410;for(var _0x35b6af=_0x26429a>0x1?void 0x0:_0x26429a?yn(_0x4e69bf,_0x5ca3f2):_0x4e69bf,_0x2b077e=_0x214b8d[_0x4c6988(0x25b)]-0x1,_0x2e5498;_0x2b077e>=0x0;_0x2b077e--)(_0x2e5498=_0x214b8d[_0x2b077e])&&(_0x35b6af=(_0x26429a?_0x2e5498(_0x4e69bf,_0x5ca3f2,_0x35b6af):_0x2e5498(_0x35b6af))||_0x35b6af);return _0x26429a&&_0x35b6af&&Dn(_0x4e69bf,_0x5ca3f2,_0x35b6af),_0x35b6af;},ue=(_0x4a0118,_0x2935b2)=>(_0x23adcf,_0x3de92d)=>_0x2935b2(_0x23adcf,_0x3de92d,_0x4a0118);let Fe=class extends a['LocalUndoRedoService']{constructor(_0x331d46,_0x531e4c,_0x28870c,_0x31fac7,_0xc51def){const _0x349bd7=_0x24c410;super(_0x331d46,_0x531e4c,_0x28870c),this[_0x349bd7(0x317)]=_0x31fac7,this[_0x349bd7(0x518)]=_0xc51def;}[_0x24c410(0x330)](_0x5d0f56,_0x4c208c){const _0x5b4771=_0x24c410,_0x59d477=this['_getUndoStack'](_0x5d0f56);if(_0x59d477)try{const _0x2936cb=this['_transformStack'](_0x59d477,_0x4c208c);this['_substituteUndoStack'](_0x5d0f56,_0x2936cb);}catch(_0x42175e){this[_0x5b4771(0x518)]['error'](_0x5b4771(0x546),_0x42175e),this[_0x5b4771(0x56d)](_0x5d0f56);}const _0x59c5f9=this['_getRedoStack'](_0x5d0f56);if(_0x59c5f9)try{const _0x373aa9=this[_0x5b4771(0x3be)](_0x59c5f9,_0x4c208c);this['_substituteRedoStack'](_0x5d0f56,_0x373aa9);}catch(_0x11c8df){this['_logService'][_0x5b4771(0x553)](_0x11c8df),this[_0x5b4771(0x307)](_0x5d0f56);}}[_0x24c410(0x56d)](_0x5c55a8){const _0x368b1f=_0x24c410,_0x4a2329=this[_0x368b1f(0x3de)](_0x5c55a8);_0x4a2329&&(_0x4a2329[_0x368b1f(0x25b)]=0x0,this[_0x368b1f(0x47c)]());}[_0x24c410(0x307)](_0x12bdd0){const _0x524b83=_0x24c410,_0xd34cf4=this[_0x524b83(0x305)](_0x12bdd0);_0xd34cf4&&(_0xd34cf4['length']=0x0,this[_0x524b83(0x47c)]());}[_0x24c410(0x2e5)](_0x490c1b,_0x2465c6){const _0x6189cc=_0x24c410;this[_0x6189cc(0x254)][_0x6189cc(0x48d)](_0x490c1b,_0x2465c6),this[_0x6189cc(0x47c)]();}['_substituteRedoStack'](_0x13cce8,_0x132931){const _0x5d465e=_0x24c410;this[_0x5d465e(0x269)][_0x5d465e(0x48d)](_0x13cce8,_0x132931),this[_0x5d465e(0x47c)]();}[_0x24c410(0x3be)](_0x21f9b1,_0x3938ba){const _0x50e022=_0x24c410,_0x3bdb9c=[];let _0x2109e8=_0x3938ba,_0x47b594=_0x3938ba;for(let _0x3d5e45=_0x21f9b1['length']-0x1;_0x3d5e45>=0x0;_0x3d5e45--){const {unitID:_0x26dee6,undoMutations:_0x50f5f9,redoMutations:_0x250edd}=_0x21f9b1[_0x3d5e45],_0x44255e=this[_0x50e022(0x317)][_0x50e022(0x26f)](_0x2109e8,_0x50f5f9),_0x6c3a78=this['_transformService'][_0x50e022(0x26f)](_0x47b594,_0x250edd);if(_[_0x50e022(0x57f)](_0x44255e)||_[_0x50e022(0x57f)](_0x6c3a78)){this[_0x50e022(0x518)][_0x50e022(0x553)](_0x50e022(0x546),'transformStack\x20failed!',_0x44255e,_0x6c3a78);break;}_0x2109e8=_0x44255e[_0x50e022(0x2f8)],_0x47b594=_0x6c3a78[_0x50e022(0x2f8)],_0x3bdb9c['push']({'unitID':_0x26dee6,'undoMutations':_0x44255e[_0x50e022(0x2cd)],'redoMutations':_0x6c3a78[_0x50e022(0x2cd)]});}return _0x3bdb9c['reverse']();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['ICommandService']),ue(0x2,a[_0x24c410(0x508)]),ue(0x3,_[_0x24c410(0x2ec)]),ue(0x4,a['ILogService'])],Fe);class $t extends a[_0x24c410(0x284)]{constructor(){const _0x129795=_0x24c410;super(),u(this,_0x129795(0x443)),this['urlChange$']=v[_0x129795(0x54f)](window,_0x129795(0x52a))[_0x129795(0x404)](v[_0x129795(0x2b1)](this['dispose$']),v[_0x129795(0x47a)](0x1),v[_0x129795(0x2d2)](void 0x0));}['setParam'](_0x34d9c4,_0x3f9f17,_0x8f0d54=!0x1){const _0x16f8cc=_0x24c410,_0x37f13d=new URL(window[_0x16f8cc(0x564)][_0x16f8cc(0x391)]);_0x37f13d[_0x16f8cc(0x562)][_0x16f8cc(0x48d)](_0x34d9c4,_0x3f9f17),_0x8f0d54?window[_0x16f8cc(0x565)][_0x16f8cc(0x43d)]('','',_0x37f13d[_0x16f8cc(0x578)]()):window[_0x16f8cc(0x565)][_0x16f8cc(0x408)]('','',_0x37f13d[_0x16f8cc(0x578)]());}[_0x24c410(0x23a)](_0x48e2e4,_0x22bf49=!0x1){const _0x3570ff=_0x24c410,_0x3b79e2=new URL(window[_0x3570ff(0x564)]['href']);_0x3b79e2[_0x3570ff(0x562)][_0x3570ff(0x5a3)](_0x48e2e4),_0x22bf49?window['history'][_0x3570ff(0x43d)]('','',_0x3b79e2['toString']()):window[_0x3570ff(0x565)][_0x3570ff(0x408)]('','',_0x3b79e2[_0x3570ff(0x578)]());}['getParam'](_0x4949ca){const _0x4431cd=_0x24c410;var _0x3d7b07;return(_0x3d7b07=new URL(window[_0x4431cd(0x564)]['href'])[_0x4431cd(0x562)][_0x4431cd(0x40c)](_0x4949ca))!=null?_0x3d7b07:void 0x0;}}var Ht=Object['defineProperty'],Pn=Object[_0x24c410(0x3e3)],wn=(_0xcc237e,_0x2f576b,_0x59743b)=>_0x2f576b in _0xcc237e?Ht(_0xcc237e,_0x2f576b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59743b}):_0xcc237e[_0x2f576b]=_0x59743b,Nn=(_0x4592f7,_0x569a35,_0x312b09,_0x10f7a4)=>{for(var _0x2c186b=_0x10f7a4>0x1?void 0x0:_0x10f7a4?Pn(_0x569a35,_0x312b09):_0x569a35,_0x302a7b=_0x4592f7['length']-0x1,_0x47a08b;_0x302a7b>=0x0;_0x302a7b--)(_0x47a08b=_0x4592f7[_0x302a7b])&&(_0x2c186b=(_0x10f7a4?_0x47a08b(_0x569a35,_0x312b09,_0x2c186b):_0x47a08b(_0x2c186b))||_0x2c186b);return _0x10f7a4&&_0x2c186b&&Ht(_0x569a35,_0x312b09,_0x2c186b),_0x2c186b;},me=(_0x5a8325,_0x303e2a)=>(_0x4457bd,_0x5ecc7d)=>_0x303e2a(_0x4457bd,_0x5ecc7d,_0x5a8325),Mn=(_0x594b0e,_0xfb8e92,_0x128a87)=>wn(_0x594b0e,_0xfb8e92+'',_0x128a87);const An='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x24c410(0x1d1)]=class extends a[_0x24c410(0x464)]{constructor(_0x55e890=rs,_0x214595,_0x3fb390,_0x4e3a3d,_0x4e2b87){const _0x5867cb=_0x24c410;super(),this[_0x5867cb(0x4d0)]=_0x55e890,this[_0x5867cb(0x518)]=_0x214595,this[_0x5867cb(0x322)]=_0x3fb390,this[_0x5867cb(0x495)]=_0x4e3a3d,this[_0x5867cb(0x4c8)]=_0x4e2b87;const {..._0x22f7cd}=this[_0x5867cb(0x4d0)];this[_0x5867cb(0x4c8)][_0x5867cb(0x1f4)](L,_0x22f7cd);}['onStarting'](){const _0x1556db=_0x24c410;this[_0x1556db(0x591)](),a['touchDependencies'](this[_0x1556db(0x495)],[[ne],[exports[_0x1556db(0x4d8)]],[Te]]);}['onReady'](){const _0x8d8f5c=_0x24c410;a['touchDependencies'](this[_0x8d8f5c(0x495)],[[Ce]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x24c410(0x591)](){const _0x49a20a=_0x24c410;var _0x38e513,_0x46624d,_0x4a9b84,_0x2fc618;this[_0x49a20a(0x495)][_0x49a20a(0x3d7)](a[_0x49a20a(0x286)])&&this[_0x49a20a(0x518)][_0x49a20a(0x553)](_0x49a20a(0x465),_0x49a20a(0x20d));let _0x41eeeb=[[a['IUndoRedoService'],{'useClass':Fe}],[exports['CollaborationSessionService']],[Je],[w[_0x49a20a(0x238)]],[Qe,{'useClass':$t}],[q],[exports[_0x49a20a(0x205)]],[w[_0x49a20a(0x1fc)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x46624d=(_0x38e513=this['_config'])==null?void 0x0:_0x38e513[_0x49a20a(0x4f9)])!=null?_0x46624d:exports[_0x49a20a(0x487)]}],[w['IHTTPImplementation'],{'useClass':w[_0x49a20a(0x2db)]}],[_[_0x49a20a(0x4f2)],{'useClass':exports[_0x49a20a(0x3eb)]}],[a[_0x49a20a(0x310)],{'useClass':exports[_0x49a20a(0x37e)]}],[j['IImageIoService'],{'useClass':exports['ImageIoService']}],[exports[_0x49a20a(0x3df)]],[exports[_0x49a20a(0x4d8)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0x4a9b84=this['_config'])!=null&&_0x4a9b84['enableSingleActiveInstanceLock']&&_0x41eeeb[_0x49a20a(0x222)]([Re,{'useClass':$s}]),_0x41eeeb=a[_0x49a20a(0x436)](_0x41eeeb,(_0x2fc618=this['_config'])==null?void 0x0:_0x2fc618[_0x49a20a(0x3e0)]),_0x41eeeb[_0x49a20a(0x202)](_0x108409=>this['_injector'][_0x49a20a(0x3d0)](_0x108409)),this[_0x49a20a(0x351)]();}[_0x24c410(0x34d)](){const _0x5a4c06=_0x24c410;this[_0x5a4c06(0x4b2)](this['_renderManagerService']['registerRenderModule'](a[_0x5a4c06(0x461)][_0x5a4c06(0x489)],[Ve])),this[_0x5a4c06(0x4b2)](this[_0x5a4c06(0x322)][_0x5a4c06(0x239)](a[_0x5a4c06(0x461)][_0x5a4c06(0x236)],[We]));}[_0x24c410(0x351)](){const _0x3de43d=_0x24c410;var _0x1ef053,_0x540b5a;this[_0x3de43d(0x495)]['get'](w['HTTPService'])[_0x3de43d(0x22b)]({'priority':0x14,'interceptor':w['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x3de43d(0x495)][_0x3de43d(0x40c)](be),(_0x1ef053=this[_0x3de43d(0x4d0)])!=null&&_0x1ef053['enableOfflineEditing']||this['_injector']['get'](exports['LocalCacheService'])[_0x3de43d(0x5c1)](),(_0x540b5a=this[_0x3de43d(0x4d0)])!=null&&_0x540b5a[_0x3de43d(0x5b2)]&&this['_injector'][_0x3de43d(0x40c)](Ee),this[_0x3de43d(0x495)][_0x3de43d(0x40c)](exports['CollaborationController']),this[_0x3de43d(0x495)][_0x3de43d(0x3d7)](exports[_0x3de43d(0x4df)])&&this[_0x3de43d(0x495)]['get'](exports['DesktopCollaborationStatusDisplayController']);}},Mn(exports[_0x24c410(0x1d1)],_0x24c410(0x30e),An),exports[_0x24c410(0x1d1)]=Nn([a['DependentOn'](_[_0x24c410(0x230)]),me(0x1,a[_0x24c410(0x40f)]),me(0x2,O[_0x24c410(0x3ca)]),me(0x3,a[_0x24c410(0x349)](a['Injector'])),me(0x4,a[_0x24c410(0x1df)])],exports['UniverCollaborationClientPlugin']),exports[_0x24c410(0x41d)]=jt,exports[_0x24c410(0x3ba)]=Ct,exports[_0x24c410(0x2f9)]=gt,exports[_0x24c410(0x21e)]=U,exports[_0x24c410(0x35e)]=Lt,exports[_0x24c410(0x3ce)]=Xe,exports['HEARTBEAT_INTERVAL_KEY']=mt,exports[_0x24c410(0x5da)]=Ge,exports[_0x24c410(0x522)]=Ke,exports[_0x24c410(0x4e6)]=Qe,exports[_0x24c410(0x282)]=pt,exports['LOGIN_URL_KEY']=Et,exports[_0x24c410(0x427)]=It,exports[_0x24c410(0x4b6)]=zt,exports[_0x24c410(0x207)]=St,exports['SNAPSHOT_URL_KEY']=vt,exports[_0x24c410(0x278)]=H,exports[_0x24c410(0x1e1)]=Pt,exports[_0x24c410(0x3f2)]=$t,exports[_0x24c410(0x50c)]=Rt,exports['serializeCombRequest']=Ot;