@univerjs-pro/collaboration-client 1.0.0-alpha.6 → 1.0.0-alpha.7
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1420(_0x4f9d18,_0x344777){_0x4f9d18=_0x4f9d18-0xca;const _0x59a06e=_0x59a0();let _0x1420e1=_0x59a06e[_0x4f9d18];return _0x1420e1;}function _0x59a0(){const _0x3f6eee=['_onRemoteRejected','_rescheduleHeartbeat','resolve','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','push','objectType','RETRY_CONNECTING_MAX_COUNT','_onRecvEvent','SessionStatus','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','state','CollaborationUIEventId','UNIVER_BASE','getDeserializedSheetBlock','entries','unknown','updateCollaborator','LIVESHARE_TERMINATE','_getCurrentRevision','isCompositionEnd','routeKey','setConfig','/fetchmissing?from=','loadSlide','_onFetchMissResult','unitId','getValue','getCurrentRevOfUnit','URL','snapshot','connection\x20error','getUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20-\x20','_socket','updateOfflineData','_onConnectionOpen','cmd','downloadEndpointUrl','complete','values','UnitEmbedded','b64DecodeUnicode','BoardCollaborationEntity','update','rxjs','getUploadOptions','session.room-permission-denied','USERS_LEAVE','range','UNIVER_SLIDE','COMMENT_UPDATE','number\x20expected,\x20got\x20','_getUploadFileURL','JOIN_ROOM_FAILED','Error\x20on\x20receiving\x20event','ERROR_IMAGE','CONFLICT','pending','_memberService','_onCombEvent','LocalUndoRedoService','_HTTPService','readyForCollab','\x0aAfter:\x20','findIndex','fromCharCode','RECV','_schedule','unitInfo$','People','varSizeNonce','toStringTag','IImageIoService','getInterceptPoints','CLOSE_ROOM','_unlockTransition','nonceLength','_event$','DocStateChangeManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','GLOBAL_ROOMS_CNT_EXCEEDS','_sessions','AttachmentSourceType','getSnapshotAPIPath','SOCKET_FAILED_RETRY','SYNCED','mutations','uuidv4','MergeInterceptorFactory','cfgEnableObjInherit','init','_members$','type=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getUnitOnRev','_resendWithTimeout','_collaborationSessionService','CHANGESET_ACK','unitType','byteOffset','resend','tagLength','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','AuthzIoHttpService','ILogService','_change$','_onRemoteRetry','_permissionService','CollaborationSessionService','Plugin','_waitCount','CollaborationSession','removeMember','toLocal','offline','_isEchoedAwaitingChangeset','@univerjs/sheets','_univerInstanceService','_onLocalMutation','CompressMutationService','@univerjs/core','patch','LIVESHARE_REQUEST_HOST','OFFLINE','onTransformIME','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','?size=','ISnapshotServerService','startTime','LIVESHARE_OPERATION','CommentService','_roomCreated$','message$','_commandService','subscribe','/rev/','PENDING','NEW_CHANGESETS','createInstance','_roomMembers','map','/allowed','next','status','getSheetBlock','@univerjs-pro/license','__splitChunk__','socketService','_compressMutationService','rxjs/operators','\x20in\x20_schedule.','prototype','/-/object/list','INetworkConditionService','snapshotServerUrl','OfflineState','COLLABORATION_ENDPOINT_INVALID','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SUCCUSS','ErrorCode','\x20of\x20length\x20','changesets','IUndoRedoService','CHANGESET_REJ','_onOffline','collaMsg','[CollaborationSession]','onTransformSelections','m2Prime','_upload','_scheduleCompleteTimestamp','parseProtocolChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-pro.collaboration-client.network-condition.service','JOIN_ROOM_PERMISSION_DENIED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','docStateChange$','_getLoginPath','RETRY_CONNECTING_MAX_COUNT_KEY','DisposableCollection','_redoStacks','putCollaborators','_collaborationPaused','getActiveSheet','listRoles','98870IOqqfH','members$','&assign=','_tryReconnect','list','MSG_FOR_ERROR','Inject','collaboration-client.local-cache-service','onCommentUpdate','incrementRevOfUnit','append','_entities','status$','IPermissionService','base-ui.attachment-io.service','[OfflineState]:\x20received\x20acknowledgement.','transformStack\x20failed!','collabWebSocketUrl','getFocusedUnit','PERSON','csShouldRetryEvent','getTypeOfUnitAdded$','disposeWithMe','_httpService','CmdRspCode','_pendingMutations','state$','name','MemberService','packageName','HEARTBEAT','[FetchMissState]','endsWith','ERROR_EXCEED_SIZE','copyFileMeta','maxSize','stringify','_submitChangeset','MentionIoHttpService','save\x20fail\x20reason\x20is\x20','@univerjs/drawing','splice','CollaborationEvent','action','liveShareNewHost','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearUndo','_clearRedo','getUnitId','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','online$','getMember','_updateState','/new_changes','EnsureSlideMasterPageMutation','ImageUploadStatusType','sendHeartbeatTimer','createCollaborator','LIVESHARE_NEW_HOST','UniverInstanceType','function','reconnect','isInternalEditorID','Injector','data','Quantity','UUID','generateRandomId','some','members','merge','HTTPRequest','42wgzfkO','readAsDataURL','loadDoc','HELLO','[PendingState]:\x20received\x20rejection.','isTransformChangesetsSuccess','_syncEditingCollabCursor','requireSession','_createHandler','invalid\x20output,\x20must\x20be\x20aligned','_registerDependencies','floor','length','NO_OTHER_CLIENTS_EDITING','SnapshotService','debug','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitType','ILocalCacheService','fromCollab','UNIVER_BOARD','_getAPIPrefix','requestParams','onRemoteAck','isTransformMutationsWithChangesetSuccess','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getRoom','SyncedState','[DataLoaderService]','@univerjs/protocol','getCurrentSelections','_shouldReportTelemetry','registerHTTPInterceptor','sort','symbol','fetchMiss','DataLoaderService','_state$','UniverCollaborationClientPlugin','url','deepClone','_getSocketChannel','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','responseType','takeUntil','FileId','LocaleService','CollaborationImageIoService','onlyLocal','not_collab','_getAPIPrefixPath','buffer','HEARTBEAT_TIMEOUT','error$','pauseCollaboration','revision','_handleRemoteChangesets','_onConnectionFailed','_decreaseWaiting','joinEvent','endpointKey','nonce','_init','onRemoteRej','_startTelemetryCollaborationNewChangeset','_collaborationTimeoutTimer','includes','getTime','RxDisposable','hasOwnProperty','set','onRemoteChangeset','_transformRemoteChangesetByStateCache','_disableEditing','delay','batchAllowed','params','createIdentifier','_sendingTimer','has','1.0.0-alpha.6','UniverProCollaboration','_lockTransition','getDrawingImageAllowSize','updateSnapshot','_revisionService','_sessionChannels','LOCAL_CACHE_INTERVAL_KEY','subject','subUnitId','ISocketService','onSyncEditingCollabCursor','awaiting','HEARTBEAT_INTERVAL_KEY','string\x20expected','_snapshotService','objects','sheets','Failed\x20to\x20update\x20permission\x20point','OTHER_CLIENT_EDITING','crypto.getRandomValues\x20must\x20be\x20defined','_transformSelections','number','mergeOverrideWithDependencies','saveAttachment','getUnitStatus$','_collaborationUIEventService','COMPRESS_MUTATION_SEND','isSafeInteger','fetch_missing','UniverNetwork','pipe','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','enableAuthServer','CHANGESET_SHOULD_RETRY','setWaitCount','columnGroups','_applyRemoteChangeset','_transformRemoteChangesetByIMECache','setCfgEnableObjInherit','encodeURIComponent','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','DEFAULT_COLLAB_WEB_SOCKET_URL','setCurrentUser','UPDATE_PERMISSION_OBJ','filter','univer-pro.collaboration-client-adapter-service','result','CollaborationSocketService','createUniverCollaborationAdapter','reject','c2Prime','transformUndoRedo','_unitLoaded$','IAttachmentIoService','unsubscribe','post','userID','_handler','_onUserLeave','permissionRejEvent','Module','[SyncedState]:\x20received\x20rejection.','toString','textRanges','changeset','_maxTotalRetryTimeout','_transformAndApplyRemoteChangeset','/-/object/-/batch_allowed','session.room-full','missingChangesets','/object','ImageSourceType','_handlerCallback','univer-pro.collaboration-client.single-active-unit-service','telemetry\x20info\x20is\x20not\x20initialized','compose','_transformService','slice','add','getCollabEntity$','_initMergeInterceptor','getCollabEntity','every','_config','_telemetryInfo','onload','_toggleOffline','_adapter','/universer-api/file/{fileID}/sign-url','close','candidateSocket','_initUnitPermissionChange','SUBMIT_CHANGESET','socket\x20close','UniverNetworkPlugin','socketReady','CollaborationUIEventService','selections','_executeRemoteChangeset','SheetsSelectionsService','Wrong\x20sbox\x20length','_socketMessageSubscription','PERMISSION_REJ','ISingleActiveUnitService','collaboratorID','send','_sendHeartbeat','_checkMissing','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/resources','retryConnectingTimer','_cfgEnableObjInherit','_updateStatus','_exhaustRemoteChangesetQueue','isPermissionRej','_createSocket','onMutationExecutedForCollab','[PendingState]:\x20received\x20acknowledgement.','collaboration-client.config','Rectangle','transformMutationsWithChangeset','timeoutTimer','collabSubmitChangesetUrl','location','session.room-cnt-exceeds','CollaborationStatus','_socketChannels','UniverProtocol','override','interceptor','file','CombCmd','SheetCollaborationEntity','_sheetTransformSelectionsService','COMPRESS_MUTATION_APPLY','_localCacheService','_transformStack','dispose$','getSheetId','awaiting_with_pending','executeCommand','IConfigService','getConfig','unit','conflict','SetSelectionsOperation','upload','retryCount','_joinRoom','DEFAULT_WS_SESSION_TICKET_URL','CollaborationEntity','_acknowledgedAwaitingRevision','collaborators','serializeCombRequest','_listenToNetworkCondition','isView','decrypt','joinRsp','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_logService','_tryEnsureSocket','origin','eventID','ThresholdInterceptorFactory','@univerjs/docs','_fetchMissChangesets','updatePermissionPoint','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','memberID','_createSession','getLocalCacheKey','get','workbook','touchDependencies','SNAPSHOT_URL_KEY','4553464ClJtLJ','_hasSessionsForEndpoint','UniverProLicense','_getSignURL','_state','_throwTelemetryCollaborationNewChangeset','collaboration_new_changeset','actions','_showConflictNotification','_removeRoom','_clearLocalCache','_onMessage','_identity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','text-x','_commentService','authzUrl','IDLE','take','_onRemoteACK','tables','_undoRedoService','roles','awaitingChangeset','MentionType','reduce','_getDownloadEndpointURL','attachment','_incrementRevisionNumber','_substituteRedoStack','ITransformService','trim','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','resolveUnit','disablePadding','1056627rMVwQP','_pendingSessions','_replaceFileID','HEARTBEAT_TIMEOUT_KEY','_remoteChangesetQueue','_resolveSessionIdentity','ONLINE','liveShareOperation','getGlobalObject','_substituteUndoStack','JOINING','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_sender','AWAITING_WITH_PENDING','hostname','roomInfos','UniverProCollaborationClient','_getRedoStack','[CollaborationSessionService]','_clearRetryConnectingTimer','constructor','JOIN','_resendTimeout','operators','WorkbookEditablePermission','_createInitialStateImpl','session','_getSendChangesetTimeout','LIVESHARE_FETCH_OPERATIONS','objectID','_members','@univerjs-pro/slides','AwaitingState','SUBMIT_CHANGESET_TIMEOUT','size','_awaitingChangeset','emitEvent','method','createSocket','create','code','put','_initDependencies','_localeService','RevisionService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_transformIMECache','waitForRoom$','find','listCollaborators','fetchMissingChangesets','UniverDocs','_commentUpdate$','byteLength','RichTextEditingMutation','/object/','_transformStateCache','reqId','Univer','session.join-failed','OPTIONAL','transformChangesets','UniverDrawing','/universer-api/stream/file/upload','reverse','[SyncedState]:\x20received\x20acknowledgement.','target','_imageSourceCache','length=','appendMutation','toDisposable','_initCloseConn','from','onRemoteRetry','iterator','getCurrentUser','_startCollaboration','decorate','CommandType','FAIL','_sessionStatus$','amd','_waitForHeartbeatResponse','version','_configService','toggleOffline','getImageSourceCache','enableSingleActiveInstanceLock','mapDocumentTypeToUniverInstanceType','isArray','SheetTransformSelectionsService','title','closeSession','JSONX','refreshPermission','Optional','24958UhKPxg','IUniverInstanceService','toPrimitive','[CollaborationEntity]','IAuthzIoService','UNIVER_SHEET','@univerjs/network','{fileID}','localCacheService','UnitStatus',',\x20got\x20','headers','/role','/collaborator','3508176xkHzbq','UNIVER_DOC','onSendChangeset','SOCKET_FAILED','PERMISSION_DENIED','/universer-api/snapshot','_status$','clear','crypto','min','DRAWING_IMAGE_ALLOW_IMAGE_LIST','onTransformState','2601ODSbSD','resourceIDs','baseRev','_isPermissionRej','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','parseChangesetToProtocol','sequenceExecute','unitId\x20is\x20not\x20found','Subject','UPDATE_CURSOR','encrypt','RemoveSlidePageMutation','call','BehaviorSubject','ICommandService','collaboration-client.auth.needGotoLoginAlert','Disposable','_snapshotServerService','USERS_ENTER','OTHER_CLIENTS_EDITING','2511880OUqYEc','getMemberID','INGEST','UniverLicensePlugin','@univerjs/telemetry','string','confirm','defineProperty','infoRsp','&source=','_clearHeartbeatTimer','textEncoder','SlideCollaborationEntity','_undoStacks','_onConflict','UniverTelemetry','@univerjs-pro/collaboration','uniscriptRunEvent','delete','enableCollaboration','\x20to\x20','saveSnapshot','_unitInfo$','_telemetryService','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_clearCollaborationTimeoutTimer','UniverProSlides','socketMessageSubscription','_acknowledgeAwaitingIfReady','concatMap','_initRequestHeader','accept','_collabSessionService','parse','now','CollaborationController','_userManagerService','avatar','/unit/','onLocalMutation','getTypeOfUnitDisposed$','PendingState','LOCAL_CACHE_INTERVAL','Uint8Array','addHandlerCallback','getRandomValues','indexOf','onTransformRemoteChangesetByIMECache','_updateLocalCache','\x0aCurrent:\x20','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FETCH_MISSING','_instanceService','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','transformSelections','catch','originalMeta','session.room-not-exists','isTransformMutationsWithChangesetFailure','_getUndoStack','retryConnectingInterval','registerDependencies','ERROR_IMAGE_TYPE','_clearTimeoutTimer','entityInit$','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','sessionStatus','_changesetSessionId','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','fetchThroughInterceptors','EmptyMutationInfo','stopTime','onMissingChangesets','_resendTimer','close$','SHOULD_CLOSE_CONN','type','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','c1Prime','asObservable','_getCtorByUniverInstanceType','newCsEvent','max','positive\x20integer\x20expected,\x20got\x20','_transitionLocked','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getWorkbookSelections','leaveEvent','fetching\x20missing\x20changesets\x20from\x20','dispose','disableLocalCache','/universer-api/uniscript','loadBoard','_networkConditionService','_docStateChangeManagerService','localUnitId','/universer-api/oidc/authpage','uploadFileServerUrl','IMentionIOService','JOIN_ROOM_FULL','_changesetReqId','localeService','sid','_socketService','_transformUndoredo','submit\x20changeset\x20error!','_onJoinRoomEvent','enableOfflineEditing','FileSource','output','toggleOnline','NOT_COLLAB','onTransformRemoteChangesetByStateCache','/universer-api/authz','updateMember','unitLoaded$','loadUnitOfRevision','_entityInit$','body','synced','BYTES_PER_ELEMENT','_clearScheduledTask','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','csRejEvent','startsWith','onStateChange','_acknowledgeAwaiting','onMissedChangesetFetched','loadOfflineData','endpoint','?url=','HTTPService','_getConfig','_toggleOnline','object','unitID','3327468yfhUJI','7qwCGqa','setShowComponents','_singleActiveUnitService','event$','BASE64','sessionStatus$','_type','pluginName','encode','saveChangeset','/block/','MoveSlidePageMutation','sendChangesetTimeout','[CollaborationUndoRedoService]','MUTATION','PSEUDO_FETCH_MISSING_RESULT','shouldCloseConn','_queuedRemoteChangesets','_injector','socket$','toRemote','_emitMembers','forEach','subarray','_eventService','saveImage','_onRemoteChangeset'];_0x59a0=function(){return _0x3f6eee;};return _0x59a0();}(function(_0x4f22db,_0x5404d7){const _0xccef8f=_0x1420,_0xeca711=_0x4f22db();while(!![]){try{const _0x274cca=-parseInt(_0xccef8f(0x409))/0x1*(-parseInt(_0xccef8f(0x234))/0x2)+parseInt(_0xccef8f(0x1d4))/0x3+parseInt(_0xccef8f(0x1b1))/0x4+parseInt(_0xccef8f(0x262))/0x5+parseInt(_0xccef8f(0x2eb))/0x6+-parseInt(_0xccef8f(0x2ec))/0x7*(-parseInt(_0xccef8f(0x242))/0x8)+parseInt(_0xccef8f(0x24e))/0x9*(-parseInt(_0xccef8f(0x3c1))/0xa);if(_0x274cca===_0x5404d7)break;else _0xeca711['push'](_0xeca711['shift']());}catch(_0x598f5c){_0xeca711['push'](_0xeca711['shift']());}}}(_0x59a0,0x9f61a),function(_0xf3bf87,_0x3b88b5){const _0x1e1bd6=_0x1420;typeof exports==_0x1e1bd6(0x2e9)&&typeof module<'u'?_0x3b88b5(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x1e1bd6(0x3fd)&&define[_0x1e1bd6(0x225)]?define(['exports',_0x1e1bd6(0x272),_0x1e1bd6(0x380),_0x1e1bd6(0x1a6),_0x1e1bd6(0x37c),_0x1e1bd6(0x334),_0x1e1bd6(0xcc),_0x1e1bd6(0x266),_0x1e1bd6(0x39d),_0x1e1bd6(0x1f3),_0x1e1bd6(0x23a),_0x1e1bd6(0x399),_0x1e1bd6(0x3e9)],_0x3b88b5):(_0xf3bf87=typeof globalThis<'u'?globalThis:_0xf3bf87||self,_0x3b88b5(_0xf3bf87[_0x1e1bd6(0x1e4)]={},_0xf3bf87[_0x1e1bd6(0x101)],_0xf3bf87['UniverCore'],_0xf3bf87[_0x1e1bd6(0x207)],_0xf3bf87['UniverSheets'],_0xf3bf87[_0x1e1bd6(0x334)],_0xf3bf87[_0x1e1bd6(0x181)],_0xf3bf87[_0x1e1bd6(0x271)],_0xf3bf87[_0x1e1bd6(0x334)][_0x1e1bd6(0x1eb)],_0xf3bf87[_0x1e1bd6(0x27c)],_0xf3bf87[_0x1e1bd6(0x11e)],_0xf3bf87[_0x1e1bd6(0x1b3)],_0xf3bf87[_0x1e1bd6(0x212)]));}(this,function(_0x79aec8,_0x149d12,_0x47f753,_0x459006,_0x1e2709,_0x470009,_0x26a654,_0x32d36d,_0x5ba228,_0x40163b,_0x8f2da5,_0x4326e6,_0x5d9de4){const _0x27b931=_0x1420;Object['defineProperty'](_0x79aec8,Symbol[_0x27b931(0x34f)],{'value':_0x27b931(0x13e)});let _0x3c17be=_0x27b931(0x178),_0xa759f3={},_0x5f4f64='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1dfc3f=0x4e20;function _0x378d76(_0x568036){const _0x10c551=_0x27b931;return JSON['stringify'](_0x568036)[_0x10c551(0x415)];}function _0x53ca1f(_0x443e56){'@babel/helpers - typeof';const _0x8e961b=_0x27b931;return _0x53ca1f=typeof Symbol=='function'&&typeof Symbol[_0x8e961b(0x21e)]==_0x8e961b(0xd1)?function(_0x211581){return typeof _0x211581;}:function(_0x1a99ba){const _0x96793a=_0x8e961b;return _0x1a99ba&&typeof Symbol=='function'&&_0x1a99ba[_0x96793a(0x1e8)]===Symbol&&_0x1a99ba!==Symbol[_0x96793a(0x39f)]?'symbol':typeof _0x1a99ba;},_0x53ca1f(_0x443e56);}function _0x314c9f(_0x4f11ac,_0x4800ec){const _0x17f180=_0x27b931;if(_0x53ca1f(_0x4f11ac)!=_0x17f180(0x2e9)||!_0x4f11ac)return _0x4f11ac;var _0x5f4e1f=_0x4f11ac[Symbol[_0x17f180(0x236)]];if(_0x5f4e1f!==void 0x0){var _0x14dabf=_0x5f4e1f[_0x17f180(0x25a)](_0x4f11ac,_0x4800ec||'default');if(_0x53ca1f(_0x14dabf)!=_0x17f180(0x2e9))return _0x14dabf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4800ec===_0x17f180(0x267)?String:Number)(_0x4f11ac);}function _0x1bd536(_0x8a9a56){const _0x758d9d=_0x27b931;var _0x4aeeb9=_0x314c9f(_0x8a9a56,_0x758d9d(0x267));return _0x53ca1f(_0x4aeeb9)=='symbol'?_0x4aeeb9:_0x4aeeb9+'';}function _0x2dd74e(_0x32913c,_0x3b4252,_0x136e74){return(_0x3b4252=_0x1bd536(_0x3b4252))in _0x32913c?Object['defineProperty'](_0x32913c,_0x3b4252,{'value':_0x136e74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32913c[_0x3b4252]=_0x136e74,_0x32913c;}let _0x204edc=function(_0x4db85f){const _0xfe7ed6=_0x27b931;return _0x4db85f[_0xfe7ed6(0x113)]='OTHER_CLIENT_EDITING',_0x4db85f[_0xfe7ed6(0x246)]=_0xfe7ed6(0x246),_0x4db85f[_0xfe7ed6(0x340)]='CONFLICT',_0x4db85f[_0xfe7ed6(0x352)]=_0xfe7ed6(0x352),_0x4db85f[_0xfe7ed6(0x33d)]=_0xfe7ed6(0x33d),_0x4db85f[_0xfe7ed6(0x35c)]='SOCKET_FAILED_RETRY',_0x4db85f['SOCKET_FAILED']=_0xfe7ed6(0x245),_0x4db85f['SUBMIT_CHANGESET_TIMEOUT']=_0xfe7ed6(0x1f5),_0x4db85f;}({});var _0x2a71d9=class{constructor(){const _0x5864ce=_0x27b931;_0x2dd74e(this,_0x5864ce(0x355),new _0x470009['Subject']()),_0x2dd74e(this,_0x5864ce(0x2ef),this[_0x5864ce(0x355)]['asObservable']());}[_0x27b931(0x1f8)](_0x10a53e){const _0x3d4175=_0x27b931;this[_0x3d4175(0x355)][_0x3d4175(0x396)](_0x10a53e);}},_0x101a15=class{constructor(){const _0x19f1ca=_0x27b931;_0x2dd74e(this,_0x19f1ca(0x208),new _0x470009[(_0x19f1ca(0x256))]()),_0x2dd74e(this,'commentUpdate$',this[_0x19f1ca(0x208)]['asObservable']());}[_0x27b931(0x3c9)](_0x4e0a95){const _0x6d326e=_0x27b931;this['_commentUpdate$'][_0x6d326e(0x396)](_0x4e0a95);}};function _0x2af294(_0x49a262,_0x4b23ed){return function(_0x5b6c9b,_0x101c5c){_0x4b23ed(_0x5b6c9b,_0x101c5c,_0x49a262);};}function _0x1fb4c2(_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0){const _0x103adc=_0x27b931;var _0x1575bb=arguments[_0x103adc(0x415)],_0x472b88=_0x1575bb<0x3?_0x6cb102:_0x4ba2d0===null?_0x4ba2d0=Object['getOwnPropertyDescriptor'](_0x6cb102,_0xf51705):_0x4ba2d0,_0x12e7e1;if(typeof Reflect==_0x103adc(0x2e9)&&typeof Reflect[_0x103adc(0x221)]==_0x103adc(0x3fd))_0x472b88=Reflect[_0x103adc(0x221)](_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0);else{for(var _0x51cefb=_0x42787d['length']-0x1;_0x51cefb>=0x0;_0x51cefb--)(_0x12e7e1=_0x42787d[_0x51cefb])&&(_0x472b88=(_0x1575bb<0x3?_0x12e7e1(_0x472b88):_0x1575bb>0x3?_0x12e7e1(_0x6cb102,_0xf51705,_0x472b88):_0x12e7e1(_0x6cb102,_0xf51705))||_0x472b88);}return _0x1575bb>0x3&&_0x472b88&&Object['defineProperty'](_0x6cb102,_0xf51705,_0x472b88),_0x472b88;}let _0x541d7d=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x53b271,_0x56cf77){const _0x30c3c7=_0x27b931;super(),this[_0x30c3c7(0x37d)]=_0x53b271,this[_0x30c3c7(0x286)]=_0x56cf77,_0x2dd74e(this,_0x30c3c7(0x393),new Map()),_0x2dd74e(this,_0x30c3c7(0x38b),new _0x470009['Subject']()),this['disposeWithMe']((0x0,_0x470009['merge'])(this[_0x30c3c7(0x37d)]['getTypeOfUnitDisposed$'](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x239)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228['map'])(_0x351e64=>_0x351e64['getUnitId']())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)]['UNIVER_DOC'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5bbb79=>_0x5bbb79[_0x30c3c7(0x3f1)]())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x41d)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5b392f=>_0x5b392f[_0x30c3c7(0x3f1)]())),this['_univerInstanceService'][_0x30c3c7(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_BASE'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x1282e9=>_0x1282e9['getUnitId']())))[_0x30c3c7(0x38e)](_0x374181=>this[_0x30c3c7(0x1ba)](_0x374181)));}[_0x27b931(0x203)](_0xf6f7bf){const _0x17ab8a=_0x27b931;return this['_roomMembers'][_0x17ab8a(0xff)](_0xf6f7bf)?(0x0,_0x470009['of'])(this[_0x17ab8a(0x393)][_0x17ab8a(0x1ad)](_0xf6f7bf)):this[_0x17ab8a(0x38b)][_0x17ab8a(0x11f)]((0x0,_0x5ba228[_0x17ab8a(0x394)])(_0x318f66=>{const _0x59283b=_0x17ab8a;if(_0x318f66===_0xf6f7bf)return this['_roomMembers'][_0x59283b(0x1ad)](_0x318f66);}));}['setCurrentUser'](_0x4093ae){const _0x432a5c=_0x27b931;this[_0x432a5c(0x286)][_0x432a5c(0x12c)](_0x4093ae);}[_0x27b931(0x21f)](){const _0x4b548c=_0x27b931;return this[_0x4b548c(0x286)][_0x4b548c(0x21f)]();}[_0x27b931(0x2d5)](_0x401a8f,_0x245a29){const _0x4e866d=_0x27b931;let _0x175bf9=this[_0x4e866d(0x393)][_0x4e866d(0x1ad)](_0x401a8f);_0x175bf9||(_0x175bf9=new _0xf7c34(),this['_roomMembers'][_0x4e866d(0xf6)](_0x401a8f,_0x175bf9),this[_0x4e866d(0x38b)]['next'](_0x401a8f)),_0x175bf9[_0x4e866d(0x2d5)](_0x245a29);}[_0x27b931(0x378)](_0x1b4d97,_0xe78b19){const _0x2f8171=_0x27b931;let _0x3f4d5c=this['_roomMembers'][_0x2f8171(0x1ad)](_0x1b4d97);_0x3f4d5c&&_0x3f4d5c[_0x2f8171(0x378)](_0xe78b19);}[_0x27b931(0x423)](_0x5b115a){const _0x56445e=_0x27b931;return this[_0x56445e(0x393)][_0x56445e(0x1ad)](_0x5b115a);}[_0x27b931(0x3f4)](_0x31ad3f,_0x22813a){const _0x443e51=_0x27b931;let _0xd00e42=this[_0x443e51(0x393)][_0x443e51(0x1ad)](_0x31ad3f);if(_0xd00e42)return _0xd00e42[_0x443e51(0x3f4)](_0x22813a);}[_0x27b931(0x1ba)](_0x333f4d){const _0x576a83=_0x27b931;let _0x61281f=this['_roomMembers'][_0x576a83(0x1ad)](_0x333f4d);_0x61281f&&(_0x61281f[_0x576a83(0x2bc)](),this['_roomMembers'][_0x576a83(0x274)](_0x333f4d));}[_0x27b931(0x2bc)](){const _0xec40a7=_0x27b931;this[_0xec40a7(0x393)][_0xec40a7(0x302)](_0x17efbf=>_0x17efbf['dispose']()),this[_0xec40a7(0x393)][_0xec40a7(0x249)](),this[_0xec40a7(0x38b)]['complete']();}};_0x541d7d=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['UserManagerService']))],_0x541d7d);var _0xf7c34=class extends _0x47f753[_0x27b931(0x25e)]{constructor(..._0x154fd2){const _0x47e862=_0x27b931;super(..._0x154fd2),_0x2dd74e(this,_0x47e862(0x1f2),new Map()),_0x2dd74e(this,_0x47e862(0x363),new _0x470009[(_0x47e862(0x25b))](this[_0x47e862(0x1f2)])),_0x2dd74e(this,_0x47e862(0x3c2),this[_0x47e862(0x363)]['asObservable']());}[_0x27b931(0x2bc)](){const _0x25b912=_0x27b931;this[_0x25b912(0x1f2)][_0x25b912(0x249)](),this[_0x25b912(0x363)][_0x25b912(0x32e)]();}[_0x27b931(0x2d5)](_0x132fdf){const _0x1f2acf=_0x27b931;this[_0x1f2acf(0x1f2)][_0x1f2acf(0xf6)](_0x132fdf[_0x1f2acf(0x1aa)],_0x132fdf),this[_0x1f2acf(0x301)]();}[_0x27b931(0x378)](_0x59f612){const _0xe48603=_0x27b931;this[_0xe48603(0x1f2)][_0xe48603(0x274)](_0x59f612),this[_0xe48603(0x301)]();}[_0x27b931(0x3f4)](_0x323819){const _0x2c25f9=_0x27b931;return this[_0x2c25f9(0x1f2)][_0x2c25f9(0x1ad)](_0x323819);}['getAllMembers'](){const _0x5d717a=_0x27b931;return Array[_0x5d717a(0x21c)](this['_members'][_0x5d717a(0x32f)]());}[_0x27b931(0x301)](){const _0xd9b36c=_0x27b931;this[_0xd9b36c(0x363)][_0xd9b36c(0x396)](this['_members']);}};function _0x389eba(_0xdad32b,_0x596517){const _0xc37ae6=_0x27b931;if(_0x274f91(_0xdad32b))return _0x596517;if(_0x596517[_0xc37ae6(0x1a4)]===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x15e)]){var _0x183ea5;let _0x3b43fa=_0x47ce7e(_0xdad32b),_0x49eb4e=_0x596517;return{..._0x49eb4e,'data':{..._0x49eb4e[_0xc37ae6(0x401)],'unitID':_0xdad32b['target'][_0xc37ae6(0x320)],'unitType':(_0x183ea5=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x49eb4e[_0xc37ae6(0x401)][_0xc37ae6(0x36a)]:_0x183ea5,'changeset':_0x3b43fa[_0xc37ae6(0x300)](_0x49eb4e[_0xc37ae6(0x401)]['changeset'],_0x5a1101(_0xdad32b))}};}if(_0x596517['eventID']===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x296)]){var _0xce705a;let _0x3537d7=_0x596517;return{..._0x3537d7,'data':{..._0x3537d7[_0xc37ae6(0x401)],'unitID':_0xdad32b[_0xc37ae6(0x216)]['unitId'],'unitType':(_0xce705a=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x3537d7[_0xc37ae6(0x401)]['unitType']:_0xce705a}};}return _0x596517;}function _0x34b807(_0x336ab3,_0xbd97c4){const _0x473144=_0x27b931;if(_0x274f91(_0x336ab3))return[_0xbd97c4];switch(_0xbd97c4[_0x473144(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x473144(0x391)]:return[_0x144706(_0x336ab3,_0xbd97c4)];case _0x149d12['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:return[_0x4a7ff6(_0x336ab3,_0xbd97c4)];case _0x149d12[_0x473144(0x3eb)][_0x473144(0x123)]:return[_0x247c91(_0x336ab3,_0xbd97c4)];default:return[_0xbd97c4];}}function _0x274f91(_0x2ea2db){const _0x3e81d7=_0x27b931;return _0x2ea2db['target'][_0x3e81d7(0x2e4)]==null&&_0x2ea2db['target'][_0x3e81d7(0x320)]===_0x2ea2db[_0x3e81d7(0x2c2)]&&!_0x2ea2db['changeset'];}function _0x144706(_0x85d2d7,_0x43158f){const _0x35def0=_0x27b931;return{..._0x43158f,'data':(0x0,_0x149d12[_0x35def0(0x253)])(_0x59d321(_0x85d2d7,(0x0,_0x149d12[_0x35def0(0x3b3)])(_0x43158f['data'])))};}function _0x247c91(_0x273d85,_0x6ef248){const _0xc9ce1f=_0x27b931;return{..._0x6ef248,'data':_0x59d321(_0x273d85,_0x6ef248[_0xc9ce1f(0x401)])};}function _0x4a7ff6(_0xe609fe,_0x207fac){const _0x2bb6cf=_0x27b931;let _0x49a3c1=_0x207fac[_0x2bb6cf(0x401)];return{..._0x207fac,'data':{..._0x49a3c1,'changesets':_0x49a3c1[_0x2bb6cf(0x3a9)][_0x2bb6cf(0x394)](_0x30ae58=>(0x0,_0x149d12[_0x2bb6cf(0x253)])(_0x59d321(_0xe609fe,(0x0,_0x149d12['parseProtocolChangeset'])(_0x30ae58))))}};}function _0x59d321(_0x54f60d,_0x3864fe){const _0x1664a9=_0x27b931;return _0x47ce7e(_0x54f60d)[_0x1664a9(0x379)](_0x3864fe,_0x5a1101(_0x54f60d));}function _0x47ce7e(_0x5d5047){const _0x451672=_0x27b931;if(!_0x5d5047[_0x451672(0x142)])throw Error(_0x451672(0x298));return _0x5d5047[_0x451672(0x142)];}function _0x5a1101(_0x438b10){const _0x3ba676=_0x27b931;return{'localUnitId':_0x438b10['localUnitId'],'unitType':_0x438b10[_0x3ba676(0x36a)],'target':_0x438b10[_0x3ba676(0x216)]};}let _0x1e08f9=function(_0x4db365){const _0x137091=_0x27b931;return _0x4db365[_0x4db365[_0x137091(0x1c2)]=0x0]='IDLE',_0x4db365[_0x4db365[_0x137091(0x1de)]=0x1]=_0x137091(0x1de),_0x4db365[_0x4db365[_0x137091(0x383)]=0x2]=_0x137091(0x383),_0x4db365[_0x4db365[_0x137091(0x1da)]=0x3]=_0x137091(0x1da),_0x4db365;}({}),_0x49999b={[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x223)]]:_0x27b931(0x20f),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x2c6)]]:_0x27b931(0x146),[_0x26a654[_0x27b931(0x3d9)]['JOIN_ROOM_NOT_EXISTS']]:_0x27b931(0x29c),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x3b6)]]:_0x27b931(0x336),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x358)]]:_0x27b931(0x17e)},_0x4ea072=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x2a5)](){const _0x97ef0a=_0x27b931;return this[_0x97ef0a(0x224)][_0x97ef0a(0x321)]();}constructor(_0x401c9a,_0x374591,_0x301394,_0xbcef47,_0x574d7c,_0x38e0d6,_0x3304fe,_0xcd259){const _0x388ac8=_0x27b931;super(),this[_0x388ac8(0x1bd)]=_0x401c9a,this[_0x388ac8(0x1a1)]=_0x301394,this[_0x388ac8(0x228)]=_0xbcef47,this[_0x388ac8(0x342)]=_0x574d7c,this['_commentService']=_0x38e0d6,this[_0x388ac8(0x11a)]=_0x3304fe,this['_telemetryService']=_0xcd259,_0x2dd74e(this,_0x388ac8(0x224),new _0x470009[(_0x388ac8(0x25b))](0x0)),_0x2dd74e(this,_0x388ac8(0x2f1),this[_0x388ac8(0x224)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x355),new _0x470009[(_0x388ac8(0x256))]()),_0x2dd74e(this,_0x388ac8(0x2ef),this[_0x388ac8(0x355)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x329),void 0x0),_0x2dd74e(this,_0x388ac8(0x167),void 0x0),_0x2dd74e(this,_0x388ac8(0xf1),void 0x0),_0x2dd74e(this,_0x388ac8(0xce),!0x1),_0x2dd74e(this,_0x388ac8(0x156),null),this[_0x388ac8(0xce)]=!!this['_telemetryService'],_0x374591[_0x388ac8(0x11f)]((0x0,_0x470009['takeUntil'])(this['dispose$']))[_0x388ac8(0x38e)](_0x39d082=>{const _0xf8e897=_0x388ac8;if(_0x39d082!==void 0x0){if(this[_0xf8e897(0x329)]=_0x39d082,_0x39d082)this[_0xf8e897(0x196)](_0x39d082),this[_0xf8e897(0x167)]=_0x39d082['message$'][_0xf8e897(0x38e)](_0x542626=>{const _0x294c60=_0xf8e897;_0x542626[_0x294c60(0x31b)]===this[_0x294c60(0x1bd)]['target'][_0x294c60(0x320)]&&this[_0x294c60(0x343)](_0x542626);});else{var _0xa3e06a;this[_0xf8e897(0x1b6)](),this[_0xf8e897(0x224)][_0xf8e897(0x396)](0x2),(_0xa3e06a=this[_0xf8e897(0x167)])==null||_0xa3e06a[_0xf8e897(0x138)](),this['_socketMessageSubscription']=null;}}});}[_0x27b931(0x263)](){const _0x4466ff=_0x27b931;var _0x138fb8,_0x2d503e;return(_0x138fb8=(_0x2d503e=this[_0x4466ff(0x329)])==null?void 0x0:_0x2d503e['memberID'])==null?null:_0x138fb8;}[_0x27b931(0x2bc)](){const _0x2d507f=_0x27b931;super[_0x2d507f(0x2bc)](),this[_0x2d507f(0x15b)](),this[_0x2d507f(0x18b)][_0x2d507f(0x396)](),this[_0x2d507f(0x18b)]['complete']();}[_0x27b931(0x15b)](){const _0x4a17cc=_0x27b931;var _0x1d7a02;this[_0x4a17cc(0x1b6)](),(_0x1d7a02=this[_0x4a17cc(0x329)])==null||_0x1d7a02['send']({'cmd':_0x26a654[_0x4a17cc(0x185)]['LEAVE'],'data':{'roomID':this[_0x4a17cc(0x1bd)]['target']['unitId']}}),this[_0x4a17cc(0x355)][_0x4a17cc(0x32e)](),this[_0x4a17cc(0x224)][_0x4a17cc(0x32e)]();}[_0x27b931(0x343)](_0x3a7996){const _0x1209a1=_0x27b931;_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x1e9)]?this['_onJoinRoomEvent'](_0x3a7996):_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x34a)]&&this['_onRecvEvent'](_0x3a7996);}[_0x27b931(0x196)](_0x446b22){const _0x540b70=_0x27b931;this[_0x540b70(0x224)][_0x540b70(0x396)](0x1),_0x446b22[_0x540b70(0x16b)]({'cmd':_0x26a654[_0x540b70(0x185)][_0x540b70(0x1e9)],'routeKey':this['_identity'][_0x540b70(0x216)][_0x540b70(0x320)],'routeType':'','data':{'rooms':[{'roomID':this[_0x540b70(0x1bd)]['target'][_0x540b70(0x320)]}]}});}[_0x27b931(0x2cd)](_0x2a69e3){const _0x329e67=_0x27b931;var _0x7629f8;if(_0x2a69e3[_0x329e67(0x1fc)]in _0x49999b){this['_collaborationUIEventService']['emitEvent']({'id':_0x329e67(0x33d),'data':_0x49999b[_0x2a69e3[_0x329e67(0x1fc)]]}),this[_0x329e67(0x224)][_0x329e67(0x396)](0x2);return;}this[_0x329e67(0x224)]['next'](0x3);let _0x5ede63=(_0x7629f8=_0x2a69e3[_0x329e67(0x401)][_0x329e67(0x1e3)][this[_0x329e67(0x1bd)]['target'][_0x329e67(0x320)]])==null?void 0x0:_0x7629f8[_0x329e67(0x406)];_0x5ede63&&_0x5ede63[_0x329e67(0x302)](_0xead38f=>this[_0x329e67(0x342)][_0x329e67(0x2d5)](this[_0x329e67(0x1bd)][_0x329e67(0x2c2)],_0xead38f));}[_0x27b931(0x30e)](_0x5dbc2a){const _0x282876=_0x27b931;try{let _0x1eaad6=_0x34b807(this[_0x282876(0x1bd)],_0x5dbc2a['data']);for(let _0x39f2d9 of _0x1eaad6)switch(_0x39f2d9[_0x282876(0x1a4)]){case _0x149d12[_0x282876(0x3eb)][_0x282876(0x260)]:this['_onUserJoin'](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x337)]:this[_0x282876(0x13c)](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x369)]:case _0x149d12[_0x282876(0x3eb)]['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x282876(0x27b)](),this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x3c6)]:this[_0x282876(0x1a1)][_0x282876(0x294)](_0x282876(0x3e8)+JSON[_0x282876(0x3e5)](_0x39f2d9)),this['_event$'][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x33a)]:this[_0x282876(0x1c0)][_0x282876(0x3c9)](_0x39f2d9[_0x282876(0x401)]),this['_event$']['next'](_0x39f2d9);break;default:this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);}}catch(_0x471105){this[_0x282876(0x1a1)][_0x282876(0x294)](_0x471105,_0x5dbc2a);}}['_onUserJoin'](_0x3d3c00){const _0x1ea8da=_0x27b931;this[_0x1ea8da(0x342)][_0x1ea8da(0x2d5)](this[_0x1ea8da(0x1bd)][_0x1ea8da(0x2c2)],_0x3d3c00['data']);}[_0x27b931(0x13c)](_0x436d5a){const _0x5cd189=_0x27b931;this[_0x5cd189(0x342)][_0x5cd189(0x378)](this['_identity'][_0x5cd189(0x2c2)],_0x436d5a['data'][_0x5cd189(0x1aa)]);}async[_0x27b931(0x16b)](_0x1716d5,_0x740026){const _0x40f57e=_0x27b931;if(this[_0x40f57e(0x2a5)]!==0x3||!this['_socket'])throw Error(_0x40f57e(0x252));try{let _0x3fc24d=_0x389eba(this['_identity'],_0x1716d5);_0x3fc24d[_0x40f57e(0x1a4)]===_0x149d12[_0x40f57e(0x3eb)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x40f57e(0xf0)](_0x3fc24d)),this[_0x40f57e(0x329)][_0x40f57e(0x16b)]({'cmd':_0x26a654['CombCmd'][_0x40f57e(0x264)],'routeKey':this[_0x40f57e(0x1bd)][_0x40f57e(0x216)][_0x40f57e(0x320)],'routeType':'','data':_0x3fc24d});}catch(_0xcf6991){this[_0x40f57e(0x1a1)][_0x40f57e(0x294)](_0xcf6991);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a2c15=_0x27b931;var _0x485392;this[_0x5a2c15(0xf1)]=setTimeout(()=>{const _0x13d696=_0x5a2c15;this[_0x13d696(0xf1)]=null,this[_0x13d696(0x11a)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x485392=this['_configService']['getConfig'](_0x5a2c15(0xe4)))==null?_0x1dfc3f:_0x485392);}[_0x27b931(0x27b)](){const _0x196b10=_0x27b931;this[_0x196b10(0xf1)]&&(clearTimeout(this[_0x196b10(0xf1)]),this[_0x196b10(0xf1)]=null);}[_0x27b931(0xf0)](_0x557994){const _0x30324b=_0x27b931;if(!this['_shouldReportTelemetry'])return;let {data:_0x370353}=_0x557994,{unitID:_0x5246c3,changeset:_0x1735bb}=_0x370353,{mutations:_0x4ecaf9,type:_0x13e145}=_0x1735bb;this['_telemetryInfo']={'unitId':_0x5246c3,'type':_0x13e145,'startTime':performance[_0x30324b(0x284)](),'stopTime':0x0,'duration':0x0,'size':_0x378d76(_0x4ecaf9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x30c0ef=_0x27b931;if(this[_0x30c0ef(0xce)]){if(!this[_0x30c0ef(0x156)]){this[_0x30c0ef(0x1a1)][_0x30c0ef(0x294)](_0x30c0ef(0x3ae),_0x30c0ef(0x14c));return;}this[_0x30c0ef(0x156)]['stopTime']=performance['now'](),this[_0x30c0ef(0x156)]['duration']=this[_0x30c0ef(0x156)][_0x30c0ef(0x2aa)]-this[_0x30c0ef(0x156)][_0x30c0ef(0x388)],this[_0x30c0ef(0x279)]['capture'](_0x30c0ef(0x1b7),this[_0x30c0ef(0x156)]),this[_0x30c0ef(0x156)]=null;}}[_0x27b931(0x1b6)](){const _0x3586a8=_0x27b931;this[_0x3586a8(0x156)]=null;}};_0x4ea072=_0x1fb4c2([_0x2af294(0x2,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x541d7d)),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x101a15)),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x233)])(_0x32d36d['ITelemetryService']))],_0x4ea072);let _0x419224=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3c8));function _0xe42769(_0x3209bf){return'unit-cache-'+_0x3209bf;}function _0xec7bcb(_0x4ac1da){const _0xf65499=_0x27b931;let {unitID:_0x195a4a,mutations:_0x366d2a}=_0x4ac1da;return{'unitId':_0x195a4a,'subUnitId':_0x366d2a[_0xf65499(0x415)]>0x0?_0x366d2a[0x0][_0xf65499(0xfc)][_0xf65499(0x109)]:null};}let _0x2e077e=class{constructor(_0x27e62a,_0x24817f,_0x2d27c6){const _0x32a71c=_0x27b931;this[_0x32a71c(0x2fe)]=_0x27e62a,this[_0x32a71c(0x14e)]=_0x24817f,this[_0x32a71c(0x297)]=_0x2d27c6;}[_0x27b931(0x299)](_0x4b9dd7){const _0x535aaf=_0x27b931;var _0xdadce7,_0x939a9f;let _0x5d4114=this[_0x535aaf(0x2fe)][_0x535aaf(0x1ad)](_0x1e2709[_0x535aaf(0x165)]),{unitId:_0x395e32,subUnitId:_0x3f76c9}=_0xec7bcb(_0x4b9dd7),_0x565885=_0x5d4114==null?void 0x0:_0x5d4114[_0x535aaf(0x2b9)](_0x395e32)[_0x535aaf(0xcd)](),_0x4a62f2=(_0xdadce7=this['_instanceService'][_0x535aaf(0x326)](_0x395e32))==null||(_0xdadce7=_0xdadce7[_0x535aaf(0x3bf)]())==null?void 0x0:_0xdadce7[_0x535aaf(0x18c)]();if(_0x565885[_0x535aaf(0x415)]===0x0||!_0x395e32||!_0x3f76c9)return;let _0x289c74=[{'id':_0x1e2709[_0x535aaf(0x193)]['id'],'params':{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x47f753['Tools'][_0x535aaf(0xd7)](_0x565885)}}],_0x116b3b=this['_transformService'][_0x535aaf(0x17a)](_0x4b9dd7,_0x289c74);if(!(0x0,_0x149d12[_0x535aaf(0x421)])(_0x116b3b))throw _0x116b3b[_0x535aaf(0x294)];let _0x423418=(_0x939a9f=_0x116b3b[_0x535aaf(0x3b0)][0x0])==null||(_0x939a9f=_0x939a9f[_0x535aaf(0xfc)])==null?void 0x0:_0x939a9f[_0x535aaf(0x163)];if(Array[_0x535aaf(0x22d)](_0x423418)&&_0x423418[_0x535aaf(0x415)]){if(_0x423418[_0x535aaf(0x415)]===_0x289c74[0x0][_0x535aaf(0xfc)]['selections'][_0x535aaf(0x415)]&&_0x423418[_0x535aaf(0x154)]((_0x1b496d,_0x4e0a82)=>_0x47f753[_0x535aaf(0x179)]['equals'](_0x1b496d[_0x535aaf(0x338)],_0x289c74[0x0][_0x535aaf(0xfc)][_0x535aaf(0x163)][_0x4e0a82]['range'])))return;this['_injector'][_0x535aaf(0x1ad)](_0x47f753[_0x535aaf(0x25c)])['executeCommand'](_0x1e2709['SetSelectionsOperation']['id'],{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x423418});}}};_0x2e077e=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x149d12['ITransformService']),_0x2af294(0x2,_0x47f753['IUniverInstanceService'])],_0x2e077e);let _0x435069=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x14b)),_0x709438=function(_0x2fec58){const _0x2c0578=_0x27b931;return _0x2fec58[_0x2fec58[_0x2c0578(0x416)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2fec58[_0x2fec58[_0x2c0578(0x261)]=0x1]='OTHER_CLIENTS_EDITING',_0x2fec58;}({});function _0xd39fe(_0x6c1112){const _0x36dea6=_0x27b931;var _0x5ad218;return!!((_0x5ad218=_0x6c1112['params'])!=null&&_0x5ad218[_0x36dea6(0x39a)]);}let _0xb89c6b=new Set([_0x1e2709['InsertSheetMutation']['id']]),_0x23d1ab=new Set([_0x40163b['AddSlidePageMutation']['id'],_0x40163b[_0x27b931(0x3f7)]['id'],_0x40163b[_0x27b931(0x2f7)]['id'],_0x40163b[_0x27b931(0x259)]['id']]);function _0x46bcf2(_0x17a8d6,_0x917eac=_0xb89c6b){const _0x2ebda0=_0x27b931;let _0x2500ef=[];for(let _0x2f3ef0 of _0x17a8d6){if(_0x917eac[_0x2ebda0(0xff)](_0x2f3ef0['id'])){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}if(_0xd39fe(_0x2f3ef0)){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}_0x2500ef[_0x2ebda0(0x30b)](_0x2f3ef0);}return _0x2500ef;}function _0x56f864(_0x146cc8,_0x1423b5,_0x2cbb2e,_0xad4e4b,_0x1109d6){const _0x5c3349=_0x27b931;var _0x3590ed,_0x54772a,_0x135651,_0x4b8e0d;let _0x528e0a=_0x46bcf2(_0x146cc8),_0x2f0a3f=(_0x3590ed=(_0x54772a=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x54772a[_0x5c3349(0x13a)])==null?_0x5c3349(0x316):_0x3590ed,_0x33e71a=(_0x135651=(_0x4b8e0d=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x4b8e0d[_0x5c3349(0x1aa)])==null?'unknown':_0x135651;return{'changeset':{'unitID':_0x1423b5,'type':(0x0,_0x149d12[_0x5c3349(0x22c)])(_0x2cbb2e['getUnitType'](_0x1423b5)),'baseRev':_0xad4e4b['getCurrentRevOfUnit'](_0x1423b5),'revision':0x0,'userID':_0x2f0a3f,'memberID':_0x33e71a,'mutations':_0x528e0a},'pendingMutations':_0x146cc8['slice'](_0x528e0a[_0x5c3349(0x415)])};}function _0x4c958f(_0x18b1c5,_0xa7cb33,_0x211a4f,_0x467a25,_0x5f5af6){const _0x274ebe=_0x27b931;var _0x162acd,_0x29004c,_0x17f22e,_0x41abdd;let _0x13f1aa=_0x46bcf2(_0x18b1c5,_0x23d1ab),_0x4e1c9f=(_0x162acd=(_0x29004c=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x29004c['userID'])==null?_0x274ebe(0x316):_0x162acd,_0x173fdc=(_0x17f22e=(_0x41abdd=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x41abdd['memberID'])==null?_0x274ebe(0x316):_0x17f22e;return{'changeset':{'unitID':_0xa7cb33,'type':(0x0,_0x149d12[_0x274ebe(0x22c)])(_0x211a4f['getUnitType'](_0xa7cb33)),'baseRev':_0x467a25[_0x274ebe(0x322)](_0xa7cb33),'revision':0x0,'userID':_0x4e1c9f,'memberID':_0x173fdc,'mutations':_0x13f1aa},'pendingMutations':_0x18b1c5[_0x274ebe(0x14f)](_0x13f1aa['length'])};}function _0x1f4433(_0xe01410,_0x301f91,_0x51344f,_0x569429,_0x3f5b8a){const _0xd86b22=_0x27b931;var _0x306596,_0xc87f4b,_0x162fef,_0x21708e;let _0x18894b=_0xe01410[_0xd86b22(0x1ca)]((_0x2a69eb,_0x4a1fbf)=>{const _0x1a45fc=_0xd86b22;let _0x3b1633=_0x2a69eb[_0x2a69eb[_0x1a45fc(0x415)]-0x1],{id:_0x42267c}=_0x3b1633==null?{}:_0x3b1633,{id:_0x39e99d,type:_0x18dc55}=_0x4a1fbf,_0xf853ba=_0x4a1fbf[_0x1a45fc(0xfc)];if(_0x42267c&&_0x42267c!==_0x39e99d)throw Error(_0x1a45fc(0x419)+_0x42267c+_0x1a45fc(0x328)+_0x39e99d+'.');if(!_0x3b1633)return[{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba['textRanges'],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];let _0x5640e2=_0x3b1633[_0x1a45fc(0xfc)];return _0x431857(_0x5640e2,_0xf853ba)?[..._0x2a69eb[_0x1a45fc(0x14f)](0x0,-0x1),{..._0x3b1633,'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0x47f753[_0x1a45fc(0x231)][_0x1a45fc(0x14d)](_0x5640e2['actions'],_0xf853ba[_0x1a45fc(0x1b8)])}}]:[..._0x2a69eb,{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba['unitId'],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];},[]),_0x26f2a8=(_0x306596=(_0xc87f4b=_0x3f5b8a['getCurrentUser']())==null?void 0x0:_0xc87f4b[_0xd86b22(0x13a)])==null?_0xd86b22(0x316):_0x306596,_0x29cddc=(_0x162fef=(_0x21708e=_0x3f5b8a[_0xd86b22(0x21f)]())==null?void 0x0:_0x21708e[_0xd86b22(0x1aa)])==null?_0xd86b22(0x316):_0x162fef;return{'changeset':{'unitID':_0x301f91,'type':(0x0,_0x149d12['mapDocumentTypeToUniverInstanceType'])(_0x51344f[_0xd86b22(0x41a)](_0x301f91)),'baseRev':_0x569429[_0xd86b22(0x322)](_0x301f91),'revision':0x0,'userID':_0x26f2a8,'memberID':_0x29cddc,'mutations':_0x18894b},'pendingMutations':_0xe01410['slice'](_0xe01410[_0xd86b22(0x415)])};}function _0x431857(_0x47ee0d,_0x4a16cc){const _0x3cebdc=_0x27b931;return!_0x3b13eb(_0x47ee0d)&&!_0x3b13eb(_0x4a16cc)&&_0x34cc88(_0x47ee0d[_0x3cebdc(0x1b8)],_0x4a16cc[_0x3cebdc(0x1b8)]);}function _0x3b13eb(_0x23dc22){const _0x4ae797=_0x27b931;return _0x23dc22[_0x4ae797(0x31a)]!==void 0x0;}function _0x34cc88(_0x486544,_0x29babb){return _0x14ae70(_0x486544)&&_0x14ae70(_0x29babb)&&!_0x2c2db9(_0x486544)&&!_0x2c2db9(_0x29babb)&&!_0x1e58ef(_0x486544)&&!_0x1e58ef(_0x29babb);}function _0x14ae70(_0x4ef133){const _0x2e19b5=_0x27b931;return _0x54bd72(_0x4ef133)['some'](_0x3b31da=>_0xbf6c98(_0x3b31da)&&_0x3b31da['et']===_0x2e19b5(0x1bf));}function _0x1e58ef(_0xf294c2){const _0x10e102=_0x27b931;return _0x54bd72(_0xf294c2)['some'](_0x380308=>Array[_0x10e102(0x22d)](_0x380308)||typeof _0x380308==_0x10e102(0x267)||typeof _0x380308==_0x10e102(0x116));}function _0x2c2db9(_0x4bf3ec){const _0x3cf840=_0x27b931;return _0x54bd72(_0x4bf3ec)[_0x3cf840(0x405)](_0x36fc77=>!_0xbf6c98(_0x36fc77)||_0x36fc77['et']!==_0x3cf840(0x1bf)||!Array[_0x3cf840(0x22d)](_0x36fc77['e'])?!0x1:_0x36fc77['e'][_0x3cf840(0x405)](_0x4f40c4=>!_0xbf6c98(_0x4f40c4)||!_0xbf6c98(_0x4f40c4[_0x3cf840(0x2d9)])?!0x1:Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4[_0x3cf840(0x2d9)],_0x3cf840(0x1c5))||Object[_0x3cf840(0x39f)]['hasOwnProperty'][_0x3cf840(0x25a)](_0x4f40c4['body'],_0x3cf840(0x125))||Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4['body'],'blockRanges')));}function _0x54bd72(_0x4080be){const _0xc909af=_0x27b931;if(!Array['isArray'](_0x4080be))return[];let _0x6a6ab3=_0x4080be[_0xc909af(0xf2)](_0xc909af(0x2d9))?_0x4080be:_0x4080be['find'](_0x4a2571=>Array[_0xc909af(0x22d)](_0x4a2571)&&_0x4a2571[_0xc909af(0xf2)](_0xc909af(0x2d9)));if(!Array[_0xc909af(0x22d)](_0x6a6ab3))return[];let _0x1cb57=_0x6a6ab3[_0xc909af(0x290)]('body');return _0x1cb57===-0x1?[]:_0x6a6ab3[_0xc909af(0x14f)](_0x1cb57+0x1);}function _0xbf6c98(_0x1976cc){return typeof _0x1976cc=='object'&&!!_0x1976cc&&!Array['isArray'](_0x1976cc);}function _0xa9ec8e(_0x20dd9a,_0x3b97db){const _0x3a569b=_0x27b931;let _0x300331=new _0x470009['ReplaySubject'](0x1);return setTimeout(()=>_0x300331[_0x3a569b(0x396)](_0x3b97db),_0x20dd9a),_0x300331[_0x3a569b(0x2b2)]()[_0x3a569b(0x11f)]((0x0,_0x470009[_0x3a569b(0x1c3)])(0x1));}var _0x3fe01c,_0x273481,_0xf27d34;let _0xdb2824=function(_0x2c6cd2){const _0x598750=_0x27b931;return _0x2c6cd2[_0x598750(0x2d2)]=_0x598750(0xe1),_0x2c6cd2[_0x598750(0x35d)]=_0x598750(0x2da),_0x2c6cd2[_0x598750(0x390)]=_0x598750(0x341),_0x2c6cd2['AWAITING']=_0x598750(0x10c),_0x2c6cd2[_0x598750(0x1e1)]='awaiting_with_pending',_0x2c6cd2['FETCH_MISS']=_0x598750(0x11d),_0x2c6cd2['CONFLICT']='conflict',_0x2c6cd2[_0x598750(0x383)]='offline',_0x2c6cd2;}({}),_0x3d7ed8=0x4e20,_0xb2329d=0x2bf20;var _0x245952=class{constructor(_0x57bcf8,_0x931ec2,_0x2b29e9,_0xb47052,_0x504c99,_0x3aaef6,_0x5145d6,_0x5e197d,_0x549dae){const _0x34789c=_0x27b931;this[_0x34789c(0x2ea)]=_0x57bcf8,this[_0x34789c(0x2af)]=_0x931ec2,this[_0x34789c(0x13b)]=_0x504c99,this[_0x34789c(0x38d)]=_0x3aaef6,this[_0x34789c(0x1c6)]=_0x5145d6,this[_0x34789c(0x105)]=_0x5e197d,this['_localCacheService']=_0x549dae,_0x2dd74e(this,_0x34789c(0x1f7),null),_0x2dd74e(this,'_pendingMutations',[]),this[_0x34789c(0x1f7)]=_0x2b29e9,this[_0x34789c(0x3da)]=_0xb47052;}[_0x27b931(0x16d)](_0x3186f0){const _0x31c648=_0x27b931;let _0x549bba=this[_0x31c648(0x105)]['getCurrentRevOfUnit'](this[_0x31c648(0x2ea)]);return _0x3186f0['revision']>_0x549bba+0x1?(this['_handler']['onMissingChangesets']({'from':_0x549bba,'to':_0x3186f0[_0x31c648(0xe7)]-0x1}),!0x0):!0x1;}[_0x27b931(0x2cb)](_0x1ff250){const _0x505782=_0x27b931;this[_0x505782(0x1c6)][_0x505782(0x135)](this[_0x505782(0x2ea)],_0x1ff250);}['_transformSelections'](_0x28e87a){const _0x50894a=_0x27b931;var _0x331d49,_0x49990b;(_0x331d49=(_0x49990b=this[_0x50894a(0x13b)])['onTransformSelections'])==null||_0x331d49['call'](_0x49990b,_0x28e87a);}[_0x27b931(0x202)](_0x53c6ff){const _0x5a4e5c=_0x27b931;var _0x40c765,_0x1ba128;return(_0x40c765=(_0x1ba128=this[_0x5a4e5c(0x13b)])[_0x5a4e5c(0x384)])==null?void 0x0:_0x40c765[_0x5a4e5c(0x25a)](_0x1ba128,_0x53c6ff);}[_0x27b931(0x20c)](_0x281e2a){const _0x31181f=_0x27b931;var _0x33beaa,_0x2ab297;return(_0x33beaa=(_0x2ab297=this[_0x31181f(0x13b)])['onTransformState'])==null?void 0x0:_0x33beaa['call'](_0x2ab297,_0x281e2a);}[_0x27b931(0x127)](_0x6b03b3){const _0x1b1e48=_0x27b931;var _0x387270,_0x1e3e7f,_0x389d1f;return(_0x387270=(_0x1e3e7f=(_0x389d1f=this[_0x1b1e48(0x13b)])[_0x1b1e48(0x291)])==null?void 0x0:_0x1e3e7f[_0x1b1e48(0x25a)](_0x389d1f,_0x6b03b3))==null?_0x6b03b3:_0x387270;}[_0x27b931(0xf8)](_0x2259e5){const _0x372a90=_0x27b931;var _0x2b2e95,_0x1f2afa,_0x39736f;return(_0x2b2e95=(_0x1f2afa=(_0x39736f=this['_handler'])[_0x372a90(0x2d3)])==null?void 0x0:_0x1f2afa['call'](_0x39736f,_0x2259e5))==null?_0x2259e5:_0x2b2e95;}[_0x27b931(0x40f)](_0x4862c6){const _0xfe8aff=_0x27b931;if(this[_0xfe8aff(0x2af)]===_0x47f753[_0xfe8aff(0x3fc)][_0xfe8aff(0x243)]){let {unitID:_0x2f3efc,mutations:_0x45e9a1,memberID:_0x23787b}=_0x4862c6,_0x261deb=_0x45e9a1['length']>0x0?_0x45e9a1[0x0][_0xfe8aff(0xfc)][_0xfe8aff(0x141)]:[];if(Array[_0xfe8aff(0x22d)](_0x261deb)&&_0x261deb['length']>0x0){var _0x344b8f,_0x330db2;(_0x344b8f=(_0x330db2=this[_0xfe8aff(0x13b)])[_0xfe8aff(0x10b)])==null||_0x344b8f[_0xfe8aff(0x25a)](_0x330db2,{'unitID':_0x2f3efc,'memberID':_0x23787b,'textRanges':_0x261deb});}}}[_0x27b931(0x292)](){const _0x31c0aa=_0x27b931;var _0x2771a8;(_0x2771a8=this[_0x31c0aa(0x189)])==null||_0x2771a8['updateOfflineData'](this[_0x31c0aa(0x2ea)],this[_0x31c0aa(0x2af)],this[_0x31c0aa(0x1f7)],this[_0x31c0aa(0x3da)]);}[_0x27b931(0x319)](){const _0x507949=_0x27b931;return this[_0x507949(0x105)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x36f468=_0x27b931;this['_revisionService'][_0x36f468(0x3ca)](this[_0x36f468(0x2ea)]);}[_0x27b931(0x164)](_0x40f6ef){const _0x44d695=_0x27b931;let _0x422095=this[_0x44d695(0x127)](_0x40f6ef);_0x422095=this[_0x44d695(0xf8)](_0x422095);let _0x188526=(0x0,_0x47f753[_0x44d695(0x254)])(_0x422095['mutations'],this[_0x44d695(0x38d)],{'fromCollab':!0x0});if(!_0x188526['result']){var _0x371fd1;throw _0x188526['error']instanceof Error?_0x188526['error']:Error((_0x371fd1=_0x188526[_0x44d695(0x294)])==null?'[CollaborationState]:\x20apply\x20error!':_0x371fd1);}this[_0x44d695(0x202)](_0x422095),this['_transformStateCache'](_0x422095),this[_0x44d695(0x2cb)](_0x40f6ef),this[_0x44d695(0x115)](_0x422095),this[_0x44d695(0x40f)](_0x422095),this[_0x44d695(0x1cd)]();}};let _0x50a3a4=class extends _0x245952{constructor(_0x3fb7e8,_0x284423,_0x483460,_0xd19e43,_0x52afde,_0x507f12,_0x544021,_0x5c4548,_0x27494b,_0x4cccb3){const _0x483582=_0x27b931;super(_0x3fb7e8,_0x284423,null,[],_0x483460,_0x544021,_0x507f12,_0xd19e43,_0x4cccb3),this['_injector']=_0x52afde,this['_logService']=_0x5c4548,this['_transformService']=_0x27494b,this[_0x483582(0x23c)]=_0x4cccb3,_0x2dd74e(this,_0x483582(0x397),_0x483582(0x2da));}[_0x27b931(0x219)](_0x3a5c6a){const _0x50508d=_0x27b931;let _0x3678f1=this[_0x50508d(0x2fe)][_0x50508d(0x392)](_0x467875,this[_0x50508d(0x2ea)],this[_0x50508d(0x2af)],[_0x3a5c6a],this[_0x50508d(0x13b)]);return _0x3678f1[_0x50508d(0x34b)](),_0x3678f1[_0x50508d(0x292)](),_0x3678f1;}[_0x27b931(0xf7)](_0x1dddc9){const _0x4a50e9=_0x27b931;if(this[_0x4a50e9(0x16d)](_0x1dddc9))return this['_injector'][_0x4a50e9(0x392)](_0x3b1a33,this[_0x4a50e9(0x2ea)],this[_0x4a50e9(0x2af)],null,[],null,[_0x1dddc9],this[_0x4a50e9(0x13b)]);try{let _0x46e4e4=this[_0x4a50e9(0x14e)][_0x4a50e9(0x17a)](_0x1dddc9,[_0x149d12[_0x4a50e9(0x2a9)]]);if((0x0,_0x149d12['isTransformMutationsWithChangesetSuccess'])(_0x46e4e4)){let {c1Prime:_0x73f905}=_0x46e4e4;return this['_executeRemoteChangeset'](_0x73f905),this;}throw _0x46e4e4['error'];}catch(_0x303d5e){return this[_0x4a50e9(0x1a1)][_0x4a50e9(0x294)](_0x303d5e),this[_0x4a50e9(0x270)](!0x1);}}[_0x27b931(0x270)](_0x555fc9){const _0x30d063=_0x27b931;return this[_0x30d063(0x2fe)]['createInstance'](_0x41f3d6,this[_0x30d063(0x2ea)],this['type'],null,[],this['_handler'],_0x555fc9);}[_0x27b931(0x420)](_0x54d810){const _0x3d6110=_0x27b931;if(_0x54d810[_0x3d6110(0xe7)]<=this[_0x3d6110(0x319)]())return this;throw Error(_0x3d6110(0x215));}[_0x27b931(0xef)](){const _0x3f1f4f=_0x27b931;throw Error(_0x3f1f4f(0x13f));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x2b9da4=_0x27b931;return this[_0x2b9da4(0x2fe)][_0x2b9da4(0x392)](_0x58261a,this['unitID'],this['type'],null,[],this['_handler']);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x147fee=_0x27b931;throw Error(_0x147fee(0x12a));}[_0x27b931(0xd2)](){const _0x333f4b=_0x27b931;let _0xd9d335=this[_0x333f4b(0x105)][_0x333f4b(0x322)](this[_0x333f4b(0x2ea)]);return this['_handler'][_0x333f4b(0x2ab)]({'from':_0xd9d335,'to':0x0}),this[_0x333f4b(0x2fe)][_0x333f4b(0x392)](_0x3b1a33,this[_0x333f4b(0x2ea)],this[_0x333f4b(0x2af)],null,[],null,[],this[_0x333f4b(0x13b)]);}};_0x50a3a4=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,_0x47f753['IUndoRedoService']),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x50a3a4);let _0x467875=_0x3fe01c=class extends _0x245952{constructor(_0x34b6f7,_0x290244,_0x3a145d,_0x562046,_0x5bd416,_0x292127,_0x1bd9ce,_0xef5cfe,_0x349a87,_0x43a8a2,_0x1755d3,_0x19b40b,_0x4b38e7,_0x1ecccb){const _0x468c5e=_0x27b931;super(_0x34b6f7,_0x290244,null,_0x3a145d,_0x562046,_0x349a87,_0x4b38e7,_0x292127,_0x1ecccb),this[_0x468c5e(0x2fe)]=_0x5bd416,this['_memberService']=_0x1bd9ce,this[_0x468c5e(0x1a1)]=_0xef5cfe,this['_configService']=_0x43a8a2,this[_0x468c5e(0x14e)]=_0x1755d3,this[_0x468c5e(0x37d)]=_0x19b40b,_0x2dd74e(this,_0x468c5e(0x397),'pending'),_0x2dd74e(this,_0x468c5e(0x3b2),null),_0x2dd74e(this,'_sendingTimer',null);}[_0x27b931(0x219)](_0x3fb845){const _0x1959b5=_0x27b931;return this[_0x1959b5(0x3da)]['push'](_0x3fb845),this[_0x1959b5(0x292)](),this;}[_0x27b931(0xf7)](_0x7d723d){const _0x2f696f=_0x27b931;if(this[_0x2f696f(0x16d)](_0x7d723d))return this[_0x2f696f(0x2dc)](),this[_0x2f696f(0x2fe)][_0x2f696f(0x392)](_0x3b1a33,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],null,this[_0x2f696f(0x3da)],null,[_0x7d723d],this[_0x2f696f(0x13b)]);try{let _0x19a963=this['_transformService'][_0x2f696f(0x17a)](_0x7d723d,this[_0x2f696f(0x3da)]);if((0x0,_0x149d12[_0x2f696f(0x421)])(_0x19a963)){let {c1Prime:_0x4f9446,m2Prime:_0x61bdeb}=_0x19a963;this[_0x2f696f(0x164)](_0x4f9446);let _0x437c87=this['_injector'][_0x2f696f(0x392)](_0x3fe01c,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],_0x61bdeb,this[_0x2f696f(0x13b)]);this[_0x2f696f(0x2dc)]();let _0x230ae8=new Date()[_0x2f696f(0xf3)](),_0x162506=this[_0x2f696f(0x3b2)]?Math[_0x2f696f(0x2b5)](this[_0x2f696f(0x3b2)]-_0x230ae8,0x0):this[_0x2f696f(0x1ef)]();return _0x437c87[_0x2f696f(0x34b)](_0x162506),_0x437c87;}throw _0x19a963[_0x2f696f(0x294)];}catch(_0x195047){return this[_0x2f696f(0x1a1)][_0x2f696f(0x294)](_0x195047),this[_0x2f696f(0x270)](!0x1);}}[_0x27b931(0x420)](_0x4fdc33){const _0x32f6d8=_0x27b931;if(_0x4fdc33[_0x32f6d8(0xe7)]<=this['_getCurrentRevision']())return this;throw Error(_0x32f6d8(0x177));}[_0x27b931(0xef)](){const _0x12069d=_0x27b931;throw Error(_0x12069d(0x40d));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x3dc17d=_0x27b931;return this['_clearScheduledTask'](),this[_0x3dc17d(0x2fe)][_0x3dc17d(0x392)](_0x58261a,this['unitID'],this[_0x3dc17d(0x2af)],null,this[_0x3dc17d(0x3da)],this[_0x3dc17d(0x13b)]);}['toggleOnline'](){return this;}['_schedule'](_0x4e3c4f){const _0x31c9fc=_0x27b931;let _0x45c791=_0x4e3c4f==null?this[_0x31c9fc(0x1ef)]():_0x4e3c4f;this[_0x31c9fc(0x3b2)]=new Date()[_0x31c9fc(0xf3)]()+_0x45c791,this['_sendingTimer']=setTimeout(()=>{const _0x5ac572=_0x31c9fc;this[_0x5ac572(0x2dc)]();let _0x423db3=null;switch(this[_0x5ac572(0x2af)]){case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x239)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x243)]:_0x423db3=this[_0x5ac572(0x3da)]['every'](_0x5f43d1=>_0x5f43d1['id']===_0x459006[_0x5ac572(0x20a)]['id'])?_0x1f4433(this['_pendingMutations'],this['unitID'],this[_0x5ac572(0x37d)],this['_revisionService'],this[_0x5ac572(0x342)]):_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x339)]:_0x423db3=_0x4c958f(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x41d)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x313)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;default:throw Error(_0x5ac572(0x1be)+this['type']+_0x5ac572(0x39e));}let {changeset:_0x17a977,pendingMutations:_0x176b59}=_0x423db3;this[_0x5ac572(0x13b)][_0x5ac572(0x244)](_0x17a977);let _0x35712=_0x176b59['length']?this[_0x5ac572(0x2fe)][_0x5ac572(0x392)](_0x15bd87,this[_0x5ac572(0x2ea)],this[_0x5ac572(0x2af)],_0x17a977,_0x176b59,this[_0x5ac572(0x13b)],void 0x0):this[_0x5ac572(0x2fe)]['createInstance'](_0x42dff3,this['unitID'],this[_0x5ac572(0x2af)],_0x17a977,this[_0x5ac572(0x13b)]);_0x35712[_0x5ac572(0x292)](),this['_handler'][_0x5ac572(0x2e0)](this,_0x35712);},_0x45c791);}['_getSendChangesetTimeout'](){const _0x26f588=_0x27b931;var _0xbf852b;let _0x2b55e7=this[_0x26f588(0x228)][_0x26f588(0x190)](_0x3c17be);return(_0xbf852b=_0x2b55e7==null?void 0x0:_0x2b55e7[_0x26f588(0x2f8)])==null?0x7d0:_0xbf852b;}[_0x27b931(0x36c)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x1e54c6=_0x27b931;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e54c6(0xfe)]=null);}[_0x27b931(0x270)](_0x171a98){const _0x1564b2=_0x27b931;return this['_clearScheduledTask'](),this[_0x1564b2(0x2fe)][_0x1564b2(0x392)](_0x41f3d6,this['unitID'],this[_0x1564b2(0x2af)],null,this['_pendingMutations'],this[_0x1564b2(0x13b)],_0x171a98);}};_0x467875=_0x3fe01c=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x541d7d)),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUniverInstanceService']),_0x2af294(0xc,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x419224))],_0x467875);let _0x42dff3=_0x273481=class extends _0x245952{constructor(_0x4748fe,_0x271465,_0x2a93a7,_0x3bdc99,_0x204a6d,_0x445d70,_0x399cea,_0x5bbd19,_0x297c11,_0x2344af,_0x5ead2e){const _0x432940=_0x27b931;super(_0x4748fe,_0x271465,_0x2a93a7,[],_0x3bdc99,_0x399cea,_0x2344af,_0x445d70,_0x5ead2e),this[_0x432940(0x2fe)]=_0x204a6d,this[_0x432940(0x1a1)]=_0x5bbd19,this[_0x432940(0x14e)]=_0x297c11,_0x2dd74e(this,_0x432940(0x397),'awaiting'),_0x2dd74e(this,'_resendTimeout',0x0),_0x2dd74e(this,_0x432940(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0x432940(0x1e0),void 0x0);}[_0x27b931(0x219)](_0x4bfcd3){const _0x6c38e0=_0x27b931;this[_0x6c38e0(0x2dc)]();let _0x5e7f22=this[_0x6c38e0(0x2fe)][_0x6c38e0(0x392)](_0x15bd87,this['unitID'],this[_0x6c38e0(0x2af)],this[_0x6c38e0(0x1f7)],[_0x4bfcd3],this['_handler'],this[_0x6c38e0(0x2ac)]);return _0x5e7f22['_updateLocalCache'](),_0x5e7f22;}['onRemoteChangeset'](_0x4ed9db){const _0x244667=_0x27b931;if(this[_0x244667(0x16d)](_0x4ed9db))return this[_0x244667(0x2dc)](),this[_0x244667(0x2fe)][_0x244667(0x392)](_0x3b1a33,this[_0x244667(0x2ea)],this['type'],this[_0x244667(0x1f7)],[],null,[_0x4ed9db],this['_handler']);try{let _0x4c992c=this['_transformService']['transformChangesets']([_0x4ed9db],[this[_0x244667(0x1f7)]],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x4c992c)){let {c1Prime:_0x482d9d,c2Prime:_0x15fd72}=_0x4c992c;this[_0x244667(0x164)](_0x482d9d[0x0]),_0x15fd72[0x0]['baseRev']=this[_0x244667(0x319)](),this[_0x244667(0x2dc)]();let _0x505cb5=this['_injector'][_0x244667(0x392)](_0x273481,this[_0x244667(0x2ea)],this[_0x244667(0x2af)],_0x15fd72[0x0],this[_0x244667(0x13b)]);return _0x505cb5[_0x244667(0x292)](),_0x505cb5;}throw _0x4c992c[_0x244667(0x294)];}catch(_0x545e0b){return this[_0x244667(0x1a1)][_0x244667(0x294)](_0x545e0b),this[_0x244667(0x270)](!0x1);}}[_0x27b931(0x420)](_0x51cde3){const _0x50332c=_0x27b931;this[_0x50332c(0x2dc)]();let _0x55bbc0=this[_0x50332c(0x105)]['getCurrentRevOfUnit'](this[_0x50332c(0x2ea)]);if(_0x51cde3['revision']<=_0x55bbc0)return this;if(this[_0x50332c(0x16d)](_0x51cde3))return this['_injector'][_0x50332c(0x392)](_0x3b1a33,this[_0x50332c(0x2ea)],this[_0x50332c(0x2af)],this[_0x50332c(0x1f7)],[],_0x51cde3[_0x50332c(0xe7)],[],this[_0x50332c(0x13b)]);this[_0x50332c(0x1cd)]();let _0x1acb96=this['_injector']['createInstance'](_0x50a3a4,this[_0x50332c(0x2ea)],this['type'],this[_0x50332c(0x13b)]);return _0x1acb96[_0x50332c(0x292)](),_0x1acb96;}[_0x27b931(0xef)](_0x1ea7c4){const _0x51aca7=_0x27b931;return this[_0x51aca7(0x270)](!!(_0x1ea7c4!=null&&_0x1ea7c4[_0x51aca7(0x174)]));}[_0x27b931(0x21d)](_0x4087a7){const _0x4aacb7=_0x27b931;return this[_0x4aacb7(0x143)]>_0xb2329d?this[_0x4aacb7(0x229)]():(this[_0x4aacb7(0x2ac)]=_0xa9ec8e(this[_0x4aacb7(0x1ea)],{'timeout':this['_resendTimeout'],'reqId':_0x4087a7[_0x4aacb7(0x20d)]}),this['_sender']=this['_resendTimer'][_0x4aacb7(0x38e)](({reqId:_0x1dd7b8,timeout:_0x2a1172})=>{this['_resendWithTimeout'](_0x1dd7b8,_0x2a1172);}),this);}[_0x27b931(0x229)](){const _0x148910=_0x27b931;return this[_0x148910(0x2dc)](),this[_0x148910(0x2fe)][_0x148910(0x392)](_0x58261a,this[_0x148910(0x2ea)],this[_0x148910(0x2af)],this[_0x148910(0x1f7)],[],this[_0x148910(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x1efb13=_0x27b931;this[_0x1efb13(0x13b)][_0x1efb13(0x244)](this[_0x1efb13(0x1f7)]);}[_0x27b931(0x270)](_0x595b5a){const _0x1b7f3f=_0x27b931;return this[_0x1b7f3f(0x2dc)](),this[_0x1b7f3f(0x2fe)][_0x1b7f3f(0x392)](_0x41f3d6,this[_0x1b7f3f(0x2ea)],this[_0x1b7f3f(0x2af)],this['_awaitingChangeset'],[],this[_0x1b7f3f(0x13b)],_0x595b5a);}[_0x27b931(0x367)](_0x41b188,_0x3d0d10){const _0xe5273f=_0x27b931;var _0x4bd098;_0x41b188===((_0x4bd098=this[_0xe5273f(0x1f7)])==null?void 0x0:_0x4bd098[_0xe5273f(0x20d)])&&(this[_0xe5273f(0x36c)](),this[_0xe5273f(0x1ea)]=_0x3d0d10===0x0?0x3e8:Math[_0xe5273f(0x24b)](_0x3d0d10*0x2,_0x3d7ed8),this[_0xe5273f(0x143)]+=this[_0xe5273f(0x1ea)]);}[_0x27b931(0x2dc)](){const _0x198027=_0x27b931;var _0x377e74;(_0x377e74=this[_0x198027(0x1e0)])==null||_0x377e74[_0x198027(0x138)](),this[_0x198027(0x1ea)]=0x0,this[_0x198027(0x143)]=0x0;}};_0x42dff3=_0x273481=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x42dff3);let _0x15bd87=_0xf27d34=class extends _0x245952{constructor(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x47303c,_0x42d343,_0x31be82,_0x38e4d3,_0x3f00ff,_0x51e1a3,_0x15d3d0,_0x3fa04e){const _0xe3a42b=_0x27b931;super(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x38e4d3,_0x15d3d0,_0x31be82,_0x3fa04e),this[_0xe3a42b(0x2fe)]=_0x42d343,this['_logService']=_0x3f00ff,this[_0xe3a42b(0x14e)]=_0x51e1a3,this[_0xe3a42b(0x23c)]=_0x3fa04e,_0x2dd74e(this,'status',_0xe3a42b(0x18d)),_0x2dd74e(this,_0xe3a42b(0x1ea),0x0),_0x2dd74e(this,_0xe3a42b(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0xe3a42b(0x1e0),void 0x0),_0x47303c&&(this[_0xe3a42b(0x2ac)]=_0x47303c,this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x5ad90b,timeout:_0x2fb45d})=>{const _0x18284c=_0xe3a42b;this[_0x18284c(0x367)](_0x5ad90b,_0x2fb45d);}));}[_0x27b931(0x219)](_0x3944dd){const _0x5b3eaa=_0x27b931;return this[_0x5b3eaa(0x3da)][_0x5b3eaa(0x30b)](_0x3944dd),this;}[_0x27b931(0xf7)](_0x43bd73){const _0x11dd14=_0x27b931;if(this['_checkMissing'](_0x43bd73))return this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)][_0x11dd14(0x392)](_0x3b1a33,this['unitID'],this[_0x11dd14(0x2af)],this[_0x11dd14(0x1f7)],this[_0x11dd14(0x3da)],null,[_0x43bd73],this[_0x11dd14(0x13b)]);try{let _0x11d314=this[_0x11dd14(0x14e)][_0x11dd14(0x211)]([_0x43bd73],[this['_awaitingChangeset']],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x11d314)){let {c1Prime:_0x36e158,c2Prime:_0xa4f225}=_0x11d314,_0x55ec0f=this[_0x11dd14(0x14e)][_0x11dd14(0x17a)](_0x36e158[0x0],this['_pendingMutations']);if((0x0,_0x149d12[_0x11dd14(0x421)])(_0x55ec0f)){let {c1Prime:_0x1fddd4,m2Prime:_0x18ab84}=_0x55ec0f;return this[_0x11dd14(0x164)](_0x1fddd4),_0xa4f225[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)]['createInstance'](_0xf27d34,this[_0x11dd14(0x2ea)],this['type'],_0xa4f225[0x0],_0x18ab84,this[_0x11dd14(0x13b)],void 0x0);}throw _0x55ec0f['error'];}throw _0x11d314[_0x11dd14(0x294)];}catch(_0x4fbe08){return this[_0x11dd14(0x1a1)]['error'](_0x4fbe08),this['_onConflict'](!0x1);}}[_0x27b931(0x420)](_0x95e346){const _0x5ca60b=_0x27b931;this[_0x5ca60b(0x2dc)]();let _0x49512a=this[_0x5ca60b(0x319)]();if(_0x95e346['revision']<=_0x49512a)return this;if(this[_0x5ca60b(0x16d)](_0x95e346))return this['_injector'][_0x5ca60b(0x392)](_0x3b1a33,this[_0x5ca60b(0x2ea)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],_0x95e346[_0x5ca60b(0xe7)],[],this[_0x5ca60b(0x13b)]);this[_0x5ca60b(0x1cd)]();let _0x2d5898=this[_0x5ca60b(0x2fe)][_0x5ca60b(0x392)](_0x467875,this[_0x5ca60b(0x2ea)],this['type'],this['_pendingMutations'],this['_handler']);return _0x2d5898[_0x5ca60b(0x34b)](),_0x2d5898[_0x5ca60b(0x292)](),_0x2d5898;}['onRemoteRej'](_0x57f853){const _0x5a8459=_0x27b931;return this[_0x5a8459(0x270)](!!(_0x57f853!=null&&_0x57f853[_0x5a8459(0x174)]));}[_0x27b931(0x21d)](_0x345f76){const _0x520876=_0x27b931;return this[_0x520876(0x143)]>_0xb2329d?this[_0x520876(0x229)]():(this[_0x520876(0x2ac)]=_0xa9ec8e(this['_resendTimeout'],{'timeout':this[_0x520876(0x1ea)],'reqId':_0x345f76['reqId']}),this[_0x520876(0x1e0)]=this[_0x520876(0x2ac)][_0x520876(0x38e)](({reqId:_0x7ffb81,timeout:_0x7d4633})=>{const _0xade1d9=_0x520876;this[_0xade1d9(0x367)](_0x7ffb81,_0x7d4633);}),this);}[_0x27b931(0x229)](){const _0xd05189=_0x27b931;return this[_0xd05189(0x2dc)](),this[_0xd05189(0x2fe)][_0xd05189(0x392)](_0x58261a,this[_0xd05189(0x2ea)],this[_0xd05189(0x2af)],this[_0xd05189(0x1f7)],this['_pendingMutations'],this[_0xd05189(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x417c48=_0x27b931;this['_handler'][_0x417c48(0x244)](this[_0x417c48(0x1f7)]);}['_onConflict'](_0x2f0e27){const _0x4f1741=_0x27b931;return this[_0x4f1741(0x2dc)](),this[_0x4f1741(0x2fe)]['createInstance'](_0x41f3d6,this[_0x4f1741(0x2ea)],this[_0x4f1741(0x2af)],null,this[_0x4f1741(0x3da)],this[_0x4f1741(0x13b)],_0x2f0e27);}[_0x27b931(0x367)](_0x78fb5c,_0x30fb6b){const _0x365b27=_0x27b931;var _0x2c2508;_0x78fb5c===((_0x2c2508=this[_0x365b27(0x1f7)])==null?void 0x0:_0x2c2508[_0x365b27(0x20d)])&&(this[_0x365b27(0x36c)](),this[_0x365b27(0x1ea)]=_0x30fb6b===0x0?0x3e8:Math[_0x365b27(0x24b)](_0x30fb6b*0x2,_0x3d7ed8),this[_0x365b27(0x143)]+=this['_resendTimeout']);}[_0x27b931(0x2dc)](){const _0x53af1c=_0x27b931;var _0x68ab8a;(_0x68ab8a=this[_0x53af1c(0x1e0)])==null||_0x68ab8a[_0x53af1c(0x138)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x15bd87=_0xf27d34=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUndoRedoService']),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x419224))],_0x15bd87);let _0x41f3d6=class extends _0x245952{constructor(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x1e41b0=!0x1,_0x204bd9,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x4f471c,_0x18420f,_0x297cd0){const _0x3bfc05=_0x27b931;super(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x297cd0),this[_0x3bfc05(0x251)]=_0x1e41b0,this['_permissionService']=_0x204bd9,this[_0x3bfc05(0x1ff)]=_0x4f471c,this[_0x3bfc05(0x11a)]=_0x18420f,this[_0x3bfc05(0x23c)]=_0x297cd0,_0x2dd74e(this,_0x3bfc05(0x397),_0x3bfc05(0x192)),this[_0x3bfc05(0x1b9)](),this['_clearLocalCache'](),this[_0x3bfc05(0xf9)]();}[_0x27b931(0x219)](){return this;}[_0x27b931(0xf7)](){return this;}[_0x27b931(0x420)](){return this;}[_0x27b931(0xef)](){return this;}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x58b88d=_0x27b931;throw Error(_0x58b88d(0x3b4));}[_0x27b931(0x1bb)](){const _0xfb9183=_0x27b931;var _0x42b1b6,_0xf7e2c7,_0x2e10ed;(_0x42b1b6=this['_localCacheService'])==null||(_0xf7e2c7=_0x42b1b6['backupOfflineData'])==null||(_0xf7e2c7=_0xf7e2c7[_0xfb9183(0x25a)](_0x42b1b6,this[_0xfb9183(0x2ea)],_0xfb9183(0x192)))==null||_0xf7e2c7[_0xfb9183(0x29a)](()=>void 0x0),(_0x2e10ed=this['_localCacheService'])==null||_0x2e10ed[_0xfb9183(0x32a)](this['unitID'],this[_0xfb9183(0x2af)],null,[]);}[_0x27b931(0x1b9)](){const _0x17cfb3=_0x27b931;this['_isPermissionRej']?this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'PERMISSION_DENIED'}):this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'CONFLICT'});}[_0x27b931(0xf9)](){const _0x2d9f39=_0x27b931;this[_0x2d9f39(0x373)][_0x2d9f39(0x1a8)](new _0x1e2709[(_0x2d9f39(0x1ec))](this['unitID'])['id'],!0x1);}};_0x41f3d6=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x3ce)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0xb,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x41f3d6);let _0x58261a=class extends _0x245952{constructor(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x1b2d6f,_0x3ca9ac,_0x292b5b,_0x33ae8e,_0x595459){const _0x294e0d=_0x27b931;super(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x292b5b,_0x33ae8e,_0x3ca9ac,_0x595459),this[_0x294e0d(0x2fe)]=_0x1b2d6f,_0x2dd74e(this,'status',_0x294e0d(0x37a));}[_0x27b931(0x219)](_0x326a58){const _0x3ff21c=_0x27b931;return this['_pendingMutations'][_0x3ff21c(0x30b)](_0x326a58),this[_0x3ff21c(0x292)](),this;}[_0x27b931(0xf7)](_0x3e8f63){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x27b931(0x420)](){const _0x2a5a00=_0x27b931;throw Error(_0x2a5a00(0x3d0));}[_0x27b931(0xef)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){const _0x398cd6=_0x27b931;let {_injector:_0x24537f,_pendingMutations:_0x23ca6e,_awaitingChangeset:_0x19d2e8,unitID:_0x1359e8,_handler:_0x4e383a,type:_0xbb3a5f}=this,_0x714acb=_0x1512ca(_0x24537f,_0x1359e8,_0xbb3a5f,_0x19d2e8,_0x23ca6e,_0x4e383a);return _0x714acb instanceof _0x467875?_0x714acb[_0x398cd6(0x34b)]():(_0x714acb instanceof _0x15bd87||_0x714acb instanceof _0x42dff3)&&_0x714acb['resend'](),_0x714acb;}['resend'](){const _0x39436b=_0x27b931;throw Error(_0x39436b(0x327));}};_0x58261a=_0x1fb4c2([_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753['IUndoRedoService']),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x58261a);let _0x3b1a33=class extends _0x245952{constructor(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1e404c,_0x4a488b,_0x1738c2,_0x12d7ec,_0xd34bc4,_0x1a8734,_0x4b46f0,_0x4f66f8,_0x3cbe37,_0x34a70b){const _0x54c103=_0x27b931;super(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1738c2,_0x4b46f0,_0x4f66f8,_0xd34bc4,_0x34a70b),this['_acknowledgedAwaitingRevision']=_0x1e404c,this['_queuedRemoteChangesets']=_0x4a488b,this[_0x54c103(0x2fe)]=_0x12d7ec,this[_0x54c103(0x1a1)]=_0x1a8734,this[_0x54c103(0x14e)]=_0x3cbe37,this['localCacheService']=_0x34a70b,_0x2dd74e(this,_0x54c103(0x397),_0x54c103(0x11d));}[_0x27b931(0x2e2)](_0x223b16){const _0x1bbce3=_0x27b931;try{if(this[_0x1bbce3(0xe8)](_0x223b16)[_0x1bbce3(0x147)])throw Error(_0x1bbce3(0x3f2));if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x1bbce3(0xd0)]((_0x4935fb,_0x3813d5)=>_0x4935fb[_0x1bbce3(0xe7)]-_0x3813d5['revision']))[_0x1bbce3(0x147)])return this[_0x1bbce3(0x2fd)]=[],this[_0x1bbce3(0x292)](),this[_0x1bbce3(0x13b)][_0x1bbce3(0x2ab)]({'from':this[_0x1bbce3(0x319)](),'to':0x0}),this;let _0x3fbd01=this[_0x1bbce3(0x1f7)],_0x4ccd8d=this[_0x1bbce3(0x3da)],_0x50c95;if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]!==0x0)_0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x15bd87,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,_0x4ccd8d,this['_handler'],void 0x0);else{if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]===0x0)_0x3fbd01[_0x1bbce3(0x250)]=this[_0x1bbce3(0x319)](),_0x50c95=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x42dff3,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,this[_0x1bbce3(0x13b)]);else{if(_0x4ccd8d[_0x1bbce3(0x415)]!==0x0){let _0x409812=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x467875,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x4ccd8d,this[_0x1bbce3(0x13b)]);_0x409812['_schedule'](),_0x50c95=_0x409812;}else _0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x50a3a4,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x13b)]);}}return _0x50c95['_updateLocalCache'](),_0x50c95;}catch(_0x2d96ce){return this['_logService']['error'](_0x1bbce3(0x3e0),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2d96ce),this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x41f3d6,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x1f7)],this[_0x1bbce3(0x3da)],this[_0x1bbce3(0x13b)],!0x1);}}[_0x27b931(0xe8)](_0x3e7595){const _0x5096e8=_0x27b931;this[_0x5096e8(0x27e)]();for(let _0xe20e73=0x0;_0xe20e73<_0x3e7595['length'];_0xe20e73++){let _0xa16fa=_0x3e7595[_0xe20e73],_0x88cb28=this[_0x5096e8(0x319)]();if(!(_0xa16fa[_0x5096e8(0xe7)]<=_0x88cb28)){if(_0xa16fa[_0x5096e8(0xe7)]>_0x88cb28+0x1)return{'missingChangesets':!0x0};if(this[_0x5096e8(0x37b)](_0xa16fa)){this[_0x5096e8(0x2e1)]();continue;}this[_0x5096e8(0x144)](_0xa16fa),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3d11a7){const _0x5a74ca=_0x27b931;let _0xdaf86f=_0x3d11a7,_0x4925f2=this['_awaitingChangeset'];if(_0x4925f2){let _0x387d39=this[_0x5a74ca(0x14e)][_0x5a74ca(0x211)]([_0x3d11a7],[_0x4925f2],!0x1);if(!(0x0,_0x149d12[_0x5a74ca(0x40e)])(_0x387d39))throw _0x387d39[_0x5a74ca(0x294)];_0xdaf86f=_0x387d39[_0x5a74ca(0x2b1)][0x0],_0x4925f2=_0x387d39[_0x5a74ca(0x134)][0x0];}let _0x480a5c=this[_0x5a74ca(0x3da)];if(_0x480a5c['length']){let _0x46151f=this[_0x5a74ca(0x14e)][_0x5a74ca(0x17a)](_0xdaf86f,_0x480a5c);if(!(0x0,_0x149d12[_0x5a74ca(0x421)])(_0x46151f))throw _0x46151f['error'];_0xdaf86f=_0x46151f[_0x5a74ca(0x2b1)],_0x480a5c=_0x46151f[_0x5a74ca(0x3b0)];}this['_executeRemoteChangeset'](_0xdaf86f),_0x4925f2&&(_0x4925f2[_0x5a74ca(0x250)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x4925f2,this[_0x5a74ca(0x3da)]=_0x480a5c;}['_acknowledgeAwaitingIfReady'](){const _0x6864a6=_0x27b931;if(!this[_0x6864a6(0x1f7)]||this[_0x6864a6(0x199)]==null)return;let _0x5b3fec=this[_0x6864a6(0x319)]();if(this['_acknowledgedAwaitingRevision']<=_0x5b3fec)throw Error(_0x6864a6(0x2b0)+this['_acknowledgedAwaitingRevision']+'.');this[_0x6864a6(0x199)]===_0x5b3fec+0x1&&this['_acknowledgeAwaiting']();}[_0x27b931(0x2e1)](){const _0x2efd38=_0x27b931;this[_0x2efd38(0x1cd)](),this[_0x2efd38(0x1f7)]=null,this[_0x2efd38(0x199)]=null;}[_0x27b931(0x37b)](_0x2e2752){const _0x3f8ffc=_0x27b931;let _0x26c8d0=this[_0x3f8ffc(0x1f7)];return!_0x26c8d0||!_0x26c8d0[_0x3f8ffc(0x2c9)]||_0x26c8d0['reqId']===null||_0x26c8d0[_0x3f8ffc(0x20d)]===void 0x0?!0x1:_0x2e2752[_0x3f8ffc(0x2ea)]===_0x26c8d0['unitID']&&_0x2e2752[_0x3f8ffc(0x2c9)]===_0x26c8d0[_0x3f8ffc(0x2c9)]&&_0x2e2752[_0x3f8ffc(0x20d)]===_0x26c8d0[_0x3f8ffc(0x20d)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x503f15){const _0x2e8e48=_0x27b931;return this[_0x2e8e48(0x3da)][_0x2e8e48(0x30b)](_0x503f15),this;}[_0x27b931(0xf7)](_0x277fb8){const _0x3b6bc8=_0x27b931;return this[_0x3b6bc8(0x2fd)][_0x3b6bc8(0x30b)](_0x277fb8),this;}[_0x27b931(0x420)](_0x3db218){const _0x586464=_0x27b931;if(this[_0x586464(0x1f7)]){let _0x339be2=this[_0x586464(0x319)]();return _0x3db218['revision']<=_0x339be2||(_0x339be2+0x1===_0x3db218['revision']?(this[_0x586464(0x1cd)](),this[_0x586464(0x1f7)]=null,this[_0x586464(0x199)]=null):this[_0x586464(0x199)]=_0x3db218['revision']),this;}if(_0x3db218['revision']<=this[_0x586464(0x319)]())return this;throw Error(_0x586464(0x365));}[_0x27b931(0xef)](_0x5bf8a3){const _0x23554b=_0x27b931;return this['_onConflict'](!!(_0x5bf8a3!=null&&_0x5bf8a3[_0x23554b(0x174)]));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x45970e=_0x27b931;return this[_0x45970e(0x2fe)][_0x45970e(0x392)](_0x58261a,this[_0x45970e(0x2ea)],this[_0x45970e(0x2af)],this[_0x45970e(0x1f7)],this['_pendingMutations'],this[_0x45970e(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x270)](_0x3eea07){const _0x10f9fb=_0x27b931;return this['_injector'][_0x10f9fb(0x392)](_0x41f3d6,this[_0x10f9fb(0x2ea)],this[_0x10f9fb(0x2af)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x10f9fb(0x13b)],_0x3eea07);}};_0x3b1a33=_0x1fb4c2([_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xc,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x3b1a33);function _0x1512ca(_0x4f7dbe,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff){const _0x1cf845=_0x27b931;return _0x127416&&_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe[_0x1cf845(0x392)](_0x15bd87,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff,void 0x0):_0x127416?_0x4f7dbe['createInstance'](_0x42dff3,_0x272d92,_0x156cee,_0x127416,_0x59d0ff):_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe['createInstance'](_0x467875,_0x272d92,_0x156cee,_0x4185a6,_0x59d0ff):_0x4f7dbe['createInstance'](_0x50a3a4,_0x272d92,_0x156cee,_0x59d0ff);}let _0x25f5ac=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x311)](){const _0x2fa006=_0x27b931;return this[_0x2fa006(0x1b5)];}constructor(_0x213ced,_0x5b6284,_0x35a374,_0x14785b,_0x3417ab,_0x38c22f,_0x30fc17,_0x47d71a,_0x348e3d,_0xc68e03,_0x4f3939,_0x49b3ed,_0x326e0f,_0x337a0b){const _0x4cde78=_0x27b931;super(),this[_0x4cde78(0x2ea)]=_0x213ced,this[_0x4cde78(0x1ee)]=_0x5b6284,this[_0x4cde78(0x2f2)]=_0x35a374,this['_injector']=_0x14785b,this[_0x4cde78(0x39c)]=_0x3417ab,this[_0x4cde78(0x1ff)]=_0x38c22f,this[_0x4cde78(0x105)]=_0x30fc17,this[_0x4cde78(0x304)]=_0x47d71a,this[_0x4cde78(0x37d)]=_0x348e3d,this[_0x4cde78(0x1a1)]=_0xc68e03,this[_0x4cde78(0x38d)]=_0x4f3939,this[_0x4cde78(0x373)]=_0x49b3ed,this['_singleActiveUnitService']=_0x326e0f,this[_0x4cde78(0x189)]=_0x337a0b,_0x2dd74e(this,_0x4cde78(0xd4),new _0x470009[(_0x4cde78(0x25b))](null)),_0x2dd74e(this,_0x4cde78(0x3db),this[_0x4cde78(0xd4)][_0x4cde78(0x2b2)]()),_0x2dd74e(this,'_state',void 0x0),_0x2dd74e(this,_0x4cde78(0x3be),!0x1),_0x2dd74e(this,'_changesetSessionId',''),_0x2dd74e(this,_0x4cde78(0x2c7),0x0),_0x2dd74e(this,_0x4cde78(0x3cd),this['state$'][_0x4cde78(0x11f)]((0x0,_0x470009[_0x4cde78(0x394)])(_0x40f002=>_0x40f002?_0x40f002[_0x4cde78(0x397)]:_0x4cde78(0x37a)),(0x0,_0x470009['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x2dd74e(this,_0x4cde78(0x2b7),!0x1),_0x2dd74e(this,_0x4cde78(0x1d8),[]);}async[_0x27b931(0x362)](){const _0x2d2364=_0x27b931;if(this[_0x2d2364(0x311)])throw Error(_0x2d2364(0x2dd));await this[_0x2d2364(0xee)]();}[_0x27b931(0xe6)](){const _0x5c398c=_0x27b931;return this[_0x5c398c(0x3be)]=!0x0,(0x0,_0x47f753[_0x5c398c(0x21a)])(()=>{const _0x53e78f=_0x5c398c;this[_0x53e78f(0x3be)]=!0x1,this[_0x53e78f(0x173)]();});}[_0x27b931(0x289)](_0x432db0){this['_onLocalMutation'](_0x432db0);}[_0x27b931(0x3f5)](_0x37a638){const _0x16e3bf=_0x27b931;this['_state']=_0x37a638,this[_0x16e3bf(0xd4)][_0x16e3bf(0x396)](_0x37a638);}async[_0x27b931(0xee)](){const _0x3499e8=_0x27b931;if(this[_0x3499e8(0x3f5)](await this['_createInitialState']()),this[_0x3499e8(0x2ee)]){var _0x593177;(_0x593177=this['_singleActiveUnitService'])==null||_0x593177['editingUnit'](this[_0x3499e8(0x2ea)]),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x2ee)][_0x3499e8(0x119)](this['unitID'])['subscribe'](_0x5b4d1f=>{const _0x42d776=_0x3499e8;this[_0x42d776(0x1a1)][_0x42d776(0x418)](_0x42d776(0x237),'editing\x20status\x20changed\x20to',_0x5b4d1f),_0x5b4d1f===0x1?(this[_0x42d776(0x304)][_0x42d776(0x1f8)]({'id':_0x42d776(0x113)}),this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x1),this[_0x42d776(0x373)][_0x42d776(0x2ed)](!0x1)):(this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x0),this['_permissionService'][_0x42d776(0x2ed)](!0x0));}));}let _0x4fccd0=!0x1;return this[_0x3499e8(0x3d7)](this['session'][_0x3499e8(0x2f1)][_0x3499e8(0x38e)](_0x4de845=>{const _0x228b93=_0x3499e8;_0x4de845===0x3?this['_toggleOnline'](_0x4fccd0):_0x4de845===0x2&&(_0x4fccd0=!0x0,this[_0x228b93(0x158)]());})),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x1ee)][_0x3499e8(0x2ef)]['subscribe'](_0x1b00d7=>{const _0x3df785=_0x3499e8;try{switch(_0x1b00d7['eventID']){case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x391)]:this[_0x3df785(0x306)]((0x0,_0x149d12['parseProtocolChangeset'])(_0x1b00d7['data']));break;case _0x149d12[_0x3df785(0x3eb)]['CHANGESET_ACK']:this[_0x3df785(0x1c4)](_0x1b00d7['data']);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x3ab)]:this[_0x3df785(0x307)]();break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x123)]:this[_0x3df785(0x372)](_0x1b00d7[_0x3df785(0x401)]);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x2fb)]:this[_0x3df785(0x31f)](_0x1b00d7[_0x3df785(0x401)][_0x3df785(0x3a9)][_0x3df785(0x394)](_0x1cce04=>(0x0,_0x149d12[_0x3df785(0x3b3)])(_0x1cce04)));break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x168)]:this[_0x3df785(0x307)]({'isPermissionRej':!0x0});break;case _0x149d12['CollaborationEvent']['UNISCRIPT_RUN']:break;}}catch(_0x4c10aa){throw console[_0x3df785(0x294)](_0x3df785(0x33e),_0x4c10aa),_0x4c10aa;}})),this[_0x3499e8(0x1b5)];}['_unlockTransition'](){const _0x9a1961=_0x27b931;this[_0x9a1961(0x2b7)]=!0x1;}[_0x27b931(0x102)](){const _0x11c03b=_0x27b931;if(this[_0x11c03b(0x2b7)])throw Error('[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.');this[_0x11c03b(0x2b7)]=!0x0;}[_0x27b931(0x37e)](_0x5b939a){const _0xe99e73=_0x27b931;this[_0xe99e73(0x102)](),this[_0xe99e73(0x3f5)](this['_state']['appendMutation'](_0x5b939a)),this[_0xe99e73(0x353)]();}[_0x27b931(0x306)](_0x37f8b1){const _0x1861e9=_0x27b931;if(!(_0x37f8b1['revision']<=this['_revisionService'][_0x1861e9(0x322)](this['unitID']))){if(this[_0x1861e9(0x3be)]){this[_0x1861e9(0x1d8)][_0x1861e9(0x30b)](_0x37f8b1);return;}this[_0x1861e9(0x126)](_0x37f8b1);}}[_0x27b931(0x173)](){const _0xe69977=_0x27b931;this[_0xe69977(0x1d8)][_0xe69977(0x302)](_0x6a6e40=>this[_0xe69977(0x126)](_0x6a6e40)),this[_0xe69977(0x1d8)]=[];}[_0x27b931(0x126)](_0x2c66d8){const _0x1180ae=_0x27b931;let _0x1b88ae=this['_compressMutationService'][_0x1180ae(0x183)][_0x1180ae(0x2a8)](this[_0x1180ae(0x39c)][_0x1180ae(0x183)][_0x1180ae(0x351)]()[_0x1180ae(0x188)])(_0x2c66d8['mutations'],null)||_0x2c66d8['mutations'],_0x2b3d70={..._0x2c66d8,'mutations':_0x1b88ae};this['_lockTransition'](),this[_0x1180ae(0x3f5)](this[_0x1180ae(0x1b5)]['onRemoteChangeset'](_0x2b3d70)),this[_0x1180ae(0x353)]();}['_onRemoteACK'](_0x591810){const _0x3c4969=_0x27b931;this[_0x3c4969(0x102)](),this['_updateState'](this[_0x3c4969(0x1b5)]['onRemoteAck'](_0x591810)),this[_0x3c4969(0x353)]();}[_0x27b931(0x307)](_0x7266a){const _0x3b79b9=_0x27b931;this[_0x3b79b9(0x102)](),this[_0x3b79b9(0x3f5)](this[_0x3b79b9(0x1b5)][_0x3b79b9(0xef)](_0x7266a)),this[_0x3b79b9(0x353)]();}[_0x27b931(0x372)](_0x344e02){const _0x1f8841=_0x27b931;this[_0x1f8841(0x102)](),this[_0x1f8841(0x3f5)](this[_0x1f8841(0x1b5)][_0x1f8841(0x21d)](_0x344e02)),this['_unlockTransition']();}[_0x27b931(0x31f)](_0x2832c4){const _0x344727=_0x27b931;if(!(this[_0x344727(0x1b5)]instanceof _0x3b1a33))throw TypeError(_0x344727(0x2b8));let _0x50a849=_0x2832c4[_0x344727(0x394)](_0x52cef1=>{const _0x5a47ff=_0x344727;let _0x426774=this[_0x5a47ff(0x39c)][_0x5a47ff(0x183)][_0x5a47ff(0x2a8)](this[_0x5a47ff(0x39c)]['interceptor'][_0x5a47ff(0x351)]()[_0x5a47ff(0x188)])(_0x52cef1[_0x5a47ff(0x35e)],null)||_0x52cef1[_0x5a47ff(0x35e)];return{..._0x52cef1,'mutations':_0x426774};});this[_0x344727(0x102)](),this['_updateState'](this[_0x344727(0x1b5)][_0x344727(0x2e2)](_0x50a849)),this[_0x344727(0x353)]();}[_0x27b931(0x158)](){const _0x389eb4=_0x27b931;this[_0x389eb4(0x102)](),this[_0x389eb4(0x3f5)](this[_0x389eb4(0x1b5)][_0x389eb4(0x229)]()),this[_0x389eb4(0x353)]();}[_0x27b931(0x2e8)](_0x3f8a72=!0x1){const _0x1aab48=_0x27b931;this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](this[_0x1aab48(0x1b5)][_0x1aab48(0x2d1)]()),this['_unlockTransition']();let _0x29bcbb=this[_0x1aab48(0x1b5)];_0x3f8a72&&_0x29bcbb instanceof _0x50a3a4&&(this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](_0x29bcbb['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x2944c7=>{const _0x1f2c28=_0x1420;this[_0x1f2c28(0x1ee)][_0x1f2c28(0x2f1)]['pipe']((0x0,_0x470009[_0x1f2c28(0x1c3)])(0x1))[_0x1f2c28(0x38e)](async _0x375609=>{const _0x1e4c9b=_0x1f2c28;_0x2944c7(await this[_0x1e4c9b(0x1ed)](_0x375609===0x3));});});}[_0x27b931(0x411)](){const _0x5086c9=_0x27b931;let _0x959ff8=this[_0x5086c9(0x2ea)];return{'onStateChange':(_0x351825,_0x5d09a4)=>{const _0x580568=_0x5086c9;if(_0x351825!==this[_0x580568(0x1b5)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x351825[_0x580568(0x397)]+_0x580568(0x347)+_0x5d09a4[_0x580568(0x397)]+_0x580568(0x293)+this[_0x580568(0x1b5)][_0x580568(0x397)]);this[_0x580568(0x3f5)](_0x5d09a4);},'onSendChangeset':_0x5aa354=>{const _0x34aa01=_0x5086c9;_0x5aa354[_0x34aa01(0x2c9)]||(_0x5aa354[_0x34aa01(0x2c9)]=this[_0x34aa01(0x2a6)],_0x5aa354[_0x34aa01(0x20d)]=++this[_0x34aa01(0x2c7)]);let _0x12f673={'eventID':_0x149d12['CollaborationEvent'][_0x34aa01(0x15e)],'data':{'unitID':_0x5aa354[_0x34aa01(0x2ea)],'unitType':this[_0x34aa01(0x2f2)],'changeset':_0x5aa354,'memberID':this[_0x34aa01(0x1ee)]['getMemberID']()}};this[_0x34aa01(0x1ee)][_0x34aa01(0x16b)](_0x12f673,this[_0x34aa01(0x2ea)]);},'onMissingChangesets':({from:_0x48bad9,to:_0x3088de})=>{const _0x368ac7=_0x5086c9;this['_logService']['debug'](_0x368ac7(0x237),_0x368ac7(0x2bb)+_0x48bad9+_0x368ac7(0x276)+_0x3088de);let _0x257d3c={'eventID':_0x149d12['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x959ff8,'unitType':this[_0x368ac7(0x2f2)],'from':_0x48bad9,'to':_0x3088de}};this['session'][_0x368ac7(0x16b)](_0x257d3c,this[_0x368ac7(0x2ea)]);}};}async['_createInitialStateImpl'](_0x45ae2e){const _0x2cabbe=_0x27b931;var _0x44c51d,_0x57b94c,_0x33e589;let _0x57a8b7=await((_0x44c51d=this[_0x2cabbe(0x189)])==null?void 0x0:_0x44c51d[_0x2cabbe(0x2e3)](this['unitID'])),_0x2460cc=(_0x57b94c=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x35e)])==null?[]:_0x57b94c,_0x56959=(_0x33e589=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x1c8)])==null?null:_0x33e589,_0xa23cd9=!!(_0x56959!=null&&_0x56959[_0x2cabbe(0x2c9)])&&!!(_0x56959!=null&&_0x56959['reqId']);this[_0x2cabbe(0x2a6)]=_0xa23cd9?_0x56959[_0x2cabbe(0x2c9)]:(0x0,_0x149d12[_0x2cabbe(0x35f)])(),this['_changesetReqId']=_0xa23cd9?_0x56959[_0x2cabbe(0x20d)]:0x0;let _0x11a74a=this[_0x2cabbe(0x2ea)];try{this['_replayCachedMutations'](_0x56959,_0x2460cc);}catch(_0x4b6066){this['_logService'][_0x2cabbe(0x294)](_0x4b6066);}let _0x28c84d=this[_0x2cabbe(0x411)]();if(_0x45ae2e){let _0x4c8c19=_0x1512ca(this[_0x2cabbe(0x2fe)],_0x11a74a,this[_0x2cabbe(0x2f2)],_0x56959,_0x2460cc,_0x28c84d);return _0x4c8c19 instanceof _0x467875?_0x4c8c19['_schedule']():(_0x4c8c19 instanceof _0x15bd87||_0x4c8c19 instanceof _0x42dff3)&&_0x4c8c19[_0x2cabbe(0x36c)](),_0x4c8c19;}return this[_0x2cabbe(0x2fe)]['createInstance'](_0x58261a,_0x11a74a,this['_type'],_0x56959,_0x2460cc,_0x28c84d);}['_replayCachedMutations'](_0x47a513,_0x1b7f76){const _0x26793f=_0x27b931;var _0x451392,_0x44e41a;let _0x288efa=this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x2a8)](this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x351)]()[_0x26793f(0x188)]);(_0x451392=_0x288efa((_0x47a513==null?void 0x0:_0x47a513['mutations'])||[],null))==null||_0x451392['forEach'](_0x41f747=>this[_0x26793f(0x38d)][_0x26793f(0x18e)](_0x41f747['id'],_0x41f747[_0x26793f(0xfc)])),(_0x44e41a=_0x288efa(_0x1b7f76||[],null))==null||_0x44e41a['forEach'](_0x16a42e=>this[_0x26793f(0x38d)]['executeCommand'](_0x16a42e['id'],_0x16a42e[_0x26793f(0xfc)]));}};_0x25f5ac=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x25f5ac);let _0x9eef43=class extends _0x25f5ac{constructor(_0x360220,_0x43aab0,_0x3ed42c,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x4f2e7d,_0x38285f,_0x2f8c07){const _0x723622=_0x27b931;super(_0x360220,_0x3ed42c,_0x43aab0,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x38285f,_0x2f8c07),this['unitID']=_0x360220,this[_0x723622(0x2af)]=_0x43aab0,this['_docStateChangeManagerService']=_0x4f2e7d,_0x2dd74e(this,_0x723622(0x14a),null);}[_0x27b931(0x28e)](_0x2e0cac){const _0x5a703a=_0x27b931;this[_0x5a703a(0x14a)]=_0x2e0cac;}['dispose'](){const _0x2b23af=_0x27b931;this[_0x2b23af(0x14a)]=null,super['dispose']();}[_0x27b931(0x411)](){const _0x442eec=_0x27b931;let _0x972d6d=super[_0x442eec(0x411)]();return _0x972d6d[_0x442eec(0x384)]=_0x197c26=>{const _0x213cd9=_0x442eec;var _0x5cc0b4,_0x280017;return(_0x5cc0b4=this[_0x213cd9(0x14a)])==null||(_0x280017=_0x5cc0b4[_0x213cd9(0x384)])==null?void 0x0:_0x280017[_0x213cd9(0x25a)](_0x5cc0b4,_0x197c26);},_0x972d6d[_0x442eec(0x24d)]=_0x4bbb39=>{const _0x2f045b=_0x442eec;var _0x2ed162,_0x532721;return(_0x2ed162=this[_0x2f045b(0x14a)])==null||(_0x532721=_0x2ed162[_0x2f045b(0x24d)])==null?void 0x0:_0x532721[_0x2f045b(0x25a)](_0x2ed162,_0x4bbb39);},_0x972d6d[_0x442eec(0x3af)]=_0x313d8a=>{const _0x228152=_0x442eec;var _0x4a4e1b,_0x49bcc2;return(_0x4a4e1b=this[_0x228152(0x14a)])==null||(_0x49bcc2=_0x4a4e1b[_0x228152(0x3af)])==null?void 0x0:_0x49bcc2[_0x228152(0x25a)](_0x4a4e1b,_0x313d8a);},_0x972d6d[_0x442eec(0x10b)]=_0x48e349=>{const _0x19f322=_0x442eec;var _0x2f564e,_0x1c4efb;return(_0x2f564e=this['_handlerCallback'])==null||(_0x1c4efb=_0x2f564e[_0x19f322(0x10b)])==null?void 0x0:_0x1c4efb[_0x19f322(0x25a)](_0x2f564e,_0x48e349);},_0x972d6d[_0x442eec(0x291)]=_0x3b5c63=>{const _0x4a62d6=_0x442eec;var _0x23e1c1,_0x2d5631,_0x3dc779;return(_0x23e1c1=(_0x2d5631=this['_handlerCallback'])==null||(_0x3dc779=_0x2d5631[_0x4a62d6(0x291)])==null?void 0x0:_0x3dc779[_0x4a62d6(0x25a)](_0x2d5631,_0x3b5c63))==null?_0x3b5c63:_0x23e1c1;},_0x972d6d[_0x442eec(0x2d3)]=_0x2955bd=>{const _0x110ef3=_0x442eec;var _0x3bd4e2,_0x9c5a20,_0x1117ed;return(_0x3bd4e2=(_0x9c5a20=this['_handlerCallback'])==null||(_0x1117ed=_0x9c5a20[_0x110ef3(0x2d3)])==null?void 0x0:_0x1117ed[_0x110ef3(0x25a)](_0x9c5a20,_0x2955bd))==null?_0x2955bd:_0x3bd4e2;},_0x972d6d;}async[_0x27b931(0xee)](){const _0x86b725=_0x27b931;let _0x5d95b5=await super[_0x86b725(0xee)]();return this[_0x86b725(0x3d7)](this[_0x86b725(0x2c1)][_0x86b725(0x3b8)][_0x86b725(0x38e)](_0x239187=>{const _0x570333=_0x86b725;if(_0x239187==null||_0x239187[_0x570333(0x320)]!==this[_0x570333(0x2ea)])return;let {commandId:_0x103046,redoState:_0x31dd37,unitId:_0x576456}=_0x239187,_0x2a8435={'id':_0x103046,'type':_0x47f753['CommandType'][_0x570333(0x2fa)],'params':{'unitId':_0x576456,'actions':_0x31dd37[_0x570333(0x1b8)],'textRanges':null}};this[_0x570333(0x37e)](_0x2a8435);})),this['disposeWithMe'](this[_0x86b725(0x38d)][_0x86b725(0x176)]((_0x1770e8,_0xbef6e8)=>{const _0x2ea8db=_0x86b725;if(_0x1770e8[_0x2ea8db(0x2af)]!==_0x47f753[_0x2ea8db(0x222)][_0x2ea8db(0x2fa)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0x41c)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0xe0)]||_0x1770e8['id']===_0x459006['RichTextEditingMutation']['id'])return;let _0x375c89=_0x1770e8[_0x2ea8db(0xfc)];if((_0x375c89==null?void 0x0:_0x375c89[_0x2ea8db(0x320)])!==this[_0x2ea8db(0x2ea)])return;let _0x38fd45=_0x1770e8,_0xa6f5cf=this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x2a8)](this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x351)]()[_0x2ea8db(0x11b)])([_0x38fd45],this[_0x2ea8db(0x37d)])||[_0x38fd45];this[_0x2ea8db(0x37e)](_0xa6f5cf[0x0]);})),_0x5d95b5;}};_0x9eef43=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x459006[_0x27b931(0x356)])),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753['Optional'])(_0x419224))],_0x9eef43);let _0x5c3e77=class extends _0x25f5ac{constructor(_0x59db3b,_0x219289,_0xbe3a38,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c){const _0x298a15=_0x27b931;super(_0x59db3b,_0xbe3a38,_0x219289,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c),this[_0x298a15(0x2ea)]=_0x59db3b,this[_0x298a15(0x2af)]=_0x219289;}async[_0x27b931(0xee)](){const _0x28f07e=_0x27b931;let _0x4c9bb0=await super[_0x28f07e(0xee)]();return this[_0x28f07e(0x3d7)](this[_0x28f07e(0x38d)]['onMutationExecutedForCollab']((_0x1179ce,_0x305f73)=>{const _0xe9a418=_0x28f07e;if(_0x1179ce['type']!==_0x47f753['CommandType'][_0xe9a418(0x2fa)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0x41c)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0xe0)])return;let _0x22ec1b=_0x1179ce[_0xe9a418(0xfc)];if((_0x22ec1b==null?void 0x0:_0x22ec1b[_0xe9a418(0x320)])!==this[_0xe9a418(0x2ea)])return;let _0x3ec508=_0x1179ce,_0x57f982=this[_0xe9a418(0x39c)][_0xe9a418(0x183)]['fetchThroughInterceptors'](this[_0xe9a418(0x39c)][_0xe9a418(0x183)][_0xe9a418(0x351)]()[_0xe9a418(0x11b)])([_0x3ec508],this['_univerInstanceService'])||[_0x3ec508];this['_onLocalMutation'](_0x57f982[0x0]);})),_0x4c9bb0;}};_0x5c3e77=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753['ILogService']),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5c3e77);let _0x151d10=class extends _0x25f5ac{constructor(_0x56d3b3,_0x962f4f,_0x4a5b9d,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x2441f5,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f){const _0x1ee84e=_0x27b931;super(_0x56d3b3,_0x4a5b9d,_0x962f4f,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f),this[_0x1ee84e(0x2ea)]=_0x56d3b3,this['type']=_0x962f4f,this['_sheetTransformSelectionsService']=_0x2441f5;}[_0x27b931(0x411)](){const _0x3c126b=_0x27b931;let _0x5a8cbd=super[_0x3c126b(0x411)]();return _0x5a8cbd[_0x3c126b(0x3af)]=_0x24df1f=>this[_0x3c126b(0x187)][_0x3c126b(0x299)](_0x24df1f),_0x5a8cbd;}async[_0x27b931(0xee)](){const _0x4c985b=_0x27b931;let _0x568e46=await super[_0x4c985b(0xee)]();return this[_0x4c985b(0x3d7)](this[_0x4c985b(0x38d)][_0x4c985b(0x176)]((_0x2ea1f1,_0x17d655)=>{const _0xd58ba8=_0x4c985b;if(_0x2ea1f1[_0xd58ba8(0x2af)]!==_0x47f753[_0xd58ba8(0x222)][_0xd58ba8(0x2fa)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0x41c)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0xe0)])return;let _0x1efae4=_0x2ea1f1[_0xd58ba8(0xfc)];if((_0x1efae4==null?void 0x0:_0x1efae4[_0xd58ba8(0x320)])!==this[_0xd58ba8(0x2ea)])return;let _0x2683fd=_0x2ea1f1,_0x1ba3a3=this['_compressMutationService'][_0xd58ba8(0x183)][_0xd58ba8(0x2a8)](this['_compressMutationService']['interceptor'][_0xd58ba8(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x2683fd],this[_0xd58ba8(0x37d)])||[_0x2683fd];this['_onLocalMutation'](_0x1ba3a3[0x0]);})),_0x568e46;}};_0x151d10=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2e077e)),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x9,_0x47f753[_0x27b931(0x235)]),_0x2af294(0xa,_0x47f753['ILogService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xc,_0x47f753['IPermissionService']),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x151d10);let _0x292824=class extends _0x25f5ac{constructor(_0x4285d6,_0x29417c,_0x46772c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294){const _0x11e54d=_0x27b931;super(_0x4285d6,_0x46772c,_0x29417c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294),this[_0x11e54d(0x2ea)]=_0x4285d6,this[_0x11e54d(0x2af)]=_0x29417c;}async[_0x27b931(0xee)](){const _0x31516e=_0x27b931;let _0x6e0cef=await super['_init']();return this[_0x31516e(0x3d7)](this[_0x31516e(0x38d)][_0x31516e(0x176)]((_0x840fae,_0x124705)=>{const _0x1db22e=_0x31516e;if(_0x840fae[_0x1db22e(0x2af)]!==_0x47f753[_0x1db22e(0x222)][_0x1db22e(0x2fa)]||_0x124705!=null&&_0x124705[_0x1db22e(0x41c)]||_0x124705!=null&&_0x124705['onlyLocal'])return;let _0x4f5dbb=_0x840fae[_0x1db22e(0xfc)];if((_0x4f5dbb==null?void 0x0:_0x4f5dbb[_0x1db22e(0x320)])!==this['unitID'])return;let _0x5c0389=_0x840fae,_0x35eeb2=this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x2a8)](this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x351)]()[_0x1db22e(0x11b)])([_0x5c0389],this['_univerInstanceService'])||[_0x5c0389];this[_0x1db22e(0x37e)](_0x35eeb2[0x0]);})),_0x6e0cef;}};_0x292824=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x292824);let _0x4b522f=class extends _0x25f5ac{constructor(_0x24d450,_0x1678a9,_0x1dbfb2,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2){const _0x3f9838=_0x27b931;super(_0x24d450,_0x1dbfb2,_0x1678a9,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2),this[_0x3f9838(0x2ea)]=_0x24d450,this[_0x3f9838(0x2af)]=_0x1678a9;}async[_0x27b931(0xee)](){const _0x500416=_0x27b931;let _0x451db9=await super[_0x500416(0xee)]();return this[_0x500416(0x3d7)](this[_0x500416(0x38d)]['onMutationExecutedForCollab']((_0x4e5f02,_0x13e503)=>{const _0x59d4fb=_0x500416;if(_0x4e5f02['type']!==_0x47f753[_0x59d4fb(0x222)]['MUTATION']||_0x13e503!=null&&_0x13e503[_0x59d4fb(0x41c)]||_0x13e503!=null&&_0x13e503[_0x59d4fb(0xe0)])return;let _0x10fe65=_0x4e5f02[_0x59d4fb(0xfc)];if((_0x10fe65==null?void 0x0:_0x10fe65[_0x59d4fb(0x320)])!==this[_0x59d4fb(0x2ea)])return;let _0x1f5fdb=_0x4e5f02,_0x267e44=this['_compressMutationService'][_0x59d4fb(0x183)]['fetchThroughInterceptors'](this[_0x59d4fb(0x39c)][_0x59d4fb(0x183)][_0x59d4fb(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x1f5fdb],this[_0x59d4fb(0x37d)])||[_0x1f5fdb];this[_0x59d4fb(0x37e)](_0x267e44[0x0]);})),_0x451db9;}};_0x4b522f=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x4b522f);let _0x4501c7=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x3b5));function _0x44e4df(_0x331c06){const _0x16cd14=_0x27b931;let _0x2e9b78=_0x331c06[_0x16cd14(0x401)],_0x2a7bbe=JSON[_0x16cd14(0x283)](_0x2e9b78);switch(_0x2a7bbe[_0x16cd14(0x32c)]){case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x3df)]:case _0x26a654['CombCmd']['HELLO']:{let _0x25bc58=_0x2a7bbe[_0x16cd14(0x26a)];return{..._0x2a7bbe,'data':_0x25bc58,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x1e9)]:{let _0x25692a=_0x2a7bbe[_0x16cd14(0x19f)];return{..._0x2a7bbe,'data':_0x25692a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x34a)]:{let _0xb5b34a=_0x2a7bbe[_0x16cd14(0x3ad)];switch(_0xb5b34a[_0x16cd14(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x16cd14(0x168)]:var _0x2485c0;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x2485c0=_0xb5b34a[_0x16cd14(0x13d)])==null?void 0x0:_0x2485c0['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x369)]:var _0x51237d;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x51237d=_0xb5b34a['csAckEvent'])==null?void 0x0:_0x51237d['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['NEW_CHANGESETS']:var _0x13ec9c;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x13ec9c=_0xb5b34a[_0x16cd14(0x2b4)])==null?void 0x0:_0x13ec9c['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['CHANGESET_REJ']:var _0x55dd82;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x55dd82=_0xb5b34a[_0x16cd14(0x2de)])==null?void 0x0:_0x55dd82['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x123)]:var _0x451eb1;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x451eb1=_0xb5b34a[_0x16cd14(0x3d5)])==null?void 0x0:_0x451eb1['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updateCursorEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x260)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0xeb)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x337)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2ba)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x3fb)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['liveShareNewHost']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x1f0)]:case _0x149d12['CollaborationEvent'][_0x16cd14(0x389)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x1db)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x318)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x3ed)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2a7bbe,'data':_0xb5b34a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['commentUpdateEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x12d)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updatePermissionObjEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x2ae)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2fc)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['UNISCRIPT_RUN']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x273)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};default:return _0x2a7bbe;}}default:return _0x2a7bbe;}}function _0x5db7a4(_0x58b983){const _0x49a4a1=_0x27b931;switch(_0x58b983[_0x49a4a1(0x32c)]){case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x3df)]:case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x40c)]:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)]});case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x264)]:{let _0x39c782;switch(_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]){case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)],'updateCursorEvent':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x337)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['USERS_LEAVE'],'leaveEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent']['USERS_ENTER']:_0x39c782={'eventID':_0x149d12['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent'][_0x49a4a1(0x3fb)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)],'liveShareOperation':_0x58b983['data']['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x318)]:_0x39c782={'eventID':_0x149d12['CollaborationEvent'][_0x49a4a1(0x318)],'liveShareTerminate':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_REQUEST_HOST']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x382)],'liveShareRequestHost':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_FETCH_OPERATIONS']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x1f0)]};break;default:_0x39c782={'eventID':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]};}return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983['routeKey'],'collaMsg':_0x39c782});}case _0x26a654[_0x49a4a1(0x185)]['JOIN']:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983['cmd'],'routeKey':_0x58b983['routeKey'],'joinReq':_0x58b983[_0x49a4a1(0x401)]});case _0x26a654[_0x49a4a1(0x185)]['LEAVE']:return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)],'leaveReq':_0x58b983[_0x49a4a1(0x401)]});default:throw Error(_0x49a4a1(0x295));}}let _0x2bd014=(0x0,_0x47f753['createIdentifier'])('univer-pro.collaboration-client-socket-service');function _0x24f9db(_0x4bad50,_0x724b6c,_0x114b75){const _0x23a48e=_0x27b931;return _0x4bad50+'/'+_0x724b6c+_0x23a48e(0x288)+_0x114b75+_0x23a48e(0x3f6);}let _0x1bc98c=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x12ecdf,_0x42177a,_0x52a666,_0x2665c0,_0x119933){const _0x1deb8b=_0x27b931;super(),this['_injector']=_0x12ecdf,this[_0x1deb8b(0x3d8)]=_0x42177a,this[_0x1deb8b(0x228)]=_0x52a666,this[_0x1deb8b(0x1a1)]=_0x2665c0,this[_0x1deb8b(0x25f)]=_0x119933;}['_doCreateSocket'](_0x8f85ed){const _0xf8337a=_0x27b931;let _0x253316=this[_0xf8337a(0x2fe)][_0xf8337a(0x1ad)](_0x8f2da5[_0xf8337a(0x10a)]);if(!_0x253316)throw Error(_0xf8337a(0x3ee));let _0x355985=_0x253316[_0xf8337a(0x1fa)](_0x8f85ed);if(!_0x355985)throw Error(_0xf8337a(0x357));let _0x4402bd=new _0x47f753[(_0xf8337a(0x3bb))](),_0x715eff=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x2ad)][_0xf8337a(0x38e)](_0x4bf796=>_0x715eff['next'](_0x4bf796))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x715eff[_0xf8337a(0x32e)]()));let _0x1c7f9b=new _0x470009['Subject']();_0x4402bd[_0xf8337a(0x150)](_0x355985[_0xf8337a(0xe5)]['subscribe'](_0x5014ad=>_0x1c7f9b[_0xf8337a(0x396)](_0x5014ad))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x1c7f9b[_0xf8337a(0x32e)]()));let _0x482733=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x38c)][_0xf8337a(0x38e)](_0x597f18=>{let _0xf994c6=_0x44e4df(_0x597f18);_0x482733['next'](_0xf994c6);})),_0x4402bd['add']((0x0,_0x47f753['toDisposable'])(()=>_0x482733[_0xf8337a(0x32e)]()));let _0x44e985,_0x40f59a=()=>{const _0x5ccca5=_0xf8337a;_0x1c7f9b[_0x5ccca5(0x396)](new Event('connection\x20error')),_0x715eff[_0x5ccca5(0x396)](new Event(_0x5ccca5(0x325))),_0x44e985[_0x5ccca5(0x15b)]();};return _0x44e985={'memberID':'','close$':_0x715eff[_0xf8337a(0x2b2)](),'error$':_0x1c7f9b[_0xf8337a(0x2b2)](),'open$':_0x355985['open$'],'message$':_0x482733[_0xf8337a(0x2b2)](),'send':_0x10f839=>{const _0x2c830a=_0xf8337a;if(_0x10f839[_0x2c830a(0x32c)]===_0x26a654[_0x2c830a(0x185)][_0x2c830a(0x264)]){if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)][_0x2c830a(0x15e)]){this[_0x2c830a(0x3e6)](_0x44e985,_0x10f839['data'])[_0x2c830a(0x29a)](_0x43fac5=>{const _0x461914=_0x2c830a;this[_0x461914(0x1a1)][_0x461914(0x294)](_0x43fac5),_0x40f59a();});return;}if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)]['FETCH_MISSING']){let _0x18ecff=_0x10f839[_0x2c830a(0x401)];this['_fetchMissChangesets'](_0x18ecff)['then'](_0x5afb00=>{const _0x3b5bfd=_0x2c830a;_0x482733[_0x3b5bfd(0x396)]({'cmd':_0x26a654[_0x3b5bfd(0x185)]['RECV'],'code':_0x26a654[_0x3b5bfd(0x3d9)]['OK'],'routeKey':_0x18ecff[_0x3b5bfd(0x401)]['unitID'],'routeType':'','data':{'eventID':_0x149d12[_0x3b5bfd(0x3eb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5afb00}}});})[_0x2c830a(0x29a)](_0x245f78=>{const _0x362abd=_0x2c830a;this[_0x362abd(0x1a1)][_0x362abd(0x294)](_0x245f78),_0x40f59a();});return;}}_0x355985[_0x2c830a(0x16b)](_0x5db7a4(_0x10f839));},'close':()=>{const _0x4faddb=_0xf8337a;_0x355985[_0x4faddb(0x15b)](),_0x4402bd[_0x4faddb(0x2bc)]();}},_0x44e985;}async['_submitChangeset'](_0x144ad5,_0x44d749){const _0x5caf5a=_0x27b931;var _0x1487b1;let {unitType:_0xf99c55,unitID:_0x2c0894,changeset:_0xa73b1d}=_0x44d749[_0x5caf5a(0x401)],_0x5dfa39={'unitID':_0x2c0894,'memberID':_0x144ad5['memberID'],'type':_0xf99c55,'changeset':(0x0,_0x149d12[_0x5caf5a(0x253)])(_0xa73b1d)},_0x2884c3=this[_0x5caf5a(0x228)][_0x5caf5a(0x190)](_0x3c17be),_0xa5beba=_0x24f9db((_0x1487b1=_0x2884c3==null?void 0x0:_0x2884c3[_0x5caf5a(0x17c)])==null?'/universer-api/comb':_0x1487b1,_0xf99c55,_0x2c0894);try{await this['_httpService'][_0x5caf5a(0x139)](_0xa5beba,{'body':_0x5dfa39});}catch(_0x326a4f){throw this[_0x5caf5a(0x1a1)][_0x5caf5a(0x294)](_0x5caf5a(0x3ae),_0x5caf5a(0x2cc)),_0x326a4f;}}async[_0x27b931(0x1a7)](_0x2eeea6){const _0x515513=_0x27b931;let {unitID:_0x493817,from:_0x46a51f,to:_0x43fbd7,unitType:_0x57edb8}=_0x2eeea6[_0x515513(0x401)];return(await this[_0x515513(0x25f)][_0x515513(0x206)]({'metadata':void 0x0},{'unitID':_0x493817,'type':_0x57edb8,'from':_0x46a51f,'to':_0x43fbd7}))['changesets'][_0x515513(0x394)](_0xd7955c=>((_0xd7955c[_0x515513(0x35e)]===null||_0xd7955c['mutations']===void 0x0)&&(_0xd7955c[_0x515513(0x35e)]=[]),_0xd7955c));}};_0x1bc98c=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753['ILogService']),_0x2af294(0x4,_0x149d12['ISnapshotServerService'])],_0x1bc98c);let _0x1e5735=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x12f));function _0x122337(_0x2b5089={}){const _0x395d9f=_0x27b931;return _0x2b5089['resolveUnit']?{'resolveUnit':_0x2b5089[_0x395d9f(0x1d2)]}:{'resolveUnit':_0x1a5cd5=>({'target':{'unitId':_0x1a5cd5[_0x395d9f(0x320)],'unitType':_0x1a5cd5[_0x395d9f(0x36a)]}})};}function _0x1e962d(_0x5844cf,_0x3d11da,_0x3e0fd7){const _0x54a3e7=_0x27b931;var _0x1b7df3;let _0x1b1a98=_0x3e0fd7[_0x54a3e7(0x216)]['endpoint'];if(_0x1b1a98!=null&&_0x1b1a98[_0x54a3e7(0x1d0)]()==='')throw Error(_0x54a3e7(0x3a4));if(!_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)])throw Error(_0x54a3e7(0x310));return{'localUnitId':_0x5844cf,'unitType':_0x3d11da,'target':{'endpoint':_0x1b1a98,'unitId':_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)],'unitType':(_0x1b7df3=_0x3e0fd7[_0x54a3e7(0x216)]['unitType'])==null?_0x3d11da:_0x1b7df3},'changeset':_0x3e0fd7[_0x54a3e7(0x142)]};}let _0xc5d6a5=class extends _0x47f753['Disposable']{constructor(_0xe241fe,_0x46acdf,_0x3cd971,_0x1dc87b,_0x2ab592,_0x5a1e86,_0x4543cb){const _0x431c60=_0x27b931;super(),this['_injector']=_0xe241fe,this[_0x431c60(0x1a1)]=_0x46acdf,this[_0x431c60(0x228)]=_0x3cd971,this['_socketService']=_0x1dc87b,this[_0x431c60(0x11a)]=_0x2ab592,this[_0x431c60(0x159)]=_0x5a1e86,this['_networkConditionService']=_0x4543cb,_0x2dd74e(this,_0x431c60(0x359),new Map()),_0x2dd74e(this,_0x431c60(0x1d5),new Map()),_0x2dd74e(this,_0x431c60(0x106),new Map()),_0x2dd74e(this,_0x431c60(0x180),new Map()),_0x2dd74e(this,_0x431c60(0x2ff),this[_0x431c60(0xd8)](void 0x0)[_0x431c60(0x2ff)][_0x431c60(0x2b2)]()),_0x2dd74e(this,_0x431c60(0x248),new _0x470009[(_0x431c60(0x25b))](0x0)),_0x2dd74e(this,_0x431c60(0x3cd),this[_0x431c60(0x248)][_0x431c60(0x2b2)]()),this['_listenToNetworkCondition']();}[_0x27b931(0x19c)](){const _0x275fc2=_0x27b931;this[_0x275fc2(0x2c0)]&&this[_0x275fc2(0x3d7)](this[_0x275fc2(0x2c0)][_0x275fc2(0x3f3)][_0x275fc2(0x38e)](_0x4fabf2=>{const _0x4f7c31=_0x275fc2;_0x4fabf2&&this[_0x4f7c31(0x3fe)](),_0x4fabf2||this[_0x4f7c31(0x180)]['forEach'](_0x5c6aa7=>this[_0x4f7c31(0x3ac)](_0x5c6aa7));}));}[_0x27b931(0x2bc)](){const _0x5a2cf5=_0x27b931;super[_0x5a2cf5(0x2bc)](),this['_socketChannels'][_0x5a2cf5(0x302)](_0x432fa3=>{const _0x2e9373=_0x5a2cf5;var _0x50c120,_0x315cdd;(_0x50c120=_0x432fa3[_0x2e9373(0x27d)])==null||_0x50c120[_0x2e9373(0x138)](),_0x432fa3[_0x2e9373(0x27d)]=null,this[_0x2e9373(0x1e7)](_0x432fa3),this[_0x2e9373(0x2a2)](_0x432fa3),this[_0x2e9373(0x26c)](_0x432fa3),(_0x315cdd=_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x321)]())==null||_0x315cdd[_0x2e9373(0x15b)](),_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x32e)]();}),this[_0x5a2cf5(0x180)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x302)](_0x1d0ca7=>_0x1d0ca7[_0x5a2cf5(0x2bc)]()),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x106)][_0x5a2cf5(0x249)](),this['_status$'][_0x5a2cf5(0x32e)]();}async[_0x27b931(0x410)](_0x1819c1,_0x1f290b){const _0x273ec6=_0x27b931;if(this[_0x273ec6(0x359)][_0x273ec6(0xff)](_0x1819c1))return this[_0x273ec6(0x359)][_0x273ec6(0x1ad)](_0x1819c1);let _0x255179=this[_0x273ec6(0x1d5)][_0x273ec6(0x1ad)](_0x1819c1);if(_0x255179)return _0x255179;let _0x1d65dc=this[_0x273ec6(0x1ab)](_0x1819c1,_0x1f290b);this['_pendingSessions'][_0x273ec6(0xf6)](_0x1819c1,_0x1d65dc);try{return await _0x1d65dc;}finally{this[_0x273ec6(0x1d5)]['delete'](_0x1819c1);}}async['_createSession'](_0x5a4823,_0x413be3){const _0x177b2c=_0x27b931;let _0x55d621=await this['_resolveSessionIdentity'](_0x5a4823,_0x413be3),_0x546f14=this[_0x177b2c(0xd8)](_0x55d621[_0x177b2c(0x216)]['endpoint']);this[_0x177b2c(0x1a2)](_0x546f14);let _0x3a8cfc=this[_0x177b2c(0x2fe)][_0x177b2c(0x392)](_0x4ea072,_0x55d621,_0x546f14[_0x177b2c(0x2ff)][_0x177b2c(0x2b2)]());return this[_0x177b2c(0x359)][_0x177b2c(0xf6)](_0x5a4823,_0x3a8cfc),this[_0x177b2c(0x106)]['set'](_0x5a4823,_0x546f14[_0x177b2c(0xec)]),_0x3a8cfc;}[_0x27b931(0x230)](_0xb286ff){const _0x334672=_0x27b931;let _0x286274=this[_0x334672(0x359)]['get'](_0xb286ff),_0x10a6cb=this[_0x334672(0x106)]['get'](_0xb286ff);if(_0x286274&&(this[_0x334672(0x359)][_0x334672(0x274)](_0xb286ff),this['_sessionChannels']['delete'](_0xb286ff),_0x286274[_0x334672(0x15b)]()),_0x10a6cb&&!this[_0x334672(0x1b2)](_0x10a6cb)){var _0x27a697;let _0x3b6206=this['_socketChannels'][_0x334672(0x1ad)](_0x10a6cb);_0x3b6206==null||(_0x27a697=_0x3b6206['socket$']['getValue']())==null||_0x27a697[_0x334672(0x15b)]();}}['reconnect'](){const _0x5b7e5f=_0x27b931;(this[_0x5b7e5f(0x180)][_0x5b7e5f(0x1f6)]?[...this['_socketChannels'][_0x5b7e5f(0x32f)]()]:[this['_getSocketChannel'](void 0x0)])[_0x5b7e5f(0x302)](_0x54ba58=>{const _0x3ea5da=_0x5b7e5f;_0x54ba58[_0x3ea5da(0x195)]=0x0,this[_0x3ea5da(0x1e7)](_0x54ba58),this[_0x3ea5da(0x3c4)](_0x54ba58);});}[_0x27b931(0x1e7)](_0x1fb1da){const _0xf670da=_0x27b931;_0x1fb1da[_0xf670da(0x170)]!=null&&(clearTimeout(_0x1fb1da[_0xf670da(0x170)]),_0x1fb1da[_0xf670da(0x170)]=null);}async[_0x27b931(0x175)](_0x5657f7){const _0x1acdac=_0x27b931;var _0x12a158,_0x5e20a2;let _0x5f56ea=this['_configService'][_0x1acdac(0x190)](_0x3c17be),_0x35bf01=(_0x12a158=(_0x5e20a2=_0x5657f7[_0x1acdac(0x2e4)])==null?_0x5f56ea==null?void 0x0:_0x5f56ea[_0x1acdac(0x3d2)]:_0x5e20a2)==null?_0x5f4f64:_0x12a158,_0x208712=await this[_0x1acdac(0x2ca)][_0x1acdac(0x1fa)](_0x35bf01);return _0x5657f7[_0x1acdac(0x15c)]=_0x208712,_0x208712;}async[_0x27b931(0x1a2)](_0xabb92e){const _0x510fe3=_0x27b931;try{var _0x403d6b,_0x4b673b;let _0x4320e4=(_0x403d6b=(_0x4b673b=_0xabb92e[_0x510fe3(0x2ff)]['getValue']())==null?_0xabb92e[_0x510fe3(0x15c)]:_0x4b673b)==null?await this[_0x510fe3(0x175)](_0xabb92e):_0x403d6b;if(_0x4320e4){var _0x1bb48b;let _0x4e57aa=_0x4320e4[_0x510fe3(0x16b)];_0x4320e4[_0x510fe3(0x16b)]=_0x29c18d=>(_0x29c18d[_0x510fe3(0x32c)]!==_0x26a654[_0x510fe3(0x185)]['LEAVE']&&this[_0x510fe3(0x308)](_0xabb92e),_0x4e57aa['apply'](_0x4320e4,[_0x29c18d])),(_0x1bb48b=_0xabb92e[_0x510fe3(0x27d)])==null||_0x1bb48b[_0x510fe3(0x138)](),_0xabb92e[_0x510fe3(0x27d)]=null,_0xabb92e['socketMessageSubscription']=_0x4320e4[_0x510fe3(0x38c)]['subscribe'](_0x4dd7db=>this[_0x510fe3(0x1bc)](_0xabb92e,_0x4320e4,_0x4dd7db)),_0x4320e4[_0x510fe3(0xe5)][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](_0x24dae4=>this['_logService'][_0x510fe3(0x294)]('[CollaborationSessionService]:\x20socket\x20error',_0x24dae4)),_0x4320e4['open$'][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](()=>{this['_onConnectionOpen'](_0xabb92e,_0x4320e4);}),_0x4320e4[_0x510fe3(0x2ad)]['pipe']((0x0,_0x5ba228[_0x510fe3(0x1c3)])(0x1))[_0x510fe3(0x38e)](_0x227618=>{const _0x1e95a0=_0x510fe3;this['_logService']['debug'](_0x1e95a0(0x1e6),_0x1e95a0(0x15f),_0x227618),this[_0x1e95a0(0xe9)](_0xabb92e);});}}catch(_0x54ff90){this[_0x510fe3(0x1a1)][_0x510fe3(0x294)](_0x54ff90),this[_0x510fe3(0xe9)](_0xabb92e);}}[_0x27b931(0x32b)](_0x438863,_0x15786c){const _0x4df184=_0x27b931;this[_0x4df184(0x1a1)][_0x4df184(0x418)](_0x4df184(0x1e6),'socket\x20open.'),_0x15786c['send']({'cmd':_0x26a654[_0x4df184(0x185)][_0x4df184(0x40c)]}),this[_0x4df184(0x308)](_0x438863);}[_0x27b931(0x3ac)](_0x1ed5de){const _0x1fd552=_0x27b931;_0x1ed5de['socketReady']=!0x1,_0x1ed5de['candidateSocket']=null,this['_status$'][_0x1fd552(0x396)](0x2),_0x1ed5de[_0x1fd552(0x2ff)][_0x1fd552(0x396)](null),this[_0x1fd552(0x2a2)](_0x1ed5de),this['_clearHeartbeatTimer'](_0x1ed5de);}[_0x27b931(0xe9)](_0x1e4bb6){const _0x11b849=_0x27b931;var _0x3fcb6a;this[_0x11b849(0x3ac)](_0x1e4bb6),this[_0x11b849(0x1b2)](_0x1e4bb6[_0x11b849(0xec)])&&(_0x1e4bb6[_0x11b849(0x195)]<((_0x3fcb6a=this[_0x11b849(0x228)][_0x11b849(0x190)](_0x11b849(0x30d)))==null?0x3:_0x3fcb6a)?(this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x35c)}),this[_0x11b849(0x3c4)](_0x1e4bb6)):this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x245)}));}[_0x27b931(0x3c4)](_0x2c7a8d){const _0x36ef33=_0x27b931;var _0x5b5767;let _0x11a395=_0x2c7a8d['retryCount'],_0x3032a2=this[_0x36ef33(0x228)][_0x36ef33(0x190)](_0x3c17be),_0x2dffb8=_0x11a395===0x0?0x0:((_0x5b5767=_0x3032a2==null?void 0x0:_0x3032a2[_0x36ef33(0x29f)])==null?0x4e20:_0x5b5767)*0x2**_0x11a395;_0x2c7a8d[_0x36ef33(0x170)]=setTimeout(()=>{const _0x488c91=_0x36ef33;clearTimeout(_0x2c7a8d['retryConnectingTimer']),_0x2c7a8d[_0x488c91(0x170)]=null,this['_tryEnsureSocket'](_0x2c7a8d);},_0x2dffb8),_0x2c7a8d['retryCount']+=0x1;}async[_0x27b931(0x1d9)](_0x583e2d,_0x5acd42){const _0x3a4866=_0x27b931;return _0x1e962d(_0x583e2d,_0x5acd42,await this['_adapter'][_0x3a4866(0x1d2)]({'unitId':_0x583e2d,'unitType':_0x5acd42}));}[_0x27b931(0x1bc)](_0xa23bef,_0x1b0fc9,_0xa50696){const _0x571fe3=_0x27b931;let {cmd:_0x3bef68}=_0xa50696;_0x3bef68===_0x26a654['CombCmd'][_0x571fe3(0x40c)]&&!_0xa23bef[_0x571fe3(0x161)]&&(_0x1b0fc9[_0x571fe3(0x1aa)]=_0xa50696[_0x571fe3(0x401)]['memberID'],_0xa23bef[_0x571fe3(0x2ff)][_0x571fe3(0x396)](_0x1b0fc9),this['_status$']['next'](0x3),_0xa23bef[_0x571fe3(0x161)]=!0x0,_0xa23bef[_0x571fe3(0x15c)]=null),_0x3bef68===_0x26a654[_0x571fe3(0x185)][_0x571fe3(0x3df)]&&this[_0x571fe3(0x2a2)](_0xa23bef),this['_rescheduleHeartbeat'](_0xa23bef);}['_hasSessionsForEndpoint'](_0x3b85af){const _0x135026=_0x27b931;return[...this[_0x135026(0x106)][_0x135026(0x32f)]()][_0x135026(0x405)](_0x157242=>_0x157242===_0x3b85af);}[_0x27b931(0xd8)](_0xacdc69){const _0xba3e4f=_0x27b931;let _0x565502=_0xacdc69==null?'':_0xacdc69,_0x50b750=this[_0xba3e4f(0x180)][_0xba3e4f(0x1ad)](_0x565502);if(_0x50b750)return _0x50b750;let _0x38ec8e={'endpointKey':_0x565502,'endpoint':_0xacdc69,'socket$':new _0x470009[(_0xba3e4f(0x25b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0xba3e4f(0x180)][_0xba3e4f(0xf6)](_0x565502,_0x38ec8e),_0x38ec8e;}[_0x27b931(0x308)](_0x266b89){const _0x455b90=_0x27b931;var _0x2b05d8;this[_0x455b90(0x26c)](_0x266b89),_0x266b89[_0x455b90(0x3f9)]=setTimeout(()=>this['_sendHeartbeat'](_0x266b89),(_0x2b05d8=this[_0x455b90(0x228)]['getConfig'](_0x455b90(0xd9)))==null?0x7530:_0x2b05d8);}[_0x27b931(0x16c)](_0x5275c7){const _0x307ef8=_0x27b931;_0x5275c7[_0x307ef8(0x2ff)]['getValue']()['send']({'cmd':_0x26a654['CombCmd']['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5275c7);}[_0x27b931(0x226)](_0x119c39){const _0x54f9a0=_0x27b931;var _0x427f65;_0x119c39[_0x54f9a0(0x17b)]=setTimeout(()=>this[_0x54f9a0(0xe9)](_0x119c39),(_0x427f65=this[_0x54f9a0(0x228)][_0x54f9a0(0x190)]('HEARTBEAT_TIMEOUT'))==null?_0x1dfc3f:_0x427f65);}[_0x27b931(0x26c)](_0x947f5){const _0x33b20=_0x27b931;_0x947f5[_0x33b20(0x3f9)]!=null&&(clearTimeout(_0x947f5[_0x33b20(0x3f9)]),_0x947f5[_0x33b20(0x3f9)]=null);}[_0x27b931(0x2a2)](_0x1040d3){const _0x60c6e9=_0x27b931;_0x1040d3[_0x60c6e9(0x17b)]!=null&&(clearTimeout(_0x1040d3['timeoutTimer']),_0x1040d3[_0x60c6e9(0x17b)]=null);}};_0xc5d6a5=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x2bd014),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x5,_0x1e5735),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x233)])(_0x4501c7))],_0xc5d6a5);let _0x203f75=class extends _0x47f753[_0x27b931(0xf4)]{constructor(_0x1c807d,_0x306dec,_0x2c930c,_0x8a7cca){const _0x368a3a=_0x27b931;var _0x1082cc;super(),this[_0x368a3a(0x2fe)]=_0x1c807d,this[_0x368a3a(0x282)]=_0x306dec,this['_configService']=_0x2c930c,this['_univerInstanceService']=_0x8a7cca,_0x2dd74e(this,_0x368a3a(0x3cc),new Map()),_0x2dd74e(this,_0x368a3a(0x2d8),new _0x470009['Subject']()),_0x2dd74e(this,_0x368a3a(0x2a3),this[_0x368a3a(0x2d8)][_0x368a3a(0x2b2)]()),((_0x1082cc=this[_0x368a3a(0x228)][_0x368a3a(0x190)]('collaboration-client.config'))==null?void 0x0:_0x1082cc[_0x368a3a(0x275)])!==!0x1&&this[_0x368a3a(0xee)]();}['dispose'](){const _0x52577f=_0x27b931;super[_0x52577f(0x2bc)](),this[_0x52577f(0x3cc)][_0x52577f(0x302)](_0x2ccd7b=>_0x2ccd7b[_0x52577f(0x2bc)]()),this[_0x52577f(0x3cc)]['clear']();}[_0x27b931(0x153)](_0x157e12){var _0x380f6b;return(_0x380f6b=this['_entities']['get'](_0x157e12))==null?null:_0x380f6b;}[_0x27b931(0x151)](_0x1f8902){const _0x596fba=_0x27b931;let _0xdcbc4d=this[_0x596fba(0x153)](_0x1f8902);return _0xdcbc4d?(0x0,_0x470009['of'])(_0xdcbc4d):this['_entityInit$'][_0x596fba(0x11f)]((0x0,_0x5ba228[_0x596fba(0x12e)])(_0x575159=>_0x575159[_0x596fba(0x2ea)]===_0x1f8902));}[_0x27b931(0x346)](_0x261641){const _0x338c60=_0x27b931;return(0x0,_0x470009['firstValueFrom'])(this[_0x338c60(0x151)](_0x261641)['pipe']((0x0,_0x5ba228['map'])(()=>void 0x0)));}[_0x27b931(0xee)](){const _0x132b41=_0x27b931;this['_univerInstanceService'][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228['delay'])(0x10))['subscribe'](async _0x34786d=>{const _0x11bcc3=_0x132b41;let _0x10cab0=_0x34786d['unit'][_0x11bcc3(0x3f1)](),_0x336efa=await this['_startCollaboration'](_0x10cab0,_0x47f753[_0x11bcc3(0x3fc)][_0x11bcc3(0x239)]);this[_0x11bcc3(0x3cc)][_0x11bcc3(0xf6)](_0x10cab0,_0x336efa);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x243)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))['pipe']((0x0,_0x5ba228['filter'])(_0xad0059=>!_0xad0059[_0x132b41(0x191)][_0x132b41(0x3f1)]()['startsWith']('__')))[_0x132b41(0x38e)](async _0x2dfdef=>{const _0x168ed0=_0x132b41;let _0x525fc8=_0x2dfdef[_0x168ed0(0x191)]['getUnitId'](),_0x22a696=await this[_0x168ed0(0x220)](_0x525fc8,_0x47f753['UniverInstanceType'][_0x168ed0(0x243)]);this[_0x168ed0(0x3cc)][_0x168ed0(0xf6)](_0x525fc8,_0x22a696);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)])[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x38a096=>{const _0x1c14ec=_0x132b41;let _0x31019d=_0x38a096['unit']['getUnitId'](),_0x4dec06=await this['_startCollaboration'](_0x31019d,_0x47f753[_0x1c14ec(0x3fc)][_0x1c14ec(0x339)]);this[_0x1c14ec(0x3cc)][_0x1c14ec(0xf6)](_0x31019d,_0x4dec06);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)])['pipe']((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x2d7b66=>{const _0x18b966=_0x132b41;let _0xde6610=_0x2d7b66[_0x18b966(0x191)][_0x18b966(0x3f1)](),_0x32790f=await this[_0x18b966(0x220)](_0xde6610,_0x47f753['UniverInstanceType'][_0x18b966(0x41d)]);this[_0x18b966(0x3cc)]['set'](_0xde6610,_0x32790f);}),this[_0x132b41(0x37d)]['getTypeOfUnitAdded$'](_0x47f753['UniverInstanceType'][_0x132b41(0x313)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228['delay'])(0x10))[_0x132b41(0x38e)](async _0x175386=>{const _0x4cddbc=_0x132b41;let _0x4bc7d8=_0x175386['unit'][_0x4cddbc(0x3f1)](),_0x35bcec=await this['_startCollaboration'](_0x4bc7d8,_0x47f753[_0x4cddbc(0x3fc)][_0x4cddbc(0x313)]);this[_0x4cddbc(0x3cc)][_0x4cddbc(0xf6)](_0x4bc7d8,_0x35bcec);}),(0x0,_0x470009[_0x132b41(0x407)])(this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_DOC']),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)]),this['_univerInstanceService'][_0x132b41(0x28a)](_0x47f753['UniverInstanceType'][_0x132b41(0x313)]))[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]))[_0x132b41(0x38e)](_0x2710e8=>{const _0x57c330=_0x132b41;let _0x16e39f=_0x2710e8[_0x57c330(0x3f1)](),_0x3619fa=this[_0x57c330(0x3cc)]['get'](_0x16e39f);_0x3619fa&&(_0x3619fa[_0x57c330(0x2bc)](),this[_0x57c330(0x3cc)][_0x57c330(0x274)](_0x16e39f));});}async['_startCollaboration'](_0x46d33d,_0x13a62d){const _0x40d43b=_0x27b931;let _0x162442=await this[_0x40d43b(0x282)][_0x40d43b(0x410)](_0x46d33d),_0x3a4fdc=this['_injector'][_0x40d43b(0x392)](this['_getCtorByUniverInstanceType'](_0x13a62d),_0x46d33d,_0x13a62d,_0x162442);return await _0x3a4fdc[_0x40d43b(0x362)](),this[_0x40d43b(0x2d8)][_0x40d43b(0x396)](_0x3a4fdc),_0x3a4fdc;}[_0x27b931(0x2b3)](_0x14ed04){const _0x340e64=_0x27b931;switch(_0x14ed04){case _0x47f753[_0x340e64(0x3fc)]['UNIVER_DOC']:return _0x9eef43;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x239)]:return _0x151d10;case _0x47f753['UniverInstanceType'][_0x340e64(0x339)]:return _0x292824;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x41d)]:return _0x4b522f;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x313)]:return _0x5c3e77;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x14ed04);}}};_0x203f75=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0xc5d6a5)),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x235)])],_0x203f75);var _0x58d19e='@univerjs-pro/collaboration-client',_0x4c6d06=_0x27b931(0x100);let _0x43ec5e=class extends _0x47f753['Disposable']{constructor(_0x4bc8ae,_0x21d0a3){const _0x49d4e5=_0x27b931;super(),this[_0x49d4e5(0x37d)]=_0x4bc8ae,this['_configService']=_0x21d0a3,this['_init']();}[_0x27b931(0xee)](){const _0x5320d0=_0x27b931;this[_0x5320d0(0x3d7)](this[_0x5320d0(0x37d)]['focused$'][_0x5320d0(0x38e)](()=>{const _0x1fa01a=_0x5320d0;var _0x580932;let _0x3feb73=this[_0x1fa01a(0x37d)]['getFocusedUnit'](),_0x4d9279=(_0x580932=this['_configService'][_0x1fa01a(0x190)]('DEFAULT_FILE_NAME'))==null?_0x1fa01a(0x20e):_0x580932;_0x3feb73 instanceof _0x47f753['Workbook']&&(_0x4d9279=_0x3feb73['name']),document[_0x1fa01a(0x22f)]=_0x4d9279;}));}};_0x43ec5e=_0x1fb4c2([_0x2af294(0x0,_0x47f753['IUniverInstanceService']),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)])],_0x43ec5e);let _0x46b0a8=function(_0x4bc59d){const _0x418614=_0x27b931;return _0x4bc59d[_0x418614(0x323)]=_0x418614(0x323),_0x4bc59d[_0x418614(0x403)]='UUID',_0x4bc59d[_0x418614(0x2f0)]=_0x418614(0x2f0),_0x4bc59d;}({}),_0x4f7a6f=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3cf)),_0xeb1ef2=class{constructor(_0x4cf89f,_0x4b1f2a,_0x35ab87){const _0x180d80=_0x27b931;this[_0x180d80(0x3d8)]=_0x4cf89f,this['_configService']=_0x4b1f2a,this[_0x180d80(0x37d)]=_0x35ab87;}[_0x27b931(0x335)](){const _0x4d4640=_0x27b931;var _0x170302;return(_0x170302=this[_0x4d4640(0x2e7)]()[_0x4d4640(0x1cc)])==null?{}:_0x170302;}async[_0x27b931(0x118)](_0x1e7298){const _0x387dba=_0x27b931;let _0x4466af=this['getUploadOptions']();if(_0x2cf7d5(_0x1e7298,_0x4466af),_0x4466af[_0x387dba(0x194)])return _0x4466af[_0x387dba(0x194)](_0x1e7298);let _0x2ef366=await this[_0x387dba(0x3b1)](_0x1e7298);return{'id':_0x2ef366,'name':_0x1e7298[_0x387dba(0x3dc)],'mimeType':_0x1e7298[_0x387dba(0x2af)],'size':_0x1e7298['size'],'sourceType':'UUID','source':_0x2ef366};}async[_0x27b931(0x3b1)](_0x394604){const _0x59b3ec=_0x27b931;let _0x36cfad=this[_0x59b3ec(0x37d)]['getFocusedUnit'](),_0x785ec6=_0x36cfad==null?void 0x0:_0x36cfad[_0x59b3ec(0x3f1)]();if(!_0x785ec6)throw Error(_0x59b3ec(0x1d1));let _0x5af19e=new FormData();_0x5af19e[_0x59b3ec(0x3cb)](_0x59b3ec(0x184),_0x394604);let _0xc6005a=this[_0x59b3ec(0x33c)]()+_0x59b3ec(0x386)+_0x394604[_0x59b3ec(0x1f6)][_0x59b3ec(0x140)]()+'&source='+_0x26a654[_0x59b3ec(0x2cf)][_0x59b3ec(0x330)]+_0x59b3ec(0x3c3)+encodeURIComponent(_0x785ec6),_0x29cf76=(await this[_0x59b3ec(0x3d8)][_0x59b3ec(0x139)](_0xc6005a,{'body':_0x5af19e}))['body']['FileId'];if(typeof _0x29cf76!=_0x59b3ec(0x267)||!_0x29cf76)throw Error(_0x59b3ec(0x16e));return _0x29cf76;}['_getUploadFileURL'](){const _0x934759=_0x27b931;var _0x4a84e1;return(_0x4a84e1=this['_getConfig']()[_0x934759(0x2c4)])==null?_0x934759(0x213):_0x4a84e1;}[_0x27b931(0x2e7)](){const _0x3af5f3=_0x27b931;var _0x2d864f;return(_0x2d864f=this[_0x3af5f3(0x228)]['getConfig'](_0x3af5f3(0x178)))==null?{}:_0x2d864f;}};_0xeb1ef2=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0xeb1ef2);function _0x2cf7d5(_0x452f38,_0x186b2b){const _0x2a8312=_0x27b931;var _0x2462e0;if(_0x186b2b[_0x2a8312(0x3e4)]!=null&&_0x452f38[_0x2a8312(0x1f6)]>_0x186b2b[_0x2a8312(0x3e4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x2462e0=_0x186b2b[_0x2a8312(0x281)])!=null&&_0x2462e0[_0x2a8312(0x415)]&&!_0x186b2b[_0x2a8312(0x281)][_0x2a8312(0x405)](_0x1cc0b1=>_0x452f38[_0x2a8312(0x2af)]===_0x1cc0b1||_0x452f38['name']['endsWith'](_0x1cc0b1)||_0x1cc0b1[_0x2a8312(0x3e1)]('/*')&&_0x452f38[_0x2a8312(0x2af)][_0x2a8312(0x2df)](_0x1cc0b1[_0x2a8312(0x14f)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x149557=class{constructor(_0x230a0f,_0x3fead6,_0xa170d9){const _0x496d3b=_0x27b931;this[_0x496d3b(0x228)]=_0x230a0f,this[_0x496d3b(0x3d8)]=_0x3fead6,this[_0x496d3b(0x2c8)]=_0xa170d9,this[_0x496d3b(0x362)]();}[_0x27b931(0x362)](){const _0x11bf78=_0x27b931;this[_0x11bf78(0x3d8)][_0x11bf78(0xcf)]({'priority':0x1,'interceptor':(_0x481c57,_0x14685a)=>_0x14685a(_0x481c57)[_0x11bf78(0x11f)]((0x0,_0x470009[_0x11bf78(0x27f)])(async _0x5a4c77=>{const _0x163da4=_0x11bf78;let _0x3e8853=_0x5a4c77;if(_0x3e8853[_0x163da4(0x397)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x163da4(0x268)](this[_0x163da4(0x2c8)]['t'](_0x163da4(0x25d)))){let _0x5b3946=window[_0x163da4(0x129)](window['location']['href']);window['location']['href']=this[_0x163da4(0x3b9)]()+_0x163da4(0x2e5)+_0x5b3946;}}return _0x3e8853;}))});}[_0x27b931(0x3b9)](){const _0x56bd05=_0x27b931;var _0x135871;let _0x3d9b9e=this[_0x56bd05(0x228)]['getConfig'](_0x3c17be);return(_0x135871=_0x3d9b9e==null?void 0x0:_0x3d9b9e['loginUrlKey'])==null?_0x56bd05(0x2c3):_0x135871;}};_0x149557=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5['HTTPService'])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)]))],_0x149557);let _0x3d6a88=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x590399,_0x58c645){const _0x136149=_0x27b931;super(),this[_0x136149(0x345)]=_0x590399,this['_configService']=_0x58c645,_0x2dd74e(this,_0x136149(0x171),!0x1),this[_0x136149(0x152)]();}[_0x27b931(0x152)](){const _0xa2a887=_0x27b931;let _0x1f9c20=this;this[_0xa2a887(0x3d7)](this[_0xa2a887(0x345)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x8f2da5[_0xa2a887(0x360)])({'isMatch'(_0x149dcc){const _0x9853ee=_0xa2a887;var _0x37010;if(_0x149dcc[_0x9853ee(0x1f9)]==='POST'&&(_0x37010=_0x149dcc[_0x9853ee(0x41f)])!=null&&_0x37010[_0x9853ee(0x2d9)]){let {objectID:_0x4fd24e,objectType:_0x1d5a9c}=_0x149dcc[_0x9853ee(0x41f)][_0x9853ee(0x2d9)]||{};if(!_0x4fd24e||_0x1d5a9c===void 0x0)return!0x1;let _0x2dfd8f=_0x1f9c20[_0x9853ee(0xe2)]()+'/'+_0x1d5a9c+_0x9853ee(0x20b)+_0x4fd24e+_0x9853ee(0x395);if(_0x149dcc[_0x9853ee(0xd6)]===_0x2dfd8f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x596061){const _0x281a30=_0xa2a887;var _0x3fcca1;return(_0x3fcca1=_0x596061[_0x281a30(0x41f)])==null?void 0x0:_0x3fcca1[_0x281a30(0x2d9)];},'mergeParamsToRequest'(_0x3a94ce,_0x3a3f23){const _0x538489=_0xa2a887;let _0x2ffb68=_0x1f9c20[_0x538489(0xe2)]()+_0x538489(0x145),_0x57158f=_0x3a94ce[_0x538489(0x1ca)]((_0x3989ed,_0x4a00cd)=>{const _0x12fd24=_0x538489;let {unitID:_0x5581b5,objectID:_0x26d386,objectType:_0x2d7051,actions:_0x50d2fa}=_0x4a00cd;return _0x3989ed[_0x5581b5]||(_0x3989ed[_0x5581b5]={}),_0x3989ed[_0x5581b5][_0x26d386]||(_0x3989ed[_0x5581b5][_0x26d386]={'objectID':_0x26d386,'objectType':_0x2d7051,'actions':[]}),_0x3989ed[_0x5581b5][_0x26d386][_0x12fd24(0x1b8)][_0x12fd24(0x30b)](..._0x50d2fa),_0x3989ed;},{}),_0x33b7c8=[];for(let _0x5181d7 in _0x57158f)for(let _0x4b1a77 in _0x57158f[_0x5181d7]){let {actions:_0x4bedbf,objectType:_0x2ef9e9}=_0x57158f[_0x5181d7][_0x4b1a77],_0x36a0f3=[...new Set(_0x4bedbf)];_0x33b7c8['push']({'unitID':_0x5181d7,'objectID':_0x4b1a77,'objectType':_0x2ef9e9,'actions':_0x36a0f3});}return new _0x8f2da5[(_0x538489(0x408))]('POST',_0x2ffb68,{'headers':_0x3a3f23['headers'],'withCredentials':_0x3a3f23['withCredentials'],'responseType':_0x3a3f23[_0x538489(0xdb)],'body':{'requests':_0x33b7c8}});}},{'distributeResult'(_0x5dad24,_0x478e10){const _0x50c98e=_0xa2a887;let {objectActions:_0x400011}=_0x5dad24;return _0x478e10[_0x50c98e(0x394)](_0x1cd1e0=>{const _0x51cce8=_0x50c98e;let {unitID:_0x1c2e2d,objectID:_0x43d917,actions:_0x15cee2}=_0x1cd1e0,_0x1f2a54=_0x400011[_0x51cce8(0x204)](_0x50f37f=>_0x50f37f[_0x51cce8(0x2ea)]===_0x1c2e2d&&_0x50f37f[_0x51cce8(0x1f1)]===_0x43d917);return{'config':_0x1cd1e0,'result':{'actions':_0x15cee2[_0x51cce8(0x394)](_0x213f8f=>_0x1f2a54==null?void 0x0:_0x1f2a54[_0x51cce8(0x1b8)]['find'](_0x5042eb=>_0x5042eb[_0x51cce8(0x3ec)]===_0x213f8f))[_0x51cce8(0x12e)](_0x467684=>!!_0x467684),'error':_0x5dad24[_0x51cce8(0x294)]}};});}})}));}[_0x27b931(0xe2)](){const _0x3bb04f=_0x27b931;var _0x194cc5;let _0x2627a0=this['_configService']['getConfig'](_0x3c17be);return(_0x194cc5=_0x2627a0==null?void 0x0:_0x2627a0[_0x3bb04f(0x1c1)])==null?_0x3bb04f(0x2d4):_0x194cc5;}async[_0x27b931(0x1fb)](_0x472dcc){const _0x79e3f9=_0x27b931;let _0x583be9=this[_0x79e3f9(0xe2)]()+'/'+_0x472dcc[_0x79e3f9(0x30c)]+_0x79e3f9(0x148);return(await this[_0x79e3f9(0x345)][_0x79e3f9(0x139)](_0x583be9,{'body':_0x472dcc}))[_0x79e3f9(0x2d9)][_0x79e3f9(0x1f1)]||'';}async[_0x27b931(0x3c5)](_0x3ac3a0){const _0x412014=_0x27b931;let _0x5957da=this['_getAPIPrefixPath']()+_0x412014(0x3a0);return(await this[_0x412014(0x345)]['post'](_0x5957da,{'body':_0x3ac3a0}))['body'][_0x412014(0x110)];}async[_0x27b931(0x333)](_0x204403){const _0x2b246e=_0x27b931;var _0x5601ac;let _0xae7a70=this[_0x2b246e(0xe2)]()+'/'+_0x204403[_0x2b246e(0x30c)]+_0x2b246e(0x20b)+_0x204403[_0x2b246e(0x1f1)],_0x29657c=await this[_0x2b246e(0x345)][_0x2b246e(0x1fd)](_0xae7a70,{'body':_0x204403});if((_0x29657c==null||(_0x5601ac=_0x29657c[_0x2b246e(0x2d9)])==null||(_0x5601ac=_0x5601ac[_0x2b246e(0x294)])==null?void 0x0:_0x5601ac[_0x2b246e(0x1fc)])!==0x1)throw Error(_0x2b246e(0x112));}async['allowed'](_0xd9a9b8){const _0x3cd183=_0x27b931;let _0x1ad9c3=this[_0x3cd183(0xe2)]()+'/'+_0xd9a9b8[_0x3cd183(0x30c)]+_0x3cd183(0x20b)+_0xd9a9b8[_0x3cd183(0x1f1)]+_0x3cd183(0x395);return(await this['_HTTPService'][_0x3cd183(0x139)](_0x1ad9c3,{'body':_0xd9a9b8}))['body'][_0x3cd183(0x1b8)];}async[_0x27b931(0xfb)](_0x341669){const _0x42d944=_0x27b931;let _0x3d6283=this[_0x42d944(0xe2)]()+_0x42d944(0x145);return(await this[_0x42d944(0x345)][_0x42d944(0x139)](_0x3d6283,{'body':{'requests':_0x341669}}))['body']['objectActions'];}async[_0x27b931(0x3c0)](_0x29c21e){const _0x4cf224=_0x27b931;let _0x529754=this['_getAPIPrefixPath']()+'/'+_0x29c21e[_0x4cf224(0x30c)]+_0x4cf224(0x240),_0x4684ec=await this[_0x4cf224(0x345)][_0x4cf224(0x139)](_0x529754,{'body':_0x29c21e});return{'roles':_0x4684ec['body'][_0x4cf224(0x1c7)],'actions':_0x4684ec[_0x4cf224(0x2d9)][_0x4cf224(0x1b8)]};}async['deleteCollaborator'](_0x3339fc){const _0x546a60=_0x27b931;let _0x4e19ca=this[_0x546a60(0xe2)]()+_0x546a60(0x241);await this[_0x546a60(0x345)][_0x546a60(0x274)](_0x4e19ca,{'params':{'collaboratorID':_0x3339fc[_0x546a60(0x16a)],'objectID':_0x3339fc[_0x546a60(0x1f1)],'unitID':_0x3339fc[_0x546a60(0x2ea)]}});}async[_0x27b931(0x317)](_0xc1d3dc){const _0x457695=_0x27b931;let _0x5628c7=this[_0x457695(0xe2)]()+_0x457695(0x241);await this[_0x457695(0x345)][_0x457695(0x381)](_0x5628c7,{'body':_0xc1d3dc});}async[_0x27b931(0x3fa)](_0x1e0e2b){const _0x467530=_0x27b931;let _0x55a39a=this[_0x467530(0xe2)]()+'/collaborator';await this[_0x467530(0x345)]['post'](_0x55a39a,{'body':_0x1e0e2b});}async[_0x27b931(0x205)](_0xc03d24){const _0xad8b98=_0x27b931;var _0x1dc95d;let _0x5f37ca=this[_0xad8b98(0xe2)]()+'/collaborator',_0x28da2b=await this[_0xad8b98(0x345)]['get'](_0x5f37ca,{'params':{'objectID':_0xc03d24[_0xad8b98(0x1f1)],'unitID':_0xc03d24[_0xad8b98(0x2ea)]}});return this[_0xad8b98(0x128)]((_0x1dc95d=_0x28da2b['body'][_0xad8b98(0x361)])==null?!0x1:_0x1dc95d),_0x28da2b['body'][_0xad8b98(0x19a)];}async[_0x27b931(0x3bd)](_0x427007){const _0x943ab6=_0x27b931;let _0x2ee8c3=this[_0x943ab6(0xe2)]()+_0x943ab6(0x241);await this['_HTTPService']['put'](_0x2ee8c3,{'body':_0x427007});}['setCfgEnableObjInherit'](_0x2c863a){const _0x2dc2fe=_0x27b931;this[_0x2dc2fe(0x171)]=_0x2c863a;}['getCfgEnableObjInherit'](){const _0x25a9b0=_0x27b931;return this[_0x25a9b0(0x171)];}};_0x3d6a88=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)]))],_0x3d6a88);function _0x3602e5(_0x52e75a){const _0x3f9892=_0x27b931;return _0x52e75a instanceof Uint8Array||ArrayBuffer[_0x3f9892(0x19d)](_0x52e75a)&&_0x52e75a['constructor'][_0x3f9892(0x3dc)]===_0x3f9892(0x28d)&&_0x3f9892(0x2db)in _0x52e75a&&_0x52e75a[_0x3f9892(0x2db)]===0x1;}function _0x149fcc(_0x5edd6e){const _0x31abaa=_0x27b931;if(typeof _0x5edd6e!=_0x31abaa(0x116))throw TypeError(_0x31abaa(0x33b)+typeof _0x5edd6e);if(!Number[_0x31abaa(0x11c)](_0x5edd6e)||_0x5edd6e<0x0)throw RangeError(_0x31abaa(0x2b6)+_0x5edd6e);}function _0x241cc3(_0x1ae51d,_0x284b11,_0x2ae0a0=''){const _0x1caaff=_0x27b931;let _0x22d788=_0x3602e5(_0x1ae51d),_0x5405f0=_0x1ae51d==null?void 0x0:_0x1ae51d[_0x1caaff(0x415)],_0x4eff70=_0x284b11!==void 0x0;if(!_0x22d788||_0x4eff70&&_0x5405f0!==_0x284b11){let _0x4920e3=_0x2ae0a0&&'\x22'+_0x2ae0a0+'\x22\x20',_0x1bc4cb=_0x4eff70?_0x1caaff(0x3a8)+_0x284b11:'',_0x42ba4=_0x22d788?_0x1caaff(0x218)+_0x5405f0:_0x1caaff(0x364)+typeof _0x1ae51d,_0x1fd482=_0x4920e3+'expected\x20Uint8Array'+_0x1bc4cb+_0x1caaff(0x23e)+_0x42ba4;throw _0x22d788?RangeError(_0x1fd482):TypeError(_0x1fd482);}return _0x1ae51d;}function _0x505ef8(_0x3f7e79){const _0x5e2b64=_0x27b931;return new Uint32Array(_0x3f7e79[_0x5e2b64(0xe3)],_0x3f7e79[_0x5e2b64(0x36b)],Math['floor'](_0x3f7e79[_0x5e2b64(0x209)]/0x4));}function _0xfcd1a4(..._0x58e63d){const _0xf65bd0=_0x27b931;for(let _0x2712b4=0x0;_0x2712b4<_0x58e63d[_0xf65bd0(0x415)];_0x2712b4++)_0x58e63d[_0x2712b4]['fill'](0x0);}let _0x4fbc4d=new Uint8Array(new Uint32Array([0x11223344])[_0x27b931(0xe3)])[0x0]===0x44,_0x15bbe2=_0x537e2d=>_0x537e2d<<0x18&0xff000000|_0x537e2d<<0x8&0xff0000|_0x537e2d>>>0x8&0xff00|_0x537e2d>>>0x18&0xff,_0x93eb92=_0x4fbc4d?_0x5acde6=>_0x5acde6:_0xc26f0=>{for(let _0x227cd1=0x0;_0x227cd1<_0xc26f0['length'];_0x227cd1++)_0xc26f0[_0x227cd1]=_0x15bbe2(_0xc26f0[_0x227cd1]);return _0xc26f0;};function _0x395142(_0x3ec1a5){const _0x5767e1=_0x27b931;if(typeof _0x3ec1a5!=_0x5767e1(0x267))throw TypeError(_0x5767e1(0x10e));return new Uint8Array(new TextEncoder()[_0x5767e1(0x2f4)](_0x3ec1a5));}function _0x4490ca(_0x288f1a,_0x28bd82){const _0x1a10da=_0x27b931;return!_0x288f1a[_0x1a10da(0x209)]||!_0x28bd82[_0x1a10da(0x209)]?!0x1:_0x288f1a[_0x1a10da(0xe3)]===_0x28bd82[_0x1a10da(0xe3)]&&_0x288f1a['byteOffset']<_0x28bd82[_0x1a10da(0x36b)]+_0x28bd82[_0x1a10da(0x209)]&&_0x28bd82['byteOffset']<_0x288f1a['byteOffset']+_0x288f1a[_0x1a10da(0x209)];}function _0x34ca96(_0x1522c1,_0x793018){const _0x317d52=_0x27b931;if(_0x4490ca(_0x1522c1,_0x793018)&&_0x1522c1[_0x317d52(0x36b)]<_0x793018[_0x317d52(0x36b)])throw Error(_0x317d52(0x27a));}function _0x3f9ffe(..._0x2db177){const _0x407638=_0x27b931;let _0x11faea=0x0;for(let _0x176e2b=0x0;_0x176e2b<_0x2db177['length'];_0x176e2b++){let _0x561d95=_0x2db177[_0x176e2b];_0x241cc3(_0x561d95),_0x11faea+=_0x561d95[_0x407638(0x415)];}let _0x2212c3=new Uint8Array(_0x11faea);for(let _0x1c996a=0x0,_0x244f6b=0x0;_0x1c996a<_0x2db177[_0x407638(0x415)];_0x1c996a++){let _0x131447=_0x2db177[_0x1c996a];_0x2212c3[_0x407638(0xf6)](_0x131447,_0x244f6b),_0x244f6b+=_0x131447['length'];}return _0x2212c3;}let _0x53e818=(_0x43b0e0,_0x39bf04)=>{function _0x4da402(_0x10d859,..._0x5319cc){const _0x5f4f2d=_0x1420;if(_0x241cc3(_0x10d859,void 0x0,'key'),_0x43b0e0[_0x5f4f2d(0x354)]!==void 0x0){let _0x48b0b1=_0x5319cc[0x0];_0x241cc3(_0x48b0b1,_0x43b0e0[_0x5f4f2d(0x34e)]?void 0x0:_0x43b0e0[_0x5f4f2d(0x354)],_0x5f4f2d(0xed));}let _0x5a04ac=_0x43b0e0[_0x5f4f2d(0x36d)];_0x5a04ac&&_0x5319cc[0x1]!==void 0x0&&_0x241cc3(_0x5319cc[0x1],void 0x0,'AAD');let _0x281876=_0x39bf04(_0x10d859,..._0x5319cc),_0x4eccd4=(_0x397952,_0x2e34a4)=>{const _0x1b9e46=_0x5f4f2d;if(_0x2e34a4!==void 0x0){if(_0x397952!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x241cc3(_0x2e34a4,void 0x0,_0x1b9e46(0x2d0));}},_0x4a820e=!0x1;return{'encrypt'(_0x209749,_0x5a3164){const _0x28fde3=_0x5f4f2d;if(_0x4a820e)throw Error(_0x28fde3(0x2a7));return _0x4a820e=!0x0,_0x241cc3(_0x209749),_0x4eccd4(_0x281876['encrypt'][_0x28fde3(0x415)],_0x5a3164),_0x281876[_0x28fde3(0x258)](_0x209749,_0x5a3164);},'decrypt'(_0x3b87be,_0x56fe85){const _0x1c8044=_0x5f4f2d;if(_0x241cc3(_0x3b87be),_0x5a04ac&&_0x3b87be[_0x1c8044(0x415)]<_0x5a04ac)throw Error(_0x1c8044(0x30a)+_0x5a04ac);return _0x4eccd4(_0x281876['decrypt'][_0x1c8044(0x415)],_0x56fe85),_0x281876[_0x1c8044(0x19e)](_0x3b87be,_0x56fe85);}};}return Object['assign'](_0x4da402,_0x43b0e0),_0x4da402;};function _0x30f906(_0x2d1dbe,_0x4db4f6,_0x2829ff=!0x0){const _0x4df560=_0x27b931;if(_0x4db4f6===void 0x0)return new Uint8Array(_0x2d1dbe);if(_0x241cc3(_0x4db4f6,void 0x0,_0x4df560(0x2d0)),_0x4db4f6['length']!==_0x2d1dbe)throw Error(_0x4df560(0x2a4)+_0x2d1dbe+',\x20got:\x20'+_0x4db4f6[_0x4df560(0x415)]);if(_0x2829ff&&!_0x15866a(_0x4db4f6))throw Error(_0x4df560(0x412));return _0x4db4f6;}function _0x15866a(_0x4036c9){const _0xb716a1=_0x27b931;return _0x4036c9[_0xb716a1(0x36b)]%0x4==0x0;}function _0x5b679f(_0x490316){const _0x10e637=_0x27b931;return Uint8Array[_0x10e637(0x21c)](_0x241cc3(_0x490316));}function _0x2d2cd9(_0x304e43=0x20){const _0x2a816b=_0x27b931;_0x149fcc(_0x304e43);let _0x28591d=typeof globalThis==_0x2a816b(0x2e9)?globalThis[_0x2a816b(0x24a)]:null;if(typeof(_0x28591d==null?void 0x0:_0x28591d[_0x2a816b(0x28f)])!='function')throw Error(_0x2a816b(0x114));return _0x28591d[_0x2a816b(0x28f)](new Uint8Array(_0x304e43));}function _0x6bc83e(_0x2f5cec){const _0x36a804=_0x27b931;if(![0x10,0x18,0x20][_0x36a804(0xf2)](_0x2f5cec[_0x36a804(0x415)]))throw Error(_0x36a804(0x1df)+_0x2f5cec[_0x36a804(0x415)]);}function _0x18f630(_0x2f6f80){return _0x2f6f80<<0x1^0x11b&-(_0x2f6f80>>0x7);}function _0x41759a(_0x3a5b9c,_0x28051d){let _0x16b53e=0x0;for(;_0x28051d>0x0;_0x28051d>>=0x1)_0x16b53e^=_0x3a5b9c&-(_0x28051d&0x1),_0x3a5b9c=_0x18f630(_0x3a5b9c);return _0x16b53e;}let _0x21c9fc=((()=>{let _0x140eeb=new Uint8Array(0x100);for(let _0x419ef8=0x0,_0x25bafa=0x1;_0x419ef8<0x100;_0x419ef8++,_0x25bafa^=_0x18f630(_0x25bafa))_0x140eeb[_0x419ef8]=_0x25bafa;let _0x3a9dc2=new Uint8Array(0x100);_0x3a9dc2[0x0]=0x63;for(let _0x423d1a=0x0;_0x423d1a<0xff;_0x423d1a++){let _0x31ae1b=_0x140eeb[0xff-_0x423d1a];_0x31ae1b|=_0x31ae1b<<0x8,_0x3a9dc2[_0x140eeb[_0x423d1a]]=(_0x31ae1b^_0x31ae1b>>0x4^_0x31ae1b>>0x5^_0x31ae1b>>0x6^_0x31ae1b>>0x7^0x63)&0xff;}return _0xfcd1a4(_0x140eeb),_0x3a9dc2;})()),_0x1560ce=_0x21c9fc[_0x27b931(0x394)]((_0xd0c344,_0x315b2f)=>_0x21c9fc[_0x27b931(0x290)](_0x315b2f)),_0x580e75=_0x2398e0=>_0x2398e0<<0x18|_0x2398e0>>>0x8,_0x2ebee5=_0x58cbd4=>_0x58cbd4<<0x8|_0x58cbd4>>>0x18;function _0x44a576(_0x18585d,_0x2e4bb3){const _0x353094=_0x27b931;if(_0x18585d[_0x353094(0x415)]!==0x100)throw Error(_0x353094(0x166));let _0x1f5e53=new Uint32Array(0x100)[_0x353094(0x394)]((_0x1f9213,_0x1a2034)=>_0x2e4bb3(_0x18585d[_0x1a2034])),_0x4facc5=_0x1f5e53['map'](_0x2ebee5),_0x4a3060=_0x4facc5[_0x353094(0x394)](_0x2ebee5),_0xd5e156=_0x4a3060[_0x353094(0x394)](_0x2ebee5),_0x480a76=new Uint32Array(0x100*0x100),_0x30ad27=new Uint32Array(0x100*0x100),_0xf716dd=new Uint16Array(0x100*0x100);for(let _0x1472bf=0x0;_0x1472bf<0x100;_0x1472bf++)for(let _0x35856b=0x0;_0x35856b<0x100;_0x35856b++){let _0x222fdc=_0x1472bf*0x100+_0x35856b;_0x480a76[_0x222fdc]=_0x1f5e53[_0x1472bf]^_0x4facc5[_0x35856b],_0x30ad27[_0x222fdc]=_0x4a3060[_0x1472bf]^_0xd5e156[_0x35856b],_0xf716dd[_0x222fdc]=_0x18585d[_0x1472bf]<<0x8|_0x18585d[_0x35856b];}return{'sbox':_0x18585d,'sbox2':_0xf716dd,'T0':_0x1f5e53,'T1':_0x4facc5,'T2':_0x4a3060,'T3':_0xd5e156,'T01':_0x480a76,'T23':_0x30ad27};}let _0x396ca3=_0x44a576(_0x21c9fc,_0x5e8dbf=>_0x41759a(_0x5e8dbf,0x3)<<0x18|_0x5e8dbf<<0x10|_0x5e8dbf<<0x8|_0x41759a(_0x5e8dbf,0x2)),_0x2ab22e=_0x44a576(_0x1560ce,_0x8b1175=>_0x41759a(_0x8b1175,0xb)<<0x18|_0x41759a(_0x8b1175,0xd)<<0x10|_0x41759a(_0x8b1175,0x9)<<0x8|_0x41759a(_0x8b1175,0xe)),_0x4363d3=((()=>{let _0x1137bc=new Uint8Array(0x10);for(let _0x26f165=0x0,_0x5807e1=0x1;_0x26f165<0x10;_0x26f165++,_0x5807e1=_0x18f630(_0x5807e1))_0x1137bc[_0x26f165]=_0x5807e1;return _0x1137bc;})());function _0x1bd2b0(_0x3ae0f5){const _0x4e7820=_0x27b931;_0x241cc3(_0x3ae0f5);let _0xf4e211=_0x3ae0f5[_0x4e7820(0x415)];_0x6bc83e(_0x3ae0f5);let {sbox2:_0x15903c}=_0x396ca3,_0x564a30=[];(!_0x4fbc4d||!_0x15866a(_0x3ae0f5))&&_0x564a30[_0x4e7820(0x30b)](_0x3ae0f5=_0x5b679f(_0x3ae0f5));let _0x20fa68=_0x93eb92(_0x505ef8(_0x3ae0f5)),_0x1f78ef=_0x20fa68['length'],_0x147e4e=_0x1f1585=>_0x48b4a2(_0x15903c,_0x1f1585,_0x1f1585,_0x1f1585,_0x1f1585),_0x5d2edf=new Uint32Array(_0xf4e211+0x1c);_0x5d2edf['set'](_0x20fa68);for(let _0x4ad34b=_0x1f78ef;_0x4ad34b<_0x5d2edf[_0x4e7820(0x415)];_0x4ad34b++){let _0x34e210=_0x5d2edf[_0x4ad34b-0x1];_0x4ad34b%_0x1f78ef===0x0?_0x34e210=_0x147e4e(_0x580e75(_0x34e210))^_0x4363d3[_0x4ad34b/_0x1f78ef-0x1]:_0x1f78ef>0x6&&_0x4ad34b%_0x1f78ef===0x4&&(_0x34e210=_0x147e4e(_0x34e210)),_0x5d2edf[_0x4ad34b]=_0x5d2edf[_0x4ad34b-_0x1f78ef]^_0x34e210;}return _0xfcd1a4(..._0x564a30),_0x5d2edf;}function _0x81f1df(_0x193b99){const _0x1671cf=_0x27b931;let _0x580c97=_0x1bd2b0(_0x193b99),_0x170f8d=_0x580c97[_0x1671cf(0x14f)](),_0x177c0e=_0x580c97['length'],{sbox2:_0x4bdea7}=_0x396ca3,{T0:_0x40ae63,T1:_0x57055d,T2:_0x2f8524,T3:_0x222bbb}=_0x2ab22e;for(let _0x57fa2d=0x0;_0x57fa2d<_0x177c0e;_0x57fa2d+=0x4)for(let _0x5d214d=0x0;_0x5d214d<0x4;_0x5d214d++)_0x170f8d[_0x57fa2d+_0x5d214d]=_0x580c97[_0x177c0e-_0x57fa2d-0x4+_0x5d214d];_0xfcd1a4(_0x580c97);for(let _0x3e7f67=0x4;_0x3e7f67<_0x177c0e-0x4;_0x3e7f67++){let _0x26b82b=_0x170f8d[_0x3e7f67],_0x50a572=_0x48b4a2(_0x4bdea7,_0x26b82b,_0x26b82b,_0x26b82b,_0x26b82b);_0x170f8d[_0x3e7f67]=_0x40ae63[_0x50a572&0xff]^_0x57055d[_0x50a572>>>0x8&0xff]^_0x2f8524[_0x50a572>>>0x10&0xff]^_0x222bbb[_0x50a572>>>0x18];}return _0x170f8d;}function _0x55bab8(_0x40b2e1,_0xdad542,_0x3a7beb,_0x551b24,_0x3fafdf,_0x3caec2){return _0x40b2e1[_0x3a7beb<<0x8&0xff00|_0x551b24>>>0x8&0xff]^_0xdad542[_0x3fafdf>>>0x8&0xff00|_0x3caec2>>>0x18&0xff];}function _0x48b4a2(_0xfe73fc,_0x428702,_0x94e3a5,_0x591b4d,_0x5bfc43){return _0xfe73fc[_0x428702&0xff|_0x94e3a5&0xff00]|_0xfe73fc[_0x591b4d>>>0x10&0xff|_0x5bfc43>>>0x10&0xff00]<<0x10;}function _0x430a23(_0x3f3681,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745){const _0x36fd69=_0x27b931;let {sbox2:_0x24ff21,T01:_0x59f07d,T23:_0x535e66}=_0x396ca3,_0x4c5f05=0x0;_0x1f2927^=_0x3f3681[_0x4c5f05++],_0x1f81f9^=_0x3f3681[_0x4c5f05++],_0x29b3d3^=_0x3f3681[_0x4c5f05++],_0xf01745^=_0x3f3681[_0x4c5f05++];let _0x440da1=_0x3f3681[_0x36fd69(0x415)]/0x4-0x2;for(let _0x443a2c=0x0;_0x443a2c<_0x440da1;_0x443a2c++){let _0x16b8bb=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),_0x1a392d=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),_0x18e3f7=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),_0x31bf33=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3);_0x1f2927=_0x16b8bb,_0x1f81f9=_0x1a392d,_0x29b3d3=_0x18e3f7,_0xf01745=_0x31bf33;}return{'s0':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),'s1':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),'s2':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),'s3':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3)};}function _0x1b88cd(_0x4cb57f,_0x350100,_0x587263,_0x32d497,_0xf4e04d){const _0x2c0d2b=_0x27b931;let {sbox2:_0x5dd316,T01:_0xea43b4,T23:_0x4f6e8a}=_0x2ab22e,_0x481196=0x0;_0x350100^=_0x4cb57f[_0x481196++],_0x587263^=_0x4cb57f[_0x481196++],_0x32d497^=_0x4cb57f[_0x481196++],_0xf4e04d^=_0x4cb57f[_0x481196++];let _0x477037=_0x4cb57f[_0x2c0d2b(0x415)]/0x4-0x2;for(let _0x362b73=0x0;_0x362b73<_0x477037;_0x362b73++){let _0x209215=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x350100,_0xf4e04d,_0x32d497,_0x587263),_0x5d0db5=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x587263,_0x350100,_0xf4e04d,_0x32d497),_0x523796=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x32d497,_0x587263,_0x350100,_0xf4e04d),_0x4f4dee=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0xf4e04d,_0x32d497,_0x587263,_0x350100);_0x350100=_0x209215,_0x587263=_0x5d0db5,_0x32d497=_0x523796,_0xf4e04d=_0x4f4dee;}return{'s0':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x350100,_0xf4e04d,_0x32d497,_0x587263),'s1':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x587263,_0x350100,_0xf4e04d,_0x32d497),'s2':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x32d497,_0x587263,_0x350100,_0xf4e04d),'s3':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0xf4e04d,_0x32d497,_0x587263,_0x350100)};}function _0x2fa415(_0x1a9c90){const _0x2b14fb=_0x27b931;if(_0x241cc3(_0x1a9c90),_0x1a9c90[_0x2b14fb(0x415)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x574f0b(_0x1996a5,_0x38547e,_0x5df844){const _0x3f1eac=_0x27b931;_0x241cc3(_0x1996a5);let _0x236dbb=_0x1996a5[_0x3f1eac(0x415)],_0x19e906=_0x236dbb%0x10;if(!_0x38547e&&_0x19e906!==0x0)throw Error(_0x3f1eac(0x201));if(_0x38547e){let _0x329311=0x10-_0x19e906;_0x329311||(_0x329311=0x10),_0x236dbb+=_0x329311;}_0x5df844=_0x30f906(_0x236dbb,_0x5df844),_0x34ca96(_0x1996a5,_0x5df844),(!_0x4fbc4d||!_0x15866a(_0x1996a5))&&(_0x1996a5=_0x5b679f(_0x1996a5));let _0x544b1a=_0x505ef8(_0x1996a5);return _0x93eb92(_0x544b1a),{'b':_0x544b1a,'o':_0x505ef8(_0x5df844),'out':_0x5df844};}function _0x1f93cc(_0x492f90,_0x43cebc){const _0x349ec2=_0x27b931;if(!_0x43cebc)return _0x492f90;let _0x232a6e=_0x492f90[_0x349ec2(0x415)];if(_0x232a6e===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x508e50=_0x492f90[_0x232a6e-0x1],_0x257a67=0x1;_0x257a67&=_0x508e50-0x1>>>0x1f^0x1,_0x257a67&=0x10-_0x508e50>>>0x1f^0x1;for(let _0x5b1135=0x0;_0x5b1135<0x10;_0x5b1135++){let _0xab635=_0x5b1135-_0x508e50>>>0x1f,_0x3e920e=+((_0x492f90[_0x232a6e-0x1-_0x5b1135]^_0x508e50)===0x0);_0x257a67&=_0x3e920e|_0xab635^0x1;}if(!_0x257a67)throw Error('aes/pkcs7:\x20wrong\x20padding');return _0x492f90[_0x349ec2(0x303)](0x0,_0x232a6e-_0x508e50);}function _0x3b18c1(_0x11de29){let _0xa8fff3=new Uint8Array(0x10),_0x56c33f=_0x505ef8(_0xa8fff3);_0xa8fff3['set'](_0x11de29);let _0x38f803=0x10-_0x11de29['length'];for(let _0x26195a=0x10-_0x38f803;_0x26195a<0x10;_0x26195a++)_0xa8fff3[_0x26195a]=_0x38f803;return _0x56c33f;}let _0x18a27a=_0x53e818({'blockSize':0x10,'nonceLength':0x10},function(_0x2ef2c0,_0x5a966a,_0x27025d={}){const _0x54c511=_0x27b931;let _0x5aec79=!_0x27025d[_0x54c511(0x1d3)];return{'encrypt'(_0x4681f4,_0x26695f){const _0x47d583=_0x54c511;let _0x50d8fb=_0x1bd2b0(_0x2ef2c0),{b:_0x55f466,o:_0x1a8ce1,out:_0x1d1c9d}=_0x574f0b(_0x4681f4,_0x5aec79,_0x26695f),_0x5c43db=_0x5a966a,_0xdd4792=[_0x50d8fb];(!_0x4fbc4d||!_0x15866a(_0x5c43db))&&_0xdd4792[_0x47d583(0x30b)](_0x5c43db=_0x5b679f(_0x5c43db));let _0x4b0f41=_0x505ef8(_0x5c43db);_0x93eb92(_0x4b0f41);let _0xd6e879=_0x4b0f41[0x0],_0x457b69=_0x4b0f41[0x1],_0x2d5852=_0x4b0f41[0x2],_0x3756eb=_0x4b0f41[0x3],_0x42bc5c=0x0;for(;_0x42bc5c+0x4<=_0x55f466['length'];)_0xd6e879^=_0x55f466[_0x42bc5c+0x0],_0x457b69^=_0x55f466[_0x42bc5c+0x1],_0x2d5852^=_0x55f466[_0x42bc5c+0x2],_0x3756eb^=_0x55f466[_0x42bc5c+0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;if(_0x5aec79){let _0x3a9196=_0x3b18c1(_0x4681f4[_0x47d583(0x303)](_0x42bc5c*0x4));_0x93eb92(_0x3a9196),_0xd6e879^=_0x3a9196[0x0],_0x457b69^=_0x3a9196[0x1],_0x2d5852^=_0x3a9196[0x2],_0x3756eb^=_0x3a9196[0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;}return _0x93eb92(_0x1a8ce1),_0xfcd1a4(..._0xdd4792),_0x1d1c9d;},'decrypt'(_0x519358,_0x5c844d){const _0x26e2c0=_0x54c511;_0x2fa415(_0x519358);let _0xff2254=_0x81f1df(_0x2ef2c0),_0x3b1a8b=_0x5a966a,_0x4d3e2c=[_0xff2254];(!_0x4fbc4d||!_0x15866a(_0x3b1a8b))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x3b1a8b=_0x5b679f(_0x3b1a8b));let _0x3b6fbe=_0x505ef8(_0x3b1a8b);_0x93eb92(_0x3b6fbe),_0x5c844d=_0x30f906(_0x519358['length'],_0x5c844d),_0x34ca96(_0x519358,_0x5c844d),(!_0x4fbc4d||!_0x15866a(_0x519358))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x519358=_0x5b679f(_0x519358));let _0x12c40b=_0x505ef8(_0x519358),_0x4590ca=_0x505ef8(_0x5c844d);_0x93eb92(_0x12c40b);let _0x5cbe9a=_0x3b6fbe[0x0],_0x559957=_0x3b6fbe[0x1],_0x59cccf=_0x3b6fbe[0x2],_0x10a0b0=_0x3b6fbe[0x3];for(let _0x39b707=0x0;_0x39b707+0x4<=_0x12c40b[_0x26e2c0(0x415)];){let _0x191478=_0x5cbe9a,_0x1d41cd=_0x559957,_0x3233ff=_0x59cccf,_0x260c10=_0x10a0b0;_0x5cbe9a=_0x12c40b[_0x39b707+0x0],_0x559957=_0x12c40b[_0x39b707+0x1],_0x59cccf=_0x12c40b[_0x39b707+0x2],_0x10a0b0=_0x12c40b[_0x39b707+0x3];let {s0:_0x132c79,s1:_0x662fc0,s2:_0x41c37c,s3:_0x547ff3}=_0x1b88cd(_0xff2254,_0x5cbe9a,_0x559957,_0x59cccf,_0x10a0b0);_0x4590ca[_0x39b707++]=_0x132c79^_0x191478,_0x4590ca[_0x39b707++]=_0x662fc0^_0x1d41cd,_0x4590ca[_0x39b707++]=_0x41c37c^_0x3233ff,_0x4590ca[_0x39b707++]=_0x547ff3^_0x260c10;}return _0x93eb92(_0x4590ca),_0xfcd1a4(..._0x4d3e2c),_0x1f93cc(_0x5c844d,_0x5aec79);}};});function _0x1fa79a(_0x5c1cd7){const _0x209a9a=_0x27b931;let _0x413d12=atob(_0x5c1cd7),_0x372a47=new Uint8Array(_0x413d12[_0x209a9a(0x415)]);for(let _0x214544=0x0;_0x214544<_0x413d12[_0x209a9a(0x415)];_0x214544++)_0x372a47[_0x214544]=_0x413d12['charCodeAt'](_0x214544);return _0x372a47;}function _0x24d31d(_0x263b65){const _0x1fca9e=_0x27b931;let _0x3478cb='';for(let _0x20f15f=0x0;_0x20f15f<_0x263b65['length'];_0x20f15f++)_0x3478cb+=String[_0x1fca9e(0x349)](_0x263b65[_0x20f15f]);return btoa(_0x3478cb);}function _0x7b17e0(_0x5333b7,_0x4757f8){let _0x102b62=_0x1fa79a(_0x4757f8),_0x4e54ac=_0x2d2cd9(0x10);return _0x24d31d(_0x3f9ffe(_0x4e54ac,_0x18a27a(_0x102b62,_0x4e54ac)['encrypt'](_0x395142(_0x5333b7))));}function _0x1bc6dc(){const _0x3228a0=_0x27b931;let _0x2615c5=(0x0,_0x4326e6[_0x3228a0(0x1dc)])()['__Key__'];if(typeof window<'u'&&window[_0x3228a0(0x17d)]!==void 0x0&&_0x2615c5){let _0x313dbc={'time':Math[_0x3228a0(0x414)](Date[_0x3228a0(0x284)]()/0x3e8),'domain':location[_0x3228a0(0x1e2)]};return _0x7b17e0(JSON[_0x3228a0(0x3e5)](_0x313dbc),_0x2615c5);}}let _0x1a45aa=class{constructor(_0x4b0052){const _0x14f518=_0x27b931;this[_0x14f518(0x3d8)]=_0x4b0052,this['_initRequestHeader']();}[_0x27b931(0x280)](){const _0x2b049a=_0x27b931;this[_0x2b049a(0x3d8)][_0x2b049a(0xcf)]({'interceptor':(_0x2a0631,_0x4ee535)=>{const _0x858528=_0x2b049a;let _0x35685c=_0x1bc6dc();return _0x35685c&&_0x2a0631[_0x858528(0x23f)]['set']('x-univer-host',_0x35685c),_0x4ee535(_0x2a0631);}});}};_0x1a45aa=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x1a45aa);let _0x5cf05d=class extends _0x47f753['RxDisposable']{constructor(_0x5a5e7a,_0x4e7e4e,_0xfc9824){const _0xa1941c=_0x27b931;super(),this[_0xa1941c(0x1a1)]=_0x5a5e7a,this[_0xa1941c(0x10f)]=_0x4e7e4e,this[_0xa1941c(0x189)]=_0xfc9824,_0x2dd74e(this,_0xa1941c(0x278),new _0x470009[(_0xa1941c(0x25b))](null)),_0x2dd74e(this,'_unitLoaded$',new _0x470009[(_0xa1941c(0x256))]()),_0x2dd74e(this,_0xa1941c(0x34c),this[_0xa1941c(0x278)]['asObservable']()),_0x2dd74e(this,_0xa1941c(0x2d6),this[_0xa1941c(0x136)][_0xa1941c(0x2b2)]());}['dispose'](){const _0x5bce73=_0x27b931;super[_0x5bce73(0x2bc)](),this[_0x5bce73(0x136)][_0x5bce73(0x32e)](),this[_0x5bce73(0x278)][_0x5bce73(0x32e)]();}async['loadUnitOfRevision'](_0x2485a7,_0x4c3ae1,_0x1b9cc6,_0x2614d2){const _0x496717=_0x27b931;this[_0x496717(0x278)][_0x496717(0x396)]({'unitId':_0x2485a7,'type':_0x4c3ae1,'subUnitId':_0x2614d2});let _0x3ee92=null;switch(_0x4c3ae1){case _0x47f753[_0x496717(0x3fc)][_0x496717(0x239)]:_0x3ee92=await this[_0x496717(0x10f)]['loadSheet'](_0x2485a7,_0x1b9cc6,void 0x0,{'initialSubUnitId':_0x2614d2});break;case _0x47f753['UniverInstanceType'][_0x496717(0x243)]:_0x3ee92=await this['_snapshotService'][_0x496717(0x40b)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)][_0x496717(0x339)]:_0x3ee92=await this[_0x496717(0x10f)][_0x496717(0x31e)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BOARD']:_0x3ee92=await this['_snapshotService'][_0x496717(0x2bf)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BASE']:_0x3ee92=await this[_0x496717(0x10f)]['loadBase'](_0x2485a7,_0x1b9cc6);break;default:this['_logService'][_0x496717(0x294)](_0x496717(0xcb),_0x496717(0x3a5));break;}return _0x3ee92&&this['_unitLoaded$']['next'](_0x3ee92),_0x3ee92;}async['loadUnit'](_0x2aeaee,_0x311d9c,_0x3de567){const _0x2dad63=_0x27b931;var _0x22faa1;this[_0x2dad63(0x278)][_0x2dad63(0x396)]({'unitId':_0x2aeaee,'type':_0x311d9c,'subUnitId':_0x3de567});let _0x37b937=0x0,_0x19a130=await((_0x22faa1=this['_localCacheService'])==null?void 0x0:_0x22faa1[_0x2dad63(0x2e3)](_0x2aeaee));return _0x19a130&&(_0x19a130['awaitingChangeset']||_0x19a130[_0x2dad63(0x35e)][_0x2dad63(0x415)]!==0x0)&&(_0x37b937=_0x19a130['rev']),_0x37b937===0x0&&this['_logService'][_0x2dad63(0x418)]('[DataLoaderService]',_0x2dad63(0x1a0)),this[_0x2dad63(0x2d7)](_0x2aeaee,_0x311d9c,_0x37b937,_0x3de567);}};_0x5cf05d=_0x1fb4c2([_0x2af294(0x0,_0x47f753['ILogService']),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x417)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5cf05d);let _0x48896b=class{constructor(_0x531e90,_0x3c57a7,_0x1ba3dd){const _0x3b2471=_0x27b931;this[_0x3b2471(0x3d8)]=_0x531e90,this[_0x3b2471(0x228)]=_0x3c57a7,this[_0x3b2471(0x37d)]=_0x1ba3dd,_0x2dd74e(this,_0x3b2471(0x376),0x0),_0x2dd74e(this,_0x3b2471(0x371),new _0x470009[(_0x3b2471(0x256))]()),_0x2dd74e(this,'change$',this[_0x3b2471(0x371)]),_0x2dd74e(this,_0x3b2471(0x217),new Map());}[_0x27b931(0x124)](_0x18a9f2){const _0x255d53=_0x27b931;this[_0x255d53(0x376)]=_0x18a9f2,this[_0x255d53(0x371)]['next'](_0x18a9f2);}[_0x27b931(0x22a)](_0x3df041,_0x16ee03){const _0x4d47f2=_0x27b931;if(_0x16ee03===_0x47f753['ImageSourceType'][_0x4d47f2(0x2f0)]){let _0x3e01ca=new Image();return _0x3e01ca['src']=_0x3df041,_0x3e01ca;}return this['_imageSourceCache'][_0x4d47f2(0x1ad)](_0x3df041);}['addImageSourceCache'](_0x50a963,_0x125fb1,_0x56f4ac){const _0x4360be=_0x27b931;_0x125fb1===_0x47f753[_0x4360be(0x149)]['BASE64']||_0x56f4ac==null||this['_imageSourceCache']['set'](_0x50a963,_0x56f4ac);}async['getImage'](_0x14f507){const _0x5aa894=_0x27b931;try{let _0x1121be=this[_0x5aa894(0x1d6)](this[_0x5aa894(0x1b4)](),''+_0x14f507),_0x323267=(await this[_0x5aa894(0x3d8)][_0x5aa894(0x1ad)](_0x1121be))[_0x5aa894(0x2d9)];if(_0x323267[_0x5aa894(0x294)]&&_0x323267[_0x5aa894(0x294)][_0x5aa894(0x1fc)]===_0x26a654[_0x5aa894(0x3a7)]['OK']){let _0x3ef3e2=(0x0,_0x47f753['resolveWithBasePath'])(_0x323267['url'],this[_0x5aa894(0x1cb)]());return Promise[_0x5aa894(0x309)](_0x3ef3e2);}return Promise[_0x5aa894(0x133)](_0x323267[_0x5aa894(0x294)]);}catch(_0xa9540){return Promise[_0x5aa894(0x133)](_0xa9540);}}async[_0x27b931(0x305)](_0x4ee011){const _0x1c7f38=_0x27b931;let _0x35da22='';if(!_0x5d9de4[_0x1c7f38(0x24c)][_0x1c7f38(0xf2)](_0x4ee011[_0x1c7f38(0x2af)]))return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x2a1)]));if(_0x4ee011['size']>(0x0,_0x5d9de4[_0x1c7f38(0x103)])())return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x3e2)]));try{let _0x486981=new FormData();_0x486981[_0x1c7f38(0x3cb)](_0x1c7f38(0x184),_0x4ee011);let _0x4c0f74=this['_univerInstanceService'][_0x1c7f38(0x3d3)](),_0x2896e9=_0x4c0f74==null?void 0x0:_0x4c0f74[_0x1c7f38(0x3f1)]();if(!_0x2896e9)throw Error(_0x1c7f38(0x255));let _0x124d00=this['_getUploadFileURL']()+'?size='+_0x4ee011[_0x1c7f38(0x1f6)][_0x1c7f38(0x140)]()+_0x1c7f38(0x26b)+_0x26a654[_0x1c7f38(0x2cf)][_0x1c7f38(0x330)]+_0x1c7f38(0x3c3)+encodeURIComponent(_0x2896e9),_0x2627da={'body':_0x486981},_0x125749=(await this[_0x1c7f38(0x3d8)][_0x1c7f38(0x139)](_0x124d00,_0x2627da))[_0x1c7f38(0x2d9)];if(typeof _0x125749[_0x1c7f38(0xdd)]!=_0x1c7f38(0x267))return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x33f)]));_0x35da22=_0x125749[_0x1c7f38(0xdd)];}catch{return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753['ImageUploadStatusType'][_0x1c7f38(0x33f)]));}return new Promise((_0x224cb5,_0x136da2)=>{const _0x1d9b8b=_0x1c7f38;let _0x4da59e=new FileReader();_0x4da59e[_0x1d9b8b(0x40a)](_0x4ee011),_0x4da59e[_0x1d9b8b(0x157)]=_0x5375da=>{const _0x18f125=_0x1d9b8b;var _0x3165c2;let _0x43c00d=(_0x3165c2=_0x5375da[_0x18f125(0x216)])==null?void 0x0:_0x3165c2[_0x18f125(0x130)];if(_0x43c00d==null){this[_0x18f125(0xea)](),_0x136da2(Error(_0x47f753[_0x18f125(0x3f8)][_0x18f125(0x33f)]));return;}_0x224cb5({'imageId':(0x0,_0x47f753[_0x18f125(0x404)])(0x6),'imageSourceType':_0x47f753['ImageSourceType'][_0x18f125(0x403)],'source':_0x35da22,'base64Cache':_0x43c00d,'status':_0x47f753['ImageUploadStatusType'][_0x18f125(0x3a6)]}),this[_0x18f125(0xea)]();};});}[_0x27b931(0x33c)](){const _0x1b0cbe=_0x27b931;var _0x101ce9;let _0x3c955e=this[_0x1b0cbe(0x228)][_0x1b0cbe(0x190)](_0x3c17be);return(_0x101ce9=_0x3c955e==null?void 0x0:_0x3c955e[_0x1b0cbe(0x2c4)])==null?_0x1b0cbe(0x213):_0x101ce9;}[_0x27b931(0x1b4)](){const _0xd478d8=_0x27b931;var _0x3be4bf;let _0x1973de=this[_0xd478d8(0x228)][_0xd478d8(0x190)](_0x3c17be);return(_0x3be4bf=_0x1973de==null?void 0x0:_0x1973de['signUrlServerUrl'])==null?_0xd478d8(0x15a):_0x3be4bf;}[_0x27b931(0x1cb)](){const _0x1c104a=_0x27b931;var _0x40c3ed;let _0x7ce1fb=this[_0x1c104a(0x228)][_0x1c104a(0x190)](_0x3c17be);return(_0x40c3ed=_0x7ce1fb==null?void 0x0:_0x7ce1fb[_0x1c104a(0x32d)])==null?location[_0x1c104a(0x1a3)]:_0x40c3ed;}['_replaceFileID'](_0x20b2c8,_0x1f75a9){const _0x4e0600=_0x27b931;return _0x20b2c8['replace'](_0x4e0600(0x23b),_0x1f75a9);}[_0x27b931(0xea)](){const _0x4c0ac6=_0x27b931;--this[_0x4c0ac6(0x376)],this['_change$']['next'](this[_0x4c0ac6(0x376)]);}};_0x48896b=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0x48896b);let _0x113be6=class{constructor(_0x10f987,_0x540b2b){const _0xa77bc4=_0x27b931;this['_configService']=_0x10f987,this[_0xa77bc4(0x345)]=_0x540b2b;}[_0x27b931(0xe2)](){const _0x4ca23f=_0x27b931;var _0x2a2d3b;let _0x2304e8=this[_0x4ca23f(0x228)][_0x4ca23f(0x190)](_0x3c17be);return(_0x2a2d3b=_0x2304e8==null?void 0x0:_0x2304e8[_0x4ca23f(0x1c1)])==null?_0x4ca23f(0x2d4):_0x2a2d3b;}async[_0x27b931(0x3c5)](_0x4c2208){const _0x5a37cc=_0x27b931;let _0x66d711=this[_0x5a37cc(0xe2)]()+_0x5a37cc(0x241);return{'list':[{'title':_0x5a37cc(0x34d),'mentions':(await this['_HTTPService'][_0x5a37cc(0x1ad)](_0x66d711,{'params':{'objectID':_0x4c2208[_0x5a37cc(0x320)],'unitID':_0x4c2208[_0x5a37cc(0x320)]}}))[_0x5a37cc(0x2d9)][_0x5a37cc(0x19a)][_0x5a37cc(0x394)](_0x41f2d3=>({'objectId':_0x41f2d3['id'],'name':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'metadata':{'icon':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x287)]},'label':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'objectType':_0x47f753['MentionType'][_0x5a37cc(0x3d4)]})),'metadata':{},'type':_0x47f753[_0x5a37cc(0x1c9)][_0x5a37cc(0x3d4)]}]};}};_0x113be6=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x113be6);let _0x369c1a=class extends _0x47f753['RxDisposable']{constructor(_0x51c59b,_0x3bd0a0,_0x1bb048,_0xf3743a,_0x5aabd0){const _0x29c184=_0x27b931;super(),this[_0x29c184(0x2fe)]=_0x51c59b,this[_0x29c184(0x37d)]=_0x3bd0a0,this[_0x29c184(0x373)]=_0x1bb048,this['_collaborationSessionService']=_0xf3743a,this['_collaborationUIEventService']=_0x5aabd0,this[_0x29c184(0x15d)](),this['_initCloseConn']();}[_0x27b931(0x21b)](){const _0x294151=_0x27b931;let _0x523644=async _0x20287b=>{const _0x33ee3a=_0x1420;(await this[_0x33ee3a(0x368)][_0x33ee3a(0x410)](_0x20287b))[_0x33ee3a(0x2ef)][_0x33ee3a(0x11f)]((0x0,_0x5ba228[_0x33ee3a(0x12e)])(_0x2c1a75=>_0x2c1a75[_0x33ee3a(0x1a4)]===_0x149d12['CollaborationEvent'][_0x33ee3a(0x2ae)]),(0x0,_0x5ba228[_0x33ee3a(0xdc)])(this[_0x33ee3a(0x18b)]))[_0x33ee3a(0x38e)](_0x57c193=>{const _0xca1d3f=_0x33ee3a;let {reason:_0x1a00e9}=_0x57c193[_0xca1d3f(0x401)];this[_0xca1d3f(0x11a)]['emitEvent']({'id':_0xca1d3f(0x352),'data':_0x1a00e9}),this[_0xca1d3f(0x373)][_0xca1d3f(0x1a8)](new _0x1e2709['WorkbookEditablePermission'](_0x20287b)['id'],!0x1),this[_0xca1d3f(0x368)]['closeSession'](_0x20287b);});};(0x0,_0x470009[_0x294151(0x407)])(this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753['UniverInstanceType'][_0x294151(0x239)]),this[_0x294151(0x37d)]['getTypeOfUnitAdded$'](_0x47f753[_0x294151(0x3fc)][_0x294151(0x243)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x41d)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x313)]))[_0x294151(0x11f)]((0x0,_0x5ba228[_0x294151(0x394)])(_0x3433a0=>_0x3433a0[_0x294151(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x20831a=>!(0x0,_0x47f753[_0x294151(0x3ff)])(_0x20831a)),(0x0,_0x5ba228[_0x294151(0xdc)])(this['dispose$']))['subscribe'](_0x221744=>{_0x523644(_0x221744);});}[_0x27b931(0x15d)](){const _0x1a2606=_0x27b931;let _0x34d0b6=async _0x2d8032=>{const _0x4af072=_0x1420;let _0x5e3576=await this[_0x4af072(0x368)]['requireSession'](_0x2d8032),_0x10189c=this[_0x4af072(0x2fe)][_0x4af072(0x1ad)](_0x1e2709['SheetPermissionInitController']);_0x5e3576[_0x4af072(0x2ef)][_0x4af072(0x11f)]((0x0,_0x5ba228[_0x4af072(0x12e)])(_0x56d278=>_0x56d278[_0x4af072(0x1a4)]===_0x149d12['CollaborationEvent'][_0x4af072(0x12d)]),(0x0,_0x5ba228[_0x4af072(0xdc)])(this['dispose$']))[_0x4af072(0x38e)](_0x1e0a97=>{const _0x2e3497=_0x4af072;let {objectId:_0x4186b2}=_0x1e0a97[_0x2e3497(0x401)];_0x4186b2===_0x2d8032?_0x10189c['initWorkbookPermissionChange'](_0x2d8032):_0x10189c[_0x2e3497(0x232)](_0x2d8032,_0x4186b2);});};(0x0,_0x470009[_0x1a2606(0x407)])(this[_0x1a2606(0x37d)][_0x1a2606(0x3d6)](_0x47f753[_0x1a2606(0x3fc)]['UNIVER_SHEET']))[_0x1a2606(0x11f)]((0x0,_0x5ba228['map'])(_0x175680=>_0x175680[_0x1a2606(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x2668c6=>!(0x0,_0x47f753[_0x1a2606(0x3ff)])(_0x2668c6)),(0x0,_0x5ba228[_0x1a2606(0xdc)])(this[_0x1a2606(0x18b)]))[_0x1a2606(0x38e)](_0x19e70f=>{_0x34d0b6(_0x19e70f);});}};_0x369c1a=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x2,_0x47f753['IPermissionService']),_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0xc5d6a5)),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x2a71d9))],_0x369c1a);let _0x51c4c2=class{constructor(_0x247f85,_0x396830){const _0x332c11=_0x27b931;this['_configService']=_0x247f85,this[_0x332c11(0x3d8)]=_0x396830;}async[_0x27b931(0x366)](_0x27afab,_0x4484c7){const _0x574cdd=_0x27b931;var _0xbe6dc8;let {unitID:_0x5bd64c,type:_0x29b948,revision:_0x6510ef=0x0}=_0x4484c7,_0x2fc9d6=this[_0x574cdd(0x35b)]()+'/'+_0x29b948+_0x574cdd(0x288)+_0x5bd64c+_0x574cdd(0x38f)+_0x6510ef,_0x3afc3e=(await this[_0x574cdd(0x3d8)]['get'](_0x2fc9d6))[_0x574cdd(0x2d9)],_0x277967=(_0xbe6dc8=_0x3afc3e[_0x574cdd(0x324)])==null?void 0x0:_0xbe6dc8[_0x574cdd(0x1ae)];if(_0x277967){let _0x2a50a5=_0x277967==null?void 0x0:_0x277967['originalMeta'];_0x277967[_0x574cdd(0x29b)]=_0x149d12['textEncoder'][_0x574cdd(0x2f4)]((0x0,_0x149d12[_0x574cdd(0x331)])(_0x2a50a5)),Object[_0x574cdd(0x315)](_0x277967[_0x574cdd(0x111)])[_0x574cdd(0x302)](([,_0x4a14f3])=>{const _0x584e30=_0x574cdd;let _0x48f85d=_0x4a14f3['originalMeta'];_0x4a14f3['originalMeta']=_0x149d12[_0x584e30(0x26d)]['encode']((0x0,_0x149d12['b64DecodeUnicode'])(_0x48f85d));});}return _0x3afc3e;}async[_0x27b931(0x398)](_0x545a3d,_0x5b13ec){const _0x34cd44=_0x27b931;let {unitID:_0x202a09,type:_0x1738f8,blockID:_0x2a9f61}=_0x5b13ec,_0x1b6820=this[_0x34cd44(0x41e)]()+'/'+_0x1738f8+_0x34cd44(0x288)+_0x202a09+_0x34cd44(0x2f6)+_0x2a9f61;return(await this[_0x34cd44(0x3d8)]['get'](_0x1b6820))[_0x34cd44(0x2d9)];}async[_0x27b931(0x314)](_0x2752bc,_0x454f3f){const _0x4c59b0=_0x27b931;let {unitID:_0x434e91,type:_0x2b50bf,blockID:_0x3650df}=_0x454f3f,_0x4dc9eb=this[_0x4c59b0(0x41e)]()+_0x4c59b0(0x2f6)+_0x2b50bf+'/unit/'+_0x434e91+_0x4c59b0(0x2f6)+_0x3650df;return(await this[_0x4c59b0(0x3d8)][_0x4c59b0(0x1ad)](_0x4dc9eb))[_0x4c59b0(0x2d9)];}async['fetchMissingChangesets'](_0x54f2af,_0x157710){const _0x467a7f=_0x27b931;let {unitID:_0x58d878,type:_0x255f9d,from:_0x253598,to:_0x33ff57}=_0x157710,_0x356cc9=this[_0x467a7f(0x41e)]()+'/'+_0x255f9d+_0x467a7f(0x288)+_0x58d878+_0x467a7f(0x31d)+_0x253598+'&to='+_0x33ff57;return(await this[_0x467a7f(0x3d8)][_0x467a7f(0x1ad)](_0x356cc9))[_0x467a7f(0x2d9)];}['getSnapshotAPIPath'](){const _0x3106d1=_0x27b931;var _0x1e25c3;return(_0x1e25c3=this[_0x3106d1(0x228)][_0x3106d1(0x190)](_0x3106d1(0x1b0)))==null?this[_0x3106d1(0x41e)]():_0x1e25c3;}[_0x27b931(0x41e)](){const _0x10832f=_0x27b931;var _0x4408cc;let _0x3d6d25=this['_configService'][_0x10832f(0x190)](_0x3c17be);return(_0x4408cc=_0x3d6d25==null?void 0x0:_0x3d6d25[_0x10832f(0x3a2)])==null?_0x10832f(0x247):_0x4408cc;}async[_0x27b931(0x121)](_0x627f93,_0x1a74b5){const _0x1b9cc4=_0x27b931;let _0x36eb1d='/universer-api/snapshot/'+_0x1a74b5[_0x1b9cc4(0x2af)]+_0x1b9cc4(0x288)+_0x1a74b5[_0x1b9cc4(0x2ea)]+_0x1b9cc4(0x16f);return(await this['_httpService'][_0x1b9cc4(0x1ad)](_0x36eb1d,{'params':{'resourceId':JSON[_0x1b9cc4(0x3e5)](_0x1a74b5[_0x1b9cc4(0x24f)])}}))[_0x1b9cc4(0x2d9)];}[_0x27b931(0x277)](){const _0x2c08e2=_0x27b931;throw Error(_0x2c08e2(0x385));}[_0x27b931(0x104)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x186677=_0x27b931;throw Error(_0x186677(0x385));}[_0x27b931(0x2f5)](){const _0x2b401f=_0x27b931;throw Error(_0x2b401f(0x385));}[_0x27b931(0x3e3)](){const _0x59ffa4=_0x27b931;throw Error(_0x59ffa4(0x385));}['getLatestCsReqIdBySid'](){const _0x1f1004=_0x27b931;throw Error(_0x1f1004(0x385));}};_0x51c4c2=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x51c4c2);let _0x10a064=class extends _0x47f753[_0x27b931(0x344)]{constructor(_0x241591,_0xe3db0,_0x2b2004,_0x412ea1,_0x598113){const _0x3935f4=_0x27b931;super(_0x241591,_0xe3db0,_0x2b2004),this['_transformService']=_0x412ea1,this[_0x3935f4(0x1a1)]=_0x598113;}[_0x27b931(0x135)](_0x431723,_0x102200){const _0x5349aa=_0x27b931;let _0x1c1ec7=this[_0x5349aa(0x29e)](_0x431723);if(_0x1c1ec7)try{let _0x5af08c=this[_0x5349aa(0x18a)](_0x1c1ec7,_0x102200);this[_0x5349aa(0x1dd)](_0x431723,_0x5af08c);}catch(_0x30c705){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x5349aa(0x2f9),_0x30c705),this[_0x5349aa(0x3ef)](_0x431723);}let _0x398252=this['_getRedoStack'](_0x431723);if(_0x398252)try{let _0x1cf9e2=this[_0x5349aa(0x18a)](_0x398252,_0x102200);this[_0x5349aa(0x1ce)](_0x431723,_0x1cf9e2);}catch(_0x3f8a44){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x3f8a44),this[_0x5349aa(0x3f0)](_0x431723);}}[_0x27b931(0x3ef)](_0x2b222d){const _0x3d34b8=_0x27b931;let _0x15c268=this['_getUndoStack'](_0x2b222d);_0x15c268&&(_0x15c268[_0x3d34b8(0x415)]=0x0,this[_0x3d34b8(0x172)]());}[_0x27b931(0x3f0)](_0x231cb4){const _0xa5be6b=_0x27b931;let _0x2cb8e1=this[_0xa5be6b(0x1e5)](_0x231cb4);_0x2cb8e1&&(_0x2cb8e1[_0xa5be6b(0x415)]=0x0,this[_0xa5be6b(0x172)]());}[_0x27b931(0x1dd)](_0x595f50,_0x531b3e){const _0x283fcf=_0x27b931;this[_0x283fcf(0x26f)][_0x283fcf(0xf6)](_0x595f50,_0x531b3e),this['_updateStatus']();}[_0x27b931(0x1ce)](_0x20e304,_0x5bda7a){const _0x4bf43a=_0x27b931;this[_0x4bf43a(0x3bc)][_0x4bf43a(0xf6)](_0x20e304,_0x5bda7a),this[_0x4bf43a(0x172)]();}['_transformStack'](_0x66f137,_0x57edff){const _0x5526a6=_0x27b931;let _0x469575=[],_0x2020f8=_0x57edff,_0x4ffed9=_0x57edff;for(let _0x46a03f=_0x66f137[_0x5526a6(0x415)]-0x1;_0x46a03f>=0x0;_0x46a03f--){let {unitID:_0x4a31d4,undoMutations:_0x5aeaae,redoMutations:_0x2d791e}=_0x66f137[_0x46a03f],_0xc8c51b=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x2020f8,_0x5aeaae),_0x881ac6=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x4ffed9,_0x2d791e);if((0x0,_0x149d12[_0x5526a6(0x29d)])(_0xc8c51b)||(0x0,_0x149d12[_0x5526a6(0x29d)])(_0x881ac6)){this[_0x5526a6(0x1a1)][_0x5526a6(0x294)](_0x5526a6(0x2f9),_0x5526a6(0x3d1),_0xc8c51b,_0x881ac6);break;}_0x2020f8=_0xc8c51b['c1Prime'],_0x4ffed9=_0x881ac6[_0x5526a6(0x2b1)],_0x469575[_0x5526a6(0x30b)]({'unitID':_0x4a31d4,'undoMutations':_0xc8c51b[_0x5526a6(0x3b0)],'redoMutations':_0x881ac6[_0x5526a6(0x3b0)]});}return _0x469575[_0x5526a6(0x214)]();}};_0x10a064=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x2,_0x47f753['IContextService']),_0x2af294(0x3,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x4,_0x47f753[_0x27b931(0x370)])],_0x10a064);let _0x45d7d9=class extends _0x47f753[_0x27b931(0x375)]{constructor(_0xb50407=_0xa759f3,_0x51a7c7,_0x534e2f,_0x43085b){const _0x2e2ed8=_0x27b931;super(),this[_0x2e2ed8(0x155)]=_0xb50407,this['_logService']=_0x51a7c7,this[_0x2e2ed8(0x2fe)]=_0x534e2f,this[_0x2e2ed8(0x228)]=_0x43085b;let {..._0x3d5207}=(0x0,_0x47f753[_0x2e2ed8(0x407)])({},_0xa759f3,this['_config']);if(!_0x3d5207[_0x2e2ed8(0x39b)])throw Error(_0x2e2ed8(0x120));this[_0x2e2ed8(0x155)]=_0x3d5207,this['_configService'][_0x2e2ed8(0x31c)](_0x3c17be,_0x3d5207);}['onStarting'](){const _0xd8e49=_0x27b931;this[_0xd8e49(0x413)](),this[_0xd8e49(0x1fe)]();}[_0x27b931(0x413)](){const _0x4a5a8b=_0x27b931;var _0x25e736,_0x2d400d;this['_injector'][_0x4a5a8b(0xff)](_0x47f753['IUndoRedoService'])&&this['_logService'][_0x4a5a8b(0x294)]('[UniverCollaborationClientPlugin]',_0x4a5a8b(0xda));let _0x271fb1=(0x0,_0x47f753[_0x4a5a8b(0x117)])([[_0x47f753['IUndoRedoService'],{'useClass':_0x10a064}],[_0x1e5735,{'useValue':_0x122337()}],[_0xc5d6a5],[_0x541d7d],[_0x2e077e],[_0x149557],[_0x1a45aa],[_0x101a15],[_0x369c1a],[_0x2a71d9],[_0x5cf05d],[_0x2bd014,{'useClass':this[_0x4a5a8b(0x155)][_0x4a5a8b(0x39b)]}],[_0x149d12[_0x4a5a8b(0x387)],{'useClass':_0x51c4c2}],[_0x47f753[_0x4a5a8b(0x238)],{'useClass':_0x3d6a88}],[_0x47f753[_0x4a5a8b(0x350)],{'useClass':_0x48896b}],[_0x4f7a6f,{'useClass':_0xeb1ef2}],[_0x47f753[_0x4a5a8b(0x2c5)],{'useClass':_0x113be6}],[_0x203f75],[_0x43ec5e]],(_0x25e736=this[_0x4a5a8b(0x155)])==null?void 0x0:_0x25e736[_0x4a5a8b(0x182)]);if(!((_0x2d400d=this['_config'])!=null&&_0x2d400d[_0x4a5a8b(0x22b)])){let _0x2c62e4=_0x271fb1[_0x4a5a8b(0x348)](([_0x31ce5f])=>_0x31ce5f===_0x435069);_0x2c62e4!==-0x1&&_0x271fb1[_0x4a5a8b(0x3ea)](_0x2c62e4,0x1);}(0x0,_0x47f753[_0x4a5a8b(0x2a0)])(this[_0x4a5a8b(0x2fe)],_0x271fb1);}[_0x27b931(0x1fe)](){const _0x42a48f=_0x27b931;var _0x6fd7dd,_0x5ec58c;if(this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x8f2da5[_0x42a48f(0x2e6)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x8f2da5[_0x42a48f(0x1a5)])({'maxParallel':0x6})}),!((_0x6fd7dd=this['_config'])!=null&&_0x6fd7dd[_0x42a48f(0x2ce)])){var _0x57e086;(_0x57e086=this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x419224,_0x47f753[_0x42a48f(0x402)][_0x42a48f(0x210)]))==null||_0x57e086[_0x42a48f(0x2bd)]();}(_0x5ec58c=this[_0x42a48f(0x155)])!=null&&_0x5ec58c[_0x42a48f(0x122)]&&(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x149557]]),(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x1a45aa],[_0x203f75],[_0x369c1a]]);}};_0x2dd74e(_0x45d7d9,_0x27b931(0x2f3),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x2dd74e(_0x45d7d9,_0x27b931(0x3de),_0x58d19e),_0x2dd74e(_0x45d7d9,_0x27b931(0x227),_0x4c6d06),_0x45d7d9=_0x1fb4c2([(0x0,_0x47f753['DependentOn'])(_0x4326e6[_0x27b931(0x265)],_0x149d12['UniverCollaborationPlugin'],_0x8f2da5[_0x27b931(0x160)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)])],_0x45d7d9),_0x79aec8[_0x27b931(0x35a)]=_0x46b0a8,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x36f),{'enumerable':!0x0,'get':function(){return _0x3d6a88;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x1f4),{'enumerable':!0x0,'get':function(){return _0x42dff3;}}),Object[_0x27b931(0x269)](_0x79aec8,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return _0x15bd87;}}),Object['defineProperty'](_0x79aec8,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5c3e77;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x332),{'enumerable':!0x0,'get':function(){return _0x4b522f;}}),_0x79aec8[_0x27b931(0x422)]=_0x3c17be,Object[_0x27b931(0x269)](_0x79aec8,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0xeb1ef2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x285),{'enumerable':!0x0,'get':function(){return _0x203f75;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x198),{'enumerable':!0x0,'get':function(){return _0x25f5ac;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0xdf),{'enumerable':!0x0,'get':function(){return _0x48896b;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x377),{'enumerable':!0x0,'get':function(){return _0x4ea072;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x374),{'enumerable':!0x0,'get':function(){return _0xc5d6a5;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x131),{'enumerable':!0x0,'get':function(){return _0x1bc98c;}}),_0x79aec8[_0x27b931(0x17f)]=_0xdb2824,_0x79aec8[_0x27b931(0x312)]=_0x204edc,_0x79aec8[_0x27b931(0x162)]=_0x2a71d9,Object[_0x27b931(0x269)](_0x79aec8,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x10a064;}}),_0x79aec8[_0x27b931(0x38a)]=_0x101a15,Object['defineProperty'](_0x79aec8,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x41f3d6;}}),_0x79aec8[_0x27b931(0x12b)]=_0x5f4f64,_0x79aec8[_0x27b931(0x1a9)]=_0x27b931(0x2be),_0x79aec8[_0x27b931(0x197)]='/universer-api/user/session-ticket',Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd3),{'enumerable':!0x0,'get':function(){return _0x5cf05d;}}),Object['defineProperty'](_0x79aec8,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x9eef43;}}),Object[_0x27b931(0x269)](_0x79aec8,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x3b1a33;}}),_0x79aec8[_0x27b931(0x10d)]='HEARTBEAT_INTERVAL',_0x79aec8[_0x27b931(0x1d7)]=_0x27b931(0xe4),_0x79aec8[_0x27b931(0x137)]=_0x4f7a6f,_0x79aec8['ICollaborationClientAdapterService']=_0x1e5735,_0x79aec8['ICollaborationSocketService']=_0x2bd014,_0x79aec8[_0x27b931(0x41b)]=_0x419224,_0x79aec8[_0x27b931(0x3a1)]=_0x4501c7,_0x79aec8[_0x27b931(0x169)]=_0x435069,_0x79aec8[_0x27b931(0x28c)]=0x3e8,_0x79aec8[_0x27b931(0x107)]=_0x27b931(0x28c),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3dd),{'enumerable':!0x0,'get':function(){return _0x541d7d;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3e7),{'enumerable':!0x0,'get':function(){return _0x113be6;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x3a3),{'enumerable':!0x0,'get':function(){return _0x58261a;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x28b),{'enumerable':!0x0,'get':function(){return _0x467875;}}),_0x79aec8[_0x27b931(0x3b7)]=_0x27b931(0x36e),_0x79aec8[_0x27b931(0x3ba)]=_0x27b931(0x30d),_0x79aec8[_0x27b931(0x30f)]=_0x1e08f9,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x186),{'enumerable':!0x0,'get':function(){return _0x151d10;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x22e),{'enumerable':!0x0,'get':function(){return _0x2e077e;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x26e),{'enumerable':!0x0,'get':function(){return _0x292824;}}),Object[_0x27b931(0x269)](_0x79aec8,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x51c4c2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xca),{'enumerable':!0x0,'get':function(){return _0x50a3a4;}}),_0x79aec8[_0x27b931(0x23d)]=_0x709438,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd5),{'enumerable':!0x0,'get':function(){return _0x45d7d9;}}),_0x79aec8[_0x27b931(0x132)]=_0x122337,_0x79aec8['deserializeToCombResponse']=_0x44e4df,_0x79aec8[_0x27b931(0x1ac)]=_0xe42769,_0x79aec8[_0x27b931(0x19b)]=_0x5db7a4;}));
|
|
1
|
+
function _0x4f14(_0x1ee2d2,_0x5b92a7){_0x1ee2d2=_0x1ee2d2-0xf5;const _0x420b9a=_0x420b();let _0x4f1497=_0x420b9a[_0x1ee2d2];return _0x4f1497;}function _0x420b(){const _0x266d0d=['aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','_onRemoteRetry','getTypeOfUnitDisposed$','SheetCollaborationEntity','get','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','isSafeInteger','enableAuthServer','generateRandomId','_transformService','_sendingTimer','offline','crypto','getCollabEntity$','map','mutations','_getSignURL','key','setWaitCount','docStateChange$','[CollaborationSessionService]:\x20socket\x20error','OPTIONAL','_sheetTransformSelectionsService','MoveSlidePageMutation','socket$','IUndoRedoService','onTransformRemoteChangesetByIMECache','tagLength','CollaborationUIEventService','name','result','retryConnectingTimer','state','reqId','_config','append','CollaborationSocketService','unitInfo$','updatePermissionPoint','LocalUndoRedoService','updateMember','_remoteChangesetQueue','CommandType','_sessionStatus$','BaseCollaborationEntity','data','_unitInfo$','NOT_COLLAB','_createHandler','sendHeartbeatTimer','object','/allowed','RxDisposable','event$','shouldCloseConn','transformUndoRedo','_sessions','\x20in\x20_schedule.','ICollaborationSocketService','553732sGGhEP','SnapshotServerOverHTTPService','startTime','loadDoc','_instanceService','getImageSourceCache','@univerjs/protocol','attachment','UniverCollaborationPlugin','registerHTTPInterceptor','fetchThroughInterceptors','removeMember','loadSheet','_tryEnsureSocket','equals','sessionStatus$','startsWith','collaboration-client.auth.needGotoLoginAlert','_socketChannels','fromCollab','_onConnectionOpen','deserializeToCombResponse','CombCmd','onTransformIME','setCurrentUser','retryCount','routeKey','_onRemoteChangeset','_initDependencies','_joinRoom','duration','positive\x20integer\x20expected,\x20got\x20','has','transformMutationsWithChangeset','_tryReconnect','_unlockTransition','_waitCount','/universer-api/comb','getCurrentUser','\x20to\x20','not_collab','requireSession','uploadFileServerUrl','ILogService','crypto.getRandomValues\x20must\x20be\x20defined','IPermissionService','_isPermissionRej','Tools','UNIVER_SLIDE','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','values','rxjs/operators','updateCollaborator','EnsureSlideMasterPageMutation','submit\x20changeset\x20error!','from','varSizeNonce','toRemote','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitStatus$','getSheetId','SheetPermissionInitController','_members$','_state$','disableLocalCache','_getRedoStack','MentionType','LOCAL_CACHE_INTERVAL','sequenceExecute','_collaborationUIEventService','UniverProCollaboration','_logService','DEFAULT_WS_SESSION_TICKET_URL','_memberService','HTTPRequest','params','unitId\x20is\x20not\x20found','__splitChunk__','BoardCollaborationEntity','loadSlide','_queuedRemoteChangesets','_roomCreated$','getCurrentRevOfUnit','RECV','/rev/','prototype','b64DecodeUnicode','isView','localUnitId','SheetsSelectionsService','PERSON','_compressMutationService','/collaborator','objectType','operators','/object/','reconnect','_toggleOnline','selections','cfgEnableObjInherit','_socketService','_collaborationPaused','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onMissingChangesets','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','byteLength','then','UniverSheets','catch','SUBMIT_CHANGESET_TIMEOUT','aes/pkcs7:\x20wrong\x20padding','getRoom','setShowComponents','_initMergeInterceptor','JOIN_ROOM_FAILED','22gkXhJH','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_syncEditingCollabCursor','pipe','liveShareOperation','disablePadding','createUniverCollaborationAdapter','_toggleOffline','loadBoard','iterator','JOINING','COMPRESS_MUTATION_SEND','getActiveSheet','_exhaustRemoteChangesetQueue','@univerjs/drawing','init','[CollaborationSessionService]','Wrong\x20sbox\x20length','onLocalMutation','_eventService','onTransformState','createInstance','origin','UPDATE_PERMISSION_OBJ','buffer','/fetchmissing?from=','_showConflictNotification','_substituteRedoStack','session.room-full','_applyRemoteChangeset','FAIL','@univerjs-pro/collaboration-client','HTTPService','LIVESHARE_FETCH_OPERATIONS','onSendChangeset','UniverNetwork','setCfgEnableObjInherit','resolve','status','UniverProSlides','_collaborationTimeoutTimer','merge','_executeRemoteChangeset','snapshot','_onFetchMissResult','UNIVER_DOC','_doCreateSocket','ICollaborationClientAdapterService','_upload','[PendingState]:\x20received\x20rejection.','CollaborationUIEventId','isTransformMutationsWithChangesetSuccess','_lockTransition','OTHER_CLIENT_EDITING','joinRsp','find','asObservable','file','sid','toggleOnline','6530964fPKuGI','CollaborationAttachmentIoService','UniverProtocol','min','_getSocketChannel','\x20of\x20length\x20','&assign=','roomInfos','unit','rxjs','/role','getUploadOptions','post','unitLoaded$','retryConnectingInterval','_collaborationSessionService','missingChangesets','deleteCollaborator','\x0aCurrent:\x20','/new_changes','size','_socket','hasOwnProperty','156429QznBBI','getCurrentSelections','Inject','onSyncEditingCollabCursor','\x20-\x20','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_rescheduleHeartbeat','commentUpdateEvent','ReplaySubject','UniverInstanceType','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','Rectangle','ILocalCacheService','push','encrypt','[CollaborationEntity]','_startTelemetryCollaborationNewChangeset','JOIN','ICommandService','_singleActiveUnitService','UNIVER_COLLABORATION_CLIENT_PLUGIN','unitId','amd','forEach','_revisionService','onTransformSelections','1031390ZGqope','/-/object/list','_emitMembers','assign','&source=','changeset','_resendTimeout','state$','ConflictState','AwaitingState','_pendingSessions','unitID','ImageUploadStatusType','updatePermissionObjEvent','BYTES_PER_ELEMENT','_getSendChangesetTimeout','synced','isInternalEditorID','_configService','originalMeta','@univerjs-pro/slides','saveAttachment','every','_getUploadFileURL','onTransformRemoteChangesetByStateCache','accept','UNISCRIPT_RUN','PENDING','resolveUnit','href','_acknowledgedAwaitingRevision','_telemetryService','DocStateChangeManagerService','_createSession','delay','textEncoder','range','COMPRESS_MUTATION_APPLY','ERROR_IMAGE_TYPE','ONLINE','_transformRemoteChangesetByStateCache','method','upload','downloadEndpointUrl','univer-pro.collaboration-client.network-condition.service','LIVESHARE_OPERATION','hostname','_transformUndoredo','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disableEditing','PERMISSION_DENIED','AuthzIoHttpService','MUTATION','_replayCachedMutations','[CollaborationState]:\x20apply\x20error!','backupOfflineData','Disposable','toString','uniscriptRunEvent','blockRanges','allowed','_onUserJoin','reduce','_acknowledgeAwaitingIfReady','SetSelectionsOperation','toggleOffline','executeCommand','entityInit$','isTransformChangesetsSuccess','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unitType','close','UNIVER_SHEET','saveSnapshot','_undoRedoService','&to=','/unit/','SYNCED','_changesetReqId','JOIN_ROOM_NOT_EXISTS','max','getTime','JOIN_ROOM_PERMISSION_DENIED','serializeCombRequest','Module','resourceIDs','liveShareNewHost','FileSource','fetchMiss','_transformAndApplyRemoteChangeset','subarray','INGEST','SnapshotService','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','3irRMio','_handleRemoteChangesets','socketMessageSubscription','[CollaborationUndoRedoService]','Quantity','CHANGESET_SHOULD_RETRY','_HTTPService','subscribe','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','_initCloseConn','_permissionService','getUnitId','trim','output','session.room-cnt-exceeds','_createSocket','length','base-ui.attachment-io.service','ISnapshotServerService','UniverProCollaborationClient','_getAPIPrefixPath','authzUrl','error$','_onOffline','memberID','mergeOverrideWithDependencies','_acknowledgeAwaiting','_initRequestHeader','MentionIoHttpService','socket\x20close','m2Prime','_changesetSessionId','_stopTelemetryCollaborationNewChangeset','emitEvent','clear','rev','now','/block/','createSocket','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_scheduleCollaborationTimeoutTimer','_sessionChannels','encode','revision','charCodeAt','_substituteUndoStack','HEARTBEAT_INTERVAL_KEY','toLocal','HEARTBEAT','online$','LIVESHARE_TERMINATE','set','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20received\x20rejection.','1.0.0-alpha.7','UUID','_clearCollaborationTimeoutTimer','enableSingleActiveInstanceLock','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','toStringTag','_localeService','IContextService','patch','batchAllowed','dispose','floor','loadOfflineData','/universer-api/snapshot/','DocCollaborationEntity','getUnit','collabWebSocketUrl','title','_onRecvEvent','CompressMutationService','FETCH_MISSING','HEARTBEAT_INTERVAL','IMentionIOService','appendMutation','onlyLocal','SUBMIT_CHANGESET','loadBase','_incrementRevisionNumber','SOCKET_FAILED','collaboration-client.config','candidateSocket','_snapshotService','univer-pro.collaboration-client.single-active-unit-service','_roomMembers','status$','SessionStatus','src','baseRev','_clearHeartbeatTimer','?size=','debug','objects','COLLABORATION_ENDPOINT_INVALID','error','SUCCUSS','[OfflineState]:\x20received\x20acknowledgement.','onMissedChangesetFetched','putCollaborators','Optional','_updateLocalCache','SHOULD_CLOSE_CONN','invalid\x20output,\x20must\x20be\x20aligned','eventID','SOCKET_FAILED_RETRY','_clearTimeoutTimer','@univerjs/sheets','socket\x20open.','changesets','_scheduleCompleteTimestamp','NO_OTHER_CLIENTS_EDITING','firstValueFrom','_initUnitPermissionChange','UniverCore','_isEchoedAwaitingChangeset','_decreaseWaiting','userID','ISocketService','toDisposable','createCollaborator','isArray','_transformStateCache','onRemoteRetry','requestParams','_updateState','MemberService','_maxTotalRetryTimeout','_hasSessionsForEndpoint','/-/object/-/batch_allowed','UserManagerService','onCommentUpdate','getImage','SyncedState','EmptyMutationInfo','URL','target','version','number\x20expected,\x20got\x20','USERS_LEAVE','CLOSE_ROOM','SheetTransformSelectionsService','focused$','onRemoteAck','LocaleService','1yUjUBm','/universer-api/file/{fileID}/sign-url','fromCharCode','disposeWithMe','getSheetBlock','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','update','FileId','interceptor','_getCurrentRevision','WorkbookEditablePermission','_getLoginPath','_createInitialState','list','_getUndoStack','getLocalCacheKey','_sender','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onCombEvent','ITransformService','incrementRevOfUnit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','closeSession','_handlerCallback','delete','onRemoteChangeset','getUnitType','type','_waitForHeartbeatResponse','permissionRejEvent','_unitLoaded$','updateSnapshot','_schedule','Failed\x20to\x20update\x20permission\x20point','nonceLength','@univerjs/telemetry','[DataLoaderService]','GLOBAL_ROOMS_CNT_EXCEEDS','addHandlerCallback','text-x','url','ImageSourceType','_removeRoom','findIndex','copyFileMeta','getCollabEntity','Plugin','_startCollaboration','UniverLicensePlugin','next','/universer-api/user/session-ticket','byteOffset','ITelemetryService','_onRemoteACK','unknown','getConfig','_listenToNetworkCondition','_init','getGlobalObject','_updateStatus','_adapter','filter','listCollaborators','call','_onConflict','539076YcxOJI','decorate','[PendingState]:\x20received\x20acknowledgement.','CollaborationEvent','@univerjs/network','columnGroups','isCompositionEnd','_commentUpdate$','_onJoinRoomEvent','_handler','_getDownloadEndpointURL','_getAPIPrefix','_transformIMECache','unsubscribe','AAD','JOIN_ROOM_FULL','collaboratorID','saveSheetBlock','collaborators','parseChangesetToProtocol','reject','_univerInstanceService','CHANGESET_REJ','socketService','IConfigService','UNIVER_BASE','constructor','shareReplay','subject','objectID','onMutationExecutedForCollab','CollaborationSession','RETRY_CONNECTING_MAX_COUNT_KEY','decrypt','ws://127.0.0.1:8000/universer-api/comb/connect','@univerjs/docs','_injector','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','getInterceptPoints','CollaborationSessionService','_awaitingChangeset','code','/universer-api/snapshot','getRandomValues','endsWith','_fetchMissChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','parseProtocolChangeset','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','string','AWAITING_WITH_PENDING','POST','_type','_localCacheService','Uint8Array','conflict','_socketMessageSubscription','UNIVER_BOARD','USERS_ENTER','close$','slice','HELLO','collaboration-client.local-cache-service','CHANGESET_ACK','_replaceFileID','infoRsp','refreshPermission','_resendTimer','save\x20fail\x20reason\x20is\x20','create','open$','ErrorCode','UniverProLicense','LIVESHARE_NEW_HOST','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','/object','stringify','1646330PobGQN','_identity','getDrawingImageAllowSize','number','_clearRedo','PERMISSION_REJ','getAllMembers','awaiting','function','InsertSheetMutation','sheets','[SyncedState]:\x20received\x20rejection.','CmdRspCode','getWorkbookSelections','c1Prime','Subject','RETRY_CONNECTING_MAX_COUNT','some','MSG_FOR_ERROR','fetch_missing','loadUnitOfRevision','defineProperty','_undoStacks','put','joinEvent','pending','newCsEvent','isTransformMutationsWithChangesetFailure','_httpService','\x0aAfter:\x20','SlideCollaborationEntity','ISingleActiveUnitService','resend','signUrlServerUrl','Univer','_entityInit$','_onUserLeave','UniverCollaborationClientPlugin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_transitionLocked','connection\x20error','_clearUndo','_imageSourceCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_members','workbook','CollaborationController','FETCH_MISS','NEW_CHANGESETS','parse','registerDependencies','onRemoteRej','DEFAULT_COLLAB_WEB_SOCKET_URL','add','transformChangesets','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_telemetryInfo','Injector','_sendHeartbeat','sessionStatus','getMember','UnitEmbedded','socketReady','includes','_change$','message$','pauseCollaboration','_status$','toPrimitive','_throwTelemetryCollaborationNewChangeset','_clearRetryConnectingTimer','members','action','/universer-api/stream/file/upload','__Key__','csShouldRetryEvent','FetchingMissState','exports','_docStateChangeManagerService','readAsDataURL','ERROR_IMAGE','localeService','saveChangeset','DataLoaderService','UniverTelemetry','IUniverInstanceService','stopTime','_getCtorByUniverInstanceType','OFFLINE','endpoint','RichTextEditingMutation','COMMENT_UPDATE','compose','BASE64','listRoles','_entities','createIdentifier','complete','_clearLocalCache','getValue','endpointKey','symbol','AddSlidePageMutation','CollaborationEntity','getSnapshotAPIPath','_getConfig','location','[FetchMissState]','_transformSelections','confirm','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_resendWithTimeout','fetching\x20missing\x20changesets\x20from\x20','[CollaborationSession]','cmd','touchDependencies','7geAyPJ','tables','splice','waitForRoom$','override','LEAVE','_createInitialStateImpl','UPDATE_CURSOR','DEFAULT_FILE_NAME','?url=','textRanges','fetchMissingChangesets','_snapshotServerService','_commentService','localCacheService','_state','_commandService','530600EBqpGV','dispose$','_event$','_clearScheduledTask','take','default','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','concatMap','CommentService','send','change$','AwaitingWithPendingState','/universer-api/authz','_userManagerService','CollaborativeUndoRedoService','getLatestCsReqIdBySid','actions','indexOf','snapshotServerUrl','collabSubmitChangesetUrl','_onMessage','_transformStack','x-univer-host','HEARTBEAT_TIMEOUT','session.room-permission-denied','cipher\x20output\x20not\x20supported','AWAITING','_onConnectionFailed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','timeoutTimer','session','_transformRemoteChangesetByIMECache','reverse','_collabSessionService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getFocusedUnit','_shouldReportTelemetry','body','takeUntil','250EyoZcz','mapDocumentTypeToUniverInstanceType','_checkMissing','resolveWithBasePath','RevisionService','_redoStacks','getUnitOnRev','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/universer-api/oidc/authpage','UnitStatus','headers','isPermissionRej','members$','_onLocalMutation','loadUnit','PSEUDO_FETCH_MISSING_RESULT','BehaviorSubject','awaiting_with_pending','transformStack\x20failed!','_pendingMutations','ThresholdInterceptorFactory',',\x20got:\x20','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','CONFLICT'];_0x420b=function(){return _0x266d0d;};return _0x420b();}(function(_0x16916a,_0xd400a4){const _0x1851e8=_0x4f14,_0x30e331=_0x16916a();while(!![]){try{const _0x530a80=-parseInt(_0x1851e8(0x138))/0x1*(parseInt(_0x1851e8(0x3a6))/0x2)+-parseInt(_0x1851e8(0x404))/0x3*(parseInt(_0x1851e8(0x2c6))/0x4)+parseInt(_0x1851e8(0x1c7))/0x5+parseInt(_0x1851e8(0x17a))/0x6*(-parseInt(_0x1851e8(0x23b))/0x7)+parseInt(_0x1851e8(0x24c))/0x8+parseInt(_0x1851e8(0x38c))/0x9*(-parseInt(_0x1851e8(0x273))/0xa)+parseInt(_0x1851e8(0x339))/0xb*(parseInt(_0x1851e8(0x375))/0xc);if(_0x530a80===_0xd400a4)break;else _0x30e331['push'](_0x30e331['shift']());}catch(_0x150b91){_0x30e331['push'](_0x30e331['shift']());}}}(_0x420b,0x4a9b2),function(_0x45f362,_0x3fb126){const _0x56bcfa=_0x4f14;typeof exports==_0x56bcfa(0x2bd)&&typeof module<'u'?_0x3fb126(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x56bcfa(0x3a2)]?define([_0x56bcfa(0x214),'@univerjs-pro/collaboration','@univerjs/core',_0x56bcfa(0x19d),_0x56bcfa(0x112),_0x56bcfa(0x37e),_0x56bcfa(0x2cc),_0x56bcfa(0x15c),_0x56bcfa(0x2f9),_0x56bcfa(0x3ba),_0x56bcfa(0x17e),'@univerjs-pro/license',_0x56bcfa(0x347)],_0x3fb126):(_0x45f362=typeof globalThis<'u'?globalThis:_0x45f362||self,_0x3fb126(_0x45f362[_0x56bcfa(0x417)]={},_0x45f362[_0x56bcfa(0x30c)],_0x45f362[_0x56bcfa(0x119)],_0x45f362['UniverDocs'],_0x45f362[_0x56bcfa(0x331)],_0x45f362[_0x56bcfa(0x37e)],_0x45f362[_0x56bcfa(0x377)],_0x45f362[_0x56bcfa(0x21b)],_0x45f362[_0x56bcfa(0x37e)][_0x56bcfa(0x324)],_0x45f362[_0x56bcfa(0x360)],_0x45f362[_0x56bcfa(0x35c)],_0x45f362[_0x56bcfa(0x1c2)],_0x45f362['UniverDrawing']));}(this,function(_0x3b1d70,_0x510a16,_0x54340d,_0x55be24,_0x2e3009,_0x501c4e,_0x3a112b,_0x15aa62,_0x572a50,_0xee09d9,_0x3c3932,_0x40a29c,_0x728a29){const _0x4afe6d=_0x4f14;Object[_0x4afe6d(0x1dc)](_0x3b1d70,Symbol[_0x4afe6d(0x440)],{'value':_0x4afe6d(0x3fa)});let _0x440361=_0x4afe6d(0xf8),_0x34589c={},_0x1ee18d=_0x4afe6d(0x19c),_0x3eabd5=0x4e20;function _0xc9b6fb(_0x5c53a7){const _0x266d2a=_0x4afe6d;return JSON['stringify'](_0x5c53a7)[_0x266d2a(0x414)];}function _0x14a224(_0x29b67b){'@babel/helpers - typeof';const _0x17d7a2=_0x4afe6d;return _0x14a224=typeof Symbol==_0x17d7a2(0x1cf)&&typeof Symbol[_0x17d7a2(0x342)]=='symbol'?function(_0x5d95af){return typeof _0x5d95af;}:function(_0x34b91a){const _0x2bee5a=_0x17d7a2;return _0x34b91a&&typeof Symbol==_0x2bee5a(0x1cf)&&_0x34b91a[_0x2bee5a(0x194)]===Symbol&&_0x34b91a!==Symbol[_0x2bee5a(0x31b)]?_0x2bee5a(0x22c):typeof _0x34b91a;},_0x14a224(_0x29b67b);}function _0xd2d388(_0x303d51,_0x244ff2){const _0x145ed2=_0x4afe6d;if(_0x14a224(_0x303d51)!=_0x145ed2(0x2bd)||!_0x303d51)return _0x303d51;var _0x40ae31=_0x303d51[Symbol[_0x145ed2(0x20b)]];if(_0x40ae31!==void 0x0){var _0x3c8039=_0x40ae31[_0x145ed2(0x178)](_0x303d51,_0x244ff2||_0x145ed2(0x251));if(_0x14a224(_0x3c8039)!=_0x145ed2(0x2bd))return _0x3c8039;throw TypeError(_0x145ed2(0x32c));}return(_0x244ff2==='string'?String:Number)(_0x303d51);}function _0x240203(_0x4d4513){const _0x19273e=_0x4afe6d;var _0x3aa7bd=_0xd2d388(_0x4d4513,'string');return _0x14a224(_0x3aa7bd)==_0x19273e(0x22c)?_0x3aa7bd:_0x3aa7bd+'';}function _0x1d93f6(_0x379bad,_0x2c3661,_0x1a0c56){const _0x34d65a=_0x4afe6d;return(_0x2c3661=_0x240203(_0x2c3661))in _0x379bad?Object[_0x34d65a(0x1dc)](_0x379bad,_0x2c3661,{'value':_0x1a0c56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x379bad[_0x2c3661]=_0x1a0c56,_0x379bad;}let _0x441a00=function(_0x426c8f){const _0x2c9b75=_0x4afe6d;return _0x426c8f[_0x2c9b75(0x36e)]='OTHER_CLIENT_EDITING',_0x426c8f[_0x2c9b75(0x3d8)]=_0x2c9b75(0x3d8),_0x426c8f[_0x2c9b75(0x28a)]=_0x2c9b75(0x28a),_0x426c8f[_0x2c9b75(0x133)]='CLOSE_ROOM',_0x426c8f['JOIN_ROOM_FAILED']=_0x2c9b75(0x338),_0x426c8f[_0x2c9b75(0x110)]=_0x2c9b75(0x110),_0x426c8f[_0x2c9b75(0xf7)]=_0x2c9b75(0xf7),_0x426c8f[_0x2c9b75(0x333)]=_0x2c9b75(0x333),_0x426c8f;}({});var _0x18b525=class{constructor(){const _0x22f4e2=_0x4afe6d;_0x1d93f6(this,'_event$',new _0x501c4e[(_0x22f4e2(0x1d6))]()),_0x1d93f6(this,_0x22f4e2(0x2c0),this[_0x22f4e2(0x24e)][_0x22f4e2(0x371)]());}['emitEvent'](_0x458b26){const _0x30c431=_0x4afe6d;this['_event$'][_0x30c431(0x16a)](_0x458b26);}},_0x24cd08=class{constructor(){const _0x48fb67=_0x4afe6d;_0x1d93f6(this,_0x48fb67(0x181),new _0x501c4e[(_0x48fb67(0x1d6))]()),_0x1d93f6(this,'commentUpdate$',this[_0x48fb67(0x181)][_0x48fb67(0x371)]());}['onCommentUpdate'](_0x53b1cb){const _0x30b35b=_0x4afe6d;this[_0x30b35b(0x181)][_0x30b35b(0x16a)](_0x53b1cb);}};function _0x5c2cf(_0x4fc6c7,_0x9fedf9){return function(_0x20baae,_0x4c18e3){_0x9fedf9(_0x20baae,_0x4c18e3,_0x4fc6c7);};}function _0x3bbaf2(_0x232fb2,_0x5b7c0a,_0x447da4,_0x4f9356){const _0x1d50a4=_0x4afe6d;var _0x302a23=arguments[_0x1d50a4(0x414)],_0x25b5e1=_0x302a23<0x3?_0x5b7c0a:_0x4f9356===null?_0x4f9356=Object['getOwnPropertyDescriptor'](_0x5b7c0a,_0x447da4):_0x4f9356,_0x3a6e86;if(typeof Reflect==_0x1d50a4(0x2bd)&&typeof Reflect[_0x1d50a4(0x17b)]==_0x1d50a4(0x1cf))_0x25b5e1=Reflect['decorate'](_0x232fb2,_0x5b7c0a,_0x447da4,_0x4f9356);else{for(var _0x2db7b5=_0x232fb2['length']-0x1;_0x2db7b5>=0x0;_0x2db7b5--)(_0x3a6e86=_0x232fb2[_0x2db7b5])&&(_0x25b5e1=(_0x302a23<0x3?_0x3a6e86(_0x25b5e1):_0x302a23>0x3?_0x3a6e86(_0x5b7c0a,_0x447da4,_0x25b5e1):_0x3a6e86(_0x5b7c0a,_0x447da4))||_0x25b5e1);}return _0x302a23>0x3&&_0x25b5e1&&Object['defineProperty'](_0x5b7c0a,_0x447da4,_0x25b5e1),_0x25b5e1;}let _0x1afb9b=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x32ff12,_0x39e06b){const _0x19a6ec=_0x4afe6d;super(),this[_0x19a6ec(0x18f)]=_0x32ff12,this[_0x19a6ec(0x259)]=_0x39e06b,_0x1d93f6(this,_0x19a6ec(0xfc),new Map()),_0x1d93f6(this,'_roomCreated$',new _0x501c4e[(_0x19a6ec(0x1d6))]()),this[_0x19a6ec(0x13b)]((0x0,_0x501c4e[_0x19a6ec(0x362)])(this['_univerInstanceService'][_0x19a6ec(0x28d)](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x3ee)])[_0x19a6ec(0x33c)]((0x0,_0x572a50['map'])(_0x1d6488=>_0x1d6488['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x366)])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x4cea92=>_0x4cea92[_0x19a6ec(0x40f)]())),this[_0x19a6ec(0x18f)][_0x19a6ec(0x28d)](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x1b3)])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x358e98=>_0x358e98['getUnitId']())),this[_0x19a6ec(0x18f)][_0x19a6ec(0x28d)](_0x54340d['UniverInstanceType']['UNIVER_BASE'])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x155920=>_0x155920[_0x19a6ec(0x40f)]())))[_0x19a6ec(0x40b)](_0x2e1736=>this['_removeRoom'](_0x2e1736)));}[_0x4afe6d(0x23e)](_0x40fcd9){const _0x2480ac=_0x4afe6d;return this[_0x2480ac(0xfc)][_0x2480ac(0x2e6)](_0x40fcd9)?(0x0,_0x501c4e['of'])(this[_0x2480ac(0xfc)][_0x2480ac(0x28f)](_0x40fcd9)):this['_roomCreated$']['pipe']((0x0,_0x572a50[_0x2480ac(0x299)])(_0x1a3179=>{const _0x1f91f1=_0x2480ac;if(_0x1a3179===_0x40fcd9)return this[_0x1f91f1(0xfc)][_0x1f91f1(0x28f)](_0x1a3179);}));}[_0x4afe6d(0x2de)](_0x2bec02){const _0x426168=_0x4afe6d;this[_0x426168(0x259)][_0x426168(0x2de)](_0x2bec02);}[_0x4afe6d(0x2ec)](){return this['_userManagerService']['getCurrentUser']();}[_0x4afe6d(0x2b3)](_0x3f534b,_0x1fe635){const _0x58b227=_0x4afe6d;let _0x40cb70=this[_0x58b227(0xfc)]['get'](_0x3f534b);_0x40cb70||(_0x40cb70=new _0x266031(),this[_0x58b227(0xfc)]['set'](_0x3f534b,_0x40cb70),this[_0x58b227(0x317)][_0x58b227(0x16a)](_0x3f534b)),_0x40cb70['updateMember'](_0x1fe635);}[_0x4afe6d(0x2d1)](_0x4bc7a6,_0x36a385){const _0x34d3aa=_0x4afe6d;let _0x5b99d6=this[_0x34d3aa(0xfc)][_0x34d3aa(0x28f)](_0x4bc7a6);_0x5b99d6&&_0x5b99d6['removeMember'](_0x36a385);}[_0x4afe6d(0x335)](_0x1d7e35){const _0x3e7435=_0x4afe6d;return this['_roomMembers'][_0x3e7435(0x28f)](_0x1d7e35);}[_0x4afe6d(0x203)](_0x5ce26c,_0x49c487){const _0x24df85=_0x4afe6d;let _0x19f810=this[_0x24df85(0xfc)][_0x24df85(0x28f)](_0x5ce26c);if(_0x19f810)return _0x19f810[_0x24df85(0x203)](_0x49c487);}[_0x4afe6d(0x163)](_0x41f7c6){const _0x271003=_0x4afe6d;let _0x76d34f=this['_roomMembers']['get'](_0x41f7c6);_0x76d34f&&(_0x76d34f['dispose'](),this[_0x271003(0xfc)]['delete'](_0x41f7c6));}[_0x4afe6d(0x445)](){const _0x19604a=_0x4afe6d;this['_roomMembers']['forEach'](_0x4448ee=>_0x4448ee['dispose']()),this[_0x19604a(0xfc)][_0x19604a(0x426)](),this[_0x19604a(0x317)][_0x19604a(0x228)]();}};_0x1afb9b=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x129)]))],_0x1afb9b);var _0x266031=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(..._0x2a95ce){const _0x4c9904=_0x4afe6d;super(..._0x2a95ce),_0x1d93f6(this,_0x4c9904(0x1f3),new Map()),_0x1d93f6(this,_0x4c9904(0x304),new _0x501c4e['BehaviorSubject'](this['_members'])),_0x1d93f6(this,_0x4c9904(0x27f),this['_members$'][_0x4c9904(0x371)]());}[_0x4afe6d(0x445)](){const _0x2f9df4=_0x4afe6d;this['_members'][_0x2f9df4(0x426)](),this[_0x2f9df4(0x304)][_0x2f9df4(0x228)]();}['updateMember'](_0x5cd6d1){const _0xade96c=_0x4afe6d;this[_0xade96c(0x1f3)][_0xade96c(0x437)](_0x5cd6d1[_0xade96c(0x41c)],_0x5cd6d1),this[_0xade96c(0x3a8)]();}['removeMember'](_0x5d3605){const _0x1ce665=_0x4afe6d;this[_0x1ce665(0x1f3)]['delete'](_0x5d3605),this['_emitMembers']();}[_0x4afe6d(0x203)](_0x9466da){const _0x23f983=_0x4afe6d;return this[_0x23f983(0x1f3)][_0x23f983(0x28f)](_0x9466da);}[_0x4afe6d(0x1cd)](){const _0x4ff32f=_0x4afe6d;return Array[_0x4ff32f(0x2fd)](this[_0x4ff32f(0x1f3)][_0x4ff32f(0x2f8)]());}[_0x4afe6d(0x3a8)](){const _0x13d9ea=_0x4afe6d;this[_0x13d9ea(0x304)][_0x13d9ea(0x16a)](this['_members']);}};function _0x390da0(_0x503e40,_0x593a63){const _0x5b7c2d=_0x4afe6d;if(_0x48341d(_0x503e40))return _0x593a63;if(_0x593a63[_0x5b7c2d(0x10f)]===_0x510a16['CollaborationEvent']['SUBMIT_CHANGESET']){var _0x316cb0;let _0x45637d=_0x2cdbfe(_0x503e40),_0x42b001=_0x593a63;return{..._0x42b001,'data':{..._0x42b001[_0x5b7c2d(0x2b8)],'unitID':_0x503e40[_0x5b7c2d(0x12f)]['unitId'],'unitType':(_0x316cb0=_0x503e40[_0x5b7c2d(0x12f)]['unitType'])==null?_0x42b001[_0x5b7c2d(0x2b8)]['unitType']:_0x316cb0,'changeset':_0x45637d[_0x5b7c2d(0x2ff)](_0x42b001[_0x5b7c2d(0x2b8)][_0x5b7c2d(0x3ab)],_0x5511c6(_0x503e40))}};}if(_0x593a63['eventID']===_0x510a16['CollaborationEvent'][_0x5b7c2d(0x44f)]){var _0x178d1b;let _0x13ea7e=_0x593a63;return{..._0x13ea7e,'data':{..._0x13ea7e['data'],'unitID':_0x503e40[_0x5b7c2d(0x12f)][_0x5b7c2d(0x3a1)],'unitType':(_0x178d1b=_0x503e40[_0x5b7c2d(0x12f)]['unitType'])==null?_0x13ea7e['data'][_0x5b7c2d(0x3ec)]:_0x178d1b}};}return _0x593a63;}function _0x32c675(_0x317c43,_0x4dbb07){const _0x15b26d=_0x4afe6d;if(_0x48341d(_0x317c43))return[_0x4dbb07];switch(_0x4dbb07[_0x15b26d(0x10f)]){case _0x510a16[_0x15b26d(0x17d)]['NEW_CHANGESETS']:return[_0x48ad66(_0x317c43,_0x4dbb07)];case _0x510a16[_0x15b26d(0x17d)][_0x15b26d(0x282)]:return[_0x3ed110(_0x317c43,_0x4dbb07)];case _0x510a16[_0x15b26d(0x17d)]['CHANGESET_SHOULD_RETRY']:return[_0x219d9e(_0x317c43,_0x4dbb07)];default:return[_0x4dbb07];}}function _0x48341d(_0x1d1666){const _0x42289=_0x4afe6d;return _0x1d1666[_0x42289(0x12f)][_0x42289(0x220)]==null&&_0x1d1666['target'][_0x42289(0x3a1)]===_0x1d1666[_0x42289(0x31e)]&&!_0x1d1666[_0x42289(0x3ab)];}function _0x48ad66(_0x43ad23,_0x2ac69f){const _0x1b58e2=_0x4afe6d;return{..._0x2ac69f,'data':(0x0,_0x510a16[_0x1b58e2(0x18d)])(_0x16fb42(_0x43ad23,(0x0,_0x510a16['parseProtocolChangeset'])(_0x2ac69f[_0x1b58e2(0x2b8)])))};}function _0x219d9e(_0x5dfe32,_0x3abd38){const _0x24d1bb=_0x4afe6d;return{..._0x3abd38,'data':_0x16fb42(_0x5dfe32,_0x3abd38[_0x24d1bb(0x2b8)])};}function _0x3ed110(_0xe2afc9,_0x1d1c8c){const _0xcce89c=_0x4afe6d;let _0x36b274=_0x1d1c8c[_0xcce89c(0x2b8)];return{..._0x1d1c8c,'data':{..._0x36b274,'changesets':_0x36b274[_0xcce89c(0x114)]['map'](_0x2c2fdc=>(0x0,_0x510a16[_0xcce89c(0x18d)])(_0x16fb42(_0xe2afc9,(0x0,_0x510a16[_0xcce89c(0x1a9)])(_0x2c2fdc))))}};}function _0x16fb42(_0x19c796,_0x528d1b){const _0x67852a=_0x4afe6d;return _0x2cdbfe(_0x19c796)[_0x67852a(0x433)](_0x528d1b,_0x5511c6(_0x19c796));}function _0x2cdbfe(_0x39ab8c){const _0xab3f01=_0x4afe6d;if(!_0x39ab8c[_0xab3f01(0x3ab)])throw Error(_0xab3f01(0x268));return _0x39ab8c['changeset'];}function _0x5511c6(_0x38cf60){const _0x189aee=_0x4afe6d;return{'localUnitId':_0x38cf60[_0x189aee(0x31e)],'unitType':_0x38cf60[_0x189aee(0x3ec)],'target':_0x38cf60[_0x189aee(0x12f)]};}let _0x3bf564=function(_0xdd10f6){const _0x59b820=_0x4afe6d;return _0xdd10f6[_0xdd10f6['IDLE']=0x0]='IDLE',_0xdd10f6[_0xdd10f6[_0x59b820(0x343)]=0x1]=_0x59b820(0x343),_0xdd10f6[_0xdd10f6[_0x59b820(0x21f)]=0x2]=_0x59b820(0x21f),_0xdd10f6[_0xdd10f6[_0x59b820(0x3cd)]=0x3]='ONLINE',_0xdd10f6;}({}),_0x1e194d={[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x357)]]:'session.join-failed',[_0x3a112b['CmdRspCode'][_0x4afe6d(0x189)]]:_0x4afe6d(0x355),[_0x3a112b['CmdRspCode'][_0x4afe6d(0x3f5)]]:'session.room-not-exists',[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x3f8)]]:_0x4afe6d(0x264),[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x15e)]]:_0x4afe6d(0x412)},_0x180b79=class extends _0x54340d[_0x4afe6d(0x2bf)]{get['sessionStatus'](){const _0x9fd459=_0x4afe6d;return this[_0x9fd459(0x2b6)][_0x9fd459(0x22a)]();}constructor(_0x4cf65b,_0x422caa,_0x484d6b,_0x8868ba,_0x1e65b0,_0x17934f,_0x5cec74,_0x184d73){const _0x37e021=_0x4afe6d;super(),this[_0x37e021(0x1c8)]=_0x4cf65b,this[_0x37e021(0x30d)]=_0x484d6b,this[_0x37e021(0x3b8)]=_0x8868ba,this[_0x37e021(0x30f)]=_0x1e65b0,this[_0x37e021(0x248)]=_0x17934f,this[_0x37e021(0x30b)]=_0x5cec74,this[_0x37e021(0x3c5)]=_0x184d73,_0x1d93f6(this,_0x37e021(0x2b6),new _0x501c4e['BehaviorSubject'](0x0)),_0x1d93f6(this,_0x37e021(0x2d5),this[_0x37e021(0x2b6)][_0x37e021(0x371)]()),_0x1d93f6(this,'_event$',new _0x501c4e['Subject']()),_0x1d93f6(this,_0x37e021(0x2c0),this[_0x37e021(0x24e)][_0x37e021(0x371)]()),_0x1d93f6(this,_0x37e021(0x38a),void 0x0),_0x1d93f6(this,_0x37e021(0x1b2),void 0x0),_0x1d93f6(this,_0x37e021(0x361),void 0x0),_0x1d93f6(this,_0x37e021(0x270),!0x1),_0x1d93f6(this,'_telemetryInfo',null),this[_0x37e021(0x270)]=!!this[_0x37e021(0x3c5)],_0x422caa[_0x37e021(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x37e021(0x24d)]))[_0x37e021(0x40b)](_0x20d2f0=>{const _0x1d79c9=_0x37e021;if(_0x20d2f0!==void 0x0){if(this[_0x1d79c9(0x38a)]=_0x20d2f0,_0x20d2f0)this['_joinRoom'](_0x20d2f0),this['_socketMessageSubscription']=_0x20d2f0[_0x1d79c9(0x208)][_0x1d79c9(0x40b)](_0x4fd883=>{const _0x482122=_0x1d79c9;_0x4fd883[_0x482122(0x2e0)]===this[_0x482122(0x1c8)][_0x482122(0x12f)]['unitId']&&this[_0x482122(0x14b)](_0x4fd883);});else{var _0x1e7a66;this[_0x1d79c9(0x20c)](),this[_0x1d79c9(0x2b6)][_0x1d79c9(0x16a)](0x2),(_0x1e7a66=this[_0x1d79c9(0x1b2)])==null||_0x1e7a66[_0x1d79c9(0x187)](),this[_0x1d79c9(0x1b2)]=null;}}});}['getMemberID'](){const _0x165038=_0x4afe6d;var _0x36955b,_0x2574ca;return(_0x36955b=(_0x2574ca=this[_0x165038(0x38a)])==null?void 0x0:_0x2574ca[_0x165038(0x41c)])==null?null:_0x36955b;}[_0x4afe6d(0x445)](){const _0x4b608a=_0x4afe6d;super[_0x4b608a(0x445)](),this[_0x4b608a(0x3ed)](),this[_0x4b608a(0x24d)][_0x4b608a(0x16a)](),this[_0x4b608a(0x24d)][_0x4b608a(0x228)]();}[_0x4afe6d(0x3ed)](){const _0x417160=_0x4afe6d;var _0x551423;this[_0x417160(0x20c)](),(_0x551423=this[_0x417160(0x38a)])==null||_0x551423[_0x417160(0x255)]({'cmd':_0x3a112b[_0x417160(0x2dc)][_0x417160(0x240)],'data':{'roomID':this[_0x417160(0x1c8)]['target'][_0x417160(0x3a1)]}}),this[_0x417160(0x24e)][_0x417160(0x228)](),this[_0x417160(0x2b6)][_0x417160(0x228)]();}[_0x4afe6d(0x14b)](_0x23c443){const _0x58c06c=_0x4afe6d;_0x23c443['cmd']===_0x3a112b[_0x58c06c(0x2dc)][_0x58c06c(0x39d)]?this['_onJoinRoomEvent'](_0x23c443):_0x23c443[_0x58c06c(0x239)]===_0x3a112b[_0x58c06c(0x2dc)][_0x58c06c(0x319)]&&this[_0x58c06c(0x44d)](_0x23c443);}[_0x4afe6d(0x2e3)](_0x4d5347){const _0x2b5e3e=_0x4afe6d;this[_0x2b5e3e(0x2b6)][_0x2b5e3e(0x16a)](0x1),_0x4d5347[_0x2b5e3e(0x255)]({'cmd':_0x3a112b[_0x2b5e3e(0x2dc)][_0x2b5e3e(0x39d)],'routeKey':this['_identity'][_0x2b5e3e(0x12f)][_0x2b5e3e(0x3a1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2b5e3e(0x1c8)][_0x2b5e3e(0x12f)]['unitId']}]}});}[_0x4afe6d(0x182)](_0x365752){const _0x3f1ae6=_0x4afe6d;var _0x3b7c19;if(_0x365752[_0x3f1ae6(0x1a3)]in _0x1e194d){this[_0x3f1ae6(0x30b)][_0x3f1ae6(0x425)]({'id':_0x3f1ae6(0x338),'data':_0x1e194d[_0x365752[_0x3f1ae6(0x1a3)]]}),this[_0x3f1ae6(0x2b6)]['next'](0x2);return;}this[_0x3f1ae6(0x2b6)][_0x3f1ae6(0x16a)](0x3);let _0x141b08=(_0x3b7c19=_0x365752[_0x3f1ae6(0x2b8)][_0x3f1ae6(0x37c)][this['_identity'][_0x3f1ae6(0x12f)]['unitId']])==null?void 0x0:_0x3b7c19[_0x3f1ae6(0x20e)];_0x141b08&&_0x141b08[_0x3f1ae6(0x3a3)](_0x1c6681=>this[_0x3f1ae6(0x30f)][_0x3f1ae6(0x2b3)](this['_identity'][_0x3f1ae6(0x31e)],_0x1c6681));}[_0x4afe6d(0x44d)](_0xe231cb){const _0x181cdc=_0x4afe6d;try{let _0x205091=_0x32c675(this[_0x181cdc(0x1c8)],_0xe231cb['data']);for(let _0xed6bd2 of _0x205091)switch(_0xed6bd2[_0x181cdc(0x10f)]){case _0x510a16[_0x181cdc(0x17d)][_0x181cdc(0x1b4)]:this[_0x181cdc(0x3e3)](_0xed6bd2),this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16['CollaborationEvent'][_0x181cdc(0x132)]:this[_0x181cdc(0x1eb)](_0xed6bd2),this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16[_0x181cdc(0x17d)]['CHANGESET_ACK']:case _0x510a16['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x181cdc(0x424)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16['CollaborationEvent'][_0x181cdc(0x1d9)]:this[_0x181cdc(0x30d)]['error'](_0x181cdc(0x1be)+JSON[_0x181cdc(0x1c6)](_0xed6bd2)),this[_0x181cdc(0x24e)]['next'](_0xed6bd2);break;case _0x510a16[_0x181cdc(0x17d)]['COMMENT_UPDATE']:this['_commentService'][_0x181cdc(0x12a)](_0xed6bd2['data']),this[_0x181cdc(0x24e)]['next'](_0xed6bd2);break;default:this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);}}catch(_0x1b6967){this['_logService']['error'](_0x1b6967,_0xe231cb);}}[_0x4afe6d(0x3e3)](_0x17ebae){const _0x53a3e3=_0x4afe6d;this[_0x53a3e3(0x30f)]['updateMember'](this[_0x53a3e3(0x1c8)][_0x53a3e3(0x31e)],_0x17ebae['data']);}[_0x4afe6d(0x1eb)](_0x47ce51){const _0x2f208f=_0x4afe6d;this[_0x2f208f(0x30f)][_0x2f208f(0x2d1)](this['_identity']['localUnitId'],_0x47ce51[_0x2f208f(0x2b8)]['memberID']);}async[_0x4afe6d(0x255)](_0x243799,_0x1f4b51){const _0x413872=_0x4afe6d;if(this[_0x413872(0x202)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x569664=_0x390da0(this[_0x413872(0x1c8)],_0x243799);_0x569664[_0x413872(0x10f)]===_0x510a16['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x413872(0x42c)](),this[_0x413872(0x39c)](_0x569664)),this['_socket'][_0x413872(0x255)]({'cmd':_0x3a112b[_0x413872(0x2dc)][_0x413872(0x401)],'routeKey':this[_0x413872(0x1c8)][_0x413872(0x12f)][_0x413872(0x3a1)],'routeType':'','data':_0x569664});}catch(_0xa26a){this[_0x413872(0x30d)]['error'](_0xa26a);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2aa279=_0x4afe6d;var _0x1481a5;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x152c3c=_0x4f14;this[_0x152c3c(0x361)]=null,this[_0x152c3c(0x30b)]['emitEvent']({'id':_0x152c3c(0x333)});},(_0x1481a5=this[_0x2aa279(0x3b8)][_0x2aa279(0x170)](_0x2aa279(0x263)))==null?_0x3eabd5:_0x1481a5);}[_0x4afe6d(0x43d)](){const _0x50ef16=_0x4afe6d;this[_0x50ef16(0x361)]&&(clearTimeout(this[_0x50ef16(0x361)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x9dc1b5){const _0x791c6a=_0x4afe6d;if(!this['_shouldReportTelemetry'])return;let {data:_0x5e0379}=_0x9dc1b5,{unitID:_0x5146d3,changeset:_0x50ed65}=_0x5e0379,{mutations:_0x3c577a,type:_0x2e43ba}=_0x50ed65;this[_0x791c6a(0x1ff)]={'unitId':_0x5146d3,'type':_0x2e43ba,'startTime':performance[_0x791c6a(0x428)](),'stopTime':0x0,'duration':0x0,'size':_0xc9b6fb(_0x3c577a)};}[_0x4afe6d(0x424)](){const _0x1df2f1=_0x4afe6d;if(this['_shouldReportTelemetry']){if(!this[_0x1df2f1(0x1ff)]){this['_logService'][_0x1df2f1(0x106)](_0x1df2f1(0x238),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1df2f1(0x1ff)][_0x1df2f1(0x21d)]=performance['now'](),this['_telemetryInfo'][_0x1df2f1(0x2e4)]=this[_0x1df2f1(0x1ff)][_0x1df2f1(0x21d)]-this['_telemetryInfo'][_0x1df2f1(0x2c8)],this[_0x1df2f1(0x3c5)]['capture']('collaboration_new_changeset',this[_0x1df2f1(0x1ff)]),this['_telemetryInfo']=null;}}[_0x4afe6d(0x20c)](){const _0x29a88a=_0x4afe6d;this[_0x29a88a(0x1ff)]=null;}};_0x180b79=_0x3bbaf2([_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x1afb9b)),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x24cd08)),_0x5c2cf(0x6,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x15aa62[_0x4afe6d(0x16d)]))],_0x180b79);let _0x1cadf3=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x1b8));function _0x4accb8(_0x1b7fe1){return'unit-cache-'+_0x1b7fe1;}function _0xffae4e(_0x20a01b){const _0x56be4c=_0x4afe6d;let {unitID:_0x371b20,mutations:_0x259bb2}=_0x20a01b;return{'unitId':_0x371b20,'subUnitId':_0x259bb2[_0x56be4c(0x414)]>0x0?_0x259bb2[0x0][_0x56be4c(0x311)]['subUnitId']:null};}let _0x2269b7=class{constructor(_0x19e1eb,_0x2a0da0,_0x5f3d30){const _0xb15e80=_0x4afe6d;this['_injector']=_0x19e1eb,this[_0xb15e80(0x294)]=_0x2a0da0,this['_instanceService']=_0x5f3d30;}['transformSelections'](_0x54f262){const _0x1206af=_0x4afe6d;var _0x1b0050,_0x24e15e;let _0x3d770e=this[_0x1206af(0x19e)][_0x1206af(0x28f)](_0x2e3009[_0x1206af(0x31f)]),{unitId:_0x58b63a,subUnitId:_0x380caa}=_0xffae4e(_0x54f262),_0x4f1e31=_0x3d770e==null?void 0x0:_0x3d770e[_0x1206af(0x1d4)](_0x58b63a)[_0x1206af(0x38d)](),_0x390c0b=(_0x1b0050=this[_0x1206af(0x2ca)][_0x1206af(0x44a)](_0x58b63a))==null||(_0x1b0050=_0x1b0050[_0x1206af(0x345)]())==null?void 0x0:_0x1b0050[_0x1206af(0x302)]();if(_0x4f1e31[_0x1206af(0x414)]===0x0||!_0x58b63a||!_0x380caa)return;let _0x594626=[{'id':_0x2e3009[_0x1206af(0x3e6)]['id'],'params':{'unitId':_0x58b63a,'subUnitId':_0x390c0b,'selections':_0x54340d[_0x1206af(0x2f5)]['deepClone'](_0x4f1e31)}}],_0x24e296=this[_0x1206af(0x294)][_0x1206af(0x2e7)](_0x54f262,_0x594626);if(!(0x0,_0x510a16['isTransformMutationsWithChangesetSuccess'])(_0x24e296))throw _0x24e296['error'];let _0x1c4914=(_0x24e15e=_0x24e296[_0x1206af(0x422)][0x0])==null||(_0x24e15e=_0x24e15e[_0x1206af(0x311)])==null?void 0x0:_0x24e15e[_0x1206af(0x328)];if(Array[_0x1206af(0x120)](_0x1c4914)&&_0x1c4914[_0x1206af(0x414)]){if(_0x1c4914[_0x1206af(0x414)]===_0x594626[0x0]['params'][_0x1206af(0x328)][_0x1206af(0x414)]&&_0x1c4914[_0x1206af(0x3bc)]((_0x477671,_0x590430)=>_0x54340d[_0x1206af(0x397)][_0x1206af(0x2d4)](_0x477671[_0x1206af(0x3ca)],_0x594626[0x0][_0x1206af(0x311)][_0x1206af(0x328)][_0x590430][_0x1206af(0x3ca)])))return;this[_0x1206af(0x19e)][_0x1206af(0x28f)](_0x54340d[_0x1206af(0x39e)])[_0x1206af(0x3e8)](_0x2e3009[_0x1206af(0x3e6)]['id'],{'unitId':_0x58b63a,'subUnitId':_0x390c0b,'selections':_0x1c4914});}}};_0x2269b7=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0x2,_0x54340d['IUniverInstanceService'])],_0x2269b7);let _0x54d1b8=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0xfb)),_0x36582d=function(_0x2a23fc){const _0x15390a=_0x4afe6d;return _0x2a23fc[_0x2a23fc['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x15390a(0x116),_0x2a23fc[_0x2a23fc['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x2a23fc;}({});function _0x44acd4(_0x423728){const _0x8dad42=_0x4afe6d;var _0x1e8850;return!!((_0x1e8850=_0x423728[_0x8dad42(0x311)])!=null&&_0x1e8850[_0x8dad42(0x313)]);}let _0x5b983d=new Set([_0x2e3009[_0x4afe6d(0x1d0)]['id']]),_0x41e6c6=new Set([_0xee09d9[_0x4afe6d(0x22d)]['id'],_0xee09d9[_0x4afe6d(0x2fb)]['id'],_0xee09d9[_0x4afe6d(0x2a2)]['id'],_0xee09d9['RemoveSlidePageMutation']['id']]);function _0x3121f6(_0x5848b3,_0x4f5915=_0x5b983d){const _0x3d74b8=_0x4afe6d;let _0x24582d=[];for(let _0x507753 of _0x5848b3){if(_0x4f5915['has'](_0x507753['id'])){if(_0x24582d[_0x3d74b8(0x414)]>0x0)break;_0x24582d['push'](_0x507753);break;}if(_0x44acd4(_0x507753)){if(_0x24582d[_0x3d74b8(0x414)]>0x0)break;_0x24582d[_0x3d74b8(0x399)](_0x507753);break;}_0x24582d[_0x3d74b8(0x399)](_0x507753);}return _0x24582d;}function _0x2f6bb7(_0x470b6a,_0x4165a8,_0x46f0db,_0x3d0745,_0x1c4744){const _0x5b12c4=_0x4afe6d;var _0x4610e0,_0x33ecc6,_0x20cdaa,_0x72f3da;let _0x346eaa=_0x3121f6(_0x470b6a),_0x3c6cdd=(_0x4610e0=(_0x33ecc6=_0x1c4744[_0x5b12c4(0x2ec)]())==null?void 0x0:_0x33ecc6[_0x5b12c4(0x11c)])==null?'unknown':_0x4610e0,_0x5c6808=(_0x20cdaa=(_0x72f3da=_0x1c4744['getCurrentUser']())==null?void 0x0:_0x72f3da[_0x5b12c4(0x41c)])==null?'unknown':_0x20cdaa;return{'changeset':{'unitID':_0x4165a8,'type':(0x0,_0x510a16[_0x5b12c4(0x274)])(_0x46f0db['getUnitType'](_0x4165a8)),'baseRev':_0x3d0745[_0x5b12c4(0x318)](_0x4165a8),'revision':0x0,'userID':_0x3c6cdd,'memberID':_0x5c6808,'mutations':_0x346eaa},'pendingMutations':_0x470b6a['slice'](_0x346eaa[_0x5b12c4(0x414)])};}function _0x23b44b(_0x554704,_0x231202,_0x3ad3e0,_0x444966,_0x15683d){const _0x2d8d00=_0x4afe6d;var _0x3cda73,_0x4a95b8,_0x202638,_0x18429f;let _0x2ea39c=_0x3121f6(_0x554704,_0x41e6c6),_0x37d4a0=(_0x3cda73=(_0x4a95b8=_0x15683d[_0x2d8d00(0x2ec)]())==null?void 0x0:_0x4a95b8['userID'])==null?'unknown':_0x3cda73,_0x374872=(_0x202638=(_0x18429f=_0x15683d[_0x2d8d00(0x2ec)]())==null?void 0x0:_0x18429f[_0x2d8d00(0x41c)])==null?_0x2d8d00(0x16f):_0x202638;return{'changeset':{'unitID':_0x231202,'type':(0x0,_0x510a16[_0x2d8d00(0x274)])(_0x3ad3e0[_0x2d8d00(0x153)](_0x231202)),'baseRev':_0x444966[_0x2d8d00(0x318)](_0x231202),'revision':0x0,'userID':_0x37d4a0,'memberID':_0x374872,'mutations':_0x2ea39c},'pendingMutations':_0x554704['slice'](_0x2ea39c[_0x2d8d00(0x414)])};}function _0xa7ac75(_0x3012e6,_0x3a0e3b,_0x2f80ed,_0x5d745c,_0x2568b4){const _0x2ef660=_0x4afe6d;var _0x22ad56,_0x3bf61d,_0x194c04,_0x141935;let _0x4fa822=_0x3012e6['reduce']((_0x13f634,_0x203d27)=>{const _0x559b00=_0x4f14;let _0x5e91f0=_0x13f634[_0x13f634[_0x559b00(0x414)]-0x1],{id:_0x4bb7bc}=_0x5e91f0==null?{}:_0x5e91f0,{id:_0x4b9470,type:_0x3d89f5}=_0x203d27,_0x197261=_0x203d27[_0x559b00(0x311)];if(_0x4bb7bc&&_0x4bb7bc!==_0x4b9470)throw Error(_0x559b00(0x300)+_0x4bb7bc+_0x559b00(0x390)+_0x4b9470+'.');if(!_0x5e91f0)return[{'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261['unitId'],'textRanges':_0x197261[_0x559b00(0x245)],'actions':_0x197261['actions']}}];let _0x231a10=_0x5e91f0[_0x559b00(0x311)];return _0x33a2d0(_0x231a10,_0x197261)?[..._0x13f634['slice'](0x0,-0x1),{..._0x5e91f0,'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261[_0x559b00(0x3a1)],'textRanges':_0x197261[_0x559b00(0x245)],'actions':_0x54340d['JSONX'][_0x559b00(0x223)](_0x231a10[_0x559b00(0x25c)],_0x197261[_0x559b00(0x25c)])}}]:[..._0x13f634,{'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261['unitId'],'textRanges':_0x197261['textRanges'],'actions':_0x197261[_0x559b00(0x25c)]}}];},[]),_0x2acafe=(_0x22ad56=(_0x3bf61d=_0x2568b4[_0x2ef660(0x2ec)]())==null?void 0x0:_0x3bf61d[_0x2ef660(0x11c)])==null?_0x2ef660(0x16f):_0x22ad56,_0x1a2188=(_0x194c04=(_0x141935=_0x2568b4['getCurrentUser']())==null?void 0x0:_0x141935[_0x2ef660(0x41c)])==null?_0x2ef660(0x16f):_0x194c04;return{'changeset':{'unitID':_0x3a0e3b,'type':(0x0,_0x510a16[_0x2ef660(0x274)])(_0x2f80ed['getUnitType'](_0x3a0e3b)),'baseRev':_0x5d745c[_0x2ef660(0x318)](_0x3a0e3b),'revision':0x0,'userID':_0x2acafe,'memberID':_0x1a2188,'mutations':_0x4fa822},'pendingMutations':_0x3012e6[_0x2ef660(0x1b6)](_0x3012e6[_0x2ef660(0x414)])};}function _0x33a2d0(_0x48ea7b,_0x518d28){const _0x34cd85=_0x4afe6d;return!_0x53c624(_0x48ea7b)&&!_0x53c624(_0x518d28)&&_0x581b81(_0x48ea7b[_0x34cd85(0x25c)],_0x518d28[_0x34cd85(0x25c)]);}function _0x53c624(_0x5daad9){const _0x21ce1a=_0x4afe6d;return _0x5daad9[_0x21ce1a(0x180)]!==void 0x0;}function _0x581b81(_0x3662d3,_0x4441b9){return _0x4bf55e(_0x3662d3)&&_0x4bf55e(_0x4441b9)&&!_0x3acdf(_0x3662d3)&&!_0x3acdf(_0x4441b9)&&!_0x1b233f(_0x3662d3)&&!_0x1b233f(_0x4441b9);}function _0x4bf55e(_0x19d288){const _0x5aca40=_0x4afe6d;return _0x381926(_0x19d288)[_0x5aca40(0x1d8)](_0x38e491=>_0x12d07d(_0x38e491)&&_0x38e491['et']===_0x5aca40(0x160));}function _0x1b233f(_0x4c243c){const _0x177cbb=_0x4afe6d;return _0x381926(_0x4c243c)['some'](_0x406fcb=>Array[_0x177cbb(0x120)](_0x406fcb)||typeof _0x406fcb==_0x177cbb(0x1ab)||typeof _0x406fcb==_0x177cbb(0x1ca));}function _0x3acdf(_0x26f32e){const _0x268a47=_0x4afe6d;return _0x381926(_0x26f32e)['some'](_0x33318d=>!_0x12d07d(_0x33318d)||_0x33318d['et']!=='text-x'||!Array['isArray'](_0x33318d['e'])?!0x1:_0x33318d['e']['some'](_0x4da127=>!_0x12d07d(_0x4da127)||!_0x12d07d(_0x4da127[_0x268a47(0x271)])?!0x1:Object[_0x268a47(0x31b)][_0x268a47(0x38b)][_0x268a47(0x178)](_0x4da127[_0x268a47(0x271)],_0x268a47(0x23c))||Object['prototype']['hasOwnProperty'][_0x268a47(0x178)](_0x4da127[_0x268a47(0x271)],_0x268a47(0x17f))||Object[_0x268a47(0x31b)][_0x268a47(0x38b)]['call'](_0x4da127[_0x268a47(0x271)],_0x268a47(0x3e1))));}function _0x381926(_0x37d7fa){const _0x567856=_0x4afe6d;if(!Array[_0x567856(0x120)](_0x37d7fa))return[];let _0x354995=_0x37d7fa['includes'](_0x567856(0x271))?_0x37d7fa:_0x37d7fa[_0x567856(0x370)](_0x30842c=>Array[_0x567856(0x120)](_0x30842c)&&_0x30842c[_0x567856(0x206)](_0x567856(0x271)));if(!Array['isArray'](_0x354995))return[];let _0x5236c9=_0x354995['indexOf'](_0x567856(0x271));return _0x5236c9===-0x1?[]:_0x354995[_0x567856(0x1b6)](_0x5236c9+0x1);}function _0x12d07d(_0x717f7a){const _0x52bffd=_0x4afe6d;return typeof _0x717f7a==_0x52bffd(0x2bd)&&!!_0x717f7a&&!Array[_0x52bffd(0x120)](_0x717f7a);}function _0x6b50d3(_0x23ea9d,_0x5a7b6a){const _0x5672ab=_0x4afe6d;let _0x3055cf=new _0x501c4e[(_0x5672ab(0x394))](0x1);return setTimeout(()=>_0x3055cf[_0x5672ab(0x16a)](_0x5a7b6a),_0x23ea9d),_0x3055cf[_0x5672ab(0x371)]()[_0x5672ab(0x33c)]((0x0,_0x501c4e['take'])(0x1));}var _0x285c1b,_0x1f9ff2,_0x537763;let _0x37cdd1=function(_0x1bdbac){const _0x5e239b=_0x4afe6d;return _0x1bdbac[_0x5e239b(0x2ba)]=_0x5e239b(0x2ee),_0x1bdbac[_0x5e239b(0x3f3)]=_0x5e239b(0x3b6),_0x1bdbac[_0x5e239b(0x3c1)]='pending',_0x1bdbac[_0x5e239b(0x266)]='awaiting',_0x1bdbac[_0x5e239b(0x1ac)]=_0x5e239b(0x284),_0x1bdbac[_0x5e239b(0x1f6)]='fetch_missing',_0x1bdbac['CONFLICT']=_0x5e239b(0x1b1),_0x1bdbac[_0x5e239b(0x21f)]=_0x5e239b(0x296),_0x1bdbac;}({}),_0xb28743=0x4e20,_0x1d95e0=0x2bf20;var _0x52be27=class{constructor(_0x282a16,_0x442cc3,_0x516297,_0x4867b6,_0x583b8b,_0x31b884,_0x425a1f,_0xa994c5,_0x11c5d7){const _0x1f0f6d=_0x4afe6d;this['unitID']=_0x282a16,this[_0x1f0f6d(0x154)]=_0x442cc3,this['_handler']=_0x583b8b,this['_commandService']=_0x31b884,this[_0x1f0f6d(0x3f0)]=_0x425a1f,this[_0x1f0f6d(0x3a4)]=_0xa994c5,this['_localCacheService']=_0x11c5d7,_0x1d93f6(this,_0x1f0f6d(0x1a2),null),_0x1d93f6(this,_0x1f0f6d(0x286),[]),this['_awaitingChangeset']=_0x516297,this['_pendingMutations']=_0x4867b6;}['_checkMissing'](_0x2c7e98){const _0x20b314=_0x4afe6d;let _0x4f615a=this[_0x20b314(0x3a4)][_0x20b314(0x318)](this['unitID']);return _0x2c7e98[_0x20b314(0x42f)]>_0x4f615a+0x1?(this[_0x20b314(0x183)]['onMissingChangesets']({'from':_0x4f615a,'to':_0x2c7e98['revision']-0x1}),!0x0):!0x1;}[_0x4afe6d(0x3d5)](_0x48ddbc){const _0xf34092=_0x4afe6d;this[_0xf34092(0x3f0)][_0xf34092(0x2c2)](this[_0xf34092(0x3b1)],_0x48ddbc);}[_0x4afe6d(0x233)](_0x147668){const _0x482dc9=_0x4afe6d;var _0x312e00,_0x32d1ea;(_0x312e00=(_0x32d1ea=this[_0x482dc9(0x183)])[_0x482dc9(0x3a5)])==null||_0x312e00[_0x482dc9(0x178)](_0x32d1ea,_0x147668);}['_transformIMECache'](_0x42e57f){const _0x5c3bc6=_0x4afe6d;var _0x1b3389,_0x613390;return(_0x1b3389=(_0x613390=this[_0x5c3bc6(0x183)])[_0x5c3bc6(0x2dd)])==null?void 0x0:_0x1b3389[_0x5c3bc6(0x178)](_0x613390,_0x42e57f);}[_0x4afe6d(0x121)](_0x55e009){const _0x525e25=_0x4afe6d;var _0x43b402,_0x648a64;return(_0x43b402=(_0x648a64=this[_0x525e25(0x183)])[_0x525e25(0x34d)])==null?void 0x0:_0x43b402[_0x525e25(0x178)](_0x648a64,_0x55e009);}['_transformRemoteChangesetByIMECache'](_0xea3016){const _0x3c6aaf=_0x4afe6d;var _0x26b883,_0x9b27fe,_0x161024;return(_0x26b883=(_0x9b27fe=(_0x161024=this[_0x3c6aaf(0x183)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x9b27fe['call'](_0x161024,_0xea3016))==null?_0xea3016:_0x26b883;}['_transformRemoteChangesetByStateCache'](_0x5c0cfd){const _0x3bc494=_0x4afe6d;var _0x7e3a30,_0x37235b,_0x54d233;return(_0x7e3a30=(_0x37235b=(_0x54d233=this[_0x3bc494(0x183)])[_0x3bc494(0x3be)])==null?void 0x0:_0x37235b[_0x3bc494(0x178)](_0x54d233,_0x5c0cfd))==null?_0x5c0cfd:_0x7e3a30;}[_0x4afe6d(0x33b)](_0x45e77a){const _0x1a5e02=_0x4afe6d;if(this[_0x1a5e02(0x154)]===_0x54340d[_0x1a5e02(0x395)][_0x1a5e02(0x366)]){let {unitID:_0x197371,mutations:_0x29e789,memberID:_0x109a81}=_0x45e77a,_0x449b4b=_0x29e789['length']>0x0?_0x29e789[0x0]['params'][_0x1a5e02(0x245)]:[];if(Array[_0x1a5e02(0x120)](_0x449b4b)&&_0x449b4b[_0x1a5e02(0x414)]>0x0){var _0x3daaab,_0x4dd3ce;(_0x3daaab=(_0x4dd3ce=this[_0x1a5e02(0x183)])['onSyncEditingCollabCursor'])==null||_0x3daaab[_0x1a5e02(0x178)](_0x4dd3ce,{'unitID':_0x197371,'memberID':_0x109a81,'textRanges':_0x449b4b});}}}['_updateLocalCache'](){const _0x1f86ea=_0x4afe6d;var _0x2e51b2;(_0x2e51b2=this['_localCacheService'])==null||_0x2e51b2['updateOfflineData'](this[_0x1f86ea(0x3b1)],this[_0x1f86ea(0x154)],this['_awaitingChangeset'],this[_0x1f86ea(0x286)]);}[_0x4afe6d(0x142)](){const _0xd1e655=_0x4afe6d;return this[_0xd1e655(0x3a4)][_0xd1e655(0x318)](this[_0xd1e655(0x3b1)]);}[_0x4afe6d(0xf6)](){const _0x34dce9=_0x4afe6d;this['_revisionService'][_0x34dce9(0x14d)](this[_0x34dce9(0x3b1)]);}[_0x4afe6d(0x363)](_0x1be8a4){const _0x3ad121=_0x4afe6d;let _0x100e0d=this[_0x3ad121(0x26b)](_0x1be8a4);_0x100e0d=this[_0x3ad121(0x3ce)](_0x100e0d);let _0x164c96=(0x0,_0x54340d[_0x3ad121(0x30a)])(_0x100e0d['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x164c96[_0x3ad121(0x2a9)]){var _0x463cdb;throw _0x164c96[_0x3ad121(0x106)]instanceof Error?_0x164c96[_0x3ad121(0x106)]:Error((_0x463cdb=_0x164c96[_0x3ad121(0x106)])==null?_0x3ad121(0x3dc):_0x463cdb);}this[_0x3ad121(0x186)](_0x100e0d),this[_0x3ad121(0x121)](_0x100e0d),this[_0x3ad121(0x3d5)](_0x1be8a4),this[_0x3ad121(0x233)](_0x100e0d),this[_0x3ad121(0x33b)](_0x100e0d),this[_0x3ad121(0xf6)]();}};let _0x5d7f84=class extends _0x52be27{constructor(_0x313626,_0x3d5c70,_0x2538a7,_0x28f069,_0x218ffa,_0x514a4d,_0x5c1ff7,_0xddf53c,_0x14b000,_0x94937c){const _0x2f56b7=_0x4afe6d;super(_0x313626,_0x3d5c70,null,[],_0x2538a7,_0x5c1ff7,_0x514a4d,_0x28f069,_0x94937c),this['_injector']=_0x218ffa,this[_0x2f56b7(0x30d)]=_0xddf53c,this[_0x2f56b7(0x294)]=_0x14b000,this[_0x2f56b7(0x249)]=_0x94937c,_0x1d93f6(this,'status',_0x2f56b7(0x3b6));}[_0x4afe6d(0x452)](_0x4bd320){const _0x583aa4=_0x4afe6d;let _0x122923=this[_0x583aa4(0x19e)][_0x583aa4(0x34e)](_0x503465,this[_0x583aa4(0x3b1)],this['type'],[_0x4bd320],this['_handler']);return _0x122923[_0x583aa4(0x159)](),_0x122923[_0x583aa4(0x10c)](),_0x122923;}[_0x4afe6d(0x152)](_0xe21d54){const _0x36edf3=_0x4afe6d;if(this[_0x36edf3(0x275)](_0xe21d54))return this[_0x36edf3(0x19e)]['createInstance'](_0x5ac534,this['unitID'],this[_0x36edf3(0x154)],null,[],null,[_0xe21d54],this['_handler']);try{let _0x4020cb=this[_0x36edf3(0x294)][_0x36edf3(0x2e7)](_0xe21d54,[_0x510a16[_0x36edf3(0x12d)]]);if((0x0,_0x510a16[_0x36edf3(0x36c)])(_0x4020cb)){let {c1Prime:_0x390f45}=_0x4020cb;return this[_0x36edf3(0x363)](_0x390f45),this;}throw _0x4020cb[_0x36edf3(0x106)];}catch(_0x20be64){return this[_0x36edf3(0x30d)][_0x36edf3(0x106)](_0x20be64),this[_0x36edf3(0x179)](!0x1);}}[_0x4afe6d(0x179)](_0x4373c6){const _0x9dc8e5=_0x4afe6d;return this['_injector'][_0x9dc8e5(0x34e)](_0x4544f7,this[_0x9dc8e5(0x3b1)],this[_0x9dc8e5(0x154)],null,[],this[_0x9dc8e5(0x183)],_0x4373c6);}[_0x4afe6d(0x136)](_0x22d0ea){const _0x4f47f0=_0x4afe6d;if(_0x22d0ea[_0x4f47f0(0x42f)]<=this[_0x4f47f0(0x142)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x5323ca=_0x4afe6d;throw Error(_0x5323ca(0x1d2));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x147204=_0x4afe6d;return this[_0x147204(0x19e)]['createInstance'](_0x5146de,this[_0x147204(0x3b1)],this[_0x147204(0x154)],null,[],this[_0x147204(0x183)]);}[_0x4afe6d(0x374)](){return this;}['resend'](){const _0x3dceba=_0x4afe6d;throw Error(_0x3dceba(0x439));}[_0x4afe6d(0x3fe)](){const _0x464eb0=_0x4afe6d;let _0x146100=this[_0x464eb0(0x3a4)][_0x464eb0(0x318)](this[_0x464eb0(0x3b1)]);return this['_handler'][_0x464eb0(0x32d)]({'from':_0x146100,'to':0x0}),this[_0x464eb0(0x19e)][_0x464eb0(0x34e)](_0x5ac534,this[_0x464eb0(0x3b1)],this['type'],null,[],null,[],this[_0x464eb0(0x183)]);}};_0x5d7f84=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0x6,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x510a16['ITransformService']),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5d7f84);let _0x503465=_0x285c1b=class extends _0x52be27{constructor(_0x54beff,_0x32d302,_0x51887b,_0x54d733,_0x23d555,_0x2bbdf4,_0x1c9c95,_0x1aa26c,_0x3ed512,_0x22e36f,_0x3b31f0,_0x4cb1b4,_0x35634d,_0x55438e){const _0x506552=_0x4afe6d;super(_0x54beff,_0x32d302,null,_0x51887b,_0x54d733,_0x3ed512,_0x35634d,_0x2bbdf4,_0x55438e),this['_injector']=_0x23d555,this['_memberService']=_0x1c9c95,this[_0x506552(0x30d)]=_0x1aa26c,this[_0x506552(0x3b8)]=_0x22e36f,this[_0x506552(0x294)]=_0x3b31f0,this[_0x506552(0x18f)]=_0x4cb1b4,_0x1d93f6(this,_0x506552(0x35f),_0x506552(0x1e0)),_0x1d93f6(this,_0x506552(0x115),null),_0x1d93f6(this,_0x506552(0x295),null);}[_0x4afe6d(0x452)](_0x3fa7f1){const _0x395347=_0x4afe6d;return this[_0x395347(0x286)][_0x395347(0x399)](_0x3fa7f1),this[_0x395347(0x10c)](),this;}[_0x4afe6d(0x152)](_0x1e2c85){const _0x2541b9=_0x4afe6d;if(this['_checkMissing'](_0x1e2c85))return this['_clearScheduledTask'](),this[_0x2541b9(0x19e)][_0x2541b9(0x34e)](_0x5ac534,this[_0x2541b9(0x3b1)],this[_0x2541b9(0x154)],null,this[_0x2541b9(0x286)],null,[_0x1e2c85],this['_handler']);try{let _0x5f1298=this['_transformService']['transformMutationsWithChangeset'](_0x1e2c85,this[_0x2541b9(0x286)]);if((0x0,_0x510a16[_0x2541b9(0x36c)])(_0x5f1298)){let {c1Prime:_0x457169,m2Prime:_0x57d831}=_0x5f1298;this[_0x2541b9(0x363)](_0x457169);let _0x49ec30=this[_0x2541b9(0x19e)][_0x2541b9(0x34e)](_0x285c1b,this[_0x2541b9(0x3b1)],this[_0x2541b9(0x154)],_0x57d831,this[_0x2541b9(0x183)]);this['_clearScheduledTask']();let _0x35ffc9=new Date()[_0x2541b9(0x3f7)](),_0x649e3=this['_scheduleCompleteTimestamp']?Math[_0x2541b9(0x3f6)](this[_0x2541b9(0x115)]-_0x35ffc9,0x0):this[_0x2541b9(0x3b5)]();return _0x49ec30[_0x2541b9(0x159)](_0x649e3),_0x49ec30;}throw _0x5f1298[_0x2541b9(0x106)];}catch(_0x53acac){return this[_0x2541b9(0x30d)][_0x2541b9(0x106)](_0x53acac),this[_0x2541b9(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x2e56bd){const _0x10b2a3=_0x4afe6d;if(_0x2e56bd[_0x10b2a3(0x42f)]<=this[_0x10b2a3(0x142)]())return this;throw Error(_0x10b2a3(0x17c));}[_0x4afe6d(0x1fa)](){const _0x2f7883=_0x4afe6d;throw Error(_0x2f7883(0x36a));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x11922c=_0x4afe6d;return this[_0x11922c(0x24f)](),this['_injector']['createInstance'](_0x5146de,this[_0x11922c(0x3b1)],this[_0x11922c(0x154)],null,this['_pendingMutations'],this[_0x11922c(0x183)]);}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x159)](_0x266b6c){const _0x3cb0e2=_0x4afe6d;let _0x42011d=_0x266b6c==null?this[_0x3cb0e2(0x3b5)]():_0x266b6c;this['_scheduleCompleteTimestamp']=new Date()[_0x3cb0e2(0x3f7)]()+_0x42011d,this[_0x3cb0e2(0x295)]=setTimeout(()=>{const _0xa68530=_0x3cb0e2;this[_0xa68530(0x24f)]();let _0xee0234=null;switch(this[_0xa68530(0x154)]){case _0x54340d[_0xa68530(0x395)][_0xa68530(0x3ee)]:_0xee0234=_0x2f6bb7(this['_pendingMutations'],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this['_revisionService'],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x366)]:_0xee0234=this['_pendingMutations'][_0xa68530(0x3bc)](_0x16f984=>_0x16f984['id']===_0x55be24[_0xa68530(0x221)]['id'])?_0xa7ac75(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]):_0x2f6bb7(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this['_univerInstanceService'],this[_0xa68530(0x3a4)],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x2f6)]:_0xee0234=_0x23b44b(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)]['UNIVER_BOARD']:_0xee0234=_0x2f6bb7(this['_pendingMutations'],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x193)]:_0xee0234=_0x2f6bb7(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]);break;default:throw Error(_0xa68530(0x3eb)+this['type']+_0xa68530(0x2c4));}let {changeset:_0x5023af,pendingMutations:_0x5eae95}=_0xee0234;this[_0xa68530(0x183)][_0xa68530(0x35b)](_0x5023af);let _0x776ba=_0x5eae95[_0xa68530(0x414)]?this['_injector'][_0xa68530(0x34e)](_0x34253f,this[_0xa68530(0x3b1)],this[_0xa68530(0x154)],_0x5023af,_0x5eae95,this['_handler'],void 0x0):this[_0xa68530(0x19e)]['createInstance'](_0x4b8fc9,this[_0xa68530(0x3b1)],this[_0xa68530(0x154)],_0x5023af,this['_handler']);_0x776ba[_0xa68530(0x10c)](),this[_0xa68530(0x183)]['onStateChange'](this,_0x776ba);},_0x42011d);}[_0x4afe6d(0x3b5)](){const _0x41c007=_0x4afe6d;var _0x230d2a;let _0x272c5a=this['_configService'][_0x41c007(0x170)](_0x440361);return(_0x230d2a=_0x272c5a==null?void 0x0:_0x272c5a['sendChangesetTimeout'])==null?0x7d0:_0x230d2a;}[_0x4afe6d(0x1e7)](){const _0x4cab66=_0x4afe6d;throw Error(_0x4cab66(0x14a));}['_clearScheduledTask'](){const _0xd1b61d=_0x4afe6d;this[_0xd1b61d(0x295)]!=null&&(clearTimeout(this[_0xd1b61d(0x295)]),this[_0xd1b61d(0x295)]=null);}['_onConflict'](_0x2a0a8e){const _0x41f7f6=_0x4afe6d;return this[_0x41f7f6(0x24f)](),this[_0x41f7f6(0x19e)][_0x41f7f6(0x34e)](_0x4544f7,this['unitID'],this['type'],null,this[_0x41f7f6(0x286)],this['_handler'],_0x2a0a8e);}};_0x503465=_0x285c1b=_0x3bbaf2([_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x1afb9b)),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x54340d['ICommandService']),_0x5c2cf(0x9,_0x54340d['IConfigService']),_0x5c2cf(0xa,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0xc,_0x54340d['IUndoRedoService']),_0x5c2cf(0xd,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x503465);let _0x4b8fc9=_0x1f9ff2=class extends _0x52be27{constructor(_0x587f7b,_0x413713,_0x8226c2,_0x173a9b,_0x2caa9c,_0x4ae761,_0x2ab88a,_0x5ec449,_0x583581,_0x25a56c,_0x5d01de){const _0x4220bd=_0x4afe6d;super(_0x587f7b,_0x413713,_0x8226c2,[],_0x173a9b,_0x2ab88a,_0x25a56c,_0x4ae761,_0x5d01de),this[_0x4220bd(0x19e)]=_0x2caa9c,this[_0x4220bd(0x30d)]=_0x5ec449,this[_0x4220bd(0x294)]=_0x583581,_0x1d93f6(this,_0x4220bd(0x35f),_0x4220bd(0x1ce)),_0x1d93f6(this,_0x4220bd(0x3ac),0x0),_0x1d93f6(this,_0x4220bd(0x126),0x0),_0x1d93f6(this,_0x4220bd(0x1bd),void 0x0),_0x1d93f6(this,'_sender',void 0x0);}[_0x4afe6d(0x452)](_0x31be19){const _0x38fbc0=_0x4afe6d;this[_0x38fbc0(0x24f)]();let _0x40f219=this[_0x38fbc0(0x19e)]['createInstance'](_0x34253f,this[_0x38fbc0(0x3b1)],this[_0x38fbc0(0x154)],this[_0x38fbc0(0x1a2)],[_0x31be19],this[_0x38fbc0(0x183)],this[_0x38fbc0(0x1bd)]);return _0x40f219[_0x38fbc0(0x10c)](),_0x40f219;}[_0x4afe6d(0x152)](_0x29a148){const _0x4d4390=_0x4afe6d;if(this[_0x4d4390(0x275)](_0x29a148))return this[_0x4d4390(0x24f)](),this[_0x4d4390(0x19e)][_0x4d4390(0x34e)](_0x5ac534,this[_0x4d4390(0x3b1)],this[_0x4d4390(0x154)],this[_0x4d4390(0x1a2)],[],null,[_0x29a148],this['_handler']);try{let _0x1b7953=this[_0x4d4390(0x294)]['transformChangesets']([_0x29a148],[this['_awaitingChangeset']],!0x1);if((0x0,_0x510a16['isTransformChangesetsSuccess'])(_0x1b7953)){let {c1Prime:_0x510510,c2Prime:_0x3e794b}=_0x1b7953;this[_0x4d4390(0x363)](_0x510510[0x0]),_0x3e794b[0x0][_0x4d4390(0x100)]=this['_getCurrentRevision'](),this[_0x4d4390(0x24f)]();let _0x2d7120=this[_0x4d4390(0x19e)][_0x4d4390(0x34e)](_0x1f9ff2,this['unitID'],this['type'],_0x3e794b[0x0],this[_0x4d4390(0x183)]);return _0x2d7120['_updateLocalCache'](),_0x2d7120;}throw _0x1b7953[_0x4d4390(0x106)];}catch(_0x48babb){return this[_0x4d4390(0x30d)][_0x4d4390(0x106)](_0x48babb),this[_0x4d4390(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x14fa3d){const _0x31794a=_0x4afe6d;this['_clearScheduledTask']();let _0x3e8211=this[_0x31794a(0x3a4)][_0x31794a(0x318)](this[_0x31794a(0x3b1)]);if(_0x14fa3d[_0x31794a(0x42f)]<=_0x3e8211)return this;if(this[_0x31794a(0x275)](_0x14fa3d))return this[_0x31794a(0x19e)][_0x31794a(0x34e)](_0x5ac534,this[_0x31794a(0x3b1)],this[_0x31794a(0x154)],this[_0x31794a(0x1a2)],[],_0x14fa3d[_0x31794a(0x42f)],[],this[_0x31794a(0x183)]);this[_0x31794a(0xf6)]();let _0x320c9a=this[_0x31794a(0x19e)][_0x31794a(0x34e)](_0x5d7f84,this[_0x31794a(0x3b1)],this[_0x31794a(0x154)],this['_handler']);return _0x320c9a[_0x31794a(0x10c)](),_0x320c9a;}[_0x4afe6d(0x1fa)](_0xa84426){const _0x1d9610=_0x4afe6d;return this[_0x1d9610(0x179)](!!(_0xa84426!=null&&_0xa84426[_0x1d9610(0x27e)]));}['onRemoteRetry'](_0x3a24eb){const _0x4c32d9=_0x4afe6d;return this[_0x4c32d9(0x126)]>_0x1d95e0?this[_0x4c32d9(0x3e7)]():(this['_resendTimer']=_0x6b50d3(this[_0x4c32d9(0x3ac)],{'timeout':this[_0x4c32d9(0x3ac)],'reqId':_0x3a24eb[_0x4c32d9(0x2ac)]}),this[_0x4c32d9(0x149)]=this['_resendTimer'][_0x4c32d9(0x40b)](({reqId:_0x530ddc,timeout:_0x53c102})=>{const _0x15ad5f=_0x4c32d9;this[_0x15ad5f(0x236)](_0x530ddc,_0x53c102);}),this);}[_0x4afe6d(0x3e7)](){const _0x37a033=_0x4afe6d;return this[_0x37a033(0x24f)](),this['_injector']['createInstance'](_0x5146de,this[_0x37a033(0x3b1)],this['type'],this[_0x37a033(0x1a2)],[],this[_0x37a033(0x183)]);}[_0x4afe6d(0x374)](){return this;}['resend'](){const _0x13b5d2=_0x4afe6d;this[_0x13b5d2(0x183)][_0x13b5d2(0x35b)](this[_0x13b5d2(0x1a2)]);}[_0x4afe6d(0x179)](_0x3638c4){const _0x35851c=_0x4afe6d;return this['_clearScheduledTask'](),this[_0x35851c(0x19e)][_0x35851c(0x34e)](_0x4544f7,this['unitID'],this[_0x35851c(0x154)],this['_awaitingChangeset'],[],this[_0x35851c(0x183)],_0x3638c4);}[_0x4afe6d(0x236)](_0x35ea2c,_0x47dfe7){const _0x4dff89=_0x4afe6d;var _0x25c422;_0x35ea2c===((_0x25c422=this['_awaitingChangeset'])==null?void 0x0:_0x25c422[_0x4dff89(0x2ac)])&&(this[_0x4dff89(0x1e7)](),this[_0x4dff89(0x3ac)]=_0x47dfe7===0x0?0x3e8:Math[_0x4dff89(0x378)](_0x47dfe7*0x2,_0xb28743),this[_0x4dff89(0x126)]+=this[_0x4dff89(0x3ac)]);}[_0x4afe6d(0x24f)](){const _0x50e266=_0x4afe6d;var _0xf2c38a;(_0xf2c38a=this[_0x50e266(0x149)])==null||_0xf2c38a[_0x50e266(0x187)](),this[_0x50e266(0x3ac)]=0x0,this[_0x50e266(0x126)]=0x0;}};_0x4b8fc9=_0x1f9ff2=_0x3bbaf2([_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x6,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x510a16['ITransformService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0xa,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4b8fc9);let _0x34253f=_0x537763=class extends _0x52be27{constructor(_0x41a0fd,_0xd2210a,_0xf6b264,_0x95ceeb,_0x12cf0b,_0x25e75e,_0x4726b5,_0x2cf23d,_0x488932,_0x2d19b9,_0x4efdc9,_0x30de24,_0x2cf960){const _0x17dc33=_0x4afe6d;super(_0x41a0fd,_0xd2210a,_0xf6b264,_0x95ceeb,_0x12cf0b,_0x488932,_0x30de24,_0x2cf23d,_0x2cf960),this[_0x17dc33(0x19e)]=_0x4726b5,this[_0x17dc33(0x30d)]=_0x2d19b9,this[_0x17dc33(0x294)]=_0x4efdc9,this[_0x17dc33(0x249)]=_0x2cf960,_0x1d93f6(this,'status',_0x17dc33(0x284)),_0x1d93f6(this,_0x17dc33(0x3ac),0x0),_0x1d93f6(this,'_maxTotalRetryTimeout',0x0),_0x1d93f6(this,_0x17dc33(0x1bd),void 0x0),_0x1d93f6(this,'_sender',void 0x0),_0x25e75e&&(this['_resendTimer']=_0x25e75e,this[_0x17dc33(0x149)]=this['_resendTimer'][_0x17dc33(0x40b)](({reqId:_0x4717b3,timeout:_0x41e252})=>{const _0x1dd951=_0x17dc33;this[_0x1dd951(0x236)](_0x4717b3,_0x41e252);}));}['appendMutation'](_0x5276d9){const _0x3b556b=_0x4afe6d;return this[_0x3b556b(0x286)][_0x3b556b(0x399)](_0x5276d9),this;}[_0x4afe6d(0x152)](_0x1a22b1){const _0x523deb=_0x4afe6d;if(this['_checkMissing'](_0x1a22b1))return this[_0x523deb(0x24f)](),this['_injector'][_0x523deb(0x34e)](_0x5ac534,this['unitID'],this[_0x523deb(0x154)],this['_awaitingChangeset'],this[_0x523deb(0x286)],null,[_0x1a22b1],this['_handler']);try{let _0xc61ecd=this[_0x523deb(0x294)][_0x523deb(0x1fd)]([_0x1a22b1],[this['_awaitingChangeset']],!0x1);if((0x0,_0x510a16[_0x523deb(0x3ea)])(_0xc61ecd)){let {c1Prime:_0x9fa5e2,c2Prime:_0x509fb3}=_0xc61ecd,_0x3e666a=this[_0x523deb(0x294)]['transformMutationsWithChangeset'](_0x9fa5e2[0x0],this[_0x523deb(0x286)]);if((0x0,_0x510a16[_0x523deb(0x36c)])(_0x3e666a)){let {c1Prime:_0x669d09,m2Prime:_0xe5271c}=_0x3e666a;return this[_0x523deb(0x363)](_0x669d09),_0x509fb3[0x0][_0x523deb(0x100)]=this[_0x523deb(0x142)](),this[_0x523deb(0x24f)](),this['_injector'][_0x523deb(0x34e)](_0x537763,this[_0x523deb(0x3b1)],this['type'],_0x509fb3[0x0],_0xe5271c,this[_0x523deb(0x183)],void 0x0);}throw _0x3e666a[_0x523deb(0x106)];}throw _0xc61ecd[_0x523deb(0x106)];}catch(_0x39c53a){return this['_logService'][_0x523deb(0x106)](_0x39c53a),this[_0x523deb(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x58e292){const _0xf1d884=_0x4afe6d;this[_0xf1d884(0x24f)]();let _0x3b1f6b=this[_0xf1d884(0x142)]();if(_0x58e292[_0xf1d884(0x42f)]<=_0x3b1f6b)return this;if(this[_0xf1d884(0x275)](_0x58e292))return this[_0xf1d884(0x19e)][_0xf1d884(0x34e)](_0x5ac534,this['unitID'],this[_0xf1d884(0x154)],this[_0xf1d884(0x1a2)],this['_pendingMutations'],_0x58e292[_0xf1d884(0x42f)],[],this[_0xf1d884(0x183)]);this[_0xf1d884(0xf6)]();let _0x4dbf0c=this[_0xf1d884(0x19e)][_0xf1d884(0x34e)](_0x503465,this[_0xf1d884(0x3b1)],this[_0xf1d884(0x154)],this[_0xf1d884(0x286)],this['_handler']);return _0x4dbf0c[_0xf1d884(0x159)](),_0x4dbf0c['_updateLocalCache'](),_0x4dbf0c;}[_0x4afe6d(0x1fa)](_0x322548){return this['_onConflict'](!!(_0x322548!=null&&_0x322548['isPermissionRej']));}[_0x4afe6d(0x122)](_0x17b1e8){const _0x24aad0=_0x4afe6d;return this['_maxTotalRetryTimeout']>_0x1d95e0?this[_0x24aad0(0x3e7)]():(this[_0x24aad0(0x1bd)]=_0x6b50d3(this['_resendTimeout'],{'timeout':this[_0x24aad0(0x3ac)],'reqId':_0x17b1e8[_0x24aad0(0x2ac)]}),this[_0x24aad0(0x149)]=this[_0x24aad0(0x1bd)][_0x24aad0(0x40b)](({reqId:_0x1d2393,timeout:_0xde3058})=>{const _0x1014b0=_0x24aad0;this[_0x1014b0(0x236)](_0x1d2393,_0xde3058);}),this);}['toggleOffline'](){const _0x5af144=_0x4afe6d;return this[_0x5af144(0x24f)](),this[_0x5af144(0x19e)][_0x5af144(0x34e)](_0x5146de,this[_0x5af144(0x3b1)],this[_0x5af144(0x154)],this[_0x5af144(0x1a2)],this[_0x5af144(0x286)],this[_0x5af144(0x183)]);}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x1e7)](){const _0x14fe13=_0x4afe6d;this[_0x14fe13(0x183)][_0x14fe13(0x35b)](this['_awaitingChangeset']);}['_onConflict'](_0x1e0d75){const _0x1f36bc=_0x4afe6d;return this[_0x1f36bc(0x24f)](),this[_0x1f36bc(0x19e)][_0x1f36bc(0x34e)](_0x4544f7,this[_0x1f36bc(0x3b1)],this[_0x1f36bc(0x154)],null,this[_0x1f36bc(0x286)],this['_handler'],_0x1e0d75);}[_0x4afe6d(0x236)](_0x52db25,_0x1f27c3){const _0x430020=_0x4afe6d;var _0x44ab21;_0x52db25===((_0x44ab21=this[_0x430020(0x1a2)])==null?void 0x0:_0x44ab21[_0x430020(0x2ac)])&&(this['resend'](),this[_0x430020(0x3ac)]=_0x1f27c3===0x0?0x3e8:Math['min'](_0x1f27c3*0x2,_0xb28743),this['_maxTotalRetryTimeout']+=this[_0x430020(0x3ac)]);}['_clearScheduledTask'](){const _0x29e1aa=_0x4afe6d;var _0x5553fb;(_0x5553fb=this['_sender'])==null||_0x5553fb['unsubscribe'](),this[_0x29e1aa(0x3ac)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x34253f=_0x537763=_0x3bbaf2([_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x510a16['ITransformService']),_0x5c2cf(0xb,_0x54340d['IUndoRedoService']),_0x5c2cf(0xc,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x34253f);let _0x4544f7=class extends _0x52be27{constructor(_0x362630,_0x10a1b1,_0x32723e,_0x23019f,_0x253e08,_0x5f2799=!0x1,_0x2aa092,_0x48a691,_0x200e0f,_0x20c534,_0x564d4b,_0x323ac6,_0x392ae4){const _0x24d74c=_0x4afe6d;super(_0x362630,_0x10a1b1,_0x32723e,_0x23019f,_0x253e08,_0x48a691,_0x200e0f,_0x20c534,_0x392ae4),this[_0x24d74c(0x2f4)]=_0x5f2799,this[_0x24d74c(0x40e)]=_0x2aa092,this[_0x24d74c(0x441)]=_0x564d4b,this[_0x24d74c(0x30b)]=_0x323ac6,this[_0x24d74c(0x249)]=_0x392ae4,_0x1d93f6(this,_0x24d74c(0x35f),'conflict'),this[_0x24d74c(0x353)](),this['_clearLocalCache'](),this[_0x24d74c(0x3d7)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4afe6d(0x136)](){return this;}[_0x4afe6d(0x1fa)](){return this;}[_0x4afe6d(0x122)](){return this;}[_0x4afe6d(0x3e7)](){return this;}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x1e7)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4afe6d(0x229)](){const _0x14b46d=_0x4afe6d;var _0x50f74a,_0x44f92f,_0x15d789;(_0x50f74a=this['_localCacheService'])==null||(_0x44f92f=_0x50f74a[_0x14b46d(0x3dd)])==null||(_0x44f92f=_0x44f92f['call'](_0x50f74a,this[_0x14b46d(0x3b1)],_0x14b46d(0x1b1)))==null||_0x44f92f['catch'](()=>void 0x0),(_0x15d789=this[_0x14b46d(0x1af)])==null||_0x15d789['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x4afe6d(0x353)](){const _0x46fed4=_0x4afe6d;this[_0x46fed4(0x2f4)]?this['_collaborationUIEventService'][_0x46fed4(0x425)]({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x46fed4(0x425)]({'id':'CONFLICT'});}[_0x4afe6d(0x3d7)](){const _0xd662c5=_0x4afe6d;this[_0xd662c5(0x40e)]['updatePermissionPoint'](new _0x2e3009[(_0xd662c5(0x143))](this['unitID'])['id'],!0x1);}};_0x4544f7=_0x3bbaf2([_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x2f3)])),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0xa,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0xb,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4544f7);let _0x5146de=class extends _0x52be27{constructor(_0x220df1,_0xea9d14,_0x10e41d,_0x24c66f,_0x2cfe2d,_0x1124ed,_0x58569b,_0xbc0706,_0x6b59c4,_0x52e85a){const _0x2d6431=_0x4afe6d;super(_0x220df1,_0xea9d14,_0x10e41d,_0x24c66f,_0x2cfe2d,_0xbc0706,_0x6b59c4,_0x58569b,_0x52e85a),this[_0x2d6431(0x19e)]=_0x1124ed,_0x1d93f6(this,_0x2d6431(0x35f),_0x2d6431(0x296));}[_0x4afe6d(0x452)](_0x4b43cf){const _0x4f8939=_0x4afe6d;return this['_pendingMutations'][_0x4f8939(0x399)](_0x4b43cf),this['_updateLocalCache'](),this;}[_0x4afe6d(0x152)](_0x15acdf){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x4afe6d(0x136)](){const _0x181f7e=_0x4afe6d;throw Error(_0x181f7e(0x108));}[_0x4afe6d(0x1fa)](){const _0x184f20=_0x4afe6d;throw Error(_0x184f20(0x43a));}['onRemoteRetry'](){return this;}[_0x4afe6d(0x3e7)](){return this;}[_0x4afe6d(0x374)](){const _0x54fc69=_0x4afe6d;let {_injector:_0xc7e7e9,_pendingMutations:_0x2dc94b,_awaitingChangeset:_0xe20854,unitID:_0x540489,_handler:_0x4e70ec,type:_0x3dcfab}=this,_0x300308=_0x1ae03f(_0xc7e7e9,_0x540489,_0x3dcfab,_0xe20854,_0x2dc94b,_0x4e70ec);return _0x300308 instanceof _0x503465?_0x300308[_0x54fc69(0x159)]():(_0x300308 instanceof _0x34253f||_0x300308 instanceof _0x4b8fc9)&&_0x300308[_0x54fc69(0x1e7)](),_0x300308;}[_0x4afe6d(0x1e7)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5146de=_0x3bbaf2([_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x8,_0x54340d['IUndoRedoService']),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5146de);let _0x5ac534=class extends _0x52be27{constructor(_0x59051d,_0xb0d5e2,_0x4b0f35,_0x40cc32,_0x2a6baf,_0x4da4d0,_0x19457c,_0x57e762,_0x528850,_0x310d34,_0x4a06b9,_0x1ec9a8,_0x108c2a,_0x1a2b48){const _0x3868ff=_0x4afe6d;super(_0x59051d,_0xb0d5e2,_0x4b0f35,_0x40cc32,_0x19457c,_0x4a06b9,_0x1ec9a8,_0x528850,_0x1a2b48),this[_0x3868ff(0x3c4)]=_0x2a6baf,this[_0x3868ff(0x316)]=_0x4da4d0,this[_0x3868ff(0x19e)]=_0x57e762,this['_logService']=_0x310d34,this['_transformService']=_0x108c2a,this[_0x3868ff(0x249)]=_0x1a2b48,_0x1d93f6(this,_0x3868ff(0x35f),_0x3868ff(0x1da));}[_0x4afe6d(0x109)](_0x5a811f){const _0x3f6e0f=_0x4afe6d;try{if(this[_0x3f6e0f(0x405)](_0x5a811f)[_0x3f6e0f(0x385)])throw Error(_0x3f6e0f(0x33a));if(this[_0x3f6e0f(0x405)]([...this[_0x3f6e0f(0x316)]]['sort']((_0x34fdb8,_0x5c98ca)=>_0x34fdb8['revision']-_0x5c98ca['revision']))[_0x3f6e0f(0x385)])return this[_0x3f6e0f(0x316)]=[],this[_0x3f6e0f(0x10c)](),this[_0x3f6e0f(0x183)]['onMissingChangesets']({'from':this[_0x3f6e0f(0x142)](),'to':0x0}),this;let _0xb8cecc=this[_0x3f6e0f(0x1a2)],_0x54743b=this[_0x3f6e0f(0x286)],_0x4d31c2;if(_0xb8cecc&&_0x54743b['length']!==0x0)_0x4d31c2=this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x34253f,this['unitID'],this[_0x3f6e0f(0x154)],_0xb8cecc,_0x54743b,this[_0x3f6e0f(0x183)],void 0x0);else{if(_0xb8cecc&&_0x54743b[_0x3f6e0f(0x414)]===0x0)_0xb8cecc[_0x3f6e0f(0x100)]=this[_0x3f6e0f(0x142)](),_0x4d31c2=this[_0x3f6e0f(0x19e)]['createInstance'](_0x4b8fc9,this[_0x3f6e0f(0x3b1)],this[_0x3f6e0f(0x154)],_0xb8cecc,this['_handler']);else{if(_0x54743b[_0x3f6e0f(0x414)]!==0x0){let _0x1ef592=this[_0x3f6e0f(0x19e)]['createInstance'](_0x503465,this['unitID'],this[_0x3f6e0f(0x154)],_0x54743b,this['_handler']);_0x1ef592[_0x3f6e0f(0x159)](),_0x4d31c2=_0x1ef592;}else _0x4d31c2=this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x5d7f84,this[_0x3f6e0f(0x3b1)],this[_0x3f6e0f(0x154)],this[_0x3f6e0f(0x183)]);}}return _0x4d31c2['_updateLocalCache'](),_0x4d31c2;}catch(_0x117faf){return this[_0x3f6e0f(0x30d)][_0x3f6e0f(0x106)](_0x3f6e0f(0x232),'failed\x20to\x20apply\x20missed\x20changesets!',_0x117faf),this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x4544f7,this['unitID'],this[_0x3f6e0f(0x154)],this['_awaitingChangeset'],this[_0x3f6e0f(0x286)],this[_0x3f6e0f(0x183)],!0x1);}}[_0x4afe6d(0x405)](_0x5bf641){const _0x568463=_0x4afe6d;this[_0x568463(0x3e5)]();for(let _0xe60d5b=0x0;_0xe60d5b<_0x5bf641['length'];_0xe60d5b++){let _0x3520bf=_0x5bf641[_0xe60d5b],_0x40b953=this[_0x568463(0x142)]();if(!(_0x3520bf[_0x568463(0x42f)]<=_0x40b953)){if(_0x3520bf[_0x568463(0x42f)]>_0x40b953+0x1)return{'missingChangesets':!0x0};if(this[_0x568463(0x11a)](_0x3520bf)){this[_0x568463(0x41e)]();continue;}this[_0x568463(0x3ff)](_0x3520bf),this[_0x568463(0x3e5)]();}}return{'missingChangesets':!0x1};}[_0x4afe6d(0x3ff)](_0x1894de){const _0x19af52=_0x4afe6d;let _0x1604b0=_0x1894de,_0x1008a1=this[_0x19af52(0x1a2)];if(_0x1008a1){let _0x43bcdc=this[_0x19af52(0x294)]['transformChangesets']([_0x1894de],[_0x1008a1],!0x1);if(!(0x0,_0x510a16[_0x19af52(0x3ea)])(_0x43bcdc))throw _0x43bcdc[_0x19af52(0x106)];_0x1604b0=_0x43bcdc[_0x19af52(0x1d5)][0x0],_0x1008a1=_0x43bcdc['c2Prime'][0x0];}let _0x101661=this[_0x19af52(0x286)];if(_0x101661[_0x19af52(0x414)]){let _0x18e043=this[_0x19af52(0x294)]['transformMutationsWithChangeset'](_0x1604b0,_0x101661);if(!(0x0,_0x510a16[_0x19af52(0x36c)])(_0x18e043))throw _0x18e043['error'];_0x1604b0=_0x18e043['c1Prime'],_0x101661=_0x18e043[_0x19af52(0x422)];}this['_executeRemoteChangeset'](_0x1604b0),_0x1008a1&&(_0x1008a1[_0x19af52(0x100)]=this['_getCurrentRevision']()),this[_0x19af52(0x1a2)]=_0x1008a1,this['_pendingMutations']=_0x101661;}[_0x4afe6d(0x3e5)](){const _0x3d720c=_0x4afe6d;if(!this[_0x3d720c(0x1a2)]||this[_0x3d720c(0x3c4)]==null)return;let _0x4fcd8e=this[_0x3d720c(0x142)]();if(this[_0x3d720c(0x3c4)]<=_0x4fcd8e)throw Error(_0x3d720c(0x1c4)+this[_0x3d720c(0x3c4)]+'.');this['_acknowledgedAwaitingRevision']===_0x4fcd8e+0x1&&this['_acknowledgeAwaiting']();}[_0x4afe6d(0x41e)](){const _0x13c561=_0x4afe6d;this[_0x13c561(0xf6)](),this[_0x13c561(0x1a2)]=null,this[_0x13c561(0x3c4)]=null;}[_0x4afe6d(0x11a)](_0xe9c4bb){const _0x3c02f2=_0x4afe6d;let _0x365118=this[_0x3c02f2(0x1a2)];return!_0x365118||!_0x365118[_0x3c02f2(0x373)]||_0x365118[_0x3c02f2(0x2ac)]===null||_0x365118['reqId']===void 0x0?!0x1:_0xe9c4bb['unitID']===_0x365118[_0x3c02f2(0x3b1)]&&_0xe9c4bb[_0x3c02f2(0x373)]===_0x365118[_0x3c02f2(0x373)]&&_0xe9c4bb[_0x3c02f2(0x2ac)]===_0x365118[_0x3c02f2(0x2ac)];}[_0x4afe6d(0x1e7)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4afe6d(0x452)](_0x1ff8fb){const _0xe48567=_0x4afe6d;return this[_0xe48567(0x286)][_0xe48567(0x399)](_0x1ff8fb),this;}['onRemoteChangeset'](_0x58106b){const _0x98e155=_0x4afe6d;return this['_queuedRemoteChangesets'][_0x98e155(0x399)](_0x58106b),this;}['onRemoteAck'](_0x3956f8){const _0x243a33=_0x4afe6d;if(this[_0x243a33(0x1a2)]){let _0x55b801=this[_0x243a33(0x142)]();return _0x3956f8['revision']<=_0x55b801||(_0x55b801+0x1===_0x3956f8[_0x243a33(0x42f)]?(this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x3956f8[_0x243a33(0x42f)]),this;}if(_0x3956f8[_0x243a33(0x42f)]<=this[_0x243a33(0x142)]())return this;throw Error(_0x243a33(0x32e));}[_0x4afe6d(0x1fa)](_0x5d2ba0){const _0xbaa5b2=_0x4afe6d;return this[_0xbaa5b2(0x179)](!!(_0x5d2ba0!=null&&_0x5d2ba0[_0xbaa5b2(0x27e)]));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x1a6e5e=_0x4afe6d;return this[_0x1a6e5e(0x19e)][_0x1a6e5e(0x34e)](_0x5146de,this[_0x1a6e5e(0x3b1)],this['type'],this[_0x1a6e5e(0x1a2)],this['_pendingMutations'],this[_0x1a6e5e(0x183)]);}['toggleOnline'](){return this;}[_0x4afe6d(0x179)](_0x165440){const _0x17a589=_0x4afe6d;return this['_injector'][_0x17a589(0x34e)](_0x4544f7,this[_0x17a589(0x3b1)],this['type'],this[_0x17a589(0x1a2)],this[_0x17a589(0x286)],this['_handler'],_0x165440);}};_0x5ac534=_0x3bbaf2([_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x8,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0xc,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5ac534);function _0x1ae03f(_0x2a6474,_0x16a96d,_0x26fed1,_0x20a4ed,_0x5d53f9,_0x963494){const _0x20e16a=_0x4afe6d;return _0x20a4ed&&_0x5d53f9[_0x20e16a(0x414)]?_0x2a6474[_0x20e16a(0x34e)](_0x34253f,_0x16a96d,_0x26fed1,_0x20a4ed,_0x5d53f9,_0x963494,void 0x0):_0x20a4ed?_0x2a6474[_0x20e16a(0x34e)](_0x4b8fc9,_0x16a96d,_0x26fed1,_0x20a4ed,_0x963494):_0x5d53f9['length']?_0x2a6474['createInstance'](_0x503465,_0x16a96d,_0x26fed1,_0x5d53f9,_0x963494):_0x2a6474[_0x20e16a(0x34e)](_0x5d7f84,_0x16a96d,_0x26fed1,_0x963494);}let _0x558136=class extends _0x54340d['RxDisposable']{get[_0x4afe6d(0x2ab)](){const _0xe69809=_0x4afe6d;return this[_0xe69809(0x24a)];}constructor(_0x1e8a02,_0x340baa,_0x14cb7e,_0x3814f0,_0x2b0df9,_0x36e782,_0x5f42be,_0x5b3c45,_0x259364,_0x3f0a7c,_0x52e5c9,_0x26f0ff,_0x2859a5,_0x30884a){const _0x578ed2=_0x4afe6d;super(),this['unitID']=_0x1e8a02,this[_0x578ed2(0x26a)]=_0x340baa,this[_0x578ed2(0x1ae)]=_0x14cb7e,this[_0x578ed2(0x19e)]=_0x3814f0,this['_compressMutationService']=_0x2b0df9,this['_localeService']=_0x36e782,this['_revisionService']=_0x5f42be,this[_0x578ed2(0x34c)]=_0x5b3c45,this[_0x578ed2(0x18f)]=_0x259364,this[_0x578ed2(0x30d)]=_0x3f0a7c,this[_0x578ed2(0x24b)]=_0x52e5c9,this[_0x578ed2(0x40e)]=_0x26f0ff,this[_0x578ed2(0x39f)]=_0x2859a5,this[_0x578ed2(0x1af)]=_0x30884a,_0x1d93f6(this,'_state$',new _0x501c4e['BehaviorSubject'](null)),_0x1d93f6(this,_0x578ed2(0x3ad),this[_0x578ed2(0x305)][_0x578ed2(0x371)]()),_0x1d93f6(this,_0x578ed2(0x24a),void 0x0),_0x1d93f6(this,_0x578ed2(0x32b),!0x1),_0x1d93f6(this,'_changesetSessionId',''),_0x1d93f6(this,'_changesetReqId',0x0),_0x1d93f6(this,_0x578ed2(0xfd),this['state$'][_0x578ed2(0x33c)]((0x0,_0x501c4e[_0x578ed2(0x299)])(_0x3e2c78=>_0x3e2c78?_0x3e2c78[_0x578ed2(0x35f)]:'offline'),(0x0,_0x501c4e[_0x578ed2(0x195)])({'bufferSize':0x1,'refCount':!0x0}))),_0x1d93f6(this,_0x578ed2(0x1ee),!0x1),_0x1d93f6(this,_0x578ed2(0x2b4),[]);}async['init'](){const _0x4169cf=_0x4afe6d;if(this[_0x4169cf(0x2ab)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x4afe6d(0x209)](){const _0x2e7cdc=_0x4afe6d;return this[_0x2e7cdc(0x32b)]=!0x0,(0x0,_0x54340d[_0x2e7cdc(0x11e)])(()=>{const _0x2178d5=_0x2e7cdc;this[_0x2178d5(0x32b)]=!0x1,this[_0x2178d5(0x346)]();});}[_0x4afe6d(0x34b)](_0x523f05){const _0x4bac56=_0x4afe6d;this[_0x4bac56(0x280)](_0x523f05);}[_0x4afe6d(0x124)](_0x39a750){const _0x284240=_0x4afe6d;this['_state']=_0x39a750,this['_state$'][_0x284240(0x16a)](_0x39a750);}async[_0x4afe6d(0x172)](){const _0x347330=_0x4afe6d;if(this[_0x347330(0x124)](await this[_0x347330(0x145)]()),this[_0x347330(0x39f)]){var _0x3b2179;(_0x3b2179=this[_0x347330(0x39f)])==null||_0x3b2179['editingUnit'](this[_0x347330(0x3b1)]),this[_0x347330(0x13b)](this['_singleActiveUnitService'][_0x347330(0x301)](this[_0x347330(0x3b1)])[_0x347330(0x40b)](_0x4913c2=>{const _0x397c07=_0x347330;this[_0x397c07(0x30d)][_0x397c07(0x103)](_0x397c07(0x39b),'editing\x20status\x20changed\x20to',_0x4913c2),_0x4913c2===0x1?(this[_0x397c07(0x34c)][_0x397c07(0x425)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x397c07(0x40e)][_0x397c07(0x2b1)](new _0x2e3009[(_0x397c07(0x143))](this[_0x397c07(0x3b1)])['id'],!0x1),this[_0x397c07(0x40e)][_0x397c07(0x336)](!0x1)):(this['_permissionService'][_0x397c07(0x2b1)](new _0x2e3009[(_0x397c07(0x143))](this[_0x397c07(0x3b1)])['id'],!0x0),this[_0x397c07(0x40e)][_0x397c07(0x336)](!0x0));}));}let _0x537126=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$'][_0x347330(0x40b)](_0xcb326d=>{const _0x2ad3c4=_0x347330;_0xcb326d===0x3?this[_0x2ad3c4(0x327)](_0x537126):_0xcb326d===0x2&&(_0x537126=!0x0,this[_0x2ad3c4(0x340)]());})),this[_0x347330(0x13b)](this[_0x347330(0x26a)][_0x347330(0x2c0)]['subscribe'](_0x27cc65=>{const _0x1d360a=_0x347330;try{switch(_0x27cc65[_0x1d360a(0x10f)]){case _0x510a16['CollaborationEvent'][_0x1d360a(0x1f7)]:this['_onRemoteChangeset']((0x0,_0x510a16[_0x1d360a(0x1a9)])(_0x27cc65[_0x1d360a(0x2b8)]));break;case _0x510a16[_0x1d360a(0x17d)][_0x1d360a(0x1b9)]:this['_onRemoteACK'](_0x27cc65['data']);break;case _0x510a16['CollaborationEvent'][_0x1d360a(0x190)]:this['_onRemoteRejected']();break;case _0x510a16['CollaborationEvent'][_0x1d360a(0x409)]:this[_0x1d360a(0x28c)](_0x27cc65[_0x1d360a(0x2b8)]);break;case _0x510a16['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x1d360a(0x365)](_0x27cc65[_0x1d360a(0x2b8)][_0x1d360a(0x114)][_0x1d360a(0x299)](_0x7da5f4=>(0x0,_0x510a16[_0x1d360a(0x1a9)])(_0x7da5f4)));break;case _0x510a16['CollaborationEvent']['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x510a16[_0x1d360a(0x17d)]['UNISCRIPT_RUN']:break;}}catch(_0x540a2e){throw console[_0x1d360a(0x106)]('Error\x20on\x20receiving\x20event',_0x540a2e),_0x540a2e;}})),this[_0x347330(0x24a)];}['_unlockTransition'](){const _0x303aee=_0x4afe6d;this[_0x303aee(0x1ee)]=!0x1;}[_0x4afe6d(0x36d)](){const _0xbf3ba4=_0x4afe6d;if(this[_0xbf3ba4(0x1ee)])throw Error('[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.');this[_0xbf3ba4(0x1ee)]=!0x0;}[_0x4afe6d(0x280)](_0x1497c6){const _0x122c95=_0x4afe6d;this[_0x122c95(0x36d)](),this['_updateState'](this[_0x122c95(0x24a)]['appendMutation'](_0x1497c6)),this[_0x122c95(0x2e9)]();}[_0x4afe6d(0x2e1)](_0x3ceb46){const _0x47e9e6=_0x4afe6d;if(!(_0x3ceb46[_0x47e9e6(0x42f)]<=this[_0x47e9e6(0x3a4)][_0x47e9e6(0x318)](this[_0x47e9e6(0x3b1)]))){if(this[_0x47e9e6(0x32b)]){this['_remoteChangesetQueue'][_0x47e9e6(0x399)](_0x3ceb46);return;}this[_0x47e9e6(0x356)](_0x3ceb46);}}[_0x4afe6d(0x346)](){const _0x17a6ba=_0x4afe6d;this[_0x17a6ba(0x2b4)]['forEach'](_0x35e1eb=>this['_applyRemoteChangeset'](_0x35e1eb)),this[_0x17a6ba(0x2b4)]=[];}[_0x4afe6d(0x356)](_0x22fbad){const _0x412aab=_0x4afe6d;let _0x2cd076=this['_compressMutationService'][_0x412aab(0x141)][_0x412aab(0x2d0)](this[_0x412aab(0x321)]['interceptor'][_0x412aab(0x1a0)]()[_0x412aab(0x3cb)])(_0x22fbad[_0x412aab(0x29a)],null)||_0x22fbad[_0x412aab(0x29a)],_0x5d0ddb={..._0x22fbad,'mutations':_0x2cd076};this[_0x412aab(0x36d)](),this[_0x412aab(0x124)](this['_state'][_0x412aab(0x152)](_0x5d0ddb)),this[_0x412aab(0x2e9)]();}[_0x4afe6d(0x16e)](_0x17b44c){const _0x7405dc=_0x4afe6d;this['_lockTransition'](),this[_0x7405dc(0x124)](this[_0x7405dc(0x24a)][_0x7405dc(0x136)](_0x17b44c)),this[_0x7405dc(0x2e9)]();}['_onRemoteRejected'](_0x3e31c0){const _0x5a1544=_0x4afe6d;this[_0x5a1544(0x36d)](),this['_updateState'](this['_state'][_0x5a1544(0x1fa)](_0x3e31c0)),this['_unlockTransition']();}[_0x4afe6d(0x28c)](_0x141699){const _0x4998d1=_0x4afe6d;this[_0x4998d1(0x36d)](),this['_updateState'](this[_0x4998d1(0x24a)][_0x4998d1(0x122)](_0x141699)),this[_0x4998d1(0x2e9)]();}['_onFetchMissResult'](_0x1a5858){const _0x5adeb7=_0x4afe6d;if(!(this[_0x5adeb7(0x24a)]instanceof _0x5ac534))throw TypeError(_0x5adeb7(0x1a8));let _0x4b3709=_0x1a5858['map'](_0x4bda4f=>{const _0x1cb47d=_0x5adeb7;let _0x152fef=this['_compressMutationService'][_0x1cb47d(0x141)][_0x1cb47d(0x2d0)](this['_compressMutationService'][_0x1cb47d(0x141)]['getInterceptPoints']()[_0x1cb47d(0x3cb)])(_0x4bda4f[_0x1cb47d(0x29a)],null)||_0x4bda4f[_0x1cb47d(0x29a)];return{..._0x4bda4f,'mutations':_0x152fef};});this[_0x5adeb7(0x36d)](),this['_updateState'](this[_0x5adeb7(0x24a)][_0x5adeb7(0x109)](_0x4b3709)),this['_unlockTransition']();}['_toggleOffline'](){const _0x52e3e1=_0x4afe6d;this[_0x52e3e1(0x36d)](),this[_0x52e3e1(0x124)](this[_0x52e3e1(0x24a)]['toggleOffline']()),this['_unlockTransition']();}[_0x4afe6d(0x327)](_0x3b5c73=!0x1){const _0x53d98b=_0x4afe6d;this['_lockTransition'](),this['_updateState'](this['_state'][_0x53d98b(0x374)]()),this['_unlockTransition']();let _0x37672d=this[_0x53d98b(0x24a)];_0x3b5c73&&_0x37672d instanceof _0x5d7f84&&(this[_0x53d98b(0x36d)](),this['_updateState'](_0x37672d['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x400a9f=>{const _0x239df5=_0x4f14;this['session']['sessionStatus$'][_0x239df5(0x33c)]((0x0,_0x501c4e[_0x239df5(0x250)])(0x1))['subscribe'](async _0x5a9b70=>{const _0x3c9407=_0x239df5;_0x400a9f(await this[_0x3c9407(0x241)](_0x5a9b70===0x3));});});}[_0x4afe6d(0x2bb)](){const _0x6cdc6b=_0x4afe6d;let _0x5a002e=this[_0x6cdc6b(0x3b1)];return{'onStateChange':(_0x3906cd,_0x1ed505)=>{const _0x1c2c3e=_0x6cdc6b;if(_0x3906cd!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3906cd['status']+_0x1c2c3e(0x1e4)+_0x1ed505[_0x1c2c3e(0x35f)]+_0x1c2c3e(0x387)+this[_0x1c2c3e(0x24a)][_0x1c2c3e(0x35f)]);this['_updateState'](_0x1ed505);},'onSendChangeset':_0x2f464b=>{const _0x4210b9=_0x6cdc6b;_0x2f464b[_0x4210b9(0x373)]||(_0x2f464b['sid']=this['_changesetSessionId'],_0x2f464b[_0x4210b9(0x2ac)]=++this[_0x4210b9(0x3f4)]);let _0x585d90={'eventID':_0x510a16[_0x4210b9(0x17d)][_0x4210b9(0x454)],'data':{'unitID':_0x2f464b[_0x4210b9(0x3b1)],'unitType':this[_0x4210b9(0x1ae)],'changeset':_0x2f464b,'memberID':this[_0x4210b9(0x26a)]['getMemberID']()}};this['session'][_0x4210b9(0x255)](_0x585d90,this[_0x4210b9(0x3b1)]);},'onMissingChangesets':({from:_0x422f1f,to:_0x528080})=>{const _0x4342fc=_0x6cdc6b;this['_logService'][_0x4342fc(0x103)](_0x4342fc(0x39b),_0x4342fc(0x237)+_0x422f1f+_0x4342fc(0x2ed)+_0x528080);let _0x3f4eba={'eventID':_0x510a16[_0x4342fc(0x17d)][_0x4342fc(0x44f)],'data':{'unitID':_0x5a002e,'unitType':this[_0x4342fc(0x1ae)],'from':_0x422f1f,'to':_0x528080}};this['session'][_0x4342fc(0x255)](_0x3f4eba,this[_0x4342fc(0x3b1)]);}};}async[_0x4afe6d(0x241)](_0x5bb270){const _0xa74150=_0x4afe6d;var _0x18b381,_0x429d92,_0x573998;let _0x4841d2=await((_0x18b381=this[_0xa74150(0x1af)])==null?void 0x0:_0x18b381[_0xa74150(0x447)](this['unitID'])),_0x58a909=(_0x429d92=_0x4841d2==null?void 0x0:_0x4841d2[_0xa74150(0x29a)])==null?[]:_0x429d92,_0x1668e3=(_0x573998=_0x4841d2==null?void 0x0:_0x4841d2['awaitingChangeset'])==null?null:_0x573998,_0x50526c=!!(_0x1668e3!=null&&_0x1668e3['sid'])&&!!(_0x1668e3!=null&&_0x1668e3[_0xa74150(0x2ac)]);this[_0xa74150(0x423)]=_0x50526c?_0x1668e3[_0xa74150(0x373)]:(0x0,_0x510a16['uuidv4'])(),this[_0xa74150(0x3f4)]=_0x50526c?_0x1668e3[_0xa74150(0x2ac)]:0x0;let _0x13f51c=this['unitID'];try{this[_0xa74150(0x3db)](_0x1668e3,_0x58a909);}catch(_0x2de25e){this[_0xa74150(0x30d)][_0xa74150(0x106)](_0x2de25e);}let _0x2c981f=this[_0xa74150(0x2bb)]();if(_0x5bb270){let _0x34e962=_0x1ae03f(this[_0xa74150(0x19e)],_0x13f51c,this[_0xa74150(0x1ae)],_0x1668e3,_0x58a909,_0x2c981f);return _0x34e962 instanceof _0x503465?_0x34e962[_0xa74150(0x159)]():(_0x34e962 instanceof _0x34253f||_0x34e962 instanceof _0x4b8fc9)&&_0x34e962[_0xa74150(0x1e7)](),_0x34e962;}return this['_injector'][_0xa74150(0x34e)](_0x5146de,_0x13f51c,this[_0xa74150(0x1ae)],_0x1668e3,_0x58a909,_0x2c981f);}[_0x4afe6d(0x3db)](_0x15152b,_0x4c5603){const _0x55e3f0=_0x4afe6d;var _0x1871b8,_0x533d96;let _0x3399f5=this['_compressMutationService'][_0x55e3f0(0x141)][_0x55e3f0(0x2d0)](this[_0x55e3f0(0x321)][_0x55e3f0(0x141)]['getInterceptPoints']()[_0x55e3f0(0x3cb)]);(_0x1871b8=_0x3399f5((_0x15152b==null?void 0x0:_0x15152b[_0x55e3f0(0x29a)])||[],null))==null||_0x1871b8['forEach'](_0x451712=>this[_0x55e3f0(0x24b)][_0x55e3f0(0x3e8)](_0x451712['id'],_0x451712[_0x55e3f0(0x311)])),(_0x533d96=_0x3399f5(_0x4c5603||[],null))==null||_0x533d96[_0x55e3f0(0x3a3)](_0x4eb89e=>this[_0x55e3f0(0x24b)]['executeCommand'](_0x4eb89e['id'],_0x4eb89e[_0x55e3f0(0x311)]));}};_0x558136=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x558136);let _0x4e92fa=class extends _0x558136{constructor(_0x26245f,_0x51bf51,_0x4cb124,_0x4bb3ed,_0x1f80d3,_0x2abd41,_0x5f4e02,_0x4b23b2,_0x1c0239,_0x578c06,_0x337d50,_0x4c556d,_0x2424ca,_0x2d3916,_0x3f79c3){const _0x238dc0=_0x4afe6d;super(_0x26245f,_0x4cb124,_0x51bf51,_0x4bb3ed,_0x1f80d3,_0x2abd41,_0x5f4e02,_0x4b23b2,_0x1c0239,_0x578c06,_0x337d50,_0x4c556d,_0x2d3916,_0x3f79c3),this[_0x238dc0(0x3b1)]=_0x26245f,this[_0x238dc0(0x154)]=_0x51bf51,this[_0x238dc0(0x215)]=_0x2424ca,_0x1d93f6(this,_0x238dc0(0x150),null);}[_0x4afe6d(0x15f)](_0x5b0885){const _0x391847=_0x4afe6d;this[_0x391847(0x150)]=_0x5b0885;}['dispose'](){const _0x4cd165=_0x4afe6d;this[_0x4cd165(0x150)]=null,super['dispose']();}[_0x4afe6d(0x2bb)](){const _0x5da029=_0x4afe6d;let _0x309c79=super[_0x5da029(0x2bb)]();return _0x309c79['onTransformIME']=_0x5e6321=>{const _0x1578fc=_0x5da029;var _0x332d7b,_0x287efb;return(_0x332d7b=this[_0x1578fc(0x150)])==null||(_0x287efb=_0x332d7b[_0x1578fc(0x2dd)])==null?void 0x0:_0x287efb['call'](_0x332d7b,_0x5e6321);},_0x309c79[_0x5da029(0x34d)]=_0x72837f=>{const _0x2b8c86=_0x5da029;var _0x2af6a1,_0x5985cc;return(_0x2af6a1=this[_0x2b8c86(0x150)])==null||(_0x5985cc=_0x2af6a1[_0x2b8c86(0x34d)])==null?void 0x0:_0x5985cc[_0x2b8c86(0x178)](_0x2af6a1,_0x72837f);},_0x309c79[_0x5da029(0x3a5)]=_0x4036a7=>{const _0x1f9707=_0x5da029;var _0x4f19ab,_0x34c9b5;return(_0x4f19ab=this['_handlerCallback'])==null||(_0x34c9b5=_0x4f19ab[_0x1f9707(0x3a5)])==null?void 0x0:_0x34c9b5[_0x1f9707(0x178)](_0x4f19ab,_0x4036a7);},_0x309c79['onSyncEditingCollabCursor']=_0x10dd2c=>{const _0x5a6dc0=_0x5da029;var _0x1ace54,_0x370f98;return(_0x1ace54=this[_0x5a6dc0(0x150)])==null||(_0x370f98=_0x1ace54[_0x5a6dc0(0x38f)])==null?void 0x0:_0x370f98[_0x5a6dc0(0x178)](_0x1ace54,_0x10dd2c);},_0x309c79[_0x5da029(0x2a5)]=_0x2dcbe5=>{const _0x4e1558=_0x5da029;var _0x16a892,_0x18eecd,_0x51f0a7;return(_0x16a892=(_0x18eecd=this[_0x4e1558(0x150)])==null||(_0x51f0a7=_0x18eecd[_0x4e1558(0x2a5)])==null?void 0x0:_0x51f0a7[_0x4e1558(0x178)](_0x18eecd,_0x2dcbe5))==null?_0x2dcbe5:_0x16a892;},_0x309c79[_0x5da029(0x3be)]=_0x4e0580=>{const _0xe1ce0a=_0x5da029;var _0x4087b7,_0xe093db,_0x4f1b07;return(_0x4087b7=(_0xe093db=this[_0xe1ce0a(0x150)])==null||(_0x4f1b07=_0xe093db[_0xe1ce0a(0x3be)])==null?void 0x0:_0x4f1b07['call'](_0xe093db,_0x4e0580))==null?_0x4e0580:_0x4087b7;},_0x309c79;}async[_0x4afe6d(0x172)](){const _0x3942dc=_0x4afe6d;let _0xa40c12=await super[_0x3942dc(0x172)]();return this[_0x3942dc(0x13b)](this[_0x3942dc(0x215)][_0x3942dc(0x29e)][_0x3942dc(0x40b)](_0x2ee6be=>{const _0x917880=_0x3942dc;if(_0x2ee6be==null||_0x2ee6be[_0x917880(0x3a1)]!==this[_0x917880(0x3b1)])return;let {commandId:_0x1f87cb,redoState:_0x5e9320,unitId:_0x440c04}=_0x2ee6be,_0xe23678={'id':_0x1f87cb,'type':_0x54340d[_0x917880(0x2b5)][_0x917880(0x3da)],'params':{'unitId':_0x440c04,'actions':_0x5e9320[_0x917880(0x25c)],'textRanges':null}};this[_0x917880(0x280)](_0xe23678);})),this[_0x3942dc(0x13b)](this[_0x3942dc(0x24b)][_0x3942dc(0x198)]((_0x406c5e,_0x8952cb)=>{const _0x5ea7c5=_0x3942dc;if(_0x406c5e[_0x5ea7c5(0x154)]!==_0x54340d[_0x5ea7c5(0x2b5)][_0x5ea7c5(0x3da)]||_0x8952cb!=null&&_0x8952cb[_0x5ea7c5(0x2d9)]||_0x8952cb!=null&&_0x8952cb[_0x5ea7c5(0x453)]||_0x406c5e['id']===_0x55be24[_0x5ea7c5(0x221)]['id'])return;let _0x237f82=_0x406c5e[_0x5ea7c5(0x311)];if((_0x237f82==null?void 0x0:_0x237f82[_0x5ea7c5(0x3a1)])!==this[_0x5ea7c5(0x3b1)])return;let _0x1222f7=_0x406c5e,_0x4bbb92=this[_0x5ea7c5(0x321)]['interceptor'][_0x5ea7c5(0x2d0)](this[_0x5ea7c5(0x321)][_0x5ea7c5(0x141)][_0x5ea7c5(0x1a0)]()[_0x5ea7c5(0x344)])([_0x1222f7],this[_0x5ea7c5(0x18f)])||[_0x1222f7];this[_0x5ea7c5(0x280)](_0x4bbb92[0x0]);})),_0xa40c12;}};_0x4e92fa=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x55be24[_0x4afe6d(0x3c6)])),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xe,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4e92fa);let _0x315430=class extends _0x558136{constructor(_0x4fdd35,_0x5ecd11,_0x2a0100,_0x343b18,_0xf5ea5d,_0x2dfdea,_0xc25013,_0x4e8780,_0x5b81bc,_0x6cc03f,_0x1cfe3f,_0x2c87a7,_0x4ca596,_0x4360ec){const _0x4b7dfe=_0x4afe6d;super(_0x4fdd35,_0x2a0100,_0x5ecd11,_0x343b18,_0xf5ea5d,_0x2dfdea,_0xc25013,_0x4e8780,_0x5b81bc,_0x6cc03f,_0x1cfe3f,_0x2c87a7,_0x4ca596,_0x4360ec),this['unitID']=_0x4fdd35,this[_0x4b7dfe(0x154)]=_0x5ecd11;}async[_0x4afe6d(0x172)](){const _0xd6bbf3=_0x4afe6d;let _0x4182de=await super[_0xd6bbf3(0x172)]();return this[_0xd6bbf3(0x13b)](this[_0xd6bbf3(0x24b)][_0xd6bbf3(0x198)]((_0x4ecbdb,_0x37a206)=>{const _0x549e36=_0xd6bbf3;if(_0x4ecbdb[_0x549e36(0x154)]!==_0x54340d[_0x549e36(0x2b5)][_0x549e36(0x3da)]||_0x37a206!=null&&_0x37a206[_0x549e36(0x2d9)]||_0x37a206!=null&&_0x37a206[_0x549e36(0x453)])return;let _0x442a9d=_0x4ecbdb[_0x549e36(0x311)];if((_0x442a9d==null?void 0x0:_0x442a9d['unitId'])!==this[_0x549e36(0x3b1)])return;let _0x42d527=_0x4ecbdb,_0x28fb2b=this['_compressMutationService'][_0x549e36(0x141)][_0x549e36(0x2d0)](this[_0x549e36(0x321)][_0x549e36(0x141)][_0x549e36(0x1a0)]()[_0x549e36(0x344)])([_0x42d527],this['_univerInstanceService'])||[_0x42d527];this[_0x549e36(0x280)](_0x28fb2b[0x0]);})),_0x4182de;}};_0x315430=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x510a16['CompressMutationService'])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d['Optional'])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x315430);let _0x143458=class extends _0x558136{constructor(_0x3d55ba,_0x7bb9c8,_0x247e0f,_0x1d6d3e,_0x5b0edb,_0x430cd5,_0x10e7e2,_0x577f51,_0xe0ab2d,_0x4be1ca,_0x2ac953,_0x557a85,_0x439fcd,_0x4d952d,_0x318c76){const _0x4b0278=_0x4afe6d;super(_0x3d55ba,_0x247e0f,_0x7bb9c8,_0x1d6d3e,_0x5b0edb,_0x430cd5,_0x10e7e2,_0xe0ab2d,_0x4be1ca,_0x2ac953,_0x557a85,_0x439fcd,_0x4d952d,_0x318c76),this['unitID']=_0x3d55ba,this[_0x4b0278(0x154)]=_0x7bb9c8,this[_0x4b0278(0x2a1)]=_0x577f51;}['_createHandler'](){const _0x3c1401=_0x4afe6d;let _0x27c7ed=super['_createHandler']();return _0x27c7ed[_0x3c1401(0x3a5)]=_0x4964ba=>this['_sheetTransformSelectionsService']['transformSelections'](_0x4964ba),_0x27c7ed;}async[_0x4afe6d(0x172)](){const _0x2582dd=_0x4afe6d;let _0x541467=await super[_0x2582dd(0x172)]();return this[_0x2582dd(0x13b)](this[_0x2582dd(0x24b)][_0x2582dd(0x198)]((_0x4a17b5,_0x455c87)=>{const _0x477e51=_0x2582dd;if(_0x4a17b5['type']!==_0x54340d[_0x477e51(0x2b5)][_0x477e51(0x3da)]||_0x455c87!=null&&_0x455c87[_0x477e51(0x2d9)]||_0x455c87!=null&&_0x455c87[_0x477e51(0x453)])return;let _0x2ca9ac=_0x4a17b5[_0x477e51(0x311)];if((_0x2ca9ac==null?void 0x0:_0x2ca9ac[_0x477e51(0x3a1)])!==this[_0x477e51(0x3b1)])return;let _0x8d997d=_0x4a17b5,_0x5db51e=this[_0x477e51(0x321)][_0x477e51(0x141)][_0x477e51(0x2d0)](this[_0x477e51(0x321)][_0x477e51(0x141)]['getInterceptPoints']()[_0x477e51(0x344)])([_0x8d997d],this[_0x477e51(0x18f)])||[_0x8d997d];this[_0x477e51(0x280)](_0x5db51e[0x0]);})),_0x541467;}};_0x143458=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['CompressMutationService'])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x2269b7)),_0x5c2cf(0x8,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x9,_0x54340d['IUniverInstanceService']),_0x5c2cf(0xa,_0x54340d['ILogService']),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xc,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xe,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x143458);let _0x513627=class extends _0x558136{constructor(_0x384581,_0x21cf38,_0x471a26,_0xda1560,_0x989ab7,_0x32da31,_0x32a32f,_0x524b98,_0x3dccc6,_0x6ff783,_0xba6827,_0x4eeb10,_0x30a6bd,_0x5de448){const _0x465c7b=_0x4afe6d;super(_0x384581,_0x471a26,_0x21cf38,_0xda1560,_0x989ab7,_0x32da31,_0x32a32f,_0x524b98,_0x3dccc6,_0x6ff783,_0xba6827,_0x4eeb10,_0x30a6bd,_0x5de448),this[_0x465c7b(0x3b1)]=_0x384581,this[_0x465c7b(0x154)]=_0x21cf38;}async['_init'](){const _0x50e889=_0x4afe6d;let _0x23d826=await super[_0x50e889(0x172)]();return this[_0x50e889(0x13b)](this['_commandService'][_0x50e889(0x198)]((_0x4f580d,_0xe50bf6)=>{const _0x19a373=_0x50e889;if(_0x4f580d['type']!==_0x54340d[_0x19a373(0x2b5)][_0x19a373(0x3da)]||_0xe50bf6!=null&&_0xe50bf6['fromCollab']||_0xe50bf6!=null&&_0xe50bf6[_0x19a373(0x453)])return;let _0x154eef=_0x4f580d[_0x19a373(0x311)];if((_0x154eef==null?void 0x0:_0x154eef['unitId'])!==this[_0x19a373(0x3b1)])return;let _0x5f16cf=_0x4f580d,_0x5d6508=this[_0x19a373(0x321)][_0x19a373(0x141)][_0x19a373(0x2d0)](this[_0x19a373(0x321)][_0x19a373(0x141)][_0x19a373(0x1a0)]()[_0x19a373(0x344)])([_0x5f16cf],this[_0x19a373(0x18f)])||[_0x5f16cf];this[_0x19a373(0x280)](_0x5d6508[0x0]);})),_0x23d826;}};_0x513627=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x513627);let _0x3a23e5=class extends _0x558136{constructor(_0x1ce6d0,_0x25df75,_0x1bc9d2,_0x4654ab,_0x1a69f0,_0xd7175a,_0x27eda0,_0x3baf36,_0xf3c050,_0xfe3620,_0x49c09e,_0x1a9eaa,_0x1bc620,_0x9e8ab1){const _0x2d915f=_0x4afe6d;super(_0x1ce6d0,_0x1bc9d2,_0x25df75,_0x4654ab,_0x1a69f0,_0xd7175a,_0x27eda0,_0x3baf36,_0xf3c050,_0xfe3620,_0x49c09e,_0x1a9eaa,_0x1bc620,_0x9e8ab1),this[_0x2d915f(0x3b1)]=_0x1ce6d0,this[_0x2d915f(0x154)]=_0x25df75;}async[_0x4afe6d(0x172)](){const _0xb2f483=_0x4afe6d;let _0xcfc1ad=await super['_init']();return this[_0xb2f483(0x13b)](this[_0xb2f483(0x24b)][_0xb2f483(0x198)]((_0x2b9855,_0x152aef)=>{const _0x56b903=_0xb2f483;if(_0x2b9855[_0x56b903(0x154)]!==_0x54340d[_0x56b903(0x2b5)][_0x56b903(0x3da)]||_0x152aef!=null&&_0x152aef[_0x56b903(0x2d9)]||_0x152aef!=null&&_0x152aef[_0x56b903(0x453)])return;let _0x2e095c=_0x2b9855[_0x56b903(0x311)];if((_0x2e095c==null?void 0x0:_0x2e095c[_0x56b903(0x3a1)])!==this[_0x56b903(0x3b1)])return;let _0x45b43f=_0x2b9855,_0x81a201=this[_0x56b903(0x321)][_0x56b903(0x141)][_0x56b903(0x2d0)](this[_0x56b903(0x321)][_0x56b903(0x141)]['getInterceptPoints']()[_0x56b903(0x344)])([_0x45b43f],this[_0x56b903(0x18f)])||[_0x45b43f];this[_0x56b903(0x280)](_0x81a201[0x0]);})),_0xcfc1ad;}};_0x3a23e5=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d['Inject'])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x3a23e5);let _0x5cc1e5=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x3d2));function _0x4dd5df(_0x21afcc){const _0xe93f61=_0x4afe6d;let _0x4cf963=_0x21afcc['data'],_0x11125a=JSON[_0xe93f61(0x1f8)](_0x4cf963);switch(_0x11125a['cmd']){case _0x3a112b[_0xe93f61(0x2dc)][_0xe93f61(0x434)]:case _0x3a112b['CombCmd'][_0xe93f61(0x1b7)]:{let _0x564269=_0x11125a[_0xe93f61(0x1bb)];return{..._0x11125a,'data':_0x564269,'cmd':_0x11125a[_0xe93f61(0x239)]};}case _0x3a112b['CombCmd']['JOIN']:{let _0x1ee52e=_0x11125a[_0xe93f61(0x36f)];return{..._0x11125a,'data':_0x1ee52e,'cmd':_0x11125a[_0xe93f61(0x239)]};}case _0x3a112b['CombCmd'][_0xe93f61(0x319)]:{let _0x1f7efa=_0x11125a['collaMsg'];switch(_0x1f7efa[_0xe93f61(0x10f)]){case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1cc)]:var _0x5178a4;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x5178a4=_0x1f7efa[_0xe93f61(0x156)])==null?void 0x0:_0x5178a4['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['CHANGESET_ACK']:var _0x2dd240;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x2dd240=_0x1f7efa['csAckEvent'])==null?void 0x0:_0x2dd240['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['NEW_CHANGESETS']:var _0x389133;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x389133=_0x1f7efa[_0xe93f61(0x1e1)])==null?void 0x0:_0x389133['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x190)]:var _0x324ad5;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x324ad5=_0x1f7efa['csRejEvent'])==null?void 0x0:_0x324ad5['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['CHANGESET_SHOULD_RETRY']:var _0x2de232;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x2de232=_0x1f7efa[_0xe93f61(0x212)])==null?void 0x0:_0x2de232['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent'][_0xe93f61(0x242)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa['updateCursorEvent']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1b4)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x1df)]},'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x132)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa['leaveEvent']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1c3)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3fc)]},'cmd':_0x11125a['cmd']};case _0x510a16['CollaborationEvent'][_0xe93f61(0x35a)]:case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x3d3)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x33d)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3fc)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x11125a,'data':_0x1f7efa,'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x222)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x393)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent'][_0xe93f61(0x350)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3b3)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x10d)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x2c1)]},'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x3c0)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3e0)]},'cmd':_0x11125a['cmd']};default:return _0x11125a;}}default:return _0x11125a;}}function _0x5e867b(_0x2eeaa6){const _0x41a333=_0x4afe6d;switch(_0x2eeaa6[_0x41a333(0x239)]){case _0x3a112b['CombCmd']['HEARTBEAT']:case _0x3a112b[_0x41a333(0x2dc)]['HELLO']:return JSON['stringify']({'cmd':_0x2eeaa6['cmd'],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)]});case _0x3a112b[_0x41a333(0x2dc)][_0x41a333(0x401)]:{let _0x56ffc5;switch(_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x10f)]){case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x242)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x242)],'updateCursorEvent':_0x2eeaa6['data'][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x132)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x132)],'leaveEvent':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x1b4)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent'][_0x41a333(0x1b4)],'joinEvent':_0x2eeaa6['data']['data']};break;case _0x510a16['CollaborationEvent'][_0x41a333(0x1c3)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent'][_0x41a333(0x1c3)],'liveShareNewHost':_0x2eeaa6['data'][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x3d3)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x436)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)]['LIVESHARE_REQUEST_HOST']:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x13e)],'liveShareRequestHost':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x56ffc5={'eventID':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x10f)]};}return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6[_0x41a333(0x239)],'routeKey':_0x2eeaa6['routeKey'],'collaMsg':_0x56ffc5});}case _0x3a112b['CombCmd'][_0x41a333(0x39d)]:return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6[_0x41a333(0x239)],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)],'joinReq':_0x2eeaa6['data']});case _0x3a112b[_0x41a333(0x2dc)][_0x41a333(0x240)]:return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6['cmd'],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)],'leaveReq':_0x2eeaa6['data']});default:throw Error(_0x41a333(0x1ed));}}let _0x30a197=(0x0,_0x54340d[_0x4afe6d(0x227)])('univer-pro.collaboration-client-socket-service');function _0x11f10f(_0x1db2d5,_0x5973e3,_0x90284d){const _0xe3b047=_0x4afe6d;return _0x1db2d5+'/'+_0x5973e3+'/unit/'+_0x90284d+_0xe3b047(0x388);}let _0xadadc1=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x180304,_0x27f313,_0xe615da,_0x2924c7,_0x34c294){const _0xcb40a2=_0x4afe6d;super(),this[_0xcb40a2(0x19e)]=_0x180304,this[_0xcb40a2(0x1e3)]=_0x27f313,this[_0xcb40a2(0x3b8)]=_0xe615da,this[_0xcb40a2(0x30d)]=_0x2924c7,this[_0xcb40a2(0x247)]=_0x34c294;}[_0x4afe6d(0x367)](_0x13b113){const _0x8566=_0x4afe6d;let _0xeb694f=this[_0x8566(0x19e)][_0x8566(0x28f)](_0x3c3932[_0x8566(0x11d)]);if(!_0xeb694f)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x10cc81=_0xeb694f[_0x8566(0x42a)](_0x13b113);if(!_0x10cc81)throw Error(_0x8566(0x26e));let _0x23096c=new _0x54340d['DisposableCollection'](),_0x2aabd7=new _0x501c4e[(_0x8566(0x1d6))]();_0x23096c[_0x8566(0x1fc)](_0x10cc81[_0x8566(0x1b5)]['subscribe'](_0x464f48=>_0x2aabd7[_0x8566(0x16a)](_0x464f48))),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d['toDisposable'])(()=>_0x2aabd7[_0x8566(0x228)]()));let _0x56b15a=new _0x501c4e[(_0x8566(0x1d6))]();_0x23096c['add'](_0x10cc81[_0x8566(0x41a)]['subscribe'](_0x10636e=>_0x56b15a['next'](_0x10636e))),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d[_0x8566(0x11e)])(()=>_0x56b15a[_0x8566(0x228)]()));let _0x3ea370=new _0x501c4e['Subject']();_0x23096c[_0x8566(0x1fc)](_0x10cc81[_0x8566(0x208)][_0x8566(0x40b)](_0x149246=>{const _0x4ebd0b=_0x8566;let _0x3684bb=_0x4dd5df(_0x149246);_0x3ea370[_0x4ebd0b(0x16a)](_0x3684bb);})),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d['toDisposable'])(()=>_0x3ea370['complete']()));let _0x6a6c49,_0x235470=()=>{const _0x5cd43d=_0x8566;_0x56b15a['next'](new Event(_0x5cd43d(0x1ef))),_0x2aabd7['next'](new Event(_0x5cd43d(0x1ef))),_0x6a6c49[_0x5cd43d(0x3ed)]();};return _0x6a6c49={'memberID':'','close$':_0x2aabd7[_0x8566(0x371)](),'error$':_0x56b15a[_0x8566(0x371)](),'open$':_0x10cc81[_0x8566(0x1c0)],'message$':_0x3ea370[_0x8566(0x371)](),'send':_0x40eccf=>{const _0x27390b=_0x8566;if(_0x40eccf[_0x27390b(0x239)]===_0x3a112b[_0x27390b(0x2dc)][_0x27390b(0x401)]){if(_0x40eccf[_0x27390b(0x2b8)][_0x27390b(0x10f)]===_0x510a16['CollaborationEvent'][_0x27390b(0x454)]){this['_submitChangeset'](_0x6a6c49,_0x40eccf[_0x27390b(0x2b8)])['catch'](_0x35c8b2=>{const _0x2f6e9c=_0x27390b;this[_0x2f6e9c(0x30d)][_0x2f6e9c(0x106)](_0x35c8b2),_0x235470();});return;}if(_0x40eccf['data'][_0x27390b(0x10f)]===_0x510a16['CollaborationEvent'][_0x27390b(0x44f)]){let _0x5b86d4=_0x40eccf[_0x27390b(0x2b8)];this[_0x27390b(0x1a7)](_0x5b86d4)[_0x27390b(0x330)](_0x28225a=>{const _0x26f787=_0x27390b;_0x3ea370['next']({'cmd':_0x3a112b[_0x26f787(0x2dc)][_0x26f787(0x319)],'code':_0x3a112b['CmdRspCode']['OK'],'routeKey':_0x5b86d4['data']['unitID'],'routeType':'','data':{'eventID':_0x510a16[_0x26f787(0x17d)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x28225a}}});})[_0x27390b(0x332)](_0x4c21e5=>{const _0x14f268=_0x27390b;this[_0x14f268(0x30d)][_0x14f268(0x106)](_0x4c21e5),_0x235470();});return;}}_0x10cc81[_0x27390b(0x255)](_0x5e867b(_0x40eccf));},'close':()=>{const _0x3f1053=_0x8566;_0x10cc81[_0x3f1053(0x3ed)](),_0x23096c[_0x3f1053(0x445)]();}},_0x6a6c49;}async['_submitChangeset'](_0x543ed0,_0x515494){const _0x1b932d=_0x4afe6d;var _0x338eec;let {unitType:_0x59ae25,unitID:_0x1b41d6,changeset:_0x2b5452}=_0x515494[_0x1b932d(0x2b8)],_0x1fcca9={'unitID':_0x1b41d6,'memberID':_0x543ed0[_0x1b932d(0x41c)],'type':_0x59ae25,'changeset':(0x0,_0x510a16[_0x1b932d(0x18d)])(_0x2b5452)},_0x52f25a=this[_0x1b932d(0x3b8)][_0x1b932d(0x170)](_0x440361),_0x3801a7=_0x11f10f((_0x338eec=_0x52f25a==null?void 0x0:_0x52f25a[_0x1b932d(0x25f)])==null?_0x1b932d(0x2eb):_0x338eec,_0x59ae25,_0x1b41d6);try{await this[_0x1b932d(0x1e3)][_0x1b932d(0x381)](_0x3801a7,{'body':_0x1fcca9});}catch(_0x41e456){throw this['_logService'][_0x1b932d(0x106)](_0x1b932d(0x238),_0x1b932d(0x2fc)),_0x41e456;}}async[_0x4afe6d(0x1a7)](_0x36f079){const _0x1fdcb3=_0x4afe6d;let {unitID:_0x1379e9,from:_0x3864f2,to:_0x317142,unitType:_0x45952c}=_0x36f079[_0x1fdcb3(0x2b8)];return(await this[_0x1fdcb3(0x247)][_0x1fdcb3(0x246)]({'metadata':void 0x0},{'unitID':_0x1379e9,'type':_0x45952c,'from':_0x3864f2,'to':_0x317142}))['changesets'][_0x1fdcb3(0x299)](_0x13af9b=>((_0x13af9b['mutations']===null||_0x13af9b[_0x1fdcb3(0x29a)]===void 0x0)&&(_0x13af9b[_0x1fdcb3(0x29a)]=[]),_0x13af9b));}};_0xadadc1=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x54340d['ILogService']),_0x5c2cf(0x4,_0x510a16['ISnapshotServerService'])],_0xadadc1);let _0x3a5b27=(0x0,_0x54340d[_0x4afe6d(0x227)])('univer-pro.collaboration-client-adapter-service');function _0x1c4d33(_0x44e6e5={}){const _0x4b97f3=_0x4afe6d;return _0x44e6e5['resolveUnit']?{'resolveUnit':_0x44e6e5[_0x4b97f3(0x3c2)]}:{'resolveUnit':_0x45c317=>({'target':{'unitId':_0x45c317[_0x4b97f3(0x3a1)],'unitType':_0x45c317[_0x4b97f3(0x3ec)]}})};}function _0x5f133c(_0x53831a,_0x2cba83,_0xc48fda){const _0x21579b=_0x4afe6d;var _0x18659;let _0xbc83d1=_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x220)];if(_0xbc83d1!=null&&_0xbc83d1[_0x21579b(0x410)]()==='')throw Error(_0x21579b(0x105));if(!_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3a1)])throw Error(_0x21579b(0x14e));return{'localUnitId':_0x53831a,'unitType':_0x2cba83,'target':{'endpoint':_0xbc83d1,'unitId':_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3a1)],'unitType':(_0x18659=_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3ec)])==null?_0x2cba83:_0x18659},'changeset':_0xc48fda[_0x21579b(0x3ab)]};}let _0x1ef492=class extends _0x54340d['Disposable']{constructor(_0x43165b,_0x4c1633,_0xf9b01f,_0x21f98d,_0x1b55f6,_0x2294fd,_0x18e58e){const _0x56250d=_0x4afe6d;super(),this['_injector']=_0x43165b,this['_logService']=_0x4c1633,this[_0x56250d(0x3b8)]=_0xf9b01f,this[_0x56250d(0x32a)]=_0x21f98d,this[_0x56250d(0x30b)]=_0x1b55f6,this[_0x56250d(0x175)]=_0x2294fd,this['_networkConditionService']=_0x18e58e,_0x1d93f6(this,'_sessions',new Map()),_0x1d93f6(this,'_pendingSessions',new Map()),_0x1d93f6(this,'_sessionChannels',new Map()),_0x1d93f6(this,'_socketChannels',new Map()),_0x1d93f6(this,_0x56250d(0x2a3),this[_0x56250d(0x379)](void 0x0)[_0x56250d(0x2a3)][_0x56250d(0x371)]()),_0x1d93f6(this,_0x56250d(0x20a),new _0x501c4e[(_0x56250d(0x283))](0x0)),_0x1d93f6(this,'status$',this[_0x56250d(0x20a)][_0x56250d(0x371)]()),this['_listenToNetworkCondition']();}[_0x4afe6d(0x171)](){const _0x4f3d98=_0x4afe6d;this['_networkConditionService']&&this[_0x4f3d98(0x13b)](this['_networkConditionService'][_0x4f3d98(0x435)]['subscribe'](_0x2441e0=>{const _0x2c88ea=_0x4f3d98;_0x2441e0&&this[_0x2c88ea(0x326)](),_0x2441e0||this[_0x2c88ea(0x2d8)][_0x2c88ea(0x3a3)](_0x4d45d3=>this[_0x2c88ea(0x41b)](_0x4d45d3));}));}['dispose'](){const _0x55826e=_0x4afe6d;super[_0x55826e(0x445)](),this[_0x55826e(0x2d8)]['forEach'](_0x2d6ad8=>{const _0x26d604=_0x55826e;var _0x4b1f2d,_0xe86fb9;(_0x4b1f2d=_0x2d6ad8[_0x26d604(0x406)])==null||_0x4b1f2d[_0x26d604(0x187)](),_0x2d6ad8[_0x26d604(0x406)]=null,this[_0x26d604(0x20d)](_0x2d6ad8),this[_0x26d604(0x111)](_0x2d6ad8),this['_clearHeartbeatTimer'](_0x2d6ad8),(_0xe86fb9=_0x2d6ad8[_0x26d604(0x2a3)][_0x26d604(0x22a)]())==null||_0xe86fb9['close'](),_0x2d6ad8[_0x26d604(0x2a3)][_0x26d604(0x228)]();}),this[_0x55826e(0x2d8)][_0x55826e(0x426)](),this[_0x55826e(0x2c3)][_0x55826e(0x3a3)](_0x415a5e=>_0x415a5e[_0x55826e(0x445)]()),this[_0x55826e(0x2c3)]['clear'](),this[_0x55826e(0x42d)][_0x55826e(0x426)](),this[_0x55826e(0x20a)][_0x55826e(0x228)]();}async[_0x4afe6d(0x2ef)](_0x127177,_0x415b10){const _0x40e852=_0x4afe6d;if(this[_0x40e852(0x2c3)][_0x40e852(0x2e6)](_0x127177))return this['_sessions'][_0x40e852(0x28f)](_0x127177);let _0xd9e3a0=this[_0x40e852(0x3b0)][_0x40e852(0x28f)](_0x127177);if(_0xd9e3a0)return _0xd9e3a0;let _0x5f68bf=this[_0x40e852(0x3c7)](_0x127177,_0x415b10);this['_pendingSessions']['set'](_0x127177,_0x5f68bf);try{return await _0x5f68bf;}finally{this['_pendingSessions'][_0x40e852(0x151)](_0x127177);}}async[_0x4afe6d(0x3c7)](_0x2a96fc,_0x369356){const _0x35d010=_0x4afe6d;let _0x3da2d5=await this['_resolveSessionIdentity'](_0x2a96fc,_0x369356),_0x57dd34=this['_getSocketChannel'](_0x3da2d5[_0x35d010(0x12f)]['endpoint']);this[_0x35d010(0x2d3)](_0x57dd34);let _0x81a9ab=this['_injector'][_0x35d010(0x34e)](_0x180b79,_0x3da2d5,_0x57dd34['socket$'][_0x35d010(0x371)]());return this['_sessions'][_0x35d010(0x437)](_0x2a96fc,_0x81a9ab),this[_0x35d010(0x42d)]['set'](_0x2a96fc,_0x57dd34[_0x35d010(0x22b)]),_0x81a9ab;}[_0x4afe6d(0x14f)](_0x4a038d){const _0x2f2b3d=_0x4afe6d;let _0x47322d=this[_0x2f2b3d(0x2c3)]['get'](_0x4a038d),_0x15ffad=this[_0x2f2b3d(0x42d)][_0x2f2b3d(0x28f)](_0x4a038d);if(_0x47322d&&(this[_0x2f2b3d(0x2c3)]['delete'](_0x4a038d),this['_sessionChannels']['delete'](_0x4a038d),_0x47322d[_0x2f2b3d(0x3ed)]()),_0x15ffad&&!this[_0x2f2b3d(0x127)](_0x15ffad)){var _0xbeed8d;let _0x1f3d94=this['_socketChannels'][_0x2f2b3d(0x28f)](_0x15ffad);_0x1f3d94==null||(_0xbeed8d=_0x1f3d94[_0x2f2b3d(0x2a3)][_0x2f2b3d(0x22a)]())==null||_0xbeed8d[_0x2f2b3d(0x3ed)]();}}[_0x4afe6d(0x326)](){const _0x1fa516=_0x4afe6d;(this[_0x1fa516(0x2d8)][_0x1fa516(0x389)]?[...this[_0x1fa516(0x2d8)][_0x1fa516(0x2f8)]()]:[this[_0x1fa516(0x379)](void 0x0)])[_0x1fa516(0x3a3)](_0x5edb1a=>{const _0x2eadcf=_0x1fa516;_0x5edb1a[_0x2eadcf(0x2df)]=0x0,this[_0x2eadcf(0x20d)](_0x5edb1a),this['_tryReconnect'](_0x5edb1a);});}['_clearRetryConnectingTimer'](_0x928b1){const _0x1922bd=_0x4afe6d;_0x928b1[_0x1922bd(0x2aa)]!=null&&(clearTimeout(_0x928b1[_0x1922bd(0x2aa)]),_0x928b1[_0x1922bd(0x2aa)]=null);}async['_createSocket'](_0x356342){const _0x3019f5=_0x4afe6d;var _0x2b7f21,_0x5b6524;let _0x9e52a4=this[_0x3019f5(0x3b8)][_0x3019f5(0x170)](_0x440361),_0xab4e3a=(_0x2b7f21=(_0x5b6524=_0x356342[_0x3019f5(0x220)])==null?_0x9e52a4==null?void 0x0:_0x9e52a4[_0x3019f5(0x44b)]:_0x5b6524)==null?_0x1ee18d:_0x2b7f21,_0x5ede08=await this['_socketService']['createSocket'](_0xab4e3a);return _0x356342[_0x3019f5(0xf9)]=_0x5ede08,_0x5ede08;}async[_0x4afe6d(0x2d3)](_0x1408d5){const _0x42a6c1=_0x4afe6d;try{var _0x7e056a,_0x4b442b;let _0x2a301c=(_0x7e056a=(_0x4b442b=_0x1408d5['socket$'][_0x42a6c1(0x22a)]())==null?_0x1408d5[_0x42a6c1(0xf9)]:_0x4b442b)==null?await this[_0x42a6c1(0x413)](_0x1408d5):_0x7e056a;if(_0x2a301c){var _0x153284;let _0x30de76=_0x2a301c[_0x42a6c1(0x255)];_0x2a301c[_0x42a6c1(0x255)]=_0x58afa9=>(_0x58afa9[_0x42a6c1(0x239)]!==_0x3a112b['CombCmd'][_0x42a6c1(0x240)]&&this[_0x42a6c1(0x392)](_0x1408d5),_0x30de76['apply'](_0x2a301c,[_0x58afa9])),(_0x153284=_0x1408d5[_0x42a6c1(0x406)])==null||_0x153284['unsubscribe'](),_0x1408d5[_0x42a6c1(0x406)]=null,_0x1408d5['socketMessageSubscription']=_0x2a301c[_0x42a6c1(0x208)][_0x42a6c1(0x40b)](_0x5e4a49=>this[_0x42a6c1(0x260)](_0x1408d5,_0x2a301c,_0x5e4a49)),_0x2a301c[_0x42a6c1(0x41a)][_0x42a6c1(0x33c)]((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))[_0x42a6c1(0x40b)](_0x595ee2=>this[_0x42a6c1(0x30d)]['error'](_0x42a6c1(0x29f),_0x595ee2)),_0x2a301c[_0x42a6c1(0x1c0)]['pipe']((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))[_0x42a6c1(0x40b)](()=>{const _0x12ee52=_0x42a6c1;this[_0x12ee52(0x2da)](_0x1408d5,_0x2a301c);}),_0x2a301c[_0x42a6c1(0x1b5)][_0x42a6c1(0x33c)]((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))['subscribe'](_0x242c81=>{const _0x3ec2f3=_0x42a6c1;this[_0x3ec2f3(0x30d)][_0x3ec2f3(0x103)](_0x3ec2f3(0x349),_0x3ec2f3(0x421),_0x242c81),this[_0x3ec2f3(0x267)](_0x1408d5);});}}catch(_0x3497e5){this[_0x42a6c1(0x30d)][_0x42a6c1(0x106)](_0x3497e5),this[_0x42a6c1(0x267)](_0x1408d5);}}[_0x4afe6d(0x2da)](_0x5ed5d4,_0x30b1a7){const _0x474f41=_0x4afe6d;this[_0x474f41(0x30d)][_0x474f41(0x103)](_0x474f41(0x349),_0x474f41(0x113)),_0x30b1a7[_0x474f41(0x255)]({'cmd':_0x3a112b['CombCmd'][_0x474f41(0x1b7)]}),this[_0x474f41(0x392)](_0x5ed5d4);}['_onOffline'](_0x563ec4){const _0x15344e=_0x4afe6d;_0x563ec4[_0x15344e(0x205)]=!0x1,_0x563ec4[_0x15344e(0xf9)]=null,this['_status$']['next'](0x2),_0x563ec4[_0x15344e(0x2a3)][_0x15344e(0x16a)](null),this[_0x15344e(0x111)](_0x563ec4),this['_clearHeartbeatTimer'](_0x563ec4);}[_0x4afe6d(0x267)](_0x171a1c){const _0x439907=_0x4afe6d;var _0xb55ea9;this[_0x439907(0x41b)](_0x171a1c),this[_0x439907(0x127)](_0x171a1c[_0x439907(0x22b)])&&(_0x171a1c[_0x439907(0x2df)]<((_0xb55ea9=this[_0x439907(0x3b8)][_0x439907(0x170)](_0x439907(0x1d7)))==null?0x3:_0xb55ea9)?(this[_0x439907(0x30b)]['emitEvent']({'id':_0x439907(0x110)}),this[_0x439907(0x2e8)](_0x171a1c)):this[_0x439907(0x30b)][_0x439907(0x425)]({'id':'SOCKET_FAILED'}));}[_0x4afe6d(0x2e8)](_0x2bdb27){const _0x1abf93=_0x4afe6d;var _0x285918;let _0x20ed0f=_0x2bdb27['retryCount'],_0x1e5945=this[_0x1abf93(0x3b8)][_0x1abf93(0x170)](_0x440361),_0x3f64c6=_0x20ed0f===0x0?0x0:((_0x285918=_0x1e5945==null?void 0x0:_0x1e5945[_0x1abf93(0x383)])==null?0x4e20:_0x285918)*0x2**_0x20ed0f;_0x2bdb27[_0x1abf93(0x2aa)]=setTimeout(()=>{const _0x38ae8c=_0x1abf93;clearTimeout(_0x2bdb27[_0x38ae8c(0x2aa)]),_0x2bdb27['retryConnectingTimer']=null,this[_0x38ae8c(0x2d3)](_0x2bdb27);},_0x3f64c6),_0x2bdb27['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x5c2818,_0x26113f){const _0x49f699=_0x4afe6d;return _0x5f133c(_0x5c2818,_0x26113f,await this[_0x49f699(0x175)]['resolveUnit']({'unitId':_0x5c2818,'unitType':_0x26113f}));}['_onMessage'](_0x39960c,_0x1d89db,_0x45bf0a){const _0x156e58=_0x4afe6d;let {cmd:_0x198400}=_0x45bf0a;_0x198400===_0x3a112b[_0x156e58(0x2dc)][_0x156e58(0x1b7)]&&!_0x39960c[_0x156e58(0x205)]&&(_0x1d89db[_0x156e58(0x41c)]=_0x45bf0a[_0x156e58(0x2b8)]['memberID'],_0x39960c[_0x156e58(0x2a3)]['next'](_0x1d89db),this[_0x156e58(0x20a)]['next'](0x3),_0x39960c[_0x156e58(0x205)]=!0x0,_0x39960c[_0x156e58(0xf9)]=null),_0x198400===_0x3a112b['CombCmd'][_0x156e58(0x434)]&&this['_clearTimeoutTimer'](_0x39960c),this[_0x156e58(0x392)](_0x39960c);}['_hasSessionsForEndpoint'](_0x4d1f03){const _0x10786e=_0x4afe6d;return[...this[_0x10786e(0x42d)]['values']()][_0x10786e(0x1d8)](_0x10d603=>_0x10d603===_0x4d1f03);}[_0x4afe6d(0x379)](_0x1a3278){const _0x1b995f=_0x4afe6d;let _0x11753d=_0x1a3278==null?'':_0x1a3278,_0x35e68b=this[_0x1b995f(0x2d8)][_0x1b995f(0x28f)](_0x11753d);if(_0x35e68b)return _0x35e68b;let _0x2de6cb={'endpointKey':_0x11753d,'endpoint':_0x1a3278,'socket$':new _0x501c4e[(_0x1b995f(0x283))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x11753d,_0x2de6cb),_0x2de6cb;}[_0x4afe6d(0x392)](_0xea395c){const _0x1dec80=_0x4afe6d;var _0x2047f8;this[_0x1dec80(0x101)](_0xea395c),_0xea395c[_0x1dec80(0x2bc)]=setTimeout(()=>this[_0x1dec80(0x201)](_0xea395c),(_0x2047f8=this['_configService'][_0x1dec80(0x170)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x2047f8);}[_0x4afe6d(0x201)](_0x19257a){const _0x556dbe=_0x4afe6d;_0x19257a[_0x556dbe(0x2a3)][_0x556dbe(0x22a)]()['send']({'cmd':_0x3a112b['CombCmd'][_0x556dbe(0x434)]}),this[_0x556dbe(0x155)](_0x19257a);}['_waitForHeartbeatResponse'](_0x476d8f){const _0x3e5fe3=_0x4afe6d;var _0x2e882f;_0x476d8f[_0x3e5fe3(0x269)]=setTimeout(()=>this[_0x3e5fe3(0x267)](_0x476d8f),(_0x2e882f=this[_0x3e5fe3(0x3b8)][_0x3e5fe3(0x170)](_0x3e5fe3(0x263)))==null?_0x3eabd5:_0x2e882f);}[_0x4afe6d(0x101)](_0x3fe8dc){const _0x14a555=_0x4afe6d;_0x3fe8dc[_0x14a555(0x2bc)]!=null&&(clearTimeout(_0x3fe8dc[_0x14a555(0x2bc)]),_0x3fe8dc['sendHeartbeatTimer']=null);}[_0x4afe6d(0x111)](_0x1c43a0){const _0x309e1a=_0x4afe6d;_0x1c43a0[_0x309e1a(0x269)]!=null&&(clearTimeout(_0x1c43a0[_0x309e1a(0x269)]),_0x1c43a0['timeoutTimer']=null);}};_0x1ef492=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x30a197),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x5,_0x3a5b27),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x5cc1e5))],_0x1ef492);let _0x3ac1c6=class extends _0x54340d[_0x4afe6d(0x2bf)]{constructor(_0x2ae543,_0x85b76d,_0xfe3149,_0x1d6d41){const _0x1b26b4=_0x4afe6d;var _0x280059;super(),this[_0x1b26b4(0x19e)]=_0x2ae543,this[_0x1b26b4(0x26d)]=_0x85b76d,this['_configService']=_0xfe3149,this[_0x1b26b4(0x18f)]=_0x1d6d41,_0x1d93f6(this,_0x1b26b4(0x226),new Map()),_0x1d93f6(this,_0x1b26b4(0x1ea),new _0x501c4e[(_0x1b26b4(0x1d6))]()),_0x1d93f6(this,_0x1b26b4(0x3e9),this[_0x1b26b4(0x1ea)]['asObservable']()),((_0x280059=this['_configService']['getConfig'](_0x1b26b4(0xf8)))==null?void 0x0:_0x280059['enableCollaboration'])!==!0x1&&this[_0x1b26b4(0x172)]();}[_0x4afe6d(0x445)](){const _0x196d60=_0x4afe6d;super[_0x196d60(0x445)](),this['_entities'][_0x196d60(0x3a3)](_0x95e70=>_0x95e70[_0x196d60(0x445)]()),this[_0x196d60(0x226)][_0x196d60(0x426)]();}[_0x4afe6d(0x166)](_0x2a50ed){const _0x2cae6f=_0x4afe6d;var _0x19a6c8;return(_0x19a6c8=this[_0x2cae6f(0x226)]['get'](_0x2a50ed))==null?null:_0x19a6c8;}[_0x4afe6d(0x298)](_0x41f169){const _0x4f4db6=_0x4afe6d;let _0x31a8fc=this['getCollabEntity'](_0x41f169);return _0x31a8fc?(0x0,_0x501c4e['of'])(_0x31a8fc):this[_0x4f4db6(0x1ea)][_0x4f4db6(0x33c)]((0x0,_0x572a50[_0x4f4db6(0x176)])(_0x200eff=>_0x200eff['unitID']===_0x41f169));}['readyForCollab'](_0x6b548b){const _0xe33a0e=_0x4afe6d;return(0x0,_0x501c4e[_0xe33a0e(0x117)])(this['getCollabEntity$'](_0x6b548b)[_0xe33a0e(0x33c)]((0x0,_0x572a50[_0xe33a0e(0x299)])(()=>void 0x0)));}['_init'](){const _0x90c35d=_0x4afe6d;this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SHEET'])[_0x90c35d(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x17b7fc=>{const _0x4cbb96=_0x90c35d;let _0x193e22=_0x17b7fc[_0x4cbb96(0x37d)][_0x4cbb96(0x40f)](),_0x343773=await this[_0x4cbb96(0x168)](_0x193e22,_0x54340d[_0x4cbb96(0x395)][_0x4cbb96(0x3ee)]);this['_entities']['set'](_0x193e22,_0x343773);}),this[_0x90c35d(0x18f)][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)][_0x90c35d(0x366)])[_0x90c35d(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))[_0x90c35d(0x33c)]((0x0,_0x572a50[_0x90c35d(0x176)])(_0x18fff4=>!_0x18fff4[_0x90c35d(0x37d)][_0x90c35d(0x40f)]()[_0x90c35d(0x2d6)]('__')))[_0x90c35d(0x40b)](async _0x10b145=>{const _0x31d42d=_0x90c35d;let _0x212e98=_0x10b145['unit'][_0x31d42d(0x40f)](),_0x38fdcf=await this[_0x31d42d(0x168)](_0x212e98,_0x54340d[_0x31d42d(0x395)][_0x31d42d(0x366)]);this[_0x31d42d(0x226)]['set'](_0x212e98,_0x38fdcf);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SLIDE'])['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x47bda1=>{const _0x307c40=_0x90c35d;let _0x5be498=_0x47bda1['unit'][_0x307c40(0x40f)](),_0x2bc3d5=await this[_0x307c40(0x168)](_0x5be498,_0x54340d['UniverInstanceType']['UNIVER_SLIDE']);this[_0x307c40(0x226)][_0x307c40(0x437)](_0x5be498,_0x2bc3d5);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)][_0x90c35d(0x1b3)])['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x529cdc=>{const _0x344dd1=_0x90c35d;let _0x514522=_0x529cdc[_0x344dd1(0x37d)][_0x344dd1(0x40f)](),_0x1d8af3=await this[_0x344dd1(0x168)](_0x514522,_0x54340d[_0x344dd1(0x395)][_0x344dd1(0x1b3)]);this['_entities'][_0x344dd1(0x437)](_0x514522,_0x1d8af3);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d['UniverInstanceType'][_0x90c35d(0x193)])[_0x90c35d(0x33c)]((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50['delay'])(0x10))[_0x90c35d(0x40b)](async _0x9e1f6b=>{const _0x1f47ba=_0x90c35d;let _0xc32844=_0x9e1f6b[_0x1f47ba(0x37d)][_0x1f47ba(0x40f)](),_0x517571=await this['_startCollaboration'](_0xc32844,_0x54340d[_0x1f47ba(0x395)][_0x1f47ba(0x193)]);this[_0x1f47ba(0x226)]['set'](_0xc32844,_0x517571);}),(0x0,_0x501c4e['merge'])(this['_univerInstanceService'][_0x90c35d(0x28d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SHEET']),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54340d['UniverInstanceType'][_0x90c35d(0x2f6)]),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d['UniverInstanceType'][_0x90c35d(0x1b3)]),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_BASE']))['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]))[_0x90c35d(0x40b)](_0xc31146=>{const _0x4b5828=_0x90c35d;let _0x42c64f=_0xc31146[_0x4b5828(0x40f)](),_0xc236eb=this[_0x4b5828(0x226)]['get'](_0x42c64f);_0xc236eb&&(_0xc236eb['dispose'](),this['_entities'][_0x4b5828(0x151)](_0x42c64f));});}async[_0x4afe6d(0x168)](_0x3e1276,_0x2ce6b7){const _0x44d265=_0x4afe6d;let _0x5e85d1=await this[_0x44d265(0x26d)][_0x44d265(0x2ef)](_0x3e1276),_0x1e809f=this[_0x44d265(0x19e)][_0x44d265(0x34e)](this[_0x44d265(0x21e)](_0x2ce6b7),_0x3e1276,_0x2ce6b7,_0x5e85d1);return await _0x1e809f[_0x44d265(0x348)](),this[_0x44d265(0x1ea)][_0x44d265(0x16a)](_0x1e809f),_0x1e809f;}[_0x4afe6d(0x21e)](_0x1c40a6){const _0x4f8ba8=_0x4afe6d;switch(_0x1c40a6){case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x366)]:return _0x4e92fa;case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x3ee)]:return _0x143458;case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x2f6)]:return _0x513627;case _0x54340d[_0x4f8ba8(0x395)]['UNIVER_BOARD']:return _0x3a23e5;case _0x54340d['UniverInstanceType'][_0x4f8ba8(0x193)]:return _0x315430;default:throw Error(_0x4f8ba8(0x1aa)+_0x1c40a6);}}};_0x3ac1c6=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x1ef492)),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x21c)])],_0x3ac1c6);var _0x2342bf=_0x4afe6d(0x358),_0x42a3e1=_0x4afe6d(0x43b);let _0x1ae7d6=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x13acf9,_0x3b718a){const _0x456638=_0x4afe6d;super(),this[_0x456638(0x18f)]=_0x13acf9,this['_configService']=_0x3b718a,this['_init']();}[_0x4afe6d(0x172)](){const _0xcac132=_0x4afe6d;this[_0xcac132(0x13b)](this[_0xcac132(0x18f)][_0xcac132(0x135)][_0xcac132(0x40b)](()=>{const _0xaa6298=_0xcac132;var _0x78f49a;let _0x221adb=this['_univerInstanceService'][_0xaa6298(0x26f)](),_0x3f7f5d=(_0x78f49a=this['_configService']['getConfig'](_0xaa6298(0x243)))==null?_0xaa6298(0x1e9):_0x78f49a;_0x221adb instanceof _0x54340d['Workbook']&&(_0x3f7f5d=_0x221adb[_0xaa6298(0x2a8)]),document[_0xaa6298(0x44c)]=_0x3f7f5d;}));}};_0x1ae7d6=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x192)])],_0x1ae7d6);let _0x32a4ef=function(_0x1379ba){const _0x709c71=_0x4afe6d;return _0x1379ba[_0x709c71(0x12e)]=_0x709c71(0x12e),_0x1379ba[_0x709c71(0x43c)]=_0x709c71(0x43c),_0x1379ba['BASE64']=_0x709c71(0x224),_0x1379ba;}({}),_0x2a494b=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x415)),_0x229743=class{constructor(_0x54c57e,_0x43e096,_0x288426){const _0x35e2a2=_0x4afe6d;this['_httpService']=_0x54c57e,this[_0x35e2a2(0x3b8)]=_0x43e096,this[_0x35e2a2(0x18f)]=_0x288426;}[_0x4afe6d(0x380)](){const _0x19466d=_0x4afe6d;var _0x3f8762;return(_0x3f8762=this['_getConfig']()[_0x19466d(0x2cd)])==null?{}:_0x3f8762;}async[_0x4afe6d(0x3bb)](_0x4e45cf){const _0x54f98b=_0x4afe6d;let _0x33be7c=this[_0x54f98b(0x380)]();if(_0x47183d(_0x4e45cf,_0x33be7c),_0x33be7c[_0x54f98b(0x3d0)])return _0x33be7c['upload'](_0x4e45cf);let _0x2e38d1=await this[_0x54f98b(0x369)](_0x4e45cf);return{'id':_0x2e38d1,'name':_0x4e45cf['name'],'mimeType':_0x4e45cf['type'],'size':_0x4e45cf[_0x54f98b(0x389)],'sourceType':'UUID','source':_0x2e38d1};}async['_upload'](_0x36985b){const _0x3c7e0b=_0x4afe6d;let _0x1a4dee=this[_0x3c7e0b(0x18f)]['getFocusedUnit'](),_0x4aeab4=_0x1a4dee==null?void 0x0:_0x1a4dee['getUnitId']();if(!_0x4aeab4)throw Error(_0x3c7e0b(0x396));let _0xce87d1=new FormData();_0xce87d1[_0x3c7e0b(0x2ae)](_0x3c7e0b(0x372),_0x36985b);let _0x1f0e82=this['_getUploadFileURL']()+_0x3c7e0b(0x102)+_0x36985b['size']['toString']()+_0x3c7e0b(0x3aa)+_0x3a112b['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x4aeab4),_0x746feb=(await this[_0x3c7e0b(0x1e3)][_0x3c7e0b(0x381)](_0x1f0e82,{'body':_0xce87d1}))[_0x3c7e0b(0x271)][_0x3c7e0b(0x140)];if(typeof _0x746feb!=_0x3c7e0b(0x1ab)||!_0x746feb)throw Error(_0x3c7e0b(0x42b));return _0x746feb;}[_0x4afe6d(0x3bd)](){const _0x299950=_0x4afe6d;var _0x349309;return(_0x349309=this[_0x299950(0x230)]()[_0x299950(0x2f0)])==null?_0x299950(0x210):_0x349309;}[_0x4afe6d(0x230)](){const _0x466321=_0x4afe6d;var _0x21afe0;return(_0x21afe0=this[_0x466321(0x3b8)][_0x466321(0x170)]('collaboration-client.config'))==null?{}:_0x21afe0;}};_0x229743=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932['HTTPService'])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x192)])),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x21c)]))],_0x229743);function _0x47183d(_0x52a89f,_0x5f4c4b){const _0x32989c=_0x4afe6d;var _0x4ebefc;if(_0x5f4c4b['maxSize']!=null&&_0x52a89f[_0x32989c(0x389)]>_0x5f4c4b['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x4ebefc=_0x5f4c4b[_0x32989c(0x3bf)])!=null&&_0x4ebefc['length']&&!_0x5f4c4b[_0x32989c(0x3bf)]['some'](_0x136dbd=>_0x52a89f[_0x32989c(0x154)]===_0x136dbd||_0x52a89f['name'][_0x32989c(0x1a6)](_0x136dbd)||_0x136dbd[_0x32989c(0x1a6)]('/*')&&_0x52a89f['type']['startsWith'](_0x136dbd['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x2ddecb=class{constructor(_0x39269a,_0x31c6b4,_0x53fa59){const _0x1e0c56=_0x4afe6d;this['_configService']=_0x39269a,this['_httpService']=_0x31c6b4,this[_0x1e0c56(0x218)]=_0x53fa59,this[_0x1e0c56(0x348)]();}[_0x4afe6d(0x348)](){const _0x3f99eb=_0x4afe6d;this[_0x3f99eb(0x1e3)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1869ec,_0xaa278a)=>_0xaa278a(_0x1869ec)[_0x3f99eb(0x33c)]((0x0,_0x501c4e[_0x3f99eb(0x253)])(async _0x3b3995=>{const _0x1955d4=_0x3f99eb;let _0x41f210=_0x3b3995;if(_0x41f210[_0x1955d4(0x35f)]===0x191){if(typeof window>'u')throw Error(_0x1955d4(0x27a));if(window[_0x1955d4(0x234)](this[_0x1955d4(0x218)]['t'](_0x1955d4(0x2d7)))){let _0x1f9511=window['encodeURIComponent'](window[_0x1955d4(0x231)][_0x1955d4(0x3c3)]);window[_0x1955d4(0x231)][_0x1955d4(0x3c3)]=this['_getLoginPath']()+_0x1955d4(0x244)+_0x1f9511;}}return _0x41f210;}))});}[_0x4afe6d(0x144)](){const _0x585bb7=_0x4afe6d;var _0x31b366;let _0x95f8be=this[_0x585bb7(0x3b8)][_0x585bb7(0x170)](_0x440361);return(_0x31b366=_0x95f8be==null?void 0x0:_0x95f8be['loginUrlKey'])==null?_0x585bb7(0x27b):_0x31b366;}};_0x2ddecb=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x2,(0x0,_0x54340d['Inject'])(_0x54340d['LocaleService']))],_0x2ddecb);let _0x91ddb2=class extends _0x54340d['Disposable']{constructor(_0xb7bb7,_0x2bbb1b){const _0xc704c2=_0x4afe6d;super(),this[_0xc704c2(0x40a)]=_0xb7bb7,this['_configService']=_0x2bbb1b,_0x1d93f6(this,'_cfgEnableObjInherit',!0x1),this[_0xc704c2(0x337)]();}[_0x4afe6d(0x337)](){let _0x1879ce=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x3c3932['MergeInterceptorFactory'])({'isMatch'(_0x1351fb){const _0x342769=_0x4f14;var _0x18eb84;if(_0x1351fb[_0x342769(0x3cf)]==='POST'&&(_0x18eb84=_0x1351fb[_0x342769(0x123)])!=null&&_0x18eb84[_0x342769(0x271)]){let {objectID:_0x1bba03,objectType:_0x3dd22d}=_0x1351fb[_0x342769(0x123)][_0x342769(0x271)]||{};if(!_0x1bba03||_0x3dd22d===void 0x0)return!0x1;let _0x3d2af3=_0x1879ce[_0x342769(0x418)]()+'/'+_0x3dd22d+_0x342769(0x325)+_0x1bba03+_0x342769(0x2be);if(_0x1351fb[_0x342769(0x161)]===_0x3d2af3)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56b37f){const _0x58b4af=_0x4f14;var _0x2f3df6;return(_0x2f3df6=_0x56b37f[_0x58b4af(0x123)])==null?void 0x0:_0x2f3df6[_0x58b4af(0x271)];},'mergeParamsToRequest'(_0x3cae69,_0x5e3566){const _0x451f56=_0x4f14;let _0x481435=_0x1879ce[_0x451f56(0x418)]()+'/-/object/-/batch_allowed',_0x1aaed3=_0x3cae69[_0x451f56(0x3e4)]((_0x3189b4,_0x45d2c1)=>{const _0x1f2ef8=_0x451f56;let {unitID:_0x3ff294,objectID:_0x43113d,objectType:_0x343703,actions:_0x4a71cb}=_0x45d2c1;return _0x3189b4[_0x3ff294]||(_0x3189b4[_0x3ff294]={}),_0x3189b4[_0x3ff294][_0x43113d]||(_0x3189b4[_0x3ff294][_0x43113d]={'objectID':_0x43113d,'objectType':_0x343703,'actions':[]}),_0x3189b4[_0x3ff294][_0x43113d][_0x1f2ef8(0x25c)][_0x1f2ef8(0x399)](..._0x4a71cb),_0x3189b4;},{}),_0x181469=[];for(let _0x14bf63 in _0x1aaed3)for(let _0x3d1df9 in _0x1aaed3[_0x14bf63]){let {actions:_0x3c8bd6,objectType:_0x5e229f}=_0x1aaed3[_0x14bf63][_0x3d1df9],_0x3a862a=[...new Set(_0x3c8bd6)];_0x181469[_0x451f56(0x399)]({'unitID':_0x14bf63,'objectID':_0x3d1df9,'objectType':_0x5e229f,'actions':_0x3a862a});}return new _0x3c3932[(_0x451f56(0x310))](_0x451f56(0x1ad),_0x481435,{'headers':_0x5e3566[_0x451f56(0x27d)],'withCredentials':_0x5e3566['withCredentials'],'responseType':_0x5e3566['responseType'],'body':{'requests':_0x181469}});}},{'distributeResult'(_0x506349,_0x2e7bc7){const _0x30841f=_0x4f14;let {objectActions:_0x4d50a5}=_0x506349;return _0x2e7bc7[_0x30841f(0x299)](_0x2bf7de=>{const _0x29df94=_0x30841f;let {unitID:_0x48b018,objectID:_0x10866e,actions:_0x34d9c3}=_0x2bf7de,_0x4c16c6=_0x4d50a5['find'](_0x12e861=>_0x12e861[_0x29df94(0x3b1)]===_0x48b018&&_0x12e861[_0x29df94(0x197)]===_0x10866e);return{'config':_0x2bf7de,'result':{'actions':_0x34d9c3[_0x29df94(0x299)](_0x3ccef2=>_0x4c16c6==null?void 0x0:_0x4c16c6[_0x29df94(0x25c)]['find'](_0x4ee95b=>_0x4ee95b[_0x29df94(0x20f)]===_0x3ccef2))[_0x29df94(0x176)](_0x2769cc=>!!_0x2769cc),'error':_0x506349[_0x29df94(0x106)]}};});}})}));}[_0x4afe6d(0x418)](){const _0x2afad1=_0x4afe6d;var _0xbe41ae;let _0x139e2b=this[_0x2afad1(0x3b8)][_0x2afad1(0x170)](_0x440361);return(_0xbe41ae=_0x139e2b==null?void 0x0:_0x139e2b[_0x2afad1(0x419)])==null?_0x2afad1(0x258):_0xbe41ae;}async[_0x4afe6d(0x1bf)](_0x2ed5e0){const _0x41a11a=_0x4afe6d;let _0x27d14e=this[_0x41a11a(0x418)]()+'/'+_0x2ed5e0[_0x41a11a(0x323)]+_0x41a11a(0x1c5);return(await this['_HTTPService'][_0x41a11a(0x381)](_0x27d14e,{'body':_0x2ed5e0}))[_0x41a11a(0x271)]['objectID']||'';}async[_0x4afe6d(0x146)](_0x35499b){const _0x29775f=_0x4afe6d;let _0x4d0f88=this['_getAPIPrefixPath']()+_0x29775f(0x3a7);return(await this[_0x29775f(0x40a)][_0x29775f(0x381)](_0x4d0f88,{'body':_0x35499b}))[_0x29775f(0x271)][_0x29775f(0x104)];}async[_0x4afe6d(0x13f)](_0x3add05){const _0x1a8aef=_0x4afe6d;var _0x37faa8;let _0x532855=this[_0x1a8aef(0x418)]()+'/'+_0x3add05[_0x1a8aef(0x323)]+_0x1a8aef(0x325)+_0x3add05[_0x1a8aef(0x197)],_0x84d43f=await this[_0x1a8aef(0x40a)][_0x1a8aef(0x1de)](_0x532855,{'body':_0x3add05});if((_0x84d43f==null||(_0x37faa8=_0x84d43f[_0x1a8aef(0x271)])==null||(_0x37faa8=_0x37faa8[_0x1a8aef(0x106)])==null?void 0x0:_0x37faa8[_0x1a8aef(0x1a3)])!==0x1)throw Error(_0x1a8aef(0x15a));}async[_0x4afe6d(0x3e2)](_0x4f9fae){const _0x306681=_0x4afe6d;let _0x529ca6=this[_0x306681(0x418)]()+'/'+_0x4f9fae['objectType']+_0x306681(0x325)+_0x4f9fae[_0x306681(0x197)]+'/allowed';return(await this[_0x306681(0x40a)][_0x306681(0x381)](_0x529ca6,{'body':_0x4f9fae}))[_0x306681(0x271)][_0x306681(0x25c)];}async[_0x4afe6d(0x444)](_0x56c1df){const _0x5cf1d4=_0x4afe6d;let _0x39f415=this[_0x5cf1d4(0x418)]()+_0x5cf1d4(0x128);return(await this[_0x5cf1d4(0x40a)][_0x5cf1d4(0x381)](_0x39f415,{'body':{'requests':_0x56c1df}}))['body']['objectActions'];}async[_0x4afe6d(0x225)](_0x43bc44){const _0x152a72=_0x4afe6d;let _0x40cdf6=this[_0x152a72(0x418)]()+'/'+_0x43bc44[_0x152a72(0x323)]+_0x152a72(0x37f),_0x31e86c=await this['_HTTPService']['post'](_0x40cdf6,{'body':_0x43bc44});return{'roles':_0x31e86c['body']['roles'],'actions':_0x31e86c[_0x152a72(0x271)]['actions']};}async[_0x4afe6d(0x386)](_0x884334){const _0x2bd5b4=_0x4afe6d;let _0x2052cf=this[_0x2bd5b4(0x418)]()+'/collaborator';await this[_0x2bd5b4(0x40a)][_0x2bd5b4(0x151)](_0x2052cf,{'params':{'collaboratorID':_0x884334[_0x2bd5b4(0x18a)],'objectID':_0x884334[_0x2bd5b4(0x197)],'unitID':_0x884334['unitID']}});}async[_0x4afe6d(0x2fa)](_0x3e8c11){const _0x4d1bba=_0x4afe6d;let _0x2ec7fd=this[_0x4d1bba(0x418)]()+_0x4d1bba(0x322);await this['_HTTPService'][_0x4d1bba(0x443)](_0x2ec7fd,{'body':_0x3e8c11});}async[_0x4afe6d(0x11f)](_0x14190e){const _0x191c54=_0x4afe6d;let _0x59a036=this[_0x191c54(0x418)]()+_0x191c54(0x322);await this[_0x191c54(0x40a)]['post'](_0x59a036,{'body':_0x14190e});}async[_0x4afe6d(0x177)](_0x276178){const _0x2f3335=_0x4afe6d;var _0x42538a;let _0x549a98=this[_0x2f3335(0x418)]()+_0x2f3335(0x322),_0x16ea48=await this[_0x2f3335(0x40a)][_0x2f3335(0x28f)](_0x549a98,{'params':{'objectID':_0x276178[_0x2f3335(0x197)],'unitID':_0x276178[_0x2f3335(0x3b1)]}});return this[_0x2f3335(0x35d)]((_0x42538a=_0x16ea48[_0x2f3335(0x271)][_0x2f3335(0x329)])==null?!0x1:_0x42538a),_0x16ea48[_0x2f3335(0x271)][_0x2f3335(0x18c)];}async[_0x4afe6d(0x10a)](_0x54ac3f){const _0x154662=_0x4afe6d;let _0x3d47d2=this['_getAPIPrefixPath']()+_0x154662(0x322);await this[_0x154662(0x40a)]['put'](_0x3d47d2,{'body':_0x54ac3f});}['setCfgEnableObjInherit'](_0x25d895){this['_cfgEnableObjInherit']=_0x25d895;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};_0x91ddb2=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x192)]))],_0x91ddb2);function _0x345363(_0x719aa){const _0x41cde2=_0x4afe6d;return _0x719aa instanceof Uint8Array||ArrayBuffer[_0x41cde2(0x31d)](_0x719aa)&&_0x719aa[_0x41cde2(0x194)]['name']===_0x41cde2(0x1b0)&&_0x41cde2(0x3b4)in _0x719aa&&_0x719aa[_0x41cde2(0x3b4)]===0x1;}function _0x444602(_0x180b78){const _0x566cbe=_0x4afe6d;if(typeof _0x180b78!='number')throw TypeError(_0x566cbe(0x131)+typeof _0x180b78);if(!Number[_0x566cbe(0x291)](_0x180b78)||_0x180b78<0x0)throw RangeError(_0x566cbe(0x2e5)+_0x180b78);}function _0x310a93(_0x4a830f,_0x222492,_0x4917fb=''){const _0x5b5180=_0x4afe6d;let _0x2e3b01=_0x345363(_0x4a830f),_0x26769f=_0x4a830f==null?void 0x0:_0x4a830f[_0x5b5180(0x414)],_0x3947ae=_0x222492!==void 0x0;if(!_0x2e3b01||_0x3947ae&&_0x26769f!==_0x222492){let _0x589d2d=_0x4917fb&&'\x22'+_0x4917fb+'\x22\x20',_0x3515a5=_0x3947ae?_0x5b5180(0x37a)+_0x222492:'',_0x2a2154=_0x2e3b01?'length='+_0x26769f:'type='+typeof _0x4a830f,_0x232253=_0x589d2d+'expected\x20Uint8Array'+_0x3515a5+',\x20got\x20'+_0x2a2154;throw _0x2e3b01?RangeError(_0x232253):TypeError(_0x232253);}return _0x4a830f;}function _0x54a535(_0x1a7698){const _0x19a0d7=_0x4afe6d;return new Uint32Array(_0x1a7698[_0x19a0d7(0x351)],_0x1a7698[_0x19a0d7(0x16c)],Math[_0x19a0d7(0x446)](_0x1a7698[_0x19a0d7(0x32f)]/0x4));}function _0x6f6655(..._0x36b655){for(let _0xcb0363=0x0;_0xcb0363<_0x36b655['length'];_0xcb0363++)_0x36b655[_0xcb0363]['fill'](0x0);}let _0x508774=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44,_0x267239=_0x27c500=>_0x27c500<<0x18&0xff000000|_0x27c500<<0x8&0xff0000|_0x27c500>>>0x8&0xff00|_0x27c500>>>0x18&0xff,_0x4fbda8=_0x508774?_0x283a1f=>_0x283a1f:_0x3adba8=>{for(let _0x2e3d0d=0x0;_0x2e3d0d<_0x3adba8['length'];_0x2e3d0d++)_0x3adba8[_0x2e3d0d]=_0x267239(_0x3adba8[_0x2e3d0d]);return _0x3adba8;};function _0x3cdb17(_0x136769){const _0x3d7016=_0x4afe6d;if(typeof _0x136769!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x3d7016(0x42e)](_0x136769));}function _0xb11e7(_0x47066a,_0x1df2ae){const _0x1d992d=_0x4afe6d;return!_0x47066a['byteLength']||!_0x1df2ae[_0x1d992d(0x32f)]?!0x1:_0x47066a[_0x1d992d(0x351)]===_0x1df2ae[_0x1d992d(0x351)]&&_0x47066a['byteOffset']<_0x1df2ae[_0x1d992d(0x16c)]+_0x1df2ae['byteLength']&&_0x1df2ae[_0x1d992d(0x16c)]<_0x47066a['byteOffset']+_0x47066a[_0x1d992d(0x32f)];}function _0xfe040(_0x34b618,_0x549d9a){const _0x125fc6=_0x4afe6d;if(_0xb11e7(_0x34b618,_0x549d9a)&&_0x34b618['byteOffset']<_0x549d9a[_0x125fc6(0x16c)])throw Error(_0x125fc6(0x438));}function _0xd3b04d(..._0x1548f2){const _0x3b3ef4=_0x4afe6d;let _0xb29373=0x0;for(let _0x589959=0x0;_0x589959<_0x1548f2['length'];_0x589959++){let _0x2098b7=_0x1548f2[_0x589959];_0x310a93(_0x2098b7),_0xb29373+=_0x2098b7['length'];}let _0x488e30=new Uint8Array(_0xb29373);for(let _0x4f5b09=0x0,_0x2b638a=0x0;_0x4f5b09<_0x1548f2[_0x3b3ef4(0x414)];_0x4f5b09++){let _0xa958c4=_0x1548f2[_0x4f5b09];_0x488e30[_0x3b3ef4(0x437)](_0xa958c4,_0x2b638a),_0x2b638a+=_0xa958c4['length'];}return _0x488e30;}let _0x2a0d26=(_0x20914d,_0x5e9a3d)=>{const _0xd84038=_0x4afe6d;function _0x1e79a9(_0x3351e4,..._0x217286){const _0x25ca64=_0x4f14;if(_0x310a93(_0x3351e4,void 0x0,_0x25ca64(0x29c)),_0x20914d[_0x25ca64(0x15b)]!==void 0x0){let _0x3bda24=_0x217286[0x0];_0x310a93(_0x3bda24,_0x20914d[_0x25ca64(0x2fe)]?void 0x0:_0x20914d[_0x25ca64(0x15b)],'nonce');}let _0x54e452=_0x20914d[_0x25ca64(0x2a6)];_0x54e452&&_0x217286[0x1]!==void 0x0&&_0x310a93(_0x217286[0x1],void 0x0,_0x25ca64(0x188));let _0x165302=_0x5e9a3d(_0x3351e4,..._0x217286),_0x15973a=(_0x10ae59,_0x52a21a)=>{const _0x5d817a=_0x25ca64;if(_0x52a21a!==void 0x0){if(_0x10ae59!==0x2)throw Error(_0x5d817a(0x265));_0x310a93(_0x52a21a,void 0x0,_0x5d817a(0x411));}},_0x574faa=!0x1;return{'encrypt'(_0x2f00f9,_0x15da1d){const _0x301abd=_0x25ca64;if(_0x574faa)throw Error(_0x301abd(0x403));return _0x574faa=!0x0,_0x310a93(_0x2f00f9),_0x15973a(_0x165302[_0x301abd(0x39a)][_0x301abd(0x414)],_0x15da1d),_0x165302[_0x301abd(0x39a)](_0x2f00f9,_0x15da1d);},'decrypt'(_0x694862,_0x192b0b){const _0x315760=_0x25ca64;if(_0x310a93(_0x694862),_0x54e452&&_0x694862[_0x315760(0x414)]<_0x54e452)throw Error(_0x315760(0x19f)+_0x54e452);return _0x15973a(_0x165302['decrypt'][_0x315760(0x414)],_0x192b0b),_0x165302[_0x315760(0x19b)](_0x694862,_0x192b0b);}};}return Object[_0xd84038(0x3a9)](_0x1e79a9,_0x20914d),_0x1e79a9;};function _0x29cee7(_0x20cb3a,_0x356da6,_0x12c74c=!0x0){const _0x4001ee=_0x4afe6d;if(_0x356da6===void 0x0)return new Uint8Array(_0x20cb3a);if(_0x310a93(_0x356da6,void 0x0,_0x4001ee(0x411)),_0x356da6[_0x4001ee(0x414)]!==_0x20cb3a)throw Error(_0x4001ee(0x40c)+_0x20cb3a+_0x4001ee(0x288)+_0x356da6['length']);if(_0x12c74c&&!_0x442f09(_0x356da6))throw Error(_0x4001ee(0x10e));return _0x356da6;}function _0x442f09(_0x5b325c){const _0x18531d=_0x4afe6d;return _0x5b325c[_0x18531d(0x16c)]%0x4==0x0;}function _0x6f5fc3(_0xfc811e){const _0x371758=_0x4afe6d;return Uint8Array[_0x371758(0x2fd)](_0x310a93(_0xfc811e));}function _0x535155(_0x302dfc=0x20){const _0x3f96a6=_0x4afe6d;_0x444602(_0x302dfc);let _0x2473bc=typeof globalThis==_0x3f96a6(0x2bd)?globalThis[_0x3f96a6(0x297)]:null;if(typeof(_0x2473bc==null?void 0x0:_0x2473bc[_0x3f96a6(0x1a5)])!=_0x3f96a6(0x1cf))throw Error(_0x3f96a6(0x2f2));return _0x2473bc[_0x3f96a6(0x1a5)](new Uint8Array(_0x302dfc));}function _0x28be7d(_0x2db70b){const _0x38300f=_0x4afe6d;if(![0x10,0x18,0x20]['includes'](_0x2db70b[_0x38300f(0x414)]))throw Error(_0x38300f(0x391)+_0x2db70b[_0x38300f(0x414)]);}function _0x84d3ab(_0x1f2f8b){return _0x1f2f8b<<0x1^0x11b&-(_0x1f2f8b>>0x7);}function _0x3318bd(_0x574231,_0x4dc89e){let _0x209139=0x0;for(;_0x4dc89e>0x0;_0x4dc89e>>=0x1)_0x209139^=_0x574231&-(_0x4dc89e&0x1),_0x574231=_0x84d3ab(_0x574231);return _0x209139;}let _0x5d8d12=((()=>{let _0xbbcbcc=new Uint8Array(0x100);for(let _0xe45385=0x0,_0x386761=0x1;_0xe45385<0x100;_0xe45385++,_0x386761^=_0x84d3ab(_0x386761))_0xbbcbcc[_0xe45385]=_0x386761;let _0x45edc0=new Uint8Array(0x100);_0x45edc0[0x0]=0x63;for(let _0x4a587e=0x0;_0x4a587e<0xff;_0x4a587e++){let _0x4bb642=_0xbbcbcc[0xff-_0x4a587e];_0x4bb642|=_0x4bb642<<0x8,_0x45edc0[_0xbbcbcc[_0x4a587e]]=(_0x4bb642^_0x4bb642>>0x4^_0x4bb642>>0x5^_0x4bb642>>0x6^_0x4bb642>>0x7^0x63)&0xff;}return _0x6f6655(_0xbbcbcc),_0x45edc0;})()),_0x159678=_0x5d8d12[_0x4afe6d(0x299)]((_0x2e8530,_0x3b8197)=>_0x5d8d12[_0x4afe6d(0x25d)](_0x3b8197)),_0x559c59=_0x2280a7=>_0x2280a7<<0x18|_0x2280a7>>>0x8,_0x937f3f=_0x4b125a=>_0x4b125a<<0x8|_0x4b125a>>>0x18;function _0x1f64f1(_0x93e231,_0x47c823){const _0x2b6fc5=_0x4afe6d;if(_0x93e231[_0x2b6fc5(0x414)]!==0x100)throw Error(_0x2b6fc5(0x34a));let _0x4289b1=new Uint32Array(0x100)['map']((_0x3d23f7,_0x5a698e)=>_0x47c823(_0x93e231[_0x5a698e])),_0x1a3b39=_0x4289b1[_0x2b6fc5(0x299)](_0x937f3f),_0x12aba8=_0x1a3b39[_0x2b6fc5(0x299)](_0x937f3f),_0x42affe=_0x12aba8[_0x2b6fc5(0x299)](_0x937f3f),_0x1de64a=new Uint32Array(0x100*0x100),_0x27da49=new Uint32Array(0x100*0x100),_0x267963=new Uint16Array(0x100*0x100);for(let _0x3a5377=0x0;_0x3a5377<0x100;_0x3a5377++)for(let _0x24e920=0x0;_0x24e920<0x100;_0x24e920++){let _0x1857ac=_0x3a5377*0x100+_0x24e920;_0x1de64a[_0x1857ac]=_0x4289b1[_0x3a5377]^_0x1a3b39[_0x24e920],_0x27da49[_0x1857ac]=_0x12aba8[_0x3a5377]^_0x42affe[_0x24e920],_0x267963[_0x1857ac]=_0x93e231[_0x3a5377]<<0x8|_0x93e231[_0x24e920];}return{'sbox':_0x93e231,'sbox2':_0x267963,'T0':_0x4289b1,'T1':_0x1a3b39,'T2':_0x12aba8,'T3':_0x42affe,'T01':_0x1de64a,'T23':_0x27da49};}let _0x4d4cff=_0x1f64f1(_0x5d8d12,_0x2348fb=>_0x3318bd(_0x2348fb,0x3)<<0x18|_0x2348fb<<0x10|_0x2348fb<<0x8|_0x3318bd(_0x2348fb,0x2)),_0x4e19c1=_0x1f64f1(_0x159678,_0x19e031=>_0x3318bd(_0x19e031,0xb)<<0x18|_0x3318bd(_0x19e031,0xd)<<0x10|_0x3318bd(_0x19e031,0x9)<<0x8|_0x3318bd(_0x19e031,0xe)),_0x25e277=((()=>{let _0x35d84b=new Uint8Array(0x10);for(let _0x536203=0x0,_0x188c63=0x1;_0x536203<0x10;_0x536203++,_0x188c63=_0x84d3ab(_0x188c63))_0x35d84b[_0x536203]=_0x188c63;return _0x35d84b;})());function _0x5e041a(_0x110da5){const _0x6bad20=_0x4afe6d;_0x310a93(_0x110da5);let _0x3c3bd6=_0x110da5[_0x6bad20(0x414)];_0x28be7d(_0x110da5);let {sbox2:_0xff1dc}=_0x4d4cff,_0x4383d4=[];(!_0x508774||!_0x442f09(_0x110da5))&&_0x4383d4[_0x6bad20(0x399)](_0x110da5=_0x6f5fc3(_0x110da5));let _0x14d7dc=_0x4fbda8(_0x54a535(_0x110da5)),_0x4bdbc6=_0x14d7dc[_0x6bad20(0x414)],_0xb9090b=_0x2aadb4=>_0x5d64d0(_0xff1dc,_0x2aadb4,_0x2aadb4,_0x2aadb4,_0x2aadb4),_0x10b177=new Uint32Array(_0x3c3bd6+0x1c);_0x10b177[_0x6bad20(0x437)](_0x14d7dc);for(let _0x5dd319=_0x4bdbc6;_0x5dd319<_0x10b177[_0x6bad20(0x414)];_0x5dd319++){let _0x282530=_0x10b177[_0x5dd319-0x1];_0x5dd319%_0x4bdbc6===0x0?_0x282530=_0xb9090b(_0x559c59(_0x282530))^_0x25e277[_0x5dd319/_0x4bdbc6-0x1]:_0x4bdbc6>0x6&&_0x5dd319%_0x4bdbc6===0x4&&(_0x282530=_0xb9090b(_0x282530)),_0x10b177[_0x5dd319]=_0x10b177[_0x5dd319-_0x4bdbc6]^_0x282530;}return _0x6f6655(..._0x4383d4),_0x10b177;}function _0x436c9d(_0x3a42d2){const _0x552def=_0x4afe6d;let _0x4e83ac=_0x5e041a(_0x3a42d2),_0x3b4c7c=_0x4e83ac[_0x552def(0x1b6)](),_0x4ca041=_0x4e83ac['length'],{sbox2:_0x1aac93}=_0x4d4cff,{T0:_0x3c9322,T1:_0x22d56c,T2:_0x43d198,T3:_0x19a284}=_0x4e19c1;for(let _0x2ecca2=0x0;_0x2ecca2<_0x4ca041;_0x2ecca2+=0x4)for(let _0xa7dc3f=0x0;_0xa7dc3f<0x4;_0xa7dc3f++)_0x3b4c7c[_0x2ecca2+_0xa7dc3f]=_0x4e83ac[_0x4ca041-_0x2ecca2-0x4+_0xa7dc3f];_0x6f6655(_0x4e83ac);for(let _0x1bd4d0=0x4;_0x1bd4d0<_0x4ca041-0x4;_0x1bd4d0++){let _0x1d1d75=_0x3b4c7c[_0x1bd4d0],_0x3a20eb=_0x5d64d0(_0x1aac93,_0x1d1d75,_0x1d1d75,_0x1d1d75,_0x1d1d75);_0x3b4c7c[_0x1bd4d0]=_0x3c9322[_0x3a20eb&0xff]^_0x22d56c[_0x3a20eb>>>0x8&0xff]^_0x43d198[_0x3a20eb>>>0x10&0xff]^_0x19a284[_0x3a20eb>>>0x18];}return _0x3b4c7c;}function _0x291043(_0x2ae66f,_0x11a7c6,_0x368dff,_0x1bdf39,_0x20921f,_0x52f71e){return _0x2ae66f[_0x368dff<<0x8&0xff00|_0x1bdf39>>>0x8&0xff]^_0x11a7c6[_0x20921f>>>0x8&0xff00|_0x52f71e>>>0x18&0xff];}function _0x5d64d0(_0x21b188,_0x2da985,_0x19dacd,_0x34aa79,_0x3bb651){return _0x21b188[_0x2da985&0xff|_0x19dacd&0xff00]|_0x21b188[_0x34aa79>>>0x10&0xff|_0x3bb651>>>0x10&0xff00]<<0x10;}function _0x2a947e(_0x10026d,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85){const _0x46f6f4=_0x4afe6d;let {sbox2:_0x3bf0e9,T01:_0x385f9b,T23:_0x4a2938}=_0x4d4cff,_0x320687=0x0;_0x515eba^=_0x10026d[_0x320687++],_0x5e2600^=_0x10026d[_0x320687++],_0x3f2bfd^=_0x10026d[_0x320687++],_0x492a85^=_0x10026d[_0x320687++];let _0x399ebe=_0x10026d[_0x46f6f4(0x414)]/0x4-0x2;for(let _0x5ac76f=0x0;_0x5ac76f<_0x399ebe;_0x5ac76f++){let _0x180523=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85),_0x524588=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x5e2600,_0x3f2bfd,_0x492a85,_0x515eba),_0x2bbc0c=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x3f2bfd,_0x492a85,_0x515eba,_0x5e2600),_0x52828e=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x492a85,_0x515eba,_0x5e2600,_0x3f2bfd);_0x515eba=_0x180523,_0x5e2600=_0x524588,_0x3f2bfd=_0x2bbc0c,_0x492a85=_0x52828e;}return{'s0':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85),'s1':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x5e2600,_0x3f2bfd,_0x492a85,_0x515eba),'s2':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x3f2bfd,_0x492a85,_0x515eba,_0x5e2600),'s3':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x492a85,_0x515eba,_0x5e2600,_0x3f2bfd)};}function _0xb7c610(_0x334e0d,_0x296bae,_0x4764bc,_0x1b3c0a,_0x7421bf){const _0x506679=_0x4afe6d;let {sbox2:_0x42cce7,T01:_0x4e5cd9,T23:_0xdd399a}=_0x4e19c1,_0x76ca48=0x0;_0x296bae^=_0x334e0d[_0x76ca48++],_0x4764bc^=_0x334e0d[_0x76ca48++],_0x1b3c0a^=_0x334e0d[_0x76ca48++],_0x7421bf^=_0x334e0d[_0x76ca48++];let _0x5e34be=_0x334e0d[_0x506679(0x414)]/0x4-0x2;for(let _0x5f40e4=0x0;_0x5f40e4<_0x5e34be;_0x5f40e4++){let _0x35161e=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x296bae,_0x7421bf,_0x1b3c0a,_0x4764bc),_0x8fc271=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x4764bc,_0x296bae,_0x7421bf,_0x1b3c0a),_0x2f2a16=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x1b3c0a,_0x4764bc,_0x296bae,_0x7421bf),_0x36bd8e=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x7421bf,_0x1b3c0a,_0x4764bc,_0x296bae);_0x296bae=_0x35161e,_0x4764bc=_0x8fc271,_0x1b3c0a=_0x2f2a16,_0x7421bf=_0x36bd8e;}return{'s0':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x296bae,_0x7421bf,_0x1b3c0a,_0x4764bc),'s1':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x4764bc,_0x296bae,_0x7421bf,_0x1b3c0a),'s2':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x1b3c0a,_0x4764bc,_0x296bae,_0x7421bf),'s3':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x7421bf,_0x1b3c0a,_0x4764bc,_0x296bae)};}function _0x530f77(_0x47a2d5){const _0x3cd763=_0x4afe6d;if(_0x310a93(_0x47a2d5),_0x47a2d5[_0x3cd763(0x414)]%0x10!=0x0)throw Error(_0x3cd763(0x28b));}function _0x4e4711(_0x1c7d7a,_0x5ec0b9,_0x1d170b){const _0x4c36da=_0x4afe6d;_0x310a93(_0x1c7d7a);let _0x134eaf=_0x1c7d7a[_0x4c36da(0x414)],_0x24e345=_0x134eaf%0x10;if(!_0x5ec0b9&&_0x24e345!==0x0)throw Error(_0x4c36da(0x235));if(_0x5ec0b9){let _0x44a0d1=0x10-_0x24e345;_0x44a0d1||(_0x44a0d1=0x10),_0x134eaf+=_0x44a0d1;}_0x1d170b=_0x29cee7(_0x134eaf,_0x1d170b),_0xfe040(_0x1c7d7a,_0x1d170b),(!_0x508774||!_0x442f09(_0x1c7d7a))&&(_0x1c7d7a=_0x6f5fc3(_0x1c7d7a));let _0x4c8d06=_0x54a535(_0x1c7d7a);return _0x4fbda8(_0x4c8d06),{'b':_0x4c8d06,'o':_0x54a535(_0x1d170b),'out':_0x1d170b};}function _0x55f499(_0x385b58,_0x121248){const _0x124ef9=_0x4afe6d;if(!_0x121248)return _0x385b58;let _0x200530=_0x385b58[_0x124ef9(0x414)];if(_0x200530===0x0)throw Error(_0x124ef9(0x43f));let _0x75e69c=_0x385b58[_0x200530-0x1],_0x305db1=0x1;_0x305db1&=_0x75e69c-0x1>>>0x1f^0x1,_0x305db1&=0x10-_0x75e69c>>>0x1f^0x1;for(let _0x15cbd6=0x0;_0x15cbd6<0x10;_0x15cbd6++){let _0x5a1cdc=_0x15cbd6-_0x75e69c>>>0x1f,_0x1167e3=+((_0x385b58[_0x200530-0x1-_0x15cbd6]^_0x75e69c)===0x0);_0x305db1&=_0x1167e3|_0x5a1cdc^0x1;}if(!_0x305db1)throw Error(_0x124ef9(0x334));return _0x385b58[_0x124ef9(0x400)](0x0,_0x200530-_0x75e69c);}function _0x332098(_0x4a1c04){const _0xd09e91=_0x4afe6d;let _0x1c470b=new Uint8Array(0x10),_0x5f2a32=_0x54a535(_0x1c470b);_0x1c470b['set'](_0x4a1c04);let _0x36762e=0x10-_0x4a1c04[_0xd09e91(0x414)];for(let _0x5ebadb=0x10-_0x36762e;_0x5ebadb<0x10;_0x5ebadb++)_0x1c470b[_0x5ebadb]=_0x36762e;return _0x5f2a32;}let _0x1e02c4=_0x2a0d26({'blockSize':0x10,'nonceLength':0x10},function(_0x4a6689,_0x1e2b3e,_0x4572a3={}){const _0x1b5e0b=_0x4afe6d;let _0x3a8b15=!_0x4572a3[_0x1b5e0b(0x33e)];return{'encrypt'(_0xff2645,_0x40dabd){const _0x4aa09e=_0x1b5e0b;let _0x50668e=_0x5e041a(_0x4a6689),{b:_0x3afc5a,o:_0x257ef2,out:_0x2c64da}=_0x4e4711(_0xff2645,_0x3a8b15,_0x40dabd),_0x47e2f4=_0x1e2b3e,_0x185c86=[_0x50668e];(!_0x508774||!_0x442f09(_0x47e2f4))&&_0x185c86[_0x4aa09e(0x399)](_0x47e2f4=_0x6f5fc3(_0x47e2f4));let _0x2c216d=_0x54a535(_0x47e2f4);_0x4fbda8(_0x2c216d);let _0x5cff73=_0x2c216d[0x0],_0x55a2f1=_0x2c216d[0x1],_0x33e9ac=_0x2c216d[0x2],_0x26687b=_0x2c216d[0x3],_0x4bb9e9=0x0;for(;_0x4bb9e9+0x4<=_0x3afc5a[_0x4aa09e(0x414)];)_0x5cff73^=_0x3afc5a[_0x4bb9e9+0x0],_0x55a2f1^=_0x3afc5a[_0x4bb9e9+0x1],_0x33e9ac^=_0x3afc5a[_0x4bb9e9+0x2],_0x26687b^=_0x3afc5a[_0x4bb9e9+0x3],{s0:_0x5cff73,s1:_0x55a2f1,s2:_0x33e9ac,s3:_0x26687b}=_0x2a947e(_0x50668e,_0x5cff73,_0x55a2f1,_0x33e9ac,_0x26687b),_0x257ef2[_0x4bb9e9++]=_0x5cff73,_0x257ef2[_0x4bb9e9++]=_0x55a2f1,_0x257ef2[_0x4bb9e9++]=_0x33e9ac,_0x257ef2[_0x4bb9e9++]=_0x26687b;if(_0x3a8b15){let _0x43558d=_0x332098(_0xff2645[_0x4aa09e(0x400)](_0x4bb9e9*0x4));_0x4fbda8(_0x43558d),_0x5cff73^=_0x43558d[0x0],_0x55a2f1^=_0x43558d[0x1],_0x33e9ac^=_0x43558d[0x2],_0x26687b^=_0x43558d[0x3],{s0:_0x5cff73,s1:_0x55a2f1,s2:_0x33e9ac,s3:_0x26687b}=_0x2a947e(_0x50668e,_0x5cff73,_0x55a2f1,_0x33e9ac,_0x26687b),_0x257ef2[_0x4bb9e9++]=_0x5cff73,_0x257ef2[_0x4bb9e9++]=_0x55a2f1,_0x257ef2[_0x4bb9e9++]=_0x33e9ac,_0x257ef2[_0x4bb9e9++]=_0x26687b;}return _0x4fbda8(_0x257ef2),_0x6f6655(..._0x185c86),_0x2c64da;},'decrypt'(_0x22be69,_0x119469){const _0x447184=_0x1b5e0b;_0x530f77(_0x22be69);let _0x1ed0fc=_0x436c9d(_0x4a6689),_0x2b228f=_0x1e2b3e,_0x3e10d0=[_0x1ed0fc];(!_0x508774||!_0x442f09(_0x2b228f))&&_0x3e10d0[_0x447184(0x399)](_0x2b228f=_0x6f5fc3(_0x2b228f));let _0x1d9a48=_0x54a535(_0x2b228f);_0x4fbda8(_0x1d9a48),_0x119469=_0x29cee7(_0x22be69[_0x447184(0x414)],_0x119469),_0xfe040(_0x22be69,_0x119469),(!_0x508774||!_0x442f09(_0x22be69))&&_0x3e10d0[_0x447184(0x399)](_0x22be69=_0x6f5fc3(_0x22be69));let _0x1dd7dc=_0x54a535(_0x22be69),_0x36a0b8=_0x54a535(_0x119469);_0x4fbda8(_0x1dd7dc);let _0x269a17=_0x1d9a48[0x0],_0x49d018=_0x1d9a48[0x1],_0x532ea4=_0x1d9a48[0x2],_0x15e8f1=_0x1d9a48[0x3];for(let _0x5e5f97=0x0;_0x5e5f97+0x4<=_0x1dd7dc[_0x447184(0x414)];){let _0x3cca70=_0x269a17,_0x2e9e6f=_0x49d018,_0x493e4e=_0x532ea4,_0x595ae6=_0x15e8f1;_0x269a17=_0x1dd7dc[_0x5e5f97+0x0],_0x49d018=_0x1dd7dc[_0x5e5f97+0x1],_0x532ea4=_0x1dd7dc[_0x5e5f97+0x2],_0x15e8f1=_0x1dd7dc[_0x5e5f97+0x3];let {s0:_0x72e140,s1:_0x22d152,s2:_0x569391,s3:_0x120611}=_0xb7c610(_0x1ed0fc,_0x269a17,_0x49d018,_0x532ea4,_0x15e8f1);_0x36a0b8[_0x5e5f97++]=_0x72e140^_0x3cca70,_0x36a0b8[_0x5e5f97++]=_0x22d152^_0x2e9e6f,_0x36a0b8[_0x5e5f97++]=_0x569391^_0x493e4e,_0x36a0b8[_0x5e5f97++]=_0x120611^_0x595ae6;}return _0x4fbda8(_0x36a0b8),_0x6f6655(..._0x3e10d0),_0x55f499(_0x119469,_0x3a8b15);}};});function _0x2e33f1(_0x1d2ea7){const _0x310c82=_0x4afe6d;let _0x3332de=atob(_0x1d2ea7),_0x41dcf3=new Uint8Array(_0x3332de[_0x310c82(0x414)]);for(let _0x136871=0x0;_0x136871<_0x3332de[_0x310c82(0x414)];_0x136871++)_0x41dcf3[_0x136871]=_0x3332de[_0x310c82(0x430)](_0x136871);return _0x41dcf3;}function _0x201e42(_0x1b9ff5){const _0xd6c0bd=_0x4afe6d;let _0x41c2a9='';for(let _0x2b105a=0x0;_0x2b105a<_0x1b9ff5['length'];_0x2b105a++)_0x41c2a9+=String[_0xd6c0bd(0x13a)](_0x1b9ff5[_0x2b105a]);return btoa(_0x41c2a9);}function _0x4f39e4(_0x1f3e9e,_0x197706){const _0x4502d5=_0x4afe6d;let _0x45dbc9=_0x2e33f1(_0x197706),_0x215089=_0x535155(0x10);return _0x201e42(_0xd3b04d(_0x215089,_0x1e02c4(_0x45dbc9,_0x215089)[_0x4502d5(0x39a)](_0x3cdb17(_0x1f3e9e))));}function _0xc78ee8(){const _0x2d8a20=_0x4afe6d;let _0x3e1738=(0x0,_0x40a29c[_0x2d8a20(0x173)])()[_0x2d8a20(0x211)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x3e1738){let _0x225c4b={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x2d8a20(0x3d4)]};return _0x4f39e4(JSON[_0x2d8a20(0x1c6)](_0x225c4b),_0x3e1738);}}let _0x13f78f=class{constructor(_0x1941a8){const _0x2c6c56=_0x4afe6d;this[_0x2c6c56(0x1e3)]=_0x1941a8,this['_initRequestHeader']();}[_0x4afe6d(0x41f)](){const _0x2e9c6f=_0x4afe6d;this[_0x2e9c6f(0x1e3)][_0x2e9c6f(0x2cf)]({'interceptor':(_0x49a842,_0x396b13)=>{const _0x5408b2=_0x2e9c6f;let _0x353d83=_0xc78ee8();return _0x353d83&&_0x49a842[_0x5408b2(0x27d)][_0x5408b2(0x437)](_0x5408b2(0x262),_0x353d83),_0x396b13(_0x49a842);}});}};_0x13f78f=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)]))],_0x13f78f);let _0x405412=class extends _0x54340d['RxDisposable']{constructor(_0x43c4a8,_0x394856,_0x37303f){const _0x2b8207=_0x4afe6d;super(),this[_0x2b8207(0x30d)]=_0x43c4a8,this['_snapshotService']=_0x394856,this[_0x2b8207(0x1af)]=_0x37303f,_0x1d93f6(this,'_unitInfo$',new _0x501c4e['BehaviorSubject'](null)),_0x1d93f6(this,_0x2b8207(0x157),new _0x501c4e[(_0x2b8207(0x1d6))]()),_0x1d93f6(this,_0x2b8207(0x2b0),this['_unitInfo$'][_0x2b8207(0x371)]()),_0x1d93f6(this,_0x2b8207(0x382),this[_0x2b8207(0x157)][_0x2b8207(0x371)]());}[_0x4afe6d(0x445)](){const _0x1b93a2=_0x4afe6d;super[_0x1b93a2(0x445)](),this['_unitLoaded$'][_0x1b93a2(0x228)](),this[_0x1b93a2(0x2b9)][_0x1b93a2(0x228)]();}async[_0x4afe6d(0x1db)](_0x29aace,_0x4593fb,_0x5e12da,_0x71b28b){const _0xda0e66=_0x4afe6d;this[_0xda0e66(0x2b9)][_0xda0e66(0x16a)]({'unitId':_0x29aace,'type':_0x4593fb,'subUnitId':_0x71b28b});let _0x3c3d08=null;switch(_0x4593fb){case _0x54340d[_0xda0e66(0x395)]['UNIVER_SHEET']:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0x2d2)](_0x29aace,_0x5e12da,void 0x0,{'initialSubUnitId':_0x71b28b});break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x366)]:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0x2c9)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x2f6)]:_0x3c3d08=await this['_snapshotService'][_0xda0e66(0x315)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x1b3)]:_0x3c3d08=await this['_snapshotService'][_0xda0e66(0x341)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x193)]:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0xf5)](_0x29aace,_0x5e12da);break;default:this[_0xda0e66(0x30d)][_0xda0e66(0x106)](_0xda0e66(0x15d),_0xda0e66(0x3d6));break;}return _0x3c3d08&&this[_0xda0e66(0x157)][_0xda0e66(0x16a)](_0x3c3d08),_0x3c3d08;}async[_0x4afe6d(0x281)](_0x5dd3e3,_0x751455,_0x8d62a3){const _0x573ea5=_0x4afe6d;var _0x2fa9b4;this[_0x573ea5(0x2b9)][_0x573ea5(0x16a)]({'unitId':_0x5dd3e3,'type':_0x751455,'subUnitId':_0x8d62a3});let _0x46a4a8=0x0,_0x30186d=await((_0x2fa9b4=this[_0x573ea5(0x1af)])==null?void 0x0:_0x2fa9b4[_0x573ea5(0x447)](_0x5dd3e3));return _0x30186d&&(_0x30186d['awaitingChangeset']||_0x30186d[_0x573ea5(0x29a)][_0x573ea5(0x414)]!==0x0)&&(_0x46a4a8=_0x30186d[_0x573ea5(0x427)]),_0x46a4a8===0x0&&this[_0x573ea5(0x30d)][_0x573ea5(0x103)](_0x573ea5(0x15d),_0x573ea5(0x289)),this[_0x573ea5(0x1db)](_0x5dd3e3,_0x751455,_0x46a4a8,_0x8d62a3);}};_0x405412=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x402)])),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x405412);let _0xf97092=class{constructor(_0x9d5cd6,_0x1a2ac6,_0x22482e){const _0x541474=_0x4afe6d;this['_httpService']=_0x9d5cd6,this[_0x541474(0x3b8)]=_0x1a2ac6,this[_0x541474(0x18f)]=_0x22482e,_0x1d93f6(this,_0x541474(0x2ea),0x0),_0x1d93f6(this,_0x541474(0x207),new _0x501c4e['Subject']()),_0x1d93f6(this,_0x541474(0x256),this[_0x541474(0x207)]),_0x1d93f6(this,_0x541474(0x1f1),new Map());}[_0x4afe6d(0x29d)](_0xbace80){const _0x5da00b=_0x4afe6d;this[_0x5da00b(0x2ea)]=_0xbace80,this[_0x5da00b(0x207)][_0x5da00b(0x16a)](_0xbace80);}[_0x4afe6d(0x2cb)](_0x3466af,_0x36b22b){const _0x168a89=_0x4afe6d;if(_0x36b22b===_0x54340d['ImageSourceType'][_0x168a89(0x224)]){let _0x9ab667=new Image();return _0x9ab667[_0x168a89(0xff)]=_0x3466af,_0x9ab667;}return this['_imageSourceCache']['get'](_0x3466af);}['addImageSourceCache'](_0x1ebef1,_0x42537e,_0xc436e3){const _0x178738=_0x4afe6d;_0x42537e===_0x54340d['ImageSourceType'][_0x178738(0x224)]||_0xc436e3==null||this['_imageSourceCache'][_0x178738(0x437)](_0x1ebef1,_0xc436e3);}async[_0x4afe6d(0x12b)](_0x2d2068){const _0x4be44c=_0x4afe6d;try{let _0x7cb513=this['_replaceFileID'](this[_0x4be44c(0x29b)](),''+_0x2d2068),_0x52add8=(await this[_0x4be44c(0x1e3)]['get'](_0x7cb513))[_0x4be44c(0x271)];if(_0x52add8['error']&&_0x52add8[_0x4be44c(0x106)][_0x4be44c(0x1a3)]===_0x3a112b[_0x4be44c(0x1c1)]['OK']){let _0x30b04b=(0x0,_0x54340d[_0x4be44c(0x276)])(_0x52add8[_0x4be44c(0x161)],this[_0x4be44c(0x184)]());return Promise[_0x4be44c(0x35e)](_0x30b04b);}return Promise[_0x4be44c(0x18e)](_0x52add8[_0x4be44c(0x106)]);}catch(_0x4ebac2){return Promise[_0x4be44c(0x18e)](_0x4ebac2);}}async['saveImage'](_0x486855){const _0x1b5770=_0x4afe6d;let _0x2b2215='';if(!_0x728a29[_0x1b5770(0x1fe)]['includes'](_0x486855[_0x1b5770(0x154)]))return this[_0x1b5770(0x11b)](),Promise['reject'](Error(_0x54340d[_0x1b5770(0x3b2)][_0x1b5770(0x3cc)]));if(_0x486855[_0x1b5770(0x389)]>(0x0,_0x728a29[_0x1b5770(0x1c9)])())return this[_0x1b5770(0x11b)](),Promise[_0x1b5770(0x18e)](Error(_0x54340d[_0x1b5770(0x3b2)]['ERROR_EXCEED_SIZE']));try{let _0x341cb6=new FormData();_0x341cb6[_0x1b5770(0x2ae)]('file',_0x486855);let _0x27d4a2=this[_0x1b5770(0x18f)][_0x1b5770(0x26f)](),_0x113ff8=_0x27d4a2==null?void 0x0:_0x27d4a2[_0x1b5770(0x40f)]();if(!_0x113ff8)throw Error(_0x1b5770(0x312));let _0x1dfd54=this[_0x1b5770(0x3bd)]()+'?size='+_0x486855[_0x1b5770(0x389)][_0x1b5770(0x3df)]()+_0x1b5770(0x3aa)+_0x3a112b[_0x1b5770(0x3fd)][_0x1b5770(0x204)]+_0x1b5770(0x37b)+encodeURIComponent(_0x113ff8),_0x22c3b8={'body':_0x341cb6},_0x32ecfd=(await this['_httpService']['post'](_0x1dfd54,_0x22c3b8))[_0x1b5770(0x271)];if(typeof _0x32ecfd['FileId']!=_0x1b5770(0x1ab))return this[_0x1b5770(0x11b)](),Promise['reject'](Error(_0x54340d[_0x1b5770(0x3b2)][_0x1b5770(0x217)]));_0x2b2215=_0x32ecfd['FileId'];}catch{return this[_0x1b5770(0x11b)](),Promise[_0x1b5770(0x18e)](Error(_0x54340d[_0x1b5770(0x3b2)]['ERROR_IMAGE']));}return new Promise((_0x3bba83,_0x4fbeb0)=>{const _0x5b1282=_0x1b5770;let _0x319f65=new FileReader();_0x319f65[_0x5b1282(0x216)](_0x486855),_0x319f65['onload']=_0x26fd7a=>{const _0x9963f2=_0x5b1282;var _0x57c913;let _0x4dd501=(_0x57c913=_0x26fd7a[_0x9963f2(0x12f)])==null?void 0x0:_0x57c913[_0x9963f2(0x2a9)];if(_0x4dd501==null){this[_0x9963f2(0x11b)](),_0x4fbeb0(Error(_0x54340d[_0x9963f2(0x3b2)][_0x9963f2(0x217)]));return;}_0x3bba83({'imageId':(0x0,_0x54340d[_0x9963f2(0x293)])(0x6),'imageSourceType':_0x54340d[_0x9963f2(0x162)]['UUID'],'source':_0x2b2215,'base64Cache':_0x4dd501,'status':_0x54340d[_0x9963f2(0x3b2)][_0x9963f2(0x107)]}),this[_0x9963f2(0x11b)]();};});}['_getUploadFileURL'](){const _0xa9666f=_0x4afe6d;var _0x3a0502;let _0x33d4de=this[_0xa9666f(0x3b8)][_0xa9666f(0x170)](_0x440361);return(_0x3a0502=_0x33d4de==null?void 0x0:_0x33d4de['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x3a0502;}[_0x4afe6d(0x29b)](){const _0x49ca1a=_0x4afe6d;var _0x1e5739;let _0x50b6f2=this[_0x49ca1a(0x3b8)][_0x49ca1a(0x170)](_0x440361);return(_0x1e5739=_0x50b6f2==null?void 0x0:_0x50b6f2[_0x49ca1a(0x1e8)])==null?_0x49ca1a(0x139):_0x1e5739;}[_0x4afe6d(0x184)](){const _0x4e731a=_0x4afe6d;var _0x1aca7b;let _0x44637b=this[_0x4e731a(0x3b8)][_0x4e731a(0x170)](_0x440361);return(_0x1aca7b=_0x44637b==null?void 0x0:_0x44637b[_0x4e731a(0x3d1)])==null?location[_0x4e731a(0x34f)]:_0x1aca7b;}[_0x4afe6d(0x1ba)](_0xa2eb3f,_0x5ca71e){return _0xa2eb3f['replace']('{fileID}',_0x5ca71e);}[_0x4afe6d(0x11b)](){const _0x17d26e=_0x4afe6d;--this[_0x17d26e(0x2ea)],this['_change$']['next'](this[_0x17d26e(0x2ea)]);}};_0xf97092=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x1,_0x54340d['IConfigService']),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x21c)]))],_0xf97092);let _0x5268fb=class{constructor(_0x55cbc6,_0x5f1b02){const _0x529804=_0x4afe6d;this['_configService']=_0x55cbc6,this[_0x529804(0x40a)]=_0x5f1b02;}[_0x4afe6d(0x418)](){const _0x12b98b=_0x4afe6d;var _0x415f0c;let _0x56bfdf=this[_0x12b98b(0x3b8)][_0x12b98b(0x170)](_0x440361);return(_0x415f0c=_0x56bfdf==null?void 0x0:_0x56bfdf[_0x12b98b(0x419)])==null?'/universer-api/authz':_0x415f0c;}async[_0x4afe6d(0x146)](_0x433812){const _0x31e35c=_0x4afe6d;let _0x1f7b9b=this[_0x31e35c(0x418)]()+_0x31e35c(0x322);return{'list':[{'title':'People','mentions':(await this[_0x31e35c(0x40a)][_0x31e35c(0x28f)](_0x1f7b9b,{'params':{'objectID':_0x433812[_0x31e35c(0x3a1)],'unitID':_0x433812[_0x31e35c(0x3a1)]}}))[_0x31e35c(0x271)][_0x31e35c(0x18c)]['map'](_0x5bb757=>({'objectId':_0x5bb757['id'],'name':_0x5bb757['subject'][_0x31e35c(0x2a8)],'metadata':{'icon':_0x5bb757[_0x31e35c(0x196)]['avatar']},'label':_0x5bb757[_0x31e35c(0x196)][_0x31e35c(0x2a8)],'objectType':_0x54340d[_0x31e35c(0x308)]['PERSON']})),'metadata':{},'type':_0x54340d[_0x31e35c(0x308)][_0x31e35c(0x320)]}]};}};_0x5268fb=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x192)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x3c3932[_0x4afe6d(0x359)]))],_0x5268fb);let _0x3b5b34=class extends _0x54340d[_0x4afe6d(0x2bf)]{constructor(_0x1f2a93,_0x4d410e,_0x1e0250,_0xe1a16e,_0x4fc2b7){const _0xa682c=_0x4afe6d;super(),this[_0xa682c(0x19e)]=_0x1f2a93,this[_0xa682c(0x18f)]=_0x4d410e,this[_0xa682c(0x40e)]=_0x1e0250,this[_0xa682c(0x384)]=_0xe1a16e,this[_0xa682c(0x30b)]=_0x4fc2b7,this[_0xa682c(0x118)](),this[_0xa682c(0x40d)]();}[_0x4afe6d(0x40d)](){const _0x23a3f1=_0x4afe6d;let _0x4fb154=async _0xf4ccdd=>{const _0x1116f5=_0x4f14;(await this['_collaborationSessionService'][_0x1116f5(0x2ef)](_0xf4ccdd))['event$'][_0x1116f5(0x33c)]((0x0,_0x572a50[_0x1116f5(0x176)])(_0xd0a584=>_0xd0a584[_0x1116f5(0x10f)]===_0x510a16[_0x1116f5(0x17d)][_0x1116f5(0x10d)]),(0x0,_0x572a50[_0x1116f5(0x272)])(this[_0x1116f5(0x24d)]))[_0x1116f5(0x40b)](_0x17f447=>{const _0x385dec=_0x1116f5;let {reason:_0x3bee03}=_0x17f447[_0x385dec(0x2b8)];this[_0x385dec(0x30b)][_0x385dec(0x425)]({'id':_0x385dec(0x133),'data':_0x3bee03}),this[_0x385dec(0x40e)]['updatePermissionPoint'](new _0x2e3009[(_0x385dec(0x143))](_0xf4ccdd)['id'],!0x1),this[_0x385dec(0x384)][_0x385dec(0x14f)](_0xf4ccdd);});};(0x0,_0x501c4e['merge'])(this['_univerInstanceService'][_0x23a3f1(0x13d)](_0x54340d['UniverInstanceType'][_0x23a3f1(0x3ee)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d['UniverInstanceType'][_0x23a3f1(0x366)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d[_0x23a3f1(0x395)][_0x23a3f1(0x1b3)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d[_0x23a3f1(0x395)][_0x23a3f1(0x193)]))[_0x23a3f1(0x33c)]((0x0,_0x572a50[_0x23a3f1(0x299)])(_0x216f24=>_0x216f24[_0x23a3f1(0x37d)]['getUnitId']()),(0x0,_0x572a50[_0x23a3f1(0x176)])(_0x5095c7=>!(0x0,_0x54340d[_0x23a3f1(0x3b7)])(_0x5095c7)),(0x0,_0x572a50['takeUntil'])(this[_0x23a3f1(0x24d)]))[_0x23a3f1(0x40b)](_0x9c308a=>{_0x4fb154(_0x9c308a);});}[_0x4afe6d(0x118)](){const _0x16a7e7=_0x4afe6d;let _0x335990=async _0x3fc95e=>{const _0x3d191d=_0x4f14;let _0x272bfa=await this['_collaborationSessionService'][_0x3d191d(0x2ef)](_0x3fc95e),_0x2addd8=this['_injector'][_0x3d191d(0x28f)](_0x2e3009[_0x3d191d(0x303)]);_0x272bfa[_0x3d191d(0x2c0)][_0x3d191d(0x33c)]((0x0,_0x572a50[_0x3d191d(0x176)])(_0x485322=>_0x485322[_0x3d191d(0x10f)]===_0x510a16[_0x3d191d(0x17d)][_0x3d191d(0x350)]),(0x0,_0x572a50[_0x3d191d(0x272)])(this[_0x3d191d(0x24d)]))[_0x3d191d(0x40b)](_0x31665c=>{const _0xe7b747=_0x3d191d;let {objectId:_0x2e0f57}=_0x31665c[_0xe7b747(0x2b8)];_0x2e0f57===_0x3fc95e?_0x2addd8['initWorkbookPermissionChange'](_0x3fc95e):_0x2addd8[_0xe7b747(0x1bc)](_0x3fc95e,_0x2e0f57);});};(0x0,_0x501c4e[_0x16a7e7(0x362)])(this['_univerInstanceService'][_0x16a7e7(0x13d)](_0x54340d[_0x16a7e7(0x395)][_0x16a7e7(0x3ee)]))[_0x16a7e7(0x33c)]((0x0,_0x572a50[_0x16a7e7(0x299)])(_0x2711c2=>_0x2711c2[_0x16a7e7(0x37d)][_0x16a7e7(0x40f)]()),(0x0,_0x572a50[_0x16a7e7(0x176)])(_0x32a394=>!(0x0,_0x54340d[_0x16a7e7(0x3b7)])(_0x32a394)),(0x0,_0x572a50[_0x16a7e7(0x272)])(this['dispose$']))[_0x16a7e7(0x40b)](_0x3c8fc7=>{_0x335990(_0x3c8fc7);});}};_0x3b5b34=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x2,_0x54340d['IPermissionService']),_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x1ef492)),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525))],_0x3b5b34);let _0x123e2b=class{constructor(_0xe62aa2,_0x154ce5){const _0x146521=_0x4afe6d;this[_0x146521(0x3b8)]=_0xe62aa2,this['_httpService']=_0x154ce5;}async[_0x4afe6d(0x279)](_0x55cb64,_0x1f7796){const _0x10e2c9=_0x4afe6d;var _0x16daa0;let {unitID:_0x1096e1,type:_0x18fd8d,revision:_0x28a3d6=0x0}=_0x1f7796,_0xcf6338=this[_0x10e2c9(0x22f)]()+'/'+_0x18fd8d+_0x10e2c9(0x3f2)+_0x1096e1+_0x10e2c9(0x31a)+_0x28a3d6,_0x37c512=(await this[_0x10e2c9(0x1e3)]['get'](_0xcf6338))[_0x10e2c9(0x271)],_0x2d6f59=(_0x16daa0=_0x37c512[_0x10e2c9(0x364)])==null?void 0x0:_0x16daa0[_0x10e2c9(0x1f4)];if(_0x2d6f59){let _0x4e77ba=_0x2d6f59==null?void 0x0:_0x2d6f59[_0x10e2c9(0x3b9)];_0x2d6f59['originalMeta']=_0x510a16[_0x10e2c9(0x3c9)][_0x10e2c9(0x42e)]((0x0,_0x510a16[_0x10e2c9(0x31c)])(_0x4e77ba)),Object['entries'](_0x2d6f59[_0x10e2c9(0x1d1)])['forEach'](([,_0x5be530])=>{const _0x4e12ed=_0x10e2c9;let _0x79dbc5=_0x5be530[_0x4e12ed(0x3b9)];_0x5be530[_0x4e12ed(0x3b9)]=_0x510a16['textEncoder'][_0x4e12ed(0x42e)]((0x0,_0x510a16[_0x4e12ed(0x31c)])(_0x79dbc5));});}return _0x37c512;}async[_0x4afe6d(0x13c)](_0x595c31,_0x3e5507){const _0x48b9ce=_0x4afe6d;let {unitID:_0x335212,type:_0x3bb0d8,blockID:_0x5ddd60}=_0x3e5507,_0x312333=this['_getAPIPrefix']()+'/'+_0x3bb0d8+_0x48b9ce(0x3f2)+_0x335212+_0x48b9ce(0x429)+_0x5ddd60;return(await this[_0x48b9ce(0x1e3)]['get'](_0x312333))['body'];}async['getDeserializedSheetBlock'](_0x2fd4a3,_0x3a0b4f){const _0x5a3569=_0x4afe6d;let {unitID:_0x4e7d1a,type:_0x41e82e,blockID:_0x2879ec}=_0x3a0b4f,_0x627668=this[_0x5a3569(0x185)]()+_0x5a3569(0x429)+_0x41e82e+_0x5a3569(0x3f2)+_0x4e7d1a+'/block/'+_0x2879ec;return(await this[_0x5a3569(0x1e3)][_0x5a3569(0x28f)](_0x627668))['body'];}async[_0x4afe6d(0x246)](_0x77ba38,_0x2d5f45){const _0x107260=_0x4afe6d;let {unitID:_0xb0a8bc,type:_0x4bcced,from:_0x7e96ae,to:_0x158faf}=_0x2d5f45,_0x5c75a8=this[_0x107260(0x185)]()+'/'+_0x4bcced+_0x107260(0x3f2)+_0xb0a8bc+_0x107260(0x352)+_0x7e96ae+_0x107260(0x3f1)+_0x158faf;return(await this[_0x107260(0x1e3)][_0x107260(0x28f)](_0x5c75a8))[_0x107260(0x271)];}[_0x4afe6d(0x22f)](){const _0x31d5c2=_0x4afe6d;var _0x58e984;return(_0x58e984=this[_0x31d5c2(0x3b8)][_0x31d5c2(0x170)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x58e984;}[_0x4afe6d(0x185)](){const _0x3ff8bc=_0x4afe6d;var _0x3fe50d;let _0x4cc266=this[_0x3ff8bc(0x3b8)][_0x3ff8bc(0x170)](_0x440361);return(_0x3fe50d=_0x4cc266==null?void 0x0:_0x4cc266[_0x3ff8bc(0x25e)])==null?_0x3ff8bc(0x1a4):_0x3fe50d;}async['getResourcesRequest'](_0x52bac0,_0x43de13){const _0x20fcf3=_0x4afe6d;let _0x35474b=_0x20fcf3(0x448)+_0x43de13[_0x20fcf3(0x154)]+'/unit/'+_0x43de13[_0x20fcf3(0x3b1)]+'/resources';return(await this[_0x20fcf3(0x1e3)][_0x20fcf3(0x28f)](_0x35474b,{'params':{'resourceId':JSON[_0x20fcf3(0x1c6)](_0x43de13[_0x20fcf3(0x3fb)])}}))[_0x20fcf3(0x271)];}[_0x4afe6d(0x3ef)](){const _0x7ad085=_0x4afe6d;throw Error(_0x7ad085(0x252));}[_0x4afe6d(0x158)](){const _0x5696e7=_0x4afe6d;throw Error(_0x5696e7(0x252));}[_0x4afe6d(0x18b)](){const _0xb6aece=_0x4afe6d;throw Error(_0xb6aece(0x252));}[_0x4afe6d(0x219)](){const _0x47d785=_0x4afe6d;throw Error(_0x47d785(0x252));}[_0x4afe6d(0x165)](){const _0x4df6d7=_0x4afe6d;throw Error(_0x4df6d7(0x252));}[_0x4afe6d(0x25b)](){const _0x20b54d=_0x4afe6d;throw Error(_0x20b54d(0x252));}};_0x123e2b=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932['HTTPService']))],_0x123e2b);let _0x424687=class extends _0x54340d[_0x4afe6d(0x2b2)]{constructor(_0x213edd,_0x5d41a6,_0x7c8911,_0x1204cd,_0x497bde){const _0x56910d=_0x4afe6d;super(_0x213edd,_0x5d41a6,_0x7c8911),this['_transformService']=_0x1204cd,this[_0x56910d(0x30d)]=_0x497bde;}['transformUndoRedo'](_0x4b3846,_0xecf043){const _0x38929b=_0x4afe6d;let _0x47bed3=this[_0x38929b(0x147)](_0x4b3846);if(_0x47bed3)try{let _0x422a45=this[_0x38929b(0x261)](_0x47bed3,_0xecf043);this[_0x38929b(0x431)](_0x4b3846,_0x422a45);}catch(_0x34c9e0){this[_0x38929b(0x30d)][_0x38929b(0x106)](_0x38929b(0x407),_0x34c9e0),this['_clearUndo'](_0x4b3846);}let _0x953b95=this[_0x38929b(0x307)](_0x4b3846);if(_0x953b95)try{let _0x5b2a8e=this['_transformStack'](_0x953b95,_0xecf043);this['_substituteRedoStack'](_0x4b3846,_0x5b2a8e);}catch(_0x47a949){this[_0x38929b(0x30d)][_0x38929b(0x106)](_0x47a949),this[_0x38929b(0x1cb)](_0x4b3846);}}[_0x4afe6d(0x1f0)](_0x2f26e7){const _0xa85e42=_0x4afe6d;let _0x2860cc=this[_0xa85e42(0x147)](_0x2f26e7);_0x2860cc&&(_0x2860cc[_0xa85e42(0x414)]=0x0,this[_0xa85e42(0x174)]());}['_clearRedo'](_0x31dafe){const _0xf1330f=_0x4afe6d;let _0x5477fc=this[_0xf1330f(0x307)](_0x31dafe);_0x5477fc&&(_0x5477fc[_0xf1330f(0x414)]=0x0,this['_updateStatus']());}[_0x4afe6d(0x431)](_0x24cd62,_0x183219){const _0xa190e=_0x4afe6d;this[_0xa190e(0x1dd)][_0xa190e(0x437)](_0x24cd62,_0x183219),this[_0xa190e(0x174)]();}[_0x4afe6d(0x354)](_0x210eea,_0x5dc0ba){const _0x28bbc1=_0x4afe6d;this[_0x28bbc1(0x278)]['set'](_0x210eea,_0x5dc0ba),this[_0x28bbc1(0x174)]();}[_0x4afe6d(0x261)](_0x4ab79a,_0x19db45){const _0x4a1f38=_0x4afe6d;let _0x3deb20=[],_0x25a367=_0x19db45,_0x2af521=_0x19db45;for(let _0x200aa0=_0x4ab79a[_0x4a1f38(0x414)]-0x1;_0x200aa0>=0x0;_0x200aa0--){let {unitID:_0x321354,undoMutations:_0x181325,redoMutations:_0x3dbdc7}=_0x4ab79a[_0x200aa0],_0x534a4c=this[_0x4a1f38(0x294)][_0x4a1f38(0x2e7)](_0x25a367,_0x181325),_0x473138=this[_0x4a1f38(0x294)][_0x4a1f38(0x2e7)](_0x2af521,_0x3dbdc7);if((0x0,_0x510a16[_0x4a1f38(0x1e2)])(_0x534a4c)||(0x0,_0x510a16[_0x4a1f38(0x1e2)])(_0x473138)){this[_0x4a1f38(0x30d)][_0x4a1f38(0x106)](_0x4a1f38(0x407),_0x4a1f38(0x285),_0x534a4c,_0x473138);break;}_0x25a367=_0x534a4c[_0x4a1f38(0x1d5)],_0x2af521=_0x473138['c1Prime'],_0x3deb20['push']({'unitID':_0x321354,'undoMutations':_0x534a4c[_0x4a1f38(0x422)],'redoMutations':_0x473138[_0x4a1f38(0x422)]});}return _0x3deb20[_0x4a1f38(0x26c)]();}};_0x424687=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x442)]),_0x5c2cf(0x3,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0x4,_0x54340d[_0x4afe6d(0x2f1)])],_0x424687);let _0x28041f=class extends _0x54340d[_0x4afe6d(0x167)]{constructor(_0x1b9385=_0x34589c,_0x50f2d9,_0x4f85bd,_0x14c147){const _0x228888=_0x4afe6d;super(),this[_0x228888(0x2ad)]=_0x1b9385,this['_logService']=_0x50f2d9,this[_0x228888(0x19e)]=_0x4f85bd,this[_0x228888(0x3b8)]=_0x14c147;let {..._0x325daa}=(0x0,_0x54340d[_0x228888(0x362)])({},_0x34589c,this[_0x228888(0x2ad)]);if(!_0x325daa[_0x228888(0x191)])throw Error(_0x228888(0x290));this[_0x228888(0x2ad)]=_0x325daa,this[_0x228888(0x3b8)]['setConfig'](_0x440361,_0x325daa);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['_registerDependencies'](){const _0x20118a=_0x4afe6d;var _0x2df99a,_0xb0ca4d;this[_0x20118a(0x19e)][_0x20118a(0x2e6)](_0x54340d[_0x20118a(0x2a4)])&&this['_logService'][_0x20118a(0x106)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4c02b0=(0x0,_0x54340d[_0x20118a(0x41d)])([[_0x54340d[_0x20118a(0x2a4)],{'useClass':_0x424687}],[_0x3a5b27,{'useValue':_0x1c4d33()}],[_0x1ef492],[_0x1afb9b],[_0x2269b7],[_0x2ddecb],[_0x13f78f],[_0x24cd08],[_0x3b5b34],[_0x18b525],[_0x405412],[_0x30a197,{'useClass':this[_0x20118a(0x2ad)][_0x20118a(0x191)]}],[_0x510a16[_0x20118a(0x416)],{'useClass':_0x123e2b}],[_0x54340d['IAuthzIoService'],{'useClass':_0x91ddb2}],[_0x54340d['IImageIoService'],{'useClass':_0xf97092}],[_0x2a494b,{'useClass':_0x229743}],[_0x54340d[_0x20118a(0x451)],{'useClass':_0x5268fb}],[_0x3ac1c6],[_0x1ae7d6]],(_0x2df99a=this[_0x20118a(0x2ad)])==null?void 0x0:_0x2df99a[_0x20118a(0x23f)]);if(!((_0xb0ca4d=this['_config'])!=null&&_0xb0ca4d[_0x20118a(0x43e)])){let _0x211402=_0x4c02b0[_0x20118a(0x164)](([_0xea2c9f])=>_0xea2c9f===_0x54d1b8);_0x211402!==-0x1&&_0x4c02b0[_0x20118a(0x23d)](_0x211402,0x1);}(0x0,_0x54340d[_0x20118a(0x1f9)])(this[_0x20118a(0x19e)],_0x4c02b0);}[_0x4afe6d(0x2e2)](){const _0x459eba=_0x4afe6d;var _0x50cf72,_0x222356;if(this[_0x459eba(0x19e)][_0x459eba(0x28f)](_0x3c3932[_0x459eba(0x359)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x3c3932[_0x459eba(0x287)])({'maxParallel':0x6})}),!((_0x50cf72=this['_config'])!=null&&_0x50cf72['enableOfflineEditing'])){var _0x27c7c8;(_0x27c7c8=this[_0x459eba(0x19e)][_0x459eba(0x28f)](_0x1cadf3,_0x54340d[_0x459eba(0x408)][_0x459eba(0x2a0)]))==null||_0x27c7c8[_0x459eba(0x306)]();}(_0x222356=this[_0x459eba(0x2ad)])!=null&&_0x222356[_0x459eba(0x292)]&&(0x0,_0x54340d[_0x459eba(0x23a)])(this[_0x459eba(0x19e)],[[_0x2ddecb]]),(0x0,_0x54340d['touchDependencies'])(this[_0x459eba(0x19e)],[[_0x13f78f],[_0x3ac1c6],[_0x3b5b34]]);}};_0x1d93f6(_0x28041f,'pluginName',_0x4afe6d(0x3a0)),_0x1d93f6(_0x28041f,'packageName',_0x2342bf),_0x1d93f6(_0x28041f,_0x4afe6d(0x130),_0x42a3e1),_0x28041f=_0x3bbaf2([(0x0,_0x54340d['DependentOn'])(_0x40a29c[_0x4afe6d(0x169)],_0x510a16[_0x4afe6d(0x2ce)],_0x3c3932['UniverNetworkPlugin']),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x192)])],_0x28041f),_0x3b1d70['AttachmentSourceType']=_0x32a4ef,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x3d9),{'enumerable':!0x0,'get':function(){return _0x91ddb2;}}),Object['defineProperty'](_0x3b1d70,_0x4afe6d(0x3af),{'enumerable':!0x0,'get':function(){return _0x4b8fc9;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x257),{'enumerable':!0x0,'get':function(){return _0x34253f;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2b7),{'enumerable':!0x0,'get':function(){return _0x315430;}}),Object['defineProperty'](_0x3b1d70,_0x4afe6d(0x314),{'enumerable':!0x0,'get':function(){return _0x3a23e5;}}),_0x3b1d70['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x440361,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x376),{'enumerable':!0x0,'get':function(){return _0x229743;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1f5),{'enumerable':!0x0,'get':function(){return _0x3ac1c6;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x22e),{'enumerable':!0x0,'get':function(){return _0x558136;}}),Object['defineProperty'](_0x3b1d70,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return _0xf97092;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x199),{'enumerable':!0x0,'get':function(){return _0x180b79;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1a1),{'enumerable':!0x0,'get':function(){return _0x1ef492;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2af),{'enumerable':!0x0,'get':function(){return _0xadadc1;}}),_0x3b1d70['CollaborationStatus']=_0x37cdd1,_0x3b1d70[_0x4afe6d(0x36b)]=_0x441a00,_0x3b1d70[_0x4afe6d(0x2a7)]=_0x18b525,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x25a),{'enumerable':!0x0,'get':function(){return _0x424687;}}),_0x3b1d70[_0x4afe6d(0x254)]=_0x24cd08,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x3ae),{'enumerable':!0x0,'get':function(){return _0x4544f7;}}),_0x3b1d70[_0x4afe6d(0x1fb)]=_0x1ee18d,_0x3b1d70['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x3b1d70[_0x4afe6d(0x30e)]=_0x4afe6d(0x16b),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x21a),{'enumerable':!0x0,'get':function(){return _0x405412;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x449),{'enumerable':!0x0,'get':function(){return _0x4e92fa;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x213),{'enumerable':!0x0,'get':function(){return _0x5ac534;}}),_0x3b1d70[_0x4afe6d(0x432)]=_0x4afe6d(0x450),_0x3b1d70['HEARTBEAT_TIMEOUT_KEY']=_0x4afe6d(0x263),_0x3b1d70['IAttachmentIoService']=_0x2a494b,_0x3b1d70[_0x4afe6d(0x368)]=_0x3a5b27,_0x3b1d70[_0x4afe6d(0x2c5)]=_0x30a197,_0x3b1d70[_0x4afe6d(0x398)]=_0x1cadf3,_0x3b1d70['INetworkConditionService']=_0x5cc1e5,_0x3b1d70[_0x4afe6d(0x1e6)]=_0x54d1b8,_0x3b1d70['LOCAL_CACHE_INTERVAL']=0x3e8,_0x3b1d70['LOCAL_CACHE_INTERVAL_KEY']=_0x4afe6d(0x309),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x125),{'enumerable':!0x0,'get':function(){return _0x1afb9b;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x420),{'enumerable':!0x0,'get':function(){return _0x5268fb;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x5146de;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,'PendingState',{'enumerable':!0x0,'get':function(){return _0x503465;}}),_0x3b1d70[_0x4afe6d(0x1f2)]=_0x4afe6d(0x2f7),_0x3b1d70[_0x4afe6d(0x19a)]='RETRY_CONNECTING_MAX_COUNT',_0x3b1d70[_0x4afe6d(0xfe)]=_0x3bf564,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x28e),{'enumerable':!0x0,'get':function(){return _0x143458;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x134),{'enumerable':!0x0,'get':function(){return _0x2269b7;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1e5),{'enumerable':!0x0,'get':function(){return _0x513627;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2c7),{'enumerable':!0x0,'get':function(){return _0x123e2b;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x12c),{'enumerable':!0x0,'get':function(){return _0x5d7f84;}}),_0x3b1d70[_0x4afe6d(0x27c)]=_0x36582d,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1ec),{'enumerable':!0x0,'get':function(){return _0x28041f;}}),_0x3b1d70[_0x4afe6d(0x33f)]=_0x1c4d33,_0x3b1d70[_0x4afe6d(0x2db)]=_0x4dd5df,_0x3b1d70[_0x4afe6d(0x148)]=_0x4accb8,_0x3b1d70[_0x4afe6d(0x3f9)]=_0x5e867b;}));
|